@budibase/server 2.0.30-alpha.5 → 2.0.30-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/builder/assets/{index.eb5deb7b.js → index.44613ef4.js} +2 -2
- package/builder/index.html +1 -1
- package/coverage/clover.xml +2 -2
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +1 -1
- package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/utils/index.html +1 -1
- package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +1 -1
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +1 -1
- package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
- package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/plugins.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/dist/package.json +6 -6
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +7 -7
|
@@ -482,7 +482,7 @@ b`.split(/\n/).length!=3?function(p){for(var g=0,z=[],k=p.length;g<=k;){var L=p.
|
|
|
482
482
|
<a href="https://handlebarsjs.com/guide/" class="svelte-1tw16k3">here</a>
|
|
483
483
|
for more details.`,D(e,"class","syntax-error svelte-1tw16k3")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function XD(n){let e,t,r;return t=new $n({props:{secondary:!0,$$slots:{default:[kze]},$$scope:{ctx:n}}}),t.$on("click",n[23]),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","convert svelte-1tw16k3")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[1]&134217728&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function kze(n){let e;return{c(){e=le("Convert to JS")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function zze(n){let e,t,r,i,a,o;function l(f){n[40](f)}let s={value:n[7],placeholder:"Add text, or click the objects on the left to add them to the textbox."};n[5]!==void 0&&(s.getCaretPosition=n[5]),t=new F3({props:s}),He.push(()=>nt(t,"getCaretPosition",l)),t.$on("change",n[21]);let u=!n[0]&&KD(),c=n[17].isDev&&XD(n);return{c(){e=J("div"),O(t.$$.fragment),i=U(),u&&u.c(),a=U(),c&&c.c(),D(e,"class","main-content svelte-1tw16k3")},m(f,h){S(f,e,h),H(t,e,null),j(e,i),u&&u.m(e,null),j(e,a),c&&c.m(e,null),o=!0},p(f,h){const m={};h[0]&128&&(m.value=f[7]),!r&&h[0]&32&&(r=!0,m.getCaretPosition=f[5],rt(()=>r=!1)),t.$set(m),f[0]?u&&(u.d(1),u=null):u||(u=KD(),u.c(),u.m(e,a)),f[17].isDev?c?(c.p(f,h),h[0]&131072&&b(c,1)):(c=XD(f),c.c(),b(c,1),c.m(e,null)):c&&($e(),$(c,1,1,()=>{c=null}),we())},i(f){o||(b(t.$$.fragment,f),b(c),o=!0)},o(f){$(t.$$.fragment,f),$(c),o=!1},d(f){f&&C(e),B(t),u&&u.d(),c&&c.d()}}}function JD(n){let e,t;return e=new F1({props:{title:"JavaScript",$$slots:{default:[Cze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i[0]&4192|i[1]&134217728&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Aze(n){let e;return{c(){e=le(`JavaScript expressions are executed as functions, so ensure that
|
|
484
484
|
your expression returns a value.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Mze(n){let e,t,r,i,a;function o(s){n[41](s)}let l={height:200,value:Jh(n[6]),hints:n[12]};return n[5]!==void 0&&(l.getCaretPosition=n[5]),e=new J_({props:l}),He.push(()=>nt(e,"getCaretPosition",o)),e.$on("change",n[22]),i=new jt({props:{size:"S",$$slots:{default:[Aze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),r=U(),O(i.$$.fragment)},m(s,u){H(e,s,u),S(s,r,u),H(i,s,u),a=!0},p(s,u){const c={};u[0]&64&&(c.value=Jh(s[6])),u[0]&4096&&(c.hints=s[12]),!t&&u[0]&32&&(t=!0,c.getCaretPosition=s[5],rt(()=>t=!1)),e.$set(c);const f={};u[1]&134217728&&(f.$$scope={dirty:u,ctx:s}),i.$set(f)},i(s){a||(b(e.$$.fragment,s),b(i.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(i.$$.fragment,s),a=!1},d(s){B(e,s),s&&C(r),B(i,s)}}}function Cze(n){let e,t,r;return t=new Rt({props:{noPadding:!0,gap:"XS",$$slots:{default:[Mze]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","main-content svelte-1tw16k3")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[0]&4192|a[1]&134217728&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function Sze(n){let e,t,r,i;e=new F1({props:{title:"Handlebars",$$slots:{default:[zze]},$$scope:{ctx:n}}});let a=n[1]&&JD(n);return{c(){O(e.$$.fragment),t=U(),a&&a.c(),r=$t()},m(o,l){H(e,o,l),S(o,t,l),a&&a.m(o,l),S(o,r,l),i=!0},p(o,l){const s={};l[0]&131233|l[1]&134217728&&(s.$$scope={dirty:l,ctx:o}),e.$set(s),o[1]?a?(a.p(o,l),l[0]&2&&b(a,1)):(a=JD(o),a.c(),b(a,1),a.m(r.parentNode,r)):a&&($e(),$(a,1,1,()=>{a=null}),we())},i(o){i||(b(e.$$.fragment,o),b(a),i=!0)},o(o){$(e.$$.fragment,o),$(a),i=!1},d(o){B(e,o),o&&C(t),a&&a.d(o),o&&C(r)}}}function Lze(n){let e,t,r;return t=new Y2({props:{selected:n[3],$$slots:{default:[Sze]},$$scope:{ctx:n}}}),t.$on("select",n[20]),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","main svelte-1tw16k3")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[0]&8&&(o.selected=i[3]),a[0]&135395|a[1]&134217728&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function ZD(n){let e,t,r;return t=new Sr({props:{secondary:!0,icon:"ArrowLeft",$$slots:{default:[Eze]},$$scope:{ctx:n}}}),t.$on("click",n[31]),{c(){e=J("div"),O(t.$$.fragment)},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[1]&134217728&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function Eze(n){let e;return{c(){e=le("Back")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function QD(n){let e,t,r,i,a;function o(s){n[32](s)}let l={placeholder:"Search"};return n[2]!==void 0&&(l.value=n[2]),r=new b5({props:l}),He.push(()=>nt(r,"value",o)),{c(){e=J("div"),e.textContent="Search",t=U(),O(r.$$.fragment),D(e,"class","heading svelte-1tw16k3")},m(s,u){S(s,e,u),S(s,t,u),H(r,s,u),a=!0},p(s,u){const c={};!i&&u[0]&4&&(i=!0,c.value=s[2],rt(()=>i=!1)),r.$set(c)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){$(r.$$.fragment,s),a=!1},d(s){s&&C(e),s&&C(t),B(r,s)}}}function eH(n){let e,t,r=n[13],i=[];for(let o=0;o<r.length;o+=1)i[o]=tH(qD(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("ul");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","category-list svelte-1tw16k3")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,l){if(l[0]&73744){r=o[13];let s;for(s=0;s<r.length;s+=1){const u=qD(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=tH(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function tH(n){let e,t,r,i,a=n[55]+"",o,l,s,u,c,f,h,m;t=new dn({props:{name:n[16][n[55]]}}),u=new dn({props:{name:"ChevronRight"}});function _(){return n[33](n[55])}return{c(){e=J("li"),O(t.$$.fragment),r=U(),i=J("span"),o=le(a),l=U(),s=J("span"),O(u.$$.fragment),c=U(),D(i,"class","category-name svelte-1tw16k3"),D(s,"class","category-chevron svelte-1tw16k3"),D(e,"class","svelte-1tw16k3")},m(y,w){S(y,e,w),H(t,e,null),j(e,r),j(e,i),j(i,o),j(e,l),j(e,s),H(u,s,null),j(e,c),f=!0,h||(m=At(e,"click",_),h=!0)},p(y,w){n=y;const A={};w[0]&73728&&(A.name=n[16][n[55]]),t.$set(A),(!f||w[0]&8192)&&a!==(a=n[55]+"")&&_t(o,a)},i(y){f||(b(t.$$.fragment,y),b(u.$$.fragment,y),f=!0)},o(y){$(t.$$.fragment,y),$(u.$$.fragment,y),f=!1},d(y){y&&C(e),B(t),B(u),h=!1,m()}}}function nH(n){let e,t,r,i=n[15],a=[];for(let s=0;s<i.length;s+=1)a[s]=oH(xD(n,i,s));const o=s=>$(a[s],1,1,()=>{a[s]=null});let l=(n[4]==="Helpers"||n[2])&&lH(n);return{c(){for(let s=0;s<a.length;s+=1)a[s].c();e=U(),l&&l.c(),t=$t()},m(s,u){for(let c=0;c<a.length;c+=1)a[c].m(s,u);S(s,e,u),l&&l.m(s,u),S(s,t,u),r=!0},p(s,u){if(u[0]&624384){i=s[15];let c;for(c=0;c<i.length;c+=1){const f=xD(s,i,c);a[c]?(a[c].p(f,u),b(a[c],1)):(a[c]=oH(f),a[c].c(),b(a[c],1),a[c].m(e.parentNode,e))}for($e(),c=i.length;c<a.length;c+=1)o(c);we()}s[4]==="Helpers"||s[2]?l?l.p(s,u):(l=lH(s),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},i(s){if(!r){for(let u=0;u<i.length;u+=1)b(a[u]);r=!0}},o(s){a=a.filter(Boolean);for(let u=0;u<a.length;u+=1)$(a[u]);r=!1},d(s){Dn(a,s),s&&C(e),l&&l.d(s),s&&C(t)}}}function rH(n){let e,t,r=n[49].name+"",i,a,o,l;t=new dn({props:{name:n[16][n[49].name]}});let s=n[49].bindings,u=[];for(let c=0;c<s.length;c+=1)u[c]=aH(UD(n,s,c));return{c(){e=J("div"),O(t.$$.fragment),i=le(r),a=U(),o=J("ul");for(let c=0;c<u.length;c+=1)u[c].c();D(e,"class","cat-heading svelte-1tw16k3"),D(o,"class","svelte-1tw16k3")},m(c,f){S(c,e,f),H(t,e,null),j(e,i),S(c,a,f),S(c,o,f);for(let h=0;h<u.length;h+=1)u[h].m(o,null);l=!0},p(c,f){const h={};if(f[0]&98304&&(h.name=c[16][c[49].name]),t.$set(h),(!l||f[0]&32768)&&r!==(r=c[49].name+"")&&_t(i,r),f[0]&558848){s=c[49].bindings;let m;for(m=0;m<s.length;m+=1){const _=UD(c,s,m);u[m]?u[m].p(_,f):(u[m]=aH(_),u[m].c(),u[m].m(o,null))}for(;m<u.length;m+=1)u[m].d(1);u.length=s.length}},i(c){l||(b(t.$$.fragment,c),l=!0)},o(c){$(t.$$.fragment,c),l=!1},d(c){c&&C(e),B(t),c&&C(a),c&&C(o),Dn(u,c)}}}function Tze(n){let e=n[52].readableBinding+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&32768&&e!==(e=r[52].readableBinding+"")&&_t(t,e)},d(r){r&&C(t)}}}function Dze(n){var r;let e=((r=n[52].fieldSchema)==null?void 0:r.name)+"",t;return{c(){t=le(e)},m(i,a){S(i,t,a)},p(i,a){var o;a[0]&32768&&e!==(e=((o=i[52].fieldSchema)==null?void 0:o.name)+"")&&_t(t,e)},d(i){i&&C(t)}}}function Hze(n){let e=n[52].display.name+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&32768&&e!==(e=r[52].display.name+"")&&_t(t,e)},d(r){r&&C(t)}}}function iH(n){var a,o;let e,t,r=(((a=n[52].display)==null?void 0:a.type)||((o=n[52].fieldSchema)==null?void 0:o.type))+"",i;return{c(){e=J("span"),t=J("span"),i=le(r),D(t,"class","binding__type svelte-1tw16k3"),D(e,"class","binding__typeWrap svelte-1tw16k3")},m(l,s){S(l,e,s),j(e,t),j(t,i)},p(l,s){var u,c;s[0]&32768&&r!==(r=(((u=l[52].display)==null?void 0:u.type)||((c=l[52].fieldSchema)==null?void 0:c.type))+"")&&_t(i,r)},d(l){l&&C(e)}}}function aH(n){var h,m;let e,t,r,i,a;function o(_,y){var w,A;return(w=_[52].display)!=null&&w.name?Hze:(A=_[52].fieldSchema)!=null&&A.name?Dze:Tze}let l=o(n),s=l(n),u=(((h=n[52].display)==null?void 0:h.type)||((m=n[52].fieldSchema)==null?void 0:m.type))&&iH(n);function c(..._){return n[34](n[52],..._)}function f(){return n[36](n[52])}return{c(){e=J("li"),t=J("span"),s.c(),r=U(),u&&u.c(),D(t,"class","binding__label svelte-1tw16k3"),D(e,"class","binding svelte-1tw16k3")},m(_,y){S(_,e,y),j(e,t),s.m(t,null),j(e,r),u&&u.m(e,null),i||(a=[At(e,"mouseenter",c),At(e,"mouseleave",n[35]),At(e,"focus",Pze),At(e,"blur",Vze),At(e,"click",f)],i=!0)},p(_,y){var w,A;n=_,l===(l=o(n))&&s?s.p(n,y):(s.d(1),s=l(n),s&&(s.c(),s.m(t,null))),((w=n[52].display)==null?void 0:w.type)||((A=n[52].fieldSchema)==null?void 0:A.type)?u?u.p(n,y):(u=iH(n),u.c(),u.m(e,null)):u&&(u.d(1),u=null)},d(_){_&&C(e),s.d(),u&&u.d(),i=!1,Ni(a)}}}function oH(n){var i;let e,t,r=((i=n[49].bindings)==null?void 0:i.length)&&rH(n);return{c(){r&&r.c(),e=$t()},m(a,o){r&&r.m(a,o),S(a,e,o),t=!0},p(a,o){var l;(l=a[49].bindings)!=null&&l.length?r?(r.p(a,o),o[0]&32768&&b(r,1)):(r=rH(a),r.c(),b(r,1),r.m(e.parentNode,e)):r&&($e(),$(r,1,1,()=>{r=null}),we())},i(a){t||(b(r),t=!0)},o(a){$(r),t=!1},d(a){r&&r.d(a),a&&C(e)}}}function lH(n){var r;let e,t=((r=n[14])==null?void 0:r.length)&&sH(n);return{c(){t&&t.c(),e=$t()},m(i,a){t&&t.m(i,a),S(i,e,a)},p(i,a){var o;(o=i[14])!=null&&o.length?t?t.p(i,a):(t=sH(i),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(i){t&&t.d(i),i&&C(e)}}}function sH(n){let e,t,r,i=n[14],a=[];for(let o=0;o<i.length;o+=1)a[o]=uH(jD(n,i,o));return{c(){e=J("div"),e.textContent="Helpers",t=U(),r=J("ul");for(let o=0;o<a.length;o+=1)a[o].c();D(e,"class","heading svelte-1tw16k3"),D(r,"class","helpers svelte-1tw16k3")},m(o,l){S(o,e,l),S(o,t,l),S(o,r,l);for(let s=0;s<a.length;s+=1)a[s].m(r,null)},p(o,l){if(l[0]&17059584){i=o[14];let s;for(s=0;s<i.length;s+=1){const u=jD(o,i,s);a[s]?a[s].p(u,l):(a[s]=uH(u),a[s].c(),a[s].m(r,null))}for(;s<a.length;s+=1)a[s].d(1);a.length=i.length}},d(o){o&&C(e),o&&C(t),o&&C(r),Dn(a,o)}}}function uH(n){let e,t,r=n[46].displayText+"",i,a,o,l,s,u;function c(){return n[37](n[46])}function f(...h){return n[38](n[46],...h)}return{c(){e=J("li"),t=J("span"),i=le(r),a=U(),o=J("span"),o.innerHTML='<span class="binding__type svelte-1tw16k3">function</span>',l=U(),D(t,"class","binding__label svelte-1tw16k3"),D(o,"class","binding__typeWrap svelte-1tw16k3"),D(e,"class","binding svelte-1tw16k3")},m(h,m){S(h,e,m),j(e,t),j(t,i),j(e,a),j(e,o),j(e,l),s||(u=[At(e,"click",c),At(e,"mouseenter",f),At(e,"mouseleave",n[39]),At(e,"focus",Rze),At(e,"blur",Nze)],s=!0)},p(h,m){n=h,m[0]&16384&&r!==(r=n[46].displayText+"")&&_t(i,r)},d(h){h&&C(e),s=!1,Ni(u)}}}function Bze(n){let e,t,r,i,a,o=n[4]&&ZD(n),l=!n[4]&&QD(n),s=!n[4]&&!n[2]&&eH(n),u=(n[4]||n[2])&&nH(n);return{c(){o&&o.c(),e=U(),l&&l.c(),t=U(),s&&s.c(),r=U(),u&&u.c(),i=$t()},m(c,f){o&&o.m(c,f),S(c,e,f),l&&l.m(c,f),S(c,t,f),s&&s.m(c,f),S(c,r,f),u&&u.m(c,f),S(c,i,f),a=!0},p(c,f){c[4]?o?(o.p(c,f),f[0]&16&&b(o,1)):(o=ZD(c),o.c(),b(o,1),o.m(e.parentNode,e)):o&&($e(),$(o,1,1,()=>{o=null}),we()),c[4]?l&&($e(),$(l,1,1,()=>{l=null}),we()):l?(l.p(c,f),f[0]&16&&b(l,1)):(l=QD(c),l.c(),b(l,1),l.m(t.parentNode,t)),!c[4]&&!c[2]?s?(s.p(c,f),f[0]&20&&b(s,1)):(s=eH(c),s.c(),b(s,1),s.m(r.parentNode,r)):s&&($e(),$(s,1,1,()=>{s=null}),we()),c[4]||c[2]?u?(u.p(c,f),f[0]&20&&b(u,1)):(u=nH(c),u.c(),b(u,1),u.m(i.parentNode,i)):u&&($e(),$(u,1,1,()=>{u=null}),we())},i(c){a||(b(o),b(l),b(s),b(u),a=!0)},o(c){$(o),$(l),$(s),$(u),a=!1},d(c){o&&o.d(c),c&&C(e),l&&l.d(c),c&&C(t),s&&s.d(c),c&&C(r),u&&u.d(c),c&&C(i)}}}function Oze(n){let e,t;return e=new Rt({props:{noPadding:!0,gap:"S",$$slots:{default:[Bze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i[0]&126740|i[1]&134217728&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Ize(n){let e,t,r,i,a,o={align:"right-side",anchor:n[9],maxWidth:300,$$slots:{default:[wze]},$$scope:{ctx:n}};return t=new Rd({props:o}),n[30](t),i=new S4({props:{$$slots:{sidebar:[Oze],default:[Lze]},$$scope:{ctx:n}}}),{c(){e=J("span"),O(t.$$.fragment),r=U(),O(i.$$.fragment),D(e,"class","detailPopover")},m(l,s){S(l,e,s),H(t,e,null),S(l,r,s),H(i,l,s),a=!0},p(l,s){const u={};s[0]&512&&(u.anchor=l[9]),s[0]&1024|s[1]&134217728&&(u.$$scope={dirty:s,ctx:l}),t.$set(u);const c={};s[0]&262143|s[1]&134217728&&(c.$$scope={dirty:s,ctx:l}),i.$set(c)},i(l){a||(b(t.$$.fragment,l),b(i.$$.fragment,l),a=!0)},o(l){$(t.$$.fragment,l),$(i.$$.fragment,l),a=!1},d(l){l&&C(e),n[30](null),B(t),l&&C(r),B(i,l)}}}const Pze=()=>{},Vze=()=>{},Rze=()=>{},Nze=()=>{};function Fze(n,e,t){let r,i,a,o,l,s,u,c,f,h;Ne(n,Pi,Ze=>t(17,h=Ze));const m=Un();let{bindings:_}=e,{value:y=""}=e,{valid:w}=e,{allowJS:A=!1}=e,E=vze(),T,I="",P=typeof y=="string"&&(y==null?void 0:y.startsWith("{{ js ")),F=P?"JavaScript":"Handlebars",x=P?y:null,q=P?null:y,W=null,te,ee,oe;const re=Ze=>{t(0,w=kL(Df(_,Ze))),w&&m("change",Ze)},K=(Ze,We)=>{let tt;const Bt=T();if(We){const an=Jh(x);tt=t(6,x=Lh(ND(an,Bt,Ze.text,{helper:!0})))}else tt=t(7,q=RD(q,Bt,Ze.text));re(tt)},G=(Ze,{forceJS:We}={})=>{if(r||We){let tt=Jh(x);tt=ND(tt,T(),Ze.readableBinding),t(6,x=Lh(tt)),re(x)}else t(7,q=RD(q,T(),Ze.readableBinding)),re(q)},ne=Ze=>{t(3,F=Ze.detail),re(F==="JavaScript"?x:q)},ue=Ze=>{t(7,q=Ze.detail),re(q)},pe=Ze=>{t(6,x=Lh(Ze.detail)),re(x)},Ae=()=>{const Ze=Df(_,q),We=Lh(zL(Ze));t(6,x=P3(_,We)),t(7,q=null),t(3,F="JavaScript"),G("",{forceJS:!0})},he=(Ze,We)=>{let tt=Ze.example||"";return We&&(tt=zL(tt).split(`
|
|
485
|
-
`)[0].split("= ")[1],tt==="null;"&&(tt="")),tt||""};ar(()=>{t(0,w=kL(Df(_,y)))});function Me(Ze){He[Ze?"unshift":"push"](()=>{te=Ze,t(8,te)})}const Ce=()=>{t(4,W=null)};function ge(Ze){I=Ze,t(2,I)}const ut=Ze=>{t(4,W=Ze)},ze=(Ze,We)=>{var tt;t(9,ee=We.target),Ze.description&&(t(10,oe={title:((tt=Ze.display)==null?void 0:tt.name)||Ze.fieldSchema.name,description:Ze.description}),te.show(),We.stopPropagation())},ve=()=>{te.hide(),t(9,ee=null),t(10,oe=null)},je=Ze=>G(Ze),xe=Ze=>K(Ze,r),_e=(Ze,We)=>{t(9,ee=We.target),!(!Ze.displayText&&Ze.description)&&(t(10,oe={title:Ze.displayText,description:Ze.description,example:he(Ze,r)}),te.show(),We.stopPropagation())},st=()=>{te.hide(),t(9,ee=null),t(10,oe=null)};function dt(Ze){T=Ze,t(5,T)}function gt(Ze){T=Ze,t(5,T)}return n.$$set=Ze=>{"bindings"in Ze&&t(25,_=Ze.bindings),"value"in Ze&&t(26,y=Ze.value),"valid"in Ze&&t(0,w=Ze.valid),"allowJS"in Ze&&t(1,A=Ze.allowJS)},n.$$.update=()=>{n.$$.dirty[0]&8&&t(11,r=F==="JavaScript"),n.$$.dirty[0]&4&&t(28,i=new RegExp(I,"ig")),n.$$.dirty[0]&33554432&&t(27,a=Object.entries(gze("category",_))),n.$$.dirty[0]&33554432&&t(29,o=_==null?void 0:_.reduce((Ze,We)=>(We.icon&&(Ze[We.category]=Ze[We.category]||We.icon),Ze),{})),n.$$.dirty[0]&536870912&&t(16,l={...o,Helpers:"MagicWand"}),n.$$.dirty[0]&402653200&&t(15,s=a.map(([Ze,We])=>({name:Ze,bindings:We==null?void 0:We.filter(tt=>tt.readableBinding.match(i))})).filter(Ze=>{var We;return((We=Ze.bindings)==null?void 0:We.length)>0&&(W?W===Ze.name:!0)})),n.$$.dirty[0]&268435456&&t(14,u=E==null?void 0:E.filter(Ze=>Ze.label.match(i)||Ze.description.match(i))),n.$$.dirty[0]&134217728&&t(13,c=[...a.map(Ze=>Ze[0]),"Helpers"]),n.$$.dirty[0]&33554432&&t(12,f=_==null?void 0:_.map(Ze=>`$("${Ze.readableBinding}")`))},[w,A,I,F,W,T,x,q,te,ee,oe,r,f,c,u,s,l,h,K,G,ne,ue,pe,Ae,he,_,y,a,i,o,Me,Ce,ge,ut,ze,ve,je,xe,_e,st,dt,gt]}class DK extends Re{constructor(e){super(),Ve(this,e,Fze,Ize,Oe,{bindings:25,value:26,valid:0,allowJS:1},null,[-1,-1])}}function jze(n){let e,t,r;function i(o){n[5](o)}let a={bindings:n[3],value:n[1],allowJS:n[2]};return n[0]!==void 0&&(a.valid=n[0]),e=new DK({props:a}),He.push(()=>nt(e,"valid",i)),e.$on("change",n[6]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,[l]){const s={};l&8&&(s.bindings=o[3]),l&2&&(s.value=o[1]),l&4&&(s.allowJS=o[2]),!t&&l&1&&(t=!0,s.valid=o[0],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function xze(n,e,t){let r,{bindings:i=[]}=e,{valid:a}=e,{value:o=""}=e,{allowJS:l=!1}=e;const s=f=>f!=null&&f.length?f==null?void 0:f.map(h=>({...h,type:null})):f;function u(f){a=f,t(0,a)}function c(f){Bn.call(this,n,f)}return n.$$set=f=>{"bindings"in f&&t(4,i=f.bindings),"valid"in f&&t(0,a=f.valid),"value"in f&&t(1,o=f.value),"allowJS"in f&&t(2,l=f.allowJS)},n.$$.update=()=>{n.$$.dirty&16&&t(3,r=s(i))},[a,o,l,r,i,u,c]}class i7 extends Re{constructor(e){super(),Ve(this,e,xze,jze,Oe,{bindings:4,valid:0,value:1,allowJS:2})}}function cH(n){let e,t,r,i,a;return t=new dn({props:{size:"S",name:"FlashOn"}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","icon svelte-570cq4")},m(o,l){S(o,e,l),H(t,e,null),r=!0,i||(a=At(e,"click",function(){kn(n[11].show)&&n[11].show.apply(this,arguments)}),i=!0)},p(o,l){n=o},i(o){r||(b(t.$$.fragment,o),r=!0)},o(o){$(t.$$.fragment,o),r=!1},d(o){o&&C(e),B(t),i=!1,a()}}}function Uze(n){let e;return{c(){e=le("Add the objects on the left to enrich your text.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function qze(n){let e;return{c(){e=le("Save")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wze(n){let e,t;return e=new $n({props:{cta:!0,slot:"buttons",disabled:!n[12],$$slots:{default:[qze]},$$scope:{ctx:n}}}),e.$on("click",n[15]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4096&&(a.disabled=!r[12]),i&33554432&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Gze(n){let e,t,r,i;function a(s){n[20](s)}var o=n[0];function l(s){let u={slot:"body",value:s[10],bindings:s[1],allowJS:s[7]};return s[12]!==void 0&&(u.valid=s[12]),{props:u}}return o&&(e=new o(l(n)),He.push(()=>nt(e,"valid",a)),e.$on("change",n[21])),{c(){e&&O(e.$$.fragment),r=$t()},m(s,u){e&&H(e,s,u),S(s,r,u),i=!0},p(s,u){const c={};if(u&1024&&(c.value=s[10]),u&2&&(c.bindings=s[1]),u&128&&(c.allowJS=s[7]),!t&&u&4096&&(t=!0,c.valid=s[12],rt(()=>t=!1)),o!==(o=s[0])){if(e){$e();const f=e;$(f.$$.fragment,1,0,()=>{B(f,1)}),we()}o?(e=new o(l(s)),He.push(()=>nt(e,"valid",a)),e.$on("change",s[21]),O(e.$$.fragment),b(e.$$.fragment,1),H(e,r.parentNode,r)):e=null}else o&&e.$set(c)},i(s){i||(e&&b(e.$$.fragment,s),i=!0)},o(s){e&&$(e.$$.fragment,s),i=!1},d(s){s&&C(r),e&&B(e,s)}}}function Yze(n){let e,t,r,i,a,o;t=new En({props:{label:n[4],disabled:n[5],readonly:n[14],value:n[14]?"(JavaScript function)":n[10],placeholder:n[3],updateOnChange:n[8]}}),t.$on("change",n[19]),t.$on("blur",n[17]);let l=!n[5]&&cH(n),s={fillWidth:n[6],title:n[2],left:n[9],$$slots:{body:[Gze],buttons:[Wze],description:[Uze]},$$scope:{ctx:n}};return a=new Hf({props:s}),n[22](a),{c(){e=J("div"),O(t.$$.fragment),r=U(),l&&l.c(),i=U(),O(a.$$.fragment),D(e,"class","control svelte-570cq4"),De(e,"disabled",n[5])},m(u,c){S(u,e,c),H(t,e,null),j(e,r),l&&l.m(e,null),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&16&&(f.label=u[4]),c&32&&(f.disabled=u[5]),c&16384&&(f.readonly=u[14]),c&17408&&(f.value=u[14]?"(JavaScript function)":u[10]),c&8&&(f.placeholder=u[3]),c&256&&(f.updateOnChange=u[8]),t.$set(f),u[5]?l&&($e(),$(l,1,1,()=>{l=null}),we()):l?(l.p(u,c),c&32&&b(l,1)):(l=cH(u),l.c(),b(l,1),l.m(e,null)),c&32&&De(e,"disabled",u[5]);const h={};c&64&&(h.fillWidth=u[6]),c&4&&(h.title=u[2]),c&512&&(h.left=u[9]),c&33567875&&(h.$$scope={dirty:c,ctx:u}),a.$set(h)},i(u){o||(b(t.$$.fragment,u),b(l),b(a.$$.fragment,u),o=!0)},o(u){$(t.$$.fragment,u),$(l),$(a.$$.fragment,u),o=!1},d(u){u&&C(e),B(t),l&&l.d(),u&&C(i),n[22](null),B(a,u)}}}function Kze(n,e,t){let r,i,a,{panel:o=i7}=e,{value:l=""}=e,{bindings:s=[]}=e,{title:u="Bindings"}=e,{placeholder:c}=e,{label:f}=e,{disabled:h=!1}=e,{fillWidth:m}=e,{allowJS:_=!0}=e,{updateOnChange:y=!0}=e,{drawerLeft:w}=e;const A=Un();let E,T=!0,I=l;const P=()=>{F(i),x(),E.hide()},F=oe=>{I=Df(s,oe),A("change",I)},x=()=>{A("blur",I)},q=oe=>F(oe.detail);function W(oe){T=oe,t(12,T)}const te=oe=>t(13,i=oe.detail);function ee(oe){He[oe?"unshift":"push"](()=>{E=oe,t(11,E)})}return n.$$set=oe=>{"panel"in oe&&t(0,o=oe.panel),"value"in oe&&t(18,l=oe.value),"bindings"in oe&&t(1,s=oe.bindings),"title"in oe&&t(2,u=oe.title),"placeholder"in oe&&t(3,c=oe.placeholder),"label"in oe&&t(4,f=oe.label),"disabled"in oe&&t(5,h=oe.disabled),"fillWidth"in oe&&t(6,m=oe.fillWidth),"allowJS"in oe&&t(7,_=oe.allowJS),"updateOnChange"in oe&&t(8,y=oe.updateOnChange),"drawerLeft"in oe&&t(9,w=oe.drawerLeft)},n.$$.update=()=>{n.$$.dirty&262146&&t(10,r=P3(s,l)),n.$$.dirty&1024&&t(13,i=r),n.$$.dirty&262144&&t(14,a=k7(l))},[o,s,u,c,f,h,m,_,y,w,r,E,T,i,a,P,F,x,l,q,W,te,ee]}class po extends Re{constructor(e){super(),Ve(this,e,Kze,Yze,Oe,{panel:0,value:18,bindings:1,title:2,placeholder:3,label:4,disabled:5,fillWidth:6,allowJS:7,updateOnChange:8,drawerLeft:9})}}function fH(n,e,t){const r=n.slice();return r[32]=e[t],r[33]=e,r[34]=t,r}function pH(n,e,t){const r=n.slice();return r[35]=e[t],r}function dH(n){let e,t,r,i=n[4]&&hH(n),a=n[17],o=[];for(let s=0;s<a.length;s+=1)o[s]=yH(fH(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){i&&i.c(),e=U(),t=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(t,"class","container svelte-1gk02qa"),De(t,"container-active",n[6]),De(t,"container-menu",n[13]),De(t,"readOnly",n[1]),De(t,"readOnly-menu",n[1]&&n[13])},m(s,u){i&&i.m(s,u),S(s,e,u),S(s,t,u);for(let c=0;c<o.length;c+=1)o[c].m(t,null);r=!0},p(s,u){if(s[4]?i?(i.p(s,u),u[0]&16&&b(i,1)):(i=hH(s),i.c(),b(i,1),i.m(e.parentNode,e)):i&&($e(),$(i,1,1,()=>{i=null}),we()),u[0]&2028002){a=s[17];let c;for(c=0;c<a.length;c+=1){const f=fH(s,a,c);o[c]?(o[c].p(f,u),b(o[c],1)):(o[c]=yH(f),o[c].c(),b(o[c],1),o[c].m(t,null))}for($e(),c=a.length;c<o.length;c+=1)l(c);we()}u[0]&64&&De(t,"container-active",s[6]),u[0]&8192&&De(t,"container-menu",s[13]),u[0]&2&&De(t,"readOnly",s[1]),u[0]&8194&&De(t,"readOnly-menu",s[1]&&s[13])},i(s){if(!r){b(i);for(let u=0;u<a.length;u+=1)b(o[u]);r=!0}},o(s){$(i),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);r=!1},d(s){i&&i.d(s),s&&C(e),s&&C(t),Dn(o,s)}}}function hH(n){let e,t,r,i,a,o;t=new cn({props:{tooltip:n[11],$$slots:{default:[Xze]},$$scope:{ctx:n}}}),i=new cn({props:{$$slots:{default:[Jze]},$$scope:{ctx:n}}});let l=n[6]&&mH(n);return{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),a=U(),l&&l.c(),D(e,"class","container svelte-1gk02qa"),De(e,"container-active",n[6])},m(s,u){S(s,e,u),H(t,e,null),j(e,r),H(i,e,null),j(e,a),l&&l.m(e,null),o=!0},p(s,u){const c={};u[0]&2048&&(c.tooltip=s[11]),u[0]&1152|u[1]&128&&(c.$$scope={dirty:u,ctx:s}),t.$set(c);const f={};u[0]&768|u[1]&128&&(f.$$scope={dirty:u,ctx:s}),i.$set(f),s[6]?l?u[0]&64&&b(l,1):(l=mH(s),l.c(),b(l,1),l.m(e,null)):l&&($e(),$(l,1,1,()=>{l=null}),we()),u[0]&64&&De(e,"container-active",s[6])},i(s){o||(b(t.$$.fragment,s),b(i.$$.fragment,s),b(l),o=!0)},o(s){$(t.$$.fragment,s),$(i.$$.fragment,s),$(l),o=!1},d(s){s&&C(e),B(t),B(i),l&&l.d()}}}function Xze(n){let e=(n[10]||n[7])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&1152&&e!==(e=(r[10]||r[7])+"")&&_t(t,e)},d(r){r&&C(t)}}}function Jze(n){let e=(n[9]||n[8])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&768&&e!==(e=(r[9]||r[8])+"")&&_t(t,e)},d(r){r&&C(t)}}}function mH(n){let e,t;return e=new cn({props:{$$slots:{default:[Zze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Zze(n){let e;return{c(){e=le("Active")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Qze(n){let e,t,r;function i(o){n[26](o,n[32])}let a={placeholder:n[8],readonly:n[1]};return n[32].value!==void 0&&(a.value=n[32].value),e=new En({props:a}),He.push(()=>nt(e,"value",i)),e.$on("blur",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};l[0]&256&&(s.placeholder=n[8]),l[0]&2&&(s.readonly=n[1]),!t&&l[0]&131072&&(t=!0,s.value=n[32].value,rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function eAe(n){let e,t;function r(...i){return n[25](n[32],n[33],n[34],...i)}return e=new po({props:{bindings:n[14],placeholder:"Value",disabled:n[1],value:n[32].value,allowJS:!1,fillWidth:!0,drawerLeft:n[15]}}),e.$on("blur",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a[0]&16384&&(o.bindings=n[14]),a[0]&2&&(o.disabled=n[1]),a[0]&131072&&(o.value=n[32].value),a[0]&32768&&(o.drawerLeft=n[15]),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function tAe(n){let e,t,r;function i(o){n[24](o,n[32])}let a={options:n[5]};return n[32].value!==void 0&&(a.value=n[32].value),e=new mn({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};l[0]&32&&(s.options=n[5]),!t&&l[0]&131072&&(t=!0,s.value=n[32].value,rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function gH(n){let e,t,r;function i(o){n[27](o,n[34])}let a={};return n[18][n[34]]!==void 0&&(a.value=n[18][n[34]]),e=new Tl({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};!t&&l[0]&262144&&(t=!0,s.value=n[18][n[34]],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function vH(n){let e,t;function r(){return n[28](n[34])}return e=new dn({props:{hoverable:!0,name:"Close"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function _H(n){let e,t;return e=new Sc({props:{$$slots:{control:[iAe],default:[rAe]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i[0]&135168|i[1]&128&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function nAe(n){let e=n[35].text+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&4096&&e!==(e=r[35].text+"")&&_t(t,e)},d(r){r&&C(t)}}}function bH(n){let e,t;function r(){return n[29](n[35],n[32])}return e=new Ii({props:{$$slots:{default:[nAe]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a[0]&4096|a[1]&128&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function rAe(n){let e,t,r=n[12],i=[];for(let o=0;o<r.length;o+=1)i[o]=bH(pH(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=U()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l[0]&135168){r=o[12];let s;for(s=0;s<r.length;s+=1){const u=pH(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=bH(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function iAe(n){let e,t,r,i;return t=new dn({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),D(e,"slot","control"),D(e,"class","control icon svelte-1gk02qa")},m(a,o){S(a,e,o),H(t,e,null),j(e,r),i=!0},p:mt,i(a){i||(b(t.$$.fragment,a),i=!0)},o(a){$(t.$$.fragment,a),i=!1},d(a){a&&C(e),B(t)}}}function yH(n){var T;let e,t,r,i,a,o,l,s,u,c;function f(I){n[23](I,n[32])}let h={placeholder:n[7],readonly:n[1]};n[32].name!==void 0&&(h.value=n[32].name),e=new En({props:h}),He.push(()=>nt(e,"value",f)),e.$on("blur",n[20]);const m=[tAe,eAe,Qze],_=[];function y(I,P){return I[5]?0:I[14]&&I[14].length?1:2}i=y(n),a=_[i]=m[i](n);let w=n[6]&&gH(n),A=!n[1]&&vH(n),E=((T=n[12])==null?void 0:T.length)>0&&n[13]&&_H(n);return{c(){O(e.$$.fragment),r=U(),a.c(),o=U(),w&&w.c(),l=U(),A&&A.c(),s=U(),E&&E.c(),u=$t()},m(I,P){H(e,I,P),S(I,r,P),_[i].m(I,P),S(I,o,P),w&&w.m(I,P),S(I,l,P),A&&A.m(I,P),S(I,s,P),E&&E.m(I,P),S(I,u,P),c=!0},p(I,P){var q;n=I;const F={};P[0]&128&&(F.placeholder=n[7]),P[0]&2&&(F.readonly=n[1]),!t&&P[0]&131072&&(t=!0,F.value=n[32].name,rt(()=>t=!1)),e.$set(F);let x=i;i=y(n),i===x?_[i].p(n,P):($e(),$(_[x],1,1,()=>{_[x]=null}),we(),a=_[i],a?a.p(n,P):(a=_[i]=m[i](n),a.c()),b(a,1),a.m(o.parentNode,o)),n[6]?w?(w.p(n,P),P[0]&64&&b(w,1)):(w=gH(n),w.c(),b(w,1),w.m(l.parentNode,l)):w&&($e(),$(w,1,1,()=>{w=null}),we()),n[1]?A&&($e(),$(A,1,1,()=>{A=null}),we()):A?(A.p(n,P),P[0]&2&&b(A,1)):(A=vH(n),A.c(),b(A,1),A.m(s.parentNode,s)),((q=n[12])==null?void 0:q.length)>0&&n[13]?E?(E.p(n,P),P[0]&12288&&b(E,1)):(E=_H(n),E.c(),b(E,1),E.m(u.parentNode,u)):E&&($e(),$(E,1,1,()=>{E=null}),we())},i(I){c||(b(e.$$.fragment,I),b(a),b(w),b(A),b(E),c=!0)},o(I){$(e.$$.fragment,I),$(a),$(w),$(A),$(E),c=!1},d(I){B(e,I),I&&C(r),_[i].d(I),I&&C(o),w&&w.d(I),I&&C(l),A&&A.d(I),I&&C(s),E&&E.d(I),I&&C(u)}}}function $H(n){let e,t,r;return t=new Sr({props:{icon:"Add",secondary:!0,thin:!0,outline:!0,$$slots:{default:[aAe]},$$scope:{ctx:n}}}),t.$on("click",n[16]),{c(){e=J("div"),O(t.$$.fragment)},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[0]&8|a[1]&128&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function aAe(n){let e,t=n[3]?` ${_T(n[3])}`:"",r;return{c(){e=le("Add"),r=le(t)},m(i,a){S(i,e,a),S(i,r,a)},p(i,a){a[0]&8&&t!==(t=i[3]?` ${_T(i[3])}`:"")&&_t(r,t)},d(i){i&&C(e),i&&C(r)}}}function oAe(n){let e=Object.keys(n[0]||{}).length>0,t,r,i,a=e&&dH(n),o=!n[1]&&!n[2]&&$H(n);return{c(){a&&a.c(),t=U(),o&&o.c(),r=$t()},m(l,s){a&&a.m(l,s),S(l,t,s),o&&o.m(l,s),S(l,r,s),i=!0},p(l,s){s[0]&1&&(e=Object.keys(l[0]||{}).length>0),e?a?(a.p(l,s),s[0]&1&&b(a,1)):(a=dH(l),a.c(),b(a,1),a.m(t.parentNode,t)):a&&($e(),$(a,1,1,()=>{a=null}),we()),!l[1]&&!l[2]?o?(o.p(l,s),s[0]&6&&b(o,1)):(o=$H(l),o.c(),b(o,1),o.m(r.parentNode,r)):o&&($e(),$(o,1,1,()=>{o=null}),we())},i(l){i||(b(a),b(o),i=!0)},o(l){$(a),$(o),i=!1},d(l){a&&a.d(l),l&&C(t),o&&o.d(l),l&&C(r)}}}function lAe(n,e,t){let r=Un(),{defaults:i}=e,{object:a=i||{}}=e,{activity:o={}}=e,{readOnly:l}=e,{noAddButton:s}=e,{name:u}=e,{headings:c=!1}=e,{options:f}=e,{toggle:h}=e,{keyPlaceholder:m="Key"}=e,{valuePlaceholder:_="Value"}=e,{valueHeading:y}=e,{keyHeading:w}=e,{tooltip:A}=e,{menuItems:E}=e,{showMenu:T=!1}=e,{bindings:I=[]}=e,{bindingDrawerLeft:P}=e,F=Object.entries(a||{}).map(([Ae,he])=>({name:Ae,value:he})),x=q(o);function q(Ae){if(!Ae||typeof Ae!="object")return[];const he=Array(F.length);for(let[Me,Ce]of Object.entries(Ae)){const ge=F.find(ze=>ze.name===Me),ut=F.indexOf(ge);he[ut]=ut!==-1?Ce:!0}return he}function W(){t(17,F=[...F,{name:"",value:""}]),t(18,x=[...x,!0]),ee()}function te(Ae){F.splice(Ae,1),x.splice(Ae,1),ee()}function ee(){t(17,F);const Ae={};for(let he=0;he<F.length;he++){const Me=F[he].name;Me&&(Ae[Me]=x[he])}t(21,o=Ae),r("change",F)}function oe(Ae,he){n.$$.not_equal(he.name,Ae)&&(he.name=Ae,t(17,F))}function re(Ae,he){n.$$.not_equal(he.value,Ae)&&(he.value=Ae,t(17,F))}const K=(Ae,he,Me,Ce)=>{t(17,he[Me].value=Ce.detail,F),ee()};function G(Ae,he){n.$$.not_equal(he.value,Ae)&&(he.value=Ae,t(17,F))}function ne(Ae,he){n.$$.not_equal(x[he],Ae)&&(x[he]=Ae,t(18,x))}const ue=Ae=>te(Ae),pe=(Ae,he)=>Ae.onClick(he);return n.$$set=Ae=>{"defaults"in Ae&&t(22,i=Ae.defaults),"object"in Ae&&t(0,a=Ae.object),"activity"in Ae&&t(21,o=Ae.activity),"readOnly"in Ae&&t(1,l=Ae.readOnly),"noAddButton"in Ae&&t(2,s=Ae.noAddButton),"name"in Ae&&t(3,u=Ae.name),"headings"in Ae&&t(4,c=Ae.headings),"options"in Ae&&t(5,f=Ae.options),"toggle"in Ae&&t(6,h=Ae.toggle),"keyPlaceholder"in Ae&&t(7,m=Ae.keyPlaceholder),"valuePlaceholder"in Ae&&t(8,_=Ae.valuePlaceholder),"valueHeading"in Ae&&t(9,y=Ae.valueHeading),"keyHeading"in Ae&&t(10,w=Ae.keyHeading),"tooltip"in Ae&&t(11,A=Ae.tooltip),"menuItems"in Ae&&t(12,E=Ae.menuItems),"showMenu"in Ae&&t(13,T=Ae.showMenu),"bindings"in Ae&&t(14,I=Ae.bindings),"bindingDrawerLeft"in Ae&&t(15,P=Ae.bindingDrawerLeft)},n.$$.update=()=>{n.$$.dirty[0]&131072&&t(0,a=F.reduce((Ae,he)=>({...Ae,[he.name]:he.value}),{}))},[a,l,s,u,c,f,h,m,_,y,w,A,E,T,I,P,W,F,x,te,ee,o,i,oe,re,K,G,ne,ue,pe]}class Q2 extends Re{constructor(e){super(),Ve(this,e,lAe,oAe,Oe,{defaults:22,object:0,activity:21,readOnly:1,noAddButton:2,name:3,headings:4,options:5,toggle:6,keyPlaceholder:7,valuePlaceholder:8,valueHeading:9,keyHeading:10,tooltip:11,menuItems:12,showMenu:13,bindings:14,bindingDrawerLeft:15,addEntry:16},null,[-1,-1])}get addEntry(){return this.$$.ctx[16]}}function wH(n,e,t){const r=n.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function sAe(n){var c,f;let e,t,r,i,a,o,l;t=new cn({props:{small:!0,$$slots:{default:[fAe]},$$scope:{ctx:n}}});function s(h){n[9](h,n[10])}let u={placeholder:"Enter "+n[5](n[10]),outline:!0,disabled:!n[2],type:(c=n[1].fields[n[10]])==null?void 0:c.type,required:(f=n[1].fields[n[10]])==null?void 0:f.required};return n[0][n[10]]!==void 0&&(u.value=n[0][n[10]]),i=new En({props:u}),He.push(()=>nt(i,"value",s)),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),o=U(),D(e,"class","horizontal svelte-uj8wfq")},m(h,m){S(h,e,m),H(t,e,null),j(e,r),H(i,e,null),j(e,o),l=!0},p(h,m){var w,A;n=h;const _={};m&8200&&(_.$$scope={dirty:m,ctx:n}),t.$set(_);const y={};m&8&&(y.placeholder="Enter "+n[5](n[10])),m&4&&(y.disabled=!n[2]),m&10&&(y.type=(w=n[1].fields[n[10]])==null?void 0:w.type),m&10&&(y.required=(A=n[1].fields[n[10]])==null?void 0:A.required),!a&&m&9&&(a=!0,y.value=n[0][n[10]],rt(()=>a=!1)),i.$set(y)},i(h){l||(b(t.$$.fragment,h),b(i.$$.fragment,h),l=!0)},o(h){$(t.$$.fragment,h),$(i.$$.fragment,h),l=!1},d(h){h&&C(e),B(t),B(i)}}}function uAe(n){let e,t,r,i,a,o;t=new cn({props:{extraSmall:!0,grey:!0,$$slots:{default:[pAe]},$$scope:{ctx:n}}});function l(...s){return n[8](n[10],...s)}return i=new z5({props:{mode:"json",readOnly:!n[2],value:n[0][n[10]]}}),i.$on("change",l),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),a=U()},m(s,u){S(s,e,u),H(t,e,null),j(e,r),H(i,e,null),j(e,a),o=!0},p(s,u){n=s;const c={};u&8200&&(c.$$scope={dirty:u,ctx:n}),t.$set(c);const f={};u&4&&(f.readOnly=!n[2]),u&9&&(f.value=n[0][n[10]]),i.$set(f)},i(s){o||(b(t.$$.fragment,s),b(i.$$.fragment,s),o=!0)},o(s){$(t.$$.fragment,s),$(i.$$.fragment,s),o=!1},d(s){s&&C(e),B(t),B(i)}}}function cAe(n){let e,t,r,i,a;e=new cn({props:{small:!0,$$slots:{default:[dAe]},$$scope:{ctx:n}}});function o(s){n[7](s,n[10])}let l={name:n[5](n[10]),readOnly:!n[2]};return n[0][n[10]]!==void 0&&(l.object=n[0][n[10]]),r=new Q2({props:l}),He.push(()=>nt(r,"object",o)),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(s,u){H(e,s,u),S(s,t,u),H(r,s,u),a=!0},p(s,u){n=s;const c={};u&8200&&(c.$$scope={dirty:u,ctx:n}),e.$set(c);const f={};u&8&&(f.name=n[5](n[10])),u&4&&(f.readOnly=!n[2]),!i&&u&9&&(i=!0,f.object=n[0][n[10]],rt(()=>i=!1)),r.$set(f)},i(s){a||(b(e.$$.fragment,s),b(r.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(r.$$.fragment,s),a=!1},d(s){B(e,s),s&&C(t),B(r,s)}}}function fAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function pAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function dAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function kH(n){let e,t,r,i;const a=[cAe,uAe,sAe],o=[];function l(s,u){var c,f;return((c=s[1].fields[s[10]])==null?void 0:c.type)==="object"?0:((f=s[1].fields[s[10]])==null?void 0:f.type)==="json"?1:2}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=$t()},m(s,u){o[e].m(s,u),S(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):($e(),$(o[c],1,1,()=>{o[c]=null}),we(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),b(t,1),t.m(r.parentNode,r))},i(s){i||(b(t),i=!0)},o(s){$(t),i=!1},d(s){o[e].d(s),s&&C(r)}}}function hAe(n){let e,t,r=n[3],i=[];for(let o=0;o<r.length;o+=1)i[o]=kH(wH(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l&47){r=o[3];let s;for(s=0;s<r.length;s+=1){const u=wH(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=kH(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function zH(n){let e,t;return e=new z5({props:{label:"Query",mode:"json",readOnly:!n[2],value:n[0].customData}}),e.$on("change",n[4]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].customData),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function mAe(n){let e,t,r,i,a,o,l;t=new Rt({props:{noPadding:!0,gap:"S",$$slots:{default:[hAe]},$$scope:{ctx:n}}});let s=n[1].customisable&&zH(n);return{c(){e=J("form"),O(t.$$.fragment),r=U(),s&&s.c(),i=$t()},m(u,c){S(u,e,c),H(t,e,null),S(u,r,c),s&&s.m(u,c),S(u,i,c),a=!0,o||(l=At(e,"submit",r_(n[6])),o=!0)},p(u,[c]){const f={};c&8207&&(f.$$scope={dirty:c,ctx:u}),t.$set(f),u[1].customisable?s?(s.p(u,c),c&2&&b(s,1)):(s=zH(u),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(u){a||(b(t.$$.fragment,u),b(s),a=!0)},o(u){$(t.$$.fragment,u),$(s),a=!1},d(u){u&&C(e),B(t),u&&C(r),s&&s.d(u),u&&C(i),o=!1,l()}}}function gAe(n,e,t){let r,{fields:i={}}=e,{schema:a}=e,{editable:o}=e;function l({detail:m}){t(0,i.customData=m.value,i)}function s(m){var y,w;let _;return(y=a.fields[m])!=null&&y.display?_=(w=a.fields[m])==null?void 0:w.display:_=m,zc(_)}function u(m){Bn.call(this,n,m)}function c(m,_){n.$$.not_equal(i[_],m)&&(i[_]=m,t(0,i))}const f=(m,{detail:_})=>t(0,i[m]=_.value,i);function h(m,_){n.$$.not_equal(i[_],m)&&(i[_]=m,t(0,i))}return n.$$set=m=>{"fields"in m&&t(0,i=m.fields),"schema"in m&&t(1,a=m.schema),"editable"in m&&t(2,o=m.editable)},n.$$.update=()=>{n.$$.dirty&2&&t(3,r=Object.keys((a==null?void 0:a.fields)||{}))},[i,a,o,r,l,s,u,c,f,h]}class vAe extends Re{constructor(e){super(),Ve(this,e,gAe,mAe,Oe,{fields:0,schema:1,editable:2})}}function AH(n,e,t){const r=n.slice();return r[22]=e[t],r[23]=e,r[24]=t,r}function MH(n){let e=n[0]._id,t,r,i=TH(n);return{c(){i.c(),t=$t()},m(a,o){i.m(a,o),S(a,t,o),r=!0},p(a,o){o&1&&Oe(e,e=a[0]._id)?($e(),$(i,1,1,mt),we(),i=TH(a),i.c(),b(i,1),i.m(t.parentNode,t)):i.p(a,o)},i(a){r||(b(i),r=!0)},o(a){$(i),r=!1},d(a){a&&C(t),i.d(a)}}}function _Ae(n){let e,t,r,i,a,o;const l=[kAe,wAe],s=[];function u(c,f){var h;return((h=c[0].fields.steps)==null?void 0:h.length)===0?0:1}return r=u(n),i=s[r]=l[r](n),{c(){e=J("br"),t=U(),i.c(),a=$t()},m(c,f){S(c,e,f),S(c,t,f),s[r].m(c,f),S(c,a,f),o=!0},p(c,f){let h=r;r=u(c),r===h?s[r].p(c,f):($e(),$(s[h],1,1,()=>{s[h]=null}),we(),i=s[r],i?i.p(c,f):(i=s[r]=l[r](c),i.c()),b(i,1),i.m(a.parentNode,a))},i(c){o||(b(i),o=!0)},o(c){$(i),o=!1},d(c){c&&C(e),c&&C(t),s[r].d(c),c&&C(a)}}}function bAe(n){let e,t,r,i,a;function o(u){n[13](u)}let l={schema:n[1],editable:n[2]};n[0].fields!==void 0&&(l.fields=n[0].fields),e=new vAe({props:l}),He.push(()=>nt(e,"fields",o));let s=n[1].urlDisplay&&EH(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(u,c){H(e,u,c),S(u,r,c),s&&s.m(u,c),S(u,i,c),a=!0},p(u,c){const f={};c&2&&(f.schema=u[1]),c&4&&(f.editable=u[2]),!t&&c&1&&(t=!0,f.fields=u[0].fields,rt(()=>t=!1)),e.$set(f),u[1].urlDisplay?s?(s.p(u,c),c&2&&b(s,1)):(s=EH(u),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(u){a||(b(e.$$.fragment,u),b(s),a=!0)},o(u){$(e.$$.fragment,u),$(s),a=!1},d(u){B(e,u),u&&C(r),s&&s.d(u),u&&C(i)}}}function yAe(n){let e,t;return e=new z5({props:{editorHeight:n[3],label:"Query",mode:"json",readOnly:!n[2],value:n[0].fields.json,parameters:n[0].parameters}}),e.$on("change",n[8]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.editorHeight=r[3]),i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].fields.json),i&1&&(a.parameters=r[0].parameters),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function $Ae(n){let e,t;return e=new z5({props:{editorHeight:n[3],label:"Query",mode:"sql",readOnly:!n[2],value:n[0].fields.sql,parameters:n[0].parameters}}),e.$on("change",n[8]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.editorHeight=r[3]),i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].fields.sql),i&1&&(a.parameters=r[0].parameters),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function wAe(n){let e,t,r=n[0].fields.steps,i=[];for(let o=0;o<r.length;o+=1)i[o]=LH(AH(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l&3611){r=o[0].fields.steps;let s;for(s=0;s<r.length;s+=1){const u=AH(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=LH(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function kAe(n){let e,t,r,i,a;return t=new $n({props:{secondary:!0,slot:"buttons",$$slots:{default:[MAe]},$$scope:{ctx:n}}}),t.$on("click",n[14]),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("br"),D(e,"class","controls svelte-1lky0bq")},m(o,l){S(o,e,l),H(t,e,null),S(o,r,l),S(o,i,l),a=!0},p(o,l){const s={};l&33554432&&(s.$$scope={dirty:l,ctx:o}),t.$set(s)},i(o){a||(b(t.$$.fragment,o),a=!0)},o(o){$(t.$$.fragment,o),a=!1},d(o){o&&C(e),B(t),o&&C(r),o&&C(i)}}}function zAe(n){let e,t;function r(){return n[15](n[24])}return e=new Sr({props:{quiet:!0,icon:"ChevronUp"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function CH(n){let e,t;function r(){return n[16](n[24])}return e=new Sr({props:{quiet:!0,icon:"ChevronDown"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function AAe(n){let e,t,r,i,a,o=n[24],l;function s(...m){return n[18](n[22],n[24],...m)}r=new mn({props:{value:n[22].key,options:n[1].steps.map(DH)}}),r.$on("change",s);const u=()=>n[19](a,o),c=()=>n[19](null,o);function f(...m){return n[20](n[24],...m)}let h={editorHeight:n[3]/2,mode:"json",value:typeof n[22].value=="string"?n[22].value:n[22].value.value};return a=new z5({props:h}),u(),a.$on("change",f),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),O(a.$$.fragment),D(t,"class","block-field svelte-1lky0bq"),D(e,"class","fields svelte-1lky0bq")},m(m,_){S(m,e,_),j(e,t),H(r,t,null),j(t,i),H(a,t,null),l=!0},p(m,_){n=m;const y={};_&1&&(y.value=n[22].key),_&2&&(y.options=n[1].steps.map(DH)),r.$set(y),o!==n[24]&&(c(),o=n[24],u());const w={};_&8&&(w.editorHeight=n[3]/2),_&1&&(w.value=typeof n[22].value=="string"?n[22].value:n[22].value.value),a.$set(w)},i(m){l||(b(r.$$.fragment,m),b(a.$$.fragment,m),l=!0)},o(m){$(r.$$.fragment,m),$(a.$$.fragment,m),l=!1},d(m){m&&C(e),B(r),c(),B(a)}}}function SH(n){let e,t,r,i;return e=new dn({props:{hoverable:!0,name:"AddCircle",size:"S"}}),e.$on("click",n[21]),{c(){O(e.$$.fragment),t=U(),r=J("br")},m(a,o){H(e,a,o),S(a,t,o),S(a,r,o),i=!0},p:mt,i(a){i||(b(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),a&&C(r)}}}function LH(n){let e,t,r,i,a,o,l,s=n[24]+1+"",u,c,f,h,m,_,y,w,A,E,T,I,P,F;r=new pi({props:{noMargin:!0}});let x=n[24]>0&&zAe(n),q=n[24]<n[0].fields.steps.length-1&&CH(n);function W(){return n[17](n[24])}y=new Sr({props:{icon:"DeleteOutline"}}),y.$on("click",W),A=new Rt({props:{noPadding:!0,gap:"S",$$slots:{default:[AAe]},$$scope:{ctx:n}}});let te=n[24]===n[0].fields.steps.length-1&&SH(n);return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),o=J("div"),l=le("Stage "),u=le(s),c=U(),f=J("div"),h=J("div"),x&&x.c(),m=U(),q&&q.c(),_=U(),O(y.$$.fragment),w=U(),O(A.$$.fragment),E=U(),T=J("div"),I=U(),te&&te.c(),P=U(),yn(h,"margin-right","24px"),D(f,"class","block-actions svelte-1lky0bq"),D(o,"class","block-options svelte-1lky0bq"),D(a,"class","blockSection svelte-1lky0bq"),D(t,"class","subblock svelte-1lky0bq"),D(T,"class","separator svelte-1lky0bq"),D(e,"class","block svelte-1lky0bq")},m(ee,oe){S(ee,e,oe),j(e,t),H(r,t,null),j(t,i),j(t,a),j(a,o),j(o,l),j(o,u),j(o,c),j(o,f),j(f,h),x&&x.m(h,null),j(h,m),q&&q.m(h,null),j(f,_),H(y,f,null),j(a,w),H(A,a,null),j(e,E),j(e,T),j(e,I),te&&te.m(e,null),j(e,P),F=!0},p(ee,oe){n=ee,n[24]>0&&x.p(n,oe),n[24]<n[0].fields.steps.length-1?q?(q.p(n,oe),oe&1&&b(q,1)):(q=CH(n),q.c(),b(q,1),q.m(h,null)):q&&($e(),$(q,1,1,()=>{q=null}),we());const re={};oe&33554459&&(re.$$scope={dirty:oe,ctx:n}),A.$set(re),n[24]===n[0].fields.steps.length-1?te?(te.p(n,oe),oe&1&&b(te,1)):(te=SH(n),te.c(),b(te,1),te.m(e,P)):te&&($e(),$(te,1,1,()=>{te=null}),we())},i(ee){F||(b(r.$$.fragment,ee),b(x),b(q),b(y.$$.fragment,ee),b(A.$$.fragment,ee),b(te),F=!0)},o(ee){$(r.$$.fragment,ee),$(x),$(q),$(y.$$.fragment,ee),$(A.$$.fragment,ee),$(te),F=!1},d(ee){ee&&C(e),B(r),x&&x.d(),q&&q.d(),B(y),B(A),te&&te.d()}}}function MAe(n){let e;return{c(){e=le("Add stage")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function EH(n){let e,t,r,i,a;return t=new cn({props:{small:!0,$$slots:{default:[CAe]},$$scope:{ctx:n}}}),i=new En({props:{thin:!0,outline:!0,disabled:!0,value:n[6]}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),D(e,"class","url-row svelte-1lky0bq")},m(o,l){S(o,e,l),H(t,e,null),j(e,r),H(i,e,null),a=!0},p(o,l){const s={};l&33554432&&(s.$$scope={dirty:l,ctx:o}),t.$set(s);const u={};l&64&&(u.value=o[6]),i.$set(u)},i(o){a||(b(t.$$.fragment,o),b(i.$$.fragment,o),a=!0)},o(o){$(t.$$.fragment,o),$(i.$$.fragment,o),a=!1},d(o){o&&C(e),B(t),B(i)}}}function CAe(n){let e;return{c(){e=le("URL")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function TH(n){let e,t,r,i;const a=[$Ae,yAe,bAe,_Ae],o=[];function l(s,u){var c;return s[1].type===s[7].SQL?0:s[5]?1:s[1].type===s[7].FIELDS?2:((c=s[0].fields.extra)==null?void 0:c.actionType)==="pipeline"?3:-1}return~(e=l(n))&&(t=o[e]=a[e](n)),{c(){t&&t.c(),r=$t()},m(s,u){~e&&o[e].m(s,u),S(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?~e&&o[e].p(s,u):(t&&($e(),$(o[c],1,1,()=>{o[c]=null}),we()),~e?(t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),b(t,1),t.m(r.parentNode,r)):t=null)},i(s){i||(b(t),i=!0)},o(s){$(t),i=!1},d(s){~e&&o[e].d(s),s&&C(r)}}}function SAe(n){let e,t,r=n[1]&&MH(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[1]?r?(r.p(i,a),a&2&&b(r,1)):(r=MH(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&($e(),$(r,1,1,()=>{r=null}),we())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}const DH=n=>n.key;function LAe(n,e,t){let r,i;const a={SQL:"sql",JSON:"json",FIELDS:"fields"};let{query:o}=e,{datasource:l}=e,{schema:s}=e,{editable:u=!0}=e,{height:c=500}=e,f=[];function h({detail:W}){t(0,o.fields[s.type]=W.value,o)}function m(W){var te,ee;for(let oe=W;oe<((te=o.fields.steps)==null?void 0:te.length)-1;oe++)f[oe].update((ee=o.fields.steps[oe+1].value)==null?void 0:ee.value)}function _(W,te){var oe,re;const ee=(oe=o.fields.steps[te].value)==null?void 0:oe.value;f[te].update((re=o.fields.steps[W].value)==null?void 0:re.value),f[W].update(ee)}function y(W,te,ee){var re,K,G;const oe=(re=o.fields.steps[ee].value)==null?void 0:re.value;(!oe||oe.toString().replace("\\s","").length<3||((K=s.steps.filter(ne=>ne.key===W)[0])==null?void 0:K.template)===oe)&&(t(0,o.fields.steps[ee].value.value=(G=s.steps.filter(ne=>ne.key===te)[0])==null?void 0:G.template,o),f[ee].update(o.fields.steps[ee].value.value)),t(0,o.fields.steps[ee].key=te,o)}function w(W){n.$$.not_equal(o.fields,W)&&(o.fields=W,t(0,o))}const A=()=>{t(0,o.fields.steps=[{key:"$match",value:`{
|
|
485
|
+
`)[0].split("= ")[1],tt==="null;"&&(tt="")),tt||""};ar(()=>{t(0,w=kL(Df(_,y)))});function Me(Ze){He[Ze?"unshift":"push"](()=>{te=Ze,t(8,te)})}const Ce=()=>{t(4,W=null)};function ge(Ze){I=Ze,t(2,I)}const ut=Ze=>{t(4,W=Ze)},ze=(Ze,We)=>{var tt;t(9,ee=We.target),Ze.description&&(t(10,oe={title:((tt=Ze.display)==null?void 0:tt.name)||Ze.fieldSchema.name,description:Ze.description}),te.show(),We.stopPropagation())},ve=()=>{te.hide(),t(9,ee=null),t(10,oe=null)},je=Ze=>G(Ze),xe=Ze=>K(Ze,r),_e=(Ze,We)=>{t(9,ee=We.target),!(!Ze.displayText&&Ze.description)&&(t(10,oe={title:Ze.displayText,description:Ze.description,example:he(Ze,r)}),te.show(),We.stopPropagation())},st=()=>{te.hide(),t(9,ee=null),t(10,oe=null)};function dt(Ze){T=Ze,t(5,T)}function gt(Ze){T=Ze,t(5,T)}return n.$$set=Ze=>{"bindings"in Ze&&t(25,_=Ze.bindings),"value"in Ze&&t(26,y=Ze.value),"valid"in Ze&&t(0,w=Ze.valid),"allowJS"in Ze&&t(1,A=Ze.allowJS)},n.$$.update=()=>{n.$$.dirty[0]&8&&t(11,r=F==="JavaScript"),n.$$.dirty[0]&4&&t(28,i=new RegExp(I,"ig")),n.$$.dirty[0]&33554432&&t(27,a=Object.entries(gze("category",_))),n.$$.dirty[0]&33554432&&t(29,o=_==null?void 0:_.reduce((Ze,We)=>(We.icon&&(Ze[We.category]=Ze[We.category]||We.icon),Ze),{})),n.$$.dirty[0]&536870912&&t(16,l={...o,Helpers:"MagicWand"}),n.$$.dirty[0]&402653200&&t(15,s=a.map(([Ze,We])=>({name:Ze,bindings:We==null?void 0:We.filter(tt=>tt.readableBinding.match(i))})).filter(Ze=>{var We;return((We=Ze.bindings)==null?void 0:We.length)>0&&(W?W===Ze.name:!0)})),n.$$.dirty[0]&268435456&&t(14,u=E==null?void 0:E.filter(Ze=>Ze.label.match(i)||Ze.description.match(i))),n.$$.dirty[0]&134217728&&t(13,c=[...a.map(Ze=>Ze[0]),"Helpers"]),n.$$.dirty[0]&33554432&&t(12,f=_==null?void 0:_.map(Ze=>`$("${Ze.readableBinding}")`))},[w,A,I,F,W,T,x,q,te,ee,oe,r,f,c,u,s,l,h,K,G,ne,ue,pe,Ae,he,_,y,a,i,o,Me,Ce,ge,ut,ze,ve,je,xe,_e,st,dt,gt]}class DK extends Re{constructor(e){super(),Ve(this,e,Fze,Ize,Oe,{bindings:25,value:26,valid:0,allowJS:1},null,[-1,-1])}}function jze(n){let e,t,r;function i(o){n[5](o)}let a={bindings:n[3],value:n[1],allowJS:n[2]};return n[0]!==void 0&&(a.valid=n[0]),e=new DK({props:a}),He.push(()=>nt(e,"valid",i)),e.$on("change",n[6]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,[l]){const s={};l&8&&(s.bindings=o[3]),l&2&&(s.value=o[1]),l&4&&(s.allowJS=o[2]),!t&&l&1&&(t=!0,s.valid=o[0],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function xze(n,e,t){let r,{bindings:i=[]}=e,{valid:a}=e,{value:o=""}=e,{allowJS:l=!1}=e;const s=f=>f!=null&&f.length?f==null?void 0:f.map(h=>({...h,type:null})):f;function u(f){a=f,t(0,a)}function c(f){Bn.call(this,n,f)}return n.$$set=f=>{"bindings"in f&&t(4,i=f.bindings),"valid"in f&&t(0,a=f.valid),"value"in f&&t(1,o=f.value),"allowJS"in f&&t(2,l=f.allowJS)},n.$$.update=()=>{n.$$.dirty&16&&t(3,r=s(i))},[a,o,l,r,i,u,c]}class i7 extends Re{constructor(e){super(),Ve(this,e,xze,jze,Oe,{bindings:4,valid:0,value:1,allowJS:2})}}function cH(n){let e,t,r,i,a;return t=new dn({props:{size:"S",name:"FlashOn"}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","icon svelte-570cq4")},m(o,l){S(o,e,l),H(t,e,null),r=!0,i||(a=At(e,"click",function(){kn(n[11].show)&&n[11].show.apply(this,arguments)}),i=!0)},p(o,l){n=o},i(o){r||(b(t.$$.fragment,o),r=!0)},o(o){$(t.$$.fragment,o),r=!1},d(o){o&&C(e),B(t),i=!1,a()}}}function Uze(n){let e;return{c(){e=le("Add the objects on the left to enrich your text.")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function qze(n){let e;return{c(){e=le("Save")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wze(n){let e,t;return e=new $n({props:{cta:!0,slot:"buttons",disabled:!n[12],$$slots:{default:[qze]},$$scope:{ctx:n}}}),e.$on("click",n[15]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4096&&(a.disabled=!r[12]),i&33554432&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Gze(n){let e,t,r,i;function a(s){n[20](s)}var o=n[0];function l(s){let u={slot:"body",value:s[10],bindings:s[1],allowJS:s[7]};return s[12]!==void 0&&(u.valid=s[12]),{props:u}}return o&&(e=new o(l(n)),He.push(()=>nt(e,"valid",a)),e.$on("change",n[21])),{c(){e&&O(e.$$.fragment),r=$t()},m(s,u){e&&H(e,s,u),S(s,r,u),i=!0},p(s,u){const c={};if(u&1024&&(c.value=s[10]),u&2&&(c.bindings=s[1]),u&128&&(c.allowJS=s[7]),!t&&u&4096&&(t=!0,c.valid=s[12],rt(()=>t=!1)),o!==(o=s[0])){if(e){$e();const f=e;$(f.$$.fragment,1,0,()=>{B(f,1)}),we()}o?(e=new o(l(s)),He.push(()=>nt(e,"valid",a)),e.$on("change",s[21]),O(e.$$.fragment),b(e.$$.fragment,1),H(e,r.parentNode,r)):e=null}else o&&e.$set(c)},i(s){i||(e&&b(e.$$.fragment,s),i=!0)},o(s){e&&$(e.$$.fragment,s),i=!1},d(s){s&&C(r),e&&B(e,s)}}}function Yze(n){let e,t,r,i,a,o;t=new En({props:{label:n[4],disabled:n[5],readonly:n[14],value:n[14]?"(JavaScript function)":n[10],placeholder:n[3],updateOnChange:n[8]}}),t.$on("change",n[19]),t.$on("blur",n[17]);let l=!n[5]&&cH(n),s={fillWidth:n[6],title:n[2],left:n[9],$$slots:{body:[Gze],buttons:[Wze],description:[Uze]},$$scope:{ctx:n}};return a=new Hf({props:s}),n[22](a),{c(){e=J("div"),O(t.$$.fragment),r=U(),l&&l.c(),i=U(),O(a.$$.fragment),D(e,"class","control svelte-570cq4"),De(e,"disabled",n[5])},m(u,c){S(u,e,c),H(t,e,null),j(e,r),l&&l.m(e,null),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&16&&(f.label=u[4]),c&32&&(f.disabled=u[5]),c&16384&&(f.readonly=u[14]),c&17408&&(f.value=u[14]?"(JavaScript function)":u[10]),c&8&&(f.placeholder=u[3]),c&256&&(f.updateOnChange=u[8]),t.$set(f),u[5]?l&&($e(),$(l,1,1,()=>{l=null}),we()):l?(l.p(u,c),c&32&&b(l,1)):(l=cH(u),l.c(),b(l,1),l.m(e,null)),c&32&&De(e,"disabled",u[5]);const h={};c&64&&(h.fillWidth=u[6]),c&4&&(h.title=u[2]),c&512&&(h.left=u[9]),c&33567875&&(h.$$scope={dirty:c,ctx:u}),a.$set(h)},i(u){o||(b(t.$$.fragment,u),b(l),b(a.$$.fragment,u),o=!0)},o(u){$(t.$$.fragment,u),$(l),$(a.$$.fragment,u),o=!1},d(u){u&&C(e),B(t),l&&l.d(),u&&C(i),n[22](null),B(a,u)}}}function Kze(n,e,t){let r,i,a,{panel:o=i7}=e,{value:l=""}=e,{bindings:s=[]}=e,{title:u="Bindings"}=e,{placeholder:c}=e,{label:f}=e,{disabled:h=!1}=e,{fillWidth:m}=e,{allowJS:_=!0}=e,{updateOnChange:y=!0}=e,{drawerLeft:w}=e;const A=Un();let E,T=!0,I=l;const P=()=>{F(i),x(),E.hide()},F=oe=>{I=Df(s,oe),A("change",I)},x=()=>{A("blur",I)},q=oe=>F(oe.detail);function W(oe){T=oe,t(12,T)}const te=oe=>t(13,i=oe.detail);function ee(oe){He[oe?"unshift":"push"](()=>{E=oe,t(11,E)})}return n.$$set=oe=>{"panel"in oe&&t(0,o=oe.panel),"value"in oe&&t(18,l=oe.value),"bindings"in oe&&t(1,s=oe.bindings),"title"in oe&&t(2,u=oe.title),"placeholder"in oe&&t(3,c=oe.placeholder),"label"in oe&&t(4,f=oe.label),"disabled"in oe&&t(5,h=oe.disabled),"fillWidth"in oe&&t(6,m=oe.fillWidth),"allowJS"in oe&&t(7,_=oe.allowJS),"updateOnChange"in oe&&t(8,y=oe.updateOnChange),"drawerLeft"in oe&&t(9,w=oe.drawerLeft)},n.$$.update=()=>{n.$$.dirty&262146&&t(10,r=P3(s,l)),n.$$.dirty&1024&&t(13,i=r),n.$$.dirty&262144&&t(14,a=k7(l))},[o,s,u,c,f,h,m,_,y,w,r,E,T,i,a,P,F,x,l,q,W,te,ee]}class po extends Re{constructor(e){super(),Ve(this,e,Kze,Yze,Oe,{panel:0,value:18,bindings:1,title:2,placeholder:3,label:4,disabled:5,fillWidth:6,allowJS:7,updateOnChange:8,drawerLeft:9})}}function fH(n,e,t){const r=n.slice();return r[32]=e[t],r[33]=e,r[34]=t,r}function pH(n,e,t){const r=n.slice();return r[35]=e[t],r}function dH(n){let e,t,r,i=n[4]&&hH(n),a=n[17],o=[];for(let s=0;s<a.length;s+=1)o[s]=yH(fH(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){i&&i.c(),e=U(),t=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(t,"class","container svelte-1gk02qa"),De(t,"container-active",n[6]),De(t,"container-menu",n[13]),De(t,"readOnly",n[1]),De(t,"readOnly-menu",n[1]&&n[13])},m(s,u){i&&i.m(s,u),S(s,e,u),S(s,t,u);for(let c=0;c<o.length;c+=1)o[c].m(t,null);r=!0},p(s,u){if(s[4]?i?(i.p(s,u),u[0]&16&&b(i,1)):(i=hH(s),i.c(),b(i,1),i.m(e.parentNode,e)):i&&($e(),$(i,1,1,()=>{i=null}),we()),u[0]&2028002){a=s[17];let c;for(c=0;c<a.length;c+=1){const f=fH(s,a,c);o[c]?(o[c].p(f,u),b(o[c],1)):(o[c]=yH(f),o[c].c(),b(o[c],1),o[c].m(t,null))}for($e(),c=a.length;c<o.length;c+=1)l(c);we()}u[0]&64&&De(t,"container-active",s[6]),u[0]&8192&&De(t,"container-menu",s[13]),u[0]&2&&De(t,"readOnly",s[1]),u[0]&8194&&De(t,"readOnly-menu",s[1]&&s[13])},i(s){if(!r){b(i);for(let u=0;u<a.length;u+=1)b(o[u]);r=!0}},o(s){$(i),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);r=!1},d(s){i&&i.d(s),s&&C(e),s&&C(t),Dn(o,s)}}}function hH(n){let e,t,r,i,a,o;t=new cn({props:{tooltip:n[11],$$slots:{default:[Xze]},$$scope:{ctx:n}}}),i=new cn({props:{$$slots:{default:[Jze]},$$scope:{ctx:n}}});let l=n[6]&&mH(n);return{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),a=U(),l&&l.c(),D(e,"class","container svelte-1gk02qa"),De(e,"container-active",n[6])},m(s,u){S(s,e,u),H(t,e,null),j(e,r),H(i,e,null),j(e,a),l&&l.m(e,null),o=!0},p(s,u){const c={};u[0]&2048&&(c.tooltip=s[11]),u[0]&1152|u[1]&128&&(c.$$scope={dirty:u,ctx:s}),t.$set(c);const f={};u[0]&768|u[1]&128&&(f.$$scope={dirty:u,ctx:s}),i.$set(f),s[6]?l?u[0]&64&&b(l,1):(l=mH(s),l.c(),b(l,1),l.m(e,null)):l&&($e(),$(l,1,1,()=>{l=null}),we()),u[0]&64&&De(e,"container-active",s[6])},i(s){o||(b(t.$$.fragment,s),b(i.$$.fragment,s),b(l),o=!0)},o(s){$(t.$$.fragment,s),$(i.$$.fragment,s),$(l),o=!1},d(s){s&&C(e),B(t),B(i),l&&l.d()}}}function Xze(n){let e=(n[10]||n[7])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&1152&&e!==(e=(r[10]||r[7])+"")&&_t(t,e)},d(r){r&&C(t)}}}function Jze(n){let e=(n[9]||n[8])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&768&&e!==(e=(r[9]||r[8])+"")&&_t(t,e)},d(r){r&&C(t)}}}function mH(n){let e,t;return e=new cn({props:{$$slots:{default:[Zze]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Zze(n){let e;return{c(){e=le("Active")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Qze(n){let e,t,r;function i(o){n[26](o,n[32])}let a={placeholder:n[8],readonly:n[1]};return n[32].value!==void 0&&(a.value=n[32].value),e=new En({props:a}),He.push(()=>nt(e,"value",i)),e.$on("blur",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};l[0]&256&&(s.placeholder=n[8]),l[0]&2&&(s.readonly=n[1]),!t&&l[0]&131072&&(t=!0,s.value=n[32].value,rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function eAe(n){let e,t;function r(...i){return n[25](n[32],n[33],n[34],...i)}return e=new po({props:{bindings:n[14],placeholder:"Value",disabled:n[1],value:n[32].value,allowJS:!1,fillWidth:!0,drawerLeft:n[15]}}),e.$on("blur",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a[0]&16384&&(o.bindings=n[14]),a[0]&2&&(o.disabled=n[1]),a[0]&131072&&(o.value=n[32].value),a[0]&32768&&(o.drawerLeft=n[15]),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function tAe(n){let e,t,r;function i(o){n[24](o,n[32])}let a={options:n[5]};return n[32].value!==void 0&&(a.value=n[32].value),e=new mn({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};l[0]&32&&(s.options=n[5]),!t&&l[0]&131072&&(t=!0,s.value=n[32].value,rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function gH(n){let e,t,r;function i(o){n[27](o,n[34])}let a={};return n[18][n[34]]!==void 0&&(a.value=n[18][n[34]]),e=new Tl({props:a}),He.push(()=>nt(e,"value",i)),e.$on("change",n[20]),{c(){O(e.$$.fragment)},m(o,l){H(e,o,l),r=!0},p(o,l){n=o;const s={};!t&&l[0]&262144&&(t=!0,s.value=n[18][n[34]],rt(()=>t=!1)),e.$set(s)},i(o){r||(b(e.$$.fragment,o),r=!0)},o(o){$(e.$$.fragment,o),r=!1},d(o){B(e,o)}}}function vH(n){let e,t;function r(){return n[28](n[34])}return e=new dn({props:{hoverable:!0,name:"Close"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function _H(n){let e,t;return e=new Sc({props:{$$slots:{control:[iAe],default:[rAe]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i[0]&135168|i[1]&128&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function nAe(n){let e=n[35].text+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i[0]&4096&&e!==(e=r[35].text+"")&&_t(t,e)},d(r){r&&C(t)}}}function bH(n){let e,t;function r(){return n[29](n[35],n[32])}return e=new Ii({props:{$$slots:{default:[nAe]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a[0]&4096|a[1]&128&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function rAe(n){let e,t,r=n[12],i=[];for(let o=0;o<r.length;o+=1)i[o]=bH(pH(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=U()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l[0]&135168){r=o[12];let s;for(s=0;s<r.length;s+=1){const u=pH(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=bH(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function iAe(n){let e,t,r,i;return t=new dn({props:{size:"S",hoverable:!0,name:"MoreSmallList"}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),D(e,"slot","control"),D(e,"class","control icon svelte-1gk02qa")},m(a,o){S(a,e,o),H(t,e,null),j(e,r),i=!0},p:mt,i(a){i||(b(t.$$.fragment,a),i=!0)},o(a){$(t.$$.fragment,a),i=!1},d(a){a&&C(e),B(t)}}}function yH(n){var T;let e,t,r,i,a,o,l,s,u,c;function f(I){n[23](I,n[32])}let h={placeholder:n[7],readonly:n[1]};n[32].name!==void 0&&(h.value=n[32].name),e=new En({props:h}),He.push(()=>nt(e,"value",f)),e.$on("blur",n[20]);const m=[tAe,eAe,Qze],_=[];function y(I,P){return I[5]?0:I[14]&&I[14].length?1:2}i=y(n),a=_[i]=m[i](n);let w=n[6]&&gH(n),A=!n[1]&&vH(n),E=((T=n[12])==null?void 0:T.length)>0&&n[13]&&_H(n);return{c(){O(e.$$.fragment),r=U(),a.c(),o=U(),w&&w.c(),l=U(),A&&A.c(),s=U(),E&&E.c(),u=$t()},m(I,P){H(e,I,P),S(I,r,P),_[i].m(I,P),S(I,o,P),w&&w.m(I,P),S(I,l,P),A&&A.m(I,P),S(I,s,P),E&&E.m(I,P),S(I,u,P),c=!0},p(I,P){var q;n=I;const F={};P[0]&128&&(F.placeholder=n[7]),P[0]&2&&(F.readonly=n[1]),!t&&P[0]&131072&&(t=!0,F.value=n[32].name,rt(()=>t=!1)),e.$set(F);let x=i;i=y(n),i===x?_[i].p(n,P):($e(),$(_[x],1,1,()=>{_[x]=null}),we(),a=_[i],a?a.p(n,P):(a=_[i]=m[i](n),a.c()),b(a,1),a.m(o.parentNode,o)),n[6]?w?(w.p(n,P),P[0]&64&&b(w,1)):(w=gH(n),w.c(),b(w,1),w.m(l.parentNode,l)):w&&($e(),$(w,1,1,()=>{w=null}),we()),n[1]?A&&($e(),$(A,1,1,()=>{A=null}),we()):A?(A.p(n,P),P[0]&2&&b(A,1)):(A=vH(n),A.c(),b(A,1),A.m(s.parentNode,s)),((q=n[12])==null?void 0:q.length)>0&&n[13]?E?(E.p(n,P),P[0]&12288&&b(E,1)):(E=_H(n),E.c(),b(E,1),E.m(u.parentNode,u)):E&&($e(),$(E,1,1,()=>{E=null}),we())},i(I){c||(b(e.$$.fragment,I),b(a),b(w),b(A),b(E),c=!0)},o(I){$(e.$$.fragment,I),$(a),$(w),$(A),$(E),c=!1},d(I){B(e,I),I&&C(r),_[i].d(I),I&&C(o),w&&w.d(I),I&&C(l),A&&A.d(I),I&&C(s),E&&E.d(I),I&&C(u)}}}function $H(n){let e,t,r;return t=new Sr({props:{icon:"Add",secondary:!0,thin:!0,outline:!0,$$slots:{default:[aAe]},$$scope:{ctx:n}}}),t.$on("click",n[16]),{c(){e=J("div"),O(t.$$.fragment)},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a[0]&8|a[1]&128&&(o.$$scope={dirty:a,ctx:i}),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function aAe(n){let e,t=n[3]?` ${_T(n[3])}`:"",r;return{c(){e=le("Add"),r=le(t)},m(i,a){S(i,e,a),S(i,r,a)},p(i,a){a[0]&8&&t!==(t=i[3]?` ${_T(i[3])}`:"")&&_t(r,t)},d(i){i&&C(e),i&&C(r)}}}function oAe(n){let e=Object.keys(n[0]||{}).length>0,t,r,i,a=e&&dH(n),o=!n[1]&&!n[2]&&$H(n);return{c(){a&&a.c(),t=U(),o&&o.c(),r=$t()},m(l,s){a&&a.m(l,s),S(l,t,s),o&&o.m(l,s),S(l,r,s),i=!0},p(l,s){s[0]&1&&(e=Object.keys(l[0]||{}).length>0),e?a?(a.p(l,s),s[0]&1&&b(a,1)):(a=dH(l),a.c(),b(a,1),a.m(t.parentNode,t)):a&&($e(),$(a,1,1,()=>{a=null}),we()),!l[1]&&!l[2]?o?(o.p(l,s),s[0]&6&&b(o,1)):(o=$H(l),o.c(),b(o,1),o.m(r.parentNode,r)):o&&($e(),$(o,1,1,()=>{o=null}),we())},i(l){i||(b(a),b(o),i=!0)},o(l){$(a),$(o),i=!1},d(l){a&&a.d(l),l&&C(t),o&&o.d(l),l&&C(r)}}}function lAe(n,e,t){let r=Un(),{defaults:i}=e,{object:a=i||{}}=e,{activity:o={}}=e,{readOnly:l}=e,{noAddButton:s}=e,{name:u}=e,{headings:c=!1}=e,{options:f}=e,{toggle:h}=e,{keyPlaceholder:m="Key"}=e,{valuePlaceholder:_="Value"}=e,{valueHeading:y}=e,{keyHeading:w}=e,{tooltip:A}=e,{menuItems:E}=e,{showMenu:T=!1}=e,{bindings:I=[]}=e,{bindingDrawerLeft:P}=e,F=Object.entries(a||{}).map(([Ae,he])=>({name:Ae,value:he})),x=q(o);function q(Ae){if(!Ae||typeof Ae!="object")return[];const he=Array(F.length);for(let[Me,Ce]of Object.entries(Ae)){const ge=F.find(ze=>ze.name===Me),ut=F.indexOf(ge);he[ut]=ut!==-1?Ce:!0}return he}function W(){t(17,F=[...F,{name:"",value:""}]),t(18,x=[...x,!0]),ee()}function te(Ae){F.splice(Ae,1),x.splice(Ae,1),ee()}function ee(){t(17,F);const Ae={};for(let he=0;he<F.length;he++){const Me=F[he].name;Me&&(Ae[Me]=x[he])}t(21,o=Ae),r("change",F)}function oe(Ae,he){n.$$.not_equal(he.name,Ae)&&(he.name=Ae,t(17,F))}function re(Ae,he){n.$$.not_equal(he.value,Ae)&&(he.value=Ae,t(17,F))}const K=(Ae,he,Me,Ce)=>{t(17,he[Me].value=Ce.detail,F),ee()};function G(Ae,he){n.$$.not_equal(he.value,Ae)&&(he.value=Ae,t(17,F))}function ne(Ae,he){n.$$.not_equal(x[he],Ae)&&(x[he]=Ae,t(18,x))}const ue=Ae=>te(Ae),pe=(Ae,he)=>Ae.onClick(he);return n.$$set=Ae=>{"defaults"in Ae&&t(22,i=Ae.defaults),"object"in Ae&&t(0,a=Ae.object),"activity"in Ae&&t(21,o=Ae.activity),"readOnly"in Ae&&t(1,l=Ae.readOnly),"noAddButton"in Ae&&t(2,s=Ae.noAddButton),"name"in Ae&&t(3,u=Ae.name),"headings"in Ae&&t(4,c=Ae.headings),"options"in Ae&&t(5,f=Ae.options),"toggle"in Ae&&t(6,h=Ae.toggle),"keyPlaceholder"in Ae&&t(7,m=Ae.keyPlaceholder),"valuePlaceholder"in Ae&&t(8,_=Ae.valuePlaceholder),"valueHeading"in Ae&&t(9,y=Ae.valueHeading),"keyHeading"in Ae&&t(10,w=Ae.keyHeading),"tooltip"in Ae&&t(11,A=Ae.tooltip),"menuItems"in Ae&&t(12,E=Ae.menuItems),"showMenu"in Ae&&t(13,T=Ae.showMenu),"bindings"in Ae&&t(14,I=Ae.bindings),"bindingDrawerLeft"in Ae&&t(15,P=Ae.bindingDrawerLeft)},n.$$.update=()=>{n.$$.dirty[0]&131072&&t(0,a=F.reduce((Ae,he)=>({...Ae,[he.name]:he.value}),{}))},[a,l,s,u,c,f,h,m,_,y,w,A,E,T,I,P,W,F,x,te,ee,o,i,oe,re,K,G,ne,ue,pe]}class Q2 extends Re{constructor(e){super(),Ve(this,e,lAe,oAe,Oe,{defaults:22,object:0,activity:21,readOnly:1,noAddButton:2,name:3,headings:4,options:5,toggle:6,keyPlaceholder:7,valuePlaceholder:8,valueHeading:9,keyHeading:10,tooltip:11,menuItems:12,showMenu:13,bindings:14,bindingDrawerLeft:15,addEntry:16},null,[-1,-1])}get addEntry(){return this.$$.ctx[16]}}function wH(n,e,t){const r=n.slice();return r[10]=e[t],r[11]=e,r[12]=t,r}function sAe(n){var c,f;let e,t,r,i,a,o,l;t=new cn({props:{small:!0,$$slots:{default:[fAe]},$$scope:{ctx:n}}});function s(h){n[9](h,n[10])}let u={placeholder:"Enter "+n[5](n[10]),outline:!0,disabled:!n[2],type:(c=n[1].fields[n[10]])==null?void 0:c.type,required:(f=n[1].fields[n[10]])==null?void 0:f.required};return n[0][n[10]]!==void 0&&(u.value=n[0][n[10]]),i=new En({props:u}),He.push(()=>nt(i,"value",s)),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),o=U(),D(e,"class","horizontal svelte-uj8wfq")},m(h,m){S(h,e,m),H(t,e,null),j(e,r),H(i,e,null),j(e,o),l=!0},p(h,m){var w,A;n=h;const _={};m&8200&&(_.$$scope={dirty:m,ctx:n}),t.$set(_);const y={};m&8&&(y.placeholder="Enter "+n[5](n[10])),m&4&&(y.disabled=!n[2]),m&10&&(y.type=(w=n[1].fields[n[10]])==null?void 0:w.type),m&10&&(y.required=(A=n[1].fields[n[10]])==null?void 0:A.required),!a&&m&9&&(a=!0,y.value=n[0][n[10]],rt(()=>a=!1)),i.$set(y)},i(h){l||(b(t.$$.fragment,h),b(i.$$.fragment,h),l=!0)},o(h){$(t.$$.fragment,h),$(i.$$.fragment,h),l=!1},d(h){h&&C(e),B(t),B(i)}}}function uAe(n){let e,t,r,i,a,o;t=new cn({props:{extraSmall:!0,grey:!0,$$slots:{default:[pAe]},$$scope:{ctx:n}}});function l(...s){return n[8](n[10],...s)}return i=new z5({props:{mode:"json",readOnly:!n[2],value:n[0][n[10]]}}),i.$on("change",l),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),a=U()},m(s,u){S(s,e,u),H(t,e,null),j(e,r),H(i,e,null),j(e,a),o=!0},p(s,u){n=s;const c={};u&8200&&(c.$$scope={dirty:u,ctx:n}),t.$set(c);const f={};u&4&&(f.readOnly=!n[2]),u&9&&(f.value=n[0][n[10]]),i.$set(f)},i(s){o||(b(t.$$.fragment,s),b(i.$$.fragment,s),o=!0)},o(s){$(t.$$.fragment,s),$(i.$$.fragment,s),o=!1},d(s){s&&C(e),B(t),B(i)}}}function cAe(n){let e,t,r,i,a;e=new cn({props:{small:!0,$$slots:{default:[dAe]},$$scope:{ctx:n}}});function o(s){n[7](s,n[10])}let l={name:n[5](n[10]),readOnly:!n[2]};return n[0][n[10]]!==void 0&&(l.object=n[0][n[10]]),r=new Q2({props:l}),He.push(()=>nt(r,"object",o)),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(s,u){H(e,s,u),S(s,t,u),H(r,s,u),a=!0},p(s,u){n=s;const c={};u&8200&&(c.$$scope={dirty:u,ctx:n}),e.$set(c);const f={};u&8&&(f.name=n[5](n[10])),u&4&&(f.readOnly=!n[2]),!i&&u&9&&(i=!0,f.object=n[0][n[10]],rt(()=>i=!1)),r.$set(f)},i(s){a||(b(e.$$.fragment,s),b(r.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),$(r.$$.fragment,s),a=!1},d(s){B(e,s),s&&C(t),B(r,s)}}}function fAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function pAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function dAe(n){let e=n[5](n[10])+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[5](r[10])+"")&&_t(t,e)},d(r){r&&C(t)}}}function kH(n){let e,t,r,i;const a=[cAe,uAe,sAe],o=[];function l(s,u){var c,f;return((c=s[1].fields[s[10]])==null?void 0:c.type)==="object"?0:((f=s[1].fields[s[10]])==null?void 0:f.type)==="json"?1:2}return e=l(n),t=o[e]=a[e](n),{c(){t.c(),r=$t()},m(s,u){o[e].m(s,u),S(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?o[e].p(s,u):($e(),$(o[c],1,1,()=>{o[c]=null}),we(),t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),b(t,1),t.m(r.parentNode,r))},i(s){i||(b(t),i=!0)},o(s){$(t),i=!1},d(s){o[e].d(s),s&&C(r)}}}function hAe(n){let e,t,r=n[3],i=[];for(let o=0;o<r.length;o+=1)i[o]=kH(wH(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){for(let o=0;o<i.length;o+=1)i[o].c();e=$t()},m(o,l){for(let s=0;s<i.length;s+=1)i[s].m(o,l);S(o,e,l),t=!0},p(o,l){if(l&47){r=o[3];let s;for(s=0;s<r.length;s+=1){const u=wH(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=kH(u),i[s].c(),b(i[s],1),i[s].m(e.parentNode,e))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){Dn(i,o),o&&C(e)}}}function zH(n){let e,t;return e=new z5({props:{label:"Query",mode:"json",readOnly:!n[2],value:n[0].customData}}),e.$on("change",n[4]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].customData),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function mAe(n){let e,t,r,i,a,o,l;t=new Rt({props:{noPadding:!0,gap:"S",$$slots:{default:[hAe]},$$scope:{ctx:n}}});let s=n[1].customisable&&zH(n);return{c(){e=J("form"),O(t.$$.fragment),r=U(),s&&s.c(),i=$t()},m(u,c){S(u,e,c),H(t,e,null),S(u,r,c),s&&s.m(u,c),S(u,i,c),a=!0,o||(l=At(e,"submit",r_(n[6])),o=!0)},p(u,[c]){const f={};c&8207&&(f.$$scope={dirty:c,ctx:u}),t.$set(f),u[1].customisable?s?(s.p(u,c),c&2&&b(s,1)):(s=zH(u),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(u){a||(b(t.$$.fragment,u),b(s),a=!0)},o(u){$(t.$$.fragment,u),$(s),a=!1},d(u){u&&C(e),B(t),u&&C(r),s&&s.d(u),u&&C(i),o=!1,l()}}}function gAe(n,e,t){let r,{fields:i={}}=e,{schema:a}=e,{editable:o}=e;function l({detail:m}){t(0,i.customData=m.value,i)}function s(m){var y,w;let _;return(y=a.fields[m])!=null&&y.display?_=(w=a.fields[m])==null?void 0:w.display:_=m,zc(_)}function u(m){Bn.call(this,n,m)}function c(m,_){n.$$.not_equal(i[_],m)&&(i[_]=m,t(0,i))}const f=(m,{detail:_})=>t(0,i[m]=_.value,i);function h(m,_){n.$$.not_equal(i[_],m)&&(i[_]=m,t(0,i))}return n.$$set=m=>{"fields"in m&&t(0,i=m.fields),"schema"in m&&t(1,a=m.schema),"editable"in m&&t(2,o=m.editable)},n.$$.update=()=>{n.$$.dirty&2&&t(3,r=Object.keys((a==null?void 0:a.fields)||{}))},[i,a,o,r,l,s,u,c,f,h]}class vAe extends Re{constructor(e){super(),Ve(this,e,gAe,mAe,Oe,{fields:0,schema:1,editable:2})}}function AH(n,e,t){const r=n.slice();return r[22]=e[t],r[23]=e,r[24]=t,r}function MH(n){let e=n[0]._id,t,r,i=TH(n);return{c(){i.c(),t=$t()},m(a,o){i.m(a,o),S(a,t,o),r=!0},p(a,o){o&1&&Oe(e,e=a[0]._id)?($e(),$(i,1,1,mt),we(),i=TH(a),i.c(),b(i,1),i.m(t.parentNode,t)):i.p(a,o)},i(a){r||(b(i),r=!0)},o(a){$(i),r=!1},d(a){a&&C(t),i.d(a)}}}function _Ae(n){let e,t,r,i,a,o;const l=[kAe,wAe],s=[];function u(c,f){var h;return(h=c[0].fields.steps)!=null&&h.length?1:0}return r=u(n),i=s[r]=l[r](n),{c(){e=J("br"),t=U(),i.c(),a=$t()},m(c,f){S(c,e,f),S(c,t,f),s[r].m(c,f),S(c,a,f),o=!0},p(c,f){let h=r;r=u(c),r===h?s[r].p(c,f):($e(),$(s[h],1,1,()=>{s[h]=null}),we(),i=s[r],i?i.p(c,f):(i=s[r]=l[r](c),i.c()),b(i,1),i.m(a.parentNode,a))},i(c){o||(b(i),o=!0)},o(c){$(i),o=!1},d(c){c&&C(e),c&&C(t),s[r].d(c),c&&C(a)}}}function bAe(n){let e,t,r,i,a;function o(u){n[13](u)}let l={schema:n[1],editable:n[2]};n[0].fields!==void 0&&(l.fields=n[0].fields),e=new vAe({props:l}),He.push(()=>nt(e,"fields",o));let s=n[1].urlDisplay&&EH(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(u,c){H(e,u,c),S(u,r,c),s&&s.m(u,c),S(u,i,c),a=!0},p(u,c){const f={};c&2&&(f.schema=u[1]),c&4&&(f.editable=u[2]),!t&&c&1&&(t=!0,f.fields=u[0].fields,rt(()=>t=!1)),e.$set(f),u[1].urlDisplay?s?(s.p(u,c),c&2&&b(s,1)):(s=EH(u),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(u){a||(b(e.$$.fragment,u),b(s),a=!0)},o(u){$(e.$$.fragment,u),$(s),a=!1},d(u){B(e,u),u&&C(r),s&&s.d(u),u&&C(i)}}}function yAe(n){let e,t;return e=new z5({props:{editorHeight:n[3],label:"Query",mode:"json",readOnly:!n[2],value:n[0].fields.json,parameters:n[0].parameters}}),e.$on("change",n[8]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.editorHeight=r[3]),i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].fields.json),i&1&&(a.parameters=r[0].parameters),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function $Ae(n){let e,t;return e=new z5({props:{editorHeight:n[3],label:"Query",mode:"sql",readOnly:!n[2],value:n[0].fields.sql,parameters:n[0].parameters}}),e.$on("change",n[8]),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&8&&(a.editorHeight=r[3]),i&4&&(a.readOnly=!r[2]),i&1&&(a.value=r[0].fields.sql),i&1&&(a.parameters=r[0].parameters),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function wAe(n){var o;let e,t,r=(o=n[0].fields.steps)!=null?o:[],i=[];for(let l=0;l<r.length;l+=1)i[l]=LH(AH(n,r,l));const a=l=>$(i[l],1,1,()=>{i[l]=null});return{c(){for(let l=0;l<i.length;l+=1)i[l].c();e=$t()},m(l,s){for(let u=0;u<i.length;u+=1)i[u].m(l,s);S(l,e,s),t=!0},p(l,s){var u;if(s&3611){r=(u=l[0].fields.steps)!=null?u:[];let c;for(c=0;c<r.length;c+=1){const f=AH(l,r,c);i[c]?(i[c].p(f,s),b(i[c],1)):(i[c]=LH(f),i[c].c(),b(i[c],1),i[c].m(e.parentNode,e))}for($e(),c=r.length;c<i.length;c+=1)a(c);we()}},i(l){if(!t){for(let s=0;s<r.length;s+=1)b(i[s]);t=!0}},o(l){i=i.filter(Boolean);for(let s=0;s<i.length;s+=1)$(i[s]);t=!1},d(l){Dn(i,l),l&&C(e)}}}function kAe(n){let e,t,r,i,a;return t=new $n({props:{secondary:!0,slot:"buttons",$$slots:{default:[MAe]},$$scope:{ctx:n}}}),t.$on("click",n[14]),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("br"),D(e,"class","controls svelte-1lky0bq")},m(o,l){S(o,e,l),H(t,e,null),S(o,r,l),S(o,i,l),a=!0},p(o,l){const s={};l&33554432&&(s.$$scope={dirty:l,ctx:o}),t.$set(s)},i(o){a||(b(t.$$.fragment,o),a=!0)},o(o){$(t.$$.fragment,o),a=!1},d(o){o&&C(e),B(t),o&&C(r),o&&C(i)}}}function zAe(n){let e,t;function r(){return n[15](n[24])}return e=new Sr({props:{quiet:!0,icon:"ChevronUp"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function CH(n){let e,t;function r(){return n[16](n[24])}return e=new Sr({props:{quiet:!0,icon:"ChevronDown"}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function AAe(n){let e,t,r,i,a,o=n[24],l;function s(...m){return n[18](n[22],n[24],...m)}r=new mn({props:{value:n[22].key,options:n[1].steps.map(DH)}}),r.$on("change",s);const u=()=>n[19](a,o),c=()=>n[19](null,o);function f(...m){return n[20](n[24],...m)}let h={editorHeight:n[3]/2,mode:"json",value:typeof n[22].value=="string"?n[22].value:n[22].value.value};return a=new z5({props:h}),u(),a.$on("change",f),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),O(a.$$.fragment),D(t,"class","block-field svelte-1lky0bq"),D(e,"class","fields svelte-1lky0bq")},m(m,_){S(m,e,_),j(e,t),H(r,t,null),j(t,i),H(a,t,null),l=!0},p(m,_){n=m;const y={};_&1&&(y.value=n[22].key),_&2&&(y.options=n[1].steps.map(DH)),r.$set(y),o!==n[24]&&(c(),o=n[24],u());const w={};_&8&&(w.editorHeight=n[3]/2),_&1&&(w.value=typeof n[22].value=="string"?n[22].value:n[22].value.value),a.$set(w)},i(m){l||(b(r.$$.fragment,m),b(a.$$.fragment,m),l=!0)},o(m){$(r.$$.fragment,m),$(a.$$.fragment,m),l=!1},d(m){m&&C(e),B(r),c(),B(a)}}}function SH(n){let e,t,r,i;return e=new dn({props:{hoverable:!0,name:"AddCircle",size:"S"}}),e.$on("click",n[21]),{c(){O(e.$$.fragment),t=U(),r=J("br")},m(a,o){H(e,a,o),S(a,t,o),S(a,r,o),i=!0},p:mt,i(a){i||(b(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),a&&C(r)}}}function LH(n){let e,t,r,i,a,o,l,s=n[24]+1+"",u,c,f,h,m,_,y,w,A,E,T,I,P,F;r=new pi({props:{noMargin:!0}});let x=n[24]>0&&zAe(n),q=n[24]<n[0].fields.steps.length-1&&CH(n);function W(){return n[17](n[24])}y=new Sr({props:{icon:"DeleteOutline"}}),y.$on("click",W),A=new Rt({props:{noPadding:!0,gap:"S",$$slots:{default:[AAe]},$$scope:{ctx:n}}});let te=n[24]===n[0].fields.steps.length-1&&SH(n);return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),o=J("div"),l=le("Stage "),u=le(s),c=U(),f=J("div"),h=J("div"),x&&x.c(),m=U(),q&&q.c(),_=U(),O(y.$$.fragment),w=U(),O(A.$$.fragment),E=U(),T=J("div"),I=U(),te&&te.c(),P=U(),yn(h,"margin-right","24px"),D(f,"class","block-actions svelte-1lky0bq"),D(o,"class","block-options svelte-1lky0bq"),D(a,"class","blockSection svelte-1lky0bq"),D(t,"class","subblock svelte-1lky0bq"),D(T,"class","separator svelte-1lky0bq"),D(e,"class","block svelte-1lky0bq")},m(ee,oe){S(ee,e,oe),j(e,t),H(r,t,null),j(t,i),j(t,a),j(a,o),j(o,l),j(o,u),j(o,c),j(o,f),j(f,h),x&&x.m(h,null),j(h,m),q&&q.m(h,null),j(f,_),H(y,f,null),j(a,w),H(A,a,null),j(e,E),j(e,T),j(e,I),te&&te.m(e,null),j(e,P),F=!0},p(ee,oe){n=ee,n[24]>0&&x.p(n,oe),n[24]<n[0].fields.steps.length-1?q?(q.p(n,oe),oe&1&&b(q,1)):(q=CH(n),q.c(),b(q,1),q.m(h,null)):q&&($e(),$(q,1,1,()=>{q=null}),we());const re={};oe&33554459&&(re.$$scope={dirty:oe,ctx:n}),A.$set(re),n[24]===n[0].fields.steps.length-1?te?(te.p(n,oe),oe&1&&b(te,1)):(te=SH(n),te.c(),b(te,1),te.m(e,P)):te&&($e(),$(te,1,1,()=>{te=null}),we())},i(ee){F||(b(r.$$.fragment,ee),b(x),b(q),b(y.$$.fragment,ee),b(A.$$.fragment,ee),b(te),F=!0)},o(ee){$(r.$$.fragment,ee),$(x),$(q),$(y.$$.fragment,ee),$(A.$$.fragment,ee),$(te),F=!1},d(ee){ee&&C(e),B(r),x&&x.d(),q&&q.d(),B(y),B(A),te&&te.d()}}}function MAe(n){let e;return{c(){e=le("Add stage")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function EH(n){let e,t,r,i,a;return t=new cn({props:{small:!0,$$slots:{default:[CAe]},$$scope:{ctx:n}}}),i=new En({props:{thin:!0,outline:!0,disabled:!0,value:n[6]}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),O(i.$$.fragment),D(e,"class","url-row svelte-1lky0bq")},m(o,l){S(o,e,l),H(t,e,null),j(e,r),H(i,e,null),a=!0},p(o,l){const s={};l&33554432&&(s.$$scope={dirty:l,ctx:o}),t.$set(s);const u={};l&64&&(u.value=o[6]),i.$set(u)},i(o){a||(b(t.$$.fragment,o),b(i.$$.fragment,o),a=!0)},o(o){$(t.$$.fragment,o),$(i.$$.fragment,o),a=!1},d(o){o&&C(e),B(t),B(i)}}}function CAe(n){let e;return{c(){e=le("URL")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function TH(n){let e,t,r,i;const a=[$Ae,yAe,bAe,_Ae],o=[];function l(s,u){var c;return s[1].type===s[7].SQL?0:s[5]?1:s[1].type===s[7].FIELDS?2:((c=s[0].fields.extra)==null?void 0:c.actionType)==="pipeline"?3:-1}return~(e=l(n))&&(t=o[e]=a[e](n)),{c(){t&&t.c(),r=$t()},m(s,u){~e&&o[e].m(s,u),S(s,r,u),i=!0},p(s,u){let c=e;e=l(s),e===c?~e&&o[e].p(s,u):(t&&($e(),$(o[c],1,1,()=>{o[c]=null}),we()),~e?(t=o[e],t?t.p(s,u):(t=o[e]=a[e](s),t.c()),b(t,1),t.m(r.parentNode,r)):t=null)},i(s){i||(b(t),i=!0)},o(s){$(t),i=!1},d(s){~e&&o[e].d(s),s&&C(r)}}}function SAe(n){let e,t,r=n[1]&&MH(n);return{c(){r&&r.c(),e=$t()},m(i,a){r&&r.m(i,a),S(i,e,a),t=!0},p(i,[a]){i[1]?r?(r.p(i,a),a&2&&b(r,1)):(r=MH(i),r.c(),b(r,1),r.m(e.parentNode,e)):r&&($e(),$(r,1,1,()=>{r=null}),we())},i(i){t||(b(r),t=!0)},o(i){$(r),t=!1},d(i){r&&r.d(i),i&&C(e)}}}const DH=n=>n.key;function LAe(n,e,t){let r,i;const a={SQL:"sql",JSON:"json",FIELDS:"fields"};let{query:o}=e,{datasource:l}=e,{schema:s}=e,{editable:u=!0}=e,{height:c=500}=e,f=[];function h({detail:W}){t(0,o.fields[s.type]=W.value,o)}function m(W){var te,ee;for(let oe=W;oe<((te=o.fields.steps)==null?void 0:te.length)-1;oe++)f[oe].update((ee=o.fields.steps[oe+1].value)==null?void 0:ee.value)}function _(W,te){var oe,re;const ee=(oe=o.fields.steps[te].value)==null?void 0:oe.value;f[te].update((re=o.fields.steps[W].value)==null?void 0:re.value),f[W].update(ee)}function y(W,te,ee){var re,K,G;const oe=(re=o.fields.steps[ee].value)==null?void 0:re.value;(!oe||oe.toString().replace("\\s","").length<3||((K=s.steps.filter(ne=>ne.key===W)[0])==null?void 0:K.template)===oe)&&(t(0,o.fields.steps[ee].value.value=(G=s.steps.filter(ne=>ne.key===te)[0])==null?void 0:G.template,o),f[ee].update(o.fields.steps[ee].value.value)),t(0,o.fields.steps[ee].key=te,o)}function w(W){n.$$.not_equal(o.fields,W)&&(o.fields=W,t(0,o))}const A=()=>{t(0,o.fields.steps=[{key:"$match",value:`{
|
|
486
486
|
|
|
487
487
|
}`}],o)},E=W=>{_(W,W-1);const te=o.fields.steps[W-1].key;t(0,o.fields.steps[W-1].key=o.fields.steps[W].key,o),t(0,o.fields.steps[W].key=te,o)},T=W=>{_(W,W+1);const te=o.fields.steps[W+1].key;t(0,o.fields.steps[W+1].key=o.fields.steps[W].key,o),t(0,o.fields.steps[W].key=te,o)},I=W=>{m(W),o.fields.steps.splice(W,1),t(0,o.fields.steps=[...o.fields.steps],o)},P=(W,te,{detail:ee})=>{y(W.key,ee,te)};function F(W,te){He[W?"unshift":"push"](()=>{f[te]=W,t(4,f)})}const x=(W,{detail:te})=>{t(0,o.fields.steps[W].value=te,o)},q=()=>{t(0,o.fields.steps=[...o.fields.steps,{key:"$match",value:`{
|
|
488
488
|
|
|
@@ -936,7 +936,7 @@ Use Save As... to download, then click back to return to this page.`)&&(location
|
|
|
936
936
|
`),t=J("i"),i=le(r),a=le("?"),o=le(`
|
|
937
937
|
This action cannot be undone.`)},m(l,s){S(l,e,s),S(l,t,s),j(t,i),j(t,a),S(l,o,s)},p(l,s){s&1&&r!==(r=l[0].name+"")&&_t(i,r)},d(l){l&&C(e),l&&C(t),l&&C(o)}}}function Vnt(n){let e,t,r,i,a,o;e=new Sc({props:{$$slots:{control:[Int],default:[Ont]},$$scope:{ctx:n}}});let l={okText:"Delete Automation",onOk:n[3],title:"Confirm Deletion",$$slots:{default:[Pnt]},$$scope:{ctx:n}};r=new Os({props:l}),n[5](r);let s={automation:n[0]};return a=new Tnt({props:s}),n[6](a),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment)},m(u,c){H(e,u,c),S(u,t,c),H(r,u,c),S(u,i,c),H(a,u,c),o=!0},p(u,[c]){const f={};c&518&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const h={};c&513&&(h.$$scope={dirty:c,ctx:u}),r.$set(h);const m={};c&1&&(m.automation=u[0]),a.$set(m)},i(u){o||(b(e.$$.fragment,u),b(r.$$.fragment,u),b(a.$$.fragment,u),o=!0)},o(u){$(e.$$.fragment,u),$(r.$$.fragment,u),$(a.$$.fragment,u),o=!1},d(u){B(e,u),u&&C(t),n[5](null),B(r,u),u&&C(i),n[6](null),B(a,u)}}}function Rnt(n,e,t){let r,i;Ne(n,Or,h=>t(7,r=h)),Ne(n,si,h=>t(8,i=h));let{automation:a}=e,o,l;async function s(){try{await Or.actions.delete(a),yt.success("Automation deleted successfully"),i("../automate")}catch{yt.error("Error deleting automation")}}async function u(){try{await Or.actions.duplicate(a),yt.success("Automation has been duplicated successfully"),i(`./${r.selectedAutomation.automation._id}`)}catch{yt.error("Error duplicating automation")}}function c(h){He[h?"unshift":"push"](()=>{o=h,t(1,o)})}function f(h){He[h?"unshift":"push"](()=>{l=h,t(2,l)})}return n.$$set=h=>{"automation"in h&&t(0,a=h.automation)},[a,o,l,s,u,c,f]}class Nnt extends Re{constructor(e){super(),Ve(this,e,Rnt,Vnt,Oe,{automation:0})}}function tN(n,e,t){const r=n.slice();return r[5]=e[t],r[7]=t,r}function Fnt(n){let e,t,r;return e=new Nnt({props:{automation:n[5]}}),{c(){O(e.$$.fragment),t=U()},m(i,a){H(e,i,a),S(i,t,a),r=!0},p(i,a){const o={};a&1&&(o.automation=i[5]),e.$set(o)},i(i){r||(b(e.$$.fragment,i),r=!0)},o(i){$(e.$$.fragment,i),r=!1},d(i){B(e,i),i&&C(t)}}}function nN(n){let e,t;function r(){return n[3](n[5])}return e=new M5({props:{border:n[7]>0,icon:"ShareAndroid",text:n[5].name,selected:n[5]._id===n[1],$$slots:{default:[Fnt]},$$scope:{ctx:n}}}),e.$on("click",r),{c(){O(e.$$.fragment)},m(i,a){H(e,i,a),t=!0},p(i,a){n=i;const o={};a&1&&(o.text=n[5].name),a&3&&(o.selected=n[5]._id===n[1]),a&257&&(o.$$scope={dirty:a,ctx:n}),e.$set(o)},i(i){t||(b(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){B(e,i)}}}function jnt(n){let e,t,r=n[0].automations.sort(rN),i=[];for(let o=0;o<r.length;o+=1)i[o]=nN(tN(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","automations-list svelte-g64vb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&7){r=o[0].automations.sort(rN);let s;for(s=0;s<r.length;s+=1){const u=tN(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=nN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}const rN=n=>n.name;function xnt(n,e,t){let r,i,a;Ne(n,si,s=>t(4,i=s)),Ne(n,Or,s=>t(0,a=s)),ar(async()=>{try{await Or.actions.fetch()}catch{yt.error("Error getting automations list")}});function o(s){Or.actions.select(s),i(`./${s._id}`)}const l=s=>o(s);return n.$$.update=()=>{var s,u;n.$$.dirty&1&&t(1,r=(u=(s=a.selectedAutomation)==null?void 0:s.automation)==null?void 0:u._id)},[a,r,o,l]}class Unt extends Re{constructor(e){super(),Ve(this,e,xnt,jnt,Oe,{})}}function iN(n,e,t){const r=n.slice();return r[17]=e[t][0],r[18]=e[t][1],r}function qnt(n){let e;return{c(){e=le(`Please name your automation, then select a trigger. Every automation must
|
|
938
938
|
start with a trigger.`)},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Wnt(n){let e;return{c(){e=le("Triggers")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function Gnt(n){let e=n[18].name+"",t;return{c(){t=le(e)},m(r,i){S(r,t,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&_t(t,e)},d(r){r&&C(t)}}}function aN(n){let e,t,r,i,a,o,l,s,u,c;r=new dn({props:{name:n[18].icon}}),o=new jt({props:{size:"S",$$slots:{default:[Gnt]},$$scope:{ctx:n}}});function f(){return n[13](n[18])}return{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("span"),O(o.$$.fragment),l=U(),D(a,"class","icon-spacing svelte-d3iboa"),D(t,"class","item-body svelte-d3iboa"),D(e,"class","item svelte-d3iboa"),De(e,"selected",n[2]===n[18].name)},m(h,m){S(h,e,m),j(e,t),H(r,t,null),j(t,i),j(t,a),H(o,a,null),j(e,l),s=!0,u||(c=At(e,"click",f),u=!0)},p(h,m){n=h;const _={};m&8&&(_.name=n[18].icon),r.$set(_);const y={};m&2097160&&(y.$$scope={dirty:m,ctx:n}),o.$set(y),m&12&&De(e,"selected",n[2]===n[18].name)},i(h){s||(b(r.$$.fragment,h),b(o.$$.fragment,h),s=!0)},o(h){$(r.$$.fragment,h),$(o.$$.fragment,h),s=!1},d(h){h&&C(e),B(r),B(o),u=!1,c()}}}function Ynt(n){let e,t,r,i;e=new jt({props:{size:"S",$$slots:{default:[Wnt]},$$scope:{ctx:n}}});let a=n[3],o=[];for(let s=0;s<a.length;s+=1)o[s]=aN(iN(n,a,s));const l=s=>$(o[s],1,1,()=>{o[s]=null});return{c(){O(e.$$.fragment),t=U(),r=J("div");for(let s=0;s<o.length;s+=1)o[s].c();D(r,"class","item-list svelte-d3iboa")},m(s,u){H(e,s,u),S(s,t,u),S(s,r,u);for(let c=0;c<o.length;c+=1)o[c].m(r,null);i=!0},p(s,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:s}),e.$set(c),u&76){a=s[3];let f;for(f=0;f<a.length;f+=1){const h=iN(s,a,f);o[f]?(o[f].p(h,u),b(o[f],1)):(o[f]=aN(h),o[f].c(),b(o[f],1),o[f].m(r,null))}for($e(),f=a.length;f<o.length;f+=1)l(f);we()}},i(s){if(!i){b(e.$$.fragment,s);for(let u=0;u<a.length;u+=1)b(o[u]);i=!0}},o(s){$(e.$$.fragment,s),o=o.filter(Boolean);for(let u=0;u<o.length;u+=1)$(o[u]);i=!1},d(s){B(e,s),s&&C(t),s&&C(r),Dn(o,s)}}}function Knt(n){let e,t,r,i,a,o,l,s,u,c;e=new h_({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new jt({props:{size:"XS",$$slots:{default:[qnt]},$$scope:{ctx:n}}});function f(_){n[10](_)}function h(_){n[11](_)}let m={label:"Name"};return n[0]!==void 0&&(m.value=n[0]),n[4]!==void 0&&(m.error=n[4]),a=new En({props:m}),He.push(()=>nt(a,"value",f)),He.push(()=>nt(a,"error",h)),a.$on("change",n[12]),u=new Rt({props:{noPadding:!0,$$slots:{default:[Ynt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment),i=U(),O(a.$$.fragment),s=U(),O(u.$$.fragment)},m(_,y){H(e,_,y),S(_,t,y),H(r,_,y),S(_,i,y),H(a,_,y),S(_,s,y),H(u,_,y),c=!0},p(_,y){const w={};y&2097152&&(w.$$scope={dirty:y,ctx:_}),r.$set(w);const A={};!o&&y&1&&(o=!0,A.value=_[0],rt(()=>o=!1)),!l&&y&16&&(l=!0,A.error=_[4],rt(()=>l=!1)),a.$set(A);const E={};y&2097164&&(E.$$scope={dirty:y,ctx:_}),u.$set(E)},i(_){c||(b(e.$$.fragment,_),b(r.$$.fragment,_),b(a.$$.fragment,_),b(u.$$.fragment,_),c=!0)},o(_){$(e.$$.fragment,_),$(r.$$.fragment,_),$(a.$$.fragment,_),$(u.$$.fragment,_),c=!1},d(_){B(e,_),_&&C(t),B(r,_),_&&C(i),B(a,_),_&&C(s),B(u,_)}}}function Xnt(n){let e,t;return e=new _r({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:n[5],disabled:!n[2]||!n[0],$$slots:{default:[Knt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Jnt(n,e,t){let r,i,a,o,l,s;Ne(n,Or,I=>t(8,o=I)),Ne(n,si,I=>t(16,l=I)),Ne(n,xd,I=>t(9,s=I));let u,c,f=!1,h,{webhookModal:m}=e;async function _(){var I;try{await Or.actions.create({name:u,instanceId:r});const P=o.selectedAutomation.constructBlock("TRIGGER",h.stepId,h);Or.actions.addBlockToAutomation(P),h.stepId===f6.WEBHOOK&&m.show,await Or.actions.save((I=o.selectedAutomation)==null?void 0:I.automation),yt.success(`Automation ${u} created`),l(`./${o.selectedAutomation.automation._id}`)}catch{yt.error("Error creating automation")}}const y=I=>{h=I,t(2,c=I.name)};function w(I){u=I,t(0,u)}function A(I){i=I,t(4,i),t(1,f),t(0,u)}const E=()=>t(1,f=!0),T=I=>y(I);return n.$$set=I=>{"webhookModal"in I&&t(7,m=I.webhookModal)},n.$$.update=()=>{n.$$.dirty&512&&(r=s._id),n.$$.dirty&3&&t(4,i=f&&!u?"Please specify a name for the automation.":null),n.$$.dirty&256&&t(3,a=Object.entries(o.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,y,m,o,s,w,A,E,T]}class NX extends Re{constructor(e){super(),Ve(this,e,Jnt,Xnt,Oe,{webhookModal:7})}}function Znt(n){let e,t;return e=new NX({props:{webhookModal:n[1]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Qnt(n){let e,t,r,i;e=new Unt({});let a={$$slots:{default:[Znt]},$$scope:{ctx:n}};return r=new ir({props:a}),n[2](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,l){const s={};l&10&&(s.$$scope={dirty:l,ctx:o}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[2](null),B(r,o)}}}function ert(n){let e,t;return e=new F1({props:{title:"Automations",$$slots:{default:[Qnt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function trt(n){let e,t,r,i,a,o;return t=new Y2({props:{selected:"Automations",$$slots:{default:[ert]},$$scope:{ctx:n}}}),a=new dn({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){kn(n[0].show)&&n[0].show.apply(this,arguments)}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","add-button svelte-mcmub4"),D(e,"class","title svelte-mcmub4")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,[s]){n=l;const u={};s&11&&(u.$$scope={dirty:s,ctx:n}),t.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function nrt(n,e,t){let{modal:r}=e,{webhookModal:i}=e;function a(o){He[o?"unshift":"push"](()=>{r=o,t(0,r)})}return n.$$set=o=>{"modal"in o&&t(0,r=o.modal),"webhookModal"in o&&t(1,i=o.webhookModal)},[r,i,a]}class rrt extends Re{constructor(e){super(),Ve(this,e,nrt,trt,Oe,{modal:0,webhookModal:1})}}function oN(n,e,t){const r=n.slice();return r[8]=e[t],r[10]=t,r}function lN(n){var u;let e,t,r,i,a;function o(c){n[6](c)}let l={showTestStatus:!0,block:n[8],isTrigger:n[10]===0,testResult:(u=n[2])==null?void 0:u[n[10]]};n[3]!==void 0&&(l.showParameters=n[3]),e=new RX({props:l}),He.push(()=>nt(e,"showParameters",o));let s=n[3]&&n[3][n[8].id]&&sN(n);return{c(){O(e.$$.fragment),r=U(),s&&s.c(),i=$t()},m(c,f){H(e,c,f),S(c,r,f),s&&s.m(c,f),S(c,i,f),a=!0},p(c,f){var m;const h={};f&2&&(h.block=c[8]),f&4&&(h.testResult=(m=c[2])==null?void 0:m[c[10]]),!t&&f&8&&(t=!0,h.showParameters=c[3],rt(()=>t=!1)),e.$set(h),c[3]&&c[3][c[8].id]?s?(s.p(c,f),f&10&&b(s,1)):(s=sN(c),s.c(),b(s,1),s.m(i.parentNode,i)):s&&($e(),$(s,1,1,()=>{s=null}),we())},i(c){a||(b(e.$$.fragment,c),b(s),a=!0)},o(c){$(e.$$.fragment,c),$(s),a=!1},d(c){B(e,c),c&&C(r),s&&s.d(c),c&&C(i)}}}function sN(n){var s,u;let e,t,r,i,a,o;e=new pi({props:{noMargin:!0}});let l=((u=(s=n[2])==null?void 0:s[n[10]])==null?void 0:u.outputs.iterations)&&uN(n);return a=new Y2({props:{noHorizPadding:!0,selected:"Input",$$slots:{default:[lrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),l&&l.c(),r=U(),i=J("div"),O(a.$$.fragment),D(i,"class","tabs svelte-1iblsnb")},m(c,f){H(e,c,f),S(c,t,f),l&&l.m(c,f),S(c,r,f),S(c,i,f),H(a,i,null),o=!0},p(c,f){var m,_;(_=(m=c[2])==null?void 0:m[c[10]])!=null&&_.outputs.iterations?l?(l.p(c,f),f&4&&b(l,1)):(l=uN(c),l.c(),b(l,1),l.m(r.parentNode,r)):l&&($e(),$(l,1,1,()=>{l=null}),we());const h={};f&2052&&(h.$$scope={dirty:f,ctx:c}),a.$set(h)},i(c){o||(b(e.$$.fragment,c),b(l),b(a.$$.fragment,c),o=!0)},o(c){$(e.$$.fragment,c),$(l),$(a.$$.fragment,c),o=!1},d(c){B(e,c),c&&C(t),l&&l.d(c),c&&C(r),c&&C(i),B(a)}}}function uN(n){let e,t,r,i,a,o;return t=new dn({props:{name:"Reuse"}}),a=new cn({props:{$$slots:{default:[irt]},$$scope:{ctx:n}}}),{c(){e=J("div"),O(t.$$.fragment),r=U(),i=J("div"),O(a.$$.fragment),yn(i,"margin-left","10px"),yn(e,"display","flex"),yn(e,"padding","10px 10px 0px 12px")},m(l,s){S(l,e,s),H(t,e,null),j(e,r),j(e,i),H(a,i,null),o=!0},p(l,s){const u={};s&2052&&(u.$$scope={dirty:s,ctx:l}),a.$set(u)},i(l){o||(b(t.$$.fragment,l),b(a.$$.fragment,l),o=!0)},o(l){$(t.$$.fragment,l),$(a.$$.fragment,l),o=!1},d(l){l&&C(e),B(t),B(a)}}}function irt(n){var a,o;let e,t=((o=(a=n[2])==null?void 0:a[n[10]])==null?void 0:o.outputs.iterations)+"",r,i;return{c(){e=le("This loop ran "),r=le(t),i=le(" times.")},m(l,s){S(l,e,s),S(l,r,s),S(l,i,s)},p(l,s){var u,c;s&4&&t!==(t=((c=(u=l[2])==null?void 0:u[l[10]])==null?void 0:c.outputs.iterations)+"")&&_t(r,t)},d(l){l&&C(e),l&&C(r),l&&C(i)}}}function art(n){var r,i;let e,t;return e=new F3({props:{minHeight:"80px",disabled:!0,value:Kv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.inputs,"No input")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Kv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.inputs,"No input")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function ort(n){var r,i;let e,t;return e=new F3({props:{minHeight:"100px",disabled:!0,value:Kv((i=(r=n[2])==null?void 0:r[n[10]])==null?void 0:i.outputs,"No output")}}),{c(){O(e.$$.fragment)},m(a,o){H(e,a,o),t=!0},p(a,o){var s,u;const l={};o&4&&(l.value=Kv((u=(s=a[2])==null?void 0:s[a[10]])==null?void 0:u.outputs,"No output")),e.$set(l)},i(a){t||(b(e.$$.fragment,a),t=!0)},o(a){$(e.$$.fragment,a),t=!1},d(a){B(e,a)}}}function lrt(n){let e,t,r,i;return e=new F1({props:{title:"Input",$$slots:{default:[art]},$$scope:{ctx:n}}}),r=new F1({props:{title:"Output",$$slots:{default:[ort]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(a,o){H(e,a,o),S(a,t,o),H(r,a,o),i=!0},p(a,o){const l={};o&2052&&(l.$$scope={dirty:o,ctx:a}),e.$set(l);const s={};o&2052&&(s.$$scope={dirty:o,ctx:a}),r.$set(s)},i(a){i||(b(e.$$.fragment,a),b(r.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(r.$$.fragment,a),i=!1},d(a){B(e,a),a&&C(t),B(r,a)}}}function cN(n){let e;return{c(){e=J("div"),D(e,"class","separator svelte-1iblsnb")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function fN(n){let e,t,r,i,a,o=n[8].stepId!==V3.LOOP&&lN(n),l=n[1].length-1!==n[10]&&cN();return{c(){e=J("div"),o&&o.c(),r=U(),l&&l.c(),i=$t(),D(e,"class","block svelte-1iblsnb"),D(e,"style",t=n[0]?`width: ${n[0]}`:"")},m(s,u){S(s,e,u),o&&o.m(e,null),S(s,r,u),l&&l.m(s,u),S(s,i,u),a=!0},p(s,u){s[8].stepId!==V3.LOOP?o?(o.p(s,u),u&2&&b(o,1)):(o=lN(s),o.c(),b(o,1),o.m(e,null)):o&&($e(),$(o,1,1,()=>{o=null}),we()),(!a||u&1&&t!==(t=s[0]?`width: ${s[0]}`:""))&&D(e,"style",t),s[1].length-1!==s[10]?l||(l=cN(),l.c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i(s){a||(b(o),a=!0)},o(s){$(o),a=!1},d(s){s&&C(e),o&&o.d(),s&&C(r),l&&l.d(s),s&&C(i)}}}function srt(n){let e,t,r=n[1],i=[];for(let o=0;o<r.length;o+=1)i[o]=fN(oN(n,r,o));const a=o=>$(i[o],1,1,()=>{i[o]=null});return{c(){e=J("div");for(let o=0;o<i.length;o+=1)i[o].c();D(e,"class","container svelte-1iblsnb")},m(o,l){S(o,e,l);for(let s=0;s<i.length;s+=1)i[s].m(e,null);t=!0},p(o,[l]){if(l&15){r=o[1];let s;for(s=0;s<r.length;s+=1){const u=oN(o,r,s);i[s]?(i[s].p(u,l),b(i[s],1)):(i[s]=fN(u),i[s].c(),b(i[s],1),i[s].m(e,null))}for($e(),s=r.length;s<i.length;s+=1)a(s);we()}},i(o){if(!t){for(let l=0;l<r.length;l+=1)b(i[l]);t=!0}},o(o){i=i.filter(Boolean);for(let l=0;l<i.length;l+=1)$(i[l]);t=!1},d(o){o&&C(e),Dn(i,o)}}}function Kv(n,e){return n?JSON.stringify(n,null,2):e}function urt(n,e,t){let r,{automation:i}=e,{testResults:a}=e,{width:o="400px"}=e,l,s;function u(f){return f==null?void 0:f.steps.filter(h=>h.stepId!==V3.LOOP||[])}function c(f){l=f,t(3,l)}return n.$$set=f=>{"automation"in f&&t(4,i=f.automation),"testResults"in f&&t(5,a=f.testResults),"width"in f&&t(0,o=f.width)},n.$$.update=()=>{if(n.$$.dirty&32&&t(2,r=u(a)),n.$$.dirty&22){if(t(1,s=[]),i)i.definition.trigger&&s.push(i.definition.trigger),t(1,s=s.concat(i.definition.steps||[]).filter(f=>f.stepId!==V3.LOOP));else if(r){t(1,s=r||[]);let f=0;for(let h of s)h.id=f++}}},[o,s,r,l,i,a,c]}class FX extends Re{constructor(e){super(),Ve(this,e,urt,srt,Oe,{automation:4,testResults:5,width:0})}}function crt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;return r=new dn({props:{name:"MultipleCheck"}}),s=new dn({props:{hoverable:!0,name:"Close"}}),s.$on("click",n[4]),c=new pi({}),h=new FX({props:{automation:n[0],testResults:n[2]}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),a.textContent="Test Details",o=U(),l=J("div"),O(s.$$.fragment),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),yn(a,"padding-left","var(--spacing-l)"),D(t,"class","title-text svelte-nwwj95"),yn(l,"padding-right","var(--spacing-xl)"),D(e,"class","title svelte-nwwj95")},m(_,y){S(_,e,y),j(e,t),H(r,t,null),j(t,i),j(t,a),j(e,o),j(e,l),H(s,l,null),S(_,u,y),H(c,_,y),S(_,f,y),H(h,_,y),m=!0},p(_,[y]){const w={};y&1&&(w.automation=_[0]),y&4&&(w.testResults=_[2]),h.$set(w)},i(_){m||(b(r.$$.fragment,_),b(s.$$.fragment,_),b(c.$$.fragment,_),b(h.$$.fragment,_),m=!0)},o(_){$(r.$$.fragment,_),$(s.$$.fragment,_),$(c.$$.fragment,_),$(h.$$.fragment,_),m=!1},d(_){_&&C(e),B(r),B(s),_&&C(u),B(c,_),_&&C(f),B(h,_)}}}function frt(n,e,t){let r;Ne(n,Or,s=>t(1,r=s));let{automation:i}=e,a,o;const l=async()=>{G1(Or,r.showTestPanel=!1,r)};return n.$$set=s=>{"automation"in s&&t(0,i=s.automation)},n.$$.update=()=>{var s;n.$$.dirty&11&&(t(3,a=[]),i?(i.definition.trigger&&a.push(i.definition.trigger),t(3,a=a.concat(i.definition.steps||[]).filter(u=>u.stepId!==V3.LOOP))):r.selectedAutomation&&t(0,i=r.selectedAutomation)),n.$$.dirty&2&&t(2,o=(s=r.selectedAutomation)==null?void 0:s.testResults)},[i,r,o,a,l]}class prt extends Re{constructor(e){super(),Ve(this,e,frt,crt,Oe,{automation:0})}}function drt(n){let e,t,r,i;return r=new Rt({props:{gap:"S",justifyItems:"center",$$slots:{default:[_rt]},$$scope:{ctx:n}}}),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),D(t,"class","main svelte-374m3f"),D(e,"class","centered svelte-374m3f")},m(a,o){S(a,e,o),j(e,t),H(r,t,null),i=!0},p(a,o){const l={};o&258&&(l.$$scope={dirty:o,ctx:a}),r.$set(l)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){$(r.$$.fragment,a),i=!1},d(a){a&&C(e),B(r)}}}function hrt(n){let e;const t=n[4].default,r=Xn(t,n,n[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&Zn(r,t,i,i[8],e?Jn(t,i[8],a,null):Qn(i[8]),null)},i(i){e||(b(r,i),e=!0)},o(i){$(r,i),e=!1},d(i){r&&r.d(i)}}}function mrt(n){let e;return{c(){e=le("You have no automations")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function grt(n){let e;return{c(){e=le("Let's fix that. Call the bots!")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function vrt(n){let e;return{c(){e=le("Create automation")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function _rt(n){let e,t,r,i,a,o,l,s,u;return i=new Rn({props:{size:"M",$$slots:{default:[mrt]},$$scope:{ctx:n}}}),o=new jt({props:{size:"M",$$slots:{default:[grt]},$$scope:{ctx:n}}}),s=new $n({props:{size:"M",cta:!0,$$slots:{default:[vrt]},$$scope:{ctx:n}}}),s.$on("click",n[5]),{c(){e=lt("svg"),t=lt("use"),r=U(),O(i.$$.fragment),a=U(),O(o.$$.fragment),l=U(),O(s.$$.fragment),Gr(t,"xlink:href","#spectrum-icon-18-WorkflowAdd"),D(e,"width","60px"),D(e,"height","60px"),D(e,"class","spectrum-Icon"),D(e,"focusable","false")},m(c,f){S(c,e,f),j(e,t),S(c,r,f),H(i,c,f),S(c,a,f),H(o,c,f),S(c,l,f),H(s,c,f),u=!0},p(c,f){const h={};f&256&&(h.$$scope={dirty:f,ctx:c}),i.$set(h);const m={};f&256&&(m.$$scope={dirty:f,ctx:c}),o.$set(m);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),s.$set(_)},i(c){u||(b(i.$$.fragment,c),b(o.$$.fragment,c),b(s.$$.fragment,c),u=!0)},o(c){$(i.$$.fragment,c),$(o.$$.fragment,c),$(s.$$.fragment,c),u=!1},d(c){c&&C(e),c&&C(r),B(i,c),c&&C(a),B(o,c),c&&C(l),B(s,c)}}}function pN(n){let e,t,r;return t=new prt({props:{automation:n[3]}}),{c(){e=J("div"),O(t.$$.fragment),D(e,"class","setup svelte-374m3f")},m(i,a){S(i,e,a),H(t,e,null),r=!0},p(i,a){const o={};a&8&&(o.automation=i[3]),t.$set(o)},i(i){r||(b(t.$$.fragment,i),r=!0)},o(i){$(t.$$.fragment,i),r=!1},d(i){i&&C(e),B(t)}}}function brt(n){let e,t;return e=new NX({props:{webhookModal:n[2]}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4&&(a.webhookModal=r[2]),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function yrt(n){let e,t;return e=new Kz({}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function $rt(n){let e,t,r,i,a,o,l,s,u,c,f,h,m;r=new rrt({props:{modal:n[1],webhookModal:n[2]}});const _=[hrt,drt],y=[];function w(I,P){return I[3]?0:1}o=w(n),l=y[o]=_[o](n);let A=n[0].showTestPanel&&pN(n),E={$$slots:{default:[brt]},$$scope:{ctx:n}};c=new ir({props:E}),n[6](c);let T={width:"30%",$$slots:{default:[yrt]},$$scope:{ctx:n}};return h=new ir({props:T}),n[7](h),{c(){e=J("div"),t=J("div"),O(r.$$.fragment),i=U(),a=J("div"),l.c(),s=U(),A&&A.c(),u=U(),O(c.$$.fragment),f=U(),O(h.$$.fragment),D(t,"class","nav svelte-374m3f"),D(a,"class","content svelte-374m3f"),D(e,"class","root svelte-374m3f")},m(I,P){S(I,e,P),j(e,t),H(r,t,null),j(e,i),j(e,a),y[o].m(a,null),j(e,s),A&&A.m(e,null),j(e,u),H(c,e,null),j(e,f),H(h,e,null),m=!0},p(I,[P]){const F={};P&2&&(F.modal=I[1]),P&4&&(F.webhookModal=I[2]),r.$set(F);let x=o;o=w(I),o===x?y[o].p(I,P):($e(),$(y[x],1,1,()=>{y[x]=null}),we(),l=y[o],l?l.p(I,P):(l=y[o]=_[o](I),l.c()),b(l,1),l.m(a,null)),I[0].showTestPanel?A?(A.p(I,P),P&1&&b(A,1)):(A=pN(I),A.c(),b(A,1),A.m(e,u)):A&&($e(),$(A,1,1,()=>{A=null}),we());const q={};P&260&&(q.$$scope={dirty:P,ctx:I}),c.$set(q);const W={};P&256&&(W.$$scope={dirty:P,ctx:I}),h.$set(W)},i(I){m||(b(r.$$.fragment,I),b(l),b(A),b(c.$$.fragment,I),b(h.$$.fragment,I),m=!0)},o(I){$(r.$$.fragment,I),$(l),$(A),$(c.$$.fragment,I),$(h.$$.fragment,I),m=!1},d(I){I&&C(e),B(r),y[o].d(),A&&A.d(),n[6](null),B(c),n[7](null),B(h)}}}function wrt(n,e,t){let r,i;Ne(n,Or,h=>t(0,i=h));let{$$slots:a={},$$scope:o}=e,l,s;ar(()=>{G1(Or,i.showTestPanel=!1,i)});const u=()=>l.show();function c(h){He[h?"unshift":"push"](()=>{l=h,t(1,l)})}function f(h){He[h?"unshift":"push"](()=>{s=h,t(2,s)})}return n.$$set=h=>{"$$scope"in h&&t(8,o=h.$$scope)},n.$$.update=()=>{var h;n.$$.dirty&1&&t(3,r=((h=i.selectedAutomation)==null?void 0:h.automation)||i.automations[0])},[i,l,s,r,a,u,c,f,o]}class krt extends Re{constructor(e){super(),Ve(this,e,wrt,$rt,Oe,{})}}function zrt(n){let e,t,r,i,a,o,l;function s(c){n[4](c)}let u={};return n[2]!==void 0&&(u.value=n[2]),a=new En({props:u}),He.push(()=>nt(a,"value",s)),{c(){e=J("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
939
|
-
back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Art(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[zrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Mrt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){kn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Art]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Crt(n,e,t){let r,i;Ne(n,Zt,c=>t(0,i=c));let a,o;const l=async()=>{try{await nn.revertAppChanges(r);const c=await nn.fetchAppPackage(r);await Zt.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Srt extends Re{constructor(e){super(),Ve(this,e,Crt,Mrt,Oe,{})}}const Lrt="@budibase/client",Ert="2.0.30-alpha.
|
|
939
|
+
back to its production state.`,t=U(),r=J("span"),r.textContent="Please enter your app name to continue.",i=U(),O(a.$$.fragment)},m(c,f){S(c,e,f),S(c,t,f),S(c,r,f),S(c,i,f),H(a,c,f),l=!0},p(c,f){const h={};!o&&f&4&&(o=!0,h.value=c[2],rt(()=>o=!1)),a.$set(h)},i(c){l||(b(a.$$.fragment,c),l=!0)},o(c){$(a.$$.fragment,c),l=!1},d(c){c&&C(e),c&&C(t),c&&C(r),c&&C(i),B(a,c)}}}function Art(n){let e,t;return e=new _r({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:n[3],disabled:n[2]!==n[0].name,$$slots:{default:[zrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Mrt(n){let e,t,r,i;e=new dn({props:{name:"Revert",hoverable:!0,tooltip:"Revert changes",dataCy:"revert-application-topnav"}}),e.$on("click",function(){kn(n[1].show)&&n[1].show.apply(this,arguments)});let a={$$slots:{default:[Art]},$$scope:{ctx:n}};return r=new ir({props:a}),n[5](r),{c(){O(e.$$.fragment),t=U(),O(r.$$.fragment)},m(o,l){H(e,o,l),S(o,t,l),H(r,o,l),i=!0},p(o,[l]){n=o;const s={};l&133&&(s.$$scope={dirty:l,ctx:n}),r.$set(s)},i(o){i||(b(e.$$.fragment,o),b(r.$$.fragment,o),i=!0)},o(o){$(e.$$.fragment,o),$(r.$$.fragment,o),i=!1},d(o){B(e,o),o&&C(t),n[5](null),B(r,o)}}}function Crt(n,e,t){let r,i;Ne(n,Zt,c=>t(0,i=c));let a,o;const l=async()=>{try{await nn.revertAppChanges(r);const c=await nn.fetchAppPackage(r);await Zt.actions.initialise(c),yt.info("Changes reverted successfully")}catch(c){yt.error(`Error reverting changes: ${c}`)}};function s(c){o=c,t(2,o)}function u(c){He[c?"unshift":"push"](()=>{a=c,t(1,a)})}return n.$$.update=()=>{n.$$.dirty&1&&(r=i.appId)},[i,a,o,l,s,u]}class Srt extends Re{constructor(e){super(),Ve(this,e,Crt,Mrt,Oe,{})}}const Lrt="@budibase/client",Ert="2.0.30-alpha.5",Trt="MPL-2.0",Drt="dist/budibase-client.js",Hrt="dist/budibase-client.js",Brt="module",Ort="src/index.js",Irt={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Prt={build:"rollup -c","dev:builder":"rollup -cw"},Vrt={"@budibase/bbui":"2.0.30-alpha.5","@budibase/frontend-core":"2.0.30-alpha.5","@budibase/string-templates":"2.0.30-alpha.5","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5",downloadjs:"1.4.7","html5-qrcode":"^2.2.1",leaflet:"^1.7.1",regexparam:"^1.3.0","sanitize-html":"^2.7.0",screenfull:"^6.0.1",shortid:"^2.2.15","socket.io-client":"^4.5.1",svelte:"^3.49.0","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0","svelte-spa-router":"^3.0.5"},Rrt={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-polyfill-node":"^0.8.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2","rollup-plugin-visualizer":"^5.5.4"},Nrt="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc",Dd={name:Lrt,version:Ert,license:Trt,module:Drt,main:Hrt,type:Brt,svelte:Ort,exports:Irt,scripts:Prt,dependencies:Vrt,devDependencies:Rrt,gitHead:Nrt};function dN(n){let e,t;return e=new j3({props:{hoverable:!0,notice:!0,$$slots:{default:[Frt]},$$scope:{ctx:n}}}),e.$on("click",function(){kn(n[2].show)&&n[2].show.apply(this,arguments)}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){n=r;const a={};i&4096&&(a.$$scope={dirty:i,ctx:n}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Frt(n){let e;return{c(){e=le("Update available")},m(t,r){S(t,e,r)},d(t){t&&C(e)}}}function jrt(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Urt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function xrt(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[qrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Urt(n){let e,t,r=n[1].version+"",i,a;return{c(){e=le("This app is currently using version "),t=J("b"),i=le(r),a=le(` which is the
|
|
940
940
|
latest version available.`)},m(o,l){S(o,e,l),S(o,t,l),j(t,i),S(o,a,l)},p(o,l){l&2&&r!==(r=o[1].version+"")&&_t(i,r)},d(o){o&&C(e),o&&C(t),o&&C(a)}}}function qrt(n){let e,t,r=n[1].version+"",i,a,o,l;return{c(){e=le("This app is currently using version "),t=J("b"),i=le(r),a=le(`, but version
|
|
941
941
|
`),o=J("b"),o.textContent=`${Dd.version}`,l=le(` is available. Updates can contain new features,
|
|
942
942
|
performance improvements and bug fixes.`)},m(s,u){S(s,e,u),S(s,t,u),j(t,i),S(s,a,u),S(s,o,u),S(s,l,u)},p(s,u){u&2&&r!==(r=s[1].version+"")&&_t(i,r)},d(s){s&&C(e),s&&C(t),s&&C(a),s&&C(o),s&&C(l)}}}function hN(n){let e,t;return e=new jt({props:{size:"S",$$slots:{default:[Wrt]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},m(r,i){H(e,r,i),t=!0},p(r,i){const a={};i&4098&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){t||(b(e.$$.fragment,r),t=!0)},o(r){$(e.$$.fragment,r),t=!1},d(r){B(e,r)}}}function Wrt(n){let e,t,r=n[1].revertableVersion+"",i,a;return{c(){e=le(`You can revert this app to version
|
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.44613ef4.js"></script>
|
|
14
14
|
<link rel="stylesheet" href="/builder/assets/index.a6a040bb.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="1665738192446" clover="3.2.0">
|
|
3
|
+
<project timestamp="1665738192446" name="All files">
|
|
4
4
|
<metrics statements="4124" coveredstatements="2999" conditionals="1772" coveredconditionals="974" methods="615" coveredmethods="430" elements="6511" coveredelements="4403" complexity="0" loc="4124" ncloc="4124" packages="22" files="123" classes="123"/>
|
|
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
|
|
235
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
236
236
|
</div>
|
|
237
237
|
<script src="../../prettify.js"></script>
|
|
238
238
|
<script>
|
|
@@ -925,7 +925,7 @@ exports.test = async function (ctx) {
|
|
|
925
925
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
926
926
|
Code coverage generated by
|
|
927
927
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
928
|
-
at
|
|
928
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
130
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
403
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
404
404
|
</div>
|
|
405
405
|
<script src="../../prettify.js"></script>
|
|
406
406
|
<script>
|
|
@@ -919,7 +919,7 @@ const buildSchemaHelper = <span class="fstat-no" title="function not covered" >a
|
|
|
919
919
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
920
920
|
Code coverage generated by
|
|
921
921
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
922
|
-
at
|
|
922
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
923
923
|
</div>
|
|
924
924
|
<script src="../../prettify.js"></script>
|
|
925
925
|
<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
|
|
478
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
479
479
|
</div>
|
|
480
480
|
<script src="../../prettify.js"></script>
|
|
481
481
|
<script>
|
|
@@ -341,7 +341,7 @@
|
|
|
341
341
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
342
342
|
Code coverage generated by
|
|
343
343
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
344
|
-
at
|
|
344
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
345
345
|
</div>
|
|
346
346
|
<script src="../../prettify.js"></script>
|
|
347
347
|
<script>
|
|
@@ -112,7 +112,7 @@ exports.find = async function (ctx) {
|
|
|
112
112
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
113
113
|
Code coverage generated by
|
|
114
114
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
115
|
-
at
|
|
115
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
116
116
|
</div>
|
|
117
117
|
<script src="../../prettify.js"></script>
|
|
118
118
|
<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
|
|
214
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
196
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
112
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
598
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
104
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
223
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
397
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
349
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
832
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
164
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
1480
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
1481
1481
|
</div>
|
|
1482
1482
|
<script src="../../../prettify.js"></script>
|
|
1483
1483
|
<script>
|
|
@@ -1591,7 +1591,7 @@ exports.fullSearch = async (query, params) => {
|
|
|
1591
1591
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1592
1592
|
Code coverage generated by
|
|
1593
1593
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1594
|
-
at
|
|
1594
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
1595
1595
|
</div>
|
|
1596
1596
|
<script src="../../../prettify.js"></script>
|
|
1597
1597
|
<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
|
|
541
|
+
at Fri Oct 14 2022 09:03:12 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
|
|
367
|
+
at Fri Oct 14 2022 09:03:12 GMT+0000 (Coordinated Universal Time)
|
|
368
368
|
</div>
|
|
369
369
|
<script src="../../../prettify.js"></script>
|
|
370
370
|
<script>
|