@topvisor/ui 1.5.9-pnpm.6 → 1.5.10-animation.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 (166) hide show
  1. package/.chunks/api-nVBtzTDk.es.amd.js +2 -0
  2. package/.chunks/api-nVBtzTDk.es.amd.js.map +1 -0
  3. package/.chunks/{api-lAoAK33f.es.js → api-nVBtzTDk.es.js} +101 -51
  4. package/.chunks/api-nVBtzTDk.es.js.map +1 -0
  5. package/.chunks/app-BbV6AslA.es.amd.js +2 -0
  6. package/.chunks/app-BbV6AslA.es.amd.js.map +1 -0
  7. package/.chunks/{app-CY6euLQJ.es.js → app-BbV6AslA.es.js} +26 -25
  8. package/.chunks/{app-CY6euLQJ.es.js.map → app-BbV6AslA.es.js.map} +1 -1
  9. package/.chunks/{datepicker-CeUbso62.es.amd.js → datepicker-CpnGeB5y.es.amd.js} +2 -2
  10. package/.chunks/{datepicker-CeUbso62.es.amd.js.map → datepicker-CpnGeB5y.es.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-CeUbso62.es.js → datepicker-CpnGeB5y.es.js} +2 -2
  12. package/.chunks/{datepicker-CeUbso62.es.js.map → datepicker-CpnGeB5y.es.js.map} +1 -1
  13. package/.chunks/{dialog-Cnx_s8X1.es.amd.js → dialog-CiK4MPcB.es.amd.js} +2 -2
  14. package/.chunks/{dialog-Cnx_s8X1.es.amd.js.map → dialog-CiK4MPcB.es.amd.js.map} +1 -1
  15. package/.chunks/{dialog-Cnx_s8X1.es.js → dialog-CiK4MPcB.es.js} +3 -3
  16. package/.chunks/{dialog-Cnx_s8X1.es.js.map → dialog-CiK4MPcB.es.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.amd.js → dialog_regionSelectorRegions-CRUwGUuz.es.amd.js} +2 -2
  18. package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.amd.js.map → dialog_regionSelectorRegions-CRUwGUuz.es.amd.js.map} +1 -1
  19. package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.js → dialog_regionSelectorRegions-CRUwGUuz.es.js} +4 -4
  20. package/.chunks/{dialog_regionSelectorRegions-BCEJBT1H.es.js.map → dialog_regionSelectorRegions-CRUwGUuz.es.js.map} +1 -1
  21. package/.chunks/forms-CjJD60m3.es.amd.js +2 -0
  22. package/.chunks/forms-CjJD60m3.es.amd.js.map +1 -0
  23. package/.chunks/{forms-Ch1q0UUt.es.js → forms-CjJD60m3.es.js} +601 -638
  24. package/.chunks/forms-CjJD60m3.es.js.map +1 -0
  25. package/.chunks/formsExt-B9hGGznb.es.amd.js +2 -0
  26. package/.chunks/formsExt-B9hGGznb.es.amd.js.map +1 -0
  27. package/.chunks/{formsExt-DtFeVRvE.es.js → formsExt-B9hGGznb.es.js} +110 -111
  28. package/.chunks/{formsExt-DtFeVRvE.es.js.map → formsExt-B9hGGznb.es.js.map} +1 -1
  29. package/.chunks/lazy-DQU-hLos.es.js.map +1 -1
  30. package/.chunks/mocker-h3ROH-VB.es.js.map +1 -1
  31. package/.chunks/{notice-40E7zRe5.es.amd.js → notice-BSVUBQ4B.es.amd.js} +2 -2
  32. package/.chunks/{notice-40E7zRe5.es.amd.js.map → notice-BSVUBQ4B.es.amd.js.map} +1 -1
  33. package/.chunks/{notice-40E7zRe5.es.js → notice-BSVUBQ4B.es.js} +2 -2
  34. package/.chunks/{notice-40E7zRe5.es.js.map → notice-BSVUBQ4B.es.js.map} +1 -1
  35. package/.chunks/popup-BoCCkzOM.es.amd.js +2 -0
  36. package/.chunks/popup-BoCCkzOM.es.amd.js.map +1 -0
  37. package/.chunks/{popup-l46cef9d.es.js → popup-BoCCkzOM.es.js} +26 -25
  38. package/.chunks/{popup-l46cef9d.es.js.map → popup-BoCCkzOM.es.js.map} +1 -1
  39. package/.chunks/{popup-DA17NrM5.es.amd.js → popup-q1PRZblX.es.amd.js} +2 -2
  40. package/.chunks/{popup-DA17NrM5.es.amd.js.map → popup-q1PRZblX.es.amd.js.map} +1 -1
  41. package/.chunks/{popup-DA17NrM5.es.js → popup-q1PRZblX.es.js} +3 -3
  42. package/.chunks/{popup-DA17NrM5.es.js.map → popup-q1PRZblX.es.js.map} +1 -1
  43. package/.chunks/utils-DzPB2u_5.es.amd.js +2 -0
  44. package/.chunks/utils-DzPB2u_5.es.amd.js.map +1 -0
  45. package/.chunks/{utils-C0Y5ido8.es.js → utils-DzPB2u_5.es.js} +5 -5
  46. package/.chunks/utils-DzPB2u_5.es.js.map +1 -0
  47. package/.chunks/utils-Xb6J5WcU.es.amd.js +2 -0
  48. package/.chunks/utils-Xb6J5WcU.es.amd.js.map +1 -0
  49. package/.chunks/{utils-hK-QjvqM.es.js → utils-Xb6J5WcU.es.js} +3 -3
  50. package/.chunks/{utils-hK-QjvqM.es.js.map → utils-Xb6J5WcU.es.js.map} +1 -1
  51. package/.chunks/worker-F-Y1IEi2.es.amd.js +2 -0
  52. package/.chunks/worker-F-Y1IEi2.es.amd.js.map +1 -0
  53. package/.chunks/{worker-D-5BEVm7.es.js → worker-F-Y1IEi2.es.js} +4 -3
  54. package/.chunks/{worker-D-5BEVm7.es.js.map → worker-F-Y1IEi2.es.js.map} +1 -1
  55. package/api/additional.amd.js +1 -1
  56. package/api/additional.amd.js.map +1 -1
  57. package/api/additional.js +1 -1
  58. package/api/index.amd.js +1 -1
  59. package/api/index.amd.js.map +1 -1
  60. package/api/index.js +2 -3
  61. package/assets/schedule.css +1 -1
  62. package/assets/themes/dark-th.css +1 -1
  63. package/assets/themes/dark.css +1 -1
  64. package/assets/themes/light.css +1 -1
  65. package/autoload-css-manifest.amd.json +4 -4
  66. package/autoload-css-manifest.json +4 -4
  67. package/charts/charts.amd.js +1 -1
  68. package/charts/charts.amd.js.map +1 -1
  69. package/charts/charts.js +1 -1
  70. package/charts/charts.js.map +1 -1
  71. package/core/app.amd.js +1 -1
  72. package/core/app.amd.js.map +1 -1
  73. package/core/app.js +3 -3
  74. package/dialog/dialog.amd.js +1 -1
  75. package/dialog/dialog.amd.js.map +1 -1
  76. package/dialog/dialog.js +2 -2
  77. package/extra/extra.amd.js +1 -1
  78. package/extra/extra.amd.js.map +1 -1
  79. package/extra/extra.js +2 -0
  80. package/extra/extra.js.map +1 -1
  81. package/forms/forms.amd.js +1 -1
  82. package/forms/forms.amd.js.map +1 -1
  83. package/forms/forms.js +1 -1
  84. package/formsExt/formsExt.amd.js +1 -1
  85. package/formsExt/formsExt.amd.js.map +1 -1
  86. package/formsExt/formsExt.js +1 -1
  87. package/layout/layout.amd.js +1 -1
  88. package/layout/layout.amd.js.map +1 -1
  89. package/layout/layout.js +1 -1
  90. package/package.json +1 -1
  91. package/popup/popup.amd.js +1 -1
  92. package/popup/popup.amd.js.map +1 -1
  93. package/popup/popup.js +1 -1
  94. package/popup/worker.amd.js +1 -1
  95. package/popup/worker.amd.js.map +1 -1
  96. package/popup/worker.js +1 -1
  97. package/project/project.amd.js +1 -1
  98. package/project/project.amd.js.map +1 -1
  99. package/project/project.js +245 -246
  100. package/project/project.js.map +1 -1
  101. package/schedule/schedule.amd.js +1 -1
  102. package/schedule/schedule.amd.js.map +1 -1
  103. package/schedule/schedule.js +110 -110
  104. package/schedule/schedule.js.map +1 -1
  105. package/src/components/schedule/schedule/{compoents → components}/emails/selector/types.d.ts +6 -2
  106. package/src/components/schedule/schedule/composables/useModeOptions.d.ts +0 -1
  107. package/src/components/schedule/schedule/stories/play/play.d.ts +5 -0
  108. package/src/components/schedule/schedule/types.d.ts +3 -3
  109. package/src/components/schedule/schedule/utils.d.ts +1 -1
  110. package/src/components/schedule/schedule.d.ts +2 -2
  111. package/tabsView/tabsView.amd.js +1 -1
  112. package/tabsView/tabsView.amd.js.map +1 -1
  113. package/tabsView/tabsView.js +2 -2
  114. package/tabsView/tabsView.js.map +1 -1
  115. package/utils/clipboard.amd.js +1 -1
  116. package/utils/clipboard.amd.js.map +1 -1
  117. package/utils/clipboard.js +1 -1
  118. package/utils/date.amd.js +1 -1
  119. package/utils/date.amd.js.map +1 -1
  120. package/utils/date.js +1 -1
  121. package/utils/device.amd.js +1 -1
  122. package/utils/device.amd.js.map +1 -1
  123. package/utils/device.js +1 -1
  124. package/utils/dom.amd.js.map +1 -1
  125. package/utils/dom.js.map +1 -1
  126. package/utils/lodash.amd.js +1 -1
  127. package/utils/lodash.amd.js.map +1 -1
  128. package/utils/lodash.js +1 -1
  129. package/utils/price.amd.js +1 -1
  130. package/utils/price.amd.js.map +1 -1
  131. package/utils/price.js +1 -1
  132. package/utils/scroll.js.map +1 -1
  133. package/utils/string.amd.js +1 -1
  134. package/utils/string.amd.js.map +1 -1
  135. package/utils/string.js +1 -1
  136. package/utils/string.js.map +1 -1
  137. package/utils/system.amd.js.map +1 -1
  138. package/utils/system.js.map +1 -1
  139. package/.chunks/api-lAoAK33f.es.amd.js +0 -2
  140. package/.chunks/api-lAoAK33f.es.amd.js.map +0 -1
  141. package/.chunks/api-lAoAK33f.es.js.map +0 -1
  142. package/.chunks/app-CY6euLQJ.es.amd.js +0 -2
  143. package/.chunks/app-CY6euLQJ.es.amd.js.map +0 -1
  144. package/.chunks/field-DEusYVqS.es.amd.js +0 -2
  145. package/.chunks/field-DEusYVqS.es.amd.js.map +0 -1
  146. package/.chunks/field-DEusYVqS.es.js +0 -16
  147. package/.chunks/field-DEusYVqS.es.js.map +0 -1
  148. package/.chunks/forms-Ch1q0UUt.es.amd.js +0 -2
  149. package/.chunks/forms-Ch1q0UUt.es.amd.js.map +0 -1
  150. package/.chunks/forms-Ch1q0UUt.es.js.map +0 -1
  151. package/.chunks/formsExt-DtFeVRvE.es.amd.js +0 -2
  152. package/.chunks/formsExt-DtFeVRvE.es.amd.js.map +0 -1
  153. package/.chunks/popup-l46cef9d.es.amd.js +0 -2
  154. package/.chunks/popup-l46cef9d.es.amd.js.map +0 -1
  155. package/.chunks/utils-C0Y5ido8.es.amd.js +0 -2
  156. package/.chunks/utils-C0Y5ido8.es.amd.js.map +0 -1
  157. package/.chunks/utils-C0Y5ido8.es.js.map +0 -1
  158. package/.chunks/utils-hK-QjvqM.es.amd.js +0 -2
  159. package/.chunks/utils-hK-QjvqM.es.amd.js.map +0 -1
  160. package/.chunks/worker-D-5BEVm7.es.amd.js +0 -2
  161. package/.chunks/worker-D-5BEVm7.es.amd.js.map +0 -1
  162. /package/src/components/schedule/schedule/{compoents → components}/calendar/composables/useDaysByCalendarMode.d.ts +0 -0
  163. /package/src/components/schedule/schedule/{compoents → components}/calendar/types.d.ts +0 -0
  164. /package/src/components/schedule/schedule/{compoents → components}/emails/types.d.ts +0 -0
  165. /package/src/components/schedule/schedule/{compoents → components}/socials/types.d.ts +0 -0
  166. /package/src/components/schedule/schedule/{compoents → components}/timeSelector/types.d.ts +0 -0
@@ -5,12 +5,12 @@
5
5
  _autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
6
6
  /* end import css */
7
7
 
8
- import { E as e, O as t, c as n, h as r, n as i } from "../.chunks/forms-Ch1q0UUt.es.js";
9
- import "../.chunks/app-CY6euLQJ.es.js";
8
+ import { E as e, O as t, c as n, h as r, n as i } from "../.chunks/forms-CjJD60m3.es.js";
9
+ import "../.chunks/app-BbV6AslA.es.js";
10
10
  import { isEmail as a } from "../utils/check.js";
11
11
  import { numberEnding as o } from "../utils/string.js";
12
12
  import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, mergeModels as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S, renderList as C, renderSlot as w, resolveComponent as T, toDisplayString as E, toValue as D, unref as O, useModel as k, watch as A, withCtx as j, withKeys as ee, withModifiers as M } from "vue";
13
- //#region src/components/schedule/schedule/compoents/calendar/composables/useDaysByCalendarMode.ts
13
+ //#region src/components/schedule/schedule/components/calendar/composables/useDaysByCalendarMode.ts
14
14
  var N = (t) => {
15
15
  let n = e();
16
16
  return c(() => {
@@ -86,10 +86,10 @@ var N = (t) => {
86
86
  ...t
87
87
  }, n.value = r;
88
88
  }, o = () => {
89
- n.value = [{
89
+ n.value = [...n.value, {
90
90
  hour: "0",
91
91
  minute: "0"
92
- }, ...n.value];
92
+ }];
93
93
  }, c = (e) => {
94
94
  n.value = n.value.filter((t, n) => n !== e);
95
95
  };
@@ -103,6 +103,7 @@ var N = (t) => {
103
103
  class: "top-scheduleTimeSelector_hour",
104
104
  modelValue: e.hour,
105
105
  options: O(r),
106
+ availableCustomValue: "",
106
107
  "onUpdate:modelValue": (e) => a(s, { hour: e })
107
108
  }, null, 8, [
108
109
  "modelValue",
@@ -179,10 +180,7 @@ var N = (t) => {
179
180
  checked: n.value.includes("ALL") || n.value.includes(e.value),
180
181
  onChange: (t) => l(e.value),
181
182
  tabindex: "0"
182
- }, null, 40, z), f("span", {
183
- class: "top-scheduleCalendar_calendarDayTitle",
184
- "data-top-icon": e.isIcon ? e.title : void 0
185
- }, [e.isIcon ? u("", !0) : (x(), d(s, { key: 0 }, [p(E(e.title), 1)], 64))], 8, B)]))), 128))]),
183
+ }, null, 40, z), f("span", { "data-top-icon": e.isIcon ? e.title : void 0 }, [e.isIcon ? u("", !0) : (x(), d(s, { key: 0 }, [p(E(e.title), 1)], 64))], 8, B)]))), 128))]),
186
184
  f("span", { class: v({
187
185
  "top-scheduleCalendar_selectionSummary": !0,
188
186
  "top-error": !n.value.length
@@ -203,10 +201,10 @@ var N = (t) => {
203
201
  "onDemand",
204
202
  "dayOfWeek",
205
203
  "dayOfMonth"
206
- ], K = (t, n) => {
204
+ ], K = ["onDemand", "afterCheck"], q = (t, n) => {
207
205
  let r = e();
208
206
  return c(() => {
209
- let e = t.type === "report" ? [...G, "afterCheck"] : [...G];
207
+ let e = t.type === "go" ? [...G] : [...K];
210
208
  t.extraMods && e.push(...t.extraMods), e.includes(n.value) || e.push(n.value);
211
209
  let i = {
212
210
  onDemand: r.Projects.Settings_on_demand,
@@ -220,25 +218,25 @@ var N = (t) => {
220
218
  title: i[e]
221
219
  }));
222
220
  });
223
- }, q = (e) => ({
221
+ }, te = (e) => ({
224
222
  days: [...e.days],
225
223
  times: e.times.map((e) => ({ ...e }))
226
- }), te = (e, t) => {
224
+ }), J = (e, t) => {
227
225
  let n = {
228
226
  daysByMode: {},
229
227
  timesByMode: {}
230
228
  };
231
229
  return A(e, () => {
232
- let r = q(e.value);
230
+ let r = te(e.value);
233
231
  n.daysByMode[t.value] = r.days, n.timesByMode[U(t.value) ? "calendar" : t.value] = r.times;
234
232
  }, {
235
233
  deep: !0,
236
234
  immediate: !0
237
235
  }), n;
238
- }, J = { class: "top-schedule_header" }, Y = { class: "top-schedule_headerTitle" }, X = {
236
+ }, Y = { class: "top-schedule_header" }, X = { class: "top-schedule_headerTitle" }, Z = {
239
237
  key: 0,
240
238
  class: "top-schedule_body"
241
- }, Z = { key: 2 }, Q = /* @__PURE__ */ h({
239
+ }, Q = { key: 2 }, ne = /* @__PURE__ */ h({
242
240
  __name: "schedule",
243
241
  props: /*@__PURE__*/ g({
244
242
  modelValue: {},
@@ -252,54 +250,45 @@ var N = (t) => {
252
250
  }),
253
251
  emits: ["update:modelValue"],
254
252
  setup(e, { slots: t }) {
255
- let n = String(Math.floor(Math.random() * 7) + 1), r = e, a = k(e, "modelValue"), o = S(W(a.value.days)), s = K(r, o), c = H(), p = te(a, o);
253
+ let n = String(Math.floor(Math.random() * 7) + 1), r = e, a = k(e, "modelValue"), o = S(W(a.value.days)), s = q(r, o), c = H(), p = J(a, o);
256
254
  return A(() => a.value.days, () => o.value = W(a.value.days, o.value), {
257
255
  deep: !0,
258
256
  immediate: !0
259
- }), A(o, (e) => {
260
- let t = p.daysByMode[e], r = p.timesByMode[U(e) ? "calendar" : e];
257
+ }), A(o, (e, t) => {
258
+ let r = p.daysByMode[e], i = p.timesByMode[U(e) ? "calendar" : e], o = {}, s = t;
261
259
  switch (e) {
262
260
  case "onDemand":
263
- a.value = {
264
- days: [],
265
- times: []
266
- };
261
+ (s || a.value.days.length) && (o.days = []), (s || a.value.times.length) && (o.times = []);
267
262
  break;
268
263
  case "dayOfWeek":
269
264
  case "dayOfMonth":
270
- a.value = {
271
- ...a.value,
272
- days: t ?? ["ALL"],
273
- times: r?.length ? r : [{
274
- hour: n,
275
- minute: "30"
276
- }]
277
- };
265
+ (s || !a.value.days.length) && (o.days = r ?? ["ALL"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
266
+ hour: n,
267
+ minute: "0"
268
+ }]);
278
269
  break;
279
270
  case "afterYandexUpdated":
280
- a.value = {
281
- days: ["YANDEX_UPDATE"],
282
- times: r?.length ? r : [{
283
- hour: "1",
284
- minute: "0"
285
- }]
286
- };
271
+ (s || a.value.days[0] !== "YANDEX_UPDATE") && (o.days = ["YANDEX_UPDATE"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
272
+ hour: "1",
273
+ minute: "0"
274
+ }]);
287
275
  break;
288
- case "afterCheck": a.value = {
289
- days: ["CHECK_POSITIONS"],
290
- times: r?.length ? r : [{
291
- hour: "0",
292
- minute: "30"
293
- }]
294
- };
276
+ case "afterCheck": (s || a.value.days[0] !== "CHECK_POSITIONS") && (o.days = ["CHECK_POSITIONS"]), (s || !a.value.times.length) && (o.times = i?.length ? i : [{
277
+ hour: "0",
278
+ minute: "0"
279
+ }]);
295
280
  }
296
- }, { immediate: !0 }), (n, r) => (x(), d("div", { class: v(["top-schedule", "top-schedule-type_" + e.type]) }, [f("div", J, [f("div", Y, E(e.title ?? (e.type === "go" ? n.$i18n.Projects.Checks : n.$i18n.Projects.Reports)), 1), m(i, {
281
+ Object.keys(o).length && (a.value = {
282
+ ...a.value,
283
+ ...o
284
+ });
285
+ }, { immediate: !0 }), (n, r) => (x(), d("div", { class: v(["top-schedule", "top-schedule-type_" + e.type]) }, [f("div", Y, [f("div", X, E(e.title ?? (e.type === "go" ? n.$i18n.Projects.Checks : n.$i18n.Projects.Reports)), 1), m(i, {
297
286
  class: "top-schedule_headerMods",
298
287
  modelValue: o.value,
299
288
  "onUpdate:modelValue": r[0] ||= (e) => o.value = e,
300
289
  options: O(s),
301
290
  size: "s"
302
- }, null, 8, ["modelValue", "options"])]), o.value !== "onDemand" && (O(U)(o.value) || o.value === "afterYandexUpdated" || t.settings) ? (x(), d("div", X, [
291
+ }, null, 8, ["modelValue", "options"])]), o.value !== "onDemand" && (O(U)(o.value) || o.value === "afterYandexUpdated" || t.default) ? (x(), d("div", Z, [
303
292
  O(U)(o.value) ? (x(), l(V, {
304
293
  key: 0,
305
294
  modelValue: a.value.days,
@@ -322,86 +311,96 @@ var N = (t) => {
322
311
  options: O(c),
323
312
  size: "s"
324
313
  }, null, 8, ["modelValue", "options"])) : u("", !0),
325
- O(U)(o.value) || o.value === "afterYandexUpdated" && t.settings ? (x(), d("hr", Z)) : u("", !0),
326
- w(n.$slots, "settings", { mode: o.value })
314
+ (O(U)(o.value) || o.value === "afterYandexUpdated") && t.default ? (x(), d("hr", Q)) : u("", !0),
315
+ w(n.$slots, "default", { mode: o.value })
327
316
  ])) : u("", !0)], 2));
328
317
  }
329
- }), ne = /* @__PURE__ */ h({
318
+ }), re = /* @__PURE__ */ h({
330
319
  __name: "selector",
331
- props: {
320
+ props: /*@__PURE__*/ g({
332
321
  modelValue: {},
333
322
  emails: { default: () => [] },
323
+ maxEmailsCount: {},
334
324
  getEmailSuggestions: {
335
325
  type: Function,
336
326
  default: () => []
337
327
  }
338
- },
339
- emits: ["update:modelValue", "submit"],
328
+ }, {
329
+ modelValue: { required: !0 },
330
+ modelModifiers: {}
331
+ }),
332
+ emits: /*@__PURE__*/ g(["update:modelValue", "submit"], ["update:modelValue"]),
340
333
  setup(i, { emit: o }) {
341
- let s = o, c = i, l = o, u = e(), f = t.$, p = S(), h = S(), g = null, v = {}, C = (e) => e.filter((e) => !c.emails.includes(e)), w = (e = c.modelValue) => {
334
+ let s = i, f = k(i, "modelValue"), p = o, h = e(), g = t.$, v = S(), C = S(), w = null, T = {}, E = c(() => !!s.maxEmailsCount && s.emails.length >= s.maxEmailsCount), D = (e) => e.filter((e) => !s.emails.includes(e)), O = (e = f.value) => {
342
335
  let n = String(e).trim();
343
336
  if (n) {
344
337
  if (!a(n)) {
345
- t.notice(u.Common.Enter_valid_email_notice, "error");
338
+ t.notice(h.Common.Enter_valid_email_notice, "error");
346
339
  return;
347
340
  }
348
- l("submit", n);
341
+ p("submit", n);
349
342
  }
350
- }, T = async () => {
351
- if (await _(), g = h.value?.$el.querySelector("input") ?? null, g) {
352
- if (!f?.ui?.autocomplete) {
343
+ }, A = async () => {
344
+ if (await _(), w = C.value?.$el.querySelector("input") ?? null, w) {
345
+ if (!g?.ui?.autocomplete) {
353
346
  console.info("Для работы autocomplete требуется глобальная загрузка jQuery UI Autocomplete");
354
347
  return;
355
348
  }
356
- f(g).autocomplete({
357
- appendTo: p.value,
349
+ g(w).autocomplete({
350
+ appendTo: v.value,
358
351
  minLength: 0,
359
352
  source: async (e, t) => {
360
353
  let n = e.term;
361
- n in v || (v[n] = await c.getEmailSuggestions(n)), t(C(v[n]).map((e) => ({
354
+ n in T || (T[n] = await s.getEmailSuggestions(n)), t(D(T[n]).map((e) => ({
362
355
  label: e,
363
356
  value: e
364
357
  })));
365
358
  },
366
359
  select: (e, t) => {
367
- t.item && g && (e.preventDefault(), w(t.item.value), l("update:modelValue", ""), f(g).trigger("focus"));
360
+ t.item && w && (e.preventDefault(), O(t.item.value), f.value = "", g(w).trigger("focus"));
368
361
  }
369
- }), f(g).attr("autocomplete", "disabled"), f(g).on("focus.scheduleEmailSelector", () => {
370
- g && f(g).trigger("input");
362
+ }), g(w).attr("autocomplete", "disabled"), g(w).on("focus.scheduleEmailSelector", () => {
363
+ w && g(w).trigger("input");
371
364
  });
372
365
  }
373
366
  };
374
367
  return b(() => {
375
- T();
368
+ A();
376
369
  }), y(() => {
377
- f?.ui?.autocomplete && g && (f(g).off("focus.scheduleEmailSelector"), f(g).autocomplete("destroy"));
370
+ g?.ui?.autocomplete && w && (g(w).off("focus.scheduleEmailSelector"), g(w).autocomplete("destroy"));
378
371
  }), (e, t) => (x(), d("div", {
379
372
  class: "top-scheduleEmailSelector",
380
373
  ref_key: "elRootRef",
381
- ref: p
374
+ ref: v
382
375
  }, [m(n, {
383
376
  ref_key: "elInputRef",
384
- ref: h,
385
- modelValue: i.modelValue,
386
- "onUpdate:modelValue": t[1] ||= (e) => s("update:modelValue", e),
387
- onKeydown: t[2] ||= ee(M((e) => w(), ["prevent"]), ["enter"]),
377
+ ref: C,
378
+ modelValue: f.value,
379
+ "onUpdate:modelValue": t[1] ||= (e) => f.value = e,
380
+ onKeydown: t[2] ||= ee(M((e) => O(), ["prevent"]), ["enter"]),
388
381
  title: e.$i18n.Common.Enter_email,
389
382
  type: "email",
390
- size: "l"
383
+ size: "m",
384
+ disabled: E.value
391
385
  }, {
392
- default: j(() => [m(r, {
386
+ default: j(() => [E.value ? u("", !0) : (x(), l(r, {
387
+ key: 0,
393
388
  class: "top-scheduleEmailSelector_submit",
394
389
  color: "theme",
395
390
  icon: "",
396
- onClick: t[0] ||= M((e) => w(), ["prevent"])
397
- })]),
391
+ onClick: t[0] ||= M((e) => O(), ["prevent"])
392
+ }))]),
398
393
  _: 1
399
- }, 8, ["modelValue", "title"])], 512));
394
+ }, 8, [
395
+ "modelValue",
396
+ "title",
397
+ "disabled"
398
+ ])], 512));
400
399
  }
401
- }), re = { class: "top-scheduleEmail" }, ie = { class: "top-scheduleEmail_title" }, ae = {
402
- key: 1,
400
+ }), ie = { class: "top-scheduleEmail" }, ae = { class: "top-scheduleEmail_title" }, oe = {
401
+ key: 0,
403
402
  class: "top-scheduleEmail_emails"
404
- }, oe = { class: "top-ellipsis1" }, $ = /* @__PURE__ */ h({
403
+ }, $ = { class: "top-ellipsis1" }, se = /* @__PURE__ */ h({
405
404
  __name: "emails",
406
405
  props: {
407
406
  emails: { default: () => [] },
@@ -409,49 +408,50 @@ var N = (t) => {
409
408
  type: Function,
410
409
  default: () => []
411
410
  },
412
- maxEmailsCount: { default: -1 }
411
+ maxEmailsCount: {}
413
412
  },
414
413
  emits: ["add:email", "remove:email"],
415
414
  setup(e, { emit: t }) {
416
- let n = t, r = e, i = t, a = S(""), o = (e) => {
415
+ let n = e, r = t, i = S(""), a = (e) => {
417
416
  let t = e.trim();
418
- if (!t || r.emails.includes(t)) {
419
- a.value = "";
417
+ if (!t || n.emails.includes(t)) {
418
+ i.value = "";
420
419
  return;
421
420
  }
422
- i("add:email", t), a.value = "";
421
+ r("add:email", t), i.value = "";
423
422
  };
424
- return (t, r) => {
425
- let i = T("TopButton");
426
- return x(), d("div", re, [
427
- f("div", ie, E(t.$i18n.Projects.Reports_send_to_address) + " E-mail: ", 1),
428
- e.maxEmailsCount && e.emails.length === e.maxEmailsCount ? u("", !0) : (x(), l(ne, {
429
- key: 0,
430
- modelValue: a.value,
431
- "onUpdate:modelValue": r[0] ||= (e) => a.value = e,
432
- getEmailSuggestions: e.getEmailSuggestions,
423
+ return (t, n) => {
424
+ let o = T("TopButton");
425
+ return x(), d("div", ie, [
426
+ f("div", ae, E(t.$i18n.Projects.Reports_send_to_address) + " E-mail: ", 1),
427
+ m(re, {
428
+ modelValue: i.value,
429
+ "onUpdate:modelValue": n[0] ||= (e) => i.value = e,
433
430
  emails: e.emails,
434
- onSubmit: o
431
+ maxEmailsCount: e.maxEmailsCount,
432
+ getEmailSuggestions: e.getEmailSuggestions,
433
+ onSubmit: a
435
434
  }, null, 8, [
436
435
  "modelValue",
437
- "getEmailSuggestions",
438
- "emails"
439
- ])),
440
- e.emails.length ? (x(), d("div", ae, [(x(!0), d(s, null, C(e.emails, (e) => (x(), d("div", {
436
+ "emails",
437
+ "maxEmailsCount",
438
+ "getEmailSuggestions"
439
+ ]),
440
+ e.emails.length ? (x(), d("div", oe, [(x(!0), d(s, null, C(e.emails, (e) => (x(), d("div", {
441
441
  class: "top-scheduleEmail_emailsItem",
442
442
  key: e
443
- }, [f("span", oe, E(e), 1), m(i, {
444
- onClick: (t) => n("remove:email", e),
443
+ }, [f("span", $, E(e), 1), m(o, {
444
+ onClick: (t) => r("remove:email", e),
445
445
  color: "theme",
446
446
  icon: ""
447
447
  }, null, 8, ["onClick"])]))), 128))])) : u("", !0)
448
448
  ]);
449
449
  };
450
450
  }
451
- }), se = { class: "top-scheduleSocials" }, ce = { class: "top-scheduleSocials_title" }, le = { class: "top-scheduleSocials_channels" }, ue = ["data-top-icon"], de = { class: "top-scheduleSocials_channelLabel top-ellipsis1" }, fe = {
451
+ }), ce = { class: "top-scheduleSocials" }, le = { class: "top-scheduleSocials_title" }, ue = { class: "top-scheduleSocials_channels" }, de = ["data-top-icon"], fe = { class: "top-scheduleSocials_channelLabel top-ellipsis1" }, pe = {
452
452
  key: 0,
453
453
  class: "top-scheduleSocials_channel"
454
- }, pe = ["data-top-icon"], me = ["href"], he = /* @__PURE__ */ h({
454
+ }, me = ["data-top-icon"], he = ["href"], ge = /* @__PURE__ */ h({
455
455
  __name: "socials",
456
456
  props: {
457
457
  channels: {},
@@ -465,15 +465,15 @@ var N = (t) => {
465
465
  };
466
466
  return (n, a) => {
467
467
  let o = T("TopButton"), c = T("TopSwitcher");
468
- return x(), d("div", se, [f("div", ce, E(n.$i18n.Projects.Reports_send_to_address), 1), f("div", le, [(x(!0), d(s, null, C(e.channels, (e) => (x(), d("div", {
468
+ return x(), d("div", ce, [f("div", le, E(n.$i18n.Projects.Reports_send_to_address), 1), f("div", ue, [(x(!0), d(s, null, C(e.channels, (e) => (x(), d("div", {
469
469
  class: "top-scheduleSocials_channel",
470
470
  key: `${e.source}-${e.id}`
471
471
  }, [
472
472
  f("span", {
473
473
  class: "top-scheduleSocials_channelIcon",
474
474
  "data-top-icon": i[e.source]
475
- }, null, 8, ue),
476
- f("span", de, E(e.label), 1),
475
+ }, null, 8, de),
476
+ f("span", fe, E(e.label), 1),
477
477
  e.settingLink ? (x(), l(o, {
478
478
  key: 0,
479
479
  class: "top-scheduleSocials_channelSettings",
@@ -493,18 +493,18 @@ var N = (t) => {
493
493
  selected: n
494
494
  })
495
495
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
496
- ]))), 128)), (x(!0), d(s, null, C(e.connectors, (e) => (x(), d(s, { key: e.source }, [r(e.source) ? u("", !0) : (x(), d("div", fe, [f("span", {
496
+ ]))), 128)), (x(!0), d(s, null, C(e.connectors, (e) => (x(), d(s, { key: e.source }, [r(e.source) ? u("", !0) : (x(), d("div", pe, [f("span", {
497
497
  class: "top-scheduleSocials_channelIcon",
498
498
  "data-top-icon": i[e.source]
499
- }, null, 8, pe), f("a", {
499
+ }, null, 8, me), f("a", {
500
500
  class: "top-scheduleSocials_channelLabel top-ellipsis1",
501
501
  href: e.connectLink,
502
502
  target: "_blank"
503
- }, E(e.connectLabel), 9, me)]))], 64))), 128))])]);
503
+ }, E(e.connectLabel), 9, he)]))], 64))), 128))])]);
504
504
  };
505
505
  }
506
506
  });
507
507
  //#endregion
508
- export { Q as TopSchedule, $ as TopScheduleEmails, he as TopScheduleSocials };
508
+ export { ne as TopSchedule, se as TopScheduleEmails, ge as TopScheduleSocials };
509
509
 
510
510
  //# sourceMappingURL=schedule.js.map