@topvisor/ui 1.5.9-pnpm.2 → 1.5.9-pnpm.5

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 (138) hide show
  1. package/.chunks/{api-Djk3WKsn.es.amd.js → api-lAoAK33f.es.amd.js} +2 -2
  2. package/.chunks/{api-Djk3WKsn.es.amd.js.map → api-lAoAK33f.es.amd.js.map} +1 -1
  3. package/.chunks/{api-Djk3WKsn.es.js → api-lAoAK33f.es.js} +2 -2
  4. package/.chunks/{api-Djk3WKsn.es.js.map → api-lAoAK33f.es.js.map} +1 -1
  5. package/.chunks/{app-DthfMLqk.es.amd.js → app-CY6euLQJ.es.amd.js} +2 -2
  6. package/.chunks/{app-DthfMLqk.es.amd.js.map → app-CY6euLQJ.es.amd.js.map} +1 -1
  7. package/.chunks/{app-DthfMLqk.es.js → app-CY6euLQJ.es.js} +5 -5
  8. package/.chunks/{app-DthfMLqk.es.js.map → app-CY6euLQJ.es.js.map} +1 -1
  9. package/.chunks/{datepicker-CxwCnLmb.es.amd.js → datepicker-CeUbso62.es.amd.js} +2 -2
  10. package/.chunks/{datepicker-CxwCnLmb.es.amd.js.map → datepicker-CeUbso62.es.amd.js.map} +1 -1
  11. package/.chunks/{datepicker-CxwCnLmb.es.js → datepicker-CeUbso62.es.js} +2 -2
  12. package/.chunks/{datepicker-CxwCnLmb.es.js.map → datepicker-CeUbso62.es.js.map} +1 -1
  13. package/.chunks/{dialog-CeM1i76L.es.amd.js → dialog-Cnx_s8X1.es.amd.js} +2 -2
  14. package/.chunks/{dialog-CeM1i76L.es.amd.js.map → dialog-Cnx_s8X1.es.amd.js.map} +1 -1
  15. package/.chunks/{dialog-CeM1i76L.es.js → dialog-Cnx_s8X1.es.js} +3 -3
  16. package/.chunks/{dialog-CeM1i76L.es.js.map → dialog-Cnx_s8X1.es.js.map} +1 -1
  17. package/.chunks/{dialog_regionSelectorRegions-BWWggJbQ.es.amd.js → dialog_regionSelectorRegions-BCEJBT1H.es.amd.js} +2 -2
  18. package/.chunks/{dialog_regionSelectorRegions-BWWggJbQ.es.amd.js.map → dialog_regionSelectorRegions-BCEJBT1H.es.amd.js.map} +1 -1
  19. package/.chunks/{dialog_regionSelectorRegions-BWWggJbQ.es.js → dialog_regionSelectorRegions-BCEJBT1H.es.js} +4 -4
  20. package/.chunks/{dialog_regionSelectorRegions-BWWggJbQ.es.js.map → dialog_regionSelectorRegions-BCEJBT1H.es.js.map} +1 -1
  21. package/.chunks/{forms-BlerVsRB.es.amd.js → forms-Ch1q0UUt.es.amd.js} +2 -2
  22. package/.chunks/forms-Ch1q0UUt.es.amd.js.map +1 -0
  23. package/.chunks/{forms-BlerVsRB.es.js → forms-Ch1q0UUt.es.js} +34 -33
  24. package/.chunks/{forms-BlerVsRB.es.js.map → forms-Ch1q0UUt.es.js.map} +1 -1
  25. package/.chunks/{formsExt-DbpqJoXl.es.amd.js → formsExt-BD8Sap5u.es.amd.js} +2 -2
  26. package/.chunks/{formsExt-DbpqJoXl.es.amd.js.map → formsExt-BD8Sap5u.es.amd.js.map} +1 -1
  27. package/.chunks/{formsExt-DbpqJoXl.es.js → formsExt-BD8Sap5u.es.js} +4 -4
  28. package/.chunks/{formsExt-DbpqJoXl.es.js.map → formsExt-BD8Sap5u.es.js.map} +1 -1
  29. package/.chunks/{notice-B5wJBkle.es.amd.js → notice-40E7zRe5.es.amd.js} +2 -2
  30. package/.chunks/{notice-B5wJBkle.es.amd.js.map → notice-40E7zRe5.es.amd.js.map} +1 -1
  31. package/.chunks/{notice-B5wJBkle.es.js → notice-40E7zRe5.es.js} +2 -2
  32. package/.chunks/{notice-B5wJBkle.es.js.map → notice-40E7zRe5.es.js.map} +1 -1
  33. package/.chunks/{popup-C4qezebt.es.amd.js → popup-DA17NrM5.es.amd.js} +2 -2
  34. package/.chunks/{popup-C4qezebt.es.amd.js.map → popup-DA17NrM5.es.amd.js.map} +1 -1
  35. package/.chunks/{popup-C4qezebt.es.js → popup-DA17NrM5.es.js} +3 -3
  36. package/.chunks/{popup-C4qezebt.es.js.map → popup-DA17NrM5.es.js.map} +1 -1
  37. package/.chunks/{popup-Cb0JWm53.es.amd.js → popup-l46cef9d.es.amd.js} +2 -2
  38. package/.chunks/{popup-Cb0JWm53.es.amd.js.map → popup-l46cef9d.es.amd.js.map} +1 -1
  39. package/.chunks/{popup-Cb0JWm53.es.js → popup-l46cef9d.es.js} +3 -3
  40. package/.chunks/{popup-Cb0JWm53.es.js.map → popup-l46cef9d.es.js.map} +1 -1
  41. package/.chunks/{utils-46VBGPRw.es.amd.js → utils-C0Y5ido8.es.amd.js} +2 -2
  42. package/.chunks/{utils-46VBGPRw.es.amd.js.map → utils-C0Y5ido8.es.amd.js.map} +1 -1
  43. package/.chunks/{utils-46VBGPRw.es.js → utils-C0Y5ido8.es.js} +4 -4
  44. package/.chunks/{utils-46VBGPRw.es.js.map → utils-C0Y5ido8.es.js.map} +1 -1
  45. package/.chunks/{utils-BhzB2nCx.es.amd.js → utils-hK-QjvqM.es.amd.js} +2 -2
  46. package/.chunks/{utils-BhzB2nCx.es.amd.js.map → utils-hK-QjvqM.es.amd.js.map} +1 -1
  47. package/.chunks/{utils-BhzB2nCx.es.js → utils-hK-QjvqM.es.js} +3 -3
  48. package/.chunks/{utils-BhzB2nCx.es.js.map → utils-hK-QjvqM.es.js.map} +1 -1
  49. package/.chunks/{worker-MQXxaWta.es.amd.js → worker-D-5BEVm7.es.amd.js} +2 -2
  50. package/.chunks/{worker-MQXxaWta.es.amd.js.map → worker-D-5BEVm7.es.amd.js.map} +1 -1
  51. package/.chunks/{worker-MQXxaWta.es.js → worker-D-5BEVm7.es.js} +3 -3
  52. package/.chunks/{worker-MQXxaWta.es.js.map → worker-D-5BEVm7.es.js.map} +1 -1
  53. package/api/index.amd.js +1 -1
  54. package/api/index.amd.js.map +1 -1
  55. package/api/index.js +1 -1
  56. package/assets/schedule.css +1 -1
  57. package/autoload-css-manifest.amd.json +4 -4
  58. package/autoload-css-manifest.json +4 -4
  59. package/charts/charts.amd.js +1 -1
  60. package/charts/charts.amd.js.map +1 -1
  61. package/charts/charts.js +1 -1
  62. package/core/app.amd.js +1 -1
  63. package/core/app.amd.js.map +1 -1
  64. package/core/app.js +3 -3
  65. package/dialog/dialog.amd.js +1 -1
  66. package/dialog/dialog.amd.js.map +1 -1
  67. package/dialog/dialog.js +2 -2
  68. package/forms/forms.amd.js +1 -1
  69. package/forms/forms.amd.js.map +1 -1
  70. package/forms/forms.js +1 -1
  71. package/formsExt/formsExt.amd.js +1 -1
  72. package/formsExt/formsExt.amd.js.map +1 -1
  73. package/formsExt/formsExt.js +1 -1
  74. package/icomoon/Topvisor icons.json +244 -129
  75. package/icomoon/demo-files/demo.amd.js +1 -1
  76. package/icomoon/demo-files/demo.amd.js.map +1 -1
  77. package/icomoon/demo-files/demo.js +2 -2
  78. package/icomoon/demo.html +71 -1
  79. package/icomoon/fonts/Topvisor-2.eot +0 -0
  80. package/icomoon/fonts/Topvisor-2.svg +5 -0
  81. package/icomoon/fonts/Topvisor-2.ttf +0 -0
  82. package/icomoon/fonts/Topvisor-2.woff +0 -0
  83. package/icomoon/selection.json +1 -1
  84. package/icomoon/style.css +20 -5
  85. package/layout/layout.amd.js +1 -1
  86. package/layout/layout.amd.js.map +1 -1
  87. package/layout/layout.js +1 -1
  88. package/package.json +1 -1
  89. package/popup/popup.amd.js +1 -1
  90. package/popup/popup.amd.js.map +1 -1
  91. package/popup/popup.js +1 -1
  92. package/popup/worker.amd.js +1 -1
  93. package/popup/worker.amd.js.map +1 -1
  94. package/popup/worker.js +1 -1
  95. package/project/project.amd.js +1 -1
  96. package/project/project.amd.js.map +1 -1
  97. package/project/project.js +8 -8
  98. package/schedule/schedule.amd.js +1 -1
  99. package/schedule/schedule.amd.js.map +1 -1
  100. package/schedule/schedule.js +342 -277
  101. package/schedule/schedule.js.map +1 -1
  102. package/src/api/api/types/client/request.d.ts +3 -1
  103. package/src/components/forms/select/types.d.ts +4 -0
  104. package/src/components/schedule/schedule/compoents/calendar/composables/useDaysByCalendarMode.d.ts +6 -0
  105. package/src/components/schedule/schedule/compoents/calendar/types.d.ts +22 -19
  106. package/src/components/schedule/schedule/compoents/{email → emails}/selector/types.d.ts +2 -2
  107. package/src/components/schedule/schedule/compoents/{email → emails}/types.d.ts +1 -2
  108. package/src/components/schedule/schedule/compoents/{reportSend → socials}/types.d.ts +5 -4
  109. package/src/components/schedule/schedule/compoents/timeSelector/types.d.ts +4 -13
  110. package/src/components/schedule/schedule/types.d.ts +28 -45
  111. package/src/components/schedule/schedule/utils.d.ts +24 -0
  112. package/src/components/schedule/schedule.d.ts +2 -7
  113. package/tabsView/tabsView.amd.js +1 -1
  114. package/tabsView/tabsView.amd.js.map +1 -1
  115. package/tabsView/tabsView.js +2 -2
  116. package/utils/clipboard.amd.js +1 -1
  117. package/utils/clipboard.amd.js.map +1 -1
  118. package/utils/clipboard.js +1 -1
  119. package/utils/date.amd.js +1 -1
  120. package/utils/date.amd.js.map +1 -1
  121. package/utils/date.js +1 -1
  122. package/utils/device.amd.js +1 -1
  123. package/utils/device.amd.js.map +1 -1
  124. package/utils/device.js +1 -1
  125. package/utils/lodash.amd.js +1 -1
  126. package/utils/lodash.amd.js.map +1 -1
  127. package/utils/lodash.js +1 -1
  128. package/utils/price.amd.js +1 -1
  129. package/utils/price.amd.js.map +1 -1
  130. package/utils/price.js +1 -1
  131. package/utils/searchers.amd.js.map +1 -1
  132. package/utils/searchers.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/.chunks/forms-BlerVsRB.es.amd.js.map +0 -1
  137. package/src/components/schedule/schedule/compoents/calendar/utils.d.ts +0 -10
  138. package/src/components/schedule/schedule/compoents/timeSelectors/types.d.ts +0 -10
@@ -5,154 +5,323 @@
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, u as a } from "../.chunks/forms-BlerVsRB.es.js";
9
- import "../.chunks/app-DthfMLqk.es.js";
10
- import { isEmail as o } from "../utils/check.js";
11
- import { numberEnding as s } from "../utils/string.js";
12
- import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent 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, toRaw as ee, unref as D, vModelCheckbox as O, withCtx as k, withDirectives as te, withKeys as ne, withModifiers as A } from "vue";
13
- //#region src/components/schedule/schedule/schedule.vue?vue&type=script&setup=true&lang.ts
14
- var j = { class: "top-schedule_header" }, M = { class: "top-schedule_headerTitle" }, N = {
15
- key: 0,
16
- class: "top-schedule_body"
17
- }, P = /* @__PURE__ */ g({
18
- name: "TopSchedule",
19
- __name: "schedule",
20
- props: {
21
- styling: {},
22
- triggerType: { default: "onDemand" },
23
- triggerTypes: {},
24
- triggerTypeOptions: {},
25
- title: {}
26
- },
27
- emits: ["update:triggerType"],
28
- setup(t, { emit: n, slots: r }) {
29
- let a = t, o = e(), s = {
30
- go: o.Projects.Checks,
31
- report: o.Projects.Reports,
32
- neutral: ""
33
- }, c = a.title ?? s[a.styling];
34
- return (e, a) => (x(), f("div", { class: v({
35
- "top-schedule": !0,
36
- [`top-schedule-style_${t.styling}`]: !0
37
- }) }, [p("div", j, [p("div", M, E(D(c)), 1), h(i, {
38
- class: "top-schedule_headerTriggerType",
39
- modelValue: t.triggerType,
40
- "onUpdate:modelValue": a[0] ||= (e) => n("update:triggerType", e),
41
- options: t.triggerTypeOptions,
42
- size: "s"
43
- }, null, 8, ["modelValue", "options"])]), t.triggerType !== "onDemand" && r.body ? (x(), f("div", N, [w(e.$slots, "body")])) : d("", !0)], 2));
44
- }
45
- }), F = {}, I = { class: "top-schedule_bodyContainer" };
46
- function L(e, t) {
47
- return x(), f("div", I, [w(e.$slots, "default")]);
48
- }
49
- var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
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";
10
+ import { isEmail as a } from "../utils/check.js";
11
+ import { numberEnding as o } from "../utils/string.js";
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
14
+ var N = (t) => {
50
15
  let n = e();
51
- switch (t) {
52
- case "dayOfMonth": {
53
- let e = Array.from({ length: 27 }, (e, t) => ({
54
- value: String(t + 1),
55
- title: String(t + 1)
56
- }));
57
- return e.push({
58
- value: "LAST_OF_MONTH",
59
- title: "",
60
- isIcon: !0
61
- }), e;
62
- }
63
- case "dayOfWeek": return [
64
- {
65
- value: "MONDAY",
66
- title: n.Calendar.Dw_1
67
- },
68
- {
69
- value: "TUESDAY",
70
- title: n.Calendar.Dw_2
71
- },
72
- {
73
- value: "WEDNESDAY",
74
- title: n.Calendar.Dw_3
75
- },
76
- {
77
- value: "THURSDAY",
78
- title: n.Calendar.Dw_4
79
- },
80
- {
81
- value: "FRIDAY",
82
- title: n.Calendar.Dw_5
83
- },
84
- {
85
- value: "SATURDAY",
86
- title: n.Calendar.Dw_6
87
- },
88
- {
89
- value: "SUNDAY",
90
- title: n.Calendar.Dw_7
16
+ return c(() => {
17
+ switch (D(t)) {
18
+ case "dayOfMonth": {
19
+ let e = Array.from({ length: 27 }, (e, t) => ({
20
+ value: String(t + 1),
21
+ title: String(t + 1)
22
+ }));
23
+ return e.push({
24
+ value: "LAST_OF_MONTH",
25
+ title: "",
26
+ isIcon: !0
27
+ }), e;
91
28
  }
92
- ];
29
+ case "dayOfWeek": return [
30
+ {
31
+ value: "MONDAY",
32
+ title: n.Calendar.Dw_1
33
+ },
34
+ {
35
+ value: "TUESDAY",
36
+ title: n.Calendar.Dw_2
37
+ },
38
+ {
39
+ value: "WEDNESDAY",
40
+ title: n.Calendar.Dw_3
41
+ },
42
+ {
43
+ value: "THURSDAY",
44
+ title: n.Calendar.Dw_4
45
+ },
46
+ {
47
+ value: "FRIDAY",
48
+ title: n.Calendar.Dw_5
49
+ },
50
+ {
51
+ value: "SATURDAY",
52
+ title: n.Calendar.Dw_6
53
+ },
54
+ {
55
+ value: "SUNDAY",
56
+ title: n.Calendar.Dw_7
57
+ }
58
+ ];
59
+ default: return [];
60
+ }
61
+ });
62
+ }, P = { class: "top-scheduleTimeSelector" }, F = /* @__PURE__ */ h({
63
+ __name: "timeSelector",
64
+ props: /*@__PURE__*/ g({
65
+ modelValue: {},
66
+ multipleTimes: { type: Boolean }
67
+ }, {
68
+ modelValue: { required: !0 },
69
+ modelModifiers: {}
70
+ }),
71
+ emits: ["update:modelValue"],
72
+ setup(e) {
73
+ let t = e, n = k(e, "modelValue"), r = Array.from({ length: 24 }, (e, t) => ({
74
+ value: String(t),
75
+ title: String(t).padStart(2, "0")
76
+ })), i = Array.from({ length: 4 }, (e, t) => {
77
+ let n = t * 15;
78
+ return {
79
+ value: String(n),
80
+ title: String(n).padStart(2, "0")
81
+ };
82
+ }), a = (e, t) => {
83
+ let r = [...n.value];
84
+ r[e] = {
85
+ ...r[e],
86
+ ...t
87
+ }, n.value = r;
88
+ }, o = () => {
89
+ n.value = [{
90
+ hour: "0",
91
+ minute: "0"
92
+ }, ...n.value];
93
+ }, c = (e) => {
94
+ n.value = n.value.filter((t, n) => n !== e);
95
+ };
96
+ return (e, f) => {
97
+ let p = T("TopSelect"), h = T("TopButton");
98
+ return x(), d("div", P, [(x(!0), d(s, null, C(n.value, (e, s) => (x(), d("div", {
99
+ key: s,
100
+ class: "top-scheduleTimeSelector_item"
101
+ }, [
102
+ m(p, {
103
+ class: "top-scheduleTimeSelector_hour",
104
+ modelValue: e.hour,
105
+ options: O(r),
106
+ "onUpdate:modelValue": (e) => a(s, { hour: e })
107
+ }, null, 8, [
108
+ "modelValue",
109
+ "options",
110
+ "onUpdate:modelValue"
111
+ ]),
112
+ m(p, {
113
+ class: "top-scheduleTimeSelector_minute",
114
+ modelValue: e.minute,
115
+ options: O(i),
116
+ availableCustomValue: "",
117
+ "onUpdate:modelValue": (e) => a(s, { minute: e })
118
+ }, null, 8, [
119
+ "modelValue",
120
+ "options",
121
+ "onUpdate:modelValue"
122
+ ]),
123
+ t.multipleTimes || n.value.length > 1 ? (x(), l(h, {
124
+ key: 0,
125
+ onClick: (e) => s ? c(s) : o(),
126
+ color: "theme",
127
+ icon: s ? "" : ""
128
+ }, null, 8, ["onClick", "icon"])) : u("", !0)
129
+ ]))), 128))]);
130
+ };
93
131
  }
94
- }, B = { class: "top-scheduleCalendar" }, V = { class: "top-scheduleCalendar_header" }, H = { class: "top-scheduleCalendar_calendar" }, U = ["value"], W = ["data-top-icon"], G = /* @__PURE__ */ g({
132
+ }), I = { class: "top-scheduleCalendar" }, L = { class: "top-scheduleCalendar_header" }, R = { class: "top-scheduleCalendar_calendar" }, z = [
133
+ "value",
134
+ "checked",
135
+ "onChange"
136
+ ], B = ["data-top-icon"], V = /* @__PURE__ */ h({
95
137
  __name: "calendar",
96
- props: {
138
+ props: /*@__PURE__*/ g({
97
139
  modelValue: {},
98
140
  mode: {},
99
- timesCount: { default: 1 }
100
- },
101
- emits: ["update:modelValue"],
102
- setup(t, { emit: n }) {
103
- let r = e(), i = t, a = n, o = l({
104
- get: () => i.modelValue,
105
- set: (e) => a("update:modelValue", e)
106
- }), u = l(() => z(i.mode)), g = {
107
- dayOfWeek: {
108
- totalDaysCount: 7,
109
- period: r.Common.a_week
110
- },
111
- dayOfMonth: {
112
- totalDaysCount: 28,
113
- period: r.Common.a_month
114
- }
115
- }, _ = l(() => {
116
- let e = o.value.length, { totalDaysCount: t, period: n } = g[i.mode], a = e === t;
117
- if (a && i.timesCount === 1) return r.Common.Every_day;
118
- let c = i.timesCount === 1 ? e : i.timesCount;
119
- return `${a ? r.Common.Every_day : `${e}`}${i.timesCount > 1 ? ` × ${i.timesCount}` : ""} ${s(c, r.Common.time_a_0, r.Common.time_a_0, r.Common.time_a_2)} ${n}`;
120
- }), y = l(() => o.value.length > 1), b = () => {
121
- o.value = y.value ? [] : u.value.map((e) => e.value);
141
+ times: {},
142
+ multipleTimes: { type: Boolean }
143
+ }, {
144
+ modelValue: { required: !0 },
145
+ modelModifiers: {},
146
+ times: { required: !0 },
147
+ timesModifiers: {}
148
+ }),
149
+ emits: ["update:modelValue", "update:times"],
150
+ setup(e) {
151
+ let t = e, n = k(e, "modelValue"), r = k(e, "times");
152
+ r.value.length || (r.value = [{
153
+ hour: "0",
154
+ minute: "0"
155
+ }]);
156
+ let i = N(() => t.mode), a = c(() => n.value.includes("ALL") || n.value.length === i.value.length), l = (e) => {
157
+ let t = n.value.includes("ALL") ? i.value.map((e) => e.value) : [...n.value], r = t.indexOf(e);
158
+ r === -1 ? t.push(e) : t.splice(r, 1), n.value = t.length === i.value.length ? ["ALL"] : t;
159
+ }, h = () => {
160
+ n.value = a.value ? [] : ["ALL"];
122
161
  };
123
- return (e, t) => {
124
- let n = T("TopButton");
125
- return x(), f("div", B, [
126
- p("div", V, [w(e.$slots, "header"), h(n, {
127
- class: "top-scheduleCalendar_headerButton",
128
- onClick: b,
162
+ return (t, c) => {
163
+ let g = T("TopButton");
164
+ return x(), d("div", I, [
165
+ f("div", L, [m(F, {
166
+ modelValue: r.value,
167
+ "onUpdate:modelValue": c[0] ||= (e) => r.value = e,
168
+ multipleTimes: e.multipleTimes
169
+ }, null, 8, ["modelValue", "multipleTimes"]), m(g, {
170
+ onClick: c[1] ||= (e) => h(),
129
171
  color: "theme",
130
172
  tabindex: "0"
131
173
  }, {
132
- default: k(() => [m(E(y.value ? e.$i18n.Common.Clear : e.$i18n.Common.Select_all), 1)]),
174
+ default: j(() => [p(E(a.value ? t.$i18n.Common.Clear : t.$i18n.Common.Select_all), 1)]),
133
175
  _: 1
134
176
  })]),
135
- p("div", H, [(x(!0), f(c, null, C(u.value, (e) => (x(), f("label", {
177
+ f("div", R, [(x(!0), d(s, null, C(O(i), (e) => (x(), d("label", {
136
178
  class: "top-scheduleCalendar_calendarDay",
137
179
  key: e.value
138
- }, [te(p("input", {
139
- class: "top-scheduleCalendar_calendarDayRadio",
180
+ }, [f("input", {
181
+ class: "top-scheduleCalendar_calendarDayCheckbox",
140
182
  type: "checkbox",
141
183
  value: e.value,
142
- "onUpdate:modelValue": t[0] ||= (e) => o.value = e,
184
+ checked: n.value.includes("ALL") || n.value.includes(e.value),
185
+ onChange: (t) => l(e.value),
143
186
  tabindex: "0"
144
- }, null, 8, U), [[O, o.value]]), p("span", {
187
+ }, null, 40, z), f("span", {
145
188
  class: "top-scheduleCalendar_calendarDayTitle",
146
189
  "data-top-icon": e.isIcon ? e.title : void 0
147
- }, [e.isIcon ? d("", !0) : (x(), f(c, { key: 0 }, [m(E(e.title), 1)], 64))], 8, W)]))), 128))]),
148
- p("span", { class: v({
190
+ }, [e.isIcon ? u("", !0) : (x(), d(s, { key: 0 }, [p(E(e.title), 1)], 64))], 8, B)]))), 128))]),
191
+ f("span", { class: v({
149
192
  "top-scheduleCalendar_selectionSummary": !0,
150
- "top-error": !o.value.length
151
- }) }, E(_.value), 3)
193
+ "top-error": !n.value.length
194
+ }) }, [p(E(a.value ? t.$i18n.Common.Every_day : n.value.length) + " ", 1), r.value.length > 1 || !a.value ? (x(), d(s, { key: 0 }, [p(E(r.value.length > 1 ? ` × ${r.value.length}` : "") + " " + E(O(o)(r.value.length === 1 ? n.value.length : r.value.length, t.$i18n.Common.time_a_0, t.$i18n.Common.time_a_0, t.$i18n.Common.time_a_2)) + " " + E(e.mode === "dayOfWeek" ? t.$i18n.Common.a_week : t.$i18n.Common.a_month), 1)], 64)) : u("", !0)], 2)
152
195
  ]);
153
196
  };
154
197
  }
155
- }), K = /* @__PURE__ */ g({
198
+ }), H = [
199
+ "onDemand",
200
+ "dayOfWeek",
201
+ "dayOfMonth",
202
+ "afterYandexUpdated"
203
+ ], U = () => {
204
+ let t = e();
205
+ return [{
206
+ value: "0",
207
+ title: t.Projects.immediately
208
+ }, ...Array.from({ length: 24 }, (e, n) => ({
209
+ value: String(n + 1),
210
+ title: t("Projects", "in_hour", { hour: n + 1 })
211
+ }))];
212
+ }, W = (e) => e === "dayOfWeek" || e === "dayOfMonth", G = (e, t = "onDemand") => e.includes("YANDEX_UPDATE") ? "afterYandexUpdated" : e.includes("CHECK_POSITIONS") ? "afterCheck" : e.includes("LAST_OF_MONTH") || e.some((e) => /^\d+$/.test(e)) ? "dayOfMonth" : e.length ? W(t) ? t : "dayOfWeek" : t, K = (t) => {
213
+ let n = e(), r = {
214
+ onDemand: n.Projects.Settings_on_demand,
215
+ dayOfWeek: n.Projects.Report_on_weekdays,
216
+ dayOfMonth: n.Projects.Settings_particular_days,
217
+ afterYandexUpdated: n.Projects.After_updates,
218
+ afterCheck: t.includes("afterCheck") ? n.Dynamics.Report_after_tracking_30min_1 : ""
219
+ };
220
+ return t.map((e) => ({
221
+ value: e,
222
+ title: r[e]
223
+ }));
224
+ }, q = { class: "top-schedule_header" }, te = { class: "top-schedule_headerTitle" }, J = {
225
+ key: 0,
226
+ class: "top-schedule_body"
227
+ }, Y = { key: 2 }, X = /* @__PURE__ */ h({
228
+ name: "TopSchedule",
229
+ __name: "schedule",
230
+ props: /*@__PURE__*/ g({
231
+ modelValue: {},
232
+ type: { default: "go" },
233
+ availableMods: {},
234
+ multipleTimes: { type: Boolean },
235
+ title: {}
236
+ }, {
237
+ modelValue: { required: !0 },
238
+ modelModifiers: {}
239
+ }),
240
+ emits: ["update:modelValue"],
241
+ setup(e, { slots: t }) {
242
+ let n = e, r = k(e, "modelValue"), a = S(G(r.value.days)), o = c(() => K(n.availableMods ?? (n.type === "report" ? [...H, "afterCheck"] : H))), s = U(), p = {};
243
+ return A(r, () => {
244
+ p[a.value] = {
245
+ days: [...r.value.days],
246
+ times: r.value.times.map((e) => ({ ...e }))
247
+ };
248
+ }, {
249
+ deep: !0,
250
+ immediate: !0
251
+ }), A(() => r.value.days, () => a.value = G(r.value.days, a.value), {
252
+ deep: !0,
253
+ immediate: !0
254
+ }), A(a, (e) => {
255
+ let t = p[e];
256
+ switch (e) {
257
+ case "onDemand":
258
+ r.value = {
259
+ days: [],
260
+ times: []
261
+ };
262
+ break;
263
+ case "dayOfWeek":
264
+ case "dayOfMonth":
265
+ r.value = {
266
+ ...r.value,
267
+ days: t?.days ?? ["ALL"],
268
+ times: t?.times ?? [{
269
+ hour: "0",
270
+ minute: "0"
271
+ }]
272
+ };
273
+ break;
274
+ case "afterYandexUpdated":
275
+ r.value = {
276
+ days: ["YANDEX_UPDATE"],
277
+ times: t?.times ?? [{
278
+ hour: "0",
279
+ minute: "0"
280
+ }]
281
+ };
282
+ break;
283
+ case "afterCheck": r.value = {
284
+ days: ["CHECK_POSITIONS"],
285
+ times: t?.times ?? [{
286
+ hour: "0",
287
+ minute: "30"
288
+ }]
289
+ };
290
+ }
291
+ }), (n, c) => (x(), d("div", { class: v(["top-schedule", "top-schedule-type_" + e.type]) }, [f("div", q, [f("div", te, E(e.title ?? (e.type === "go" ? n.$i18n.Projects.Checks : n.$i18n.Projects.Reports)), 1), m(i, {
292
+ class: "top-schedule_headerMods",
293
+ modelValue: a.value,
294
+ "onUpdate:modelValue": c[0] ||= (e) => a.value = e,
295
+ options: o.value,
296
+ size: "s"
297
+ }, null, 8, ["modelValue", "options"])]), a.value !== "onDemand" && (O(W)(a.value) || a.value === "afterYandexUpdated" || t.settings) ? (x(), d("div", J, [
298
+ a.value === "afterYandexUpdated" && r.value.times[0] ? (x(), l(i, {
299
+ key: 0,
300
+ class: "top-schedule_afterYandexUpdatedDelay",
301
+ modelValue: r.value.times[0].hour,
302
+ "onUpdate:modelValue": c[1] ||= (e) => r.value.times[0].hour = e,
303
+ options: O(s),
304
+ size: "s"
305
+ }, null, 8, ["modelValue", "options"])) : u("", !0),
306
+ O(W)(a.value) ? (x(), l(V, {
307
+ key: 1,
308
+ modelValue: r.value.days,
309
+ "onUpdate:modelValue": c[2] ||= (e) => r.value.days = e,
310
+ times: r.value.times,
311
+ "onUpdate:times": c[3] ||= (e) => r.value.times = e,
312
+ mode: a.value,
313
+ multipleTimes: e.multipleTimes
314
+ }, null, 8, [
315
+ "modelValue",
316
+ "times",
317
+ "mode",
318
+ "multipleTimes"
319
+ ])) : u("", !0),
320
+ O(W)(a.value) && t.settings ? (x(), d("hr", Y)) : u("", !0),
321
+ w(n.$slots, "settings", { mode: a.value })
322
+ ])) : u("", !0)], 2));
323
+ }
324
+ }), Z = /* @__PURE__ */ h({
156
325
  __name: "selector",
157
326
  props: {
158
327
  modelValue: {},
@@ -163,23 +332,23 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
163
332
  }
164
333
  },
165
334
  emits: ["update:modelValue", "submit"],
166
- setup(i, { emit: a }) {
167
- let s = a, c = i, l = a, u = e(), d = t.$, p = S(), m = S(), g = null, v = {}, C = (e) => e.filter((e) => !c.emails.includes(e)), w = (e = c.modelValue) => {
335
+ setup(i, { emit: o }) {
336
+ 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) => {
168
337
  let n = String(e).trim();
169
338
  if (n) {
170
- if (!o(n)) {
339
+ if (!a(n)) {
171
340
  t.notice(u.Common.Enter_valid_email_notice, "error");
172
341
  return;
173
342
  }
174
343
  l("submit", n);
175
344
  }
176
345
  }, T = async () => {
177
- if (await _(), g = m.value?.$el.querySelector("input") ?? null, g) {
178
- if (!d?.ui?.autocomplete) {
346
+ if (await _(), g = h.value?.$el.querySelector("input") ?? null, g) {
347
+ if (!f?.ui?.autocomplete) {
179
348
  console.info("Для работы autocomplete требуется глобальная загрузка jQuery UI Autocomplete");
180
349
  return;
181
350
  }
182
- d(g).autocomplete({
351
+ f(g).autocomplete({
183
352
  appendTo: p.value,
184
353
  minLength: 0,
185
354
  source: async (e, t) => {
@@ -190,45 +359,45 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
190
359
  })));
191
360
  },
192
361
  select: (e, t) => {
193
- t.item && g && (e.preventDefault(), w(t.item.value), l("update:modelValue", ""), d(g).trigger("focus"));
362
+ t.item && g && (e.preventDefault(), w(t.item.value), l("update:modelValue", ""), f(g).trigger("focus"));
194
363
  }
195
- }), d(g).attr("autocomplete", "disabled"), d(g).on("focus.scheduleEmailSelector", () => {
196
- g && d(g).trigger("input");
364
+ }), f(g).attr("autocomplete", "disabled"), f(g).on("focus.scheduleEmailSelector", () => {
365
+ g && f(g).trigger("input");
197
366
  });
198
367
  }
199
368
  };
200
369
  return b(() => {
201
370
  T();
202
371
  }), y(() => {
203
- d?.ui?.autocomplete && g && (d(g).off("focus.scheduleEmailSelector"), d(g).autocomplete("destroy"));
204
- }), (e, t) => (x(), f("div", {
372
+ f?.ui?.autocomplete && g && (f(g).off("focus.scheduleEmailSelector"), f(g).autocomplete("destroy"));
373
+ }), (e, t) => (x(), d("div", {
205
374
  class: "top-scheduleEmailSelector",
206
375
  ref_key: "elRootRef",
207
376
  ref: p
208
- }, [h(n, {
377
+ }, [m(n, {
209
378
  ref_key: "elInputRef",
210
- ref: m,
379
+ ref: h,
211
380
  modelValue: i.modelValue,
212
381
  "onUpdate:modelValue": t[1] ||= (e) => s("update:modelValue", e),
213
- onKeydown: t[2] ||= ne(A((e) => w(), ["prevent"]), ["enter"]),
382
+ onKeydown: t[2] ||= ee(M((e) => w(), ["prevent"]), ["enter"]),
214
383
  title: e.$i18n.Common.Enter_email,
215
384
  type: "email",
216
385
  size: "l"
217
386
  }, {
218
- default: k(() => [h(r, {
387
+ default: j(() => [m(r, {
219
388
  class: "top-scheduleEmailSelector_submit",
220
389
  color: "theme",
221
390
  icon: "",
222
- onClick: t[0] ||= A((e) => w(), ["prevent"])
391
+ onClick: t[0] ||= M((e) => w(), ["prevent"])
223
392
  })]),
224
393
  _: 1
225
394
  }, 8, ["modelValue", "title"])], 512));
226
395
  }
227
- }), q = { class: "top-scheduleEmail" }, J = { class: "top-scheduleEmail_title" }, Y = {
396
+ }), Q = { class: "top-scheduleEmail" }, ne = { class: "top-scheduleEmail_title" }, re = {
228
397
  key: 1,
229
398
  class: "top-scheduleEmail_emails"
230
- }, X = { class: "top-ellipsis1" }, Z = /* @__PURE__ */ g({
231
- __name: "email",
399
+ }, ie = { class: "top-ellipsis1" }, ae = /* @__PURE__ */ h({
400
+ __name: "emails",
232
401
  props: {
233
402
  emails: { default: () => [] },
234
403
  getEmailSuggestions: {
@@ -249,9 +418,9 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
249
418
  };
250
419
  return (t, r) => {
251
420
  let i = T("TopButton");
252
- return x(), f("div", q, [
253
- p("div", J, E(t.$i18n.Projects.Reports_send_to_address) + " E-mail: ", 1),
254
- e.maxEmailsCount && e.emails.length === e.maxEmailsCount ? d("", !0) : (x(), u(K, {
421
+ return x(), d("div", Q, [
422
+ f("div", ne, E(t.$i18n.Projects.Reports_send_to_address) + " E-mail: ", 1),
423
+ e.maxEmailsCount && e.emails.length === e.maxEmailsCount ? u("", !0) : (x(), l(Z, {
255
424
  key: 0,
256
425
  modelValue: a.value,
257
426
  "onUpdate:modelValue": r[0] ||= (e) => a.value = e,
@@ -263,25 +432,25 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
263
432
  "getEmailSuggestions",
264
433
  "emails"
265
434
  ])),
266
- e.emails.length ? (x(), f("div", Y, [(x(!0), f(c, null, C(e.emails, (e) => (x(), f("div", {
435
+ e.emails.length ? (x(), d("div", re, [(x(!0), d(s, null, C(e.emails, (e) => (x(), d("div", {
267
436
  class: "top-scheduleEmail_emailsItem",
268
437
  key: e
269
- }, [p("span", X, E(e), 1), h(i, {
438
+ }, [f("span", ie, E(e), 1), m(i, {
270
439
  onClick: (t) => n("remove:email", e),
271
440
  color: "theme",
272
441
  icon: ""
273
- }, null, 8, ["onClick"])]))), 128))])) : d("", !0)
442
+ }, null, 8, ["onClick"])]))), 128))])) : u("", !0)
274
443
  ]);
275
444
  };
276
445
  }
277
- }), re = { class: "top-scheduleReportSend" }, ie = { class: "top-scheduleReportSend_title" }, ae = { class: "top-scheduleReportSend_channels" }, oe = ["data-top-icon"], se = { class: "top-scheduleReportSend_channelLabel top-ellipsis1" }, Q = {
446
+ }), oe = { class: "top-scheduleSocials" }, $ = { class: "top-scheduleSocials_title" }, se = { class: "top-scheduleSocials_channels" }, ce = ["data-top-icon"], le = { class: "top-scheduleSocials_channelLabel top-ellipsis1" }, ue = {
278
447
  key: 0,
279
- class: "top-scheduleReportSend_channel"
280
- }, ce = ["data-top-icon"], le = ["href"], ue = /* @__PURE__ */ g({
281
- __name: "reportSend",
448
+ class: "top-scheduleSocials_channel"
449
+ }, de = ["data-top-icon"], fe = ["href"], pe = /* @__PURE__ */ h({
450
+ __name: "socials",
282
451
  props: {
283
452
  channels: {},
284
- connectors: { default: () => [] }
453
+ connectors: {}
285
454
  },
286
455
  emits: ["update:channelSelected"],
287
456
  setup(e, { emit: t }) {
@@ -290,28 +459,28 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
290
459
  telegram: ""
291
460
  };
292
461
  return (n, a) => {
293
- let o = T("TopButton"), s = T("TopSwitcher");
294
- return x(), f("div", re, [p("div", ie, E(n.$i18n.Projects.Reports_send), 1), p("div", ae, [(x(!0), f(c, null, C(e.channels, (e) => (x(), f("div", {
295
- class: "top-scheduleReportSend_channel",
462
+ let o = T("TopButton"), c = T("TopSwitcher");
463
+ return x(), d("div", oe, [f("div", $, E(n.$i18n.Projects.Reports_send_to_address), 1), f("div", se, [(x(!0), d(s, null, C(e.channels, (e) => (x(), d("div", {
464
+ class: "top-scheduleSocials_channel",
296
465
  key: `${e.source}-${e.id}`
297
466
  }, [
298
- p("span", {
299
- class: "top-scheduleReportSend_channelIcon",
467
+ f("span", {
468
+ class: "top-scheduleSocials_channelIcon",
300
469
  "data-top-icon": i[e.source]
301
- }, null, 8, oe),
302
- p("span", se, E(e.label), 1),
303
- e.settingLink ? (x(), u(o, {
470
+ }, null, 8, ce),
471
+ f("span", le, E(e.label), 1),
472
+ e.settingLink ? (x(), l(o, {
304
473
  key: 0,
305
- class: "top-scheduleReportSend_channelSettings",
474
+ class: "top-scheduleSocials_channelSettings",
306
475
  size: "xs",
307
476
  href: e.settingLink,
308
477
  target: "_blank",
309
478
  icon: "",
310
479
  color: "theme",
311
480
  tabindex: "0"
312
- }, null, 8, ["href"])) : d("", !0),
313
- h(s, {
314
- class: "top-scheduleReportSend_channelSwitcher",
481
+ }, null, 8, ["href"])) : u("", !0),
482
+ m(c, {
483
+ class: "top-scheduleSocials_channelSwitcher",
315
484
  modelValue: e.selected,
316
485
  "onUpdate:modelValue": (n) => t("update:channelSelected", {
317
486
  id: e.id,
@@ -319,122 +488,18 @@ var R = /*#__PURE__*/ a(F, [["render", L]]), z = (t) => {
319
488
  selected: n
320
489
  })
321
490
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
322
- ]))), 128)), (x(!0), f(c, null, C(e.connectors, (e) => (x(), f(c, { key: e.source }, [r(e.source) ? d("", !0) : (x(), f("div", Q, [p("span", {
323
- class: "top-scheduleReportSend_channelIcon",
491
+ ]))), 128)), (x(!0), d(s, null, C(e.connectors, (e) => (x(), d(s, { key: e.source }, [r(e.source) ? u("", !0) : (x(), d("div", ue, [f("span", {
492
+ class: "top-scheduleSocials_channelIcon",
324
493
  "data-top-icon": i[e.source]
325
- }, null, 8, ce), p("a", {
326
- class: "top-scheduleReportSend_channelLabel top-ellipsis1",
494
+ }, null, 8, de), f("a", {
495
+ class: "top-scheduleSocials_channelLabel top-ellipsis1",
327
496
  href: e.connectLink,
328
497
  target: "_blank"
329
- }, E(e.connectLabel), 9, le)]))], 64))), 128))])]);
330
- };
331
- }
332
- }), de = { class: "top-scheduleTimeSelector" }, $ = /* @__PURE__ */ g({
333
- __name: "timeSelector",
334
- props: {
335
- hour: {},
336
- minute: {}
337
- },
338
- emits: ["update:hour", "update:minute"],
339
- setup(e, { emit: t }) {
340
- let n = e, r = Array.from({ length: 24 }, (e, t) => ({
341
- value: String(t),
342
- title: String(t).padStart(2, "0")
343
- })), i = [
344
- {
345
- value: "0",
346
- title: "00"
347
- },
348
- {
349
- value: "15",
350
- title: "15"
351
- },
352
- {
353
- value: "30",
354
- title: "30"
355
- },
356
- {
357
- value: "45",
358
- title: "45"
359
- }
360
- ], a = l(() => i.some((e) => e.value === n.minute) ? i : [...i, {
361
- value: n.minute,
362
- title: n.minute.padStart(2, "0"),
363
- disabled: !0
364
- }]);
365
- return (n, i) => {
366
- let o = T("TopSelect");
367
- return x(), f("div", de, [h(o, {
368
- class: "top-scheduleTimeSelector_hour",
369
- modelValue: e.hour,
370
- options: D(r),
371
- "onUpdate:modelValue": i[0] ||= (e) => t("update:hour", e)
372
- }, null, 8, ["modelValue", "options"]), h(o, {
373
- class: "top-scheduleTimeSelector_minute",
374
- modelValue: e.minute,
375
- options: a.value,
376
- "onUpdate:modelValue": i[1] ||= (e) => t("update:minute", e)
377
- }, null, 8, ["modelValue", "options"])]);
378
- };
379
- }
380
- }), fe = { class: "top-scheduleTimeSelectors" }, pe = /* @__PURE__ */ g({
381
- __name: "timeSelectors",
382
- props: { times: {} },
383
- emits: ["update:times"],
384
- setup(e, { emit: t }) {
385
- let n = t, r = e, i = t, a = /* @__PURE__ */ new WeakMap(), o = 0, s = (e) => {
386
- let t = ee(e), n = a.get(t);
387
- if (n !== void 0) return n;
388
- let r = o++;
389
- return a.set(t, r), r;
390
- }, l = (e, t) => {
391
- let n = r.times.map((n, r) => {
392
- if (r !== e) return n;
393
- let i = {
394
- ...n,
395
- ...t
396
- };
397
- return a.set(i, s(n)), i;
398
- });
399
- i("update:times", n);
400
- }, d = () => {
401
- let e = [{
402
- hour: "0",
403
- minute: "0"
404
- }, ...r.times];
405
- i("update:times", e);
406
- };
407
- return (t, r) => {
408
- let i = T("TopButton");
409
- return x(), f("div", fe, [(x(!0), f(c, null, C(e.times, (t, r) => (x(), f("div", {
410
- class: "top-scheduleTimeSelectors_item",
411
- key: s(t)
412
- }, [h($, {
413
- hour: t.hour,
414
- minute: t.minute,
415
- "onUpdate:hour": (e) => l(r, { hour: e }),
416
- "onUpdate:minute": (e) => l(r, { minute: e })
417
- }, null, 8, [
418
- "hour",
419
- "minute",
420
- "onUpdate:hour",
421
- "onUpdate:minute"
422
- ]), r ? (x(), u(i, {
423
- key: 0,
424
- onClick: (t) => n("update:times", e.times.filter((e, t) => t !== r)),
425
- color: "theme",
426
- icon: ""
427
- }, null, 8, ["onClick"])) : (x(), u(i, {
428
- key: 1,
429
- class: "top-scheduleTimeSelectors_itemAdd",
430
- onClick: d,
431
- color: "theme",
432
- icon: ""
433
- }))]))), 128))]);
498
+ }, E(e.connectLabel), 9, fe)]))], 64))), 128))])]);
434
499
  };
435
500
  }
436
501
  });
437
502
  //#endregion
438
- export { P as TopSchedule, G as TopScheduleCalendar, R as TopScheduleContainer, Z as TopScheduleEmail, K as TopScheduleEmailSelector, ue as TopScheduleReportSend, $ as TopScheduleTimeSelector, pe as TopScheduleTimeSelectors };
503
+ export { X as TopSchedule, ae as TopScheduleEmails, pe as TopScheduleSocials };
439
504
 
440
505
  //# sourceMappingURL=schedule.js.map