@budibase/server 1.4.19 → 2.0.1
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.
- package/builder/assets/{index.a7f2e706.js → index.8d2d14ee.js} +2 -2
- package/builder/index.html +1 -1
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -932,7 +932,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
|
932
932
|
`),t=X("i"),i=oe(r),a=oe("?"),o=oe(`
|
|
933
933
|
This action cannot be undone.`)},m(l,s){S(l,e,s),S(l,t,s),j(t,i),j(t,a),S(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&vt(i,r)},d(l){l&&C(e),l&&C(t),l&&C(o)}}}function rnt(n){let e,t,r,i,a,o;e=new Lc({props:{$$slots:{control:[tnt],default:[ent]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[nnt]},$$scope:{ctx:n}};r=new au({props:l}),n[5](r);let s={automation:n[0]};return a=new Xtt({props:s}),n[6](a),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),H(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){B(e,u),u&&C(t),n[5](null),B(r,u),u&&C(i),n[6](null),B(a,u)}}}function int(n,e,t){let r,i;Fe(n,Or,h=>t(7,r=h)),Fe(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){He[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){He[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 ant extends Re{constructor(e){super(),Ve(this,e,int,rnt,Oe,{automation:0})}}function YR(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function ont(n){let e,t,r;return e=new ant({props:{automation:n[5]}}),{c(){O(e.$$.fragment),t=U()},m(i,a){H(e,i,a),S(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&C(t)}}}function KR(n){let e,t;function r(){return n[3](n[5])}return e=new y5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[ont]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function lnt(n){let e,t,r=n[0].automations.sort(XR),i=[];for(let o=0;o<r.length;o+=1)i[o]=KR(YR(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){S(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(XR);let s;for(s=0;s<r.length;s+=1){const u=YR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=KR(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(Me(),s=r.length;s<i.length;s+=1)a(s);Ce()}},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&&C(e),Dn(i,o)}}}const XR=n=>n.name;function snt(n,e,t){let r,i,a;Fe(n,si,s=>t(4,i=s)),Fe(n,Or,s=>t(0,a=s)),ar(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class unt extends Re{constructor(e){super(),Ve(this,e,snt,lnt,Oe,{})}}function JR(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function cnt(n){let e;return{c(){e=oe(`Please name your automation, then select a trigger. Every automation must
|
|
934
934
|
start with a trigger.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function fnt(n){let e;return{c(){e=oe("Triggers")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function pnt(n){let e=n[18].name+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&vt(t,e)},d(r){r&&C(t)}}}function ZR(n){let e,t,r,i,a,o,l,s,u,c;r=new pn({props:{name:n[18].icon}}),o=new xt({props:{size:"S",$$slots:{default:[pnt]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=U(),a=X("span"),O(o.$$.fragment),l=U(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),De(e,"selected",n[2]===n[18].name)},m(h,m){S(h,e,m),j(e,t),H(r,t,null),j(t,i),j(t,a),H(o,a,null),j(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&&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&&C(e),B(r),B(o),u=!1,c()}}}function dnt(n){let e,t,r,i;e=new xt({props:{size:"S",$$slots:{default:[fnt]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=ZR(JR(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(e.$$.fragment),t=U(),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){H(e,s,u),S(s,t,u),S(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=JR(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=ZR(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for(Me(),f=a.length;f<o.length;f+=1)l(f);Ce()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&C(t),s&&C(r),Dn(o,s)}}}function hnt(n){let e,t,r,i,a,o,l,s,u,c;e=new g_({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 xt({props:{size:"XS",$$slots:{default:[cnt]},$$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 En({props:m}),He.push(()=>rt(a,"value",f)),He.push(()=>rt(a,"error",h)),a.$on("change",n[12]),u=new Rt({props:{noPadding:!0,$$slots:{default:[dnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment),s=U(),O(u.$$.fragment)},m(_,y){H(e,_,y),S(_,t,y),H(r,_,y),S(_,i,y),H(a,_,y),S(_,s,y),H(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],it(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],it(()=>l=!1)),a.$set(A);const E={};y&2097164&&(E.$$scope={dirty:y,ctx:_}),u.$set(E)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&C(t),B(r,_),_&&C(i),B(a,_),_&&C(s),B(u,_)}}}function mnt(n){let e,t;return e=new _r({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[hnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function gnt(n,e,t){let r,i,a,o,l,s;Fe(n,Or,I=>t(8,o=I)),Fe(n,si,I=>t(16,l=I)),Fe(n,Fd,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===s6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=I=>{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 E=()=>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,E,T]}class kX extends Re{constructor(e){super(),Ve(this,e,gnt,mnt,Oe,{webhookModal:7})}}function vnt(n){let e,t;return e=new kX({props:{webhookModal:n[1]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function _nt(n){let e,t,r,i;e=new unt({});let a={$$slots:{default:[vnt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[2](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(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){B(e,o),o&&C(t),n[2](null),B(r,o)}}}function bnt(n){let e,t;return e=new x1({props:{title:"Automations",$$slots:{default:[_nt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ynt(n){let e,t,r,i,a,o;return t=new K2({props:{selected:"Automations",$$slots:{default:[bnt]},$$scope:{ctx:n}}}),a=new pn({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){An(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=X("div"),O(t.$$.fragment),r=U(),i=X("div"),O(a.$$.fragment),D(i,"class","add-button svelte-mcmub4"),D(e,"class","title svelte-mcmub4")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(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&&C(e),B(t),B(a)}}}function $nt(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){He[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 wnt extends Re{constructor(e){super(),Ve(this,e,$nt,ynt,Oe,{modal:0,webhookModal:1})}}function QR(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function eN(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 wX({props:l}),He.push(()=>rt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&tN(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(c,f){H(e,c,f),S(c,r,f),s&&s.m(c,f),S(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],it(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=tN(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(Me(),$(s,1,1,()=>{s=null}),Ce())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&C(r),s&&s.d(c),c&&C(i)}}}function tN(n){var s,u;let e,t,r,i,a,o;e=new hi({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&nN(n);return a=new K2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[Mnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),l&&l.c(),r=U(),i=X("div"),O(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){H(e,c,f),S(c,t,f),l&&l.m(c,f),S(c,r,f),S(c,i,f),H(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=nN(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(Me(),$(l,1,1,()=>{l=null}),Ce());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){B(e,c),c&&C(t),l&&l.d(c),c&&C(r),c&&C(i),B(a)}}}function nN(n){let e,t,r,i,a,o;return t=new pn({props:{name:"Reuse"}}),a=new cn({props:{$$slots:{default:[knt]},$$scope:{ctx:n}}}),{c(){e=X("div"),O(t.$$.fragment),r=U(),i=X("div"),O(a.$$.fragment),yn(i,"margin-left","10px"),yn(e,"display","flex"),yn(e,"padding","10px 10px 0px 12px")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(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&&C(e),B(t),B(a)}}}function knt(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){S(l,e,s),S(l,r,s),S(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)+"")&&vt(r,t)},d(l){l&&C(e),l&&C(r),l&&C(i)}}}function znt(n){var r,i;let e,t;return e=new F3({props:{minHeight:"80px",disabled:!0,value:Jv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Jv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function Ant(n){var r,i;let e,t;return e=new F3({props:{minHeight:"100px",disabled:!0,value:Jv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Jv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function Mnt(n){let e,t,r,i;return e=new x1({props:{title:"Input",$$slots:{default:[znt]},$$scope:{ctx:n}}}),r=new x1({props:{title:"Output",$$slots:{default:[Ant]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function rN(n){let e;return{c(){e=X("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function iN(n){let e,t,r,i,a,o=n[8].stepId!==V3.LOOP&&eN(n),l=n[1].length-1!==n[10]&&rN();return{c(){e=X("div"),o&&o.c(),r=U(),l&&l.c(),i=$t(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){S(s,e,u),o&&o.m(e,null),S(s,r,u),l&&l.m(s,u),S(s,i,u),a=!0},p(s,u){s[8].stepId!==V3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=eN(s),o.c(),b(o,1),o.m(e,null)):o&&(Me(),$(o,1,1,()=>{o=null}),Ce()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=rN(),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&&C(e),o&&o.d(),s&&C(r),l&&l.d(s),s&&C(i)}}}function Cnt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=iN(QR(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){S(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=QR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=iN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(Me(),s=r.length;s<i.length;s+=1)a(s);Ce()}},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&&C(e),Dn(i,o)}}}function Jv(n,e){return n?JSON.stringify(n,null,2):e}function Snt(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!==V3.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!==V3.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 zX extends Re{constructor(e){super(),Ve(this,e,Snt,Cnt,Oe,{automation:4,testResults:5,width:0})}}function Lnt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new pn({props:{name:"MultipleCheck"}}),s=new pn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new hi({}),h=new zX({props:{automation:n[0],testResults:n[2]}}),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=U(),a=X("div"),a.textContent="Test Details",o=U(),l=X("div"),O(s.$$.fragment),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),yn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),yn(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){S(_,e,y),j(e,t),H(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),H(s,l,null),S(_,u,y),H(c,_,y),S(_,f,y),H(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(_){_&&C(e),B(r),B(s),_&&C(u),B(c,_),_&&C(f),B(h,_)}}}function Ent(n,e,t){let r;Fe(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{Y1(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!==V3.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 Tnt extends Re{constructor(e){super(),Ve(this,e,Ent,Lnt,Oe,{automation:0})}}function Dnt(n){let e,t,r,i;return r=new Rt({props:{gap:"S",justifyItems:"center",$$slots:{default:[Pnt]},$$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){S(a,e,o),j(e,t),H(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&&C(e),B(r)}}}function Hnt(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 Bnt(n){let e;return{c(){e=oe("You have no automations")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Ont(n){let e;return{c(){e=oe("Let's fix that. Call the bots!")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Int(n){let e;return{c(){e=oe("Create automation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Pnt(n){let e,t,r,i,a,o,l,s,u;return i=new Rn({props:{size:"M",$$slots:{default:[Bnt]},$$scope:{ctx:n}}}),o=new xt({props:{size:"M",$$slots:{default:[Ont]},$$scope:{ctx:n}}}),s=new $n({props:{size:"M",cta:!0,$$slots:{default:[Int]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ct("svg"),t=ct("use"),r=U(),O(i.$$.fragment),a=U(),O(o.$$.fragment),l=U(),O(s.$$.fragment),Wr(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){S(c,e,f),j(e,t),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(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&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function aN(n){let e,t,r;return t=new Tnt({props:{automation:n[3]}}),{c(){e=X("div"),O(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){S(i,e,a),H(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&&C(e),B(t)}}}function Vnt(n){let e,t;return e=new kX({props:{webhookModal:n[2]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Rnt(n){let e,t;return e=new Gz({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Nnt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new wnt({props:{modal:n[1],webhookModal:n[2]}});const _=[Hnt,Dnt],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&aN(n),E={$$slots:{default:[Vnt]},$$scope:{ctx:n}};c=new ir({props:E}),n[6](c);let T={width:"30%",$$slots:{default:[Rnt]},$$scope:{ctx:n}};return h=new ir({props:T}),n[7](h),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=U(),a=X("div"),l.c(),s=U(),A&&A.c(),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(I,P){S(I,e,P),j(e,t),H(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),H(c,e,null),j(e,f),H(h,e,null),m=!0},p(I,[P]){const N={};P&2&&(N.modal=I[1]),P&4&&(N.webhookModal=I[2]),r.$set(N);let x=o;o=w(I),o===x?y[o].p(I,P):(Me(),$(y[x],1,1,()=>{y[x]=null}),Ce(),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=aN(I),A.c(),b(A,1),A.m(e,u)):A&&(Me(),$(A,1,1,()=>{A=null}),Ce());const W={};P&260&&(W.$$scope={dirty:P,ctx:I}),c.$set(W);const Y={};P&256&&(Y.$$scope={dirty:P,ctx:I}),h.$set(Y)},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&&C(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(h)}}}function Fnt(n,e,t){let r,i;Fe(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;ar(()=>{Y1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){He[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){He[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 xnt extends Re{constructor(e){super(),Ve(this,e,Fnt,Nnt,Oe,{})}}function jnt(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 En({props:u}),He.push(()=>rt(a,"value",s)),{c(){e=X("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
935
|
-
back to its production state.`,t=U(),r=X("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],it(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Unt(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[jnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function qnt(n){let e,t,r,i;e=new pn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Unt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Wnt(n,e,t){let r,i;Fe(n,rn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await rn.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){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Gnt extends Re{constructor(e){super(),Ve(this,e,Wnt,qnt,Oe,{})}}const Ynt="@budibase/client",Knt="
|
|
935
|
+
back to its production state.`,t=U(),r=X("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],it(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Unt(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[jnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function qnt(n){let e,t,r,i;e=new pn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Unt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Wnt(n,e,t){let r,i;Fe(n,rn,c=>t(0,i=c));let a,o;const l=async()=>{try{await tn.revertAppChanges(r);const c=await tn.fetchAppPackage(r);await rn.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){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Gnt extends Re{constructor(e){super(),Ve(this,e,Wnt,qnt,Oe,{})}}const Ynt="@budibase/client",Knt="2.0.0",Xnt="MPL-2.0",Jnt="dist/budibase-client.js",Znt="dist/budibase-client.js",Qnt="module",ert="src/index.js",trt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},nrt={build:"rollup -c","dev:builder":"rollup -cw"},rrt={"@budibase/bbui":"^2.0.0","@budibase/frontend-core":"^2.0.0","@budibase/string-templates":"^2.0.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",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"},irt={"@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"},art="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Ed={name:Ynt,version:Knt,license:Xnt,module:Jnt,main:Znt,type:Qnt,svelte:ert,exports:trt,scripts:nrt,dependencies:rrt,devDependencies:irt,gitHead:art};function oN(n){let e,t;return e=new x3({props:{hoverable:!0,notice:!0,$$slots:{default:[ort]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ort(n){let e;return{c(){e=oe("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function lrt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[urt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function srt(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[crt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function urt(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
|
|
936
936
|
latest version available.`)},m(o,l){S(o,e,l),S(o,t,l),j(t,i),S(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&vt(i,r)},d(o){o&&C(e),o&&C(t),o&&C(a)}}}function crt(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
|
|
937
937
|
`),o=X("b"),o.textContent=`${Ed.version}`,l=oe(` is available. Updates can contain new features,
|
|
938
938
|
performance improvements and bug fixes.`)},m(s,u){S(s,e,u),S(s,t,u),j(t,i),S(s,a,u),S(s,o,u),S(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&vt(i,r)},d(s){s&&C(e),s&&C(t),s&&C(a),s&&C(o),s&&C(l)}}}function lN(n){let e,t;return e=new xt({props:{size:"S",$$slots:{default:[frt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function frt(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=oe(`You can revert this app to version
|
|
@@ -941,7 +941,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
|
941
941
|
the application.`},m(t,r){S(t,e,r)},p:bt,d(t){t&&C(e)}}}function $rt(n){let e,t;return e=new _r({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:n[5],dataCy:"deploy-app-modal",$$slots:{default:[yrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&16384&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function wrt(n){let e,t;return e=new dp({props:{size:"XL"}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p:bt,i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function krt(n){let e,t;return e=new Rt({props:{justifyItems:"center",$$slots:{default:[wrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&16384&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function zrt(n){let e,t;return e=new _r({props:{showCancelButton:!1,showConfirmButton:!1,showCloseIcon:!1,$$slots:{default:[krt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&16384&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Art(n){let e,t;return e=new Wz({props:{value:n[4],label:"You can view your app at:",dataCy:"deployed-app-url"}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&16&&(a.value=r[4]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Mrt(n){let e;return{c(){e=X("div"),e.innerHTML=`<svg width="26px" height="26px" class="spectrum-Icon success-icon svelte-eq4le8" focusable="false"><use xlink:href="#spectrum-icon-18-GlobeCheck"></use></svg>
|
|
942
942
|
<span class="app-published-header-text svelte-eq4le8">App Published!</span>`,D(e,"slot","header"),D(e,"class","app-published-header svelte-eq4le8")},m(t,r){S(t,e,r)},p:bt,d(t){t&&C(e)}}}function Crt(n){let e,t;return e=new _r({props:{confirmText:"Done",cancelText:"View App",onCancel:n[6],dataCy:"deploy-app-success-modal",$$slots:{header:[Mrt],default:[Art]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&16400&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Srt(n){let e,t,r,i,a,o,l,s,u,c;e=new $n({props:{cta:!0,$$slots:{default:[_rt]},$$scope:{ctx:n}}}),e.$on("click",function(){An(n[1].show)&&n[1].show.apply(this,arguments)});let f={$$slots:{default:[brt]},$$scope:{ctx:n}};r=new ir({props:f}),n[9](r);let h={$$slots:{default:[$rt]},$$scope:{ctx:n}};a=new ir({props:h}),n[10](a);let m={$$slots:{default:[zrt]},$$scope:{ctx:n}};l=new ir({props:m}),n[11](l);let _={$$slots:{default:[Crt]},$$scope:{ctx:n}};return u=new ir({props:_}),n[12](u),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment),o=U(),O(l.$$.fragment),s=U(),O(u.$$.fragment)},m(y,w){H(e,y,w),S(y,t,w),H(r,y,w),S(y,i,w),H(a,y,w),S(y,o,w),H(l,y,w),S(y,s,w),H(u,y,w),c=!0},p(y,[w]){n=y;const A={};w&16384&&(A.$$scope={dirty:w,ctx:n}),e.$set(A);const E={};w&16384&&(E.$$scope={dirty:w,ctx:n}),r.$set(E);const T={};w&16384&&(T.$$scope={dirty:w,ctx:n}),a.$set(T);const I={};w&16384&&(I.$$scope={dirty:w,ctx:n}),l.$set(I);const P={};w&16400&&(P.$$scope={dirty:w,ctx:n}),u.$set(P)},i(y){c||(b(e.$$.fragment,y),b(r.$$.fragment,y),b(a.$$.fragment,y),b(l.$$.fragment,y),b(u.$$.fragment,y),c=!0)},o(y){$(e.$$.fragment,y),$(r.$$.fragment,y),$(a.$$.fragment,y),$(l.$$.fragment,y),$(u.$$.fragment,y),c=!1},d(y){B(e,y),y&&C(t),n[9](null),B(r,y),y&&C(i),n[10](null),B(a,y),y&&C(o),n[11](null),B(l,y),y&&C(s),n[12](null),B(u,y)}}}function Lrt(n,e,t){let r,i;Fe(n,rn,A=>t(13,i=A));let a,o,l,s,u,{onOk:c}=e;async function f(){try{l.show(),o.hide(),t(8,u=await tn.deployAppChanges()),typeof c=="function"&&await c(),l.hide(),s.show()}catch(A){K5.captureException(A),yt.error("Error publishing app")}}const h=()=>{u&&(K5.captureEvent(Qh.APP_VIEW_PUBLISHED,{appId:i.appId,eventSource:Hk.PORTAL}),window.open(r,"_blank"))};function m(A){He[A?"unshift":"push"](()=>{a=A,t(0,a)})}function _(A){He[A?"unshift":"push"](()=>{o=A,t(1,o)})}function y(A){He[A?"unshift":"push"](()=>{l=A,t(2,l)})}function w(A){He[A?"unshift":"push"](()=>{s=A,t(3,s)})}return n.$$set=A=>{"onOk"in A&&t(7,c=A.onOk)},n.$$.update=()=>{n.$$.dirty&256&&t(4,r=u?`${window.origin}/app${u.appUrl}`:"")},[a,o,l,s,r,f,h,c,u,m,_,y,w]}class Ert extends Re{constructor(e){super(),Ve(this,e,Lrt,Srt,Oe,{onOk:7})}}function cN(n){let e,t,r,i,a,o;r=new pn({props:{size:"M",hoverable:!0,name:"Globe",tooltip:"Your published app"}}),r.$on("click",function(){An(n[2].show())&&n[2].show().apply(this,arguments)});let l={align:"right",disabled:!n[5],dataCy:"publish-popover-menu",showTip:!0,anchor:n[3],$$slots:{default:[Irt]},$$scope:{ctx:n}};return a=new Pd({props:l}),n[16](a),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),i=U(),O(a.$$.fragment),D(e,"class","publish-popover")},m(s,u){S(s,e,u),j(e,t),H(r,t,null),n[15](t),j(e,i),H(a,e,null),o=!0},p(s,u){n=s;const c={};u&32&&(c.disabled=!n[5]),u&8&&(c.anchor=n[3]),u&1048610&&(c.$$scope={dirty:u,ctx:n}),a.$set(c)},i(s){o||(b(r.$$.fragment,s),b(a.$$.fragment,s),o=!0)},o(s){$(r.$$.fragment,s),$(a.$$.fragment,s),o=!1},d(s){s&&C(e),B(r),n[15](null),n[16](null),B(a)}}}function Trt(n){let e;return{c(){e=oe("Your published app")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Drt(n){let e,t=h2("Last published {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(n[1][0].updatedAt).getTime()})+"",r;return{c(){e=X("span"),r=oe(t),D(e,"class","publish-popover-message")},m(i,a){S(i,e,a),j(e,r)},p(i,a){a&2&&t!==(t=h2("Last published {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(i[1][0].updatedAt).getTime()})+"")&&vt(r,t)},d(i){i&&C(e)}}}function Hrt(n){let e;return{c(){e=oe("Unpublish")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Brt(n){let e;return{c(){e=oe("View app")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Ort(n){let e,t,r,i,a,o,l,s,u;return e=new Rn({props:{size:"XS",$$slots:{default:[Trt]},$$scope:{ctx:n}}}),r=new xt({props:{size:"S",$$slots:{default:[Drt]},$$scope:{ctx:n}}}),o=new $n({props:{warning:!0,icon:"GlobeStrike",disabled:!n[5],dataCy:"publish-popover-action",$$slots:{default:[Hrt]},$$scope:{ctx:n}}}),o.$on("click",n[8]),s=new $n({props:{cta:!0,$$slots:{default:[Brt]},$$scope:{ctx:n}}}),s.$on("click",n[7]),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),a=X("div"),O(o.$$.fragment),l=U(),O(s.$$.fragment),D(a,"class","publish-popover-actions svelte-1g7tk3q")},m(c,f){H(e,c,f),S(c,t,f),H(r,c,f),S(c,i,f),S(c,a,f),H(o,a,null),j(a,l),H(s,a,null),u=!0},p(c,f){const h={};f&1048576&&(h.$$scope={dirty:f,ctx:c}),e.$set(h);const m={};f&1048578&&(m.$$scope={dirty:f,ctx:c}),r.$set(m);const _={};f&32&&(_.disabled=!c[5]),f&1048576&&(_.$$scope={dirty:f,ctx:c}),o.$set(_);const y={};f&1048576&&(y.$$scope={dirty:f,ctx:c}),s.$set(y)},i(c){u||(b(e.$$.fragment,c),b(r.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(e.$$.fragment,c),$(r.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){B(e,c),c&&C(t),B(r,c),c&&C(i),c&&C(a),B(o),B(s)}}}function Irt(n){let e,t;return e=new Rt({props:{gap:"M",$$slots:{default:[Ort]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&1048610&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function fN(n){let e,t;return e=new pn({props:{size:"M",name:"GlobeStrike",disabled:!0,tooltip:"Your app has not been published yet"}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Prt(n){var o;let e,t,r=((o=n[0])==null?void 0:o.name)+"",i,a;return{c(){e=oe("Are you sure you want to unpublish the app "),t=X("b"),i=oe(r),a=oe("?")},m(l,s){S(l,e,s),S(l,t,s),j(t,i),S(l,a,s)},p(l,s){var u;s&1&&r!==(r=((u=l[0])==null?void 0:u.name)+"")&&vt(i,r)},d(l){l&&C(e),l&&C(t),l&&C(a)}}}function Vrt(n){let e;return{c(){e=oe("Preview")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Rrt(n){let e,t,r,i,a,o,l,s,u,c,f=n[5]&&cN(n),h=!n[5]&&fN(),m={title:"Confirm unpublish",okText:"Unpublish app",onOk:n[9],dataCy:"unpublish-modal",$$slots:{default:[Prt]},$$scope:{ctx:n}};return i=new au({props:m}),n[17](i),l=new $n({props:{newStyles:!0,secondary:!0,$$slots:{default:[Vrt]},$$scope:{ctx:n}}}),l.$on("click",n[6]),u=new Ert({props:{onOk:n[10]}}),{c(){e=X("div"),f&&f.c(),t=U(),h&&h.c(),r=U(),O(i.$$.fragment),a=U(),o=X("div"),O(l.$$.fragment),s=U(),O(u.$$.fragment),D(e,"class","deployment-top-nav"),D(o,"class","buttons svelte-1g7tk3q")},m(_,y){S(_,e,y),f&&f.m(e,null),j(e,t),h&&h.m(e,null),S(_,r,y),H(i,_,y),S(_,a,y),S(_,o,y),H(l,o,null),j(o,s),H(u,o,null),c=!0},p(_,[y]){_[5]?f?(f.p(_,y),y&32&&b(f,1)):(f=cN(_),f.c(),b(f,1),f.m(e,t)):f&&(Me(),$(f,1,1,()=>{f=null}),Ce()),_[5]?h&&(Me(),$(h,1,1,()=>{h=null}),Ce()):h?y&32&&b(h,1):(h=fN(),h.c(),b(h,1),h.m(e,null));const w={};y&1048577&&(w.$$scope={dirty:y,ctx:_}),i.$set(w);const A={};y&1048576&&(A.$$scope={dirty:y,ctx:_}),l.$set(A)},i(_){c||(b(f),b(h),b(i.$$.fragment,_),b(l.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(f),$(h),$(i.$$.fragment,_),$(l.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){_&&C(e),f&&f.d(),h&&h.d(),_&&C(r),n[17](null),B(i,_),_&&C(a),_&&C(o),B(l),B(u)}}}function Nrt(n,e,t){let r,i,a,o,l,s;Fe(n,l1,x=>t(14,s=x));let{application:u}=e,c,f,h;const m=(x,W)=>{x.length>0&&MX(x,W).length&&yt.warning("Deployment has been queued and will be processed shortly")};async function _(){try{const x=await tn.getAppDeployments();return m(a,x),x}catch{yt.error("Error fetching deployment overview")}}const y=()=>{window.open(`/${u}`)},w=()=>{K5.captureEvent(Qh.APP_VIEW_PUBLISHED,{appId:i.appId,eventSource:Hk.PORTAL}),i.url?window.open(`/app${i.url}`):window.open(`/${i.prodId}`)},A=()=>{c.hide(),h.show()},E=async()=>{if(!(!u||!l))try{await tn.unpublishApp(i.prodId),await l1.load(),yt.success("App unpublished successfully")}catch{yt.error("Error unpublishing app")}},T=async()=>{try{await l1.load(),t(12,a=await _())}catch{yt.error("Error refreshing app")}};ar(async()=>{s.length||await l1.load(),t(12,a=await _())});function I(x){He[x?"unshift":"push"](()=>{f=x,t(3,f)})}function P(x){He[x?"unshift":"push"](()=>{c=x,t(2,c)})}function N(x){He[x?"unshift":"push"](()=>{h=x,t(4,h)})}return n.$$set=x=>{"application"in x&&t(11,u=x.application)},n.$$.update=()=>{n.$$.dirty&18432&&t(13,r=s.filter(x=>x.devId===u&&x.status==="published")),n.$$.dirty&8192&&t(0,i=r!=null&&r.length?r[0]:null),n.$$.dirty&4096&&t(1,o=a.filter(x=>x.status==="SUCCESS").sort((x,W)=>x.updatedAt>W.updatedAt)),n.$$.dirty&3&&t(5,l=i&&(o==null?void 0:o.length)>0)},t(12,a=[]),[i,o,c,f,h,l,y,w,A,E,T,u,a,r,s,I,P,N]}class Frt extends Re{constructor(e){super(),Ve(this,e,Nrt,Rrt,Oe,{application:11})}}function pN(n,e,t){const r=n.slice();return r[15]=e[t].path,r[16]=e[t].title,r}function xrt(n){let e,t,r=n[19].message+"",i;return{c(){e=X("p"),t=oe("Something went wrong: "),i=oe(r)},m(a,o){S(a,e,o),j(e,t),j(e,i)},p:bt,i:bt,o:bt,d(a){a&&C(e)}}}function jrt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m,_,y,w,A,E,T;i=new pn({props:{size:"M",name:"ArrowLeft",hoverable:!0}}),i.$on("click",n[9]),o=new Rn({props:{size:"XS",$$slots:{default:[Urt]},$$scope:{ctx:n}}}),u=new K2({props:{selected:n[3],size:"M",$$slots:{default:[qrt]},$$scope:{ctx:n}}}),m=new AX({}),y=new Gnt({}),A=new Frt({props:{application:n[0]}});const I=n[8].default,P=Xn(I,n,n[10],null);return{c(){e=X("div"),t=X("div"),r=X("div"),O(i.$$.fragment),a=U(),O(o.$$.fragment),l=U(),s=X("div"),O(u.$$.fragment),c=U(),f=X("div"),h=X("div"),O(m.$$.fragment),_=U(),O(y.$$.fragment),w=U(),O(A.$$.fragment),E=U(),P&&P.c(),D(r,"class","topleftnav svelte-k8asv4"),D(s,"class","topcenternav svelte-k8asv4"),D(h,"class","version svelte-k8asv4"),D(f,"class","toprightnav svelte-k8asv4"),D(t,"class","top-nav svelte-k8asv4"),D(e,"class","root svelte-k8asv4")},m(N,x){S(N,e,x),j(e,t),j(t,r),H(i,r,null),j(r,a),H(o,r,null),j(t,l),j(t,s),H(u,s,null),j(t,c),j(t,f),j(f,h),H(m,h,null),j(f,_),H(y,f,null),j(f,w),H(A,f,null),j(e,E),P&&P.m(e,null),T=!0},p(N,x){const W={};x&1056&&(W.$$scope={dirty:x,ctx:N}),o.$set(W);const Y={};x&8&&(Y.selected=N[3]),x&1030&&(Y.$$scope={dirty:x,ctx:N}),u.$set(Y);const ee={};x&1&&(ee.application=N[0]),A.$set(ee),P&&P.p&&(!T||x&1024)&&Zn(P,I,N,N[10],T?Jn(I,N[10],x,null):Qn(N[10]),null)},i(N){T||(b(i.$$.fragment,N),b(o.$$.fragment,N),b(u.$$.fragment,N),b(m.$$.fragment,N),b(y.$$.fragment,N),b(A.$$.fragment,N),b(P,N),T=!0)},o(N){$(i.$$.fragment,N),$(o.$$.fragment,N),$(u.$$.fragment,N),$(m.$$.fragment,N),$(y.$$.fragment,N),$(A.$$.fragment,N),$(P,N),T=!1},d(N){N&&C(e),B(i),B(o),B(u),B(m),B(y),B(A),P&&P.d(N)}}}function Urt(n){let e=(n[5].name||"App")+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&32&&e!==(e=(r[5].name||"App")+"")&&vt(t,e)},d(r){r&&C(t)}}}function dN(n){let e,t;return e=new x1({props:{quiet:!0,selected:n[1](n[15]),title:Ac(n[16])}}),e.$on("click",function(){An(n[7](n[15]))&&n[7](n[15]).apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&6&&(a.selected=n[1](n[15])),i&4&&(a.title=Ac(n[16])),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function qrt(n){let e,t,r=n[2].children,i=[];for(let o=0;o<r.length;o+=1)i[o]=dN(pN(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l&134){r=o[2].children;let s;for(s=0;s<r.length;s+=1){const u=pN(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=dN(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for(Me(),s=r.length;s<i.length;s+=1)a(s);Ce()}},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){Dn(i,o),o&&C(e)}}}function Wrt(n){let e;return{c(){e=X("div"),D(e,"class","loading svelte-k8asv4")},m(t,r){S(t,e,r)},p:bt,i:bt,o:bt,d(t){t&&C(e)}}}function Grt(n){let e,t,r={ctx:n,current:null,token:null,hasCatch:!0,pending:Wrt,then:jrt,catch:xrt,value:14,error:19,blocks:[,,,]};return BZ(n[6],r),{c(){e=$t(),r.block.c()},m(i,a){S(i,e,a),r.block.m(i,r.anchor=a),r.mount=()=>e.parentNode,r.anchor=e,t=!0},p(i,[a]){n=i,OZ(r,n,a)},i(i){t||(b(r.block),t=!0)},o(i){for(let a=0;a<3;a+=1){const o=r.blocks[a];$(o)}t=!1},d(i){i&&C(e),r.block.d(i),r.token=null,r=null}}}function Yrt(n,e,t){let r,i,a,o,l,s;Fe(n,si,A=>t(4,i=A)),Fe(n,v6,A=>t(1,a=A)),Fe(n,HU,A=>t(2,o=A)),Fe(n,ca,A=>t(12,l=A)),Fe(n,rn,A=>t(5,s=A));let{$$slots:u={},$$scope:c}=e,{application:f}=e,h=_(),m=!1;async function _(){try{rn.actions.reset();const A=await tn.fetchAppPackage(f);return await rn.actions.initialise(A),await Or.actions.fetch(),await Bl.fetch(),await Av.fetch(),A}catch(A){yt.error(`Error initialising app: ${A==null?void 0:A.message}`),l("../../")}}const y=A=>()=>{const E=o.children.find(T=>a(T.path));!E||rn.update(T=>(T.previousTopNavPath||(T.previousTopNavPath={}),T.previousTopNavPath[E.path]=window.location.pathname,i(T.previousTopNavPath[A]||A),T))};ar(async()=>{if(!m&&f){try{await tn.syncApp(f)}catch{yt.error("Failed to sync with production database")}m=!0}}),s5(()=>{rn.update(A=>(A.appId=null,A))});const w=()=>i("../../portal/apps");return n.$$set=A=>{"application"in A&&t(0,f=A.application),"$$scope"in A&&t(10,c=A.$$scope)},n.$$.update=()=>{var A,E;n.$$.dirty&6&&t(3,r=Ac((E=(A=o.children.find(T=>a(T.path)))==null?void 0:A.title)!=null?E:"data"))},[f,a,o,r,i,s,h,y,u,w,c]}class Krt extends Re{constructor(e){super(),Ve(this,e,Yrt,Grt,Oe,{application:0})}}function Xrt(n,e,t){let r;return Fe(n,ca,i=>t(0,r=i)),r("../portal"),[]}class Jrt extends Re{constructor(e){super(),Ve(this,e,Xrt,null,Oe,{})}}function hN(n){let e;const t=n[2].default,r=Xn(t,n,n[1],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&2)&&Zn(r,t,i,i[1],e?Jn(t,i[1],a,null):Qn(i[1]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function Zrt(n){let e,t,r=n[0].user&&hN(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[0].user?r?(r.p(i,a),a&1&&b(r,1)):(r=hN(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(Me(),$(r,1,1,()=>{r=null}),Ce())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function Qrt(n,e,t){let r;Fe(n,mr,o=>t(0,r=o));let{$$slots:i={},$$scope:a}=e;return n.$$set=o=>{"$$scope"in o&&t(1,a=o.$$scope)},[r,a,i]}class eit extends Re{constructor(e){super(),Ve(this,e,Qrt,Zrt,Oe,{})}}const tit=(n,e={})=>{const t={points:12,saturation:.85,lightness:.7,softness:.9,seed:null,version:null},r=i=>{var y;i={...t,...i};const{saturation:a,lightness:o,softness:l,points:s}=i,u=i.seed||Math.random().toString(32).substring(2),c=(y=i.version)!=null?y:0,f=(w,A=0,E=100,T=0)=>{const I=E-A;let P=I+T;for(let N=0;N<w.length*2+T;N++)P=(P<<5)-P+w.charCodeAt(N%w.length),P=(P&P)%I+T;return A+P%I},h=(w,A,E=1)=>{const T=Math.min(100,a*100),I=Math.min(100,(a+.2)*100),P=Math.min(100,o*100),N=Math.min(100,(o+.2)*100),x=f(w,0,360,A),W=`${f(w,T,I,A)}%`,Y=`${f(w,P,N,A)}%`;return`hsla(${x},${W},${Y},${E})`},m=(w,A)=>{const E=Math.min(100,l*100),T=Math.min(100,(l+.2)*100),I=f(w,E,T,A);return`radial-gradient(at ${f(w,0,100,A)}% ${f(w,0,100,A+1)}%,${h(w,A,a)} 0,transparent ${I}%)`};let _=`opacity:0.9;background:${h(u,c,.7)};`;_+="background-image:";for(let w=0;w<s-1;w++)_+=`${m(u,c+w)},`;_+=`${m(u,s)};`,n.style=_};return r(e),{update:i=>{r(i)}}};function nit(n){let e;return{c(){e=oe("Personalise the platform by adding your first name and last name.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function rit(n){let e,t,r,i,a,o,l,s,u,c,f;e=new xt({props:{size:"S",$$slots:{default:[nit]},$$scope:{ctx:n}}});function h(E){n[4](E)}let m={disabled:!0,label:"Email"};n[1].user.email!==void 0&&(m.value=n[1].user.email),r=new En({props:m}),He.push(()=>rt(r,"value",h));function _(E){n[5](E)}let y={label:"First name",dataCy:"user-first-name"};n[0].firstName!==void 0&&(y.value=n[0].firstName),o=new En({props:y}),He.push(()=>rt(o,"value",_));function w(E){n[6](E)}let A={label:"Last name",dataCy:"user-last-name"};return n[0].lastName!==void 0&&(A.value=n[0].lastName),u=new En({props:A}),He.push(()=>rt(u,"value",w)),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),a=U(),O(o.$$.fragment),s=U(),O(u.$$.fragment)},m(E,T){H(e,E,T),S(E,t,T),H(r,E,T),S(E,a,T),H(o,E,T),S(E,s,T),H(u,E,T),f=!0},p(E,T){const I={};T&128&&(I.$$scope={dirty:T,ctx:E}),e.$set(I);const P={};!i&&T&2&&(i=!0,P.value=E[1].user.email,it(()=>i=!1)),r.$set(P);const N={};!l&&T&1&&(l=!0,N.value=E[0].firstName,it(()=>l=!1)),o.$set(N);const x={};!c&&T&1&&(c=!0,x.value=E[0].lastName,it(()=>c=!1)),u.$set(x)},i(E){f||(b(e.$$.fragment,E),b(r.$$.fragment,E),b(o.$$.fragment,E),b(u.$$.fragment,E),f=!0)},o(E){$(e.$$.fragment,E),$(r.$$.fragment,E),$(o.$$.fragment,E),$(u.$$.fragment,E),f=!1},d(E){B(e,E),E&&C(t),B(r,E),E&&C(a),B(o,E),E&&C(s),B(u,E)}}}function iit(n){let e,t;return e=new _r({props:{title:"Update user information",confirmText:"Update information",onConfirm:n[3],$$slots:{default:[rit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&131&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ait(n,e,t){let r,i;Fe(n,mr,c=>t(1,i=c));const a=yi({firstName:i.user.firstName,lastName:i.user.lastName});Fe(n,a,c=>t(0,r=c));const o=async()=>{try{await mr.updateSelf(r),yt.success("Information updated successfully")}catch{yt.error("Failed to update information")}};function l(c){n.$$.not_equal(i.user.email,c)&&(i.user.email=c,mr.set(i))}function s(c){n.$$.not_equal(r.firstName,c)&&(r.firstName=c,a.set(r))}function u(c){n.$$.not_equal(r.lastName,c)&&(r.lastName=c,a.set(r))}return[r,i,a,o,l,s,u]}class CX extends Re{constructor(e){super(),Ve(this,e,ait,iit,Oe,{})}}function oit(n){let e;return{c(){e=oe("Enter your new password below.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function lit(n){let e,t,r,i,a,o;e=new xt({props:{size:"S",$$slots:{default:[oit]},$$scope:{ctx:n}}});function l(c){n[3](c)}function s(c){n[4](c)}let u={};return n[0]!==void 0&&(u.password=n[0]),n[1]!==void 0&&(u.error=n[1]),r=new x_({props:u}),He.push(()=>rt(r,"password",l)),He.push(()=>rt(r,"error",s)),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(c,f){H(e,c,f),S(c,t,f),H(r,c,f),o=!0},p(c,f){const h={};f&32&&(h.$$scope={dirty:f,ctx:c}),e.$set(h);const m={};!i&&f&1&&(i=!0,m.password=c[0],it(()=>i=!1)),!a&&f&2&&(a=!0,m.error=c[1],it(()=>a=!1)),r.$set(m)},i(c){o||(b(e.$$.fragment,c),b(r.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(r.$$.fragment,c),o=!1},d(c){B(e,c),c&&C(t),B(r,c)}}}function sit(n){let e,t;return e=new _r({props:{title:"Update password",confirmText:"Update password",onConfirm:n[2],disabled:n[1]||!n[0],$$slots:{default:[lit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&3&&(a.disabled=r[1]||!r[0]),i&35&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function uit(n,e,t){let r,i;const a=async()=>{try{await mr.updateSelf({password:r}),yt.success("Password changed successfully")}catch{yt.error("Failed to update password")}};function o(s){r=s,t(0,r)}function l(s){i=s,t(1,i)}return[r,i,a,o,l]}class SX extends Re{constructor(e){super(),Ve(this,e,uit,sit,Oe,{})}}function mN(n,e,t){const r=n.slice();return r[19]=e[t],r[21]=t,r}function gN(n){let e,t,r,i,a,o,l;t=new hp({props:{$$slots:{default:[Bit]},$$scope:{ctx:n}}});let s={$$slots:{default:[Oit]},$$scope:{ctx:n}};i=new ir({props:s}),n[16](i);let u={$$slots:{default:[Iit]},$$scope:{ctx:n}};return o=new ir({props:u}),n[17](o),{c(){e=X("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),a=U(),O(o.$$.fragment),D(e,"class","container svelte-cm8cm3")},m(c,f){S(c,e,f),H(t,e,null),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),l=!0},p(c,f){const h={};f&4194557&&(h.$$scope={dirty:f,ctx:c}),t.$set(h);const m={};f&4194304&&(m.$$scope={dirty:f,ctx:c}),i.$set(m);const _={};f&4194304&&(_.$$scope={dirty:f,ctx:c}),o.$set(_)},i(c){l||(b(t.$$.fragment,c),b(i.$$.fragment,c),b(o.$$.fragment,c),l=!0)},o(c){$(t.$$.fragment,c),$(i.$$.fragment,c),$(o.$$.fragment,c),l=!1},d(c){c&&C(e),B(t),c&&C(r),n[16](null),B(i,c),c&&C(a),n[17](null),B(o,c)}}}function cit(n){let e;return{c(){e=oe("Update user information")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function fit(n){let e;return{c(){e=oe("Update password")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function vN(n){let e,t;return e=new Vi({props:{icon:"UserDeveloper",$$slots:{default:[pit]},$$scope:{ctx:n}}}),e.$on("click",n[15]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4194304&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function pit(n){let e;return{c(){e=oe("Open developer mode")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function dit(n){let e;return{c(){e=oe("Log out")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function hit(n){let e,t,r,i,a,o,l;e=new Vi({props:{icon:"UserEdit",$$slots:{default:[cit]},$$scope:{ctx:n}}}),e.$on("click",n[13]),r=new Vi({props:{icon:"LockClosed",$$slots:{default:[fit]},$$scope:{ctx:n}}}),r.$on("click",n[14]);let s=n[0].isBuilder&&vN(n);return o=new Vi({props:{icon:"LogOut",$$slots:{default:[dit]},$$scope:{ctx:n}}}),o.$on("click",n[8]),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),s&&s.c(),a=U(),O(o.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),s&&s.m(u,c),S(u,a,c),H(o,u,c),l=!0},p(u,c){const f={};c&4194304&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&4194304&&(h.$$scope={dirty:c,ctx:u}),r.$set(h),u[0].isBuilder?s?(s.p(u,c),c&1&&b(s,1)):(s=vN(u),s.c(),b(s,1),s.m(a.parentNode,a)):s&&(Me(),$(s,1,1,()=>{s=null}),Ce());const m={};c&4194304&&(m.$$scope={dirty:c,ctx:u}),o.$set(m)},i(u){l||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(s),b(o.$$.fragment,u),l=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(s),$(o.$$.fragment,u),l=!1},d(u){B(e,u),u&&C(t),B(r,u),u&&C(i),s&&s.d(u),u&&C(a),B(o,u)}}}function mit(n){let e,t,r,i,a;return t=new Id({props:{size:"M",initials:n[0].initials,url:n[0].user.pictureUrl}}),i=new pn({props:{size:"XL",name:"ChevronDown"}}),{c(){e=X("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),D(e,"slot","control"),D(e,"class","avatar svelte-cm8cm3")},m(o,l){S(o,e,l),H(t,e,null),j(e,r),H(i,e,null),a=!0},p(o,l){const s={};l&1&&(s.initials=o[0].initials),l&1&&(s.url=o[0].user.pictureUrl),t.$set(s)},i(o){a||(b(t.$$.fragment,o),b(i.$$.fragment,o),a=!0)},o(o){$(t.$$.fragment,o),$(i.$$.fragment,o),a=!1},d(o){o&&C(e),B(t),B(i)}}}function git(n){let e,t=(n[0].user.firstName||n[0].user.email)+"",r;return{c(){e=oe("Hey "),r=oe(t)},m(i,a){S(i,e,a),S(i,r,a)},p(i,a){a&1&&t!==(t=(i[0].user.firstName||i[0].user.email)+"")&&vt(r,t)},d(i){i&&C(e),i&&C(r)}}}function vit(n){let e,t=n[5].company+"",r,i;return{c(){e=oe("Welcome to the "),r=oe(t),i=oe(` portal. Below you'll find the
|
|
943
943
|
list of apps that you have access to.`)},m(a,o){S(a,e,o),S(a,r,o),S(a,i,o)},p(a,o){o&32&&t!==(t=a[5].company+"")&&vt(r,t)},d(a){a&&C(e),a&&C(r),a&&C(i)}}}function _it(n){let e,t,r,i;return e=new Rn({props:{size:"M",$$slots:{default:[git]},$$scope:{ctx:n}}}),r=new xt({props:{$$slots:{default:[vit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&4194305&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&4194336&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function bit(n){let e,t;return e=new Rt({props:{gap:"XS",noPadding:!0,$$slots:{default:[zit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4194304&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function yit(n){let e,t,r,i,a;return e=new Rn({props:{$$slots:{default:[Ait]},$$scope:{ctx:n}}}),i=new Rt({props:{gap:"S",noPadding:!0,$$slots:{default:[Eit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),r=X("div"),O(i.$$.fragment),D(r,"class","group")},m(o,l){H(e,o,l),S(o,t,l),S(o,r,l),H(i,r,null),a=!0},p(o,l){const s={};l&4194304&&(s.$$scope={dirty:l,ctx:o}),e.$set(s);const u={};l&4194320&&(u.$$scope={dirty:l,ctx:o}),i.$set(u)},i(o){a||(b(e.$$.fragment,o),b(i.$$.fragment,o),a=!0)},o(o){$(e.$$.fragment,o),$(i.$$.fragment,o),a=!1},d(o){B(e,o),o&&C(t),o&&C(r),B(i)}}}function $it(n){let e,t,r;return t=new Rt({props:{gap:"S",justifyItems:"center",$$slots:{default:[Dit]},$$scope:{ctx:n}}}),{c(){e=X("div"),O(t.$$.fragment)},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&4194304&&(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&&C(e),B(t)}}}function wit(n){let e;return{c(){e=oe("You don't have access to any apps yet.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function kit(n){let e;return{c(){e=oe("The apps you have access to will be listed here.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function zit(n){let e,t,r,i;return e=new Rn({props:{size:"S",$$slots:{default:[wit]},$$scope:{ctx:n}}}),r=new xt({props:{size:"S",$$slots:{default:[kit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&4194304&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&4194304&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function Ait(n){let e;return{c(){e=oe("Apps")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Mit(n){let e=n[19].name+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&16&&e!==(e=r[19].name+"")&&vt(t,e)},d(r){r&&C(t)}}}function Cit(n){let e;return{c(){e=oe("Never updated")},m(t,r){S(t,e,r)},p:bt,d(t){t&&C(e)}}}function Sit(n){let e=h2("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(n[19].updatedAt).getTime()})+"",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p(r,i){i&16&&e!==(e=h2("Updated {{ duration time 'millisecond' }} ago",{time:new Date().getTime()-new Date(r[19].updatedAt).getTime()})+"")&&vt(t,e)},d(r){r&&C(t)}}}function Lit(n){let e;function t(a,o){return a[19].updatedAt?Sit:Cit}let r=t(n),i=r(n);return{c(){i.c(),e=$t()},m(a,o){i.m(a,o),S(a,e,o)},p(a,o){r===(r=t(a))&&i?i.p(a,o):(i.d(1),i=r(a),i&&(i.c(),i.m(e.parentNode,e)))},d(a){i.d(a),a&&C(e)}}}function _N(n,e){let t,r,i,a,o,l,s,u,c,f,h,m,_,y,w;return l=new Rn({props:{size:"XS",$$slots:{default:[Mit]},$$scope:{ctx:e}}}),u=new xt({props:{size:"S",$$slots:{default:[Lit]},$$scope:{ctx:e}}}),f=new pn({props:{name:"ChevronRight"}}),{key:n,first:null,c(){t=X("a"),r=X("div"),a=U(),o=X("div"),O(l.$$.fragment),s=U(),O(u.$$.fragment),c=U(),O(f.$$.fragment),h=U(),D(r,"class","preview svelte-cm8cm3"),D(o,"class","app-info"),D(t,"class","app svelte-cm8cm3"),D(t,"target","_blank"),D(t,"href",m=bN(e[19])),this.first=t},m(A,E){S(A,t,E),j(t,r),j(t,a),j(t,o),H(l,o,null),j(o,s),H(u,o,null),j(t,c),H(f,t,null),j(t,h),_=!0,y||(w=Ol(i=tit.call(null,r,{seed:e[19].name})),y=!0)},p(A,E){e=A,i&&An(i.update)&&E&16&&i.update.call(null,{seed:e[19].name});const T={};E&4194320&&(T.$$scope={dirty:E,ctx:e}),l.$set(T);const I={};E&4194320&&(I.$$scope={dirty:E,ctx:e}),u.$set(I),(!_||E&16&&m!==(m=bN(e[19])))&&D(t,"href",m)},i(A){_||(b(l.$$.fragment,A),b(u.$$.fragment,A),b(f.$$.fragment,A),_=!0)},o(A){$(l.$$.fragment,A),$(u.$$.fragment,A),$(f.$$.fragment,A),_=!1},d(A){A&&C(t),B(l),B(u),B(f),y=!1,w()}}}function Eit(n){let e=[],t=new Map,r,i,a=n[4];const o=l=>l[19].appId;for(let l=0;l<a.length;l+=1){let s=mN(n,a,l),u=o(s);t.set(u,e[l]=_N(u,s))}return{c(){for(let l=0;l<e.length;l+=1)e[l].c();r=$t()},m(l,s){for(let u=0;u<e.length;u+=1)e[u].m(l,s);S(l,r,s),i=!0},p(l,s){s&16&&(a=l[4],Me(),e=Pl(e,s,o,1,l,a,t,r.parentNode,Mc,_N,r,mN),Ce())},i(l){if(!i){for(let s=0;s<a.length;s+=1)b(e[s]);i=!0}},o(l){for(let s=0;s<e.length;s+=1)$(e[s]);i=!1},d(l){for(let s=0;s<e.length;s+=1)e[s].d(l);l&&C(r)}}}function Tit(n){let e="Your apps are currently offline.",t;return{c(){t=oe(e)},m(r,i){S(r,t,i)},p:bt,d(r){r&&C(t)}}}function Dit(n){let e,t,r,i,a,o;return i=new Rn({props:{size:"M",$$slots:{default:[Tit]},$$scope:{ctx:n}}}),{c(){e=X("img"),r=U(),O(i.$$.fragment),a=oe(`
|
|
944
|
-
Please contact the account holder to get them back online.`),D(e,"class","spaceman svelte-cm8cm3"),D(e,"alt","spaceman"),$1(e.src,t=qz)||D(e,"src",t)},m(l,s){S(l,e,s),S(l,r,s),H(i,l,s),S(l,a,s),o=!0},p(l,s){const u={};s&4194304&&(u.$$scope={dirty:s,ctx:l}),i.$set(u)},i(l){o||(b(i.$$.fragment,l),o=!0)},o(l){$(i.$$.fragment,l),o=!1},d(l){l&&C(e),l&&C(r),B(i,l),l&&C(a)}}}function Hit(n){let e,t,r,i,a,o,l,s,u,c,f,h,m,_;a=new Lc({props:{align:"right",dataCy:"user-menu",$$slots:{control:[mit],default:[hit]},$$scope:{ctx:n}}}),l=new Rt({props:{noPadding:!0,gap:"XS",$$slots:{default:[_it]},$$scope:{ctx:n}}}),u=new hi({});const y=[$it,yit,bit],w=[];function A(E,T){return
|
|
944
|
+
Please contact the account holder to get them back online.`),D(e,"class","spaceman svelte-cm8cm3"),D(e,"alt","spaceman"),$1(e.src,t=qz)||D(e,"src",t)},m(l,s){S(l,e,s),S(l,r,s),H(i,l,s),S(l,a,s),o=!0},p(l,s){const u={};s&4194304&&(u.$$scope={dirty:s,ctx:l}),i.$set(u)},i(l){o||(b(i.$$.fragment,l),o=!0)},o(l){$(i.$$.fragment,l),o=!1},d(l){l&&C(e),l&&C(r),B(i,l),l&&C(a)}}}function Hit(n){let e,t,r,i,a,o,l,s,u,c,f,h,m,_;a=new Lc({props:{align:"right",dataCy:"user-menu",$$slots:{control:[mit],default:[hit]},$$scope:{ctx:n}}}),l=new Rt({props:{noPadding:!0,gap:"XS",$$slots:{default:[_it]},$$scope:{ctx:n}}}),u=new hi({});const y=[$it,yit,bit],w=[];function A(E,T){var I;return((I=E[7].usageMetrics)==null?void 0:I.dayPasses)>=100?0:E[4].length?1:2}return f=A(n),h=w[f]=y[f](n),{c(){e=X("div"),t=X("img"),i=U(),O(a.$$.fragment),o=U(),O(l.$$.fragment),s=U(),O(u.$$.fragment),c=U(),h.c(),m=$t(),D(t,"class","logo svelte-cm8cm3"),D(t,"alt","logo"),$1(t.src,r=n[5].logoUrl||zc)||D(t,"src",r),D(e,"class","header svelte-cm8cm3")},m(E,T){S(E,e,T),j(e,t),j(e,i),H(a,e,null),S(E,o,T),H(l,E,T),S(E,s,T),H(u,E,T),S(E,c,T),w[f].m(E,T),S(E,m,T),_=!0},p(E,T){(!_||T&32&&!$1(t.src,r=E[5].logoUrl||zc))&&D(t,"src",r);const I={};T&4194381&&(I.$$scope={dirty:T,ctx:E}),a.$set(I);const P={};T&4194337&&(P.$$scope={dirty:T,ctx:E}),l.$set(P);let N=f;f=A(E),f===N?w[f].p(E,T):(Me(),$(w[N],1,1,()=>{w[N]=null}),Ce(),h=w[f],h?h.p(E,T):(h=w[f]=y[f](E),h.c()),b(h,1),h.m(m.parentNode,m))},i(E){_||(b(a.$$.fragment,E),b(l.$$.fragment,E),b(u.$$.fragment,E),b(h),_=!0)},o(E){$(a.$$.fragment,E),$(l.$$.fragment,E),$(u.$$.fragment,E),$(h),_=!1},d(E){E&&C(e),B(a),E&&C(o),B(l,E),E&&C(s),B(u,E),E&&C(c),w[f].d(E),E&&C(m)}}}function Bit(n){let e,t,r;return t=new Rt({props:{noPadding:!0,$$slots:{default:[Hit]},$$scope:{ctx:n}}}),{c(){e=X("div"),O(t.$$.fragment),D(e,"class","content svelte-cm8cm3")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&4194557&&(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&&C(e),B(t)}}}function Oit(n){let e,t;return e=new CX({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Iit(n){let e,t;return e=new SX({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Pit(n){let e,t,r=n[0].user&&n[1]&&gN(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[0].user&&i[1]?r?(r.p(i,a),a&3&&b(r,1)):(r=gN(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(Me(),$(r,1,1,()=>{r=null}),Ce())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function bN(n){return n.url?`/app${n.url}`:`/${n.prodId}`}function Vit(n,e,t){let r,i,a,o,l,s,u,c;Fe(n,mr,N=>t(0,a=N)),Fe(n,l1,N=>t(11,o=N)),Fe(n,b1,N=>t(12,l=N)),Fe(n,Bs,N=>t(5,s=N)),Fe(n,si,N=>t(6,u=N)),Fe(n,Ba,N=>t(7,c=N));let f=!1,h,m;ar(async()=>{try{await Bs.init(),await l1.load(),await b1.actions.init()}catch{yt.error("Error loading apps")}t(1,f=!0)});const _=N=>N.status===op.DEPLOYED;let y=[];const w=async()=>{try{await mr.logout()}catch{}},A=()=>h.show(),E=()=>m.show(),T=()=>u("../portal");function I(N){He[N?"unshift":"push"](()=>{h=N,t(2,h)})}function P(N){He[N?"unshift":"push"](()=>{m=N,t(3,m)})}return n.$$.update=()=>{var N,x,W,Y,ee,te,le,ne,J,q;n.$$.dirty&4097&&t(10,r=l.filter(ie=>ie.users.find(ce=>{var de;return ce._id===((de=a.user)==null?void 0:de._id)}))),n.$$.dirty&2048&&t(9,i=o.filter(_)),n.$$.dirty&1537&&(!Object.keys((N=a.user)==null?void 0:N.roles).length&&((x=a.user)==null?void 0:x.userGroups)?t(4,y=((Y=(W=a.user)==null?void 0:W.builder)==null?void 0:Y.global)||((te=(ee=a.user)==null?void 0:ee.admin)==null?void 0:te.global)?i:i.filter(ie=>r.find(ce=>b1.actions.getGroupAppIds(ce).map(de=>l1.extractAppId(de)).includes(ie.appId)))):t(4,y=((ne=(le=a.user)==null?void 0:le.builder)==null?void 0:ne.global)||((q=(J=a.user)==null?void 0:J.admin)==null?void 0:q.global)?i:i.filter(ie=>{var ce;return Object.keys((ce=a.user)==null?void 0:ce.roles).map(de=>l1.extractAppId(de)).includes(ie.appId)})))},[a,f,h,m,y,s,u,c,w,i,r,o,l,A,E,T,I,P]}class Rit extends Re{constructor(e){super(),Ve(this,e,Vit,Pit,Oe,{})}}function yN(n){let e;const t=n[2].default,r=Xn(t,n,n[1],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&2)&&Zn(r,t,i,i[1],e?Jn(t,i[1],a,null):Qn(i[1]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function Nit(n){let e,t,r=n[0].user&&yN(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[0].user?r?(r.p(i,a),a&1&&b(r,1)):(r=yN(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(Me(),$(r,1,1,()=>{r=null}),Ce())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function Fit(n,e,t){let r;Fe(n,mr,o=>t(0,r=o));let{$$slots:i={},$$scope:a}=e;return n.$$set=o=>{"$$scope"in o&&t(1,a=o.$$scope)},[r,a,i]}class xit extends Re{constructor(e){super(),Ve(this,e,Fit,Nit,Oe,{})}}function jit(n){let e,t;return{c(){e=X("img"),D(e,"alt","logo"),$1(e.src,t=n[1].logoUrl||zc)||D(e,"src",t),D(e,"class","svelte-jotad8")},m(r,i){S(r,e,i)},p(r,i){i&2&&!$1(e.src,t=r[1].logoUrl||zc)&&D(e,"src",t)},d(r){r&&C(e)}}}function Uit(n){let e;return{c(){e=oe("Forgotten your password?")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function qit(n){let e;return{c(){e=oe(`No problem! Just enter your account's email address and we'll send you
|
|
945
945
|
a link to reset it.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wit(n){let e,t,r,i,a,o,l;e=new Rn({props:{textAlign:"center",$$slots:{default:[Uit]},$$scope:{ctx:n}}}),r=new xt({props:{size:"S",textAlign:"center",$$slots:{default:[qit]},$$scope:{ctx:n}}});function s(c){n[4](c)}let u={label:"Email"};return n[0]!==void 0&&(u.value=n[0]),a=new En({props:u}),He.push(()=>rt(a,"value",s)),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(c,f){H(e,c,f),S(c,t,f),H(r,c,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};f&64&&(h.$$scope={dirty:f,ctx:c}),e.$set(h);const m={};f&64&&(m.$$scope={dirty:f,ctx:c}),r.$set(m);const _={};!o&&f&1&&(o=!0,_.value=c[0],it(()=>o=!1)),a.$set(_)},i(c){l||(b(e.$$.fragment,c),b(r.$$.fragment,c),b(a.$$.fragment,c),l=!0)},o(c){$(e.$$.fragment,c),$(r.$$.fragment,c),$(a.$$.fragment,c),l=!1},d(c){B(e,c),c&&C(t),B(r,c),c&&C(i),B(a,c)}}}function Git(n){let e;return{c(){e=oe("Reset your password")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Yit(n){let e;return{c(){e=oe("Back")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Kit(n){let e,t,r,i;return e=new $n({props:{cta:!0,disabled:!n[0],$$slots:{default:[Git]},$$scope:{ctx:n}}}),e.$on("click",n[3]),r=new Br({props:{quiet:!0,$$slots:{default:[Yit]},$$scope:{ctx:n}}}),r.$on("click",n[5]),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&1&&(l.disabled=!a[0]),o&64&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&64&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function Xit(n){let e,t,r,i,a,o;return e=new Rt({props:{noPadding:!0,justifyItems:"center",$$slots:{default:[jit]},$$scope:{ctx:n}}}),r=new Rt({props:{gap:"XS",noPadding:!0,$$slots:{default:[Wit]},$$scope:{ctx:n}}}),a=new Rt({props:{gap:"XS",nopadding:!0,$$slots:{default:[Kit]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(l,s){H(e,l,s),S(l,t,s),H(r,l,s),S(l,i,s),H(a,l,s),o=!0},p(l,s){const u={};s&66&&(u.$$scope={dirty:s,ctx:l}),e.$set(u);const c={};s&65&&(c.$$scope={dirty:s,ctx:l}),r.$set(c);const f={};s&69&&(f.$$scope={dirty:s,ctx:l}),a.$set(f)},i(l){o||(b(e.$$.fragment,l),b(r.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(e.$$.fragment,l),$(r.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){B(e,l),l&&C(t),B(r,l),l&&C(i),B(a,l)}}}function Jit(n){let e,t,r,i;return r=new Rt({props:{$$slots:{default:[Xit]},$$scope:{ctx:n}}}),{c(){e=X("div"),t=X("div"),O(r.$$.fragment),D(t,"class","main svelte-jotad8"),D(e,"class","login svelte-jotad8")},m(a,o){S(a,e,o),j(e,t),H(r,t,null),i=!0},p(a,[o]){const l={};o&71&&(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&&C(e),B(r)}}}function Zit(n,e,t){let r,i;Fe(n,Bs,u=>t(1,r=u)),Fe(n,si,u=>t(2,i=u));let a="";async function o(){try{await mr.forgotPassword(a),yt.success("Email sent - please check your inbox")}catch{yt.error("Unable to send reset password link")}}ar(async()=>{try{await Bs.init()}catch{yt.error("Error getting org config")}});function l(u){a=u,t(0,a)}return[a,r,i,o,l,()=>i("../")]}class Qit extends Re{constructor(e){super(),Ve(this,e,Zit,Jit,Oe,{})}}function e1t(n,e,t){let r,i,a,o,l;Fe(n,ca,u=>t(3,a=u)),Fe(n,Fi,u=>t(4,o=u)),Fe(n,mr,u=>t(5,l=u));let s=!1;return ar(async()=>{try{await Fi.init(),await mr.checkQueryString()}catch{yt.error("Error getting checklist")}t(0,s=!0)}),n.$$.update=()=>{n.$$.dirty&32&&t(1,r=l.tenantSet),n.$$.dirty&16&&t(2,i=o.multiTenancy),n.$$.dirty&15&&(s&&i&&!r?a("./org"):s&&a("./login"))},[s,r,i,a,o,l]}class t1t extends Re{constructor(e){super(),Ve(this,e,e1t,null,Oe,{})}}function $N(n){let e,t;return e=new Br({props:{$$slots:{default:[n1t]},$$scope:{ctx:n}}}),e.$on("click",n[4]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&32&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function n1t(n){let e,t,r,i,a;return{c(){e=X("div"),t=X("img"),i=U(),a=X("p"),a.textContent="Sign in with Google",$1(t.src,r=HK)||D(t,"src",r),D(t,"alt","google icon"),D(t,"class","svelte-yex2p4"),D(a,"class","svelte-yex2p4"),D(e,"class","inner svelte-yex2p4")},m(o,l){S(o,e,l),j(e,t),j(e,i),j(e,a)},p:bt,d(o){o&&C(e)}}}function r1t(n){let e,t,r=n[0]&&$N(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[0]?r?(r.p(i,a),a&1&&b(r,1)):(r=$N(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(Me(),$(r,1,1,()=>{r=null}),Ce())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function i1t(n,e,t){let r,i,a;Fe(n,Bs,s=>t(2,i=s)),Fe(n,mr,s=>t(3,a=s));let o;const l=()=>window.open(`/api/global/auth/${r}/google`,"_blank");return n.$$.update=()=>{n.$$.dirty&8&&t(1,r=a.tenantId),n.$$.dirty&4&&t(0,o=i.google)},[o,r,i,a,l]}class a1t extends Re{constructor(e){super(),Ve(this,e,i1t,r1t,Oe,{})}}const gw="/builder/assets/oidc-logo.cb2fff74.png",LX="/builder/assets/auth0-logo.6fa5973f.png",EX="/builder/assets/microsoft-logo.07033b2a.png",TX="/builder/assets/okta-logo.61437d3d.png",DX="/builder/assets/onelogin-logo.181cc193.png";function wN(n){let e,t;return e=new Br({props:{$$slots:{default:[o1t]},$$scope:{ctx:n}}}),e.$on("click",n[5]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&131&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function o1t(n){let e,t,r,i,a,o=`Sign in with ${n[0].name||"OIDC"}`,l;return{c(){e=X("div"),t=X("img"),i=U(),a=X("p"),l=oe(o),$1(t.src,r=n[1])||D(t,"src",r),D(t,"alt","oidc icon"),D(t,"class","svelte-yex2p4"),D(a,"class","svelte-yex2p4"),D(e,"class","inner svelte-yex2p4")},m(s,u){S(s,e,u),j(e,t),j(e,i),j(e,a),j(a,l)},p(s,u){u&2&&!$1(t.src,r=s[1])&&D(t,"src",r),u&1&&o!==(o=`Sign in with ${s[0].name||"OIDC"}`)&&vt(l,o)},d(s){s&&C(e)}}}function l1t(n){let e,t,r=n[2]&&wN(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[2]?r?(r.p(i,a),a&4&&b(r,1)):(r=wN(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(Me(),$(r,1,1,()=>{r=null}),Ce())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function s1t(n,e,t){let r,i,a,o,l;Fe(n,J$,c=>t(0,a=c)),Fe(n,Bs,c=>t(4,o=c)),Fe(n,mr,c=>t(3,l=c));let s={Oidc:gw,Auth0:LX,Microsoft:EX,Okta:TX,OneLogin:DX};ar(async()=>{try{await J$.init()}catch{yt.error("Error getting OIDC config")}});const u=()=>window.open(`/api/global/auth/${l.tenantId}/oidc/configs/${a.uuid}`,"_blank");return n.$$.update=()=>{n.$$.dirty&16&&t(2,r=o.oidc),n.$$.dirty&1&&t(1,i=a.logo?s[a.logo]||`/global/logos_oidc/${a.logo}`:gw)},[a,i,r,l,o,u]}class u1t extends Re{constructor(e){super(),Ve(this,e,s1t,l1t,Oe,{})}}function c1t(n){let e,t;return{c(){e=oe("Sign in to "),t=oe(n[6])},m(r,i){S(r,e,i),S(r,t,i)},p(r,i){i&64&&vt(t,r[6])},d(r){r&&C(e),r&&C(t)}}}function f1t(n){let e,t,r,i,a;return i=new Rn({props:{$$slots:{default:[c1t]},$$scope:{ctx:n}}}),{c(){e=X("img"),r=U(),O(i.$$.fragment),D(e,"alt","logo"),$1(e.src,t=n[0].logoUrl||zc)||D(e,"src",t),D(e,"class","svelte-jotad8")},m(o,l){S(o,e,l),S(o,r,l),H(i,o,l),a=!0},p(o,l){(!a||l&1&&!$1(e.src,t=o[0].logoUrl||zc))&&D(e,"src",t);const s={};l&262208&&(s.$$scope={dirty:l,ctx:o}),i.$set(s)},i(o){a||(b(i.$$.fragment,o),a=!0)},o(o){$(i.$$.fragment,o),a=!1},d(o){o&&C(e),o&&C(r),B(i,o)}}}function kN(n){let e,t,r,i;return e=new a1t({}),r=new u1t({props:{oidcIcon:n[8].logo,oidcName:n[8].name}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&256&&(l.oidcIcon=a[8].logo),o&256&&(l.oidcName=a[8].name),r.$set(l)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function p1t(n){let e;return{c(){e=oe("Sign in with email")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function d1t(n){let e,t,r,i,a,o,l,s;e=new xt({props:{size:"S",textAlign:"center",$$slots:{default:[p1t]},$$scope:{ctx:n}}});function u(m){n[12](m)}let c={label:"Email"};n[1]!==void 0&&(c.value=n[1]),r=new En({props:c}),He.push(()=>rt(r,"value",u));function f(m){n[13](m)}let h={label:"Password",type:"password"};return n[2]!==void 0&&(h.value=n[2]),o=new En({props:h}),He.push(()=>rt(o,"value",f)),o.$on("change",n[14]),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),a=U(),O(o.$$.fragment)},m(m,_){H(e,m,_),S(m,t,_),H(r,m,_),S(m,a,_),H(o,m,_),s=!0},p(m,_){const y={};_&262144&&(y.$$scope={dirty:_,ctx:m}),e.$set(y);const w={};!i&&_&2&&(i=!0,w.value=m[1],it(()=>i=!1)),r.$set(w);const A={};!l&&_&4&&(l=!0,A.value=m[2],it(()=>l=!1)),o.$set(A)},i(m){s||(b(e.$$.fragment,m),b(r.$$.fragment,m),b(o.$$.fragment,m),s=!0)},o(m){$(e.$$.fragment,m),$(r.$$.fragment,m),$(o.$$.fragment,m),s=!1},d(m){B(e,m),m&&C(t),B(r,m),m&&C(a),B(o,m)}}}function h1t(n){let e,t;return{c(){e=oe("Sign in to "),t=oe(n[6])},m(r,i){S(r,e,i),S(r,t,i)},p(r,i){i&64&&vt(t,r[6])},d(r){r&&C(e),r&&C(t)}}}function m1t(n){let e;return{c(){e=oe("Forgot password?")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function zN(n){let e,t;return e=new Br({props:{quiet:!0,$$slots:{default:[g1t]},$$scope:{ctx:n}}}),e.$on("click",n[16]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&262144&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function g1t(n){let e;return{c(){e=oe("Change organisation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function v1t(n){let e,t,r,i,a,o;e=new $n({props:{cta:!0,disabled:!n[1]&&!n[2],$$slots:{default:[h1t]},$$scope:{ctx:n}}}),e.$on("click",n[9]),r=new Br({props:{quiet:!0,$$slots:{default:[m1t]},$$scope:{ctx:n}}}),r.$on("click",n[15]);let l=n[5]&&!n[4]&&zN(n);return{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),l&&l.c(),a=$t()},m(s,u){H(e,s,u),S(s,t,u),H(r,s,u),S(s,i,u),l&&l.m(s,u),S(s,a,u),o=!0},p(s,u){const c={};u&6&&(c.disabled=!s[1]&&!s[2]),u&262208&&(c.$$scope={dirty:u,ctx:s}),e.$set(c);const f={};u&262144&&(f.$$scope={dirty:u,ctx:s}),r.$set(f),s[5]&&!s[4]?l?(l.p(s,u),u&48&&b(l,1)):(l=zN(s),l.c(),b(l,1),l.m(a.parentNode,a)):l&&(Me(),$(l,1,1,()=>{l=null}),Ce())},i(s){o||(b(e.$$.fragment,s),b(r.$$.fragment,s),b(l),o=!0)},o(s){$(e.$$.fragment,s),$(r.$$.fragment,s),$(l),o=!1},d(s){B(e,s),s&&C(t),B(r,s),s&&C(i),l&&l.d(s),s&&C(a)}}}function AN(n){let e,t;return e=new xt({props:{size:"xs",textAlign:"center",$$slots:{default:[b1t]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function _1t(n){let e;return{c(){e=oe("License Agreement")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function b1t(n){let e,t,r,i,a;return i=new j3({props:{href:"https://budibase.com/eula",target:"_blank",$$slots:{default:[_1t]},$$scope:{ctx:n}}}),{c(){e=oe(`By using Budibase Cloud
|
|
946
946
|
`),t=X("br"),r=oe(`
|
|
947
947
|
you are agreeing to our
|
package/builder/index.html
CHANGED
|
@@ -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.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.8d2d14ee.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.ffaba7b0.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1664223939379" clover="3.2.0">
|
|
3
|
+
<project timestamp="1664223939379" name="All files">
|
|
4
4
|
<metrics statements="4106" coveredstatements="2991" conditionals="1763" coveredconditionals="966" methods="611" coveredmethods="429" elements="6480" coveredelements="4386" complexity="0" loc="4106" ncloc="4106" packages="22" files="122" classes="122"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
@@ -232,7 +232,7 @@ exports.update = async function (ctx) {
|
|
|
232
232
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
233
233
|
Code coverage generated by
|
|
234
234
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
235
|
-
at Mon Sep 26 2022
|
|
235
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -925,7 +925,7 @@ exports.test = async function (ctx) {
|
|
|
925
925
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
926
926
|
Code coverage generated by
|
|
927
927
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
928
|
-
at Mon Sep 26 2022
|
|
928
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
929
929
|
</div>
|
|
930
930
|
<script src="../../prettify.js"></script>
|
|
931
931
|
<script>
|
|
@@ -127,7 +127,7 @@ exports.exportAppDump = async function (ctx) {
|
|
|
127
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
128
128
|
Code coverage generated by
|
|
129
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
130
|
-
at Mon Sep 26 2022
|
|
130
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
131
131
|
</div>
|
|
132
132
|
<script src="../../prettify.js"></script>
|
|
133
133
|
<script>
|
|
@@ -400,7 +400,7 @@ exports.importApps = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
400
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
401
|
Code coverage generated by
|
|
402
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at Mon Sep 26 2022
|
|
403
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../prettify.js"></script>
|
|
406
406
|
<script>
|
|
@@ -898,7 +898,7 @@ const buildSchemaHelper = <span class="fstat-no" title="function not covered" >a
|
|
|
898
898
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
899
899
|
Code coverage generated by
|
|
900
900
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
901
|
-
at Mon Sep 26 2022
|
|
901
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
902
902
|
</div>
|
|
903
903
|
<script src="../../prettify.js"></script>
|
|
904
904
|
<script>
|
|
@@ -475,7 +475,7 @@ exports.getBudibaseVersion = async ctx => {
|
|
|
475
475
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
476
476
|
Code coverage generated by
|
|
477
477
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
478
|
-
at Mon Sep 26 2022
|
|
478
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
479
479
|
</div>
|
|
480
480
|
<script src="../../prettify.js"></script>
|
|
481
481
|
<script>
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
342
342
|
Code coverage generated by
|
|
343
343
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
344
|
-
at Mon Sep 26 2022
|
|
344
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
345
345
|
</div>
|
|
346
346
|
<script src="../../prettify.js"></script>
|
|
347
347
|
<script>
|
|
@@ -136,7 +136,7 @@ exports.find = async function (ctx) {
|
|
|
136
136
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
137
|
Code coverage generated by
|
|
138
138
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
-
at Mon Sep 26 2022
|
|
139
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../../prettify.js"></script>
|
|
142
142
|
<script>
|
|
@@ -211,7 +211,7 @@ exports.destroy = async function (ctx) {
|
|
|
211
211
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
212
212
|
Code coverage generated by
|
|
213
213
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
214
|
-
at Mon Sep 26 2022
|
|
214
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
215
215
|
</div>
|
|
216
216
|
<script src="../../prettify.js"></script>
|
|
217
217
|
<script>
|
|
@@ -193,7 +193,7 @@ exports.getMetadata = async ctx => {
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at Mon Sep 26 2022
|
|
196
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
197
197
|
</div>
|
|
198
198
|
<script src="../../prettify.js"></script>
|
|
199
199
|
<script>
|
|
@@ -109,7 +109,7 @@ exports.fetchDefinitions = <span class="fstat-no" title="function not covered" >
|
|
|
109
109
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
110
110
|
Code coverage generated by
|
|
111
111
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
-
at Mon Sep 26 2022
|
|
112
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
113
113
|
</div>
|
|
114
114
|
<script src="../../prettify.js"></script>
|
|
115
115
|
<script>
|
|
@@ -595,7 +595,7 @@ exports.removePermission = async function (ctx) {
|
|
|
595
595
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
596
596
|
Code coverage generated by
|
|
597
597
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
598
|
-
at Mon Sep 26 2022
|
|
598
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
599
599
|
</div>
|
|
600
600
|
<script src="../../prettify.js"></script>
|
|
601
601
|
<script>
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
102
102
|
Code coverage generated by
|
|
103
103
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
104
|
-
at Mon Sep 26 2022
|
|
104
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
105
105
|
</div>
|
|
106
106
|
<script src="../../../prettify.js"></script>
|
|
107
107
|
<script>
|
|
@@ -220,7 +220,7 @@ exports.generateQueryPreviewValidation = () => {
|
|
|
220
220
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
221
221
|
Code coverage generated by
|
|
222
222
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
223
|
-
at Mon Sep 26 2022
|
|
223
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
224
224
|
</div>
|
|
225
225
|
<script src="../../../prettify.js"></script>
|
|
226
226
|
<script>
|
|
@@ -394,7 +394,7 @@ exports.destroy = async function (ctx) {
|
|
|
394
394
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
395
395
|
Code coverage generated by
|
|
396
396
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
397
|
-
at Mon Sep 26 2022
|
|
397
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
398
398
|
</div>
|
|
399
399
|
<script src="../../prettify.js"></script>
|
|
400
400
|
<script>
|
|
@@ -346,7 +346,7 @@ exports.clientFetch = async ctx => {
|
|
|
346
346
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
347
347
|
Code coverage generated by
|
|
348
348
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
349
|
-
at Mon Sep 26 2022
|
|
349
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -829,7 +829,7 @@ exports.fetchEnrichedRow = <span class="fstat-no" title="function not covered" >
|
|
|
829
829
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
830
830
|
Code coverage generated by
|
|
831
831
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
832
|
-
at Mon Sep 26 2022
|
|
832
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
833
833
|
</div>
|
|
834
834
|
<script src="../../../prettify.js"></script>
|
|
835
835
|
<script>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at Mon Sep 26 2022
|
|
164
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -1477,7 +1477,7 @@ exports.fetchEnrichedRow = async ctx => {
|
|
|
1477
1477
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1478
1478
|
Code coverage generated by
|
|
1479
1479
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1480
|
-
at Mon Sep 26 2022
|
|
1480
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
1481
1481
|
</div>
|
|
1482
1482
|
<script src="../../../prettify.js"></script>
|
|
1483
1483
|
<script>
|
|
@@ -1576,7 +1576,7 @@ exports.fullSearch = async (query, params) => {
|
|
|
1576
1576
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1577
1577
|
Code coverage generated by
|
|
1578
1578
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1579
|
-
at Mon Sep 26 2022
|
|
1579
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
1580
1580
|
</div>
|
|
1581
1581
|
<script src="../../../prettify.js"></script>
|
|
1582
1582
|
<script>
|
|
@@ -538,7 +538,7 @@ exports.finaliseRow = async (
|
|
|
538
538
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
539
539
|
Code coverage generated by
|
|
540
540
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
541
|
-
at Mon Sep 26 2022
|
|
541
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
542
542
|
</div>
|
|
543
543
|
<script src="../../../prettify.js"></script>
|
|
544
544
|
<script>
|
|
@@ -364,7 +364,7 @@ exports.validate = async ({ tableId, row, table }) => {
|
|
|
364
364
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
365
365
|
Code coverage generated by
|
|
366
366
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
367
|
-
at Mon Sep 26 2022
|
|
367
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
368
368
|
</div>
|
|
369
369
|
<script src="../../../prettify.js"></script>
|
|
370
370
|
<script>
|
|
@@ -103,7 +103,7 @@ exports.save = <span class="fstat-no" title="function not covered" >as</span>ync
|
|
|
103
103
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
104
104
|
Code coverage generated by
|
|
105
105
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
106
|
-
at Mon Sep 26 2022
|
|
106
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
107
107
|
</div>
|
|
108
108
|
<script src="../../prettify.js"></script>
|
|
109
109
|
<script>
|
|
@@ -589,7 +589,7 @@ exports.runStaticFormulaChecks = async (table, { oldTable, deletion }) => {
|
|
|
589
589
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
590
590
|
Code coverage generated by
|
|
591
591
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
592
|
-
at Mon Sep 26 2022
|
|
592
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
593
593
|
</div>
|
|
594
594
|
<script src="../../../prettify.js"></script>
|
|
595
595
|
<script>
|
|
@@ -1030,7 +1030,7 @@ exports.bulkImport = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
1030
1030
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1031
1031
|
Code coverage generated by
|
|
1032
1032
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1033
|
-
at Mon Sep 26 2022
|
|
1033
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
1034
1034
|
</div>
|
|
1035
1035
|
<script src="../../../prettify.js"></script>
|
|
1036
1036
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at Mon Sep 26 2022
|
|
134
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -403,7 +403,7 @@ exports.validateCSVSchema = async function (ctx) {
|
|
|
403
403
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
404
404
|
Code coverage generated by
|
|
405
405
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
406
|
-
at Mon Sep 26 2022
|
|
406
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
407
407
|
</div>
|
|
408
408
|
<script src="../../../prettify.js"></script>
|
|
409
409
|
<script>
|
|
@@ -190,7 +190,7 @@ exports.downloadTemplate = async function (ctx) {
|
|
|
190
190
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
191
191
|
Code coverage generated by
|
|
192
192
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
193
|
-
at Mon Sep 26 2022
|
|
193
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
194
194
|
</div>
|
|
195
195
|
<script src="../../prettify.js"></script>
|
|
196
196
|
<script>
|
|
@@ -772,7 +772,7 @@ exports.getFlags = <span class="fstat-no" title="function not covered" >as</span
|
|
|
772
772
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
773
773
|
Code coverage generated by
|
|
774
774
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
775
|
-
at Mon Sep 26 2022
|
|
775
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
776
776
|
</div>
|
|
777
777
|
<script src="../../prettify.js"></script>
|
|
778
778
|
<script>
|
|
@@ -148,7 +148,7 @@ exports.ExportFormats = {
|
|
|
148
148
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
149
149
|
Code coverage generated by
|
|
150
150
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
151
|
-
at Mon Sep 26 2022
|
|
151
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
152
152
|
</div>
|
|
153
153
|
<script src="../../../prettify.js"></script>
|
|
154
154
|
<script>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at Mon Sep 26 2022
|
|
149
|
+
at Mon Sep 26 2022 20:25:39 GMT+0000 (Coordinated Universal Time)
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../prettify.js"></script>
|
|
152
152
|
<script>
|