@budibase/server 1.4.5 → 1.4.6
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.e86140b6.js → index.76e5a8fa.js} +2 -2
- package/builder/index.html +1 -1
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/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/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/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/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -448,7 +448,7 @@ __p += '`),Ln&&(mt+=`' +
|
|
|
448
448
|
function print() { __p += __j.call(arguments, '') }
|
|
449
449
|
`:`;
|
|
450
450
|
`)+mt+`return __p
|
|
451
|
-
}`;var _n=D5(function(){return Tt(se,Rt+"return "+mt).apply(t,me)});if(_n.source=mt,Ep(_n))throw _n;return _n}function N4(d){return w1(d).toLowerCase()}function jp(d){return w1(d).toUpperCase()}function tm(d,v,M){if(d=w1(d),d&&(M||v===t))return G0(d);if(!d||!(v=ma(v)))return d;var F=No(d),Z=No(v),se=s1(F,Z),me=Ro(F,Z)+1;return Jl(F,se,me).join("")}function nm(d,v,M){if(d=w1(d),d&&(M||v===t))return d.slice(0,jl(d)+1);if(!d||!(v=ma(v)))return d;var F=No(d),Z=Ro(F,No(v))+1;return Jl(F,0,Z).join("")}function rm(d,v,M){if(d=w1(d),d&&(M||v===t))return d.replace(Wi,"");if(!d||!(v=ma(v)))return d;var F=No(d),Z=s1(F,No(v));return Jl(F,Z).join("")}function Tu(d,v){var M=te,F=ee;if(Ao(v)){var Z="separator"in v?v.separator:Z;M="length"in v?mr(v.length):M,F="omission"in v?ma(v.omission):F}d=w1(d);var se=d.length;if(no(d)){var me=No(d);se=me.length}if(M>=se)return d;var $e=M-K0(F);if($e<1)return F;var He=me?Jl(me,0,$e).join(""):d.slice(0,$e);if(Z===t)return He+F;if(me&&($e+=He.length-$e),Ss(Z)){if(d.slice($e).search(Z)){var ut,rt=He;for(Z.global||(Z=_o(Z.source,w1(Ba.exec(Z))+"g")),Z.lastIndex=0;ut=Z.exec(rt);)var mt=ut.index;He=He.slice(0,mt===t?$e:mt)}}else if(d.indexOf(ma(Z),$e)!=$e){var Ct=He.lastIndexOf(Z);Ct>-1&&(He=He.slice(0,Ct))}return He+F}function tr(d){return d=w1(d),d&>.test(d)?d.replace(Br,xs):d}var im=Zs(function(d,v,M){return d+(M?" ":"")+v.toUpperCase()}),El=U2("toUpperCase");function lh(d,v,M){return d=w1(d),v=M?t:v,v===t?Pr(d)?K1(d):Gu(d):d.match(v)||[]}var D5=Fr(function(d,v){try{return Vo(d,t,v)}catch(M){return Ep(M)?M:new Yt(M)}}),F4=ks(function(d,v){return Ua(v,function(M){M=xr(M),B1(d,M,oa(d[M],d))}),d});function Up(d){var v=d==null?0:d.length,M=kr();return d=v?Cn(d,function(F){if(typeof F[1]!="function")throw new M1(o);return[M(F[0]),F[1]]}):[],Fr(function(F){for(var Z=-1;++Z<v;){var se=d[Z];if(Vo(se[0],this,F))return Vo(se[1],this,F)}})}function nc(d){return r2(p1(d,f))}function qp(d){return function(){return d}}function am(d,v){return d==null||d!==d?v:d}var om=Oc(),Wp=Oc(!0);function _0(d){return d}function Gp(d){return d1(typeof d=="function"?d:p1(d,f))}function lm(d){return Sc(p1(d,f))}function sm(d,v){return O0(d,p1(v,f))}var um=Fr(function(d,v){return function(M){return da(M,d,v)}}),cm=Fr(function(d,v){return function(M){return da(d,M,v)}});function Yp(d,v,M){var F=pl(v),Z=Kl(v,F);M==null&&!(Ao(v)&&(Z.length||!F.length))&&(M=v,v=d,d=this,Z=Kl(v,pl(v)));var se=!(Ao(M)&&"chain"in M)||!!M.chain,me=Cs(d);return Ua(Z,function($e){var He=v[$e];d[$e]=He,me&&(d.prototype[$e]=function(){var ut=this.__chain__;if(se||ut){var rt=d(this.__wrapped__),mt=rt.__actions__=Q1(this.__actions__);return mt.push({func:He,args:arguments,thisArg:d}),rt.__chain__=ut,rt}return He.apply(d,ui([this.value()],arguments))})}),d}function fm(){return gi._===this&&(gi._=Pa),this}function Kp(){}function Xp(d){return d=mr(d),Fr(function(v){return Xi(v,d)})}var pm=$s(Cn),dm=$s(mn),Jp=$s(go);function H5(d){return ce(d)?yc(xr(d)):c3(d)}function hm(d){return function(v){return d==null?t:Cl(d,v)}}var mm=Ic(),gm=Ic(!0);function Zp(){return[]}function Qp(){return!1}function vm(){return{}}function _m(){return""}function x4(){return!0}function ed(d,v){if(d=mr(d),d<1||d>he)return[];var M=_e,F=Ai(d,_e);v=kr(v),d-=_e;for(var Z=W0(F,v);++M<d;)v(M);return Z}function bm(d){return Jr(d)?Cn(d,xr):Eu(d)?[d]:Q1(zi(w1(d)))}function ym(d){var v=++fa;return w1(d)+v}var $m=Ea(function(d,v){return d+v},0),wm=Mu("ceil"),km=Ea(function(d,v){return d/v},1),zm=Mu("floor");function Am(d){return d&&d.length?Yi(d,_0,Ki):t}function Mm(d,v){return d&&d.length?Yi(d,kr(v,2),Ki):t}function Cm(d){return bc(d,_0)}function Sm(d,v){return bc(d,kr(v,2))}function Lm(d){return d&&d.length?Yi(d,_0,P1):t}function Em(d,v){return d&&d.length?Yi(d,kr(v,2),P1):t}var Tm=Ea(function(d,v){return d*v},1),Dm=Mu("round"),Hm=Ea(function(d,v){return d-v},0);function Bm(d){return d&&d.length?n0(d,_0):0}function Om(d,v){return d&&d.length?n0(d,kr(v,2)):0}return Ue.after=i8,Ue.ary=J3,Ue.assign=bf,Ue.assignIn=t4,Ue.assignInWith=eu,Ue.assignWith=yf,Ue.at=$f,Ue.before=Kd,Ue.bind=oa,Ue.bindAll=F4,Ue.bindKey=Z3,Ue.castArray=d8,Ue.chain=G3,Ue.chunk=ul,Ue.compact=To,Ue.concat=xi,Ue.cond=Up,Ue.conforms=nc,Ue.constant=qp,Ue.countBy=V6,Ue.create=$3,Ue.curry=Xd,Ue.curryRight=Jd,Ue.debounce=Q3,Ue.defaults=ec,Ue.defaultsDeep=k8,Ue.defer=a8,Ue.delay=T4,Ue.difference=Ya,Ue.differenceBy=Ci,Ue.differenceWith=Y2,Ue.drop=ko,Ue.dropRight=R0,Ue.dropRightWhile=N0,Ue.dropWhile=ji,Ue.fill=cl,Ue.filter=N6,Ue.flatMap=Cp,Ue.flatMapDeep=x6,Ue.flatMapDepth=j6,Ue.flatten=ea,Ue.flattenDeep=Si,Ue.flattenDepth=yp,Ue.flip=o8,Ue.flow=om,Ue.flowRight=Wp,Ue.fromPairs=$p,Ue.functions=Ip,Ue.functionsIn=tc,Ue.groupBy=U6,Ue.initial=kp,Ue.intersection=p3,Ue.intersectionBy=zp,Ue.intersectionWith=F0,Ue.invert=Vp,Ue.invertBy=Rp,Ue.invokeMap=W6,Ue.iteratee=Gp,Ue.keyBy=G6,Ue.keys=pl,Ue.keysIn=ts,Ue.map=z5,Ue.mapKeys=L8,Ue.mapValues=I4,Ue.matches=lm,Ue.matchesProperty=sm,Ue.memoize=e4,Ue.merge=P4,Ue.mergeWith=T5,Ue.method=um,Ue.methodOf=cm,Ue.mixin=Yp,Ue.negate=M5,Ue.nthArg=Xp,Ue.omit=q1,Ue.omitBy=E8,Ue.once=D4,Ue.orderBy=Y6,Ue.over=pm,Ue.overArgs=H4,Ue.overEvery=dm,Ue.overSome=Jp,Ue.partial=Lp,Ue.partialRight=Zd,Ue.partition=K6,Ue.pick=Np,Ue.pickBy=xc,Ue.property=H5,Ue.propertyOf=hm,Ue.pull=Ap,Ue.pullAll=N,Ue.pullAllBy=K,Ue.pullAllWith=fe,Ue.pullAt=Le,Ue.range=mm,Ue.rangeRight=gm,Ue.rearg=l8,Ue.reject=Z6,Ue.remove=qe,Ue.rest=s8,Ue.reverse=pt,Ue.sampleSize=e8,Ue.set=Fp,Ue.setWith=T8,Ue.shuffle=t8,Ue.slice=zt,Ue.sortBy=Sp,Ue.sortedUniq=cr,Ue.sortedUniqBy=or,Ue.split=xp,Ue.spread=u8,Ue.tail=Pt,Ue.take=er,Ue.takeRight=vr,Ue.takeRightWhile=Mr,Ue.takeWhile=Ur,Ue.tap=Y3,Ue.throttle=c8,Ue.thru=J2,Ue.toArray=th,Ue.toPairs=rh,Ue.toPairsIn=ih,Ue.toPath=bm,Ue.toPlainObject=E5,Ue.transform=D8,Ue.unary=f8,Ue.union=Rn,Ue.unionBy=Ka,Ue.unionWith=ri,Ue.uniq=di,Ue.uniqBy=gf,Ue.uniqWith=d2,Ue.unset=H8,Ue.unzip=Nc,Ue.unzipWith=v0,Ue.update=B8,Ue.updateWith=O8,Ue.values=n4,Ue.valuesIn=I8,Ue.without=K2,Ue.words=lh,Ue.wrap=p8,Ue.xor=Fc,Ue.xorBy=X2,Ue.xorWith=vf,Ue.zip=Ms,Ue.zipObject=Qi,Ue.zipObjectDeep=ta,Ue.zipWith=W3,Ue.entries=rh,Ue.entriesIn=ih,Ue.extend=t4,Ue.extendWith=eu,Yp(Ue,Ue),Ue.add=$m,Ue.attempt=D5,Ue.camelCase=N8,Ue.capitalize=ah,Ue.ceil=wm,Ue.clamp=P8,Ue.clone=h8,Ue.cloneDeep=g8,Ue.cloneDeepWith=v8,Ue.cloneWith=m8,Ue.conformsTo=_8,Ue.deburr=oh,Ue.defaultTo=am,Ue.divide=km,Ue.endsWith=F8,Ue.eq=fi,Ue.escape=x8,Ue.escapeRegExp=j8,Ue.every=R6,Ue.find=F6,Ue.findIndex=p2,Ue.findKey=z8,Ue.findLast=Mp,Ue.findLastIndex=fo,Ue.findLastKey=A8,Ue.floor=zm,Ue.forEach=Gd,Ue.forEachRight=Yd,Ue.forIn=M8,Ue.forInRight=C8,Ue.forOwn=w3,Ue.forOwnRight=wf,Ue.get=Ll,Ue.gt=d3,Ue.gte=B4,Ue.has=Pp,Ue.hasIn=k3,Ue.head=w5,Ue.identity=_0,Ue.includes=q6,Ue.indexOf=wp,Ue.inRange=V8,Ue.invoke=S8,Ue.isArguments=_f,Ue.isArray=Jr,Ue.isArrayBuffer=li,Ue.isArrayLike=fl,Ue.isArrayLikeObject=Yo,Ue.isBoolean=zo,Ue.isBuffer=Qs,Ue.isDate=b8,Ue.isElement=Q2,Ue.isEmpty=h3,Ue.isEqual=m3,Ue.isEqualWith=Nr,Ue.isError=Ep,Ue.isFinite=Tp,Ue.isFunction=Cs,Ue.isInteger=Qd,Ue.isLength=C5,Ue.isMap=es,Ue.isMatch=g3,Ue.isMatchWith=Dp,Ue.isNaN=v3,Ue.isNative=Hp,Ue.isNil=_3,Ue.isNull=Bp,Ue.isNumber=S5,Ue.isObject=Ao,Ue.isObjectLike=ga,Ue.isPlainObject=Lu,Ue.isRegExp=Ss,Ue.isSafeInteger=b3,Ue.isSet=eh,Ue.isString=L5,Ue.isSymbol=Eu,Ue.isTypedArray=h2,Ue.isUndefined=y3,Ue.isWeakMap=O4,Ue.isWeakSet=y8,Ue.join=E4,Ue.kebabCase=U8,Ue.last=g0,Ue.lastIndexOf=ci,Ue.lowerCase=q8,Ue.lowerFirst=W8,Ue.lt=Op,Ue.lte=$8,Ue.max=Am,Ue.maxBy=Mm,Ue.mean=Cm,Ue.meanBy=Sm,Ue.min=Lm,Ue.minBy=Em,Ue.stubArray=Zp,Ue.stubFalse=Qp,Ue.stubObject=vm,Ue.stubString=_m,Ue.stubTrue=x4,Ue.multiply=Tm,Ue.nth=_i,Ue.noConflict=fm,Ue.noop=Kp,Ue.now=A5,Ue.pad=G8,Ue.padEnd=Y8,Ue.padStart=K8,Ue.parseInt=X8,Ue.random=R8,Ue.reduce=X6,Ue.reduceRight=J6,Ue.repeat=J8,Ue.replace=z3,Ue.result=V4,Ue.round=Dm,Ue.runInContext=Se,Ue.sample=Q6,Ue.size=n8,Ue.snakeCase=R4,Ue.some=r8,Ue.sortedIndex=Bt,Ue.sortedIndexBy=xt,Ue.sortedIndexOf=en,Ue.sortedLastIndex=yn,Ue.sortedLastIndexBy=In,Ue.sortedLastIndexOf=gr,Ue.startCase=Z8,Ue.startsWith=Q8,Ue.subtract=Hm,Ue.sum=Bm,Ue.sumBy=Om,Ue.template=em,Ue.times=ed,Ue.toFinite=bi,Ue.toInteger=mr,Ue.toLength=nh,Ue.toLower=N4,Ue.toNumber=m2,Ue.toSafeInteger=w8,Ue.toString=w1,Ue.toUpper=jp,Ue.trim=tm,Ue.trimEnd=nm,Ue.trimStart=rm,Ue.truncate=Tu,Ue.unescape=tr,Ue.uniqueId=ym,Ue.upperCase=im,Ue.upperFirst=El,Ue.each=Gd,Ue.eachRight=Yd,Ue.first=w5,Yp(Ue,function(){var d={};return $o(Ue,function(v,M){lr.call(Ue.prototype,M)||(d[M]=v)}),d}(),{chain:!1}),Ue.VERSION=r,Ua(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){Ue[d].placeholder=Ue}),Ua(["drop","take"],function(d,v){ti.prototype[d]=function(M){M=M===t?1:y1(mr(M),0);var F=this.__filtered__&&!v?new ti(this):this.clone();return F.__filtered__?F.__takeCount__=Ai(M,F.__takeCount__):F.__views__.push({size:Ai(M,_e),type:d+(F.__dir__<0?"Right":"")}),F},ti.prototype[d+"Right"]=function(M){return this.reverse()[d](M).reverse()}}),Ua(["filter","map","takeWhile"],function(d,v){var M=v+1,F=M==G||M==re;ti.prototype[d]=function(Z){var se=this.clone();return se.__iteratees__.push({iteratee:kr(Z,3),type:M}),se.__filtered__=se.__filtered__||F,se}}),Ua(["head","last"],function(d,v){var M="take"+(v?"Right":"");ti.prototype[d]=function(){return this[M](1).value()[0]}}),Ua(["initial","tail"],function(d,v){var M="drop"+(v?"":"Right");ti.prototype[d]=function(){return this.__filtered__?new ti(this):this[M](1)}}),ti.prototype.compact=function(){return this.filter(_0)},ti.prototype.find=function(d){return this.filter(d).head()},ti.prototype.findLast=function(d){return this.reverse().find(d)},ti.prototype.invokeMap=Fr(function(d,v){return typeof d=="function"?new ti(this):this.map(function(M){return da(M,d,v)})}),ti.prototype.reject=function(d){return this.filter(M5(kr(d)))},ti.prototype.slice=function(d,v){d=mr(d);var M=this;return M.__filtered__&&(d>0||v<0)?new ti(M):(d<0?M=M.takeRight(-d):d&&(M=M.drop(d)),v!==t&&(v=mr(v),M=v<0?M.dropRight(-v):M.take(v-d)),M)},ti.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},ti.prototype.toArray=function(){return this.take(_e)},$o(ti.prototype,function(d,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),F=/^(?:head|last)$/.test(v),Z=Ue[F?"take"+(v=="last"?"Right":""):v],se=F||/^find/.test(v);!Z||(Ue.prototype[v]=function(){var me=this.__wrapped__,$e=F?[1]:arguments,He=me instanceof ti,ut=$e[0],rt=He||Jr(me),mt=function(Mn){var Ln=Z.apply(Ue,ui([Mn],$e));return F&&Ct?Ln[0]:Ln};rt&&M&&typeof ut=="function"&&ut.length!=1&&(He=rt=!1);var Ct=this.__chain__,Rt=!!this.__actions__.length,Gt=se&&!Ct,_n=He&&!Rt;if(!se&&rt){me=_n?me:new ti(this);var Kt=d.apply(me,$e);return Kt.__actions__.push({func:J2,args:[mt],thisArg:t}),new J1(Kt,Ct)}return Gt&&_n?d.apply(this,$e):(Kt=this.thru(mt),Gt?F?Kt.value()[0]:Kt.value():Kt)})}),Ua(["pop","push","shift","sort","splice","unshift"],function(d){var v=Us[d],M=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);Ue.prototype[d]=function(){var Z=arguments;if(F&&!this.__chain__){var se=this.value();return v.apply(Jr(se)?se:[],Z)}return this[M](function(me){return v.apply(Jr(me)?me:[],Z)})}}),$o(ti.prototype,function(d,v){var M=Ue[v];if(M){var F=M.name+"";lr.call(vi,F)||(vi[F]=[]),vi[F].push({name:v,func:M})}}),vi[Ql(t,A).name]=[{name:"wrapper",func:t}],ti.prototype.clone=Ac,ti.prototype.reverse=u3,ti.prototype.value=E0,Ue.prototype.at=k5,Ue.prototype.chain=K3,Ue.prototype.commit=X3,Ue.prototype.next=B6,Ue.prototype.plant=I6,Ue.prototype.reverse=P6,Ue.prototype.toJSON=Ue.prototype.valueOf=Ue.prototype.value=Z2,Ue.prototype.first=Ue.prototype.head,Z0&&(Ue.prototype[Z0]=O6),Ue},za=kc();j1?((j1.exports=za)._=za,Rs._=za):gi._=za}).call(y0)})(t6,t6.exports);function _4e(){const{subscribe:n,set:e}=hi({});async function t(m={}){const _=await on.searchUsers(m);return e({..._,...m}),_}async function r(m){try{return await on.getUser(m)}catch{return null}}const i=async()=>await on.getUsers();async function a(m){return on.inviteUsers(m)}async function o(m,_){return on.acceptInvite({inviteCode:m,password:_})}async function l(m){let _=m.users.map(w=>{const A={email:w.email,password:w.password,roles:{}};switch(w.forceResetPassword&&(A.forceResetPassword=w.forceResetPassword),w.role){case"appUser":A.builder={global:!1},A.admin={global:!1};break;case"developer":A.builder={global:!0};break;case"admin":A.admin={global:!0},A.builder={global:!0};break}return A});const y=await on.createUsers({users:_,groups:m.groups});return await t(),y}async function s(m){await on.deleteUser(m),t6.exports.update(_=>_.filter(y=>y._id!==m))}async function u({appId:m}){return await on.getUserCountByApp({appId:m})}async function c(m){return on.deleteUsers(m)}async function f(m){return await on.saveUser(m)}return{subscribe:n,search:t,get:r,getUserRole:({admin:m,builder:_})=>m!=null&&m.global?"admin":_!=null&&_.global?"developer":"appUser",fetch:i,invite:a,acceptInvite:o,create:l,save:f,bulkDelete:c,getUserCountByApp:u,delete:s}}const sa=_4e();function b4e(){const e=hi({loaded:!1,multiTenancy:!1,cloud:!1,isDev:!1,disableAccountPortal:!1,accountPortalUrl:"",importComplete:!1,onboardingProgress:0,checklist:{apps:{checked:!1},smtp:{checked:!1},adminUser:{checked:!1},sso:{checked:!1}}});async function t(){await l(),await i(),gn(e).cloud&&(await o(),a()),e.update(u=>(u.loaded=!0,u))}async function r(){const u=await on.checkImportComplete();e.update(c=>(c.importComplete=u?u.imported:!1,c))}async function i(){const u=await on.getEnvironment();e.update(c=>(c.multiTenancy=u.multiTenancy,c.cloud=u.cloud,c.disableAccountPortal=u.disableAccountPortal,c.accountPortalUrl=u.accountPortalUrl,c.isDev=u.isDev,c))}const a=async()=>{var c,f;const u=(f=(c=gn(e))==null?void 0:c.status)==null?void 0:f.health;u!=null&&u.passing||await _k.showStatus()};async function o(){const u=await on.getSystemStatus();e.update(c=>(c.status=u,c))}async function l(){const u=gn(sr).tenantId,c=await on.getChecklist(u),f=Object.keys(c).length,h=Object.values(c).filter(m=>m==null?void 0:m.checked).length;e.update(m=>(m.checklist=c,m.onboardingProgress=h/f*100,m))}function s(){e.update(u=>(u.loaded=!1,u))}return{subscribe:e.subscribe,init:t,checkImportComplete:r,unload:s,getChecklist:l}}const o1=b4e(),k4={USERS:"ta_users"},ap={ALL:"all",DEV:"development",DEPLOYED:"published"},y4e={POSTGRES:"PostgreSQL",MONGODB:"MongoDB",COUCHDB:"CouchDB",S3:"S3",MYSQL:"MySQL",REST:"REST",DYNAMODB:"DynamoDB",ELASTICSEARCH:"ElasticSearch",SQL_SERVER:"SQL Server",AIRTABLE:"Airtable",ARANGODB:"ArangoDB",ORACLE:"Oracle",GOOGLE_SHEETS:"Google Sheets"},iY=["email","password","roleId","status","firstName","lastName"],$4e=["formula","attachment","array","link"],K$="bb_internal",w4e=/^[\w\s]+$/,k4e=/^\S*$/,op={primaryColor:"var(--spectrum-global-color-blue-600)",primaryColorHover:"var(--spectrum-global-color-blue-500)",buttonBorderRadius:"16px",navBackground:"var(--spectrum-global-color-gray-50)",navTextColor:"var(--spectrum-global-color-gray-800)"},nT={FREE:"free",PRO:"pro",BUSINESS:"business",ENTERPRISE:"enterprise"},v2={URL:"URL",NPM:"NPM",GITHUB:"Github",FILE:"File Upload"},$9=n=>{const e=(n==null?void 0:n.split("_"))||[];return e.length?e[e.length-1]:null},z4e=n=>{if(!n||!n.startsWith("app_dev"))return n;const e=n.split("app_dev");return e.shift(),`app${e.join("app_dev")}`};function A4e(){const n=hi([]);async function e(){const r=await on.getApps();if(Array.isArray(r)){let i={},a=r.filter(s=>s.status===ap.DEV),o=r.filter(s=>s.status===ap.DEPLOYED);a.forEach(s=>{const u=$9(s.appId);i[u]={...s,devId:s.appId,devRev:s._rev}}),o.forEach(s=>{const u=$9(s.appId);!i[u]||(i[u]={...i[u],...s,prodId:s.appId,prodRev:s._rev})});const l=Object.values(i);l.forEach(s=>{s.appId=$9(s.devId),delete s._id,delete s._rev}),n.set(l)}else n.set([])}async function t(r,i){await on.saveAppMetadata({appId:r,metadata:i}),n.update(a=>{const o=a.findIndex(l=>l.instance._id===r);if(o!==-1){let l=a[o];l={...l,...i},a.apps=a.splice(o,1,l)}return a})}return{subscribe:n.subscribe,load:e,update:t,extractAppId:$9,getProdAppID:z4e}}const Ha=A4e();function M4e(){const n=hi({});return{subscribe:n.subscribe,templates:{fetch:async()=>{const e=await on.getEmailTemplateDefinitions(),t=await on.getEmailTemplates();n.set({definitions:e,templates:t})},save:async e=>{const t=await on.saveEmailTemplate(e);e._rev=t._rev,e._id=t._id,n.update(r=>{const i=r.templates.findIndex(a=>a.purpose===t.purpose);return r.templates.splice(i,1,e),r})}}}}const Ov=M4e(),t7={LICENSING:"LICENSING",USER_GROUPS:"USER_GROUPS"},Iv=n=>{var t;const e=gn(sr).user;return!!((t=e==null?void 0:e.featureFlags)!=null&&t.includes(n))};function C4e(){const n=hi({user:null,tenantId:"default",tenantSet:!1,loaded:!1,postLogout:!1,groupsEnabled:!1}),e=Il(n,s=>{var m,_;let u=null,c=!1,f=!1,h=!1;if(s.user){const y=s.user;y.firstName?(u=y.firstName[0],y.lastName&&(u+=y.lastName[0])):y.email?u=y.email[0]:u="Unknown",c=!!((m=y.admin)!=null&&m.global),f=!!((_=y.builder)!=null&&_.global),h=(y==null?void 0:y.license.features.includes(rG.USER_GROUPS))&&(y==null?void 0:y.featureFlags.includes(t7.USER_GROUPS))}return{user:s.user,tenantId:s.tenantId,tenantSet:s.tenantSet,loaded:s.loaded,postLogout:s.postLogout,initials:u,isAdmin:c,isBuilder:f,groupsEnabled:h}});function t(s){n.update(u=>(u.loaded=!0,u.user=s,s&&(u.tenantId=s.tenantId||"default",u.tenantSet=!0),u)),s&&Y5.activate().then(()=>{var u,c,f,h,m;Y5.identify(s._id),Y5.showChat({email:s.email,created_at:(s.createdAt||Date.now())/1e3,name:(u=s.account)==null?void 0:u.name,user_id:s._id,tenant:s.tenantId,admin:(c=s==null?void 0:s.admin)==null?void 0:c.global,builder:(f=s==null?void 0:s.builder)==null?void 0:f.global,"Company size":(h=s.account)==null?void 0:h.size,"Job role":(m=s.account)==null?void 0:m.profession},!!(s!=null&&s.account))}).catch(()=>{})}async function r(s){const u=gn(e).tenantId;n.update(c=>(c.tenantId=s,c.tenantSet=!!s,c)),u!==s&&await o1.init()}async function i(s){return await on.setInitInfo(s),n.update(u=>(u.initInfo=s,u)),s}function a(){n.update(s=>(s.postLogout=!0,s))}async function o(){const s=await on.getInitInfo();return n.update(u=>(u.initInfo=s,u)),s}const l={checkQueryString:async()=>{const s=new URLSearchParams(window.location.search);if(s.has("tenantId")){const u=s.get("tenantId");await r(u)}},setOrg:async s=>{await r(s)},getSelf:async()=>{try{const s=await on.fetchBuilderSelf();t(s)}catch{t(null)}},login:async s=>{const u=gn(e).tenantId;await on.logIn({username:s.username,password:s.password,tenantId:u}),await l.getSelf()},logout:async()=>{t(null),a(),await on.logOut(),await i({})},updateSelf:async s=>{const u={...gn(n).user,...s};await on.updateSelf(u),t(u)},forgotPassword:async s=>{const u=gn(e).tenantId;await on.requestForgotPassword({tenantId:u,email:s})},resetPassword:async(s,u)=>{const c=gn(e).tenantId;await on.resetPassword({tenantId:c,password:s,resetCode:u})},generateAPIKey:async()=>on.generateAPIKey(),fetchAPIKey:async()=>{const s=await on.fetchDeveloperInfo();return s==null?void 0:s.apiKey}};return{subscribe:e.subscribe,setOrganisation:r,getInitInfo:o,setInitInfo:i,...l}}const sr=C4e(),rT={logo:void 0,name:void 0,uuid:void 0};function S4e(){const n=hi(rT),{set:e,subscribe:t}=n;return{subscribe:t,set:e,init:async()=>{const r=gn(sr).tenantId,i=await on.getOIDCConfig(r);Object.keys(i||{}).length?e(...i):e(rT)}}}const X$=S4e();function L4e(){const{subscribe:n,set:e}=hi([]);return{subscribe:n,load:async()=>{const t=await on.getAppTemplates();e(t)}}}const n6=L4e(),p4={LICENSING_DAYPASS_WARNING_MODAL:"licensing_daypass_warning_90_modal",LICENSING_DAYPASS_WARNING_BANNER:"licensing_daypass_warning_90_banner",LICENSING_PAYMENT_FAILED:"licensing_payment_failed",LICENSING_ACCOUNT_DOWNGRADED_MODAL:"licensing_account_downgraded_modal",LICENSING_APP_LIMIT_MODAL:"licensing_app_limit_modal",LICENSING_ROWS_WARNING_BANNER:"licensing_rows_warning_banner",LICENSING_AUTOMATIONS_WARNING_BANNER:"licensing_automations_warning_banner",LICENSING_QUERIES_WARNING_BANNER:"licensing_queries_warning_banner"},E4e={PAST_DUE:"past_due",ACTIVE:"active"},T4e=()=>{const n={plans:{},usageMetrics:{}},e=864e5,t=hi(n),r={init:async()=>{await r.getQuotaUsage(),await r.getUsageMetrics()},getQuotaUsage:async()=>{const i=await on.getQuotaUsage();t.update(a=>({...a,quotaUsage:i}))},getUsageMetrics:async()=>{var i,a,o,l,s,u,c,f,h,m;if(Iv(t7.LICENSING)){const _=gn(t).quotaUsage,y=gn(sr).user.license,w=new Date,A=(ue,ne,G)=>!ne||!G||!ue?{}:ue.reduce((U,re)=>{const oe=ne[re].value,he=G[re]/oe*100;return U[re]=oe>-1?Math.round(he):-1,U},{}),E=A(["dayPasses","queries","automations"],y.quotas.usage.monthly,_.monthly.current),T=A(["apps","rows"],y.quotas.usage.static,_.usageQuota),P=(ue,ne)=>ne>ue?Math.round((ne.getTime()-ue.getTime())/e):0,I=new Date(_.quotaReset),V=P(w,I),x=((a=(i=y==null?void 0:y.billing)==null?void 0:i.subscription)==null?void 0:a.downgradeAt)&&((l=(o=y==null?void 0:y.billing)==null?void 0:o.subscription)==null?void 0:l.downgradeAt)<=w.getTime()&&((u=(s=y==null?void 0:y.billing)==null?void 0:s.subscription)==null?void 0:u.status)===E4e.PAST_DUE&&(y==null?void 0:y.plan.type)===bE.FREE,X=(f=(c=y==null?void 0:y.billing)==null?void 0:c.subscription)==null?void 0:f.pastDueAt,Y=(m=(h=y==null?void 0:y.billing)==null?void 0:h.subscription)==null?void 0:m.downgradeAt;let te,ee;X&&Y&&(ee=new Date(Y),te=P(new Date(X),ee)),t.update(ue=>({...ue,usageMetrics:{...E,...T},quotaResetDaysRemaining:V,quotaResetDate:I,accountDowngraded:x,accountPastDue:X!=null,pastDueEndDate:ee,pastDueDaysRemaining:te,isFreePlan:()=>(y==null?void 0:y.plan.type)===bE.FREE}))}}};return{subscribe:t.subscribe,...r}},Qo=T4e();function D4e(){const n=hi([]),e={init:async()=>{if(gn(sr).user.license.features.includes(rG.USER_GROUPS)){const t=await on.getGroups();n.set(t)}},save:async t=>{const r=await on.saveGroup(t);t._id=r._id,t._rev=r._rev,n.update(i=>{const a=i.findIndex(o=>o._id===r._id);return a>=0?i.splice(a,1,t):i.push(t),i})},delete:async t=>{await on.deleteGroup({id:t._id,rev:t._rev}),n.update(r=>(r=r.filter(i=>i._id!==t._id),r))}};return{subscribe:n.subscribe,actions:e}}const Ja=D4e();function H4e(){const{subscribe:n,set:e,update:t}=hi([]);async function r(){const l=await on.getPlugins();e(l)}async function i(l){await on.deletePlugin(l),t(s=>(s=s.filter(u=>u._id!==l),s))}async function a(l,s,u=null){let c={source:l,url:s};switch(l){case v2.URL:c.headers=u;break;case v2.GITHUB:c.githubToken=u;break}let h=(await on.createPlugin(c)).plugins[0];t(m=>{const _=m.findIndex(y=>y._id===h._id);return _>=0?m.splice(_,1,h):m.push(h),m})}async function o(l){if(!l)return;let s=new FormData;s.append("file",l);let c=(await on.uploadPlugin(s)).plugins[0];t(f=>{const h=f.findIndex(m=>m._id===c._id);return h>=0?f.splice(h,1,c):f.push(c),f})}return{subscribe:n,load:r,createPlugin:a,deletePlugin:i,uploadPlugin:o}}const n7=H4e(),on=tce({attachHeaders:n=>{n["x-budibase-app-id"]=gn(nn).appId;const e=gn(sr).user;e!=null&&e.csrfToken&&(n["x-csrf-token"]=e.csrfToken)},onError:n=>{const{url:e,message:t,status:r,method:i,handled:a}=n||{};if(!a){console.error("Unhandled error from API client",n);return}console.warn(`[Builder] HTTP ${r} on ${i}:${e}
|
|
451
|
+
}`;var _n=D5(function(){return Tt(se,Rt+"return "+mt).apply(t,me)});if(_n.source=mt,Ep(_n))throw _n;return _n}function N4(d){return w1(d).toLowerCase()}function jp(d){return w1(d).toUpperCase()}function tm(d,v,M){if(d=w1(d),d&&(M||v===t))return G0(d);if(!d||!(v=ma(v)))return d;var F=No(d),Z=No(v),se=s1(F,Z),me=Ro(F,Z)+1;return Jl(F,se,me).join("")}function nm(d,v,M){if(d=w1(d),d&&(M||v===t))return d.slice(0,jl(d)+1);if(!d||!(v=ma(v)))return d;var F=No(d),Z=Ro(F,No(v))+1;return Jl(F,0,Z).join("")}function rm(d,v,M){if(d=w1(d),d&&(M||v===t))return d.replace(Wi,"");if(!d||!(v=ma(v)))return d;var F=No(d),Z=s1(F,No(v));return Jl(F,Z).join("")}function Tu(d,v){var M=te,F=ee;if(Ao(v)){var Z="separator"in v?v.separator:Z;M="length"in v?mr(v.length):M,F="omission"in v?ma(v.omission):F}d=w1(d);var se=d.length;if(no(d)){var me=No(d);se=me.length}if(M>=se)return d;var $e=M-K0(F);if($e<1)return F;var He=me?Jl(me,0,$e).join(""):d.slice(0,$e);if(Z===t)return He+F;if(me&&($e+=He.length-$e),Ss(Z)){if(d.slice($e).search(Z)){var ut,rt=He;for(Z.global||(Z=_o(Z.source,w1(Ba.exec(Z))+"g")),Z.lastIndex=0;ut=Z.exec(rt);)var mt=ut.index;He=He.slice(0,mt===t?$e:mt)}}else if(d.indexOf(ma(Z),$e)!=$e){var Ct=He.lastIndexOf(Z);Ct>-1&&(He=He.slice(0,Ct))}return He+F}function tr(d){return d=w1(d),d&>.test(d)?d.replace(Br,xs):d}var im=Zs(function(d,v,M){return d+(M?" ":"")+v.toUpperCase()}),El=U2("toUpperCase");function lh(d,v,M){return d=w1(d),v=M?t:v,v===t?Pr(d)?K1(d):Gu(d):d.match(v)||[]}var D5=Fr(function(d,v){try{return Vo(d,t,v)}catch(M){return Ep(M)?M:new Yt(M)}}),F4=ks(function(d,v){return Ua(v,function(M){M=xr(M),B1(d,M,oa(d[M],d))}),d});function Up(d){var v=d==null?0:d.length,M=kr();return d=v?Cn(d,function(F){if(typeof F[1]!="function")throw new M1(o);return[M(F[0]),F[1]]}):[],Fr(function(F){for(var Z=-1;++Z<v;){var se=d[Z];if(Vo(se[0],this,F))return Vo(se[1],this,F)}})}function nc(d){return r2(p1(d,f))}function qp(d){return function(){return d}}function am(d,v){return d==null||d!==d?v:d}var om=Oc(),Wp=Oc(!0);function _0(d){return d}function Gp(d){return d1(typeof d=="function"?d:p1(d,f))}function lm(d){return Sc(p1(d,f))}function sm(d,v){return O0(d,p1(v,f))}var um=Fr(function(d,v){return function(M){return da(M,d,v)}}),cm=Fr(function(d,v){return function(M){return da(d,M,v)}});function Yp(d,v,M){var F=pl(v),Z=Kl(v,F);M==null&&!(Ao(v)&&(Z.length||!F.length))&&(M=v,v=d,d=this,Z=Kl(v,pl(v)));var se=!(Ao(M)&&"chain"in M)||!!M.chain,me=Cs(d);return Ua(Z,function($e){var He=v[$e];d[$e]=He,me&&(d.prototype[$e]=function(){var ut=this.__chain__;if(se||ut){var rt=d(this.__wrapped__),mt=rt.__actions__=Q1(this.__actions__);return mt.push({func:He,args:arguments,thisArg:d}),rt.__chain__=ut,rt}return He.apply(d,ui([this.value()],arguments))})}),d}function fm(){return gi._===this&&(gi._=Pa),this}function Kp(){}function Xp(d){return d=mr(d),Fr(function(v){return Xi(v,d)})}var pm=$s(Cn),dm=$s(mn),Jp=$s(go);function H5(d){return ce(d)?yc(xr(d)):c3(d)}function hm(d){return function(v){return d==null?t:Cl(d,v)}}var mm=Ic(),gm=Ic(!0);function Zp(){return[]}function Qp(){return!1}function vm(){return{}}function _m(){return""}function x4(){return!0}function ed(d,v){if(d=mr(d),d<1||d>he)return[];var M=_e,F=Ai(d,_e);v=kr(v),d-=_e;for(var Z=W0(F,v);++M<d;)v(M);return Z}function bm(d){return Jr(d)?Cn(d,xr):Eu(d)?[d]:Q1(zi(w1(d)))}function ym(d){var v=++fa;return w1(d)+v}var $m=Ea(function(d,v){return d+v},0),wm=Mu("ceil"),km=Ea(function(d,v){return d/v},1),zm=Mu("floor");function Am(d){return d&&d.length?Yi(d,_0,Ki):t}function Mm(d,v){return d&&d.length?Yi(d,kr(v,2),Ki):t}function Cm(d){return bc(d,_0)}function Sm(d,v){return bc(d,kr(v,2))}function Lm(d){return d&&d.length?Yi(d,_0,P1):t}function Em(d,v){return d&&d.length?Yi(d,kr(v,2),P1):t}var Tm=Ea(function(d,v){return d*v},1),Dm=Mu("round"),Hm=Ea(function(d,v){return d-v},0);function Bm(d){return d&&d.length?n0(d,_0):0}function Om(d,v){return d&&d.length?n0(d,kr(v,2)):0}return Ue.after=i8,Ue.ary=J3,Ue.assign=bf,Ue.assignIn=t4,Ue.assignInWith=eu,Ue.assignWith=yf,Ue.at=$f,Ue.before=Kd,Ue.bind=oa,Ue.bindAll=F4,Ue.bindKey=Z3,Ue.castArray=d8,Ue.chain=G3,Ue.chunk=ul,Ue.compact=To,Ue.concat=xi,Ue.cond=Up,Ue.conforms=nc,Ue.constant=qp,Ue.countBy=V6,Ue.create=$3,Ue.curry=Xd,Ue.curryRight=Jd,Ue.debounce=Q3,Ue.defaults=ec,Ue.defaultsDeep=k8,Ue.defer=a8,Ue.delay=T4,Ue.difference=Ya,Ue.differenceBy=Ci,Ue.differenceWith=Y2,Ue.drop=ko,Ue.dropRight=R0,Ue.dropRightWhile=N0,Ue.dropWhile=ji,Ue.fill=cl,Ue.filter=N6,Ue.flatMap=Cp,Ue.flatMapDeep=x6,Ue.flatMapDepth=j6,Ue.flatten=ea,Ue.flattenDeep=Si,Ue.flattenDepth=yp,Ue.flip=o8,Ue.flow=om,Ue.flowRight=Wp,Ue.fromPairs=$p,Ue.functions=Ip,Ue.functionsIn=tc,Ue.groupBy=U6,Ue.initial=kp,Ue.intersection=p3,Ue.intersectionBy=zp,Ue.intersectionWith=F0,Ue.invert=Vp,Ue.invertBy=Rp,Ue.invokeMap=W6,Ue.iteratee=Gp,Ue.keyBy=G6,Ue.keys=pl,Ue.keysIn=ts,Ue.map=z5,Ue.mapKeys=L8,Ue.mapValues=I4,Ue.matches=lm,Ue.matchesProperty=sm,Ue.memoize=e4,Ue.merge=P4,Ue.mergeWith=T5,Ue.method=um,Ue.methodOf=cm,Ue.mixin=Yp,Ue.negate=M5,Ue.nthArg=Xp,Ue.omit=q1,Ue.omitBy=E8,Ue.once=D4,Ue.orderBy=Y6,Ue.over=pm,Ue.overArgs=H4,Ue.overEvery=dm,Ue.overSome=Jp,Ue.partial=Lp,Ue.partialRight=Zd,Ue.partition=K6,Ue.pick=Np,Ue.pickBy=xc,Ue.property=H5,Ue.propertyOf=hm,Ue.pull=Ap,Ue.pullAll=N,Ue.pullAllBy=K,Ue.pullAllWith=fe,Ue.pullAt=Le,Ue.range=mm,Ue.rangeRight=gm,Ue.rearg=l8,Ue.reject=Z6,Ue.remove=qe,Ue.rest=s8,Ue.reverse=pt,Ue.sampleSize=e8,Ue.set=Fp,Ue.setWith=T8,Ue.shuffle=t8,Ue.slice=zt,Ue.sortBy=Sp,Ue.sortedUniq=cr,Ue.sortedUniqBy=or,Ue.split=xp,Ue.spread=u8,Ue.tail=Pt,Ue.take=er,Ue.takeRight=vr,Ue.takeRightWhile=Mr,Ue.takeWhile=Ur,Ue.tap=Y3,Ue.throttle=c8,Ue.thru=J2,Ue.toArray=th,Ue.toPairs=rh,Ue.toPairsIn=ih,Ue.toPath=bm,Ue.toPlainObject=E5,Ue.transform=D8,Ue.unary=f8,Ue.union=Rn,Ue.unionBy=Ka,Ue.unionWith=ri,Ue.uniq=di,Ue.uniqBy=gf,Ue.uniqWith=d2,Ue.unset=H8,Ue.unzip=Nc,Ue.unzipWith=v0,Ue.update=B8,Ue.updateWith=O8,Ue.values=n4,Ue.valuesIn=I8,Ue.without=K2,Ue.words=lh,Ue.wrap=p8,Ue.xor=Fc,Ue.xorBy=X2,Ue.xorWith=vf,Ue.zip=Ms,Ue.zipObject=Qi,Ue.zipObjectDeep=ta,Ue.zipWith=W3,Ue.entries=rh,Ue.entriesIn=ih,Ue.extend=t4,Ue.extendWith=eu,Yp(Ue,Ue),Ue.add=$m,Ue.attempt=D5,Ue.camelCase=N8,Ue.capitalize=ah,Ue.ceil=wm,Ue.clamp=P8,Ue.clone=h8,Ue.cloneDeep=g8,Ue.cloneDeepWith=v8,Ue.cloneWith=m8,Ue.conformsTo=_8,Ue.deburr=oh,Ue.defaultTo=am,Ue.divide=km,Ue.endsWith=F8,Ue.eq=fi,Ue.escape=x8,Ue.escapeRegExp=j8,Ue.every=R6,Ue.find=F6,Ue.findIndex=p2,Ue.findKey=z8,Ue.findLast=Mp,Ue.findLastIndex=fo,Ue.findLastKey=A8,Ue.floor=zm,Ue.forEach=Gd,Ue.forEachRight=Yd,Ue.forIn=M8,Ue.forInRight=C8,Ue.forOwn=w3,Ue.forOwnRight=wf,Ue.get=Ll,Ue.gt=d3,Ue.gte=B4,Ue.has=Pp,Ue.hasIn=k3,Ue.head=w5,Ue.identity=_0,Ue.includes=q6,Ue.indexOf=wp,Ue.inRange=V8,Ue.invoke=S8,Ue.isArguments=_f,Ue.isArray=Jr,Ue.isArrayBuffer=li,Ue.isArrayLike=fl,Ue.isArrayLikeObject=Yo,Ue.isBoolean=zo,Ue.isBuffer=Qs,Ue.isDate=b8,Ue.isElement=Q2,Ue.isEmpty=h3,Ue.isEqual=m3,Ue.isEqualWith=Nr,Ue.isError=Ep,Ue.isFinite=Tp,Ue.isFunction=Cs,Ue.isInteger=Qd,Ue.isLength=C5,Ue.isMap=es,Ue.isMatch=g3,Ue.isMatchWith=Dp,Ue.isNaN=v3,Ue.isNative=Hp,Ue.isNil=_3,Ue.isNull=Bp,Ue.isNumber=S5,Ue.isObject=Ao,Ue.isObjectLike=ga,Ue.isPlainObject=Lu,Ue.isRegExp=Ss,Ue.isSafeInteger=b3,Ue.isSet=eh,Ue.isString=L5,Ue.isSymbol=Eu,Ue.isTypedArray=h2,Ue.isUndefined=y3,Ue.isWeakMap=O4,Ue.isWeakSet=y8,Ue.join=E4,Ue.kebabCase=U8,Ue.last=g0,Ue.lastIndexOf=ci,Ue.lowerCase=q8,Ue.lowerFirst=W8,Ue.lt=Op,Ue.lte=$8,Ue.max=Am,Ue.maxBy=Mm,Ue.mean=Cm,Ue.meanBy=Sm,Ue.min=Lm,Ue.minBy=Em,Ue.stubArray=Zp,Ue.stubFalse=Qp,Ue.stubObject=vm,Ue.stubString=_m,Ue.stubTrue=x4,Ue.multiply=Tm,Ue.nth=_i,Ue.noConflict=fm,Ue.noop=Kp,Ue.now=A5,Ue.pad=G8,Ue.padEnd=Y8,Ue.padStart=K8,Ue.parseInt=X8,Ue.random=R8,Ue.reduce=X6,Ue.reduceRight=J6,Ue.repeat=J8,Ue.replace=z3,Ue.result=V4,Ue.round=Dm,Ue.runInContext=Se,Ue.sample=Q6,Ue.size=n8,Ue.snakeCase=R4,Ue.some=r8,Ue.sortedIndex=Bt,Ue.sortedIndexBy=xt,Ue.sortedIndexOf=en,Ue.sortedLastIndex=yn,Ue.sortedLastIndexBy=In,Ue.sortedLastIndexOf=gr,Ue.startCase=Z8,Ue.startsWith=Q8,Ue.subtract=Hm,Ue.sum=Bm,Ue.sumBy=Om,Ue.template=em,Ue.times=ed,Ue.toFinite=bi,Ue.toInteger=mr,Ue.toLength=nh,Ue.toLower=N4,Ue.toNumber=m2,Ue.toSafeInteger=w8,Ue.toString=w1,Ue.toUpper=jp,Ue.trim=tm,Ue.trimEnd=nm,Ue.trimStart=rm,Ue.truncate=Tu,Ue.unescape=tr,Ue.uniqueId=ym,Ue.upperCase=im,Ue.upperFirst=El,Ue.each=Gd,Ue.eachRight=Yd,Ue.first=w5,Yp(Ue,function(){var d={};return $o(Ue,function(v,M){lr.call(Ue.prototype,M)||(d[M]=v)}),d}(),{chain:!1}),Ue.VERSION=r,Ua(["bind","bindKey","curry","curryRight","partial","partialRight"],function(d){Ue[d].placeholder=Ue}),Ua(["drop","take"],function(d,v){ti.prototype[d]=function(M){M=M===t?1:y1(mr(M),0);var F=this.__filtered__&&!v?new ti(this):this.clone();return F.__filtered__?F.__takeCount__=Ai(M,F.__takeCount__):F.__views__.push({size:Ai(M,_e),type:d+(F.__dir__<0?"Right":"")}),F},ti.prototype[d+"Right"]=function(M){return this.reverse()[d](M).reverse()}}),Ua(["filter","map","takeWhile"],function(d,v){var M=v+1,F=M==G||M==re;ti.prototype[d]=function(Z){var se=this.clone();return se.__iteratees__.push({iteratee:kr(Z,3),type:M}),se.__filtered__=se.__filtered__||F,se}}),Ua(["head","last"],function(d,v){var M="take"+(v?"Right":"");ti.prototype[d]=function(){return this[M](1).value()[0]}}),Ua(["initial","tail"],function(d,v){var M="drop"+(v?"":"Right");ti.prototype[d]=function(){return this.__filtered__?new ti(this):this[M](1)}}),ti.prototype.compact=function(){return this.filter(_0)},ti.prototype.find=function(d){return this.filter(d).head()},ti.prototype.findLast=function(d){return this.reverse().find(d)},ti.prototype.invokeMap=Fr(function(d,v){return typeof d=="function"?new ti(this):this.map(function(M){return da(M,d,v)})}),ti.prototype.reject=function(d){return this.filter(M5(kr(d)))},ti.prototype.slice=function(d,v){d=mr(d);var M=this;return M.__filtered__&&(d>0||v<0)?new ti(M):(d<0?M=M.takeRight(-d):d&&(M=M.drop(d)),v!==t&&(v=mr(v),M=v<0?M.dropRight(-v):M.take(v-d)),M)},ti.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},ti.prototype.toArray=function(){return this.take(_e)},$o(ti.prototype,function(d,v){var M=/^(?:filter|find|map|reject)|While$/.test(v),F=/^(?:head|last)$/.test(v),Z=Ue[F?"take"+(v=="last"?"Right":""):v],se=F||/^find/.test(v);!Z||(Ue.prototype[v]=function(){var me=this.__wrapped__,$e=F?[1]:arguments,He=me instanceof ti,ut=$e[0],rt=He||Jr(me),mt=function(Mn){var Ln=Z.apply(Ue,ui([Mn],$e));return F&&Ct?Ln[0]:Ln};rt&&M&&typeof ut=="function"&&ut.length!=1&&(He=rt=!1);var Ct=this.__chain__,Rt=!!this.__actions__.length,Gt=se&&!Ct,_n=He&&!Rt;if(!se&&rt){me=_n?me:new ti(this);var Kt=d.apply(me,$e);return Kt.__actions__.push({func:J2,args:[mt],thisArg:t}),new J1(Kt,Ct)}return Gt&&_n?d.apply(this,$e):(Kt=this.thru(mt),Gt?F?Kt.value()[0]:Kt.value():Kt)})}),Ua(["pop","push","shift","sort","splice","unshift"],function(d){var v=Us[d],M=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",F=/^(?:pop|shift)$/.test(d);Ue.prototype[d]=function(){var Z=arguments;if(F&&!this.__chain__){var se=this.value();return v.apply(Jr(se)?se:[],Z)}return this[M](function(me){return v.apply(Jr(me)?me:[],Z)})}}),$o(ti.prototype,function(d,v){var M=Ue[v];if(M){var F=M.name+"";lr.call(vi,F)||(vi[F]=[]),vi[F].push({name:v,func:M})}}),vi[Ql(t,A).name]=[{name:"wrapper",func:t}],ti.prototype.clone=Ac,ti.prototype.reverse=u3,ti.prototype.value=E0,Ue.prototype.at=k5,Ue.prototype.chain=K3,Ue.prototype.commit=X3,Ue.prototype.next=B6,Ue.prototype.plant=I6,Ue.prototype.reverse=P6,Ue.prototype.toJSON=Ue.prototype.valueOf=Ue.prototype.value=Z2,Ue.prototype.first=Ue.prototype.head,Z0&&(Ue.prototype[Z0]=O6),Ue},za=kc();j1?((j1.exports=za)._=za,Rs._=za):gi._=za}).call(y0)})(t6,t6.exports);function _4e(){const{subscribe:n,set:e}=hi({});async function t(m={}){const _=await on.searchUsers(m);return e({..._,...m}),_}async function r(m){try{return await on.getUser(m)}catch{return null}}const i=async()=>await on.getUsers();async function a(m){return on.inviteUsers(m)}async function o(m,_){return on.acceptInvite({inviteCode:m,password:_})}async function l(m){let _=m.users.map(w=>{const A={email:w.email,password:w.password,roles:{}};switch(w.forceResetPassword&&(A.forceResetPassword=w.forceResetPassword),w.role){case"appUser":A.builder={global:!1},A.admin={global:!1};break;case"developer":A.builder={global:!0};break;case"admin":A.admin={global:!0},A.builder={global:!0};break}return A});const y=await on.createUsers({users:_,groups:m.groups});return await t(),y}async function s(m){await on.deleteUser(m),t6.exports.update(_=>_.filter(y=>y._id!==m))}async function u({appId:m}){return await on.getUserCountByApp({appId:m})}async function c(m){return on.deleteUsers(m)}async function f(m){return await on.saveUser(m)}return{subscribe:n,search:t,get:r,getUserRole:({admin:m,builder:_})=>m!=null&&m.global?"admin":_!=null&&_.global?"developer":"appUser",fetch:i,invite:a,acceptInvite:o,create:l,save:f,bulkDelete:c,getUserCountByApp:u,delete:s}}const sa=_4e();function b4e(){const e=hi({loaded:!1,multiTenancy:!1,cloud:!1,isDev:!1,disableAccountPortal:!1,accountPortalUrl:"",importComplete:!1,onboardingProgress:0,checklist:{apps:{checked:!1},smtp:{checked:!1},adminUser:{checked:!1},sso:{checked:!1}}});async function t(){await l(),await i(),gn(e).cloud&&(await o(),a()),e.update(u=>(u.loaded=!0,u))}async function r(){const u=await on.checkImportComplete();e.update(c=>(c.importComplete=u?u.imported:!1,c))}async function i(){const u=await on.getEnvironment();e.update(c=>(c.multiTenancy=u.multiTenancy,c.cloud=u.cloud,c.disableAccountPortal=u.disableAccountPortal,c.accountPortalUrl=u.accountPortalUrl,c.isDev=u.isDev,c))}const a=async()=>{var c,f;const u=(f=(c=gn(e))==null?void 0:c.status)==null?void 0:f.health;u!=null&&u.passing||await _k.showStatus()};async function o(){const u=await on.getSystemStatus();e.update(c=>(c.status=u,c))}async function l(){const u=gn(sr).tenantId,c=await on.getChecklist(u),f=Object.keys(c).length,h=Object.values(c).filter(m=>m==null?void 0:m.checked).length;e.update(m=>(m.checklist=c,m.onboardingProgress=h/f*100,m))}function s(){e.update(u=>(u.loaded=!1,u))}return{subscribe:e.subscribe,init:t,checkImportComplete:r,unload:s,getChecklist:l}}const o1=b4e(),k4={USERS:"ta_users"},ap={ALL:"all",DEV:"development",DEPLOYED:"published"},y4e={POSTGRES:"PostgreSQL",MONGODB:"MongoDB",COUCHDB:"CouchDB",S3:"S3",MYSQL:"MySQL",REST:"REST",DYNAMODB:"DynamoDB",ELASTICSEARCH:"ElasticSearch",SQL_SERVER:"SQL Server",AIRTABLE:"Airtable",ARANGODB:"ArangoDB",ORACLE:"Oracle",GOOGLE_SHEETS:"Google Sheets"},iY=["email","password","roleId","status","firstName","lastName"],$4e=["formula","attachment","array","link"],K$="bb_internal",w4e=/^[\w\s]+$/,k4e=/^\S*$/,op={primaryColor:"var(--spectrum-global-color-blue-600)",primaryColorHover:"var(--spectrum-global-color-blue-500)",buttonBorderRadius:"16px",navBackground:"var(--spectrum-global-color-gray-50)",navTextColor:"var(--spectrum-global-color-gray-800)"},nT={FREE:"free",PRO:"pro",BUSINESS:"business",ENTERPRISE:"enterprise"},v2={URL:"URL",NPM:"NPM",GITHUB:"Github",FILE:"File Upload"},$9=n=>{const e=(n==null?void 0:n.split("_"))||[];return e.length?e[e.length-1]:null},z4e=n=>{if(!n||!n.startsWith("app_dev"))return n;const e=n.split("app_dev");return e.shift(),`app${e.join("app_dev")}`};function A4e(){const n=hi([]);async function e(){const r=await on.getApps();if(Array.isArray(r)){let i={},a=r.filter(s=>s.status===ap.DEV),o=r.filter(s=>s.status===ap.DEPLOYED);a.forEach(s=>{const u=$9(s.appId);i[u]={...s,devId:s.appId,devRev:s._rev}}),o.forEach(s=>{const u=$9(s.appId);!i[u]||(i[u]={...i[u],...s,prodId:s.appId,prodRev:s._rev})});const l=Object.values(i);l.forEach(s=>{s.appId=$9(s.devId),delete s._id,delete s._rev}),n.set(l)}else n.set([])}async function t(r,i){await on.saveAppMetadata({appId:r,metadata:i}),n.update(a=>{const o=a.findIndex(l=>l.instance._id===r);if(o!==-1){let l=a[o];l={...l,...i},a.apps=a.splice(o,1,l)}return a})}return{subscribe:n.subscribe,load:e,update:t,extractAppId:$9,getProdAppID:z4e}}const Ha=A4e();function M4e(){const n=hi({});return{subscribe:n.subscribe,templates:{fetch:async()=>{const e=await on.getEmailTemplateDefinitions(),t=await on.getEmailTemplates();n.set({definitions:e,templates:t})},save:async e=>{const t=await on.saveEmailTemplate(e);e._rev=t._rev,e._id=t._id,n.update(r=>{const i=r.templates.findIndex(a=>a.purpose===t.purpose);return r.templates.splice(i,1,e),r})}}}}const Ov=M4e(),t7={LICENSING:"LICENSING",USER_GROUPS:"USER_GROUPS"},Iv=n=>{var t;const e=gn(sr).user;return!!((t=e==null?void 0:e.featureFlags)!=null&&t.includes(n))};function C4e(){const n=hi({user:null,tenantId:"default",tenantSet:!1,loaded:!1,postLogout:!1,groupsEnabled:!1}),e=Il(n,s=>{var m,_;let u=null,c=!1,f=!1,h=!1;if(s.user){const y=s.user;y.firstName?(u=y.firstName[0],y.lastName&&(u+=y.lastName[0])):y.email?u=y.email[0]:u="Unknown",c=!!((m=y.admin)!=null&&m.global),f=!!((_=y.builder)!=null&&_.global),h=(y==null?void 0:y.license.features.includes(rG.USER_GROUPS))&&(y==null?void 0:y.featureFlags.includes(t7.USER_GROUPS))}return{user:s.user,tenantId:s.tenantId,tenantSet:s.tenantSet,loaded:s.loaded,postLogout:s.postLogout,initials:u,isAdmin:c,isBuilder:f,groupsEnabled:h}});function t(s){n.update(u=>(u.loaded=!0,u.user=s,s&&(u.tenantId=s.tenantId||"default",u.tenantSet=!0),u)),s&&Y5.activate().then(()=>{var u,c,f,h,m;Y5.identify(s._id),Y5.showChat({email:s.email,created_at:(s.createdAt||Date.now())/1e3,name:(u=s.account)==null?void 0:u.name,user_id:s._id,tenant:s.tenantId,admin:(c=s==null?void 0:s.admin)==null?void 0:c.global,builder:(f=s==null?void 0:s.builder)==null?void 0:f.global,"Company size":(h=s.account)==null?void 0:h.size,"Job role":(m=s.account)==null?void 0:m.profession},!!(s!=null&&s.account))}).catch(()=>{})}async function r(s){const u=gn(e).tenantId;n.update(c=>(c.tenantId=s,c.tenantSet=!!s,c)),u!==s&&await o1.init()}async function i(s){return await on.setInitInfo(s),n.update(u=>(u.initInfo=s,u)),s}function a(){n.update(s=>(s.postLogout=!0,s))}async function o(){const s=await on.getInitInfo();return n.update(u=>(u.initInfo=s,u)),s}const l={checkQueryString:async()=>{const s=new URLSearchParams(window.location.search);if(s.has("tenantId")){const u=s.get("tenantId");await r(u)}},setOrg:async s=>{await r(s)},getSelf:async()=>{try{const s=await on.fetchBuilderSelf();t(s)}catch{t(null)}},login:async s=>{const u=gn(e).tenantId;await on.logIn({username:s.username,password:s.password,tenantId:u}),await l.getSelf()},logout:async()=>{t(null),a(),await on.logOut(),await i({})},updateSelf:async s=>{const u={...gn(n).user,...s};await on.updateSelf(u),t(u)},forgotPassword:async s=>{const u=gn(e).tenantId;await on.requestForgotPassword({tenantId:u,email:s})},resetPassword:async(s,u)=>{const c=gn(e).tenantId;await on.resetPassword({tenantId:c,password:s,resetCode:u})},generateAPIKey:async()=>on.generateAPIKey(),fetchAPIKey:async()=>{const s=await on.fetchDeveloperInfo();return s==null?void 0:s.apiKey}};return{subscribe:e.subscribe,setOrganisation:r,getInitInfo:o,setInitInfo:i,...l}}const sr=C4e(),rT={logo:void 0,name:void 0,uuid:void 0};function S4e(){const n=hi(rT),{set:e,subscribe:t}=n;return{subscribe:t,set:e,init:async()=>{const r=gn(sr).tenantId,i=await on.getOIDCConfig(r);Object.keys(i||{}).length?e(...i):e(rT)}}}const X$=S4e();function L4e(){const{subscribe:n,set:e}=hi([]);return{subscribe:n,load:async()=>{const t=await on.getAppTemplates();e(t)}}}const n6=L4e(),p4={LICENSING_DAYPASS_WARNING_MODAL:"licensing_daypass_warning_90_modal",LICENSING_DAYPASS_WARNING_BANNER:"licensing_daypass_warning_90_banner",LICENSING_PAYMENT_FAILED:"licensing_payment_failed",LICENSING_ACCOUNT_DOWNGRADED_MODAL:"licensing_account_downgraded_modal",LICENSING_APP_LIMIT_MODAL:"licensing_app_limit_modal",LICENSING_ROWS_WARNING_BANNER:"licensing_rows_warning_banner",LICENSING_AUTOMATIONS_WARNING_BANNER:"licensing_automations_warning_banner",LICENSING_QUERIES_WARNING_BANNER:"licensing_queries_warning_banner"},E4e={PAST_DUE:"past_due",ACTIVE:"active"},T4e=()=>{const n={plans:{},usageMetrics:{}},e=864e5,t=hi(n),r={init:async()=>{await r.getQuotaUsage(),await r.getUsageMetrics()},getQuotaUsage:async()=>{const i=await on.getQuotaUsage();t.update(a=>({...a,quotaUsage:i}))},getUsageMetrics:async()=>{var i,a,o,l,s,u,c,f,h,m;if(Iv(t7.LICENSING)){const _=gn(t).quotaUsage,y=gn(sr).user.license,w=new Date,A=(ue,ne,G)=>!ne||!G||!ue?{}:ue.reduce((U,re)=>{const oe=ne[re].value,he=G[re]/oe*100;return U[re]=oe>-1?Math.round(he):-1,U},{}),E=A(["dayPasses","queries","automations"],y.quotas.usage.monthly,_.monthly.current),T=A(["apps","rows"],y.quotas.usage.static,_.usageQuota),P=(ue,ne)=>ne>ue?Math.round((ne.getTime()-ue.getTime())/e):0,I=new Date(_.quotaReset),V=P(w,I),x=((a=(i=y==null?void 0:y.billing)==null?void 0:i.subscription)==null?void 0:a.downgradeAt)&&((l=(o=y==null?void 0:y.billing)==null?void 0:o.subscription)==null?void 0:l.downgradeAt)<=w.getTime()&&((u=(s=y==null?void 0:y.billing)==null?void 0:s.subscription)==null?void 0:u.status)===E4e.PAST_DUE&&(y==null?void 0:y.plan.type)===bE.FREE,X=(f=(c=y==null?void 0:y.billing)==null?void 0:c.subscription)==null?void 0:f.pastDueAt,Y=(m=(h=y==null?void 0:y.billing)==null?void 0:h.subscription)==null?void 0:m.downgradeAt;let te,ee;X&&Y&&(ee=new Date(Y),te=P(new Date(X),ee)),t.update(ue=>({...ue,usageMetrics:{...E,...T},quotaResetDaysRemaining:V,quotaResetDate:I,accountDowngraded:x,accountPastDue:X!=null,pastDueEndDate:ee,pastDueDaysRemaining:te,isFreePlan:()=>(y==null?void 0:y.plan.type)===bE.FREE}))}}};return{subscribe:t.subscribe,...r}},Qo=T4e();function D4e(){const n=hi([]),e={init:async()=>{if(gn(sr).user.license.features.includes(rG.USER_GROUPS)){const t=await on.getGroups();n.set(t)}},save:async t=>{const r=await on.saveGroup(t);t._id=r._id,t._rev=r._rev,n.update(i=>{const a=i.findIndex(o=>o._id===r._id);return a>=0?i.splice(a,1,t):i.push(t),i})},delete:async t=>{await on.deleteGroup({id:t._id,rev:t._rev}),n.update(r=>(r=r.filter(i=>i._id!==t._id),r))}};return{subscribe:n.subscribe,actions:e}}const Ja=D4e();function H4e(){const{subscribe:n,set:e,update:t}=hi([]);async function r(){const l=await on.getPlugins();e(l)}async function i(l){await on.deletePlugin(l),t(s=>(s=s.filter(u=>u._id!==l),s))}async function a(l,s,u=null){let c={source:l,url:s};switch(l){case v2.URL:c.headers=u;break;case v2.GITHUB:c.githubToken=u;break}let h=(await on.createPlugin(c)).plugin;t(m=>{const _=m.findIndex(y=>y._id===h._id);return _>=0?m.splice(_,1,h):m.push(h),m})}async function o(l){if(!l)return;let s=new FormData;s.append("file",l);let c=(await on.uploadPlugin(s)).plugins[0];t(f=>{const h=f.findIndex(m=>m._id===c._id);return h>=0?f.splice(h,1,c):f.push(c),f})}return{subscribe:n,load:r,createPlugin:a,deletePlugin:i,uploadPlugin:o}}const n7=H4e(),on=tce({attachHeaders:n=>{n["x-budibase-app-id"]=gn(nn).appId;const e=gn(sr).user;e!=null&&e.csrfToken&&(n["x-csrf-token"]=e.csrfToken)},onError:n=>{const{url:e,message:t,status:r,method:i,handled:a}=n||{};if(!a){console.error("Unhandled error from API client",n);return}console.warn(`[Builder] HTTP ${r} on ${i}:${e}
|
|
452
452
|
${t}`),r===403&&(zk(og.Auth),!e.includes("self")&&!e.includes("login")&&location.reload())}});function aY(n){return n&&!!n.match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/)||"Please enter a valid email"}function iT(n){return n!=null&&n!==""||"This field is required"}function aT(n,...e){let t=!1;const r=hi(n||""),i=Il(r,o=>B4e(o,e)),a=Il(r,()=>t||(t=!0,!1));return[r,i,a]}function B4e(n,e){const t=e.find(r=>r(n)!==!0);return t&&t(n)}function O4e(n){let e,t,r,i,a,o;function l(f){n[12](f)}let s={label:"Password",type:"password",error:n[3]&&n[4]};n[1]!==void 0&&(s.value=n[1]),e=new En({props:s}),Be.push(()=>it(e,"value",l));function u(f){n[13](f)}let c={label:"Repeat Password",type:"password",error:n[2]&&n[1]!==n[0]&&"Passwords must match"};return n[0]!==void 0&&(c.value=n[0]),i=new En({props:c}),Be.push(()=>it(i,"value",u)),{c(){O(e.$$.fragment),r=q(),O(i.$$.fragment)},m(f,h){H(e,f,h),S(f,r,h),H(i,f,h),o=!0},p(f,h){const m={};h&24&&(m.error=f[3]&&f[4]),!t&&h&2&&(t=!0,m.value=f[1],ot(()=>t=!1)),e.$set(m);const _={};h&7&&(_.error=f[2]&&f[1]!==f[0]&&"Passwords must match"),!a&&h&1&&(a=!0,_.value=f[0],ot(()=>a=!1)),i.$set(_)},i(f){o||(b(e.$$.fragment,f),b(i.$$.fragment,f),o=!0)},o(f){$(e.$$.fragment,f),$(i.$$.fragment,f),o=!1},d(f){B(e,f),f&&C(r),B(i,f)}}}function I4e(n){let e,t;return e=new Nt({props:{gap:"XS",noPadding:!0,$$slots:{default:[O4e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&32799&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function P4e(n,e,t){let r,i,a,o,l,{password:s}=e,{error:u}=e;const[c,f,h]=aT("",iT);xe(n,c,E=>t(1,i=E)),xe(n,f,E=>t(4,l=E)),xe(n,h,E=>t(3,o=E));const[m,_,y]=aT("",iT);xe(n,m,E=>t(0,r=E)),xe(n,y,E=>t(2,a=E));function w(E){i=E,c.set(i)}function A(E){r=E,m.set(r)}return n.$$set=E=>{"password"in E&&t(10,s=E.password),"error"in E&&t(11,u=E.error)},n.$$.update=()=>{n.$$.dirty&2&&t(10,s=i),n.$$.dirty&15&&t(11,u=!i||!o||!a||i!==r)},[r,i,a,o,l,c,f,h,m,y,s,u,w,A]}class x_ extends Ne{constructor(e){super(),Re(this,e,P4e,I4e,Pe,{password:10,error:11})}}function V4e(n){let e;return{c(){e=le(`Please upload the file that was exported from your Cloud environment to get
|
|
453
453
|
started`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function R4e(n){let e,t,r,i;return e=new Ft({props:{$$slots:{default:[V4e]},$$scope:{ctx:n}}}),r=new _6({props:{gallery:!1,label:"File to import",value:[n[0].file]}}),r.$on("change",n[2]),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&16&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&1&&(s.value=[a[0].file]),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function N4e(n){let e,t;return e=new br({props:{title:"Import apps",confirmText:"Import apps",onConfirm:n[1],disabled:!n[0].file,$$slots:{default:[R4e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&1&&(a.disabled=!r[0].file),i&17&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function F4e(n,e,t){let r;async function i(){try{let o=new FormData;o.append("importFile",r.file),await on.importApps(o),await o1.checkImportComplete(),yt.success("Import complete, please finish registration!")}catch{yt.error("Failed to import apps")}}const a=o=>{var l;t(0,r.file=(l=o.detail)==null?void 0:l[0],r)};return t(0,r={file:null}),[r,i,a]}class x4e extends Ne{constructor(e){super(),Re(this,e,F4e,N4e,Pe,{})}}const z2="/builder/assets/bb-emblem.4e4717da.svg";function j4e(n){let e,t;return e=new x4e({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function U4e(n){let e;return{c(){e=le("Create an admin user")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function q4e(n){let e;return{c(){e=le("The admin user has access to everything in Budibase.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function W4e(n){let e,t,r,i;return e=new Vn({props:{size:"M",$$slots:{default:[U4e]},$$scope:{ctx:n}}}),r=new Ft({props:{size:"M",textAlign:"center",$$slots:{default:[q4e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&131072&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&131072&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function G4e(n){let e,t,r,i,a,o,l;function s(m){n[11](m)}let u={label:"Email"};n[0].email!==void 0&&(u.value=n[0].email),e=new En({props:u}),Be.push(()=>it(e,"value",s));function c(m){n[12](m)}function f(m){n[13](m)}let h={};return n[0].password!==void 0&&(h.password=n[0].password),n[1]!==void 0&&(h.error=n[1]),i=new x_({props:h}),Be.push(()=>it(i,"password",c)),Be.push(()=>it(i,"error",f)),{c(){O(e.$$.fragment),r=q(),O(i.$$.fragment)},m(m,_){H(e,m,_),S(m,r,_),H(i,m,_),l=!0},p(m,_){const y={};!t&&_&1&&(t=!0,y.value=m[0].email,ot(()=>t=!1)),e.$set(y);const w={};!a&&_&1&&(a=!0,w.password=m[0].password,ot(()=>a=!1)),!o&&_&2&&(o=!0,w.error=m[1],ot(()=>o=!1)),i.$set(w)},i(m){l||(b(e.$$.fragment,m),b(i.$$.fragment,m),l=!0)},o(m){$(e.$$.fragment,m),$(i.$$.fragment,m),l=!1},d(m){B(e,m),m&&C(r),B(i,m)}}}function Y4e(n){let e;return{c(){e=le("Create super admin user")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function K4e(n){let e,t;return e=new Dr({props:{quiet:!0,$$slots:{default:[J4e]},$$scope:{ctx:n}}}),e.$on("click",n[15]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&131072&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function X4e(n){let e,t;return e=new Dr({props:{quiet:!0,$$slots:{default:[Z4e]},$$scope:{ctx:n}}}),e.$on("click",n[14]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&131072&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function J4e(n){let e;return{c(){e=le("Import from cloud")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Z4e(n){let e;return{c(){e=le("Change organisation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Q4e(n){let e,t,r,i,a,o;e=new $n({props:{cta:!0,disabled:n[1],$$slots:{default:[Y4e]},$$scope:{ctx:n}}}),e.$on("click",n[7]);const l=[X4e,K4e],s=[];function u(c,f){return c[5]?0:!c[3]&&!c[4]?1:-1}return~(r=u(n))&&(i=s[r]=l[r](n)),{c(){O(e.$$.fragment),t=q(),i&&i.c(),a=$t()},m(c,f){H(e,c,f),S(c,t,f),~r&&s[r].m(c,f),S(c,a,f),o=!0},p(c,f){const h={};f&2&&(h.disabled=c[1]),f&131072&&(h.$$scope={dirty:f,ctx:c}),e.$set(h);let m=r;r=u(c),r===m?~r&&s[r].p(c,f):(i&&(ze(),$(s[m],1,1,()=>{s[m]=null}),Ae()),~r?(i=s[r],i?i.p(c,f):(i=s[r]=l[r](c),i.c()),b(i,1),i.m(a.parentNode,a)):i=null)},i(c){o||(b(e.$$.fragment,c),b(i),o=!0)},o(c){$(e.$$.fragment,c),$(i),o=!1},d(c){B(e,c),c&&C(t),~r&&s[r].d(c),c&&C(a)}}}function e5e(n){let e,t,r,i,a,o,l,s,u;return i=new Nt({props:{gap:"XS",justifyItems:"center",noPadding:!0,$$slots:{default:[W4e]},$$scope:{ctx:n}}}),o=new Nt({props:{gap:"XS",noPadding:!0,$$slots:{default:[G4e]},$$scope:{ctx:n}}}),s=new Nt({props:{gap:"XS",noPadding:!0,$$slots:{default:[Q4e]},$$scope:{ctx:n}}}),{c(){e=J("img"),r=q(),O(i.$$.fragment),a=q(),O(o.$$.fragment),l=q(),O(s.$$.fragment),D(e,"alt","logo"),b1(e.src,t=z2)||D(e,"src",t),D(e,"class","svelte-135kmhj")},m(c,f){S(c,e,f),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(s,c,f),u=!0},p(c,f){const h={};f&131072&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);const m={};f&131075&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&131198&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function t5e(n){let e,t,r,i,a,o,l={padding:!1,width:"600px",$$slots:{default:[j4e]},$$scope:{ctx:n}};return e=new ar({props:l}),n[10](e),a=new Nt({props:{$$slots:{default:[e5e]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),r=J("section"),i=J("div"),O(a.$$.fragment),D(i,"class","container svelte-135kmhj"),D(r,"class","svelte-135kmhj")},m(s,u){H(e,s,u),S(s,t,u),S(s,r,u),j(r,i),H(a,i,null),o=!0},p(s,[u]){const c={};u&131072&&(c.$$scope={dirty:u,ctx:s}),e.$set(c);const f={};u&131199&&(f.$$scope={dirty:u,ctx:s}),a.$set(f)},i(s){o||(b(e.$$.fragment,s),b(a.$$.fragment,s),o=!0)},o(s){$(e.$$.fragment,s),$(a.$$.fragment,s),o=!1},d(s){n[10](null),B(e,s),s&&C(t),s&&C(r),B(a)}}}function n5e(n,e,t){let r,i,a,o,l,s,u;xe(n,si,P=>t(6,l=P)),xe(n,o1,P=>t(8,s=P)),xe(n,sr,P=>t(9,u=P));let c={},f,h;async function m(){try{t(0,c.tenantId=r,c),await on.createAdminUser(c),yt.success("Admin user created"),await o1.init(),l("../portal")}catch{yt.error("Failed to create admin user")}}rr(async()=>{if(!a)try{await o1.checkImportComplete()}catch{yt.error("Error checking import status")}});function _(P){Be[P?"unshift":"push"](()=>{h=P,t(2,h)})}function y(P){n.$$.not_equal(c.email,P)&&(c.email=P,t(0,c))}function w(P){n.$$.not_equal(c.password,P)&&(c.password=P,t(0,c))}function A(P){f=P,t(1,f)}const E=()=>{o1.unload(),l("../auth/org")},T=()=>{h.show()};return n.$$.update=()=>{n.$$.dirty&512&&(r=u.tenantId),n.$$.dirty&256&&t(5,i=s.multiTenancy),n.$$.dirty&256&&t(3,a=s.cloud),n.$$.dirty&256&&t(4,o=s.importComplete)},[c,f,h,a,o,i,l,m,s,u,_,y,w,A,E,T]}class r5e extends Ne{constructor(e){super(),Re(this,e,n5e,t5e,Pe,{})}}function oT(n){let e;const t=n[4].default,r=Xn(t,n,n[3],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&8)&&Zn(r,t,i,i[3],e?Jn(t,i[3],a,null):Qn(i[3]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function i5e(n){let e,t,r=n[0]&&oT(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[0]?r?(r.p(i,a),a&1&&b(r,1)):(r=oT(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(ze(),$(r,1,1,()=>{r=null}),Ae())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}function a5e(n,e,t){let r,i,a,o;xe(n,ua,c=>t(6,a=c)),xe(n,o1,c=>t(2,o=c));let{$$slots:l={},$$scope:s}=e,u=!1;return rr(()=>{var c;((c=o==null?void 0:o.checklist)==null?void 0:c.adminUser.checked)||i?a("../"):t(0,u=!0)}),n.$$set=c=>{"$$scope"in c&&t(3,s=c.$$scope)},n.$$.update=()=>{n.$$.dirty&4&&t(1,r=o.cloud),n.$$.dirty&6&&(i=r&&!o.disableAccountPortal)},[u,r,o,s,l]}class o5e extends Ne{constructor(e){super(),Re(this,e,a5e,i5e,Pe,{})}}function l5e(n,e,t){let r;return xe(n,ua,i=>t(0,r=i)),r("../design"),[]}class s5e extends Ne{constructor(e){super(),Re(this,e,l5e,null,Pe,{})}}function u5e(n,e,t){let r;return xe(n,ua,i=>t(0,r=i)),r("./data"),[]}class c5e extends Ne{constructor(e){super(),Re(this,e,u5e,null,Pe,{})}}function lT(n,e,t){const r=n.slice();return r[9]=e[t].key,r[10]=e[t].displayName,r[11]=e[t].type,r[12]=e,r[13]=t,r}function f5e(n){let e=n[10]+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&16&&e!==(e=r[10]+"")&&vt(t,e)},d(r){r&&C(t)}}}function sT(n){let e,t,r;function i(o){n[5](o,n[9])}let a={};return n[3][n[9]]!==void 0&&(a.value=n[3][n[9]]),e=new En({props:a}),Be.push(()=>it(e,"value",i)),e.$on("change",n[6]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};!t&&l&24&&(t=!0,s.value=n[3][n[9]],ot(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function uT(n){let e,t,r;function i(o){n[7](o,n[9])}let a={options:n[1][n[9]].data[n[2].queryVerb],getOptionLabel:d5e};return n[3][n[9]]!==void 0&&(a.value=n[3][n[9]]),e=new vn({props:a}),Be.push(()=>it(e,"value",i)),e.$on("change",n[8]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};l&22&&(s.options=n[1][n[9]].data[n[2].queryVerb]),!t&&l&24&&(t=!0,s.value=n[3][n[9]],ot(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function cT(n){let e,t,r,i,a,o;t=new cn({props:{$$slots:{default:[f5e]},$$scope:{ctx:n}}});let l=n[11]==="string"&&sT(n),s=n[11]==="list"&&uT(n);return{c(){e=J("div"),O(t.$$.fragment),r=q(),l&&l.c(),i=q(),s&&s.c(),a=q(),D(e,"class","config-field svelte-grhqzt")},m(u,c){S(u,e,c),H(t,e,null),j(e,r),l&&l.m(e,null),j(e,i),s&&s.m(e,null),j(e,a),o=!0},p(u,c){const f={};c&16400&&(f.$$scope={dirty:c,ctx:u}),t.$set(f),u[11]==="string"?l?(l.p(u,c),c&16&&b(l,1)):(l=sT(u),l.c(),b(l,1),l.m(e,i)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae()),u[11]==="list"?s?(s.p(u,c),c&16&&b(s,1)):(s=uT(u),s.c(),b(s,1),s.m(e,a)):s&&(ze(),$(s,1,1,()=>{s=null}),Ae())},i(u){o||(b(t.$$.fragment,u),b(l),b(s),o=!0)},o(u){$(t.$$.fragment,u),$(l),$(s),o=!1},d(u){u&&C(e),B(t),l&&l.d(),s&&s.d()}}}function p5e(n){let e,t,r=n[4],i=[];for(let o=0;o<r.length;o+=1)i[o]=cT(lT(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,[l]){if(l&31){r=o[4];let s;for(s=0;s<r.length;s+=1){const u=lT(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=cT(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}const d5e=n=>n;function h5e(n,e,t){let r,i,{populateExtraQuery:a}=e,{config:o}=e,{query:l}=e;function s(h,m){n.$$.not_equal(i[m],h)&&(i[m]=h,t(3,i),t(2,l))}const u=()=>a(i);function c(h,m){n.$$.not_equal(i[m],h)&&(i[m]=h,t(3,i),t(2,l))}const f=()=>a(i);return n.$$set=h=>{"populateExtraQuery"in h&&t(0,a=h.populateExtraQuery),"config"in h&&t(1,o=h.config),"query"in h&&t(2,l=h.query)},n.$$.update=()=>{n.$$.dirty&2&&t(4,r=Object.keys(o).map(h=>({...o[h],key:h}))),n.$$.dirty&4&&t(3,i=l.fields.extra||{})},[a,o,l,i,r,s,u,c,f]}class m5e extends Ne{constructor(e){super(),Re(this,e,h5e,p5e,Pe,{populateExtraQuery:0,config:1,query:2})}}var Bf={exports:{}};(function(n,e){(function(t,r){n.exports=r()})(y0,function(){var t=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(t),a=/MSIE \d/.test(t),o=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),l=/Edge\/(\d+)/.exec(t),s=a||o||l,u=s&&(a?document.documentMode||6:+(l||o)[1]),c=!l&&/WebKit\//.test(t),f=c&&/Qt\/\d+\.\d+/.test(t),h=!l&&/Chrome\//.test(t),m=/Opera\//.test(t),_=/Apple Computer/.test(navigator.vendor),y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),w=/PhantomJS/.test(t),A=_&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),E=/Android/.test(t),T=A||E||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),P=A||/Mac/.test(r),I=/\bCrOS\b/.test(t),V=/win/i.test(r),x=m&&t.match(/Version\/(\d*\.\d*)/);x&&(x=Number(x[1])),x&&x>=15&&(m=!1,c=!0);var X=P&&(f||m&&(x==null||x<12.11)),Y=i||s&&u>=9;function te(p){return new RegExp("(^|\\s)"+p+"(?:$|\\s)\\s*")}var ee=function(p,g){var z=p.className,k=te(g).exec(z);if(k){var L=z.slice(k.index+k[0].length);p.className=z.slice(0,k.index)+(L?k[1]+L:"")}};function ue(p){for(var g=p.childNodes.length;g>0;--g)p.removeChild(p.firstChild);return p}function ne(p,g){return ue(p).appendChild(g)}function G(p,g,z,k){var L=document.createElement(p);if(z&&(L.className=z),k&&(L.style.cssText=k),typeof g=="string")L.appendChild(document.createTextNode(g));else if(g)for(var R=0;R<g.length;++R)L.appendChild(g[R]);return L}function U(p,g,z,k){var L=G(p,g,z,k);return L.setAttribute("role","presentation"),L}var re;document.createRange?re=function(p,g,z,k){var L=document.createRange();return L.setEnd(k||p,z),L.setStart(p,g),L}:re=function(p,g,z){var k=document.body.createTextRange();try{k.moveToElementText(p.parentNode)}catch{return k}return k.collapse(!0),k.moveEnd("character",z),k.moveStart("character",g),k};function oe(p,g){if(g.nodeType==3&&(g=g.parentNode),p.contains)return p.contains(g);do if(g.nodeType==11&&(g=g.host),g==p)return!0;while(g=g.parentNode)}function he(){var p;try{p=document.activeElement}catch{p=document.body||null}for(;p&&p.shadowRoot&&p.shadowRoot.activeElement;)p=p.shadowRoot.activeElement;return p}function be(p,g){var z=p.className;te(g).test(z)||(p.className+=(z?" ":"")+g)}function de(p,g){for(var z=p.split(" "),k=0;k<z.length;k++)z[k]&&!te(z[k]).test(g)&&(g+=" "+z[k]);return g}var _e=function(p){p.select()};A?_e=function(p){p.selectionStart=0,p.selectionEnd=p.value.length}:s&&(_e=function(p){try{p.select()}catch{}});function ge(p){var g=Array.prototype.slice.call(arguments,1);return function(){return p.apply(null,g)}}function ye(p,g,z){g||(g={});for(var k in p)p.hasOwnProperty(k)&&(z!==!1||!g.hasOwnProperty(k))&&(g[k]=p[k]);return g}function ft(p,g,z,k,L){g==null&&(g=p.search(/[^\s\u00a0]/),g==-1&&(g=p.length));for(var R=k||0,W=L||0;;){var Q=p.indexOf(" ",R);if(Q<0||Q>=g)return W+(g-R);W+=Q-R,W+=z-W%z,R=Q+1}}var Te=function(){this.id=null,this.f=null,this.time=0,this.handler=ge(this.onTimeout,this)};Te.prototype.onTimeout=function(p){p.id=0,p.time<=+new Date?p.f():setTimeout(p.handler,p.time-+new Date)},Te.prototype.set=function(p,g){this.f=g;var z=+new Date+p;(!this.id||z<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,p),this.time=z)};function Me(p,g){for(var z=0;z<p.length;++z)if(p[z]==g)return z;return-1}var Oe=50,Xe={toString:function(){return"CodeMirror.Pass"}},ve={scroll:!1},Ye={origin:"*mouse"},nt={origin:"+move"};function at(p,g,z){for(var k=0,L=0;;){var R=p.indexOf(" ",k);R==-1&&(R=p.length);var W=R-k;if(R==p.length||L+W>=g)return k+Math.min(W,g-L);if(L+=R-k,L+=z-L%z,k=R+1,L>=g)return k}}var et=[""];function je(p){for(;et.length<=p;)et.push(Ge(et)+" ");return et[p]}function Ge(p){return p[p.length-1]}function Ht(p,g){for(var z=[],k=0;k<p.length;k++)z[k]=g(p[k],k);return z}function Wt(p,g,z){for(var k=0,L=z(g);k<p.length&&z(p[k])<=L;)k++;p.splice(k,0,g)}function rn(){}function pe(p,g){var z;return Object.create?z=Object.create(p):(rn.prototype=p,z=new rn),g&&ye(g,z),z}var Ze=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function lt(p){return/\w/.test(p)||p>"\x80"&&(p.toUpperCase()!=p.toLowerCase()||Ze.test(p))}function Ce(p,g){return g?g.source.indexOf("\\w")>-1&<(p)?!0:g.test(p):lt(p)}function Ie(p){for(var g in p)if(p.hasOwnProperty(g)&&p[g])return!1;return!0}var we=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Je(p){return p.charCodeAt(0)>=768&&we.test(p)}function wt(p,g,z){for(;(z<0?g>0:g<p.length)&&Je(p.charAt(g));)g+=z;return g}function Et(p,g,z){for(var k=g>z?-1:1;;){if(g==z)return g;var L=(g+z)/2,R=k<0?Math.ceil(L):Math.floor(L);if(R==g)return p(R)?g:z;p(R)?z=R:g=R+k}}function an(p,g,z,k){if(!p)return k(g,z,"ltr",0);for(var L=!1,R=0;R<p.length;++R){var W=p[R];(W.from<z&&W.to>g||g==z&&W.to==g)&&(k(Math.max(W.from,g),Math.min(W.to,z),W.level==1?"rtl":"ltr",R),L=!0)}L||k(g,z,"ltr")}var un=null;function fn(p,g,z){var k;un=null;for(var L=0;L<p.length;++L){var R=p[L];if(R.from<g&&R.to>g)return L;R.to==g&&(R.from!=R.to&&z=="before"?k=L:un=L),R.from==g&&(R.from!=R.to&&z!="before"?k=L:un=L)}return k!=null?k:un}var Bn=function(){var p="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",g="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function z(ce){return ce<=247?p.charAt(ce):1424<=ce&&ce<=1524?"R":1536<=ce&&ce<=1785?g.charAt(ce-1536):1774<=ce&&ce<=2220?"r":8192<=ce&&ce<=8203?"w":ce==8204?"b":"L"}var k=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,L=/[stwN]/,R=/[LRr]/,W=/[Lb1n]/,Q=/[1n]/;function ae(ce,ke,Ee){this.level=ce,this.from=ke,this.to=Ee}return function(ce,ke){var Ee=ke=="ltr"?"L":"R";if(ce.length==0||ke=="ltr"&&!k.test(ce))return!1;for(var We=ce.length,Ke=[],ht=0;ht<We;++ht)Ke.push(z(ce.charCodeAt(ht)));for(var kt=0,Dt=Ee;kt<We;++kt){var It=Ke[kt];It=="m"?Ke[kt]=Dt:Dt=It}for(var Ut=0,Vt=Ee;Ut<We;++Ut){var Jt=Ke[Ut];Jt=="1"&&Vt=="r"?Ke[Ut]="n":R.test(Jt)&&(Vt=Jt,Jt=="r"&&(Ke[Ut]="R"))}for(var bn=1,hn=Ke[0];bn<We-1;++bn){var Un=Ke[bn];Un=="+"&&hn=="1"&&Ke[bn+1]=="1"?Ke[bn]="1":Un==","&&hn==Ke[bn+1]&&(hn=="1"||hn=="n")&&(Ke[bn]=hn),hn=Un}for(var Ar=0;Ar<We;++Ar){var ki=Ke[Ar];if(ki==",")Ke[Ar]="N";else if(ki=="%"){var Vr=void 0;for(Vr=Ar+1;Vr<We&&Ke[Vr]=="%";++Vr);for(var v1=Ar&&Ke[Ar-1]=="!"||Vr<We&&Ke[Vr]=="1"?"1":"N",Zi=Ar;Zi<Vr;++Zi)Ke[Zi]=v1;Ar=Vr-1}}for(var ii=0,Ni=Ee;ii<We;++ii){var zi=Ke[ii];Ni=="L"&&zi=="1"?Ke[ii]="L":R.test(zi)&&(Ni=zi)}for(var xr=0;xr<We;++xr)if(L.test(Ke[xr])){var Yr=void 0;for(Yr=xr+1;Yr<We&&L.test(Ke[Yr]);++Yr);for(var Rr=(xr?Ke[xr-1]:Ee)=="L",Oi=(Yr<We?Ke[Yr]:Ee)=="L",ul=Rr==Oi?Rr?"L":"R":Ee,To=xr;To<Yr;++To)Ke[To]=ul;xr=Yr-1}for(var xi=[],Ya,Ci=0;Ci<We;)if(W.test(Ke[Ci])){var Y2=Ci;for(++Ci;Ci<We&&W.test(Ke[Ci]);++Ci);xi.push(new ae(0,Y2,Ci))}else{var ko=Ci,R0=xi.length,N0=ke=="rtl"?1:0;for(++Ci;Ci<We&&Ke[Ci]!="L";++Ci);for(var ji=ko;ji<Ci;)if(Q.test(Ke[ji])){ko<ji&&(xi.splice(R0,0,new ae(1,ko,ji)),R0+=N0);var cl=ji;for(++ji;ji<Ci&&Q.test(Ke[ji]);++ji);xi.splice(R0,0,new ae(2,cl,ji)),R0+=N0,ko=ji}else++ji;ko<Ci&&xi.splice(R0,0,new ae(1,ko,Ci))}return ke=="ltr"&&(xi[0].level==1&&(Ya=ce.match(/^\s+/))&&(xi[0].from=Ya[0].length,xi.unshift(new ae(0,0,Ya[0].length))),Ge(xi).level==1&&(Ya=ce.match(/\s+$/))&&(Ge(xi).to-=Ya[0].length,xi.push(new ae(0,We-Ya[0].length,We)))),ke=="rtl"?xi.reverse():xi}}();function jn(p,g){var z=p.order;return z==null&&(z=p.order=Bn(p.text,g)),z}var An=[],St=function(p,g,z){if(p.addEventListener)p.addEventListener(g,z,!1);else if(p.attachEvent)p.attachEvent("on"+g,z);else{var k=p._handlers||(p._handlers={});k[g]=(k[g]||An).concat(z)}};function Hr(p,g){return p._handlers&&p._handlers[g]||An}function xn(p,g,z){if(p.removeEventListener)p.removeEventListener(g,z,!1);else if(p.detachEvent)p.detachEvent("on"+g,z);else{var k=p._handlers,L=k&&k[g];if(L){var R=Me(L,z);R>-1&&(k[g]=L.slice(0,R).concat(L.slice(R+1)))}}}function wn(p,g){var z=Hr(p,g);if(!!z.length)for(var k=Array.prototype.slice.call(arguments,2),L=0;L<z.length;++L)z[L].apply(null,k)}function Hn(p,g,z){return typeof g=="string"&&(g={type:g,preventDefault:function(){this.defaultPrevented=!0}}),wn(p,z||g.type,p,g),st(g)||g.codemirrorIgnore}function jt(p){var g=p._handlers&&p._handlers.cursorActivity;if(!!g)for(var z=p.curOp.cursorActivityHandlers||(p.curOp.cursorActivityHandlers=[]),k=0;k<g.length;++k)Me(z,g[k])==-1&&z.push(g[k])}function Kn(p,g){return Hr(p,g).length>0}function Br(p){p.prototype.on=function(g,z){St(this,g,z)},p.prototype.off=function(g,z){xn(this,g,z)}}function tt(p){p.preventDefault?p.preventDefault():p.returnValue=!1}function gt(p){p.stopPropagation?p.stopPropagation():p.cancelBubble=!0}function st(p){return p.defaultPrevented!=null?p.defaultPrevented:p.returnValue==!1}function Ot(p){tt(p),gt(p)}function pn(p){return p.target||p.srcElement}function tn(p){var g=p.which;return g==null&&(p.button&1?g=1:p.button&2?g=3:p.button&4&&(g=2)),P&&p.ctrlKey&&g==1&&(g=3),g}var Nn=function(){if(s&&u<9)return!1;var p=G("div");return"draggable"in p||"dragDrop"in p}(),Fn;function _r(p){if(Fn==null){var g=G("span","\u200B");ne(p,G("span",[g,document.createTextNode("x")])),p.firstChild.offsetHeight!=0&&(Fn=g.offsetWidth<=1&&g.offsetHeight>2&&!(s&&u<8))}var z=Fn?G("span","\u200B"):G("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return z.setAttribute("cm-text",""),z}var pr;function mi(p){if(pr!=null)return pr;var g=ne(p,document.createTextNode("A\u062EA")),z=re(g,0,1).getBoundingClientRect(),k=re(g,1,2).getBoundingClientRect();return ue(p),!z||z.left==z.right?!1:pr=k.right-z.right<3}var Wi=`
|
|
454
454
|
|
|
@@ -932,7 +932,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
|
932
932
|
`),t=J("i"),i=le(r),a=le("?"),o=le(`
|
|
933
933
|
This action cannot be undone.`)},m(l,s){S(l,e,s),S(l,t,s),j(t,i),j(t,a),S(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&vt(i,r)},d(l){l&&C(e),l&&C(t),l&&C(o)}}}function qtt(n){let e,t,r,i,a,o;e=new L2({props:{$$slots:{control:[jtt],default:[xtt]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[Utt]},$$scope:{ctx:n}};r=new Nu({props:l}),n[5](r);let s={automation:n[0]};return a=new Vtt({props:s}),n[6](a),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment),i=q(),O(a.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&513&&(h.$$scope={dirty:c,ctx:u}),r.$set(h);const m={};c&1&&(m.automation=u[0]),a.$set(m)},i(u){o||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(a.$$.fragment,u),o=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(a.$$.fragment,u),o=!1},d(u){B(e,u),u&&C(t),n[5](null),B(r,u),u&&C(i),n[6](null),B(a,u)}}}function Wtt(n,e,t){let r,i;xe(n,Or,h=>t(7,r=h)),xe(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){Be[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){Be[h?"unshift":"push"](()=>{l=h,t(2,l)})}return n.$$set=h=>{"automation"in h&&t(0,a=h.automation)},[a,o,l,s,u,c,f]}class Gtt extends Ne{constructor(e){super(),Re(this,e,Wtt,qtt,Pe,{automation:0})}}function GR(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function Ytt(n){let e,t,r;return e=new Gtt({props:{automation:n[5]}}),{c(){O(e.$$.fragment),t=q()},m(i,a){H(e,i,a),S(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&C(t)}}}function YR(n){let e,t;function r(){return n[3](n[5])}return e=new b5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[Ytt]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function Ktt(n){let e,t,r=n[0].automations.sort(KR),i=[];for(let o=0;o<r.length;o+=1)i[o]=YR(GR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","automations-list svelte-g64vb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&7){r=o[0].automations.sort(KR);let s;for(s=0;s<r.length;s+=1){const u=GR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=YR(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}const KR=n=>n.name;function Xtt(n,e,t){let r,i,a;xe(n,si,s=>t(4,i=s)),xe(n,Or,s=>t(0,a=s)),rr(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class Jtt extends Ne{constructor(e){super(),Re(this,e,Xtt,Ktt,Pe,{})}}function XR(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function Ztt(n){let e;return{c(){e=le(`Please name your automation, then select a trigger. Every automation must
|
|
934
934
|
start with a trigger.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Qtt(n){let e;return{c(){e=le("Triggers")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function ent(n){let e=n[18].name+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&vt(t,e)},d(r){r&&C(t)}}}function JR(n){let e,t,r,i,a,o,l,s,u,c;r=new dn({props:{name:n[18].icon}}),o=new Ft({props:{size:"S",$$slots:{default:[ent]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=q(),a=J("span"),O(o.$$.fragment),l=q(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),De(e,"selected",n[2]===n[18].name)},m(h,m){S(h,e,m),j(e,t),H(r,t,null),j(t,i),j(t,a),H(o,a,null),j(e,l),s=!0,u||(c=At(e,"click",f),u=!0)},p(h,m){n=h;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&De(e,"selected",n[2]===n[18].name)},i(h){s||(b(r.$$.fragment,h),b(o.$$.fragment,h),s=!0)},o(h){$(r.$$.fragment,h),$(o.$$.fragment,h),s=!1},d(h){h&&C(e),B(r),B(o),u=!1,c()}}}function tnt(n){let e,t,r,i;e=new Ft({props:{size:"S",$$slots:{default:[Qtt]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=JR(XR(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(e.$$.fragment),t=q(),r=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-d3iboa")},m(s,u){H(e,s,u),S(s,t,u),S(s,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(s,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:s}),e.$set(c),u&76){a=s[3];let f;for(f=0;f<a.length;f+=1){const h=XR(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=JR(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for(ze(),f=a.length;f<o.length;f+=1)l(f);Ae()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&C(t),s&&C(r),Dn(o,s)}}}function nnt(n){let e,t,r,i,a,o,l,s,u,c;e=new g_({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new Ft({props:{size:"XS",$$slots:{default:[Ztt]},$$scope:{ctx:n}}});function f(_){n[10](_)}function h(_){n[11](_)}let m={label:"Name"};return n[0]!==void 0&&(m.value=n[0]),n[4]!==void 0&&(m.error=n[4]),a=new En({props:m}),Be.push(()=>it(a,"value",f)),Be.push(()=>it(a,"error",h)),a.$on("change",n[12]),u=new Nt({props:{noPadding:!0,$$slots:{default:[tnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment),i=q(),O(a.$$.fragment),s=q(),O(u.$$.fragment)},m(_,y){H(e,_,y),S(_,t,y),H(r,_,y),S(_,i,y),H(a,_,y),S(_,s,y),H(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const A={};!o&&y&1&&(o=!0,A.value=_[0],ot(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],ot(()=>l=!1)),a.$set(A);const E={};y&2097164&&(E.$$scope={dirty:y,ctx:_}),u.$set(E)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&C(t),B(r,_),_&&C(i),B(a,_),_&&C(s),B(u,_)}}}function rnt(n){let e,t;return e=new br({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[nnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function int(n,e,t){let r,i,a,o,l,s;xe(n,Or,P=>t(8,o=P)),xe(n,si,P=>t(16,l=P)),xe(n,Rd,P=>t(9,s=P));let u,c,f=!1,h,{webhookModal:m}=e;async function _(){var P;try{await Or.actions.create({name:u,instanceId:r});const I=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Or.actions.addBlockToAutomation(I),h.stepId===l6.WEBHOOK&&m.show,await Or.actions.save((P=o.selectedAutomation)==null?void 0:P.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=P=>{h=P,t(2,c=P.name)};function w(P){u=P,t(0,u)}function A(P){i=P,t(4,i),t(1,f),t(0,u)}const E=()=>t(1,f=!0),T=P=>y(P);return n.$$set=P=>{"webhookModal"in P&&t(7,m=P.webhookModal)},n.$$.update=()=>{n.$$.dirty&512&&(r=s._id),n.$$.dirty&3&&t(4,i=f&&!u?"Please specify a name for the automation.":null),n.$$.dirty&256&&t(3,a=Object.entries(o.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,y,m,o,s,w,A,E,T]}class bX extends Ne{constructor(e){super(),Re(this,e,int,rnt,Pe,{webhookModal:7})}}function ant(n){let e,t;return e=new bX({props:{webhookModal:n[1]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function ont(n){let e,t,r,i;e=new Jtt({});let a={$$slots:{default:[ant]},$$scope:{ctx:n}};return r=new ar({props:a}),n[2](r),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,l){const s={};l&10&&(s.$$scope={dirty:l,ctx:o}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[2](null),B(r,o)}}}function lnt(n){let e,t;return e=new N1({props:{title:"Automations",$$slots:{default:[ont]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function snt(n){let e,t,r,i,a,o;return t=new Xc({props:{selected:"Automations",$$slots:{default:[lnt]},$$scope:{ctx:n}}}),a=new dn({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){zn(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),r=q(),i=J("div"),O(a.$$.fragment),D(i,"class","add-button svelte-mcmub4"),D(e,"class","title svelte-mcmub4")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,[s]){n=l;const u={};s&11&&(u.$$scope={dirty:s,ctx:n}),t.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function unt(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){Be[o?"unshift":"push"](()=>{r=o,t(0,r)})}return n.$$set=o=>{"modal"in o&&t(0,r=o.modal),"webhookModal"in o&&t(1,i=o.webhookModal)},[r,i,a]}class cnt extends Ne{constructor(e){super(),Re(this,e,unt,snt,Pe,{modal:0,webhookModal:1})}}function ZR(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function QR(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let l={showTestStatus:!0,block:n[8],isTrigger:n[10]===0,testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new _X({props:l}),Be.push(()=>it(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&eN(n);return{c(){O(e.$$.fragment),r=q(),s&&s.c(),i=$t()},m(c,f){H(e,c,f),S(c,r,f),s&&s.m(c,f),S(c,i,f),a=!0},p(c,f){var m;const h={};f&2&&(h.block=c[8]),f&4&&(h.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,h.showParameters=c[3],ot(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=eN(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&(ze(),$(s,1,1,()=>{s=null}),Ae())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&C(r),s&&s.d(c),c&&C(i)}}}function eN(n){var s,u;let e,t,r,i,a,o;e=new yi({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&tN(n);return a=new Xc({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[hnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),l&&l.c(),r=q(),i=J("div"),O(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){H(e,c,f),S(c,t,f),l&&l.m(c,f),S(c,r,f),S(c,i,f),H(a,i,null),o=!0},p(c,f){var m,_;(_=(m=c[2])==null?void 0:m[c[10]])!=null&&_.outputs.iterations?l?(l.p(c,f),f&4&&b(l,1)):(l=tN(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&(ze(),$(l,1,1,()=>{l=null}),Ae());const h={};f&2052&&(h.$$scope={dirty:f,ctx:c}),a.$set(h)},i(c){o||(b(e.$$.fragment,c),b(l),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(l),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&C(t),l&&l.d(c),c&&C(r),c&&C(i),B(a)}}}function tN(n){let e,t,r,i,a,o;return t=new dn({props:{name:"Reuse"}}),a=new cn({props:{$$slots:{default:[fnt]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),r=q(),i=J("div"),O(a.$$.fragment),sn(i,"margin-left","10px"),sn(e,"display","flex"),sn(e,"padding","10px 10px 0px 12px")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,s){const u={};s&2052&&(u.$$scope={dirty:s,ctx:l}),a.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function fnt(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=le("This loop ran "),r=le(t),i=le(" times.")},m(l,s){S(l,e,s),S(l,r,s),S(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&vt(r,t)},d(l){l&&C(e),l&&C(r),l&&C(i)}}}function pnt(n){var r,i;let e,t;return e=new r3({props:{minHeight:"80px",disabled:!0,value:Jv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Jv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function dnt(n){var r,i;let e,t;return e=new r3({props:{minHeight:"100px",disabled:!0,value:Jv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Jv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function hnt(n){let e,t,r,i;return e=new N1({props:{title:"Input",$$slots:{default:[pnt]},$$scope:{ctx:n}}}),r=new N1({props:{title:"Output",$$slots:{default:[dnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function nN(n){let e;return{c(){e=J("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function rN(n){let e,t,r,i,a,o=n[8].stepId!==P3.LOOP&&QR(n),l=n[1].length-1!==n[10]&&nN();return{c(){e=J("div"),o&&o.c(),r=q(),l&&l.c(),i=$t(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){S(s,e,u),o&&o.m(e,null),S(s,r,u),l&&l.m(s,u),S(s,i,u),a=!0},p(s,u){s[8].stepId!==P3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=QR(s),o.c(),b(o,1),o.m(e,null)):o&&(ze(),$(o,1,1,()=>{o=null}),Ae()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=nN(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(s){a||(b(o),a=!0)},o(s){$(o),a=!1},d(s){s&&C(e),o&&o.d(),s&&C(r),l&&l.d(s),s&&C(i)}}}function mnt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=rN(ZR(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","container svelte-1iblsnb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&15){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=ZR(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=rN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for(ze(),s=r.length;s<i.length;s+=1)a(s);Ae()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function Jv(n,e){return n?JSON.stringify(n,null,2):e}function gnt(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,l,s;function u(f){return f==null?void 0:f.steps.filter(h=>h.stepId!==P3.LOOP||[])}function c(f){l=f,t(3,l)}return n.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,a=f.testResults),"width"in f&&t(0,o=f.width)},n.$$.update=()=>{if(n.$$.dirty&32&&t(2,r=u(a)),n.$$.dirty&22){if(t(1,s=[]),i)i.definition.trigger&&s.push(i.definition.trigger),t(1,s=s.concat(i.definition.steps||[]).filter(f=>f.stepId!==P3.LOOP));else if(r){t(1,s=r||[]);let f=0;for(let h of s)h.id=f++}}},[o,s,r,l,i,a,c]}class yX extends Ne{constructor(e){super(),Re(this,e,gnt,mnt,Pe,{automation:4,testResults:5,width:0})}}function vnt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new dn({props:{name:"MultipleCheck"}}),s=new dn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new yi({}),h=new yX({props:{automation:n[0],testResults:n[2]}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=q(),a=J("div"),a.textContent="Test Details",o=q(),l=J("div"),O(s.$$.fragment),u=q(),O(c.$$.fragment),f=q(),O(h.$$.fragment),sn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),sn(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){S(_,e,y),j(e,t),H(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),H(s,l,null),S(_,u,y),H(c,_,y),S(_,f,y),H(h,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),h.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(h.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(h.$$.fragment,_),m=!1},d(_){_&&C(e),B(r),B(s),_&&C(u),B(c,_),_&&C(f),B(h,_)}}}function _nt(n,e,t){let r;xe(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{W1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==P3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(s=r.selectedAutomation)==null?void 0:s.testResults)},[i,r,o,a,l]}class bnt extends Ne{constructor(e){super(),Re(this,e,_nt,vnt,Pe,{automation:0})}}function ynt(n){let e,t,r,i;return r=new Nt({props:{gap:"S",justifyItems:"center",$$slots:{default:[Ant]},$$scope:{ctx:n}}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){S(a,e,o),j(e,t),H(r,t,null),i=!0},p(a,o){const l={};o&258&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&C(e),B(r)}}}function $nt(n){let e;const t=n[4].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function wnt(n){let e;return{c(){e=le("You have no automations")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function knt(n){let e;return{c(){e=le("Let's fix that. Call the bots!")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function znt(n){let e;return{c(){e=le("Create automation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Ant(n){let e,t,r,i,a,o,l,s,u;return i=new Vn({props:{size:"M",$$slots:{default:[wnt]},$$scope:{ctx:n}}}),o=new Ft({props:{size:"M",$$slots:{default:[knt]},$$scope:{ctx:n}}}),s=new $n({props:{size:"M",cta:!0,$$slots:{default:[znt]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=ct("svg"),t=ct("use"),r=q(),O(i.$$.fragment),a=q(),O(o.$$.fragment),l=q(),O(s.$$.fragment),Wr(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),D(e,"width","60px"),D(e,"height","60px"),D(e,"class","spectrum-Icon"),D(e,"focusable","false")},m(c,f){S(c,e,f),j(e,t),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(s,c,f),u=!0},p(c,f){const h={};f&256&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);const m={};f&256&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function iN(n){let e,t,r;return t=new bnt({props:{automation:n[3]}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&8&&(o.automation=i[3]),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function Mnt(n){let e,t;return e=new bX({props:{webhookModal:n[2]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Cnt(n){let e,t;return e=new Wz({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Snt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new cnt({props:{modal:n[1],webhookModal:n[2]}});const _=[$nt,ynt],y=[];function w(P,I){return P[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&iN(n),E={$$slots:{default:[Mnt]},$$scope:{ctx:n}};c=new ar({props:E}),n[6](c);let T={width:"30%",$$slots:{default:[Cnt]},$$scope:{ctx:n}};return h=new ar({props:T}),n[7](h),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=q(),a=J("div"),l.c(),s=q(),A&&A.c(),u=q(),O(c.$$.fragment),f=q(),O(h.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(P,I){S(P,e,I),j(e,t),H(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,s),A&&A.m(e,null),j(e,u),H(c,e,null),j(e,f),H(h,e,null),m=!0},p(P,[I]){const V={};I&2&&(V.modal=P[1]),I&4&&(V.webhookModal=P[2]),r.$set(V);let x=o;o=w(P),o===x?y[o].p(P,I):(ze(),$(y[x],1,1,()=>{y[x]=null}),Ae(),l=y[o],l?l.p(P,I):(l=y[o]=_[o](P),l.c()),b(l,1),l.m(a,null)),P[0].showTestPanel?A?(A.p(P,I),I&1&&b(A,1)):(A=iN(P),A.c(),b(A,1),A.m(e,u)):A&&(ze(),$(A,1,1,()=>{A=null}),Ae());const X={};I&260&&(X.$$scope={dirty:I,ctx:P}),c.$set(X);const Y={};I&256&&(Y.$$scope={dirty:I,ctx:P}),h.$set(Y)},i(P){m||(b(r.$$.fragment,P),b(l),b(A),b(c.$$.fragment,P),b(h.$$.fragment,P),m=!0)},o(P){$(r.$$.fragment,P),$(l),$(A),$(c.$$.fragment,P),$(h.$$.fragment,P),m=!1},d(P){P&&C(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(h)}}}function Lnt(n,e,t){let r,i;xe(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;rr(()=>{W1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){Be[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){Be[h?"unshift":"push"](()=>{s=h,t(2,s)})}return n.$$set=h=>{"$$scope"in h&&t(8,o=h.$$scope)},n.$$.update=()=>{var h;n.$$.dirty&1&&t(3,r=((h=i.selectedAutomation)==null?void 0:h.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class Ent extends Ne{constructor(e){super(),Re(this,e,Lnt,Snt,Pe,{})}}function Tnt(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new En({props:u}),Be.push(()=>it(a,"value",s)),{c(){e=J("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
935
|
-
back to its production state.`,t=q(),r=J("span"),r.textContent="Please enter your app name to continue.",i=q(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],ot(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Dnt(n){let e,t;return e=new br({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[Tnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Hnt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){zn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Dnt]},$$scope:{ctx:n}};return r=new ar({props:a}),n[5](r),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Bnt(n,e,t){let r,i;xe(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await on.revertAppChanges(r);const c=await on.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){Be[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Ont extends Ne{constructor(e){super(),Re(this,e,Bnt,Hnt,Pe,{})}}const Int="@budibase/client",Pnt="1.4.
|
|
935
|
+
back to its production state.`,t=q(),r=J("span"),r.textContent="Please enter your app name to continue.",i=q(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],ot(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Dnt(n){let e,t;return e=new br({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[Tnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Hnt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){zn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Dnt]},$$scope:{ctx:n}};return r=new ar({props:a}),n[5](r),{c(){O(e.$$.fragment),t=q(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Bnt(n,e,t){let r,i;xe(n,nn,c=>t(0,i=c));let a,o;const l=async()=>{try{await on.revertAppChanges(r);const c=await on.fetchAppPackage(r);await nn.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){Be[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Ont extends Ne{constructor(e){super(),Re(this,e,Bnt,Hnt,Pe,{})}}const Int="@budibase/client",Pnt="1.4.5",Vnt="MPL-2.0",Rnt="dist/budibase-client.js",Nnt="dist/budibase-client.js",Fnt="module",xnt="src/index.js",jnt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Unt={build:"rollup -c","dev:builder":"rollup -cw"},qnt={"@budibase/bbui":"^1.4.5","@budibase/frontend-core":"^1.4.5","@budibase/string-templates":"^1.4.5","@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","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},Wnt={"@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"},Gnt="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Td={name:Int,version:Pnt,license:Vnt,module:Rnt,main:Nnt,type:Fnt,svelte:xnt,exports:jnt,scripts:Unt,dependencies:qnt,devDependencies:Wnt,gitHead:Gnt};function aN(n){let e,t;return e=new N3({props:{hoverable:!0,notice:!0,$$slots:{default:[Ynt]},$$scope:{ctx:n}}}),e.$on("click",function(){zn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ynt(n){let e;return{c(){e=le("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Knt(n){let e,t;return e=new Ft({props:{size:"S",$$slots:{default:[Jnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Xnt(n){let e,t;return e=new Ft({props:{size:"S",$$slots:{default:[Znt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Jnt(n){let e,t,r=n[1].version+"",i,a;return{c(){e=le("This app is currently using version "),t=J("b"),i=le(r),a=le(` which is the
|
|
936
936
|
latest version available.`)},m(o,l){S(o,e,l),S(o,t,l),j(t,i),S(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&vt(i,r)},d(o){o&&C(e),o&&C(t),o&&C(a)}}}function Znt(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=le("This app is currently using version "),t=J("b"),i=le(r),a=le(`, but version
|
|
937
937
|
`),o=J("b"),o.textContent=`${Td.version}`,l=le(` is available. Updates can contain new features,
|
|
938
938
|
performance improvements and bug fixes.`)},m(s,u){S(s,e,u),S(s,t,u),j(t,i),S(s,a,u),S(s,o,u),S(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&vt(i,r)},d(s){s&&C(e),s&&C(t),s&&C(a),s&&C(o),s&&C(l)}}}function oN(n){let e,t;return e=new Ft({props:{size:"S",$$slots:{default:[Qnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Qnt(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=le(`You can revert this app to version
|
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.76e5a8fa.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.c167b5c3.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body id="app">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
2
|
+
<coverage generated="1663775135657" clover="3.2.0">
|
|
3
|
+
<project timestamp="1663775135657" name="All files">
|
|
4
4
|
<metrics statements="4138" coveredstatements="3019" conditionals="1763" coveredconditionals="967" methods="613" coveredmethods="431" elements="6514" coveredelements="4417" complexity="0" loc="4138" ncloc="4138" packages="22" files="124" classes="124"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
|
|
@@ -232,7 +232,7 @@ exports.update = async function (ctx) {
|
|
|
232
232
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
233
233
|
Code coverage generated by
|
|
234
234
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
235
|
-
at Wed Sep 21 2022
|
|
235
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -277,7 +277,7 @@ exports.fetchSelf = async ctx => {
|
|
|
277
277
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
278
278
|
Code coverage generated by
|
|
279
279
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
280
|
-
at Wed Sep 21 2022
|
|
280
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
281
281
|
</div>
|
|
282
282
|
<script src="../../prettify.js"></script>
|
|
283
283
|
<script>
|
|
@@ -925,7 +925,7 @@ exports.test = async function (ctx) {
|
|
|
925
925
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
926
926
|
Code coverage generated by
|
|
927
927
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
928
|
-
at Wed Sep 21 2022
|
|
928
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
929
929
|
</div>
|
|
930
930
|
<script src="../../prettify.js"></script>
|
|
931
931
|
<script>
|
|
@@ -127,7 +127,7 @@ exports.exportAppDump = async function (ctx) {
|
|
|
127
127
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
128
128
|
Code coverage generated by
|
|
129
129
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
130
|
-
at Wed Sep 21 2022
|
|
130
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
131
131
|
</div>
|
|
132
132
|
<script src="../../prettify.js"></script>
|
|
133
133
|
<script>
|
|
@@ -400,7 +400,7 @@ exports.importApps = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
400
400
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
401
401
|
Code coverage generated by
|
|
402
402
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
403
|
-
at Wed Sep 21 2022
|
|
403
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../prettify.js"></script>
|
|
406
406
|
<script>
|
|
@@ -898,7 +898,7 @@ const buildSchemaHelper = <span class="fstat-no" title="function not covered" >a
|
|
|
898
898
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
899
899
|
Code coverage generated by
|
|
900
900
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
901
|
-
at Wed Sep 21 2022
|
|
901
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
902
902
|
</div>
|
|
903
903
|
<script src="../../prettify.js"></script>
|
|
904
904
|
<script>
|
|
@@ -475,7 +475,7 @@ exports.getBudibaseVersion = async ctx => {
|
|
|
475
475
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
476
476
|
Code coverage generated by
|
|
477
477
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
478
|
-
at Wed Sep 21 2022
|
|
478
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
479
479
|
</div>
|
|
480
480
|
<script src="../../prettify.js"></script>
|
|
481
481
|
<script>
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
357
357
|
Code coverage generated by
|
|
358
358
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
359
|
-
at Wed Sep 21 2022
|
|
359
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
360
360
|
</div>
|
|
361
361
|
<script src="../../prettify.js"></script>
|
|
362
362
|
<script>
|
|
@@ -136,7 +136,7 @@ exports.find = async function (ctx) {
|
|
|
136
136
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
137
137
|
Code coverage generated by
|
|
138
138
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
139
|
-
at Wed Sep 21 2022
|
|
139
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
140
140
|
</div>
|
|
141
141
|
<script src="../../prettify.js"></script>
|
|
142
142
|
<script>
|
|
@@ -211,7 +211,7 @@ exports.destroy = async function (ctx) {
|
|
|
211
211
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
212
212
|
Code coverage generated by
|
|
213
213
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
214
|
-
at Wed Sep 21 2022
|
|
214
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
215
215
|
</div>
|
|
216
216
|
<script src="../../prettify.js"></script>
|
|
217
217
|
<script>
|
|
@@ -193,7 +193,7 @@ exports.getMetadata = async ctx => {
|
|
|
193
193
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
194
194
|
Code coverage generated by
|
|
195
195
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
196
|
-
at Wed Sep 21 2022
|
|
196
|
+
at Wed Sep 21 2022 15:45:35 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 Wed Sep 21 2022
|
|
112
|
+
at Wed Sep 21 2022 15:45:35 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 Wed Sep 21 2022
|
|
598
|
+
at Wed Sep 21 2022 15:45:35 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 Wed Sep 21 2022
|
|
104
|
+
at Wed Sep 21 2022 15:45:35 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 Wed Sep 21 2022
|
|
223
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
224
224
|
</div>
|
|
225
225
|
<script src="../../../prettify.js"></script>
|
|
226
226
|
<script>
|
|
@@ -394,7 +394,7 @@ exports.destroy = async function (ctx) {
|
|
|
394
394
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
395
395
|
Code coverage generated by
|
|
396
396
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
397
|
-
at Wed Sep 21 2022
|
|
397
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
398
398
|
</div>
|
|
399
399
|
<script src="../../prettify.js"></script>
|
|
400
400
|
<script>
|
|
@@ -346,7 +346,7 @@ exports.clientFetch = async ctx => {
|
|
|
346
346
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
347
347
|
Code coverage generated by
|
|
348
348
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
349
|
-
at Wed Sep 21 2022
|
|
349
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
350
350
|
</div>
|
|
351
351
|
<script src="../../prettify.js"></script>
|
|
352
352
|
<script>
|
|
@@ -829,7 +829,7 @@ exports.fetchEnrichedRow = <span class="fstat-no" title="function not covered" >
|
|
|
829
829
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
830
830
|
Code coverage generated by
|
|
831
831
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
832
|
-
at Wed Sep 21 2022
|
|
832
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
833
833
|
</div>
|
|
834
834
|
<script src="../../../prettify.js"></script>
|
|
835
835
|
<script>
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
162
162
|
Code coverage generated by
|
|
163
163
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
164
|
-
at Wed Sep 21 2022
|
|
164
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
165
165
|
</div>
|
|
166
166
|
<script src="../../../prettify.js"></script>
|
|
167
167
|
<script>
|
|
@@ -1477,7 +1477,7 @@ exports.fetchEnrichedRow = async ctx => {
|
|
|
1477
1477
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1478
1478
|
Code coverage generated by
|
|
1479
1479
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1480
|
-
at Wed Sep 21 2022
|
|
1480
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
1481
1481
|
</div>
|
|
1482
1482
|
<script src="../../../prettify.js"></script>
|
|
1483
1483
|
<script>
|
|
@@ -1576,7 +1576,7 @@ exports.fullSearch = async (query, params) => {
|
|
|
1576
1576
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1577
1577
|
Code coverage generated by
|
|
1578
1578
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1579
|
-
at Wed Sep 21 2022
|
|
1579
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
1580
1580
|
</div>
|
|
1581
1581
|
<script src="../../../prettify.js"></script>
|
|
1582
1582
|
<script>
|
|
@@ -538,7 +538,7 @@ exports.finaliseRow = async (
|
|
|
538
538
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
539
539
|
Code coverage generated by
|
|
540
540
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
541
|
-
at Wed Sep 21 2022
|
|
541
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
542
542
|
</div>
|
|
543
543
|
<script src="../../../prettify.js"></script>
|
|
544
544
|
<script>
|
|
@@ -364,7 +364,7 @@ exports.validate = async ({ tableId, row, table }) => {
|
|
|
364
364
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
365
365
|
Code coverage generated by
|
|
366
366
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
367
|
-
at Wed Sep 21 2022
|
|
367
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
368
368
|
</div>
|
|
369
369
|
<script src="../../../prettify.js"></script>
|
|
370
370
|
<script>
|
|
@@ -103,7 +103,7 @@ exports.save = <span class="fstat-no" title="function not covered" >as</span>ync
|
|
|
103
103
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
104
104
|
Code coverage generated by
|
|
105
105
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
106
|
-
at Wed Sep 21 2022
|
|
106
|
+
at Wed Sep 21 2022 15:45:35 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 Wed Sep 21 2022
|
|
592
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
593
593
|
</div>
|
|
594
594
|
<script src="../../../prettify.js"></script>
|
|
595
595
|
<script>
|
|
@@ -1030,7 +1030,7 @@ exports.bulkImport = <span class="fstat-no" title="function not covered" >as</sp
|
|
|
1030
1030
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1031
1031
|
Code coverage generated by
|
|
1032
1032
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1033
|
-
at Wed Sep 21 2022
|
|
1033
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
1034
1034
|
</div>
|
|
1035
1035
|
<script src="../../../prettify.js"></script>
|
|
1036
1036
|
<script>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at Wed Sep 21 2022
|
|
134
|
+
at Wed Sep 21 2022 15:45:35 GMT+0000 (Coordinated Universal Time)
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|