@inspirer-dev/crm-dashboard 1.0.12 → 1.0.14
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.
- package/admin/src/components/ButtonsBuilder/index.tsx +19 -8
- package/admin/src/components/CancelConditionsField/index.tsx +27 -9
- package/admin/src/components/RulesBuilder/index.tsx +5 -1
- package/admin/src/components/TriggerConfigField/index.tsx +19 -16
- package/dist/_chunks/{index-d16UivTb.js → index-B_mxTw3i.js} +17 -6
- package/dist/_chunks/{index-BSDO36Pf.mjs → index-BeoIfbL9.mjs} +4 -1
- package/dist/_chunks/{index-DRJ5o0cz.js → index-BuKU4frx.js} +17 -14
- package/dist/_chunks/{index-Cf8DZYT6.js → index-CipW7YLs.js} +25 -7
- package/dist/_chunks/{index-CiwOzO0B.js → index-CzC9cKzN.js} +3 -0
- package/dist/_chunks/{index-DFqEb9sm.mjs → index-DQTv0iBM.mjs} +17 -14
- package/dist/_chunks/{index-XE6toVNT.mjs → index-DlVJIvrD.mjs} +17 -6
- package/dist/_chunks/{index-Bnjm_sYk.mjs → index-JOsIDBgU.mjs} +25 -7
- package/dist/_chunks/{index-DEONgZRM.mjs → index-oWQdx7-R.mjs} +91 -112
- package/dist/admin/index.js +4 -4
- package/dist/admin/index.mjs +5 -5
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ type TelegramButton = {
|
|
|
22
22
|
|
|
23
23
|
interface ButtonsBuilderProps {
|
|
24
24
|
name: string;
|
|
25
|
-
value?: string | null;
|
|
25
|
+
value?: string | TelegramButton[] | null;
|
|
26
26
|
onChange: (event: { target: { name: string; value: string } }) => void;
|
|
27
27
|
intlLabel: {
|
|
28
28
|
id: string;
|
|
@@ -35,20 +35,31 @@ interface ButtonsBuilderProps {
|
|
|
35
35
|
hint?: string;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
const parseButtons = (value: string | null | undefined): TelegramButton[] => {
|
|
38
|
+
const parseButtons = (value: string | TelegramButton[] | null | undefined): TelegramButton[] => {
|
|
39
39
|
if (!value) return [];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
if (!Array.isArray(parsed)) return [];
|
|
43
|
-
return parsed.map((b) => ({
|
|
40
|
+
if (Array.isArray(value)) {
|
|
41
|
+
return value.map((b) => ({
|
|
44
42
|
id: typeof b?.id === 'string' ? b.id : generateId(),
|
|
45
43
|
text: typeof b?.text === 'string' ? b.text : '',
|
|
46
44
|
url: typeof b?.url === 'string' ? b.url : '',
|
|
47
45
|
row: typeof b?.row === 'number' ? b.row : 0,
|
|
48
46
|
}));
|
|
49
|
-
} catch {
|
|
50
|
-
return [];
|
|
51
47
|
}
|
|
48
|
+
if (typeof value === 'string') {
|
|
49
|
+
try {
|
|
50
|
+
const parsed = JSON.parse(value);
|
|
51
|
+
if (!Array.isArray(parsed)) return [];
|
|
52
|
+
return parsed.map((b) => ({
|
|
53
|
+
id: typeof b?.id === 'string' ? b.id : generateId(),
|
|
54
|
+
text: typeof b?.text === 'string' ? b.text : '',
|
|
55
|
+
url: typeof b?.url === 'string' ? b.url : '',
|
|
56
|
+
row: typeof b?.row === 'number' ? b.row : 0,
|
|
57
|
+
}));
|
|
58
|
+
} catch {
|
|
59
|
+
return [];
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return [];
|
|
52
63
|
};
|
|
53
64
|
|
|
54
65
|
const serializeButtons = (buttons: TelegramButton[]): string => JSON.stringify(buttons);
|
|
@@ -34,7 +34,7 @@ interface CancelConfig {
|
|
|
34
34
|
|
|
35
35
|
interface CancelConditionsFieldProps {
|
|
36
36
|
name: string;
|
|
37
|
-
value?: string | null;
|
|
37
|
+
value?: string | CancelConfig | null;
|
|
38
38
|
onChange: (event: { target: { name: string; value: string } }) => void;
|
|
39
39
|
intlLabel: {
|
|
40
40
|
id: string;
|
|
@@ -54,17 +54,35 @@ const DEFAULT_CONFIG: CancelConfig = {
|
|
|
54
54
|
rules: [],
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
-
const parseConfig = (value: string | null | undefined): CancelConfig => {
|
|
57
|
+
const parseConfig = (value: string | CancelConfig | null | undefined): CancelConfig => {
|
|
58
58
|
if (!value) return DEFAULT_CONFIG;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
if (typeof value === 'string') {
|
|
60
|
+
try {
|
|
61
|
+
const parsed = JSON.parse(value);
|
|
62
|
+
if (parsed.logic && Array.isArray(parsed.rules)) {
|
|
63
|
+
return {
|
|
64
|
+
...parsed,
|
|
65
|
+
rules: parsed.rules.map((rule: CancelRule) => ({
|
|
66
|
+
...rule,
|
|
67
|
+
id: rule.id || generateId(),
|
|
68
|
+
})),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
return DEFAULT_CONFIG;
|
|
72
|
+
} catch {
|
|
73
|
+
return DEFAULT_CONFIG;
|
|
63
74
|
}
|
|
64
|
-
return DEFAULT_CONFIG;
|
|
65
|
-
} catch {
|
|
66
|
-
return DEFAULT_CONFIG;
|
|
67
75
|
}
|
|
76
|
+
if (value.logic && Array.isArray(value.rules)) {
|
|
77
|
+
return {
|
|
78
|
+
...value,
|
|
79
|
+
rules: value.rules.map((rule) => ({
|
|
80
|
+
...rule,
|
|
81
|
+
id: rule.id || generateId(),
|
|
82
|
+
})),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
return DEFAULT_CONFIG;
|
|
68
86
|
};
|
|
69
87
|
|
|
70
88
|
const serializeConfig = (config: CancelConfig): string => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
1
|
+
import React, { forwardRef, useCallback, useEffect, useMemo, useState } from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Button,
|
|
@@ -448,6 +448,10 @@ const RulesBuilder = forwardRef<HTMLDivElement, RulesBuilderProps>(
|
|
|
448
448
|
({ name, value, onChange, intlLabel, disabled, error, required, hint }, ref) => {
|
|
449
449
|
const [config, setConfig] = useState<RulesConfig>(() => deserializeConfig(value));
|
|
450
450
|
|
|
451
|
+
useEffect(() => {
|
|
452
|
+
setConfig(deserializeConfig(value));
|
|
453
|
+
}, [value]);
|
|
454
|
+
|
|
451
455
|
const displayLabel = useMemo(() => {
|
|
452
456
|
if (intlLabel?.defaultMessage && !intlLabel.defaultMessage.includes('.')) {
|
|
453
457
|
return intlLabel.defaultMessage;
|
|
@@ -25,7 +25,7 @@ interface TriggerConfig {
|
|
|
25
25
|
|
|
26
26
|
interface TriggerConfigFieldProps {
|
|
27
27
|
name: string;
|
|
28
|
-
value?: string | null;
|
|
28
|
+
value?: string | TriggerConfig | null;
|
|
29
29
|
onChange: (event: { target: { name: string; value: string } }) => void;
|
|
30
30
|
intlLabel: {
|
|
31
31
|
id: string;
|
|
@@ -59,23 +59,26 @@ const WEEKDAYS = [
|
|
|
59
59
|
{ value: 6, label: 'Sat' },
|
|
60
60
|
];
|
|
61
61
|
|
|
62
|
-
const parseConfig = (value: string | null | undefined): TriggerConfig => {
|
|
62
|
+
const parseConfig = (value: string | TriggerConfig | null | undefined): TriggerConfig => {
|
|
63
63
|
if (!value) return DEFAULT_CONFIG;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
const normalize = (parsed: Partial<TriggerConfig>): TriggerConfig => ({
|
|
65
|
+
type: parsed.type || 'event_based',
|
|
66
|
+
eventName: parsed.eventName || '',
|
|
67
|
+
delayValue: parsed.delayValue ?? 10,
|
|
68
|
+
delayUnit: parsed.delayUnit || 'minutes',
|
|
69
|
+
scheduleType: parsed.scheduleType || 'daily',
|
|
70
|
+
scheduleTime: parsed.scheduleTime || '12:00',
|
|
71
|
+
scheduleDays: Array.isArray(parsed.scheduleDays) ? parsed.scheduleDays : [1, 2, 3, 4, 5],
|
|
72
|
+
scheduleCron: parsed.scheduleCron || '0 12 * * *',
|
|
73
|
+
});
|
|
74
|
+
if (typeof value === 'string') {
|
|
75
|
+
try {
|
|
76
|
+
return normalize(JSON.parse(value));
|
|
77
|
+
} catch {
|
|
78
|
+
return DEFAULT_CONFIG;
|
|
79
|
+
}
|
|
78
80
|
}
|
|
81
|
+
return normalize(value);
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
const serializeConfig = (config: TriggerConfig): string => {
|
|
@@ -7,18 +7,29 @@ const icons = require("@strapi/icons");
|
|
|
7
7
|
const utils = require("./utils-CmonL0io.js");
|
|
8
8
|
const parseButtons = (value) => {
|
|
9
9
|
if (!value) return [];
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (!Array.isArray(parsed)) return [];
|
|
13
|
-
return parsed.map((b) => ({
|
|
10
|
+
if (Array.isArray(value)) {
|
|
11
|
+
return value.map((b) => ({
|
|
14
12
|
id: typeof b?.id === "string" ? b.id : utils.generateId(),
|
|
15
13
|
text: typeof b?.text === "string" ? b.text : "",
|
|
16
14
|
url: typeof b?.url === "string" ? b.url : "",
|
|
17
15
|
row: typeof b?.row === "number" ? b.row : 0
|
|
18
16
|
}));
|
|
19
|
-
} catch {
|
|
20
|
-
return [];
|
|
21
17
|
}
|
|
18
|
+
if (typeof value === "string") {
|
|
19
|
+
try {
|
|
20
|
+
const parsed = JSON.parse(value);
|
|
21
|
+
if (!Array.isArray(parsed)) return [];
|
|
22
|
+
return parsed.map((b) => ({
|
|
23
|
+
id: typeof b?.id === "string" ? b.id : utils.generateId(),
|
|
24
|
+
text: typeof b?.text === "string" ? b.text : "",
|
|
25
|
+
url: typeof b?.url === "string" ? b.url : "",
|
|
26
|
+
row: typeof b?.row === "number" ? b.row : 0
|
|
27
|
+
}));
|
|
28
|
+
} catch {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
return [];
|
|
22
33
|
};
|
|
23
34
|
const serializeButtons = (buttons) => JSON.stringify(buttons);
|
|
24
35
|
const isValidUrl = (url) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { forwardRef, useState, useMemo, useCallback } from "react";
|
|
2
|
+
import React__default, { forwardRef, useState, useEffect, useMemo, useCallback } from "react";
|
|
3
3
|
import { Field, Flex, Badge, Button, Box, Typography, Tooltip, IconButton, SingleSelect, SingleSelectOption, Switch, TextInput } from "@strapi/design-system";
|
|
4
4
|
import { Trash, Plus, Layout } from "@strapi/icons";
|
|
5
5
|
import { useTheme } from "styled-components";
|
|
@@ -326,6 +326,9 @@ const RuleGroupComponent = ({
|
|
|
326
326
|
const RulesBuilder = forwardRef(
|
|
327
327
|
({ name, value, onChange, intlLabel, disabled, error, required, hint }, ref) => {
|
|
328
328
|
const [config, setConfig] = useState(() => deserializeConfig(value));
|
|
329
|
+
useEffect(() => {
|
|
330
|
+
setConfig(deserializeConfig(value));
|
|
331
|
+
}, [value]);
|
|
329
332
|
const displayLabel = useMemo(() => {
|
|
330
333
|
if (intlLabel?.defaultMessage && !intlLabel.defaultMessage.includes(".")) {
|
|
331
334
|
return intlLabel.defaultMessage;
|
|
@@ -24,21 +24,24 @@ const WEEKDAYS = [
|
|
|
24
24
|
];
|
|
25
25
|
const parseConfig = (value) => {
|
|
26
26
|
if (!value) return DEFAULT_CONFIG;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
const normalize = (parsed) => ({
|
|
28
|
+
type: parsed.type || "event_based",
|
|
29
|
+
eventName: parsed.eventName || "",
|
|
30
|
+
delayValue: parsed.delayValue ?? 10,
|
|
31
|
+
delayUnit: parsed.delayUnit || "minutes",
|
|
32
|
+
scheduleType: parsed.scheduleType || "daily",
|
|
33
|
+
scheduleTime: parsed.scheduleTime || "12:00",
|
|
34
|
+
scheduleDays: Array.isArray(parsed.scheduleDays) ? parsed.scheduleDays : [1, 2, 3, 4, 5],
|
|
35
|
+
scheduleCron: parsed.scheduleCron || "0 12 * * *"
|
|
36
|
+
});
|
|
37
|
+
if (typeof value === "string") {
|
|
38
|
+
try {
|
|
39
|
+
return normalize(JSON.parse(value));
|
|
40
|
+
} catch {
|
|
41
|
+
return DEFAULT_CONFIG;
|
|
42
|
+
}
|
|
41
43
|
}
|
|
44
|
+
return normalize(value);
|
|
42
45
|
};
|
|
43
46
|
const serializeConfig = (config) => {
|
|
44
47
|
return JSON.stringify(config);
|
|
@@ -100,15 +100,33 @@ const DEFAULT_CONFIG = {
|
|
|
100
100
|
};
|
|
101
101
|
const parseConfig = (value) => {
|
|
102
102
|
if (!value) return DEFAULT_CONFIG;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
if (typeof value === "string") {
|
|
104
|
+
try {
|
|
105
|
+
const parsed = JSON.parse(value);
|
|
106
|
+
if (parsed.logic && Array.isArray(parsed.rules)) {
|
|
107
|
+
return {
|
|
108
|
+
...parsed,
|
|
109
|
+
rules: parsed.rules.map((rule) => ({
|
|
110
|
+
...rule,
|
|
111
|
+
id: rule.id || generateId()
|
|
112
|
+
}))
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
return DEFAULT_CONFIG;
|
|
116
|
+
} catch {
|
|
117
|
+
return DEFAULT_CONFIG;
|
|
107
118
|
}
|
|
108
|
-
return DEFAULT_CONFIG;
|
|
109
|
-
} catch {
|
|
110
|
-
return DEFAULT_CONFIG;
|
|
111
119
|
}
|
|
120
|
+
if (value.logic && Array.isArray(value.rules)) {
|
|
121
|
+
return {
|
|
122
|
+
...value,
|
|
123
|
+
rules: value.rules.map((rule) => ({
|
|
124
|
+
...rule,
|
|
125
|
+
id: rule.id || generateId()
|
|
126
|
+
}))
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
return DEFAULT_CONFIG;
|
|
112
130
|
};
|
|
113
131
|
const serializeConfig = (config) => {
|
|
114
132
|
return JSON.stringify(config);
|
|
@@ -330,6 +330,9 @@ const RuleGroupComponent = ({
|
|
|
330
330
|
const RulesBuilder = React.forwardRef(
|
|
331
331
|
({ name, value, onChange, intlLabel, disabled, error, required, hint }, ref) => {
|
|
332
332
|
const [config, setConfig] = React.useState(() => utils.deserializeConfig(value));
|
|
333
|
+
React.useEffect(() => {
|
|
334
|
+
setConfig(utils.deserializeConfig(value));
|
|
335
|
+
}, [value]);
|
|
333
336
|
const displayLabel = React.useMemo(() => {
|
|
334
337
|
if (intlLabel?.defaultMessage && !intlLabel.defaultMessage.includes(".")) {
|
|
335
338
|
return intlLabel.defaultMessage;
|
|
@@ -22,21 +22,24 @@ const WEEKDAYS = [
|
|
|
22
22
|
];
|
|
23
23
|
const parseConfig = (value) => {
|
|
24
24
|
if (!value) return DEFAULT_CONFIG;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
25
|
+
const normalize = (parsed) => ({
|
|
26
|
+
type: parsed.type || "event_based",
|
|
27
|
+
eventName: parsed.eventName || "",
|
|
28
|
+
delayValue: parsed.delayValue ?? 10,
|
|
29
|
+
delayUnit: parsed.delayUnit || "minutes",
|
|
30
|
+
scheduleType: parsed.scheduleType || "daily",
|
|
31
|
+
scheduleTime: parsed.scheduleTime || "12:00",
|
|
32
|
+
scheduleDays: Array.isArray(parsed.scheduleDays) ? parsed.scheduleDays : [1, 2, 3, 4, 5],
|
|
33
|
+
scheduleCron: parsed.scheduleCron || "0 12 * * *"
|
|
34
|
+
});
|
|
35
|
+
if (typeof value === "string") {
|
|
36
|
+
try {
|
|
37
|
+
return normalize(JSON.parse(value));
|
|
38
|
+
} catch {
|
|
39
|
+
return DEFAULT_CONFIG;
|
|
40
|
+
}
|
|
39
41
|
}
|
|
42
|
+
return normalize(value);
|
|
40
43
|
};
|
|
41
44
|
const serializeConfig = (config) => {
|
|
42
45
|
return JSON.stringify(config);
|
|
@@ -5,18 +5,29 @@ import { ArrowUp, ArrowDown, Trash, Plus } from "@strapi/icons";
|
|
|
5
5
|
import { m as generateId } from "./utils-C6_ndVAZ.mjs";
|
|
6
6
|
const parseButtons = (value) => {
|
|
7
7
|
if (!value) return [];
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
if (!Array.isArray(parsed)) return [];
|
|
11
|
-
return parsed.map((b) => ({
|
|
8
|
+
if (Array.isArray(value)) {
|
|
9
|
+
return value.map((b) => ({
|
|
12
10
|
id: typeof b?.id === "string" ? b.id : generateId(),
|
|
13
11
|
text: typeof b?.text === "string" ? b.text : "",
|
|
14
12
|
url: typeof b?.url === "string" ? b.url : "",
|
|
15
13
|
row: typeof b?.row === "number" ? b.row : 0
|
|
16
14
|
}));
|
|
17
|
-
} catch {
|
|
18
|
-
return [];
|
|
19
15
|
}
|
|
16
|
+
if (typeof value === "string") {
|
|
17
|
+
try {
|
|
18
|
+
const parsed = JSON.parse(value);
|
|
19
|
+
if (!Array.isArray(parsed)) return [];
|
|
20
|
+
return parsed.map((b) => ({
|
|
21
|
+
id: typeof b?.id === "string" ? b.id : generateId(),
|
|
22
|
+
text: typeof b?.text === "string" ? b.text : "",
|
|
23
|
+
url: typeof b?.url === "string" ? b.url : "",
|
|
24
|
+
row: typeof b?.row === "number" ? b.row : 0
|
|
25
|
+
}));
|
|
26
|
+
} catch {
|
|
27
|
+
return [];
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return [];
|
|
20
31
|
};
|
|
21
32
|
const serializeButtons = (buttons) => JSON.stringify(buttons);
|
|
22
33
|
const isValidUrl = (url) => {
|
|
@@ -96,15 +96,33 @@ const DEFAULT_CONFIG = {
|
|
|
96
96
|
};
|
|
97
97
|
const parseConfig = (value) => {
|
|
98
98
|
if (!value) return DEFAULT_CONFIG;
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
if (typeof value === "string") {
|
|
100
|
+
try {
|
|
101
|
+
const parsed = JSON.parse(value);
|
|
102
|
+
if (parsed.logic && Array.isArray(parsed.rules)) {
|
|
103
|
+
return {
|
|
104
|
+
...parsed,
|
|
105
|
+
rules: parsed.rules.map((rule) => ({
|
|
106
|
+
...rule,
|
|
107
|
+
id: rule.id || generateId()
|
|
108
|
+
}))
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
return DEFAULT_CONFIG;
|
|
112
|
+
} catch {
|
|
113
|
+
return DEFAULT_CONFIG;
|
|
103
114
|
}
|
|
104
|
-
return DEFAULT_CONFIG;
|
|
105
|
-
} catch {
|
|
106
|
-
return DEFAULT_CONFIG;
|
|
107
115
|
}
|
|
116
|
+
if (value.logic && Array.isArray(value.rules)) {
|
|
117
|
+
return {
|
|
118
|
+
...value,
|
|
119
|
+
rules: value.rules.map((rule) => ({
|
|
120
|
+
...rule,
|
|
121
|
+
id: rule.id || generateId()
|
|
122
|
+
}))
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
return DEFAULT_CONFIG;
|
|
108
126
|
};
|
|
109
127
|
const serializeConfig = (config) => {
|
|
110
128
|
return JSON.stringify(config);
|
|
@@ -5013,7 +5013,7 @@ var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
|
5013
5013
|
var ys = arrObjKeys(obj, inspect2);
|
|
5014
5014
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
5015
5015
|
var protoTag = obj instanceof Object ? "" : "null prototype";
|
|
5016
|
-
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
|
|
5016
|
+
var stringTag2 = !isPlainObject2 && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? "Object" : "";
|
|
5017
5017
|
var constructorTag = isPlainObject2 || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
|
|
5018
5018
|
var tag = constructorTag + (stringTag2 || protoTag ? "[" + $join.call($concat$1.call([], stringTag2 || [], protoTag || []), ": ") + "] " : "");
|
|
5019
5019
|
if (ys.length === 0) {
|
|
@@ -5038,25 +5038,25 @@ function canTrustToString(obj) {
|
|
|
5038
5038
|
return !toStringTag || !(typeof obj === "object" && (toStringTag in obj || typeof obj[toStringTag] !== "undefined"));
|
|
5039
5039
|
}
|
|
5040
5040
|
function isArray$8(obj) {
|
|
5041
|
-
return toStr(obj) === "[object Array]" && canTrustToString(obj);
|
|
5041
|
+
return toStr$1(obj) === "[object Array]" && canTrustToString(obj);
|
|
5042
5042
|
}
|
|
5043
5043
|
function isDate$1(obj) {
|
|
5044
|
-
return toStr(obj) === "[object Date]" && canTrustToString(obj);
|
|
5044
|
+
return toStr$1(obj) === "[object Date]" && canTrustToString(obj);
|
|
5045
5045
|
}
|
|
5046
5046
|
function isRegExp$1(obj) {
|
|
5047
|
-
return toStr(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
5047
|
+
return toStr$1(obj) === "[object RegExp]" && canTrustToString(obj);
|
|
5048
5048
|
}
|
|
5049
5049
|
function isError$1(obj) {
|
|
5050
|
-
return toStr(obj) === "[object Error]" && canTrustToString(obj);
|
|
5050
|
+
return toStr$1(obj) === "[object Error]" && canTrustToString(obj);
|
|
5051
5051
|
}
|
|
5052
5052
|
function isString(obj) {
|
|
5053
|
-
return toStr(obj) === "[object String]" && canTrustToString(obj);
|
|
5053
|
+
return toStr$1(obj) === "[object String]" && canTrustToString(obj);
|
|
5054
5054
|
}
|
|
5055
5055
|
function isNumber(obj) {
|
|
5056
|
-
return toStr(obj) === "[object Number]" && canTrustToString(obj);
|
|
5056
|
+
return toStr$1(obj) === "[object Number]" && canTrustToString(obj);
|
|
5057
5057
|
}
|
|
5058
5058
|
function isBoolean(obj) {
|
|
5059
|
-
return toStr(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
5059
|
+
return toStr$1(obj) === "[object Boolean]" && canTrustToString(obj);
|
|
5060
5060
|
}
|
|
5061
5061
|
function isSymbol$2(obj) {
|
|
5062
5062
|
if (hasShammedSymbols) {
|
|
@@ -5092,7 +5092,7 @@ var hasOwn$1 = Object.prototype.hasOwnProperty || function(key) {
|
|
|
5092
5092
|
function has$5(obj, key) {
|
|
5093
5093
|
return hasOwn$1.call(obj, key);
|
|
5094
5094
|
}
|
|
5095
|
-
function toStr(obj) {
|
|
5095
|
+
function toStr$1(obj) {
|
|
5096
5096
|
return objectToString.call(obj);
|
|
5097
5097
|
}
|
|
5098
5098
|
function nameOf(f2) {
|
|
@@ -5401,7 +5401,7 @@ var syntax = SyntaxError;
|
|
|
5401
5401
|
var uri = URIError;
|
|
5402
5402
|
var abs$1 = Math.abs;
|
|
5403
5403
|
var floor$1 = Math.floor;
|
|
5404
|
-
var max$
|
|
5404
|
+
var max$2 = Math.max;
|
|
5405
5405
|
var min$1 = Math.min;
|
|
5406
5406
|
var pow$1 = Math.pow;
|
|
5407
5407
|
var round$1 = Math.round;
|
|
@@ -5530,99 +5530,78 @@ function requireObject_getPrototypeOf() {
|
|
|
5530
5530
|
Object_getPrototypeOf = $Object2.getPrototypeOf || null;
|
|
5531
5531
|
return Object_getPrototypeOf;
|
|
5532
5532
|
}
|
|
5533
|
-
var
|
|
5534
|
-
var
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
var
|
|
5539
|
-
var
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
var
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
}
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5533
|
+
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
5534
|
+
var toStr = Object.prototype.toString;
|
|
5535
|
+
var max$1 = Math.max;
|
|
5536
|
+
var funcType = "[object Function]";
|
|
5537
|
+
var concatty = function concatty2(a2, b2) {
|
|
5538
|
+
var arr = [];
|
|
5539
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
5540
|
+
arr[i2] = a2[i2];
|
|
5541
|
+
}
|
|
5542
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
5543
|
+
arr[j2 + a2.length] = b2[j2];
|
|
5544
|
+
}
|
|
5545
|
+
return arr;
|
|
5546
|
+
};
|
|
5547
|
+
var slicy = function slicy2(arrLike, offset) {
|
|
5548
|
+
var arr = [];
|
|
5549
|
+
for (var i2 = offset, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
5550
|
+
arr[j2] = arrLike[i2];
|
|
5551
|
+
}
|
|
5552
|
+
return arr;
|
|
5553
|
+
};
|
|
5554
|
+
var joiny = function(arr, joiner) {
|
|
5555
|
+
var str = "";
|
|
5556
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
5557
|
+
str += arr[i2];
|
|
5558
|
+
if (i2 + 1 < arr.length) {
|
|
5559
|
+
str += joiner;
|
|
5556
5560
|
}
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5561
|
+
}
|
|
5562
|
+
return str;
|
|
5563
|
+
};
|
|
5564
|
+
var implementation$1 = function bind(that) {
|
|
5565
|
+
var target = this;
|
|
5566
|
+
if (typeof target !== "function" || toStr.apply(target) !== funcType) {
|
|
5567
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
5568
|
+
}
|
|
5569
|
+
var args = slicy(arguments, 1);
|
|
5570
|
+
var bound;
|
|
5571
|
+
var binder = function() {
|
|
5572
|
+
if (this instanceof bound) {
|
|
5573
|
+
var result = target.apply(
|
|
5574
|
+
this,
|
|
5575
|
+
concatty(args, arguments)
|
|
5576
|
+
);
|
|
5577
|
+
if (Object(result) === result) {
|
|
5578
|
+
return result;
|
|
5565
5579
|
}
|
|
5580
|
+
return this;
|
|
5566
5581
|
}
|
|
5567
|
-
return
|
|
5582
|
+
return target.apply(
|
|
5583
|
+
that,
|
|
5584
|
+
concatty(args, arguments)
|
|
5585
|
+
);
|
|
5568
5586
|
};
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
var
|
|
5577
|
-
if (this instanceof bound) {
|
|
5578
|
-
var result = target.apply(
|
|
5579
|
-
this,
|
|
5580
|
-
concatty(args, arguments)
|
|
5581
|
-
);
|
|
5582
|
-
if (Object(result) === result) {
|
|
5583
|
-
return result;
|
|
5584
|
-
}
|
|
5585
|
-
return this;
|
|
5586
|
-
}
|
|
5587
|
-
return target.apply(
|
|
5588
|
-
that,
|
|
5589
|
-
concatty(args, arguments)
|
|
5590
|
-
);
|
|
5587
|
+
var boundLength = max$1(0, target.length - args.length);
|
|
5588
|
+
var boundArgs = [];
|
|
5589
|
+
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
5590
|
+
boundArgs[i2] = "$" + i2;
|
|
5591
|
+
}
|
|
5592
|
+
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
5593
|
+
if (target.prototype) {
|
|
5594
|
+
var Empty = function Empty2() {
|
|
5591
5595
|
};
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
Empty.prototype = target.prototype;
|
|
5602
|
-
bound.prototype = new Empty();
|
|
5603
|
-
Empty.prototype = null;
|
|
5604
|
-
}
|
|
5605
|
-
return bound;
|
|
5606
|
-
};
|
|
5607
|
-
return implementation;
|
|
5608
|
-
}
|
|
5609
|
-
var functionBind;
|
|
5610
|
-
var hasRequiredFunctionBind;
|
|
5611
|
-
function requireFunctionBind() {
|
|
5612
|
-
if (hasRequiredFunctionBind) return functionBind;
|
|
5613
|
-
hasRequiredFunctionBind = 1;
|
|
5614
|
-
var implementation2 = requireImplementation();
|
|
5615
|
-
functionBind = Function.prototype.bind || implementation2;
|
|
5616
|
-
return functionBind;
|
|
5617
|
-
}
|
|
5618
|
-
var functionCall;
|
|
5619
|
-
var hasRequiredFunctionCall;
|
|
5620
|
-
function requireFunctionCall() {
|
|
5621
|
-
if (hasRequiredFunctionCall) return functionCall;
|
|
5622
|
-
hasRequiredFunctionCall = 1;
|
|
5623
|
-
functionCall = Function.prototype.call;
|
|
5624
|
-
return functionCall;
|
|
5625
|
-
}
|
|
5596
|
+
Empty.prototype = target.prototype;
|
|
5597
|
+
bound.prototype = new Empty();
|
|
5598
|
+
Empty.prototype = null;
|
|
5599
|
+
}
|
|
5600
|
+
return bound;
|
|
5601
|
+
};
|
|
5602
|
+
var implementation = implementation$1;
|
|
5603
|
+
var functionBind = Function.prototype.bind || implementation;
|
|
5604
|
+
var functionCall = Function.prototype.call;
|
|
5626
5605
|
var functionApply;
|
|
5627
5606
|
var hasRequiredFunctionApply;
|
|
5628
5607
|
function requireFunctionApply() {
|
|
@@ -5632,14 +5611,14 @@ function requireFunctionApply() {
|
|
|
5632
5611
|
return functionApply;
|
|
5633
5612
|
}
|
|
5634
5613
|
var reflectApply = typeof Reflect !== "undefined" && Reflect && Reflect.apply;
|
|
5635
|
-
var bind$2 =
|
|
5614
|
+
var bind$2 = functionBind;
|
|
5636
5615
|
var $apply$1 = requireFunctionApply();
|
|
5637
|
-
var $call$2 =
|
|
5616
|
+
var $call$2 = functionCall;
|
|
5638
5617
|
var $reflectApply = reflectApply;
|
|
5639
5618
|
var actualApply = $reflectApply || bind$2.call($call$2, $apply$1);
|
|
5640
|
-
var bind$1 =
|
|
5619
|
+
var bind$1 = functionBind;
|
|
5641
5620
|
var $TypeError$4 = type;
|
|
5642
|
-
var $call$1 =
|
|
5621
|
+
var $call$1 = functionCall;
|
|
5643
5622
|
var $actualApply = actualApply;
|
|
5644
5623
|
var callBindApplyHelpers = function callBindBasic(args) {
|
|
5645
5624
|
if (args.length < 1 || typeof args[0] !== "function") {
|
|
@@ -5705,8 +5684,8 @@ function requireHasown() {
|
|
|
5705
5684
|
hasRequiredHasown = 1;
|
|
5706
5685
|
var call = Function.prototype.call;
|
|
5707
5686
|
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
5708
|
-
var
|
|
5709
|
-
hasown =
|
|
5687
|
+
var bind3 = functionBind;
|
|
5688
|
+
hasown = bind3.call(call, $hasOwn);
|
|
5710
5689
|
return hasown;
|
|
5711
5690
|
}
|
|
5712
5691
|
var undefined$1;
|
|
@@ -5720,7 +5699,7 @@ var $TypeError$3 = type;
|
|
|
5720
5699
|
var $URIError = uri;
|
|
5721
5700
|
var abs = abs$1;
|
|
5722
5701
|
var floor = floor$1;
|
|
5723
|
-
var max = max$
|
|
5702
|
+
var max = max$2;
|
|
5724
5703
|
var min = min$1;
|
|
5725
5704
|
var pow = pow$1;
|
|
5726
5705
|
var round = round$1;
|
|
@@ -5754,7 +5733,7 @@ var getProto = requireGetProto();
|
|
|
5754
5733
|
var $ObjectGPO = requireObject_getPrototypeOf();
|
|
5755
5734
|
var $ReflectGPO = requireReflect_getPrototypeOf();
|
|
5756
5735
|
var $apply = requireFunctionApply();
|
|
5757
|
-
var $call =
|
|
5736
|
+
var $call = functionCall;
|
|
5758
5737
|
var needsEval = {};
|
|
5759
5738
|
var TypedArray = typeof Uint8Array === "undefined" || !getProto ? undefined$1 : getProto(Uint8Array);
|
|
5760
5739
|
var INTRINSICS = {
|
|
@@ -5925,13 +5904,13 @@ var LEGACY_ALIASES = {
|
|
|
5925
5904
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
5926
5905
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
5927
5906
|
};
|
|
5928
|
-
var
|
|
5907
|
+
var bind2 = functionBind;
|
|
5929
5908
|
var hasOwn = requireHasown();
|
|
5930
|
-
var $concat =
|
|
5931
|
-
var $spliceApply =
|
|
5932
|
-
var $replace =
|
|
5933
|
-
var $strSlice =
|
|
5934
|
-
var $exec =
|
|
5909
|
+
var $concat = bind2.call($call, Array.prototype.concat);
|
|
5910
|
+
var $spliceApply = bind2.call($apply, Array.prototype.splice);
|
|
5911
|
+
var $replace = bind2.call($call, String.prototype.replace);
|
|
5912
|
+
var $strSlice = bind2.call($call, String.prototype.slice);
|
|
5913
|
+
var $exec = bind2.call($call, RegExp.prototype.exec);
|
|
5935
5914
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
5936
5915
|
var reEscapeChar = /\\(\\)?/g;
|
|
5937
5916
|
var stringToPath$1 = function stringToPath(string2) {
|
package/dist/admin/index.js
CHANGED
|
@@ -35,7 +35,7 @@ const index = {
|
|
|
35
35
|
components: {
|
|
36
36
|
Input: async () => Promise.resolve().then(() => require(
|
|
37
37
|
/* webpackChunkName: "crm-rules-builder" */
|
|
38
|
-
"../_chunks/index-
|
|
38
|
+
"../_chunks/index-CzC9cKzN.js"
|
|
39
39
|
))
|
|
40
40
|
},
|
|
41
41
|
options: {
|
|
@@ -59,7 +59,7 @@ const index = {
|
|
|
59
59
|
components: {
|
|
60
60
|
Input: async () => Promise.resolve().then(() => require(
|
|
61
61
|
/* webpackChunkName: "crm-trigger-config" */
|
|
62
|
-
"../_chunks/index-
|
|
62
|
+
"../_chunks/index-BuKU4frx.js"
|
|
63
63
|
))
|
|
64
64
|
},
|
|
65
65
|
options: {
|
|
@@ -83,7 +83,7 @@ const index = {
|
|
|
83
83
|
components: {
|
|
84
84
|
Input: async () => Promise.resolve().then(() => require(
|
|
85
85
|
/* webpackChunkName: "crm-cancel-conditions" */
|
|
86
|
-
"../_chunks/index-
|
|
86
|
+
"../_chunks/index-CipW7YLs.js"
|
|
87
87
|
))
|
|
88
88
|
},
|
|
89
89
|
options: {
|
|
@@ -107,7 +107,7 @@ const index = {
|
|
|
107
107
|
components: {
|
|
108
108
|
Input: async () => Promise.resolve().then(() => require(
|
|
109
109
|
/* webpackChunkName: "crm-telegram-buttons" */
|
|
110
|
-
"../_chunks/index-
|
|
110
|
+
"../_chunks/index-B_mxTw3i.js"
|
|
111
111
|
))
|
|
112
112
|
},
|
|
113
113
|
options: {
|
package/dist/admin/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ const index = {
|
|
|
34
34
|
components: {
|
|
35
35
|
Input: async () => import(
|
|
36
36
|
/* webpackChunkName: "crm-rules-builder" */
|
|
37
|
-
"../_chunks/index-
|
|
37
|
+
"../_chunks/index-BeoIfbL9.mjs"
|
|
38
38
|
)
|
|
39
39
|
},
|
|
40
40
|
options: {
|
|
@@ -58,7 +58,7 @@ const index = {
|
|
|
58
58
|
components: {
|
|
59
59
|
Input: async () => import(
|
|
60
60
|
/* webpackChunkName: "crm-trigger-config" */
|
|
61
|
-
"../_chunks/index-
|
|
61
|
+
"../_chunks/index-DQTv0iBM.mjs"
|
|
62
62
|
)
|
|
63
63
|
},
|
|
64
64
|
options: {
|
|
@@ -82,7 +82,7 @@ const index = {
|
|
|
82
82
|
components: {
|
|
83
83
|
Input: async () => import(
|
|
84
84
|
/* webpackChunkName: "crm-cancel-conditions" */
|
|
85
|
-
"../_chunks/index-
|
|
85
|
+
"../_chunks/index-JOsIDBgU.mjs"
|
|
86
86
|
)
|
|
87
87
|
},
|
|
88
88
|
options: {
|
|
@@ -106,7 +106,7 @@ const index = {
|
|
|
106
106
|
components: {
|
|
107
107
|
Input: async () => import(
|
|
108
108
|
/* webpackChunkName: "crm-telegram-buttons" */
|
|
109
|
-
"../_chunks/index-
|
|
109
|
+
"../_chunks/index-DlVJIvrD.mjs"
|
|
110
110
|
)
|
|
111
111
|
},
|
|
112
112
|
options: {
|
|
@@ -124,7 +124,7 @@ const index = {
|
|
|
124
124
|
Component: async () => {
|
|
125
125
|
const component = await import(
|
|
126
126
|
/* webpackChunkName: "crm-dashboard-page" */
|
|
127
|
-
"../_chunks/index-
|
|
127
|
+
"../_chunks/index-oWQdx7-R.mjs"
|
|
128
128
|
);
|
|
129
129
|
return component;
|
|
130
130
|
},
|