@budibase/server 2.2.12-alpha.11 → 2.2.12-alpha.13

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 (351) hide show
  1. package/builder/assets/{index.68dc92bd.js → index.9e03c129.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +81 -79
  4. package/coverage/coverage-final.json +2 -2
  5. package/coverage/lcov-report/index.html +15 -15
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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/tests/index.html +1 -1
  117. package/coverage/lcov-report/src/api/routes/public/tests/utils.ts.html +1 -1
  118. package/coverage/lcov-report/src/api/routes/public/users.ts.html +1 -1
  119. package/coverage/lcov-report/src/api/routes/public/utils/Endpoint.ts.html +1 -1
  120. package/coverage/lcov-report/src/api/routes/public/utils/index.html +1 -1
  121. package/coverage/lcov-report/src/api/routes/query.ts.html +1 -1
  122. package/coverage/lcov-report/src/api/routes/role.ts.html +1 -1
  123. package/coverage/lcov-report/src/api/routes/routing.ts.html +1 -1
  124. package/coverage/lcov-report/src/api/routes/row.ts.html +1 -1
  125. package/coverage/lcov-report/src/api/routes/screen.ts.html +1 -1
  126. package/coverage/lcov-report/src/api/routes/script.ts.html +1 -1
  127. package/coverage/lcov-report/src/api/routes/static.ts.html +1 -1
  128. package/coverage/lcov-report/src/api/routes/table.ts.html +1 -1
  129. package/coverage/lcov-report/src/api/routes/templates.ts.html +1 -1
  130. package/coverage/lcov-report/src/api/routes/tests/utilities/TestFunctions.ts.html +1 -1
  131. package/coverage/lcov-report/src/api/routes/tests/utilities/index.html +1 -1
  132. package/coverage/lcov-report/src/api/routes/tests/utilities/index.ts.html +1 -1
  133. package/coverage/lcov-report/src/api/routes/user.ts.html +1 -1
  134. package/coverage/lcov-report/src/api/routes/utils/index.html +1 -1
  135. package/coverage/lcov-report/src/api/routes/utils/validators.ts.html +1 -1
  136. package/coverage/lcov-report/src/api/routes/view.ts.html +1 -1
  137. package/coverage/lcov-report/src/api/routes/webhook.ts.html +1 -1
  138. package/coverage/lcov-report/src/app.ts.html +13 -7
  139. package/coverage/lcov-report/src/automations/actions.ts.html +1 -1
  140. package/coverage/lcov-report/src/automations/automationUtils.ts.html +1 -1
  141. package/coverage/lcov-report/src/automations/bullboard.ts.html +1 -1
  142. package/coverage/lcov-report/src/automations/index.html +1 -1
  143. package/coverage/lcov-report/src/automations/index.ts.html +1 -1
  144. package/coverage/lcov-report/src/automations/logging/index.html +1 -1
  145. package/coverage/lcov-report/src/automations/logging/index.ts.html +1 -1
  146. package/coverage/lcov-report/src/automations/steps/bash.ts.html +1 -1
  147. package/coverage/lcov-report/src/automations/steps/createRow.ts.html +1 -1
  148. package/coverage/lcov-report/src/automations/steps/delay.ts.html +1 -1
  149. package/coverage/lcov-report/src/automations/steps/deleteRow.ts.html +1 -1
  150. package/coverage/lcov-report/src/automations/steps/discord.ts.html +1 -1
  151. package/coverage/lcov-report/src/automations/steps/executeQuery.ts.html +1 -1
  152. package/coverage/lcov-report/src/automations/steps/executeScript.ts.html +1 -1
  153. package/coverage/lcov-report/src/automations/steps/filter.ts.html +1 -1
  154. package/coverage/lcov-report/src/automations/steps/index.html +1 -1
  155. package/coverage/lcov-report/src/automations/steps/integromat.ts.html +1 -1
  156. package/coverage/lcov-report/src/automations/steps/loop.ts.html +1 -1
  157. package/coverage/lcov-report/src/automations/steps/outgoingWebhook.ts.html +1 -1
  158. package/coverage/lcov-report/src/automations/steps/queryRows.ts.html +1 -1
  159. package/coverage/lcov-report/src/automations/steps/sendSmtpEmail.ts.html +1 -1
  160. package/coverage/lcov-report/src/automations/steps/serverLog.ts.html +1 -1
  161. package/coverage/lcov-report/src/automations/steps/slack.ts.html +1 -1
  162. package/coverage/lcov-report/src/automations/steps/updateRow.ts.html +1 -1
  163. package/coverage/lcov-report/src/automations/steps/utils.ts.html +1 -1
  164. package/coverage/lcov-report/src/automations/steps/zapier.ts.html +1 -1
  165. package/coverage/lcov-report/src/automations/tests/utilities/index.html +1 -1
  166. package/coverage/lcov-report/src/automations/tests/utilities/index.ts.html +1 -1
  167. package/coverage/lcov-report/src/automations/triggerInfo/app.ts.html +1 -1
  168. package/coverage/lcov-report/src/automations/triggerInfo/cron.ts.html +1 -1
  169. package/coverage/lcov-report/src/automations/triggerInfo/index.html +1 -1
  170. package/coverage/lcov-report/src/automations/triggerInfo/index.ts.html +1 -1
  171. package/coverage/lcov-report/src/automations/triggerInfo/rowDeleted.ts.html +1 -1
  172. package/coverage/lcov-report/src/automations/triggerInfo/rowSaved.ts.html +1 -1
  173. package/coverage/lcov-report/src/automations/triggerInfo/rowUpdated.ts.html +1 -1
  174. package/coverage/lcov-report/src/automations/triggerInfo/webhook.ts.html +1 -1
  175. package/coverage/lcov-report/src/automations/triggers.ts.html +1 -1
  176. package/coverage/lcov-report/src/automations/utils.ts.html +1 -1
  177. package/coverage/lcov-report/src/constants/index.html +1 -1
  178. package/coverage/lcov-report/src/constants/index.ts.html +1 -1
  179. package/coverage/lcov-report/src/constants/layouts.ts.html +1 -1
  180. package/coverage/lcov-report/src/constants/screens.ts.html +1 -1
  181. package/coverage/lcov-report/src/db/defaultData/datasource_bb_default.ts.html +1 -1
  182. package/coverage/lcov-report/src/db/defaultData/employeeImport.ts.html +1 -1
  183. package/coverage/lcov-report/src/db/defaultData/expensesImport.ts.html +1 -1
  184. package/coverage/lcov-report/src/db/defaultData/index.html +1 -1
  185. package/coverage/lcov-report/src/db/defaultData/inventoryImport.ts.html +1 -1
  186. package/coverage/lcov-report/src/db/defaultData/jobsImport.ts.html +1 -1
  187. package/coverage/lcov-report/src/db/dynamoClient.ts.html +1 -1
  188. package/coverage/lcov-report/src/db/inMemoryView.ts.html +1 -1
  189. package/coverage/lcov-report/src/db/index.html +1 -1
  190. package/coverage/lcov-report/src/db/index.ts.html +1 -1
  191. package/coverage/lcov-report/src/db/linkedRows/LinkController.ts.html +1 -1
  192. package/coverage/lcov-report/src/db/linkedRows/LinkDocument.ts.html +1 -1
  193. package/coverage/lcov-report/src/db/linkedRows/index.html +1 -1
  194. package/coverage/lcov-report/src/db/linkedRows/index.ts.html +1 -1
  195. package/coverage/lcov-report/src/db/linkedRows/linkUtils.ts.html +1 -1
  196. package/coverage/lcov-report/src/db/newid.ts.html +1 -1
  197. package/coverage/lcov-report/src/db/utils.ts.html +1 -1
  198. package/coverage/lcov-report/src/definitions/automations.ts.html +1 -1
  199. package/coverage/lcov-report/src/definitions/datasource.ts.html +1 -1
  200. package/coverage/lcov-report/src/definitions/index.html +1 -1
  201. package/coverage/lcov-report/src/environment.ts.html +1 -1
  202. package/coverage/lcov-report/src/events/AutomationEmitter.ts.html +1 -1
  203. package/coverage/lcov-report/src/events/BudibaseEmitter.ts.html +1 -1
  204. package/coverage/lcov-report/src/events/index.html +1 -1
  205. package/coverage/lcov-report/src/events/index.ts.html +1 -1
  206. package/coverage/lcov-report/src/events/utils.ts.html +1 -1
  207. package/coverage/lcov-report/src/index.html +11 -11
  208. package/coverage/lcov-report/src/index.ts.html +1 -1
  209. package/coverage/lcov-report/src/integrations/airtable.ts.html +1 -1
  210. package/coverage/lcov-report/src/integrations/arangodb.ts.html +1 -1
  211. package/coverage/lcov-report/src/integrations/base/index.html +1 -1
  212. package/coverage/lcov-report/src/integrations/base/query.ts.html +1 -1
  213. package/coverage/lcov-report/src/integrations/base/sql.ts.html +1 -1
  214. package/coverage/lcov-report/src/integrations/base/sqlTable.ts.html +1 -1
  215. package/coverage/lcov-report/src/integrations/base/utils.ts.html +1 -1
  216. package/coverage/lcov-report/src/integrations/couchdb.ts.html +1 -1
  217. package/coverage/lcov-report/src/integrations/dynamodb.ts.html +1 -1
  218. package/coverage/lcov-report/src/integrations/elasticsearch.ts.html +1 -1
  219. package/coverage/lcov-report/src/integrations/firebase.ts.html +1 -1
  220. package/coverage/lcov-report/src/integrations/googlesheets.ts.html +1 -1
  221. package/coverage/lcov-report/src/integrations/index.html +1 -1
  222. package/coverage/lcov-report/src/integrations/index.ts.html +1 -1
  223. package/coverage/lcov-report/src/integrations/microsoftSqlServer.ts.html +1 -1
  224. package/coverage/lcov-report/src/integrations/mongodb.ts.html +1 -1
  225. package/coverage/lcov-report/src/integrations/mysql.ts.html +1 -1
  226. package/coverage/lcov-report/src/integrations/oracle.ts.html +1 -1
  227. package/coverage/lcov-report/src/integrations/postgres.ts.html +1 -1
  228. package/coverage/lcov-report/src/integrations/queries/index.html +1 -1
  229. package/coverage/lcov-report/src/integrations/queries/sql.ts.html +1 -1
  230. package/coverage/lcov-report/src/integrations/redis.ts.html +1 -1
  231. package/coverage/lcov-report/src/integrations/rest.ts.html +1 -1
  232. package/coverage/lcov-report/src/integrations/s3.ts.html +1 -1
  233. package/coverage/lcov-report/src/integrations/snowflake.ts.html +1 -1
  234. package/coverage/lcov-report/src/integrations/tests/TestConfiguration.js.html +1 -1
  235. package/coverage/lcov-report/src/integrations/tests/index.html +1 -1
  236. package/coverage/lcov-report/src/integrations/utils.ts.html +1 -1
  237. package/coverage/lcov-report/src/middleware/appInfo.ts.html +1 -1
  238. package/coverage/lcov-report/src/middleware/authorized.ts.html +1 -1
  239. package/coverage/lcov-report/src/middleware/builder.ts.html +1 -1
  240. package/coverage/lcov-report/src/middleware/currentapp.ts.html +1 -1
  241. package/coverage/lcov-report/src/middleware/index.html +1 -1
  242. package/coverage/lcov-report/src/middleware/joi-validator.ts.html +1 -1
  243. package/coverage/lcov-report/src/middleware/publicApi.ts.html +1 -1
  244. package/coverage/lcov-report/src/middleware/resourceId.ts.html +1 -1
  245. package/coverage/lcov-report/src/middleware/selfhost.ts.html +1 -1
  246. package/coverage/lcov-report/src/middleware/utils.ts.html +1 -1
  247. package/coverage/lcov-report/src/migrations/functions/appUrls.ts.html +1 -1
  248. package/coverage/lcov-report/src/migrations/functions/backfill/app/automations.ts.html +1 -1
  249. package/coverage/lcov-report/src/migrations/functions/backfill/app/datasources.ts.html +1 -1
  250. package/coverage/lcov-report/src/migrations/functions/backfill/app/index.html +1 -1
  251. package/coverage/lcov-report/src/migrations/functions/backfill/app/layouts.ts.html +1 -1
  252. package/coverage/lcov-report/src/migrations/functions/backfill/app/queries.ts.html +1 -1
  253. package/coverage/lcov-report/src/migrations/functions/backfill/app/roles.ts.html +1 -1
  254. package/coverage/lcov-report/src/migrations/functions/backfill/app/screens.ts.html +1 -1
  255. package/coverage/lcov-report/src/migrations/functions/backfill/app/tables.ts.html +1 -1
  256. package/coverage/lcov-report/src/migrations/functions/backfill/app.ts.html +1 -1
  257. package/coverage/lcov-report/src/migrations/functions/backfill/global/configs.ts.html +1 -1
  258. package/coverage/lcov-report/src/migrations/functions/backfill/global/index.html +1 -1
  259. package/coverage/lcov-report/src/migrations/functions/backfill/global/quotas.ts.html +1 -1
  260. package/coverage/lcov-report/src/migrations/functions/backfill/global/users.ts.html +1 -1
  261. package/coverage/lcov-report/src/migrations/functions/backfill/global.ts.html +1 -1
  262. package/coverage/lcov-report/src/migrations/functions/backfill/index.html +1 -1
  263. package/coverage/lcov-report/src/migrations/functions/backfill/index.ts.html +1 -1
  264. package/coverage/lcov-report/src/migrations/functions/backfill/installation.ts.html +1 -1
  265. package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
  266. package/coverage/lcov-report/src/migrations/functions/syncQuotas.ts.html +1 -1
  267. package/coverage/lcov-report/src/migrations/functions/tableSettings.ts.html +1 -1
  268. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.html +1 -1
  269. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.ts.html +1 -1
  270. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncApps.ts.html +1 -1
  271. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncPlugins.ts.html +1 -1
  272. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncRows.ts.html +1 -1
  273. package/coverage/lcov-report/src/migrations/functions/userEmailViewCasing.ts.html +1 -1
  274. package/coverage/lcov-report/src/migrations/index.html +1 -1
  275. package/coverage/lcov-report/src/migrations/index.ts.html +1 -1
  276. package/coverage/lcov-report/src/migrations/tests/helpers.ts.html +1 -1
  277. package/coverage/lcov-report/src/migrations/tests/index.html +1 -1
  278. package/coverage/lcov-report/src/migrations/tests/structures.ts.html +1 -1
  279. package/coverage/lcov-report/src/sdk/app/applications/index.html +1 -1
  280. package/coverage/lcov-report/src/sdk/app/applications/index.ts.html +1 -1
  281. package/coverage/lcov-report/src/sdk/app/applications/sync.ts.html +1 -1
  282. package/coverage/lcov-report/src/sdk/app/applications/utils.ts.html +1 -1
  283. package/coverage/lcov-report/src/sdk/app/automations/index.html +1 -1
  284. package/coverage/lcov-report/src/sdk/app/automations/index.ts.html +1 -1
  285. package/coverage/lcov-report/src/sdk/app/automations/webhook.ts.html +1 -1
  286. package/coverage/lcov-report/src/sdk/app/backups/constants.ts.html +1 -1
  287. package/coverage/lcov-report/src/sdk/app/backups/exports.ts.html +1 -1
  288. package/coverage/lcov-report/src/sdk/app/backups/imports.ts.html +1 -1
  289. package/coverage/lcov-report/src/sdk/app/backups/index.html +1 -1
  290. package/coverage/lcov-report/src/sdk/app/backups/index.ts.html +1 -1
  291. package/coverage/lcov-report/src/sdk/app/backups/statistics.ts.html +1 -1
  292. package/coverage/lcov-report/src/sdk/app/rows/attachments.ts.html +1 -1
  293. package/coverage/lcov-report/src/sdk/app/rows/index.html +1 -1
  294. package/coverage/lcov-report/src/sdk/app/rows/index.ts.html +1 -1
  295. package/coverage/lcov-report/src/sdk/app/rows/rows.ts.html +1 -1
  296. package/coverage/lcov-report/src/sdk/app/tables/index.html +1 -1
  297. package/coverage/lcov-report/src/sdk/app/tables/index.ts.html +1 -1
  298. package/coverage/lcov-report/src/sdk/index.html +1 -1
  299. package/coverage/lcov-report/src/sdk/index.ts.html +1 -1
  300. package/coverage/lcov-report/src/sdk/users/index.html +1 -1
  301. package/coverage/lcov-report/src/sdk/users/index.ts.html +1 -1
  302. package/coverage/lcov-report/src/sdk/users/utils.ts.html +1 -1
  303. package/coverage/lcov-report/src/startup.ts.html +1 -1
  304. package/coverage/lcov-report/src/tests/utilities/TestConfiguration.ts.html +1 -1
  305. package/coverage/lcov-report/src/tests/utilities/controllers.ts.html +1 -1
  306. package/coverage/lcov-report/src/tests/utilities/index.html +1 -1
  307. package/coverage/lcov-report/src/tests/utilities/index.ts.html +1 -1
  308. package/coverage/lcov-report/src/tests/utilities/structures.ts.html +1 -1
  309. package/coverage/lcov-report/src/threads/automation.ts.html +1 -1
  310. package/coverage/lcov-report/src/threads/index.html +1 -1
  311. package/coverage/lcov-report/src/threads/index.ts.html +1 -1
  312. package/coverage/lcov-report/src/threads/query.ts.html +1 -1
  313. package/coverage/lcov-report/src/threads/utils.ts.html +1 -1
  314. package/coverage/lcov-report/src/utilities/budibaseDir.ts.html +1 -1
  315. package/coverage/lcov-report/src/utilities/centralPath.ts.html +1 -1
  316. package/coverage/lcov-report/src/utilities/csvParser.ts.html +1 -1
  317. package/coverage/lcov-report/src/utilities/fileSystem/app.ts.html +1 -1
  318. package/coverage/lcov-report/src/utilities/fileSystem/clientLibrary.ts.html +1 -1
  319. package/coverage/lcov-report/src/utilities/fileSystem/filesystem.ts.html +1 -1
  320. package/coverage/lcov-report/src/utilities/fileSystem/index.html +1 -1
  321. package/coverage/lcov-report/src/utilities/fileSystem/index.ts.html +1 -1
  322. package/coverage/lcov-report/src/utilities/fileSystem/plugin.ts.html +1 -1
  323. package/coverage/lcov-report/src/utilities/fileSystem/processor.ts.html +1 -1
  324. package/coverage/lcov-report/src/utilities/fileSystem/template.ts.html +1 -1
  325. package/coverage/lcov-report/src/utilities/global.ts.html +1 -1
  326. package/coverage/lcov-report/src/utilities/index.html +11 -11
  327. package/coverage/lcov-report/src/utilities/index.ts.html +1 -1
  328. package/coverage/lcov-report/src/utilities/redis.ts.html +1 -1
  329. package/coverage/lcov-report/src/utilities/routing/index.html +1 -1
  330. package/coverage/lcov-report/src/utilities/routing/index.ts.html +1 -1
  331. package/coverage/lcov-report/src/utilities/rowProcessor/index.html +1 -1
  332. package/coverage/lcov-report/src/utilities/rowProcessor/index.ts.html +1 -1
  333. package/coverage/lcov-report/src/utilities/rowProcessor/map.ts.html +1 -1
  334. package/coverage/lcov-report/src/utilities/rowProcessor/utils.ts.html +1 -1
  335. package/coverage/lcov-report/src/utilities/scriptRunner.ts.html +1 -1
  336. package/coverage/lcov-report/src/utilities/security.ts.html +1 -1
  337. package/coverage/lcov-report/src/utilities/usageQuota/index.html +1 -1
  338. package/coverage/lcov-report/src/utilities/usageQuota/rows.ts.html +1 -1
  339. package/coverage/lcov-report/src/utilities/usageQuota/usageQuoteReset.ts.html +1 -1
  340. package/coverage/lcov-report/src/utilities/users.ts.html +1 -1
  341. package/coverage/lcov-report/src/utilities/workerRequests.ts.html +34 -7
  342. package/coverage/lcov-report/src/watch.ts.html +1 -1
  343. package/coverage/lcov-report/src/websocket.ts.html +1 -1
  344. package/coverage/lcov.info +135 -133
  345. package/dist/app.js +1 -0
  346. package/dist/package.json +6 -6
  347. package/dist/tsconfig.build.tsbuildinfo +1 -1
  348. package/dist/utilities/workerRequests.js +2 -0
  349. package/package.json +7 -7
  350. package/src/app.ts +3 -1
  351. package/src/utilities/workerRequests.ts +10 -1
@@ -942,7 +942,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
942
942
  `),t=K("i"),i=oe(r),a=oe("?"),o=oe(`
943
943
  This action cannot be undone.`)},m(s,l){C(s,e,l),C(s,t,l),j(t,i),j(t,a),C(s,o,l)},p(s,l){l&1&&r!==(r=s[0].name+"")&&ht(i,r)},d(s){s&&M(e),s&&M(t),s&&M(o)}}}function Kft(n){let e,t,r,i,a,o;e=new lu({props:{$$slots:{control:[Gft],default:[Wft]},$$scope:{ctx:n}}});let s={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[Yft]},$$scope:{ctx:n}};r=new Fl({props:s}),n[5](r);let l={automation:n[0]};return a=new jft({props:l}),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 Xft(n,e,t){let r,i;Ne(n,Dr,d=>t(7,r=d)),Ne(n,ai,d=>t(8,i=d));let{automation:a}=e,o,s;async function l(){try{await Dr.actions.delete(a),bt.success("Automation deleted successfully"),i("../automate")}catch{bt.error("Error deleting automation")}}async function u(){try{await Dr.actions.duplicate(a),bt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{bt.error("Error duplicating automation")}}function c(d){De[d?"unshift":"push"](()=>{o=d,t(1,o)})}function f(d){De[d?"unshift":"push"](()=>{s=d,t(2,s)})}return n.$$set=d=>{"automation"in d&&t(0,a=d.automation)},[a,o,s,l,u,c,f]}class Jft extends Ve{constructor(e){super(),Pe(this,e,Xft,Kft,He,{automation:0})}}function gj(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function Qft(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 vj(n){let e,t;function r(){return n[3](n[5])}return e=new Np({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[Qft]},$$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 Zft(n){let e,t,r=n[0].automations.sort(_j),i=[];for(let o=0;o<r.length;o+=1)i[o]=vj(gj(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,s){C(o,e,s);for(let l=0;l<i.length;l+=1)i[l].m(e,null);t=!0},p(o,[s]){if(s&7){r=o[0].automations.sort(_j);let l;for(l=0;l<r.length;l+=1){const u=gj(o,r,l);i[l]?(i[l].p(u,s),b(i[l],1)):(i[l]=vj(u),i[l].c(),b(i[l],1),i[l].m(e,null))}for(ye(),l=r.length;l<i.length;l+=1)a(l);$e()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)b(i[s]);t=!0}},o(o){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)$(i[s]);t=!1},d(o){o&&M(e),Dn(i,o)}}}const _j=n=>n.name;function e2t(n,e,t){let r,i,a;Ne(n,ai,l=>t(4,i=l)),Ne(n,Dr,l=>t(0,a=l)),rr(async()=>{try{await Dr.actions.fetch()}catch{bt.error("Error getting automations list")}});function o(l){Dr.actions.select(l),i(`./${l._id}`)}const s=l=>o(l);return n.$$.update=()=>{var l,u;n.$$.dirty&1&&t(1,r=(u=(l=a.selectedAutomation)==null?void 0:l.automation)==null?void 0:u._id)},[a,r,o,s]}class t2t extends Ve{constructor(e){super(),Pe(this,e,e2t,Zft,He,{})}}function bj(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function n2t(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
944
944
  start with a trigger.`)},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function r2t(n){let e;return{c(){e=oe("Triggers")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function i2t(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+"")&&ht(t,e)},d(r){r&&M(t)}}}function yj(n){let e,t,r,i,a,o,s,l,u,c;r=new cn({props:{name:n[18].icon}}),o=new Rt({props:{size:"S",$$slots:{default:[i2t]},$$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),s=q(),D(a,"class","icon-spacing svelte-1735451"),D(t,"class","item-body svelte-1735451"),D(e,"class","item svelte-1735451"),Te(e,"selected",n[2]===n[18].name)},m(d,m){C(d,e,m),j(e,t),O(r,t,null),j(t,i),j(t,a),O(o,a,null),j(e,s),l=!0,u||(c=Mt(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&&Te(e,"selected",n[2]===n[18].name)},i(d){l||(b(r.$$.fragment,d),b(o.$$.fragment,d),l=!0)},o(d){$(r.$$.fragment,d),$(o.$$.fragment,d),l=!1},d(d){d&&M(e),B(r),B(o),u=!1,c()}}}function a2t(n){let e,t,r,i;e=new Rt({props:{size:"S",$$slots:{default:[r2t]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let l=0;l<a.length;l+=1)o[l]=yj(bj(n,a,l));const s=l=>$(o[l],1,1,()=>{o[l]=null});return{c(){H(e.$$.fragment),t=q(),r=K("div");for(let l=0;l<o.length;l+=1)o[l].c();D(r,"class","item-list svelte-1735451")},m(l,u){O(e,l,u),C(l,t,u),C(l,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(l,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:l}),e.$set(c),u&76){a=l[3];let f;for(f=0;f<a.length;f+=1){const d=bj(l,a,f);o[f]?(o[f].p(d,u),b(o[f],1)):(o[f]=yj(d),o[f].c(),b(o[f],1),o[f].m(r,null))}for(ye(),f=a.length;f<o.length;f+=1)s(f);$e()}},i(l){if(!i){b(e.$$.fragment,l);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(l){$(e.$$.fragment,l),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(l){B(e,l),l&&M(t),l&&M(r),Dn(o,l)}}}function o2t(n){let e,t,r,i,a,o,s,l,u,c;e=new q_({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 Rt({props:{size:"XS",$$slots:{default:[n2t]},$$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 Cn({props:m}),De.push(()=>rt(a,"value",f)),De.push(()=>rt(a,"error",d)),a.$on("input",n[12]),u=new It({props:{noPadding:!0,$$slots:{default:[a2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment),l=q(),H(u.$$.fragment)},m(_,y){O(e,_,y),C(_,t,y),O(r,_,y),C(_,i,y),O(a,_,y),C(_,l,y),O(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const z={};!o&&y&1&&(o=!0,z.value=_[0],it(()=>o=!1)),!s&&y&16&&(s=!0,z.error=_[4],it(()=>s=!1)),a.$set(z);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(l),B(u,_)}}}function l2t(n){let e,t;return e=new vr({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[o2t]},$$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 s2t(n,e,t){let r,i,a,o,s,l;Ne(n,Dr,I=>t(8,o=I)),Ne(n,ai,I=>t(16,s=I)),Ne(n,I5,I=>t(9,l=I));let u,c,f=!1,d,{webhookModal:m}=e;async function _(){var I;try{await Dr.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);Dr.actions.addBlockToAutomation(P),d.stepId===N6.WEBHOOK&&m.show,await Dr.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),bt.success(`Automation ${u} created`),s(`./${o.selectedAutomation.automation._id}`)}catch{bt.error("Error creating automation")}}const y=I=>{d=I,t(2,c=I.name)};function w(I){u=I,t(0,u)}function z(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=l._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,l,w,z,L,T]}class IZ extends Ve{constructor(e){super(),Pe(this,e,s2t,l2t,He,{webhookModal:7})}}function u2t(n){let e;return{c(){e=oe("Add automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function c2t(n){let e,t;return e=new vn({props:{cta:!0,wide:!0,$$slots:{default:[u2t]},$$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 f2t(n){let e,t;return e=new IZ({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 p2t(n){let e,t,r,i,a,o;e=new It({props:{paddingX:"L",paddingY:"L",gap:"S",$$slots:{default:[c2t]},$$scope:{ctx:n}}}),r=new t2t({});let s={$$slots:{default:[f2t]},$$scope:{ctx:n}};return a=new ir({props:s}),n[2](a),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment)},m(l,u){O(e,l,u),C(l,t,u),O(r,l,u),C(l,i,u),O(a,l,u),o=!0},p(l,u){const c={};u&9&&(c.$$scope={dirty:u,ctx:l}),e.$set(c);const f={};u&10&&(f.$$scope={dirty:u,ctx:l}),a.$set(f)},i(l){o||(b(e.$$.fragment,l),b(r.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(e.$$.fragment,l),$(r.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){B(e,l),l&&M(t),B(r,l),l&&M(i),n[2](null),B(a,l)}}}function d2t(n){let e,t;return e=new V1({props:{title:"Automations",$$slots:{default:[p2t]},$$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 h2t(n){let e,t,r;return t=new q2({props:{selected:"Automations",$$slots:{default:[d2t]},$$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 m2t(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){De[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 g2t extends Ve{constructor(e){super(),Pe(this,e,m2t,h2t,He,{modal:0,webhookModal:1})}}function $j(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function wj(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let s={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&&(s.showParameters=n[3]),e=new HZ({props:s}),De.push(()=>rt(e,"showParameters",o));let l=n[3]&&n[3][n[8].id]&&kj(n);return{c(){H(e.$$.fragment),r=q(),l&&l.c(),i=vt()},m(c,f){O(e,c,f),C(c,r,f),l&&l.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],it(()=>t=!1)),e.$set(d),c[3]&&c[3][c[8].id]?l?(l.p(c,f),f&10&&b(l,1)):(l=kj(c),l.c(),b(l,1),l.m(i.parentNode,i)):l&&(ye(),$(l,1,1,()=>{l=null}),$e())},i(c){a||(b(e.$$.fragment,c),b(l),a=!0)},o(c){$(e.$$.fragment,c),$(l),a=!1},d(c){B(e,c),c&&M(r),l&&l.d(c),c&&M(i)}}}function kj(n){var l,u;let e,t,r,i,a,o;e=new ui({props:{noMargin:!0}});let s=((u=(l=n[2])==null?void 0:l[n[10]])==null?void 0:u.outputs.iterations)&&zj(n);return a=new q2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[y2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),s&&s.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),s&&s.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?s?(s.p(c,f),f&4&&b(s,1)):(s=zj(c),s.c(),b(s,1),s.m(r.parentNode,r)):s&&(ye(),$(s,1,1,()=>{s=null}),$e());const d={};f&2052&&(d.$$scope={dirty:f,ctx:c}),a.$set(d)},i(c){o||(b(e.$$.fragment,c),b(s),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(s),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&M(t),s&&s.d(c),c&&M(r),c&&M(i),B(a)}}}function zj(n){let e,t,r,i,a,o;return t=new cn({props:{name:"Reuse"}}),a=new ln({props:{$$slots:{default:[v2t]},$$scope:{ctx:n}}}),{c(){e=K("div"),H(t.$$.fragment),r=q(),i=K("div"),H(a.$$.fragment),wn(i,"margin-left","10px"),wn(e,"display","flex"),wn(e,"padding","10px 10px 0px 12px")},m(s,l){C(s,e,l),O(t,e,null),j(e,r),j(e,i),O(a,i,null),o=!0},p(s,l){const u={};l&2052&&(u.$$scope={dirty:l,ctx:s}),a.$set(u)},i(s){o||(b(t.$$.fragment,s),b(a.$$.fragment,s),o=!0)},o(s){$(t.$$.fragment,s),$(a.$$.fragment,s),o=!1},d(s){s&&M(e),B(t),B(a)}}}function v2t(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(s,l){C(s,e,l),C(s,r,l),C(s,i,l)},p(s,l){var u,c;l&4&&t!==(t=((c=(u=s[2])==null?void 0:u[s[10]])==null?void 0:c.outputs.iterations)+"")&&ht(r,t)},d(s){s&&M(e),s&&M(r),s&&M(i)}}}function _2t(n){var r,i;let e,t;return e=new e4({props:{minHeight:"80px",disabled:!0,value:T_((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 l,u;const s={};o&4&&(s.value=T_((u=(l=a[2])==null?void 0:l[a[10]])==null?void 0:u.inputs,"No input")),e.$set(s)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function b2t(n){var r,i;let e,t;return e=new e4({props:{minHeight:"100px",disabled:!0,value:T_((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 l,u;const s={};o&4&&(s.value=T_((u=(l=a[2])==null?void 0:l[a[10]])==null?void 0:u.outputs,"No output")),e.$set(s)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function y2t(n){let e,t,r,i;return e=new V1({props:{title:"Input",$$slots:{default:[_2t]},$$scope:{ctx:n}}}),r=new V1({props:{title:"Output",$$slots:{default:[b2t]},$$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 s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),e.$set(s);const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},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 Aj(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 Mj(n){let e,t,r,i,a,o=n[8].stepId!==Z3.LOOP&&wj(n),s=n[1].length-1!==n[10]&&Aj();return{c(){e=K("div"),o&&o.c(),r=q(),s&&s.c(),i=vt(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(l,u){C(l,e,u),o&&o.m(e,null),C(l,r,u),s&&s.m(l,u),C(l,i,u),a=!0},p(l,u){l[8].stepId!==Z3.LOOP?o?(o.p(l,u),u&2&&b(o,1)):(o=wj(l),o.c(),b(o,1),o.m(e,null)):o&&(ye(),$(o,1,1,()=>{o=null}),$e()),(!a||u&1&&t!==(t=l[0]?`width: ${l[0]}`:""))&&D(e,"style",t),l[1].length-1!==l[10]?s||(s=Aj(),s.c(),s.m(i.parentNode,i)):s&&(s.d(1),s=null)},i(l){a||(b(o),a=!0)},o(l){$(o),a=!1},d(l){l&&M(e),o&&o.d(),l&&M(r),s&&s.d(l),l&&M(i)}}}function $2t(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=Mj($j(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,s){C(o,e,s);for(let l=0;l<i.length;l+=1)i[l].m(e,null);t=!0},p(o,[s]){if(s&15){r=o[1];let l;for(l=0;l<r.length;l+=1){const u=$j(o,r,l);i[l]?(i[l].p(u,s),b(i[l],1)):(i[l]=Mj(u),i[l].c(),b(i[l],1),i[l].m(e,null))}for(ye(),l=r.length;l<i.length;l+=1)a(l);$e()}},i(o){if(!t){for(let s=0;s<r.length;s+=1)b(i[s]);t=!0}},o(o){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)$(i[s]);t=!1},d(o){o&&M(e),Dn(i,o)}}}function T_(n,e){return n?JSON.stringify(n,null,2):e}function w2t(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,s,l;function u(f){return f==null?void 0:f.steps.filter(d=>d.stepId!==Z3.LOOP||[])}function c(f){s=f,t(3,s)}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,l=[]),i)i.definition.trigger&&l.push(i.definition.trigger),t(1,l=l.concat(i.definition.steps||[]).filter(f=>f.stepId!==Z3.LOOP));else if(r){t(1,l=r||[]);let f=0;for(let d of l)d.id=f++}}},[o,l,r,s,i,a,c]}class PZ extends Ve{constructor(e){super(),Pe(this,e,w2t,$2t,He,{automation:4,testResults:5,width:0})}}function k2t(n){let e,t,r,i,a,o,s,l,u,c,f,d,m;return r=new cn({props:{name:"MultipleCheck"}}),l=new cn({props:{hoverable:!0,name:"Close"}}),l.$on("click",n[4]),c=new ui({}),d=new PZ({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(),s=K("div"),H(l.$$.fragment),u=q(),H(c.$$.fragment),f=q(),H(d.$$.fragment),wn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),wn(s,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){C(_,e,y),j(e,t),O(r,t,null),j(t,i),j(t,a),j(e,o),j(e,s),O(l,s,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(l.$$.fragment,_),b(c.$$.fragment,_),b(d.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(l.$$.fragment,_),$(c.$$.fragment,_),$(d.$$.fragment,_),m=!1},d(_){_&&M(e),B(r),B(l),_&&M(u),B(c,_),_&&M(f),B(d,_)}}}function z2t(n,e,t){let r;Ne(n,Dr,l=>t(1,r=l));let{automation:i}=e,a,o;const s=async()=>{x1(Dr,r.showTestPanel=!1,r)};return n.$$set=l=>{"automation"in l&&t(0,i=l.automation)},n.$$.update=()=>{var l;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!==Z3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(l=r.selectedAutomation)==null?void 0:l.testResults)},[i,r,o,a,s]}class A2t extends Ve{constructor(e){super(),Pe(this,e,z2t,k2t,He,{automation:0})}}function M2t(n){let e,t,r,i;return r=new It({props:{gap:"S",justifyItems:"center",$$slots:{default:[T2t]},$$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),j(e,t),O(r,t,null),i=!0},p(a,o){const s={};o&258&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&M(e),B(r)}}}function C2t(n){let e;const t=n[4].default,r=Qn(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)&&er(r,t,i,i[8],e?Zn(t,i[8],a,null):tr(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function S2t(n){let e;return{c(){e=oe("You have no automations")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function L2t(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 E2t(n){let e;return{c(){e=oe("Create automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function T2t(n){let e,t,r,i,a,o,s,l,u;return i=new In({props:{size:"M",$$slots:{default:[S2t]},$$scope:{ctx:n}}}),o=new Rt({props:{size:"M",$$slots:{default:[L2t]},$$scope:{ctx:n}}}),l=new vn({props:{size:"M",cta:!0,$$slots:{default:[E2t]},$$scope:{ctx:n}}}),l.$on("click",n[5]),{c(){e=ut("svg"),t=ut("use"),r=q(),H(i.$$.fragment),a=q(),H(o.$$.fragment),s=q(),H(l.$$.fragment),xr(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),j(e,t),C(c,r,f),O(i,c,f),C(c,a,f),O(o,c,f),C(c,s,f),O(l,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}),l.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(l.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(l.$$.fragment,c),u=!1},d(c){c&&M(e),c&&M(r),B(i,c),c&&M(a),B(o,c),c&&M(s),B(l,c)}}}function Cj(n){let e,t,r;return t=new A2t({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 D2t(n){let e,t;return e=new IZ({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 O2t(n){let e,t;return e=new nM({}),{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 B2t(n){let e,t,r,i,a,o,s,l,u,c,f,d,m;r=new g2t({props:{modal:n[1],webhookModal:n[2]}});const _=[C2t,M2t],y=[];function w(I,P){return I[3]?0:1}o=w(n),s=y[o]=_[o](n);let z=n[0].showTestPanel&&Cj(n),L={$$slots:{default:[D2t]},$$scope:{ctx:n}};c=new ir({props:L}),n[6](c);let T={width:"30%",$$slots:{default:[O2t]},$$scope:{ctx:n}};return d=new ir({props:T}),n[7](d),{c(){e=K("div"),t=K("div"),H(r.$$.fragment),i=q(),a=K("div"),s.c(),l=q(),z&&z.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),j(e,t),O(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,l),z&&z.m(e,null),j(e,u),O(c,e,null),j(e,f),O(d,e,null),m=!0},p(I,[P]){const F={};P&2&&(F.modal=I[1]),P&4&&(F.webhookModal=I[2]),r.$set(F);let U=o;o=w(I),o===U?y[o].p(I,P):(ye(),$(y[U],1,1,()=>{y[U]=null}),$e(),s=y[o],s?s.p(I,P):(s=y[o]=_[o](I),s.c()),b(s,1),s.m(a,null)),I[0].showTestPanel?z?(z.p(I,P),P&1&&b(z,1)):(z=Cj(I),z.c(),b(z,1),z.m(e,u)):z&&(ye(),$(z,1,1,()=>{z=null}),$e());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(s),b(z),b(c.$$.fragment,I),b(d.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(s),$(z),$(c.$$.fragment,I),$(d.$$.fragment,I),m=!1},d(I){I&&M(e),B(r),y[o].d(),z&&z.d(),n[6](null),B(c),n[7](null),B(d)}}}function H2t(n,e,t){let r,i;Ne(n,Dr,d=>t(0,i=d));let{$$slots:a={},$$scope:o}=e,s,l;rr(()=>{x1(Dr,i.showTestPanel=!1,i)});const u=()=>s.show();function c(d){De[d?"unshift":"push"](()=>{s=d,t(1,s)})}function f(d){De[d?"unshift":"push"](()=>{l=d,t(2,l)})}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,s,l,r,a,u,c,f,o]}class I2t extends Ve{constructor(e){super(),Pe(this,e,H2t,B2t,He,{})}}function P2t(n){let e,t,r,i,a,o,s;function l(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new Cn({props:u}),De.push(()=>rt(a,"value",l)),{c(){e=K("span"),e.textContent=`The changes you have made will be deleted and the application reverted
945
- 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),s=!0},p(c,f){const d={};!o&&f&4&&(o=!0,d.value=c[2],it(()=>o=!1)),a.$set(d)},i(c){s||(b(a.$$.fragment,c),s=!0)},o(c){$(a.$$.fragment,c),s=!1},d(c){c&&M(e),c&&M(t),c&&M(r),c&&M(i),B(a,c)}}}function V2t(n){let e,t;return e=new vr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[P2t]},$$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 R2t(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:[V2t]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,s){O(e,o,s),C(o,t,s),O(r,o,s),i=!0},p(o,[s]){n=o;const l={};s&133&&(l.$$scope={dirty:s,ctx:n}),r.$set(l)},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 N2t(n,e,t){let r,i;Ne(n,Jt,c=>t(0,i=c));let a,o;const s=async()=>{try{await en.revertAppChanges(r);const c=await en.fetchAppPackage(r);await Jt.actions.initialise(c),bt.info("Changes reverted successfully")}catch(c){bt.error(`Error reverting changes: ${c}`)}};function l(c){o=c,t(2,o)}function u(c){De[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,s,l,u]}class F2t extends Ve{constructor(e){super(),Pe(this,e,N2t,R2t,He,{})}}const j2t="@budibase/client",U2t="2.2.12-alpha.10",x2t="MPL-2.0",q2t="dist/budibase-client.js",W2t="dist/budibase-client.js",G2t="module",Y2t="src/index.js",K2t={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},X2t={build:"rollup -c","dev:builder":"rollup -cw"},J2t={"@budibase/bbui":"2.2.12-alpha.10","@budibase/frontend-core":"2.2.12-alpha.10","@budibase/string-templates":"2.2.12-alpha.10","@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"},Q2t={"@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"},Z2t={"loader-utils":"1.4.1"},e3t="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",oh={name:j2t,version:U2t,license:x2t,module:q2t,main:W2t,type:G2t,svelte:Y2t,exports:K2t,scripts:X2t,dependencies:J2t,devDependencies:Q2t,resolutions:Z2t,gitHead:e3t};function Sj(n){let e,t;return e=new t4({props:{hoverable:!0,notice:!0,$$slots:{default:[t3t]},$$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 t3t(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function n3t(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[i3t]},$$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 r3t(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[a3t]},$$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 i3t(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
945
+ 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),s=!0},p(c,f){const d={};!o&&f&4&&(o=!0,d.value=c[2],it(()=>o=!1)),a.$set(d)},i(c){s||(b(a.$$.fragment,c),s=!0)},o(c){$(a.$$.fragment,c),s=!1},d(c){c&&M(e),c&&M(t),c&&M(r),c&&M(i),B(a,c)}}}function V2t(n){let e,t;return e=new vr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[P2t]},$$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 R2t(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:[V2t]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,s){O(e,o,s),C(o,t,s),O(r,o,s),i=!0},p(o,[s]){n=o;const l={};s&133&&(l.$$scope={dirty:s,ctx:n}),r.$set(l)},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 N2t(n,e,t){let r,i;Ne(n,Jt,c=>t(0,i=c));let a,o;const s=async()=>{try{await en.revertAppChanges(r);const c=await en.fetchAppPackage(r);await Jt.actions.initialise(c),bt.info("Changes reverted successfully")}catch(c){bt.error(`Error reverting changes: ${c}`)}};function l(c){o=c,t(2,o)}function u(c){De[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,s,l,u]}class F2t extends Ve{constructor(e){super(),Pe(this,e,N2t,R2t,He,{})}}const j2t="@budibase/client",U2t="2.2.12-alpha.12",x2t="MPL-2.0",q2t="dist/budibase-client.js",W2t="dist/budibase-client.js",G2t="module",Y2t="src/index.js",K2t={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},X2t={build:"rollup -c","dev:builder":"rollup -cw"},J2t={"@budibase/bbui":"2.2.12-alpha.12","@budibase/frontend-core":"2.2.12-alpha.12","@budibase/string-templates":"2.2.12-alpha.12","@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"},Q2t={"@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"},Z2t={"loader-utils":"1.4.1"},e3t="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",oh={name:j2t,version:U2t,license:x2t,module:q2t,main:W2t,type:G2t,svelte:Y2t,exports:K2t,scripts:X2t,dependencies:J2t,devDependencies:Q2t,resolutions:Z2t,gitHead:e3t};function Sj(n){let e,t;return e=new t4({props:{hoverable:!0,notice:!0,$$slots:{default:[t3t]},$$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 t3t(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function n3t(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[i3t]},$$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 r3t(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[a3t]},$$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 i3t(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
946
946
  latest version available.`)},m(o,s){C(o,e,s),C(o,t,s),j(t,i),C(o,a,s)},p(o,s){s&2&&r!==(r=o[1].version+"")&&ht(i,r)},d(o){o&&M(e),o&&M(t),o&&M(a)}}}function a3t(n){let e,t,r=n[1].version+"",i,a,o,s;return{c(){e=oe("This app is currently using version "),t=K("b"),i=oe(r),a=oe(`, but version
947
947
  `),o=K("b"),o.textContent=`${oh.version}`,s=oe(` is available. Updates can contain new features,
948
948
  performance improvements and bug fixes.`)},m(l,u){C(l,e,u),C(l,t,u),j(t,i),C(l,a,u),C(l,o,u),C(l,s,u)},p(l,u){u&2&&r!==(r=l[1].version+"")&&ht(i,r)},d(l){l&&M(e),l&&M(t),l&&M(a),l&&M(o),l&&M(s)}}}function Lj(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[o3t]},$$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 o3t(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.68dc92bd.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.9e03c129.js"></script>
14
14
  <link rel="stylesheet" href="/builder/assets/index.fa480d5b.css">
15
15
  </head>
16
16
  <body id="app">
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1673461628618" clover="3.2.0">
3
- <project timestamp="1673461628618" name="All files">
4
- <metrics statements="10509" coveredstatements="7443" conditionals="3506" coveredconditionals="1892" methods="2392" coveredmethods="1757" elements="16407" coveredelements="11092" complexity="0" loc="10509" ncloc="10509" packages="59" files="279" classes="279"/>
2
+ <coverage generated="1673513265525" clover="3.2.0">
3
+ <project timestamp="1673513265525" name="All files">
4
+ <metrics statements="10511" coveredstatements="7445" conditionals="3506" coveredconditionals="1892" methods="2392" coveredmethods="1757" elements="16409" coveredelements="11094" complexity="0" loc="10511" ncloc="10511" packages="59" files="279" classes="279"/>
5
5
  <package name="src">
6
- <metrics statements="178" coveredstatements="105" conditionals="58" coveredconditionals="35" methods="33" coveredmethods="19"/>
6
+ <metrics statements="179" coveredstatements="106" conditionals="58" coveredconditionals="35" methods="33" coveredmethods="19"/>
7
7
  <file name="app.ts" path="/home/runner/work/budibase/budibase/packages/server/src/app.ts">
8
- <metrics statements="59" coveredstatements="31" conditionals="9" coveredconditionals="1" methods="10" coveredmethods="2"/>
8
+ <metrics statements="60" coveredstatements="32" conditionals="9" coveredconditionals="1" methods="10" coveredmethods="2"/>
9
9
  <line num="2" count="30" type="stmt"/>
10
10
  <line num="5" count="30" type="cond" truecount="0" falsecount="1"/>
11
11
  <line num="6" count="0" type="stmt"/>
@@ -25,46 +25,47 @@
25
25
  <line num="26" count="30" type="stmt"/>
26
26
  <line num="28" count="30" type="stmt"/>
27
27
  <line num="31" count="30" type="stmt"/>
28
- <line num="43" count="30" type="cond" truecount="0" falsecount="1"/>
29
- <line num="44" count="0" type="stmt"/>
30
- <line num="45" count="0" type="stmt"/>
28
+ <line num="43" count="30" type="stmt"/>
29
+ <line num="45" count="30" type="cond" truecount="0" falsecount="1"/>
30
+ <line num="46" count="0" type="stmt"/>
31
31
  <line num="47" count="0" type="stmt"/>
32
- <line num="48" count="0" type="stmt"/>
33
32
  <line num="49" count="0" type="stmt"/>
34
33
  <line num="50" count="0" type="stmt"/>
34
+ <line num="51" count="0" type="stmt"/>
35
35
  <line num="52" count="0" type="stmt"/>
36
- <line num="57" count="30" type="stmt"/>
37
- <line num="58" count="30" type="stmt"/>
36
+ <line num="54" count="0" type="stmt"/>
38
37
  <line num="59" count="30" type="stmt"/>
38
+ <line num="60" count="30" type="stmt"/>
39
39
  <line num="61" count="30" type="stmt"/>
40
- <line num="62" count="30" type="stmt"/>
41
40
  <line num="63" count="30" type="stmt"/>
42
- <line num="65" count="0" type="cond" truecount="0" falsecount="1"/>
43
- <line num="66" count="0" type="stmt"/>
41
+ <line num="64" count="30" type="stmt"/>
42
+ <line num="65" count="30" type="stmt"/>
43
+ <line num="67" count="0" type="cond" truecount="0" falsecount="1"/>
44
44
  <line num="68" count="0" type="stmt"/>
45
- <line num="69" count="0" type="stmt"/>
46
45
  <line num="70" count="0" type="stmt"/>
47
46
  <line num="71" count="0" type="stmt"/>
48
47
  <line num="72" count="0" type="stmt"/>
49
48
  <line num="73" count="0" type="stmt"/>
50
49
  <line num="74" count="0" type="stmt"/>
51
- <line num="75" count="0" type="cond" truecount="0" falsecount="1"/>
50
+ <line num="75" count="0" type="stmt"/>
52
51
  <line num="76" count="0" type="stmt"/>
53
- <line num="80" count="30" type="cond" truecount="1" falsecount="1"/>
54
- <line num="81" count="30" type="stmt"/>
55
- <line num="84" count="30" type="stmt"/>
56
- <line num="85" count="0" type="stmt"/>
52
+ <line num="77" count="0" type="cond" truecount="0" falsecount="1"/>
53
+ <line num="78" count="0" type="stmt"/>
54
+ <line num="82" count="30" type="cond" truecount="1" falsecount="1"/>
55
+ <line num="83" count="30" type="stmt"/>
56
+ <line num="86" count="30" type="stmt"/>
57
57
  <line num="87" count="0" type="stmt"/>
58
- <line num="90" count="30" type="stmt"/>
59
- <line num="93" count="0" type="cond" truecount="0" falsecount="3"/>
60
- <line num="94" count="0" type="stmt"/>
58
+ <line num="89" count="0" type="stmt"/>
59
+ <line num="92" count="30" type="stmt"/>
60
+ <line num="95" count="0" type="cond" truecount="0" falsecount="3"/>
61
61
  <line num="96" count="0" type="stmt"/>
62
- <line num="97" count="0" type="stmt"/>
63
62
  <line num="98" count="0" type="stmt"/>
64
- <line num="101" count="30" type="stmt"/>
65
- <line num="102" count="0" type="stmt"/>
66
- <line num="105" count="30" type="stmt"/>
67
- <line num="106" count="0" type="stmt"/>
63
+ <line num="99" count="0" type="stmt"/>
64
+ <line num="100" count="0" type="stmt"/>
65
+ <line num="103" count="30" type="stmt"/>
66
+ <line num="104" count="0" type="stmt"/>
67
+ <line num="107" count="30" type="stmt"/>
68
+ <line num="108" count="0" type="stmt"/>
68
69
  </file>
69
70
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/server/src/environment.ts">
70
71
  <metrics statements="26" coveredstatements="21" conditionals="25" coveredconditionals="22" methods="10" coveredmethods="9"/>
@@ -10630,7 +10631,7 @@
10630
10631
  </file>
10631
10632
  </package>
10632
10633
  <package name="src.utilities">
10633
- <metrics statements="395" coveredstatements="274" conditionals="134" coveredconditionals="78" methods="132" coveredmethods="87"/>
10634
+ <metrics statements="396" coveredstatements="275" conditionals="134" coveredconditionals="78" methods="132" coveredmethods="87"/>
10634
10635
  <file name="budibaseDir.ts" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/budibaseDir.ts">
10635
10636
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
10636
10637
  <line num="1" count="59" type="stmt"/>
@@ -10991,70 +10992,71 @@
10991
10992
  <line num="48" count="3" type="stmt"/>
10992
10993
  </file>
10993
10994
  <file name="workerRequests.ts" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/workerRequests.ts">
10994
- <metrics statements="63" coveredstatements="27" conditionals="19" coveredconditionals="12" methods="23" coveredmethods="6"/>
10995
+ <metrics statements="64" coveredstatements="28" conditionals="19" coveredconditionals="12" methods="23" coveredmethods="6"/>
10995
10996
  <line num="1" count="35" type="stmt"/>
10996
10997
  <line num="2" count="35" type="stmt"/>
10997
10998
  <line num="3" count="35" type="stmt"/>
10998
- <line num="4" count="35" type="stmt"/>
10999
- <line num="5" count="35" type="stmt"/>
11000
- <line num="8" count="0" type="stmt"/>
11001
- <line num="9" count="29" type="cond" truecount="1" falsecount="0"/>
11002
- <line num="10" count="29" type="stmt"/>
11003
- <line num="12" count="29" type="cond" truecount="1" falsecount="0"/>
11004
- <line num="13" count="1" type="stmt"/>
11005
- <line num="14" count="1" type="cond" truecount="1" falsecount="0"/>
11006
- <line num="15" count="1" type="stmt"/>
11007
- <line num="18" count="29" type="cond" truecount="4" falsecount="0"/>
11008
- <line num="19" count="1" type="stmt"/>
10999
+ <line num="9" count="35" type="stmt"/>
11000
+ <line num="10" count="35" type="stmt"/>
11001
+ <line num="13" count="0" type="stmt"/>
11002
+ <line num="14" count="29" type="cond" truecount="1" falsecount="0"/>
11003
+ <line num="15" count="29" type="stmt"/>
11004
+ <line num="17" count="29" type="cond" truecount="1" falsecount="0"/>
11005
+ <line num="18" count="1" type="stmt"/>
11006
+ <line num="19" count="1" type="cond" truecount="1" falsecount="0"/>
11009
11007
  <line num="20" count="1" type="stmt"/>
11010
- <line num="25" count="28" type="stmt"/>
11011
- <line num="27" count="29" type="cond" truecount="3" falsecount="0"/>
11012
- <line num="28" count="2" type="stmt"/>
11013
- <line num="30" count="29" type="stmt"/>
11014
- <line num="38" count="29" type="cond" truecount="0" falsecount="1"/>
11015
- <line num="40" count="0" type="stmt"/>
11016
- <line num="41" count="0" type="stmt"/>
11017
- <line num="43" count="0" type="stmt"/>
11018
- <line num="45" count="0" type="stmt"/>
11019
- <line num="48" count="0" type="cond" truecount="0" falsecount="2"/>
11008
+ <line num="23" count="29" type="cond" truecount="4" falsecount="0"/>
11009
+ <line num="24" count="1" type="stmt"/>
11010
+ <line num="25" count="1" type="stmt"/>
11011
+ <line num="30" count="28" type="stmt"/>
11012
+ <line num="32" count="29" type="cond" truecount="3" falsecount="0"/>
11013
+ <line num="33" count="2" type="stmt"/>
11014
+ <line num="37" count="29" type="stmt"/>
11015
+ <line num="39" count="29" type="stmt"/>
11016
+ <line num="47" count="29" type="cond" truecount="0" falsecount="1"/>
11020
11017
  <line num="49" count="0" type="stmt"/>
11021
- <line num="51" count="0" type="stmt"/>
11022
- <line num="54" count="29" type="stmt"/>
11023
- <line num="58" count="1" type="stmt"/>
11024
- <line num="68" count="1" type="stmt"/>
11025
- <line num="84" count="1" type="stmt"/>
11026
- <line num="87" count="0" type="stmt"/>
11027
- <line num="88" count="0" type="stmt"/>
11028
- <line num="89" count="0" type="stmt"/>
11029
- <line num="94" count="0" type="stmt"/>
11030
- <line num="95" count="0" type="cond" truecount="0" falsecount="1"/>
11018
+ <line num="50" count="0" type="stmt"/>
11019
+ <line num="52" count="0" type="stmt"/>
11020
+ <line num="54" count="0" type="stmt"/>
11021
+ <line num="57" count="0" type="cond" truecount="0" falsecount="2"/>
11022
+ <line num="58" count="0" type="stmt"/>
11023
+ <line num="60" count="0" type="stmt"/>
11024
+ <line num="63" count="29" type="stmt"/>
11025
+ <line num="67" count="1" type="stmt"/>
11026
+ <line num="77" count="1" type="stmt"/>
11027
+ <line num="93" count="1" type="stmt"/>
11031
11028
  <line num="96" count="0" type="stmt"/>
11029
+ <line num="97" count="0" type="stmt"/>
11032
11030
  <line num="98" count="0" type="stmt"/>
11033
- <line num="101" count="28" type="stmt"/>
11034
- <line num="102" count="28" type="stmt"/>
11035
- <line num="103" count="28" type="stmt"/>
11036
- <line num="109" count="28" type="stmt"/>
11037
- <line num="112" count="0" type="stmt"/>
11038
- <line num="113" count="0" type="stmt"/>
11039
- <line num="118" count="0" type="stmt"/>
11031
+ <line num="103" count="0" type="stmt"/>
11032
+ <line num="104" count="0" type="cond" truecount="0" falsecount="1"/>
11033
+ <line num="105" count="0" type="stmt"/>
11034
+ <line num="107" count="0" type="stmt"/>
11035
+ <line num="110" count="28" type="stmt"/>
11036
+ <line num="111" count="28" type="stmt"/>
11037
+ <line num="112" count="28" type="stmt"/>
11038
+ <line num="118" count="28" type="stmt"/>
11040
11039
  <line num="121" count="0" type="stmt"/>
11041
11040
  <line num="122" count="0" type="stmt"/>
11042
11041
  <line num="127" count="0" type="stmt"/>
11043
11042
  <line num="130" count="0" type="stmt"/>
11044
11043
  <line num="131" count="0" type="stmt"/>
11045
- <line num="138" count="0" type="stmt"/>
11046
- <line num="141" count="0" type="stmt"/>
11047
- <line num="142" count="0" type="stmt"/>
11048
- <line num="149" count="0" type="stmt"/>
11049
- <line num="152" count="0" type="stmt"/>
11050
- <line num="157" count="0" type="stmt"/>
11044
+ <line num="136" count="0" type="stmt"/>
11045
+ <line num="139" count="0" type="stmt"/>
11046
+ <line num="140" count="0" type="stmt"/>
11047
+ <line num="147" count="0" type="stmt"/>
11048
+ <line num="150" count="0" type="stmt"/>
11049
+ <line num="151" count="0" type="stmt"/>
11050
+ <line num="158" count="0" type="stmt"/>
11051
11051
  <line num="161" count="0" type="stmt"/>
11052
- <line num="164" count="0" type="stmt"/>
11053
- <line num="165" count="0" type="stmt"/>
11054
- <line num="169" count="0" type="stmt"/>
11055
- <line num="172" count="0" type="stmt"/>
11052
+ <line num="166" count="0" type="stmt"/>
11053
+ <line num="170" count="0" type="stmt"/>
11056
11054
  <line num="173" count="0" type="stmt"/>
11057
- <line num="177" count="0" type="stmt"/>
11055
+ <line num="174" count="0" type="stmt"/>
11056
+ <line num="178" count="0" type="stmt"/>
11057
+ <line num="181" count="0" type="stmt"/>
11058
+ <line num="182" count="0" type="stmt"/>
11059
+ <line num="186" count="0" type="stmt"/>
11058
11060
  </file>
11059
11061
  </package>
11060
11062
  <package name="src.utilities.fileSystem">