@bagelink/vue 0.0.198 → 0.0.204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/components/Btn.vue.d.ts.map +1 -1
  2. package/dist/components/form/BglField.vue.d.ts +23 -0
  3. package/dist/components/form/BglField.vue.d.ts.map +1 -0
  4. package/dist/components/form/BglForm.vue.d.ts +36 -0
  5. package/dist/components/form/BglForm.vue.d.ts.map +1 -0
  6. package/dist/components/form/ItemRef.vue.d.ts +0 -1
  7. package/dist/components/form/ItemRef.vue.d.ts.map +1 -1
  8. package/dist/components/form/index.d.ts +2 -0
  9. package/dist/components/form/index.d.ts.map +1 -1
  10. package/dist/components/form/inputs/CheckInput.vue.d.ts +0 -1
  11. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  12. package/dist/components/form/inputs/ColorPicker.vue.d.ts +0 -1
  13. package/dist/components/form/inputs/ColorPicker.vue.d.ts.map +1 -1
  14. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +0 -1
  15. package/dist/components/form/inputs/CurrencyInput.vue.d.ts.map +1 -1
  16. package/dist/components/form/inputs/DateInput.vue.d.ts +0 -1
  17. package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/FileUpload.vue.d.ts +18 -0
  19. package/dist/components/form/inputs/FileUpload.vue.d.ts.map +1 -0
  20. package/dist/components/form/inputs/Password.vue.d.ts +0 -1
  21. package/dist/components/form/inputs/Password.vue.d.ts.map +1 -1
  22. package/dist/components/form/inputs/PlainText.vue.d.ts +0 -1
  23. package/dist/components/form/inputs/PlainText.vue.d.ts.map +1 -1
  24. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +0 -1
  25. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts.map +1 -1
  26. package/dist/components/form/inputs/SelectField.vue.d.ts +4 -1
  27. package/dist/components/form/inputs/SelectField.vue.d.ts.map +1 -1
  28. package/dist/components/form/inputs/TextInput.vue.d.ts +13 -0
  29. package/dist/components/form/inputs/TextInput.vue.d.ts.map +1 -1
  30. package/dist/components/form/inputs/index.d.ts +1 -0
  31. package/dist/components/form/inputs/index.d.ts.map +1 -1
  32. package/dist/index.cjs +822 -583
  33. package/dist/index.mjs +822 -583
  34. package/dist/style.css +127 -67
  35. package/dist/types/BagelField.d.ts +1 -8
  36. package/dist/types/BagelField.d.ts.map +1 -1
  37. package/dist/types/BagelForm.d.ts +23 -0
  38. package/dist/types/BagelForm.d.ts.map +1 -0
  39. package/dist/types/index.d.ts +2 -2
  40. package/dist/types/index.d.ts.map +1 -1
  41. package/dist/utils/index.d.ts +2 -2
  42. package/dist/utils/index.d.ts.map +1 -1
  43. package/package.json +1 -1
  44. package/src/components/Btn.vue +22 -11
  45. package/src/components/form/BglField.vue +29 -0
  46. package/src/components/form/BglForm.vue +75 -0
  47. package/src/components/form/index.ts +2 -0
  48. package/src/components/form/inputs/FileUpload.vue +130 -0
  49. package/src/components/form/inputs/SelectField.vue +2 -0
  50. package/src/components/form/inputs/TextInput.vue +44 -8
  51. package/src/components/form/inputs/index.ts +1 -0
  52. package/src/types/BagelField.ts +1 -6
  53. package/src/types/BagelForm.ts +24 -0
  54. package/src/types/index.ts +11 -2
  55. package/src/utils/index.ts +10 -23
  56. package/dist/components/FileUploader.vue.d.ts +0 -60
  57. package/dist/components/FileUploader.vue.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -2300,7 +2300,7 @@ const ModalPlugin = {
2300
2300
  },
2301
2301
  render() {
2302
2302
  return modalStack.value.map((modal, index2) => {
2303
- const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$Q;
2303
+ const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$T;
2304
2304
  return vue.h(
2305
2305
  renderComponent,
2306
2306
  {
@@ -2341,26 +2341,6 @@ const debounce = (fn2, delay = 500) => {
2341
2341
  timeout = setTimeout(fn2, delay);
2342
2342
  };
2343
2343
  const keyToLabel = (key) => key.split("_").map((k2) => k2.charAt(0).toUpperCase() + k2.slice(1)).join(" ");
2344
- function computeFields(modelValue) {
2345
- const fields = [];
2346
- for (const key of Object.keys(modelValue)) {
2347
- const field = {
2348
- label: keyToLabel(key),
2349
- id: key,
2350
- inputType: "PlainText"
2351
- };
2352
- if (typeof modelValue[key] === "string")
2353
- field.inputType = "PlainText";
2354
- if (typeof modelValue[key] === "number")
2355
- field.inputType = "NumberInput";
2356
- if (modelValue[key] === true || modelValue[key] === false)
2357
- field.inputType = "CheckInput";
2358
- if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
2359
- field.inputType = "DateInput";
2360
- fields.push(field);
2361
- }
2362
- return fields;
2363
- }
2364
2344
  const copyText = async (text2, cb) => {
2365
2345
  await navigator.clipboard.writeText(text2);
2366
2346
  if (cb)
@@ -2376,8 +2356,16 @@ function useEscape(event, closeModel) {
2376
2356
  closeModel();
2377
2357
  }
2378
2358
  }
2379
- const _hoisted_1$$ = { ref: "el" };
2380
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
2359
+ function bindAttrs(attrs, fieldVal, row) {
2360
+ const arr = Object.entries(attrs).map(([key, value]) => [
2361
+ key,
2362
+ typeof value === "function" ? value(fieldVal, row) : value
2363
+ ]);
2364
+ const resolvedAttrs = Object.fromEntries(arr);
2365
+ return resolvedAttrs;
2366
+ }
2367
+ const _hoisted_1$11 = { ref: "el" };
2368
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
2381
2369
  __name: "LangText",
2382
2370
  props: {
2383
2371
  input: {}
@@ -2385,7 +2373,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
2385
2373
  setup(__props) {
2386
2374
  return (_ctx, _cache) => {
2387
2375
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2388
- vue.createElementVNode("span", _hoisted_1$$, null, 512),
2376
+ vue.createElementVNode("span", _hoisted_1$11, null, 512),
2389
2377
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.input), 1)
2390
2378
  ], 64);
2391
2379
  };
@@ -14498,8 +14486,8 @@ const marks = {
14498
14486
  }
14499
14487
  };
14500
14488
  const schema = new Schema({ nodes, marks });
14501
- const _hoisted_1$_ = ["id"];
14502
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14489
+ const _hoisted_1$10 = ["id"];
14490
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
14503
14491
  __name: "RTXEditor",
14504
14492
  props: {
14505
14493
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -14576,11 +14564,11 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14576
14564
  onClick: focusEditor,
14577
14565
  id: `canvas-${_ctx.elementId}`,
14578
14566
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
14579
- }, null, 40, _hoisted_1$_);
14567
+ }, null, 40, _hoisted_1$10);
14580
14568
  };
14581
14569
  }
14582
14570
  });
14583
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14571
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
14584
14572
  __name: "MaterialIcon",
14585
14573
  props: {
14586
14574
  icon: {},
@@ -14595,17 +14583,17 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14595
14583
  };
14596
14584
  }
14597
14585
  });
14598
- const _hoisted_1$Z = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14599
- const _hoisted_2$R = [
14600
- _hoisted_1$Z
14586
+ const _hoisted_1$$ = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14587
+ const _hoisted_2$S = [
14588
+ _hoisted_1$$
14601
14589
  ];
14602
- const _hoisted_3$J = { class: "full-nav" };
14603
- const _hoisted_4$r = { class: "nav-scroll" };
14604
- const _hoisted_5$m = { class: "nav-links-wrapper" };
14605
- const _hoisted_6$h = { class: "icon-font" };
14590
+ const _hoisted_3$K = { class: "full-nav" };
14591
+ const _hoisted_4$t = { class: "nav-scroll" };
14592
+ const _hoisted_5$n = { class: "nav-links-wrapper" };
14593
+ const _hoisted_6$i = { class: "icon-font" };
14606
14594
  const _hoisted_7$d = { class: "tooltip" };
14607
14595
  const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
14608
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14596
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14609
14597
  __name: "NavBar",
14610
14598
  props: {
14611
14599
  links: {},
@@ -14629,10 +14617,10 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14629
14617
  role: "button",
14630
14618
  "aria-label": "Toggle Navigation",
14631
14619
  tabindex: "0"
14632
- }, _hoisted_2$R, 32),
14633
- vue.createElementVNode("div", _hoisted_3$J, [
14634
- vue.createElementVNode("div", _hoisted_4$r, [
14635
- vue.createElementVNode("div", _hoisted_5$m, [
14620
+ }, _hoisted_2$S, 32),
14621
+ vue.createElementVNode("div", _hoisted_3$K, [
14622
+ vue.createElementVNode("div", _hoisted_4$t, [
14623
+ vue.createElementVNode("div", _hoisted_5$n, [
14636
14624
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = _ctx.links) == null ? void 0 : _a2.call(_ctx), (link) => {
14637
14625
  return vue.openBlock(), vue.createBlock(_component_RouterLink, {
14638
14626
  class: "nav-button",
@@ -14640,7 +14628,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14640
14628
  key: link.label
14641
14629
  }, {
14642
14630
  default: vue.withCtx(() => [
14643
- vue.createElementVNode("div", _hoisted_6$h, vue.toDisplayString(link.materialIcon), 1),
14631
+ vue.createElementVNode("div", _hoisted_6$i, vue.toDisplayString(link.materialIcon), 1),
14644
14632
  vue.createElementVNode("div", _hoisted_7$d, vue.toDisplayString(link.localized ? link.localized : link.label), 1)
14645
14633
  ]),
14646
14634
  _: 2
@@ -14656,15 +14644,15 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14656
14644
  };
14657
14645
  }
14658
14646
  });
14659
- const _hoisted_1$Y = {
14647
+ const _hoisted_1$_ = {
14660
14648
  key: 0,
14661
14649
  class: "loading"
14662
14650
  };
14663
- const _hoisted_2$Q = {
14651
+ const _hoisted_2$R = {
14664
14652
  key: 1,
14665
14653
  class: "btn-flex"
14666
14654
  };
14667
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14655
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14668
14656
  __name: "Btn",
14669
14657
  props: {
14670
14658
  disabled: { type: Boolean, default: false },
@@ -14685,8 +14673,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14685
14673
  },
14686
14674
  setup(__props) {
14687
14675
  vue.useCssVars((_ctx) => ({
14688
- "720e4596": computedBackgroundColor.value,
14689
- "31e8e060": cumputedTextColor.value
14676
+ "0bd3bef7": computedBackgroundColor.value,
14677
+ "1b1b6b12": cumputedTextColor.value
14690
14678
  }));
14691
14679
  const slots = vue.useSlots();
14692
14680
  const props2 = __props;
@@ -14699,13 +14687,22 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14699
14687
  color: props2.flat ? "var(--bgl-black)" : "var(--bgl-white)"
14700
14688
  })
14701
14689
  );
14690
+ function getThemeColors(theme) {
14691
+ return {
14692
+ ...computedDefaultColors.value,
14693
+ ...theme,
14694
+ color: props2.flat ? theme.backgroundColor : theme.color
14695
+ };
14696
+ }
14702
14697
  const themes = {
14703
- red: { ...computedDefaultColors.value, backgroundColor: "var(--bgl-red)" },
14704
- black: { ...computedDefaultColors.value, backgroundColor: "var(--bgl-black)" },
14705
- green: { ...computedDefaultColors.value, backgroundColor: "var(--bgl-green)", color: "var(--bgl-white)" },
14706
- gray: { ...computedDefaultColors.value, backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-black)" },
14707
- light: { ...computedDefaultColors.value, backgroundColor: "var(--bgl-primary-light)", color: "var(--bgl-primary)" },
14708
- "gray-light": { ...computedDefaultColors.value, backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" }
14698
+ red: getThemeColors({ backgroundColor: "var(--bgl-red)" }),
14699
+ black: getThemeColors({ backgroundColor: "var(--bgl-black)" }),
14700
+ green: getThemeColors({ backgroundColor: "var(--bgl-green)", color: "var(--bgl-white)" }),
14701
+ primary: getThemeColors({ backgroundColor: "var(--bgl-primary)", color: "var(--bgl-white)" }),
14702
+ gray: getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-black)" }),
14703
+ light: getThemeColors({ backgroundColor: "var(--bgl-primary-light)", color: "var(--bgl-primary)" }),
14704
+ "gray-light": getThemeColors({ backgroundColor: "var(--bgl-gray-light)", color: "var(--bgl-gray)" }),
14705
+ blue: getThemeColors({})
14709
14706
  };
14710
14707
  const cumputedTextColor = vue.computed(
14711
14708
  () => {
@@ -14735,8 +14732,8 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14735
14732
  })
14736
14733
  }, {
14737
14734
  default: vue.withCtx(() => [
14738
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Y)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$Q, [
14739
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
14735
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$_)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$R, [
14736
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
14740
14737
  key: 0,
14741
14738
  icon: _ctx.icon
14742
14739
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -14744,7 +14741,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14744
14741
  !vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
14745
14742
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
14746
14743
  ], 64)) : vue.createCommentVNode("", true),
14747
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
14744
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
14748
14745
  key: 2,
14749
14746
  icon: props2["icon.end"]
14750
14747
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
@@ -14762,11 +14759,11 @@ const _export_sfc = (sfc, props2) => {
14762
14759
  }
14763
14760
  return target;
14764
14761
  };
14765
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-19291b41"]]);
14766
- const _hoisted_1$X = { class: "tool-bar" };
14767
- const _hoisted_2$P = { class: "modal-title" };
14768
- const _hoisted_3$I = { class: "modal-footer mt-3" };
14769
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14762
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-845b751e"]]);
14763
+ const _hoisted_1$Z = { class: "tool-bar" };
14764
+ const _hoisted_2$Q = { class: "modal-title" };
14765
+ const _hoisted_3$J = { class: "modal-footer mt-3" };
14766
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14770
14767
  __name: "Modal",
14771
14768
  props: {
14772
14769
  side: { type: Boolean },
@@ -14812,7 +14809,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14812
14809
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
14813
14810
  }, ["stop"]))
14814
14811
  }, [
14815
- vue.createElementVNode("header", _hoisted_1$X, [
14812
+ vue.createElementVNode("header", _hoisted_1$Z, [
14816
14813
  vue.renderSlot(_ctx.$slots, "toolbar"),
14817
14814
  vue.createVNode(vue.unref(Btn), {
14818
14815
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -14820,10 +14817,10 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14820
14817
  icon: "close",
14821
14818
  onClick: closeModal
14822
14819
  }, null, 8, ["style"]),
14823
- vue.createElementVNode("h3", _hoisted_2$P, vue.toDisplayString(_ctx.title), 1)
14820
+ vue.createElementVNode("h3", _hoisted_2$Q, vue.toDisplayString(_ctx.title), 1)
14824
14821
  ]),
14825
14822
  vue.renderSlot(_ctx.$slots, "default"),
14826
- vue.createElementVNode("footer", _hoisted_3$I, [
14823
+ vue.createElementVNode("footer", _hoisted_3$J, [
14827
14824
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i3) => {
14828
14825
  return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
14829
14826
  key: i3,
@@ -14838,10 +14835,10 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14838
14835
  };
14839
14836
  }
14840
14837
  });
14841
- const _hoisted_1$W = { class: "dropdown-title" };
14842
- const _hoisted_2$O = { class: "dropdown-body" };
14843
- const _hoisted_3$H = ["onClick"];
14844
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14838
+ const _hoisted_1$Y = { class: "dropdown-title" };
14839
+ const _hoisted_2$P = { class: "dropdown-body" };
14840
+ const _hoisted_3$I = ["onClick"];
14841
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14845
14842
  __name: "DropDown",
14846
14843
  props: {
14847
14844
  modelValue: String,
@@ -14867,31 +14864,31 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14867
14864
  class: vue.normalizeClass(["dropdown", { opendrop: vue.unref(isOpen) }]),
14868
14865
  onClick: toggleDropdown
14869
14866
  }, [
14870
- vue.createElementVNode("div", _hoisted_1$W, [
14867
+ vue.createElementVNode("div", _hoisted_1$Y, [
14871
14868
  vue.createTextVNode(vue.toDisplayString(vue.unref(selectedOption) || __props.placeholder) + " ", 1),
14872
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "keyboard_arrow_down" })
14869
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "keyboard_arrow_down" })
14873
14870
  ]),
14874
- vue.createElementVNode("div", _hoisted_2$O, [
14871
+ vue.createElementVNode("div", _hoisted_2$P, [
14875
14872
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option2, index2) => {
14876
14873
  return vue.openBlock(), vue.createElementBlock("p", {
14877
14874
  key: index2,
14878
14875
  onClick: vue.withModifiers(($event) => selectOption(option2, index2), ["stop"])
14879
- }, vue.toDisplayString(option2), 9, _hoisted_3$H);
14876
+ }, vue.toDisplayString(option2), 9, _hoisted_3$I);
14880
14877
  }), 128))
14881
14878
  ])
14882
14879
  ], 2);
14883
14880
  };
14884
14881
  }
14885
14882
  });
14886
- const _hoisted_1$V = { class: "card list-view grid thin" };
14887
- const _hoisted_2$N = { class: "list-header flex gap-3 align-items-top" };
14888
- const _hoisted_3$G = {
14883
+ const _hoisted_1$X = { class: "card list-view grid thin" };
14884
+ const _hoisted_2$O = { class: "list-header flex gap-3 align-items-top" };
14885
+ const _hoisted_3$H = {
14889
14886
  key: 0,
14890
14887
  class: "bagel-input search-wrap"
14891
14888
  };
14892
- const _hoisted_4$q = ["placeholder"];
14893
- const _hoisted_5$l = { class: "list-content grid auto-flow-rows align-items-start" };
14894
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14889
+ const _hoisted_4$s = ["placeholder"];
14890
+ const _hoisted_5$m = { class: "list-content grid auto-flow-rows align-items-start" };
14891
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14895
14892
  __name: "ListView",
14896
14893
  props: {
14897
14894
  enableAdd: { type: Boolean },
@@ -14907,17 +14904,17 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14907
14904
  debounce(() => emit2("debounce", searchTerm.value));
14908
14905
  };
14909
14906
  return (_ctx, _cache) => {
14910
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
14911
- vue.createElementVNode("div", _hoisted_2$N, [
14912
- _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$G, [
14907
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X, [
14908
+ vue.createElementVNode("div", _hoisted_2$O, [
14909
+ _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$H, [
14913
14910
  vue.withDirectives(vue.createElementVNode("input", {
14914
14911
  placeholder: _ctx.searchPlaceholder,
14915
14912
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
14916
14913
  onInput: _cache[1] || (_cache[1] = ($event) => search())
14917
- }, null, 40, _hoisted_4$q), [
14914
+ }, null, 40, _hoisted_4$s), [
14918
14915
  [vue.vModelText, searchTerm.value]
14919
14916
  ]),
14920
- vue.createVNode(vue.unref(_sfc_main$T), {
14917
+ vue.createVNode(vue.unref(_sfc_main$W), {
14921
14918
  class: "txtgray",
14922
14919
  icon: "search"
14923
14920
  })
@@ -14928,16 +14925,16 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14928
14925
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
14929
14926
  })) : vue.createCommentVNode("", true)
14930
14927
  ]),
14931
- vue.createElementVNode("div", _hoisted_5$l, [
14928
+ vue.createElementVNode("div", _hoisted_5$m, [
14932
14929
  vue.renderSlot(_ctx.$slots, "default")
14933
14930
  ])
14934
14931
  ]);
14935
14932
  };
14936
14933
  }
14937
14934
  });
14938
- const _hoisted_1$U = { class: "txt16 no-margin" };
14939
- const _hoisted_2$M = { class: "txt14 no-margin txtgray" };
14940
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14935
+ const _hoisted_1$W = { class: "txt16 no-margin" };
14936
+ const _hoisted_2$N = { class: "txt14 no-margin txtgray" };
14937
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14941
14938
  __name: "ListItem",
14942
14939
  props: {
14943
14940
  to: {}
@@ -14949,10 +14946,10 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14949
14946
  class: "list-item ellipsis"
14950
14947
  }, {
14951
14948
  default: vue.withCtx(() => [
14952
- vue.createElementVNode("p", _hoisted_1$U, [
14949
+ vue.createElementVNode("p", _hoisted_1$W, [
14953
14950
  vue.renderSlot(_ctx.$slots, "default")
14954
14951
  ]),
14955
- vue.createElementVNode("p", _hoisted_2$M, [
14952
+ vue.createElementVNode("p", _hoisted_2$N, [
14956
14953
  vue.renderSlot(_ctx.$slots, "subtitle")
14957
14954
  ])
14958
14955
  ]),
@@ -14961,11 +14958,11 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14961
14958
  };
14962
14959
  }
14963
14960
  });
14964
- const _hoisted_1$T = { class: "h-100 grid list-view gap-3" };
14965
- const _hoisted_2$L = { class: "card tabs-top" };
14966
- const _hoisted_3$F = { class: "tabs grid auto-flow-columns fit-content" };
14967
- const _hoisted_4$p = ["onClick"];
14968
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14961
+ const _hoisted_1$V = { class: "h-100 grid list-view gap-3" };
14962
+ const _hoisted_2$M = { class: "card tabs-top" };
14963
+ const _hoisted_3$G = { class: "tabs grid auto-flow-columns fit-content" };
14964
+ const _hoisted_4$r = ["onClick"];
14965
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14969
14966
  __name: "TabbedLayout",
14970
14967
  props: {
14971
14968
  title: {},
@@ -14993,10 +14990,10 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14993
14990
  activeTab.value = firstTab;
14994
14991
  });
14995
14992
  return (_ctx, _cache) => {
14996
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
14997
- vue.createElementVNode("div", _hoisted_2$L, [
14993
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$V, [
14994
+ vue.createElementVNode("div", _hoisted_2$M, [
14998
14995
  vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
14999
- vue.createElementVNode("div", _hoisted_3$F, [
14996
+ vue.createElementVNode("div", _hoisted_3$G, [
15000
14997
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
15001
14998
  return vue.openBlock(), vue.createElementBlock("div", {
15002
14999
  class: vue.normalizeClass([{
@@ -15004,7 +15001,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
15004
15001
  }, "tab"]),
15005
15002
  key: tab,
15006
15003
  onClick: ($event) => changeTab(tab)
15007
- }, vue.toDisplayString(tab), 11, _hoisted_4$p);
15004
+ }, vue.toDisplayString(tab), 11, _hoisted_4$r);
15008
15005
  }), 128))
15009
15006
  ])
15010
15007
  ]),
@@ -15020,16 +15017,16 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
15020
15017
  };
15021
15018
  }
15022
15019
  });
15023
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-3941cced"]]);
15024
- const _hoisted_1$S = { class: "comments-wrap" };
15025
- const _hoisted_2$K = { class: "comment-list" };
15026
- const _hoisted_3$E = { class: "comment-top" };
15027
- const _hoisted_4$o = { class: "comment-owner" };
15028
- const _hoisted_5$k = { class: "comment-time" };
15029
- const _hoisted_6$g = { class: "comment-actions" };
15020
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-3941cced"]]);
15021
+ const _hoisted_1$U = { class: "comments-wrap" };
15022
+ const _hoisted_2$L = { class: "comment-list" };
15023
+ const _hoisted_3$F = { class: "comment-top" };
15024
+ const _hoisted_4$q = { class: "comment-owner" };
15025
+ const _hoisted_5$l = { class: "comment-time" };
15026
+ const _hoisted_6$h = { class: "comment-actions" };
15030
15027
  const _hoisted_7$c = ["innerHTML"];
15031
15028
  const _hoisted_8$6 = { class: "new-comment" };
15032
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15029
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15033
15030
  __name: "Comments",
15034
15031
  props: {
15035
15032
  ref_table: {},
@@ -15072,8 +15069,8 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15072
15069
  void fetchData();
15073
15070
  };
15074
15071
  return (_ctx, _cache) => {
15075
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
15076
- vue.createElementVNode("div", _hoisted_2$K, [
15072
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
15073
+ vue.createElementVNode("div", _hoisted_2$L, [
15077
15074
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(comments), (comment) => {
15078
15075
  var _a2, _b, _c;
15079
15076
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -15083,23 +15080,23 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15083
15080
  }, "comment"]),
15084
15081
  key: comment.id
15085
15082
  }, [
15086
- vue.createElementVNode("div", _hoisted_3$E, [
15087
- vue.createElementVNode("div", _hoisted_4$o, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15088
- vue.createElementVNode("div", _hoisted_5$k, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15089
- vue.createElementVNode("div", _hoisted_6$g, [
15090
- vue.createVNode(vue.unref(_sfc_main$T), {
15083
+ vue.createElementVNode("div", _hoisted_3$F, [
15084
+ vue.createElementVNode("div", _hoisted_4$q, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15085
+ vue.createElementVNode("div", _hoisted_5$l, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15086
+ vue.createElementVNode("div", _hoisted_6$h, [
15087
+ vue.createVNode(vue.unref(_sfc_main$W), {
15091
15088
  size: 1,
15092
15089
  class: "edit",
15093
15090
  icon: "edit",
15094
15091
  onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
15095
15092
  }, null, 8, ["onClick"]),
15096
- vue.createVNode(vue.unref(_sfc_main$T), {
15093
+ vue.createVNode(vue.unref(_sfc_main$W), {
15097
15094
  size: 1.2,
15098
15095
  class: "delete",
15099
15096
  icon: "delete",
15100
15097
  onClick: ($event) => deleteComment(comment.id)
15101
15098
  }, null, 8, ["onClick"]),
15102
- vue.createVNode(vue.unref(_sfc_main$T), {
15099
+ vue.createVNode(vue.unref(_sfc_main$W), {
15103
15100
  size: 1.2,
15104
15101
  class: "save",
15105
15102
  icon: "save",
@@ -15107,7 +15104,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15107
15104
  })
15108
15105
  ])
15109
15106
  ]),
15110
- vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$U), {
15107
+ vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
15111
15108
  key: 0,
15112
15109
  modelValue: vue.unref(editComment).body_html,
15113
15110
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
@@ -15121,7 +15118,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15121
15118
  }), 128))
15122
15119
  ]),
15123
15120
  vue.createElementVNode("div", _hoisted_8$6, [
15124
- vue.createVNode(vue.unref(_sfc_main$U), {
15121
+ vue.createVNode(vue.unref(_sfc_main$X), {
15125
15122
  class: "comment-input",
15126
15123
  modelValue: vue.unref(bodyHtml),
15127
15124
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -15141,10 +15138,10 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15141
15138
  };
15142
15139
  }
15143
15140
  });
15144
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-2eead7c8"]]);
15145
- const _hoisted_1$R = { class: "page-top" };
15146
- const _hoisted_2$J = { class: "top-title" };
15147
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15141
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-2eead7c8"]]);
15142
+ const _hoisted_1$T = { class: "page-top" };
15143
+ const _hoisted_2$K = { class: "top-title" };
15144
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
15148
15145
  __name: "PageTitle",
15149
15146
  props: {
15150
15147
  value: {
@@ -15154,8 +15151,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15154
15151
  },
15155
15152
  setup(__props) {
15156
15153
  return (_ctx, _cache) => {
15157
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
15158
- vue.createElementVNode("h1", _hoisted_2$J, [
15154
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
15155
+ vue.createElementVNode("h1", _hoisted_2$K, [
15159
15156
  vue.renderSlot(_ctx.$slots, "default"),
15160
15157
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
15161
15158
  ])
@@ -15163,9 +15160,9 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15163
15160
  };
15164
15161
  }
15165
15162
  });
15166
- const _hoisted_1$Q = { class: "tool-bar" };
15167
- const _hoisted_2$I = { class: "modal-title" };
15168
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15163
+ const _hoisted_1$S = { class: "tool-bar" };
15164
+ const _hoisted_2$J = { class: "modal-title" };
15165
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
15169
15166
  __name: "ModalForm",
15170
15167
  props: {
15171
15168
  side: { type: Boolean },
@@ -15238,7 +15235,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15238
15235
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
15239
15236
  }, ["stop"]))
15240
15237
  }, [
15241
- vue.createElementVNode("header", _hoisted_1$Q, [
15238
+ vue.createElementVNode("header", _hoisted_1$S, [
15242
15239
  vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
15243
15240
  vue.createVNode(vue.unref(Btn), {
15244
15241
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -15246,9 +15243,9 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15246
15243
  icon: "close",
15247
15244
  onClick: closeModal
15248
15245
  }, null, 8, ["style"]),
15249
- vue.createElementVNode("h3", _hoisted_2$I, vue.toDisplayString(_ctx.title), 1)
15246
+ vue.createElementVNode("h3", _hoisted_2$J, vue.toDisplayString(_ctx.title), 1)
15250
15247
  ]),
15251
- vue.createVNode(vue.unref(_sfc_main$I), {
15248
+ vue.createVNode(vue.unref(_sfc_main$L), {
15252
15249
  onDelete: _ctx.onDelete ? runDelete : void 0,
15253
15250
  modelValue: _ctx.modelValue,
15254
15251
  "onUpdate:modelValue": handleEmit,
@@ -15260,8 +15257,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15260
15257
  };
15261
15258
  }
15262
15259
  });
15263
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1799b7d0"]]);
15264
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15260
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-1799b7d0"]]);
15261
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15265
15262
  __name: "FormSchema",
15266
15263
  props: {
15267
15264
  modelValue: {},
@@ -15334,14 +15331,14 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15334
15331
  };
15335
15332
  }
15336
15333
  });
15337
- const _hoisted_1$P = { class: "table-list-wrap h-100" };
15338
- const _hoisted_2$H = { class: "infinite-wrapper" };
15339
- const _hoisted_3$D = { class: "row first-row" };
15340
- const _hoisted_4$n = ["onClick"];
15341
- const _hoisted_5$j = { class: "flex" };
15342
- const _hoisted_6$f = ["onClick"];
15334
+ const _hoisted_1$R = { class: "table-list-wrap h-100" };
15335
+ const _hoisted_2$I = { class: "infinite-wrapper" };
15336
+ const _hoisted_3$E = { class: "row first-row" };
15337
+ const _hoisted_4$p = ["onClick"];
15338
+ const _hoisted_5$k = { class: "flex" };
15339
+ const _hoisted_6$g = ["onClick"];
15343
15340
  const _hoisted_7$b = { key: 1 };
15344
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15341
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15345
15342
  __name: "TableSchema",
15346
15343
  props: {
15347
15344
  data: {},
@@ -15356,7 +15353,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15356
15353
  const selectElement = (data2) => {
15357
15354
  emit2("select", data2);
15358
15355
  };
15359
- const bindAttrs = (attrs, field, row) => {
15356
+ const bindAttrs2 = (attrs, field, row) => {
15360
15357
  const arr = Object.entries(attrs || {}).map(([key, value]) => [
15361
15358
  key,
15362
15359
  typeof value === "function" ? value(field, row) : value
@@ -15387,27 +15384,27 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15387
15384
  }
15388
15385
  );
15389
15386
  return (_ctx, _cache) => {
15390
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
15391
- vue.createElementVNode("table", _hoisted_2$H, [
15392
- vue.createElementVNode("thead", _hoisted_3$D, [
15387
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
15388
+ vue.createElementVNode("table", _hoisted_2$I, [
15389
+ vue.createElementVNode("thead", _hoisted_3$E, [
15393
15390
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(columns.value, (field) => {
15394
15391
  return vue.openBlock(), vue.createElementBlock("th", {
15395
15392
  class: "col",
15396
15393
  key: field.id,
15397
15394
  onClick: ($event) => sort2(field.id)
15398
15395
  }, [
15399
- vue.createElementVNode("div", _hoisted_5$j, [
15396
+ vue.createElementVNode("div", _hoisted_5$k, [
15400
15397
  vue.createTextVNode(vue.toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
15401
15398
  vue.createElementVNode("div", {
15402
15399
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
15403
15400
  }, [
15404
- vue.createVNode(vue.unref(_sfc_main$T), {
15401
+ vue.createVNode(vue.unref(_sfc_main$W), {
15405
15402
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
15406
15403
  icon: "keyboard_arrow_up"
15407
15404
  }, null, 8, ["class"])
15408
15405
  ], 2)
15409
15406
  ])
15410
- ], 8, _hoisted_4$n);
15407
+ ], 8, _hoisted_4$p);
15411
15408
  }), 128))
15412
15409
  ]),
15413
15410
  vue.createElementVNode("tbody", {
@@ -15431,7 +15428,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15431
15428
  row,
15432
15429
  field
15433
15430
  }, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$b, [
15434
- (field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || field.$cmp || "div"), vue.mergeProps({ key: 0 }, bindAttrs(field.attrs, row[field.id], row), {
15431
+ (field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || field.$cmp || "div"), vue.mergeProps({ key: 0 }, bindAttrs2(field.attrs, row[field.id], row), {
15435
15432
  src: field.$el === "img" ? (_a2 = row[field.id]) == null ? void 0 : _a2.url : "",
15436
15433
  "onUpdate:modelValue": ($event) => {
15437
15434
  var _a3;
@@ -15450,7 +15447,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15450
15447
  ]))
15451
15448
  ]);
15452
15449
  }), 128))
15453
- ], 8, _hoisted_6$f);
15450
+ ], 8, _hoisted_6$g);
15454
15451
  }), 128))
15455
15452
  ], 2)
15456
15453
  ])
@@ -15458,16 +15455,16 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15458
15455
  };
15459
15456
  }
15460
15457
  });
15461
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-f3a410c2"]]);
15462
- const _sfc_main$G = {};
15463
- const _hoisted_1$O = { class: "flex space-between" };
15458
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-f3a410c2"]]);
15459
+ const _sfc_main$J = {};
15460
+ const _hoisted_1$Q = { class: "flex space-between" };
15464
15461
  function _sfc_render$1(_ctx, _cache) {
15465
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
15462
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
15466
15463
  vue.renderSlot(_ctx.$slots, "default")
15467
15464
  ]);
15468
15465
  }
15469
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$1]]);
15470
- const _sfc_main$F = {};
15466
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["render", _sfc_render$1]]);
15467
+ const _sfc_main$I = {};
15471
15468
  function _sfc_render(_ctx, _cache) {
15472
15469
  const _component_router_view = vue.resolveComponent("router-view");
15473
15470
  return vue.openBlock(), vue.createBlock(_component_router_view, null, {
@@ -15489,9 +15486,9 @@ function _sfc_render(_ctx, _cache) {
15489
15486
  _: 1
15490
15487
  });
15491
15488
  }
15492
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render]]);
15493
- const _hoisted_1$N = { class: "card h-100 thin" };
15494
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15489
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render]]);
15490
+ const _hoisted_1$P = { class: "card h-100 thin" };
15491
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15495
15492
  __name: "ContactSubmissions",
15496
15493
  props: {
15497
15494
  person_id: {
@@ -15521,7 +15518,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15521
15518
  void getData();
15522
15519
  });
15523
15520
  return (_ctx, _cache) => {
15524
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
15521
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
15525
15522
  vue.createVNode(vue.unref(TableSchema), {
15526
15523
  schema: schema2,
15527
15524
  data: vue.unref(data2)
@@ -15530,15 +15527,15 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15530
15527
  };
15531
15528
  }
15532
15529
  });
15533
- const _hoisted_1$M = {
15530
+ const _hoisted_1$O = {
15534
15531
  key: 0,
15535
15532
  class: "person-card-edit flex gap-2"
15536
15533
  };
15537
- const _hoisted_2$G = { class: "person-card-icon-wrap" };
15538
- const _hoisted_3$C = { class: "person-card-icon" };
15539
- const _hoisted_4$m = { class: "person-card-name txt20" };
15540
- const _hoisted_5$i = { class: "person-card-details-wrap" };
15541
- const _hoisted_6$e = {
15534
+ const _hoisted_2$H = { class: "person-card-icon-wrap" };
15535
+ const _hoisted_3$D = { class: "person-card-icon" };
15536
+ const _hoisted_4$o = { class: "person-card-name txt20" };
15537
+ const _hoisted_5$j = { class: "person-card-details-wrap" };
15538
+ const _hoisted_6$f = {
15542
15539
  key: 0,
15543
15540
  class: "person-card-details"
15544
15541
  };
@@ -15552,7 +15549,7 @@ const _hoisted_8$5 = {
15552
15549
  };
15553
15550
  const _hoisted_9$3 = { key: 0 };
15554
15551
  const _hoisted_10$3 = { key: 1 };
15555
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15552
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15556
15553
  __name: "PersonPreview",
15557
15554
  props: {
15558
15555
  person: {},
@@ -15582,7 +15579,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15582
15579
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
15583
15580
  class: "person-card"
15584
15581
  }, [
15585
- !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15582
+ !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
15586
15583
  !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
15587
15584
  key: 0,
15588
15585
  round: "",
@@ -15599,13 +15596,13 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15599
15596
  icon: "edit"
15600
15597
  })
15601
15598
  ])) : vue.createCommentVNode("", true),
15602
- vue.createElementVNode("div", _hoisted_2$G, [
15603
- vue.createElementVNode("p", _hoisted_3$C, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15604
- vue.createElementVNode("p", _hoisted_4$m, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15599
+ vue.createElementVNode("div", _hoisted_2$H, [
15600
+ vue.createElementVNode("p", _hoisted_3$D, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15601
+ vue.createElementVNode("p", _hoisted_4$o, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15605
15602
  ]),
15606
- vue.createElementVNode("div", _hoisted_5$i, [
15607
- ((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$e, [
15608
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "phone" }),
15603
+ vue.createElementVNode("div", _hoisted_5$j, [
15604
+ ((_a2 = _ctx.person.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$f, [
15605
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
15609
15606
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.phone, (phone) => {
15610
15607
  return vue.openBlock(), vue.createElementBlock("p", {
15611
15608
  key: phone.id
@@ -15613,7 +15610,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15613
15610
  }), 128))
15614
15611
  ])) : vue.createCommentVNode("", true),
15615
15612
  ((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$a, [
15616
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "email" }),
15613
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
15617
15614
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.email, (email) => {
15618
15615
  return vue.openBlock(), vue.createElementBlock("p", {
15619
15616
  key: email.id
@@ -15621,7 +15618,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15621
15618
  }), 128))
15622
15619
  ])) : vue.createCommentVNode("", true),
15623
15620
  _ctx.person.date_of_birth || _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
15624
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "badge" }),
15621
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
15625
15622
  _ctx.person.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$3, vue.toDisplayString(_ctx.person.date_of_birth), 1)) : vue.createCommentVNode("", true),
15626
15623
  _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10$3, vue.toDisplayString(_ctx.person.gender), 1)) : vue.createCommentVNode("", true)
15627
15624
  ])) : vue.createCommentVNode("", true)
@@ -15630,23 +15627,23 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15630
15627
  };
15631
15628
  }
15632
15629
  });
15633
- const _hoisted_1$L = {
15630
+ const _hoisted_1$N = {
15634
15631
  key: 0,
15635
15632
  class: "data"
15636
15633
  };
15637
- const _hoisted_2$F = {
15634
+ const _hoisted_2$G = {
15638
15635
  key: 0,
15639
15636
  class: "mb-3 mt-0"
15640
15637
  };
15641
- const _hoisted_3$B = {
15638
+ const _hoisted_3$C = {
15642
15639
  key: 0,
15643
15640
  class: "data-row"
15644
15641
  };
15645
- const _hoisted_4$l = { class: "key" };
15646
- const _hoisted_5$h = { key: 1 };
15647
- const _hoisted_6$d = { class: "key" };
15642
+ const _hoisted_4$n = { class: "key" };
15643
+ const _hoisted_5$i = { key: 1 };
15644
+ const _hoisted_6$e = { class: "key" };
15648
15645
  const _hoisted_7$9 = { class: "vlue" };
15649
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15646
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15650
15647
  __name: "DataPreview",
15651
15648
  props: {
15652
15649
  data: {},
@@ -15658,7 +15655,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15658
15655
  const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
15659
15656
  const props2 = __props;
15660
15657
  const itemData = vue.ref(props2.data);
15661
- const bindAttrs = (attrs, field, row) => {
15658
+ const bindAttrs2 = (attrs, field, row) => {
15662
15659
  const arr = Object.entries(attrs || {}).map(([key, value]) => [
15663
15660
  key,
15664
15661
  typeof value === "function" ? value(field, row) : value
@@ -15668,14 +15665,14 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15668
15665
  };
15669
15666
  return (_ctx, _cache) => {
15670
15667
  var _a2;
15671
- return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15672
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$F, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15668
+ return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
15669
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$G, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15673
15670
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema || [], (field) => {
15674
15671
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
15675
15672
  key: field.id
15676
15673
  }, [
15677
- (field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
15678
- vue.createElementVNode("div", _hoisted_4$l, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15674
+ (field["v-if"] ? field["v-if"](itemData.value[field.id], itemData.value) : true) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
15675
+ vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15679
15676
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), vue.mergeProps({
15680
15677
  class: "vlue",
15681
15678
  modelValue: itemData.value[field.id],
@@ -15683,7 +15680,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15683
15680
  var _a3;
15684
15681
  return (_a3 = field == null ? void 0 : field.onUpdate) == null ? void 0 : _a3.call(field, $event, _ctx.data[field.id], itemData.value);
15685
15682
  }]
15686
- }, bindAttrs(field.attrs, itemData.value[field.id], itemData.value)), {
15683
+ }, bindAttrs2(field.attrs, itemData.value[field.id], itemData.value)), {
15687
15684
  default: vue.withCtx(() => {
15688
15685
  var _a3;
15689
15686
  return [
@@ -15695,7 +15692,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15695
15692
  ])) : vue.createCommentVNode("", true)
15696
15693
  ], 64);
15697
15694
  }), 128)),
15698
- !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$h, [
15695
+ !((_a2 = _ctx.schema) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$i, [
15699
15696
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(itemData.value).filter(
15700
15697
  ([key]) => !keysToIgnore.includes(key)
15701
15698
  ), ([key, value]) => {
@@ -15703,7 +15700,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15703
15700
  class: "data-row",
15704
15701
  key
15705
15702
  }, [
15706
- vue.createElementVNode("div", _hoisted_6$d, vue.toDisplayString(vue.unref(i18nT)(vue.unref(keyToLabel)(key))), 1),
15703
+ vue.createElementVNode("div", _hoisted_6$e, vue.toDisplayString(vue.unref(i18nT)(vue.unref(keyToLabel)(key))), 1),
15707
15704
  vue.createElementVNode("div", _hoisted_7$9, vue.toDisplayString(value), 1)
15708
15705
  ]);
15709
15706
  }), 128))
@@ -15713,23 +15710,23 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15713
15710
  };
15714
15711
  }
15715
15712
  });
15716
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-dc2757c4"]]);
15713
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-dc2757c4"]]);
15717
15714
  const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-fe5af582"), n = n(), vue.popScopeId(), n);
15718
- const _hoisted_1$K = { class: "bar-chart" };
15719
- const _hoisted_2$E = {
15715
+ const _hoisted_1$M = { class: "bar-chart" };
15716
+ const _hoisted_2$F = {
15720
15717
  key: 0,
15721
15718
  class: "group-wrap"
15722
15719
  };
15723
- const _hoisted_3$A = { class: "group-title" };
15724
- const _hoisted_4$k = {
15720
+ const _hoisted_3$B = { class: "group-title" };
15721
+ const _hoisted_4$m = {
15725
15722
  key: 1,
15726
15723
  class: "bar-wrap"
15727
15724
  };
15728
- const _hoisted_5$g = { class: "bar-txt" };
15729
- const _hoisted_6$c = { class: "factor" };
15725
+ const _hoisted_5$h = { class: "bar-txt" };
15726
+ const _hoisted_6$d = { class: "factor" };
15730
15727
  const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ vue.createElementVNode("div", { class: "red-bar" }, null, -1));
15731
15728
  const _hoisted_8$4 = { class: "bar-lines" };
15732
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15729
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15733
15730
  __name: "BarChart",
15734
15731
  props: {
15735
15732
  title: {},
@@ -15781,14 +15778,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15781
15778
  const percent = (val) => val / maxValue.value * 100;
15782
15779
  const floodPercent = vue.computed(() => `${props2.flood}%`);
15783
15780
  return (_ctx, _cache) => {
15784
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
15781
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15785
15782
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dataArray.value, (item, i3) => {
15786
15783
  return vue.openBlock(), vue.createElementBlock("div", {
15787
15784
  class: "graph-wrap",
15788
15785
  key: i3
15789
15786
  }, [
15790
- item.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, [
15791
- vue.createElementVNode("p", _hoisted_3$A, vue.toDisplayString(item.group), 1),
15787
+ item.group ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
15788
+ vue.createElementVNode("p", _hoisted_3$B, vue.toDisplayString(item.group), 1),
15792
15789
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((item == null ? void 0 : item.data) || [], (nested, i22) => {
15793
15790
  return vue.openBlock(), vue.createElementBlock("div", {
15794
15791
  key: i22,
@@ -15807,7 +15804,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15807
15804
  }, null, 4)) : vue.createCommentVNode("", true)
15808
15805
  ]);
15809
15806
  }), 128))
15810
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, [
15807
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$m, [
15811
15808
  vue.createElementVNode("div", {
15812
15809
  class: "bar",
15813
15810
  style: vue.normalizeStyle({ height: loaded.value ? `${percent(item.value)}%` : "0" })
@@ -15817,11 +15814,11 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15817
15814
  class: "bar compare",
15818
15815
  style: vue.normalizeStyle({ height: loaded.value ? `${percent(item.compareValue)}%` : "0" })
15819
15816
  }, null, 4)) : vue.createCommentVNode("", true),
15820
- vue.createElementVNode("p", _hoisted_5$g, vue.toDisplayString(item.title), 1)
15817
+ vue.createElementVNode("p", _hoisted_5$h, vue.toDisplayString(item.title), 1)
15821
15818
  ]))
15822
15819
  ]);
15823
15820
  }), 128)),
15824
- vue.createElementVNode("p", _hoisted_6$c, vue.toDisplayString(_ctx.title), 1),
15821
+ vue.createElementVNode("p", _hoisted_6$d, vue.toDisplayString(_ctx.title), 1),
15825
15822
  _hoisted_7$8,
15826
15823
  vue.createElementVNode("div", _hoisted_8$4, [
15827
15824
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(marks2.value, (mark) => {
@@ -15832,7 +15829,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15832
15829
  };
15833
15830
  }
15834
15831
  });
15835
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-fe5af582"]]);
15832
+ const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fe5af582"]]);
15836
15833
  const explicitKeys = [
15837
15834
  "__key",
15838
15835
  "__init",
@@ -17088,8 +17085,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
17088
17085
  }
17089
17086
  return definition;
17090
17087
  }
17091
- const _hoisted_1$J = { class: "primary-checkbox" };
17092
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17088
+ const _hoisted_1$L = { class: "primary-checkbox" };
17089
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17093
17090
  __name: "Checkbox",
17094
17091
  props: {
17095
17092
  modelValue: Boolean
@@ -17117,7 +17114,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17117
17114
  }
17118
17115
  );
17119
17116
  return (_ctx, _cache) => {
17120
- return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$J, [
17117
+ return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$L, [
17121
17118
  vue.withDirectives(vue.createElementVNode("input", {
17122
17119
  type: "checkbox",
17123
17120
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(val) ? val.value = $event : val = $event)
@@ -17125,24 +17122,24 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17125
17122
  [vue.vModelCheckbox, vue.unref(val)]
17126
17123
  ]),
17127
17124
  vue.createElementVNode("span", null, [
17128
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "check" })
17125
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "check" })
17129
17126
  ])
17130
17127
  ]);
17131
17128
  };
17132
17129
  }
17133
17130
  });
17134
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-6b168ea9"]]);
17135
- const _hoisted_1$I = { class: "bagel-input" };
17136
- const _hoisted_2$D = { class: "mt-1" };
17137
- const _hoisted_3$z = {
17131
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-6b168ea9"]]);
17132
+ const _hoisted_1$K = { class: "bagel-input" };
17133
+ const _hoisted_2$E = { class: "mt-1" };
17134
+ const _hoisted_3$A = {
17138
17135
  key: 0,
17139
17136
  class: "bglform-contact-confirm"
17140
17137
  };
17141
- const _hoisted_4$j = { class: "txt14" };
17142
- const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17143
- const _hoisted_6$b = ["onUpdate:modelValue", "placeholder"];
17138
+ const _hoisted_4$l = { class: "txt14" };
17139
+ const _hoisted_5$g = ["onUpdate:modelValue", "placeholder"];
17140
+ const _hoisted_6$c = ["onUpdate:modelValue", "placeholder"];
17144
17141
  const _hoisted_7$7 = ["onUpdate:modelValue", "placeholder"];
17145
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17142
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17146
17143
  __name: "ContactArrayFormKit",
17147
17144
  props: {
17148
17145
  context: {}
@@ -17195,16 +17192,16 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17195
17192
  }
17196
17193
  );
17197
17194
  return (_ctx, _cache) => {
17198
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
17199
- vue.createElementVNode("div", _hoisted_2$D, [
17195
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
17196
+ vue.createElementVNode("div", _hoisted_2$E, [
17200
17197
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (contact, i3) => {
17201
17198
  var _a2, _b, _c, _d, _e2, _f;
17202
17199
  return vue.openBlock(), vue.createElementBlock("div", {
17203
17200
  class: "bglform-contact mb-2",
17204
17201
  key: i3
17205
17202
  }, [
17206
- vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
17207
- vue.createElementVNode("p", _hoisted_4$j, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17203
+ vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$A, [
17204
+ vue.createElementVNode("p", _hoisted_4$l, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17208
17205
  vue.createVNode(vue.unref(Btn), {
17209
17206
  thin: "",
17210
17207
  color: "red",
@@ -17240,7 +17237,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17240
17237
  "onUpdate:modelValue": ($event) => contact.label = $event,
17241
17238
  type: "text",
17242
17239
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17243
- }, null, 8, _hoisted_5$f), [
17240
+ }, null, 8, _hoisted_5$g), [
17244
17241
  [vue.vModelText, contact.label]
17245
17242
  ]),
17246
17243
  ((_c = _ctx.context) == null ? void 0 : _c.id) === "email" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -17248,7 +17245,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17248
17245
  "onUpdate:modelValue": ($event) => contact.email = $event,
17249
17246
  placeholder: (_d = formPlaceholders.value) == null ? void 0 : _d.email,
17250
17247
  type: "email"
17251
- }, null, 8, _hoisted_6$b)), [
17248
+ }, null, 8, _hoisted_6$c)), [
17252
17249
  [vue.vModelText, contact.email]
17253
17250
  ]) : vue.createCommentVNode("", true),
17254
17251
  ((_e2 = _ctx.context) == null ? void 0 : _e2.id) === "phone" ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
@@ -17287,23 +17284,23 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17287
17284
  };
17288
17285
  }
17289
17286
  });
17290
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f93bb259"]]);
17291
- const _hoisted_1$H = { class: "bagel-input" };
17292
- const _hoisted_2$C = { class: "mt-1" };
17293
- const _hoisted_3$y = {
17287
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f93bb259"]]);
17288
+ const _hoisted_1$J = { class: "bagel-input" };
17289
+ const _hoisted_2$D = { class: "mt-1" };
17290
+ const _hoisted_3$z = {
17294
17291
  key: 0,
17295
17292
  class: "bglform-contact-confirm"
17296
17293
  };
17297
- const _hoisted_4$i = { class: "txt14" };
17298
- const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
17299
- const _hoisted_6$a = { class: "bglform-contact-address" };
17294
+ const _hoisted_4$k = { class: "txt14" };
17295
+ const _hoisted_5$f = ["onUpdate:modelValue", "placeholder"];
17296
+ const _hoisted_6$b = { class: "bglform-contact-address" };
17300
17297
  const _hoisted_7$6 = ["onUpdate:modelValue", "placeholder"];
17301
17298
  const _hoisted_8$3 = { class: "bglform-contact-address-flex" };
17302
17299
  const _hoisted_9$2 = ["onUpdate:modelValue", "placeholder"];
17303
17300
  const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
17304
17301
  const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
17305
17302
  const _hoisted_12$1 = { class: "bglform-address-del" };
17306
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17303
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17307
17304
  __name: "AddressArray",
17308
17305
  props: {
17309
17306
  context: {}
@@ -17362,16 +17359,16 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17362
17359
  }
17363
17360
  );
17364
17361
  return (_ctx, _cache) => {
17365
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
17366
- vue.createElementVNode("div", _hoisted_2$C, [
17362
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
17363
+ vue.createElementVNode("div", _hoisted_2$D, [
17367
17364
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (address, i3) => {
17368
17365
  var _a2, _b, _c, _d, _e2, _f;
17369
17366
  return vue.openBlock(), vue.createElementBlock("div", {
17370
17367
  class: "bglform-contact mb-3",
17371
17368
  key: i3
17372
17369
  }, [
17373
- vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
17374
- vue.createElementVNode("p", _hoisted_4$i, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17370
+ vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$z, [
17371
+ vue.createElementVNode("p", _hoisted_4$k, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17375
17372
  vue.createVNode(vue.unref(Btn), {
17376
17373
  thin: "",
17377
17374
  color: "red",
@@ -17407,10 +17404,10 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17407
17404
  "onUpdate:modelValue": ($event) => address.label = $event,
17408
17405
  type: "text",
17409
17406
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17410
- }, null, 8, _hoisted_5$e), [
17407
+ }, null, 8, _hoisted_5$f), [
17411
17408
  [vue.vModelText, address.label]
17412
17409
  ]),
17413
- vue.createElementVNode("div", _hoisted_6$a, [
17410
+ vue.createElementVNode("div", _hoisted_6$b, [
17414
17411
  vue.withDirectives(vue.createElementVNode("input", {
17415
17412
  "onUpdate:modelValue": ($event) => address.street = $event,
17416
17413
  placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.street,
@@ -17471,16 +17468,16 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17471
17468
  };
17472
17469
  }
17473
17470
  });
17474
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-77d03b04"]]);
17475
- const _hoisted_1$G = { class: "bagel-input" };
17476
- const _hoisted_2$B = { class: "mt-1" };
17477
- const _hoisted_3$x = {
17471
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-77d03b04"]]);
17472
+ const _hoisted_1$I = { class: "bagel-input" };
17473
+ const _hoisted_2$C = { class: "mt-1" };
17474
+ const _hoisted_3$y = {
17478
17475
  key: 0,
17479
17476
  class: "bglform-contact-confirm"
17480
17477
  };
17481
- const _hoisted_4$h = { class: "txt14" };
17482
- const _hoisted_5$d = ["onUpdate:modelValue", "placeholder"];
17483
- const _hoisted_6$9 = { class: "bglform-contact-address" };
17478
+ const _hoisted_4$j = { class: "txt14" };
17479
+ const _hoisted_5$e = ["onUpdate:modelValue", "placeholder"];
17480
+ const _hoisted_6$a = { class: "bglform-contact-address" };
17484
17481
  const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
17485
17482
  const _hoisted_8$2 = { class: "bglform-contact-address-flex" };
17486
17483
  const _hoisted_9$1 = ["onUpdate:modelValue", "placeholder"];
@@ -17492,7 +17489,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
17492
17489
  const _hoisted_15 = ["onUpdate:modelValue"];
17493
17490
  const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
17494
17491
  const _hoisted_17 = { class: "bglform-address-del" };
17495
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17492
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
17496
17493
  __name: "BankDetailsArray",
17497
17494
  props: {
17498
17495
  context: {}
@@ -17545,16 +17542,16 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17545
17542
  }
17546
17543
  );
17547
17544
  return (_ctx, _cache) => {
17548
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
17549
- vue.createElementVNode("div", _hoisted_2$B, [
17545
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
17546
+ vue.createElementVNode("div", _hoisted_2$C, [
17550
17547
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(val), (bank_account, i3) => {
17551
17548
  var _a2, _b, _c, _d, _e2, _f, _g, _h;
17552
17549
  return vue.openBlock(), vue.createElementBlock("div", {
17553
17550
  class: "bglform-contact mb-3",
17554
17551
  key: i3
17555
17552
  }, [
17556
- vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$x, [
17557
- vue.createElementVNode("p", _hoisted_4$h, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17553
+ vue.unref(deleteCandidate) === i3 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$y, [
17554
+ vue.createElementVNode("p", _hoisted_4$j, vue.toDisplayString((_a2 = formPlaceholders.value) == null ? void 0 : _a2.sure), 1),
17558
17555
  vue.createVNode(vue.unref(Btn), {
17559
17556
  thin: "",
17560
17557
  color: "red",
@@ -17590,10 +17587,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17590
17587
  "onUpdate:modelValue": ($event) => bank_account.label = $event,
17591
17588
  type: "text",
17592
17589
  placeholder: (_b = formPlaceholders.value) == null ? void 0 : _b.label
17593
- }, null, 8, _hoisted_5$d), [
17590
+ }, null, 8, _hoisted_5$e), [
17594
17591
  [vue.vModelText, bank_account.label]
17595
17592
  ]),
17596
- vue.createElementVNode("div", _hoisted_6$9, [
17593
+ vue.createElementVNode("div", _hoisted_6$a, [
17597
17594
  vue.withDirectives(vue.createElementVNode("input", {
17598
17595
  "onUpdate:modelValue": ($event) => bank_account.bank_name = $event,
17599
17596
  placeholder: (_c = formPlaceholders.value) == null ? void 0 : _c.bankName,
@@ -17688,9 +17685,9 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17688
17685
  };
17689
17686
  }
17690
17687
  });
17691
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-a0d366d4"]]);
17692
- const _hoisted_1$F = { class: "misc-wrap" };
17693
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17688
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-a0d366d4"]]);
17689
+ const _hoisted_1$H = { class: "misc-wrap" };
17690
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
17694
17691
  __name: "MiscFields",
17695
17692
  props: {
17696
17693
  context: {},
@@ -17707,7 +17704,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17707
17704
  console.log(fields.value);
17708
17705
  };
17709
17706
  return (_ctx, _cache) => {
17710
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
17707
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
17711
17708
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(fields.value.filter(
17712
17709
  (field) => {
17713
17710
  var _a2;
@@ -17735,13 +17732,13 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
17735
17732
  };
17736
17733
  }
17737
17734
  });
17738
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a096417d"]]);
17735
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-a096417d"]]);
17739
17736
  const _withScopeId$1 = (n) => (vue.pushScopeId("data-v-d0543d4b"), n = n(), vue.popScopeId(), n);
17740
- const _hoisted_1$E = ["title"];
17741
- const _hoisted_2$A = { class: "switch" };
17742
- const _hoisted_3$w = ["id"];
17743
- const _hoisted_4$g = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
17744
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
17737
+ const _hoisted_1$G = ["title"];
17738
+ const _hoisted_2$B = { class: "switch" };
17739
+ const _hoisted_3$x = ["id"];
17740
+ const _hoisted_4$i = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
17741
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17745
17742
  __name: "Toggle",
17746
17743
  props: {
17747
17744
  context: Object
@@ -17765,7 +17762,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
17765
17762
  class: vue.normalizeClass(["bagel-input checkbox", { check: (_a2 = __props.context) == null ? void 0 : _a2.attrs.isCheckbox }]),
17766
17763
  title: (_b = __props.context) == null ? void 0 : _b.help
17767
17764
  }, [
17768
- vue.createElementVNode("label", _hoisted_2$A, [
17765
+ vue.createElementVNode("label", _hoisted_2$B, [
17769
17766
  vue.withDirectives(vue.createElementVNode("input", {
17770
17767
  onChange: _cache[0] || (_cache[0] = () => {
17771
17768
  var _a3;
@@ -17774,31 +17771,31 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
17774
17771
  type: "checkbox",
17775
17772
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
17776
17773
  id: (_c = __props.context) == null ? void 0 : _c.id
17777
- }, null, 40, _hoisted_3$w), [
17774
+ }, null, 40, _hoisted_3$x), [
17778
17775
  [vue.vModelCheckbox, vue.unref(inputVal)]
17779
17776
  ]),
17780
- _hoisted_4$g
17777
+ _hoisted_4$i
17781
17778
  ])
17782
- ], 10, _hoisted_1$E);
17779
+ ], 10, _hoisted_1$G);
17783
17780
  };
17784
17781
  }
17785
17782
  });
17786
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-d0543d4b"]]);
17787
- const _hoisted_1$D = { class: "files-wrapper flex" };
17788
- const _hoisted_2$z = {
17783
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-d0543d4b"]]);
17784
+ const _hoisted_1$F = { class: "files-wrapper flex" };
17785
+ const _hoisted_2$A = {
17789
17786
  key: 0,
17790
17787
  class: "img-label"
17791
17788
  };
17792
- const _hoisted_3$v = { class: "uploading-wrap" };
17793
- const _hoisted_4$f = { class: "load-file-bar" };
17794
- const _hoisted_5$c = ["src", "alt"];
17795
- const _hoisted_6$8 = { class: "flex" };
17789
+ const _hoisted_3$w = { class: "uploading-wrap" };
17790
+ const _hoisted_4$h = { class: "load-file-bar" };
17791
+ const _hoisted_5$d = ["src", "alt"];
17792
+ const _hoisted_6$9 = { class: "flex" };
17796
17793
  const _hoisted_7$4 = {
17797
17794
  key: 0,
17798
17795
  class: "progress"
17799
17796
  };
17800
17797
  const _hoisted_8$1 = ["multiple"];
17801
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
17798
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
17802
17799
  __name: "FileUploader",
17803
17800
  props: {
17804
17801
  context: {},
@@ -17936,7 +17933,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
17936
17933
  void addFiles(filesToAdd);
17937
17934
  }
17938
17935
  return (_ctx, _cache) => {
17939
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
17936
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
17940
17937
  vue.createElementVNode("div", {
17941
17938
  ref_key: "dropZoneEl",
17942
17939
  ref: dropZoneEl,
@@ -17956,34 +17953,34 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
17956
17953
  ]),
17957
17954
  _: 1
17958
17955
  }),
17959
- allowUpload.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
17956
+ allowUpload.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, [
17960
17957
  vue.createElementVNode("p", null, [
17961
17958
  vue.createTextVNode(vue.toDisplayString(computedDragDropLabel.value) + " ", 1),
17962
17959
  vue.createElementVNode("span", null, vue.toDisplayString(computedDrowseLabel.value), 1)
17963
17960
  ])
17964
17961
  ])) : vue.createCommentVNode("", true),
17965
- vue.createElementVNode("div", _hoisted_3$v, [
17962
+ vue.createElementVNode("div", _hoisted_3$w, [
17966
17963
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(files.value, (item, index2) => {
17967
17964
  return vue.openBlock(), vue.createElementBlock("div", {
17968
17965
  class: vue.normalizeClass({ uploading: item.uploading }),
17969
17966
  key: index2
17970
17967
  }, [
17971
- vue.createElementVNode("div", _hoisted_4$f, [
17968
+ vue.createElementVNode("div", _hoisted_4$h, [
17972
17969
  isImg(item) ? (vue.openBlock(), vue.createElementBlock("img", {
17973
17970
  key: 0,
17974
17971
  width: "40",
17975
17972
  src: item.dataUrl,
17976
17973
  alt: item.name,
17977
17974
  style: { "margin-inline-end": "10px" }
17978
- }, null, 8, _hoisted_5$c)) : vue.createCommentVNode("", true),
17975
+ }, null, 8, _hoisted_5$d)) : vue.createCommentVNode("", true),
17979
17976
  vue.createElementVNode("p", null, vue.toDisplayString(item.name), 1),
17980
- vue.createElementVNode("div", _hoisted_6$8, [
17977
+ vue.createElementVNode("div", _hoisted_6$9, [
17981
17978
  vue.createElementVNode("div", {
17982
17979
  class: vue.normalizeClass(["pie", { complete: item.progress === 100 }]),
17983
17980
  style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
17984
17981
  }, [
17985
17982
  item.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$4, vue.toDisplayString(`${item.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
17986
- vue.createVNode(vue.unref(_sfc_main$T), {
17983
+ vue.createVNode(vue.unref(_sfc_main$W), {
17987
17984
  class: "success",
17988
17985
  icon: "check"
17989
17986
  })
@@ -18013,15 +18010,15 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18013
18010
  };
18014
18011
  }
18015
18012
  });
18016
- const _hoisted_1$C = {
18013
+ const _hoisted_1$E = {
18017
18014
  key: 0,
18018
18015
  class: "person-card-edit flex gap-2"
18019
18016
  };
18020
- const _hoisted_2$y = { class: "person-card-icon-wrap" };
18021
- const _hoisted_3$u = { class: "person-card-icon" };
18022
- const _hoisted_4$e = { class: "person-card-name txt20" };
18023
- const _hoisted_5$b = { class: "person-card-details-wrap" };
18024
- const _hoisted_6$7 = {
18017
+ const _hoisted_2$z = { class: "person-card-icon-wrap" };
18018
+ const _hoisted_3$v = { class: "person-card-icon" };
18019
+ const _hoisted_4$g = { class: "person-card-name txt20" };
18020
+ const _hoisted_5$c = { class: "person-card-details-wrap" };
18021
+ const _hoisted_6$8 = {
18025
18022
  key: 0,
18026
18023
  class: "person-card-details"
18027
18024
  };
@@ -18035,7 +18032,7 @@ const _hoisted_8 = {
18035
18032
  };
18036
18033
  const _hoisted_9 = { key: 0 };
18037
18034
  const _hoisted_10 = { key: 1 };
18038
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18035
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
18039
18036
  __name: "PersonPreviewFormkit",
18040
18037
  props: {
18041
18038
  context: {},
@@ -18066,7 +18063,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18066
18063
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
18067
18064
  class: "person-card"
18068
18065
  }, [
18069
- !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
18066
+ !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
18070
18067
  !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
18071
18068
  key: 0,
18072
18069
  onClick: vue.unref(hideModal),
@@ -18084,13 +18081,13 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18084
18081
  icon: "edit"
18085
18082
  })
18086
18083
  ])) : vue.createCommentVNode("", true),
18087
- vue.createElementVNode("div", _hoisted_2$y, [
18088
- vue.createElementVNode("p", _hoisted_3$u, vue.toDisplayString(vue.unref(initials)(person.value.first_name, person.value.last_name)), 1),
18089
- vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString(person.value.first_name) + " " + vue.toDisplayString(person.value.last_name), 1)
18084
+ vue.createElementVNode("div", _hoisted_2$z, [
18085
+ vue.createElementVNode("p", _hoisted_3$v, vue.toDisplayString(vue.unref(initials)(person.value.first_name, person.value.last_name)), 1),
18086
+ vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString(person.value.first_name) + " " + vue.toDisplayString(person.value.last_name), 1)
18090
18087
  ]),
18091
- vue.createElementVNode("div", _hoisted_5$b, [
18092
- ((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$7, [
18093
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "phone" }),
18088
+ vue.createElementVNode("div", _hoisted_5$c, [
18089
+ ((_a2 = person.value.phone) == null ? void 0 : _a2.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$8, [
18090
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "phone" }),
18094
18091
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.phone, (phone) => {
18095
18092
  return vue.openBlock(), vue.createElementBlock("p", {
18096
18093
  key: phone.id
@@ -18098,7 +18095,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18098
18095
  }), 128))
18099
18096
  ])) : vue.createCommentVNode("", true),
18100
18097
  ((_b = person.value.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
18101
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "email" }),
18098
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "email" }),
18102
18099
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.email, (email) => {
18103
18100
  return vue.openBlock(), vue.createElementBlock("p", {
18104
18101
  key: email.id
@@ -18106,7 +18103,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18106
18103
  }), 128))
18107
18104
  ])) : vue.createCommentVNode("", true),
18108
18105
  person.value.date_of_birth || person.value.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
18109
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "badge" }),
18106
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "badge" }),
18110
18107
  person.value.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9, vue.toDisplayString(person.value.date_of_birth), 1)) : vue.createCommentVNode("", true),
18111
18108
  person.value.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10, vue.toDisplayString(person.value.gender), 1)) : vue.createCommentVNode("", true)
18112
18109
  ])) : vue.createCommentVNode("", true)
@@ -18115,7 +18112,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18115
18112
  };
18116
18113
  }
18117
18114
  });
18118
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18115
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
18119
18116
  __name: "TextVariableExamples",
18120
18117
  props: {
18121
18118
  context: Object
@@ -18207,14 +18204,14 @@ const AddressInput = createInput(AddressArray);
18207
18204
  const BankDetailsInput = createInput(BankDetailsArray);
18208
18205
  const MiscFieldsInput = createInput(MiscFieldsBtns);
18209
18206
  const ToggleSwitchInput = createInput(Toggle);
18210
- const FileUploadInput = createInput(_sfc_main$u);
18211
- const TextVariablesInput = createInput(_sfc_main$s);
18212
- const PersonPreviewInput = createInput(_sfc_main$t);
18213
- const _hoisted_1$B = {
18207
+ const FileUploadInput = createInput(_sfc_main$x);
18208
+ const TextVariablesInput = createInput(_sfc_main$v);
18209
+ const PersonPreviewInput = createInput(_sfc_main$w);
18210
+ const _hoisted_1$D = {
18214
18211
  key: 1,
18215
18212
  class: "pill"
18216
18213
  };
18217
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18214
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
18218
18215
  __name: "ItemRef",
18219
18216
  props: {
18220
18217
  modelValue: {},
@@ -18248,15 +18245,15 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18248
18245
  }, {
18249
18246
  default: vue.withCtx(() => [
18250
18247
  vue.createTextVNode(vue.toDisplayString(content.value) + " ", 1),
18251
- vue.createVNode(vue.unref(_sfc_main$T), { icon: "arrow_forward" })
18248
+ vue.createVNode(vue.unref(_sfc_main$W), { icon: "arrow_forward" })
18252
18249
  ]),
18253
18250
  _: 1
18254
- })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$B, vue.toDisplayString(content.value), 1))
18251
+ })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$D, vue.toDisplayString(content.value), 1))
18255
18252
  ]);
18256
18253
  };
18257
18254
  }
18258
18255
  });
18259
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18256
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
18260
18257
  __name: "MaterialIcon",
18261
18258
  props: {
18262
18259
  icon: {},
@@ -18271,13 +18268,13 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18271
18268
  };
18272
18269
  }
18273
18270
  });
18274
- const _hoisted_1$A = { class: "bagel-input" };
18275
- const _hoisted_2$x = ["for"];
18276
- const _hoisted_3$t = ["checked"];
18277
- const _hoisted_4$d = ["name", "type", "value"];
18278
- const _hoisted_5$a = ["name", "type", "value"];
18279
- const _hoisted_6$6 = ["name", "type", "value"];
18280
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18271
+ const _hoisted_1$C = { class: "bagel-input" };
18272
+ const _hoisted_2$y = ["for"];
18273
+ const _hoisted_3$u = ["checked"];
18274
+ const _hoisted_4$f = ["name", "type", "value"];
18275
+ const _hoisted_5$b = ["name", "type", "value"];
18276
+ const _hoisted_6$7 = ["name", "type", "value"];
18277
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18281
18278
  __name: "PlainInputField",
18282
18279
  props: {
18283
18280
  type: {},
@@ -18307,14 +18304,14 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18307
18304
  }
18308
18305
  });
18309
18306
  return (_ctx, _cache) => {
18310
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
18307
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$C, [
18311
18308
  vue.createElementVNode("label", {
18312
18309
  for: vue.unref(formatString)(_ctx.name, "pascal")
18313
18310
  }, [
18314
- vue.createVNode(_sfc_main$V, {
18311
+ vue.createVNode(_sfc_main$Y, {
18315
18312
  input: vue.unref(formatString)(_ctx.name, "titleCase")
18316
18313
  }, null, 8, ["input"])
18317
- ], 8, _hoisted_2$x),
18314
+ ], 8, _hoisted_2$y),
18318
18315
  _ctx.type === "checkbox" ? (vue.openBlock(), vue.createElementBlock("input", {
18319
18316
  key: 0,
18320
18317
  ref_key: "el",
@@ -18323,7 +18320,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18323
18320
  class: "ctl",
18324
18321
  type: "checkbox",
18325
18322
  onChange: handleCheck
18326
- }, null, 40, _hoisted_3$t)) : _ctx.type === "number" ? (vue.openBlock(), vue.createElementBlock("input", {
18323
+ }, null, 40, _hoisted_3$u)) : _ctx.type === "number" ? (vue.openBlock(), vue.createElementBlock("input", {
18327
18324
  key: 1,
18328
18325
  ref_key: "el",
18329
18326
  ref: el2,
@@ -18332,7 +18329,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18332
18329
  value: _ctx.modelValue,
18333
18330
  class: "ctl",
18334
18331
  onInput: handleInput
18335
- }, null, 40, _hoisted_4$d)) : _ctx.type === "text" ? (vue.openBlock(), vue.createElementBlock("input", {
18332
+ }, null, 40, _hoisted_4$f)) : _ctx.type === "text" ? (vue.openBlock(), vue.createElementBlock("input", {
18336
18333
  key: 2,
18337
18334
  ref_key: "el",
18338
18335
  ref: el2,
@@ -18341,7 +18338,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18341
18338
  value: _ctx.modelValue,
18342
18339
  class: "ctl",
18343
18340
  onInput: handleInput
18344
- }, null, 40, _hoisted_5$a)) : _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
18341
+ }, null, 40, _hoisted_5$b)) : _ctx.type === "textarea" ? (vue.openBlock(), vue.createElementBlock("textarea", {
18345
18342
  key: 3,
18346
18343
  ref_key: "el",
18347
18344
  ref: el2,
@@ -18350,21 +18347,141 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18350
18347
  value: _ctx.modelValue,
18351
18348
  class: "ctl",
18352
18349
  onInput: handleInput
18353
- }, null, 40, _hoisted_6$6)) : vue.createCommentVNode("", true),
18350
+ }, null, 40, _hoisted_6$7)) : vue.createCommentVNode("", true),
18354
18351
  vue.createElementVNode("div", null, [
18355
- vue.createVNode(_sfc_main$V, { input: _ctx.errorMessage }, null, 8, ["input"])
18352
+ vue.createVNode(_sfc_main$Y, { input: _ctx.errorMessage }, null, 8, ["input"])
18356
18353
  ])
18357
18354
  ]);
18358
18355
  };
18359
18356
  }
18360
18357
  });
18358
+ const _hoisted_1$B = { key: 2 };
18359
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18360
+ __name: "BglForm",
18361
+ props: {
18362
+ modelValue: {},
18363
+ schema: {},
18364
+ onDelete: { type: Function },
18365
+ onSubmit: { type: Function }
18366
+ },
18367
+ emits: ["update:modelValue", "submit"],
18368
+ setup(__props, { emit: __emit }) {
18369
+ const { showModal } = useModal();
18370
+ const props2 = __props;
18371
+ const emits = __emit;
18372
+ const handleEmit = (val) => emits("update:modelValue", val);
18373
+ let data2 = vue.ref({
18374
+ ...props2.modelValue
18375
+ });
18376
+ const runSubmit = () => {
18377
+ emits("submit", data2.value);
18378
+ clearForm();
18379
+ };
18380
+ const clearForm = () => data2.value = {};
18381
+ const i18nT = (val) => val;
18382
+ vue.watch(
18383
+ () => data2.value,
18384
+ () => handleEmit,
18385
+ { immediate: true }
18386
+ );
18387
+ const runDelete = () => {
18388
+ showModal(
18389
+ {
18390
+ class: "small-modal",
18391
+ title: i18nT("Are you sure?"),
18392
+ actions: [
18393
+ {
18394
+ value: "Confirm",
18395
+ color: "red",
18396
+ onClick: () => {
18397
+ var _a2;
18398
+ return (_a2 = props2.onDelete) == null ? void 0 : _a2.call(props2, data2.value.id);
18399
+ }
18400
+ },
18401
+ { value: "Cancel", color: "gray" }
18402
+ ]
18403
+ },
18404
+ { default: i18nT("form.deleteMessage") }
18405
+ );
18406
+ };
18407
+ return (_ctx, _cache) => {
18408
+ var _a2;
18409
+ return vue.openBlock(), vue.createElementBlock("form", {
18410
+ onSubmit: vue.withModifiers(runSubmit, ["prevent"])
18411
+ }, [
18412
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema, (field, i3) => {
18413
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$q), {
18414
+ key: field.id || `${i3}p`,
18415
+ field,
18416
+ modelValue: vue.unref(data2),
18417
+ "onUpdate:modelValue": ($event) => field.id ? vue.unref(data2)[field.id] = $event : ""
18418
+ }, null, 8, ["field", "modelValue", "onUpdate:modelValue"]);
18419
+ }), 128)),
18420
+ ((_a2 = _ctx.modelValue) == null ? void 0 : _a2.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
18421
+ key: 0,
18422
+ class: "del-top",
18423
+ onClick: runDelete,
18424
+ value: "Delete",
18425
+ flat: "",
18426
+ icon: "delete",
18427
+ color: "red",
18428
+ thin: ""
18429
+ })) : vue.createCommentVNode("", true),
18430
+ !_ctx.$slots.submit && _ctx.onSubmit ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
18431
+ key: 1,
18432
+ value: "Submit",
18433
+ type: "submit",
18434
+ thin: ""
18435
+ })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
18436
+ vue.renderSlot(_ctx.$slots, "submit")
18437
+ ]))
18438
+ ], 32);
18439
+ };
18440
+ }
18441
+ });
18442
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
18443
+ __name: "BglField",
18444
+ props: {
18445
+ modelValue: {},
18446
+ field: {}
18447
+ },
18448
+ emits: ["update:modelValue"],
18449
+ setup(__props, { emit: __emit }) {
18450
+ const props2 = __props;
18451
+ const emits = __emit;
18452
+ return (_ctx, _cache) => {
18453
+ var _a2;
18454
+ const _component_BglField = vue.resolveComponent("BglField", true);
18455
+ return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.field.$el || "div"), vue.mergeProps({
18456
+ required: _ctx.field.required
18457
+ }, vue.unref(bindAttrs)(((_a2 = _ctx.field) == null ? void 0 : _a2.attrs) || {}, props2.modelValue[_ctx.field.id || ""], props2.modelValue), {
18458
+ label: _ctx.field.label,
18459
+ placeholder: _ctx.field.placeholder || _ctx.field.label,
18460
+ modelValue: props2.modelValue[_ctx.field.id || ""],
18461
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => emits("update:modelValue", $event))
18462
+ }), {
18463
+ default: vue.withCtx(() => [
18464
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.field.children, (child, ii) => {
18465
+ return vue.openBlock(), vue.createBlock(_component_BglField, {
18466
+ modelValue: _ctx.modelValue,
18467
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emits("update:modelValue", $event)),
18468
+ key: child.id || ii,
18469
+ field: child
18470
+ }, null, 8, ["modelValue", "field"]);
18471
+ }), 128))
18472
+ ]),
18473
+ _: 1
18474
+ }, 16, ["required", "label", "placeholder", "modelValue"]);
18475
+ };
18476
+ }
18477
+ });
18361
18478
  const _withScopeId = (n) => (vue.pushScopeId("data-v-0dacba34"), n = n(), vue.popScopeId(), n);
18362
- const _hoisted_1$z = ["title"];
18363
- const _hoisted_2$w = ["for"];
18364
- const _hoisted_3$s = { class: "switch" };
18365
- const _hoisted_4$c = ["id"];
18366
- const _hoisted_5$9 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
18367
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18479
+ const _hoisted_1$A = ["title"];
18480
+ const _hoisted_2$x = ["for"];
18481
+ const _hoisted_3$t = { class: "switch" };
18482
+ const _hoisted_4$e = ["id"];
18483
+ const _hoisted_5$a = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ vue.createElementVNode("span", { class: "slider round" }, null, -1));
18484
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18368
18485
  __name: "CheckInput",
18369
18486
  props: {
18370
18487
  field: {},
@@ -18397,29 +18514,29 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18397
18514
  }, [
18398
18515
  vue.createElementVNode("label", {
18399
18516
  for: _ctx.field.id
18400
- }, vue.toDisplayString(_ctx.field.label), 9, _hoisted_2$w),
18401
- vue.createElementVNode("label", _hoisted_3$s, [
18517
+ }, vue.toDisplayString(_ctx.field.label), 9, _hoisted_2$x),
18518
+ vue.createElementVNode("label", _hoisted_3$t, [
18402
18519
  vue.withDirectives(vue.createElementVNode("input", {
18403
18520
  id: _ctx.field.id,
18404
18521
  type: "checkbox",
18405
18522
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
18406
18523
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
18407
- }, null, 10, _hoisted_4$c), [
18524
+ }, null, 10, _hoisted_4$e), [
18408
18525
  [vue.vModelCheckbox, inputVal.value]
18409
18526
  ]),
18410
- _hoisted_5$9
18527
+ _hoisted_5$a
18411
18528
  ])
18412
- ], 10, _hoisted_1$z);
18529
+ ], 10, _hoisted_1$A);
18413
18530
  };
18414
18531
  }
18415
18532
  });
18416
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-0dacba34"]]);
18417
- const _hoisted_1$y = ["title"];
18418
- const _hoisted_2$v = { key: 0 };
18419
- const _hoisted_3$r = { class: "flex gap-3" };
18420
- const _hoisted_4$b = ["value", "placeholder"];
18421
- const _hoisted_5$8 = { class: "currency" };
18422
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18533
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-0dacba34"]]);
18534
+ const _hoisted_1$z = ["title"];
18535
+ const _hoisted_2$w = { key: 0 };
18536
+ const _hoisted_3$s = { class: "flex gap-3" };
18537
+ const _hoisted_4$d = ["value", "placeholder"];
18538
+ const _hoisted_5$9 = { class: "currency" };
18539
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
18423
18540
  __name: "CurrencyInput",
18424
18541
  props: {
18425
18542
  field: {},
@@ -18520,26 +18637,26 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18520
18637
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18521
18638
  title: _ctx.field.description
18522
18639
  }, [
18523
- _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$v, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
18524
- vue.createElementVNode("div", _hoisted_3$r, [
18640
+ _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$w, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
18641
+ vue.createElementVNode("div", _hoisted_3$s, [
18525
18642
  vue.createElementVNode("input", {
18526
18643
  value: _ctx.modelValue,
18527
18644
  type: "number",
18528
18645
  onInput: handleInput,
18529
18646
  placeholder: _ctx.placeholder,
18530
18647
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
18531
- }, null, 42, _hoisted_4$b),
18532
- vue.createElementVNode("p", _hoisted_5$8, vue.toDisplayString(((_a2 = currencies.find((c2) => c2.symbol === _ctx.field.currency)) == null ? void 0 : _a2.character) || _ctx.field.currency), 1)
18648
+ }, null, 42, _hoisted_4$d),
18649
+ vue.createElementVNode("p", _hoisted_5$9, vue.toDisplayString(((_a2 = currencies.find((c2) => c2.symbol === _ctx.field.currency)) == null ? void 0 : _a2.character) || _ctx.field.currency), 1)
18533
18650
  ])
18534
- ], 10, _hoisted_1$y);
18651
+ ], 10, _hoisted_1$z);
18535
18652
  };
18536
18653
  }
18537
18654
  });
18538
- const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-17a56a3f"]]);
18539
- const _hoisted_1$x = ["title"];
18540
- const _hoisted_2$u = { key: 0 };
18541
- const _hoisted_3$q = ["placeholder", "disabled"];
18542
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18655
+ const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-17a56a3f"]]);
18656
+ const _hoisted_1$y = ["title"];
18657
+ const _hoisted_2$v = { key: 0 };
18658
+ const _hoisted_3$r = ["placeholder", "disabled"];
18659
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18543
18660
  __name: "DateInput",
18544
18661
  props: {
18545
18662
  field: {},
@@ -18560,7 +18677,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18560
18677
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18561
18678
  title: _ctx.field.description
18562
18679
  }, [
18563
- _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
18680
+ _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$v, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
18564
18681
  vue.withDirectives(vue.createElementVNode("input", {
18565
18682
  type: "date",
18566
18683
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => date2.value = $event),
@@ -18570,18 +18687,18 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18570
18687
  disabled: !_ctx.editMode,
18571
18688
  enableTimePicker: false,
18572
18689
  textInputOptions: { format: "yyyy-MM-dd" }
18573
- }, null, 40, _hoisted_3$q), [
18690
+ }, null, 40, _hoisted_3$r), [
18574
18691
  [vue.vModelText, date2.value]
18575
18692
  ])
18576
- ], 10, _hoisted_1$x);
18693
+ ], 10, _hoisted_1$y);
18577
18694
  };
18578
18695
  }
18579
18696
  });
18580
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-782aee7f"]]);
18581
- const _hoisted_1$w = ["title"];
18582
- const _hoisted_2$t = { key: 0 };
18583
- const _hoisted_3$p = ["value", "placeholder"];
18584
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18697
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-782aee7f"]]);
18698
+ const _hoisted_1$x = ["title"];
18699
+ const _hoisted_2$u = { key: 0 };
18700
+ const _hoisted_3$q = ["value", "placeholder"];
18701
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18585
18702
  __name: "DatetimeInput",
18586
18703
  props: {
18587
18704
  description: { default: "" },
@@ -18607,7 +18724,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18607
18724
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18608
18725
  title: _ctx.description
18609
18726
  }, [
18610
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
18727
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, [
18611
18728
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18612
18729
  ])) : vue.createCommentVNode("", true),
18613
18730
  vue.createElementVNode("input", {
@@ -18616,15 +18733,15 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18616
18733
  onInput: handleInput,
18617
18734
  placeholder: _ctx.placeholder,
18618
18735
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
18619
- }, null, 42, _hoisted_3$p)
18620
- ], 10, _hoisted_1$w);
18736
+ }, null, 42, _hoisted_3$q)
18737
+ ], 10, _hoisted_1$x);
18621
18738
  };
18622
18739
  }
18623
18740
  });
18624
- const _hoisted_1$v = ["title"];
18625
- const _hoisted_2$s = { key: 0 };
18626
- const _hoisted_3$o = ["value", "placeholder"];
18627
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18741
+ const _hoisted_1$w = ["title"];
18742
+ const _hoisted_2$t = { key: 0 };
18743
+ const _hoisted_3$p = ["value", "placeholder"];
18744
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18628
18745
  __name: "EmailInput",
18629
18746
  props: {
18630
18747
  description: { default: "" },
@@ -18647,7 +18764,7 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18647
18764
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18648
18765
  title: _ctx.description
18649
18766
  }, [
18650
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, [
18767
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
18651
18768
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18652
18769
  ])) : vue.createCommentVNode("", true),
18653
18770
  vue.createElementVNode("input", {
@@ -18657,16 +18774,16 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18657
18774
  onInput: handleInput,
18658
18775
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
18659
18776
  placeholder: _ctx.placeholder
18660
- }, null, 42, _hoisted_3$o)
18661
- ], 10, _hoisted_1$v);
18777
+ }, null, 42, _hoisted_3$p)
18778
+ ], 10, _hoisted_1$w);
18662
18779
  };
18663
18780
  }
18664
18781
  });
18665
- const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-ed81a514"]]);
18666
- const _hoisted_1$u = ["title"];
18667
- const _hoisted_2$r = { key: 0 };
18668
- const _hoisted_3$n = ["value", "placeholder"];
18669
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18782
+ const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ed81a514"]]);
18783
+ const _hoisted_1$v = ["title"];
18784
+ const _hoisted_2$s = { key: 0 };
18785
+ const _hoisted_3$o = ["value", "placeholder"];
18786
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18670
18787
  __name: "FloatInput",
18671
18788
  props: {
18672
18789
  description: { default: "" },
@@ -18693,7 +18810,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18693
18810
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18694
18811
  title: _ctx.description
18695
18812
  }, [
18696
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$r, [
18813
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$s, [
18697
18814
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18698
18815
  ])) : vue.createCommentVNode("", true),
18699
18816
  vue.createElementVNode("input", {
@@ -18702,15 +18819,15 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18702
18819
  onInput: handleInput,
18703
18820
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
18704
18821
  placeholder: _ctx.placeholder
18705
- }, null, 42, _hoisted_3$n)
18706
- ], 10, _hoisted_1$u);
18822
+ }, null, 42, _hoisted_3$o)
18823
+ ], 10, _hoisted_1$v);
18707
18824
  };
18708
18825
  }
18709
18826
  });
18710
- const _hoisted_1$t = ["title"];
18711
- const _hoisted_2$q = { key: 0 };
18712
- const _hoisted_3$m = ["value", "placeholder"];
18713
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18827
+ const _hoisted_1$u = ["title"];
18828
+ const _hoisted_2$r = { key: 0 };
18829
+ const _hoisted_3$n = ["value", "placeholder"];
18830
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18714
18831
  __name: "IntInput",
18715
18832
  props: {
18716
18833
  description: { default: "" },
@@ -18737,7 +18854,7 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18737
18854
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18738
18855
  title: _ctx.description
18739
18856
  }, [
18740
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$q, [
18857
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$r, [
18741
18858
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18742
18859
  ])) : vue.createCommentVNode("", true),
18743
18860
  vue.createElementVNode("input", {
@@ -18746,15 +18863,15 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18746
18863
  onInput: handleInput,
18747
18864
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
18748
18865
  placeholder: _ctx.placeholder
18749
- }, null, 42, _hoisted_3$m)
18750
- ], 10, _hoisted_1$t);
18866
+ }, null, 42, _hoisted_3$n)
18867
+ ], 10, _hoisted_1$u);
18751
18868
  };
18752
18869
  }
18753
18870
  });
18754
- const _hoisted_1$s = ["title"];
18755
- const _hoisted_2$p = { key: 0 };
18756
- const _hoisted_3$l = ["value", "placeholder"];
18757
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18871
+ const _hoisted_1$t = ["title"];
18872
+ const _hoisted_2$q = { key: 0 };
18873
+ const _hoisted_3$m = ["value", "placeholder"];
18874
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18758
18875
  __name: "JSONInput",
18759
18876
  props: {
18760
18877
  description: { default: "" },
@@ -18777,7 +18894,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18777
18894
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18778
18895
  title: _ctx.description
18779
18896
  }, [
18780
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$p, [
18897
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$q, [
18781
18898
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18782
18899
  ])) : vue.createCommentVNode("", true),
18783
18900
  vue.createElementVNode("textarea", {
@@ -18785,26 +18902,26 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18785
18902
  onInput: handleInput,
18786
18903
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
18787
18904
  placeholder: _ctx.placeholder
18788
- }, null, 42, _hoisted_3$l)
18789
- ], 10, _hoisted_1$s);
18905
+ }, null, 42, _hoisted_3$m)
18906
+ ], 10, _hoisted_1$t);
18790
18907
  };
18791
18908
  }
18792
18909
  });
18793
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-1fc4f739"]]);
18794
- const _hoisted_1$r = ["title"];
18795
- const _hoisted_2$o = { key: 0 };
18796
- const _hoisted_3$k = ["disabled"];
18797
- const _hoisted_4$a = ["onClick"];
18798
- const _hoisted_5$7 = {
18910
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-1fc4f739"]]);
18911
+ const _hoisted_1$s = ["title"];
18912
+ const _hoisted_2$p = { key: 0 };
18913
+ const _hoisted_3$l = ["disabled"];
18914
+ const _hoisted_4$c = ["onClick"];
18915
+ const _hoisted_5$8 = {
18799
18916
  key: 0,
18800
18917
  class: "option-label"
18801
18918
  };
18802
- const _hoisted_6$5 = {
18919
+ const _hoisted_6$6 = {
18803
18920
  key: 1,
18804
18921
  class: "option-label"
18805
18922
  };
18806
18923
  const _hoisted_7$2 = { class: "option-description" };
18807
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18924
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18808
18925
  __name: "LinkField",
18809
18926
  props: {
18810
18927
  description: { default: "" },
@@ -18928,7 +19045,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18928
19045
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
18929
19046
  title: _ctx.description
18930
19047
  }, [
18931
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$o, [
19048
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$p, [
18932
19049
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
18933
19050
  ])) : vue.createCommentVNode("", true),
18934
19051
  vue.withDirectives(vue.createElementVNode("input", {
@@ -18940,7 +19057,7 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18940
19057
  onFocus: initList,
18941
19058
  onInput: handleInput,
18942
19059
  disabled: !_ctx.editMode
18943
- }, null, 40, _hoisted_3$k), [
19060
+ }, null, 40, _hoisted_3$l), [
18944
19061
  [vue.vModelText, selectedItem.value]
18945
19062
  ]),
18946
19063
  vue.createElementVNode("div", {
@@ -18960,26 +19077,26 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18960
19077
  key: vue.unref(formatString)(option2.value, "pascal"),
18961
19078
  onClick: vue.withModifiers(($event) => handleSelect(option2), ["stop"])
18962
19079
  }, [
18963
- option2.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, [
19080
+ option2.label ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$8, [
18964
19081
  vue.createTextVNode(vue.toDisplayString(option2.label), 1),
18965
19082
  vue.createElementVNode("span", null, "ID: " + vue.toDisplayString(option2.value), 1)
18966
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$5, " ID: " + vue.toDisplayString(option2.value), 1)),
19083
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$6, " ID: " + vue.toDisplayString(option2.value), 1)),
18967
19084
  vue.createElementVNode("div", _hoisted_7$2, vue.toDisplayString(option2.description), 1)
18968
- ], 8, _hoisted_4$a);
19085
+ ], 8, _hoisted_4$c);
18969
19086
  }), 128))
18970
19087
  ], 2)
18971
19088
  ]))
18972
19089
  ], 2)
18973
- ], 10, _hoisted_1$r);
19090
+ ], 10, _hoisted_1$s);
18974
19091
  };
18975
19092
  }
18976
19093
  });
18977
- const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-947beb38"]]);
18978
- const _hoisted_1$q = ["title"];
18979
- const _hoisted_2$n = { key: 0 };
18980
- const _hoisted_3$j = { class: "password-input-wrap" };
18981
- const _hoisted_4$9 = ["value", "type", "placeholder"];
18982
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19094
+ const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-947beb38"]]);
19095
+ const _hoisted_1$r = ["title"];
19096
+ const _hoisted_2$o = { key: 0 };
19097
+ const _hoisted_3$k = { class: "password-input-wrap" };
19098
+ const _hoisted_4$b = ["value", "type", "placeholder"];
19099
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18983
19100
  __name: "PasswordInput",
18984
19101
  props: {
18985
19102
  description: { default: "" },
@@ -19013,31 +19130,31 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19013
19130
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
19014
19131
  title: _ctx.description
19015
19132
  }, [
19016
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$n, [
19133
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$o, [
19017
19134
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
19018
19135
  ])) : vue.createCommentVNode("", true),
19019
- vue.createElementVNode("div", _hoisted_3$j, [
19136
+ vue.createElementVNode("div", _hoisted_3$k, [
19020
19137
  vue.createElementVNode("input", {
19021
19138
  value: _ctx.modelValue,
19022
19139
  type: vue.unref(inputType),
19023
19140
  onInput: handleInput,
19024
19141
  placeholder: _ctx.placeholder,
19025
19142
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
19026
- }, null, 42, _hoisted_4$9),
19143
+ }, null, 42, _hoisted_4$b),
19027
19144
  vue.createElementVNode("div", {
19028
19145
  class: "icon-font password-icon",
19029
19146
  onMousedown: toggleInputType
19030
19147
  }, " visibility ", 32)
19031
19148
  ])
19032
- ], 10, _hoisted_1$q);
19149
+ ], 10, _hoisted_1$r);
19033
19150
  };
19034
19151
  }
19035
19152
  });
19036
- const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-525f5e2e"]]);
19037
- const _hoisted_1$p = ["title"];
19038
- const _hoisted_2$m = ["for"];
19039
- const _hoisted_3$i = ["id", "type", "placeholder", "required", "pattern"];
19040
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19153
+ const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-525f5e2e"]]);
19154
+ const _hoisted_1$q = ["title"];
19155
+ const _hoisted_2$n = ["for"];
19156
+ const _hoisted_3$j = ["id", "type", "placeholder", "required", "pattern"];
19157
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
19041
19158
  __name: "Password",
19042
19159
  props: {
19043
19160
  field: {},
@@ -19077,22 +19194,22 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19077
19194
  class: { "no-edit": !_ctx.editMode },
19078
19195
  required: _ctx.required,
19079
19196
  pattern: _ctx.pattern
19080
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$i), [
19197
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$j), [
19081
19198
  [vue.vModelDynamic, inputVal.value]
19082
19199
  ])
19083
- ], 8, _hoisted_2$m),
19084
- vue.createVNode(vue.unref(_sfc_main$T), {
19200
+ ], 8, _hoisted_2$n),
19201
+ vue.createVNode(vue.unref(_sfc_main$W), {
19085
19202
  onClick: showPassword,
19086
19203
  icon: vue.unref(seePassword) ? "visibility" : "visibility_off"
19087
19204
  }, null, 8, ["icon"])
19088
- ], 10, _hoisted_1$p)) : vue.createCommentVNode("", true);
19205
+ ], 10, _hoisted_1$q)) : vue.createCommentVNode("", true);
19089
19206
  };
19090
19207
  }
19091
19208
  });
19092
- const Password = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-800f4000"]]);
19093
- const _hoisted_1$o = ["title"];
19094
- const _hoisted_2$l = { key: 0 };
19095
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19209
+ const Password = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-800f4000"]]);
19210
+ const _hoisted_1$p = ["title"];
19211
+ const _hoisted_2$m = { key: 0 };
19212
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
19096
19213
  __name: "ReadOnlyInput",
19097
19214
  props: {
19098
19215
  field: {},
@@ -19105,49 +19222,33 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19105
19222
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
19106
19223
  title: _ctx.field.description
19107
19224
  }, [
19108
- _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$l, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
19225
+ _ctx.field.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$m, vue.toDisplayString(_ctx.field.label), 1)) : vue.createCommentVNode("", true),
19109
19226
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.modelValue), 1)
19110
- ], 10, _hoisted_1$o);
19227
+ ], 10, _hoisted_1$p);
19111
19228
  };
19112
19229
  }
19113
19230
  });
19114
- const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-b3b5a368"]]);
19115
- const _hoisted_1$n = ["title"];
19116
- const _hoisted_2$k = ["onClick"];
19117
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19231
+ const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b3b5a368"]]);
19232
+ const _hoisted_1$o = ["title"];
19233
+ const _hoisted_2$l = ["onClick"];
19234
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
19118
19235
  __name: "SelectField",
19119
19236
  props: {
19120
19237
  inputType: {},
19121
19238
  options: {},
19122
- id: {},
19123
- label: { default: "" },
19124
- placeholder: { default: "" },
19125
- required: { type: Boolean },
19126
- is_array: { type: Boolean },
19127
- can_add: { type: Boolean },
19128
- can_delete: { type: [Boolean, Function] },
19129
- allow_array_add: { type: Boolean },
19130
19239
  editMode: { type: Boolean, default: true },
19131
- description: { default: "" },
19132
- helpText: {},
19133
- currency: {},
19134
- refCollection: {},
19135
- refFields: {},
19136
- file_key: {},
19137
- fields: {},
19138
- pattern: {},
19139
- fieldClass: {},
19140
- link: {},
19141
19240
  field: {},
19142
19241
  modelValue: {},
19143
- small: { type: Boolean }
19242
+ small: { type: Boolean },
19243
+ label: { default: "" },
19244
+ description: { default: "" }
19144
19245
  },
19145
19246
  emits: ["update:modelValue", "selected"],
19146
19247
  setup(__props, { emit: __emit }) {
19147
19248
  vue.useCssVars((_ctx) => ({
19148
- "1c3856b2": left2.value,
19149
- "62aaf5e4": `${top2.value}px`,
19150
- "6b6f4c7b": width.value
19249
+ "530a7ef0": left2.value,
19250
+ "7d0177a2": `${top2.value}px`,
19251
+ "0ee22bfd": width.value
19151
19252
  }));
19152
19253
  const selectEl = vue.ref();
19153
19254
  const dropdown = vue.ref();
@@ -19246,7 +19347,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19246
19347
  for: "label",
19247
19348
  class: vue.normalizeClass({ active: showList.value })
19248
19349
  }, [
19249
- vue.createVNode(vue.unref(_sfc_main$V), { input: _ctx.label }, null, 8, ["input"])
19350
+ vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
19250
19351
  ], 2)) : vue.createCommentVNode("", true),
19251
19352
  vue.createElementVNode("div", {
19252
19353
  class: vue.normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -19258,7 +19359,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19258
19359
  class: vue.normalizeClass(["input", { active: showList.value }]),
19259
19360
  name: "select-input"
19260
19361
  }, [
19261
- vue.createVNode(vue.unref(_sfc_main$V), { input: displayValue.value }, null, 8, ["input"])
19362
+ vue.createVNode(vue.unref(_sfc_main$Y), { input: displayValue.value }, null, 8, ["input"])
19262
19363
  ], 2),
19263
19364
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "#app" }, [
19264
19365
  vue.createElementVNode("div", {
@@ -19271,23 +19372,23 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19271
19372
  key: option2.value,
19272
19373
  onClick: ($event) => handleSelect(option2)
19273
19374
  }, [
19274
- vue.createVNode(vue.unref(_sfc_main$V), {
19375
+ vue.createVNode(vue.unref(_sfc_main$Y), {
19275
19376
  input: option2.label
19276
19377
  }, null, 8, ["input"])
19277
- ], 8, _hoisted_2$k);
19378
+ ], 8, _hoisted_2$l);
19278
19379
  }), 128))
19279
19380
  ], 2)
19280
19381
  ]))
19281
19382
  ], 2)
19282
- ], 10, _hoisted_1$n);
19383
+ ], 10, _hoisted_1$o);
19283
19384
  };
19284
19385
  }
19285
19386
  });
19286
- const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-028ea61b"]]);
19287
- const _hoisted_1$m = ["title"];
19288
- const _hoisted_2$j = { key: 0 };
19289
- const _hoisted_3$h = ["value", "placeholder"];
19290
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
19387
+ const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-f2c5b9ca"]]);
19388
+ const _hoisted_1$n = ["title"];
19389
+ const _hoisted_2$k = { key: 0 };
19390
+ const _hoisted_3$i = ["value", "placeholder"];
19391
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19291
19392
  __name: "RichTextEditor",
19292
19393
  props: {
19293
19394
  description: { default: "" },
@@ -19310,7 +19411,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
19310
19411
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
19311
19412
  title: _ctx.description
19312
19413
  }, [
19313
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$j, [
19414
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$k, [
19314
19415
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
19315
19416
  ])) : vue.createCommentVNode("", true),
19316
19417
  vue.createElementVNode("textarea", {
@@ -19318,12 +19419,12 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
19318
19419
  onInput: handleInput,
19319
19420
  placeholder: _ctx.placeholder,
19320
19421
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
19321
- }, null, 42, _hoisted_3$h)
19322
- ], 10, _hoisted_1$m);
19422
+ }, null, 42, _hoisted_3$i)
19423
+ ], 10, _hoisted_1$n);
19323
19424
  };
19324
19425
  }
19325
19426
  });
19326
- const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-69a60381"]]);
19427
+ const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-69a60381"]]);
19327
19428
  /*!
19328
19429
  * vue-draggable-next v2.2.0
19329
19430
  * (c) 2023 Anish George
@@ -21846,13 +21947,13 @@ const VueDraggableNext = vue.defineComponent({
21846
21947
  }
21847
21948
  }
21848
21949
  });
21849
- const _hoisted_1$l = ["title"];
21850
- const _hoisted_2$i = { class: "bagel-input" };
21851
- const _hoisted_3$g = { class: "table-side-scroll" };
21852
- const _hoisted_4$8 = { class: "table-header" };
21853
- const _hoisted_5$6 = { class: "table-reorder" };
21854
- const _hoisted_6$4 = { class: "table-action" };
21855
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
21950
+ const _hoisted_1$m = ["title"];
21951
+ const _hoisted_2$j = { class: "bagel-input" };
21952
+ const _hoisted_3$h = { class: "table-side-scroll" };
21953
+ const _hoisted_4$a = { class: "table-header" };
21954
+ const _hoisted_5$7 = { class: "table-reorder" };
21955
+ const _hoisted_6$5 = { class: "table-action" };
21956
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
21856
21957
  __name: "TableField",
21857
21958
  props: {
21858
21959
  description: { default: "" },
@@ -21917,11 +22018,11 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
21917
22018
  class: "table-field-wrap",
21918
22019
  title: _ctx.description
21919
22020
  }, [
21920
- vue.createElementVNode("div", _hoisted_2$i, [
22021
+ vue.createElementVNode("div", _hoisted_2$j, [
21921
22022
  vue.createElementVNode("label", null, vue.toDisplayString((_a2 = vue.unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
21922
22023
  ]),
21923
- vue.createElementVNode("div", _hoisted_3$g, [
21924
- vue.createElementVNode("div", _hoisted_4$8, [
22024
+ vue.createElementVNode("div", _hoisted_3$h, [
22025
+ vue.createElementVNode("div", _hoisted_4$a, [
21925
22026
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
21926
22027
  return vue.openBlock(), vue.createElementBlock("div", {
21927
22028
  class: vue.normalizeClass(["header-col", vue.unref(formatString)(field.fieldtype, "pascal")]),
@@ -21948,8 +22049,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
21948
22049
  class: "flex table-row",
21949
22050
  key: row.id
21950
22051
  }, [
21951
- vue.createElementVNode("div", _hoisted_5$6, [
21952
- vue.createVNode(_sfc_main$q, { icon: "more_vert" })
22052
+ vue.createElementVNode("div", _hoisted_5$7, [
22053
+ vue.createVNode(_sfc_main$t, { icon: "more_vert" })
21953
22054
  ]),
21954
22055
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a3 = vue.unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
21955
22056
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -21965,8 +22066,8 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
21965
22066
  }, null, 8, ["field-meta", "bagel-app", "onUpdate:modelValue", "model-value"])
21966
22067
  ], 2);
21967
22068
  }), 128)),
21968
- vue.createElementVNode("div", _hoisted_6$4, [
21969
- vue.createVNode(_sfc_main$q, {
22069
+ vue.createElementVNode("div", _hoisted_6$5, [
22070
+ vue.createVNode(_sfc_main$t, {
21970
22071
  icon: "delete",
21971
22072
  onClick: ($event) => removeRow(index2)
21972
22073
  }, null, 8, ["onClick"])
@@ -21992,15 +22093,15 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
21992
22093
  ]),
21993
22094
  _: 1
21994
22095
  })
21995
- ], 8, _hoisted_1$l);
22096
+ ], 8, _hoisted_1$m);
21996
22097
  };
21997
22098
  }
21998
22099
  });
21999
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1d1376d2"]]);
22000
- const _hoisted_1$k = ["title"];
22001
- const _hoisted_2$h = { key: 0 };
22002
- const _hoisted_3$f = ["value", "title", "placeholder"];
22003
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
22100
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1d1376d2"]]);
22101
+ const _hoisted_1$l = ["title"];
22102
+ const _hoisted_2$i = { key: 0 };
22103
+ const _hoisted_3$g = ["value", "title", "placeholder"];
22104
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
22004
22105
  __name: "DurationInput",
22005
22106
  props: {
22006
22107
  description: { default: "" },
@@ -22027,7 +22128,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
22027
22128
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
22028
22129
  title: _ctx.description
22029
22130
  }, [
22030
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$h, [
22131
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$i, [
22031
22132
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
22032
22133
  ])) : vue.createCommentVNode("", true),
22033
22134
  vue.createElementVNode("input", {
@@ -22037,15 +22138,16 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
22037
22138
  onInput: handleInput,
22038
22139
  placeholder: _ctx.placeholder,
22039
22140
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
22040
- }, null, 42, _hoisted_3$f)
22041
- ], 10, _hoisted_1$k);
22141
+ }, null, 42, _hoisted_3$g)
22142
+ ], 10, _hoisted_1$l);
22042
22143
  };
22043
22144
  }
22044
22145
  });
22045
- const _hoisted_1$j = ["title"];
22046
- const _hoisted_2$g = ["for"];
22047
- const _hoisted_3$e = ["id", "type", "placeholder", "disabled", "required", "pattern"];
22048
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22146
+ const _hoisted_1$k = ["title"];
22147
+ const _hoisted_2$h = ["for"];
22148
+ const _hoisted_3$f = ["autocomplete", "id", "type", "placeholder", "disabled", "required", "pattern"];
22149
+ const _hoisted_4$9 = ["id", "type", "rows", "placeholder", "disabled", "required", "pattern"];
22150
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
22049
22151
  __name: "TextInput",
22050
22152
  props: {
22051
22153
  id: {},
@@ -22061,7 +22163,12 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22061
22163
  type: { default: "text" },
22062
22164
  nativeInputAttrs: {},
22063
22165
  icon: {},
22064
- iconStart: {}
22166
+ iconStart: {},
22167
+ multiline: { type: Boolean },
22168
+ autoheight: { type: Boolean },
22169
+ code: { type: Boolean },
22170
+ lines: {},
22171
+ autocomplete: { default: "off" }
22065
22172
  },
22066
22173
  emits: ["update:modelValue", "debounce"],
22067
22174
  setup(__props, { emit: __emit }) {
@@ -22083,6 +22190,16 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22083
22190
  }, 10);
22084
22191
  }
22085
22192
  };
22193
+ const rows = vue.computed(() => {
22194
+ var _a2;
22195
+ if (props2.lines)
22196
+ return props2.lines;
22197
+ if (props2.autoheight)
22198
+ return ((_a2 = `${inputVal.value}`) == null ? void 0 : _a2.split("\n").length) || 1;
22199
+ if (props2.multiline || props2.code)
22200
+ return 4;
22201
+ return 1;
22202
+ });
22086
22203
  vue.watch(
22087
22204
  () => inputVal.value,
22088
22205
  (newVal) => {
@@ -22104,34 +22221,48 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22104
22221
  );
22105
22222
  return (_ctx, _cache) => {
22106
22223
  return vue.openBlock(), vue.createElementBlock("div", {
22107
- class: vue.normalizeClass(["bagel-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: vue.unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart }]),
22224
+ class: vue.normalizeClass(["bagel-input text-input", { small: _ctx.small, shrink: _ctx.shrink, toggleEdit: _ctx.toggleEdit, editMode: vue.unref(editMode), textInputIconWrap: _ctx.icon, txtInputIconStart: _ctx.iconStart, code: _ctx.code }]),
22108
22225
  title: _ctx.title
22109
22226
  }, [
22110
22227
  vue.createElementVNode("label", { for: _ctx.id }, [
22111
22228
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
22112
- vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
22229
+ !_ctx.multiline && !_ctx.autoheight && !_ctx.code ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
22230
+ key: 0,
22231
+ autocomplete: _ctx.autocomplete,
22113
22232
  id: _ctx.id,
22114
22233
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
22115
22234
  type: _ctx.type,
22235
+ rows: 1,
22116
22236
  ref_key: "input",
22117
22237
  ref: input2,
22118
22238
  placeholder: _ctx.placeholder || _ctx.label,
22119
22239
  disabled: !vue.unref(editMode),
22120
22240
  required: _ctx.required,
22121
22241
  pattern: _ctx.pattern
22122
- }, _ctx.nativeInputAttrs, {
22123
- onDblclick: toggleEditAction,
22124
- onKeydown: vue.withKeys(toggleEditAction, ["enter"])
22125
- }), null, 16, _hoisted_3$e), [
22242
+ }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_3$f)), [
22126
22243
  [vue.vModelDynamic, vue.unref(inputVal)]
22244
+ ]) : vue.withDirectives((vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
22245
+ key: 1,
22246
+ id: _ctx.id,
22247
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
22248
+ type: _ctx.type,
22249
+ rows: rows.value,
22250
+ ref_key: "input",
22251
+ ref: input2,
22252
+ placeholder: _ctx.placeholder || _ctx.label,
22253
+ disabled: !vue.unref(editMode),
22254
+ required: _ctx.required,
22255
+ pattern: _ctx.pattern
22256
+ }, _ctx.nativeInputAttrs, { onDblclick: toggleEditAction }), null, 16, _hoisted_4$9)), [
22257
+ [vue.vModelText, vue.unref(inputVal)]
22127
22258
  ])
22128
- ], 8, _hoisted_2$g),
22129
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
22259
+ ], 8, _hoisted_2$h),
22260
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
22130
22261
  key: 0,
22131
22262
  class: "iconStart",
22132
22263
  icon: _ctx.iconStart
22133
22264
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
22134
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
22265
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$W), {
22135
22266
  key: 1,
22136
22267
  icon: _ctx.icon
22137
22268
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -22143,19 +22274,19 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22143
22274
  icon: vue.unref(editMode) ? "check" : "edit",
22144
22275
  flat: ""
22145
22276
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
22146
- ], 10, _hoisted_1$j);
22277
+ ], 10, _hoisted_1$k);
22147
22278
  };
22148
22279
  }
22149
22280
  });
22150
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-1502ca60"]]);
22151
- const _hoisted_1$i = ["title"];
22152
- const _hoisted_2$f = { key: 0 };
22153
- const _hoisted_3$d = {
22281
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-9f24ba22"]]);
22282
+ const _hoisted_1$j = ["title"];
22283
+ const _hoisted_2$g = { key: 0 };
22284
+ const _hoisted_3$e = {
22154
22285
  key: 1,
22155
22286
  class: "character-limit"
22156
22287
  };
22157
- const _hoisted_4$7 = ["value"];
22158
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
22288
+ const _hoisted_4$8 = ["value"];
22289
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
22159
22290
  __name: "TextArea",
22160
22291
  props: {
22161
22292
  description: { default: "" },
@@ -22180,24 +22311,24 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
22180
22311
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
22181
22312
  title: _ctx.description
22182
22313
  }, [
22183
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$f, [
22184
- vue.createVNode(vue.unref(_sfc_main$V), { input: _ctx.label }, null, 8, ["input"])
22314
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$g, [
22315
+ vue.createVNode(vue.unref(_sfc_main$Y), { input: _ctx.label }, null, 8, ["input"])
22185
22316
  ])) : vue.createCommentVNode("", true),
22186
- _ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$d, vue.toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
22317
+ _ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$e, vue.toDisplayString((_a2 = _ctx.modelValue) == null ? void 0 : _a2.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
22187
22318
  vue.createElementVNode("textarea", vue.mergeProps({
22188
22319
  value: _ctx.modelValue,
22189
22320
  onInput: handleInput,
22190
22321
  class: { "no-edit": !_ctx.editMode }
22191
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$7)
22192
- ], 10, _hoisted_1$i);
22322
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_4$8)
22323
+ ], 10, _hoisted_1$j);
22193
22324
  };
22194
22325
  }
22195
22326
  });
22196
- const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-a5b28c58"]]);
22197
- const _hoisted_1$h = ["title"];
22198
- const _hoisted_2$e = ["for"];
22199
- const _hoisted_3$c = ["id", "placeholder", "required"];
22200
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
22327
+ const TextArea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-a5b28c58"]]);
22328
+ const _hoisted_1$i = ["title"];
22329
+ const _hoisted_2$f = ["for"];
22330
+ const _hoisted_3$d = ["id", "placeholder", "required"];
22331
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
22201
22332
  __name: "ColorPicker",
22202
22333
  props: {
22203
22334
  field: {},
@@ -22234,19 +22365,19 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
22234
22365
  placeholder: ((_a2 = _ctx.field) == null ? void 0 : _a2.placeholder) || _ctx.field.label,
22235
22366
  class: { "no-edit": !_ctx.editMode },
22236
22367
  required: _ctx.required
22237
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$c), [
22368
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$d), [
22238
22369
  [vue.vModelText, inputVal.value]
22239
22370
  ])
22240
- ], 8, _hoisted_2$e)
22241
- ], 10, _hoisted_1$h)) : vue.createCommentVNode("", true);
22371
+ ], 8, _hoisted_2$f)
22372
+ ], 10, _hoisted_1$i)) : vue.createCommentVNode("", true);
22242
22373
  };
22243
22374
  }
22244
22375
  });
22245
- const _hoisted_1$g = { key: 0 };
22246
- const _hoisted_2$d = ["disabled"];
22247
- const _hoisted_3$b = { class: "custom-select-drop" };
22248
- const _hoisted_4$6 = ["onClick"];
22249
- const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22376
+ const _hoisted_1$h = { key: 0 };
22377
+ const _hoisted_2$e = ["disabled"];
22378
+ const _hoisted_3$c = { class: "custom-select-drop" };
22379
+ const _hoisted_4$7 = ["onClick"];
22380
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
22250
22381
  __name: "DynamicLinkField",
22251
22382
  props: {
22252
22383
  label: { default: "" },
@@ -22322,7 +22453,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22322
22453
  return vue.openBlock(), vue.createElementBlock("div", {
22323
22454
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }])
22324
22455
  }, [
22325
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$g, [
22456
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_1$h, [
22326
22457
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
22327
22458
  ])) : vue.createCommentVNode("", true),
22328
22459
  vue.withDirectives(vue.createElementVNode("input", {
@@ -22334,19 +22465,19 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22334
22465
  onFocus: initList,
22335
22466
  onInput: handleInput,
22336
22467
  disabled: !_ctx.editMode
22337
- }, null, 40, _hoisted_2$d), [
22468
+ }, null, 40, _hoisted_2$e), [
22338
22469
  [vue.vModelText, selectedItem.value]
22339
22470
  ]),
22340
22471
  vue.createElementVNode("div", {
22341
22472
  class: vue.normalizeClass(["custom-select", { "open-select": showList.value && linkOptions.value.length > 0 }]),
22342
22473
  name: "link-input"
22343
22474
  }, [
22344
- vue.createElementVNode("div", _hoisted_3$b, [
22475
+ vue.createElementVNode("div", _hoisted_3$c, [
22345
22476
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(linkOptions.value, (item2) => {
22346
22477
  return vue.openBlock(), vue.createElementBlock("div", {
22347
22478
  key: vue.unref(formatString)(item2.value, "pascal"),
22348
22479
  onClick: vue.withModifiers(($event) => handleSelect(item2), ["stop"])
22349
- }, vue.toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$6);
22480
+ }, vue.toDisplayString(_ctx.useId || _ctx.entity === "Entity" ? item2.value : item2.label || item2.description || item2.value), 9, _hoisted_4$7);
22350
22481
  }), 128))
22351
22482
  ])
22352
22483
  ], 2)
@@ -22354,10 +22485,10 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22354
22485
  };
22355
22486
  }
22356
22487
  });
22357
- const _hoisted_1$f = ["title"];
22358
- const _hoisted_2$c = ["for"];
22359
- const _hoisted_3$a = ["id", "placeholder", "required", "pattern"];
22360
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
22488
+ const _hoisted_1$g = ["title"];
22489
+ const _hoisted_2$d = ["for"];
22490
+ const _hoisted_3$b = ["id", "placeholder", "required", "pattern"];
22491
+ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22361
22492
  __name: "PlainText",
22362
22493
  props: {
22363
22494
  field: {},
@@ -22403,15 +22534,15 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
22403
22534
  class: { "no-edit": !_ctx.editMode },
22404
22535
  required: _ctx.required,
22405
22536
  pattern: _ctx.pattern
22406
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$a), [
22537
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$b), [
22407
22538
  [vue.vModelText, vue.unref(inputVal)]
22408
22539
  ])
22409
- ], 8, _hoisted_2$c)
22410
- ], 10, _hoisted_1$f)) : vue.createCommentVNode("", true);
22540
+ ], 8, _hoisted_2$d)
22541
+ ], 10, _hoisted_1$g)) : vue.createCommentVNode("", true);
22411
22542
  };
22412
22543
  }
22413
22544
  });
22414
- const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-188270a2"]]);
22545
+ const PlainText = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-188270a2"]]);
22415
22546
  function _typeof(o) {
22416
22547
  "@babel/helpers - typeof";
22417
22548
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -31788,15 +31919,15 @@ const vl = ({
31788
31919
  Object.entries(Ro).forEach(([e3, t4]) => {
31789
31920
  e3 !== "default" && (ja[e3] = t4);
31790
31921
  });
31791
- const _hoisted_1$e = { class: "datetime-wrap" };
31792
- const _hoisted_2$b = { class: "date-wrap" };
31793
- const _hoisted_3$9 = {
31922
+ const _hoisted_1$f = { class: "datetime-wrap" };
31923
+ const _hoisted_2$c = { class: "date-wrap" };
31924
+ const _hoisted_3$a = {
31794
31925
  key: 0,
31795
31926
  class: "time-wrap"
31796
31927
  };
31797
- const _hoisted_4$5 = ["id", "name", "value"];
31798
- const _hoisted_5$5 = ["for"];
31799
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31928
+ const _hoisted_4$6 = ["id", "name", "value"];
31929
+ const _hoisted_5$6 = ["for"];
31930
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
31800
31931
  __name: "DatePicker",
31801
31932
  props: {
31802
31933
  name: {},
@@ -31812,8 +31943,8 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31812
31943
  return `${hour}:${minute}`;
31813
31944
  });
31814
31945
  return (_ctx, _cache) => {
31815
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
31816
- vue.createElementVNode("div", _hoisted_2$b, [
31946
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$f, [
31947
+ vue.createElementVNode("div", _hoisted_2$c, [
31817
31948
  vue.createVNode(vue.unref(ja), vue.mergeProps({
31818
31949
  inline: "",
31819
31950
  "week-start": "0",
@@ -31828,7 +31959,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31828
31959
  _: 1
31829
31960
  }, 16, ["modelValue"])
31830
31961
  ]),
31831
- _ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, [
31962
+ _ctx.showTimeWrap ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$a, [
31832
31963
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(hours), (hr2) => {
31833
31964
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: hr2 }, [
31834
31965
  vue.withDirectives(vue.createElementVNode("input", {
@@ -31837,12 +31968,12 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31837
31968
  name: _ctx.name,
31838
31969
  value: hr2,
31839
31970
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => selectedHour.value = $event)
31840
- }, null, 8, _hoisted_4$5), [
31971
+ }, null, 8, _hoisted_4$6), [
31841
31972
  [vue.vModelRadio, selectedHour.value]
31842
31973
  ]),
31843
31974
  vue.createElementVNode("label", {
31844
31975
  for: `${hr2}_${_ctx.name}`
31845
- }, vue.toDisplayString(hr2), 9, _hoisted_5$5)
31976
+ }, vue.toDisplayString(hr2), 9, _hoisted_5$6)
31846
31977
  ], 64);
31847
31978
  }), 128))
31848
31979
  ])) : vue.createCommentVNode("", true)
@@ -31850,10 +31981,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31850
31981
  };
31851
31982
  }
31852
31983
  });
31853
- const _hoisted_1$d = { class: "flex gap-2 flex-wrap" };
31854
- const _hoisted_2$a = ["id", "name", "value", "checked"];
31855
- const _hoisted_3$8 = ["for"];
31856
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
31984
+ const _hoisted_1$e = { class: "flex gap-2 flex-wrap" };
31985
+ const _hoisted_2$b = ["id", "name", "value", "checked"];
31986
+ const _hoisted_3$9 = ["for"];
31987
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
31857
31988
  __name: "RadioPillsInput",
31858
31989
  props: {
31859
31990
  options: {},
@@ -31891,7 +32022,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
31891
32022
  selectedValue.value = props2.modelValue;
31892
32023
  });
31893
32024
  return (_ctx, _cache) => {
31894
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
32025
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
31895
32026
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(cumputedOptions.value, ({ id, label: label2, value }, index2) => {
31896
32027
  return vue.openBlock(), vue.createElementBlock("div", {
31897
32028
  class: "radio-pill",
@@ -31904,15 +32035,120 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
31904
32035
  value,
31905
32036
  checked: vue.unref(selectedValue) === value,
31906
32037
  onChange: handleSelect
31907
- }, null, 40, _hoisted_2$a),
31908
- vue.createElementVNode("label", { for: id }, vue.toDisplayString(label2), 9, _hoisted_3$8)
32038
+ }, null, 40, _hoisted_2$b),
32039
+ vue.createElementVNode("label", { for: id }, vue.toDisplayString(label2), 9, _hoisted_3$9)
31909
32040
  ]);
31910
32041
  }), 128))
31911
32042
  ]);
31912
32043
  };
31913
32044
  }
31914
32045
  });
31915
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-97e3ba8c"]]);
32046
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-97e3ba8c"]]);
32047
+ const _hoisted_1$d = { class: "bagel-input" };
32048
+ const _hoisted_2$a = { key: 0 };
32049
+ const _hoisted_3$8 = { class: "imagePreviewWrap" };
32050
+ const _hoisted_4$5 = ["src"];
32051
+ const _hoisted_5$5 = { class: "previewName" };
32052
+ const _hoisted_6$4 = { class: "no-margin" };
32053
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
32054
+ __name: "FileUpload",
32055
+ props: {
32056
+ label: {},
32057
+ multiple: { type: Boolean }
32058
+ },
32059
+ setup(__props) {
32060
+ const props2 = __props;
32061
+ const files = vue.ref([]);
32062
+ const fileQueue = vue.ref([]);
32063
+ let isDragOver = vue.ref(false);
32064
+ const preventDefault = (e3) => {
32065
+ e3.preventDefault();
32066
+ e3.stopPropagation();
32067
+ };
32068
+ const fileToUrl = (file) => URL.createObjectURL(file);
32069
+ const removeFile = (file) => {
32070
+ const index2 = files.value.indexOf(file);
32071
+ files.value.splice(index2, 1);
32072
+ };
32073
+ const flushQueue = () => {
32074
+ fileQueue.value.forEach((file, i3) => {
32075
+ if (props2.multiple) {
32076
+ if (!files.value.includes(file))
32077
+ files.value.push(file);
32078
+ } else
32079
+ files.value.splice(0, 1, file);
32080
+ console.log(files.value);
32081
+ fileQueue.value.splice(i3, 1);
32082
+ });
32083
+ };
32084
+ const browse = () => {
32085
+ const input2 = document.createElement("input");
32086
+ input2.type = "file";
32087
+ input2.multiple = props2.multiple;
32088
+ input2.onchange = (e3) => {
32089
+ const target = e3 == null ? void 0 : e3.target;
32090
+ if (target == null ? void 0 : target.files)
32091
+ fileQueue.value.push(...Array.from(target.files));
32092
+ flushQueue();
32093
+ };
32094
+ input2.click();
32095
+ };
32096
+ const dragleave = (e3) => {
32097
+ preventDefault(e3);
32098
+ if (e3.dataTransfer)
32099
+ isDragOver.value = false;
32100
+ else
32101
+ isDragOver.value = false;
32102
+ };
32103
+ const dragenter = (e3) => {
32104
+ preventDefault(e3);
32105
+ if (e3.dataTransfer)
32106
+ isDragOver.value = true;
32107
+ else
32108
+ isDragOver.value = false;
32109
+ };
32110
+ const drop3 = (e3) => {
32111
+ preventDefault(e3);
32112
+ if (e3.dataTransfer)
32113
+ fileQueue.value.push(...Array.from(e3.dataTransfer.files));
32114
+ isDragOver.value = false;
32115
+ flushQueue();
32116
+ };
32117
+ return (_ctx, _cache) => {
32118
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
32119
+ vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
32120
+ vue.createElementVNode("div", {
32121
+ onClick: browse,
32122
+ onDragover: dragenter,
32123
+ onDrop: drop3,
32124
+ onDragleave: dragleave,
32125
+ class: vue.normalizeClass(["fileUploadWrap", { fileDropZone: !files.value.length, dragover: vue.unref(isDragOver) }])
32126
+ }, [
32127
+ files.value.length && !_ctx.multiple ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$a, [
32128
+ vue.createElementVNode("div", _hoisted_3$8, [
32129
+ vue.createElementVNode("img", {
32130
+ class: "preview",
32131
+ src: fileToUrl(files.value[0]),
32132
+ alt: ""
32133
+ }, null, 8, _hoisted_4$5)
32134
+ ]),
32135
+ vue.createElementVNode("div", _hoisted_5$5, [
32136
+ vue.createElementVNode("p", _hoisted_6$4, vue.toDisplayString(files.value[0].name), 1),
32137
+ vue.createVNode(vue.unref(Btn), {
32138
+ thin: "",
32139
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => removeFile(files.value[0]), ["stop"])),
32140
+ flat: "",
32141
+ icon: "delete",
32142
+ color: "red"
32143
+ })
32144
+ ])
32145
+ ])) : vue.createCommentVNode("", true)
32146
+ ], 34)
32147
+ ]);
32148
+ };
32149
+ }
32150
+ });
32151
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-352399c0"]]);
31916
32152
  function _isPlaceholder(a3) {
31917
32153
  return a3 != null && typeof a3 === "object" && a3["@@functional/placeholder"] === true;
31918
32154
  }
@@ -38370,7 +38606,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38370
38606
  return (_ctx, _cache) => {
38371
38607
  var _a2, _b, _c, _d, _e2, _f;
38372
38608
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
38373
- vue.createVNode(vue.unref(_sfc_main$K), null, {
38609
+ vue.createVNode(vue.unref(_sfc_main$N), null, {
38374
38610
  default: vue.withCtx(() => [
38375
38611
  vue.createTextVNode("Whatsapp Template")
38376
38612
  ]),
@@ -38379,7 +38615,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
38379
38615
  vue.createElementVNode("div", _hoisted_2, [
38380
38616
  vue.createElementVNode("div", _hoisted_3, [
38381
38617
  vue.createElementVNode("div", _hoisted_4, [
38382
- vue.createVNode(vue.unref(_sfc_main$I), {
38618
+ vue.createVNode(vue.unref(_sfc_main$L), {
38383
38619
  schema: _ctx.whatsappTemplateSchema(),
38384
38620
  modelValue: vue.unref(localWhatsappData),
38385
38621
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
@@ -38407,49 +38643,52 @@ exports.AddressInput = AddressInput;
38407
38643
  exports.BagelVue = BagelVue;
38408
38644
  exports.BankDetailsInput = BankDetailsInput;
38409
38645
  exports.BarChart = BarChart;
38646
+ exports.BglField = _sfc_main$q;
38647
+ exports.BglForm = _sfc_main$r;
38410
38648
  exports.Btn = Btn;
38411
38649
  exports.CheckInput = CheckInput;
38412
38650
  exports.Checkbox = Checkbox;
38413
- exports.ColorPicker = _sfc_main$6;
38651
+ exports.ColorPicker = _sfc_main$7;
38414
38652
  exports.Comments = Comments;
38415
38653
  exports.ContactArrayInput = ContactArrayInput;
38416
- exports.ContactSubmissions = _sfc_main$E;
38654
+ exports.ContactSubmissions = _sfc_main$H;
38417
38655
  exports.CurrencyInput = CurrencyInput;
38418
38656
  exports.DataPreview = DataPreview;
38419
38657
  exports.DateInput = DateInput;
38420
- exports.DatePicker = _sfc_main$3;
38421
- exports.DatetimeInput = _sfc_main$l;
38422
- exports.DropDown = _sfc_main$P;
38423
- exports.DurationInput = _sfc_main$9;
38424
- exports.DynamicLinkField = _sfc_main$5;
38658
+ exports.DatePicker = _sfc_main$4;
38659
+ exports.DatetimeInput = _sfc_main$m;
38660
+ exports.DropDown = _sfc_main$S;
38661
+ exports.DurationInput = _sfc_main$a;
38662
+ exports.DynamicLinkField = _sfc_main$6;
38425
38663
  exports.EmailInput = EmailInput;
38664
+ exports.FileUpload = FileUpload;
38426
38665
  exports.FileUploadInput = FileUploadInput;
38427
- exports.FileUploader = _sfc_main$u;
38428
- exports.FloatInput = _sfc_main$j;
38429
- exports.FormSchema = _sfc_main$I;
38430
- exports.IntInput = _sfc_main$i;
38431
- exports.ItemRef = _sfc_main$r;
38666
+ exports.FileUploader = _sfc_main$x;
38667
+ exports.FloatInput = _sfc_main$k;
38668
+ exports.FormSchema = _sfc_main$L;
38669
+ exports.IntInput = _sfc_main$j;
38670
+ exports.ItemRef = _sfc_main$u;
38432
38671
  exports.JSONInput = JSONInput;
38433
- exports.LangText = _sfc_main$V;
38672
+ exports.LangText = _sfc_main$Y;
38434
38673
  exports.Lineart = _sfc_main$1;
38435
38674
  exports.LinkField = LinkField;
38436
- exports.ListItem = _sfc_main$N;
38437
- exports.ListView = _sfc_main$O;
38438
- exports.MaterialIcon = _sfc_main$T;
38675
+ exports.ListItem = _sfc_main$Q;
38676
+ exports.ListView = _sfc_main$R;
38677
+ exports.MaterialIcon = _sfc_main$W;
38439
38678
  exports.MiscFieldsInput = MiscFieldsInput;
38440
- exports.Modal = _sfc_main$Q;
38679
+ exports.Modal = _sfc_main$T;
38441
38680
  exports.ModalForm = ModalForm;
38442
38681
  exports.ModalPlugin = ModalPlugin;
38443
38682
  exports.MsgTemplate = MsgTemplate;
38444
- exports.NavBar = _sfc_main$S;
38445
- exports.PageTitle = _sfc_main$K;
38683
+ exports.NavBar = _sfc_main$V;
38684
+ exports.PageTitle = _sfc_main$N;
38446
38685
  exports.Password = Password;
38447
38686
  exports.PasswordInput = PasswordInput;
38448
- exports.PersonPreview = _sfc_main$D;
38687
+ exports.PersonPreview = _sfc_main$G;
38449
38688
  exports.PersonPreviewInput = PersonPreviewInput;
38450
- exports.PlainInputField = _sfc_main$p;
38689
+ exports.PlainInputField = _sfc_main$s;
38451
38690
  exports.PlainText = PlainText;
38452
- exports.RTXEditor = _sfc_main$U;
38691
+ exports.RTXEditor = _sfc_main$X;
38453
38692
  exports.RadioPillsInput = RadioPillsInput;
38454
38693
  exports.ReadOnlyInput = ReadOnlyInput;
38455
38694
  exports.RichTextEditor = RichTextEditor;
@@ -38460,12 +38699,12 @@ exports.TableField = TableField;
38460
38699
  exports.TableSchema = TableSchema;
38461
38700
  exports.TextArea = TextArea;
38462
38701
  exports.TextInput = TextInput;
38463
- exports.TextVariableExamples = _sfc_main$s;
38702
+ exports.TextVariableExamples = _sfc_main$v;
38464
38703
  exports.TextVariablesInput = TextVariablesInput;
38465
38704
  exports.ToggleSwitchInput = ToggleSwitchInput;
38466
38705
  exports.TopBar = TopBar;
38467
38706
  exports.bagelInjectionKey = bagelInjectionKey;
38468
- exports.computeFields = computeFields;
38707
+ exports.bindAttrs = bindAttrs;
38469
38708
  exports.copyText = copyText;
38470
38709
  exports.debounce = debounce;
38471
38710
  exports.formatString = formatString;