golden-logic-ui 1.0.44 → 1.0.46

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.
@@ -1,4 +1,4 @@
1
- import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ze, inject as ve, watch as W, effectScope as Ke, computed as z, reactive as xe, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as L, renderList as $, normalizeStyle as We, renderSlot as A, createTextVNode as w, vShow as B, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as G, vModelDynamic as Xe, provide as Ye, pushScopeId as Je, popScopeId as Qe, vModelCheckbox as et, nextTick as tt, toHandlers as te, TransitionGroup as rt, unref as st, resolveDirective as we, markRaw as nt } from "vue";
1
+ import { openBlock as d, createElementBlock as u, createElementVNode as s, createCommentVNode as g, createStaticVNode as Ze, inject as ye, watch as W, effectScope as Ke, computed as z, reactive as ve, resolveComponent as X, Fragment as v, createVNode as H, normalizeClass as p, toDisplayString as h, withModifiers as M, withDirectives as P, vModelText as L, renderList as $, normalizeStyle as We, renderSlot as A, createTextVNode as w, vShow as B, createBlock as Z, resolveDynamicComponent as se, mergeProps as K, withCtx as Y, ref as O, onMounted as G, vModelDynamic as Xe, provide as Ye, pushScopeId as Je, popScopeId as Qe, vModelCheckbox as et, nextTick as tt, toHandlers as te, TransitionGroup as rt, unref as st, resolveDirective as xe, markRaw as nt } from "vue";
2
2
  const D = (e, t) => {
3
3
  const r = e.__vccOpts || e;
4
4
  for (const [n, o] of t)
@@ -52,9 +52,9 @@ function ht(e, t, r, n, o, a) {
52
52
  }
53
53
  const ie = /* @__PURE__ */ D(at, [["render", ht]]);
54
54
  function gt() {
55
- return ke().__VUE_DEVTOOLS_GLOBAL_HOOK__;
55
+ return we().__VUE_DEVTOOLS_GLOBAL_HOOK__;
56
56
  }
57
- function ke() {
57
+ function we() {
58
58
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
59
59
  }
60
60
  const mt = typeof Proxy == "function", pt = "devtools-plugin:setup", _t = "plugin:settings:set";
@@ -129,7 +129,7 @@ class vt {
129
129
  }
130
130
  }
131
131
  function xt(e, t) {
132
- const r = e, n = ke(), o = gt(), a = mt && r.enableEarlyProxy;
132
+ const r = e, n = we(), o = gt(), a = mt && r.enableEarlyProxy;
133
133
  if (o && (n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a))
134
134
  o.emit(pt, e, t);
135
135
  else {
@@ -146,16 +146,16 @@ function xt(e, t) {
146
146
  * (c) 2022 Evan You
147
147
  * @license MIT
148
148
  */
149
- var $e = "store";
150
- function Ce(e) {
151
- return e === void 0 && (e = null), ve(e !== null ? e : $e);
149
+ var ke = "store";
150
+ function $e(e) {
151
+ return e === void 0 && (e = null), ye(e !== null ? e : ke);
152
152
  }
153
153
  function F(e, t) {
154
154
  Object.keys(e).forEach(function(r) {
155
155
  return t(e[r], r);
156
156
  });
157
157
  }
158
- function Se(e) {
158
+ function Ce(e) {
159
159
  return e !== null && typeof e == "object";
160
160
  }
161
161
  function wt(e) {
@@ -170,13 +170,13 @@ function kt(e, t) {
170
170
  return e(t);
171
171
  };
172
172
  }
173
- function Oe(e, t, r) {
173
+ function Se(e, t, r) {
174
174
  return t.indexOf(e) < 0 && (r && r.prepend ? t.unshift(e) : t.push(e)), function() {
175
175
  var n = t.indexOf(e);
176
176
  n > -1 && t.splice(n, 1);
177
177
  };
178
178
  }
179
- function De(e, t) {
179
+ function Oe(e, t) {
180
180
  e._actions = /* @__PURE__ */ Object.create(null), e._mutations = /* @__PURE__ */ Object.create(null), e._wrappedGetters = /* @__PURE__ */ Object.create(null), e._modulesNamespaceMap = /* @__PURE__ */ Object.create(null);
181
181
  var r = e.state;
182
182
  Q(e, r, [], e._modules.root, !0), le(e, r, t);
@@ -197,7 +197,7 @@ function le(e, t, r) {
197
197
  // for local getters
198
198
  });
199
199
  });
200
- }), e._state = xe({
200
+ }), e._state = ve({
201
201
  data: t
202
202
  }), e._scope = c, e.strict && Dt(e), n && r && e._withCommit(function() {
203
203
  n.data = null;
@@ -218,8 +218,8 @@ function Q(e, t, r, n, o) {
218
218
  var x = l + y;
219
219
  Ct(e, x, m, f);
220
220
  }), n.forEachAction(function(m, y) {
221
- var x = m.root ? y : l + y, S = m.handler || m;
222
- St(e, x, S, f);
221
+ var x = m.root ? y : l + y, C = m.handler || m;
222
+ St(e, x, C, f);
223
223
  }), n.forEachGetter(function(m, y) {
224
224
  var x = l + y;
225
225
  Ot(e, x, m, f);
@@ -251,7 +251,7 @@ function $t(e, t, r) {
251
251
  get: n ? function() {
252
252
  return e.getters;
253
253
  } : function() {
254
- return Pe(e, t);
254
+ return De(e, t);
255
255
  }
256
256
  },
257
257
  state: {
@@ -261,7 +261,7 @@ function $t(e, t, r) {
261
261
  }
262
262
  }), o;
263
263
  }
264
- function Pe(e, t) {
264
+ function De(e, t) {
265
265
  if (!e._makeLocalGettersCache[t]) {
266
266
  var r = {}, n = t.length;
267
267
  Object.keys(e.getters).forEach(function(o) {
@@ -331,9 +331,9 @@ function de(e, t) {
331
331
  }, e);
332
332
  }
333
333
  function J(e, t, r) {
334
- return Se(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
334
+ return Ce(e) && e.type && (r = t, t = e, e = e.type), process.env.NODE_ENV !== "production" && I(typeof e == "string", "expects string as the type, but found " + typeof e + "."), { type: e, payload: t, options: r };
335
335
  }
336
- var Pt = "vuex bindings", me = "vuex:mutations", re = "vuex:actions", q = "vuex", Et = 0;
336
+ var Pt = "vuex bindings", ge = "vuex:mutations", re = "vuex:actions", q = "vuex", Et = 0;
337
337
  function jt(e, t) {
338
338
  xt(
339
339
  {
@@ -347,13 +347,13 @@ function jt(e, t) {
347
347
  },
348
348
  function(r) {
349
349
  r.addTimelineLayer({
350
- id: me,
350
+ id: ge,
351
351
  label: "Vuex Mutations",
352
- color: pe
352
+ color: me
353
353
  }), r.addTimelineLayer({
354
354
  id: re,
355
355
  label: "Vuex Actions",
356
- color: pe
356
+ color: me
357
357
  }), r.addInspector({
358
358
  id: q,
359
359
  label: "Vuex",
@@ -363,15 +363,15 @@ function jt(e, t) {
363
363
  if (n.app === e && n.inspectorId === q)
364
364
  if (n.filter) {
365
365
  var o = [];
366
- Ie(o, t._modules.root, n.filter, ""), n.rootNodes = o;
366
+ Ae(o, t._modules.root, n.filter, ""), n.rootNodes = o;
367
367
  } else
368
368
  n.rootNodes = [
369
- Ae(t._modules.root, "")
369
+ je(t._modules.root, "")
370
370
  ];
371
371
  }), r.on.getInspectorState(function(n) {
372
372
  if (n.app === e && n.inspectorId === q) {
373
373
  var o = n.nodeId;
374
- Pe(t, o), n.state = Tt(
374
+ De(t, o), n.state = Tt(
375
375
  Nt(t._modules, o),
376
376
  o === "root" ? t.getters : t._makeLocalGettersCache,
377
377
  o
@@ -387,7 +387,7 @@ function jt(e, t) {
387
387
  }), t.subscribe(function(n, o) {
388
388
  var a = {};
389
389
  n.payload && (a.payload = n.payload), a.state = o, r.notifyComponentUpdate(), r.sendInspectorTree(q), r.sendInspectorState(q), r.addTimelineEvent({
390
- layerId: me,
390
+ layerId: ge,
391
391
  event: {
392
392
  time: Date.now(),
393
393
  title: n.type,
@@ -432,25 +432,25 @@ function jt(e, t) {
432
432
  }
433
433
  );
434
434
  }
435
- var pe = 8702998, At = 6710886, It = 16777215, Ee = {
435
+ var me = 8702998, At = 6710886, It = 16777215, Pe = {
436
436
  label: "namespaced",
437
437
  textColor: It,
438
438
  backgroundColor: At
439
439
  };
440
- function je(e) {
440
+ function Ee(e) {
441
441
  return e && e !== "root" ? e.split("/").slice(-2, -1)[0] : "Root";
442
442
  }
443
- function Ae(e, t) {
443
+ function je(e, t) {
444
444
  return {
445
445
  id: t || "root",
446
446
  // all modules end with a `/`, we want the last segment only
447
447
  // cart/ -> cart
448
448
  // nested/cart/ -> cart
449
- label: je(t),
450
- tags: e.namespaced ? [Ee] : [],
449
+ label: Ee(t),
450
+ tags: e.namespaced ? [Pe] : [],
451
451
  children: Object.keys(e._children).map(
452
452
  function(r) {
453
- return Ae(
453
+ return je(
454
454
  e._children[r],
455
455
  t + r + "/"
456
456
  );
@@ -458,13 +458,13 @@ function Ae(e, t) {
458
458
  )
459
459
  };
460
460
  }
461
- function Ie(e, t, r, n) {
461
+ function Ae(e, t, r, n) {
462
462
  n.includes(r) && e.push({
463
463
  id: n || "root",
464
464
  label: n.endsWith("/") ? n.slice(0, n.length - 1) : n || "Root",
465
- tags: t.namespaced ? [Ee] : []
465
+ tags: t.namespaced ? [Pe] : []
466
466
  }), Object.keys(t._children).forEach(function(o) {
467
- Ie(e, t._children[o], r, n + o + "/");
467
+ Ae(e, t._children[o], r, n + o + "/");
468
468
  });
469
469
  }
470
470
  function Tt(e, t, r) {
@@ -482,7 +482,7 @@ function Tt(e, t, r) {
482
482
  var a = Mt(t);
483
483
  o.getters = Object.keys(a).map(function(l) {
484
484
  return {
485
- key: l.endsWith("/") ? je(l) : l,
485
+ key: l.endsWith("/") ? Ee(l) : l,
486
486
  editable: !1,
487
487
  value: ae(function() {
488
488
  return a[l];
@@ -541,8 +541,8 @@ var T = function(t, r) {
541
541
  this.runtime = r, this._children = /* @__PURE__ */ Object.create(null), this._rawModule = t;
542
542
  var n = t.state;
543
543
  this.state = (typeof n == "function" ? n() : n) || {};
544
- }, Te = { namespaced: { configurable: !0 } };
545
- Te.namespaced.get = function() {
544
+ }, Ie = { namespaced: { configurable: !0 } };
545
+ Ie.namespaced.get = function() {
546
546
  return !!this._rawModule.namespaced;
547
547
  };
548
548
  T.prototype.addChild = function(t, r) {
@@ -572,7 +572,7 @@ T.prototype.forEachAction = function(t) {
572
572
  T.prototype.forEachMutation = function(t) {
573
573
  this._rawModule.mutations && F(this._rawModule.mutations, t);
574
574
  };
575
- Object.defineProperties(T.prototype, Te);
575
+ Object.defineProperties(T.prototype, Ie);
576
576
  var R = function(t) {
577
577
  this.register([], t, !1);
578
578
  };
@@ -588,11 +588,11 @@ R.prototype.getNamespace = function(t) {
588
588
  }, "");
589
589
  };
590
590
  R.prototype.update = function(t) {
591
- Me([], this.root, t);
591
+ Te([], this.root, t);
592
592
  };
593
593
  R.prototype.register = function(t, r, n) {
594
594
  var o = this;
595
- n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Ne(t, r);
595
+ n === void 0 && (n = !0), process.env.NODE_ENV !== "production" && Me(t, r);
596
596
  var a = new T(r, n);
597
597
  if (t.length === 0)
598
598
  this.root = a;
@@ -618,8 +618,8 @@ R.prototype.isRegistered = function(t) {
618
618
  var r = this.get(t.slice(0, -1)), n = t[t.length - 1];
619
619
  return r ? r.hasChild(n) : !1;
620
620
  };
621
- function Me(e, t, r) {
622
- if (process.env.NODE_ENV !== "production" && Ne(e, r), t.update(r), r.modules)
621
+ function Te(e, t, r) {
622
+ if (process.env.NODE_ENV !== "production" && Me(e, r), t.update(r), r.modules)
623
623
  for (var n in r.modules) {
624
624
  if (!t.getChild(n)) {
625
625
  process.env.NODE_ENV !== "production" && console.warn(
@@ -627,14 +627,14 @@ function Me(e, t, r) {
627
627
  );
628
628
  return;
629
629
  }
630
- Me(
630
+ Te(
631
631
  e.concat(n),
632
632
  t.getChild(n),
633
633
  r.modules[n]
634
634
  );
635
635
  }
636
636
  }
637
- var _e = {
637
+ var pe = {
638
638
  assert: function(e) {
639
639
  return typeof e == "function";
640
640
  },
@@ -644,15 +644,15 @@ var _e = {
644
644
  return typeof e == "function" || typeof e == "object" && typeof e.handler == "function";
645
645
  },
646
646
  expected: 'function or object with "handler" function'
647
- }, be = {
648
- getters: _e,
649
- mutations: _e,
647
+ }, _e = {
648
+ getters: pe,
649
+ mutations: pe,
650
650
  actions: Vt
651
651
  };
652
- function Ne(e, t) {
653
- Object.keys(be).forEach(function(r) {
652
+ function Me(e, t) {
653
+ Object.keys(_e).forEach(function(r) {
654
654
  if (t[r]) {
655
- var n = be[r];
655
+ var n = _e[r];
656
656
  F(t[r], function(o, a) {
657
657
  I(
658
658
  n.assert(o),
@@ -676,10 +676,10 @@ var j = function e(t) {
676
676
  var a = t.devtools;
677
677
  this._committing = !1, this._actions = /* @__PURE__ */ Object.create(null), this._actionSubscribers = [], this._mutations = /* @__PURE__ */ Object.create(null), this._wrappedGetters = /* @__PURE__ */ Object.create(null), this._modules = new R(t), this._modulesNamespaceMap = /* @__PURE__ */ Object.create(null), this._subscribers = [], this._makeLocalGettersCache = /* @__PURE__ */ Object.create(null), this._scope = null, this._devtools = a;
678
678
  var l = this, i = this, c = i.dispatch, f = i.commit;
679
- this.dispatch = function(x, S) {
680
- return c.call(l, x, S);
681
- }, this.commit = function(x, S, N) {
682
- return f.call(l, x, S, N);
679
+ this.dispatch = function(x, C) {
680
+ return c.call(l, x, C);
681
+ }, this.commit = function(x, C, N) {
682
+ return f.call(l, x, C, N);
683
683
  }, this.strict = o;
684
684
  var m = this._modules.root.state;
685
685
  Q(this, m, [], this._modules.root), le(this, m), n.forEach(function(y) {
@@ -687,7 +687,7 @@ var j = function e(t) {
687
687
  });
688
688
  }, ue = { state: { configurable: !0 } };
689
689
  j.prototype.install = function(t, r) {
690
- t.provide(r || $e, this), t.config.globalProperties.$store = this;
690
+ t.provide(r || ke, this), t.config.globalProperties.$store = this;
691
691
  var n = this._devtools !== void 0 ? this._devtools : process.env.NODE_ENV !== "production" || !1;
692
692
  n && jt(t, this);
693
693
  };
@@ -734,35 +734,35 @@ j.prototype.dispatch = function(t, r) {
734
734
  return new Promise(function(m, y) {
735
735
  f.then(function(x) {
736
736
  try {
737
- n._actionSubscribers.filter(function(S) {
738
- return S.after;
739
- }).forEach(function(S) {
740
- return S.after(i, n.state);
737
+ n._actionSubscribers.filter(function(C) {
738
+ return C.after;
739
+ }).forEach(function(C) {
740
+ return C.after(i, n.state);
741
741
  });
742
- } catch (S) {
743
- process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(S));
742
+ } catch (C) {
743
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in after action subscribers: "), console.error(C));
744
744
  }
745
745
  m(x);
746
746
  }, function(x) {
747
747
  try {
748
- n._actionSubscribers.filter(function(S) {
749
- return S.error;
750
- }).forEach(function(S) {
751
- return S.error(i, n.state, x);
748
+ n._actionSubscribers.filter(function(C) {
749
+ return C.error;
750
+ }).forEach(function(C) {
751
+ return C.error(i, n.state, x);
752
752
  });
753
- } catch (S) {
754
- process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(S));
753
+ } catch (C) {
754
+ process.env.NODE_ENV !== "production" && (console.warn("[vuex] error in error action subscribers: "), console.error(C));
755
755
  }
756
756
  y(x);
757
757
  });
758
758
  });
759
759
  };
760
760
  j.prototype.subscribe = function(t, r) {
761
- return Oe(t, this._subscribers, r);
761
+ return Se(t, this._subscribers, r);
762
762
  };
763
763
  j.prototype.subscribeAction = function(t, r) {
764
764
  var n = typeof t == "function" ? { before: t } : t;
765
- return Oe(n, this._actionSubscribers, r);
765
+ return Se(n, this._actionSubscribers, r);
766
766
  };
767
767
  j.prototype.watch = function(t, r, n) {
768
768
  var o = this;
@@ -784,27 +784,27 @@ j.prototype.unregisterModule = function(t) {
784
784
  typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.unregister(t), this._withCommit(function() {
785
785
  var n = de(r.state, t.slice(0, -1));
786
786
  delete n[t[t.length - 1]];
787
- }), De(this);
787
+ }), Oe(this);
788
788
  };
789
789
  j.prototype.hasModule = function(t) {
790
790
  return typeof t == "string" && (t = [t]), process.env.NODE_ENV !== "production" && I(Array.isArray(t), "module path must be a string or an Array."), this._modules.isRegistered(t);
791
791
  };
792
792
  j.prototype.hotUpdate = function(t) {
793
- this._modules.update(t), De(this, !0);
793
+ this._modules.update(t), Oe(this, !0);
794
794
  };
795
795
  j.prototype._withCommit = function(t) {
796
796
  var r = this._committing;
797
797
  this._committing = !0, t(), this._committing = r;
798
798
  };
799
799
  Object.defineProperties(j.prototype, ue);
800
- var Bt = Le(function(e, t) {
800
+ var Bt = Ve(function(e, t) {
801
801
  var r = {};
802
- return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ve(t).forEach(function(n) {
802
+ return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"), Ne(t).forEach(function(n) {
803
803
  var o = n.key, a = n.val;
804
804
  r[o] = function() {
805
805
  var i = this.$store.state, c = this.$store.getters;
806
806
  if (e) {
807
- var f = Be(this.$store, "mapState", e);
807
+ var f = Le(this.$store, "mapState", e);
808
808
  if (!f)
809
809
  return;
810
810
  i = f.context.state, c = f.context.getters;
@@ -812,16 +812,16 @@ var Bt = Le(function(e, t) {
812
812
  return typeof a == "function" ? a.call(this, i, c) : i[a];
813
813
  }, r[o].vuex = !0;
814
814
  }), r;
815
- }), Gt = Le(function(e, t) {
815
+ }), Gt = Ve(function(e, t) {
816
816
  var r = {};
817
- return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ve(t).forEach(function(n) {
817
+ return process.env.NODE_ENV !== "production" && !ce(t) && console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"), Ne(t).forEach(function(n) {
818
818
  var o = n.key, a = n.val;
819
819
  r[o] = function() {
820
820
  for (var i = [], c = arguments.length; c--; )
821
821
  i[c] = arguments[c];
822
822
  var f = this.$store.commit;
823
823
  if (e) {
824
- var m = Be(this.$store, "mapMutations", e);
824
+ var m = Le(this.$store, "mapMutations", e);
825
825
  if (!m)
826
826
  return;
827
827
  f = m.context.commit;
@@ -830,7 +830,7 @@ var Bt = Le(function(e, t) {
830
830
  };
831
831
  }), r;
832
832
  });
833
- function Ve(e) {
833
+ function Ne(e) {
834
834
  return ce(e) ? Array.isArray(e) ? e.map(function(t) {
835
835
  return { key: t, val: t };
836
836
  }) : Object.keys(e).map(function(t) {
@@ -838,14 +838,14 @@ function Ve(e) {
838
838
  }) : [];
839
839
  }
840
840
  function ce(e) {
841
- return Array.isArray(e) || Se(e);
841
+ return Array.isArray(e) || Ce(e);
842
842
  }
843
- function Le(e) {
843
+ function Ve(e) {
844
844
  return function(t, r) {
845
845
  return typeof t != "string" ? (r = t, t = "") : t.charAt(t.length - 1) !== "/" && (t += "/"), e(t, r);
846
846
  };
847
847
  }
848
- function Be(e, t, r) {
848
+ function Le(e, t, r) {
849
849
  var n = e._modulesNamespaceMap[r];
850
850
  return process.env.NODE_ENV !== "production" && !n && console.error("[vuex] module namespace not found in " + t + "(): " + r), n;
851
851
  }
@@ -2231,7 +2231,7 @@ const wd = /* @__PURE__ */ D(Fs, [["render", Ws]]), Xs = {
2231
2231
  props: ["title"],
2232
2232
  setup() {
2233
2233
  return {
2234
- selectedTitle: ve("selectedTitle")
2234
+ selectedTitle: ye("selectedTitle")
2235
2235
  };
2236
2236
  }
2237
2237
  }, Ys = { class: "block" };
@@ -2927,21 +2927,21 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
2927
2927
  },
2928
2928
  emits: ["update:modelValue", "selected", "selectionChanged"],
2929
2929
  setup(e, { emit: t }) {
2930
- const r = e, n = t, o = O({}), a = O(0), l = O(!1), i = O(""), c = O(""), f = O(null);
2930
+ const r = e, n = t, o = O(null), a = O({}), l = O(0), i = O(!1), c = O(""), f = O("");
2931
2931
  G(() => {
2932
- n("selected", o.value), c.value = S();
2933
- var b = qe();
2934
- o.value = m.value.find((k) => String(k.id) === String(b)) || {}, r.show || (document.body.addEventListener("click", (k) => {
2935
- Ge(k);
2932
+ n("selected", a.value), f.value = C();
2933
+ var b = Ue();
2934
+ a.value = m.value.find((k) => String(k.id) === String(b)) || {}, r.show || (document.body.addEventListener("click", (k) => {
2935
+ Be(k);
2936
2936
  }), document.addEventListener("keypress", (k) => {
2937
2937
  k.key === "Enter" && k.target.form && k.preventDefault();
2938
2938
  }));
2939
2939
  });
2940
- const m = z(() => Ue()), y = z(() => {
2941
- const b = [], k = new RegExp(i.value, "ig");
2942
- for (const C of m.value) {
2943
- const V = String(C.name);
2944
- (i.value.length < 1 || V.match(k)) && b.length < r.maxItem && b.push(C);
2940
+ const m = z(() => Re()), y = z(() => {
2941
+ const b = [], k = new RegExp(c.value, "ig");
2942
+ for (const S of m.value) {
2943
+ const V = String(S.name);
2944
+ (c.value.length < 1 || V.match(k)) && b.length < r.maxItem && b.push(S);
2945
2945
  }
2946
2946
  return b;
2947
2947
  });
@@ -2949,57 +2949,58 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
2949
2949
  if (["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Enter"].includes(b.key)) {
2950
2950
  if (["ArrowUp", "ArrowDown"].includes(b.key) && b.preventDefault(), b.key === "ArrowDown" && r.posts === "")
2951
2951
  return;
2952
- Re(b.key);
2952
+ Fe(b.key);
2953
2953
  }
2954
2954
  }
2955
- function S() {
2955
+ function C() {
2956
2956
  let b = (/* @__PURE__ */ new Date()).getTime();
2957
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(C) {
2957
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(S) {
2958
2958
  const V = (b + Math.random() * 16) % 16 | 0;
2959
- return b = Math.floor(b / 16), (C === "x" ? V : V & 3 | 8).toString(16);
2959
+ return b = Math.floor(b / 16), (S === "x" ? V : V & 3 | 8).toString(16);
2960
2960
  });
2961
2961
  }
2962
2962
  function N(b) {
2963
2963
  return Object.keys(b).length > 0;
2964
2964
  }
2965
- function Ge(b) {
2966
- b.target.id != r.fieldName + "search" + c.value && b.target.id != r.fieldName && !b.target.classList.contains("showOptions") && (ge(), a.value = 0);
2965
+ function Be(b) {
2966
+ b.target.id != r.fieldName + "search" + f.value && b.target.id != r.fieldName && !b.target.classList.contains("showOptions") && (ze(), l.value = 0);
2967
2967
  }
2968
2968
  function fe(b) {
2969
- const k = `${b}${c.value}`, C = document.getElementById(k);
2970
- C && C.scrollIntoView();
2969
+ const k = `${b}${f.value}`, S = document.getElementById(k);
2970
+ S && S.scrollIntoView();
2971
2971
  }
2972
- function Fe(b) {
2973
- const k = `${b}${c.value}`, C = document.getElementById(k);
2974
- C && C.click();
2972
+ function Ge(b) {
2973
+ const k = `${b}${f.value}`, S = document.getElementById(k);
2974
+ S && S.click();
2975
2975
  }
2976
- function Re(b) {
2977
- b === "ArrowDown" && a.value < y.value.length && (a.value++, fe(a.value)), b === "ArrowUp" && a.value > 1 && (a.value--, fe(a.value)), b === "Enter" && Fe(a.value);
2976
+ function Fe(b) {
2977
+ b === "ArrowDown" && l.value < y.value.length && (l.value++, fe(l.value)), b === "ArrowUp" && l.value > 1 && (l.value--, fe(l.value)), b === "Enter" && Ge(l.value);
2978
2978
  }
2979
- function Ue() {
2979
+ function Re() {
2980
2980
  return r.options.map((b, k) => typeof b == "object" ? b : { id: b, name: b });
2981
2981
  }
2982
- function qe() {
2982
+ function Ue() {
2983
2983
  var b = r.defaultValue || r.modelValue;
2984
2984
  return b ? typeof b == "object" ? b.id + "" : b + "" : "";
2985
2985
  }
2986
2986
  function he(b) {
2987
- o.value = b, l.value = !1, n("selected", o.value), n("selectionChanged", o.value);
2987
+ a.value = b, i.value = !1, n("selected", a.value), n("selectionChanged", a.value);
2988
2988
  }
2989
2989
  function ee() {
2990
- r.show || (i.value = "", l.value = !0, tt(() => {
2991
- f.value.focus();
2990
+ r.show || (c.value = "", i.value = !0, tt(() => {
2991
+ var b = document.getElementById(`${r.fieldName}search${f.value}`);
2992
+ b && b.focus();
2992
2993
  }));
2993
2994
  }
2994
- function ze() {
2995
- r.show || (o.value = {}, i.value = "", n("update:modelValue", ""), ee());
2995
+ function qe() {
2996
+ r.show || (a.value = {}, c.value = "", n("update:modelValue", ""), ee());
2996
2997
  }
2997
- function ge() {
2998
- o.value.id || (o.value = {}, i.value = ""), n("selected", o.value), l.value = !1;
2998
+ function ze() {
2999
+ a.value.id || (a.value = {}, c.value = ""), n("selected", a.value), i.value = !1;
2999
3000
  }
3000
- return W(i, () => {
3001
- y.value.length === 0 && (o.value = {});
3002
- }), W(o, (b) => {
3001
+ return W(c, () => {
3002
+ y.value.length === 0 && (a.value = {});
3003
+ }), W(a, (b) => {
3003
3004
  N(b) && n("update:modelValue", b.id);
3004
3005
  }), (b, k) => (d(), u(v, null, [
3005
3006
  e.show ? (d(), u("div", {
@@ -3020,7 +3021,7 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
3020
3021
  type: "hidden",
3021
3022
  name: e.field_name,
3022
3023
  id: e.field_name,
3023
- value: o.value.id
3024
+ value: a.value.id
3024
3025
  }, null, 8, Pa),
3025
3026
  e.options ? (d(), u("div", Ea, [
3026
3027
  e.label_name ? (d(), u("label", {
@@ -3039,22 +3040,22 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
3039
3040
  "gl-input-form-invalid": e.error_message !== ""
3040
3041
  }, "pl-8 pr-2 showOptions"]),
3041
3042
  ref: e.field_name,
3042
- onClick: k[0] || (k[0] = (C) => ee()),
3043
- value: o.value.name,
3043
+ onClick: k[0] || (k[0] = (S) => ee()),
3044
+ value: a.value.name,
3044
3045
  placeholder: e.placeholder,
3045
3046
  autocomplete: "off",
3046
3047
  readonly: ""
3047
3048
  }, null, 10, Ia),
3048
3049
  P(s("i", {
3049
- onClick: k[1] || (k[1] = M((C) => ze(), ["stop"])),
3050
+ onClick: k[1] || (k[1] = M((S) => qe(), ["stop"])),
3050
3051
  class: "absolute text-gray-500 cursor-pointer fas fa-times right-7 hover:text-gray-700 dark:hover:text-gray-800",
3051
3052
  style: { top: "13px" }
3052
3053
  }, null, 512), [
3053
- [B, N(o.value) && e.has_cancel]
3054
+ [B, N(a.value) && e.has_cancel]
3054
3055
  ]),
3055
3056
  s("i", {
3056
- onClick: k[2] || (k[2] = (C) => !l.value && ee()),
3057
- class: p([l.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
3057
+ onClick: k[2] || (k[2] = (S) => !i.value && ee()),
3058
+ class: p([i.value ? "fa-angle-up" : "fa-angle-down", "absolute text-xl text-gray-500 cursor-pointer fas right-2 hover:text-gray-700 dark:hover:text-gray-800 showOptions"]),
3058
3059
  style: { top: "11px" }
3059
3060
  }, null, 2)
3060
3061
  ]),
@@ -3065,35 +3066,34 @@ const $d = /* @__PURE__ */ D(Qs, [["render", na], ["__scopeId", "data-v-a94f16a9
3065
3066
  La,
3066
3067
  P(s("input", {
3067
3068
  type: "search",
3068
- "onUpdate:modelValue": k[3] || (k[3] = (C) => i.value = C),
3069
- ref: f.value,
3070
- id: `${e.field_name}search${c.value}`,
3069
+ "onUpdate:modelValue": k[3] || (k[3] = (S) => c.value = S),
3070
+ ref: o.value,
3071
+ id: `${e.field_name}search${f.value}`,
3071
3072
  onKeydown: x,
3072
- onBlur: k[4] || (k[4] = (C) => ge()),
3073
3073
  autocomplete: "off",
3074
3074
  class: "block w-full p-2 text-sm text-gray-900 border rounded-lg outline-none border-frontend ps-10 bg-gray-50 focus:border-frontend dark:bg-gray-700 dark:border-frontenddark dark:placeholder-frontenddark dark:text-white dark:focus:border-frontenddark",
3075
3075
  placeholder: "Search ..."
3076
3076
  }, null, 40, Ba), [
3077
- [L, i.value]
3077
+ [L, c.value]
3078
3078
  ])
3079
3079
  ])
3080
3080
  ]),
3081
3081
  s("div", Ga, [
3082
- (d(!0), u(v, null, $(y.value, (C, V) => (d(), u("div", {
3083
- class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", V + 1 == a.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
3084
- onClick: (He) => he(C),
3085
- onMousedown: (He) => he(C),
3082
+ (d(!0), u(v, null, $(y.value, (S, V) => (d(), u("div", {
3083
+ class: p(["relative px-2 py-2 text-xs leading-4 text-gray-700 no-underline cursor-pointer dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white", V + 1 == l.value ? "bg-gray-100 dark:bg-gray-600" : ""]),
3084
+ onClick: (He) => he(S),
3085
+ onMousedown: (He) => he(S),
3086
3086
  key: V,
3087
- id: `${V + 1}${c.value}`
3087
+ id: `${V + 1}${f.value}`
3088
3088
  }, [
3089
3089
  s("div", Ra, [
3090
- o.value.id === C.id ? (d(), u("svg", Ua, za)) : g("", !0),
3091
- s("span", null, h(C.name || C.id || "-"), 1)
3090
+ a.value.id === S.id ? (d(), u("svg", Ua, za)) : g("", !0),
3091
+ s("span", null, h(S.name || S.id || "-"), 1)
3092
3092
  ])
3093
3093
  ], 42, Fa))), 128))
3094
3094
  ])
3095
3095
  ], 512), [
3096
- [B, l.value]
3096
+ [B, i.value]
3097
3097
  ])
3098
3098
  ])
3099
3099
  ])) : g("", !0),
@@ -4030,7 +4030,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4030
4030
  }, Gi)
4031
4031
  ]));
4032
4032
  }
4033
- }, oe = xe({
4033
+ }, oe = ve({
4034
4034
  items: []
4035
4035
  }), Ri = {
4036
4036
  add(e) {
@@ -4044,14 +4044,14 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4044
4044
  remove(e) {
4045
4045
  oe.items.splice(e, 1);
4046
4046
  }
4047
- }, ye = {
4047
+ }, be = {
4048
4048
  state: oe,
4049
4049
  methods: Ri
4050
4050
  }, jd = {
4051
4051
  __name: "GlToastList",
4052
4052
  setup(e) {
4053
4053
  function t(r) {
4054
- ye.methods.remove(r);
4054
+ be.methods.remove(r);
4055
4055
  }
4056
4056
  return (r, n) => (d(), Z(rt, {
4057
4057
  tag: "div",
@@ -4062,7 +4062,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4062
4062
  class: "fixed z-50 w-full max-w-xs space-y-4 top-4 right-4"
4063
4063
  }, {
4064
4064
  default: Y(() => [
4065
- (d(!0), u(v, null, $(st(ye).state.items, (o, a) => (d(), Z(Fi, {
4065
+ (d(!0), u(v, null, $(st(be).state.items, (o, a) => (d(), Z(Fi, {
4066
4066
  key: o.key,
4067
4067
  message: o.message,
4068
4068
  type: o.type,
@@ -4115,7 +4115,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4115
4115
  },
4116
4116
  emits: ["deleteAction"],
4117
4117
  setup(e, { emit: t }) {
4118
- const r = Ce(), n = e, o = O(!1), a = O(!1), l = () => {
4118
+ const r = $e(), n = e, o = O(!1), a = O(!1), l = () => {
4119
4119
  o.value = !1;
4120
4120
  }, i = () => {
4121
4121
  o.value = !0;
@@ -4134,8 +4134,8 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4134
4134
  console.log(x);
4135
4135
  });
4136
4136
  };
4137
- return (x, S) => {
4138
- const N = we("click-outside");
4137
+ return (x, C) => {
4138
+ const N = xe("click-outside");
4139
4139
  return d(), u(v, null, [
4140
4140
  H(ie, {
4141
4141
  isOpen: a.value,
@@ -4221,7 +4221,7 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4221
4221
  },
4222
4222
  emits: ["deleteAction"],
4223
4223
  setup(e, { emit: t }) {
4224
- const r = Ce(), n = e, o = O(!1), a = O(!1), l = () => {
4224
+ const r = $e(), n = e, o = O(!1), a = O(!1), l = () => {
4225
4225
  o.value = !1;
4226
4226
  }, i = () => {
4227
4227
  o.value = !0;
@@ -4240,8 +4240,8 @@ const Ed = /* @__PURE__ */ D(Bo, [["render", ki]]), $i = {
4240
4240
  console.log(x);
4241
4241
  });
4242
4242
  };
4243
- return (x, S) => {
4244
- const N = we("click-outside");
4243
+ return (x, C) => {
4244
+ const N = xe("click-outside");
4245
4245
  return d(), u(v, null, [
4246
4246
  H(ie, {
4247
4247
  isOpen: a.value,
@@ -4643,7 +4643,7 @@ export {
4643
4643
  Dd as GlTextarea,
4644
4644
  bd as GlTextareaTranslate,
4645
4645
  yd as GlTinymceTranslate,
4646
- ye as GlToast,
4646
+ be as GlToast,
4647
4647
  jd as GlToastList,
4648
4648
  Sd as GlToggleBox
4649
4649
  };