@bagelink/vue 0.0.114 → 0.0.116

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 (34) hide show
  1. package/dist/components/Btn.vue.d.ts +1 -1
  2. package/dist/components/Comments.vue.d.ts +2 -6
  3. package/dist/components/Comments.vue.d.ts.map +1 -1
  4. package/dist/components/PersonPreview.vue.d.ts +22 -0
  5. package/dist/components/PersonPreview.vue.d.ts.map +1 -0
  6. package/dist/components/charts/index.d.ts +1 -1
  7. package/dist/components/charts/index.d.ts.map +1 -1
  8. package/dist/components/dashboard/index.d.ts +1 -1
  9. package/dist/components/dashboard/index.d.ts.map +1 -1
  10. package/dist/components/form/index.d.ts +3 -3
  11. package/dist/components/form/index.d.ts.map +1 -1
  12. package/dist/components/form/inputs/index.d.ts +17 -17
  13. package/dist/components/form/inputs/index.d.ts.map +1 -1
  14. package/dist/components/formkit/index.d.ts +9 -9
  15. package/dist/components/formkit/index.d.ts.map +1 -1
  16. package/dist/components/index.d.ts +20 -19
  17. package/dist/components/index.d.ts.map +1 -1
  18. package/dist/components/whatsapp/index.d.ts +2 -2
  19. package/dist/components/whatsapp/index.d.ts.map +1 -1
  20. package/dist/index.cjs +434 -509
  21. package/dist/index.mjs +434 -509
  22. package/dist/style.css +105 -26
  23. package/package.json +2 -3
  24. package/src/components/Comments.vue +2 -4
  25. package/src/components/PersonPreview.vue +1 -1
  26. package/src/components/charts/index.ts +1 -1
  27. package/src/components/dashboard/index.ts +1 -1
  28. package/src/components/form/index.ts +3 -3
  29. package/src/components/form/inputs/index.ts +17 -17
  30. package/src/components/formkit/index.ts +16 -16
  31. package/src/components/index.ts +20 -19
  32. package/src/components/whatsapp/index.ts +2 -2
  33. package/tsconfig.json +1 -0
  34. package/vite.config.ts +0 -1
package/dist/index.cjs CHANGED
@@ -1,30 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const vue = require("vue");
4
- const Modal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
5
- __proto__: null,
6
- get default() {
7
- return _sfc_main$J;
8
- }
9
- }, Symbol.toStringTag, { value: "Module" }));
10
- const ModalForm$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11
- __proto__: null,
12
- get default() {
13
- return ModalForm;
14
- }
15
- }, Symbol.toStringTag, { value: "Module" }));
16
- const FormSchema = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17
- __proto__: null,
18
- get default() {
19
- return _sfc_main$A;
20
- }
21
- }, Symbol.toStringTag, { value: "Module" }));
22
- const TextInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
23
- __proto__: null,
24
- get default() {
25
- return _sfc_main$5;
26
- }
27
- }, Symbol.toStringTag, { value: "Module" }));
28
4
  function bind$2(fn, thisArg) {
29
5
  return function wrap2() {
30
6
  return fn.apply(thisArg, arguments);
@@ -2317,7 +2293,7 @@ const ModalPlugin = {
2317
2293
  },
2318
2294
  render() {
2319
2295
  return modalStack.value.map((modal, index2) => {
2320
- const renderComponent = modal.isModalForm ? ModalForm$1 : Modal;
2296
+ const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$K;
2321
2297
  return vue.h(
2322
2298
  renderComponent,
2323
2299
  {
@@ -2394,8 +2370,8 @@ const parseLocale = (str, $t = (_str) => _str) => {
2394
2370
  return str;
2395
2371
  return $t(w);
2396
2372
  };
2397
- const _hoisted_1$U = { ref: "el" };
2398
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
2373
+ const _hoisted_1$V = { ref: "el" };
2374
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
2399
2375
  __name: "LangText",
2400
2376
  props: {
2401
2377
  input: {}
@@ -2403,16 +2379,12 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
2403
2379
  setup(__props) {
2404
2380
  return (_ctx, _cache) => {
2405
2381
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2406
- vue.createElementVNode("span", _hoisted_1$U, null, 512),
2382
+ vue.createElementVNode("span", _hoisted_1$V, null, 512),
2407
2383
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.input) + " ", 1)
2408
2384
  ], 64);
2409
2385
  };
2410
2386
  }
2411
2387
  });
2412
- const LangText = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2413
- __proto__: null,
2414
- default: _sfc_main$O
2415
- }, Symbol.toStringTag, { value: "Module" }));
2416
2388
  function OrderedMap(content) {
2417
2389
  this.content = content;
2418
2390
  }
@@ -14523,8 +14495,8 @@ const marks = {
14523
14495
  }
14524
14496
  };
14525
14497
  const schema = new Schema({ nodes, marks });
14526
- const _hoisted_1$T = ["id"];
14527
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14498
+ const _hoisted_1$U = ["id"];
14499
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14528
14500
  __name: "RTXEditor",
14529
14501
  props: {
14530
14502
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -14601,15 +14573,11 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14601
14573
  onClick: focusEditor,
14602
14574
  id: `canvas-${_ctx.elementId}`,
14603
14575
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
14604
- }, null, 40, _hoisted_1$T);
14576
+ }, null, 40, _hoisted_1$U);
14605
14577
  };
14606
14578
  }
14607
14579
  });
14608
- const RTXEditor = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14609
- __proto__: null,
14610
- default: _sfc_main$N
14611
- }, Symbol.toStringTag, { value: "Module" }));
14612
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14580
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14613
14581
  __name: "MaterialIcon",
14614
14582
  props: {
14615
14583
  icon: {},
@@ -14624,21 +14592,17 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14624
14592
  };
14625
14593
  }
14626
14594
  });
14627
- const MaterialIcon = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14628
- __proto__: null,
14629
- default: _sfc_main$M
14630
- }, Symbol.toStringTag, { value: "Module" }));
14631
- const _hoisted_1$S = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
14632
- const _hoisted_2$K = [
14633
- _hoisted_1$S
14595
+ const _hoisted_1$T = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, " chevron_right ", -1);
14596
+ const _hoisted_2$L = [
14597
+ _hoisted_1$T
14634
14598
  ];
14635
- const _hoisted_3$E = { class: "full-nav" };
14636
- const _hoisted_4$o = { class: "nav-scroll" };
14637
- const _hoisted_5$k = { class: "nav-links-wrapper" };
14638
- const _hoisted_6$g = { class: "icon-font" };
14639
- const _hoisted_7$b = { class: "tooltip" };
14640
- const _hoisted_8$6 = { class: "bot-buttons-wrapper" };
14641
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14599
+ const _hoisted_3$F = { class: "full-nav" };
14600
+ const _hoisted_4$p = { class: "nav-scroll" };
14601
+ const _hoisted_5$l = { class: "nav-links-wrapper" };
14602
+ const _hoisted_6$h = { class: "icon-font" };
14603
+ const _hoisted_7$c = { class: "tooltip" };
14604
+ const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
14605
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14642
14606
  __name: "NavBar",
14643
14607
  props: {
14644
14608
  links: {},
@@ -14661,10 +14625,10 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14661
14625
  role: "button",
14662
14626
  "aria-label": "Toggle Navigation",
14663
14627
  tabindex: "0"
14664
- }, _hoisted_2$K, 32),
14665
- vue.createElementVNode("div", _hoisted_3$E, [
14666
- vue.createElementVNode("div", _hoisted_4$o, [
14667
- vue.createElementVNode("div", _hoisted_5$k, [
14628
+ }, _hoisted_2$L, 32),
14629
+ vue.createElementVNode("div", _hoisted_3$F, [
14630
+ vue.createElementVNode("div", _hoisted_4$p, [
14631
+ vue.createElementVNode("div", _hoisted_5$l, [
14668
14632
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
14669
14633
  return vue.openBlock(), vue.createBlock(_component_RouterLink, {
14670
14634
  class: "nav-button",
@@ -14672,15 +14636,15 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14672
14636
  key: link.label
14673
14637
  }, {
14674
14638
  default: vue.withCtx(() => [
14675
- vue.createElementVNode("div", _hoisted_6$g, vue.toDisplayString(link.materialIcon), 1),
14676
- vue.createElementVNode("div", _hoisted_7$b, vue.toDisplayString(link.localized ? link.localized : link.label), 1)
14639
+ vue.createElementVNode("div", _hoisted_6$h, vue.toDisplayString(link.materialIcon), 1),
14640
+ vue.createElementVNode("div", _hoisted_7$c, vue.toDisplayString(link.localized ? link.localized : link.label), 1)
14677
14641
  ]),
14678
14642
  _: 2
14679
14643
  }, 1032, ["to"]);
14680
14644
  }), 128))
14681
14645
  ])
14682
14646
  ]),
14683
- vue.createElementVNode("div", _hoisted_8$6, [
14647
+ vue.createElementVNode("div", _hoisted_8$7, [
14684
14648
  vue.renderSlot(_ctx.$slots, "floor")
14685
14649
  ])
14686
14650
  ])
@@ -14688,19 +14652,15 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14688
14652
  };
14689
14653
  }
14690
14654
  });
14691
- const NavBar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14692
- __proto__: null,
14693
- default: _sfc_main$L
14694
- }, Symbol.toStringTag, { value: "Module" }));
14695
- const _hoisted_1$R = {
14655
+ const _hoisted_1$S = {
14696
14656
  key: 0,
14697
14657
  class: "loading"
14698
14658
  };
14699
- const _hoisted_2$J = {
14659
+ const _hoisted_2$K = {
14700
14660
  key: 1,
14701
14661
  class: "btn-flex"
14702
14662
  };
14703
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
14663
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14704
14664
  __name: "Btn",
14705
14665
  props: {
14706
14666
  disabled: { type: Boolean, default: false },
@@ -14736,8 +14696,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
14736
14696
  })
14737
14697
  }, {
14738
14698
  default: vue.withCtx(() => [
14739
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$J, [
14740
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(MaterialIcon), {
14699
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$K, [
14700
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$N), {
14741
14701
  key: 0,
14742
14702
  icon: _ctx.icon
14743
14703
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -14745,7 +14705,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
14745
14705
  !vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
14746
14706
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
14747
14707
  ], 64)) : vue.createCommentVNode("", true),
14748
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(MaterialIcon), {
14708
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$N), {
14749
14709
  key: 2,
14750
14710
  icon: props2["icon.end"]
14751
14711
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
@@ -14763,16 +14723,12 @@ const _export_sfc = (sfc, props2) => {
14763
14723
  }
14764
14724
  return target;
14765
14725
  };
14766
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-b94d75fb"]]);
14767
- const Btn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14768
- __proto__: null,
14769
- default: Btn
14770
- }, Symbol.toStringTag, { value: "Module" }));
14771
- const _hoisted_1$Q = ["onKeydown"];
14772
- const _hoisted_2$I = { class: "tool-bar" };
14773
- const _hoisted_3$D = { class: "modal-title" };
14774
- const _hoisted_4$n = { class: "modal-footer mt-3" };
14775
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
14726
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-b94d75fb"]]);
14727
+ const _hoisted_1$R = ["onKeydown"];
14728
+ const _hoisted_2$J = { class: "tool-bar" };
14729
+ const _hoisted_3$E = { class: "modal-title" };
14730
+ const _hoisted_4$o = { class: "modal-footer mt-3" };
14731
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
14776
14732
  __name: "Modal",
14777
14733
  props: {
14778
14734
  side: { type: Boolean },
@@ -14806,14 +14762,14 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
14806
14762
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
14807
14763
  }, ["stop"]))
14808
14764
  }, [
14809
- vue.createElementVNode("header", _hoisted_2$I, [
14765
+ vue.createElementVNode("header", _hoisted_2$J, [
14810
14766
  vue.renderSlot(_ctx.$slots, "toolbar")
14811
14767
  ]),
14812
- vue.createElementVNode("h3", _hoisted_3$D, vue.toDisplayString(_ctx.title), 1),
14768
+ vue.createElementVNode("h3", _hoisted_3$E, vue.toDisplayString(_ctx.title), 1),
14813
14769
  vue.renderSlot(_ctx.$slots, "default"),
14814
- vue.createElementVNode("footer", _hoisted_4$n, [
14770
+ vue.createElementVNode("footer", _hoisted_4$o, [
14815
14771
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i2) => {
14816
- return vue.openBlock(), vue.createBlock(vue.unref(Btn$1), vue.mergeProps({
14772
+ return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
14817
14773
  key: i2,
14818
14774
  onClick: closeModal,
14819
14775
  color: "gray"
@@ -14822,14 +14778,14 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
14822
14778
  vue.renderSlot(_ctx.$slots, "footer")
14823
14779
  ])
14824
14780
  ])
14825
- ], 42, _hoisted_1$Q);
14781
+ ], 42, _hoisted_1$R);
14826
14782
  };
14827
14783
  }
14828
14784
  });
14829
- const _hoisted_1$P = { class: "dropdown-title" };
14830
- const _hoisted_2$H = { class: "dropdown-body" };
14831
- const _hoisted_3$C = ["onClick"];
14832
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
14785
+ const _hoisted_1$Q = { class: "dropdown-title" };
14786
+ const _hoisted_2$I = { class: "dropdown-body" };
14787
+ const _hoisted_3$D = ["onClick"];
14788
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
14833
14789
  __name: "DropDown",
14834
14790
  props: {
14835
14791
  modelValue: String,
@@ -14855,35 +14811,31 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
14855
14811
  class: vue.normalizeClass(["dropdown", { opendrop: isOpen.value }]),
14856
14812
  onClick: toggleDropdown
14857
14813
  }, [
14858
- vue.createElementVNode("div", _hoisted_1$P, [
14814
+ vue.createElementVNode("div", _hoisted_1$Q, [
14859
14815
  vue.createTextVNode(vue.toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
14860
- vue.createVNode(vue.unref(MaterialIcon), { icon: "keyboard_arrow_down" })
14816
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "keyboard_arrow_down" })
14861
14817
  ]),
14862
- vue.createElementVNode("div", _hoisted_2$H, [
14818
+ vue.createElementVNode("div", _hoisted_2$I, [
14863
14819
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option2, index2) => {
14864
14820
  return vue.openBlock(), vue.createElementBlock("p", {
14865
14821
  key: index2,
14866
14822
  onClick: vue.withModifiers(($event) => selectOption(option2, index2), ["stop"])
14867
- }, vue.toDisplayString(option2), 9, _hoisted_3$C);
14823
+ }, vue.toDisplayString(option2), 9, _hoisted_3$D);
14868
14824
  }), 128))
14869
14825
  ])
14870
14826
  ], 2);
14871
14827
  };
14872
14828
  }
14873
14829
  });
14874
- const DropDown = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14875
- __proto__: null,
14876
- default: _sfc_main$I
14877
- }, Symbol.toStringTag, { value: "Module" }));
14878
- const _hoisted_1$O = { class: "card list-view grid thin" };
14879
- const _hoisted_2$G = { class: "list-header flex gap-3 align-items-top" };
14880
- const _hoisted_3$B = {
14830
+ const _hoisted_1$P = { class: "card list-view grid thin" };
14831
+ const _hoisted_2$H = { class: "list-header flex gap-3 align-items-top" };
14832
+ const _hoisted_3$C = {
14881
14833
  key: 0,
14882
14834
  class: "bagel-input search-wrap"
14883
14835
  };
14884
- const _hoisted_4$m = ["placeholder"];
14885
- const _hoisted_5$j = { class: "list-content grid auto-flow-rows align-items-start" };
14886
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
14836
+ const _hoisted_4$n = ["placeholder"];
14837
+ const _hoisted_5$k = { class: "list-content grid auto-flow-rows align-items-start" };
14838
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
14887
14839
  __name: "ListView",
14888
14840
  props: {
14889
14841
  enableAdd: { type: Boolean },
@@ -14900,42 +14852,38 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
14900
14852
  debounce(() => emit2("debounce", searchTerm.value));
14901
14853
  };
14902
14854
  return (_ctx, _cache) => {
14903
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
14904
- vue.createElementVNode("div", _hoisted_2$G, [
14905
- _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$B, [
14855
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
14856
+ vue.createElementVNode("div", _hoisted_2$H, [
14857
+ _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$C, [
14906
14858
  vue.withDirectives(vue.createElementVNode("input", {
14907
14859
  placeholder: _ctx.searchPlaceholder,
14908
14860
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
14909
14861
  onInput: _cache[1] || (_cache[1] = ($event) => search())
14910
- }, null, 40, _hoisted_4$m), [
14862
+ }, null, 40, _hoisted_4$n), [
14911
14863
  [vue.vModelText, searchTerm.value]
14912
14864
  ]),
14913
- vue.createVNode(vue.unref(MaterialIcon), {
14865
+ vue.createVNode(vue.unref(_sfc_main$N), {
14914
14866
  class: "txtgray",
14915
14867
  icon: "search"
14916
14868
  })
14917
14869
  ])) : vue.createCommentVNode("", true),
14918
- _ctx.enableAdd ? (vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
14870
+ _ctx.enableAdd ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
14919
14871
  key: 1,
14920
14872
  color: "blue",
14921
14873
  icon: "add",
14922
14874
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
14923
14875
  })) : vue.createCommentVNode("", true)
14924
14876
  ]),
14925
- vue.createElementVNode("div", _hoisted_5$j, [
14877
+ vue.createElementVNode("div", _hoisted_5$k, [
14926
14878
  vue.renderSlot(_ctx.$slots, "default")
14927
14879
  ])
14928
14880
  ]);
14929
14881
  };
14930
14882
  }
14931
14883
  });
14932
- const ListView = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14933
- __proto__: null,
14934
- default: _sfc_main$H
14935
- }, Symbol.toStringTag, { value: "Module" }));
14936
- const _hoisted_1$N = { class: "txt16 no-margin" };
14937
- const _hoisted_2$F = { class: "txt14 no-margin txtgray" };
14938
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
14884
+ const _hoisted_1$O = { class: "txt16 no-margin" };
14885
+ const _hoisted_2$G = { class: "txt14 no-margin txtgray" };
14886
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
14939
14887
  __name: "ListItem",
14940
14888
  props: {
14941
14889
  to: {}
@@ -14947,10 +14895,10 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
14947
14895
  class: "list-item ellipsis"
14948
14896
  }, {
14949
14897
  default: vue.withCtx(() => [
14950
- vue.createElementVNode("p", _hoisted_1$N, [
14898
+ vue.createElementVNode("p", _hoisted_1$O, [
14951
14899
  vue.renderSlot(_ctx.$slots, "default")
14952
14900
  ]),
14953
- vue.createElementVNode("p", _hoisted_2$F, [
14901
+ vue.createElementVNode("p", _hoisted_2$G, [
14954
14902
  vue.renderSlot(_ctx.$slots, "subtitle")
14955
14903
  ])
14956
14904
  ]),
@@ -14959,15 +14907,11 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
14959
14907
  };
14960
14908
  }
14961
14909
  });
14962
- const ListItem = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
14963
- __proto__: null,
14964
- default: _sfc_main$G
14965
- }, Symbol.toStringTag, { value: "Module" }));
14966
- const _hoisted_1$M = { class: "h-100 grid list-view gap-3" };
14967
- const _hoisted_2$E = { class: "card tabs-top" };
14968
- const _hoisted_3$A = { class: "tabs grid auto-flow-columns fit-content" };
14969
- const _hoisted_4$l = ["onClick"];
14970
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
14910
+ const _hoisted_1$N = { class: "h-100 grid list-view gap-3" };
14911
+ const _hoisted_2$F = { class: "card tabs-top" };
14912
+ const _hoisted_3$B = { class: "tabs grid auto-flow-columns fit-content" };
14913
+ const _hoisted_4$m = ["onClick"];
14914
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
14971
14915
  __name: "TabbedLayout",
14972
14916
  props: {
14973
14917
  title: {},
@@ -14995,10 +14939,10 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
14995
14939
  activeTab.value = firstTab;
14996
14940
  });
14997
14941
  return (_ctx, _cache) => {
14998
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
14999
- vue.createElementVNode("div", _hoisted_2$E, [
14942
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
14943
+ vue.createElementVNode("div", _hoisted_2$F, [
15000
14944
  vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
15001
- vue.createElementVNode("div", _hoisted_3$A, [
14945
+ vue.createElementVNode("div", _hoisted_3$B, [
15002
14946
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
15003
14947
  return vue.openBlock(), vue.createElementBlock("div", {
15004
14948
  class: vue.normalizeClass([{
@@ -15006,7 +14950,7 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15006
14950
  }, "tab"]),
15007
14951
  key: tab,
15008
14952
  onClick: ($event) => changeTab(tab)
15009
- }, vue.toDisplayString(tab), 11, _hoisted_4$l);
14953
+ }, vue.toDisplayString(tab), 11, _hoisted_4$m);
15010
14954
  }), 128))
15011
14955
  ])
15012
14956
  ]),
@@ -15022,25 +14966,21 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15022
14966
  };
15023
14967
  }
15024
14968
  });
15025
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-4ac29f1d"]]);
15026
- const TabbedLayout$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15027
- __proto__: null,
15028
- default: TabbedLayout
15029
- }, Symbol.toStringTag, { value: "Module" }));
15030
- const _hoisted_1$L = { class: "comments-wrap" };
15031
- const _hoisted_2$D = { class: "comment-list" };
15032
- const _hoisted_3$z = { class: "comment-top" };
15033
- const _hoisted_4$k = { class: "comment-owner" };
15034
- const _hoisted_5$i = { class: "comment-time" };
15035
- const _hoisted_6$f = { class: "comment-actions" };
15036
- const _hoisted_7$a = ["innerHTML"];
15037
- const _hoisted_8$5 = { class: "new-comment" };
15038
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
14969
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-4ac29f1d"]]);
14970
+ const _hoisted_1$M = { class: "comments-wrap" };
14971
+ const _hoisted_2$E = { class: "comment-list" };
14972
+ const _hoisted_3$A = { class: "comment-top" };
14973
+ const _hoisted_4$l = { class: "comment-owner" };
14974
+ const _hoisted_5$j = { class: "comment-time" };
14975
+ const _hoisted_6$g = { class: "comment-actions" };
14976
+ const _hoisted_7$b = ["innerHTML"];
14977
+ const _hoisted_8$6 = { class: "new-comment" };
14978
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15039
14979
  __name: "Comments",
15040
14980
  props: {
15041
14981
  ref_table: {},
15042
14982
  ref_id: {},
15043
- form: {}
14983
+ sendBtnLabel: {}
15044
14984
  },
15045
14985
  setup(__props) {
15046
14986
  const bagel = useBagel();
@@ -15080,8 +15020,8 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15080
15020
  void fetchData();
15081
15021
  };
15082
15022
  return (_ctx, _cache) => {
15083
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15084
- vue.createElementVNode("div", _hoisted_2$D, [
15023
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15024
+ vue.createElementVNode("div", _hoisted_2$E, [
15085
15025
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(comments), (comment) => {
15086
15026
  var _a, _b, _c;
15087
15027
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -15091,23 +15031,23 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15091
15031
  }, "comment"]),
15092
15032
  key: comment.id
15093
15033
  }, [
15094
- vue.createElementVNode("div", _hoisted_3$z, [
15095
- vue.createElementVNode("div", _hoisted_4$k, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15096
- vue.createElementVNode("div", _hoisted_5$i, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15097
- vue.createElementVNode("div", _hoisted_6$f, [
15098
- vue.createVNode(vue.unref(MaterialIcon), {
15034
+ vue.createElementVNode("div", _hoisted_3$A, [
15035
+ vue.createElementVNode("div", _hoisted_4$l, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15036
+ vue.createElementVNode("div", _hoisted_5$j, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15037
+ vue.createElementVNode("div", _hoisted_6$g, [
15038
+ vue.createVNode(vue.unref(_sfc_main$N), {
15099
15039
  size: 1,
15100
15040
  class: "edit",
15101
15041
  icon: "edit",
15102
15042
  onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
15103
15043
  }, null, 8, ["onClick"]),
15104
- vue.createVNode(vue.unref(MaterialIcon), {
15044
+ vue.createVNode(vue.unref(_sfc_main$N), {
15105
15045
  size: 1.2,
15106
15046
  class: "delete",
15107
15047
  icon: "delete",
15108
15048
  onClick: ($event) => deleteComment(comment.id)
15109
15049
  }, null, 8, ["onClick"]),
15110
- vue.createVNode(vue.unref(MaterialIcon), {
15050
+ vue.createVNode(vue.unref(_sfc_main$N), {
15111
15051
  size: 1.2,
15112
15052
  class: "save",
15113
15053
  icon: "save",
@@ -15115,7 +15055,7 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15115
15055
  })
15116
15056
  ])
15117
15057
  ]),
15118
- vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(RTXEditor), {
15058
+ vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$O), {
15119
15059
  key: 0,
15120
15060
  modelValue: vue.unref(editComment).body_html,
15121
15061
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
@@ -15124,23 +15064,23 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15124
15064
  key: 1,
15125
15065
  class: "editor-wrapper",
15126
15066
  innerHTML: comment.body_html
15127
- }, null, 8, _hoisted_7$a))
15067
+ }, null, 8, _hoisted_7$b))
15128
15068
  ], 2);
15129
15069
  }), 128))
15130
15070
  ]),
15131
- vue.createElementVNode("div", _hoisted_8$5, [
15132
- vue.createVNode(vue.unref(RTXEditor), {
15071
+ vue.createElementVNode("div", _hoisted_8$6, [
15072
+ vue.createVNode(vue.unref(_sfc_main$O), {
15133
15073
  class: "comment-input",
15134
15074
  modelValue: vue.unref(bodyHtml),
15135
15075
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
15136
15076
  onKeydown: vue.withKeys(vue.withModifiers(newComment, ["meta"]), ["enter"])
15137
15077
  }, null, 8, ["modelValue", "onKeydown"]),
15138
- vue.createVNode(vue.unref(Btn$1), {
15078
+ vue.createVNode(vue.unref(Btn), {
15139
15079
  icon: "send",
15140
15080
  onClick: newComment
15141
15081
  }, {
15142
15082
  default: vue.withCtx(() => [
15143
- vue.createTextVNode(vue.toDisplayString(_ctx.form.send), 1)
15083
+ vue.createTextVNode(vue.toDisplayString(_ctx.sendBtnLabel), 1)
15144
15084
  ]),
15145
15085
  _: 1
15146
15086
  })
@@ -15149,14 +15089,10 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15149
15089
  };
15150
15090
  }
15151
15091
  });
15152
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-10f58b91"]]);
15153
- const Comments$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15154
- __proto__: null,
15155
- default: Comments
15156
- }, Symbol.toStringTag, { value: "Module" }));
15157
- const _hoisted_1$K = { class: "page-top" };
15158
- const _hoisted_2$C = { class: "top-title" };
15159
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15092
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-ff29354a"]]);
15093
+ const _hoisted_1$L = { class: "page-top" };
15094
+ const _hoisted_2$D = { class: "top-title" };
15095
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
15160
15096
  __name: "PageTitle",
15161
15097
  props: {
15162
15098
  value: {
@@ -15166,8 +15102,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15166
15102
  },
15167
15103
  setup(__props) {
15168
15104
  return (_ctx, _cache) => {
15169
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
15170
- vue.createElementVNode("h1", _hoisted_2$C, [
15105
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15106
+ vue.createElementVNode("h1", _hoisted_2$D, [
15171
15107
  vue.renderSlot(_ctx.$slots, "default"),
15172
15108
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
15173
15109
  ])
@@ -15175,14 +15111,10 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15175
15111
  };
15176
15112
  }
15177
15113
  });
15178
- const PageTitle = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15179
- __proto__: null,
15180
- default: _sfc_main$D
15181
- }, Symbol.toStringTag, { value: "Module" }));
15182
- const _hoisted_1$J = ["onKeydown"];
15183
- const _hoisted_2$B = { class: "tool-bar" };
15184
- const _hoisted_3$y = { class: "modal-title" };
15185
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15114
+ const _hoisted_1$K = ["onKeydown"];
15115
+ const _hoisted_2$C = { class: "tool-bar" };
15116
+ const _hoisted_3$z = { class: "modal-title" };
15117
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15186
15118
  __name: "ModalForm",
15187
15119
  props: {
15188
15120
  side: { type: Boolean },
@@ -15244,17 +15176,17 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15244
15176
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
15245
15177
  }, ["stop"]))
15246
15178
  }, [
15247
- vue.createElementVNode("header", _hoisted_2$B, [
15179
+ vue.createElementVNode("header", _hoisted_2$C, [
15248
15180
  vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
15249
- vue.createVNode(vue.unref(Btn$1), {
15181
+ vue.createVNode(vue.unref(Btn), {
15250
15182
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
15251
15183
  flat: "",
15252
15184
  icon: "close",
15253
15185
  onClick: closeModal
15254
15186
  }, null, 8, ["style"]),
15255
- vue.createElementVNode("h3", _hoisted_3$y, vue.toDisplayString(_ctx.title), 1)
15187
+ vue.createElementVNode("h3", _hoisted_3$z, vue.toDisplayString(_ctx.title), 1)
15256
15188
  ]),
15257
- vue.createVNode(vue.unref(FormSchema), {
15189
+ vue.createVNode(vue.unref(_sfc_main$B), {
15258
15190
  onDelete: _ctx.onDelete ? runDelete : null,
15259
15191
  modelValue: _ctx.modelValue,
15260
15192
  "onUpdate:modelValue": handleEmit,
@@ -15262,24 +15194,24 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15262
15194
  schema: computedFormSchema.value
15263
15195
  }, null, 8, ["onDelete", "modelValue", "schema"])
15264
15196
  ])
15265
- ], 42, _hoisted_1$J);
15197
+ ], 42, _hoisted_1$K);
15266
15198
  };
15267
15199
  }
15268
15200
  });
15269
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-d04a51e8"]]);
15270
- const _hoisted_1$I = {
15201
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-d04a51e8"]]);
15202
+ const _hoisted_1$J = {
15271
15203
  key: 0,
15272
15204
  class: "data"
15273
15205
  };
15274
- const _hoisted_2$A = {
15206
+ const _hoisted_2$B = {
15275
15207
  key: 0,
15276
15208
  class: "mb-3 mt-0"
15277
15209
  };
15278
- const _hoisted_3$x = { class: "key" };
15279
- const _hoisted_4$j = { key: 1 };
15280
- const _hoisted_5$h = { class: "key" };
15281
- const _hoisted_6$e = { class: "vlue" };
15282
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15210
+ const _hoisted_3$y = { class: "key" };
15211
+ const _hoisted_4$k = { key: 1 };
15212
+ const _hoisted_5$i = { class: "key" };
15213
+ const _hoisted_6$f = { class: "vlue" };
15214
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15283
15215
  __name: "DataPreview",
15284
15216
  props: {
15285
15217
  data: {},
@@ -15291,14 +15223,14 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15291
15223
  const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
15292
15224
  return (_ctx, _cache) => {
15293
15225
  var _a;
15294
- return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
15295
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$A, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15226
+ return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
15227
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$B, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15296
15228
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema || [], (field) => {
15297
15229
  return vue.openBlock(), vue.createElementBlock("div", {
15298
15230
  key: field.id,
15299
15231
  class: "data-row"
15300
15232
  }, [
15301
- vue.createElementVNode("div", _hoisted_3$x, vue.toDisplayString(field.label ? vue.unref(parseLocale)(field.label) : vue.unref(keyToLabel)(field.id)), 1),
15233
+ vue.createElementVNode("div", _hoisted_3$y, vue.toDisplayString(field.label ? vue.unref(parseLocale)(field.label) : vue.unref(keyToLabel)(field.id)), 1),
15302
15234
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
15303
15235
  default: vue.withCtx(() => [
15304
15236
  vue.createTextVNode(vue.toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
@@ -15307,7 +15239,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15307
15239
  }, 1024))
15308
15240
  ]);
15309
15241
  }), 128)),
15310
- !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$j, [
15242
+ !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, [
15311
15243
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(_ctx.data).filter(
15312
15244
  ([key]) => !keysToIgnore.includes(key)
15313
15245
  ), ([key, value]) => {
@@ -15315,8 +15247,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15315
15247
  class: "data-row",
15316
15248
  key
15317
15249
  }, [
15318
- vue.createElementVNode("div", _hoisted_5$h, vue.toDisplayString(_ctx.$t(vue.unref(keyToLabel)(key))), 1),
15319
- vue.createElementVNode("div", _hoisted_6$e, vue.toDisplayString(value), 1)
15250
+ vue.createElementVNode("div", _hoisted_5$i, vue.toDisplayString(_ctx.$t(vue.unref(keyToLabel)(key))), 1),
15251
+ vue.createElementVNode("div", _hoisted_6$f, vue.toDisplayString(value), 1)
15320
15252
  ]);
15321
15253
  }), 128))
15322
15254
  ])) : vue.createCommentVNode("", true),
@@ -15325,12 +15257,8 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15325
15257
  };
15326
15258
  }
15327
15259
  });
15328
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-f006fc35"]]);
15329
- const DataPreview$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15330
- __proto__: null,
15331
- default: DataPreview
15332
- }, Symbol.toStringTag, { value: "Module" }));
15333
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15260
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-f006fc35"]]);
15261
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15334
15262
  __name: "FormSchema",
15335
15263
  props: {
15336
15264
  modelValue: {},
@@ -15389,7 +15317,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15389
15317
  ]),
15390
15318
  _: 1
15391
15319
  }, 8, ["modelValue", "submitLabel"]),
15392
- ((_a = _ctx.modelValue) == null ? void 0 : _a.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
15320
+ ((_a = _ctx.modelValue) == null ? void 0 : _a.id) && _ctx.onDelete ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
15393
15321
  key: 0,
15394
15322
  class: "del-top",
15395
15323
  onClick: runDelete,
@@ -15403,14 +15331,14 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15403
15331
  };
15404
15332
  }
15405
15333
  });
15406
- const _hoisted_1$H = { class: "table-list-wrap h-100" };
15407
- const _hoisted_2$z = { class: "infinite-wrapper" };
15408
- const _hoisted_3$w = { class: "row first-row" };
15409
- const _hoisted_4$i = ["onClick"];
15410
- const _hoisted_5$g = { class: "flex" };
15411
- const _hoisted_6$d = ["onClick"];
15412
- const _hoisted_7$9 = { key: 1 };
15413
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
15334
+ const _hoisted_1$I = { class: "table-list-wrap h-100" };
15335
+ const _hoisted_2$A = { class: "infinite-wrapper" };
15336
+ const _hoisted_3$x = { class: "row first-row" };
15337
+ const _hoisted_4$j = ["onClick"];
15338
+ const _hoisted_5$h = { class: "flex" };
15339
+ const _hoisted_6$e = ["onClick"];
15340
+ const _hoisted_7$a = { key: 1 };
15341
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15414
15342
  __name: "TableSchema",
15415
15343
  props: {
15416
15344
  data: {},
@@ -15457,27 +15385,27 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
15457
15385
  }))
15458
15386
  );
15459
15387
  return (_ctx, _cache) => {
15460
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
15461
- vue.createElementVNode("table", _hoisted_2$z, [
15462
- vue.createElementVNode("thead", _hoisted_3$w, [
15388
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
15389
+ vue.createElementVNode("table", _hoisted_2$A, [
15390
+ vue.createElementVNode("thead", _hoisted_3$x, [
15463
15391
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(columns.value, (field) => {
15464
15392
  return vue.openBlock(), vue.createElementBlock("th", {
15465
15393
  class: "col",
15466
15394
  key: field.id,
15467
15395
  onClick: ($event) => sort2(field.id)
15468
15396
  }, [
15469
- vue.createElementVNode("div", _hoisted_5$g, [
15397
+ vue.createElementVNode("div", _hoisted_5$h, [
15470
15398
  vue.createTextVNode(vue.toDisplayString(vue.unref(parseLocale)(field.label || field.id)) + " ", 1),
15471
15399
  vue.createElementVNode("div", {
15472
15400
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
15473
15401
  }, [
15474
- vue.createVNode(vue.unref(MaterialIcon), {
15402
+ vue.createVNode(vue.unref(_sfc_main$N), {
15475
15403
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
15476
15404
  icon: "keyboard_arrow_up"
15477
15405
  }, null, 8, ["class"])
15478
15406
  ], 2)
15479
15407
  ])
15480
- ], 8, _hoisted_4$i);
15408
+ ], 8, _hoisted_4$j);
15481
15409
  }), 128))
15482
15410
  ]),
15483
15411
  vue.createElementVNode("tbody", {
@@ -15500,7 +15428,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
15500
15428
  key: 0,
15501
15429
  row,
15502
15430
  field
15503
- }, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$9, [
15431
+ }, void 0, true) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$a, [
15504
15432
  (field["v-if"] ? field["v-if"](row[field.id], row) : true) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || field.$cmp || "div"), vue.mergeProps({ key: 0 }, bindAttrs(field.attrs, row[field.id], row), {
15505
15433
  src: field.$el === "img" ? (_a = row[field.id]) == null ? void 0 : _a.url : ""
15506
15434
  }), {
@@ -15515,7 +15443,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
15515
15443
  ]))
15516
15444
  ]);
15517
15445
  }), 128))
15518
- ], 8, _hoisted_6$d);
15446
+ ], 8, _hoisted_6$e);
15519
15447
  }), 128))
15520
15448
  ], 2)
15521
15449
  ])
@@ -15523,24 +15451,16 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
15523
15451
  };
15524
15452
  }
15525
15453
  });
15526
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-5c5ba615"]]);
15527
- const TableSchema$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15528
- __proto__: null,
15529
- default: TableSchema
15530
- }, Symbol.toStringTag, { value: "Module" }));
15531
- const _sfc_main$y = {};
15532
- const _hoisted_1$G = { class: "flex space-between" };
15454
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-5c5ba615"]]);
15455
+ const _sfc_main$z = {};
15456
+ const _hoisted_1$H = { class: "flex space-between" };
15533
15457
  function _sfc_render$1(_ctx, _cache) {
15534
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
15458
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
15535
15459
  vue.renderSlot(_ctx.$slots, "default")
15536
15460
  ]);
15537
15461
  }
15538
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$1]]);
15539
- const TopBar$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15540
- __proto__: null,
15541
- default: TopBar
15542
- }, Symbol.toStringTag, { value: "Module" }));
15543
- const _sfc_main$x = {};
15462
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_render$1]]);
15463
+ const _sfc_main$y = {};
15544
15464
  function _sfc_render(_ctx, _cache) {
15545
15465
  const _component_router_view = vue.resolveComponent("router-view");
15546
15466
  return vue.openBlock(), vue.createBlock(_component_router_view, null, {
@@ -15562,13 +15482,9 @@ function _sfc_render(_ctx, _cache) {
15562
15482
  _: 1
15563
15483
  });
15564
15484
  }
15565
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render]]);
15566
- const RouterWrapper$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15567
- __proto__: null,
15568
- default: RouterWrapper
15569
- }, Symbol.toStringTag, { value: "Module" }));
15570
- const _hoisted_1$F = { class: "card h-100 thin" };
15571
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
15485
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render]]);
15486
+ const _hoisted_1$G = { class: "card h-100 thin" };
15487
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
15572
15488
  __name: "ContactSubmissions",
15573
15489
  props: {
15574
15490
  person_id: {
@@ -15598,8 +15514,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
15598
15514
  void getData();
15599
15515
  });
15600
15516
  return (_ctx, _cache) => {
15601
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
15602
- vue.createVNode(vue.unref(TableSchema$1), {
15517
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
15518
+ vue.createVNode(vue.unref(TableSchema), {
15603
15519
  schema: schema2,
15604
15520
  data: vue.unref(data2)
15605
15521
  }, null, 8, ["data"])
@@ -15607,10 +15523,106 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
15607
15523
  };
15608
15524
  }
15609
15525
  });
15610
- const ContactSubmissions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15611
- __proto__: null,
15612
- default: _sfc_main$w
15613
- }, Symbol.toStringTag, { value: "Module" }));
15526
+ const _hoisted_1$F = {
15527
+ key: 0,
15528
+ class: "person-card-edit flex gap-2"
15529
+ };
15530
+ const _hoisted_2$z = { class: "person-card-icon-wrap" };
15531
+ const _hoisted_3$w = { class: "person-card-icon" };
15532
+ const _hoisted_4$i = { class: "person-card-name txt20" };
15533
+ const _hoisted_5$g = { class: "person-card-details-wrap" };
15534
+ const _hoisted_6$d = {
15535
+ key: 0,
15536
+ class: "person-card-details"
15537
+ };
15538
+ const _hoisted_7$9 = {
15539
+ key: 1,
15540
+ class: "person-card-details"
15541
+ };
15542
+ const _hoisted_8$5 = {
15543
+ key: 2,
15544
+ class: "person-card-details badge"
15545
+ };
15546
+ const _hoisted_9$4 = { key: 0 };
15547
+ const _hoisted_10$3 = { key: 1 };
15548
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
15549
+ __name: "PersonPreview",
15550
+ props: {
15551
+ person: {},
15552
+ onClick: { type: Function },
15553
+ personSchema: { type: Function }
15554
+ },
15555
+ setup(__props) {
15556
+ const bagel = useBagel();
15557
+ const { modalForm } = useModal();
15558
+ const props2 = __props;
15559
+ const showEditForm = async () => {
15560
+ const { first_name, last_name } = props2.person;
15561
+ modalForm({
15562
+ side: true,
15563
+ title: `${first_name} ${last_name}`,
15564
+ schema: props2.personSchema(),
15565
+ modelValue: props2.person,
15566
+ onSubmit: (newPerson) => bagel.put("/person", newPerson)
15567
+ // .then(() => toast.success($t('updatedSuccessfully'))),
15568
+ });
15569
+ };
15570
+ return (_ctx, _cache) => {
15571
+ var _a, _b;
15572
+ return _ctx.person ? (vue.openBlock(), vue.createElementBlock("div", {
15573
+ key: 0,
15574
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
15575
+ (...args) => _ctx.onClick && _ctx.onClick(...args)),
15576
+ class: "person-card"
15577
+ }, [
15578
+ !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$F, [
15579
+ !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
15580
+ key: 0,
15581
+ round: "",
15582
+ thin: "",
15583
+ "icon.end": "arrow_outward",
15584
+ value: "Profile",
15585
+ is: "router-link",
15586
+ to: `/search/${_ctx.person.id}`
15587
+ }, null, 8, ["to"])) : vue.createCommentVNode("", true),
15588
+ vue.createVNode(vue.unref(Btn), {
15589
+ thin: "",
15590
+ flat: "",
15591
+ onClick: showEditForm,
15592
+ icon: "edit"
15593
+ })
15594
+ ])) : vue.createCommentVNode("", true),
15595
+ vue.createElementVNode("div", _hoisted_2$z, [
15596
+ vue.createElementVNode("p", _hoisted_3$w, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15597
+ vue.createElementVNode("p", _hoisted_4$i, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15598
+ ]),
15599
+ vue.createElementVNode("div", _hoisted_5$g, [
15600
+ ((_a = _ctx.person.phone) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$d, [
15601
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "phone" }),
15602
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.phone, (phone) => {
15603
+ return vue.openBlock(), vue.createElementBlock("p", {
15604
+ key: phone.id
15605
+ }, vue.toDisplayString(phone.phone), 1);
15606
+ }), 128))
15607
+ ])) : vue.createCommentVNode("", true),
15608
+ ((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$9, [
15609
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "email" }),
15610
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.email, (email) => {
15611
+ return vue.openBlock(), vue.createElementBlock("p", {
15612
+ key: email.id
15613
+ }, vue.toDisplayString(email.email), 1);
15614
+ }), 128))
15615
+ ])) : vue.createCommentVNode("", true),
15616
+ _ctx.person.date_of_birth || _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
15617
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "badge" }),
15618
+ _ctx.person.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$4, vue.toDisplayString(_ctx.person.date_of_birth), 1)) : vue.createCommentVNode("", true),
15619
+ _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10$3, vue.toDisplayString(_ctx.person.gender), 1)) : vue.createCommentVNode("", true)
15620
+ ])) : vue.createCommentVNode("", true)
15621
+ ])
15622
+ ])) : vue.createCommentVNode("", true);
15623
+ };
15624
+ }
15625
+ });
15614
15626
  const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-f7af54ed"), n = n(), vue.popScopeId(), n);
15615
15627
  const _hoisted_1$E = { class: "bar-chart" };
15616
15628
  const _hoisted_2$y = {
@@ -15728,10 +15740,6 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
15728
15740
  }
15729
15741
  });
15730
15742
  const BarChart = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f7af54ed"]]);
15731
- const BarChart$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
15732
- __proto__: null,
15733
- default: BarChart
15734
- }, Symbol.toStringTag, { value: "Module" }));
15735
15743
  const explicitKeys = [
15736
15744
  "__key",
15737
15745
  "__init",
@@ -17020,7 +17028,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
17020
17028
  [vue.vModelCheckbox, vue.unref(val)]
17021
17029
  ]),
17022
17030
  vue.createElementVNode("span", null, [
17023
- vue.createVNode(vue.unref(MaterialIcon), { icon: "check" })
17031
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "check" })
17024
17032
  ])
17025
17033
  ]);
17026
17034
  };
@@ -17095,7 +17103,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
17095
17103
  }, [
17096
17104
  vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
17097
17105
  vue.createElementVNode("p", _hoisted_4$g, vue.toDisplayString(_ctx.form.sure), 1),
17098
- vue.createVNode(vue.unref(Btn$1), {
17106
+ vue.createVNode(vue.unref(Btn), {
17099
17107
  thin: "",
17100
17108
  color: "red",
17101
17109
  onClick: ($event) => deleteContact(contact.id)
@@ -17105,7 +17113,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
17105
17113
  ]),
17106
17114
  _: 2
17107
17115
  }, 1032, ["onClick"]),
17108
- vue.createVNode(vue.unref(Btn$1), {
17116
+ vue.createVNode(vue.unref(Btn), {
17109
17117
  thin: "",
17110
17118
  onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17111
17119
  }, {
@@ -17143,7 +17151,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
17143
17151
  }, null, 8, _hoisted_7$7)), [
17144
17152
  [vue.vModelText, contact.phone]
17145
17153
  ]) : vue.createCommentVNode("", true),
17146
- vue.createVNode(vue.unref(Btn$1), {
17154
+ vue.createVNode(vue.unref(Btn), {
17147
17155
  thin: "",
17148
17156
  onClick: ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = i2 : deleteCandidate = i2,
17149
17157
  icon: "delete",
@@ -17152,7 +17160,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
17152
17160
  }, null, 8, ["onClick", "disabled"])
17153
17161
  ]);
17154
17162
  }), 128)),
17155
- vue.createVNode(vue.unref(Btn$1), {
17163
+ vue.createVNode(vue.unref(Btn), {
17156
17164
  class: "add-btn",
17157
17165
  color: "blue",
17158
17166
  flat: "",
@@ -17251,7 +17259,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17251
17259
  }, [
17252
17260
  vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
17253
17261
  vue.createElementVNode("p", _hoisted_4$f, vue.toDisplayString(_ctx.form.sure), 1),
17254
- vue.createVNode(vue.unref(Btn$1), {
17262
+ vue.createVNode(vue.unref(Btn), {
17255
17263
  thin: "",
17256
17264
  color: "red",
17257
17265
  onClick: ($event) => deleteContact(address.id)
@@ -17261,7 +17269,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17261
17269
  ]),
17262
17270
  _: 2
17263
17271
  }, 1032, ["onClick"]),
17264
- vue.createVNode(vue.unref(Btn$1), {
17272
+ vue.createVNode(vue.unref(Btn), {
17265
17273
  thin: "",
17266
17274
  onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17267
17275
  }, {
@@ -17316,7 +17324,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17316
17324
  ])
17317
17325
  ]),
17318
17326
  vue.createElementVNode("div", _hoisted_12$1, [
17319
- vue.createVNode(vue.unref(Btn$1), {
17327
+ vue.createVNode(vue.unref(Btn), {
17320
17328
  thin: "",
17321
17329
  onClick: ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = i2 : deleteCandidate = i2,
17322
17330
  icon: "delete",
@@ -17325,7 +17333,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17325
17333
  ])
17326
17334
  ]);
17327
17335
  }), 128)),
17328
- vue.createVNode(vue.unref(Btn$1), {
17336
+ vue.createVNode(vue.unref(Btn), {
17329
17337
  class: "add-btn",
17330
17338
  color: "blue",
17331
17339
  flat: "",
@@ -17423,7 +17431,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
17423
17431
  }, [
17424
17432
  vue.unref(deleteCandidate) === i2 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
17425
17433
  vue.createElementVNode("p", _hoisted_4$e, vue.toDisplayString(_ctx.form.sure), 1),
17426
- vue.createVNode(vue.unref(Btn$1), {
17434
+ vue.createVNode(vue.unref(Btn), {
17427
17435
  thin: "",
17428
17436
  color: "red",
17429
17437
  onClick: ($event) => deleteContact(bank_account.id)
@@ -17433,7 +17441,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
17433
17441
  ]),
17434
17442
  _: 2
17435
17443
  }, 1032, ["onClick"]),
17436
- vue.createVNode(vue.unref(Btn$1), {
17444
+ vue.createVNode(vue.unref(Btn), {
17437
17445
  thin: "",
17438
17446
  onClick: _cache[0] || (_cache[0] = ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = -1 : deleteCandidate = -1)
17439
17447
  }, {
@@ -17522,7 +17530,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
17522
17530
  ])
17523
17531
  ]),
17524
17532
  vue.createElementVNode("div", _hoisted_17, [
17525
- vue.createVNode(vue.unref(Btn$1), {
17533
+ vue.createVNode(vue.unref(Btn), {
17526
17534
  thin: "",
17527
17535
  onClick: ($event) => vue.isRef(deleteCandidate) ? deleteCandidate.value = i2 : deleteCandidate = i2,
17528
17536
  icon: "delete",
@@ -17531,7 +17539,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
17531
17539
  ])
17532
17540
  ]);
17533
17541
  }), 128)),
17534
- vue.createVNode(vue.unref(Btn$1), {
17542
+ vue.createVNode(vue.unref(Btn), {
17535
17543
  class: "add-btn",
17536
17544
  color: "blue",
17537
17545
  flat: "",
@@ -17577,7 +17585,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
17577
17585
  return ((_a = field.value) == null ? void 0 : _a.length) === 0;
17578
17586
  }
17579
17587
  ), (field, i2) => {
17580
- return vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
17588
+ return vue.openBlock(), vue.createBlock(vue.unref(Btn), {
17581
17589
  class: "add-btn",
17582
17590
  color: "gray",
17583
17591
  flat: "",
@@ -17834,12 +17842,12 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
17834
17842
  style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
17835
17843
  }, [
17836
17844
  item.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$1, vue.toDisplayString(`${item.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
17837
- vue.createVNode(vue.unref(MaterialIcon), {
17845
+ vue.createVNode(vue.unref(_sfc_main$N), {
17838
17846
  class: "success",
17839
17847
  icon: "check"
17840
17848
  })
17841
17849
  ], 6),
17842
- item.progress === 100 ? (vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
17850
+ item.progress === 100 ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
17843
17851
  key: 0,
17844
17852
  thin: "",
17845
17853
  class: "delete-btn",
@@ -17918,7 +17926,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17918
17926
  class: "person-card"
17919
17927
  }, [
17920
17928
  !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
17921
- !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
17929
+ !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
17922
17930
  key: 0,
17923
17931
  onClick: vue.unref(hideModal),
17924
17932
  round: "",
@@ -17928,7 +17936,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17928
17936
  is: "router-link",
17929
17937
  to: `/search/${person.value.id}`
17930
17938
  }, null, 8, ["onClick", "to"])) : vue.createCommentVNode("", true),
17931
- vue.createVNode(vue.unref(Btn$1), {
17939
+ vue.createVNode(vue.unref(Btn), {
17932
17940
  thin: "",
17933
17941
  flat: "",
17934
17942
  onClick: showEditForm,
@@ -17941,7 +17949,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17941
17949
  ]),
17942
17950
  vue.createElementVNode("div", _hoisted_5$a, [
17943
17951
  ((_a = person.value.phone) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$7, [
17944
- vue.createVNode(vue.unref(MaterialIcon), { icon: "phone" }),
17952
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "phone" }),
17945
17953
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.phone, (phone) => {
17946
17954
  return vue.openBlock(), vue.createElementBlock("p", {
17947
17955
  key: phone.id
@@ -17949,7 +17957,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17949
17957
  }), 128))
17950
17958
  ])) : vue.createCommentVNode("", true),
17951
17959
  ((_b = person.value.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
17952
- vue.createVNode(vue.unref(MaterialIcon), { icon: "email" }),
17960
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "email" }),
17953
17961
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.email, (email) => {
17954
17962
  return vue.openBlock(), vue.createElementBlock("p", {
17955
17963
  key: email.id
@@ -17957,7 +17965,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
17957
17965
  }), 128))
17958
17966
  ])) : vue.createCommentVNode("", true),
17959
17967
  person.value.date_of_birth || person.value.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
17960
- vue.createVNode(vue.unref(MaterialIcon), { icon: "badge" }),
17968
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "badge" }),
17961
17969
  person.value.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9, vue.toDisplayString(person.value.date_of_birth), 1)) : vue.createCommentVNode("", true),
17962
17970
  person.value.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10, vue.toDisplayString(person.value.gender), 1)) : vue.createCommentVNode("", true)
17963
17971
  ])) : vue.createCommentVNode("", true)
@@ -18042,7 +18050,7 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18042
18050
  }, [
18043
18051
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(variables.value, (v) => {
18044
18052
  var _a;
18045
- return vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
18053
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$2), {
18046
18054
  key: v,
18047
18055
  placeholder: `Variable ${v}`,
18048
18056
  modelValue: (_a = vue.unref(val)) == null ? void 0 : _a[v - 1],
@@ -18053,18 +18061,14 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
18053
18061
  };
18054
18062
  }
18055
18063
  });
18056
- const TextVariableExamples = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18057
- __proto__: null,
18058
- default: _sfc_main$m
18059
- }, Symbol.toStringTag, { value: "Module" }));
18060
- const ContactArray = createInput(ContactArrayFormKit);
18061
- const Address = createInput(AddressArray);
18062
- const BankDetails = createInput(BankDetailsArray);
18063
- const MiscFields = createInput(MiscFieldsBtns);
18064
- const ToggleSwitch = createInput(Toggle);
18065
- const FileUpload = createInput(_sfc_main$o);
18066
- const TextVariables = createInput(_sfc_main$m);
18067
- const PersonPreview = createInput(_sfc_main$n);
18064
+ const ContactArrayInput = createInput(ContactArrayFormKit);
18065
+ const AddressInput = createInput(AddressArray);
18066
+ const BankDetailsInput = createInput(BankDetailsArray);
18067
+ const MiscFieldsInput = createInput(MiscFieldsBtns);
18068
+ const ToggleSwitchInput = createInput(Toggle);
18069
+ const FileUploadInput = createInput(_sfc_main$o);
18070
+ const TextVariablesInput = createInput(_sfc_main$m);
18071
+ const PersonPreviewInput = createInput(_sfc_main$n);
18068
18072
  const _hoisted_1$v = {
18069
18073
  key: 1,
18070
18074
  class: "pill"
@@ -18095,14 +18099,14 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18095
18099
  return (_ctx, _cache) => {
18096
18100
  return vue.openBlock(), vue.createElementBlock("div", null, [
18097
18101
  vue.createTextVNode(vue.toDisplayString(_ctx.field.label || _ctx.field.id) + " ", 1),
18098
- _ctx.field.refCollection ? (vue.openBlock(), vue.createBlock(vue.unref(Btn$1), {
18102
+ _ctx.field.refCollection ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
18099
18103
  key: 0,
18100
18104
  color: "gray",
18101
18105
  onClick: _cache[0] || (_cache[0] = ($event) => openModal())
18102
18106
  }, {
18103
18107
  default: vue.withCtx(() => [
18104
18108
  vue.createTextVNode(vue.toDisplayString(content.value) + " ", 1),
18105
- vue.createVNode(vue.unref(MaterialIcon), { icon: "arrow_forward" })
18109
+ vue.createVNode(vue.unref(_sfc_main$N), { icon: "arrow_forward" })
18106
18110
  ]),
18107
18111
  _: 1
18108
18112
  })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$v, vue.toDisplayString(content.value), 1))
@@ -18110,10 +18114,6 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
18110
18114
  };
18111
18115
  }
18112
18116
  });
18113
- const ItemRef = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18114
- __proto__: null,
18115
- default: _sfc_main$l
18116
- }, Symbol.toStringTag, { value: "Module" }));
18117
18117
  const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
18118
18118
  __name: "MaterialIcon",
18119
18119
  props: {
@@ -18169,7 +18169,7 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18169
18169
  vue.createElementVNode("label", {
18170
18170
  for: vue.unref(formatString)(_ctx.name, "pascal")
18171
18171
  }, [
18172
- vue.createVNode(_sfc_main$O, {
18172
+ vue.createVNode(_sfc_main$P, {
18173
18173
  input: vue.unref(formatString)(_ctx.name, "titleCase")
18174
18174
  }, null, 8, ["input"])
18175
18175
  ], 8, _hoisted_2$r),
@@ -18210,16 +18210,12 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
18210
18210
  onInput: handleInput
18211
18211
  }, null, 40, _hoisted_6$6)) : vue.createCommentVNode("", true),
18212
18212
  vue.createElementVNode("div", null, [
18213
- vue.createVNode(_sfc_main$O, { input: _ctx.errorMessage }, null, 8, ["input"])
18213
+ vue.createVNode(_sfc_main$P, { input: _ctx.errorMessage }, null, 8, ["input"])
18214
18214
  ])
18215
18215
  ]);
18216
18216
  };
18217
18217
  }
18218
18218
  });
18219
- const PlainInputField = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18220
- __proto__: null,
18221
- default: _sfc_main$j
18222
- }, Symbol.toStringTag, { value: "Module" }));
18223
18219
  const _withScopeId = (n) => (vue.pushScopeId("data-v-69f0d857"), n = n(), vue.popScopeId(), n);
18224
18220
  const _hoisted_1$t = ["title"];
18225
18221
  const _hoisted_2$q = ["for"];
@@ -18276,10 +18272,6 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
18276
18272
  }
18277
18273
  });
18278
18274
  const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-69f0d857"]]);
18279
- const CheckInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18280
- __proto__: null,
18281
- default: CheckInput
18282
- }, Symbol.toStringTag, { value: "Module" }));
18283
18275
  const _hoisted_1$s = ["title"];
18284
18276
  const _hoisted_2$p = { key: 0 };
18285
18277
  const _hoisted_3$m = { class: "flex gap-3" };
@@ -18402,10 +18394,6 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
18402
18394
  }
18403
18395
  });
18404
18396
  const CurrencyInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-17a56a3f"]]);
18405
- const CurrencyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18406
- __proto__: null,
18407
- default: CurrencyInput
18408
- }, Symbol.toStringTag, { value: "Module" }));
18409
18397
  const _hoisted_1$r = ["title"];
18410
18398
  const _hoisted_2$o = { key: 0 };
18411
18399
  const _hoisted_3$l = ["placeholder", "disabled"];
@@ -18448,10 +18436,6 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
18448
18436
  }
18449
18437
  });
18450
18438
  const DateInput = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-782aee7f"]]);
18451
- const DateInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18452
- __proto__: null,
18453
- default: DateInput
18454
- }, Symbol.toStringTag, { value: "Module" }));
18455
18439
  const _hoisted_1$q = ["title"];
18456
18440
  const _hoisted_2$n = { key: 0 };
18457
18441
  const _hoisted_3$k = ["value", "placeholder"];
@@ -18495,10 +18479,6 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
18495
18479
  };
18496
18480
  }
18497
18481
  });
18498
- const DatetimeInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18499
- __proto__: null,
18500
- default: _sfc_main$f
18501
- }, Symbol.toStringTag, { value: "Module" }));
18502
18482
  const _hoisted_1$p = ["title"];
18503
18483
  const _hoisted_2$m = { key: 0 };
18504
18484
  const _hoisted_3$j = ["value", "placeholder"];
@@ -18541,10 +18521,6 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
18541
18521
  }
18542
18522
  });
18543
18523
  const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-ed81a514"]]);
18544
- const EmailInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18545
- __proto__: null,
18546
- default: EmailInput
18547
- }, Symbol.toStringTag, { value: "Module" }));
18548
18524
  const _hoisted_1$o = ["title"];
18549
18525
  const _hoisted_2$l = { key: 0 };
18550
18526
  const _hoisted_3$i = ["value", "placeholder"];
@@ -18589,10 +18565,6 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
18589
18565
  };
18590
18566
  }
18591
18567
  });
18592
- const FloatInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18593
- __proto__: null,
18594
- default: _sfc_main$d
18595
- }, Symbol.toStringTag, { value: "Module" }));
18596
18568
  const _hoisted_1$n = ["title"];
18597
18569
  const _hoisted_2$k = { key: 0 };
18598
18570
  const _hoisted_3$h = ["value", "placeholder"];
@@ -18637,10 +18609,6 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
18637
18609
  };
18638
18610
  }
18639
18611
  });
18640
- const IntInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18641
- __proto__: null,
18642
- default: _sfc_main$c
18643
- }, Symbol.toStringTag, { value: "Module" }));
18644
18612
  const _hoisted_1$m = ["title"];
18645
18613
  const _hoisted_2$j = { key: 0 };
18646
18614
  const _hoisted_3$g = ["value", "placeholder"];
@@ -18681,10 +18649,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
18681
18649
  }
18682
18650
  });
18683
18651
  const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1fc4f739"]]);
18684
- const JSONInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18685
- __proto__: null,
18686
- default: JSONInput
18687
- }, Symbol.toStringTag, { value: "Module" }));
18688
18652
  const _hoisted_1$l = ["title"];
18689
18653
  const _hoisted_2$i = { key: 0 };
18690
18654
  const _hoisted_3$f = ["onKeydown", "disabled"];
@@ -18869,10 +18833,6 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
18869
18833
  }
18870
18834
  });
18871
18835
  const LinkField = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-947beb38"]]);
18872
- const LinkField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18873
- __proto__: null,
18874
- default: LinkField
18875
- }, Symbol.toStringTag, { value: "Module" }));
18876
18836
  const _hoisted_1$k = ["title"];
18877
18837
  const _hoisted_2$h = { key: 0 };
18878
18838
  const _hoisted_3$e = { class: "password-input-wrap" };
@@ -18932,10 +18892,6 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
18932
18892
  }
18933
18893
  });
18934
18894
  const PasswordInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-eec3e237"]]);
18935
- const PasswordInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18936
- __proto__: null,
18937
- default: PasswordInput
18938
- }, Symbol.toStringTag, { value: "Module" }));
18939
18895
  const _hoisted_1$j = ["title"];
18940
18896
  const _hoisted_2$g = ["for"];
18941
18897
  const _hoisted_3$d = ["id", "type", "placeholder", "required", "pattern"];
@@ -18983,7 +18939,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
18983
18939
  [vue.vModelDynamic, inputVal.value]
18984
18940
  ])
18985
18941
  ], 8, _hoisted_2$g),
18986
- vue.createVNode(vue.unref(MaterialIcon), {
18942
+ vue.createVNode(vue.unref(_sfc_main$N), {
18987
18943
  onClick: showPassword,
18988
18944
  icon: vue.unref(seePassword) ? "visibility" : "visibility_off"
18989
18945
  }, null, 8, ["icon"])
@@ -18992,10 +18948,6 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
18992
18948
  }
18993
18949
  });
18994
18950
  const Password = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-800f4000"]]);
18995
- const Password$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
18996
- __proto__: null,
18997
- default: Password
18998
- }, Symbol.toStringTag, { value: "Module" }));
18999
18951
  const _hoisted_1$i = ["title"];
19000
18952
  const _hoisted_2$f = { key: 0 };
19001
18953
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
@@ -19018,10 +18970,6 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
19018
18970
  }
19019
18971
  });
19020
18972
  const ReadOnlyInput = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-b3b5a368"]]);
19021
- const ReadOnlyInput$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19022
- __proto__: null,
19023
- default: ReadOnlyInput
19024
- }, Symbol.toStringTag, { value: "Module" }));
19025
18973
  const _hoisted_1$h = ["title"];
19026
18974
  const _hoisted_2$e = ["onClick"];
19027
18975
  const _hoisted_3$c = ["onClick"];
@@ -19157,7 +19105,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
19157
19105
  for: "label",
19158
19106
  class: vue.normalizeClass({ active: showList.value })
19159
19107
  }, [
19160
- vue.createVNode(vue.unref(LangText), { input: _ctx.label }, null, 8, ["input"])
19108
+ vue.createVNode(vue.unref(_sfc_main$P), { input: _ctx.label }, null, 8, ["input"])
19161
19109
  ], 2)) : vue.createCommentVNode("", true),
19162
19110
  vue.createElementVNode("div", {
19163
19111
  class: vue.normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -19169,7 +19117,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
19169
19117
  class: vue.normalizeClass(["input", { active: showList.value }]),
19170
19118
  name: "select-input"
19171
19119
  }, [
19172
- vue.createVNode(vue.unref(LangText), { input: displayValue.value }, null, 8, ["input"])
19120
+ vue.createVNode(vue.unref(_sfc_main$P), { input: displayValue.value }, null, 8, ["input"])
19173
19121
  ], 10, _hoisted_2$e),
19174
19122
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "#app" }, [
19175
19123
  vue.createElementVNode("div", {
@@ -19182,7 +19130,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
19182
19130
  key: option2.value,
19183
19131
  onClick: ($event) => handleSelect(option2)
19184
19132
  }, [
19185
- vue.createVNode(vue.unref(LangText), {
19133
+ vue.createVNode(vue.unref(_sfc_main$P), {
19186
19134
  input: option2.label
19187
19135
  }, null, 8, ["input"])
19188
19136
  ], 8, _hoisted_3$c);
@@ -19195,74 +19143,10 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
19195
19143
  }
19196
19144
  });
19197
19145
  const SelectField = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-028ea61b"]]);
19198
- const SelectField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19199
- __proto__: null,
19200
- default: SelectField
19201
- }, Symbol.toStringTag, { value: "Module" }));
19202
19146
  const _hoisted_1$g = ["title"];
19203
- const _hoisted_2$d = ["for"];
19204
- const _hoisted_3$b = ["id", "placeholder", "required", "pattern"];
19147
+ const _hoisted_2$d = { key: 0 };
19148
+ const _hoisted_3$b = ["value", "placeholder"];
19205
19149
  const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
19206
- __name: "TextInput",
19207
- props: {
19208
- id: {},
19209
- title: {},
19210
- placeholder: {},
19211
- modelValue: { default: "" },
19212
- label: {},
19213
- editMode: { type: Boolean, default: true },
19214
- small: { type: Boolean },
19215
- required: { type: Boolean },
19216
- pattern: {},
19217
- nativeInputAttrs: {}
19218
- },
19219
- emits: ["update:modelValue", "debounce"],
19220
- setup(__props, { emit: __emit }) {
19221
- const emit2 = __emit;
19222
- const props2 = __props;
19223
- let inputVal = vue.ref();
19224
- vue.watch(
19225
- () => inputVal.value,
19226
- (newVal) => {
19227
- emit2("update:modelValue", newVal);
19228
- debounce(() => emit2("debounce", newVal));
19229
- }
19230
- );
19231
- vue.watch(
19232
- () => props2.modelValue,
19233
- (newVal) => {
19234
- if (newVal !== inputVal.value)
19235
- inputVal.value = newVal;
19236
- },
19237
- { immediate: true }
19238
- );
19239
- return (_ctx, _cache) => {
19240
- return vue.openBlock(), vue.createElementBlock("div", {
19241
- class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
19242
- title: _ctx.title
19243
- }, [
19244
- vue.createElementVNode("label", { for: _ctx.id }, [
19245
- vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
19246
- vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
19247
- id: _ctx.id,
19248
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
19249
- type: "text",
19250
- placeholder: _ctx.placeholder || _ctx.label,
19251
- class: { "no-edit": !_ctx.editMode },
19252
- required: _ctx.required,
19253
- pattern: _ctx.pattern
19254
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$b), [
19255
- [vue.vModelText, vue.unref(inputVal)]
19256
- ])
19257
- ], 8, _hoisted_2$d)
19258
- ], 10, _hoisted_1$g);
19259
- };
19260
- }
19261
- });
19262
- const _hoisted_1$f = ["title"];
19263
- const _hoisted_2$c = { key: 0 };
19264
- const _hoisted_3$a = ["value", "placeholder"];
19265
- const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
19266
19150
  __name: "RichTextEditor",
19267
19151
  props: {
19268
19152
  description: { default: "" },
@@ -19285,7 +19169,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
19285
19169
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
19286
19170
  title: _ctx.description
19287
19171
  }, [
19288
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$c, [
19172
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$d, [
19289
19173
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
19290
19174
  ])) : vue.createCommentVNode("", true),
19291
19175
  vue.createElementVNode("textarea", {
@@ -19293,16 +19177,12 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
19293
19177
  onInput: handleInput,
19294
19178
  placeholder: _ctx.placeholder,
19295
19179
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
19296
- }, null, 42, _hoisted_3$a)
19297
- ], 10, _hoisted_1$f);
19180
+ }, null, 42, _hoisted_3$b)
19181
+ ], 10, _hoisted_1$g);
19298
19182
  };
19299
19183
  }
19300
19184
  });
19301
- const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-69a60381"]]);
19302
- const RichTextEditor$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
19303
- __proto__: null,
19304
- default: RichTextEditor
19305
- }, Symbol.toStringTag, { value: "Module" }));
19185
+ const RichTextEditor = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-69a60381"]]);
19306
19186
  /*!
19307
19187
  * vue-draggable-next v2.2.0
19308
19188
  * (c) 2023 Anish George
@@ -21825,13 +21705,13 @@ const VueDraggableNext = vue.defineComponent({
21825
21705
  }
21826
21706
  }
21827
21707
  });
21828
- const _hoisted_1$e = ["title"];
21829
- const _hoisted_2$b = { class: "bagel-input" };
21830
- const _hoisted_3$9 = { class: "table-side-scroll" };
21708
+ const _hoisted_1$f = ["title"];
21709
+ const _hoisted_2$c = { class: "bagel-input" };
21710
+ const _hoisted_3$a = { class: "table-side-scroll" };
21831
21711
  const _hoisted_4$5 = { class: "table-header" };
21832
21712
  const _hoisted_5$5 = { class: "table-reorder" };
21833
21713
  const _hoisted_6$4 = { class: "table-action" };
21834
- const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
21714
+ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
21835
21715
  __name: "TableField",
21836
21716
  props: {
21837
21717
  description: { default: "" },
@@ -21896,10 +21776,10 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
21896
21776
  class: "table-field-wrap",
21897
21777
  title: _ctx.description
21898
21778
  }, [
21899
- vue.createElementVNode("div", _hoisted_2$b, [
21779
+ vue.createElementVNode("div", _hoisted_2$c, [
21900
21780
  vue.createElementVNode("label", null, vue.toDisplayString((_a = vue.unref(fieldMeta)) == null ? void 0 : _a.label), 1)
21901
21781
  ]),
21902
- vue.createElementVNode("div", _hoisted_3$9, [
21782
+ vue.createElementVNode("div", _hoisted_3$a, [
21903
21783
  vue.createElementVNode("div", _hoisted_4$5, [
21904
21784
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
21905
21785
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -21959,7 +21839,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
21959
21839
  _: 1
21960
21840
  }, 8, ["modelValue"])
21961
21841
  ]),
21962
- vue.createVNode(vue.unref(Btn$1), {
21842
+ vue.createVNode(vue.unref(Btn), {
21963
21843
  thin: "",
21964
21844
  flat: "",
21965
21845
  icon: "add",
@@ -21971,19 +21851,15 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
21971
21851
  ]),
21972
21852
  _: 1
21973
21853
  })
21974
- ], 8, _hoisted_1$e);
21854
+ ], 8, _hoisted_1$f);
21975
21855
  };
21976
21856
  }
21977
21857
  });
21978
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-b01223bc"]]);
21979
- const TableField$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21980
- __proto__: null,
21981
- default: TableField
21982
- }, Symbol.toStringTag, { value: "Module" }));
21983
- const _hoisted_1$d = ["title"];
21984
- const _hoisted_2$a = { key: 0 };
21985
- const _hoisted_3$8 = ["value", "title", "placeholder"];
21986
- const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
21858
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b01223bc"]]);
21859
+ const _hoisted_1$e = ["title"];
21860
+ const _hoisted_2$b = { key: 0 };
21861
+ const _hoisted_3$9 = ["value", "title", "placeholder"];
21862
+ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
21987
21863
  __name: "DurationInput",
21988
21864
  props: {
21989
21865
  description: { default: "" },
@@ -22010,7 +21886,7 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
22010
21886
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
22011
21887
  title: _ctx.description
22012
21888
  }, [
22013
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$a, [
21889
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$b, [
22014
21890
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
22015
21891
  ])) : vue.createCommentVNode("", true),
22016
21892
  vue.createElementVNode("input", {
@@ -22020,15 +21896,71 @@ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
22020
21896
  onInput: handleInput,
22021
21897
  placeholder: _ctx.placeholder,
22022
21898
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode })
22023
- }, null, 42, _hoisted_3$8)
21899
+ }, null, 42, _hoisted_3$9)
21900
+ ], 10, _hoisted_1$e);
21901
+ };
21902
+ }
21903
+ });
21904
+ const _hoisted_1$d = ["title"];
21905
+ const _hoisted_2$a = ["for"];
21906
+ const _hoisted_3$8 = ["id", "placeholder", "required", "pattern"];
21907
+ const _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
21908
+ __name: "TextInput",
21909
+ props: {
21910
+ id: {},
21911
+ title: {},
21912
+ placeholder: {},
21913
+ modelValue: { default: "" },
21914
+ label: {},
21915
+ editMode: { type: Boolean, default: true },
21916
+ small: { type: Boolean },
21917
+ required: { type: Boolean },
21918
+ pattern: {},
21919
+ nativeInputAttrs: {}
21920
+ },
21921
+ emits: ["update:modelValue", "debounce"],
21922
+ setup(__props, { emit: __emit }) {
21923
+ const emit2 = __emit;
21924
+ const props2 = __props;
21925
+ let inputVal = vue.ref();
21926
+ vue.watch(
21927
+ () => inputVal.value,
21928
+ (newVal) => {
21929
+ emit2("update:modelValue", newVal);
21930
+ debounce(() => emit2("debounce", newVal));
21931
+ }
21932
+ );
21933
+ vue.watch(
21934
+ () => props2.modelValue,
21935
+ (newVal) => {
21936
+ if (newVal !== inputVal.value)
21937
+ inputVal.value = newVal;
21938
+ },
21939
+ { immediate: true }
21940
+ );
21941
+ return (_ctx, _cache) => {
21942
+ return vue.openBlock(), vue.createElementBlock("div", {
21943
+ class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
21944
+ title: _ctx.title
21945
+ }, [
21946
+ vue.createElementVNode("label", { for: _ctx.id }, [
21947
+ vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
21948
+ vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
21949
+ id: _ctx.id,
21950
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(inputVal) ? inputVal.value = $event : inputVal = $event),
21951
+ type: "text",
21952
+ placeholder: _ctx.placeholder || _ctx.label,
21953
+ class: { "no-edit": !_ctx.editMode },
21954
+ required: _ctx.required,
21955
+ pattern: _ctx.pattern
21956
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$8), [
21957
+ [vue.vModelText, vue.unref(inputVal)]
21958
+ ])
21959
+ ], 8, _hoisted_2$a)
22024
21960
  ], 10, _hoisted_1$d);
22025
21961
  };
22026
21962
  }
22027
21963
  });
22028
- const DurationInput = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22029
- __proto__: null,
22030
- default: _sfc_main$2
22031
- }, Symbol.toStringTag, { value: "Module" }));
22032
21964
  function _isPlaceholder(a) {
22033
21965
  return a != null && typeof a === "object" && a["@@functional/placeholder"] === true;
22034
21966
  }
@@ -28366,10 +28298,6 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
28366
28298
  };
28367
28299
  }
28368
28300
  });
28369
- const Lineart = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28370
- __proto__: null,
28371
- default: _sfc_main$1
28372
- }, Symbol.toStringTag, { value: "Module" }));
28373
28301
  const _hoisted_1 = { class: "main-content" };
28374
28302
  const _hoisted_2 = { class: "view-wrapper card thin" };
28375
28303
  const _hoisted_3 = { class: "whatsapp-wrap" };
@@ -28476,7 +28404,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28476
28404
  return (_ctx, _cache) => {
28477
28405
  var _a, _b, _c, _d, _e, _f;
28478
28406
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
28479
- vue.createVNode(vue.unref(PageTitle), null, {
28407
+ vue.createVNode(vue.unref(_sfc_main$E), null, {
28480
28408
  default: vue.withCtx(() => [
28481
28409
  vue.createTextVNode("Whatsapp Template")
28482
28410
  ]),
@@ -28485,7 +28413,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28485
28413
  vue.createElementVNode("div", _hoisted_2, [
28486
28414
  vue.createElementVNode("div", _hoisted_3, [
28487
28415
  vue.createElementVNode("div", _hoisted_4, [
28488
- vue.createVNode(vue.unref(FormSchema), {
28416
+ vue.createVNode(vue.unref(_sfc_main$B), {
28489
28417
  schema: _ctx.whatsappTemplateSchema(),
28490
28418
  modelValue: vue.unref(localWhatsappData),
28491
28419
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
@@ -28509,62 +28437,59 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28509
28437
  }
28510
28438
  });
28511
28439
  const MsgTemplate = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-b1fdb496"]]);
28512
- const MsgTemplate$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28513
- __proto__: null,
28514
- default: MsgTemplate
28515
- }, Symbol.toStringTag, { value: "Module" }));
28516
- exports.Address = Address;
28440
+ exports.AddressInput = AddressInput;
28517
28441
  exports.BagelVue = BagelVue;
28518
- exports.BankDetails = BankDetails;
28519
- exports.BarChart = BarChart$1;
28520
- exports.Btn = Btn$1;
28521
- exports.CheckInput = CheckInput$1;
28522
- exports.Comments = Comments$1;
28523
- exports.ContactArray = ContactArray;
28524
- exports.ContactSubmissions = ContactSubmissions;
28525
- exports.CurrencyInput = CurrencyInput$1;
28526
- exports.DataPreview = DataPreview$1;
28527
- exports.DateInput = DateInput$1;
28528
- exports.DatetimeInput = DatetimeInput;
28529
- exports.DropDown = DropDown;
28530
- exports.DurationInput = DurationInput;
28531
- exports.EmailInput = EmailInput$1;
28532
- exports.FileUpload = FileUpload;
28533
- exports.FloatInput = FloatInput;
28534
- exports.FormSchema = FormSchema;
28535
- exports.IntInput = IntInput;
28536
- exports.ItemRef = ItemRef;
28537
- exports.JSONInput = JSONInput$1;
28538
- exports.LangText = LangText;
28539
- exports.Lineart = Lineart;
28540
- exports.LinkField = LinkField$1;
28541
- exports.ListItem = ListItem;
28542
- exports.ListView = ListView;
28543
- exports.MaterialIcon = MaterialIcon;
28544
- exports.MiscFields = MiscFields;
28545
- exports.Modal = Modal;
28546
- exports.ModalForm = ModalForm$1;
28442
+ exports.BankDetailsInput = BankDetailsInput;
28443
+ exports.BarChart = BarChart;
28444
+ exports.Btn = Btn;
28445
+ exports.CheckInput = CheckInput;
28446
+ exports.Comments = Comments;
28447
+ exports.ContactArrayInput = ContactArrayInput;
28448
+ exports.ContactSubmissions = _sfc_main$x;
28449
+ exports.CurrencyInput = CurrencyInput;
28450
+ exports.DataPreview = DataPreview;
28451
+ exports.DateInput = DateInput;
28452
+ exports.DatetimeInput = _sfc_main$f;
28453
+ exports.DropDown = _sfc_main$J;
28454
+ exports.DurationInput = _sfc_main$3;
28455
+ exports.EmailInput = EmailInput;
28456
+ exports.FileUploadInput = FileUploadInput;
28457
+ exports.FloatInput = _sfc_main$d;
28458
+ exports.FormSchema = _sfc_main$B;
28459
+ exports.IntInput = _sfc_main$c;
28460
+ exports.ItemRef = _sfc_main$l;
28461
+ exports.JSONInput = JSONInput;
28462
+ exports.LangText = _sfc_main$P;
28463
+ exports.Lineart = _sfc_main$1;
28464
+ exports.LinkField = LinkField;
28465
+ exports.ListItem = _sfc_main$H;
28466
+ exports.ListView = _sfc_main$I;
28467
+ exports.MaterialIcon = _sfc_main$N;
28468
+ exports.MiscFieldsInput = MiscFieldsInput;
28469
+ exports.Modal = _sfc_main$K;
28470
+ exports.ModalForm = ModalForm;
28547
28471
  exports.ModalPlugin = ModalPlugin;
28548
- exports.MsgTemplate = MsgTemplate$1;
28549
- exports.NavBar = NavBar;
28550
- exports.PageTitle = PageTitle;
28551
- exports.Password = Password$1;
28552
- exports.PasswordInput = PasswordInput$1;
28553
- exports.PersonPreview = PersonPreview;
28554
- exports.PlainInputField = PlainInputField;
28555
- exports.RTXEditor = RTXEditor;
28556
- exports.ReadOnlyInput = ReadOnlyInput$1;
28557
- exports.RichTextEditor = RichTextEditor$1;
28558
- exports.RouterWrapper = RouterWrapper$1;
28559
- exports.SelectField = SelectField$1;
28560
- exports.TabbedLayout = TabbedLayout$1;
28561
- exports.TableField = TableField$1;
28562
- exports.TableSchema = TableSchema$1;
28563
- exports.TextInput = TextInput;
28564
- exports.TextVariableExamples = TextVariableExamples;
28565
- exports.TextVariables = TextVariables;
28566
- exports.ToggleSwitch = ToggleSwitch;
28567
- exports.TopBar = TopBar$1;
28472
+ exports.MsgTemplate = MsgTemplate;
28473
+ exports.NavBar = _sfc_main$M;
28474
+ exports.PageTitle = _sfc_main$E;
28475
+ exports.Password = Password;
28476
+ exports.PasswordInput = PasswordInput;
28477
+ exports.PersonPreview = _sfc_main$w;
28478
+ exports.PersonPreviewInput = PersonPreviewInput;
28479
+ exports.PlainInputField = _sfc_main$j;
28480
+ exports.RTXEditor = _sfc_main$O;
28481
+ exports.ReadOnlyInput = ReadOnlyInput;
28482
+ exports.RichTextEditor = RichTextEditor;
28483
+ exports.RouterWrapper = RouterWrapper;
28484
+ exports.SelectField = SelectField;
28485
+ exports.TabbedLayout = TabbedLayout;
28486
+ exports.TableField = TableField;
28487
+ exports.TableSchema = TableSchema;
28488
+ exports.TextInput = _sfc_main$2;
28489
+ exports.TextVariableExamples = _sfc_main$m;
28490
+ exports.TextVariablesInput = TextVariablesInput;
28491
+ exports.ToggleSwitchInput = ToggleSwitchInput;
28492
+ exports.TopBar = TopBar;
28568
28493
  exports.bagelInjectionKey = bagelInjectionKey;
28569
28494
  exports.computeFields = computeFields;
28570
28495
  exports.copyText = copyText;