@budibase/server 2.1.40-alpha.1 → 2.1.40-alpha.3

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 (334) hide show
  1. package/builder/assets/{index.fce502b3.js → index.87988646.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +96 -96
  4. package/coverage/coverage-final.json +1 -1
  5. package/coverage/lcov-report/index.html +5 -5
  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/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 +1 -1
  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 +1 -1
  264. package/coverage/lcov-report/src/migrations/functions/syncQuotas.ts.html +1 -1
  265. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.html +1 -1
  266. package/coverage/lcov-report/src/migrations/functions/usageQuotas/index.ts.html +1 -1
  267. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncApps.ts.html +1 -1
  268. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncPlugins.ts.html +1 -1
  269. package/coverage/lcov-report/src/migrations/functions/usageQuotas/syncRows.ts.html +1 -1
  270. package/coverage/lcov-report/src/migrations/functions/userEmailViewCasing.ts.html +1 -1
  271. package/coverage/lcov-report/src/migrations/index.html +1 -1
  272. package/coverage/lcov-report/src/migrations/index.ts.html +1 -1
  273. package/coverage/lcov-report/src/migrations/tests/helpers.ts.html +1 -1
  274. package/coverage/lcov-report/src/migrations/tests/index.html +1 -1
  275. package/coverage/lcov-report/src/migrations/tests/structures.ts.html +1 -1
  276. package/coverage/lcov-report/src/sdk/app/automations/index.html +1 -1
  277. package/coverage/lcov-report/src/sdk/app/automations/index.ts.html +1 -1
  278. package/coverage/lcov-report/src/sdk/app/automations/webhook.ts.html +1 -1
  279. package/coverage/lcov-report/src/sdk/app/backups/constants.ts.html +1 -1
  280. package/coverage/lcov-report/src/sdk/app/backups/exports.ts.html +1 -1
  281. package/coverage/lcov-report/src/sdk/app/backups/imports.ts.html +1 -1
  282. package/coverage/lcov-report/src/sdk/app/backups/index.html +1 -1
  283. package/coverage/lcov-report/src/sdk/app/backups/index.ts.html +1 -1
  284. package/coverage/lcov-report/src/sdk/app/backups/statistics.ts.html +1 -1
  285. package/coverage/lcov-report/src/sdk/app/tables/index.html +1 -1
  286. package/coverage/lcov-report/src/sdk/app/tables/index.ts.html +1 -1
  287. package/coverage/lcov-report/src/sdk/index.html +1 -1
  288. package/coverage/lcov-report/src/sdk/index.ts.html +1 -1
  289. package/coverage/lcov-report/src/startup.ts.html +1 -1
  290. package/coverage/lcov-report/src/tests/utilities/TestConfiguration.ts.html +1 -1
  291. package/coverage/lcov-report/src/tests/utilities/controllers.ts.html +1 -1
  292. package/coverage/lcov-report/src/tests/utilities/index.html +1 -1
  293. package/coverage/lcov-report/src/tests/utilities/index.ts.html +1 -1
  294. package/coverage/lcov-report/src/tests/utilities/structures.ts.html +1 -1
  295. package/coverage/lcov-report/src/threads/automation.ts.html +1 -1
  296. package/coverage/lcov-report/src/threads/index.html +1 -1
  297. package/coverage/lcov-report/src/threads/index.ts.html +1 -1
  298. package/coverage/lcov-report/src/threads/query.ts.html +1 -1
  299. package/coverage/lcov-report/src/threads/utils.ts.html +1 -1
  300. package/coverage/lcov-report/src/utilities/budibaseDir.ts.html +1 -1
  301. package/coverage/lcov-report/src/utilities/centralPath.ts.html +1 -1
  302. package/coverage/lcov-report/src/utilities/csvParser.ts.html +1 -1
  303. package/coverage/lcov-report/src/utilities/fileSystem/clientLibrary.ts.html +1 -1
  304. package/coverage/lcov-report/src/utilities/fileSystem/index.html +5 -5
  305. package/coverage/lcov-report/src/utilities/fileSystem/index.ts.html +19 -7
  306. package/coverage/lcov-report/src/utilities/fileSystem/processor.ts.html +1 -1
  307. package/coverage/lcov-report/src/utilities/global.ts.html +1 -1
  308. package/coverage/lcov-report/src/utilities/index.html +1 -1
  309. package/coverage/lcov-report/src/utilities/index.ts.html +1 -1
  310. package/coverage/lcov-report/src/utilities/plugins.ts.html +1 -1
  311. package/coverage/lcov-report/src/utilities/redis.ts.html +1 -1
  312. package/coverage/lcov-report/src/utilities/routing/index.html +1 -1
  313. package/coverage/lcov-report/src/utilities/routing/index.ts.html +1 -1
  314. package/coverage/lcov-report/src/utilities/rowProcessor/index.html +1 -1
  315. package/coverage/lcov-report/src/utilities/rowProcessor/index.ts.html +1 -1
  316. package/coverage/lcov-report/src/utilities/rowProcessor/map.ts.html +1 -1
  317. package/coverage/lcov-report/src/utilities/rowProcessor/utils.ts.html +1 -1
  318. package/coverage/lcov-report/src/utilities/scriptRunner.ts.html +1 -1
  319. package/coverage/lcov-report/src/utilities/security.ts.html +1 -1
  320. package/coverage/lcov-report/src/utilities/statusCodes.ts.html +1 -1
  321. package/coverage/lcov-report/src/utilities/usageQuota/index.html +1 -1
  322. package/coverage/lcov-report/src/utilities/usageQuota/rows.ts.html +1 -1
  323. package/coverage/lcov-report/src/utilities/usageQuota/usageQuoteReset.ts.html +1 -1
  324. package/coverage/lcov-report/src/utilities/users.ts.html +1 -1
  325. package/coverage/lcov-report/src/utilities/workerRequests.ts.html +1 -1
  326. package/coverage/lcov-report/src/watch.ts.html +1 -1
  327. package/coverage/lcov-report/src/websocket.ts.html +1 -1
  328. package/coverage/lcov.info +120 -119
  329. package/dist/package.json +6 -6
  330. package/dist/tsconfig.build.tsbuildinfo +1 -1
  331. package/dist/utilities/fileSystem/index.js +4 -3
  332. package/package.json +7 -7
  333. package/src/api/routes/tests/view.spec.js +3 -3
  334. package/src/utilities/fileSystem/index.ts +7 -3
@@ -940,7 +940,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
940
940
  `),t=X("i"),i=le(r),a=le("?"),o=le(`
941
941
  This action cannot be undone.`)},m(l,s){C(l,e,s),C(l,t,s),j(t,i),j(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 H2t(n){let e,t,r,i,a,o;e=new ou({props:{$$slots:{control:[B2t],default:[D2t]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[O2t]},$$scope:{ctx:n}};r=new m0({props:l}),n[5](r);let s={automation:n[0]};return a=new S2t({props:s}),n[6](a),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment)},m(u,c){B(e,u,c),C(u,t,c),B(r,u,c),C(u,i,c),B(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&513&&(h.$$scope={dirty:c,ctx:u}),r.$set(h);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){O(e,u),u&&M(t),n[5](null),O(r,u),u&&M(i),n[6](null),O(a,u)}}}function I2t(n,e,t){let r,i;Re(n,Br,h=>t(7,r=h)),Re(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Br.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Br.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){Be[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){Be[h?"unshift":"push"](()=>{l=h,t(2,l)})}return n.$$set=h=>{"automation"in h&&t(0,a=h.automation)},[a,o,l,s,u,c,f]}class P2t extends Ve{constructor(e){super(),Pe(this,e,I2t,H2t,He,{automation:0})}}function aj(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function V2t(n){let e,t,r;return e=new P2t({props:{automation:n[5]}}),{c(){H(e.$$.fragment),t=q()},m(i,a){B(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){O(e,i),i&&M(t)}}}function oj(n){let e,t;function r(){return n[3](n[5])}return e=new N5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[V2t]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){H(e.$$.fragment)},m(i,a){B(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){O(e,i)}}}function R2t(n){let e,t,r=n[0].automations.sort(lj),i=[];for(let o=0;o<r.length;o+=1)i[o]=oj(aj(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=X("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(lj);let s;for(s=0;s<r.length;s+=1){const u=aj(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=oj(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},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 lj=n=>n.name;function N2t(n,e,t){let r,i,a;Re(n,si,s=>t(4,i=s)),Re(n,Br,s=>t(0,a=s)),rr(async()=>{try{await Br.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Br.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 F2t extends Ve{constructor(e){super(),Pe(this,e,N2t,R2t,He,{})}}function sj(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function j2t(n){let e;return{c(){e=le(`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 U2t(n){let e;return{c(){e=le("Triggers")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function x2t(n){let e=n[18].name+"",t;return{c(){t=le(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 uj(n){let e,t,r,i,a,o,l,s,u,c;r=new sn({props:{name:n[18].icon}}),o=new Rt({props:{size:"S",$$slots:{default:[x2t]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=X("div"),t=X("div"),H(r.$$.fragment),i=q(),a=X("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"),De(e,"selected",n[2]===n[18].name)},m(h,m){C(h,e,m),j(e,t),B(r,t,null),j(t,i),j(t,a),B(o,a,null),j(e,l),s=!0,u||(c=zt(e,"click",f),u=!0)},p(h,m){n=h;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&De(e,"selected",n[2]===n[18].name)},i(h){s||(b(r.$$.fragment,h),b(o.$$.fragment,h),s=!0)},o(h){$(r.$$.fragment,h),$(o.$$.fragment,h),s=!1},d(h){h&&M(e),O(r),O(o),u=!1,c()}}}function q2t(n){let e,t,r,i;e=new Rt({props:{size:"S",$$slots:{default:[U2t]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=uj(sj(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){H(e.$$.fragment),t=q(),r=X("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-1735451")},m(s,u){B(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 h=sj(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=uj(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for($e(),f=a.length;f<o.length;f+=1)l(f);we()}},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){O(e,s),s&&M(t),s&&M(r),Tn(o,s)}}}function W2t(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 Rt({props:{size:"XS",$$slots:{default:[j2t]},$$scope:{ctx:n}}});function f(_){n[10](_)}function h(_){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 An({props:m}),Be.push(()=>tt(a,"value",f)),Be.push(()=>tt(a,"error",h)),a.$on("input",n[12]),u=new Ot({props:{noPadding:!0,$$slots:{default:[q2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment),i=q(),H(a.$$.fragment),s=q(),H(u.$$.fragment)},m(_,y){B(e,_,y),C(_,t,y),B(r,_,y),C(_,i,y),B(a,_,y),C(_,s,y),B(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],rt(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],rt(()=>l=!1)),a.$set(A);const S={};y&2097164&&(S.$$scope={dirty:y,ctx:_}),u.$set(S)},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(_){O(e,_),_&&M(t),O(r,_),_&&M(i),O(a,_),_&&M(s),O(u,_)}}}function G2t(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:[W2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Y2t(n,e,t){let r,i,a,o,l,s;Re(n,Br,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,h,{webhookModal:m}=e;async function _(){var I;try{await Br.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Br.actions.addBlockToAutomation(P),h.stepId===V6.WEBHOOK&&m.show,await Br.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=>{h=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 S=()=>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,S,T]}class AZ extends Ve{constructor(e){super(),Pe(this,e,Y2t,G2t,He,{webhookModal:7})}}function K2t(n){let e;return{c(){e=le("Add automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function X2t(n){let e,t;return e=new gn({props:{cta:!0,wide:!0,$$slots:{default:[K2t]},$$scope:{ctx:n}}}),e.$on("click",function(){wn(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function J2t(n){let e,t;return e=new AZ({props:{webhookModal:n[1]}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Q2t(n){let e,t,r,i,a,o;e=new Ot({props:{paddingX:"L",paddingY:"L",gap:"S",$$slots:{default:[X2t]},$$scope:{ctx:n}}}),r=new F2t({});let l={$$slots:{default:[J2t]},$$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){B(e,s,u),C(s,t,u),B(r,s,u),C(s,i,u),B(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){O(e,s),s&&M(t),O(r,s),s&&M(i),n[2](null),O(a,s)}}}function Z2t(n){let e,t;return e=new E1({props:{title:"Automations",$$slots:{default:[Q2t]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function eft(n){let e,t,r;return t=new Z2({props:{selected:"Automations",$$slots:{default:[Z2t]},$$scope:{ctx:n}}}),{c(){e=X("div"),H(t.$$.fragment),D(e,"class","nav svelte-9wnw5f")},m(i,a){C(i,e,a),B(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),O(t)}}}function tft(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){Be[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 nft extends Ve{constructor(e){super(),Pe(this,e,tft,eft,He,{modal:0,webhookModal:1})}}function cj(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function fj(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 zZ({props:l}),Be.push(()=>tt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&pj(n);return{c(){H(e.$$.fragment),r=q(),s&&s.c(),i=bt()},m(c,f){B(e,c,f),C(c,r,f),s&&s.m(c,f),C(c,i,f),a=!0},p(c,f){var m;const h={};f&2&&(h.block=c[8]),f&4&&(h.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,h.showParameters=c[3],rt(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=pj(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){O(e,c),c&&M(r),s&&s.d(c),c&&M(i)}}}function pj(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)&&dj(n);return a=new Z2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[oft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),l&&l.c(),r=q(),i=X("div"),H(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){B(e,c,f),C(c,t,f),l&&l.m(c,f),C(c,r,f),C(c,i,f),B(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=dj(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&($e(),$(l,1,1,()=>{l=null}),we());const h={};f&2052&&(h.$$scope={dirty:f,ctx:c}),a.$set(h)},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){O(e,c),c&&M(t),l&&l.d(c),c&&M(r),c&&M(i),O(a)}}}function dj(n){let e,t,r,i,a,o;return t=new sn({props:{name:"Reuse"}}),a=new ln({props:{$$slots:{default:[rft]},$$scope:{ctx:n}}}),{c(){e=X("div"),H(t.$$.fragment),r=q(),i=X("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),B(t,e,null),j(e,r),j(e,i),B(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),O(t),O(a)}}}function rft(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=le("This loop ran "),r=le(t),i=le(" 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 ift(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){B(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){O(e,a)}}}function aft(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){B(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){O(e,a)}}}function oft(n){let e,t,r,i;return e=new E1({props:{title:"Input",$$slots:{default:[ift]},$$scope:{ctx:n}}}),r=new E1({props:{title:"Output",$$slots:{default:[aft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(a,o){B(e,a,o),C(a,t,o),B(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){O(e,a),a&&M(t),O(r,a)}}}function hj(n){let e;return{c(){e=X("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!==J3.LOOP&&fj(n),l=n[1].length-1!==n[10]&&hj();return{c(){e=X("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=fj(s),o.c(),b(o,1),o.m(e,null)):o&&($e(),$(o,1,1,()=>{o=null}),we()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=hj(),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 lft(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=mj(cj(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=X("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=cj(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=mj(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},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 sft(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(h=>h.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 h of s)h.id=f++}}},[o,s,r,l,i,a,c]}class MZ extends Ve{constructor(e){super(),Pe(this,e,sft,lft,He,{automation:4,testResults:5,width:0})}}function uft(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new sn({props:{name:"MultipleCheck"}}),s=new sn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new li({}),h=new MZ({props:{automation:n[0],testResults:n[2]}}),{c(){e=X("div"),t=X("div"),H(r.$$.fragment),i=q(),a=X("div"),a.textContent="Test Details",o=q(),l=X("div"),H(s.$$.fragment),u=q(),H(c.$$.fragment),f=q(),H(h.$$.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),j(e,t),B(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),B(s,l,null),C(_,u,y),B(c,_,y),C(_,f,y),B(h,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),h.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(h.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(h.$$.fragment,_),m=!1},d(_){_&&M(e),O(r),O(s),_&&M(u),O(c,_),_&&M(f),O(h,_)}}}function cft(n,e,t){let r;Re(n,Br,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{x1(Br,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 fft extends Ve{constructor(e){super(),Pe(this,e,cft,uft,He,{automation:0})}}function pft(n){let e,t,r,i;return r=new Ot({props:{gap:"S",justifyItems:"center",$$slots:{default:[vft]},$$scope:{ctx:n}}}),{c(){e=X("div"),t=X("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),B(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),O(r)}}}function dft(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 hft(n){let e;return{c(){e=le("You have no automations")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function mft(n){let e;return{c(){e=le("Let's fix that. Call the bots!")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function gft(n){let e;return{c(){e=le("Create automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function vft(n){let e,t,r,i,a,o,l,s,u;return i=new Hn({props:{size:"M",$$slots:{default:[hft]},$$scope:{ctx:n}}}),o=new Rt({props:{size:"M",$$slots:{default:[mft]},$$scope:{ctx:n}}}),s=new gn({props:{size:"M",cta:!0,$$slots:{default:[gft]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ut("svg"),t=ut("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),j(e,t),C(c,r,f),B(i,c,f),C(c,a,f),B(o,c,f),C(c,l,f),B(s,c,f),u=!0},p(c,f){const h={};f&256&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);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),O(i,c),c&&M(a),O(o,c),c&&M(l),O(s,c)}}}function gj(n){let e,t,r;return t=new fft({props:{automation:n[3]}}),{c(){e=X("div"),H(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){C(i,e,a),B(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),O(t)}}}function _ft(n){let e,t;return e=new AZ({props:{webhookModal:n[2]}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function bft(n){let e,t;return e=new tM({}),{c(){H(e.$$.fragment)},m(r,i){B(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){O(e,r)}}}function yft(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new nft({props:{modal:n[1],webhookModal:n[2]}});const _=[dft,pft],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&gj(n),S={$$slots:{default:[_ft]},$$scope:{ctx:n}};c=new tr({props:S}),n[6](c);let T={width:"30%",$$slots:{default:[bft]},$$scope:{ctx:n}};return h=new tr({props:T}),n[7](h),{c(){e=X("div"),t=X("div"),H(r.$$.fragment),i=q(),a=X("div"),l.c(),s=q(),A&&A.c(),u=q(),H(c.$$.fragment),f=q(),H(h.$$.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),B(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,s),A&&A.m(e,null),j(e,u),B(c,e,null),j(e,f),B(h,e,null),m=!0},p(I,[P]){const V={};P&2&&(V.modal=I[1]),P&4&&(V.webhookModal=I[2]),r.$set(V);let U=o;o=w(I),o===U?y[o].p(I,P):($e(),$(y[U],1,1,()=>{y[U]=null}),we(),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=gj(I),A.c(),b(A,1),A.m(e,u)):A&&($e(),$(A,1,1,()=>{A=null}),we());const x={};P&260&&(x.$$scope={dirty:P,ctx:I}),c.$set(x);const W={};P&256&&(W.$$scope={dirty:P,ctx:I}),h.$set(W)},i(I){m||(b(r.$$.fragment,I),b(l),b(A),b(c.$$.fragment,I),b(h.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(l),$(A),$(c.$$.fragment,I),$(h.$$.fragment,I),m=!1},d(I){I&&M(e),O(r),y[o].d(),A&&A.d(),n[6](null),O(c),n[7](null),O(h)}}}function $ft(n,e,t){let r,i;Re(n,Br,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;rr(()=>{x1(Br,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){Be[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){Be[h?"unshift":"push"](()=>{s=h,t(2,s)})}return n.$$set=h=>{"$$scope"in h&&t(8,o=h.$$scope)},n.$$.update=()=>{var h;n.$$.dirty&1&&t(3,r=((h=i.selectedAutomation)==null?void 0:h.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class wft extends Ve{constructor(e){super(),Pe(this,e,$ft,yft,He,{})}}function kft(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 An({props:u}),Be.push(()=>tt(a,"value",s)),{c(){e=X("span"),e.textContent=`The changes you have made will be deleted and the application reverted
943
- back to its production state.`,t=q(),r=X("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),B(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},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),O(a,c)}}}function zft(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:[kft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Aft(n){let e,t,r,i;e=new sn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){wn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[zft]},$$scope:{ctx:n}};return r=new tr({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,l){B(e,o,l),C(o,t,l),B(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){O(e,o),o&&M(t),n[5](null),O(r,o)}}}function Mft(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){Be[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Cft extends Ve{constructor(e){super(),Pe(this,e,Mft,Aft,He,{})}}const Sft="@budibase/client",Lft="2.1.40-alpha.0",Eft="MPL-2.0",Tft="dist/budibase-client.js",Dft="dist/budibase-client.js",Bft="module",Oft="src/index.js",Hft={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Ift={build:"rollup -c","dev:builder":"rollup -cw"},Pft={"@budibase/bbui":"2.1.40-alpha.0","@budibase/frontend-core":"2.1.40-alpha.0","@budibase/string-templates":"2.1.40-alpha.0","@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"},Vft={"@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"},Rft={"loader-utils":"1.4.1"},Nft="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",th={name:Sft,version:Lft,license:Eft,module:Tft,main:Dft,type:Bft,svelte:Oft,exports:Hft,scripts:Ift,dependencies:Pft,devDependencies:Vft,resolutions:Rft,gitHead:Nft};function vj(n){let e,t;return e=new Z3({props:{hoverable:!0,notice:!0,$$slots:{default:[Fft]},$$scope:{ctx:n}}}),e.$on("click",function(){wn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Fft(n){let e;return{c(){e=le("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function jft(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[xft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Uft(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[qft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function xft(n){let e,t,r=n[1].version+"",i,a;return{c(){e=le("This app is currently using version "),t=X("b"),i=le(r),a=le(` which is the
943
+ back to its production state.`,t=q(),r=X("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),B(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},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),O(a,c)}}}function zft(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:[kft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Aft(n){let e,t,r,i;e=new sn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){wn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[zft]},$$scope:{ctx:n}};return r=new tr({props:a}),n[5](r),{c(){H(e.$$.fragment),t=q(),H(r.$$.fragment)},m(o,l){B(e,o,l),C(o,t,l),B(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){O(e,o),o&&M(t),n[5](null),O(r,o)}}}function Mft(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){Be[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Cft extends Ve{constructor(e){super(),Pe(this,e,Mft,Aft,He,{})}}const Sft="@budibase/client",Lft="2.1.40-alpha.2",Eft="MPL-2.0",Tft="dist/budibase-client.js",Dft="dist/budibase-client.js",Bft="module",Oft="src/index.js",Hft={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Ift={build:"rollup -c","dev:builder":"rollup -cw"},Pft={"@budibase/bbui":"2.1.40-alpha.2","@budibase/frontend-core":"2.1.40-alpha.2","@budibase/string-templates":"2.1.40-alpha.2","@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"},Vft={"@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"},Rft={"loader-utils":"1.4.1"},Nft="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",th={name:Sft,version:Lft,license:Eft,module:Tft,main:Dft,type:Bft,svelte:Oft,exports:Hft,scripts:Ift,dependencies:Pft,devDependencies:Vft,resolutions:Rft,gitHead:Nft};function vj(n){let e,t;return e=new Z3({props:{hoverable:!0,notice:!0,$$slots:{default:[Fft]},$$scope:{ctx:n}}}),e.$on("click",function(){wn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Fft(n){let e;return{c(){e=le("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function jft(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[xft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Uft(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[qft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function xft(n){let e,t,r=n[1].version+"",i,a;return{c(){e=le("This app is currently using version "),t=X("b"),i=le(r),a=le(` which is the
944
944
  latest version available.`)},m(o,l){C(o,e,l),C(o,t,l),j(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 qft(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=le("This app is currently using version "),t=X("b"),i=le(r),a=le(`, but version
945
945
  `),o=X("b"),o.textContent=`${th.version}`,l=le(` 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),j(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 _j(n){let e,t;return e=new Rt({props:{size:"S",$$slots:{default:[Wft]},$$scope:{ctx:n}}}),{c(){H(e.$$.fragment)},m(r,i){B(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){O(e,r)}}}function Wft(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=le(`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.fce502b3.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.87988646.js"></script>
14
14
  <link rel="stylesheet" href="/builder/assets/index.144dddb2.css">
15
15
  </head>
16
16
  <body id="app">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1669724236058" clover="3.2.0">
3
- <project timestamp="1669724236058" name="All files">
4
- <metrics statements="10470" coveredstatements="7128" conditionals="4169" coveredconditionals="2043" methods="1779" coveredmethods="1213" elements="16418" coveredelements="10384" complexity="0" loc="10470" ncloc="10470" packages="55" files="267" classes="267"/>
2
+ <coverage generated="1669742553248" clover="3.2.0">
3
+ <project timestamp="1669742553248" name="All files">
4
+ <metrics statements="10470" coveredstatements="7128" conditionals="4170" coveredconditionals="2044" methods="1779" coveredmethods="1213" elements="16419" coveredelements="10385" complexity="0" loc="10470" ncloc="10470" packages="55" files="267" classes="267"/>
5
5
  <package name="src">
6
6
  <metrics statements="178" coveredstatements="102" conditionals="77" coveredconditionals="34" methods="33" coveredmethods="15"/>
7
7
  <file name="app.ts" path="/home/runner/work/budibase/budibase/packages/server/src/app.ts">
@@ -11003,7 +11003,7 @@
11003
11003
  </file>
11004
11004
  </package>
11005
11005
  <package name="src.utilities.fileSystem">
11006
- <metrics statements="175" coveredstatements="64" conditionals="36" coveredconditionals="3" methods="26" coveredmethods="7"/>
11006
+ <metrics statements="175" coveredstatements="64" conditionals="37" coveredconditionals="4" methods="26" coveredmethods="7"/>
11007
11007
  <file name="clientLibrary.ts" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/fileSystem/clientLibrary.ts">
11008
11008
  <metrics statements="30" coveredstatements="10" conditionals="2" coveredconditionals="0" methods="3" coveredmethods="0"/>
11009
11009
  <line num="1" count="48" type="stmt"/>
@@ -11038,7 +11038,7 @@
11038
11038
  <line num="153" count="0" type="stmt"/>
11039
11039
  </file>
11040
11040
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/fileSystem/index.ts">
11041
- <metrics statements="137" coveredstatements="54" conditionals="33" coveredconditionals="3" methods="20" coveredmethods="7"/>
11041
+ <metrics statements="137" coveredstatements="54" conditionals="34" coveredconditionals="4" methods="20" coveredmethods="7"/>
11042
11042
  <line num="1" count="48" type="stmt"/>
11043
11043
  <line num="2" count="48" type="stmt"/>
11044
11044
  <line num="3" count="48" type="stmt"/>
@@ -11075,107 +11075,107 @@
11075
11075
  <line num="64" count="0" type="stmt"/>
11076
11076
  <line num="75" count="48" type="stmt"/>
11077
11077
  <line num="76" count="0" type="stmt"/>
11078
- <line num="85" count="48" type="stmt"/>
11079
- <line num="86" count="6" type="stmt"/>
11080
- <line num="87" count="6" type="stmt"/>
11081
- <line num="88" count="6" type="stmt"/>
11082
- <line num="91" count="48" type="stmt"/>
11083
- <line num="92" count="1" type="stmt"/>
11084
- <line num="100" count="48" type="stmt"/>
11085
- <line num="101" count="0" type="stmt"/>
11086
- <line num="102" count="0" type="stmt"/>
11087
- <line num="103" count="0" type="stmt"/>
11088
- <line num="110" count="48" type="stmt"/>
11089
- <line num="111" count="0" type="stmt"/>
11090
- <line num="112" count="0" type="stmt"/>
11091
- <line num="119" count="48" type="stmt"/>
11092
- <line num="120" count="0" type="stmt"/>
11093
- <line num="121" count="0" type="stmt"/>
11094
- <line num="129" count="48" type="stmt"/>
11095
- <line num="130" count="0" type="stmt"/>
11096
- <line num="138" count="48" type="stmt"/>
11097
- <line num="139" count="0" type="stmt"/>
11098
- <line num="148" count="48" type="stmt"/>
11099
- <line num="150" count="0" type="stmt"/>
11100
- <line num="151" count="0" type="stmt"/>
11101
- <line num="152" count="0" type="stmt"/>
11102
- <line num="162" count="48" type="stmt"/>
11103
- <line num="163" count="1" type="stmt"/>
11104
- <line num="164" count="1" type="stmt"/>
11105
- <line num="180" count="0" type="cond" truecount="0" falsecount="1"/>
11106
- <line num="181" count="0" type="stmt"/>
11107
- <line num="186" count="0" type="stmt"/>
11108
- <line num="188" count="0" type="stmt"/>
11109
- <line num="189" count="0" type="stmt"/>
11110
- <line num="191" count="0" type="stmt"/>
11111
- <line num="196" count="0" type="stmt"/>
11112
- <line num="197" count="0" type="stmt"/>
11113
- <line num="199" count="0" type="cond" truecount="0" falsecount="1"/>
11078
+ <line num="86" count="48" type="stmt"/>
11079
+ <line num="90" count="6" type="stmt"/>
11080
+ <line num="91" count="6" type="stmt"/>
11081
+ <line num="92" count="6" type="stmt"/>
11082
+ <line num="95" count="48" type="stmt"/>
11083
+ <line num="96" count="1" type="stmt"/>
11084
+ <line num="104" count="48" type="stmt"/>
11085
+ <line num="105" count="0" type="stmt"/>
11086
+ <line num="106" count="0" type="stmt"/>
11087
+ <line num="107" count="0" type="stmt"/>
11088
+ <line num="114" count="48" type="stmt"/>
11089
+ <line num="115" count="0" type="stmt"/>
11090
+ <line num="116" count="0" type="stmt"/>
11091
+ <line num="123" count="48" type="stmt"/>
11092
+ <line num="124" count="0" type="stmt"/>
11093
+ <line num="125" count="0" type="stmt"/>
11094
+ <line num="133" count="48" type="stmt"/>
11095
+ <line num="134" count="0" type="stmt"/>
11096
+ <line num="142" count="48" type="stmt"/>
11097
+ <line num="143" count="0" type="stmt"/>
11098
+ <line num="152" count="48" type="stmt"/>
11099
+ <line num="154" count="0" type="stmt"/>
11100
+ <line num="155" count="0" type="stmt"/>
11101
+ <line num="156" count="0" type="stmt"/>
11102
+ <line num="166" count="48" type="stmt"/>
11103
+ <line num="167" count="1" type="stmt"/>
11104
+ <line num="168" count="1" type="stmt"/>
11105
+ <line num="184" count="0" type="cond" truecount="0" falsecount="1"/>
11106
+ <line num="185" count="0" type="stmt"/>
11107
+ <line num="190" count="0" type="stmt"/>
11108
+ <line num="192" count="0" type="stmt"/>
11109
+ <line num="193" count="0" type="stmt"/>
11110
+ <line num="195" count="0" type="stmt"/>
11114
11111
  <line num="200" count="0" type="stmt"/>
11115
- <line num="202" count="0" type="stmt"/>
11116
- <line num="209" count="48" type="stmt"/>
11117
- <line num="213" count="1" type="stmt"/>
11118
- <line num="219" count="48" type="stmt"/>
11119
- <line num="220" count="34" type="stmt"/>
11120
- <line num="221" count="434" type="stmt"/>
11121
- <line num="222" count="434" type="cond" truecount="0" falsecount="1"/>
11122
- <line num="223" count="0" type="stmt"/>
11123
- <line num="228" count="48" type="stmt"/>
11124
- <line num="229" count="1" type="stmt"/>
11125
- <line num="230" count="1" type="stmt"/>
11126
- <line num="232" count="1" type="cond" truecount="0" falsecount="1"/>
11127
- <line num="233" count="0" type="stmt"/>
11128
- <line num="235" count="1" type="stmt"/>
11112
+ <line num="201" count="0" type="stmt"/>
11113
+ <line num="203" count="0" type="cond" truecount="0" falsecount="1"/>
11114
+ <line num="204" count="0" type="stmt"/>
11115
+ <line num="206" count="0" type="stmt"/>
11116
+ <line num="213" count="48" type="stmt"/>
11117
+ <line num="217" count="1" type="stmt"/>
11118
+ <line num="223" count="48" type="stmt"/>
11119
+ <line num="224" count="34" type="stmt"/>
11120
+ <line num="225" count="434" type="stmt"/>
11121
+ <line num="226" count="434" type="cond" truecount="0" falsecount="1"/>
11122
+ <line num="227" count="0" type="stmt"/>
11123
+ <line num="232" count="48" type="stmt"/>
11124
+ <line num="233" count="1" type="stmt"/>
11125
+ <line num="234" count="1" type="stmt"/>
11126
+ <line num="236" count="1" type="cond" truecount="0" falsecount="1"/>
11129
11127
  <line num="237" count="0" type="stmt"/>
11130
- <line num="240" count="1" type="stmt"/>
11131
- <line num="243" count="48" type="stmt"/>
11132
- <line num="244" count="0" type="stmt"/>
11133
- <line num="250" count="48" type="stmt"/>
11134
- <line num="251" count="0" type="stmt"/>
11135
- <line num="252" count="0" type="stmt"/>
11136
- <line num="253" count="0" type="stmt"/>
11137
- <line num="254" count="0" type="stmt"/>
11128
+ <line num="239" count="1" type="stmt"/>
11129
+ <line num="241" count="0" type="stmt"/>
11130
+ <line num="244" count="1" type="stmt"/>
11131
+ <line num="247" count="48" type="stmt"/>
11132
+ <line num="248" count="0" type="stmt"/>
11133
+ <line num="254" count="48" type="stmt"/>
11134
+ <line num="255" count="0" type="stmt"/>
11138
11135
  <line num="256" count="0" type="stmt"/>
11139
11136
  <line num="257" count="0" type="stmt"/>
11140
- <line num="259" count="0" type="cond" truecount="0" falsecount="1"/>
11141
- <line num="264" count="0" type="stmt"/>
11142
- <line num="269" count="0" type="stmt"/>
11143
- <line num="274" count="0" type="stmt"/>
11144
- <line num="277" count="48" type="stmt"/>
11145
- <line num="282" count="0" type="cond" truecount="0" falsecount="1"/>
11146
- <line num="283" count="0" type="stmt"/>
11147
- <line num="285" count="0" type="stmt"/>
11148
- <line num="286" count="0" type="stmt"/>
11149
- <line num="287" count="0" type="cond" truecount="0" falsecount="1"/>
11150
- <line num="288" count="0" type="stmt"/>
11151
- <line num="290" count="0" type="cond" truecount="0" falsecount="2"/>
11152
- <line num="291" count="0" type="stmt"/>
11153
- <line num="293" count="0" type="stmt"/>
11154
- <line num="294" count="0" type="stmt"/>
11137
+ <line num="258" count="0" type="stmt"/>
11138
+ <line num="260" count="0" type="stmt"/>
11139
+ <line num="261" count="0" type="stmt"/>
11140
+ <line num="263" count="0" type="cond" truecount="0" falsecount="1"/>
11141
+ <line num="268" count="0" type="stmt"/>
11142
+ <line num="273" count="0" type="stmt"/>
11143
+ <line num="278" count="0" type="stmt"/>
11144
+ <line num="281" count="48" type="stmt"/>
11145
+ <line num="286" count="0" type="cond" truecount="0" falsecount="1"/>
11146
+ <line num="287" count="0" type="stmt"/>
11147
+ <line num="289" count="0" type="stmt"/>
11148
+ <line num="290" count="0" type="stmt"/>
11149
+ <line num="291" count="0" type="cond" truecount="0" falsecount="1"/>
11150
+ <line num="292" count="0" type="stmt"/>
11151
+ <line num="294" count="0" type="cond" truecount="0" falsecount="2"/>
11155
11152
  <line num="295" count="0" type="stmt"/>
11153
+ <line num="297" count="0" type="stmt"/>
11156
11154
  <line num="298" count="0" type="stmt"/>
11157
- <line num="301" count="0" type="stmt"/>
11158
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
11159
- <line num="303" count="0" type="stmt"/>
11160
- <line num="304" count="0" type="stmt"/>
11155
+ <line num="299" count="0" type="stmt"/>
11156
+ <line num="302" count="0" type="stmt"/>
11161
11157
  <line num="305" count="0" type="stmt"/>
11162
- <line num="306" count="0" type="stmt"/>
11158
+ <line num="306" count="0" type="cond" truecount="0" falsecount="2"/>
11159
+ <line num="307" count="0" type="stmt"/>
11163
11160
  <line num="308" count="0" type="stmt"/>
11164
- <line num="317" count="48" type="stmt"/>
11165
- <line num="318" count="0" type="cond" truecount="0" falsecount="1"/>
11166
- <line num="319" count="0" type="stmt"/>
11167
- <line num="322" count="0" type="stmt"/>
11161
+ <line num="309" count="0" type="stmt"/>
11162
+ <line num="310" count="0" type="stmt"/>
11163
+ <line num="312" count="0" type="stmt"/>
11164
+ <line num="321" count="48" type="stmt"/>
11165
+ <line num="322" count="0" type="cond" truecount="0" falsecount="1"/>
11168
11166
  <line num="323" count="0" type="stmt"/>
11169
- <line num="324" count="0" type="stmt"/>
11170
- <line num="325" count="0" type="stmt"/>
11171
- <line num="327" count="0" type="cond" truecount="0" falsecount="2"/>
11167
+ <line num="326" count="0" type="stmt"/>
11168
+ <line num="327" count="0" type="stmt"/>
11172
11169
  <line num="328" count="0" type="stmt"/>
11173
- <line num="329" count="0" type="cond" truecount="0" falsecount="1"/>
11174
- <line num="330" count="0" type="stmt"/>
11175
- <line num="338" count="48" type="stmt"/>
11176
- <line num="339" count="0" type="cond" truecount="0" falsecount="1"/>
11177
- <line num="340" count="0" type="stmt"/>
11178
- <line num="343" count="0" type="stmt"/>
11170
+ <line num="329" count="0" type="stmt"/>
11171
+ <line num="331" count="0" type="cond" truecount="0" falsecount="2"/>
11172
+ <line num="332" count="0" type="stmt"/>
11173
+ <line num="333" count="0" type="cond" truecount="0" falsecount="1"/>
11174
+ <line num="334" count="0" type="stmt"/>
11175
+ <line num="342" count="48" type="stmt"/>
11176
+ <line num="343" count="0" type="cond" truecount="0" falsecount="1"/>
11177
+ <line num="344" count="0" type="stmt"/>
11178
+ <line num="347" count="0" type="stmt"/>
11179
11179
  </file>
11180
11180
  <file name="processor.ts" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/fileSystem/processor.ts">
11181
11181
  <metrics statements="8" coveredstatements="0" conditionals="1" coveredconditionals="0" methods="3" coveredmethods="0"/>