@emailmaker/emailmaker 1.1.45-alpha.1 → 1.1.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (814) hide show
  1. package/emailmaker-core.33dc7c79.js +637 -0
  2. package/emailmaker-esm.js +1384 -1587
  3. package/emailmaker.d.ts +0 -8
  4. package/emailmaker.js +3766 -4077
  5. package/iframe/js/amp.Op4DZt9X.js +1 -1
  6. package/iframe/js/iframe-eblock.js +1 -1
  7. package/iframe/js/iframe.js +1 -1
  8. package/iframe/js/rules.B-wCbIo7.js +1 -1
  9. package/npm-publish.manifest.json +13 -13
  10. package/package.json +1 -1
  11. package/singlepage_headless_plugin.html +1 -1
  12. package/static/core/{3061fb0a.js → 2012a200.js} +6 -6
  13. package/static/core/{1e9b3ac0.js → 260206b4.js} +5 -5
  14. package/static/core/{3b17491b.js → 2fc2fdef.js} +3 -3
  15. package/static/core/{392598f0.js → 34070d7f.js} +4049 -4367
  16. package/static/core/{80fb5b6a2.js → 521b410c2.js} +5 -5
  17. package/static/core/{fa02d83e.js → 58db1140.js} +7 -7
  18. package/static/core/{b039deae.js → 5def6229.js} +712 -717
  19. package/static/core/{56cdb425.js → 799c65f1.js} +4 -4
  20. package/static/core/{39da69f4.js → 817fa7b9.js} +2642 -2846
  21. package/static/core/{c189c538.js → 8384a3ed.js} +633 -609
  22. package/static/core/{87cde128.js → 855e2647.js} +2564 -2641
  23. package/static/core/{f910bde1.js → 9053f080.js} +146 -151
  24. package/static/esm/{705e2770.js → b8792b4f.js} +793 -907
  25. package/static/esm/c951742a.js +127 -0
  26. package/static/media/image-editor/fonts/BebasNeueBold.woff2 +0 -0
  27. package/static/media/image-editor/fonts/BebasNeueBook.woff2 +0 -0
  28. package/static/media/image-editor/fonts/BebasNeueLight.woff2 +0 -0
  29. package/static/media/image-editor/fonts/BebasNeueRegular.woff2 +0 -0
  30. package/static/media/image-editor/fonts/Lato-Black.woff2 +0 -0
  31. package/static/media/image-editor/fonts/Lato-Bold.woff2 +0 -0
  32. package/static/media/image-editor/fonts/Lato-Light.woff2 +0 -0
  33. package/static/media/image-editor/fonts/Lato-Regular.woff2 +0 -0
  34. package/static/media/image-editor/fonts/Lobster.woff2 +0 -0
  35. package/static/media/image-editor/fonts/Montserrat-Black.woff2 +0 -0
  36. package/static/media/image-editor/fonts/Montserrat-Bold.woff2 +0 -0
  37. package/static/media/image-editor/fonts/Montserrat-Light.woff2 +0 -0
  38. package/static/media/image-editor/fonts/Montserrat-Regular.woff2 +0 -0
  39. package/static/media/image-editor/fonts/Roboto-Black.woff2 +0 -0
  40. package/static/media/image-editor/fonts/Roboto-Bold.woff2 +0 -0
  41. package/static/media/image-editor/fonts/Roboto-Light.woff2 +0 -0
  42. package/static/media/image-editor/fonts/Roboto-Regular.woff2 +0 -0
  43. package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
  44. package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
  45. package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
  46. package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
  47. package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
  48. package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
  49. package/static/media/image-editor/fonts/fira-sans-v11-latin-ext_latin_cyrillic-regular.woff2 +0 -0
  50. package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
  51. package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
  52. package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
  53. package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
  54. package/static/media/image-editor/images/brushes/black/circle.png +0 -0
  55. package/static/media/image-editor/images/brushes/black/diamond.png +0 -0
  56. package/static/media/image-editor/images/brushes/black/hline.png +0 -0
  57. package/static/media/image-editor/images/brushes/black/pencil.png +0 -0
  58. package/static/media/image-editor/images/brushes/black/spray.png +0 -0
  59. package/static/media/image-editor/images/brushes/black/square.png +0 -0
  60. package/static/media/image-editor/images/brushes/black/vline.png +0 -0
  61. package/static/media/image-editor/images/brushes/white/circle.png +0 -0
  62. package/static/media/image-editor/images/brushes/white/diamond.png +0 -0
  63. package/static/media/image-editor/images/brushes/white/hline.png +0 -0
  64. package/static/media/image-editor/images/brushes/white/pencil.png +0 -0
  65. package/static/media/image-editor/images/brushes/white/spray.png +0 -0
  66. package/static/media/image-editor/images/brushes/white/square.png +0 -0
  67. package/static/media/image-editor/images/brushes/white/vline.png +0 -0
  68. package/static/media/image-editor/images/empty-canvas-bg.png +0 -0
  69. package/static/media/image-editor/images/filter/blackWhite.jpg +0 -0
  70. package/static/media/image-editor/images/filter/blendColor.jpg +0 -0
  71. package/static/media/image-editor/images/filter/blur.jpg +0 -0
  72. package/static/media/image-editor/images/filter/brightness.jpg +0 -0
  73. package/static/media/image-editor/images/filter/brownie.jpg +0 -0
  74. package/static/media/image-editor/images/filter/emboss.jpg +0 -0
  75. package/static/media/image-editor/images/filter/gamma.jpg +0 -0
  76. package/static/media/image-editor/images/filter/grayscale.jpg +0 -0
  77. package/static/media/image-editor/images/filter/invert.jpg +0 -0
  78. package/static/media/image-editor/images/filter/kodachrome.jpg +0 -0
  79. package/static/media/image-editor/images/filter/noise.jpg +0 -0
  80. package/static/media/image-editor/images/filter/original.jpg +0 -0
  81. package/static/media/image-editor/images/filter/pixelate.jpg +0 -0
  82. package/static/media/image-editor/images/filter/polaroid.jpg +0 -0
  83. package/static/media/image-editor/images/filter/removeColor.jpg +0 -0
  84. package/static/media/image-editor/images/filter/sepia.jpg +0 -0
  85. package/static/media/image-editor/images/filter/sharpen.jpg +0 -0
  86. package/static/media/image-editor/images/filter/technicolor.jpg +0 -0
  87. package/static/media/image-editor/images/filter/vintage.jpg +0 -0
  88. package/static/media/image-editor/images/frames/art1/bottom.png +0 -0
  89. package/static/media/image-editor/images/frames/art1/bottomLeft.png +0 -0
  90. package/static/media/image-editor/images/frames/art1/bottomRight.png +0 -0
  91. package/static/media/image-editor/images/frames/art1/left.png +0 -0
  92. package/static/media/image-editor/images/frames/art1/right.png +0 -0
  93. package/static/media/image-editor/images/frames/art1/thumbnail.png +0 -0
  94. package/static/media/image-editor/images/frames/art1/top.png +0 -0
  95. package/static/media/image-editor/images/frames/art1/topLeft.png +0 -0
  96. package/static/media/image-editor/images/frames/art1/topRight.png +0 -0
  97. package/static/media/image-editor/images/frames/art2/bottom.png +0 -0
  98. package/static/media/image-editor/images/frames/art2/bottomLeft.png +0 -0
  99. package/static/media/image-editor/images/frames/art2/bottomRight.png +0 -0
  100. package/static/media/image-editor/images/frames/art2/left.png +0 -0
  101. package/static/media/image-editor/images/frames/art2/right.png +0 -0
  102. package/static/media/image-editor/images/frames/art2/thumbnail.png +0 -0
  103. package/static/media/image-editor/images/frames/art2/top.png +0 -0
  104. package/static/media/image-editor/images/frames/art2/topLeft.png +0 -0
  105. package/static/media/image-editor/images/frames/art2/topRight.png +0 -0
  106. package/static/media/image-editor/images/frames/basic/thumbnail.png +0 -0
  107. package/static/media/image-editor/images/frames/ebony/bottom.png +0 -0
  108. package/static/media/image-editor/images/frames/ebony/bottomLeft.png +0 -0
  109. package/static/media/image-editor/images/frames/ebony/bottomRight.png +0 -0
  110. package/static/media/image-editor/images/frames/ebony/left.png +0 -0
  111. package/static/media/image-editor/images/frames/ebony/right.png +0 -0
  112. package/static/media/image-editor/images/frames/ebony/thumbnail.png +0 -0
  113. package/static/media/image-editor/images/frames/ebony/top.png +0 -0
  114. package/static/media/image-editor/images/frames/ebony/topLeft.png +0 -0
  115. package/static/media/image-editor/images/frames/ebony/topRight.png +0 -0
  116. package/static/media/image-editor/images/frames/grunge1/bottom.png +0 -0
  117. package/static/media/image-editor/images/frames/grunge1/bottomLeft.png +0 -0
  118. package/static/media/image-editor/images/frames/grunge1/bottomRight.png +0 -0
  119. package/static/media/image-editor/images/frames/grunge1/left.png +0 -0
  120. package/static/media/image-editor/images/frames/grunge1/right.png +0 -0
  121. package/static/media/image-editor/images/frames/grunge1/thumbnail.png +0 -0
  122. package/static/media/image-editor/images/frames/grunge1/top.png +0 -0
  123. package/static/media/image-editor/images/frames/grunge1/topLeft.png +0 -0
  124. package/static/media/image-editor/images/frames/grunge1/topRight.png +0 -0
  125. package/static/media/image-editor/images/frames/grunge2/bottom.png +0 -0
  126. package/static/media/image-editor/images/frames/grunge2/bottomLeft.png +0 -0
  127. package/static/media/image-editor/images/frames/grunge2/bottomRight.png +0 -0
  128. package/static/media/image-editor/images/frames/grunge2/left.png +0 -0
  129. package/static/media/image-editor/images/frames/grunge2/right.png +0 -0
  130. package/static/media/image-editor/images/frames/grunge2/thumbnail.png +0 -0
  131. package/static/media/image-editor/images/frames/grunge2/top.png +0 -0
  132. package/static/media/image-editor/images/frames/grunge2/topLeft.png +0 -0
  133. package/static/media/image-editor/images/frames/grunge2/topRight.png +0 -0
  134. package/static/media/image-editor/images/frames/oak/bottom.png +0 -0
  135. package/static/media/image-editor/images/frames/oak/bottomLeft.png +0 -0
  136. package/static/media/image-editor/images/frames/oak/bottomRight.png +0 -0
  137. package/static/media/image-editor/images/frames/oak/left.png +0 -0
  138. package/static/media/image-editor/images/frames/oak/right.png +0 -0
  139. package/static/media/image-editor/images/frames/oak/thumbnail.png +0 -0
  140. package/static/media/image-editor/images/frames/oak/top.png +0 -0
  141. package/static/media/image-editor/images/frames/oak/topLeft.png +0 -0
  142. package/static/media/image-editor/images/frames/oak/topRight.png +0 -0
  143. package/static/media/image-editor/images/frames/pine/bottom.png +0 -0
  144. package/static/media/image-editor/images/frames/pine/bottomLeft.png +0 -0
  145. package/static/media/image-editor/images/frames/pine/bottomRight.png +0 -0
  146. package/static/media/image-editor/images/frames/pine/left.png +0 -0
  147. package/static/media/image-editor/images/frames/pine/right.png +0 -0
  148. package/static/media/image-editor/images/frames/pine/thumbnail.png +0 -0
  149. package/static/media/image-editor/images/frames/pine/top.png +0 -0
  150. package/static/media/image-editor/images/frames/pine/topLeft.png +0 -0
  151. package/static/media/image-editor/images/frames/pine/topRight.png +0 -0
  152. package/static/media/image-editor/images/frames/rainbow/bottom.png +0 -0
  153. package/static/media/image-editor/images/frames/rainbow/bottomLeft.png +0 -0
  154. package/static/media/image-editor/images/frames/rainbow/bottomRight.png +0 -0
  155. package/static/media/image-editor/images/frames/rainbow/left.png +0 -0
  156. package/static/media/image-editor/images/frames/rainbow/right.png +0 -0
  157. package/static/media/image-editor/images/frames/rainbow/thumbnail.png +0 -0
  158. package/static/media/image-editor/images/frames/rainbow/top.png +0 -0
  159. package/static/media/image-editor/images/frames/rainbow/topLeft.png +0 -0
  160. package/static/media/image-editor/images/frames/rainbow/topRight.png +0 -0
  161. package/static/media/image-editor/images/gradients/0.png +0 -0
  162. package/static/media/image-editor/images/gradients/1.png +0 -0
  163. package/static/media/image-editor/images/gradients/10.png +0 -0
  164. package/static/media/image-editor/images/gradients/11.png +0 -0
  165. package/static/media/image-editor/images/gradients/12.png +0 -0
  166. package/static/media/image-editor/images/gradients/2.png +0 -0
  167. package/static/media/image-editor/images/gradients/3.png +0 -0
  168. package/static/media/image-editor/images/gradients/4.png +0 -0
  169. package/static/media/image-editor/images/gradients/5.png +0 -0
  170. package/static/media/image-editor/images/gradients/6.png +0 -0
  171. package/static/media/image-editor/images/gradients/7.png +0 -0
  172. package/static/media/image-editor/images/gradients/8.png +0 -0
  173. package/static/media/image-editor/images/gradients/9.png +0 -0
  174. package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
  175. package/static/media/image-editor/images/samples/sample1.jpg +0 -0
  176. package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
  177. package/static/media/image-editor/images/samples/sample2.jpg +0 -0
  178. package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
  179. package/static/media/image-editor/images/samples/sample3.jpg +0 -0
  180. package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
  181. package/static/media/image-editor/images/samples/sample4.json +871 -0
  182. package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
  183. package/static/media/image-editor/images/stickers/beach/0.svg +25 -0
  184. package/static/media/image-editor/images/stickers/beach/1.svg +14 -0
  185. package/static/media/image-editor/images/stickers/beach/10.svg +34 -0
  186. package/static/media/image-editor/images/stickers/beach/11.svg +27 -0
  187. package/static/media/image-editor/images/stickers/beach/12.svg +10 -0
  188. package/static/media/image-editor/images/stickers/beach/13.svg +25 -0
  189. package/static/media/image-editor/images/stickers/beach/14.svg +16 -0
  190. package/static/media/image-editor/images/stickers/beach/15.svg +14 -0
  191. package/static/media/image-editor/images/stickers/beach/16.svg +44 -0
  192. package/static/media/image-editor/images/stickers/beach/17.svg +35 -0
  193. package/static/media/image-editor/images/stickers/beach/18.svg +32 -0
  194. package/static/media/image-editor/images/stickers/beach/19.svg +23 -0
  195. package/static/media/image-editor/images/stickers/beach/2.svg +14 -0
  196. package/static/media/image-editor/images/stickers/beach/20.svg +24 -0
  197. package/static/media/image-editor/images/stickers/beach/21.svg +11 -0
  198. package/static/media/image-editor/images/stickers/beach/3.svg +26 -0
  199. package/static/media/image-editor/images/stickers/beach/4.svg +25 -0
  200. package/static/media/image-editor/images/stickers/beach/5.svg +22 -0
  201. package/static/media/image-editor/images/stickers/beach/6.svg +20 -0
  202. package/static/media/image-editor/images/stickers/beach/7.svg +32 -0
  203. package/static/media/image-editor/images/stickers/beach/8.svg +28 -0
  204. package/static/media/image-editor/images/stickers/beach/9.svg +18 -0
  205. package/static/media/image-editor/images/stickers/bubbles/0.png +0 -0
  206. package/static/media/image-editor/images/stickers/bubbles/1.png +0 -0
  207. package/static/media/image-editor/images/stickers/bubbles/10.png +0 -0
  208. package/static/media/image-editor/images/stickers/bubbles/100.png +0 -0
  209. package/static/media/image-editor/images/stickers/bubbles/101.png +0 -0
  210. package/static/media/image-editor/images/stickers/bubbles/102.png +0 -0
  211. package/static/media/image-editor/images/stickers/bubbles/103.png +0 -0
  212. package/static/media/image-editor/images/stickers/bubbles/105.png +0 -0
  213. package/static/media/image-editor/images/stickers/bubbles/11.png +0 -0
  214. package/static/media/image-editor/images/stickers/bubbles/12.png +0 -0
  215. package/static/media/image-editor/images/stickers/bubbles/13.png +0 -0
  216. package/static/media/image-editor/images/stickers/bubbles/14.png +0 -0
  217. package/static/media/image-editor/images/stickers/bubbles/15.png +0 -0
  218. package/static/media/image-editor/images/stickers/bubbles/16.png +0 -0
  219. package/static/media/image-editor/images/stickers/bubbles/17.png +0 -0
  220. package/static/media/image-editor/images/stickers/bubbles/18.png +0 -0
  221. package/static/media/image-editor/images/stickers/bubbles/19.png +0 -0
  222. package/static/media/image-editor/images/stickers/bubbles/2.png +0 -0
  223. package/static/media/image-editor/images/stickers/bubbles/20.png +0 -0
  224. package/static/media/image-editor/images/stickers/bubbles/21.png +0 -0
  225. package/static/media/image-editor/images/stickers/bubbles/22.png +0 -0
  226. package/static/media/image-editor/images/stickers/bubbles/23.png +0 -0
  227. package/static/media/image-editor/images/stickers/bubbles/24.png +0 -0
  228. package/static/media/image-editor/images/stickers/bubbles/25.png +0 -0
  229. package/static/media/image-editor/images/stickers/bubbles/26.png +0 -0
  230. package/static/media/image-editor/images/stickers/bubbles/27.png +0 -0
  231. package/static/media/image-editor/images/stickers/bubbles/28.png +0 -0
  232. package/static/media/image-editor/images/stickers/bubbles/29.png +0 -0
  233. package/static/media/image-editor/images/stickers/bubbles/3.png +0 -0
  234. package/static/media/image-editor/images/stickers/bubbles/30.png +0 -0
  235. package/static/media/image-editor/images/stickers/bubbles/31.png +0 -0
  236. package/static/media/image-editor/images/stickers/bubbles/32.png +0 -0
  237. package/static/media/image-editor/images/stickers/bubbles/33.png +0 -0
  238. package/static/media/image-editor/images/stickers/bubbles/34.png +0 -0
  239. package/static/media/image-editor/images/stickers/bubbles/35.png +0 -0
  240. package/static/media/image-editor/images/stickers/bubbles/36.png +0 -0
  241. package/static/media/image-editor/images/stickers/bubbles/37.png +0 -0
  242. package/static/media/image-editor/images/stickers/bubbles/38.png +0 -0
  243. package/static/media/image-editor/images/stickers/bubbles/39.png +0 -0
  244. package/static/media/image-editor/images/stickers/bubbles/4.png +0 -0
  245. package/static/media/image-editor/images/stickers/bubbles/40.png +0 -0
  246. package/static/media/image-editor/images/stickers/bubbles/41.png +0 -0
  247. package/static/media/image-editor/images/stickers/bubbles/42.png +0 -0
  248. package/static/media/image-editor/images/stickers/bubbles/43.png +0 -0
  249. package/static/media/image-editor/images/stickers/bubbles/44.png +0 -0
  250. package/static/media/image-editor/images/stickers/bubbles/45.png +0 -0
  251. package/static/media/image-editor/images/stickers/bubbles/46.png +0 -0
  252. package/static/media/image-editor/images/stickers/bubbles/47.png +0 -0
  253. package/static/media/image-editor/images/stickers/bubbles/48.png +0 -0
  254. package/static/media/image-editor/images/stickers/bubbles/49.png +0 -0
  255. package/static/media/image-editor/images/stickers/bubbles/5.png +0 -0
  256. package/static/media/image-editor/images/stickers/bubbles/50.png +0 -0
  257. package/static/media/image-editor/images/stickers/bubbles/51.png +0 -0
  258. package/static/media/image-editor/images/stickers/bubbles/52.png +0 -0
  259. package/static/media/image-editor/images/stickers/bubbles/53.png +0 -0
  260. package/static/media/image-editor/images/stickers/bubbles/54.png +0 -0
  261. package/static/media/image-editor/images/stickers/bubbles/55.png +0 -0
  262. package/static/media/image-editor/images/stickers/bubbles/56.png +0 -0
  263. package/static/media/image-editor/images/stickers/bubbles/57.png +0 -0
  264. package/static/media/image-editor/images/stickers/bubbles/58.png +0 -0
  265. package/static/media/image-editor/images/stickers/bubbles/59.png +0 -0
  266. package/static/media/image-editor/images/stickers/bubbles/6.png +0 -0
  267. package/static/media/image-editor/images/stickers/bubbles/60.png +0 -0
  268. package/static/media/image-editor/images/stickers/bubbles/61.png +0 -0
  269. package/static/media/image-editor/images/stickers/bubbles/62.png +0 -0
  270. package/static/media/image-editor/images/stickers/bubbles/63.png +0 -0
  271. package/static/media/image-editor/images/stickers/bubbles/64.png +0 -0
  272. package/static/media/image-editor/images/stickers/bubbles/65.png +0 -0
  273. package/static/media/image-editor/images/stickers/bubbles/66.png +0 -0
  274. package/static/media/image-editor/images/stickers/bubbles/67.png +0 -0
  275. package/static/media/image-editor/images/stickers/bubbles/68.png +0 -0
  276. package/static/media/image-editor/images/stickers/bubbles/69.png +0 -0
  277. package/static/media/image-editor/images/stickers/bubbles/7.png +0 -0
  278. package/static/media/image-editor/images/stickers/bubbles/70.png +0 -0
  279. package/static/media/image-editor/images/stickers/bubbles/71.png +0 -0
  280. package/static/media/image-editor/images/stickers/bubbles/72.png +0 -0
  281. package/static/media/image-editor/images/stickers/bubbles/73.png +0 -0
  282. package/static/media/image-editor/images/stickers/bubbles/74.png +0 -0
  283. package/static/media/image-editor/images/stickers/bubbles/75.png +0 -0
  284. package/static/media/image-editor/images/stickers/bubbles/76.png +0 -0
  285. package/static/media/image-editor/images/stickers/bubbles/77.png +0 -0
  286. package/static/media/image-editor/images/stickers/bubbles/78.png +0 -0
  287. package/static/media/image-editor/images/stickers/bubbles/79.png +0 -0
  288. package/static/media/image-editor/images/stickers/bubbles/8.png +0 -0
  289. package/static/media/image-editor/images/stickers/bubbles/80.png +0 -0
  290. package/static/media/image-editor/images/stickers/bubbles/81.png +0 -0
  291. package/static/media/image-editor/images/stickers/bubbles/82.png +0 -0
  292. package/static/media/image-editor/images/stickers/bubbles/83.png +0 -0
  293. package/static/media/image-editor/images/stickers/bubbles/84.png +0 -0
  294. package/static/media/image-editor/images/stickers/bubbles/85.png +0 -0
  295. package/static/media/image-editor/images/stickers/bubbles/86.png +0 -0
  296. package/static/media/image-editor/images/stickers/bubbles/87.png +0 -0
  297. package/static/media/image-editor/images/stickers/bubbles/88.png +0 -0
  298. package/static/media/image-editor/images/stickers/bubbles/89.png +0 -0
  299. package/static/media/image-editor/images/stickers/bubbles/9.png +0 -0
  300. package/static/media/image-editor/images/stickers/bubbles/90.png +0 -0
  301. package/static/media/image-editor/images/stickers/bubbles/91.png +0 -0
  302. package/static/media/image-editor/images/stickers/bubbles/92.png +0 -0
  303. package/static/media/image-editor/images/stickers/bubbles/93.png +0 -0
  304. package/static/media/image-editor/images/stickers/bubbles/94.png +0 -0
  305. package/static/media/image-editor/images/stickers/bubbles/95.png +0 -0
  306. package/static/media/image-editor/images/stickers/bubbles/96.png +0 -0
  307. package/static/media/image-editor/images/stickers/bubbles/97.png +0 -0
  308. package/static/media/image-editor/images/stickers/bubbles/98.png +0 -0
  309. package/static/media/image-editor/images/stickers/bubbles/99.png +0 -0
  310. package/static/media/image-editor/images/stickers/categories/beach.svg +18 -0
  311. package/static/media/image-editor/images/stickers/categories/clouds.svg +15 -0
  312. package/static/media/image-editor/images/stickers/categories/doodles.svg +13 -0
  313. package/static/media/image-editor/images/stickers/categories/emoticon.svg +10 -0
  314. package/static/media/image-editor/images/stickers/categories/landmark.svg +20 -0
  315. package/static/media/image-editor/images/stickers/categories/speech-bubble.svg +6 -0
  316. package/static/media/image-editor/images/stickers/categories/star.svg +6 -0
  317. package/static/media/image-editor/images/stickers/categories/transportation.svg +18 -0
  318. package/static/media/image-editor/images/stickers/clouds/0.png +0 -0
  319. package/static/media/image-editor/images/stickers/clouds/1.png +0 -0
  320. package/static/media/image-editor/images/stickers/clouds/10.png +0 -0
  321. package/static/media/image-editor/images/stickers/clouds/11.png +0 -0
  322. package/static/media/image-editor/images/stickers/clouds/12.png +0 -0
  323. package/static/media/image-editor/images/stickers/clouds/13.png +0 -0
  324. package/static/media/image-editor/images/stickers/clouds/14.png +0 -0
  325. package/static/media/image-editor/images/stickers/clouds/2.png +0 -0
  326. package/static/media/image-editor/images/stickers/clouds/3.png +0 -0
  327. package/static/media/image-editor/images/stickers/clouds/4.png +0 -0
  328. package/static/media/image-editor/images/stickers/clouds/5.png +0 -0
  329. package/static/media/image-editor/images/stickers/clouds/6.png +0 -0
  330. package/static/media/image-editor/images/stickers/clouds/7.png +0 -0
  331. package/static/media/image-editor/images/stickers/clouds/8.png +0 -0
  332. package/static/media/image-editor/images/stickers/clouds/9.png +0 -0
  333. package/static/media/image-editor/images/stickers/doodles/0.svg +201 -0
  334. package/static/media/image-editor/images/stickers/doodles/1.svg +255 -0
  335. package/static/media/image-editor/images/stickers/doodles/10.svg +160 -0
  336. package/static/media/image-editor/images/stickers/doodles/11.svg +393 -0
  337. package/static/media/image-editor/images/stickers/doodles/12.svg +293 -0
  338. package/static/media/image-editor/images/stickers/doodles/13.svg +251 -0
  339. package/static/media/image-editor/images/stickers/doodles/14.svg +370 -0
  340. package/static/media/image-editor/images/stickers/doodles/15.svg +194 -0
  341. package/static/media/image-editor/images/stickers/doodles/16.svg +383 -0
  342. package/static/media/image-editor/images/stickers/doodles/17.svg +346 -0
  343. package/static/media/image-editor/images/stickers/doodles/18.svg +286 -0
  344. package/static/media/image-editor/images/stickers/doodles/19.svg +241 -0
  345. package/static/media/image-editor/images/stickers/doodles/2.svg +227 -0
  346. package/static/media/image-editor/images/stickers/doodles/20.svg +330 -0
  347. package/static/media/image-editor/images/stickers/doodles/21.svg +200 -0
  348. package/static/media/image-editor/images/stickers/doodles/22.svg +308 -0
  349. package/static/media/image-editor/images/stickers/doodles/23.svg +518 -0
  350. package/static/media/image-editor/images/stickers/doodles/24.svg +207 -0
  351. package/static/media/image-editor/images/stickers/doodles/25.svg +260 -0
  352. package/static/media/image-editor/images/stickers/doodles/26.svg +380 -0
  353. package/static/media/image-editor/images/stickers/doodles/27.svg +222 -0
  354. package/static/media/image-editor/images/stickers/doodles/28.svg +164 -0
  355. package/static/media/image-editor/images/stickers/doodles/29.svg +271 -0
  356. package/static/media/image-editor/images/stickers/doodles/3.svg +272 -0
  357. package/static/media/image-editor/images/stickers/doodles/30.svg +283 -0
  358. package/static/media/image-editor/images/stickers/doodles/31.svg +257 -0
  359. package/static/media/image-editor/images/stickers/doodles/32.svg +276 -0
  360. package/static/media/image-editor/images/stickers/doodles/33.svg +198 -0
  361. package/static/media/image-editor/images/stickers/doodles/34.svg +314 -0
  362. package/static/media/image-editor/images/stickers/doodles/35.svg +236 -0
  363. package/static/media/image-editor/images/stickers/doodles/36.svg +273 -0
  364. package/static/media/image-editor/images/stickers/doodles/37.svg +284 -0
  365. package/static/media/image-editor/images/stickers/doodles/38.svg +167 -0
  366. package/static/media/image-editor/images/stickers/doodles/39.svg +381 -0
  367. package/static/media/image-editor/images/stickers/doodles/4.svg +216 -0
  368. package/static/media/image-editor/images/stickers/doodles/40.svg +198 -0
  369. package/static/media/image-editor/images/stickers/doodles/41.svg +259 -0
  370. package/static/media/image-editor/images/stickers/doodles/42.svg +371 -0
  371. package/static/media/image-editor/images/stickers/doodles/43.svg +198 -0
  372. package/static/media/image-editor/images/stickers/doodles/44.svg +174 -0
  373. package/static/media/image-editor/images/stickers/doodles/45.svg +178 -0
  374. package/static/media/image-editor/images/stickers/doodles/46.svg +211 -0
  375. package/static/media/image-editor/images/stickers/doodles/47.svg +195 -0
  376. package/static/media/image-editor/images/stickers/doodles/48.svg +293 -0
  377. package/static/media/image-editor/images/stickers/doodles/49.svg +191 -0
  378. package/static/media/image-editor/images/stickers/doodles/5.svg +179 -0
  379. package/static/media/image-editor/images/stickers/doodles/50.svg +323 -0
  380. package/static/media/image-editor/images/stickers/doodles/51.svg +308 -0
  381. package/static/media/image-editor/images/stickers/doodles/52.svg +162 -0
  382. package/static/media/image-editor/images/stickers/doodles/53.svg +263 -0
  383. package/static/media/image-editor/images/stickers/doodles/54.svg +175 -0
  384. package/static/media/image-editor/images/stickers/doodles/55.svg +177 -0
  385. package/static/media/image-editor/images/stickers/doodles/56.svg +160 -0
  386. package/static/media/image-editor/images/stickers/doodles/57.svg +115 -0
  387. package/static/media/image-editor/images/stickers/doodles/58.svg +327 -0
  388. package/static/media/image-editor/images/stickers/doodles/59.svg +197 -0
  389. package/static/media/image-editor/images/stickers/doodles/6.svg +388 -0
  390. package/static/media/image-editor/images/stickers/doodles/60.svg +414 -0
  391. package/static/media/image-editor/images/stickers/doodles/61.svg +287 -0
  392. package/static/media/image-editor/images/stickers/doodles/62.svg +193 -0
  393. package/static/media/image-editor/images/stickers/doodles/63.svg +329 -0
  394. package/static/media/image-editor/images/stickers/doodles/64.svg +150 -0
  395. package/static/media/image-editor/images/stickers/doodles/65.svg +275 -0
  396. package/static/media/image-editor/images/stickers/doodles/66.svg +174 -0
  397. package/static/media/image-editor/images/stickers/doodles/67.svg +343 -0
  398. package/static/media/image-editor/images/stickers/doodles/68.svg +242 -0
  399. package/static/media/image-editor/images/stickers/doodles/69.svg +160 -0
  400. package/static/media/image-editor/images/stickers/doodles/7.svg +194 -0
  401. package/static/media/image-editor/images/stickers/doodles/70.svg +365 -0
  402. package/static/media/image-editor/images/stickers/doodles/71.svg +454 -0
  403. package/static/media/image-editor/images/stickers/doodles/72.svg +162 -0
  404. package/static/media/image-editor/images/stickers/doodles/73.svg +393 -0
  405. package/static/media/image-editor/images/stickers/doodles/74.svg +206 -0
  406. package/static/media/image-editor/images/stickers/doodles/75.svg +275 -0
  407. package/static/media/image-editor/images/stickers/doodles/76.svg +350 -0
  408. package/static/media/image-editor/images/stickers/doodles/77.svg +323 -0
  409. package/static/media/image-editor/images/stickers/doodles/78.svg +316 -0
  410. package/static/media/image-editor/images/stickers/doodles/79.svg +503 -0
  411. package/static/media/image-editor/images/stickers/doodles/8.svg +185 -0
  412. package/static/media/image-editor/images/stickers/doodles/80.svg +235 -0
  413. package/static/media/image-editor/images/stickers/doodles/81.svg +184 -0
  414. package/static/media/image-editor/images/stickers/doodles/82.svg +246 -0
  415. package/static/media/image-editor/images/stickers/doodles/83.svg +125 -0
  416. package/static/media/image-editor/images/stickers/doodles/84.svg +168 -0
  417. package/static/media/image-editor/images/stickers/doodles/85.svg +138 -0
  418. package/static/media/image-editor/images/stickers/doodles/86.svg +223 -0
  419. package/static/media/image-editor/images/stickers/doodles/87.svg +475 -0
  420. package/static/media/image-editor/images/stickers/doodles/88.svg +172 -0
  421. package/static/media/image-editor/images/stickers/doodles/89.svg +199 -0
  422. package/static/media/image-editor/images/stickers/doodles/9.svg +368 -0
  423. package/static/media/image-editor/images/stickers/doodles/90.svg +298 -0
  424. package/static/media/image-editor/images/stickers/doodles/91.svg +176 -0
  425. package/static/media/image-editor/images/stickers/doodles/92.svg +152 -0
  426. package/static/media/image-editor/images/stickers/doodles/93.svg +206 -0
  427. package/static/media/image-editor/images/stickers/doodles/94.svg +202 -0
  428. package/static/media/image-editor/images/stickers/doodles/95.svg +114 -0
  429. package/static/media/image-editor/images/stickers/doodles/96.svg +149 -0
  430. package/static/media/image-editor/images/stickers/doodles/97.svg +197 -0
  431. package/static/media/image-editor/images/stickers/doodles/98.svg +397 -0
  432. package/static/media/image-editor/images/stickers/doodles/99.svg +502 -0
  433. package/static/media/image-editor/images/stickers/emoticons/afro-1.svg +122 -0
  434. package/static/media/image-editor/images/stickers/emoticons/afro.svg +85 -0
  435. package/static/media/image-editor/images/stickers/emoticons/agent.svg +114 -0
  436. package/static/media/image-editor/images/stickers/emoticons/alien-1.svg +60 -0
  437. package/static/media/image-editor/images/stickers/emoticons/alien.svg +64 -0
  438. package/static/media/image-editor/images/stickers/emoticons/angel.svg +47 -0
  439. package/static/media/image-editor/images/stickers/emoticons/angry-1.svg +83 -0
  440. package/static/media/image-editor/images/stickers/emoticons/angry-2.svg +48 -0
  441. package/static/media/image-editor/images/stickers/emoticons/angry-3.svg +45 -0
  442. package/static/media/image-editor/images/stickers/emoticons/angry-4.svg +52 -0
  443. package/static/media/image-editor/images/stickers/emoticons/angry-5.svg +62 -0
  444. package/static/media/image-editor/images/stickers/emoticons/angry.svg +78 -0
  445. package/static/media/image-editor/images/stickers/emoticons/arguing.svg +49 -0
  446. package/static/media/image-editor/images/stickers/emoticons/arrogant.svg +98 -0
  447. package/static/media/image-editor/images/stickers/emoticons/asian-1.svg +52 -0
  448. package/static/media/image-editor/images/stickers/emoticons/asian.svg +54 -0
  449. package/static/media/image-editor/images/stickers/emoticons/avatar.svg +49 -0
  450. package/static/media/image-editor/images/stickers/emoticons/baby-1.svg +51 -0
  451. package/static/media/image-editor/images/stickers/emoticons/baby-2.svg +54 -0
  452. package/static/media/image-editor/images/stickers/emoticons/baby.svg +66 -0
  453. package/static/media/image-editor/images/stickers/emoticons/bully.svg +68 -0
  454. package/static/media/image-editor/images/stickers/emoticons/burglar.svg +75 -0
  455. package/static/media/image-editor/images/stickers/emoticons/businessman.svg +52 -0
  456. package/static/media/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -0
  457. package/static/media/image-editor/images/stickers/emoticons/cheeky.svg +73 -0
  458. package/static/media/image-editor/images/stickers/emoticons/clown.svg +75 -0
  459. package/static/media/image-editor/images/stickers/emoticons/confused-1.svg +74 -0
  460. package/static/media/image-editor/images/stickers/emoticons/confused-2.svg +55 -0
  461. package/static/media/image-editor/images/stickers/emoticons/confused-3.svg +45 -0
  462. package/static/media/image-editor/images/stickers/emoticons/confused.svg +66 -0
  463. package/static/media/image-editor/images/stickers/emoticons/creepy.svg +60 -0
  464. package/static/media/image-editor/images/stickers/emoticons/crying-1.svg +55 -0
  465. package/static/media/image-editor/images/stickers/emoticons/crying-2.svg +83 -0
  466. package/static/media/image-editor/images/stickers/emoticons/crying-3.svg +53 -0
  467. package/static/media/image-editor/images/stickers/emoticons/crying.svg +59 -0
  468. package/static/media/image-editor/images/stickers/emoticons/dazed-1.svg +63 -0
  469. package/static/media/image-editor/images/stickers/emoticons/dazed-2.svg +51 -0
  470. package/static/media/image-editor/images/stickers/emoticons/dazed-3.svg +55 -0
  471. package/static/media/image-editor/images/stickers/emoticons/dazed.svg +56 -0
  472. package/static/media/image-editor/images/stickers/emoticons/dead-1.svg +61 -0
  473. package/static/media/image-editor/images/stickers/emoticons/dead-2.svg +80 -0
  474. package/static/media/image-editor/images/stickers/emoticons/dead-3.svg +66 -0
  475. package/static/media/image-editor/images/stickers/emoticons/dead-4.svg +54 -0
  476. package/static/media/image-editor/images/stickers/emoticons/dead-5.svg +52 -0
  477. package/static/media/image-editor/images/stickers/emoticons/dead-6.svg +53 -0
  478. package/static/media/image-editor/images/stickers/emoticons/dead.svg +54 -0
  479. package/static/media/image-editor/images/stickers/emoticons/desperate-1.svg +47 -0
  480. package/static/media/image-editor/images/stickers/emoticons/desperate.svg +75 -0
  481. package/static/media/image-editor/images/stickers/emoticons/detective.svg +75 -0
  482. package/static/media/image-editor/images/stickers/emoticons/dissapointment.svg +70 -0
  483. package/static/media/image-editor/images/stickers/emoticons/doctor.svg +61 -0
  484. package/static/media/image-editor/images/stickers/emoticons/drunk.svg +55 -0
  485. package/static/media/image-editor/images/stickers/emoticons/dumb.svg +50 -0
  486. package/static/media/image-editor/images/stickers/emoticons/emo-1.svg +104 -0
  487. package/static/media/image-editor/images/stickers/emoticons/emo-2.svg +111 -0
  488. package/static/media/image-editor/images/stickers/emoticons/emo.svg +56 -0
  489. package/static/media/image-editor/images/stickers/emoticons/emoticon.svg +84 -0
  490. package/static/media/image-editor/images/stickers/emoticons/evil.svg +59 -0
  491. package/static/media/image-editor/images/stickers/emoticons/faint-1.svg +75 -0
  492. package/static/media/image-editor/images/stickers/emoticons/faint.svg +84 -0
  493. package/static/media/image-editor/images/stickers/emoticons/flirt-1.svg +81 -0
  494. package/static/media/image-editor/images/stickers/emoticons/flirt-2.svg +68 -0
  495. package/static/media/image-editor/images/stickers/emoticons/flirt.svg +71 -0
  496. package/static/media/image-editor/images/stickers/emoticons/flirty.svg +60 -0
  497. package/static/media/image-editor/images/stickers/emoticons/gangster.svg +54 -0
  498. package/static/media/image-editor/images/stickers/emoticons/geek-1.svg +76 -0
  499. package/static/media/image-editor/images/stickers/emoticons/geek.svg +69 -0
  500. package/static/media/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -0
  501. package/static/media/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -0
  502. package/static/media/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -0
  503. package/static/media/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -0
  504. package/static/media/image-editor/images/stickers/emoticons/gentleman.svg +57 -0
  505. package/static/media/image-editor/images/stickers/emoticons/ginger.svg +55 -0
  506. package/static/media/image-editor/images/stickers/emoticons/girl-1.svg +70 -0
  507. package/static/media/image-editor/images/stickers/emoticons/girl.svg +73 -0
  508. package/static/media/image-editor/images/stickers/emoticons/goofy-1.svg +46 -0
  509. package/static/media/image-editor/images/stickers/emoticons/goofy-2.svg +79 -0
  510. package/static/media/image-editor/images/stickers/emoticons/goofy-3.svg +79 -0
  511. package/static/media/image-editor/images/stickers/emoticons/goofy-4.svg +46 -0
  512. package/static/media/image-editor/images/stickers/emoticons/goofy.svg +79 -0
  513. package/static/media/image-editor/images/stickers/emoticons/grubby-1.svg +114 -0
  514. package/static/media/image-editor/images/stickers/emoticons/grubby.svg +165 -0
  515. package/static/media/image-editor/images/stickers/emoticons/happy-1.svg +49 -0
  516. package/static/media/image-editor/images/stickers/emoticons/happy-10.svg +62 -0
  517. package/static/media/image-editor/images/stickers/emoticons/happy-11.svg +55 -0
  518. package/static/media/image-editor/images/stickers/emoticons/happy-12.svg +53 -0
  519. package/static/media/image-editor/images/stickers/emoticons/happy-13.svg +58 -0
  520. package/static/media/image-editor/images/stickers/emoticons/happy-14.svg +62 -0
  521. package/static/media/image-editor/images/stickers/emoticons/happy-15.svg +49 -0
  522. package/static/media/image-editor/images/stickers/emoticons/happy-16.svg +49 -0
  523. package/static/media/image-editor/images/stickers/emoticons/happy-2.svg +71 -0
  524. package/static/media/image-editor/images/stickers/emoticons/happy-3.svg +74 -0
  525. package/static/media/image-editor/images/stickers/emoticons/happy-4.svg +77 -0
  526. package/static/media/image-editor/images/stickers/emoticons/happy-5.svg +52 -0
  527. package/static/media/image-editor/images/stickers/emoticons/happy-6.svg +54 -0
  528. package/static/media/image-editor/images/stickers/emoticons/happy-7.svg +58 -0
  529. package/static/media/image-editor/images/stickers/emoticons/happy-8.svg +42 -0
  530. package/static/media/image-editor/images/stickers/emoticons/happy-9.svg +45 -0
  531. package/static/media/image-editor/images/stickers/emoticons/happy.svg +48 -0
  532. package/static/media/image-editor/images/stickers/emoticons/harry-potter.svg +68 -0
  533. package/static/media/image-editor/images/stickers/emoticons/heisenberg.svg +80 -0
  534. package/static/media/image-editor/images/stickers/emoticons/hipster-1.svg +118 -0
  535. package/static/media/image-editor/images/stickers/emoticons/hipster-2.svg +49 -0
  536. package/static/media/image-editor/images/stickers/emoticons/hipster.svg +48 -0
  537. package/static/media/image-editor/images/stickers/emoticons/in-love-1.svg +62 -0
  538. package/static/media/image-editor/images/stickers/emoticons/in-love-2.svg +48 -0
  539. package/static/media/image-editor/images/stickers/emoticons/in-love-3.svg +49 -0
  540. package/static/media/image-editor/images/stickers/emoticons/in-love-4.svg +50 -0
  541. package/static/media/image-editor/images/stickers/emoticons/in-love-5.svg +49 -0
  542. package/static/media/image-editor/images/stickers/emoticons/in-love-6.svg +53 -0
  543. package/static/media/image-editor/images/stickers/emoticons/in-love.svg +57 -0
  544. package/static/media/image-editor/images/stickers/emoticons/japan.svg +79 -0
  545. package/static/media/image-editor/images/stickers/emoticons/jew.svg +83 -0
  546. package/static/media/image-editor/images/stickers/emoticons/joyful-1.svg +72 -0
  547. package/static/media/image-editor/images/stickers/emoticons/joyful-2.svg +45 -0
  548. package/static/media/image-editor/images/stickers/emoticons/joyful.svg +47 -0
  549. package/static/media/image-editor/images/stickers/emoticons/kiss-1.svg +48 -0
  550. package/static/media/image-editor/images/stickers/emoticons/kiss-2.svg +59 -0
  551. package/static/media/image-editor/images/stickers/emoticons/kiss-3.svg +53 -0
  552. package/static/media/image-editor/images/stickers/emoticons/kiss-4.svg +59 -0
  553. package/static/media/image-editor/images/stickers/emoticons/kiss.svg +67 -0
  554. package/static/media/image-editor/images/stickers/emoticons/laughing-1.svg +54 -0
  555. package/static/media/image-editor/images/stickers/emoticons/laughing-2.svg +57 -0
  556. package/static/media/image-editor/images/stickers/emoticons/laughing-3.svg +55 -0
  557. package/static/media/image-editor/images/stickers/emoticons/laughing.svg +56 -0
  558. package/static/media/image-editor/images/stickers/emoticons/listening.svg +55 -0
  559. package/static/media/image-editor/images/stickers/emoticons/love.svg +74 -0
  560. package/static/media/image-editor/images/stickers/emoticons/manly.svg +75 -0
  561. package/static/media/image-editor/images/stickers/emoticons/miserly-1.svg +90 -0
  562. package/static/media/image-editor/images/stickers/emoticons/miserly.svg +82 -0
  563. package/static/media/image-editor/images/stickers/emoticons/nerd-1.svg +88 -0
  564. package/static/media/image-editor/images/stickers/emoticons/nerd-2.svg +73 -0
  565. package/static/media/image-editor/images/stickers/emoticons/nerd-3.svg +60 -0
  566. package/static/media/image-editor/images/stickers/emoticons/nerd-4.svg +70 -0
  567. package/static/media/image-editor/images/stickers/emoticons/nerd.svg +88 -0
  568. package/static/media/image-editor/images/stickers/emoticons/ninja.svg +51 -0
  569. package/static/media/image-editor/images/stickers/emoticons/pirate-1.svg +92 -0
  570. package/static/media/image-editor/images/stickers/emoticons/pirate-2.svg +48 -0
  571. package/static/media/image-editor/images/stickers/emoticons/pirate.svg +286 -0
  572. package/static/media/image-editor/images/stickers/emoticons/punk-1.svg +134 -0
  573. package/static/media/image-editor/images/stickers/emoticons/punk-2.svg +153 -0
  574. package/static/media/image-editor/images/stickers/emoticons/punk.svg +82 -0
  575. package/static/media/image-editor/images/stickers/emoticons/rapper.svg +51 -0
  576. package/static/media/image-editor/images/stickers/emoticons/relieved.svg +56 -0
  577. package/static/media/image-editor/images/stickers/emoticons/rich-1.svg +59 -0
  578. package/static/media/image-editor/images/stickers/emoticons/rich-2.svg +93 -0
  579. package/static/media/image-editor/images/stickers/emoticons/rich.svg +88 -0
  580. package/static/media/image-editor/images/stickers/emoticons/rockstar.svg +177 -0
  581. package/static/media/image-editor/images/stickers/emoticons/sad-1.svg +43 -0
  582. package/static/media/image-editor/images/stickers/emoticons/sad-2.svg +49 -0
  583. package/static/media/image-editor/images/stickers/emoticons/sad-3.svg +49 -0
  584. package/static/media/image-editor/images/stickers/emoticons/sad-4.svg +49 -0
  585. package/static/media/image-editor/images/stickers/emoticons/sad-5.svg +45 -0
  586. package/static/media/image-editor/images/stickers/emoticons/sad-6.svg +47 -0
  587. package/static/media/image-editor/images/stickers/emoticons/sad.svg +47 -0
  588. package/static/media/image-editor/images/stickers/emoticons/scared-1.svg +79 -0
  589. package/static/media/image-editor/images/stickers/emoticons/scared-2.svg +59 -0
  590. package/static/media/image-editor/images/stickers/emoticons/scared-3.svg +52 -0
  591. package/static/media/image-editor/images/stickers/emoticons/scared.svg +45 -0
  592. package/static/media/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -0
  593. package/static/media/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -0
  594. package/static/media/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -0
  595. package/static/media/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -0
  596. package/static/media/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -0
  597. package/static/media/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -0
  598. package/static/media/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -0
  599. package/static/media/image-editor/images/stickers/emoticons/sceptic.svg +44 -0
  600. package/static/media/image-editor/images/stickers/emoticons/secret.svg +48 -0
  601. package/static/media/image-editor/images/stickers/emoticons/shocked-1.svg +67 -0
  602. package/static/media/image-editor/images/stickers/emoticons/shocked-2.svg +44 -0
  603. package/static/media/image-editor/images/stickers/emoticons/shocked-3.svg +48 -0
  604. package/static/media/image-editor/images/stickers/emoticons/shocked.svg +46 -0
  605. package/static/media/image-editor/images/stickers/emoticons/sick-1.svg +55 -0
  606. package/static/media/image-editor/images/stickers/emoticons/sick-2.svg +48 -0
  607. package/static/media/image-editor/images/stickers/emoticons/sick-3.svg +49 -0
  608. package/static/media/image-editor/images/stickers/emoticons/sick-4.svg +52 -0
  609. package/static/media/image-editor/images/stickers/emoticons/sick.svg +52 -0
  610. package/static/media/image-editor/images/stickers/emoticons/silent.svg +43 -0
  611. package/static/media/image-editor/images/stickers/emoticons/skeleton.svg +64 -0
  612. package/static/media/image-editor/images/stickers/emoticons/smile.svg +43 -0
  613. package/static/media/image-editor/images/stickers/emoticons/smiling-1.svg +47 -0
  614. package/static/media/image-editor/images/stickers/emoticons/smiling.svg +75 -0
  615. package/static/media/image-editor/images/stickers/emoticons/smoked.svg +131 -0
  616. package/static/media/image-editor/images/stickers/emoticons/smug-1.svg +74 -0
  617. package/static/media/image-editor/images/stickers/emoticons/smug-2.svg +82 -0
  618. package/static/media/image-editor/images/stickers/emoticons/smug-3.svg +71 -0
  619. package/static/media/image-editor/images/stickers/emoticons/smug-4.svg +50 -0
  620. package/static/media/image-editor/images/stickers/emoticons/smug-5.svg +64 -0
  621. package/static/media/image-editor/images/stickers/emoticons/smug-6.svg +82 -0
  622. package/static/media/image-editor/images/stickers/emoticons/smug.svg +96 -0
  623. package/static/media/image-editor/images/stickers/emoticons/sporty.svg +68 -0
  624. package/static/media/image-editor/images/stickers/emoticons/stunned.svg +72 -0
  625. package/static/media/image-editor/images/stickers/emoticons/superhero-1.svg +60 -0
  626. package/static/media/image-editor/images/stickers/emoticons/superhero-2.svg +47 -0
  627. package/static/media/image-editor/images/stickers/emoticons/superhero-3.svg +48 -0
  628. package/static/media/image-editor/images/stickers/emoticons/superhero-4.svg +52 -0
  629. package/static/media/image-editor/images/stickers/emoticons/superhero.svg +45 -0
  630. package/static/media/image-editor/images/stickers/emoticons/surprised-1.svg +47 -0
  631. package/static/media/image-editor/images/stickers/emoticons/surprised.svg +58 -0
  632. package/static/media/image-editor/images/stickers/emoticons/thinking.svg +43 -0
  633. package/static/media/image-editor/images/stickers/emoticons/tired-1.svg +78 -0
  634. package/static/media/image-editor/images/stickers/emoticons/tired-2.svg +65 -0
  635. package/static/media/image-editor/images/stickers/emoticons/tired-3.svg +59 -0
  636. package/static/media/image-editor/images/stickers/emoticons/tired.svg +83 -0
  637. package/static/media/image-editor/images/stickers/emoticons/tough-1.svg +65 -0
  638. package/static/media/image-editor/images/stickers/emoticons/tough.svg +158 -0
  639. package/static/media/image-editor/images/stickers/emoticons/trendy.svg +57 -0
  640. package/static/media/image-editor/images/stickers/emoticons/vampire-1.svg +56 -0
  641. package/static/media/image-editor/images/stickers/emoticons/vampire.svg +59 -0
  642. package/static/media/image-editor/images/stickers/emoticons/wink-1.svg +54 -0
  643. package/static/media/image-editor/images/stickers/emoticons/wink-2.svg +64 -0
  644. package/static/media/image-editor/images/stickers/emoticons/wink.svg +73 -0
  645. package/static/media/image-editor/images/stickers/emoticons/winking-1.svg +52 -0
  646. package/static/media/image-editor/images/stickers/emoticons/winking.svg +43 -0
  647. package/static/media/image-editor/images/stickers/emoticons/yawning-1.svg +62 -0
  648. package/static/media/image-editor/images/stickers/emoticons/yawning-2.svg +51 -0
  649. package/static/media/image-editor/images/stickers/emoticons/yawning-3.svg +51 -0
  650. package/static/media/image-editor/images/stickers/emoticons/yawning.svg +73 -0
  651. package/static/media/image-editor/images/stickers/emoticons/yelling.svg +80 -0
  652. package/static/media/image-editor/images/stickers/emoticons/zombie.svg +65 -0
  653. package/static/media/image-editor/images/stickers/landmarks/0.svg +38 -0
  654. package/static/media/image-editor/images/stickers/landmarks/1.svg +46 -0
  655. package/static/media/image-editor/images/stickers/landmarks/10.svg +18 -0
  656. package/static/media/image-editor/images/stickers/landmarks/11.svg +81 -0
  657. package/static/media/image-editor/images/stickers/landmarks/12.svg +77 -0
  658. package/static/media/image-editor/images/stickers/landmarks/13.svg +42 -0
  659. package/static/media/image-editor/images/stickers/landmarks/14.svg +78 -0
  660. package/static/media/image-editor/images/stickers/landmarks/15.svg +84 -0
  661. package/static/media/image-editor/images/stickers/landmarks/16.svg +87 -0
  662. package/static/media/image-editor/images/stickers/landmarks/17.svg +60 -0
  663. package/static/media/image-editor/images/stickers/landmarks/18.svg +30 -0
  664. package/static/media/image-editor/images/stickers/landmarks/19.svg +36 -0
  665. package/static/media/image-editor/images/stickers/landmarks/2.svg +28 -0
  666. package/static/media/image-editor/images/stickers/landmarks/20.svg +137 -0
  667. package/static/media/image-editor/images/stickers/landmarks/21.svg +63 -0
  668. package/static/media/image-editor/images/stickers/landmarks/22.svg +26 -0
  669. package/static/media/image-editor/images/stickers/landmarks/23.svg +52 -0
  670. package/static/media/image-editor/images/stickers/landmarks/24.svg +56 -0
  671. package/static/media/image-editor/images/stickers/landmarks/25.svg +40 -0
  672. package/static/media/image-editor/images/stickers/landmarks/26.svg +34 -0
  673. package/static/media/image-editor/images/stickers/landmarks/27.svg +32 -0
  674. package/static/media/image-editor/images/stickers/landmarks/28.svg +19 -0
  675. package/static/media/image-editor/images/stickers/landmarks/29.svg +23 -0
  676. package/static/media/image-editor/images/stickers/landmarks/3.svg +36 -0
  677. package/static/media/image-editor/images/stickers/landmarks/30.svg +36 -0
  678. package/static/media/image-editor/images/stickers/landmarks/31.svg +27 -0
  679. package/static/media/image-editor/images/stickers/landmarks/32.svg +25 -0
  680. package/static/media/image-editor/images/stickers/landmarks/33.svg +29 -0
  681. package/static/media/image-editor/images/stickers/landmarks/34.svg +72 -0
  682. package/static/media/image-editor/images/stickers/landmarks/35.svg +18 -0
  683. package/static/media/image-editor/images/stickers/landmarks/36.svg +45 -0
  684. package/static/media/image-editor/images/stickers/landmarks/37.svg +46 -0
  685. package/static/media/image-editor/images/stickers/landmarks/38.svg +44 -0
  686. package/static/media/image-editor/images/stickers/landmarks/39.svg +23 -0
  687. package/static/media/image-editor/images/stickers/landmarks/4.svg +33 -0
  688. package/static/media/image-editor/images/stickers/landmarks/40.svg +25 -0
  689. package/static/media/image-editor/images/stickers/landmarks/41.svg +69 -0
  690. package/static/media/image-editor/images/stickers/landmarks/42.svg +75 -0
  691. package/static/media/image-editor/images/stickers/landmarks/43.svg +44 -0
  692. package/static/media/image-editor/images/stickers/landmarks/44.svg +65 -0
  693. package/static/media/image-editor/images/stickers/landmarks/45.svg +19 -0
  694. package/static/media/image-editor/images/stickers/landmarks/46.svg +47 -0
  695. package/static/media/image-editor/images/stickers/landmarks/47.svg +544 -0
  696. package/static/media/image-editor/images/stickers/landmarks/48.svg +162 -0
  697. package/static/media/image-editor/images/stickers/landmarks/49.svg +70 -0
  698. package/static/media/image-editor/images/stickers/landmarks/5.svg +36 -0
  699. package/static/media/image-editor/images/stickers/landmarks/50.svg +52 -0
  700. package/static/media/image-editor/images/stickers/landmarks/51.svg +110 -0
  701. package/static/media/image-editor/images/stickers/landmarks/52.svg +41 -0
  702. package/static/media/image-editor/images/stickers/landmarks/53.svg +74 -0
  703. package/static/media/image-editor/images/stickers/landmarks/54.svg +36 -0
  704. package/static/media/image-editor/images/stickers/landmarks/55.svg +84 -0
  705. package/static/media/image-editor/images/stickers/landmarks/56.svg +93 -0
  706. package/static/media/image-editor/images/stickers/landmarks/57.svg +67 -0
  707. package/static/media/image-editor/images/stickers/landmarks/58.svg +101 -0
  708. package/static/media/image-editor/images/stickers/landmarks/59.svg +47 -0
  709. package/static/media/image-editor/images/stickers/landmarks/6.svg +59 -0
  710. package/static/media/image-editor/images/stickers/landmarks/60.svg +134 -0
  711. package/static/media/image-editor/images/stickers/landmarks/61.svg +79 -0
  712. package/static/media/image-editor/images/stickers/landmarks/62.svg +43 -0
  713. package/static/media/image-editor/images/stickers/landmarks/63.svg +83 -0
  714. package/static/media/image-editor/images/stickers/landmarks/64.svg +99 -0
  715. package/static/media/image-editor/images/stickers/landmarks/65.svg +79 -0
  716. package/static/media/image-editor/images/stickers/landmarks/66.svg +37 -0
  717. package/static/media/image-editor/images/stickers/landmarks/67.svg +82 -0
  718. package/static/media/image-editor/images/stickers/landmarks/68.svg +216 -0
  719. package/static/media/image-editor/images/stickers/landmarks/69.svg +17 -0
  720. package/static/media/image-editor/images/stickers/landmarks/7.svg +16 -0
  721. package/static/media/image-editor/images/stickers/landmarks/70.svg +45 -0
  722. package/static/media/image-editor/images/stickers/landmarks/71.svg +37 -0
  723. package/static/media/image-editor/images/stickers/landmarks/72.svg +28 -0
  724. package/static/media/image-editor/images/stickers/landmarks/73.svg +25 -0
  725. package/static/media/image-editor/images/stickers/landmarks/74.svg +23 -0
  726. package/static/media/image-editor/images/stickers/landmarks/75.svg +88 -0
  727. package/static/media/image-editor/images/stickers/landmarks/76.svg +25 -0
  728. package/static/media/image-editor/images/stickers/landmarks/77.svg +23 -0
  729. package/static/media/image-editor/images/stickers/landmarks/78.svg +63 -0
  730. package/static/media/image-editor/images/stickers/landmarks/79.svg +25 -0
  731. package/static/media/image-editor/images/stickers/landmarks/8.svg +52 -0
  732. package/static/media/image-editor/images/stickers/landmarks/80.svg +29 -0
  733. package/static/media/image-editor/images/stickers/landmarks/81.svg +44 -0
  734. package/static/media/image-editor/images/stickers/landmarks/82.svg +83 -0
  735. package/static/media/image-editor/images/stickers/landmarks/83.svg +65 -0
  736. package/static/media/image-editor/images/stickers/landmarks/84.svg +31 -0
  737. package/static/media/image-editor/images/stickers/landmarks/85.svg +30 -0
  738. package/static/media/image-editor/images/stickers/landmarks/86.svg +26 -0
  739. package/static/media/image-editor/images/stickers/landmarks/87.svg +132 -0
  740. package/static/media/image-editor/images/stickers/landmarks/88.svg +93 -0
  741. package/static/media/image-editor/images/stickers/landmarks/89.svg +91 -0
  742. package/static/media/image-editor/images/stickers/landmarks/9.svg +70 -0
  743. package/static/media/image-editor/images/stickers/landmarks/90.svg +65 -0
  744. package/static/media/image-editor/images/stickers/landmarks/91.svg +36 -0
  745. package/static/media/image-editor/images/stickers/landmarks/92.svg +66 -0
  746. package/static/media/image-editor/images/stickers/landmarks/93.svg +65 -0
  747. package/static/media/image-editor/images/stickers/landmarks/94.svg +28 -0
  748. package/static/media/image-editor/images/stickers/landmarks/95.svg +31 -0
  749. package/static/media/image-editor/images/stickers/landmarks/96.svg +25 -0
  750. package/static/media/image-editor/images/stickers/landmarks/97.svg +31 -0
  751. package/static/media/image-editor/images/stickers/landmarks/98.svg +52 -0
  752. package/static/media/image-editor/images/stickers/landmarks/99.svg +56 -0
  753. package/static/media/image-editor/images/stickers/stars/0.png +0 -0
  754. package/static/media/image-editor/images/stickers/stars/1.png +0 -0
  755. package/static/media/image-editor/images/stickers/stars/2.png +0 -0
  756. package/static/media/image-editor/images/stickers/stars/3.png +0 -0
  757. package/static/media/image-editor/images/stickers/stars/4.png +0 -0
  758. package/static/media/image-editor/images/stickers/stars/5.png +0 -0
  759. package/static/media/image-editor/images/stickers/transportation/0.svg +26 -0
  760. package/static/media/image-editor/images/stickers/transportation/1.svg +10 -0
  761. package/static/media/image-editor/images/stickers/transportation/10.svg +16 -0
  762. package/static/media/image-editor/images/stickers/transportation/11.svg +30 -0
  763. package/static/media/image-editor/images/stickers/transportation/12.svg +22 -0
  764. package/static/media/image-editor/images/stickers/transportation/13.svg +24 -0
  765. package/static/media/image-editor/images/stickers/transportation/14.svg +19 -0
  766. package/static/media/image-editor/images/stickers/transportation/15.svg +23 -0
  767. package/static/media/image-editor/images/stickers/transportation/16.svg +25 -0
  768. package/static/media/image-editor/images/stickers/transportation/17.svg +34 -0
  769. package/static/media/image-editor/images/stickers/transportation/18.svg +29 -0
  770. package/static/media/image-editor/images/stickers/transportation/19.svg +24 -0
  771. package/static/media/image-editor/images/stickers/transportation/2.svg +27 -0
  772. package/static/media/image-editor/images/stickers/transportation/20.svg +25 -0
  773. package/static/media/image-editor/images/stickers/transportation/21.svg +22 -0
  774. package/static/media/image-editor/images/stickers/transportation/3.svg +18 -0
  775. package/static/media/image-editor/images/stickers/transportation/4.svg +24 -0
  776. package/static/media/image-editor/images/stickers/transportation/5.svg +15 -0
  777. package/static/media/image-editor/images/stickers/transportation/6.svg +25 -0
  778. package/static/media/image-editor/images/stickers/transportation/7.svg +17 -0
  779. package/static/media/image-editor/images/stickers/transportation/8.svg +28 -0
  780. package/static/media/image-editor/images/stickers/transportation/9.svg +23 -0
  781. package/static/media/image-editor/images/textures/0.png +0 -0
  782. package/static/media/image-editor/images/textures/1.png +0 -0
  783. package/static/media/image-editor/images/textures/10.png +0 -0
  784. package/static/media/image-editor/images/textures/11.png +0 -0
  785. package/static/media/image-editor/images/textures/12.png +0 -0
  786. package/static/media/image-editor/images/textures/13.png +0 -0
  787. package/static/media/image-editor/images/textures/14.png +0 -0
  788. package/static/media/image-editor/images/textures/15.png +0 -0
  789. package/static/media/image-editor/images/textures/16.png +0 -0
  790. package/static/media/image-editor/images/textures/17.png +0 -0
  791. package/static/media/image-editor/images/textures/18.png +0 -0
  792. package/static/media/image-editor/images/textures/19.png +0 -0
  793. package/static/media/image-editor/images/textures/2.png +0 -0
  794. package/static/media/image-editor/images/textures/20.png +0 -0
  795. package/static/media/image-editor/images/textures/21.png +0 -0
  796. package/static/media/image-editor/images/textures/22.png +0 -0
  797. package/static/media/image-editor/images/textures/23.png +0 -0
  798. package/static/media/image-editor/images/textures/24.png +0 -0
  799. package/static/media/image-editor/images/textures/25.png +0 -0
  800. package/static/media/image-editor/images/textures/26.png +0 -0
  801. package/static/media/image-editor/images/textures/27.png +0 -0
  802. package/static/media/image-editor/images/textures/28.png +0 -0
  803. package/static/media/image-editor/images/textures/3.png +0 -0
  804. package/static/media/image-editor/images/textures/4.png +0 -0
  805. package/static/media/image-editor/images/textures/5.png +0 -0
  806. package/static/media/image-editor/images/textures/6.png +0 -0
  807. package/static/media/image-editor/images/textures/7.png +0 -0
  808. package/static/media/image-editor/images/textures/8.png +0 -0
  809. package/static/media/image-editor/images/textures/9.png +0 -0
  810. package/two_step_headless_plugin.html +1 -1
  811. package/emailmaker-core.7f77c8e5.js +0 -663
  812. package/static/esm/176b4cb2.js +0 -131
  813. /package/iframe/{iframe-eblock.7f77c8e5.html → iframe-eblock.33dc7c79.html} +0 -0
  814. /package/iframe/{iframe.7f77c8e5.html → iframe.33dc7c79.html} +0 -0
package/emailmaker-esm.js CHANGED
@@ -1,16 +1,16 @@
1
- import { a as Ri, c as ht, d as Zt, i as b, l as Me, n as Ni, o as we, r as en, s as q, t as Fi, u as tn } from "./static/esm/e21389f1.js";
2
- import { a as k, i as nn, n as rn, r as De, t as R } from "./static/esm/176b4cb2.js";
3
- import { a as de, i as an, n as Q, o as bt, r as on, t as K } from "./static/esm/705e2770.js";
4
- import { t as ln } from "./static/esm/352121c5.js";
5
- import { useEffect as Re, useMemo as yt, useRef as sn, useState as Ne } from "@emailmaker/emailmaker/runtime/react";
1
+ import { a as Xr, c as lt, d as Rt, i as h, l as Pe, n as $r, o as Se, r as Nt, s as F, t as Wr, u as Bt } from "./static/esm/e21389f1.js";
2
+ import { a as P, i as Lt, n as Ft, r as ke, t as O } from "./static/esm/c951742a.js";
3
+ import { a as ae, i as jt, n as $, r as qt, t as W } from "./static/esm/b8792b4f.js";
4
+ import { t as Ut } from "./static/esm/352121c5.js";
5
+ import { useEffect as Ce, useMemo as st, useRef as Gt, useState as xe } from "@emailmaker/emailmaker/runtime/react";
6
6
  (function() {
7
7
  "use strict";
8
- var e = window.__emailmaker__ = window.__emailmaker__ || {};
9
- e.__facadeSentinel = "@shared-runtime:init-complete", __emailmaker__.publicPath || (__emailmaker__.publicPath = (function() {
8
+ var t = window.__emailmaker__ = window.__emailmaker__ || {};
9
+ t.__facadeSentinel = "@shared-runtime:init-complete", __emailmaker__.publicPath || (__emailmaker__.publicPath = (function() {
10
10
  var s = (function() {
11
11
  if (typeof document < "u" && document.querySelector) try {
12
- var d = document.querySelector("script[src*=\"emailmaker-esm.js\"]") || document.querySelector("script[src*=\"emailmaker.js\"]");
13
- if (d && d.src) return d.src.substring(0, d.src.lastIndexOf("/") + 1);
12
+ var u = document.querySelector("script[src*=\"emailmaker-esm.js\"]") || document.querySelector("script[src*=\"emailmaker.js\"]");
13
+ if (u && u.src) return u.src.substring(0, u.src.lastIndexOf("/") + 1);
14
14
  } catch {}
15
15
  try {
16
16
  var E = import.meta.url;
@@ -22,8 +22,8 @@ import { useEffect as Re, useMemo as yt, useRef as sn, useState as Ne } from "@e
22
22
  try {
23
23
  var l = String(s);
24
24
  if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(l) || l.indexOf("//") === 0) return l;
25
- var u = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
26
- return u ? new URL(l, u).href : l;
25
+ var d = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
26
+ return d ? new URL(l, d).href : l;
27
27
  } catch {
28
28
  return String(s);
29
29
  }
@@ -31,12 +31,12 @@ import { useEffect as Re, useMemo as yt, useRef as sn, useState as Ne } from "@e
31
31
  var l = s == null ? "" : String(s);
32
32
  l || (l = "./");
33
33
  try {
34
- var u = l;
35
- if (!/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(u) && u.indexOf("//") !== 0) {
36
- var d = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
37
- u = d ? new URL(u, d).href : u;
34
+ var d = l;
35
+ if (!/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(d) && d.indexOf("//") !== 0) {
36
+ var u = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
37
+ d = u ? new URL(d, u).href : d;
38
38
  }
39
- __emailmaker__.publicPath = u.charAt(u.length - 1) === "/" ? u : u + "/";
39
+ __emailmaker__.publicPath = d.charAt(d.length - 1) === "/" ? d : d + "/";
40
40
  } catch {
41
41
  __emailmaker__.publicPath = l;
42
42
  }
@@ -45,79 +45,79 @@ import { useEffect as Re, useMemo as yt, useRef as sn, useState as Ne } from "@e
45
45
  var s = String(__emailmaker__.publicPath || "");
46
46
  if (s.indexOf("file:") !== 0 && !(s && s !== "./")) try {
47
47
  if (typeof window < "u") {
48
- for (var u in window) if (!(u === "__emailmaker__" || !/^__[^_].*__$/.test(u))) {
49
- var d;
48
+ for (var d in window) if (!(d === "__emailmaker__" || !/^__[^_].*__$/.test(d))) {
49
+ var u;
50
50
  try {
51
- d = window[u];
51
+ u = window[d];
52
52
  } catch {
53
53
  continue;
54
54
  }
55
- if (d && typeof d == "object" && d.publicPath) {
56
- "" + u;
55
+ if (u && typeof u == "object" && u.publicPath) {
56
+ "" + d;
57
57
  break;
58
58
  }
59
59
  }
60
60
  }
61
61
  } catch {}
62
62
  })()), __emailmaker__.assetUrl || (__emailmaker__.assetUrl = function(s) {
63
- function l(w) {
63
+ function l(I) {
64
64
  try {
65
- var L = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
66
- return L ? new URL(String(w || ""), L).href : String(w || "");
65
+ var N = typeof document < "u" && document.baseURI ? document.baseURI : typeof window < "u" && window.location ? window.location.href : "";
66
+ return N ? new URL(String(I || ""), N).href : String(I || "");
67
67
  } catch {
68
- return String(w || "");
68
+ return String(I || "");
69
69
  }
70
70
  }
71
- var u = String(s || "");
72
- if (!u) return "";
73
- if (/^(?:data:|blob:)/.test(u)) return u;
74
- if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(u) || u.indexOf("//") === 0 || u.charAt(0) === "/") return l(u);
75
- var d = u.replace(/^\.\/+/, "").replace(/^\/+/, ""), E = "static/media".replace(/^\.\/+/, "").replace(/^\/+/, "").replace(/\/+$/, ""), g = E && d.indexOf(E + "/") !== 0 ? E + "/" + d : d, h = __emailmaker__.publicPath || "./";
71
+ var d = String(s || "");
72
+ if (!d) return "";
73
+ if (/^(?:data:|blob:)/.test(d)) return d;
74
+ if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(d) || d.indexOf("//") === 0 || d.charAt(0) === "/") return l(d);
75
+ var u = d.replace(/^\.\/+/, "").replace(/^\/+/, ""), E = "static/media".replace(/^\.\/+/, "").replace(/^\/+/, "").replace(/\/+$/, ""), g = E && u.indexOf(E + "/") !== 0 ? E + "/" + u : u, b = __emailmaker__.publicPath || "./";
76
76
  try {
77
- return new URL(g, h).href;
77
+ return new URL(g, b).href;
78
78
  } catch {
79
- return h.slice(-1) !== "/" && (h += "/"), l(h + g);
79
+ return b.slice(-1) !== "/" && (b += "/"), l(b + g);
80
80
  }
81
- }), e.version || (e.version = "1.1.45-alpha.1");
82
- var t = e.modules = /* @__PURE__ */ Object.create(null), n = import("./runtime/index.js"), r = import("./ui-kit/index.js");
83
- t.React = n.then(function(s) {
81
+ }), t.version || (t.version = "1.1.45");
82
+ var e = t.modules = /* @__PURE__ */ Object.create(null), n = import("./runtime/index.js"), r = import("./ui-kit/index.js");
83
+ e.React = n.then(function(s) {
84
84
  return s.React;
85
- }), t.ReactDom = n.then(function(s) {
85
+ }), e.ReactDom = n.then(function(s) {
86
86
  return s.ReactDom;
87
- }), t.ReactDomClient = n.then(function(s) {
87
+ }), e.ReactDomClient = n.then(function(s) {
88
88
  return s.ReactDomClient;
89
- }), t.ReactJsxRuntime = n.then(function(s) {
89
+ }), e.ReactJsxRuntime = n.then(function(s) {
90
90
  return s.ReactJsxRuntime;
91
- }), t.ReactJsxDevRuntime = n.then(function(s) {
91
+ }), e.ReactJsxDevRuntime = n.then(function(s) {
92
92
  return s.ReactJsxDevRuntime;
93
- }), t.PropTypes = n.then(function(s) {
93
+ }), e.PropTypes = n.then(function(s) {
94
94
  return s.PropTypes;
95
- }), t.ReactRouterDom = n.then(function(s) {
95
+ }), e.ReactRouterDom = n.then(function(s) {
96
96
  return s.ReactRouterDom;
97
- }), t.Antd = n.then(function(s) {
97
+ }), e.Antd = n.then(function(s) {
98
98
  return s.Antd;
99
- }), t.AntDesignIcons = n.then(function(s) {
99
+ }), e.AntDesignIcons = n.then(function(s) {
100
100
  return s.AntDesignIcons;
101
- }), t.AntDesignCssinjs = n.then(function(s) {
101
+ }), e.AntDesignCssinjs = n.then(function(s) {
102
102
  return s.AntDesignCssinjs;
103
- }), t.Classnames = n.then(function(s) {
103
+ }), e.Classnames = n.then(function(s) {
104
104
  return s.Classnames;
105
- }), t.Dayjs = n.then(function(s) {
105
+ }), e.Dayjs = n.then(function(s) {
106
106
  return s.Dayjs;
107
- }), t.Uuid = n.then(function(s) {
107
+ }), e.Uuid = n.then(function(s) {
108
108
  return s.Uuid;
109
- }), t.UiKit = r.then(function(s) {
109
+ }), e.UiKit = r.then(function(s) {
110
110
  return s.UiKit !== void 0 ? s.UiKit : s;
111
111
  });
112
112
  var i = Promise.all([n, r]).then(function(s) {
113
- var l = s[0] || /* @__PURE__ */ Object.create(null), u = /* @__PURE__ */ Object.create(null);
114
- for (var d in l) Object.prototype.hasOwnProperty.call(l, d) && (u[d] = l[d]);
113
+ var l = s[0] || /* @__PURE__ */ Object.create(null), d = /* @__PURE__ */ Object.create(null);
114
+ for (var u in l) Object.prototype.hasOwnProperty.call(l, u) && (d[u] = l[u]);
115
115
  var E = s[1] || /* @__PURE__ */ Object.create(null);
116
- u.UiKit = E.UiKit !== void 0 ? E.UiKit : E;
117
- for (var g in u) Object.prototype.hasOwnProperty.call(u, g) && (t[g] = u[g]);
118
- return u;
119
- }), a = t, o = i;
120
- if (typeof e.define != "function") new Function("__amdEnv", `/**
116
+ d.UiKit = E.UiKit !== void 0 ? E.UiKit : E;
117
+ for (var g in d) Object.prototype.hasOwnProperty.call(d, g) && (e[g] = d[g]);
118
+ return d;
119
+ }), a = e, o = i;
120
+ if (typeof t.define != "function") new Function("__amdEnv", `/**
121
121
  * Async AMD Loader (IIFE version for injection)
122
122
  *
123
123
  * This file is injected at the beginning of iframe entry points.
@@ -788,365 +788,365 @@ import { useEffect as Re, useMemo as yt, useRef as sn, useState as Ne } from "@e
788
788
  __amdEnv.require = require;
789
789
  __amdEnv.syncRequire = syncRequire;
790
790
  })();
791
- `)(e), typeof e.require == "function" && typeof e.require.config == "function" && e.require.config({
791
+ `)(t), typeof t.require == "function" && typeof t.require.config == "function" && t.require.config({
792
792
  baseUrl: "./",
793
- paths: { core: "emailmaker-core.7f77c8e5.js" }
793
+ paths: { core: "emailmaker-core.33dc7c79.js" }
794
794
  });
795
- var m = typeof e.prefetch == "function" ? e.prefetch : void 0;
796
- if (e.prefetch = function() {
795
+ var m = typeof t.prefetch == "function" ? t.prefetch : void 0;
796
+ if (t.prefetch = function() {
797
797
  return i.then(function() {
798
- if (typeof m == "function") return m.call(e);
798
+ if (typeof m == "function") return m.call(t);
799
799
  });
800
- }, typeof e.define == "function") {
800
+ }, typeof t.define == "function") {
801
801
  let s = function(l) {
802
802
  if (!l || typeof l != "object" && typeof l != "function" || l.__esModule) return l;
803
803
  if (p) {
804
- var u = p.get(l);
805
- if (u) return u;
804
+ var d = p.get(l);
805
+ if (d) return d;
806
806
  }
807
- var d = /* @__PURE__ */ Object.create(null);
808
- Object.defineProperties(d, {
807
+ var u = /* @__PURE__ */ Object.create(null);
808
+ Object.defineProperties(u, {
809
809
  __esModule: { value: !0 },
810
810
  [Symbol.toStringTag]: { value: "Module" }
811
811
  });
812
812
  for (var E = Reflect.ownKeys(l), g = 0; g < E.length; g++) {
813
- var h = E[g];
814
- if (h !== "__esModule") {
815
- var w = Object.getOwnPropertyDescriptor(l, h);
816
- w && Object.defineProperty(d, h, w);
813
+ var b = E[g];
814
+ if (b !== "__esModule") {
815
+ var I = Object.getOwnPropertyDescriptor(l, b);
816
+ I && Object.defineProperty(u, b, I);
817
817
  }
818
818
  }
819
- return Object.prototype.hasOwnProperty.call(d, "default") || Object.defineProperty(d, "default", {
819
+ return Object.prototype.hasOwnProperty.call(u, "default") || Object.defineProperty(u, "default", {
820
820
  enumerable: !0,
821
821
  value: l,
822
822
  writable: !1
823
- }), p && p.set(l, d), d;
823
+ }), p && p.set(l, u), u;
824
824
  };
825
825
  var p = typeof WeakMap < "u" ? /* @__PURE__ */ new WeakMap() : null;
826
- e.define("react", [], function() {
826
+ t.define("react", [], function() {
827
827
  var l = a.React;
828
- return l && typeof l.then == "function" ? o.then(function(u) {
829
- var d = u.React;
830
- return s(d);
831
- }) : l !== void 0 ? s(l) : o.then(function(u) {
832
- var d = u.React;
833
- return s(d);
828
+ return l && typeof l.then == "function" ? o.then(function(d) {
829
+ var u = d.React;
830
+ return s(u);
831
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
832
+ var u = d.React;
833
+ return s(u);
834
834
  });
835
- }), e.define("@emailmaker/emailmaker/runtime/react", [], function() {
835
+ }), t.define("@emailmaker/emailmaker/runtime/react", [], function() {
836
836
  var l = a.React;
837
- return l && typeof l.then == "function" ? o.then(function(u) {
838
- var d = u.React;
839
- return s(d);
840
- }) : l !== void 0 ? s(l) : o.then(function(u) {
841
- var d = u.React;
842
- return s(d);
837
+ return l && typeof l.then == "function" ? o.then(function(d) {
838
+ var u = d.React;
839
+ return s(u);
840
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
841
+ var u = d.React;
842
+ return s(u);
843
843
  });
844
- }), e.define("react-dom", [], function() {
844
+ }), t.define("react-dom", [], function() {
845
845
  var l = a.ReactDom;
846
- return l && typeof l.then == "function" ? o.then(function(u) {
847
- var d = u.ReactDom;
848
- return s(d);
849
- }) : l !== void 0 ? s(l) : o.then(function(u) {
850
- var d = u.ReactDom;
851
- return s(d);
846
+ return l && typeof l.then == "function" ? o.then(function(d) {
847
+ var u = d.ReactDom;
848
+ return s(u);
849
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
850
+ var u = d.ReactDom;
851
+ return s(u);
852
852
  });
853
- }), e.define("@emailmaker/emailmaker/runtime/react-dom", [], function() {
853
+ }), t.define("@emailmaker/emailmaker/runtime/react-dom", [], function() {
854
854
  var l = a.ReactDom;
855
- return l && typeof l.then == "function" ? o.then(function(u) {
856
- var d = u.ReactDom;
857
- return s(d);
858
- }) : l !== void 0 ? s(l) : o.then(function(u) {
859
- var d = u.ReactDom;
860
- return s(d);
855
+ return l && typeof l.then == "function" ? o.then(function(d) {
856
+ var u = d.ReactDom;
857
+ return s(u);
858
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
859
+ var u = d.ReactDom;
860
+ return s(u);
861
861
  });
862
- }), e.define("react-dom/client", [], function() {
862
+ }), t.define("react-dom/client", [], function() {
863
863
  var l = a.ReactDomClient;
864
- return l && typeof l.then == "function" ? o.then(function(u) {
865
- var d = u.ReactDomClient;
866
- return s(d);
867
- }) : l !== void 0 ? s(l) : o.then(function(u) {
868
- var d = u.ReactDomClient;
869
- return s(d);
864
+ return l && typeof l.then == "function" ? o.then(function(d) {
865
+ var u = d.ReactDomClient;
866
+ return s(u);
867
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
868
+ var u = d.ReactDomClient;
869
+ return s(u);
870
870
  });
871
- }), e.define("@emailmaker/emailmaker/runtime/react-dom/client", [], function() {
871
+ }), t.define("@emailmaker/emailmaker/runtime/react-dom/client", [], function() {
872
872
  var l = a.ReactDomClient;
873
- return l && typeof l.then == "function" ? o.then(function(u) {
874
- var d = u.ReactDomClient;
875
- return s(d);
876
- }) : l !== void 0 ? s(l) : o.then(function(u) {
877
- var d = u.ReactDomClient;
878
- return s(d);
873
+ return l && typeof l.then == "function" ? o.then(function(d) {
874
+ var u = d.ReactDomClient;
875
+ return s(u);
876
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
877
+ var u = d.ReactDomClient;
878
+ return s(u);
879
879
  });
880
- }), e.define("react/jsx-runtime", [], function() {
880
+ }), t.define("react/jsx-runtime", [], function() {
881
881
  var l = a.ReactJsxRuntime;
882
- return l && typeof l.then == "function" ? o.then(function(u) {
883
- var d = u.ReactJsxRuntime;
884
- return s(d);
885
- }) : l !== void 0 ? s(l) : o.then(function(u) {
886
- var d = u.ReactJsxRuntime;
887
- return s(d);
882
+ return l && typeof l.then == "function" ? o.then(function(d) {
883
+ var u = d.ReactJsxRuntime;
884
+ return s(u);
885
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
886
+ var u = d.ReactJsxRuntime;
887
+ return s(u);
888
888
  });
889
- }), e.define("@emailmaker/emailmaker/runtime/react/jsx-runtime", [], function() {
889
+ }), t.define("@emailmaker/emailmaker/runtime/react/jsx-runtime", [], function() {
890
890
  var l = a.ReactJsxRuntime;
891
- return l && typeof l.then == "function" ? o.then(function(u) {
892
- var d = u.ReactJsxRuntime;
893
- return s(d);
894
- }) : l !== void 0 ? s(l) : o.then(function(u) {
895
- var d = u.ReactJsxRuntime;
896
- return s(d);
891
+ return l && typeof l.then == "function" ? o.then(function(d) {
892
+ var u = d.ReactJsxRuntime;
893
+ return s(u);
894
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
895
+ var u = d.ReactJsxRuntime;
896
+ return s(u);
897
897
  });
898
- }), e.define("react/jsx-dev-runtime", [], function() {
898
+ }), t.define("react/jsx-dev-runtime", [], function() {
899
899
  var l = a.ReactJsxDevRuntime;
900
- return l && typeof l.then == "function" ? o.then(function(u) {
901
- var d = u.ReactJsxDevRuntime;
902
- return s(d);
903
- }) : l !== void 0 ? s(l) : o.then(function(u) {
904
- var d = u.ReactJsxDevRuntime;
905
- return s(d);
900
+ return l && typeof l.then == "function" ? o.then(function(d) {
901
+ var u = d.ReactJsxDevRuntime;
902
+ return s(u);
903
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
904
+ var u = d.ReactJsxDevRuntime;
905
+ return s(u);
906
906
  });
907
- }), e.define("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", [], function() {
907
+ }), t.define("@emailmaker/emailmaker/runtime/react/jsx-dev-runtime", [], function() {
908
908
  var l = a.ReactJsxDevRuntime;
909
- return l && typeof l.then == "function" ? o.then(function(u) {
910
- var d = u.ReactJsxDevRuntime;
911
- return s(d);
912
- }) : l !== void 0 ? s(l) : o.then(function(u) {
913
- var d = u.ReactJsxDevRuntime;
914
- return s(d);
909
+ return l && typeof l.then == "function" ? o.then(function(d) {
910
+ var u = d.ReactJsxDevRuntime;
911
+ return s(u);
912
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
913
+ var u = d.ReactJsxDevRuntime;
914
+ return s(u);
915
915
  });
916
- }), e.define("prop-types", [], function() {
916
+ }), t.define("prop-types", [], function() {
917
917
  var l = a.PropTypes;
918
- return l && typeof l.then == "function" ? o.then(function(u) {
919
- var d = u.PropTypes;
920
- return s(d);
921
- }) : l !== void 0 ? s(l) : o.then(function(u) {
922
- var d = u.PropTypes;
923
- return s(d);
918
+ return l && typeof l.then == "function" ? o.then(function(d) {
919
+ var u = d.PropTypes;
920
+ return s(u);
921
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
922
+ var u = d.PropTypes;
923
+ return s(u);
924
924
  });
925
- }), e.define("@emailmaker/emailmaker/runtime/prop-types", [], function() {
925
+ }), t.define("@emailmaker/emailmaker/runtime/prop-types", [], function() {
926
926
  var l = a.PropTypes;
927
- return l && typeof l.then == "function" ? o.then(function(u) {
928
- var d = u.PropTypes;
929
- return s(d);
930
- }) : l !== void 0 ? s(l) : o.then(function(u) {
931
- var d = u.PropTypes;
932
- return s(d);
927
+ return l && typeof l.then == "function" ? o.then(function(d) {
928
+ var u = d.PropTypes;
929
+ return s(u);
930
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
931
+ var u = d.PropTypes;
932
+ return s(u);
933
933
  });
934
- }), e.define("react-router-dom", [], function() {
934
+ }), t.define("react-router-dom", [], function() {
935
935
  var l = a.ReactRouterDom;
936
- return l && typeof l.then == "function" ? o.then(function(u) {
937
- var d = u.ReactRouterDom;
938
- return s(d);
939
- }) : l !== void 0 ? s(l) : o.then(function(u) {
940
- var d = u.ReactRouterDom;
941
- return s(d);
936
+ return l && typeof l.then == "function" ? o.then(function(d) {
937
+ var u = d.ReactRouterDom;
938
+ return s(u);
939
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
940
+ var u = d.ReactRouterDom;
941
+ return s(u);
942
942
  });
943
- }), e.define("@emailmaker/emailmaker/runtime/react-router-dom", [], function() {
943
+ }), t.define("@emailmaker/emailmaker/runtime/react-router-dom", [], function() {
944
944
  var l = a.ReactRouterDom;
945
- return l && typeof l.then == "function" ? o.then(function(u) {
946
- var d = u.ReactRouterDom;
947
- return s(d);
948
- }) : l !== void 0 ? s(l) : o.then(function(u) {
949
- var d = u.ReactRouterDom;
950
- return s(d);
945
+ return l && typeof l.then == "function" ? o.then(function(d) {
946
+ var u = d.ReactRouterDom;
947
+ return s(u);
948
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
949
+ var u = d.ReactRouterDom;
950
+ return s(u);
951
951
  });
952
- }), e.define("antd", [], function() {
952
+ }), t.define("antd", [], function() {
953
953
  var l = a.Antd;
954
- return l && typeof l.then == "function" ? o.then(function(u) {
955
- var d = u.Antd;
956
- return s(d);
957
- }) : l !== void 0 ? s(l) : o.then(function(u) {
958
- var d = u.Antd;
959
- return s(d);
954
+ return l && typeof l.then == "function" ? o.then(function(d) {
955
+ var u = d.Antd;
956
+ return s(u);
957
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
958
+ var u = d.Antd;
959
+ return s(u);
960
960
  });
961
- }), e.define("@emailmaker/emailmaker/runtime/antd", [], function() {
961
+ }), t.define("@emailmaker/emailmaker/runtime/antd", [], function() {
962
962
  var l = a.Antd;
963
- return l && typeof l.then == "function" ? o.then(function(u) {
964
- var d = u.Antd;
965
- return s(d);
966
- }) : l !== void 0 ? s(l) : o.then(function(u) {
967
- var d = u.Antd;
968
- return s(d);
963
+ return l && typeof l.then == "function" ? o.then(function(d) {
964
+ var u = d.Antd;
965
+ return s(u);
966
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
967
+ var u = d.Antd;
968
+ return s(u);
969
969
  });
970
- }), e.define("@ant-design/icons", [], function() {
970
+ }), t.define("@ant-design/icons", [], function() {
971
971
  var l = a.AntDesignIcons;
972
- return l && typeof l.then == "function" ? o.then(function(u) {
973
- var d = u.AntDesignIcons;
974
- return s(d);
975
- }) : l !== void 0 ? s(l) : o.then(function(u) {
976
- var d = u.AntDesignIcons;
977
- return s(d);
972
+ return l && typeof l.then == "function" ? o.then(function(d) {
973
+ var u = d.AntDesignIcons;
974
+ return s(u);
975
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
976
+ var u = d.AntDesignIcons;
977
+ return s(u);
978
978
  });
979
- }), e.define("@emailmaker/emailmaker/runtime/@ant-design/icons", [], function() {
979
+ }), t.define("@emailmaker/emailmaker/runtime/@ant-design/icons", [], function() {
980
980
  var l = a.AntDesignIcons;
981
- return l && typeof l.then == "function" ? o.then(function(u) {
982
- var d = u.AntDesignIcons;
983
- return s(d);
984
- }) : l !== void 0 ? s(l) : o.then(function(u) {
985
- var d = u.AntDesignIcons;
986
- return s(d);
981
+ return l && typeof l.then == "function" ? o.then(function(d) {
982
+ var u = d.AntDesignIcons;
983
+ return s(u);
984
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
985
+ var u = d.AntDesignIcons;
986
+ return s(u);
987
987
  });
988
- }), e.define("@ant-design/cssinjs", [], function() {
988
+ }), t.define("@ant-design/cssinjs", [], function() {
989
989
  var l = a.AntDesignCssinjs;
990
- return l && typeof l.then == "function" ? o.then(function(u) {
991
- var d = u.AntDesignCssinjs;
992
- return s(d);
993
- }) : l !== void 0 ? s(l) : o.then(function(u) {
994
- var d = u.AntDesignCssinjs;
995
- return s(d);
990
+ return l && typeof l.then == "function" ? o.then(function(d) {
991
+ var u = d.AntDesignCssinjs;
992
+ return s(u);
993
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
994
+ var u = d.AntDesignCssinjs;
995
+ return s(u);
996
996
  });
997
- }), e.define("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", [], function() {
997
+ }), t.define("@emailmaker/emailmaker/runtime/@ant-design/cssinjs", [], function() {
998
998
  var l = a.AntDesignCssinjs;
999
- return l && typeof l.then == "function" ? o.then(function(u) {
1000
- var d = u.AntDesignCssinjs;
1001
- return s(d);
1002
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1003
- var d = u.AntDesignCssinjs;
1004
- return s(d);
999
+ return l && typeof l.then == "function" ? o.then(function(d) {
1000
+ var u = d.AntDesignCssinjs;
1001
+ return s(u);
1002
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1003
+ var u = d.AntDesignCssinjs;
1004
+ return s(u);
1005
1005
  });
1006
- }), e.define("classnames", [], function() {
1006
+ }), t.define("classnames", [], function() {
1007
1007
  var l = a.Classnames;
1008
- return l && typeof l.then == "function" ? o.then(function(u) {
1009
- var d = u.Classnames;
1010
- return s(d);
1011
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1012
- var d = u.Classnames;
1013
- return s(d);
1008
+ return l && typeof l.then == "function" ? o.then(function(d) {
1009
+ var u = d.Classnames;
1010
+ return s(u);
1011
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1012
+ var u = d.Classnames;
1013
+ return s(u);
1014
1014
  });
1015
- }), e.define("@emailmaker/emailmaker/runtime/classnames", [], function() {
1015
+ }), t.define("@emailmaker/emailmaker/runtime/classnames", [], function() {
1016
1016
  var l = a.Classnames;
1017
- return l && typeof l.then == "function" ? o.then(function(u) {
1018
- var d = u.Classnames;
1019
- return s(d);
1020
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1021
- var d = u.Classnames;
1022
- return s(d);
1017
+ return l && typeof l.then == "function" ? o.then(function(d) {
1018
+ var u = d.Classnames;
1019
+ return s(u);
1020
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1021
+ var u = d.Classnames;
1022
+ return s(u);
1023
1023
  });
1024
- }), e.define("dayjs", [], function() {
1024
+ }), t.define("dayjs", [], function() {
1025
1025
  var l = a.Dayjs;
1026
- return l && typeof l.then == "function" ? o.then(function(u) {
1027
- var d = u.Dayjs;
1028
- return s(d);
1029
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1030
- var d = u.Dayjs;
1031
- return s(d);
1026
+ return l && typeof l.then == "function" ? o.then(function(d) {
1027
+ var u = d.Dayjs;
1028
+ return s(u);
1029
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1030
+ var u = d.Dayjs;
1031
+ return s(u);
1032
1032
  });
1033
- }), e.define("@emailmaker/emailmaker/runtime/dayjs", [], function() {
1033
+ }), t.define("@emailmaker/emailmaker/runtime/dayjs", [], function() {
1034
1034
  var l = a.Dayjs;
1035
- return l && typeof l.then == "function" ? o.then(function(u) {
1036
- var d = u.Dayjs;
1037
- return s(d);
1038
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1039
- var d = u.Dayjs;
1040
- return s(d);
1035
+ return l && typeof l.then == "function" ? o.then(function(d) {
1036
+ var u = d.Dayjs;
1037
+ return s(u);
1038
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1039
+ var u = d.Dayjs;
1040
+ return s(u);
1041
1041
  });
1042
- }), e.define("uuid", [], function() {
1042
+ }), t.define("uuid", [], function() {
1043
1043
  var l = a.Uuid;
1044
- return l && typeof l.then == "function" ? o.then(function(u) {
1045
- var d = u.Uuid;
1046
- return s(d);
1047
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1048
- var d = u.Uuid;
1049
- return s(d);
1044
+ return l && typeof l.then == "function" ? o.then(function(d) {
1045
+ var u = d.Uuid;
1046
+ return s(u);
1047
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1048
+ var u = d.Uuid;
1049
+ return s(u);
1050
1050
  });
1051
- }), e.define("@emailmaker/emailmaker/runtime/uuid", [], function() {
1051
+ }), t.define("@emailmaker/emailmaker/runtime/uuid", [], function() {
1052
1052
  var l = a.Uuid;
1053
- return l && typeof l.then == "function" ? o.then(function(u) {
1054
- var d = u.Uuid;
1055
- return s(d);
1056
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1057
- var d = u.Uuid;
1058
- return s(d);
1053
+ return l && typeof l.then == "function" ? o.then(function(d) {
1054
+ var u = d.Uuid;
1055
+ return s(u);
1056
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1057
+ var u = d.Uuid;
1058
+ return s(u);
1059
1059
  });
1060
- }), e.define("@emailmaker/ui-kit", [], function() {
1060
+ }), t.define("@emailmaker/ui-kit", [], function() {
1061
1061
  var l = a.UiKit;
1062
- return l && typeof l.then == "function" ? o.then(function(u) {
1063
- var d = u.UiKit;
1064
- return s(d);
1065
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1066
- var d = u.UiKit;
1067
- return s(d);
1062
+ return l && typeof l.then == "function" ? o.then(function(d) {
1063
+ var u = d.UiKit;
1064
+ return s(u);
1065
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1066
+ var u = d.UiKit;
1067
+ return s(u);
1068
1068
  });
1069
- }), e.define("@emailmaker/emailmaker/ui-kit", [], function() {
1069
+ }), t.define("@emailmaker/emailmaker/ui-kit", [], function() {
1070
1070
  var l = a.UiKit;
1071
- return l && typeof l.then == "function" ? o.then(function(u) {
1072
- var d = u.UiKit;
1073
- return s(d);
1074
- }) : l !== void 0 ? s(l) : o.then(function(u) {
1075
- var d = u.UiKit;
1076
- return s(d);
1071
+ return l && typeof l.then == "function" ? o.then(function(d) {
1072
+ var u = d.UiKit;
1073
+ return s(u);
1074
+ }) : l !== void 0 ? s(l) : o.then(function(d) {
1075
+ var u = d.UiKit;
1076
+ return s(u);
1077
1077
  });
1078
1078
  });
1079
1079
  }
1080
1080
  globalThis.__SHARED_RUNTIME_INIT_SENTINEL__ = "@shared-runtime:init-complete";
1081
1081
  })();
1082
- var me = null, un = "core";
1083
- function dn() {
1084
- return typeof window.__emailmaker__?.require != "function" ? Promise.reject(/* @__PURE__ */ new Error("[loadEngine] AMD loader is unavailable")) : new Promise((e, t) => {
1085
- window.__emailmaker__.require([un], (n) => e(n), (n) => t(n instanceof Error ? n : /* @__PURE__ */ new Error("[loadEngine] Failed to require core module")));
1082
+ var se = null, zt = "core";
1083
+ function Vt() {
1084
+ return typeof window.__emailmaker__?.require != "function" ? Promise.reject(/* @__PURE__ */ new Error("[loadEngine] AMD loader is unavailable")) : new Promise((t, e) => {
1085
+ window.__emailmaker__.require([zt], (n) => t(n), (n) => e(n instanceof Error ? n : /* @__PURE__ */ new Error("[loadEngine] Failed to require core module")));
1086
1086
  });
1087
1087
  }
1088
- function Fe() {
1089
- return me || (me = dn()), me;
1088
+ function Me() {
1089
+ return se || (se = Vt()), se;
1090
1090
  }
1091
- var pe = null, _e = null;
1092
- async function cn(e) {
1093
- typeof e?.prefetch == "function" && await e.prefetch();
1091
+ var de = null, ue = null;
1092
+ async function Ht(t) {
1093
+ typeof t?.prefetch == "function" && await t.prefetch();
1094
1094
  }
1095
- function vt() {
1096
- return pe || (pe = Fe().then(() => {})), pe;
1095
+ function dt() {
1096
+ return de || (de = Me().then(() => {})), de;
1097
1097
  }
1098
- function Le(e) {
1099
- return _e || (_e = cn(e)), _e;
1098
+ function De(t) {
1099
+ return ue || (ue = Ht(t)), ue;
1100
1100
  }
1101
- function St(e) {
1102
- return Promise.all([vt(), Le(e)]).then(() => {});
1101
+ function ut(t) {
1102
+ return Promise.all([dt(), De(t)]).then(() => {});
1103
1103
  }
1104
- function fn(e) {
1105
- const t = e?.startupPrefetchMode;
1106
- return t === "eager" || t === "idle" || t === "manual" || t === "off" ? t : "eager";
1104
+ function Xt(t) {
1105
+ const e = t?.startupPrefetchMode;
1106
+ return e === "eager" || e === "idle" || e === "manual" || e === "off" ? e : "eager";
1107
1107
  }
1108
- function Ee(e) {
1109
- Promise.resolve().then(() => St(e)).catch(() => {});
1108
+ function ce(t) {
1109
+ Promise.resolve().then(() => ut(t)).catch(() => {});
1110
1110
  }
1111
- function mn(e) {
1112
- Promise.resolve().then(() => Le(e)).catch(() => {});
1111
+ function $t(t) {
1112
+ Promise.resolve().then(() => De(t)).catch(() => {});
1113
1113
  }
1114
- function pn(e) {
1115
- const t = fn(e);
1116
- if (t === "eager") Ee(e);
1117
- else if (t === "idle") {
1114
+ function Wt(t) {
1115
+ const e = Xt(t);
1116
+ if (e === "eager") ce(t);
1117
+ else if (e === "idle") {
1118
1118
  const n = window.requestIdleCallback;
1119
- typeof n == "function" ? n(() => Ee(e), { timeout: 1500 }) : setTimeout(() => Ee(e), 0);
1119
+ typeof n == "function" ? n(() => ce(t), { timeout: 1500 }) : setTimeout(() => ce(t), 0);
1120
1120
  }
1121
1121
  }
1122
- var $ = /* @__PURE__ */ new WeakMap(), _n = "data-emailmaker-config-styles";
1123
- function En(e) {
1124
- return typeof e == "string" ? e.trim() : "";
1122
+ var H = /* @__PURE__ */ new WeakMap(), Qt = "data-emailmaker-config-styles";
1123
+ function Kt(t) {
1124
+ return typeof t == "string" ? t.trim() : "";
1125
1125
  }
1126
- function Xe(e, t) {
1127
- if (e.firstChild) {
1128
- e.insertBefore(t, e.firstChild);
1126
+ function Ue(t, e) {
1127
+ if (t.firstChild) {
1128
+ t.insertBefore(e, t.firstChild);
1129
1129
  return;
1130
1130
  }
1131
- e.appendChild(t);
1131
+ t.appendChild(e);
1132
1132
  }
1133
- function gn(e, t, n) {
1134
- if (!e || typeof document > "u") return null;
1135
- const r = En(t), i = $.get(e), a = n || e;
1136
- if (!r) return i && (i.remove(), $.delete(e)), null;
1137
- if (i) return i.textContent !== r && (i.textContent = r), (i.parentNode !== a || i !== a.firstChild) && Xe(a, i), i;
1133
+ function Jt(t, e, n) {
1134
+ if (!t || typeof document > "u") return null;
1135
+ const r = Kt(e), i = H.get(t), a = n || t;
1136
+ if (!r) return i && (i.remove(), H.delete(t)), null;
1137
+ if (i) return i.textContent !== r && (i.textContent = r), (i.parentNode !== a || i !== a.firstChild) && Ue(a, i), i;
1138
1138
  const o = document.createElement("style");
1139
- return o.setAttribute(_n, "true"), o.textContent = r, Xe(a, o), $.set(e, o), o;
1139
+ return o.setAttribute(Qt, "true"), o.textContent = r, Ue(a, o), H.set(t, o), o;
1140
1140
  }
1141
- function hn(e) {
1142
- if (!e) return;
1143
- const t = $.get(e);
1144
- t && (t.remove(), $.delete(e));
1141
+ function Yt(t) {
1142
+ if (!t) return;
1143
+ const e = H.get(t);
1144
+ e && (e.remove(), H.delete(t));
1145
1145
  }
1146
- function At() {
1146
+ function ct() {
1147
1147
  return !1;
1148
1148
  }
1149
- var bn = `
1149
+ var Zt = `
1150
1150
  .blocks-app-initial-spinner-wrapper {
1151
1151
  width: 100%;
1152
1152
  height: 100%;
@@ -1176,12 +1176,12 @@ var bn = `
1176
1176
  transform: rotate(360deg);
1177
1177
  }
1178
1178
  }`;
1179
- function yn() {
1179
+ function en() {
1180
1180
  return () => {};
1181
1181
  }
1182
- function vn(e, t) {
1183
- if (!At() || !e || typeof document > "u") return yn();
1184
- e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((o) => {
1182
+ function tn(t, e) {
1183
+ if (!ct() || !t || typeof document > "u") return en();
1184
+ t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((o) => {
1185
1185
  o.remove();
1186
1186
  });
1187
1187
  const n = document.createElement("div");
@@ -1189,343 +1189,286 @@ function vn(e, t) {
1189
1189
  const r = document.createElement("div");
1190
1190
  r.classList.add("blocks-app-initial-spinner"), n.appendChild(r);
1191
1191
  const i = document.createElement("style");
1192
- i.setAttribute(t, "true"), i.textContent = bn, document.head?.appendChild(i), e.appendChild(n);
1192
+ i.setAttribute(e, "true"), i.textContent = Zt, document.head?.appendChild(i), t.appendChild(n);
1193
1193
  let a = !1;
1194
1194
  return () => {
1195
1195
  a || (a = !0, n.remove(), i.remove());
1196
1196
  };
1197
1197
  }
1198
- function N(e) {
1199
- for (; e.endsWith("/");) e = e.slice(0, e.length - 1);
1200
- return /\/wp-json$/i.test(e) ? e : `${e}/wp-json`;
1201
- }
1202
- var Qe = 3e5, T = null, Ke = !1;
1203
- function Sn() {
1204
- return !0;
1205
- }
1206
- function An() {
1207
- const e = String(bt.env.REACT_APP_OPENAPI_FAILOVER_TTL_MS || "").trim();
1208
- if (!e) return Qe;
1209
- const t = Number(e);
1210
- return Number.isFinite(t) && t > 0 ? t : Qe;
1211
- }
1212
- function Tn() {
1213
- return N("https://app.emailmaker.ru/api/".trim());
1214
- }
1215
- function In(e) {
1216
- const t = e.trim();
1217
- if (!t) return [];
1218
- if (t.startsWith("[")) try {
1219
- const n = JSON.parse(t);
1220
- if (!Array.isArray(n)) throw new Error("expected JSON array");
1221
- return n.map((r) => String(r).trim()).filter(Boolean);
1222
- } catch {
1223
- return Ke || (Ke = !0), [];
1224
- }
1225
- return t.split(",").map((n) => n.trim()).filter(Boolean);
1198
+ var k = /* @__PURE__ */ (function(t) {
1199
+ return t.Json = "application/json", t.FormData = "multipart/form-data", t.UrlEncoded = "application/x-www-form-urlencoded", t.Text = "text/plain", t;
1200
+ })({}), ft = "INJECTION";
1201
+ function nn(t) {
1202
+ return t.getState;
1226
1203
  }
1227
- function wn(e) {
1228
- const t = /* @__PURE__ */ new Set(), n = [];
1229
- for (const r of e) {
1230
- const i = N(r);
1231
- t.has(i) || (t.add(i), n.push(i));
1232
- }
1233
- return n;
1204
+ function v(t) {
1205
+ if (nn(t)) {
1206
+ const e = t.getState()[ft];
1207
+ return e && Se.getInstance(e);
1208
+ } else return t;
1234
1209
  }
1235
- function Tt(e) {
1236
- const t = String(e || "").trim();
1237
- return t ? N(t) : Tn();
1210
+ function fe(t, e) {
1211
+ for (const n of t) if (n && e in n) return n[e];
1238
1212
  }
1239
- function It(e, t = []) {
1240
- return e ? wn([e, ...t]).slice(0, 3) : [];
1213
+ function Oe(t) {
1214
+ return Object.assign({}, ...t);
1241
1215
  }
1242
- function wt() {
1243
- return In(String(bt.env.REACT_APP_OPENAPI_FAILOVER_BASE_URLS || "").trim());
1216
+ var mt = [
1217
+ "generic",
1218
+ "stockImages",
1219
+ "emFiles",
1220
+ "cdn"
1221
+ ];
1222
+ function Re(t) {
1223
+ return !!t && typeof t == "object" && !Array.isArray(t);
1244
1224
  }
1245
- function Pn(e = Date.now()) {
1246
- return T ? e - T.switchedAt >= An() : !0;
1225
+ function Ge(t) {
1226
+ return !Re(t) || "match" in t || "rewrite" in t || "proxyBase" in t ? !1 : Object.keys(t).some((e) => mt.includes(e));
1247
1227
  }
1248
- function Pt(e = Date.now()) {
1249
- T && Pn(e) && (T = null);
1228
+ function pt(t) {
1229
+ return t.length === 0 ? [] : t.length === 1 ? t[0] : t;
1250
1230
  }
1251
- function se(e) {
1252
- if (!Sn()) return !1;
1253
- const t = Tt(e);
1254
- if (!t) return !1;
1255
- const n = wt();
1256
- return n.length === 0 ? !1 : It(t, n).length > 1;
1257
- }
1258
- function J(e) {
1259
- const t = Tt(e);
1260
- if (!t) return [];
1261
- const n = wt();
1262
- return n.length === 0 ? [t] : It(t, n);
1263
- }
1264
- function Pe(e) {
1265
- const t = J(e);
1266
- if (t.length === 0) return "";
1267
- if (Pt(), T) {
1268
- const n = t.indexOf(T.activeUrl);
1269
- if (n >= 0) return t[n];
1270
- }
1271
- return t[0];
1272
- }
1273
- function kn(e) {
1274
- const t = J(e);
1275
- if (t.length <= 1 || (Pt(), !T || !t.includes(T.activeUrl))) return t;
1276
- const n = T.activeUrl;
1277
- return [n, ...t.filter((r) => r !== n)];
1278
- }
1279
- function Cn(e) {
1280
- return e === 502 || e === 503 || e === 504;
1281
- }
1282
- function xn(e) {
1283
- return !((e instanceof DOMException || e instanceof Error) && e.name === "AbortError");
1284
- }
1285
- var kt;
1286
- function On(e) {
1287
- kt = e;
1288
- }
1289
- function Je(e, t) {
1290
- if (!se(t)) return;
1291
- const n = J(t);
1292
- if (n.length <= 1) return;
1293
- const r = n.indexOf(N(e));
1294
- if (r < 0) return;
1295
- const i = r + 1;
1296
- if (i >= n.length) return;
1297
- const a = n[i], o = T?.activeUrl;
1298
- T = {
1299
- activeUrl: a,
1300
- switchedAt: Date.now()
1301
- }, o !== a && kt?.();
1302
- }
1303
- function Mn(e, t) {
1304
- if (!se(t)) return;
1305
- const n = N(e);
1306
- J(t).includes(n) && (T = {
1307
- activeUrl: n,
1308
- switchedAt: Date.now()
1309
- });
1310
- }
1311
- function Dn() {
1312
- T = null;
1313
- }
1314
- async function Rn(e, t, n) {
1315
- const r = se(n) ? kn(n) : J(n).length > 0 ? [Pe(n)] : [];
1316
- if (r.length === 0) throw new Error("[apiOriginFailover] no API base URL configured");
1317
- const i = e.startsWith("/") ? e : `/${e}`;
1318
- let a, o;
1319
- for (let c = 0; c < r.length; c++) {
1320
- const f = r[c], m = c === r.length - 1;
1321
- try {
1322
- const p = await fetch(`${f}${i}`, t);
1323
- if (!p.ok && Cn(p.status)) {
1324
- if (a = p, !m) {
1325
- Je(f, n);
1326
- continue;
1327
- }
1328
- break;
1329
- }
1330
- return p.ok && Mn(f, n), p;
1331
- } catch (p) {
1332
- if (!xn(p)) throw p;
1333
- o = p, m || Je(f, n);
1231
+ function _t(t) {
1232
+ let e = !1, n = [];
1233
+ for (const r of t) if (r !== void 0) {
1234
+ if (e = !0, Array.isArray(r)) {
1235
+ n = [...r, ...n];
1236
+ continue;
1334
1237
  }
1238
+ n = [r, ...n];
1335
1239
  }
1336
- if (se(n) && Dn(), a) return a;
1337
- throw o instanceof Error ? o : /* @__PURE__ */ new Error("[apiOriginFailover] fetch chain failed");
1240
+ if (e) return pt(n);
1338
1241
  }
1339
- function Ct(e) {
1340
- return String(e.standaloneKey || "").trim() || void 0;
1242
+ function rn(t) {
1243
+ return Re(t) && ("value" in t || "replace" in t);
1341
1244
  }
1342
- function Nn(e) {
1343
- return e.standaloneOnAuthFailure === !0 ? !0 : e.config?.standaloneOnAuthFailure === !0;
1245
+ function ze(t, e) {
1246
+ return e === void 0 ? t : Array.isArray(e) ? [...e, ...t] : [e, ...t];
1344
1247
  }
1345
- function Fn(e) {
1346
- return Nn(e) ? !!Ct(e) : !1;
1248
+ function an(t) {
1249
+ let e = !1, n = [], r = !1;
1250
+ for (const a of t) if (a !== void 0) {
1251
+ if (rn(a)) {
1252
+ e = !0, a.replace && (n = [], r = !0), a.value !== void 0 && (n = ze(n, a.value), r = !0);
1253
+ continue;
1254
+ }
1255
+ n = ze(n, a), r = !0;
1256
+ }
1257
+ const i = r ? pt(n) : void 0;
1258
+ if (!e) return i;
1259
+ if (i !== void 0) return { value: i };
1347
1260
  }
1348
- function Ln(e) {
1349
- return !!Ct(e) && !Fn(e);
1261
+ function on(t) {
1262
+ const e = t.filter((r) => r !== void 0);
1263
+ if (e.length === 0) return;
1264
+ if (!e.some((r) => Ge(r))) return _t(e);
1265
+ const n = {};
1266
+ for (const r of mt) {
1267
+ const i = an(t.map((a) => {
1268
+ if (a !== void 0) return Ge(a) ? a[r] : r === "generic" ? a : void 0;
1269
+ }));
1270
+ i !== void 0 && (n[r] = i);
1271
+ }
1272
+ return Object.keys(n).length > 0 ? n : void 0;
1350
1273
  }
1351
- function xt(e) {
1352
- return Ln(e);
1274
+ function ln(t) {
1275
+ return _t(t);
1353
1276
  }
1354
- var oe = /* @__PURE__ */ new Map(), ke = /* @__PURE__ */ new Set();
1355
- function Bn(e, t) {
1356
- ke.has(e) || ke.add(e);
1277
+ function sn(t) {
1278
+ if (t !== void 0) {
1279
+ if (Array.isArray(t)) return {
1280
+ replace: !1,
1281
+ hosts: t
1282
+ };
1283
+ if (Re(t) && Array.isArray(t.value)) return {
1284
+ replace: !!t.replace,
1285
+ hosts: t.value
1286
+ };
1287
+ }
1357
1288
  }
1358
- function Be() {
1359
- oe.clear(), ke.clear();
1289
+ function dn(t, e) {
1290
+ const n = [...t], r = new Set(n.map((i) => i.toLowerCase()));
1291
+ for (const i of e) {
1292
+ const a = i.trim().replace(/:\d+$/, "");
1293
+ if (!a) continue;
1294
+ const o = a.toLowerCase();
1295
+ r.has(o) || (r.add(o), n.push(a));
1296
+ }
1297
+ return n;
1360
1298
  }
1361
- On(Be);
1362
- var Ye = /* @__PURE__ */ new WeakMap();
1363
- function je(e) {
1364
- const t = String(e || "").trim();
1365
- if (t) return Pe(t) || N(t);
1366
- const n = "https://app.emailmaker.ru/api/".trim();
1367
- return Pe() || N(n);
1299
+ function un(t) {
1300
+ let e = [], n = !1;
1301
+ for (const r of t) {
1302
+ const i = sn(r);
1303
+ i && (n = !0, i.replace && (e = []), e = dn(e, i.hosts));
1304
+ }
1305
+ return n ? e : void 0;
1368
1306
  }
1369
- async function jn(e) {
1370
- if (!e.getAuthToken) return;
1371
- const t = await e.getAuthToken(e.user, e.project, void 0), n = String(t || "").trim();
1372
- return n ? `Bearer ${n}` : void 0;
1307
+ function cn(t) {
1308
+ const e = t.filter((i) => i !== void 0);
1309
+ if (e.length === 0) return;
1310
+ const n = Oe(e.map(({ directHosts: i, ...a }) => a)), r = un(e.map((i) => i?.directHosts));
1311
+ return r !== void 0 && (n.directHosts = r), n;
1373
1312
  }
1374
- async function qn(e) {
1375
- if (!e.getAuthToken) return !0;
1376
- try {
1377
- const t = await e.getAuthToken(e.user, e.project, void 0);
1378
- return !!String(t || "").trim();
1379
- } catch {
1380
- return !1;
1313
+ function Ae(t) {
1314
+ for (; t.endsWith("/");) t = t.slice(0, t.length - 1);
1315
+ return /\/wp-json$/i.test(t) ? t : `${t}/wp-json`;
1316
+ }
1317
+ Ae("https://app.emailmaker.ru/api/");
1318
+ F();
1319
+ F();
1320
+ F();
1321
+ var fn = F(), Ve;
1322
+ (function(t) {
1323
+ const e = "https://racs.emcdn.ru/v3";
1324
+ function n(i, a) {
1325
+ const o = {
1326
+ method: "POST",
1327
+ headers: {
1328
+ "Content-Type": "application/json",
1329
+ Accept: "application/json"
1330
+ },
1331
+ body: JSON.stringify(a)
1332
+ };
1333
+ return fetch(`${e}?resource=${i}&dataset=${document.location.hostname}`, o);
1381
1334
  }
1382
- }
1383
- function Un(e) {
1384
- return async ({ baseUrl: t }) => {
1385
- const n = je(t);
1335
+ t.post = n;
1336
+ async function r(i, a = 0) {
1337
+ const o = {
1338
+ method: "POST",
1339
+ headers: {
1340
+ "Content-Type": "application/json",
1341
+ Accept: "application/json"
1342
+ },
1343
+ body: `{"filter":{},"limit":${a}}`
1344
+ };
1345
+ return await (await fetch(`${e}/get?resource=${i}&dataset=${document.location.hostname}`, o)).json();
1346
+ }
1347
+ t.getAll = r;
1348
+ })(Ve || (Ve = {}));
1349
+ var me = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new WeakMap();
1350
+ function Et(t) {
1351
+ const e = String(t || "").trim();
1352
+ if (e) return Ae(e);
1353
+ return Ae("https://app.emailmaker.ru/api/".trim());
1354
+ }
1355
+ async function mn(t) {
1356
+ if (!t.getAuthToken) return;
1357
+ const e = await t.getAuthToken(t.user, t.project, void 0);
1358
+ return e ? `Bearer ${e}` : void 0;
1359
+ }
1360
+ function pn(t) {
1361
+ return async ({ baseUrl: e }) => {
1362
+ const n = Et(e);
1386
1363
  if (!n) throw new Error("[Loader] appInit warmup requires baseUrl or REACT_APP_OPENAPI_BASE_URL");
1387
1364
  const r = new Headers({
1388
1365
  Accept: "application/json",
1389
1366
  "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
1390
- }), i = await jn(e);
1391
- if (e.getAuthToken && !i) throw new Error("[Loader] appInit skipped: empty auth token");
1367
+ }), i = await mn(t);
1392
1368
  i && r.set("authorization", i);
1393
- const a = await Rn("/app/v1/app_init", {
1369
+ const a = await fetch(`${n}/app/v1/app_init`, {
1394
1370
  method: "POST",
1395
1371
  headers: r,
1396
1372
  body: new URLSearchParams(),
1397
1373
  credentials: "same-origin"
1398
- }, n);
1374
+ });
1399
1375
  if (!a.ok) throw new Error(`[Loader] appInit request failed: ${a.status} ${a.statusText}`);
1400
1376
  return a.json();
1401
1377
  };
1402
1378
  }
1403
- function Gn(e) {
1379
+ function _n(t) {
1404
1380
  return JSON.stringify({
1405
- baseUrl: je(e.baseUrl) || "",
1406
- project: e.project ?? "",
1407
- userId: e.user?.id ?? ""
1381
+ baseUrl: Et(t.baseUrl) || "",
1382
+ project: t.project ?? "",
1383
+ userId: t.user?.id ?? ""
1408
1384
  });
1409
1385
  }
1410
- function zn(e) {
1411
- const t = e instanceof Error ? e.message : String(e);
1412
- return t.includes("[Loader] appInit skipped: empty auth token") ? !0 : /\b(403|404)\b/.test(t);
1413
- }
1414
- function Vn(e) {
1415
- return e.appInit ? !0 : !(e.jwtAuth && !e.getAuthToken);
1416
- }
1417
- function Hn(e) {
1418
- return async (t) => {
1419
- const n = Gn(t), r = oe.get(n);
1386
+ function En(t) {
1387
+ return async (e) => {
1388
+ const n = _n(e), r = me.get(n);
1420
1389
  if (r) return r;
1421
- const i = Promise.resolve(e(t)).catch((a) => {
1422
- throw Bn(n, a), zn(a) || oe.delete(n), a;
1390
+ const i = Promise.resolve(t(e)).catch((a) => {
1391
+ throw me.delete(n), a;
1423
1392
  });
1424
- return oe.set(n, i), i;
1393
+ return me.set(n, i), i;
1425
1394
  };
1426
1395
  }
1427
- function Wn(e) {
1428
- if (xt(e) || !e.appInit && !je(e.baseUrl) || !Vn(e)) return e;
1429
- const t = e.appInit || Un(e);
1430
- let n = Ye.get(t);
1431
- return n || (n = Hn(t), Ye.set(t, n)), (async () => {
1432
- await qn(e) && await n({
1433
- baseUrl: e.baseUrl,
1434
- user: e.user,
1435
- project: e.project,
1436
- prevApp: void 0
1437
- });
1438
- })().catch(() => {}), {
1439
- ...e,
1396
+ function gn(t) {
1397
+ if (t.standaloneKey) return t;
1398
+ const e = t.appInit || pn(t);
1399
+ let n = He.get(e);
1400
+ return n || (n = En(e), He.set(e, n)), Promise.resolve(n({
1401
+ baseUrl: t.baseUrl,
1402
+ user: t.user,
1403
+ project: t.project,
1404
+ prevApp: void 0
1405
+ })).catch((r) => {}), {
1406
+ ...t,
1440
1407
  appInit: n
1441
1408
  };
1442
1409
  }
1443
- var Ot = 0;
1444
- function $n() {
1445
- return Ot;
1446
- }
1447
- function Xn() {
1448
- Ot += 1, Be();
1449
- }
1450
- var Ze = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap();
1451
- function Qn(e, t) {
1452
- return JSON.stringify({
1453
- userId: e?.id ?? "",
1454
- project: t ?? ""
1455
- });
1456
- }
1457
- function Kn(e) {
1458
- const t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
1459
- return async (r, i, a) => {
1460
- const o = Qn(r, i);
1461
- if (a) return n.delete(o), t.delete(o), Be(), e(r, i, a);
1462
- const c = n.get(o);
1463
- if (c && !t.has(o)) return c;
1464
- let f = t.get(o);
1465
- return f || (f = Promise.resolve(e(r, i, a)).then((m) => (String(m || "").trim() && n.set(o, m), m)).finally(() => {
1466
- t.delete(o);
1467
- }), t.set(o, f)), f;
1468
- };
1469
- }
1470
- function Jn(e) {
1471
- if (xt(e)) return e;
1472
- const t = e.getAuthToken;
1473
- if (!t) return e;
1474
- let n = Ze.get(t);
1475
- const r = $n();
1476
- return (!n || et.get(t) !== r) && (n = Kn(t), Ze.set(t, n), et.set(t, r)), Promise.resolve(n(e.user, e.project, void 0)).catch((i) => {}), {
1477
- ...e,
1410
+ var Xe = /* @__PURE__ */ new WeakMap();
1411
+ function bn(t) {
1412
+ let e = null;
1413
+ return async (n, r, i) => (e || (e = Promise.resolve(t(n, r, i)).finally(() => {
1414
+ e = null;
1415
+ })), e);
1416
+ }
1417
+ function hn(t) {
1418
+ if (t.standaloneKey) return t;
1419
+ const e = t.getAuthToken;
1420
+ if (!e) return t;
1421
+ let n = Xe.get(e);
1422
+ return n || (n = bn(e), Xe.set(e, n)), Promise.resolve(n(t.user, t.project, void 0)).catch((r) => {}), {
1423
+ ...t,
1478
1424
  getAuthToken: n
1479
1425
  };
1480
1426
  }
1481
- function Mt(...e) {
1482
- const t = e.filter((a) => a != null);
1483
- if (t.length === 0) return;
1484
- if (t.length === 1) return t[0];
1485
- const n = t.find((a) => a.aborted);
1427
+ function gt(...t) {
1428
+ const e = t.filter((a) => a != null);
1429
+ if (e.length === 0) return;
1430
+ if (e.length === 1) return e[0];
1431
+ const n = e.find((a) => a.aborted);
1486
1432
  if (n) return n;
1487
- if (typeof AbortSignal < "u" && typeof AbortSignal.any == "function") return AbortSignal.any(t);
1433
+ if (typeof AbortSignal < "u" && typeof AbortSignal.any == "function") return AbortSignal.any(e);
1488
1434
  const r = new AbortController(), i = (a) => {
1489
1435
  r.signal.aborted || r.abort(a.reason);
1490
1436
  };
1491
- for (const a of t) a.addEventListener("abort", () => i(a), { once: !0 });
1437
+ for (const a of e) a.addEventListener("abort", () => i(a), { once: !0 });
1492
1438
  return r.signal;
1493
1439
  }
1494
- var C = /* @__PURE__ */ (function(e) {
1495
- return e.Json = "application/json", e.FormData = "multipart/form-data", e.UrlEncoded = "application/x-www-form-urlencoded", e.Text = "text/plain", e;
1496
- })({});
1497
- function Y(e, t = !1) {
1440
+ function Q(t, e = !1) {
1498
1441
  const n = {};
1499
- for (const r of Object.keys(e)) {
1500
- let i = e[r];
1501
- i !== void 0 && !(typeof i == "number" && Number.isNaN(i)) && (t && typeof i == "object" && i !== null && (i = Y(i)), n[r] = i);
1442
+ for (const r of Object.keys(t)) {
1443
+ let i = t[r];
1444
+ i !== void 0 && !(typeof i == "number" && Number.isNaN(i)) && (e && typeof i == "object" && i !== null && (i = Q(i)), n[r] = i);
1502
1445
  }
1503
1446
  return n;
1504
1447
  }
1505
- function A(e) {
1506
- return typeof e == "object" && e;
1448
+ function A(t) {
1449
+ return typeof t == "object" && t;
1507
1450
  }
1508
- function I(e) {
1509
- const t = Number(e);
1510
- return isNaN(t) ? e : t;
1451
+ function T(t) {
1452
+ const e = Number(t);
1453
+ return isNaN(e) ? t : e;
1511
1454
  }
1512
- function y(e) {
1513
- return typeof e == "number" ? String(e) : e;
1455
+ function y(t) {
1456
+ return typeof t == "number" ? String(t) : t;
1514
1457
  }
1515
- function F(e) {
1516
- return typeof e == "object" ? e.rendered : e;
1458
+ function R(t) {
1459
+ return typeof t == "object" ? t.rendered : t;
1517
1460
  }
1518
- function Yn(e) {
1519
- return typeof e == "object" && e !== null ? e : void 0;
1461
+ function yn(t) {
1462
+ return typeof t == "object" && t !== null ? t : void 0;
1520
1463
  }
1521
- function O({ id: e, title: t, meta: n, type: r, guid: i, acf: { lock: a, subject: o, description: c, html: f, project: m, tags: p, utm_parameters: s, parent_email: l, common_styles: u, is_template: d }, author: E, ...g }) {
1522
- const h = Yn(n);
1464
+ function x({ id: t, title: e, meta: n, type: r, guid: i, acf: { lock: a, subject: o, description: c, html: f, project: m, tags: p, utm_parameters: s, parent_email: l, common_styles: d, is_template: u }, author: E, ...g }) {
1465
+ const b = yn(n);
1523
1466
  return {
1524
1467
  ...g,
1525
- ...h !== void 0 ? { meta: h } : {},
1526
- id: y(e),
1468
+ ...b !== void 0 ? { meta: b } : {},
1469
+ id: y(t),
1527
1470
  author: y(E),
1528
- title: F(t) || "",
1471
+ title: R(e) || "",
1529
1472
  lock: a,
1530
1473
  description: c,
1531
1474
  html: f,
@@ -1535,331 +1478,185 @@ function O({ id: e, title: t, meta: n, type: r, guid: i, acf: { lock: a, subject
1535
1478
  tags: p,
1536
1479
  utm_parameters: s,
1537
1480
  parent_email: y(l instanceof Array && l[0] ? l[0].ID : l),
1538
- common_styles: u,
1539
- is_template: d
1481
+ common_styles: d,
1482
+ is_template: u
1540
1483
  };
1541
1484
  }
1542
- function tt({ title: e, lock: t, subject: n, description: r, html: i, project: a, tags: o, renderGuid: c, utm_parameters: f, parent_email: m, common_styles: p, is_template: s, author: l, meta: u, ...d }) {
1485
+ function $e({ title: t, lock: e, subject: n, description: r, html: i, project: a, tags: o, renderGuid: c, utm_parameters: f, parent_email: m, common_styles: p, is_template: s, author: l, meta: d, ...u }) {
1543
1486
  return {
1544
- ...d,
1545
- author: I(l),
1546
- title: e,
1487
+ ...u,
1488
+ author: T(l),
1489
+ title: t,
1547
1490
  acf: {
1548
- lock: t,
1491
+ lock: e,
1549
1492
  description: r,
1550
1493
  html: i,
1551
1494
  project: a,
1552
1495
  tags: o,
1553
1496
  utm_parameters: f,
1554
- parent_email: I(m),
1497
+ parent_email: T(m),
1555
1498
  common_styles: p,
1556
1499
  is_template: s
1557
1500
  }
1558
1501
  };
1559
1502
  }
1560
- function Zn(e) {
1561
- return typeof e == "object" && e !== null ? e : void 0;
1503
+ function vn(t) {
1504
+ return typeof t == "object" && t !== null ? t : void 0;
1562
1505
  }
1563
- function nt({ id: e, title: t, meta: n, acf: { html: r, common_styles: i }, parent: a, excerpt: o, author: c, ...f }) {
1564
- const m = Zn(n);
1506
+ function We({ id: t, title: e, meta: n, acf: { html: r, common_styles: i }, parent: a, excerpt: o, author: c, ...f }) {
1507
+ const m = vn(n);
1565
1508
  return {
1566
1509
  ...f,
1567
1510
  ...m !== void 0 ? { meta: m } : {},
1568
1511
  author: y(c),
1569
- id: y(e),
1512
+ id: y(t),
1570
1513
  parent: y(a),
1571
- title: F(t) || "",
1514
+ title: R(e) || "",
1572
1515
  html: r,
1573
1516
  common_styles: i,
1574
1517
  excerpt: A(o) ? o.rendered : o
1575
1518
  };
1576
1519
  }
1577
- function er({ parent: e, title: t, html: n, project: r, subject: i, preheader: a, common_styles: o, author: c, parent_email: f, meta: m, ...p }) {
1520
+ function Sn({ parent: t, title: e, html: n, project: r, subject: i, preheader: a, common_styles: o, author: c, parent_email: f, meta: m, ...p }) {
1578
1521
  return {
1579
1522
  ...p,
1580
- author: I(c),
1581
- title: t,
1582
- parent: I(e),
1523
+ author: T(c),
1524
+ title: e,
1525
+ parent: T(t),
1583
1526
  "acf[html]": n,
1584
1527
  "acf[project]": A(r) ? r.id || r.ID : r,
1585
1528
  "acf[parent_email]": f,
1586
1529
  "acf[common_styles]": o
1587
1530
  };
1588
1531
  }
1589
- function ce({ data: e, ...t }, n) {
1590
- return t.error ? t : {
1591
- data: n(e, t.meta),
1592
- ...t
1532
+ function oe({ data: t, ...e }, n) {
1533
+ return e.error ? e : {
1534
+ data: n(t, e.meta),
1535
+ ...e
1593
1536
  };
1594
1537
  }
1595
- function tr({ data: e, ...t }, n) {
1596
- return t.error ? t : {
1597
- data: e.map((r) => n(r, t.meta)),
1598
- ...t
1538
+ function An({ data: t, ...e }, n) {
1539
+ return e.error ? e : {
1540
+ data: t.map((r) => n(r, e.meta)),
1541
+ ...e
1599
1542
  };
1600
1543
  }
1601
- function S(e) {
1602
- return (t) => ce(t, e);
1603
- }
1604
- function nr(e) {
1605
- return !e.hasOwnProperty("previous");
1544
+ function S(t) {
1545
+ return (e) => oe(e, t);
1606
1546
  }
1607
- function qe(e) {
1608
- return (t) => ce(t, (n, r) => nr(n) ? e(n, r) : e(n.previous, r));
1547
+ function Tn(t) {
1548
+ return !t.hasOwnProperty("previous");
1609
1549
  }
1610
- function x(e) {
1611
- return (t) => tr(t, e);
1550
+ function Ne(t) {
1551
+ return (e) => oe(e, (n, r) => Tn(n) ? t(n, r) : t(n.previous, r));
1612
1552
  }
1613
- var Dt = "INJECTION";
1614
- function rr(e) {
1615
- return e.getState;
1553
+ function C(t) {
1554
+ return (e) => An(e, t);
1616
1555
  }
1617
- function v(e) {
1618
- if (rr(e)) {
1619
- const t = e.getState()[Dt];
1620
- return t && we.getInstance(t);
1621
- } else return e;
1622
- }
1623
- var ir = Dt, ar = (e, t) => {
1624
- if (!e) {
1625
- const n = we.createChild(), r = q();
1626
- return we.inject(r, n), r;
1556
+ var In = ft, wn = (t, e) => {
1557
+ if (!t) {
1558
+ const n = Se.createChild(), r = F();
1559
+ return Se.inject(r, n), r;
1627
1560
  }
1628
- return e;
1561
+ return t;
1629
1562
  };
1630
- function or() {
1631
- const e = v(Q());
1632
- return function(t, n) {
1633
- e.inject(t, n);
1563
+ function Pn() {
1564
+ const t = v($());
1565
+ return function(e, n) {
1566
+ t.inject(e, n);
1634
1567
  };
1635
1568
  }
1636
- function lr() {
1637
- const e = v(Q());
1638
- return function(t, n, r) {
1639
- e.injectFactory(t, n, r);
1569
+ function kn() {
1570
+ const t = v($());
1571
+ return function(e, n, r) {
1572
+ t.injectFactory(e, n, r);
1640
1573
  };
1641
1574
  }
1642
- function sr(e, t) {
1643
- const n = Q(), r = yt(() => t || v(n), [n, t]), [i, a] = Ne(() => r?.getInstance(e));
1644
- return Re(() => {
1575
+ function Cn(t, e) {
1576
+ const n = $(), r = st(() => e || v(n), [n, e]), [i, a] = xe(() => r?.getInstance(t));
1577
+ return Ce(() => {
1645
1578
  const o = r?.onInject((c) => {
1646
- c === e && a(r.getInstance(e));
1579
+ c === t && a(r.getInstance(t));
1647
1580
  });
1648
1581
  return () => o?.dispose();
1649
- }, [e, r]), i;
1582
+ }, [t, r]), i;
1650
1583
  }
1651
- function ur(e) {
1652
- const [t, n] = Ne(), r = Q(), i = sn(Promise.resolve()), a = v(r);
1653
- return Re(() => {
1654
- const o = i.current = i.current.then(() => a?.getInstanceAsync(e)).then((c) => {
1584
+ function xn(t) {
1585
+ const [e, n] = xe(), r = $(), i = Gt(Promise.resolve()), a = v(r);
1586
+ return Ce(() => {
1587
+ const o = i.current = i.current.then(() => a?.getInstanceAsync(t)).then((c) => {
1655
1588
  o === i.current && n(c);
1656
1589
  }, (c) => {});
1657
- }, [e, a]), t;
1590
+ }, [t, a]), e;
1658
1591
  }
1659
- function dr(e, t) {
1660
- const n = Q(), r = yt(() => t || v(n), [n, t]), [i, a] = Ne(() => r?.getServices(e) || []);
1661
- return Re(() => {
1592
+ function Mn(t, e) {
1593
+ const n = $(), r = st(() => e || v(n), [n, e]), [i, a] = xe(() => r?.getServices(t) || []);
1594
+ return Ce(() => {
1662
1595
  if (!r) return;
1663
1596
  const o = r.onInject((c) => {
1664
- c === tn(e) && a(r.getServices(e));
1597
+ c === Bt(t) && a(r.getServices(t));
1665
1598
  });
1666
1599
  return () => {
1667
1600
  o?.dispose();
1668
1601
  };
1669
- }, [e, r]), i;
1602
+ }, [t, r]), i;
1670
1603
  }
1671
- function Ce(e) {
1672
- return (t, n, r, i) => e(v(n))(t, n, r, i);
1604
+ function Te(t) {
1605
+ return (e, n, r, i) => t(v(n))(e, n, r, i);
1673
1606
  }
1674
- function cr(e, t) {
1675
- return (e instanceof Me ? e : v(e)).getInstance(t);
1607
+ function Dn(t, e) {
1608
+ return (t instanceof Pe ? t : v(t)).getInstance(e);
1676
1609
  }
1677
- function fr(e, t) {
1678
- return (e instanceof Me ? e : v(e)).getInstanceAsync(t);
1610
+ function On(t, e) {
1611
+ return (t instanceof Pe ? t : v(t)).getInstanceAsync(e);
1679
1612
  }
1680
- function mr(e, t, n) {
1681
- return (e instanceof Me ? e : v(e)).getOrCreateInstance(t, n);
1613
+ function Rn(t, e, n) {
1614
+ return (t instanceof Pe ? t : v(t)).getOrCreateInstance(e, n);
1682
1615
  }
1683
- function pr(e, t, n) {
1684
- v(e).inject(t, n);
1616
+ function Nn(t, e, n) {
1617
+ v(t).inject(e, n);
1685
1618
  }
1686
- function _r(e, t, n, r) {
1687
- v(e).injectFactory(t, n, r);
1619
+ function Bn(t, e, n, r) {
1620
+ v(t).injectFactory(e, n, r);
1688
1621
  }
1689
- function Er(e, t, n) {
1690
- return v(e).addService(t, n);
1622
+ function Ln(t, e, n) {
1623
+ return v(t).addService(e, n);
1691
1624
  }
1692
- function gr(e, t, n, r) {
1693
- return v(e).addServiceFactory(t, n, r);
1625
+ function Fn(t, e, n, r) {
1626
+ return v(t).addServiceFactory(e, n, r);
1694
1627
  }
1695
- function hr(e, t) {
1696
- return v(e).getServices(t);
1628
+ function jn(t, e) {
1629
+ return v(t).getServices(e);
1697
1630
  }
1698
- var Rt = {
1631
+ var bt = {
1699
1632
  getContainer: v,
1700
- createIdentifier: q,
1701
- reducer: ar,
1702
- reducerPath: ir,
1703
- getInstance: cr,
1704
- getInstanceAsync: fr,
1705
- getOrCreateInstance: mr,
1706
- inject: pr,
1707
- injectFactory: _r,
1708
- addService: Er,
1709
- addServiceFactory: gr,
1710
- getServices: hr,
1711
- useInstance: sr,
1712
- useInstanceAsync: ur,
1713
- useServices: dr,
1714
- useInject: or,
1715
- useInjectFactory: lr
1716
- };
1717
- function ge(e, t) {
1718
- for (const n of e) if (n && t in n) return n[t];
1719
- }
1720
- function Ue(e) {
1721
- return Object.assign({}, ...e);
1722
- }
1723
- var Nt = [
1724
- "generic",
1725
- "stockImages",
1726
- "emFiles",
1727
- "cdn"
1728
- ];
1729
- function Ge(e) {
1730
- return !!e && typeof e == "object" && !Array.isArray(e);
1731
- }
1732
- function rt(e) {
1733
- return !Ge(e) || "match" in e || "rewrite" in e || "proxyBase" in e ? !1 : Object.keys(e).some((t) => Nt.includes(t));
1734
- }
1735
- function Ft(e) {
1736
- return e.length === 0 ? [] : e.length === 1 ? e[0] : e;
1737
- }
1738
- function Lt(e) {
1739
- let t = !1, n = [];
1740
- for (const r of e) if (r !== void 0) {
1741
- if (t = !0, Array.isArray(r)) {
1742
- n = [...r, ...n];
1743
- continue;
1744
- }
1745
- n = [r, ...n];
1746
- }
1747
- if (t) return Ft(n);
1748
- }
1749
- function br(e) {
1750
- return Ge(e) && ("value" in e || "replace" in e);
1751
- }
1752
- function it(e, t) {
1753
- return t === void 0 ? e : Array.isArray(t) ? [...t, ...e] : [t, ...e];
1754
- }
1755
- function yr(e) {
1756
- let t = !1, n = [], r = !1;
1757
- for (const a of e) if (a !== void 0) {
1758
- if (br(a)) {
1759
- t = !0, a.replace && (n = [], r = !0), a.value !== void 0 && (n = it(n, a.value), r = !0);
1760
- continue;
1761
- }
1762
- n = it(n, a), r = !0;
1763
- }
1764
- const i = r ? Ft(n) : void 0;
1765
- if (!t) return i;
1766
- if (i !== void 0) return { value: i };
1767
- }
1768
- function vr(e) {
1769
- const t = e.filter((r) => r !== void 0);
1770
- if (t.length === 0) return;
1771
- if (!t.some((r) => rt(r))) return Lt(t);
1772
- const n = {};
1773
- for (const r of Nt) {
1774
- const i = yr(e.map((a) => {
1775
- if (a !== void 0) return rt(a) ? a[r] : r === "generic" ? a : void 0;
1776
- }));
1777
- i !== void 0 && (n[r] = i);
1778
- }
1779
- return Object.keys(n).length > 0 ? n : void 0;
1780
- }
1781
- function Sr(e) {
1782
- return Lt(e);
1783
- }
1784
- function Ar(e) {
1785
- if (e !== void 0) {
1786
- if (Array.isArray(e)) return {
1787
- replace: !1,
1788
- hosts: e
1789
- };
1790
- if (Ge(e) && Array.isArray(e.value)) return {
1791
- replace: !!e.replace,
1792
- hosts: e.value
1793
- };
1794
- }
1795
- }
1796
- function Tr(e, t) {
1797
- const n = [...e], r = new Set(n.map((i) => i.toLowerCase()));
1798
- for (const i of t) {
1799
- const a = i.trim().replace(/:\d+$/, "");
1800
- if (!a) continue;
1801
- const o = a.toLowerCase();
1802
- r.has(o) || (r.add(o), n.push(a));
1803
- }
1804
- return n;
1805
- }
1806
- function Ir(e) {
1807
- let t = [], n = !1;
1808
- for (const r of e) {
1809
- const i = Ar(r);
1810
- i && (n = !0, i.replace && (t = []), t = Tr(t, i.hosts));
1811
- }
1812
- return n ? t : void 0;
1813
- }
1814
- function wr(e) {
1815
- const t = e.filter((i) => i !== void 0);
1816
- if (t.length === 0) return;
1817
- const n = Ue(t.map(({ directHosts: i, ...a }) => a)), r = Ir(t.map((i) => i?.directHosts));
1818
- return r !== void 0 && (n.directHosts = r), n;
1819
- }
1820
- N("https://app.emailmaker.ru/api/");
1821
- q();
1822
- q();
1823
- q();
1824
- var Pr = q(), at;
1825
- (function(e) {
1826
- const t = "https://racs.emcdn.ru/v3";
1827
- function n(i, a) {
1828
- const o = {
1829
- method: "POST",
1830
- headers: {
1831
- "Content-Type": "application/json",
1832
- Accept: "application/json"
1833
- },
1834
- body: JSON.stringify(a)
1835
- };
1836
- return fetch(`${t}?resource=${i}&dataset=${document.location.hostname}`, o);
1837
- }
1838
- e.post = n;
1839
- async function r(i, a = 0) {
1840
- const o = {
1841
- method: "POST",
1842
- headers: {
1843
- "Content-Type": "application/json",
1844
- Accept: "application/json"
1845
- },
1846
- body: `{"filter":{},"limit":${a}}`
1847
- };
1848
- return await (await fetch(`${t}/get?resource=${i}&dataset=${document.location.hostname}`, o)).json();
1849
- }
1850
- e.getAll = r;
1851
- })(at || (at = {}));
1852
- var _ = (e) => Rt.getInstance(e, en);
1853
- function Z(e) {
1854
- return (t, n, r) => {
1855
- const i = Rt.getInstance(n, Pr);
1856
- return on({
1857
- ...e,
1633
+ createIdentifier: F,
1634
+ reducer: wn,
1635
+ reducerPath: In,
1636
+ getInstance: Dn,
1637
+ getInstanceAsync: On,
1638
+ getOrCreateInstance: Rn,
1639
+ inject: Nn,
1640
+ injectFactory: Bn,
1641
+ addService: Ln,
1642
+ addServiceFactory: Fn,
1643
+ getServices: jn,
1644
+ useInstance: Cn,
1645
+ useInstanceAsync: xn,
1646
+ useServices: Mn,
1647
+ useInject: Pn,
1648
+ useInjectFactory: kn
1649
+ }, _ = (t) => bt.getInstance(t, Nt);
1650
+ function K(t) {
1651
+ return (e, n, r) => {
1652
+ const i = bt.getInstance(n, fn);
1653
+ return qt({
1654
+ ...t,
1858
1655
  fetchFn: i?.execute || fetch
1859
- })(t, n, r);
1656
+ })(e, n, r);
1860
1657
  };
1861
1658
  }
1862
- var { setRevisionToApply: z, clearRevisionToApply: Hi, setIsRecovering: he, markContentReady: ot, markEmailInited: Wi, resetContentReady: $i, resetEmailInited: Xi, resetShowReady: Qi, beginForcedHeaderSync: Ki, endForcedHeaderSync: Ji } = de({
1659
+ var { setRevisionToApply: U, clearRevisionToApply: ri, setIsRecovering: pe, markContentReady: Qe, markEmailInited: ii, resetContentReady: ai, resetEmailInited: oi, resetShowReady: li, beginForcedHeaderSync: si, endForcedHeaderSync: di } = ae({
1863
1660
  name: "autosaveRecovery",
1864
1661
  initialState: {
1865
1662
  revisionToApply: null,
@@ -1869,153 +1666,153 @@ var { setRevisionToApply: z, clearRevisionToApply: Hi, setIsRecovering: he, mark
1869
1666
  forcedHeaderSync: null
1870
1667
  },
1871
1668
  reducers: {
1872
- setRevisionToApply: (e, { payload: t }) => {
1873
- e.revisionToApply = t;
1669
+ setRevisionToApply: (t, { payload: e }) => {
1670
+ t.revisionToApply = e;
1874
1671
  },
1875
- clearRevisionToApply: (e) => {
1876
- e.revisionToApply = null;
1672
+ clearRevisionToApply: (t) => {
1673
+ t.revisionToApply = null;
1877
1674
  },
1878
- setIsRecovering: (e, { payload: t }) => {
1879
- e.isRecovering = t;
1675
+ setIsRecovering: (t, { payload: e }) => {
1676
+ t.isRecovering = e;
1880
1677
  },
1881
- markContentReady: (e, { payload: t }) => {
1882
- e.contentReadyEmailId = t;
1678
+ markContentReady: (t, { payload: e }) => {
1679
+ t.contentReadyEmailId = e;
1883
1680
  },
1884
- markEmailInited: (e, { payload: t }) => {
1885
- e.initedShowToken = t;
1681
+ markEmailInited: (t, { payload: e }) => {
1682
+ t.initedShowToken = e;
1886
1683
  },
1887
- resetContentReady: (e) => {
1888
- e.contentReadyEmailId = null;
1684
+ resetContentReady: (t) => {
1685
+ t.contentReadyEmailId = null;
1889
1686
  },
1890
- resetEmailInited: (e) => {
1891
- e.initedShowToken = 0;
1687
+ resetEmailInited: (t) => {
1688
+ t.initedShowToken = 0;
1892
1689
  },
1893
- resetShowReady: (e) => {
1894
- e.contentReadyEmailId = null, e.initedShowToken = 0;
1690
+ resetShowReady: (t) => {
1691
+ t.contentReadyEmailId = null, t.initedShowToken = 0;
1895
1692
  },
1896
- beginForcedHeaderSync: (e, { payload: t }) => {
1897
- e.forcedHeaderSync = t;
1693
+ beginForcedHeaderSync: (t, { payload: e }) => {
1694
+ t.forcedHeaderSync = e;
1898
1695
  },
1899
- endForcedHeaderSync: (e) => {
1900
- e.forcedHeaderSync = null;
1696
+ endForcedHeaderSync: (t) => {
1697
+ t.forcedHeaderSync = null;
1901
1698
  }
1902
1699
  }
1903
- }).actions, xr = "em_autosave_pending", Or = 2e3, Mr = 5, Dr = 5e3, Rr = 4, Nr = 6e4, Fr = 5e3;
1904
- function ue(e) {
1905
- return `${xr}_${e}`;
1700
+ }).actions, Gn = "em_autosave_pending", zn = 2e3, Vn = 5, Hn = 5e3, Xn = 4, $n = 6e4, Wn = 5e3;
1701
+ function ie(t) {
1702
+ return `${Gn}_${t}`;
1906
1703
  }
1907
- function Lr(e, t) {
1704
+ function Qn(t, e) {
1908
1705
  try {
1909
- sessionStorage.setItem(ue(e), JSON.stringify(t));
1706
+ sessionStorage.setItem(ie(t), JSON.stringify(e));
1910
1707
  } catch {}
1911
1708
  }
1912
- function Br(e) {
1709
+ function Kn(t) {
1913
1710
  try {
1914
- const t = sessionStorage.getItem(ue(e));
1915
- if (!t) return null;
1916
- const n = JSON.parse(t);
1917
- return Date.now() - n.sentAt > Nr ? (sessionStorage.removeItem(ue(e)), null) : n;
1711
+ const e = sessionStorage.getItem(ie(t));
1712
+ if (!e) return null;
1713
+ const n = JSON.parse(e);
1714
+ return Date.now() - n.sentAt > $n ? (sessionStorage.removeItem(ie(t)), null) : n;
1918
1715
  } catch {
1919
1716
  return null;
1920
1717
  }
1921
1718
  }
1922
- function V(e) {
1719
+ function G(t) {
1923
1720
  try {
1924
- sessionStorage.removeItem(ue(e));
1721
+ sessionStorage.removeItem(ie(t));
1925
1722
  } catch {}
1926
1723
  }
1927
- function Bt(e) {
1928
- return !!e?.slug?.includes("autosave");
1724
+ function ht(t) {
1725
+ return !!t?.slug?.includes("autosave");
1929
1726
  }
1930
- function be(e, t) {
1931
- return Bt(e) && Date.parse(e.modified) >= t - Fr;
1727
+ function _e(t, e) {
1728
+ return ht(t) && Date.parse(t.modified) >= e - Wn;
1932
1729
  }
1933
- function ee(e) {
1934
- return Bt(e) && !!e?.html?.trim();
1730
+ function J(t) {
1731
+ return ht(t) && !!t?.html?.trim();
1935
1732
  }
1936
- function jr(e) {
1937
- return e?.length ? [...e].sort((t, n) => Date.parse(n.modified) - Date.parse(t.modified))[0] : null;
1733
+ function Jn(t) {
1734
+ return t?.length ? [...t].sort((e, n) => Date.parse(n.modified) - Date.parse(e.modified))[0] : null;
1938
1735
  }
1939
- function qr() {
1736
+ function Yn() {
1940
1737
  return typeof performance < "u" && typeof performance.timeOrigin == "number" ? performance.timeOrigin : Date.now();
1941
1738
  }
1942
- function Ur(e, t) {
1943
- return e == null || t == null ? !1 : e.replaceAll(`\r
1739
+ function Zn(t, e) {
1740
+ return t == null || e == null ? !1 : t.replaceAll(`\r
1944
1741
  `, `
1945
- `) === t.replaceAll(`\r
1742
+ `) === e.replaceAll(`\r
1946
1743
  `, `
1947
1744
  `);
1948
1745
  }
1949
- var Gr = class {
1746
+ var er = class {
1950
1747
  pageLoadTs;
1951
1748
  polls = /* @__PURE__ */ new Map();
1952
1749
  processedEmails = /* @__PURE__ */ new Set();
1953
- constructor(e = qr()) {
1954
- this.pageLoadTs = e;
1750
+ constructor(t = Yn()) {
1751
+ this.pageLoadTs = t;
1955
1752
  }
1956
- onAutoSaveStarted(e, t) {
1957
- Lr(e, t);
1753
+ onAutoSaveStarted(t, e) {
1754
+ Qn(t, e);
1958
1755
  }
1959
- onAutoSaveCompleted(e) {}
1960
- onHistoryFetched(e, t, n, r, i = !1, a = null) {
1961
- const o = jr(t), c = this.polls.get(e);
1756
+ onAutoSaveCompleted(t) {}
1757
+ onHistoryFetched(t, e, n, r, i = !1, a = null) {
1758
+ const o = Jn(e), c = this.polls.get(t);
1962
1759
  if (c && (c.triggerRefetch = r, c.dispatch = n), i && c?.phase === "fast") {
1963
- ee(o) && be(o, c.pending.sentAt) && (V(e), this.cancelPolling(e), n(z({
1964
- emailId: e,
1760
+ J(o) && _e(o, c.pending.sentAt) && (G(t), this.cancelPolling(t), n(U({
1761
+ emailId: t,
1965
1762
  payload: o,
1966
1763
  phase: "found"
1967
- })), this.processedEmails.add(e));
1764
+ })), this.processedEmails.add(t));
1968
1765
  return;
1969
1766
  }
1970
1767
  if (i && c?.phase === "bg") {
1971
- ee(o) && be(o, c.pending.sentAt) && (V(e), this.cancelPolling(e), n(z({
1972
- emailId: e,
1768
+ J(o) && _e(o, c.pending.sentAt) && (G(t), this.cancelPolling(t), n(U({
1769
+ emailId: t,
1973
1770
  payload: o,
1974
1771
  phase: "bg"
1975
- })), this.processedEmails.add(e));
1772
+ })), this.processedEmails.add(t));
1976
1773
  return;
1977
1774
  }
1978
- if (this.processedEmails.has(e)) return;
1979
- const f = i ? Br(e) : null, m = f && (f.sentAt < this.pageLoadTs || !Ur(f.html, a)) ? f : null;
1980
- m ? ee(o) && be(o, m.sentAt) ? (V(e), n(z({
1981
- emailId: e,
1775
+ if (this.processedEmails.has(t)) return;
1776
+ const f = i ? Kn(t) : null, m = f && (f.sentAt < this.pageLoadTs || !Zn(f.html, a)) ? f : null;
1777
+ m ? J(o) && _e(o, m.sentAt) ? (G(t), n(U({
1778
+ emailId: t,
1982
1779
  payload: o,
1983
1780
  phase: "found"
1984
- })), this.processedEmails.add(e)) : this.startFastPoll(e, m, n, r) : (ee(o) ? n(z({
1985
- emailId: e,
1781
+ })), this.processedEmails.add(t)) : this.startFastPoll(t, m, n, r) : (J(o) ? n(U({
1782
+ emailId: t,
1986
1783
  payload: o,
1987
1784
  phase: "normal"
1988
- })) : n(ot(e)), this.processedEmails.add(e));
1785
+ })) : n(Qe(t)), this.processedEmails.add(t));
1989
1786
  }
1990
- onHistoryFetchError(e, t) {
1991
- this.polls.has(e) || t(ot(e));
1787
+ onHistoryFetchError(t, e) {
1788
+ this.polls.has(t) || e(Qe(t));
1992
1789
  }
1993
- cancelPolling(e) {
1994
- const t = this.polls.get(e);
1995
- t?.timer && clearTimeout(t.timer), t && t.dispatch(he(!1)), this.polls.delete(e), this.processedEmails.delete(e);
1790
+ cancelPolling(t) {
1791
+ const e = this.polls.get(t);
1792
+ e?.timer && clearTimeout(e.timer), e && e.dispatch(pe(!1)), this.polls.delete(t), this.processedEmails.delete(t);
1996
1793
  }
1997
- startFastPoll(e, t, n, r) {
1998
- n(he(!0));
1794
+ startFastPoll(t, e, n, r) {
1795
+ n(pe(!0));
1999
1796
  const i = {
2000
1797
  phase: "fast",
2001
1798
  attempts: 0,
2002
- pending: t,
1799
+ pending: e,
2003
1800
  timer: null,
2004
1801
  triggerRefetch: r,
2005
1802
  dispatch: n
2006
1803
  };
2007
- this.polls.set(e, i), this.scheduleNextPoll(e);
1804
+ this.polls.set(t, i), this.scheduleNextPoll(t);
2008
1805
  }
2009
- scheduleNextPoll(e) {
2010
- const t = this.polls.get(e);
2011
- if (!t) return;
2012
- const n = t.phase === "fast", r = n ? Or : Dr, i = n ? Mr : Rr;
2013
- t.timer = setTimeout(() => {
2014
- const a = this.polls.get(e);
1806
+ scheduleNextPoll(t) {
1807
+ const e = this.polls.get(t);
1808
+ if (!e) return;
1809
+ const n = e.phase === "fast", r = n ? zn : Hn, i = n ? Vn : Xn;
1810
+ e.timer = setTimeout(() => {
1811
+ const a = this.polls.get(t);
2015
1812
  if (a) if (a.attempts++, a.triggerRefetch(), n && a.attempts >= i) {
2016
1813
  const { pending: o, dispatch: c } = a;
2017
- V(e), c(he(!1)), c(z({
2018
- emailId: e,
1814
+ G(t), c(pe(!1)), c(U({
1815
+ emailId: t,
2019
1816
  payload: {
2020
1817
  html: o.html,
2021
1818
  common_styles: o.common_styles,
@@ -2023,11 +1820,11 @@ var Gr = class {
2023
1820
  preheader: o.preheader
2024
1821
  },
2025
1822
  phase: "timeout"
2026
- })), this.processedEmails.add(e), a.phase = "bg", a.attempts = 0, this.scheduleNextPoll(e);
2027
- } else !n && a.attempts >= i ? (V(e), this.cancelPolling(e), this.processedEmails.add(e)) : this.scheduleNextPoll(e);
1823
+ })), this.processedEmails.add(t), a.phase = "bg", a.attempts = 0, this.scheduleNextPoll(t);
1824
+ } else !n && a.attempts >= i ? (G(t), this.cancelPolling(t), this.processedEmails.add(t)) : this.scheduleNextPoll(t);
2028
1825
  }, r);
2029
1826
  }
2030
- }, H = new Gr(), lt = {
1827
+ }, z = new er(), Ke = {
2031
1828
  pro: {
2032
1829
  config: {
2033
1830
  mode: "pro",
@@ -2686,38 +2483,38 @@ var Gr = class {
2686
2483
  showToken: 0
2687
2484
  }
2688
2485
  }
2689
- }, jt = (e) => {
2690
- return lt[e] || lt.editor;
2486
+ }, yt = (t) => {
2487
+ return Ke[t] || Ke.editor;
2691
2488
  };
2692
- function M({ id: e, type: t, title: n, excerpt: r, author: i, acf: { subject: a, description: o, html: c, project: f, related_email: m, tags: p, type: s, is_template: l, global_block: u, lock: d }, ...E }) {
2489
+ function M({ id: t, type: e, title: n, excerpt: r, author: i, acf: { subject: a, description: o, html: c, project: f, related_email: m, tags: p, type: s, is_template: l, global_block: d, lock: u }, ...E }) {
2693
2490
  return {
2694
2491
  ...E,
2695
- id: String(e),
2492
+ id: String(t),
2696
2493
  author: String(i),
2697
- renderGuid: ht(),
2494
+ renderGuid: lt(),
2698
2495
  description: o,
2699
2496
  html: c,
2700
- excerpt: F(n),
2497
+ excerpt: R(n),
2701
2498
  project: A(f) ? f.ID : f,
2702
2499
  project_author: A(f) ? f.post_author : void 0,
2703
2500
  project_title: A(f) ? f.post_title : void 0,
2704
2501
  tags: p,
2705
2502
  is_template: l,
2706
- global_block: u,
2503
+ global_block: d,
2707
2504
  type: s,
2708
2505
  related_email: y(A(m) ? m.ID : m),
2709
- title: F(n) || "",
2710
- lock: d
2506
+ title: R(n) || "",
2507
+ lock: u
2711
2508
  };
2712
2509
  }
2713
- function st({ title: e, subject: t, description: n, renderGuid: r, html: i, project: a, tags: o, type: c, related_email: f, is_template: m, global_block: p, lock: s, author: l, ...u }) {
2510
+ function Je({ title: t, subject: e, description: n, renderGuid: r, html: i, project: a, tags: o, type: c, related_email: f, is_template: m, global_block: p, lock: s, author: l, ...d }) {
2714
2511
  return {
2715
- ...u,
2716
- author: I(l),
2717
- title: e,
2512
+ ...d,
2513
+ author: T(l),
2514
+ title: t,
2718
2515
  acf: {
2719
2516
  description: n,
2720
- related_email: I(f),
2517
+ related_email: T(f),
2721
2518
  html: i,
2722
2519
  project: a,
2723
2520
  tags: o,
@@ -2728,28 +2525,28 @@ function st({ title: e, subject: t, description: n, renderGuid: r, html: i, proj
2728
2525
  }
2729
2526
  };
2730
2527
  }
2731
- function ut({ id: e, title: t, acf: { html: n }, excerpt: r, parent: i, author: a, ...o }) {
2528
+ function Ye({ id: t, title: e, acf: { html: n }, excerpt: r, parent: i, author: a, ...o }) {
2732
2529
  return {
2733
2530
  ...o,
2734
- id: y(e),
2531
+ id: y(t),
2735
2532
  author: y(a),
2736
2533
  parent: y(i),
2737
- title: F(t) || "",
2534
+ title: R(e) || "",
2738
2535
  html: n,
2739
2536
  excerpt: A(r) ? r.rendered : r
2740
2537
  };
2741
2538
  }
2742
- function $r({ parent: e, title: t, html: n, project: r, author: i, ...a }) {
2539
+ function ar({ parent: t, title: e, html: n, project: r, author: i, ...a }) {
2743
2540
  return {
2744
2541
  ...a,
2745
- author: I(i),
2746
- parent: I(e),
2747
- title: F(t),
2542
+ author: T(i),
2543
+ parent: T(t),
2544
+ title: R(e),
2748
2545
  "acf[html]": n,
2749
2546
  "acf[project]": A(r) ? r.id || r.ID : r
2750
2547
  };
2751
2548
  }
2752
- var le = { isPlugin: !0 }, Xr = {
2549
+ var re = { isPlugin: !0 }, or = {
2753
2550
  em_token: "em_access_token",
2754
2551
  em_refresh_token: "em_refresh_token",
2755
2552
  em_elements_view: "em_elements_view",
@@ -2780,13 +2577,13 @@ var le = { isPlugin: !0 }, Xr = {
2780
2577
  em_last_active_page: "em_last_active_page",
2781
2578
  em_layout_convert_never_suggest: "em_layout_convert_never_suggest"
2782
2579
  };
2783
- b("application_element_settings_set"), b("application_subject_update"), b("application_preheader_update"), b("application_domparser_error"), b("application_update_entity"), b("application_iframe_drag_event"), b("application_has_amp"), b("application_atom_inserted"), b("SANDBOX_READY"), b("sandbox_subject_update"), b("sandbox_preheader_update"), b("sandbox_drag_event"), b("sandbox_add_mergetag"), b("sandbox_send_translations"), b("sandbox_send_theme_variables"), b("sandbox_set_entity"), b("sandbox_init_start"), b("sandbox_inited"), b("sandbox_update_entity"), b("reload"), b("sandbox_add_extensions"), b("sandbox_remove_extensions"), b("sandbox_add_script"), b("sandbox_is_email_empty"), b("sandbox_switch_theme");
2784
- var Qr = {
2580
+ h("application_element_settings_set"), h("application_subject_update"), h("application_preheader_update"), h("application_domparser_error"), h("application_update_entity"), h("application_iframe_drag_event"), h("application_has_amp"), h("application_atom_inserted"), h("SANDBOX_READY"), h("sandbox_subject_update"), h("sandbox_preheader_update"), h("sandbox_drag_event"), h("sandbox_add_mergetag"), h("sandbox_send_translations"), h("sandbox_send_theme_variables"), h("sandbox_set_entity"), h("sandbox_init_start"), h("sandbox_inited"), h("sandbox_update_entity"), h("reload"), h("sandbox_add_extensions"), h("sandbox_remove_extensions"), h("sandbox_add_script"), h("sandbox_is_email_empty"), h("sandbox_switch_theme");
2581
+ var lr = {
2785
2582
  ALL: "All",
2786
2583
  STANDARD: "Standard",
2787
2584
  PROJECT: "Project"
2788
2585
  };
2789
- var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", Ut = K({
2586
+ var sr = "Edit selected element", Ze = "Build", vt = "desktop", dr = "mobile", St = W({
2790
2587
  reducerPath: "blocksApi",
2791
2588
  tagTypes: [
2792
2589
  "Blocks",
@@ -2794,24 +2591,24 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2794
2591
  "ParentsBlocks",
2795
2592
  "Block"
2796
2593
  ],
2797
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
2798
- endpoints: (e) => ({
2799
- getBlocks: e.query({
2800
- queryFn(t, n) {
2594
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
2595
+ endpoints: (t) => ({
2596
+ getBlocks: t.query({
2597
+ queryFn(e, n) {
2801
2598
  const r = _(n), i = {
2802
2599
  order: "desc",
2803
2600
  orderby: "modified"
2804
2601
  }, a = {};
2805
- if (t.notEmbed || (a._embed = ""), t.projectId && (a._embed = "author", a._fields = "id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.global_block,acf.html,_embedded", i["filter[meta_key]"] = "project", i["filter[meta_value]"] = t.projectId), t.fields && (a._fields = t.fields), t.page && (i.page = t.page), t.order && (i.order = t.order), t.orderby && (i.orderby = t.orderby), t.folderTag && t.folderTag !== "all" ? (i["filter[tax_query][relation]"] = "AND", i["filter[tax_query][0][taxonomy]"] = "blockfolder", i["filter[tax_query][0][field]"] = "id", i["filter[tax_query][0][terms]"] = t.folderTag, i["filter[tax_query][0][include_children]"] = "0") : t.hasOwnProperty("folderTag") && (t.folderTag !== "all" || typeof t.folderTag == "object" && t.folderTag === null) && !t.tags?.length && t.status && t.status !== "trash" && (i["filter[tax_query][0][taxonomy]"] = "blockfolder", i["filter[tax_query][0][operator]"] = "NOT EXISTS"), t.tags?.length > 0 && t.status !== "trash") {
2602
+ if (e.notEmbed || (a._embed = ""), e.projectId && (a._embed = "author", a._fields = "id,title,blocktags,blockfolder,group,modified,date,type,acf.lock,acf.project.ID,acf.type,author,acf.is_template,acf.global_block,acf.html,_embedded", i["filter[meta_key]"] = "project", i["filter[meta_value]"] = e.projectId), e.fields && (a._fields = e.fields), e.page && (i.page = e.page), e.order && (i.order = e.order), e.orderby && (i.orderby = e.orderby), e.folderTag && e.folderTag !== "all" ? (i["filter[tax_query][relation]"] = "AND", i["filter[tax_query][0][taxonomy]"] = "blockfolder", i["filter[tax_query][0][field]"] = "id", i["filter[tax_query][0][terms]"] = e.folderTag, i["filter[tax_query][0][include_children]"] = "0") : e.hasOwnProperty("folderTag") && (e.folderTag !== "all" || typeof e.folderTag == "object" && e.folderTag === null) && !e.tags?.length && e.status && e.status !== "trash" && (i["filter[tax_query][0][taxonomy]"] = "blockfolder", i["filter[tax_query][0][operator]"] = "NOT EXISTS"), e.tags?.length > 0 && e.status !== "trash") {
2806
2603
  i["filter[tax_query][relation]"] = "AND";
2807
- for (let o = 0, c = t.tags.length; o < c; o++) {
2808
- const f = t.tags[o];
2604
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2605
+ const f = e.tags[o];
2809
2606
  i[`filter[tax_query][${o + 1}][taxonomy]`] = "blocktags", i[`filter[tax_query][${o + 1}][field]`] = "id", i[`filter[tax_query][${o + 1}][terms]`] = f;
2810
2607
  }
2811
2608
  }
2812
- return t.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = t.type), t.name && (i.search = t.name), t.pageSize && (i.per_page = t.pageSize), t.status === "trash" && (a.status = "trash"), r.wp.eblock_list(i, { extraQuery: a }).then(x(M));
2609
+ return e.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = e.type), e.name && (i.search = e.name), e.pageSize && (i.per_page = e.pageSize), e.status === "trash" && (a.status = "trash"), r.wp.eblock_list(i, { extraQuery: a }).then(C(M));
2813
2610
  },
2814
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2611
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2815
2612
  type: "Blocks",
2816
2613
  id: n
2817
2614
  })), {
@@ -2823,25 +2620,25 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2823
2620
  }],
2824
2621
  keepUnusedDataFor: 0
2825
2622
  }),
2826
- getBlocksSchema: e.query({ queryFn(t, n) {
2623
+ getBlocksSchema: t.query({ queryFn(e, n) {
2827
2624
  return _(n).wp.eblock_list(void 0, {
2828
2625
  method: "OPTIONS",
2829
2626
  extraQuery: { _fields: "schema.properties.acf" }
2830
2627
  });
2831
2628
  } }),
2832
- getParentEmailBlocks: e.query({
2833
- queryFn(t, n) {
2629
+ getParentEmailBlocks: t.query({
2630
+ queryFn(e, n) {
2834
2631
  const r = _(n), i = { "filter[meta_query][0][compare]": "LIKE" }, a = {};
2835
- if (t.notEmbed || (a._embed = ""), t.emailId && (i["filter[meta_query][0][key]"] = "related_email", i["filter[meta_query][0][value]"] = t.emailId), t.fields && (a._fields = t.fields), t.page && (i.page = t.page), t.tags?.length > 0) {
2632
+ if (e.notEmbed || (a._embed = ""), e.emailId && (i["filter[meta_query][0][key]"] = "related_email", i["filter[meta_query][0][value]"] = e.emailId), e.fields && (a._fields = e.fields), e.page && (i.page = e.page), e.tags?.length > 0) {
2836
2633
  i["filter[tax_query][relation]"] = "AND";
2837
- for (let o = 0, c = t.tags.length; o < c; o++) {
2838
- const f = t.tags[o];
2634
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2635
+ const f = e.tags[o];
2839
2636
  i[`filter[tax_query][${o}][taxonomy]`] = "blocktags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
2840
2637
  }
2841
2638
  }
2842
- return t.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = t.type), t.name && (i.search = t.name), t.pageSize && (i.per_page = t.pageSize), r.wp.eblock_list(i, { extraQuery: a }).then(x(M));
2639
+ return e.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = e.type), e.name && (i.search = e.name), e.pageSize && (i.per_page = e.pageSize), r.wp.eblock_list(i, { extraQuery: a }).then(C(M));
2843
2640
  },
2844
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2641
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2845
2642
  type: "ParentsBlocks",
2846
2643
  id: n
2847
2644
  })), {
@@ -2853,24 +2650,24 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2853
2650
  }],
2854
2651
  keepUnusedDataFor: 0
2855
2652
  }),
2856
- getTemplateBlocks: e.query({
2857
- queryFn: (t, n) => {
2653
+ getTemplateBlocks: t.query({
2654
+ queryFn: (e, n) => {
2858
2655
  const r = _(n), i = {
2859
2656
  "filter[meta_query][1][key]": "is_template",
2860
2657
  "filter[meta_query][1][value]": "1",
2861
2658
  orderby: "modified",
2862
2659
  order: "desc"
2863
2660
  }, a = {};
2864
- if (t.notEmbed || (a._embed = ""), t.fields && (a._fields = t.fields), t.page && (i.page = t.page), t.tags?.length > 0) {
2661
+ if (e.notEmbed || (a._embed = ""), e.fields && (a._fields = e.fields), e.page && (i.page = e.page), e.tags?.length > 0) {
2865
2662
  i["filter[tax_query][relation]"] = "AND";
2866
- for (let o = 0, c = t.tags.length; o < c; o++) {
2867
- const f = t.tags[o];
2663
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2664
+ const f = e.tags[o];
2868
2665
  i[`filter[tax_query][${o}][taxonomy]`] = "blocktags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
2869
2666
  }
2870
2667
  }
2871
- return t.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = t.type), t.name && (i.search = t.name), t.pageSize && (i.per_page = t.pageSize), r.wp.eblock_list(i, { extraQuery: a }).then(x(M));
2668
+ return e.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = e.type), e.name && (i.search = e.name), e.pageSize && (i.per_page = e.pageSize), r.wp.eblock_list(i, { extraQuery: a }).then(C(M));
2872
2669
  },
2873
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2670
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2874
2671
  type: "TemplatesBlocks",
2875
2672
  id: n
2876
2673
  })), {
@@ -2882,220 +2679,220 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2882
2679
  }],
2883
2680
  keepUnusedDataFor: 0
2884
2681
  }),
2885
- getBlock: e.query({
2886
- queryFn(t, n) {
2887
- return _(n).wp.eblock_detail({ id: I(t) }, { extraQuery: { _embed: "" } }).then(S(M));
2682
+ getBlock: t.query({
2683
+ queryFn(e, n) {
2684
+ return _(n).wp.eblock_detail({ id: T(e) }, { extraQuery: { _embed: "" } }).then(S(M));
2888
2685
  },
2889
- providesTags: (t, n, r) => [{
2686
+ providesTags: (e, n, r) => [{
2890
2687
  type: "Block",
2891
2688
  id: r
2892
2689
  }],
2893
2690
  keepUnusedDataFor: 0
2894
2691
  }),
2895
- getBlockHistory: e.query({
2896
- queryFn({ blockId: t, page: n = 1 }, r) {
2692
+ getBlockHistory: t.query({
2693
+ queryFn({ blockId: e, page: n = 1 }, r) {
2897
2694
  return _(r).wp.eblock_revisions_list({
2898
- parent: t,
2695
+ parent: e,
2899
2696
  per_page: 20,
2900
2697
  page: n
2901
- }, { extraQuery: { _fields: "author,slug,date,modified,title,acf.html,acf.common_styles,id" } }).then((i) => ce(i, (a, o) => ({
2698
+ }, { extraQuery: { _fields: "author,slug,date,modified,title,acf.html,acf.common_styles,id" } }).then((i) => oe(i, (a, o) => ({
2902
2699
  data: a.filter((c) => c.acf.html).map((c) => ({
2903
2700
  ...c,
2904
2701
  acf: {
2905
2702
  ...c.acf,
2906
2703
  html: c.acf.html
2907
2704
  }
2908
- })).map(ut),
2705
+ })).map(Ye),
2909
2706
  totalPages: +o.response.headers.get("X-WP-TotalPages"),
2910
2707
  args: {
2911
- blockId: t,
2708
+ blockId: e,
2912
2709
  page: n
2913
2710
  }
2914
2711
  })));
2915
2712
  },
2916
2713
  keepUnusedDataFor: 0
2917
2714
  }),
2918
- addBlock: e.mutation({
2919
- queryFn(t, n) {
2715
+ addBlock: t.mutation({
2716
+ queryFn(e, n) {
2920
2717
  return _(n).wp.eblock_create({
2921
- ...st(t),
2718
+ ...Je(e),
2922
2719
  status: "publish"
2923
- }, { type: C.Json }).then(S(M));
2720
+ }, { type: k.Json }).then(S(M));
2924
2721
  },
2925
2722
  invalidatesTags: [{
2926
2723
  type: "Blocks",
2927
2724
  id: "LIST"
2928
2725
  }]
2929
2726
  }),
2930
- editBlock: e.mutation({ queryFn: Ce((t) => ({ blockId: n, source: r, ...i }, a) => {
2931
- const o = _(t), c = Y(st(i));
2727
+ editBlock: t.mutation({ queryFn: Te((e) => ({ blockId: n, source: r, ...i }, a) => {
2728
+ const o = _(e), c = Q(Je(i));
2932
2729
  return o.wp.eblock_partial_update({ id: n }, c, {
2933
- type: C.Json,
2730
+ type: k.Json,
2934
2731
  extraQuery: { _embed: "wp:term" }
2935
2732
  }).then(S(M));
2936
2733
  }) }),
2937
- deleteBlock: e.mutation({
2938
- queryFn(t, n) {
2734
+ deleteBlock: t.mutation({
2735
+ queryFn(e, n) {
2939
2736
  const r = _(n);
2940
2737
  let i, a;
2941
- return typeof t == "object" ? (i = t.id, a = t.force) : (i = t, a = !1), r.wp.eblock_delete({ id: i }, { force: a }).then(qe(M));
2738
+ return typeof e == "object" ? (i = e.id, a = e.force) : (i = e, a = !1), r.wp.eblock_delete({ id: i }, { force: a }).then(Ne(M));
2942
2739
  },
2943
- invalidatesTags: (t, n, r) => [{
2740
+ invalidatesTags: (e, n, r) => [{
2944
2741
  type: "Blocks",
2945
2742
  id: r
2946
2743
  }]
2947
2744
  }),
2948
- addTag: e.mutation({ queryFn(t, n) {
2949
- return _(n).wp.blocktags_create({ ...t }, { type: C.Json });
2745
+ addTag: t.mutation({ queryFn(e, n) {
2746
+ return _(n).wp.blocktags_create({ ...e }, { type: k.Json });
2950
2747
  } }),
2951
- getDeletableTag: e.query({ queryFn([t, n], r) {
2748
+ getDeletableTag: t.query({ queryFn([e, n], r) {
2952
2749
  return _(r).wp.eblock_list({
2953
2750
  status: ["private"],
2954
2751
  "filter[meta_key]": "project",
2955
- "filter[meta_value]": t,
2752
+ "filter[meta_value]": e,
2956
2753
  blocktags: [n]
2957
- }, { extraQuery: { "_fields[]": "blocktags" } }).then(x(M));
2754
+ }, { extraQuery: { "_fields[]": "blocktags" } }).then(C(M));
2958
2755
  } }),
2959
- autoSaveBlock: e.mutation({ queryFn({ blockId: t, body: n }, r) {
2960
- const i = _(r), a = $r(n);
2961
- return i.wp.eblock_autosaves_create({ id: t }, a, { type: C.FormData }).then(S(ut));
2756
+ autoSaveBlock: t.mutation({ queryFn({ blockId: e, body: n }, r) {
2757
+ const i = _(r), a = ar(n);
2758
+ return i.wp.eblock_autosaves_create({ id: e }, a, { type: k.FormData }).then(S(Ye));
2962
2759
  } })
2963
2760
  })
2964
- }), { useGetBlocksQuery: Zi, useGetBlockQuery: ea, useLazyGetBlockQuery: ta, useGetBlockHistoryQuery: na, useLazyGetBlockHistoryQuery: ra, useGetBlocksSchemaQuery: ia, useGetParentEmailBlocksQuery: aa, useAddBlockMutation: oa, useEditBlockMutation: la, useAddTagMutation: sa, useAutoSaveBlockMutation: ua, useGetTemplateBlocksQuery: da } = Ut, ct = window.localStorage?.getItem(B.em_code_mode_settings), ye = ct && JSON.parse(ct), xe = {
2761
+ }), { useGetBlocksQuery: ci, useGetBlockQuery: fi, useLazyGetBlockQuery: mi, useGetBlockHistoryQuery: pi, useLazyGetBlockHistoryQuery: _i, useGetBlocksSchemaQuery: Ei, useGetParentEmailBlocksQuery: gi, useAddBlockMutation: bi, useEditBlockMutation: hi, useAddTagMutation: yi, useAutoSaveBlockMutation: vi, useGetTemplateBlocksQuery: Si } = St, et = window.localStorage?.getItem(B.em_code_mode_settings), Ee = et && JSON.parse(et), Ie = {
2965
2762
  activeModal: "",
2966
- lastActiveSettingsTab: dt,
2967
- activeSettingsTab: dt,
2763
+ lastActiveSettingsTab: Ze,
2764
+ activeSettingsTab: Ze,
2968
2765
  isPanelHistoryCollapsed: !0,
2969
2766
  monacoHeight: 0,
2970
- isCodeMode: ye?.isCodeMode || le.isPlugin && ye?.isCodeMode === void 0,
2971
- codeModeDirection: ye?.codeModeDirection || "left",
2767
+ isCodeMode: Ee?.isCodeMode || re.isPlugin && Ee?.isCodeMode === void 0,
2768
+ codeModeDirection: Ee?.codeModeDirection || "left",
2972
2769
  isHeaderCodeMenuOpen: {
2973
2770
  current: !1,
2974
2771
  switched: !1
2975
2772
  },
2976
2773
  emailWidth: "100%",
2977
- emailViewType: qt,
2774
+ emailViewType: vt,
2978
2775
  mobileViewActive: {
2979
2776
  shutdown: !0,
2980
2777
  styles: !0
2981
2778
  },
2982
2779
  emailMaxWidthSize: 425,
2983
- propertiesPanelKey: Kr,
2780
+ propertiesPanelKey: sr,
2984
2781
  parentBlocks: [],
2985
2782
  isGlobalLoading: !1
2986
2783
  };
2987
2784
  localStorage.getItem(B.em_code_mode_settings) || window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2988
- codeModeDirection: xe.codeModeDirection,
2989
- isCodeMode: xe.isCodeMode
2785
+ codeModeDirection: Ie.codeModeDirection,
2786
+ isCodeMode: Ie.isCodeMode
2990
2787
  }));
2991
- var { openModal: ca, closeModal: fa, setActiveSettingsTab: ma, resetToLastActiveSettingsTab: pa, switchIsPanelHistoryCollapsed: _a, setEmailWidth: Ea, switchCodeMode: ga, switchCodeModeDirection: ha, setMobileViewActive: ba, setEmailViewType: ya, setCodeMode: ei, setEmailMaxWidthSize: va, setPropertiesPanelKey: Sa, resetParentBlocks: Aa, setIsGlobalLoading: Ta, setHeaderCodeMenuOpen: Ia } = de({
2788
+ var { openModal: Ai, closeModal: Ti, setActiveSettingsTab: Ii, resetToLastActiveSettingsTab: wi, switchIsPanelHistoryCollapsed: Pi, setEmailWidth: ki, switchCodeMode: Ci, switchCodeModeDirection: xi, setMobileViewActive: Mi, setEmailViewType: Di, setCodeMode: fr, setEmailMaxWidthSize: Oi, setPropertiesPanelKey: Ri, resetParentBlocks: Ni, setIsGlobalLoading: Bi, setHeaderCodeMenuOpen: Li } = ae({
2992
2789
  name: "emailPageSlice",
2993
- initialState: xe,
2790
+ initialState: Ie,
2994
2791
  reducers: {
2995
- openModal: (e, t) => {
2996
- e.activeModal = t.payload;
2792
+ openModal: (t, e) => {
2793
+ t.activeModal = e.payload;
2997
2794
  },
2998
- closeModal: (e) => {
2999
- e.activeModal = "";
2795
+ closeModal: (t) => {
2796
+ t.activeModal = "";
3000
2797
  },
3001
- setActiveSettingsTab: (e, t) => {
3002
- e.lastActiveSettingsTab = e.activeSettingsTab, e.activeSettingsTab = t.payload, t.payload !== "History" && (e.isPanelHistoryCollapsed = !0);
2798
+ setActiveSettingsTab: (t, e) => {
2799
+ t.lastActiveSettingsTab = t.activeSettingsTab, t.activeSettingsTab = e.payload, e.payload !== "History" && (t.isPanelHistoryCollapsed = !0);
3003
2800
  },
3004
- resetToLastActiveSettingsTab: (e) => {
3005
- e.lastActiveSettingsTab === "Properties" ? e.activeSettingsTab = "Build" : e.activeSettingsTab = e.lastActiveSettingsTab, e.lastActiveSettingsTab !== "History" && (e.isPanelHistoryCollapsed = !0);
2801
+ resetToLastActiveSettingsTab: (t) => {
2802
+ t.lastActiveSettingsTab === "Properties" ? t.activeSettingsTab = "Build" : t.activeSettingsTab = t.lastActiveSettingsTab, t.lastActiveSettingsTab !== "History" && (t.isPanelHistoryCollapsed = !0);
3006
2803
  },
3007
- switchIsPanelHistoryCollapsed: (e, t) => {
3008
- e.isPanelHistoryCollapsed = t.payload || !e.isPanelHistoryCollapsed;
2804
+ switchIsPanelHistoryCollapsed: (t, e) => {
2805
+ t.isPanelHistoryCollapsed = e.payload || !t.isPanelHistoryCollapsed;
3009
2806
  },
3010
- setEmailWidth: (e, { payload: t }) => {
3011
- e.emailWidth = t, e.emailViewType = t > e.emailMaxWidthSize || t === "100%" ? qt : Jr, window.localStorage.setItem(B.em_default_sizes, JSON.stringify(t));
2807
+ setEmailWidth: (t, { payload: e }) => {
2808
+ t.emailWidth = e, t.emailViewType = e > t.emailMaxWidthSize || e === "100%" ? vt : dr, window.localStorage.setItem(B.em_default_sizes, JSON.stringify(e));
3012
2809
  },
3013
- setEmailMaxWidthSize: (e, { payload: t }) => {
3014
- e.emailMaxWidthSize = t;
2810
+ setEmailMaxWidthSize: (t, { payload: e }) => {
2811
+ t.emailMaxWidthSize = e;
3015
2812
  },
3016
- setEmailViewType: (e, t) => {
3017
- e.emailViewType = t.payload;
2813
+ setEmailViewType: (t, e) => {
2814
+ t.emailViewType = e.payload;
3018
2815
  },
3019
- switchCodeMode: (e) => {
3020
- const t = !e.isCodeMode;
3021
- e.isCodeMode = t, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
3022
- codeModeDirection: e.codeModeDirection,
3023
- isCodeMode: t
2816
+ switchCodeMode: (t) => {
2817
+ const e = !t.isCodeMode;
2818
+ t.isCodeMode = e, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2819
+ codeModeDirection: t.codeModeDirection,
2820
+ isCodeMode: e
3024
2821
  }));
3025
2822
  },
3026
- setCodeMode: (e, t) => {
3027
- const n = t.payload;
3028
- e.isCodeMode !== n && (e.isCodeMode = n, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
3029
- codeModeDirection: e.codeModeDirection,
2823
+ setCodeMode: (t, e) => {
2824
+ const n = e.payload;
2825
+ t.isCodeMode !== n && (t.isCodeMode = n, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2826
+ codeModeDirection: t.codeModeDirection,
3030
2827
  isCodeMode: n
3031
2828
  })));
3032
2829
  },
3033
- switchCodeModeDirection: (e, t) => {
3034
- e.codeModeDirection = t.payload, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
3035
- isCodeMode: e.isCodeMode,
3036
- codeModeDirection: t.payload
2830
+ switchCodeModeDirection: (t, e) => {
2831
+ t.codeModeDirection = e.payload, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2832
+ isCodeMode: t.isCodeMode,
2833
+ codeModeDirection: e.payload
3037
2834
  }));
3038
2835
  },
3039
- setMobileViewActive: (e, t) => {
3040
- e.mobileViewActive = t.payload;
2836
+ setMobileViewActive: (t, e) => {
2837
+ t.mobileViewActive = e.payload;
3041
2838
  },
3042
- setPropertiesPanelKey: (e, t) => {
3043
- e.propertiesPanelKey = t.payload;
2839
+ setPropertiesPanelKey: (t, e) => {
2840
+ t.propertiesPanelKey = e.payload;
3044
2841
  },
3045
- resetParentBlocks: (e) => {
3046
- e.parentBlocks = [];
2842
+ resetParentBlocks: (t) => {
2843
+ t.parentBlocks = [];
3047
2844
  },
3048
- setParentBlocks: (e, t) => {
3049
- e.parentBlocks = t.payload;
2845
+ setParentBlocks: (t, e) => {
2846
+ t.parentBlocks = e.payload;
3050
2847
  },
3051
- setIsGlobalLoading: (e, t) => {
3052
- e.isGlobalLoading = t.payload;
2848
+ setIsGlobalLoading: (t, e) => {
2849
+ t.isGlobalLoading = e.payload;
3053
2850
  },
3054
- setHeaderCodeMenuOpen: (e, t) => {
3055
- e.isHeaderCodeMenuOpen.current && !t.payload ? e.isHeaderCodeMenuOpen.switched = !0 : e.isHeaderCodeMenuOpen.switched = !1, e.isHeaderCodeMenuOpen.current = t.payload;
2851
+ setHeaderCodeMenuOpen: (t, e) => {
2852
+ t.isHeaderCodeMenuOpen.current && !e.payload ? t.isHeaderCodeMenuOpen.switched = !0 : t.isHeaderCodeMenuOpen.switched = !1, t.isHeaderCodeMenuOpen.current = e.payload;
3056
2853
  }
3057
2854
  },
3058
- extraReducers: (e) => {
3059
- e.addMatcher(Ut.endpoints.getParentEmailBlocks.matchFulfilled, (t, n) => {
3060
- t.parentBlocks = n.payload;
2855
+ extraReducers: (t) => {
2856
+ t.addMatcher(St.endpoints.getParentEmailBlocks.matchFulfilled, (e, n) => {
2857
+ e.parentBlocks = n.payload;
3061
2858
  });
3062
2859
  }
3063
- }).actions, ti = [
2860
+ }).actions, mr = [
3064
2861
  "is_paying",
3065
2862
  "is_paying_user",
3066
2863
  "paying",
3067
2864
  "paying_user"
3068
2865
  ];
3069
- function ve(e) {
3070
- if (!e || typeof e != "object") return !1;
3071
- const t = e;
3072
- for (const n of ti) {
3073
- const r = t[n];
2866
+ function ge(t) {
2867
+ if (!t || typeof t != "object") return !1;
2868
+ const e = t;
2869
+ for (const n of mr) {
2870
+ const r = e[n];
3074
2871
  if (r === !0 || r === 1 || r === "1" || typeof r == "string" && r.trim().toLowerCase() === "true") return !0;
3075
2872
  }
3076
2873
  return !1;
3077
2874
  }
3078
- function te(e) {
3079
- if (e === void 0) return;
3080
- if (e === null || e === "") return null;
3081
- const t = Number(e);
3082
- return Number.isFinite(t) ? t : null;
2875
+ function Y(t) {
2876
+ if (t === void 0) return;
2877
+ if (t === null || t === "") return null;
2878
+ const e = Number(t);
2879
+ return Number.isFinite(e) ? e : null;
3083
2880
  }
3084
- function ni(e) {
3085
- if (!e) return !1;
3086
- const t = e, n = t.trial_enabled ?? t.trial ?? t.is_get_trial;
2881
+ function pr(t) {
2882
+ if (!t) return !1;
2883
+ const e = t, n = e.trial_enabled ?? e.trial ?? e.is_get_trial;
3087
2884
  return n === !0 || n === 1 || n === "1" || typeof n == "string" && n.toLowerCase() === "true";
3088
2885
  }
3089
- function Se(e) {
3090
- const t = e.acf ?? {}, { autosaves: n, hide_mergetags: r, theme: i, newsletter_consent: a, code_editor: o, counters: c, subscription: f, subscription_end: m, recurring_payments: p, subscription_id: s, promocode: l, subscription_amount: u, enterprise_users_limit: d, enterprise_price: E, enterprise_12_price: g, privacy_policy_agreement: h, last_used_project: w, email_confirmation: L, email_builder_config: U } = t, { id: fe, acf: Ve, ...G } = e, Jt = ni(t), He = c ?? {}, Yt = ve(t) || ve(G) || ve(e.meta);
2886
+ function be(t) {
2887
+ const e = t.acf ?? {}, { autosaves: n, hide_mergetags: r, theme: i, newsletter_consent: a, code_editor: o, counters: c, subscription: f, subscription_end: m, recurring_payments: p, subscription_id: s, promocode: l, subscription_amount: d, enterprise_users_limit: u, enterprise_price: E, enterprise_12_price: g, privacy_policy_agreement: b, last_used_project: I, email_confirmation: N, email_builder_config: j } = e, { id: le, acf: Le, ...q } = t, Dt = pr(e), Fe = c ?? {}, Ot = ge(e) || ge(q) || ge(t.meta);
3091
2888
  return {
3092
- ...G,
3093
- id: y(fe),
3094
- username: G.username || "",
3095
- email: G.email || "",
3096
- password: G.password || "",
3097
- trial_enabled: Jt,
3098
- is_paying: Yt,
2889
+ ...q,
2890
+ id: y(le),
2891
+ username: q.username || "",
2892
+ email: q.email || "",
2893
+ password: q.password || "",
2894
+ trial_enabled: Dt,
2895
+ is_paying: Ot,
3099
2896
  autosaves: n,
3100
2897
  hide_mergetags: r,
3101
2898
  theme: i,
@@ -3104,30 +2901,30 @@ function Se(e) {
3104
2901
  ...o,
3105
2902
  font_size: Number(o.font_size)
3106
2903
  } : void 0,
3107
- counters: Object.keys(He).reduce((We, $e) => (We[$e] = Number(He[$e]), We), {}),
2904
+ counters: Object.keys(Fe).reduce((je, qe) => (je[qe] = Number(Fe[qe]), je), {}),
3108
2905
  subscription: f,
3109
2906
  subscription_end: m,
3110
2907
  recurring_payments: p,
3111
2908
  subscription_id: s,
3112
2909
  promocode: l,
3113
- subscription_amount: te(u),
3114
- enterprise_users_limit: te(d),
3115
- enterprise_price: te(E),
3116
- enterprise_12_price: te(g),
3117
- privacy_policy_agreement: h,
3118
- last_used_project: w,
3119
- email_confirmation: L,
3120
- email_builder_config: U
2910
+ subscription_amount: Y(d),
2911
+ enterprise_users_limit: Y(u),
2912
+ enterprise_price: Y(E),
2913
+ enterprise_12_price: Y(g),
2914
+ privacy_policy_agreement: b,
2915
+ last_used_project: I,
2916
+ email_confirmation: N,
2917
+ email_builder_config: j
3121
2918
  };
3122
2919
  }
3123
- function ri({ autosaves: e, theme: t, newsletter_consent: n, code_editor: r, counters: i, subscription: a, subscription_end: o, recurring_payments: c, subscription_id: f, promocode: m, subscription_amount: p, enterprise_users_limit: s, enterprise_price: l, enterprise_12_price: u, privacy_policy_agreement: d, locale: E, last_used_project: g, email_confirmation: h, email_builder_config: w, trial_enabled: L, is_paying: U, id: fe, ...Ve }) {
2920
+ function _r({ autosaves: t, theme: e, newsletter_consent: n, code_editor: r, counters: i, subscription: a, subscription_end: o, recurring_payments: c, subscription_id: f, promocode: m, subscription_amount: p, enterprise_users_limit: s, enterprise_price: l, enterprise_12_price: d, privacy_policy_agreement: u, locale: E, last_used_project: g, email_confirmation: b, email_builder_config: I, trial_enabled: N, is_paying: j, id: le, ...Le }) {
3124
2921
  return {
3125
- ...Ve,
3126
- id: I(fe),
2922
+ ...Le,
2923
+ id: T(le),
3127
2924
  locale: E,
3128
2925
  acf: {
3129
- autosaves: e,
3130
- theme: t,
2926
+ autosaves: t,
2927
+ theme: e,
3131
2928
  newsletter_consent: n,
3132
2929
  code_editor: r ? {
3133
2930
  ...r,
@@ -3142,210 +2939,210 @@ function ri({ autosaves: e, theme: t, newsletter_consent: n, code_editor: r, cou
3142
2939
  subscription_amount: p,
3143
2940
  enterprise_users_limit: s,
3144
2941
  enterprise_price: l,
3145
- enterprise_12_price: u,
3146
- privacy_policy_agreement: d,
2942
+ enterprise_12_price: d,
2943
+ privacy_policy_agreement: u,
3147
2944
  last_used_project: g,
3148
- email_confirmation: h,
3149
- email_builder_config: w,
3150
- ...L !== void 0 ? { trial_enabled: L } : {},
3151
- ...U !== void 0 ? { is_paying: U } : {}
2945
+ email_confirmation: b,
2946
+ email_builder_config: I,
2947
+ ...N !== void 0 ? { trial_enabled: N } : {},
2948
+ ...j !== void 0 ? { is_paying: j } : {}
3152
2949
  }
3153
2950
  };
3154
2951
  }
3155
- function ii({ title: e, acf: { limits: t, price: n }, ...r }) {
2952
+ function Er({ title: t, acf: { limits: e, price: n }, ...r }) {
3156
2953
  return {
3157
2954
  ...r,
3158
- title: F(e) || "",
3159
- limits: t,
2955
+ title: R(t) || "",
2956
+ limits: e,
3160
2957
  price: n
3161
2958
  };
3162
2959
  }
3163
- var Gt = K({
2960
+ var At = W({
3164
2961
  reducerPath: "authorizationApi",
3165
- baseQuery: Z({
2962
+ baseQuery: K({
3166
2963
  baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/",
3167
- prepareHeaders: (e) => {
3168
- const t = ln.get(Xr.em_token);
3169
- return t && !e.has("authorization") && e.set("authorization", `Bearer ${t}`), e;
2964
+ prepareHeaders: (t) => {
2965
+ const e = Ut.get(or.em_token);
2966
+ return e && !t.has("authorization") && t.set("authorization", `Bearer ${e}`), t;
3170
2967
  }
3171
2968
  }),
3172
- endpoints: (e) => ({
3173
- getMailConfirmation: e.query({ queryFn(t, n) {
3174
- return _(n).wp.confirmation_list({ ...t });
2969
+ endpoints: (t) => ({
2970
+ getMailConfirmation: t.query({ queryFn(e, n) {
2971
+ return _(n).wp.confirmation_list({ ...e });
3175
2972
  } }),
3176
- getSchema: e.query({ queryFn(t, n) {
2973
+ getSchema: t.query({ queryFn(e, n) {
3177
2974
  return _(n).wp.users_me_list(void 0, {
3178
2975
  method: "OPTIONS",
3179
2976
  extraQuery: { _fields: "schema" }
3180
2977
  });
3181
2978
  } }),
3182
- getMe: e.query({
2979
+ getMe: t.query({
3183
2980
  query: () => {
3184
- const t = "https://app.emailmaker.ru/api/v2".replace(/\/+$/, ""), n = typeof window < "u" ? window.location.origin : "";
2981
+ const e = "https://app.emailmaker.ru/api/v2".replace(/\/+$/, ""), n = typeof window < "u" ? window.location.origin : "";
3185
2982
  return {
3186
- url: `${t.startsWith("http") ? t : `${n}${t}`}/auth/user`,
2983
+ url: `${e.startsWith("http") ? e : `${n}${e}`}/auth/user`,
3187
2984
  method: "GET"
3188
2985
  };
3189
2986
  },
3190
- transformResponse: (t) => Se(Array.isArray(t) ? t[0] : t)
2987
+ transformResponse: (e) => be(Array.isArray(e) ? e[0] : e)
3191
2988
  }),
3192
- getUser: e.query({ queryFn(t, n) {
3193
- return _(n).wp.users_detail({ id: t }).then(S(Se));
2989
+ getUser: t.query({ queryFn(e, n) {
2990
+ return _(n).wp.users_detail({ id: e }).then(S(be));
3194
2991
  } }),
3195
- editMe: e.mutation({ queryFn(t, n) {
3196
- const r = _(n), i = Y(ri(t), !0);
3197
- return r.wp.users_me_create(i, { type: C.Json }).then(S(Se));
2992
+ editMe: t.mutation({ queryFn(e, n) {
2993
+ const r = _(n), i = Q(_r(e), !0);
2994
+ return r.wp.users_me_create(i, { type: k.Json }).then(S(be));
3198
2995
  } }),
3199
- getSubscriptions: e.query({ queryFn(t, n) {
3200
- return _(n).wp.subscription_list(void 0).then(x(ii));
2996
+ getSubscriptions: t.query({ queryFn(e, n) {
2997
+ return _(n).wp.subscription_list(void 0).then(C(Er));
3201
2998
  } }),
3202
- activateTrial: e.mutation({ query: (t) => ({
2999
+ activateTrial: t.mutation({ query: (e) => ({
3203
3000
  url: `${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g, "")}/wp-json/subscription/v2/activate_trial`,
3204
3001
  method: "GET",
3205
3002
  headers: {
3206
- Authorization: `Bearer ${t}`,
3003
+ Authorization: `Bearer ${e}`,
3207
3004
  "Content-Type": "application/json"
3208
3005
  }
3209
3006
  }) })
3210
3007
  })
3211
- }), { useGetMeQuery: wa, useLazyGetMeQuery: Pa, useEditMeMutation: ka, useLazyGetSchemaQuery: Ca, useGetSubscriptionsQuery: xa, useLazyGetMailConfirmationQuery: Oa, useActivateTrialMutation: Ma } = Gt, zt = "configSlice", ft = jt("pro");
3212
- function ze(e) {
3213
- return e.user.mode || e.serverSide.mode || localStorage.getItem("configSwither") || "pro";
3008
+ }), { useGetMeQuery: Fi, useLazyGetMeQuery: ji, useEditMeMutation: qi, useLazyGetSchemaQuery: Ui, useGetSubscriptionsQuery: Gi, useLazyGetMailConfirmationQuery: zi, useActivateTrialMutation: Vi } = At, Tt = "configSlice", tt = yt("pro");
3009
+ function Be(t) {
3010
+ return t.user.mode || t.serverSide.mode || localStorage.getItem("configSwither") || "pro";
3214
3011
  }
3215
- function Vt(e) {
3216
- return jt(ze(e))?.config || {};
3012
+ function It(t) {
3013
+ return yt(Be(t))?.config || {};
3217
3014
  }
3218
- function Ht(e) {
3219
- const t = ze(e);
3220
- return e.serverSide.advancedConfigs?.[t] || {};
3015
+ function wt(t) {
3016
+ const e = Be(t);
3017
+ return t.serverSide.advancedConfigs?.[e] || {};
3221
3018
  }
3222
- function Wt(e) {
3223
- const t = ze(e), n = e?.user?.advancedConfigs?.[t], r = n !== void 0 ? n : e?.user?.advancedConfigs?.pro;
3019
+ function Pt(t) {
3020
+ const e = Be(t), n = t?.user?.advancedConfigs?.[e], r = n !== void 0 ? n : t?.user?.advancedConfigs?.pro;
3224
3021
  return {
3225
- ...e?.advancedConfigs?.[t] || {},
3022
+ ...t?.advancedConfigs?.[e] || {},
3226
3023
  ...r || {}
3227
3024
  };
3228
3025
  }
3229
- function Ae(e) {
3230
- const t = Vt(e), n = Ht(e);
3026
+ function he(t) {
3027
+ const e = It(t), n = wt(t);
3231
3028
  return [
3232
- Wt(e),
3233
- e.user,
3029
+ Pt(t),
3030
+ t.user,
3234
3031
  n,
3235
- e.serverSide,
3236
- t,
3237
- e.base
3032
+ t.serverSide,
3033
+ e,
3034
+ t.base
3238
3035
  ];
3239
3036
  }
3240
- function ai(e) {
3241
- let t;
3242
- for (const n of e) n?.fileManager && (t = {
3243
- ...t || {},
3037
+ function gr(t) {
3038
+ let e;
3039
+ for (const n of t) n?.fileManager && (e = {
3040
+ ...e || {},
3244
3041
  ...n.fileManager
3245
3042
  });
3246
- return t;
3043
+ return e;
3247
3044
  }
3248
- function oi(e) {
3249
- return vr(e.map((t) => t?.resourceProxy));
3045
+ function br(t) {
3046
+ return on(t.map((e) => e?.resourceProxy));
3250
3047
  }
3251
- function li(e) {
3252
- return wr(e.map((t) => t?.resourceProxyPolicy));
3048
+ function hr(t) {
3049
+ return cn(t.map((e) => e?.resourceProxyPolicy));
3253
3050
  }
3254
- function si(e) {
3255
- return Sr(e.map((t) => t?.backendProxy));
3051
+ function yr(t) {
3052
+ return ln(t.map((e) => e?.backendProxy));
3256
3053
  }
3257
- function ui(e) {
3258
- return Ue(e.map((t) => t?.backendProxyPolicy || {}).filter(Boolean));
3054
+ function vr(t) {
3055
+ return Oe(t.map((e) => e?.backendProxyPolicy || {}).filter(Boolean));
3259
3056
  }
3260
- function ne(e) {
3261
- const t = Vt(e), n = Ht(e), r = Wt(e), i = [
3262
- e.base,
3263
- t,
3264
- e.serverSide,
3057
+ function Z(t) {
3058
+ const e = It(t), n = wt(t), r = Pt(t), i = [
3059
+ t.base,
3060
+ e,
3061
+ t.serverSide,
3265
3062
  n,
3266
- e.user,
3063
+ t.user,
3267
3064
  r
3268
- ], a = Ue(i), o = ai(i);
3065
+ ], a = Oe(i), o = gr(i);
3269
3066
  o !== void 0 && (a.fileManager = o);
3270
- const c = oi(i);
3067
+ const c = br(i);
3271
3068
  c !== void 0 && (a.resourceProxy = c);
3272
- const f = li(i);
3069
+ const f = hr(i);
3273
3070
  f && Object.keys(f).length > 0 && (a.resourceProxyPolicy = f);
3274
- const m = si(i);
3071
+ const m = yr(i);
3275
3072
  m !== void 0 && (a.backendProxy = m);
3276
- const p = ui(i);
3073
+ const p = vr(i);
3277
3074
  return p && Object.keys(p).length > 0 && (a.backendProxyPolicy = p), a;
3278
3075
  }
3279
- an("config/changeConfigModeWithCodeCheck", async (e, { dispatch: t, getState: n }) => {
3280
- t(ci(e)), t(Gt.endpoints.editMe.initiate({ email_builder_config: e })), await new Promise((a) => setTimeout(a, 0));
3076
+ jt("config/changeConfigModeWithCodeCheck", async (t, { dispatch: e, getState: n }) => {
3077
+ e(Ar(t)), e(At.endpoints.editMe.initiate({ email_builder_config: t })), await new Promise((a) => setTimeout(a, 0));
3281
3078
  const r = n(), i = r.emailPageSlice?.isCodeMode;
3282
- return r.configSlice?.config?.codeEnabled === !1 && i && t(ei(!1)), e;
3079
+ return r.configSlice?.config?.codeEnabled === !1 && i && e(fr(!1)), t;
3283
3080
  });
3284
- var di = de({
3285
- name: zt,
3081
+ var Sr = ae({
3082
+ name: Tt,
3286
3083
  initialState: () => {
3287
- const e = {
3288
- ...ft,
3084
+ const t = {
3085
+ ...tt,
3289
3086
  config: {
3290
- ...ft.config,
3087
+ ...tt.config,
3291
3088
  mergeTags: void 0
3292
3089
  }
3293
3090
  };
3294
3091
  return {
3295
- base: e.config,
3092
+ base: t.config,
3296
3093
  serverSide: {},
3297
3094
  user: {},
3298
3095
  advancedConfigs: {},
3299
- config: e.config,
3300
- page: e.page,
3301
- project: e.project,
3096
+ config: t.config,
3097
+ page: t.page,
3098
+ project: t.project,
3302
3099
  pluginDefaultCommonStyles: void 0,
3303
3100
  headless: !1
3304
3101
  };
3305
3102
  },
3306
3103
  reducers: {
3307
- setPage: (e, t) => {
3308
- e.page = t.payload;
3104
+ setPage: (t, e) => {
3105
+ t.page = e.payload;
3309
3106
  },
3310
- setAllConfigs: (e, { payload: t }) => {
3311
- e.user = t.user, e.serverSide = t.serverSide, e.advancedConfigs = {
3312
- ...t.advancedConfigs || {},
3313
- ...t.user?.advancedConfigs || {}
3314
- }, e.config = ne(e);
3107
+ setAllConfigs: (t, { payload: e }) => {
3108
+ t.user = e.user, t.serverSide = e.serverSide, t.advancedConfigs = {
3109
+ ...e.advancedConfigs || {},
3110
+ ...e.user?.advancedConfigs || {}
3111
+ }, t.config = Z(t);
3315
3112
  },
3316
- changeConfigMode: (e, t) => {
3317
- e.user.mode = t.payload, e.config = ne(e);
3113
+ changeConfigMode: (t, e) => {
3114
+ t.user.mode = e.payload, t.config = Z(t);
3318
3115
  },
3319
- setInitialMergeTags: (e, t) => {
3320
- e.base.mergeTags = t.payload, e.config.mergeTags = ge(Ae(e), "mergeTags");
3116
+ setInitialMergeTags: (t, e) => {
3117
+ t.base.mergeTags = e.payload, t.config.mergeTags = fe(he(t), "mergeTags");
3321
3118
  },
3322
- setMergeTags: (e, t) => {
3323
- e.user.mergeTags = t.payload, e.config.mergeTags = ge(Ae(e), "mergeTags");
3119
+ setMergeTags: (t, e) => {
3120
+ t.user.mergeTags = e.payload, t.config.mergeTags = fe(he(t), "mergeTags");
3324
3121
  },
3325
- setUserConfig: (e, { payload: t }) => {
3326
- e.user = t, e.config = ne(e);
3122
+ setUserConfig: (t, { payload: e }) => {
3123
+ t.user = e, t.config = Z(t);
3327
3124
  },
3328
- updateUserConfig: (e, { payload: t }) => {
3329
- e.user = {
3330
- ...e.user,
3331
- ...t
3332
- }, e.config = ne(e);
3125
+ updateUserConfig: (t, { payload: e }) => {
3126
+ t.user = {
3127
+ ...t.user,
3128
+ ...e
3129
+ }, t.config = Z(t);
3333
3130
  },
3334
- setProject: (e, t) => {
3335
- e.project = t.payload;
3131
+ setProject: (t, e) => {
3132
+ t.project = e.payload;
3336
3133
  },
3337
- setActiveNextButton: (e, t) => {
3338
- e.user.activeNextButton = t.payload, e.config.activeNextButton = ge(Ae(e), "activeNextButton") !== void 0;
3134
+ setActiveNextButton: (t, e) => {
3135
+ t.user.activeNextButton = e.payload, t.config.activeNextButton = fe(he(t), "activeNextButton") !== void 0;
3339
3136
  },
3340
- setPluginDefaultCommonStyles: (e, t) => {
3341
- t.payload === void 0 ? delete e.pluginDefaultCommonStyles : e.pluginDefaultCommonStyles = t.payload;
3137
+ setPluginDefaultCommonStyles: (t, e) => {
3138
+ e.payload === void 0 ? delete t.pluginDefaultCommonStyles : t.pluginDefaultCommonStyles = e.payload;
3342
3139
  },
3343
- setHeadless: (e, t) => {
3344
- e.headless = t.payload;
3140
+ setHeadless: (t, e) => {
3141
+ t.headless = e.payload;
3345
3142
  }
3346
3143
  },
3347
- extraReducers: (e) => {}
3348
- }), mt = (e) => e[zt].config, { setPage: Ra, setAllConfigs: Na, updateUserConfig: Fa, setUserConfig: La, setProject: Ba, setMergeTags: ja, changeConfigMode: ci, setInitialMergeTags: qa, setActiveNextButton: Ua, setPluginDefaultCommonStyles: Ga, setHeadless: za } = di.actions, X = K({
3144
+ extraReducers: (t) => {}
3145
+ }), nt = (t) => t[Tt].config, { setPage: Xi, setAllConfigs: $i, updateUserConfig: Wi, setUserConfig: Qi, setProject: Ki, setMergeTags: Ji, changeConfigMode: Ar, setInitialMergeTags: Yi, setActiveNextButton: Zi, setPluginDefaultCommonStyles: ea, setHeadless: ta } = Sr.actions, X = W({
3349
3146
  reducerPath: "emailsApi",
3350
3147
  tagTypes: [
3351
3148
  "Emails",
@@ -3353,26 +3150,26 @@ var di = de({
3353
3150
  "EmailAutosaves",
3354
3151
  "TemplateEmail"
3355
3152
  ],
3356
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3357
- endpoints: (e) => ({
3358
- getEmails: e.query({
3359
- queryFn(t, n) {
3153
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3154
+ endpoints: (t) => ({
3155
+ getEmails: t.query({
3156
+ queryFn(e, n) {
3360
3157
  const r = _(n), i = {
3361
3158
  order: "desc",
3362
3159
  orderby: "modified"
3363
3160
  }, a = {};
3364
- if (t.notEmbed || (a._embed = ""), t.projectId && (a._embed = "author", a._fields = "id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template,_embedded", i["filter[meta_key]"] = "project", i["filter[meta_value]"] = t.projectId), t.fields && (a._fields = t.fields), t.page && (i.page = t.page), t.order && (i.order = t.order), t.orderby && (i.orderby = t.orderby), t.folderTag && t.folderTag !== "all" ? (i["filter[tax_query][relation]"] = "AND", i["filter[tax_query][0][taxonomy]"] = "folder", i["filter[tax_query][0][field]"] = "id", i["filter[tax_query][0][terms]"] = t.folderTag, i["filter[tax_query][0][include_children]"] = "0") : (t.folderTag !== "all" || typeof t.folderTag == "object" && t.folderTag === null) && !t.tags?.length && t.status && t.status !== "trash" && (i["filter[tax_query][0][taxonomy]"] = "folder", i["filter[tax_query][0][operator]"] = "NOT EXISTS"), t.tags?.length > 0 && t.status !== "trash") {
3161
+ if (e.notEmbed || (a._embed = ""), e.projectId && (a._embed = "author", a._fields = "id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,author,acf.is_template,_embedded", i["filter[meta_key]"] = "project", i["filter[meta_value]"] = e.projectId), e.fields && (a._fields = e.fields), e.page && (i.page = e.page), e.order && (i.order = e.order), e.orderby && (i.orderby = e.orderby), e.folderTag && e.folderTag !== "all" ? (i["filter[tax_query][relation]"] = "AND", i["filter[tax_query][0][taxonomy]"] = "folder", i["filter[tax_query][0][field]"] = "id", i["filter[tax_query][0][terms]"] = e.folderTag, i["filter[tax_query][0][include_children]"] = "0") : (e.folderTag !== "all" || typeof e.folderTag == "object" && e.folderTag === null) && !e.tags?.length && e.status && e.status !== "trash" && (i["filter[tax_query][0][taxonomy]"] = "folder", i["filter[tax_query][0][operator]"] = "NOT EXISTS"), e.tags?.length > 0 && e.status !== "trash") {
3365
3162
  i["filter[tax_query][relation]"] = "AND";
3366
- for (let o = 0, c = t.tags.length; o < c; o++) {
3367
- const f = t.tags[o];
3163
+ for (let o = 0, c = e.tags.length; o < c; o++) {
3164
+ const f = e.tags[o];
3368
3165
  i[`filter[tax_query][${o + 1}][taxonomy]`] = "emailtags", i[`filter[tax_query][${o + 1}][field]`] = "id", i[`filter[tax_query][${o + 1}][terms]`] = f;
3369
3166
  }
3370
3167
  }
3371
- return t.name && (i.search = t.name), t.pageSize && (i.per_page = t.pageSize), t.status === "trash" && (a.status = "trash"), r.wp.email_list(i, { extraQuery: a }).then((o) => x(O)(o));
3168
+ return e.name && (i.search = e.name), e.pageSize && (i.per_page = e.pageSize), e.status === "trash" && (a.status = "trash"), r.wp.email_list(i, { extraQuery: a }).then((o) => C(x)(o));
3372
3169
  },
3373
- providesTags: (t, n, r, { response: i }) => {
3170
+ providesTags: (e, n, r, { response: i }) => {
3374
3171
  const a = i?.headers.get("X-WP-Total") || 0;
3375
- return t ? [...t.map(({ id: o }) => ({
3172
+ return e ? [...e.map(({ id: o }) => ({
3376
3173
  type: "Emails",
3377
3174
  id: `${r.folderTag || r.tags?.[0] || r.projectId}_${r.page}_${r.status}_${a}`
3378
3175
  })), {
@@ -3385,8 +3182,8 @@ var di = de({
3385
3182
  },
3386
3183
  keepUnusedDataFor: 0
3387
3184
  }),
3388
- getTemplateEmails: e.query({
3389
- queryFn(t, n) {
3185
+ getTemplateEmails: t.query({
3186
+ queryFn(e, n) {
3390
3187
  const r = _(n), i = {
3391
3188
  "filter[meta_query][1][key]": "is_template",
3392
3189
  "filter[meta_query][1][value]": "1",
@@ -3397,36 +3194,36 @@ var di = de({
3397
3194
  _embed: "author,wp:term",
3398
3195
  _fields: "_embedded,id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,acf.is_template"
3399
3196
  };
3400
- if (t.emailId && (i["filter[meta_query][0][key]"] = "parent_email", i["filter[meta_query][0][value]"] = t.emailId), t.fields && (a._fields = t.fields), t.group?.length > 0 || t.projectGroup?.length > 0) {
3401
- const o = [...t.group || [], ...t.projectGroup || []].reduce((f, { key: m, parentId: p }) => (f[p] || (f[p] = []), f[p].push(String(m)), f), {}), c = Object.values(o).map((f) => f.sort());
3197
+ if (e.emailId && (i["filter[meta_query][0][key]"] = "parent_email", i["filter[meta_query][0][value]"] = e.emailId), e.fields && (a._fields = e.fields), e.group?.length > 0 || e.projectGroup?.length > 0) {
3198
+ const o = [...e.group || [], ...e.projectGroup || []].reduce((f, { key: m, parentId: p }) => (f[p] || (f[p] = []), f[p].push(String(m)), f), {}), c = Object.values(o).map((f) => f.sort());
3402
3199
  i["filter[tax_query][relation]"] = "AND", c.forEach((f, m) => {
3403
3200
  i[`filter[tax_query][${m}][relation]`] = "OR", f.forEach((p, s) => {
3404
3201
  i[`filter[tax_query][${m}][${s}][taxonomy]`] = "group", i[`filter[tax_query][${m}][${s}][field]`] = "id", i[`filter[tax_query][${m}][${s}][terms]`] = p;
3405
3202
  });
3406
3203
  });
3407
3204
  }
3408
- if (t.tags?.length > 0) {
3205
+ if (e.tags?.length > 0) {
3409
3206
  i["filter[tax_query][relation]"] = "AND";
3410
- for (let o = 0, c = t.tags.length; o < c; o++) {
3411
- const f = t.tags[o];
3207
+ for (let o = 0, c = e.tags.length; o < c; o++) {
3208
+ const f = e.tags[o];
3412
3209
  i[`filter[tax_query][${o}][taxonomy]`] = "emailtags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
3413
3210
  }
3414
3211
  }
3415
- if (t.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = t.type), t.name && (i.search = t.name), t.pageSize && (i.per_page = t.pageSize), t.page) {
3416
- i.page = t.page;
3212
+ if (e.type && (i["filter[meta_query][2][key]"] = "type", i["filter[meta_query][2][value]"] = e.type), e.name && (i.search = e.name), e.pageSize && (i.per_page = e.pageSize), e.page) {
3213
+ i.page = e.page;
3417
3214
  const { groupsTemplateProjectTotal: o, groupsTemplateProjectTotalPages: c } = n.getState()?.projectSlice;
3418
- if (!t.projectGroup?.length && !t.group?.length && c < t.page && t.groupType === Qr.ALL && o && c && !t.projectId) {
3419
- const f = 24 - o % 24 + (t.page - (c + 1)) * 24;
3215
+ if (!e.projectGroup?.length && !e.group?.length && c < e.page && e.groupType === lr.ALL && o && c && !e.projectId) {
3216
+ const f = 24 - o % 24 + (e.page - (c + 1)) * 24;
3420
3217
  f && (i.page = 1, i.offset = f);
3421
3218
  }
3422
3219
  }
3423
- return t.projectId && (i["filter[meta_key]"] = "project", i["filter[meta_value]"] = t.projectId), r.wp.email_list(i, { extraQuery: a }).then(x(O));
3220
+ return e.projectId && (i["filter[meta_key]"] = "project", i["filter[meta_value]"] = e.projectId), r.wp.email_list(i, { extraQuery: a }).then(C(x));
3424
3221
  },
3425
3222
  keepUnusedDataFor: 0
3426
3223
  }),
3427
- getEmail: e.query({
3428
- queryFn(t, n) {
3429
- return _(n).wp.email_detail({ id: I(t) }, { extraQuery: {
3224
+ getEmail: t.query({
3225
+ queryFn(e, n) {
3226
+ return _(n).wp.email_detail({ id: T(e) }, { extraQuery: {
3430
3227
  _embed: "wp:term",
3431
3228
  _fields: `_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
3432
3229
  acf.description,
@@ -3440,17 +3237,17 @@ var di = de({
3440
3237
  acf.subject,
3441
3238
  acf.utm_parameters
3442
3239
  `
3443
- } }).then(S(O));
3240
+ } }).then(S(x));
3444
3241
  },
3445
- providesTags: (t, n, r) => [{
3242
+ providesTags: (e, n, r) => [{
3446
3243
  type: "Email",
3447
3244
  id: r
3448
3245
  }],
3449
3246
  keepUnusedDataFor: 0
3450
3247
  }),
3451
- getTemplateEmail: e.query({
3452
- queryFn(t, n) {
3453
- return _(n).wp.email_detail({ id: I(t) }, { extraQuery: {
3248
+ getTemplateEmail: t.query({
3249
+ queryFn(e, n) {
3250
+ return _(n).wp.email_detail({ id: T(e) }, { extraQuery: {
3454
3251
  _embed: "wp:term",
3455
3252
  _fields: `_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
3456
3253
  acf.description,
@@ -3464,36 +3261,36 @@ var di = de({
3464
3261
  acf.subject,
3465
3262
  acf.utm_parameters
3466
3263
  `
3467
- } }).then(S(O));
3264
+ } }).then(S(x));
3468
3265
  },
3469
- providesTags: (t, n, r) => [{
3266
+ providesTags: (e, n, r) => [{
3470
3267
  type: "TemplateEmail",
3471
3268
  id: r
3472
3269
  }],
3473
3270
  keepUnusedDataFor: 0
3474
3271
  }),
3475
- getEmailHistory: e.query({
3476
- queryFn({ emailId: t, page: n = 1 }, r) {
3272
+ getEmailHistory: t.query({
3273
+ queryFn({ emailId: e, page: n = 1 }, r) {
3477
3274
  return _(r).wp.email_revisions_list({
3478
- parent: t,
3275
+ parent: e,
3479
3276
  per_page: 20,
3480
3277
  page: n
3481
- }, { extraQuery: { _fields: "author,slug,date,modified,title,meta,acf.html,acf.common_styles,id,parent,date_gmt" } }).then((i) => ce(i, (a, o) => ({
3278
+ }, { extraQuery: { _fields: "author,slug,date,modified,title,meta,acf.html,acf.common_styles,id,parent,date_gmt" } }).then((i) => oe(i, (a, o) => ({
3482
3279
  data: a.filter((c) => c.acf.html).map((c) => ({
3483
3280
  ...c,
3484
3281
  acf: {
3485
3282
  ...c.acf,
3486
3283
  html: c.acf.html
3487
3284
  }
3488
- })).map(nt),
3285
+ })).map(We),
3489
3286
  totalPages: +o.response.headers.get("X-WP-TotalPages"),
3490
3287
  args: {
3491
- emailId: t,
3288
+ emailId: e,
3492
3289
  page: n
3493
3290
  }
3494
3291
  })));
3495
3292
  },
3496
- providesTags: (t) => t ? [...t.data.map(({ id: n }) => ({
3293
+ providesTags: (e) => e ? [...e.data.map(({ id: n }) => ({
3497
3294
  type: "EmailAutosaves",
3498
3295
  id: n
3499
3296
  })), {
@@ -3504,65 +3301,65 @@ var di = de({
3504
3301
  id: "LIST"
3505
3302
  }],
3506
3303
  keepUnusedDataFor: 0,
3507
- async onQueryStarted({ emailId: t }, { queryFulfilled: n, dispatch: r, getState: i }) {
3304
+ async onQueryStarted({ emailId: e }, { queryFulfilled: n, dispatch: r, getState: i }) {
3508
3305
  try {
3509
- const { data: a } = await n, o = i(), c = mt(o).revisionService === !0, f = o.emailSlice?.email?.html ?? null;
3510
- H.onHistoryFetched(t, a.data, r, () => r(X.endpoints.getEmailHistory.initiate({ emailId: t }, { forceRefetch: !0 })), c, f);
3306
+ const { data: a } = await n, o = i(), c = nt(o).revisionService === !0, f = o.emailSlice?.email?.html ?? null;
3307
+ z.onHistoryFetched(e, a.data, r, () => r(X.endpoints.getEmailHistory.initiate({ emailId: e }, { forceRefetch: !0 })), c, f);
3511
3308
  } catch {
3512
- H.onHistoryFetchError(t, r);
3309
+ z.onHistoryFetchError(e, r);
3513
3310
  }
3514
3311
  }
3515
3312
  }),
3516
- addEmail: e.mutation({
3517
- queryFn: Ce((t) => ({ source: n, ...r }) => _(t).wp.email_create({
3313
+ addEmail: t.mutation({
3314
+ queryFn: Te((e) => ({ source: n, ...r }) => _(e).wp.email_create({
3518
3315
  status: "publish",
3519
- ...tt(r)
3520
- }, { type: C.Json }).then(S(O))),
3316
+ ...$e(r)
3317
+ }, { type: k.Json }).then(S(x))),
3521
3318
  invalidatesTags: [{
3522
3319
  type: "Emails",
3523
3320
  id: "LIST"
3524
3321
  }]
3525
3322
  }),
3526
- editEmail: e.mutation({ queryFn: Ce((t) => ({ emailId: n, source: r, ...i }) => {
3527
- const a = _(t), o = Y(tt(i));
3323
+ editEmail: t.mutation({ queryFn: Te((e) => ({ emailId: n, source: r, ...i }) => {
3324
+ const a = _(e), o = Q($e(i));
3528
3325
  return a.wp.email_partial_update({ id: n }, o, {
3529
- type: C.Json,
3326
+ type: k.Json,
3530
3327
  extraQuery: {
3531
3328
  _embed: "wp:term",
3532
3329
  _fields: "_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,acf.description,acf.html,acf.common_styles,acf.is_template,acf.lock,acf.parent_email,acf.project,acf.secret_hash,acf.subject,acf.utm_parameters"
3533
3330
  }
3534
- }).then(S(O));
3331
+ }).then(S(x));
3535
3332
  }) }),
3536
- deleteEmail: e.mutation({
3537
- queryFn(t, n) {
3333
+ deleteEmail: t.mutation({
3334
+ queryFn(e, n) {
3538
3335
  const r = _(n);
3539
3336
  let i, a;
3540
- return typeof t == "object" ? (i = t.id, a = t.force) : (i = t, a = !1), r.wp.email_delete({ id: i }, { force: a }).then(qe(O));
3337
+ return typeof e == "object" ? (i = e.id, a = e.force) : (i = e, a = !1), r.wp.email_delete({ id: i }, { force: a }).then(Ne(x));
3541
3338
  },
3542
- invalidatesTags: (t, n, r) => [{
3339
+ invalidatesTags: (e, n, r) => [{
3543
3340
  type: "Emails",
3544
3341
  id: r
3545
3342
  }]
3546
3343
  }),
3547
- addTag: e.mutation({ queryFn(t, n) {
3548
- return _(n).wp.emailtags_create({ ...t }, { type: C.Json });
3344
+ addTag: t.mutation({ queryFn(e, n) {
3345
+ return _(n).wp.emailtags_create({ ...e }, { type: k.Json });
3549
3346
  } }),
3550
- getDeletableTag: e.query({ queryFn([t, n], r) {
3347
+ getDeletableTag: t.query({ queryFn([e, n], r) {
3551
3348
  return _(r).wp.email_list({
3552
3349
  status: ["private"],
3553
3350
  "filter[meta_key]": "project",
3554
- "filter[meta_value]": t,
3351
+ "filter[meta_value]": e,
3555
3352
  emailtags: [n]
3556
- }, { extraQuery: { "_fields[]": "emailtags" } }).then(x(O));
3353
+ }, { extraQuery: { "_fields[]": "emailtags" } }).then(C(x));
3557
3354
  } }),
3558
- autoSaveEmail: e.mutation({
3559
- queryFn({ emailId: t, body: n }, r) {
3560
- const i = _(r), a = er(n);
3561
- return i.wp.email_autosaves_create({ id: t }, a, { type: C.FormData }).then(S(nt));
3355
+ autoSaveEmail: t.mutation({
3356
+ queryFn({ emailId: e, body: n }, r) {
3357
+ const i = _(r), a = Sn(n);
3358
+ return i.wp.email_autosaves_create({ id: e }, a, { type: k.FormData }).then(S(We));
3562
3359
  },
3563
- async onQueryStarted({ emailId: t, body: n }, { queryFulfilled: r, getState: i }) {
3564
- const a = mt(i()).revisionService === !0;
3565
- a && H.onAutoSaveStarted(t, {
3360
+ async onQueryStarted({ emailId: e, body: n }, { queryFulfilled: r, getState: i }) {
3361
+ const a = nt(i()).revisionService === !0;
3362
+ a && z.onAutoSaveStarted(e, {
3566
3363
  sentAt: Date.now(),
3567
3364
  html: n.html ?? "",
3568
3365
  common_styles: n.common_styles ?? "",
@@ -3570,19 +3367,19 @@ var di = de({
3570
3367
  preheader: n.preheader
3571
3368
  });
3572
3369
  try {
3573
- await r, a && H.onAutoSaveCompleted(t);
3370
+ await r, a && z.onAutoSaveCompleted(e);
3574
3371
  } catch {
3575
- a && H.onAutoSaveCompleted(t);
3372
+ a && z.onAutoSaveCompleted(e);
3576
3373
  }
3577
3374
  }
3578
3375
  })
3579
3376
  })
3580
- }), { useGetEmailsQuery: Va, useGetTemplateEmailsQuery: Ha, useGetEmailQuery: Wa, useLazyGetEmailQuery: $a, useGetEmailHistoryQuery: Xa, useLazyGetEmailHistoryQuery: Qa, useAddEmailMutation: Ka, useEditEmailMutation: Ja, useDeleteEmailMutation: Ya, useGetDeletableTagQuery: Za, useAddTagMutation: eo, useAutoSaveEmailMutation: to } = X;
3581
- function j({ title: e, acf: t, ...n }) {
3582
- const { members: r, projects_test_emails: i, ftp_settings: a, emails: o, blocks: c, webhook: f, inbox_email: m, integrations: p } = t, s = A(r) ? r : void 0;
3377
+ }), { useGetEmailsQuery: na, useGetTemplateEmailsQuery: ra, useGetEmailQuery: ia, useLazyGetEmailQuery: aa, useGetEmailHistoryQuery: oa, useLazyGetEmailHistoryQuery: la, useAddEmailMutation: sa, useEditEmailMutation: da, useDeleteEmailMutation: ua, useGetDeletableTagQuery: ca, useAddTagMutation: fa, useAutoSaveEmailMutation: ma } = X;
3378
+ function L({ title: t, acf: e, ...n }) {
3379
+ const { members: r, projects_test_emails: i, ftp_settings: a, emails: o, blocks: c, webhook: f, inbox_email: m, integrations: p } = e, s = A(r) ? r : void 0;
3583
3380
  return {
3584
3381
  ...n,
3585
- title: F(e) || "",
3382
+ title: R(t) || "",
3586
3383
  members: s ? {
3587
3384
  admins: s.admins && s.admins.map((l) => ({
3588
3385
  ...l,
@@ -3614,19 +3411,19 @@ function j({ title: e, acf: t, ...n }) {
3614
3411
  blocks: c
3615
3412
  };
3616
3413
  }
3617
- function pt({ title: e, members: t, projects_test_emails: n, inbox_email: r, ftp_settings: i, webhook: a, integrations: o, emails: c, blocks: f, ...m }) {
3618
- const p = (d) => Array.isArray(d) ? d : d ? [d] : [], s = (d) => ({ ID: I(d.ID || d) }), l = (d) => p(d).map(s), u = t && {
3619
- admins: l(t.admins),
3620
- users: l(t.users),
3621
- viewers: l(t.viewers),
3622
- invited_users: l(t.invited_users),
3623
- owner: t.owner && s(t.owner)
3414
+ function rt({ title: t, members: e, projects_test_emails: n, inbox_email: r, ftp_settings: i, webhook: a, integrations: o, emails: c, blocks: f, ...m }) {
3415
+ const p = (u) => Array.isArray(u) ? u : u ? [u] : [], s = (u) => ({ ID: T(u.ID || u) }), l = (u) => p(u).map(s), d = e && {
3416
+ admins: l(e.admins),
3417
+ users: l(e.users),
3418
+ viewers: l(e.viewers),
3419
+ invited_users: l(e.invited_users),
3420
+ owner: e.owner && s(e.owner)
3624
3421
  };
3625
3422
  return {
3626
3423
  ...m,
3627
- title: e,
3424
+ title: t,
3628
3425
  acf: {
3629
- members: u,
3426
+ members: d,
3630
3427
  webhook: a,
3631
3428
  projects_test_emails: n,
3632
3429
  inbox_email: r,
@@ -3637,105 +3434,105 @@ function pt({ title: e, members: t, projects_test_emails: n, inbox_email: r, ftp
3637
3434
  }
3638
3435
  };
3639
3436
  }
3640
- var P = "Projects", re = "LIST";
3641
- function fi(e) {
3642
- if (Array.isArray(e)) return e;
3643
- if (e != null && typeof e == "object") {
3644
- const t = e.projects;
3645
- if (Array.isArray(t)) return t;
3437
+ var w = "Projects", ee = "LIST";
3438
+ function Tr(t) {
3439
+ if (Array.isArray(t)) return t;
3440
+ if (t != null && typeof t == "object") {
3441
+ const e = t.projects;
3442
+ if (Array.isArray(e)) return e;
3646
3443
  }
3647
3444
  return [];
3648
3445
  }
3649
- function mi(e) {
3650
- if (typeof e == "number" && Number.isFinite(e) && e >= 0) return Math.trunc(e);
3651
- if (typeof e == "string" && e.trim() !== "") {
3652
- const t = parseInt(e, 10);
3653
- if (Number.isFinite(t) && t >= 0) return t;
3446
+ function Ir(t) {
3447
+ if (typeof t == "number" && Number.isFinite(t) && t >= 0) return Math.trunc(t);
3448
+ if (typeof t == "string" && t.trim() !== "") {
3449
+ const e = parseInt(t, 10);
3450
+ if (Number.isFinite(e) && e >= 0) return e;
3654
3451
  }
3655
3452
  }
3656
- function pi(e) {
3657
- if (e == null || typeof e != "object" || Array.isArray(e)) return { title: "" };
3658
- const t = e, n = mi(t.emails_count);
3453
+ function wr(t) {
3454
+ if (t == null || typeof t != "object" || Array.isArray(t)) return { title: "" };
3455
+ const e = t, n = Ir(e.emails_count);
3659
3456
  return {
3660
- id: t.id,
3661
- title: typeof t.title == "string" ? t.title : "",
3457
+ id: e.id,
3458
+ title: typeof e.title == "string" ? e.title : "",
3662
3459
  ...n != null ? { emails: n } : {}
3663
3460
  };
3664
3461
  }
3665
- var $t = K({
3462
+ var kt = W({
3666
3463
  reducerPath: "projectsApi",
3667
- tagTypes: [P, "project"],
3668
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3669
- endpoints: (e) => ({
3670
- getProjects: e.query({
3671
- queryFn(t = { page: 1 }, n) {
3464
+ tagTypes: [w, "project"],
3465
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3466
+ endpoints: (t) => ({
3467
+ getProjects: t.query({
3468
+ queryFn(e = { page: 1 }, n) {
3672
3469
  const r = _(n), i = { status: ["private"] };
3673
- return t.page && (i.page = t.page), t.order && (i.order = t.order), t.orderby && (i.orderby = t.orderby), t.search && (i.search = t.search), t.after && (i.after = t.after), t.before && (i.before = t.before), t.per_page != null && (i.per_page = t.per_page), r.wp.project_list(i).then((a) => {
3674
- const o = x(j)(a);
3470
+ return e.page && (i.page = e.page), e.order && (i.order = e.order), e.orderby && (i.orderby = e.orderby), e.search && (i.search = e.search), e.after && (i.after = e.after), e.before && (i.before = e.before), e.per_page != null && (i.per_page = e.per_page), r.wp.project_list(i).then((a) => {
3471
+ const o = C(L)(a);
3675
3472
  if (o.error) return { error: o.error };
3676
- const c = a.headers?.get?.("X-WP-Total"), f = a.headers?.get?.("X-WP-TotalPages"), m = c != null && c !== "" ? parseInt(String(c), 10) : NaN, p = f != null && f !== "" ? parseInt(String(f), 10) : NaN, s = Math.max(1, t.per_page ?? 12), l = Number.isFinite(p) ? p : Number.isFinite(m) ? Math.max(1, Math.ceil(m / s)) : NaN, u = o.data.length, d = Math.max(1, t.page ?? 1), E = s;
3677
- let g = m, h = l;
3678
- return Number.isFinite(g) ? Number.isFinite(h) || (h = Math.max(1, Math.ceil(g / E))) : d === 1 ? u === 0 ? (g = 0, h = 1) : u < E ? (g = u, h = 1) : (g = u + 1, h = 2) : u === 0 ? (g = Math.max(0, (d - 1) * E), h = Math.max(1, d - 1)) : u < E ? (g = (d - 1) * E + u, h = d) : (g = d * E + 1, h = d + 1), {
3473
+ const c = a.headers?.get?.("X-WP-Total"), f = a.headers?.get?.("X-WP-TotalPages"), m = c != null && c !== "" ? parseInt(String(c), 10) : NaN, p = f != null && f !== "" ? parseInt(String(f), 10) : NaN, s = Math.max(1, e.per_page ?? 12), l = Number.isFinite(p) ? p : Number.isFinite(m) ? Math.max(1, Math.ceil(m / s)) : NaN, d = o.data.length, u = Math.max(1, e.page ?? 1), E = s;
3474
+ let g = m, b = l;
3475
+ return Number.isFinite(g) ? Number.isFinite(b) || (b = Math.max(1, Math.ceil(g / E))) : u === 1 ? d === 0 ? (g = 0, b = 1) : d < E ? (g = d, b = 1) : (g = d + 1, b = 2) : d === 0 ? (g = Math.max(0, (u - 1) * E), b = Math.max(1, u - 1)) : d < E ? (g = (u - 1) * E + d, b = u) : (g = u * E + 1, b = u + 1), {
3679
3476
  data: o.data,
3680
3477
  meta: { projectsListPagination: {
3681
3478
  total: g,
3682
- totalPages: h
3479
+ totalPages: b
3683
3480
  } }
3684
3481
  };
3685
3482
  });
3686
3483
  },
3687
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
3688
- type: P,
3484
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
3485
+ type: w,
3689
3486
  id: n
3690
3487
  })), {
3691
- type: P,
3692
- id: re
3488
+ type: w,
3489
+ id: ee
3693
3490
  }] : [{
3694
- type: P,
3695
- id: re
3491
+ type: w,
3492
+ id: ee
3696
3493
  }]
3697
3494
  }),
3698
- getProject: e.query({
3699
- queryFn(t, n) {
3700
- return _(n).wp.project_detail({ id: t }, { extraQuery: { _embed: "wp:term" } }).then(S(j));
3495
+ getProject: t.query({
3496
+ queryFn(e, n) {
3497
+ return _(n).wp.project_detail({ id: e }, { extraQuery: { _embed: "wp:term" } }).then(S(L));
3701
3498
  },
3702
- providesTags: (t, n, r) => [{
3499
+ providesTags: (e, n, r) => [{
3703
3500
  type: "project",
3704
3501
  id: r
3705
3502
  }]
3706
3503
  }),
3707
- addProject: e.mutation({
3708
- queryFn(t, n) {
3504
+ addProject: t.mutation({
3505
+ queryFn(e, n) {
3709
3506
  return _(n).wp.project_create({
3710
3507
  status: "private",
3711
- ...pt(t)
3712
- }, { type: C.Json }).then(S(j));
3508
+ ...rt(e)
3509
+ }, { type: k.Json }).then(S(L));
3713
3510
  },
3714
3511
  invalidatesTags: [{
3715
- type: P,
3716
- id: re
3512
+ type: w,
3513
+ id: ee
3717
3514
  }]
3718
3515
  }),
3719
- editProject: e.mutation({
3720
- queryFn({ projectId: t, ...n }, r) {
3721
- const i = _(r), a = Y(pt(n), !0);
3722
- return i.wp.project_partial_update({ id: t }, a, { type: C.Json }).then(S(j));
3516
+ editProject: t.mutation({
3517
+ queryFn({ projectId: e, ...n }, r) {
3518
+ const i = _(r), a = Q(rt(n), !0);
3519
+ return i.wp.project_partial_update({ id: e }, a, { type: k.Json }).then(S(L));
3723
3520
  },
3724
- invalidatesTags: (t, n, { projectId: r }) => [{
3725
- type: P,
3521
+ invalidatesTags: (e, n, { projectId: r }) => [{
3522
+ type: w,
3726
3523
  id: r
3727
3524
  }, {
3728
3525
  type: "project",
3729
3526
  id: r
3730
3527
  }]
3731
3528
  }),
3732
- deleteProject: e.mutation({
3733
- queryFn(t, n) {
3734
- return _(n).wp.project_delete({ id: t }, {}).then(qe(j));
3529
+ deleteProject: t.mutation({
3530
+ queryFn(e, n) {
3531
+ return _(n).wp.project_delete({ id: e }, {}).then(Ne(L));
3735
3532
  },
3736
- invalidatesTags: (t, n, r) => [
3533
+ invalidatesTags: (e, n, r) => [
3737
3534
  {
3738
- type: P,
3535
+ type: w,
3739
3536
  id: r
3740
3537
  },
3741
3538
  {
@@ -3743,18 +3540,18 @@ var $t = K({
3743
3540
  id: r
3744
3541
  },
3745
3542
  {
3746
- type: P,
3747
- id: re
3543
+ type: w,
3544
+ id: ee
3748
3545
  }
3749
3546
  ]
3750
3547
  }),
3751
- getFrequentProjects: e.query({
3752
- async queryFn(t, n) {
3753
- const r = typeof t == "number" && t > 0 ? t : 5, i = _(n);
3548
+ getFrequentProjects: t.query({
3549
+ async queryFn(e, n) {
3550
+ const r = typeof e == "number" && e > 0 ? e : 5, i = _(n);
3754
3551
  try {
3755
3552
  const a = await i.projects.top_used_list({ limit: r });
3756
3553
  if (!a.ok || a.error) throw a.error ?? /* @__PURE__ */ new Error("top-used request failed");
3757
- const o = fi(a.data), c = x(pi)({
3554
+ const o = Tr(a.data), c = C(wr)({
3758
3555
  data: o,
3759
3556
  error: a.error,
3760
3557
  meta: a.meta
@@ -3767,101 +3564,101 @@ var $t = K({
3767
3564
  orderby: "modified",
3768
3565
  status: ["private"]
3769
3566
  });
3770
- return x(j)({
3567
+ return C(L)({
3771
3568
  data: a.data,
3772
3569
  error: a.error,
3773
3570
  meta: a.meta
3774
3571
  });
3775
3572
  }
3776
3573
  },
3777
- providesTags: (t) => t && t.length > 0 ? [...t.map(({ id: n }) => ({
3778
- type: P,
3574
+ providesTags: (e) => e && e.length > 0 ? [...e.map(({ id: n }) => ({
3575
+ type: w,
3779
3576
  id: n
3780
3577
  })), {
3781
- type: P,
3578
+ type: w,
3782
3579
  id: "FREQUENT"
3783
3580
  }] : [{
3784
- type: P,
3581
+ type: w,
3785
3582
  id: "FREQUENT"
3786
3583
  }]
3787
3584
  })
3788
3585
  })
3789
- }), { useGetProjectsQuery: no, useGetProjectQuery: ro, useAddProjectMutation: io, useEditProjectMutation: ao, useGetFrequentProjectsQuery: oo } = $t, _i = "Taxonomies", D = () => window.location.toString().includes("/blocks") ? "block" : "", Ei = () => window.location.toString().includes("/blocks") ? "block" : "email", Xt = K({
3586
+ }), { useGetProjectsQuery: pa, useGetProjectQuery: _a, useAddProjectMutation: Ea, useEditProjectMutation: ga, useGetFrequentProjectsQuery: ba } = kt, Pr = "Taxonomies", D = () => window.location.toString().includes("/blocks") ? "block" : "", kr = () => window.location.toString().includes("/blocks") ? "block" : "email", Ct = W({
3790
3587
  reducerPath: "taxonomiesApi",
3791
3588
  tagTypes: [
3792
- _i,
3589
+ Pr,
3793
3590
  "folder",
3794
3591
  "block_folder",
3795
3592
  "Group"
3796
3593
  ],
3797
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3798
- endpoints: (e) => ({
3799
- addFolder: e.mutation({ queryFn(t, n) {
3800
- return _(n).wp[D() + "folder_create"](t).then((r) => r);
3594
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3595
+ endpoints: (t) => ({
3596
+ addFolder: t.mutation({ queryFn(e, n) {
3597
+ return _(n).wp[D() + "folder_create"](e).then((r) => r);
3801
3598
  } }),
3802
- editFolder: e.mutation({ queryFn({ id: t, data: n }, r) {
3803
- return _(r).wp[D() + "folder_partial_update"]({ id: t }, n).then((i) => i);
3599
+ editFolder: t.mutation({ queryFn({ id: e, data: n }, r) {
3600
+ return _(r).wp[D() + "folder_partial_update"]({ id: e }, n).then((i) => i);
3804
3601
  } }),
3805
- deleteFolder: e.mutation({ queryFn(t, n) {
3806
- return _(n).wp[D() + "folder_delete"]({ id: t }, { force: !0 }).then((r) => r);
3602
+ deleteFolder: t.mutation({ queryFn(e, n) {
3603
+ return _(n).wp[D() + "folder_delete"]({ id: e }, { force: !0 }).then((r) => r);
3807
3604
  } }),
3808
- getFolders: e.query({
3809
- queryFn(t, n) {
3605
+ getFolders: t.query({
3606
+ queryFn(e, n) {
3810
3607
  return _(n).wp[D() + "folder_list"]({
3811
3608
  per_page: 100,
3812
- ...t
3609
+ ...e
3813
3610
  }).then((r) => r);
3814
3611
  },
3815
- providesTags: (t, n, r) => [{
3612
+ providesTags: (e, n, r) => [{
3816
3613
  type: "folder",
3817
3614
  id: r
3818
3615
  }]
3819
3616
  }),
3820
- addGroup: e.mutation({ queryFn(t, n) {
3821
- return _(n).wp[D() + "group_create"](t).then((r) => r);
3617
+ addGroup: t.mutation({ queryFn(e, n) {
3618
+ return _(n).wp[D() + "group_create"](e).then((r) => r);
3822
3619
  } }),
3823
- editGroup: e.mutation({ queryFn({ id: t, data: n }, r) {
3824
- return _(r).wp[D() + "group_partial_update"]({ id: t }, n).then((i) => i);
3620
+ editGroup: t.mutation({ queryFn({ id: e, data: n }, r) {
3621
+ return _(r).wp[D() + "group_partial_update"]({ id: e }, n).then((i) => i);
3825
3622
  } }),
3826
- getGroups: e.query({
3827
- queryFn(t, n) {
3623
+ getGroups: t.query({
3624
+ queryFn(e, n) {
3828
3625
  return _(n).wp[D() + "group_list"]({
3829
3626
  per_page: 100,
3830
- ...t
3627
+ ...e
3831
3628
  }).then((r) => r);
3832
3629
  },
3833
- providesTags: (t, n, r) => [{
3630
+ providesTags: (e, n, r) => [{
3834
3631
  type: "Group",
3835
3632
  id: r
3836
3633
  }]
3837
3634
  }),
3838
- deleteGroup: e.mutation({ queryFn(t, n) {
3839
- return _(n).wp[D() + "group_delete"]({ id: t }, { force: !0 }).then((r) => r);
3635
+ deleteGroup: t.mutation({ queryFn(e, n) {
3636
+ return _(n).wp[D() + "group_delete"]({ id: e }, { force: !0 }).then((r) => r);
3840
3637
  } }),
3841
- addEmailsTag: e.mutation({ queryFn(t, n) {
3842
- return _(n).wp.emailtags_create(t).then((r) => r);
3638
+ addEmailsTag: t.mutation({ queryFn(e, n) {
3639
+ return _(n).wp.emailtags_create(e).then((r) => r);
3843
3640
  } }),
3844
- editEmailsTag: e.mutation({ queryFn({ id: t, ...n }, r) {
3845
- return _(r).wp.emailtags_partial_update(t, n).then((i) => i);
3641
+ editEmailsTag: t.mutation({ queryFn({ id: e, ...n }, r) {
3642
+ return _(r).wp.emailtags_partial_update(e, n).then((i) => i);
3846
3643
  } }),
3847
- deleteEmailsTag: e.mutation({ queryFn(t, n) {
3848
- return _(n).wp.emailtags_delete(t, { force: !0 }).then((r) => r);
3644
+ deleteEmailsTag: t.mutation({ queryFn(e, n) {
3645
+ return _(n).wp.emailtags_delete(e, { force: !0 }).then((r) => r);
3849
3646
  } }),
3850
- getTags: e.query({ queryFn(t, n) {
3851
- return _(n).wp[Ei() + "tags_list"]({
3647
+ getTags: t.query({ queryFn(e, n) {
3648
+ return _(n).wp[kr() + "tags_list"]({
3852
3649
  per_page: 100,
3853
- ...t
3650
+ ...e
3854
3651
  }).then((r) => r);
3855
3652
  } })
3856
3653
  })
3857
- }), { useGetFoldersQuery: lo, useGetGroupsQuery: so, useLazyGetGroupsQuery: uo, useDeleteGroupMutation: co, useEditGroupMutation: fo, useAddGroupMutation: mo, useGetTagsQuery: po, useLazyGetFoldersQuery: _o, useAddFolderMutation: Eo, useEditFolderMutation: go } = Xt;
3858
- function gi(e) {
3859
- return e != null && Object.prototype.hasOwnProperty.call(e, "meta");
3654
+ }), { useGetFoldersQuery: ha, useGetGroupsQuery: ya, useLazyGetGroupsQuery: va, useDeleteGroupMutation: Sa, useEditGroupMutation: Aa, useAddGroupMutation: Ta, useGetTagsQuery: Ia, useLazyGetFoldersQuery: wa, useAddFolderMutation: Pa, useEditFolderMutation: ka } = Ct;
3655
+ function Cr(t) {
3656
+ return t != null && Object.prototype.hasOwnProperty.call(t, "meta");
3860
3657
  }
3861
- function Te(e, t) {
3862
- return gi(e) ? e.meta : t;
3658
+ function ye(t, e) {
3659
+ return Cr(t) ? t.meta : e;
3863
3660
  }
3864
- var W = {
3661
+ var V = {
3865
3662
  appliedShowToken: 0,
3866
3663
  invalidateEmailId: null,
3867
3664
  editorThemeColor: "light",
@@ -3926,97 +3723,97 @@ var W = {
3926
3723
  projectGroups: [],
3927
3724
  isNeedUpdateAppearance: !1,
3928
3725
  isNeedUpdateContentAppearance: !1
3929
- }, { setEditorThemeColor: ho, setEmailSettings: bo, setElementSettings: yo, setEmailSettingsDisable: vo, setSearchFilters: So, updateSearchFilters: Ao, setEmailSubject: To, setEmailPreheader: Io, setEmailHTML: wo, resetEmailSlice: Po, setEmailTitle: ko, setEmailFromHistory: Co, setEmailMeta: xo, setIsInited: Oo, setEmailIsAmp: Mo, setProblemsList: Do, setActiveProblemRange: Ro, setEmailGroups: No, setIsNeedUpdateAppearance: Fo, setIsNeedUpdateContentAppearance: Lo } = de({
3726
+ }, { setEditorThemeColor: Ca, setEmailSettings: xa, setElementSettings: Ma, setEmailSettingsDisable: Da, setSearchFilters: Oa, updateSearchFilters: Ra, setEmailSubject: Na, setEmailPreheader: Ba, setEmailHTML: La, resetEmailSlice: Fa, setEmailTitle: ja, setEmailFromHistory: qa, setEmailMeta: Ua, setIsInited: Ga, setEmailIsAmp: za, setProblemsList: Va, setActiveProblemRange: Ha, setEmailGroups: Xa, setIsNeedUpdateAppearance: $a, setIsNeedUpdateContentAppearance: Wa } = ae({
3930
3727
  name: "emailSlice",
3931
- initialState: W,
3728
+ initialState: V,
3932
3729
  reducers: {
3933
- setEditorThemeColor: (e, t) => {
3934
- e.editorThemeColor = t.payload;
3730
+ setEditorThemeColor: (t, e) => {
3731
+ t.editorThemeColor = e.payload;
3935
3732
  },
3936
- setEmailFromHistory: (e, { payload: t }) => {
3937
- if (!t) return;
3938
- const n = e.email, r = t?.preheader === void 0, i = t?.subject === void 0, a = Te(t, n.meta);
3939
- e.email = {
3733
+ setEmailFromHistory: (t, { payload: e }) => {
3734
+ if (!e) return;
3735
+ const n = t.email, r = e?.preheader === void 0, i = e?.subject === void 0, a = ye(e, n.meta);
3736
+ t.email = {
3940
3737
  ...n,
3941
- html: t?.html,
3942
- preheader: r ? n.preheader : t?.preheader,
3943
- subject: i ? n.subject : t?.subject,
3944
- common_styles: typeof t?.common_styles == "string" && t?.common_styles.startsWith("{") ? t?.common_styles : n.common_styles || "{}",
3738
+ html: e?.html,
3739
+ preheader: r ? n.preheader : e?.preheader,
3740
+ subject: i ? n.subject : e?.subject,
3741
+ common_styles: typeof e?.common_styles == "string" && e?.common_styles.startsWith("{") ? e?.common_styles : n.common_styles || "{}",
3945
3742
  ...a !== void 0 ? { meta: a } : {}
3946
- }, e.isNeedUpdateAppearance = !0, e.isNeedUpdateContentAppearance = !0;
3743
+ }, t.isNeedUpdateAppearance = !0, t.isNeedUpdateContentAppearance = !0;
3947
3744
  },
3948
- setEmailSettings: (e, { payload: t }) => {
3949
- Object.assign(e, {
3950
- ...e,
3951
- settings: { ...t },
3745
+ setEmailSettings: (t, { payload: e }) => {
3746
+ Object.assign(t, {
3747
+ ...t,
3748
+ settings: { ...e },
3952
3749
  isSettingsDisabled: !1
3953
3750
  });
3954
3751
  },
3955
- setEmailSettingsDisable: (e, t) => {
3956
- e.isSettingsDisabled = t.payload;
3752
+ setEmailSettingsDisable: (t, e) => {
3753
+ t.isSettingsDisabled = e.payload;
3957
3754
  },
3958
- setElementSettings: (e, { payload: t }) => {
3959
- e.elementSettings = t;
3755
+ setElementSettings: (t, { payload: e }) => {
3756
+ t.elementSettings = e;
3960
3757
  },
3961
- setSearchFilters: (e, t) => {
3962
- e.searchFilters = t.payload;
3758
+ setSearchFilters: (t, e) => {
3759
+ t.searchFilters = e.payload;
3963
3760
  },
3964
- updateSearchFilters: (e, t) => {
3965
- e.searchFilters = {
3966
- ...e.searchFilters,
3967
- ...t.payload
3761
+ updateSearchFilters: (t, e) => {
3762
+ t.searchFilters = {
3763
+ ...t.searchFilters,
3764
+ ...e.payload
3968
3765
  };
3969
3766
  },
3970
- setEmailHTML: (e, t) => {
3971
- e.email.html = t.payload;
3767
+ setEmailHTML: (t, e) => {
3768
+ t.email.html = e.payload;
3972
3769
  },
3973
- setEmailSubject: (e, t) => {
3974
- (e.email.title === e.email.subject || !e.email.subject && !e.email.title) && (e.email.title = t.payload), e.email.subject = t.payload;
3770
+ setEmailSubject: (t, e) => {
3771
+ (t.email.title === t.email.subject || !t.email.subject && !t.email.title) && (t.email.title = e.payload), t.email.subject = e.payload;
3975
3772
  },
3976
- setEmailPreheader: (e, t) => {
3977
- e.email.preheader = t.payload;
3773
+ setEmailPreheader: (t, e) => {
3774
+ t.email.preheader = e.payload;
3978
3775
  },
3979
- resetEmailSlice: (e) => {
3980
- const t = e.emailAutosaveTimestamps;
3776
+ resetEmailSlice: (t) => {
3777
+ const e = t.emailAutosaveTimestamps;
3981
3778
  return {
3982
- ...W,
3983
- emailAutosaveTimestamps: t
3779
+ ...V,
3780
+ emailAutosaveTimestamps: e
3984
3781
  };
3985
3782
  },
3986
- setEmailTitle: (e, t) => {
3987
- e.email.title = t.payload;
3783
+ setEmailTitle: (t, e) => {
3784
+ t.email.title = e.payload;
3988
3785
  },
3989
- setEmailMeta: (e, t) => {
3990
- if (t.payload === void 0) {
3991
- delete e.email.meta;
3786
+ setEmailMeta: (t, e) => {
3787
+ if (e.payload === void 0) {
3788
+ delete t.email.meta;
3992
3789
  return;
3993
3790
  }
3994
- e.email.meta = {
3995
- ...e.email.meta ?? {},
3996
- ...t.payload
3791
+ t.email.meta = {
3792
+ ...t.email.meta ?? {},
3793
+ ...e.payload
3997
3794
  };
3998
3795
  },
3999
- setIsInited: (e, t) => {
4000
- e.email.is_inited = t.payload;
3796
+ setIsInited: (t, e) => {
3797
+ t.email.is_inited = e.payload;
4001
3798
  },
4002
- setEmailIsAmp: (e, t) => {
4003
- e.email.isAmp = t.payload;
3799
+ setEmailIsAmp: (t, e) => {
3800
+ t.email.isAmp = e.payload;
4004
3801
  },
4005
- setProblemsList: (e, t) => {
4006
- e.problemsList = t.payload;
3802
+ setProblemsList: (t, e) => {
3803
+ t.problemsList = e.payload;
4007
3804
  },
4008
- setActiveProblemRange: (e, t) => {
4009
- e.activeProblemRange = t.payload;
3805
+ setActiveProblemRange: (t, e) => {
3806
+ t.activeProblemRange = e.payload;
4010
3807
  },
4011
- setIsNeedUpdateContentAppearance: (e, t) => {
4012
- e.isNeedUpdateContentAppearance = t.payload;
3808
+ setIsNeedUpdateContentAppearance: (t, e) => {
3809
+ t.isNeedUpdateContentAppearance = e.payload;
4013
3810
  },
4014
- setIsNeedUpdateAppearance: (e, t) => {
4015
- e.isNeedUpdateAppearance = t.payload;
3811
+ setIsNeedUpdateAppearance: (t, e) => {
3812
+ t.isNeedUpdateAppearance = e.payload;
4016
3813
  },
4017
- setEmailGroups: (e, { payload: t }) => {
4018
- const n = Object.keys(t)[0], r = e.emailGroups, i = e.parentGroupOfProject, a = e.projectGroups, o = {};
4019
- i && a.length && (t[n]?.forEach((c) => {
3814
+ setEmailGroups: (t, { payload: e }) => {
3815
+ const n = Object.keys(e)[0], r = t.emailGroups, i = t.parentGroupOfProject, a = t.projectGroups, o = {};
3816
+ i && a.length && (e[n]?.forEach((c) => {
4020
3817
  const f = a.find((p) => p.id === +n), m = f?.children.find((p) => p.id === +c);
4021
3818
  m ? (o.hasOwnProperty(f.id) || (o[f.id] = []), o[f.id].push({
4022
3819
  label: m.name,
@@ -4025,60 +3822,60 @@ var W = {
4025
3822
  label: c,
4026
3823
  value: null
4027
3824
  }));
4028
- }), t[n].length === 0 && (o[n] = [])), e.emailGroups = {
3825
+ }), e[n].length === 0 && (o[n] = [])), t.emailGroups = {
4029
3826
  ...r,
4030
3827
  ...o
4031
3828
  };
4032
3829
  }
4033
3830
  },
4034
- extraReducers: (e) => {
4035
- e.addMatcher((t) => t.type === "emailsApi/queries/queryResultPatched", (t, n) => {
3831
+ extraReducers: (t) => {
3832
+ t.addMatcher((e) => e.type === "emailsApi/queries/queryResultPatched", (e, n) => {
4036
3833
  const r = n.payload.queryCacheKey.match(/\("([0-9]+)"\)/), i = n.payload?.patches[0];
4037
- i?.path?.[0] && (t.email[i?.path[0]] = i.value), r?.[1] && (t.invalidateEmailId = r[1]), t.emailIsEdit = !0;
4038
- }), e.addMatcher((t) => t.type === "emailsApi/invalidateTags", (t, n) => {
4039
- if (n.payload[0].id === +t.invalidateEmailId) return W;
4040
- }), e.addMatcher(X.endpoints.editEmail.matchFulfilled, (t, { payload: n }) => {
4041
- t.invalidateEmailId = null;
4042
- const r = Te(n, t.email.meta);
4043
- t.email = {
4044
- ...t.email,
3834
+ i?.path?.[0] && (e.email[i?.path[0]] = i.value), r?.[1] && (e.invalidateEmailId = r[1]), e.emailIsEdit = !0;
3835
+ }), t.addMatcher((e) => e.type === "emailsApi/invalidateTags", (e, n) => {
3836
+ if (n.payload[0].id === +e.invalidateEmailId) return V;
3837
+ }), t.addMatcher(X.endpoints.editEmail.matchFulfilled, (e, { payload: n }) => {
3838
+ e.invalidateEmailId = null;
3839
+ const r = ye(n, e.email.meta);
3840
+ e.email = {
3841
+ ...e.email,
4045
3842
  ...n,
4046
- renderGuid: t.email.renderGuid,
3843
+ renderGuid: e.email.renderGuid,
4047
3844
  ...r !== void 0 ? { meta: r } : {}
4048
3845
  };
4049
- }), e.addMatcher(X.endpoints.autoSaveEmail.matchFulfilled, (t, n) => {
4050
- t.email.id?.toString() === n.payload.parent?.toString() && (t.email.html = n.payload.html, n.payload.modified && (t.email.modified = n.payload.modified, t.emailAutosaveTimestamps[n.payload.parent] = n.payload.modified));
4051
- }), e.addMatcher(X.endpoints.getEmail.matchFulfilled, (t, { payload: n }) => {
4052
- const r = t.email, i = Te(n, n.id === r?.id ? r.meta : void 0), a = r?.id != null && r.id === n.id, o = n.showToken, c = n.showId, f = le.isPlugin && c != null && c !== "";
4053
- if (le.isPlugin && !f && o === void 0 && a && t.appliedShowToken > 0) {
4054
- n.id, t.appliedShowToken, r?.id, r?.showId;
3846
+ }), t.addMatcher(X.endpoints.autoSaveEmail.matchFulfilled, (e, n) => {
3847
+ e.email.id?.toString() === n.payload.parent?.toString() && (e.email.html = n.payload.html, n.payload.modified && (e.email.modified = n.payload.modified, e.emailAutosaveTimestamps[n.payload.parent] = n.payload.modified));
3848
+ }), t.addMatcher(X.endpoints.getEmail.matchFulfilled, (e, { payload: n }) => {
3849
+ const r = e.email, i = ye(n, n.id === r?.id ? r.meta : void 0), a = r?.id != null && r.id === n.id, o = n.showToken, c = n.showId, f = re.isPlugin && c != null && c !== "";
3850
+ if (re.isPlugin && !f && o === void 0 && a && e.appliedShowToken > 0) {
3851
+ n.id, e.appliedShowToken, r?.id, r?.showId;
4055
3852
  return;
4056
3853
  }
4057
3854
  if (!f) {
4058
- if (o !== void 0 && o < t.appliedShowToken) {
4059
- n.id, t.appliedShowToken, r?.id;
3855
+ if (o !== void 0 && o < e.appliedShowToken) {
3856
+ n.id, e.appliedShowToken, r?.id;
4060
3857
  return;
4061
3858
  }
4062
3859
  const g = r?.renderGuid != null && r.renderGuid === n.renderGuid;
4063
- if (le.isPlugin && o === void 0 && t.appliedShowToken > 0 && n.id !== r?.id && !g) {
4064
- n.id, t.appliedShowToken, r?.id;
3860
+ if (re.isPlugin && o === void 0 && e.appliedShowToken > 0 && n.id !== r?.id && !g) {
3861
+ n.id, e.appliedShowToken, r?.id;
4065
3862
  return;
4066
3863
  }
4067
3864
  }
4068
- const m = f || o !== void 0 && o !== t.appliedShowToken, p = a && n.modified !== void 0 && r.modified === n.modified, s = a && r.is_inited === !0 && p && !m && !!r.html?.trim(), l = a && r.renderGuid ? r.renderGuid : n.renderGuid ?? ht(), { showToken: u, showId: d, ...E } = n;
4069
- t.email = {
4070
- ...W.email,
3865
+ const m = f || o !== void 0 && o !== e.appliedShowToken, p = a && n.modified !== void 0 && r.modified === n.modified, s = a && r.is_inited === !0 && p && !m && !!r.html?.trim(), l = a && r.renderGuid ? r.renderGuid : n.renderGuid ?? lt(), { showToken: d, showId: u, ...E } = n;
3866
+ e.email = {
3867
+ ...V.email,
4071
3868
  ...E,
4072
3869
  ...c ? { showId: c } : {},
4073
3870
  renderGuid: l,
4074
3871
  ...s ? { html: r.html } : {},
4075
- is_inited: n.is_inited || (a ? r?.is_inited : W.email.is_inited),
3872
+ is_inited: n.is_inited || (a ? r?.is_inited : V.email.is_inited),
4076
3873
  common_styles: typeof n?.common_styles == "string" && n?.common_styles.startsWith("{") ? n?.common_styles : "{}",
4077
3874
  ...i !== void 0 ? { meta: i } : {}
4078
- }, o !== void 0 ? t.appliedShowToken = o : (!a || r.is_inited !== !0 || !p) && (t.appliedShowToken += 1), n.id, t.appliedShowToken, r?.id, t.emailIsEdit = !1;
4079
- }), e.addMatcher(Xt.endpoints.getGroups.matchFulfilled, (t, { meta: n, payload: r }) => {
4080
- const i = t.email.group, a = n.arg.originalArgs.parent, o = r;
4081
- a && (t.parentGroupOfProject = a, t.projectGroups = o);
3875
+ }, o !== void 0 ? e.appliedShowToken = o : (!a || r.is_inited !== !0 || !p) && (e.appliedShowToken += 1), n.id, e.appliedShowToken, r?.id, e.emailIsEdit = !1;
3876
+ }), t.addMatcher(Ct.endpoints.getGroups.matchFulfilled, (e, { meta: n, payload: r }) => {
3877
+ const i = e.email.group, a = n.arg.originalArgs.parent, o = r;
3878
+ a && (e.parentGroupOfProject = a, e.projectGroups = o);
4082
3879
  const c = {};
4083
3880
  a && i.length && o.length && i?.forEach((f) => {
4084
3881
  o?.forEach((m) => {
@@ -4088,103 +3885,103 @@ var W = {
4088
3885
  value: p.id
4089
3886
  }));
4090
3887
  });
4091
- }), t.emailGroups = c;
4092
- }), e.addMatcher($t.endpoints.getProject.matchFulfilled, (t, { meta: n, payload: r }) => {
4093
- t.parentGroupOfProject = r.group?.[0] || null;
3888
+ }), e.emailGroups = c;
3889
+ }), t.addMatcher(kt.endpoints.getProject.matchFulfilled, (e, { meta: n, payload: r }) => {
3890
+ e.parentGroupOfProject = r.group?.[0] || null;
4094
3891
  });
4095
3892
  }
4096
3893
  }).actions;
4097
- var Qt = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
4098
- function yi() {
4099
- return De(Qt);
3894
+ var xt = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
3895
+ function Dr() {
3896
+ return ke(xt);
4100
3897
  }
4101
- function vi(e) {
4102
- return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === Qt;
3898
+ function Or(t) {
3899
+ return !(t instanceof DOMException) || t.name !== "AbortError" ? !1 : t.message === xt;
4103
3900
  }
4104
- function Si(e, t, n) {
3901
+ function Rr(t, e, n) {
4105
3902
  if (typeof document > "u") return;
4106
3903
  let r = !1, i;
4107
3904
  const a = () => {
4108
3905
  r = !0, i?.disconnect(), i = void 0;
4109
3906
  }, o = () => {
4110
- r || (a(), t());
3907
+ r || (a(), e());
4111
3908
  };
4112
- if (n.addDispose(a), !e.isConnected) {
3909
+ if (n.addDispose(a), !t.isConnected) {
4113
3910
  queueMicrotask(o);
4114
3911
  return;
4115
3912
  }
4116
3913
  i = new MutationObserver(() => {
4117
- e.isConnected || o();
3914
+ t.isConnected || o();
4118
3915
  });
4119
- let c = e.parentNode;
3916
+ let c = t.parentNode;
4120
3917
  for (; c;) i.observe(c, { childList: !0 }), c = c.parentNode;
4121
3918
  }
4122
- function Ai(e) {
4123
- const { hostElementOption: t, resolvedElement: n, externalSignal: r, disposable: i } = e;
4124
- if (t === void 0 || !(n instanceof Element)) return r;
3919
+ function Nr(t) {
3920
+ const { hostElementOption: e, resolvedElement: n, externalSignal: r, disposable: i } = t;
3921
+ if (e === void 0 || !(n instanceof Element)) return r;
4125
3922
  const a = new AbortController();
4126
- return Si(n, () => {
4127
- n.id, a.abort(yi());
4128
- }, i), Mt(r, a.signal);
4129
- }
4130
- var Kt = "Superseded by newer init() on the same mount element";
4131
- function _t() {
4132
- return De(Kt);
4133
- }
4134
- function Ti(e) {
4135
- return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === Kt;
4136
- }
4137
- var ie = /* @__PURE__ */ new Map(), ae = /* @__PURE__ */ new WeakMap();
4138
- function Ii(e) {
4139
- if (e instanceof Element) {
4140
- const t = e.id?.trim();
4141
- if (t) return `#${t}`;
3923
+ return Rr(n, () => {
3924
+ n.id, a.abort(Dr());
3925
+ }, i), gt(r, a.signal);
3926
+ }
3927
+ var Mt = "Superseded by newer init() on the same mount element";
3928
+ function it() {
3929
+ return ke(Mt);
3930
+ }
3931
+ function Br(t) {
3932
+ return !(t instanceof DOMException) || t.name !== "AbortError" ? !1 : t.message === Mt;
3933
+ }
3934
+ var te = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new WeakMap();
3935
+ function Lr(t) {
3936
+ if (t instanceof Element) {
3937
+ const e = t.id?.trim();
3938
+ if (e) return `#${e}`;
4142
3939
  }
4143
3940
  }
4144
- function wi(e) {
4145
- if (!(e instanceof Element)) return { release: () => {} };
4146
- const t = Ii(e);
4147
- ae.get(e)?.abort(_t()), t && ie.get(t)?.abort(_t());
3941
+ function Fr(t) {
3942
+ if (!(t instanceof Element)) return { release: () => {} };
3943
+ const e = Lr(t);
3944
+ ne.get(t)?.abort(it()), e && te.get(e)?.abort(it());
4148
3945
  const n = new AbortController();
4149
- return ae.set(e, n), t && ie.set(t, n), {
3946
+ return ne.set(t, n), e && te.set(e, n), {
4150
3947
  signal: n.signal,
4151
3948
  release: () => {
4152
- ae.get(e) === n && ae.delete(e), t && ie.get(t) === n && ie.delete(t);
3949
+ ne.get(t) === n && ne.delete(t), e && te.get(e) === n && te.delete(e);
4153
3950
  }
4154
3951
  };
4155
3952
  }
4156
- function Pi(e, t) {
3953
+ function jr(t, e) {
4157
3954
  return {
4158
- ...e,
4159
- element: t
3955
+ ...t,
3956
+ element: e
4160
3957
  };
4161
3958
  }
4162
- function Oe() {
3959
+ function we() {
4163
3960
  return () => {};
4164
3961
  }
4165
- function ki(e) {
4166
- const t = e.element;
4167
- return !t || typeof t == "string" || typeof document > "u" ? Oe() : (gn(t, e.config?.styles, t), () => {
4168
- hn(t);
3962
+ function qr(t) {
3963
+ const e = t.element;
3964
+ return !e || typeof e == "string" || typeof document > "u" ? we() : (Jt(e, t.config?.styles, e), () => {
3965
+ Yt(e);
4169
3966
  });
4170
3967
  }
4171
- function Ci(e) {
4172
- if (!At() || e.initialSpinner === !1 || typeof document > "u") return {
4173
- options: e,
4174
- cleanup: Oe()
3968
+ function Ur(t) {
3969
+ if (!ct() || t.initialSpinner === !1 || typeof document > "u") return {
3970
+ options: t,
3971
+ cleanup: we()
4175
3972
  };
4176
- const t = e.element;
4177
- if (!t || typeof t == "string") return {
4178
- options: e,
4179
- cleanup: Oe()
3973
+ const e = t.element;
3974
+ if (!e || typeof e == "string") return {
3975
+ options: t,
3976
+ cleanup: we()
4180
3977
  };
4181
- t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((i) => {
3978
+ e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((i) => {
4182
3979
  i.remove();
4183
3980
  });
4184
- const n = vn(t, "data-emailmaker"), r = e.handleChunkLoaded;
3981
+ const n = tn(e, "data-emailmaker"), r = t.handleChunkLoaded;
4185
3982
  return {
4186
3983
  options: {
4187
- ...e,
3984
+ ...t,
4188
3985
  handleChunkLoaded: () => {
4189
3986
  n(), r?.();
4190
3987
  }
@@ -4192,91 +3989,91 @@ function Ci(e) {
4192
3989
  cleanup: n
4193
3990
  };
4194
3991
  }
4195
- function xi(e) {
4196
- return e?.length ? e.some((t) => Array.isArray(t) ? !1 : !!(t && typeof t == "object" && "url" in t)) : !1;
3992
+ function Gr(t) {
3993
+ return t?.length ? t.some((e) => Array.isArray(e) ? !1 : !!(e && typeof e == "object" && "url" in e)) : !1;
4197
3994
  }
4198
- function Et(e) {
4199
- return e instanceof DOMException && e.name === "AbortError";
3995
+ function at(t) {
3996
+ return t instanceof DOMException && t.name === "AbortError";
4200
3997
  }
4201
- function gt(e) {
3998
+ function ot(t) {
4202
3999
  try {
4203
- e.destroy();
4000
+ t.destroy();
4204
4001
  } catch {}
4205
4002
  }
4206
- function Ie(e, ...t) {
4207
- const n = R.get(e);
4208
- t.some((r) => r !== void 0 && r === n) && R.delete(e);
4003
+ function ve(t, ...e) {
4004
+ const n = O.get(t);
4005
+ e.some((r) => r !== void 0 && r === n) && O.delete(t);
4209
4006
  }
4210
- var Bo = "1.1.45-alpha.1";
4211
- async function jo(e) {
4212
- await St(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4007
+ var Qa = "1.1.45";
4008
+ async function Ka(t) {
4009
+ await ut(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4213
4010
  }
4214
- async function qo(e) {
4215
- return Oi(e);
4011
+ async function Ja(t) {
4012
+ return zr(t);
4216
4013
  }
4217
- async function Oi(e) {
4218
- k(e.signal);
4219
- const t = new Zt();
4014
+ async function zr(t) {
4015
+ P(t.signal);
4016
+ const e = new Rt();
4220
4017
  let n;
4221
4018
  try {
4222
- const r = await rn(e.element, t, e.signal), i = Ai({
4223
- hostElementOption: e.element,
4019
+ const r = await Ft(t.element, e, t.signal), i = Nr({
4020
+ hostElementOption: t.element,
4224
4021
  resolvedElement: r,
4225
- externalSignal: e.signal,
4226
- disposable: t
4227
- }), a = wi(r);
4022
+ externalSignal: t.signal,
4023
+ disposable: e
4024
+ }), a = Fr(r);
4228
4025
  n = a.release;
4229
- const o = Mt(i, a.signal);
4230
- return await nn(Mi(e, r, o), o);
4026
+ const o = gt(i, a.signal);
4027
+ return await Lt(Vr(t, r, o), o);
4231
4028
  } finally {
4232
- n?.(), t.dispose();
4029
+ n?.(), e.dispose();
4233
4030
  }
4234
4031
  }
4235
- async function Mi(e, t, n) {
4236
- k(n), Xn();
4237
- const r = Wn(Jn(Pi(e, t))), i = n != null ? {
4032
+ async function Vr(t, e, n) {
4033
+ P(n);
4034
+ const r = gn(hn(jr(t, e))), i = n != null ? {
4238
4035
  ...r,
4239
4036
  signal: n
4240
4037
  } : r;
4241
- if (t) {
4242
- const m = R.get(t);
4038
+ if (e) {
4039
+ const m = O.get(e);
4243
4040
  if (m) {
4244
4041
  let p;
4245
4042
  try {
4246
- p = await m, k(n);
4043
+ p = await m, P(n);
4247
4044
  } catch (s) {
4248
- if (k(n), Ie(t, m), Et(s)) throw s;
4045
+ if (P(n), ve(e, m), at(s)) throw s;
4249
4046
  p = void 0;
4250
4047
  }
4251
- if (p) if (p.getElement() === t) try {
4048
+ if (p) if (p.getElement() === e) try {
4252
4049
  return await p.reset(i);
4253
4050
  } catch (s) {
4254
- if (k(n), Ti(s) || vi(s) || Et(s) && n?.aborted) throw s;
4255
- Ie(t, m, p), gt(p);
4051
+ if (P(n), Br(s) || Or(s) || at(s) && n?.aborted) throw s;
4052
+ ve(e, m, p), ot(p);
4256
4053
  }
4257
- else Ie(t, m, p), gt(p);
4054
+ else ve(e, m, p), ot(p);
4258
4055
  }
4259
4056
  }
4260
- k(n);
4261
- const a = ki(r), o = Ci(r), c = n != null ? {
4057
+ P(n);
4058
+ const a = qr(r), o = Ur(r), c = n != null ? {
4262
4059
  ...o.options,
4263
4060
  signal: n
4264
4061
  } : o.options;
4265
4062
  let f;
4266
4063
  try {
4267
- await vt(), k(n);
4064
+ await dt(), P(n);
4268
4065
  const m = typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0;
4269
- xi(c.plugins) ? (await Le(m), k(n)) : mn(m), k(n), f = Fe().then((s) => s.init(c)), t && R.set(t, f);
4066
+ Gr(c.plugins) ? (await De(m), P(n)) : $t(m), P(n), f = Me().then((s) => s.init(c)), e && O.set(e, f);
4270
4067
  const p = await f;
4271
- if (n?.aborted && (p.destroy(), k(n)), t) if (R.get(t) === f) R.set(t, p);
4272
- else throw p.destroy(), k(n), De(n?.reason);
4068
+ if (n?.aborted && (p.destroy(), P(n)), e) if (O.get(e) === f) O.set(e, p);
4069
+ else throw p.destroy(), P(n), ke(n?.reason);
4273
4070
  return p;
4274
4071
  } catch (m) {
4275
- throw a(), o.cleanup(), t && f && R.get(t) === f && R.delete(t), m;
4072
+ throw a(), o.cleanup(), e && f && O.get(e) === f && O.delete(e), m;
4276
4073
  }
4277
4074
  }
4278
- async function Uo(e) {
4279
- return (await Fe()).parseAMP(e);
4075
+ async function Ya(t) {
4076
+ return (await Me()).parseAMP(t);
4280
4077
  }
4281
- typeof window < "u" && pn(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4282
- export { Qt as ELEMENT_DETACHED_ABORT_MESSAGE, Kt as SUPERSEDED_INIT_ABORT_MESSAGE, Ni as errors, Fi as helpers, qo as init, vi as isElementDetachedError, Ti as isSupersededInitError, Uo as parseAMP, Ri as pluginRegistry, jo as preload, Bo as version };
4078
+ typeof window < "u" && Wt(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4079
+ export { xt as ELEMENT_DETACHED_ABORT_MESSAGE, Mt as SUPERSEDED_INIT_ABORT_MESSAGE, $r as errors, Wr as helpers, Ja as init, Or as isElementDetachedError, Br as isSupersededInitError, Ya as parseAMP, Xr as pluginRegistry, Ka as preload, Qa as version };