@emailmaker/emailmaker 1.0.96 → 1.0.98
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/README.md +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.441a4dbc4384f20fcf1e.html +1 -0
- package/iframe/iframe.441a4dbc4384f20fcf1e.html +1 -0
- package/iframe/js/330.378aec42.js +1 -0
- package/iframe/js/{826.0e4820c1.js.LICENSE.txt → 330.378aec42.js.LICENSE.txt} +1 -1
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/react/index.js +1 -1
- package/react/index.mjs +1 -1
- package/translations.pot +322 -305
- package/asset-manifest.json +0 -165
- package/css.worker.js +0 -2
- package/css.worker.js.LICENSE.txt +0 -6
- package/editor.worker.js +0 -1
- package/emailmaker-esm.js +0 -1
- package/emailmaker.d.ts +0 -1826
- package/emailmaker.js +0 -1
- package/html.worker.js +0 -2
- package/html.worker.js.LICENSE.txt +0 -14
- package/iframe/iframe-eblock.e8d51b90ab45966000c9.html +0 -1
- package/iframe/iframe.e8d51b90ab45966000c9.html +0 -1
- package/iframe/js/826.0e4820c1.js +0 -1
- package/plugin.html +0 -294
- package/plugin_blocks_test.html +0 -144
- package/plugin_default.html +0 -56
- package/plugin_idigital.html +0 -254
- package/plugin_nota.html +0 -861
- package/plugin_s.html +0 -31
- package/static/css/57.3f9e7de8.chunk.css +0 -1
- package/static/css/578.fe5765dd.chunk.css +0 -1
- package/static/css/6501.e131603e.chunk.css +0 -1
- package/static/css/6798.94b6a519.chunk.css +0 -1
- package/static/css/8084.15f07f40.chunk.css +0 -1
- package/static/js/1303.f6ad7f62.js +0 -2
- package/static/js/1303.f6ad7f62.js.LICENSE.txt +0 -11
- package/static/js/1538.97b965ba.chunk.js +0 -2
- package/static/js/1538.97b965ba.chunk.js.LICENSE.txt +0 -23
- package/static/js/1654.d922b07e.js +0 -2
- package/static/js/1654.d922b07e.js.LICENSE.txt +0 -38
- package/static/js/1729.a0be903e.chunk.js +0 -1
- package/static/js/1880.a21db601.chunk.js +0 -1
- package/static/js/2642.b60a63f6.chunk.js +0 -1
- package/static/js/2715.c21845e3.js +0 -2
- package/static/js/2715.c21845e3.js.LICENSE.txt +0 -59
- package/static/js/3017.6335b77e.chunk.js +0 -1
- package/static/js/3019.aaa6d087.chunk.js +0 -2
- package/static/js/3019.aaa6d087.chunk.js.LICENSE.txt +0 -6
- package/static/js/3085.b9d27236.chunk.js +0 -2
- package/static/js/3085.b9d27236.chunk.js.LICENSE.txt +0 -54
- package/static/js/3220.db24c24f.js +0 -2
- package/static/js/3220.db24c24f.js.LICENSE.txt +0 -39
- package/static/js/4309.ae8e4ad0.chunk.js +0 -1
- package/static/js/4972.264e4569.js +0 -1
- package/static/js/5346.4aaf9222.chunk.js +0 -2
- package/static/js/5346.4aaf9222.chunk.js.LICENSE.txt +0 -6
- package/static/js/542.c5e7e839.js +0 -2
- package/static/js/542.c5e7e839.js.LICENSE.txt +0 -21
- package/static/js/57.4cd2b40e.chunk.js +0 -1
- package/static/js/578.068dd4e8.chunk.js +0 -2
- package/static/js/578.068dd4e8.chunk.js.LICENSE.txt +0 -6
- package/static/js/6144.a3bf0881.chunk.js +0 -2
- package/static/js/6144.a3bf0881.chunk.js.LICENSE.txt +0 -6
- package/static/js/6419.e52a6158.js +0 -2
- package/static/js/6419.e52a6158.js.LICENSE.txt +0 -1
- package/static/js/6501.7570e270.chunk.js +0 -1
- package/static/js/6798.ae85cbf9.chunk.js +0 -2
- package/static/js/6798.ae85cbf9.chunk.js.LICENSE.txt +0 -39
- package/static/js/6819.85c72c79.chunk.js +0 -2
- package/static/js/6819.85c72c79.chunk.js.LICENSE.txt +0 -6
- package/static/js/6957.5082b810.chunk.js +0 -1
- package/static/js/7463.69864ff5.chunk.js +0 -2
- package/static/js/7463.69864ff5.chunk.js.LICENSE.txt +0 -6
- package/static/js/8084.5458cfaf.chunk.js +0 -1
- package/static/js/8473.54e12d36.chunk.js +0 -2
- package/static/js/8473.54e12d36.chunk.js.LICENSE.txt +0 -101
- package/static/js/8521.a1623fc2.chunk.js +0 -2
- package/static/js/8521.a1623fc2.chunk.js.LICENSE.txt +0 -6
- package/static/js/9644.1ae95bb7.chunk.js +0 -2
- package/static/js/9644.1ae95bb7.chunk.js.LICENSE.txt +0 -6
- package/static/js/9960.218c70ae.chunk.js +0 -2
- package/static/js/9960.218c70ae.chunk.js.LICENSE.txt +0 -30
- package/static/js/9981.6c41ee44.js +0 -1
- package/static/js/ant-locale/locale-ar_EG-js.a1f4a2ee.chunk.js +0 -1
- package/static/js/ant-locale/locale-az_AZ-js.1b3f2ec6.chunk.js +0 -1
- package/static/js/ant-locale/locale-bg_BG-js.2f68d816.chunk.js +0 -1
- package/static/js/ant-locale/locale-bn_BD-js.38ca14cb.chunk.js +0 -1
- package/static/js/ant-locale/locale-by_BY-js.927570db.chunk.js +0 -1
- package/static/js/ant-locale/locale-ca_ES-js.e4bdfa2b.chunk.js +0 -1
- package/static/js/ant-locale/locale-cs_CZ-js.f1151015.chunk.js +0 -1
- package/static/js/ant-locale/locale-da_DK-js.33e12cfb.chunk.js +0 -1
- package/static/js/ant-locale/locale-de_DE-js.42497042.chunk.js +0 -1
- package/static/js/ant-locale/locale-el_GR-js.007d40b4.chunk.js +0 -1
- package/static/js/ant-locale/locale-en_GB-js.6756ba01.chunk.js +0 -1
- package/static/js/ant-locale/locale-es_ES-js.43424efe.chunk.js +0 -1
- package/static/js/ant-locale/locale-et_EE-js.3694348e.chunk.js +0 -1
- package/static/js/ant-locale/locale-eu_ES-js.e2678a29.chunk.js +0 -1
- package/static/js/ant-locale/locale-fa_IR-js.3b6bfddc.chunk.js +0 -1
- package/static/js/ant-locale/locale-fi_FI-js.8e749864.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_BE-js.2aec36ca.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_CA-js.ba00ca3a.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_FR-js.1e6d0a10.chunk.js +0 -1
- package/static/js/ant-locale/locale-ga_IE-js.cc1f0f56.chunk.js +0 -1
- package/static/js/ant-locale/locale-gl_ES-js.c1588dec.chunk.js +0 -1
- package/static/js/ant-locale/locale-he_IL-js.1be3257a.chunk.js +0 -1
- package/static/js/ant-locale/locale-hi_IN-js.8e3ea1dc.chunk.js +0 -1
- package/static/js/ant-locale/locale-hr_HR-js.94001d08.chunk.js +0 -1
- package/static/js/ant-locale/locale-hu_HU-js.50a3ffc6.chunk.js +0 -1
- package/static/js/ant-locale/locale-hy_AM-js.6b20bceb.chunk.js +0 -1
- package/static/js/ant-locale/locale-id_ID-js.b380cc8b.chunk.js +0 -1
- package/static/js/ant-locale/locale-is_IS-js.995979c0.chunk.js +0 -1
- package/static/js/ant-locale/locale-it_IT-js.46a8ce6d.chunk.js +0 -1
- package/static/js/ant-locale/locale-ja_JP-js.69f9da33.chunk.js +0 -1
- package/static/js/ant-locale/locale-ka_GE-js.8b08646c.chunk.js +0 -1
- package/static/js/ant-locale/locale-kk_KZ-js.a1cc2ddc.chunk.js +0 -1
- package/static/js/ant-locale/locale-km_KH-js.09c630f9.chunk.js +0 -1
- package/static/js/ant-locale/locale-kmr_IQ-js.c25f3afa.chunk.js +0 -1
- package/static/js/ant-locale/locale-kn_IN-js.40066823.chunk.js +0 -1
- package/static/js/ant-locale/locale-ko_KR-js.68047848.chunk.js +0 -1
- package/static/js/ant-locale/locale-ku_IQ-js.594553b1.chunk.js +0 -1
- package/static/js/ant-locale/locale-lt_LT-js.08ac662b.chunk.js +0 -1
- package/static/js/ant-locale/locale-lv_LV-js.2a33af61.chunk.js +0 -1
- package/static/js/ant-locale/locale-mk_MK-js.caa088c9.chunk.js +0 -1
- package/static/js/ant-locale/locale-ml_IN-js.3aa233eb.chunk.js +0 -1
- package/static/js/ant-locale/locale-mn_MN-js.2550caa5.chunk.js +0 -1
- package/static/js/ant-locale/locale-ms_MY-js.924bfbf0.chunk.js +0 -1
- package/static/js/ant-locale/locale-my_MM-js.bc3805ae.chunk.js +0 -1
- package/static/js/ant-locale/locale-nb_NO-js.471cc88a.chunk.js +0 -1
- package/static/js/ant-locale/locale-ne_NP-js.52b65a1a.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_BE-js.2af0a7fe.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_NL-js.453457a0.chunk.js +0 -1
- package/static/js/ant-locale/locale-pl_PL-js.1e4b27da.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_BR-js.75dc6403.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_PT-js.b07438c3.chunk.js +0 -1
- package/static/js/ant-locale/locale-ro_RO-js.4a05dc9d.chunk.js +0 -1
- package/static/js/ant-locale/locale-si_LK-js.3b54f4c4.chunk.js +0 -1
- package/static/js/ant-locale/locale-sk_SK-js.cd76b6b1.chunk.js +0 -1
- package/static/js/ant-locale/locale-sl_SI-js.8afbce30.chunk.js +0 -1
- package/static/js/ant-locale/locale-sr_RS-js.0708405f.chunk.js +0 -1
- package/static/js/ant-locale/locale-sv_SE-js.9f47a065.chunk.js +0 -1
- package/static/js/ant-locale/locale-ta_IN-js.3b46361c.chunk.js +0 -1
- package/static/js/ant-locale/locale-th_TH-js.83e732d3.chunk.js +0 -1
- package/static/js/ant-locale/locale-tk_TK-js.63d0b187.chunk.js +0 -1
- package/static/js/ant-locale/locale-tr_TR-js.b5e42917.chunk.js +0 -1
- package/static/js/ant-locale/locale-uk_UA-js.ef0d8c8e.chunk.js +0 -1
- package/static/js/ant-locale/locale-ur_PK-js.904c3e1c.chunk.js +0 -1
- package/static/js/ant-locale/locale-vi_VN-js.f0324229.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_CN-js.428a6bc7.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_HK-js.0feb368f.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_TW-js.163140fa.chunk.js +0 -1
- package/static/js/emailmaker_core.f495f35b.js +0 -2
- package/static/js/emailmaker_core.f495f35b.js.LICENSE.txt +0 -23
- package/static/js/mergeTags/locale0.594765fd.chunk.js +0 -1
- package/static/js/mergeTags/locale1.7a79e21e.chunk.js +0 -1
- package/static/media/ai-image.7c42c2e12001ebf31881.png +0 -0
- package/static/media/codicon.f13d28f3e470ec5c0896.ttf +0 -0
- package/static/media/empty-image.1827d6561f3c4042dfb3.png +0 -0
- package/static/media/fb.ff10384394f8044ec889.png +0 -0
- package/static/media/frame_dark.318d7ed53535d80662dc.png +0 -0
- package/static/media/frame_light.22a9b4ec728365d8193f.png +0 -0
- package/static/media/frame_template_gallery.85693b3950e7689fb3a5.png +0 -0
- package/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg +0 -1
- package/static/media/icon-create-block.0b077f4000bf7907b9ea871d28c7fb1e.svg +0 -1
- package/static/media/icon-menu-block-welcome.1c534a003522feadd2e7.png +0 -0
- package/static/media/ig.47a89992b4bec92d4364.png +0 -0
- package/static/media/project-email-back-dark.9916625a9a714830b770.svg +0 -29
- package/static/media/project-email-back.0ce470def19ce7c063e0.svg +0 -29
- package/static/media/sign_up_01.333271584216122b89ba.png +0 -0
- package/static/media/sign_up_01_blocks.5538cfdb90d4869794dc.png +0 -0
- package/static/media/sign_up_02.d99d2aa6bf1ea74f01fa.png +0 -0
- package/static/media/sign_up_02_blocks.837fc2c9a9461fda13be.png +0 -0
- package/static/media/sign_up_03.5545ffad60a2cb5e0336.png +0 -0
- package/static/media/sign_up_03_blocks.126601f7a6fbea4b6c54.png +0 -0
- package/static/media/sign_up_04.398a4ca50d5f5b3cd837.png +0 -0
- package/static/media/sign_up_04_blocks.255c5c07b23cbcc256fd.png +0 -0
- package/static/media/sign_up_05.4c58df1be2edaa79d52b.png +0 -0
- package/static/media/sign_up_05_blocks.431b6844fdf3e14642c2.png +0 -0
- package/static/media/tg.10f004529a98df9732b9.png +0 -0
- package/static/media/tw.823a7736ac2d82815c71.png +0 -0
- package/static/media/video.854adea50295d0a3f7ae.png +0 -0
- package/static/media/vk.fe41df919f4e8718e0b3.png +0 -0
- package/static/media/yd.c40d05dde64ef695fdf2.png +0 -0
- package/static/media/yt.4ac57e55d158b40c7fc1.png +0 -0
package/plugin_nota.html
DELETED
|
@@ -1,861 +0,0 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><head><script id="plugin-script" src="emailmaker.js?26319353ace703f94d90"></script></head><body><button id="change_theme" style="width: 150px; height: 30px">Click Me</button><div style="background: white; width: 100%; height: 50px; display: flex; justify-content: center; align-items: center"></div><div id="shadow-host" style="padding: 0px; background: #fff; height: 100vh"></div><script async defer="defer">// import { init } from "./emailmaker-esm.js?26319353ace703f94d90";
|
|
2
|
-
const auth_jwt = {
|
|
3
|
-
username: '****',
|
|
4
|
-
password: '****',
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
const systemfields = [
|
|
8
|
-
{
|
|
9
|
-
label: 'Дополнительное поле «Имя»',
|
|
10
|
-
value: 'Name',
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
label: 'Имя получателя',
|
|
14
|
-
value: 'ToName',
|
|
15
|
-
},
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
const auth_client = {
|
|
19
|
-
client_id: '****',
|
|
20
|
-
client_secret: '****',
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
const getAuthToken = async () => {
|
|
24
|
-
var requestOptions = {
|
|
25
|
-
method: 'POST',
|
|
26
|
-
redirect: 'follow'
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
return fetch("https://emailmaker.ru/tests/plugin/temp_token_em.php", requestOptions)
|
|
30
|
-
.then(response => response.json())
|
|
31
|
-
.then(result => result.access_token)
|
|
32
|
-
.catch(error => { return ""; });
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const auth_client_oauth = {
|
|
37
|
-
client_id: '****',
|
|
38
|
-
client_secret: '****',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const BLOCKS_KEY = 'blocks';
|
|
42
|
-
const COMMENTS_KEY = 'blocks';
|
|
43
|
-
const RESOURSE = 'aaa.bbb.xyz.com';
|
|
44
|
-
let _instance = undefined;
|
|
45
|
-
const host = document.getElementById('shadow-host');
|
|
46
|
-
|
|
47
|
-
// Создаём Shadow DOM
|
|
48
|
-
const shadowRoot = host.attachShadow({ mode: 'closed' });
|
|
49
|
-
|
|
50
|
-
// Создаём элемент, который нужно вставить
|
|
51
|
-
const div = document.createElement('div');
|
|
52
|
-
div.id = 'test';
|
|
53
|
-
div.style.cssText = 'padding: 0px; background: #fff; height: 100vh';
|
|
54
|
-
|
|
55
|
-
// Вставляем в shadow DOM
|
|
56
|
-
shadowRoot.appendChild(div);
|
|
57
|
-
const options = {
|
|
58
|
-
getAuthToken,
|
|
59
|
-
previewIconEnabled: true,
|
|
60
|
-
livePreviewEnabled: true,
|
|
61
|
-
element: div,
|
|
62
|
-
handleEmailChanged(event) {
|
|
63
|
-
console.log(event);
|
|
64
|
-
},
|
|
65
|
-
handleLoad(instance) {
|
|
66
|
-
_instance = instance;
|
|
67
|
-
},
|
|
68
|
-
handleReadEmailRevisions() {
|
|
69
|
-
return [];
|
|
70
|
-
},
|
|
71
|
-
// async handleReadLocale() {
|
|
72
|
-
// const response = await fetch("./react_app-ru_RU.po");
|
|
73
|
-
// const text = await response.text();
|
|
74
|
-
// return text;
|
|
75
|
-
// },
|
|
76
|
-
async handleSaveEmail({ value }) {
|
|
77
|
-
const email = await _instance.compileEmail(value);
|
|
78
|
-
},
|
|
79
|
-
handleEmailChanged(event) {
|
|
80
|
-
console.log(event);
|
|
81
|
-
},
|
|
82
|
-
handleLoad(instance) {
|
|
83
|
-
_instance = instance;
|
|
84
|
-
},
|
|
85
|
-
async handleSaveEmail({ value }) {
|
|
86
|
-
const email = await _instance.compileEmail(value);
|
|
87
|
-
console.log(email);
|
|
88
|
-
},
|
|
89
|
-
handleCloneEmail(event) {
|
|
90
|
-
console.log(event);
|
|
91
|
-
},
|
|
92
|
-
handleShareEmail(event) {
|
|
93
|
-
console.log(event);
|
|
94
|
-
},
|
|
95
|
-
handlePreviewEmail(event) {
|
|
96
|
-
console.log(event);
|
|
97
|
-
},
|
|
98
|
-
handleLivePreviewEmail(event) {
|
|
99
|
-
console.log(event);
|
|
100
|
-
},
|
|
101
|
-
handleValidate(e) {
|
|
102
|
-
console.log(e);
|
|
103
|
-
},
|
|
104
|
-
handleEmailAutosave: () => {
|
|
105
|
-
console.log('handleEmailAutosave 1');
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
// headless: true,
|
|
109
|
-
content: {
|
|
110
|
-
templateId: 321739,
|
|
111
|
-
|
|
112
|
-
email: {
|
|
113
|
-
id: '3769995',
|
|
114
|
-
author: 123,
|
|
115
|
-
isNew: false,
|
|
116
|
-
subject: 'topic',
|
|
117
|
-
preheader: '',
|
|
118
|
-
description: '',
|
|
119
|
-
project: 'undefined',
|
|
120
|
-
parent_email: '309707',
|
|
121
|
-
common_styles:
|
|
122
|
-
'{"block":{"darkBgColor":"#1c52dc"},"text":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":16,"fontSizeDim":"px","lineHeight":21,"lineHeightDim":"px","color":"#5a5a5a","textAlign":"left","paddingBottom":10,"paddingBottomDim":"px"},"headings":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":24,"fontSizeDim":"px","lineHeight":32,"lineHeightDim":"px","color":"#333333","textAlign":"left","paddingTop":20,"paddingTopDim":"px","paddingBottom":10,"paddingBottomDim":"px","letterSpacing":0,"letterSpacingDim":"px","bold":true,"italic":false},"links":{"color":"#1C52DC","underline":true},"buttons":{"fontFamily":["Safe Fonts","-apple-system, \'Segoe UI\', \'Helvetica Neue\', Helvetica, Roboto, Arial, sans-serif"],"fontSize":16,"fontSizeDim":"px","letterSpacing":0,"letterSpacingDim":"px","color":"#FFFFFF","bold":false,"italic":false,"backgroundColor":"#1C52DC","marginTop":10,"marginTopDim":"px","marginBottom":10,"marginBottomDim":"px","border":{"all":null,"top":null,"right":null,"bottom":null,"left":null},"borderRadius":{"all":5,"topLeft":null,"topRight":null,"bottomRight":null,"bottomLeft":null},"textAlign":"center","padding":{"all":null,"top":null,"right":null,"bottom":null,"left":null}},"block":{"backgroundColor":""}}',
|
|
123
|
-
title: '',
|
|
124
|
-
date: '2024-01-12T08:42:09',
|
|
125
|
-
modified: '2024-02-16T17:21:01',
|
|
126
|
-
group: [],
|
|
127
|
-
lock: false,
|
|
128
|
-
utm_parameters: {
|
|
129
|
-
utm_content: 'ssssssss',
|
|
130
|
-
},
|
|
131
|
-
// "code": "<html><head></head><body><body></html>",
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
project: undefined,
|
|
135
|
-
user: {
|
|
136
|
-
id: 123,
|
|
137
|
-
username: 'testetrter',
|
|
138
|
-
name: 'ssss',
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
config: {
|
|
142
|
-
styles:
|
|
143
|
-
"\n .blocks-app .ant-cascader-dropdown .ant-cascader-menu-item[title='Google Fonts'] {\n display: none;\n }\n\n [data-node-key='Settings'] {\n display: none;\n }\n\n .blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab[data-node-key='Settings'] {\n display: none;\n }\n\n .blocks-app .ant-app .ant-tabs-large>.ant-tabs-nav .ant-tabs-tab[data-node-key='UTM parameters'] {\n margin: 0;\n }\n\n .blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane[id='rc-tabs-2-panel-Settings'] {\n display: none;\n }\n\n .blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder .ant-tabs-content>.ant-tabs-tabpane[id='rc-tabs-2-panel-UTM parameters'] {\n display: block !important;\n }\n\n .blocks-app .ant-form-item .ant-form-item-label >label {\n display: flex;\n flex-direction: row;\n }\n\n .blocks-app .ant-radio-group[id='selected_td_form_direction'] {\n display: none;\n }\n\n .blocks-app .ant-input-number .ant-input-number-input,\n .blocks-app .ant-input, \n .blocks-app .ant-app .ant-form-item-switch-label {\n font-family: Roboto;\n font-weight: var(--font-weight-400);\n font-size: var(--font-size-14);\n letter-spacing: 0px;\n line-height: var(--line-height-18);\n color: var(--color-grey-200);\n }\n\n .blocks-app .ant-app .form-group-title,\n .blocks-app .email-pane .ant-tabs .ant-tabs-tab-btn {\n font-family: Roboto;\n font-weight: var(--font-weight-500);\n font-size: var(--font-size-14);\n letter-spacing: 0px;\n line-height: var(--line-height-18);\n color: var(--color-grey-200);\n }\n\n .ant-space.ant-space-horizontal.ant-space-align-center.ant-space-gap-row-small.ant-space-gap-col-small {\n row-gap: var(--space-xxs) !important;\n column-gap: var(--space-xxs) !important;\n color: var(--color-grey-140);\n font-family: Roboto;\n font-weight: var(--font-weight-500);\n font-size: var(--font-size-14);\n letter-spacing: 0px;\n line-height: var(--line-height-18);\n }\n\n .blocks-app .ant-app .ant-btn-default {\n color: var(--gray-140);\n }\n \n .blocks-app .ant-btn-primary {\n background-color: var(--blue-120);\n }\n\n .blocks-app .email-pane__header {\n background-color: var(--common-white);\n }\n\n .blocks-app .ant-app .header__left .ant-btn.ant-btn-icon-only {\n border: var(--space-1) solid var(--color-grey-30);\n }\n\n .blocks-app .atoms__item,\n .blocks-app .ant-app .email-page .header__container .ant-btn, .blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,\n .blocks-app .ant-app .email-page .email-pane__collapse-wrapper .ant-btn, .blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper,\n .blocks-app .ant-input-number-affix-wrapper,\n .blocks-app .ant-input-number,\n .blocks-app .ant-input-number-group .ant-input-number-group-addon,\n .blocks-app .ant-input-affix-wrapper,\n .blocks-app .color-picker-input__control-wrap .ant-color-picker-trigger .ant-color-picker-color-block,\n .blocks-app .ant-select-single .ant-select-selector,\n .blocks-app .ant-cascader-dropdown .ant-cascader-menu-item,\n .blocks-app .upload-bg-image__inner-wrap,\n .blocks-app .upload-bg-image__uploader,\n .blocks-app .ant-app .ant-segmented,\n .blocks-app .ant-app .ant-segmented .ant-segmented-item,\n .blocks-app textarea.ant-input,\n .blocks-app .ant-alert,\n .blocks-app .email-pane .email-pane__content-col_main {\n border-radius: var(--border-radius4);\n }\n\n .blocks-app .ant-select-dropdown,\n .blocks-app .email-pane__tab-bar.ant-tabs-nav .ant-tabs-nav-list,\n .blocks-app .email-pane__collapse-wrapper {\n border-radius: var(--border-radius6);\n }\n\n .blocks-app [class^=\"ant-col\"], .blocks-app [class*=\" ant-col\"] {\n font-family: Roboto;\n }\n\n .blocks-app .ant-app .email-pane__content-col .ant-radio-button-wrapper:not(.ant-radio-button-wrapper-checked):hover {\n background-color: var(--gray-20);\n }\n\n .blocks-app .ant-switch.ant-switch-checked {\n background: var(--color-blue-120);\n }\n\n .blocks-app .ant-switch.ant-switch-checked:hover {\n background: var(--color-blue-100);\n }\n\n .blocks-app .ant-switch {\n background: var(--color-grey-100);\n }\n\n .blocks-app .ant-switch:hover {\n background: var(--color-grey-80);\n }\n\n .blocks-app .ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n color: var(--color-grey-200)\n }\n\n .blocks-app .email-pane .ant-tabs .ant-tabs-tab-btn:hover {\n color: var(--color-grey-200);\n }\n\n .blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {\n background-color: var(--color-blue-10);\n color: var(--color-blue-120);\n }\n\n .blocks-app .ant-tabs-right>.email-pane__tab-bar.ant-tabs-nav .ant-tabs-tab+.ant-tabs-tab .ant-tabs-tab-btn {\n color: var(--color-grey-140);\n }\n\n .blocks-app .email-pane .ant-tabs-large.secondary-tabs .ant-tabs-content {\n font-family: Roboto;\n padding: var(--space-xs) var(--space-xxxss) var(--space-xs) var(--space-xs);\n }\n\n .blocks-app .atoms__list {\n margin-bottom: 0;\n }\n\n .blocks-app .ant-app .ant-card-hoverable:hover {\n box-shadow: none;\n background-color: var(--color-grey-30);\n }\n\n .blocks-app .email-pane__tab-bar.ant-tabs-nav+.ant-tabs-content-holder {\n max-width: 83%;\n }\n\n .blocks-app .email-pane__col.email-pane__col_preview {\n height: 90%;\n max-height: 90vh;\n overflow: scroll;\n }\n\n .blocks-app .ant-notification {\n display: none;\n }\n\n .blocks-app .ant-app .email-page .header__container .ant-btn {\n font-weight: var(--font-weight-500);\n } \n\n .anticon-save,\n .anticon-cloud-download {\n >svg {\n width: var(--space-xsx);\n height: var(--space-xsx);\n }\n }\n\n .ant-btn.ant-btn-primary.ant-btn-block.em-analytics__email-save {\n display: flex;\n align-items: center\n }\n\n .ant-btn.ant-btn-default.ant-dropdown-trigger.em-analytics__email-page__export {\n display: flex;\n align-items: center;\n }\n\n .blocks-app .email-pane .ant-tabs .blocks-search__empty-wrapper {\n height: 100%;\n padding: var(--space-sm) var(--space-xsss) var(--space-xsss) var(--space-sm);\n }\n\n .blocks-app .ant-app .ant-layout {\n max-height: 95vh;\n }\n",
|
|
144
|
-
theme: 'light',
|
|
145
|
-
headerTitleVisible: false,
|
|
146
|
-
historyEnabled: false,
|
|
147
|
-
previewIconEnabled: false,
|
|
148
|
-
sendTestEnabled: false,
|
|
149
|
-
emailDropdownMenuEnabled: false,
|
|
150
|
-
emailDropdownMenuImport: false,
|
|
151
|
-
commentsEnabled: false,
|
|
152
|
-
aiAssistentEnabled: false,
|
|
153
|
-
exportOutlookEnabled: false,
|
|
154
|
-
exportPdfEnabled: false,
|
|
155
|
-
exportPngEnabled: false,
|
|
156
|
-
elementAIimageEnabled: false,
|
|
157
|
-
elementCountdownEnabled: false,
|
|
158
|
-
elementVideoEnabled: false,
|
|
159
|
-
elementCarouselEnabled: false,
|
|
160
|
-
elementAccordionEnabled: false,
|
|
161
|
-
elementFormEnabled: false,
|
|
162
|
-
blocksSavedEnabled: false,
|
|
163
|
-
blocksCommonEnabled: false,
|
|
164
|
-
blocksTemplateEnabled: false,
|
|
165
|
-
blocksSearchEnabled: false,
|
|
166
|
-
imageCenterGifEnabled: false,
|
|
167
|
-
imageCenterStockEnabled: false,
|
|
168
|
-
optimizeLinksEnabled: false,
|
|
169
|
-
optimizeImagesEnabled: false,
|
|
170
|
-
optimizeSpamAssassinEnabled: false,
|
|
171
|
-
imageCenterEditorEnabled: false,
|
|
172
|
-
formFieldExportAsPictureEnabled: false,
|
|
173
|
-
optimizeEnabled: false,
|
|
174
|
-
headerShow: true,
|
|
175
|
-
desktopMobileSwitchRule: true,
|
|
176
|
-
pathEnabled: true,
|
|
177
|
-
mergeTags: {
|
|
178
|
-
syntax: ['{{%value%}}'],
|
|
179
|
-
items: [
|
|
180
|
-
{
|
|
181
|
-
label: 'Системные',
|
|
182
|
-
value: 'system',
|
|
183
|
-
children: [
|
|
184
|
-
{
|
|
185
|
-
label: 'test66',
|
|
186
|
-
value: 'test66',
|
|
187
|
-
children: [
|
|
188
|
-
{
|
|
189
|
-
label: 'gggdd',
|
|
190
|
-
value: 'test66.gggdd',
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
label: '667',
|
|
196
|
-
value: '667',
|
|
197
|
-
children: [],
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
label: 'тест',
|
|
201
|
-
value: 'тест',
|
|
202
|
-
children: [],
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
label: 'personData',
|
|
206
|
-
value: 'personData',
|
|
207
|
-
children: [
|
|
208
|
-
{
|
|
209
|
-
label: 'middleName',
|
|
210
|
-
value: 'personData.middleName',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
label: 'id',
|
|
214
|
-
value: 'personData.id',
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
label: 'firstName',
|
|
218
|
-
value: 'personData.firstName',
|
|
219
|
-
},
|
|
220
|
-
],
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
label: 'test пробел ',
|
|
224
|
-
value: 'test пробел ',
|
|
225
|
-
children: [],
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
label: 'marka67',
|
|
229
|
-
value: 'marka67',
|
|
230
|
-
children: [],
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
label: 'marka',
|
|
234
|
-
value: 'marka',
|
|
235
|
-
children: [],
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
label: 'teste46475743753734',
|
|
239
|
-
value: 'teste46475743753734',
|
|
240
|
-
children: [],
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: 'testtttt',
|
|
244
|
-
value: 'testtttt',
|
|
245
|
-
children: [],
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
label: 'client_requests_subscribers',
|
|
249
|
-
value: 'client_requests_subscribers',
|
|
250
|
-
children: [
|
|
251
|
-
{
|
|
252
|
-
label: 'id',
|
|
253
|
-
value: 'client_requests_subscribers.id',
|
|
254
|
-
},
|
|
255
|
-
],
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
label: 'client_requests_subscribers2',
|
|
259
|
-
value: 'client_requests_subscribers2',
|
|
260
|
-
children: [
|
|
261
|
-
{
|
|
262
|
-
label: 'id',
|
|
263
|
-
value: 'client_requests_subscribers2.id',
|
|
264
|
-
},
|
|
265
|
-
],
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
label: 'client_requests_subscribers1',
|
|
269
|
-
value: 'client_requests_subscribers1',
|
|
270
|
-
children: [
|
|
271
|
-
{
|
|
272
|
-
label: 'id',
|
|
273
|
-
value: 'client_requests_subscribers1.id',
|
|
274
|
-
},
|
|
275
|
-
],
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
label: 'client_requests',
|
|
279
|
-
value: 'client_requests',
|
|
280
|
-
children: [
|
|
281
|
-
{
|
|
282
|
-
label: 'id',
|
|
283
|
-
value: 'client_requests.id',
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
label: 'status',
|
|
287
|
-
value: 'client_requests.status',
|
|
288
|
-
},
|
|
289
|
-
],
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
label: 'demo',
|
|
293
|
-
value: 'demo',
|
|
294
|
-
children: [
|
|
295
|
-
{
|
|
296
|
-
label: 'pokaz',
|
|
297
|
-
value: 'demo.pokaz',
|
|
298
|
-
},
|
|
299
|
-
],
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
label: 'test771',
|
|
303
|
-
value: 'test771',
|
|
304
|
-
children: [
|
|
305
|
-
{
|
|
306
|
-
label: 'test',
|
|
307
|
-
value: 'test771.test',
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
label: 'test18',
|
|
311
|
-
value: 'test771.test18',
|
|
312
|
-
},
|
|
313
|
-
],
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
label: 'personTest',
|
|
317
|
-
value: 'personTest',
|
|
318
|
-
children: [],
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
label: 'тест1504',
|
|
322
|
-
value: 'тест1504',
|
|
323
|
-
children: [
|
|
324
|
-
{
|
|
325
|
-
label: 'тест',
|
|
326
|
-
value: 'тест1504.тест',
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
label: 'тест',
|
|
330
|
-
value: 'тест1504.тест',
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
},
|
|
334
|
-
{
|
|
335
|
-
label: 'testAVV',
|
|
336
|
-
value: 'testAVV',
|
|
337
|
-
children: [],
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
label: 'testAVV1',
|
|
341
|
-
value: 'testAVV1',
|
|
342
|
-
children: [],
|
|
343
|
-
},
|
|
344
|
-
{
|
|
345
|
-
label: 'testAVV11',
|
|
346
|
-
value: 'testAVV11',
|
|
347
|
-
children: [
|
|
348
|
-
{
|
|
349
|
-
label: null,
|
|
350
|
-
value: 'testAVV11.null',
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
label: null,
|
|
354
|
-
value: 'testAVV11.null',
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
label: null,
|
|
358
|
-
value: 'testAVV11.null',
|
|
359
|
-
},
|
|
360
|
-
{
|
|
361
|
-
label: null,
|
|
362
|
-
value: 'testAVV11.null',
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
label: null,
|
|
366
|
-
value: 'testAVV11.null',
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
label: null,
|
|
370
|
-
value: 'testAVV11.null',
|
|
371
|
-
},
|
|
372
|
-
{
|
|
373
|
-
label: 'test',
|
|
374
|
-
value: 'testAVV11.test',
|
|
375
|
-
},
|
|
376
|
-
{
|
|
377
|
-
label: 'test1',
|
|
378
|
-
value: 'testAVV11.test1',
|
|
379
|
-
},
|
|
380
|
-
],
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
label: 'personDataOld',
|
|
384
|
-
value: 'personDataOld',
|
|
385
|
-
children: [
|
|
386
|
-
{
|
|
387
|
-
label: 'id',
|
|
388
|
-
value: 'personDataOld.id',
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
label: 'firstName',
|
|
392
|
-
value: 'personDataOld.firstName',
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
label: 'lastName',
|
|
396
|
-
value: 'personDataOld.lastName',
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
label: 'middleName',
|
|
400
|
-
value: 'personDataOld.middleName',
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
label: 'gender',
|
|
404
|
-
value: 'personDataOld.gender',
|
|
405
|
-
},
|
|
406
|
-
{
|
|
407
|
-
label: 'birthDate',
|
|
408
|
-
value: 'personDataOld.birthDate',
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
label: 'citizenshipCountry',
|
|
412
|
-
value: 'personDataOld.citizenshipCountry',
|
|
413
|
-
},
|
|
414
|
-
],
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
label: 'test7',
|
|
418
|
-
value: 'test7',
|
|
419
|
-
children: [],
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
label: 'test666',
|
|
423
|
-
value: 'test666',
|
|
424
|
-
children: [],
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
label: 'test333',
|
|
428
|
-
value: 'test333',
|
|
429
|
-
children: [
|
|
430
|
-
{
|
|
431
|
-
label: 'test',
|
|
432
|
-
value: 'test333.test',
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
label: 'test',
|
|
436
|
-
value: 'test333.test',
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
label: 'test123',
|
|
440
|
-
value: 'test333.test123',
|
|
441
|
-
},
|
|
442
|
-
],
|
|
443
|
-
},
|
|
444
|
-
{
|
|
445
|
-
label: 'test123456',
|
|
446
|
-
value: 'test123456',
|
|
447
|
-
children: [],
|
|
448
|
-
},
|
|
449
|
-
{
|
|
450
|
-
label: 'test12345',
|
|
451
|
-
value: 'test12345',
|
|
452
|
-
children: [],
|
|
453
|
-
},
|
|
454
|
-
{
|
|
455
|
-
label: 'test1234',
|
|
456
|
-
value: 'test1234',
|
|
457
|
-
children: [],
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
label: 'test123',
|
|
461
|
-
value: 'test123',
|
|
462
|
-
children: [],
|
|
463
|
-
},
|
|
464
|
-
{
|
|
465
|
-
label: 'fasdfasd',
|
|
466
|
-
value: 'fasdfasd',
|
|
467
|
-
children: [],
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
label: 'test',
|
|
471
|
-
value: 'test',
|
|
472
|
-
children: [],
|
|
473
|
-
},
|
|
474
|
-
{
|
|
475
|
-
label: 'const',
|
|
476
|
-
value: 'const',
|
|
477
|
-
children: [
|
|
478
|
-
{
|
|
479
|
-
label: 'T1_companyName',
|
|
480
|
-
value: 'const.T1_companyName',
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
label: 'PI',
|
|
484
|
-
value: 'const.PI',
|
|
485
|
-
},
|
|
486
|
-
],
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
label: 'system',
|
|
490
|
-
value: 'system',
|
|
491
|
-
children: [
|
|
492
|
-
{
|
|
493
|
-
label: 'currentDateTime',
|
|
494
|
-
value: 'system.currentDateTime',
|
|
495
|
-
},
|
|
496
|
-
{
|
|
497
|
-
label: 'currentDate',
|
|
498
|
-
value: 'system.currentDate',
|
|
499
|
-
},
|
|
500
|
-
{
|
|
501
|
-
label: 'currentDomain',
|
|
502
|
-
value: 'system.currentDomain',
|
|
503
|
-
},
|
|
504
|
-
{
|
|
505
|
-
label: null,
|
|
506
|
-
value: 'system.null',
|
|
507
|
-
},
|
|
508
|
-
],
|
|
509
|
-
},
|
|
510
|
-
{
|
|
511
|
-
label: 'kv',
|
|
512
|
-
value: 'kv',
|
|
513
|
-
children: [
|
|
514
|
-
{
|
|
515
|
-
label: 'kv',
|
|
516
|
-
value: 'kv.kv',
|
|
517
|
-
},
|
|
518
|
-
],
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
label: 'orgStructureUser2',
|
|
522
|
-
value: 'orgStructureUser2',
|
|
523
|
-
children: [
|
|
524
|
-
{
|
|
525
|
-
label: 'name1',
|
|
526
|
-
value: 'orgStructureUser2.name1',
|
|
527
|
-
},
|
|
528
|
-
{
|
|
529
|
-
label: 'name2',
|
|
530
|
-
value: 'orgStructureUser2.name2',
|
|
531
|
-
},
|
|
532
|
-
],
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
label: 'personObject',
|
|
536
|
-
value: 'personObject',
|
|
537
|
-
children: [
|
|
538
|
-
{
|
|
539
|
-
label: 'birthDate',
|
|
540
|
-
value: 'personObject.birthDate',
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
label: 'middleName',
|
|
544
|
-
value: 'personObject.middleName',
|
|
545
|
-
},
|
|
546
|
-
{
|
|
547
|
-
label: 'gender',
|
|
548
|
-
value: 'personObject.gender',
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
label: 'citizenshipCountry',
|
|
552
|
-
value: 'personObject.citizenshipCountry',
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
label: 'id',
|
|
556
|
-
value: 'personObject.id',
|
|
557
|
-
},
|
|
558
|
-
{
|
|
559
|
-
label: 'firstName',
|
|
560
|
-
value: 'personObject.firstName',
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
label: 'status',
|
|
564
|
-
value: 'personObject.status',
|
|
565
|
-
},
|
|
566
|
-
{
|
|
567
|
-
label: 'lastName',
|
|
568
|
-
value: 'personObject.lastName',
|
|
569
|
-
},
|
|
570
|
-
],
|
|
571
|
-
},
|
|
572
|
-
{
|
|
573
|
-
label: 'orgStructureUser3',
|
|
574
|
-
value: 'orgStructureUser3',
|
|
575
|
-
children: [
|
|
576
|
-
{
|
|
577
|
-
label: 'name3',
|
|
578
|
-
value: 'orgStructureUser3.name3',
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
label: 'name4',
|
|
582
|
-
value: 'orgStructureUser3.name4',
|
|
583
|
-
},
|
|
584
|
-
],
|
|
585
|
-
},
|
|
586
|
-
{
|
|
587
|
-
label: 'collClient',
|
|
588
|
-
value: 'collClient',
|
|
589
|
-
children: [
|
|
590
|
-
{
|
|
591
|
-
label: 'lastName',
|
|
592
|
-
value: 'collClient.lastName',
|
|
593
|
-
},
|
|
594
|
-
{
|
|
595
|
-
label: 'firstName',
|
|
596
|
-
value: 'collClient.firstName',
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
label: 'test',
|
|
600
|
-
value: 'collClient.test',
|
|
601
|
-
},
|
|
602
|
-
],
|
|
603
|
-
},
|
|
604
|
-
{
|
|
605
|
-
label: 'test13',
|
|
606
|
-
value: 'test13',
|
|
607
|
-
children: [],
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
label: 'test12',
|
|
611
|
-
value: 'test12',
|
|
612
|
-
children: [],
|
|
613
|
-
},
|
|
614
|
-
{
|
|
615
|
-
label: 'opportunity',
|
|
616
|
-
value: 'opportunity',
|
|
617
|
-
children: [
|
|
618
|
-
{
|
|
619
|
-
label: 'id',
|
|
620
|
-
value: 'opportunity.id',
|
|
621
|
-
},
|
|
622
|
-
{
|
|
623
|
-
label: 'name',
|
|
624
|
-
value: 'opportunity.name',
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
label: 'companyName',
|
|
628
|
-
value: 'opportunity.companyName',
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
label: 'companyShortName',
|
|
632
|
-
value: 'opportunity.companyShortName',
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
label: 'initiatorId',
|
|
636
|
-
value: 'opportunity.initiatorId',
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
label: 'initiatorName',
|
|
640
|
-
value: 'opportunity.initiatorName',
|
|
641
|
-
},
|
|
642
|
-
],
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
label: 'contract',
|
|
646
|
-
value: 'contract',
|
|
647
|
-
children: [
|
|
648
|
-
{
|
|
649
|
-
label: 'id',
|
|
650
|
-
value: 'contract.id',
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
label: 'name',
|
|
654
|
-
value: 'contract.name',
|
|
655
|
-
},
|
|
656
|
-
{
|
|
657
|
-
label: 'number',
|
|
658
|
-
value: 'contract.number',
|
|
659
|
-
},
|
|
660
|
-
{
|
|
661
|
-
label: 'officialName',
|
|
662
|
-
value: 'contract.officialName',
|
|
663
|
-
},
|
|
664
|
-
{
|
|
665
|
-
label: 'shortName',
|
|
666
|
-
value: 'contract.shortName',
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
label: 'managerFirstName',
|
|
670
|
-
value: 'contract.managerFirstName',
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
label: 'managerLastName',
|
|
674
|
-
value: 'contract.managerLastName',
|
|
675
|
-
},
|
|
676
|
-
{
|
|
677
|
-
label: 'managerMiddleName',
|
|
678
|
-
value: 'contract.managerMiddleName',
|
|
679
|
-
},
|
|
680
|
-
],
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
label: 'test15',
|
|
684
|
-
value: 'test15',
|
|
685
|
-
children: [
|
|
686
|
-
{
|
|
687
|
-
label: 'name5',
|
|
688
|
-
value: 'test15.name5',
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
label: 'name6',
|
|
692
|
-
value: 'test15.name6',
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
label: 'test16',
|
|
698
|
-
value: 'test16',
|
|
699
|
-
children: [
|
|
700
|
-
{
|
|
701
|
-
label: 'name7',
|
|
702
|
-
value: 'test16.name7',
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
label: 'name8',
|
|
706
|
-
value: 'test16.name8',
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
label: 'test',
|
|
710
|
-
value: 'test16.test',
|
|
711
|
-
},
|
|
712
|
-
{
|
|
713
|
-
label: null,
|
|
714
|
-
value: 'test16.null',
|
|
715
|
-
},
|
|
716
|
-
],
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
label: 'orgStructureOrg',
|
|
720
|
-
value: 'orgStructureOrg',
|
|
721
|
-
children: [
|
|
722
|
-
{
|
|
723
|
-
label: 'id',
|
|
724
|
-
value: 'orgStructureOrg.id',
|
|
725
|
-
},
|
|
726
|
-
{
|
|
727
|
-
label: 'name',
|
|
728
|
-
value: 'orgStructureOrg.name',
|
|
729
|
-
},
|
|
730
|
-
],
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
label: 'orgStructurePosition',
|
|
734
|
-
value: 'orgStructurePosition',
|
|
735
|
-
children: [
|
|
736
|
-
{
|
|
737
|
-
label: 'id',
|
|
738
|
-
value: 'orgStructurePosition.id',
|
|
739
|
-
},
|
|
740
|
-
{
|
|
741
|
-
label: 'name',
|
|
742
|
-
value: 'orgStructurePosition.name',
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
label: 'type',
|
|
746
|
-
value: 'orgStructurePosition.type',
|
|
747
|
-
},
|
|
748
|
-
],
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
label: 'orgStructureUser',
|
|
752
|
-
value: 'orgStructureUser',
|
|
753
|
-
children: [
|
|
754
|
-
{
|
|
755
|
-
label: 'id',
|
|
756
|
-
value: 'orgStructureUser.id',
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
label: 'firstName',
|
|
760
|
-
value: 'orgStructureUser.firstName',
|
|
761
|
-
},
|
|
762
|
-
{
|
|
763
|
-
label: 'lastName',
|
|
764
|
-
value: 'orgStructureUser.lastName',
|
|
765
|
-
},
|
|
766
|
-
{
|
|
767
|
-
label: 'middleName',
|
|
768
|
-
value: 'orgStructureUser.middleName',
|
|
769
|
-
},
|
|
770
|
-
{
|
|
771
|
-
label: 'fullName',
|
|
772
|
-
value: 'orgStructureUser.fullName',
|
|
773
|
-
},
|
|
774
|
-
],
|
|
775
|
-
},
|
|
776
|
-
],
|
|
777
|
-
},
|
|
778
|
-
],
|
|
779
|
-
},
|
|
780
|
-
},
|
|
781
|
-
};
|
|
782
|
-
|
|
783
|
-
async function init() {
|
|
784
|
-
// const response = await fetch("./key.txt");
|
|
785
|
-
// const key = await response.text();
|
|
786
|
-
const instance = await emailmaker.init({ ...options });
|
|
787
|
-
// let i = 0;
|
|
788
|
-
// let id = 0;
|
|
789
|
-
// setInterval(() => {
|
|
790
|
-
// i = i === 0 ? 1 : 0;
|
|
791
|
-
// instance.show({
|
|
792
|
-
// ...options.content,
|
|
793
|
-
// email: {
|
|
794
|
-
// ...options.content.email,
|
|
795
|
-
// // id: id++,
|
|
796
|
-
// code: '<div>31111111111111111111111111</div>'
|
|
797
|
-
// }
|
|
798
|
-
|
|
799
|
-
// });
|
|
800
|
-
// }, 30000);
|
|
801
|
-
instance.handleSaveEmail(async ({ value, patch, prev }) => {
|
|
802
|
-
const _email = await instance.compileEmail(value);
|
|
803
|
-
console.log(_email);
|
|
804
|
-
_email.utm_parameters = { ..._email.utm_parameters, utm_content: '333' };
|
|
805
|
-
const a = await instance.compileEmail(_email);
|
|
806
|
-
console.log(a);
|
|
807
|
-
});
|
|
808
|
-
instance.handleEmailAutosave(() => {
|
|
809
|
-
console.log('handleEmailAutosave 2');
|
|
810
|
-
});
|
|
811
|
-
instance.setConfig({
|
|
812
|
-
...options.config,
|
|
813
|
-
mergeTags: {
|
|
814
|
-
syntax: ['{{%value%}}'],
|
|
815
|
-
items: [
|
|
816
|
-
{
|
|
817
|
-
label: 'Системные3131',
|
|
818
|
-
value: 'System',
|
|
819
|
-
children: systemfields,
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
label: 'Пользовательские4444',
|
|
823
|
-
value: 'User',
|
|
824
|
-
children: systemfields,
|
|
825
|
-
},
|
|
826
|
-
],
|
|
827
|
-
},
|
|
828
|
-
});
|
|
829
|
-
instance.handleLimitUsage(({ name, count }) => {
|
|
830
|
-
console.log('Вы превысили количество допустимых сообщений в чат с AI');
|
|
831
|
-
console.log(name, count);
|
|
832
|
-
});
|
|
833
|
-
// await instance.show({
|
|
834
|
-
// email: {
|
|
835
|
-
// "id": "3769995",
|
|
836
|
-
// "isNew": false,
|
|
837
|
-
// "subject": "topic1Ы",
|
|
838
|
-
// "preheader": "pre",
|
|
839
|
-
// "description": "",
|
|
840
|
-
// "project": "undefined",
|
|
841
|
-
// "parent_email": "309707",
|
|
842
|
-
// "common_styles": "{\"text\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"lineHeight\":21,\"lineHeightDim\":\"px\",\"color\":\"#5a5a5a\",\"textAlign\":\"left\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\"},\"headings\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":24,\"fontSizeDim\":\"px\",\"lineHeight\":32,\"lineHeightDim\":\"px\",\"color\":\"#333333\",\"textAlign\":\"left\",\"paddingTop\":20,\"paddingTopDim\":\"px\",\"paddingBottom\":10,\"paddingBottomDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"bold\":true,\"italic\":false},\"links\":{\"color\":\"#1C52DC\",\"underline\":true},\"buttons\":{\"fontFamily\":[\"Safe Fonts\",\"-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif\"],\"fontSize\":16,\"fontSizeDim\":\"px\",\"letterSpacing\":0,\"letterSpacingDim\":\"px\",\"color\":\"#FFFFFF\",\"bold\":false,\"italic\":false,\"backgroundColor\":\"#1C52DC\",\"marginTop\":10,\"marginTopDim\":\"px\",\"marginBottom\":10,\"marginBottomDim\":\"px\",\"border\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null},\"borderRadius\":{\"all\":5,\"topLeft\":null,\"topRight\":null,\"bottomRight\":null,\"bottomLeft\":null},\"textAlign\":\"center\",\"padding\":{\"all\":null,\"top\":null,\"right\":null,\"bottom\":null,\"left\":null}},\"block\":{\"backgroundColor\":\"\"}}",
|
|
843
|
-
// "title": "",
|
|
844
|
-
// "date": "2024-01-12T08:42:09",
|
|
845
|
-
// "modified": "2024-02-16T17:21:01",
|
|
846
|
-
// "group": [],
|
|
847
|
-
// "lock": false,
|
|
848
|
-
// "code": "<html><head></head><body><body></html>",
|
|
849
|
-
// }
|
|
850
|
-
// });
|
|
851
|
-
// const email = await instance.getEmail();
|
|
852
|
-
|
|
853
|
-
// const TITLE_REGEX = /<title>(.*)<\/title>/gm;
|
|
854
|
-
// console.log(email.code);
|
|
855
|
-
// email.code.matchAll(TITLE_REGEX).map(item => item[1]).find(title => console.log(title));
|
|
856
|
-
}
|
|
857
|
-
|
|
858
|
-
init()
|
|
859
|
-
.then((e) => {})
|
|
860
|
-
.catch((e) => console.log(e));
|
|
861
|
-
// })</script></body></html>
|