useblocks 1.1.45-alpha.1 → 1.1.45

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