sd-render 1.0.26 → 1.1.1

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.
@@ -4,14 +4,14 @@ import "element-plus/es/components/dialog/style/index";
4
4
  import "element-plus/es/components/button/style/index";
5
5
  import "element-plus/es/components/icon/style/index";
6
6
  import "element-plus/es/components/image/style/index";
7
- import { createElementBlock as w, openBlock as n, normalizeClass as X, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as jl, capitalize as Go, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as j, renderList as G, resolveDynamicComponent as pa, mergeProps as ae, toHandlers as Ul, withModifiers as R, renderSlot as fe, computed as le, watch as Ke, provide as xe, unref as pe, watchEffect as Yo, toRaw as Jo, withDirectives as Ve, vShow as Rl, reactive as ke, onMounted as Je, normalizeProps as Oa, guardReactiveProps as Na, createSlots as tt, defineAsyncComponent as Xo, resolveDirective as zl, withKeys as Qo } from "vue";
7
+ import { createElementBlock as w, openBlock as n, normalizeClass as X, createElementVNode as P, createCommentVNode as g, toDisplayString as O, defineComponent as L, markRaw as jl, capitalize as Go, normalizeStyle as te, ref as K, nextTick as yt, resolveComponent as Y, Fragment as E, createVNode as r, withCtx as s, createBlock as p, createTextVNode as S, inject as j, renderList as G, resolveDynamicComponent as pa, mergeProps as ae, toHandlers as Ul, withModifiers as R, renderSlot as he, computed as le, watch as Ke, provide as xe, unref as me, watchEffect as Yo, toRaw as Jo, withDirectives as Ve, vShow as Rl, reactive as ke, onMounted as Je, normalizeProps as Oa, guardReactiveProps as Na, createSlots as tt, defineAsyncComponent as Xo, resolveDirective as zl, withKeys as Qo } from "vue";
8
8
  import { Editor as It, Node as ot, mergeAttributes as Xe, getMarkRange as Zo, Extension as He, isList as ei } from "@tiptap/core";
9
9
  import We from "ace-builds";
10
10
  import "ace-builds/src-min-noconflict/theme-tomorrow_night_eighties";
11
11
  import "ace-builds/src-min-noconflict/theme-sqlserver";
12
12
  import "ace-builds/src-min-noconflict/mode-html";
13
13
  import "ace-builds/src-min-noconflict/ext-beautify";
14
- import { useDark as se } from "@vueuse/core";
14
+ import { useDark as re } from "@vueuse/core";
15
15
  import ti from "@tiptap/extension-list-item";
16
16
  import Ka from "@tiptap/extension-text";
17
17
  import Ga from "@tiptap/extension-paragraph";
@@ -102,7 +102,7 @@ import Vi from "@tiptap/extension-bullet-list";
102
102
  import Ai from "@tiptap/extension-ordered-list";
103
103
  import Oi from "@tiptap/extension-image";
104
104
  import "element-plus/es/components/upload/style/index";
105
- import he from "axios";
105
+ import ce from "axios";
106
106
  import Ni from "@tiptap/extension-task-list";
107
107
  import Ei from "@tiptap/extension-task-item";
108
108
  import { Table as Li } from "@tiptap/extension-table";
@@ -288,8 +288,8 @@ const ge = /* @__PURE__ */ B($n, [["render", Vn], ["__scopeId", "data-v-bebc8483
288
288
  enableBasicAutocompletion: !0,
289
289
  enableSnippets: !0
290
290
  });
291
- let m = We.require("ace/snippets").snippetManager, h = i.$mode.$id || "", c = m.files[h];
292
- c.scope = d, c.snippetText = u, c.snippet = m.parseSnippetFile(u, c.scope), m.register(c.snippet, c.scope);
291
+ let m = We.require("ace/snippets").snippetManager, h = i.$mode.$id || "", b = m.files[h];
292
+ b.scope = d, b.snippetText = u, b.snippet = m.parseSnippetFile(u, b.scope), m.register(b.snippet, b.scope);
293
293
  }, a = (o) => (Array.isArray(o) ? o : [o]).map(
294
294
  ({ name: i, code: d }) => [
295
295
  "snippet " + i,
@@ -495,7 +495,7 @@ function On(e, t, a, l, o, i) {
495
495
  }, null, 4);
496
496
  }
497
497
  const Nn = /* @__PURE__ */ B(An, [["render", On]]);
498
- var Ue = /* @__PURE__ */ ((e) => (e.None = "None", e.String = "String", e.Integer = "Integer", e.Number = "Number", e.Boolean = "Boolean", e.Array = "Array", e.Object = "Object", e.ObjectId = "ObjectId", e.StringDate = "StringDate", e.ArrayDate = "ArrayDate", e.Date = "Date", e.Timestamp = "Timestamp", e.Binary = "Binary", e.StringArray = "String|Array", e.ObjectArray = "Object|Array", e.Any = "Any", e))(Ue || {}), de = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(de || {}), me = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(me || {});
498
+ var Ue = /* @__PURE__ */ ((e) => (e.None = "None", e.String = "String", e.Integer = "Integer", e.Number = "Number", e.Boolean = "Boolean", e.Array = "Array", e.Object = "Object", e.ObjectId = "ObjectId", e.StringDate = "StringDate", e.ArrayDate = "ArrayDate", e.Date = "Date", e.Timestamp = "Timestamp", e.Binary = "Binary", e.StringArray = "String|Array", e.ObjectArray = "Object|Array", e.Any = "Any", e))(Ue || {}), ue = /* @__PURE__ */ ((e) => (e.SYS = "SYS", e.FORM = "FORM", e.SQL = "SQL", e))(ue || {}), fe = /* @__PURE__ */ ((e) => (e.ASC = "ASC", e.DESC = "DESC", e))(fe || {});
499
499
  const Kb = [
500
500
  {
501
501
  value: "user-list",
@@ -806,7 +806,7 @@ function $a(e, t, a) {
806
806
  d && (i === l.length - 1 ? o[d] = a : ((!o[d] || typeof o[d] != "object" || Array.isArray(o[d])) && (o[d] = {}), o = o[d]));
807
807
  }
808
808
  }
809
- function ce(e, t) {
809
+ function de(e, t) {
810
810
  try {
811
811
  let a = t.split("."), l = e;
812
812
  for (let o = 0, i = a.length; o < i; o++) {
@@ -827,7 +827,7 @@ function ce(e, t) {
827
827
  function Tt(e) {
828
828
  return ri.sanitize(e, {});
829
829
  }
830
- function re(e, t) {
830
+ function se(e, t) {
831
831
  const a = (i) => `{{###~${i}~###}}`, l = Object.keys(t).map((i, d) => ({
832
832
  key: i,
833
833
  val: t[i],
@@ -1038,7 +1038,7 @@ const Rn = L({
1038
1038
  class: "cropper-container"
1039
1039
  }, Jn = { class: "dialog-footer" };
1040
1040
  function Xn(e, t, a, l, o, i) {
1041
- const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), c = ge, _ = oe, C = Fe;
1041
+ const d = vt, u = Y("delete"), m = Ge, h = Y("Plus"), b = ge, _ = oe, C = Fe;
1042
1042
  return n(), w(E, null, [
1043
1043
  P("ul", zn, [
1044
1044
  e.priviewDataURL ? (n(), w("li", qn, [
@@ -1051,7 +1051,7 @@ function Xn(e, t, a, l, o, i) {
1051
1051
  e.disabled ? g("", !0) : (n(), w("span", {
1052
1052
  key: 0,
1053
1053
  class: "btn-action",
1054
- onClick: t[0] || (t[0] = (...b) => e.deleteCropFile && e.deleteCropFile(...b))
1054
+ onClick: t[0] || (t[0] = (...c) => e.deleteCropFile && e.deleteCropFile(...c))
1055
1055
  }, [
1056
1056
  r(m, null, {
1057
1057
  default: s(() => [
@@ -1079,7 +1079,7 @@ function Xn(e, t, a, l, o, i) {
1079
1079
  type: "file",
1080
1080
  accept: "image/jpg, image/jpeg, image/png, image/gif",
1081
1081
  title: "",
1082
- onChange: t[1] || (t[1] = (...b) => e.selectFile && e.selectFile(...b)),
1082
+ onChange: t[1] || (t[1] = (...c) => e.selectFile && e.selectFile(...c)),
1083
1083
  disabled: e.disabled
1084
1084
  }, null, 40, Wn)
1085
1085
  ], 14, xn))
@@ -1088,7 +1088,7 @@ function Xn(e, t, a, l, o, i) {
1088
1088
  r(C, {
1089
1089
  title: "Crop Picture",
1090
1090
  modelValue: e.showPopupFlag,
1091
- "onUpdate:modelValue": t[2] || (t[2] = (b) => e.showPopupFlag = b),
1091
+ "onUpdate:modelValue": t[2] || (t[2] = (c) => e.showPopupFlag = c),
1092
1092
  width: e.popupWidth,
1093
1093
  "show-close": !1,
1094
1094
  class: "dialog-grid dialog-form",
@@ -1098,9 +1098,9 @@ function Xn(e, t, a, l, o, i) {
1098
1098
  "close-on-press-escape": !1,
1099
1099
  "destroy-on-close": !0
1100
1100
  }, {
1101
- header: s(({ close: b, titleId: M, titleClass: f }) => [
1101
+ header: s(({ close: c, titleId: M, titleClass: f }) => [
1102
1102
  P("span", Gn, [
1103
- r(c, { "icon-name": "crop-input" }),
1103
+ r(b, { "icon-name": "crop-input" }),
1104
1104
  t[3] || (t[3] = S(" Crop Picture", -1))
1105
1105
  ])
1106
1106
  ]),
@@ -1112,7 +1112,7 @@ function Xn(e, t, a, l, o, i) {
1112
1112
  onClick: e.saveCropFile
1113
1113
  }, {
1114
1114
  default: s(() => [
1115
- r(c, {
1115
+ r(b, {
1116
1116
  "icon-name": "crop-input",
1117
1117
  class: "mr-1"
1118
1118
  }),
@@ -1126,7 +1126,7 @@ function Xn(e, t, a, l, o, i) {
1126
1126
  onClick: e.flipImg
1127
1127
  }, {
1128
1128
  default: s(() => [
1129
- r(c, {
1129
+ r(b, {
1130
1130
  "icon-name": "addon-flip-horizontal",
1131
1131
  class: "mr-1"
1132
1132
  }),
@@ -1140,7 +1140,7 @@ function Xn(e, t, a, l, o, i) {
1140
1140
  onClick: e.rotateImg
1141
1141
  }, {
1142
1142
  default: s(() => [
1143
- r(c, {
1143
+ r(b, {
1144
1144
  "icon-name": "el-refresh",
1145
1145
  class: "mr-1"
1146
1146
  }),
@@ -1530,7 +1530,7 @@ const Ql = /* @__PURE__ */ B(hs, [["render", cs]]), bs = L({
1530
1530
  }
1531
1531
  });
1532
1532
  function gs(e, t, a, l, o, i) {
1533
- const d = z, u = $e, m = pt, h = ut, c = oe, _ = Fe;
1533
+ const d = z, u = $e, m = pt, h = ut, b = oe, _ = Fe;
1534
1534
  return n(), w("div", null, [
1535
1535
  r(d, {
1536
1536
  command: e.openEditLinkDialog,
@@ -1547,7 +1547,7 @@ function gs(e, t, a, l, o, i) {
1547
1547
  custom: "el-tiptap-edit-link-dialog"
1548
1548
  }, {
1549
1549
  footer: s(() => [
1550
- r(c, {
1550
+ r(b, {
1551
1551
  round: "",
1552
1552
  onClick: e.closeEditLinkDialog
1553
1553
  }, {
@@ -1556,7 +1556,7 @@ function gs(e, t, a, l, o, i) {
1556
1556
  ]),
1557
1557
  _: 1
1558
1558
  }, 8, ["onClick"]),
1559
- r(c, {
1559
+ r(b, {
1560
1560
  type: "primary",
1561
1561
  round: "",
1562
1562
  onMousedown: t[1] || (t[1] = R(() => {
@@ -1655,7 +1655,7 @@ const eo = /* @__PURE__ */ B(ys, [["render", vs]]), ws = L({
1655
1655
  function _s(e, t, a, l, o, i) {
1656
1656
  const d = eo, u = Zl, m = Ql;
1657
1657
  return n(), w("div", Fs, [
1658
- fe(e.$slots, "prepend"),
1658
+ he(e.$slots, "prepend"),
1659
1659
  r(d, {
1660
1660
  editor: e.editor,
1661
1661
  url: e.linkAttrs.href
@@ -1762,13 +1762,13 @@ const to = /* @__PURE__ */ B(ws, [["render", _s]]), Ss = L({
1762
1762
  }
1763
1763
  }), ks = { ref: "parentRef" }, Cs = { class: "el-tiptap-editor__menu-floating" };
1764
1764
  function Ds(e, t, a, l, o, i) {
1765
- const d = Y("v-icon"), u = to, m = Xl, h = Y("bubble-menu"), c = z, _ = ia, C = Y("floating-menu");
1765
+ const d = Y("v-icon"), u = to, m = Xl, h = Y("bubble-menu"), b = z, _ = ia, C = Y("floating-menu");
1766
1766
  return n(), w("div", ks, [
1767
1767
  e.editor ? (n(), p(h, {
1768
1768
  key: 0,
1769
1769
  editor: e.editor,
1770
1770
  "tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
1771
- "should-show": ({ editor: b, view: M, state: f, oldState: y, from: k, to: A }) => e.activeImage ? !1 : b.isActive("paragraph") && f.selection.$anchor.parentOffset !== f.selection.$head.parentOffset
1771
+ "should-show": ({ editor: c, view: M, state: f, oldState: y, from: k, to: A }) => e.activeImage ? !1 : c.isActive("paragraph") && f.selection.$anchor.parentOffset !== f.selection.$head.parentOffset
1772
1772
  }, {
1773
1773
  default: s(() => [
1774
1774
  P("div", {
@@ -1786,7 +1786,7 @@ function Ds(e, t, a, l, o, i) {
1786
1786
  class: "el-tiptap-editor__command-button",
1787
1787
  onMousedown: t[0] || (t[0] = R(() => {
1788
1788
  }, ["prevent"])),
1789
- onClick: t[1] || (t[1] = (...b) => e.linkBack && e.linkBack(...b))
1789
+ onClick: t[1] || (t[1] = (...c) => e.linkBack && e.linkBack(...c))
1790
1790
  }, [
1791
1791
  r(d, { name: "arrow-left" })
1792
1792
  ], 32)) : g("", !0)
@@ -1796,10 +1796,10 @@ function Ds(e, t, a, l, o, i) {
1796
1796
  e.activeMenu === "cell" ? (n(), p(m, {
1797
1797
  key: 1,
1798
1798
  editor: e.editor
1799
- }, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (b, M) => (n(), p(pa(b.component), ae({
1799
+ }, null, 8, ["editor"])) : e.activeMenu === "default" ? (n(!0), w(E, { key: 2 }, G(e.generateCommandButtonComponentSpecs(), (c, M) => (n(), p(pa(c.component), ae({
1800
1800
  key: "command-button" + M,
1801
1801
  "enable-tooltip": e.enableTooltip
1802
- }, { ref_for: !0 }, b.componentProps, { readonly: e.isCodeViewMode }, Ul(b.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
1802
+ }, { ref_for: !0 }, c.componentProps, { readonly: e.isCodeViewMode }, Ul(c.componentEvents || {})), null, 16, ["enable-tooltip", "readonly"]))), 128)) : g("", !0)
1803
1803
  ], 2)
1804
1804
  ]),
1805
1805
  _: 1
@@ -1808,11 +1808,11 @@ function Ds(e, t, a, l, o, i) {
1808
1808
  key: 1,
1809
1809
  editor: e.editor,
1810
1810
  "tippy-options": { duration: 100, appendTo: e.parentRef ? e.parentRef : "parent" },
1811
- "should-show": ({ editor: b, view: M, state: f, oldState: y }) => f.selection.$anchor.parentOffset == f.selection.$head.parentOffset && f.selection.$head.parentOffset == 0 && b.isActive("paragraph") && b.isActive("table")
1811
+ "should-show": ({ editor: c, view: M, state: f, oldState: y }) => f.selection.$anchor.parentOffset == f.selection.$head.parentOffset && f.selection.$head.parentOffset == 0 && c.isActive("paragraph") && c.isActive("table")
1812
1812
  }, {
1813
1813
  default: s(() => [
1814
1814
  P("div", Cs, [
1815
- r(c, {
1815
+ r(b, {
1816
1816
  command: e.editor.commands.addColumnAfter,
1817
1817
  "enable-tooltip": e.enableTooltip,
1818
1818
  tooltip: e.t("editor.extensions.Table.buttons.add_column_after"),
@@ -1820,7 +1820,7 @@ function Ds(e, t, a, l, o, i) {
1820
1820
  readonly: !e.isTableActive,
1821
1821
  icon: "add_column_after"
1822
1822
  }, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
1823
- r(c, {
1823
+ r(b, {
1824
1824
  command: e.editor.commands.addColumnBefore,
1825
1825
  "enable-tooltip": e.enableTooltip,
1826
1826
  tooltip: e.t("editor.extensions.Table.buttons.add_column_before"),
@@ -1828,7 +1828,7 @@ function Ds(e, t, a, l, o, i) {
1828
1828
  readonly: !e.isTableActive,
1829
1829
  icon: "add_column_before"
1830
1830
  }, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
1831
- r(c, {
1831
+ r(b, {
1832
1832
  command: e.editor.commands.deleteColumn,
1833
1833
  "enable-tooltip": e.enableTooltip,
1834
1834
  tooltip: e.t("editor.extensions.Table.buttons.delete_column"),
@@ -1837,7 +1837,7 @@ function Ds(e, t, a, l, o, i) {
1837
1837
  icon: "delete_column"
1838
1838
  }, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
1839
1839
  r(_, { style: { margin: "5px 0" } }),
1840
- r(c, {
1840
+ r(b, {
1841
1841
  command: e.editor.commands.addRowAfter,
1842
1842
  "enable-tooltip": e.enableTooltip,
1843
1843
  tooltip: e.t("editor.extensions.Table.buttons.add_row_after"),
@@ -1845,7 +1845,7 @@ function Ds(e, t, a, l, o, i) {
1845
1845
  readonly: !e.isTableActive,
1846
1846
  icon: "add_row_after"
1847
1847
  }, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
1848
- r(c, {
1848
+ r(b, {
1849
1849
  command: e.editor.commands.addRowBefore,
1850
1850
  "enable-tooltip": e.enableTooltip,
1851
1851
  tooltip: e.t("editor.extensions.Table.buttons.add_row_before"),
@@ -1853,7 +1853,7 @@ function Ds(e, t, a, l, o, i) {
1853
1853
  readonly: !e.isTableActive,
1854
1854
  icon: "add_row_before"
1855
1855
  }, null, 8, ["command", "enable-tooltip", "tooltip", "readonly"]),
1856
- r(c, {
1856
+ r(b, {
1857
1857
  command: e.editor.commands.deleteRow,
1858
1858
  "enable-tooltip": e.enableTooltip,
1859
1859
  tooltip: e.t("editor.extensions.Table.buttons.delete_row"),
@@ -2098,13 +2098,13 @@ function Ts(e) {
2098
2098
  l.value = h;
2099
2099
  };
2100
2100
  let i;
2101
- const d = se(), u = () => {
2102
- const h = pe(e).extensionManager.extensions.find((c) => c.name === "codeView");
2101
+ const d = re(), u = () => {
2102
+ const h = me(e).extensionManager.extensions.find((b) => b.name === "codeView");
2103
2103
  if (h) {
2104
- const { editorOptions: c } = h.options;
2104
+ const { editorOptions: b } = h.options;
2105
2105
  if (We) {
2106
2106
  const _ = {
2107
- ...c
2107
+ ...b
2108
2108
  };
2109
2109
  We.config.set("basePath", "/ace-addon/");
2110
2110
  const C = d ? "tomorrow_night_eighties" : "sqlserver";
@@ -2117,7 +2117,7 @@ function Ts(e) {
2117
2117
  wrap: _.wrap,
2118
2118
  printMargin: _.printMargin,
2119
2119
  useWorker: _.useWorker,
2120
- value: pe(e).getHTML()
2120
+ value: me(e).getHTML()
2121
2121
  })
2122
2122
  ), We.require("ace/ext/beautify").beautify(t.session);
2123
2123
  }
@@ -2131,9 +2131,9 @@ function Ts(e) {
2131
2131
  t || u();
2132
2132
  });
2133
2133
  else if (t) {
2134
- const c = t.getValue();
2135
- pe(e).commands.setContent(
2136
- c,
2134
+ const b = t.getValue();
2135
+ me(e).commands.setContent(
2136
+ b,
2137
2137
  !0
2138
2138
  /* emitUpdate */
2139
2139
  ), m();
@@ -2312,7 +2312,7 @@ const Ps = L({
2312
2312
  onUpdate: i
2313
2313
  });
2314
2314
  Yo(() => {
2315
- pe(d)?.setOptions({
2315
+ me(d)?.setOptions({
2316
2316
  editorProps: {
2317
2317
  attributes: {
2318
2318
  spellcheck: String(e.spellcheck)
@@ -2320,20 +2320,20 @@ const Ps = L({
2320
2320
  }
2321
2321
  });
2322
2322
  });
2323
- const u = ll.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(ll, f), h = K(!1), c = (f) => {
2323
+ const u = ll.buildI18nHandler(Jo(e.locale)), m = (...f) => u.apply(ll, f), h = K(!1), b = (f) => {
2324
2324
  h.value = f;
2325
2325
  };
2326
- xe("isFullscreen", h), xe("toggleFullscreen", c), xe("enableTooltip", e.tooltip), xe("userState", e.userState);
2326
+ xe("isFullscreen", h), xe("toggleFullscreen", b), xe("enableTooltip", e.tooltip), xe("userState", e.userState);
2327
2327
  const { isCodeViewMode: _, aceAreaRef: C } = Ts(d);
2328
2328
  xe("isCodeViewMode", _);
2329
- const { characters: b } = $s(d), M = le(() => e.enableCharCount && !pe(_));
2329
+ const { characters: c } = $s(d), M = le(() => e.enableCharCount && !me(_));
2330
2330
  return xe("t", m), xe("et", this), {
2331
2331
  t: m,
2332
2332
  onUpdate: i,
2333
2333
  editor: d,
2334
2334
  content: a,
2335
2335
  editActive: l,
2336
- characters: b,
2336
+ characters: c,
2337
2337
  showFooter: M,
2338
2338
  isFullscreen: h,
2339
2339
  isCodeViewMode: _,
@@ -2474,25 +2474,25 @@ function js(e, t, a, l, o, i) {
2474
2474
  class: "el-tiptap-dropdown-menu"
2475
2475
  }, {
2476
2476
  default: s(() => [
2477
- (n(!0), w(E, null, G([0, ...e.levels], (c) => (n(), p(u, {
2478
- key: c,
2479
- command: c,
2477
+ (n(!0), w(E, null, G([0, ...e.levels], (b) => (n(), p(u, {
2478
+ key: b,
2479
+ command: b,
2480
2480
  class: X([
2481
2481
  {
2482
- "el-tiptap-dropdown-menu__item--active": c > 0 ? e.editor.isActive("heading", {
2483
- level: c
2482
+ "el-tiptap-dropdown-menu__item--active": b > 0 ? e.editor.isActive("heading", {
2483
+ level: b
2484
2484
  }) : e.editor.isActive("paragraph")
2485
2485
  },
2486
2486
  "el-tiptap-dropdown-menu__item"
2487
2487
  ])
2488
2488
  }, {
2489
2489
  default: s(() => [
2490
- c > 0 ? (n(), p(pa("h" + c), {
2490
+ b > 0 ? (n(), p(pa("h" + b), {
2491
2491
  key: 0,
2492
2492
  "data-item-type": "heading"
2493
2493
  }, {
2494
2494
  default: s(() => [
2495
- S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(c), 1)
2495
+ S(O(e.t("editor.extensions.Heading.buttons.heading")) + " " + O(b), 1)
2496
2496
  ]),
2497
2497
  _: 2
2498
2498
  }, 1024)) : (n(), w("span", Bs, O(e.t("editor.extensions.Heading.buttons.paragraph")), 1))
@@ -2672,7 +2672,7 @@ const zs = Ci.extend({
2672
2672
  previewIndex: 0
2673
2673
  }), l = K([]), o = K(null), i = e, d = ke({
2674
2674
  providerId: "getfiles-gallery",
2675
- providerType: de.SYS,
2675
+ providerType: ue.SYS,
2676
2676
  options: {
2677
2677
  page: 1,
2678
2678
  limit: i.perPage ? i.perPage : 30
@@ -2702,7 +2702,7 @@ const zs = Ci.extend({
2702
2702
  });
2703
2703
  });
2704
2704
  }
2705
- const h = le(() => l.value.map((F) => F.url)), c = le(() => i.uploadType ? i.uploadType : "editor"), _ = le(() => a.total.toLocaleString()), C = le(() => (a.totalPage > 0 ? a.offset + 1 : a.offset).toLocaleString()), b = le(() => (a.offset + a.totalPage).toLocaleString());
2705
+ const h = le(() => l.value.map((F) => F.url)), b = le(() => i.uploadType ? i.uploadType : "editor"), _ = le(() => a.total.toLocaleString()), C = le(() => (a.totalPage > 0 ? a.offset + 1 : a.offset).toLocaleString()), c = le(() => (a.offset + a.totalPage).toLocaleString());
2706
2706
  function M(F) {
2707
2707
  m();
2708
2708
  }
@@ -2720,7 +2720,7 @@ const zs = Ci.extend({
2720
2720
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
2721
2721
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
2722
2722
  };
2723
- await he.delete(`${i.userState.host}${a.type[c.value].deleteUrl}`, {
2723
+ await ce.delete(`${i.userState.host}${a.type[b.value].deleteUrl}`, {
2724
2724
  data: V,
2725
2725
  headers: {
2726
2726
  Authorization: `Bearer ${i.userState.user?.token}`
@@ -2751,11 +2751,11 @@ const zs = Ci.extend({
2751
2751
  icon: "Refresh",
2752
2752
  onClick: f
2753
2753
  }),
2754
- P("span", Hs, "Showing " + O(C.value) + "-" + O(b.value) + " of " + O(_.value) + " items.", 1)
2754
+ P("span", Hs, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
2755
2755
  ]),
2756
2756
  r(Be, {
2757
2757
  class: "avatar-uploader",
2758
- action: e.userState.host + a.type[c.value].uploadUrl,
2758
+ action: e.userState.host + a.type[b.value].uploadUrl,
2759
2759
  headers: {
2760
2760
  Authorization: `Bearer ${i.userState.user?.token}`
2761
2761
  },
@@ -2786,7 +2786,7 @@ const zs = Ci.extend({
2786
2786
  "preview-teleported": ""
2787
2787
  }, null, 8, ["src", "preview-src-list", "initial-index"]),
2788
2788
  P("span", Ws, [
2789
- fe(F.$slots, "action", { file: Me }, void 0, !0),
2789
+ he(F.$slots, "action", { file: Me }, void 0, !0),
2790
2790
  P("span", {
2791
2791
  class: "el-upload-list__item-preview",
2792
2792
  onClick: (U) => q(Me)
@@ -2945,7 +2945,7 @@ const tr = L({
2945
2945
  }
2946
2946
  }), ar = { class: "el-tiptap-popper__menu" }, lr = ["onClick"];
2947
2947
  function or(e, t, a, l, o, i) {
2948
- const d = z, u = Ye, m = Y("CircleCheck"), h = Ge, c = Js, _ = Fe;
2948
+ const d = z, u = Ye, m = Y("CircleCheck"), h = Ge, b = Js, _ = Fe;
2949
2949
  return n(), w("div", null, [
2950
2950
  r(u, {
2951
2951
  disabled: e.isCodeViewMode,
@@ -2989,7 +2989,7 @@ function or(e, t, a, l, o, i) {
2989
2989
  "append-to-body": !0
2990
2990
  }, {
2991
2991
  default: s(() => [
2992
- r(c, {
2992
+ r(b, {
2993
2993
  "upload-type": "editor",
2994
2994
  readonly: !e.editor?.isEditable,
2995
2995
  "user-state": e.userState
@@ -2998,7 +2998,7 @@ function or(e, t, a, l, o, i) {
2998
2998
  e.editor?.isEditable ? (n(), w("span", {
2999
2999
  key: 0,
3000
3000
  class: "el-upload-list__item-delete",
3001
- onClick: (b) => e.handleSelect(C)
3001
+ onClick: (c) => e.handleSelect(C)
3002
3002
  }, [
3003
3003
  r(h, null, {
3004
3004
  default: s(() => [
@@ -3104,7 +3104,7 @@ const io = /* @__PURE__ */ B(nr, [["render", sr]]), rr = L({
3104
3104
  }
3105
3105
  });
3106
3106
  function dr(e, t, a, l, o, i) {
3107
- const d = z, u = $e, m = pt, h = lt, c = ut, _ = oe, C = Fe;
3107
+ const d = z, u = $e, m = pt, h = lt, b = ut, _ = oe, C = Fe;
3108
3108
  return n(), w("div", null, [
3109
3109
  r(d, {
3110
3110
  command: e.openEditImageDialog,
@@ -3114,7 +3114,7 @@ function dr(e, t, a, l, o, i) {
3114
3114
  }, null, 8, ["command", "enable-tooltip", "tooltip"]),
3115
3115
  r(C, {
3116
3116
  modelValue: e.editImageDialogVisible,
3117
- "onUpdate:modelValue": t[3] || (t[3] = (b) => e.editImageDialogVisible = b),
3117
+ "onUpdate:modelValue": t[3] || (t[3] = (c) => e.editImageDialogVisible = c),
3118
3118
  title: e.t("editor.extensions.Image.control.edit_image.title"),
3119
3119
  "append-to-body": !0,
3120
3120
  width: e.popupWidth,
@@ -3143,7 +3143,7 @@ function dr(e, t, a, l, o, i) {
3143
3143
  }, 8, ["onClick"])
3144
3144
  ]),
3145
3145
  default: s(() => [
3146
- r(c, {
3146
+ r(b, {
3147
3147
  model: e.imageAttrs,
3148
3148
  "label-position": "top"
3149
3149
  }, {
@@ -3166,7 +3166,7 @@ function dr(e, t, a, l, o, i) {
3166
3166
  default: s(() => [
3167
3167
  r(u, {
3168
3168
  modelValue: e.imageAttrs.alt,
3169
- "onUpdate:modelValue": t[0] || (t[0] = (b) => e.imageAttrs.alt = b),
3169
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => e.imageAttrs.alt = c),
3170
3170
  autocomplete: "off"
3171
3171
  }, null, 8, ["modelValue"])
3172
3172
  ]),
@@ -3182,7 +3182,7 @@ function dr(e, t, a, l, o, i) {
3182
3182
  default: s(() => [
3183
3183
  r(u, {
3184
3184
  modelValue: e.imageAttrs.width,
3185
- "onUpdate:modelValue": t[1] || (t[1] = (b) => e.imageAttrs.width = b),
3185
+ "onUpdate:modelValue": t[1] || (t[1] = (c) => e.imageAttrs.width = c),
3186
3186
  type: "number"
3187
3187
  }, null, 8, ["modelValue"])
3188
3188
  ]),
@@ -3202,7 +3202,7 @@ function dr(e, t, a, l, o, i) {
3202
3202
  default: s(() => [
3203
3203
  r(u, {
3204
3204
  modelValue: e.imageAttrs.height,
3205
- "onUpdate:modelValue": t[2] || (t[2] = (b) => e.imageAttrs.height = b),
3205
+ "onUpdate:modelValue": t[2] || (t[2] = (c) => e.imageAttrs.height = c),
3206
3206
  type: "number"
3207
3207
  }, null, 8, ["modelValue"])
3208
3208
  ]),
@@ -3460,7 +3460,7 @@ function Fr(e, t, a, l, o, i) {
3460
3460
  (n(!0), w(E, null, G(e.resizeDirections, (h) => (n(), w("span", {
3461
3461
  key: h,
3462
3462
  class: X([`image-resizer__handler--${h}`, "image-resizer__handler"]),
3463
- onMousedown: (c) => e.onMouseDown(c, h)
3463
+ onMousedown: (b) => e.onMouseDown(b, h)
3464
3464
  }, null, 42, wr))), 128))
3465
3465
  ], 512)), [
3466
3466
  [Rl, e.selected || e.resizing]
@@ -3673,7 +3673,7 @@ const $r = /* @__PURE__ */ B(kr, [["render", Ir]]), Tr = Ei.extend({
3673
3673
  setup(e, { emit: t }) {
3674
3674
  const a = j("t"), l = K(), o = K(!1);
3675
3675
  return { t: a, popoverVisible: o, popoverRef: l, confirmCreateTable: (d, u) => {
3676
- pe(l).hide(), t("createTable", { row: d, col: u });
3676
+ me(l).hide(), t("createTable", { row: d, col: u });
3677
3677
  } };
3678
3678
  },
3679
3679
  data() {
@@ -3786,7 +3786,7 @@ const uo = /* @__PURE__ */ B(Pr, [["render", Br]]), jr = L({
3786
3786
  }
3787
3787
  });
3788
3788
  function Ur(e, t, a, l, o, i) {
3789
- const d = z, u = uo, m = _t, h = ia, c = Ft, _ = wt;
3789
+ const d = z, u = uo, m = _t, h = ia, b = Ft, _ = wt;
3790
3790
  return n(), p(_, {
3791
3791
  placement: "bottom",
3792
3792
  trigger: "click",
@@ -3794,7 +3794,7 @@ function Ur(e, t, a, l, o, i) {
3794
3794
  "max-height": 200
3795
3795
  }, {
3796
3796
  dropdown: s(() => [
3797
- r(c, { class: "el-tiptap-dropdown-menu" }, {
3797
+ r(b, { class: "el-tiptap-dropdown-menu" }, {
3798
3798
  default: s(() => [
3799
3799
  r(m, {
3800
3800
  class: "el-tiptap-dropdown-menu__item",
@@ -4171,7 +4171,7 @@ const xr = ot.create({
4171
4171
  }
4172
4172
  });
4173
4173
  function Gr(e, t, a, l, o, i) {
4174
- const d = z, u = $e, m = pt, h = ut, c = oe, _ = Fe;
4174
+ const d = z, u = $e, m = pt, h = ut, b = oe, _ = Fe;
4175
4175
  return n(), w("div", null, [
4176
4176
  r(d, {
4177
4177
  "is-active": e.editor.isActive("link"),
@@ -4190,7 +4190,7 @@ function Gr(e, t, a, l, o, i) {
4190
4190
  class: "el-tiptap-edit-link-dialog"
4191
4191
  }, {
4192
4192
  footer: s(() => [
4193
- r(c, {
4193
+ r(b, {
4194
4194
  round: "",
4195
4195
  onClick: e.closeAddLinkDialog
4196
4196
  }, {
@@ -4199,7 +4199,7 @@ function Gr(e, t, a, l, o, i) {
4199
4199
  ]),
4200
4200
  _: 1
4201
4201
  }, 8, ["onClick"]),
4202
- r(c, {
4202
+ r(b, {
4203
4203
  type: "primary",
4204
4204
  round: "",
4205
4205
  onMousedown: t[1] || (t[1] = R(() => {
@@ -4308,7 +4308,7 @@ const Yr = /* @__PURE__ */ B(Kr, [["render", Gr]]), bl = xi.extend({
4308
4308
  const t = j("t"), a = j("enableTooltip", !0), l = j("isCodeViewMode", !1), o = K(), i = K("");
4309
4309
  function d(m) {
4310
4310
  let h = e.editor.commands;
4311
- m ? h.setColor(m) : h.unsetColor(), pe(o).hide();
4311
+ m ? h.setColor(m) : h.unsetColor(), me(o).hide();
4312
4312
  }
4313
4313
  const u = le(() => ca(e.editor.state, "textStyle").color || "");
4314
4314
  return Ke(u, (m) => {
@@ -4350,18 +4350,18 @@ function td(e, t, a, l, o, i) {
4350
4350
  ]),
4351
4351
  default: s(() => [
4352
4352
  P("div", Xr, [
4353
- (n(!0), w(E, null, G(e.colorSet, (c) => (n(), w("div", {
4354
- key: c,
4353
+ (n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
4354
+ key: b,
4355
4355
  class: "color__wrapper"
4356
4356
  }, [
4357
4357
  P("div", {
4358
4358
  style: te({
4359
- "background-color": c
4359
+ "background-color": b
4360
4360
  }),
4361
- class: X([{ "color--selected": e.selectedColor === c }, "color"]),
4361
+ class: X([{ "color--selected": e.selectedColor === b }, "color"]),
4362
4362
  onMousedown: t[0] || (t[0] = R(() => {
4363
4363
  }, ["prevent"])),
4364
- onClick: R((_) => e.confirmColor(c), ["stop"])
4364
+ onClick: R((_) => e.confirmColor(b), ["stop"])
4365
4365
  }, null, 46, Qr)
4366
4366
  ]))), 128)),
4367
4367
  P("div", Zr, [
@@ -4369,14 +4369,14 @@ function td(e, t, a, l, o, i) {
4369
4369
  class: "color color--remove",
4370
4370
  onMousedown: t[1] || (t[1] = R(() => {
4371
4371
  }, ["prevent"])),
4372
- onClick: t[2] || (t[2] = R((c) => e.confirmColor(), ["stop"]))
4372
+ onClick: t[2] || (t[2] = R((b) => e.confirmColor(), ["stop"]))
4373
4373
  }, null, 32)
4374
4374
  ])
4375
4375
  ]),
4376
4376
  P("div", ed, [
4377
4377
  r(d, {
4378
4378
  modelValue: e.colorText,
4379
- "onUpdate:modelValue": t[3] || (t[3] = (c) => e.colorText = c),
4379
+ "onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorText = b),
4380
4380
  class: "color-hex__input ml-1",
4381
4381
  teleported: !1
4382
4382
  }, null, 8, ["modelValue"]),
@@ -4385,7 +4385,7 @@ function td(e, t, a, l, o, i) {
4385
4385
  type: "primary",
4386
4386
  size: "small",
4387
4387
  class: "color-hex__button",
4388
- onClick: t[4] || (t[4] = (c) => e.confirmColor(e.colorText))
4388
+ onClick: t[4] || (t[4] = (b) => e.confirmColor(e.colorText))
4389
4389
  }, {
4390
4390
  default: s(() => [...t[5] || (t[5] = [
4391
4391
  S(" OK ", -1)
@@ -4432,8 +4432,8 @@ const ad = /* @__PURE__ */ B(Jr, [["render", td]]), gl = Wi.extend({
4432
4432
  setup(e) {
4433
4433
  const t = j("t"), a = j("enableTooltip", !0), l = j("isCodeViewMode", !1), o = K(null), i = K(!1), d = K("");
4434
4434
  function u(h) {
4435
- let c = e.editor.commands;
4436
- h ? c.setHighlight({ color: h }) : c.unsetHighlight(), pe(o).hide();
4435
+ let b = e.editor.commands;
4436
+ h ? b.setHighlight({ color: h }) : b.unsetHighlight(), me(o).hide();
4437
4437
  }
4438
4438
  const m = le(() => ca(e.editor.state, "highlight").color || "");
4439
4439
  return Ke(m, (h) => {
@@ -4476,18 +4476,18 @@ function rd(e, t, a, l, o, i) {
4476
4476
  ]),
4477
4477
  default: s(() => [
4478
4478
  P("div", od, [
4479
- (n(!0), w(E, null, G(e.colorSet, (c) => (n(), w("div", {
4480
- key: c,
4479
+ (n(!0), w(E, null, G(e.colorSet, (b) => (n(), w("div", {
4480
+ key: b,
4481
4481
  class: "color__wrapper"
4482
4482
  }, [
4483
4483
  P("div", {
4484
4484
  style: te({
4485
- "background-color": c
4485
+ "background-color": b
4486
4486
  }),
4487
- class: X([{ "color--selected": e.selectedColor === c }, "color"]),
4487
+ class: X([{ "color--selected": e.selectedColor === b }, "color"]),
4488
4488
  onMousedown: t[0] || (t[0] = R(() => {
4489
4489
  }, ["prevent"])),
4490
- onClick: R((_) => e.confirmColor(c), ["stop"])
4490
+ onClick: R((_) => e.confirmColor(b), ["stop"])
4491
4491
  }, null, 46, id)
4492
4492
  ]))), 128)),
4493
4493
  P("div", nd, [
@@ -4495,14 +4495,14 @@ function rd(e, t, a, l, o, i) {
4495
4495
  class: "color color--remove",
4496
4496
  onMousedown: t[1] || (t[1] = R(() => {
4497
4497
  }, ["prevent"])),
4498
- onClick: t[2] || (t[2] = R((c) => e.confirmColor(), ["stop"]))
4498
+ onClick: t[2] || (t[2] = R((b) => e.confirmColor(), ["stop"]))
4499
4499
  }, null, 32)
4500
4500
  ])
4501
4501
  ]),
4502
4502
  P("div", sd, [
4503
4503
  r(d, {
4504
4504
  modelValue: e.colorBg,
4505
- "onUpdate:modelValue": t[3] || (t[3] = (c) => e.colorBg = c),
4505
+ "onUpdate:modelValue": t[3] || (t[3] = (b) => e.colorBg = b),
4506
4506
  class: "color-hex__input ml-1",
4507
4507
  teleported: !1
4508
4508
  }, null, 8, ["modelValue"]),
@@ -4511,7 +4511,7 @@ function rd(e, t, a, l, o, i) {
4511
4511
  type: "primary",
4512
4512
  size: "small",
4513
4513
  class: "color-hex__button",
4514
- onClick: t[4] || (t[4] = (c) => e.confirmColor(e.colorBg))
4514
+ onClick: t[4] || (t[4] = (b) => e.confirmColor(e.colorBg))
4515
4515
  }, {
4516
4516
  default: s(() => [...t[5] || (t[5] = [
4517
4517
  S(" OK ", -1)
@@ -4597,18 +4597,18 @@ function hd(e, t, a, l, o, i) {
4597
4597
  dropdown: s(() => [
4598
4598
  r(m, { class: "el-tiptap-dropdown-menu" }, {
4599
4599
  default: s(() => [
4600
- (n(!0), w(E, null, G(e.fontFamilies, (c) => (n(), p(u, {
4601
- key: c,
4602
- command: c,
4600
+ (n(!0), w(E, null, G(e.fontFamilies, (b) => (n(), p(u, {
4601
+ key: b,
4602
+ command: b,
4603
4603
  class: X([{
4604
- "el-tiptap-dropdown-menu__item--active": c === e.activeFontFamily
4604
+ "el-tiptap-dropdown-menu__item--active": b === e.activeFontFamily
4605
4605
  }, "el-tiptap-dropdown-menu__item"])
4606
4606
  }, {
4607
4607
  default: s(() => [
4608
4608
  P("span", {
4609
- "data-font": c,
4610
- style: te({ "font-family": c })
4611
- }, O(c), 13, fd)
4609
+ "data-font": b,
4610
+ style: te({ "font-family": b })
4611
+ }, O(b), 13, fd)
4612
4612
  ]),
4613
4613
  _: 2
4614
4614
  }, 1032, ["command", "class"]))), 128))
@@ -4745,15 +4745,15 @@ function Sd(e, t, a, l, o, i) {
4745
4745
  ]),
4746
4746
  _: 1
4747
4747
  }, 8, ["command", "class"]),
4748
- (n(!0), w(E, null, G(e.fontSizes, (c) => (n(), p(u, {
4749
- key: c,
4750
- command: c,
4748
+ (n(!0), w(E, null, G(e.fontSizes, (b) => (n(), p(u, {
4749
+ key: b,
4750
+ command: b,
4751
4751
  class: X([{
4752
- "el-tiptap-dropdown-menu__item--active": c === e.activeFontSize
4752
+ "el-tiptap-dropdown-menu__item--active": b === e.activeFontSize
4753
4753
  }, "el-tiptap-dropdown-menu__item"])
4754
4754
  }, {
4755
4755
  default: s(() => [
4756
- P("span", { "data-font-size": c }, O(c), 9, _d)
4756
+ P("span", { "data-font-size": b }, O(b), 9, _d)
4757
4757
  ]),
4758
4758
  _: 2
4759
4759
  }, 1032, ["command", "class"]))), 128))
@@ -4868,7 +4868,7 @@ const kd = /* @__PURE__ */ B(wd, [["render", Sd]]), Cd = He.create({
4868
4868
  }
4869
4869
  });
4870
4870
  function Id(e, t, a, l, o, i) {
4871
- const d = z, u = $e, m = pt, h = Nt, c = lt, _ = St, C = ut, b = oe, M = Fe;
4871
+ const d = z, u = $e, m = pt, h = Nt, b = lt, _ = St, C = ut, c = oe, M = Fe;
4872
4872
  return n(), w("div", null, [
4873
4873
  r(d, {
4874
4874
  "is-active": e.editor.isActive("youtube"),
@@ -4887,7 +4887,7 @@ function Id(e, t, a, l, o, i) {
4887
4887
  class: "el-tiptap-edit-link-dialog"
4888
4888
  }, {
4889
4889
  footer: s(() => [
4890
- r(b, {
4890
+ r(c, {
4891
4891
  round: "",
4892
4892
  onClick: e.closeAddYoutubeDialog
4893
4893
  }, {
@@ -4896,7 +4896,7 @@ function Id(e, t, a, l, o, i) {
4896
4896
  ]),
4897
4897
  _: 1
4898
4898
  }, 8, ["onClick"]),
4899
- r(b, {
4899
+ r(c, {
4900
4900
  type: "primary",
4901
4901
  round: "",
4902
4902
  onMousedown: t[3] || (t[3] = R(() => {
@@ -4931,7 +4931,7 @@ function Id(e, t, a, l, o, i) {
4931
4931
  }),
4932
4932
  r(_, { gutter: 20 }, {
4933
4933
  default: s(() => [
4934
- r(c, { span: 12 }, {
4934
+ r(b, { span: 12 }, {
4935
4935
  default: s(() => [
4936
4936
  r(m, {
4937
4937
  label: "Width",
@@ -4951,7 +4951,7 @@ function Id(e, t, a, l, o, i) {
4951
4951
  ]),
4952
4952
  _: 1
4953
4953
  }),
4954
- r(c, { span: 12 }, {
4954
+ r(b, { span: 12 }, {
4955
4955
  default: s(() => [
4956
4956
  r(m, {
4957
4957
  label: "Height",
@@ -5063,7 +5063,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5063
5063
  totalPage: 0
5064
5064
  }), i = K([]), d = e, u = ke({
5065
5065
  providerId: "getfiles-uploadfile",
5066
- providerType: de.SYS,
5066
+ providerType: ue.SYS,
5067
5067
  options: {
5068
5068
  page: 1,
5069
5069
  limit: d.perPage ? d.perPage : 30
@@ -5094,7 +5094,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5094
5094
  });
5095
5095
  });
5096
5096
  }
5097
- const c = le(() => d.uploadType ? d.uploadType : "editor"), _ = le(() => o.total.toLocaleString()), C = le(() => (o.totalPage > 0 ? o.offset + 1 : o.offset).toLocaleString()), b = le(() => (o.offset + o.totalPage).toLocaleString());
5097
+ const b = le(() => d.uploadType ? d.uploadType : "editor"), _ = le(() => o.total.toLocaleString()), C = le(() => (o.totalPage > 0 ? o.offset + 1 : o.offset).toLocaleString()), c = le(() => (o.offset + o.totalPage).toLocaleString());
5098
5098
  function M(F) {
5099
5099
  h();
5100
5100
  }
@@ -5127,7 +5127,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5127
5127
  fileGroup: I.file_group ? I.file_group : I.fileGroup ? I.fileGroup : "",
5128
5128
  fileId: I._id ? I._id : I.fileId ? I.fileId : ""
5129
5129
  };
5130
- he.delete(`${d.userState.host}${o.type[c.value].deleteUrl}`, {
5130
+ ce.delete(`${d.userState.host}${o.type[b.value].deleteUrl}`, {
5131
5131
  data: V,
5132
5132
  headers: {
5133
5133
  Authorization: `Bearer ${d.userState.user?.token}`
@@ -5150,7 +5150,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5150
5150
  const V = oe, T = ze, H = Ma, Z = na, x = Fe;
5151
5151
  return n(), w(E, null, [
5152
5152
  r(H, {
5153
- action: e.userState.host + o.type[c.value].uploadUrl,
5153
+ action: e.userState.host + o.type[b.value].uploadUrl,
5154
5154
  headers: {
5155
5155
  Authorization: `Bearer ${d.userState.user?.token}`
5156
5156
  },
@@ -5196,7 +5196,7 @@ const $d = /* @__PURE__ */ B(Dd, [["render", Id]]), Td = Yi.extend({
5196
5196
  icon: "Refresh",
5197
5197
  onClick: f
5198
5198
  }),
5199
- P("span", Vd, "Showing " + O(C.value) + "-" + O(b.value) + " of " + O(_.value) + " items.", 1)
5199
+ P("span", Vd, "Showing " + O(C.value) + "-" + O(c.value) + " of " + O(_.value) + " items.", 1)
5200
5200
  ]),
5201
5201
  _: 1
5202
5202
  }, 8, ["action", "headers", "data", "file-list", "disabled", "on-preview"]),
@@ -5412,8 +5412,8 @@ function jd(e, t, a, l) {
5412
5412
  return e;
5413
5413
  const { from: d, to: u } = i;
5414
5414
  return o.nodesBetween(d, u, (m, h) => {
5415
- const c = m.type;
5416
- return a.includes(c.name) ? (e = Ud(e, h, t), !1) : !ei(m.type.name, l.extensionManager.extensions);
5415
+ const b = m.type;
5416
+ return a.includes(b.name) ? (e = Ud(e, h, t), !1) : !ei(m.type.name, l.extensionManager.extensions);
5417
5417
  }), e;
5418
5418
  }
5419
5419
  function Ud(e, t, a) {
@@ -5508,8 +5508,8 @@ function Rd(e, t) {
5508
5508
  const { selection: a, doc: l } = e, { from: o, to: i } = a;
5509
5509
  let d = !0, u = !1;
5510
5510
  return l.nodesBetween(o, i, (m) => {
5511
- const h = m.type, c = m.attrs.lineHeight || la;
5512
- return fo.includes(h.name) ? d && t === c ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
5511
+ const h = m.type, b = m.attrs.lineHeight || la;
5512
+ return fo.includes(h.name) ? d && t === b ? (d = !1, u = !0, !1) : h.name !== "list_item" && h.name !== "todo_item" : d;
5513
5513
  }), u;
5514
5514
  }
5515
5515
  function zd(e) {
@@ -5536,19 +5536,19 @@ function Hd(e, t) {
5536
5536
  return e;
5537
5537
  const { from: o, to: i } = a, d = [], u = t && t !== la ? t : null;
5538
5538
  return l.nodesBetween(o, i, (m, h) => {
5539
- const c = m.type;
5540
- return fo.includes(c.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
5539
+ const b = m.type;
5540
+ return fo.includes(b.name) ? ((m.attrs.lineHeight || null) !== u && d.push({
5541
5541
  node: m,
5542
5542
  pos: h,
5543
- nodeType: c
5544
- }), c.name !== "list_item" && c.name !== "todo_item") : !0;
5543
+ nodeType: b
5544
+ }), b.name !== "list_item" && b.name !== "todo_item") : !0;
5545
5545
  }), d.length && d.forEach((m) => {
5546
- const { node: h, pos: c, nodeType: _ } = m;
5546
+ const { node: h, pos: b, nodeType: _ } = m;
5547
5547
  let { attrs: C } = h;
5548
5548
  C = {
5549
5549
  ...C,
5550
5550
  lineHeight: u
5551
- }, e = e.setNodeMarkup(c, _, C, h.marks);
5551
+ }, e = e.setNodeMarkup(b, _, C, h.marks);
5552
5552
  }), e;
5553
5553
  }
5554
5554
  function xd(e) {
@@ -5592,7 +5592,7 @@ function Kd(e, t, a, l, o, i) {
5592
5592
  return n(), p(h, {
5593
5593
  placement: "bottom",
5594
5594
  trigger: "click",
5595
- onCommand: t[0] || (t[0] = (c) => e.editor.commands.setLineHeight(c))
5595
+ onCommand: t[0] || (t[0] = (b) => e.editor.commands.setLineHeight(b))
5596
5596
  }, {
5597
5597
  dropdown: s(() => [
5598
5598
  r(m, {
@@ -5600,15 +5600,15 @@ function Kd(e, t, a, l, o, i) {
5600
5600
  class: "el-tiptap-dropdown-menu"
5601
5601
  }, {
5602
5602
  default: s(() => [
5603
- (n(!0), w(E, null, G(e.lineHeights, (c) => (n(), p(u, {
5604
- key: c,
5605
- command: c,
5603
+ (n(!0), w(E, null, G(e.lineHeights, (b) => (n(), p(u, {
5604
+ key: b,
5605
+ command: b,
5606
5606
  class: X([{
5607
- "el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(c)
5607
+ "el-tiptap-dropdown-menu__item--active": e.isLineHeightActive(b)
5608
5608
  }, "el-tiptap-dropdown-menu__item"])
5609
5609
  }, {
5610
5610
  default: s(() => [
5611
- P("span", null, O(c), 1)
5611
+ P("span", null, O(b), 1)
5612
5612
  ]),
5613
5613
  _: 2
5614
5614
  }, 1032, ["command", "class"]))), 128))
@@ -5860,7 +5860,7 @@ const iu = /* @__PURE__ */ B(lu, [["render", ou]]), nu = {
5860
5860
  props: we,
5861
5861
  data() {
5862
5862
  return {
5863
- isDark: se()
5863
+ isDark: re()
5864
5864
  };
5865
5865
  },
5866
5866
  mounted() {
@@ -5877,7 +5877,7 @@ function du(e, t, a, l, o, i) {
5877
5877
  default: s(() => [
5878
5878
  r(u, ae(e.node.attrs, { dark: e.isDark }), {
5879
5879
  default: s(() => [
5880
- (n(!0), w(E, null, G(e.node.content.content, (h, c) => (n(), w(E, null, [
5880
+ (n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
5881
5881
  h.type.name === "ElIcon" ? (n(), p(d, {
5882
5882
  key: 0,
5883
5883
  "icon-name": h.attrs.icon,
@@ -5978,7 +5978,7 @@ function mu(e, t, a, l, o, i) {
5978
5978
  default: s(() => [
5979
5979
  r(u, Oa(Na(e.node.attrs)), {
5980
5980
  default: s(() => [
5981
- (n(!0), w(E, null, G(e.node.content.content, (h, c) => (n(), w(E, null, [
5981
+ (n(!0), w(E, null, G(e.node.content.content, (h, b) => (n(), w(E, null, [
5982
5982
  h.type.name === "ElButton" ? (n(), p(d, ae({
5983
5983
  key: 0,
5984
5984
  ref_for: !0
@@ -6082,7 +6082,7 @@ const bu = /* @__PURE__ */ B(hu, [["render", cu]]), Il = ot.create({
6082
6082
  },
6083
6083
  props: we,
6084
6084
  data() {
6085
- return { isDark: se() };
6085
+ return { isDark: re() };
6086
6086
  },
6087
6087
  mounted() {
6088
6088
  },
@@ -6831,7 +6831,7 @@ function Mu(e, t, a, l, o, i) {
6831
6831
  onPaste: t[6] || (t[6] = (...d) => e.onPaste && e.onPaste(...d))
6832
6832
  }, null, 40, Tu);
6833
6833
  }
6834
- const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => await he.post(
6834
+ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => await ce.post(
6835
6835
  `${a.host}/widget/crud/getdata-all`,
6836
6836
  { sdProvider: e, totalEnable: t },
6837
6837
  {
@@ -6839,7 +6839,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6839
6839
  Authorization: `Bearer ${a.user?.token}`
6840
6840
  }
6841
6841
  }
6842
- ).then((o) => o.data && o.data.message ? { response: !0, data: o.data, message: o.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: null, message: o.response.data.message } : { response: !1, data: null, message: "Can't get data (error)" }), Ot = async (e, t) => await he.post(
6842
+ ).then((o) => o.data && o.data.message ? { response: !0, data: o.data, message: o.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: null, message: o.response.data.message } : { response: !1, data: null, message: "Can't get data (error)" }), Ot = async (e, t) => await ce.post(
6843
6843
  `${t.host}/widget/crud/getdata-one`,
6844
6844
  { sdProvider: e },
6845
6845
  {
@@ -6847,7 +6847,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6847
6847
  Authorization: `Bearer ${t.user?.token}`
6848
6848
  }
6849
6849
  }
6850
- ).then((l) => l.data && l.data.message ? { response: !0, data: l.data, message: l.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: null, message: l.response.data.message } : { response: !1, data: null, message: "Can't get data" }), Ie = async (e, t) => await he.post(
6850
+ ).then((l) => l.data && l.data.message ? { response: !0, data: l.data, message: l.data.message } : { response: !1, data: null, message: "Can't get data" }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: null, message: l.response.data.message } : { response: !1, data: null, message: "Can't get data" }), Ie = async (e, t) => await ce.post(
6851
6851
  `${t.host}/widget/sdform/getform`,
6852
6852
  { formId: e },
6853
6853
  {
@@ -6861,7 +6861,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6861
6861
  return o.dataid = o._id, { response: !0, data: o, message: l.data.message };
6862
6862
  } else
6863
6863
  return { response: !1, data: void 0, message: "Can't get form" };
6864
- }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: void 0, message: l.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), Pu = async (e, t, a) => await he.post(
6864
+ }).catch((l) => l.response && l.response.data && l.response.data.message ? { response: !1, data: void 0, message: l.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), Pu = async (e, t, a) => await ce.post(
6865
6865
  `${a.host}/widget/sdform/getform-version`,
6866
6866
  { formId: e, versionName: t },
6867
6867
  {
@@ -6875,7 +6875,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6875
6875
  return i.dataid = i._id, { response: !0, data: i, message: o.data.message };
6876
6876
  } else
6877
6877
  return { response: !1, data: void 0, message: "Can't get form" };
6878
- }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), wa = async (e, t) => await he.post(
6878
+ }).catch((o) => o.response && o.response.data && o.response.data.message ? { response: !1, data: void 0, message: o.response.data.message } : { response: !1, data: void 0, message: "Can't get form" }), wa = async (e, t) => await ce.post(
6879
6879
  `${t.host}/widget/sdform/insert-empty`,
6880
6880
  { formId: e },
6881
6881
  {
@@ -6889,12 +6889,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6889
6889
  return o.dataid = l.data.id, o._id = l.data.id, o;
6890
6890
  } else
6891
6891
  return null;
6892
- }).catch((l) => null), Vu = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/delete-empty`, {
6892
+ }).catch((l) => null), Vu = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/delete-empty`, {
6893
6893
  headers: {
6894
6894
  Authorization: `Bearer ${a.user?.token}`
6895
6895
  },
6896
6896
  data: { formId: e, dataId: t }
6897
- }).then((o) => !0).catch((o) => !1), dt = async (e, t, a, l, o) => await he.put(
6897
+ }).then((o) => !0).catch((o) => !1), dt = async (e, t, a, l, o) => await ce.put(
6898
6898
  `${o.host}/widget/sdform/save-data`,
6899
6899
  { formId: e, dataId: t, dataUpdate: a, rstat: l },
6900
6900
  {
@@ -6908,12 +6908,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6908
6908
  return u._id = d.data.id, u.dataid = u._id, { data: u, message: d.data.message };
6909
6909
  } else
6910
6910
  return { data: null, message: d.data.message };
6911
- }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), ja = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/remove-data`, {
6911
+ }).catch((d) => d.response && d.response.data && d.response.data.message ? { data: null, message: d.response.data.message } : { data: null, message: "Can't save data" }), ja = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/remove-data`, {
6912
6912
  headers: {
6913
6913
  Authorization: `Bearer ${a.user?.token}`
6914
6914
  },
6915
6915
  data: { formId: e, dataId: t }
6916
- }).then((o) => !0).catch((o) => !1), ug = async (e, t, a) => await he.delete(`${a.host}/widget/sdform/delete-data`, {
6916
+ }).then((o) => !0).catch((o) => !1), ug = async (e, t, a) => await ce.delete(`${a.host}/widget/sdform/delete-data`, {
6917
6917
  headers: {
6918
6918
  Authorization: `Bearer ${a.user?.token}`
6919
6919
  },
@@ -6941,7 +6941,7 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
6941
6941
  ], pg = (e, t) => e && Object.keys(e).length > 0 && e[t] && e[t].type ? e[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any, co = (e, t) => {
6942
6942
  const a = e && e.form_db && e.form_db.schema ? e.form_db.schema : null;
6943
6943
  return a && Object.keys(a).length > 0 && t && a[t] && a[t].type ? a[t].type : ["_id", "xparentx"].includes(t) ? Ue.ObjectId : Ue.Any;
6944
- }, Pl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", mg = async (e, t, a, l) => await he.put(
6944
+ }, Pl = (e, t) => ["_id", "xparentx"].includes(t) ? !0 : co(e, t) === "ObjectId", mg = async (e, t, a, l) => await ce.put(
6945
6945
  `${l.host}/widget/sdform/check-parent`,
6946
6946
  { formId: e, dataId: t, formData: a },
6947
6947
  {
@@ -7083,48 +7083,49 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7083
7083
  {
7084
7084
  let o = a.form_db.schema;
7085
7085
  if (l && a.form_db.schema[l] && a.form_db.schema[l].subField && (o = a.form_db.schema[l].subField), o[t]) {
7086
- const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"], c = ["tags-input"], _ = ["number-input"], C = ["select-form-input", "select-data-input", "select-sql-input"];
7086
+ const i = o[t], d = ["switch-input"], u = ["radio-input", "select-input", "checkbox-input"], m = ["date-input", "date-range-input", "time-input", "time-range-input", "multiple-date"], h = ["file-upload-input", "picture-upload-input", "crop-upload-input"], b = ["tags-input"], _ = ["number-input"], C = ["select-form-input", "select-data-input", "select-sql-input"];
7087
7087
  if (d.includes(i.component))
7088
7088
  return e ? "True" : "False";
7089
7089
  if (u.includes(i.component)) {
7090
- const b = a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : [];
7090
+ const c = a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : [];
7091
7091
  if (Array.isArray(e)) {
7092
7092
  const M = e;
7093
7093
  let f = [];
7094
7094
  return M.forEach((y, k) => {
7095
- const A = b.find((q) => !!q && q.value == y);
7095
+ const A = c.find((q) => !!q && q.value == y);
7096
7096
  A != null && A != null ? f.push(A.label) : f.push(y);
7097
7097
  }), f.join(", ");
7098
7098
  } else {
7099
- const M = b.find((f) => !!f && f.value == e);
7099
+ const M = c.find((f) => !!f && f.value == e);
7100
7100
  if (M != null && M != null)
7101
7101
  return M.label;
7102
7102
  }
7103
7103
  return e;
7104
7104
  } else if (m.includes(i.component)) {
7105
7105
  if ((i.component == "time-input" || i.component == "time-range-input") && (i.valueFormat = "HH:mm:ss"), Array.isArray(e)) {
7106
- const b = e;
7106
+ const c = e;
7107
7107
  let M = [];
7108
- return b.forEach((f, y) => {
7108
+ return c.forEach((f, y) => {
7109
7109
  i.format && i.valueFormat ? M.push(ve(f, i.valueFormat).format(i.format)) : M.push(f);
7110
7110
  }), M.length > 2 ? M.join(", ") : M.join(" - ");
7111
7111
  } else if (i.format && i.valueFormat)
7112
7112
  return ve(e, i.valueFormat).format(i.format);
7113
+ } else if (h.includes(i.component)) {
7114
+ const c = e;
7115
+ return c && Array.isArray(c) ? c.map((M) => M.url).join(", ") : e;
7113
7116
  } else {
7114
- if (h.includes(i.component))
7115
- return e.map((M) => M.url).join(", ");
7116
- if (c.includes(i.component))
7117
- return e.join(", ");
7117
+ if (b.includes(i.component))
7118
+ return e && Array.isArray(e) ? e.join(", ") : e;
7118
7119
  if (_.includes(i.component)) {
7119
- const b = Number(e);
7120
- if (!isNaN(b)) {
7120
+ const c = Number(e);
7121
+ if (!isNaN(c)) {
7121
7122
  const M = Number(i.format);
7122
- return isNaN(M) ? b.toLocaleString("en-US") : b.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
7123
+ return isNaN(M) ? c.toLocaleString("en-US") : c.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
7123
7124
  }
7124
7125
  return e;
7125
7126
  } else {
7126
7127
  if (C.includes(i.component))
7127
- return i.multiple ? e.label ? e.label : e.value ? Object.keys(e.value).length > 0 ? e.value.join ? e.value.join(", ") : e.value : null : e.join ? e.join(", ") : e : e.label ? e.label : e;
7128
+ return i.multiple ? e.label ? e.label : e.value ? Object.keys(e.value).length > 0 ? e.value.join ? e.value.join(", ") : e.value : null : e && Array.isArray(e) ? e.join(", ") : e : e.label ? e.label : e;
7128
7129
  if (i.component === "radio-text-input") {
7129
7130
  const M = (a.form_db.data_list[i.fieldName] ? a.form_db.data_list[i.fieldName] : []).find(
7130
7131
  (f) => !!f && f.value == e.value
@@ -7134,24 +7135,24 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7134
7135
  if (i.type === "Boolean")
7135
7136
  return e ? "True" : "False";
7136
7137
  if (i.type === "Array" || i.multiple)
7137
- return e.join && Array.isArray(e) ? e.join(", ") : e;
7138
+ return e && Array.isArray(e) ? e.join(", ") : e;
7138
7139
  if (["Number", "Integer"].includes(i.type)) {
7139
- const b = Number(e);
7140
- if (!isNaN(b)) {
7140
+ const c = Number(e);
7141
+ if (!isNaN(c)) {
7141
7142
  const M = Number(i.format);
7142
- return isNaN(M) ? b.toLocaleString("en-US") : b.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
7143
+ return isNaN(M) ? c.toLocaleString("en-US") : c.toLocaleString("en-US", { minimumFractionDigits: M, maximumFractionDigits: M });
7143
7144
  }
7144
7145
  return e;
7145
7146
  } else if (["StringDate", "ArrayDate", "Date", "Timestamp"].includes(i.type)) {
7146
7147
  if (Array.isArray(e)) {
7147
- const b = e;
7148
+ const c = e;
7148
7149
  let M = [];
7149
- return b.forEach((f, y) => {
7150
+ return c.forEach((f, y) => {
7150
7151
  i.format && i.valueFormat ? M.push(ve(f, i.valueFormat).format(i.format)) : M.push(f);
7151
7152
  }), M.length > 2 ? M.join(", ") : M.join(" - ");
7152
7153
  } else if (i.format && i.valueFormat)
7153
7154
  return ve(e, i.valueFormat).format(i.format);
7154
- } else return ["String|Array", "Object|Array"].includes(i.type) ? e.join && Array.isArray(e) ? e.join(", ") : e : typeof e == "object" ? JSON.stringify(e) : e;
7155
+ } else return ["String|Array", "Object|Array"].includes(i.type) ? e && Array.isArray(e) ? e.join(", ") : e : typeof e == "object" ? JSON.stringify(e) : e;
7155
7156
  }
7156
7157
  }
7157
7158
  }
@@ -7166,12 +7167,19 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7166
7167
  for (const u of e)
7167
7168
  if (u[a] && u[a] === d) {
7168
7169
  let m = [], h = {};
7169
- l.forEach((c) => {
7170
- u[c] ? (m.push(u[c]), h[`{{${c}}}`] = u[c]) : h[`{{${c}}}`] = "";
7171
- }), o && o != "" ? i.push(re(o, h)) : i.push(m.join(" "));
7170
+ l.forEach((b) => {
7171
+ const _ = de(u, b);
7172
+ _ ? (m.push(_), h[`{{${b}}}`] = _) : h[`{{${b}}}`] = "";
7173
+ }), o && o != "" ? i.push(se(o, h)) : i.push(m.join(" "));
7172
7174
  break;
7173
7175
  }
7174
7176
  return i.join(", ");
7177
+ }, fg = (e, t, a) => {
7178
+ let l = "", o = [], i = {};
7179
+ return t.forEach((d) => {
7180
+ const u = de(e, d);
7181
+ u ? (o.push(u), i[`{{${d}}}`] = u) : i[`{{${d}}}`] = "";
7182
+ }), a && a != "" ? l = se(a, i) : l = o.join(" "), l;
7175
7183
  }, Eu = L({
7176
7184
  name: "SdGridColumnDynamic",
7177
7185
  components: {
@@ -7267,12 +7275,12 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7267
7275
  if (d > 0 && this.subIndex === -1 && i[d]) {
7268
7276
  const h = i[d];
7269
7277
  i = i.slice(0, d);
7270
- let c = i.length > 0 ? i.join(".") : i.join();
7271
- if (e[c] && e[c].type && e[c].type == "Array") {
7272
- let _ = ce(t, c), C = [];
7273
- for (const b in _)
7274
- if (Object.prototype.hasOwnProperty.call(_, b)) {
7275
- let f = _[b][h];
7278
+ let b = i.length > 0 ? i.join(".") : i.join();
7279
+ if (e[b] && e[b].type && e[b].type == "Array") {
7280
+ let _ = de(t, b), C = [];
7281
+ for (const c in _)
7282
+ if (Object.prototype.hasOwnProperty.call(_, c)) {
7283
+ let f = _[c][h];
7276
7284
  f && (this.rawValue ? C.push(f) : C.push(Ae(f, a, l)));
7277
7285
  }
7278
7286
  return C.join(", ");
@@ -7280,13 +7288,13 @@ const dg = /* @__PURE__ */ B($u, [["render", Mu]]), at = async (e, t, a) => awai
7280
7288
  }
7281
7289
  let u = a;
7282
7290
  this.subIndex > -1 && (u = `${this.parentName}.${this.subIndex}.${this.fieldName}`);
7283
- let m = ce(t, u);
7291
+ let m = de(t, u);
7284
7292
  return this.rawValue ? m ?? null : Ae(m, a, l, o);
7285
7293
  }
7286
7294
  }
7287
7295
  });
7288
7296
  function Lu(e, t, a, l, o, i) {
7289
- const d = ge, u = oe, m = Y("sd-value-widget", !0), h = qe, c = Lt, _ = Ye, C = vt, b = Vo, M = ze, f = ra, y = Ma, k = Et, A = Ze, q = va, F = Ao;
7297
+ const d = ge, u = oe, m = Y("sd-value-widget", !0), h = qe, b = Lt, _ = Ye, C = vt, c = Vo, M = ze, f = ra, y = Ma, k = Et, A = Ze, q = va, F = Ao;
7290
7298
  return e.schema.component === "sub-form" && !e.rawValue ? (n(), p(_, {
7291
7299
  key: 0,
7292
7300
  width: e.subformWidth,
@@ -7305,7 +7313,7 @@ function Lu(e, t, a, l, o, i) {
7305
7313
  })
7306
7314
  ]),
7307
7315
  default: s(() => [
7308
- r(c, {
7316
+ r(b, {
7309
7317
  data: e.dataDispaly[e.fieldName]
7310
7318
  }, {
7311
7319
  default: s(() => [
@@ -7339,7 +7347,7 @@ function Lu(e, t, a, l, o, i) {
7339
7347
  }, 8, ["data"])
7340
7348
  ]),
7341
7349
  _: 1
7342
- }, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(b, {
7350
+ }, 8, ["width"])) : (e.schema.component === "picture-upload-input" || e.schema.component === "crop-upload-input") && !e.rawValue ? (n(), p(c, {
7343
7351
  key: 1,
7344
7352
  wrap: ""
7345
7353
  }, {
@@ -7695,7 +7703,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7695
7703
  return (e, t) => {
7696
7704
  let a = {}, l = this.sdformModel.form_db.schema;
7697
7705
  for (const o in l) {
7698
- let i = ce(t, o);
7706
+ let i = de(t, o);
7699
7707
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
7700
7708
  }
7701
7709
  if (this.customValue) {
@@ -7704,7 +7712,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7704
7712
  let i = this.customValue[o];
7705
7713
  if (i.expressions)
7706
7714
  try {
7707
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
7715
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
7708
7716
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
7709
7717
  } catch (d) {
7710
7718
  a[`{{${i.fieldName}}}`] = d;
@@ -7713,7 +7721,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7713
7721
  a[`{{${i.fieldName}}}`] = "";
7714
7722
  }
7715
7723
  }
7716
- return Tt(re(e, a));
7724
+ return Tt(se(e, a));
7717
7725
  };
7718
7726
  }
7719
7727
  },
@@ -7761,9 +7769,9 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7761
7769
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.noMore || this.getDataList();
7762
7770
  },
7763
7771
  initForm(e) {
7764
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
7772
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
7765
7773
  const t = D(this.dpFormData.params), a = D(this.params);
7766
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.noMore || this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
7774
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.noMore || this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
7767
7775
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
7768
7776
  let o = -1;
7769
7777
  const i = D(l.data);
@@ -7881,7 +7889,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7881
7889
  });
7882
7890
  },
7883
7891
  getValue(e, t) {
7884
- let a = ce(e, t);
7892
+ let a = de(e, t);
7885
7893
  return a ? Ae(a, t, this.sdformModel) : "";
7886
7894
  },
7887
7895
  getSchema(e) {
@@ -7983,7 +7991,7 @@ const xt = /* @__PURE__ */ B(Eu, [["render", Lu], ["__scopeId", "data-v-6f6b7a15
7983
7991
  class: "thumbnail-actions"
7984
7992
  };
7985
7993
  function Tp(e, t, a, l, o, i) {
7986
- const d = Ze, u = ge, m = Y("Loading"), h = Ge, c = oe, _ = Y("search"), C = $e, b = Va, M = xt, f = ze, y = Ol, k = Oo, A = lt, q = Y("Picture"), F = vt, I = Aa;
7994
+ const d = Ze, u = ge, m = Y("Loading"), h = Ge, b = oe, _ = Y("search"), C = $e, c = Va, M = xt, f = ze, y = Ol, k = Oo, A = lt, q = Y("Picture"), F = vt, I = Aa;
7987
7995
  return n(), w(E, null, [
7988
7996
  e.listType === "listview" ? (n(), w("div", ju, [
7989
7997
  P("div", Uu, [
@@ -8029,7 +8037,7 @@ function Tp(e, t, a, l, o, i) {
8029
8037
  })
8030
8038
  ]),
8031
8039
  append: s(() => [
8032
- r(c, {
8040
+ r(b, {
8033
8041
  icon: "Refresh",
8034
8042
  onClick: e.handleRefresh
8035
8043
  }, null, 8, ["onClick"])
@@ -8039,7 +8047,7 @@ function Tp(e, t, a, l, o, i) {
8039
8047
  e.addBtnEnable && e.allowInsert ? {
8040
8048
  name: "prepend",
8041
8049
  fn: s(() => [
8042
- r(c, {
8050
+ r(b, {
8043
8051
  type: "success",
8044
8052
  plain: "",
8045
8053
  icon: "Plus",
@@ -8066,7 +8074,7 @@ function Tp(e, t, a, l, o, i) {
8066
8074
  onClick: (H) => e.handleClick(V, T)
8067
8075
  }, [
8068
8076
  e.iconField ? (n(), w("span", Ku, [
8069
- r(b, {
8077
+ r(c, {
8070
8078
  shape: "square",
8071
8079
  fit: "cover",
8072
8080
  style: te(`width: ${e.iconWigth}px; height: ${e.iconWigth}px; background-color: transparent;`),
@@ -8122,11 +8130,11 @@ function Tp(e, t, a, l, o, i) {
8122
8130
  innerHTML: e.htmlValue(e.statusContent, V)
8123
8131
  }, null, 12, Zu)) : g("", !0),
8124
8132
  e.actionEnable ? (n(), w("span", ep, [
8125
- fe(e.$slots, "actionBtnRow", {
8133
+ he(e.$slots, "actionBtnRow", {
8126
8134
  row: V,
8127
8135
  index: T
8128
8136
  }, void 0, !0),
8129
- V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(c, {
8137
+ V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8130
8138
  key: 0,
8131
8139
  plain: "",
8132
8140
  circle: "",
@@ -8136,7 +8144,7 @@ function Tp(e, t, a, l, o, i) {
8136
8144
  title: "View",
8137
8145
  onClick: R((H) => e.handleView(V, T), ["prevent"])
8138
8146
  }, null, 8, ["onClick"])) : g("", !0),
8139
- V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
8147
+ V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8140
8148
  key: 1,
8141
8149
  plain: "",
8142
8150
  circle: "",
@@ -8146,7 +8154,7 @@ function Tp(e, t, a, l, o, i) {
8146
8154
  title: "Edit",
8147
8155
  onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
8148
8156
  }, null, 8, ["onClick"])) : g("", !0),
8149
- V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
8157
+ V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8150
8158
  key: 2,
8151
8159
  plain: "",
8152
8160
  circle: "",
@@ -8282,7 +8290,7 @@ function Tp(e, t, a, l, o, i) {
8282
8290
  })
8283
8291
  ]),
8284
8292
  append: s(() => [
8285
- r(c, {
8293
+ r(b, {
8286
8294
  icon: "Refresh",
8287
8295
  onClick: e.handleRefresh
8288
8296
  }, null, 8, ["onClick"])
@@ -8314,7 +8322,7 @@ function Tp(e, t, a, l, o, i) {
8314
8322
  style: { "margin-bottom": "15px", "text-align": "center", cursor: "pointer" },
8315
8323
  onClick: (H) => e.handleClick(V, T)
8316
8324
  }, [
8317
- r(b, {
8325
+ r(c, {
8318
8326
  shape: "square",
8319
8327
  fit: "cover",
8320
8328
  style: te(`margin-bottom: 2px; width: ${e.iconWigth}px; height: ${e.iconWigth}px; background-color: transparent;`),
@@ -8398,7 +8406,7 @@ function Tp(e, t, a, l, o, i) {
8398
8406
  })
8399
8407
  ]),
8400
8408
  append: s(() => [
8401
- r(c, {
8409
+ r(b, {
8402
8410
  icon: "Refresh",
8403
8411
  onClick: e.handleRefresh
8404
8412
  }, null, 8, ["onClick"])
@@ -8408,7 +8416,7 @@ function Tp(e, t, a, l, o, i) {
8408
8416
  e.addBtnEnable && e.allowInsert ? {
8409
8417
  name: "prepend",
8410
8418
  fn: s(() => [
8411
- r(c, {
8419
+ r(b, {
8412
8420
  type: "success",
8413
8421
  plain: "",
8414
8422
  icon: "Plus",
@@ -8520,11 +8528,11 @@ function Tp(e, t, a, l, o, i) {
8520
8528
  }, null, 8, Ip))
8521
8529
  ], 4)) : g("", !0),
8522
8530
  e.actionEnable ? (n(), w("span", $p, [
8523
- fe(e.$slots, "actionBtnRow", {
8531
+ he(e.$slots, "actionBtnRow", {
8524
8532
  row: V,
8525
8533
  index: T
8526
8534
  }, void 0, !0),
8527
- V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(c, {
8535
+ V[e.keyId] && e.isFormEnable && e.viewBtnEnable ? (n(), p(b, {
8528
8536
  key: 0,
8529
8537
  plain: "",
8530
8538
  circle: "",
@@ -8534,7 +8542,7 @@ function Tp(e, t, a, l, o, i) {
8534
8542
  title: "View",
8535
8543
  onClick: R((H) => e.handleView(V, T), ["prevent"])
8536
8544
  }, null, 8, ["onClick"])) : g("", !0),
8537
- V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
8545
+ V[e.keyId] && e.isFormEnable && e.updateBtnEnable && e.allowUpdate(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8538
8546
  key: 1,
8539
8547
  plain: "",
8540
8548
  circle: "",
@@ -8544,7 +8552,7 @@ function Tp(e, t, a, l, o, i) {
8544
8552
  title: "Edit",
8545
8553
  onClick: R((H) => e.handleUpdate(V, T), ["prevent"])
8546
8554
  }, null, 8, ["onClick"])) : g("", !0),
8547
- V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(c, {
8555
+ V[e.keyId] && e.isFormEnable && e.delBtnEnable && e.allowDelete(e.sdformModel, V, e.useUserState.user) ? (n(), p(b, {
8548
8556
  key: 2,
8549
8557
  plain: "",
8550
8558
  circle: "",
@@ -8567,7 +8575,7 @@ function Tp(e, t, a, l, o, i) {
8567
8575
  ])) : g("", !0)
8568
8576
  ], 64);
8569
8577
  }
8570
- const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326"]]), fg = /* @__PURE__ */ L({
8578
+ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326"]]), hg = /* @__PURE__ */ L({
8571
8579
  __name: "SdAppList",
8572
8580
  props: {
8573
8581
  userState: {
@@ -9516,7 +9524,7 @@ const Mp = /* @__PURE__ */ B(Bu, [["render", Tp], ["__scopeId", "data-v-ff1dc326
9516
9524
  function Ta(e) {
9517
9525
  return e.includes("admin") || e.includes("super");
9518
9526
  }
9519
- const Pp = Xo(() => import("./sd-render-DK3Yjbxt.js").then((e) => e.S)), Vp = L({
9527
+ const Pp = Xo(() => import("./sd-render-CWzAnbYE.js").then((e) => e.S)), Vp = L({
9520
9528
  name: "SdCrudForm",
9521
9529
  components: {
9522
9530
  SdFormRenderAsync: Pp
@@ -9735,8 +9743,8 @@ const Pp = Xo(() => import("./sd-render-DK3Yjbxt.js").then((e) => e.S)), Vp = L(
9735
9743
  }
9736
9744
  this.nextOpenForm = {
9737
9745
  formId: a.form,
9738
- parentId: re(a.parentId, o),
9739
- dataId: re(a.dataId, o),
9746
+ parentId: se(a.parentId, o),
9747
+ dataId: se(a.dataId, o),
9740
9748
  initData: i
9741
9749
  }, this.nextOpenForm.dataId ? this.nextOpenForm.isInsert = !1 : this.nextOpenForm.isInsert = !0, this.subFormOpen({
9742
9750
  modelValue: !0,
@@ -9807,7 +9815,7 @@ const Pp = Xo(() => import("./sd-render-DK3Yjbxt.js").then((e) => e.S)), Vp = L(
9807
9815
  }
9808
9816
  });
9809
9817
  function Ap(e, t, a, l, o, i) {
9810
- const d = da, u = Y("SdFormRenderAsync"), m = oe, h = lt, c = St;
9818
+ const d = da, u = Y("SdFormRenderAsync"), m = oe, h = lt, b = St;
9811
9819
  return n(), w(E, null, [
9812
9820
  e.hideForm ? (n(), p(d, {
9813
9821
  key: 0,
@@ -9835,12 +9843,12 @@ function Ap(e, t, a, l, o, i) {
9835
9843
  onFormChange: e.onFormChange
9836
9844
  }, {
9837
9845
  default: s(() => [
9838
- fe(e.$slots, "inputForm")
9846
+ he(e.$slots, "inputForm")
9839
9847
  ]),
9840
9848
  _: 3
9841
9849
  }, 8, ["sdform", "parent-id", "form-data", "option-model", "disabled", "api-url", "params", "annotated", "is-sub-form", "auth-token", "submit-func", "user-state", "onFormChange"])) : g("", !0)
9842
9850
  ], 64)),
9843
- !e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(c, { key: 2 }, {
9851
+ !e.readonly && e.showInput && !e.appMode && e.showFooter ? (n(), p(b, { key: 2 }, {
9844
9852
  default: s(() => [
9845
9853
  r(h, {
9846
9854
  span: 24,
@@ -9890,7 +9898,7 @@ function Ap(e, t, a, l, o, i) {
9890
9898
  _: 1
9891
9899
  })
9892
9900
  ], 64)) : g("", !0),
9893
- fe(e.$slots, "closeForm")
9901
+ he(e.$slots, "closeForm")
9894
9902
  ]),
9895
9903
  _: 3
9896
9904
  })
@@ -10010,7 +10018,7 @@ const bo = /* @__PURE__ */ B(Vp, [["render", Ap]]), Op = L({
10010
10018
  class: "el-dialog__title"
10011
10019
  };
10012
10020
  function Kp(e, t, a, l, o, i) {
10013
- const d = Va, u = oe, m = ge, h = bo, c = da, _ = Eo, C = No, b = va, M = Fe, f = zl("can");
10021
+ const d = Va, u = oe, m = ge, h = bo, b = da, _ = Eo, C = No, c = va, M = Fe, f = zl("can");
10014
10022
  return n(), w(E, null, [
10015
10023
  e.appId ? (n(), w("div", Np, [
10016
10024
  P("div", Ep, [
@@ -10034,7 +10042,7 @@ function Kp(e, t, a, l, o, i) {
10034
10042
  icon: "InfoFilled",
10035
10043
  onClick: e.handleAppInfo
10036
10044
  }, null, 8, ["onClick"])) : g("", !0),
10037
- fe(e.$slots, "actions", {}, void 0, !0)
10045
+ he(e.$slots, "actions", {}, void 0, !0)
10038
10046
  ])
10039
10047
  ]),
10040
10048
  P("div", Rp, [
@@ -10091,7 +10099,7 @@ function Kp(e, t, a, l, o, i) {
10091
10099
  { any: !0 }
10092
10100
  ]
10093
10101
  ]),
10094
- Ve(r(c, {
10102
+ Ve(r(b, {
10095
10103
  title: "You don't have permission to access.",
10096
10104
  type: "warning",
10097
10105
  "show-icon": ""
@@ -10129,7 +10137,7 @@ function Kp(e, t, a, l, o, i) {
10129
10137
  { any: !0 }
10130
10138
  ]
10131
10139
  ]) : g("", !0),
10132
- Ve(r(c, {
10140
+ Ve(r(b, {
10133
10141
  title: "You don't have permission to access.",
10134
10142
  type: "warning",
10135
10143
  "show-icon": ""
@@ -10146,7 +10154,7 @@ function Kp(e, t, a, l, o, i) {
10146
10154
  ])
10147
10155
  ])
10148
10156
  ])) : g("", !0),
10149
- e.permissionDenied ? (n(), p(c, {
10157
+ e.permissionDenied ? (n(), p(b, {
10150
10158
  key: 1,
10151
10159
  title: "You don't have permission to access this application.",
10152
10160
  type: "warning",
@@ -10173,7 +10181,7 @@ function Kp(e, t, a, l, o, i) {
10173
10181
  ])
10174
10182
  ]),
10175
10183
  default: s(() => [
10176
- e.appInfo ? (n(), p(b, {
10184
+ e.appInfo ? (n(), p(c, {
10177
10185
  key: 0,
10178
10186
  modelValue: e.appInfo,
10179
10187
  "onUpdate:modelValue": t[1] || (t[1] = (y) => e.appInfo = y),
@@ -10187,7 +10195,7 @@ function Kp(e, t, a, l, o, i) {
10187
10195
  ])) : g("", !0)
10188
10196
  ], 64);
10189
10197
  }
10190
- const hg = /* @__PURE__ */ B(Op, [["render", Kp], ["__scopeId", "data-v-bc1eaadb"]]);
10198
+ const cg = /* @__PURE__ */ B(Op, [["render", Kp], ["__scopeId", "data-v-bc1eaadb"]]);
10191
10199
  tn.register(
10192
10200
  an,
10193
10201
  ln,
@@ -10316,7 +10324,7 @@ const Gp = L({
10316
10324
  preLoading: !1,
10317
10325
  showChart: !1,
10318
10326
  apiUrl: "",
10319
- isDark: se(),
10327
+ isDark: re(),
10320
10328
  useUserState: this.$props.userState
10321
10329
  };
10322
10330
  },
@@ -10330,7 +10338,7 @@ const Gp = L({
10330
10338
  },
10331
10339
  computed: {
10332
10340
  color() {
10333
- return se().value ? "#414243" : "#e4e7ed";
10341
+ return re().value ? "#414243" : "#e4e7ed";
10334
10342
  },
10335
10343
  dataChart() {
10336
10344
  const e = {}, t = this.rawData.map((l) => {
@@ -10375,7 +10383,7 @@ const Gp = L({
10375
10383
  async initdata() {
10376
10384
  const e = {
10377
10385
  providerId: this.sqlId,
10378
- providerType: de.SQL,
10386
+ providerType: ue.SQL,
10379
10387
  params: this.params
10380
10388
  };
10381
10389
  if (this.rawData = [], this.loadEnable) {
@@ -10412,7 +10420,7 @@ const Gp = L({
10412
10420
  grid: {
10413
10421
  display: this.gridDisplay,
10414
10422
  color: function(e) {
10415
- return se().value ? "#414243" : "#e4e7ed";
10423
+ return re().value ? "#414243" : "#e4e7ed";
10416
10424
  }
10417
10425
  },
10418
10426
  ...this.scalesXCustom
@@ -10426,7 +10434,7 @@ const Gp = L({
10426
10434
  grid: {
10427
10435
  display: this.gridDisplay,
10428
10436
  color: function(e) {
10429
- return se().value ? "#414243" : "#e4e7ed";
10437
+ return re().value ? "#414243" : "#e4e7ed";
10430
10438
  }
10431
10439
  },
10432
10440
  ...this.scalesYCustom
@@ -10449,7 +10457,7 @@ const Gp = L({
10449
10457
  grid: {
10450
10458
  display: this.gridDisplay,
10451
10459
  color: function(e) {
10452
- return se().value ? "#414243" : "#e4e7ed";
10460
+ return re().value ? "#414243" : "#e4e7ed";
10453
10461
  }
10454
10462
  }
10455
10463
  },
@@ -10462,7 +10470,7 @@ const Gp = L({
10462
10470
  grid: {
10463
10471
  display: this.gridDisplay,
10464
10472
  color: function(e) {
10465
- return se().value ? "#414243" : "#e4e7ed";
10473
+ return re().value ? "#414243" : "#e4e7ed";
10466
10474
  }
10467
10475
  }
10468
10476
  }
@@ -10492,7 +10500,7 @@ function Yp(e, t, a, l, o, i) {
10492
10500
  ], 64))
10493
10501
  ], 4);
10494
10502
  }
10495
- const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10503
+ const bg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10496
10504
  name: "SdApexChart",
10497
10505
  components: { ApexChart: yn },
10498
10506
  props: {
@@ -10624,7 +10632,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10624
10632
  preLoading: !1,
10625
10633
  showChart: !1,
10626
10634
  apiUrl: "",
10627
- isDark: se(),
10635
+ isDark: re(),
10628
10636
  useUserState: this.$props.userState
10629
10637
  };
10630
10638
  },
@@ -10638,7 +10646,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10638
10646
  },
10639
10647
  computed: {
10640
10648
  color() {
10641
- return se().value ? "#414243" : "#e4e7ed";
10649
+ return re().value ? "#414243" : "#e4e7ed";
10642
10650
  },
10643
10651
  dataChart() {
10644
10652
  let e = [];
@@ -10682,7 +10690,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10682
10690
  async initdata() {
10683
10691
  const e = {
10684
10692
  providerId: this.sqlId,
10685
- providerType: de.SQL,
10693
+ providerType: ue.SQL,
10686
10694
  params: this.params
10687
10695
  };
10688
10696
  if (this.rawData = [], this.loadEnable) {
@@ -10715,7 +10723,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10715
10723
  },
10716
10724
  grid: {
10717
10725
  show: this.gridDisplay,
10718
- borderColor: se().value ? "#414243" : "#e4e7ed",
10726
+ borderColor: re().value ? "#414243" : "#e4e7ed",
10719
10727
  ...this.gridCustom
10720
10728
  },
10721
10729
  dataLabels: {
@@ -10729,10 +10737,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10729
10737
  text: this.scalesXLabel
10730
10738
  },
10731
10739
  axisBorder: {
10732
- color: se().value ? "#414243" : "#e4e7ed"
10740
+ color: re().value ? "#414243" : "#e4e7ed"
10733
10741
  },
10734
10742
  axisTicks: {
10735
- color: se().value ? "#414243" : "#e4e7ed"
10743
+ color: re().value ? "#414243" : "#e4e7ed"
10736
10744
  },
10737
10745
  ...this.scalesXCustom
10738
10746
  },
@@ -10742,10 +10750,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10742
10750
  text: this.scalesYLabel
10743
10751
  },
10744
10752
  axisBorder: {
10745
- color: se().value ? "#414243" : "#e4e7ed"
10753
+ color: re().value ? "#414243" : "#e4e7ed"
10746
10754
  },
10747
10755
  axisTicks: {
10748
- color: se().value ? "#414243" : "#e4e7ed"
10756
+ color: re().value ? "#414243" : "#e4e7ed"
10749
10757
  },
10750
10758
  ...this.scalesYCustom
10751
10759
  },
@@ -10754,7 +10762,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10754
10762
  theme: "dark"
10755
10763
  },
10756
10764
  theme: {
10757
- mode: se().value ? "dark" : "light"
10765
+ mode: re().value ? "dark" : "light"
10758
10766
  },
10759
10767
  ...this.customOptions
10760
10768
  };
@@ -10782,7 +10790,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10782
10790
  },
10783
10791
  grid: {
10784
10792
  show: this.gridDisplay,
10785
- borderColor: se().value ? "#414243" : "#e4e7ed",
10793
+ borderColor: re().value ? "#414243" : "#e4e7ed",
10786
10794
  ...this.gridCustom
10787
10795
  },
10788
10796
  xaxis: {
@@ -10792,10 +10800,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10792
10800
  text: this.scalesXLabel
10793
10801
  },
10794
10802
  axisBorder: {
10795
- color: se().value ? "#414243" : "#e4e7ed"
10803
+ color: re().value ? "#414243" : "#e4e7ed"
10796
10804
  },
10797
10805
  axisTicks: {
10798
- color: se().value ? "#414243" : "#e4e7ed"
10806
+ color: re().value ? "#414243" : "#e4e7ed"
10799
10807
  },
10800
10808
  ...this.scalesXCustom
10801
10809
  },
@@ -10805,10 +10813,10 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10805
10813
  text: this.scalesYLabel
10806
10814
  },
10807
10815
  axisBorder: {
10808
- color: se().value ? "#414243" : "#e4e7ed"
10816
+ color: re().value ? "#414243" : "#e4e7ed"
10809
10817
  },
10810
10818
  axisTicks: {
10811
- color: se().value ? "#414243" : "#e4e7ed"
10819
+ color: re().value ? "#414243" : "#e4e7ed"
10812
10820
  },
10813
10821
  ...this.scalesYCustom
10814
10822
  },
@@ -10817,7 +10825,7 @@ const cg = /* @__PURE__ */ B(Gp, [["render", Yp]]), Jp = L({
10817
10825
  theme: "dark"
10818
10826
  },
10819
10827
  theme: {
10820
- mode: se().value ? "dark" : "light"
10828
+ mode: re().value ? "dark" : "light"
10821
10829
  },
10822
10830
  ...this.customOptions
10823
10831
  };
@@ -10845,7 +10853,7 @@ function Xp(e, t, a, l, o, i) {
10845
10853
  ], 64))
10846
10854
  ], 4);
10847
10855
  }
10848
- const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10856
+ const gg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10849
10857
  name: "SdExportData",
10850
10858
  emits: ["update:modelValue", "change"],
10851
10859
  props: {
@@ -10937,7 +10945,7 @@ const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10937
10945
  this.showFile = !1;
10938
10946
  const e = `export/${this.userState.user?.username}`;
10939
10947
  let t = { filePath: this.filePath, fileName: this.fName, fileType: "json", fileGroup: e, fileId: "" };
10940
- await he.delete(`${this.userState.host}/v1/files/remove-one`, {
10948
+ await ce.delete(`${this.userState.host}/v1/files/remove-one`, {
10941
10949
  data: t,
10942
10950
  headers: {
10943
10951
  Authorization: `Bearer ${this.userState.user?.token}`
@@ -10954,8 +10962,8 @@ const bg = /* @__PURE__ */ B(Jp, [["render", Xp]]), Qp = L({
10954
10962
  class: "el-dialog__title"
10955
10963
  }, em = { class: "dialog-footer" };
10956
10964
  function tm(e, t, a, l, o, i) {
10957
- const d = Y("Document"), u = Ge, m = ra, h = oe, c = Fe;
10958
- return n(), p(c, {
10965
+ const d = Y("Document"), u = Ge, m = ra, h = oe, b = Fe;
10966
+ return n(), p(b, {
10959
10967
  title: e.popupName,
10960
10968
  modelValue: e.showPopupFlag,
10961
10969
  "onUpdate:modelValue": t[1] || (t[1] = (_) => e.showPopupFlag = _),
@@ -10970,7 +10978,7 @@ function tm(e, t, a, l, o, i) {
10970
10978
  "close-on-press-escape": !0,
10971
10979
  "destroy-on-close": !0
10972
10980
  }, {
10973
- header: s(({ close: _, titleId: C, titleClass: b }) => [
10981
+ header: s(({ close: _, titleId: C, titleClass: c }) => [
10974
10982
  P("span", Zp, O(e.popupName), 1)
10975
10983
  ]),
10976
10984
  footer: s(() => [
@@ -10986,7 +10994,7 @@ function tm(e, t, a, l, o, i) {
10986
10994
  ])
10987
10995
  ]),
10988
10996
  default: s(() => [
10989
- fe(e.$slots, "popup", {}, () => [
10997
+ he(e.$slots, "popup", {}, () => [
10990
10998
  t[2] || (t[2] = S(" Download click here => ", -1)),
10991
10999
  e.showFile ? (n(), p(m, {
10992
11000
  key: 0,
@@ -11208,14 +11216,14 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
11208
11216
  l[`{{${o}}}`] = Ae(t[o], o, this.formModel);
11209
11217
  if (a.expressions)
11210
11218
  try {
11211
- const i = `return ${re(a.expressions, l)}`, d = new Function("row", ...De, i);
11219
+ const i = `return ${se(a.expressions, l)}`, d = new Function("row", ...De, i);
11212
11220
  l["{{expressions}}"] = d.call(this.formModel, t);
11213
11221
  } catch (o) {
11214
11222
  l["{{expressions}}"] = o;
11215
11223
  }
11216
11224
  else
11217
11225
  l["{{expressions}}"] = "";
11218
- return Tt(re(e, l));
11226
+ return Tt(se(e, l));
11219
11227
  };
11220
11228
  },
11221
11229
  columnFields() {
@@ -11255,11 +11263,11 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
11255
11263
  return l;
11256
11264
  },
11257
11265
  getValue(e, t, a) {
11258
- let l = ce(e, t);
11266
+ let l = de(e, t);
11259
11267
  return this.rawValue ? l ?? null : Ae(l, t, a);
11260
11268
  },
11261
11269
  getValueType(e, t, a) {
11262
- let l = ce(e, t);
11270
+ let l = de(e, t);
11263
11271
  if (this.rawValue)
11264
11272
  return l ?? null;
11265
11273
  if (typeof l == "boolean")
@@ -11287,7 +11295,7 @@ const yo = /* @__PURE__ */ B(im, [["render", nm]]), sm = L({
11287
11295
  }
11288
11296
  }), rm = ["innerHTML"], dm = ["innerHTML"];
11289
11297
  function um(e, t, a, l, o, i) {
11290
- const d = xt, u = qe, m = Nt, h = $e, c = kt, _ = Nl, C = ze, b = yo, M = go;
11298
+ const d = xt, u = qe, m = Nt, h = $e, b = kt, _ = Nl, C = ze, c = yo, M = go;
11291
11299
  return n(), w(E, null, [
11292
11300
  e.columnFields && Object.keys(e.columnFields).length > 0 ? (n(), w(E, { key: 0 }, [
11293
11301
  e.formModel && e.formModel.form_db && e.formModel.form_db.schema && Object.keys(e.formModel.form_db.schema).length > 0 ? (n(!0), w(E, { key: 0 }, G(e.columnFields, (f) => (n(), w(E, null, [
@@ -11358,7 +11366,7 @@ function um(e, t, a, l, o, i) {
11358
11366
  }, { ref_for: !0 }, e.formModel.form_db.schema[f.fieldName].inputOptions ? e.formModel.form_db.schema[f.fieldName].inputOptions : {}, {
11359
11367
  onChange: (k) => e.editChange(y.row),
11360
11368
  onFocus: (k) => e.backupRow(y.row)
11361
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(c, ae({
11369
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus"])) : e.formModel.form_db.schema[f.fieldName].component == "switch-input" ? (n(), p(b, ae({
11362
11370
  key: 2,
11363
11371
  modelValue: y.row[f.fieldName],
11364
11372
  "onUpdate:modelValue": (k) => y.row[f.fieldName] = k,
@@ -11498,7 +11506,7 @@ function um(e, t, a, l, o, i) {
11498
11506
  _: 2
11499
11507
  }, 1032, ["prop", "column-key", "label", "width", "align", "sortable", "filters", "fixed"]))), 256)) : g("", !0)
11500
11508
  ], 64)),
11501
- fe(e.$slots, "default"),
11509
+ he(e.$slots, "default"),
11502
11510
  e.systemColumn ? (n(), w(E, { key: 2 }, [
11503
11511
  e.formModel && e.formModel.form_options && e.formModel.form_options.query_tool != "disable" ? (n(), p(u, {
11504
11512
  key: 0,
@@ -11512,7 +11520,7 @@ function um(e, t, a, l, o, i) {
11512
11520
  ]),
11513
11521
  _: 1
11514
11522
  })) : g("", !0),
11515
- e.formModel && e.formModel.form_db ? (n(), p(b, { key: 1 })) : g("", !0),
11523
+ e.formModel && e.formModel.form_db ? (n(), p(c, { key: 1 })) : g("", !0),
11516
11524
  e.formModel && e.formModel.form_db ? (n(), p(M, { key: 2 })) : g("", !0)
11517
11525
  ], 64)) : g("", !0)
11518
11526
  ], 64);
@@ -11750,7 +11758,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11750
11758
  useUserState: this.$props.userState,
11751
11759
  showExport: !1,
11752
11760
  showRawValue: !1,
11753
- dpFormData: { providerId: this.formId, providerType: de.FORM },
11761
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
11754
11762
  dpExpandData: null,
11755
11763
  isExpand: !1,
11756
11764
  expandedRows: [],
@@ -11761,7 +11769,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11761
11769
  widgetId: "SdCrudGrid-" + Rt(),
11762
11770
  dpExportRow: {
11763
11771
  providerId: "",
11764
- providerType: de.FORM,
11772
+ providerType: ue.FORM,
11765
11773
  options: { where: "_id = CONVERT(:id, 'objectId')" },
11766
11774
  params: { id: "" }
11767
11775
  },
@@ -11800,9 +11808,9 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11800
11808
  let m = Number(this.sumData[u]);
11801
11809
  o[d] = l.format(m);
11802
11810
  } else {
11803
- const h = a.map((c) => Number(c[u])).reduce((c, _) => {
11811
+ const h = a.map((b) => Number(b[u])).reduce((b, _) => {
11804
11812
  const C = Number(_);
11805
- return Number.isNaN(C) ? c : c + _;
11813
+ return Number.isNaN(C) ? b : b + _;
11806
11814
  }, 0);
11807
11815
  o[d] = l.format(h);
11808
11816
  }
@@ -11873,13 +11881,13 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11873
11881
  this.defaultParams = { ...t, ...e }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.getDataList(this.dpFormData);
11874
11882
  },
11875
11883
  initForm(e) {
11876
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
11884
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), this.searchFields ? this.dpFormData.options.search = this.searchFields : this.dpFormData.options.search = this.sdformModel.form_options.search_fields ? this.sdformModel.form_options.search_fields : [];
11877
11885
  const t = D(this.dpFormData.params), a = D(this.params);
11878
11886
  if (this.defaultParams = { ...a, ...t }, this.defaultSort = D(this.optionProvider.orderBy), this.dpFormData.params = D(this.defaultParams), this.sumColumn && Object.values(this.sumColumn).length > 0 && (this.dpFormData.options.sum = this.sumColumn), this.groupKey)
11879
11887
  if (this.expandProvider)
11880
11888
  this.dpExpandData = D(this.expandProvider);
11881
11889
  else {
11882
- if (this.dpExpandData = { providerId: this.formId, providerType: de.FORM }, this.dpFormData.options.select && this.dpFormData.options.select.length > 0) {
11890
+ if (this.dpExpandData = { providerId: this.formId, providerType: ue.FORM }, this.dpFormData.options.select && this.dpFormData.options.select.length > 0) {
11883
11891
  const l = [`\`${this.groupKey}\``, `\`${this.groupKey}\` AS \`${this.rowKey}\``, `COUNT(*) AS \`${this.expandCountChildrenName}\``];
11884
11892
  this.dpFormData.options.select.push(...l);
11885
11893
  } else
@@ -11887,9 +11895,9 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11887
11895
  if (this.aggrColumn && Object.values(this.aggrColumn).length > 0 && this.dpFormData.options.select.push(...this.aggrColumn), this.sumColumn && Object.values(this.sumColumn).length > 0)
11888
11896
  for (const l of this.sumColumn)
11889
11897
  this.dpFormData.options.select.push(`SUM(\`${l}\`) AS \`${l}\``);
11890
- this.dpExpandData.options || (this.dpExpandData.options = {}), this.dpExpandData.options.select = ["*", `\`${this.keyId}\` AS \`${this.rowKey}\``], this.dpExpandData.options.where = `\`${this.groupKey}\` = :xgidx`, this.dpFormData.options.groupBy = [`\`${this.groupKey}\``], this.dpFormData.options.orderBy = [{ column: `\`${this.groupKey}\``, sort: me.ASC }];
11898
+ this.dpExpandData.options || (this.dpExpandData.options = {}), this.dpExpandData.options.select = ["*", `\`${this.keyId}\` AS \`${this.rowKey}\``], this.dpExpandData.options.where = `\`${this.groupKey}\` = :xgidx`, this.dpFormData.options.groupBy = [`\`${this.groupKey}\``], this.dpFormData.options.orderBy = [{ column: `\`${this.groupKey}\``, sort: fe.ASC }];
11891
11899
  }
11892
- this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }], this.defaultSort = [{ column: "created_at", sort: me.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
11900
+ this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }], this.defaultSort = [{ column: "created_at", sort: fe.DESC }]), this.dpExportRow.providerId = this.formId, this.getDataList(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
11893
11901
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
11894
11902
  let o = -1;
11895
11903
  const i = D(l.data), d = l.params ? D(l.params) : null;
@@ -11944,7 +11952,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
11944
11952
  if (this.dpExpandData) {
11945
11953
  this.dpExpandData.params || (this.dpExpandData.params ? this.dpExpandData.params = { ...this.dpExpandData.params, ...e } : this.dpExpandData.params = D(e));
11946
11954
  const l = this.groupKey;
11947
- l && e[l] != null && e[l] != null && (this.dpExpandData.params.xgidx = e[l], he.post(
11955
+ l && e[l] != null && e[l] != null && (this.dpExpandData.params.xgidx = e[l], ce.post(
11948
11956
  `${this.userState.host}/widget/crud/getdata-all`,
11949
11957
  {
11950
11958
  sdProvider: this.dpExpandData,
@@ -12115,7 +12123,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
12115
12123
  }
12116
12124
  },
12117
12125
  handleSort(e) {
12118
- this.optionProvider.orderBy = this.defaultSort, e.order !== null && (this.defaultSort ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }]), this.dpExpandData && this.resetExpand(), this.getDataList(this.dpFormData);
12126
+ this.optionProvider.orderBy = this.defaultSort, e.order !== null && (this.defaultSort ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }]), this.dpExpandData && this.resetExpand(), this.getDataList(this.dpFormData);
12119
12127
  },
12120
12128
  handleSearch() {
12121
12129
  this.searchText != "" ? this.dpFormData.params.q = `%${this.searchText}%` : delete this.dpFormData.params.q, this.dpExpandData && this.resetExpand(), this.total = 0, this.getDataList(this.dpFormData);
@@ -12237,7 +12245,7 @@ const pm = /* @__PURE__ */ B(sm, [["render", um]]), mm = L({
12237
12245
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
12238
12246
  }, vm = { class: "card-footer" };
12239
12247
  function wm(e, t, a, l, o, i) {
12240
- const d = Ze, u = ge, m = ze, h = oe, c = ia, _ = sa, C = lt, b = $e, M = na, f = St, y = Et, k = qe, A = pm, q = Lt, F = Aa, I = am, V = ua;
12248
+ const d = Ze, u = ge, m = ze, h = oe, b = ia, _ = sa, C = lt, c = $e, M = na, f = St, y = Et, k = qe, A = pm, q = Lt, F = Aa, I = am, V = ua;
12241
12249
  return n(), w(E, null, [
12242
12250
  r(F, {
12243
12251
  class: "box-card",
@@ -12265,7 +12273,7 @@ function wm(e, t, a, l, o, i) {
12265
12273
  _: 1
12266
12274
  }),
12267
12275
  P("span", bm, [
12268
- fe(e.$slots, "actionsBar", {}, void 0, !0)
12276
+ he(e.$slots, "actionsBar", {}, void 0, !0)
12269
12277
  ])
12270
12278
  ])) : g("", !0),
12271
12279
  r(f, { gutter: 20 }, {
@@ -12293,8 +12301,8 @@ function wm(e, t, a, l, o, i) {
12293
12301
  _: 1
12294
12302
  }, 8, ["onClick"])) : g("", !0),
12295
12303
  t[6] || (t[6] = S()),
12296
- fe(e.$slots, "actions", {}, void 0, !0),
12297
- e.rawdataBtnEnable ? (n(), p(c, {
12304
+ he(e.$slots, "actions", {}, void 0, !0),
12305
+ e.rawdataBtnEnable ? (n(), p(b, {
12298
12306
  key: 1,
12299
12307
  direction: "vertical",
12300
12308
  style: { height: "30px" }
@@ -12306,7 +12314,7 @@ function wm(e, t, a, l, o, i) {
12306
12314
  label: "Raw Data",
12307
12315
  border: ""
12308
12316
  }, null, 8, ["modelValue"])) : g("", !0),
12309
- e.rawdataBtnEnable ? (n(), p(c, {
12317
+ e.rawdataBtnEnable ? (n(), p(b, {
12310
12318
  key: 3,
12311
12319
  direction: "vertical",
12312
12320
  style: { height: "30px" }
@@ -12344,7 +12352,7 @@ function wm(e, t, a, l, o, i) {
12344
12352
  xl: 8
12345
12353
  }, {
12346
12354
  default: s(() => [
12347
- r(b, {
12355
+ r(c, {
12348
12356
  modelValue: e.searchText,
12349
12357
  "onUpdate:modelValue": t[1] || (t[1] = (T) => e.searchText = T),
12350
12358
  placeholder: e.placeholderSearch,
@@ -12371,7 +12379,7 @@ function wm(e, t, a, l, o, i) {
12371
12379
  style: { display: "inline-flex" }
12372
12380
  }, {
12373
12381
  default: s(() => [
12374
- fe(e.$slots, "actionsPager", {}, () => [
12382
+ he(e.$slots, "actionsPager", {}, () => [
12375
12383
  e.total > e.limit ? (n(), p(M, {
12376
12384
  key: 0,
12377
12385
  class: "mb-2",
@@ -12507,14 +12515,14 @@ function wm(e, t, a, l, o, i) {
12507
12515
  ]),
12508
12516
  _: 2
12509
12517
  }, 1024)) : g("", !0),
12510
- fe(e.$slots, "actionBtnRow", {
12518
+ he(e.$slots, "actionBtnRow", {
12511
12519
  row: T.row,
12512
12520
  index: T.$index
12513
12521
  }, void 0, !0)
12514
12522
  ]),
12515
12523
  _: 3
12516
12524
  }, 8, ["label", "width"])) : g("", !0),
12517
- fe(e.$slots, "actionColumn", {}, void 0, !0),
12525
+ he(e.$slots, "actionColumn", {}, void 0, !0),
12518
12526
  e.indexColumn ? (n(), p(k, {
12519
12527
  key: 1,
12520
12528
  type: "index",
@@ -12537,7 +12545,7 @@ function wm(e, t, a, l, o, i) {
12537
12545
  "raw-value": e.showRawValue
12538
12546
  }, {
12539
12547
  default: s(() => [
12540
- fe(e.$slots, "default", {}, void 0, !0)
12548
+ he(e.$slots, "default", {}, void 0, !0)
12541
12549
  ]),
12542
12550
  _: 3
12543
12551
  }, 8, ["form-model", "display-fields", "subform-width", "system-column", "edit-column", "key-id", "row-key", "user-state", "after-save", "raw-value"])) : g("", !0)
@@ -12715,7 +12723,7 @@ const Fm = /* @__PURE__ */ B(mm, [["render", wm], ["__scopeId", "data-v-2d047125
12715
12723
  class: "el-dialog__title"
12716
12724
  };
12717
12725
  function km(e, t, a, l, o, i) {
12718
- const d = Ze, u = ge, m = Et, h = oe, c = bo, _ = Fe;
12726
+ const d = Ze, u = ge, m = Et, h = oe, b = bo, _ = Fe;
12719
12727
  return n(), p(_, {
12720
12728
  title: e.popupName,
12721
12729
  modelValue: e.showPopupFlag,
@@ -12729,7 +12737,7 @@ function km(e, t, a, l, o, i) {
12729
12737
  "close-on-press-escape": !0,
12730
12738
  "destroy-on-close": !0
12731
12739
  }, {
12732
- header: s(({ close: C, titleId: b, titleClass: M }) => [
12740
+ header: s(({ close: C, titleId: c, titleClass: M }) => [
12733
12741
  P("span", Sm, [
12734
12742
  e.iconForm != "" ? (n(), p(d, {
12735
12743
  key: 0,
@@ -12751,7 +12759,7 @@ function km(e, t, a, l, o, i) {
12751
12759
  ])
12752
12760
  ]),
12753
12761
  default: s(() => [
12754
- e.showContent ? (n(), p(c, {
12762
+ e.showContent ? (n(), p(b, {
12755
12763
  key: 0,
12756
12764
  ref: "formRef",
12757
12765
  "form-id": e.formId,
@@ -13044,7 +13052,7 @@ function $m(e, t, a, l, o, i) {
13044
13052
  return n(), p(h, {
13045
13053
  title: e.popupName,
13046
13054
  modelValue: e.showPopupFlag,
13047
- "onUpdate:modelValue": t[0] || (t[0] = (c) => e.showPopupFlag = c),
13055
+ "onUpdate:modelValue": t[0] || (t[0] = (b) => e.showPopupFlag = b),
13048
13056
  width: e.popupWidth,
13049
13057
  "show-close": !0,
13050
13058
  class: "dialog-grid dialog-form",
@@ -13054,7 +13062,7 @@ function $m(e, t, a, l, o, i) {
13054
13062
  "close-on-press-escape": !0,
13055
13063
  "destroy-on-close": !0
13056
13064
  }, {
13057
- header: s(({ close: c, titleId: _, titleClass: C }) => [
13065
+ header: s(({ close: b, titleId: _, titleClass: C }) => [
13058
13066
  P("span", Im, [
13059
13067
  e.iconForm != "" ? (n(), p(d, {
13060
13068
  key: 0,
@@ -13335,7 +13343,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13335
13343
  t = Nu(o, e, this.valueField, this.labelField, this.labelTemplate);
13336
13344
  } else {
13337
13345
  let o = this.itemsList.find((i) => !!i.value && i.value == e);
13338
- o && o.label && (t = o.label);
13346
+ o.label && (t = o.label);
13339
13347
  }
13340
13348
  let a = {};
13341
13349
  if (this.refField) {
@@ -13351,14 +13359,14 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13351
13359
  return i[this.valueField];
13352
13360
  }
13353
13361
  }), this.refField.forEach((i) => {
13354
- const d = ce(o, i);
13362
+ const d = de(o, i);
13355
13363
  $a(a, i, d);
13356
13364
  });
13357
13365
  }
13358
13366
  let l = {};
13359
13367
  if (this.joinerObject && this.itemSelected) {
13360
13368
  let o;
13361
- if (this.fieldName ? o = ce(this.itemSelected, this.fieldName) : this.formModel.joiner_field.joiner_enable && (o = ce(this.itemSelected, this.formModel.joiner_field.field_name)), o) {
13369
+ if (this.fieldName ? o = de(this.itemSelected, this.fieldName) : this.formModel.joiner_field.joiner_enable && (o = de(this.itemSelected, this.formModel.joiner_field.field_name)), o) {
13362
13370
  const i = D(o);
13363
13371
  let d = 1;
13364
13372
  for (const u in i) {
@@ -13397,22 +13405,23 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13397
13405
  getItemsList(e) {
13398
13406
  let t = "", a = [], l = ga(e);
13399
13407
  this.labelField.forEach((d) => {
13400
- e[d] ? (a.push(e[d]), l[`{{${d}}}`] = e[d]) : l[`{{${d}}}`] = "";
13401
- }), this.labelTemplate && this.labelTemplate != "" ? t = re(this.labelTemplate, l) : t = a.join(" "), this.optionsTemplate && this.optionsTemplate != "" && (this.optionsUi[e[this.valueField]] = re(this.optionsTemplate, l));
13408
+ const u = de(e, d);
13409
+ u ? (a.push(u), l[`{{${d}}}`] = u) : l[`{{${d}}}`] = "";
13410
+ }), this.labelTemplate && this.labelTemplate != "" ? t = se(this.labelTemplate, l) : t = a.join(" "), this.optionsTemplate && this.optionsTemplate != "" && (this.optionsUi[e[this.valueField]] = se(this.optionsTemplate, l));
13402
13411
  let o = {};
13403
13412
  this.refField && this.refField.forEach((d) => {
13404
- const u = ce(e, d);
13413
+ const u = de(e, d);
13405
13414
  $a(o, d, u);
13406
13415
  });
13407
13416
  let i = {};
13408
13417
  if (this.joinerObject) {
13409
13418
  let d;
13410
- if (this.fieldName ? d = ce(e, this.fieldName) : this.formModel.joiner_field.joiner_enable && (d = ce(e, this.formModel.joiner_field.field_name)), d) {
13419
+ if (this.fieldName ? d = de(e, this.fieldName) : this.formModel.joiner_field.joiner_enable && (d = de(e, this.formModel.joiner_field.field_name)), d) {
13411
13420
  const u = D(d);
13412
13421
  let m = 1;
13413
13422
  for (const h in u) {
13414
- const c = /xtbxlv/g;
13415
- h.search(c) !== -1 && (m++, i[h] = u[h] ? u[h] : null);
13423
+ const b = /xtbxlv/g;
13424
+ h.search(b) !== -1 && (m++, i[h] = u[h] ? u[h] : null);
13416
13425
  }
13417
13426
  i[`xtbxlv${m}_xfx${this.valueField}`] = u.value ? u.value : null;
13418
13427
  }
@@ -13420,7 +13429,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13420
13429
  return { value: e[this.valueField], label: t, ...i, ...o };
13421
13430
  },
13422
13431
  async getDataAll(e, t) {
13423
- this.loading = !0, await he.post(
13432
+ this.loading = !0, await ce.post(
13424
13433
  `${this.apiUrl}/widget/crud/getdata-all`,
13425
13434
  {
13426
13435
  sdProvider: e,
@@ -13438,7 +13447,7 @@ const Tm = /* @__PURE__ */ B(Dm, [["render", $m]]), Mm = L({
13438
13447
  });
13439
13448
  },
13440
13449
  async getDataOne(e, t) {
13441
- this.loading = !0, await he.post(
13450
+ this.loading = !0, await ce.post(
13442
13451
  `${this.apiUrl}/widget/crud/getdata-one`,
13443
13452
  { sdProvider: e },
13444
13453
  {
@@ -13482,9 +13491,9 @@ function Nm(e, t, a, l, o, i) {
13482
13491
  onVisibleChange: e.handleVisibleChange
13483
13492
  }, tt({
13484
13493
  prefix: s(() => [
13485
- fe(e.$slots, "prefix")
13494
+ he(e.$slots, "prefix")
13486
13495
  ]),
13487
- label: s(({ label: h, value: c }) => [
13496
+ label: s(({ label: h, value: b }) => [
13488
13497
  P("div", {
13489
13498
  innerHTML: e.htmlRender(h)
13490
13499
  }, null, 8, Om)
@@ -13860,7 +13869,7 @@ function Bm(e, t, a, l, o, i) {
13860
13869
  } : void 0
13861
13870
  ]), 1032, ["modelValue", "multiple", "allow-create", "placeholder", "enable-object-type", "disabled", "data-provider", "value-field", "search-field", "label-field", "ref-field", "limit", "label-template", "options-template", "user-state", "onRemoteMethod", "onVisibleChange", "onChange"]);
13862
13871
  }
13863
- const gg = /* @__PURE__ */ B(Em, [["render", Bm]]), jm = L({
13872
+ const yg = /* @__PURE__ */ B(Em, [["render", Bm]]), jm = L({
13864
13873
  name: "SdCrudSelectSubForm",
13865
13874
  components: {
13866
13875
  // SdSelectRemoteList,
@@ -14352,26 +14361,26 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14352
14361
  l.indeterminate = !1, _ ? d.value = h.value.map((C) => C.value) : d.value = [];
14353
14362
  }
14354
14363
  Je(() => {
14355
- c();
14364
+ b();
14356
14365
  }), Ke(
14357
14366
  () => a.dataObject,
14358
14367
  (_) => {
14359
- c();
14368
+ b();
14360
14369
  },
14361
14370
  { deep: !1 }
14362
14371
  ), Ke(
14363
14372
  () => a.fixedOptions,
14364
14373
  (_) => {
14365
- c();
14374
+ b();
14366
14375
  },
14367
14376
  { deep: !1 }
14368
14377
  );
14369
- const h = K([]), c = () => {
14378
+ const h = K([]), b = () => {
14370
14379
  h.value = [];
14371
14380
  let _ = "", C = "";
14372
14381
  if (a.fixedOptions && Object.keys(a.fixedOptions).length > 0) {
14373
14382
  if (h.value = D(a.fixedOptions), l.dataObjectMode = !1, a.systemFieldAddon && a.valueField && a.labelField.length > 0) {
14374
- let b = [
14383
+ let c = [
14375
14384
  { value: "_id", label: "_id" },
14376
14385
  { value: "xparentx", label: "xparentx" },
14377
14386
  { value: "xsitex.code", label: "xsitex.code" },
@@ -14386,18 +14395,18 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14386
14395
  { value: "created_at", label: "created_at" },
14387
14396
  { value: "xrstatx", label: "xrstatx" }
14388
14397
  ];
14389
- h.value = [...h.value, ...b];
14398
+ h.value = [...h.value, ...c];
14390
14399
  }
14391
14400
  } else if (l.dataObjectMode = !0, l.disableAction = Object.keys(a.dataObject).length === 0 && !!a.path, !l.disableAction)
14392
- for (const b in a.dataObject) {
14393
- const M = a.dataObject[b], f = ce(M, a.path);
14401
+ for (const c in a.dataObject) {
14402
+ const M = a.dataObject[c], f = de(M, a.path);
14394
14403
  if (a.prefixProp) {
14395
- const k = ce(M, a.prefixProp);
14404
+ const k = de(M, a.prefixProp);
14396
14405
  _ = k || a.prefixProp, a.sqlTag && (_ = `\`${_}\``);
14397
14406
  }
14398
14407
  if (a.groupField) {
14399
- const k = ce(M, a.groupField);
14400
- C = k ? "----- " + k + " -----" : "----- " + b + " -----";
14408
+ const k = de(M, a.groupField);
14409
+ C = k ? "----- " + k + " -----" : "----- " + c + " -----";
14401
14410
  }
14402
14411
  let y = [];
14403
14412
  if (f && typeof f == "object")
@@ -14412,7 +14421,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14412
14421
  let I = F.join(" ");
14413
14422
  if (a.labelTemplate !== "") {
14414
14423
  const V = ga(A);
14415
- I = re(a.labelTemplate, V);
14424
+ I = se(a.labelTemplate, V);
14416
14425
  }
14417
14426
  y.push({
14418
14427
  value: q,
@@ -14440,15 +14449,15 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14440
14449
  a.groupField ? h.value.push({ label: C, options: y }) : h.value.push(...y);
14441
14450
  }
14442
14451
  if (a.multiple) {
14443
- const b = d.value;
14444
- b ? b && b.length === 0 ? (l.checkAll = !1, l.indeterminate = !1) : b && b.length === h.value.length ? (l.checkAll = !0, l.indeterminate = !1) : l.indeterminate = !0 : (l.checkAll = !1, l.indeterminate = !1);
14452
+ const c = d.value;
14453
+ c ? c && c.length === 0 ? (l.checkAll = !1, l.indeterminate = !1) : c && c.length === h.value.length ? (l.checkAll = !0, l.indeterminate = !1) : l.indeterminate = !0 : (l.checkAll = !1, l.indeterminate = !1);
14445
14454
  }
14446
14455
  return h;
14447
14456
  };
14448
14457
  return Ke(d, (_) => {
14449
14458
  o(_);
14450
14459
  }), (_, C) => {
14451
- const b = sa, M = Dt, f = Lo, y = Ct;
14460
+ const c = sa, M = Dt, f = Lo, y = Ct;
14452
14461
  return n(), p(y, {
14453
14462
  modelValue: d.value,
14454
14463
  "onUpdate:modelValue": C[1] || (C[1] = (k) => d.value = k),
@@ -14484,7 +14493,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14484
14493
  e.multiple ? {
14485
14494
  name: "header",
14486
14495
  fn: s(() => [
14487
- r(b, {
14496
+ r(c, {
14488
14497
  modelValue: l.checkAll,
14489
14498
  "onUpdate:modelValue": C[0] || (C[0] = (k) => l.checkAll = k),
14490
14499
  indeterminate: l.indeterminate,
@@ -14604,7 +14613,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14604
14613
  textType: void 0
14605
14614
  }, t.initData && Object.keys(t.initData).length > 0 && (a.fieldName = t.initData.fieldName, o.value = { ...o.value, ...t.initData });
14606
14615
  }), (u, m) => {
14607
- const h = da, c = $e, _ = pt, C = vo, b = lt, M = kt, f = St, y = oe, k = ut;
14616
+ const h = da, b = $e, _ = pt, C = vo, c = lt, M = kt, f = St, y = oe, k = ut;
14608
14617
  return n(), p(k, {
14609
14618
  ref_key: "schemaFormRef",
14610
14619
  ref: l,
@@ -14621,7 +14630,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14621
14630
  }),
14622
14631
  r(f, { gutter: 10 }, {
14623
14632
  default: s(() => [
14624
- r(b, {
14633
+ r(c, {
14625
14634
  md: 12,
14626
14635
  sm: 12,
14627
14636
  xs: 24
@@ -14633,7 +14642,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14633
14642
  required: ""
14634
14643
  }, {
14635
14644
  default: s(() => [
14636
- r(c, {
14645
+ r(b, {
14637
14646
  modelValue: o.value.fieldName,
14638
14647
  "onUpdate:modelValue": m[0] || (m[0] = (A) => o.value.fieldName = A),
14639
14648
  type: "fieldName",
@@ -14665,7 +14674,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14665
14674
  prop: "valueFormat"
14666
14675
  }, {
14667
14676
  default: s(() => [
14668
- r(c, {
14677
+ r(b, {
14669
14678
  modelValue: o.value.valueFormat,
14670
14679
  "onUpdate:modelValue": m[2] || (m[2] = (A) => o.value.valueFormat = A),
14671
14680
  type: "text",
@@ -14677,7 +14686,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14677
14686
  ]),
14678
14687
  _: 1
14679
14688
  }),
14680
- r(b, {
14689
+ r(c, {
14681
14690
  md: 12,
14682
14691
  sm: 12,
14683
14692
  xs: 24
@@ -14689,7 +14698,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14689
14698
  required: ""
14690
14699
  }, {
14691
14700
  default: s(() => [
14692
- r(c, {
14701
+ r(b, {
14693
14702
  modelValue: o.value.label,
14694
14703
  "onUpdate:modelValue": m[3] || (m[3] = (A) => o.value.label = A),
14695
14704
  type: "text",
@@ -14716,7 +14725,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14716
14725
  prop: "format"
14717
14726
  }, {
14718
14727
  default: s(() => [
14719
- r(c, {
14728
+ r(b, {
14720
14729
  modelValue: o.value.format,
14721
14730
  "onUpdate:modelValue": m[5] || (m[5] = (A) => o.value.format = A),
14722
14731
  type: "text",
@@ -14736,7 +14745,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14736
14745
  prop: "hint"
14737
14746
  }, {
14738
14747
  default: s(() => [
14739
- r(c, {
14748
+ r(b, {
14740
14749
  modelValue: o.value.hint,
14741
14750
  "onUpdate:modelValue": m[6] || (m[6] = (A) => o.value.hint = A),
14742
14751
  type: "text",
@@ -14797,7 +14806,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14797
14806
  });
14798
14807
  }
14799
14808
  return (i, d) => {
14800
- const u = oe, m = qe, h = Y("Link"), c = Ge, _ = Y("Aim"), C = Lt, b = Ye, M = $e, f = Dt, y = Ct, k = kt, A = ze, q = ua;
14809
+ const u = oe, m = qe, h = Y("Link"), b = Ge, _ = Y("Aim"), C = Lt, c = Ye, M = $e, f = Dt, y = Ct, k = kt, A = ze, q = ua;
14801
14810
  return Ve((n(), p(C, {
14802
14811
  data: l.value,
14803
14812
  style: { width: "100%" }
@@ -14835,13 +14844,13 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14835
14844
  }, {
14836
14845
  default: s((F) => [
14837
14846
  S(O(F.row.label) + " ", 1),
14838
- F.row.joinerType ? (n(), p(c, { key: 0 }, {
14847
+ F.row.joinerType ? (n(), p(b, { key: 0 }, {
14839
14848
  default: s(() => [
14840
14849
  r(h)
14841
14850
  ]),
14842
14851
  _: 1
14843
14852
  })) : g("", !0),
14844
- !F.row.joinerType && F.row.refFormType ? (n(), p(c, { key: 1 }, {
14853
+ !F.row.joinerType && F.row.refFormType ? (n(), p(b, { key: 1 }, {
14845
14854
  default: s(() => [
14846
14855
  r(_)
14847
14856
  ]),
@@ -14867,7 +14876,7 @@ const Rm = /* @__PURE__ */ B(jm, [["render", Um]]), vo = /* @__PURE__ */ L({
14867
14876
  }, {
14868
14877
  default: s((F) => [
14869
14878
  S(O(F.row.componentName) + " ", 1),
14870
- F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(b, {
14879
+ F.row.choiceType && e.formDb.data_list[e.parentField + "." + F.row.fieldName] ? (n(), p(c, {
14871
14880
  key: 0,
14872
14881
  width: 400,
14873
14882
  trigger: "click"
@@ -15269,7 +15278,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15269
15278
  formDataDic: {},
15270
15279
  popupWidthParent: "70%",
15271
15280
  popupWidthDic: "80%",
15272
- isDark: se(),
15281
+ isDark: re(),
15273
15282
  popSubSchema: {},
15274
15283
  versionDescription: t.versionDescription,
15275
15284
  activeCommt: "0",
@@ -15304,9 +15313,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15304
15313
  U.match(/^[a-z][a-z0-9_]+$/) ? t.joinerField.field_name = U : N.warning("Variables must be in English or numbers only and do not contain spaces.");
15305
15314
  }
15306
15315
  });
15307
- const c = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
15316
+ const b = le(() => t.joinerField && t.joinerField.label_fields ? t.joinerField.label_fields.join(", ") : "");
15308
15317
  le(() => a.formSelect && a.formSelect.form_name ? a.formSelect.form_name : "");
15309
- const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""), b = le(() => (a.preLoading = !1, Object.values(t.formDb.schema)));
15318
+ const _ = le(() => t.joinerField && t.joinerField.search_fields ? t.joinerField.search_fields.join(", ") : ""), C = le(() => t.joinerField && t.joinerField.ref_fields ? t.joinerField.ref_fields.join(", ") : ""), c = le(() => (a.preLoading = !1, Object.values(t.formDb.schema)));
15310
15319
  Ke(
15311
15320
  () => t.form_id,
15312
15321
  async (U, v) => {
@@ -15323,7 +15332,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15323
15332
  const M = () => {
15324
15333
  t.joinerField.order_by.push({
15325
15334
  column: "",
15326
- sort: me.ASC
15335
+ sort: fe.ASC
15327
15336
  });
15328
15337
  }, f = (U, v) => {
15329
15338
  t.joinerField.order_by.splice(v, 1);
@@ -15331,7 +15340,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15331
15340
  if (U !== "") {
15332
15341
  const v = {
15333
15342
  providerId: "getsdform-all",
15334
- providerType: de.SYS,
15343
+ providerType: ue.SYS,
15335
15344
  params: { form_license: t.formLicense },
15336
15345
  options: {
15337
15346
  fileterObjectId: ["_id"],
@@ -15363,17 +15372,17 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15363
15372
  a.subSchema = [];
15364
15373
  if (a.formSelect.joiner_field && a.formSelect.joiner_field.form_id && a.formSelect.joiner_field.joiner_enable) {
15365
15374
  const W = D(a.formSelect.joiner_field.form_id), J = D(a.formSelect.joiner_field.ref_form);
15366
- let ue = 1, je = {};
15375
+ let pe = 1, je = {};
15367
15376
  if (J) {
15368
15377
  for (const nt in J)
15369
- ue++;
15378
+ pe++;
15370
15379
  je = {
15371
- [`xtbxlv${ue}_xfx_id`]: W.value,
15380
+ [`xtbxlv${pe}_xfx_id`]: W.value,
15372
15381
  ...J
15373
15382
  };
15374
15383
  } else
15375
15384
  je = {
15376
- [`xtbxlv${ue}_xfx_id`]: W.value
15385
+ [`xtbxlv${pe}_xfx_id`]: W.value
15377
15386
  };
15378
15387
  t.joinerField.ref_form = D(je);
15379
15388
  }
@@ -15392,7 +15401,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15392
15401
  if (v && U !== "") {
15393
15402
  let W = {
15394
15403
  providerId: "getsdform-one",
15395
- providerType: de.SYS,
15404
+ providerType: ue.SYS,
15396
15405
  params: {
15397
15406
  id: U
15398
15407
  }
@@ -15482,9 +15491,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15482
15491
  textType: void 0
15483
15492
  };
15484
15493
  else if (U.search(/xtbxlv/g) !== -1) {
15485
- let J = U.split("xfx"), ue = U.split("lv"), je = "0";
15486
- if (ue.length > 1 && ue[1]) {
15487
- const nt = ue[1].split("_");
15494
+ let J = U.split("xfx"), pe = U.split("lv"), je = "0";
15495
+ if (pe.length > 1 && pe[1]) {
15496
+ const nt = pe[1].split("_");
15488
15497
  nt[0] && (je = nt[0]);
15489
15498
  }
15490
15499
  t.formDb.schema[W] = {
@@ -15683,9 +15692,9 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15683
15692
  });
15684
15693
  }
15685
15694
  return (U, v) => {
15686
- const W = oe, J = Ll, ue = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = qm, Mo = zm, Po = ua;
15695
+ const W = oe, J = Ll, pe = El, je = da, nt = ge, _e = ze, ie = lt, st = St, rt = Et, Ee = $e, _a = Nt, za = Ye, qa = jo, Ha = Bo, ne = qe, wo = Y("Link"), Wt = Ge, Fo = Y("Aim"), xa = Lt, Se = Dt, Mt = Ct, ct = kt, _o = va, So = Ra, ye = pt, Sa = vo, Wa = Y("InfoFilled"), ko = ra, Co = Nl, Do = Y("draggable"), Io = ut, Kt = Fe, $o = Y("sd-form-schema", !0), To = qm, Mo = zm, Po = ua;
15687
15696
  return n(), w(E, null, [
15688
- r(ue, {
15697
+ r(pe, {
15689
15698
  title: "Parent Form",
15690
15699
  column: 3,
15691
15700
  size: "default",
@@ -15734,7 +15743,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
15734
15743
  S("Label Fields", -1)
15735
15744
  ])]),
15736
15745
  default: s(() => [
15737
- S(" " + O(c.value), 1)
15746
+ S(" " + O(b.value), 1)
15738
15747
  ]),
15739
15748
  _: 1
15740
15749
  })) : g("", !0),
@@ -16036,11 +16045,11 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16036
16045
  })
16037
16046
  ]),
16038
16047
  default: s(() => [
16039
- r(pe(xl), {
16048
+ r(me(xl), {
16040
16049
  modelValue: $.countSite,
16041
16050
  "onUpdate:modelValue": (Q) => $.countSite = Q,
16042
16051
  "main-menu-bar": !1,
16043
- mode: pe(Wl).tree,
16052
+ mode: me(Wl).tree,
16044
16053
  style: { width: "100%" },
16045
16054
  class: X(a.isDark ? "jse-theme-dark" : "")
16046
16055
  }, null, 8, ["modelValue", "onUpdate:modelValue", "mode", "class"])
@@ -16073,7 +16082,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16073
16082
  _: 1
16074
16083
  }, 8, ["modelValue"])) : g("", !0),
16075
16084
  Ve((n(), p(xa, {
16076
- data: b.value,
16085
+ data: c.value,
16077
16086
  style: { width: "100%" }
16078
16087
  }, {
16079
16088
  default: s(() => [
@@ -16646,7 +16655,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16646
16655
  "onUpdate:modelValue": v[2] || (v[2] = ($) => a.versionDescription = $),
16647
16656
  mode: "mini",
16648
16657
  readonly: !0,
16649
- "user-state": pe(m)
16658
+ "user-state": me(m)
16650
16659
  }, null, 8, ["modelValue", "user-state"])
16651
16660
  ]),
16652
16661
  _: 1
@@ -16716,7 +16725,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16716
16725
  }, {
16717
16726
  default: s(() => [
16718
16727
  r(So, {
16719
- "user-state": pe(m),
16728
+ "user-state": me(m),
16720
16729
  modelValue: e.joinerField.form_id,
16721
16730
  "onUpdate:modelValue": v[4] || (v[4] = ($) => e.joinerField.form_id = $),
16722
16731
  filterable: "",
@@ -16726,7 +16735,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
16726
16735
  "enable-object-type": !0,
16727
16736
  "joiner-object": !0,
16728
16737
  "field-name": "joiner_field.form_id",
16729
- "data-provider": { providerId: "getsdform-all", providerType: pe(de).SYS, params: { form_license: e.formLicense } },
16738
+ "data-provider": { providerId: "getsdform-all", providerType: me(ue).SYS, params: { form_license: e.formLicense } },
16730
16739
  "value-field": "_id",
16731
16740
  "search-field": ["form_name"],
16732
16741
  "label-field": ["form_name"],
@@ -17025,7 +17034,7 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
17025
17034
  dark: a.isDark,
17026
17035
  class: "mb-1",
17027
17036
  plain: "",
17028
- onClick: (Q) => pe(xm)("{{" + $.value + "}}")
17037
+ onClick: (Q) => me(xm)("{{" + $.value + "}}")
17029
17038
  }, {
17030
17039
  default: s(() => [
17031
17040
  S(O($.value), 1)
@@ -17162,14 +17171,14 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
17162
17171
  }, {
17163
17172
  default: s(() => [
17164
17173
  (n(), p(Se, {
17165
- key: pe(me).ASC,
17166
- label: pe(me).ASC,
17167
- value: pe(me).ASC
17174
+ key: me(fe).ASC,
17175
+ label: me(fe).ASC,
17176
+ value: me(fe).ASC
17168
17177
  }, null, 8, ["label", "value"])),
17169
17178
  (n(), p(Se, {
17170
- key: pe(me).DESC,
17171
- label: pe(me).DESC,
17172
- value: pe(me).DESC
17179
+ key: me(fe).DESC,
17180
+ label: me(fe).DESC,
17181
+ value: me(fe).DESC
17173
17182
  }, null, 8, ["label", "value"]))
17174
17183
  ]),
17175
17184
  _: 1
@@ -17420,8 +17429,8 @@ const Wm = { key: 3 }, Km = { class: "items-box" }, Gm = { class: "opt-item" },
17420
17429
  class: "el-dialog__title"
17421
17430
  }, nf = { class: "dialog-footer" };
17422
17431
  function sf(e, t, a, l, o, i) {
17423
- const d = Ze, u = ge, m = af, h = oe, c = Fe;
17424
- return n(), p(c, {
17432
+ const d = Ze, u = ge, m = af, h = oe, b = Fe;
17433
+ return n(), p(b, {
17425
17434
  title: `Data Dic - ${e.popupName}`,
17426
17435
  modelValue: e.showPopupFlag,
17427
17436
  "onUpdate:modelValue": t[0] || (t[0] = (_) => e.showPopupFlag = _),
@@ -17434,7 +17443,7 @@ function sf(e, t, a, l, o, i) {
17434
17443
  "close-on-press-escape": !0,
17435
17444
  "destroy-on-close": !0
17436
17445
  }, {
17437
- header: s(({ close: _, titleId: C, titleClass: b }) => [
17446
+ header: s(({ close: _, titleId: C, titleClass: c }) => [
17438
17447
  P("span", of, [
17439
17448
  e.iconForm != "" ? (n(), p(d, {
17440
17449
  key: 0,
@@ -17473,7 +17482,7 @@ function sf(e, t, a, l, o, i) {
17473
17482
  _: 1
17474
17483
  }, 8, ["title", "modelValue", "width", "before-close", "close-on-click-modal"]);
17475
17484
  }
17476
- const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17485
+ const vg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17477
17486
  __name: "SdDynamicInput",
17478
17487
  props: {
17479
17488
  modelValue: {},
@@ -17489,7 +17498,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17489
17498
  const a = e, l = ke({
17490
17499
  inputType: a.inputType,
17491
17500
  inputOptions: {},
17492
- isDark: se(),
17501
+ isDark: re(),
17493
17502
  arrayList: ["multiselect-editor"],
17494
17503
  stringList: [
17495
17504
  "text-editor",
@@ -17512,9 +17521,9 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17512
17521
  m("update:modelValue", C);
17513
17522
  }
17514
17523
  });
17515
- Ke(i, (C, b) => {
17516
- C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(b) ? u.value = isNaN(u.value) ? void 0 : Number(u.value) : u.value = void 0) : l.stringList.includes(C) ? typeof !a.modelValue == "string" && (l.arrayList.includes(b) || b == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(b) ? u.value = Ln(u.value) : b == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Ba(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(b) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(b) || (u.value = [])), l.inputType = C;
17517
- }), Ke(d, (C, b) => {
17524
+ Ke(i, (C, c) => {
17525
+ C == "number-editor" ? typeof !a.modelValue == "number" && (l.stringList.includes(c) ? u.value = isNaN(u.value) ? void 0 : Number(u.value) : u.value = void 0) : l.stringList.includes(C) ? typeof !a.modelValue == "string" && (l.arrayList.includes(c) || c == "json-editor" ? u.value = String(a.modelValue).toString() : u.value = String(u.value)) : C == "boolean-editor" ? typeof !a.modelValue == "boolean" && (l.stringList.includes(c) ? u.value = Ln(u.value) : c == "number-editor" ? u.value = u.value > 0 : u.value = !!(u.value && !Ba(u.value))) : l.arrayList.includes(C) ? typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])) : C == "json-editor" && typeof !a.modelValue == "object" && (l.arrayList.includes(c) || (u.value = [])), l.inputType = C;
17526
+ }), Ke(d, (C, c) => {
17518
17527
  l.inputOptions = C;
17519
17528
  }), Je(() => {
17520
17529
  l.inputType = a.inputType, l.inputOptions = a.inputOptions;
@@ -17523,44 +17532,44 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17523
17532
  function h(C) {
17524
17533
  m("change", C);
17525
17534
  }
17526
- function c(C) {
17535
+ function b(C) {
17527
17536
  m("focus", C);
17528
17537
  }
17529
17538
  function _(C) {
17530
17539
  m("blur", C);
17531
17540
  }
17532
- return (C, b) => {
17541
+ return (C, c) => {
17533
17542
  const M = $e, f = Nt, y = Bl, k = Uo, A = kt, q = Dt, F = Ct, I = zo, V = Ro, T = Pa, H = va, Z = Nn;
17534
17543
  return n(), w(E, null, [
17535
17544
  l.inputType === "text-editor" ? (n(), p(M, ae({
17536
17545
  key: 0,
17537
17546
  modelValue: u.value,
17538
- "onUpdate:modelValue": b[0] || (b[0] = (x) => u.value = x),
17547
+ "onUpdate:modelValue": c[0] || (c[0] = (x) => u.value = x),
17539
17548
  type: "text",
17540
17549
  size: e.size || void 0,
17541
17550
  clearable: !0
17542
17551
  }, l.inputOptions ? l.inputOptions : void 0, {
17543
17552
  disabled: !!e.readonly || e.readonly,
17544
- onFocus: c,
17553
+ onFocus: b,
17545
17554
  onBlur: _,
17546
17555
  onChange: h
17547
17556
  }), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
17548
17557
  l.inputType === "number-editor" ? (n(), p(f, ae({
17549
17558
  key: 1,
17550
17559
  modelValue: u.value,
17551
- "onUpdate:modelValue": b[1] || (b[1] = (x) => u.value = x),
17560
+ "onUpdate:modelValue": c[1] || (c[1] = (x) => u.value = x),
17552
17561
  style: { width: "100%" },
17553
17562
  size: e.size || void 0
17554
17563
  }, l.inputOptions ? l.inputOptions : void 0, {
17555
17564
  disabled: !!e.readonly || e.readonly,
17556
- onFocus: c,
17565
+ onFocus: b,
17557
17566
  onBlur: _,
17558
17567
  onChange: h
17559
17568
  }), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
17560
17569
  l.inputType === "datetime-editor" ? (n(), p(y, ae({
17561
17570
  key: 2,
17562
17571
  modelValue: u.value,
17563
- "onUpdate:modelValue": b[2] || (b[2] = (x) => u.value = x),
17572
+ "onUpdate:modelValue": c[2] || (c[2] = (x) => u.value = x),
17564
17573
  type: "datetime",
17565
17574
  disabled: !!e.readonly || e.readonly,
17566
17575
  clearable: !0,
@@ -17569,14 +17578,14 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17569
17578
  format: "DD/MM/YYYY HH:mm",
17570
17579
  "value-format": "YYYY-MM-DD HH:mm:ss",
17571
17580
  placeholder: "Select Date Time...",
17572
- onFocus: c,
17581
+ onFocus: b,
17573
17582
  onBlur: _,
17574
17583
  onChange: h
17575
17584
  }), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
17576
17585
  l.inputType === "date-editor" ? (n(), p(y, ae({
17577
17586
  key: 3,
17578
17587
  modelValue: u.value,
17579
- "onUpdate:modelValue": b[3] || (b[3] = (x) => u.value = x),
17588
+ "onUpdate:modelValue": c[3] || (c[3] = (x) => u.value = x),
17580
17589
  type: "date",
17581
17590
  disabled: !!e.readonly || e.readonly,
17582
17591
  clearable: !0,
@@ -17585,14 +17594,14 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17585
17594
  format: "DD/MM/YYYY",
17586
17595
  "value-format": "YYYY-MM-DD",
17587
17596
  placeholder: "Select Date...",
17588
- onFocus: c,
17597
+ onFocus: b,
17589
17598
  onBlur: _,
17590
17599
  onChange: h
17591
17600
  }), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
17592
17601
  l.inputType === "time-editor" ? (n(), p(k, ae({
17593
17602
  key: 4,
17594
17603
  modelValue: u.value,
17595
- "onUpdate:modelValue": b[4] || (b[4] = (x) => u.value = x),
17604
+ "onUpdate:modelValue": c[4] || (c[4] = (x) => u.value = x),
17596
17605
  disabled: !!e.readonly || e.readonly,
17597
17606
  size: e.size
17598
17607
  }, l.inputOptions ? l.inputOptions : void 0, {
@@ -17600,46 +17609,46 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17600
17609
  format: "HH:mm",
17601
17610
  "value-format": "HH:mm:ss",
17602
17611
  placeholder: "Select Time...",
17603
- onFocus: c,
17612
+ onFocus: b,
17604
17613
  onBlur: _,
17605
17614
  onChange: h
17606
17615
  }), null, 16, ["modelValue", "disabled", "size"])) : g("", !0),
17607
17616
  l.inputType === "boolean-editor" ? (n(), p(A, ae({
17608
17617
  key: 5,
17609
17618
  modelValue: u.value,
17610
- "onUpdate:modelValue": b[5] || (b[5] = (x) => u.value = x),
17619
+ "onUpdate:modelValue": c[5] || (c[5] = (x) => u.value = x),
17611
17620
  "active-text": u.value ? "True" : "False"
17612
17621
  }, l.inputOptions ? l.inputOptions : void 0, {
17613
17622
  disabled: !!e.readonly || e.readonly,
17614
17623
  size: e.size || void 0,
17615
- onFocus: c,
17624
+ onFocus: b,
17616
17625
  onBlur: _,
17617
17626
  onChange: h
17618
17627
  }), null, 16, ["modelValue", "active-text", "disabled", "size"])) : g("", !0),
17619
17628
  l.inputType === "textarea-editor" ? (n(), p(M, ae({
17620
17629
  key: 6,
17621
17630
  modelValue: u.value,
17622
- "onUpdate:modelValue": b[6] || (b[6] = (x) => u.value = x),
17631
+ "onUpdate:modelValue": c[6] || (c[6] = (x) => u.value = x),
17623
17632
  type: "textarea",
17624
17633
  rows: 3,
17625
17634
  size: e.size || void 0
17626
17635
  }, l.inputOptions ? l.inputOptions : void 0, {
17627
17636
  disabled: !!e.readonly || e.readonly,
17628
- onFocus: c,
17637
+ onFocus: b,
17629
17638
  onBlur: _,
17630
17639
  onChange: h
17631
17640
  }), null, 16, ["modelValue", "size", "disabled"])) : g("", !0),
17632
17641
  l.inputType === "select-editor" ? (n(), p(F, ae({
17633
17642
  key: 7,
17634
17643
  modelValue: u.value,
17635
- "onUpdate:modelValue": b[7] || (b[7] = (x) => u.value = x),
17644
+ "onUpdate:modelValue": c[7] || (c[7] = (x) => u.value = x),
17636
17645
  style: { width: "100%" },
17637
17646
  clearable: !0,
17638
17647
  size: e.size || void 0,
17639
17648
  placeholder: "Please Select..."
17640
17649
  }, l.inputOptions ? l.inputOptions : void 0, {
17641
17650
  disabled: !!e.readonly || e.readonly,
17642
- onFocus: c,
17651
+ onFocus: b,
17643
17652
  onBlur: _,
17644
17653
  onChange: h
17645
17654
  }), {
@@ -17655,11 +17664,11 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17655
17664
  l.inputType === "radio-editor" ? (n(), p(V, ae({
17656
17665
  key: 8,
17657
17666
  modelValue: u.value,
17658
- "onUpdate:modelValue": b[8] || (b[8] = (x) => u.value = x)
17667
+ "onUpdate:modelValue": c[8] || (c[8] = (x) => u.value = x)
17659
17668
  }, l.inputOptions ? l.inputOptions : void 0, {
17660
17669
  disabled: !!e.readonly || e.readonly,
17661
17670
  size: e.size || void 0,
17662
- onFocus: c,
17671
+ onFocus: b,
17663
17672
  onBlur: _,
17664
17673
  onChange: h
17665
17674
  }), {
@@ -17675,13 +17684,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17675
17684
  l.inputType === "multiselect-editor" ? (n(), p(F, ae({
17676
17685
  key: 9,
17677
17686
  modelValue: u.value,
17678
- "onUpdate:modelValue": b[9] || (b[9] = (x) => u.value = x)
17687
+ "onUpdate:modelValue": c[9] || (c[9] = (x) => u.value = x)
17679
17688
  }, l.inputOptions ? l.inputOptions : void 0, {
17680
17689
  multiple: "",
17681
17690
  size: e.size || void 0,
17682
17691
  style: { width: "100%" },
17683
17692
  disabled: !!e.readonly || e.readonly,
17684
- onFocus: c,
17693
+ onFocus: b,
17685
17694
  onBlur: _,
17686
17695
  onChange: h
17687
17696
  }), {
@@ -17697,61 +17706,61 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17697
17706
  l.inputType === "color-editor" ? (n(), p(T, ae({
17698
17707
  key: 10,
17699
17708
  modelValue: u.value,
17700
- "onUpdate:modelValue": b[10] || (b[10] = (x) => u.value = x),
17709
+ "onUpdate:modelValue": c[10] || (c[10] = (x) => u.value = x),
17701
17710
  size: e.size || void 0,
17702
17711
  "show-alpha": !0
17703
17712
  }, l.inputOptions ? l.inputOptions : void 0, {
17704
17713
  predefine: o.value,
17705
17714
  disabled: !!e.readonly || e.readonly,
17706
- onFocus: c,
17715
+ onFocus: b,
17707
17716
  onBlur: _,
17708
17717
  onChange: h
17709
17718
  }), null, 16, ["modelValue", "size", "predefine", "disabled"])) : g("", !0),
17710
- l.inputType === "json-editor" ? (n(), p(pe(xl), {
17719
+ l.inputType === "json-editor" ? (n(), p(me(xl), {
17711
17720
  key: 11,
17712
17721
  modelValue: u.value,
17713
- "onUpdate:modelValue": b[11] || (b[11] = (x) => u.value = x),
17722
+ "onUpdate:modelValue": c[11] || (c[11] = (x) => u.value = x),
17714
17723
  "main-menu-bar": !1,
17715
17724
  "navigation-bar": !1,
17716
- mode: pe(Wl).tree,
17725
+ mode: me(Wl).tree,
17717
17726
  style: { width: "100%" },
17718
17727
  size: e.size || void 0,
17719
17728
  class: X(l.isDark ? "jse-theme-dark" : ""),
17720
17729
  "read-only": !!e.readonly || e.readonly,
17721
- onFocus: c,
17730
+ onFocus: b,
17722
17731
  onBlur: _,
17723
17732
  onChange: h
17724
17733
  }, null, 8, ["modelValue", "mode", "size", "class", "read-only"])) : g("", !0),
17725
17734
  l.inputType === "html-editor" ? (n(), p(H, ae({
17726
17735
  key: 12,
17727
17736
  modelValue: u.value,
17728
- "onUpdate:modelValue": b[12] || (b[12] = (x) => u.value = x),
17737
+ "onUpdate:modelValue": c[12] || (c[12] = (x) => u.value = x),
17729
17738
  mode: "full",
17730
17739
  size: e.size || void 0
17731
17740
  }, l.inputOptions ? l.inputOptions : void 0, {
17732
17741
  readonly: !!e.readonly || e.readonly,
17733
17742
  "user-state": e.userState,
17734
- onFocus: c,
17743
+ onFocus: b,
17735
17744
  onBlur: _,
17736
17745
  onChange: h
17737
17746
  }), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
17738
17747
  l.inputType === "html-mini-editor" ? (n(), p(H, ae({
17739
17748
  key: 13,
17740
17749
  modelValue: u.value,
17741
- "onUpdate:modelValue": b[13] || (b[13] = (x) => u.value = x),
17750
+ "onUpdate:modelValue": c[13] || (c[13] = (x) => u.value = x),
17742
17751
  mode: "mini",
17743
17752
  size: e.size || void 0
17744
17753
  }, l.inputOptions ? l.inputOptions : void 0, {
17745
17754
  readonly: !!e.readonly || e.readonly,
17746
17755
  "user-state": e.userState,
17747
- onFocus: c,
17756
+ onFocus: b,
17748
17757
  onBlur: _,
17749
17758
  onChange: h
17750
17759
  }), null, 16, ["modelValue", "size", "readonly", "user-state"])) : g("", !0),
17751
17760
  l.inputType === "css-editor" ? (n(), p(Z, ae({
17752
17761
  key: 14,
17753
17762
  value: u.value,
17754
- "onUpdate:value": b[14] || (b[14] = (x) => u.value = x)
17763
+ "onUpdate:value": c[14] || (c[14] = (x) => u.value = x)
17755
17764
  }, l.inputOptions ? l.inputOptions : void 0, {
17756
17765
  readonly: !!e.readonly || e.readonly,
17757
17766
  lang: "css",
@@ -17767,13 +17776,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17767
17776
  enableLiveAutocompletion: !0
17768
17777
  },
17769
17778
  onOnBlur: _,
17770
- onOnFocus: c,
17779
+ onOnFocus: b,
17771
17780
  onOnChange: h
17772
17781
  }), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0),
17773
17782
  l.inputType === "js-editor" ? (n(), p(Z, ae({
17774
17783
  key: 15,
17775
17784
  value: u.value,
17776
- "onUpdate:value": b[15] || (b[15] = (x) => u.value = x)
17785
+ "onUpdate:value": c[15] || (c[15] = (x) => u.value = x)
17777
17786
  }, l.inputOptions ? l.inputOptions : void 0, {
17778
17787
  readonly: !!e.readonly || e.readonly,
17779
17788
  lang: "javascript",
@@ -17789,19 +17798,19 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17789
17798
  enableLiveAutocompletion: !0
17790
17799
  },
17791
17800
  onOnBlur: _,
17792
- onOnFocus: c,
17801
+ onOnFocus: b,
17793
17802
  onOnChange: h
17794
17803
  }), null, 16, ["value", "readonly", "size", "theme"])) : g("", !0)
17795
17804
  ], 64);
17796
17805
  };
17797
17806
  }
17798
- }), vg = /* @__PURE__ */ B(rf, [["__scopeId", "data-v-3bca21e7"]]), df = {
17807
+ }), wg = /* @__PURE__ */ B(rf, [["__scopeId", "data-v-3bca21e7"]]), df = {
17799
17808
  role: "heading",
17800
17809
  class: "el-dialog__title"
17801
17810
  }, uf = { style: { width: "100%", "min-height": "500px", height: "500px" } }, pf = {
17802
17811
  key: 0,
17803
17812
  style: { color: "var(--el-color-warning)", "font-size": "9px" }
17804
- }, wg = /* @__PURE__ */ L({
17813
+ }, Fg = /* @__PURE__ */ L({
17805
17814
  __name: "SdFormErd",
17806
17815
  props: {
17807
17816
  modelValue: null,
@@ -17861,15 +17870,15 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17861
17870
  });
17862
17871
  });
17863
17872
  async function m(C = "TB") {
17864
- const b = new Xa.graphlib.Graph(), M = C === "LR";
17865
- b.setDefaultEdgeLabel(() => ({})), b.setGraph({ rankdir: C }), await yt(async () => {
17873
+ const c = new Xa.graphlib.Graph(), M = C === "LR";
17874
+ c.setDefaultEdgeLabel(() => ({})), c.setGraph({ rankdir: C }), await yt(async () => {
17866
17875
  o.nodes.forEach((f) => {
17867
17876
  const y = i(f.id);
17868
- y ? b.setNode(f.id, { width: y.dimensions.width || 200, height: y.dimensions.height || 50 }) : b.setNode(f.id, { width: 200, height: 50 });
17877
+ y ? c.setNode(f.id, { width: y.dimensions.width || 200, height: y.dimensions.height || 50 }) : c.setNode(f.id, { width: 200, height: 50 });
17869
17878
  }), o.edges.forEach((f) => {
17870
- b.setEdge(f.source, f.target);
17871
- }), Xa.layout(b), o.nodes = await o.nodes.map((f) => {
17872
- const y = b.node(f.id);
17879
+ c.setEdge(f.source, f.target);
17880
+ }), Xa.layout(c), o.nodes = await o.nodes.map((f) => {
17881
+ const y = c.node(f.id);
17873
17882
  return {
17874
17883
  ...f,
17875
17884
  targetPosition: M ? Yt.Left : Yt.Top,
@@ -17896,13 +17905,13 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17896
17905
  else
17897
17906
  N.warning("FormId not found.");
17898
17907
  }
17899
- function c() {
17908
+ function b() {
17900
17909
  l.cancelCallback && (l.cancelCallback(), o.showContent = !1);
17901
17910
  }
17902
17911
  async function _(C) {
17903
17912
  o.showContent = !1, o.sdformModel = C, l.userState.formStore[l.formId] = o.sdformModel, l.fixApiUrl && l.fixApiUrl != "" ? o.apiUrl = l.fixApiUrl : o.sdformModel.form_db.api_url && o.sdformModel.form_db.api_url != "" ? o.apiUrl = o.sdformModel.form_db.api_url : o.apiUrl = window.APP_CONFIG.API_URL, o.titleNameForm = o.sdformModel.form_name ? o.sdformModel.form_name : "", o.popupName = `${o.titleNameForm}`, o.sdformModel.form_icon ? o.iconForm = o.sdformModel.form_icon : o.iconForm = "", o.popupWidth = ee(o.popupWidthdefault);
17904
- let b = o.sdformModel._id;
17905
- o.sdformModel.joiner_field.joiner_enable && (b = o.sdformModel.joiner_field.form_parent), await l.userState.crudGetAll({ sdProvider: { providerId: "get-erd-list", providerType: "SYS", params: { parent: b } }, totalEnable: !1 }, async (M) => {
17913
+ let c = o.sdformModel._id;
17914
+ o.sdformModel.joiner_field.joiner_enable && (c = o.sdformModel.joiner_field.form_parent), await l.userState.crudGetAll({ sdProvider: { providerId: "get-erd-list", providerType: "SYS", params: { parent: c } }, totalEnable: !1 }, async (M) => {
17906
17915
  o.formList = D(M.data);
17907
17916
  const f = { x: 0, y: 0 };
17908
17917
  for (const y in o.formList)
@@ -17916,7 +17925,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17916
17925
  label: k.form_name,
17917
17926
  icon: k.form_icon,
17918
17927
  ref_fields: k.ref_fields,
17919
- isParent: b == k._id,
17928
+ isParent: c == k._id,
17920
17929
  curNode: k._id == l.formId
17921
17930
  }
17922
17931
  // style: {
@@ -17940,16 +17949,16 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17940
17949
  m("TB");
17941
17950
  });
17942
17951
  }
17943
- return (C, b) => {
17952
+ return (C, c) => {
17944
17953
  const M = Ze, f = ge, y = Fe;
17945
17954
  return n(), p(y, {
17946
17955
  title: o.popupName,
17947
17956
  modelValue: u.value,
17948
- "onUpdate:modelValue": b[0] || (b[0] = (k) => u.value = k),
17957
+ "onUpdate:modelValue": c[0] || (c[0] = (k) => u.value = k),
17949
17958
  width: 800,
17950
17959
  "show-close": !0,
17951
17960
  class: "dialog-grid dialog-form",
17952
- "before-close": c,
17961
+ "before-close": b,
17953
17962
  "append-to-body": "",
17954
17963
  "close-on-click-modal": e.backdrop,
17955
17964
  "close-on-press-escape": !0,
@@ -17969,7 +17978,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
17969
17978
  ]),
17970
17979
  default: s(() => [
17971
17980
  P("div", uf, [
17972
- o.showContent ? (n(), p(pe(ni), {
17981
+ o.showContent ? (n(), p(me(ni), {
17973
17982
  key: 0,
17974
17983
  nodes: o.nodes,
17975
17984
  edges: o.edges,
@@ -18170,7 +18179,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18170
18179
  },
18171
18180
  methods: {
18172
18181
  async getDataList(e, t) {
18173
- this.preLoading = !0, await he.post(
18182
+ this.preLoading = !0, await ce.post(
18174
18183
  `${this.apiUrl}/widget/crud/getdata-all`,
18175
18184
  {
18176
18185
  sdProvider: e,
@@ -18191,7 +18200,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18191
18200
  if (e.dataid = e._id || null, this.expandProvider) {
18192
18201
  this.expandProvider.params ? this.expandProvider.params = { ...this.expandProvider.params, ...e } : this.expandProvider.params = D(e);
18193
18202
  const l = this.rowKey;
18194
- l && e[l] != null && e[l] != null && (this.expandProvider.params.rowKey = e[l], he.post(
18203
+ l && e[l] != null && e[l] != null && (this.expandProvider.params.rowKey = e[l], ce.post(
18195
18204
  `${this.apiUrl}/widget/crud/getdata-all`,
18196
18205
  {
18197
18206
  sdProvider: this.expandProvider,
@@ -18284,7 +18293,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18284
18293
  }
18285
18294
  },
18286
18295
  handleSort(e) {
18287
- this.optionProvider.orderBy = D(this.defaultSort), e.order !== null && (this.defaultSort && this.optionProvider.orderBy ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? me.DESC : me.ASC }]), this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
18296
+ this.optionProvider.orderBy = D(this.defaultSort), e.order !== null && (this.defaultSort && this.optionProvider.orderBy ? this.optionProvider.orderBy.push({ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }) : this.optionProvider.orderBy = [{ column: `\`${e.prop}\``, sort: e.order == "descending" ? fe.DESC : fe.ASC }]), this.expandProvider && this.resetExpand(), this.dataProvider.options = this.optionProvider, this.getDataList(this.dataProvider);
18288
18297
  },
18289
18298
  handleSearch() {
18290
18299
  this.searchText != "" ? this.dataProvider.params.q = `%${this.searchText}%` : delete this.dataProvider.params.q, this.expandProvider && this.resetExpand(), this.getDataList(this.dataProvider);
@@ -18313,7 +18322,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18313
18322
  cancelButtonText: "Cancel",
18314
18323
  type: "warning"
18315
18324
  }).then(() => {
18316
- he.delete(`${this.apiUrl}/widget/crud/delete-data`, {
18325
+ ce.delete(`${this.apiUrl}/widget/crud/delete-data`, {
18317
18326
  headers: {
18318
18327
  Authorization: `Bearer ${this.userState.user?.token}`
18319
18328
  },
@@ -18336,7 +18345,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18336
18345
  cancelButtonText: "Cancel",
18337
18346
  type: "warning"
18338
18347
  }).then(() => {
18339
- he.put(
18348
+ ce.put(
18340
18349
  `${this.apiUrl}/widget/crud/update-data`,
18341
18350
  {
18342
18351
  id: o,
@@ -18385,7 +18394,7 @@ const yg = /* @__PURE__ */ B(lf, [["render", sf]]), rf = /* @__PURE__ */ L({
18385
18394
  style: { height: "32px", display: "inline-grid", "align-content": "center" }
18386
18395
  }, vf = { class: "card-footer" }, wf = { key: 0 };
18387
18396
  function Ff(e, t, a, l, o, i) {
18388
- const d = ge, u = ze, m = oe, h = lt, c = $e, _ = na, C = St, b = qe, M = Lt, f = Aa, y = Fe, k = ua;
18397
+ const d = ge, u = ze, m = oe, h = lt, b = $e, _ = na, C = St, c = qe, M = Lt, f = Aa, y = Fe, k = ua;
18389
18398
  return n(), w(E, null, [
18390
18399
  r(f, {
18391
18400
  class: "box-card",
@@ -18407,7 +18416,7 @@ function Ff(e, t, a, l, o, i) {
18407
18416
  _: 1
18408
18417
  }),
18409
18418
  P("span", bf, [
18410
- fe(e.$slots, "actionsBar", {}, void 0, !0)
18419
+ he(e.$slots, "actionsBar", {}, void 0, !0)
18411
18420
  ])
18412
18421
  ])) : g("", !0),
18413
18422
  r(C, { gutter: 20 }, {
@@ -18433,7 +18442,7 @@ function Ff(e, t, a, l, o, i) {
18433
18442
  _: 1
18434
18443
  }, 8, ["onClick"])) : g("", !0),
18435
18444
  t[4] || (t[4] = S()),
18436
- fe(e.$slots, "actions", {}, void 0, !0),
18445
+ he(e.$slots, "actions", {}, void 0, !0),
18437
18446
  e.totalInline ? (n(), w(E, { key: 1 }, [
18438
18447
  r(m, {
18439
18448
  type: "info",
@@ -18462,7 +18471,7 @@ function Ff(e, t, a, l, o, i) {
18462
18471
  md: 10
18463
18472
  }, {
18464
18473
  default: s(() => [
18465
- r(c, {
18474
+ r(b, {
18466
18475
  modelValue: e.searchText,
18467
18476
  "onUpdate:modelValue": t[0] || (t[0] = (A) => e.searchText = A),
18468
18477
  placeholder: e.placeholderSearch,
@@ -18489,7 +18498,7 @@ function Ff(e, t, a, l, o, i) {
18489
18498
  style: { display: "inline-flex" }
18490
18499
  }, {
18491
18500
  default: s(() => [
18492
- fe(e.$slots, "actionsPager", {}, () => [
18501
+ he(e.$slots, "actionsPager", {}, () => [
18493
18502
  e.total > e.limit ? (n(), p(_, {
18494
18503
  key: 0,
18495
18504
  class: "mb-2",
@@ -18556,7 +18565,7 @@ function Ff(e, t, a, l, o, i) {
18556
18565
  onFilterChange: e.handleFilter
18557
18566
  }, {
18558
18567
  default: s(() => [
18559
- e.actionEnable ? (n(), p(b, {
18568
+ e.actionEnable ? (n(), p(c, {
18560
18569
  key: 0,
18561
18570
  fixed: "",
18562
18571
  label: e.actionLabel,
@@ -18596,7 +18605,7 @@ function Ff(e, t, a, l, o, i) {
18596
18605
  ]),
18597
18606
  _: 1
18598
18607
  }, 8, ["label", "width"])) : g("", !0),
18599
- fe(e.$slots, "default", {}, void 0, !0)
18608
+ he(e.$slots, "default", {}, void 0, !0)
18600
18609
  ]),
18601
18610
  _: 3
18602
18611
  }, 8, ["data", "border", "show-summary", "summary-method", "onSortChange", "height", "max-height", "row-key", "onExpandChange", "lazy", "load", "tree-props", "onFilterChange"])), [
@@ -18632,14 +18641,14 @@ function Ff(e, t, a, l, o, i) {
18632
18641
  "destroy-on-close": !0
18633
18642
  }, {
18634
18643
  default: s(() => [
18635
- fe(e.$slots, "popup", {}, void 0, !0)
18644
+ he(e.$slots, "popup", {}, void 0, !0)
18636
18645
  ]),
18637
18646
  _: 3
18638
18647
  }, 8, ["title", "modelValue", "width", "close-on-click-modal"])
18639
18648
  ])) : g("", !0)
18640
18649
  ], 64);
18641
18650
  }
18642
- const Fg = /* @__PURE__ */ B(mf, [["render", Ff], ["__scopeId", "data-v-a6ab139e"]]), _f = L({
18651
+ const _g = /* @__PURE__ */ B(mf, [["render", Ff], ["__scopeId", "data-v-a6ab139e"]]), _f = L({
18643
18652
  name: "SdGridColumnIndex",
18644
18653
  props: {
18645
18654
  columnLabel: {
@@ -18675,7 +18684,7 @@ function Sf(e, t, a, l, o, i) {
18675
18684
  align: "center"
18676
18685
  }, null, 8, ["index", "label", "width"]);
18677
18686
  }
18678
- const _g = /* @__PURE__ */ B(_f, [["render", Sf]]), kf = L({
18687
+ const Sg = /* @__PURE__ */ B(_f, [["render", Sf]]), kf = L({
18679
18688
  name: "SdGridColumnDate",
18680
18689
  props: {
18681
18690
  columnProp: {
@@ -18728,7 +18737,7 @@ function Cf(e, t, a, l, o, i) {
18728
18737
  _: 1
18729
18738
  }, 8, ["prop", "label", "width", "sortable"]);
18730
18739
  }
18731
- const Sg = /* @__PURE__ */ B(kf, [["render", Cf]]), Df = [
18740
+ const kg = /* @__PURE__ */ B(kf, [["render", Cf]]), Df = [
18732
18741
  {
18733
18742
  value: "addon-api",
18734
18743
  label: "Api"
@@ -22216,9 +22225,9 @@ function Pf(e, t, a, l, o, i) {
22216
22225
  loading: e.loading,
22217
22226
  onChange: e.handleChange
22218
22227
  }, {
22219
- label: s(({ label: h, value: c }) => [
22228
+ label: s(({ label: h, value: b }) => [
22220
22229
  r(d, {
22221
- "icon-name": e.elIcons ? "el-" + c : c,
22230
+ "icon-name": e.elIcons ? "el-" + b : b,
22222
22231
  size: "14px",
22223
22232
  class: "mr-1"
22224
22233
  }, null, 8, ["icon-name"]),
@@ -22246,7 +22255,7 @@ function Pf(e, t, a, l, o, i) {
22246
22255
  _: 1
22247
22256
  }, 8, ["modelValue", "multiple", "allow-create", "disabled", "remote-method", "placeholder", "loading", "onChange"]);
22248
22257
  }
22249
- const kg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
22258
+ const Cg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
22250
22259
  name: "OptionsItemSetting",
22251
22260
  props: {
22252
22261
  typeSelect: String,
@@ -22318,7 +22327,7 @@ const kg = /* @__PURE__ */ B($f, [["render", Pf]]), Vf = L({
22318
22327
  class: ""
22319
22328
  }, Lf = { class: "dialog-footer" };
22320
22329
  function Bf(e, t, a, l, o, i) {
22321
- const d = $e, u = ge, m = oe, h = Y("draggable"), c = ze, _ = Al, C = Fe;
22330
+ const d = $e, u = ge, m = oe, h = Y("draggable"), b = ze, _ = Al, C = Fe;
22322
22331
  return n(), w("div", Af, [
22323
22332
  e.optionItems && e.optionItems.length > 0 ? (n(), p(h, ae({
22324
22333
  key: 0,
@@ -22330,19 +22339,19 @@ function Bf(e, t, a, l, o, i) {
22330
22339
  ghostClass: "ghost",
22331
22340
  handle: ".drag-option"
22332
22341
  }), {
22333
- item: s(({ element: b, index: M }) => [
22342
+ item: s(({ element: c, index: M }) => [
22334
22343
  P("li", Of, [
22335
22344
  r(d, {
22336
- modelValue: b.value,
22337
- "onUpdate:modelValue": (f) => b.value = f,
22345
+ modelValue: c.value,
22346
+ "onUpdate:modelValue": (f) => c.value = f,
22338
22347
  style: { width: "30%" },
22339
22348
  class: "mr-1",
22340
22349
  onFocus: e.focusText,
22341
22350
  disabled: !!e.readonly || e.readonly
22342
22351
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onFocus", "disabled"]),
22343
22352
  r(d, {
22344
- modelValue: b.label,
22345
- "onUpdate:modelValue": (f) => b.label = f,
22353
+ modelValue: c.label,
22354
+ "onUpdate:modelValue": (f) => c.label = f,
22346
22355
  style: { width: "50%" },
22347
22356
  onFocus: e.focusText,
22348
22357
  disabled: !!e.readonly || e.readonly
@@ -22366,7 +22375,7 @@ function Bf(e, t, a, l, o, i) {
22366
22375
  circle: "",
22367
22376
  plain: "",
22368
22377
  type: "danger",
22369
- onClick: (f) => e.deleteOption(b, M),
22378
+ onClick: (f) => e.deleteOption(c, M),
22370
22379
  icon: "Delete",
22371
22380
  class: "col-delete-button"
22372
22381
  }, null, 8, ["onClick"]))
@@ -22374,7 +22383,7 @@ function Bf(e, t, a, l, o, i) {
22374
22383
  ]),
22375
22384
  _: 1
22376
22385
  }, 16, ["list"])) : (n(), w("div", Nf, [
22377
- r(c, { type: "info" }, {
22386
+ r(b, { type: "info" }, {
22378
22387
  default: s(() => [...t[3] || (t[3] = [
22379
22388
  S("No Data", -1)
22380
22389
  ])]),
@@ -22416,7 +22425,7 @@ function Bf(e, t, a, l, o, i) {
22416
22425
  r(C, {
22417
22426
  title: "Import Options",
22418
22427
  modelValue: e.showImportDialogFlag,
22419
- "onUpdate:modelValue": t[2] || (t[2] = (b) => e.showImportDialogFlag = b),
22428
+ "onUpdate:modelValue": t[2] || (t[2] = (c) => e.showImportDialogFlag = c),
22420
22429
  draggable: "",
22421
22430
  width: e.popupWidth,
22422
22431
  "show-close": !0,
@@ -22438,7 +22447,7 @@ function Bf(e, t, a, l, o, i) {
22438
22447
  _: 1
22439
22448
  }, 8, ["onClick"]),
22440
22449
  r(m, {
22441
- onClick: t[1] || (t[1] = (b) => e.showImportDialogFlag = !1)
22450
+ onClick: t[1] || (t[1] = (c) => e.showImportDialogFlag = !1)
22442
22451
  }, {
22443
22452
  default: s(() => [...t[7] || (t[7] = [
22444
22453
  S("Cancel", -1)
@@ -22452,7 +22461,7 @@ function Bf(e, t, a, l, o, i) {
22452
22461
  type: "textarea",
22453
22462
  rows: 15,
22454
22463
  modelValue: e.optionLines,
22455
- "onUpdate:modelValue": t[0] || (t[0] = (b) => e.optionLines = b)
22464
+ "onUpdate:modelValue": t[0] || (t[0] = (c) => e.optionLines = c)
22456
22465
  }, null, 8, ["modelValue"])
22457
22466
  ]),
22458
22467
  _: 1
@@ -22460,7 +22469,7 @@ function Bf(e, t, a, l, o, i) {
22460
22469
  ])) : g("", !0)
22461
22470
  ]);
22462
22471
  }
22463
- const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad"]]), jf = L({
22472
+ const Dg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad"]]), jf = L({
22464
22473
  name: "SdReport",
22465
22474
  components: {},
22466
22475
  props: {
@@ -22620,7 +22629,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22620
22629
  async tableContent(e, t, a) {
22621
22630
  let l = 1, o = [], i = [], d = t.pdf_column || [], u = t.pdf_tb_header ? t.pdf_tb_header : [];
22622
22631
  const m = t.pdf_fontsize ? t.pdf_fontsize : 14;
22623
- let h = !0, c = [], _ = {}, C = {}, b = {}, M = {};
22632
+ let h = !0, b = [], _ = {}, C = {}, c = {}, M = {};
22624
22633
  for (const [f, y] of e.entries()) {
22625
22634
  let k = [], A = this.value2Path(y, a);
22626
22635
  for (const q in d)
@@ -22628,16 +22637,16 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22628
22637
  const F = d[q];
22629
22638
  let I = "";
22630
22639
  if (F.col_field && y[F.col_field] !== null && F.col_value === null)
22631
- I = re(`{{${F.col_field}}}`, A);
22640
+ I = se(`{{${F.col_field}}}`, A);
22632
22641
  else {
22633
22642
  if (F.col_expressions)
22634
22643
  try {
22635
- const T = `return ${re(F.col_expressions, A)}`, H = new Function("row", ...De, T);
22644
+ const T = `return ${se(F.col_expressions, A)}`, H = new Function("row", ...De, T);
22636
22645
  A["{{expressions}}"] = H.call(a, y);
22637
22646
  } catch (V) {
22638
22647
  A["{{expressions}}"] = V;
22639
22648
  }
22640
- I = re(F.col_value, A);
22649
+ I = se(F.col_value, A);
22641
22650
  }
22642
22651
  if (!F.col_group)
22643
22652
  if (F.col_sum) {
@@ -22670,7 +22679,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22670
22679
  } catch {
22671
22680
  }
22672
22681
  if (F.col_group)
22673
- C[F.col_field] = I, b[F.col_field] = F.col_fillcolor || "#eee";
22682
+ C[F.col_field] = I, c[F.col_field] = F.col_fillcolor || "#eee";
22674
22683
  else {
22675
22684
  if (h) {
22676
22685
  let V = F.col_width || "*";
@@ -22712,12 +22721,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22712
22721
  for (const I in C)
22713
22722
  if (Object.prototype.hasOwnProperty.call(C, I)) {
22714
22723
  const V = C[I];
22715
- q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), b[I] || (b[I] = "#eee"), _[I] !== V && (_[I] = V, c.push([
22724
+ q[I] || (Object.keys(q).length > 0 ? (q[I] = F + 10, F = q[I]) : q[I] = F), _[I] || (_[I] = ""), c[I] || (c[I] = "#eee"), _[I] !== V && (_[I] = V, b.push([
22716
22725
  {
22717
22726
  text: V,
22718
22727
  marginLeft: q[I],
22719
22728
  bold: !0,
22720
- fillColor: b[I],
22729
+ fillColor: c[I],
22721
22730
  alignment: "left",
22722
22731
  fontSize: m,
22723
22732
  colSpan: o.length
@@ -22725,7 +22734,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22725
22734
  ]));
22726
22735
  }
22727
22736
  }
22728
- c.push(k);
22737
+ b.push(k);
22729
22738
  }
22730
22739
  if (M) {
22731
22740
  let f = [], y = !1;
@@ -22734,12 +22743,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22734
22743
  const A = D(M[k]);
22735
22744
  A !== "" && (y = !0, A.text && !isNaN(Number(A.text)) && (A.format === "num1" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 1, maximumFractionDigits: 1 }) : A.format === "num2" ? A.text = Number(A.text).toLocaleString("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 }) : A.text = Number(A.text).toLocaleString("en-US")), delete A.format), f.push(A);
22736
22745
  }
22737
- y && c.push(f);
22746
+ y && b.push(f);
22738
22747
  }
22739
22748
  return u.length === 0 && (u = [i]), l = u.length, {
22740
22749
  headerRows: l,
22741
22750
  widths: o,
22742
- body: u.concat(c)
22751
+ body: u.concat(b)
22743
22752
  };
22744
22753
  },
22745
22754
  async dataConvert(e, t, a) {
@@ -22748,35 +22757,35 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22748
22757
  let u = {}, m = this.value2Path(d, a);
22749
22758
  for (const h in l)
22750
22759
  if (Object.prototype.hasOwnProperty.call(l, h)) {
22751
- const c = l[h];
22760
+ const b = l[h];
22752
22761
  let _ = "";
22753
- if (c.col_field && d[c.col_field] !== null && c.col_value === null)
22754
- _ = re(`{{${c.col_field}}}`, m);
22762
+ if (b.col_field && d[b.col_field] !== null && b.col_value === null)
22763
+ _ = se(`{{${b.col_field}}}`, m);
22755
22764
  else {
22756
- if (c.col_expressions)
22765
+ if (b.col_expressions)
22757
22766
  try {
22758
- const M = `return ${re(c.col_expressions, m)}`, f = new Function("row", ...De, M);
22767
+ const M = `return ${se(b.col_expressions, m)}`, f = new Function("row", ...De, M);
22759
22768
  m["{{expressions}}"] = f.call(a, d);
22760
- } catch (b) {
22761
- m["{{expressions}}"] = b;
22769
+ } catch (c) {
22770
+ m["{{expressions}}"] = c;
22762
22771
  }
22763
- _ = re(c.col_value, m);
22772
+ _ = se(b.col_value, m);
22764
22773
  }
22765
- if (c.col_format)
22774
+ if (b.col_format)
22766
22775
  try {
22767
- if (c.col_format === "num") {
22768
- const b = Number(_);
22769
- isNaN(b) || (_ = b.toFixed(0), _ = Number(_));
22770
- } else if (c.col_format === "num1") {
22771
- const b = Number(_);
22772
- isNaN(b) || (_ = b.toFixed(1), _ = Number(_));
22773
- } else if (c.col_format === "num2") {
22774
- const b = Number(_);
22775
- isNaN(b) || (_ = b.toFixed(2), _ = Number(_));
22776
- } else c.col_format === "date" ? _ = ve(_).format("DD/MM/YYYY") : c.col_format === "datetime" ? _ = ve(_).format("DD/MM/YYYY HH:mm") : c.col_format === "boolean" && (_ = _ ? "True" : "False");
22776
+ if (b.col_format === "num") {
22777
+ const c = Number(_);
22778
+ isNaN(c) || (_ = c.toFixed(0), _ = Number(_));
22779
+ } else if (b.col_format === "num1") {
22780
+ const c = Number(_);
22781
+ isNaN(c) || (_ = c.toFixed(1), _ = Number(_));
22782
+ } else if (b.col_format === "num2") {
22783
+ const c = Number(_);
22784
+ isNaN(c) || (_ = c.toFixed(2), _ = Number(_));
22785
+ } else b.col_format === "date" ? _ = ve(_).format("DD/MM/YYYY") : b.col_format === "datetime" ? _ = ve(_).format("DD/MM/YYYY HH:mm") : b.col_format === "boolean" && (_ = _ ? "True" : "False");
22777
22786
  } catch {
22778
22787
  }
22779
- let C = c.col_label || c.col_field;
22788
+ let C = b.col_label || b.col_field;
22780
22789
  u[C] = _;
22781
22790
  }
22782
22791
  o.push(u);
@@ -22788,7 +22797,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22788
22797
  if (e.pdf_sql && e.pdf_sql.value) {
22789
22798
  const o = {
22790
22799
  providerId: e.pdf_sql.value,
22791
- providerType: de.SQL,
22800
+ providerType: ue.SQL,
22792
22801
  params: t
22793
22802
  };
22794
22803
  e.pdf_fontsize && e.pdf_fontsize;
@@ -22799,13 +22808,13 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22799
22808
  const m = await at(o, !1, this.useUserState);
22800
22809
  if (m && m.response && m.data && m.data.data) {
22801
22810
  const h = D(m.data.data);
22802
- let c = {};
22803
- if (h && (h[0] && h[0]._id ? c = this.value2Path(h[0], i) : c = this.value2Path(h, i)), e.pdf_content) {
22811
+ let b = {};
22812
+ if (h && (h[0] && h[0]._id ? b = this.value2Path(h[0], i) : b = this.value2Path(h, i)), e.pdf_content) {
22804
22813
  const _ = e.pdf_content;
22805
- for (const [C, b] of _.entries())
22806
- if (b.content_widget) {
22814
+ for (const [C, c] of _.entries())
22815
+ if (c.content_widget) {
22807
22816
  let M = "";
22808
- if (b.content_value && (typeof b.content_value == "object" ? M = b.content_value : M = re(b.content_value, c)), b.content_widget === "table")
22817
+ if (c.content_value && (typeof c.content_value == "object" ? M = c.content_value : M = se(c.content_value, b)), c.content_widget === "table")
22809
22818
  if (Object.keys(e.pdf_column).length > 0) {
22810
22819
  const f = await this.dataConvert(h, e, i);
22811
22820
  l.push({
@@ -22817,7 +22826,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22817
22826
  name: e.pdf_name,
22818
22827
  data: h
22819
22828
  });
22820
- else if (b.content_widget === "subtable") {
22829
+ else if (c.content_widget === "subtable") {
22821
22830
  if (M && M.subTableField) {
22822
22831
  let f = [];
22823
22832
  h[0] && h[0]._id ? f = h[0][M.subTableField] ? h[0][M.subTableField] : [] : f = h[M.subTableField] ? h[M.subTableField] : [];
@@ -22831,7 +22840,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22831
22840
  F[H];
22832
22841
  let Z = !1;
22833
22842
  if (k.length > 0 ? k.includes(H) && (Z = !0) : Z = !0, Z) {
22834
- let x = re(`{{${H}}}`, V);
22843
+ let x = se(`{{${H}}}`, V);
22835
22844
  y.length > 0 && typeof y[0] != "object" && y[T] && (typeof y[T] == "string" ? y[T] : String(y[T])), I[H] = x, T++;
22836
22845
  }
22837
22846
  }
@@ -22842,10 +22851,10 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22842
22851
  data: A
22843
22852
  });
22844
22853
  }
22845
- } else if (b.content_widget === "sub_report" && M !== "") {
22854
+ } else if (c.content_widget === "sub_report" && M !== "") {
22846
22855
  const f = {
22847
22856
  providerId: "getreport-one",
22848
- providerType: de.SYS,
22857
+ providerType: ue.SYS,
22849
22858
  params: { reportId: M }
22850
22859
  }, y = await Ot(f, this.useUserState);
22851
22860
  if (y && y.response && y.data && y.data.data) {
@@ -22880,23 +22889,23 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22880
22889
  if (e.pdf_sql && e.pdf_sql.value) {
22881
22890
  const d = {
22882
22891
  providerId: e.pdf_sql.value,
22883
- providerType: de.SQL,
22892
+ providerType: ue.SQL,
22884
22893
  params: t
22885
22894
  }, u = e.pdf_fontsize ? e.pdf_fontsize : 14;
22886
22895
  let m = {}, h = "";
22887
22896
  e.pdf_form_id && (h = e.pdf_form_id);
22888
- const c = await Ie(h, this.useUserState);
22889
- c && c.data && (m = c.data);
22897
+ const b = await Ie(h, this.useUserState);
22898
+ b && b.data && (m = b.data);
22890
22899
  const _ = await at(d, !1, this.useUserState);
22891
22900
  if (_ && _.response && _.data && _.data.data) {
22892
22901
  const C = D(_.data.data);
22893
- let b = {};
22894
- if (C && (C[0] && C[0]._id ? b = this.value2Path(C[0], m) : b = this.value2Path(C, m)), e.pdf_content) {
22902
+ let c = {};
22903
+ if (C && (C[0] && C[0]._id ? c = this.value2Path(C[0], m) : c = this.value2Path(C, m)), e.pdf_content) {
22895
22904
  const M = e.pdf_content;
22896
22905
  for (const [f, y] of M.entries())
22897
22906
  if (y.content_widget) {
22898
22907
  let k = "";
22899
- if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = re(y.content_value, b)), y.content_widget === "text")
22908
+ if (y.content_value && (typeof y.content_value == "object" ? k = y.content_value : k = se(y.content_value, c)), y.content_widget === "text")
22900
22909
  l.push({
22901
22910
  text: k,
22902
22911
  alignment: y.content_align || "left",
@@ -22985,8 +22994,8 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22985
22994
  Be[v];
22986
22995
  let W = !1;
22987
22996
  if (V.length > 0 ? V.includes(v) && (W = !0) : W = !0, W) {
22988
- let J = re(`{{${v}}}`, Me), ue = I[U] || "left";
22989
- if (ue === "l" || ue === "L" ? ue = "left" : ue === "c" || ue === "C" ? ue = "center" : (ue === "r" || ue === "R") && (ue = "rigth"), Z)
22997
+ let J = se(`{{${v}}}`, Me), pe = I[U] || "left";
22998
+ if (pe === "l" || pe === "L" ? pe = "left" : pe === "c" || pe === "C" ? pe = "center" : (pe === "r" || pe === "R") && (pe = "rigth"), Z)
22990
22999
  if (q[U] || (q[U] = "*"), F.length > 0) {
22991
23000
  if (typeof F[0] != "object")
22992
23001
  if (x = !0, F[U]) {
@@ -22995,7 +23004,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
22995
23004
  text: je,
22996
23005
  bold: !0,
22997
23006
  fillColor: "#ddd",
22998
- alignment: ue,
23007
+ alignment: pe,
22999
23008
  fontSize: u
23000
23009
  });
23001
23010
  } else
@@ -23003,7 +23012,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23003
23012
  text: v,
23004
23013
  bold: !0,
23005
23014
  fillColor: "#ddd",
23006
- alignment: ue,
23015
+ alignment: pe,
23007
23016
  fontSize: u
23008
23017
  });
23009
23018
  } else
@@ -23011,12 +23020,12 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23011
23020
  text: v,
23012
23021
  bold: !0,
23013
23022
  fillColor: "#ddd",
23014
- alignment: ue,
23023
+ alignment: pe,
23015
23024
  fontSize: u
23016
23025
  });
23017
23026
  et.push({
23018
23027
  text: J,
23019
- alignment: ue,
23028
+ alignment: pe,
23020
23029
  fontSize: u
23021
23030
  }), U++;
23022
23031
  }
@@ -23045,7 +23054,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23045
23054
  } else if (y.content_widget === "sub_report" && k !== "") {
23046
23055
  const A = {
23047
23056
  providerId: "getreport-one",
23048
- providerType: de.SYS,
23057
+ providerType: ue.SYS,
23049
23058
  params: { reportId: k }
23050
23059
  }, q = await Ot(A, this.useUserState);
23051
23060
  if (q && q.response && q.data && q.data.data) {
@@ -23081,17 +23090,17 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23081
23090
  }, e.pdf_watermark && (i.watermark = { text: e.pdf_watermark, opacity: 0.1, bold: !0, italics: !1, fontSize: 75, angle: 45 }), e.pdf_orientation && (i.pageOrientation = e.pdf_orientation), e.pdf_page_size && e.pdf_page_size === "custom" && e.pdf_custom_size && e.pdf_custom_size.width && e.pdf_custom_size.height ? i.pageSize = {
23082
23091
  width: e.pdf_custom_size.width,
23083
23092
  height: e.pdf_custom_size.height
23084
- } : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C, b, M) {
23093
+ } : i.pageSize = e.pdf_page_size, e.pdf_ml && e.pdf_mt && e.pdf_mr && e.pdf_mb ? i.pageMargins = [e.pdf_ml, e.pdf_mt, e.pdf_mr, e.pdf_mb] : i.pageMargins = 20, i.header = function(C, c, M) {
23085
23094
  const f = [];
23086
23095
  return e.pdf_page_date && f.push({ text: "Print Date: " + ve().format("DD/MM/YYYY"), alignment: "right", marginRight: e.pdf_mr, marginTop: 5, fontSize: 11 }), e.pdf_title && e.pdf_showheader === "everyPage" && f.push({ text: e.pdf_title, alignment: "center", bold: !0, fontSize: u + 6, marginBottom: 5 }), f;
23087
- }, i.footer = function(C, b) {
23096
+ }, i.footer = function(C, c) {
23088
23097
  const M = [];
23089
23098
  if (e.pdf_page_num) {
23090
- const f = "Page " + C.toString() + " of " + b;
23099
+ const f = "Page " + C.toString() + " of " + c;
23091
23100
  M.push({ text: f, alignment: "right", marginRight: 20, marginTop: 0, marginBottom: 5, fontSize: 11 });
23092
23101
  }
23093
23102
  return M;
23094
- }, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C, b) {
23103
+ }, e.pdf_bg && Array.isArray(e.pdf_bg) && e.pdf_bg.length > 0 && (o.pdf_bg = this.getImage(e.pdf_bg), i.background = function(C, c) {
23095
23104
  return {
23096
23105
  image: "pdf_bg",
23097
23106
  cover: { width: e.pdf_custom_size.width || 200, height: e.pdf_custom_size.height || 200, valign: "center", align: "center" }
@@ -23104,7 +23113,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23104
23113
  this.reportType = t;
23105
23114
  const a = {
23106
23115
  providerId: "getreport-one",
23107
- providerType: de.SYS,
23116
+ providerType: ue.SYS,
23108
23117
  params: { reportId: e }
23109
23118
  };
23110
23119
  let l = !0;
@@ -23130,7 +23139,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23130
23139
  let i = "output";
23131
23140
  t.pdf_name && (i = t.pdf_name), this.createExcel(o, i);
23132
23141
  } else if (e === "word")
23133
- this.popupDownloadName = "Report", t.pdf_name && (t.pdf_name, this.popupDownloadName = "Report " + t.pdf_name), t.pdf_temp && Object.keys(t.pdf_temp).length > 0 ? (t.pdf_temp[0].url ? t.pdf_temp[0].url : "") ? await he.post(
23142
+ this.popupDownloadName = "Report", t.pdf_name && (t.pdf_name, this.popupDownloadName = "Report " + t.pdf_name), t.pdf_temp && Object.keys(t.pdf_temp).length > 0 ? (t.pdf_temp[0].url ? t.pdf_temp[0].url : "") ? await ce.post(
23134
23143
  `${this.userState.host}/v1/files/create-word`,
23135
23144
  { reportId: t._id, params: a },
23136
23145
  {
@@ -23294,7 +23303,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23294
23303
  this.showFile = !1;
23295
23304
  const e = `export/${this.userState.user?.username}`;
23296
23305
  let t = { filePath: this.filePath, fileName: this.fullName, fileType: "docx", fileGroup: e, fileId: "" };
23297
- await he.delete(`${this.userState.host}/v1/files/remove-one`, {
23306
+ await ce.delete(`${this.userState.host}/v1/files/remove-one`, {
23298
23307
  data: t,
23299
23308
  headers: {
23300
23309
  Authorization: `Bearer ${this.userState.user?.token}`
@@ -23311,7 +23320,7 @@ const Cg = /* @__PURE__ */ B(Vf, [["render", Bf], ["__scopeId", "data-v-cc3dcbad
23311
23320
  class: "el-dialog__title"
23312
23321
  }, Hf = ["src"], xf = { key: 4 };
23313
23322
  function Wf(e, t, a, l, o, i) {
23314
- const d = ge, u = Y("arrow-down"), m = Ge, h = oe, c = _t, _ = Ft, C = wt, b = $e, M = Nt, f = kt, y = Bl, k = Rm, A = pt, q = ut, F = Fe, I = Y("Document"), V = ra;
23323
+ const d = ge, u = Y("arrow-down"), m = Ge, h = oe, b = _t, _ = Ft, C = wt, c = $e, M = Nt, f = kt, y = Bl, k = Rm, A = pt, q = ut, F = Fe, I = Y("Document"), V = ra;
23315
23324
  return n(), w(E, null, [
23316
23325
  Object.keys(e.reportList).length > 1 ? (n(), p(C, {
23317
23326
  key: 0,
@@ -23320,7 +23329,7 @@ function Wf(e, t, a, l, o, i) {
23320
23329
  dropdown: s(() => [
23321
23330
  r(_, null, {
23322
23331
  default: s(() => [
23323
- (n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(c, {
23332
+ (n(!0), w(E, null, G(e.reportList, (T, H) => (n(), p(b, {
23324
23333
  key: H,
23325
23334
  onClick: (Z) => e.createReport(T.reportId, T.type)
23326
23335
  }, {
@@ -23437,7 +23446,7 @@ function Wf(e, t, a, l, o, i) {
23437
23446
  required: T.param_required
23438
23447
  }, {
23439
23448
  default: s(() => [
23440
- T.param_type === "text" ? (n(), p(b, {
23449
+ T.param_type === "text" ? (n(), p(c, {
23441
23450
  key: 0,
23442
23451
  modelValue: e.defaultParams[T.param_var],
23443
23452
  "onUpdate:modelValue": (Z) => e.defaultParams[T.param_var] = Z,
@@ -23569,7 +23578,7 @@ function Wf(e, t, a, l, o, i) {
23569
23578
  ])) : g("", !0)
23570
23579
  ], 64);
23571
23580
  }
23572
- const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f"]]), Kf = L({
23581
+ const Ig = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f"]]), Kf = L({
23573
23582
  name: "SdUiCarousel",
23574
23583
  components: {},
23575
23584
  props: {
@@ -23719,7 +23728,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23719
23728
  limit: this.limitRow,
23720
23729
  optionProvider: { limit: this.limitRow, page: 1 },
23721
23730
  useUserState: this.$props.userState,
23722
- dpFormData: { providerId: this.formId, providerType: de.FORM },
23731
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
23723
23732
  wsConn: void 0,
23724
23733
  widgetId: "SdUiCarousel-" + Rt(),
23725
23734
  isFormEnable: this.providerType === "FORM",
@@ -23731,7 +23740,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23731
23740
  return (e, t) => {
23732
23741
  let a = {}, l = this.sdformModel.form_db.schema;
23733
23742
  for (const o in l) {
23734
- let i = ce(t, o);
23743
+ let i = de(t, o);
23735
23744
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
23736
23745
  }
23737
23746
  if (this.customValue) {
@@ -23740,7 +23749,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23740
23749
  let i = this.customValue[o];
23741
23750
  if (i.expressions)
23742
23751
  try {
23743
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
23752
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
23744
23753
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
23745
23754
  } catch (d) {
23746
23755
  a[`{{${i.fieldName}}}`] = d;
@@ -23749,7 +23758,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23749
23758
  a[`{{${i.fieldName}}}`] = "";
23750
23759
  }
23751
23760
  }
23752
- return Tt(re(e, a));
23761
+ return Tt(se(e, a));
23753
23762
  };
23754
23763
  }
23755
23764
  },
@@ -23783,9 +23792,9 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23783
23792
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
23784
23793
  },
23785
23794
  initForm(e) {
23786
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
23795
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
23787
23796
  const t = D(this.dpFormData.params), a = D(this.params);
23788
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
23797
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.getDataList(), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
23789
23798
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId)) {
23790
23799
  let o = -1;
23791
23800
  const i = D(l.data);
@@ -23823,7 +23832,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23823
23832
  this.isInsert = !1, this.selectIndex = t, this.clickEvent && this.clickEvent(e, t);
23824
23833
  },
23825
23834
  getValue(e, t) {
23826
- let a = ce(e, t);
23835
+ let a = de(e, t);
23827
23836
  return a ? Ae(a, t, this.sdformModel) : "";
23828
23837
  },
23829
23838
  getSchema(e) {
@@ -23866,7 +23875,7 @@ const Dg = /* @__PURE__ */ B(jf, [["render", Wf], ["__scopeId", "data-v-1702f01f
23866
23875
  class: "img-content"
23867
23876
  }, eh = ["innerHTML"], th = ["innerHTML"], ah = { class: "text-card" }, lh = { style: { "text-align": "center" } }, oh = ["innerHTML"], ih = ["innerHTML"];
23868
23877
  function nh(e, t, a, l, o, i) {
23869
- const d = Ze, u = ge, m = Y("Loading"), h = Ge, c = Y("Picture"), _ = vt, C = xt, b = ze, M = Ho, f = qo;
23878
+ const d = Ze, u = ge, m = Y("Loading"), h = Ge, b = Y("Picture"), _ = vt, C = xt, c = ze, M = Ho, f = qo;
23870
23879
  return n(), w(E, null, [
23871
23880
  P("div", Gf, [
23872
23881
  e.titleEnable ? (n(), w("span", Yf, [
@@ -23926,7 +23935,7 @@ function nh(e, t, a, l, o, i) {
23926
23935
  P("div", Qf, [
23927
23936
  r(h, { style: { "font-size": "50px" } }, {
23928
23937
  default: s(() => [
23929
- r(c)
23938
+ r(b)
23930
23939
  ]),
23931
23940
  _: 1
23932
23941
  })
@@ -23936,7 +23945,7 @@ function nh(e, t, a, l, o, i) {
23936
23945
  }, 8, ["style", "src"])) : g("", !0),
23937
23946
  e.titleField || e.titleContent || e.detailContent ? (n(), w("div", Zf, [
23938
23947
  P("div", null, [
23939
- r(b, {
23948
+ r(c, {
23940
23949
  class: "body-title",
23941
23950
  truncated: ""
23942
23951
  }, {
@@ -23956,7 +23965,7 @@ function nh(e, t, a, l, o, i) {
23956
23965
  _: 2
23957
23966
  }, 1024)
23958
23967
  ]),
23959
- e.detailContent ? (n(), p(b, {
23968
+ e.detailContent ? (n(), p(c, {
23960
23969
  key: 0,
23961
23970
  "line-clamp": e.detailMaxRow
23962
23971
  }, {
@@ -23981,7 +23990,7 @@ function nh(e, t, a, l, o, i) {
23981
23990
  P("div", ah, [
23982
23991
  P("div", null, [
23983
23992
  P("div", lh, [
23984
- r(b, {
23993
+ r(c, {
23985
23994
  class: "body-title",
23986
23995
  truncated: ""
23987
23996
  }, {
@@ -24001,7 +24010,7 @@ function nh(e, t, a, l, o, i) {
24001
24010
  _: 2
24002
24011
  }, 1024)
24003
24012
  ]),
24004
- e.detailContent ? (n(), p(b, {
24013
+ e.detailContent ? (n(), p(c, {
24005
24014
  key: 0,
24006
24015
  "line-clamp": e.detailMaxRow
24007
24016
  }, {
@@ -24024,7 +24033,7 @@ function nh(e, t, a, l, o, i) {
24024
24033
  }, 8, ["indicator-position", "motionBlur", "interval", "autoplay", "direction", "type", "trigger", "height"])) : g("", !0)
24025
24034
  ], 64);
24026
24035
  }
24027
- const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de"]]), sh = L({
24036
+ const $g = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de"]]), sh = L({
24028
24037
  name: "SdUiMenu",
24029
24038
  components: {},
24030
24039
  props: {
@@ -24190,7 +24199,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24190
24199
  limit: this.limitRow,
24191
24200
  optionProvider: { limit: this.limitRow, page: 1 },
24192
24201
  useUserState: this.$props.userState,
24193
- dpFormData: { providerId: this.formId, providerType: de.FORM },
24202
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
24194
24203
  wsConn: void 0,
24195
24204
  isFormEnable: this.providerType === "FORM",
24196
24205
  scrollerHeight: 0,
@@ -24204,7 +24213,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24204
24213
  return (e, t) => {
24205
24214
  let a = {}, l = this.sdformModel.form_db.schema;
24206
24215
  for (const o in l) {
24207
- let i = ce(t, o);
24216
+ let i = de(t, o);
24208
24217
  a[`{{${o}}}`] = Ae(i, o, this.sdformModel);
24209
24218
  }
24210
24219
  if (this.customValue) {
@@ -24213,7 +24222,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24213
24222
  let i = this.customValue[o];
24214
24223
  if (i.expressions)
24215
24224
  try {
24216
- const u = `return ${re(i.expressions, a)}`, m = new Function("row", ...De, u);
24225
+ const u = `return ${se(i.expressions, a)}`, m = new Function("row", ...De, u);
24217
24226
  a[`{{${i.fieldName}}}`] = m.call(this.sdformModel, t);
24218
24227
  } catch (d) {
24219
24228
  a[`{{${i.fieldName}}}`] = d;
@@ -24222,7 +24231,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24222
24231
  a[`{{${i.fieldName}}}`] = "";
24223
24232
  }
24224
24233
  }
24225
- return Tt(re(e, a));
24234
+ return Tt(se(e, a));
24226
24235
  };
24227
24236
  }
24228
24237
  },
@@ -24273,9 +24282,9 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24273
24282
  this.defaultParams = { ...t, ...e }, this.dpFormData.params = D(this.defaultParams), this.getDataList();
24274
24283
  },
24275
24284
  initForm(e) {
24276
- this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
24285
+ this.searchText = "", this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')");
24277
24286
  const t = D(this.dpFormData.params), a = D(this.params);
24278
- this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }]), this.getDataList();
24287
+ this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), this.dpFormData.options.orderBy || (this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }]), this.getDataList();
24279
24288
  },
24280
24289
  keyIdIndex(e) {
24281
24290
  let t = this.keyId;
@@ -24314,7 +24323,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24314
24323
  window.localStorage.setItem("side_menu_" + this.formId, String(this.isCollapse));
24315
24324
  },
24316
24325
  getValue(e, t) {
24317
- let a = ce(e, t);
24326
+ let a = de(e, t);
24318
24327
  return a ? Ae(a, t, this.sdformModel) : "";
24319
24328
  },
24320
24329
  getSchema(e) {
@@ -24357,7 +24366,7 @@ const Ig = /* @__PURE__ */ B(Kf, [["render", nh], ["__scopeId", "data-v-ea5295de
24357
24366
  class: "menu-label"
24358
24367
  };
24359
24368
  function mh(e, t, a, l, o, i) {
24360
- const d = ge, u = Wo, m = ia, h = Ko, c = xo, _ = Ol, C = zl("can");
24369
+ const d = ge, u = Wo, m = ia, h = Ko, b = xo, _ = Ol, C = zl("can");
24361
24370
  return n(), w(E, null, [
24362
24371
  r(_, {
24363
24372
  class: "menu-wrapper",
@@ -24365,7 +24374,7 @@ function mh(e, t, a, l, o, i) {
24365
24374
  style: te(`position: ${e.fixedEnable ? "fixed" : "inherit"}; ${e.top !== void 0 ? `top: ${e.top}px;` : ""} ${e.left !== void 0 ? `left: ${e.left}px;` : ""}`)
24366
24375
  }, {
24367
24376
  default: s(() => [
24368
- r(c, {
24377
+ r(b, {
24369
24378
  class: "side-menu",
24370
24379
  style: te(`width: ${e.fixedEnable ? `${e.menuWidthOnexpand}px` : ""};
24371
24380
  min-height: ${e.fixedEnable ? `${e.scrollerHeight}px` : ""};
@@ -24403,24 +24412,24 @@ function mh(e, t, a, l, o, i) {
24403
24412
  style: te([{ margin: "0px" }, `${e.borderColor ? `border-color: ${e.borderColor};` : ""}`])
24404
24413
  }, null, 8, ["style"])
24405
24414
  ])) : g("", !0),
24406
- (n(!0), w(E, null, G(e.rawData, (b, M) => (n(), w(E, {
24407
- key: b._id
24415
+ (n(!0), w(E, null, G(e.rawData, (c, M) => (n(), w(E, {
24416
+ key: c._id
24408
24417
  }, [
24409
- e.subMenuField && b[e.subMenuField] ? Ve((n(), p(h, {
24418
+ e.subMenuField && c[e.subMenuField] ? Ve((n(), p(h, {
24410
24419
  key: 0,
24411
- index: e.pathField && b[e.pathField] ? b[e.pathField] : M,
24412
- onClick: (f) => e.pathField && b[e.pathField] ? e.handleClick(b, M) : void 0
24420
+ index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
24421
+ onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
24413
24422
  }, {
24414
24423
  title: s(() => [
24415
24424
  e.iconField ? (n(), p(d, {
24416
24425
  key: 0,
24417
24426
  class: "menu-icon",
24418
- "icon-name": b[e.iconField]
24427
+ "icon-name": c[e.iconField]
24419
24428
  }, null, 8, ["icon-name"])) : g("", !0),
24420
- e.labelField ? (n(), w("span", dh, O(b[e.labelField]), 1)) : g("", !0)
24429
+ e.labelField ? (n(), w("span", dh, O(c[e.labelField]), 1)) : g("", !0)
24421
24430
  ]),
24422
24431
  default: s(() => [
24423
- (n(!0), w(E, null, G(b[e.subMenuField], (f, y) => Ve((n(), p(u, {
24432
+ (n(!0), w(E, null, G(c[e.subMenuField], (f, y) => Ve((n(), p(u, {
24424
24433
  key: f._id,
24425
24434
  class: "sub-menu-item",
24426
24435
  index: e.pathField && e.subMenuPrefix && f[`${e.subMenuPrefix}${e.pathField}`] ? f[`${e.subMenuPrefix}${e.pathField}`] : M,
@@ -24448,29 +24457,29 @@ function mh(e, t, a, l, o, i) {
24448
24457
  }, 1032, ["index", "onClick"])), [
24449
24458
  [
24450
24459
  C,
24451
- e.roleField && b[e.roleField] ? b[e.roleField] : ["user"],
24460
+ e.roleField && c[e.roleField] ? c[e.roleField] : ["user"],
24452
24461
  void 0,
24453
24462
  { any: !0 }
24454
24463
  ]
24455
24464
  ]) : Ve((n(), p(u, {
24456
24465
  key: 1,
24457
24466
  class: "menu-item",
24458
- index: e.pathField && b[e.pathField] ? b[e.pathField] : M,
24459
- onClick: (f) => e.pathField && b[e.pathField] ? e.handleClick(b, M) : void 0
24467
+ index: e.pathField && c[e.pathField] ? c[e.pathField] : M,
24468
+ onClick: (f) => e.pathField && c[e.pathField] ? e.handleClick(c, M) : void 0
24460
24469
  }, {
24461
24470
  default: s(() => [
24462
24471
  e.iconField ? (n(), p(d, {
24463
24472
  key: 0,
24464
24473
  class: "menu-icon",
24465
- "icon-name": b[e.iconField]
24474
+ "icon-name": c[e.iconField]
24466
24475
  }, null, 8, ["icon-name"])) : g("", !0),
24467
- e.labelField ? (n(), w("span", ph, O(b[e.labelField]), 1)) : g("", !0)
24476
+ e.labelField ? (n(), w("span", ph, O(c[e.labelField]), 1)) : g("", !0)
24468
24477
  ]),
24469
24478
  _: 2
24470
24479
  }, 1032, ["index", "onClick"])), [
24471
24480
  [
24472
24481
  C,
24473
- e.roleField && b[e.roleField] ? b[e.roleField] : ["user"],
24482
+ e.roleField && c[e.roleField] ? c[e.roleField] : ["user"],
24474
24483
  void 0,
24475
24484
  { any: !0 }
24476
24485
  ]
@@ -24487,7 +24496,7 @@ function mh(e, t, a, l, o, i) {
24487
24496
  }, null, 4)
24488
24497
  ], 64);
24489
24498
  }
24490
- const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24499
+ const Tg = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24491
24500
  name: "SdUiRecordView",
24492
24501
  components: {
24493
24502
  // SdCrudPopupGrid,
@@ -24635,7 +24644,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24635
24644
  },
24636
24645
  data() {
24637
24646
  return {
24638
- isDark: se(),
24647
+ isDark: re(),
24639
24648
  rawData: null,
24640
24649
  defaultParams: {},
24641
24650
  preLoading: !1,
@@ -24655,7 +24664,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24655
24664
  optionProvider: { limit: 1, page: 1 },
24656
24665
  allowInsert: !1,
24657
24666
  useUserState: this.$props.userState,
24658
- dpFormData: { providerId: this.formId, providerType: de.FORM },
24667
+ dpFormData: { providerId: this.formId, providerType: ue.FORM },
24659
24668
  wsConn: void 0,
24660
24669
  widgetId: "SdUiRecordView-" + Rt(),
24661
24670
  sdFunc: {},
@@ -24668,19 +24677,19 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24668
24677
  return (e, t, a) => {
24669
24678
  let l = {}, o = this.sdformModel.form_db.schema;
24670
24679
  for (const i in o) {
24671
- let d = ce(t, i);
24680
+ let d = de(t, i);
24672
24681
  l[`{{${i}}}`] = Ae(d, i, this.sdformModel);
24673
24682
  }
24674
24683
  if (a.expressions)
24675
24684
  try {
24676
- const d = `return ${re(a.expressions, l)}`, u = new Function("row", ...De, d);
24685
+ const d = `return ${se(a.expressions, l)}`, u = new Function("row", ...De, d);
24677
24686
  l["{{expressions}}"] = u.call(this.sdformModel, t);
24678
24687
  } catch (i) {
24679
24688
  l["{{expressions}}"] = i;
24680
24689
  }
24681
24690
  else
24682
24691
  l["{{expressions}}"] = "";
24683
- return Tt(re(e, l));
24692
+ return Tt(se(e, l));
24684
24693
  };
24685
24694
  }
24686
24695
  },
@@ -24775,7 +24784,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24775
24784
  this.showPopupGridFlag = !1;
24776
24785
  },
24777
24786
  initForm(e) {
24778
- this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = de.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), (!this.lastRecord || this.dataId) && (this.params.xdataidx = this.recordId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND _id = CONVERT(:xdataidx, 'objectId')" : this.dpFormData.options.where = "_id = CONVERT(:xdataidx, 'objectId')"), this.dpFormData.options.orderBy = [{ column: "created_at", sort: me.DESC }];
24787
+ this.sdformModel = e, this.userState.formStore[this.formId] = this.sdformModel, this.fixApiUrl && this.fixApiUrl != "" ? this.apiUrl = this.fixApiUrl : this.sdformModel.form_db.api_url && this.sdformModel.form_db.api_url != "" ? this.apiUrl = this.sdformModel.form_db.api_url : this.apiUrl = window.APP_CONFIG.API_URL, this.userState.user && (this.allowInsert = Oe(this.sdformModel, this.userState.user)), this.sdformModel.form_event.after_delete && this.sdformModel.form_event.enable && (this.afterDeleteForm = new Function("formData", ...De, this.sdformModel.form_event.after_delete)), this.iconName || (this.iconForm = "", this.sdformModel.form_icon ? this.iconForm = this.sdformModel.form_icon : this.iconForm = ""), this.titleName ? this.titleNameForm = this.titleName : this.titleNameForm = this.sdformModel.form_name ? `${this.sdformModel.form_name}` : "", this.dataProvider ? this.dpFormData = D(this.dataProvider) : (this.dpFormData.providerId = this.formId, this.dpFormData.providerType = ue.FORM), this.dpFormData.params || (this.dpFormData.params = {}), this.dpFormData.options ? (this.dpFormData.options.page || (this.dpFormData.options.page = 1), this.dpFormData.options.limit ? this.limit = this.dpFormData.options.limit : this.dpFormData.options.limit = this.limit, this.optionProvider = this.dpFormData.options) : this.dpFormData.options = this.optionProvider, this.parentId != "" && (this.params.xparentx = this.parentId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND xparentx = CONVERT(:xparentx, 'objectId')" : this.dpFormData.options.where = "xparentx = CONVERT(:xparentx, 'objectId')"), (!this.lastRecord || this.dataId) && (this.params.xdataidx = this.recordId, this.dpFormData.options && this.dpFormData.options.where ? this.dpFormData.options.where += " AND _id = CONVERT(:xdataidx, 'objectId')" : this.dpFormData.options.where = "_id = CONVERT(:xdataidx, 'objectId')"), this.dpFormData.options.orderBy = [{ column: "created_at", sort: fe.DESC }];
24779
24788
  const t = D(this.dpFormData.params), a = D(this.params);
24780
24789
  this.defaultParams = { ...a, ...t }, this.dpFormData.params = D(this.defaultParams), (this.lastRecord || this.dataId) && this.getDataOne(this.dpFormData), this.enableWs && this.sdformModel.form_options && this.sdformModel.form_options.enable_websocket && (this.wsConn = this.userState.connectWebSocket("gridform", this.sdformModel.dataid, this.widgetId, (l) => {
24781
24790
  if (l.from != "server" && (l.from != this.userState.user?.username || l.params && l.params.widget && l.params.widget !== this.widgetId) && l.keyid) {
@@ -24792,7 +24801,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24792
24801
  }
24793
24802
  },
24794
24803
  getValue(e, t) {
24795
- let a = ce(e, t);
24804
+ let a = de(e, t);
24796
24805
  return a ? Ae(a, t, this.sdformModel) : "";
24797
24806
  },
24798
24807
  allowView(e, t, a) {
@@ -24821,7 +24830,7 @@ const $g = /* @__PURE__ */ B(sh, [["render", mh]]), fh = L({
24821
24830
  }
24822
24831
  }), hh = { class: "text-6" }, ch = ["innerHTML"];
24823
24832
  function bh(e, t, a, l, o, i) {
24824
- const d = Ze, u = ge, m = oe, h = xt, c = Ll, _ = El, C = Tm;
24833
+ const d = Ze, u = ge, m = oe, h = xt, b = Ll, _ = El, C = Tm;
24825
24834
  return n(), w(E, null, [
24826
24835
  r(_, {
24827
24836
  class: X({ blockUi: e.blockEnable }),
@@ -24831,32 +24840,32 @@ function bh(e, t, a, l, o, i) {
24831
24840
  direction: e.verticalEnable ? "vertical" : "horizontal"
24832
24841
  }, tt({
24833
24842
  default: s(() => [
24834
- e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (b, M) => (n(), p(c, {
24835
- label: b.label,
24836
- align: b.align,
24837
- "label-align": b.labelAlign,
24838
- "min-width": b.minWidth,
24839
- "label-width": b.labelWidth,
24840
- width: b.width,
24841
- span: b.span,
24842
- rowspan: b.rowspan
24843
+ e.rawData ? (n(!0), w(E, { key: 0 }, G(e.blockUiFields, (c, M) => (n(), p(b, {
24844
+ label: c.label,
24845
+ align: c.align,
24846
+ "label-align": c.labelAlign,
24847
+ "min-width": c.minWidth,
24848
+ "label-width": c.labelWidth,
24849
+ width: c.width,
24850
+ span: c.span,
24851
+ rowspan: c.rowspan
24843
24852
  }, {
24844
24853
  default: s(() => [
24845
- b.htmlValue ? (n(), w("span", {
24854
+ c.htmlValue ? (n(), w("span", {
24846
24855
  key: 0,
24847
- innerHTML: e.htmlValue(b.htmlValue, e.rawData, b)
24856
+ innerHTML: e.htmlValue(c.htmlValue, e.rawData, c)
24848
24857
  }, null, 8, ch)) : (n(), p(h, {
24849
24858
  key: 1,
24850
24859
  "sdform-model": e.sdformModel,
24851
- "field-name": b.fieldName,
24852
- "field-setting": e.getSchema(b.fieldName),
24860
+ "field-name": c.fieldName,
24861
+ "field-setting": e.getSchema(c.fieldName),
24853
24862
  "subform-width": e.subformWidth,
24854
24863
  "raw-data": e.rawData,
24855
24864
  "user-state": e.userState
24856
24865
  }, null, 8, ["sdform-model", "field-name", "field-setting", "subform-width", "raw-data", "user-state"]))
24857
24866
  ]),
24858
24867
  _: 2
24859
- }, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(c, {
24868
+ }, 1032, ["label", "align", "label-align", "min-width", "label-width", "width", "span", "rowspan"]))), 256)) : (n(), p(b, {
24860
24869
  key: 1,
24861
24870
  width: "10",
24862
24871
  "min-width": 10
@@ -24891,14 +24900,14 @@ function bh(e, t, a, l, o, i) {
24891
24900
  e.actionEnable ? {
24892
24901
  name: "extra",
24893
24902
  fn: s(() => [
24894
- fe(e.$slots, "actions", { row: e.rawData }, void 0, !0),
24903
+ he(e.$slots, "actions", { row: e.rawData }, void 0, !0),
24895
24904
  !e.dataId && !e.rawData && e.addBtnEnable && e.allowInsert ? (n(), p(m, {
24896
24905
  key: 0,
24897
24906
  plain: "",
24898
24907
  type: "success",
24899
24908
  icon: "Plus",
24900
24909
  title: "Add",
24901
- onClick: t[0] || (t[0] = R((b) => e.handleAdd(), ["prevent"]))
24910
+ onClick: t[0] || (t[0] = R((c) => e.handleAdd(), ["prevent"]))
24902
24911
  })) : g("", !0),
24903
24912
  e.recordId && e.rawData && e.updateBtnEnable && e.allowUpdate(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
24904
24913
  key: 1,
@@ -24906,7 +24915,7 @@ function bh(e, t, a, l, o, i) {
24906
24915
  type: "primary",
24907
24916
  icon: "Edit",
24908
24917
  title: "Edit",
24909
- onClick: t[1] || (t[1] = R((b) => e.handleUpdate(e.recordId), ["prevent"]))
24918
+ onClick: t[1] || (t[1] = R((c) => e.handleUpdate(e.recordId), ["prevent"]))
24910
24919
  })) : g("", !0),
24911
24920
  e.recordId && e.rawData && e.delBtnEnable && e.allowDelete(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
24912
24921
  key: 2,
@@ -24914,7 +24923,7 @@ function bh(e, t, a, l, o, i) {
24914
24923
  type: "danger",
24915
24924
  icon: "Delete",
24916
24925
  title: "Delete",
24917
- onClick: t[2] || (t[2] = R((b) => e.handleDelete(e.recordId), ["prevent"]))
24926
+ onClick: t[2] || (t[2] = R((c) => e.handleDelete(e.recordId), ["prevent"]))
24918
24927
  })) : g("", !0),
24919
24928
  e.recordId && e.rawData && e.viewBtnEnable && e.allowView(e.sdformModel, e.rawData, e.useUserState.user) ? (n(), p(m, {
24920
24929
  key: 3,
@@ -24922,7 +24931,7 @@ function bh(e, t, a, l, o, i) {
24922
24931
  type: "info",
24923
24932
  icon: "View",
24924
24933
  title: "View",
24925
- onClick: t[3] || (t[3] = R((b) => e.handleView(e.recordId), ["prevent"]))
24934
+ onClick: t[3] || (t[3] = R((c) => e.handleView(e.recordId), ["prevent"]))
24926
24935
  })) : g("", !0),
24927
24936
  e.listViewBtnEnable ? (n(), p(m, {
24928
24937
  key: 4,
@@ -24932,7 +24941,7 @@ function bh(e, t, a, l, o, i) {
24932
24941
  type: "info",
24933
24942
  icon: "Grid",
24934
24943
  title: "List View",
24935
- onClick: t[4] || (t[4] = R((b) => e.handleCrudGrid(), ["prevent"]))
24944
+ onClick: t[4] || (t[4] = R((c) => e.handleCrudGrid(), ["prevent"]))
24936
24945
  }, null, 8, ["dark"])) : g("", !0),
24937
24946
  e.reloadBtnEnable && e.recordId ? (n(), p(m, {
24938
24947
  key: 5,
@@ -24940,7 +24949,7 @@ function bh(e, t, a, l, o, i) {
24940
24949
  type: "default",
24941
24950
  icon: "Refresh",
24942
24951
  title: "Reload",
24943
- onClick: t[5] || (t[5] = R((b) => e.handleReload(), ["prevent"]))
24952
+ onClick: t[5] || (t[5] = R((c) => e.handleReload(), ["prevent"]))
24944
24953
  })) : g("", !0)
24945
24954
  ]),
24946
24955
  key: "1"
@@ -24949,7 +24958,7 @@ function bh(e, t, a, l, o, i) {
24949
24958
  e.sdformModel.dataid && e.showPopupGridFlag ? (n(), p(C, {
24950
24959
  key: 0,
24951
24960
  modelValue: e.showPopupGridFlag,
24952
- "onUpdate:modelValue": t[6] || (t[6] = (b) => e.showPopupGridFlag = b),
24961
+ "onUpdate:modelValue": t[6] || (t[6] = (c) => e.showPopupGridFlag = c),
24953
24962
  backdrop: !0,
24954
24963
  "parent-id": e.parentId,
24955
24964
  readonly: e.listViewReadOnly,
@@ -24959,14 +24968,14 @@ function bh(e, t, a, l, o, i) {
24959
24968
  }, null, 8, ["modelValue", "parent-id", "readonly", "form-id", "user-state", "cancel-callback"])) : g("", !0)
24960
24969
  ], 64);
24961
24970
  }
24962
- const Tg = /* @__PURE__ */ B(fh, [["render", bh], ["__scopeId", "data-v-88128e90"]]);
24971
+ const Mg = /* @__PURE__ */ B(fh, [["render", bh], ["__scopeId", "data-v-88128e90"]]);
24963
24972
  export {
24964
24973
  Ua as $,
24965
24974
  vo as A,
24966
- Ig as B,
24975
+ $g as B,
24967
24976
  Mp as C,
24968
- $g as D,
24969
- Tg as E,
24977
+ Tg as D,
24978
+ Mg as E,
24970
24979
  Od as F,
24971
24980
  xt as G,
24972
24981
  af as H,
@@ -24980,7 +24989,7 @@ export {
24980
24989
  ja as P,
24981
24990
  ug as Q,
24982
24991
  Au as R,
24983
- hg as S,
24992
+ cg as S,
24984
24993
  pg as T,
24985
24994
  co as U,
24986
24995
  Pl as V,
@@ -24994,61 +25003,62 @@ export {
24994
25003
  Ou as a1,
24995
25004
  Ae as a2,
24996
25005
  Nu as a3,
24997
- B as a4,
24998
- En as a5,
24999
- Ce as a6,
25000
- D as a7,
25001
- De as a8,
25002
- Rt as a9,
25003
- Jb as aa,
25004
- Yb as ab,
25005
- ce as ac,
25006
- $a as ad,
25007
- ng as ae,
25008
- ig as af,
25009
- Ln as ag,
25010
- sg as ah,
25011
- og as ai,
25012
- lg as aj,
25013
- Ba as ak,
25014
- Xb as al,
25015
- La as am,
25016
- Gb as an,
25017
- ga as ao,
25018
- eg as ap,
25019
- ee as aq,
25020
- Kb as ar,
25021
- ag as as,
25022
- tg as at,
25023
- bt as au,
25024
- Zb as av,
25025
- Qb as aw,
25026
- de as ax,
25027
- xm as ay,
25028
- Ra as az,
25006
+ fg as a4,
25007
+ B as a5,
25008
+ En as a6,
25009
+ Ce as a7,
25010
+ D as a8,
25011
+ De as a9,
25012
+ Ra as aA,
25013
+ Rt as aa,
25014
+ Jb as ab,
25015
+ Yb as ac,
25016
+ de as ad,
25017
+ $a as ae,
25018
+ ng as af,
25019
+ ig as ag,
25020
+ Ln as ah,
25021
+ sg as ai,
25022
+ og as aj,
25023
+ lg as ak,
25024
+ Ba as al,
25025
+ Xb as am,
25026
+ La as an,
25027
+ Gb as ao,
25028
+ ga as ap,
25029
+ eg as aq,
25030
+ ee as ar,
25031
+ Kb as as,
25032
+ ag as at,
25033
+ tg as au,
25034
+ bt as av,
25035
+ Zb as aw,
25036
+ Qb as ax,
25037
+ ue as ay,
25038
+ xm as az,
25029
25039
  Nn as b,
25030
25040
  rg as c,
25031
25041
  va as d,
25032
25042
  dg as e,
25033
- fg as f,
25034
- cg as g,
25035
- bg as h,
25043
+ hg as f,
25044
+ bg as g,
25045
+ gg as h,
25036
25046
  bo as i,
25037
25047
  Fm as j,
25038
25048
  Cm as k,
25039
25049
  Tm as l,
25040
- gg as m,
25050
+ yg as m,
25041
25051
  Rm as n,
25042
- yg as o,
25043
- vg as p,
25044
- wg as q,
25045
- Fg as r,
25052
+ vg as o,
25053
+ wg as p,
25054
+ Fg as q,
25055
+ _g as r,
25046
25056
  go as s,
25047
25057
  yo as t,
25048
25058
  pm as u,
25049
- _g as v,
25050
- Sg as w,
25051
- kg as x,
25052
- Cg as y,
25053
- Dg as z
25059
+ Sg as v,
25060
+ kg as w,
25061
+ Cg as x,
25062
+ Dg as y,
25063
+ Ig as z
25054
25064
  };