x-block-lib 0.8.70 → 0.8.71

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/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var l=document.createElement("style");l.id="x-block-lib",l.appendChild(document.createTextNode("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-a77ed323]{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(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { E as v, r as Cn, M as Do, s as Mo, a as Uo, X as Kn, u as S, B as I, j as s, O as u, F as O, b as ze, i as k, c as Ot, d as Vo, e as K, f as g, g as xo, h as pt, k as X, p as $t, l as ct, m as kn, n as V, C as $n, N as lt, o as wo, P as Ze, q as Ke, V as Mt, t as Hn, W as Fo, v as Yo, w as Ko, S as $o, x as Ho, y as Go, z as Qt, T as ke, A as Gn, D as Wo, G as jo, H as Wn, I as Xo, J as Jo, K as qo, L as Qo, Q as zo, R as Zo, U as ti, Y as ei } from "./vendor.m705kiju.js";
2
+ import { E as v, r as Cn, M as Do, s as Mo, a as Uo, X as Kn, u as S, B as I, j as s, O as u, F as O, b as ze, i as k, c as Ot, d as Vo, e as K, f as g, g as xo, h as X, k as It, p as $t, l as rt, m as kn, n as V, C as $n, N as ut, o as wo, P as Ze, q as Ke, V as Mt, t as Hn, W as Fo, v as Yo, w as Ko, S as $o, x as Ho, y as Go, z as Qt, T as ke, A as Gn, D as Wo, G as jo, H as Wn, I as Xo, J as Jo, K as qo, L as Qo, Q as zo, R as Zo, U as ti, Y as ei } from "./vendor.k8hjxofe.js";
3
3
  import { globalState as A } from "x-state-lib";
4
4
  import { globalObjects as vt, openConfirmDlg as ni, openPromptDlg as oi, messageWarning as jn, useColor as zt, useSystem as Xn, useViewStack as _n, eventBus as Dt } from "x-essential-lib";
5
- import { pkgs as re, parsePixelStr as ii, parsePercentStr as si, getPropertyTag as Ct, unwrapEventId as Jn, elements as P, unwrapEventKeyOfElementSlot as ai, unwrapPropertyKeyOfElementSlot as qn, unwrapEventKeyOfCustomSlot as ci, unwrapPropertyKeyOfCustomSlot as Qn, makeEventId as x, makeEventKeyOfCustomSlot as $e, makePropertyKeyOfCustomSlot as se, unwrapSlotId as pn, makeEventKeyOfElementSlot as ri, makePropertyKeyOfElementSlot as zn, toEventName as Ne, unwrapMethodId as Zt, unwrapMethodKeyOfCustomSlot as Nn, unwrapMethodKeyOfElementSlot as li, makeMethodId as Lt, makeMethodKeyOfElementSlot as ui, makeMethodKeyOfCustomSlot as _i, toMethodName as Se, unwrapPropertyId as pi, makePropertyId as ft, toPropertyName as Zn, isLocaleOfEventKind as di, isLocaleOfMethodKind as to, makeTriggerId as Bt } from "x-runtime-lib";
6
- import { provide as hi, inject as fi, defineComponent as ht, computed as $, resolveComponent as Y, createBlock as ut, openBlock as U, unref as F, withCtx as _t, createVNode as M, mergeProps as dn, useModel as Wt, ref as Ut, resolveDirective as mi, withDirectives as Ti, createElementBlock as st, normalizeStyle as z, createElementVNode as j, createCommentVNode as mt, toDisplayString as jt, withModifiers as Ht, mergeModels as tn, Fragment as eo, renderList as Ei, useId as en, onUnmounted as gi, useTemplateRef as Gt, withKeys as no, isRef as ae, onMounted as Sn, nextTick as Ai, onBeforeUnmount as Ln, watch as Yt, renderSlot as Ii } from "vue";
5
+ import { pkgs as re, parsePixelStr as ii, parsePercentStr as si, getPropertyTag as Ct, unwrapEventId as Jn, elements as P, unwrapEventKeyOfElementSlot as ai, unwrapPropertyKeyOfElementSlot as qn, unwrapEventKeyOfCustomSlot as ci, unwrapPropertyKeyOfCustomSlot as Qn, makeEventId as x, makeEventKeyOfCustomSlot as $e, makePropertyKeyOfCustomSlot as se, unwrapSlotId as pn, makeEventKeyOfElementSlot as ri, makePropertyKeyOfElementSlot as zn, toEventName as Ne, unwrapMethodId as Zt, unwrapMethodKeyOfCustomSlot as Nn, unwrapMethodKeyOfElementSlot as li, makeMethodId as Lt, makeMethodKeyOfElementSlot as ui, makeMethodKeyOfCustomSlot as _i, toMethodName as Se, unwrapPropertyId as pi, makePropertyId as ht, toPropertyName as Zn, isLocaleOfEventKind as di, isLocaleOfMethodKind as to, makeTriggerId as Bt } from "x-runtime-lib";
6
+ import { provide as hi, inject as fi, defineComponent as dt, computed as $, resolveComponent as Y, createBlock as _t, openBlock as U, unref as F, withCtx as pt, createVNode as M, mergeProps as dn, useModel as Wt, ref as Ut, resolveDirective as mi, withDirectives as Ti, createElementBlock as at, normalizeStyle as z, createElementVNode as j, createCommentVNode as ft, toDisplayString as jt, withModifiers as Ht, mergeModels as tn, Fragment as eo, renderList as Ei, useId as en, onUnmounted as gi, useTemplateRef as Gt, withKeys as no, isRef as ae, onMounted as Sn, nextTick as Ai, onBeforeUnmount as Ln, watch as Yt, renderSlot as Ii } from "vue";
7
7
  import { useDisplay as hn } from "vuetify";
8
8
  import { useI18n as te } from "vue-i18n";
9
9
  var R = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(R || {});
@@ -129,7 +129,7 @@ function W(t, e) {
129
129
  v.enable();
130
130
  }
131
131
  }
132
- function At(t) {
132
+ function gt(t) {
133
133
  const e = `<shadow type="text_v1"><field name="TEXT">${t}</field></shadow>`;
134
134
  return S.xml.textToDom(e);
135
135
  }
@@ -165,13 +165,13 @@ function bi(t) {
165
165
  const e = `<shadow type="color_picker_v1"><field name="COLOR">${t}</field></shadow>`;
166
166
  return S.xml.textToDom(e);
167
167
  }
168
- function dt(t) {
168
+ function st(t) {
169
169
  let e = null;
170
- return t === "string" ? e = At("") : t === "number" ? e = de(0) : t === "boolean" ? e = he(!1) : t === "array" ? e = Ci() : t === "object" ? e = ki() : console.assert(!1), e;
170
+ return t === "string" ? e = gt("") : t === "number" ? e = de(0) : t === "boolean" ? e = he(!1) : t === "array" ? e = Ci() : t === "object" ? e = ki() : console.assert(!1), e;
171
171
  }
172
172
  function Pi(t) {
173
173
  let e = null;
174
- return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = At(t.default) : t.ui === "numInput" ? e = de(t.default) : t.ui === "switch" ? e = he(t.default) : t.ui === "select" ? e = Ni(t.items) : t.ui === "multiTypes" ? e = Si(t.types) : t.ui === "selectComp" ? e = Li() : t.ui === "selectSlot" ? e = Bi() : t.ui === "colorPicker" ? e = bi(t.default ?? "#ff0000") : console.assert(!1), e;
174
+ return t.ui === "dummy" ? console.assert(!0) : t.ui === "strInput" ? e = gt(t.default) : t.ui === "numInput" ? e = de(t.default) : t.ui === "switch" ? e = he(t.default) : t.ui === "select" ? e = Ni(t.items) : t.ui === "multiTypes" ? e = Si(t.types) : t.ui === "selectComp" ? e = Li() : t.ui === "selectSlot" ? e = Bi() : t.ui === "colorPicker" ? e = bi(t.default ?? "#ff0000") : console.assert(!1), e;
175
175
  }
176
176
  function Ri() {
177
177
  const { activeObject: t, activePage: e } = A.app, n = [];
@@ -1107,7 +1107,7 @@ function ot(t) {
1107
1107
  e.push({ key: n, name: o, type: i });
1108
1108
  return e;
1109
1109
  }
1110
- function rt(t) {
1110
+ function lt(t) {
1111
1111
  if (!t)
1112
1112
  return;
1113
1113
  const e = [];
@@ -1140,7 +1140,7 @@ function an(t) {
1140
1140
  kind: "refMethod",
1141
1141
  names: [h],
1142
1142
  inputs: ot(l),
1143
- outputs: rt(d)
1143
+ outputs: lt(d)
1144
1144
  });
1145
1145
  }
1146
1146
  if (et(c.key) && a.comp) {
@@ -1152,7 +1152,7 @@ function an(t) {
1152
1152
  kind: "multipleRefMethod",
1153
1153
  names: [h],
1154
1154
  inputs: ot(l),
1155
- outputs: rt(d)
1155
+ outputs: lt(d)
1156
1156
  });
1157
1157
  }
1158
1158
  if (L(c.key) && e.type === "comp" && n.meta.methods)
@@ -1162,7 +1162,7 @@ function an(t) {
1162
1162
  kind: "customMethod",
1163
1163
  names: [_],
1164
1164
  inputs: ot(h),
1165
- outputs: rt(l)
1165
+ outputs: lt(l)
1166
1166
  });
1167
1167
  if (L(c.key) && e.type === "comp" && a.adaptSlot) {
1168
1168
  const r = pn(a.adaptSlot);
@@ -1208,7 +1208,7 @@ function an(t) {
1208
1208
  kind: "adaptSlotCustomMethod",
1209
1209
  names: [_.name, h.name, l.name],
1210
1210
  inputs: ot(l.inputs),
1211
- outputs: rt(l.outputs)
1211
+ outputs: lt(l.outputs)
1212
1212
  });
1213
1213
  }
1214
1214
  }
@@ -1250,7 +1250,7 @@ function je(t) {
1250
1250
  kind: i,
1251
1251
  names: [l.name],
1252
1252
  inputs: ot(l.inputs),
1253
- outputs: rt(l.outputs)
1253
+ outputs: lt(l.outputs)
1254
1254
  };
1255
1255
  }
1256
1256
  }
@@ -1267,7 +1267,7 @@ function je(t) {
1267
1267
  kind: i,
1268
1268
  names: [l.name],
1269
1269
  inputs: ot(l.inputs),
1270
- outputs: rt(l.outputs)
1270
+ outputs: lt(l.outputs)
1271
1271
  };
1272
1272
  }
1273
1273
  }
@@ -1296,7 +1296,7 @@ function je(t) {
1296
1296
  kind: i,
1297
1297
  names: [d.name, p.name],
1298
1298
  inputs: ot(p.inputs),
1299
- outputs: rt(p.outputs)
1299
+ outputs: lt(p.outputs)
1300
1300
  };
1301
1301
  }
1302
1302
  }
@@ -1334,7 +1334,7 @@ function je(t) {
1334
1334
  kind: i,
1335
1335
  names: [p.name, f.name, T.name],
1336
1336
  inputs: ot(T.inputs),
1337
- outputs: rt(T.outputs)
1337
+ outputs: lt(T.outputs)
1338
1338
  };
1339
1339
  }
1340
1340
  }
@@ -1361,11 +1361,11 @@ function Xt(t) {
1361
1361
  kind: "customMethod",
1362
1362
  names: [r],
1363
1363
  inputs: ot(_),
1364
- outputs: rt(h)
1364
+ outputs: lt(h)
1365
1365
  });
1366
1366
  return o;
1367
1367
  }
1368
- function It(t) {
1368
+ function At(t) {
1369
1369
  if (!t)
1370
1370
  return;
1371
1371
  const { activeObject: e, activeComp: n } = A.app, { kind: o, nodeId: i, methodKey: a } = Zt(t), c = e.nodes.find((_) => _.id === i);
@@ -1386,7 +1386,7 @@ function It(t) {
1386
1386
  kind: o,
1387
1387
  names: [_.name],
1388
1388
  inputs: ot(_.inputs),
1389
- outputs: rt(_.outputs)
1389
+ outputs: lt(_.outputs)
1390
1390
  };
1391
1391
  }
1392
1392
  }
@@ -1398,11 +1398,11 @@ function lo(t) {
1398
1398
  return B(e);
1399
1399
  }
1400
1400
  function cn(t) {
1401
- const e = It(t);
1401
+ const e = At(t);
1402
1402
  return e ? e.outputs : [];
1403
1403
  }
1404
1404
  function Xe(t, e) {
1405
- const n = It(t);
1405
+ const n = At(t);
1406
1406
  if (n)
1407
1407
  return n.outputs?.find((o) => o.key === e);
1408
1408
  }
@@ -1613,7 +1613,7 @@ function Jt(t, e) {
1613
1613
  if (n[h.key] && n[h.key][r])
1614
1614
  for (const { keys: l, names: d, raw: p } of n[h.key][r])
1615
1615
  e === "write" && Be(l, p) || c.push({
1616
- id: ft("elementProperty", t, l),
1616
+ id: ht("elementProperty", t, l),
1617
1617
  kind: "elementProperty",
1618
1618
  names: d,
1619
1619
  meta: {
@@ -1626,7 +1626,7 @@ function Jt(t, e) {
1626
1626
  if (l && l.meta.properties)
1627
1627
  for (const { id: d, name: p, type: f } of l.meta.properties)
1628
1628
  c.push({
1629
- id: ft("refProperty", t, d),
1629
+ id: ht("refProperty", t, d),
1630
1630
  kind: "refProperty",
1631
1631
  names: [p],
1632
1632
  meta: {
@@ -1639,7 +1639,7 @@ function Jt(t, e) {
1639
1639
  if (l && l.meta.properties)
1640
1640
  for (const { id: d, name: p, type: f } of l.meta.properties)
1641
1641
  c.push({
1642
- id: ft("multipleRefProperty", t, d),
1642
+ id: ht("multipleRefProperty", t, d),
1643
1643
  kind: "multipleRefProperty",
1644
1644
  names: [p],
1645
1645
  meta: {
@@ -1652,7 +1652,7 @@ function Jt(t, e) {
1652
1652
  if (l && l.properties)
1653
1653
  for (const { id: d, name: p, type: f } of l.properties)
1654
1654
  c.push({
1655
- id: ft("slotProperty", t, d),
1655
+ id: ht("slotProperty", t, d),
1656
1656
  kind: "slotProperty",
1657
1657
  names: [p],
1658
1658
  meta: {
@@ -1665,7 +1665,7 @@ function Jt(t, e) {
1665
1665
  if (l && l.properties)
1666
1666
  for (const { id: d, name: p, type: f } of l.properties)
1667
1667
  c.push({
1668
- id: ft("multipleSlotProperty", t, d),
1668
+ id: ht("multipleSlotProperty", t, d),
1669
1669
  kind: "multipleSlotProperty",
1670
1670
  names: [p],
1671
1671
  meta: {
@@ -1676,7 +1676,7 @@ function Jt(t, e) {
1676
1676
  if (L(h.key) && o.type === "comp" && i.meta.properties)
1677
1677
  for (const { id: l, name: d, type: p } of i.meta.properties)
1678
1678
  c.push({
1679
- id: ft("customProperty", t, l),
1679
+ id: ht("customProperty", t, l),
1680
1680
  kind: "customProperty",
1681
1681
  names: [d],
1682
1682
  meta: {
@@ -1695,7 +1695,7 @@ function Jt(t, e) {
1695
1695
  if (p && p.properties)
1696
1696
  for (const f of p.properties)
1697
1697
  c.push({
1698
- id: ft(
1698
+ id: ht(
1699
1699
  "adaptSlotElementProperty",
1700
1700
  t,
1701
1701
  zn(
@@ -1720,7 +1720,7 @@ function Jt(t, e) {
1720
1720
  if (p && p.properties)
1721
1721
  for (const f of p.properties)
1722
1722
  c.push({
1723
- id: ft(
1723
+ id: ht(
1724
1724
  "adaptSlotCustomProperty",
1725
1725
  t,
1726
1726
  se(
@@ -2049,7 +2049,7 @@ const ns = {
2049
2049
  t = !0;
2050
2050
  }
2051
2051
  if (t)
2052
- this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField(m("BKY_APP_INSTANCE")), this.event.params && this.event.params.length > 0 ? this.moveInputBefore("INSTANCE", "PARAM0") : this.moveInputBefore("INSTANCE", "HANDLE");
2052
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setCheck("String"), this.event.params && this.event.params.length > 0 ? this.moveInputBefore("INSTANCE", "PARAM0") : this.moveInputBefore("INSTANCE", "HANDLE");
2053
2053
  else if (this.getInput("INSTANCE")) {
2054
2054
  const e = this.getInput("INSTANCE").connection.targetBlock();
2055
2055
  e && e.dispose(), this.removeInput("INSTANCE");
@@ -2059,20 +2059,12 @@ const ns = {
2059
2059
  if (this.isInsertionMarker())
2060
2060
  return;
2061
2061
  const t = [];
2062
- let e = !1;
2063
- switch (this.event.kind) {
2064
- case "multipleRefEvent":
2065
- case "multipleRefPropertyChangeEvent":
2066
- case "multipleSlotEvent":
2067
- case "multipleSlotPropertyChangeEvent":
2068
- e = !0;
2069
- }
2070
- e && t.push(["INSTANCE", "__instance__", "x-runtime-lib.instance", !0]);
2071
- const n = di(this.event.kind);
2062
+ this.getInput("INSTANCE") && t.push(["INSTANCE", "__instance__", "x-runtime-lib.instance", !0]);
2063
+ const e = di(this.event.kind);
2072
2064
  if (this.event.params)
2073
- for (let o = 0; o < this.event.params.length; o++) {
2074
- const { key: i, name: a } = this.event.params[o];
2075
- t.push(["PARAM" + o, `__param$${i}__`, a, n]);
2065
+ for (let n = 0; n < this.event.params.length; n++) {
2066
+ const { key: o, name: i } = this.event.params[n];
2067
+ t.push(["PARAM" + n, `__param$${o}__`, i, e]);
2076
2068
  }
2077
2069
  t.length > 0 && W(this, t);
2078
2070
  },
@@ -2107,14 +2099,7 @@ I.on_app_event_v1 = ns;
2107
2099
  s.forBlock.on_app_event_v1 = function(t) {
2108
2100
  const e = s.quote_, n = t;
2109
2101
  let o = "";
2110
- switch (n.event.kind) {
2111
- case "multipleRefEvent":
2112
- case "multipleRefPropertyChangeEvent":
2113
- case "multipleSlotEvent":
2114
- case "multipleSlotPropertyChangeEvent":
2115
- o += "__instance__";
2116
- }
2117
- if (n.event.params)
2102
+ if (n.getInput("INSTANCE") && (o += "__instance__"), n.event.params)
2118
2103
  for (const { key: c } of n.event.params)
2119
2104
  o && (o += ", "), o += `__param$${c}__`;
2120
2105
  const i = s.statementToCode(n, "HANDLE");
@@ -2223,32 +2208,24 @@ const os = {
2223
2208
  t = !0;
2224
2209
  }
2225
2210
  if (t)
2226
- this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField(m("BKY_APP_INSTANCE")), this.event.params && this.event.params.length > 0 && this.moveInputBefore("INSTANCE", "PARAM0");
2211
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField(m("BKY_APP_INSTANCE")).setCheck("String"), this.event.params && this.event.params.length > 0 && this.moveInputBefore("INSTANCE", "PARAM0");
2227
2212
  else if (this.getInput("INSTANCE")) {
2228
2213
  const e = this.getInput("INSTANCE").connection.targetBlock();
2229
2214
  e && e.dispose(), this.removeInput("INSTANCE");
2230
2215
  }
2231
2216
  },
2232
2217
  updateShadows_: function() {
2233
- if (this.isInsertionMarker())
2234
- return;
2235
- let t = !1;
2236
- switch (this.event.kind) {
2237
- case "multipleRefEvent":
2238
- case "multipleRefPropertyChangeEvent":
2239
- case "multipleSlotEvent":
2240
- case "multipleSlotPropertyChangeEvent":
2241
- t = !0;
2242
- }
2243
- if (t) {
2244
- const e = dt("string");
2245
- this.getInput("INSTANCE").setShadowDom(e);
2218
+ if (!this.isInsertionMarker()) {
2219
+ if (this.getInput("INSTANCE")) {
2220
+ const t = st("string");
2221
+ this.getInput("INSTANCE").setShadowDom(t);
2222
+ }
2223
+ if (this.event.params)
2224
+ for (let t = 0; t < this.event.params.length; t++) {
2225
+ const e = this.event.params[t], n = st(e.type);
2226
+ this.getInput("PARAM" + t).connection.setShadowDom(n);
2227
+ }
2246
2228
  }
2247
- if (this.event.params)
2248
- for (let e = 0; e < this.event.params.length; e++) {
2249
- const n = this.event.params[e], o = dt(n.type);
2250
- this.getInput("PARAM" + e)?.connection?.setShadowDom(o);
2251
- }
2252
2229
  },
2253
2230
  checkWarning_: function() {
2254
2231
  const t = J(this.node.id);
@@ -2281,13 +2258,7 @@ I.trigger_app_event_v1 = os;
2281
2258
  s.forBlock.trigger_app_event_v1 = function(t) {
2282
2259
  const e = s.quote_, n = t;
2283
2260
  let o = "''";
2284
- switch (n.event.kind) {
2285
- case "multipleRefEvent":
2286
- case "multipleRefPropertyChangeEvent":
2287
- case "multipleSlotEvent":
2288
- case "multipleSlotPropertyChangeEvent":
2289
- o = s.valueToCode(n, "INSTANCE", u.NONE) || "''";
2290
- }
2261
+ n.getInput("INSTANCE") && (o = s.valueToCode(n, "INSTANCE", u.NONE) || "''");
2291
2262
  let i = "";
2292
2263
  if (n.event.params)
2293
2264
  for (let c = 0; c < n.event.params.length; c++) {
@@ -2364,9 +2335,9 @@ const is = {
2364
2335
  updateShadow_: function() {
2365
2336
  if (this.isInsertionMarker())
2366
2337
  return;
2367
- const t = At("title");
2338
+ const t = gt("title");
2368
2339
  this.getInput("TITLE").connection.setShadowDom(t);
2369
- const e = At("text");
2340
+ const e = gt("text");
2370
2341
  this.getInput("TEXT").connection.setShadowDom(e);
2371
2342
  },
2372
2343
  ensureBlocks_: function() {
@@ -2401,11 +2372,11 @@ const ss = {
2401
2372
  updateShadow_: function() {
2402
2373
  if (this.isInsertionMarker())
2403
2374
  return;
2404
- const t = At("title");
2375
+ const t = gt("title");
2405
2376
  this.getInput("TITLE").connection.setShadowDom(t);
2406
- const e = At("label");
2377
+ const e = gt("label");
2407
2378
  this.getInput("LABEL").connection.setShadowDom(e);
2408
- const n = At("");
2379
+ const n = gt("");
2409
2380
  this.getInput("VALUE").connection.setShadowDom(n);
2410
2381
  },
2411
2382
  ensureBlocks_: function() {
@@ -2576,7 +2547,7 @@ const as = {
2576
2547
  t = !0;
2577
2548
  }
2578
2549
  if (t) {
2579
- const e = dt("string");
2550
+ const e = st("string");
2580
2551
  this.getInput("INSTANCE").setShadowDom(e);
2581
2552
  }
2582
2553
  if (this.method.inputs)
@@ -2584,7 +2555,7 @@ const as = {
2584
2555
  const n = this.method.inputs[e];
2585
2556
  if (!n.type)
2586
2557
  continue;
2587
- const o = dt(n.type);
2558
+ const o = st(n.type);
2588
2559
  this.getInput("INPUT" + e).setShadowDom(o);
2589
2560
  }
2590
2561
  },
@@ -2764,14 +2735,14 @@ const cs = {
2764
2735
  const n = this.node.key !== e.key;
2765
2736
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2766
2737
  const o = this.getField("METHOD");
2767
- if (o.getOptions(!1), n || !It(this.method.id)) {
2738
+ if (o.getOptions(!1), n || !At(this.method.id)) {
2768
2739
  const i = Xt(this.node.id)?.[0];
2769
2740
  o.setValue(i?.id ?? "");
2770
2741
  }
2771
2742
  o.setValue(o.getValue());
2772
2743
  },
2773
2744
  onMethodChange_: function(t) {
2774
- const e = It(t);
2745
+ const e = At(t);
2775
2746
  e ? (this.method.id = e.id, this.method.kind = e.kind, this.method.names = e.names, this.method.inputs = e.inputs) : (this.method.id = "", this.method.kind = "", this.method.names = [], this.method.inputs = []), this.updateShape_(), setTimeout(() => {
2776
2747
  this.ensureBlocks_();
2777
2748
  }, 0);
@@ -2807,7 +2778,7 @@ const cs = {
2807
2778
  return;
2808
2779
  }
2809
2780
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2810
- const e = It(this.method.id);
2781
+ const e = At(this.method.id);
2811
2782
  if (!e) {
2812
2783
  this.setWarningText(m("WARN_METHOD_NOT_FOUND"));
2813
2784
  return;
@@ -2922,14 +2893,14 @@ const rs = {
2922
2893
  const n = this.node.key !== e.key;
2923
2894
  this.node.id = e.id, this.node.key = e.key, this.node.alias = e.alias;
2924
2895
  const o = this.getField("METHOD");
2925
- if (o.getOptions(!1), n || !It(this.method.id)) {
2896
+ if (o.getOptions(!1), n || !At(this.method.id)) {
2926
2897
  const i = Xt(this.node.id)?.[0];
2927
2898
  o.setValue(i?.id ?? "");
2928
2899
  }
2929
2900
  o.setValue(o.getValue());
2930
2901
  },
2931
2902
  onMethodChange_: function(t) {
2932
- const e = It(t);
2903
+ const e = At(t);
2933
2904
  if (!e) {
2934
2905
  console.assert(!1);
2935
2906
  return;
@@ -2958,7 +2929,7 @@ const rs = {
2958
2929
  updateShadows_: function() {
2959
2930
  if (this.isInsertionMarker())
2960
2931
  return;
2961
- const t = dt(this.output.type);
2932
+ const t = st(this.output.type);
2962
2933
  this.getInput("VALUE").connection.setShadowDom(t);
2963
2934
  },
2964
2935
  checkWarning_: function() {
@@ -2972,7 +2943,7 @@ const rs = {
2972
2943
  return;
2973
2944
  }
2974
2945
  t.alias !== this.node.alias && (this.node.alias = t.alias);
2975
- const e = It(this.method.id);
2946
+ const e = At(this.method.id);
2976
2947
  if (!e) {
2977
2948
  this.setWarningText(m("WARN_METHOD_NOT_FOUND"));
2978
2949
  return;
@@ -3268,7 +3239,7 @@ const ps = {
3268
3239
  }, this.appendDummyInput().appendField("%{BKY_APP_V1_GET_APP_PROPERTY_TITLE}").appendField(new O(() => this.genNodeOpts_()), "NODE").appendField(
3269
3240
  new O(() => this.genPropertyOpts_()),
3270
3241
  "PROPERTY"
3271
- ).appendField("%{BKY_APP_INSTANCE}", "INSTANCE0").appendField(new pt(), "INSTANCE1"), this.setOutput(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_PROPERTY_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_PROPERTY_HELPURL}"), this.initData_(), this.updateShape_();
3242
+ ), this.setOutput(!0, null), this.setInputsInline(!0), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_GET_APP_PROPERTY_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_GET_APP_PROPERTY_HELPURL}"), this.initData_(), this.updateShape_();
3272
3243
  },
3273
3244
  initData_: function() {
3274
3245
  if (this.node.id)
@@ -3330,7 +3301,7 @@ const ps = {
3330
3301
  },
3331
3302
  onPropChange_: function(t) {
3332
3303
  const e = bt(t);
3333
- e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []), this.updateShape_();
3304
+ e ? (this.property.id = e.id, this.property.kind = e.kind, this.property.names = e.names) : (this.property.id = "", this.property.kind = "", this.property.names = []), this.updateShape_(), this.updateShadow_();
3334
3305
  },
3335
3306
  updateShape_: function() {
3336
3307
  let t = !1;
@@ -3339,7 +3310,22 @@ const ps = {
3339
3310
  case "multipleSlotProperty":
3340
3311
  t = !0;
3341
3312
  }
3342
- this.getField("INSTANCE0")?.setVisible(t), this.getField("INSTANCE1")?.setVisible(t);
3313
+ if (t)
3314
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField("%{BKY_APP_INSTANCE}").setCheck("String");
3315
+ else if (this.getInput("INSTANCE")) {
3316
+ const e = this.getInput("INSTANCE").connection.targetBlock();
3317
+ e && e.dispose(), this.removeInput("INSTANCE");
3318
+ }
3319
+ },
3320
+ updateShadow_: function() {
3321
+ if (this.isInsertionMarker())
3322
+ return;
3323
+ const t = this.getInput("INSTANCE");
3324
+ if (t) {
3325
+ t.setShadowDom(null);
3326
+ const e = t.connection?.targetBlock();
3327
+ e && e.dispose(), t.setShadowDom(st("string"));
3328
+ }
3343
3329
  },
3344
3330
  checkWarning_: function() {
3345
3331
  const t = J(this.node.id);
@@ -3367,13 +3353,8 @@ const ps = {
3367
3353
  I.get_app_property_v1 = ps;
3368
3354
  s.forBlock.get_app_property_v1 = function(t) {
3369
3355
  const e = s.quote_, n = t;
3370
- let o = "";
3371
- switch (n.property.kind) {
3372
- case "multipleRefProperty":
3373
- case "multipleSlotProperty":
3374
- o = n.getFieldValue("INSTANCE1");
3375
- }
3376
- return [`__getPropertyV1__(${e(n.property.id)}, ${e(o)})`, u.ATOMIC];
3356
+ let o = "''";
3357
+ return n.getInput("INSTANCE") && (o = s.valueToCode(n, "INSTANCE", u.NONE) || "''"), [`__getPropertyV1__(${e(n.property.id)}, ${o})`, u.ATOMIC];
3377
3358
  };
3378
3359
  const ds = {
3379
3360
  init: function() {
@@ -3388,7 +3369,7 @@ const ds = {
3388
3369
  }, this.appendValueInput("VALUE").appendField("%{BKY_APP_V1_SET_APP_PROPERTY_TITLE}").appendField(new O(() => this.genNodeOpts_()), "NODE").appendField(
3389
3370
  new O(() => this.genPropertyOpts_()),
3390
3371
  "PROPERTY"
3391
- ).appendField("%{BKY_APP_INSTANCE}", "INSTANCE0").appendField(new pt(), "INSTANCE1"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_PROPERTY_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_PROPERTY_HELPURL}"), this.initData_(), this.updateShape_(), this.isInFlyout && this.updateShadow_();
3372
+ ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setInputsInline(!0), this.setStyle("property_blocks"), this.setTooltip("%{BKY_APP_V1_SET_APP_PROPERTY_TOOLTIP}"), this.setHelpUrl("%{BKY_APP_V1_SET_APP_PROPERTY_HELPURL}"), this.initData_(), this.updateShape_(), this.isInFlyout && this.updateShadow_();
3392
3373
  },
3393
3374
  initData_: function() {
3394
3375
  if (this.node.id)
@@ -3459,7 +3440,12 @@ const ds = {
3459
3440
  case "multipleSlotProperty":
3460
3441
  t = !0;
3461
3442
  }
3462
- this.getField("INSTANCE0")?.setVisible(t), this.getField("INSTANCE1")?.setVisible(t);
3443
+ if (t)
3444
+ this.getInput("INSTANCE") || this.appendValueInput("INSTANCE").setAlign(k.Align.RIGHT).appendField("%{BKY_APP_INSTANCE}").setCheck("String");
3445
+ else if (this.getInput("INSTANCE")) {
3446
+ const e = this.getInput("INSTANCE").connection.targetBlock();
3447
+ e && e.dispose(), this.removeInput("INSTANCE");
3448
+ }
3463
3449
  },
3464
3450
  updateShadow_: function() {
3465
3451
  if (this.isInsertionMarker())
@@ -3467,14 +3453,17 @@ const ds = {
3467
3453
  const t = bt(this.property.id);
3468
3454
  if (!t)
3469
3455
  return;
3470
- this.getInput("VALUE").setShadowDom(null);
3471
- const e = this.getInput("VALUE").connection.targetBlock();
3472
- if (e && e.dispose(), t.meta.element) {
3473
- const n = vi(t.meta.raw), o = Pi(t.meta.raw);
3474
- this.getInput("VALUE").setCheck(n).setShadowDom(o);
3475
- } else {
3476
- const n = kt(t.meta.raw.type), o = dt(t.meta.raw.type);
3477
- this.getInput("VALUE").setCheck(n).setShadowDom(o);
3456
+ const e = this.getInput("INSTANCE");
3457
+ if (e) {
3458
+ e.setShadowDom(null);
3459
+ const o = e.connection?.targetBlock();
3460
+ o && o.dispose(), e.setShadowDom(st("string"));
3461
+ }
3462
+ const n = this.getInput("VALUE");
3463
+ if (n) {
3464
+ n.setShadowDom(null);
3465
+ const o = n.connection?.targetBlock();
3466
+ o && o.dispose(), t.meta.element ? n.setCheck(vi(t.meta.raw)).setShadowDom(Pi(t.meta.raw)) : n.setCheck(kt(t.meta.raw.type)).setShadowDom(st(t.meta.raw.type));
3478
3467
  }
3479
3468
  },
3480
3469
  checkWarning_: function() {
@@ -3503,14 +3492,14 @@ const ds = {
3503
3492
  I.set_app_property_v1 = ds;
3504
3493
  s.forBlock.set_app_property_v1 = function(t) {
3505
3494
  const e = s.quote_, n = t;
3506
- let o = "";
3495
+ let o = "''";
3507
3496
  switch (n.property.kind) {
3508
3497
  case "multipleRefProperty":
3509
3498
  case "multipleSlotProperty":
3510
- o = n.getFieldValue("INSTANCE1");
3499
+ o = s.valueToCode(n, "INSTANCE", u.NONE) || "''";
3511
3500
  }
3512
3501
  const i = s.valueToCode(n, "VALUE", u.NONE);
3513
- return `__setPropertyV1__(${e(n.property.id)}, ${i}, ${e(o)});
3502
+ return `__setPropertyV1__(${e(n.property.id)}, ${i}, ${o});
3514
3503
  `;
3515
3504
  };
3516
3505
  const hs = {
@@ -3625,7 +3614,7 @@ const fs = {
3625
3614
  this.getInput("VALUE").setShadowDom(null);
3626
3615
  const t = this.getInput("VALUE").connection.targetBlock();
3627
3616
  t && t.dispose();
3628
- const e = kt(this.state.type), n = dt(this.state.type);
3617
+ const e = kt(this.state.type), n = st(this.state.type);
3629
3618
  this.getInput("VALUE").setCheck(e).setShadowDom(n);
3630
3619
  },
3631
3620
  checkWarning_: function() {
@@ -4641,7 +4630,7 @@ const ys = {
4641
4630
  updateShadow_: function() {
4642
4631
  if (!this.isInsertionMarker())
4643
4632
  for (let t = 0; t < this.func.inputs.length; t++) {
4644
- const e = this.func.inputs[t], n = dt(e.type);
4633
+ const e = this.func.inputs[t], n = st(e.type);
4645
4634
  this.getInput("INPUT" + t).setShadowDom(n);
4646
4635
  }
4647
4636
  },
@@ -4815,7 +4804,7 @@ const Os = {
4815
4804
  updateShadow_: function() {
4816
4805
  if (!this.isInsertionMarker())
4817
4806
  for (let t = 0; t < this.func.inputs.length; t++) {
4818
- const e = this.func.inputs[t], n = dt(e.type);
4807
+ const e = this.func.inputs[t], n = st(e.type);
4819
4808
  this.getInput("INPUT" + t).setShadowDom(n);
4820
4809
  }
4821
4810
  },
@@ -5008,7 +4997,7 @@ const Cs = {
5008
4997
  updateShadows_: function() {
5009
4998
  if (this.isInsertionMarker())
5010
4999
  return;
5011
- const t = dt(this.output.type);
5000
+ const t = st(this.output.type);
5012
5001
  this.getInput("VALUE").setShadowDom(t);
5013
5002
  },
5014
5003
  checkWarning_: function() {
@@ -5096,7 +5085,7 @@ g([
5096
5085
  s.forBlock.compute_env_is_v1 = function(t) {
5097
5086
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, u.ATOMIC];
5098
5087
  };
5099
- function at() {
5088
+ function ct() {
5100
5089
  const t = [];
5101
5090
  return A.data.spaces.forEach((e) => {
5102
5091
  e.tables.length > 0 && t.push(e);
@@ -5108,7 +5097,7 @@ function yt(t) {
5108
5097
  }
5109
5098
  function be() {
5110
5099
  const t = [];
5111
- return at().forEach(({ id: n, name: o }) => {
5100
+ return ct().forEach(({ id: n, name: o }) => {
5112
5101
  t.push([o, n]);
5113
5102
  }), B(t);
5114
5103
  }
@@ -5153,7 +5142,7 @@ function Ns(t) {
5153
5142
  if (e.targetBlock())
5154
5143
  return;
5155
5144
  let n, o;
5156
- const i = at()?.[0];
5145
+ const i = ct()?.[0];
5157
5146
  if (i) {
5158
5147
  const r = q(i.id)?.[0];
5159
5148
  if (r) {
@@ -5284,7 +5273,7 @@ const Bs = {
5284
5273
  initData_: function() {
5285
5274
  if (this.space.id)
5286
5275
  return;
5287
- const t = at()?.[0];
5276
+ const t = ct()?.[0];
5288
5277
  if (!t)
5289
5278
  return;
5290
5279
  this.space.id = t.id, this.space.name = t.name;
@@ -5518,7 +5507,7 @@ function Ds(t) {
5518
5507
  const e = t.getInput("TABLE").connection;
5519
5508
  if (e.targetBlock())
5520
5509
  return;
5521
- const n = at()?.[0], o = q(n?.id ?? "")?.[0], i = {
5510
+ const n = ct()?.[0], o = q(n?.id ?? "")?.[0], i = {
5522
5511
  type: "select_table_v1",
5523
5512
  extraState: {
5524
5513
  space: {
@@ -5537,7 +5526,7 @@ function Ms(t) {
5537
5526
  const e = t.getInput("CONDITION").connection;
5538
5527
  if (e.targetBlock())
5539
5528
  return;
5540
- const n = at()?.[0], o = q(n?.id ?? "")?.[0], i = Te(n?.id, o?.id)?.[0], a = {
5529
+ const n = ct()?.[0], o = q(n?.id ?? "")?.[0], i = Te(n?.id, o?.id)?.[0], a = {
5541
5530
  type: "cond_atomic_v1",
5542
5531
  extraState: {
5543
5532
  space: {
@@ -5647,7 +5636,7 @@ function xs(t) {
5647
5636
  if (e.targetBlock())
5648
5637
  return;
5649
5638
  let n, o;
5650
- const i = at()?.[0];
5639
+ const i = ct()?.[0];
5651
5640
  if (i) {
5652
5641
  const r = q(i.id)?.[0];
5653
5642
  if (r) {
@@ -5894,7 +5883,7 @@ const Gs = {
5894
5883
  initData_: function() {
5895
5884
  if (this.space.id)
5896
5885
  return;
5897
- const t = at()?.[0];
5886
+ const t = ct()?.[0];
5898
5887
  if (!t)
5899
5888
  return;
5900
5889
  this.space.id = t.id, this.space.name = t.name;
@@ -6041,7 +6030,7 @@ const Gs = {
6041
6030
  for (let t = 0; t < this.table.columns.length; t++) {
6042
6031
  const e = this.table.columns[t], n = new O(
6043
6032
  () => this.genColumnOpts_()
6044
- ), o = new pt("");
6033
+ ), o = new It("");
6045
6034
  this.appendDummyInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
6046
6035
  }
6047
6036
  },
@@ -6053,7 +6042,7 @@ const Gs = {
6053
6042
  continue;
6054
6043
  const e = new O(
6055
6044
  () => this.genColumnOpts_()
6056
- ), n = new pt("");
6045
+ ), n = new It("");
6057
6046
  this.appendDummyInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
6058
6047
  const o = this.table.columns[0];
6059
6048
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
@@ -6109,7 +6098,7 @@ const Ws = {
6109
6098
  initData_: function() {
6110
6099
  if (this.space.id)
6111
6100
  return;
6112
- const t = at()?.[0];
6101
+ const t = ct()?.[0];
6113
6102
  if (!t)
6114
6103
  return;
6115
6104
  this.space.id = t.id, this.space.name = t.name;
@@ -6290,7 +6279,7 @@ const qs = {
6290
6279
  initData_: function() {
6291
6280
  if (this.space.id)
6292
6281
  return;
6293
- const t = at()?.[0];
6282
+ const t = ct()?.[0];
6294
6283
  if (!t)
6295
6284
  return;
6296
6285
  this.space.id = t.id, this.space.name = t.name;
@@ -6526,7 +6515,7 @@ function Qs(t) {
6526
6515
  if (e.targetBlock())
6527
6516
  return;
6528
6517
  let n, o;
6529
- const i = at()?.[0];
6518
+ const i = ct()?.[0];
6530
6519
  if (i) {
6531
6520
  const r = q(i.id)?.[0];
6532
6521
  if (r) {
@@ -6631,7 +6620,7 @@ ${i}}
6631
6620
  const ea = S.xml, na = {
6632
6621
  init: function() {
6633
6622
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" [ "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6634
- new ct(Vt, 20, 20, void 0, () => {
6623
+ new rt(Vt, 20, 20, void 0, () => {
6635
6624
  this.isInFlyout || this.addEntry_();
6636
6625
  })
6637
6626
  ), this.appendDummyInput("CLOSE_BRACKET").appendField(" ] "), this.setInputsInline(!1), this.setOutput(!0, "JsonArray"), this.setColour(350), this.setTooltip(""), this.setHelpUrl("");
@@ -6650,11 +6639,11 @@ const ea = S.xml, na = {
6650
6639
  for (let t = 0; t < this.length; t++) {
6651
6640
  const e = "ENTRY" + t, n = this.appendValueInput(e);
6652
6641
  n.appendField(
6653
- new ct(Vt, 20, 20, void 0, () => {
6642
+ new rt(Vt, 20, 20, void 0, () => {
6654
6643
  this.isInFlyout || this.addEntry_(n);
6655
6644
  })
6656
6645
  ), n.appendField(new kn(String(t))), n.appendField(
6657
- new ct(le, 20, 20, void 0, () => {
6646
+ new rt(le, 20, 20, void 0, () => {
6658
6647
  this.isInFlyout || this.removeEntry_(n);
6659
6648
  })
6660
6649
  ), this.moveInputBefore(e, "ADD");
@@ -6669,11 +6658,11 @@ const ea = S.xml, na = {
6669
6658
  }
6670
6659
  const n = this.appendValueInput("ENTRY" + e);
6671
6660
  n.appendField(
6672
- new ct(Vt, 20, 20, void 0, () => {
6661
+ new rt(Vt, 20, 20, void 0, () => {
6673
6662
  this.isInFlyout || this.addEntry_(n);
6674
6663
  })
6675
6664
  ), n.appendField(new kn(String(e))), n.appendField(
6676
- new ct(le, 20, 20, void 0, () => {
6665
+ new rt(le, 20, 20, void 0, () => {
6677
6666
  this.isInFlyout || this.removeEntry_(n);
6678
6667
  })
6679
6668
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -6705,7 +6694,7 @@ I.json_boolean_v1 = oa;
6705
6694
  const Vn = S.xml, ia = {
6706
6695
  init: function() {
6707
6696
  this.length = 0, this.appendDummyInput("OPEN_BRACKET").appendField(" { "), this.appendDummyInput("ADD").setAlign(k.Align.CENTRE).appendField(
6708
- new ct(Vt, 20, 20, void 0, () => {
6697
+ new rt(Vt, 20, 20, void 0, () => {
6709
6698
  this.isInFlyout || this.addEntry_();
6710
6699
  })
6711
6700
  ), this.appendDummyInput("CLOSE_BRACHET").appendField(" } "), this.setInputsInline(!1), this.setOutput(!0, "JsonMap"), this.setColour(120), this.setTooltip(""), this.setHelpUrl("");
@@ -6733,11 +6722,11 @@ const Vn = S.xml, ia = {
6733
6722
  for (let e = 0; e < t.length; e++) {
6734
6723
  const n = t[e], o = "ENTRY" + e, i = this.appendValueInput(o);
6735
6724
  i.appendField(
6736
- new ct(Vt, 20, 20, void 0, () => {
6725
+ new rt(Vt, 20, 20, void 0, () => {
6737
6726
  this.isInFlyout || this.addEntry_(i);
6738
6727
  })
6739
- ), i.appendField(new pt(n), "KEY" + e), i.appendField(
6740
- new ct(le, 20, 20, void 0, () => {
6728
+ ), i.appendField(new It(n), "KEY" + e), i.appendField(
6729
+ new rt(le, 20, 20, void 0, () => {
6741
6730
  this.isInFlyout || this.removeEntry_(i);
6742
6731
  })
6743
6732
  ), this.moveInputBefore(o, "ADD");
@@ -6750,11 +6739,11 @@ const Vn = S.xml, ia = {
6750
6739
  this.getField("KEY" + o).name = "KEY" + (o + 1), this.getInput("ENTRY" + o).name = "ENTRY" + (o + 1);
6751
6740
  const n = this.appendValueInput("ENTRY" + e);
6752
6741
  n.appendField(
6753
- new ct(Vt, 20, 20, void 0, () => {
6742
+ new rt(Vt, 20, 20, void 0, () => {
6754
6743
  this.isInFlyout || this.addEntry_(n);
6755
6744
  })
6756
- ), n.appendField(new pt("key"), "KEY" + e), n.appendField(
6757
- new ct(le, 20, 20, void 0, () => {
6745
+ ), n.appendField(new It("key"), "KEY" + e), n.appendField(
6746
+ new rt(le, 20, 20, void 0, () => {
6758
6747
  this.isInFlyout || this.removeEntry_(n);
6759
6748
  })
6760
6749
  ), e === this.length ? this.moveInputBefore("ENTRY" + e, "ADD") : this.moveInputBefore("ENTRY" + e, "ENTRY" + (e + 1)), this.length++;
@@ -6783,7 +6772,7 @@ const aa = {
6783
6772
  I.json_root_v1 = aa;
6784
6773
  const ca = {
6785
6774
  init: function() {
6786
- this.appendDummyInput().appendField('"').appendField(new pt(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
6775
+ this.appendDummyInput().appendField('"').appendField(new It(""), "VALUE").appendField('"'), this.setOutput(!0, "JsonString"), this.setColour(160);
6787
6776
  }
6788
6777
  };
6789
6778
  I.json_string_v1 = ca;
@@ -7710,18 +7699,18 @@ ${c}}
7710
7699
  let r = "", _ = o;
7711
7700
  !o.match(/^\w+$/) && !S.string.isNumber(o) && (_ = s.nameDB_.getDistinctName(
7712
7701
  `${n}_from`,
7713
- lt.NameType.VARIABLE
7702
+ ut.NameType.VARIABLE
7714
7703
  ), r += `var ${_} = ${o};
7715
7704
  `);
7716
7705
  let h = i;
7717
7706
  !i.match(/^\w+$/) && !S.string.isNumber(i) && (h = s.nameDB_.getDistinctName(
7718
7707
  `${n}_to`,
7719
- lt.NameType.VARIABLE
7708
+ ut.NameType.VARIABLE
7720
7709
  ), r += `var ${h} = ${i};
7721
7710
  `);
7722
7711
  const l = s.nameDB_.getDistinctName(
7723
7712
  `${n}_by`,
7724
- lt.NameType.VARIABLE
7713
+ ut.NameType.VARIABLE
7725
7714
  );
7726
7715
  return r += `var ${l} = `, S.string.isNumber(a) ? r += `${Math.abs(Number(a))};
7727
7716
  ` : r += `Math.abs(${a});
@@ -7780,12 +7769,12 @@ s.forBlock.for_each_v1 = function(t) {
7780
7769
  let a = "", c = o;
7781
7770
  o.match(/^\w+$/) || (c = s.nameDB_.getDistinctName(
7782
7771
  `${n}_list`,
7783
- lt.NameType.VARIABLE
7772
+ ut.NameType.VARIABLE
7784
7773
  ), a += `var ${c} = ${o};
7785
7774
  `);
7786
7775
  const r = s.nameDB_.getDistinctName(
7787
7776
  `${n}_index`,
7788
- lt.NameType.VARIABLE
7777
+ ut.NameType.VARIABLE
7789
7778
  );
7790
7779
  return a += `for (var ${r} in ${c}) {
7791
7780
  ${e}${n} = ${c}[${r}];
@@ -7827,12 +7816,12 @@ s.forBlock.repeat_v1 = function(t) {
7827
7816
  let o = "";
7828
7817
  const i = s.nameDB_.getDistinctName(
7829
7818
  "count",
7830
- lt.NameType.VARIABLE
7819
+ ut.NameType.VARIABLE
7831
7820
  );
7832
7821
  let a = e;
7833
7822
  return !e.match(/^\w+$/) && !S.string.isNumber(e) && (a = s.nameDB_.getDistinctName(
7834
7823
  "repeat_end",
7835
- lt.NameType.VARIABLE
7824
+ ut.NameType.VARIABLE
7836
7825
  ), o += `var ${a} = ${e};
7837
7826
  `), o += `for (var ${i} = 0; ${i} < ${a}; ${i}++) {
7838
7827
  ${n}}
@@ -8611,7 +8600,7 @@ const Oa = {
8611
8600
  },
8612
8601
  updateShape_: function() {
8613
8602
  for (let t = 0; t < this.itemCount_; t++)
8614
- this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(new pt("key"), "KEY" + t);
8603
+ this.getInput("ADD" + t) || this.appendValueInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(new It("key"), "KEY" + t);
8615
8604
  for (let t = this.itemCount_; this.getInput("ADD" + t); t++)
8616
8605
  this.removeInput("ADD" + t);
8617
8606
  }
@@ -8866,7 +8855,7 @@ const xn = S.xml, va = {
8866
8855
  I.procedure_def_container_v1 = va;
8867
8856
  const Ca = {
8868
8857
  init: function() {
8869
- const t = new pt(Ze.DEFAULT_ARG);
8858
+ const t = new It(Ze.DEFAULT_ARG);
8870
8859
  t.setValidator(this.validator_), this.appendDummyInput().appendField("%{BKY_PROCEDURE_V1_DEF_ITEM_TITLE}").appendField(t, "NAME"), this.setPreviousStatement(!0), this.setNextStatement(!0), this.setStyle("procedure_blocks"), this.contextMenu = !1;
8871
8860
  },
8872
8861
  validator_: function(t) {
@@ -8890,7 +8879,7 @@ I.procedure_def_item_v1 = Ca;
8890
8879
  const ka = {
8891
8880
  init: function() {
8892
8881
  this.withReturn = !1, this.args = [];
8893
- const t = new pt(
8882
+ const t = new It(
8894
8883
  Ze.findLegalName("", this)
8895
8884
  );
8896
8885
  t.setValidator(Ze.rename), t.setSpellcheck(!1), this.appendDummyInput("DUMMY").appendField(t, "NAME"), this.appendStatementInput("HANDLE"), this.setMutator(
@@ -9224,7 +9213,7 @@ const Da = {
9224
9213
  updateShadow_: function() {
9225
9214
  if (this.isInsertionMarker())
9226
9215
  return;
9227
- const t = At("");
9216
+ const t = gt("");
9228
9217
  this.getInput("NAME")?.setShadowDom(t);
9229
9218
  },
9230
9219
  ensureBlocks_: function() {
@@ -9303,7 +9292,7 @@ g([
9303
9292
  s.forBlock.text_append_v1 = function(t) {
9304
9293
  const e = s.nameDB_?.getName(
9305
9294
  t.getFieldValue("VAR"),
9306
- lt.NameType.VARIABLE
9295
+ ut.NameType.VARIABLE
9307
9296
  ), n = s.valueToCode(t, "TEXT", u.NONE) || "''";
9308
9297
  return `${e} += ${ce(n)};
9309
9298
  `;
@@ -9905,7 +9894,7 @@ g([
9905
9894
  s.forBlock.variable_get_v1 = function(t) {
9906
9895
  return [s.nameDB_.getName(
9907
9896
  t.getFieldValue("VAR"),
9908
- lt.NameType.VARIABLE
9897
+ ut.NameType.VARIABLE
9909
9898
  ), u.ATOMIC];
9910
9899
  };
9911
9900
  g([
@@ -9934,7 +9923,7 @@ g([
9934
9923
  s.forBlock.variable_set_v1 = function(t) {
9935
9924
  const e = s.nameDB_.getName(
9936
9925
  t.getFieldValue("VAR"),
9937
- lt.NameType.VARIABLE
9926
+ ut.NameType.VARIABLE
9938
9927
  ), n = s.valueToCode(t, "VALUE", u.ASSIGNMENT) || "0";
9939
9928
  return `${e} = ${n};
9940
9929
  `;
@@ -10264,7 +10253,7 @@ function qa(t) {
10264
10253
  }
10265
10254
  }
10266
10255
  const un = ["get_app_property_v1", "get_app_state_v1"];
10267
- function Tt(t, e) {
10256
+ function mt(t, e) {
10268
10257
  return t.find((o) => o === e) !== void 0 ? !1 : (t.push(e), !0);
10269
10258
  }
10270
10259
  function Qa(t) {
@@ -10280,7 +10269,7 @@ function za(t) {
10280
10269
  for (const n of t)
10281
10270
  if (n.type === "get_app_property_v1") {
10282
10271
  const o = n;
10283
- Tt(
10272
+ mt(
10284
10273
  e,
10285
10274
  Bt({
10286
10275
  type: "elementProperty",
@@ -10288,7 +10277,7 @@ function za(t) {
10288
10277
  propertyKeys: o.property.key
10289
10278
  })
10290
10279
  );
10291
- } else n.type === "get_app_state_v1" ? Tt(e, Bt({ type: "state", stateId: n.state.id })) : console.assert(!1);
10280
+ } else n.type === "get_app_state_v1" ? mt(e, Bt({ type: "state", stateId: n.state.id })) : console.assert(!1);
10292
10281
  return e;
10293
10282
  }
10294
10283
  function Za(t) {
@@ -10318,12 +10307,12 @@ function tc(t) {
10318
10307
  } : (i.property.kind === "elementSlotProperty" || i.property.kind === "customSlotProperty") && (a = {
10319
10308
  type: "customSlotProperty",
10320
10309
  propertyId: i.property.key
10321
- }), !a || !Tt(n, Bt(a)))
10310
+ }), !a || !mt(n, Bt(a)))
10322
10311
  continue;
10323
10312
  e.push(a);
10324
10313
  } else if (o.type === "get_app_state_v1") {
10325
10314
  const a = { type: "state", stateId: o.state.id };
10326
- if (!Tt(n, Bt(a)))
10315
+ if (!mt(n, Bt(a)))
10327
10316
  continue;
10328
10317
  e.push(a);
10329
10318
  } else if (o.type === "object_get_v1") {
@@ -10348,7 +10337,7 @@ function tc(t) {
10348
10337
  type: "customSlotProperty",
10349
10338
  propertyId: c.property.key,
10350
10339
  subKeys: a
10351
- }), !r || !Tt(n, Bt(r)))
10340
+ }), !r || !mt(n, Bt(r)))
10352
10341
  continue;
10353
10342
  e.push(r);
10354
10343
  } else if (i.type === "get_app_state_v1") {
@@ -10357,7 +10346,7 @@ function tc(t) {
10357
10346
  stateId: i.state.id,
10358
10347
  subKeys: a
10359
10348
  };
10360
- if (!Tt(n, Bt(r)))
10349
+ if (!mt(n, Bt(r)))
10361
10350
  continue;
10362
10351
  e.push(r);
10363
10352
  } else
@@ -10380,13 +10369,13 @@ function ec(t) {
10380
10369
  if (o.type === "watch_effect_v1") {
10381
10370
  const i = Qa(o), a = za(i);
10382
10371
  for (const c of a)
10383
- e.watchEffect[c] || (e.watchEffect[c] = []), Tt(e.watchEffect[c], o.id);
10372
+ e.watchEffect[c] || (e.watchEffect[c] = []), mt(e.watchEffect[c], o.id);
10384
10373
  } else if (o.type === "app_bind_v1") {
10385
10374
  const i = Za(o), a = tc(i);
10386
10375
  e.bind.sets[o.id] = a;
10387
10376
  for (const c of a) {
10388
10377
  const r = Bt(c);
10389
- e.bind.triggers[r] || (e.bind.triggers[r] = []), Tt(e.bind.triggers[r], o.id);
10378
+ e.bind.triggers[r] || (e.bind.triggers[r] = []), mt(e.bind.triggers[r], o.id);
10390
10379
  }
10391
10380
  }
10392
10381
  return e;
@@ -10398,7 +10387,7 @@ function nc(t) {
10398
10387
  function En() {
10399
10388
  return fi(yo);
10400
10389
  }
10401
- const oc = /* @__PURE__ */ ht({
10390
+ const oc = /* @__PURE__ */ dt({
10402
10391
  __name: "index",
10403
10392
  props: {
10404
10393
  lock: { type: Boolean }
@@ -10419,11 +10408,11 @@ const oc = /* @__PURE__ */ ht({
10419
10408
  };
10420
10409
  return e({ cleanWorkspace: r }), (h, l) => {
10421
10410
  const d = Y("v-btn"), p = Y("v-tooltip");
10422
- return U(), ut(p, {
10411
+ return U(), _t(p, {
10423
10412
  disabled: c.value,
10424
10413
  text: F(n)("x-block-lib.tip.hotkeyCtrlQ")
10425
10414
  }, {
10426
- activator: _t(({ props: f }) => [
10415
+ activator: pt(({ props: f }) => [
10427
10416
  M(d, dn(f, {
10428
10417
  density: "comfortable",
10429
10418
  icon: "mdi-broom",
@@ -10435,7 +10424,7 @@ const oc = /* @__PURE__ */ ht({
10435
10424
  }, 8, ["disabled", "text"]);
10436
10425
  };
10437
10426
  }
10438
- }), ic = /* @__PURE__ */ ht({
10427
+ }), ic = /* @__PURE__ */ dt({
10439
10428
  __name: "index",
10440
10429
  props: {
10441
10430
  modelValue: { type: Boolean, required: !0 },
@@ -10446,11 +10435,11 @@ const oc = /* @__PURE__ */ ht({
10446
10435
  const { t: e } = te(), n = hn(), o = Wt(t, "modelValue"), i = $(() => n.smAndDown.value);
10447
10436
  return (a, c) => {
10448
10437
  const r = Y("v-btn"), _ = Y("v-tooltip");
10449
- return U(), ut(_, {
10438
+ return U(), _t(_, {
10450
10439
  disabled: i.value,
10451
10440
  text: F(e)("x-block-lib.tip.hotkeyCtrlW")
10452
10441
  }, {
10453
- activator: _t(({ props: h }) => [
10442
+ activator: pt(({ props: h }) => [
10454
10443
  M(r, dn(h, {
10455
10444
  density: "comfortable",
10456
10445
  icon: o.value ? "mdi-lock" : "mdi-lock-open",
@@ -10466,7 +10455,7 @@ const oc = /* @__PURE__ */ ht({
10466
10455
  key: 0,
10467
10456
  class: "text-caption text-grey text-truncate ml-6",
10468
10457
  style: { maxWidth: "340px" }
10469
- }, rc = /* @__PURE__ */ ht({
10458
+ }, rc = /* @__PURE__ */ dt({
10470
10459
  __name: "item",
10471
10460
  props: {
10472
10461
  id: {},
@@ -10495,7 +10484,7 @@ const oc = /* @__PURE__ */ ht({
10495
10484
  }));
10496
10485
  return (l, d) => {
10497
10486
  const p = Y("v-spacer"), f = Y("v-icon"), T = mi("ripple");
10498
- return Ti((U(), st("div", {
10487
+ return Ti((U(), at("div", {
10499
10488
  class: "d-flex align-center cursor-pointer",
10500
10489
  style: z(_.value),
10501
10490
  onClick: d[1] || (d[1] = (E) => c("x-click", a.id)),
@@ -10504,7 +10493,7 @@ const oc = /* @__PURE__ */ ht({
10504
10493
  }, [
10505
10494
  j("div", sc, [
10506
10495
  j("span", ac, jt(a.title), 1),
10507
- a.desc ? (U(), st("span", cc, jt(a.desc), 1)) : mt("", !0)
10496
+ a.desc ? (U(), at("span", cc, jt(a.desc), 1)) : ft("", !0)
10508
10497
  ]),
10509
10498
  M(p),
10510
10499
  M(f, {
@@ -10524,7 +10513,7 @@ const oc = /* @__PURE__ */ ht({
10524
10513
  }), lc = {
10525
10514
  key: 1,
10526
10515
  class: "text-caption text-grey"
10527
- }, uc = /* @__PURE__ */ ht({
10516
+ }, uc = /* @__PURE__ */ dt({
10528
10517
  __name: "index",
10529
10518
  props: /* @__PURE__ */ tn({
10530
10519
  lock: { type: Boolean }
@@ -10608,7 +10597,7 @@ const oc = /* @__PURE__ */ ht({
10608
10597
  const f = i.workspace.getBlockById(p);
10609
10598
  Wn.setSelected(f), Tn(p), o.value = !1;
10610
10599
  };
10611
- return (p, f) => a.value.length > 0 ? (U(), ut(F(Wo), {
10600
+ return (p, f) => a.value.length > 0 ? (U(), _t(F(Wo), {
10612
10601
  key: 0,
10613
10602
  modelValue: a.value,
10614
10603
  "onUpdate:modelValue": f[0] || (f[0] = (T) => a.value = T),
@@ -10619,8 +10608,8 @@ const oc = /* @__PURE__ */ ht({
10619
10608
  onMove: h,
10620
10609
  onStart: _
10621
10610
  }, {
10622
- default: _t(() => [
10623
- (U(!0), st(eo, null, Ei(a.value, (T) => (U(), ut(rc, {
10611
+ default: pt(() => [
10612
+ (U(!0), at(eo, null, Ei(a.value, (T) => (U(), _t(rc, {
10624
10613
  id: T.id,
10625
10614
  key: T.id,
10626
10615
  desc: T.desc,
@@ -10630,14 +10619,14 @@ const oc = /* @__PURE__ */ ht({
10630
10619
  }, null, 8, ["id", "desc", "select", "title"]))), 128))
10631
10620
  ]),
10632
10621
  _: 1
10633
- }, 8, ["modelValue"])) : (U(), st("span", lc, jt(F(n)("x-block-lib.noOption")), 1));
10622
+ }, 8, ["modelValue"])) : (U(), at("span", lc, jt(F(n)("x-block-lib.noOption")), 1));
10634
10623
  }
10635
10624
  }), _c = (t, e) => {
10636
10625
  const n = t.__vccOpts || t;
10637
10626
  for (const [o, i] of e)
10638
10627
  n[o] = i;
10639
10628
  return n;
10640
- }, pc = /* @__PURE__ */ _c(uc, [["__scopeId", "data-v-a77ed323"]]), dc = /* @__PURE__ */ ht({
10629
+ }, pc = /* @__PURE__ */ _c(uc, [["__scopeId", "data-v-a77ed323"]]), dc = /* @__PURE__ */ dt({
10641
10630
  __name: "index",
10642
10631
  props: {
10643
10632
  modelValue: { type: Boolean, required: !0 },
@@ -10661,11 +10650,11 @@ const oc = /* @__PURE__ */ ht({
10661
10650
  const _ = r.getBlockById(c);
10662
10651
  Wn.setSelected(_), Tn(c), n.value = !1;
10663
10652
  };
10664
- return (c, r) => (U(), st("div", {
10653
+ return (c, r) => (U(), at("div", {
10665
10654
  onClick: r[0] || (r[0] = (_) => a(""))
10666
10655
  }, "blockTree"));
10667
10656
  }
10668
- }), hc = { class: "text-subtitle-1" }, fc = /* @__PURE__ */ ht({
10657
+ }), hc = { class: "text-subtitle-1" }, fc = /* @__PURE__ */ dt({
10669
10658
  __name: "index",
10670
10659
  props: {
10671
10660
  type: {},
@@ -10696,7 +10685,7 @@ const oc = /* @__PURE__ */ ht({
10696
10685
  t.type === "list" ? d.value?.update() : t.type === "tree" && p.value?.update();
10697
10686
  } }), (T, E) => {
10698
10687
  const y = Y("v-sheet"), N = Y("v-btn"), D = Y("v-spacer"), Rt = Y("v-dialog"), Fe = Y("v-tooltip");
10699
- return U(), st(eo, null, [
10688
+ return U(), at(eo, null, [
10700
10689
  M(Rt, {
10701
10690
  modelValue: F(l),
10702
10691
  "onUpdate:modelValue": E[5] || (E[5] = (Q) => ae(l) ? l.value = Q : null),
@@ -10707,7 +10696,7 @@ const oc = /* @__PURE__ */ ht({
10707
10696
  transition: "scroll-x-reverse-transition",
10708
10697
  onKeydown: E[6] || (E[6] = no(Ht((Q) => l.value = !1, ["stop", "prevent"]), ["esc"]))
10709
10698
  }, {
10710
- default: _t(() => [
10699
+ default: pt(() => [
10711
10700
  j("div", {
10712
10701
  class: "w-100 h-100 d-flex flex-row-reverse",
10713
10702
  onClick: E[3] || (E[3] = Ht((Q) => l.value = !1, ["self"])),
@@ -10717,17 +10706,17 @@ const oc = /* @__PURE__ */ ht({
10717
10706
  class: "elevation-2",
10718
10707
  style: z(r.value)
10719
10708
  }, [
10720
- F(i) ? (U(), ut(y, {
10709
+ F(i) ? (U(), _t(y, {
10721
10710
  key: 0,
10722
10711
  color: "transparent",
10723
10712
  height: 24
10724
- })) : mt("", !0),
10713
+ })) : ft("", !0),
10725
10714
  M(y, {
10726
10715
  class: "d-flex align-center px-2",
10727
10716
  color: "transparent",
10728
10717
  height: 48
10729
10718
  }, {
10730
- default: _t(() => [
10719
+ default: pt(() => [
10731
10720
  M(N, {
10732
10721
  density: "comfortable",
10733
10722
  icon: "mdi-close",
@@ -10743,20 +10732,20 @@ const oc = /* @__PURE__ */ ht({
10743
10732
  class: "overflow-y-auto",
10744
10733
  style: z(_.value)
10745
10734
  }, [
10746
- t.type === "list" ? (U(), ut(pc, {
10735
+ t.type === "list" ? (U(), _t(pc, {
10747
10736
  key: 0,
10748
10737
  ref_key: "blockList",
10749
10738
  ref: d,
10750
10739
  modelValue: F(l),
10751
10740
  "onUpdate:modelValue": E[1] || (E[1] = (Q) => ae(l) ? l.value = Q : null),
10752
10741
  lock: t.lock
10753
- }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (U(), ut(dc, {
10742
+ }, null, 8, ["modelValue", "lock"])) : t.type === "tree" ? (U(), _t(dc, {
10754
10743
  key: 1,
10755
10744
  ref_key: "blockTree",
10756
10745
  ref: p,
10757
10746
  modelValue: F(l),
10758
10747
  "onUpdate:modelValue": E[2] || (E[2] = (Q) => ae(l) ? l.value = Q : null)
10759
- }, null, 8, ["modelValue"])) : mt("", !0),
10748
+ }, null, 8, ["modelValue"])) : ft("", !0),
10760
10749
  j("div", {
10761
10750
  style: z(h.value)
10762
10751
  }, null, 4)
@@ -10770,7 +10759,7 @@ const oc = /* @__PURE__ */ ht({
10770
10759
  disabled: c.value,
10771
10760
  text: F(n)("x-block-lib.tip.hotkeyCtrlE")
10772
10761
  }, {
10773
- activator: _t(({ props: Q }) => [
10762
+ activator: pt(({ props: Q }) => [
10774
10763
  M(N, dn(Q, {
10775
10764
  density: "comfortable",
10776
10765
  icon: "mdi-navigation-variant",
@@ -10928,7 +10917,7 @@ function Lc() {
10928
10917
  }
10929
10918
  return t;
10930
10919
  }
10931
- const Et = {
10920
+ const Tt = {
10932
10921
  name: "PROCEDURE_CATEGORY",
10933
10922
  callback: Lc
10934
10923
  }, ie = S.xml;
@@ -10968,13 +10957,13 @@ function Bc() {
10968
10957
  }
10969
10958
  }), e;
10970
10959
  }
10971
- const gt = {
10960
+ const Et = {
10972
10961
  name: "VARIABLE_CATEGORY",
10973
10962
  callback: Bc
10974
10963
  };
10975
10964
  function bc() {
10976
10965
  const t = [];
10977
- if (at().length > 0)
10966
+ if (ct().length > 0)
10978
10967
  t.push(H(m("LABEL_OPERATION"))), t.push(C("add_data_v1")), t.push(C("delete_data_v1")), t.push(C("update_data_v1")), t.push(C("query_data_v1")), t.push(C("transaction_v1")), t.push(
10979
10968
  C("interrupt_transaction_v1", [wt("VALUE")])
10980
10969
  ), t.push(H(m("LABEL_CONDITION"))), t.push(C("cond_logic_v1")), t.push(C("cond_atomic_v1", [wt("VALUE")])), t.push(H(m("LABEL_QUERY_EXTRA"))), t.push(
@@ -11753,13 +11742,13 @@ const Ce = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, Re = {
11753
11742
  kind: "category",
11754
11743
  name: "%{BKY_CATEGORY_VARIABLE}",
11755
11744
  categorystyle: "variable_category",
11756
- custom: gt.name
11745
+ custom: Et.name
11757
11746
  },
11758
11747
  {
11759
11748
  kind: "category",
11760
11749
  name: "%{BKY_CATEGORY_PROCEDURE}",
11761
11750
  categorystyle: "procedure_category",
11762
- custom: Et.name
11751
+ custom: Tt.name
11763
11752
  },
11764
11753
  {
11765
11754
  kind: "category",
@@ -11812,13 +11801,13 @@ const Ce = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, Re = {
11812
11801
  kind: "category",
11813
11802
  name: "%{BKY_CATEGORY_VARIABLE}",
11814
11803
  categorystyle: "variable_category",
11815
- custom: gt.name
11804
+ custom: Et.name
11816
11805
  },
11817
11806
  {
11818
11807
  kind: "category",
11819
11808
  name: "%{BKY_CATEGORY_PROCEDURE}",
11820
11809
  categorystyle: "procedure_category",
11821
- custom: Et.name
11810
+ custom: Tt.name
11822
11811
  }
11823
11812
  ]
11824
11813
  }, wc = {
@@ -11859,13 +11848,13 @@ const Ce = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, Re = {
11859
11848
  kind: "category",
11860
11849
  name: "%{BKY_CATEGORY_VARIABLE}",
11861
11850
  categorystyle: "variable_category",
11862
- custom: gt.name
11851
+ custom: Et.name
11863
11852
  },
11864
11853
  {
11865
11854
  kind: "category",
11866
11855
  name: "%{BKY_CATEGORY_PROCEDURE}",
11867
11856
  categorystyle: "procedure_category",
11868
- custom: Et.name
11857
+ custom: Tt.name
11869
11858
  }
11870
11859
  ]
11871
11860
  }, Fc = {
@@ -11932,13 +11921,13 @@ const Ce = { name: "COMPUTE_MISC_CATEGORY", callback: Uc }, Re = {
11932
11921
  kind: "category",
11933
11922
  name: "%{BKY_CATEGORY_VARIABLE}",
11934
11923
  categorystyle: "variable_category",
11935
- custom: gt.name
11924
+ custom: Et.name
11936
11925
  },
11937
11926
  {
11938
11927
  kind: "category",
11939
11928
  name: "%{BKY_CATEGORY_PROCEDURE}",
11940
11929
  categorystyle: "procedure_category",
11941
- custom: Et.name
11930
+ custom: Tt.name
11942
11931
  },
11943
11932
  {
11944
11933
  kind: "category",
@@ -11996,7 +11985,7 @@ function Hc(t, e, n) {
11996
11985
  function o({ name: i, callback: a }) {
11997
11986
  t.registerToolboxCategoryCallback(i, () => a(e));
11998
11987
  }
11999
- e === "page" ? n === "v1" && (o(Co), o(ge), o(Ae), o(gt), o(Et), o(Ie), o(Ee)) : e === "comp" ? n === "v1" && (o(vo), o(ge), o(Ae), o(gt), o(Et), o(Ie), o(Ee)) : e === "func" ? n === "v1" && (o(ve), o(Oe), o(ye), o(Ce), o(gt), o(Et)) : e === "flow" && n === "v1" && (o(ve), o(Oe), o(ye), o(Ce), o(gt), o(Et));
11988
+ e === "page" ? n === "v1" && (o(Co), o(ge), o(Ae), o(Et), o(Tt), o(Ie), o(Ee)) : e === "comp" ? n === "v1" && (o(vo), o(ge), o(Ae), o(Et), o(Tt), o(Ie), o(Ee)) : e === "func" ? n === "v1" && (o(ve), o(Oe), o(ye), o(Ce), o(Et), o(Tt)) : e === "flow" && n === "v1" && (o(ve), o(Oe), o(ye), o(Ce), o(Et), o(Tt));
12000
11989
  }
12001
11990
  function Gc(t) {
12002
11991
  const { router: e } = vt;
@@ -12090,7 +12079,7 @@ function jc(t) {
12090
12079
  if (o.type === "json_root_v1")
12091
12080
  return e(o);
12092
12081
  }
12093
- const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12082
+ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ dt({
12094
12083
  __name: "index",
12095
12084
  props: /* @__PURE__ */ tn({
12096
12085
  type: {},
@@ -12234,7 +12223,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12234
12223
  fireStateChange: Po
12235
12224
  }), (b, St) => {
12236
12225
  const Ye = Y("v-icon"), oe = Y("x-loading");
12237
- return U(), st("div", Xc, [
12226
+ return U(), at("div", Xc, [
12238
12227
  j("div", {
12239
12228
  id: r,
12240
12229
  ref_key: "blocklyDiv",
@@ -12246,7 +12235,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12246
12235
  }, [
12247
12236
  Ii(b.$slots, "bottom")
12248
12237
  ], 4),
12249
- T.value ? (U(), st("div", {
12238
+ T.value ? (U(), at("div", {
12250
12239
  key: 0,
12251
12240
  class: "d-flex flex-column justify-center align-center",
12252
12241
  style: z(D.value)
@@ -12255,8 +12244,8 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12255
12244
  icon: "mdi-delete",
12256
12245
  size: "x-large"
12257
12246
  })
12258
- ], 4)) : mt("", !0),
12259
- f.value ? mt("", !0) : (U(), st("div", {
12247
+ ], 4)) : ft("", !0),
12248
+ f.value ? ft("", !0) : (U(), at("div", {
12260
12249
  key: 1,
12261
12250
  class: "d-flex align-end ga-3 pt-3 pr-3",
12262
12251
  style: z(Rt.value)
@@ -12277,14 +12266,14 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12277
12266
  type: E.value
12278
12267
  }, null, 8, ["lock", "type"])
12279
12268
  ], 4)),
12280
- i.value ? (U(), st("div", {
12269
+ i.value ? (U(), at("div", {
12281
12270
  key: 2,
12282
12271
  style: z(Q.value)
12283
- }, null, 4)) : mt("", !0),
12284
- i.value ? (U(), st("div", {
12272
+ }, null, 4)) : ft("", !0),
12273
+ i.value ? (U(), at("div", {
12285
12274
  key: 3,
12286
12275
  style: z(Fe.value)
12287
- }, null, 4)) : mt("", !0),
12276
+ }, null, 4)) : ft("", !0),
12288
12277
  j("div", {
12289
12278
  ref_key: "parentContainer",
12290
12279
  ref: h,
@@ -12297,7 +12286,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12297
12286
  ]);
12298
12287
  };
12299
12288
  }
12300
- }), qc = /* @__PURE__ */ ht({
12289
+ }), qc = /* @__PURE__ */ dt({
12301
12290
  __name: "index",
12302
12291
  props: {
12303
12292
  code: {}
@@ -12308,12 +12297,12 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12308
12297
  const n = ei.component, { backgroundColor2: o } = zt();
12309
12298
  return (i, a) => {
12310
12299
  const c = Y("v-sheet");
12311
- return U(), ut(c, {
12300
+ return U(), _t(c, {
12312
12301
  color: F(o),
12313
12302
  height: "100%",
12314
12303
  width: "100%"
12315
12304
  }, {
12316
- default: _t(() => [
12305
+ default: pt(() => [
12317
12306
  M(F(n), {
12318
12307
  code: e.code,
12319
12308
  language: "js"
@@ -12323,7 +12312,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12323
12312
  }, 8, ["color"]);
12324
12313
  };
12325
12314
  }
12326
- }), Qc = { class: "text-subtitle-1" }, zc = { class: "w-100 h-100 overflow-auto" }, Zc = /* @__PURE__ */ ht({
12315
+ }), Qc = { class: "text-subtitle-1" }, zc = { class: "w-100 h-100 overflow-auto" }, Zc = /* @__PURE__ */ dt({
12327
12316
  __name: "index",
12328
12317
  setup(t) {
12329
12318
  const { t: e } = te(), { sysBarAvail: n } = Xn(), { backgroundColor0: o, backgroundColor2: i } = zt(), a = Ut(""), c = $(() => {
@@ -12337,7 +12326,7 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12337
12326
  }, { open: _ } = _n("sourceDlg", r);
12338
12327
  return (h, l) => {
12339
12328
  const d = Y("v-sheet"), p = Y("v-btn"), f = Y("v-spacer"), T = Y("v-dialog");
12340
- return U(), ut(T, {
12329
+ return U(), _t(T, {
12341
12330
  modelValue: F(_),
12342
12331
  "onUpdate:modelValue": l[1] || (l[1] = (E) => ae(_) ? _.value = E : null),
12343
12332
  fullscreen: "",
@@ -12346,24 +12335,24 @@ const Xc = { class: "position-relative w-100 h-100" }, Jc = /* @__PURE__ */ ht({
12346
12335
  transition: "dialog-bottom-transition",
12347
12336
  onKeydown: l[2] || (l[2] = no(Ht((E) => _.value = !1, ["stop", "prevent"]), ["esc"]))
12348
12337
  }, {
12349
- default: _t(() => [
12338
+ default: pt(() => [
12350
12339
  M(d, {
12351
12340
  color: F(o),
12352
12341
  height: "100%",
12353
12342
  width: "100%"
12354
12343
  }, {
12355
- default: _t(() => [
12356
- F(n) ? (U(), ut(d, {
12344
+ default: pt(() => [
12345
+ F(n) ? (U(), _t(d, {
12357
12346
  key: 0,
12358
12347
  color: F(i),
12359
12348
  height: 24
12360
- }, null, 8, ["color"])) : mt("", !0),
12349
+ }, null, 8, ["color"])) : ft("", !0),
12361
12350
  M(d, {
12362
12351
  class: "d-flex align-center px-2",
12363
12352
  color: F(i),
12364
12353
  height: 48
12365
12354
  }, {
12366
- default: _t(() => [
12355
+ default: pt(() => [
12367
12356
  M(p, {
12368
12357
  density: "comfortable",
12369
12358
  icon: "mdi-close",