@budibase/server 2.1.14-alpha.1 → 2.1.14-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 (156) hide show
  1. package/builder/assets/{index.2b55d764.js → index.bdb0bd44.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +66 -67
  4. package/coverage/coverage-final.json +2 -2
  5. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/index.html +1 -1
  11. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  17. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  30. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  35. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  38. package/coverage/lcov-report/api/index.html +1 -1
  39. package/coverage/lcov-report/api/index.js.html +1 -1
  40. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  41. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  42. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  43. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  44. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  45. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/index.html +1 -1
  49. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  65. package/coverage/lcov-report/automations/actions.js.html +1 -1
  66. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  67. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  68. package/coverage/lcov-report/automations/index.html +1 -1
  69. package/coverage/lcov-report/automations/index.js.html +1 -1
  70. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  71. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  72. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  73. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  74. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  75. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  76. package/coverage/lcov-report/automations/steps/index.html +1 -1
  77. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  78. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  79. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  87. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  88. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  89. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  90. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  91. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  92. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  93. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  94. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  95. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  96. package/coverage/lcov-report/constants/index.html +1 -1
  97. package/coverage/lcov-report/constants/index.js.html +1 -1
  98. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  99. package/coverage/lcov-report/constants/screens.js.html +1 -1
  100. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  101. package/coverage/lcov-report/db/index.html +1 -1
  102. package/coverage/lcov-report/db/index.js.html +1 -1
  103. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  104. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  105. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  106. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  107. package/coverage/lcov-report/db/newid.js.html +1 -1
  108. package/coverage/lcov-report/db/utils.js.html +1 -1
  109. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  110. package/coverage/lcov-report/events/index.html +1 -1
  111. package/coverage/lcov-report/events/index.js.html +1 -1
  112. package/coverage/lcov-report/events/utils.js.html +1 -1
  113. package/coverage/lcov-report/index.html +11 -11
  114. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  115. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  116. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  117. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  118. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  119. package/coverage/lcov-report/middleware/index.html +1 -1
  120. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  121. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  122. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  123. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  124. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  125. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  126. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  127. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  128. package/coverage/lcov-report/utilities/global.js.html +1 -1
  129. package/coverage/lcov-report/utilities/index.html +10 -10
  130. package/coverage/lcov-report/utilities/index.js.html +7 -13
  131. package/coverage/lcov-report/utilities/plugins.js.html +2 -2
  132. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  133. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  134. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  135. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  136. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  137. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  138. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  139. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  140. package/coverage/lcov-report/utilities/security.js.html +1 -1
  141. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  142. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  143. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  144. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  145. package/coverage/lcov-report/utilities/users.js.html +1 -1
  146. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  147. package/coverage/lcov.info +109 -110
  148. package/dist/environment.js +1 -0
  149. package/dist/package.json +6 -6
  150. package/dist/tsconfig.build.tsbuildinfo +1 -1
  151. package/dist/utilities/index.js +1 -2
  152. package/dist/utilities/plugins.js +1 -1
  153. package/package.json +7 -7
  154. package/src/environment.js +1 -0
  155. package/src/utilities/index.js +1 -3
  156. package/src/utilities/plugins.js +1 -1
@@ -940,7 +940,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
940
940
  `),t=X("i"),i=oe(r),a=oe("?"),o=oe(`
941
941
  This action cannot be undone.`)},m(l,s){C(l,e,s),C(l,t,s),x(t,i),x(t,a),C(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&gt(i,r)},d(l){l&&M(e),l&&M(t),l&&M(o)}}}function Ast(n){let e,t,r,i,a,o;e=new ou({props:{$$slots:{control:[kst],default:[wst]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[zst]},$$scope:{ctx:n}};r=new gl({props:l}),n[5](r);let s={automation:n[0]};return a=new _st({props:s}),n[6](a),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment),i=q(),O(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){H(e,u),u&&M(t),n[5](null),H(r,u),u&&M(i),n[6](null),H(a,u)}}}function Mst(n,e,t){let r,i;Fe(n,Or,h=>t(7,r=h)),Fe(n,ci,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),$t.success("Automation deleted successfully"),i("../automate")}catch{$t.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),$t.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{$t.error("Error duplicating automation")}}function c(h){De[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){De[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 Cst extends Ve{constructor(e){super(),Pe(this,e,Mst,Ast,Ie,{automation:0})}}function lF(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function Sst(n){let e,t,r;return e=new Cst({props:{automation:n[5]}}),{c(){O(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){H(e,i),i&&M(t)}}}function sF(n){let e,t;function r(){return n[3](n[5])}return e=new L5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[Sst]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(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){H(e,i)}}}function Lst(n){let e,t,r=n[0].automations.sort(uF),i=[];for(let o=0;o<r.length;o+=1)i[o]=sF(lF(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(uF);let s;for(s=0;s<r.length;s+=1){const u=lF(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=sF(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(we(),s=r.length;s<i.length;s+=1)a(s);ke()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&M(e),Bn(i,o)}}}const uF=n=>n.name;function Est(n,e,t){let r,i,a;Fe(n,ci,s=>t(4,i=s)),Fe(n,Or,s=>t(0,a=s)),ar(async()=>{try{await Or.actions.fetch()}catch{$t.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class Tst extends Ve{constructor(e){super(),Pe(this,e,Est,Lst,Ie,{})}}function cF(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function Dst(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
942
942
  start with a trigger.`)},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Bst(n){let e;return{c(){e=oe("Triggers")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Hst(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+"")&&gt(t,e)},d(r){r&&M(t)}}}function fF(n){let e,t,r,i,a,o,l,s,u,c;r=new un({props:{name:n[18].icon}}),o=new jt({props:{size:"S",$$slots:{default:[Hst]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=q(),a=X("span"),O(o.$$.fragment),l=q(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),Te(e,"selected",n[2]===n[18].name)},m(h,m){C(h,e,m),x(e,t),B(r,t,null),x(t,i),x(t,a),B(o,a,null),x(e,l),s=!0,u||(c=At(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&&Te(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),H(r),H(o),u=!1,c()}}}function Ost(n){let e,t,r,i;e=new jt({props:{size:"S",$$slots:{default:[Bst]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=fF(cF(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(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-d3iboa")},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=cF(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=fF(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for(we(),f=a.length;f<o.length;f+=1)l(f);ke()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){H(e,s),s&&M(t),s&&M(r),Bn(o,s)}}}function Ist(n){let e,t,r,i,a,o,l,s,u,c;e=new b_({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 jt({props:{size:"XS",$$slots:{default:[Dst]},$$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 Mn({props:m}),De.push(()=>tt(a,"value",f)),De.push(()=>tt(a,"error",h)),a.$on("change",n[12]),u=new Pt({props:{noPadding:!0,$$slots:{default:[Ost]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment),i=q(),O(a.$$.fragment),s=q(),O(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(_){H(e,_),_&&M(t),H(r,_),_&&M(i),H(a,_),_&&M(s),H(u,_)}}}function Pst(n){let e,t;return e=new gr({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[Ist]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function Vst(n,e,t){let r,i,a,o,l,s;Fe(n,Or,I=>t(8,o=I)),Fe(n,ci,I=>t(16,l=I)),Fe(n,Wd,I=>t(9,s=I));let u,c,f=!1,h,{webhookModal:m}=e;async function _(){var I;try{await Or.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Or.actions.addBlockToAutomation(P),h.stepId===_6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),$t.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{$t.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 cZ extends Ve{constructor(e){super(),Pe(this,e,Vst,Pst,Ie,{webhookModal:7})}}function Rst(n){let e,t;return e=new cZ({props:{webhookModal:n[1]}}),{c(){O(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){H(e,r)}}}function Nst(n){let e,t,r,i;e=new Tst({});let a={$$slots:{default:[Rst]},$$scope:{ctx:n}};return r=new rr({props:a}),n[2](r),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(o,l){B(e,o,l),C(o,t,l),B(r,o,l),i=!0},p(o,l){const s={};l&10&&(s.$$scope={dirty:l,ctx:o}),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){H(e,o),o&&M(t),n[2](null),H(r,o)}}}function Fst(n){let e,t;return e=new B1({props:{title:"Automations",$$slots:{default:[Nst]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function jst(n){let e,t,r,i,a,o;return t=new X2({props:{selected:"Automations",$$slots:{default:[Fst]},$$scope:{ctx:n}}}),a=new un({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){kn(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=X("div"),O(t.$$.fragment),r=q(),i=X("div"),O(a.$$.fragment),D(i,"class","add-button svelte-1dlf15l"),D(e,"class","nav svelte-1dlf15l")},m(l,s){C(l,e,s),B(t,e,null),x(e,r),x(e,i),B(a,i,null),o=!0},p(l,[s]){n=l;const u={};s&11&&(u.$$scope={dirty:s,ctx:n}),t.$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),H(t),H(a)}}}function xst(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 Ust extends Ve{constructor(e){super(),Pe(this,e,xst,jst,Ie,{modal:0,webhookModal:1})}}function pF(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function dF(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,testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new uZ({props:l}),De.push(()=>tt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&hF(n);return{c(){O(e.$$.fragment),r=q(),s&&s.c(),i=yt()},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=hF(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(we(),$(s,1,1,()=>{s=null}),ke())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){H(e,c),c&&M(r),s&&s.d(c),c&&M(i)}}}function hF(n){var s,u;let e,t,r,i,a,o;e=new ui({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&mF(n);return a=new X2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[Yst]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),l&&l.c(),r=q(),i=X("div"),O(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=mF(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(we(),$(l,1,1,()=>{l=null}),ke());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){H(e,c),c&&M(t),l&&l.d(c),c&&M(r),c&&M(i),H(a)}}}function mF(n){let e,t,r,i,a,o;return t=new un({props:{name:"Reuse"}}),a=new sn({props:{$$slots:{default:[qst]},$$scope:{ctx:n}}}),{c(){e=X("div"),O(t.$$.fragment),r=q(),i=X("div"),O(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),x(e,r),x(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),H(t),H(a)}}}function qst(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=oe("This loop ran "),r=oe(t),i=oe(" times.")},m(l,s){C(l,e,s),C(l,r,s),C(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&gt(r,t)},d(l){l&&M(e),l&&M(r),l&&M(i)}}}function Wst(n){var r,i;let e,t;return e=new F3({props:{minHeight:"80px",disabled:!0,value:o_((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){B(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=o_((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){H(e,a)}}}function Gst(n){var r,i;let e,t;return e=new F3({props:{minHeight:"100px",disabled:!0,value:o_((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){B(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=o_((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){H(e,a)}}}function Yst(n){let e,t,r,i;return e=new B1({props:{title:"Input",$$slots:{default:[Wst]},$$scope:{ctx:n}}}),r=new B1({props:{title:"Output",$$slots:{default:[Gst]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),O(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){H(e,a),a&&M(t),H(r,a)}}}function gF(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 vF(n){let e,t,r,i,a,o=n[8].stepId!==N3.LOOP&&dF(n),l=n[1].length-1!==n[10]&&gF();return{c(){e=X("div"),o&&o.c(),r=q(),l&&l.c(),i=yt(),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!==N3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=dF(s),o.c(),b(o,1),o.m(e,null)):o&&(we(),$(o,1,1,()=>{o=null}),ke()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=gF(),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 Kst(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=vF(pF(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=pF(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=vF(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(we(),s=r.length;s<i.length;s+=1)a(s);ke()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&M(e),Bn(i,o)}}}function o_(n,e){return n?JSON.stringify(n,null,2):e}function Xst(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!==N3.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!==N3.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 fZ extends Ve{constructor(e){super(),Pe(this,e,Xst,Kst,Ie,{automation:4,testResults:5,width:0})}}function Jst(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new un({props:{name:"MultipleCheck"}}),s=new un({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new ui({}),h=new fZ({props:{automation:n[0],testResults:n[2]}}),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=q(),a=X("div"),a.textContent="Test Details",o=q(),l=X("div"),O(s.$$.fragment),u=q(),O(c.$$.fragment),f=q(),O(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),x(e,t),B(r,t,null),x(t,i),x(t,a),x(e,o),x(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),H(r),H(s),_&&M(u),H(c,_),_&&M(f),H(h,_)}}}function Zst(n,e,t){let r;Fe(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{G1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==N3.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 Qst extends Ve{constructor(e){super(),Pe(this,e,Zst,Jst,Ie,{automation:0})}}function eut(n){let e,t,r,i;return r=new Pt({props:{gap:"S",justifyItems:"center",$$slots:{default:[aut]},$$scope:{ctx:n}}}),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){C(a,e,o),x(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),H(r)}}}function tut(n){let e;const t=n[4].default,r=Xn(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)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function nut(n){let e;return{c(){e=oe("You have no automations")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function rut(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 iut(n){let e;return{c(){e=oe("Create automation")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function aut(n){let e,t,r,i,a,o,l,s,u;return i=new In({props:{size:"M",$$slots:{default:[nut]},$$scope:{ctx:n}}}),o=new jt({props:{size:"M",$$slots:{default:[rut]},$$scope:{ctx:n}}}),s=new _n({props:{size:"M",cta:!0,$$slots:{default:[iut]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ut("svg"),t=ut("use"),r=q(),O(i.$$.fragment),a=q(),O(o.$$.fragment),l=q(),O(s.$$.fragment),Gr(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),x(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),H(i,c),c&&M(a),H(o,c),c&&M(l),H(s,c)}}}function _F(n){let e,t,r;return t=new Qst({props:{automation:n[3]}}),{c(){e=X("div"),O(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),H(t)}}}function out(n){let e,t;return e=new cZ({props:{webhookModal:n[2]}}),{c(){O(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){H(e,r)}}}function lut(n){let e,t;return e=new gA({}),{c(){O(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){H(e,r)}}}function sut(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new Ust({props:{modal:n[1],webhookModal:n[2]}});const _=[tut,eut],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&_F(n),S={$$slots:{default:[out]},$$scope:{ctx:n}};c=new rr({props:S}),n[6](c);let T={width:"30%",$$slots:{default:[lut]},$$scope:{ctx:n}};return h=new rr({props:T}),n[7](h),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=q(),a=X("div"),l.c(),s=q(),A&&A.c(),u=q(),O(c.$$.fragment),f=q(),O(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),x(e,t),B(r,t,null),x(e,i),x(e,a),y[o].m(a,null),x(e,s),A&&A.m(e,null),x(e,u),B(c,e,null),x(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 j=o;o=w(I),o===j?y[o].p(I,P):(we(),$(y[j],1,1,()=>{y[j]=null}),ke(),l=y[o],l?l.p(I,P):(l=y[o]=_[o](I),l.c()),b(l,1),l.m(a,null)),I[0].showTestPanel?A?(A.p(I,P),P&1&&b(A,1)):(A=_F(I),A.c(),b(A,1),A.m(e,u)):A&&(we(),$(A,1,1,()=>{A=null}),ke());const U={};P&260&&(U.$$scope={dirty:P,ctx:I}),c.$set(U);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),H(r),y[o].d(),A&&A.d(),n[6](null),H(c),n[7](null),H(h)}}}function uut(n,e,t){let r,i;Fe(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;ar(()=>{G1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){De[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){De[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 cut extends Ve{constructor(e){super(),Pe(this,e,uut,sut,Ie,{})}}function fut(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new Mn({props:u}),De.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(),O(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),H(a,c)}}}function put(n){let e,t;return e=new gr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[fut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function dut(n){let e,t,r,i;e=new un({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:[put]},$$scope:{ctx:n}};return r=new rr({props:a}),n[5](r),{c(){O(e.$$.fragment),t=q(),O(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){H(e,o),o&&M(t),n[5](null),H(r,o)}}}function hut(n,e,t){let r,i;Fe(n,Xt,c=>t(0,i=c));let a,o;const l=async()=>{try{await Zt.revertAppChanges(r);const c=await Zt.fetchAppPackage(r);await Xt.actions.initialise(c),$t.info("Changes reverted successfully")}catch(c){$t.error(`Error reverting changes: ${c}`)}};function s(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,l,s,u]}class mut extends Ve{constructor(e){super(),Pe(this,e,hut,dut,Ie,{})}}const gut="@budibase/client",vut="2.1.14-alpha.0",_ut="MPL-2.0",but="dist/budibase-client.js",yut="dist/budibase-client.js",$ut="module",wut="src/index.js",kut={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},zut={build:"rollup -c","dev:builder":"rollup -cw"},Aut={"@budibase/bbui":"2.1.14-alpha.0","@budibase/frontend-core":"2.1.14-alpha.0","@budibase/string-templates":"2.1.14-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"},Mut={"@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"},Cut="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Pd={name:gut,version:vut,license:_ut,module:but,main:yut,type:$ut,svelte:wut,exports:kut,scripts:zut,dependencies:Aut,devDependencies:Mut,gitHead:Cut};function bF(n){let e,t;return e=new j3({props:{hoverable:!0,notice:!0,$$slots:{default:[Sut]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(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){H(e,r)}}}function Sut(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Lut(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Tut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function Eut(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Dut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function Tut(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=X("b"),i=oe(r),a=oe(` 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(),O(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),H(a,c)}}}function put(n){let e,t;return e=new gr({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[fut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function dut(n){let e,t,r,i;e=new un({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:[put]},$$scope:{ctx:n}};return r=new rr({props:a}),n[5](r),{c(){O(e.$$.fragment),t=q(),O(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){H(e,o),o&&M(t),n[5](null),H(r,o)}}}function hut(n,e,t){let r,i;Fe(n,Xt,c=>t(0,i=c));let a,o;const l=async()=>{try{await Zt.revertAppChanges(r);const c=await Zt.fetchAppPackage(r);await Xt.actions.initialise(c),$t.info("Changes reverted successfully")}catch(c){$t.error(`Error reverting changes: ${c}`)}};function s(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,l,s,u]}class mut extends Ve{constructor(e){super(),Pe(this,e,hut,dut,Ie,{})}}const gut="@budibase/client",vut="2.1.14-alpha.2",_ut="MPL-2.0",but="dist/budibase-client.js",yut="dist/budibase-client.js",$ut="module",wut="src/index.js",kut={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},zut={build:"rollup -c","dev:builder":"rollup -cw"},Aut={"@budibase/bbui":"2.1.14-alpha.2","@budibase/frontend-core":"2.1.14-alpha.2","@budibase/string-templates":"2.1.14-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"},Mut={"@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"},Cut="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Pd={name:gut,version:vut,license:_ut,module:but,main:yut,type:$ut,svelte:wut,exports:kut,scripts:zut,dependencies:Aut,devDependencies:Mut,gitHead:Cut};function bF(n){let e,t;return e=new j3({props:{hoverable:!0,notice:!0,$$slots:{default:[Sut]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(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){H(e,r)}}}function Sut(n){let e;return{c(){e=oe("Update available")},m(t,r){C(t,e,r)},d(t){t&&M(e)}}}function Lut(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Tut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function Eut(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Dut]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function Tut(n){let e,t,r=n[1].version+"",i,a;return{c(){e=oe("This app is currently using version "),t=X("b"),i=oe(r),a=oe(` which is the
944
944
  latest version available.`)},m(o,l){C(o,e,l),C(o,t,l),x(t,i),C(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&gt(i,r)},d(o){o&&M(e),o&&M(t),o&&M(a)}}}function Dut(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=oe("This app is currently using version "),t=X("b"),i=oe(r),a=oe(`, but version
945
945
  `),o=X("b"),o.textContent=`${Pd.version}`,l=oe(` is available. Updates can contain new features,
946
946
  performance improvements and bug fixes.`)},m(s,u){C(s,e,u),C(s,t,u),x(t,i),C(s,a,u),C(s,o,u),C(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&gt(i,r)},d(s){s&&M(e),s&&M(t),s&&M(a),s&&M(o),s&&M(l)}}}function yF(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[But]},$$scope:{ctx:n}}}),{c(){O(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){H(e,r)}}}function But(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.2b55d764.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.bdb0bd44.js"></script>
14
14
  <link rel="stylesheet" href="/builder/assets/index.cc430ad8.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="1667551407168" clover="3.2.0">
3
- <project timestamp="1667551407168" name="All files">
4
- <metrics statements="4021" coveredstatements="2906" conditionals="1752" coveredconditionals="965" methods="600" coveredmethods="413" elements="6373" coveredelements="4284" complexity="0" loc="4021" ncloc="4021" packages="22" files="119" classes="119"/>
2
+ <coverage generated="1667843114351" clover="3.2.0">
3
+ <project timestamp="1667843114351" name="All files">
4
+ <metrics statements="4020" coveredstatements="2905" conditionals="1752" coveredconditionals="965" methods="600" coveredmethods="413" elements="6372" coveredelements="4283" complexity="0" loc="4020" ncloc="4020" packages="22" files="119" classes="119"/>
5
5
  <package name="api">
6
6
  <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -3755,7 +3755,7 @@
3755
3755
  </file>
3756
3756
  </package>
3757
3757
  <package name="utilities">
3758
- <metrics statements="378" coveredstatements="279" conditionals="164" coveredconditionals="97" methods="73" coveredmethods="54"/>
3758
+ <metrics statements="377" coveredstatements="278" conditionals="164" coveredconditionals="97" methods="73" coveredmethods="54"/>
3759
3759
  <file name="budibaseDir.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/budibaseDir.js">
3760
3760
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3761
3761
  <line num="1" count="48" type="stmt"/>
@@ -3919,7 +3919,7 @@
3919
3919
  <line num="121" count="0" type="stmt"/>
3920
3920
  </file>
3921
3921
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/index.js">
3922
- <metrics statements="80" coveredstatements="65" conditionals="32" coveredconditionals="17" methods="17" coveredmethods="16"/>
3922
+ <metrics statements="79" coveredstatements="64" conditionals="32" coveredconditionals="17" methods="17" coveredmethods="16"/>
3923
3923
  <line num="1" count="51" type="stmt"/>
3924
3924
  <line num="2" count="51" type="stmt"/>
3925
3925
  <line num="3" count="51" type="stmt"/>
@@ -3930,76 +3930,75 @@
3930
3930
  <line num="10" count="51" type="stmt"/>
3931
3931
  <line num="12" count="51" type="stmt"/>
3932
3932
  <line num="14" count="51" type="stmt"/>
3933
- <line num="16" count="51" type="stmt"/>
3933
+ <line num="15" count="1" type="stmt"/>
3934
+ <line num="16" count="1" type="cond" truecount="1" falsecount="1"/>
3934
3935
  <line num="17" count="1" type="stmt"/>
3935
- <line num="18" count="1" type="cond" truecount="1" falsecount="1"/>
3936
3936
  <line num="19" count="1" type="stmt"/>
3937
- <line num="21" count="1" type="stmt"/>
3938
- <line num="30" count="51" type="stmt"/>
3939
- <line num="31" count="54" type="stmt"/>
3940
- <line num="38" count="51" type="stmt"/>
3941
- <line num="39" count="2" type="cond" truecount="2" falsecount="2"/>
3942
- <line num="41" count="2" type="stmt"/>
3943
- <line num="43" count="0" type="stmt"/>
3944
- <line num="57" count="51" type="stmt"/>
3945
- <line num="58" count="6" type="cond" truecount="1" falsecount="1"/>
3946
- <line num="59" count="0" type="stmt"/>
3947
- <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
3937
+ <line num="28" count="51" type="stmt"/>
3938
+ <line num="29" count="54" type="stmt"/>
3939
+ <line num="36" count="51" type="stmt"/>
3940
+ <line num="37" count="2" type="cond" truecount="2" falsecount="2"/>
3941
+ <line num="39" count="2" type="stmt"/>
3942
+ <line num="41" count="0" type="stmt"/>
3943
+ <line num="55" count="51" type="stmt"/>
3944
+ <line num="56" count="6" type="cond" truecount="1" falsecount="1"/>
3945
+ <line num="57" count="0" type="stmt"/>
3946
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
3947
+ <line num="63" count="0" type="stmt"/>
3948
3948
  <line num="65" count="0" type="stmt"/>
3949
- <line num="67" count="0" type="stmt"/>
3950
- <line num="69" count="6" type="stmt"/>
3951
- <line num="73" count="51" type="stmt"/>
3952
- <line num="74" count="2" type="stmt"/>
3953
- <line num="79" count="51" type="stmt"/>
3954
- <line num="80" count="3" type="stmt"/>
3955
- <line num="81" count="3" type="stmt"/>
3949
+ <line num="67" count="6" type="stmt"/>
3950
+ <line num="71" count="51" type="stmt"/>
3951
+ <line num="72" count="2" type="stmt"/>
3952
+ <line num="77" count="51" type="stmt"/>
3953
+ <line num="78" count="3" type="stmt"/>
3954
+ <line num="79" count="3" type="stmt"/>
3955
+ <line num="82" count="3" type="stmt"/>
3956
+ <line num="83" count="3" type="stmt"/>
3956
3957
  <line num="84" count="3" type="stmt"/>
3957
- <line num="85" count="3" type="stmt"/>
3958
- <line num="86" count="3" type="stmt"/>
3959
- <line num="87" count="0" type="stmt"/>
3960
- <line num="88" count="0" type="stmt"/>
3961
- <line num="90" count="3" type="stmt"/>
3958
+ <line num="85" count="0" type="stmt"/>
3959
+ <line num="86" count="0" type="stmt"/>
3960
+ <line num="88" count="3" type="stmt"/>
3961
+ <line num="89" count="3" type="stmt"/>
3962
3962
  <line num="91" count="3" type="stmt"/>
3963
- <line num="93" count="3" type="stmt"/>
3964
- <line num="94" count="3" type="cond" truecount="1" falsecount="1"/>
3965
- <line num="95" count="0" type="stmt"/>
3966
- <line num="97" count="3" type="stmt"/>
3967
- <line num="98" count="3" type="stmt"/>
3968
- <line num="105" count="51" type="stmt"/>
3969
- <line num="106" count="1" type="stmt"/>
3970
- <line num="107" count="1" type="stmt"/>
3971
- <line num="111" count="51" type="stmt"/>
3972
- <line num="112" count="4" type="stmt"/>
3963
+ <line num="92" count="3" type="cond" truecount="1" falsecount="1"/>
3964
+ <line num="93" count="0" type="stmt"/>
3965
+ <line num="95" count="3" type="stmt"/>
3966
+ <line num="96" count="3" type="stmt"/>
3967
+ <line num="103" count="51" type="stmt"/>
3968
+ <line num="104" count="1" type="stmt"/>
3969
+ <line num="105" count="1" type="stmt"/>
3970
+ <line num="109" count="51" type="stmt"/>
3971
+ <line num="110" count="4" type="stmt"/>
3972
+ <line num="111" count="4" type="stmt"/>
3973
3973
  <line num="113" count="4" type="stmt"/>
3974
- <line num="115" count="4" type="stmt"/>
3975
- <line num="116" count="4" type="stmt"/>
3976
- <line num="117" count="0" type="cond" truecount="0" falsecount="2"/>
3977
- <line num="118" count="0" type="stmt"/>
3978
- <line num="123" count="4" type="cond" truecount="3" falsecount="1"/>
3979
- <line num="124" count="0" type="stmt"/>
3980
- <line num="128" count="51" type="stmt"/>
3981
- <line num="129" count="0" type="stmt"/>
3982
- <line num="138" count="51" type="stmt"/>
3974
+ <line num="114" count="4" type="stmt"/>
3975
+ <line num="115" count="0" type="cond" truecount="0" falsecount="2"/>
3976
+ <line num="116" count="0" type="stmt"/>
3977
+ <line num="121" count="4" type="cond" truecount="3" falsecount="1"/>
3978
+ <line num="122" count="0" type="stmt"/>
3979
+ <line num="126" count="51" type="stmt"/>
3980
+ <line num="127" count="0" type="stmt"/>
3981
+ <line num="136" count="51" type="stmt"/>
3982
+ <line num="137" count="1" type="stmt"/>
3983
3983
  <line num="139" count="1" type="stmt"/>
3984
- <line num="141" count="1" type="stmt"/>
3985
- <line num="142" count="1" type="stmt"/>
3986
- <line num="147" count="51" type="stmt"/>
3984
+ <line num="140" count="1" type="stmt"/>
3985
+ <line num="145" count="51" type="stmt"/>
3986
+ <line num="146" count="39" type="stmt"/>
3987
+ <line num="147" count="39" type="stmt"/>
3987
3988
  <line num="148" count="39" type="stmt"/>
3988
- <line num="149" count="39" type="stmt"/>
3989
- <line num="150" count="39" type="stmt"/>
3990
- <line num="151" count="39" type="cond" truecount="2" falsecount="0"/>
3991
- <line num="152" count="39" type="cond" truecount="1" falsecount="1"/>
3992
- <line num="153" count="0" type="stmt"/>
3993
- <line num="155" count="39" type="cond" truecount="3" falsecount="1"/>
3994
- <line num="158" count="51" type="stmt"/>
3995
- <line num="159" count="1" type="stmt"/>
3996
- <line num="160" count="1" type="cond" truecount="2" falsecount="2"/>
3997
- <line num="161" count="0" type="stmt"/>
3998
- <line num="163" count="1" type="stmt"/>
3999
- <line num="166" count="51" type="stmt"/>
4000
- <line num="167" count="1" type="cond" truecount="1" falsecount="1"/>
4001
- <line num="168" count="0" type="stmt"/>
4002
- <line num="170" count="1" type="stmt"/>
3989
+ <line num="149" count="39" type="cond" truecount="2" falsecount="0"/>
3990
+ <line num="150" count="39" type="cond" truecount="1" falsecount="1"/>
3991
+ <line num="151" count="0" type="stmt"/>
3992
+ <line num="153" count="39" type="cond" truecount="3" falsecount="1"/>
3993
+ <line num="156" count="51" type="stmt"/>
3994
+ <line num="157" count="1" type="stmt"/>
3995
+ <line num="158" count="1" type="cond" truecount="2" falsecount="2"/>
3996
+ <line num="159" count="0" type="stmt"/>
3997
+ <line num="161" count="1" type="stmt"/>
3998
+ <line num="164" count="51" type="stmt"/>
3999
+ <line num="165" count="1" type="cond" truecount="1" falsecount="1"/>
4000
+ <line num="166" count="0" type="stmt"/>
4001
+ <line num="168" count="1" type="stmt"/>
4003
4002
  </file>
4004
4003
  <file name="plugins.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/plugins.js">
4005
4004
  <metrics statements="14" coveredstatements="6" conditionals="6" coveredconditionals="2" methods="2" coveredmethods="1"/>