@bagelink/vue 0.0.93 → 0.0.98

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 (100) hide show
  1. package/dist/components/Btn.vue.d.ts +31 -31
  2. package/dist/components/DataPreview.vue.d.ts +4 -4
  3. package/dist/components/DropDown.vue.d.ts +1 -1
  4. package/dist/components/FormSchema.vue.d.ts +4 -4
  5. package/dist/components/ListItem.vue.d.ts +2 -2
  6. package/dist/components/ListView.vue.d.ts +3 -3
  7. package/dist/components/MaterialIcon.vue.d.ts +3 -3
  8. package/dist/components/Modal.vue.d.ts +9 -10
  9. package/dist/components/ModalForm.vue.d.ts +17 -18
  10. package/dist/components/NavBar.vue.d.ts +11 -11
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts +2 -2
  12. package/dist/components/RTXEditor.vue.d.ts +5 -5
  13. package/dist/components/TabbedLayout.vue.d.ts +5 -5
  14. package/dist/components/TableSchema.vue.d.ts +3 -3
  15. package/dist/components/charts/BarChart.vue.d.ts +6 -6
  16. package/dist/components/form/MaterialIcon.vue.d.ts +3 -3
  17. package/dist/components/form/inputs/CheckInput.vue.d.ts +6 -6
  18. package/dist/components/form/inputs/Checkbox.vue.d.ts +1 -1
  19. package/dist/components/form/inputs/CurrencyInput.vue.d.ts +8 -8
  20. package/dist/components/form/inputs/DateInput.vue.d.ts +6 -6
  21. package/dist/components/form/inputs/DatetimeInput.vue.d.ts +11 -11
  22. package/dist/components/form/inputs/DurationInput.vue.d.ts +11 -11
  23. package/dist/components/form/inputs/EmailInput.vue.d.ts +11 -11
  24. package/dist/components/form/inputs/FloatInput.vue.d.ts +11 -11
  25. package/dist/components/form/inputs/IntInput.vue.d.ts +11 -11
  26. package/dist/components/form/inputs/JSONInput.vue.d.ts +11 -11
  27. package/dist/components/form/inputs/LinkField.vue.d.ts +13 -13
  28. package/dist/components/form/inputs/Password.vue.d.ts +12 -12
  29. package/dist/components/form/inputs/PasswordInput.vue.d.ts +11 -11
  30. package/dist/components/form/inputs/ReadOnlyInput.vue.d.ts +3 -3
  31. package/dist/components/form/inputs/RichTextEditor.vue.d.ts +11 -11
  32. package/dist/components/form/inputs/SelectField.vue.d.ts +7 -7
  33. package/dist/components/form/inputs/TableField.vue.d.ts +5 -5
  34. package/dist/components/form/inputs/TextInput.vue.d.ts +22 -22
  35. package/dist/components/formkit/index.d.ts +2 -2
  36. package/dist/components/index.d.ts +1 -0
  37. package/dist/index.cjs +318 -304
  38. package/dist/index.d.ts +1 -0
  39. package/dist/index.mjs +318 -304
  40. package/dist/plugins/modal.d.ts +3 -1
  41. package/dist/style.css +246 -244
  42. package/dist/types/BtnOptions.d.ts +1 -1
  43. package/dist/types/index.d.ts +2 -1
  44. package/dist/types/materialIcons.d.ts +1 -0
  45. package/dist/utils/index.d.ts +3 -2
  46. package/dist/utils/objects.d.ts +1 -1
  47. package/package.json +45 -18
  48. package/src/components/Btn.vue +4 -3
  49. package/src/components/Comments.vue +2 -2
  50. package/src/components/ContactArray.vue +2 -2
  51. package/src/components/ContactSubmissions.vue +2 -2
  52. package/src/components/DataPreview.vue +1 -1
  53. package/src/components/DropDown.vue +3 -2
  54. package/src/components/FileUploader.vue +1 -1
  55. package/src/components/FormKitTable.vue +1 -2
  56. package/src/components/FormSchema.vue +2 -2
  57. package/src/components/ListView.vue +1 -2
  58. package/src/components/MaterialIcon.vue +1 -1
  59. package/src/components/Modal.vue +2 -2
  60. package/src/components/ModalForm.vue +2 -3
  61. package/src/components/NavBar.vue +2 -2
  62. package/src/components/PersonPreview.vue +3 -4
  63. package/src/components/PersonPreviewFormkit.vue +3 -4
  64. package/src/components/RouterWrapper.vue +0 -2
  65. package/src/components/TableSchema.vue +1 -2
  66. package/src/components/form/ItemRef.vue +5 -6
  67. package/src/components/form/MaterialIcon.vue +1 -1
  68. package/src/components/form/PlainInputField.vue +2 -2
  69. package/src/components/form/inputs/CheckInput.vue +1 -1
  70. package/src/components/form/inputs/Checkbox.vue +1 -1
  71. package/src/components/form/inputs/ColorPicker.vue +1 -1
  72. package/src/components/form/inputs/CurrencyInput.vue +1 -1
  73. package/src/components/form/inputs/DateInput.vue +1 -1
  74. package/src/components/form/inputs/DynamicLinkField.vue +2 -1
  75. package/src/components/form/inputs/LinkField.vue +1 -1
  76. package/src/components/form/inputs/Password.vue +2 -3
  77. package/src/components/form/inputs/PlainText.vue +1 -1
  78. package/src/components/form/inputs/ReadOnlyInput.vue +1 -1
  79. package/src/components/form/inputs/SelectField.vue +2 -2
  80. package/src/components/form/inputs/TableField.vue +3 -5
  81. package/src/components/form/inputs/TextArea.vue +1 -1
  82. package/src/components/form/inputs/TextInput.vue +1 -1
  83. package/src/components/formkit/AddressArray.vue +3 -3
  84. package/src/components/formkit/BankDetailsArray.vue +2 -3
  85. package/src/components/formkit/ContactArrayFormKit.vue +3 -3
  86. package/src/components/formkit/FileUploader.vue +2 -2
  87. package/src/components/formkit/MiscFields.vue +1 -1
  88. package/src/components/formkit/index.ts +3 -3
  89. package/src/components/index.ts +1 -0
  90. package/src/components/whatsapp/form/MsgTemplate.vue +1 -2
  91. package/src/components/whatsapp/form/TextVariableExamples.vue +1 -1
  92. package/src/index.ts +1 -0
  93. package/src/plugins/modal.ts +3 -3
  94. package/src/types/BtnOptions.ts +1 -1
  95. package/src/types/index.ts +2 -1
  96. package/src/utils/index.ts +3 -1
  97. package/src/utils/objects.ts +1 -1
  98. package/tsconfig.json +43 -28
  99. package/vite.config.ts +1 -1
  100. /package/src/types/{materialIcons.d.ts → materialIcons.ts} +0 -0
package/dist/index.cjs CHANGED
@@ -1,9 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
+ __proto__: null,
5
+ get default() {
6
+ return _sfc_main$F;
7
+ }
8
+ }, Symbol.toStringTag, { value: "Module" }));
9
+ const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
+ __proto__: null,
11
+ get default() {
12
+ return ModalForm;
13
+ }
14
+ }, Symbol.toStringTag, { value: "Module" }));
3
15
  const FormSchema = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4
16
  __proto__: null,
5
17
  get default() {
6
- return _sfc_main$v;
18
+ return _sfc_main$u;
7
19
  }
8
20
  }, Symbol.toStringTag, { value: "Module" }));
9
21
  function makeMap(str, expectsLowerCase) {
@@ -6793,6 +6805,136 @@ const BagelVue = {
6793
6805
  app.provide(bagelInjectionKey, bagel);
6794
6806
  }
6795
6807
  };
6808
+ const ModalSymbol = Symbol("modal");
6809
+ const useModal = () => {
6810
+ const modalApi = inject(ModalSymbol);
6811
+ if (!modalApi)
6812
+ throw new Error("Modal API not provided");
6813
+ return modalApi;
6814
+ };
6815
+ const ModalPlugin = {
6816
+ install: (app) => {
6817
+ const modalStack = ref([]);
6818
+ const showModal = (isForm, options, slots = {}) => {
6819
+ modalStack.value.push({
6820
+ modalOptions: options,
6821
+ isModalForm: isForm,
6822
+ componentSlots: slots
6823
+ });
6824
+ };
6825
+ const hideModal = (index2) => {
6826
+ modalStack.value.splice(index2, 1);
6827
+ };
6828
+ app.provide(ModalSymbol, {
6829
+ modalForm: (options, slots) => showModal(true, options, slots),
6830
+ showModal: (options, slots) => showModal(false, options, slots),
6831
+ hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
6832
+ // modalOptions,
6833
+ });
6834
+ const ModalComponent = /* @__PURE__ */ defineComponent({
6835
+ data() {
6836
+ return {
6837
+ modalStack
6838
+ };
6839
+ },
6840
+ render() {
6841
+ return modalStack.value.map((modal, index2) => {
6842
+ const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
6843
+ return h(
6844
+ renderComponent,
6845
+ {
6846
+ ...modal.modalOptions,
6847
+ "onUpdate:isModalVisible": () => hideModal(index2)
6848
+ },
6849
+ modal.componentSlots
6850
+ );
6851
+ });
6852
+ }
6853
+ });
6854
+ app.component("ModalContainer", ModalComponent);
6855
+ }
6856
+ };
6857
+ function formatString(str, format) {
6858
+ if (format === "titleCase") {
6859
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
6860
+ }
6861
+ if (format === "pascal") {
6862
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
6863
+ }
6864
+ if (format === "camel") {
6865
+ return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
6866
+ }
6867
+ if (format === "snake") {
6868
+ return str.split("").map((letter) => {
6869
+ if (letter === letter.toUpperCase()) {
6870
+ return `_${letter.toLowerCase()}`;
6871
+ }
6872
+ return letter;
6873
+ }).join("");
6874
+ }
6875
+ return str;
6876
+ }
6877
+ let timeout;
6878
+ const debounce = (fn, delay = 500) => {
6879
+ clearTimeout(timeout);
6880
+ timeout = setTimeout(fn, delay);
6881
+ };
6882
+ const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
6883
+ function computeFields(modelValue) {
6884
+ const fields = [];
6885
+ for (const key of Object.keys(modelValue)) {
6886
+ const field = {
6887
+ label: keyToLabel(key),
6888
+ id: key,
6889
+ inputType: "PlainText"
6890
+ };
6891
+ if (typeof modelValue[key] === "string")
6892
+ field.inputType = "PlainText";
6893
+ if (typeof modelValue[key] === "number")
6894
+ field.inputType = "NumberInput";
6895
+ if (modelValue[key] === true || modelValue[key] === false)
6896
+ field.inputType = "CheckInput";
6897
+ if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
6898
+ field.inputType = "DateInput";
6899
+ fields.push(field);
6900
+ }
6901
+ return fields;
6902
+ }
6903
+ const copyText = async (text2, cb) => {
6904
+ await navigator.clipboard.writeText(text2);
6905
+ if (cb)
6906
+ cb("Copied to clipboard");
6907
+ };
6908
+ const useFormkit = () => {
6909
+ const formkit = inject("FormKitConfig");
6910
+ return formkit;
6911
+ };
6912
+ const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
6913
+ const parseLocale = (str, $t = (_str) => _str) => {
6914
+ const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
6915
+ if (!w)
6916
+ return str;
6917
+ return $t(w);
6918
+ };
6919
+ const _hoisted_1$F = { ref: "el" };
6920
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
6921
+ __name: "LangText",
6922
+ props: {
6923
+ input: {}
6924
+ },
6925
+ setup(__props) {
6926
+ return (_ctx, _cache) => {
6927
+ return openBlock(), createElementBlock(Fragment$1, null, [
6928
+ createBaseVNode("span", _hoisted_1$F, null, 512),
6929
+ createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
6930
+ ], 64);
6931
+ };
6932
+ }
6933
+ });
6934
+ const LangText = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6935
+ __proto__: null,
6936
+ default: _sfc_main$K
6937
+ }, Symbol.toStringTag, { value: "Module" }));
6796
6938
  function OrderedMap(content) {
6797
6939
  this.content = content;
6798
6940
  }
@@ -18903,8 +19045,8 @@ const marks = {
18903
19045
  }
18904
19046
  };
18905
19047
  const schema = new Schema({ nodes, marks });
18906
- const _hoisted_1$F = ["id"];
18907
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
19048
+ const _hoisted_1$E = ["id"];
19049
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
18908
19050
  __name: "RTXEditor",
18909
19051
  props: {
18910
19052
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -18981,15 +19123,15 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18981
19123
  onClick: focusEditor,
18982
19124
  id: `canvas-${_ctx.elementId}`,
18983
19125
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
18984
- }, null, 40, _hoisted_1$F);
19126
+ }, null, 40, _hoisted_1$E);
18985
19127
  };
18986
19128
  }
18987
19129
  });
18988
19130
  const RTXEditor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18989
19131
  __proto__: null,
18990
- default: _sfc_main$K
19132
+ default: _sfc_main$J
18991
19133
  }, Symbol.toStringTag, { value: "Module" }));
18992
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
19134
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
18993
19135
  __name: "MaterialIcon",
18994
19136
  props: {
18995
19137
  icon: {},
@@ -19006,11 +19148,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
19006
19148
  });
19007
19149
  const MaterialIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19008
19150
  __proto__: null,
19009
- default: _sfc_main$J
19151
+ default: _sfc_main$I
19010
19152
  }, Symbol.toStringTag, { value: "Module" }));
19011
- const _hoisted_1$E = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19153
+ const _hoisted_1$D = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19012
19154
  const _hoisted_2$z = [
19013
- _hoisted_1$E
19155
+ _hoisted_1$D
19014
19156
  ];
19015
19157
  const _hoisted_3$v = { class: "full-nav" };
19016
19158
  const _hoisted_4$i = { class: "nav-scroll" };
@@ -19018,7 +19160,7 @@ const _hoisted_5$e = { class: "nav-links-wrapper" };
19018
19160
  const _hoisted_6$b = { class: "icon-font" };
19019
19161
  const _hoisted_7$9 = { class: "tooltip" };
19020
19162
  const _hoisted_8$6 = { class: "bot-buttons-wrapper" };
19021
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
19163
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19022
19164
  __name: "NavBar",
19023
19165
  props: {
19024
19166
  links: {},
@@ -19070,9 +19212,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19070
19212
  });
19071
19213
  const NavBar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19072
19214
  __proto__: null,
19073
- default: _sfc_main$I
19215
+ default: _sfc_main$H
19074
19216
  }, Symbol.toStringTag, { value: "Module" }));
19075
- const _hoisted_1$D = {
19217
+ const _hoisted_1$C = {
19076
19218
  key: 0,
19077
19219
  class: "loading"
19078
19220
  };
@@ -19080,7 +19222,7 @@ const _hoisted_2$y = {
19080
19222
  key: 1,
19081
19223
  class: "btn-flex"
19082
19224
  };
19083
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
19225
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19084
19226
  __name: "Btn",
19085
19227
  props: {
19086
19228
  disabled: { type: Boolean, default: false },
@@ -19116,7 +19258,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19116
19258
  })
19117
19259
  }, {
19118
19260
  default: withCtx(() => [
19119
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
19261
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$C)) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
19120
19262
  _ctx.icon ? (openBlock(), createBlock(unref(MaterialIcon), {
19121
19263
  key: 0,
19122
19264
  icon: _ctx.icon
@@ -19143,16 +19285,16 @@ const _export_sfc = (sfc, props2) => {
19143
19285
  }
19144
19286
  return target;
19145
19287
  };
19146
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-4e57112f"]]);
19288
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-b94d75fb"]]);
19147
19289
  const Btn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19148
19290
  __proto__: null,
19149
19291
  default: Btn
19150
19292
  }, Symbol.toStringTag, { value: "Module" }));
19151
- const _hoisted_1$C = ["onKeydown"];
19293
+ const _hoisted_1$B = ["onKeydown"];
19152
19294
  const _hoisted_2$x = { class: "tool-bar" };
19153
19295
  const _hoisted_3$u = { class: "modal-title" };
19154
19296
  const _hoisted_4$h = { class: "modal-footer mt-3" };
19155
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
19297
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19156
19298
  __name: "Modal",
19157
19299
  props: {
19158
19300
  side: { type: Boolean },
@@ -19202,16 +19344,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19202
19344
  renderSlot(_ctx.$slots, "footer")
19203
19345
  ])
19204
19346
  ])
19205
- ], 42, _hoisted_1$C);
19347
+ ], 42, _hoisted_1$B);
19206
19348
  };
19207
19349
  }
19208
19350
  });
19209
- const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19210
- __proto__: null,
19211
- default: _sfc_main$G
19212
- }, Symbol.toStringTag, { value: "Module" }));
19213
19351
  const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
19214
- const _hoisted_1$B = { class: "bar-chart" };
19352
+ const _hoisted_1$A = { class: "bar-chart" };
19215
19353
  const _hoisted_2$w = {
19216
19354
  key: 0,
19217
19355
  class: "group-wrap"
@@ -19225,7 +19363,7 @@ const _hoisted_5$d = { class: "bar-txt" };
19225
19363
  const _hoisted_6$a = { class: "factor" };
19226
19364
  const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "red-bar" }, null, -1));
19227
19365
  const _hoisted_8$5 = { class: "bar-lines" };
19228
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
19366
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19229
19367
  __name: "BarChart",
19230
19368
  props: {
19231
19369
  title: {},
@@ -19275,7 +19413,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19275
19413
  const percent = (val) => val / maxValue.value * 100;
19276
19414
  const floodPercent = computed(() => `${props2.flood}%`);
19277
19415
  return (_ctx, _cache) => {
19278
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
19416
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
19279
19417
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i) => {
19280
19418
  return openBlock(), createElementBlock("div", {
19281
19419
  class: "graph-wrap",
@@ -19326,15 +19464,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19326
19464
  };
19327
19465
  }
19328
19466
  });
19329
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f7af54ed"]]);
19467
+ const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-f7af54ed"]]);
19330
19468
  const BarChart$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19331
19469
  __proto__: null,
19332
19470
  default: BarChart
19333
19471
  }, Symbol.toStringTag, { value: "Module" }));
19334
- const _hoisted_1$A = { class: "dropdown-title" };
19472
+ const _hoisted_1$z = { class: "dropdown-title" };
19335
19473
  const _hoisted_2$v = { class: "dropdown-body" };
19336
19474
  const _hoisted_3$s = ["onClick"];
19337
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
19475
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19338
19476
  __name: "DropDown",
19339
19477
  props: {
19340
19478
  modelValue: String,
@@ -19360,7 +19498,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19360
19498
  class: normalizeClass(["dropdown", { opendrop: isOpen.value }]),
19361
19499
  onClick: toggleDropdown
19362
19500
  }, [
19363
- createBaseVNode("div", _hoisted_1$A, [
19501
+ createBaseVNode("div", _hoisted_1$z, [
19364
19502
  createTextVNode(toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
19365
19503
  createVNode(unref(MaterialIcon), { icon: "keyboard_arrow_down" })
19366
19504
  ]),
@@ -19378,51 +19516,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19378
19516
  });
19379
19517
  const DropDown = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19380
19518
  __proto__: null,
19381
- default: _sfc_main$E
19519
+ default: _sfc_main$D
19382
19520
  }, Symbol.toStringTag, { value: "Module" }));
19383
- let timeout;
19384
- const debounce = (fn, delay = 500) => {
19385
- clearTimeout(timeout);
19386
- timeout = setTimeout(fn, delay);
19387
- };
19388
- const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
19389
- function computeFields(modelValue) {
19390
- const fields = [];
19391
- for (const key of Object.keys(modelValue)) {
19392
- const field = {
19393
- label: keyToLabel(key),
19394
- id: key,
19395
- inputType: "PlainText"
19396
- };
19397
- if (typeof modelValue[key] === "string")
19398
- field.inputType = "PlainText";
19399
- if (typeof modelValue[key] === "number")
19400
- field.inputType = "NumberInput";
19401
- if (modelValue[key] === true || modelValue[key] === false)
19402
- field.inputType = "CheckInput";
19403
- if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
19404
- field.inputType = "DateInput";
19405
- fields.push(field);
19406
- }
19407
- return fields;
19408
- }
19409
- const copyText = async (text2, cb) => {
19410
- await navigator.clipboard.writeText(text2);
19411
- if (cb)
19412
- cb("Copied to clipboard");
19413
- };
19414
- const useFormkit = () => {
19415
- const formkit = inject("FormKitConfig");
19416
- return formkit;
19417
- };
19418
- const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
19419
- const parseLocale = (str, $t = (_str) => _str) => {
19420
- const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
19421
- if (!w)
19422
- return str;
19423
- return $t(w);
19424
- };
19425
- const _hoisted_1$z = { class: "card list-view grid thin" };
19521
+ const _hoisted_1$y = { class: "card list-view grid thin" };
19426
19522
  const _hoisted_2$u = { class: "list-header flex gap-3 align-items-top" };
19427
19523
  const _hoisted_3$r = {
19428
19524
  key: 0,
@@ -19430,7 +19526,7 @@ const _hoisted_3$r = {
19430
19526
  };
19431
19527
  const _hoisted_4$f = ["placeholder"];
19432
19528
  const _hoisted_5$c = { class: "list-content grid auto-flow-rows align-items-start" };
19433
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
19529
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19434
19530
  __name: "ListView",
19435
19531
  props: {
19436
19532
  enableAdd: { type: Boolean },
@@ -19447,7 +19543,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19447
19543
  debounce(() => emit2("debounce", searchTerm.value));
19448
19544
  };
19449
19545
  return (_ctx, _cache) => {
19450
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
19546
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
19451
19547
  createBaseVNode("div", _hoisted_2$u, [
19452
19548
  _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
19453
19549
  withDirectives(createBaseVNode("input", {
@@ -19478,11 +19574,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19478
19574
  });
19479
19575
  const ListView = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19480
19576
  __proto__: null,
19481
- default: _sfc_main$D
19577
+ default: _sfc_main$C
19482
19578
  }, Symbol.toStringTag, { value: "Module" }));
19483
- const _hoisted_1$y = { class: "txt16 no-margin" };
19579
+ const _hoisted_1$x = { class: "txt16 no-margin" };
19484
19580
  const _hoisted_2$t = { class: "txt14 no-margin txtgray" };
19485
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
19581
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19486
19582
  __name: "ListItem",
19487
19583
  props: {
19488
19584
  to: {}
@@ -19494,7 +19590,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19494
19590
  class: "list-item ellipsis"
19495
19591
  }, {
19496
19592
  default: withCtx(() => [
19497
- createBaseVNode("p", _hoisted_1$y, [
19593
+ createBaseVNode("p", _hoisted_1$x, [
19498
19594
  renderSlot(_ctx.$slots, "default")
19499
19595
  ]),
19500
19596
  createBaseVNode("p", _hoisted_2$t, [
@@ -19508,13 +19604,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19508
19604
  });
19509
19605
  const ListItem = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19510
19606
  __proto__: null,
19511
- default: _sfc_main$C
19607
+ default: _sfc_main$B
19512
19608
  }, Symbol.toStringTag, { value: "Module" }));
19513
- const _hoisted_1$x = { class: "h-100 grid list-view gap-3" };
19609
+ const _hoisted_1$w = { class: "h-100 grid list-view gap-3" };
19514
19610
  const _hoisted_2$s = { class: "card tabs-top" };
19515
19611
  const _hoisted_3$q = { class: "tabs grid auto-flow-columns fit-content" };
19516
19612
  const _hoisted_4$e = ["onClick"];
19517
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
19613
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19518
19614
  __name: "TabbedLayout",
19519
19615
  props: {
19520
19616
  title: {},
@@ -19542,7 +19638,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19542
19638
  activeTab.value = firstTab;
19543
19639
  });
19544
19640
  return (_ctx, _cache) => {
19545
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
19641
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
19546
19642
  createBaseVNode("div", _hoisted_2$s, [
19547
19643
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
19548
19644
  createBaseVNode("div", _hoisted_3$q, [
@@ -19569,12 +19665,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19569
19665
  };
19570
19666
  }
19571
19667
  });
19572
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4ac29f1d"]]);
19668
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4ac29f1d"]]);
19573
19669
  const TabbedLayout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19574
19670
  __proto__: null,
19575
19671
  default: TabbedLayout
19576
19672
  }, Symbol.toStringTag, { value: "Module" }));
19577
- const _hoisted_1$w = { class: "comments-wrap" };
19673
+ const _hoisted_1$v = { class: "comments-wrap" };
19578
19674
  const _hoisted_2$r = { class: "comment-list" };
19579
19675
  const _hoisted_3$p = { class: "comment-top" };
19580
19676
  const _hoisted_4$d = { class: "comment-owner" };
@@ -19582,7 +19678,7 @@ const _hoisted_5$b = { class: "comment-time" };
19582
19678
  const _hoisted_6$9 = { class: "comment-actions" };
19583
19679
  const _hoisted_7$7 = ["innerHTML"];
19584
19680
  const _hoisted_8$4 = { class: "new-comment" };
19585
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
19681
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19586
19682
  __name: "Comments",
19587
19683
  props: {
19588
19684
  ref_table: {},
@@ -19627,7 +19723,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19627
19723
  void fetchData();
19628
19724
  };
19629
19725
  return (_ctx, _cache) => {
19630
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
19726
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
19631
19727
  createBaseVNode("div", _hoisted_2$r, [
19632
19728
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
19633
19729
  var _a, _b, _c;
@@ -19696,14 +19792,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19696
19792
  };
19697
19793
  }
19698
19794
  });
19699
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-36ddbe63"]]);
19795
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-10f58b91"]]);
19700
19796
  const Comments$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19701
19797
  __proto__: null,
19702
19798
  default: Comments
19703
19799
  }, Symbol.toStringTag, { value: "Module" }));
19704
- const _hoisted_1$v = { class: "page-top" };
19800
+ const _hoisted_1$u = { class: "page-top" };
19705
19801
  const _hoisted_2$q = { class: "top-title" };
19706
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
19802
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19707
19803
  __name: "PageTitle",
19708
19804
  props: {
19709
19805
  value: {
@@ -19713,7 +19809,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19713
19809
  },
19714
19810
  setup(__props) {
19715
19811
  return (_ctx, _cache) => {
19716
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
19812
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
19717
19813
  createBaseVNode("h1", _hoisted_2$q, [
19718
19814
  renderSlot(_ctx.$slots, "default"),
19719
19815
  createTextVNode(" " + toDisplayString(__props.value), 1)
@@ -19724,12 +19820,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19724
19820
  });
19725
19821
  const PageTitle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19726
19822
  __proto__: null,
19727
- default: _sfc_main$z
19823
+ default: _sfc_main$y
19728
19824
  }, Symbol.toStringTag, { value: "Module" }));
19729
- const _hoisted_1$u = ["onKeydown"];
19825
+ const _hoisted_1$t = ["onKeydown"];
19730
19826
  const _hoisted_2$p = { class: "tool-bar" };
19731
19827
  const _hoisted_3$o = { class: "modal-title" };
19732
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
19828
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19733
19829
  __name: "ModalForm",
19734
19830
  props: {
19735
19831
  side: { type: Boolean },
@@ -19809,19 +19905,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19809
19905
  schema: computedFormSchema.value
19810
19906
  }, null, 8, ["onDelete", "modelValue", "schema"])
19811
19907
  ])
19812
- ], 42, _hoisted_1$u);
19908
+ ], 42, _hoisted_1$t);
19813
19909
  };
19814
19910
  }
19815
19911
  });
19816
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-25f14815"]]);
19817
- const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19818
- __proto__: null,
19819
- default: ModalForm
19820
- }, Symbol.toStringTag, { value: "Module" }));
19821
- const _hoisted_1$t = ["title"];
19912
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d04a51e8"]]);
19913
+ const _hoisted_1$s = ["title"];
19822
19914
  const _hoisted_2$o = ["for"];
19823
19915
  const _hoisted_3$n = ["id", "placeholder", "required", "pattern"];
19824
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
19916
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19825
19917
  __name: "TextInput",
19826
19918
  props: {
19827
19919
  id: {},
@@ -19874,15 +19966,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19874
19966
  [vModelText, unref(inputVal)]
19875
19967
  ])
19876
19968
  ], 8, _hoisted_2$o)
19877
- ], 10, _hoisted_1$t);
19969
+ ], 10, _hoisted_1$s);
19878
19970
  };
19879
19971
  }
19880
19972
  });
19881
19973
  const TextInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19882
19974
  __proto__: null,
19883
- default: _sfc_main$x
19975
+ default: _sfc_main$w
19884
19976
  }, Symbol.toStringTag, { value: "Module" }));
19885
- const _hoisted_1$s = {
19977
+ const _hoisted_1$r = {
19886
19978
  key: 0,
19887
19979
  class: "data"
19888
19980
  };
@@ -19894,7 +19986,7 @@ const _hoisted_3$m = { class: "key" };
19894
19986
  const _hoisted_4$c = { key: 1 };
19895
19987
  const _hoisted_5$a = { class: "key" };
19896
19988
  const _hoisted_6$8 = { class: "vlue" };
19897
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
19989
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
19898
19990
  __name: "DataPreview",
19899
19991
  props: {
19900
19992
  data: {},
@@ -19906,7 +19998,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19906
19998
  const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
19907
19999
  return (_ctx, _cache) => {
19908
20000
  var _a;
19909
- return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
20001
+ return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
19910
20002
  _ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$n, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
19911
20003
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
19912
20004
  return openBlock(), createElementBlock("div", {
@@ -19940,12 +20032,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19940
20032
  };
19941
20033
  }
19942
20034
  });
19943
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-eadd1885"]]);
20035
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f006fc35"]]);
19944
20036
  const DataPreview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19945
20037
  __proto__: null,
19946
20038
  default: DataPreview
19947
20039
  }, Symbol.toStringTag, { value: "Module" }));
19948
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
20040
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
19949
20041
  __name: "FormSchema",
19950
20042
  props: {
19951
20043
  modelValue: {},
@@ -20018,14 +20110,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
20018
20110
  };
20019
20111
  }
20020
20112
  });
20021
- const _hoisted_1$r = { class: "table-list-wrap h-100" };
20113
+ const _hoisted_1$q = { class: "table-list-wrap h-100" };
20022
20114
  const _hoisted_2$m = { class: "infinite-wrapper" };
20023
20115
  const _hoisted_3$l = { class: "row first-row" };
20024
20116
  const _hoisted_4$b = ["onClick"];
20025
20117
  const _hoisted_5$9 = { class: "flex" };
20026
20118
  const _hoisted_6$7 = ["onClick"];
20027
20119
  const _hoisted_7$6 = { key: 1 };
20028
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
20120
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
20029
20121
  __name: "TableSchema",
20030
20122
  props: {
20031
20123
  data: {},
@@ -20072,7 +20164,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
20072
20164
  }))
20073
20165
  );
20074
20166
  return (_ctx, _cache) => {
20075
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
20167
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
20076
20168
  createBaseVNode("table", _hoisted_2$m, [
20077
20169
  createBaseVNode("thead", _hoisted_3$l, [
20078
20170
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
@@ -20138,24 +20230,24 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
20138
20230
  };
20139
20231
  }
20140
20232
  });
20141
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-31ab7183"]]);
20233
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5c5ba615"]]);
20142
20234
  const TableSchema$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20143
20235
  __proto__: null,
20144
20236
  default: TableSchema
20145
20237
  }, Symbol.toStringTag, { value: "Module" }));
20146
- const _sfc_main$t = {};
20147
- const _hoisted_1$q = { class: "flex space-between" };
20238
+ const _sfc_main$s = {};
20239
+ const _hoisted_1$p = { class: "flex space-between" };
20148
20240
  function _sfc_render$1(_ctx, _cache) {
20149
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
20241
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
20150
20242
  renderSlot(_ctx.$slots, "default")
20151
20243
  ]);
20152
20244
  }
20153
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1]]);
20245
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$1]]);
20154
20246
  const TopBar$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20155
20247
  __proto__: null,
20156
20248
  default: TopBar
20157
20249
  }, Symbol.toStringTag, { value: "Module" }));
20158
- const _sfc_main$s = {};
20250
+ const _sfc_main$r = {};
20159
20251
  function _sfc_render(_ctx, _cache) {
20160
20252
  const _component_router_view = resolveComponent("router-view");
20161
20253
  return openBlock(), createBlock(_component_router_view, null, {
@@ -20177,13 +20269,13 @@ function _sfc_render(_ctx, _cache) {
20177
20269
  _: 1
20178
20270
  });
20179
20271
  }
20180
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
20272
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
20181
20273
  const RouterWrapper$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20182
20274
  __proto__: null,
20183
20275
  default: RouterWrapper
20184
20276
  }, Symbol.toStringTag, { value: "Module" }));
20185
- const _hoisted_1$p = { class: "card h-100 thin" };
20186
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
20277
+ const _hoisted_1$o = { class: "card h-100 thin" };
20278
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
20187
20279
  __name: "ContactSubmissions",
20188
20280
  props: {
20189
20281
  person_id: {
@@ -20213,7 +20305,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
20213
20305
  void getData();
20214
20306
  });
20215
20307
  return (_ctx, _cache) => {
20216
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
20308
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
20217
20309
  createVNode(unref(TableSchema$1), {
20218
20310
  schema: schema2,
20219
20311
  data: unref(data)
@@ -20224,57 +20316,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
20224
20316
  });
20225
20317
  const ContactSubmissions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20226
20318
  __proto__: null,
20227
- default: _sfc_main$r
20319
+ default: _sfc_main$q
20228
20320
  }, Symbol.toStringTag, { value: "Module" }));
20229
- const ModalSymbol = Symbol("modal");
20230
- const useModal = () => {
20231
- const modalApi = inject(ModalSymbol);
20232
- if (!modalApi)
20233
- throw new Error("Modal API not provided");
20234
- return modalApi;
20235
- };
20236
- const ModalPlugin = {
20237
- install: (app) => {
20238
- const modalStack = ref([]);
20239
- const showModal = (isForm, options, slots = {}) => {
20240
- modalStack.value.push({
20241
- modalOptions: options,
20242
- isModalForm: isForm,
20243
- componentSlots: slots
20244
- });
20245
- };
20246
- const hideModal = (index2) => {
20247
- modalStack.value.splice(index2, 1);
20248
- };
20249
- app.provide(ModalSymbol, {
20250
- modalForm: (options, slots) => showModal(true, options, slots),
20251
- showModal: (options, slots) => showModal(false, options, slots),
20252
- hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
20253
- // modalOptions,
20254
- });
20255
- const ModalComponent = /* @__PURE__ */ defineComponent({
20256
- data() {
20257
- return {
20258
- modalStack
20259
- };
20260
- },
20261
- render() {
20262
- return modalStack.value.map((modal, index2) => {
20263
- const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
20264
- return h(
20265
- renderComponent,
20266
- {
20267
- ...modal.modalOptions,
20268
- "onUpdate:isModalVisible": () => hideModal(index2)
20269
- },
20270
- modal.componentSlots
20271
- );
20272
- });
20273
- }
20274
- });
20275
- app.component("ModalContainer", ModalComponent);
20276
- }
20277
- };
20278
20321
  const explicitKeys = [
20279
20322
  "__key",
20280
20323
  "__init",
@@ -21530,8 +21573,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
21530
21573
  }
21531
21574
  return definition;
21532
21575
  }
21533
- const _hoisted_1$o = { class: "primary-checkbox" };
21534
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
21576
+ const _hoisted_1$n = { class: "primary-checkbox" };
21577
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21535
21578
  __name: "Checkbox",
21536
21579
  props: {
21537
21580
  modelValue: Boolean
@@ -21555,7 +21598,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
21555
21598
  (v) => emits("update:modelValue", v)
21556
21599
  );
21557
21600
  return (_ctx, _cache) => {
21558
- return openBlock(), createElementBlock("label", _hoisted_1$o, [
21601
+ return openBlock(), createElementBlock("label", _hoisted_1$n, [
21559
21602
  withDirectives(createBaseVNode("input", {
21560
21603
  type: "checkbox",
21561
21604
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(val) ? val.value = $event : val = $event)
@@ -21569,8 +21612,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
21569
21612
  };
21570
21613
  }
21571
21614
  });
21572
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b85dbec6"]]);
21573
- const _hoisted_1$n = { class: "bagel-input" };
21615
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5f3ff6ea"]]);
21616
+ const _hoisted_1$m = { class: "bagel-input" };
21574
21617
  const _hoisted_2$l = { class: "mt-1" };
21575
21618
  const _hoisted_3$k = {
21576
21619
  key: 0,
@@ -21580,7 +21623,7 @@ const _hoisted_4$a = { class: "txt14" };
21580
21623
  const _hoisted_5$8 = ["onUpdate:modelValue", "placeholder"];
21581
21624
  const _hoisted_6$6 = ["onUpdate:modelValue", "placeholder"];
21582
21625
  const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
21583
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
21626
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21584
21627
  __name: "ContactArrayFormKit",
21585
21628
  props: {
21586
21629
  context: {},
@@ -21628,7 +21671,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21628
21671
  }
21629
21672
  );
21630
21673
  return (_ctx, _cache) => {
21631
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
21674
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
21632
21675
  createBaseVNode("div", _hoisted_2$l, [
21633
21676
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (contact, i) => {
21634
21677
  var _a, _b;
@@ -21715,8 +21758,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21715
21758
  };
21716
21759
  }
21717
21760
  });
21718
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3ab41ef8"]]);
21719
- const _hoisted_1$m = { class: "bagel-input" };
21761
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-438c5b36"]]);
21762
+ const _hoisted_1$l = { class: "bagel-input" };
21720
21763
  const _hoisted_2$k = { class: "mt-1" };
21721
21764
  const _hoisted_3$j = {
21722
21765
  key: 0,
@@ -21731,7 +21774,7 @@ const _hoisted_9$3 = ["onUpdate:modelValue", "placeholder"];
21731
21774
  const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
21732
21775
  const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
21733
21776
  const _hoisted_12$1 = { class: "bglform-address-del" };
21734
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
21777
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
21735
21778
  __name: "AddressArray",
21736
21779
  props: {
21737
21780
  context: {},
@@ -21785,7 +21828,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21785
21828
  }
21786
21829
  );
21787
21830
  return (_ctx, _cache) => {
21788
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
21831
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
21789
21832
  createBaseVNode("div", _hoisted_2$k, [
21790
21833
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (address, i) => {
21791
21834
  return openBlock(), createElementBlock("div", {
@@ -21888,8 +21931,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21888
21931
  };
21889
21932
  }
21890
21933
  });
21891
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-c08347ee"]]);
21892
- const _hoisted_1$l = { class: "bagel-input" };
21934
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0ec6633e"]]);
21935
+ const _hoisted_1$k = { class: "bagel-input" };
21893
21936
  const _hoisted_2$j = { class: "mt-1" };
21894
21937
  const _hoisted_3$i = {
21895
21938
  key: 0,
@@ -21909,7 +21952,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
21909
21952
  const _hoisted_15 = ["onUpdate:modelValue"];
21910
21953
  const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
21911
21954
  const _hoisted_17 = { class: "bglform-address-del" };
21912
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
21955
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
21913
21956
  __name: "BankDetailsArray",
21914
21957
  props: {
21915
21958
  context: {},
@@ -21957,7 +22000,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
21957
22000
  }
21958
22001
  );
21959
22002
  return (_ctx, _cache) => {
21960
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
22003
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
21961
22004
  createBaseVNode("div", _hoisted_2$j, [
21962
22005
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (bank_account, i) => {
21963
22006
  return openBlock(), createElementBlock("div", {
@@ -22094,9 +22137,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
22094
22137
  };
22095
22138
  }
22096
22139
  });
22097
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4602df64"]]);
22098
- const _hoisted_1$k = { class: "misc-wrap" };
22099
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
22140
+ const BankDetailsArray$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-277091e1"]]);
22141
+ const B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22142
+ __proto__: null,
22143
+ default: BankDetailsArray$1
22144
+ }, Symbol.toStringTag, { value: "Module" }));
22145
+ const _hoisted_1$j = { class: "misc-wrap" };
22146
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22100
22147
  __name: "MiscFields",
22101
22148
  props: {
22102
22149
  context: {},
@@ -22113,7 +22160,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22113
22160
  console.log(fields.value);
22114
22161
  };
22115
22162
  return (_ctx, _cache) => {
22116
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
22163
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
22117
22164
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(fields.value.filter(
22118
22165
  (field) => {
22119
22166
  var _a;
@@ -22141,13 +22188,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22141
22188
  };
22142
22189
  }
22143
22190
  });
22144
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-6bad8515"]]);
22191
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-bac6c2ee"]]);
22145
22192
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
22146
- const _hoisted_1$j = ["title"];
22193
+ const _hoisted_1$i = ["title"];
22147
22194
  const _hoisted_2$i = { class: "switch" };
22148
22195
  const _hoisted_3$h = ["id"];
22149
22196
  const _hoisted_4$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "slider round" }, null, -1));
22150
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
22197
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22151
22198
  __name: "Toggle",
22152
22199
  props: {
22153
22200
  context: Object
@@ -22185,12 +22232,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22185
22232
  ]),
22186
22233
  _hoisted_4$7
22187
22234
  ])
22188
- ], 10, _hoisted_1$j);
22235
+ ], 10, _hoisted_1$i);
22189
22236
  };
22190
22237
  }
22191
22238
  });
22192
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-d12598ff"]]);
22193
- const _hoisted_1$i = { class: "files-wrapper flex" };
22239
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-d12598ff"]]);
22240
+ const _hoisted_1$h = { class: "files-wrapper flex" };
22194
22241
  const _hoisted_2$h = ["onDrop"];
22195
22242
  const _hoisted_3$g = {
22196
22243
  key: 0,
@@ -22205,7 +22252,7 @@ const _hoisted_8$1 = {
22205
22252
  class: "progress"
22206
22253
  };
22207
22254
  const _hoisted_9$1 = ["multiple"];
22208
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
22255
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22209
22256
  __name: "FileUploader",
22210
22257
  props: {
22211
22258
  context: {},
@@ -22330,7 +22377,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22330
22377
  }
22331
22378
  return (_ctx, _cache) => {
22332
22379
  var _a;
22333
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
22380
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
22334
22381
  createBaseVNode("div", {
22335
22382
  ref_key: "dropZoneEl",
22336
22383
  ref: dropZoneEl,
@@ -22407,7 +22454,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22407
22454
  };
22408
22455
  }
22409
22456
  });
22410
- const _hoisted_1$h = {
22457
+ const _hoisted_1$g = {
22411
22458
  key: 0,
22412
22459
  class: "person-card-edit flex gap-2"
22413
22460
  };
@@ -22429,7 +22476,7 @@ const _hoisted_8 = {
22429
22476
  };
22430
22477
  const _hoisted_9 = { key: 0 };
22431
22478
  const _hoisted_10 = { key: 1 };
22432
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
22479
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22433
22480
  __name: "PersonPreviewFormkit",
22434
22481
  props: {
22435
22482
  context: {},
@@ -22460,7 +22507,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22460
22507
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
22461
22508
  class: "person-card"
22462
22509
  }, [
22463
- !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
22510
+ !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
22464
22511
  !_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn$1), {
22465
22512
  key: 0,
22466
22513
  onClick: unref(hideModal),
@@ -22509,7 +22556,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22509
22556
  };
22510
22557
  }
22511
22558
  });
22512
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
22559
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22513
22560
  __name: "TextVariableExamples",
22514
22561
  props: {
22515
22562
  context: Object
@@ -22598,19 +22645,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22598
22645
  });
22599
22646
  const ContactArray = createInput(ContactArrayFormKit);
22600
22647
  const Address = createInput(AddressArray);
22601
- const BankDetails = createInput(BankDetailsArray);
22648
+ const BankDetailsArray = createInput(B);
22602
22649
  const MiscFields = createInput(MiscFieldsBtns);
22603
22650
  const ToggleSwitch = createInput(Toggle);
22604
- const FileUpload = createInput(_sfc_main$k);
22605
- const TextVariables = createInput(_sfc_main$i);
22606
- const PersonPreview = createInput(_sfc_main$j);
22607
- const _withScopeId = (n) => (pushScopeId("data-v-6a5478c3"), n = n(), popScopeId(), n);
22608
- const _hoisted_1$g = ["title"];
22651
+ const FileUpload = createInput(_sfc_main$j);
22652
+ const TextVariables = createInput(_sfc_main$h);
22653
+ const PersonPreview = createInput(_sfc_main$i);
22654
+ const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
22655
+ const _hoisted_1$f = ["title"];
22609
22656
  const _hoisted_2$f = ["for"];
22610
22657
  const _hoisted_3$e = { class: "switch" };
22611
22658
  const _hoisted_4$4 = ["id"];
22612
22659
  const _hoisted_5$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "slider round" }, null, -1));
22613
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
22660
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22614
22661
  __name: "CheckInput",
22615
22662
  props: {
22616
22663
  field: {},
@@ -22655,21 +22702,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22655
22702
  ]),
22656
22703
  _hoisted_5$3
22657
22704
  ])
22658
- ], 10, _hoisted_1$g);
22705
+ ], 10, _hoisted_1$f);
22659
22706
  };
22660
22707
  }
22661
22708
  });
22662
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6a5478c3"]]);
22709
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-69f0d857"]]);
22663
22710
  const CheckInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22664
22711
  __proto__: null,
22665
22712
  default: CheckInput
22666
22713
  }, Symbol.toStringTag, { value: "Module" }));
22667
- const _hoisted_1$f = ["title"];
22714
+ const _hoisted_1$e = ["title"];
22668
22715
  const _hoisted_2$e = { key: 0 };
22669
22716
  const _hoisted_3$d = { class: "flex gap-3" };
22670
22717
  const _hoisted_4$3 = ["value", "placeholder"];
22671
22718
  const _hoisted_5$2 = { class: "currency" };
22672
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
22719
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22673
22720
  __name: "CurrencyInput",
22674
22721
  props: {
22675
22722
  field: {},
@@ -22781,19 +22828,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22781
22828
  }, null, 42, _hoisted_4$3),
22782
22829
  createBaseVNode("p", _hoisted_5$2, toDisplayString(((_a = currencies.find((c) => c.symbol === _ctx.field.currency)) == null ? void 0 : _a.character) || _ctx.field.currency), 1)
22783
22830
  ])
22784
- ], 10, _hoisted_1$f);
22831
+ ], 10, _hoisted_1$e);
22785
22832
  };
22786
22833
  }
22787
22834
  });
22788
- const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4cb01bfc"]]);
22835
+ const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-17a56a3f"]]);
22789
22836
  const CurrencyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22790
22837
  __proto__: null,
22791
22838
  default: CurrencyInput
22792
22839
  }, Symbol.toStringTag, { value: "Module" }));
22793
- const _hoisted_1$e = ["title"];
22840
+ const _hoisted_1$d = ["title"];
22794
22841
  const _hoisted_2$d = { key: 0 };
22795
22842
  const _hoisted_3$c = ["placeholder", "disabled"];
22796
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
22843
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22797
22844
  __name: "DateInput",
22798
22845
  props: {
22799
22846
  field: {},
@@ -22827,19 +22874,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22827
22874
  }, null, 40, _hoisted_3$c), [
22828
22875
  [vModelText, date.value]
22829
22876
  ])
22830
- ], 10, _hoisted_1$e);
22877
+ ], 10, _hoisted_1$d);
22831
22878
  };
22832
22879
  }
22833
22880
  });
22834
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d725a376"]]);
22881
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-782aee7f"]]);
22835
22882
  const DateInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22836
22883
  __proto__: null,
22837
22884
  default: DateInput
22838
22885
  }, Symbol.toStringTag, { value: "Module" }));
22839
- const _hoisted_1$d = ["title"];
22886
+ const _hoisted_1$c = ["title"];
22840
22887
  const _hoisted_2$c = { key: 0 };
22841
22888
  const _hoisted_3$b = ["value", "placeholder"];
22842
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
22889
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22843
22890
  __name: "DatetimeInput",
22844
22891
  props: {
22845
22892
  description: { default: "" },
@@ -22875,18 +22922,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22875
22922
  placeholder: _ctx.placeholder,
22876
22923
  class: normalizeClass({ "no-edit": !_ctx.editMode })
22877
22924
  }, null, 42, _hoisted_3$b)
22878
- ], 10, _hoisted_1$d);
22925
+ ], 10, _hoisted_1$c);
22879
22926
  };
22880
22927
  }
22881
22928
  });
22882
22929
  const DatetimeInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22883
22930
  __proto__: null,
22884
- default: _sfc_main$e
22931
+ default: _sfc_main$d
22885
22932
  }, Symbol.toStringTag, { value: "Module" }));
22886
- const _hoisted_1$c = ["title"];
22933
+ const _hoisted_1$b = ["title"];
22887
22934
  const _hoisted_2$b = { key: 0 };
22888
22935
  const _hoisted_3$a = ["value", "placeholder"];
22889
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
22936
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22890
22937
  __name: "EmailInput",
22891
22938
  props: {
22892
22939
  description: { default: "" },
@@ -22920,19 +22967,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22920
22967
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
22921
22968
  placeholder: _ctx.placeholder
22922
22969
  }, null, 42, _hoisted_3$a)
22923
- ], 10, _hoisted_1$c);
22970
+ ], 10, _hoisted_1$b);
22924
22971
  };
22925
22972
  }
22926
22973
  });
22927
- const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ed81a514"]]);
22974
+ const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-ed81a514"]]);
22928
22975
  const EmailInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22929
22976
  __proto__: null,
22930
22977
  default: EmailInput
22931
22978
  }, Symbol.toStringTag, { value: "Module" }));
22932
- const _hoisted_1$b = ["title"];
22979
+ const _hoisted_1$a = ["title"];
22933
22980
  const _hoisted_2$a = { key: 0 };
22934
22981
  const _hoisted_3$9 = ["value", "placeholder"];
22935
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
22982
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22936
22983
  __name: "FloatInput",
22937
22984
  props: {
22938
22985
  description: { default: "" },
@@ -22969,18 +23016,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22969
23016
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
22970
23017
  placeholder: _ctx.placeholder
22971
23018
  }, null, 42, _hoisted_3$9)
22972
- ], 10, _hoisted_1$b);
23019
+ ], 10, _hoisted_1$a);
22973
23020
  };
22974
23021
  }
22975
23022
  });
22976
23023
  const FloatInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22977
23024
  __proto__: null,
22978
- default: _sfc_main$c
23025
+ default: _sfc_main$b
22979
23026
  }, Symbol.toStringTag, { value: "Module" }));
22980
- const _hoisted_1$a = ["title"];
23027
+ const _hoisted_1$9 = ["title"];
22981
23028
  const _hoisted_2$9 = { key: 0 };
22982
23029
  const _hoisted_3$8 = ["value", "placeholder"];
22983
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
23030
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22984
23031
  __name: "IntInput",
22985
23032
  props: {
22986
23033
  description: { default: "" },
@@ -23017,18 +23064,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23017
23064
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
23018
23065
  placeholder: _ctx.placeholder
23019
23066
  }, null, 42, _hoisted_3$8)
23020
- ], 10, _hoisted_1$a);
23067
+ ], 10, _hoisted_1$9);
23021
23068
  };
23022
23069
  }
23023
23070
  });
23024
23071
  const IntInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23025
23072
  __proto__: null,
23026
- default: _sfc_main$b
23073
+ default: _sfc_main$a
23027
23074
  }, Symbol.toStringTag, { value: "Module" }));
23028
- const _hoisted_1$9 = ["title"];
23075
+ const _hoisted_1$8 = ["title"];
23029
23076
  const _hoisted_2$8 = { key: 0 };
23030
23077
  const _hoisted_3$7 = ["value", "placeholder"];
23031
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
23078
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23032
23079
  __name: "JSONInput",
23033
23080
  props: {
23034
23081
  description: { default: "" },
@@ -23060,36 +23107,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
23060
23107
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
23061
23108
  placeholder: _ctx.placeholder
23062
23109
  }, null, 42, _hoisted_3$7)
23063
- ], 10, _hoisted_1$9);
23110
+ ], 10, _hoisted_1$8);
23064
23111
  };
23065
23112
  }
23066
23113
  });
23067
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1fc4f739"]]);
23114
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1fc4f739"]]);
23068
23115
  const JSONInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23069
23116
  __proto__: null,
23070
23117
  default: JSONInput
23071
23118
  }, Symbol.toStringTag, { value: "Module" }));
23072
- function formatString(str, format) {
23073
- if (format === "titleCase") {
23074
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
23075
- }
23076
- if (format === "pascal") {
23077
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
23078
- }
23079
- if (format === "camel") {
23080
- return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
23081
- }
23082
- if (format === "snake") {
23083
- return str.split("").map((letter) => {
23084
- if (letter === letter.toUpperCase()) {
23085
- return `_${letter.toLowerCase()}`;
23086
- }
23087
- return letter;
23088
- }).join("");
23089
- }
23090
- return str;
23091
- }
23092
- const _hoisted_1$8 = ["title"];
23119
+ const _hoisted_1$7 = ["title"];
23093
23120
  const _hoisted_2$7 = { key: 0 };
23094
23121
  const _hoisted_3$6 = ["onKeydown", "disabled"];
23095
23122
  const _hoisted_4$2 = ["onClick"];
@@ -23102,7 +23129,7 @@ const _hoisted_6$1 = {
23102
23129
  class: "option-label"
23103
23130
  };
23104
23131
  const _hoisted_7 = { class: "option-description" };
23105
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23132
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23106
23133
  __name: "LinkField",
23107
23134
  props: {
23108
23135
  description: { default: "" },
@@ -23118,9 +23145,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23118
23145
  emits: ["update:modelValue", "selected"],
23119
23146
  setup(__props, { emit: __emit }) {
23120
23147
  useCssVars((_ctx) => ({
23121
- "6a2190dd": left.value,
23122
- "2c26b862": `${top.value}px`,
23123
- "4aa550a0": width.value
23148
+ "db4af1b6": left.value,
23149
+ "25d5c417": `${top.value}px`,
23150
+ "8cd9ab30": width.value
23124
23151
  }));
23125
23152
  const props2 = __props;
23126
23153
  const showList = ref(false);
@@ -23268,20 +23295,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23268
23295
  ], 2)
23269
23296
  ]))
23270
23297
  ], 2)
23271
- ], 10, _hoisted_1$8);
23298
+ ], 10, _hoisted_1$7);
23272
23299
  };
23273
23300
  }
23274
23301
  });
23275
- const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-81840a60"]]);
23302
+ const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-947beb38"]]);
23276
23303
  const LinkField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23277
23304
  __proto__: null,
23278
23305
  default: LinkField
23279
23306
  }, Symbol.toStringTag, { value: "Module" }));
23280
- const _hoisted_1$7 = ["title"];
23307
+ const _hoisted_1$6 = ["title"];
23281
23308
  const _hoisted_2$6 = { key: 0 };
23282
23309
  const _hoisted_3$5 = { class: "password-input-wrap" };
23283
23310
  const _hoisted_4$1 = ["value", "type", "placeholder"];
23284
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23311
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23285
23312
  __name: "PasswordInput",
23286
23313
  props: {
23287
23314
  description: { default: "" },
@@ -23331,19 +23358,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23331
23358
  onMousedown: toggleInputType
23332
23359
  }, " visibility ", 32)
23333
23360
  ])
23334
- ], 10, _hoisted_1$7);
23361
+ ], 10, _hoisted_1$6);
23335
23362
  };
23336
23363
  }
23337
23364
  });
23338
- const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-eec3e237"]]);
23365
+ const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-eec3e237"]]);
23339
23366
  const PasswordInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23340
23367
  __proto__: null,
23341
23368
  default: PasswordInput
23342
23369
  }, Symbol.toStringTag, { value: "Module" }));
23343
- const _hoisted_1$6 = ["title"];
23370
+ const _hoisted_1$5 = ["title"];
23344
23371
  const _hoisted_2$5 = ["for"];
23345
23372
  const _hoisted_3$4 = ["id", "type", "placeholder", "required", "pattern"];
23346
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23373
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23347
23374
  __name: "Password",
23348
23375
  props: {
23349
23376
  field: {},
@@ -23388,21 +23415,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23388
23415
  ])
23389
23416
  ], 8, _hoisted_2$5),
23390
23417
  createVNode(unref(MaterialIcon), {
23391
- onClick: _cache[1] || (_cache[1] = ($event) => showPassword()),
23418
+ onClick: showPassword,
23392
23419
  icon: unref(seePassword) ? "visibility" : "visibility_off"
23393
23420
  }, null, 8, ["icon"])
23394
- ], 10, _hoisted_1$6)) : createCommentVNode("", true);
23421
+ ], 10, _hoisted_1$5)) : createCommentVNode("", true);
23395
23422
  };
23396
23423
  }
23397
23424
  });
23398
- const Password = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c0d14aa1"]]);
23425
+ const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-800f4000"]]);
23399
23426
  const Password$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23400
23427
  __proto__: null,
23401
23428
  default: Password
23402
23429
  }, Symbol.toStringTag, { value: "Module" }));
23403
- const _hoisted_1$5 = ["title"];
23430
+ const _hoisted_1$4 = ["title"];
23404
23431
  const _hoisted_2$4 = { key: 0 };
23405
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23432
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23406
23433
  __name: "ReadOnlyInput",
23407
23434
  props: {
23408
23435
  field: {},
@@ -23417,30 +23444,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23417
23444
  }, [
23418
23445
  _ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$4, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
23419
23446
  createTextVNode(" " + toDisplayString(_ctx.modelValue), 1)
23420
- ], 10, _hoisted_1$5);
23447
+ ], 10, _hoisted_1$4);
23421
23448
  };
23422
23449
  }
23423
23450
  });
23424
- const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-92851182"]]);
23451
+ const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b3b5a368"]]);
23425
23452
  const ReadOnlyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23426
23453
  __proto__: null,
23427
23454
  default: ReadOnlyInput
23428
23455
  }, Symbol.toStringTag, { value: "Module" }));
23429
- const _hoisted_1$4 = { ref: "el" };
23430
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23431
- __name: "LangText",
23432
- props: {
23433
- input: {}
23434
- },
23435
- setup(__props) {
23436
- return (_ctx, _cache) => {
23437
- return openBlock(), createElementBlock(Fragment$1, null, [
23438
- createBaseVNode("span", _hoisted_1$4, null, 512),
23439
- createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
23440
- ], 64);
23441
- };
23442
- }
23443
- });
23444
23456
  const _hoisted_1$3 = ["title"];
23445
23457
  const _hoisted_2$3 = ["onClick"];
23446
23458
  const _hoisted_3$3 = ["onClick"];
@@ -23475,9 +23487,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23475
23487
  emits: ["update:modelValue", "selected"],
23476
23488
  setup(__props, { emit: __emit }) {
23477
23489
  useCssVars((_ctx) => ({
23478
- "81cee438": left.value,
23479
- "293d7f96": `${top.value}px`,
23480
- "2495fb89": width.value
23490
+ "1c3856b2": left.value,
23491
+ "62aaf5e4": `${top.value}px`,
23492
+ "6b6f4c7b": width.value
23481
23493
  }));
23482
23494
  const selectEl = ref();
23483
23495
  const dropdown = ref();
@@ -23576,7 +23588,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23576
23588
  for: "label",
23577
23589
  class: normalizeClass({ active: showList.value })
23578
23590
  }, [
23579
- createVNode(_sfc_main$5, { input: _ctx.label }, null, 8, ["input"])
23591
+ createVNode(unref(LangText), { input: _ctx.label }, null, 8, ["input"])
23580
23592
  ], 2)) : createCommentVNode("", true),
23581
23593
  createBaseVNode("div", {
23582
23594
  class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -23588,7 +23600,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23588
23600
  class: normalizeClass(["input", { active: showList.value }]),
23589
23601
  name: "select-input"
23590
23602
  }, [
23591
- createVNode(_sfc_main$5, { input: displayValue.value }, null, 8, ["input"])
23603
+ createVNode(unref(LangText), { input: displayValue.value }, null, 8, ["input"])
23592
23604
  ], 10, _hoisted_2$3),
23593
23605
  (openBlock(), createBlock(Teleport, { to: "#app" }, [
23594
23606
  createBaseVNode("div", {
@@ -23601,7 +23613,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23601
23613
  key: option2.value,
23602
23614
  onClick: ($event) => handleSelect(option2)
23603
23615
  }, [
23604
- createVNode(_sfc_main$5, {
23616
+ createVNode(unref(LangText), {
23605
23617
  input: option2.label
23606
23618
  }, null, 8, ["input"])
23607
23619
  ], 8, _hoisted_3$3);
@@ -23613,7 +23625,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23613
23625
  };
23614
23626
  }
23615
23627
  });
23616
- const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-0b2eccce"]]);
23628
+ const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-028ea61b"]]);
23617
23629
  const SelectField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23618
23630
  __proto__: null,
23619
23631
  default: SelectField
@@ -26349,7 +26361,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26349
26361
  };
26350
26362
  }
26351
26363
  });
26352
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c5cacca2"]]);
26364
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b01223bc"]]);
26353
26365
  const TableField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26354
26366
  __proto__: null,
26355
26367
  default: TableField
@@ -26405,7 +26417,7 @@ const DurationInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
26405
26417
  }, Symbol.toStringTag, { value: "Module" }));
26406
26418
  exports.Address = Address;
26407
26419
  exports.BagelVue = BagelVue;
26408
- exports.BankDetails = BankDetails;
26420
+ exports.BankDetailsArray = BankDetailsArray;
26409
26421
  exports.BarChart = BarChart$1;
26410
26422
  exports.Btn = Btn$1;
26411
26423
  exports.CheckInput = CheckInput$1;
@@ -26424,6 +26436,7 @@ exports.FloatInput = FloatInput;
26424
26436
  exports.FormSchema = FormSchema;
26425
26437
  exports.IntInput = IntInput;
26426
26438
  exports.JSONInput = JSONInput$1;
26439
+ exports.LangText = LangText;
26427
26440
  exports.LinkField = LinkField$1;
26428
26441
  exports.ListItem = ListItem;
26429
26442
  exports.ListView = ListView;
@@ -26453,6 +26466,7 @@ exports.bagelInjectionKey = bagelInjectionKey;
26453
26466
  exports.computeFields = computeFields;
26454
26467
  exports.copyText = copyText;
26455
26468
  exports.debounce = debounce;
26469
+ exports.formatString = formatString;
26456
26470
  exports.initials = initials;
26457
26471
  exports.keyToLabel = keyToLabel;
26458
26472
  exports.parseLocale = parseLocale;