@budibase/server 1.4.3-alpha.0 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder/assets/{index.b9dc755c.js → index.ffc32f54.js} +1 -1
- 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/package.json +6 -6
|
@@ -422,7 +422,7 @@ Event: `+fd(e)),!0):this._isIgnoredError(e,t)?(Oo.warn("Event dropped due to bei
|
|
|
422
422
|
Url: `+this._getEventFilterUrl(e)),!0):this._isAllowedUrl(e,t)?!1:(Oo.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: "+fd(e)+`.
|
|
423
423
|
Url: `+this._getEventFilterUrl(e)),!0)},n.prototype._isSentryError=function(e,t){if(!t.ignoreInternal)return!1;try{return e&&e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].type==="SentryError"||!1}catch{return!1}},n.prototype._isIgnoredError=function(e,t){return!t.ignoreErrors||!t.ignoreErrors.length?!1:this._getPossibleEventMessages(e).some(function(r){return t.ignoreErrors.some(function(i){return sy(r,i)})})},n.prototype._isDeniedUrl=function(e,t){if(!t.denyUrls||!t.denyUrls.length)return!1;var r=this._getEventFilterUrl(e);return r?t.denyUrls.some(function(i){return sy(r,i)}):!1},n.prototype._isAllowedUrl=function(e,t){if(!t.allowUrls||!t.allowUrls.length)return!0;var r=this._getEventFilterUrl(e);return r?t.allowUrls.some(function(i){return sy(r,i)}):!0},n.prototype._mergeOptions=function(e){return e===void 0&&(e={}),{allowUrls:hl(this._options.whitelistUrls||[],this._options.allowUrls||[],e.whitelistUrls||[],e.allowUrls||[]),denyUrls:hl(this._options.blacklistUrls||[],this._options.denyUrls||[],e.blacklistUrls||[],e.denyUrls||[]),ignoreErrors:hl(this._options.ignoreErrors||[],e.ignoreErrors||[],d3e),ignoreInternal:typeof this._options.ignoreInternal<"u"?this._options.ignoreInternal:!0}},n.prototype._getPossibleEventMessages=function(e){if(e.message)return[e.message];if(e.exception)try{var t=e.exception.values&&e.exception.values[0]||{},r=t.type,i=r===void 0?"":r,a=t.value,o=a===void 0?"":a;return[""+o,i+": "+o]}catch{return Oo.error("Cannot extract message for event "+fd(e)),[]}return[]},n.prototype._getEventFilterUrl=function(e){try{if(e.stacktrace){var t=e.stacktrace.frames;return t&&t[t.length-1].filename||null}if(e.exception){var r=e.exception.values&&e.exception.values[0].stacktrace&&e.exception.values[0].stacktrace.frames;return r&&r[r.length-1].filename||null}return null}catch{return Oo.error("Cannot extract url for event "+fd(e)),null}},n.id="InboundFilters",n}(),ug="?",m3e=/^\s*at (?:(.*?) ?\()?((?:file|https?|blob|chrome-extension|address|native|eval|webpack|<anonymous>|[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,g3e=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js))(?::(\d+))?(?::(\d+))?\s*$/i,v3e=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,_3e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,b3e=/\((\S*)(?::(\d+))(?::(\d+))\)/;function e7(n){var e=null,t=n&&n.framesToPop;try{if(e=$3e(n),e)return YE(e,t)}catch{}try{if(e=y3e(n),e)return YE(e,t)}catch{}return{message:xk(n),name:n&&n.name,stack:[],failed:!0}}function y3e(n){if(!n||!n.stack)return null;for(var e=[],t=n.stack.split(`
|
|
424
424
|
`),r,i,a,o,l=0;l<t.length;++l){if(a=m3e.exec(t[l])){var s=a[2]&&a[2].indexOf("native")===0;r=a[2]&&a[2].indexOf("eval")===0,r&&(i=b3e.exec(a[2]))&&(a[2]=i[1],a[3]=i[2],a[4]=i[3]),o={url:a[2]&&a[2].indexOf("address at ")===0?a[2].substr(11):a[2],func:a[1]||ug,args:s?[a[2]]:[],line:a[3]?+a[3]:null,column:a[4]?+a[4]:null}}else if(a=v3e.exec(t[l]))o={url:a[2],func:a[1]||ug,args:[],line:+a[3],column:a[4]?+a[4]:null};else if(a=g3e.exec(t[l]))r=a[3]&&a[3].indexOf(" > eval")>-1,r&&(i=_3e.exec(a[3]))?(a[1]=a[1]||"eval",a[3]=i[1],a[4]=i[2],a[5]=""):l===0&&!a[5]&&n.columnNumber!==void 0&&(e[0].column=n.columnNumber+1),o={url:a[3],func:a[1]||ug,args:a[2]?a[2].split(","):[],line:a[4]?+a[4]:null,column:a[5]?+a[5]:null};else continue;!o.func&&o.line&&(o.func=ug),e.push(o)}return e.length?{message:xk(n),name:n.name,stack:e}:null}function $3e(n){if(!n||!n.stacktrace)return null;for(var e=n.stacktrace,t=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,r=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\))? in (.*):\s*$/i,i=e.split(`
|
|
425
|
-
`),a=[],o,l=0;l<i.length;l+=2){var s=null;(o=t.exec(i[l]))?s={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(i[l]))&&(s={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),s&&(!s.func&&s.line&&(s.func=ug),a.push(s))}return a.length?{message:xk(n),name:n.name,stack:a}:null}function YE(n,e){try{return qi({},n,{stack:n.stack.slice(e)})}catch{return n}}function xk(n){var e=n&&n.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}var w3e=50;function KG(n){var e=jk(n.stack),t={type:n.name,value:n.message};return e&&e.length&&(t.stacktrace={frames:e}),t.type===void 0&&t.value===""&&(t.value="Unrecoverable error caught"),t}function k3e(n,e,t){var r={exception:{values:[{type:Bk(n)?n.constructor.name:t?"UnhandledRejection":"Error",value:"Non-Error "+(t?"promise rejection":"exception")+" captured with keys: "+Pfe(n)}]},extra:{__serialized__:NG(n)}};if(e){var i=e7(e),a=jk(i.stack);r.stacktrace={frames:a}}return r}function KE(n){var e=KG(n);return{exception:{values:[e]}}}function jk(n){if(!n||!n.length)return[];var e=n,t=e[0].func||"",r=e[e.length-1].func||"";return(t.indexOf("captureMessage")!==-1||t.indexOf("captureException")!==-1)&&(e=e.slice(1)),r.indexOf("sentryWrapped")!==-1&&(e=e.slice(0,-1)),e.slice(0,w3e).map(function(i){return{colno:i.column===null?void 0:i.column,filename:i.url||e[0].url,function:i.func||"?",in_app:!0,lineno:i.line===null?void 0:i.line}}).reverse()}function j$(n,e,t){t===void 0&&(t={});var r;if(PG(n)&&n.error){var i=n;return n=i.error,r=KE(e7(n)),r}if(OE(n)||zfe(n)){var a=n,o=a.name||(OE(a)?"DOMError":"DOMException"),l=a.message?o+": "+a.message:o;return r=U$(l,e,t),F$(r,l),r}if(IG(n))return r=KE(e7(n)),r;if(Hk(n)||Bk(n)){var s=n;return r=k3e(s,e,t.rejection),e6(r,{synthetic:!0}),r}return r=U$(n,e,t),F$(r,""+n,void 0),e6(r,{synthetic:!0}),r}function U$(n,e,t){t===void 0&&(t={});var r={message:n};if(t.attachStacktrace&&e){var i=e7(e),a=jk(i.stack);r.stacktrace={frames:a}}return r}var XG=function(){function n(e){this.options=e,this._buffer=new Vfe(30),this._api=new GG(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(e){throw new Q4("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(e){return this._buffer.drain(e)},n}(),z3e=Ru(),A3e=function(n){S7(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return e.prototype.sendEvent=function(t){var r=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var i=YG(t,this._api),a={body:i.body,method:"POST",referrerPolicy:Nfe()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(a,this.options.fetchParameters),this.options.headers!==void 0&&(a.headers=this.options.headers),this._buffer.add(new cc(function(o,l){z3e.fetch(i.url,a).then(function(s){var u=H3.fromHttpCode(s.status);if(u===H3.Success){o({status:u});return}if(u===H3.RateLimit){var c=Date.now();r._disabledUntil=new Date(c+VG(c,s.headers.get("Retry-After"))),Oo.warn("Too many requests, backing off till: "+r._disabledUntil)}l(s)}).catch(l)}))},e}(XG),M3e=function(n){S7(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return e.prototype.sendEvent=function(t){var r=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var i=YG(t,this._api);return this._buffer.add(new cc(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(l.readyState===4){var u=H3.fromHttpCode(l.status);if(u===H3.Success){a({status:u});return}if(u===H3.RateLimit){var c=Date.now();r._disabledUntil=new Date(c+VG(c,l.getResponseHeader("Retry-After"))),Oo.warn("Too many requests, backing off till: "+r._disabledUntil)}o(l)}},l.open("POST",i.url);for(var s in r.options.headers)r.options.headers.hasOwnProperty(s)&&l.setRequestHeader(s,r.options.headers[s]);l.send(i.body)}))},e}(XG),C3e=function(n){S7(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var t=qi({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Pk()?new A3e(t):new M3e(t)},e.prototype.eventFromException=function(t,r){var i=r&&r.syntheticException||void 0,a=j$(t,i,{attachStacktrace:this._options.attachStacktrace});return e6(a,{handled:!0,type:"generic"}),a.level=o5.Error,r&&r.event_id&&(a.event_id=r.event_id),cc.resolve(a)},e.prototype.eventFromMessage=function(t,r,i){r===void 0&&(r=o5.Info);var a=i&&i.syntheticException||void 0,o=U$(t,a,{attachStacktrace:this._options.attachStacktrace});return o.level=r,i&&i.event_id&&(o.event_id=i.event_id),cc.resolve(o)},e}(c3e),q$=0;function XE(){return q$>0}function S3e(){q$+=1,setTimeout(function(){q$-=1})}function wh(n,e,t){if(e===void 0&&(e={}),typeof n!="function")return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch{return n}var r=function(){var o=Array.prototype.slice.call(arguments);try{t&&typeof t=="function"&&t.apply(this,arguments);var l=o.map(function(s){return wh(s,e)});return n.handleEvent?n.handleEvent.apply(this,l):n.apply(this,l)}catch(s){throw S3e(),i3e(function(u){u.addEventProcessor(function(c){var f=qi({},c);return e.mechanism&&(F$(f,void 0,void 0),e6(f,e.mechanism)),f.extra=qi({},f.extra,{arguments:o}),f}),WG(s)}),s}};try{for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}catch{}n.prototype=n.prototype||{},r.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{var a=Object.getOwnPropertyDescriptor(r,"name");a.configurable&&Object.defineProperty(r,"name",{get:function(){return n.name}})}catch{}return r}var L3e=function(){function n(e){this.name=n.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=qi({onerror:!0,onunhandledrejection:!0},e)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Oo.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Oo.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},n.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(md({callback:function(t){var r=t.error,i=uc(),a=i.getIntegration(n),o=r&&r.__sentry_own_request__===!0;if(!(!a||XE()||o)){var l=i.getClient(),s=Qg(r)?e._eventFromIncompleteOnError(t.msg,t.url,t.line,t.column):e._enhanceEventWithInitialFrame(j$(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column);e6(s,{handled:!1,type:"onerror"}),i.captureEvent(s,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},n.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(md({callback:function(t){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}var i=uc(),a=i.getIntegration(n),o=r&&r.__sentry_own_request__===!0;if(!a||XE()||o)return!0;var l=i.getClient(),s=Qg(r)?e._eventFromIncompleteRejection(r):j$(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!0});s.level=o5.Error,e6(s,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(s,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},n.prototype._eventFromIncompleteOnError=function(e,t,r,i){var a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=PG(e)?e.message:e,l;if(Qh(o)){var s=o.match(a);s&&(l=s[1],o=s[2])}var u={exception:{values:[{type:l||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(u,t,r,i)},n.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},n.prototype._enhanceEventWithInitialFrame=function(e,t,r,i){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,l=Qh(t)&&t.length>0?t:Lfe();return e.exception.values[0].stacktrace.frames.length===0&&e.exception.values[0].stacktrace.frames.push({colno:a,filename:l,function:"?",in_app:!0,lineno:o}),e},n.id="GlobalHandlers",n}(),E3e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],T3e=function(){function n(e){this.name=n.id,this._options=qi({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return n.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[0];return t[0]=wh(i,{mechanism:{data:{function:N5(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},n.prototype._wrapRAF=function(e){return function(t){return e.call(this,wh(t,{mechanism:{data:{function:"requestAnimationFrame",handler:N5(e)},handled:!0,type:"instrument"}}))}},n.prototype._wrapEventTarget=function(e){var t=Ru(),r=t[e]&&t[e].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(nu(r,"addEventListener",function(i){return function(a,o,l){try{typeof o.handleEvent=="function"&&(o.handleEvent=wh(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:N5(o),target:e},handled:!0,type:"instrument"}}))}catch{}return i.call(this,a,wh(o,{mechanism:{data:{function:"addEventListener",handler:N5(o),target:e},handled:!0,type:"instrument"}}),l)}}),nu(r,"removeEventListener",function(i){return function(a,o,l){var s=o;try{s&&s.__sentry__&&i.call(this,a,s.__sentry_original__,l)}catch{}return i.call(this,a,s,l)}}))},n.prototype._wrapXHR=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach(function(o){o in i&&typeof i[o]=="function"&&nu(i,o,function(l){var s={mechanism:{data:{function:o,handler:N5(l)},handled:!0,type:"instrument"}};return l.__sentry_original__&&(s.mechanism.data.handler=N5(l.__sentry_original__)),wh(l,s)})}),e.apply(this,t)}},n.prototype.setupOnce=function(){var e=Ru();if(this._options.setTimeout&&nu(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&nu(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&nu(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&nu(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget){var t=Array.isArray(this._options.eventTarget)?this._options.eventTarget:E3e;t.forEach(this._wrapEventTarget.bind(this))}},n.id="TryCatch",n}(),JG=function(){function n(e){this.name=n.id,this._options=qi({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return n.prototype.addSentryBreadcrumb=function(e){!this._options.sentry||uc().addBreadcrumb({category:"sentry."+(e.type==="transaction"?"transaction":"event"),event_id:e.event_id,level:e.level,message:fd(e)},{event:e})},n.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:o5.fromString(e.level),message:PE(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message="Assertion failed: "+(PE(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1);else return;uc().addBreadcrumb(t,{input:e.args,level:e.level})},n.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Tv(e.event.target):Tv(e.event)}catch{t="<unknown>"}t.length!==0&&uc().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},n.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;uc().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr});return}},n.prototype._fetchBreadcrumb=function(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"||(e.error?uc().addBreadcrumb({category:"fetch",data:e.fetchData,level:o5.Error,type:"http"},{data:e.error,input:e.args}):uc().addBreadcrumb({category:"fetch",data:qi({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response}))},n.prototype._historyBreadcrumb=function(e){var t=Ru(),r=e.from,i=e.to,a=uy(t.location.href),o=uy(r),l=uy(i);o.path||(o=a),a.protocol===l.protocol&&a.host===l.host&&(i=l.relative),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),uc().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},n.prototype.setupOnce=function(){var e=this;this._options.console&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._consoleBreadcrumb.apply(e,hl(t))},type:"console"}),this._options.dom&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._domBreadcrumb.apply(e,hl(t))},type:"dom"}),this._options.xhr&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._xhrBreadcrumb.apply(e,hl(t))},type:"xhr"}),this._options.fetch&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._fetchBreadcrumb.apply(e,hl(t))},type:"fetch"}),this._options.history&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._historyBreadcrumb.apply(e,hl(t))},type:"history"})},n.id="Breadcrumbs",n}(),D3e="cause",H3e=5,B3e=function(){function n(e){e===void 0&&(e={}),this.name=n.id,this._key=e.key||D3e,this._limit=e.limit||H3e}return n.prototype.setupOnce=function(){R_(function(e,t){var r=uc().getIntegration(n);return r?r._handler(e,t):e})},n.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!rp(t.originalException,Error))return e;var r=this._walkErrorTree(t.originalException,this._key);return e.exception.values=hl(r,e.exception.values),e},n.prototype._walkErrorTree=function(e,t,r){if(r===void 0&&(r=[]),!rp(e[t],Error)||r.length+1>=this._limit)return r;var i=e7(e[t]),a=KG(i);return this._walkErrorTree(e[t],t,hl([a],r))},n.id="LinkedErrors",n}(),g9=Ru(),O3e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){R_(function(e){if(uc().getIntegration(n)){if(!g9.navigator||!g9.location)return e;var t=e.request||{};return t.url=t.url||g9.location.href,t.headers=t.headers||{},t.headers["User-Agent"]=g9.navigator.userAgent,qi({},e,{request:t})}return e})},n.id="UserAgent",n}(),I3e="sentry.javascript.browser",JE="5.19.1",P3e=function(n){S7(e,n);function e(t){return t===void 0&&(t={}),n.call(this,C3e,t)||this}return e.prototype._prepareEvent=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=qi({},t.sdk,{name:I3e,packages:hl(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:JE}]),version:JE}),n.prototype._prepareEvent.call(this,t,r,i)},e.prototype._sendEvent=function(t){var r=this.getIntegration(JG);r&&r.addSentryBreadcrumb(t),n.prototype._sendEvent.call(this,t)},e.prototype.showReportDialog=function(t){t===void 0&&(t={});var r=Ru().document;if(!!r){if(!this._isEnabled()){Oo.error("Trying to call showReportDialog with Sentry Client is disabled");return}var i=t.dsn||this.getDsn();if(!t.eventId){Oo.error("Missing `eventId` option in showReportDialog call");return}if(!i){Oo.error("Missing `Dsn` option in showReportDialog call");return}var a=r.createElement("script");a.async=!0,a.src=new GG(i).getReportDialogEndpoint(t),t.onLoad&&(a.onload=t.onLoad),(r.head||r.body).appendChild(a)}},e}(s3e),V3e=[new h3e,new p3e,new T3e,new JG,new L3e,new B3e,new O3e];function R3e(n){if(n===void 0&&(n={}),n.defaultIntegrations===void 0&&(n.defaultIntegrations=V3e),n.release===void 0){var e=Ru();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(n.release=e.SENTRY_RELEASE.id)}f3e(P3e,n)}class N3e{constructor(e){this.dsn=e}init(){this.dsn&&(R3e({dsn:this.dsn}),this.initalised=!0)}captureException(e){!this.initalised||WG(e)}identify(e){!this.initalised||r3e(t=>{t.setUser({id:e})})}}const v9=new _fe(void 0),vy=new N3e(void 0),_9=new bfe("qz2sxfuv");class F3e{constructor(){this.clients=[v9,vy,_9]}async activate(){(await on.getAnalyticsStatus()).enabled&&this.clients.forEach(t=>t.init())}identify(e){v9.identify(e),vy.identify(e)}captureException(e){vy.captureException(e)}captureEvent(e,t={}){v9.captureEvent(e,t),_9.captureEvent(e,t)}showChat(e){_9.show(e)}async logout(){v9.logout(),_9.logout()}}const Y5=new F3e,k2=(n,e)=>ZG(n,t=>t._id===e),ac=(n,e,t)=>{if(!n||!e)return null;if(n._id===e)return t;if(!n._children)return null;for(const r of n._children){const i=ac(r,e,n);if(i)return i}return null},v5=(n,e,t=[])=>{if(!n||!e)return[];if(n._id===e)return[...t,n];if(!n._children)return[];for(const r of n._children){const i=[...t,n],a=v5(r,e,i);if(a!=null&&a.length)return a}return[]},ip=(n,e)=>{if(!n||!e)return[];let t=[];return n._children&&n._children.forEach(r=>{t=[...t,...ip(r,e)]}),e(n)&&t.push(n),t.reverse()},F_=(n,e,t)=>{if(!t)return null;const r=v5(n,e).reverse();for(let i of r)if(t(i))return i;return null},ZG=(n,e)=>{if(!n||!e)return null;if(e(n))return n;if(!n._children)return null;for(const t of n._children){const r=ZG(t,e);if(r)return r}return null};let _y={};const z6=n=>{var r,i,a;if(!n)return[];if(n.startsWith("@budibase")||(n=`@budibase/standard-components/${n}`),_y[n])return _y[n];const e=nn.actions.components.getDefinition(n);let t=[];return e&&(t=(i=(r=e.settings)==null?void 0:r.filter(o=>!o.section))!=null?i:[],(a=e.settings)==null||a.filter(o=>o.section).forEach(o=>{t=t.concat(o.settings||[])})),_y[n]=t,t},Uk=n=>{var r;if(!n)return;const e=n._id,t=c5();if(n._id=t,(r=n._children)!=null&&r.length){let i=JSON.stringify(n._children);i=i.replace(new RegExp(e,"g"),t),qW(i).forEach(o=>{let l=o.replace(/\\"/g,'"'),s=Gh(l);if(s!=null){s=s.replace(new RegExp(e,"g"),t);let u=Mh(s);u=u.replace(/"/g,'\\"'),i=i.replace(o,u)}}),n._children=JSON.parse(i),n._children.forEach(Uk)}},by={apps:[],name:"",url:"",description:"",layouts:[],screens:[],components:[],clientFeatures:{spectrumThemes:!1,intelligentLoading:!1,deviceAwareness:!1,state:!1,rowSelection:!1,customThemes:!1,devicePreview:!1,messagePassing:!1,continueIfAction:!1,showNotificationAction:!1},errors:[],hasAppPackage:!1,libraries:null,appId:"",routes:{},clientLibPath:"",theme:"",customTheme:{},previewDevice:"desktop",highlightedSettingKey:null,selectedScreenId:null,selectedComponentId:null,selectedLayoutId:null},x3e=()=>{const n=hi({...by}),e=fG(async(t,r)=>{const a=gn(n).screens.find(s=>s._id===r);if(!a)return;let o=k1.cloneDeep(a);if(t(o)!==!1)return await n.actions.screens.save(o)});return n.actions={reset:()=>{n.set({...by})},initialise:async t=>{const{layouts:r,screens:i,application:a,clientLibPath:o}=t,l=await on.fetchComponentLibDefinitions(a.appId),s=Object.keys(l).filter(u=>u.startsWith("plugin/"));n.update(u=>({...u,libraries:a.componentLibraries,components:l,customComponents:s,clientFeatures:{...by.clientFeatures,...l.features},name:a.name,description:a.description,appId:a.appId,url:a.url,layouts:r||[],screens:i||[],theme:a.theme||"spectrum--light",customTheme:a.customTheme,hasAppPackage:!0,appInstance:a.instance,clientLibPath:o,previousTopNavPath:{},version:a.version,revertableVersion:a.revertableVersion,navigation:a.navigation||{},usedPlugins:a.usedPlugins||[]})),Rd.set(a.instance),await Ti.init(),await vp.init(),await ba.init(),await Tr.init()},theme:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{theme:t}});n.update(a=>(a.theme=i.theme,a))}},customTheme:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{customTheme:t}});n.update(a=>(a.customTheme=i.customTheme,a))}},navigation:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{navigation:t}});n.update(a=>(a.navigation=i.navigation,a))}},screens:{select:t=>{var a;const r=gn(n),i=r.screens.find(o=>o._id===t);!i||r.selectedScreenId===i._id&&r.selectedComponentId===((a=i.props)==null?void 0:a._id)||n.update(o=>{var l;return o.selectedScreenId=i._id,o.selectedComponentId=(l=i.props)==null?void 0:l._id,o})},save:async t=>{const r=gn(n),i=t._id===void 0,a=await on.saveScreen(t),o=await on.fetchAppRoutes();let l=r.usedPlugins;if(a.pluginAdded){const{application:s}=await on.fetchAppPackage(r.appId);l=s.usedPlugins||[]}return n.update(s=>{const u=s.screens.findIndex(c=>c._id===a._id);return u!==-1?s.screens.splice(u,1,a):s.screens.push(a),i&&(s.selectedScreenId=a._id,s.selectedComponentId=a.props._id),s.routes=o.routes,s.usedPlugins=l,s}),a},patch:async(t,r)=>{if(r||(r=gn(n).selectedScreenId),!(!r||!t))return await e(t,r)},delete:async t=>{const r=Array.isArray(t)?t:[t],i=[];let a=[];r.forEach(s=>{i.push(on.deleteScreen({screenId:s._id,screenRev:s._rev})),a.push(s.routing.route)}),i.push(n.actions.links.delete(a)),await Promise.all(i);const o=r.map(s=>s._id),l=await on.fetchAppRoutes();n.update(s=>(s.screens=s.screens.filter(u=>!o.includes(u._id)),o.includes(s.selectedScreenId)&&(s.selectedScreenId=null,s.selectedComponentId=null),s.routes=l.routes,s))},updateSetting:async(t,r,i)=>{if(!t||!r)return;const a=u=>{if(!u||xh(u,r)===i)return!1;Tee(u,r,i)};await n.actions.screens.patch(a,t._id);const o=gn(n),l=o.screens.find(u=>u._id===t._id);if(!l)return;const s=o.screens.filter(u=>u.routing.roleId===l.routing.roleId&&u.routing.homeScreen&&u._id!==t._id);if(s.length){const u=c=>{c.routing.homeScreen=!1};for(let c of s)await n.actions.screens.patch(u,c._id)}},removeCustomLayout:async t=>{const r=gn(n).layouts.find(a=>a._id===t.layoutId),i=a=>{a.layoutId=null,a.showNavigation=(r==null?void 0:r.props.navigation)!=="None",a.width=(r==null?void 0:r.props.width)||"Large"};await n.actions.screens.patch(i,t._id)}},preview:{setDevice:t=>{n.update(r=>(r.previewDevice=t,r))}},layouts:{select:t=>{var a;const r=gn(n),i=r.layouts.find(o=>o._id===t);!i||r.selectedLayoutId===i._id&&r.selectedComponentId===((a=i.props)==null?void 0:a._id)||n.update(o=>{var l;return o.selectedLayoutId=i._id,o.selectedComponentId=(l=i.props)==null?void 0:l._id,o})},delete:async t=>{!(t!=null&&t._id)||(await on.deleteLayout({layoutId:t._id,layoutRev:t._rev}),n.update(r=>(r.layouts=r.layouts.filter(i=>i._id!==t._id),r)))}},components:{getDefinition:t=>t?gn(n).components[t]:null,createInstance:(t,r)=>{const i=n.actions.components.getDefinition(t);if(!i)return null;const a=z6(t);let o={...r};a.forEach(s=>{s.defaultValue!==void 0&&(o[s.key]=s.defaultValue)});let l={};if(i.hasChildren&&(l._children=[]),t.endsWith("/formstep")){const s=F_(gn(Mo).props,gn(I3)._id,c=>c._component.endsWith("/form")),u=ip(s,c=>c._component.endsWith("/formstep"));l.step=u.length+1,l._instanceName=`Step ${u.length+1}`}return{_id:c5(),_component:i.component,_styles:{normal:{},hover:{},active:{}},_instanceName:`New ${i.name}`,...k1.cloneDeep(o),...l}},create:async(t,r)=>{const i=gn(n),a=n.actions.components.createInstance(t,r);if(!!a)return await n.actions.screens.patch(o=>{const l=k2(o.props,i.selectedComponentId);if(!l)return!1;let s;if(l){const u=n.actions.components.getDefinition(l._component);u!=null&&u.hasChildren?s=l:s=ac(o.props,l._id)}else s=o.props;if(!s)return!1;s._children||(s._children=[]),s._children.push(a)}),n.update(o=>(o.selectedComponentId=a._id,o)),Y5.captureEvent(Zh.COMPONENT_CREATED,{name:a._component}),a},patch:async(t,r,i)=>{if(!r&&!i){const o=gn(n);r=o.selectedComponentId,i=o.selectedScreenId}if(!r||!i||!t)return;const a=o=>{let l=k2(o.props,r);return l?t(l,o):!1};await n.actions.screens.patch(a,i)},delete:async t=>{if(!t)return;const r=gn(n);let i;r.selectedComponentId===t._id&&(i=n.actions.components.getNext(),i||(i=n.actions.components.getPrevious())),await n.actions.screens.patch(a=>{if(t=k2(a.props,t._id),!t)return!1;const o=ac(a.props,t._id);if(!o)return!1;o._children=o._children.filter(l=>l._id!==t._id)}),i&&n.update(a=>(a.selectedComponentId=i,a))},copy:(t,r=!1,i=!0)=>{if(n.update(a=>(a.componentToPaste=k1.cloneDeep(t),a.componentToPaste.isCut=r,a)),r){const a=gn(Mo),o=ac(a==null?void 0:a.props,t._id);o&&i&&n.update(l=>(l.selectedComponentId=o._id,l))}},paste:async(t,r,i)=>{const a=gn(n);if(!a.componentToPaste)return;let o;const l=u=>{if(t=k2(u.props,t._id),!t)return;const c=a.componentToPaste.isCut,f=a.componentToPaste._id;let h=k1.cloneDeep(a.componentToPaste);if(delete h.isCut,c||Uk(h),o=h._id,c){const m=ac(u.props,f);m!=null&&m._children&&(m._children=m._children.filter(_=>_._id!==f))}if(r==="inside"&&(n.actions.components.getDefinition(t._component).hasChildren||(r="below")),r==="inside")t._children||(t._children=[]),t._children.push(h);else{const m=ac(u.props,t._id);if(!(m!=null&&m._children))return!1;const _=m._children.findIndex(w=>w._id===t._id),y=r==="above"?_:_+1;m._children.splice(y,0,h)}},s=(i==null?void 0:i._id)||a.selectedScreenId;await n.actions.screens.patch(l,s),n.update(u=>(u.componentToPaste.isCut&&delete u.componentToPaste,u.selectedScreenId=s,u.selectedComponentId=o,u))},getPrevious:()=>{var l,s;const r=gn(n).selectedComponentId,i=gn(Mo),a=ac(i.props,r),o=a==null?void 0:a._children.findIndex(u=>u._id===r);if(!a||r===i.props._id)return null;if(o>0){const u=a._children[o-1];if((l=u._children)!=null&&l.length){let c=u;for(;(s=c._children)!=null&&s.length;)c=c._children[c._children.length-1];return c._id}return u._id}return a._id},getNext:()=>{var c,f;const t=gn(I3),r=t==null?void 0:t._id,i=gn(Mo),a=ac(i.props,r),o=a==null?void 0:a._children.findIndex(h=>h._id===r);if((c=t._children)!=null&&c.length)return t._children[0]._id;if(!a)return null;if(o<a._children.length-1)return a._children[o+1]._id;let l=a,s=ac(i.props,l._id),u=s==null?void 0:s._children.findIndex(h=>h._id===l._id);for(;s!=null&&u===((f=s._children)==null?void 0:f.length)-1;)l=s,s=ac(i.props,l._id),u=s==null?void 0:s._children.findIndex(h=>h._id===l._id);return s?s._children[u+1]._id:null},selectPrevious:()=>{const t=n.actions.components.getPrevious();t&&n.update(r=>(r.selectedComponentId=t,r))},selectNext:()=>{const t=n.actions.components.getNext();t&&n.update(r=>(r.selectedComponentId=t,r))},moveUp:async t=>{await n.actions.screens.patch(r=>{const i=t==null?void 0:t._id,a=ac(r.props,i),o=a==null?void 0:a._children.findIndex(s=>s._id===i);if(!a||o===0&&a._id===r.props._id)return;const l=k1.cloneDeep(a._children[o]);if(a._children=a._children.filter(s=>s._id!==i),o>0){const s=a._children[o-1];n.actions.components.getDefinition(s._component).hasChildren?s._children.push(l):a._children.splice(o-1,0,l)}else if(a._id!==r.props._id){const s=ac(r.props,a._id),u=s._children.findIndex(c=>c._id===a._id);s._children.splice(u,0,l)}})},moveDown:async t=>{await n.actions.screens.patch(r=>{var s;const i=t==null?void 0:t._id,a=ac(r.props,i);if(!((s=a==null?void 0:a._children)!=null&&s.length))return!1;const o=a._children.findIndex(u=>u._id===i);if(o===a._children.length-1&&a._id===r.props._id)return;const l=k1.cloneDeep(a._children[o]);if(a._children=a._children.filter(u=>u._id!==i),o<a._children.length){const u=a._children[o];n.actions.components.getDefinition(u._component).hasChildren?u._children.splice(0,0,l):a._children.splice(o+1,0,l)}else{const u=ac(r.props,a._id),c=u._children.findIndex(f=>f._id===a._id);u._children.splice(c+1,0,l)}})},updateStyle:async(t,r)=>{await n.actions.components.patch(i=>{r==null||r===""?delete i._styles.normal[t]:i._styles.normal[t]=r})},updateCustomStyle:async t=>{await n.actions.components.patch(r=>{r._styles.custom=t})},updateConditions:async t=>{await n.actions.components.patch(r=>{r._conditions=t})},updateSetting:async(t,r)=>{await n.actions.components.patch(i=>{if(!t||!i||i[t]===r)return!1;i[t]=r})}},links:{save:async(t,r)=>{const i=gn(n).navigation;let a=[...i==null?void 0:i.links];a.find(o=>o.url===t&&o.text===r)||(a.push({text:r,url:t}),await n.actions.navigation.save({...i,links:[...a]}))},delete:async t=>{const r=gn(n).navigation;let i=r==null?void 0:r.links;!(i!=null&&i.length)||(t=Array.isArray(t)?t:[t],i=i.filter(a=>!t.includes(a.url)),await n.actions.navigation.save({...r,links:i}))}},settings:{highlight:t=>{n.update(r=>({...r,highlightedSettingKey:t}))}}},n};var pc={exports:{}},QG={exports:{}},q9=1;function j3e(){return q9=(q9*9301+49297)%233280,q9/233280}function U3e(n){q9=n}var q3e={nextValue:j3e,seed:U3e},W$=q3e,gd="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",j5,ZE,cg;function G$(){cg=!1}function eY(n){if(!n){j5!==gd&&(j5=gd,G$());return}if(n!==j5){if(n.length!==gd.length)throw new Error("Custom alphabet for shortid must be "+gd.length+" unique characters. You submitted "+n.length+" characters: "+n);var e=n.split("").filter(function(t,r,i){return r!==i.lastIndexOf(t)});if(e.length)throw new Error("Custom alphabet for shortid must be "+gd.length+" unique characters. These characters were not unique: "+e.join(", "));j5=n,G$()}}function W3e(n){return eY(n),j5}function G3e(n){W$.seed(n),ZE!==n&&(G$(),ZE=n)}function Y3e(){j5||eY(gd);for(var n=j5.split(""),e=[],t=W$.nextValue(),r;n.length>0;)t=W$.nextValue(),r=Math.floor(t*n.length),e.push(n.splice(r,1)[0]);return e.join("")}function tY(){return cg||(cg=Y3e(),cg)}function K3e(n){var e=tY();return e[n]}function X3e(){return j5||gd}var qk={get:X3e,characters:W3e,seed:G3e,lookup:K3e,shuffled:tY},yy=typeof window=="object"&&(window.crypto||window.msCrypto),Y$;!yy||!yy.getRandomValues?Y$=function(n){for(var e=[],t=0;t<n;t++)e.push(Math.floor(Math.random()*256));return e}:Y$=function(n){return yy.getRandomValues(new Uint8Array(n))};var J3e=Y$,Z3e=function(n,e,t){for(var r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length),a="";;)for(var o=n(i),l=i;l--;)if(a+=e[o[l]&r]||"",a.length===+t)return a},Q3e=qk,e4e=J3e,t4e=Z3e;function n4e(n){for(var e=0,t,r="";!t;)r=r+t4e(e4e,Q3e.get(),1),t=n<Math.pow(16,e+1),e++;return r}var r4e=n4e,b9=r4e,i4e=1567752802062,a4e=7,y9,QE;function o4e(n){var e="",t=Math.floor((Date.now()-i4e)*.001);return t===QE?y9++:(y9=0,QE=t),e=e+b9(a4e),e=e+b9(n),y9>0&&(e=e+b9(y9)),e=e+b9(t),e}var l4e=o4e,s4e=qk;function u4e(n){if(!n||typeof n!="string"||n.length<6)return!1;var e=new RegExp("[^"+s4e.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!e.test(n)}var c4e=u4e;(function(n){var e=qk,t=l4e,r=c4e,i=0;function a(u){return e.seed(u),n.exports}function o(u){return i=u,n.exports}function l(u){return u!==void 0&&e.characters(u),e.shuffled()}function s(){return t(i)}n.exports=s,n.exports.generate=s,n.exports.seed=a,n.exports.worker=o,n.exports.characters=l,n.exports.isValid=r})(QG);(function(n){n.exports=QG.exports})(pc);class eT{constructor(e){this.automation=e}hasTrigger(){return this.automation.definition.trigger}addTestData(e){this.automation.testData={...this.automation.testData,...e}}addBlock(e,t){if(!this.hasTrigger()&&e.type==="TRIGGER"){const i={id:pc.exports.generate(),...e};return this.automation.definition.trigger=i,i}const r={id:pc.exports.generate(),...e};return this.automation.definition.steps.splice(t,0,r),r}updateBlock(e,t){const{steps:r,trigger:i}=this.automation.definition;if(i&&i.id===t){this.automation.definition.trigger=e;return}const a=r.findIndex(o=>o.id===t);if(a<0)throw new Error("Block not found.");r.splice(a,1,e),this.automation.definition.steps=r}deleteBlock(e){const{steps:t,trigger:r}=this.automation.definition;if(r&&r.id===e){this.automation.definition.trigger=null;return}const i=t.findIndex(a=>a.id===e);if(i<0)throw new Error("Block not found.");t.splice(i,1),this.automation.definition.steps=t}constructBlock(e,t,r){return{...r,inputs:r.inputs||{},stepId:t,type:e}}}const f4e={automations:[],showTestPanel:!1,blockDefinitions:{TRIGGER:[],ACTION:[]},selectedAutomation:null},p4e=()=>{const n=hi(f4e);return n.actions=d4e(n),n},d4e=n=>({definitions:async()=>{const e=await on.getAutomationDefinitions();return n.update(t=>(t.blockDefinitions={TRIGGER:e.trigger,ACTION:e.action},t)),e},fetch:async()=>{const e=await Promise.all([on.getAutomations(),on.getAutomationDefinitions()]);n.update(t=>{var i;let r=(i=t.selectedAutomation)==null?void 0:i.automation;return t.automations=e[0],t.blockDefinitions={TRIGGER:e[1].trigger,ACTION:e[1].action},r&&(r=e[0].filter(a=>a._id===r._id),t.selectedAutomation=new eT(r[0])),t})},create:async({name:e})=>{const t={name:e,type:"automation",definition:{steps:[]}},r=await on.createAutomation(t);n.update(i=>(i.automations=[...i.automations,r.automation],n.actions.select(r.automation),i))},duplicate:async e=>{const t=await on.createAutomation({...e,name:`${e.name} - copy`,_id:void 0,_ref:void 0});n.update(r=>(r.automations=[...r.automations,t.automation],n.actions.select(t.automation),r))},save:async e=>{const t=await on.updateAutomation(e);n.update(r=>{const i=t.automation,a=r.automations.findIndex(o=>o._id===e._id);if(a!==-1)return r.automations.splice(a,1,i),r.automations=[...r.automations],n.actions.select(i),r})},delete:async e=>{await on.deleteAutomation({automationId:e==null?void 0:e._id,automationRev:e==null?void 0:e._rev}),n.update(t=>{const r=t.automations.findIndex(i=>i._id===(e==null?void 0:e._id));return t.automations.splice(r,1),t.automations=[...t.automations],t.selectedAutomation=null,t.selectedBlock=null,t})},test:async(e,t)=>{n.update(i=>(i.selectedAutomation.testResults=null,i));const r=await on.testAutomation({automationId:e==null?void 0:e._id,testData:t});n.update(i=>(i.selectedAutomation.testResults=r,i))},select:e=>{n.update(t=>(t.selectedAutomation=new eT(k1.cloneDeep(e)),t.selectedBlock=null,t))},getLogs:async({automationId:e,startDate:t,status:r,page:i}={})=>await on.getAutomationLogs({automationId:e,startDate:t,status:r,page:i}),clearLogErrors:async({automationId:e,appId:t}={})=>await on.clearAutomationLogErrors({automationId:e,appId:t}),addTestDataToAutomation:e=>{n.update(t=>(t.selectedAutomation.addTestData(e),t))},addBlockToAutomation:(e,t)=>{n.update(r=>(r.selectedBlock=r.selectedAutomation.addBlock(k1.cloneDeep(e),t),r))},toggleFieldControl:e=>{n.update(t=>(t.selectedBlock.rowControl=e,t))},deleteAutomationBlock:e=>{n.update(t=>{const r=t.selectedAutomation.automation.definition.steps.findIndex(o=>o.id===e.id);t.selectedAutomation.deleteBlock(e.id);const i=t.selectedAutomation.automation.definition.steps;let a;return i[r]!=null?a=i[r]:i[r-1]!=null?a=i[r-1]:a=t.selectedAutomation.automation.definition.trigger||null,t.selectedBlock=a,t})}}),h4e=()=>{const t=cG("bb-temporal",{}),r=(a,o,l)=>{const s={...o,expiry:Date.now()+l*1e3};t.update(u=>({...u,[a]:s}))},i=a=>{const o=gn(t)[a];return o?o.expiry<Date.now()?(t.update(s=>(delete s[a],s)),null):o:void 0};return{subscribe:t.subscribe,actions:{setExpiring:r,getExpiring:i}}},m4e=()=>{const n=document.documentElement,e={theme:"darkest"},t=cG("bb-theme",e);return t.subscribe(r=>{if(r.darkMode!==void 0){t.set(e);return}Yg.forEach(a=>{n.classList.toggle(`spectrum--${a.class}`,a.class===r.theme)});const i=Yg.find(a=>a.class===r.theme);i!=null&&i.base&&n.classList.add(`spectrum--${i.base}`)}),t},nn=x3e(),Or=p4e(),Hv=m4e(),Bv=h4e(),Mo=Il(nn,n=>n.screens.find(e=>e._id===n.selectedScreenId)),nY=Il(nn,n=>{var e;return(e=n.layouts)==null?void 0:e.find(t=>t._id===n.selectedLayoutId)}),I3=Il([nn,Mo],([n,e])=>!e||!n.selectedComponentId?null:k2(e==null?void 0:e.props,n.selectedComponentId)),vl=Mo,rY=Il(nn,n=>n.screens.slice().sort((e,t)=>{const r=Xg(e.routing.roleId),i=Xg(t.routing.roleId);if(r!==i)return r>i?-1:1;const a=!!e.routing.homeScreen,o=!!t.routing.homeScreen;if(a!==o)return a?-1:1;const l=e.routing.route.split("/"),s=t.routing.route.split("/");let u=Math.min(l.length,s.length);for(let c=0;c<u;c++)if(l[c]!==s[c])return l[c]<s[c]?-1:1;return l.length<s.length?-1:1})),g4e=Il([nn,Mo],([n,e])=>v5(e==null?void 0:e.props,n.selectedComponentId).map(t=>t._id)),tT={platformUrl:"",logoUrl:void 0,docsUrl:void 0,company:"Budibase",oidc:void 0,google:void 0,oidcCallbackUrl:"",googleCallbackUrl:""};function v4e(){const n=hi(tT),{subscribe:e,set:t}=n;async function r(){const a=gn(sr).tenantId,o=await on.getTenantConfig(a);t({...tT,...o.config,_rev:o._rev})}async function i(a){const o=gn(n);delete o.oidc,delete o.google,delete o.oidcCallbackUrl,delete o.googleCallbackUrl,await on.saveConfig({type:"settings",config:{...gn(n),...a},_rev:gn(n)._rev}),await r()}return{subscribe:e,set:t,save:i,init:r}}const Bs=v4e();var t6={exports:{}};/**
|
|
425
|
+
`),a=[],o,l=0;l<i.length;l+=2){var s=null;(o=t.exec(i[l]))?s={url:o[2],func:o[3],args:[],line:+o[1],column:null}:(o=r.exec(i[l]))&&(s={url:o[6],func:o[3]||o[4],args:o[5]?o[5].split(","):[],line:+o[1],column:+o[2]}),s&&(!s.func&&s.line&&(s.func=ug),a.push(s))}return a.length?{message:xk(n),name:n.name,stack:a}:null}function YE(n,e){try{return qi({},n,{stack:n.stack.slice(e)})}catch{return n}}function xk(n){var e=n&&n.message;return e?e.error&&typeof e.error.message=="string"?e.error.message:e:"No error message"}var w3e=50;function KG(n){var e=jk(n.stack),t={type:n.name,value:n.message};return e&&e.length&&(t.stacktrace={frames:e}),t.type===void 0&&t.value===""&&(t.value="Unrecoverable error caught"),t}function k3e(n,e,t){var r={exception:{values:[{type:Bk(n)?n.constructor.name:t?"UnhandledRejection":"Error",value:"Non-Error "+(t?"promise rejection":"exception")+" captured with keys: "+Pfe(n)}]},extra:{__serialized__:NG(n)}};if(e){var i=e7(e),a=jk(i.stack);r.stacktrace={frames:a}}return r}function KE(n){var e=KG(n);return{exception:{values:[e]}}}function jk(n){if(!n||!n.length)return[];var e=n,t=e[0].func||"",r=e[e.length-1].func||"";return(t.indexOf("captureMessage")!==-1||t.indexOf("captureException")!==-1)&&(e=e.slice(1)),r.indexOf("sentryWrapped")!==-1&&(e=e.slice(0,-1)),e.slice(0,w3e).map(function(i){return{colno:i.column===null?void 0:i.column,filename:i.url||e[0].url,function:i.func||"?",in_app:!0,lineno:i.line===null?void 0:i.line}}).reverse()}function j$(n,e,t){t===void 0&&(t={});var r;if(PG(n)&&n.error){var i=n;return n=i.error,r=KE(e7(n)),r}if(OE(n)||zfe(n)){var a=n,o=a.name||(OE(a)?"DOMError":"DOMException"),l=a.message?o+": "+a.message:o;return r=U$(l,e,t),F$(r,l),r}if(IG(n))return r=KE(e7(n)),r;if(Hk(n)||Bk(n)){var s=n;return r=k3e(s,e,t.rejection),e6(r,{synthetic:!0}),r}return r=U$(n,e,t),F$(r,""+n,void 0),e6(r,{synthetic:!0}),r}function U$(n,e,t){t===void 0&&(t={});var r={message:n};if(t.attachStacktrace&&e){var i=e7(e),a=jk(i.stack);r.stacktrace={frames:a}}return r}var XG=function(){function n(e){this.options=e,this._buffer=new Vfe(30),this._api=new GG(this.options.dsn),this.url=this._api.getStoreEndpointWithUrlEncodedAuth()}return n.prototype.sendEvent=function(e){throw new Q4("Transport Class has to implement `sendEvent` method")},n.prototype.close=function(e){return this._buffer.drain(e)},n}(),z3e=Ru(),A3e=function(n){S7(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return e.prototype.sendEvent=function(t){var r=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var i=YG(t,this._api),a={body:i.body,method:"POST",referrerPolicy:Nfe()?"origin":""};return this.options.fetchParameters!==void 0&&Object.assign(a,this.options.fetchParameters),this.options.headers!==void 0&&(a.headers=this.options.headers),this._buffer.add(new cc(function(o,l){z3e.fetch(i.url,a).then(function(s){var u=H3.fromHttpCode(s.status);if(u===H3.Success){o({status:u});return}if(u===H3.RateLimit){var c=Date.now();r._disabledUntil=new Date(c+VG(c,s.headers.get("Retry-After"))),Oo.warn("Too many requests, backing off till: "+r._disabledUntil)}l(s)}).catch(l)}))},e}(XG),M3e=function(n){S7(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t._disabledUntil=new Date(Date.now()),t}return e.prototype.sendEvent=function(t){var r=this;if(new Date(Date.now())<this._disabledUntil)return Promise.reject({event:t,reason:"Transport locked till "+this._disabledUntil+" due to too many requests.",status:429});var i=YG(t,this._api);return this._buffer.add(new cc(function(a,o){var l=new XMLHttpRequest;l.onreadystatechange=function(){if(l.readyState===4){var u=H3.fromHttpCode(l.status);if(u===H3.Success){a({status:u});return}if(u===H3.RateLimit){var c=Date.now();r._disabledUntil=new Date(c+VG(c,l.getResponseHeader("Retry-After"))),Oo.warn("Too many requests, backing off till: "+r._disabledUntil)}o(l)}},l.open("POST",i.url);for(var s in r.options.headers)r.options.headers.hasOwnProperty(s)&&l.setRequestHeader(s,r.options.headers[s]);l.send(i.body)}))},e}(XG),C3e=function(n){S7(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype._setupTransport=function(){if(!this._options.dsn)return n.prototype._setupTransport.call(this);var t=qi({},this._options.transportOptions,{dsn:this._options.dsn});return this._options.transport?new this._options.transport(t):Pk()?new A3e(t):new M3e(t)},e.prototype.eventFromException=function(t,r){var i=r&&r.syntheticException||void 0,a=j$(t,i,{attachStacktrace:this._options.attachStacktrace});return e6(a,{handled:!0,type:"generic"}),a.level=o5.Error,r&&r.event_id&&(a.event_id=r.event_id),cc.resolve(a)},e.prototype.eventFromMessage=function(t,r,i){r===void 0&&(r=o5.Info);var a=i&&i.syntheticException||void 0,o=U$(t,a,{attachStacktrace:this._options.attachStacktrace});return o.level=r,i&&i.event_id&&(o.event_id=i.event_id),cc.resolve(o)},e}(c3e),q$=0;function XE(){return q$>0}function S3e(){q$+=1,setTimeout(function(){q$-=1})}function wh(n,e,t){if(e===void 0&&(e={}),typeof n!="function")return n;try{if(n.__sentry__)return n;if(n.__sentry_wrapped__)return n.__sentry_wrapped__}catch{return n}var r=function(){var o=Array.prototype.slice.call(arguments);try{t&&typeof t=="function"&&t.apply(this,arguments);var l=o.map(function(s){return wh(s,e)});return n.handleEvent?n.handleEvent.apply(this,l):n.apply(this,l)}catch(s){throw S3e(),i3e(function(u){u.addEventProcessor(function(c){var f=qi({},c);return e.mechanism&&(F$(f,void 0,void 0),e6(f,e.mechanism)),f.extra=qi({},f.extra,{arguments:o}),f}),WG(s)}),s}};try{for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])}catch{}n.prototype=n.prototype||{},r.prototype=n.prototype,Object.defineProperty(n,"__sentry_wrapped__",{enumerable:!1,value:r}),Object.defineProperties(r,{__sentry__:{enumerable:!1,value:!0},__sentry_original__:{enumerable:!1,value:n}});try{var a=Object.getOwnPropertyDescriptor(r,"name");a.configurable&&Object.defineProperty(r,"name",{get:function(){return n.name}})}catch{}return r}var L3e=function(){function n(e){this.name=n.id,this._onErrorHandlerInstalled=!1,this._onUnhandledRejectionHandlerInstalled=!1,this._options=qi({onerror:!0,onunhandledrejection:!0},e)}return n.prototype.setupOnce=function(){Error.stackTraceLimit=50,this._options.onerror&&(Oo.log("Global Handler attached: onerror"),this._installGlobalOnErrorHandler()),this._options.onunhandledrejection&&(Oo.log("Global Handler attached: onunhandledrejection"),this._installGlobalOnUnhandledRejectionHandler())},n.prototype._installGlobalOnErrorHandler=function(){var e=this;this._onErrorHandlerInstalled||(md({callback:function(t){var r=t.error,i=uc(),a=i.getIntegration(n),o=r&&r.__sentry_own_request__===!0;if(!(!a||XE()||o)){var l=i.getClient(),s=Qg(r)?e._eventFromIncompleteOnError(t.msg,t.url,t.line,t.column):e._enhanceEventWithInitialFrame(j$(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!1}),t.url,t.line,t.column);e6(s,{handled:!1,type:"onerror"}),i.captureEvent(s,{originalException:r})}},type:"error"}),this._onErrorHandlerInstalled=!0)},n.prototype._installGlobalOnUnhandledRejectionHandler=function(){var e=this;this._onUnhandledRejectionHandlerInstalled||(md({callback:function(t){var r=t;try{"reason"in t?r=t.reason:"detail"in t&&"reason"in t.detail&&(r=t.detail.reason)}catch{}var i=uc(),a=i.getIntegration(n),o=r&&r.__sentry_own_request__===!0;if(!a||XE()||o)return!0;var l=i.getClient(),s=Qg(r)?e._eventFromIncompleteRejection(r):j$(r,void 0,{attachStacktrace:l&&l.getOptions().attachStacktrace,rejection:!0});s.level=o5.Error,e6(s,{handled:!1,type:"onunhandledrejection"}),i.captureEvent(s,{originalException:r})},type:"unhandledrejection"}),this._onUnhandledRejectionHandlerInstalled=!0)},n.prototype._eventFromIncompleteOnError=function(e,t,r,i){var a=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,o=PG(e)?e.message:e,l;if(Qh(o)){var s=o.match(a);s&&(l=s[1],o=s[2])}var u={exception:{values:[{type:l||"Error",value:o}]}};return this._enhanceEventWithInitialFrame(u,t,r,i)},n.prototype._eventFromIncompleteRejection=function(e){return{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+e}]}}},n.prototype._enhanceEventWithInitialFrame=function(e,t,r,i){e.exception=e.exception||{},e.exception.values=e.exception.values||[],e.exception.values[0]=e.exception.values[0]||{},e.exception.values[0].stacktrace=e.exception.values[0].stacktrace||{},e.exception.values[0].stacktrace.frames=e.exception.values[0].stacktrace.frames||[];var a=isNaN(parseInt(i,10))?void 0:i,o=isNaN(parseInt(r,10))?void 0:r,l=Qh(t)&&t.length>0?t:Lfe();return e.exception.values[0].stacktrace.frames.length===0&&e.exception.values[0].stacktrace.frames.push({colno:a,filename:l,function:"?",in_app:!0,lineno:o}),e},n.id="GlobalHandlers",n}(),E3e=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],T3e=function(){function n(e){this.name=n.id,this._options=qi({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},e)}return n.prototype._wrapTimeFunction=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=t[0];return t[0]=wh(i,{mechanism:{data:{function:N5(e)},handled:!0,type:"instrument"}}),e.apply(this,t)}},n.prototype._wrapRAF=function(e){return function(t){return e.call(this,wh(t,{mechanism:{data:{function:"requestAnimationFrame",handler:N5(e)},handled:!0,type:"instrument"}}))}},n.prototype._wrapEventTarget=function(e){var t=Ru(),r=t[e]&&t[e].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(nu(r,"addEventListener",function(i){return function(a,o,l){try{typeof o.handleEvent=="function"&&(o.handleEvent=wh(o.handleEvent.bind(o),{mechanism:{data:{function:"handleEvent",handler:N5(o),target:e},handled:!0,type:"instrument"}}))}catch{}return i.call(this,a,wh(o,{mechanism:{data:{function:"addEventListener",handler:N5(o),target:e},handled:!0,type:"instrument"}}),l)}}),nu(r,"removeEventListener",function(i){return function(a,o,l){var s=o;try{s&&s.__sentry__&&i.call(this,a,s.__sentry_original__,l)}catch{}return i.call(this,a,s,l)}}))},n.prototype._wrapXHR=function(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var i=this,a=["onload","onerror","onprogress","onreadystatechange"];return a.forEach(function(o){o in i&&typeof i[o]=="function"&&nu(i,o,function(l){var s={mechanism:{data:{function:o,handler:N5(l)},handled:!0,type:"instrument"}};return l.__sentry_original__&&(s.mechanism.data.handler=N5(l.__sentry_original__)),wh(l,s)})}),e.apply(this,t)}},n.prototype.setupOnce=function(){var e=Ru();if(this._options.setTimeout&&nu(e,"setTimeout",this._wrapTimeFunction.bind(this)),this._options.setInterval&&nu(e,"setInterval",this._wrapTimeFunction.bind(this)),this._options.requestAnimationFrame&&nu(e,"requestAnimationFrame",this._wrapRAF.bind(this)),this._options.XMLHttpRequest&&"XMLHttpRequest"in e&&nu(XMLHttpRequest.prototype,"send",this._wrapXHR.bind(this)),this._options.eventTarget){var t=Array.isArray(this._options.eventTarget)?this._options.eventTarget:E3e;t.forEach(this._wrapEventTarget.bind(this))}},n.id="TryCatch",n}(),JG=function(){function n(e){this.name=n.id,this._options=qi({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},e)}return n.prototype.addSentryBreadcrumb=function(e){!this._options.sentry||uc().addBreadcrumb({category:"sentry."+(e.type==="transaction"?"transaction":"event"),event_id:e.event_id,level:e.level,message:fd(e)},{event:e})},n.prototype._consoleBreadcrumb=function(e){var t={category:"console",data:{arguments:e.args,logger:"console"},level:o5.fromString(e.level),message:PE(e.args," ")};if(e.level==="assert")if(e.args[0]===!1)t.message="Assertion failed: "+(PE(e.args.slice(1)," ")||"console.assert"),t.data.arguments=e.args.slice(1);else return;uc().addBreadcrumb(t,{input:e.args,level:e.level})},n.prototype._domBreadcrumb=function(e){var t;try{t=e.event.target?Tv(e.event.target):Tv(e.event)}catch{t="<unknown>"}t.length!==0&&uc().addBreadcrumb({category:"ui."+e.name,message:t},{event:e.event,name:e.name})},n.prototype._xhrBreadcrumb=function(e){if(e.endTimestamp){if(e.xhr.__sentry_own_request__)return;uc().addBreadcrumb({category:"xhr",data:e.xhr.__sentry_xhr__,type:"http"},{xhr:e.xhr});return}},n.prototype._fetchBreadcrumb=function(e){!e.endTimestamp||e.fetchData.url.match(/sentry_key/)&&e.fetchData.method==="POST"||(e.error?uc().addBreadcrumb({category:"fetch",data:e.fetchData,level:o5.Error,type:"http"},{data:e.error,input:e.args}):uc().addBreadcrumb({category:"fetch",data:qi({},e.fetchData,{status_code:e.response.status}),type:"http"},{input:e.args,response:e.response}))},n.prototype._historyBreadcrumb=function(e){var t=Ru(),r=e.from,i=e.to,a=uy(t.location.href),o=uy(r),l=uy(i);o.path||(o=a),a.protocol===l.protocol&&a.host===l.host&&(i=l.relative),a.protocol===o.protocol&&a.host===o.host&&(r=o.relative),uc().addBreadcrumb({category:"navigation",data:{from:r,to:i}})},n.prototype.setupOnce=function(){var e=this;this._options.console&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._consoleBreadcrumb.apply(e,hl(t))},type:"console"}),this._options.dom&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._domBreadcrumb.apply(e,hl(t))},type:"dom"}),this._options.xhr&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._xhrBreadcrumb.apply(e,hl(t))},type:"xhr"}),this._options.fetch&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._fetchBreadcrumb.apply(e,hl(t))},type:"fetch"}),this._options.history&&md({callback:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];e._historyBreadcrumb.apply(e,hl(t))},type:"history"})},n.id="Breadcrumbs",n}(),D3e="cause",H3e=5,B3e=function(){function n(e){e===void 0&&(e={}),this.name=n.id,this._key=e.key||D3e,this._limit=e.limit||H3e}return n.prototype.setupOnce=function(){R_(function(e,t){var r=uc().getIntegration(n);return r?r._handler(e,t):e})},n.prototype._handler=function(e,t){if(!e.exception||!e.exception.values||!t||!rp(t.originalException,Error))return e;var r=this._walkErrorTree(t.originalException,this._key);return e.exception.values=hl(r,e.exception.values),e},n.prototype._walkErrorTree=function(e,t,r){if(r===void 0&&(r=[]),!rp(e[t],Error)||r.length+1>=this._limit)return r;var i=e7(e[t]),a=KG(i);return this._walkErrorTree(e[t],t,hl([a],r))},n.id="LinkedErrors",n}(),g9=Ru(),O3e=function(){function n(){this.name=n.id}return n.prototype.setupOnce=function(){R_(function(e){if(uc().getIntegration(n)){if(!g9.navigator||!g9.location)return e;var t=e.request||{};return t.url=t.url||g9.location.href,t.headers=t.headers||{},t.headers["User-Agent"]=g9.navigator.userAgent,qi({},e,{request:t})}return e})},n.id="UserAgent",n}(),I3e="sentry.javascript.browser",JE="5.19.1",P3e=function(n){S7(e,n);function e(t){return t===void 0&&(t={}),n.call(this,C3e,t)||this}return e.prototype._prepareEvent=function(t,r,i){return t.platform=t.platform||"javascript",t.sdk=qi({},t.sdk,{name:I3e,packages:hl(t.sdk&&t.sdk.packages||[],[{name:"npm:@sentry/browser",version:JE}]),version:JE}),n.prototype._prepareEvent.call(this,t,r,i)},e.prototype._sendEvent=function(t){var r=this.getIntegration(JG);r&&r.addSentryBreadcrumb(t),n.prototype._sendEvent.call(this,t)},e.prototype.showReportDialog=function(t){t===void 0&&(t={});var r=Ru().document;if(!!r){if(!this._isEnabled()){Oo.error("Trying to call showReportDialog with Sentry Client is disabled");return}var i=t.dsn||this.getDsn();if(!t.eventId){Oo.error("Missing `eventId` option in showReportDialog call");return}if(!i){Oo.error("Missing `Dsn` option in showReportDialog call");return}var a=r.createElement("script");a.async=!0,a.src=new GG(i).getReportDialogEndpoint(t),t.onLoad&&(a.onload=t.onLoad),(r.head||r.body).appendChild(a)}},e}(s3e),V3e=[new h3e,new p3e,new T3e,new JG,new L3e,new B3e,new O3e];function R3e(n){if(n===void 0&&(n={}),n.defaultIntegrations===void 0&&(n.defaultIntegrations=V3e),n.release===void 0){var e=Ru();e.SENTRY_RELEASE&&e.SENTRY_RELEASE.id&&(n.release=e.SENTRY_RELEASE.id)}f3e(P3e,n)}class N3e{constructor(e){this.dsn=e}init(){this.dsn&&(R3e({dsn:this.dsn}),this.initalised=!0)}captureException(e){!this.initalised||WG(e)}identify(e){!this.initalised||r3e(t=>{t.setUser({id:e})})}}const v9=new _fe("phc_bIjZL7oh2GEUd2vqvTBH8WvrX0fWTFQMs6H5KQxiUxU"),vy=new N3e(""),_9=new bfe("qz2sxfuv");class F3e{constructor(){this.clients=[v9,vy,_9]}async activate(){(await on.getAnalyticsStatus()).enabled&&this.clients.forEach(t=>t.init())}identify(e){v9.identify(e),vy.identify(e)}captureException(e){vy.captureException(e)}captureEvent(e,t={}){v9.captureEvent(e,t),_9.captureEvent(e,t)}showChat(e){_9.show(e)}async logout(){v9.logout(),_9.logout()}}const Y5=new F3e,k2=(n,e)=>ZG(n,t=>t._id===e),ac=(n,e,t)=>{if(!n||!e)return null;if(n._id===e)return t;if(!n._children)return null;for(const r of n._children){const i=ac(r,e,n);if(i)return i}return null},v5=(n,e,t=[])=>{if(!n||!e)return[];if(n._id===e)return[...t,n];if(!n._children)return[];for(const r of n._children){const i=[...t,n],a=v5(r,e,i);if(a!=null&&a.length)return a}return[]},ip=(n,e)=>{if(!n||!e)return[];let t=[];return n._children&&n._children.forEach(r=>{t=[...t,...ip(r,e)]}),e(n)&&t.push(n),t.reverse()},F_=(n,e,t)=>{if(!t)return null;const r=v5(n,e).reverse();for(let i of r)if(t(i))return i;return null},ZG=(n,e)=>{if(!n||!e)return null;if(e(n))return n;if(!n._children)return null;for(const t of n._children){const r=ZG(t,e);if(r)return r}return null};let _y={};const z6=n=>{var r,i,a;if(!n)return[];if(n.startsWith("@budibase")||(n=`@budibase/standard-components/${n}`),_y[n])return _y[n];const e=nn.actions.components.getDefinition(n);let t=[];return e&&(t=(i=(r=e.settings)==null?void 0:r.filter(o=>!o.section))!=null?i:[],(a=e.settings)==null||a.filter(o=>o.section).forEach(o=>{t=t.concat(o.settings||[])})),_y[n]=t,t},Uk=n=>{var r;if(!n)return;const e=n._id,t=c5();if(n._id=t,(r=n._children)!=null&&r.length){let i=JSON.stringify(n._children);i=i.replace(new RegExp(e,"g"),t),qW(i).forEach(o=>{let l=o.replace(/\\"/g,'"'),s=Gh(l);if(s!=null){s=s.replace(new RegExp(e,"g"),t);let u=Mh(s);u=u.replace(/"/g,'\\"'),i=i.replace(o,u)}}),n._children=JSON.parse(i),n._children.forEach(Uk)}},by={apps:[],name:"",url:"",description:"",layouts:[],screens:[],components:[],clientFeatures:{spectrumThemes:!1,intelligentLoading:!1,deviceAwareness:!1,state:!1,rowSelection:!1,customThemes:!1,devicePreview:!1,messagePassing:!1,continueIfAction:!1,showNotificationAction:!1},errors:[],hasAppPackage:!1,libraries:null,appId:"",routes:{},clientLibPath:"",theme:"",customTheme:{},previewDevice:"desktop",highlightedSettingKey:null,selectedScreenId:null,selectedComponentId:null,selectedLayoutId:null},x3e=()=>{const n=hi({...by}),e=fG(async(t,r)=>{const a=gn(n).screens.find(s=>s._id===r);if(!a)return;let o=k1.cloneDeep(a);if(t(o)!==!1)return await n.actions.screens.save(o)});return n.actions={reset:()=>{n.set({...by})},initialise:async t=>{const{layouts:r,screens:i,application:a,clientLibPath:o}=t,l=await on.fetchComponentLibDefinitions(a.appId),s=Object.keys(l).filter(u=>u.startsWith("plugin/"));n.update(u=>({...u,libraries:a.componentLibraries,components:l,customComponents:s,clientFeatures:{...by.clientFeatures,...l.features},name:a.name,description:a.description,appId:a.appId,url:a.url,layouts:r||[],screens:i||[],theme:a.theme||"spectrum--light",customTheme:a.customTheme,hasAppPackage:!0,appInstance:a.instance,clientLibPath:o,previousTopNavPath:{},version:a.version,revertableVersion:a.revertableVersion,navigation:a.navigation||{},usedPlugins:a.usedPlugins||[]})),Rd.set(a.instance),await Ti.init(),await vp.init(),await ba.init(),await Tr.init()},theme:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{theme:t}});n.update(a=>(a.theme=i.theme,a))}},customTheme:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{customTheme:t}});n.update(a=>(a.customTheme=i.customTheme,a))}},navigation:{save:async t=>{const r=gn(n).appId,i=await on.saveAppMetadata({appId:r,metadata:{navigation:t}});n.update(a=>(a.navigation=i.navigation,a))}},screens:{select:t=>{var a;const r=gn(n),i=r.screens.find(o=>o._id===t);!i||r.selectedScreenId===i._id&&r.selectedComponentId===((a=i.props)==null?void 0:a._id)||n.update(o=>{var l;return o.selectedScreenId=i._id,o.selectedComponentId=(l=i.props)==null?void 0:l._id,o})},save:async t=>{const r=gn(n),i=t._id===void 0,a=await on.saveScreen(t),o=await on.fetchAppRoutes();let l=r.usedPlugins;if(a.pluginAdded){const{application:s}=await on.fetchAppPackage(r.appId);l=s.usedPlugins||[]}return n.update(s=>{const u=s.screens.findIndex(c=>c._id===a._id);return u!==-1?s.screens.splice(u,1,a):s.screens.push(a),i&&(s.selectedScreenId=a._id,s.selectedComponentId=a.props._id),s.routes=o.routes,s.usedPlugins=l,s}),a},patch:async(t,r)=>{if(r||(r=gn(n).selectedScreenId),!(!r||!t))return await e(t,r)},delete:async t=>{const r=Array.isArray(t)?t:[t],i=[];let a=[];r.forEach(s=>{i.push(on.deleteScreen({screenId:s._id,screenRev:s._rev})),a.push(s.routing.route)}),i.push(n.actions.links.delete(a)),await Promise.all(i);const o=r.map(s=>s._id),l=await on.fetchAppRoutes();n.update(s=>(s.screens=s.screens.filter(u=>!o.includes(u._id)),o.includes(s.selectedScreenId)&&(s.selectedScreenId=null,s.selectedComponentId=null),s.routes=l.routes,s))},updateSetting:async(t,r,i)=>{if(!t||!r)return;const a=u=>{if(!u||xh(u,r)===i)return!1;Tee(u,r,i)};await n.actions.screens.patch(a,t._id);const o=gn(n),l=o.screens.find(u=>u._id===t._id);if(!l)return;const s=o.screens.filter(u=>u.routing.roleId===l.routing.roleId&&u.routing.homeScreen&&u._id!==t._id);if(s.length){const u=c=>{c.routing.homeScreen=!1};for(let c of s)await n.actions.screens.patch(u,c._id)}},removeCustomLayout:async t=>{const r=gn(n).layouts.find(a=>a._id===t.layoutId),i=a=>{a.layoutId=null,a.showNavigation=(r==null?void 0:r.props.navigation)!=="None",a.width=(r==null?void 0:r.props.width)||"Large"};await n.actions.screens.patch(i,t._id)}},preview:{setDevice:t=>{n.update(r=>(r.previewDevice=t,r))}},layouts:{select:t=>{var a;const r=gn(n),i=r.layouts.find(o=>o._id===t);!i||r.selectedLayoutId===i._id&&r.selectedComponentId===((a=i.props)==null?void 0:a._id)||n.update(o=>{var l;return o.selectedLayoutId=i._id,o.selectedComponentId=(l=i.props)==null?void 0:l._id,o})},delete:async t=>{!(t!=null&&t._id)||(await on.deleteLayout({layoutId:t._id,layoutRev:t._rev}),n.update(r=>(r.layouts=r.layouts.filter(i=>i._id!==t._id),r)))}},components:{getDefinition:t=>t?gn(n).components[t]:null,createInstance:(t,r)=>{const i=n.actions.components.getDefinition(t);if(!i)return null;const a=z6(t);let o={...r};a.forEach(s=>{s.defaultValue!==void 0&&(o[s.key]=s.defaultValue)});let l={};if(i.hasChildren&&(l._children=[]),t.endsWith("/formstep")){const s=F_(gn(Mo).props,gn(I3)._id,c=>c._component.endsWith("/form")),u=ip(s,c=>c._component.endsWith("/formstep"));l.step=u.length+1,l._instanceName=`Step ${u.length+1}`}return{_id:c5(),_component:i.component,_styles:{normal:{},hover:{},active:{}},_instanceName:`New ${i.name}`,...k1.cloneDeep(o),...l}},create:async(t,r)=>{const i=gn(n),a=n.actions.components.createInstance(t,r);if(!!a)return await n.actions.screens.patch(o=>{const l=k2(o.props,i.selectedComponentId);if(!l)return!1;let s;if(l){const u=n.actions.components.getDefinition(l._component);u!=null&&u.hasChildren?s=l:s=ac(o.props,l._id)}else s=o.props;if(!s)return!1;s._children||(s._children=[]),s._children.push(a)}),n.update(o=>(o.selectedComponentId=a._id,o)),Y5.captureEvent(Zh.COMPONENT_CREATED,{name:a._component}),a},patch:async(t,r,i)=>{if(!r&&!i){const o=gn(n);r=o.selectedComponentId,i=o.selectedScreenId}if(!r||!i||!t)return;const a=o=>{let l=k2(o.props,r);return l?t(l,o):!1};await n.actions.screens.patch(a,i)},delete:async t=>{if(!t)return;const r=gn(n);let i;r.selectedComponentId===t._id&&(i=n.actions.components.getNext(),i||(i=n.actions.components.getPrevious())),await n.actions.screens.patch(a=>{if(t=k2(a.props,t._id),!t)return!1;const o=ac(a.props,t._id);if(!o)return!1;o._children=o._children.filter(l=>l._id!==t._id)}),i&&n.update(a=>(a.selectedComponentId=i,a))},copy:(t,r=!1,i=!0)=>{if(n.update(a=>(a.componentToPaste=k1.cloneDeep(t),a.componentToPaste.isCut=r,a)),r){const a=gn(Mo),o=ac(a==null?void 0:a.props,t._id);o&&i&&n.update(l=>(l.selectedComponentId=o._id,l))}},paste:async(t,r,i)=>{const a=gn(n);if(!a.componentToPaste)return;let o;const l=u=>{if(t=k2(u.props,t._id),!t)return;const c=a.componentToPaste.isCut,f=a.componentToPaste._id;let h=k1.cloneDeep(a.componentToPaste);if(delete h.isCut,c||Uk(h),o=h._id,c){const m=ac(u.props,f);m!=null&&m._children&&(m._children=m._children.filter(_=>_._id!==f))}if(r==="inside"&&(n.actions.components.getDefinition(t._component).hasChildren||(r="below")),r==="inside")t._children||(t._children=[]),t._children.push(h);else{const m=ac(u.props,t._id);if(!(m!=null&&m._children))return!1;const _=m._children.findIndex(w=>w._id===t._id),y=r==="above"?_:_+1;m._children.splice(y,0,h)}},s=(i==null?void 0:i._id)||a.selectedScreenId;await n.actions.screens.patch(l,s),n.update(u=>(u.componentToPaste.isCut&&delete u.componentToPaste,u.selectedScreenId=s,u.selectedComponentId=o,u))},getPrevious:()=>{var l,s;const r=gn(n).selectedComponentId,i=gn(Mo),a=ac(i.props,r),o=a==null?void 0:a._children.findIndex(u=>u._id===r);if(!a||r===i.props._id)return null;if(o>0){const u=a._children[o-1];if((l=u._children)!=null&&l.length){let c=u;for(;(s=c._children)!=null&&s.length;)c=c._children[c._children.length-1];return c._id}return u._id}return a._id},getNext:()=>{var c,f;const t=gn(I3),r=t==null?void 0:t._id,i=gn(Mo),a=ac(i.props,r),o=a==null?void 0:a._children.findIndex(h=>h._id===r);if((c=t._children)!=null&&c.length)return t._children[0]._id;if(!a)return null;if(o<a._children.length-1)return a._children[o+1]._id;let l=a,s=ac(i.props,l._id),u=s==null?void 0:s._children.findIndex(h=>h._id===l._id);for(;s!=null&&u===((f=s._children)==null?void 0:f.length)-1;)l=s,s=ac(i.props,l._id),u=s==null?void 0:s._children.findIndex(h=>h._id===l._id);return s?s._children[u+1]._id:null},selectPrevious:()=>{const t=n.actions.components.getPrevious();t&&n.update(r=>(r.selectedComponentId=t,r))},selectNext:()=>{const t=n.actions.components.getNext();t&&n.update(r=>(r.selectedComponentId=t,r))},moveUp:async t=>{await n.actions.screens.patch(r=>{const i=t==null?void 0:t._id,a=ac(r.props,i),o=a==null?void 0:a._children.findIndex(s=>s._id===i);if(!a||o===0&&a._id===r.props._id)return;const l=k1.cloneDeep(a._children[o]);if(a._children=a._children.filter(s=>s._id!==i),o>0){const s=a._children[o-1];n.actions.components.getDefinition(s._component).hasChildren?s._children.push(l):a._children.splice(o-1,0,l)}else if(a._id!==r.props._id){const s=ac(r.props,a._id),u=s._children.findIndex(c=>c._id===a._id);s._children.splice(u,0,l)}})},moveDown:async t=>{await n.actions.screens.patch(r=>{var s;const i=t==null?void 0:t._id,a=ac(r.props,i);if(!((s=a==null?void 0:a._children)!=null&&s.length))return!1;const o=a._children.findIndex(u=>u._id===i);if(o===a._children.length-1&&a._id===r.props._id)return;const l=k1.cloneDeep(a._children[o]);if(a._children=a._children.filter(u=>u._id!==i),o<a._children.length){const u=a._children[o];n.actions.components.getDefinition(u._component).hasChildren?u._children.splice(0,0,l):a._children.splice(o+1,0,l)}else{const u=ac(r.props,a._id),c=u._children.findIndex(f=>f._id===a._id);u._children.splice(c+1,0,l)}})},updateStyle:async(t,r)=>{await n.actions.components.patch(i=>{r==null||r===""?delete i._styles.normal[t]:i._styles.normal[t]=r})},updateCustomStyle:async t=>{await n.actions.components.patch(r=>{r._styles.custom=t})},updateConditions:async t=>{await n.actions.components.patch(r=>{r._conditions=t})},updateSetting:async(t,r)=>{await n.actions.components.patch(i=>{if(!t||!i||i[t]===r)return!1;i[t]=r})}},links:{save:async(t,r)=>{const i=gn(n).navigation;let a=[...i==null?void 0:i.links];a.find(o=>o.url===t&&o.text===r)||(a.push({text:r,url:t}),await n.actions.navigation.save({...i,links:[...a]}))},delete:async t=>{const r=gn(n).navigation;let i=r==null?void 0:r.links;!(i!=null&&i.length)||(t=Array.isArray(t)?t:[t],i=i.filter(a=>!t.includes(a.url)),await n.actions.navigation.save({...r,links:i}))}},settings:{highlight:t=>{n.update(r=>({...r,highlightedSettingKey:t}))}}},n};var pc={exports:{}},QG={exports:{}},q9=1;function j3e(){return q9=(q9*9301+49297)%233280,q9/233280}function U3e(n){q9=n}var q3e={nextValue:j3e,seed:U3e},W$=q3e,gd="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-",j5,ZE,cg;function G$(){cg=!1}function eY(n){if(!n){j5!==gd&&(j5=gd,G$());return}if(n!==j5){if(n.length!==gd.length)throw new Error("Custom alphabet for shortid must be "+gd.length+" unique characters. You submitted "+n.length+" characters: "+n);var e=n.split("").filter(function(t,r,i){return r!==i.lastIndexOf(t)});if(e.length)throw new Error("Custom alphabet for shortid must be "+gd.length+" unique characters. These characters were not unique: "+e.join(", "));j5=n,G$()}}function W3e(n){return eY(n),j5}function G3e(n){W$.seed(n),ZE!==n&&(G$(),ZE=n)}function Y3e(){j5||eY(gd);for(var n=j5.split(""),e=[],t=W$.nextValue(),r;n.length>0;)t=W$.nextValue(),r=Math.floor(t*n.length),e.push(n.splice(r,1)[0]);return e.join("")}function tY(){return cg||(cg=Y3e(),cg)}function K3e(n){var e=tY();return e[n]}function X3e(){return j5||gd}var qk={get:X3e,characters:W3e,seed:G3e,lookup:K3e,shuffled:tY},yy=typeof window=="object"&&(window.crypto||window.msCrypto),Y$;!yy||!yy.getRandomValues?Y$=function(n){for(var e=[],t=0;t<n;t++)e.push(Math.floor(Math.random()*256));return e}:Y$=function(n){return yy.getRandomValues(new Uint8Array(n))};var J3e=Y$,Z3e=function(n,e,t){for(var r=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*r*t/e.length),a="";;)for(var o=n(i),l=i;l--;)if(a+=e[o[l]&r]||"",a.length===+t)return a},Q3e=qk,e4e=J3e,t4e=Z3e;function n4e(n){for(var e=0,t,r="";!t;)r=r+t4e(e4e,Q3e.get(),1),t=n<Math.pow(16,e+1),e++;return r}var r4e=n4e,b9=r4e,i4e=1567752802062,a4e=7,y9,QE;function o4e(n){var e="",t=Math.floor((Date.now()-i4e)*.001);return t===QE?y9++:(y9=0,QE=t),e=e+b9(a4e),e=e+b9(n),y9>0&&(e=e+b9(y9)),e=e+b9(t),e}var l4e=o4e,s4e=qk;function u4e(n){if(!n||typeof n!="string"||n.length<6)return!1;var e=new RegExp("[^"+s4e.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]");return!e.test(n)}var c4e=u4e;(function(n){var e=qk,t=l4e,r=c4e,i=0;function a(u){return e.seed(u),n.exports}function o(u){return i=u,n.exports}function l(u){return u!==void 0&&e.characters(u),e.shuffled()}function s(){return t(i)}n.exports=s,n.exports.generate=s,n.exports.seed=a,n.exports.worker=o,n.exports.characters=l,n.exports.isValid=r})(QG);(function(n){n.exports=QG.exports})(pc);class eT{constructor(e){this.automation=e}hasTrigger(){return this.automation.definition.trigger}addTestData(e){this.automation.testData={...this.automation.testData,...e}}addBlock(e,t){if(!this.hasTrigger()&&e.type==="TRIGGER"){const i={id:pc.exports.generate(),...e};return this.automation.definition.trigger=i,i}const r={id:pc.exports.generate(),...e};return this.automation.definition.steps.splice(t,0,r),r}updateBlock(e,t){const{steps:r,trigger:i}=this.automation.definition;if(i&&i.id===t){this.automation.definition.trigger=e;return}const a=r.findIndex(o=>o.id===t);if(a<0)throw new Error("Block not found.");r.splice(a,1,e),this.automation.definition.steps=r}deleteBlock(e){const{steps:t,trigger:r}=this.automation.definition;if(r&&r.id===e){this.automation.definition.trigger=null;return}const i=t.findIndex(a=>a.id===e);if(i<0)throw new Error("Block not found.");t.splice(i,1),this.automation.definition.steps=t}constructBlock(e,t,r){return{...r,inputs:r.inputs||{},stepId:t,type:e}}}const f4e={automations:[],showTestPanel:!1,blockDefinitions:{TRIGGER:[],ACTION:[]},selectedAutomation:null},p4e=()=>{const n=hi(f4e);return n.actions=d4e(n),n},d4e=n=>({definitions:async()=>{const e=await on.getAutomationDefinitions();return n.update(t=>(t.blockDefinitions={TRIGGER:e.trigger,ACTION:e.action},t)),e},fetch:async()=>{const e=await Promise.all([on.getAutomations(),on.getAutomationDefinitions()]);n.update(t=>{var i;let r=(i=t.selectedAutomation)==null?void 0:i.automation;return t.automations=e[0],t.blockDefinitions={TRIGGER:e[1].trigger,ACTION:e[1].action},r&&(r=e[0].filter(a=>a._id===r._id),t.selectedAutomation=new eT(r[0])),t})},create:async({name:e})=>{const t={name:e,type:"automation",definition:{steps:[]}},r=await on.createAutomation(t);n.update(i=>(i.automations=[...i.automations,r.automation],n.actions.select(r.automation),i))},duplicate:async e=>{const t=await on.createAutomation({...e,name:`${e.name} - copy`,_id:void 0,_ref:void 0});n.update(r=>(r.automations=[...r.automations,t.automation],n.actions.select(t.automation),r))},save:async e=>{const t=await on.updateAutomation(e);n.update(r=>{const i=t.automation,a=r.automations.findIndex(o=>o._id===e._id);if(a!==-1)return r.automations.splice(a,1,i),r.automations=[...r.automations],n.actions.select(i),r})},delete:async e=>{await on.deleteAutomation({automationId:e==null?void 0:e._id,automationRev:e==null?void 0:e._rev}),n.update(t=>{const r=t.automations.findIndex(i=>i._id===(e==null?void 0:e._id));return t.automations.splice(r,1),t.automations=[...t.automations],t.selectedAutomation=null,t.selectedBlock=null,t})},test:async(e,t)=>{n.update(i=>(i.selectedAutomation.testResults=null,i));const r=await on.testAutomation({automationId:e==null?void 0:e._id,testData:t});n.update(i=>(i.selectedAutomation.testResults=r,i))},select:e=>{n.update(t=>(t.selectedAutomation=new eT(k1.cloneDeep(e)),t.selectedBlock=null,t))},getLogs:async({automationId:e,startDate:t,status:r,page:i}={})=>await on.getAutomationLogs({automationId:e,startDate:t,status:r,page:i}),clearLogErrors:async({automationId:e,appId:t}={})=>await on.clearAutomationLogErrors({automationId:e,appId:t}),addTestDataToAutomation:e=>{n.update(t=>(t.selectedAutomation.addTestData(e),t))},addBlockToAutomation:(e,t)=>{n.update(r=>(r.selectedBlock=r.selectedAutomation.addBlock(k1.cloneDeep(e),t),r))},toggleFieldControl:e=>{n.update(t=>(t.selectedBlock.rowControl=e,t))},deleteAutomationBlock:e=>{n.update(t=>{const r=t.selectedAutomation.automation.definition.steps.findIndex(o=>o.id===e.id);t.selectedAutomation.deleteBlock(e.id);const i=t.selectedAutomation.automation.definition.steps;let a;return i[r]!=null?a=i[r]:i[r-1]!=null?a=i[r-1]:a=t.selectedAutomation.automation.definition.trigger||null,t.selectedBlock=a,t})}}),h4e=()=>{const t=cG("bb-temporal",{}),r=(a,o,l)=>{const s={...o,expiry:Date.now()+l*1e3};t.update(u=>({...u,[a]:s}))},i=a=>{const o=gn(t)[a];return o?o.expiry<Date.now()?(t.update(s=>(delete s[a],s)),null):o:void 0};return{subscribe:t.subscribe,actions:{setExpiring:r,getExpiring:i}}},m4e=()=>{const n=document.documentElement,e={theme:"darkest"},t=cG("bb-theme",e);return t.subscribe(r=>{if(r.darkMode!==void 0){t.set(e);return}Yg.forEach(a=>{n.classList.toggle(`spectrum--${a.class}`,a.class===r.theme)});const i=Yg.find(a=>a.class===r.theme);i!=null&&i.base&&n.classList.add(`spectrum--${i.base}`)}),t},nn=x3e(),Or=p4e(),Hv=m4e(),Bv=h4e(),Mo=Il(nn,n=>n.screens.find(e=>e._id===n.selectedScreenId)),nY=Il(nn,n=>{var e;return(e=n.layouts)==null?void 0:e.find(t=>t._id===n.selectedLayoutId)}),I3=Il([nn,Mo],([n,e])=>!e||!n.selectedComponentId?null:k2(e==null?void 0:e.props,n.selectedComponentId)),vl=Mo,rY=Il(nn,n=>n.screens.slice().sort((e,t)=>{const r=Xg(e.routing.roleId),i=Xg(t.routing.roleId);if(r!==i)return r>i?-1:1;const a=!!e.routing.homeScreen,o=!!t.routing.homeScreen;if(a!==o)return a?-1:1;const l=e.routing.route.split("/"),s=t.routing.route.split("/");let u=Math.min(l.length,s.length);for(let c=0;c<u;c++)if(l[c]!==s[c])return l[c]<s[c]?-1:1;return l.length<s.length?-1:1})),g4e=Il([nn,Mo],([n,e])=>v5(e==null?void 0:e.props,n.selectedComponentId).map(t=>t._id)),tT={platformUrl:"",logoUrl:void 0,docsUrl:void 0,company:"Budibase",oidc:void 0,google:void 0,oidcCallbackUrl:"",googleCallbackUrl:""};function v4e(){const n=hi(tT),{subscribe:e,set:t}=n;async function r(){const a=gn(sr).tenantId,o=await on.getTenantConfig(a);t({...tT,...o.config,_rev:o._rev})}async function i(a){const o=gn(n);delete o.oidc,delete o.google,delete o.oidcCallbackUrl,delete o.googleCallbackUrl,await on.saveConfig({type:"settings",config:{...gn(n),...a},_rev:gn(n)._rev}),await r()}return{subscribe:e,set:t,save:i,init:r}}const Bs=v4e();var t6={exports:{}};/**
|
|
426
426
|
* @license
|
|
427
427
|
* Lodash <https://lodash.com/>
|
|
428
428
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
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.ffc32f54.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="1663682826212" clover="3.2.0">
|
|
3
|
+
<project timestamp="1663682826212" 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 Tue Sep 20 2022 14:
|
|
235
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
280
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
928
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
130
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
403
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
901
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
478
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
359
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
139
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
214
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
196
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
112
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
598
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
104
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
223
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
397
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
349
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
832
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
164
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
1480
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
1579
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
541
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
367
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
106
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
592
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
1033
|
+
at Tue Sep 20 2022 14:07:06 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 Tue Sep 20 2022 14:
|
|
134
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
135
135
|
</div>
|
|
136
136
|
<script src="../../../prettify.js"></script>
|
|
137
137
|
<script>
|
|
@@ -403,7 +403,7 @@ exports.validateCSVSchema = async function (ctx) {
|
|
|
403
403
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
404
404
|
Code coverage generated by
|
|
405
405
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
406
|
-
at Tue Sep 20 2022 14:
|
|
406
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
407
407
|
</div>
|
|
408
408
|
<script src="../../../prettify.js"></script>
|
|
409
409
|
<script>
|
|
@@ -190,7 +190,7 @@ exports.downloadTemplate = async function (ctx) {
|
|
|
190
190
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
191
191
|
Code coverage generated by
|
|
192
192
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
193
|
-
at Tue Sep 20 2022 14:
|
|
193
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
194
194
|
</div>
|
|
195
195
|
<script src="../../prettify.js"></script>
|
|
196
196
|
<script>
|
|
@@ -772,7 +772,7 @@ exports.getFlags = <span class="fstat-no" title="function not covered" >as</span
|
|
|
772
772
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
773
773
|
Code coverage generated by
|
|
774
774
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
775
|
-
at Tue Sep 20 2022 14:
|
|
775
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
776
776
|
</div>
|
|
777
777
|
<script src="../../prettify.js"></script>
|
|
778
778
|
<script>
|
|
@@ -148,7 +148,7 @@ exports.ExportFormats = {
|
|
|
148
148
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
149
149
|
Code coverage generated by
|
|
150
150
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
151
|
-
at Tue Sep 20 2022 14:
|
|
151
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
152
152
|
</div>
|
|
153
153
|
<script src="../../../prettify.js"></script>
|
|
154
154
|
<script>
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
147
147
|
Code coverage generated by
|
|
148
148
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
-
at Tue Sep 20 2022 14:
|
|
149
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
150
150
|
</div>
|
|
151
151
|
<script src="../../../prettify.js"></script>
|
|
152
152
|
<script>
|
|
@@ -637,7 +637,7 @@ exports.exportView = async ctx => {
|
|
|
637
637
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
638
638
|
Code coverage generated by
|
|
639
639
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
640
|
-
at Tue Sep 20 2022 14:
|
|
640
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
641
641
|
</div>
|
|
642
642
|
<script src="../../../prettify.js"></script>
|
|
643
643
|
<script>
|
|
@@ -547,7 +547,7 @@ exports.getFromMemoryDoc = async (db, viewName) => {
|
|
|
547
547
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
548
548
|
Code coverage generated by
|
|
549
549
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
550
|
-
at Tue Sep 20 2022 14:
|
|
550
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
551
551
|
</div>
|
|
552
552
|
<script src="../../../prettify.js"></script>
|
|
553
553
|
<script>
|
|
@@ -619,7 +619,7 @@ module.exports = viewTemplate
|
|
|
619
619
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
620
620
|
Code coverage generated by
|
|
621
621
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
622
|
-
at Tue Sep 20 2022 14:
|
|
622
|
+
at Tue Sep 20 2022 14:07:06 GMT+0000 (Coordinated Universal Time)
|
|
623
623
|
</div>
|
|
624
624
|
<script src="../../../prettify.js"></script>
|
|
625
625
|
<script>
|