@emailmaker/emailmaker 1.1.45-alpha.1 → 1.1.46

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 (821) hide show
  1. package/emailmaker-core.0eca2ff8.js +637 -0
  2. package/emailmaker-esm.js +1386 -1588
  3. package/emailmaker.d.ts +6 -8
  4. package/emailmaker.js +3768 -4078
  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/{b039deae.js → 139b301d.js} +712 -717
  13. package/static/core/{87cde128.js → 1f63a578.js} +2564 -2641
  14. package/static/core/{a5701653.js → 36e22fa5.js} +15 -15
  15. package/static/core/{e8d51fcb.js → 3c7560b7.js} +86 -86
  16. package/static/core/{39da69f4.js → 3cf9dc9b.js} +2730 -2901
  17. package/static/core/4da039b3.js +1119 -0
  18. package/static/core/{f910bde1.js → 6130a367.js} +146 -151
  19. package/static/core/{3061fb0a.js → 62495fd5.js} +244 -230
  20. package/static/core/{fa02d83e.js → 6410579b.js} +7 -7
  21. package/static/core/{80fb5b6a2.js → 7db5498f2.js} +7 -7
  22. package/static/core/{41282200.js → 868e86a7.js} +8959 -8844
  23. package/static/core/{56cdb425.js → 8833ee6c.js} +4 -4
  24. package/static/core/{3b17491b.js → 9833df3b.js} +3 -3
  25. package/static/core/{392598f0.js → ac8a414a.js} +8365 -8409
  26. package/static/core/{c189c538.js → bdd1d845.js} +996 -955
  27. package/static/core/{3684652a.js → dc3b3081.js} +32 -32
  28. package/static/core/{1e9b3ac0.js → e7554764.js} +248 -248
  29. package/static/core/{f34c0a04.js → f62c7573.js} +3 -3
  30. package/static/esm/{705e2770.js → b8792b4f.js} +793 -907
  31. package/static/esm/c951742a.js +127 -0
  32. package/static/media/image-editor/fonts/BebasNeueBold.woff2 +0 -0
  33. package/static/media/image-editor/fonts/BebasNeueBook.woff2 +0 -0
  34. package/static/media/image-editor/fonts/BebasNeueLight.woff2 +0 -0
  35. package/static/media/image-editor/fonts/BebasNeueRegular.woff2 +0 -0
  36. package/static/media/image-editor/fonts/Lato-Black.woff2 +0 -0
  37. package/static/media/image-editor/fonts/Lato-Bold.woff2 +0 -0
  38. package/static/media/image-editor/fonts/Lato-Light.woff2 +0 -0
  39. package/static/media/image-editor/fonts/Lato-Regular.woff2 +0 -0
  40. package/static/media/image-editor/fonts/Lobster.woff2 +0 -0
  41. package/static/media/image-editor/fonts/Montserrat-Black.woff2 +0 -0
  42. package/static/media/image-editor/fonts/Montserrat-Bold.woff2 +0 -0
  43. package/static/media/image-editor/fonts/Montserrat-Light.woff2 +0 -0
  44. package/static/media/image-editor/fonts/Montserrat-Regular.woff2 +0 -0
  45. package/static/media/image-editor/fonts/Roboto-Black.woff2 +0 -0
  46. package/static/media/image-editor/fonts/Roboto-Bold.woff2 +0 -0
  47. package/static/media/image-editor/fonts/Roboto-Light.woff2 +0 -0
  48. package/static/media/image-editor/fonts/Roboto-Regular.woff2 +0 -0
  49. package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
  50. package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
  51. package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
  52. package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
  53. package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
  54. package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
  55. package/static/media/image-editor/fonts/fira-sans-v11-latin-ext_latin_cyrillic-regular.woff2 +0 -0
  56. package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
  57. package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
  58. package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
  59. package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_latin-regular.woff2 +0 -0
  60. package/static/media/image-editor/images/brushes/black/circle.png +0 -0
  61. package/static/media/image-editor/images/brushes/black/diamond.png +0 -0
  62. package/static/media/image-editor/images/brushes/black/hline.png +0 -0
  63. package/static/media/image-editor/images/brushes/black/pencil.png +0 -0
  64. package/static/media/image-editor/images/brushes/black/spray.png +0 -0
  65. package/static/media/image-editor/images/brushes/black/square.png +0 -0
  66. package/static/media/image-editor/images/brushes/black/vline.png +0 -0
  67. package/static/media/image-editor/images/brushes/white/circle.png +0 -0
  68. package/static/media/image-editor/images/brushes/white/diamond.png +0 -0
  69. package/static/media/image-editor/images/brushes/white/hline.png +0 -0
  70. package/static/media/image-editor/images/brushes/white/pencil.png +0 -0
  71. package/static/media/image-editor/images/brushes/white/spray.png +0 -0
  72. package/static/media/image-editor/images/brushes/white/square.png +0 -0
  73. package/static/media/image-editor/images/brushes/white/vline.png +0 -0
  74. package/static/media/image-editor/images/empty-canvas-bg.png +0 -0
  75. package/static/media/image-editor/images/filter/blackWhite.jpg +0 -0
  76. package/static/media/image-editor/images/filter/blendColor.jpg +0 -0
  77. package/static/media/image-editor/images/filter/blur.jpg +0 -0
  78. package/static/media/image-editor/images/filter/brightness.jpg +0 -0
  79. package/static/media/image-editor/images/filter/brownie.jpg +0 -0
  80. package/static/media/image-editor/images/filter/emboss.jpg +0 -0
  81. package/static/media/image-editor/images/filter/gamma.jpg +0 -0
  82. package/static/media/image-editor/images/filter/grayscale.jpg +0 -0
  83. package/static/media/image-editor/images/filter/invert.jpg +0 -0
  84. package/static/media/image-editor/images/filter/kodachrome.jpg +0 -0
  85. package/static/media/image-editor/images/filter/noise.jpg +0 -0
  86. package/static/media/image-editor/images/filter/original.jpg +0 -0
  87. package/static/media/image-editor/images/filter/pixelate.jpg +0 -0
  88. package/static/media/image-editor/images/filter/polaroid.jpg +0 -0
  89. package/static/media/image-editor/images/filter/removeColor.jpg +0 -0
  90. package/static/media/image-editor/images/filter/sepia.jpg +0 -0
  91. package/static/media/image-editor/images/filter/sharpen.jpg +0 -0
  92. package/static/media/image-editor/images/filter/technicolor.jpg +0 -0
  93. package/static/media/image-editor/images/filter/vintage.jpg +0 -0
  94. package/static/media/image-editor/images/frames/art1/bottom.png +0 -0
  95. package/static/media/image-editor/images/frames/art1/bottomLeft.png +0 -0
  96. package/static/media/image-editor/images/frames/art1/bottomRight.png +0 -0
  97. package/static/media/image-editor/images/frames/art1/left.png +0 -0
  98. package/static/media/image-editor/images/frames/art1/right.png +0 -0
  99. package/static/media/image-editor/images/frames/art1/thumbnail.png +0 -0
  100. package/static/media/image-editor/images/frames/art1/top.png +0 -0
  101. package/static/media/image-editor/images/frames/art1/topLeft.png +0 -0
  102. package/static/media/image-editor/images/frames/art1/topRight.png +0 -0
  103. package/static/media/image-editor/images/frames/art2/bottom.png +0 -0
  104. package/static/media/image-editor/images/frames/art2/bottomLeft.png +0 -0
  105. package/static/media/image-editor/images/frames/art2/bottomRight.png +0 -0
  106. package/static/media/image-editor/images/frames/art2/left.png +0 -0
  107. package/static/media/image-editor/images/frames/art2/right.png +0 -0
  108. package/static/media/image-editor/images/frames/art2/thumbnail.png +0 -0
  109. package/static/media/image-editor/images/frames/art2/top.png +0 -0
  110. package/static/media/image-editor/images/frames/art2/topLeft.png +0 -0
  111. package/static/media/image-editor/images/frames/art2/topRight.png +0 -0
  112. package/static/media/image-editor/images/frames/basic/thumbnail.png +0 -0
  113. package/static/media/image-editor/images/frames/ebony/bottom.png +0 -0
  114. package/static/media/image-editor/images/frames/ebony/bottomLeft.png +0 -0
  115. package/static/media/image-editor/images/frames/ebony/bottomRight.png +0 -0
  116. package/static/media/image-editor/images/frames/ebony/left.png +0 -0
  117. package/static/media/image-editor/images/frames/ebony/right.png +0 -0
  118. package/static/media/image-editor/images/frames/ebony/thumbnail.png +0 -0
  119. package/static/media/image-editor/images/frames/ebony/top.png +0 -0
  120. package/static/media/image-editor/images/frames/ebony/topLeft.png +0 -0
  121. package/static/media/image-editor/images/frames/ebony/topRight.png +0 -0
  122. package/static/media/image-editor/images/frames/grunge1/bottom.png +0 -0
  123. package/static/media/image-editor/images/frames/grunge1/bottomLeft.png +0 -0
  124. package/static/media/image-editor/images/frames/grunge1/bottomRight.png +0 -0
  125. package/static/media/image-editor/images/frames/grunge1/left.png +0 -0
  126. package/static/media/image-editor/images/frames/grunge1/right.png +0 -0
  127. package/static/media/image-editor/images/frames/grunge1/thumbnail.png +0 -0
  128. package/static/media/image-editor/images/frames/grunge1/top.png +0 -0
  129. package/static/media/image-editor/images/frames/grunge1/topLeft.png +0 -0
  130. package/static/media/image-editor/images/frames/grunge1/topRight.png +0 -0
  131. package/static/media/image-editor/images/frames/grunge2/bottom.png +0 -0
  132. package/static/media/image-editor/images/frames/grunge2/bottomLeft.png +0 -0
  133. package/static/media/image-editor/images/frames/grunge2/bottomRight.png +0 -0
  134. package/static/media/image-editor/images/frames/grunge2/left.png +0 -0
  135. package/static/media/image-editor/images/frames/grunge2/right.png +0 -0
  136. package/static/media/image-editor/images/frames/grunge2/thumbnail.png +0 -0
  137. package/static/media/image-editor/images/frames/grunge2/top.png +0 -0
  138. package/static/media/image-editor/images/frames/grunge2/topLeft.png +0 -0
  139. package/static/media/image-editor/images/frames/grunge2/topRight.png +0 -0
  140. package/static/media/image-editor/images/frames/oak/bottom.png +0 -0
  141. package/static/media/image-editor/images/frames/oak/bottomLeft.png +0 -0
  142. package/static/media/image-editor/images/frames/oak/bottomRight.png +0 -0
  143. package/static/media/image-editor/images/frames/oak/left.png +0 -0
  144. package/static/media/image-editor/images/frames/oak/right.png +0 -0
  145. package/static/media/image-editor/images/frames/oak/thumbnail.png +0 -0
  146. package/static/media/image-editor/images/frames/oak/top.png +0 -0
  147. package/static/media/image-editor/images/frames/oak/topLeft.png +0 -0
  148. package/static/media/image-editor/images/frames/oak/topRight.png +0 -0
  149. package/static/media/image-editor/images/frames/pine/bottom.png +0 -0
  150. package/static/media/image-editor/images/frames/pine/bottomLeft.png +0 -0
  151. package/static/media/image-editor/images/frames/pine/bottomRight.png +0 -0
  152. package/static/media/image-editor/images/frames/pine/left.png +0 -0
  153. package/static/media/image-editor/images/frames/pine/right.png +0 -0
  154. package/static/media/image-editor/images/frames/pine/thumbnail.png +0 -0
  155. package/static/media/image-editor/images/frames/pine/top.png +0 -0
  156. package/static/media/image-editor/images/frames/pine/topLeft.png +0 -0
  157. package/static/media/image-editor/images/frames/pine/topRight.png +0 -0
  158. package/static/media/image-editor/images/frames/rainbow/bottom.png +0 -0
  159. package/static/media/image-editor/images/frames/rainbow/bottomLeft.png +0 -0
  160. package/static/media/image-editor/images/frames/rainbow/bottomRight.png +0 -0
  161. package/static/media/image-editor/images/frames/rainbow/left.png +0 -0
  162. package/static/media/image-editor/images/frames/rainbow/right.png +0 -0
  163. package/static/media/image-editor/images/frames/rainbow/thumbnail.png +0 -0
  164. package/static/media/image-editor/images/frames/rainbow/top.png +0 -0
  165. package/static/media/image-editor/images/frames/rainbow/topLeft.png +0 -0
  166. package/static/media/image-editor/images/frames/rainbow/topRight.png +0 -0
  167. package/static/media/image-editor/images/gradients/0.png +0 -0
  168. package/static/media/image-editor/images/gradients/1.png +0 -0
  169. package/static/media/image-editor/images/gradients/10.png +0 -0
  170. package/static/media/image-editor/images/gradients/11.png +0 -0
  171. package/static/media/image-editor/images/gradients/12.png +0 -0
  172. package/static/media/image-editor/images/gradients/2.png +0 -0
  173. package/static/media/image-editor/images/gradients/3.png +0 -0
  174. package/static/media/image-editor/images/gradients/4.png +0 -0
  175. package/static/media/image-editor/images/gradients/5.png +0 -0
  176. package/static/media/image-editor/images/gradients/6.png +0 -0
  177. package/static/media/image-editor/images/gradients/7.png +0 -0
  178. package/static/media/image-editor/images/gradients/8.png +0 -0
  179. package/static/media/image-editor/images/gradients/9.png +0 -0
  180. package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
  181. package/static/media/image-editor/images/samples/sample1.jpg +0 -0
  182. package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
  183. package/static/media/image-editor/images/samples/sample2.jpg +0 -0
  184. package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
  185. package/static/media/image-editor/images/samples/sample3.jpg +0 -0
  186. package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
  187. package/static/media/image-editor/images/samples/sample4.json +871 -0
  188. package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
  189. package/static/media/image-editor/images/stickers/beach/0.svg +25 -0
  190. package/static/media/image-editor/images/stickers/beach/1.svg +14 -0
  191. package/static/media/image-editor/images/stickers/beach/10.svg +34 -0
  192. package/static/media/image-editor/images/stickers/beach/11.svg +27 -0
  193. package/static/media/image-editor/images/stickers/beach/12.svg +10 -0
  194. package/static/media/image-editor/images/stickers/beach/13.svg +25 -0
  195. package/static/media/image-editor/images/stickers/beach/14.svg +16 -0
  196. package/static/media/image-editor/images/stickers/beach/15.svg +14 -0
  197. package/static/media/image-editor/images/stickers/beach/16.svg +44 -0
  198. package/static/media/image-editor/images/stickers/beach/17.svg +35 -0
  199. package/static/media/image-editor/images/stickers/beach/18.svg +32 -0
  200. package/static/media/image-editor/images/stickers/beach/19.svg +23 -0
  201. package/static/media/image-editor/images/stickers/beach/2.svg +14 -0
  202. package/static/media/image-editor/images/stickers/beach/20.svg +24 -0
  203. package/static/media/image-editor/images/stickers/beach/21.svg +11 -0
  204. package/static/media/image-editor/images/stickers/beach/3.svg +26 -0
  205. package/static/media/image-editor/images/stickers/beach/4.svg +25 -0
  206. package/static/media/image-editor/images/stickers/beach/5.svg +22 -0
  207. package/static/media/image-editor/images/stickers/beach/6.svg +20 -0
  208. package/static/media/image-editor/images/stickers/beach/7.svg +32 -0
  209. package/static/media/image-editor/images/stickers/beach/8.svg +28 -0
  210. package/static/media/image-editor/images/stickers/beach/9.svg +18 -0
  211. package/static/media/image-editor/images/stickers/bubbles/0.png +0 -0
  212. package/static/media/image-editor/images/stickers/bubbles/1.png +0 -0
  213. package/static/media/image-editor/images/stickers/bubbles/10.png +0 -0
  214. package/static/media/image-editor/images/stickers/bubbles/100.png +0 -0
  215. package/static/media/image-editor/images/stickers/bubbles/101.png +0 -0
  216. package/static/media/image-editor/images/stickers/bubbles/102.png +0 -0
  217. package/static/media/image-editor/images/stickers/bubbles/103.png +0 -0
  218. package/static/media/image-editor/images/stickers/bubbles/105.png +0 -0
  219. package/static/media/image-editor/images/stickers/bubbles/11.png +0 -0
  220. package/static/media/image-editor/images/stickers/bubbles/12.png +0 -0
  221. package/static/media/image-editor/images/stickers/bubbles/13.png +0 -0
  222. package/static/media/image-editor/images/stickers/bubbles/14.png +0 -0
  223. package/static/media/image-editor/images/stickers/bubbles/15.png +0 -0
  224. package/static/media/image-editor/images/stickers/bubbles/16.png +0 -0
  225. package/static/media/image-editor/images/stickers/bubbles/17.png +0 -0
  226. package/static/media/image-editor/images/stickers/bubbles/18.png +0 -0
  227. package/static/media/image-editor/images/stickers/bubbles/19.png +0 -0
  228. package/static/media/image-editor/images/stickers/bubbles/2.png +0 -0
  229. package/static/media/image-editor/images/stickers/bubbles/20.png +0 -0
  230. package/static/media/image-editor/images/stickers/bubbles/21.png +0 -0
  231. package/static/media/image-editor/images/stickers/bubbles/22.png +0 -0
  232. package/static/media/image-editor/images/stickers/bubbles/23.png +0 -0
  233. package/static/media/image-editor/images/stickers/bubbles/24.png +0 -0
  234. package/static/media/image-editor/images/stickers/bubbles/25.png +0 -0
  235. package/static/media/image-editor/images/stickers/bubbles/26.png +0 -0
  236. package/static/media/image-editor/images/stickers/bubbles/27.png +0 -0
  237. package/static/media/image-editor/images/stickers/bubbles/28.png +0 -0
  238. package/static/media/image-editor/images/stickers/bubbles/29.png +0 -0
  239. package/static/media/image-editor/images/stickers/bubbles/3.png +0 -0
  240. package/static/media/image-editor/images/stickers/bubbles/30.png +0 -0
  241. package/static/media/image-editor/images/stickers/bubbles/31.png +0 -0
  242. package/static/media/image-editor/images/stickers/bubbles/32.png +0 -0
  243. package/static/media/image-editor/images/stickers/bubbles/33.png +0 -0
  244. package/static/media/image-editor/images/stickers/bubbles/34.png +0 -0
  245. package/static/media/image-editor/images/stickers/bubbles/35.png +0 -0
  246. package/static/media/image-editor/images/stickers/bubbles/36.png +0 -0
  247. package/static/media/image-editor/images/stickers/bubbles/37.png +0 -0
  248. package/static/media/image-editor/images/stickers/bubbles/38.png +0 -0
  249. package/static/media/image-editor/images/stickers/bubbles/39.png +0 -0
  250. package/static/media/image-editor/images/stickers/bubbles/4.png +0 -0
  251. package/static/media/image-editor/images/stickers/bubbles/40.png +0 -0
  252. package/static/media/image-editor/images/stickers/bubbles/41.png +0 -0
  253. package/static/media/image-editor/images/stickers/bubbles/42.png +0 -0
  254. package/static/media/image-editor/images/stickers/bubbles/43.png +0 -0
  255. package/static/media/image-editor/images/stickers/bubbles/44.png +0 -0
  256. package/static/media/image-editor/images/stickers/bubbles/45.png +0 -0
  257. package/static/media/image-editor/images/stickers/bubbles/46.png +0 -0
  258. package/static/media/image-editor/images/stickers/bubbles/47.png +0 -0
  259. package/static/media/image-editor/images/stickers/bubbles/48.png +0 -0
  260. package/static/media/image-editor/images/stickers/bubbles/49.png +0 -0
  261. package/static/media/image-editor/images/stickers/bubbles/5.png +0 -0
  262. package/static/media/image-editor/images/stickers/bubbles/50.png +0 -0
  263. package/static/media/image-editor/images/stickers/bubbles/51.png +0 -0
  264. package/static/media/image-editor/images/stickers/bubbles/52.png +0 -0
  265. package/static/media/image-editor/images/stickers/bubbles/53.png +0 -0
  266. package/static/media/image-editor/images/stickers/bubbles/54.png +0 -0
  267. package/static/media/image-editor/images/stickers/bubbles/55.png +0 -0
  268. package/static/media/image-editor/images/stickers/bubbles/56.png +0 -0
  269. package/static/media/image-editor/images/stickers/bubbles/57.png +0 -0
  270. package/static/media/image-editor/images/stickers/bubbles/58.png +0 -0
  271. package/static/media/image-editor/images/stickers/bubbles/59.png +0 -0
  272. package/static/media/image-editor/images/stickers/bubbles/6.png +0 -0
  273. package/static/media/image-editor/images/stickers/bubbles/60.png +0 -0
  274. package/static/media/image-editor/images/stickers/bubbles/61.png +0 -0
  275. package/static/media/image-editor/images/stickers/bubbles/62.png +0 -0
  276. package/static/media/image-editor/images/stickers/bubbles/63.png +0 -0
  277. package/static/media/image-editor/images/stickers/bubbles/64.png +0 -0
  278. package/static/media/image-editor/images/stickers/bubbles/65.png +0 -0
  279. package/static/media/image-editor/images/stickers/bubbles/66.png +0 -0
  280. package/static/media/image-editor/images/stickers/bubbles/67.png +0 -0
  281. package/static/media/image-editor/images/stickers/bubbles/68.png +0 -0
  282. package/static/media/image-editor/images/stickers/bubbles/69.png +0 -0
  283. package/static/media/image-editor/images/stickers/bubbles/7.png +0 -0
  284. package/static/media/image-editor/images/stickers/bubbles/70.png +0 -0
  285. package/static/media/image-editor/images/stickers/bubbles/71.png +0 -0
  286. package/static/media/image-editor/images/stickers/bubbles/72.png +0 -0
  287. package/static/media/image-editor/images/stickers/bubbles/73.png +0 -0
  288. package/static/media/image-editor/images/stickers/bubbles/74.png +0 -0
  289. package/static/media/image-editor/images/stickers/bubbles/75.png +0 -0
  290. package/static/media/image-editor/images/stickers/bubbles/76.png +0 -0
  291. package/static/media/image-editor/images/stickers/bubbles/77.png +0 -0
  292. package/static/media/image-editor/images/stickers/bubbles/78.png +0 -0
  293. package/static/media/image-editor/images/stickers/bubbles/79.png +0 -0
  294. package/static/media/image-editor/images/stickers/bubbles/8.png +0 -0
  295. package/static/media/image-editor/images/stickers/bubbles/80.png +0 -0
  296. package/static/media/image-editor/images/stickers/bubbles/81.png +0 -0
  297. package/static/media/image-editor/images/stickers/bubbles/82.png +0 -0
  298. package/static/media/image-editor/images/stickers/bubbles/83.png +0 -0
  299. package/static/media/image-editor/images/stickers/bubbles/84.png +0 -0
  300. package/static/media/image-editor/images/stickers/bubbles/85.png +0 -0
  301. package/static/media/image-editor/images/stickers/bubbles/86.png +0 -0
  302. package/static/media/image-editor/images/stickers/bubbles/87.png +0 -0
  303. package/static/media/image-editor/images/stickers/bubbles/88.png +0 -0
  304. package/static/media/image-editor/images/stickers/bubbles/89.png +0 -0
  305. package/static/media/image-editor/images/stickers/bubbles/9.png +0 -0
  306. package/static/media/image-editor/images/stickers/bubbles/90.png +0 -0
  307. package/static/media/image-editor/images/stickers/bubbles/91.png +0 -0
  308. package/static/media/image-editor/images/stickers/bubbles/92.png +0 -0
  309. package/static/media/image-editor/images/stickers/bubbles/93.png +0 -0
  310. package/static/media/image-editor/images/stickers/bubbles/94.png +0 -0
  311. package/static/media/image-editor/images/stickers/bubbles/95.png +0 -0
  312. package/static/media/image-editor/images/stickers/bubbles/96.png +0 -0
  313. package/static/media/image-editor/images/stickers/bubbles/97.png +0 -0
  314. package/static/media/image-editor/images/stickers/bubbles/98.png +0 -0
  315. package/static/media/image-editor/images/stickers/bubbles/99.png +0 -0
  316. package/static/media/image-editor/images/stickers/categories/beach.svg +18 -0
  317. package/static/media/image-editor/images/stickers/categories/clouds.svg +15 -0
  318. package/static/media/image-editor/images/stickers/categories/doodles.svg +13 -0
  319. package/static/media/image-editor/images/stickers/categories/emoticon.svg +10 -0
  320. package/static/media/image-editor/images/stickers/categories/landmark.svg +20 -0
  321. package/static/media/image-editor/images/stickers/categories/speech-bubble.svg +6 -0
  322. package/static/media/image-editor/images/stickers/categories/star.svg +6 -0
  323. package/static/media/image-editor/images/stickers/categories/transportation.svg +18 -0
  324. package/static/media/image-editor/images/stickers/clouds/0.png +0 -0
  325. package/static/media/image-editor/images/stickers/clouds/1.png +0 -0
  326. package/static/media/image-editor/images/stickers/clouds/10.png +0 -0
  327. package/static/media/image-editor/images/stickers/clouds/11.png +0 -0
  328. package/static/media/image-editor/images/stickers/clouds/12.png +0 -0
  329. package/static/media/image-editor/images/stickers/clouds/13.png +0 -0
  330. package/static/media/image-editor/images/stickers/clouds/14.png +0 -0
  331. package/static/media/image-editor/images/stickers/clouds/2.png +0 -0
  332. package/static/media/image-editor/images/stickers/clouds/3.png +0 -0
  333. package/static/media/image-editor/images/stickers/clouds/4.png +0 -0
  334. package/static/media/image-editor/images/stickers/clouds/5.png +0 -0
  335. package/static/media/image-editor/images/stickers/clouds/6.png +0 -0
  336. package/static/media/image-editor/images/stickers/clouds/7.png +0 -0
  337. package/static/media/image-editor/images/stickers/clouds/8.png +0 -0
  338. package/static/media/image-editor/images/stickers/clouds/9.png +0 -0
  339. package/static/media/image-editor/images/stickers/doodles/0.svg +201 -0
  340. package/static/media/image-editor/images/stickers/doodles/1.svg +255 -0
  341. package/static/media/image-editor/images/stickers/doodles/10.svg +160 -0
  342. package/static/media/image-editor/images/stickers/doodles/11.svg +393 -0
  343. package/static/media/image-editor/images/stickers/doodles/12.svg +293 -0
  344. package/static/media/image-editor/images/stickers/doodles/13.svg +251 -0
  345. package/static/media/image-editor/images/stickers/doodles/14.svg +370 -0
  346. package/static/media/image-editor/images/stickers/doodles/15.svg +194 -0
  347. package/static/media/image-editor/images/stickers/doodles/16.svg +383 -0
  348. package/static/media/image-editor/images/stickers/doodles/17.svg +346 -0
  349. package/static/media/image-editor/images/stickers/doodles/18.svg +286 -0
  350. package/static/media/image-editor/images/stickers/doodles/19.svg +241 -0
  351. package/static/media/image-editor/images/stickers/doodles/2.svg +227 -0
  352. package/static/media/image-editor/images/stickers/doodles/20.svg +330 -0
  353. package/static/media/image-editor/images/stickers/doodles/21.svg +200 -0
  354. package/static/media/image-editor/images/stickers/doodles/22.svg +308 -0
  355. package/static/media/image-editor/images/stickers/doodles/23.svg +518 -0
  356. package/static/media/image-editor/images/stickers/doodles/24.svg +207 -0
  357. package/static/media/image-editor/images/stickers/doodles/25.svg +260 -0
  358. package/static/media/image-editor/images/stickers/doodles/26.svg +380 -0
  359. package/static/media/image-editor/images/stickers/doodles/27.svg +222 -0
  360. package/static/media/image-editor/images/stickers/doodles/28.svg +164 -0
  361. package/static/media/image-editor/images/stickers/doodles/29.svg +271 -0
  362. package/static/media/image-editor/images/stickers/doodles/3.svg +272 -0
  363. package/static/media/image-editor/images/stickers/doodles/30.svg +283 -0
  364. package/static/media/image-editor/images/stickers/doodles/31.svg +257 -0
  365. package/static/media/image-editor/images/stickers/doodles/32.svg +276 -0
  366. package/static/media/image-editor/images/stickers/doodles/33.svg +198 -0
  367. package/static/media/image-editor/images/stickers/doodles/34.svg +314 -0
  368. package/static/media/image-editor/images/stickers/doodles/35.svg +236 -0
  369. package/static/media/image-editor/images/stickers/doodles/36.svg +273 -0
  370. package/static/media/image-editor/images/stickers/doodles/37.svg +284 -0
  371. package/static/media/image-editor/images/stickers/doodles/38.svg +167 -0
  372. package/static/media/image-editor/images/stickers/doodles/39.svg +381 -0
  373. package/static/media/image-editor/images/stickers/doodles/4.svg +216 -0
  374. package/static/media/image-editor/images/stickers/doodles/40.svg +198 -0
  375. package/static/media/image-editor/images/stickers/doodles/41.svg +259 -0
  376. package/static/media/image-editor/images/stickers/doodles/42.svg +371 -0
  377. package/static/media/image-editor/images/stickers/doodles/43.svg +198 -0
  378. package/static/media/image-editor/images/stickers/doodles/44.svg +174 -0
  379. package/static/media/image-editor/images/stickers/doodles/45.svg +178 -0
  380. package/static/media/image-editor/images/stickers/doodles/46.svg +211 -0
  381. package/static/media/image-editor/images/stickers/doodles/47.svg +195 -0
  382. package/static/media/image-editor/images/stickers/doodles/48.svg +293 -0
  383. package/static/media/image-editor/images/stickers/doodles/49.svg +191 -0
  384. package/static/media/image-editor/images/stickers/doodles/5.svg +179 -0
  385. package/static/media/image-editor/images/stickers/doodles/50.svg +323 -0
  386. package/static/media/image-editor/images/stickers/doodles/51.svg +308 -0
  387. package/static/media/image-editor/images/stickers/doodles/52.svg +162 -0
  388. package/static/media/image-editor/images/stickers/doodles/53.svg +263 -0
  389. package/static/media/image-editor/images/stickers/doodles/54.svg +175 -0
  390. package/static/media/image-editor/images/stickers/doodles/55.svg +177 -0
  391. package/static/media/image-editor/images/stickers/doodles/56.svg +160 -0
  392. package/static/media/image-editor/images/stickers/doodles/57.svg +115 -0
  393. package/static/media/image-editor/images/stickers/doodles/58.svg +327 -0
  394. package/static/media/image-editor/images/stickers/doodles/59.svg +197 -0
  395. package/static/media/image-editor/images/stickers/doodles/6.svg +388 -0
  396. package/static/media/image-editor/images/stickers/doodles/60.svg +414 -0
  397. package/static/media/image-editor/images/stickers/doodles/61.svg +287 -0
  398. package/static/media/image-editor/images/stickers/doodles/62.svg +193 -0
  399. package/static/media/image-editor/images/stickers/doodles/63.svg +329 -0
  400. package/static/media/image-editor/images/stickers/doodles/64.svg +150 -0
  401. package/static/media/image-editor/images/stickers/doodles/65.svg +275 -0
  402. package/static/media/image-editor/images/stickers/doodles/66.svg +174 -0
  403. package/static/media/image-editor/images/stickers/doodles/67.svg +343 -0
  404. package/static/media/image-editor/images/stickers/doodles/68.svg +242 -0
  405. package/static/media/image-editor/images/stickers/doodles/69.svg +160 -0
  406. package/static/media/image-editor/images/stickers/doodles/7.svg +194 -0
  407. package/static/media/image-editor/images/stickers/doodles/70.svg +365 -0
  408. package/static/media/image-editor/images/stickers/doodles/71.svg +454 -0
  409. package/static/media/image-editor/images/stickers/doodles/72.svg +162 -0
  410. package/static/media/image-editor/images/stickers/doodles/73.svg +393 -0
  411. package/static/media/image-editor/images/stickers/doodles/74.svg +206 -0
  412. package/static/media/image-editor/images/stickers/doodles/75.svg +275 -0
  413. package/static/media/image-editor/images/stickers/doodles/76.svg +350 -0
  414. package/static/media/image-editor/images/stickers/doodles/77.svg +323 -0
  415. package/static/media/image-editor/images/stickers/doodles/78.svg +316 -0
  416. package/static/media/image-editor/images/stickers/doodles/79.svg +503 -0
  417. package/static/media/image-editor/images/stickers/doodles/8.svg +185 -0
  418. package/static/media/image-editor/images/stickers/doodles/80.svg +235 -0
  419. package/static/media/image-editor/images/stickers/doodles/81.svg +184 -0
  420. package/static/media/image-editor/images/stickers/doodles/82.svg +246 -0
  421. package/static/media/image-editor/images/stickers/doodles/83.svg +125 -0
  422. package/static/media/image-editor/images/stickers/doodles/84.svg +168 -0
  423. package/static/media/image-editor/images/stickers/doodles/85.svg +138 -0
  424. package/static/media/image-editor/images/stickers/doodles/86.svg +223 -0
  425. package/static/media/image-editor/images/stickers/doodles/87.svg +475 -0
  426. package/static/media/image-editor/images/stickers/doodles/88.svg +172 -0
  427. package/static/media/image-editor/images/stickers/doodles/89.svg +199 -0
  428. package/static/media/image-editor/images/stickers/doodles/9.svg +368 -0
  429. package/static/media/image-editor/images/stickers/doodles/90.svg +298 -0
  430. package/static/media/image-editor/images/stickers/doodles/91.svg +176 -0
  431. package/static/media/image-editor/images/stickers/doodles/92.svg +152 -0
  432. package/static/media/image-editor/images/stickers/doodles/93.svg +206 -0
  433. package/static/media/image-editor/images/stickers/doodles/94.svg +202 -0
  434. package/static/media/image-editor/images/stickers/doodles/95.svg +114 -0
  435. package/static/media/image-editor/images/stickers/doodles/96.svg +149 -0
  436. package/static/media/image-editor/images/stickers/doodles/97.svg +197 -0
  437. package/static/media/image-editor/images/stickers/doodles/98.svg +397 -0
  438. package/static/media/image-editor/images/stickers/doodles/99.svg +502 -0
  439. package/static/media/image-editor/images/stickers/emoticons/afro-1.svg +122 -0
  440. package/static/media/image-editor/images/stickers/emoticons/afro.svg +85 -0
  441. package/static/media/image-editor/images/stickers/emoticons/agent.svg +114 -0
  442. package/static/media/image-editor/images/stickers/emoticons/alien-1.svg +60 -0
  443. package/static/media/image-editor/images/stickers/emoticons/alien.svg +64 -0
  444. package/static/media/image-editor/images/stickers/emoticons/angel.svg +47 -0
  445. package/static/media/image-editor/images/stickers/emoticons/angry-1.svg +83 -0
  446. package/static/media/image-editor/images/stickers/emoticons/angry-2.svg +48 -0
  447. package/static/media/image-editor/images/stickers/emoticons/angry-3.svg +45 -0
  448. package/static/media/image-editor/images/stickers/emoticons/angry-4.svg +52 -0
  449. package/static/media/image-editor/images/stickers/emoticons/angry-5.svg +62 -0
  450. package/static/media/image-editor/images/stickers/emoticons/angry.svg +78 -0
  451. package/static/media/image-editor/images/stickers/emoticons/arguing.svg +49 -0
  452. package/static/media/image-editor/images/stickers/emoticons/arrogant.svg +98 -0
  453. package/static/media/image-editor/images/stickers/emoticons/asian-1.svg +52 -0
  454. package/static/media/image-editor/images/stickers/emoticons/asian.svg +54 -0
  455. package/static/media/image-editor/images/stickers/emoticons/avatar.svg +49 -0
  456. package/static/media/image-editor/images/stickers/emoticons/baby-1.svg +51 -0
  457. package/static/media/image-editor/images/stickers/emoticons/baby-2.svg +54 -0
  458. package/static/media/image-editor/images/stickers/emoticons/baby.svg +66 -0
  459. package/static/media/image-editor/images/stickers/emoticons/bully.svg +68 -0
  460. package/static/media/image-editor/images/stickers/emoticons/burglar.svg +75 -0
  461. package/static/media/image-editor/images/stickers/emoticons/businessman.svg +52 -0
  462. package/static/media/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -0
  463. package/static/media/image-editor/images/stickers/emoticons/cheeky.svg +73 -0
  464. package/static/media/image-editor/images/stickers/emoticons/clown.svg +75 -0
  465. package/static/media/image-editor/images/stickers/emoticons/confused-1.svg +74 -0
  466. package/static/media/image-editor/images/stickers/emoticons/confused-2.svg +55 -0
  467. package/static/media/image-editor/images/stickers/emoticons/confused-3.svg +45 -0
  468. package/static/media/image-editor/images/stickers/emoticons/confused.svg +66 -0
  469. package/static/media/image-editor/images/stickers/emoticons/creepy.svg +60 -0
  470. package/static/media/image-editor/images/stickers/emoticons/crying-1.svg +55 -0
  471. package/static/media/image-editor/images/stickers/emoticons/crying-2.svg +83 -0
  472. package/static/media/image-editor/images/stickers/emoticons/crying-3.svg +53 -0
  473. package/static/media/image-editor/images/stickers/emoticons/crying.svg +59 -0
  474. package/static/media/image-editor/images/stickers/emoticons/dazed-1.svg +63 -0
  475. package/static/media/image-editor/images/stickers/emoticons/dazed-2.svg +51 -0
  476. package/static/media/image-editor/images/stickers/emoticons/dazed-3.svg +55 -0
  477. package/static/media/image-editor/images/stickers/emoticons/dazed.svg +56 -0
  478. package/static/media/image-editor/images/stickers/emoticons/dead-1.svg +61 -0
  479. package/static/media/image-editor/images/stickers/emoticons/dead-2.svg +80 -0
  480. package/static/media/image-editor/images/stickers/emoticons/dead-3.svg +66 -0
  481. package/static/media/image-editor/images/stickers/emoticons/dead-4.svg +54 -0
  482. package/static/media/image-editor/images/stickers/emoticons/dead-5.svg +52 -0
  483. package/static/media/image-editor/images/stickers/emoticons/dead-6.svg +53 -0
  484. package/static/media/image-editor/images/stickers/emoticons/dead.svg +54 -0
  485. package/static/media/image-editor/images/stickers/emoticons/desperate-1.svg +47 -0
  486. package/static/media/image-editor/images/stickers/emoticons/desperate.svg +75 -0
  487. package/static/media/image-editor/images/stickers/emoticons/detective.svg +75 -0
  488. package/static/media/image-editor/images/stickers/emoticons/dissapointment.svg +70 -0
  489. package/static/media/image-editor/images/stickers/emoticons/doctor.svg +61 -0
  490. package/static/media/image-editor/images/stickers/emoticons/drunk.svg +55 -0
  491. package/static/media/image-editor/images/stickers/emoticons/dumb.svg +50 -0
  492. package/static/media/image-editor/images/stickers/emoticons/emo-1.svg +104 -0
  493. package/static/media/image-editor/images/stickers/emoticons/emo-2.svg +111 -0
  494. package/static/media/image-editor/images/stickers/emoticons/emo.svg +56 -0
  495. package/static/media/image-editor/images/stickers/emoticons/emoticon.svg +84 -0
  496. package/static/media/image-editor/images/stickers/emoticons/evil.svg +59 -0
  497. package/static/media/image-editor/images/stickers/emoticons/faint-1.svg +75 -0
  498. package/static/media/image-editor/images/stickers/emoticons/faint.svg +84 -0
  499. package/static/media/image-editor/images/stickers/emoticons/flirt-1.svg +81 -0
  500. package/static/media/image-editor/images/stickers/emoticons/flirt-2.svg +68 -0
  501. package/static/media/image-editor/images/stickers/emoticons/flirt.svg +71 -0
  502. package/static/media/image-editor/images/stickers/emoticons/flirty.svg +60 -0
  503. package/static/media/image-editor/images/stickers/emoticons/gangster.svg +54 -0
  504. package/static/media/image-editor/images/stickers/emoticons/geek-1.svg +76 -0
  505. package/static/media/image-editor/images/stickers/emoticons/geek.svg +69 -0
  506. package/static/media/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -0
  507. package/static/media/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -0
  508. package/static/media/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -0
  509. package/static/media/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -0
  510. package/static/media/image-editor/images/stickers/emoticons/gentleman.svg +57 -0
  511. package/static/media/image-editor/images/stickers/emoticons/ginger.svg +55 -0
  512. package/static/media/image-editor/images/stickers/emoticons/girl-1.svg +70 -0
  513. package/static/media/image-editor/images/stickers/emoticons/girl.svg +73 -0
  514. package/static/media/image-editor/images/stickers/emoticons/goofy-1.svg +46 -0
  515. package/static/media/image-editor/images/stickers/emoticons/goofy-2.svg +79 -0
  516. package/static/media/image-editor/images/stickers/emoticons/goofy-3.svg +79 -0
  517. package/static/media/image-editor/images/stickers/emoticons/goofy-4.svg +46 -0
  518. package/static/media/image-editor/images/stickers/emoticons/goofy.svg +79 -0
  519. package/static/media/image-editor/images/stickers/emoticons/grubby-1.svg +114 -0
  520. package/static/media/image-editor/images/stickers/emoticons/grubby.svg +165 -0
  521. package/static/media/image-editor/images/stickers/emoticons/happy-1.svg +49 -0
  522. package/static/media/image-editor/images/stickers/emoticons/happy-10.svg +62 -0
  523. package/static/media/image-editor/images/stickers/emoticons/happy-11.svg +55 -0
  524. package/static/media/image-editor/images/stickers/emoticons/happy-12.svg +53 -0
  525. package/static/media/image-editor/images/stickers/emoticons/happy-13.svg +58 -0
  526. package/static/media/image-editor/images/stickers/emoticons/happy-14.svg +62 -0
  527. package/static/media/image-editor/images/stickers/emoticons/happy-15.svg +49 -0
  528. package/static/media/image-editor/images/stickers/emoticons/happy-16.svg +49 -0
  529. package/static/media/image-editor/images/stickers/emoticons/happy-2.svg +71 -0
  530. package/static/media/image-editor/images/stickers/emoticons/happy-3.svg +74 -0
  531. package/static/media/image-editor/images/stickers/emoticons/happy-4.svg +77 -0
  532. package/static/media/image-editor/images/stickers/emoticons/happy-5.svg +52 -0
  533. package/static/media/image-editor/images/stickers/emoticons/happy-6.svg +54 -0
  534. package/static/media/image-editor/images/stickers/emoticons/happy-7.svg +58 -0
  535. package/static/media/image-editor/images/stickers/emoticons/happy-8.svg +42 -0
  536. package/static/media/image-editor/images/stickers/emoticons/happy-9.svg +45 -0
  537. package/static/media/image-editor/images/stickers/emoticons/happy.svg +48 -0
  538. package/static/media/image-editor/images/stickers/emoticons/harry-potter.svg +68 -0
  539. package/static/media/image-editor/images/stickers/emoticons/heisenberg.svg +80 -0
  540. package/static/media/image-editor/images/stickers/emoticons/hipster-1.svg +118 -0
  541. package/static/media/image-editor/images/stickers/emoticons/hipster-2.svg +49 -0
  542. package/static/media/image-editor/images/stickers/emoticons/hipster.svg +48 -0
  543. package/static/media/image-editor/images/stickers/emoticons/in-love-1.svg +62 -0
  544. package/static/media/image-editor/images/stickers/emoticons/in-love-2.svg +48 -0
  545. package/static/media/image-editor/images/stickers/emoticons/in-love-3.svg +49 -0
  546. package/static/media/image-editor/images/stickers/emoticons/in-love-4.svg +50 -0
  547. package/static/media/image-editor/images/stickers/emoticons/in-love-5.svg +49 -0
  548. package/static/media/image-editor/images/stickers/emoticons/in-love-6.svg +53 -0
  549. package/static/media/image-editor/images/stickers/emoticons/in-love.svg +57 -0
  550. package/static/media/image-editor/images/stickers/emoticons/japan.svg +79 -0
  551. package/static/media/image-editor/images/stickers/emoticons/jew.svg +83 -0
  552. package/static/media/image-editor/images/stickers/emoticons/joyful-1.svg +72 -0
  553. package/static/media/image-editor/images/stickers/emoticons/joyful-2.svg +45 -0
  554. package/static/media/image-editor/images/stickers/emoticons/joyful.svg +47 -0
  555. package/static/media/image-editor/images/stickers/emoticons/kiss-1.svg +48 -0
  556. package/static/media/image-editor/images/stickers/emoticons/kiss-2.svg +59 -0
  557. package/static/media/image-editor/images/stickers/emoticons/kiss-3.svg +53 -0
  558. package/static/media/image-editor/images/stickers/emoticons/kiss-4.svg +59 -0
  559. package/static/media/image-editor/images/stickers/emoticons/kiss.svg +67 -0
  560. package/static/media/image-editor/images/stickers/emoticons/laughing-1.svg +54 -0
  561. package/static/media/image-editor/images/stickers/emoticons/laughing-2.svg +57 -0
  562. package/static/media/image-editor/images/stickers/emoticons/laughing-3.svg +55 -0
  563. package/static/media/image-editor/images/stickers/emoticons/laughing.svg +56 -0
  564. package/static/media/image-editor/images/stickers/emoticons/listening.svg +55 -0
  565. package/static/media/image-editor/images/stickers/emoticons/love.svg +74 -0
  566. package/static/media/image-editor/images/stickers/emoticons/manly.svg +75 -0
  567. package/static/media/image-editor/images/stickers/emoticons/miserly-1.svg +90 -0
  568. package/static/media/image-editor/images/stickers/emoticons/miserly.svg +82 -0
  569. package/static/media/image-editor/images/stickers/emoticons/nerd-1.svg +88 -0
  570. package/static/media/image-editor/images/stickers/emoticons/nerd-2.svg +73 -0
  571. package/static/media/image-editor/images/stickers/emoticons/nerd-3.svg +60 -0
  572. package/static/media/image-editor/images/stickers/emoticons/nerd-4.svg +70 -0
  573. package/static/media/image-editor/images/stickers/emoticons/nerd.svg +88 -0
  574. package/static/media/image-editor/images/stickers/emoticons/ninja.svg +51 -0
  575. package/static/media/image-editor/images/stickers/emoticons/pirate-1.svg +92 -0
  576. package/static/media/image-editor/images/stickers/emoticons/pirate-2.svg +48 -0
  577. package/static/media/image-editor/images/stickers/emoticons/pirate.svg +286 -0
  578. package/static/media/image-editor/images/stickers/emoticons/punk-1.svg +134 -0
  579. package/static/media/image-editor/images/stickers/emoticons/punk-2.svg +153 -0
  580. package/static/media/image-editor/images/stickers/emoticons/punk.svg +82 -0
  581. package/static/media/image-editor/images/stickers/emoticons/rapper.svg +51 -0
  582. package/static/media/image-editor/images/stickers/emoticons/relieved.svg +56 -0
  583. package/static/media/image-editor/images/stickers/emoticons/rich-1.svg +59 -0
  584. package/static/media/image-editor/images/stickers/emoticons/rich-2.svg +93 -0
  585. package/static/media/image-editor/images/stickers/emoticons/rich.svg +88 -0
  586. package/static/media/image-editor/images/stickers/emoticons/rockstar.svg +177 -0
  587. package/static/media/image-editor/images/stickers/emoticons/sad-1.svg +43 -0
  588. package/static/media/image-editor/images/stickers/emoticons/sad-2.svg +49 -0
  589. package/static/media/image-editor/images/stickers/emoticons/sad-3.svg +49 -0
  590. package/static/media/image-editor/images/stickers/emoticons/sad-4.svg +49 -0
  591. package/static/media/image-editor/images/stickers/emoticons/sad-5.svg +45 -0
  592. package/static/media/image-editor/images/stickers/emoticons/sad-6.svg +47 -0
  593. package/static/media/image-editor/images/stickers/emoticons/sad.svg +47 -0
  594. package/static/media/image-editor/images/stickers/emoticons/scared-1.svg +79 -0
  595. package/static/media/image-editor/images/stickers/emoticons/scared-2.svg +59 -0
  596. package/static/media/image-editor/images/stickers/emoticons/scared-3.svg +52 -0
  597. package/static/media/image-editor/images/stickers/emoticons/scared.svg +45 -0
  598. package/static/media/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -0
  599. package/static/media/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -0
  600. package/static/media/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -0
  601. package/static/media/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -0
  602. package/static/media/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -0
  603. package/static/media/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -0
  604. package/static/media/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -0
  605. package/static/media/image-editor/images/stickers/emoticons/sceptic.svg +44 -0
  606. package/static/media/image-editor/images/stickers/emoticons/secret.svg +48 -0
  607. package/static/media/image-editor/images/stickers/emoticons/shocked-1.svg +67 -0
  608. package/static/media/image-editor/images/stickers/emoticons/shocked-2.svg +44 -0
  609. package/static/media/image-editor/images/stickers/emoticons/shocked-3.svg +48 -0
  610. package/static/media/image-editor/images/stickers/emoticons/shocked.svg +46 -0
  611. package/static/media/image-editor/images/stickers/emoticons/sick-1.svg +55 -0
  612. package/static/media/image-editor/images/stickers/emoticons/sick-2.svg +48 -0
  613. package/static/media/image-editor/images/stickers/emoticons/sick-3.svg +49 -0
  614. package/static/media/image-editor/images/stickers/emoticons/sick-4.svg +52 -0
  615. package/static/media/image-editor/images/stickers/emoticons/sick.svg +52 -0
  616. package/static/media/image-editor/images/stickers/emoticons/silent.svg +43 -0
  617. package/static/media/image-editor/images/stickers/emoticons/skeleton.svg +64 -0
  618. package/static/media/image-editor/images/stickers/emoticons/smile.svg +43 -0
  619. package/static/media/image-editor/images/stickers/emoticons/smiling-1.svg +47 -0
  620. package/static/media/image-editor/images/stickers/emoticons/smiling.svg +75 -0
  621. package/static/media/image-editor/images/stickers/emoticons/smoked.svg +131 -0
  622. package/static/media/image-editor/images/stickers/emoticons/smug-1.svg +74 -0
  623. package/static/media/image-editor/images/stickers/emoticons/smug-2.svg +82 -0
  624. package/static/media/image-editor/images/stickers/emoticons/smug-3.svg +71 -0
  625. package/static/media/image-editor/images/stickers/emoticons/smug-4.svg +50 -0
  626. package/static/media/image-editor/images/stickers/emoticons/smug-5.svg +64 -0
  627. package/static/media/image-editor/images/stickers/emoticons/smug-6.svg +82 -0
  628. package/static/media/image-editor/images/stickers/emoticons/smug.svg +96 -0
  629. package/static/media/image-editor/images/stickers/emoticons/sporty.svg +68 -0
  630. package/static/media/image-editor/images/stickers/emoticons/stunned.svg +72 -0
  631. package/static/media/image-editor/images/stickers/emoticons/superhero-1.svg +60 -0
  632. package/static/media/image-editor/images/stickers/emoticons/superhero-2.svg +47 -0
  633. package/static/media/image-editor/images/stickers/emoticons/superhero-3.svg +48 -0
  634. package/static/media/image-editor/images/stickers/emoticons/superhero-4.svg +52 -0
  635. package/static/media/image-editor/images/stickers/emoticons/superhero.svg +45 -0
  636. package/static/media/image-editor/images/stickers/emoticons/surprised-1.svg +47 -0
  637. package/static/media/image-editor/images/stickers/emoticons/surprised.svg +58 -0
  638. package/static/media/image-editor/images/stickers/emoticons/thinking.svg +43 -0
  639. package/static/media/image-editor/images/stickers/emoticons/tired-1.svg +78 -0
  640. package/static/media/image-editor/images/stickers/emoticons/tired-2.svg +65 -0
  641. package/static/media/image-editor/images/stickers/emoticons/tired-3.svg +59 -0
  642. package/static/media/image-editor/images/stickers/emoticons/tired.svg +83 -0
  643. package/static/media/image-editor/images/stickers/emoticons/tough-1.svg +65 -0
  644. package/static/media/image-editor/images/stickers/emoticons/tough.svg +158 -0
  645. package/static/media/image-editor/images/stickers/emoticons/trendy.svg +57 -0
  646. package/static/media/image-editor/images/stickers/emoticons/vampire-1.svg +56 -0
  647. package/static/media/image-editor/images/stickers/emoticons/vampire.svg +59 -0
  648. package/static/media/image-editor/images/stickers/emoticons/wink-1.svg +54 -0
  649. package/static/media/image-editor/images/stickers/emoticons/wink-2.svg +64 -0
  650. package/static/media/image-editor/images/stickers/emoticons/wink.svg +73 -0
  651. package/static/media/image-editor/images/stickers/emoticons/winking-1.svg +52 -0
  652. package/static/media/image-editor/images/stickers/emoticons/winking.svg +43 -0
  653. package/static/media/image-editor/images/stickers/emoticons/yawning-1.svg +62 -0
  654. package/static/media/image-editor/images/stickers/emoticons/yawning-2.svg +51 -0
  655. package/static/media/image-editor/images/stickers/emoticons/yawning-3.svg +51 -0
  656. package/static/media/image-editor/images/stickers/emoticons/yawning.svg +73 -0
  657. package/static/media/image-editor/images/stickers/emoticons/yelling.svg +80 -0
  658. package/static/media/image-editor/images/stickers/emoticons/zombie.svg +65 -0
  659. package/static/media/image-editor/images/stickers/landmarks/0.svg +38 -0
  660. package/static/media/image-editor/images/stickers/landmarks/1.svg +46 -0
  661. package/static/media/image-editor/images/stickers/landmarks/10.svg +18 -0
  662. package/static/media/image-editor/images/stickers/landmarks/11.svg +81 -0
  663. package/static/media/image-editor/images/stickers/landmarks/12.svg +77 -0
  664. package/static/media/image-editor/images/stickers/landmarks/13.svg +42 -0
  665. package/static/media/image-editor/images/stickers/landmarks/14.svg +78 -0
  666. package/static/media/image-editor/images/stickers/landmarks/15.svg +84 -0
  667. package/static/media/image-editor/images/stickers/landmarks/16.svg +87 -0
  668. package/static/media/image-editor/images/stickers/landmarks/17.svg +60 -0
  669. package/static/media/image-editor/images/stickers/landmarks/18.svg +30 -0
  670. package/static/media/image-editor/images/stickers/landmarks/19.svg +36 -0
  671. package/static/media/image-editor/images/stickers/landmarks/2.svg +28 -0
  672. package/static/media/image-editor/images/stickers/landmarks/20.svg +137 -0
  673. package/static/media/image-editor/images/stickers/landmarks/21.svg +63 -0
  674. package/static/media/image-editor/images/stickers/landmarks/22.svg +26 -0
  675. package/static/media/image-editor/images/stickers/landmarks/23.svg +52 -0
  676. package/static/media/image-editor/images/stickers/landmarks/24.svg +56 -0
  677. package/static/media/image-editor/images/stickers/landmarks/25.svg +40 -0
  678. package/static/media/image-editor/images/stickers/landmarks/26.svg +34 -0
  679. package/static/media/image-editor/images/stickers/landmarks/27.svg +32 -0
  680. package/static/media/image-editor/images/stickers/landmarks/28.svg +19 -0
  681. package/static/media/image-editor/images/stickers/landmarks/29.svg +23 -0
  682. package/static/media/image-editor/images/stickers/landmarks/3.svg +36 -0
  683. package/static/media/image-editor/images/stickers/landmarks/30.svg +36 -0
  684. package/static/media/image-editor/images/stickers/landmarks/31.svg +27 -0
  685. package/static/media/image-editor/images/stickers/landmarks/32.svg +25 -0
  686. package/static/media/image-editor/images/stickers/landmarks/33.svg +29 -0
  687. package/static/media/image-editor/images/stickers/landmarks/34.svg +72 -0
  688. package/static/media/image-editor/images/stickers/landmarks/35.svg +18 -0
  689. package/static/media/image-editor/images/stickers/landmarks/36.svg +45 -0
  690. package/static/media/image-editor/images/stickers/landmarks/37.svg +46 -0
  691. package/static/media/image-editor/images/stickers/landmarks/38.svg +44 -0
  692. package/static/media/image-editor/images/stickers/landmarks/39.svg +23 -0
  693. package/static/media/image-editor/images/stickers/landmarks/4.svg +33 -0
  694. package/static/media/image-editor/images/stickers/landmarks/40.svg +25 -0
  695. package/static/media/image-editor/images/stickers/landmarks/41.svg +69 -0
  696. package/static/media/image-editor/images/stickers/landmarks/42.svg +75 -0
  697. package/static/media/image-editor/images/stickers/landmarks/43.svg +44 -0
  698. package/static/media/image-editor/images/stickers/landmarks/44.svg +65 -0
  699. package/static/media/image-editor/images/stickers/landmarks/45.svg +19 -0
  700. package/static/media/image-editor/images/stickers/landmarks/46.svg +47 -0
  701. package/static/media/image-editor/images/stickers/landmarks/47.svg +544 -0
  702. package/static/media/image-editor/images/stickers/landmarks/48.svg +162 -0
  703. package/static/media/image-editor/images/stickers/landmarks/49.svg +70 -0
  704. package/static/media/image-editor/images/stickers/landmarks/5.svg +36 -0
  705. package/static/media/image-editor/images/stickers/landmarks/50.svg +52 -0
  706. package/static/media/image-editor/images/stickers/landmarks/51.svg +110 -0
  707. package/static/media/image-editor/images/stickers/landmarks/52.svg +41 -0
  708. package/static/media/image-editor/images/stickers/landmarks/53.svg +74 -0
  709. package/static/media/image-editor/images/stickers/landmarks/54.svg +36 -0
  710. package/static/media/image-editor/images/stickers/landmarks/55.svg +84 -0
  711. package/static/media/image-editor/images/stickers/landmarks/56.svg +93 -0
  712. package/static/media/image-editor/images/stickers/landmarks/57.svg +67 -0
  713. package/static/media/image-editor/images/stickers/landmarks/58.svg +101 -0
  714. package/static/media/image-editor/images/stickers/landmarks/59.svg +47 -0
  715. package/static/media/image-editor/images/stickers/landmarks/6.svg +59 -0
  716. package/static/media/image-editor/images/stickers/landmarks/60.svg +134 -0
  717. package/static/media/image-editor/images/stickers/landmarks/61.svg +79 -0
  718. package/static/media/image-editor/images/stickers/landmarks/62.svg +43 -0
  719. package/static/media/image-editor/images/stickers/landmarks/63.svg +83 -0
  720. package/static/media/image-editor/images/stickers/landmarks/64.svg +99 -0
  721. package/static/media/image-editor/images/stickers/landmarks/65.svg +79 -0
  722. package/static/media/image-editor/images/stickers/landmarks/66.svg +37 -0
  723. package/static/media/image-editor/images/stickers/landmarks/67.svg +82 -0
  724. package/static/media/image-editor/images/stickers/landmarks/68.svg +216 -0
  725. package/static/media/image-editor/images/stickers/landmarks/69.svg +17 -0
  726. package/static/media/image-editor/images/stickers/landmarks/7.svg +16 -0
  727. package/static/media/image-editor/images/stickers/landmarks/70.svg +45 -0
  728. package/static/media/image-editor/images/stickers/landmarks/71.svg +37 -0
  729. package/static/media/image-editor/images/stickers/landmarks/72.svg +28 -0
  730. package/static/media/image-editor/images/stickers/landmarks/73.svg +25 -0
  731. package/static/media/image-editor/images/stickers/landmarks/74.svg +23 -0
  732. package/static/media/image-editor/images/stickers/landmarks/75.svg +88 -0
  733. package/static/media/image-editor/images/stickers/landmarks/76.svg +25 -0
  734. package/static/media/image-editor/images/stickers/landmarks/77.svg +23 -0
  735. package/static/media/image-editor/images/stickers/landmarks/78.svg +63 -0
  736. package/static/media/image-editor/images/stickers/landmarks/79.svg +25 -0
  737. package/static/media/image-editor/images/stickers/landmarks/8.svg +52 -0
  738. package/static/media/image-editor/images/stickers/landmarks/80.svg +29 -0
  739. package/static/media/image-editor/images/stickers/landmarks/81.svg +44 -0
  740. package/static/media/image-editor/images/stickers/landmarks/82.svg +83 -0
  741. package/static/media/image-editor/images/stickers/landmarks/83.svg +65 -0
  742. package/static/media/image-editor/images/stickers/landmarks/84.svg +31 -0
  743. package/static/media/image-editor/images/stickers/landmarks/85.svg +30 -0
  744. package/static/media/image-editor/images/stickers/landmarks/86.svg +26 -0
  745. package/static/media/image-editor/images/stickers/landmarks/87.svg +132 -0
  746. package/static/media/image-editor/images/stickers/landmarks/88.svg +93 -0
  747. package/static/media/image-editor/images/stickers/landmarks/89.svg +91 -0
  748. package/static/media/image-editor/images/stickers/landmarks/9.svg +70 -0
  749. package/static/media/image-editor/images/stickers/landmarks/90.svg +65 -0
  750. package/static/media/image-editor/images/stickers/landmarks/91.svg +36 -0
  751. package/static/media/image-editor/images/stickers/landmarks/92.svg +66 -0
  752. package/static/media/image-editor/images/stickers/landmarks/93.svg +65 -0
  753. package/static/media/image-editor/images/stickers/landmarks/94.svg +28 -0
  754. package/static/media/image-editor/images/stickers/landmarks/95.svg +31 -0
  755. package/static/media/image-editor/images/stickers/landmarks/96.svg +25 -0
  756. package/static/media/image-editor/images/stickers/landmarks/97.svg +31 -0
  757. package/static/media/image-editor/images/stickers/landmarks/98.svg +52 -0
  758. package/static/media/image-editor/images/stickers/landmarks/99.svg +56 -0
  759. package/static/media/image-editor/images/stickers/stars/0.png +0 -0
  760. package/static/media/image-editor/images/stickers/stars/1.png +0 -0
  761. package/static/media/image-editor/images/stickers/stars/2.png +0 -0
  762. package/static/media/image-editor/images/stickers/stars/3.png +0 -0
  763. package/static/media/image-editor/images/stickers/stars/4.png +0 -0
  764. package/static/media/image-editor/images/stickers/stars/5.png +0 -0
  765. package/static/media/image-editor/images/stickers/transportation/0.svg +26 -0
  766. package/static/media/image-editor/images/stickers/transportation/1.svg +10 -0
  767. package/static/media/image-editor/images/stickers/transportation/10.svg +16 -0
  768. package/static/media/image-editor/images/stickers/transportation/11.svg +30 -0
  769. package/static/media/image-editor/images/stickers/transportation/12.svg +22 -0
  770. package/static/media/image-editor/images/stickers/transportation/13.svg +24 -0
  771. package/static/media/image-editor/images/stickers/transportation/14.svg +19 -0
  772. package/static/media/image-editor/images/stickers/transportation/15.svg +23 -0
  773. package/static/media/image-editor/images/stickers/transportation/16.svg +25 -0
  774. package/static/media/image-editor/images/stickers/transportation/17.svg +34 -0
  775. package/static/media/image-editor/images/stickers/transportation/18.svg +29 -0
  776. package/static/media/image-editor/images/stickers/transportation/19.svg +24 -0
  777. package/static/media/image-editor/images/stickers/transportation/2.svg +27 -0
  778. package/static/media/image-editor/images/stickers/transportation/20.svg +25 -0
  779. package/static/media/image-editor/images/stickers/transportation/21.svg +22 -0
  780. package/static/media/image-editor/images/stickers/transportation/3.svg +18 -0
  781. package/static/media/image-editor/images/stickers/transportation/4.svg +24 -0
  782. package/static/media/image-editor/images/stickers/transportation/5.svg +15 -0
  783. package/static/media/image-editor/images/stickers/transportation/6.svg +25 -0
  784. package/static/media/image-editor/images/stickers/transportation/7.svg +17 -0
  785. package/static/media/image-editor/images/stickers/transportation/8.svg +28 -0
  786. package/static/media/image-editor/images/stickers/transportation/9.svg +23 -0
  787. package/static/media/image-editor/images/textures/0.png +0 -0
  788. package/static/media/image-editor/images/textures/1.png +0 -0
  789. package/static/media/image-editor/images/textures/10.png +0 -0
  790. package/static/media/image-editor/images/textures/11.png +0 -0
  791. package/static/media/image-editor/images/textures/12.png +0 -0
  792. package/static/media/image-editor/images/textures/13.png +0 -0
  793. package/static/media/image-editor/images/textures/14.png +0 -0
  794. package/static/media/image-editor/images/textures/15.png +0 -0
  795. package/static/media/image-editor/images/textures/16.png +0 -0
  796. package/static/media/image-editor/images/textures/17.png +0 -0
  797. package/static/media/image-editor/images/textures/18.png +0 -0
  798. package/static/media/image-editor/images/textures/19.png +0 -0
  799. package/static/media/image-editor/images/textures/2.png +0 -0
  800. package/static/media/image-editor/images/textures/20.png +0 -0
  801. package/static/media/image-editor/images/textures/21.png +0 -0
  802. package/static/media/image-editor/images/textures/22.png +0 -0
  803. package/static/media/image-editor/images/textures/23.png +0 -0
  804. package/static/media/image-editor/images/textures/24.png +0 -0
  805. package/static/media/image-editor/images/textures/25.png +0 -0
  806. package/static/media/image-editor/images/textures/26.png +0 -0
  807. package/static/media/image-editor/images/textures/27.png +0 -0
  808. package/static/media/image-editor/images/textures/28.png +0 -0
  809. package/static/media/image-editor/images/textures/3.png +0 -0
  810. package/static/media/image-editor/images/textures/4.png +0 -0
  811. package/static/media/image-editor/images/textures/5.png +0 -0
  812. package/static/media/image-editor/images/textures/6.png +0 -0
  813. package/static/media/image-editor/images/textures/7.png +0 -0
  814. package/static/media/image-editor/images/textures/8.png +0 -0
  815. package/static/media/image-editor/images/textures/9.png +0 -0
  816. package/two_step_headless_plugin.html +1 -1
  817. package/emailmaker-core.7f77c8e5.js +0 -663
  818. package/static/core/7d16db79.js +0 -46
  819. package/static/esm/176b4cb2.js +0 -131
  820. /package/iframe/{iframe-eblock.7f77c8e5.html → iframe-eblock.0eca2ff8.html} +0 -0
  821. /package/iframe/{iframe.7f77c8e5.html → iframe.0eca2ff8.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.46");
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.0eca2ff8.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",
@@ -2778,15 +2575,16 @@ var le = { isPlugin: !0 }, Xr = {
2778
2575
  em_active_tab: "em_active_tab",
2779
2576
  em_ai_settings: "em_ai_settings",
2780
2577
  em_last_active_page: "em_last_active_page",
2781
- em_layout_convert_never_suggest: "em_layout_convert_never_suggest"
2578
+ em_layout_convert_never_suggest: "em_layout_convert_never_suggest",
2579
+ em_filemanager_v2: "em_filemanager_v2"
2782
2580
  };
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 = {
2581
+ 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");
2582
+ var lr = {
2785
2583
  ALL: "All",
2786
2584
  STANDARD: "Standard",
2787
2585
  PROJECT: "Project"
2788
2586
  };
2789
- var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", Ut = K({
2587
+ var sr = "Edit selected element", Ze = "Build", vt = "desktop", dr = "mobile", St = W({
2790
2588
  reducerPath: "blocksApi",
2791
2589
  tagTypes: [
2792
2590
  "Blocks",
@@ -2794,24 +2592,24 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2794
2592
  "ParentsBlocks",
2795
2593
  "Block"
2796
2594
  ],
2797
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
2798
- endpoints: (e) => ({
2799
- getBlocks: e.query({
2800
- queryFn(t, n) {
2595
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
2596
+ endpoints: (t) => ({
2597
+ getBlocks: t.query({
2598
+ queryFn(e, n) {
2801
2599
  const r = _(n), i = {
2802
2600
  order: "desc",
2803
2601
  orderby: "modified"
2804
2602
  }, 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") {
2603
+ 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
2604
  i["filter[tax_query][relation]"] = "AND";
2807
- for (let o = 0, c = t.tags.length; o < c; o++) {
2808
- const f = t.tags[o];
2605
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2606
+ const f = e.tags[o];
2809
2607
  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
2608
  }
2811
2609
  }
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));
2610
+ 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
2611
  },
2814
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2612
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2815
2613
  type: "Blocks",
2816
2614
  id: n
2817
2615
  })), {
@@ -2823,25 +2621,25 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2823
2621
  }],
2824
2622
  keepUnusedDataFor: 0
2825
2623
  }),
2826
- getBlocksSchema: e.query({ queryFn(t, n) {
2624
+ getBlocksSchema: t.query({ queryFn(e, n) {
2827
2625
  return _(n).wp.eblock_list(void 0, {
2828
2626
  method: "OPTIONS",
2829
2627
  extraQuery: { _fields: "schema.properties.acf" }
2830
2628
  });
2831
2629
  } }),
2832
- getParentEmailBlocks: e.query({
2833
- queryFn(t, n) {
2630
+ getParentEmailBlocks: t.query({
2631
+ queryFn(e, n) {
2834
2632
  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) {
2633
+ 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
2634
  i["filter[tax_query][relation]"] = "AND";
2837
- for (let o = 0, c = t.tags.length; o < c; o++) {
2838
- const f = t.tags[o];
2635
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2636
+ const f = e.tags[o];
2839
2637
  i[`filter[tax_query][${o}][taxonomy]`] = "blocktags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
2840
2638
  }
2841
2639
  }
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));
2640
+ 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
2641
  },
2844
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2642
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2845
2643
  type: "ParentsBlocks",
2846
2644
  id: n
2847
2645
  })), {
@@ -2853,24 +2651,24 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2853
2651
  }],
2854
2652
  keepUnusedDataFor: 0
2855
2653
  }),
2856
- getTemplateBlocks: e.query({
2857
- queryFn: (t, n) => {
2654
+ getTemplateBlocks: t.query({
2655
+ queryFn: (e, n) => {
2858
2656
  const r = _(n), i = {
2859
2657
  "filter[meta_query][1][key]": "is_template",
2860
2658
  "filter[meta_query][1][value]": "1",
2861
2659
  orderby: "modified",
2862
2660
  order: "desc"
2863
2661
  }, a = {};
2864
- if (t.notEmbed || (a._embed = ""), t.fields && (a._fields = t.fields), t.page && (i.page = t.page), t.tags?.length > 0) {
2662
+ if (e.notEmbed || (a._embed = ""), e.fields && (a._fields = e.fields), e.page && (i.page = e.page), e.tags?.length > 0) {
2865
2663
  i["filter[tax_query][relation]"] = "AND";
2866
- for (let o = 0, c = t.tags.length; o < c; o++) {
2867
- const f = t.tags[o];
2664
+ for (let o = 0, c = e.tags.length; o < c; o++) {
2665
+ const f = e.tags[o];
2868
2666
  i[`filter[tax_query][${o}][taxonomy]`] = "blocktags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
2869
2667
  }
2870
2668
  }
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));
2669
+ 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
2670
  },
2873
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
2671
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
2874
2672
  type: "TemplatesBlocks",
2875
2673
  id: n
2876
2674
  })), {
@@ -2882,220 +2680,220 @@ var Kr = "Edit selected element", dt = "Build", qt = "desktop", Jr = "mobile", U
2882
2680
  }],
2883
2681
  keepUnusedDataFor: 0
2884
2682
  }),
2885
- getBlock: e.query({
2886
- queryFn(t, n) {
2887
- return _(n).wp.eblock_detail({ id: I(t) }, { extraQuery: { _embed: "" } }).then(S(M));
2683
+ getBlock: t.query({
2684
+ queryFn(e, n) {
2685
+ return _(n).wp.eblock_detail({ id: T(e) }, { extraQuery: { _embed: "" } }).then(S(M));
2888
2686
  },
2889
- providesTags: (t, n, r) => [{
2687
+ providesTags: (e, n, r) => [{
2890
2688
  type: "Block",
2891
2689
  id: r
2892
2690
  }],
2893
2691
  keepUnusedDataFor: 0
2894
2692
  }),
2895
- getBlockHistory: e.query({
2896
- queryFn({ blockId: t, page: n = 1 }, r) {
2693
+ getBlockHistory: t.query({
2694
+ queryFn({ blockId: e, page: n = 1 }, r) {
2897
2695
  return _(r).wp.eblock_revisions_list({
2898
- parent: t,
2696
+ parent: e,
2899
2697
  per_page: 20,
2900
2698
  page: n
2901
- }, { extraQuery: { _fields: "author,slug,date,modified,title,acf.html,acf.common_styles,id" } }).then((i) => ce(i, (a, o) => ({
2699
+ }, { extraQuery: { _fields: "author,slug,date,modified,title,acf.html,acf.common_styles,id" } }).then((i) => oe(i, (a, o) => ({
2902
2700
  data: a.filter((c) => c.acf.html).map((c) => ({
2903
2701
  ...c,
2904
2702
  acf: {
2905
2703
  ...c.acf,
2906
2704
  html: c.acf.html
2907
2705
  }
2908
- })).map(ut),
2706
+ })).map(Ye),
2909
2707
  totalPages: +o.response.headers.get("X-WP-TotalPages"),
2910
2708
  args: {
2911
- blockId: t,
2709
+ blockId: e,
2912
2710
  page: n
2913
2711
  }
2914
2712
  })));
2915
2713
  },
2916
2714
  keepUnusedDataFor: 0
2917
2715
  }),
2918
- addBlock: e.mutation({
2919
- queryFn(t, n) {
2716
+ addBlock: t.mutation({
2717
+ queryFn(e, n) {
2920
2718
  return _(n).wp.eblock_create({
2921
- ...st(t),
2719
+ ...Je(e),
2922
2720
  status: "publish"
2923
- }, { type: C.Json }).then(S(M));
2721
+ }, { type: k.Json }).then(S(M));
2924
2722
  },
2925
2723
  invalidatesTags: [{
2926
2724
  type: "Blocks",
2927
2725
  id: "LIST"
2928
2726
  }]
2929
2727
  }),
2930
- editBlock: e.mutation({ queryFn: Ce((t) => ({ blockId: n, source: r, ...i }, a) => {
2931
- const o = _(t), c = Y(st(i));
2728
+ editBlock: t.mutation({ queryFn: Te((e) => ({ blockId: n, source: r, ...i }, a) => {
2729
+ const o = _(e), c = Q(Je(i));
2932
2730
  return o.wp.eblock_partial_update({ id: n }, c, {
2933
- type: C.Json,
2731
+ type: k.Json,
2934
2732
  extraQuery: { _embed: "wp:term" }
2935
2733
  }).then(S(M));
2936
2734
  }) }),
2937
- deleteBlock: e.mutation({
2938
- queryFn(t, n) {
2735
+ deleteBlock: t.mutation({
2736
+ queryFn(e, n) {
2939
2737
  const r = _(n);
2940
2738
  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));
2739
+ 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
2740
  },
2943
- invalidatesTags: (t, n, r) => [{
2741
+ invalidatesTags: (e, n, r) => [{
2944
2742
  type: "Blocks",
2945
2743
  id: r
2946
2744
  }]
2947
2745
  }),
2948
- addTag: e.mutation({ queryFn(t, n) {
2949
- return _(n).wp.blocktags_create({ ...t }, { type: C.Json });
2746
+ addTag: t.mutation({ queryFn(e, n) {
2747
+ return _(n).wp.blocktags_create({ ...e }, { type: k.Json });
2950
2748
  } }),
2951
- getDeletableTag: e.query({ queryFn([t, n], r) {
2749
+ getDeletableTag: t.query({ queryFn([e, n], r) {
2952
2750
  return _(r).wp.eblock_list({
2953
2751
  status: ["private"],
2954
2752
  "filter[meta_key]": "project",
2955
- "filter[meta_value]": t,
2753
+ "filter[meta_value]": e,
2956
2754
  blocktags: [n]
2957
- }, { extraQuery: { "_fields[]": "blocktags" } }).then(x(M));
2755
+ }, { extraQuery: { "_fields[]": "blocktags" } }).then(C(M));
2958
2756
  } }),
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));
2757
+ autoSaveBlock: t.mutation({ queryFn({ blockId: e, body: n }, r) {
2758
+ const i = _(r), a = ar(n);
2759
+ return i.wp.eblock_autosaves_create({ id: e }, a, { type: k.FormData }).then(S(Ye));
2962
2760
  } })
2963
2761
  })
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 = {
2762
+ }), { 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
2763
  activeModal: "",
2966
- lastActiveSettingsTab: dt,
2967
- activeSettingsTab: dt,
2764
+ lastActiveSettingsTab: Ze,
2765
+ activeSettingsTab: Ze,
2968
2766
  isPanelHistoryCollapsed: !0,
2969
2767
  monacoHeight: 0,
2970
- isCodeMode: ye?.isCodeMode || le.isPlugin && ye?.isCodeMode === void 0,
2971
- codeModeDirection: ye?.codeModeDirection || "left",
2768
+ isCodeMode: Ee?.isCodeMode || re.isPlugin && Ee?.isCodeMode === void 0,
2769
+ codeModeDirection: Ee?.codeModeDirection || "left",
2972
2770
  isHeaderCodeMenuOpen: {
2973
2771
  current: !1,
2974
2772
  switched: !1
2975
2773
  },
2976
2774
  emailWidth: "100%",
2977
- emailViewType: qt,
2775
+ emailViewType: vt,
2978
2776
  mobileViewActive: {
2979
2777
  shutdown: !0,
2980
2778
  styles: !0
2981
2779
  },
2982
2780
  emailMaxWidthSize: 425,
2983
- propertiesPanelKey: Kr,
2781
+ propertiesPanelKey: sr,
2984
2782
  parentBlocks: [],
2985
2783
  isGlobalLoading: !1
2986
2784
  };
2987
2785
  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
2786
+ codeModeDirection: Ie.codeModeDirection,
2787
+ isCodeMode: Ie.isCodeMode
2990
2788
  }));
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({
2789
+ 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
2790
  name: "emailPageSlice",
2993
- initialState: xe,
2791
+ initialState: Ie,
2994
2792
  reducers: {
2995
- openModal: (e, t) => {
2996
- e.activeModal = t.payload;
2793
+ openModal: (t, e) => {
2794
+ t.activeModal = e.payload;
2997
2795
  },
2998
- closeModal: (e) => {
2999
- e.activeModal = "";
2796
+ closeModal: (t) => {
2797
+ t.activeModal = "";
3000
2798
  },
3001
- setActiveSettingsTab: (e, t) => {
3002
- e.lastActiveSettingsTab = e.activeSettingsTab, e.activeSettingsTab = t.payload, t.payload !== "History" && (e.isPanelHistoryCollapsed = !0);
2799
+ setActiveSettingsTab: (t, e) => {
2800
+ t.lastActiveSettingsTab = t.activeSettingsTab, t.activeSettingsTab = e.payload, e.payload !== "History" && (t.isPanelHistoryCollapsed = !0);
3003
2801
  },
3004
- resetToLastActiveSettingsTab: (e) => {
3005
- e.lastActiveSettingsTab === "Properties" ? e.activeSettingsTab = "Build" : e.activeSettingsTab = e.lastActiveSettingsTab, e.lastActiveSettingsTab !== "History" && (e.isPanelHistoryCollapsed = !0);
2802
+ resetToLastActiveSettingsTab: (t) => {
2803
+ t.lastActiveSettingsTab === "Properties" ? t.activeSettingsTab = "Build" : t.activeSettingsTab = t.lastActiveSettingsTab, t.lastActiveSettingsTab !== "History" && (t.isPanelHistoryCollapsed = !0);
3006
2804
  },
3007
- switchIsPanelHistoryCollapsed: (e, t) => {
3008
- e.isPanelHistoryCollapsed = t.payload || !e.isPanelHistoryCollapsed;
2805
+ switchIsPanelHistoryCollapsed: (t, e) => {
2806
+ t.isPanelHistoryCollapsed = e.payload || !t.isPanelHistoryCollapsed;
3009
2807
  },
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));
2808
+ setEmailWidth: (t, { payload: e }) => {
2809
+ t.emailWidth = e, t.emailViewType = e > t.emailMaxWidthSize || e === "100%" ? vt : dr, window.localStorage.setItem(B.em_default_sizes, JSON.stringify(e));
3012
2810
  },
3013
- setEmailMaxWidthSize: (e, { payload: t }) => {
3014
- e.emailMaxWidthSize = t;
2811
+ setEmailMaxWidthSize: (t, { payload: e }) => {
2812
+ t.emailMaxWidthSize = e;
3015
2813
  },
3016
- setEmailViewType: (e, t) => {
3017
- e.emailViewType = t.payload;
2814
+ setEmailViewType: (t, e) => {
2815
+ t.emailViewType = e.payload;
3018
2816
  },
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
2817
+ switchCodeMode: (t) => {
2818
+ const e = !t.isCodeMode;
2819
+ t.isCodeMode = e, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2820
+ codeModeDirection: t.codeModeDirection,
2821
+ isCodeMode: e
3024
2822
  }));
3025
2823
  },
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,
2824
+ setCodeMode: (t, e) => {
2825
+ const n = e.payload;
2826
+ t.isCodeMode !== n && (t.isCodeMode = n, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2827
+ codeModeDirection: t.codeModeDirection,
3030
2828
  isCodeMode: n
3031
2829
  })));
3032
2830
  },
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
2831
+ switchCodeModeDirection: (t, e) => {
2832
+ t.codeModeDirection = e.payload, window.localStorage.setItem(B.em_code_mode_settings, JSON.stringify({
2833
+ isCodeMode: t.isCodeMode,
2834
+ codeModeDirection: e.payload
3037
2835
  }));
3038
2836
  },
3039
- setMobileViewActive: (e, t) => {
3040
- e.mobileViewActive = t.payload;
2837
+ setMobileViewActive: (t, e) => {
2838
+ t.mobileViewActive = e.payload;
3041
2839
  },
3042
- setPropertiesPanelKey: (e, t) => {
3043
- e.propertiesPanelKey = t.payload;
2840
+ setPropertiesPanelKey: (t, e) => {
2841
+ t.propertiesPanelKey = e.payload;
3044
2842
  },
3045
- resetParentBlocks: (e) => {
3046
- e.parentBlocks = [];
2843
+ resetParentBlocks: (t) => {
2844
+ t.parentBlocks = [];
3047
2845
  },
3048
- setParentBlocks: (e, t) => {
3049
- e.parentBlocks = t.payload;
2846
+ setParentBlocks: (t, e) => {
2847
+ t.parentBlocks = e.payload;
3050
2848
  },
3051
- setIsGlobalLoading: (e, t) => {
3052
- e.isGlobalLoading = t.payload;
2849
+ setIsGlobalLoading: (t, e) => {
2850
+ t.isGlobalLoading = e.payload;
3053
2851
  },
3054
- setHeaderCodeMenuOpen: (e, t) => {
3055
- e.isHeaderCodeMenuOpen.current && !t.payload ? e.isHeaderCodeMenuOpen.switched = !0 : e.isHeaderCodeMenuOpen.switched = !1, e.isHeaderCodeMenuOpen.current = t.payload;
2852
+ setHeaderCodeMenuOpen: (t, e) => {
2853
+ t.isHeaderCodeMenuOpen.current && !e.payload ? t.isHeaderCodeMenuOpen.switched = !0 : t.isHeaderCodeMenuOpen.switched = !1, t.isHeaderCodeMenuOpen.current = e.payload;
3056
2854
  }
3057
2855
  },
3058
- extraReducers: (e) => {
3059
- e.addMatcher(Ut.endpoints.getParentEmailBlocks.matchFulfilled, (t, n) => {
3060
- t.parentBlocks = n.payload;
2856
+ extraReducers: (t) => {
2857
+ t.addMatcher(St.endpoints.getParentEmailBlocks.matchFulfilled, (e, n) => {
2858
+ e.parentBlocks = n.payload;
3061
2859
  });
3062
2860
  }
3063
- }).actions, ti = [
2861
+ }).actions, mr = [
3064
2862
  "is_paying",
3065
2863
  "is_paying_user",
3066
2864
  "paying",
3067
2865
  "paying_user"
3068
2866
  ];
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];
2867
+ function ge(t) {
2868
+ if (!t || typeof t != "object") return !1;
2869
+ const e = t;
2870
+ for (const n of mr) {
2871
+ const r = e[n];
3074
2872
  if (r === !0 || r === 1 || r === "1" || typeof r == "string" && r.trim().toLowerCase() === "true") return !0;
3075
2873
  }
3076
2874
  return !1;
3077
2875
  }
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;
2876
+ function Y(t) {
2877
+ if (t === void 0) return;
2878
+ if (t === null || t === "") return null;
2879
+ const e = Number(t);
2880
+ return Number.isFinite(e) ? e : null;
3083
2881
  }
3084
- function ni(e) {
3085
- if (!e) return !1;
3086
- const t = e, n = t.trial_enabled ?? t.trial ?? t.is_get_trial;
2882
+ function pr(t) {
2883
+ if (!t) return !1;
2884
+ const e = t, n = e.trial_enabled ?? e.trial ?? e.is_get_trial;
3087
2885
  return n === !0 || n === 1 || n === "1" || typeof n == "string" && n.toLowerCase() === "true";
3088
2886
  }
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);
2887
+ function be(t) {
2888
+ 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
2889
  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,
2890
+ ...q,
2891
+ id: y(le),
2892
+ username: q.username || "",
2893
+ email: q.email || "",
2894
+ password: q.password || "",
2895
+ trial_enabled: Dt,
2896
+ is_paying: Ot,
3099
2897
  autosaves: n,
3100
2898
  hide_mergetags: r,
3101
2899
  theme: i,
@@ -3104,30 +2902,30 @@ function Se(e) {
3104
2902
  ...o,
3105
2903
  font_size: Number(o.font_size)
3106
2904
  } : void 0,
3107
- counters: Object.keys(He).reduce((We, $e) => (We[$e] = Number(He[$e]), We), {}),
2905
+ counters: Object.keys(Fe).reduce((je, qe) => (je[qe] = Number(Fe[qe]), je), {}),
3108
2906
  subscription: f,
3109
2907
  subscription_end: m,
3110
2908
  recurring_payments: p,
3111
2909
  subscription_id: s,
3112
2910
  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
2911
+ subscription_amount: Y(d),
2912
+ enterprise_users_limit: Y(u),
2913
+ enterprise_price: Y(E),
2914
+ enterprise_12_price: Y(g),
2915
+ privacy_policy_agreement: b,
2916
+ last_used_project: I,
2917
+ email_confirmation: N,
2918
+ email_builder_config: j
3121
2919
  };
3122
2920
  }
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 }) {
2921
+ 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
2922
  return {
3125
- ...Ve,
3126
- id: I(fe),
2923
+ ...Le,
2924
+ id: T(le),
3127
2925
  locale: E,
3128
2926
  acf: {
3129
- autosaves: e,
3130
- theme: t,
2927
+ autosaves: t,
2928
+ theme: e,
3131
2929
  newsletter_consent: n,
3132
2930
  code_editor: r ? {
3133
2931
  ...r,
@@ -3142,210 +2940,210 @@ function ri({ autosaves: e, theme: t, newsletter_consent: n, code_editor: r, cou
3142
2940
  subscription_amount: p,
3143
2941
  enterprise_users_limit: s,
3144
2942
  enterprise_price: l,
3145
- enterprise_12_price: u,
3146
- privacy_policy_agreement: d,
2943
+ enterprise_12_price: d,
2944
+ privacy_policy_agreement: u,
3147
2945
  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 } : {}
2946
+ email_confirmation: b,
2947
+ email_builder_config: I,
2948
+ ...N !== void 0 ? { trial_enabled: N } : {},
2949
+ ...j !== void 0 ? { is_paying: j } : {}
3152
2950
  }
3153
2951
  };
3154
2952
  }
3155
- function ii({ title: e, acf: { limits: t, price: n }, ...r }) {
2953
+ function Er({ title: t, acf: { limits: e, price: n }, ...r }) {
3156
2954
  return {
3157
2955
  ...r,
3158
- title: F(e) || "",
3159
- limits: t,
2956
+ title: R(t) || "",
2957
+ limits: e,
3160
2958
  price: n
3161
2959
  };
3162
2960
  }
3163
- var Gt = K({
2961
+ var At = W({
3164
2962
  reducerPath: "authorizationApi",
3165
- baseQuery: Z({
2963
+ baseQuery: K({
3166
2964
  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;
2965
+ prepareHeaders: (t) => {
2966
+ const e = Ut.get(or.em_token);
2967
+ return e && !t.has("authorization") && t.set("authorization", `Bearer ${e}`), t;
3170
2968
  }
3171
2969
  }),
3172
- endpoints: (e) => ({
3173
- getMailConfirmation: e.query({ queryFn(t, n) {
3174
- return _(n).wp.confirmation_list({ ...t });
2970
+ endpoints: (t) => ({
2971
+ getMailConfirmation: t.query({ queryFn(e, n) {
2972
+ return _(n).wp.confirmation_list({ ...e });
3175
2973
  } }),
3176
- getSchema: e.query({ queryFn(t, n) {
2974
+ getSchema: t.query({ queryFn(e, n) {
3177
2975
  return _(n).wp.users_me_list(void 0, {
3178
2976
  method: "OPTIONS",
3179
2977
  extraQuery: { _fields: "schema" }
3180
2978
  });
3181
2979
  } }),
3182
- getMe: e.query({
2980
+ getMe: t.query({
3183
2981
  query: () => {
3184
- const t = "https://app.emailmaker.ru/api/v2".replace(/\/+$/, ""), n = typeof window < "u" ? window.location.origin : "";
2982
+ const e = "https://app.emailmaker.ru/api/v2".replace(/\/+$/, ""), n = typeof window < "u" ? window.location.origin : "";
3185
2983
  return {
3186
- url: `${t.startsWith("http") ? t : `${n}${t}`}/auth/user`,
2984
+ url: `${e.startsWith("http") ? e : `${n}${e}`}/auth/user`,
3187
2985
  method: "GET"
3188
2986
  };
3189
2987
  },
3190
- transformResponse: (t) => Se(Array.isArray(t) ? t[0] : t)
2988
+ transformResponse: (e) => be(Array.isArray(e) ? e[0] : e)
3191
2989
  }),
3192
- getUser: e.query({ queryFn(t, n) {
3193
- return _(n).wp.users_detail({ id: t }).then(S(Se));
2990
+ getUser: t.query({ queryFn(e, n) {
2991
+ return _(n).wp.users_detail({ id: e }).then(S(be));
3194
2992
  } }),
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));
2993
+ editMe: t.mutation({ queryFn(e, n) {
2994
+ const r = _(n), i = Q(_r(e), !0);
2995
+ return r.wp.users_me_create(i, { type: k.Json }).then(S(be));
3198
2996
  } }),
3199
- getSubscriptions: e.query({ queryFn(t, n) {
3200
- return _(n).wp.subscription_list(void 0).then(x(ii));
2997
+ getSubscriptions: t.query({ queryFn(e, n) {
2998
+ return _(n).wp.subscription_list(void 0).then(C(Er));
3201
2999
  } }),
3202
- activateTrial: e.mutation({ query: (t) => ({
3000
+ activateTrial: t.mutation({ query: (e) => ({
3203
3001
  url: `${"https://app.emailmaker.ru/api/".replaceAll(/[\\/]$/g, "")}/wp-json/subscription/v2/activate_trial`,
3204
3002
  method: "GET",
3205
3003
  headers: {
3206
- Authorization: `Bearer ${t}`,
3004
+ Authorization: `Bearer ${e}`,
3207
3005
  "Content-Type": "application/json"
3208
3006
  }
3209
3007
  }) })
3210
3008
  })
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";
3009
+ }), { useGetMeQuery: Fi, useLazyGetMeQuery: ji, useEditMeMutation: qi, useLazyGetSchemaQuery: Ui, useGetSubscriptionsQuery: Gi, useLazyGetMailConfirmationQuery: zi, useActivateTrialMutation: Vi } = At, Tt = "configSlice", tt = yt("pro");
3010
+ function Be(t) {
3011
+ return t.user.mode || t.serverSide.mode || localStorage.getItem("configSwither") || "pro";
3214
3012
  }
3215
- function Vt(e) {
3216
- return jt(ze(e))?.config || {};
3013
+ function It(t) {
3014
+ return yt(Be(t))?.config || {};
3217
3015
  }
3218
- function Ht(e) {
3219
- const t = ze(e);
3220
- return e.serverSide.advancedConfigs?.[t] || {};
3016
+ function wt(t) {
3017
+ const e = Be(t);
3018
+ return t.serverSide.advancedConfigs?.[e] || {};
3221
3019
  }
3222
- function Wt(e) {
3223
- const t = ze(e), n = e?.user?.advancedConfigs?.[t], r = n !== void 0 ? n : e?.user?.advancedConfigs?.pro;
3020
+ function Pt(t) {
3021
+ const e = Be(t), n = t?.user?.advancedConfigs?.[e], r = n !== void 0 ? n : t?.user?.advancedConfigs?.pro;
3224
3022
  return {
3225
- ...e?.advancedConfigs?.[t] || {},
3023
+ ...t?.advancedConfigs?.[e] || {},
3226
3024
  ...r || {}
3227
3025
  };
3228
3026
  }
3229
- function Ae(e) {
3230
- const t = Vt(e), n = Ht(e);
3027
+ function he(t) {
3028
+ const e = It(t), n = wt(t);
3231
3029
  return [
3232
- Wt(e),
3233
- e.user,
3030
+ Pt(t),
3031
+ t.user,
3234
3032
  n,
3235
- e.serverSide,
3236
- t,
3237
- e.base
3033
+ t.serverSide,
3034
+ e,
3035
+ t.base
3238
3036
  ];
3239
3037
  }
3240
- function ai(e) {
3241
- let t;
3242
- for (const n of e) n?.fileManager && (t = {
3243
- ...t || {},
3038
+ function gr(t) {
3039
+ let e;
3040
+ for (const n of t) n?.fileManager && (e = {
3041
+ ...e || {},
3244
3042
  ...n.fileManager
3245
3043
  });
3246
- return t;
3044
+ return e;
3247
3045
  }
3248
- function oi(e) {
3249
- return vr(e.map((t) => t?.resourceProxy));
3046
+ function br(t) {
3047
+ return on(t.map((e) => e?.resourceProxy));
3250
3048
  }
3251
- function li(e) {
3252
- return wr(e.map((t) => t?.resourceProxyPolicy));
3049
+ function hr(t) {
3050
+ return cn(t.map((e) => e?.resourceProxyPolicy));
3253
3051
  }
3254
- function si(e) {
3255
- return Sr(e.map((t) => t?.backendProxy));
3052
+ function yr(t) {
3053
+ return ln(t.map((e) => e?.backendProxy));
3256
3054
  }
3257
- function ui(e) {
3258
- return Ue(e.map((t) => t?.backendProxyPolicy || {}).filter(Boolean));
3055
+ function vr(t) {
3056
+ return Oe(t.map((e) => e?.backendProxyPolicy || {}).filter(Boolean));
3259
3057
  }
3260
- function ne(e) {
3261
- const t = Vt(e), n = Ht(e), r = Wt(e), i = [
3262
- e.base,
3263
- t,
3264
- e.serverSide,
3058
+ function Z(t) {
3059
+ const e = It(t), n = wt(t), r = Pt(t), i = [
3060
+ t.base,
3061
+ e,
3062
+ t.serverSide,
3265
3063
  n,
3266
- e.user,
3064
+ t.user,
3267
3065
  r
3268
- ], a = Ue(i), o = ai(i);
3066
+ ], a = Oe(i), o = gr(i);
3269
3067
  o !== void 0 && (a.fileManager = o);
3270
- const c = oi(i);
3068
+ const c = br(i);
3271
3069
  c !== void 0 && (a.resourceProxy = c);
3272
- const f = li(i);
3070
+ const f = hr(i);
3273
3071
  f && Object.keys(f).length > 0 && (a.resourceProxyPolicy = f);
3274
- const m = si(i);
3072
+ const m = yr(i);
3275
3073
  m !== void 0 && (a.backendProxy = m);
3276
- const p = ui(i);
3074
+ const p = vr(i);
3277
3075
  return p && Object.keys(p).length > 0 && (a.backendProxyPolicy = p), a;
3278
3076
  }
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));
3077
+ jt("config/changeConfigModeWithCodeCheck", async (t, { dispatch: e, getState: n }) => {
3078
+ e(Ar(t)), e(At.endpoints.editMe.initiate({ email_builder_config: t })), await new Promise((a) => setTimeout(a, 0));
3281
3079
  const r = n(), i = r.emailPageSlice?.isCodeMode;
3282
- return r.configSlice?.config?.codeEnabled === !1 && i && t(ei(!1)), e;
3080
+ return r.configSlice?.config?.codeEnabled === !1 && i && e(fr(!1)), t;
3283
3081
  });
3284
- var di = de({
3285
- name: zt,
3082
+ var Sr = ae({
3083
+ name: Tt,
3286
3084
  initialState: () => {
3287
- const e = {
3288
- ...ft,
3085
+ const t = {
3086
+ ...tt,
3289
3087
  config: {
3290
- ...ft.config,
3088
+ ...tt.config,
3291
3089
  mergeTags: void 0
3292
3090
  }
3293
3091
  };
3294
3092
  return {
3295
- base: e.config,
3093
+ base: t.config,
3296
3094
  serverSide: {},
3297
3095
  user: {},
3298
3096
  advancedConfigs: {},
3299
- config: e.config,
3300
- page: e.page,
3301
- project: e.project,
3097
+ config: t.config,
3098
+ page: t.page,
3099
+ project: t.project,
3302
3100
  pluginDefaultCommonStyles: void 0,
3303
3101
  headless: !1
3304
3102
  };
3305
3103
  },
3306
3104
  reducers: {
3307
- setPage: (e, t) => {
3308
- e.page = t.payload;
3105
+ setPage: (t, e) => {
3106
+ t.page = e.payload;
3309
3107
  },
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);
3108
+ setAllConfigs: (t, { payload: e }) => {
3109
+ t.user = e.user, t.serverSide = e.serverSide, t.advancedConfigs = {
3110
+ ...e.advancedConfigs || {},
3111
+ ...e.user?.advancedConfigs || {}
3112
+ }, t.config = Z(t);
3315
3113
  },
3316
- changeConfigMode: (e, t) => {
3317
- e.user.mode = t.payload, e.config = ne(e);
3114
+ changeConfigMode: (t, e) => {
3115
+ t.user.mode = e.payload, t.config = Z(t);
3318
3116
  },
3319
- setInitialMergeTags: (e, t) => {
3320
- e.base.mergeTags = t.payload, e.config.mergeTags = ge(Ae(e), "mergeTags");
3117
+ setInitialMergeTags: (t, e) => {
3118
+ t.base.mergeTags = e.payload, t.config.mergeTags = fe(he(t), "mergeTags");
3321
3119
  },
3322
- setMergeTags: (e, t) => {
3323
- e.user.mergeTags = t.payload, e.config.mergeTags = ge(Ae(e), "mergeTags");
3120
+ setMergeTags: (t, e) => {
3121
+ t.user.mergeTags = e.payload, t.config.mergeTags = fe(he(t), "mergeTags");
3324
3122
  },
3325
- setUserConfig: (e, { payload: t }) => {
3326
- e.user = t, e.config = ne(e);
3123
+ setUserConfig: (t, { payload: e }) => {
3124
+ t.user = e, t.config = Z(t);
3327
3125
  },
3328
- updateUserConfig: (e, { payload: t }) => {
3329
- e.user = {
3330
- ...e.user,
3331
- ...t
3332
- }, e.config = ne(e);
3126
+ updateUserConfig: (t, { payload: e }) => {
3127
+ t.user = {
3128
+ ...t.user,
3129
+ ...e
3130
+ }, t.config = Z(t);
3333
3131
  },
3334
- setProject: (e, t) => {
3335
- e.project = t.payload;
3132
+ setProject: (t, e) => {
3133
+ t.project = e.payload;
3336
3134
  },
3337
- setActiveNextButton: (e, t) => {
3338
- e.user.activeNextButton = t.payload, e.config.activeNextButton = ge(Ae(e), "activeNextButton") !== void 0;
3135
+ setActiveNextButton: (t, e) => {
3136
+ t.user.activeNextButton = e.payload, t.config.activeNextButton = fe(he(t), "activeNextButton") !== void 0;
3339
3137
  },
3340
- setPluginDefaultCommonStyles: (e, t) => {
3341
- t.payload === void 0 ? delete e.pluginDefaultCommonStyles : e.pluginDefaultCommonStyles = t.payload;
3138
+ setPluginDefaultCommonStyles: (t, e) => {
3139
+ e.payload === void 0 ? delete t.pluginDefaultCommonStyles : t.pluginDefaultCommonStyles = e.payload;
3342
3140
  },
3343
- setHeadless: (e, t) => {
3344
- e.headless = t.payload;
3141
+ setHeadless: (t, e) => {
3142
+ t.headless = e.payload;
3345
3143
  }
3346
3144
  },
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({
3145
+ extraReducers: (t) => {}
3146
+ }), 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
3147
  reducerPath: "emailsApi",
3350
3148
  tagTypes: [
3351
3149
  "Emails",
@@ -3353,26 +3151,26 @@ var di = de({
3353
3151
  "EmailAutosaves",
3354
3152
  "TemplateEmail"
3355
3153
  ],
3356
- baseQuery: Z({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3357
- endpoints: (e) => ({
3358
- getEmails: e.query({
3359
- queryFn(t, n) {
3154
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3155
+ endpoints: (t) => ({
3156
+ getEmails: t.query({
3157
+ queryFn(e, n) {
3360
3158
  const r = _(n), i = {
3361
3159
  order: "desc",
3362
3160
  orderby: "modified"
3363
3161
  }, 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") {
3162
+ 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
3163
  i["filter[tax_query][relation]"] = "AND";
3366
- for (let o = 0, c = t.tags.length; o < c; o++) {
3367
- const f = t.tags[o];
3164
+ for (let o = 0, c = e.tags.length; o < c; o++) {
3165
+ const f = e.tags[o];
3368
3166
  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
3167
  }
3370
3168
  }
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));
3169
+ 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
3170
  },
3373
- providesTags: (t, n, r, { response: i }) => {
3171
+ providesTags: (e, n, r, { response: i }) => {
3374
3172
  const a = i?.headers.get("X-WP-Total") || 0;
3375
- return t ? [...t.map(({ id: o }) => ({
3173
+ return e ? [...e.map(({ id: o }) => ({
3376
3174
  type: "Emails",
3377
3175
  id: `${r.folderTag || r.tags?.[0] || r.projectId}_${r.page}_${r.status}_${a}`
3378
3176
  })), {
@@ -3385,8 +3183,8 @@ var di = de({
3385
3183
  },
3386
3184
  keepUnusedDataFor: 0
3387
3185
  }),
3388
- getTemplateEmails: e.query({
3389
- queryFn(t, n) {
3186
+ getTemplateEmails: t.query({
3187
+ queryFn(e, n) {
3390
3188
  const r = _(n), i = {
3391
3189
  "filter[meta_query][1][key]": "is_template",
3392
3190
  "filter[meta_query][1][value]": "1",
@@ -3397,36 +3195,36 @@ var di = de({
3397
3195
  _embed: "author,wp:term",
3398
3196
  _fields: "_embedded,id,title,meta,emailtags,folder,group,modified,date,type,acf.lock,acf.project.ID,acf.is_template"
3399
3197
  };
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());
3198
+ 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) {
3199
+ 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
3200
  i["filter[tax_query][relation]"] = "AND", c.forEach((f, m) => {
3403
3201
  i[`filter[tax_query][${m}][relation]`] = "OR", f.forEach((p, s) => {
3404
3202
  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
3203
  });
3406
3204
  });
3407
3205
  }
3408
- if (t.tags?.length > 0) {
3206
+ if (e.tags?.length > 0) {
3409
3207
  i["filter[tax_query][relation]"] = "AND";
3410
- for (let o = 0, c = t.tags.length; o < c; o++) {
3411
- const f = t.tags[o];
3208
+ for (let o = 0, c = e.tags.length; o < c; o++) {
3209
+ const f = e.tags[o];
3412
3210
  i[`filter[tax_query][${o}][taxonomy]`] = "emailtags", i[`filter[tax_query][${o}][field]`] = "id", i[`filter[tax_query][${o}][terms]`] = f;
3413
3211
  }
3414
3212
  }
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;
3213
+ 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) {
3214
+ i.page = e.page;
3417
3215
  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;
3216
+ if (!e.projectGroup?.length && !e.group?.length && c < e.page && e.groupType === lr.ALL && o && c && !e.projectId) {
3217
+ const f = 24 - o % 24 + (e.page - (c + 1)) * 24;
3420
3218
  f && (i.page = 1, i.offset = f);
3421
3219
  }
3422
3220
  }
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));
3221
+ 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
3222
  },
3425
3223
  keepUnusedDataFor: 0
3426
3224
  }),
3427
- getEmail: e.query({
3428
- queryFn(t, n) {
3429
- return _(n).wp.email_detail({ id: I(t) }, { extraQuery: {
3225
+ getEmail: t.query({
3226
+ queryFn(e, n) {
3227
+ return _(n).wp.email_detail({ id: T(e) }, { extraQuery: {
3430
3228
  _embed: "wp:term",
3431
3229
  _fields: `_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
3432
3230
  acf.description,
@@ -3440,17 +3238,17 @@ var di = de({
3440
3238
  acf.subject,
3441
3239
  acf.utm_parameters
3442
3240
  `
3443
- } }).then(S(O));
3241
+ } }).then(S(x));
3444
3242
  },
3445
- providesTags: (t, n, r) => [{
3243
+ providesTags: (e, n, r) => [{
3446
3244
  type: "Email",
3447
3245
  id: r
3448
3246
  }],
3449
3247
  keepUnusedDataFor: 0
3450
3248
  }),
3451
- getTemplateEmail: e.query({
3452
- queryFn(t, n) {
3453
- return _(n).wp.email_detail({ id: I(t) }, { extraQuery: {
3249
+ getTemplateEmail: t.query({
3250
+ queryFn(e, n) {
3251
+ return _(n).wp.email_detail({ id: T(e) }, { extraQuery: {
3454
3252
  _embed: "wp:term",
3455
3253
  _fields: `_embedded,id,author,title,meta,emailtags,folder,group,modified,date,type,parent,date_gmt
3456
3254
  acf.description,
@@ -3464,36 +3262,36 @@ var di = de({
3464
3262
  acf.subject,
3465
3263
  acf.utm_parameters
3466
3264
  `
3467
- } }).then(S(O));
3265
+ } }).then(S(x));
3468
3266
  },
3469
- providesTags: (t, n, r) => [{
3267
+ providesTags: (e, n, r) => [{
3470
3268
  type: "TemplateEmail",
3471
3269
  id: r
3472
3270
  }],
3473
3271
  keepUnusedDataFor: 0
3474
3272
  }),
3475
- getEmailHistory: e.query({
3476
- queryFn({ emailId: t, page: n = 1 }, r) {
3273
+ getEmailHistory: t.query({
3274
+ queryFn({ emailId: e, page: n = 1 }, r) {
3477
3275
  return _(r).wp.email_revisions_list({
3478
- parent: t,
3276
+ parent: e,
3479
3277
  per_page: 20,
3480
3278
  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) => ({
3279
+ }, { extraQuery: { _fields: "author,slug,date,modified,title,meta,acf.html,acf.common_styles,id,parent,date_gmt" } }).then((i) => oe(i, (a, o) => ({
3482
3280
  data: a.filter((c) => c.acf.html).map((c) => ({
3483
3281
  ...c,
3484
3282
  acf: {
3485
3283
  ...c.acf,
3486
3284
  html: c.acf.html
3487
3285
  }
3488
- })).map(nt),
3286
+ })).map(We),
3489
3287
  totalPages: +o.response.headers.get("X-WP-TotalPages"),
3490
3288
  args: {
3491
- emailId: t,
3289
+ emailId: e,
3492
3290
  page: n
3493
3291
  }
3494
3292
  })));
3495
3293
  },
3496
- providesTags: (t) => t ? [...t.data.map(({ id: n }) => ({
3294
+ providesTags: (e) => e ? [...e.data.map(({ id: n }) => ({
3497
3295
  type: "EmailAutosaves",
3498
3296
  id: n
3499
3297
  })), {
@@ -3504,65 +3302,65 @@ var di = de({
3504
3302
  id: "LIST"
3505
3303
  }],
3506
3304
  keepUnusedDataFor: 0,
3507
- async onQueryStarted({ emailId: t }, { queryFulfilled: n, dispatch: r, getState: i }) {
3305
+ async onQueryStarted({ emailId: e }, { queryFulfilled: n, dispatch: r, getState: i }) {
3508
3306
  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);
3307
+ const { data: a } = await n, o = i(), c = nt(o).revisionService === !0, f = o.emailSlice?.email?.html ?? null;
3308
+ z.onHistoryFetched(e, a.data, r, () => r(X.endpoints.getEmailHistory.initiate({ emailId: e }, { forceRefetch: !0 })), c, f);
3511
3309
  } catch {
3512
- H.onHistoryFetchError(t, r);
3310
+ z.onHistoryFetchError(e, r);
3513
3311
  }
3514
3312
  }
3515
3313
  }),
3516
- addEmail: e.mutation({
3517
- queryFn: Ce((t) => ({ source: n, ...r }) => _(t).wp.email_create({
3314
+ addEmail: t.mutation({
3315
+ queryFn: Te((e) => ({ source: n, ...r }) => _(e).wp.email_create({
3518
3316
  status: "publish",
3519
- ...tt(r)
3520
- }, { type: C.Json }).then(S(O))),
3317
+ ...$e(r)
3318
+ }, { type: k.Json }).then(S(x))),
3521
3319
  invalidatesTags: [{
3522
3320
  type: "Emails",
3523
3321
  id: "LIST"
3524
3322
  }]
3525
3323
  }),
3526
- editEmail: e.mutation({ queryFn: Ce((t) => ({ emailId: n, source: r, ...i }) => {
3527
- const a = _(t), o = Y(tt(i));
3324
+ editEmail: t.mutation({ queryFn: Te((e) => ({ emailId: n, source: r, ...i }) => {
3325
+ const a = _(e), o = Q($e(i));
3528
3326
  return a.wp.email_partial_update({ id: n }, o, {
3529
- type: C.Json,
3327
+ type: k.Json,
3530
3328
  extraQuery: {
3531
3329
  _embed: "wp:term",
3532
3330
  _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
3331
  }
3534
- }).then(S(O));
3332
+ }).then(S(x));
3535
3333
  }) }),
3536
- deleteEmail: e.mutation({
3537
- queryFn(t, n) {
3334
+ deleteEmail: t.mutation({
3335
+ queryFn(e, n) {
3538
3336
  const r = _(n);
3539
3337
  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));
3338
+ 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
3339
  },
3542
- invalidatesTags: (t, n, r) => [{
3340
+ invalidatesTags: (e, n, r) => [{
3543
3341
  type: "Emails",
3544
3342
  id: r
3545
3343
  }]
3546
3344
  }),
3547
- addTag: e.mutation({ queryFn(t, n) {
3548
- return _(n).wp.emailtags_create({ ...t }, { type: C.Json });
3345
+ addTag: t.mutation({ queryFn(e, n) {
3346
+ return _(n).wp.emailtags_create({ ...e }, { type: k.Json });
3549
3347
  } }),
3550
- getDeletableTag: e.query({ queryFn([t, n], r) {
3348
+ getDeletableTag: t.query({ queryFn([e, n], r) {
3551
3349
  return _(r).wp.email_list({
3552
3350
  status: ["private"],
3553
3351
  "filter[meta_key]": "project",
3554
- "filter[meta_value]": t,
3352
+ "filter[meta_value]": e,
3555
3353
  emailtags: [n]
3556
- }, { extraQuery: { "_fields[]": "emailtags" } }).then(x(O));
3354
+ }, { extraQuery: { "_fields[]": "emailtags" } }).then(C(x));
3557
3355
  } }),
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));
3356
+ autoSaveEmail: t.mutation({
3357
+ queryFn({ emailId: e, body: n }, r) {
3358
+ const i = _(r), a = Sn(n);
3359
+ return i.wp.email_autosaves_create({ id: e }, a, { type: k.FormData }).then(S(We));
3562
3360
  },
3563
- async onQueryStarted({ emailId: t, body: n }, { queryFulfilled: r, getState: i }) {
3564
- const a = mt(i()).revisionService === !0;
3565
- a && H.onAutoSaveStarted(t, {
3361
+ async onQueryStarted({ emailId: e, body: n }, { queryFulfilled: r, getState: i }) {
3362
+ const a = nt(i()).revisionService === !0;
3363
+ a && z.onAutoSaveStarted(e, {
3566
3364
  sentAt: Date.now(),
3567
3365
  html: n.html ?? "",
3568
3366
  common_styles: n.common_styles ?? "",
@@ -3570,19 +3368,19 @@ var di = de({
3570
3368
  preheader: n.preheader
3571
3369
  });
3572
3370
  try {
3573
- await r, a && H.onAutoSaveCompleted(t);
3371
+ await r, a && z.onAutoSaveCompleted(e);
3574
3372
  } catch {
3575
- a && H.onAutoSaveCompleted(t);
3373
+ a && z.onAutoSaveCompleted(e);
3576
3374
  }
3577
3375
  }
3578
3376
  })
3579
3377
  })
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;
3378
+ }), { 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;
3379
+ function L({ title: t, acf: e, ...n }) {
3380
+ 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
3381
  return {
3584
3382
  ...n,
3585
- title: F(e) || "",
3383
+ title: R(t) || "",
3586
3384
  members: s ? {
3587
3385
  admins: s.admins && s.admins.map((l) => ({
3588
3386
  ...l,
@@ -3614,19 +3412,19 @@ function j({ title: e, acf: t, ...n }) {
3614
3412
  blocks: c
3615
3413
  };
3616
3414
  }
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)
3415
+ 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 }) {
3416
+ const p = (u) => Array.isArray(u) ? u : u ? [u] : [], s = (u) => ({ ID: T(u.ID || u) }), l = (u) => p(u).map(s), d = e && {
3417
+ admins: l(e.admins),
3418
+ users: l(e.users),
3419
+ viewers: l(e.viewers),
3420
+ invited_users: l(e.invited_users),
3421
+ owner: e.owner && s(e.owner)
3624
3422
  };
3625
3423
  return {
3626
3424
  ...m,
3627
- title: e,
3425
+ title: t,
3628
3426
  acf: {
3629
- members: u,
3427
+ members: d,
3630
3428
  webhook: a,
3631
3429
  projects_test_emails: n,
3632
3430
  inbox_email: r,
@@ -3637,105 +3435,105 @@ function pt({ title: e, members: t, projects_test_emails: n, inbox_email: r, ftp
3637
3435
  }
3638
3436
  };
3639
3437
  }
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;
3438
+ var w = "Projects", ee = "LIST";
3439
+ function Tr(t) {
3440
+ if (Array.isArray(t)) return t;
3441
+ if (t != null && typeof t == "object") {
3442
+ const e = t.projects;
3443
+ if (Array.isArray(e)) return e;
3646
3444
  }
3647
3445
  return [];
3648
3446
  }
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;
3447
+ function Ir(t) {
3448
+ if (typeof t == "number" && Number.isFinite(t) && t >= 0) return Math.trunc(t);
3449
+ if (typeof t == "string" && t.trim() !== "") {
3450
+ const e = parseInt(t, 10);
3451
+ if (Number.isFinite(e) && e >= 0) return e;
3654
3452
  }
3655
3453
  }
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);
3454
+ function wr(t) {
3455
+ if (t == null || typeof t != "object" || Array.isArray(t)) return { title: "" };
3456
+ const e = t, n = Ir(e.emails_count);
3659
3457
  return {
3660
- id: t.id,
3661
- title: typeof t.title == "string" ? t.title : "",
3458
+ id: e.id,
3459
+ title: typeof e.title == "string" ? e.title : "",
3662
3460
  ...n != null ? { emails: n } : {}
3663
3461
  };
3664
3462
  }
3665
- var $t = K({
3463
+ var kt = W({
3666
3464
  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) {
3465
+ tagTypes: [w, "project"],
3466
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3467
+ endpoints: (t) => ({
3468
+ getProjects: t.query({
3469
+ queryFn(e = { page: 1 }, n) {
3672
3470
  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);
3471
+ 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) => {
3472
+ const o = C(L)(a);
3675
3473
  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), {
3474
+ 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;
3475
+ let g = m, b = l;
3476
+ 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
3477
  data: o.data,
3680
3478
  meta: { projectsListPagination: {
3681
3479
  total: g,
3682
- totalPages: h
3480
+ totalPages: b
3683
3481
  } }
3684
3482
  };
3685
3483
  });
3686
3484
  },
3687
- providesTags: (t) => t ? [...t.map(({ id: n }) => ({
3688
- type: P,
3485
+ providesTags: (e) => e ? [...e.map(({ id: n }) => ({
3486
+ type: w,
3689
3487
  id: n
3690
3488
  })), {
3691
- type: P,
3692
- id: re
3489
+ type: w,
3490
+ id: ee
3693
3491
  }] : [{
3694
- type: P,
3695
- id: re
3492
+ type: w,
3493
+ id: ee
3696
3494
  }]
3697
3495
  }),
3698
- getProject: e.query({
3699
- queryFn(t, n) {
3700
- return _(n).wp.project_detail({ id: t }, { extraQuery: { _embed: "wp:term" } }).then(S(j));
3496
+ getProject: t.query({
3497
+ queryFn(e, n) {
3498
+ return _(n).wp.project_detail({ id: e }, { extraQuery: { _embed: "wp:term" } }).then(S(L));
3701
3499
  },
3702
- providesTags: (t, n, r) => [{
3500
+ providesTags: (e, n, r) => [{
3703
3501
  type: "project",
3704
3502
  id: r
3705
3503
  }]
3706
3504
  }),
3707
- addProject: e.mutation({
3708
- queryFn(t, n) {
3505
+ addProject: t.mutation({
3506
+ queryFn(e, n) {
3709
3507
  return _(n).wp.project_create({
3710
3508
  status: "private",
3711
- ...pt(t)
3712
- }, { type: C.Json }).then(S(j));
3509
+ ...rt(e)
3510
+ }, { type: k.Json }).then(S(L));
3713
3511
  },
3714
3512
  invalidatesTags: [{
3715
- type: P,
3716
- id: re
3513
+ type: w,
3514
+ id: ee
3717
3515
  }]
3718
3516
  }),
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));
3517
+ editProject: t.mutation({
3518
+ queryFn({ projectId: e, ...n }, r) {
3519
+ const i = _(r), a = Q(rt(n), !0);
3520
+ return i.wp.project_partial_update({ id: e }, a, { type: k.Json }).then(S(L));
3723
3521
  },
3724
- invalidatesTags: (t, n, { projectId: r }) => [{
3725
- type: P,
3522
+ invalidatesTags: (e, n, { projectId: r }) => [{
3523
+ type: w,
3726
3524
  id: r
3727
3525
  }, {
3728
3526
  type: "project",
3729
3527
  id: r
3730
3528
  }]
3731
3529
  }),
3732
- deleteProject: e.mutation({
3733
- queryFn(t, n) {
3734
- return _(n).wp.project_delete({ id: t }, {}).then(qe(j));
3530
+ deleteProject: t.mutation({
3531
+ queryFn(e, n) {
3532
+ return _(n).wp.project_delete({ id: e }, {}).then(Ne(L));
3735
3533
  },
3736
- invalidatesTags: (t, n, r) => [
3534
+ invalidatesTags: (e, n, r) => [
3737
3535
  {
3738
- type: P,
3536
+ type: w,
3739
3537
  id: r
3740
3538
  },
3741
3539
  {
@@ -3743,18 +3541,18 @@ var $t = K({
3743
3541
  id: r
3744
3542
  },
3745
3543
  {
3746
- type: P,
3747
- id: re
3544
+ type: w,
3545
+ id: ee
3748
3546
  }
3749
3547
  ]
3750
3548
  }),
3751
- getFrequentProjects: e.query({
3752
- async queryFn(t, n) {
3753
- const r = typeof t == "number" && t > 0 ? t : 5, i = _(n);
3549
+ getFrequentProjects: t.query({
3550
+ async queryFn(e, n) {
3551
+ const r = typeof e == "number" && e > 0 ? e : 5, i = _(n);
3754
3552
  try {
3755
3553
  const a = await i.projects.top_used_list({ limit: r });
3756
3554
  if (!a.ok || a.error) throw a.error ?? /* @__PURE__ */ new Error("top-used request failed");
3757
- const o = fi(a.data), c = x(pi)({
3555
+ const o = Tr(a.data), c = C(wr)({
3758
3556
  data: o,
3759
3557
  error: a.error,
3760
3558
  meta: a.meta
@@ -3767,101 +3565,101 @@ var $t = K({
3767
3565
  orderby: "modified",
3768
3566
  status: ["private"]
3769
3567
  });
3770
- return x(j)({
3568
+ return C(L)({
3771
3569
  data: a.data,
3772
3570
  error: a.error,
3773
3571
  meta: a.meta
3774
3572
  });
3775
3573
  }
3776
3574
  },
3777
- providesTags: (t) => t && t.length > 0 ? [...t.map(({ id: n }) => ({
3778
- type: P,
3575
+ providesTags: (e) => e && e.length > 0 ? [...e.map(({ id: n }) => ({
3576
+ type: w,
3779
3577
  id: n
3780
3578
  })), {
3781
- type: P,
3579
+ type: w,
3782
3580
  id: "FREQUENT"
3783
3581
  }] : [{
3784
- type: P,
3582
+ type: w,
3785
3583
  id: "FREQUENT"
3786
3584
  }]
3787
3585
  })
3788
3586
  })
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({
3587
+ }), { 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
3588
  reducerPath: "taxonomiesApi",
3791
3589
  tagTypes: [
3792
- _i,
3590
+ Pr,
3793
3591
  "folder",
3794
3592
  "block_folder",
3795
3593
  "Group"
3796
3594
  ],
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);
3595
+ baseQuery: K({ baseUrl: "https://app.emailmaker.ru/api/wp-json/wp/v2/" }),
3596
+ endpoints: (t) => ({
3597
+ addFolder: t.mutation({ queryFn(e, n) {
3598
+ return _(n).wp[D() + "folder_create"](e).then((r) => r);
3801
3599
  } }),
3802
- editFolder: e.mutation({ queryFn({ id: t, data: n }, r) {
3803
- return _(r).wp[D() + "folder_partial_update"]({ id: t }, n).then((i) => i);
3600
+ editFolder: t.mutation({ queryFn({ id: e, data: n }, r) {
3601
+ return _(r).wp[D() + "folder_partial_update"]({ id: e }, n).then((i) => i);
3804
3602
  } }),
3805
- deleteFolder: e.mutation({ queryFn(t, n) {
3806
- return _(n).wp[D() + "folder_delete"]({ id: t }, { force: !0 }).then((r) => r);
3603
+ deleteFolder: t.mutation({ queryFn(e, n) {
3604
+ return _(n).wp[D() + "folder_delete"]({ id: e }, { force: !0 }).then((r) => r);
3807
3605
  } }),
3808
- getFolders: e.query({
3809
- queryFn(t, n) {
3606
+ getFolders: t.query({
3607
+ queryFn(e, n) {
3810
3608
  return _(n).wp[D() + "folder_list"]({
3811
3609
  per_page: 100,
3812
- ...t
3610
+ ...e
3813
3611
  }).then((r) => r);
3814
3612
  },
3815
- providesTags: (t, n, r) => [{
3613
+ providesTags: (e, n, r) => [{
3816
3614
  type: "folder",
3817
3615
  id: r
3818
3616
  }]
3819
3617
  }),
3820
- addGroup: e.mutation({ queryFn(t, n) {
3821
- return _(n).wp[D() + "group_create"](t).then((r) => r);
3618
+ addGroup: t.mutation({ queryFn(e, n) {
3619
+ return _(n).wp[D() + "group_create"](e).then((r) => r);
3822
3620
  } }),
3823
- editGroup: e.mutation({ queryFn({ id: t, data: n }, r) {
3824
- return _(r).wp[D() + "group_partial_update"]({ id: t }, n).then((i) => i);
3621
+ editGroup: t.mutation({ queryFn({ id: e, data: n }, r) {
3622
+ return _(r).wp[D() + "group_partial_update"]({ id: e }, n).then((i) => i);
3825
3623
  } }),
3826
- getGroups: e.query({
3827
- queryFn(t, n) {
3624
+ getGroups: t.query({
3625
+ queryFn(e, n) {
3828
3626
  return _(n).wp[D() + "group_list"]({
3829
3627
  per_page: 100,
3830
- ...t
3628
+ ...e
3831
3629
  }).then((r) => r);
3832
3630
  },
3833
- providesTags: (t, n, r) => [{
3631
+ providesTags: (e, n, r) => [{
3834
3632
  type: "Group",
3835
3633
  id: r
3836
3634
  }]
3837
3635
  }),
3838
- deleteGroup: e.mutation({ queryFn(t, n) {
3839
- return _(n).wp[D() + "group_delete"]({ id: t }, { force: !0 }).then((r) => r);
3636
+ deleteGroup: t.mutation({ queryFn(e, n) {
3637
+ return _(n).wp[D() + "group_delete"]({ id: e }, { force: !0 }).then((r) => r);
3840
3638
  } }),
3841
- addEmailsTag: e.mutation({ queryFn(t, n) {
3842
- return _(n).wp.emailtags_create(t).then((r) => r);
3639
+ addEmailsTag: t.mutation({ queryFn(e, n) {
3640
+ return _(n).wp.emailtags_create(e).then((r) => r);
3843
3641
  } }),
3844
- editEmailsTag: e.mutation({ queryFn({ id: t, ...n }, r) {
3845
- return _(r).wp.emailtags_partial_update(t, n).then((i) => i);
3642
+ editEmailsTag: t.mutation({ queryFn({ id: e, ...n }, r) {
3643
+ return _(r).wp.emailtags_partial_update(e, n).then((i) => i);
3846
3644
  } }),
3847
- deleteEmailsTag: e.mutation({ queryFn(t, n) {
3848
- return _(n).wp.emailtags_delete(t, { force: !0 }).then((r) => r);
3645
+ deleteEmailsTag: t.mutation({ queryFn(e, n) {
3646
+ return _(n).wp.emailtags_delete(e, { force: !0 }).then((r) => r);
3849
3647
  } }),
3850
- getTags: e.query({ queryFn(t, n) {
3851
- return _(n).wp[Ei() + "tags_list"]({
3648
+ getTags: t.query({ queryFn(e, n) {
3649
+ return _(n).wp[kr() + "tags_list"]({
3852
3650
  per_page: 100,
3853
- ...t
3651
+ ...e
3854
3652
  }).then((r) => r);
3855
3653
  } })
3856
3654
  })
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");
3655
+ }), { useGetFoldersQuery: ha, useGetGroupsQuery: ya, useLazyGetGroupsQuery: va, useDeleteGroupMutation: Sa, useEditGroupMutation: Aa, useAddGroupMutation: Ta, useGetTagsQuery: Ia, useLazyGetFoldersQuery: wa, useAddFolderMutation: Pa, useEditFolderMutation: ka } = Ct;
3656
+ function Cr(t) {
3657
+ return t != null && Object.prototype.hasOwnProperty.call(t, "meta");
3860
3658
  }
3861
- function Te(e, t) {
3862
- return gi(e) ? e.meta : t;
3659
+ function ye(t, e) {
3660
+ return Cr(t) ? t.meta : e;
3863
3661
  }
3864
- var W = {
3662
+ var V = {
3865
3663
  appliedShowToken: 0,
3866
3664
  invalidateEmailId: null,
3867
3665
  editorThemeColor: "light",
@@ -3926,97 +3724,97 @@ var W = {
3926
3724
  projectGroups: [],
3927
3725
  isNeedUpdateAppearance: !1,
3928
3726
  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({
3727
+ }, { 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
3728
  name: "emailSlice",
3931
- initialState: W,
3729
+ initialState: V,
3932
3730
  reducers: {
3933
- setEditorThemeColor: (e, t) => {
3934
- e.editorThemeColor = t.payload;
3731
+ setEditorThemeColor: (t, e) => {
3732
+ t.editorThemeColor = e.payload;
3935
3733
  },
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 = {
3734
+ setEmailFromHistory: (t, { payload: e }) => {
3735
+ if (!e) return;
3736
+ const n = t.email, r = e?.preheader === void 0, i = e?.subject === void 0, a = ye(e, n.meta);
3737
+ t.email = {
3940
3738
  ...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 || "{}",
3739
+ html: e?.html,
3740
+ preheader: r ? n.preheader : e?.preheader,
3741
+ subject: i ? n.subject : e?.subject,
3742
+ common_styles: typeof e?.common_styles == "string" && e?.common_styles.startsWith("{") ? e?.common_styles : n.common_styles || "{}",
3945
3743
  ...a !== void 0 ? { meta: a } : {}
3946
- }, e.isNeedUpdateAppearance = !0, e.isNeedUpdateContentAppearance = !0;
3744
+ }, t.isNeedUpdateAppearance = !0, t.isNeedUpdateContentAppearance = !0;
3947
3745
  },
3948
- setEmailSettings: (e, { payload: t }) => {
3949
- Object.assign(e, {
3950
- ...e,
3951
- settings: { ...t },
3746
+ setEmailSettings: (t, { payload: e }) => {
3747
+ Object.assign(t, {
3748
+ ...t,
3749
+ settings: { ...e },
3952
3750
  isSettingsDisabled: !1
3953
3751
  });
3954
3752
  },
3955
- setEmailSettingsDisable: (e, t) => {
3956
- e.isSettingsDisabled = t.payload;
3753
+ setEmailSettingsDisable: (t, e) => {
3754
+ t.isSettingsDisabled = e.payload;
3957
3755
  },
3958
- setElementSettings: (e, { payload: t }) => {
3959
- e.elementSettings = t;
3756
+ setElementSettings: (t, { payload: e }) => {
3757
+ t.elementSettings = e;
3960
3758
  },
3961
- setSearchFilters: (e, t) => {
3962
- e.searchFilters = t.payload;
3759
+ setSearchFilters: (t, e) => {
3760
+ t.searchFilters = e.payload;
3963
3761
  },
3964
- updateSearchFilters: (e, t) => {
3965
- e.searchFilters = {
3966
- ...e.searchFilters,
3967
- ...t.payload
3762
+ updateSearchFilters: (t, e) => {
3763
+ t.searchFilters = {
3764
+ ...t.searchFilters,
3765
+ ...e.payload
3968
3766
  };
3969
3767
  },
3970
- setEmailHTML: (e, t) => {
3971
- e.email.html = t.payload;
3768
+ setEmailHTML: (t, e) => {
3769
+ t.email.html = e.payload;
3972
3770
  },
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;
3771
+ setEmailSubject: (t, e) => {
3772
+ (t.email.title === t.email.subject || !t.email.subject && !t.email.title) && (t.email.title = e.payload), t.email.subject = e.payload;
3975
3773
  },
3976
- setEmailPreheader: (e, t) => {
3977
- e.email.preheader = t.payload;
3774
+ setEmailPreheader: (t, e) => {
3775
+ t.email.preheader = e.payload;
3978
3776
  },
3979
- resetEmailSlice: (e) => {
3980
- const t = e.emailAutosaveTimestamps;
3777
+ resetEmailSlice: (t) => {
3778
+ const e = t.emailAutosaveTimestamps;
3981
3779
  return {
3982
- ...W,
3983
- emailAutosaveTimestamps: t
3780
+ ...V,
3781
+ emailAutosaveTimestamps: e
3984
3782
  };
3985
3783
  },
3986
- setEmailTitle: (e, t) => {
3987
- e.email.title = t.payload;
3784
+ setEmailTitle: (t, e) => {
3785
+ t.email.title = e.payload;
3988
3786
  },
3989
- setEmailMeta: (e, t) => {
3990
- if (t.payload === void 0) {
3991
- delete e.email.meta;
3787
+ setEmailMeta: (t, e) => {
3788
+ if (e.payload === void 0) {
3789
+ delete t.email.meta;
3992
3790
  return;
3993
3791
  }
3994
- e.email.meta = {
3995
- ...e.email.meta ?? {},
3996
- ...t.payload
3792
+ t.email.meta = {
3793
+ ...t.email.meta ?? {},
3794
+ ...e.payload
3997
3795
  };
3998
3796
  },
3999
- setIsInited: (e, t) => {
4000
- e.email.is_inited = t.payload;
3797
+ setIsInited: (t, e) => {
3798
+ t.email.is_inited = e.payload;
4001
3799
  },
4002
- setEmailIsAmp: (e, t) => {
4003
- e.email.isAmp = t.payload;
3800
+ setEmailIsAmp: (t, e) => {
3801
+ t.email.isAmp = e.payload;
4004
3802
  },
4005
- setProblemsList: (e, t) => {
4006
- e.problemsList = t.payload;
3803
+ setProblemsList: (t, e) => {
3804
+ t.problemsList = e.payload;
4007
3805
  },
4008
- setActiveProblemRange: (e, t) => {
4009
- e.activeProblemRange = t.payload;
3806
+ setActiveProblemRange: (t, e) => {
3807
+ t.activeProblemRange = e.payload;
4010
3808
  },
4011
- setIsNeedUpdateContentAppearance: (e, t) => {
4012
- e.isNeedUpdateContentAppearance = t.payload;
3809
+ setIsNeedUpdateContentAppearance: (t, e) => {
3810
+ t.isNeedUpdateContentAppearance = e.payload;
4013
3811
  },
4014
- setIsNeedUpdateAppearance: (e, t) => {
4015
- e.isNeedUpdateAppearance = t.payload;
3812
+ setIsNeedUpdateAppearance: (t, e) => {
3813
+ t.isNeedUpdateAppearance = e.payload;
4016
3814
  },
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) => {
3815
+ setEmailGroups: (t, { payload: e }) => {
3816
+ const n = Object.keys(e)[0], r = t.emailGroups, i = t.parentGroupOfProject, a = t.projectGroups, o = {};
3817
+ i && a.length && (e[n]?.forEach((c) => {
4020
3818
  const f = a.find((p) => p.id === +n), m = f?.children.find((p) => p.id === +c);
4021
3819
  m ? (o.hasOwnProperty(f.id) || (o[f.id] = []), o[f.id].push({
4022
3820
  label: m.name,
@@ -4025,60 +3823,60 @@ var W = {
4025
3823
  label: c,
4026
3824
  value: null
4027
3825
  }));
4028
- }), t[n].length === 0 && (o[n] = [])), e.emailGroups = {
3826
+ }), e[n].length === 0 && (o[n] = [])), t.emailGroups = {
4029
3827
  ...r,
4030
3828
  ...o
4031
3829
  };
4032
3830
  }
4033
3831
  },
4034
- extraReducers: (e) => {
4035
- e.addMatcher((t) => t.type === "emailsApi/queries/queryResultPatched", (t, n) => {
3832
+ extraReducers: (t) => {
3833
+ t.addMatcher((e) => e.type === "emailsApi/queries/queryResultPatched", (e, n) => {
4036
3834
  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,
3835
+ i?.path?.[0] && (e.email[i?.path[0]] = i.value), r?.[1] && (e.invalidateEmailId = r[1]), e.emailIsEdit = !0;
3836
+ }), t.addMatcher((e) => e.type === "emailsApi/invalidateTags", (e, n) => {
3837
+ if (n.payload[0].id === +e.invalidateEmailId) return V;
3838
+ }), t.addMatcher(X.endpoints.editEmail.matchFulfilled, (e, { payload: n }) => {
3839
+ e.invalidateEmailId = null;
3840
+ const r = ye(n, e.email.meta);
3841
+ e.email = {
3842
+ ...e.email,
4045
3843
  ...n,
4046
- renderGuid: t.email.renderGuid,
3844
+ renderGuid: e.email.renderGuid,
4047
3845
  ...r !== void 0 ? { meta: r } : {}
4048
3846
  };
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;
3847
+ }), t.addMatcher(X.endpoints.autoSaveEmail.matchFulfilled, (e, n) => {
3848
+ 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));
3849
+ }), t.addMatcher(X.endpoints.getEmail.matchFulfilled, (e, { payload: n }) => {
3850
+ 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 !== "";
3851
+ if (re.isPlugin && !f && o === void 0 && a && e.appliedShowToken > 0) {
3852
+ n.id, e.appliedShowToken, r?.id, r?.showId;
4055
3853
  return;
4056
3854
  }
4057
3855
  if (!f) {
4058
- if (o !== void 0 && o < t.appliedShowToken) {
4059
- n.id, t.appliedShowToken, r?.id;
3856
+ if (o !== void 0 && o < e.appliedShowToken) {
3857
+ n.id, e.appliedShowToken, r?.id;
4060
3858
  return;
4061
3859
  }
4062
3860
  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;
3861
+ if (re.isPlugin && o === void 0 && e.appliedShowToken > 0 && n.id !== r?.id && !g) {
3862
+ n.id, e.appliedShowToken, r?.id;
4065
3863
  return;
4066
3864
  }
4067
3865
  }
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,
3866
+ 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;
3867
+ e.email = {
3868
+ ...V.email,
4071
3869
  ...E,
4072
3870
  ...c ? { showId: c } : {},
4073
3871
  renderGuid: l,
4074
3872
  ...s ? { html: r.html } : {},
4075
- is_inited: n.is_inited || (a ? r?.is_inited : W.email.is_inited),
3873
+ is_inited: n.is_inited || (a ? r?.is_inited : V.email.is_inited),
4076
3874
  common_styles: typeof n?.common_styles == "string" && n?.common_styles.startsWith("{") ? n?.common_styles : "{}",
4077
3875
  ...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);
3876
+ }, o !== void 0 ? e.appliedShowToken = o : (!a || r.is_inited !== !0 || !p) && (e.appliedShowToken += 1), n.id, e.appliedShowToken, r?.id, e.emailIsEdit = !1;
3877
+ }), t.addMatcher(Ct.endpoints.getGroups.matchFulfilled, (e, { meta: n, payload: r }) => {
3878
+ const i = e.email.group, a = n.arg.originalArgs.parent, o = r;
3879
+ a && (e.parentGroupOfProject = a, e.projectGroups = o);
4082
3880
  const c = {};
4083
3881
  a && i.length && o.length && i?.forEach((f) => {
4084
3882
  o?.forEach((m) => {
@@ -4088,103 +3886,103 @@ var W = {
4088
3886
  value: p.id
4089
3887
  }));
4090
3888
  });
4091
- }), t.emailGroups = c;
4092
- }), e.addMatcher($t.endpoints.getProject.matchFulfilled, (t, { meta: n, payload: r }) => {
4093
- t.parentGroupOfProject = r.group?.[0] || null;
3889
+ }), e.emailGroups = c;
3890
+ }), t.addMatcher(kt.endpoints.getProject.matchFulfilled, (e, { meta: n, payload: r }) => {
3891
+ e.parentGroupOfProject = r.group?.[0] || null;
4094
3892
  });
4095
3893
  }
4096
3894
  }).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);
3895
+ var xt = "Editor mount element was removed from the document. Call instance.destroy() on host unmount.";
3896
+ function Dr() {
3897
+ return ke(xt);
4100
3898
  }
4101
- function vi(e) {
4102
- return !(e instanceof DOMException) || e.name !== "AbortError" ? !1 : e.message === Qt;
3899
+ function Or(t) {
3900
+ return !(t instanceof DOMException) || t.name !== "AbortError" ? !1 : t.message === xt;
4103
3901
  }
4104
- function Si(e, t, n) {
3902
+ function Rr(t, e, n) {
4105
3903
  if (typeof document > "u") return;
4106
3904
  let r = !1, i;
4107
3905
  const a = () => {
4108
3906
  r = !0, i?.disconnect(), i = void 0;
4109
3907
  }, o = () => {
4110
- r || (a(), t());
3908
+ r || (a(), e());
4111
3909
  };
4112
- if (n.addDispose(a), !e.isConnected) {
3910
+ if (n.addDispose(a), !t.isConnected) {
4113
3911
  queueMicrotask(o);
4114
3912
  return;
4115
3913
  }
4116
3914
  i = new MutationObserver(() => {
4117
- e.isConnected || o();
3915
+ t.isConnected || o();
4118
3916
  });
4119
- let c = e.parentNode;
3917
+ let c = t.parentNode;
4120
3918
  for (; c;) i.observe(c, { childList: !0 }), c = c.parentNode;
4121
3919
  }
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;
3920
+ function Nr(t) {
3921
+ const { hostElementOption: e, resolvedElement: n, externalSignal: r, disposable: i } = t;
3922
+ if (e === void 0 || !(n instanceof Element)) return r;
4125
3923
  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}`;
3924
+ return Rr(n, () => {
3925
+ n.id, a.abort(Dr());
3926
+ }, i), gt(r, a.signal);
3927
+ }
3928
+ var Mt = "Superseded by newer init() on the same mount element";
3929
+ function it() {
3930
+ return ke(Mt);
3931
+ }
3932
+ function Br(t) {
3933
+ return !(t instanceof DOMException) || t.name !== "AbortError" ? !1 : t.message === Mt;
3934
+ }
3935
+ var te = /* @__PURE__ */ new Map(), ne = /* @__PURE__ */ new WeakMap();
3936
+ function Lr(t) {
3937
+ if (t instanceof Element) {
3938
+ const e = t.id?.trim();
3939
+ if (e) return `#${e}`;
4142
3940
  }
4143
3941
  }
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());
3942
+ function Fr(t) {
3943
+ if (!(t instanceof Element)) return { release: () => {} };
3944
+ const e = Lr(t);
3945
+ ne.get(t)?.abort(it()), e && te.get(e)?.abort(it());
4148
3946
  const n = new AbortController();
4149
- return ae.set(e, n), t && ie.set(t, n), {
3947
+ return ne.set(t, n), e && te.set(e, n), {
4150
3948
  signal: n.signal,
4151
3949
  release: () => {
4152
- ae.get(e) === n && ae.delete(e), t && ie.get(t) === n && ie.delete(t);
3950
+ ne.get(t) === n && ne.delete(t), e && te.get(e) === n && te.delete(e);
4153
3951
  }
4154
3952
  };
4155
3953
  }
4156
- function Pi(e, t) {
3954
+ function jr(t, e) {
4157
3955
  return {
4158
- ...e,
4159
- element: t
3956
+ ...t,
3957
+ element: e
4160
3958
  };
4161
3959
  }
4162
- function Oe() {
3960
+ function we() {
4163
3961
  return () => {};
4164
3962
  }
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);
3963
+ function qr(t) {
3964
+ const e = t.element;
3965
+ return !e || typeof e == "string" || typeof document > "u" ? we() : (Jt(e, t.config?.styles, e), () => {
3966
+ Yt(e);
4169
3967
  });
4170
3968
  }
4171
- function Ci(e) {
4172
- if (!At() || e.initialSpinner === !1 || typeof document > "u") return {
4173
- options: e,
4174
- cleanup: Oe()
3969
+ function Ur(t) {
3970
+ if (!ct() || t.initialSpinner === !1 || typeof document > "u") return {
3971
+ options: t,
3972
+ cleanup: we()
4175
3973
  };
4176
- const t = e.element;
4177
- if (!t || typeof t == "string") return {
4178
- options: e,
4179
- cleanup: Oe()
3974
+ const e = t.element;
3975
+ if (!e || typeof e == "string") return {
3976
+ options: t,
3977
+ cleanup: we()
4180
3978
  };
4181
- t.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((i) => {
3979
+ e.querySelectorAll(".blocks-app-initial-spinner-wrapper").forEach((i) => {
4182
3980
  i.remove();
4183
3981
  });
4184
- const n = vn(t, "data-emailmaker"), r = e.handleChunkLoaded;
3982
+ const n = tn(e, "data-emailmaker"), r = t.handleChunkLoaded;
4185
3983
  return {
4186
3984
  options: {
4187
- ...e,
3985
+ ...t,
4188
3986
  handleChunkLoaded: () => {
4189
3987
  n(), r?.();
4190
3988
  }
@@ -4192,91 +3990,91 @@ function Ci(e) {
4192
3990
  cleanup: n
4193
3991
  };
4194
3992
  }
4195
- function xi(e) {
4196
- return e?.length ? e.some((t) => Array.isArray(t) ? !1 : !!(t && typeof t == "object" && "url" in t)) : !1;
3993
+ function Gr(t) {
3994
+ return t?.length ? t.some((e) => Array.isArray(e) ? !1 : !!(e && typeof e == "object" && "url" in e)) : !1;
4197
3995
  }
4198
- function Et(e) {
4199
- return e instanceof DOMException && e.name === "AbortError";
3996
+ function at(t) {
3997
+ return t instanceof DOMException && t.name === "AbortError";
4200
3998
  }
4201
- function gt(e) {
3999
+ function ot(t) {
4202
4000
  try {
4203
- e.destroy();
4001
+ t.destroy();
4204
4002
  } catch {}
4205
4003
  }
4206
- function Ie(e, ...t) {
4207
- const n = R.get(e);
4208
- t.some((r) => r !== void 0 && r === n) && R.delete(e);
4004
+ function ve(t, ...e) {
4005
+ const n = O.get(t);
4006
+ e.some((r) => r !== void 0 && r === n) && O.delete(t);
4209
4007
  }
4210
- var Bo = "1.1.45-alpha.1";
4211
- async function jo(e) {
4212
- await St(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4008
+ var Qa = "1.1.46";
4009
+ async function Ka(t) {
4010
+ await ut(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4213
4011
  }
4214
- async function qo(e) {
4215
- return Oi(e);
4012
+ async function Ja(t) {
4013
+ return zr(t);
4216
4014
  }
4217
- async function Oi(e) {
4218
- k(e.signal);
4219
- const t = new Zt();
4015
+ async function zr(t) {
4016
+ P(t.signal);
4017
+ const e = new Rt();
4220
4018
  let n;
4221
4019
  try {
4222
- const r = await rn(e.element, t, e.signal), i = Ai({
4223
- hostElementOption: e.element,
4020
+ const r = await Ft(t.element, e, t.signal), i = Nr({
4021
+ hostElementOption: t.element,
4224
4022
  resolvedElement: r,
4225
- externalSignal: e.signal,
4226
- disposable: t
4227
- }), a = wi(r);
4023
+ externalSignal: t.signal,
4024
+ disposable: e
4025
+ }), a = Fr(r);
4228
4026
  n = a.release;
4229
- const o = Mt(i, a.signal);
4230
- return await nn(Mi(e, r, o), o);
4027
+ const o = gt(i, a.signal);
4028
+ return await Lt(Vr(t, r, o), o);
4231
4029
  } finally {
4232
- n?.(), t.dispose();
4030
+ n?.(), e.dispose();
4233
4031
  }
4234
4032
  }
4235
- async function Mi(e, t, n) {
4236
- k(n), Xn();
4237
- const r = Wn(Jn(Pi(e, t))), i = n != null ? {
4033
+ async function Vr(t, e, n) {
4034
+ P(n);
4035
+ const r = gn(hn(jr(t, e))), i = n != null ? {
4238
4036
  ...r,
4239
4037
  signal: n
4240
4038
  } : r;
4241
- if (t) {
4242
- const m = R.get(t);
4039
+ if (e) {
4040
+ const m = O.get(e);
4243
4041
  if (m) {
4244
4042
  let p;
4245
4043
  try {
4246
- p = await m, k(n);
4044
+ p = await m, P(n);
4247
4045
  } catch (s) {
4248
- if (k(n), Ie(t, m), Et(s)) throw s;
4046
+ if (P(n), ve(e, m), at(s)) throw s;
4249
4047
  p = void 0;
4250
4048
  }
4251
- if (p) if (p.getElement() === t) try {
4049
+ if (p) if (p.getElement() === e) try {
4252
4050
  return await p.reset(i);
4253
4051
  } catch (s) {
4254
- if (k(n), Ti(s) || vi(s) || Et(s) && n?.aborted) throw s;
4255
- Ie(t, m, p), gt(p);
4052
+ if (P(n), Br(s) || Or(s) || at(s) && n?.aborted) throw s;
4053
+ ve(e, m, p), ot(p);
4256
4054
  }
4257
- else Ie(t, m, p), gt(p);
4055
+ else ve(e, m, p), ot(p);
4258
4056
  }
4259
4057
  }
4260
- k(n);
4261
- const a = ki(r), o = Ci(r), c = n != null ? {
4058
+ P(n);
4059
+ const a = qr(r), o = Ur(r), c = n != null ? {
4262
4060
  ...o.options,
4263
4061
  signal: n
4264
4062
  } : o.options;
4265
4063
  let f;
4266
4064
  try {
4267
- await vt(), k(n);
4065
+ await dt(), P(n);
4268
4066
  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);
4067
+ 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
4068
  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);
4069
+ if (n?.aborted && (p.destroy(), P(n)), e) if (O.get(e) === f) O.set(e, p);
4070
+ else throw p.destroy(), P(n), ke(n?.reason);
4273
4071
  return p;
4274
4072
  } catch (m) {
4275
- throw a(), o.cleanup(), t && f && R.get(t) === f && R.delete(t), m;
4073
+ throw a(), o.cleanup(), e && f && O.get(e) === f && O.delete(e), m;
4276
4074
  }
4277
4075
  }
4278
- async function Uo(e) {
4279
- return (await Fe()).parseAMP(e);
4076
+ async function Ya(t) {
4077
+ return (await Me()).parseAMP(t);
4280
4078
  }
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 };
4079
+ typeof window < "u" && Wt(typeof window.__emailmaker__ < "u" ? window.__emailmaker__ : void 0);
4080
+ 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 };