@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.mjs CHANGED
@@ -1,7 +1,19 @@
1
+ const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
+ __proto__: null,
3
+ get default() {
4
+ return _sfc_main$F;
5
+ }
6
+ }, Symbol.toStringTag, { value: "Module" }));
7
+ const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
+ __proto__: null,
9
+ get default() {
10
+ return ModalForm;
11
+ }
12
+ }, Symbol.toStringTag, { value: "Module" }));
1
13
  const FormSchema = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2
14
  __proto__: null,
3
15
  get default() {
4
- return _sfc_main$v;
16
+ return _sfc_main$u;
5
17
  }
6
18
  }, Symbol.toStringTag, { value: "Module" }));
7
19
  function makeMap(str, expectsLowerCase) {
@@ -6791,6 +6803,136 @@ const BagelVue = {
6791
6803
  app.provide(bagelInjectionKey, bagel);
6792
6804
  }
6793
6805
  };
6806
+ const ModalSymbol = Symbol("modal");
6807
+ const useModal = () => {
6808
+ const modalApi = inject(ModalSymbol);
6809
+ if (!modalApi)
6810
+ throw new Error("Modal API not provided");
6811
+ return modalApi;
6812
+ };
6813
+ const ModalPlugin = {
6814
+ install: (app) => {
6815
+ const modalStack = ref([]);
6816
+ const showModal = (isForm, options, slots = {}) => {
6817
+ modalStack.value.push({
6818
+ modalOptions: options,
6819
+ isModalForm: isForm,
6820
+ componentSlots: slots
6821
+ });
6822
+ };
6823
+ const hideModal = (index2) => {
6824
+ modalStack.value.splice(index2, 1);
6825
+ };
6826
+ app.provide(ModalSymbol, {
6827
+ modalForm: (options, slots) => showModal(true, options, slots),
6828
+ showModal: (options, slots) => showModal(false, options, slots),
6829
+ hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
6830
+ // modalOptions,
6831
+ });
6832
+ const ModalComponent = /* @__PURE__ */ defineComponent({
6833
+ data() {
6834
+ return {
6835
+ modalStack
6836
+ };
6837
+ },
6838
+ render() {
6839
+ return modalStack.value.map((modal, index2) => {
6840
+ const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
6841
+ return h(
6842
+ renderComponent,
6843
+ {
6844
+ ...modal.modalOptions,
6845
+ "onUpdate:isModalVisible": () => hideModal(index2)
6846
+ },
6847
+ modal.componentSlots
6848
+ );
6849
+ });
6850
+ }
6851
+ });
6852
+ app.component("ModalContainer", ModalComponent);
6853
+ }
6854
+ };
6855
+ function formatString(str, format) {
6856
+ if (format === "titleCase") {
6857
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
6858
+ }
6859
+ if (format === "pascal") {
6860
+ return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
6861
+ }
6862
+ if (format === "camel") {
6863
+ return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
6864
+ }
6865
+ if (format === "snake") {
6866
+ return str.split("").map((letter) => {
6867
+ if (letter === letter.toUpperCase()) {
6868
+ return `_${letter.toLowerCase()}`;
6869
+ }
6870
+ return letter;
6871
+ }).join("");
6872
+ }
6873
+ return str;
6874
+ }
6875
+ let timeout;
6876
+ const debounce = (fn, delay = 500) => {
6877
+ clearTimeout(timeout);
6878
+ timeout = setTimeout(fn, delay);
6879
+ };
6880
+ const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
6881
+ function computeFields(modelValue) {
6882
+ const fields = [];
6883
+ for (const key of Object.keys(modelValue)) {
6884
+ const field = {
6885
+ label: keyToLabel(key),
6886
+ id: key,
6887
+ inputType: "PlainText"
6888
+ };
6889
+ if (typeof modelValue[key] === "string")
6890
+ field.inputType = "PlainText";
6891
+ if (typeof modelValue[key] === "number")
6892
+ field.inputType = "NumberInput";
6893
+ if (modelValue[key] === true || modelValue[key] === false)
6894
+ field.inputType = "CheckInput";
6895
+ if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
6896
+ field.inputType = "DateInput";
6897
+ fields.push(field);
6898
+ }
6899
+ return fields;
6900
+ }
6901
+ const copyText = async (text2, cb) => {
6902
+ await navigator.clipboard.writeText(text2);
6903
+ if (cb)
6904
+ cb("Copied to clipboard");
6905
+ };
6906
+ const useFormkit = () => {
6907
+ const formkit = inject("FormKitConfig");
6908
+ return formkit;
6909
+ };
6910
+ const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
6911
+ const parseLocale = (str, $t = (_str) => _str) => {
6912
+ const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
6913
+ if (!w)
6914
+ return str;
6915
+ return $t(w);
6916
+ };
6917
+ const _hoisted_1$F = { ref: "el" };
6918
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
6919
+ __name: "LangText",
6920
+ props: {
6921
+ input: {}
6922
+ },
6923
+ setup(__props) {
6924
+ return (_ctx, _cache) => {
6925
+ return openBlock(), createElementBlock(Fragment$1, null, [
6926
+ createBaseVNode("span", _hoisted_1$F, null, 512),
6927
+ createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
6928
+ ], 64);
6929
+ };
6930
+ }
6931
+ });
6932
+ const LangText = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6933
+ __proto__: null,
6934
+ default: _sfc_main$K
6935
+ }, Symbol.toStringTag, { value: "Module" }));
6794
6936
  function OrderedMap(content) {
6795
6937
  this.content = content;
6796
6938
  }
@@ -18901,8 +19043,8 @@ const marks = {
18901
19043
  }
18902
19044
  };
18903
19045
  const schema = new Schema({ nodes, marks });
18904
- const _hoisted_1$F = ["id"];
18905
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
19046
+ const _hoisted_1$E = ["id"];
19047
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
18906
19048
  __name: "RTXEditor",
18907
19049
  props: {
18908
19050
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -18979,15 +19121,15 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
18979
19121
  onClick: focusEditor,
18980
19122
  id: `canvas-${_ctx.elementId}`,
18981
19123
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
18982
- }, null, 40, _hoisted_1$F);
19124
+ }, null, 40, _hoisted_1$E);
18983
19125
  };
18984
19126
  }
18985
19127
  });
18986
19128
  const RTXEditor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18987
19129
  __proto__: null,
18988
- default: _sfc_main$K
19130
+ default: _sfc_main$J
18989
19131
  }, Symbol.toStringTag, { value: "Module" }));
18990
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
19132
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
18991
19133
  __name: "MaterialIcon",
18992
19134
  props: {
18993
19135
  icon: {},
@@ -19004,11 +19146,11 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
19004
19146
  });
19005
19147
  const MaterialIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19006
19148
  __proto__: null,
19007
- default: _sfc_main$J
19149
+ default: _sfc_main$I
19008
19150
  }, Symbol.toStringTag, { value: "Module" }));
19009
- const _hoisted_1$E = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19151
+ const _hoisted_1$D = /* @__PURE__ */ createBaseVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
19010
19152
  const _hoisted_2$z = [
19011
- _hoisted_1$E
19153
+ _hoisted_1$D
19012
19154
  ];
19013
19155
  const _hoisted_3$v = { class: "full-nav" };
19014
19156
  const _hoisted_4$i = { class: "nav-scroll" };
@@ -19016,7 +19158,7 @@ const _hoisted_5$e = { class: "nav-links-wrapper" };
19016
19158
  const _hoisted_6$b = { class: "icon-font" };
19017
19159
  const _hoisted_7$9 = { class: "tooltip" };
19018
19160
  const _hoisted_8$6 = { class: "bot-buttons-wrapper" };
19019
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
19161
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19020
19162
  __name: "NavBar",
19021
19163
  props: {
19022
19164
  links: {},
@@ -19068,9 +19210,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19068
19210
  });
19069
19211
  const NavBar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19070
19212
  __proto__: null,
19071
- default: _sfc_main$I
19213
+ default: _sfc_main$H
19072
19214
  }, Symbol.toStringTag, { value: "Module" }));
19073
- const _hoisted_1$D = {
19215
+ const _hoisted_1$C = {
19074
19216
  key: 0,
19075
19217
  class: "loading"
19076
19218
  };
@@ -19078,7 +19220,7 @@ const _hoisted_2$y = {
19078
19220
  key: 1,
19079
19221
  class: "btn-flex"
19080
19222
  };
19081
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
19223
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19082
19224
  __name: "Btn",
19083
19225
  props: {
19084
19226
  disabled: { type: Boolean, default: false },
@@ -19114,7 +19256,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
19114
19256
  })
19115
19257
  }, {
19116
19258
  default: withCtx(() => [
19117
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$D)) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
19259
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$C)) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
19118
19260
  _ctx.icon ? (openBlock(), createBlock(unref(MaterialIcon), {
19119
19261
  key: 0,
19120
19262
  icon: _ctx.icon
@@ -19141,16 +19283,16 @@ const _export_sfc = (sfc, props2) => {
19141
19283
  }
19142
19284
  return target;
19143
19285
  };
19144
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-4e57112f"]]);
19286
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-b94d75fb"]]);
19145
19287
  const Btn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19146
19288
  __proto__: null,
19147
19289
  default: Btn
19148
19290
  }, Symbol.toStringTag, { value: "Module" }));
19149
- const _hoisted_1$C = ["onKeydown"];
19291
+ const _hoisted_1$B = ["onKeydown"];
19150
19292
  const _hoisted_2$x = { class: "tool-bar" };
19151
19293
  const _hoisted_3$u = { class: "modal-title" };
19152
19294
  const _hoisted_4$h = { class: "modal-footer mt-3" };
19153
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
19295
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19154
19296
  __name: "Modal",
19155
19297
  props: {
19156
19298
  side: { type: Boolean },
@@ -19200,16 +19342,12 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
19200
19342
  renderSlot(_ctx.$slots, "footer")
19201
19343
  ])
19202
19344
  ])
19203
- ], 42, _hoisted_1$C);
19345
+ ], 42, _hoisted_1$B);
19204
19346
  };
19205
19347
  }
19206
19348
  });
19207
- const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19208
- __proto__: null,
19209
- default: _sfc_main$G
19210
- }, Symbol.toStringTag, { value: "Module" }));
19211
19349
  const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
19212
- const _hoisted_1$B = { class: "bar-chart" };
19350
+ const _hoisted_1$A = { class: "bar-chart" };
19213
19351
  const _hoisted_2$w = {
19214
19352
  key: 0,
19215
19353
  class: "group-wrap"
@@ -19223,7 +19361,7 @@ const _hoisted_5$d = { class: "bar-txt" };
19223
19361
  const _hoisted_6$a = { class: "factor" };
19224
19362
  const _hoisted_7$8 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createBaseVNode("div", { class: "red-bar" }, null, -1));
19225
19363
  const _hoisted_8$5 = { class: "bar-lines" };
19226
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
19364
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19227
19365
  __name: "BarChart",
19228
19366
  props: {
19229
19367
  title: {},
@@ -19273,7 +19411,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19273
19411
  const percent = (val) => val / maxValue.value * 100;
19274
19412
  const floodPercent = computed(() => `${props2.flood}%`);
19275
19413
  return (_ctx, _cache) => {
19276
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
19414
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
19277
19415
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(dataArray.value, (item, i) => {
19278
19416
  return openBlock(), createElementBlock("div", {
19279
19417
  class: "graph-wrap",
@@ -19324,15 +19462,15 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
19324
19462
  };
19325
19463
  }
19326
19464
  });
19327
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f7af54ed"]]);
19465
+ const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-f7af54ed"]]);
19328
19466
  const BarChart$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19329
19467
  __proto__: null,
19330
19468
  default: BarChart
19331
19469
  }, Symbol.toStringTag, { value: "Module" }));
19332
- const _hoisted_1$A = { class: "dropdown-title" };
19470
+ const _hoisted_1$z = { class: "dropdown-title" };
19333
19471
  const _hoisted_2$v = { class: "dropdown-body" };
19334
19472
  const _hoisted_3$s = ["onClick"];
19335
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
19473
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19336
19474
  __name: "DropDown",
19337
19475
  props: {
19338
19476
  modelValue: String,
@@ -19358,7 +19496,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19358
19496
  class: normalizeClass(["dropdown", { opendrop: isOpen.value }]),
19359
19497
  onClick: toggleDropdown
19360
19498
  }, [
19361
- createBaseVNode("div", _hoisted_1$A, [
19499
+ createBaseVNode("div", _hoisted_1$z, [
19362
19500
  createTextVNode(toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
19363
19501
  createVNode(unref(MaterialIcon), { icon: "keyboard_arrow_down" })
19364
19502
  ]),
@@ -19376,51 +19514,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
19376
19514
  });
19377
19515
  const DropDown = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19378
19516
  __proto__: null,
19379
- default: _sfc_main$E
19517
+ default: _sfc_main$D
19380
19518
  }, Symbol.toStringTag, { value: "Module" }));
19381
- let timeout;
19382
- const debounce = (fn, delay = 500) => {
19383
- clearTimeout(timeout);
19384
- timeout = setTimeout(fn, delay);
19385
- };
19386
- const keyToLabel = (key) => key.split("_").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ");
19387
- function computeFields(modelValue) {
19388
- const fields = [];
19389
- for (const key of Object.keys(modelValue)) {
19390
- const field = {
19391
- label: keyToLabel(key),
19392
- id: key,
19393
- inputType: "PlainText"
19394
- };
19395
- if (typeof modelValue[key] === "string")
19396
- field.inputType = "PlainText";
19397
- if (typeof modelValue[key] === "number")
19398
- field.inputType = "NumberInput";
19399
- if (modelValue[key] === true || modelValue[key] === false)
19400
- field.inputType = "CheckInput";
19401
- if (modelValue[key] instanceof Date || !Number.isNaN(Date.parse(modelValue[key])))
19402
- field.inputType = "DateInput";
19403
- fields.push(field);
19404
- }
19405
- return fields;
19406
- }
19407
- const copyText = async (text2, cb) => {
19408
- await navigator.clipboard.writeText(text2);
19409
- if (cb)
19410
- cb("Copied to clipboard");
19411
- };
19412
- const useFormkit = () => {
19413
- const formkit = inject("FormKitConfig");
19414
- return formkit;
19415
- };
19416
- const initials = (...strArr) => strArr.map((str) => str == null ? void 0 : str.charAt(0)).join("");
19417
- const parseLocale = (str, $t = (_str) => _str) => {
19418
- const [_, w] = str.split(/\$t\('?"?|'?"?\)/);
19419
- if (!w)
19420
- return str;
19421
- return $t(w);
19422
- };
19423
- const _hoisted_1$z = { class: "card list-view grid thin" };
19519
+ const _hoisted_1$y = { class: "card list-view grid thin" };
19424
19520
  const _hoisted_2$u = { class: "list-header flex gap-3 align-items-top" };
19425
19521
  const _hoisted_3$r = {
19426
19522
  key: 0,
@@ -19428,7 +19524,7 @@ const _hoisted_3$r = {
19428
19524
  };
19429
19525
  const _hoisted_4$f = ["placeholder"];
19430
19526
  const _hoisted_5$c = { class: "list-content grid auto-flow-rows align-items-start" };
19431
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
19527
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19432
19528
  __name: "ListView",
19433
19529
  props: {
19434
19530
  enableAdd: { type: Boolean },
@@ -19445,7 +19541,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19445
19541
  debounce(() => emit2("debounce", searchTerm.value));
19446
19542
  };
19447
19543
  return (_ctx, _cache) => {
19448
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
19544
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
19449
19545
  createBaseVNode("div", _hoisted_2$u, [
19450
19546
  _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$r, [
19451
19547
  withDirectives(createBaseVNode("input", {
@@ -19476,11 +19572,11 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
19476
19572
  });
19477
19573
  const ListView = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19478
19574
  __proto__: null,
19479
- default: _sfc_main$D
19575
+ default: _sfc_main$C
19480
19576
  }, Symbol.toStringTag, { value: "Module" }));
19481
- const _hoisted_1$y = { class: "txt16 no-margin" };
19577
+ const _hoisted_1$x = { class: "txt16 no-margin" };
19482
19578
  const _hoisted_2$t = { class: "txt14 no-margin txtgray" };
19483
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
19579
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19484
19580
  __name: "ListItem",
19485
19581
  props: {
19486
19582
  to: {}
@@ -19492,7 +19588,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19492
19588
  class: "list-item ellipsis"
19493
19589
  }, {
19494
19590
  default: withCtx(() => [
19495
- createBaseVNode("p", _hoisted_1$y, [
19591
+ createBaseVNode("p", _hoisted_1$x, [
19496
19592
  renderSlot(_ctx.$slots, "default")
19497
19593
  ]),
19498
19594
  createBaseVNode("p", _hoisted_2$t, [
@@ -19506,13 +19602,13 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
19506
19602
  });
19507
19603
  const ListItem = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19508
19604
  __proto__: null,
19509
- default: _sfc_main$C
19605
+ default: _sfc_main$B
19510
19606
  }, Symbol.toStringTag, { value: "Module" }));
19511
- const _hoisted_1$x = { class: "h-100 grid list-view gap-3" };
19607
+ const _hoisted_1$w = { class: "h-100 grid list-view gap-3" };
19512
19608
  const _hoisted_2$s = { class: "card tabs-top" };
19513
19609
  const _hoisted_3$q = { class: "tabs grid auto-flow-columns fit-content" };
19514
19610
  const _hoisted_4$e = ["onClick"];
19515
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
19611
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19516
19612
  __name: "TabbedLayout",
19517
19613
  props: {
19518
19614
  title: {},
@@ -19540,7 +19636,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19540
19636
  activeTab.value = firstTab;
19541
19637
  });
19542
19638
  return (_ctx, _cache) => {
19543
- return openBlock(), createElementBlock("div", _hoisted_1$x, [
19639
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
19544
19640
  createBaseVNode("div", _hoisted_2$s, [
19545
19641
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
19546
19642
  createBaseVNode("div", _hoisted_3$q, [
@@ -19567,12 +19663,12 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
19567
19663
  };
19568
19664
  }
19569
19665
  });
19570
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-4ac29f1d"]]);
19666
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4ac29f1d"]]);
19571
19667
  const TabbedLayout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19572
19668
  __proto__: null,
19573
19669
  default: TabbedLayout
19574
19670
  }, Symbol.toStringTag, { value: "Module" }));
19575
- const _hoisted_1$w = { class: "comments-wrap" };
19671
+ const _hoisted_1$v = { class: "comments-wrap" };
19576
19672
  const _hoisted_2$r = { class: "comment-list" };
19577
19673
  const _hoisted_3$p = { class: "comment-top" };
19578
19674
  const _hoisted_4$d = { class: "comment-owner" };
@@ -19580,7 +19676,7 @@ const _hoisted_5$b = { class: "comment-time" };
19580
19676
  const _hoisted_6$9 = { class: "comment-actions" };
19581
19677
  const _hoisted_7$7 = ["innerHTML"];
19582
19678
  const _hoisted_8$4 = { class: "new-comment" };
19583
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
19679
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19584
19680
  __name: "Comments",
19585
19681
  props: {
19586
19682
  ref_table: {},
@@ -19625,7 +19721,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19625
19721
  void fetchData();
19626
19722
  };
19627
19723
  return (_ctx, _cache) => {
19628
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
19724
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
19629
19725
  createBaseVNode("div", _hoisted_2$r, [
19630
19726
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
19631
19727
  var _a, _b, _c;
@@ -19694,14 +19790,14 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
19694
19790
  };
19695
19791
  }
19696
19792
  });
19697
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-36ddbe63"]]);
19793
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-10f58b91"]]);
19698
19794
  const Comments$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19699
19795
  __proto__: null,
19700
19796
  default: Comments
19701
19797
  }, Symbol.toStringTag, { value: "Module" }));
19702
- const _hoisted_1$v = { class: "page-top" };
19798
+ const _hoisted_1$u = { class: "page-top" };
19703
19799
  const _hoisted_2$q = { class: "top-title" };
19704
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
19800
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19705
19801
  __name: "PageTitle",
19706
19802
  props: {
19707
19803
  value: {
@@ -19711,7 +19807,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19711
19807
  },
19712
19808
  setup(__props) {
19713
19809
  return (_ctx, _cache) => {
19714
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
19810
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
19715
19811
  createBaseVNode("h1", _hoisted_2$q, [
19716
19812
  renderSlot(_ctx.$slots, "default"),
19717
19813
  createTextVNode(" " + toDisplayString(__props.value), 1)
@@ -19722,12 +19818,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
19722
19818
  });
19723
19819
  const PageTitle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19724
19820
  __proto__: null,
19725
- default: _sfc_main$z
19821
+ default: _sfc_main$y
19726
19822
  }, Symbol.toStringTag, { value: "Module" }));
19727
- const _hoisted_1$u = ["onKeydown"];
19823
+ const _hoisted_1$t = ["onKeydown"];
19728
19824
  const _hoisted_2$p = { class: "tool-bar" };
19729
19825
  const _hoisted_3$o = { class: "modal-title" };
19730
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
19826
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19731
19827
  __name: "ModalForm",
19732
19828
  props: {
19733
19829
  side: { type: Boolean },
@@ -19807,19 +19903,15 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
19807
19903
  schema: computedFormSchema.value
19808
19904
  }, null, 8, ["onDelete", "modelValue", "schema"])
19809
19905
  ])
19810
- ], 42, _hoisted_1$u);
19906
+ ], 42, _hoisted_1$t);
19811
19907
  };
19812
19908
  }
19813
19909
  });
19814
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-25f14815"]]);
19815
- const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19816
- __proto__: null,
19817
- default: ModalForm
19818
- }, Symbol.toStringTag, { value: "Module" }));
19819
- const _hoisted_1$t = ["title"];
19910
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d04a51e8"]]);
19911
+ const _hoisted_1$s = ["title"];
19820
19912
  const _hoisted_2$o = ["for"];
19821
19913
  const _hoisted_3$n = ["id", "placeholder", "required", "pattern"];
19822
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
19914
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19823
19915
  __name: "TextInput",
19824
19916
  props: {
19825
19917
  id: {},
@@ -19872,15 +19964,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
19872
19964
  [vModelText, unref(inputVal)]
19873
19965
  ])
19874
19966
  ], 8, _hoisted_2$o)
19875
- ], 10, _hoisted_1$t);
19967
+ ], 10, _hoisted_1$s);
19876
19968
  };
19877
19969
  }
19878
19970
  });
19879
19971
  const TextInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19880
19972
  __proto__: null,
19881
- default: _sfc_main$x
19973
+ default: _sfc_main$w
19882
19974
  }, Symbol.toStringTag, { value: "Module" }));
19883
- const _hoisted_1$s = {
19975
+ const _hoisted_1$r = {
19884
19976
  key: 0,
19885
19977
  class: "data"
19886
19978
  };
@@ -19892,7 +19984,7 @@ const _hoisted_3$m = { class: "key" };
19892
19984
  const _hoisted_4$c = { key: 1 };
19893
19985
  const _hoisted_5$a = { class: "key" };
19894
19986
  const _hoisted_6$8 = { class: "vlue" };
19895
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
19987
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
19896
19988
  __name: "DataPreview",
19897
19989
  props: {
19898
19990
  data: {},
@@ -19904,7 +19996,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19904
19996
  const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
19905
19997
  return (_ctx, _cache) => {
19906
19998
  var _a;
19907
- return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$s, [
19999
+ return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
19908
20000
  _ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$n, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
19909
20001
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
19910
20002
  return openBlock(), createElementBlock("div", {
@@ -19938,12 +20030,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
19938
20030
  };
19939
20031
  }
19940
20032
  });
19941
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-eadd1885"]]);
20033
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f006fc35"]]);
19942
20034
  const DataPreview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19943
20035
  __proto__: null,
19944
20036
  default: DataPreview
19945
20037
  }, Symbol.toStringTag, { value: "Module" }));
19946
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
20038
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
19947
20039
  __name: "FormSchema",
19948
20040
  props: {
19949
20041
  modelValue: {},
@@ -20016,14 +20108,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
20016
20108
  };
20017
20109
  }
20018
20110
  });
20019
- const _hoisted_1$r = { class: "table-list-wrap h-100" };
20111
+ const _hoisted_1$q = { class: "table-list-wrap h-100" };
20020
20112
  const _hoisted_2$m = { class: "infinite-wrapper" };
20021
20113
  const _hoisted_3$l = { class: "row first-row" };
20022
20114
  const _hoisted_4$b = ["onClick"];
20023
20115
  const _hoisted_5$9 = { class: "flex" };
20024
20116
  const _hoisted_6$7 = ["onClick"];
20025
20117
  const _hoisted_7$6 = { key: 1 };
20026
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
20118
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
20027
20119
  __name: "TableSchema",
20028
20120
  props: {
20029
20121
  data: {},
@@ -20070,7 +20162,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
20070
20162
  }))
20071
20163
  );
20072
20164
  return (_ctx, _cache) => {
20073
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
20165
+ return openBlock(), createElementBlock("div", _hoisted_1$q, [
20074
20166
  createBaseVNode("table", _hoisted_2$m, [
20075
20167
  createBaseVNode("thead", _hoisted_3$l, [
20076
20168
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
@@ -20136,24 +20228,24 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
20136
20228
  };
20137
20229
  }
20138
20230
  });
20139
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-31ab7183"]]);
20231
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-5c5ba615"]]);
20140
20232
  const TableSchema$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20141
20233
  __proto__: null,
20142
20234
  default: TableSchema
20143
20235
  }, Symbol.toStringTag, { value: "Module" }));
20144
- const _sfc_main$t = {};
20145
- const _hoisted_1$q = { class: "flex space-between" };
20236
+ const _sfc_main$s = {};
20237
+ const _hoisted_1$p = { class: "flex space-between" };
20146
20238
  function _sfc_render$1(_ctx, _cache) {
20147
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
20239
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
20148
20240
  renderSlot(_ctx.$slots, "default")
20149
20241
  ]);
20150
20242
  }
20151
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$1]]);
20243
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$1]]);
20152
20244
  const TopBar$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20153
20245
  __proto__: null,
20154
20246
  default: TopBar
20155
20247
  }, Symbol.toStringTag, { value: "Module" }));
20156
- const _sfc_main$s = {};
20248
+ const _sfc_main$r = {};
20157
20249
  function _sfc_render(_ctx, _cache) {
20158
20250
  const _component_router_view = resolveComponent("router-view");
20159
20251
  return openBlock(), createBlock(_component_router_view, null, {
@@ -20175,13 +20267,13 @@ function _sfc_render(_ctx, _cache) {
20175
20267
  _: 1
20176
20268
  });
20177
20269
  }
20178
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render]]);
20270
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render]]);
20179
20271
  const RouterWrapper$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20180
20272
  __proto__: null,
20181
20273
  default: RouterWrapper
20182
20274
  }, Symbol.toStringTag, { value: "Module" }));
20183
- const _hoisted_1$p = { class: "card h-100 thin" };
20184
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
20275
+ const _hoisted_1$o = { class: "card h-100 thin" };
20276
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
20185
20277
  __name: "ContactSubmissions",
20186
20278
  props: {
20187
20279
  person_id: {
@@ -20211,7 +20303,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
20211
20303
  void getData();
20212
20304
  });
20213
20305
  return (_ctx, _cache) => {
20214
- return openBlock(), createElementBlock("div", _hoisted_1$p, [
20306
+ return openBlock(), createElementBlock("div", _hoisted_1$o, [
20215
20307
  createVNode(unref(TableSchema$1), {
20216
20308
  schema: schema2,
20217
20309
  data: unref(data)
@@ -20222,57 +20314,8 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
20222
20314
  });
20223
20315
  const ContactSubmissions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20224
20316
  __proto__: null,
20225
- default: _sfc_main$r
20317
+ default: _sfc_main$q
20226
20318
  }, Symbol.toStringTag, { value: "Module" }));
20227
- const ModalSymbol = Symbol("modal");
20228
- const useModal = () => {
20229
- const modalApi = inject(ModalSymbol);
20230
- if (!modalApi)
20231
- throw new Error("Modal API not provided");
20232
- return modalApi;
20233
- };
20234
- const ModalPlugin = {
20235
- install: (app) => {
20236
- const modalStack = ref([]);
20237
- const showModal = (isForm, options, slots = {}) => {
20238
- modalStack.value.push({
20239
- modalOptions: options,
20240
- isModalForm: isForm,
20241
- componentSlots: slots
20242
- });
20243
- };
20244
- const hideModal = (index2) => {
20245
- modalStack.value.splice(index2, 1);
20246
- };
20247
- app.provide(ModalSymbol, {
20248
- modalForm: (options, slots) => showModal(true, options, slots),
20249
- showModal: (options, slots) => showModal(false, options, slots),
20250
- hideModal: (index2 = modalStack.value.length - 1) => hideModal(index2)
20251
- // modalOptions,
20252
- });
20253
- const ModalComponent = /* @__PURE__ */ defineComponent({
20254
- data() {
20255
- return {
20256
- modalStack
20257
- };
20258
- },
20259
- render() {
20260
- return modalStack.value.map((modal, index2) => {
20261
- const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
20262
- return h(
20263
- renderComponent,
20264
- {
20265
- ...modal.modalOptions,
20266
- "onUpdate:isModalVisible": () => hideModal(index2)
20267
- },
20268
- modal.componentSlots
20269
- );
20270
- });
20271
- }
20272
- });
20273
- app.component("ModalContainer", ModalComponent);
20274
- }
20275
- };
20276
20319
  const explicitKeys = [
20277
20320
  "__key",
20278
20321
  "__init",
@@ -21528,8 +21571,8 @@ function createInput(schemaOrComponent, definitionOptions = {}) {
21528
21571
  }
21529
21572
  return definition;
21530
21573
  }
21531
- const _hoisted_1$o = { class: "primary-checkbox" };
21532
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
21574
+ const _hoisted_1$n = { class: "primary-checkbox" };
21575
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21533
21576
  __name: "Checkbox",
21534
21577
  props: {
21535
21578
  modelValue: Boolean
@@ -21553,7 +21596,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
21553
21596
  (v) => emits("update:modelValue", v)
21554
21597
  );
21555
21598
  return (_ctx, _cache) => {
21556
- return openBlock(), createElementBlock("label", _hoisted_1$o, [
21599
+ return openBlock(), createElementBlock("label", _hoisted_1$n, [
21557
21600
  withDirectives(createBaseVNode("input", {
21558
21601
  type: "checkbox",
21559
21602
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(val) ? val.value = $event : val = $event)
@@ -21567,8 +21610,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
21567
21610
  };
21568
21611
  }
21569
21612
  });
21570
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-b85dbec6"]]);
21571
- const _hoisted_1$n = { class: "bagel-input" };
21613
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-5f3ff6ea"]]);
21614
+ const _hoisted_1$m = { class: "bagel-input" };
21572
21615
  const _hoisted_2$l = { class: "mt-1" };
21573
21616
  const _hoisted_3$k = {
21574
21617
  key: 0,
@@ -21578,7 +21621,7 @@ const _hoisted_4$a = { class: "txt14" };
21578
21621
  const _hoisted_5$8 = ["onUpdate:modelValue", "placeholder"];
21579
21622
  const _hoisted_6$6 = ["onUpdate:modelValue", "placeholder"];
21580
21623
  const _hoisted_7$5 = ["onUpdate:modelValue", "placeholder"];
21581
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
21624
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21582
21625
  __name: "ContactArrayFormKit",
21583
21626
  props: {
21584
21627
  context: {},
@@ -21626,7 +21669,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21626
21669
  }
21627
21670
  );
21628
21671
  return (_ctx, _cache) => {
21629
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
21672
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
21630
21673
  createBaseVNode("div", _hoisted_2$l, [
21631
21674
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (contact, i) => {
21632
21675
  var _a, _b;
@@ -21713,8 +21756,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
21713
21756
  };
21714
21757
  }
21715
21758
  });
21716
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-3ab41ef8"]]);
21717
- const _hoisted_1$m = { class: "bagel-input" };
21759
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-438c5b36"]]);
21760
+ const _hoisted_1$l = { class: "bagel-input" };
21718
21761
  const _hoisted_2$k = { class: "mt-1" };
21719
21762
  const _hoisted_3$j = {
21720
21763
  key: 0,
@@ -21729,7 +21772,7 @@ const _hoisted_9$3 = ["onUpdate:modelValue", "placeholder"];
21729
21772
  const _hoisted_10$2 = ["onUpdate:modelValue", "placeholder"];
21730
21773
  const _hoisted_11$1 = ["onUpdate:modelValue", "placeholder"];
21731
21774
  const _hoisted_12$1 = { class: "bglform-address-del" };
21732
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
21775
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
21733
21776
  __name: "AddressArray",
21734
21777
  props: {
21735
21778
  context: {},
@@ -21783,7 +21826,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21783
21826
  }
21784
21827
  );
21785
21828
  return (_ctx, _cache) => {
21786
- return openBlock(), createElementBlock("div", _hoisted_1$m, [
21829
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
21787
21830
  createBaseVNode("div", _hoisted_2$k, [
21788
21831
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (address, i) => {
21789
21832
  return openBlock(), createElementBlock("div", {
@@ -21886,8 +21929,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21886
21929
  };
21887
21930
  }
21888
21931
  });
21889
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-c08347ee"]]);
21890
- const _hoisted_1$l = { class: "bagel-input" };
21932
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-0ec6633e"]]);
21933
+ const _hoisted_1$k = { class: "bagel-input" };
21891
21934
  const _hoisted_2$j = { class: "mt-1" };
21892
21935
  const _hoisted_3$i = {
21893
21936
  key: 0,
@@ -21907,7 +21950,7 @@ const _hoisted_14 = ["onUpdate:modelValue"];
21907
21950
  const _hoisted_15 = ["onUpdate:modelValue"];
21908
21951
  const _hoisted_16 = ["onUpdate:modelValue", "placeholder"];
21909
21952
  const _hoisted_17 = { class: "bglform-address-del" };
21910
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
21953
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
21911
21954
  __name: "BankDetailsArray",
21912
21955
  props: {
21913
21956
  context: {},
@@ -21955,7 +21998,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
21955
21998
  }
21956
21999
  );
21957
22000
  return (_ctx, _cache) => {
21958
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
22001
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
21959
22002
  createBaseVNode("div", _hoisted_2$j, [
21960
22003
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(val), (bank_account, i) => {
21961
22004
  return openBlock(), createElementBlock("div", {
@@ -22092,9 +22135,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
22092
22135
  };
22093
22136
  }
22094
22137
  });
22095
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-4602df64"]]);
22096
- const _hoisted_1$k = { class: "misc-wrap" };
22097
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
22138
+ const BankDetailsArray$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-277091e1"]]);
22139
+ const B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22140
+ __proto__: null,
22141
+ default: BankDetailsArray$1
22142
+ }, Symbol.toStringTag, { value: "Module" }));
22143
+ const _hoisted_1$j = { class: "misc-wrap" };
22144
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22098
22145
  __name: "MiscFields",
22099
22146
  props: {
22100
22147
  context: {},
@@ -22111,7 +22158,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22111
22158
  console.log(fields.value);
22112
22159
  };
22113
22160
  return (_ctx, _cache) => {
22114
- return openBlock(), createElementBlock("div", _hoisted_1$k, [
22161
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
22115
22162
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(fields.value.filter(
22116
22163
  (field) => {
22117
22164
  var _a;
@@ -22139,13 +22186,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
22139
22186
  };
22140
22187
  }
22141
22188
  });
22142
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-6bad8515"]]);
22189
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-bac6c2ee"]]);
22143
22190
  const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
22144
- const _hoisted_1$j = ["title"];
22191
+ const _hoisted_1$i = ["title"];
22145
22192
  const _hoisted_2$i = { class: "switch" };
22146
22193
  const _hoisted_3$h = ["id"];
22147
22194
  const _hoisted_4$7 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createBaseVNode("span", { class: "slider round" }, null, -1));
22148
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
22195
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22149
22196
  __name: "Toggle",
22150
22197
  props: {
22151
22198
  context: Object
@@ -22183,12 +22230,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
22183
22230
  ]),
22184
22231
  _hoisted_4$7
22185
22232
  ])
22186
- ], 10, _hoisted_1$j);
22233
+ ], 10, _hoisted_1$i);
22187
22234
  };
22188
22235
  }
22189
22236
  });
22190
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-d12598ff"]]);
22191
- const _hoisted_1$i = { class: "files-wrapper flex" };
22237
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-d12598ff"]]);
22238
+ const _hoisted_1$h = { class: "files-wrapper flex" };
22192
22239
  const _hoisted_2$h = ["onDrop"];
22193
22240
  const _hoisted_3$g = {
22194
22241
  key: 0,
@@ -22203,7 +22250,7 @@ const _hoisted_8$1 = {
22203
22250
  class: "progress"
22204
22251
  };
22205
22252
  const _hoisted_9$1 = ["multiple"];
22206
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
22253
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22207
22254
  __name: "FileUploader",
22208
22255
  props: {
22209
22256
  context: {},
@@ -22328,7 +22375,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22328
22375
  }
22329
22376
  return (_ctx, _cache) => {
22330
22377
  var _a;
22331
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
22378
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
22332
22379
  createBaseVNode("div", {
22333
22380
  ref_key: "dropZoneEl",
22334
22381
  ref: dropZoneEl,
@@ -22405,7 +22452,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
22405
22452
  };
22406
22453
  }
22407
22454
  });
22408
- const _hoisted_1$h = {
22455
+ const _hoisted_1$g = {
22409
22456
  key: 0,
22410
22457
  class: "person-card-edit flex gap-2"
22411
22458
  };
@@ -22427,7 +22474,7 @@ const _hoisted_8 = {
22427
22474
  };
22428
22475
  const _hoisted_9 = { key: 0 };
22429
22476
  const _hoisted_10 = { key: 1 };
22430
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
22477
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22431
22478
  __name: "PersonPreviewFormkit",
22432
22479
  props: {
22433
22480
  context: {},
@@ -22458,7 +22505,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22458
22505
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
22459
22506
  class: "person-card"
22460
22507
  }, [
22461
- !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
22508
+ !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
22462
22509
  !_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn$1), {
22463
22510
  key: 0,
22464
22511
  onClick: unref(hideModal),
@@ -22507,7 +22554,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
22507
22554
  };
22508
22555
  }
22509
22556
  });
22510
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
22557
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22511
22558
  __name: "TextVariableExamples",
22512
22559
  props: {
22513
22560
  context: Object
@@ -22596,19 +22643,19 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22596
22643
  });
22597
22644
  const ContactArray = createInput(ContactArrayFormKit);
22598
22645
  const Address = createInput(AddressArray);
22599
- const BankDetails = createInput(BankDetailsArray);
22646
+ const BankDetailsArray = createInput(B);
22600
22647
  const MiscFields = createInput(MiscFieldsBtns);
22601
22648
  const ToggleSwitch = createInput(Toggle);
22602
- const FileUpload = createInput(_sfc_main$k);
22603
- const TextVariables = createInput(_sfc_main$i);
22604
- const PersonPreview = createInput(_sfc_main$j);
22605
- const _withScopeId = (n) => (pushScopeId("data-v-6a5478c3"), n = n(), popScopeId(), n);
22606
- const _hoisted_1$g = ["title"];
22649
+ const FileUpload = createInput(_sfc_main$j);
22650
+ const TextVariables = createInput(_sfc_main$h);
22651
+ const PersonPreview = createInput(_sfc_main$i);
22652
+ const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
22653
+ const _hoisted_1$f = ["title"];
22607
22654
  const _hoisted_2$f = ["for"];
22608
22655
  const _hoisted_3$e = { class: "switch" };
22609
22656
  const _hoisted_4$4 = ["id"];
22610
22657
  const _hoisted_5$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "slider round" }, null, -1));
22611
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
22658
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22612
22659
  __name: "CheckInput",
22613
22660
  props: {
22614
22661
  field: {},
@@ -22653,21 +22700,21 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22653
22700
  ]),
22654
22701
  _hoisted_5$3
22655
22702
  ])
22656
- ], 10, _hoisted_1$g);
22703
+ ], 10, _hoisted_1$f);
22657
22704
  };
22658
22705
  }
22659
22706
  });
22660
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-6a5478c3"]]);
22707
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-69f0d857"]]);
22661
22708
  const CheckInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22662
22709
  __proto__: null,
22663
22710
  default: CheckInput
22664
22711
  }, Symbol.toStringTag, { value: "Module" }));
22665
- const _hoisted_1$f = ["title"];
22712
+ const _hoisted_1$e = ["title"];
22666
22713
  const _hoisted_2$e = { key: 0 };
22667
22714
  const _hoisted_3$d = { class: "flex gap-3" };
22668
22715
  const _hoisted_4$3 = ["value", "placeholder"];
22669
22716
  const _hoisted_5$2 = { class: "currency" };
22670
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
22717
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22671
22718
  __name: "CurrencyInput",
22672
22719
  props: {
22673
22720
  field: {},
@@ -22779,19 +22826,19 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22779
22826
  }, null, 42, _hoisted_4$3),
22780
22827
  createBaseVNode("p", _hoisted_5$2, toDisplayString(((_a = currencies.find((c) => c.symbol === _ctx.field.currency)) == null ? void 0 : _a.character) || _ctx.field.currency), 1)
22781
22828
  ])
22782
- ], 10, _hoisted_1$f);
22829
+ ], 10, _hoisted_1$e);
22783
22830
  };
22784
22831
  }
22785
22832
  });
22786
- const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-4cb01bfc"]]);
22833
+ const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-17a56a3f"]]);
22787
22834
  const CurrencyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22788
22835
  __proto__: null,
22789
22836
  default: CurrencyInput
22790
22837
  }, Symbol.toStringTag, { value: "Module" }));
22791
- const _hoisted_1$e = ["title"];
22838
+ const _hoisted_1$d = ["title"];
22792
22839
  const _hoisted_2$d = { key: 0 };
22793
22840
  const _hoisted_3$c = ["placeholder", "disabled"];
22794
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
22841
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22795
22842
  __name: "DateInput",
22796
22843
  props: {
22797
22844
  field: {},
@@ -22825,19 +22872,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22825
22872
  }, null, 40, _hoisted_3$c), [
22826
22873
  [vModelText, date.value]
22827
22874
  ])
22828
- ], 10, _hoisted_1$e);
22875
+ ], 10, _hoisted_1$d);
22829
22876
  };
22830
22877
  }
22831
22878
  });
22832
- const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-d725a376"]]);
22879
+ const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-782aee7f"]]);
22833
22880
  const DateInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22834
22881
  __proto__: null,
22835
22882
  default: DateInput
22836
22883
  }, Symbol.toStringTag, { value: "Module" }));
22837
- const _hoisted_1$d = ["title"];
22884
+ const _hoisted_1$c = ["title"];
22838
22885
  const _hoisted_2$c = { key: 0 };
22839
22886
  const _hoisted_3$b = ["value", "placeholder"];
22840
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
22887
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22841
22888
  __name: "DatetimeInput",
22842
22889
  props: {
22843
22890
  description: { default: "" },
@@ -22873,18 +22920,18 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
22873
22920
  placeholder: _ctx.placeholder,
22874
22921
  class: normalizeClass({ "no-edit": !_ctx.editMode })
22875
22922
  }, null, 42, _hoisted_3$b)
22876
- ], 10, _hoisted_1$d);
22923
+ ], 10, _hoisted_1$c);
22877
22924
  };
22878
22925
  }
22879
22926
  });
22880
22927
  const DatetimeInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22881
22928
  __proto__: null,
22882
- default: _sfc_main$e
22929
+ default: _sfc_main$d
22883
22930
  }, Symbol.toStringTag, { value: "Module" }));
22884
- const _hoisted_1$c = ["title"];
22931
+ const _hoisted_1$b = ["title"];
22885
22932
  const _hoisted_2$b = { key: 0 };
22886
22933
  const _hoisted_3$a = ["value", "placeholder"];
22887
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
22934
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22888
22935
  __name: "EmailInput",
22889
22936
  props: {
22890
22937
  description: { default: "" },
@@ -22918,19 +22965,19 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
22918
22965
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
22919
22966
  placeholder: _ctx.placeholder
22920
22967
  }, null, 42, _hoisted_3$a)
22921
- ], 10, _hoisted_1$c);
22968
+ ], 10, _hoisted_1$b);
22922
22969
  };
22923
22970
  }
22924
22971
  });
22925
- const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-ed81a514"]]);
22972
+ const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-ed81a514"]]);
22926
22973
  const EmailInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22927
22974
  __proto__: null,
22928
22975
  default: EmailInput
22929
22976
  }, Symbol.toStringTag, { value: "Module" }));
22930
- const _hoisted_1$b = ["title"];
22977
+ const _hoisted_1$a = ["title"];
22931
22978
  const _hoisted_2$a = { key: 0 };
22932
22979
  const _hoisted_3$9 = ["value", "placeholder"];
22933
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
22980
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22934
22981
  __name: "FloatInput",
22935
22982
  props: {
22936
22983
  description: { default: "" },
@@ -22967,18 +23014,18 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22967
23014
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
22968
23015
  placeholder: _ctx.placeholder
22969
23016
  }, null, 42, _hoisted_3$9)
22970
- ], 10, _hoisted_1$b);
23017
+ ], 10, _hoisted_1$a);
22971
23018
  };
22972
23019
  }
22973
23020
  });
22974
23021
  const FloatInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22975
23022
  __proto__: null,
22976
- default: _sfc_main$c
23023
+ default: _sfc_main$b
22977
23024
  }, Symbol.toStringTag, { value: "Module" }));
22978
- const _hoisted_1$a = ["title"];
23025
+ const _hoisted_1$9 = ["title"];
22979
23026
  const _hoisted_2$9 = { key: 0 };
22980
23027
  const _hoisted_3$8 = ["value", "placeholder"];
22981
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
23028
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22982
23029
  __name: "IntInput",
22983
23030
  props: {
22984
23031
  description: { default: "" },
@@ -23015,18 +23062,18 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
23015
23062
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
23016
23063
  placeholder: _ctx.placeholder
23017
23064
  }, null, 42, _hoisted_3$8)
23018
- ], 10, _hoisted_1$a);
23065
+ ], 10, _hoisted_1$9);
23019
23066
  };
23020
23067
  }
23021
23068
  });
23022
23069
  const IntInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23023
23070
  __proto__: null,
23024
- default: _sfc_main$b
23071
+ default: _sfc_main$a
23025
23072
  }, Symbol.toStringTag, { value: "Module" }));
23026
- const _hoisted_1$9 = ["title"];
23073
+ const _hoisted_1$8 = ["title"];
23027
23074
  const _hoisted_2$8 = { key: 0 };
23028
23075
  const _hoisted_3$7 = ["value", "placeholder"];
23029
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
23076
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23030
23077
  __name: "JSONInput",
23031
23078
  props: {
23032
23079
  description: { default: "" },
@@ -23058,36 +23105,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
23058
23105
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
23059
23106
  placeholder: _ctx.placeholder
23060
23107
  }, null, 42, _hoisted_3$7)
23061
- ], 10, _hoisted_1$9);
23108
+ ], 10, _hoisted_1$8);
23062
23109
  };
23063
23110
  }
23064
23111
  });
23065
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-1fc4f739"]]);
23112
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-1fc4f739"]]);
23066
23113
  const JSONInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23067
23114
  __proto__: null,
23068
23115
  default: JSONInput
23069
23116
  }, Symbol.toStringTag, { value: "Module" }));
23070
- function formatString(str, format) {
23071
- if (format === "titleCase") {
23072
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join(" ");
23073
- }
23074
- if (format === "pascal") {
23075
- return str.split("_").map((word) => word[0].toUpperCase() + word.slice(1).toLocaleLowerCase()).join("");
23076
- }
23077
- if (format === "camel") {
23078
- return str.split("_").map((word, index2) => index2 === 0 ? word : word[0].toUpperCase() + word.slice(1)).join("");
23079
- }
23080
- if (format === "snake") {
23081
- return str.split("").map((letter) => {
23082
- if (letter === letter.toUpperCase()) {
23083
- return `_${letter.toLowerCase()}`;
23084
- }
23085
- return letter;
23086
- }).join("");
23087
- }
23088
- return str;
23089
- }
23090
- const _hoisted_1$8 = ["title"];
23117
+ const _hoisted_1$7 = ["title"];
23091
23118
  const _hoisted_2$7 = { key: 0 };
23092
23119
  const _hoisted_3$6 = ["onKeydown", "disabled"];
23093
23120
  const _hoisted_4$2 = ["onClick"];
@@ -23100,7 +23127,7 @@ const _hoisted_6$1 = {
23100
23127
  class: "option-label"
23101
23128
  };
23102
23129
  const _hoisted_7 = { class: "option-description" };
23103
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23130
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23104
23131
  __name: "LinkField",
23105
23132
  props: {
23106
23133
  description: { default: "" },
@@ -23116,9 +23143,9 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23116
23143
  emits: ["update:modelValue", "selected"],
23117
23144
  setup(__props, { emit: __emit }) {
23118
23145
  useCssVars((_ctx) => ({
23119
- "6a2190dd": left.value,
23120
- "2c26b862": `${top.value}px`,
23121
- "4aa550a0": width.value
23146
+ "db4af1b6": left.value,
23147
+ "25d5c417": `${top.value}px`,
23148
+ "8cd9ab30": width.value
23122
23149
  }));
23123
23150
  const props2 = __props;
23124
23151
  const showList = ref(false);
@@ -23266,20 +23293,20 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
23266
23293
  ], 2)
23267
23294
  ]))
23268
23295
  ], 2)
23269
- ], 10, _hoisted_1$8);
23296
+ ], 10, _hoisted_1$7);
23270
23297
  };
23271
23298
  }
23272
23299
  });
23273
- const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-81840a60"]]);
23300
+ const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-947beb38"]]);
23274
23301
  const LinkField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23275
23302
  __proto__: null,
23276
23303
  default: LinkField
23277
23304
  }, Symbol.toStringTag, { value: "Module" }));
23278
- const _hoisted_1$7 = ["title"];
23305
+ const _hoisted_1$6 = ["title"];
23279
23306
  const _hoisted_2$6 = { key: 0 };
23280
23307
  const _hoisted_3$5 = { class: "password-input-wrap" };
23281
23308
  const _hoisted_4$1 = ["value", "type", "placeholder"];
23282
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23309
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23283
23310
  __name: "PasswordInput",
23284
23311
  props: {
23285
23312
  description: { default: "" },
@@ -23329,19 +23356,19 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
23329
23356
  onMousedown: toggleInputType
23330
23357
  }, " visibility ", 32)
23331
23358
  ])
23332
- ], 10, _hoisted_1$7);
23359
+ ], 10, _hoisted_1$6);
23333
23360
  };
23334
23361
  }
23335
23362
  });
23336
- const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-eec3e237"]]);
23363
+ const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-eec3e237"]]);
23337
23364
  const PasswordInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23338
23365
  __proto__: null,
23339
23366
  default: PasswordInput
23340
23367
  }, Symbol.toStringTag, { value: "Module" }));
23341
- const _hoisted_1$6 = ["title"];
23368
+ const _hoisted_1$5 = ["title"];
23342
23369
  const _hoisted_2$5 = ["for"];
23343
23370
  const _hoisted_3$4 = ["id", "type", "placeholder", "required", "pattern"];
23344
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23371
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23345
23372
  __name: "Password",
23346
23373
  props: {
23347
23374
  field: {},
@@ -23386,21 +23413,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
23386
23413
  ])
23387
23414
  ], 8, _hoisted_2$5),
23388
23415
  createVNode(unref(MaterialIcon), {
23389
- onClick: _cache[1] || (_cache[1] = ($event) => showPassword()),
23416
+ onClick: showPassword,
23390
23417
  icon: unref(seePassword) ? "visibility" : "visibility_off"
23391
23418
  }, null, 8, ["icon"])
23392
- ], 10, _hoisted_1$6)) : createCommentVNode("", true);
23419
+ ], 10, _hoisted_1$5)) : createCommentVNode("", true);
23393
23420
  };
23394
23421
  }
23395
23422
  });
23396
- const Password = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-c0d14aa1"]]);
23423
+ const Password = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-800f4000"]]);
23397
23424
  const Password$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23398
23425
  __proto__: null,
23399
23426
  default: Password
23400
23427
  }, Symbol.toStringTag, { value: "Module" }));
23401
- const _hoisted_1$5 = ["title"];
23428
+ const _hoisted_1$4 = ["title"];
23402
23429
  const _hoisted_2$4 = { key: 0 };
23403
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23430
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23404
23431
  __name: "ReadOnlyInput",
23405
23432
  props: {
23406
23433
  field: {},
@@ -23415,30 +23442,15 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
23415
23442
  }, [
23416
23443
  _ctx.field.label ? (openBlock(), createElementBlock("label", _hoisted_2$4, toDisplayString(_ctx.field.label), 1)) : createCommentVNode("", true),
23417
23444
  createTextVNode(" " + toDisplayString(_ctx.modelValue), 1)
23418
- ], 10, _hoisted_1$5);
23445
+ ], 10, _hoisted_1$4);
23419
23446
  };
23420
23447
  }
23421
23448
  });
23422
- const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-92851182"]]);
23449
+ const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-b3b5a368"]]);
23423
23450
  const ReadOnlyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23424
23451
  __proto__: null,
23425
23452
  default: ReadOnlyInput
23426
23453
  }, Symbol.toStringTag, { value: "Module" }));
23427
- const _hoisted_1$4 = { ref: "el" };
23428
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23429
- __name: "LangText",
23430
- props: {
23431
- input: {}
23432
- },
23433
- setup(__props) {
23434
- return (_ctx, _cache) => {
23435
- return openBlock(), createElementBlock(Fragment$1, null, [
23436
- createBaseVNode("span", _hoisted_1$4, null, 512),
23437
- createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
23438
- ], 64);
23439
- };
23440
- }
23441
- });
23442
23454
  const _hoisted_1$3 = ["title"];
23443
23455
  const _hoisted_2$3 = ["onClick"];
23444
23456
  const _hoisted_3$3 = ["onClick"];
@@ -23473,9 +23485,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23473
23485
  emits: ["update:modelValue", "selected"],
23474
23486
  setup(__props, { emit: __emit }) {
23475
23487
  useCssVars((_ctx) => ({
23476
- "81cee438": left.value,
23477
- "293d7f96": `${top.value}px`,
23478
- "2495fb89": width.value
23488
+ "1c3856b2": left.value,
23489
+ "62aaf5e4": `${top.value}px`,
23490
+ "6b6f4c7b": width.value
23479
23491
  }));
23480
23492
  const selectEl = ref();
23481
23493
  const dropdown = ref();
@@ -23574,7 +23586,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23574
23586
  for: "label",
23575
23587
  class: normalizeClass({ active: showList.value })
23576
23588
  }, [
23577
- createVNode(_sfc_main$5, { input: _ctx.label }, null, 8, ["input"])
23589
+ createVNode(unref(LangText), { input: _ctx.label }, null, 8, ["input"])
23578
23590
  ], 2)) : createCommentVNode("", true),
23579
23591
  createBaseVNode("div", {
23580
23592
  class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -23586,7 +23598,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23586
23598
  class: normalizeClass(["input", { active: showList.value }]),
23587
23599
  name: "select-input"
23588
23600
  }, [
23589
- createVNode(_sfc_main$5, { input: displayValue.value }, null, 8, ["input"])
23601
+ createVNode(unref(LangText), { input: displayValue.value }, null, 8, ["input"])
23590
23602
  ], 10, _hoisted_2$3),
23591
23603
  (openBlock(), createBlock(Teleport, { to: "#app" }, [
23592
23604
  createBaseVNode("div", {
@@ -23599,7 +23611,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23599
23611
  key: option2.value,
23600
23612
  onClick: ($event) => handleSelect(option2)
23601
23613
  }, [
23602
- createVNode(_sfc_main$5, {
23614
+ createVNode(unref(LangText), {
23603
23615
  input: option2.label
23604
23616
  }, null, 8, ["input"])
23605
23617
  ], 8, _hoisted_3$3);
@@ -23611,7 +23623,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23611
23623
  };
23612
23624
  }
23613
23625
  });
23614
- const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-0b2eccce"]]);
23626
+ const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-028ea61b"]]);
23615
23627
  const SelectField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23616
23628
  __proto__: null,
23617
23629
  default: SelectField
@@ -26347,7 +26359,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26347
26359
  };
26348
26360
  }
26349
26361
  });
26350
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-c5cacca2"]]);
26362
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-b01223bc"]]);
26351
26363
  const TableField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26352
26364
  __proto__: null,
26353
26365
  default: TableField
@@ -26404,7 +26416,7 @@ const DurationInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defin
26404
26416
  export {
26405
26417
  Address,
26406
26418
  BagelVue,
26407
- BankDetails,
26419
+ BankDetailsArray,
26408
26420
  BarChart$1 as BarChart,
26409
26421
  Btn$1 as Btn,
26410
26422
  CheckInput$1 as CheckInput,
@@ -26423,6 +26435,7 @@ export {
26423
26435
  FormSchema,
26424
26436
  IntInput,
26425
26437
  JSONInput$1 as JSONInput,
26438
+ LangText,
26426
26439
  LinkField$1 as LinkField,
26427
26440
  ListItem,
26428
26441
  ListView,
@@ -26452,6 +26465,7 @@ export {
26452
26465
  computeFields,
26453
26466
  copyText,
26454
26467
  debounce,
26468
+ formatString,
26455
26469
  initials,
26456
26470
  keyToLabel,
26457
26471
  parseLocale,