x-block-lib 0.8.39 → 0.8.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +349 -338
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,12 +7,12 @@
7
7
  License: see project LICENSE
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-daa85471]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
- import { E as I, r as Tn, M as yo, s as vo, a as Co, X as Rn, u as C, B as E, j as s, O as u, F as O, b as Ge, i as v, c as Et, d as ko, e as U, f as T, g as No, h as $, k as ft, p as Ft, l as ot, m as En, n as B, C as Dn, N as it, o as Lo, P as We, q as Ve, V as St, t as Mn, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as jt, T as Ae, A as Un, D as Mo, G as Uo, H as Vn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
10
+ import { E as I, r as Tn, M as yo, s as vo, a as Co, X as Rn, u as C, B as E, j as s, O as u, F as O, b as Ge, i as v, c as Et, d as ko, e as U, f as T, g as No, h as $, k as ft, p as Ft, l as ot, m as En, n as B, C as Dn, N as it, o as Lo, P as We, q as Ve, V as St, t as Mn, W as So, v as Bo, w as bo, S as Po, x as Ro, y as Do, z as jt, T as Ie, A as Un, D as Mo, G as Uo, H as Vn, I as Vo, J as xo, K as Yo, L as Fo, Q as wo, R as Ko, U as $o, Y as Ho } from "./vendor.txua272r.js";
11
11
  import { globalState as g } from "x-state-lib";
12
12
  import { globalObjects as kt, openConfirmDlg as Go, openPromptDlg as Wo, messageWarning as xn, useColor as Xt, useSystem as Yn, useViewStack as nn, eventBus as Lt } from "x-essential-lib";
13
- import { pkgs as ie, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as on, elements as et, makeEventId as Z, toEventName as Ie, unwrapMethodId as Oe, makeMethodId as Yt, toMethodName as ye, unwrapPropertyId as Jo, makePropertyId as te, toPropertyName as Fn, isLocaleOfMethodKind as wn, makeTriggerId as yt } from "x-runtime-lib";
14
- import { provide as qo, inject as Qo, defineComponent as rt, resolveComponent as M, createBlock as st, openBlock as S, unref as D, withCtx as at, createVNode as L, mergeProps as sn, useModel as $t, ref as Bt, computed as w, resolveDirective as zo, withDirectives as Zo, createElementBlock as tt, normalizeStyle as j, createElementVNode as K, createCommentVNode as ut, toDisplayString as Ht, withModifiers as wt, mergeModels as je, Fragment as Kn, renderList as ti, useId as Xe, onUnmounted as ei, useTemplateRef as Kt, withKeys as $n, isRef as ne, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
15
- import { useI18n as Jt } from "vue-i18n";
13
+ import { pkgs as se, parsePixelStr as jo, parsePercentStr as Xo, getPropertyTag as Mt, unwrapEventId as on, elements as et, makeEventId as Z, toEventName as Oe, unwrapMethodId as Jt, makeMethodId as Yt, toMethodName as ye, unwrapPropertyId as Jo, makePropertyId as ee, toPropertyName as Fn, isLocaleOfMethodKind as wn, makeTriggerId as yt } from "x-runtime-lib";
14
+ import { provide as qo, inject as Qo, defineComponent as rt, resolveComponent as M, createBlock as st, openBlock as S, unref as D, withCtx as at, createVNode as L, mergeProps as sn, useModel as $t, ref as Bt, computed as w, resolveDirective as zo, withDirectives as Zo, createElementBlock as tt, normalizeStyle as j, createElementVNode as K, createCommentVNode as ut, toDisplayString as Ht, withModifiers as wt, mergeModels as je, Fragment as Kn, renderList as ti, useId as Xe, onUnmounted as ei, useTemplateRef as Kt, withKeys as $n, isRef as oe, onMounted as gn, nextTick as ni, onBeforeUnmount as An, watch as Vt, renderSlot as oi } from "vue";
15
+ import { useI18n as qt } from "vue-i18n";
16
16
  import { useDisplay as ii } from "vuetify";
17
17
  var b = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(b || {});
18
18
  class Hn extends I.Abstract {
@@ -36,7 +36,7 @@ async function In(t) {
36
36
  function f(t) {
37
37
  return yo[t] ?? t;
38
38
  }
39
- const bt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", se = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
39
+ const bt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTBoLTR2LTRjMC0xLjEwNC0uODk2LTItMi0ycy0yIC44OTYtMiAybC4wNzEgNGgtNC4wNzFjLTEuMTA0IDAtMiAuODk2LTIgMnMuODk2IDIgMiAybDQuMDcxLS4wNzEtLjA3MSA0LjA3MWMwIDEuMTA0Ljg5NiAyIDIgMnMyLS44OTYgMi0ydi00LjA3MWw0IC4wNzFjMS4xMDQgMCAyLS44OTYgMi0ycy0uODk2LTItMi0yeiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+Cg==", ae = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cGF0aCBkPSJNMTggMTFoLTEyYy0xLjEwNCAwLTIgLjg5Ni0yIDJzLjg5NiAyIDIgMmgxMmMxLjEwNCAwIDItLjg5NiAyLTJzLS44OTYtMi0yLTJ6IiBmaWxsPSJ3aGl0ZSIgLz48L3N2Zz4K";
40
40
  function ve(t) {
41
41
  const e = t.lastIndexOf("V");
42
42
  if (e <= 0 || e >= t.length - 1)
@@ -44,7 +44,7 @@ function ve(t) {
44
44
  const n = Co(t.substring(0, e - 1)), o = "v" + t.substring(e + 1);
45
45
  return `${n}_${o}`;
46
46
  }
47
- function ae(t) {
47
+ function ce(t) {
48
48
  const e = t.lastIndexOf("V");
49
49
  if (e <= 0 || e >= t.length - 1)
50
50
  return console.assert(!1, `invalid key=${t}`), "";
@@ -94,7 +94,7 @@ function gt(t) {
94
94
  return t === "string" ? "String" : t === "number" ? "Number" : t === "boolean" ? "Boolean" : t === "array" ? "Array" : t === "object" ? "Object" : (console.assert(!1), null);
95
95
  }
96
96
  function ci(t) {
97
- return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? ae(t.items) : t.ui === "multiTypes" ? ae(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
97
+ return t.ui === "dummy" ? null : t.ui === "strInput" ? "String" : t.ui === "numInput" ? "Number" : t.ui === "switch" ? "Boolean" : t.ui === "select" ? ce(t.items) : t.ui === "multiTypes" ? ce(t.types) : t.ui === "compSelect" ? "Comp" : t.ui === "colorPicker" ? "Color" : (console.assert(!1), null);
98
98
  }
99
99
  function jn(t) {
100
100
  return t === "string" ? "String" : t === "integer" || t === "decimal" ? "Number" : t === "boolean" ? "Boolean" : t === "enum" || t === "dateTime" ? "String" : (console.assert(!1), null);
@@ -135,11 +135,11 @@ function dt(t) {
135
135
  const e = `<shadow type="text_v1"><field name="TEXT">${t}</field></shadow>`;
136
136
  return C.xml.textToDom(e);
137
137
  }
138
- function ce(t) {
138
+ function re(t) {
139
139
  const e = `<shadow type="math_number_v1"><field name="NUM">${t}</field></shadow>`;
140
140
  return C.xml.textToDom(e);
141
141
  }
142
- function re(t) {
142
+ function ue(t) {
143
143
  const e = `<shadow type="logic_boolean_v1"><field name="BOOL">${t ? "TRUE" : "FALSE"}</field></shadow>`;
144
144
  return C.xml.textToDom(e);
145
145
  }
@@ -166,11 +166,11 @@ function di() {
166
166
  }
167
167
  function At(t) {
168
168
  let e = null;
169
- return t === "string" ? e = dt("") : t === "number" ? e = ce(0) : t === "boolean" ? e = re(!1) : t === "array" ? e = ri() : t === "object" ? e = ui() : console.assert(!1), e;
169
+ return t === "string" ? e = dt("") : t === "number" ? e = re(0) : t === "boolean" ? e = ue(!1) : t === "array" ? e = ri() : t === "object" ? e = ui() : console.assert(!1), e;
170
170
  }
171
171
  function hi(t) {
172
172
  let e = null;
173
- return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = dt(t.default) : t.ui === "numInput" ? e = ce(t.default) : t.ui === "switch" ? e = re(t.default) : t.ui === "select" ? e = li(t.items) : t.ui === "multiTypes" ? e = _i(t.types) : t.ui === "compSelect" ? e = di() : t.ui === "colorPicker" ? e = pi(t.default ?? "#ff0000") : console.assert(!1), e;
173
+ return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = dt(t.default) : t.ui === "numInput" ? e = re(t.default) : t.ui === "switch" ? e = ue(t.default) : t.ui === "select" ? e = li(t.items) : t.ui === "multiTypes" ? e = _i(t.types) : t.ui === "compSelect" ? e = di() : t.ui === "colorPicker" ? e = pi(t.default ?? "#ff0000") : console.assert(!1), e;
174
174
  }
175
175
  function fi() {
176
176
  const { activeObject: t, activePage: e } = g.app, n = [];
@@ -261,7 +261,7 @@ s.forBlock.get_page_argument_v1 = function(t) {
261
261
  return [`__getPageArgumentV1__(${s.quote_(e.argument.key)})`, u.FUNCTION_CALL];
262
262
  };
263
263
  const Ei = (t, e) => {
264
- const n = ve(t), o = ae(t);
264
+ const n = ve(t), o = ce(t);
265
265
  E[n] = {
266
266
  init: function() {
267
267
  this.appendDummyInput().appendField(
@@ -280,13 +280,13 @@ const Ei = (t, e) => {
280
280
  return [a(c), u.ATOMIC];
281
281
  };
282
282
  };
283
- for (const t in ie) {
284
- const e = ie[t];
283
+ for (const t in se) {
284
+ const e = se[t];
285
285
  for (const n in e.items)
286
286
  Ei(n, e.items[n]);
287
287
  }
288
288
  const gi = (t, e) => {
289
- const n = ve(t), o = ae(t);
289
+ const n = ve(t), o = ce(t);
290
290
  E[n] = {
291
291
  init: function() {
292
292
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
@@ -344,8 +344,8 @@ const gi = (t, e) => {
344
344
  c.min,
345
345
  c.max,
346
346
  c.precision ? 1 / Math.pow(10, c.precision) : null,
347
- (d) => {
348
- this.value = d + "px";
347
+ (p) => {
348
+ this.value = p + "px";
349
349
  }
350
350
  ), l = "px";
351
351
  } else if (c.ui === "percentInput") {
@@ -355,8 +355,8 @@ const gi = (t, e) => {
355
355
  c.min,
356
356
  c.max,
357
357
  c.precision ? 1 / Math.pow(10, c.precision) : null,
358
- (d) => {
359
- this.value = d + "%";
358
+ (p) => {
359
+ this.value = p + "%";
360
360
  }
361
361
  ), l = "%";
362
362
  }
@@ -375,8 +375,8 @@ const gi = (t, e) => {
375
375
  return [a(i.value), u.ATOMIC];
376
376
  };
377
377
  };
378
- for (const t in ie) {
379
- const e = ie[t];
378
+ for (const t in se) {
379
+ const e = se[t];
380
380
  for (const n in e.types)
381
381
  gi(n, e.types[n]);
382
382
  }
@@ -579,103 +579,103 @@ function Qe(t) {
579
579
  const { properties: e } = g.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = g.app, c = [], r = Mt(n.type, n.subtype);
580
580
  if (!r)
581
581
  return c;
582
- const l = n.nodes.find((d) => d.id === t);
582
+ const l = n.nodes.find((p) => p.id === t);
583
583
  if (!l)
584
584
  return c;
585
585
  const _ = et[l.key];
586
586
  if (!_)
587
587
  return console.assert(!1, "invalid element", l.key), c;
588
- for (const { key: d, name: h, params: p } of _.events)
588
+ for (const { key: p, name: h, params: d } of _.events)
589
589
  c.push({
590
- id: Z("elementEvent", t, d),
590
+ id: Z("elementEvent", t, p),
591
591
  kind: "elementEvent",
592
592
  names: [h],
593
- params: p
593
+ params: d
594
594
  });
595
595
  if (J(_.key) && l.reference && l.reference.comp) {
596
- const d = a[l.reference.comp];
597
- if (d)
598
- for (const { id: h, name: p, params: m } of d.meta.events)
596
+ const p = a[l.reference.comp];
597
+ if (p)
598
+ for (const { id: h, name: d, params: m } of p.meta.events)
599
599
  c.push({
600
600
  id: Z("referenceEvent", t, h),
601
601
  kind: "referenceEvent",
602
- names: [p],
602
+ names: [d],
603
603
  params: ht(m)
604
604
  });
605
605
  }
606
606
  if (q(_.key) && l.reference && l.reference.comp) {
607
- const d = a[l.reference.comp];
608
- if (d)
609
- for (const { id: h, name: p, params: m } of d.meta.events)
607
+ const p = a[l.reference.comp];
608
+ if (p)
609
+ for (const { id: h, name: d, params: m } of p.meta.events)
610
610
  c.push({
611
611
  id: Z("multipleRefEvent", t, h),
612
612
  kind: "multipleRefEvent",
613
- names: [p],
613
+ names: [d],
614
614
  params: ht(m)
615
615
  });
616
616
  }
617
617
  if (V(_.key) && n.type === "comp")
618
- for (const { id: d, name: h, params: p } of i.meta.events)
618
+ for (const { id: p, name: h, params: d } of i.meta.events)
619
619
  c.push({
620
- id: Z("customEvent", t, d),
620
+ id: Z("customEvent", t, p),
621
621
  kind: "customEvent",
622
622
  names: [h],
623
- params: ht(p)
623
+ params: ht(d)
624
624
  });
625
625
  if (e[_.key] && e[_.key][r])
626
- for (const { keys: d, names: h, raw: p } of e[_.key][r])
627
- Ce(d, p) || c.push({
628
- id: Z("elementPropertyChangeEvent", t, d),
626
+ for (const { keys: p, names: h, raw: d } of e[_.key][r])
627
+ Ce(p, d) || c.push({
628
+ id: Z("elementPropertyChangeEvent", t, p),
629
629
  kind: "elementPropertyChangeEvent",
630
630
  names: h,
631
- params: Q(Wn(p))
631
+ params: Q(Wn(d))
632
632
  });
633
633
  if (J(_.key) && l.reference && l.reference.comp) {
634
- const d = a[l.reference.comp];
635
- if (d)
636
- for (const { id: h, name: p, type: m } of d.meta.properties)
634
+ const p = a[l.reference.comp];
635
+ if (p)
636
+ for (const { id: h, name: d, type: m } of p.meta.properties)
637
637
  c.push({
638
638
  id: Z("referencePropertyChangeEvent", t, h),
639
639
  kind: "referencePropertyChangeEvent",
640
- names: [p],
640
+ names: [d],
641
641
  params: Q(m)
642
642
  });
643
643
  }
644
644
  if (q(_.key) && l.reference && l.reference.comp) {
645
- const d = a[l.reference.comp];
646
- if (d)
647
- for (const { id: h, name: p, type: m } of d.meta.properties)
645
+ const p = a[l.reference.comp];
646
+ if (p)
647
+ for (const { id: h, name: d, type: m } of p.meta.properties)
648
648
  c.push({
649
649
  id: Z("multipleRefPropertyChangeEvent", t, h),
650
650
  kind: "multipleRefPropertyChangeEvent",
651
- names: [p],
651
+ names: [d],
652
652
  params: Q(m)
653
653
  });
654
654
  }
655
655
  if (V(_.key) && n.type === "comp")
656
- for (const { id: d, name: h, type: p } of i.meta.properties)
656
+ for (const { id: p, name: h, type: d } of i.meta.properties)
657
657
  c.push({
658
- id: Z("customPropertyChangeEvent", t, d),
658
+ id: Z("customPropertyChangeEvent", t, p),
659
659
  kind: "customPropertyChangeEvent",
660
660
  names: [h],
661
- params: Q(p)
661
+ params: Q(d)
662
662
  });
663
663
  if (V(_.key)) {
664
664
  if (n.type === "page")
665
- for (const { id: d, name: h, type: p } of o.meta.states)
665
+ for (const { id: p, name: h, type: d } of o.meta.states)
666
666
  c.push({
667
- id: Z("stateChangeEvent", "globality", d),
667
+ id: Z("stateChangeEvent", "globality", p),
668
668
  kind: "stateChangeEvent",
669
669
  names: [h],
670
- params: Q(p)
670
+ params: Q(d)
671
671
  });
672
672
  else if (n.type === "comp")
673
- for (const { id: d, name: h, type: p } of i.meta.states)
673
+ for (const { id: p, name: h, type: d } of i.meta.states)
674
674
  c.push({
675
- id: Z("stateChangeEvent", "globality", d),
675
+ id: Z("stateChangeEvent", "globality", p),
676
676
  kind: "stateChangeEvent",
677
677
  names: [h],
678
- params: Q(p)
678
+ params: Q(d)
679
679
  });
680
680
  }
681
681
  return c;
@@ -686,28 +686,28 @@ function Fe(t) {
686
686
  const { properties: e } = g.runtime, { activeObject: n, activePage: o, activeComp: i, depends: a } = g.app, c = Mt(n.type, n.subtype);
687
687
  if (!c)
688
688
  return;
689
- const { kind: r, nodeId: l, eventKey: _ } = on(t), d = n.nodes.find((p) => p.id === l);
690
- if (!d)
689
+ const { kind: r, nodeId: l, eventKey: _ } = on(t), p = n.nodes.find((d) => d.id === l);
690
+ if (!p)
691
691
  return;
692
- const h = et[d.key];
692
+ const h = et[p.key];
693
693
  if (!h) {
694
- console.assert(!1, "invalid element", d.key);
694
+ console.assert(!1, "invalid element", p.key);
695
695
  return;
696
696
  }
697
697
  if (r === "elementEvent") {
698
- const p = h.events.find((m) => m.key === _);
699
- if (p)
698
+ const d = h.events.find((m) => m.key === _);
699
+ if (d)
700
700
  return {
701
701
  id: t,
702
702
  kind: r,
703
- names: [p.name],
704
- params: p.params
703
+ names: [d.name],
704
+ params: d.params
705
705
  };
706
706
  } else if (r === "referenceEvent") {
707
- if (J(h.key) && d.reference && d.reference.comp) {
708
- const p = a[d.reference.comp];
709
- if (p) {
710
- const m = p.meta.events.find((A) => A.id === _);
707
+ if (J(h.key) && p.reference && p.reference.comp) {
708
+ const d = a[p.reference.comp];
709
+ if (d) {
710
+ const m = d.meta.events.find((A) => A.id === _);
711
711
  if (m)
712
712
  return {
713
713
  id: t,
@@ -718,10 +718,10 @@ function Fe(t) {
718
718
  }
719
719
  }
720
720
  } else if (r === "multipleRefEvent") {
721
- if (q(h.key) && d.reference && d.reference.comp) {
722
- const p = a[d.reference.comp];
723
- if (p) {
724
- const m = p.meta.events.find((A) => A.id === _);
721
+ if (q(h.key) && p.reference && p.reference.comp) {
722
+ const d = a[p.reference.comp];
723
+ if (d) {
724
+ const m = d.meta.events.find((A) => A.id === _);
725
725
  if (m)
726
726
  return {
727
727
  id: t,
@@ -733,33 +733,33 @@ function Fe(t) {
733
733
  }
734
734
  } else if (r === "customEvent") {
735
735
  if (V(h.key) && n.type === "comp") {
736
- const p = i.meta.events.find((m) => m.id === _);
737
- if (p)
736
+ const d = i.meta.events.find((m) => m.id === _);
737
+ if (d)
738
738
  return {
739
739
  id: t,
740
740
  kind: r,
741
- names: [p.name],
742
- params: ht(p.params)
741
+ names: [d.name],
742
+ params: ht(d.params)
743
743
  };
744
744
  }
745
745
  } else if (r === "elementPropertyChangeEvent") {
746
746
  if (e[h.key] && e[h.key][c]) {
747
- const p = e[h.key][c].find(
747
+ const d = e[h.key][c].find(
748
748
  (m) => m.keys === _
749
749
  );
750
- if (p)
750
+ if (d)
751
751
  return {
752
752
  id: t,
753
753
  kind: r,
754
- names: p.names,
755
- params: Q(Wn(p.raw))
754
+ names: d.names,
755
+ params: Q(Wn(d.raw))
756
756
  };
757
757
  }
758
758
  } else if (r === "referencePropertyChangeEvent") {
759
- if (J(h.key) && d.reference && d.reference.comp) {
760
- const p = a[d.reference.comp];
761
- if (p) {
762
- const m = p.meta.properties.find(
759
+ if (J(h.key) && p.reference && p.reference.comp) {
760
+ const d = a[p.reference.comp];
761
+ if (d) {
762
+ const m = d.meta.properties.find(
763
763
  (A) => A.id === _
764
764
  );
765
765
  if (m)
@@ -772,10 +772,10 @@ function Fe(t) {
772
772
  }
773
773
  }
774
774
  } else if (r === "multipleRefPropertyChangeEvent") {
775
- if (q(h.key) && d.reference && d.reference.comp) {
776
- const p = a[d.reference.comp];
777
- if (p) {
778
- const m = p.meta.properties.find(
775
+ if (q(h.key) && p.reference && p.reference.comp) {
776
+ const d = a[p.reference.comp];
777
+ if (d) {
778
+ const m = d.meta.properties.find(
779
779
  (A) => A.id === _
780
780
  );
781
781
  if (m)
@@ -789,39 +789,39 @@ function Fe(t) {
789
789
  }
790
790
  } else if (r === "customPropertyChangeEvent") {
791
791
  if (V(h.key) && n.type === "comp") {
792
- const p = i.meta.properties.find(
792
+ const d = i.meta.properties.find(
793
793
  (m) => m.id === _
794
794
  );
795
- if (p)
795
+ if (d)
796
796
  return {
797
797
  id: t,
798
798
  kind: r,
799
- names: [p.name],
800
- params: Q(p.type)
799
+ names: [d.name],
800
+ params: Q(d.type)
801
801
  };
802
802
  }
803
803
  } else if (r === "stateChangeEvent" && V(h.key)) {
804
804
  if (n.type === "page") {
805
- const p = o.meta.states.find(
805
+ const d = o.meta.states.find(
806
806
  (m) => m.id === _
807
807
  );
808
- if (p)
808
+ if (d)
809
809
  return {
810
810
  id: t,
811
811
  kind: r,
812
- names: [p.name],
813
- params: Q(p.type)
812
+ names: [d.name],
813
+ params: Q(d.type)
814
814
  };
815
815
  } else if (n.type === "comp") {
816
- const p = i.meta.states.find(
816
+ const d = i.meta.states.find(
817
817
  (m) => m.id === _
818
818
  );
819
- if (p)
819
+ if (d)
820
820
  return {
821
821
  id: t,
822
822
  kind: r,
823
- names: [p.name],
824
- params: Q(p.type)
823
+ names: [d.name],
824
+ params: Q(d.type)
825
825
  };
826
826
  }
827
827
  }
@@ -829,7 +829,7 @@ function Fe(t) {
829
829
  function Ni(t) {
830
830
  const e = [], n = Qe(t);
831
831
  for (const { id: o, kind: i, names: a } of n)
832
- e.push([Ie(i, a), o]);
832
+ e.push([Oe(i, a), o]);
833
833
  return k(e);
834
834
  }
835
835
  function Qn() {
@@ -864,7 +864,7 @@ function kn(t) {
864
864
  function Li() {
865
865
  const t = [], e = Qn();
866
866
  for (const { id: n, kind: o, names: i } of e)
867
- t.push([Ie(o, i), n]);
867
+ t.push([Oe(o, i), n]);
868
868
  return k(t);
869
869
  }
870
870
  function ct(t) {
@@ -886,53 +886,53 @@ function ze(t) {
886
886
  const c = et[a.key];
887
887
  if (!c)
888
888
  return console.assert(!1, "inavlid element", a.key), i;
889
- for (const { key: r, name: l, inputs: _, outputs: d } of c.methods)
889
+ for (const { key: r, name: l, inputs: _, outputs: p } of c.methods)
890
890
  i.push({
891
891
  id: Yt("elementMethod", t, r),
892
892
  kind: "elementMethod",
893
893
  names: [l],
894
894
  inputs: _,
895
- outputs: d
895
+ outputs: p
896
896
  });
897
897
  if (J(c.key) && a.reference && a.reference.comp) {
898
898
  const r = o[a.reference.comp];
899
899
  if (r)
900
- for (const { id: l, name: _, inputs: d, outputs: h } of r.meta.methods)
900
+ for (const { id: l, name: _, inputs: p, outputs: h } of r.meta.methods)
901
901
  i.push({
902
902
  id: Yt("referenceMethod", t, l),
903
903
  kind: "referenceMethod",
904
904
  names: [_],
905
- inputs: ct(d),
905
+ inputs: ct(p),
906
906
  outputs: Ct(h)
907
907
  });
908
908
  }
909
909
  if (q(c.key) && a.reference && a.reference.comp) {
910
910
  const r = o[a.reference.comp];
911
911
  if (r)
912
- for (const { id: l, name: _, inputs: d, outputs: h } of r.meta.methods)
912
+ for (const { id: l, name: _, inputs: p, outputs: h } of r.meta.methods)
913
913
  i.push({
914
914
  id: Yt("multipleRefMethod", t, l),
915
915
  kind: "multipleRefMethod",
916
916
  names: [_],
917
- inputs: ct(d),
917
+ inputs: ct(p),
918
918
  outputs: Ct(h)
919
919
  });
920
920
  }
921
921
  if (V(c.key) && e.type === "comp")
922
- for (const { id: r, name: l, inputs: _, outputs: d } of n.meta.methods)
922
+ for (const { id: r, name: l, inputs: _, outputs: p } of n.meta.methods)
923
923
  i.push({
924
924
  id: Yt("customMethod", t, r),
925
925
  kind: "customMethod",
926
926
  names: [l],
927
927
  inputs: ct(_),
928
- outputs: Ct(d)
928
+ outputs: Ct(p)
929
929
  });
930
930
  return V(c.key) && e.type, i;
931
931
  }
932
932
  function we(t) {
933
933
  if (!t)
934
934
  return;
935
- const { activeObject: e, activeComp: n, depends: o } = g.app, { kind: i, nodeId: a, methodKey: c } = Oe(t), r = e.nodes.find((_) => _.id === a);
935
+ const { activeObject: e, activeComp: n, depends: o } = g.app, { kind: i, nodeId: a, methodKey: c } = Jt(t), r = e.nodes.find((_) => _.id === a);
936
936
  if (!r)
937
937
  return;
938
938
  const l = et[r.key];
@@ -941,7 +941,7 @@ function we(t) {
941
941
  return;
942
942
  }
943
943
  if (i === "elementMethod") {
944
- const _ = l.methods.find((d) => d.key === c);
944
+ const _ = l.methods.find((p) => p.key === c);
945
945
  if (_)
946
946
  return {
947
947
  id: t,
@@ -954,16 +954,16 @@ function we(t) {
954
954
  if (J(l.key) && r.reference && r.reference.comp) {
955
955
  const _ = o[r.reference.comp];
956
956
  if (_) {
957
- const d = _.meta.methods.find(
957
+ const p = _.meta.methods.find(
958
958
  (h) => h.id === c
959
959
  );
960
- if (d)
960
+ if (p)
961
961
  return {
962
962
  id: t,
963
963
  kind: i,
964
- names: [d.name],
965
- inputs: ct(d.inputs),
966
- outputs: Ct(d.outputs)
964
+ names: [p.name],
965
+ inputs: ct(p.inputs),
966
+ outputs: Ct(p.outputs)
967
967
  };
968
968
  }
969
969
  }
@@ -971,22 +971,22 @@ function we(t) {
971
971
  if (q(l.key) && r.reference && r.reference.comp) {
972
972
  const _ = o[r.reference.comp];
973
973
  if (_) {
974
- const d = _.meta.methods.find(
974
+ const p = _.meta.methods.find(
975
975
  (h) => h.id === c
976
976
  );
977
- if (d)
977
+ if (p)
978
978
  return {
979
979
  id: t,
980
980
  kind: i,
981
- names: [d.name],
982
- inputs: ct(d.inputs),
983
- outputs: Ct(d.outputs)
981
+ names: [p.name],
982
+ inputs: ct(p.inputs),
983
+ outputs: Ct(p.outputs)
984
984
  };
985
985
  }
986
986
  }
987
987
  } else if (i === "customMethod" && V(l.key) && e.type === "comp") {
988
988
  const _ = n.meta.methods.find(
989
- (d) => d.id === c
989
+ (p) => p.id === c
990
990
  );
991
991
  if (_)
992
992
  return {
@@ -1020,7 +1020,7 @@ function cn() {
1020
1020
  function Dt(t) {
1021
1021
  if (!t)
1022
1022
  return;
1023
- const { activeObject: e, activeComp: n } = g.app, { kind: o, nodeId: i, methodKey: a } = Oe(t);
1023
+ const { activeObject: e, activeComp: n } = g.app, { kind: o, nodeId: i, methodKey: a } = Jt(t);
1024
1024
  if (o === "customMethod" && i === "globality" && e.type === "comp") {
1025
1025
  const c = n.meta.methods.find(
1026
1026
  (r) => r.id === a
@@ -1167,7 +1167,7 @@ function X(t) {
1167
1167
  }
1168
1168
  return !1;
1169
1169
  }
1170
- function qt(t) {
1170
+ function Qt(t) {
1171
1171
  const { activeObject: e } = g.app, n = [], o = Mt(e.type, e.subtype);
1172
1172
  if (!o)
1173
1173
  return n;
@@ -1203,7 +1203,7 @@ function mt(t) {
1203
1203
  };
1204
1204
  }
1205
1205
  function ke(t) {
1206
- const { i18n: e } = kt, n = [], o = qt(t);
1206
+ const { i18n: e } = kt, n = [], o = Qt(t);
1207
1207
  for (const { id: i, name: a, alias: c } of o) {
1208
1208
  let r = e.global.t(a);
1209
1209
  c && (r += " / " + c), n.push([r, i]);
@@ -1214,57 +1214,57 @@ function Gt(t, e) {
1214
1214
  const { properties: n } = g.runtime, { activeObject: o, activeComp: i, depends: a } = g.app, c = [], r = Mt(o.type, o.subtype);
1215
1215
  if (!r)
1216
1216
  return c;
1217
- const l = o.nodes.find((d) => d.id === t);
1217
+ const l = o.nodes.find((p) => p.id === t);
1218
1218
  if (!l)
1219
1219
  return c;
1220
1220
  const _ = et[l.key];
1221
1221
  if (!_)
1222
1222
  return console.assert(!1, "invalid element", l.key), c;
1223
1223
  if (n[_.key] && n[_.key][r])
1224
- for (const { keys: d, names: h, raw: p } of n[_.key][r])
1225
- e === "write" && Ce(d, p) || c.push({
1226
- id: te("elementProperty", t, d),
1224
+ for (const { keys: p, names: h, raw: d } of n[_.key][r])
1225
+ e === "write" && Ce(p, d) || c.push({
1226
+ id: ee("elementProperty", t, p),
1227
1227
  kind: "elementProperty",
1228
1228
  names: h,
1229
1229
  meta: {
1230
1230
  element: !0,
1231
- raw: p
1231
+ raw: d
1232
1232
  }
1233
1233
  });
1234
1234
  if (J(_.key) && l.reference && l.reference.comp) {
1235
- const d = a[l.reference.comp];
1236
- if (d)
1237
- for (const { id: h, name: p, type: m } of d.meta.properties)
1235
+ const p = a[l.reference.comp];
1236
+ if (p)
1237
+ for (const { id: h, name: d, type: m } of p.meta.properties)
1238
1238
  c.push({
1239
- id: te("referenceProperty", t, h),
1239
+ id: ee("referenceProperty", t, h),
1240
1240
  kind: "referenceProperty",
1241
- names: [p],
1241
+ names: [d],
1242
1242
  meta: {
1243
1243
  raw: { type: m }
1244
1244
  }
1245
1245
  });
1246
1246
  }
1247
1247
  if (q(_.key) && l.reference && l.reference.comp) {
1248
- const d = a[l.reference.comp];
1249
- if (d)
1250
- for (const { id: h, name: p, type: m } of d.meta.properties)
1248
+ const p = a[l.reference.comp];
1249
+ if (p)
1250
+ for (const { id: h, name: d, type: m } of p.meta.properties)
1251
1251
  c.push({
1252
- id: te("multipleRefProperty", t, h),
1252
+ id: ee("multipleRefProperty", t, h),
1253
1253
  kind: "multipleRefProperty",
1254
- names: [p],
1254
+ names: [d],
1255
1255
  meta: {
1256
1256
  raw: { type: m }
1257
1257
  }
1258
1258
  });
1259
1259
  }
1260
1260
  if (V(_.key) && o.type === "comp")
1261
- for (const { id: d, name: h, type: p } of i.meta.properties)
1261
+ for (const { id: p, name: h, type: d } of i.meta.properties)
1262
1262
  c.push({
1263
- id: te("customProperty", t, d),
1263
+ id: ee("customProperty", t, p),
1264
1264
  kind: "customProperty",
1265
1265
  names: [h],
1266
1266
  meta: {
1267
- raw: { type: p }
1267
+ raw: { type: d }
1268
1268
  }
1269
1269
  });
1270
1270
  return c;
@@ -1278,15 +1278,15 @@ function vt(t) {
1278
1278
  const { kind: c, nodeId: r, propertyKey: l } = Jo(t), _ = n.nodes.find((h) => h.id === r);
1279
1279
  if (!_)
1280
1280
  return;
1281
- const d = et[_.key];
1282
- if (!d) {
1281
+ const p = et[_.key];
1282
+ if (!p) {
1283
1283
  console.assert(!1, "invalid element", _.key);
1284
1284
  return;
1285
1285
  }
1286
1286
  if (c === "elementProperty") {
1287
- if (e[d.key] && e[d.key][a]) {
1288
- const h = e[d.key][a].find(
1289
- (p) => p.keys === l
1287
+ if (e[p.key] && e[p.key][a]) {
1288
+ const h = e[p.key][a].find(
1289
+ (d) => d.keys === l
1290
1290
  );
1291
1291
  if (h)
1292
1292
  return {
@@ -1300,44 +1300,44 @@ function vt(t) {
1300
1300
  };
1301
1301
  }
1302
1302
  } else if (c === "referenceProperty") {
1303
- if (J(d.key) && _.reference && _.reference.comp) {
1303
+ if (J(p.key) && _.reference && _.reference.comp) {
1304
1304
  const h = i[_.reference.comp];
1305
1305
  if (h) {
1306
- const p = h.meta.properties.find(
1306
+ const d = h.meta.properties.find(
1307
1307
  (m) => m.id === l
1308
1308
  );
1309
- if (p)
1309
+ if (d)
1310
1310
  return {
1311
1311
  id: t,
1312
1312
  kind: c,
1313
- names: [p.name],
1313
+ names: [d.name],
1314
1314
  meta: {
1315
- raw: { type: p.type }
1315
+ raw: { type: d.type }
1316
1316
  }
1317
1317
  };
1318
1318
  }
1319
1319
  }
1320
1320
  } else if (c === "multipleRefProperty") {
1321
- if (q(d.key) && _.reference && _.reference.comp) {
1321
+ if (q(p.key) && _.reference && _.reference.comp) {
1322
1322
  const h = i[_.reference.comp];
1323
1323
  if (h) {
1324
- const p = h.meta.properties.find(
1324
+ const d = h.meta.properties.find(
1325
1325
  (m) => m.id === l
1326
1326
  );
1327
- if (p)
1327
+ if (d)
1328
1328
  return {
1329
1329
  id: t,
1330
1330
  kind: c,
1331
- names: [p.name],
1331
+ names: [d.name],
1332
1332
  meta: {
1333
- raw: { type: p.type }
1333
+ raw: { type: d.type }
1334
1334
  }
1335
1335
  };
1336
1336
  }
1337
1337
  }
1338
- } else if (c === "customProperty" && V(d.key) && n.type === "comp") {
1338
+ } else if (c === "customProperty" && V(p.key) && n.type === "comp") {
1339
1339
  const h = o.meta.properties.find(
1340
- (p) => p.id === l
1340
+ (d) => d.id === l
1341
1341
  );
1342
1342
  if (h)
1343
1343
  return {
@@ -1360,7 +1360,7 @@ function rn() {
1360
1360
  const { activeObject: t, activePage: e, activeComp: n } = g.app;
1361
1361
  return t.type === "page" ? e.meta.states : t.type === "comp" ? n.meta.states : [];
1362
1362
  }
1363
- function ue(t) {
1363
+ function le(t) {
1364
1364
  const { activeObject: e, activePage: n, activeComp: o } = g.app;
1365
1365
  if (e.type === "page")
1366
1366
  return n.meta.states.find((i) => i.id === t);
@@ -1392,7 +1392,7 @@ const Mi = {
1392
1392
  initData_: function() {
1393
1393
  if (this.node.id)
1394
1394
  return;
1395
- const t = qt("onEvent")?.[0];
1395
+ const t = Qt("onEvent")?.[0];
1396
1396
  if (!t)
1397
1397
  return;
1398
1398
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1794,7 +1794,7 @@ const Yi = {
1794
1794
  initData_: function() {
1795
1795
  if (this.node.id)
1796
1796
  return;
1797
- const t = qt("callMethod")?.[0];
1797
+ const t = Qt("callMethod")?.[0];
1798
1798
  if (!t)
1799
1799
  return;
1800
1800
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -1893,7 +1893,7 @@ const Yi = {
1893
1893
  ensureBlocks_: function() {
1894
1894
  if (this.isInsertionMarker())
1895
1895
  return;
1896
- const { kind: t } = Oe(this.method.id), e = wn(t), n = [];
1896
+ const { kind: t } = Jt(this.method.id), e = wn(t), n = [];
1897
1897
  for (let o = 0; o < this.method.outputs.length; o++) {
1898
1898
  const { key: i, name: a } = this.method.outputs[o];
1899
1899
  n.push(["OUTPUT" + o, `__output$${i}__`, a, e]);
@@ -1937,42 +1937,53 @@ s.forBlock.call_app_method_v1 = function(t) {
1937
1937
  let i;
1938
1938
  o.method.kind === "multipleRefMethod" && (i = s.valueToCode(o, "REF_KEY", u.NONE) || "''");
1939
1939
  let a = "{";
1940
- if (o.method.inputs.forEach(({ key: c, type: r }, l) => {
1941
- let _ = s.valueToCode(
1940
+ o.method.inputs.forEach(({ key: r, type: l }, _) => {
1941
+ let p = s.valueToCode(
1942
1942
  o,
1943
- "INPUT" + l,
1943
+ "INPUT" + _,
1944
1944
  u.ATOMIC
1945
1945
  );
1946
- if (_ === void 0)
1947
- switch (r) {
1946
+ if (p === void 0)
1947
+ switch (l) {
1948
1948
  case "string":
1949
- _ = "''";
1949
+ p = "''";
1950
1950
  break;
1951
1951
  case "number":
1952
- _ = "0";
1952
+ p = "0";
1953
1953
  break;
1954
1954
  case "boolean":
1955
- _ = "false";
1955
+ p = "false";
1956
1956
  break;
1957
1957
  case "array":
1958
- _ = "[]";
1958
+ p = "[]";
1959
1959
  break;
1960
1960
  case "object":
1961
- _ = "{}";
1961
+ p = "{}";
1962
1962
  break;
1963
1963
  default:
1964
- _ = "null";
1964
+ p = "null";
1965
1965
  }
1966
- a !== "{" && (a += ", "), a += `${n(c)}: ${_}`;
1967
- }), a += "}", o.method.outputs.length > 0) {
1968
- let c = "";
1969
- o.method.outputs.forEach(({ key: _ }) => {
1970
- c += `${e}__output$${_}__ = __callMethodResult__[${n(_)}];
1966
+ a !== "{" && (a += ", "), a += `${n(r)}: ${p}`;
1967
+ }), a += "}";
1968
+ let c = "";
1969
+ if (o.method.outputs.forEach(({ key: r }) => {
1970
+ c += `${e}__output$${r}__ = __outputs__[${n(r)}];
1971
1971
  `;
1972
- });
1972
+ }), o.method.kind === "customMethod") {
1973
+ const { methodKey: r } = Jt(o.method.id);
1974
+ if (o.method.outputs.length > 0) {
1975
+ const l = s.statementToCode(o, "HANDLE");
1976
+ return `{
1977
+ var __outputs__ = __implementMethod$${r}__(${a});
1978
+ ${c}${l}}
1979
+ `;
1980
+ } else
1981
+ return `__implementMethod$${r}__(${a});
1982
+ `;
1983
+ } else if (o.method.outputs.length > 0) {
1973
1984
  const r = s.statementToCode(o, "HANDLE");
1974
1985
  return `{
1975
- __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
1986
+ var __outputs__ = __callMethodV1__(${n(o.method.id)}, ${i}, ${a});
1976
1987
  ${c}${r}}
1977
1988
  `;
1978
1989
  } else
@@ -2065,7 +2076,7 @@ const Fi = {
2065
2076
  };
2066
2077
  E.implement_app_method_v1 = Fi;
2067
2078
  s.forBlock.implement_app_method_v1 = function(t) {
2068
- const e = s.INDENT, n = s.quote_, o = t, { methodKey: i } = Oe(o.method.id);
2079
+ const e = s.INDENT, n = s.quote_, o = t, { methodKey: i } = Jt(o.method.id);
2069
2080
  let a = "";
2070
2081
  o.method.inputs.forEach(({ key: l }) => {
2071
2082
  a += `${e}var __input$${l}__ = __inputs__[${n(l)}];
@@ -2074,7 +2085,7 @@ s.forBlock.implement_app_method_v1 = function(t) {
2074
2085
  const c = s.statementToCode(o, "HANDLE");
2075
2086
  return `function __implementMethod$${i}__(__inputs__) {
2076
2087
  ${a}${e}var __outputs__ = {};
2077
- ${c}${e}__callMethodResult__ = __outputs__;
2088
+ ${c}${e}return __outputs__;
2078
2089
  }
2079
2090
  `;
2080
2091
  };
@@ -2423,7 +2434,7 @@ const Hi = {
2423
2434
  initData_: function() {
2424
2435
  if (this.node.id)
2425
2436
  return;
2426
- const t = qt("getProperty")?.[0];
2437
+ const t = Qt("getProperty")?.[0];
2427
2438
  if (!t)
2428
2439
  return;
2429
2440
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -2528,7 +2539,7 @@ const Gi = {
2528
2539
  initData_: function() {
2529
2540
  if (this.node.id)
2530
2541
  return;
2531
- const t = qt("setProperty")?.[0];
2542
+ const t = Qt("setProperty")?.[0];
2532
2543
  if (!t)
2533
2544
  return;
2534
2545
  this.node.id = t.id, this.node.key = t.key, this.node.alias = t.alias;
@@ -2675,11 +2686,11 @@ const Wi = {
2675
2686
  }
2676
2687
  },
2677
2688
  onStateChange_: function(t) {
2678
- const e = ue(t);
2689
+ const e = le(t);
2679
2690
  e ? (this.state.id = e.id, this.state.name = e.name, this.state.type = e.type) : (this.state.id = "", this.state.name = "", this.state.type = "string");
2680
2691
  },
2681
2692
  checkWarning_: function() {
2682
- const t = ue(this.state.id);
2693
+ const t = le(this.state.id);
2683
2694
  if (!t) {
2684
2695
  this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2685
2696
  return;
@@ -2735,7 +2746,7 @@ const ji = {
2735
2746
  }
2736
2747
  },
2737
2748
  onStateChange_: function(t) {
2738
- const e = ue(t);
2749
+ const e = le(t);
2739
2750
  e ? (this.state.id = e.id, this.state.name = e.name, this.state.type = e.type) : (this.state.id = "", this.state.name = "", this.state.type = "string"), this.updateShadow_();
2740
2751
  },
2741
2752
  updateShadow_: function() {
@@ -2748,7 +2759,7 @@ const ji = {
2748
2759
  this.getInput("VALUE").setCheck(e).setShadowDom(n);
2749
2760
  },
2750
2761
  checkWarning_: function() {
2751
- const t = ue(this.state.id);
2762
+ const t = le(this.state.id);
2752
2763
  if (!t) {
2753
2764
  this.setWarningText(f("WARN_STATE_NOT_FOUND"));
2754
2765
  return;
@@ -3635,18 +3646,18 @@ function Zi() {
3635
3646
  t.push([o, n]);
3636
3647
  }), k(t);
3637
3648
  }
3638
- function Qt(t) {
3649
+ function zt(t) {
3639
3650
  const e = [];
3640
3651
  return g.compute.spaces.forEach((n) => {
3641
3652
  t === "func" && n.funcs.length > 0 && e.push(n), t === "flow" && n.flows.length > 0 && e.push(n);
3642
3653
  }), e;
3643
3654
  }
3644
- function le(t) {
3655
+ function _e(t) {
3645
3656
  return g.compute.spaces.find((e) => e.id === t);
3646
3657
  }
3647
3658
  function oo(t) {
3648
3659
  const e = [];
3649
- return Qt(t).forEach(({ id: o, name: i }) => {
3660
+ return zt(t).forEach(({ id: o, name: i }) => {
3650
3661
  e.push([i, o]);
3651
3662
  }), k(e);
3652
3663
  }
@@ -3668,7 +3679,7 @@ const ts = {
3668
3679
  initData_: function() {
3669
3680
  if (this.space.id)
3670
3681
  return;
3671
- const t = Qt("func")?.[0];
3682
+ const t = zt("func")?.[0];
3672
3683
  if (!t)
3673
3684
  return;
3674
3685
  this.space.id = t.id, this.space.name = t.name;
@@ -3709,7 +3720,7 @@ const ts = {
3709
3720
  }
3710
3721
  },
3711
3722
  onSpaceChange_: function(t) {
3712
- const e = le(t);
3723
+ const e = _e(t);
3713
3724
  if (!e) {
3714
3725
  console.assert(!1);
3715
3726
  return;
@@ -3775,7 +3786,7 @@ const ts = {
3775
3786
  F(this, t);
3776
3787
  },
3777
3788
  checkWarning_: function() {
3778
- const t = le(this.space.id);
3789
+ const t = _e(this.space.id);
3779
3790
  if (!t) {
3780
3791
  this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3781
3792
  return;
@@ -3802,10 +3813,10 @@ s.forBlock.call_func_v1 = function(t) {
3802
3813
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3803
3814
  let c = "";
3804
3815
  c += `${e}var __inputs__ = {
3805
- `, o.func.inputs.forEach(({ id: h }, p) => {
3816
+ `, o.func.inputs.forEach(({ id: h }, d) => {
3806
3817
  const m = s.valueToCode(
3807
3818
  o,
3808
- "INPUT" + p,
3819
+ "INPUT" + d,
3809
3820
  u.ATOMIC
3810
3821
  );
3811
3822
  c += `${e}${e}${n(h)}: ${m},
@@ -3842,7 +3853,7 @@ const es = {
3842
3853
  initData_: function() {
3843
3854
  if (this.space.id)
3844
3855
  return;
3845
- const t = Qt("func")?.[0];
3856
+ const t = zt("func")?.[0];
3846
3857
  if (!t)
3847
3858
  return;
3848
3859
  this.space.id = t.id, this.space.name = t.name;
@@ -3883,7 +3894,7 @@ const es = {
3883
3894
  }
3884
3895
  },
3885
3896
  onSpaceChange_: function(t) {
3886
- const e = le(t);
3897
+ const e = _e(t);
3887
3898
  if (!e) {
3888
3899
  console.assert(!1);
3889
3900
  return;
@@ -3949,7 +3960,7 @@ const es = {
3949
3960
  F(this, t);
3950
3961
  },
3951
3962
  checkWarning_: function() {
3952
- const t = le(this.space.id);
3963
+ const t = _e(this.space.id);
3953
3964
  if (!t) {
3954
3965
  this.setWarningText(f("WARN_SPACE_NOT_FOUND"));
3955
3966
  return;
@@ -3976,10 +3987,10 @@ s.forBlock.call_func_internal_v1 = function(t) {
3976
3987
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3977
3988
  let c = `${e}var __inputs__ = {
3978
3989
  `;
3979
- o.func.inputs.forEach(({ id: h }, p) => {
3990
+ o.func.inputs.forEach(({ id: h }, d) => {
3980
3991
  const m = s.valueToCode(
3981
3992
  o,
3982
- "INPUT" + p,
3993
+ "INPUT" + d,
3983
3994
  u.ATOMIC
3984
3995
  );
3985
3996
  c += `${e}${e}${n(h)}: ${m},
@@ -4244,7 +4255,7 @@ function Le(t) {
4244
4255
  e.push([i, o]);
4245
4256
  }), k(e);
4246
4257
  }
4247
- function _e(t, e) {
4258
+ function pe(t, e) {
4248
4259
  const { spaces: n } = g.data, o = n.find((a) => a.id === t);
4249
4260
  if (!o)
4250
4261
  return [];
@@ -4261,7 +4272,7 @@ function $e(t, e, n) {
4261
4272
  }
4262
4273
  function is(t, e) {
4263
4274
  const n = [];
4264
- return _e(t, e).forEach(({ id: i, name: a }) => {
4275
+ return pe(t, e).forEach(({ id: i, name: a }) => {
4265
4276
  n.push([a, i]);
4266
4277
  }), k(n);
4267
4278
  }
@@ -4409,7 +4420,7 @@ const rs = {
4409
4420
  if (!e)
4410
4421
  return;
4411
4422
  this.table.id = e.id, this.table.name = e.name;
4412
- const n = _e(this.space.id, this.table.id)?.[0];
4423
+ const n = pe(this.space.id, this.table.id)?.[0];
4413
4424
  n && (this.column.id = n.id, this.column.name = n.name, this.column.type = n.type, this.column.extend = n.extend);
4414
4425
  },
4415
4426
  saveExtraState: function() {
@@ -4463,7 +4474,7 @@ const rs = {
4463
4474
  }
4464
4475
  const n = e.id !== this.table.id;
4465
4476
  if (this.table.id = e.id, this.table.name = e.name, n || !$e(this.space.id, this.table.id, this.column.id)) {
4466
- const o = _e(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4477
+ const o = pe(this.space.id, this.table.id)?.[0]?.id ?? "", i = this.getField("COLUMN");
4467
4478
  i.getOptions(!1), i.setValue(o, !1), this.onColumnChange_(o);
4468
4479
  }
4469
4480
  },
@@ -4654,7 +4665,7 @@ function ds(t) {
4654
4665
  const e = t.getInput("CONDITION").connection;
4655
4666
  if (e.targetBlock())
4656
4667
  return;
4657
- const n = nt()?.[0], o = H(n?.id ?? "")?.[0], i = _e(n?.id, o?.id)?.[0], a = {
4668
+ const n = nt()?.[0], o = H(n?.id ?? "")?.[0], i = pe(n?.id, o?.id)?.[0], a = {
4658
4669
  type: "cond_atomic_v1",
4659
4670
  extraState: {
4660
4671
  space: {
@@ -5199,12 +5210,12 @@ E.select_column_v1 = ys;
5199
5210
  s.forBlock.select_column_v1 = function(t) {
5200
5211
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5201
5212
  for (let l = 0; l < n.itemCount_; l++) {
5202
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = n.getFieldValue("ALIAS" + l);
5203
- a.push({ name: d, alias: h });
5213
+ const _ = n.getFieldValue("COLUMN" + l), p = n.table.columns.find((d) => d.id === _).name, h = n.getFieldValue("ALIAS" + l);
5214
+ a.push({ name: p, alias: h });
5204
5215
  }
5205
5216
  let c = "[";
5206
- return a.forEach(({ name: l, alias: _ }, d) => {
5207
- d !== 0 && (c += ","), c += `{name:${e(l)},alias:${e(_)}}`;
5217
+ return a.forEach(({ name: l, alias: _ }, p) => {
5218
+ p !== 0 && (c += ","), c += `{name:${e(l)},alias:${e(_)}}`;
5208
5219
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, u.ATOMIC];
5209
5220
  };
5210
5221
  const vs = {
@@ -5630,12 +5641,12 @@ E.update_column_v1 = Ls;
5630
5641
  s.forBlock.update_column_v1 = function(t) {
5631
5642
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5632
5643
  for (let l = 0; l < n.itemCount_; l++) {
5633
- const _ = n.getFieldValue("COLUMN" + l), d = n.table.columns.find((p) => p.id === _).name, h = s.valueToCode(n, "ADD" + l, u.ATOMIC) || "null";
5634
- a.push({ name: d, value: h });
5644
+ const _ = n.getFieldValue("COLUMN" + l), p = n.table.columns.find((d) => d.id === _).name, h = s.valueToCode(n, "ADD" + l, u.ATOMIC) || "null";
5645
+ a.push({ name: p, value: h });
5635
5646
  }
5636
5647
  let c = "[";
5637
- return a.forEach(({ name: l, value: _ }, d) => {
5638
- d !== 0 && (c += ","), c += `{name:${e(l)},value:${_}}`;
5648
+ return a.forEach(({ name: l, value: _ }, p) => {
5649
+ p !== 0 && (c += ","), c += `{name:${e(l)},value:${_}}`;
5639
5650
  }), c += "]", [`{spaceId:${e(o)},tableId:${e(i)},columns:${c}}`, u.ATOMIC];
5640
5651
  };
5641
5652
  function Ss(t) {
@@ -5771,7 +5782,7 @@ const Rs = C.xml, Ds = {
5771
5782
  this.isInFlyout || this.addEntry_(n);
5772
5783
  })
5773
5784
  ), n.appendField(new En(String(t))), n.appendField(
5774
- new ot(se, 20, 20, void 0, () => {
5785
+ new ot(ae, 20, 20, void 0, () => {
5775
5786
  this.isInFlyout || this.removeEntry_(n);
5776
5787
  })
5777
5788
  ), this.moveInputBefore(e, "ADD");
@@ -5790,7 +5801,7 @@ const Rs = C.xml, Ds = {
5790
5801
  this.isInFlyout || this.addEntry_(n);
5791
5802
  })
5792
5803
  ), n.appendField(new En(String(e))), n.appendField(
5793
- new ot(se, 20, 20, void 0, () => {
5804
+ new ot(ae, 20, 20, void 0, () => {
5794
5805
  this.isInFlyout || this.removeEntry_(n);
5795
5806
  })
5796
5807
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -5854,7 +5865,7 @@ const Ln = C.xml, Us = {
5854
5865
  this.isInFlyout || this.addEntry_(i);
5855
5866
  })
5856
5867
  ), i.appendField(new ft(n), "KEY" + e), i.appendField(
5857
- new ot(se, 20, 20, void 0, () => {
5868
+ new ot(ae, 20, 20, void 0, () => {
5858
5869
  this.isInFlyout || this.removeEntry_(i);
5859
5870
  })
5860
5871
  ), this.moveInputBefore(o, "ADD");
@@ -5871,7 +5882,7 @@ const Ln = C.xml, Us = {
5871
5882
  this.isInFlyout || this.addEntry_(n);
5872
5883
  })
5873
5884
  ), n.appendField(new ft("key"), "KEY" + e), n.appendField(
5874
- new ot(se, 20, 20, void 0, () => {
5885
+ new ot(ae, 20, 20, void 0, () => {
5875
5886
  this.isInFlyout || this.removeEntry_(n);
5876
5887
  })
5877
5888
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -6836,16 +6847,16 @@ ${c}}
6836
6847
  it.NameType.VARIABLE
6837
6848
  ), r += `var ${_} = ${i};
6838
6849
  `);
6839
- const d = s.nameDB_.getDistinctName(
6850
+ const p = s.nameDB_.getDistinctName(
6840
6851
  `${n}_by`,
6841
6852
  it.NameType.VARIABLE
6842
6853
  );
6843
- return r += `var ${d} = `, C.string.isNumber(a) ? r += `${Math.abs(Number(a))};
6854
+ return r += `var ${p} = `, C.string.isNumber(a) ? r += `${Math.abs(Number(a))};
6844
6855
  ` : r += `Math.abs(${a});
6845
6856
  `, r += `if (${l} > ${_}) {
6846
- ${e}${d} = -${d};
6857
+ ${e}${p} = -${p};
6847
6858
  }
6848
- `, r += `for (${n} = ${l}; ${d} >= 0 ? ${n} <= ${_} : ${n} >= ${_}; ${n} += ${d}) {
6859
+ `, r += `for (${n} = ${l}; ${p} >= 0 ? ${n} <= ${_} : ${n} >= ${_}; ${n} += ${p}) {
6849
6860
  ${c}}
6850
6861
  `, r;
6851
6862
  }
@@ -8389,7 +8400,7 @@ s.forBlock.text_v1 = function(t) {
8389
8400
  return [s.quote_(t.getFieldValue("TEXT")), u.ATOMIC];
8390
8401
  };
8391
8402
  const da = /^\s*'([^']|\\')*'\s*$/;
8392
- function oe(t) {
8403
+ function ie(t) {
8393
8404
  return da.test(t) ? [t, u.ATOMIC] : [`String(${t})`, u.FUNCTION_CALL];
8394
8405
  }
8395
8406
  B.register(
@@ -8425,7 +8436,7 @@ s.forBlock.text_append_v1 = function(t) {
8425
8436
  t.getFieldValue("VAR"),
8426
8437
  it.NameType.VARIABLE
8427
8438
  ), n = s.valueToCode(t, "TEXT", u.NONE) || "''";
8428
- return `${e} += ${oe(n)};
8439
+ return `${e} += ${ie(n)};
8429
8440
  `;
8430
8441
  };
8431
8442
  T([
@@ -8717,11 +8728,11 @@ s.forBlock.text_join_v1 = function(t) {
8717
8728
  return ["''", u.ATOMIC];
8718
8729
  case 1: {
8719
8730
  const n = s.valueToCode(e, "ADD0", u.NONE) || "''";
8720
- return oe(n);
8731
+ return ie(n);
8721
8732
  }
8722
8733
  case 2: {
8723
8734
  const n = s.valueToCode(e, "ADD0", u.NONE) || "''", o = s.valueToCode(e, "ADD1", u.NONE) || "''";
8724
- return [oe(n)[0] + " + " + oe(o)[0], u.ADDITION];
8735
+ return [ie(n)[0] + " + " + ie(o)[0], u.ADDITION];
8725
8736
  }
8726
8737
  default: {
8727
8738
  const n = new Array(e.itemCount_);
@@ -8922,13 +8933,13 @@ const Ta = {
8922
8933
  updateShadow_: function() {
8923
8934
  if (this.isInsertionMarker())
8924
8935
  return;
8925
- const t = ce(1e3);
8936
+ const t = re(1e3);
8926
8937
  this.getInput("INTERVAL")?.setShadowDom(t);
8927
- const e = re(!1);
8938
+ const e = ue(!1);
8928
8939
  this.getInput("LOOP")?.setShadowDom(e);
8929
- const n = ce(1);
8940
+ const n = re(1);
8930
8941
  this.getInput("COUNT")?.setShadowDom(n);
8931
- const o = re(!1);
8942
+ const o = ue(!1);
8932
8943
  this.getInput("IMMEDIATE")?.setShadowDom(o);
8933
8944
  }
8934
8945
  };
@@ -9073,16 +9084,16 @@ Mn.setPrompt(async (t, e, n) => {
9073
9084
  });
9074
9085
  o !== void 0 && n(String(o));
9075
9086
  });
9076
- const zt = O.prototype;
9077
- zt.doClassValidation_ = function(t) {
9087
+ const Zt = O.prototype;
9088
+ Zt.doClassValidation_ = function(t) {
9078
9089
  return t;
9079
9090
  };
9080
- const Ia = zt.doValueUpdate_;
9081
- zt.doValueUpdate_ = function(t) {
9091
+ const Ia = Zt.doValueUpdate_;
9092
+ Zt.doValueUpdate_ = function(t) {
9082
9093
  Ia.call(this, t), this.selectedOption && this.selectedOption[1] !== t && (this.selectedOption = null);
9083
9094
  };
9084
- const Oa = zt.getText_;
9085
- zt.getText_ = function() {
9095
+ const Oa = Zt.getText_;
9096
+ Zt.getText_ = function() {
9086
9097
  if (this.selectedOption)
9087
9098
  return Oa.call(this);
9088
9099
  const { i18n: t } = kt, e = this.getSourceBlock();
@@ -9103,7 +9114,7 @@ zt.getText_ = function() {
9103
9114
  return Fn(n, o);
9104
9115
  } else if (this.name === "EVENT") {
9105
9116
  const { kind: n, names: o } = e.event;
9106
- return console.log(e.event), Ie(n, o);
9117
+ return console.log(e.event), Oe(n, o);
9107
9118
  } else if (this.name === "METHOD") {
9108
9119
  const { kind: n, names: o } = e.method;
9109
9120
  return ye(n, o);
@@ -9188,7 +9199,7 @@ function ro() {
9188
9199
  const e = t.getTopBlocks(!0)?.[0];
9189
9200
  e && un(e.id);
9190
9201
  }
9191
- Ae.Classic.blockStyles = {
9202
+ Ie.Classic.blockStyles = {
9192
9203
  color_blocks: {
9193
9204
  colourPrimary: "#a5745b",
9194
9205
  colourSecondary: "#ede3de",
@@ -9274,7 +9285,7 @@ Ae.Classic.blockStyles = {
9274
9285
  hat: ""
9275
9286
  }
9276
9287
  };
9277
- Ae.Classic.categoryStyles = {
9288
+ Ie.Classic.categoryStyles = {
9278
9289
  color_category: {
9279
9290
  colour: "#a5745b"
9280
9291
  },
@@ -9341,7 +9352,7 @@ Ae.Classic.categoryStyles = {
9341
9352
  };
9342
9353
  const ka = Un.defineTheme("light", {
9343
9354
  name: "light",
9344
- base: Ae.Classic,
9355
+ base: Ie.Classic,
9345
9356
  componentStyles: {
9346
9357
  workspaceBackgroundColour: "#ffffff",
9347
9358
  toolboxBackgroundColour: "#eeeeee",
@@ -9357,7 +9368,7 @@ const ka = Un.defineTheme("light", {
9357
9368
  }
9358
9369
  }), Na = Un.defineTheme("dark", {
9359
9370
  name: "dark",
9360
- base: Ae.Classic,
9371
+ base: Ie.Classic,
9361
9372
  componentStyles: {
9362
9373
  workspaceBackgroundColour: "#1e1e1e",
9363
9374
  toolboxBackgroundColour: "#272727",
@@ -9524,7 +9535,7 @@ const Ma = /* @__PURE__ */ rt({
9524
9535
  lock: { type: Boolean }
9525
9536
  },
9526
9537
  setup(t, { expose: e }) {
9527
- const { t: n } = Jt(), o = t, i = ln(), a = () => {
9538
+ const { t: n } = qt(), o = t, i = ln(), a = () => {
9528
9539
  if (!i.workspace) {
9529
9540
  console.assert(!1);
9530
9541
  return;
@@ -9538,8 +9549,8 @@ const Ma = /* @__PURE__ */ rt({
9538
9549
  a();
9539
9550
  };
9540
9551
  return e({ cleanWorkspace: a }), (r, l) => {
9541
- const _ = M("v-btn"), d = M("v-tooltip");
9542
- return S(), st(d, {
9552
+ const _ = M("v-btn"), p = M("v-tooltip");
9553
+ return S(), st(p, {
9543
9554
  text: D(n)("x-block-lib.tip.hotkeyCtrlQ")
9544
9555
  }, {
9545
9556
  activator: at(({ props: h }) => [
@@ -9562,7 +9573,7 @@ const Ma = /* @__PURE__ */ rt({
9562
9573
  },
9563
9574
  emits: ["update:modelValue"],
9564
9575
  setup(t) {
9565
- const { t: e } = Jt(), n = $t(t, "modelValue");
9576
+ const { t: e } = qt(), n = $t(t, "modelValue");
9566
9577
  return (o, i) => {
9567
9578
  const a = M("v-btn"), c = M("v-tooltip");
9568
9579
  return S(), st(c, {
@@ -9611,8 +9622,8 @@ const Ma = /* @__PURE__ */ rt({
9611
9622
  border: "1px solid " + n.value,
9612
9623
  pointerEvents: "none"
9613
9624
  }));
9614
- return (d, h) => {
9615
- const p = M("v-spacer"), m = M("v-icon"), A = zo("ripple");
9625
+ return (p, h) => {
9626
+ const d = M("v-spacer"), m = M("v-icon"), A = zo("ripple");
9616
9627
  return Zo((S(), tt("div", {
9617
9628
  class: "d-flex align-center cursor-pointer",
9618
9629
  style: j(l.value),
@@ -9624,7 +9635,7 @@ const Ma = /* @__PURE__ */ rt({
9624
9635
  K("span", xa, Ht(a.title), 1),
9625
9636
  a.desc ? (S(), tt("span", Ya, Ht(a.desc), 1)) : ut("", !0)
9626
9637
  ]),
9627
- L(p),
9638
+ L(d),
9628
9639
  L(m, {
9629
9640
  class: "x-handle cursor-move mr-3",
9630
9641
  icon: "mdi-drag-horizontal-variant",
@@ -9652,19 +9663,19 @@ const Ma = /* @__PURE__ */ rt({
9652
9663
  }),
9653
9664
  emits: ["update:modelValue"],
9654
9665
  setup(t, { expose: e }) {
9655
- const { t: n } = Jt(), o = $t(t, "modelValue"), i = ln(), a = Bt([]);
9666
+ const { t: n } = qt(), o = $t(t, "modelValue"), i = ln(), a = Bt([]);
9656
9667
  e({ update: () => {
9657
9668
  if (!i.workspace) {
9658
9669
  console.assert(!1);
9659
9670
  return;
9660
9671
  }
9661
- const p = [];
9672
+ const d = [];
9662
9673
  i.workspace.getTopBlocks(!0).forEach((A) => {
9663
9674
  const R = A.id === Uo()?.id;
9664
9675
  let P = "";
9665
9676
  if (A.type.startsWith("on_app_event_v")) {
9666
9677
  const G = A, Nt = et[G.node.key];
9667
- Nt && (P = n(Nt.name), G.node.alias && (P += " / " + G.node.alias), P += " - " + Ie(G.event.kind, G.event.names));
9678
+ Nt && (P = n(Nt.name), G.node.alias && (P += " / " + G.node.alias), P += " - " + Oe(G.event.kind, G.event.names));
9668
9679
  } else if (A.type.startsWith("watch_effect_v"))
9669
9680
  P = n("x-block-lib.watchEffect");
9670
9681
  else if (A.type.startsWith("app_bind_v"))
@@ -9674,13 +9685,13 @@ const Ma = /* @__PURE__ */ rt({
9674
9685
  P = n("x-block-lib.implementMethod"), P += " - " + ye(G.method.kind, G.method.names);
9675
9686
  } else A.type.startsWith("func_entry_v") ? P = n("x-block-lib.funcEntry") : A.type.startsWith("procedure_def_v") ? P = n("x-block-lib.procedure") + " - " + A.getFieldValue("NAME") : P = n("x-block-lib.temporaryBlock");
9676
9687
  const It = A.getCommentText() ?? "";
9677
- p.push({
9688
+ d.push({
9678
9689
  id: A.id,
9679
9690
  name: P,
9680
9691
  desc: It,
9681
9692
  select: R
9682
9693
  });
9683
- }), a.value = p;
9694
+ }), a.value = d;
9684
9695
  } });
9685
9696
  let r = [];
9686
9697
  const l = () => {
@@ -9688,22 +9699,22 @@ const Ma = /* @__PURE__ */ rt({
9688
9699
  xn(n("x-block-lib.msg.cannotOperateInLockedState"));
9689
9700
  return;
9690
9701
  }
9691
- const p = [];
9702
+ const d = [];
9692
9703
  a.value.forEach(({ id: m }) => {
9693
- p.push(m);
9694
- }), r = p;
9695
- }, _ = () => !t.lock, d = (p) => {
9704
+ d.push(m);
9705
+ }), r = d;
9706
+ }, _ = () => !t.lock, p = (d) => {
9696
9707
  if (!i.workspace) {
9697
9708
  console.assert(!1);
9698
9709
  return;
9699
9710
  }
9700
- if (p.oldIndex === void 0 || p.newIndex === void 0) {
9711
+ if (d.oldIndex === void 0 || d.newIndex === void 0) {
9701
9712
  console.assert(!1);
9702
9713
  return;
9703
9714
  }
9704
- if (p.oldIndex === p.newIndex)
9715
+ if (d.oldIndex === d.newIndex)
9705
9716
  return;
9706
- const m = r[p.oldIndex], A = i.workspace.getBlockById(
9717
+ const m = r[d.oldIndex], A = i.workspace.getBlockById(
9707
9718
  m
9708
9719
  );
9709
9720
  if (!A) {
@@ -9711,29 +9722,29 @@ const Ma = /* @__PURE__ */ rt({
9711
9722
  return;
9712
9723
  }
9713
9724
  let R = "";
9714
- p.newIndex > p.oldIndex ? R = r[p.newIndex] : p.newIndex > 0 && (R = r[p.newIndex - 1]);
9725
+ d.newIndex > d.oldIndex ? R = r[d.newIndex] : d.newIndex > 0 && (R = r[d.newIndex - 1]);
9715
9726
  let P = -10;
9716
9727
  R !== "" && (P = i.workspace.getBlockById(
9717
9728
  R
9718
9729
  ).getRelativeToSurfaceXY().y + 10);
9719
9730
  const It = A.getRelativeToSurfaceXY();
9720
9731
  A.moveTo(new C.Coordinate(It.x, P)), i.workspace.cleanUp(), ro();
9721
- }, h = async (p) => {
9732
+ }, h = async (d) => {
9722
9733
  if (!i.workspace) {
9723
9734
  console.assert(!1);
9724
9735
  return;
9725
9736
  }
9726
- const m = i.workspace.getBlockById(p);
9727
- Vn.setSelected(m), un(p), o.value = !1;
9737
+ const m = i.workspace.getBlockById(d);
9738
+ Vn.setSelected(m), un(d), o.value = !1;
9728
9739
  };
9729
- return (p, m) => a.value.length > 0 ? (S(), st(D(Mo), {
9740
+ return (d, m) => a.value.length > 0 ? (S(), st(D(Mo), {
9730
9741
  key: 0,
9731
9742
  modelValue: a.value,
9732
9743
  "onUpdate:modelValue": m[0] || (m[0] = (A) => a.value = A),
9733
9744
  animation: 150,
9734
9745
  "ghost-class": "ghost",
9735
9746
  handle: ".x-handle",
9736
- onEnd: d,
9747
+ onEnd: p,
9737
9748
  onMove: _,
9738
9749
  onStart: l
9739
9750
  }, {
@@ -9790,7 +9801,7 @@ const Ma = /* @__PURE__ */ rt({
9790
9801
  lock: { type: Boolean }
9791
9802
  },
9792
9803
  setup(t, { expose: e }) {
9793
- const { t: n } = Jt(), o = ii(), { sysBarAvail: i } = Yn(), { backgroundColor1: a } = Xt(), c = w(() => {
9804
+ const { t: n } = qt(), o = ii(), { sysBarAvail: i } = Yn(), { backgroundColor1: a } = Xt(), c = w(() => {
9794
9805
  let m = "100%";
9795
9806
  return o.mdAndUp.value && (m = "400px"), {
9796
9807
  background: a.value,
@@ -9809,15 +9820,15 @@ const Ma = /* @__PURE__ */ rt({
9809
9820
  ei(() => {
9810
9821
  _.value = !1;
9811
9822
  });
9812
- const d = Kt("blockList"), h = Kt("blockTree");
9823
+ const p = Kt("blockList"), h = Kt("blockTree");
9813
9824
  return e({ open: _, update: () => {
9814
- t.type === "list" ? d.value?.update() : t.type === "tree" && h.value?.update();
9825
+ t.type === "list" ? p.value?.update() : t.type === "tree" && h.value?.update();
9815
9826
  } }), (m, A) => {
9816
9827
  const R = M("v-sheet"), P = M("v-btn"), It = M("v-spacer"), G = M("v-dialog"), Nt = M("v-tooltip");
9817
9828
  return S(), tt(Kn, null, [
9818
9829
  L(G, {
9819
9830
  modelValue: D(_),
9820
- "onUpdate:modelValue": A[5] || (A[5] = (W) => ne(_) ? _.value = W : null),
9831
+ "onUpdate:modelValue": A[5] || (A[5] = (W) => oe(_) ? _.value = W : null),
9821
9832
  eager: "",
9822
9833
  fullscreen: "",
9823
9834
  "no-click-animation": "",
@@ -9864,16 +9875,16 @@ const Ma = /* @__PURE__ */ rt({
9864
9875
  t.type === "list" ? (S(), st(Ha, {
9865
9876
  key: 0,
9866
9877
  ref_key: "blockList",
9867
- ref: d,
9878
+ ref: p,
9868
9879
  modelValue: D(_),
9869
- "onUpdate:modelValue": A[1] || (A[1] = (W) => ne(_) ? _.value = W : null),
9880
+ "onUpdate:modelValue": A[1] || (A[1] = (W) => oe(_) ? _.value = W : null),
9870
9881
  lock: t.lock
9871
9882
  }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (S(), st(Ga, {
9872
9883
  key: 1,
9873
9884
  ref_key: "blockTree",
9874
9885
  ref: h,
9875
9886
  modelValue: D(_),
9876
- "onUpdate:modelValue": A[2] || (A[2] = (W) => ne(_) ? _.value = W : null)
9887
+ "onUpdate:modelValue": A[2] || (A[2] = (W) => oe(_) ? _.value = W : null)
9877
9888
  }, null, 8, ["modelValue"])) : ut("", !0),
9878
9889
  K("div", {
9879
9890
  style: j(l.value)
@@ -9983,12 +9994,12 @@ function Za() {
9983
9994
  const t = [];
9984
9995
  return t.push(x(f("LABEL_FUNC"))), t.push(x(f("LABEL_FLOW"))), t;
9985
9996
  }
9986
- const pe = { name: "APP_COMPUTE_CATEGORY", callback: Za };
9997
+ const de = { name: "APP_COMPUTE_CATEGORY", callback: Za };
9987
9998
  function tc() {
9988
9999
  const t = [];
9989
10000
  return t.push(y("app_debug_trace_v1", [Rt("OBJECT")])), t.push(y("popup_message_v1", [Rt("TEXT")])), t.push(y("open_confirm_dlg_v1")), t.push(y("open_prompt_dlg_v1")), t;
9990
10001
  }
9991
- const de = { name: "APP_MESSAGE_CATEGORY", callback: tc };
10002
+ const he = { name: "APP_MESSAGE_CATEGORY", callback: tc };
9992
10003
  function ec() {
9993
10004
  for (const t of g.app.appList)
9994
10005
  if (t.pages.length > 0)
@@ -9999,7 +10010,7 @@ function nc() {
9999
10010
  const t = [];
10000
10011
  return t.push(y("app_env_is_v1")), ec() && t.push(y("navigate_to_v1")), t;
10001
10012
  }
10002
- const he = { name: "APP_MISC_CATEGORY", callback: nc };
10013
+ const fe = { name: "APP_MISC_CATEGORY", callback: nc };
10003
10014
  function oc() {
10004
10015
  const { activeObject: t, activePage: e } = g.app;
10005
10016
  return !(t.type !== "page" || e.meta.states.length <= 0);
@@ -10019,7 +10030,7 @@ function ac() {
10019
10030
  const t = [];
10020
10031
  return t.push(x(f("LABEL_RESOURCE"))), t.push(y("upload_resource_v1")), t;
10021
10032
  }
10022
- const fe = { name: "APP_RESOURCE_CATEGORY", callback: ac }, xt = C.xml;
10033
+ const me = { name: "APP_RESOURCE_CATEGORY", callback: ac }, xt = C.xml;
10023
10034
  function cc() {
10024
10035
  const t = [];
10025
10036
  {
@@ -10046,11 +10057,11 @@ function cc() {
10046
10057
  const _t = {
10047
10058
  name: "PROCEDURE_CATEGORY",
10048
10059
  callback: cc
10049
- }, ee = C.xml;
10060
+ }, ne = C.xml;
10050
10061
  function rc() {
10051
10062
  const t = jt(), e = [];
10052
10063
  {
10053
- const o = ee.createElement("label");
10064
+ const o = ne.createElement("label");
10054
10065
  o.setAttribute("text", "%{BKY_LABEL_VARIABLE}"), e.push(o);
10055
10066
  }
10056
10067
  {
@@ -10069,16 +10080,16 @@ function rc() {
10069
10080
  return e;
10070
10081
  n.sort(St.compareByName);
10071
10082
  {
10072
- const o = ee.createElement("label");
10083
+ const o = ne.createElement("label");
10073
10084
  o.setAttribute("text", f("LABEL_CREATED")), e.push(o);
10074
10085
  }
10075
10086
  return n.forEach((o) => {
10076
10087
  {
10077
- const i = ee.createElement("block");
10088
+ const i = ne.createElement("block");
10078
10089
  i.setAttribute("type", "variable_get_v1"), i.appendChild(St.generateVariableFieldDom(o)), e.push(i);
10079
10090
  }
10080
10091
  {
10081
- const i = ee.createElement("block");
10092
+ const i = ne.createElement("block");
10082
10093
  i.setAttribute("type", "variable_set_v1"), i.appendChild(St.generateVariableFieldDom(o)), e.push(i);
10083
10094
  }
10084
10095
  }), e;
@@ -10109,30 +10120,30 @@ function uc() {
10109
10120
  }
10110
10121
  return t;
10111
10122
  }
10112
- const me = { name: "COMPUTE_DATA_CATEGORY", callback: uc };
10123
+ const Te = { name: "COMPUTE_DATA_CATEGORY", callback: uc };
10113
10124
  function lc() {
10114
- return Qt("flow").length > 0;
10125
+ return zt("flow").length > 0;
10115
10126
  }
10116
10127
  function _c() {
10117
10128
  const t = [];
10118
10129
  return g.compute.activeObject.type === "flow" && t.push(y("on_flow_state_event_v1")), lc() && console.assert(!0), t;
10119
10130
  }
10120
- const Te = { name: "COMPUTE_FLOW_CATEGORY", callback: _c };
10131
+ const Ee = { name: "COMPUTE_FLOW_CATEGORY", callback: _c };
10121
10132
  function pc() {
10122
- return Qt("func").length > 0;
10133
+ return zt("func").length > 0;
10123
10134
  }
10124
10135
  function dc() {
10125
10136
  const t = [];
10126
10137
  return g.compute.activeObject.type === "func" && (t.push(y("func_entry_v1")), g.compute.activeFunc.outputs.length > 0 && t.push(y("set_func_output_v1")), t.push(y("procedure_return_v1"))), pc() && t.push(y("call_func_internal_v1")), t;
10127
10138
  }
10128
- const Ee = { name: "COMPUTE_FUNC_CATEGORY", callback: dc };
10139
+ const ge = { name: "COMPUTE_FUNC_CATEGORY", callback: dc };
10129
10140
  function hc() {
10130
10141
  const t = [];
10131
10142
  return t.push(
10132
10143
  y("compute_debug_trace_v1", [Rt("OBJECT")])
10133
10144
  ), t;
10134
10145
  }
10135
- const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10146
+ const Ae = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10136
10147
  kind: "category",
10137
10148
  name: "%{BKY_CATEGORY_COLOR}",
10138
10149
  categorystyle: "color_category",
@@ -10848,13 +10859,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10848
10859
  kind: "category",
10849
10860
  name: "%{BKY_CATEGORY_MESSAGE}",
10850
10861
  categorystyle: "misc_category",
10851
- custom: de.name
10862
+ custom: he.name
10852
10863
  },
10853
10864
  {
10854
10865
  kind: "category",
10855
10866
  name: "%{BKY_CATEGORY_MISC}",
10856
10867
  categorystyle: "misc_category",
10857
- custom: he.name
10868
+ custom: fe.name
10858
10869
  },
10859
10870
  Pe,
10860
10871
  be,
@@ -10880,13 +10891,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10880
10891
  kind: "category",
10881
10892
  name: "%{BKY_CATEGORY_RESOURCE}",
10882
10893
  categorystyle: "resource_category",
10883
- custom: fe.name
10894
+ custom: me.name
10884
10895
  },
10885
10896
  {
10886
10897
  kind: "category",
10887
10898
  name: "%{BKY_CATEGORY_COMPUTE}",
10888
10899
  categorystyle: "compute_category",
10889
- custom: pe.name
10900
+ custom: de.name
10890
10901
  }
10891
10902
  ]
10892
10903
  }, mc = {
@@ -10896,25 +10907,25 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10896
10907
  kind: "category",
10897
10908
  name: "%{BKY_CATEGORY_FUNC}",
10898
10909
  categorystyle: "func_category",
10899
- custom: Ee.name
10910
+ custom: ge.name
10900
10911
  },
10901
10912
  {
10902
10913
  kind: "category",
10903
10914
  name: "%{BKY_CATEGORY_FLOW}",
10904
10915
  categorystyle: "flow_category",
10905
- custom: Te.name
10916
+ custom: Ee.name
10906
10917
  },
10907
10918
  {
10908
10919
  kind: "category",
10909
10920
  name: "%{BKY_CATEGORY_DATA}",
10910
10921
  categorystyle: "data_category",
10911
- custom: me.name
10922
+ custom: Te.name
10912
10923
  },
10913
10924
  {
10914
10925
  kind: "category",
10915
10926
  name: "%{BKY_CATEGORY_MISC}",
10916
10927
  categorystyle: "misc_category",
10917
- custom: ge.name
10928
+ custom: Ae.name
10918
10929
  },
10919
10930
  Pe,
10920
10931
  be,
@@ -10943,25 +10954,25 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
10943
10954
  kind: "category",
10944
10955
  name: "%{BKY_CATEGORY_FUNC}",
10945
10956
  categorystyle: "func_category",
10946
- custom: Ee.name
10957
+ custom: ge.name
10947
10958
  },
10948
10959
  {
10949
10960
  kind: "category",
10950
10961
  name: "%{BKY_CATEGORY_FLOW}",
10951
10962
  categorystyle: "flow_category",
10952
- custom: Te.name
10963
+ custom: Ee.name
10953
10964
  },
10954
10965
  {
10955
10966
  kind: "category",
10956
10967
  name: "%{BKY_CATEGORY_DATA}",
10957
10968
  categorystyle: "data_category",
10958
- custom: me.name
10969
+ custom: Te.name
10959
10970
  },
10960
10971
  {
10961
10972
  kind: "category",
10962
10973
  name: "%{BKY_CATEGORY_MISC}",
10963
10974
  categorystyle: "misc_category",
10964
- custom: ge.name
10975
+ custom: Ae.name
10965
10976
  },
10966
10977
  Pe,
10967
10978
  be,
@@ -11027,13 +11038,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
11027
11038
  kind: "category",
11028
11039
  name: "%{BKY_CATEGORY_MESSAGE}",
11029
11040
  categorystyle: "misc_category",
11030
- custom: de.name
11041
+ custom: he.name
11031
11042
  },
11032
11043
  {
11033
11044
  kind: "category",
11034
11045
  name: "%{BKY_CATEGORY_MISC}",
11035
11046
  categorystyle: "misc_category",
11036
- custom: he.name
11047
+ custom: fe.name
11037
11048
  },
11038
11049
  Pe,
11039
11050
  be,
@@ -11059,13 +11070,13 @@ const ge = { name: "COMPUTE_MISC_CATEGORY", callback: hc }, Se = {
11059
11070
  kind: "category",
11060
11071
  name: "%{BKY_CATEGORY_RESOURCE}",
11061
11072
  categorystyle: "resource_category",
11062
- custom: fe.name
11073
+ custom: me.name
11063
11074
  },
11064
11075
  {
11065
11076
  kind: "category",
11066
11077
  name: "%{BKY_CATEGORY_COMPUTE}",
11067
11078
  categorystyle: "compute_category",
11068
- custom: pe.name
11079
+ custom: de.name
11069
11080
  }
11070
11081
  ]
11071
11082
  }, He = {
@@ -11107,7 +11118,7 @@ function Oc(t, e, n) {
11107
11118
  function o({ name: i, callback: a }) {
11108
11119
  t.registerToolboxCategoryCallback(i, () => a(e));
11109
11120
  }
11110
- e === "page" ? n === "v1" && (o(po), o(de), o(he), o(pt), o(_t), o(fe), o(pe)) : e === "comp" ? n === "v1" && (o(_o), o(de), o(he), o(pt), o(_t), o(fe), o(pe)) : e === "func" ? n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(pt), o(_t)) : e === "flow" && n === "v1" && (o(Ee), o(Te), o(me), o(ge), o(pt), o(_t));
11121
+ e === "page" ? n === "v1" && (o(po), o(he), o(fe), o(pt), o(_t), o(me), o(de)) : e === "comp" ? n === "v1" && (o(_o), o(he), o(fe), o(pt), o(_t), o(me), o(de)) : e === "func" ? n === "v1" && (o(ge), o(Ee), o(Te), o(Ae), o(pt), o(_t)) : e === "flow" && n === "v1" && (o(ge), o(Ee), o(Te), o(Ae), o(pt), o(_t));
11111
11122
  }
11112
11123
  function yc(t) {
11113
11124
  const { router: e } = kt;
@@ -11156,8 +11167,8 @@ function vc(t, e) {
11156
11167
  l.push(_);
11157
11168
  r.initData(l);
11158
11169
  for (let _ = 0; _ < l.length; _++) {
11159
- const d = l[_], h = r.getInput("ENTRY" + _);
11160
- o(i[d], h.connection);
11170
+ const p = l[_], h = r.getInput("ENTRY" + _);
11171
+ o(i[p], h.connection);
11161
11172
  }
11162
11173
  } else if (c === "json_array_v1") {
11163
11174
  r.initData(i.length);
@@ -11216,8 +11227,8 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11216
11227
  }),
11217
11228
  emits: /* @__PURE__ */ je(["ready"], ["update:lock", "update:scale"]),
11218
11229
  setup(t, { expose: e, emit: n }) {
11219
- const { backgroundColor2: o } = Xt(), i = $t(t, "lock"), a = $t(t, "scale"), c = n, r = `blocklyEditor${Xe()}`, l = Bt(), _ = Kt("parentContainer"), d = Kt("clean"), h = Kt("navigator"), p = {};
11220
- Da(p);
11230
+ const { backgroundColor2: o } = Xt(), i = $t(t, "lock"), a = $t(t, "scale"), c = n, r = `blocklyEditor${Xe()}`, l = Bt(), _ = Kt("parentContainer"), p = Kt("clean"), h = Kt("navigator"), d = {};
11231
+ Da(d);
11221
11232
  const m = Bt(!0), A = Bt(!1), R = w(() => t.type === "json" ? "tree" : "list"), P = w(() => ({
11222
11233
  width: "100%",
11223
11234
  height: "calc(100% - 48px)"
@@ -11267,17 +11278,17 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11267
11278
  console.assert(!1);
11268
11279
  return;
11269
11280
  }
11270
- Yo(_.value), await In(t.locale), p.workspace = Ac(l.value, t.type, t.version, t.dark), p.workspace.addChangeListener(I.disableOrphans), p.workspace.addChangeListener(mo);
11281
+ Yo(_.value), await In(t.locale), d.workspace = Ac(l.value, t.type, t.version, t.dark), d.workspace.addChangeListener(I.disableOrphans), d.workspace.addChangeListener(mo);
11271
11282
  const N = document.querySelector(`#${r} .blocklyFlyout`);
11272
11283
  new MutationObserver((Ue) => {
11273
- Ue.forEach((Zt) => {
11274
- Zt.type === "attributes" && Zt.attributeName === "style" && (Ut.value = p.workspace.getFlyout().isVisible());
11284
+ Ue.forEach((te) => {
11285
+ te.type === "attributes" && te.attributeName === "style" && (Ut.value = d.workspace.getFlyout().isVisible());
11275
11286
  });
11276
- }).observe(N, { attributes: !0 }), Ut.value = p.workspace.getFlyout().isVisible(), pn(), dn(), await ni(), c("ready");
11287
+ }).observe(N, { attributes: !0 }), Ut.value = d.workspace.getFlyout().isVisible(), pn(), dn(), await ni(), c("ready");
11277
11288
  }), An(() => {
11278
11289
  Ut.value = !1;
11279
11290
  }), Fo(l, () => {
11280
- p.workspace && wo(p.workspace);
11291
+ d.workspace && wo(d.workspace);
11281
11292
  });
11282
11293
  async function mo(N) {
11283
11294
  if (N.type === I.FINISHED_LOADING) {
@@ -11288,7 +11299,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11288
11299
  }
11289
11300
  if (!m.value) {
11290
11301
  if (N.type === I.VIEWPORT_CHANGE) {
11291
- a.value = p.workspace.getScale();
11302
+ a.value = d.workspace.getScale();
11292
11303
  return;
11293
11304
  }
11294
11305
  N.type === I.BLOCK_DRAG && (N.isStart ? A.value = !0 : A.value = !1), setTimeout(() => {
@@ -11297,20 +11308,20 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11297
11308
  }
11298
11309
  }
11299
11310
  const To = (N) => {
11300
- m.value = !0, t.type === "json" ? vc(N, p.workspace) : $.workspaces.load(N, p.workspace);
11301
- }, Eo = () => t.type === "json" ? Cc(p.workspace) : $.workspaces.save(p.workspace), go = () => {
11311
+ m.value = !0, t.type === "json" ? vc(N, d.workspace) : $.workspaces.load(N, d.workspace);
11312
+ }, Eo = () => t.type === "json" ? Cc(d.workspace) : $.workspaces.save(d.workspace), go = () => {
11302
11313
  if (t.type === "json")
11303
11314
  console.assert(!1);
11304
11315
  else
11305
- return s.workspaceToCode(p.workspace);
11306
- }, Ao = () => Ra(p.workspace), pn = () => {
11307
- p.workspace.setIsReadOnly(i.value), p.workspace.isReadOnly() && (Ut.value = !1);
11316
+ return s.workspaceToCode(d.workspace);
11317
+ }, Ao = () => Ra(d.workspace), pn = () => {
11318
+ d.workspace.setIsReadOnly(i.value), d.workspace.isReadOnly() && (Ut.value = !1);
11308
11319
  }, dn = () => {
11309
- p.workspace.setScale(a.value);
11320
+ d.workspace.setScale(a.value);
11310
11321
  }, Io = () => {
11311
- p.workspace.fireChangeListener(new Hn());
11322
+ d.workspace.fireChangeListener(new Hn());
11312
11323
  }, hn = () => {
11313
- d.value?.cleanWorkspace();
11324
+ p.value?.cleanWorkspace();
11314
11325
  }, fn = () => {
11315
11326
  i.value = !i.value;
11316
11327
  }, mn = () => {
@@ -11331,7 +11342,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11331
11342
  La(N ? "dark" : "light");
11332
11343
  }
11333
11344
  ), Vt(Ut, (N) => {
11334
- N || p.workspace?.hideChaff();
11345
+ N || d.workspace?.hideChaff();
11335
11346
  }), Vt(i, () => {
11336
11347
  pn();
11337
11348
  }), Vt(a, () => {
@@ -11344,7 +11355,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11344
11355
  generateReactivity: Ao,
11345
11356
  fireStateChange: Io
11346
11357
  }), (N, Ot) => {
11347
- const Ue = M("v-icon"), Zt = M("x-loading");
11358
+ const Ue = M("v-icon"), te = M("x-loading");
11348
11359
  return S(), tt("div", kc, [
11349
11360
  K("div", {
11350
11361
  id: r,
@@ -11374,7 +11385,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11374
11385
  }, [
11375
11386
  L(Ma, {
11376
11387
  ref_key: "clean",
11377
- ref: d,
11388
+ ref: p,
11378
11389
  lock: i.value
11379
11390
  }, null, 8, ["lock"]),
11380
11391
  L(Ua, {
@@ -11401,7 +11412,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11401
11412
  ref: _,
11402
11413
  style: j(fo.value)
11403
11414
  }, null, 4),
11404
- L(Zt, {
11415
+ L(te, {
11405
11416
  open: m.value,
11406
11417
  "z-index": 99
11407
11418
  }, null, 8, ["open"])
@@ -11437,7 +11448,7 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11437
11448
  }), Sc = { class: "text-subtitle-1" }, Bc = { class: "w-100 h-100 overflow-auto" }, bc = /* @__PURE__ */ rt({
11438
11449
  __name: "index",
11439
11450
  setup(t) {
11440
- const { t: e } = Jt(), { sysBarAvail: n } = Yn(), { backgroundColor0: o, backgroundColor2: i } = Xt(), a = Bt(""), c = w(() => {
11451
+ const { t: e } = qt(), { sysBarAvail: n } = Yn(), { backgroundColor0: o, backgroundColor2: i } = Xt(), a = Bt(""), c = w(() => {
11441
11452
  let _ = 48;
11442
11453
  return n.value && (_ += 24), {
11443
11454
  position: "relative",
@@ -11446,16 +11457,16 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11446
11457
  }), r = (_) => {
11447
11458
  a.value = _.code;
11448
11459
  }, { open: l } = nn("sourceDlg", r);
11449
- return (_, d) => {
11450
- const h = M("v-sheet"), p = M("v-btn"), m = M("v-spacer"), A = M("v-dialog");
11460
+ return (_, p) => {
11461
+ const h = M("v-sheet"), d = M("v-btn"), m = M("v-spacer"), A = M("v-dialog");
11451
11462
  return S(), st(A, {
11452
11463
  modelValue: D(l),
11453
- "onUpdate:modelValue": d[1] || (d[1] = (R) => ne(l) ? l.value = R : null),
11464
+ "onUpdate:modelValue": p[1] || (p[1] = (R) => oe(l) ? l.value = R : null),
11454
11465
  fullscreen: "",
11455
11466
  "no-click-animation": "",
11456
11467
  persistent: "",
11457
11468
  transition: "dialog-bottom-transition",
11458
- onKeydown: d[2] || (d[2] = $n(wt((R) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11469
+ onKeydown: p[2] || (p[2] = $n(wt((R) => l.value = !1, ["stop", "prevent"]), ["esc"]))
11459
11470
  }, {
11460
11471
  default: at(() => [
11461
11472
  L(h, {
@@ -11475,11 +11486,11 @@ const kc = { class: "position-relative w-100 h-100" }, Nc = /* @__PURE__ */ rt({
11475
11486
  height: 48
11476
11487
  }, {
11477
11488
  default: at(() => [
11478
- L(p, {
11489
+ L(d, {
11479
11490
  density: "comfortable",
11480
11491
  icon: "mdi-close",
11481
11492
  variant: "text",
11482
- onClick: d[0] || (d[0] = (R) => l.value = !1)
11493
+ onClick: p[0] || (p[0] = (R) => l.value = !1)
11483
11494
  }),
11484
11495
  K("span", Sc, Ht(D(e)("x-block-lib.dlg.source.title")), 1),
11485
11496
  L(m)