@budibase/server 1.0.105-alpha.39 → 1.0.105-alpha.41
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.8d71e41f.js → index.b6f6e1e1.js} +2 -2
- package/builder/index.html +1 -1
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.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/component.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/screen.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/auth.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/client.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/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/query.js.html +1 -1
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.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 +5 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
|
@@ -1247,7 +1247,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1247
1247
|
This action cannot be undone.`)},m(o,a){$(o,e,a),$(o,t,a),N(t,i),N(t,l),$(o,s,a)},p(o,a){a&1&&n!==(n=o[0].name+"")&&Oe(i,n)},d(o){o&&b(e),o&&b(t),o&&b(s)}}}function f1e(r){let e,t,n,i,l,s;e=new wr({props:{$$slots:{control:[a1e],default:[o1e]},$$scope:{ctx:r}}});let o={okText:"Delete Automation",onOk:r[3],title:"Confirm Deletion",$$slots:{default:[u1e]},$$scope:{ctx:r}};n=new hr({props:o}),r[4](n);let a={automation:r[0]};return l=new i1e({props:a}),r[5](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){const c={};f&134&&(c.$$scope={dirty:f,ctx:u}),e.$set(c);const p={};f&129&&(p.$$scope={dirty:f,ctx:u}),n.$set(p);const d={};f&1&&(d.automation=u[0]),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[4](null),E(n,u),u&&b(i),r[5](null),E(l,u)}}}function c1e(r,e,t){let n;ae(r,zt,f=>t(6,n=f));let{automation:i}=e,l,s;async function o(){try{await Xt.actions.delete(i),ye.success("Automation deleted successfully"),n("../automate")}catch{ye.error("Error deleting automation")}}function a(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}function u(f){Z[f?"unshift":"push"](()=>{s=f,t(2,s)})}return r.$$set=f=>{"automation"in f&&t(0,i=f.automation)},[i,l,s,o,a,u]}class p1e extends le{constructor(e){super();se(this,e,c1e,f1e,ie,{automation:0})}}function Ky(r,e,t){const n=r.slice();return n[5]=e[t],n[7]=t,n}function d1e(r){let e,t,n;return e=new p1e({props:{automation:r[5]}}),{c(){S(e.$$.fragment),t=R()},m(i,l){A(e,i,l),$(i,t,l),n=!0},p(i,l){const s={};l&1&&(s.automation=i[5]),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){_(e.$$.fragment,i),n=!1},d(i){E(e,i),i&&b(t)}}}function Zy(r){let e,t;function n(){return r[3](r[5])}return e=new Il({props:{border:r[7]>0,icon:"ShareAndroid",text:r[5].name,selected:r[5]._id===r[1],$$slots:{default:[d1e]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&1&&(s.text=r[5].name),l&3&&(s.selected=r[5]._id===r[1]),l&257&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function m1e(r){let e,t,n=r[0].automations,i=[];for(let s=0;s<n.length;s+=1)i[s]=Zy(Ky(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){e=D("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","automations-list svelte-g64vb")},m(s,o){$(s,e,o);for(let a=0;a<i.length;a+=1)i[a].m(e,null);t=!0},p(s,[o]){if(o&7){n=s[0].automations;let a;for(a=0;a<n.length;a+=1){const u=Ky(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=Zy(u),i[a].c(),m(i[a],1),i[a].m(e,null))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){s&&b(e),gt(i,s)}}}function g1e(r,e,t){let n,i,l;ae(r,zt,a=>t(4,i=a)),ae(r,Xt,a=>t(0,l=a)),Ft(async()=>{try{await Xt.actions.fetch()}catch{ye.error("Error getting automations list")}});function s(a){Xt.actions.select(a),i(`./${a._id}`)}const o=a=>s(a);return r.$$.update=()=>{var a,u;r.$$.dirty&1&&t(1,n=(u=(a=l.selectedAutomation)==null?void 0:a.automation)==null?void 0:u._id)},[l,n,s,o]}class _1e extends le{constructor(e){super();se(this,e,g1e,m1e,ie,{})}}function xy(r,e,t){const n=r.slice();return n[17]=e[t][0],n[18]=e[t][1],n}function h1e(r){let e;return{c(){e=F(`Please name your automation, then select a trigger. Every automation must
|
|
1248
1248
|
start with a trigger.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function $1e(r){let e;return{c(){e=F("Triggers")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function b1e(r){let e=r[18].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&8&&e!==(e=n[18].name+"")&&Oe(t,e)},d(n){n&&b(t)}}}function e7(r){let e,t,n,i,l,s,o,a,u,f;n=new ut({props:{name:r[18].icon}}),s=new Je({props:{size:"S",$$slots:{default:[b1e]},$$scope:{ctx:r}}});function c(){return r[13](r[18])}return{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("span"),S(s.$$.fragment),o=R(),w(l,"class","icon-spacing svelte-d3iboa"),w(t,"class","item-body svelte-d3iboa"),w(e,"class","item svelte-d3iboa"),oe(e,"selected",r[2]===r[18].name)},m(p,d){$(p,e,d),N(e,t),A(n,t,null),N(t,i),N(t,l),A(s,l,null),N(e,o),a=!0,u||(f=Ne(e,"click",c),u=!0)},p(p,d){r=p;const g={};d&8&&(g.name=r[18].icon),n.$set(g);const h={};d&2097160&&(h.$$scope={dirty:d,ctx:r}),s.$set(h),d&12&&oe(e,"selected",r[2]===r[18].name)},i(p){a||(m(n.$$.fragment,p),m(s.$$.fragment,p),a=!0)},o(p){_(n.$$.fragment,p),_(s.$$.fragment,p),a=!1},d(p){p&&b(e),E(n),E(s),u=!1,f()}}}function v1e(r){let e,t,n,i;e=new Je({props:{size:"S",$$slots:{default:[$1e]},$$scope:{ctx:r}}});let l=r[3],s=[];for(let a=0;a<l.length;a+=1)s[a]=e7(xy(r,l,a));const o=a=>_(s[a],1,1,()=>{s[a]=null});return{c(){S(e.$$.fragment),t=R(),n=D("div");for(let a=0;a<s.length;a+=1)s[a].c();w(n,"class","item-list svelte-d3iboa")},m(a,u){A(e,a,u),$(a,t,u),$(a,n,u);for(let f=0;f<s.length;f+=1)s[f].m(n,null);i=!0},p(a,u){const f={};if(u&2097152&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),u&76){l=a[3];let c;for(c=0;c<l.length;c+=1){const p=xy(a,l,c);s[c]?(s[c].p(p,u),m(s[c],1)):(s[c]=e7(p),s[c].c(),m(s[c],1),s[c].m(n,null))}for(te(),c=l.length;c<s.length;c+=1)o(c);ne()}},i(a){if(!i){m(e.$$.fragment,a);for(let u=0;u<l.length;u+=1)m(s[u]);i=!0}},o(a){_(e.$$.fragment,a),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)_(s[u]);i=!1},d(a){E(e,a),a&&b(t),a&&b(n),gt(s,a)}}}function w1e(r){let e,t,n,i,l,s,o,a,u,f;e=new s1({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."}}),n=new Je({props:{size:"XS",$$slots:{default:[h1e]},$$scope:{ctx:r}}});function c(g){r[10](g)}function p(g){r[11](g)}let d={label:"Name"};return r[0]!==void 0&&(d.value=r[0]),r[4]!==void 0&&(d.error=r[4]),l=new nt({props:d}),Z.push(()=>ce(l,"value",c)),Z.push(()=>ce(l,"error",p)),l.$on("change",r[12]),u=new Ve({props:{noPadding:!0,$$slots:{default:[v1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),a=R(),S(u.$$.fragment)},m(g,h){A(e,g,h),$(g,t,h),A(n,g,h),$(g,i,h),A(l,g,h),$(g,a,h),A(u,g,h),f=!0},p(g,h){const v={};h&2097152&&(v.$$scope={dirty:h,ctx:g}),n.$set(v);const k={};!s&&h&1&&(s=!0,k.value=g[0],pe(()=>s=!1)),!o&&h&16&&(o=!0,k.error=g[4],pe(()=>o=!1)),l.$set(k);const y={};h&2097164&&(y.$$scope={dirty:h,ctx:g}),u.$set(y)},i(g){f||(m(e.$$.fragment,g),m(n.$$.fragment,g),m(l.$$.fragment,g),m(u.$$.fragment,g),f=!0)},o(g){_(e.$$.fragment,g),_(n.$$.fragment,g),_(l.$$.fragment,g),_(u.$$.fragment,g),f=!1},d(g){E(e,g),g&&b(t),E(n,g),g&&b(i),E(l,g),g&&b(a),E(u,g)}}}function y1e(r){let e,t;return e=new Rt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:r[5],disabled:!r[2]||!r[0],$$slots:{default:[w1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&5&&(l.disabled=!n[2]||!n[0]),i&2097183&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function k1e(r,e,t){let n,i,l,s,o,a;ae(r,Xt,T=>t(8,s=T)),ae(r,zt,T=>t(16,o=T)),ae(r,Ss,T=>t(9,a=T));let u,f,c=!1,p,{webhookModal:d}=e;async function g(){var T;try{await Xt.actions.create({name:u,instanceId:n});const O=s.selectedAutomation.constructBlock("TRIGGER",p.stepId,p);Xt.actions.addBlockToAutomation(O),p.stepId==="WEBHOOK"&&d.show,await Xt.actions.save((T=s.selectedAutomation)==null?void 0:T.automation),ye.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`),qn.captureEvent(Gn.AUTOMATION.CREATED,{name:u})}catch{ye.error("Error creating automation")}}const h=T=>{p=T,t(2,f=T.name)};function v(T){u=T,t(0,u)}function k(T){i=T,t(4,i),t(1,c),t(0,u)}const y=()=>t(1,c=!0),I=T=>h(T);return r.$$set=T=>{"webhookModal"in T&&t(7,d=T.webhookModal)},r.$$.update=()=>{r.$$.dirty&512&&(n=a._id),r.$$.dirty&3&&t(4,i=c&&!u?"Please specify a name for the automation.":null),r.$$.dirty&256&&t(3,l=Object.entries(s.blockDefinitions.TRIGGER))},[u,c,f,l,i,g,h,d,s,a,v,k,y,I]}class t7 extends le{constructor(e){super();se(this,e,k1e,y1e,ie,{webhookModal:7})}}function C1e(r){let e,t;return e=new t7({props:{webhookModal:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function S1e(r){let e,t,n,i;e=new _1e({});let l={$$slots:{default:[C1e]},$$scope:{ctx:r}};return n=new Ct({props:l}),r[2](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,o){const a={};o&10&&(a.$$scope={dirty:o,ctx:s}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[2](null),E(n,s)}}}function A1e(r){let e,t;return e=new bn({props:{title:"Automations",$$slots:{default:[S1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&11&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function E1e(r){let e,t,n,i,l,s;return t=new Fr({props:{selected:"Automations",$$slots:{default:[A1e]},$$scope:{ctx:r}}}),l=new ut({props:{hoverable:!0,name:"AddCircle"}}),l.$on("click",function(){ct(r[0].show)&&r[0].show.apply(this,arguments)}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("div"),S(l.$$.fragment),w(i,"class","add-button svelte-mcmub4"),w(i,"data-cy","new-screen"),w(e,"class","title svelte-mcmub4")},m(o,a){$(o,e,a),A(t,e,null),N(e,n),N(e,i),A(l,i,null),s=!0},p(o,[a]){r=o;const u={};a&11&&(u.$$scope={dirty:a,ctx:r}),t.$set(u)},i(o){s||(m(t.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){o&&b(e),E(t),E(l)}}}function O1e(r,e,t){let{modal:n}=e,{webhookModal:i}=e;function l(s){Z[s?"unshift":"push"](()=>{n=s,t(0,n)})}return r.$$set=s=>{"modal"in s&&t(0,n=s.modal),"webhookModal"in s&&t(1,i=s.webhookModal)},[n,i,l]}class T1e extends le{constructor(e){super();se(this,e,O1e,E1e,ie,{modal:0,webhookModal:1})}}function I1e(r){let e,t,n,i;return n=new Ve({props:{gap:"S",justifyItems:"center",$$slots:{default:[M1e]},$$scope:{ctx:r}}}),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),w(t,"class","main svelte-16gumu0"),w(e,"class","centered svelte-16gumu0")},m(l,s){$(l,e,s),N(e,t),A(n,t,null),i=!0},p(l,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:l}),n.$set(o)},i(l){i||(m(n.$$.fragment,l),i=!0)},o(l){_(n.$$.fragment,l),i=!1},d(l){l&&b(e),E(n)}}}function L1e(r){let e;const t=r[4].default,n=bt(t,r,r[8],null);return{c(){n&&n.c()},m(i,l){n&&n.m(i,l),e=!0},p(i,l){n&&n.p&&(!e||l&256)&&vt(n,t,i,i[8],e?yt(t,i[8],l,null):wt(i[8]),null)},i(i){e||(m(n,i),e=!0)},o(i){_(n,i),e=!1},d(i){n&&n.d(i)}}}function P1e(r){let e;return{c(){e=F("You have no automations")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function N1e(r){let e;return{c(){e=F("Let's fix that. Call the bots!")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function R1e(r){let e;return{c(){e=F("Create automation")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function M1e(r){let e,t,n,i,l,s,o,a,u;return i=new _t({props:{size:"M",$$slots:{default:[P1e]},$$scope:{ctx:r}}}),s=new Je({props:{size:"M",$$slots:{default:[N1e]},$$scope:{ctx:r}}}),a=new at({props:{size:"M",cta:!0,$$slots:{default:[R1e]},$$scope:{ctx:r}}}),a.$on("click",r[5]),{c(){e=ge("svg"),t=ge("use"),n=R(),S(i.$$.fragment),l=R(),S(s.$$.fragment),o=R(),S(a.$$.fragment),Gt(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),w(e,"width","60px"),w(e,"height","60px"),w(e,"class","spectrum-Icon"),w(e,"focusable","false")},m(f,c){$(f,e,c),N(e,t),$(f,n,c),A(i,f,c),$(f,l,c),A(s,f,c),$(f,o,c),A(a,f,c),u=!0},p(f,c){const p={};c&256&&(p.$$scope={dirty:c,ctx:f}),i.$set(p);const d={};c&256&&(d.$$scope={dirty:c,ctx:f}),s.$set(d);const g={};c&256&&(g.$$scope={dirty:c,ctx:f}),a.$set(g)},i(f){u||(m(i.$$.fragment,f),m(s.$$.fragment,f),m(a.$$.fragment,f),u=!0)},o(f){_(i.$$.fragment,f),_(s.$$.fragment,f),_(a.$$.fragment,f),u=!1},d(f){f&&b(e),f&&b(n),E(i,f),f&&b(l),E(s,f),f&&b(o),E(a,f)}}}function D1e(r){let e,t;return e=new t7({props:{webhookModal:r[1]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&2&&(l.webhookModal=n[1]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function j1e(r){let e,t;return e=new U1({}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function B1e(r){let e,t,n,i,l,s,o,a,u,f,c,p;n=new T1e({props:{modal:r[0],webhookModal:r[1]}});const d=[L1e,I1e],g=[];function h(y,I){return y[2]?0:1}s=h(r),o=g[s]=d[s](r);let v={$$slots:{default:[D1e]},$$scope:{ctx:r}};u=new Ct({props:v}),r[6](u);let k={width:"30%",$$slots:{default:[j1e]},$$scope:{ctx:r}};return c=new Ct({props:k}),r[7](c),{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),o.c(),a=R(),S(u.$$.fragment),f=R(),S(c.$$.fragment),w(t,"class","nav svelte-16gumu0"),w(l,"class","content svelte-16gumu0"),w(e,"class","root svelte-16gumu0")},m(y,I){$(y,e,I),N(e,t),A(n,t,null),N(e,i),N(e,l),g[s].m(l,null),N(e,a),A(u,e,null),N(e,f),A(c,e,null),p=!0},p(y,[I]){const T={};I&1&&(T.modal=y[0]),I&2&&(T.webhookModal=y[1]),n.$set(T);let O=s;s=h(y),s===O?g[s].p(y,I):(te(),_(g[O],1,1,()=>{g[O]=null}),ne(),o=g[s],o?o.p(y,I):(o=g[s]=d[s](y),o.c()),m(o,1),o.m(l,null));const P={};I&258&&(P.$$scope={dirty:I,ctx:y}),u.$set(P);const M={};I&256&&(M.$$scope={dirty:I,ctx:y}),c.$set(M)},i(y){p||(m(n.$$.fragment,y),m(o),m(u.$$.fragment,y),m(c.$$.fragment,y),p=!0)},o(y){_(n.$$.fragment,y),_(o),_(u.$$.fragment,y),_(c.$$.fragment,y),p=!1},d(y){y&&b(e),E(n),g[s].d(),r[6](null),E(u),r[7](null),E(c)}}}function z1e(r,e,t){let n,i;ae(r,Xt,p=>t(3,i=p));let{$$slots:l={},$$scope:s}=e,o,a;const u=()=>o.show();function f(p){Z[p?"unshift":"push"](()=>{o=p,t(0,o)})}function c(p){Z[p?"unshift":"push"](()=>{a=p,t(1,a)})}return r.$$set=p=>{"$$scope"in p&&t(8,s=p.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&t(2,n=i.automations[0])},[o,a,n,i,l,u,f,c,s]}class q1e extends le{constructor(e){super();se(this,e,z1e,B1e,ie,{})}}function U1e(r){let e;return{c(){e=F("Publish")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function F1e(r){let e,t;return e=new Rt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p:Te,i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function V1e(r){let e;return{c(){e=D("span"),e.textContent=`The changes you have made will be published to the production version of
|
|
1249
1249
|
the application.`},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function H1e(r){let e,t;return e=new Rt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:r[2],$$slots:{default:[V1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&64&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function W1e(r){let e,t,n,i,l,s;e=new at({props:{secondary:!0,$$slots:{default:[U1e]},$$scope:{ctx:r}}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let o={$$slots:{default:[F1e]},$$scope:{ctx:r}};n=new Ct({props:o}),r[3](n);let a={$$slots:{default:[H1e]},$$scope:{ctx:r}};return l=new Ct({props:a}),r[4](l),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),s=!0},p(u,[f]){r=u;const c={};f&64&&(c.$$scope={dirty:f,ctx:r}),e.$set(c);const p={};f&64&&(p.$$scope={dirty:f,ctx:r}),n.$set(p);const d={};f&64&&(d.$$scope={dirty:f,ctx:r}),l.$set(d)},i(u){s||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),s=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),s=!1},d(u){E(e,u),u&&b(t),r[3](null),E(n,u),u&&b(i),r[4](null),E(l,u)}}}function G1e(r,e,t){let n;ae(r,We,u=>t(5,n=u));let i,l;async function s(){try{await xe.deployAppChanges(),qn.captureEvent(Gn.APP.PUBLISHED,{appId:n.appId}),ye.success("Application published successfully")}catch(u){qn.captureException(u),ye.error("Error publishing app")}}function o(u){Z[u?"unshift":"push"](()=>{i=u,t(0,i)})}function a(u){Z[u?"unshift":"push"](()=>{l=u,t(1,l)})}return[i,l,s,o,a]}class Y1e extends le{constructor(e){super();se(this,e,G1e,W1e,ie,{})}}function J1e(r){let e,t,n,i,l,s,o;function a(f){r[4](f)}let u={};return r[2]!==void 0&&(u.value=r[2]),l=new nt({props:u}),Z.push(()=>ce(l,"value",a)),{c(){e=D("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
1250
|
-
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),S(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),A(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),E(l,f)}}}function Q1e(r){let e,t;return e=new Rt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[J1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function X1e(r){let e,t,n,i;e=new ut({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Q1e]},$$scope:{ctx:r}};return n=new Ct({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function K1e(r,e,t){let n,i;ae(r,We,f=>t(0,i=f));let l,s;const o=async()=>{try{await xe.revertAppChanges(n);const f=await xe.fetchAppPackage(n);await We.actions.initialise(f),ye.info("Changes reverted successfully")}catch(f){ye.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Z1e extends le{constructor(e){super();se(this,e,K1e,X1e,ie,{})}}const x1e="@budibase/client",eme="1.0.105-alpha.
|
|
1250
|
+
back to its production state.`,t=R(),n=D("span"),n.textContent="Please enter your app name to continue.",i=R(),S(l.$$.fragment)},m(f,c){$(f,e,c),$(f,t,c),$(f,n,c),$(f,i,c),A(l,f,c),o=!0},p(f,c){const p={};!s&&c&4&&(s=!0,p.value=f[2],pe(()=>s=!1)),l.$set(p)},i(f){o||(m(l.$$.fragment,f),o=!0)},o(f){_(l.$$.fragment,f),o=!1},d(f){f&&b(e),f&&b(t),f&&b(n),f&&b(i),E(l,f)}}}function Q1e(r){let e,t;return e=new Rt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:r[3],disabled:r[2]!==r[0].name,$$slots:{default:[J1e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&5&&(l.disabled=n[2]!==n[0].name),i&132&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function X1e(r){let e,t,n,i;e=new ut({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){ct(r[1].show)&&r[1].show.apply(this,arguments)});let l={$$slots:{default:[Q1e]},$$scope:{ctx:r}};return n=new Ct({props:l}),r[5](n),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),i=!0},p(s,[o]){r=s;const a={};o&133&&(a.$$scope={dirty:o,ctx:r}),n.$set(a)},i(s){i||(m(e.$$.fragment,s),m(n.$$.fragment,s),i=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),i=!1},d(s){E(e,s),s&&b(t),r[5](null),E(n,s)}}}function K1e(r,e,t){let n,i;ae(r,We,f=>t(0,i=f));let l,s;const o=async()=>{try{await xe.revertAppChanges(n);const f=await xe.fetchAppPackage(n);await We.actions.initialise(f),ye.info("Changes reverted successfully")}catch(f){ye.error(`Error reverting changes: ${f}`)}};function a(f){s=f,t(2,s)}function u(f){Z[f?"unshift":"push"](()=>{l=f,t(1,l)})}return r.$$.update=()=>{r.$$.dirty&1&&(n=i.appId)},[i,l,s,o,a,u]}class Z1e extends le{constructor(e){super();se(this,e,K1e,X1e,ie,{})}}const x1e="@budibase/client",eme="1.0.105-alpha.40",tme="MPL-2.0",nme="dist/budibase-client.js",rme="dist/budibase-client.js",ime="module",lme="src/index.js",sme={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},ome={build:"rollup -c","dev:builder":"rollup -cw"},ame={"@budibase/bbui":"^1.0.105-alpha.40","@budibase/frontend-core":"^1.0.105-alpha.40","@budibase/string-templates":"^1.0.105-alpha.40","@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","rollup-plugin-polyfill-node":"^0.8.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},ume={"@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-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"},fme="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var V1={name:x1e,version:eme,license:tme,module:nme,main:rme,type:ime,svelte:lme,exports:sme,scripts:ome,dependencies:ame,devDependencies:ume,gitHead:fme};function cme(r){let e,t;return e=new Je({props:{size:"S",$$slots:{default:[dme]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function pme(r){let e,t;return e=new Je({props:{size:"S",$$slots:{default:[mme]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function dme(r){let e,t,n=r[0].version+"",i,l;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(` which is the
|
|
1251
1251
|
latest version available.`)},m(s,o){$(s,e,o),$(s,t,o),N(t,i),$(s,l,o)},p(s,o){o&1&&n!==(n=s[0].version+"")&&Oe(i,n)},d(s){s&&b(e),s&&b(t),s&&b(l)}}}function mme(r){let e,t,n=r[0].version+"",i,l,s,o;return{c(){e=F("This app is currently using version "),t=D("b"),i=F(n),l=F(`, but version
|
|
1252
1252
|
`),s=D("b"),s.textContent=`${V1.version}`,o=F(` is available. Updates can contain new features,
|
|
1253
1253
|
performance improvements and bug fixes.`)},m(a,u){$(a,e,u),$(a,t,u),N(t,i),$(a,l,u),$(a,s,u),$(a,o,u)},p(a,u){u&1&&n!==(n=a[0].version+"")&&Oe(i,n)},d(a){a&&b(e),a&&b(t),a&&b(l),a&&b(s),a&&b(o)}}}function n7(r){let e,t;return e=new Je({props:{size:"S",$$slots:{default:[gme]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&513&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function gme(r){let e,t,n=r[0].revertableVersion+"",i,l;return{c(){e=F(`You can revert this app to version
|
|
@@ -1275,7 +1275,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1275
1275
|
13.8132 193.574L58.9265 159.326Z`),w(s,"fill","#FBBC05"),w(t,"clip-path","url(#clip0)"),w(u,"width","268"),w(u,"height","268"),w(u,"fill","white"),w(a,"id","clip0"),w(e,"width","18"),w(e,"height","18"),w(e,"viewBox","0 0 268 268"),w(e,"fill","none"),w(e,"xmlns","http://www.w3.org/2000/svg")},m(f,c){$(f,e,c),N(e,t),N(t,n),N(t,i),N(t,l),N(t,s),N(e,o),N(o,a),N(a,u)},p:Te,i:Te,o:Te,d(f){f&&b(e)}}}class O0e extends le{constructor(e){super();se(this,e,null,E0e,ie,{})}}function T0e(r){let e,t,n,i;return{c(){e=ge("svg"),t=ge("g"),n=ge("path"),i=ge("path"),w(n,"d","M43,90c-88,-16,-21,-86,41,-51l9,-6v17h-26l8,-5c-55,-25,-86,29,-32,36z"),w(n,"fill","#ccc"),w(i,"d","M43,90v-75l14,-9v75z"),w(i,"fill","#f60"),w(t,"clip-path","url(#clip0)"),w(e,"width","25"),w(e,"height","25 "),w(e,"viewBox","0 0 100 100"),w(e,"fill","none"),w(e,"xmlns","http://www.w3.org/2000/svg")},m(l,s){$(l,e,s),N(e,t),N(t,n),N(t,i)},p:Te,i:Te,o:Te,d(l){l&&b(e)}}}class I0e extends le{constructor(e){super();se(this,e,null,T0e,ie,{})}}function r9(r,e,t){const n=r.slice();return n[35]=e[t],n[36]=e,n[37]=t,n}function i9(r,e,t){const n=r.slice();return n[35]=e[t],n[38]=e,n[39]=t,n}function L0e(r){let e;return{c(){e=F("Authentication")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function P0e(r){let e;return{c(){e=F(`Every budibase app comes with basic authentication (email/password)
|
|
1276
1276
|
included. You can add additional authentication methods from the options
|
|
1277
1277
|
below.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function N0e(r){let e,t,n,i;return e=new _t({props:{size:"M",$$slots:{default:[L0e]},$$scope:{ctx:r}}}),n=new Je({props:{$$slots:{default:[P0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s[1]&512&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s[1]&512&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function l9(r){let e,t,n,i,l,s;return e=new nn({}),n=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[j0e]},$$scope:{ctx:r}}}),l=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[q0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment)},m(o,a){A(e,o,a),$(o,t,a),A(n,o,a),$(o,i,a),A(l,o,a),s=!0},p(o,a){const u={};a[0]&5|a[1]&512&&(u.$$scope={dirty:a,ctx:o}),n.$set(u);const f={};a[0]&33|a[1]&512&&(f.$$scope={dirty:a,ctx:o}),l.$set(f)},i(o){s||(m(e.$$.fragment,o),m(n.$$.fragment,o),m(l.$$.fragment,o),s=!0)},o(o){_(e.$$.fragment,o),_(n.$$.fragment,o),_(l.$$.fragment,o),s=!1},d(o){E(e,o),o&&b(t),E(n,o),o&&b(i),E(l,o)}}}function R0e(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function M0e(r){let e,t,n,i,l,s,o;return t=new O0e({}),s=new at({props:{disabled:r[2],size:"s",cta:!0,$$slots:{default:[R0e]},$$scope:{ctx:r}}}),s.$on("click",r[16]),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("span"),i.textContent="Google",l=R(),S(s.$$.fragment),w(i,"class","svelte-gw5xxq"),w(e,"class","provider-title svelte-gw5xxq")},m(a,u){$(a,e,u),A(t,e,null),N(e,n),N(e,i),N(e,l),A(s,e,null),o=!0},p(a,u){const f={};u[0]&4&&(f.disabled=a[2]),u[1]&512&&(f.$$scope={dirty:u,ctx:a}),s.$set(f)},i(a){o||(m(t.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(t),E(s)}}}function D0e(r){let e;return{c(){e=F(`To allow users to authenticate using their Google accounts, fill out the
|
|
1278
|
-
fields below.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function j0e(r){let e,t,n,i;return e=new _t({props:{size:"S",$$slots:{default:[M0e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"S",$$slots:{default:[D0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s[0]&5|s[1]&512&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s[1]&512&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function B0e(r){let e=r[35].label+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i[0]&32&&e!==(e=n[35].label+"")&&Oe(t,e)},d(n){n&&b(t)}}}function s9(r){let e,t,n,i,l,s;t=new Ze({props:{size:"L",tooltip:r[35].tooltip,$$slots:{default:[B0e]},$$scope:{ctx:r}}});function o(u){r[17](u,r[35])}let a={readonly:r[35].readonly,placeholder:r[35].placeholder};return r[0].google.config[r[35].name]!==void 0&&(a.value=r[0].google.config[r[35].name]),i=new nt({props:a}),Z.push(()=>ce(i,"value",o)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),w(e,"class","form-row svelte-gw5xxq")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),A(i,e,null),s=!0},p(u,f){r=u;const c={};f[0]&32&&(c.tooltip=r[35].tooltip),f[0]&32|f[1]&512&&(c.$$scope={dirty:f,ctx:r}),t.$set(c);const p={};f[0]&32&&(p.readonly=r[35].readonly),f[0]&32&&(p.placeholder=r[35].placeholder),!l&&f[0]&33&&(l=!0,p.value=r[0].google.config[r[35].name],pe(()=>l=!1)),i.$set(p)},i(u){s||(m(t.$$.fragment,u),m(i.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),E(i)}}}function z0e(r){let e;return{c(){e=F("Activated")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function q0e(r){let e,t,n,i,l,s,o,a=r[5].Google,u=[];for(let d=0;d<a.length;d+=1)u[d]=s9(i9(r,a,d));const f=d=>_(u[d],1,1,()=>{u[d]=null});n=new Ze({props:{size:"L",$$slots:{default:[z0e]},$$scope:{ctx:r}}});function c(d){r[18](d)}let p={text:""};return r[0].google.config.activated!==void 0&&(p.value=r[0].google.config.activated),l=new Hn({props:p}),Z.push(()=>ce(l,"value",c)),{c(){for(let d=0;d<u.length;d+=1)u[d].c();e=R(),t=D("div"),S(n.$$.fragment),i=R(),S(l.$$.fragment),w(t,"class","form-row svelte-gw5xxq")},m(d,g){for(let h=0;h<u.length;h+=1)u[h].m(d,g);$(d,e,g),$(d,t,g),A(n,t,null),N(t,i),A(l,t,null),o=!0},p(d,g){if(g[0]&33){a=d[5].Google;let k;for(k=0;k<a.length;k+=1){const y=i9(d,a,k);u[k]?(u[k].p(y,g),m(u[k],1)):(u[k]=s9(y),u[k].c(),m(u[k],1),u[k].m(e.parentNode,e))}for(te(),k=a.length;k<u.length;k+=1)f(k);ne()}const h={};g[1]&512&&(h.$$scope={dirty:g,ctx:d}),n.$set(h);const v={};!s&&g[0]&1&&(s=!0,v.value=d[0].google.config.activated,pe(()=>s=!1)),l.$set(v)},i(d){if(!o){for(let g=0;g<a.length;g+=1)m(u[g]);m(n.$$.fragment,d),m(l.$$.fragment,d),o=!0}},o(d){u=u.filter(Boolean);for(let g=0;g<u.length;g+=1)_(u[g]);_(n.$$.fragment,d),_(l.$$.fragment,d),o=!1},d(d){gt(u,d),d&&b(e),d&&b(t),E(n),E(l)}}}function o9(r){let e,t,n,i,l,s,o,a;return e=new nn({}),n=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[H0e]},$$scope:{ctx:r}}}),l=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[G0e]},$$scope:{ctx:r}}}),o=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[K0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),$(u,s,f),A(o,u,f),a=!0},p(u,f){const c={};f[0]&9|f[1]&512&&(c.$$scope={dirty:f,ctx:u}),n.$set(c);const p={};f[0]&17|f[1]&512&&(p.$$scope={dirty:f,ctx:u}),l.$set(p);const d={};f[0]&3|f[1]&512&&(d.$$scope={dirty:f,ctx:u}),o.$set(d)},i(u){a||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),m(o.$$.fragment,u),a=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),_(o.$$.fragment,u),a=!1},d(u){E(e,u),u&&b(t),E(n,u),u&&b(i),E(l,u),u&&b(s),E(o,u)}}}function U0e(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function F0e(r){let e,t,n,i,l,s,o;return t=new I0e({}),s=new at({props:{disabled:r[3],size:"s",cta:!0,$$slots:{default:[U0e]},$$scope:{ctx:r}}}),s.$on("click",r[19]),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("span"),i.textContent="OpenID Connect",l=R(),S(s.$$.fragment),w(i,"class","svelte-gw5xxq"),w(e,"class","provider-title svelte-gw5xxq")},m(a,u){$(a,e,u),A(t,e,null),N(e,n),N(e,i),N(e,l),A(s,e,null),o=!0},p(a,u){const f={};u[0]&8&&(f.disabled=a[3]),u[1]&512&&(f.$$scope={dirty:u,ctx:a}),s.$set(f)},i(a){o||(m(t.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(t),E(s)}}}function V0e(r){let e;return{c(){e=F("To allow users to authenticate using OIDC, fill out the fields below.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function H0e(r){let e,t,n,i;return e=new _t({props:{size:"S",$$slots:{default:[F0e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"S",$$slots:{default:[V0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s[0]&9|s[1]&512&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s[1]&512&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function W0e(r){let e=r[35].label+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i[0]&16&&e!==(e=n[35].label+"")&&Oe(t,e)},d(n){n&&b(t)}}}function a9(r){let e,t,n,i,l,s,o;t=new Ze({props:{size:"L",tooltip:r[35].tooltip,$$slots:{default:[W0e]},$$scope:{ctx:r}}});function a(f){r[20](f,r[35])}let u={readonly:r[35].readonly,placeholder:r[35].placeholder};return r[0].oidc.config.configs[0][r[35].name]!==void 0&&(u.value=r[0].oidc.config.configs[0][r[35].name]),i=new nt({props:u}),Z.push(()=>ce(i,"value",a)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),w(e,"class","form-row svelte-gw5xxq")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,s),o=!0},p(f,c){r=f;const p={};c[0]&16&&(p.tooltip=r[35].tooltip),c[0]&16|c[1]&512&&(p.$$scope={dirty:c,ctx:r}),t.$set(p);const d={};c[0]&16&&(d.readonly=r[35].readonly),c[0]&16&&(d.placeholder=r[35].placeholder),!l&&c[0]&17&&(l=!0,d.value=r[0].oidc.config.configs[0][r[35].name],pe(()=>l=!1)),i.$set(d)},i(f){o||(m(t.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){f&&b(e),E(t),E(i)}}}function G0e(r){let e,t,n=r[4].Oidc,i=[];for(let s=0;s<n.length;s+=1)i[s]=a9(r9(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Se()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o[0]&17){n=s[4].Oidc;let a;for(a=0;a<n.length;a+=1){const u=r9(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=a9(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){gt(i,s),s&&b(e)}}}function Y0e(r){let e;return{c(){e=F("To customize your login button, fill out the fields below.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function J0e(r){let e;return{c(){e=F("Name")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Q0e(r){let e;return{c(){e=F("Icon")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function X0e(r){let e;return{c(){e=F("Activated")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function K0e(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,k,y,I,T,O,P,M,q;e=new Je({props:{size:"S",$$slots:{default:[Y0e]},$$scope:{ctx:r}}}),i=new Ze({props:{size:"L",$$slots:{default:[J0e]},$$scope:{ctx:r}}});function j(H){r[21](H)}let B={};r[0].oidc.config.configs[0].name!==void 0&&(B.value=r[0].oidc.config.configs[0].name),s=new nt({props:B}),Z.push(()=>ce(s,"value",j)),f=new Ze({props:{size:"L",$$slots:{default:[Q0e]},$$scope:{ctx:r}}});function V(H){r[22](H)}let G={label:"",options:r[6]};r[0].oidc.config.configs[0].logo!==void 0&&(G.value=r[0].oidc.config.configs[0].logo),p=new Xe({props:G}),Z.push(()=>ce(p,"value",V)),p.$on("change",r[23]),y=new Ze({props:{size:"L",$$slots:{default:[X0e]},$$scope:{ctx:r}}});function Y(H){r[26](H)}let U={text:""};return r[0].oidc.config.configs[0].activated!==void 0&&(U.value=r[0].oidc.config.configs[0].activated),T=new Hn({props:U}),Z.push(()=>ce(T,"value",Y)),{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),S(s.$$.fragment),a=R(),u=D("div"),S(f.$$.fragment),c=R(),S(p.$$.fragment),g=R(),h=D("input"),v=R(),k=D("div"),S(y.$$.fragment),I=R(),S(T.$$.fragment),w(n,"class","form-row svelte-gw5xxq"),w(u,"class","form-row svelte-gw5xxq"),w(h,"type","file"),w(h,"accept",".jpg, .jpeg, .png"),w(h,"class","svelte-gw5xxq"),w(k,"class","form-row svelte-gw5xxq")},m(H,W){A(e,H,W),$(H,t,W),$(H,n,W),A(i,n,null),N(n,l),A(s,n,null),$(H,a,W),$(H,u,W),A(f,u,null),N(u,c),A(p,u,null),$(H,g,W),$(H,h,W),r[25](h),$(H,v,W),$(H,k,W),A(y,k,null),N(k,I),A(T,k,null),P=!0,M||(q=Ne(h,"change",r[24]),M=!0)},p(H,W){const Q={};W[1]&512&&(Q.$$scope={dirty:W,ctx:H}),e.$set(Q);const fe={};W[1]&512&&(fe.$$scope={dirty:W,ctx:H}),i.$set(fe);const ee={};!o&&W[0]&1&&(o=!0,ee.value=H[0].oidc.config.configs[0].name,pe(()=>o=!1)),s.$set(ee);const re={};W[1]&512&&(re.$$scope={dirty:W,ctx:H}),f.$set(re);const K={};!d&&W[0]&1&&(d=!0,K.value=H[0].oidc.config.configs[0].logo,pe(()=>d=!1)),p.$set(K);const _e={};W[1]&512&&(_e.$$scope={dirty:W,ctx:H}),y.$set(_e);const Le={};!O&&W[0]&1&&(O=!0,Le.value=H[0].oidc.config.configs[0].activated,pe(()=>O=!1)),T.$set(Le)},i(H){P||(m(e.$$.fragment,H),m(i.$$.fragment,H),m(s.$$.fragment,H),m(f.$$.fragment,H),m(p.$$.fragment,H),m(y.$$.fragment,H),m(T.$$.fragment,H),P=!0)},o(H){_(e.$$.fragment,H),_(i.$$.fragment,H),_(s.$$.fragment,H),_(f.$$.fragment,H),_(p.$$.fragment,H),_(y.$$.fragment,H),_(T.$$.fragment,H),P=!1},d(H){E(e,H),H&&b(t),H&&b(n),E(i),E(s),H&&b(a),H&&b(u),E(f),E(p),H&&b(g),H&&b(h),r[25](null),H&&b(v),H&&b(k),E(y),E(T),M=!1,q()}}}function Z0e(r){let e,t,n,i,l;e=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[N0e]},$$scope:{ctx:r}}});let s=r[0].google&&l9(r),o=r[0].oidc&&o9(r);return{c(){S(e.$$.fragment),t=R(),s&&s.c(),n=R(),o&&o.c(),i=Se()},m(a,u){A(e,a,u),$(a,t,u),s&&s.m(a,u),$(a,n,u),o&&o.m(a,u),$(a,i,u),l=!0},p(a,u){const f={};u[1]&512&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),a[0].google?s?(s.p(a,u),u[0]&1&&m(s,1)):(s=l9(a),s.c(),m(s,1),s.m(n.parentNode,n)):s&&(te(),_(s,1,1,()=>{s=null}),ne()),a[0].oidc?o?(o.p(a,u),u[0]&1&&m(o,1)):(o=o9(a),o.c(),m(o,1),o.m(i.parentNode,i)):o&&(te(),_(o,1,1,()=>{o=null}),ne())},i(a){l||(m(e.$$.fragment,a),m(s),m(o),l=!0)},o(a){_(e.$$.fragment,a),_(s),_(o),l=!1},d(a){E(e,a),a&&b(t),s&&s.d(a),a&&b(n),o&&o.d(a),a&&b(i)}}}function x0e(r){let e,t;return e=new Ve({props:{noPadding:!0,$$slots:{default:[Z0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&63|i[1]&512&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function e2e(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;ae(r,_r,_e=>t(14,p=_e)),ae(r,Cn,_e=>t(15,d=_e));const g={Google:"google",OIDC:"oidc"};let h=[{label:"Microsoft",value:"Microsoft",icon:$7},{label:"Okta",value:"Okta",icon:b7},{label:"OneLogin",value:"OneLogin",icon:v7},{label:"Auth0",value:"Auth0",icon:h7},{label:"OIDC",value:"Oidc",icon:H1},{label:"Upload your own",value:"Upload"}],v,k,y,I;const T={google:y,oidc:I};let O,P,M,q;const j=_e=>{let Le=_e.target.files[0].name;k=_e.target.files[0],t(0,T.oidc.config.configs[0].logo=Le,T),h.unshift({label:Le,value:Le})};async function B(_e){let Le=[];if(k){let Re=new FormData;Re.append("file",k),Le.push(xe.uploadOIDCLogo({name:k.name,data:Re}))}_e.forEach(Re=>{if(Re.type===g.OIDC){for(let de of Re.config.configs)de.uuid||(de.uuid=Yi()),delete de.callbackURL;u&&(c?(Le.push(xe.saveConfig(Re)),t(3,q=!0),t(10,P=wn.cloneDeep(T.oidc))):ye.error(`Please fill in all required ${g.OIDC} fields`))}Re.type===g.Google&&a&&(f?(Le.push(xe.saveConfig(Re)),t(2,M=!0),t(9,O=wn.cloneDeep(T.google))):ye.error(`Please fill in all required ${g.Google} fields`))}),Le.length&&Promise.all(Le).then(Re=>{Re.forEach(de=>{t(0,T[de.type]._rev=de._rev,T),t(0,T[de.type]._id=de._id,T)}),ye.success("Settings saved"),qn.captureEvent(Gn.SSO.SAVED)}).catch(()=>{ye.error("Failed to update auth settings")})}Ft(async()=>{var de,$e;try{await _r.init()}catch{ye.error("Error getting org config")}let _e;try{_e=await xe.getConfig(g.Google)}catch{ye.error("Error fetching Google OAuth config")}(_e==null?void 0:_e._id)?(_e.config.activated===void 0&&(_e.config.activated=!0),t(9,O=wn.cloneDeep(_e)),t(0,T.google=_e,T)):(t(0,T.google={type:g.Google,config:{activated:!0}},T),t(9,O=wn.cloneDeep(_e))),t(11,n=($e=(de=T==null?void 0:T.google)==null?void 0:de.config)==null?void 0:$e.callbackURL);let Le;try{Le=await xe.getOIDCLogos()}catch{ye.error("Error fetching OIDC logos")}(Le==null?void 0:Le.config)&&Object.keys(Le.config).map(Ue=>{const ue=Le.config[Ue];h.unshift({label:Ue,value:Ue,icon:ue})});let Re;try{Re=await xe.getConfig(g.OIDC)}catch{ye.error("Error fetching OIDC config")}(Re==null?void 0:Re._id)?(t(10,P=wn.cloneDeep(Re)),t(0,T.oidc=Re,T)):t(0,T.oidc={type:g.OIDC,config:{configs:[{activated:!0}]}},T)});const V=()=>B([T.google]);function G(_e,Le){r.$$.not_equal(T.google.config[Le.name],_e)&&(T.google.config[Le.name]=_e,t(0,T))}function Y(_e){r.$$.not_equal(T.google.config.activated,_e)&&(T.google.config.activated=_e,t(0,T))}const U=()=>B([T.oidc]);function H(_e,Le){r.$$.not_equal(T.oidc.config.configs[0][Le.name],_e)&&(T.oidc.config.configs[0][Le.name]=_e,t(0,T))}function W(_e){r.$$.not_equal(T.oidc.config.configs[0].name,_e)&&(T.oidc.config.configs[0].name=_e,t(0,T))}function Q(_e){r.$$.not_equal(T.oidc.config.configs[0].logo,_e)&&(T.oidc.config.configs[0].logo=_e,t(0,T))}const fe=_e=>_e.detail==="Upload"&&v.click(),ee=_e=>j(_e);function re(_e){Z[_e?"unshift":"push"](()=>{v=_e,t(1,v)})}function K(_e){r.$$.not_equal(T.oidc.config.configs[0].activated,_e)&&(T.oidc.config.configs[0].activated=_e,t(0,T))}return r.$$.update=()=>{var _e,Le,Re,de,$e,Pe,Ue,ue,Fe,he,ke,ve,be,Ge,Ot,Be,dt,It,Ie,Qe,Vt,qe;r.$$.dirty[0]&34816&&t(13,i=d.cloud||!n),r.$$.dirty[0]&8192&&t(12,l=i?"Vist the organisation page to update the platform URL":"Leave blank to use the default callback URL"),r.$$.dirty[0]&28672&&t(5,s={Google:[{name:"clientID",label:"Client ID"},{name:"clientSecret",label:"Client secret"},{name:"callbackURL",label:"Callback URL",readonly:i,tooltip:l,placeholder:p.googleCallbackUrl}]}),r.$$.dirty[0]&16384&&t(4,o={Oidc:[{name:"configUrl",label:"Config URL"},{name:"clientID",label:"Client ID"},{name:"clientSecret",label:"Client Secret"},{name:"callbackURL",readonly:!0,tooltip:"Vist the organisation page to update the platform URL",label:"Callback URL",placeholder:p.oidcCallbackUrl}]}),r.$$.dirty[0]&1537&&(wn.isEqual((_e=T.google)==null?void 0:_e.config,O==null?void 0:O.config)?t(2,M=!0):t(2,M=!1),wn.isEqual((Le=T.oidc)==null?void 0:Le.config,P==null?void 0:P.config)?t(3,q=!0):t(3,q=!1)),r.$$.dirty[0]&1&&(a=((de=(Re=T.google)==null?void 0:Re.config)==null?void 0:de.clientID)||((Pe=($e=T.google)==null?void 0:$e.config)==null?void 0:Pe.clientSecret)),r.$$.dirty[0]&1&&(u=((ue=(Ue=T.oidc)==null?void 0:Ue.config)==null?void 0:ue.configs[0].configUrl)||((he=(Fe=T.oidc)==null?void 0:Fe.config)==null?void 0:he.configs[0].clientID)||((ve=(ke=T.oidc)==null?void 0:ke.config)==null?void 0:ve.configs[0].clientSecret)),r.$$.dirty[0]&1&&(f=((Ge=(be=T.google)==null?void 0:be.config)==null?void 0:Ge.clientID)&&((Be=(Ot=T.google)==null?void 0:Ot.config)==null?void 0:Be.clientSecret)),r.$$.dirty[0]&1&&(c=((It=(dt=T.oidc)==null?void 0:dt.config)==null?void 0:It.configs[0].configUrl)&&((Qe=(Ie=T.oidc)==null?void 0:Ie.config)==null?void 0:Qe.configs[0].clientID)&&((qe=(Vt=T.oidc)==null?void 0:Vt.config)==null?void 0:qe.configs[0].clientSecret))},t(11,n=void 0),[T,v,M,q,o,s,h,j,B,O,P,n,l,i,p,d,V,G,Y,U,H,W,Q,fe,ee,re,K]}class t2e extends le{constructor(e){super();se(this,e,e2e,x0e,ie,{},null,[-1,-1])}}function u9(r,e,t){const n=r.slice();return n[3]=e[t],n}function n2e(r){let e=r[3].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[3].name+"")&&Oe(t,e)},d(n){n&&b(t)}}}function r2e(r){let e=r[3].description+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[3].description+"")&&Oe(t,e)},d(n){n&&b(t)}}}function i2e(r){let e,t,n,i,l;return e=new Vr({props:{size:"M",$$slots:{default:[n2e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"XS",$$slots:{default:[r2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R()},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),$(s,i,o),l=!0},p(s,o){const a={};o&65&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&65&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){l||(m(e.$$.fragment,s),m(n.$$.fragment,s),l=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),l=!1},d(s){E(e,s),s&&b(t),E(n,s),s&&b(i)}}}function f9(r){let e,t;function n(){return r[2](r[3])}return e=new Kt({props:{$$slots:{default:[i2e]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&65&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function l2e(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=f9(u9(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Se()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&3){n=s[0];let a;for(a=0;a<n.length;a+=1){const u=u9(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=f9(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){gt(i,s),s&&b(e)}}}function s2e(r){let e,t;return e=new Ch({props:{$$slots:{default:[l2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&67&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function o2e(r,e,t){let{bindings:n}=e,{onBindingClick:i=()=>{}}=e;const l=s=>i(s);return r.$$set=s=>{"bindings"in s&&t(0,n=s.bindings),"onBindingClick"in s&&t(1,i=s.onBindingClick)},[n,i,l]}class c9 extends le{constructor(e){super();se(this,e,o2e,s2e,ie,{bindings:0,onBindingClick:1})}}function a2e(r){let e;return{c(){e=F("Back to email settings")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function u2e(r){let e,t;return{c(){e=F("Email Template: "),t=F(r[7])},m(n,i){$(n,e,i),$(n,t,i)},p(n,i){i&128&&Oe(t,n[7])},d(n){n&&b(e),n&&b(t)}}}function f2e(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function c2e(r){let e,t,n,i;return{c(){e=F(r[6]),t=R(),n=D("br"),i=F(`
|
|
1278
|
+
fields below.`)},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function j0e(r){let e,t,n,i;return e=new _t({props:{size:"S",$$slots:{default:[M0e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"S",$$slots:{default:[D0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s[0]&5|s[1]&512&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s[1]&512&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function B0e(r){let e=r[35].label+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i[0]&32&&e!==(e=n[35].label+"")&&Oe(t,e)},d(n){n&&b(t)}}}function s9(r){let e,t,n,i,l,s;t=new Ze({props:{size:"L",tooltip:r[35].tooltip,$$slots:{default:[B0e]},$$scope:{ctx:r}}});function o(u){r[17](u,r[35])}let a={readonly:r[35].readonly,placeholder:r[35].placeholder};return r[0].google.config[r[35].name]!==void 0&&(a.value=r[0].google.config[r[35].name]),i=new nt({props:a}),Z.push(()=>ce(i,"value",o)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),w(e,"class","form-row svelte-gw5xxq")},m(u,f){$(u,e,f),A(t,e,null),N(e,n),A(i,e,null),s=!0},p(u,f){r=u;const c={};f[0]&32&&(c.tooltip=r[35].tooltip),f[0]&32|f[1]&512&&(c.$$scope={dirty:f,ctx:r}),t.$set(c);const p={};f[0]&32&&(p.readonly=r[35].readonly),f[0]&32&&(p.placeholder=r[35].placeholder),!l&&f[0]&33&&(l=!0,p.value=r[0].google.config[r[35].name],pe(()=>l=!1)),i.$set(p)},i(u){s||(m(t.$$.fragment,u),m(i.$$.fragment,u),s=!0)},o(u){_(t.$$.fragment,u),_(i.$$.fragment,u),s=!1},d(u){u&&b(e),E(t),E(i)}}}function z0e(r){let e;return{c(){e=F("Activated")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function q0e(r){let e,t,n,i,l,s,o,a=r[5].Google,u=[];for(let d=0;d<a.length;d+=1)u[d]=s9(i9(r,a,d));const f=d=>_(u[d],1,1,()=>{u[d]=null});n=new Ze({props:{size:"L",$$slots:{default:[z0e]},$$scope:{ctx:r}}});function c(d){r[18](d)}let p={text:""};return r[0].google.config.activated!==void 0&&(p.value=r[0].google.config.activated),l=new Hn({props:p}),Z.push(()=>ce(l,"value",c)),{c(){for(let d=0;d<u.length;d+=1)u[d].c();e=R(),t=D("div"),S(n.$$.fragment),i=R(),S(l.$$.fragment),w(t,"class","form-row svelte-gw5xxq")},m(d,g){for(let h=0;h<u.length;h+=1)u[h].m(d,g);$(d,e,g),$(d,t,g),A(n,t,null),N(t,i),A(l,t,null),o=!0},p(d,g){if(g[0]&33){a=d[5].Google;let k;for(k=0;k<a.length;k+=1){const y=i9(d,a,k);u[k]?(u[k].p(y,g),m(u[k],1)):(u[k]=s9(y),u[k].c(),m(u[k],1),u[k].m(e.parentNode,e))}for(te(),k=a.length;k<u.length;k+=1)f(k);ne()}const h={};g[1]&512&&(h.$$scope={dirty:g,ctx:d}),n.$set(h);const v={};!s&&g[0]&1&&(s=!0,v.value=d[0].google.config.activated,pe(()=>s=!1)),l.$set(v)},i(d){if(!o){for(let g=0;g<a.length;g+=1)m(u[g]);m(n.$$.fragment,d),m(l.$$.fragment,d),o=!0}},o(d){u=u.filter(Boolean);for(let g=0;g<u.length;g+=1)_(u[g]);_(n.$$.fragment,d),_(l.$$.fragment,d),o=!1},d(d){gt(u,d),d&&b(e),d&&b(t),E(n),E(l)}}}function o9(r){let e,t,n,i,l,s,o,a;return e=new nn({}),n=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[H0e]},$$scope:{ctx:r}}}),l=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[G0e]},$$scope:{ctx:r}}}),o=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[K0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R(),S(l.$$.fragment),s=R(),S(o.$$.fragment)},m(u,f){A(e,u,f),$(u,t,f),A(n,u,f),$(u,i,f),A(l,u,f),$(u,s,f),A(o,u,f),a=!0},p(u,f){const c={};f[0]&9|f[1]&512&&(c.$$scope={dirty:f,ctx:u}),n.$set(c);const p={};f[0]&17|f[1]&512&&(p.$$scope={dirty:f,ctx:u}),l.$set(p);const d={};f[0]&3|f[1]&512&&(d.$$scope={dirty:f,ctx:u}),o.$set(d)},i(u){a||(m(e.$$.fragment,u),m(n.$$.fragment,u),m(l.$$.fragment,u),m(o.$$.fragment,u),a=!0)},o(u){_(e.$$.fragment,u),_(n.$$.fragment,u),_(l.$$.fragment,u),_(o.$$.fragment,u),a=!1},d(u){E(e,u),u&&b(t),E(n,u),u&&b(i),E(l,u),u&&b(s),E(o,u)}}}function U0e(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function F0e(r){let e,t,n,i,l,s,o;return t=new I0e({}),s=new at({props:{disabled:r[3],size:"s",cta:!0,$$slots:{default:[U0e]},$$scope:{ctx:r}}}),s.$on("click",r[19]),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("span"),i.textContent="OpenID Connect",l=R(),S(s.$$.fragment),w(i,"class","svelte-gw5xxq"),w(e,"class","provider-title svelte-gw5xxq")},m(a,u){$(a,e,u),A(t,e,null),N(e,n),N(e,i),N(e,l),A(s,e,null),o=!0},p(a,u){const f={};u[0]&8&&(f.disabled=a[3]),u[1]&512&&(f.$$scope={dirty:u,ctx:a}),s.$set(f)},i(a){o||(m(t.$$.fragment,a),m(s.$$.fragment,a),o=!0)},o(a){_(t.$$.fragment,a),_(s.$$.fragment,a),o=!1},d(a){a&&b(e),E(t),E(s)}}}function V0e(r){let e;return{c(){e=F("To allow users to authenticate using OIDC, fill out the fields below.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function H0e(r){let e,t,n,i;return e=new _t({props:{size:"S",$$slots:{default:[F0e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"S",$$slots:{default:[V0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s[0]&9|s[1]&512&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s[1]&512&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function W0e(r){let e=r[35].label+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i[0]&16&&e!==(e=n[35].label+"")&&Oe(t,e)},d(n){n&&b(t)}}}function a9(r){let e,t,n,i,l,s,o;t=new Ze({props:{size:"L",tooltip:r[35].tooltip,$$slots:{default:[W0e]},$$scope:{ctx:r}}});function a(f){r[20](f,r[35])}let u={readonly:r[35].readonly,placeholder:r[35].placeholder};return r[0].oidc.config.configs[0][r[35].name]!==void 0&&(u.value=r[0].oidc.config.configs[0][r[35].name]),i=new nt({props:u}),Z.push(()=>ce(i,"value",a)),{c(){e=D("div"),S(t.$$.fragment),n=R(),S(i.$$.fragment),s=R(),w(e,"class","form-row svelte-gw5xxq")},m(f,c){$(f,e,c),A(t,e,null),N(e,n),A(i,e,null),N(e,s),o=!0},p(f,c){r=f;const p={};c[0]&16&&(p.tooltip=r[35].tooltip),c[0]&16|c[1]&512&&(p.$$scope={dirty:c,ctx:r}),t.$set(p);const d={};c[0]&16&&(d.readonly=r[35].readonly),c[0]&16&&(d.placeholder=r[35].placeholder),!l&&c[0]&17&&(l=!0,d.value=r[0].oidc.config.configs[0][r[35].name],pe(()=>l=!1)),i.$set(d)},i(f){o||(m(t.$$.fragment,f),m(i.$$.fragment,f),o=!0)},o(f){_(t.$$.fragment,f),_(i.$$.fragment,f),o=!1},d(f){f&&b(e),E(t),E(i)}}}function G0e(r){let e,t,n=r[4].Oidc,i=[];for(let s=0;s<n.length;s+=1)i[s]=a9(r9(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Se()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o[0]&17){n=s[4].Oidc;let a;for(a=0;a<n.length;a+=1){const u=r9(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=a9(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){gt(i,s),s&&b(e)}}}function Y0e(r){let e;return{c(){e=F("To customize your login button, fill out the fields below.")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function J0e(r){let e;return{c(){e=F("Name")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function Q0e(r){let e;return{c(){e=F("Icon")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function X0e(r){let e;return{c(){e=F("Activated")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function K0e(r){let e,t,n,i,l,s,o,a,u,f,c,p,d,g,h,v,k,y,I,T,O,P,M,q;e=new Je({props:{size:"S",$$slots:{default:[Y0e]},$$scope:{ctx:r}}}),i=new Ze({props:{size:"L",$$slots:{default:[J0e]},$$scope:{ctx:r}}});function j(H){r[21](H)}let B={};r[0].oidc.config.configs[0].name!==void 0&&(B.value=r[0].oidc.config.configs[0].name),s=new nt({props:B}),Z.push(()=>ce(s,"value",j)),f=new Ze({props:{size:"L",$$slots:{default:[Q0e]},$$scope:{ctx:r}}});function V(H){r[22](H)}let G={label:"",options:r[6]};r[0].oidc.config.configs[0].logo!==void 0&&(G.value=r[0].oidc.config.configs[0].logo),p=new Xe({props:G}),Z.push(()=>ce(p,"value",V)),p.$on("change",r[23]),y=new Ze({props:{size:"L",$$slots:{default:[X0e]},$$scope:{ctx:r}}});function Y(H){r[26](H)}let U={text:""};return r[0].oidc.config.configs[0].activated!==void 0&&(U.value=r[0].oidc.config.configs[0].activated),T=new Hn({props:U}),Z.push(()=>ce(T,"value",Y)),{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment),l=R(),S(s.$$.fragment),a=R(),u=D("div"),S(f.$$.fragment),c=R(),S(p.$$.fragment),g=R(),h=D("input"),v=R(),k=D("div"),S(y.$$.fragment),I=R(),S(T.$$.fragment),w(n,"class","form-row svelte-gw5xxq"),w(u,"class","form-row svelte-gw5xxq"),w(h,"type","file"),w(h,"accept",".jpg, .jpeg, .png"),w(h,"class","svelte-gw5xxq"),w(k,"class","form-row svelte-gw5xxq")},m(H,W){A(e,H,W),$(H,t,W),$(H,n,W),A(i,n,null),N(n,l),A(s,n,null),$(H,a,W),$(H,u,W),A(f,u,null),N(u,c),A(p,u,null),$(H,g,W),$(H,h,W),r[25](h),$(H,v,W),$(H,k,W),A(y,k,null),N(k,I),A(T,k,null),P=!0,M||(q=Ne(h,"change",r[24]),M=!0)},p(H,W){const Q={};W[1]&512&&(Q.$$scope={dirty:W,ctx:H}),e.$set(Q);const fe={};W[1]&512&&(fe.$$scope={dirty:W,ctx:H}),i.$set(fe);const ee={};!o&&W[0]&1&&(o=!0,ee.value=H[0].oidc.config.configs[0].name,pe(()=>o=!1)),s.$set(ee);const re={};W[1]&512&&(re.$$scope={dirty:W,ctx:H}),f.$set(re);const K={};!d&&W[0]&1&&(d=!0,K.value=H[0].oidc.config.configs[0].logo,pe(()=>d=!1)),p.$set(K);const _e={};W[1]&512&&(_e.$$scope={dirty:W,ctx:H}),y.$set(_e);const Le={};!O&&W[0]&1&&(O=!0,Le.value=H[0].oidc.config.configs[0].activated,pe(()=>O=!1)),T.$set(Le)},i(H){P||(m(e.$$.fragment,H),m(i.$$.fragment,H),m(s.$$.fragment,H),m(f.$$.fragment,H),m(p.$$.fragment,H),m(y.$$.fragment,H),m(T.$$.fragment,H),P=!0)},o(H){_(e.$$.fragment,H),_(i.$$.fragment,H),_(s.$$.fragment,H),_(f.$$.fragment,H),_(p.$$.fragment,H),_(y.$$.fragment,H),_(T.$$.fragment,H),P=!1},d(H){E(e,H),H&&b(t),H&&b(n),E(i),E(s),H&&b(a),H&&b(u),E(f),E(p),H&&b(g),H&&b(h),r[25](null),H&&b(v),H&&b(k),E(y),E(T),M=!1,q()}}}function Z0e(r){let e,t,n,i,l;e=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[N0e]},$$scope:{ctx:r}}});let s=r[0].google&&l9(r),o=r[0].oidc&&o9(r);return{c(){S(e.$$.fragment),t=R(),s&&s.c(),n=R(),o&&o.c(),i=Se()},m(a,u){A(e,a,u),$(a,t,u),s&&s.m(a,u),$(a,n,u),o&&o.m(a,u),$(a,i,u),l=!0},p(a,u){const f={};u[1]&512&&(f.$$scope={dirty:u,ctx:a}),e.$set(f),a[0].google?s?(s.p(a,u),u[0]&1&&m(s,1)):(s=l9(a),s.c(),m(s,1),s.m(n.parentNode,n)):s&&(te(),_(s,1,1,()=>{s=null}),ne()),a[0].oidc?o?(o.p(a,u),u[0]&1&&m(o,1)):(o=o9(a),o.c(),m(o,1),o.m(i.parentNode,i)):o&&(te(),_(o,1,1,()=>{o=null}),ne())},i(a){l||(m(e.$$.fragment,a),m(s),m(o),l=!0)},o(a){_(e.$$.fragment,a),_(s),_(o),l=!1},d(a){E(e,a),a&&b(t),s&&s.d(a),a&&b(n),o&&o.d(a),a&&b(i)}}}function x0e(r){let e,t;return e=new Ve({props:{noPadding:!0,$$slots:{default:[Z0e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i[0]&63|i[1]&512&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function e2e(r,e,t){let n,i,l,s,o,a,u,f,c,p,d;ae(r,_r,_e=>t(14,p=_e)),ae(r,Cn,_e=>t(15,d=_e));const g={Google:"google",OIDC:"oidc"};let h=[{label:"Microsoft",value:"Microsoft",icon:$7},{label:"Okta",value:"Okta",icon:b7},{label:"OneLogin",value:"OneLogin",icon:v7},{label:"Auth0",value:"Auth0",icon:h7},{label:"OIDC",value:"Oidc",icon:H1},{label:"Upload your own",value:"Upload"}],v,k,y,I;const T={google:y,oidc:I};let O,P,M,q;const j=_e=>{let Le=_e.target.files[0].name;k=_e.target.files[0],t(0,T.oidc.config.configs[0].logo=Le,T),h.unshift({label:Le,value:Le})};async function B(_e){let Le=[];if(k){let Re=new FormData;Re.append("file",k),Le.push(xe.uploadOIDCLogo({name:k.name,data:Re}))}_e.forEach(Re=>{if(delete Re.createdAt,delete Re.updatedAt,Re.type===g.OIDC){for(let de of Re.config.configs)de.uuid||(de.uuid=Yi()),delete de.callbackURL;u&&(c?(Le.push(xe.saveConfig(Re)),t(3,q=!0),t(10,P=wn.cloneDeep(T.oidc))):ye.error(`Please fill in all required ${g.OIDC} fields`))}Re.type===g.Google&&a&&(f?(Le.push(xe.saveConfig(Re)),t(2,M=!0),t(9,O=wn.cloneDeep(T.google))):ye.error(`Please fill in all required ${g.Google} fields`))}),Le.length&&Promise.all(Le).then(Re=>{Re.forEach(de=>{t(0,T[de.type]._rev=de._rev,T),t(0,T[de.type]._id=de._id,T)}),ye.success("Settings saved"),qn.captureEvent(Gn.SSO.SAVED)}).catch(()=>{ye.error("Failed to update auth settings")})}Ft(async()=>{var de,$e;try{await _r.init()}catch{ye.error("Error getting org config")}let _e;try{_e=await xe.getConfig(g.Google)}catch{ye.error("Error fetching Google OAuth config")}(_e==null?void 0:_e._id)?(_e.config.activated===void 0&&(_e.config.activated=!0),t(9,O=wn.cloneDeep(_e)),t(0,T.google=_e,T)):(t(0,T.google={type:g.Google,config:{activated:!0}},T),t(9,O=wn.cloneDeep(_e))),t(11,n=($e=(de=T==null?void 0:T.google)==null?void 0:de.config)==null?void 0:$e.callbackURL);let Le;try{Le=await xe.getOIDCLogos()}catch{ye.error("Error fetching OIDC logos")}(Le==null?void 0:Le.config)&&Object.keys(Le.config).map(Ue=>{const ue=Le.config[Ue];h.unshift({label:Ue,value:Ue,icon:ue})});let Re;try{Re=await xe.getConfig(g.OIDC)}catch{ye.error("Error fetching OIDC config")}(Re==null?void 0:Re._id)?(t(10,P=wn.cloneDeep(Re)),t(0,T.oidc=Re,T)):t(0,T.oidc={type:g.OIDC,config:{configs:[{activated:!0}]}},T)});const V=()=>B([T.google]);function G(_e,Le){r.$$.not_equal(T.google.config[Le.name],_e)&&(T.google.config[Le.name]=_e,t(0,T))}function Y(_e){r.$$.not_equal(T.google.config.activated,_e)&&(T.google.config.activated=_e,t(0,T))}const U=()=>B([T.oidc]);function H(_e,Le){r.$$.not_equal(T.oidc.config.configs[0][Le.name],_e)&&(T.oidc.config.configs[0][Le.name]=_e,t(0,T))}function W(_e){r.$$.not_equal(T.oidc.config.configs[0].name,_e)&&(T.oidc.config.configs[0].name=_e,t(0,T))}function Q(_e){r.$$.not_equal(T.oidc.config.configs[0].logo,_e)&&(T.oidc.config.configs[0].logo=_e,t(0,T))}const fe=_e=>_e.detail==="Upload"&&v.click(),ee=_e=>j(_e);function re(_e){Z[_e?"unshift":"push"](()=>{v=_e,t(1,v)})}function K(_e){r.$$.not_equal(T.oidc.config.configs[0].activated,_e)&&(T.oidc.config.configs[0].activated=_e,t(0,T))}return r.$$.update=()=>{var _e,Le,Re,de,$e,Pe,Ue,ue,Fe,he,ke,ve,be,Ge,Ot,Be,dt,It,Ie,Qe,Vt,qe;r.$$.dirty[0]&34816&&t(13,i=d.cloud||!n),r.$$.dirty[0]&8192&&t(12,l=i?"Vist the organisation page to update the platform URL":"Leave blank to use the default callback URL"),r.$$.dirty[0]&28672&&t(5,s={Google:[{name:"clientID",label:"Client ID"},{name:"clientSecret",label:"Client secret"},{name:"callbackURL",label:"Callback URL",readonly:i,tooltip:l,placeholder:p.googleCallbackUrl}]}),r.$$.dirty[0]&16384&&t(4,o={Oidc:[{name:"configUrl",label:"Config URL"},{name:"clientID",label:"Client ID"},{name:"clientSecret",label:"Client Secret"},{name:"callbackURL",readonly:!0,tooltip:"Vist the organisation page to update the platform URL",label:"Callback URL",placeholder:p.oidcCallbackUrl}]}),r.$$.dirty[0]&1537&&(wn.isEqual((_e=T.google)==null?void 0:_e.config,O==null?void 0:O.config)?t(2,M=!0):t(2,M=!1),wn.isEqual((Le=T.oidc)==null?void 0:Le.config,P==null?void 0:P.config)?t(3,q=!0):t(3,q=!1)),r.$$.dirty[0]&1&&(a=((de=(Re=T.google)==null?void 0:Re.config)==null?void 0:de.clientID)||((Pe=($e=T.google)==null?void 0:$e.config)==null?void 0:Pe.clientSecret)),r.$$.dirty[0]&1&&(u=((ue=(Ue=T.oidc)==null?void 0:Ue.config)==null?void 0:ue.configs[0].configUrl)||((he=(Fe=T.oidc)==null?void 0:Fe.config)==null?void 0:he.configs[0].clientID)||((ve=(ke=T.oidc)==null?void 0:ke.config)==null?void 0:ve.configs[0].clientSecret)),r.$$.dirty[0]&1&&(f=((Ge=(be=T.google)==null?void 0:be.config)==null?void 0:Ge.clientID)&&((Be=(Ot=T.google)==null?void 0:Ot.config)==null?void 0:Be.clientSecret)),r.$$.dirty[0]&1&&(c=((It=(dt=T.oidc)==null?void 0:dt.config)==null?void 0:It.configs[0].configUrl)&&((Qe=(Ie=T.oidc)==null?void 0:Ie.config)==null?void 0:Qe.configs[0].clientID)&&((qe=(Vt=T.oidc)==null?void 0:Vt.config)==null?void 0:qe.configs[0].clientSecret))},t(11,n=void 0),[T,v,M,q,o,s,h,j,B,O,P,n,l,i,p,d,V,G,Y,U,H,W,Q,fe,ee,re,K]}class t2e extends le{constructor(e){super();se(this,e,e2e,x0e,ie,{},null,[-1,-1])}}function u9(r,e,t){const n=r.slice();return n[3]=e[t],n}function n2e(r){let e=r[3].name+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[3].name+"")&&Oe(t,e)},d(n){n&&b(t)}}}function r2e(r){let e=r[3].description+"",t;return{c(){t=F(e)},m(n,i){$(n,t,i)},p(n,i){i&1&&e!==(e=n[3].description+"")&&Oe(t,e)},d(n){n&&b(t)}}}function i2e(r){let e,t,n,i,l;return e=new Vr({props:{size:"M",$$slots:{default:[n2e]},$$scope:{ctx:r}}}),n=new Je({props:{size:"XS",$$slots:{default:[r2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment),i=R()},m(s,o){A(e,s,o),$(s,t,o),A(n,s,o),$(s,i,o),l=!0},p(s,o){const a={};o&65&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&65&&(u.$$scope={dirty:o,ctx:s}),n.$set(u)},i(s){l||(m(e.$$.fragment,s),m(n.$$.fragment,s),l=!0)},o(s){_(e.$$.fragment,s),_(n.$$.fragment,s),l=!1},d(s){E(e,s),s&&b(t),E(n,s),s&&b(i)}}}function f9(r){let e,t;function n(){return r[2](r[3])}return e=new Kt({props:{$$slots:{default:[i2e]},$$scope:{ctx:r}}}),e.$on("click",n),{c(){S(e.$$.fragment)},m(i,l){A(e,i,l),t=!0},p(i,l){r=i;const s={};l&65&&(s.$$scope={dirty:l,ctx:r}),e.$set(s)},i(i){t||(m(e.$$.fragment,i),t=!0)},o(i){_(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function l2e(r){let e,t,n=r[0],i=[];for(let s=0;s<n.length;s+=1)i[s]=f9(u9(r,n,s));const l=s=>_(i[s],1,1,()=>{i[s]=null});return{c(){for(let s=0;s<i.length;s+=1)i[s].c();e=Se()},m(s,o){for(let a=0;a<i.length;a+=1)i[a].m(s,o);$(s,e,o),t=!0},p(s,o){if(o&3){n=s[0];let a;for(a=0;a<n.length;a+=1){const u=u9(s,n,a);i[a]?(i[a].p(u,o),m(i[a],1)):(i[a]=f9(u),i[a].c(),m(i[a],1),i[a].m(e.parentNode,e))}for(te(),a=n.length;a<i.length;a+=1)l(a);ne()}},i(s){if(!t){for(let o=0;o<n.length;o+=1)m(i[o]);t=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)_(i[o]);t=!1},d(s){gt(i,s),s&&b(e)}}}function s2e(r){let e,t;return e=new Ch({props:{$$slots:{default:[l2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&67&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function o2e(r,e,t){let{bindings:n}=e,{onBindingClick:i=()=>{}}=e;const l=s=>i(s);return r.$$set=s=>{"bindings"in s&&t(0,n=s.bindings),"onBindingClick"in s&&t(1,i=s.onBindingClick)},[n,i,l]}class c9 extends le{constructor(e){super();se(this,e,o2e,s2e,ie,{bindings:0,onBindingClick:1})}}function a2e(r){let e;return{c(){e=F("Back to email settings")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function u2e(r){let e,t;return{c(){e=F("Email Template: "),t=F(r[7])},m(n,i){$(n,e,i),$(n,t,i)},p(n,i){i&128&&Oe(t,n[7])},d(n){n&&b(e),n&&b(t)}}}function f2e(r){let e;return{c(){e=F("Save")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function c2e(r){let e,t,n,i;return{c(){e=F(r[6]),t=R(),n=D("br"),i=F(`
|
|
1279
1279
|
Change the email template here. Add dynamic content by using the bindings menu
|
|
1280
1280
|
on the right.`)},m(l,s){$(l,e,s),$(l,t,s),$(l,n,s),$(l,i,s)},p(l,s){s&64&&Oe(e,l[6])},d(l){l&&b(e),l&&b(t),l&&b(n),l&&b(i)}}}function p2e(r){let e,t,n,i,l,s,o,a,u,f;return t=new Jt({props:{quiet:!0,size:"S",icon:"BackAndroid",$$slots:{default:[a2e]},$$scope:{ctx:r}}}),t.$on("click",r[14]),l=new _t({props:{$$slots:{default:[u2e]},$$scope:{ctx:r}}}),o=new at({props:{cta:!0,$$slots:{default:[f2e]},$$scope:{ctx:r}}}),o.$on("click",r[9]),u=new Je({props:{$$slots:{default:[c2e]},$$scope:{ctx:r}}}),{c(){e=D("div"),S(t.$$.fragment),n=R(),i=D("header"),S(l.$$.fragment),s=R(),S(o.$$.fragment),a=R(),S(u.$$.fragment),w(i,"class","svelte-1wbm3qd")},m(c,p){$(c,e,p),A(t,e,null),$(c,n,p),$(c,i,p),A(l,i,null),N(i,s),A(o,i,null),$(c,a,p),A(u,c,p),f=!0},p(c,p){const d={};p&262144&&(d.$$scope={dirty:p,ctx:c}),t.$set(d);const g={};p&262272&&(g.$$scope={dirty:p,ctx:c}),l.$set(g);const h={};p&262144&&(h.$$scope={dirty:p,ctx:c}),o.$set(h);const v={};p&262208&&(v.$$scope={dirty:p,ctx:c}),u.$set(v)},i(c){f||(m(t.$$.fragment,c),m(l.$$.fragment,c),m(o.$$.fragment,c),m(u.$$.fragment,c),f=!0)},o(c){_(t.$$.fragment,c),_(l.$$.fragment,c),_(o.$$.fragment,c),_(u.$$.fragment,c),f=!1},d(c){c&&b(e),E(t),c&&b(n),c&&b(i),E(l),E(o),c&&b(a),E(u,c)}}}function d2e(r){let e;return{c(){e=F("Bindings")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function p9(r){let e,t;return e=new Fr({props:{selected:"Template",$$slots:{default:[_2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&262178&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function m2e(r){let e,t;return e=new c9({props:{title:"Template Bindings",bindings:r[5],onBindingClick:r[10]}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,i){const l={};i&32&&(l.bindings=n[5]),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function g2e(r){var n,i,l;let e,t;return e=new c9({props:{title:"Common Bindings",bindings:(l=(i=(n=r[1])==null?void 0:n.definitions)==null?void 0:i.bindings)==null?void 0:l.common,onBindingClick:r[10]}}),{c(){S(e.$$.fragment)},m(s,o){A(e,s,o),t=!0},p(s,o){var u,f,c;const a={};o&2&&(a.bindings=(c=(f=(u=s[1])==null?void 0:u.definitions)==null?void 0:f.bindings)==null?void 0:c.common),e.$set(a)},i(s){t||(m(e.$$.fragment,s),t=!0)},o(s){_(e.$$.fragment,s),t=!1},d(s){E(e,s)}}}function _2e(r){let e,t,n,i;return e=new bn({props:{title:"Template",$$slots:{default:[m2e]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Common",$$slots:{default:[g2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&262176&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&262146&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function h2e(r){var c;let e,t,n,i,l,s,o,a,u={editorHeight:640,mode:"handlebars",value:(c=r[0])==null?void 0:c.contents};n=new xl({props:u}),r[15](n),n.$on("change",r[16]),s=new Vr({props:{size:"L",$$slots:{default:[d2e]},$$scope:{ctx:r}}});let f=r[3]&&p9(r);return{c(){e=D("div"),t=D("div"),S(n.$$.fragment),i=R(),l=D("div"),S(s.$$.fragment),o=R(),f&&f.c(),w(t,"class","template-text-editor svelte-1wbm3qd"),w(l,"class","bindings-editor svelte-1wbm3qd"),w(e,"class","template-editor svelte-1wbm3qd")},m(p,d){$(p,e,d),N(e,t),A(n,t,null),N(e,i),N(e,l),A(s,l,null),N(l,o),f&&f.m(l,null),a=!0},p(p,d){var v;const g={};d&1&&(g.value=(v=p[0])==null?void 0:v.contents),n.$set(g);const h={};d&262144&&(h.$$scope={dirty:d,ctx:p}),s.$set(h),p[3]?f?(f.p(p,d),d&8&&m(f,1)):(f=p9(p),f.c(),m(f,1),f.m(l,null)):f&&(te(),_(f,1,1,()=>{f=null}),ne())},i(p){a||(m(n.$$.fragment,p),m(s.$$.fragment,p),m(f),a=!0)},o(p){_(n.$$.fragment,p),_(s.$$.fragment,p),_(f),a=!1},d(p){p&&b(e),r[15](null),E(n),E(s),f&&f.d()}}}function $2e(r){let e,t;return{c(){e=D("div"),t=D("iframe"),w(t,"title","preview"),w(t,"srcdoc",r[4]),w(t,"class","svelte-1wbm3qd"),w(e,"class","preview svelte-1wbm3qd")},m(n,i){$(n,e,i),N(e,t)},p(n,i){i&16&&w(t,"srcdoc",n[4])},d(n){n&&b(e)}}}function b2e(r){let e,t,n,i;return e=new bn({props:{title:"Edit",$$slots:{default:[h2e]},$$scope:{ctx:r}}}),n=new bn({props:{title:"Preview",$$slots:{default:[$2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment),t=R(),S(n.$$.fragment)},m(l,s){A(e,l,s),$(l,t,s),A(n,l,s),i=!0},p(l,s){const o={};s&262191&&(o.$$scope={dirty:s,ctx:l}),e.$set(o);const a={};s&262160&&(a.$$scope={dirty:s,ctx:l}),n.$set(a)},i(l){i||(m(e.$$.fragment,l),m(n.$$.fragment,l),i=!0)},o(l){_(e.$$.fragment,l),_(n.$$.fragment,l),i=!1},d(l){E(e,l),l&&b(t),E(n,l)}}}function v2e(r){let e,t,n,i,l;return e=new Ve({props:{gap:"XS",noPadding:!0,$$slots:{default:[p2e]},$$scope:{ctx:r}}}),i=new Fr({props:{selected:"Edit",$$slots:{default:[b2e]},$$scope:{ctx:r}}}),i.$on("select",r[11]),{c(){S(e.$$.fragment),t=R(),n=D("div"),S(i.$$.fragment)},m(s,o){A(e,s,o),$(s,t,o),$(s,n,o),A(i,n,null),l=!0},p(s,o){const a={};o&262592&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const u={};o&262207&&(u.$$scope={dirty:o,ctx:s}),i.$set(u)},i(s){l||(m(e.$$.fragment,s),m(i.$$.fragment,s),l=!0)},o(s){_(e.$$.fragment,s),_(i.$$.fragment,s),l=!1},d(s){E(e,s),s&&b(t),s&&b(n),E(i)}}}function w2e(r){let e,t;return e=new Ve({props:{noPadding:!0,$$slots:{default:[v2e]},$$scope:{ctx:r}}}),{c(){S(e.$$.fragment)},m(n,i){A(e,n,i),t=!0},p(n,[i]){const l={};i&262655&&(l.$$scope={dirty:i,ctx:n}),e.$set(l)},i(n){t||(m(e.$$.fragment,n),t=!0)},o(n){_(e.$$.fragment,n),t=!1},d(n){E(e,n)}}}function y2e(r,e,t){let n,i,l,s,o,a,u,f;ae(r,Jf,O=>t(1,u=O)),ae(r,zt,O=>t(8,f=O));let{template:c}=e,p,d=!1;async function g(){try{await Jf.templates.save(n),ye.success("Template saved")}catch{ye.error("Failed to update template settings")}}function h(O){p.update(t(0,n.contents+=`{{ ${O.name} }}`,n))}const v=(O,P)=>{var q,j;return P?P.purpose==="base"?P.contents:((q=O==null?void 0:O.contents)!=null?q:"").replace("{{ body }}",(j=P==null?void 0:P.contents)!=null?j:""):""};Ft(()=>{t(3,d=!0)});async function k({detail:O}){O==="Edit"?(await Gs(),t(3,d=!0)):t(3,d=!1)}const y=()=>f("./");function I(O){Z[O?"unshift":"push"](()=>{p=O,t(2,p)})}const T=O=>{t(0,n.contents=O.detail.value,n)};return r.$$set=O=>{"template"in O&&t(12,c=O.template)},r.$$.update=()=>{var O,P,M,q,j,B,V,G;r.$$.dirty&4098&&t(0,n=(O=u.templates)==null?void 0:O.find(({purpose:Y})=>Y===c)),r.$$.dirty&4098&&t(7,i=(M=(P=u.definitions)==null?void 0:P.info[c])==null?void 0:M.name),r.$$.dirty&4098&&t(6,l=(j=(q=u.definitions)==null?void 0:q.info[c])==null?void 0:j.description),r.$$.dirty&2&&t(13,s=(B=u.templates)==null?void 0:B.find(({purpose:Y})=>Y==="base")),r.$$.dirty&3&&t(5,o=((G=(V=u.definitions)==null?void 0:V.bindings)==null?void 0:G[n==null?void 0:n.purpose])||[]),r.$$.dirty&8193&&t(4,a=v(s,n))},[n,u,p,d,a,o,l,i,f,g,h,k,c,s,y,I,T]}class k2e extends le{constructor(e){super();se(this,e,y2e,w2e,ie,{template:12})}}function C2e(r){let e;return{c(){e=F("Email")},m(t,n){$(t,e,n)},d(t){t&&b(e)}}}function S2e(r){let e;return{c(){e=F(`Sending email is not required, but highly recommended for processes such
|
|
1281
1281
|
as password recovery. To setup automated auth emails, simply add the
|
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.b6f6e1e1.js"></script>
|
|
14
14
|
<link rel="modulepreload" href="/builder/assets/vendor.8e34a169.js">
|
|
15
15
|
<link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
|
|
16
16
|
<link rel="stylesheet" href="/builder/assets/index.3b909bcd.css">
|
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="1650925456963" clover="3.2.0">
|
|
3
|
+
<project timestamp="1650925456964" name="All files">
|
|
4
4
|
<metrics statements="4152" coveredstatements="2981" conditionals="1696" coveredconditionals="872" methods="612" coveredmethods="430" elements="6460" coveredelements="4283" complexity="0" loc="4152" ncloc="4152" packages="23" files="132" classes="132"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="33" coveredstatements="31" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
@@ -187,7 +187,7 @@ exports.endUserPing = <span class="fstat-no" title="function not covered" >as</s
|
|
|
187
187
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
188
|
Code coverage generated by
|
|
189
189
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
190
|
-
at Mon Apr 25 2022
|
|
190
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
191
191
|
</div>
|
|
192
192
|
<script src="../../prettify.js"></script>
|
|
193
193
|
<script>
|
|
@@ -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 Apr 25 2022
|
|
235
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -244,7 +244,7 @@ exports.fetchSelf = async ctx => {
|
|
|
244
244
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
245
245
|
Code coverage generated by
|
|
246
246
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
247
|
-
at Mon Apr 25 2022
|
|
247
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
248
248
|
</div>
|
|
249
249
|
<script src="../../prettify.js"></script>
|
|
250
250
|
<script>
|
|
@@ -724,7 +724,7 @@ exports.test = async function (ctx) {
|
|
|
724
724
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
725
725
|
Code coverage generated by
|
|
726
726
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
727
|
-
at Mon Apr 25 2022
|
|
727
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
728
728
|
</div>
|
|
729
729
|
<script src="../../prettify.js"></script>
|
|
730
730
|
<script>
|
|
@@ -97,7 +97,7 @@ exports.exportAppDump = async function (ctx) {
|
|
|
97
97
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
98
98
|
Code coverage generated by
|
|
99
99
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
100
|
-
at Mon Apr 25 2022
|
|
100
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
101
101
|
</div>
|
|
102
102
|
<script src="../../prettify.js"></script>
|
|
103
103
|
<script>
|
|
@@ -409,7 +409,7 @@ exports.importApps = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
409
409
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
410
410
|
Code coverage generated by
|
|
411
411
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
412
|
-
at Mon Apr 25 2022
|
|
412
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
413
413
|
</div>
|
|
414
414
|
<script src="../../prettify.js"></script>
|
|
415
415
|
<script>
|
|
@@ -172,7 +172,7 @@ exports.fetchAppComponentDefinitions = async function (ctx) {
|
|
|
172
172
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
173
173
|
Code coverage generated by
|
|
174
174
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
175
|
-
at Mon Apr 25 2022
|
|
175
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
176
176
|
</div>
|
|
177
177
|
<script src="../../prettify.js"></script>
|
|
178
178
|
<script>
|
|
@@ -847,7 +847,7 @@ const buildSchemaHelper = <span class="fstat-no" title="function not covered" >a
|
|
|
847
847
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
848
848
|
Code coverage generated by
|
|
849
849
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
850
|
-
at Mon Apr 25 2022
|
|
850
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
851
851
|
</div>
|
|
852
852
|
<script src="../../prettify.js"></script>
|
|
853
853
|
<script>
|
|
@@ -442,7 +442,7 @@ exports.getBudibaseVersion = <span class="fstat-no" title="function not covered"
|
|
|
442
442
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
443
443
|
Code coverage generated by
|
|
444
444
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
445
|
-
at Mon Apr 25 2022
|
|
445
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
446
446
|
</div>
|
|
447
447
|
<script src="../../prettify.js"></script>
|
|
448
448
|
<script>
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
402
402
|
Code coverage generated by
|
|
403
403
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
404
|
-
at Mon Apr 25 2022
|
|
404
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
405
405
|
</div>
|
|
406
406
|
<script src="../../prettify.js"></script>
|
|
407
407
|
<script>
|
|
@@ -151,7 +151,7 @@ exports.find = async function (ctx) {
|
|
|
151
151
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
152
152
|
Code coverage generated by
|
|
153
153
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
154
|
-
at Mon Apr 25 2022
|
|
154
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
155
155
|
</div>
|
|
156
156
|
<script src="../../prettify.js"></script>
|
|
157
157
|
<script>
|
|
@@ -223,7 +223,7 @@ exports.destroy = async function (ctx) {
|
|
|
223
223
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
224
224
|
Code coverage generated by
|
|
225
225
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
226
|
-
at Mon Apr 25 2022
|
|
226
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
227
227
|
</div>
|
|
228
228
|
<script src="../../prettify.js"></script>
|
|
229
229
|
<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 Apr 25 2022
|
|
196
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
112
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
598
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
104
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
223
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
224
224
|
</div>
|
|
225
225
|
<script src="../../../prettify.js"></script>
|
|
226
226
|
<script>
|
|
@@ -364,7 +364,7 @@ exports.destroy = async function (ctx) {
|
|
|
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 Apr 25 2022
|
|
367
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
368
368
|
</div>
|
|
369
369
|
<script src="../../prettify.js"></script>
|
|
370
370
|
<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 Apr 25 2022
|
|
349
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -769,7 +769,7 @@ exports.fetchEnrichedRow = <span class="fstat-no" title="function not covered" >
|
|
|
769
769
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
770
770
|
Code coverage generated by
|
|
771
771
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
772
|
-
at Mon Apr 25 2022
|
|
772
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
773
773
|
</div>
|
|
774
774
|
<script src="../../../prettify.js"></script>
|
|
775
775
|
<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 Apr 25 2022
|
|
164
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -1432,7 +1432,7 @@ exports.fetchEnrichedRow = async ctx => {
|
|
|
1432
1432
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1433
1433
|
Code coverage generated by
|
|
1434
1434
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1435
|
-
at Mon Apr 25 2022
|
|
1435
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
1436
1436
|
</div>
|
|
1437
1437
|
<script src="../../../prettify.js"></script>
|
|
1438
1438
|
<script>
|
|
@@ -1255,7 +1255,7 @@ exports.fullSearch = async (query, params) => {
|
|
|
1255
1255
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1256
1256
|
Code coverage generated by
|
|
1257
1257
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1258
|
-
at Mon Apr 25 2022
|
|
1258
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
1259
1259
|
</div>
|
|
1260
1260
|
<script src="../../../prettify.js"></script>
|
|
1261
1261
|
<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 Apr 25 2022
|
|
541
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
542
542
|
</div>
|
|
543
543
|
<script src="../../../prettify.js"></script>
|
|
544
544
|
<script>
|
|
@@ -346,7 +346,7 @@ exports.validate = async ({ tableId, row, table }) => {
|
|
|
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 Apr 25 2022
|
|
349
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -208,7 +208,7 @@ exports.destroy = async ctx => {
|
|
|
208
208
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
209
209
|
Code coverage generated by
|
|
210
210
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
211
|
-
at Mon Apr 25 2022
|
|
211
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
212
212
|
</div>
|
|
213
213
|
<script src="../../prettify.js"></script>
|
|
214
214
|
<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 Apr 25 2022
|
|
106
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
592
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
593
593
|
</div>
|
|
594
594
|
<script src="../../../prettify.js"></script>
|
|
595
595
|
<script>
|
|
@@ -1024,7 +1024,7 @@ exports.bulkImport = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
1024
1024
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1025
1025
|
Code coverage generated by
|
|
1026
1026
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1027
|
-
at Mon Apr 25 2022
|
|
1027
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
1028
1028
|
</div>
|
|
1029
1029
|
<script src="../../../prettify.js"></script>
|
|
1030
1030
|
<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 Apr 25 2022
|
|
134
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -367,7 +367,7 @@ exports.validateCSVSchema = async function (ctx) {
|
|
|
367
367
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
368
368
|
Code coverage generated by
|
|
369
369
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
370
|
-
at Mon Apr 25 2022
|
|
370
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
371
371
|
</div>
|
|
372
372
|
<script src="../../../prettify.js"></script>
|
|
373
373
|
<script>
|
|
@@ -187,7 +187,7 @@ exports.downloadTemplate = async function (ctx) {
|
|
|
187
187
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
188
188
|
Code coverage generated by
|
|
189
189
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
190
|
-
at Mon Apr 25 2022
|
|
190
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
191
191
|
</div>
|
|
192
192
|
<script src="../../prettify.js"></script>
|
|
193
193
|
<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 Apr 25 2022
|
|
775
|
+
at Mon Apr 25 2022 22:24:16 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 Apr 25 2022
|
|
151
|
+
at Mon Apr 25 2022 22:24:16 GMT+0000 (Coordinated Universal Time)
|
|
152
152
|
</div>
|
|
153
153
|
<script src="../../../prettify.js"></script>
|
|
154
154
|
<script>
|