@budibase/server 2.1.43-alpha.8 → 2.1.43-alpha.9

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 (360) hide show
  1. package/builder/assets/{index.29f946a8.js → index.1c5913ba.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +542 -514
  4. package/coverage/coverage-final.json +20 -15
  5. package/coverage/lcov-report/index.html +64 -34
  6. package/coverage/lcov-report/src/api/controllers/analytics.ts.html +1 -1
  7. package/coverage/lcov-report/src/api/controllers/apikeys.ts.html +1 -1
  8. package/coverage/lcov-report/src/api/controllers/application.ts.html +86 -233
  9. package/coverage/lcov-report/src/api/controllers/auth.ts.html +1 -1
  10. package/coverage/lcov-report/src/api/controllers/automation.ts.html +1 -1
  11. package/coverage/lcov-report/src/api/controllers/backup.ts.html +1 -1
  12. package/coverage/lcov-report/src/api/controllers/cloud.ts.html +5 -2
  13. package/coverage/lcov-report/src/api/controllers/component.ts.html +1 -1
  14. package/coverage/lcov-report/src/api/controllers/datasource.ts.html +1 -1
  15. package/coverage/lcov-report/src/api/controllers/deploy/Deployment.ts.html +1 -1
  16. package/coverage/lcov-report/src/api/controllers/deploy/index.html +1 -1
  17. package/coverage/lcov-report/src/api/controllers/deploy/index.ts.html +1 -1
  18. package/coverage/lcov-report/src/api/controllers/dev.ts.html +1 -1
  19. package/coverage/lcov-report/src/api/controllers/index.html +28 -28
  20. package/coverage/lcov-report/src/api/controllers/integration.ts.html +1 -1
  21. package/coverage/lcov-report/src/api/controllers/layout.ts.html +1 -1
  22. package/coverage/lcov-report/src/api/controllers/metadata.ts.html +1 -1
  23. package/coverage/lcov-report/src/api/controllers/migrations.ts.html +1 -1
  24. package/coverage/lcov-report/src/api/controllers/permission.ts.html +1 -1
  25. package/coverage/lcov-report/src/api/controllers/plugin/file.ts.html +1 -1
  26. package/coverage/lcov-report/src/api/controllers/plugin/github.ts.html +1 -1
  27. package/coverage/lcov-report/src/api/controllers/plugin/index.html +1 -1
  28. package/coverage/lcov-report/src/api/controllers/plugin/index.ts.html +1 -1
  29. package/coverage/lcov-report/src/api/controllers/plugin/npm.ts.html +1 -1
  30. package/coverage/lcov-report/src/api/controllers/plugin/uploaders.ts.html +1 -1
  31. package/coverage/lcov-report/src/api/controllers/plugin/url.ts.html +1 -1
  32. package/coverage/lcov-report/src/api/controllers/plugin/utils.ts.html +1 -1
  33. package/coverage/lcov-report/src/api/controllers/public/applications.ts.html +1 -1
  34. package/coverage/lcov-report/src/api/controllers/public/index.html +1 -1
  35. package/coverage/lcov-report/src/api/controllers/public/mapping/applications.ts.html +1 -1
  36. package/coverage/lcov-report/src/api/controllers/public/mapping/index.html +1 -1
  37. package/coverage/lcov-report/src/api/controllers/public/mapping/index.ts.html +1 -1
  38. package/coverage/lcov-report/src/api/controllers/public/mapping/queries.ts.html +1 -1
  39. package/coverage/lcov-report/src/api/controllers/public/mapping/rows.ts.html +1 -1
  40. package/coverage/lcov-report/src/api/controllers/public/mapping/tables.ts.html +1 -1
  41. package/coverage/lcov-report/src/api/controllers/public/mapping/users.ts.html +1 -1
  42. package/coverage/lcov-report/src/api/controllers/public/queries.ts.html +1 -1
  43. package/coverage/lcov-report/src/api/controllers/public/rows.ts.html +1 -1
  44. package/coverage/lcov-report/src/api/controllers/public/tables.ts.html +1 -1
  45. package/coverage/lcov-report/src/api/controllers/public/users.ts.html +1 -1
  46. package/coverage/lcov-report/src/api/controllers/public/utils.ts.html +1 -1
  47. package/coverage/lcov-report/src/api/controllers/query/import/index.html +1 -1
  48. package/coverage/lcov-report/src/api/controllers/query/import/index.ts.html +1 -1
  49. package/coverage/lcov-report/src/api/controllers/query/import/sources/base/index.html +1 -1
  50. package/coverage/lcov-report/src/api/controllers/query/import/sources/base/index.ts.html +1 -1
  51. package/coverage/lcov-report/src/api/controllers/query/import/sources/base/openapi.ts.html +1 -1
  52. package/coverage/lcov-report/src/api/controllers/query/import/sources/curl.ts.html +1 -1
  53. package/coverage/lcov-report/src/api/controllers/query/import/sources/index.html +1 -1
  54. package/coverage/lcov-report/src/api/controllers/query/import/sources/openapi2.ts.html +1 -1
  55. package/coverage/lcov-report/src/api/controllers/query/import/sources/openapi3.ts.html +1 -1
  56. package/coverage/lcov-report/src/api/controllers/query/index.html +1 -1
  57. package/coverage/lcov-report/src/api/controllers/query/index.ts.html +1 -1
  58. package/coverage/lcov-report/src/api/controllers/query/validation.ts.html +1 -1
  59. package/coverage/lcov-report/src/api/controllers/role.ts.html +1 -1
  60. package/coverage/lcov-report/src/api/controllers/routing.ts.html +1 -1
  61. package/coverage/lcov-report/src/api/controllers/row/ExternalRequest.ts.html +1 -1
  62. package/coverage/lcov-report/src/api/controllers/row/external.ts.html +1 -1
  63. package/coverage/lcov-report/src/api/controllers/row/index.html +1 -1
  64. package/coverage/lcov-report/src/api/controllers/row/index.ts.html +1 -1
  65. package/coverage/lcov-report/src/api/controllers/row/internal.ts.html +1 -1
  66. package/coverage/lcov-report/src/api/controllers/row/internalSearch.ts.html +1 -1
  67. package/coverage/lcov-report/src/api/controllers/row/staticFormula.ts.html +1 -1
  68. package/coverage/lcov-report/src/api/controllers/row/utils.ts.html +1 -1
  69. package/coverage/lcov-report/src/api/controllers/screen.ts.html +1 -1
  70. package/coverage/lcov-report/src/api/controllers/script.ts.html +1 -1
  71. package/coverage/lcov-report/src/api/controllers/static/index.html +1 -1
  72. package/coverage/lcov-report/src/api/controllers/static/index.ts.html +1 -1
  73. package/coverage/lcov-report/src/api/controllers/table/bulkFormula.ts.html +1 -1
  74. package/coverage/lcov-report/src/api/controllers/table/external.ts.html +1 -1
  75. package/coverage/lcov-report/src/api/controllers/table/index.html +1 -1
  76. package/coverage/lcov-report/src/api/controllers/table/index.ts.html +1 -1
  77. package/coverage/lcov-report/src/api/controllers/table/internal.ts.html +1 -1
  78. package/coverage/lcov-report/src/api/controllers/table/utils.ts.html +1 -1
  79. package/coverage/lcov-report/src/api/controllers/templates.ts.html +1 -1
  80. package/coverage/lcov-report/src/api/controllers/user.ts.html +13 -184
  81. package/coverage/lcov-report/src/api/controllers/view/exporters.ts.html +1 -1
  82. package/coverage/lcov-report/src/api/controllers/view/index.html +1 -1
  83. package/coverage/lcov-report/src/api/controllers/view/index.ts.html +1 -1
  84. package/coverage/lcov-report/src/api/controllers/view/utils.ts.html +1 -1
  85. package/coverage/lcov-report/src/api/controllers/view/viewBuilder.ts.html +1 -1
  86. package/coverage/lcov-report/src/api/controllers/webhook.ts.html +1 -1
  87. package/coverage/lcov-report/src/api/index.html +1 -1
  88. package/coverage/lcov-report/src/api/index.ts.html +1 -1
  89. package/coverage/lcov-report/src/api/routes/analytics.ts.html +1 -1
  90. package/coverage/lcov-report/src/api/routes/apikeys.ts.html +1 -1
  91. package/coverage/lcov-report/src/api/routes/application.ts.html +1 -1
  92. package/coverage/lcov-report/src/api/routes/auth.ts.html +1 -1
  93. package/coverage/lcov-report/src/api/routes/automation.ts.html +1 -1
  94. package/coverage/lcov-report/src/api/routes/backup.ts.html +1 -1
  95. package/coverage/lcov-report/src/api/routes/cloud.ts.html +1 -1
  96. package/coverage/lcov-report/src/api/routes/component.ts.html +1 -1
  97. package/coverage/lcov-report/src/api/routes/datasource.ts.html +1 -1
  98. package/coverage/lcov-report/src/api/routes/deploy.ts.html +1 -1
  99. package/coverage/lcov-report/src/api/routes/dev.ts.html +1 -1
  100. package/coverage/lcov-report/src/api/routes/index.html +1 -1
  101. package/coverage/lcov-report/src/api/routes/index.ts.html +1 -1
  102. package/coverage/lcov-report/src/api/routes/integration.ts.html +1 -1
  103. package/coverage/lcov-report/src/api/routes/layout.ts.html +1 -1
  104. package/coverage/lcov-report/src/api/routes/metadata.ts.html +1 -1
  105. package/coverage/lcov-report/src/api/routes/migrations.ts.html +1 -1
  106. package/coverage/lcov-report/src/api/routes/permission.ts.html +1 -1
  107. package/coverage/lcov-report/src/api/routes/plugin.ts.html +1 -1
  108. package/coverage/lcov-report/src/api/routes/public/applications.ts.html +1 -1
  109. package/coverage/lcov-report/src/api/routes/public/index.html +1 -1
  110. package/coverage/lcov-report/src/api/routes/public/index.ts.html +1 -1
  111. package/coverage/lcov-report/src/api/routes/public/middleware/index.html +1 -1
  112. package/coverage/lcov-report/src/api/routes/public/middleware/mapper.ts.html +1 -1
  113. package/coverage/lcov-report/src/api/routes/public/queries.ts.html +1 -1
  114. package/coverage/lcov-report/src/api/routes/public/rows.ts.html +1 -1
  115. package/coverage/lcov-report/src/api/routes/public/tables.ts.html +1 -1
  116. package/coverage/lcov-report/src/api/routes/public/users.ts.html +1 -1
  117. package/coverage/lcov-report/src/api/routes/public/utils/Endpoint.ts.html +1 -1
  118. package/coverage/lcov-report/src/api/routes/public/utils/index.html +1 -1
  119. package/coverage/lcov-report/src/api/routes/query.ts.html +1 -1
  120. package/coverage/lcov-report/src/api/routes/role.ts.html +1 -1
  121. package/coverage/lcov-report/src/api/routes/routing.ts.html +1 -1
  122. package/coverage/lcov-report/src/api/routes/row.ts.html +1 -1
  123. package/coverage/lcov-report/src/api/routes/screen.ts.html +1 -1
  124. package/coverage/lcov-report/src/api/routes/script.ts.html +1 -1
  125. package/coverage/lcov-report/src/api/routes/static.ts.html +1 -1
  126. package/coverage/lcov-report/src/api/routes/table.ts.html +1 -1
  127. package/coverage/lcov-report/src/api/routes/templates.ts.html +1 -1
  128. package/coverage/lcov-report/src/api/routes/tests/utilities/TestFunctions.ts.html +1 -1
  129. package/coverage/lcov-report/src/api/routes/tests/utilities/index.html +1 -1
  130. package/coverage/lcov-report/src/api/routes/tests/utilities/index.ts.html +1 -1
  131. package/coverage/lcov-report/src/api/routes/user.ts.html +1 -1
  132. package/coverage/lcov-report/src/api/routes/utils/index.html +1 -1
  133. package/coverage/lcov-report/src/api/routes/utils/validators.ts.html +1 -1
  134. package/coverage/lcov-report/src/api/routes/view.ts.html +1 -1
  135. package/coverage/lcov-report/src/api/routes/webhook.ts.html +1 -1
  136. package/coverage/lcov-report/src/app.ts.html +1 -1
  137. package/coverage/lcov-report/src/automations/actions.ts.html +1 -1
  138. package/coverage/lcov-report/src/automations/automationUtils.ts.html +1 -1
  139. package/coverage/lcov-report/src/automations/bullboard.ts.html +1 -1
  140. package/coverage/lcov-report/src/automations/index.html +1 -1
  141. package/coverage/lcov-report/src/automations/index.ts.html +1 -1
  142. package/coverage/lcov-report/src/automations/logging/index.html +1 -1
  143. package/coverage/lcov-report/src/automations/logging/index.ts.html +1 -1
  144. package/coverage/lcov-report/src/automations/steps/bash.ts.html +1 -1
  145. package/coverage/lcov-report/src/automations/steps/createRow.ts.html +1 -1
  146. package/coverage/lcov-report/src/automations/steps/delay.ts.html +1 -1
  147. package/coverage/lcov-report/src/automations/steps/deleteRow.ts.html +1 -1
  148. package/coverage/lcov-report/src/automations/steps/discord.ts.html +1 -1
  149. package/coverage/lcov-report/src/automations/steps/executeQuery.ts.html +1 -1
  150. package/coverage/lcov-report/src/automations/steps/executeScript.ts.html +1 -1
  151. package/coverage/lcov-report/src/automations/steps/filter.ts.html +1 -1
  152. package/coverage/lcov-report/src/automations/steps/index.html +1 -1
  153. package/coverage/lcov-report/src/automations/steps/integromat.ts.html +1 -1
  154. package/coverage/lcov-report/src/automations/steps/loop.ts.html +1 -1
  155. package/coverage/lcov-report/src/automations/steps/outgoingWebhook.ts.html +1 -1
  156. package/coverage/lcov-report/src/automations/steps/queryRows.ts.html +1 -1
  157. package/coverage/lcov-report/src/automations/steps/sendSmtpEmail.ts.html +1 -1
  158. package/coverage/lcov-report/src/automations/steps/serverLog.ts.html +1 -1
  159. package/coverage/lcov-report/src/automations/steps/slack.ts.html +1 -1
  160. package/coverage/lcov-report/src/automations/steps/updateRow.ts.html +1 -1
  161. package/coverage/lcov-report/src/automations/steps/utils.ts.html +1 -1
  162. package/coverage/lcov-report/src/automations/steps/zapier.ts.html +1 -1
  163. package/coverage/lcov-report/src/automations/tests/utilities/index.html +1 -1
  164. package/coverage/lcov-report/src/automations/tests/utilities/index.ts.html +1 -1
  165. package/coverage/lcov-report/src/automations/triggerInfo/app.ts.html +1 -1
  166. package/coverage/lcov-report/src/automations/triggerInfo/cron.ts.html +1 -1
  167. package/coverage/lcov-report/src/automations/triggerInfo/index.html +1 -1
  168. package/coverage/lcov-report/src/automations/triggerInfo/index.ts.html +1 -1
  169. package/coverage/lcov-report/src/automations/triggerInfo/rowDeleted.ts.html +1 -1
  170. package/coverage/lcov-report/src/automations/triggerInfo/rowSaved.ts.html +1 -1
  171. package/coverage/lcov-report/src/automations/triggerInfo/rowUpdated.ts.html +1 -1
  172. package/coverage/lcov-report/src/automations/triggerInfo/webhook.ts.html +1 -1
  173. package/coverage/lcov-report/src/automations/triggers.ts.html +1 -1
  174. package/coverage/lcov-report/src/automations/utils.ts.html +1 -1
  175. package/coverage/lcov-report/src/constants/index.html +1 -1
  176. package/coverage/lcov-report/src/constants/index.ts.html +1 -1
  177. package/coverage/lcov-report/src/constants/layouts.ts.html +1 -1
  178. package/coverage/lcov-report/src/constants/screens.ts.html +1 -1
  179. package/coverage/lcov-report/src/db/defaultData/datasource_bb_default.ts.html +1 -1
  180. package/coverage/lcov-report/src/db/defaultData/employeeImport.ts.html +1 -1
  181. package/coverage/lcov-report/src/db/defaultData/expensesImport.ts.html +1 -1
  182. package/coverage/lcov-report/src/db/defaultData/index.html +1 -1
  183. package/coverage/lcov-report/src/db/defaultData/inventoryImport.ts.html +1 -1
  184. package/coverage/lcov-report/src/db/defaultData/jobsImport.ts.html +1 -1
  185. package/coverage/lcov-report/src/db/dynamoClient.ts.html +1 -1
  186. package/coverage/lcov-report/src/db/inMemoryView.ts.html +1 -1
  187. package/coverage/lcov-report/src/db/index.html +1 -1
  188. package/coverage/lcov-report/src/db/index.ts.html +1 -1
  189. package/coverage/lcov-report/src/db/linkedRows/LinkController.ts.html +1 -1
  190. package/coverage/lcov-report/src/db/linkedRows/LinkDocument.ts.html +1 -1
  191. package/coverage/lcov-report/src/db/linkedRows/index.html +1 -1
  192. package/coverage/lcov-report/src/db/linkedRows/index.ts.html +1 -1
  193. package/coverage/lcov-report/src/db/linkedRows/linkUtils.ts.html +1 -1
  194. package/coverage/lcov-report/src/db/newid.ts.html +1 -1
  195. package/coverage/lcov-report/src/db/utils.ts.html +1 -1
  196. package/coverage/lcov-report/src/definitions/automations.ts.html +1 -1
  197. package/coverage/lcov-report/src/definitions/datasource.ts.html +1 -1
  198. package/coverage/lcov-report/src/definitions/index.html +1 -1
  199. package/coverage/lcov-report/src/environment.ts.html +1 -1
  200. package/coverage/lcov-report/src/events/AutomationEmitter.ts.html +1 -1
  201. package/coverage/lcov-report/src/events/BudibaseEmitter.ts.html +1 -1
  202. package/coverage/lcov-report/src/events/index.html +1 -1
  203. package/coverage/lcov-report/src/events/index.ts.html +1 -1
  204. package/coverage/lcov-report/src/events/utils.ts.html +1 -1
  205. package/coverage/lcov-report/src/index.html +1 -1
  206. package/coverage/lcov-report/src/index.ts.html +1 -1
  207. package/coverage/lcov-report/src/integrations/airtable.ts.html +1 -1
  208. package/coverage/lcov-report/src/integrations/arangodb.ts.html +1 -1
  209. package/coverage/lcov-report/src/integrations/base/index.html +1 -1
  210. package/coverage/lcov-report/src/integrations/base/query.ts.html +1 -1
  211. package/coverage/lcov-report/src/integrations/base/sql.ts.html +1 -1
  212. package/coverage/lcov-report/src/integrations/base/sqlTable.ts.html +1 -1
  213. package/coverage/lcov-report/src/integrations/base/utils.ts.html +1 -1
  214. package/coverage/lcov-report/src/integrations/couchdb.ts.html +1 -1
  215. package/coverage/lcov-report/src/integrations/dynamodb.ts.html +1 -1
  216. package/coverage/lcov-report/src/integrations/elasticsearch.ts.html +1 -1
  217. package/coverage/lcov-report/src/integrations/firebase.ts.html +1 -1
  218. package/coverage/lcov-report/src/integrations/googlesheets.ts.html +1 -1
  219. package/coverage/lcov-report/src/integrations/index.html +1 -1
  220. package/coverage/lcov-report/src/integrations/index.ts.html +1 -1
  221. package/coverage/lcov-report/src/integrations/microsoftSqlServer.ts.html +1 -1
  222. package/coverage/lcov-report/src/integrations/mongodb.ts.html +1 -1
  223. package/coverage/lcov-report/src/integrations/mysql.ts.html +1 -1
  224. package/coverage/lcov-report/src/integrations/oracle.ts.html +1 -1
  225. package/coverage/lcov-report/src/integrations/postgres.ts.html +1 -1
  226. package/coverage/lcov-report/src/integrations/queries/index.html +1 -1
  227. package/coverage/lcov-report/src/integrations/queries/sql.ts.html +1 -1
  228. package/coverage/lcov-report/src/integrations/redis.ts.html +1 -1
  229. package/coverage/lcov-report/src/integrations/rest.ts.html +1 -1
  230. package/coverage/lcov-report/src/integrations/s3.ts.html +1 -1
  231. package/coverage/lcov-report/src/integrations/snowflake.ts.html +1 -1
  232. package/coverage/lcov-report/src/integrations/tests/TestConfiguration.js.html +1 -1
  233. package/coverage/lcov-report/src/integrations/tests/index.html +1 -1
  234. package/coverage/lcov-report/src/integrations/utils.ts.html +1 -1
  235. package/coverage/lcov-report/src/middleware/appInfo.ts.html +1 -1
  236. package/coverage/lcov-report/src/middleware/authorized.ts.html +1 -1
  237. package/coverage/lcov-report/src/middleware/builder.ts.html +1 -1
  238. package/coverage/lcov-report/src/middleware/currentapp.ts.html +1 -1
  239. package/coverage/lcov-report/src/middleware/index.html +1 -1
  240. package/coverage/lcov-report/src/middleware/joi-validator.ts.html +1 -1
  241. package/coverage/lcov-report/src/middleware/publicApi.ts.html +1 -1
  242. package/coverage/lcov-report/src/middleware/resourceId.ts.html +1 -1
  243. package/coverage/lcov-report/src/middleware/selfhost.ts.html +1 -1
  244. package/coverage/lcov-report/src/middleware/utils.ts.html +1 -1
  245. package/coverage/lcov-report/src/migrations/functions/appUrls.ts.html +8 -29
  246. package/coverage/lcov-report/src/migrations/functions/backfill/app/automations.ts.html +1 -1
  247. package/coverage/lcov-report/src/migrations/functions/backfill/app/datasources.ts.html +1 -1
  248. package/coverage/lcov-report/src/migrations/functions/backfill/app/index.html +1 -1
  249. package/coverage/lcov-report/src/migrations/functions/backfill/app/layouts.ts.html +1 -1
  250. package/coverage/lcov-report/src/migrations/functions/backfill/app/queries.ts.html +1 -1
  251. package/coverage/lcov-report/src/migrations/functions/backfill/app/roles.ts.html +1 -1
  252. package/coverage/lcov-report/src/migrations/functions/backfill/app/screens.ts.html +1 -1
  253. package/coverage/lcov-report/src/migrations/functions/backfill/app/tables.ts.html +1 -1
  254. package/coverage/lcov-report/src/migrations/functions/backfill/app.ts.html +1 -1
  255. package/coverage/lcov-report/src/migrations/functions/backfill/global/configs.ts.html +1 -1
  256. package/coverage/lcov-report/src/migrations/functions/backfill/global/index.html +1 -1
  257. package/coverage/lcov-report/src/migrations/functions/backfill/global/quotas.ts.html +1 -1
  258. package/coverage/lcov-report/src/migrations/functions/backfill/global/users.ts.html +1 -1
  259. package/coverage/lcov-report/src/migrations/functions/backfill/global.ts.html +1 -1
  260. package/coverage/lcov-report/src/migrations/functions/backfill/index.html +1 -1
  261. package/coverage/lcov-report/src/migrations/functions/backfill/index.ts.html +1 -1
  262. package/coverage/lcov-report/src/migrations/functions/backfill/installation.ts.html +1 -1
  263. package/coverage/lcov-report/src/migrations/functions/index.html +11 -11
  264. package/coverage/lcov-report/src/migrations/functions/syncQuotas.ts.html +1 -1
  265. package/coverage/lcov-report/src/migrations/functions/tableSettings.ts.html +1 -1
  266. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.html +1 -1
  267. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.ts.html +1 -1
  268. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncApps.ts.html +1 -1
  269. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncPlugins.ts.html +1 -1
  270. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncRows.ts.html +1 -1
  271. package/coverage/lcov-report/src/migrations/functions/userEmailViewCasing.ts.html +1 -1
  272. package/coverage/lcov-report/src/migrations/index.html +1 -1
  273. package/coverage/lcov-report/src/migrations/index.ts.html +1 -1
  274. package/coverage/lcov-report/src/migrations/tests/helpers.ts.html +1 -1
  275. package/coverage/lcov-report/src/migrations/tests/index.html +1 -1
  276. package/coverage/lcov-report/src/migrations/tests/structures.ts.html +1 -1
  277. package/coverage/lcov-report/src/sdk/app/applications/index.html +146 -0
  278. package/coverage/lcov-report/src/sdk/app/applications/index.ts.html +106 -0
  279. package/coverage/lcov-report/src/sdk/app/applications/sync.ts.html +244 -0
  280. package/coverage/lcov-report/src/sdk/app/applications/utils.ts.html +136 -0
  281. package/coverage/lcov-report/src/sdk/app/automations/index.html +1 -1
  282. package/coverage/lcov-report/src/sdk/app/automations/index.ts.html +3 -3
  283. package/coverage/lcov-report/src/sdk/app/automations/webhook.ts.html +6 -6
  284. package/coverage/lcov-report/src/sdk/app/backups/constants.ts.html +3 -3
  285. package/coverage/lcov-report/src/sdk/app/backups/exports.ts.html +17 -17
  286. package/coverage/lcov-report/src/sdk/app/backups/imports.ts.html +17 -17
  287. package/coverage/lcov-report/src/sdk/app/backups/index.html +1 -1
  288. package/coverage/lcov-report/src/sdk/app/backups/index.ts.html +5 -5
  289. package/coverage/lcov-report/src/sdk/app/backups/statistics.ts.html +7 -7
  290. package/coverage/lcov-report/src/sdk/app/tables/index.html +1 -1
  291. package/coverage/lcov-report/src/sdk/app/tables/index.ts.html +5 -5
  292. package/coverage/lcov-report/src/sdk/index.html +5 -5
  293. package/coverage/lcov-report/src/sdk/index.ts.html +15 -12
  294. package/coverage/lcov-report/src/sdk/users/index.html +131 -0
  295. package/coverage/lcov-report/src/sdk/users/index.ts.html +100 -0
  296. package/coverage/lcov-report/src/sdk/users/utils.ts.html +277 -0
  297. package/coverage/lcov-report/src/startup.ts.html +1 -1
  298. package/coverage/lcov-report/src/tests/utilities/TestConfiguration.ts.html +1 -1
  299. package/coverage/lcov-report/src/tests/utilities/controllers.ts.html +1 -1
  300. package/coverage/lcov-report/src/tests/utilities/index.html +1 -1
  301. package/coverage/lcov-report/src/tests/utilities/index.ts.html +1 -1
  302. package/coverage/lcov-report/src/tests/utilities/structures.ts.html +1 -1
  303. package/coverage/lcov-report/src/threads/automation.ts.html +1 -1
  304. package/coverage/lcov-report/src/threads/index.html +1 -1
  305. package/coverage/lcov-report/src/threads/index.ts.html +1 -1
  306. package/coverage/lcov-report/src/threads/query.ts.html +1 -1
  307. package/coverage/lcov-report/src/threads/utils.ts.html +1 -1
  308. package/coverage/lcov-report/src/utilities/budibaseDir.ts.html +1 -1
  309. package/coverage/lcov-report/src/utilities/centralPath.ts.html +1 -1
  310. package/coverage/lcov-report/src/utilities/csvParser.ts.html +1 -1
  311. package/coverage/lcov-report/src/utilities/fileSystem/clientLibrary.ts.html +1 -1
  312. package/coverage/lcov-report/src/utilities/fileSystem/index.html +1 -1
  313. package/coverage/lcov-report/src/utilities/fileSystem/index.ts.html +1 -1
  314. package/coverage/lcov-report/src/utilities/fileSystem/processor.ts.html +1 -1
  315. package/coverage/lcov-report/src/utilities/global.ts.html +34 -34
  316. package/coverage/lcov-report/src/utilities/index.html +1 -1
  317. package/coverage/lcov-report/src/utilities/index.ts.html +1 -1
  318. package/coverage/lcov-report/src/utilities/plugins.ts.html +1 -1
  319. package/coverage/lcov-report/src/utilities/redis.ts.html +1 -1
  320. package/coverage/lcov-report/src/utilities/routing/index.html +1 -1
  321. package/coverage/lcov-report/src/utilities/routing/index.ts.html +1 -1
  322. package/coverage/lcov-report/src/utilities/rowProcessor/index.html +1 -1
  323. package/coverage/lcov-report/src/utilities/rowProcessor/index.ts.html +1 -1
  324. package/coverage/lcov-report/src/utilities/rowProcessor/map.ts.html +1 -1
  325. package/coverage/lcov-report/src/utilities/rowProcessor/utils.ts.html +1 -1
  326. package/coverage/lcov-report/src/utilities/scriptRunner.ts.html +1 -1
  327. package/coverage/lcov-report/src/utilities/security.ts.html +1 -1
  328. package/coverage/lcov-report/src/utilities/statusCodes.ts.html +1 -1
  329. package/coverage/lcov-report/src/utilities/usageQuota/index.html +15 -15
  330. package/coverage/lcov-report/src/utilities/usageQuota/rows.ts.html +13 -13
  331. package/coverage/lcov-report/src/utilities/usageQuota/usageQuoteReset.ts.html +1 -1
  332. package/coverage/lcov-report/src/utilities/users.ts.html +1 -1
  333. package/coverage/lcov-report/src/utilities/workerRequests.ts.html +1 -1
  334. package/coverage/lcov-report/src/watch.ts.html +1 -1
  335. package/coverage/lcov-report/src/websocket.ts.html +1 -1
  336. package/coverage/lcov.info +886 -842
  337. package/dist/api/controllers/application.js +419 -438
  338. package/dist/api/controllers/cloud.js +1 -0
  339. package/dist/api/controllers/user.js +7 -48
  340. package/dist/migrations/functions/appUrls.js +5 -9
  341. package/dist/package.json +6 -6
  342. package/dist/sdk/app/applications/index.js +28 -0
  343. package/dist/sdk/app/applications/sync.js +66 -0
  344. package/dist/sdk/app/applications/utils.js +21 -0
  345. package/dist/sdk/index.js +4 -2
  346. package/dist/sdk/users/index.js +27 -0
  347. package/dist/sdk/users/utils.js +65 -0
  348. package/dist/tsconfig.build.tsbuildinfo +1 -1
  349. package/package.json +7 -7
  350. package/src/api/controllers/application.ts +55 -104
  351. package/src/api/controllers/cloud.ts +1 -0
  352. package/src/api/controllers/user.ts +4 -61
  353. package/src/api/routes/tests/application.spec.js +0 -1
  354. package/src/migrations/functions/appUrls.ts +2 -9
  355. package/src/sdk/app/applications/index.ts +7 -0
  356. package/src/sdk/app/applications/sync.ts +53 -0
  357. package/src/sdk/app/applications/utils.ts +17 -0
  358. package/src/sdk/index.ts +4 -3
  359. package/src/sdk/users/index.ts +5 -0
  360. package/src/sdk/users/utils.ts +64 -0
@@ -940,7 +940,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
940
940
  `),t=K("i"),i=oe(r),a=oe("?"),o=oe(`
941
941
  This action cannot be undone.`)},m(l,s){C(l,e,s),C(l,t,s),U(t,i),U(t,a),C(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&mt(i,r)},d(l){l&&M(e),l&&M(t),l&&M(o)}}}function Nft(n){let e,t,r,i,a,o;e=new lu({props:{$$slots:{control:[Vft],default:[Pft]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[Rft]},$$scope:{ctx:n}};r=new Nl({props:l}),n[5](r);let s={automation:n[0]};return a=new Oft({props:s}),n[6](a),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment)},m(u,c){O(e,u,c),C(u,t,c),O(r,u,c),C(u,i,c),O(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const d={};c&513&&(d.$$scope={dirty:c,ctx:u}),r.$set(d);const m={};c&1&&(m.automation=u[0]),a.$set(m)},i(u){o||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(a.$$.fragment,u),o=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(a.$$.fragment,u),o=!1},d(u){B(e,u),u&&M(t),n[5](null),B(r,u),u&&M(i),n[6](null),B(a,u)}}}function Fft(n,e,t){let r,i;Re(n,Or,d=>t(7,r=d)),Re(n,si,d=>t(8,i=d));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(d){Te[d?"unshift":"push"](()=>{o=d,t(1,o)})}function f(d){Te[d?"unshift":"push"](()=>{l=d,t(2,l)})}return n.$$set=d=>{"automation"in d&&t(0,a=d.automation)},[a,o,l,s,u,c,f]}class jft extends Ve{constructor(e){super(),Pe(this,e,Fft,Nft,Ie,{automation:0})}}function uj(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function Uft(n){let e,t,r;return e=new jft({props:{automation:n[5]}}),{c(){H(e.$$.fragment),t=q()},m(i,a){O(e,i,a),C(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&M(t)}}}function cj(n){let e,t;function r(){return n[3](n[5])}return e=new N4({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[Uft]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){H(e.$$.fragment)},m(i,a){O(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function xft(n){let e,t,r=n[0].automations.sort(fj),i=[];for(let o=0;o<r.length;o+=1)i[o]=cj(uj(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=K("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","automations-list svelte-g64vb")},m(o,l){C(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&7){r=o[0].automations.sort(fj);let s;for(s=0;s<r.length;s+=1){const u=uj(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=cj(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(we(),s=r.length;s<i.length;s+=1)a(s);ke()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&M(e),Tn(i,o)}}}const fj=n=>n.name;function qft(n,e,t){let r,i,a;Re(n,si,s=>t(4,i=s)),Re(n,Or,s=>t(0,a=s)),nr(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class Wft extends Ve{constructor(e){super(),Pe(this,e,qft,xft,Ie,{})}}function pj(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function Gft(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
942
942
  start with a trigger.`)},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Yft(n){let e;return{c(){e=oe("Triggers")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Kft(n){let e=n[18].name+"",t;return{c(){t=oe(e)},m(r,i){C(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&mt(t,e)},d(r){r&&M(t)}}}function dj(n){let e,t,r,i,a,o,l,s,u,c;r=new cn({props:{name:n[18].icon}}),o=new Vt({props:{size:"S",$$slots:{default:[Kft]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=K("div"),t=K("div"),H(r.$$.fragment),i=q(),a=K("span"),H(o.$$.fragment),l=q(),D(a,"class","icon-spacing svelte-1735451"),D(t,"class","item-body svelte-1735451"),D(e,"class","item svelte-1735451"),Oe(e,"selected",n[2]===n[18].name)},m(d,m){C(d,e,m),U(e,t),O(r,t,null),U(t,i),U(t,a),O(o,a,null),U(e,l),s=!0,u||(c=zt(e,"click",f),u=!0)},p(d,m){n=d;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&Oe(e,"selected",n[2]===n[18].name)},i(d){s||(b(r.$$.fragment,d),b(o.$$.fragment,d),s=!0)},o(d){$(r.$$.fragment,d),$(o.$$.fragment,d),s=!1},d(d){d&&M(e),B(r),B(o),u=!1,c()}}}function Xft(n){let e,t,r,i;e=new Vt({props:{size:"S",$$slots:{default:[Yft]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=dj(pj(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){H(e.$$.fragment),t=q(),r=K("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-1735451")},m(s,u){O(e,s,u),C(s,t,u),C(s,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(s,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:s}),e.$set(c),u&76){a=s[3];let f;for(f=0;f<a.length;f+=1){const d=pj(s,a,f);o[f]?(o[f].p(d,u),b(o[f],1)):(o[f]=dj(d),o[f].c(),b(o[f],1),o[f].m(r,null))}for(we(),f=a.length;f<o.length;f+=1)l(f);ke()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&M(t),s&&M(r),Tn(o,s)}}}function Jft(n){let e,t,r,i,a,o,l,s,u,c;e=new U_({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new Vt({props:{size:"XS",$$slots:{default:[Gft]},$$scope:{ctx:n}}});function f(_){n[10](_)}function d(_){n[11](_)}let m={label:"Name"};return n[0]!==void 0&&(m.value=n[0]),n[4]!==void 0&&(m.error=n[4]),a=new Mn({props:m}),Te.push(()=>nt(a,"value",f)),Te.push(()=>nt(a,"error",d)),a.$on("input",n[12]),u=new Bt({props:{noPadding:!0,$$slots:{default:[Xft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment),s=q(),H(u.$$.fragment)},m(_,y){O(e,_,y),C(_,t,y),O(r,_,y),C(_,i,y),O(a,_,y),C(_,s,y),O(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const A={};!o&&y&1&&(o=!0,A.value=_[0],at(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],at(()=>l=!1)),a.$set(A);const L={};y&2097164&&(L.$$scope={dirty:y,ctx:_}),u.$set(L)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&M(t),B(r,_),_&&M(i),B(a,_),_&&M(s),B(u,_)}}}function Qft(n){let e,t;return e=new hr({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[Jft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Zft(n,e,t){let r,i,a,o,l,s;Re(n,Or,I=>t(8,o=I)),Re(n,si,I=>t(16,l=I)),Re(n,ch,I=>t(9,s=I));let u,c,f=!1,d,{webhookModal:m}=e;async function _(){var I;try{await Or.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);Or.actions.addBlockToAutomation(P),d.stepId===P6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=I=>{d=I,t(2,c=I.name)};function w(I){u=I,t(0,u)}function A(I){i=I,t(4,i),t(1,f),t(0,u)}const L=()=>t(1,f=!0),T=I=>y(I);return n.$$set=I=>{"webhookModal"in I&&t(7,m=I.webhookModal)},n.$$.update=()=>{n.$$.dirty&512&&(r=s._id),n.$$.dirty&3&&t(4,i=f&&!u?"Please specify a name for the automation.":null),n.$$.dirty&256&&t(3,a=Object.entries(o.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,y,m,o,s,w,A,L,T]}class CZ extends Ve{constructor(e){super(),Pe(this,e,Zft,Qft,Ie,{webhookModal:7})}}function e2t(n){let e;return{c(){e=oe("Add automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function t2t(n){let e,t;return e=new gn({props:{cta:!0,wide:!0,$$slots:{default:[e2t]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){n=r;const a={};i&8&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function n2t(n){let e,t;return e=new CZ({props:{webhookModal:n[1]}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function r2t(n){let e,t,r,i,a,o;e=new Bt({props:{paddingX:"L",paddingY:"L",gap:"S",$$slots:{default:[t2t]},$$scope:{ctx:n}}}),r=new Wft({});let l={$$slots:{default:[n2t]},$$scope:{ctx:n}};return a=new tr({props:l}),n[2](a),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment)},m(s,u){O(e,s,u),C(s,t,u),O(r,s,u),C(s,i,u),O(a,s,u),o=!0},p(s,u){const c={};u&9&&(c.$$scope={dirty:u,ctx:s}),e.$set(c);const f={};u&10&&(f.$$scope={dirty:u,ctx:s}),a.$set(f)},i(s){o||(b(e.$$.fragment,s),b(r.$$.fragment,s),b(a.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(r.$$.fragment,s),$(a.$$.fragment,s),o=!1},d(s){B(e,s),s&&M(t),B(r,s),s&&M(i),n[2](null),B(a,s)}}}function i2t(n){let e,t;return e=new E1({props:{title:"Automations",$$slots:{default:[r2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function a2t(n){let e,t,r;return t=new Zf({props:{selected:"Automations",$$slots:{default:[i2t]},$$scope:{ctx:n}}}),{c(){e=K("div"),H(t.$$.fragment),D(e,"class","nav svelte-9wnw5f")},m(i,a){C(i,e,a),O(t,e,null),r=!0},p(i,[a]){const o={};a&11&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&M(e),B(t)}}}function o2t(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){Te[o?"unshift":"push"](()=>{r=o,t(0,r)})}return n.$$set=o=>{"modal"in o&&t(0,r=o.modal),"webhookModal"in o&&t(1,i=o.webhookModal)},[r,i,a]}class l2t extends Ve{constructor(e){super(),Pe(this,e,o2t,a2t,Ie,{modal:0,webhookModal:1})}}function hj(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function mj(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let l={showTestStatus:!0,block:n[8],isTrigger:n[10]===0,idx:n[10],testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new MZ({props:l}),Te.push(()=>nt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&gj(n);return{c(){H(e.$$.fragment),r=q(),s&&s.c(),i=bt()},m(c,f){O(e,c,f),C(c,r,f),s&&s.m(c,f),C(c,i,f),a=!0},p(c,f){var m;const d={};f&2&&(d.block=c[8]),f&4&&(d.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,d.showParameters=c[3],at(()=>t=!1)),e.$set(d),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=gj(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(we(),$(s,1,1,()=>{s=null}),ke())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&M(r),s&&s.d(c),c&&M(i)}}}function gj(n){var s,u;let e,t,r,i,a,o;e=new li({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&vj(n);return a=new Zf({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[f2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),l&&l.c(),r=q(),i=K("div"),H(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){O(e,c,f),C(c,t,f),l&&l.m(c,f),C(c,r,f),C(c,i,f),O(a,i,null),o=!0},p(c,f){var m,_;(_=(m=c[2])==null?void 0:m[c[10]])!=null&&_.outputs.iterations?l?(l.p(c,f),f&4&&b(l,1)):(l=vj(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(we(),$(l,1,1,()=>{l=null}),ke());const d={};f&2052&&(d.$$scope={dirty:f,ctx:c}),a.$set(d)},i(c){o||(b(e.$$.fragment,c),b(l),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(l),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&M(t),l&&l.d(c),c&&M(r),c&&M(i),B(a)}}}function vj(n){let e,t,r,i,a,o;return t=new cn({props:{name:"Reuse"}}),a=new ln({props:{$$slots:{default:[s2t]},$$scope:{ctx:n}}}),{c(){e=K("div"),H(t.$$.fragment),r=q(),i=K("div"),H(a.$$.fragment),$n(i,"margin-left","10px"),$n(e,"display","flex"),$n(e,"padding","10px 10px 0px 12px")},m(l,s){C(l,e,s),O(t,e,null),U(e,r),U(e,i),O(a,i,null),o=!0},p(l,s){const u={};s&2052&&(u.$$scope={dirty:s,ctx:l}),a.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&M(e),B(t),B(a)}}}function s2t(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=oe("This loop ran "),r=oe(t),i=oe(" times.")},m(l,s){C(l,e,s),C(l,r,s),C(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&mt(r,t)},d(l){l&&M(e),l&&M(r),l&&M(i)}}}function u2t(n){var r,i;let e,t;return e=new Q3({props:{minHeight:"80px",disabled:!0,value:E_((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){H(e.$$.fragment)},m(a,o){O(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=E_((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function c2t(n){var r,i;let e,t;return e=new Q3({props:{minHeight:"100px",disabled:!0,value:E_((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){H(e.$$.fragment)},m(a,o){O(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=E_((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function f2t(n){let e,t,r,i;return e=new E1({props:{title:"Input",$$slots:{default:[u2t]},$$scope:{ctx:n}}}),r=new E1({props:{title:"Output",$$slots:{default:[c2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(a,o){O(e,a,o),C(a,t,o),O(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&M(t),B(r,a)}}}function _j(n){let e;return{c(){e=K("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function bj(n){let e,t,r,i,a,o=n[8].stepId!==J3.LOOP&&mj(n),l=n[1].length-1!==n[10]&&_j();return{c(){e=K("div"),o&&o.c(),r=q(),l&&l.c(),i=bt(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){C(s,e,u),o&&o.m(e,null),C(s,r,u),l&&l.m(s,u),C(s,i,u),a=!0},p(s,u){s[8].stepId!==J3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=mj(s),o.c(),b(o,1),o.m(e,null)):o&&(we(),$(o,1,1,()=>{o=null}),ke()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=_j(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(s){a||(b(o),a=!0)},o(s){$(o),a=!1},d(s){s&&M(e),o&&o.d(),s&&M(r),l&&l.d(s),s&&M(i)}}}function p2t(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=bj(hj(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=K("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","container svelte-1iblsnb")},m(o,l){C(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&15){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=hj(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=bj(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(we(),s=r.length;s<i.length;s+=1)a(s);ke()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&M(e),Tn(i,o)}}}function E_(n,e){return n?JSON.stringify(n,null,2):e}function d2t(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,l,s;function u(f){return f==null?void 0:f.steps.filter(d=>d.stepId!==J3.LOOP||[])}function c(f){l=f,t(3,l)}return n.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,a=f.testResults),"width"in f&&t(0,o=f.width)},n.$$.update=()=>{if(n.$$.dirty&32&&t(2,r=u(a)),n.$$.dirty&22){if(t(1,s=[]),i)i.definition.trigger&&s.push(i.definition.trigger),t(1,s=s.concat(i.definition.steps||[]).filter(f=>f.stepId!==J3.LOOP));else if(r){t(1,s=r||[]);let f=0;for(let d of s)d.id=f++}}},[o,s,r,l,i,a,c]}class SZ extends Ve{constructor(e){super(),Pe(this,e,d2t,p2t,Ie,{automation:4,testResults:5,width:0})}}function h2t(n){let e,t,r,i,a,o,l,s,u,c,f,d,m;return r=new cn({props:{name:"MultipleCheck"}}),s=new cn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new li({}),d=new SZ({props:{automation:n[0],testResults:n[2]}}),{c(){e=K("div"),t=K("div"),H(r.$$.fragment),i=q(),a=K("div"),a.textContent="Test Details",o=q(),l=K("div"),H(s.$$.fragment),u=q(),H(c.$$.fragment),f=q(),H(d.$$.fragment),$n(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),$n(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){C(_,e,y),U(e,t),O(r,t,null),U(t,i),U(t,a),U(e,o),U(e,l),O(s,l,null),C(_,u,y),O(c,_,y),C(_,f,y),O(d,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),d.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(d.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(d.$$.fragment,_),m=!1},d(_){_&&M(e),B(r),B(s),_&&M(u),B(c,_),_&&M(f),B(d,_)}}}function m2t(n,e,t){let r;Re(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{x1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==J3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(s=r.selectedAutomation)==null?void 0:s.testResults)},[i,r,o,a,l]}class g2t extends Ve{constructor(e){super(),Pe(this,e,m2t,h2t,Ie,{automation:0})}}function v2t(n){let e,t,r,i;return r=new Bt({props:{gap:"S",justifyItems:"center",$$slots:{default:[w2t]},$$scope:{ctx:n}}}),{c(){e=K("div"),t=K("div"),H(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){C(a,e,o),U(e,t),O(r,t,null),i=!0},p(a,o){const l={};o&258&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&M(e),B(r)}}}function _2t(n){let e;const t=n[4].default,r=Gn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Kn(r,t,i,i[8],e?Yn(t,i[8],a,null):Xn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function b2t(n){let e;return{c(){e=oe("You have no automations")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function y2t(n){let e;return{c(){e=oe("Let's fix that. Call the bots!")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function $2t(n){let e;return{c(){e=oe("Create automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function w2t(n){let e,t,r,i,a,o,l,s,u;return i=new Bn({props:{size:"M",$$slots:{default:[b2t]},$$scope:{ctx:n}}}),o=new Vt({props:{size:"M",$$slots:{default:[y2t]},$$scope:{ctx:n}}}),s=new gn({props:{size:"M",cta:!0,$$slots:{default:[$2t]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ft("svg"),t=ft("use"),r=q(),H(i.$$.fragment),a=q(),H(o.$$.fragment),l=q(),H(s.$$.fragment),qr(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),D(e,"width","60px"),D(e,"height","60px"),D(e,"class","spectrum-Icon"),D(e,"focusable","false")},m(c,f){C(c,e,f),U(e,t),C(c,r,f),O(i,c,f),C(c,a,f),O(o,c,f),C(c,l,f),O(s,c,f),u=!0},p(c,f){const d={};f&256&&(d.$$scope={dirty:f,ctx:c}),i.$set(d);const m={};f&256&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&M(e),c&&M(r),B(i,c),c&&M(a),B(o,c),c&&M(l),B(s,c)}}}function yj(n){let e,t,r;return t=new g2t({props:{automation:n[3]}}),{c(){e=K("div"),H(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){C(i,e,a),O(t,e,null),r=!0},p(i,a){const o={};a&8&&(o.automation=i[3]),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&M(e),B(t)}}}function k2t(n){let e,t;return e=new CZ({props:{webhookModal:n[2]}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function z2t(n){let e,t;return e=new tM({}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function A2t(n){let e,t,r,i,a,o,l,s,u,c,f,d,m;r=new l2t({props:{modal:n[1],webhookModal:n[2]}});const _=[_2t,v2t],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&yj(n),L={$$slots:{default:[k2t]},$$scope:{ctx:n}};c=new tr({props:L}),n[6](c);let T={width:"30%",$$slots:{default:[z2t]},$$scope:{ctx:n}};return d=new tr({props:T}),n[7](d),{c(){e=K("div"),t=K("div"),H(r.$$.fragment),i=q(),a=K("div"),l.c(),s=q(),A&&A.c(),u=q(),H(c.$$.fragment),f=q(),H(d.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(I,P){C(I,e,P),U(e,t),O(r,t,null),U(e,i),U(e,a),y[o].m(a,null),U(e,s),A&&A.m(e,null),U(e,u),O(c,e,null),U(e,f),O(d,e,null),m=!0},p(I,[P]){const N={};P&2&&(N.modal=I[1]),P&4&&(N.webhookModal=I[2]),r.$set(N);let j=o;o=w(I),o===j?y[o].p(I,P):(we(),$(y[j],1,1,()=>{y[j]=null}),ke(),l=y[o],l?l.p(I,P):(l=y[o]=_[o](I),l.c()),b(l,1),l.m(a,null)),I[0].showTestPanel?A?(A.p(I,P),P&1&&b(A,1)):(A=yj(I),A.c(),b(A,1),A.m(e,u)):A&&(we(),$(A,1,1,()=>{A=null}),ke());const x={};P&260&&(x.$$scope={dirty:P,ctx:I}),c.$set(x);const W={};P&256&&(W.$$scope={dirty:P,ctx:I}),d.$set(W)},i(I){m||(b(r.$$.fragment,I),b(l),b(A),b(c.$$.fragment,I),b(d.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(l),$(A),$(c.$$.fragment,I),$(d.$$.fragment,I),m=!1},d(I){I&&M(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(d)}}}function M2t(n,e,t){let r,i;Re(n,Or,d=>t(0,i=d));let{$$slots:a={},$$scope:o}=e,l,s;nr(()=>{x1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(d){Te[d?"unshift":"push"](()=>{l=d,t(1,l)})}function f(d){Te[d?"unshift":"push"](()=>{s=d,t(2,s)})}return n.$$set=d=>{"$$scope"in d&&t(8,o=d.$$scope)},n.$$.update=()=>{var d;n.$$.dirty&1&&t(3,r=((d=i.selectedAutomation)==null?void 0:d.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class C2t extends Ve{constructor(e){super(),Pe(this,e,M2t,A2t,Ie,{})}}function S2t(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new Mn({props:u}),Te.push(()=>nt(a,"value",s)),{c(){e=K("span"),e.textContent=`The changes you have made will be deleted and the application reverted
943
- back to its production state.`,t=q(),r=K("span"),r.textContent="Please enter your app name to continue.",i=q(),H(a.$$.fragment)},m(c,f){C(c,e,f),C(c,t,f),C(c,r,f),C(c,i,f),O(a,c,f),l=!0},p(c,f){const d={};!o&&f&4&&(o=!0,d.value=c[2],at(()=>o=!1)),a.$set(d)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&M(e),c&&M(t),c&&M(r),c&&M(i),B(a,c)}}}function L2t(n){let e,t;return e=new hr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[S2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function E2t(n){let e,t,r,i;e=new cn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){kn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[L2t]},$$scope:{ctx:n}};return r=new tr({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,l){O(e,o,l),C(o,t,l),O(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&M(t),n[5](null),B(r,o)}}}function T2t(n,e,t){let r,i;Re(n,Xt,c=>t(0,i=c));let a,o;const l=async()=>{try{await Jt.revertAppChanges(r);const c=await Jt.fetchAppPackage(r);await Xt.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){Te[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class D2t extends Ve{constructor(e){super(),Pe(this,e,T2t,E2t,Ie,{})}}const O2t="@budibase/client",B2t="2.1.43-alpha.7",H2t="MPL-2.0",I2t="dist/budibase-client.js",P2t="dist/budibase-client.js",V2t="module",R2t="src/index.js",N2t={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},F2t={build:"rollup -c","dev:builder":"rollup -cw"},j2t={"@budibase/bbui":"2.1.43-alpha.7","@budibase/frontend-core":"2.1.43-alpha.7","@budibase/string-templates":"2.1.43-alpha.7","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7","html5-qrcode":"^2.2.1",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},U2t={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},x2t={"loader-utils":"1.4.1"},q2t="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",th={name:O2t,version:B2t,license:H2t,module:I2t,main:P2t,type:V2t,svelte:R2t,exports:N2t,scripts:F2t,dependencies:j2t,devDependencies:U2t,resolutions:x2t,gitHead:q2t};function $j(n){let e,t;return e=new Z3({props:{hoverable:!0,notice:!0,$$slots:{default:[W2t]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function W2t(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function G2t(n){let e,t;return e=new Vt({props:{size:"S",$$slots:{default:[K2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Y2t(n){let e,t;return e=new Vt({props:{size:"S",$$slots:{default:[X2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function K2t(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=K("b"),i=oe(r),a=oe(` which is the
943
+ back to its production state.`,t=q(),r=K("span"),r.textContent="Please enter your app name to continue.",i=q(),H(a.$$.fragment)},m(c,f){C(c,e,f),C(c,t,f),C(c,r,f),C(c,i,f),O(a,c,f),l=!0},p(c,f){const d={};!o&&f&4&&(o=!0,d.value=c[2],at(()=>o=!1)),a.$set(d)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&M(e),c&&M(t),c&&M(r),c&&M(i),B(a,c)}}}function L2t(n){let e,t;return e=new hr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[S2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function E2t(n){let e,t,r,i;e=new cn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){kn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[L2t]},$$scope:{ctx:n}};return r=new tr({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,l){O(e,o,l),C(o,t,l),O(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&M(t),n[5](null),B(r,o)}}}function T2t(n,e,t){let r,i;Re(n,Xt,c=>t(0,i=c));let a,o;const l=async()=>{try{await Jt.revertAppChanges(r);const c=await Jt.fetchAppPackage(r);await Xt.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){Te[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class D2t extends Ve{constructor(e){super(),Pe(this,e,T2t,E2t,Ie,{})}}const O2t="@budibase/client",B2t="2.1.43-alpha.8",H2t="MPL-2.0",I2t="dist/budibase-client.js",P2t="dist/budibase-client.js",V2t="module",R2t="src/index.js",N2t={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},F2t={build:"rollup -c","dev:builder":"rollup -cw"},j2t={"@budibase/bbui":"2.1.43-alpha.8","@budibase/frontend-core":"2.1.43-alpha.8","@budibase/string-templates":"2.1.43-alpha.8","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7","html5-qrcode":"^2.2.1",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},U2t={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},x2t={"loader-utils":"1.4.1"},q2t="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",th={name:O2t,version:B2t,license:H2t,module:I2t,main:P2t,type:V2t,svelte:R2t,exports:N2t,scripts:F2t,dependencies:j2t,devDependencies:U2t,resolutions:x2t,gitHead:q2t};function $j(n){let e,t;return e=new Z3({props:{hoverable:!0,notice:!0,$$slots:{default:[W2t]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function W2t(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function G2t(n){let e,t;return e=new Vt({props:{size:"S",$$slots:{default:[K2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Y2t(n){let e,t;return e=new Vt({props:{size:"S",$$slots:{default:[X2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function K2t(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=K("b"),i=oe(r),a=oe(` which is the
944
944
  latest version available.`)},m(o,l){C(o,e,l),C(o,t,l),U(t,i),C(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&mt(i,r)},d(o){o&&M(e),o&&M(t),o&&M(a)}}}function X2t(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=oe("This app is currently using version "),t=K("b"),i=oe(r),a=oe(`, but version
945
945
  `),o=K("b"),o.textContent=`${th.version}`,l=oe(` is available. Updates can contain new features,
946
946
  performance improvements and bug fixes.`)},m(s,u){C(s,e,u),C(s,t,u),U(t,i),C(s,a,u),C(s,o,u),C(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&mt(i,r)},d(s){s&&M(e),s&&M(t),s&&M(a),s&&M(o),s&&M(l)}}}function wj(n){let e,t;return e=new Vt({props:{size:"S",$$slots:{default:[J2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){O(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function J2t(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=oe(`You can revert this app to version
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.29f946a8.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.1c5913ba.js"></script>
14
14
  <link rel="stylesheet" href="/builder/assets/index.183b181c.css">
15
15
  </head>
16
16
  <body id="app">