@emailmaker/emailmaker 1.0.107-dev.3 → 1.0.107-dev.5

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 (325) hide show
  1. package/README.md +1 -1
  2. package/cli/dist/lib/cli/project.js +2 -16
  3. package/cli/dist/lib/config.js +20 -29
  4. package/cli/dist/lib/local-test.js +3 -19
  5. package/cli/dist/lib/paths.js +11 -0
  6. package/cli/dist/lib/resolveNpmSpawn.d.ts +20 -0
  7. package/cli/dist/lib/resolveNpmSpawn.js +71 -0
  8. package/cli/dist/lib/template-engine/context/pluginPackageJsonData.js +21 -19
  9. package/cli/dist/lib/template-engine/context/standVitePackageJsonData.js +7 -8
  10. package/cli/dist/lib/template-engine/resolveVariantDir.d.ts +5 -1
  11. package/cli/dist/lib/template-engine/resolveVariantDir.js +22 -0
  12. package/cli/dist/lib/templates/shared/i18n.js +2 -2
  13. package/cli/dist/lib/templates/shared/paths.js +3 -4
  14. package/cli/dist/lib/types/package-config.d.ts +1 -0
  15. package/cli/lib/cli/project.ts +2 -18
  16. package/cli/lib/config.ts +19 -30
  17. package/cli/lib/local-test.ts +3 -22
  18. package/cli/lib/paths.ts +15 -0
  19. package/cli/lib/resolveNpmSpawn.ts +72 -0
  20. package/cli/lib/template-engine/buildStandIndexHtml.test.ts +1 -0
  21. package/cli/lib/template-engine/context/pluginPackageJsonData.ts +23 -23
  22. package/cli/lib/template-engine/context/standVitePackageJsonData.ts +7 -12
  23. package/cli/lib/template-engine/pluginEtaParity.test.ts +1 -0
  24. package/cli/lib/template-engine/resolveVariantDir.ts +22 -0
  25. package/cli/lib/template-engine/standAdvancedViteDevHostEta.test.ts +4 -3
  26. package/cli/lib/template-engine/standWebpackDevHostEta.test.ts +7 -6
  27. package/cli/lib/templates/shared/i18n.ts +2 -2
  28. package/cli/lib/templates/shared/paths.ts +3 -4
  29. package/cli/lib/types/package-config.ts +1 -0
  30. package/cli/package.json +1 -1
  31. package/cli/project-templates/plugin/assets/vite/{plugin-build.config.mjs → plugin-build.config.ts} +7 -5
  32. package/cli/project-templates/plugin/assets/vite/{sandbox-build.config.mjs → sandbox-build.config.ts} +7 -5
  33. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.module.cjs → plugin-build.legacy.module.ts} +20 -7
  34. package/cli/project-templates/plugin/assets/webpack/{plugin-build.legacy.umd.cjs → plugin-build.legacy.umd.ts} +20 -7
  35. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.module.cjs → plugin-build.modern.module.ts} +9 -4
  36. package/cli/project-templates/plugin/assets/webpack/{plugin-build.modern.umd.cjs → plugin-build.modern.umd.ts} +9 -4
  37. package/cli/project-templates/plugin/assets/webpack/{sandbox-build.config.cjs → sandbox-build.config.ts} +13 -3
  38. package/cli/project-templates/plugin/bundler-vite/release.html.eta +1 -0
  39. package/cli/project-templates/plugin/bundler-webpack/public/release.html.eta +1 -0
  40. package/cli/project-templates/plugin/shared-base/public/demo/product-1.svg +10 -0
  41. package/cli/project-templates/plugin/shared-base/public/demo/product-2.svg +10 -0
  42. package/cli/project-templates/plugin/shared-base/scripts/build-runner.ts +22 -0
  43. package/cli/project-templates/plugin/shared-base/scripts/build-types.ts +17 -0
  44. package/cli/project-templates/plugin/shared-base/scripts/clean.ts +16 -0
  45. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.ts +52 -0
  46. package/cli/project-templates/plugin/shared-base/scripts/npmRun.ts +61 -0
  47. package/cli/project-templates/plugin/shared-base/scripts/release-runner.ts +18 -0
  48. package/cli/project-templates/plugin/shared-base/scripts/scriptRuntime.ts +10 -0
  49. package/cli/project-templates/plugin/shared-base/src/dev/hostApp.tsx.eta +1 -0
  50. package/cli/project-templates/plugin/shared-base/src/dev-release.tsx.eta +1 -0
  51. package/cli/project-templates/plugin/shared-base/src/dev.tsx.eta +1 -1
  52. package/cli/project-templates/shared/partials/plugin-dev-host-app-advanced.eta +93 -0
  53. package/cli/project-templates/shared/partials/plugin-dev-host-app-minimal.eta +54 -0
  54. package/cli/project-templates/shared/partials/plugin-dev-tsx-advanced.eta +3 -2
  55. package/cli/project-templates/shared/partials/plugin-dev-tsx-debug.eta +18 -0
  56. package/cli/project-templates/shared/partials/plugin-dev-tsx-release.eta +33 -0
  57. package/cli/project-templates/shared/partials/plugin-dev-tsx-runtime-helpers.eta +8 -8
  58. package/cli/project-templates/shared/partials/plugin-index-ts.eta +0 -1
  59. package/cli/project-templates/shared/partials/plugin-vite-dev-host.eta +9 -5
  60. package/cli/project-templates/shared/partials/plugin-vite-plugin-build.eta +7 -5
  61. package/cli/project-templates/shared/partials/plugin-vite-release-html.eta +12 -0
  62. package/cli/project-templates/shared/partials/plugin-vite-sandbox-build.eta +7 -5
  63. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-legacy.eta +12 -5
  64. package/cli/project-templates/shared/partials/plugin-webpack-dev-host-modern.eta +13 -6
  65. package/cli/project-templates/shared/partials/plugin-webpack-release-html.eta +12 -0
  66. package/cli/project-templates/shared/partials/plugin-webpack-sandbox-build.eta +13 -3
  67. package/cli/project-templates/shared/partials/plugin-wp-legacy-module.eta +28 -10
  68. package/cli/project-templates/shared/partials/plugin-wp-legacy-umd.eta +28 -10
  69. package/cli/project-templates/shared/partials/plugin-wp-modern-module.eta +9 -4
  70. package/cli/project-templates/shared/partials/plugin-wp-modern-umd.eta +9 -4
  71. package/cli/project-templates/shared/partials/stand-dev-host-vite-memory.eta +3 -3
  72. package/cli/project-templates/shared/partials/stand-dev-host-vite-subpath.eta +8 -4
  73. package/cli/project-templates/shared/partials/stand-dev-host-vite-umd.eta +5 -5
  74. package/cli/project-templates/shared/partials/stand-dev-host-vite.eta +3 -3
  75. package/cli/project-templates/shared/partials/stand-dev-host-webpack-subpath.eta +8 -4
  76. package/cli/project-templates/shared/partials/stand-dev-host-webpack-umd.eta +9 -3
  77. package/cli/project-templates/shared/partials/stand-dev-host-webpack.eta +8 -4
  78. package/cli/project-templates/shared/partials/stand-dev-storage-middleware.eta +370 -0
  79. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.ts +80 -0
  80. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.ts.eta +1 -0
  81. package/cli/project-templates/shared/stand-webpack-base/config/lib/{createWebpackStandConfig.cjs → createWebpackStandConfig.ts} +31 -19
  82. package/cli/project-templates/{stand/advanced/umd/vite/config/lib/umdServeMiddleware.mjs → shared/stand-webpack-base/config/lib/umdServeMiddleware.ts} +19 -11
  83. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.ts.eta +1 -0
  84. package/cli/project-templates/stand/advanced/memory-usage/vite/config/lib/{createMemoryUsageStandConfig.mjs → createMemoryUsageStandConfig.ts} +25 -20
  85. package/cli/project-templates/stand/advanced/umd/vite/config/lib/umdServeMiddleware.ts +68 -0
  86. package/cli/project-templates/stand/react-adapter/webpack/README.md.eta +1 -0
  87. package/cli/project-templates/stand/react-adapter/webpack/config/dev-host.ts.eta +1 -0
  88. package/cli/project-templates/stand/react-adapter/webpack/package.json.eta +1 -0
  89. package/cli/project-templates/stand/react-adapter/webpack/public/index.html.eta +1 -0
  90. package/cli/project-templates/stand/react-adapter/webpack/src/dev/editorConfig.ts.eta +1 -0
  91. package/cli/project-templates/stand/react-adapter/webpack/src/dev/email.html.eta +1 -0
  92. package/cli/project-templates/stand/react-adapter/webpack/src/dev/getAuthToken.ts.eta +1 -0
  93. package/cli/project-templates/stand/react-adapter/webpack/src/dev/oauthCredentials.ts +9 -0
  94. package/cli/project-templates/stand/react-adapter/webpack/src/dev/storageProvider.ts.eta +1 -0
  95. package/cli/project-templates/stand/react-adapter/webpack/src/index.tsx.eta +1 -0
  96. package/cli/scripts/cli-matrix-smoke.ts +19 -10
  97. package/cli/scripts/verify-global-cli.ts +1 -1
  98. package/cli/scripts/vite-plugin-version-matrix.ts +299 -0
  99. package/cli/tsconfig.json +2 -2
  100. package/emailmaker-core.ed344c04.js +1 -0
  101. package/emailmaker-esm.js +788 -153
  102. package/emailmaker.d.ts +32 -0
  103. package/emailmaker.js +4 -4
  104. package/iframe/js/amp.BGJMqoms.js +1 -1
  105. package/iframe/js/chunk.oX6nCJbK.js +1 -1
  106. package/iframe/js/iframe-eblock.js +1 -1
  107. package/iframe/js/iframe.js +1 -1
  108. package/iframe/js/rules.BSaCN7eK.js +1 -1
  109. package/iframe/js/sanitize-html.Dy7Uwo8P.js +1 -1
  110. package/images/integrations/activecampaign.svg +4 -0
  111. package/images/integrations/bento.svg +9 -0
  112. package/images/integrations/brevo.svg +7 -0
  113. package/images/integrations/campaign_monitor.svg +10 -0
  114. package/images/integrations/constant_contact.svg +24 -0
  115. package/images/integrations/dotdigital.svg +144 -0
  116. package/images/integrations/getresponse.svg +23 -0
  117. package/images/integrations/hubspot.svg +3 -0
  118. package/images/integrations/klaviyo.svg +10 -0
  119. package/images/integrations/mailchimp.svg +9 -0
  120. package/images/integrations/salesforce.svg +20 -0
  121. package/js/browser-image-compression.js +9 -0
  122. package/package.json +2 -5
  123. package/runtime/@ant-design/cssinjs/index.js +1 -1
  124. package/runtime/@ant-design/icons/index.js +1 -1
  125. package/runtime/@ant-design/pro-layout/index.js +1 -1
  126. package/runtime/README.md +13 -13
  127. package/runtime/antd/index.js +1 -1
  128. package/runtime/app-core/index.js +1 -2
  129. package/runtime/classnames/index.js +1 -1
  130. package/runtime/core/index.js +6 -6
  131. package/runtime/dayjs/index.js +1 -1
  132. package/runtime/di/index.js +1 -2
  133. package/runtime/disposable/index.js +1 -2
  134. package/runtime/errors-runtime/index.js +1 -2
  135. package/runtime/guid/index.js +1 -2
  136. package/runtime/index.js +2 -4
  137. package/runtime/package.json +2 -3
  138. package/runtime/prop-types/index.js +1 -1
  139. package/runtime/react/index.js +1 -1
  140. package/runtime/react/jsx-dev-runtime/index.js +1 -1
  141. package/runtime/react/jsx-runtime/index.js +1 -1
  142. package/runtime/react-dom/client/index.js +1 -1
  143. package/runtime/react-dom/index.js +1 -1
  144. package/runtime/react-router-dom/index.js +1 -1
  145. package/runtime/uuid/index.js +1 -1
  146. package/static/amd/{8fc2a596.js → 19aeb269.js} +88 -88
  147. package/static/core/192ec827.js +1 -0
  148. package/static/core/22c1de2e2.js +1 -0
  149. package/static/core/24faedf0.js +1 -0
  150. package/static/core/29231645.js +1 -0
  151. package/static/core/2a3177fc2.js +1 -0
  152. package/static/core/346aabd2.js +3 -0
  153. package/static/core/3b800ed6.js +1 -0
  154. package/static/core/3e840e90.js +1 -0
  155. package/static/core/40cc9fd7.js +1 -0
  156. package/static/core/421bdec22.js +1 -0
  157. package/static/core/50ff48bc.js +4 -0
  158. package/static/core/5282795d2.js +6 -0
  159. package/static/core/555e2e2f2.js +903 -0
  160. package/static/core/563a283d.js +1 -0
  161. package/static/core/5d47e095.js +47 -0
  162. package/static/core/5f574386.js +1 -0
  163. package/static/core/67a41193.js +1 -0
  164. package/static/core/698dace4.js +7 -0
  165. package/static/core/6b648e2d.js +1 -0
  166. package/static/core/7629adfd.js +1 -0
  167. package/static/core/7717f2932.js +3 -0
  168. package/static/core/776cb34a.js +1 -0
  169. package/static/core/78a1e31e.js +1 -0
  170. package/static/core/7d56d643.js +1 -0
  171. package/static/core/841752212.js +40 -0
  172. package/static/core/8477e97e.js +1 -0
  173. package/static/core/8756d562.js +1 -0
  174. package/static/core/91d328d8.js +1 -0
  175. package/static/core/9270dbb6.js +6 -0
  176. package/static/core/96371334.js +566 -0
  177. package/static/core/9b9ddaef2.js +168 -0
  178. package/static/core/af1da4b4.js +1 -0
  179. package/static/core/b5096b152.js +471 -0
  180. package/static/core/bde6775a.js +1 -0
  181. package/static/core/bf1b888c.js +4 -0
  182. package/static/core/c3747df72.js +598 -0
  183. package/static/core/cec8d739.js +11 -0
  184. package/static/core/cfac3d32.js +1 -0
  185. package/static/core/d21c95cf2.js +1 -0
  186. package/static/core/dbd9ca52.js +1 -0
  187. package/static/core/dc590181.js +1 -0
  188. package/static/core/e0039d55.js +1 -0
  189. package/static/core/e4071c1a.js +4 -0
  190. package/static/core/ef87b75c.js +41 -0
  191. package/static/core/f47701f32.js +20 -0
  192. package/static/core/f83d7ac42.js +3 -0
  193. package/static/core/fcc67e6b.js +1 -0
  194. package/static/core/fd40d85c.js +1 -0
  195. package/static/core/fe638847.js +1 -0
  196. package/static/esm/{e8401d17.js → 203c9644.js} +3 -3
  197. package/static/esm/4b679053.js +27 -0
  198. package/static/esm/{b273a6c2.js → f31a26c6.js} +1 -1
  199. package/static/runtime/disposable-CD74igiJ.js +1 -0
  200. package/static/runtime/guid-C0wuVR8v.js +1 -0
  201. package/vite/index.d.ts +17 -6
  202. package/vite/index.js +315 -270
  203. package/vite/pluginDev/index.d.ts +10 -19
  204. package/vite/pluginDev/index.js +251 -204
  205. package/webpack/index.d.ts +24 -5
  206. package/webpack/index.js +168 -144
  207. package/webpack/pluginDev/index.d.ts +21 -22
  208. package/webpack/pluginDev/index.js +242 -177
  209. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.d.ts +0 -2
  210. package/cli/dist/lib/template-engine/buildStandIndexHtml.test.js +0 -89
  211. package/cli/dist/lib/template-engine/emitEtaTree.test.d.ts +0 -2
  212. package/cli/dist/lib/template-engine/emitEtaTree.test.js +0 -34
  213. package/cli/dist/lib/template-engine/pluginEtaParity.test.d.ts +0 -2
  214. package/cli/dist/lib/template-engine/pluginEtaParity.test.js +0 -105
  215. package/cli/dist/lib/template-engine/resolveVariantDir.test.d.ts +0 -2
  216. package/cli/dist/lib/template-engine/resolveVariantDir.test.js +0 -52
  217. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.d.ts +0 -2
  218. package/cli/dist/lib/template-engine/standAdvancedViteDevHostEta.test.js +0 -67
  219. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.d.ts +0 -2
  220. package/cli/dist/lib/template-engine/standWebpackDevHostEta.test.js +0 -83
  221. package/cli/dist/lib/template-engine/storageProviderEta.test.d.ts +0 -2
  222. package/cli/dist/lib/template-engine/storageProviderEta.test.js +0 -26
  223. package/cli/project-templates/plugin/shared-base/scripts/build-types.cjs +0 -8
  224. package/cli/project-templates/plugin/shared-base/scripts/clean.cjs +0 -6
  225. package/cli/project-templates/plugin/shared-base/scripts/dev-runner.cjs +0 -48
  226. package/cli/project-templates/plugin/shared-base/scripts/release-runner.cjs +0 -63
  227. package/cli/project-templates/shared/stand-vite-base/config/lib/createViteStandConfig.mjs +0 -80
  228. package/cli/project-templates/shared/stand-vite-base/scripts/devStorageMiddleware.cjs +0 -235
  229. package/cli/project-templates/shared/stand-webpack-base/config/lib/umdServeMiddleware.cjs +0 -38
  230. package/cli/project-templates/shared/stand-webpack-base/scripts/devStorageMiddleware.cjs +0 -235
  231. package/emailmaker-core.80d62b88.js +0 -569
  232. package/runtime/_core/app-core/index.js +0 -1
  233. package/runtime/_core/chunks/app-core-DphKKh8f.js +0 -1
  234. package/runtime/_core/chunks/chunk-oqAt0Dze.js +0 -1
  235. package/runtime/_core/chunks/di-BHUzE57z.js +0 -1
  236. package/runtime/_core/chunks/disposable-PhM3rJkj.js +0 -1
  237. package/runtime/_core/chunks/errors-runtime-VjCOXaQX.js +0 -1
  238. package/runtime/_core/chunks/guid-D2-FTZQG.js +0 -1
  239. package/runtime/_core/di/index.js +0 -1
  240. package/runtime/_core/disposable/index.js +0 -1
  241. package/runtime/_core/errors-runtime/index.js +0 -1
  242. package/runtime/_core/guid/index.js +0 -1
  243. package/runtime/_core/index.js +0 -1
  244. package/shared/hostBootstrap.js +0 -47
  245. package/shared/pluginDevOptions.js +0 -31
  246. package/shared/runtimeManifest.js +0 -72
  247. package/shared/stringCase.js +0 -16
  248. package/static/core/2360f32a.js +0 -3
  249. package/static/core/2687db56.js +0 -3
  250. package/static/core/2b250af6.js +0 -1261
  251. package/static/core/3469930c.js +0 -302
  252. package/static/core/34ce9042.js +0 -201
  253. package/static/core/4091ba5b.js +0 -25
  254. package/static/core/41ce3a6a.js +0 -173
  255. package/static/core/4ac4908c.js +0 -2213
  256. package/static/core/519096c1.js +0 -2597
  257. package/static/core/5fa1772b.js +0 -116550
  258. package/static/core/61312909.js +0 -3
  259. package/static/core/62a98c07.js +0 -75301
  260. package/static/core/6309c0f2.js +0 -3
  261. package/static/core/68d9f440.js +0 -3
  262. package/static/core/73b645ab.js +0 -2
  263. package/static/core/81019351.js +0 -280
  264. package/static/core/835b37ef.js +0 -591
  265. package/static/core/91242fb3.js +0 -3
  266. package/static/core/972b15b0.js +0 -92399
  267. package/static/core/974ef468.js +0 -493
  268. package/static/core/a17614422.js +0 -38078
  269. package/static/core/a2fa7b5b.js +0 -4232
  270. package/static/core/a513adfd.js +0 -89857
  271. package/static/core/a7c73a9b.js +0 -3813
  272. package/static/core/b64c7c90.js +0 -228
  273. package/static/core/cdc9ba92.js +0 -4711
  274. package/static/core/d1db685d.js +0 -2193
  275. package/static/core/d661febc.js +0 -3
  276. package/static/core/d6d2d2d0.js +0 -23
  277. package/static/core/df1a1225.js +0 -607
  278. package/static/core/e5bff179.js +0 -1302
  279. package/static/core/e5d602f5.js +0 -2
  280. package/static/core/eb029366.js +0 -1532
  281. package/static/core/f46c035a.js +0 -2
  282. package/static/core/f8b9d89a.js +0 -461
  283. package/static/core/fd897ad7.js +0 -3
  284. package/static/core/fdd890c7.js +0 -6168
  285. package/static/esm/29eb18ff.js +0 -164
  286. package/vite/mime-types.js +0 -179
  287. package/vite/utils.js +0 -44
  288. /package/cli/project-templates/plugin/bundler-vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  289. /package/cli/project-templates/plugin/bundler-vite/config/{plugin-build.mjs.eta → plugin-build.ts.eta} +0 -0
  290. /package/cli/project-templates/plugin/bundler-vite/config/{sandbox-build.mjs.eta → sandbox-build.ts.eta} +0 -0
  291. /package/cli/project-templates/plugin/bundler-webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  292. /package/cli/project-templates/plugin/bundler-webpack/config/{plugin-build.cjs.eta → plugin-build.ts.eta} +0 -0
  293. /package/cli/project-templates/plugin/bundler-webpack/config/{sandbox-build.cjs.eta → sandbox-build.ts.eta} +0 -0
  294. /package/cli/project-templates/stand/advanced/memory-usage/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  295. /package/cli/project-templates/stand/advanced/shadow-dom/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  296. /package/cli/project-templates/stand/advanced/shadow-dom/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  297. /package/cli/project-templates/stand/advanced/subpath/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  298. /package/cli/project-templates/stand/advanced/subpath/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  299. /package/cli/project-templates/stand/advanced/umd/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  300. /package/cli/project-templates/stand/advanced/umd/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  301. /package/cli/project-templates/stand/closed-loop/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  302. /package/cli/project-templates/stand/closed-loop/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  303. /package/cli/project-templates/stand/oauth/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  304. /package/cli/project-templates/stand/oauth/webpack/config/{dev-host.cjs.eta → dev-host.ts.eta} +0 -0
  305. /package/cli/project-templates/stand/react-adapter/vite/config/{dev-host.mjs.eta → dev-host.ts.eta} +0 -0
  306. /package/iframe/{iframe-eblock.80d62b88.html → iframe-eblock.ed344c04.html} +0 -0
  307. /package/iframe/{iframe.80d62b88.html → iframe.ed344c04.html} +0 -0
  308. /package/{runtime/chunks → static/runtime}/DownloadOutlined-a2ZUz7zB.js +0 -0
  309. /package/{runtime/chunks → static/runtime}/chunk-D-iEO58U.js +0 -0
  310. /package/{runtime/chunks → static/runtime}/classnames-DBEldvch.js +0 -0
  311. /package/{runtime/chunks → static/runtime}/client-5XqXGmAI.js +0 -0
  312. /package/{runtime/chunks → static/runtime}/dayjs.min-CO3mzOeV.js +0 -0
  313. /package/{runtime/_core/chunks/defineProperty-BGJFuFMq.js → static/runtime/defineProperty-CGNmw-jw.js} +0 -0
  314. /package/{runtime/chunks → static/runtime}/dist-Cns8cA2n.js +0 -0
  315. /package/{runtime/chunks → static/runtime}/dist-Ct0xRt3Y.js +0 -0
  316. /package/{runtime/chunks → static/runtime}/es-0FFT3fCz.js +0 -0
  317. /package/{runtime/chunks → static/runtime}/es-BwJ3eGbx.js +0 -0
  318. /package/{runtime/chunks → static/runtime}/es-D8EsVtRL.js +0 -0
  319. /package/{runtime/chunks → static/runtime}/es-Da4O25Kw.js +0 -0
  320. /package/{runtime/chunks → static/runtime}/jsx-dev-runtime-V4_MuHNS.js +0 -0
  321. /package/{runtime/chunks → static/runtime}/jsx-runtime-DBeCoE0b.js +0 -0
  322. /package/{runtime/chunks → static/runtime}/objectWithoutProperties-Bk0EDksJ.js +0 -0
  323. /package/{runtime/chunks → static/runtime}/prop-types-DxD5wgQ0.js +0 -0
  324. /package/{runtime/chunks → static/runtime}/react-TEeeBWTl.js +0 -0
  325. /package/{runtime/chunks → static/runtime}/react-dom-BKKa1g6U.js +0 -0
@@ -1,4711 +0,0 @@
1
- import { i as e, r as t, s as n, t as r } from "./d6d2d2d0.js";
2
- import { c as i, d as a, f as o, g as s, h as c, l, m as u, o as d, p as f, u as p } from "./4091ba5b.js";
3
- //#region \0globals:disposable
4
- var m = /* @__PURE__ */ r(((e) => {
5
- var t = window.__emailmaker__.modules.Core;
6
- Object.keys(t).forEach(function(n) {
7
- n !== "default" && n !== "__esModule" && (e[n] = t[n]);
8
- }), e.__esModule = !0, e.default = t.default === void 0 ? t : t.default;
9
- })), h = m(), g = class extends h.Disposable {
10
- _listeners = [];
11
- constructor(e = {}) {
12
- super(), this._options = e;
13
- }
14
- getListeners(e) {
15
- return this._listeners.flatMap(([t]) => typeof t == "function" ? t : t.getListeners(e));
16
- }
17
- hasListeners() {
18
- return this._listeners.length > 0;
19
- }
20
- _addListener(e, t = 0, n) {
21
- if (this.isDisposed()) return { dispose: () => {} };
22
- let r = this._listeners, i = this._options;
23
- n && typeof e == "function" && (e = e.bind(n));
24
- let a = r.findIndex(([, e]) => e < t), o = [e, t];
25
- return r.splice(a >= 0 ? a : r.length, 0, o), r.length === 1 && i.onFirstListenerAdd && i.onFirstListenerAdd(), { dispose: () => {
26
- let e = r.indexOf(o);
27
- e >= 0 && (r.splice(e, 1), !r.length && i.onLastListenerRemove && i.onLastListenerRemove());
28
- } };
29
- }
30
- on = this._addListener.bind(this);
31
- event = this._addListener.bind(this);
32
- once = (e, t = 0, n) => {
33
- let r = this._addListener((...t) => (r?.dispose(), n ? e.call(n, ...t) : e(...t)), t);
34
- return r;
35
- };
36
- un = (e) => {
37
- let t = this._listeners.findIndex(([t]) => t === e);
38
- t >= 0 && (this._listeners.splice(t, 1), this._listeners.length === 0 && this._options.onLastListenerRemove && this._options.onLastListenerRemove());
39
- };
40
- dispose() {
41
- this._listeners.splice(0, this._listeners.length), this._options.onLastListenerRemove && this._options.onLastListenerRemove(), super.dispose();
42
- }
43
- }, _ = class extends g {
44
- execute(e, t) {
45
- for (let n of t) try {
46
- n(...e);
47
- } catch {}
48
- }
49
- fire(...e) {
50
- if (!this.isDisposed()) {
51
- let t = this.execute(e, this.getListeners(e));
52
- return t === void 0 ? void 0 : t;
53
- }
54
- }
55
- }, ee = class extends _ {
56
- execute([e], t) {
57
- for (let n of t) try {
58
- n(e);
59
- } catch {}
60
- }
61
- }, te = class extends _ {
62
- _suspendCounter = 0;
63
- _wasFired = !1;
64
- execute([e], t) {
65
- if (this._suspendCounter) this._wasFired = !0;
66
- else for (let n of t) try {
67
- n(e);
68
- } catch {}
69
- }
70
- suspend() {
71
- this._suspendCounter++;
72
- }
73
- resume() {
74
- --this._suspendCounter === 0 && this._wasFired && (this.fire(), this._wasFired = !1);
75
- }
76
- }, v = class extends _ {
77
- async execute([e], t) {
78
- let n = [];
79
- for (let r of t) try {
80
- n.push(await r(e));
81
- } catch {}
82
- return n;
83
- }
84
- };
85
- function ne(e, t = 0) {
86
- let n = new g(), r = e(n, t);
87
- return r && n.addDisposable(r), n.event;
88
- }
89
- function re(e, t, n = 0) {
90
- let r = new _(), i = e((...e) => {
91
- if (t(...e)) return r.fire(...e);
92
- }, n);
93
- return i && r.addDisposable(i), r.event;
94
- }
95
- function ie(e, t = 0, n = 0) {
96
- let r = new _(), i, a, o = e((...e) => {
97
- a = e, i ||= setTimeout(() => {
98
- a && r.fire(...a), i = void 0;
99
- }, t);
100
- }, n);
101
- return o && r.addDisposable(o), r.event;
102
- }
103
- //#endregion
104
- //#region \0globals:react
105
- var y = /* @__PURE__ */ r(((e) => {
106
- var t = window.__emailmaker__.modules.React;
107
- Object.keys(t).forEach(function(n) {
108
- n !== "default" && n !== "__esModule" && (e[n] = t[n]);
109
- }), e.__esModule = !0, e.default = t.default === void 0 ? t : t.default;
110
- })), b = s(), ae = class {
111
- _factories = /* @__PURE__ */ new Map();
112
- add(e, t) {
113
- let n = e;
114
- return this._factories.set(n, t), { dispose: () => {
115
- this._factories.get(n) === t && this._factories.delete(n);
116
- } };
117
- }
118
- get(e) {
119
- return this._factories.get(e);
120
- }
121
- }, x = (0, b.createIdentifier)("DomComponentRegistry");
122
- function oe(e, t = x) {
123
- return b.DependencyResolver.getOrCreateInstance(t, () => new ae());
124
- }
125
- //#endregion
126
- //#region packages/extensions-core/components/ComponentRegistry.ts
127
- var S = /* @__PURE__ */ n(y());
128
- function se(e) {
129
- return typeof e == "function";
130
- }
131
- function C(e) {
132
- return (0, S.isValidElement)(e);
133
- }
134
- function ce(e) {
135
- return typeof e == "function" || C(e);
136
- }
137
- function le(e) {
138
- return typeof e == "object" && !!e && "type" in e && "props" in e && !C(e);
139
- }
140
- function w(e, t) {
141
- return (0, S.createElement)(e, t);
142
- }
143
- function ue(e) {
144
- return class extends S.Component {
145
- _ref = (0, S.createRef)();
146
- _instance;
147
- componentDidMount() {
148
- this._ref.current && (this._instance = e(this.props), this._ref.current.appendChild(this._instance.node));
149
- }
150
- componentDidUpdate(e) {
151
- this._instance?.update && this._instance.update(this.props);
152
- }
153
- componentWillUnmount() {
154
- this._instance?.dispose && this._instance.dispose();
155
- }
156
- render() {
157
- return (0, S.createElement)("div", { ref: this._ref });
158
- }
159
- };
160
- }
161
- var de = class {
162
- _components = /* @__PURE__ */ new Map();
163
- _domAdapters = /* @__PURE__ */ new Map();
164
- constructor(e) {
165
- this._domComponentRegistry = e;
166
- }
167
- add(e, t) {
168
- return this.override(e, () => t);
169
- }
170
- addDom(e, t) {
171
- let n = e;
172
- this._domAdapters.delete(n);
173
- let r = this._domComponentRegistry.add(e, t);
174
- return { dispose: () => {
175
- this._domAdapters.delete(n), r.dispose();
176
- } };
177
- }
178
- override(e, t) {
179
- let n = e, r = this._components.get(n);
180
- r || (r = { replacers: [] }, this._components.set(n, r));
181
- let i = () => {
182
- let e = r.replacers.findIndex((e) => e.replacer === t);
183
- e >= 0 && (r.replacers.splice(e, 1), this._recomputeComponent(n, r));
184
- };
185
- return r.replacers.push({
186
- replacer: t,
187
- dispose: i
188
- }), this._recomputeComponent(n, r), { dispose: i };
189
- }
190
- _recomputeComponent(e, t) {
191
- t.component = t.replacers.reduce((e, { replacer: t }) => t(e), void 0);
192
- }
193
- get(e) {
194
- if (ce(e)) return e;
195
- let t = e, n = this._components.get(t);
196
- if (n?.component) return n.component;
197
- let r = this._domComponentRegistry.get(e);
198
- if (r) {
199
- let e = this._domAdapters.get(t);
200
- return e || (e = ue(r), this._domAdapters.set(t, e)), e;
201
- }
202
- }
203
- _resolveComponentInput(e) {
204
- if (e == null) return null;
205
- if (typeof e == "number" || typeof e == "boolean" || C(e)) return e;
206
- if (typeof e == "string") {
207
- let t = this.get(e);
208
- return C(t) ? t : t ? w(t) : e;
209
- }
210
- if (se(e)) return w(e);
211
- if (le(e)) {
212
- let t = this.get(e.type);
213
- return C(t) ? t : t ? w(t, e.props) : null;
214
- }
215
- return null;
216
- }
217
- getReactNode(e) {
218
- return this._resolveComponentInput(e);
219
- }
220
- getReactElement(e) {
221
- let t = this._resolveComponentInput(e);
222
- return C(t) ? t : typeof t == "string" || t == null || typeof t == "boolean" || typeof t == "number" ? (0, S.createElement)(S.Fragment, null, t) : (0, S.createElement)(S.Fragment, null);
223
- }
224
- }, fe = (0, b.createIdentifier)("ComponentRegistry");
225
- function T(e, t = fe) {
226
- return b.DependencyResolver.getOrCreateInstance(t, () => new de(oe(b.DependencyResolver, x)));
227
- }
228
- //#endregion
229
- //#region packages/extensions-core/utils/events.ts
230
- function E(e, t) {
231
- return e.getOrCreateInstance(t, () => new v());
232
- }
233
- //#endregion
234
- //#region packages/extensions-core/api/impl/ElementsApi.ts
235
- var pe = class {
236
- constructor(e) {
237
- this._context = e;
238
- }
239
- get _container() {
240
- return this._context.container;
241
- }
242
- getNames() {
243
- return new Promise((e) => {
244
- let t = this._container.addService(i, { execute: (n) => {
245
- t.dispose(), e(n.value.map((e) => ({
246
- name: e.name,
247
- html: e.html
248
- })));
249
- } });
250
- });
251
- }
252
- update(e, t) {
253
- let n = this._container, r = T(n);
254
- return n.addService(i, { execute: (n) => {
255
- let i = n.value.find((t) => t.name === e);
256
- if (i) {
257
- let { icon: e, title: n, fallbackTooltip: a, ...o } = t;
258
- e && (i.icon = r.getReactNode(e)), n && (i.title = r.getReactNode(n)), a && (i.fallbackTooltip = r.getReactNode(a)), Object.assign(i, o);
259
- }
260
- } });
261
- }
262
- delete(e) {
263
- this._container.addService(i, { execute: (t) => {
264
- let n = t.value.findIndex((t) => t.name === e);
265
- n >= 0 && t.value.splice(n, 1);
266
- } });
267
- }
268
- insert(e, t) {
269
- let n = this._container, r = T(n);
270
- return n.addService(i, { execute: (n) => {
271
- n.value.splice(t ?? n.value.length, 0, {
272
- ...e,
273
- title: r.getReactNode(e.title),
274
- icon: r.getReactNode(e.icon),
275
- fallbackTooltip: r.getReactNode(e.fallbackTooltip)
276
- });
277
- } });
278
- }
279
- handleInject(e) {
280
- return E(this._container, l).event((t) => {
281
- e({
282
- name: t.name,
283
- className: t.className || "",
284
- html: t.html
285
- });
286
- });
287
- }
288
- };
289
- //#endregion
290
- //#region packages/extensions-core/messaging/types.ts
291
- function D(e) {
292
- return e;
293
- }
294
- //#endregion
295
- //#region packages/extensions-core/messaging/MessageService.ts
296
- function me(e) {
297
- return e && typeof e == "object";
298
- }
299
- function he(e, t) {
300
- return e && typeof e == "object" && e.operationId === t;
301
- }
302
- var O = D("INIT_MESSAGE"), k = D("");
303
- function A() {
304
- return Math.random().toString(36).substring(2, 15) + Math.random().toString(36).substring(2, 15);
305
- }
306
- var ge = class extends h.Disposable {
307
- _listeners = Object.create(null);
308
- addListenerAsync = (e, t, n = 0, r) => {
309
- let i = this._listeners[e] || (this._listeners[e] = []);
310
- r && typeof t == "function" && (t = t.bind(r));
311
- let a = i.findIndex(([e, t]) => n <= t), o = [t, n];
312
- return this.isDisposed() || i.splice(a >= 0 ? a : i.length, 0, o), { dispose() {
313
- let e = i.indexOf(o);
314
- e >= 0 && i.splice(e, 1);
315
- } };
316
- };
317
- fireAsync = (e, t) => {
318
- if (!this.isDisposed()) {
319
- let n = this._listeners[e] || (this._listeners[e] = []), r;
320
- for (let e = 0; e < n.length; e++) {
321
- let t = n[e][0], i = r;
322
- r = (e) => t(e, i);
323
- }
324
- if (r) return r(t);
325
- }
326
- };
327
- addListener = (e, t, n = 0) => this.addListenerAsync(e, (e, n) => {
328
- try {
329
- t(e);
330
- } catch {}
331
- return n && n(e);
332
- }, n);
333
- }, j = class extends h.Disposable {
334
- _target;
335
- _inited = !1;
336
- _emitter = this.addDisposable(new ge());
337
- constructor(e, t) {
338
- super(), this._singleton = t, window.addEventListener("message", this._onReceiveMessage), this.addListener(O, () => {
339
- this._inited || (this._inited = !0, this.send(O));
340
- }), e && this.setTarget(e);
341
- }
342
- _onReceiveMessage = (e) => {
343
- let t = e.data;
344
- if (me(t) && e.source == this.target || this._singleton && he(t, O)) {
345
- let n = this._emitter.fireAsync(t.operationId || k, t.operationId === void 0 ? e : t.data), r = t.result, i = t.error;
346
- r && i && Promise.resolve(n).then((e) => this._sendMessage(r, e), (e) => this._sendMessage(i, e));
347
- }
348
- };
349
- setTarget(e) {
350
- this._target !== e && (this._target = e, e && e.postMessage({
351
- operationId: O,
352
- data: {}
353
- }, "*"));
354
- }
355
- getTarget() {
356
- return this._target;
357
- }
358
- get target() {
359
- return this._target;
360
- }
361
- _sendMessage(e, t, n = !0) {
362
- if (!n && !this.isInited()) return;
363
- let r = this.addDisposable(this.onInit((n) => {
364
- let i = e ? {
365
- operationId: e,
366
- data: t
367
- } : t;
368
- n.postMessage({ ...i }, "*"), r.dispose();
369
- }));
370
- }
371
- send(e, t, n) {
372
- return typeof e == "string" ? this._sendMessage(e, t, n) : this._sendMessage(k, e, t);
373
- }
374
- sendAsync(e, t, n = !0) {
375
- if (!n && !this.isInited()) return Promise.resolve();
376
- let r = D(A()), i = D(A());
377
- return new Promise((n, a) => {
378
- let o = this.addDisposable(new h.Disposable());
379
- o.addDisposable(this.onInit((s) => {
380
- s.postMessage({
381
- operationId: e,
382
- data: t,
383
- result: r,
384
- error: i
385
- }, "*"), o.addDisposable(this._onMessage(r, (e) => {
386
- n(e), o.dispose();
387
- })), o.addDisposable(this._onMessage(i, (e) => {
388
- a(e), o.dispose();
389
- }));
390
- }));
391
- });
392
- }
393
- _onMessage(e, t, n = 0) {
394
- return this._emitter.addListener(e, t, n);
395
- }
396
- addListener(e, t, n) {
397
- return t ? this._onMessage(e, t, n) : this._onMessage(k, e);
398
- }
399
- addListenerAsyncPipe(e, t, n = 0) {
400
- return this._emitter.addListenerAsync(e, t, n);
401
- }
402
- addListenerAsync(e, t, n = 0) {
403
- return this._emitter.addListenerAsync(e, async (e, n) => {
404
- let r = await t(e);
405
- return n ? n(e) : r;
406
- }, n);
407
- }
408
- isInited() {
409
- return this._inited;
410
- }
411
- get inited() {
412
- return this._inited;
413
- }
414
- onInit(e, t = !0, n = 0) {
415
- let r = this.addDisposable(new h.Disposable());
416
- return this._inited && this._target ? t && Promise.resolve().then(() => {
417
- !this._inited || !this._target ? r.addDisposable(this.onInit(e, t, n)) : e(this._target);
418
- }) : r.addDisposable(this._onMessage(O, () => {
419
- e(this._target);
420
- }, n)), r;
421
- }
422
- dispose() {
423
- window.removeEventListener("message", this._onReceiveMessage), super.dispose();
424
- }
425
- }, _e = class {
426
- _messageService;
427
- constructor(e) {
428
- this._messageService = e.container.getOrCreateInstance(p, () => new j());
429
- }
430
- send(e, t, n) {
431
- this._messageService.send(e, t, n);
432
- }
433
- sendAsync(e, t, n = !0) {
434
- return this._messageService.sendAsync(e, t, n);
435
- }
436
- addListener(e, t, n) {
437
- return this._messageService.addListener(e, t, n);
438
- }
439
- addListenerAsync(e, t, n = 0) {
440
- return this._messageService.addListenerAsync(e, t, n);
441
- }
442
- onInit(e, t = !0, n = 0) {
443
- return this._messageService.onInit(e, t, n);
444
- }
445
- isInited() {
446
- return this._messageService.isInited();
447
- }
448
- };
449
- //#endregion
450
- //#region packages/extensions-core/api/impl/ModalApi.ts
451
- function ve(e) {
452
- return Object.fromEntries(Object.entries(e).filter(([e, t]) => t !== void 0));
453
- }
454
- //#endregion
455
- //#region packages/extensions-core/api/registerCorePlugins.ts
456
- var ye = {
457
- SandboxScriptApi: class {
458
- constructor(e) {
459
- this._context = e;
460
- }
461
- get _container() {
462
- return this._context.container;
463
- }
464
- registerSandboxCSS(e) {
465
- return this._container.addService(u, {
466
- type: "link",
467
- key: e,
468
- parent: "head",
469
- attributes: {
470
- rel: "stylesheet",
471
- type: "text/css",
472
- href: e
473
- }
474
- });
475
- }
476
- registerSandboxCSSCode(e, t) {
477
- return this._container.addService(u, {
478
- type: "style",
479
- key: e,
480
- parent: "head",
481
- attributes: { type: "text/css" },
482
- innerHTML: t
483
- });
484
- }
485
- registerSandboxScript(e) {
486
- return this._container.addService(u, {
487
- type: "script",
488
- key: e,
489
- parent: "head",
490
- attributes: {
491
- src: e,
492
- type: "text/javascript"
493
- }
494
- });
495
- }
496
- registerSandboxScriptCode(e, t) {
497
- return this._container.addService(u, {
498
- type: "script",
499
- key: e,
500
- parent: "head",
501
- attributes: { type: "text/javascript" },
502
- innerHTML: t
503
- });
504
- }
505
- },
506
- ElementsApi: pe,
507
- MessageService: _e,
508
- SettingsPanelApi: class {
509
- constructor(e) {
510
- this._context = e;
511
- }
512
- get _container() {
513
- return this._context.container;
514
- }
515
- showSettingsPanel(e) {
516
- let t = T(this._container);
517
- E(this._container, c).fire({
518
- ...e,
519
- type: t.getReactElement(e.content),
520
- advancedTabs: e.advancedTabs?.map((e) => ({
521
- ...e,
522
- type: t.getReactElement(e.content)
523
- }))
524
- });
525
- }
526
- closeSettingsPanel() {
527
- E(this._container, c).fire(null);
528
- }
529
- },
530
- ModalApi: class {
531
- _showModalEmitter;
532
- _closeModalEmitter;
533
- _updateModalEmitter;
534
- constructor(e) {
535
- this._context = e;
536
- let t = e.container;
537
- this._showModalEmitter = E(t, o), this._closeModalEmitter = E(t, a), this._updateModalEmitter = E(t, f);
538
- }
539
- get _container() {
540
- return this._context.container;
541
- }
542
- show(e) {
543
- let t = T(this._container), n = `modal_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`, r = e.modalProps;
544
- return this._showModalEmitter.fire({
545
- ...e,
546
- content: t.getReactNode(e.content),
547
- title: t.getReactNode(e.title),
548
- id: n,
549
- modalProps: r ? {
550
- ...r,
551
- footer: t.getReactNode(r.footer),
552
- okText: t.getReactNode(r.okText),
553
- cancelText: t.getReactNode(r.cancelText),
554
- closeIcon: t.getReactNode(r.closeIcon)
555
- } : void 0
556
- }), n;
557
- }
558
- close(e) {
559
- this._closeModalEmitter.fire(e);
560
- }
561
- closeAll() {
562
- this._closeModalEmitter.fire();
563
- }
564
- update(e, t) {
565
- let n = T(this._container), r = t.modalProps;
566
- this._updateModalEmitter.fire(ve({
567
- ...t,
568
- content: n.getReactNode(t.content),
569
- title: n.getReactNode(t.title),
570
- id: e,
571
- modalProps: r ? {
572
- ...r,
573
- footer: n.getReactNode(r.footer),
574
- okText: n.getReactNode(r.okText),
575
- cancelText: n.getReactNode(r.cancelText),
576
- closeIcon: n.getReactNode(r.closeIcon)
577
- } : void 0
578
- }));
579
- }
580
- }
581
- };
582
- //#endregion
583
- //#region src/constants/events.ts
584
- function M(e) {
585
- return (0, b.createIdentifier)(e);
586
- }
587
- var N;
588
- (function(e) {
589
- e.BEFORE_SAVE_EMAIL = M(), e.ON_SAVEBUTTON_CLICK_ID = M(), e.ON_NEXTBUTTON_CLICK_ID = M(), e.ON_PREVIOUSBUTTON_CLICK_ID = M(), e.ON_MODEL_CHANGE = M(), e.WILL_EMAIL_INIT_ID = M(), e.ON_EMAIL_INIT_ID = M(), e.ON_BLOCK_INIT_ID = M(), e.ON_CONTENT_CHANGED_ID = M(), e.ON_PREHEADER_CHANGED_ID = M(), e.ON_SUBJECT_CHANGED_ID = M(), e.ON_EMAIL_CHANGED_ID = M(), e.ON_BLOCK_CHANGED_ID = M(), e.ON_CHUNKS_LOADED = M(), e.ON_SEND_TESTEMAIL_ID = M(), e.ON_SEND_LIVEPREVIEW_ID = M(), e.ON_SHARE_ID = M(), e.ON_SHOW_PREVIEW_ID = M(), e.ON_EMAIL_CLONE_ID = M(), e.ON_SEND_EMAIL_MODAL_ID = M(), e.ON_NOTIFICATION = M(), e.READ_LOCALE = M(), e.ON_TRANSLATE_ID = M(), e.ON_CODE_VALIDATE_ID = M(), e.UPLOAD_EVENT_ID = M(), e.PROXY_URL_EVENT_ID = M(), e.FILE_PROXY_EVENT_ID = M(), e.ON_LIMIT_ID = M();
590
- })(N ||= {});
591
- function be(e, t) {
592
- return e.getOrCreateInstance(t, () => new v()).event;
593
- }
594
- function xe(e, t) {
595
- return e.getOrCreateInstance(t, () => new v());
596
- }
597
- //#endregion
598
- //#region src/plugin/const.ts
599
- var Se = "Not implemented in plugin", Ce = (0, b.createIdentifier)(), we = (0, b.createIdentifier)(), Te = (0, b.createIdentifier)(), Ee = (0, b.createIdentifier)();
600
- (0, b.createIdentifier)(), (0, b.createIdentifier)();
601
- var De = (0, b.createIdentifier)(), Oe = (0, b.createIdentifier)("PluginCollection"), ke = M("APP_LOAD_EVENT");
602
- //#endregion
603
- //#region src/plugin/mixins/base.ts
604
- function P(e) {
605
- return function(t) {
606
- return {
607
- setOptions: () => {},
608
- instance: {},
609
- dispose: () => {},
610
- ...e(t) || {}
611
- };
612
- };
613
- }
614
- function Ae(e) {
615
- return (t) => {
616
- let n = {}, r = [];
617
- for (let n of e) r.push(n(t));
618
- for (let e of r) Object.assign(n, e.instance);
619
- return {
620
- instance: n,
621
- setOptions: async (e) => {
622
- for (let t of r) await t.setOptions(e);
623
- },
624
- dispose: () => {
625
- for (let e of r) e.dispose();
626
- }
627
- };
628
- };
629
- }
630
- //#endregion
631
- //#region src/__generated__/index.ts
632
- var F = /* @__PURE__ */ function(e) {
633
- return e.Json = "application/json", e.FormData = "multipart/form-data", e.UrlEncoded = "application/x-www-form-urlencoded", e.Text = "text/plain", e;
634
- }({}), je = class {
635
- baseUrl = "https://api.emailmaker.ru/wp-json";
636
- securityData = null;
637
- securityWorker;
638
- abortControllers = /* @__PURE__ */ new Map();
639
- customFetch = (...e) => fetch(...e);
640
- baseApiParams = {
641
- credentials: "same-origin",
642
- headers: {},
643
- redirect: "follow",
644
- referrerPolicy: "no-referrer"
645
- };
646
- constructor(e = {}) {
647
- Object.assign(this, e);
648
- }
649
- setSecurityData = (e) => {
650
- this.securityData = e;
651
- };
652
- encodeQueryParam(e, t) {
653
- return `${encodeURIComponent(e)}=${encodeURIComponent(typeof t == "number" ? t : `${t}`)}`;
654
- }
655
- addQueryParam(e, t) {
656
- return this.encodeQueryParam(t, e[t]);
657
- }
658
- addArrayQueryParam(e, t) {
659
- return e[t].map((e) => this.encodeQueryParam(t, e)).join("&");
660
- }
661
- toQueryString(e) {
662
- let t = e || {};
663
- return Object.keys(t).filter((e) => t[e] !== void 0).map((e) => Array.isArray(t[e]) ? this.addArrayQueryParam(t, e) : this.addQueryParam(t, e)).join("&");
664
- }
665
- addQueryParams(e) {
666
- let t = this.toQueryString(e);
667
- return t ? `?${t}` : "";
668
- }
669
- contentFormatters = {
670
- [F.Json]: (e) => e !== null && (typeof e == "object" || typeof e == "string") ? JSON.stringify(e) : e,
671
- [F.Text]: (e) => e !== null && typeof e != "string" ? JSON.stringify(e) : e,
672
- [F.FormData]: (e) => Object.keys(e || {}).reduce((t, n) => {
673
- let r = e[n];
674
- return t.append(n, r instanceof Blob ? r : typeof r == "object" && r ? JSON.stringify(r) : `${r}`), t;
675
- }, new FormData()),
676
- [F.UrlEncoded]: (e) => this.toQueryString(e)
677
- };
678
- mergeRequestParams(e, t) {
679
- return {
680
- ...this.baseApiParams,
681
- ...e,
682
- ...t || {},
683
- headers: {
684
- ...this.baseApiParams.headers || {},
685
- ...e.headers || {},
686
- ...t && t.headers || {}
687
- }
688
- };
689
- }
690
- createAbortSignal = (e) => {
691
- if (this.abortControllers.has(e)) {
692
- let t = this.abortControllers.get(e);
693
- return t ? t.signal : void 0;
694
- }
695
- let t = new AbortController();
696
- return this.abortControllers.set(e, t), t.signal;
697
- };
698
- abortRequest = (e) => {
699
- let t = this.abortControllers.get(e);
700
- t && (t.abort(), this.abortControllers.delete(e));
701
- };
702
- request = async ({ body: e, secure: t, path: n, type: r, query: i, format: a, baseUrl: o, cancelToken: s, extraQuery: c, ...l }) => {
703
- let u = (typeof t == "boolean" ? t : this.baseApiParams.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {}, d = this.mergeRequestParams(l, u);
704
- c && (i = i ? {
705
- ...i,
706
- ...c
707
- } : c);
708
- let f = i && this.toQueryString(i), p = this.contentFormatters[r || F.Json], m = a || d.format, h = new Request(`${o || this.baseUrl || ""}${n}${f ? `?${f}` : ""}`, {
709
- ...d,
710
- headers: {
711
- ...d.headers || {},
712
- ...r && r !== F.FormData ? { "Content-Type": r } : {}
713
- },
714
- signal: (s ? this.createAbortSignal(s) : d.signal) || null,
715
- body: e == null ? null : p(e)
716
- });
717
- return this.customFetch(h).then(async (e) => {
718
- let t = e;
719
- t.data = null, t.error = null, t.meta = {
720
- request: h,
721
- response: t
722
- };
723
- let n = m ? await e[m]().then((e) => (t.ok ? t.data = e : t.error = { data: e }, t)).catch((e) => (t.error = e, t)) : t;
724
- return s && this.abortControllers.delete(s), n;
725
- });
726
- };
727
- }, Me = class extends je {
728
- limits = {
729
- get_limits: (e, t = {}) => this.request({
730
- path: "/limits/v1",
731
- method: "GET",
732
- query: e,
733
- ...t
734
- }),
735
- stats_list: (e = {}) => this.request({
736
- path: "/limits/v1/stats",
737
- method: "GET",
738
- ...e
739
- }),
740
- stats_detail: ({ type: e, ...t }, n = {}) => this.request({
741
- path: `/limits/v1/stats/${e}`,
742
- method: "GET",
743
- ...n
744
- }),
745
- warnings_list: (e = {}) => this.request({
746
- path: "/limits/v1/warnings",
747
- method: "GET",
748
- ...e
749
- })
750
- };
751
- unisenderProxy = {
752
- get_unisender_proxy: (e, t = {}) => this.request({
753
- path: "/unisender-proxy/v1",
754
- method: "GET",
755
- query: e,
756
- ...t
757
- }),
758
- create_message_create: (e = {}) => this.request({
759
- path: "/unisender-proxy/v1/create-message",
760
- method: "POST",
761
- ...e
762
- })
763
- };
764
- bdpwr = {
765
- get_bdpwr: (e, t = {}) => this.request({
766
- path: "/bdpwr/v1",
767
- method: "GET",
768
- query: e,
769
- ...t
770
- }),
771
- reset_password_create: (e = {}) => this.request({
772
- path: "/bdpwr/v1/reset-password",
773
- method: "POST",
774
- ...e
775
- }),
776
- set_password_create: (e = {}) => this.request({
777
- path: "/bdpwr/v1/set-password",
778
- method: "POST",
779
- ...e
780
- }),
781
- validate_code_create: (e = {}) => this.request({
782
- path: "/bdpwr/v1/validate-code",
783
- method: "POST",
784
- ...e
785
- })
786
- };
787
- corsProxy = {
788
- get_cors_proxy: (e, t = {}) => this.request({
789
- path: "/cors-proxy/V1",
790
- method: "GET",
791
- query: e,
792
- ...t
793
- }),
794
- get_list: (e, t = {}) => this.request({
795
- path: "/cors-proxy/V1/get",
796
- method: "GET",
797
- query: e,
798
- ...t
799
- })
800
- };
801
- saveFile = {
802
- get_save_file: (e, t = {}) => this.request({
803
- path: "/save-file/v1",
804
- method: "GET",
805
- query: e,
806
- ...t
807
- }),
808
- ai_create: (e, t = {}) => this.request({
809
- path: "/save-file/v1/ai",
810
- method: "POST",
811
- body: e,
812
- type: F.UrlEncoded,
813
- ...t
814
- }),
815
- ai_status_list: (e, t = {}) => this.request({
816
- path: "/save-file/v1/ai-status",
817
- method: "GET",
818
- query: e,
819
- ...t
820
- }),
821
- test_list: (e = {}) => this.request({
822
- path: "/save-file/v1/test",
823
- method: "GET",
824
- ...e
825
- }),
826
- upload_create: (e, t = {}) => this.request({
827
- path: "/save-file/v1/upload",
828
- method: "POST",
829
- body: e,
830
- type: F.UrlEncoded,
831
- format: "json",
832
- ...t
833
- }),
834
- shortener_create: (e, t = {}) => this.request({
835
- path: "/save-file/v1/shortener",
836
- method: "POST",
837
- body: e,
838
- type: F.UrlEncoded,
839
- format: "json",
840
- ...t
841
- }),
842
- get_link_create: (e, t = {}) => this.request({
843
- path: "/save-file/v1/get-link",
844
- method: "POST",
845
- body: e,
846
- type: F.UrlEncoded,
847
- ...t
848
- }),
849
- send_email_create: (e, t = {}) => this.request({
850
- path: "/save-file/v1/send-email",
851
- method: "POST",
852
- body: e,
853
- type: F.UrlEncoded,
854
- ...t
855
- })
856
- };
857
- aiGenerator = {
858
- get_ai_generator: (e, t = {}) => this.request({
859
- path: "/ai-generator/v1",
860
- method: "GET",
861
- query: e,
862
- ...t
863
- }),
864
- ai_create: (e, t = {}) => this.request({
865
- path: "/ai-generator/v1/ai",
866
- method: "POST",
867
- body: e,
868
- type: F.UrlEncoded,
869
- ...t
870
- }),
871
- ai_status_list: (e, t = {}) => this.request({
872
- path: "/ai-generator/v1/ai-status",
873
- method: "GET",
874
- query: e,
875
- ...t
876
- }),
877
- test_list: (e = {}) => this.request({
878
- path: "/ai-generator/v1/test",
879
- method: "GET",
880
- ...e
881
- }),
882
- clear_history_list: (e, t = {}) => this.request({
883
- path: "/ai-generator/v1/clear-history",
884
- method: "GET",
885
- query: e,
886
- ...t
887
- }),
888
- save_task_create: (e, t = {}) => this.request({
889
- path: "/ai-generator/v1/save-task",
890
- method: "POST",
891
- body: e,
892
- type: F.UrlEncoded,
893
- ...t
894
- }),
895
- identificate_blocks_create: (e, t = {}) => this.request({
896
- path: "/ai-generator/v1/identificate_blocks",
897
- method: "POST",
898
- body: e,
899
- type: F.UrlEncoded,
900
- ...t
901
- }),
902
- create_subject_create: (e, t = {}) => this.request({
903
- path: "/ai-generator/v1/create_subject",
904
- method: "POST",
905
- body: e,
906
- type: F.UrlEncoded,
907
- ...t
908
- })
909
- };
910
- auth = {
911
- get_auth: (e, t = {}) => this.request({
912
- path: "/auth/v1",
913
- method: "GET",
914
- query: e,
915
- ...t
916
- }),
917
- users_register_create: (e, t = {}) => this.request({
918
- path: "/auth/v1/users/register",
919
- method: "POST",
920
- body: e,
921
- type: F.UrlEncoded,
922
- ...t
923
- }),
924
- check_auth_list: (e = {}) => this.request({
925
- path: "/auth/v1/check_auth",
926
- method: "GET",
927
- ...e
928
- }),
929
- yandex_callback_create: (e, t = {}) => this.request({
930
- path: "/auth/v1/yandex/callback",
931
- method: "POST",
932
- body: e,
933
- type: F.UrlEncoded,
934
- ...t
935
- }),
936
- google_callback_create: (e, t = {}) => this.request({
937
- path: "/auth/v1/google/callback",
938
- method: "POST",
939
- body: e,
940
- type: F.UrlEncoded,
941
- ...t
942
- }),
943
- elama_callback_list: (e, t = {}) => this.request({
944
- path: "/auth/v1/elama/callback",
945
- method: "GET",
946
- query: e,
947
- ...t
948
- }),
949
- elama_callback_create: (e, t = {}) => this.request({
950
- path: "/auth/v1/elama/callback",
951
- method: "POST",
952
- body: e,
953
- type: F.UrlEncoded,
954
- ...t
955
- }),
956
- elama_refresh_token_list: (e, t = {}) => this.request({
957
- path: "/auth/v1/elama/refresh_token",
958
- method: "GET",
959
- query: e,
960
- ...t
961
- }),
962
- elama_refresh_token_create: (e, t = {}) => this.request({
963
- path: "/auth/v1/elama/refresh_token",
964
- method: "POST",
965
- body: e,
966
- type: F.UrlEncoded,
967
- ...t
968
- })
969
- };
970
- inbox = {
971
- get_inbox: (e, t = {}) => this.request({
972
- path: "/inbox/v1",
973
- method: "GET",
974
- query: e,
975
- ...t
976
- }),
977
- check_inbox_create: (e, t = {}) => this.request({
978
- path: "/inbox/v1/check-inbox",
979
- method: "POST",
980
- body: e,
981
- type: F.UrlEncoded,
982
- ...t
983
- })
984
- };
985
- promo = {
986
- get_promo: (e, t = {}) => this.request({
987
- path: "/promo/v1",
988
- method: "GET",
989
- query: e,
990
- ...t
991
- }),
992
- set_code_create: (e, t = {}) => this.request({
993
- path: "/promo/v1/set_code",
994
- method: "POST",
995
- body: e,
996
- type: F.UrlEncoded,
997
- ...t
998
- }),
999
- get_code_info_list: (e, t = {}) => this.request({
1000
- path: "/promo/v1/get_code_info",
1001
- method: "GET",
1002
- query: e,
1003
- ...t
1004
- }),
1005
- get_referral_data_list: (e = {}) => this.request({
1006
- path: "/promo/v1/get_referral_data",
1007
- method: "GET",
1008
- ...e
1009
- })
1010
- };
1011
- optimization = {
1012
- get_optimization: (e, t = {}) => this.request({
1013
- path: "/optimization/v1",
1014
- method: "GET",
1015
- query: e,
1016
- ...t
1017
- }),
1018
- validate_images_create: (e, t = {}) => this.request({
1019
- path: "/optimization/v1/validate/images",
1020
- method: "POST",
1021
- body: e,
1022
- type: F.UrlEncoded,
1023
- format: "json",
1024
- ...t
1025
- }),
1026
- validate_links_create: (e, t = {}) => this.request({
1027
- path: "/optimization/v1/validate/links",
1028
- method: "POST",
1029
- body: e,
1030
- type: F.UrlEncoded,
1031
- format: "json",
1032
- ...t
1033
- }),
1034
- validate_spamassasin_create: (e, t = {}) => this.request({
1035
- path: "/optimization/v1/validate/spamassasin",
1036
- method: "POST",
1037
- body: e,
1038
- type: F.UrlEncoded,
1039
- format: "json",
1040
- ...t
1041
- })
1042
- };
1043
- emFiles = {
1044
- get_em_files: (e, t = {}) => this.request({
1045
- path: "/em-files/v1",
1046
- method: "GET",
1047
- query: e,
1048
- ...t
1049
- }),
1050
- folders_list: (e, t = {}) => this.request({
1051
- path: "/em-files/v1/folders",
1052
- method: "GET",
1053
- query: e,
1054
- format: "json",
1055
- ...t
1056
- }),
1057
- folders_create: (e, t = {}) => this.request({
1058
- path: "/em-files/v1/folders",
1059
- method: "POST",
1060
- body: e,
1061
- type: F.UrlEncoded,
1062
- format: "json",
1063
- ...t
1064
- }),
1065
- folders_delete: (e, t = {}) => this.request({
1066
- path: "/em-files/v1/folders",
1067
- method: "DELETE",
1068
- body: e,
1069
- type: F.UrlEncoded,
1070
- format: "json",
1071
- ...t
1072
- }),
1073
- empty_trash_create: (e, t = {}) => this.request({
1074
- path: "/em-files/v1/empty-trash",
1075
- method: "POST",
1076
- body: e,
1077
- type: F.UrlEncoded,
1078
- ...t
1079
- }),
1080
- files_list: (e, t = {}) => this.request({
1081
- path: "/em-files/v1/files",
1082
- method: "GET",
1083
- query: e,
1084
- format: "json",
1085
- ...t
1086
- }),
1087
- files_create: (e, t = {}) => this.request({
1088
- path: "/em-files/v1/files",
1089
- method: "POST",
1090
- body: e,
1091
- type: F.UrlEncoded,
1092
- format: "json",
1093
- ...t
1094
- }),
1095
- files_delete: (e, t = {}) => this.request({
1096
- path: "/em-files/v1/files",
1097
- method: "DELETE",
1098
- body: e,
1099
- type: F.UrlEncoded,
1100
- format: "json",
1101
- ...t
1102
- }),
1103
- files_partial_update: (e, t = {}) => this.request({
1104
- path: "/em-files/v1/files",
1105
- method: "PATCH",
1106
- body: e,
1107
- type: F.UrlEncoded,
1108
- format: "json",
1109
- ...t
1110
- }),
1111
- files_upload_by_url_create: (e, t = {}) => this.request({
1112
- path: "/em-files/v1/files/upload-by-url",
1113
- method: "POST",
1114
- body: e,
1115
- type: F.UrlEncoded,
1116
- format: "json",
1117
- ...t
1118
- }),
1119
- files_rename_partial_update: (e, t = {}) => this.request({
1120
- path: "/em-files/v1/files/rename",
1121
- method: "PATCH",
1122
- body: e,
1123
- type: F.UrlEncoded,
1124
- format: "json",
1125
- ...t
1126
- }),
1127
- items_move_partial_update: (e, t = {}) => this.request({
1128
- path: "/em-files/v1/items/move",
1129
- method: "PATCH",
1130
- body: e,
1131
- type: F.UrlEncoded,
1132
- format: "json",
1133
- ...t
1134
- }),
1135
- file_dimensions_list: (e, t = {}) => this.request({
1136
- path: "/em-files/v1/file/dimensions",
1137
- method: "GET",
1138
- query: e,
1139
- format: "json",
1140
- ...t
1141
- }),
1142
- cache_clear_create: (e, t = {}) => this.request({
1143
- path: "/em-files/v1/cache/clear",
1144
- method: "POST",
1145
- body: e,
1146
- type: F.UrlEncoded,
1147
- ...t
1148
- })
1149
- };
1150
- wp = {
1151
- get_wp: (e, t = {}) => this.request({
1152
- path: "/wp/v2",
1153
- method: "GET",
1154
- query: e,
1155
- ...t
1156
- }),
1157
- confirmation_list: (e, t = {}) => this.request({
1158
- path: "/wp/v2/confirmation",
1159
- method: "GET",
1160
- query: e,
1161
- ...t
1162
- }),
1163
- users_register_create: (e = {}) => this.request({
1164
- path: "/wp/v2/users/register",
1165
- method: "POST",
1166
- ...e
1167
- }),
1168
- users_lostpassword_create: (e = {}) => this.request({
1169
- path: "/wp/v2/users/lostpassword",
1170
- method: "POST",
1171
- ...e
1172
- }),
1173
- users_lost_password_create: (e = {}) => this.request({
1174
- path: "/wp/v2/users/lost-password",
1175
- method: "POST",
1176
- ...e
1177
- }),
1178
- posts_list: (e, t = {}) => this.request({
1179
- path: "/wp/v2/posts",
1180
- method: "GET",
1181
- query: e,
1182
- format: "json",
1183
- ...t
1184
- }),
1185
- posts_create: (e, t = {}) => this.request({
1186
- path: "/wp/v2/posts",
1187
- method: "POST",
1188
- body: e,
1189
- type: F.UrlEncoded,
1190
- format: "json",
1191
- ...t
1192
- }),
1193
- posts_detail: ({ id: e, ...t }, n = {}) => this.request({
1194
- path: `/wp/v2/posts/${e}`,
1195
- method: "GET",
1196
- query: t,
1197
- format: "json",
1198
- ...n
1199
- }),
1200
- posts_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1201
- path: `/wp/v2/posts/${e}`,
1202
- method: "POST",
1203
- body: n,
1204
- type: F.UrlEncoded,
1205
- format: "json",
1206
- ...r
1207
- }),
1208
- posts_update: ({ id: e, ...t }, n, r = {}) => this.request({
1209
- path: `/wp/v2/posts/${e}`,
1210
- method: "PUT",
1211
- body: n,
1212
- type: F.UrlEncoded,
1213
- format: "json",
1214
- ...r
1215
- }),
1216
- posts_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1217
- path: `/wp/v2/posts/${e}`,
1218
- method: "PATCH",
1219
- body: n,
1220
- type: F.UrlEncoded,
1221
- format: "json",
1222
- ...r
1223
- }),
1224
- posts_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1225
- path: `/wp/v2/posts/${e}`,
1226
- method: "DELETE",
1227
- body: n,
1228
- type: F.UrlEncoded,
1229
- format: "json",
1230
- ...r
1231
- }),
1232
- posts_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1233
- path: `/wp/v2/posts/${e}/revisions`,
1234
- method: "GET",
1235
- query: t,
1236
- format: "json",
1237
- ...n
1238
- }),
1239
- posts_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1240
- path: `/wp/v2/posts/${e}/revisions/${t}`,
1241
- method: "GET",
1242
- query: n,
1243
- format: "json",
1244
- ...r
1245
- }),
1246
- posts_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1247
- path: `/wp/v2/posts/${e}/revisions/${t}`,
1248
- method: "DELETE",
1249
- body: r,
1250
- type: F.UrlEncoded,
1251
- format: "json",
1252
- ...i
1253
- }),
1254
- posts_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1255
- path: `/wp/v2/posts/${e}/autosaves`,
1256
- method: "GET",
1257
- query: t,
1258
- format: "json",
1259
- ...n
1260
- }),
1261
- posts_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1262
- path: `/wp/v2/posts/${e}/autosaves`,
1263
- method: "POST",
1264
- body: n,
1265
- type: F.UrlEncoded,
1266
- format: "json",
1267
- ...r
1268
- }),
1269
- posts_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1270
- path: `/wp/v2/posts/${e}/autosaves/${t}`,
1271
- method: "GET",
1272
- query: n,
1273
- format: "json",
1274
- ...r
1275
- }),
1276
- pages_list: (e, t = {}) => this.request({
1277
- path: "/wp/v2/pages",
1278
- method: "GET",
1279
- query: e,
1280
- format: "json",
1281
- ...t
1282
- }),
1283
- pages_create: (e, t = {}) => this.request({
1284
- path: "/wp/v2/pages",
1285
- method: "POST",
1286
- body: e,
1287
- type: F.UrlEncoded,
1288
- format: "json",
1289
- ...t
1290
- }),
1291
- pages_detail: ({ id: e, ...t }, n = {}) => this.request({
1292
- path: `/wp/v2/pages/${e}`,
1293
- method: "GET",
1294
- query: t,
1295
- format: "json",
1296
- ...n
1297
- }),
1298
- pages_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1299
- path: `/wp/v2/pages/${e}`,
1300
- method: "POST",
1301
- body: n,
1302
- type: F.UrlEncoded,
1303
- format: "json",
1304
- ...r
1305
- }),
1306
- pages_update: ({ id: e, ...t }, n, r = {}) => this.request({
1307
- path: `/wp/v2/pages/${e}`,
1308
- method: "PUT",
1309
- body: n,
1310
- type: F.UrlEncoded,
1311
- format: "json",
1312
- ...r
1313
- }),
1314
- pages_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1315
- path: `/wp/v2/pages/${e}`,
1316
- method: "PATCH",
1317
- body: n,
1318
- type: F.UrlEncoded,
1319
- format: "json",
1320
- ...r
1321
- }),
1322
- pages_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1323
- path: `/wp/v2/pages/${e}`,
1324
- method: "DELETE",
1325
- body: n,
1326
- type: F.UrlEncoded,
1327
- format: "json",
1328
- ...r
1329
- }),
1330
- pages_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1331
- path: `/wp/v2/pages/${e}/revisions`,
1332
- method: "GET",
1333
- query: t,
1334
- format: "json",
1335
- ...n
1336
- }),
1337
- pages_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1338
- path: `/wp/v2/pages/${e}/revisions/${t}`,
1339
- method: "GET",
1340
- query: n,
1341
- format: "json",
1342
- ...r
1343
- }),
1344
- pages_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1345
- path: `/wp/v2/pages/${e}/revisions/${t}`,
1346
- method: "DELETE",
1347
- body: r,
1348
- type: F.UrlEncoded,
1349
- format: "json",
1350
- ...i
1351
- }),
1352
- pages_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1353
- path: `/wp/v2/pages/${e}/autosaves`,
1354
- method: "GET",
1355
- query: t,
1356
- format: "json",
1357
- ...n
1358
- }),
1359
- pages_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1360
- path: `/wp/v2/pages/${e}/autosaves`,
1361
- method: "POST",
1362
- body: n,
1363
- type: F.UrlEncoded,
1364
- format: "json",
1365
- ...r
1366
- }),
1367
- pages_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1368
- path: `/wp/v2/pages/${e}/autosaves/${t}`,
1369
- method: "GET",
1370
- query: n,
1371
- format: "json",
1372
- ...r
1373
- }),
1374
- media_list: (e, t = {}) => this.request({
1375
- path: "/wp/v2/media",
1376
- method: "GET",
1377
- query: e,
1378
- format: "json",
1379
- ...t
1380
- }),
1381
- media_create: (e, t = {}) => this.request({
1382
- path: "/wp/v2/media",
1383
- method: "POST",
1384
- body: e,
1385
- type: F.UrlEncoded,
1386
- format: "json",
1387
- ...t
1388
- }),
1389
- media_detail: ({ id: e, ...t }, n = {}) => this.request({
1390
- path: `/wp/v2/media/${e}`,
1391
- method: "GET",
1392
- query: t,
1393
- format: "json",
1394
- ...n
1395
- }),
1396
- media_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1397
- path: `/wp/v2/media/${e}`,
1398
- method: "POST",
1399
- body: n,
1400
- type: F.UrlEncoded,
1401
- format: "json",
1402
- ...r
1403
- }),
1404
- media_update: ({ id: e, ...t }, n, r = {}) => this.request({
1405
- path: `/wp/v2/media/${e}`,
1406
- method: "PUT",
1407
- body: n,
1408
- type: F.UrlEncoded,
1409
- format: "json",
1410
- ...r
1411
- }),
1412
- media_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1413
- path: `/wp/v2/media/${e}`,
1414
- method: "PATCH",
1415
- body: n,
1416
- type: F.UrlEncoded,
1417
- format: "json",
1418
- ...r
1419
- }),
1420
- media_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1421
- path: `/wp/v2/media/${e}`,
1422
- method: "DELETE",
1423
- body: n,
1424
- type: F.UrlEncoded,
1425
- format: "json",
1426
- ...r
1427
- }),
1428
- media_post_process_create: ({ id: e, ...t }, n, r = {}) => this.request({
1429
- path: `/wp/v2/media/${e}/post-process`,
1430
- method: "POST",
1431
- body: n,
1432
- type: F.UrlEncoded,
1433
- ...r
1434
- }),
1435
- media_edit_create: ({ id: e, ...t }, n, r = {}) => this.request({
1436
- path: `/wp/v2/media/${e}/edit`,
1437
- method: "POST",
1438
- body: n,
1439
- type: F.UrlEncoded,
1440
- ...r
1441
- }),
1442
- menu_items_list: (e, t = {}) => this.request({
1443
- path: "/wp/v2/menu-items",
1444
- method: "GET",
1445
- query: e,
1446
- format: "json",
1447
- ...t
1448
- }),
1449
- menu_items_create: (e, t = {}) => this.request({
1450
- path: "/wp/v2/menu-items",
1451
- method: "POST",
1452
- body: e,
1453
- type: F.UrlEncoded,
1454
- format: "json",
1455
- ...t
1456
- }),
1457
- menu_items_detail: ({ id: e, ...t }, n = {}) => this.request({
1458
- path: `/wp/v2/menu-items/${e}`,
1459
- method: "GET",
1460
- query: t,
1461
- format: "json",
1462
- ...n
1463
- }),
1464
- menu_items_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1465
- path: `/wp/v2/menu-items/${e}`,
1466
- method: "POST",
1467
- body: n,
1468
- type: F.UrlEncoded,
1469
- format: "json",
1470
- ...r
1471
- }),
1472
- menu_items_update: ({ id: e, ...t }, n, r = {}) => this.request({
1473
- path: `/wp/v2/menu-items/${e}`,
1474
- method: "PUT",
1475
- body: n,
1476
- type: F.UrlEncoded,
1477
- format: "json",
1478
- ...r
1479
- }),
1480
- menu_items_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1481
- path: `/wp/v2/menu-items/${e}`,
1482
- method: "PATCH",
1483
- body: n,
1484
- type: F.UrlEncoded,
1485
- format: "json",
1486
- ...r
1487
- }),
1488
- menu_items_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1489
- path: `/wp/v2/menu-items/${e}`,
1490
- method: "DELETE",
1491
- body: n,
1492
- type: F.UrlEncoded,
1493
- format: "json",
1494
- ...r
1495
- }),
1496
- menu_items_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1497
- path: `/wp/v2/menu-items/${e}/autosaves`,
1498
- method: "GET",
1499
- query: t,
1500
- format: "json",
1501
- ...n
1502
- }),
1503
- menu_items_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1504
- path: `/wp/v2/menu-items/${e}/autosaves`,
1505
- method: "POST",
1506
- body: n,
1507
- type: F.UrlEncoded,
1508
- format: "json",
1509
- ...r
1510
- }),
1511
- menu_items_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1512
- path: `/wp/v2/menu-items/${e}/autosaves/${t}`,
1513
- method: "GET",
1514
- query: n,
1515
- format: "json",
1516
- ...r
1517
- }),
1518
- blocks_list: (e, t = {}) => this.request({
1519
- path: "/wp/v2/blocks",
1520
- method: "GET",
1521
- query: e,
1522
- format: "json",
1523
- ...t
1524
- }),
1525
- blocks_create: (e, t = {}) => this.request({
1526
- path: "/wp/v2/blocks",
1527
- method: "POST",
1528
- body: e,
1529
- type: F.UrlEncoded,
1530
- format: "json",
1531
- ...t
1532
- }),
1533
- blocks_detail: ({ id: e, ...t }, n = {}) => this.request({
1534
- path: `/wp/v2/blocks/${e}`,
1535
- method: "GET",
1536
- query: t,
1537
- format: "json",
1538
- ...n
1539
- }),
1540
- blocks_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1541
- path: `/wp/v2/blocks/${e}`,
1542
- method: "POST",
1543
- body: n,
1544
- type: F.UrlEncoded,
1545
- format: "json",
1546
- ...r
1547
- }),
1548
- blocks_update: ({ id: e, ...t }, n, r = {}) => this.request({
1549
- path: `/wp/v2/blocks/${e}`,
1550
- method: "PUT",
1551
- body: n,
1552
- type: F.UrlEncoded,
1553
- format: "json",
1554
- ...r
1555
- }),
1556
- blocks_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1557
- path: `/wp/v2/blocks/${e}`,
1558
- method: "PATCH",
1559
- body: n,
1560
- type: F.UrlEncoded,
1561
- format: "json",
1562
- ...r
1563
- }),
1564
- blocks_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1565
- path: `/wp/v2/blocks/${e}`,
1566
- method: "DELETE",
1567
- body: n,
1568
- type: F.UrlEncoded,
1569
- format: "json",
1570
- ...r
1571
- }),
1572
- blocks_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1573
- path: `/wp/v2/blocks/${e}/revisions`,
1574
- method: "GET",
1575
- query: t,
1576
- format: "json",
1577
- ...n
1578
- }),
1579
- blocks_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1580
- path: `/wp/v2/blocks/${e}/revisions/${t}`,
1581
- method: "GET",
1582
- query: n,
1583
- format: "json",
1584
- ...r
1585
- }),
1586
- blocks_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1587
- path: `/wp/v2/blocks/${e}/revisions/${t}`,
1588
- method: "DELETE",
1589
- body: r,
1590
- type: F.UrlEncoded,
1591
- format: "json",
1592
- ...i
1593
- }),
1594
- blocks_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1595
- path: `/wp/v2/blocks/${e}/autosaves`,
1596
- method: "GET",
1597
- query: t,
1598
- format: "json",
1599
- ...n
1600
- }),
1601
- blocks_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1602
- path: `/wp/v2/blocks/${e}/autosaves`,
1603
- method: "POST",
1604
- body: n,
1605
- type: F.UrlEncoded,
1606
- format: "json",
1607
- ...r
1608
- }),
1609
- blocks_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1610
- path: `/wp/v2/blocks/${e}/autosaves/${t}`,
1611
- method: "GET",
1612
- query: n,
1613
- format: "json",
1614
- ...r
1615
- }),
1616
- templates_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1617
- path: `/wp/v2/templates/${e}/revisions`,
1618
- method: "GET",
1619
- query: t,
1620
- format: "json",
1621
- ...n
1622
- }),
1623
- templates_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1624
- path: `/wp/v2/templates/${e}/revisions/${t}`,
1625
- method: "GET",
1626
- query: n,
1627
- format: "json",
1628
- ...r
1629
- }),
1630
- templates_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1631
- path: `/wp/v2/templates/${e}/revisions/${t}`,
1632
- method: "DELETE",
1633
- body: r,
1634
- type: F.UrlEncoded,
1635
- format: "json",
1636
- ...i
1637
- }),
1638
- templates_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1639
- path: `/wp/v2/templates/${e}/autosaves`,
1640
- method: "GET",
1641
- query: t,
1642
- format: "json",
1643
- ...n
1644
- }),
1645
- templates_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1646
- path: `/wp/v2/templates/${e}/autosaves`,
1647
- method: "POST",
1648
- body: n,
1649
- type: F.UrlEncoded,
1650
- format: "json",
1651
- ...r
1652
- }),
1653
- templates_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1654
- path: `/wp/v2/templates/${e}/autosaves/${t}`,
1655
- method: "GET",
1656
- query: n,
1657
- format: "json",
1658
- ...r
1659
- }),
1660
- templates_list: (e, t = {}) => this.request({
1661
- path: "/wp/v2/templates",
1662
- method: "GET",
1663
- query: e,
1664
- format: "json",
1665
- ...t
1666
- }),
1667
- templates_create: (e, t = {}) => this.request({
1668
- path: "/wp/v2/templates",
1669
- method: "POST",
1670
- body: e,
1671
- type: F.UrlEncoded,
1672
- format: "json",
1673
- ...t
1674
- }),
1675
- templates_lookup_list: (e, t = {}) => this.request({
1676
- path: "/wp/v2/templates/lookup",
1677
- method: "GET",
1678
- query: e,
1679
- ...t
1680
- }),
1681
- templates_detail: ({ id: e, ...t }, n = {}) => this.request({
1682
- path: `/wp/v2/templates/${e}`,
1683
- method: "GET",
1684
- query: t,
1685
- format: "json",
1686
- ...n
1687
- }),
1688
- templates_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1689
- path: `/wp/v2/templates/${e}`,
1690
- method: "POST",
1691
- body: n,
1692
- type: F.UrlEncoded,
1693
- format: "json",
1694
- ...r
1695
- }),
1696
- templates_update: ({ id: e, ...t }, n, r = {}) => this.request({
1697
- path: `/wp/v2/templates/${e}`,
1698
- method: "PUT",
1699
- body: n,
1700
- type: F.UrlEncoded,
1701
- format: "json",
1702
- ...r
1703
- }),
1704
- templates_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1705
- path: `/wp/v2/templates/${e}`,
1706
- method: "PATCH",
1707
- body: n,
1708
- type: F.UrlEncoded,
1709
- format: "json",
1710
- ...r
1711
- }),
1712
- templates_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1713
- path: `/wp/v2/templates/${e}`,
1714
- method: "DELETE",
1715
- body: n,
1716
- type: F.UrlEncoded,
1717
- format: "json",
1718
- ...r
1719
- }),
1720
- template_parts_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1721
- path: `/wp/v2/template-parts/${e}/revisions`,
1722
- method: "GET",
1723
- query: t,
1724
- format: "json",
1725
- ...n
1726
- }),
1727
- template_parts_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1728
- path: `/wp/v2/template-parts/${e}/revisions/${t}`,
1729
- method: "GET",
1730
- query: n,
1731
- format: "json",
1732
- ...r
1733
- }),
1734
- template_parts_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1735
- path: `/wp/v2/template-parts/${e}/revisions/${t}`,
1736
- method: "DELETE",
1737
- body: r,
1738
- type: F.UrlEncoded,
1739
- format: "json",
1740
- ...i
1741
- }),
1742
- template_parts_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1743
- path: `/wp/v2/template-parts/${e}/autosaves`,
1744
- method: "GET",
1745
- query: t,
1746
- format: "json",
1747
- ...n
1748
- }),
1749
- template_parts_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1750
- path: `/wp/v2/template-parts/${e}/autosaves`,
1751
- method: "POST",
1752
- body: n,
1753
- type: F.UrlEncoded,
1754
- format: "json",
1755
- ...r
1756
- }),
1757
- template_parts_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1758
- path: `/wp/v2/template-parts/${e}/autosaves/${t}`,
1759
- method: "GET",
1760
- query: n,
1761
- format: "json",
1762
- ...r
1763
- }),
1764
- template_parts_list: (e, t = {}) => this.request({
1765
- path: "/wp/v2/template-parts",
1766
- method: "GET",
1767
- query: e,
1768
- format: "json",
1769
- ...t
1770
- }),
1771
- template_parts_create: (e, t = {}) => this.request({
1772
- path: "/wp/v2/template-parts",
1773
- method: "POST",
1774
- body: e,
1775
- type: F.UrlEncoded,
1776
- format: "json",
1777
- ...t
1778
- }),
1779
- template_parts_lookup_list: (e, t = {}) => this.request({
1780
- path: "/wp/v2/template-parts/lookup",
1781
- method: "GET",
1782
- query: e,
1783
- ...t
1784
- }),
1785
- template_parts_detail: ({ id: e, ...t }, n = {}) => this.request({
1786
- path: `/wp/v2/template-parts/${e}`,
1787
- method: "GET",
1788
- query: t,
1789
- format: "json",
1790
- ...n
1791
- }),
1792
- template_parts_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1793
- path: `/wp/v2/template-parts/${e}`,
1794
- method: "POST",
1795
- body: n,
1796
- type: F.UrlEncoded,
1797
- format: "json",
1798
- ...r
1799
- }),
1800
- template_parts_update: ({ id: e, ...t }, n, r = {}) => this.request({
1801
- path: `/wp/v2/template-parts/${e}`,
1802
- method: "PUT",
1803
- body: n,
1804
- type: F.UrlEncoded,
1805
- format: "json",
1806
- ...r
1807
- }),
1808
- template_parts_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1809
- path: `/wp/v2/template-parts/${e}`,
1810
- method: "PATCH",
1811
- body: n,
1812
- type: F.UrlEncoded,
1813
- format: "json",
1814
- ...r
1815
- }),
1816
- template_parts_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1817
- path: `/wp/v2/template-parts/${e}`,
1818
- method: "DELETE",
1819
- body: n,
1820
- type: F.UrlEncoded,
1821
- format: "json",
1822
- ...r
1823
- }),
1824
- global_styles_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1825
- path: `/wp/v2/global-styles/${e}/revisions`,
1826
- method: "GET",
1827
- query: t,
1828
- format: "json",
1829
- ...n
1830
- }),
1831
- global_styles_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1832
- path: `/wp/v2/global-styles/${e}/revisions/${t}`,
1833
- method: "GET",
1834
- query: n,
1835
- format: "json",
1836
- ...r
1837
- }),
1838
- global_styles_themes_variations_list: ({ stylesheet: e, ...t }, n = {}) => this.request({
1839
- path: `/wp/v2/global-styles/themes/${e}/variations`,
1840
- method: "GET",
1841
- ...n
1842
- }),
1843
- global_styles_themes_detail: ({ stylesheet: e, ...t }, n = {}) => this.request({
1844
- path: `/wp/v2/global-styles/themes/${e}`,
1845
- method: "GET",
1846
- ...n
1847
- }),
1848
- global_styles_detail: ({ id: e, ...t }, n = {}) => this.request({
1849
- path: `/wp/v2/global-styles/${e}`,
1850
- method: "GET",
1851
- format: "json",
1852
- ...n
1853
- }),
1854
- global_styles_create: ({ id: e, ...t }, n, r = {}) => this.request({
1855
- path: `/wp/v2/global-styles/${e}`,
1856
- method: "POST",
1857
- body: n,
1858
- type: F.UrlEncoded,
1859
- format: "json",
1860
- ...r
1861
- }),
1862
- global_styles_update: ({ id: e, ...t }, n, r = {}) => this.request({
1863
- path: `/wp/v2/global-styles/${e}`,
1864
- method: "PUT",
1865
- body: n,
1866
- type: F.UrlEncoded,
1867
- format: "json",
1868
- ...r
1869
- }),
1870
- global_styles_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1871
- path: `/wp/v2/global-styles/${e}`,
1872
- method: "PATCH",
1873
- body: n,
1874
- type: F.UrlEncoded,
1875
- format: "json",
1876
- ...r
1877
- }),
1878
- navigation_list: (e, t = {}) => this.request({
1879
- path: "/wp/v2/navigation",
1880
- method: "GET",
1881
- query: e,
1882
- format: "json",
1883
- ...t
1884
- }),
1885
- navigation_create: (e, t = {}) => this.request({
1886
- path: "/wp/v2/navigation",
1887
- method: "POST",
1888
- body: e,
1889
- type: F.UrlEncoded,
1890
- format: "json",
1891
- ...t
1892
- }),
1893
- navigation_detail: ({ id: e, ...t }, n = {}) => this.request({
1894
- path: `/wp/v2/navigation/${e}`,
1895
- method: "GET",
1896
- query: t,
1897
- format: "json",
1898
- ...n
1899
- }),
1900
- navigation_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1901
- path: `/wp/v2/navigation/${e}`,
1902
- method: "POST",
1903
- body: n,
1904
- type: F.UrlEncoded,
1905
- format: "json",
1906
- ...r
1907
- }),
1908
- navigation_update: ({ id: e, ...t }, n, r = {}) => this.request({
1909
- path: `/wp/v2/navigation/${e}`,
1910
- method: "PUT",
1911
- body: n,
1912
- type: F.UrlEncoded,
1913
- format: "json",
1914
- ...r
1915
- }),
1916
- navigation_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
1917
- path: `/wp/v2/navigation/${e}`,
1918
- method: "PATCH",
1919
- body: n,
1920
- type: F.UrlEncoded,
1921
- format: "json",
1922
- ...r
1923
- }),
1924
- navigation_delete: ({ id: e, ...t }, n, r = {}) => this.request({
1925
- path: `/wp/v2/navigation/${e}`,
1926
- method: "DELETE",
1927
- body: n,
1928
- type: F.UrlEncoded,
1929
- format: "json",
1930
- ...r
1931
- }),
1932
- navigation_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
1933
- path: `/wp/v2/navigation/${e}/revisions`,
1934
- method: "GET",
1935
- query: t,
1936
- format: "json",
1937
- ...n
1938
- }),
1939
- navigation_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1940
- path: `/wp/v2/navigation/${e}/revisions/${t}`,
1941
- method: "GET",
1942
- query: n,
1943
- format: "json",
1944
- ...r
1945
- }),
1946
- navigation_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
1947
- path: `/wp/v2/navigation/${e}/revisions/${t}`,
1948
- method: "DELETE",
1949
- body: r,
1950
- type: F.UrlEncoded,
1951
- format: "json",
1952
- ...i
1953
- }),
1954
- navigation_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
1955
- path: `/wp/v2/navigation/${e}/autosaves`,
1956
- method: "GET",
1957
- query: t,
1958
- format: "json",
1959
- ...n
1960
- }),
1961
- navigation_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
1962
- path: `/wp/v2/navigation/${e}/autosaves`,
1963
- method: "POST",
1964
- body: n,
1965
- type: F.UrlEncoded,
1966
- format: "json",
1967
- ...r
1968
- }),
1969
- navigation_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
1970
- path: `/wp/v2/navigation/${e}/autosaves/${t}`,
1971
- method: "GET",
1972
- query: n,
1973
- format: "json",
1974
- ...r
1975
- }),
1976
- font_families_list: (e, t = {}) => this.request({
1977
- path: "/wp/v2/font-families",
1978
- method: "GET",
1979
- query: e,
1980
- format: "json",
1981
- ...t
1982
- }),
1983
- font_families_create: (e, t = {}) => this.request({
1984
- path: "/wp/v2/font-families",
1985
- method: "POST",
1986
- body: e,
1987
- type: F.UrlEncoded,
1988
- format: "json",
1989
- ...t
1990
- }),
1991
- font_families_detail: ({ id: e, ...t }, n = {}) => this.request({
1992
- path: `/wp/v2/font-families/${e}`,
1993
- method: "GET",
1994
- query: t,
1995
- format: "json",
1996
- ...n
1997
- }),
1998
- font_families_create2: ({ id: e, ...t }, n, r = {}) => this.request({
1999
- path: `/wp/v2/font-families/${e}`,
2000
- method: "POST",
2001
- body: n,
2002
- type: F.UrlEncoded,
2003
- format: "json",
2004
- ...r
2005
- }),
2006
- font_families_update: ({ id: e, ...t }, n, r = {}) => this.request({
2007
- path: `/wp/v2/font-families/${e}`,
2008
- method: "PUT",
2009
- body: n,
2010
- type: F.UrlEncoded,
2011
- format: "json",
2012
- ...r
2013
- }),
2014
- font_families_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2015
- path: `/wp/v2/font-families/${e}`,
2016
- method: "PATCH",
2017
- body: n,
2018
- type: F.UrlEncoded,
2019
- format: "json",
2020
- ...r
2021
- }),
2022
- font_families_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2023
- path: `/wp/v2/font-families/${e}`,
2024
- method: "DELETE",
2025
- body: n,
2026
- type: F.UrlEncoded,
2027
- format: "json",
2028
- ...r
2029
- }),
2030
- font_families_font_faces_list: ({ fontFamilyId: e, ...t }, n = {}) => this.request({
2031
- path: `/wp/v2/font-families/${e}/font-faces`,
2032
- method: "GET",
2033
- query: t,
2034
- format: "json",
2035
- ...n
2036
- }),
2037
- font_families_font_faces_create: ({ fontFamilyId: e, ...t }, n, r = {}) => this.request({
2038
- path: `/wp/v2/font-families/${e}/font-faces`,
2039
- method: "POST",
2040
- body: n,
2041
- type: F.UrlEncoded,
2042
- format: "json",
2043
- ...r
2044
- }),
2045
- font_families_font_faces_detail: ({ fontFamilyId: e, id: t, ...n }, r = {}) => this.request({
2046
- path: `/wp/v2/font-families/${e}/font-faces/${t}`,
2047
- method: "GET",
2048
- query: n,
2049
- format: "json",
2050
- ...r
2051
- }),
2052
- font_families_font_faces_delete: ({ fontFamilyId: e, id: t, ...n }, r, i = {}) => this.request({
2053
- path: `/wp/v2/font-families/${e}/font-faces/${t}`,
2054
- method: "DELETE",
2055
- body: r,
2056
- type: F.UrlEncoded,
2057
- format: "json",
2058
- ...i
2059
- }),
2060
- eblock_list: (e, t = {}) => this.request({
2061
- path: "/wp/v2/eblock",
2062
- method: "GET",
2063
- query: e,
2064
- format: "json",
2065
- ...t
2066
- }),
2067
- eblock_create: (e, t = {}) => this.request({
2068
- path: "/wp/v2/eblock",
2069
- method: "POST",
2070
- body: e,
2071
- type: F.UrlEncoded,
2072
- format: "json",
2073
- ...t
2074
- }),
2075
- eblock_detail: ({ id: e, ...t }, n = {}) => this.request({
2076
- path: `/wp/v2/eblock/${e}`,
2077
- method: "GET",
2078
- query: t,
2079
- format: "json",
2080
- ...n
2081
- }),
2082
- eblock_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2083
- path: `/wp/v2/eblock/${e}`,
2084
- method: "POST",
2085
- body: n,
2086
- type: F.UrlEncoded,
2087
- format: "json",
2088
- ...r
2089
- }),
2090
- eblock_update: ({ id: e, ...t }, n, r = {}) => this.request({
2091
- path: `/wp/v2/eblock/${e}`,
2092
- method: "PUT",
2093
- body: n,
2094
- type: F.UrlEncoded,
2095
- format: "json",
2096
- ...r
2097
- }),
2098
- eblock_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2099
- path: `/wp/v2/eblock/${e}`,
2100
- method: "PATCH",
2101
- body: n,
2102
- type: F.UrlEncoded,
2103
- format: "json",
2104
- ...r
2105
- }),
2106
- eblock_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2107
- path: `/wp/v2/eblock/${e}`,
2108
- method: "DELETE",
2109
- body: n,
2110
- type: F.UrlEncoded,
2111
- format: "json",
2112
- ...r
2113
- }),
2114
- eblock_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
2115
- path: `/wp/v2/eblock/${e}/revisions`,
2116
- method: "GET",
2117
- query: t,
2118
- format: "json",
2119
- ...n
2120
- }),
2121
- eblock_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2122
- path: `/wp/v2/eblock/${e}/revisions/${t}`,
2123
- method: "GET",
2124
- query: n,
2125
- format: "json",
2126
- ...r
2127
- }),
2128
- eblock_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
2129
- path: `/wp/v2/eblock/${e}/revisions/${t}`,
2130
- method: "DELETE",
2131
- body: r,
2132
- type: F.UrlEncoded,
2133
- format: "json",
2134
- ...i
2135
- }),
2136
- eblock_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
2137
- path: `/wp/v2/eblock/${e}/autosaves`,
2138
- method: "GET",
2139
- query: t,
2140
- format: "json",
2141
- ...n
2142
- }),
2143
- eblock_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
2144
- path: `/wp/v2/eblock/${e}/autosaves`,
2145
- method: "POST",
2146
- body: n,
2147
- type: F.UrlEncoded,
2148
- format: "json",
2149
- ...r
2150
- }),
2151
- eblock_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2152
- path: `/wp/v2/eblock/${e}/autosaves/${t}`,
2153
- method: "GET",
2154
- query: n,
2155
- format: "json",
2156
- ...r
2157
- }),
2158
- email_list: (e, t = {}) => this.request({
2159
- path: "/wp/v2/email",
2160
- method: "GET",
2161
- query: e,
2162
- format: "json",
2163
- ...t
2164
- }),
2165
- email_create: (e, t = {}) => this.request({
2166
- path: "/wp/v2/email",
2167
- method: "POST",
2168
- body: e,
2169
- type: F.UrlEncoded,
2170
- format: "json",
2171
- ...t
2172
- }),
2173
- email_detail: ({ id: e, ...t }, n = {}) => this.request({
2174
- path: `/wp/v2/email/${e}`,
2175
- method: "GET",
2176
- query: t,
2177
- format: "json",
2178
- ...n
2179
- }),
2180
- email_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2181
- path: `/wp/v2/email/${e}`,
2182
- method: "POST",
2183
- body: n,
2184
- type: F.UrlEncoded,
2185
- format: "json",
2186
- ...r
2187
- }),
2188
- email_update: ({ id: e, ...t }, n, r = {}) => this.request({
2189
- path: `/wp/v2/email/${e}`,
2190
- method: "PUT",
2191
- body: n,
2192
- type: F.UrlEncoded,
2193
- format: "json",
2194
- ...r
2195
- }),
2196
- email_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2197
- path: `/wp/v2/email/${e}`,
2198
- method: "PATCH",
2199
- body: n,
2200
- type: F.UrlEncoded,
2201
- format: "json",
2202
- ...r
2203
- }),
2204
- email_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2205
- path: `/wp/v2/email/${e}`,
2206
- method: "DELETE",
2207
- body: n,
2208
- type: F.UrlEncoded,
2209
- format: "json",
2210
- ...r
2211
- }),
2212
- email_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
2213
- path: `/wp/v2/email/${e}/revisions`,
2214
- method: "GET",
2215
- query: t,
2216
- format: "json",
2217
- ...n
2218
- }),
2219
- email_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2220
- path: `/wp/v2/email/${e}/revisions/${t}`,
2221
- method: "GET",
2222
- query: n,
2223
- format: "json",
2224
- ...r
2225
- }),
2226
- email_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
2227
- path: `/wp/v2/email/${e}/revisions/${t}`,
2228
- method: "DELETE",
2229
- body: r,
2230
- type: F.UrlEncoded,
2231
- format: "json",
2232
- ...i
2233
- }),
2234
- email_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
2235
- path: `/wp/v2/email/${e}/autosaves`,
2236
- method: "GET",
2237
- query: t,
2238
- format: "json",
2239
- ...n
2240
- }),
2241
- email_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
2242
- path: `/wp/v2/email/${e}/autosaves`,
2243
- method: "POST",
2244
- body: n,
2245
- type: F.UrlEncoded,
2246
- format: "json",
2247
- ...r
2248
- }),
2249
- email_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2250
- path: `/wp/v2/email/${e}/autosaves/${t}`,
2251
- method: "GET",
2252
- query: n,
2253
- format: "json",
2254
- ...r
2255
- }),
2256
- notification_list: (e, t = {}) => this.request({
2257
- path: "/wp/v2/notification",
2258
- method: "GET",
2259
- query: e,
2260
- format: "json",
2261
- ...t
2262
- }),
2263
- notification_create: (e, t = {}) => this.request({
2264
- path: "/wp/v2/notification",
2265
- method: "POST",
2266
- body: e,
2267
- type: F.UrlEncoded,
2268
- format: "json",
2269
- ...t
2270
- }),
2271
- notification_detail: ({ id: e, ...t }, n = {}) => this.request({
2272
- path: `/wp/v2/notification/${e}`,
2273
- method: "GET",
2274
- query: t,
2275
- format: "json",
2276
- ...n
2277
- }),
2278
- notification_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2279
- path: `/wp/v2/notification/${e}`,
2280
- method: "POST",
2281
- body: n,
2282
- type: F.UrlEncoded,
2283
- format: "json",
2284
- ...r
2285
- }),
2286
- notification_update: ({ id: e, ...t }, n, r = {}) => this.request({
2287
- path: `/wp/v2/notification/${e}`,
2288
- method: "PUT",
2289
- body: n,
2290
- type: F.UrlEncoded,
2291
- format: "json",
2292
- ...r
2293
- }),
2294
- notification_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2295
- path: `/wp/v2/notification/${e}`,
2296
- method: "PATCH",
2297
- body: n,
2298
- type: F.UrlEncoded,
2299
- format: "json",
2300
- ...r
2301
- }),
2302
- notification_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2303
- path: `/wp/v2/notification/${e}`,
2304
- method: "DELETE",
2305
- body: n,
2306
- type: F.UrlEncoded,
2307
- format: "json",
2308
- ...r
2309
- }),
2310
- notification_autosaves_list: ({ id: e, ...t }, n = {}) => this.request({
2311
- path: `/wp/v2/notification/${e}/autosaves`,
2312
- method: "GET",
2313
- query: t,
2314
- format: "json",
2315
- ...n
2316
- }),
2317
- notification_autosaves_create: ({ id: e, ...t }, n, r = {}) => this.request({
2318
- path: `/wp/v2/notification/${e}/autosaves`,
2319
- method: "POST",
2320
- body: n,
2321
- type: F.UrlEncoded,
2322
- format: "json",
2323
- ...r
2324
- }),
2325
- notification_autosaves_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2326
- path: `/wp/v2/notification/${e}/autosaves/${t}`,
2327
- method: "GET",
2328
- query: n,
2329
- format: "json",
2330
- ...r
2331
- }),
2332
- payment_list: (e, t = {}) => this.request({
2333
- path: "/wp/v2/payment",
2334
- method: "GET",
2335
- query: e,
2336
- format: "json",
2337
- ...t
2338
- }),
2339
- payment_create: (e, t = {}) => this.request({
2340
- path: "/wp/v2/payment",
2341
- method: "POST",
2342
- body: e,
2343
- type: F.UrlEncoded,
2344
- format: "json",
2345
- ...t
2346
- }),
2347
- payment_detail: ({ id: e, ...t }, n = {}) => this.request({
2348
- path: `/wp/v2/payment/${e}`,
2349
- method: "GET",
2350
- query: t,
2351
- format: "json",
2352
- ...n
2353
- }),
2354
- payment_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2355
- path: `/wp/v2/payment/${e}`,
2356
- method: "POST",
2357
- body: n,
2358
- type: F.UrlEncoded,
2359
- format: "json",
2360
- ...r
2361
- }),
2362
- payment_update: ({ id: e, ...t }, n, r = {}) => this.request({
2363
- path: `/wp/v2/payment/${e}`,
2364
- method: "PUT",
2365
- body: n,
2366
- type: F.UrlEncoded,
2367
- format: "json",
2368
- ...r
2369
- }),
2370
- payment_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2371
- path: `/wp/v2/payment/${e}`,
2372
- method: "PATCH",
2373
- body: n,
2374
- type: F.UrlEncoded,
2375
- format: "json",
2376
- ...r
2377
- }),
2378
- payment_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2379
- path: `/wp/v2/payment/${e}`,
2380
- method: "DELETE",
2381
- body: n,
2382
- type: F.UrlEncoded,
2383
- format: "json",
2384
- ...r
2385
- }),
2386
- project_list: (e, t = {}) => this.request({
2387
- path: "/wp/v2/project",
2388
- method: "GET",
2389
- query: e,
2390
- format: "json",
2391
- ...t
2392
- }),
2393
- project_create: (e, t = {}) => this.request({
2394
- path: "/wp/v2/project",
2395
- method: "POST",
2396
- body: e,
2397
- type: F.UrlEncoded,
2398
- format: "json",
2399
- ...t
2400
- }),
2401
- project_detail: ({ id: e, ...t }, n = {}) => this.request({
2402
- path: `/wp/v2/project/${e}`,
2403
- method: "GET",
2404
- query: t,
2405
- format: "json",
2406
- ...n
2407
- }),
2408
- project_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2409
- path: `/wp/v2/project/${e}`,
2410
- method: "POST",
2411
- body: n,
2412
- type: F.UrlEncoded,
2413
- format: "json",
2414
- ...r
2415
- }),
2416
- project_update: ({ id: e, ...t }, n, r = {}) => this.request({
2417
- path: `/wp/v2/project/${e}`,
2418
- method: "PUT",
2419
- body: n,
2420
- type: F.UrlEncoded,
2421
- format: "json",
2422
- ...r
2423
- }),
2424
- project_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2425
- path: `/wp/v2/project/${e}`,
2426
- method: "PATCH",
2427
- body: n,
2428
- type: F.UrlEncoded,
2429
- format: "json",
2430
- ...r
2431
- }),
2432
- project_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2433
- path: `/wp/v2/project/${e}`,
2434
- method: "DELETE",
2435
- body: n,
2436
- type: F.UrlEncoded,
2437
- format: "json",
2438
- ...r
2439
- }),
2440
- project_revisions_list: ({ parent: e, ...t }, n = {}) => this.request({
2441
- path: `/wp/v2/project/${e}/revisions`,
2442
- method: "GET",
2443
- query: t,
2444
- format: "json",
2445
- ...n
2446
- }),
2447
- project_revisions_detail: ({ parent: e, id: t, ...n }, r = {}) => this.request({
2448
- path: `/wp/v2/project/${e}/revisions/${t}`,
2449
- method: "GET",
2450
- query: n,
2451
- format: "json",
2452
- ...r
2453
- }),
2454
- project_revisions_delete: ({ parent: e, id: t, ...n }, r, i = {}) => this.request({
2455
- path: `/wp/v2/project/${e}/revisions/${t}`,
2456
- method: "DELETE",
2457
- body: r,
2458
- type: F.UrlEncoded,
2459
- format: "json",
2460
- ...i
2461
- }),
2462
- subscription_list: (e, t = {}) => this.request({
2463
- path: "/wp/v2/subscription",
2464
- method: "GET",
2465
- query: e,
2466
- format: "json",
2467
- ...t
2468
- }),
2469
- subscription_create: (e, t = {}) => this.request({
2470
- path: "/wp/v2/subscription",
2471
- method: "POST",
2472
- body: e,
2473
- type: F.UrlEncoded,
2474
- format: "json",
2475
- ...t
2476
- }),
2477
- subscription_detail: ({ id: e, ...t }, n = {}) => this.request({
2478
- path: `/wp/v2/subscription/${e}`,
2479
- method: "GET",
2480
- query: t,
2481
- format: "json",
2482
- ...n
2483
- }),
2484
- subscription_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2485
- path: `/wp/v2/subscription/${e}`,
2486
- method: "POST",
2487
- body: n,
2488
- type: F.UrlEncoded,
2489
- format: "json",
2490
- ...r
2491
- }),
2492
- subscription_update: ({ id: e, ...t }, n, r = {}) => this.request({
2493
- path: `/wp/v2/subscription/${e}`,
2494
- method: "PUT",
2495
- body: n,
2496
- type: F.UrlEncoded,
2497
- format: "json",
2498
- ...r
2499
- }),
2500
- subscription_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2501
- path: `/wp/v2/subscription/${e}`,
2502
- method: "PATCH",
2503
- body: n,
2504
- type: F.UrlEncoded,
2505
- format: "json",
2506
- ...r
2507
- }),
2508
- subscription_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2509
- path: `/wp/v2/subscription/${e}`,
2510
- method: "DELETE",
2511
- body: n,
2512
- type: F.UrlEncoded,
2513
- format: "json",
2514
- ...r
2515
- }),
2516
- user_promocodes_list: (e, t = {}) => this.request({
2517
- path: "/wp/v2/user_promocodes",
2518
- method: "GET",
2519
- query: e,
2520
- format: "json",
2521
- ...t
2522
- }),
2523
- user_promocodes_create: (e, t = {}) => this.request({
2524
- path: "/wp/v2/user_promocodes",
2525
- method: "POST",
2526
- body: e,
2527
- type: F.UrlEncoded,
2528
- format: "json",
2529
- ...t
2530
- }),
2531
- user_promocodes_detail: ({ id: e, ...t }, n = {}) => this.request({
2532
- path: `/wp/v2/user_promocodes/${e}`,
2533
- method: "GET",
2534
- query: t,
2535
- format: "json",
2536
- ...n
2537
- }),
2538
- user_promocodes_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2539
- path: `/wp/v2/user_promocodes/${e}`,
2540
- method: "POST",
2541
- body: n,
2542
- type: F.UrlEncoded,
2543
- format: "json",
2544
- ...r
2545
- }),
2546
- user_promocodes_update: ({ id: e, ...t }, n, r = {}) => this.request({
2547
- path: `/wp/v2/user_promocodes/${e}`,
2548
- method: "PUT",
2549
- body: n,
2550
- type: F.UrlEncoded,
2551
- format: "json",
2552
- ...r
2553
- }),
2554
- user_promocodes_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2555
- path: `/wp/v2/user_promocodes/${e}`,
2556
- method: "PATCH",
2557
- body: n,
2558
- type: F.UrlEncoded,
2559
- format: "json",
2560
- ...r
2561
- }),
2562
- user_promocodes_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2563
- path: `/wp/v2/user_promocodes/${e}`,
2564
- method: "DELETE",
2565
- body: n,
2566
- type: F.UrlEncoded,
2567
- format: "json",
2568
- ...r
2569
- }),
2570
- types_list: (e, t = {}) => this.request({
2571
- path: "/wp/v2/types",
2572
- method: "GET",
2573
- query: e,
2574
- format: "json",
2575
- ...t
2576
- }),
2577
- types_detail: ({ type: e, ...t }, n = {}) => this.request({
2578
- path: `/wp/v2/types/${e}`,
2579
- method: "GET",
2580
- query: t,
2581
- format: "json",
2582
- ...n
2583
- }),
2584
- statuses_list: (e, t = {}) => this.request({
2585
- path: "/wp/v2/statuses",
2586
- method: "GET",
2587
- query: e,
2588
- format: "json",
2589
- ...t
2590
- }),
2591
- statuses_detail: ({ status: e, ...t }, n = {}) => this.request({
2592
- path: `/wp/v2/statuses/${e}`,
2593
- method: "GET",
2594
- query: t,
2595
- format: "json",
2596
- ...n
2597
- }),
2598
- taxonomies_list: (e, t = {}) => this.request({
2599
- path: "/wp/v2/taxonomies",
2600
- method: "GET",
2601
- query: e,
2602
- format: "json",
2603
- ...t
2604
- }),
2605
- taxonomies_detail: ({ taxonomy: e, ...t }, n = {}) => this.request({
2606
- path: `/wp/v2/taxonomies/${e}`,
2607
- method: "GET",
2608
- query: t,
2609
- format: "json",
2610
- ...n
2611
- }),
2612
- categories_list: (e, t = {}) => this.request({
2613
- path: "/wp/v2/categories",
2614
- method: "GET",
2615
- query: e,
2616
- format: "json",
2617
- ...t
2618
- }),
2619
- categories_create: (e, t = {}) => this.request({
2620
- path: "/wp/v2/categories",
2621
- method: "POST",
2622
- body: e,
2623
- type: F.UrlEncoded,
2624
- format: "json",
2625
- ...t
2626
- }),
2627
- categories_detail: ({ id: e, ...t }, n = {}) => this.request({
2628
- path: `/wp/v2/categories/${e}`,
2629
- method: "GET",
2630
- query: t,
2631
- format: "json",
2632
- ...n
2633
- }),
2634
- categories_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2635
- path: `/wp/v2/categories/${e}`,
2636
- method: "POST",
2637
- body: n,
2638
- type: F.UrlEncoded,
2639
- format: "json",
2640
- ...r
2641
- }),
2642
- categories_update: ({ id: e, ...t }, n, r = {}) => this.request({
2643
- path: `/wp/v2/categories/${e}`,
2644
- method: "PUT",
2645
- body: n,
2646
- type: F.UrlEncoded,
2647
- format: "json",
2648
- ...r
2649
- }),
2650
- categories_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2651
- path: `/wp/v2/categories/${e}`,
2652
- method: "PATCH",
2653
- body: n,
2654
- type: F.UrlEncoded,
2655
- format: "json",
2656
- ...r
2657
- }),
2658
- categories_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2659
- path: `/wp/v2/categories/${e}`,
2660
- method: "DELETE",
2661
- body: n,
2662
- type: F.UrlEncoded,
2663
- format: "json",
2664
- ...r
2665
- }),
2666
- tags_list: (e, t = {}) => this.request({
2667
- path: "/wp/v2/tags",
2668
- method: "GET",
2669
- query: e,
2670
- format: "json",
2671
- ...t
2672
- }),
2673
- tags_create: (e, t = {}) => this.request({
2674
- path: "/wp/v2/tags",
2675
- method: "POST",
2676
- body: e,
2677
- type: F.UrlEncoded,
2678
- format: "json",
2679
- ...t
2680
- }),
2681
- tags_detail: ({ id: e, ...t }, n = {}) => this.request({
2682
- path: `/wp/v2/tags/${e}`,
2683
- method: "GET",
2684
- query: t,
2685
- format: "json",
2686
- ...n
2687
- }),
2688
- tags_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2689
- path: `/wp/v2/tags/${e}`,
2690
- method: "POST",
2691
- body: n,
2692
- type: F.UrlEncoded,
2693
- format: "json",
2694
- ...r
2695
- }),
2696
- tags_update: ({ id: e, ...t }, n, r = {}) => this.request({
2697
- path: `/wp/v2/tags/${e}`,
2698
- method: "PUT",
2699
- body: n,
2700
- type: F.UrlEncoded,
2701
- format: "json",
2702
- ...r
2703
- }),
2704
- tags_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2705
- path: `/wp/v2/tags/${e}`,
2706
- method: "PATCH",
2707
- body: n,
2708
- type: F.UrlEncoded,
2709
- format: "json",
2710
- ...r
2711
- }),
2712
- tags_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2713
- path: `/wp/v2/tags/${e}`,
2714
- method: "DELETE",
2715
- body: n,
2716
- type: F.UrlEncoded,
2717
- format: "json",
2718
- ...r
2719
- }),
2720
- menus_list: (e, t = {}) => this.request({
2721
- path: "/wp/v2/menus",
2722
- method: "GET",
2723
- query: e,
2724
- format: "json",
2725
- ...t
2726
- }),
2727
- menus_create: (e, t = {}) => this.request({
2728
- path: "/wp/v2/menus",
2729
- method: "POST",
2730
- body: e,
2731
- type: F.UrlEncoded,
2732
- format: "json",
2733
- ...t
2734
- }),
2735
- menus_detail: ({ id: e, ...t }, n = {}) => this.request({
2736
- path: `/wp/v2/menus/${e}`,
2737
- method: "GET",
2738
- query: t,
2739
- format: "json",
2740
- ...n
2741
- }),
2742
- menus_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2743
- path: `/wp/v2/menus/${e}`,
2744
- method: "POST",
2745
- body: n,
2746
- type: F.UrlEncoded,
2747
- format: "json",
2748
- ...r
2749
- }),
2750
- menus_update: ({ id: e, ...t }, n, r = {}) => this.request({
2751
- path: `/wp/v2/menus/${e}`,
2752
- method: "PUT",
2753
- body: n,
2754
- type: F.UrlEncoded,
2755
- format: "json",
2756
- ...r
2757
- }),
2758
- menus_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2759
- path: `/wp/v2/menus/${e}`,
2760
- method: "PATCH",
2761
- body: n,
2762
- type: F.UrlEncoded,
2763
- format: "json",
2764
- ...r
2765
- }),
2766
- menus_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2767
- path: `/wp/v2/menus/${e}`,
2768
- method: "DELETE",
2769
- body: n,
2770
- type: F.UrlEncoded,
2771
- format: "json",
2772
- ...r
2773
- }),
2774
- wp_pattern_category_list: (e, t = {}) => this.request({
2775
- path: "/wp/v2/wp_pattern_category",
2776
- method: "GET",
2777
- query: e,
2778
- format: "json",
2779
- ...t
2780
- }),
2781
- wp_pattern_category_create: (e, t = {}) => this.request({
2782
- path: "/wp/v2/wp_pattern_category",
2783
- method: "POST",
2784
- body: e,
2785
- type: F.UrlEncoded,
2786
- format: "json",
2787
- ...t
2788
- }),
2789
- wp_pattern_category_detail: ({ id: e, ...t }, n = {}) => this.request({
2790
- path: `/wp/v2/wp_pattern_category/${e}`,
2791
- method: "GET",
2792
- query: t,
2793
- format: "json",
2794
- ...n
2795
- }),
2796
- wp_pattern_category_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2797
- path: `/wp/v2/wp_pattern_category/${e}`,
2798
- method: "POST",
2799
- body: n,
2800
- type: F.UrlEncoded,
2801
- format: "json",
2802
- ...r
2803
- }),
2804
- wp_pattern_category_update: ({ id: e, ...t }, n, r = {}) => this.request({
2805
- path: `/wp/v2/wp_pattern_category/${e}`,
2806
- method: "PUT",
2807
- body: n,
2808
- type: F.UrlEncoded,
2809
- format: "json",
2810
- ...r
2811
- }),
2812
- wp_pattern_category_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2813
- path: `/wp/v2/wp_pattern_category/${e}`,
2814
- method: "PATCH",
2815
- body: n,
2816
- type: F.UrlEncoded,
2817
- format: "json",
2818
- ...r
2819
- }),
2820
- wp_pattern_category_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2821
- path: `/wp/v2/wp_pattern_category/${e}`,
2822
- method: "DELETE",
2823
- body: n,
2824
- type: F.UrlEncoded,
2825
- format: "json",
2826
- ...r
2827
- }),
2828
- group_list: (e, t = {}) => this.request({
2829
- path: "/wp/v2/group",
2830
- method: "GET",
2831
- query: e,
2832
- format: "json",
2833
- ...t
2834
- }),
2835
- group_create: (e, t = {}) => this.request({
2836
- path: "/wp/v2/group",
2837
- method: "POST",
2838
- body: e,
2839
- type: F.UrlEncoded,
2840
- format: "json",
2841
- ...t
2842
- }),
2843
- group_detail: ({ id: e, ...t }, n = {}) => this.request({
2844
- path: `/wp/v2/group/${e}`,
2845
- method: "GET",
2846
- query: t,
2847
- format: "json",
2848
- ...n
2849
- }),
2850
- group_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2851
- path: `/wp/v2/group/${e}`,
2852
- method: "POST",
2853
- body: n,
2854
- type: F.UrlEncoded,
2855
- format: "json",
2856
- ...r
2857
- }),
2858
- group_update: ({ id: e, ...t }, n, r = {}) => this.request({
2859
- path: `/wp/v2/group/${e}`,
2860
- method: "PUT",
2861
- body: n,
2862
- type: F.UrlEncoded,
2863
- format: "json",
2864
- ...r
2865
- }),
2866
- group_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2867
- path: `/wp/v2/group/${e}`,
2868
- method: "PATCH",
2869
- body: n,
2870
- type: F.UrlEncoded,
2871
- format: "json",
2872
- ...r
2873
- }),
2874
- group_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2875
- path: `/wp/v2/group/${e}`,
2876
- method: "DELETE",
2877
- body: n,
2878
- type: F.UrlEncoded,
2879
- format: "json",
2880
- ...r
2881
- }),
2882
- blockfolder_list: (e, t = {}) => this.request({
2883
- path: "/wp/v2/blockfolder",
2884
- method: "GET",
2885
- query: e,
2886
- format: "json",
2887
- ...t
2888
- }),
2889
- blockfolder_create: (e, t = {}) => this.request({
2890
- path: "/wp/v2/blockfolder",
2891
- method: "POST",
2892
- body: e,
2893
- type: F.UrlEncoded,
2894
- format: "json",
2895
- ...t
2896
- }),
2897
- blockfolder_detail: ({ id: e, ...t }, n = {}) => this.request({
2898
- path: `/wp/v2/blockfolder/${e}`,
2899
- method: "GET",
2900
- query: t,
2901
- format: "json",
2902
- ...n
2903
- }),
2904
- blockfolder_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2905
- path: `/wp/v2/blockfolder/${e}`,
2906
- method: "POST",
2907
- body: n,
2908
- type: F.UrlEncoded,
2909
- format: "json",
2910
- ...r
2911
- }),
2912
- blockfolder_update: ({ id: e, ...t }, n, r = {}) => this.request({
2913
- path: `/wp/v2/blockfolder/${e}`,
2914
- method: "PUT",
2915
- body: n,
2916
- type: F.UrlEncoded,
2917
- format: "json",
2918
- ...r
2919
- }),
2920
- blockfolder_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2921
- path: `/wp/v2/blockfolder/${e}`,
2922
- method: "PATCH",
2923
- body: n,
2924
- type: F.UrlEncoded,
2925
- format: "json",
2926
- ...r
2927
- }),
2928
- blockfolder_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2929
- path: `/wp/v2/blockfolder/${e}`,
2930
- method: "DELETE",
2931
- body: n,
2932
- type: F.UrlEncoded,
2933
- format: "json",
2934
- ...r
2935
- }),
2936
- blocktags_list: (e, t = {}) => this.request({
2937
- path: "/wp/v2/blocktags",
2938
- method: "GET",
2939
- query: e,
2940
- format: "json",
2941
- ...t
2942
- }),
2943
- blocktags_create: (e, t = {}) => this.request({
2944
- path: "/wp/v2/blocktags",
2945
- method: "POST",
2946
- body: e,
2947
- type: F.UrlEncoded,
2948
- format: "json",
2949
- ...t
2950
- }),
2951
- blocktags_detail: ({ id: e, ...t }, n = {}) => this.request({
2952
- path: `/wp/v2/blocktags/${e}`,
2953
- method: "GET",
2954
- query: t,
2955
- format: "json",
2956
- ...n
2957
- }),
2958
- blocktags_create2: ({ id: e, ...t }, n, r = {}) => this.request({
2959
- path: `/wp/v2/blocktags/${e}`,
2960
- method: "POST",
2961
- body: n,
2962
- type: F.UrlEncoded,
2963
- format: "json",
2964
- ...r
2965
- }),
2966
- blocktags_update: ({ id: e, ...t }, n, r = {}) => this.request({
2967
- path: `/wp/v2/blocktags/${e}`,
2968
- method: "PUT",
2969
- body: n,
2970
- type: F.UrlEncoded,
2971
- format: "json",
2972
- ...r
2973
- }),
2974
- blocktags_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
2975
- path: `/wp/v2/blocktags/${e}`,
2976
- method: "PATCH",
2977
- body: n,
2978
- type: F.UrlEncoded,
2979
- format: "json",
2980
- ...r
2981
- }),
2982
- blocktags_delete: ({ id: e, ...t }, n, r = {}) => this.request({
2983
- path: `/wp/v2/blocktags/${e}`,
2984
- method: "DELETE",
2985
- body: n,
2986
- type: F.UrlEncoded,
2987
- format: "json",
2988
- ...r
2989
- }),
2990
- emailtags_list: (e, t = {}) => this.request({
2991
- path: "/wp/v2/emailtags",
2992
- method: "GET",
2993
- query: e,
2994
- format: "json",
2995
- ...t
2996
- }),
2997
- emailtags_create: (e, t = {}) => this.request({
2998
- path: "/wp/v2/emailtags",
2999
- method: "POST",
3000
- body: e,
3001
- type: F.UrlEncoded,
3002
- format: "json",
3003
- ...t
3004
- }),
3005
- emailtags_detail: ({ id: e, ...t }, n = {}) => this.request({
3006
- path: `/wp/v2/emailtags/${e}`,
3007
- method: "GET",
3008
- query: t,
3009
- format: "json",
3010
- ...n
3011
- }),
3012
- emailtags_create2: ({ id: e, ...t }, n, r = {}) => this.request({
3013
- path: `/wp/v2/emailtags/${e}`,
3014
- method: "POST",
3015
- body: n,
3016
- type: F.UrlEncoded,
3017
- format: "json",
3018
- ...r
3019
- }),
3020
- emailtags_update: ({ id: e, ...t }, n, r = {}) => this.request({
3021
- path: `/wp/v2/emailtags/${e}`,
3022
- method: "PUT",
3023
- body: n,
3024
- type: F.UrlEncoded,
3025
- format: "json",
3026
- ...r
3027
- }),
3028
- emailtags_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3029
- path: `/wp/v2/emailtags/${e}`,
3030
- method: "PATCH",
3031
- body: n,
3032
- type: F.UrlEncoded,
3033
- format: "json",
3034
- ...r
3035
- }),
3036
- emailtags_delete: ({ id: e, ...t }, n, r = {}) => this.request({
3037
- path: `/wp/v2/emailtags/${e}`,
3038
- method: "DELETE",
3039
- body: n,
3040
- type: F.UrlEncoded,
3041
- format: "json",
3042
- ...r
3043
- }),
3044
- folder_list: (e, t = {}) => this.request({
3045
- path: "/wp/v2/folder",
3046
- method: "GET",
3047
- query: e,
3048
- format: "json",
3049
- ...t
3050
- }),
3051
- folder_create: (e, t = {}) => this.request({
3052
- path: "/wp/v2/folder",
3053
- method: "POST",
3054
- body: e,
3055
- type: F.UrlEncoded,
3056
- format: "json",
3057
- ...t
3058
- }),
3059
- folder_detail: ({ id: e, ...t }, n = {}) => this.request({
3060
- path: `/wp/v2/folder/${e}`,
3061
- method: "GET",
3062
- query: t,
3063
- format: "json",
3064
- ...n
3065
- }),
3066
- folder_create2: ({ id: e, ...t }, n, r = {}) => this.request({
3067
- path: `/wp/v2/folder/${e}`,
3068
- method: "POST",
3069
- body: n,
3070
- type: F.UrlEncoded,
3071
- format: "json",
3072
- ...r
3073
- }),
3074
- folder_update: ({ id: e, ...t }, n, r = {}) => this.request({
3075
- path: `/wp/v2/folder/${e}`,
3076
- method: "PUT",
3077
- body: n,
3078
- type: F.UrlEncoded,
3079
- format: "json",
3080
- ...r
3081
- }),
3082
- folder_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3083
- path: `/wp/v2/folder/${e}`,
3084
- method: "PATCH",
3085
- body: n,
3086
- type: F.UrlEncoded,
3087
- format: "json",
3088
- ...r
3089
- }),
3090
- folder_delete: ({ id: e, ...t }, n, r = {}) => this.request({
3091
- path: `/wp/v2/folder/${e}`,
3092
- method: "DELETE",
3093
- body: n,
3094
- type: F.UrlEncoded,
3095
- format: "json",
3096
- ...r
3097
- }),
3098
- users_list: (e, t = {}) => this.request({
3099
- path: "/wp/v2/users",
3100
- method: "GET",
3101
- query: e,
3102
- format: "json",
3103
- ...t
3104
- }),
3105
- users_create: (e, t = {}) => this.request({
3106
- path: "/wp/v2/users",
3107
- method: "POST",
3108
- body: e,
3109
- type: F.UrlEncoded,
3110
- format: "json",
3111
- ...t
3112
- }),
3113
- users_detail: ({ id: e, ...t }, n = {}) => this.request({
3114
- path: `/wp/v2/users/${e}`,
3115
- method: "GET",
3116
- query: t,
3117
- format: "json",
3118
- ...n
3119
- }),
3120
- users_create2: ({ id: e, ...t }, n, r = {}) => this.request({
3121
- path: `/wp/v2/users/${e}`,
3122
- method: "POST",
3123
- body: n,
3124
- type: F.UrlEncoded,
3125
- format: "json",
3126
- ...r
3127
- }),
3128
- users_update: ({ id: e, ...t }, n, r = {}) => this.request({
3129
- path: `/wp/v2/users/${e}`,
3130
- method: "PUT",
3131
- body: n,
3132
- type: F.UrlEncoded,
3133
- format: "json",
3134
- ...r
3135
- }),
3136
- users_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3137
- path: `/wp/v2/users/${e}`,
3138
- method: "PATCH",
3139
- body: n,
3140
- type: F.UrlEncoded,
3141
- format: "json",
3142
- ...r
3143
- }),
3144
- users_delete: ({ id: e, ...t }, n, r = {}) => this.request({
3145
- path: `/wp/v2/users/${e}`,
3146
- method: "DELETE",
3147
- body: n,
3148
- type: F.UrlEncoded,
3149
- format: "json",
3150
- ...r
3151
- }),
3152
- users_me_list: (e, t = {}) => this.request({
3153
- path: "/wp/v2/users/me",
3154
- method: "GET",
3155
- query: e,
3156
- format: "json",
3157
- ...t
3158
- }),
3159
- users_me_create: (e, t = {}) => this.request({
3160
- path: "/wp/v2/users/me",
3161
- method: "POST",
3162
- body: e,
3163
- type: F.UrlEncoded,
3164
- format: "json",
3165
- ...t
3166
- }),
3167
- users_me_update: (e, t = {}) => this.request({
3168
- path: "/wp/v2/users/me",
3169
- method: "PUT",
3170
- body: e,
3171
- type: F.UrlEncoded,
3172
- format: "json",
3173
- ...t
3174
- }),
3175
- users_me_partial_update: (e, t = {}) => this.request({
3176
- path: "/wp/v2/users/me",
3177
- method: "PATCH",
3178
- body: e,
3179
- type: F.UrlEncoded,
3180
- format: "json",
3181
- ...t
3182
- }),
3183
- users_me_delete: (e, t = {}) => this.request({
3184
- path: "/wp/v2/users/me",
3185
- method: "DELETE",
3186
- body: e,
3187
- type: F.UrlEncoded,
3188
- format: "json",
3189
- ...t
3190
- }),
3191
- users_application_passwords_list: ({ userId: e, ...t }, n = {}) => this.request({
3192
- path: `/wp/v2/users/${e}/application-passwords`,
3193
- method: "GET",
3194
- query: t,
3195
- format: "json",
3196
- ...n
3197
- }),
3198
- users_application_passwords_create: ({ userId: e, ...t }, n, r = {}) => this.request({
3199
- path: `/wp/v2/users/${e}/application-passwords`,
3200
- method: "POST",
3201
- body: n,
3202
- type: F.UrlEncoded,
3203
- format: "json",
3204
- ...r
3205
- }),
3206
- users_application_passwords_delete: ({ userId: e, ...t }, n = {}) => this.request({
3207
- path: `/wp/v2/users/${e}/application-passwords`,
3208
- method: "DELETE",
3209
- format: "json",
3210
- ...n
3211
- }),
3212
- users_application_passwords_introspect_list: ({ userId: e, ...t }, n = {}) => this.request({
3213
- path: `/wp/v2/users/${e}/application-passwords/introspect`,
3214
- method: "GET",
3215
- query: t,
3216
- format: "json",
3217
- ...n
3218
- }),
3219
- users_application_passwords_detail: ({ userId: e, uuid: t, ...n }, r = {}) => this.request({
3220
- path: `/wp/v2/users/${e}/application-passwords/${t}`,
3221
- method: "GET",
3222
- query: n,
3223
- format: "json",
3224
- ...r
3225
- }),
3226
- users_application_passwords_create2: ({ userId: e, uuid: t, ...n }, r, i = {}) => this.request({
3227
- path: `/wp/v2/users/${e}/application-passwords/${t}`,
3228
- method: "POST",
3229
- body: r,
3230
- type: F.UrlEncoded,
3231
- format: "json",
3232
- ...i
3233
- }),
3234
- users_application_passwords_update: ({ userId: e, uuid: t, ...n }, r, i = {}) => this.request({
3235
- path: `/wp/v2/users/${e}/application-passwords/${t}`,
3236
- method: "PUT",
3237
- body: r,
3238
- type: F.UrlEncoded,
3239
- format: "json",
3240
- ...i
3241
- }),
3242
- users_application_passwords_partial_update: ({ userId: e, uuid: t, ...n }, r, i = {}) => this.request({
3243
- path: `/wp/v2/users/${e}/application-passwords/${t}`,
3244
- method: "PATCH",
3245
- body: r,
3246
- type: F.UrlEncoded,
3247
- format: "json",
3248
- ...i
3249
- }),
3250
- users_application_passwords_delete2: ({ userId: e, uuid: t, ...n }, r = {}) => this.request({
3251
- path: `/wp/v2/users/${e}/application-passwords/${t}`,
3252
- method: "DELETE",
3253
- format: "json",
3254
- ...r
3255
- }),
3256
- comments_list: (e, t = {}) => this.request({
3257
- path: "/wp/v2/comments",
3258
- method: "GET",
3259
- query: e,
3260
- format: "json",
3261
- ...t
3262
- }),
3263
- comments_create: (e, t = {}) => this.request({
3264
- path: "/wp/v2/comments",
3265
- method: "POST",
3266
- body: e,
3267
- type: F.UrlEncoded,
3268
- format: "json",
3269
- ...t
3270
- }),
3271
- comments_detail: ({ id: e, ...t }, n = {}) => this.request({
3272
- path: `/wp/v2/comments/${e}`,
3273
- method: "GET",
3274
- query: t,
3275
- format: "json",
3276
- ...n
3277
- }),
3278
- comments_create2: ({ id: e, ...t }, n, r = {}) => this.request({
3279
- path: `/wp/v2/comments/${e}`,
3280
- method: "POST",
3281
- body: n,
3282
- type: F.UrlEncoded,
3283
- format: "json",
3284
- ...r
3285
- }),
3286
- comments_update: ({ id: e, ...t }, n, r = {}) => this.request({
3287
- path: `/wp/v2/comments/${e}`,
3288
- method: "PUT",
3289
- body: n,
3290
- type: F.UrlEncoded,
3291
- format: "json",
3292
- ...r
3293
- }),
3294
- comments_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3295
- path: `/wp/v2/comments/${e}`,
3296
- method: "PATCH",
3297
- body: n,
3298
- type: F.UrlEncoded,
3299
- format: "json",
3300
- ...r
3301
- }),
3302
- comments_delete: ({ id: e, ...t }, n, r = {}) => this.request({
3303
- path: `/wp/v2/comments/${e}`,
3304
- method: "DELETE",
3305
- body: n,
3306
- type: F.UrlEncoded,
3307
- format: "json",
3308
- ...r
3309
- }),
3310
- search_list: (e, t = {}) => this.request({
3311
- path: "/wp/v2/search",
3312
- method: "GET",
3313
- query: e,
3314
- format: "json",
3315
- ...t
3316
- }),
3317
- block_renderer_detail: ({ name: e, ...t }, n = {}) => this.request({
3318
- path: `/wp/v2/block-renderer/${e}`,
3319
- method: "GET",
3320
- query: t,
3321
- format: "json",
3322
- ...n
3323
- }),
3324
- block_renderer_create: ({ name: e, ...t }, n, r = {}) => this.request({
3325
- path: `/wp/v2/block-renderer/${e}`,
3326
- method: "POST",
3327
- body: n,
3328
- type: F.UrlEncoded,
3329
- format: "json",
3330
- ...r
3331
- }),
3332
- block_types_list: (e, t = {}) => this.request({
3333
- path: "/wp/v2/block-types",
3334
- method: "GET",
3335
- query: e,
3336
- format: "json",
3337
- ...t
3338
- }),
3339
- block_types_detail: ({ namespace: e, ...t }, n = {}) => this.request({
3340
- path: `/wp/v2/block-types/${e}`,
3341
- method: "GET",
3342
- query: t,
3343
- format: "json",
3344
- ...n
3345
- }),
3346
- block_types_detail2: ({ name: e, namespace: t, ...n }, r = {}) => this.request({
3347
- path: `/wp/v2/block-types/${t}/${e}`,
3348
- method: "GET",
3349
- query: n,
3350
- format: "json",
3351
- ...r
3352
- }),
3353
- settings_list: (e = {}) => this.request({
3354
- path: "/wp/v2/settings",
3355
- method: "GET",
3356
- format: "json",
3357
- ...e
3358
- }),
3359
- settings_create: (e, t = {}) => this.request({
3360
- path: "/wp/v2/settings",
3361
- method: "POST",
3362
- body: e,
3363
- type: F.UrlEncoded,
3364
- format: "json",
3365
- ...t
3366
- }),
3367
- settings_update: (e, t = {}) => this.request({
3368
- path: "/wp/v2/settings",
3369
- method: "PUT",
3370
- body: e,
3371
- type: F.UrlEncoded,
3372
- format: "json",
3373
- ...t
3374
- }),
3375
- settings_partial_update: (e, t = {}) => this.request({
3376
- path: "/wp/v2/settings",
3377
- method: "PATCH",
3378
- body: e,
3379
- type: F.UrlEncoded,
3380
- format: "json",
3381
- ...t
3382
- }),
3383
- themes_list: (e, t = {}) => this.request({
3384
- path: "/wp/v2/themes",
3385
- method: "GET",
3386
- query: e,
3387
- format: "json",
3388
- ...t
3389
- }),
3390
- themes_detail: ({ stylesheet: e, ...t }, n = {}) => this.request({
3391
- path: `/wp/v2/themes/${e}`,
3392
- method: "GET",
3393
- format: "json",
3394
- ...n
3395
- }),
3396
- plugins_list: (e, t = {}) => this.request({
3397
- path: "/wp/v2/plugins",
3398
- method: "GET",
3399
- query: e,
3400
- format: "json",
3401
- ...t
3402
- }),
3403
- plugins_create: (e, t = {}) => this.request({
3404
- path: "/wp/v2/plugins",
3405
- method: "POST",
3406
- body: e,
3407
- type: F.UrlEncoded,
3408
- format: "json",
3409
- ...t
3410
- }),
3411
- plugins_detail: ({ plugin: e, ...t }, n = {}) => this.request({
3412
- path: `/wp/v2/plugins/${e}`,
3413
- method: "GET",
3414
- query: t,
3415
- format: "json",
3416
- ...n
3417
- }),
3418
- plugins_create2: ({ plugin: e, ...t }, n, r = {}) => this.request({
3419
- path: `/wp/v2/plugins/${e}`,
3420
- method: "POST",
3421
- body: n,
3422
- type: F.UrlEncoded,
3423
- format: "json",
3424
- ...r
3425
- }),
3426
- plugins_update: ({ plugin: e, ...t }, n, r = {}) => this.request({
3427
- path: `/wp/v2/plugins/${e}`,
3428
- method: "PUT",
3429
- body: n,
3430
- type: F.UrlEncoded,
3431
- format: "json",
3432
- ...r
3433
- }),
3434
- plugins_partial_update: ({ plugin: e, ...t }, n, r = {}) => this.request({
3435
- path: `/wp/v2/plugins/${e}`,
3436
- method: "PATCH",
3437
- body: n,
3438
- type: F.UrlEncoded,
3439
- format: "json",
3440
- ...r
3441
- }),
3442
- plugins_delete: ({ plugin: e, ...t }, n, r = {}) => this.request({
3443
- path: `/wp/v2/plugins/${e}`,
3444
- method: "DELETE",
3445
- body: n,
3446
- type: F.UrlEncoded,
3447
- format: "json",
3448
- ...r
3449
- }),
3450
- sidebars_list: (e, t = {}) => this.request({
3451
- path: "/wp/v2/sidebars",
3452
- method: "GET",
3453
- query: e,
3454
- format: "json",
3455
- ...t
3456
- }),
3457
- sidebars_detail: ({ id: e, ...t }, n = {}) => this.request({
3458
- path: `/wp/v2/sidebars/${e}`,
3459
- method: "GET",
3460
- query: t,
3461
- format: "json",
3462
- ...n
3463
- }),
3464
- sidebars_create: ({ id: e, ...t }, n, r = {}) => this.request({
3465
- path: `/wp/v2/sidebars/${e}`,
3466
- method: "POST",
3467
- body: n,
3468
- type: F.UrlEncoded,
3469
- format: "json",
3470
- ...r
3471
- }),
3472
- sidebars_update: ({ id: e, ...t }, n, r = {}) => this.request({
3473
- path: `/wp/v2/sidebars/${e}`,
3474
- method: "PUT",
3475
- body: n,
3476
- type: F.UrlEncoded,
3477
- format: "json",
3478
- ...r
3479
- }),
3480
- sidebars_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3481
- path: `/wp/v2/sidebars/${e}`,
3482
- method: "PATCH",
3483
- body: n,
3484
- type: F.UrlEncoded,
3485
- format: "json",
3486
- ...r
3487
- }),
3488
- widget_types_list: (e, t = {}) => this.request({
3489
- path: "/wp/v2/widget-types",
3490
- method: "GET",
3491
- query: e,
3492
- format: "json",
3493
- ...t
3494
- }),
3495
- widget_types_detail: ({ id: e, ...t }, n = {}) => this.request({
3496
- path: `/wp/v2/widget-types/${e}`,
3497
- method: "GET",
3498
- query: t,
3499
- format: "json",
3500
- ...n
3501
- }),
3502
- widget_types_encode_create: ({ id: e, ...t }, n, r = {}) => this.request({
3503
- path: `/wp/v2/widget-types/${e}/encode`,
3504
- method: "POST",
3505
- body: n,
3506
- type: F.UrlEncoded,
3507
- ...r
3508
- }),
3509
- widget_types_render_create: ({ id: e, ...t }, n, r = {}) => this.request({
3510
- path: `/wp/v2/widget-types/${e}/render`,
3511
- method: "POST",
3512
- body: n,
3513
- type: F.UrlEncoded,
3514
- ...r
3515
- }),
3516
- widgets_list: (e, t = {}) => this.request({
3517
- path: "/wp/v2/widgets",
3518
- method: "GET",
3519
- query: e,
3520
- format: "json",
3521
- ...t
3522
- }),
3523
- widgets_create: (e, t = {}) => this.request({
3524
- path: "/wp/v2/widgets",
3525
- method: "POST",
3526
- body: e,
3527
- type: F.UrlEncoded,
3528
- format: "json",
3529
- ...t
3530
- }),
3531
- widgets_detail: ({ id: e, ...t }, n = {}) => this.request({
3532
- path: `/wp/v2/widgets/${e}`,
3533
- method: "GET",
3534
- query: t,
3535
- format: "json",
3536
- ...n
3537
- }),
3538
- widgets_create2: ({ id: e, ...t }, n, r = {}) => this.request({
3539
- path: `/wp/v2/widgets/${e}`,
3540
- method: "POST",
3541
- body: n,
3542
- type: F.UrlEncoded,
3543
- format: "json",
3544
- ...r
3545
- }),
3546
- widgets_update: ({ id: e, ...t }, n, r = {}) => this.request({
3547
- path: `/wp/v2/widgets/${e}`,
3548
- method: "PUT",
3549
- body: n,
3550
- type: F.UrlEncoded,
3551
- format: "json",
3552
- ...r
3553
- }),
3554
- widgets_partial_update: ({ id: e, ...t }, n, r = {}) => this.request({
3555
- path: `/wp/v2/widgets/${e}`,
3556
- method: "PATCH",
3557
- body: n,
3558
- type: F.UrlEncoded,
3559
- format: "json",
3560
- ...r
3561
- }),
3562
- widgets_delete: ({ id: e, ...t }, n, r = {}) => this.request({
3563
- path: `/wp/v2/widgets/${e}`,
3564
- method: "DELETE",
3565
- body: n,
3566
- type: F.UrlEncoded,
3567
- format: "json",
3568
- ...r
3569
- }),
3570
- block_directory_search_list: (e, t = {}) => this.request({
3571
- path: "/wp/v2/block-directory/search",
3572
- method: "GET",
3573
- query: e,
3574
- format: "json",
3575
- ...t
3576
- }),
3577
- pattern_directory_patterns_list: (e, t = {}) => this.request({
3578
- path: "/wp/v2/pattern-directory/patterns",
3579
- method: "GET",
3580
- query: e,
3581
- format: "json",
3582
- ...t
3583
- }),
3584
- block_patterns_patterns_list: (e = {}) => this.request({
3585
- path: "/wp/v2/block-patterns/patterns",
3586
- method: "GET",
3587
- format: "json",
3588
- ...e
3589
- }),
3590
- block_patterns_categories_list: (e = {}) => this.request({
3591
- path: "/wp/v2/block-patterns/categories",
3592
- method: "GET",
3593
- format: "json",
3594
- ...e
3595
- }),
3596
- menu_locations_list: (e, t = {}) => this.request({
3597
- path: "/wp/v2/menu-locations",
3598
- method: "GET",
3599
- query: e,
3600
- format: "json",
3601
- ...t
3602
- }),
3603
- menu_locations_detail: ({ location: e, ...t }, n = {}) => this.request({
3604
- path: `/wp/v2/menu-locations/${e}`,
3605
- method: "GET",
3606
- query: t,
3607
- format: "json",
3608
- ...n
3609
- }),
3610
- font_collections_list: (e, t = {}) => this.request({
3611
- path: "/wp/v2/font-collections",
3612
- method: "GET",
3613
- query: e,
3614
- format: "json",
3615
- ...t
3616
- }),
3617
- font_collections_detail: ({ slug: e, ...t }, n = {}) => this.request({
3618
- path: `/wp/v2/font-collections/${e}`,
3619
- method: "GET",
3620
- query: t,
3621
- format: "json",
3622
- ...n
3623
- })
3624
- };
3625
- userToProject = {
3626
- get_user_to_project: (e, t = {}) => this.request({
3627
- path: "/user_to_project/v1",
3628
- method: "GET",
3629
- query: e,
3630
- ...t
3631
- }),
3632
- add_user_create: (e, t = {}) => this.request({
3633
- path: "/user_to_project/v1/add_user",
3634
- method: "POST",
3635
- body: e,
3636
- type: F.UrlEncoded,
3637
- ...t
3638
- })
3639
- };
3640
- projects = {
3641
- get_projects: (e, t = {}) => this.request({
3642
- path: "/projects/v1",
3643
- method: "GET",
3644
- query: e,
3645
- ...t
3646
- }),
3647
- list_advanced_list: (e, t = {}) => this.request({
3648
- path: "/projects/v1/list_advanced",
3649
- method: "GET",
3650
- query: e,
3651
- ...t
3652
- }),
3653
- top_used_list: (e, t = {}) => this.request({
3654
- path: "/projects/v1/top-used",
3655
- method: "GET",
3656
- query: e,
3657
- ...t
3658
- }),
3659
- members_bulk_create: (e, t = {}) => this.request({
3660
- path: "/projects/v1/members/bulk",
3661
- method: "POST",
3662
- body: e,
3663
- type: F.UrlEncoded,
3664
- ...t
3665
- }),
3666
- flush_project_cache_create: (e, t = {}) => this.request({
3667
- path: "/projects/v1/flush-project-cache",
3668
- method: "POST",
3669
- body: e,
3670
- type: F.UrlEncoded,
3671
- ...t
3672
- })
3673
- };
3674
- payment = {
3675
- get_payment: (e, t = {}) => this.request({
3676
- path: "/payment/v1",
3677
- method: "GET",
3678
- query: e,
3679
- ...t
3680
- }),
3681
- check_duplicate_list: (e, t = {}) => this.request({
3682
- path: "/payment/v1/check_duplicate",
3683
- method: "GET",
3684
- query: e,
3685
- ...t
3686
- }),
3687
- check_duplicate_create: (e, t = {}) => this.request({
3688
- path: "/payment/v1/check_duplicate",
3689
- method: "POST",
3690
- body: e,
3691
- type: F.UrlEncoded,
3692
- ...t
3693
- }),
3694
- subscription_payment_create: (e, t = {}) => this.request({
3695
- path: "/payment/v1/subscription_payment",
3696
- method: "POST",
3697
- body: e,
3698
- type: F.UrlEncoded,
3699
- ...t
3700
- }),
3701
- refund_create: (e, t = {}) => this.request({
3702
- path: "/payment/v1/refund",
3703
- method: "POST",
3704
- body: e,
3705
- type: F.UrlEncoded,
3706
- ...t
3707
- }),
3708
- package_purchase_create: (e, t = {}) => this.request({
3709
- path: "/payment/v1/package_purchase",
3710
- method: "POST",
3711
- body: e,
3712
- type: F.UrlEncoded,
3713
- ...t
3714
- })
3715
- };
3716
- counters = {
3717
- get_counters: (e, t = {}) => this.request({
3718
- path: "/counters/v1",
3719
- method: "GET",
3720
- query: e,
3721
- ...t
3722
- }),
3723
- increment_counter_partial_update: (e = {}) => this.request({
3724
- path: "/counters/v1/increment_counter",
3725
- method: "PATCH",
3726
- ...e
3727
- })
3728
- };
3729
- users = {
3730
- get_users: (e, t = {}) => this.request({
3731
- path: "/users/v1",
3732
- method: "GET",
3733
- query: e,
3734
- ...t
3735
- }),
3736
- is_paying_user_list: (e = {}) => this.request({
3737
- path: "/users/v1/is_paying_user",
3738
- method: "GET",
3739
- ...e
3740
- })
3741
- };
3742
- wpOpenapi = {
3743
- wp_openapi_list: (e, t = {}) => this.request({
3744
- path: "/wp-openapi",
3745
- method: "GET",
3746
- query: e,
3747
- ...t
3748
- }),
3749
- stoplight_ui_list: (e = {}) => this.request({
3750
- path: "/wp-openapi/stoplight-ui",
3751
- method: "GET",
3752
- ...e
3753
- }),
3754
- get_wp_openapi: (e, t = {}) => this.request({
3755
- path: "/wp-openapi/v1",
3756
- method: "GET",
3757
- query: e,
3758
- ...t
3759
- }),
3760
- schema_list: (e, t = {}) => this.request({
3761
- path: "/wp-openapi/v1/schema",
3762
- method: "GET",
3763
- query: e,
3764
- ...t
3765
- })
3766
- };
3767
- email = {
3768
- get_email: (e, t = {}) => this.request({
3769
- path: "/email/v2",
3770
- method: "GET",
3771
- query: e,
3772
- ...t
3773
- }),
3774
- templates_list: (e, t = {}) => this.request({
3775
- path: "/email/v2/templates",
3776
- method: "GET",
3777
- query: e,
3778
- ...t
3779
- }),
3780
- html_list: (e, t = {}) => this.request({
3781
- path: "/email/v2/html",
3782
- method: "GET",
3783
- query: e,
3784
- ...t
3785
- }),
3786
- copy_create: (e, t = {}) => this.request({
3787
- path: "/email/v2/copy",
3788
- method: "POST",
3789
- body: e,
3790
- type: F.UrlEncoded,
3791
- ...t
3792
- })
3793
- };
3794
- subscription = {
3795
- get_subscription: (e, t = {}) => this.request({
3796
- path: "/subscription/v2",
3797
- method: "GET",
3798
- query: e,
3799
- ...t
3800
- }),
3801
- activate_trial_list: (e = {}) => this.request({
3802
- path: "/subscription/v2/activate_trial",
3803
- method: "GET",
3804
- ...e
3805
- }),
3806
- me_list: (e = {}) => this.request({
3807
- path: "/subscription/v2/me",
3808
- method: "GET",
3809
- ...e
3810
- })
3811
- };
3812
- app = {
3813
- get_app: (e, t = {}) => this.request({
3814
- path: "/app/v1",
3815
- method: "GET",
3816
- query: e,
3817
- ...t
3818
- }),
3819
- app_init_create: (e, t = {}) => this.request({
3820
- path: "/app/v1/app_init",
3821
- method: "POST",
3822
- body: e,
3823
- type: F.UrlEncoded,
3824
- ...t
3825
- })
3826
- };
3827
- jwtAuth = {
3828
- get_jwt_auth: (e, t = {}) => this.request({
3829
- path: "/jwt-auth/v1",
3830
- method: "GET",
3831
- query: e,
3832
- ...t
3833
- }),
3834
- token_create: (e = {}) => this.request({
3835
- path: "/jwt-auth/v1/token",
3836
- method: "POST",
3837
- ...e
3838
- }),
3839
- token_validate_create: (e = {}) => this.request({
3840
- path: "/jwt-auth/v1/token/validate",
3841
- method: "POST",
3842
- ...e
3843
- })
3844
- };
3845
- translations = {
3846
- translations_list: (e, t = {}) => this.request({
3847
- path: "/translations",
3848
- method: "GET",
3849
- query: e,
3850
- ...t
3851
- }),
3852
- post_translations: (e = {}) => this.request({
3853
- path: "/translations/v1",
3854
- method: "POST",
3855
- ...e
3856
- }),
3857
- get_translations: (e, t = {}) => this.request({
3858
- path: "/translations/v1",
3859
- method: "GET",
3860
- query: e,
3861
- ...t
3862
- }),
3863
- get_translations2: ({ file: e, ...t }, n = {}) => this.request({
3864
- path: `/translations/v1/${e}`,
3865
- method: "GET",
3866
- ...n
3867
- }),
3868
- get_translations3: ({ id: e, file: t, ...n }, r = {}) => this.request({
3869
- path: `/translations/v1/${t}/${e}`,
3870
- method: "GET",
3871
- ...r
3872
- })
3873
- };
3874
- prmonline = {
3875
- get_prmonline: (e, t = {}) => this.request({
3876
- path: "/prmonline/v1",
3877
- method: "GET",
3878
- query: e,
3879
- ...t
3880
- }),
3881
- save_ref_create: (e = {}) => this.request({
3882
- path: "/prmonline/v1/save-ref",
3883
- method: "POST",
3884
- ...e
3885
- }),
3886
- track_list: (e = {}) => this.request({
3887
- path: "/prmonline/v1/track",
3888
- method: "GET",
3889
- ...e
3890
- }),
3891
- track_create: (e = {}) => this.request({
3892
- path: "/prmonline/v1/track",
3893
- method: "POST",
3894
- ...e
3895
- })
3896
- };
3897
- wpMailSmtp = {
3898
- get_wp_mail_smtp: (e, t = {}) => this.request({
3899
- path: "/wp-mail-smtp/v1",
3900
- method: "GET",
3901
- query: e,
3902
- ...t
3903
- }),
3904
- e_detail: ({ data: e, ...t }, n = {}) => this.request({
3905
- path: `/wp-mail-smtp/v1/e/${e}`,
3906
- method: "GET",
3907
- ...n
3908
- })
3909
- };
3910
- wpSiteHealth = {
3911
- get_wp_site_health: (e, t = {}) => this.request({
3912
- path: "/wp-site-health/v1",
3913
- method: "GET",
3914
- query: e,
3915
- ...t
3916
- }),
3917
- tests_background_updates_list: (e = {}) => this.request({
3918
- path: "/wp-site-health/v1/tests/background-updates",
3919
- method: "GET",
3920
- format: "json",
3921
- ...e
3922
- }),
3923
- tests_loopback_requests_list: (e = {}) => this.request({
3924
- path: "/wp-site-health/v1/tests/loopback-requests",
3925
- method: "GET",
3926
- format: "json",
3927
- ...e
3928
- }),
3929
- tests_https_status_list: (e = {}) => this.request({
3930
- path: "/wp-site-health/v1/tests/https-status",
3931
- method: "GET",
3932
- format: "json",
3933
- ...e
3934
- }),
3935
- tests_dotorg_communication_list: (e = {}) => this.request({
3936
- path: "/wp-site-health/v1/tests/dotorg-communication",
3937
- method: "GET",
3938
- format: "json",
3939
- ...e
3940
- }),
3941
- tests_authorization_header_list: (e = {}) => this.request({
3942
- path: "/wp-site-health/v1/tests/authorization-header",
3943
- method: "GET",
3944
- format: "json",
3945
- ...e
3946
- }),
3947
- directory_sizes_list: (e = {}) => this.request({
3948
- path: "/wp-site-health/v1/directory-sizes",
3949
- method: "GET",
3950
- ...e
3951
- }),
3952
- tests_page_cache_list: (e = {}) => this.request({
3953
- path: "/wp-site-health/v1/tests/page-cache",
3954
- method: "GET",
3955
- ...e
3956
- })
3957
- };
3958
- wpBlockEditor = {
3959
- get_wp_block_editor: (e, t = {}) => this.request({
3960
- path: "/wp-block-editor/v1",
3961
- method: "GET",
3962
- query: e,
3963
- ...t
3964
- }),
3965
- url_details_list: (e, t = {}) => this.request({
3966
- path: "/wp-block-editor/v1/url-details",
3967
- method: "GET",
3968
- query: e,
3969
- ...t
3970
- }),
3971
- export_list: (e = {}) => this.request({
3972
- path: "/wp-block-editor/v1/export",
3973
- method: "GET",
3974
- ...e
3975
- }),
3976
- navigation_fallback_list: (e = {}) => this.request({
3977
- path: "/wp-block-editor/v1/navigation-fallback",
3978
- method: "GET",
3979
- format: "json",
3980
- ...e
3981
- })
3982
- };
3983
- wpAbilities = {
3984
- get_wp_abilities: (e, t = {}) => this.request({
3985
- path: "/wp-abilities/v1",
3986
- method: "GET",
3987
- query: e,
3988
- ...t
3989
- }),
3990
- categories_list: (e, t = {}) => this.request({
3991
- path: "/wp-abilities/v1/categories",
3992
- method: "GET",
3993
- query: e,
3994
- format: "json",
3995
- ...t
3996
- }),
3997
- categories_detail: ({ slug: e, ...t }, n = {}) => this.request({
3998
- path: `/wp-abilities/v1/categories/${e}`,
3999
- method: "GET",
4000
- format: "json",
4001
- ...n
4002
- }),
4003
- abilities_run_list: ({ name: e, ...t }, n = {}) => this.request({
4004
- path: `/wp-abilities/v1/abilities/${e}/run`,
4005
- method: "GET",
4006
- query: t,
4007
- format: "json",
4008
- ...n
4009
- }),
4010
- abilities_run_create: ({ name: e, ...t }, n, r = {}) => this.request({
4011
- path: `/wp-abilities/v1/abilities/${e}/run`,
4012
- method: "POST",
4013
- body: n,
4014
- type: F.UrlEncoded,
4015
- format: "json",
4016
- ...r
4017
- }),
4018
- abilities_run_update: ({ name: e, ...t }, n, r = {}) => this.request({
4019
- path: `/wp-abilities/v1/abilities/${e}/run`,
4020
- method: "PUT",
4021
- body: n,
4022
- type: F.UrlEncoded,
4023
- format: "json",
4024
- ...r
4025
- }),
4026
- abilities_run_partial_update: ({ name: e, ...t }, n, r = {}) => this.request({
4027
- path: `/wp-abilities/v1/abilities/${e}/run`,
4028
- method: "PATCH",
4029
- body: n,
4030
- type: F.UrlEncoded,
4031
- format: "json",
4032
- ...r
4033
- }),
4034
- abilities_run_delete: ({ name: e, ...t }, n, r = {}) => this.request({
4035
- path: `/wp-abilities/v1/abilities/${e}/run`,
4036
- method: "DELETE",
4037
- body: n,
4038
- type: F.UrlEncoded,
4039
- format: "json",
4040
- ...r
4041
- }),
4042
- abilities_list: (e, t = {}) => this.request({
4043
- path: "/wp-abilities/v1/abilities",
4044
- method: "GET",
4045
- query: e,
4046
- format: "json",
4047
- ...t
4048
- }),
4049
- abilities_detail: ({ name: e, ...t }, n = {}) => this.request({
4050
- path: `/wp-abilities/v1/abilities/${e}`,
4051
- method: "GET",
4052
- format: "json",
4053
- ...n
4054
- })
4055
- };
4056
- }, Ne = (/* @__PURE__ */ r(((e) => {
4057
- var t = window.__emailmaker__.modules.Core;
4058
- Object.keys(t).forEach(function(n) {
4059
- n !== "default" && n !== "__esModule" && (e[n] = t[n]);
4060
- }), e.__esModule = !0, e.default = t.default === void 0 ? t : t.default;
4061
- })))();
4062
- function I(e = (0, Ne.generateUUID)()) {
4063
- return e;
4064
- }
4065
- //#endregion
4066
- //#region src/helpers/di/container.ts
4067
- var L = /* @__PURE__ */ t({});
4068
- e(L, /* @__PURE__ */ n(s()));
4069
- //#endregion
4070
- //#region src/helpers/di/utils.ts
4071
- var R = "INJECTION";
4072
- function z(e) {
4073
- return e.getState;
4074
- }
4075
- function B(e) {
4076
- if (z(e)) {
4077
- let t = e.getState()[R];
4078
- return t && L.DependencyResolver.getInstance(t);
4079
- } else return e;
4080
- }
4081
- //#endregion
4082
- //#region src/helpers/restApi.ts
4083
- var Pe = (e) => {
4084
- let t = new FormData(), n = (e, t, r) => {
4085
- if (t != null) {
4086
- if (t instanceof Blob) {
4087
- e.append(r, t);
4088
- return;
4089
- }
4090
- if (Array.isArray(t)) {
4091
- t.forEach((t, i) => {
4092
- n(e, t, r ? `${r}[${i}]` : `${i}`);
4093
- });
4094
- return;
4095
- }
4096
- if (typeof t == "object") {
4097
- Object.keys(t).forEach((i) => {
4098
- let a = t[i];
4099
- n(e, a, r ? `${r}[${i}]` : i);
4100
- });
4101
- return;
4102
- }
4103
- e.append(r, String(t));
4104
- }
4105
- };
4106
- return n(t, e), t;
4107
- };
4108
- function V(e) {
4109
- for (; e.endsWith("/");) e = e.slice(0, e.length - 1);
4110
- return `${e}/wp-json`;
4111
- }
4112
- var H = {
4113
- baseUrl: "https://app.emailmaker.ru/api//wp-json",
4114
- baseApiParams: {
4115
- secure: !0,
4116
- credentials: "same-origin",
4117
- format: "json"
4118
- },
4119
- securityWorker: () => ({ credentials: "same-origin" })
4120
- };
4121
- H.baseUrl = V("https://app.emailmaker.ru/api/");
4122
- function Fe(e = H) {
4123
- let t = /* @__PURE__ */ new Map();
4124
- return {
4125
- create(n) {
4126
- let r = new Me({
4127
- ...e,
4128
- ...n
4129
- });
4130
- return r.contentFormatters["multipart/form-data"] = Pe, t.set(r, n), r;
4131
- },
4132
- getOptions() {
4133
- return e;
4134
- },
4135
- setOptions(n) {
4136
- e = n;
4137
- for (let [n, r] of t) Object.assign(n, {
4138
- ...e,
4139
- ...r
4140
- });
4141
- }
4142
- };
4143
- }
4144
- var U = I();
4145
- function Ie(e) {
4146
- return e.getOrCreateInstance(U, () => Fe());
4147
- }
4148
- function W(e, t = {}) {
4149
- return e = z(e) ? B(e) : e, Ie(e).create(t);
4150
- }
4151
- var G = I(), Le = I(), K = I(), Re = (e) => {
4152
- e.inject(K, { execute: async (t, n = {}) => {
4153
- let r = e.getServices(G), i = new Request(t, n);
4154
- for (let e of r) await e.execute(i);
4155
- let a = await fetch(i), o = e.getServices(Le);
4156
- for (let e of o) a = await e.execute(a);
4157
- return a;
4158
- } });
4159
- }, ze = (e) => {
4160
- Re(e);
4161
- let t = e.getInstance(K);
4162
- e.inject(d, W(e, { customFetch: t?.execute || fetch }));
4163
- }, q;
4164
- (function(e) {
4165
- let t = "https://racs.emcdn.ru/v3";
4166
- function n(e, n) {
4167
- let r = {
4168
- method: "POST",
4169
- headers: {
4170
- "Content-Type": "application/json",
4171
- Accept: "application/json"
4172
- },
4173
- body: JSON.stringify(n)
4174
- };
4175
- return fetch(`${t}?resource=${e}&dataset=${document.location.hostname}`, r);
4176
- }
4177
- e.post = n;
4178
- async function r(e, n = 0) {
4179
- let r = {
4180
- method: "POST",
4181
- headers: {
4182
- "Content-Type": "application/json",
4183
- Accept: "application/json"
4184
- },
4185
- body: `{"filter":{},"limit":${n}}`
4186
- };
4187
- return await (await fetch(`${t}/get?resource=${e}&dataset=${document.location.hostname}`, r)).json();
4188
- }
4189
- e.getAll = r;
4190
- })(q ||= {});
4191
- //#endregion
4192
- //#region src/plugin/utils/queue.ts
4193
- var J = (e) => {
4194
- let t = {
4195
- current: Promise.resolve(),
4196
- state: e,
4197
- decorate: (e, n) => (n && (e = e.bind(n)), function(...n) {
4198
- let r = t.current.then(() => e(...n));
4199
- return t.current = r.then((e) => {
4200
- t.state = e;
4201
- }, (e) => {}), r;
4202
- })
4203
- };
4204
- return t;
4205
- }, Y = "ERROR", Be = { isPlugin: !0 }, Ve = { isEditor: !1 }, He = {
4206
- em_token: "em_token",
4207
- em_elements_view: "em_elements_view",
4208
- em_new_block: "em_new_block",
4209
- em_new_email: "em_new_email",
4210
- em_id: "em_id",
4211
- em_name: "em_name",
4212
- em_email: "em_email",
4213
- em_locale: "em_locale",
4214
- em_carrotquest_hash: "em_carrotquest_hash",
4215
- em_ducalis_hash: "em_ducalis_hash",
4216
- em_email_subscription_consent: "em_email_subscription_consent",
4217
- em_folder: "em_folder",
4218
- promocode: "promocode",
4219
- em_active_tab: "em_active_tab"
4220
- }, Ue = {
4221
- em_color_scheme: "em_color_scheme",
4222
- em_code_mode_pane_sizes: "em_code_mode_pane_sizes",
4223
- em_preview_pane_sizes: "em_preview_pane_sizes",
4224
- em_default_sizes: "em_default_sizes",
4225
- em_pane_sizes: "em_pane_sizes",
4226
- em_test_emails: "em_test_emails",
4227
- em_menu_is_locked: "em_menu_is_locked",
4228
- em_code_mode_settings: "em_code_mode_settings",
4229
- em_folder_is_open: "em_folder_is_open",
4230
- em_active_tab: "em_active_tab",
4231
- em_ai_settings: "em_ai_settings",
4232
- em_last_active_page: "em_last_active_page"
4233
- }, We = "deleted", Ge = "not all", Ke = "light", qe = "dark", Je = "system", Ye = "(prefers-color-scheme: light)", Xe = "(prefers-color-scheme: dark)", Ze = {
4234
- ADD_NEW_PROJECT_MODAL: "ADD_NEW_PROJECT_MODAL",
4235
- EDIT_PROJECT_MODAL: "EDIT_PROJECT_MODAL",
4236
- BLOCKS_MODAL: "BLOCKS_MODAL",
4237
- EDIT_PROFILE_MODAL: "EDIT_PROFILE_MODAL",
4238
- SEND_TEST_EMAIL: "SEND_TEST_EMAIL",
4239
- ADD_NEW_EBLOCK_MODAL: "ADD_NEW_EBLOCK_MODAL",
4240
- ADD_NEW_EMAIL_MODAL: "ADD_NEW_EMAIL_MODAL",
4241
- ADD_NEW_AI_EMAIL: "ADD_NEW_AI_EMAIL",
4242
- SWITCH_TO_PLAN_MODAL: "SWITCH_TO_PLAN_MODAL",
4243
- IMAGE_EDITOR_MODAL: "IMAGE_EDITOR_MODAL",
4244
- ADD_NEW_FOLDER_MODAL: "ADD_NEW_FOLDER_MODAL",
4245
- EDIT_FOLDER_NAME_MODAL: "EDIT_FOLDER_NAME_MODAL",
4246
- ADD_NEW_GROUP_MODAL: "ADD_NEW_GROUP_MODAL",
4247
- EDIT_GROUP_NAME_MODAL: "EDIT_GROUP_NAME_MODAL",
4248
- RENAME_EMAIL_MODAL: "RENAME_EMAIL_MODAL",
4249
- RENAME_BLOCK_MODAL: "RENAME_BLOCK_MODAL",
4250
- UPLOAD_IMAGE_MODAL: "UPLOAD_IMAGE_MODAL",
4251
- UPLOAD_BACKGROUND_MODAL: "UPLOAD_BACKGROUND_MODAL",
4252
- UPLOAD_IMAGE_MODAL_AI: "UPLOAD_IMAGE_MODAL_AI",
4253
- UPLOAD_BACKGROUND_MODAL_AI: "UPLOAD_BACKGROUND_MODAL_AI",
4254
- UPLOAD_IMAGE_MODAL_STOCK: "UPLOAD_IMAGE_MODAL_STOCK",
4255
- UPLOAD_BACKGROUND_MODAL_STOCK: "UPLOAD_BACKGROUND_MODAL_STOCK",
4256
- UPLOAD_IMAGE_MODAL_GIF: "UPLOAD_IMAGE_MODAL_GIF",
4257
- UPLOAD_BACKGROUND_MODAL_GIF: "UPLOAD_BACKGROUND_MODAL_GIF",
4258
- UPLOAD_IMAGE_MODAL_EDIT: "UPLOAD_IMAGE_MODAL_EDIT",
4259
- UPLOAD_BACKGROUND_MODAL_EDIT: "UPLOAD_BACKGROUND_MODAL_EDIT",
4260
- UPLOAD_IMAGE_MODAL_UPLOAD: "UPLOAD_IMAGE_MODAL_UPLOAD",
4261
- UPLOAD_BACKGROUND_MODAL_UPLOAD: "UPLOAD_BACKGROUND_MODAL_UPLOAD"
4262
- }, Qe = {
4263
- MESSAGE: "message",
4264
- INIT_PREVIEW: "init_preview",
4265
- UPDATE_PREVIEW: "update_preview",
4266
- UPDATE_EDITOR: "update_editor",
4267
- UPDATE_EDITOR_POSITION: "update_editor_position",
4268
- UPDATE_SIDE_MENU_EDITOR: "update_side_menu_editor",
4269
- SAVE_EMAIL: "saveEmail",
4270
- SANDBOX_ELEMENT_SETTINGS_SET: "sandbox_element_settings_set",
4271
- SANDBOX_EMAIL_SETTINGS_SET: "sandbox_email_settings_set",
4272
- SANDBOX_BLOCK_SETTINGS_SET: "sandbox_block_settings_set",
4273
- SANDBOX_ELEMENT_PARENT_GET: "sandbox_element_parent_get",
4274
- SANDBOX_ELEMENT_PARENT_TABLE_GET: "sandbox_element_parent_table_get",
4275
- SANDBOX_ELEMENT_PREV_GET: "sandbox_element_prev_get",
4276
- SANDBOX_ELEMENT_NEXT_GET: "sandbox_element_next_get",
4277
- SANDBOX_ELEMENT_REMOVE: "sandbox_element_remove",
4278
- SANDBOX_ELEMENT_ACTIVE_RESET: "sandbox_element_active_reset",
4279
- SANDBOX_ELEMENT_ACTIVE_SET: "sandbox_element_active_set",
4280
- SANDBOX_ELEMENT_HOVER_SET: "sandbox_element_hover_set",
4281
- SANDBOX_ELEMENT_IMG_LINK: "sandbox_element_img_link",
4282
- SANDBOX_ELEMENT_TEXT: "sandbox_element_text",
4283
- SANDBOX_EMAIL_CONTENT_GET: "sandbox_email_content_get",
4284
- SANDBOX_SET_POSITION_TO_IMG: "sandbox_set_position_to_img",
4285
- SANDBOX_SET_POSITION_TO_LINK: "sandbox_set_position_to_link",
4286
- SANDBOX_ACCORDION_ADD_SECTION: "sandbox_accordion_add_section",
4287
- SANDBOX_ACCORDION_REMOVE_SECTION: "sandbox_accordion_remove_section",
4288
- APPLICATION_FOCUS_IN_IFRAME: "application_focus_in_iframe",
4289
- APPLICATION_EMAIL_SETTINGS_SET: "application_email_settings_set",
4290
- APPLICATION_BLOCK_SETTINGS_SET: "application_block_settings_set",
4291
- APPLICATION_ELEMENT_SETTINGS_SET: "application_element_settings_set",
4292
- _APPLICATION_ELEMENT_SETTINGS_SET: D("application_element_settings_set"),
4293
- APPLICATION_ELEMENT_SETTINGS_CLOSE: "application_element_settings_close",
4294
- APPLICATION_ACTION: "application_action",
4295
- APPLICATION_EBLOCK_ADD: "application_eblock_add",
4296
- APPLICATION_SCROLL_TO: "application_scroll-to",
4297
- APPLICATION_SCROLL_BLOCK_SHOW: "application_scroll-block-show",
4298
- APPLICATION_SCROLL_BLOCK_HIDE: "application_scroll-block-hide",
4299
- APPLICATION_DISCUSS_SET_ID: "application_discuss_set_id",
4300
- APPLICATION_DISCUSS_GET_COMMENT: "application_discuss_get_comment",
4301
- APPLICATION_DISCUSS_NO_COMMENT: "application_discuss_no_comment",
4302
- APPLICATION_DISCUSS_SAVE_TARGET: "application_discuss_save_target",
4303
- APPLICATION_IFRAME_SET_HEIGHT: "application_iframe_set_height",
4304
- APPLICATION_COMMON_STYLES_UPDATE: "application_commonStyles_update",
4305
- APPLICATION_EMAIL_CONTENT_GET: "application_email_content_get",
4306
- APPLICATION_OPEN_IMAGE_AI_POPUP: "application_open-image-ai-popup",
4307
- APPLICATION_OPEN_IMAGE_UPLOAD_POPUP: "application_open-image-upload-popup",
4308
- APPLICATION_OPEN_IMAGE_EDIT_POPUP: "application_open-image-edit-popup",
4309
- APPLICATION_OPEN_IMAGE_GIF_POPUP: "application_open-image-gif-popup",
4310
- APPLICATION_OPEN_IMAGE_STOCK_POPUP: "application_open-image-stock-popup",
4311
- APPLICATION_CLOSE_IMAGE_EDIT_POPUP: "application_close-image-edit-popup",
4312
- APPLICATION_SUBJECT_UPDATE: D("application_subject_update"),
4313
- APPLICATION_PREHEADER_UPDATE: D("application_preheader_update"),
4314
- APPLICATION_DOMPARSER_ERROR: D("application_domparser_error"),
4315
- APPLICATION_UPDATE_ENTITY: D("application_update_entity"),
4316
- APPLICATION_IFRAME_DRAG_EVENT: D("application_iframe_drag_event"),
4317
- APPLICATION_HAS_AMP: D("application_has_amp"),
4318
- APPLICATION_PREVIEW_ALERT_SHOW: "application_preview_alert_show",
4319
- APPLICATION_ATOM_INSERTED: D("application_atom_inserted"),
4320
- APPLICATION_TEMPLATE_NOT_EM_ALERT_SHOW: "application_template_not_em_alert_show",
4321
- SANDBOX_WINDOW_CHARACTERISTIC: "sandbox_window-characteristic",
4322
- SANDBOX_IFRAME_SETSIZE: "sandbox_iframe-setsize",
4323
- SANDBOX_BLOCK_INSERT: "sandbox_block-insert",
4324
- SANDBOX_ATOM_INSERT: "sandbox_atom-insert",
4325
- SANDBOX_DRAG_CANCEL: "sandbox_drag-cancel",
4326
- UPDATE_EDITOR_POSITION_FROM_EDITOR: "update_position_from_editor",
4327
- UPDATE_EDITOR_POSITION_FROM_IFRAME: "update_position_from_iframe",
4328
- SANDBOX_CHANGE_PREVIEW: "sandbox_change_preview",
4329
- APPLICATION_CHANGE_PREVIEW: "application_change_preview",
4330
- SANDBOX_LOCK_EDIT: "sandbox_lock_edit",
4331
- SANDBOX_FLOATBLOCK_ADD: "sandbox_floatBlock_add",
4332
- SANDBOX_FLOATBLOCK_REMOVE: "sandbox_floatBlock_remove",
4333
- EDITOR_CHANGE_FOCUS: "editor_change_focus",
4334
- SANDBOX_RESIZED: "sandbox_resized",
4335
- SANDBOX_LOCK_DISCUSS: "sandbox_lock_discuss",
4336
- SANDBOX_DISCUSS_SET_TARGET: "sandbox_discuss_set_target",
4337
- SANDBOX_DISCUSS_REMOVE_TARGET: "sandbox_discuss_remove_target",
4338
- SANDBOX_DISCUSS_RESET: "sandbox_discuss_reset",
4339
- SANDBOX_DISCUSS_GET_TARGET: "sandbox_discuss_get_target",
4340
- SANDBOX_READY: D("SANDBOX_READY"),
4341
- SANDBOX_FLOATBLOCK_WRAP: "sandbox_floatblock_wrap",
4342
- SANDBOX_FLOATBLOCK_DIR: "sandbox_floatblock_dir",
4343
- SANDBOX_SUBJECT_UPDATE: D("sandbox_subject_update"),
4344
- SANDBOX_PREHEADER_UPDATE: D("sandbox_preheader_update"),
4345
- SANDBOX_DRAG_EVENT: D("sandbox_drag_event"),
4346
- SANDBOX_ADD_MERGETAG: D("sandbox_add_mergetag"),
4347
- SANDBOX_TRANSLATIONS: D("sandbox_send_translations"),
4348
- SANDBOX_SET_THEME_VARIABLES: D("sandbox_send_theme_variables"),
4349
- SANDBOX_SET_ENTITY: D("sandbox_set_entity"),
4350
- SANDBOX_INIT_START: D("sandbox_init_start"),
4351
- SANDBOX_INITED: D("sandbox_inited"),
4352
- SANDBOX_UPDATE_ENTITY: D("sandbox_update_entity"),
4353
- RELOAD: D("reload"),
4354
- SANDBOX_ADD_EXTENSIONS: D("sandbox_add_extensions"),
4355
- SANDBOX_REMOVE_EXTENSIONS: D("sandbox_remove_extensions"),
4356
- SANDBOX_ADD_SCRIPT: D("sandbox_add_script"),
4357
- SANDBOX_IS_EMAIL_EMPTY: D("sandbox_is_email_empty")
4358
- }, $e = {
4359
- language: "html",
4360
- detectIndentation: !1,
4361
- wordWrap: "on",
4362
- wrappingIndent: "same",
4363
- smoothScrolling: !0,
4364
- automaticLayout: !0,
4365
- tabSize: 2,
4366
- indentSize: 2
4367
- }, et = /* @__PURE__ */ function(e) {
4368
- return e.IMG = "img", e.TEXT = "text", e.LINK = "a", e.TABLE = "table", e.VINDENT = "vindent", e.TD = "td", e.STRUCTURE = "structure", e.GROUP = "group", e.BUTTON = "button", e.DIV = "div", e.FLOAT_BLOCK = "floatBlock", e.VAR = "var", e.EMPTY_TABLE = "emptyTable", e.EMPTY_TD = "emptyTd", e.COUNTDOWN = "countdown", e.VIDEO = "video", e.COLUMN = "column", e.CAROUSEL = "carousel", e.ACCORDION = "accordion", e.CUSTOM_TABLE = "customTable", e;
4369
- }({}), tt = {
4370
- ALL: "All",
4371
- STANDARD: "Standard",
4372
- PROJECT: "Project"
4373
- }, nt = "Appearance", rt = "Structure", it = "Settings", at = "Properties", ot = "History", st = "Disabled_tab", ct = "Edit selected element", lt = "UTM parameters", ut = "Table properties", dt = "Edit selected table cells", ft = "#b9b1b1", pt = "Edit", mt = "AiChat", ht = "Build", gt = "Styles", _t = "Discuss", vt = "Blocks", yt = "Atoms", bt = "Optimise", xt = {
4374
- top: {
4375
- width: null,
4376
- style: null,
4377
- color: null
4378
- },
4379
- right: {
4380
- width: null,
4381
- style: null,
4382
- color: null
4383
- },
4384
- bottom: {
4385
- width: null,
4386
- style: null,
4387
- color: null
4388
- },
4389
- left: {
4390
- width: null,
4391
- style: null,
4392
- color: null
4393
- },
4394
- all: {
4395
- width: null,
4396
- style: null,
4397
- color: null
4398
- }
4399
- }, St = "block", Ct = "email", wt = "cards", Tt = "list", Et = "pending", Dt = "d41d8", Ot = "valid", kt = "warnings", At = "errors", jt = {
4400
- LINKS: "Links",
4401
- IMAGES: "Images",
4402
- SPAM_ASSASSIN: "Spam assassin",
4403
- PROBLEMS: "Problems"
4404
- }, Mt = "1865", Nt = 127017, Pt = "desktop", Ft = "mobile", It = "emailtags", Lt = "blocktags", Rt = {
4405
- text: {
4406
- fontFamily: ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],
4407
- fontSize: 16,
4408
- fontSizeDim: "px",
4409
- lineHeight: 21,
4410
- lineHeightDim: "px",
4411
- color: "#5a5a5a",
4412
- contrastColor: "#FFFFFF",
4413
- textAlign: "left",
4414
- paddingBottom: 10,
4415
- paddingBottomDim: "px"
4416
- },
4417
- headings: {
4418
- fontFamily: ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],
4419
- fontSize: 24,
4420
- fontSizeDim: "px",
4421
- lineHeight: 32,
4422
- lineHeightDim: "px",
4423
- color: "#333333",
4424
- contrastColor: "#FFFFFF",
4425
- textAlign: "left",
4426
- paddingTop: 20,
4427
- paddingTopDim: "px",
4428
- paddingBottom: 20,
4429
- paddingBottomDim: "px",
4430
- letterSpacing: 0,
4431
- letterSpacingDim: "px",
4432
- bold: !0,
4433
- italic: !1
4434
- },
4435
- links: {
4436
- color: "#1C52DC",
4437
- contrastColor: "#FFFFFF",
4438
- underline: !0
4439
- },
4440
- buttons: {
4441
- fontFamily: ["Safe Fonts", "-apple-system, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif"],
4442
- fontSize: 16,
4443
- fontSizeDim: "px",
4444
- letterSpacing: 0,
4445
- letterSpacingDim: "px",
4446
- color: "#FFFFFF",
4447
- contrastColor: "#1C52DC",
4448
- bold: !1,
4449
- italic: !1,
4450
- backgroundColor: "#1C52DC",
4451
- contrastBackgroundColor: "#FFFFFF",
4452
- marginTop: 10,
4453
- marginTopDim: "px",
4454
- marginBottom: 10,
4455
- marginBottomDim: "px",
4456
- border: {
4457
- all: null,
4458
- top: null,
4459
- right: null,
4460
- bottom: null,
4461
- left: null
4462
- },
4463
- borderRadius: {
4464
- all: 5,
4465
- topLeft: null,
4466
- topRight: null,
4467
- bottomRight: null,
4468
- bottomLeft: null
4469
- },
4470
- textAlign: "center",
4471
- padding: {
4472
- all: null,
4473
- top: null,
4474
- right: null,
4475
- bottom: null,
4476
- left: null
4477
- }
4478
- },
4479
- block: {
4480
- backgroundColor: "#FFFFFF",
4481
- contrastBackgroundColor: "#1C52DC",
4482
- padding: {
4483
- all: null,
4484
- top: null,
4485
- right: null,
4486
- bottom: null,
4487
- left: null
4488
- }
4489
- },
4490
- cards: {
4491
- contrastBackgroundColor: "#1C52DC",
4492
- contrastTextColor: "#FFFFFF",
4493
- baseBackgroundColor: "#F8F8F8",
4494
- baseTextColor: "#333333",
4495
- border: {
4496
- all: null,
4497
- top: null,
4498
- right: null,
4499
- bottom: null,
4500
- left: null
4501
- },
4502
- borderRadius: {
4503
- all: 10,
4504
- topLeft: null,
4505
- topRight: null,
4506
- bottomRight: null,
4507
- bottomLeft: null
4508
- }
4509
- }
4510
- }, zt = (e) => ({
4511
- REORDER_ATOM: e("Reorder element"),
4512
- CLONE_ATOM: e("Clone element"),
4513
- REMOVE_ATOM: e("Remove element"),
4514
- EDIT_ATOM: e("Edit element"),
4515
- CHANGE_IMAGE: e("Change image"),
4516
- REORDER_BLOCK: e("Reorder block"),
4517
- REORDER_BLOCK_UP: e("Move up"),
4518
- REORDER_BLOCK_DOWN: e("Move down"),
4519
- EDIT_BLOCK: e("Edit block"),
4520
- CLONE_BLOCK: e("Clone block"),
4521
- MERGE_BLOCK: e("Merge with the chosen block"),
4522
- UNMERGE_BLOCK: e("Split blocks"),
4523
- COPY_BLOCK_TO_CLIPBOARD: e("Copy block to clipboard"),
4524
- PASTE_BLOCK_FROM_CLIPBOARD: e("Paste block from clipboard"),
4525
- REMOVE_BLOCK: e("Remove block"),
4526
- SAVE_TO_BLOCKS: e("Save to Blocks"),
4527
- ADD_BLOCK: e("Add block"),
4528
- ADD_EMPTY_BLOCK: e("Add an empty block"),
4529
- ADD_SAVED_BLOCK: e("Add a saved block"),
4530
- ADD_COMMON_BLOCK: e("Add a common block"),
4531
- ADD_TEMPLATE_BLOCK: e("Add a template block"),
4532
- ADD_SEARCH_BLOCK: e("Search a block"),
4533
- REORDER_GROUP: e("Reorder group"),
4534
- EDIT_GROUP: e("Edit group"),
4535
- CLONE_GROUP: e("Clone group"),
4536
- REMOVE_GROUP: e("Remove group"),
4537
- ADD_GROUP: e("Add group"),
4538
- LINK: e("link"),
4539
- TABLE_COLUMN: e("cell"),
4540
- TABLE: e("table"),
4541
- FLOAT_BLOCK: e("column"),
4542
- CONTAINER: e("container"),
4543
- PICTURE: e("picture"),
4544
- CAROUSEL: e("carousel"),
4545
- ACCORDION: e("accordion"),
4546
- VERTICAL_INDENT: e("indent"),
4547
- TEXT: e("text"),
4548
- BUTTON: e("button"),
4549
- VAR: e("variable"),
4550
- STRUCTURE: e("block"),
4551
- EMAIL: e("email"),
4552
- GROUP: e("group"),
4553
- TYPOGRAF: e("Typograf"),
4554
- COUNTDOWN: e("countdown"),
4555
- ELEMENT: e("element"),
4556
- VIDEO: e("video"),
4557
- ELEMENT_PATH_LINK: e("Link"),
4558
- ELEMENT_PATH_BLOCK: e("Block"),
4559
- ELEMENT_PATH_ATOM: e("Element"),
4560
- ELEMENT_PATH_TD: e("Cell"),
4561
- ELEMENT_PATH_TABLE: e("Table"),
4562
- ELEMENT_PATH_FLOATBLOCK: e("Column"),
4563
- ELEMENT_PATH_TEXT: e("Text"),
4564
- ELEMENT_PATH_DIV: e("Container"),
4565
- ELEMENT_PATH_GROUP: e("Group"),
4566
- ELEMENT_PATH_EMAIL: e("Email"),
4567
- ELEMENT_PATH_IMG: e("Picture"),
4568
- ELEMENT_PATH_VINDENT: e("Indent"),
4569
- ELEMENT_PATH_BUTTON: e("Button"),
4570
- ELEMENT_PATH_CAROUSEL: e("Carousel"),
4571
- ELEMENT_PATH_ACCORDION: e("Accordion"),
4572
- ELEMENT_PATH_SECTION: e("Section"),
4573
- TINYMCE_CHANGECASE: e("Case Change"),
4574
- TINYMCE_UPPERCASE: e("Uppercase"),
4575
- TINYMCE_LOWERCASE: e("Lowercase"),
4576
- PASTE_HERE: e("Drop here"),
4577
- INSERT_COLUMN_BEFORE_TABLE: e("Insert column before"),
4578
- INSERT_COLUMN_AFTER_TABLE: e("Insert column after"),
4579
- INSERT_ROW_BEFORE_TABLE: e("Insert row before"),
4580
- INSERT_ROW_AFTER_TABLE: e("Insert row after"),
4581
- MERGE_RIGHT_CELL_TABLE: e("Merge right cell"),
4582
- MERGE_LEFT_CELL_TABLE: e("Merge left cell"),
4583
- MERGE_TOP_CELL_TABLE: e("Merge top cell"),
4584
- MERGE_BOTTOM_CELL_TABLE: e("Merge bottom cell"),
4585
- SPLIT_CELL_TABLE: e("Split cell"),
4586
- REMOVE_COLUMN_TABLE: e("Remove column"),
4587
- REMOVE_ROW_TABLE: e("Remove row"),
4588
- DROP_BLOCK_HINT: e("Click or drag a block")
4589
- }), Bt = {
4590
- Applications: "Apps",
4591
- Articles: "Article",
4592
- Banners: "Banners",
4593
- Buttons: "Buttons",
4594
- "Call to Action": "Call to Action",
4595
- Contacts: "Contacts",
4596
- Content: "Content",
4597
- "E-Commerce": "E-Commerce",
4598
- Feature: "Features",
4599
- Footer: "Footers",
4600
- Header: "Headers",
4601
- Lists: "Lists",
4602
- Menu: "Menus",
4603
- Other: "Others",
4604
- Polls: "Polls",
4605
- Promocodes: "Promocodes",
4606
- Separators: "Separators"
4607
- }, Vt = {
4608
- maker: "https://ai-mail.emcdn.ru",
4609
- blocks: "https://ai-mail.useblocks.io"
4610
- }, Ht = {
4611
- maker: "https://app.emailmaker.ru/api/".replace(/\/+$/, ""),
4612
- blocks: "https://app.useblocks.io/api"
4613
- }, Ut = "\n <svg width=\"176\" height=\"26\" viewBox=\"0 0 1011 140\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M439.573 130.401V5.63195H464.743V130.401H439.573Z\" fill=\"currentColor\"/>\n <path d=\"M389.906 130.401V42.8892H415.077V130.401H389.906ZM402.492 29.026C398.297 29.026 394.676 27.7264 391.63 25.127C388.585 22.4699 387.062 18.9464 387.062 14.5563C387.062 10.1086 388.585 6.58501 391.63 3.98566C394.676 1.32855 398.297 0 402.492 0C406.687 0 410.307 1.32855 413.353 3.98566C416.399 6.58501 417.922 10.1086 417.922 14.5563C417.922 18.9464 416.399 22.4699 413.353 25.127C410.307 27.7264 406.687 29.026 402.492 29.026Z\" fill=\"currentColor\"/>\n <path d=\"M313.564 133C305.232 133 297.79 131.065 291.238 127.195C284.687 123.267 279.515 117.808 275.722 110.819C271.987 103.83 270.119 95.7716 270.119 86.645C270.119 79.7712 271.182 73.5038 273.309 67.843C275.492 62.1822 278.538 57.3013 282.446 53.2001C286.354 49.0411 290.951 45.8641 296.238 43.6691C301.582 41.4164 307.358 40.29 313.564 40.29C321.84 40.29 328.822 42.0806 334.511 45.662C340.258 49.2433 344.453 53.9221 347.096 59.6984L343.562 65.1571V42.8893H365.457V130.401H343.562V108.133L347.096 113.592C344.453 119.368 340.258 124.047 334.511 127.628C328.822 131.209 321.84 133 313.564 133ZM317.616 111.079C321.983 111.079 325.891 110.097 329.339 108.133C332.787 106.111 335.488 103.281 337.442 99.6417C339.453 96.0026 340.459 91.6704 340.459 86.645C340.459 81.6196 339.453 77.2873 337.442 73.6483C335.488 70.0092 332.787 67.2076 329.339 65.2437C325.891 63.222 321.983 62.2111 317.616 62.2111C313.306 62.2111 309.427 63.222 305.979 65.2437C302.531 67.2076 299.801 70.0092 297.79 73.6483C295.836 77.2873 294.859 81.6196 294.859 86.645C294.859 91.6704 295.836 96.0026 297.79 99.6417C299.801 103.281 302.531 106.111 305.979 108.133C309.427 110.097 313.306 111.079 317.616 111.079Z\" fill=\"currentColor\"/>\n <path d=\"M109.755 130.401V42.8893H134.925V54.1532C137.109 51.0339 139.638 48.4635 142.511 46.4418C145.442 44.3623 148.545 42.8316 151.821 41.8496C155.154 40.8098 158.487 40.29 161.82 40.29C168.429 40.29 174.06 41.7918 178.715 44.7955C183.427 47.7414 186.674 51.6405 188.456 56.4926C192.134 50.7162 196.846 46.5862 202.593 44.1024C208.339 41.5608 214.345 40.29 220.609 40.29C228.941 40.29 235.521 41.9073 240.348 45.1421C245.176 48.3191 248.595 52.4491 250.606 57.5323C252.675 62.6155 253.709 67.9586 253.709 73.5616V130.401H228.539V80.8398C228.539 75.5833 227.131 71.3377 224.315 68.103C221.557 64.8682 217.477 63.2509 212.075 63.2509C208.684 63.2509 205.638 64.0018 202.937 65.5036C200.237 67.0055 198.11 69.0272 196.559 71.5688C195.064 74.0526 194.317 76.9119 194.317 80.1466V130.401H169.147V80.8398C169.147 75.5833 167.739 71.3377 164.923 68.103C162.107 64.8682 158.027 63.2509 152.683 63.2509C149.235 63.2509 146.16 64.0018 143.459 65.5036C140.816 67.0055 138.718 69.0272 137.167 71.5688C135.672 74.0526 134.925 76.9119 134.925 80.1466V130.401H109.755Z\" fill=\"currentColor\"/>\n <path d=\"M4 130.401V9.0978H86.4938V31.4522H29.5153V57.4456H77.7875V78.1538H29.5153V107.786H87.1834V130.401H4Z\" fill=\"currentColor\"/>\n <path d=\"M958.676 130.4V45.488H974.537V57.7916C977.928 52.2463 981.951 48.3762 986.605 46.1812C991.318 43.9284 996.317 42.8021 1001.6 42.8021C1003.27 42.8021 1004.88 42.8887 1006.43 43.062C1007.98 43.2353 1009.51 43.4663 1011 43.7551L1008.67 60.3043C1007.06 59.8422 1005.43 59.4956 1003.76 59.2646C1002.09 58.9758 1000.45 58.8314 998.846 58.8314C991.777 58.8314 985.944 61.0552 981.347 65.503C976.807 69.893 974.537 75.7849 974.537 83.1786V130.4H958.676Z\" fill=\"currentColor\"/>\n <path d=\"M899.208 132.999C890.244 132.999 882.342 131.122 875.503 127.367C868.665 123.613 863.32 118.385 859.47 111.685C855.62 104.926 853.695 97.0705 853.695 88.1172C853.695 81.6477 854.786 75.6403 856.97 70.095C859.211 64.5498 862.315 59.7554 866.28 55.712C870.302 51.6686 874.986 48.5205 880.331 46.2677C885.732 44.0149 891.594 42.8885 897.915 42.8885C904.754 42.8885 910.845 44.1016 916.19 46.5276C921.592 48.9537 926.045 52.3617 929.551 56.7517C933.114 61.084 935.671 66.196 937.223 72.0879C938.774 77.922 939.09 84.2759 938.171 91.1497H869.383C869.211 96.8105 870.36 101.778 872.831 106.053C875.302 110.269 878.865 113.562 883.52 115.93C888.232 118.298 893.806 119.483 900.243 119.483C904.955 119.483 909.552 118.732 914.035 117.23C918.517 115.728 922.482 113.504 925.93 110.558L932.654 122.429C929.896 124.681 926.62 126.616 922.827 128.234C919.092 129.793 915.184 130.977 911.104 131.786C907.024 132.595 903.059 132.999 899.208 132.999ZM870.245 78.7595H922.31C922.08 71.5969 919.868 66.0227 915.673 62.0371C911.478 57.9936 905.472 55.9719 897.657 55.9719C890.071 55.9719 883.807 57.9936 878.865 62.0371C873.923 66.0227 871.05 71.5969 870.245 78.7595Z\" fill=\"currentColor\"/>\n <path d=\"M769.271 130.4V5.63148H785.132V82.1389L821.078 45.4881H840.042L810.13 77.3735L845.042 130.4H825.905L798.58 87.6842L785.132 101.287V130.4H769.271Z\" fill=\"currentColor\"/>\n <path d=\"M695.277 132.999C686.772 132.999 679.244 131.006 672.692 127.021C666.141 123.035 661.027 117.663 657.349 110.905C653.671 104.089 651.832 96.4351 651.832 87.9439C651.832 81.5899 652.895 75.6692 655.021 70.1817C657.148 64.6942 660.136 59.9287 663.986 55.8853C667.836 51.7841 672.405 48.6071 677.692 46.3543C683.036 44.0438 688.898 42.8885 695.277 42.8885C703.782 42.8885 710.85 44.6792 716.482 48.2605C722.114 51.8419 726.51 56.4051 729.671 61.9504L727.343 65.4162V45.4879H741.825V130.4H727.343V110.472L729.671 113.851C726.51 119.396 722.114 123.988 716.482 127.627C710.85 131.209 703.782 132.999 695.277 132.999ZM697.001 118.616C702.633 118.616 707.632 117.374 712 114.89C716.367 112.349 719.787 108.796 722.258 104.233C724.786 99.6121 726.05 94.1823 726.05 87.9439C726.05 81.6477 724.786 76.2179 722.258 71.6546C719.787 67.0336 716.367 63.4811 712 60.9973C707.632 58.5135 702.633 57.2716 697.001 57.2716C691.369 57.2716 686.37 58.5135 682.002 60.9973C677.635 63.4811 674.187 67.0336 671.658 71.6546C669.129 76.2179 667.865 81.6477 667.865 87.9439C667.865 94.1823 669.129 99.6121 671.658 104.233C674.187 108.796 677.635 112.349 682.002 114.89C686.37 117.374 691.369 118.616 697.001 118.616Z\" fill=\"currentColor\"/>\n <path d=\"M505.425 130.4V9.09733H521.2L571.541 90.9768H565.335L613.952 9.09733H629.295V130.4H613.435L613.607 31.2784L616.796 32.3182L573.696 103.107H561.197L517.58 32.3182L520.079 31.2784L520.252 130.4H505.425Z\" fill=\"currentColor\"/>\n </svg>\n", Wt = "\n <svg width=\"47\" height=\"24\" viewBox=\"0 0 236 140\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4 130.401V9.09779H86.4938V31.4522H29.5153V57.4456H77.7875V78.1538H29.5153V107.786H87.1834V130.401H4Z\" fill=\"currentColor\"/>\n <path d=\"M107 130.4V9.09734H122.775L173.116 90.9768H166.91L215.527 9.09734H230.87V130.4H215.01L215.182 31.2784L218.371 32.3182L175.271 103.107H162.772L119.155 32.3182L121.654 31.2784L121.827 130.4H107Z\" fill=\"currentColor\"/>\n </svg>\n", X = (0, b.createIdentifier)(), Z = (0, b.createIdentifier)(), Gt = P((e) => ({ setOptions(t) {
4614
- let n = J();
4615
- e.addService(G, { execute: n.decorate(async (n) => {
4616
- if (!t.jwtAuth) return;
4617
- let r = e.getInstance(X);
4618
- if (!e.getInstance(Z)) {
4619
- if (!r) try {
4620
- let n = e.getInstance(U)?.getOptions()?.baseUrl || "", i = await fetch(`${n}/jwt-auth/token`, {
4621
- method: "POST",
4622
- headers: { "Content-Type": "application/json" },
4623
- body: JSON.stringify(t.jwtAuth)
4624
- });
4625
- if (!i.ok) throw Error(`JWT auth failed: ${i.status}`);
4626
- r = (await i.json()).token, e.inject(X, r);
4627
- } catch (t) {
4628
- throw console.error("[JWTMixin] Token request failed:", t), e.inject(Z, Y), Error(Y);
4629
- }
4630
- r && n.headers.append("authorization", `Bearer ${r}`);
4631
- }
4632
- }) });
4633
- } }));
4634
- //#endregion
4635
- //#region src/plugin/utils/decodeJwt.ts
4636
- function Kt(e) {
4637
- let t = e.replace(/-/g, "+").replace(/_/g, "/").padEnd(e.length + (4 - e.length % 4) % 4, "="), n = atob(t), r = new Uint8Array(n.length);
4638
- for (let e = 0; e < n.length; e++) r[e] = n.charCodeAt(e);
4639
- return new TextDecoder().decode(r);
4640
- }
4641
- function qt(e) {
4642
- let [t, n, r] = e.split("."), i = JSON.parse(Kt(n));
4643
- return {
4644
- exp: i.exp,
4645
- createdAt: i.iat,
4646
- data: i
4647
- };
4648
- }
4649
- //#endregion
4650
- //#region src/helpers/date/index.ts
4651
- function Jt() {
4652
- let e = /* @__PURE__ */ new Date();
4653
- return e.valueOf() - e.getTimezoneOffset() * 60 * 1e3;
4654
- }
4655
- //#endregion
4656
- //#region src/helpers/utils/merge.ts
4657
- function Q(e, t) {
4658
- if (e !== t) {
4659
- if (!e || !t || typeof e != "object" || typeof t != "object") return !1;
4660
- let n = e instanceof Array, r = t instanceof Array;
4661
- if (n) {
4662
- if (!r) return !1;
4663
- let n = e.length;
4664
- if (t.length !== n) return !1;
4665
- for (let r = 0; r < n; r++) if (!Q(e[r], t[r])) return !1;
4666
- } else if (r) return !1;
4667
- let i = Object.keys(e), a = Object.keys(t), o = i.length;
4668
- if (o !== a.length) return !1;
4669
- for (let n = 0; n < o; n++) {
4670
- let r = i[n];
4671
- if (!t.hasOwnProperty(r) || !Q(e[r], t[r])) return !1;
4672
- }
4673
- }
4674
- return !0;
4675
- }
4676
- //#endregion
4677
- //#region src/plugin/mixins/auth/oauthMixin/index.ts
4678
- var $ = (0, b.createIdentifier)(), Yt = P((e) => {
4679
- let t, n, r;
4680
- e.addService(G, { execute: async (n) => {
4681
- if (t) {
4682
- let t = await e.getInstanceAsync($);
4683
- t && n.headers.append("authorization", `Bearer ${t}`);
4684
- }
4685
- } });
4686
- let i = (n, r) => {
4687
- e.inject($, void 0), e.injectFactory($, async (e, i) => {
4688
- try {
4689
- let e = i ? await i : void 0;
4690
- return t ? !e || (qt(e)?.exp ?? 0) * 1e3 <= Jt() ? await t(n, r, e) : e : "";
4691
- } catch (e) {
4692
- return console.error("[OAuthMixin] Token refresh failed:", e), "";
4693
- }
4694
- }, !0);
4695
- };
4696
- return { setOptions(e) {
4697
- let a = !Q(n, e.user), o = r !== e.project;
4698
- (t !== e.getAuthToken || a || o) && (t = e.getAuthToken, n = e.user, r = e.project, i(e.user, e.project));
4699
- } };
4700
- });
4701
- //#endregion
4702
- //#region src/helpers/guid.ts
4703
- function Xt() {
4704
- let e = (/* @__PURE__ */ new Date()).getTime(), t = typeof performance < "u" && performance.now && performance.now() * 1e3 || 0;
4705
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
4706
- let r = Math.random() * 16;
4707
- return e > 0 ? (r = (e + r) % 16 | 0, e = Math.floor(e / 16)) : (r = (t + r) % 16 | 0, t = Math.floor(t / 16)), (n === "x" ? r : r & 3 | 8).toString(16);
4708
- });
4709
- }
4710
- //#endregion
4711
- export { it as $, At as A, Te as At, Ze as B, y as Bt, pt as C, I as Ct, Ct as D, Ce as Dt, et as E, P as Et, Tt as F, N as Ft, Et as G, ie as Gt, Ge as H, _ as Ht, Ue as I, xe as It, Ye as J, m as Jt, Be as K, re as Kt, Ut as L, be as Lt, tt as M, Oe as Mt, ot as N, De as Nt, It as O, ke as Ot, Ke as P, Ee as Pt, zt as Q, Wt as R, ye as Rt, _t as S, L as St, dt as T, Ae as Tt, bt as U, ee as Ut, $e as V, v as Vt, jt as W, te as Wt, xt as X, at as Y, Dt as Z, Rt as _, W as _t, Gt as a, Mt as at, Pt as b, R as bt, He as c, Ht as ct, St as d, kt as dt, rt as et, vt as f, J as ft, Ve as g, U as gt, wt as h, G as ht, Q as i, Nt as it, Qe as j, Se as jt, Y as k, we as kt, yt as l, lt, ht as m, q as mt, Yt as n, Je as nt, mt as o, Bt as ot, Lt as p, K as pt, Xe as q, ne as qt, $ as r, ut as rt, nt as s, Vt as st, Xt as t, gt as tt, ft as u, Ot as ut, qe as v, V as vt, ct as w, F as wt, st as x, B as xt, We as y, ze as yt, Ft as z, j as zt };