@bagelink/vue 0.0.158 → 0.0.162

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 (88) hide show
  1. package/dist/components/Btn.vue.d.ts +2 -2
  2. package/dist/components/Btn.vue.d.ts.map +1 -1
  3. package/dist/components/Comments.vue.d.ts.map +1 -1
  4. package/dist/components/DropDown.vue.d.ts.map +1 -1
  5. package/dist/components/FileUploader.vue.d.ts +60 -0
  6. package/dist/components/FileUploader.vue.d.ts.map +1 -0
  7. package/dist/components/LangText.vue.d.ts.map +1 -1
  8. package/dist/components/NavBar.vue.d.ts.map +1 -1
  9. package/dist/components/PersonPreview.vue.d.ts +1 -1
  10. package/dist/components/PersonPreview.vue.d.ts.map +1 -1
  11. package/dist/components/PersonPreviewFormkit.vue.d.ts +1 -1
  12. package/dist/components/PersonPreviewFormkit.vue.d.ts.map +1 -1
  13. package/dist/components/RTXEditor.vue.d.ts.map +1 -1
  14. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  15. package/dist/components/charts/BarChart.vue.d.ts.map +1 -1
  16. package/dist/components/dashboard/Lineart.vue.d.ts +1 -1
  17. package/dist/components/dashboard/Lineart.vue.d.ts.map +1 -1
  18. package/dist/components/form/inputs/CheckInput.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/Checkbox.vue.d.ts.map +1 -1
  20. package/dist/components/form/inputs/PasswordInput.vue.d.ts.map +1 -1
  21. package/dist/components/formkit/AddressArray.vue.d.ts.map +1 -1
  22. package/dist/components/formkit/BankDetailsArray.vue.d.ts.map +1 -1
  23. package/dist/components/formkit/ContactArrayFormKit.vue.d.ts.map +1 -1
  24. package/dist/components/formkit/FileUploader.vue.d.ts.map +1 -1
  25. package/dist/components/formkit/MiscFields.vue.d.ts.map +1 -1
  26. package/dist/components/formkit/index.d.ts.map +1 -1
  27. package/dist/components/index.d.ts +2 -1
  28. package/dist/components/index.d.ts.map +1 -1
  29. package/dist/index.cjs +442 -269
  30. package/dist/index.mjs +442 -269
  31. package/dist/style.css +1600 -1404
  32. package/package.json +1 -1
  33. package/src/components/Btn.vue +127 -132
  34. package/src/components/Comments.vue +155 -169
  35. package/src/components/DropDown.vue +73 -77
  36. package/src/components/FileUploader.vue +133 -141
  37. package/src/components/FormKitTable.vue +191 -205
  38. package/src/components/LangText.vue +14 -14
  39. package/src/components/NavBar.vue +264 -261
  40. package/src/components/PersonPreview.vue +123 -148
  41. package/src/components/PersonPreviewFormkit.vue +124 -148
  42. package/src/components/RTXEditor.vue +91 -91
  43. package/src/components/TableSchema.vue +150 -156
  44. package/src/components/charts/BarChart.vue +212 -227
  45. package/src/components/dashboard/Lineart.vue +117 -130
  46. package/src/components/form/inputs/CheckInput.vue +90 -90
  47. package/src/components/form/inputs/Checkbox.vue +38 -41
  48. package/src/components/form/inputs/PasswordInput.vue +56 -63
  49. package/src/components/formkit/AddressArray.vue +150 -173
  50. package/src/components/formkit/BankDetailsArray.vue +175 -198
  51. package/src/components/formkit/ContactArrayFormKit.vue +124 -142
  52. package/src/components/formkit/FileUploader.vue +256 -260
  53. package/src/components/formkit/MiscFields.vue +42 -42
  54. package/src/components/formkit/Toggle.vue +97 -97
  55. package/src/components/formkit/index.ts +3 -3
  56. package/src/components/index.ts +2 -1
  57. package/src/styles/bagel.css +1 -0
  58. package/src/styles/buttons.css +5 -0
  59. package/src/styles/dark.css +46 -0
  60. package/src/styles/fonts/Ploni.css +8 -8
  61. package/src/styles/inputs.css +57 -13
  62. package/src/styles/layout.css +43 -0
  63. package/src/styles/text.css +83 -10
  64. package/src/styles/theme.css +25 -155
  65. package/src/styles/fonts/Ploni/ploni-black.eot +0 -0
  66. package/src/styles/fonts/Ploni/ploni-black.woff +0 -0
  67. package/src/styles/fonts/Ploni/ploni-black.woff2 +0 -0
  68. package/src/styles/fonts/Ploni/ploni-bold.eot +0 -0
  69. package/src/styles/fonts/Ploni/ploni-bold.woff +0 -0
  70. package/src/styles/fonts/Ploni/ploni-bold.woff2 +0 -0
  71. package/src/styles/fonts/Ploni/ploni-demibold.eot +0 -0
  72. package/src/styles/fonts/Ploni/ploni-demibold.woff +0 -0
  73. package/src/styles/fonts/Ploni/ploni-demibold.woff2 +0 -0
  74. package/src/styles/fonts/Ploni/ploni-light.eot +0 -0
  75. package/src/styles/fonts/Ploni/ploni-light.woff +0 -0
  76. package/src/styles/fonts/Ploni/ploni-light.woff2 +0 -0
  77. package/src/styles/fonts/Ploni/ploni-medium.eot +0 -0
  78. package/src/styles/fonts/Ploni/ploni-medium.woff +0 -0
  79. package/src/styles/fonts/Ploni/ploni-medium.woff2 +0 -0
  80. package/src/styles/fonts/Ploni/ploni-regular.eot +0 -0
  81. package/src/styles/fonts/Ploni/ploni-regular.woff +0 -0
  82. package/src/styles/fonts/Ploni/ploni-regular.woff2 +0 -0
  83. package/src/styles/fonts/Ploni/ploni-ultrabold.eot +0 -0
  84. package/src/styles/fonts/Ploni/ploni-ultrabold.woff +0 -0
  85. package/src/styles/fonts/Ploni/ploni-ultrabold.woff2 +0 -0
  86. package/src/styles/fonts/Ploni/ploni-ultralight.eot +0 -0
  87. package/src/styles/fonts/Ploni/ploni-ultralight.woff +0 -0
  88. package/src/styles/fonts/Ploni/ploni-ultralight.woff2 +0 -0
package/dist/index.mjs CHANGED
@@ -2291,7 +2291,7 @@ const ModalPlugin = {
2291
2291
  },
2292
2292
  render() {
2293
2293
  return modalStack.value.map((modal, index2) => {
2294
- const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$O;
2294
+ const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$P;
2295
2295
  return h(
2296
2296
  renderComponent,
2297
2297
  {
@@ -2367,8 +2367,8 @@ function useEscape(event, closeModel) {
2367
2367
  closeModel();
2368
2368
  }
2369
2369
  }
2370
- const _hoisted_1$Z = { ref: "el" };
2371
- const _sfc_main$T = /* @__PURE__ */ defineComponent({
2370
+ const _hoisted_1$_ = { ref: "el" };
2371
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
2372
2372
  __name: "LangText",
2373
2373
  props: {
2374
2374
  input: {}
@@ -2376,7 +2376,7 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
2376
2376
  setup(__props) {
2377
2377
  return (_ctx, _cache) => {
2378
2378
  return openBlock(), createElementBlock(Fragment$1, null, [
2379
- createElementVNode("span", _hoisted_1$Z, null, 512),
2379
+ createElementVNode("span", _hoisted_1$_, null, 512),
2380
2380
  createTextVNode(" " + toDisplayString(_ctx.input) + " ", 1)
2381
2381
  ], 64);
2382
2382
  };
@@ -14492,8 +14492,8 @@ const marks = {
14492
14492
  }
14493
14493
  };
14494
14494
  const schema = new Schema({ nodes, marks });
14495
- const _hoisted_1$Y = ["id"];
14496
- const _sfc_main$S = /* @__PURE__ */ defineComponent({
14495
+ const _hoisted_1$Z = ["id"];
14496
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
14497
14497
  __name: "RTXEditor",
14498
14498
  props: {
14499
14499
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -14570,11 +14570,11 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14570
14570
  onClick: focusEditor,
14571
14571
  id: `canvas-${_ctx.elementId}`,
14572
14572
  onKeydown: _cache[0] || (_cache[0] = withKeys(withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
14573
- }, null, 40, _hoisted_1$Y);
14573
+ }, null, 40, _hoisted_1$Z);
14574
14574
  };
14575
14575
  }
14576
14576
  });
14577
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
14577
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
14578
14578
  __name: "MaterialIcon",
14579
14579
  props: {
14580
14580
  icon: {},
@@ -14589,17 +14589,17 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
14589
14589
  };
14590
14590
  }
14591
14591
  });
14592
- const _hoisted_1$X = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
14593
- const _hoisted_2$P = [
14594
- _hoisted_1$X
14592
+ const _hoisted_1$Y = /* @__PURE__ */ createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14593
+ const _hoisted_2$Q = [
14594
+ _hoisted_1$Y
14595
14595
  ];
14596
- const _hoisted_3$H = { class: "full-nav" };
14597
- const _hoisted_4$q = { class: "nav-scroll" };
14598
- const _hoisted_5$l = { class: "nav-links-wrapper" };
14596
+ const _hoisted_3$I = { class: "full-nav" };
14597
+ const _hoisted_4$r = { class: "nav-scroll" };
14598
+ const _hoisted_5$m = { class: "nav-links-wrapper" };
14599
14599
  const _hoisted_6$h = { class: "icon-font" };
14600
14600
  const _hoisted_7$c = { class: "tooltip" };
14601
14601
  const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
14602
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14602
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
14603
14603
  __name: "NavBar",
14604
14604
  props: {
14605
14605
  links: {},
@@ -14623,10 +14623,10 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14623
14623
  role: "button",
14624
14624
  "aria-label": "Toggle Navigation",
14625
14625
  tabindex: "0"
14626
- }, _hoisted_2$P, 32),
14627
- createElementVNode("div", _hoisted_3$H, [
14628
- createElementVNode("div", _hoisted_4$q, [
14629
- createElementVNode("div", _hoisted_5$l, [
14626
+ }, _hoisted_2$Q, 32),
14627
+ createElementVNode("div", _hoisted_3$I, [
14628
+ createElementVNode("div", _hoisted_4$r, [
14629
+ createElementVNode("div", _hoisted_5$m, [
14630
14630
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a = _ctx.links) == null ? void 0 : _a.call(_ctx), (link) => {
14631
14631
  return openBlock(), createBlock(_component_RouterLink, {
14632
14632
  class: "nav-button",
@@ -14650,15 +14650,15 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14650
14650
  };
14651
14651
  }
14652
14652
  });
14653
- const _hoisted_1$W = {
14653
+ const _hoisted_1$X = {
14654
14654
  key: 0,
14655
14655
  class: "loading"
14656
14656
  };
14657
- const _hoisted_2$O = {
14657
+ const _hoisted_2$P = {
14658
14658
  key: 1,
14659
14659
  class: "btn-flex"
14660
14660
  };
14661
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
14661
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
14662
14662
  __name: "Btn",
14663
14663
  props: {
14664
14664
  disabled: { type: Boolean, default: false },
@@ -14694,8 +14694,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14694
14694
  })
14695
14695
  }, {
14696
14696
  default: withCtx(() => [
14697
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$W)) : (openBlock(), createElementBlock("div", _hoisted_2$O, [
14698
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$R), {
14697
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$X)) : (openBlock(), createElementBlock("div", _hoisted_2$P, [
14698
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$S), {
14699
14699
  key: 0,
14700
14700
  icon: _ctx.icon
14701
14701
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -14703,7 +14703,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14703
14703
  !unref(slots)["default"] && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
14704
14704
  createTextVNode(toDisplayString(_ctx.value), 1)
14705
14705
  ], 64)) : createCommentVNode("", true),
14706
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$R), {
14706
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$S), {
14707
14707
  key: 2,
14708
14708
  icon: props2["icon.end"]
14709
14709
  }, null, 8, ["icon"])) : createCommentVNode("", true)
@@ -14721,11 +14721,11 @@ const _export_sfc = (sfc, props2) => {
14721
14721
  }
14722
14722
  return target;
14723
14723
  };
14724
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-b94d75fb"]]);
14725
- const _hoisted_1$V = { class: "tool-bar" };
14726
- const _hoisted_2$N = { class: "modal-title" };
14727
- const _hoisted_3$G = { class: "modal-footer mt-3" };
14728
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
14724
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8fe48560"]]);
14725
+ const _hoisted_1$W = { class: "tool-bar" };
14726
+ const _hoisted_2$O = { class: "modal-title" };
14727
+ const _hoisted_3$H = { class: "modal-footer mt-3" };
14728
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14729
14729
  __name: "Modal",
14730
14730
  props: {
14731
14731
  side: { type: Boolean },
@@ -14771,7 +14771,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14771
14771
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
14772
14772
  }, ["stop"]))
14773
14773
  }, [
14774
- createElementVNode("header", _hoisted_1$V, [
14774
+ createElementVNode("header", _hoisted_1$W, [
14775
14775
  renderSlot(_ctx.$slots, "toolbar"),
14776
14776
  createVNode(unref(Btn), {
14777
14777
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -14779,10 +14779,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14779
14779
  icon: "close",
14780
14780
  onClick: closeModal
14781
14781
  }, null, 8, ["style"]),
14782
- createElementVNode("h3", _hoisted_2$N, toDisplayString(_ctx.title), 1)
14782
+ createElementVNode("h3", _hoisted_2$O, toDisplayString(_ctx.title), 1)
14783
14783
  ]),
14784
14784
  renderSlot(_ctx.$slots, "default"),
14785
- createElementVNode("footer", _hoisted_3$G, [
14785
+ createElementVNode("footer", _hoisted_3$H, [
14786
14786
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.actions, (action, i2) => {
14787
14787
  return openBlock(), createBlock(unref(Btn), mergeProps({
14788
14788
  key: i2,
@@ -14797,10 +14797,10 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14797
14797
  };
14798
14798
  }
14799
14799
  });
14800
- const _hoisted_1$U = { class: "dropdown-title" };
14801
- const _hoisted_2$M = { class: "dropdown-body" };
14802
- const _hoisted_3$F = ["onClick"];
14803
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
14800
+ const _hoisted_1$V = { class: "dropdown-title" };
14801
+ const _hoisted_2$N = { class: "dropdown-body" };
14802
+ const _hoisted_3$G = ["onClick"];
14803
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14804
14804
  __name: "DropDown",
14805
14805
  props: {
14806
14806
  modelValue: String,
@@ -14826,31 +14826,31 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
14826
14826
  class: normalizeClass(["dropdown", { opendrop: isOpen.value }]),
14827
14827
  onClick: toggleDropdown
14828
14828
  }, [
14829
- createElementVNode("div", _hoisted_1$U, [
14829
+ createElementVNode("div", _hoisted_1$V, [
14830
14830
  createTextVNode(toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
14831
- createVNode(unref(_sfc_main$R), { icon: "keyboard_arrow_down" })
14831
+ createVNode(unref(_sfc_main$S), { icon: "keyboard_arrow_down" })
14832
14832
  ]),
14833
- createElementVNode("div", _hoisted_2$M, [
14833
+ createElementVNode("div", _hoisted_2$N, [
14834
14834
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(__props.options, (option2, index2) => {
14835
14835
  return openBlock(), createElementBlock("p", {
14836
14836
  key: index2,
14837
14837
  onClick: withModifiers(($event) => selectOption(option2, index2), ["stop"])
14838
- }, toDisplayString(option2), 9, _hoisted_3$F);
14838
+ }, toDisplayString(option2), 9, _hoisted_3$G);
14839
14839
  }), 128))
14840
14840
  ])
14841
14841
  ], 2);
14842
14842
  };
14843
14843
  }
14844
14844
  });
14845
- const _hoisted_1$T = { class: "card list-view grid thin" };
14846
- const _hoisted_2$L = { class: "list-header flex gap-3 align-items-top" };
14847
- const _hoisted_3$E = {
14845
+ const _hoisted_1$U = { class: "card list-view grid thin" };
14846
+ const _hoisted_2$M = { class: "list-header flex gap-3 align-items-top" };
14847
+ const _hoisted_3$F = {
14848
14848
  key: 0,
14849
14849
  class: "bagel-input search-wrap"
14850
14850
  };
14851
- const _hoisted_4$p = ["placeholder"];
14852
- const _hoisted_5$k = { class: "list-content grid auto-flow-rows align-items-start" };
14853
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
14851
+ const _hoisted_4$q = ["placeholder"];
14852
+ const _hoisted_5$l = { class: "list-content grid auto-flow-rows align-items-start" };
14853
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
14854
14854
  __name: "ListView",
14855
14855
  props: {
14856
14856
  enableAdd: { type: Boolean },
@@ -14866,17 +14866,17 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14866
14866
  debounce(() => emit2("debounce", searchTerm.value));
14867
14867
  };
14868
14868
  return (_ctx, _cache) => {
14869
- return openBlock(), createElementBlock("div", _hoisted_1$T, [
14870
- createElementVNode("div", _hoisted_2$L, [
14871
- _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$E, [
14869
+ return openBlock(), createElementBlock("div", _hoisted_1$U, [
14870
+ createElementVNode("div", _hoisted_2$M, [
14871
+ _ctx.enableSearch ? (openBlock(), createElementBlock("div", _hoisted_3$F, [
14872
14872
  withDirectives(createElementVNode("input", {
14873
14873
  placeholder: _ctx.searchPlaceholder,
14874
14874
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
14875
14875
  onInput: _cache[1] || (_cache[1] = ($event) => search())
14876
- }, null, 40, _hoisted_4$p), [
14876
+ }, null, 40, _hoisted_4$q), [
14877
14877
  [vModelText, searchTerm.value]
14878
14878
  ]),
14879
- createVNode(unref(_sfc_main$R), {
14879
+ createVNode(unref(_sfc_main$S), {
14880
14880
  class: "txtgray",
14881
14881
  icon: "search"
14882
14882
  })
@@ -14888,16 +14888,16 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14888
14888
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
14889
14889
  })) : createCommentVNode("", true)
14890
14890
  ]),
14891
- createElementVNode("div", _hoisted_5$k, [
14891
+ createElementVNode("div", _hoisted_5$l, [
14892
14892
  renderSlot(_ctx.$slots, "default")
14893
14893
  ])
14894
14894
  ]);
14895
14895
  };
14896
14896
  }
14897
14897
  });
14898
- const _hoisted_1$S = { class: "txt16 no-margin" };
14899
- const _hoisted_2$K = { class: "txt14 no-margin txtgray" };
14900
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
14898
+ const _hoisted_1$T = { class: "txt16 no-margin" };
14899
+ const _hoisted_2$L = { class: "txt14 no-margin txtgray" };
14900
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14901
14901
  __name: "ListItem",
14902
14902
  props: {
14903
14903
  to: {}
@@ -14909,10 +14909,10 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14909
14909
  class: "list-item ellipsis"
14910
14910
  }, {
14911
14911
  default: withCtx(() => [
14912
- createElementVNode("p", _hoisted_1$S, [
14912
+ createElementVNode("p", _hoisted_1$T, [
14913
14913
  renderSlot(_ctx.$slots, "default")
14914
14914
  ]),
14915
- createElementVNode("p", _hoisted_2$K, [
14915
+ createElementVNode("p", _hoisted_2$L, [
14916
14916
  renderSlot(_ctx.$slots, "subtitle")
14917
14917
  ])
14918
14918
  ]),
@@ -14921,11 +14921,11 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14921
14921
  };
14922
14922
  }
14923
14923
  });
14924
- const _hoisted_1$R = { class: "h-100 grid list-view gap-3" };
14925
- const _hoisted_2$J = { class: "card tabs-top" };
14926
- const _hoisted_3$D = { class: "tabs grid auto-flow-columns fit-content" };
14927
- const _hoisted_4$o = ["onClick"];
14928
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
14924
+ const _hoisted_1$S = { class: "h-100 grid list-view gap-3" };
14925
+ const _hoisted_2$K = { class: "card tabs-top" };
14926
+ const _hoisted_3$E = { class: "tabs grid auto-flow-columns fit-content" };
14927
+ const _hoisted_4$p = ["onClick"];
14928
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14929
14929
  __name: "TabbedLayout",
14930
14930
  props: {
14931
14931
  title: {},
@@ -14953,10 +14953,10 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14953
14953
  activeTab.value = firstTab;
14954
14954
  });
14955
14955
  return (_ctx, _cache) => {
14956
- return openBlock(), createElementBlock("div", _hoisted_1$R, [
14957
- createElementVNode("div", _hoisted_2$J, [
14956
+ return openBlock(), createElementBlock("div", _hoisted_1$S, [
14957
+ createElementVNode("div", _hoisted_2$K, [
14958
14958
  renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
14959
- createElementVNode("div", _hoisted_3$D, [
14959
+ createElementVNode("div", _hoisted_3$E, [
14960
14960
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.tabs, (tab) => {
14961
14961
  return openBlock(), createElementBlock("div", {
14962
14962
  class: normalizeClass([{
@@ -14964,7 +14964,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14964
14964
  }, "tab"]),
14965
14965
  key: tab,
14966
14966
  onClick: ($event) => changeTab(tab)
14967
- }, toDisplayString(tab), 11, _hoisted_4$o);
14967
+ }, toDisplayString(tab), 11, _hoisted_4$p);
14968
14968
  }), 128))
14969
14969
  ])
14970
14970
  ]),
@@ -14980,16 +14980,16 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14980
14980
  };
14981
14981
  }
14982
14982
  });
14983
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-4ac29f1d"]]);
14984
- const _hoisted_1$Q = { class: "comments-wrap" };
14985
- const _hoisted_2$I = { class: "comment-list" };
14986
- const _hoisted_3$C = { class: "comment-top" };
14987
- const _hoisted_4$n = { class: "comment-owner" };
14988
- const _hoisted_5$j = { class: "comment-time" };
14983
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-4ac29f1d"]]);
14984
+ const _hoisted_1$R = { class: "comments-wrap" };
14985
+ const _hoisted_2$J = { class: "comment-list" };
14986
+ const _hoisted_3$D = { class: "comment-top" };
14987
+ const _hoisted_4$o = { class: "comment-owner" };
14988
+ const _hoisted_5$k = { class: "comment-time" };
14989
14989
  const _hoisted_6$g = { class: "comment-actions" };
14990
14990
  const _hoisted_7$b = ["innerHTML"];
14991
14991
  const _hoisted_8$6 = { class: "new-comment" };
14992
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
14992
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14993
14993
  __name: "Comments",
14994
14994
  props: {
14995
14995
  ref_table: {},
@@ -15003,9 +15003,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15003
15003
  const props2 = __props;
15004
15004
  const fetchData = async () => {
15005
15005
  comments.value = [];
15006
- comments.value = await bagel.get(
15007
- `comments/${props2.ref_table}/${props2.ref_id}`
15008
- );
15006
+ comments.value = await bagel.get(`comments/${props2.ref_table}/${props2.ref_id}`);
15009
15007
  };
15010
15008
  onMounted(fetchData);
15011
15009
  watch(() => props2.ref_id, fetchData);
@@ -15034,8 +15032,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15034
15032
  void fetchData();
15035
15033
  };
15036
15034
  return (_ctx, _cache) => {
15037
- return openBlock(), createElementBlock("div", _hoisted_1$Q, [
15038
- createElementVNode("div", _hoisted_2$I, [
15035
+ return openBlock(), createElementBlock("div", _hoisted_1$R, [
15036
+ createElementVNode("div", _hoisted_2$J, [
15039
15037
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(comments), (comment) => {
15040
15038
  var _a, _b, _c;
15041
15039
  return openBlock(), createElementBlock("div", {
@@ -15045,23 +15043,23 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15045
15043
  }, "comment"]),
15046
15044
  key: comment.id
15047
15045
  }, [
15048
- createElementVNode("div", _hoisted_3$C, [
15049
- createElementVNode("div", _hoisted_4$n, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
15050
- createElementVNode("div", _hoisted_5$j, toDisplayString(comment.updated_at.split("T")[0]), 1),
15046
+ createElementVNode("div", _hoisted_3$D, [
15047
+ createElementVNode("div", _hoisted_4$o, toDisplayString(comment.sender.first_name) + " " + toDisplayString(comment.sender.last_name), 1),
15048
+ createElementVNode("div", _hoisted_5$k, toDisplayString(comment.updated_at.split("T")[0]), 1),
15051
15049
  createElementVNode("div", _hoisted_6$g, [
15052
- createVNode(unref(_sfc_main$R), {
15050
+ createVNode(unref(_sfc_main$S), {
15053
15051
  size: 1,
15054
15052
  class: "edit",
15055
15053
  icon: "edit",
15056
15054
  onClick: ($event) => isRef(editComment) ? editComment.value = comment : editComment = comment
15057
15055
  }, null, 8, ["onClick"]),
15058
- createVNode(unref(_sfc_main$R), {
15056
+ createVNode(unref(_sfc_main$S), {
15059
15057
  size: 1.2,
15060
15058
  class: "delete",
15061
15059
  icon: "delete",
15062
15060
  onClick: ($event) => deleteComment(comment.id)
15063
15061
  }, null, 8, ["onClick"]),
15064
- createVNode(unref(_sfc_main$R), {
15062
+ createVNode(unref(_sfc_main$S), {
15065
15063
  size: 1.2,
15066
15064
  class: "save",
15067
15065
  icon: "save",
@@ -15069,7 +15067,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15069
15067
  })
15070
15068
  ])
15071
15069
  ]),
15072
- unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$S), {
15070
+ unref(editComment) !== null && ((_c = unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (openBlock(), createBlock(unref(_sfc_main$T), {
15073
15071
  key: 0,
15074
15072
  modelValue: unref(editComment).body_html,
15075
15073
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => unref(editComment).body_html = $event),
@@ -15083,7 +15081,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15083
15081
  }), 128))
15084
15082
  ]),
15085
15083
  createElementVNode("div", _hoisted_8$6, [
15086
- createVNode(unref(_sfc_main$S), {
15084
+ createVNode(unref(_sfc_main$T), {
15087
15085
  class: "comment-input",
15088
15086
  modelValue: unref(bodyHtml),
15089
15087
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -15103,10 +15101,10 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15103
15101
  };
15104
15102
  }
15105
15103
  });
15106
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-ff29354a"]]);
15107
- const _hoisted_1$P = { class: "page-top" };
15108
- const _hoisted_2$H = { class: "top-title" };
15109
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
15104
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-2eead7c8"]]);
15105
+ const _hoisted_1$Q = { class: "page-top" };
15106
+ const _hoisted_2$I = { class: "top-title" };
15107
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15110
15108
  __name: "PageTitle",
15111
15109
  props: {
15112
15110
  value: {
@@ -15116,8 +15114,8 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
15116
15114
  },
15117
15115
  setup(__props) {
15118
15116
  return (_ctx, _cache) => {
15119
- return openBlock(), createElementBlock("div", _hoisted_1$P, [
15120
- createElementVNode("h1", _hoisted_2$H, [
15117
+ return openBlock(), createElementBlock("div", _hoisted_1$Q, [
15118
+ createElementVNode("h1", _hoisted_2$I, [
15121
15119
  renderSlot(_ctx.$slots, "default"),
15122
15120
  createTextVNode(" " + toDisplayString(__props.value), 1)
15123
15121
  ])
@@ -15125,9 +15123,9 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
15125
15123
  };
15126
15124
  }
15127
15125
  });
15128
- const _hoisted_1$O = { class: "tool-bar" };
15129
- const _hoisted_2$G = { class: "modal-title" };
15130
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
15126
+ const _hoisted_1$P = { class: "tool-bar" };
15127
+ const _hoisted_2$H = { class: "modal-title" };
15128
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
15131
15129
  __name: "ModalForm",
15132
15130
  props: {
15133
15131
  side: { type: Boolean },
@@ -15200,7 +15198,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15200
15198
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
15201
15199
  }, ["stop"]))
15202
15200
  }, [
15203
- createElementVNode("header", _hoisted_1$O, [
15201
+ createElementVNode("header", _hoisted_1$P, [
15204
15202
  renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
15205
15203
  createVNode(unref(Btn), {
15206
15204
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -15208,9 +15206,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15208
15206
  icon: "close",
15209
15207
  onClick: closeModal
15210
15208
  }, null, 8, ["style"]),
15211
- createElementVNode("h3", _hoisted_2$G, toDisplayString(_ctx.title), 1)
15209
+ createElementVNode("h3", _hoisted_2$H, toDisplayString(_ctx.title), 1)
15212
15210
  ]),
15213
- createVNode(unref(_sfc_main$F), {
15211
+ createVNode(unref(_sfc_main$H), {
15214
15212
  onDelete: _ctx.onDelete ? runDelete : void 0,
15215
15213
  modelValue: _ctx.modelValue,
15216
15214
  "onUpdate:modelValue": handleEmit,
@@ -15222,67 +15220,8 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15222
15220
  };
15223
15221
  }
15224
15222
  });
15225
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1799b7d0"]]);
15226
- const _hoisted_1$N = {
15227
- key: 0,
15228
- class: "data"
15229
- };
15230
- const _hoisted_2$F = {
15231
- key: 0,
15232
- class: "mb-3 mt-0"
15233
- };
15234
- const _hoisted_3$B = { class: "key" };
15235
- const _hoisted_4$m = { key: 1 };
15236
- const _hoisted_5$i = { class: "key" };
15237
- const _hoisted_6$f = { class: "vlue" };
15238
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
15239
- __name: "DataPreview",
15240
- props: {
15241
- data: {},
15242
- schema: {},
15243
- title: {},
15244
- i18nT: { type: Function, default: (str) => str }
15245
- },
15246
- setup(__props) {
15247
- const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
15248
- return (_ctx, _cache) => {
15249
- var _a;
15250
- return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$N, [
15251
- _ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$F, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
15252
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
15253
- return openBlock(), createElementBlock("div", {
15254
- key: field.id,
15255
- class: "data-row"
15256
- }, [
15257
- createElementVNode("div", _hoisted_3$B, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
15258
- (openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
15259
- default: withCtx(() => [
15260
- createTextVNode(toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
15261
- ]),
15262
- _: 2
15263
- }, 1024))
15264
- ]);
15265
- }), 128)),
15266
- !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_4$m, [
15267
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(_ctx.data).filter(
15268
- ([key]) => !keysToIgnore.includes(key)
15269
- ), ([key, value]) => {
15270
- return openBlock(), createElementBlock("div", {
15271
- class: "data-row",
15272
- key
15273
- }, [
15274
- createElementVNode("div", _hoisted_5$i, toDisplayString(_ctx.i18nT(unref(keyToLabel)(key))), 1),
15275
- createElementVNode("div", _hoisted_6$f, toDisplayString(value), 1)
15276
- ]);
15277
- }), 128))
15278
- ])) : createCommentVNode("", true),
15279
- renderSlot(_ctx.$slots, "footer", {}, void 0, true)
15280
- ])) : createCommentVNode("", true);
15281
- };
15282
- }
15283
- });
15284
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-0350cc0c"]]);
15285
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
15223
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1799b7d0"]]);
15224
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15286
15225
  __name: "FormSchema",
15287
15226
  props: {
15288
15227
  modelValue: {},
@@ -15355,14 +15294,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15355
15294
  };
15356
15295
  }
15357
15296
  });
15358
- const _hoisted_1$M = { class: "table-list-wrap h-100" };
15359
- const _hoisted_2$E = { class: "infinite-wrapper" };
15360
- const _hoisted_3$A = { class: "row first-row" };
15361
- const _hoisted_4$l = ["onClick"];
15362
- const _hoisted_5$h = { class: "flex" };
15363
- const _hoisted_6$e = ["onClick"];
15297
+ const _hoisted_1$O = { class: "table-list-wrap h-100" };
15298
+ const _hoisted_2$G = { class: "infinite-wrapper" };
15299
+ const _hoisted_3$C = { class: "row first-row" };
15300
+ const _hoisted_4$n = ["onClick"];
15301
+ const _hoisted_5$j = { class: "flex" };
15302
+ const _hoisted_6$f = ["onClick"];
15364
15303
  const _hoisted_7$a = { key: 1 };
15365
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
15304
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15366
15305
  __name: "TableSchema",
15367
15306
  props: {
15368
15307
  data: {},
@@ -15378,14 +15317,10 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15378
15317
  emit2("select", data2);
15379
15318
  };
15380
15319
  const bindAttrs = (attrs, field, row) => {
15381
- const arr = Object.entries(
15382
- attrs || {}
15383
- ).map(
15384
- ([key, value]) => [
15385
- key,
15386
- typeof value === "function" ? value(field, row) : value
15387
- ]
15388
- );
15320
+ const arr = Object.entries(attrs || {}).map(([key, value]) => [
15321
+ key,
15322
+ typeof value === "function" ? value(field, row) : value
15323
+ ]);
15389
15324
  const resolvedAttrs = Object.fromEntries(arr);
15390
15325
  return resolvedAttrs;
15391
15326
  };
@@ -15412,27 +15347,27 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15412
15347
  }
15413
15348
  );
15414
15349
  return (_ctx, _cache) => {
15415
- return openBlock(), createElementBlock("div", _hoisted_1$M, [
15416
- createElementVNode("table", _hoisted_2$E, [
15417
- createElementVNode("thead", _hoisted_3$A, [
15350
+ return openBlock(), createElementBlock("div", _hoisted_1$O, [
15351
+ createElementVNode("table", _hoisted_2$G, [
15352
+ createElementVNode("thead", _hoisted_3$C, [
15418
15353
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(columns.value, (field) => {
15419
15354
  return openBlock(), createElementBlock("th", {
15420
15355
  class: "col",
15421
15356
  key: field.id,
15422
15357
  onClick: ($event) => sort2(field.id)
15423
15358
  }, [
15424
- createElementVNode("div", _hoisted_5$h, [
15359
+ createElementVNode("div", _hoisted_5$j, [
15425
15360
  createTextVNode(toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
15426
15361
  createElementVNode("div", {
15427
15362
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
15428
15363
  }, [
15429
- createVNode(unref(_sfc_main$R), {
15364
+ createVNode(unref(_sfc_main$S), {
15430
15365
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
15431
15366
  icon: "keyboard_arrow_up"
15432
15367
  }, null, 8, ["class"])
15433
15368
  ], 2)
15434
15369
  ])
15435
- ], 8, _hoisted_4$l);
15370
+ ], 8, _hoisted_4$n);
15436
15371
  }), 128))
15437
15372
  ]),
15438
15373
  createElementVNode("tbody", {
@@ -15470,7 +15405,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15470
15405
  ]))
15471
15406
  ]);
15472
15407
  }), 128))
15473
- ], 8, _hoisted_6$e);
15408
+ ], 8, _hoisted_6$f);
15474
15409
  }), 128))
15475
15410
  ], 2)
15476
15411
  ])
@@ -15478,16 +15413,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15478
15413
  };
15479
15414
  }
15480
15415
  });
15481
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-fa7146ce"]]);
15482
- const _sfc_main$D = {};
15483
- const _hoisted_1$L = { class: "flex space-between" };
15416
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-fb5b163a"]]);
15417
+ const _sfc_main$F = {};
15418
+ const _hoisted_1$N = { class: "flex space-between" };
15484
15419
  function _sfc_render$1(_ctx, _cache) {
15485
- return openBlock(), createElementBlock("div", _hoisted_1$L, [
15420
+ return openBlock(), createElementBlock("div", _hoisted_1$N, [
15486
15421
  renderSlot(_ctx.$slots, "default")
15487
15422
  ]);
15488
15423
  }
15489
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$1]]);
15490
- const _sfc_main$C = {};
15424
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$1]]);
15425
+ const _sfc_main$E = {};
15491
15426
  function _sfc_render(_ctx, _cache) {
15492
15427
  const _component_router_view = resolveComponent("router-view");
15493
15428
  return openBlock(), createBlock(_component_router_view, null, {
@@ -15509,9 +15444,9 @@ function _sfc_render(_ctx, _cache) {
15509
15444
  _: 1
15510
15445
  });
15511
15446
  }
15512
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render]]);
15513
- const _hoisted_1$K = { class: "card h-100 thin" };
15514
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
15447
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render]]);
15448
+ const _hoisted_1$M = { class: "card h-100 thin" };
15449
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15515
15450
  __name: "ContactSubmissions",
15516
15451
  props: {
15517
15452
  person_id: {
@@ -15541,7 +15476,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
15541
15476
  void getData();
15542
15477
  });
15543
15478
  return (_ctx, _cache) => {
15544
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
15479
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
15545
15480
  createVNode(unref(TableSchema), {
15546
15481
  schema: schema2,
15547
15482
  data: unref(data2)
@@ -15550,15 +15485,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
15550
15485
  };
15551
15486
  }
15552
15487
  });
15553
- const _hoisted_1$J = {
15488
+ const _hoisted_1$L = {
15554
15489
  key: 0,
15555
15490
  class: "person-card-edit flex gap-2"
15556
15491
  };
15557
- const _hoisted_2$D = { class: "person-card-icon-wrap" };
15558
- const _hoisted_3$z = { class: "person-card-icon" };
15559
- const _hoisted_4$k = { class: "person-card-name txt20" };
15560
- const _hoisted_5$g = { class: "person-card-details-wrap" };
15561
- const _hoisted_6$d = {
15492
+ const _hoisted_2$F = { class: "person-card-icon-wrap" };
15493
+ const _hoisted_3$B = { class: "person-card-icon" };
15494
+ const _hoisted_4$m = { class: "person-card-name txt20" };
15495
+ const _hoisted_5$i = { class: "person-card-details-wrap" };
15496
+ const _hoisted_6$e = {
15562
15497
  key: 0,
15563
15498
  class: "person-card-details"
15564
15499
  };
@@ -15572,7 +15507,7 @@ const _hoisted_8$5 = {
15572
15507
  };
15573
15508
  const _hoisted_9$3 = { key: 0 };
15574
15509
  const _hoisted_10$3 = { key: 1 };
15575
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
15510
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
15576
15511
  __name: "PersonPreview",
15577
15512
  props: {
15578
15513
  person: {},
@@ -15602,7 +15537,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15602
15537
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
15603
15538
  class: "person-card"
15604
15539
  }, [
15605
- !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$J, [
15540
+ !_ctx.onClick ? (openBlock(), createElementBlock("div", _hoisted_1$L, [
15606
15541
  !_ctx.$route.path.match("/search") ? (openBlock(), createBlock(unref(Btn), {
15607
15542
  key: 0,
15608
15543
  round: "",
@@ -15619,13 +15554,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15619
15554
  icon: "edit"
15620
15555
  })
15621
15556
  ])) : createCommentVNode("", true),
15622
- createElementVNode("div", _hoisted_2$D, [
15623
- createElementVNode("p", _hoisted_3$z, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15624
- createElementVNode("p", _hoisted_4$k, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
15557
+ createElementVNode("div", _hoisted_2$F, [
15558
+ createElementVNode("p", _hoisted_3$B, toDisplayString(unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15559
+ createElementVNode("p", _hoisted_4$m, toDisplayString(_ctx.person.first_name) + " " + toDisplayString(_ctx.person.last_name), 1)
15625
15560
  ]),
15626
- createElementVNode("div", _hoisted_5$g, [
15627
- ((_a = _ctx.person.phone) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
15628
- createVNode(unref(_sfc_main$R), { icon: "phone" }),
15561
+ createElementVNode("div", _hoisted_5$i, [
15562
+ ((_a = _ctx.person.phone) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_6$e, [
15563
+ createVNode(unref(_sfc_main$S), { icon: "phone" }),
15629
15564
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.phone, (phone) => {
15630
15565
  return openBlock(), createElementBlock("p", {
15631
15566
  key: phone.id
@@ -15633,7 +15568,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15633
15568
  }), 128))
15634
15569
  ])) : createCommentVNode("", true),
15635
15570
  ((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
15636
- createVNode(unref(_sfc_main$R), { icon: "email" }),
15571
+ createVNode(unref(_sfc_main$S), { icon: "email" }),
15637
15572
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.person.email, (email) => {
15638
15573
  return openBlock(), createElementBlock("p", {
15639
15574
  key: email.id
@@ -15641,7 +15576,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15641
15576
  }), 128))
15642
15577
  ])) : createCommentVNode("", true),
15643
15578
  _ctx.person.date_of_birth || _ctx.person.gender ? (openBlock(), createElementBlock("div", _hoisted_8$5, [
15644
- createVNode(unref(_sfc_main$R), { icon: "badge" }),
15579
+ createVNode(unref(_sfc_main$S), { icon: "badge" }),
15645
15580
  _ctx.person.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9$3, toDisplayString(_ctx.person.date_of_birth), 1)) : createCommentVNode("", true),
15646
15581
  _ctx.person.gender ? (openBlock(), createElementBlock("p", _hoisted_10$3, toDisplayString(_ctx.person.gender), 1)) : createCommentVNode("", true)
15647
15582
  ])) : createCommentVNode("", true)
@@ -15650,7 +15585,227 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15650
15585
  };
15651
15586
  }
15652
15587
  });
15653
- const _withScopeId$2 = (n) => (pushScopeId("data-v-f7af54ed"), n = n(), popScopeId(), n);
15588
+ const _hoisted_1$K = {
15589
+ key: 0,
15590
+ class: "data"
15591
+ };
15592
+ const _hoisted_2$E = {
15593
+ key: 0,
15594
+ class: "mb-3 mt-0"
15595
+ };
15596
+ const _hoisted_3$A = { class: "key" };
15597
+ const _hoisted_4$l = { key: 1 };
15598
+ const _hoisted_5$h = { class: "key" };
15599
+ const _hoisted_6$d = { class: "vlue" };
15600
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
15601
+ __name: "DataPreview",
15602
+ props: {
15603
+ data: {},
15604
+ schema: {},
15605
+ title: {},
15606
+ i18nT: { type: Function, default: (str) => str }
15607
+ },
15608
+ setup(__props) {
15609
+ const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
15610
+ return (_ctx, _cache) => {
15611
+ var _a;
15612
+ return _ctx.data ? (openBlock(), createElementBlock("div", _hoisted_1$K, [
15613
+ _ctx.title ? (openBlock(), createElementBlock("h3", _hoisted_2$E, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true),
15614
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema || [], (field) => {
15615
+ return openBlock(), createElementBlock("div", {
15616
+ key: field.id,
15617
+ class: "data-row"
15618
+ }, [
15619
+ createElementVNode("div", _hoisted_3$A, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
15620
+ (openBlock(), createBlock(resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
15621
+ default: withCtx(() => [
15622
+ createTextVNode(toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
15623
+ ]),
15624
+ _: 2
15625
+ }, 1024))
15626
+ ]);
15627
+ }), 128)),
15628
+ !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_4$l, [
15629
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(Object.entries(_ctx.data).filter(
15630
+ ([key]) => !keysToIgnore.includes(key)
15631
+ ), ([key, value]) => {
15632
+ return openBlock(), createElementBlock("div", {
15633
+ class: "data-row",
15634
+ key
15635
+ }, [
15636
+ createElementVNode("div", _hoisted_5$h, toDisplayString(_ctx.i18nT(unref(keyToLabel)(key))), 1),
15637
+ createElementVNode("div", _hoisted_6$d, toDisplayString(value), 1)
15638
+ ]);
15639
+ }), 128))
15640
+ ])) : createCommentVNode("", true),
15641
+ renderSlot(_ctx.$slots, "footer", {}, void 0, true)
15642
+ ])) : createCommentVNode("", true);
15643
+ };
15644
+ }
15645
+ });
15646
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-0350cc0c"]]);
15647
+ const _hoisted_1$J = { class: "files-wrapper flex" };
15648
+ const _hoisted_2$D = { class: "img-label" };
15649
+ const _hoisted_3$z = { class: "uploading-wrap" };
15650
+ const _hoisted_4$k = { class: "load-file-bar" };
15651
+ const _hoisted_5$g = ["multiple"];
15652
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15653
+ __name: "FileUploader",
15654
+ props: {
15655
+ id: { default: "" },
15656
+ private: { default: 0 },
15657
+ singleFile: { type: Boolean },
15658
+ beforeUpload: { type: Function, default: async () => {
15659
+ } },
15660
+ dragDropLabel: { default: "Drag and drop your files here" },
15661
+ browseLabel: { default: "Browse" }
15662
+ },
15663
+ emits: ["complete", "done"],
15664
+ setup(__props, { emit: __emit }) {
15665
+ const bagel = useBagel();
15666
+ const draggingOver = ref(false);
15667
+ const dropCircle = ref();
15668
+ const dropZoneEl = ref();
15669
+ const fileInputEl = ref();
15670
+ const circleTop = ref("0");
15671
+ const circleLeft = ref("0");
15672
+ const files = ref([]);
15673
+ const props2 = __props;
15674
+ function openFileDialog() {
15675
+ var _a;
15676
+ (_a = fileInputEl.value) == null ? void 0 : _a.click();
15677
+ }
15678
+ function onDragOver(e) {
15679
+ var _a, _b;
15680
+ if (!draggingOver.value)
15681
+ return;
15682
+ const parentEl2 = ((_b = (_a = dropZoneEl.value) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a)) || {
15683
+ left: 0,
15684
+ top: 0,
15685
+ width: 0,
15686
+ height: 0
15687
+ };
15688
+ const x2 = e.clientX - parentEl2.left;
15689
+ const y2 = e.clientY - parentEl2.top;
15690
+ circleLeft.value = `${x2}px`;
15691
+ circleTop.value = `${y2}px`;
15692
+ if (x2 < 0 || x2 > parentEl2.width || y2 < 0 || y2 > parentEl2.height) {
15693
+ draggingOver.value = false;
15694
+ }
15695
+ }
15696
+ function handleFileInput(e) {
15697
+ const filesToAdd = e.target.files;
15698
+ addFiles(filesToAdd);
15699
+ }
15700
+ function preventDefaults(e) {
15701
+ e.preventDefault();
15702
+ }
15703
+ function hideCircle(e) {
15704
+ console.log({ e });
15705
+ draggingOver.value = false;
15706
+ }
15707
+ const events = ["dragenter", "dragover", "dragleave", "drop"];
15708
+ onMounted(() => {
15709
+ events.forEach((event) => {
15710
+ document.addEventListener(event, preventDefaults);
15711
+ });
15712
+ document.addEventListener("dragover", onDragOver);
15713
+ });
15714
+ onUnmounted(() => {
15715
+ document.removeEventListener("dragover", onDragOver);
15716
+ events.forEach((event) => {
15717
+ document.removeEventListener(event, preventDefaults);
15718
+ });
15719
+ });
15720
+ function addFiles(addedFiles) {
15721
+ if (props2.singleFile && files.value.length > 1)
15722
+ return;
15723
+ for (let i2 = 0; i2 < addedFiles.length; i2++) {
15724
+ files.value.push({
15725
+ file: addedFiles[i2],
15726
+ uid: Math.random().toString(36).substring(2, 9),
15727
+ progress: "",
15728
+ uploading: false
15729
+ });
15730
+ }
15731
+ uploadFiles();
15732
+ }
15733
+ const emit2 = __emit;
15734
+ function uploadFiles() {
15735
+ files.value.forEach((item) => {
15736
+ item.uploading = true;
15737
+ });
15738
+ }
15739
+ async function onDrop(e) {
15740
+ var _a;
15741
+ hideCircle(e);
15742
+ preventDefaults(e);
15743
+ const filesToAdd = (_a = e.dataTransfer) == null ? void 0 : _a.files;
15744
+ if (filesToAdd) {
15745
+ addFiles(filesToAdd);
15746
+ const file = await bagel.uploadFile(filesToAdd[0]);
15747
+ emit2("complete", file);
15748
+ }
15749
+ }
15750
+ return (_ctx, _cache) => {
15751
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
15752
+ createElementVNode("div", {
15753
+ ref_key: "dropZoneEl",
15754
+ ref: dropZoneEl,
15755
+ class: "drop-zone flex-grow",
15756
+ onClick: openFileDialog,
15757
+ onDragenter: _cache[0] || (_cache[0] = ($event) => draggingOver.value = true),
15758
+ onDrop: withModifiers(onDrop, ["prevent", "stop"])
15759
+ }, [
15760
+ createVNode(Transition, { name: "pop" }, {
15761
+ default: withCtx(() => [
15762
+ draggingOver.value ? (openBlock(), createElementBlock("div", {
15763
+ key: 0,
15764
+ ref_key: "dropCircle",
15765
+ ref: dropCircle,
15766
+ class: "drop-circle"
15767
+ }, null, 512)) : createCommentVNode("", true)
15768
+ ]),
15769
+ _: 1
15770
+ }),
15771
+ createElementVNode("div", _hoisted_2$D, [
15772
+ createElementVNode("p", null, [
15773
+ createTextVNode(toDisplayString(_ctx.dragDropLabel) + " ", 1),
15774
+ createElementVNode("span", null, toDisplayString(_ctx.browseLabel), 1)
15775
+ ])
15776
+ ]),
15777
+ createElementVNode("div", _hoisted_3$z, [
15778
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(files.value, (item, index2) => {
15779
+ return openBlock(), createElementBlock("div", {
15780
+ class: normalizeClass({ uploading: item.uploading }),
15781
+ key: index2
15782
+ }, [
15783
+ createElementVNode("div", _hoisted_4$k, [
15784
+ createElementVNode("p", null, toDisplayString(item.file.name), 1),
15785
+ createElementVNode("div", {
15786
+ class: "pie",
15787
+ style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
15788
+ }, [
15789
+ createElementVNode("span", null, toDisplayString(`${item.progress}`), 1)
15790
+ ], 4)
15791
+ ])
15792
+ ], 2);
15793
+ }), 128))
15794
+ ])
15795
+ ], 544),
15796
+ createElementVNode("input", {
15797
+ class: "file-input",
15798
+ type: "file",
15799
+ onChange: handleFileInput,
15800
+ ref_key: "fileInputEl",
15801
+ ref: fileInputEl,
15802
+ multiple: !_ctx.singleFile
15803
+ }, null, 40, _hoisted_5$g)
15804
+ ]);
15805
+ };
15806
+ }
15807
+ });
15808
+ const _withScopeId$2 = (n) => (pushScopeId("data-v-fe5af582"), n = n(), popScopeId(), n);
15654
15809
  const _hoisted_1$I = { class: "bar-chart" };
15655
15810
  const _hoisted_2$C = {
15656
15811
  key: 0,
@@ -15675,7 +15830,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15675
15830
  },
15676
15831
  setup(__props) {
15677
15832
  useCssVars((_ctx) => ({
15678
- "6227cb5e": floodPercent.value
15833
+ "b74eb91e": floodPercent.value
15679
15834
  }));
15680
15835
  const props2 = __props;
15681
15836
  const loaded = ref(false);
@@ -15698,12 +15853,14 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15698
15853
  // }
15699
15854
  // return allData;
15700
15855
  );
15701
- const maxValue = computed(() => Math.ceil(
15702
- Math.max(
15703
- ...dataArray.value.map((d) => d.value),
15704
- ...dataArray.value.map((d) => (d == null ? void 0 : d.compareValue) || 0)
15856
+ const maxValue = computed(
15857
+ () => Math.ceil(
15858
+ Math.max(
15859
+ ...dataArray.value.map((d) => d.value),
15860
+ ...dataArray.value.map((d) => (d == null ? void 0 : d.compareValue) || 0)
15861
+ )
15705
15862
  )
15706
- ));
15863
+ );
15707
15864
  const marks2 = computed(() => {
15708
15865
  const marksArray = [];
15709
15866
  for (let i2 = 0; i2 <= 5; i2 += 1) {
@@ -15766,7 +15923,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
15766
15923
  };
15767
15924
  }
15768
15925
  });
15769
- const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-f7af54ed"]]);
15926
+ const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-fe5af582"]]);
15770
15927
  const explicitKeys = [
15771
15928
  "__key",
15772
15929
  "__init",
@@ -17055,13 +17212,13 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
17055
17212
  [vModelCheckbox, unref(val)]
17056
17213
  ]),
17057
17214
  createElementVNode("span", null, [
17058
- createVNode(unref(_sfc_main$R), { icon: "check" })
17215
+ createVNode(unref(_sfc_main$S), { icon: "check" })
17059
17216
  ])
17060
17217
  ]);
17061
17218
  };
17062
17219
  }
17063
17220
  });
17064
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5f3ff6ea"]]);
17221
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-5d0f75db"]]);
17065
17222
  const _hoisted_1$G = { class: "bagel-input" };
17066
17223
  const _hoisted_2$B = { class: "mt-1" };
17067
17224
  const _hoisted_3$x = {
@@ -17080,10 +17237,12 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17080
17237
  setup(__props) {
17081
17238
  const bagel = useBagel();
17082
17239
  const props2 = __props;
17083
- const formPlaceholders = computed(() => {
17084
- var _a, _b;
17085
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17086
- });
17240
+ const formPlaceholders = computed(
17241
+ () => {
17242
+ var _a, _b;
17243
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17244
+ }
17245
+ );
17087
17246
  let val = ref([]);
17088
17247
  let deleteCandidate = ref(-1);
17089
17248
  const del2 = (i2) => {
@@ -17216,7 +17375,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17216
17375
  };
17217
17376
  }
17218
17377
  });
17219
- const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-0533667e"]]);
17378
+ const ContactArrayFormKit = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-312e5767"]]);
17220
17379
  const _hoisted_1$F = { class: "bagel-input" };
17221
17380
  const _hoisted_2$A = { class: "mt-1" };
17222
17381
  const _hoisted_3$w = {
@@ -17240,10 +17399,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17240
17399
  setup(__props) {
17241
17400
  const bagel = useBagel();
17242
17401
  const props2 = __props;
17243
- const formPlaceholders = computed(() => {
17244
- var _a, _b;
17245
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17246
- });
17402
+ const formPlaceholders = computed(
17403
+ () => {
17404
+ var _a, _b;
17405
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17406
+ }
17407
+ );
17247
17408
  let val = ref([]);
17248
17409
  const addNew = () => {
17249
17410
  if (!val.value)
@@ -17399,7 +17560,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17399
17560
  };
17400
17561
  }
17401
17562
  });
17402
- const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-98a4f943"]]);
17563
+ const AddressArray = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-1e3274f9"]]);
17403
17564
  const _hoisted_1$E = { class: "bagel-input" };
17404
17565
  const _hoisted_2$z = { class: "mt-1" };
17405
17566
  const _hoisted_3$v = {
@@ -17428,10 +17589,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17428
17589
  setup(__props) {
17429
17590
  const bagel = useBagel();
17430
17591
  const props2 = __props;
17431
- const formPlaceholders = computed(() => {
17432
- var _a, _b;
17433
- return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17434
- });
17592
+ const formPlaceholders = computed(
17593
+ () => {
17594
+ var _a, _b;
17595
+ return (_b = (_a = props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.formPlaceholders;
17596
+ }
17597
+ );
17435
17598
  let val = ref([]);
17436
17599
  let deleteCandidate = ref(-1);
17437
17600
  const del2 = (i2) => {
@@ -17615,7 +17778,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17615
17778
  };
17616
17779
  }
17617
17780
  });
17618
- const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-0928eb22"]]);
17781
+ const BankDetailsArray = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-cc20bcbb"]]);
17619
17782
  const _hoisted_1$D = { class: "misc-wrap" };
17620
17783
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
17621
17784
  __name: "MiscFields",
@@ -17662,8 +17825,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17662
17825
  };
17663
17826
  }
17664
17827
  });
17665
- const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-bac6c2ee"]]);
17666
- const _withScopeId$1 = (n) => (pushScopeId("data-v-d12598ff"), n = n(), popScopeId(), n);
17828
+ const MiscFieldsBtns = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-91b04350"]]);
17829
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-d0543d4b"), n = n(), popScopeId(), n);
17667
17830
  const _hoisted_1$C = ["title"];
17668
17831
  const _hoisted_2$y = { class: "switch" };
17669
17832
  const _hoisted_3$u = ["id"];
@@ -17710,7 +17873,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17710
17873
  };
17711
17874
  }
17712
17875
  });
17713
- const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d12598ff"]]);
17876
+ const Toggle = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d0543d4b"]]);
17714
17877
  const _hoisted_1$B = { class: "files-wrapper flex" };
17715
17878
  const _hoisted_2$x = {
17716
17879
  key: 0,
@@ -17897,7 +18060,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
17897
18060
  style: normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
17898
18061
  }, [
17899
18062
  item.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_7$4, toDisplayString(`${item.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
17900
- createVNode(unref(_sfc_main$R), {
18063
+ createVNode(unref(_sfc_main$S), {
17901
18064
  class: "success",
17902
18065
  icon: "check"
17903
18066
  })
@@ -18004,7 +18167,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18004
18167
  ]),
18005
18168
  createElementVNode("div", _hoisted_5$a, [
18006
18169
  ((_a = person.value.phone) == null ? void 0 : _a.length) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
18007
- createVNode(unref(_sfc_main$R), { icon: "phone" }),
18170
+ createVNode(unref(_sfc_main$S), { icon: "phone" }),
18008
18171
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.phone, (phone) => {
18009
18172
  return openBlock(), createElementBlock("p", {
18010
18173
  key: phone.id
@@ -18012,7 +18175,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18012
18175
  }), 128))
18013
18176
  ])) : createCommentVNode("", true),
18014
18177
  ((_b = person.value.email) == null ? void 0 : _b.length) ? (openBlock(), createElementBlock("div", _hoisted_7$3, [
18015
- createVNode(unref(_sfc_main$R), { icon: "email" }),
18178
+ createVNode(unref(_sfc_main$S), { icon: "email" }),
18016
18179
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(person.value.email, (email) => {
18017
18180
  return openBlock(), createElementBlock("p", {
18018
18181
  key: email.id
@@ -18020,7 +18183,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
18020
18183
  }), 128))
18021
18184
  ])) : createCommentVNode("", true),
18022
18185
  person.value.date_of_birth || person.value.gender ? (openBlock(), createElementBlock("div", _hoisted_8, [
18023
- createVNode(unref(_sfc_main$R), { icon: "badge" }),
18186
+ createVNode(unref(_sfc_main$S), { icon: "badge" }),
18024
18187
  person.value.date_of_birth ? (openBlock(), createElementBlock("p", _hoisted_9, toDisplayString(person.value.date_of_birth), 1)) : createCommentVNode("", true),
18025
18188
  person.value.gender ? (openBlock(), createElementBlock("p", _hoisted_10, toDisplayString(person.value.gender), 1)) : createCommentVNode("", true)
18026
18189
  ])) : createCommentVNode("", true)
@@ -18162,7 +18325,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
18162
18325
  }, {
18163
18326
  default: withCtx(() => [
18164
18327
  createTextVNode(toDisplayString(content.value) + " ", 1),
18165
- createVNode(unref(_sfc_main$R), { icon: "arrow_forward" })
18328
+ createVNode(unref(_sfc_main$S), { icon: "arrow_forward" })
18166
18329
  ]),
18167
18330
  _: 1
18168
18331
  })) : (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(content.value), 1))
@@ -18225,7 +18388,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18225
18388
  createElementVNode("label", {
18226
18389
  for: unref(formatString)(_ctx.name, "pascal")
18227
18390
  }, [
18228
- createVNode(_sfc_main$T, {
18391
+ createVNode(_sfc_main$U, {
18229
18392
  input: unref(formatString)(_ctx.name, "titleCase")
18230
18393
  }, null, 8, ["input"])
18231
18394
  ], 8, _hoisted_2$v),
@@ -18266,13 +18429,13 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
18266
18429
  onInput: handleInput
18267
18430
  }, null, 40, _hoisted_6$6)) : createCommentVNode("", true),
18268
18431
  createElementVNode("div", null, [
18269
- createVNode(_sfc_main$T, { input: _ctx.errorMessage }, null, 8, ["input"])
18432
+ createVNode(_sfc_main$U, { input: _ctx.errorMessage }, null, 8, ["input"])
18270
18433
  ])
18271
18434
  ]);
18272
18435
  };
18273
18436
  }
18274
18437
  });
18275
- const _withScopeId = (n) => (pushScopeId("data-v-69f0d857"), n = n(), popScopeId(), n);
18438
+ const _withScopeId = (n) => (pushScopeId("data-v-0dacba34"), n = n(), popScopeId(), n);
18276
18439
  const _hoisted_1$x = ["title"];
18277
18440
  const _hoisted_2$u = ["for"];
18278
18441
  const _hoisted_3$q = { class: "switch" };
@@ -18327,7 +18490,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18327
18490
  };
18328
18491
  }
18329
18492
  });
18330
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-69f0d857"]]);
18493
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-0dacba34"]]);
18331
18494
  const _hoisted_1$w = ["title"];
18332
18495
  const _hoisted_2$t = { key: 0 };
18333
18496
  const _hoisted_3$p = { class: "flex gap-3" };
@@ -18947,7 +19110,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
18947
19110
  };
18948
19111
  }
18949
19112
  });
18950
- const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-eec3e237"]]);
19113
+ const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-525f5e2e"]]);
18951
19114
  const _hoisted_1$n = ["title"];
18952
19115
  const _hoisted_2$k = ["for"];
18953
19116
  const _hoisted_3$g = ["id", "type", "placeholder", "required", "pattern"];
@@ -18995,7 +19158,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
18995
19158
  [vModelDynamic, inputVal.value]
18996
19159
  ])
18997
19160
  ], 8, _hoisted_2$k),
18998
- createVNode(unref(_sfc_main$R), {
19161
+ createVNode(unref(_sfc_main$S), {
18999
19162
  onClick: showPassword,
19000
19163
  icon: unref(seePassword) ? "visibility" : "visibility_off"
19001
19164
  }, null, 8, ["icon"])
@@ -19160,7 +19323,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
19160
19323
  for: "label",
19161
19324
  class: normalizeClass({ active: showList.value })
19162
19325
  }, [
19163
- createVNode(unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
19326
+ createVNode(unref(_sfc_main$U), { input: _ctx.label }, null, 8, ["input"])
19164
19327
  ], 2)) : createCommentVNode("", true),
19165
19328
  createElementVNode("div", {
19166
19329
  class: normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -19172,7 +19335,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
19172
19335
  class: normalizeClass(["input", { active: showList.value }]),
19173
19336
  name: "select-input"
19174
19337
  }, [
19175
- createVNode(unref(_sfc_main$T), { input: displayValue.value }, null, 8, ["input"])
19338
+ createVNode(unref(_sfc_main$U), { input: displayValue.value }, null, 8, ["input"])
19176
19339
  ], 2),
19177
19340
  (openBlock(), createBlock(Teleport, { to: "#app" }, [
19178
19341
  createElementVNode("div", {
@@ -19185,7 +19348,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
19185
19348
  key: option2.value,
19186
19349
  onClick: ($event) => handleSelect(option2)
19187
19350
  }, [
19188
- createVNode(unref(_sfc_main$T), {
19351
+ createVNode(unref(_sfc_main$U), {
19189
19352
  input: option2.label
19190
19353
  }, null, 8, ["input"])
19191
19354
  ], 8, _hoisted_2$i);
@@ -22049,7 +22212,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
22049
22212
  title: _ctx.description
22050
22213
  }, [
22051
22214
  _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$d, [
22052
- createVNode(unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
22215
+ createVNode(unref(_sfc_main$U), { input: _ctx.label }, null, 8, ["input"])
22053
22216
  ])) : createCommentVNode("", true),
22054
22217
  _ctx.showCharacterLimit ? (openBlock(), createElementBlock("span", _hoisted_3$b, toDisplayString((_a = _ctx.modelValue) == null ? void 0 : _a.length) + " " + toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : createCommentVNode("", true),
22055
22218
  createElementVNode("textarea", mergeProps({
@@ -28484,7 +28647,7 @@ const _hoisted_1$1 = /* @__PURE__ */ createElementVNode("stop", {
28484
28647
  "stop-color": "white",
28485
28648
  "stop-opacity": "0.4"
28486
28649
  }, null, -1);
28487
- const BRAND_COLOR = "var(--bgl-blue)";
28650
+ const BRAND_COLOR = "var(--bgl-primary)";
28488
28651
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28489
28652
  __name: "Lineart",
28490
28653
  props: {
@@ -28493,7 +28656,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28493
28656
  },
28494
28657
  setup(__props) {
28495
28658
  const props2 = __props;
28496
- const data2 = computed(() => props2.locale === "he" ? [...props2.data].reverse() : props2.data);
28659
+ const data2 = computed(
28660
+ () => props2.locale === "he" ? [...props2.data].reverse() : props2.data
28661
+ );
28497
28662
  const meanValue = computed(() => {
28498
28663
  const sum = props2.data.reduce((acc, curr) => acc + +curr.total_value, 0);
28499
28664
  return sum / props2.data.length;
@@ -28517,8 +28682,15 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28517
28682
  });
28518
28683
  const tooltipConfiguration = {
28519
28684
  date: { label: "תאריך" },
28520
- total_value: { color: BRAND_COLOR, label: "סכום", format: (v) => `₪${v.toLocaleString()}` },
28521
- total_count: { label: "מספר התרומות", format: (v) => `${v.toLocaleString()}` }
28685
+ total_value: {
28686
+ color: BRAND_COLOR,
28687
+ label: "סכום",
28688
+ format: (v) => `₪${v.toLocaleString()}`
28689
+ },
28690
+ total_count: {
28691
+ label: "מספר התרומות",
28692
+ format: (v) => `${v.toLocaleString()}`
28693
+ }
28522
28694
  };
28523
28695
  let chartSize = ref(null);
28524
28696
  const chartContainer = ref();
@@ -28724,7 +28896,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28724
28896
  return (_ctx, _cache) => {
28725
28897
  var _a, _b, _c, _d, _e, _f;
28726
28898
  return openBlock(), createElementBlock("div", _hoisted_1, [
28727
- createVNode(unref(_sfc_main$I), null, {
28899
+ createVNode(unref(_sfc_main$J), null, {
28728
28900
  default: withCtx(() => [
28729
28901
  createTextVNode("Whatsapp Template")
28730
28902
  ]),
@@ -28733,7 +28905,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28733
28905
  createElementVNode("div", _hoisted_2, [
28734
28906
  createElementVNode("div", _hoisted_3, [
28735
28907
  createElementVNode("div", _hoisted_4, [
28736
- createVNode(unref(_sfc_main$F), {
28908
+ createVNode(unref(_sfc_main$H), {
28737
28909
  schema: _ctx.whatsappTemplateSchema(),
28738
28910
  modelValue: unref(localWhatsappData),
28739
28911
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
@@ -28768,41 +28940,42 @@ export {
28768
28940
  _sfc_main$4 as ColorPicker,
28769
28941
  Comments,
28770
28942
  ContactArrayInput,
28771
- _sfc_main$B as ContactSubmissions,
28943
+ _sfc_main$D as ContactSubmissions,
28772
28944
  CurrencyInput,
28773
28945
  DataPreview,
28774
28946
  DateInput,
28775
28947
  _sfc_main$j as DatetimeInput,
28776
- _sfc_main$N as DropDown,
28948
+ _sfc_main$O as DropDown,
28777
28949
  _sfc_main$7 as DurationInput,
28778
28950
  _sfc_main$3 as DynamicLinkField,
28779
28951
  EmailInput,
28780
28952
  FileUploadInput,
28953
+ _sfc_main$A as FileUploader,
28781
28954
  _sfc_main$h as FloatInput,
28782
- _sfc_main$F as FormSchema,
28955
+ _sfc_main$H as FormSchema,
28783
28956
  _sfc_main$g as IntInput,
28784
28957
  _sfc_main$p as ItemRef,
28785
28958
  JSONInput,
28786
- _sfc_main$T as LangText,
28959
+ _sfc_main$U as LangText,
28787
28960
  _sfc_main$1 as Lineart,
28788
28961
  LinkField,
28789
- _sfc_main$L as ListItem,
28790
- _sfc_main$M as ListView,
28791
- _sfc_main$R as MaterialIcon,
28962
+ _sfc_main$M as ListItem,
28963
+ _sfc_main$N as ListView,
28964
+ _sfc_main$S as MaterialIcon,
28792
28965
  MiscFieldsInput,
28793
- _sfc_main$O as Modal,
28966
+ _sfc_main$P as Modal,
28794
28967
  ModalForm,
28795
28968
  ModalPlugin,
28796
28969
  MsgTemplate,
28797
- _sfc_main$Q as NavBar,
28798
- _sfc_main$I as PageTitle,
28970
+ _sfc_main$R as NavBar,
28971
+ _sfc_main$J as PageTitle,
28799
28972
  Password,
28800
28973
  PasswordInput,
28801
- _sfc_main$A as PersonPreview,
28974
+ _sfc_main$C as PersonPreview,
28802
28975
  PersonPreviewInput,
28803
28976
  _sfc_main$n as PlainInputField,
28804
28977
  PlainText,
28805
- _sfc_main$S as RTXEditor,
28978
+ _sfc_main$T as RTXEditor,
28806
28979
  ReadOnlyInput,
28807
28980
  RichTextEditor,
28808
28981
  RouterWrapper,