@topvisor/ui 1.0.42-date.2 → 1.0.42-popupPosition.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 (105) hide show
  1. package/.chunks/{core-CTWfwyjq.es.js → core-BGKb9a73.es.js} +4 -4
  2. package/.chunks/{core-CTWfwyjq.es.js.map → core-BGKb9a73.es.js.map} +1 -1
  3. package/.chunks/{core-BDx1sI2y.amd.js → core-D-etXW3Y.amd.js} +2 -2
  4. package/.chunks/{core-BDx1sI2y.amd.js.map → core-D-etXW3Y.amd.js.map} +1 -1
  5. package/.chunks/{datepicker-Esxy0UQA.amd.js → datepicker-BWaVsTd0.amd.js} +2 -2
  6. package/.chunks/{datepicker-Esxy0UQA.amd.js.map → datepicker-BWaVsTd0.amd.js.map} +1 -1
  7. package/.chunks/{datepicker-iaUT_eSc.es.js → datepicker-DCDYQmsc.es.js} +2 -2
  8. package/.chunks/{datepicker-iaUT_eSc.es.js.map → datepicker-DCDYQmsc.es.js.map} +1 -1
  9. package/.chunks/{dialog_selectorRegions-B-4xalwM.es.js → dialog_selectorRegions-BAK6xG6N.es.js} +4 -4
  10. package/.chunks/{dialog_selectorRegions-B-4xalwM.es.js.map → dialog_selectorRegions-BAK6xG6N.es.js.map} +1 -1
  11. package/.chunks/{dialog_selectorRegions-C7tvNWJk.amd.js → dialog_selectorRegions-CMI1gx5d.amd.js} +2 -2
  12. package/.chunks/{dialog_selectorRegions-C7tvNWJk.amd.js.map → dialog_selectorRegions-CMI1gx5d.amd.js.map} +1 -1
  13. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-CqYKaqcT.amd.js → dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js} +2 -2
  14. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-BSxHPUWf.amd.js.map +1 -0
  15. package/.chunks/{dialogs.vue_vue_type_script_setup_true_lang-DBzDS_l7.es.js → dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js} +3 -3
  16. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CjUHErAY.es.js.map +1 -0
  17. package/.chunks/{forms-BZlFXc5U.es.js → forms-DOGPN_TR.es.js} +50 -51
  18. package/.chunks/{forms-BZlFXc5U.es.js.map → forms-DOGPN_TR.es.js.map} +1 -1
  19. package/.chunks/{forms-DMI0BqCj.amd.js → forms-Gb7ujpmz.amd.js} +3 -3
  20. package/.chunks/{forms-DMI0BqCj.amd.js.map → forms-Gb7ujpmz.amd.js.map} +1 -1
  21. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-CACzwZ0A.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-CACzwZ0A.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-KxTfgv5Z.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-KxTfgv5Z.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-CIdaxq15.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-CIdaxq15.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-BMpVs3Du.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-BMpVs3Du.es.js.map → menu.vue_vue_type_style_index_0_lang-Dq5eEX9i.es.js.map} +1 -1
  29. package/.chunks/{notice-ULAk8EKs.amd.js → notice-C5sXcBql.amd.js} +2 -2
  30. package/.chunks/{notice-ULAk8EKs.amd.js.map → notice-C5sXcBql.amd.js.map} +1 -1
  31. package/.chunks/{notice-C0QQCxdI.es.js → notice-DE88Oe-t.es.js} +2 -2
  32. package/.chunks/{notice-C0QQCxdI.es.js.map → notice-DE88Oe-t.es.js.map} +1 -1
  33. package/.chunks/{page.vue_vue_type_script_setup_true_lang-BjGqYm-r.es.js → page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js} +4 -4
  34. package/.chunks/{page.vue_vue_type_script_setup_true_lang-BjGqYm-r.es.js.map → page.vue_vue_type_script_setup_true_lang-DFvul4oF.es.js.map} +1 -1
  35. package/.chunks/{page.vue_vue_type_script_setup_true_lang-f557_PUb.amd.js → page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js} +2 -2
  36. package/.chunks/{page.vue_vue_type_script_setup_true_lang-f557_PUb.amd.js.map → page.vue_vue_type_script_setup_true_lang-DJSuza2e.amd.js.map} +1 -1
  37. package/.chunks/popup-B_8bvIsF.amd.js +2 -0
  38. package/.chunks/{popup-BDm3_TJy.amd.js.map → popup-B_8bvIsF.amd.js.map} +1 -1
  39. package/.chunks/{popup-Cl0Rac26.es.js → popup-BjsK_pMZ.es.js} +106 -80
  40. package/.chunks/{popup-Cl0Rac26.es.js.map → popup-BjsK_pMZ.es.js.map} +1 -1
  41. package/.chunks/{utils-C4bTrMJX.amd.js → utils-BVdq18mg.amd.js} +2 -2
  42. package/.chunks/{utils-C4bTrMJX.amd.js.map → utils-BVdq18mg.amd.js.map} +1 -1
  43. package/.chunks/{utils-D9KqMkio.es.js → utils-CRPkMfKD.es.js} +2 -2
  44. package/.chunks/{utils-D9KqMkio.es.js.map → utils-CRPkMfKD.es.js.map} +1 -1
  45. package/.chunks/{utils-BfXpHkpA.es.js → utils-CacKxWvO.es.js} +87 -88
  46. package/.chunks/utils-CacKxWvO.es.js.map +1 -0
  47. package/.chunks/utils-DiQZv1Ae.amd.js +2 -0
  48. package/.chunks/utils-DiQZv1Ae.amd.js.map +1 -0
  49. package/assets/core.css +1 -1
  50. package/assets/forms.css +1 -1
  51. package/assets/formsExt.css +1 -1
  52. package/charts/charts.amd.js +1 -1
  53. package/charts/charts.js +1 -1
  54. package/components/dialog/lib/utils.d.ts +5 -5
  55. package/components/dialog/lib/worker.d.ts +5 -5
  56. package/components/formsExt/formsExt.d.ts +2 -0
  57. package/components/formsExt/policy/policy.vue.d.ts +4 -0
  58. package/components/formsExt/policy/types.d.ts +10 -0
  59. package/core/app.amd.js +1 -1
  60. package/core/app.js +5 -5
  61. package/core/utils/date.d.ts +4 -3
  62. package/core/utils/dom.d.ts +10 -0
  63. package/dialog/dialog.amd.js +1 -1
  64. package/dialog/dialog.js +2 -2
  65. package/forms/forms.amd.js +1 -1
  66. package/forms/forms.js +1 -1
  67. package/formsExt/formsExt.amd.js +1 -1
  68. package/formsExt/formsExt.amd.js.map +1 -1
  69. package/formsExt/formsExt.js +274 -242
  70. package/formsExt/formsExt.js.map +1 -1
  71. package/layout/layout.amd.js +1 -1
  72. package/layout/layout.js +1 -1
  73. package/package.json +1 -1
  74. package/popup/popup.amd.js +1 -1
  75. package/popup/popup.js +2 -2
  76. package/popup/worker.amd.js +1 -1
  77. package/popup/worker.js +2 -2
  78. package/project/project.amd.js +1 -1
  79. package/project/project.js +5 -5
  80. package/tabsView/tabsView.amd.js +1 -1
  81. package/tabsView/tabsView.js +1 -1
  82. package/utils/clipboard.amd.js +1 -1
  83. package/utils/clipboard.js +1 -1
  84. package/utils/date.amd.js +1 -1
  85. package/utils/date.js +1 -1
  86. package/utils/device.amd.js +1 -1
  87. package/utils/device.js +1 -1
  88. package/utils/dom.amd.js +1 -1
  89. package/utils/dom.amd.js.map +1 -1
  90. package/utils/dom.js +27 -22
  91. package/utils/dom.js.map +1 -1
  92. package/utils/lodash.amd.js +1 -1
  93. package/utils/lodash.js +1 -1
  94. package/utils/price.amd.js +1 -1
  95. package/utils/price.js +1 -1
  96. package/utils/searchers.amd.js +1 -1
  97. package/utils/searchers.js +3 -3
  98. package/utils/string.amd.js +1 -1
  99. package/utils/string.js +1 -1
  100. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-CqYKaqcT.amd.js.map +0 -1
  101. package/.chunks/dialogs.vue_vue_type_script_setup_true_lang-DBzDS_l7.es.js.map +0 -1
  102. package/.chunks/popup-BDm3_TJy.amd.js +0 -2
  103. package/.chunks/utils-BV1bu3yj.amd.js +0 -2
  104. package/.chunks/utils-BV1bu3yj.amd.js.map +0 -1
  105. package/.chunks/utils-BfXpHkpA.es.js.map +0 -1
@@ -1,12 +1,12 @@
1
- import { Core as Y } from "../core/app.js";
2
- import { defineComponent as B, ref as w, computed as S, createElementBlock as f, openBlock as p, normalizeClass as C, createCommentVNode as k, createElementVNode as L, toDisplayString as V, createVNode as G, withKeys as E, withModifiers as z, createBlock as $, createSlots as O, withCtx as A, createTextVNode as I, watch as M, toRef as P, mergeProps as W, mergeModels as H, useModel as U, Fragment as _, renderList as K, withDirectives as J, vModelRadio as Q, resolveDirective as Z, unref as h, renderSlot as D, resolveDynamicComponent as q } from "vue";
3
- import { w as x, _ as F, f as ee, d as te, u as oe, C as X, x as le } from "../.chunks/forms-BZlFXc5U.es.js";
4
- import { TopPopup as se, TopPopupListItem as N, 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-BMpVs3Du.es.js";
7
- const j = ["../assets/formsExt.css"].map((l) => import.meta.resolve(l));
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(l, { emit: e }) {
35
- const s = l, a = e, r = w(s.defaultValue), t = w(s.isFocused), d = S(() => r.value !== s.defaultValue), c = (n) => {
36
- a("submit", n), r.value = s.defaultValue;
37
- }, v = () => {
38
- if (s.forceShowCloseBtn && !d.value) {
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
+ }, y = () => {
38
+ if (l.forceShowCloseBtn && !p.value) {
39
39
  a("close");
40
40
  return;
41
41
  }
42
- r.value = s.defaultValue;
43
- }, T = () => {
44
- s.attachToKeyboard && a("clickOnTitle");
42
+ n.value = l.defaultValue;
43
+ }, k = () => {
44
+ l.attachToKeyboard && a("clickOnTitle");
45
45
  };
46
- return (n, b) => (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": n.attachToKeyboard
49
+ "top-editArea-attachedToKeyboard": r.attachToKeyboard
50
50
  })
51
51
  }, [
52
- n.title ? (p(), f("div", {
52
+ r.title ? (d(), f("div", {
53
53
  key: 0,
54
54
  class: "top-editArea_title",
55
- onClick: b[0] || (b[0] = (u) => T())
56
- }, V(n.title), 1)) : k("", !0),
57
- L("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": n.isError,
60
+ "top-error": r.isError,
61
61
  "top-focus": t.value
62
62
  })
63
63
  }, [
64
- G(x, {
65
- modelValue: r.value,
66
- "onUpdate:modelValue": b[1] || (b[1] = (u) => r.value = u),
67
- name: n.name,
68
- placeholder: n.placeholder,
69
- rows: n.rows,
70
- minHeight: n.minHeight,
71
- expandable: n.expandable,
72
- disabled: n.disabled,
73
- readonly: n.readonly,
74
- isError: n.isError,
75
- hint: n.hint,
64
+ z(x, {
65
+ modelValue: n.value,
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
77
  onFocus: b[2] || (b[2] = () => t.value = !0),
78
78
  onBlur: b[3] || (b[3] = () => t.value = !1),
79
79
  onKeyup: [
80
- E(v, ["esc"]),
81
- b[4] || (b[4] = E(z((u) => c(r.value), ["ctrl"]), ["enter"]))
80
+ L(y, ["esc"]),
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
- L("div", ie, [
85
- d.value || n.forceShowCloseBtn ? (p(), $(F, {
84
+ _("div", ue, [
85
+ p.value || r.forceShowCloseBtn ? (d(), V(H, {
86
86
  key: 0,
87
- icon: n.$core.state.isMobile ? "" : "",
87
+ icon: r.$core.state.isMobile ? "" : "",
88
88
  class: "top-editArea_button",
89
89
  color: "theme",
90
90
  styling: "soft",
91
- onClick: v
91
+ onClick: y
92
92
  }, O({ _: 2 }, [
93
- n.$core.state.isMobile ? void 0 : {
93
+ r.$core.state.isMobile ? void 0 : {
94
94
  name: "default",
95
- fn: A(() => [
96
- I(V(n.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(), $(F, {
100
+ ]), 1032, ["icon"])) : T("", !0),
101
+ p.value ? (d(), V(H, {
102
102
  key: 1,
103
103
  class: "top-editArea_button",
104
- icon: n.$core.state.isMobile ? "" : "",
105
- onClick: b[5] || (b[5] = (u) => c(r.value))
104
+ icon: r.$core.state.isMobile ? "" : "",
105
+ onClick: b[5] || (b[5] = (u) => c(n.value))
106
106
  }, O({ _: 2 }, [
107
- n.$core.state.isMobile ? void 0 : {
107
+ r.$core.state.isMobile ? void 0 : {
108
108
  name: "default",
109
- fn: A(() => [
110
- I(V(n.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(l, { emit: e }) {
128
- const s = l, a = w(s.modelValue);
129
- M(P(s.modelValue), () => {
130
- a.value = s.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 r = e, t = () => {
133
- r("update:modelValue", a.value);
132
+ const n = e, t = () => {
133
+ n("update:modelValue", a.value);
134
134
  };
135
- return (d, c) => (p(), f("div", de, [
136
- G(ee, W(d.input, {
137
- onKeydownCapture: c[0] || (c[0] = E(z((v) => a.value = d.modelValue, ["stop"]), ["esc"])),
138
- onKeydown: E(z(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
- "onUpdate:modelValue": c[1] || (c[1] = (v) => a.value = v)
140
+ "onUpdate:modelValue": c[1] || (c[1] = (y) => a.value = y)
141
141
  }), null, 16, ["onKeydown", "modelValue"]),
142
- a.value !== d.modelValue ? (p(), $(F, 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__ */ H({
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(l) {
168
- const e = U(l, "modelValue"), s = l, a = w(null);
167
+ setup(o) {
168
+ const e = U(o, "modelValue"), l = o, a = w(null);
169
169
  M(e, () => {
170
- var t, d, c, v, T;
171
- (t = s.radiosProps) != null && t.some((n) => n.value === e.value) || (e.value = ((c = (d = s.radiosProps) == null ? void 0 : d[0]) == null ? void 0 : c.value) ?? ""), (T = (v = a.value) == null ? void 0 : v.querySelector(".radioGroup_item-selected")) == null || T.scrollIntoView();
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
- const r = "radioGroup-" + Math.random();
174
- return (t, d) => (p(), f("div", {
173
+ const n = "radioGroup-" + Math.random();
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, K(t.radiosProps, (c) => (p(), f("label", {
185
- class: C({
184
+ (d(!0), f(E, null, K(t.radiosProps, (c) => (d(), f("label", {
185
+ class: A({
186
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: (v) => e.value = c.value
192
+ onClick: (y) => e.value = c.value
193
193
  }, [
194
- I(V(c.title) + " ", 1),
195
- t.showIndicator ? (p(), f("span", me)) : k("", !0),
196
- J(L("input", {
197
- "onUpdate:modelValue": d[0] || (d[0] = (v) => e.value = v),
198
- name: r,
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
+ 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), [
205
+ }, null, 8, ve), [
206
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__ */ H({
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(l) {
227
- const e = U(l, "modelValue"), s = (a) => {
228
- const r = [...e.value], t = r.indexOf(a);
229
- t === -1 ? r.push(a) : r.splice(t, 1), e.value = r;
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, r) => (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,9 +237,9 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
237
237
  "top-error": a.isError
238
238
  })
239
239
  }, [
240
- (p(!0), f(_, null, K(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
244
  "top-checkboxGroup_item-selected": e.value.includes(t.id),
245
245
  "top-forms-focusable": !0,
@@ -247,122 +247,122 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
247
247
  }),
248
248
  "data-top-icon": t.icon
249
249
  }, [
250
- L("input", {
250
+ _("input", {
251
251
  type: "checkbox",
252
252
  class: "top-unvisible",
253
253
  value: t.id,
254
254
  checked: e.value.includes(t.id),
255
255
  disabled: t.disabled,
256
- onChange: (d) => s(t.id)
257
- }, null, 40, he),
258
- I(" " + V(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" }, Te = /* @__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(l) {
270
- return (e, s) => (p(), f("div", ge, [
271
- I(V(e.name) + " ", 1),
272
- L("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: s[0] || (s[0] = (a) => e.$emit("delete", e.id)),
276
- onMousedown: s[1] || (s[1] = z(() => {
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
- }), ke = (l, e, s) => {
282
- const a = w([]), r = w(!1);
283
- let t = "", d;
284
- l && !l.params.limit && (l.params.limit = 100);
281
+ }), Ce = (o, e, l) => {
282
+ const a = w([]), n = w(!1);
283
+ let t = "", p;
284
+ o && !o.params.limit && (o.params.limit = 100);
285
285
  const c = async () => {
286
- if (!l) return;
287
- let u, o;
288
- if (s && (l.cache ??= /* @__PURE__ */ new Map(), o = JSON.stringify(l.params), u = l.cache.get(o), u))
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
289
  return u;
290
- if (r.value = !0, u = await l.call(), r.value = !1, u.errors) return;
290
+ if (n.value = !0, u = await o.call(), n.value = !1, u.errors) return;
291
291
  if (!Array.isArray(u.result)) {
292
292
  console.warn("В result ожидался массив");
293
293
  return;
294
294
  }
295
- const i = u.result.findIndex((y) => y.id === void 0 || y.name === void 0);
295
+ const i = u.result.findIndex((h) => h.id === void 0 || h.name === void 0);
296
296
  if (i !== -1) {
297
297
  console.warn(`В result[${i}] нет id или name`);
298
298
  return;
299
299
  }
300
- return s && l.cache.set(o, u), u;
301
- }, v = async () => {
302
- if (!l) return;
303
- l.params.offset = 0, l.params.search = t;
300
+ return l && o.cache.set(s, u), u;
301
+ }, y = async () => {
302
+ if (!o) return;
303
+ o.params.offset = 0, o.params.search = t;
304
304
  const u = await c();
305
- u && (d = u.nextOffset, a.value = u.result);
306
- }, T = async () => {
307
- if (!l || !d || r.value) return;
308
- l.params.offset = d, l.params.search = t;
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
309
  const u = await c();
310
- u && (d = u.nextOffset, a.value = a.value.concat(u.result));
311
- }, n = te(() => v(), 200);
310
+ u && (p = u.nextOffset, a.value = a.value.concat(u.result));
311
+ }, r = te(() => y(), 200);
312
312
  return {
313
- apiRequest: l,
313
+ apiRequest: o,
314
314
  items: a,
315
- isLoading: r,
316
- loadAppend: T,
317
- setSearchTextAndLoad: (u, o = !0) => {
318
- l && (u.length < e || u === t && a.value.length || (t = u, o ? n() : v()));
315
+ isLoading: n,
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, R = (l, e, s = !0) => s && e.id === null ? Array.isArray(l) ? l.some((a) => a.id === e.id && a.name === e.name) : e.name === l.name : Array.isArray(l) ? l.some((a) => a.id === e.id) : e.id === l.id, Ae = (l, e, s, a, r, 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
- }, v = () => {
326
- d.value = "", t.items.value = [];
327
- }, T = S(() => {
325
+ }, y = () => {
326
+ p.value = "", t.items.value = [];
327
+ }, k = S(() => {
328
328
  var i;
329
- const o = [];
330
- return !s && a.value && o.push(c), (i = e.value) == null || i.forEach((y) => o.push({ ...y })), o;
331
- }), n = S(() => {
332
- const o = d.value.toLowerCase(), i = re(o);
333
- let y = [];
334
- return T.value.forEach((m) => {
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
335
  const g = m.name.toLowerCase();
336
- (m.id === Number(o) || g.includes(o) || g.includes(i)) && (g === o || g === i ? y.unshift(m) : y.push(m));
337
- }), y.push(...t.items.value), r.value && d.value && (!y.length || y[0].name.toLowerCase() !== o) && y.push({
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
- }), s && (y = y.filter((m) => !R(l.value, m))), y;
339
+ name: p.value
340
+ }), l && (h = h.filter((m) => !J(o.value, m))), h;
341
341
  });
342
342
  return {
343
- searchText: d,
344
- resetSearch: v,
345
- items: T,
346
- itemsForShow: n,
343
+ searchText: p,
344
+ resetSearch: y,
345
+ items: k,
346
+ itemsForShow: r,
347
347
  selectNextItem: () => {
348
- if (!Array.isArray(l.value)) {
349
- const i = (n.value.findIndex((y) => y.id === l.value.id) + 1) % n.value.length;
350
- l.value = { ...n.value[i] };
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
351
  }
352
352
  },
353
- deleteItemById: async (o) => {
354
- Array.isArray(l.value) && (l.value = l.value.filter((i) => i.id !== o));
353
+ deleteItemById: async (s) => {
354
+ Array.isArray(o.value) && (o.value = o.value.filter((i) => i.id !== s));
355
355
  }
356
356
  };
357
- }, $e = {
357
+ }, Ve = {
358
358
  key: 0,
359
359
  class: "top-selector2_activeItems"
360
- }, Ve = {
360
+ }, we = {
361
361
  key: 1,
362
362
  class: "top-selector2_activeName top-ellipsis"
363
- }, we = /* @__PURE__ */ B({
363
+ }, _e = /* @__PURE__ */ B({
364
364
  __name: "selector2",
365
- props: /* @__PURE__ */ H({
365
+ props: /* @__PURE__ */ F({
366
366
  modelValue: {},
367
367
  items: { default: () => [] },
368
368
  multiselect: { type: Boolean },
@@ -384,24 +384,24 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
384
384
  modelModifiers: {}
385
385
  }),
386
386
  emits: ["update:modelValue"],
387
- setup(l) {
388
- const e = l, s = U(l, "modelValue"), a = w(null), r = ke(e.apiRequest, e.minLength || 0, e.useCache), t = Ae(s, P(e, "items"), e.multiselect, P(e, "appendAllValue"), P(e, "appendSearchToResult"), r), d = S(() => e.searchType === "inline" && e.multiselect || e.searchType === "inline" && X.state.isMobile ? "popup" : e.searchType), c = S(() => d.value === "inline" ? "TopInput" : "div");
389
- r.apiRequest && M(t.searchText, () => r.setSearchTextAndLoad(t.searchText.value));
390
- const v = (o) => {
391
- e.multiselect && Array.isArray(s.value) ? R(s.value, o) || (s.value = [...s.value, o]) : s.value = o;
392
- }, T = S(() => Array.isArray(s.value) || e.multiselect || !e.selectedAsPlaceholder ? e.placeholder : s.value.name || e.placeholder), n = () => {
393
- r.apiRequest && r.setSearchTextAndLoad(t.searchText.value, !1);
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
394
  }, b = () => {
395
- var o;
396
- (o = a.value) == null || o.focus(), t.searchText.value && t.resetSearch();
397
- }, u = (o) => {
398
- const i = o.target;
399
- i.scrollTop / (i.scrollHeight - i.offsetHeight) > 0.8 && r.loadAppend();
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();
400
400
  };
401
401
  return window.__STORYBOOK_PREVIEW__ && (M(
402
402
  () => e.multiselect,
403
403
  () => {
404
- s.value = e.multiselect ? [] : { id: null, name: "" };
404
+ l.value = e.multiselect ? [] : { id: null, name: "" };
405
405
  },
406
406
  { immediate: !0 }
407
407
  ), M(
@@ -411,114 +411,114 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
411
411
  location.reload();
412
412
  }, 300);
413
413
  }
414
- )), (o, i) => {
415
- const y = Z("top-focus");
416
- return p(), $(h(se), {
417
- onOpen: i[4] || (i[4] = (m) => n()),
414
+ )), (s, i) => {
415
+ const h = Z("top-focus");
416
+ return d(), V(v(ae), {
417
+ onOpen: i[4] || (i[4] = (m) => r()),
418
418
  onClose: i[5] || (i[5] = (m) => b()),
419
- onScrollContentList: i[6] || (i[6] = (m) => o.apiRequest ? u(m) : void 0),
419
+ onScrollContentList: i[6] || (i[6] = (m) => s.apiRequest ? u(m) : void 0),
420
420
  notch: !1,
421
421
  transitionDuration: 0
422
422
  }, O({
423
- opener: A(() => [
424
- J((p(), $(q(c.value), {
423
+ opener: $(() => [
424
+ j((d(), V(q(c.value), {
425
425
  ref: "subcomponentSelector",
426
- class: C({
426
+ class: A({
427
427
  "top-selector2": !0,
428
- "top-selector2-multiselect": o.multiselect,
429
- ["top-size_" + o.size]: !0,
430
- "top-disabled": o.disabled,
431
- "top-forms-focusable": !o.disabled,
432
- "top-error": o.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
433
433
  }),
434
434
  onKeydown: [
435
- i[1] || (i[1] = E(z((m) => m.currentTarget.click(), ["stop", "prevent"]), ["up", "down", "enter", "space"])),
436
- i[2] || (i[2] = E((m) => s.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"]))
437
437
  ],
438
438
  tabindex: "0"
439
439
  }, {
440
- default: A(() => [
441
- o.multiselect ? (p(), f("div", $e, [
442
- (p(!0), f(_, null, K(s.value, (m) => (p(), $(Te, {
440
+ default: $(() => [
441
+ s.multiselect ? (d(), f("div", Ve, [
442
+ (d(!0), f(E, null, K(l.value, (m) => (d(), V(ke, {
443
443
  id: m.id,
444
444
  name: m.name,
445
- onDelete: h(t).deleteItemById
445
+ onDelete: v(t).deleteItemById
446
446
  }, null, 8, ["id", "name", "onDelete"]))), 256))
447
- ])) : k("", !0),
448
- o.multiselect ? k("", !0) : (p(), f("span", Ve, V(Array.isArray(s.value) ? "" : s.value.name), 1)),
449
- o.addChanger && !o.multiselect && h(t).items.value.length > 1 && !o.disabled ? (p(), f("span", {
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
450
  key: 2,
451
451
  class: "top-changer top-changer-selector",
452
452
  "data-top-popup-disabled": "true",
453
453
  onClick: i[0] || (i[0] = //@ts-ignore
454
- (...m) => h(t).selectNextItem && h(t).selectNextItem(...m))
455
- })) : k("", !0)
454
+ (...m) => v(t).selectNextItem && v(t).selectNextItem(...m))
455
+ })) : T("", !0)
456
456
  ]),
457
457
  _: 1
458
458
  }, 40, ["class"])), [
459
459
  [
460
- y,
461
- o.isError,
460
+ h,
461
+ s.isError,
462
462
  void 0,
463
463
  { onupdate: !0 }
464
464
  ]
465
465
  ])
466
466
  ]),
467
- contentList: A(() => {
467
+ contentList: $(() => {
468
468
  var m;
469
469
  return [
470
- (p(!0), f(_, null, K(h(t).itemsForShow.value, (g) => (p(), $(h(N), {
471
- class: C({
472
- "top-active": !Array.isArray(s.value) && !o.multiselect && s.value.id === g.id && s.value.name === g.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
473
473
  }),
474
474
  key: g.id ?? void 0,
475
- closeByClick: !o.multiselect || h(X).state.isMobile,
476
- onClick: (Ee) => v(g)
475
+ closeByClick: !s.multiselect || v(X).state.isMobile,
476
+ onClick: (Ge) => y(g)
477
477
  }, {
478
- default: A(() => [
479
- o.$slots.item ? D(o.$slots, "item", {
478
+ default: $(() => [
479
+ s.$slots.item ? D(s.$slots, "item", {
480
480
  key: 0,
481
481
  item: g
482
- }) : (p(), f(_, { key: 1 }, [
483
- I(V(g.name), 1)
482
+ }) : (d(), f(E, { key: 1 }, [
483
+ I(C(g.name), 1)
484
484
  ], 64))
485
485
  ]),
486
486
  _: 2
487
487
  }, 1032, ["class", "closeByClick", "onClick"]))), 128)),
488
- !h(r).isLoading.value && !h(t).itemsForShow.value.length ? (p(), $(h(N), {
488
+ !v(n).isLoading.value && !v(t).itemsForShow.value.length ? (d(), V(v(N), {
489
489
  key: 0,
490
490
  type: "regular"
491
491
  }, {
492
- default: A(() => [
493
- I(V(o.$i18n.Common.No_results), 1)
492
+ default: $(() => [
493
+ I(C(s.$i18n.Common.No_results), 1)
494
494
  ]),
495
495
  _: 1
496
- })) : k("", !0),
497
- h(r).isLoading.value && (o.searchType !== "popup" || (m = o.apiRequest) != null && m.params.offset) ? (p(), $(h(N), {
496
+ })) : T("", !0),
497
+ v(n).isLoading.value && (s.searchType !== "popup" || (m = s.apiRequest) != null && m.params.offset) ? (d(), V(v(N), {
498
498
  key: 1,
499
499
  type: "regular"
500
500
  }, {
501
- default: A(() => [
502
- G(h(le), { type: "circles" })
501
+ default: $(() => [
502
+ z(v(le), { type: "circles" })
503
503
  ]),
504
504
  _: 1
505
- })) : k("", !0)
505
+ })) : T("", !0)
506
506
  ];
507
507
  }),
508
508
  _: 2
509
509
  }, [
510
- o.searchType === "popup" ? {
510
+ s.searchType === "popup" ? {
511
511
  name: "widget",
512
- fn: A(() => {
512
+ fn: $(() => {
513
513
  var m;
514
514
  return [
515
- G(h(ae), {
515
+ z(v(ne), {
516
516
  title: "Поиск",
517
517
  icon: "",
518
- modelValue: h(t).searchText.value,
519
- "onUpdate:modelValue": i[3] || (i[3] = (g) => h(t).searchText.value = g),
520
- isLoading: h(r).isLoading.value && !((m = o.apiRequest) != null && m.params.offset),
521
- placeholder: T.value
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
522
522
  }, null, 8, ["modelValue", "isLoading", "placeholder"])
523
523
  ];
524
524
  }),
@@ -537,31 +537,63 @@ const ie = { class: "top-editArea_footer" }, ue = /* @__PURE__ */ B({
537
537
  styling: { default: "default" },
538
538
  size: { default: "default" }
539
539
  },
540
- setup(l) {
541
- return (e, s) => (p(), f("div", {
542
- class: C({
540
+ setup(o) {
541
+ return (e, l) => (d(), f("div", {
542
+ class: A({
543
543
  "top-info": !0,
544
544
  ["top-size_" + e.size]: !0,
545
545
  ["top-info-styling_" + e.styling]: !0
546
546
  }),
547
547
  "data-top-icon": e.icon
548
548
  }, [
549
- L("div", Be, [
549
+ _("div", Be, [
550
550
  D(e.$slots, "default")
551
551
  ]),
552
- e.$slots.additional ? (p(), f("span", Se, [
552
+ e.$slots.additional ? (d(), f("span", Se, [
553
553
  D(e.$slots, "additional")
554
- ])) : k("", !0)
554
+ ])) : T("", !0)
555
555
  ], 10, Ie));
556
556
  }
557
- }), Ne = ue, Oe = pe, De = ve, Fe = be, He = we, Ue = ne, We = Le;
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);
587
+ }
588
+ }), Ue = de, We = ce, Xe = ye, je = ge, Je = _e, Re = ie, Ye = Le, Qe = Pe;
558
589
  export {
559
- Fe as TopCheckboxGroup,
560
- Ne as TopEditArea,
561
- Oe as TopEditInput,
562
- We as TopInfo,
563
- Ue as TopMenu,
564
- De as TopRadioGroup,
565
- He as TopSelector2
590
+ je as TopCheckboxGroup,
591
+ Ue as TopEditArea,
592
+ We as TopEditInput,
593
+ Ye as TopInfo,
594
+ Re as TopMenu,
595
+ Qe as TopPolicy,
596
+ Xe as TopRadioGroup,
597
+ Je as TopSelector2
566
598
  };
567
599
  //# sourceMappingURL=formsExt.js.map