@emailmaker/emailmaker 1.0.93-alpha.1 → 1.0.93-alpha.2
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 +37 -12
- package/asset-manifest.json +16 -15
- package/emailmaker-esm.js +1 -1
- package/emailmaker.d.ts +111 -14
- package/emailmaker.js +1 -1
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/iframe-eblock.f2f17f295ea30aba7fcb.html +1 -0
- package/iframe/iframe.f2f17f295ea30aba7fcb.html +1 -0
- package/iframe/js/826.58b61763.js +1 -0
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox.js +1 -1
- package/package.json +1 -1
- package/plugin.html +2 -2
- package/plugin_blocks_test.html +1 -1
- package/plugin_default.html +1 -1
- package/plugin_idigital.html +1 -1
- package/plugin_nota.html +1 -1
- package/plugin_s.html +1 -1
- package/static/css/2458.d80dc2ed.chunk.css +1 -0
- package/static/css/57.bd3956f6.chunk.css +1 -0
- package/static/js/1807.d095d866.chunk.js +2 -0
- package/static/js/{2458.504bef1c.chunk.js → 2458.708cc230.chunk.js} +2 -2
- package/static/js/3017.b19cd213.chunk.js +1 -0
- package/static/js/3403.9e757a45.js +1 -0
- package/static/js/57.abdc4a04.chunk.js +1 -0
- package/static/js/7729.d77b795b.js +1 -0
- package/static/js/{emailmaker_core.1c694217.js → emailmaker_core.931d3dcb.js} +2 -2
- package/static/media/project-email-back-dark.9916625a9a714830b770.svg +29 -0
- package/translations.pot +178 -166
- package/iframe/iframe-eblock.bd2a2a73469f802abf17.html +0 -1
- package/iframe/iframe.bd2a2a73469f802abf17.html +0 -1
- package/iframe/js/826.e81dd4d6.js +0 -1
- package/static/css/2458.05166c0a.chunk.css +0 -1
- package/static/css/9272.a4e58dd0.chunk.css +0 -1
- package/static/js/3017.2e1f6413.chunk.js +0 -1
- package/static/js/4560.b03bbb3f.chunk.js +0 -2
- package/static/js/7091.d1a56e4b.js +0 -1
- package/static/js/7729.13361a78.js +0 -1
- package/static/js/9272.d5a35d82.chunk.js +0 -1
- /package/iframe/js/{826.e81dd4d6.js.LICENSE.txt → 826.58b61763.js.LICENSE.txt} +0 -0
- /package/static/js/{4560.b03bbb3f.chunk.js.LICENSE.txt → 1807.d095d866.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{2458.504bef1c.chunk.js.LICENSE.txt → 2458.708cc230.chunk.js.LICENSE.txt} +0 -0
- /package/static/js/{emailmaker_core.1c694217.js.LICENSE.txt → emailmaker_core.931d3dcb.js.LICENSE.txt} +0 -0
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
Выполните этот код в командной строке:
|
|
7
7
|
|
|
8
8
|
```cmd
|
|
9
|
-
$ npm i @emailmaker/emailmaker@1.0.93-alpha.
|
|
9
|
+
$ npm i @emailmaker/emailmaker@1.0.93-alpha.2 -save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
Добавьте EmailMaker plugin в ваш App config.
|
|
@@ -325,20 +325,45 @@ emailmaker.init({
|
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
|
|
328
|
+
|
|
329
|
+
Секция `fileManager` управляет возможностями файлового менеджера. Все поля необязательные; если не заданы или `false`, соответствующая функция отключена.
|
|
330
|
+
|
|
331
|
+
- **enableRenameFolder** — разрешает переименование папок.
|
|
332
|
+
- **enableRenameFile** — разрешает переименование файлов.
|
|
333
|
+
- **enableUpdateFile** — разрешает обновление содержимого или метаданных файлов.
|
|
334
|
+
- **enablePaging** — разрешает постраничную навигацию. Если отключено, все элементы загружаются сразу.
|
|
335
|
+
- **clientSideSorting** — клиентская сортировка файлов.
|
|
336
|
+
- Если `true`, применяется стандартная сортировка (по имени по возрастанию).
|
|
337
|
+
- Если указана функция, она принимает текущий массив файлов, необязательные `sortBy` и `sortOrder`, и возвращает отсортированный массив.
|
|
338
|
+
- **clientSidePaging** — клиентская пагинация файлов.
|
|
339
|
+
- Если `true`, применяется стандартная нарезка массива по `page` и `limit`.
|
|
340
|
+
- Если указана функция, она принимает массив файлов, `page` и `limit`, и возвращает массив только для нужной страницы.
|
|
341
|
+
- **clientSideFilter** — клиентская фильтрация файлов.
|
|
342
|
+
- Если `true`, применяется стандартная фильтрация по тексту `search`.
|
|
343
|
+
- Если указана функция, она принимает массив файлов и необязательный `search`, и возвращает отфильтрованный массив.
|
|
344
|
+
- **cacheStrategy** — стратегия кэширования.
|
|
345
|
+
- **ttl** — время жизни кэша в миллисекундах.
|
|
346
|
+
- **errorTtl** — время жизни кэша для ошибок.
|
|
347
|
+
- **allowSortedInsert** — разрешает вставку элемента в отсортированный массив без полной инвалидации.
|
|
348
|
+
- **allowSearchInsert** — разрешает вставку элемента в массив с фильтрами без полной инвалидации.
|
|
349
|
+
- **invalidateOnPaginationFull** — если страница полная, кэш помечается как устаревший при вставке.
|
|
350
|
+
- **comparator** — функция сравнения двух файлов для сортировки.
|
|
351
|
+
- **filterMatch** — функция проверки, проходит ли файл текущий фильтр.
|
|
352
|
+
|
|
353
|
+
|
|
328
354
|
### Методы интерфейса `StorageProvider`
|
|
329
355
|
|
|
330
356
|
| Метод | Обязательный | Аргументы | Возвращаемое значение | Описание |
|
|
331
357
|
|-------|--------------|-----------|----------------------|----------|
|
|
332
|
-
| `
|
|
333
|
-
| `
|
|
334
|
-
| `
|
|
335
|
-
| `
|
|
336
|
-
| `renameFolder(folderId, newName)` | Да | `folderId: string, newName: string` | `Promise<FolderInfo>` | Переименовывает папку. |
|
|
358
|
+
| `getFileData(file: FileInfo)` | Нет | `file: FileInfo` | `Promise<Blob>` | Возвращает содержимое файла. ⚠️ Если метод не реализован, файл будет загружаться по полю `url` из объекта `FileInfo`. |
|
|
359
|
+
| `getFiles(options)` | Да | ``{ folderId\?, search\?, sortBy\?, sortOrder\?, page\?, limit\? }`` | `Promise<{ files: FileInfo[], pagination\?: ApiPaginationResponse }>` | Получает список файлов и папок с поддержкой фильтрации, сортировки и пагинации. |
|
|
360
|
+
| `createFolder(data)` | Да | ``{ name: string, parentId\?: string \| null }`` | `Promise<FolderInfo>` | Создаёт новую папку. |
|
|
361
|
+
| `renameFolder(folderId, newName)` | Нет | `folderId: string, newName: string` | `Promise<FolderInfo>` | Переименовывает папку. |
|
|
337
362
|
| `deleteFolder(folderId)` | Да | `folderId: string` | `Promise<boolean>` | Удаляет папку. |
|
|
338
|
-
| `uploadFile(file)` | Да |
|
|
339
|
-
| `uploadFileByUrl(data)` | Да |
|
|
363
|
+
| `uploadFile(file)` | Да | ``{ name, size, type, folderId\?, data, thumbnail\?, dimensions\?, aspectRatio\?, extension\? }`` | `Promise<FileInfo>` | Загружает файл в указанную папку. |
|
|
364
|
+
| `uploadFileByUrl(data)` | Да | ``{ url: string, folderId\?: string \| null, noFolder\?: boolean }`` | `Promise<FileInfo>` | Загружает файл по URL. ⚠️ Метод должен проверить, принадлежит ли файл текущему серверу. Если принадлежит — вернуть существующий файл. Параметр `noFolder` указывает на загрузку во временную папку (например, для редактирования). |
|
|
340
365
|
| `deleteFile(fileId)` | Да | `fileId: string` | `Promise<boolean>` | Удаляет файл. |
|
|
341
|
-
| `renameFile(fileId, newName)` |
|
|
342
|
-
| `moveItem(options)` | Да |
|
|
343
|
-
| `copyItem(options)` | Да |
|
|
344
|
-
| `updateFile(fileId, updates)` |
|
|
366
|
+
| `renameFile(fileId, newName)` | Нет | `fileId: string, newName: string` | `Promise<FileInfo>` | Переименовывает файл. |
|
|
367
|
+
| `moveItem(options)` | Да | ``{ itemId: string, targetFolderId: string, isFolder: boolean }`` | `Promise<boolean>` | Перемещает файл или папку в другую папку. |
|
|
368
|
+
| `copyItem(options)` | Да | ``{ itemId: string, targetFolderId: string, isFolder: boolean }`` | `Promise<{ id: string, url\?: string }>` | Копирует файл или папку. Возвращает новый `id` и, при необходимости, новый `url`. |
|
|
369
|
+
| `updateFile(fileId, updates)` | Нет | ``{ name\?, type\?, data\?, thumbnail\?, dimensions\?, aspectRatio\?, extension\? }`` | `Promise<FileInfo>` | Обновляет метаданные или содержимое файла. |
|
package/asset-manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"files": {
|
|
3
|
-
"main.js": "/main.
|
|
4
|
-
"main.css": "/static/css/main.
|
|
5
|
-
"emailmaker_core.js": "/static/js/emailmaker_core.
|
|
3
|
+
"main.js": "/main.87353671.js",
|
|
4
|
+
"main.css": "/static/css/main.a1315a59.css",
|
|
5
|
+
"emailmaker_core.js": "/static/js/emailmaker_core.931d3dcb.js",
|
|
6
6
|
"emailmaker.js": "/emailmaker.js",
|
|
7
7
|
"emailmaker-esm.js": "/emailmaker-esm.js",
|
|
8
8
|
"static/css/578.fe5765dd.chunk.css": "/static/css/578.fe5765dd.chunk.css",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"static/js/2642.b60a63f6.chunk.js": "/static/js/2642.b60a63f6.chunk.js",
|
|
12
12
|
"static/css/8084.15f07f40.chunk.css": "/static/css/8084.15f07f40.chunk.css",
|
|
13
13
|
"static/js/8084.67de697a.chunk.js": "/static/js/8084.67de697a.chunk.js",
|
|
14
|
-
"static/css/
|
|
15
|
-
"static/js/
|
|
14
|
+
"static/css/57.bd3956f6.chunk.css": "/static/css/57.bd3956f6.chunk.css",
|
|
15
|
+
"static/js/57.abdc4a04.chunk.js": "/static/js/57.abdc4a04.chunk.js",
|
|
16
16
|
"static/css/6501.e131603e.chunk.css": "/static/css/6501.e131603e.chunk.css",
|
|
17
17
|
"static/js/6501.616f4dec.chunk.js": "/static/js/6501.616f4dec.chunk.js",
|
|
18
18
|
"static/js/1729.a0be903e.chunk.js": "/static/js/1729.a0be903e.chunk.js",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
"ant-locale/locale-zh_TW-js.js": "/static/js/ant-locale/locale-zh_TW-js.163140fa.chunk.js",
|
|
86
86
|
"/mergeTags/locale0.js": "/static/js//mergeTags/locale0.594765fd.chunk.js",
|
|
87
87
|
"/mergeTags/locale1.js": "/static/js//mergeTags/locale1.7a79e21e.chunk.js",
|
|
88
|
-
"static/css/2458.
|
|
89
|
-
"static/js/2458.
|
|
90
|
-
"static/js/3017.
|
|
88
|
+
"static/css/2458.d80dc2ed.chunk.css": "/static/css/2458.d80dc2ed.chunk.css",
|
|
89
|
+
"static/js/2458.708cc230.chunk.js": "/static/js/2458.708cc230.chunk.js",
|
|
90
|
+
"static/js/3017.b19cd213.chunk.js": "/static/js/3017.b19cd213.chunk.js",
|
|
91
91
|
"static/js/1538.06811304.chunk.js": "/static/js/1538.06811304.chunk.js",
|
|
92
92
|
"static/js/9644.1ae95bb7.chunk.js": "/static/js/9644.1ae95bb7.chunk.js",
|
|
93
93
|
"static/js/7463.69864ff5.chunk.js": "/static/js/7463.69864ff5.chunk.js",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"static/js/5346.7af72a07.chunk.js": "/static/js/5346.7af72a07.chunk.js",
|
|
100
100
|
"static/js/898.2dcef4f3.js": "/static/js/898.2dcef4f3.js",
|
|
101
101
|
"static/js/9960.6dcf66f0.chunk.js": "/static/js/9960.6dcf66f0.chunk.js",
|
|
102
|
-
"static/js/
|
|
103
|
-
"static/js/
|
|
102
|
+
"static/js/1807.d095d866.chunk.js": "/static/js/1807.d095d866.chunk.js",
|
|
103
|
+
"static/js/3403.9e757a45.js": "/static/js/3403.9e757a45.js",
|
|
104
104
|
"static/js/6419.e52a6158.js": "/static/js/6419.e52a6158.js",
|
|
105
105
|
"static/js/4972.8646ad7f.js": "/static/js/4972.8646ad7f.js",
|
|
106
106
|
"static/js/8408.459779d0.js": "/static/js/8408.459779d0.js",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"static/js/6819.2f1dcf17.chunk.js": "/static/js/6819.2f1dcf17.chunk.js",
|
|
110
110
|
"static/js/1880.de5a11ab.chunk.js": "/static/js/1880.de5a11ab.chunk.js",
|
|
111
111
|
"static/js/3085.b9d27236.chunk.js": "/static/js/3085.b9d27236.chunk.js",
|
|
112
|
-
"static/js/7729.
|
|
112
|
+
"static/js/7729.d77b795b.js": "/static/js/7729.d77b795b.js",
|
|
113
113
|
"html.worker.js": "/html.worker.js",
|
|
114
114
|
"css.worker.js": "/css.worker.js",
|
|
115
115
|
"static/media/frame_light.png": "/static/media/frame_light.22a9b4ec728365d8193f.png",
|
|
@@ -144,6 +144,7 @@
|
|
|
144
144
|
"static/media/tw.png": "/static/media/tw.823a7736ac2d82815c71.png",
|
|
145
145
|
"static/media/tg.png": "/static/media/tg.10f004529a98df9732b9.png",
|
|
146
146
|
"static/media/yt.png": "/static/media/yt.4ac57e55d158b40c7fc1.png",
|
|
147
|
+
"static/media/project-email-back-dark.svg": "/static/media/project-email-back-dark.9916625a9a714830b770.svg",
|
|
147
148
|
"static/media/project-email-back.svg": "/static/media/project-email-back.0ce470def19ce7c063e0.svg",
|
|
148
149
|
"plugin_s.html": "/plugin_s.html",
|
|
149
150
|
"static/media/icon-border-radius.svg": "/static/media/icon-border-radius.2a56b93a7711558098a622296b7ae2e1.svg",
|
|
@@ -158,9 +159,9 @@
|
|
|
158
159
|
"static/js/1390.87d39fe1.js",
|
|
159
160
|
"static/js/8285.c8bdf11b.js",
|
|
160
161
|
"static/js/898.2dcef4f3.js",
|
|
161
|
-
"static/js/7729.
|
|
162
|
-
"static/js/
|
|
163
|
-
"main.
|
|
164
|
-
"static/css/main.
|
|
162
|
+
"static/js/7729.d77b795b.js",
|
|
163
|
+
"static/js/3403.9e757a45.js",
|
|
164
|
+
"main.87353671.js",
|
|
165
|
+
"static/css/main.a1315a59.css"
|
|
165
166
|
]
|
|
166
167
|
}
|
package/emailmaker-esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const load=function(e){var a,l=e||("undefined"!==typeof module&&"module"===module.type?{publicPath:import.meta.url.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/"}:void 0);return(()=>{var e={27612:(e,a,t)=>{var o;let c="https://unpkg.com/@emailmaker/emailmaker@1.0.93-alpha.
|
|
1
|
+
const load=function(e){var a,l=e||("undefined"!==typeof module&&"module"===module.type?{publicPath:import.meta.url.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/"}:void 0);return(()=>{var e={27612:(e,a,t)=>{var o;let c="https://unpkg.com/@emailmaker/emailmaker@1.0.93-alpha.2/",n="emailmaker";if("object"===typeof l&&null!==(o=l)&&void 0!==o&&o.publicPath){var r;c=null===(r=l)||void 0===r?void 0:r.publicPath}else{let e="";const a=document.querySelector(`script[src*=${n}\\.js]`)||document.querySelector(`script[src*=${n}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(c=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}t.p=new URL(c,window.location.origin).href}},t={};function o(a){var l=t[a];if(void 0!==l)return l.exports;var c=t[a]={id:a,loaded:!1,exports:{}};return e[a].call(c.exports,c,c.exports,o),c.loaded=!0,c.exports}o.m=e,o.amdO={},o.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return o.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;o.t=function(l,t){if(1&t&&(l=this(l)),8&t)return l;if("object"===typeof l&&l){if(4&t&&l.__esModule)return l;if(16&t&&"function"===typeof l.then)return l}var c=Object.create(null);o.r(c);var n={};e=e||[null,a({}),a([]),a(a)];for(var r=2&t&&l;"object"==typeof r&&!~e.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((e=>n[e]=()=>l[e]));return n.default=()=>l,o.d(c,n),c}})(),o.d=(e,a)=>{for(var l in a)o.o(a,l)&&!o.o(e,l)&&Object.defineProperty(e,l,{enumerable:!0,get:a[l]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((a,l)=>(o.f[l](e,a),a)),[])),o.u=e=>6419===e?"static/js/6419.e52a6158.js":4972===e?"static/js/4972.8646ad7f.js":8408===e?"static/js/8408.459779d0.js":241===e?"static/js/241.9aaa5790.js":1390===e?"static/js/1390.87d39fe1.js":8285===e?"static/js/8285.c8bdf11b.js":7729===e?"static/js/7729.d77b795b.js":3403===e?"static/js/3403.9e757a45.js":"static/js/"+({77:"ant-locale/locale-sv_SE-js",197:"ant-locale/locale-zh_HK-js",290:"ant-locale/locale-ml_IN-js",494:"ant-locale/locale-fr_CA-js",737:"ant-locale/locale-hy_AM-js",1241:"ant-locale/locale-vi_VN-js",1330:"ant-locale/locale-fr_FR-js",1332:"ant-locale/locale-hi_IN-js",1377:"ant-locale/locale-cs_CZ-js",1454:"ant-locale/locale-ka_GE-js",1502:"ant-locale/locale-en_GB-js",1510:"ant-locale/locale-hr_HR-js",1626:"ant-locale/locale-ca_ES-js",1640:"ant-locale/locale-ta_IN-js",1788:"ant-locale/locale-uk_UA-js",1872:"ant-locale/locale-ga_IE-js",2066:"ant-locale/locale-da_DK-js",2114:"ant-locale/locale-es_ES-js",2408:"ant-locale/locale-it_IT-js",2438:"ant-locale/locale-lt_LT-js",2466:"/mergeTags/locale0",2827:"ant-locale/locale-sl_SI-js",2844:"ant-locale/locale-bg_BG-js",2917:"ant-locale/locale-nb_NO-js",2988:"ant-locale/locale-ro_RO-js",3302:"ant-locale/locale-lv_LV-js",3411:"ant-locale/locale-fr_BE-js",3624:"ant-locale/locale-id_ID-js",3711:"ant-locale/locale-gl_ES-js",3816:"ant-locale/locale-az_AZ-js",3914:"ant-locale/locale-kn_IN-js",4425:"ant-locale/locale-kk_KZ-js",4607:"ant-locale/locale-ar_EG-js",4686:"ant-locale/locale-tr_TR-js",4702:"ant-locale/locale-pt_BR-js",4813:"ant-locale/locale-zh_TW-js",4823:"ant-locale/locale-si_LK-js",5108:"ant-locale/locale-ku_IQ-js",5261:"ant-locale/locale-ko_KR-js",5322:"ant-locale/locale-fa_IR-js",5466:"ant-locale/locale-nl_NL-js",5653:"ant-locale/locale-nl_BE-js",5827:"ant-locale/locale-ne_NP-js",5862:"ant-locale/locale-pl_PL-js",5864:"ant-locale/locale-tk_TK-js",5902:"ant-locale/locale-th_TH-js",5980:"ant-locale/locale-ms_MY-js",6033:"ant-locale/locale-km_KH-js",6135:"ant-locale/locale-et_EE-js",6418:"ant-locale/locale-sk_SK-js",6428:"ant-locale/locale-bn_BD-js",6552:"ant-locale/locale-fi_FI-js",6618:"ant-locale/locale-my_MM-js",6764:"ant-locale/locale-hu_HU-js",6832:"ant-locale/locale-mn_MN-js",6859:"/mergeTags/locale1",7288:"ant-locale/locale-el_GR-js",7426:"ant-locale/locale-is_IS-js",7974:"ant-locale/locale-he_IL-js",8466:"ant-locale/locale-mk_MK-js",8534:"ant-locale/locale-pt_PT-js",8590:"ant-locale/locale-ur_PK-js",8682:"ant-locale/locale-sr_RS-js",8796:"ant-locale/locale-de_DE-js",8839:"ant-locale/locale-ja_JP-js",9169:"ant-locale/locale-zh_CN-js",9200:"ant-locale/locale-by_BY-js",9508:"ant-locale/locale-kmr_IQ-js",9716:"ant-locale/locale-eu_ES-js"}[e]||e)+"."+{57:"abdc4a04",77:"9f47a065",197:"0feb368f",290:"3aa233eb",494:"ba00ca3a",737:"6b20bceb",1241:"f0324229",1330:"1e6d0a10",1332:"8e3ea1dc",1377:"f1151015",1454:"8b08646c",1502:"6756ba01",1510:"94001d08",1538:"06811304",1626:"e4bdfa2b",1640:"3b46361c",1729:"a0be903e",1788:"ef0d8c8e",1807:"d095d866",1872:"cc1f0f56",1880:"de5a11ab",2066:"33e12cfb",2114:"43424efe",2408:"46a8ce6d",2438:"08ac662b",2458:"708cc230",2466:"594765fd",2642:"b60a63f6",2827:"8afbce30",2844:"2f68d816",2917:"471cc88a",2988:"4a05dc9d",3017:"b19cd213",3019:"aaa6d087",3085:"b9d27236",3302:"2a33af61",3411:"2aec36ca",3624:"b380cc8b",3711:"c1588dec",3816:"1b3f2ec6",3914:"40066823",4309:"ae8e4ad0",4425:"a1cc2ddc",4607:"a1f4a2ee",4686:"b5e42917",4702:"75dc6403",4813:"163140fa",4823:"3b54f4c4",5108:"594553b1",5261:"68047848",5322:"3b6bfddc",5346:"7af72a07",5466:"453457a0",5653:"2af0a7fe",5827:"52b65a1a",5862:"1e4b27da",5864:"63d0b187",5902:"83e732d3",5980:"924bfbf0",6033:"09c630f9",6135:"3694348e",6144:"a3bf0881",6418:"cd76b6b1",6428:"38ca14cb",6501:"616f4dec",6552:"8e749864",6618:"bc3805ae",6764:"50a3ffc6",6819:"2f1dcf17",6832:"2550caa5",6859:"7a79e21e",7288:"007d40b4",7426:"995979c0",7463:"69864ff5",7974:"1be3257a",8084:"67de697a",8466:"caa088c9",8534:"b07438c3",8590:"904c3e1c",8682:"0708405f",8796:"42497042",8839:"69f9da33",9169:"428a6bc7",9200:"927570db",9508:"c25f3afa",9644:"1ae95bb7",9716:"e2678a29",9960:"6dcf66f0"}[e]+".chunk.js",o.miniCssF=e=>"static/css/"+e+"."+{57:"bd3956f6",2458:"d80dc2ed",6501:"e131603e",8084:"15f07f40"}[e]+".chunk.css",o.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";o.l=(l,t,c,n)=>{if(e[l])e[l].push(t);else{var r,s;if(void 0!==c)for(var i=document.getElementsByTagName("script"),d=0;d<i.length;d++){var f=i[d];if(f.getAttribute("src")==l||f.getAttribute("data-webpack")==a+c){r=f;break}}r||(s=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",a+c),r.src=l),e[l]=[t];var u=(a,t)=>{r.onerror=r.onload=null,clearTimeout(j);var o=e[l];if(delete e[l],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((e=>e(t))),a)return a(t)},j=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),s&&document.head.appendChild(r)}}})(),o.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,l)=>{var t=o.miniCssF(e),c=o.p+t;if(((e,a)=>{for(var l=document.getElementsByTagName("link"),t=0;t<l.length;t++){var o=(n=l[t]).getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(o===e||o===a))return n}var c=document.getElementsByTagName("style");for(t=0;t<c.length;t++){var n;if((o=(n=c[t]).getAttribute("data-href"))===e||o===a)return n}})(t,c))return a();((e,a,l,t,c)=>{var n=document.createElement("link");n.setAttribute("data-emailmaker","true"),n.rel="stylesheet",n.type="text/css",o.nc&&(n.nonce=o.nc),n.onerror=n.onload=l=>{if(n.onerror=n.onload=null,"load"===l.type)t();else{var o=l&&l.type,r=l&&l.target&&l.target.href||a,s=new Error("Loading CSS chunk "+e+" failed.\n("+o+": "+r+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=o,s.request=r,n.parentNode&&n.parentNode.removeChild(n),c(s)}},n.href=a,l?l.parentNode.insertBefore(n,l.nextSibling):document.head.appendChild(n)})(e,c,null,a,l)})),a={1849:0,7391:0};o.f.miniCss=(l,t)=>{a[l]?t.push(a[l]):0!==a[l]&&{57:1,2458:1,6501:1,8084:1}[l]&&t.push(a[l]=e(l).then((()=>{a[l]=0}),(e=>{throw delete a[l],e})))}}})(),(()=>{var e={1849:0,7391:0};o.f.j=(a,l)=>{var t=o.o(e,a)?e[a]:void 0;if(0!==t)if(t)l.push(t[2]);else{var c=new Promise(((l,o)=>t=e[a]=[l,o]));l.push(t[2]=c);var n=o.p+o.u(a),r=new Error;o.l(n,(l=>{if(o.o(e,a)&&(0!==(t=e[a])&&(e[a]=void 0),t)){var c=l&&("load"===l.type?"missing":l.type),n=l&&l.target&&l.target.src;r.message="Loading chunk "+a+" failed.\n("+c+": "+n+")",r.name="ChunkLoadError",r.type=c,r.request=n,t[1](r)}}),"chunk-"+a,a)}};var a=(a,l)=>{var t,c,[n,r,s]=l,i=0;if(n.some((a=>0!==e[a]))){for(t in r)o.o(r,t)&&(o.m[t]=r[t]);if(s)s(o)}for(a&&a(l);i<n.length;i++)c=n[i],o.o(e,c)&&e[c]&&e[c][0](),e[c]=0},l=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];l.forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l))})(),o.nc=void 0;var c={};(()=>{"use strict";o.r(c),o.d(c,{init:()=>l,parseAMP:()=>t,version:()=>n});o(27612);let e,a;function l(a){return e||(e=o.e(3017).then(o.bind(o,63017))),e.then((e=>e.init(a)))}function t(e){return a||(a=o.e(1538).then(o.bind(o,71538))),a.then((a=>a.parseAMP(e)))}const n="1.0.93-alpha.2"})(),a=c})(),a},app=load("undefined"===typeof EmailmakerEnvironment?void 0:EmailmakerEnvironment);export const parseAMP=app.parseAMP;export const version=app.version;export const init=app.init;
|
package/emailmaker.d.ts
CHANGED
|
@@ -1274,9 +1274,9 @@ export interface FileInfo {
|
|
|
1274
1274
|
/** File name */
|
|
1275
1275
|
name: string;
|
|
1276
1276
|
/** File size as a string (e.g., "15MB") */
|
|
1277
|
-
size
|
|
1277
|
+
size?: string;
|
|
1278
1278
|
/** File creation or upload date */
|
|
1279
|
-
date
|
|
1279
|
+
date?: string;
|
|
1280
1280
|
/** Identifier of the folder the file belongs to */
|
|
1281
1281
|
folderId: string;
|
|
1282
1282
|
/** File MIME type */
|
|
@@ -1334,23 +1334,20 @@ export interface SortState {
|
|
|
1334
1334
|
* Defines the contract for different storage backends (e.g., cloud APIs).
|
|
1335
1335
|
*/
|
|
1336
1336
|
export interface StorageProvider {
|
|
1337
|
+
/**
|
|
1338
|
+
* Use the path as an identifier
|
|
1339
|
+
*/
|
|
1340
|
+
pathMode?: boolean;
|
|
1337
1341
|
/**
|
|
1338
1342
|
* Retrieve the file content as a binary blob.
|
|
1339
1343
|
*
|
|
1340
1344
|
* ⚠️ If this method is not implemented, the file will be downloaded
|
|
1341
1345
|
* using the `url` property from the `FileInfo` object.
|
|
1342
1346
|
*
|
|
1343
|
-
* @param
|
|
1347
|
+
* @param file File
|
|
1344
1348
|
* @returns File contents as a Blob
|
|
1345
1349
|
*/
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* Retrieve a list of folders.
|
|
1350
|
-
*
|
|
1351
|
-
* @returns List of folder objects
|
|
1352
|
-
*/
|
|
1353
|
-
getFolders: () => Promise<FolderInfo[]>;
|
|
1350
|
+
getFileData?: (file: FileInfo) => Promise<Blob>;
|
|
1354
1351
|
|
|
1355
1352
|
/**
|
|
1356
1353
|
* Retrieve a list of files.
|
|
@@ -1371,6 +1368,7 @@ export interface StorageProvider {
|
|
|
1371
1368
|
sortOrder?: SortState['sortOrder'];
|
|
1372
1369
|
page?: number;
|
|
1373
1370
|
limit?: number;
|
|
1371
|
+
itemType?: 'all' | 'file' | 'folder';
|
|
1374
1372
|
}) => Promise<{
|
|
1375
1373
|
files: FileInfo[];
|
|
1376
1374
|
pagination?: Partial<ApiPaginationResponse>;
|
|
@@ -1392,7 +1390,7 @@ export interface StorageProvider {
|
|
|
1392
1390
|
* @param newName New folder name
|
|
1393
1391
|
* @returns Updated folder object
|
|
1394
1392
|
*/
|
|
1395
|
-
renameFolder
|
|
1393
|
+
renameFolder?: (folderId: string, newName: string) => Promise<FolderInfo>;
|
|
1396
1394
|
|
|
1397
1395
|
/**
|
|
1398
1396
|
* Delete a folder.
|
|
@@ -1458,7 +1456,7 @@ export interface StorageProvider {
|
|
|
1458
1456
|
* @param newName New file name
|
|
1459
1457
|
* @returns Updated file object
|
|
1460
1458
|
*/
|
|
1461
|
-
renameFile
|
|
1459
|
+
renameFile?: (fileId: string, newName: string) => Promise<FileInfo>;
|
|
1462
1460
|
|
|
1463
1461
|
/**
|
|
1464
1462
|
* Move a file or folder to another location.
|
|
@@ -1491,7 +1489,7 @@ export interface StorageProvider {
|
|
|
1491
1489
|
* @param updates Object with fields to update (name, type, data, thumbnail, etc.)
|
|
1492
1490
|
* @returns Updated file object
|
|
1493
1491
|
*/
|
|
1494
|
-
updateFile
|
|
1492
|
+
updateFile?: (
|
|
1495
1493
|
fileId: string,
|
|
1496
1494
|
updates: {
|
|
1497
1495
|
name?: string;
|
|
@@ -1509,6 +1507,105 @@ declare module ExportedApi {
|
|
|
1509
1507
|
export interface Options {
|
|
1510
1508
|
storageProvider?: StorageProvider;
|
|
1511
1509
|
}
|
|
1510
|
+
|
|
1511
|
+
export interface FileManagerOptions {
|
|
1512
|
+
/**
|
|
1513
|
+
* Enables paging in the file manager view.
|
|
1514
|
+
* If false or undefined, paging is disabled and all items are loaded at once.
|
|
1515
|
+
*/
|
|
1516
|
+
enablePaging?: boolean;
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* Enables the ability to rename folders within the file manager.
|
|
1520
|
+
* If false or undefined, renaming folders is disabled.
|
|
1521
|
+
*/
|
|
1522
|
+
enableRenameFolder?: boolean;
|
|
1523
|
+
|
|
1524
|
+
/**
|
|
1525
|
+
* Enables the ability to rename files within the file manager.
|
|
1526
|
+
* If false or undefined, renaming files is disabled.
|
|
1527
|
+
*/
|
|
1528
|
+
enableRenameFile?: boolean;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Enables the ability to update file metadata or content.
|
|
1532
|
+
* If false or undefined, updating files is disabled.
|
|
1533
|
+
*/
|
|
1534
|
+
enableUpdateFile?: boolean;
|
|
1535
|
+
|
|
1536
|
+
/**
|
|
1537
|
+
* Enables client-side sorting of files.
|
|
1538
|
+
* - If `true`, default sorting is applied (by name ascending).
|
|
1539
|
+
* - If a function is provided, it receives the current items, optional `sortBy` field,
|
|
1540
|
+
* and optional `sortOrder`, and should return a new sorted array of files.
|
|
1541
|
+
*/
|
|
1542
|
+
clientSideSorting?:
|
|
1543
|
+
| boolean
|
|
1544
|
+
| ((items: FileInfo[], sortBy?: SortState['sortBy'], sortOrder?: SortState['sortOrder']) => FileInfo[]);
|
|
1545
|
+
|
|
1546
|
+
/**
|
|
1547
|
+
* Enables client-side pagination of files.
|
|
1548
|
+
* - If `true`, default slicing based on `page` and `limit` is applied.
|
|
1549
|
+
* - If a function is provided, it receives the current items, `page`, and `limit`,
|
|
1550
|
+
* and should return a paginated array of files.
|
|
1551
|
+
*/
|
|
1552
|
+
clientSidePaging?: boolean | ((items: FileInfo[], page?: number, limit?: number) => FileInfo[]);
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* Enables client-side filtering of files.
|
|
1556
|
+
* - If `true`, default filtering by `search` text is applied.
|
|
1557
|
+
* - If a function is provided, it receives the current items and optional `search` string,
|
|
1558
|
+
* and should return a filtered array of files.
|
|
1559
|
+
*/
|
|
1560
|
+
clientSideFilter?: boolean | ((items: FileInfo[], search?: string) => FileInfo[]);
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* Configuration for cache behavior in the file manager.
|
|
1564
|
+
*/
|
|
1565
|
+
cacheStrategy?: {
|
|
1566
|
+
/**
|
|
1567
|
+
* Time-to-live (TTL) in milliseconds for cached items.
|
|
1568
|
+
* After this period, cached items will be considered stale.
|
|
1569
|
+
*/
|
|
1570
|
+
ttl?: number;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* TTL in milliseconds for cached items when an error occurs during loading.
|
|
1574
|
+
*/
|
|
1575
|
+
errorTtl?: number;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* Allows inserting new items into sorted lists without marking the view as stale.
|
|
1579
|
+
*/
|
|
1580
|
+
allowSortedInsert?: boolean;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Allows inserting new items that may not match current filters without marking the view as stale.
|
|
1584
|
+
*/
|
|
1585
|
+
allowSearchInsert?: boolean;
|
|
1586
|
+
|
|
1587
|
+
/**
|
|
1588
|
+
* Marks the view as stale when a paginated page is full and cannot accommodate new items.
|
|
1589
|
+
*/
|
|
1590
|
+
invalidateOnPaginationFull?: boolean;
|
|
1591
|
+
|
|
1592
|
+
/**
|
|
1593
|
+
* Custom comparator function for sorting entities.
|
|
1594
|
+
* Receives two entities and optional query parameters, should return -1, 0, or 1.
|
|
1595
|
+
*/
|
|
1596
|
+
comparator?: (a: FileInfo, b: FileInfo, params?: any) => number;
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* Function to determine if a given entity matches the current filters.
|
|
1600
|
+
* Returns `true` if the entity should be included.
|
|
1601
|
+
*/
|
|
1602
|
+
filterMatch?: (entity: FileInfo, params?: any) => boolean;
|
|
1603
|
+
};
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
export interface Config {
|
|
1607
|
+
fileManager?: FileManagerOptions;
|
|
1608
|
+
}
|
|
1512
1609
|
}
|
|
1513
1610
|
|
|
1514
1611
|
declare namespace ExportedApi {
|
package/emailmaker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,a){"object"===typeof exports&&"object"===typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):"object"===typeof exports?exports.emailmaker=a():e.emailmaker=a()}(globalThis,(()=>(()=>{var e={27612:(e,a,l)=>{var t;let o="https://unpkg.com/@emailmaker/emailmaker@1.0.93-alpha.
|
|
1
|
+
!function(e,a){"object"===typeof exports&&"object"===typeof module?module.exports=a():"function"===typeof define&&define.amd?define([],a):"object"===typeof exports?exports.emailmaker=a():e.emailmaker=a()}(globalThis,(()=>(()=>{var e={27612:(e,a,l)=>{var t;let o="https://unpkg.com/@emailmaker/emailmaker@1.0.93-alpha.2/",c="emailmaker";if("object"===typeof EmailmakerEnvironment&&null!==(t=EmailmakerEnvironment)&&void 0!==t&&t.publicPath){var n;o=null===(n=EmailmakerEnvironment)||void 0===n?void 0:n.publicPath}else{let e="";const a=document.querySelector(`script[src*=${c}\\.js]`)||document.querySelector(`script[src*=${c}-esm\\.js]`);a instanceof HTMLScriptElement&&(e=a.src),e&&(o=e.replaceAll("\\","/").split("/").slice(0,-1).join("/")+"/")}l.p=new URL(o,window.location.origin).href}},a={};function l(t){var o=a[t];if(void 0!==o)return o.exports;var c=a[t]={id:t,loaded:!1,exports:{}};return e[t].call(c.exports,c,c.exports,l),c.loaded=!0,c.exports}l.m=e,l.amdO={},l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a:a}),a},(()=>{var e,a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;l.t=function(t,o){if(1&o&&(t=this(t)),8&o)return t;if("object"===typeof t&&t){if(4&o&&t.__esModule)return t;if(16&o&&"function"===typeof t.then)return t}var c=Object.create(null);l.r(c);var n={};e=e||[null,a({}),a([]),a(a)];for(var r=2&o&&t;"object"==typeof r&&!~e.indexOf(r);r=a(r))Object.getOwnPropertyNames(r).forEach((e=>n[e]=()=>t[e]));return n.default=()=>t,l.d(c,n),c}})(),l.d=(e,a)=>{for(var t in a)l.o(a,t)&&!l.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:a[t]})},l.f={},l.e=e=>Promise.all(Object.keys(l.f).reduce(((a,t)=>(l.f[t](e,a),a)),[])),l.u=e=>6419===e?"static/js/6419.e52a6158.js":4972===e?"static/js/4972.8646ad7f.js":8408===e?"static/js/8408.459779d0.js":241===e?"static/js/241.9aaa5790.js":1390===e?"static/js/1390.87d39fe1.js":8285===e?"static/js/8285.c8bdf11b.js":7729===e?"static/js/7729.d77b795b.js":3403===e?"static/js/3403.9e757a45.js":"static/js/"+({77:"ant-locale/locale-sv_SE-js",197:"ant-locale/locale-zh_HK-js",290:"ant-locale/locale-ml_IN-js",494:"ant-locale/locale-fr_CA-js",737:"ant-locale/locale-hy_AM-js",1241:"ant-locale/locale-vi_VN-js",1330:"ant-locale/locale-fr_FR-js",1332:"ant-locale/locale-hi_IN-js",1377:"ant-locale/locale-cs_CZ-js",1454:"ant-locale/locale-ka_GE-js",1502:"ant-locale/locale-en_GB-js",1510:"ant-locale/locale-hr_HR-js",1626:"ant-locale/locale-ca_ES-js",1640:"ant-locale/locale-ta_IN-js",1788:"ant-locale/locale-uk_UA-js",1872:"ant-locale/locale-ga_IE-js",2066:"ant-locale/locale-da_DK-js",2114:"ant-locale/locale-es_ES-js",2408:"ant-locale/locale-it_IT-js",2438:"ant-locale/locale-lt_LT-js",2466:"/mergeTags/locale0",2827:"ant-locale/locale-sl_SI-js",2844:"ant-locale/locale-bg_BG-js",2917:"ant-locale/locale-nb_NO-js",2988:"ant-locale/locale-ro_RO-js",3302:"ant-locale/locale-lv_LV-js",3411:"ant-locale/locale-fr_BE-js",3624:"ant-locale/locale-id_ID-js",3711:"ant-locale/locale-gl_ES-js",3816:"ant-locale/locale-az_AZ-js",3914:"ant-locale/locale-kn_IN-js",4425:"ant-locale/locale-kk_KZ-js",4607:"ant-locale/locale-ar_EG-js",4686:"ant-locale/locale-tr_TR-js",4702:"ant-locale/locale-pt_BR-js",4813:"ant-locale/locale-zh_TW-js",4823:"ant-locale/locale-si_LK-js",5108:"ant-locale/locale-ku_IQ-js",5261:"ant-locale/locale-ko_KR-js",5322:"ant-locale/locale-fa_IR-js",5466:"ant-locale/locale-nl_NL-js",5653:"ant-locale/locale-nl_BE-js",5827:"ant-locale/locale-ne_NP-js",5862:"ant-locale/locale-pl_PL-js",5864:"ant-locale/locale-tk_TK-js",5902:"ant-locale/locale-th_TH-js",5980:"ant-locale/locale-ms_MY-js",6033:"ant-locale/locale-km_KH-js",6135:"ant-locale/locale-et_EE-js",6418:"ant-locale/locale-sk_SK-js",6428:"ant-locale/locale-bn_BD-js",6552:"ant-locale/locale-fi_FI-js",6618:"ant-locale/locale-my_MM-js",6764:"ant-locale/locale-hu_HU-js",6832:"ant-locale/locale-mn_MN-js",6859:"/mergeTags/locale1",7288:"ant-locale/locale-el_GR-js",7426:"ant-locale/locale-is_IS-js",7974:"ant-locale/locale-he_IL-js",8466:"ant-locale/locale-mk_MK-js",8534:"ant-locale/locale-pt_PT-js",8590:"ant-locale/locale-ur_PK-js",8682:"ant-locale/locale-sr_RS-js",8796:"ant-locale/locale-de_DE-js",8839:"ant-locale/locale-ja_JP-js",9169:"ant-locale/locale-zh_CN-js",9200:"ant-locale/locale-by_BY-js",9508:"ant-locale/locale-kmr_IQ-js",9716:"ant-locale/locale-eu_ES-js"}[e]||e)+"."+{57:"abdc4a04",77:"9f47a065",197:"0feb368f",290:"3aa233eb",494:"ba00ca3a",737:"6b20bceb",1241:"f0324229",1330:"1e6d0a10",1332:"8e3ea1dc",1377:"f1151015",1454:"8b08646c",1502:"6756ba01",1510:"94001d08",1538:"06811304",1626:"e4bdfa2b",1640:"3b46361c",1729:"a0be903e",1788:"ef0d8c8e",1807:"d095d866",1872:"cc1f0f56",1880:"de5a11ab",2066:"33e12cfb",2114:"43424efe",2408:"46a8ce6d",2438:"08ac662b",2458:"708cc230",2466:"594765fd",2642:"b60a63f6",2827:"8afbce30",2844:"2f68d816",2917:"471cc88a",2988:"4a05dc9d",3017:"b19cd213",3019:"aaa6d087",3085:"b9d27236",3302:"2a33af61",3411:"2aec36ca",3624:"b380cc8b",3711:"c1588dec",3816:"1b3f2ec6",3914:"40066823",4309:"ae8e4ad0",4425:"a1cc2ddc",4607:"a1f4a2ee",4686:"b5e42917",4702:"75dc6403",4813:"163140fa",4823:"3b54f4c4",5108:"594553b1",5261:"68047848",5322:"3b6bfddc",5346:"7af72a07",5466:"453457a0",5653:"2af0a7fe",5827:"52b65a1a",5862:"1e4b27da",5864:"63d0b187",5902:"83e732d3",5980:"924bfbf0",6033:"09c630f9",6135:"3694348e",6144:"a3bf0881",6418:"cd76b6b1",6428:"38ca14cb",6501:"616f4dec",6552:"8e749864",6618:"bc3805ae",6764:"50a3ffc6",6819:"2f1dcf17",6832:"2550caa5",6859:"7a79e21e",7288:"007d40b4",7426:"995979c0",7463:"69864ff5",7974:"1be3257a",8084:"67de697a",8466:"caa088c9",8534:"b07438c3",8590:"904c3e1c",8682:"0708405f",8796:"42497042",8839:"69f9da33",9169:"428a6bc7",9200:"927570db",9508:"c25f3afa",9644:"1ae95bb7",9716:"e2678a29",9960:"6dcf66f0"}[e]+".chunk.js",l.miniCssF=e=>"static/css/"+e+"."+{57:"bd3956f6",2458:"d80dc2ed",6501:"e131603e",8084:"15f07f40"}[e]+".chunk.css",l.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),l.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={},a="email-maker:";l.l=(t,o,c,n)=>{if(e[t])e[t].push(o);else{var r,s;if(void 0!==c)for(var i=document.getElementsByTagName("script"),d=0;d<i.length;d++){var f=i[d];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==a+c){r=f;break}}r||(s=!0,(r=document.createElement("script")).charset="utf-8",r.timeout=120,l.nc&&r.setAttribute("nonce",l.nc),r.setAttribute("data-webpack",a+c),r.src=t),e[t]=[o];var u=(a,l)=>{r.onerror=r.onload=null,clearTimeout(j);var o=e[t];if(delete e[t],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((e=>e(l))),a)return a(l)},j=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),s&&document.head.appendChild(r)}}})(),l.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((a,t)=>{var o=l.miniCssF(e),c=l.p+o;if(((e,a)=>{for(var l=document.getElementsByTagName("link"),t=0;t<l.length;t++){var o=(n=l[t]).getAttribute("data-href")||n.getAttribute("href");if("stylesheet"===n.rel&&(o===e||o===a))return n}var c=document.getElementsByTagName("style");for(t=0;t<c.length;t++){var n;if((o=(n=c[t]).getAttribute("data-href"))===e||o===a)return n}})(o,c))return a();((e,a,t,o,c)=>{var n=document.createElement("link");n.setAttribute("data-emailmaker","true"),n.rel="stylesheet",n.type="text/css",l.nc&&(n.nonce=l.nc),n.onerror=n.onload=l=>{if(n.onerror=n.onload=null,"load"===l.type)o();else{var t=l&&l.type,r=l&&l.target&&l.target.href||a,s=new Error("Loading CSS chunk "+e+" failed.\n("+t+": "+r+")");s.name="ChunkLoadError",s.code="CSS_CHUNK_LOAD_FAILED",s.type=t,s.request=r,n.parentNode&&n.parentNode.removeChild(n),c(s)}},n.href=a,t?t.parentNode.insertBefore(n,t.nextSibling):document.head.appendChild(n)})(e,c,null,a,t)})),a={7391:0,1849:0};l.f.miniCss=(l,t)=>{a[l]?t.push(a[l]):0!==a[l]&&{57:1,2458:1,6501:1,8084:1}[l]&&t.push(a[l]=e(l).then((()=>{a[l]=0}),(e=>{throw delete a[l],e})))}}})(),(()=>{var e={7391:0,1849:0};l.f.j=(a,t)=>{var o=l.o(e,a)?e[a]:void 0;if(0!==o)if(o)t.push(o[2]);else{var c=new Promise(((l,t)=>o=e[a]=[l,t]));t.push(o[2]=c);var n=l.p+l.u(a),r=new Error;l.l(n,(t=>{if(l.o(e,a)&&(0!==(o=e[a])&&(e[a]=void 0),o)){var c=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;r.message="Loading chunk "+a+" failed.\n("+c+": "+n+")",r.name="ChunkLoadError",r.type=c,r.request=n,o[1](r)}}),"chunk-"+a,a)}};var a=(a,t)=>{var o,c,[n,r,s]=t,i=0;if(n.some((a=>0!==e[a]))){for(o in r)l.o(r,o)&&(l.m[o]=r[o]);if(s)s(l)}for(a&&a(t);i<n.length;i++)c=n[i],l.o(e,c)&&e[c]&&e[c][0](),e[c]=0},t=globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[];t.forEach(a.bind(null,0)),t.push=a.bind(null,t.push.bind(t))})(),l.nc=void 0;var t={};return(()=>{"use strict";l.r(t),l.d(t,{init:()=>o,parseAMP:()=>c,version:()=>n});l(27612);let e,a;function o(a){return e||(e=l.e(3017).then(l.bind(l,63017))),e.then((e=>e.init(a)))}function c(e){return a||(a=l.e(1538).then(l.bind(l,71538))),a.then((a=>a.parseAMP(e)))}const n="1.0.93-alpha.2"})(),t})()));
|