@bagelink/vue 0.0.544 → 0.0.552

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 (35) hide show
  1. package/dist/components/TableSchema.vue.d.ts +7 -16
  2. package/dist/components/TableSchema.vue.d.ts.map +1 -1
  3. package/dist/components/form/BglField.vue.d.ts.map +1 -1
  4. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts +22 -0
  5. package/dist/components/form/inputs/RichText2/Toolbar.vue.d.ts.map +1 -0
  6. package/dist/components/form/inputs/RichText2/formatting.d.ts +5 -0
  7. package/dist/components/form/inputs/RichText2/formatting.d.ts.map +1 -0
  8. package/dist/components/form/inputs/RichText2/index.vue.d.ts +24 -0
  9. package/dist/components/form/inputs/RichText2/index.vue.d.ts.map +1 -0
  10. package/dist/components/form/inputs/RichText2/richtext-types.d.ts +3 -0
  11. package/dist/components/form/inputs/RichText2/richtext-types.d.ts.map +1 -0
  12. package/dist/components/form/inputs/index.d.ts +1 -0
  13. package/dist/components/form/inputs/index.d.ts.map +1 -1
  14. package/dist/index.cjs +706 -278
  15. package/dist/index.mjs +706 -278
  16. package/dist/style.css +448 -119
  17. package/dist/types/BagelForm.d.ts +5 -4
  18. package/dist/types/BagelForm.d.ts.map +1 -1
  19. package/package.json +1 -1
  20. package/src/components/Btn.vue +1 -1
  21. package/src/components/DataPreview.vue +3 -3
  22. package/src/components/TableSchema.vue +10 -10
  23. package/src/components/form/BglField.vue +19 -2
  24. package/src/components/form/inputs/RichText2/Toolbar.vue +106 -0
  25. package/src/components/form/inputs/RichText2/formatting.ts +194 -0
  26. package/src/components/form/inputs/RichText2/index.vue +204 -0
  27. package/src/components/form/inputs/RichText2/richtext-types.ts +25 -0
  28. package/src/components/form/inputs/index.ts +1 -0
  29. package/src/components/formkit/FileUploader.vue +1 -1
  30. package/src/styles/appearance.css +16 -16
  31. package/src/styles/layout.css +113 -6
  32. package/src/styles/mobilLayout.css +124 -12
  33. package/src/styles/text.css +78 -12
  34. package/src/styles/theme.css +1 -0
  35. package/src/types/BagelForm.ts +15 -1
package/dist/index.mjs CHANGED
@@ -5363,15 +5363,15 @@ const ModalPlugin = {
5363
5363
  hideModal(index2);
5364
5364
  } };
5365
5365
  if (modal.modalType === "modalForm") return h$2(ModalForm, props2, modal.componentSlots);
5366
- if (modal.modalType === "confirm") return h$2(_sfc_main$r, props2, {});
5367
- return h$2(_sfc_main$J, props2, modal.componentSlots);
5366
+ if (modal.modalType === "confirm") return h$2(_sfc_main$t, props2, {});
5367
+ return h$2(_sfc_main$L, props2, modal.componentSlots);
5368
5368
  });
5369
5369
  }
5370
5370
  });
5371
5371
  app.component("ModalContainer", ModalComponent);
5372
5372
  }
5373
5373
  };
5374
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
5374
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
5375
5375
  __name: "MaterialIcon",
5376
5376
  props: {
5377
5377
  icon: {},
@@ -5388,13 +5388,13 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5388
5388
  };
5389
5389
  }
5390
5390
  });
5391
- const _hoisted_1$H = { class: "full-nav" };
5392
- const _hoisted_2$z = { class: "nav-scroll" };
5391
+ const _hoisted_1$J = { class: "full-nav" };
5392
+ const _hoisted_2$A = { class: "nav-scroll" };
5393
5393
  const _hoisted_3$n = { class: "nav-links-wrapper" };
5394
5394
  const _hoisted_4$f = { class: "tooltip" };
5395
5395
  const _hoisted_5$c = { class: "bot-buttons-wrapper" };
5396
5396
  const _hoisted_6$8 = { class: "tooltip" };
5397
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
5397
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
5398
5398
  __name: "NavBar",
5399
5399
  props: {
5400
5400
  footerLinks: { default: () => [] },
@@ -5418,13 +5418,13 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5418
5418
  onClick: _cache[0] || (_cache[0] = ($event) => isOpen.value = !isOpen.value),
5419
5419
  onKeypress: _cache[1] || (_cache[1] = withKeys(($event) => isOpen.value = !isOpen.value, ["enter"]))
5420
5420
  }, [
5421
- createVNode(unref(_sfc_main$M), {
5421
+ createVNode(unref(_sfc_main$O), {
5422
5422
  icon: "chevron_right",
5423
5423
  class: "top-arrow"
5424
5424
  })
5425
5425
  ], 32),
5426
- createElementVNode("div", _hoisted_1$H, [
5427
- createElementVNode("div", _hoisted_2$z, [
5426
+ createElementVNode("div", _hoisted_1$J, [
5427
+ createElementVNode("div", _hoisted_2$A, [
5428
5428
  createElementVNode("div", _hoisted_3$n, [
5429
5429
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.links, (link) => {
5430
5430
  return openBlock(), createBlock(resolveDynamicComponent(link.to ? "router-link" : "div"), {
@@ -5437,7 +5437,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5437
5437
  }
5438
5438
  }, {
5439
5439
  default: withCtx(() => [
5440
- createVNode(unref(_sfc_main$M), {
5440
+ createVNode(unref(_sfc_main$O), {
5441
5441
  icon: link.icon
5442
5442
  }, null, 8, ["icon"]),
5443
5443
  createElementVNode("div", _hoisted_4$f, toDisplayString(link.label), 1)
@@ -5459,7 +5459,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5459
5459
  }
5460
5460
  }, {
5461
5461
  default: withCtx(() => [
5462
- createVNode(unref(_sfc_main$M), {
5462
+ createVNode(unref(_sfc_main$O), {
5463
5463
  icon: link.icon
5464
5464
  }, null, 8, ["icon"]),
5465
5465
  createElementVNode("div", _hoisted_6$8, toDisplayString(link.label), 1)
@@ -5481,16 +5481,16 @@ const _export_sfc = (sfc, props2) => {
5481
5481
  }
5482
5482
  return target;
5483
5483
  };
5484
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-d1115533"]]);
5485
- const _hoisted_1$G = {
5484
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-d1115533"]]);
5485
+ const _hoisted_1$I = {
5486
5486
  key: 0,
5487
5487
  class: "loading"
5488
5488
  };
5489
- const _hoisted_2$y = {
5489
+ const _hoisted_2$z = {
5490
5490
  key: 1,
5491
5491
  class: "bgl_btn-flex"
5492
5492
  };
5493
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
5493
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
5494
5494
  __name: "Btn",
5495
5495
  props: {
5496
5496
  disabled: { type: Boolean, default: false },
@@ -5514,8 +5514,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5514
5514
  },
5515
5515
  setup(__props) {
5516
5516
  useCssVars((_ctx) => ({
5517
- "743a2e01": computedBackgroundColor.value,
5518
- "9ec72cc8": cumputedTextColor.value
5517
+ "54b736fd": computedBackgroundColor.value,
5518
+ "5c3a40d0": cumputedTextColor.value
5519
5519
  }));
5520
5520
  const props2 = __props;
5521
5521
  const isComponent = computed(() => {
@@ -5584,8 +5584,8 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5584
5584
  onClick: withModifiers(_ctx.onClick, ["stop"])
5585
5585
  }, {
5586
5586
  default: withCtx(() => [
5587
- _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$G)) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
5588
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$M), {
5587
+ _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_1$I)) : (openBlock(), createElementBlock("div", _hoisted_2$z, [
5588
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
5589
5589
  key: 0,
5590
5590
  icon: _ctx.icon
5591
5591
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -5593,7 +5593,7 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5593
5593
  !unref(slots).default && _ctx.value ? (openBlock(), createElementBlock(Fragment$1, { key: 1 }, [
5594
5594
  createTextVNode(toDisplayString(_ctx.value), 1)
5595
5595
  ], 64)) : createCommentVNode("", true),
5596
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$M), {
5596
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$O), {
5597
5597
  key: 2,
5598
5598
  icon: props2["icon.end"]
5599
5599
  }, null, 8, ["icon"])) : createCommentVNode("", true)
@@ -5604,12 +5604,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5604
5604
  };
5605
5605
  }
5606
5606
  });
5607
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-204e25fe"]]);
5608
- const _hoisted_1$F = {
5607
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-7f505d62"]]);
5608
+ const _hoisted_1$H = {
5609
5609
  key: 0,
5610
5610
  class: "tool-bar"
5611
5611
  };
5612
- const _hoisted_2$x = {
5612
+ const _hoisted_2$y = {
5613
5613
  key: 1,
5614
5614
  class: "sticky bg-white z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
5615
5615
  };
@@ -5617,7 +5617,7 @@ const _hoisted_3$m = {
5617
5617
  key: 2,
5618
5618
  class: "modal-footer mt-1"
5619
5619
  };
5620
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
5620
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
5621
5621
  __name: "Modal",
5622
5622
  props: {
5623
5623
  side: { type: Boolean },
@@ -5673,7 +5673,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5673
5673
  onClick: _cache[1] || (_cache[1] = () => _ctx.dismissable ? closeModal() : ""),
5674
5674
  onKeydown: withKeys(closeModal, ["esc"])
5675
5675
  }, [
5676
- createVNode(unref(_sfc_main$z), {
5676
+ createVNode(unref(_sfc_main$B), {
5677
5677
  class: "modal",
5678
5678
  style: normalizeStyle({ ...maxWidth.value }),
5679
5679
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
@@ -5682,7 +5682,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5682
5682
  default: withCtx(() => {
5683
5683
  var _a2;
5684
5684
  return [
5685
- unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$F, [
5685
+ unref(slots).toolbar || _ctx.title ? (openBlock(), createElementBlock("header", _hoisted_1$H, [
5686
5686
  renderSlot(_ctx.$slots, "toolbar"),
5687
5687
  createVNode(unref(Btn), {
5688
5688
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -5690,13 +5690,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5690
5690
  icon: "close",
5691
5691
  onClick: closeModal
5692
5692
  }, null, 8, ["style"]),
5693
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$x), {
5693
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$z), {
5694
5694
  key: 0,
5695
5695
  class: "modal-title",
5696
5696
  tag: "h3",
5697
5697
  label: _ctx.title
5698
5698
  }, null, 8, ["label"])) : createCommentVNode("", true)
5699
- ])) : (openBlock(), createElementBlock("div", _hoisted_2$x, [
5699
+ ])) : (openBlock(), createElementBlock("div", _hoisted_2$y, [
5700
5700
  createVNode(unref(Btn), {
5701
5701
  class: "color-black position-start",
5702
5702
  icon: "close",
@@ -5724,7 +5724,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5724
5724
  };
5725
5725
  }
5726
5726
  });
5727
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
5727
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
5728
5728
  __name: "ModalForm",
5729
5729
  props: /* @__PURE__ */ mergeModels({
5730
5730
  side: { type: Boolean },
@@ -5781,7 +5781,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5781
5781
  }
5782
5782
  __expose({ setFormValues });
5783
5783
  return (_ctx, _cache) => {
5784
- return openBlock(), createBlock(unref(_sfc_main$J), {
5784
+ return openBlock(), createBlock(unref(_sfc_main$L), {
5785
5785
  ref_key: "modal",
5786
5786
  ref: modal,
5787
5787
  side: _ctx.side,
@@ -5792,7 +5792,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5792
5792
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => emit2("update:visible", $event))
5793
5793
  }, createSlots({
5794
5794
  default: withCtx(() => [
5795
- createVNode(unref(_sfc_main$o), {
5795
+ createVNode(unref(_sfc_main$q), {
5796
5796
  ref_key: "form",
5797
5797
  ref: form,
5798
5798
  modelValue: formData.value,
@@ -5834,12 +5834,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
5834
5834
  };
5835
5835
  }
5836
5836
  });
5837
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-9b1b63ca"]]);
5838
- const _hoisted_1$E = { class: "accordion-item" };
5839
- const _hoisted_2$w = ["aria-expanded", "aria-controls"];
5837
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-9b1b63ca"]]);
5838
+ const _hoisted_1$G = { class: "accordion-item" };
5839
+ const _hoisted_2$x = ["aria-expanded", "aria-controls"];
5840
5840
  const _hoisted_3$l = { class: "accordion-label" };
5841
5841
  const _hoisted_4$e = ["id", "aria-hidden"];
5842
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
5842
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
5843
5843
  __name: "AccordionItem",
5844
5844
  props: {
5845
5845
  label: {},
@@ -5876,7 +5876,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5876
5876
  else if (accordionState.openItem === id) accordionState.openItem = null;
5877
5877
  }
5878
5878
  return (_ctx, _cache) => {
5879
- return openBlock(), createElementBlock("div", _hoisted_1$E, [
5879
+ return openBlock(), createElementBlock("div", _hoisted_1$G, [
5880
5880
  createElementVNode("button", {
5881
5881
  "aria-expanded": unref(isOpen) ? "true" : "false",
5882
5882
  class: "accordion-head",
@@ -5889,9 +5889,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5889
5889
  createElementVNode("div", {
5890
5890
  class: normalizeClass(["accordion-icon", { open: unref(isOpen) }])
5891
5891
  }, [
5892
- createVNode(unref(_sfc_main$M), { icon: "expand_more" })
5892
+ createVNode(unref(_sfc_main$O), { icon: "expand_more" })
5893
5893
  ], 2)
5894
- ], 8, _hoisted_2$w),
5894
+ ], 8, _hoisted_2$x),
5895
5895
  createVNode(Transition, { name: "expand" }, {
5896
5896
  default: withCtx(() => [
5897
5897
  unref(isOpen) ? (openBlock(), createElementBlock("div", {
@@ -5909,14 +5909,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5909
5909
  };
5910
5910
  }
5911
5911
  });
5912
- const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-b862dfb8"]]);
5913
- const _sfc_main$G = {};
5914
- const _hoisted_1$D = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0" };
5915
- const _hoisted_2$v = { class: "p-1" };
5912
+ const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-b862dfb8"]]);
5913
+ const _sfc_main$I = {};
5914
+ const _hoisted_1$F = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 pt-0 pb-05 px-0" };
5915
+ const _hoisted_2$w = { class: "p-1" };
5916
5916
  const _hoisted_3$k = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
5917
5917
  function _sfc_render$2(_ctx, _cache) {
5918
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
5919
- createElementVNode("div", _hoisted_2$v, [
5918
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
5919
+ createElementVNode("div", _hoisted_2$w, [
5920
5920
  renderSlot(_ctx.$slots, "header")
5921
5921
  ]),
5922
5922
  createElementVNode("div", _hoisted_3$k, [
@@ -5924,10 +5924,10 @@ function _sfc_render$2(_ctx, _cache) {
5924
5924
  ])
5925
5925
  ]);
5926
5926
  }
5927
- const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_render$2]]);
5928
- const _hoisted_1$C = { class: "no-margin ellipsis line-height-14 pb-025" };
5929
- const _hoisted_2$u = { class: "txt12 no-margin txt-gray ellipsis" };
5930
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
5927
+ const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$2]]);
5928
+ const _hoisted_1$E = { class: "no-margin ellipsis line-height-14 pb-025" };
5929
+ const _hoisted_2$v = { class: "txt12 no-margin txt-gray ellipsis" };
5930
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
5931
5931
  __name: "ListItem",
5932
5932
  props: {
5933
5933
  src: {},
@@ -5951,11 +5951,11 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5951
5951
  size: 40
5952
5952
  }, null, 8, ["name", "src"])) : createCommentVNode("", true),
5953
5953
  createElementVNode("div", null, [
5954
- createElementVNode("p", _hoisted_1$C, [
5954
+ createElementVNode("p", _hoisted_1$E, [
5955
5955
  createTextVNode(toDisplayString(_ctx.title) + " ", 1),
5956
5956
  renderSlot(_ctx.$slots, "default")
5957
5957
  ]),
5958
- createElementVNode("p", _hoisted_2$u, [
5958
+ createElementVNode("p", _hoisted_2$v, [
5959
5959
  createTextVNode(toDisplayString(_ctx.subtitle) + " ", 1),
5960
5960
  renderSlot(_ctx.$slots, "subtitle")
5961
5961
  ])
@@ -5966,9 +5966,9 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5966
5966
  };
5967
5967
  }
5968
5968
  });
5969
- const _hoisted_1$B = { class: "page-top" };
5970
- const _hoisted_2$t = { class: "top-title m-0" };
5971
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
5969
+ const _hoisted_1$D = { class: "page-top" };
5970
+ const _hoisted_2$u = { class: "top-title m-0" };
5971
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
5972
5972
  __name: "PageTitle",
5973
5973
  props: {
5974
5974
  value: {
@@ -5978,8 +5978,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5978
5978
  },
5979
5979
  setup(__props) {
5980
5980
  return (_ctx, _cache) => {
5981
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
5982
- createElementVNode("h1", _hoisted_2$t, [
5981
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
5982
+ createElementVNode("h1", _hoisted_2$u, [
5983
5983
  renderSlot(_ctx.$slots, "default"),
5984
5984
  createTextVNode(" " + toDisplayString(__props.value), 1)
5985
5985
  ])
@@ -5987,33 +5987,33 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
5987
5987
  };
5988
5988
  }
5989
5989
  });
5990
- const _hoisted_1$A = { class: "table-list-wrap h-100" };
5991
- const _hoisted_2$s = { class: "infinite-wrapper" };
5990
+ const _hoisted_1$C = { class: "table-list-wrap h-100" };
5991
+ const _hoisted_2$t = { class: "infinite-wrapper" };
5992
5992
  const _hoisted_3$j = { class: "row first-row" };
5993
5993
  const _hoisted_4$d = ["onClick"];
5994
5994
  const _hoisted_5$b = { class: "flex" };
5995
5995
  const _hoisted_6$7 = ["onClick"];
5996
5996
  const _hoisted_7$2 = { key: 1 };
5997
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
5997
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5998
5998
  __name: "TableSchema",
5999
5999
  props: {
6000
- selecteItems: {},
6000
+ selectedItems: {},
6001
6001
  data: {},
6002
6002
  schema: { type: Function },
6003
6003
  showFields: {}
6004
6004
  },
6005
- emits: ["update:selecteItems", "orderBy", "select"],
6005
+ emits: ["update:selectedItems", "orderBy", "select"],
6006
6006
  setup(__props, { emit: __emit }) {
6007
6007
  const props2 = __props;
6008
6008
  const emit2 = __emit;
6009
6009
  const slots = useSlots();
6010
6010
  const loading = ref(true);
6011
- let selecteItems = ref(props2.selecteItems || []);
6011
+ let selectedItems = ref(props2.selectedItems || []);
6012
6012
  computed({
6013
- get: () => selecteItems.value,
6013
+ get: () => selectedItems.value,
6014
6014
  set: (value) => {
6015
- selecteItems.value = value;
6016
- emit2("update:selecteItems", value);
6015
+ selectedItems.value = value;
6016
+ emit2("update:selectedItems", value);
6017
6017
  }
6018
6018
  });
6019
6019
  function selectElement(item) {
@@ -6093,8 +6093,8 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6093
6093
  emit2("orderBy", `${fieldname} ${sortDirection.value}`.trim());
6094
6094
  }
6095
6095
  return (_ctx, _cache) => {
6096
- return openBlock(), createElementBlock("div", _hoisted_1$A, [
6097
- createElementVNode("table", _hoisted_2$s, [
6096
+ return openBlock(), createElementBlock("div", _hoisted_1$C, [
6097
+ createElementVNode("table", _hoisted_2$t, [
6098
6098
  createElementVNode("thead", _hoisted_3$j, [
6099
6099
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(computedSchema.value, (field) => {
6100
6100
  return openBlock(), createElementBlock("th", {
@@ -6107,7 +6107,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6107
6107
  createElementVNode("div", {
6108
6108
  class: normalizeClass(["list-arrows", { sorted: unref(sortField) === field.id }])
6109
6109
  }, [
6110
- createVNode(unref(_sfc_main$M), {
6110
+ createVNode(unref(_sfc_main$O), {
6111
6111
  class: normalizeClass({ desc: unref(sortDirection) === "DESC" }),
6112
6112
  icon: "keyboard_arrow_up"
6113
6113
  }, null, 8, ["class"])
@@ -6139,7 +6139,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6139
6139
  row,
6140
6140
  field
6141
6141
  }, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_7$2, [
6142
- createVNode(unref(_sfc_main$n), {
6142
+ createVNode(unref(_sfc_main$p), {
6143
6143
  class: "embedded-field",
6144
6144
  field,
6145
6145
  modelValue: row,
@@ -6156,16 +6156,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6156
6156
  };
6157
6157
  }
6158
6158
  });
6159
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-8113163b"]]);
6160
- const _sfc_main$C = {};
6161
- const _hoisted_1$z = { class: "flex space-between" };
6159
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-9bf1b6df"]]);
6160
+ const _sfc_main$E = {};
6161
+ const _hoisted_1$B = { class: "flex space-between" };
6162
6162
  function _sfc_render$1(_ctx, _cache) {
6163
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
6163
+ return openBlock(), createElementBlock("div", _hoisted_1$B, [
6164
6164
  renderSlot(_ctx.$slots, "default")
6165
6165
  ]);
6166
6166
  }
6167
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$1]]);
6168
- const _sfc_main$B = {};
6167
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$1]]);
6168
+ const _sfc_main$D = {};
6169
6169
  function _sfc_render(_ctx, _cache) {
6170
6170
  const _component_router_view = resolveComponent("router-view");
6171
6171
  return openBlock(), createBlock(_component_router_view, null, {
@@ -6187,12 +6187,12 @@ function _sfc_render(_ctx, _cache) {
6187
6187
  _: 1
6188
6188
  });
6189
6189
  }
6190
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render]]);
6191
- const _hoisted_1$y = {
6190
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render]]);
6191
+ const _hoisted_1$A = {
6192
6192
  key: 0,
6193
6193
  class: "data"
6194
6194
  };
6195
- const _hoisted_2$r = {
6195
+ const _hoisted_2$s = {
6196
6196
  key: 0,
6197
6197
  class: "data-row"
6198
6198
  };
@@ -6200,7 +6200,7 @@ const _hoisted_3$i = { class: "key" };
6200
6200
  const _hoisted_4$c = { key: 1 };
6201
6201
  const _hoisted_5$a = { class: "key" };
6202
6202
  const _hoisted_6$6 = { class: "vlue" };
6203
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
6203
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
6204
6204
  __name: "DataPreview",
6205
6205
  props: /* @__PURE__ */ mergeModels({
6206
6206
  showFields: {},
@@ -6215,7 +6215,6 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6215
6215
  const props2 = __props;
6216
6216
  const itemData = useModel(__props, "data");
6217
6217
  const computedSchema = computed(() => {
6218
- console.log(itemData.value);
6219
6218
  const schema = Object.keys(itemData.value);
6220
6219
  if (props2.showFields && props2.showFields.length) {
6221
6220
  return schema.filter((field) => {
@@ -6223,13 +6222,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6223
6222
  return (_a2 = props2.showFields) == null ? void 0 : _a2.includes(field);
6224
6223
  });
6225
6224
  }
6226
- console.log(schema);
6227
6225
  return schema;
6228
6226
  });
6229
6227
  return (_ctx, _cache) => {
6230
6228
  var _a2;
6231
- return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
6232
- _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$x), {
6229
+ return __props.data ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
6230
+ _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$z), {
6233
6231
  key: 0,
6234
6232
  label: _ctx.title
6235
6233
  }, null, 8, ["label"])) : createCommentVNode("", true),
@@ -6237,9 +6235,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6237
6235
  return openBlock(), createElementBlock(Fragment$1, {
6238
6236
  key: field.id
6239
6237
  }, [
6240
- unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
6238
+ unref(iffer)(field, itemData.value) ? (openBlock(), createElementBlock("div", _hoisted_2$s, [
6241
6239
  createElementVNode("div", _hoisted_3$i, toDisplayString((field == null ? void 0 : field.label) || unref(keyToLabel)(field.id)), 1),
6242
- createVNode(unref(_sfc_main$n), {
6240
+ createVNode(unref(_sfc_main$p), {
6243
6241
  modelValue: itemData.value,
6244
6242
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => itemData.value = $event),
6245
6243
  label: "",
@@ -6265,12 +6263,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6265
6263
  };
6266
6264
  }
6267
6265
  });
6268
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-eb1d3474"]]);
6269
- const _hoisted_1$x = {
6266
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-078d6853"]]);
6267
+ const _hoisted_1$z = {
6270
6268
  key: 0,
6271
6269
  class: "card_label"
6272
6270
  };
6273
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
6271
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
6274
6272
  __name: "Card",
6275
6273
  props: {
6276
6274
  label: {},
@@ -6298,7 +6296,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6298
6296
  }])
6299
6297
  }, {
6300
6298
  default: withCtx(() => [
6301
- _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$x, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6299
+ _ctx.label ? (openBlock(), createElementBlock("span", _hoisted_1$z, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
6302
6300
  renderSlot(_ctx.$slots, "default")
6303
6301
  ]),
6304
6302
  _: 3
@@ -6306,8 +6304,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6306
6304
  };
6307
6305
  }
6308
6306
  });
6309
- const _hoisted_1$w = ["src", "alt"];
6310
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
6307
+ const _hoisted_1$y = ["src", "alt"];
6308
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
6311
6309
  __name: "Avatar",
6312
6310
  props: {
6313
6311
  fallback: {},
@@ -6325,7 +6323,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
6325
6323
  key: 0,
6326
6324
  src: _ctx.src,
6327
6325
  alt: _ctx.name
6328
- }, null, 8, _hoisted_1$w)) : (openBlock(), createElementBlock("p", {
6326
+ }, null, 8, _hoisted_1$y)) : (openBlock(), createElementBlock("p", {
6329
6327
  key: 1,
6330
6328
  style: normalizeStyle({ "line-height": `${_ctx.size}px`, "font-size": `calc(1.5rem * ${_ctx.size} / 50)` })
6331
6329
  }, toDisplayString(_ctx.fallback || unref(initials)(_ctx.name || "")), 5))
@@ -6333,8 +6331,8 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
6333
6331
  };
6334
6332
  }
6335
6333
  });
6336
- const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-dd2f6734"]]);
6337
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
6334
+ const Avatar = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dd2f6734"]]);
6335
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
6338
6336
  __name: "Title",
6339
6337
  props: {
6340
6338
  value: {
@@ -6362,7 +6360,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
6362
6360
  };
6363
6361
  }
6364
6362
  });
6365
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
6363
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
6366
6364
  __name: "Accordion",
6367
6365
  setup(__props) {
6368
6366
  const state2 = reactive({
@@ -6376,9 +6374,9 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
6376
6374
  };
6377
6375
  }
6378
6376
  });
6379
- const _hoisted_1$v = ["dismissable"];
6380
- const _hoisted_2$q = { class: "m-0" };
6381
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
6377
+ const _hoisted_1$x = ["dismissable"];
6378
+ const _hoisted_2$r = { class: "m-0" };
6379
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
6382
6380
  __name: "Alert",
6383
6381
  props: {
6384
6382
  message: {},
@@ -6399,14 +6397,14 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6399
6397
  class: normalizeClass(["alert", [_ctx.type]]),
6400
6398
  dismissable: _ctx.dismissable
6401
6399
  }, [
6402
- _ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$M), {
6400
+ _ctx.icon !== "none" ? (openBlock(), createBlock(unref(_sfc_main$O), {
6403
6401
  key: 0,
6404
6402
  class: "alert_icon",
6405
6403
  icon: _ctx.icon || _ctx.type,
6406
6404
  size: 2,
6407
6405
  color: color2[_ctx.type]
6408
6406
  }, null, 8, ["icon", "color"])) : createCommentVNode("", true),
6409
- createElementVNode("p", _hoisted_2$q, toDisplayString(_ctx.message), 1),
6407
+ createElementVNode("p", _hoisted_2$r, toDisplayString(_ctx.message), 1),
6410
6408
  createVNode(Btn, {
6411
6409
  flat: "",
6412
6410
  thin: "",
@@ -6414,12 +6412,12 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6414
6412
  icon: "close",
6415
6413
  onClick: _cache[0] || (_cache[0] = ($event) => isDismissed.value = true)
6416
6414
  })
6417
- ], 10, _hoisted_1$v)) : createCommentVNode("", true);
6415
+ ], 10, _hoisted_1$x)) : createCommentVNode("", true);
6418
6416
  };
6419
6417
  }
6420
6418
  });
6421
- const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-1322d9e1"]]);
6422
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
6419
+ const Alert = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-1322d9e1"]]);
6420
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
6423
6421
  __name: "Badge",
6424
6422
  props: {
6425
6423
  color: {},
@@ -6435,13 +6433,13 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6435
6433
  return openBlock(), createElementBlock("div", {
6436
6434
  class: normalizeClass(["pill", [_ctx.color]])
6437
6435
  }, [
6438
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$M), {
6436
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
6439
6437
  key: 0,
6440
6438
  class: "inline",
6441
6439
  icon: _ctx.icon
6442
6440
  }, null, 8, ["icon"])) : createCommentVNode("", true),
6443
6441
  createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
6444
- props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$M), {
6442
+ props2["icon.end"] ? (openBlock(), createBlock(unref(_sfc_main$O), {
6445
6443
  key: 1,
6446
6444
  class: "inline",
6447
6445
  icon: props2["icon.end"]
@@ -6450,10 +6448,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6450
6448
  };
6451
6449
  }
6452
6450
  });
6453
- const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-532b36ae"]]);
6454
- const _hoisted_1$u = ["src"];
6455
- const _hoisted_2$p = ["src", "autoplay", "muted", "loop", "controls"];
6456
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
6451
+ const Badge = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-532b36ae"]]);
6452
+ const _hoisted_1$w = ["src"];
6453
+ const _hoisted_2$q = ["src", "autoplay", "muted", "loop", "controls"];
6454
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
6457
6455
  __name: "BglVideo",
6458
6456
  props: {
6459
6457
  src: {},
@@ -6505,7 +6503,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6505
6503
  frameborder: "0",
6506
6504
  allowfullscreen: "",
6507
6505
  title: "Video"
6508
- }, null, 12, _hoisted_1$u)) : _ctx.src ? (openBlock(), createElementBlock("video", {
6506
+ }, null, 12, _hoisted_1$w)) : _ctx.src ? (openBlock(), createElementBlock("video", {
6509
6507
  key: 1,
6510
6508
  src: _ctx.src,
6511
6509
  autoplay: _ctx.autoplay,
@@ -6514,18 +6512,18 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6514
6512
  style: normalizeStyle({ aspectRatio: aspectRatio.value }),
6515
6513
  controls: _ctx.controls,
6516
6514
  playsinline: ""
6517
- }, null, 12, _hoisted_2$p)) : createCommentVNode("", true)
6515
+ }, null, 12, _hoisted_2$q)) : createCommentVNode("", true)
6518
6516
  ], 2);
6519
6517
  };
6520
6518
  }
6521
6519
  });
6522
- const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-862e1f20"]]);
6523
- const _hoisted_1$t = {
6520
+ const BglVideo = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-862e1f20"]]);
6521
+ const _hoisted_1$v = {
6524
6522
  key: 0,
6525
6523
  class: "blocker"
6526
6524
  };
6527
- const _hoisted_2$o = { class: "Handlers" };
6528
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
6525
+ const _hoisted_2$p = { class: "Handlers" };
6526
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
6529
6527
  __name: "Carousel",
6530
6528
  props: {
6531
6529
  autoHeight: {
@@ -6673,10 +6671,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
6673
6671
  onScrollend: scrollEnd,
6674
6672
  onMousedown: startDragging
6675
6673
  }, [
6676
- unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$t)) : createCommentVNode("", true),
6674
+ unref(isDragging) ? (openBlock(), createElementBlock("div", _hoisted_1$v)) : createCommentVNode("", true),
6677
6675
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
6678
6676
  ], 34),
6679
- createElementVNode("div", _hoisted_2$o, [
6677
+ createElementVNode("div", _hoisted_2$p, [
6680
6678
  createElementVNode("span", { onClick: prev }, [
6681
6679
  renderSlot(_ctx.$slots, "prev", {
6682
6680
  prev,
@@ -6694,8 +6692,8 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
6694
6692
  };
6695
6693
  }
6696
6694
  });
6697
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-1f9c6644"]]);
6698
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
6695
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-1f9c6644"]]);
6696
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
6699
6697
  __name: "ModalConfirm",
6700
6698
  props: {
6701
6699
  title: {},
@@ -6711,7 +6709,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
6711
6709
  emit2("update:visible");
6712
6710
  }
6713
6711
  return (_ctx, _cache) => {
6714
- return openBlock(), createBlock(unref(_sfc_main$J), {
6712
+ return openBlock(), createBlock(unref(_sfc_main$L), {
6715
6713
  width: "380px",
6716
6714
  dismissable: false,
6717
6715
  title: _ctx.title
@@ -16292,10 +16290,10 @@ var leafletSrc = { exports: {} };
16292
16290
  })(leafletSrc, leafletSrc.exports);
16293
16291
  var leafletSrcExports = leafletSrc.exports;
16294
16292
  const L$1 = /* @__PURE__ */ getDefaultExportFromCjs(leafletSrcExports);
16295
- const _hoisted_1$s = /* @__PURE__ */ createElementVNode("div", { class: "map-test" }, null, -1);
16296
- const _hoisted_2$n = ["id"];
16293
+ const _hoisted_1$u = /* @__PURE__ */ createElementVNode("div", { class: "map-test" }, null, -1);
16294
+ const _hoisted_2$o = ["id"];
16297
16295
  const markerSVG = '<svg width="284" height="284" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M29.859 29.266A99 99 0 0 1 198.862 99.27c0 74.25-99 183.857-99 183.857s-99-109.607-99-183.858A99 99 0 0 1 29.86 29.266Zm70.004 118.961c25.513 0 46.195-20.683 46.195-46.196 0-25.513-20.682-46.195-46.195-46.195S53.667 76.518 53.667 102.03s20.683 46.196 46.196 46.196Z" fill="#F04033"/></svg>';
16298
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
16296
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
16299
16297
  __name: "MapEmbed",
16300
16298
  props: {
16301
16299
  center: { default: () => [31.7683, 35.2137] },
@@ -16346,17 +16344,17 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16346
16344
  }, { immediate: true });
16347
16345
  return (_ctx, _cache) => {
16348
16346
  return openBlock(), createElementBlock(Fragment$1, null, [
16349
- _hoisted_1$s,
16347
+ _hoisted_1$u,
16350
16348
  createElementVNode("div", {
16351
16349
  id: id.value,
16352
16350
  class: "map",
16353
16351
  style: normalizeStyle({ height: `${_ctx.height || 400}px` })
16354
- }, null, 12, _hoisted_2$n)
16352
+ }, null, 12, _hoisted_2$o)
16355
16353
  ], 64);
16356
16354
  };
16357
16355
  }
16358
16356
  });
16359
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
16357
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16360
16358
  __name: "Flag",
16361
16359
  props: {
16362
16360
  country: {},
@@ -16386,8 +16384,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16386
16384
  };
16387
16385
  }
16388
16386
  });
16389
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-f99f1900"]]);
16390
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
16387
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-f99f1900"]]);
16388
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16391
16389
  __name: "BglForm",
16392
16390
  props: {
16393
16391
  label: {},
@@ -16471,7 +16469,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16471
16469
  return (_ctx, _cache) => {
16472
16470
  return openBlock(), createElementBlock(Fragment$1, null, [
16473
16471
  _ctx.id ? (openBlock(true), createElementBlock(Fragment$1, { key: 0 }, renderList(_ctx.schema, (field, i2) => {
16474
- return openBlock(), createBlock(unref(_sfc_main$n), {
16472
+ return openBlock(), createBlock(unref(_sfc_main$p), {
16475
16473
  key: field.id || `${i2}p`,
16476
16474
  modelValue: unref(data2),
16477
16475
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -16483,13 +16481,13 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16483
16481
  ref: form,
16484
16482
  onSubmit: withModifiers(runSubmit, ["prevent"])
16485
16483
  }, [
16486
- _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$x), {
16484
+ _ctx.label ? (openBlock(), createBlock(unref(_sfc_main$z), {
16487
16485
  key: 0,
16488
16486
  tag: "h4",
16489
16487
  label: _ctx.label
16490
16488
  }, null, 8, ["label"])) : createCommentVNode("", true),
16491
16489
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.schema, (field, i2) => {
16492
- return openBlock(), createBlock(unref(_sfc_main$n), {
16490
+ return openBlock(), createBlock(unref(_sfc_main$p), {
16493
16491
  key: field.id || `${i2}p`,
16494
16492
  modelValue: unref(data2),
16495
16493
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(data2) ? data2.value = $event : data2 = $event),
@@ -16507,7 +16505,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16507
16505
  };
16508
16506
  }
16509
16507
  });
16510
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
16508
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16511
16509
  __name: "BglField",
16512
16510
  props: {
16513
16511
  field: {},
@@ -16522,8 +16520,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16522
16520
  if (props2.field.$el === "select") return SelectInput;
16523
16521
  if (props2.field.$el === "toggle") return ToggleInput;
16524
16522
  if (props2.field.$el === "check") return CheckInput;
16525
- if (props2.field.$el === "richtext") return _sfc_main$a;
16526
- if (props2.field.$el === "date") return _sfc_main$l;
16523
+ if (props2.field.$el === "richtext") return _sfc_main$c;
16524
+ if (props2.field.$el === "date") return _sfc_main$n;
16527
16525
  return props2.field.$el || "div";
16528
16526
  });
16529
16527
  const formData = computed({
@@ -16541,7 +16539,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16541
16539
  },
16542
16540
  get: () => {
16543
16541
  if (props2.field.id) return props2.modelValue[props2.field.id];
16544
- return props2.field.defaultValue || "";
16542
+ return props2.field.defaultValue ?? "";
16545
16543
  }
16546
16544
  });
16547
16545
  const vIf = computed(() => {
@@ -16553,6 +16551,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16553
16551
  }
16554
16552
  return true;
16555
16553
  });
16554
+ const badTransform = /undefined|NaN|Invalid Date/;
16555
+ const computedFieldData = computed(
16556
+ () => {
16557
+ var _a2, _b;
16558
+ const transformedData = (_b = (_a2 = props2.field).transform) == null ? void 0 : _b.call(_a2, fieldData.value, props2.modelValue);
16559
+ if (badTransform.test(transformedData)) return fieldData.value;
16560
+ return transformedData;
16561
+ }
16562
+ );
16556
16563
  return (_ctx, _cache) => {
16557
16564
  var _a2, _b;
16558
16565
  const _component_BglField = resolveComponent("BglField", true);
@@ -16575,29 +16582,26 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16575
16582
  options: unref(bindAttrs)({ options: _ctx.field.options }, fieldData.value, _ctx.modelValue).options,
16576
16583
  helptext: _ctx.field.helptext
16577
16584
  }), {
16578
- default: withCtx(() => {
16579
- var _a3, _b2;
16580
- return [
16581
- createTextVNode(toDisplayString(((_b2 = (_a3 = _ctx.field).transform) == null ? void 0 : _b2.call(_a3, fieldData.value, _ctx.modelValue)) || fieldData.value || "") + " ", 1),
16582
- (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.field.children, (child, ii) => {
16583
- return openBlock(), createBlock(_component_BglField, {
16584
- key: child.id || ii,
16585
- modelValue: formData.value,
16586
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
16587
- field: child
16588
- }, null, 8, ["modelValue", "field"]);
16589
- }), 128))
16590
- ];
16591
- }),
16585
+ default: withCtx(() => [
16586
+ createTextVNode(toDisplayString(computedFieldData.value) + " ", 1),
16587
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.field.children, (child, ii) => {
16588
+ return openBlock(), createBlock(_component_BglField, {
16589
+ key: child.id || ii,
16590
+ modelValue: formData.value,
16591
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value = $event),
16592
+ field: child
16593
+ }, null, 8, ["modelValue", "field"]);
16594
+ }), 128))
16595
+ ]),
16592
16596
  _: 1
16593
16597
  }, 16, ["id", "modelValue", "required", "class", "label", "placeholder", "defaultValue", "disabled", "options", "helptext"])) : createCommentVNode("", true);
16594
16598
  };
16595
16599
  }
16596
16600
  });
16597
- const _hoisted_1$r = ["title"];
16598
- const _hoisted_2$m = ["id", "required"];
16601
+ const _hoisted_1$t = ["title"];
16602
+ const _hoisted_2$n = ["id", "required"];
16599
16603
  const _hoisted_3$h = ["for"];
16600
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
16604
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16601
16605
  __name: "CheckInput",
16602
16606
  props: /* @__PURE__ */ mergeModels({
16603
16607
  label: {},
@@ -16625,7 +16629,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16625
16629
  required: _ctx.required,
16626
16630
  type: "checkbox",
16627
16631
  class: "me-05"
16628
- }, null, 8, _hoisted_2$m), [
16632
+ }, null, 8, _hoisted_2$n), [
16629
16633
  [vModelCheckbox, checked.value]
16630
16634
  ]),
16631
16635
  createElementVNode("label", { for: inputId.value }, [
@@ -16633,11 +16637,11 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
16633
16637
  createTextVNode(toDisplayString(_ctx.label), 1)
16634
16638
  ], true)
16635
16639
  ], 8, _hoisted_3$h)
16636
- ], 10, _hoisted_1$r);
16640
+ ], 10, _hoisted_1$t);
16637
16641
  };
16638
16642
  }
16639
16643
  });
16640
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-ac068f18"]]);
16644
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-ac068f18"]]);
16641
16645
  function toDate(argument) {
16642
16646
  const argStr = Object.prototype.toString.call(argument);
16643
16647
  if (argument instanceof Date || typeof argument === "object" && argStr === "[object Date]") {
@@ -25087,9 +25091,9 @@ const eo = ({
25087
25091
  Object.entries(go).forEach(([e, t]) => {
25088
25092
  e !== "default" && (Hn[e] = t);
25089
25093
  });
25090
- const _hoisted_1$q = ["title"];
25091
- const _hoisted_2$l = { key: 0 };
25092
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
25094
+ const _hoisted_1$s = ["title"];
25095
+ const _hoisted_2$m = { key: 0 };
25096
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
25093
25097
  __name: "DateInput",
25094
25098
  props: {
25095
25099
  label: {},
@@ -25130,7 +25134,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
25130
25134
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
25131
25135
  title: _ctx.label
25132
25136
  }, [
25133
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
25137
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$m, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
25134
25138
  createVNode(unref(Hn), mergeProps({
25135
25139
  ref_key: "datePicker",
25136
25140
  ref: datePicker,
@@ -25145,14 +25149,14 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
25145
25149
  "minutes-grid-increment": _ctx.minutesGridIncrement,
25146
25150
  "start-time": { hours: 8, minutes: 0 }
25147
25151
  }), null, 16, ["modelValue", "enable-time-picker", "allowed-dates", "time-picker-inline", "minutes-increment", "minutes-grid-increment"])
25148
- ], 10, _hoisted_1$q);
25152
+ ], 10, _hoisted_1$s);
25149
25153
  };
25150
25154
  }
25151
25155
  });
25152
- const _hoisted_1$p = ["title"];
25153
- const _hoisted_2$k = { key: 0 };
25156
+ const _hoisted_1$r = ["title"];
25157
+ const _hoisted_2$l = { key: 0 };
25154
25158
  const _hoisted_3$g = ["value", "placeholder"];
25155
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
25159
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
25156
25160
  __name: "JSONInput",
25157
25161
  props: {
25158
25162
  description: { default: "" },
@@ -25175,7 +25179,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
25175
25179
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
25176
25180
  title: _ctx.description
25177
25181
  }, [
25178
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$k, [
25182
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$l, [
25179
25183
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
25180
25184
  ])) : createCommentVNode("", true),
25181
25185
  createElementVNode("textarea", {
@@ -25184,16 +25188,16 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
25184
25188
  placeholder: _ctx.placeholder,
25185
25189
  onInput: handleInput
25186
25190
  }, null, 42, _hoisted_3$g)
25187
- ], 10, _hoisted_1$p);
25191
+ ], 10, _hoisted_1$r);
25188
25192
  };
25189
25193
  }
25190
25194
  });
25191
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-1cbaeab2"]]);
25192
- const _hoisted_1$o = ["disabled"];
25193
- const _hoisted_2$j = { key: 1 };
25195
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-1cbaeab2"]]);
25196
+ const _hoisted_1$q = ["disabled"];
25197
+ const _hoisted_2$k = { key: 1 };
25194
25198
  const _hoisted_3$f = ["value"];
25195
25199
  const _hoisted_4$b = ["onClick"];
25196
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
25200
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
25197
25201
  __name: "SelectInput",
25198
25202
  props: {
25199
25203
  options: {},
@@ -25330,7 +25334,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
25330
25334
  onHide: _cache[4] || (_cache[4] = ($event) => updateOpen(false))
25331
25335
  }, {
25332
25336
  popper: withCtx(() => [
25333
- createVNode(unref(_sfc_main$z), {
25337
+ createVNode(unref(_sfc_main$B), {
25334
25338
  class: "selectinput-options p-05",
25335
25339
  style: normalizeStyle({ width: _ctx.fullWidth ? "100%" : "auto" })
25336
25340
  }, {
@@ -25351,11 +25355,11 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
25351
25355
  class: normalizeClass(["selectinput-option hover gap-1", { selected: isSelected(option2) }]),
25352
25356
  onClick: ($event) => select2(option2)
25353
25357
  }, [
25354
- isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$M), {
25358
+ isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$O), {
25355
25359
  key: 0,
25356
25360
  icon: "check"
25357
25361
  })) : createCommentVNode("", true),
25358
- !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$M), {
25362
+ !isSelected(option2) ? (openBlock(), createBlock(unref(_sfc_main$O), {
25359
25363
  key: 1,
25360
25364
  class: "opacity-3",
25361
25365
  icon: "fiber_manual_record"
@@ -25378,16 +25382,16 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
25378
25382
  onKeydown: openOptions,
25379
25383
  onClick: _cache[0] || (_cache[0] = ($event) => updateOpen(true))
25380
25384
  }, [
25381
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$M), {
25385
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
25382
25386
  key: 0,
25383
25387
  icon: _ctx.icon
25384
25388
  }, null, 8, ["icon"])) : createCommentVNode("", true),
25385
- !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_2$j, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
25386
- !_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$M), mergeProps({
25389
+ !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_2$k, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
25390
+ !_ctx.disabled ? (openBlock(), createBlock(unref(_sfc_main$O), mergeProps({
25387
25391
  key: 2,
25388
25392
  thin: ""
25389
25393
  }, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
25390
- ], 42, _hoisted_1$o),
25394
+ ], 42, _hoisted_1$q),
25391
25395
  _ctx.required ? (openBlock(), createElementBlock("input", {
25392
25396
  key: 0,
25393
25397
  tabindex: "-1",
@@ -25403,7 +25407,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
25403
25407
  };
25404
25408
  }
25405
25409
  });
25406
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-761f89bf"]]);
25410
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-761f89bf"]]);
25407
25411
  /*!
25408
25412
  * vue-draggable-next v2.2.0
25409
25413
  * (c) 2023 Anish George
@@ -25720,7 +25724,7 @@ function lastChild(el, selector2) {
25720
25724
  }
25721
25725
  return last || null;
25722
25726
  }
25723
- function index(el, selector2) {
25727
+ function index$1(el, selector2) {
25724
25728
  var index2 = 0;
25725
25729
  if (!el || !el.parentNode) {
25726
25730
  return -1;
@@ -26314,8 +26318,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
26314
26318
  if (lastDownEl === target) {
26315
26319
  return;
26316
26320
  }
26317
- oldIndex = index(target);
26318
- oldDraggableIndex = index(target, options.draggable);
26321
+ oldIndex = index$1(target);
26322
+ oldDraggableIndex = index$1(target, options.draggable);
26319
26323
  if (typeof filter3 === "function") {
26320
26324
  if (filter3.call(this, evt, target, this)) {
26321
26325
  _dispatchEvent({
@@ -26734,8 +26738,8 @@ Sortable.prototype = /** @lends Sortable.prototype */
26734
26738
  return completedFired = true;
26735
26739
  }
26736
26740
  function changed() {
26737
- newIndex = index(dragEl);
26738
- newDraggableIndex = index(dragEl, options.draggable);
26741
+ newIndex = index$1(dragEl);
26742
+ newDraggableIndex = index$1(dragEl, options.draggable);
26739
26743
  _dispatchEvent({
26740
26744
  sortable: _this,
26741
26745
  name: "change",
@@ -26817,7 +26821,7 @@ Sortable.prototype = /** @lends Sortable.prototype */
26817
26821
  direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
26818
26822
  var sibling;
26819
26823
  if (direction !== 0) {
26820
- var dragIndex = index(dragEl);
26824
+ var dragIndex = index$1(dragEl);
26821
26825
  do {
26822
26826
  dragIndex -= direction;
26823
26827
  sibling = parentEl.children[dragIndex];
@@ -26879,14 +26883,14 @@ Sortable.prototype = /** @lends Sortable.prototype */
26879
26883
  },
26880
26884
  _onDrop: function _onDrop(evt) {
26881
26885
  var el = this.el, options = this.options;
26882
- newIndex = index(dragEl);
26883
- newDraggableIndex = index(dragEl, options.draggable);
26886
+ newIndex = index$1(dragEl);
26887
+ newDraggableIndex = index$1(dragEl, options.draggable);
26884
26888
  pluginEvent("drop", this, {
26885
26889
  evt
26886
26890
  });
26887
26891
  parentEl = dragEl && dragEl.parentNode;
26888
- newIndex = index(dragEl);
26889
- newDraggableIndex = index(dragEl, options.draggable);
26892
+ newIndex = index$1(dragEl);
26893
+ newDraggableIndex = index$1(dragEl, options.draggable);
26890
26894
  if (Sortable.eventCanceled) {
26891
26895
  this._nulling();
26892
26896
  return;
@@ -27231,7 +27235,7 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
27231
27235
  return 0;
27232
27236
  }
27233
27237
  function _getInsertDirection(target) {
27234
- if (index(dragEl) < index(target)) {
27238
+ if (index$1(dragEl) < index$1(target)) {
27235
27239
  return 1;
27236
27240
  } else {
27237
27241
  return -1;
@@ -27279,7 +27283,7 @@ Sortable.utils = {
27279
27283
  closest,
27280
27284
  toggleClass,
27281
27285
  clone,
27282
- index,
27286
+ index: index$1,
27283
27287
  nextTick: _nextTick,
27284
27288
  cancelNextTick: _cancelNextTick,
27285
27289
  detectDirection: _detectDirection,
@@ -27885,13 +27889,13 @@ const VueDraggableNext = defineComponent({
27885
27889
  }
27886
27890
  }
27887
27891
  });
27888
- const _hoisted_1$n = ["title"];
27889
- const _hoisted_2$i = { class: "bagel-input" };
27892
+ const _hoisted_1$p = ["title"];
27893
+ const _hoisted_2$j = { class: "bagel-input" };
27890
27894
  const _hoisted_3$e = { class: "table-side-scroll" };
27891
27895
  const _hoisted_4$a = { class: "table-header" };
27892
27896
  const _hoisted_5$9 = { class: "table-reorder" };
27893
27897
  const _hoisted_6$5 = { class: "table-action" };
27894
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
27898
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
27895
27899
  __name: "TableField",
27896
27900
  props: {
27897
27901
  description: { default: "" },
@@ -27956,7 +27960,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
27956
27960
  class: "table-field-wrap",
27957
27961
  title: _ctx.description
27958
27962
  }, [
27959
- createElementVNode("div", _hoisted_2$i, [
27963
+ createElementVNode("div", _hoisted_2$j, [
27960
27964
  createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
27961
27965
  ]),
27962
27966
  createElementVNode("div", _hoisted_3$e, [
@@ -27988,7 +27992,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
27988
27992
  class: "flex table-row"
27989
27993
  }, [
27990
27994
  createElementVNode("div", _hoisted_5$9, [
27991
- createVNode(unref(_sfc_main$M), { icon: "more_vert" })
27995
+ createVNode(unref(_sfc_main$O), { icon: "more_vert" })
27992
27996
  ]),
27993
27997
  (openBlock(true), createElementBlock(Fragment$1, null, renderList((_a3 = unref(entityMeta)) == null ? void 0 : _a3.fields, (field) => {
27994
27998
  return openBlock(), createElementBlock("div", {
@@ -28005,7 +28009,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
28005
28009
  ], 2);
28006
28010
  }), 128)),
28007
28011
  createElementVNode("div", _hoisted_6$5, [
28008
- createVNode(unref(_sfc_main$M), {
28012
+ createVNode(unref(_sfc_main$O), {
28009
28013
  icon: "delete",
28010
28014
  onClick: ($event) => removeRow2(index2)
28011
28015
  }, null, 8, ["onClick"])
@@ -28031,17 +28035,17 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
28031
28035
  ]),
28032
28036
  _: 1
28033
28037
  })
28034
- ], 8, _hoisted_1$n);
28038
+ ], 8, _hoisted_1$p);
28035
28039
  };
28036
28040
  }
28037
28041
  });
28038
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-515f5dc9"]]);
28039
- const _hoisted_1$m = ["title"];
28040
- const _hoisted_2$h = ["for"];
28042
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-515f5dc9"]]);
28043
+ const _hoisted_1$o = ["title"];
28044
+ const _hoisted_2$i = ["for"];
28041
28045
  const _hoisted_3$d = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
28042
28046
  const _hoisted_4$9 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
28043
28047
  const _hoisted_5$8 = { key: 2 };
28044
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
28048
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
28045
28049
  __name: "TextInput",
28046
28050
  props: {
28047
28051
  id: {},
@@ -28147,23 +28151,23 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
28147
28151
  [vModelText, unref(inputVal)]
28148
28152
  ]),
28149
28153
  _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_5$8, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true)
28150
- ], 8, _hoisted_2$h),
28151
- _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$M), {
28154
+ ], 8, _hoisted_2$i),
28155
+ _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$O), {
28152
28156
  key: 0,
28153
28157
  class: "iconStart",
28154
28158
  icon: _ctx.iconStart
28155
28159
  }, null, 8, ["icon"])) : createCommentVNode("", true),
28156
- _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$M), {
28160
+ _ctx.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
28157
28161
  key: 1,
28158
28162
  icon: _ctx.icon
28159
28163
  }, null, 8, ["icon"])) : createCommentVNode("", true)
28160
- ], 10, _hoisted_1$m);
28164
+ ], 10, _hoisted_1$o);
28161
28165
  };
28162
28166
  }
28163
28167
  });
28164
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-b024d618"]]);
28165
- const _hoisted_1$l = { class: "primary-checkbox" };
28166
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
28168
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-b024d618"]]);
28169
+ const _hoisted_1$n = { class: "primary-checkbox" };
28170
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
28167
28171
  __name: "Checkbox",
28168
28172
  props: {
28169
28173
  "modelValue": {
@@ -28176,7 +28180,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
28176
28180
  setup(__props) {
28177
28181
  const val = useModel(__props, "modelValue");
28178
28182
  return (_ctx, _cache) => {
28179
- return openBlock(), createElementBlock("label", _hoisted_1$l, [
28183
+ return openBlock(), createElementBlock("label", _hoisted_1$n, [
28180
28184
  withDirectives(createElementVNode("input", {
28181
28185
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
28182
28186
  type: "checkbox"
@@ -28184,16 +28188,16 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
28184
28188
  [vModelCheckbox, val.value]
28185
28189
  ]),
28186
28190
  createElementVNode("span", null, [
28187
- createVNode(unref(_sfc_main$M), { icon: "check" })
28191
+ createVNode(unref(_sfc_main$O), { icon: "check" })
28188
28192
  ])
28189
28193
  ]);
28190
28194
  };
28191
28195
  }
28192
28196
  });
28193
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-2f03e6ec"]]);
28194
- const _hoisted_1$k = ["title"];
28195
- const _hoisted_2$g = ["id", "placeholder", "required"];
28196
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
28197
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-2f03e6ec"]]);
28198
+ const _hoisted_1$m = ["title"];
28199
+ const _hoisted_2$h = ["id", "placeholder", "required"];
28200
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
28197
28201
  __name: "ColorPicker",
28198
28202
  props: {
28199
28203
  label: {},
@@ -28231,23 +28235,23 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
28231
28235
  placeholder: _ctx.placeholder || _ctx.label,
28232
28236
  class: { "no-edit": !_ctx.editMode },
28233
28237
  required: _ctx.required
28234
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$g), [
28238
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_2$h), [
28235
28239
  [vModelText, inputVal.value]
28236
28240
  ])
28237
28241
  ])
28238
- ], 10, _hoisted_1$k)) : createCommentVNode("", true);
28242
+ ], 10, _hoisted_1$m)) : createCommentVNode("", true);
28239
28243
  };
28240
28244
  }
28241
28245
  });
28242
- const _hoisted_1$j = { class: "datetime-wrap" };
28243
- const _hoisted_2$f = { class: "date-wrap" };
28246
+ const _hoisted_1$l = { class: "datetime-wrap" };
28247
+ const _hoisted_2$g = { class: "date-wrap" };
28244
28248
  const _hoisted_3$c = {
28245
28249
  key: 0,
28246
28250
  class: "time-wrap"
28247
28251
  };
28248
28252
  const _hoisted_4$8 = ["id", "name", "value"];
28249
28253
  const _hoisted_5$7 = ["for"];
28250
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
28254
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
28251
28255
  __name: "DatePicker",
28252
28256
  props: {
28253
28257
  label: {},
@@ -28276,8 +28280,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
28276
28280
  return `${hour}:${minute}`;
28277
28281
  });
28278
28282
  return (_ctx, _cache) => {
28279
- return openBlock(), createElementBlock("div", _hoisted_1$j, [
28280
- createElementVNode("div", _hoisted_2$f, [
28283
+ return openBlock(), createElementBlock("div", _hoisted_1$l, [
28284
+ createElementVNode("div", _hoisted_2$g, [
28281
28285
  createVNode(unref(Hn), mergeProps({
28282
28286
  modelValue: selectedDate.value,
28283
28287
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => selectedDate.value = $event),
@@ -28317,12 +28321,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
28317
28321
  };
28318
28322
  }
28319
28323
  });
28320
- const _hoisted_1$i = { class: "bagel-input" };
28321
- const _hoisted_2$e = { class: "pb-025" };
28324
+ const _hoisted_1$k = { class: "bagel-input" };
28325
+ const _hoisted_2$f = { class: "pb-025" };
28322
28326
  const _hoisted_3$b = { class: "flex gap-05 flex-wrap" };
28323
28327
  const _hoisted_4$7 = ["id", "name", "value", "checked"];
28324
28328
  const _hoisted_5$6 = ["for"];
28325
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
28329
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
28326
28330
  __name: "RadioPillsInput",
28327
28331
  props: {
28328
28332
  options: {},
@@ -28363,8 +28367,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
28363
28367
  selectedValue.value = props2.modelValue;
28364
28368
  });
28365
28369
  return (_ctx, _cache) => {
28366
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
28367
- createElementVNode("label", _hoisted_2$e, toDisplayString(_ctx.label), 1),
28370
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
28371
+ createElementVNode("label", _hoisted_2$f, toDisplayString(_ctx.label), 1),
28368
28372
  createElementVNode("div", _hoisted_3$b, [
28369
28373
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.options, (option2, index2) => {
28370
28374
  return openBlock(), createElementBlock("div", {
@@ -28389,10 +28393,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
28389
28393
  };
28390
28394
  }
28391
28395
  });
28392
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-681173be"]]);
28396
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-681173be"]]);
28393
28397
  const _withScopeId$2 = (n2) => (pushScopeId("data-v-82316bcb"), n2 = n2(), popScopeId(), n2);
28394
- const _hoisted_1$h = { class: "bagel-input" };
28395
- const _hoisted_2$d = {
28398
+ const _hoisted_1$j = { class: "bagel-input" };
28399
+ const _hoisted_2$e = {
28396
28400
  key: 0,
28397
28401
  class: "single-image"
28398
28402
  };
@@ -28416,7 +28420,7 @@ const _hoisted_12 = {
28416
28420
  class: "progress"
28417
28421
  };
28418
28422
  const _hoisted_13 = /* @__PURE__ */ _withScopeId$2(() => /* @__PURE__ */ createElementVNode("p", null, "Drop files here or click to upload", -1));
28419
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
28423
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
28420
28424
  __name: "FileUpload",
28421
28425
  props: /* @__PURE__ */ mergeModels({
28422
28426
  label: {},
@@ -28537,7 +28541,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28537
28541
  flushQueue();
28538
28542
  }
28539
28543
  return (_ctx, _cache) => {
28540
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
28544
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
28541
28545
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
28542
28546
  createElementVNode("div", {
28543
28547
  class: normalizeClass(["fileUploadWrap", {
@@ -28557,7 +28561,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28557
28561
  return openBlock(), createElementBlock(Fragment$1, {
28558
28562
  key: file.id
28559
28563
  }, [
28560
- !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
28564
+ !_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_2$e, [
28561
28565
  createElementVNode("img", {
28562
28566
  class: "single preview",
28563
28567
  src: file.url,
@@ -28606,7 +28610,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28606
28610
  style: normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
28607
28611
  }, [
28608
28612
  fileQ.progress < 100 ? (openBlock(), createElementBlock("span", _hoisted_12, toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : createCommentVNode("", true),
28609
- createVNode(unref(_sfc_main$M), {
28613
+ createVNode(unref(_sfc_main$O), {
28610
28614
  class: "success",
28611
28615
  icon: "check"
28612
28616
  })
@@ -28626,15 +28630,15 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
28626
28630
  };
28627
28631
  }
28628
28632
  });
28629
- const $el = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-82316bcb"]]);
28633
+ const $el = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-82316bcb"]]);
28630
28634
  const _withScopeId$1 = (n2) => (pushScopeId("data-v-50198c44"), n2 = n2(), popScopeId(), n2);
28631
- const _hoisted_1$g = ["title"];
28632
- const _hoisted_2$c = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
28635
+ const _hoisted_1$i = ["title"];
28636
+ const _hoisted_2$d = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("span", { class: "slider round" }, null, -1));
28633
28637
  const _hoisted_3$9 = [
28634
- _hoisted_2$c
28638
+ _hoisted_2$d
28635
28639
  ];
28636
28640
  const _hoisted_4$5 = ["id"];
28637
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
28641
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
28638
28642
  __name: "ToggleInput",
28639
28643
  props: /* @__PURE__ */ mergeModels({
28640
28644
  label: {},
@@ -28671,11 +28675,11 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
28671
28675
  [vModelCheckbox, checked.value]
28672
28676
  ])
28673
28677
  ])
28674
- ], 10, _hoisted_1$g);
28678
+ ], 10, _hoisted_1$i);
28675
28679
  };
28676
28680
  }
28677
28681
  });
28678
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-50198c44"]]);
28682
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-50198c44"]]);
28679
28683
  function OrderedMap(content) {
28680
28684
  this.content = content;
28681
28685
  }
@@ -51817,7 +51821,7 @@ function getTableNodeTypes(schema) {
51817
51821
  schema.cached.tableNodeTypes = roles;
51818
51822
  return roles;
51819
51823
  }
51820
- function createTable(schema, rowsCount, colsCount, withHeaderRow, cellContent) {
51824
+ function createTable$1(schema, rowsCount, colsCount, withHeaderRow, cellContent) {
51821
51825
  const types = getTableNodeTypes(schema);
51822
51826
  const headerCells = [];
51823
51827
  const cells = [];
@@ -51903,7 +51907,7 @@ const Table = Node$2.create({
51903
51907
  addCommands() {
51904
51908
  return {
51905
51909
  insertTable: ({ rows = 3, cols = 3, withHeaderRow = true } = {}) => ({ tr: tr2, dispatch, editor }) => {
51906
- const node = createTable(editor.schema, rows, cols, withHeaderRow);
51910
+ const node = createTable$1(editor.schema, rows, cols, withHeaderRow);
51907
51911
  if (dispatch) {
51908
51912
  const offset2 = tr2.selection.anchor + 1;
51909
51913
  tr2.replaceSelectionWith(node).scrollIntoView().setSelection(TextSelection.near(tr2.doc.resolve(offset2)));
@@ -52116,12 +52120,12 @@ const TableHeader = Node$2.create({
52116
52120
  return ["th", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
52117
52121
  }
52118
52122
  });
52119
- const _hoisted_1$f = { class: "RichText" };
52120
- const _hoisted_2$b = {
52123
+ const _hoisted_1$h = { class: "RichText" };
52124
+ const _hoisted_2$c = {
52121
52125
  key: 0,
52122
52126
  class: "RichText-tools"
52123
52127
  };
52124
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
52128
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
52125
52129
  __name: "RichText",
52126
52130
  props: {
52127
52131
  modelValue: {}
@@ -52346,8 +52350,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
52346
52350
  });
52347
52351
  return (_ctx, _cache) => {
52348
52352
  const _directive_tooltip = resolveDirective("tooltip");
52349
- return openBlock(), createElementBlock("div", _hoisted_1$f, [
52350
- unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
52353
+ return openBlock(), createElementBlock("div", _hoisted_1$h, [
52354
+ unref(editor) ? (openBlock(), createElementBlock("div", _hoisted_2$c, [
52351
52355
  (openBlock(), createElementBlock(Fragment$1, null, renderList(config, (item) => {
52352
52356
  var _a2;
52353
52357
  return withDirectives(createVNode(unref(Btn), {
@@ -54529,13 +54533,13 @@ function parsePhoneNumber$1() {
54529
54533
  function parsePhoneNumber() {
54530
54534
  return withMetadataArgument(parsePhoneNumber$1, arguments);
54531
54535
  }
54532
- const _hoisted_1$e = ["aria-expanded"];
54533
- const _hoisted_2$a = { class: "p-075 tel-countryp-dropdown" };
54536
+ const _hoisted_1$g = ["aria-expanded"];
54537
+ const _hoisted_2$b = { class: "p-075 tel-countryp-dropdown" };
54534
54538
  const _hoisted_3$8 = ["aria-selected", "onClick", "onMousemove"];
54535
54539
  const _hoisted_4$4 = { class: "tel-country" };
54536
54540
  const _hoisted_5$4 = { key: 1 };
54537
54541
  const _hoisted_6$3 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
54538
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
54542
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
54539
54543
  __name: "TelInput",
54540
54544
  props: /* @__PURE__ */ mergeModels({
54541
54545
  label: {},
@@ -54793,7 +54797,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
54793
54797
  onHide: _cache[2] || (_cache[2] = ($event) => isRef(open) ? open.value = false : open = false)
54794
54798
  }, {
54795
54799
  popper: withCtx(({ hide: hide2 }) => [
54796
- createElementVNode("div", _hoisted_2$a, [
54800
+ createElementVNode("div", _hoisted_2$b, [
54797
54801
  _ctx.searchable ? (openBlock(), createBlock(unref(TextInput), {
54798
54802
  key: 0,
54799
54803
  modelValue: searchQuery.value,
@@ -54836,7 +54840,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
54836
54840
  class: "flex gap-05",
54837
54841
  onClick: _cache[0] || (_cache[0] = ($event) => isRef(open) ? open.value = true : open = true)
54838
54842
  }, [
54839
- createVNode(unref(_sfc_main$M), {
54843
+ createVNode(unref(_sfc_main$O), {
54840
54844
  icon: unref(open) ? "collapse_all" : "expand_all"
54841
54845
  }, null, 8, ["icon"]),
54842
54846
  computedDropDownOptions.value.showFlags && unref(activeCountryCode) ? (openBlock(), createBlock(unref(Flag), {
@@ -54874,13 +54878,13 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
54874
54878
  }, null, 44, _hoisted_6$3), [
54875
54879
  [vModelText, phone.value]
54876
54880
  ])
54877
- ], 40, _hoisted_1$e)
54881
+ ], 40, _hoisted_1$g)
54878
54882
  ])
54879
54883
  ], 2);
54880
54884
  };
54881
54885
  }
54882
54886
  });
54883
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-b13ff2af"]]);
54887
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-b13ff2af"]]);
54884
54888
  /*!
54885
54889
  * Signature Pad v5.0.2 | https://github.com/szimek/signature_pad
54886
54890
  * (c) 2024 Szymon Nowak | Released under the MIT license
@@ -55474,8 +55478,8 @@ class SignaturePad extends SignatureEventTarget {
55474
55478
  return svg.outerHTML;
55475
55479
  }
55476
55480
  }
55477
- const _hoisted_1$d = ["disabled"];
55478
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
55481
+ const _hoisted_1$f = ["disabled"];
55482
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
55479
55483
  __name: "SignaturePad",
55480
55484
  props: {
55481
55485
  sigOption: {},
@@ -55597,11 +55601,434 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
55597
55601
  ref: vCanvas,
55598
55602
  class: "canvas",
55599
55603
  disabled: _ctx.disabled
55600
- }, null, 8, _hoisted_1$d)
55604
+ }, null, 8, _hoisted_1$f)
55601
55605
  ], 32);
55602
55606
  };
55603
55607
  }
55604
55608
  });
55609
+ const _hoisted_1$e = {
55610
+ class: "toolbar",
55611
+ role: "toolbar"
55612
+ };
55613
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
55614
+ __name: "Toolbar",
55615
+ props: {
55616
+ config: {}
55617
+ },
55618
+ emits: ["action"],
55619
+ setup(__props, { emit: __emit }) {
55620
+ const emit2 = __emit;
55621
+ const colorPicker = ref(null);
55622
+ const fontSizeInput = ref(null);
55623
+ const toolbarOptions = [
55624
+ { name: "bold", icon: "format_bold" },
55625
+ { name: "italic", icon: "format_italic" },
55626
+ { name: "underline", icon: "format_underlined" },
55627
+ { name: "fontSize", icon: "format_size" },
55628
+ { name: "fontFamily", icon: "font_download" },
55629
+ { name: "textColor", icon: "text_format" },
55630
+ { name: "backgroundColor", icon: "format_color_fill" },
55631
+ { name: "alignLeft", icon: "format_align_left" },
55632
+ { name: "alignCenter", icon: "format_align_center" },
55633
+ { name: "alignRight", icon: "format_align_right" },
55634
+ { name: "alignJustify", icon: "format_align_justify" },
55635
+ { name: "orderedList", icon: "format_list_numbered" },
55636
+ { name: "unorderedList", icon: "format_list_bulleted" },
55637
+ { name: "indent", icon: "format_indent_increase" },
55638
+ { name: "outdent", icon: "format_indent_decrease" },
55639
+ { name: "link", icon: "link" },
55640
+ { name: "image", icon: "image" },
55641
+ { name: "table", icon: "table_chart" },
55642
+ { name: "blockquote", icon: "format_quote" },
55643
+ { name: "codeBlock", icon: "code" },
55644
+ { name: "splitView", icon: "splitscreen_right" },
55645
+ { name: "codeView", icon: "code" }
55646
+ ];
55647
+ function handleColorPick(type3) {
55648
+ var _a2;
55649
+ const color2 = (_a2 = colorPicker.value) == null ? void 0 : _a2.value;
55650
+ if (color2) {
55651
+ emit2("action", type3, color2);
55652
+ }
55653
+ }
55654
+ function handleFontSizeChange() {
55655
+ var _a2;
55656
+ const size2 = (_a2 = fontSizeInput.value) == null ? void 0 : _a2.value;
55657
+ if (size2) {
55658
+ emit2("action", "fontSize", size2);
55659
+ }
55660
+ }
55661
+ return (_ctx, _cache) => {
55662
+ const _directive_tooltip = resolveDirective("tooltip");
55663
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
55664
+ (openBlock(true), createElementBlock(Fragment$1, null, renderList(toolbarOptions.filter((t) => _ctx.config.includes(t.name)), (action) => {
55665
+ return withDirectives((openBlock(), createBlock(unref(Btn), {
55666
+ key: action.name,
55667
+ thin: "",
55668
+ color: "light",
55669
+ "aria-label": action.name,
55670
+ icon: action.icon,
55671
+ onClick: ($event) => emit2("action", action.name)
55672
+ }, null, 8, ["aria-label", "icon", "onClick"])), [
55673
+ [_directive_tooltip, action.name]
55674
+ ]);
55675
+ }), 128)),
55676
+ _ctx.config.includes("textColor") || _ctx.config.includes("backgroundColor") ? (openBlock(), createElementBlock("input", {
55677
+ key: 0,
55678
+ ref_key: "colorPicker",
55679
+ ref: colorPicker,
55680
+ type: "color",
55681
+ onChange: _cache[0] || (_cache[0] = ($event) => handleColorPick(_ctx.config.includes("textColor") ? "textColor" : "backgroundColor"))
55682
+ }, null, 544)) : createCommentVNode("", true),
55683
+ _ctx.config.includes("fontSize") ? (openBlock(), createElementBlock("input", {
55684
+ key: 1,
55685
+ ref_key: "fontSizeInput",
55686
+ ref: fontSizeInput,
55687
+ type: "number",
55688
+ min: "1",
55689
+ max: "7",
55690
+ onChange: handleFontSizeChange
55691
+ }, null, 544)) : createCommentVNode("", true)
55692
+ ]);
55693
+ };
55694
+ }
55695
+ });
55696
+ const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ace0040e"]]);
55697
+ function applyFormatting(command2, value = "") {
55698
+ const selection = window.getSelection();
55699
+ if (selection && selection.rangeCount > 0) {
55700
+ const range2 = selection.getRangeAt(0);
55701
+ const span = document.createElement("span");
55702
+ switch (command2) {
55703
+ case "bold":
55704
+ span.style.fontWeight = "bold";
55705
+ break;
55706
+ case "italic":
55707
+ span.style.fontStyle = "italic";
55708
+ break;
55709
+ case "underline":
55710
+ span.style.textDecoration = "underline";
55711
+ break;
55712
+ case "strikeThrough":
55713
+ span.style.textDecoration = "line-through";
55714
+ break;
55715
+ case "fontSize":
55716
+ span.style.fontSize = value;
55717
+ break;
55718
+ case "foreColor":
55719
+ span.style.color = value;
55720
+ break;
55721
+ case "backColor":
55722
+ span.style.backgroundColor = value;
55723
+ break;
55724
+ case "justifyLeft":
55725
+ span.style.textAlign = "left";
55726
+ break;
55727
+ case "justifyCenter":
55728
+ span.style.textAlign = "center";
55729
+ break;
55730
+ case "justifyRight":
55731
+ span.style.textAlign = "right";
55732
+ break;
55733
+ case "justifyFull":
55734
+ span.style.textAlign = "justify";
55735
+ break;
55736
+ case "insertOrderedList":
55737
+ insertList("ol");
55738
+ return;
55739
+ case "insertUnorderedList":
55740
+ insertList("ul");
55741
+ return;
55742
+ case "indent":
55743
+ span.style.marginLeft = "40px";
55744
+ break;
55745
+ case "outdent":
55746
+ span.style.marginLeft = "-40px";
55747
+ break;
55748
+ case "removeFormatting":
55749
+ removeFormatting();
55750
+ break;
55751
+ case "insertHorizontalRule":
55752
+ insertHorizontalRule();
55753
+ break;
55754
+ case "subscript":
55755
+ span.style.verticalAlign = "sub";
55756
+ break;
55757
+ case "superscript":
55758
+ span.style.verticalAlign = "super";
55759
+ break;
55760
+ case "fontName":
55761
+ span.style.fontFamily = value;
55762
+ break;
55763
+ case "increaseFontSize":
55764
+ increaseFontSize();
55765
+ break;
55766
+ case "decreaseFontSize":
55767
+ break;
55768
+ case "insertLink":
55769
+ insertLink();
55770
+ break;
55771
+ case "insertImage":
55772
+ insertImage();
55773
+ break;
55774
+ case "createTable":
55775
+ createTable();
55776
+ break;
55777
+ default:
55778
+ console.warn(`Command ${command2} is not supported`);
55779
+ return;
55780
+ }
55781
+ range2.surroundContents(span);
55782
+ }
55783
+ }
55784
+ function increaseFontSize() {
55785
+ const selection = window.getSelection();
55786
+ if (selection && selection.rangeCount > 0) {
55787
+ const range2 = selection.getRangeAt(0);
55788
+ const span = document.createElement("span");
55789
+ const currentFontSize = Number.parseInt(range2.startContainer.parentNode.style.fontSize || "16", 10);
55790
+ const newFontSize = currentFontSize + 2;
55791
+ span.style.fontSize = `${newFontSize}px`;
55792
+ range2.surroundContents(span);
55793
+ }
55794
+ }
55795
+ function removeFormatting() {
55796
+ const selection = window.getSelection();
55797
+ if (selection && selection.rangeCount > 0) {
55798
+ const range2 = selection.getRangeAt(0);
55799
+ const span = document.createElement("span");
55800
+ span.textContent = range2.toString();
55801
+ range2.deleteContents();
55802
+ range2.insertNode(span);
55803
+ }
55804
+ }
55805
+ function insertHorizontalRule() {
55806
+ const selection = window.getSelection();
55807
+ if (selection && selection.rangeCount > 0) {
55808
+ const range2 = selection.getRangeAt(0);
55809
+ const hr2 = document.createElement("hr");
55810
+ range2.deleteContents();
55811
+ range2.insertNode(hr2);
55812
+ }
55813
+ }
55814
+ function insertList(type3) {
55815
+ const selection = window.getSelection();
55816
+ if (selection && selection.rangeCount > 0) {
55817
+ const range2 = selection.getRangeAt(0);
55818
+ const list = document.createElement(type3);
55819
+ const listItem = document.createElement("li");
55820
+ listItem.textContent = range2.toString();
55821
+ list.appendChild(listItem);
55822
+ range2.deleteContents();
55823
+ range2.insertNode(list);
55824
+ }
55825
+ }
55826
+ function insertLink() {
55827
+ const url = prompt("Enter the URL:");
55828
+ if (url) {
55829
+ const selection = window.getSelection();
55830
+ if (selection && selection.rangeCount > 0) {
55831
+ const range2 = selection.getRangeAt(0);
55832
+ const anchor = document.createElement("a");
55833
+ anchor.href = url;
55834
+ range2.surroundContents(anchor);
55835
+ }
55836
+ }
55837
+ }
55838
+ function insertImage() {
55839
+ const url = prompt("Enter the image URL:");
55840
+ if (url) {
55841
+ const selection = window.getSelection();
55842
+ if (selection && selection.rangeCount > 0) {
55843
+ const range2 = selection.getRangeAt(0);
55844
+ const img = document.createElement("img");
55845
+ img.src = url;
55846
+ range2.deleteContents();
55847
+ range2.insertNode(img);
55848
+ }
55849
+ }
55850
+ }
55851
+ function createTable() {
55852
+ const rows = prompt("Enter the number of rows:");
55853
+ const cols = prompt("Enter the number of columns:");
55854
+ if (rows && cols) {
55855
+ const table = document.createElement("table");
55856
+ table.style.border = "1px solid black";
55857
+ table.style.borderCollapse = "collapse";
55858
+ for (let i2 = 0; i2 < Number.parseInt(rows); i2++) {
55859
+ const row = table.insertRow();
55860
+ for (let j2 = 0; j2 < Number.parseInt(cols); j2++) {
55861
+ const cell = row.insertCell();
55862
+ cell.style.border = "1px solid black";
55863
+ cell.style.padding = "5px";
55864
+ cell.textContent = `Cell ${i2 + 1},${j2 + 1}`;
55865
+ }
55866
+ }
55867
+ const selection = window.getSelection();
55868
+ if (selection && selection.rangeCount > 0) {
55869
+ const range2 = selection.getRangeAt(0);
55870
+ range2.deleteContents();
55871
+ range2.insertNode(table);
55872
+ }
55873
+ }
55874
+ }
55875
+ const _hoisted_1$d = { class: "rich-text-editor" };
55876
+ const _hoisted_2$a = ["innerHTML"];
55877
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
55878
+ __name: "index",
55879
+ props: {
55880
+ modelValue: {},
55881
+ toolbarConfig: {}
55882
+ },
55883
+ emits: ["update:modelValue"],
55884
+ setup(__props, { emit: __emit }) {
55885
+ const props2 = __props;
55886
+ const emit2 = __emit;
55887
+ const editableContent = ref(null);
55888
+ const defaultConfig2 = [
55889
+ "bold",
55890
+ "italic",
55891
+ "underline",
55892
+ "fontSize",
55893
+ "fontFamily",
55894
+ "textColor",
55895
+ "backgroundColor",
55896
+ "alignLeft",
55897
+ "alignCenter",
55898
+ "alignRight",
55899
+ "alignJustify",
55900
+ "orderedList",
55901
+ "unorderedList",
55902
+ "indent",
55903
+ "outdent",
55904
+ "link",
55905
+ "image",
55906
+ "table",
55907
+ "blockquote",
55908
+ "codeBlock",
55909
+ "splitView",
55910
+ "codeView"
55911
+ ];
55912
+ const config = ref(props2.toolbarConfig || defaultConfig2);
55913
+ let contentHtml = ref(props2.modelValue);
55914
+ let isCodeView = ref(false);
55915
+ let isSplitView = ref(false);
55916
+ function updateContent() {
55917
+ var _a2;
55918
+ if (!isCodeView.value) {
55919
+ contentHtml.value = ((_a2 = editableContent.value) == null ? void 0 : _a2.innerHTML) ?? "";
55920
+ }
55921
+ emit2("update:modelValue", contentHtml.value);
55922
+ }
55923
+ function handleToolbarAction(action, value) {
55924
+ if (!editableContent.value) return;
55925
+ if (["alignLeft", "alignCenter", "alignRight", "alignJustify"].includes(action))
55926
+ value = action.replace("align", "").toLowerCase();
55927
+ switch (action) {
55928
+ case "orderedList":
55929
+ applyFormatting("insertOrderedList");
55930
+ break;
55931
+ case "unorderedList":
55932
+ applyFormatting("insertUnorderedList");
55933
+ break;
55934
+ case "blockquote":
55935
+ applyFormatting("formatBlock", "<blockquote>");
55936
+ break;
55937
+ case "codeBlock":
55938
+ applyFormatting("formatBlock", "<pre>");
55939
+ break;
55940
+ case "splitView":
55941
+ isSplitView.value = !isSplitView.value;
55942
+ break;
55943
+ case "codeView":
55944
+ isCodeView.value = !isCodeView.value;
55945
+ break;
55946
+ default:
55947
+ applyFormatting(action, value);
55948
+ break;
55949
+ }
55950
+ updateContent();
55951
+ }
55952
+ watch(() => props2.modelValue, (newValue) => {
55953
+ if (newValue !== contentHtml.value) {
55954
+ contentHtml.value = newValue;
55955
+ if (editableContent.value) {
55956
+ editableContent.value.innerHTML = newValue;
55957
+ }
55958
+ }
55959
+ });
55960
+ onMounted(() => {
55961
+ if (editableContent.value) {
55962
+ editableContent.value.innerHTML = contentHtml.value;
55963
+ }
55964
+ });
55965
+ function handleKeyDown2(event) {
55966
+ if (event.ctrlKey || event.metaKey) {
55967
+ switch (event.key.toLowerCase()) {
55968
+ case "b":
55969
+ event.preventDefault();
55970
+ handleToolbarAction("bold");
55971
+ break;
55972
+ case "i":
55973
+ event.preventDefault();
55974
+ handleToolbarAction("italic");
55975
+ break;
55976
+ case "u":
55977
+ event.preventDefault();
55978
+ handleToolbarAction("underline");
55979
+ break;
55980
+ case "k":
55981
+ event.preventDefault();
55982
+ handleToolbarAction("link");
55983
+ break;
55984
+ case "l":
55985
+ event.preventDefault();
55986
+ handleToolbarAction("orderedList");
55987
+ break;
55988
+ }
55989
+ }
55990
+ }
55991
+ return (_ctx, _cache) => {
55992
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
55993
+ createVNode(Toolbar, {
55994
+ config: config.value,
55995
+ onAction: handleToolbarAction
55996
+ }, null, 8, ["config"]),
55997
+ createElementVNode("div", {
55998
+ class: normalizeClass(["editor-container", { "split-view": unref(isSplitView) }])
55999
+ }, [
56000
+ createElementVNode("div", {
56001
+ class: normalizeClass(["content-area", { "code-view": unref(isCodeView) }])
56002
+ }, [
56003
+ unref(isCodeView) ? withDirectives((openBlock(), createElementBlock("textarea", {
56004
+ key: 0,
56005
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(contentHtml) ? contentHtml.value = $event : contentHtml = $event),
56006
+ onInput: updateContent
56007
+ }, null, 544)), [
56008
+ [vModelText, unref(contentHtml)]
56009
+ ]) : (openBlock(), createElementBlock("div", {
56010
+ key: 1,
56011
+ ref_key: "editableContent",
56012
+ ref: editableContent,
56013
+ contenteditable: "true",
56014
+ role: "textbox",
56015
+ "aria-multiline": "true",
56016
+ tabindex: "0",
56017
+ onInput: updateContent,
56018
+ onKeydown: handleKeyDown2
56019
+ }, null, 544))
56020
+ ], 2),
56021
+ unref(isSplitView) ? (openBlock(), createElementBlock("div", {
56022
+ key: 0,
56023
+ class: "preview-area",
56024
+ innerHTML: unref(contentHtml)
56025
+ }, null, 8, _hoisted_2$a)) : createCommentVNode("", true)
56026
+ ], 2)
56027
+ ]);
56028
+ };
56029
+ }
56030
+ });
56031
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-e3cd444d"]]);
55605
56032
  function _isPlaceholder(a2) {
55606
56033
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
55607
56034
  }
@@ -61779,7 +62206,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
61779
62206
  }
61780
62207
  return (_ctx, _cache) => {
61781
62208
  const _directive_tooltip = resolveDirective("tooltip");
61782
- return openBlock(), createBlock(unref(_sfc_main$z), {
62209
+ return openBlock(), createBlock(unref(_sfc_main$B), {
61783
62210
  class: normalizeClass(["flex column gap-05 pt-1 bgl_sidebar", { wideNav: unref(isOpen) }])
61784
62211
  }, {
61785
62212
  default: withCtx(() => [
@@ -61802,7 +62229,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
61802
62229
  class: "nav-button px-075"
61803
62230
  }, {
61804
62231
  default: withCtx(() => [
61805
- createVNode(unref(_sfc_main$M), {
62232
+ createVNode(unref(_sfc_main$O), {
61806
62233
  icon: nav2.icon,
61807
62234
  size: 1.4
61808
62235
  }, null, 8, ["icon"]),
@@ -61839,7 +62266,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
61839
62266
  },
61840
62267
  setup(__props) {
61841
62268
  return (_ctx, _cache) => {
61842
- return openBlock(), createBlock(unref(_sfc_main$z), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
62269
+ return openBlock(), createBlock(unref(_sfc_main$B), { class: "hide m_grid gap-05 bgl_bottombar px-1 txt14 justify-content-start align-items-center overflow-x" }, {
61843
62270
  default: withCtx(() => [
61844
62271
  renderSlot(_ctx.$slots, "brand", {}, void 0, true),
61845
62272
  (openBlock(true), createElementBlock(Fragment$1, null, renderList(_ctx.navLinks, (nav2, i2) => {
@@ -61850,7 +62277,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
61850
62277
  onClick: nav2.onClick
61851
62278
  }, {
61852
62279
  default: withCtx(() => [
61853
- createVNode(unref(_sfc_main$M), {
62280
+ createVNode(unref(_sfc_main$O), {
61854
62281
  icon: nav2.icon,
61855
62282
  size: 1.4,
61856
62283
  class: "m-0"
@@ -62001,7 +62428,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
62001
62428
  class: normalizeClass([{ active: isActive2(tab) }, "bgl_tab relative z-1"]),
62002
62429
  onClick: ($event) => selectTab(tab)
62003
62430
  }, [
62004
- typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$M), {
62431
+ typeof tab !== "string" && tab.icon ? (openBlock(), createBlock(unref(_sfc_main$O), {
62005
62432
  key: 0,
62006
62433
  icon: tab.icon
62007
62434
  }, null, 8, ["icon"])) : createCommentVNode("", true),
@@ -62416,49 +62843,50 @@ const allCountries = countryArray.map(
62416
62843
  })
62417
62844
  );
62418
62845
  export {
62419
- _sfc_main$w as Accordion,
62846
+ _sfc_main$y as Accordion,
62420
62847
  AccordionItem,
62421
62848
  Alert,
62422
62849
  Avatar,
62423
62850
  Badge,
62424
- _sfc_main$o as BagelForm,
62851
+ _sfc_main$q as BagelForm,
62425
62852
  BagelVue,
62426
- _sfc_main$n as BglField,
62427
- _sfc_main$o as BglForm,
62853
+ _sfc_main$p as BglField,
62854
+ _sfc_main$q as BglForm,
62428
62855
  BglVideo,
62429
62856
  BottomMenu,
62430
62857
  Btn,
62431
- _sfc_main$z as Card,
62858
+ _sfc_main$B as Card,
62432
62859
  Carousel,
62433
62860
  CheckInput,
62434
62861
  Checkbox,
62435
- _sfc_main$f as ColorPicker,
62862
+ _sfc_main$h as ColorPicker,
62436
62863
  DataPreview,
62437
- _sfc_main$l as DateInput,
62438
- _sfc_main$e as DatePicker,
62864
+ _sfc_main$n as DateInput,
62865
+ _sfc_main$g as DatePicker,
62439
62866
  kt$1 as Dropdown,
62440
62867
  $el as FileUpload,
62441
62868
  Flag,
62442
- _sfc_main$M as Icon,
62869
+ _sfc_main$O as Icon,
62443
62870
  JSONInput,
62444
62871
  Layout,
62445
62872
  _sfc_main$7 as Lineart,
62446
- _sfc_main$F as ListItem,
62873
+ _sfc_main$H as ListItem,
62447
62874
  ListView,
62448
- _sfc_main$q as MapEmbed,
62449
- _sfc_main$M as MaterialIcon,
62450
- _sfc_main$J as Modal,
62451
- _sfc_main$r as ModalConfirm,
62875
+ _sfc_main$s as MapEmbed,
62876
+ _sfc_main$O as MaterialIcon,
62877
+ _sfc_main$L as Modal,
62878
+ _sfc_main$t as ModalConfirm,
62452
62879
  ModalForm,
62453
62880
  ModalPlugin,
62454
62881
  NavBar,
62455
- _sfc_main$E as PageTitle,
62882
+ _sfc_main$G as PageTitle,
62456
62883
  RadioPillsInput,
62457
- _sfc_main$a as RichText,
62884
+ _sfc_main$c as RichText,
62885
+ index as RichText2,
62458
62886
  RouterWrapper,
62459
62887
  SelectInput,
62460
62888
  SidebarMenu,
62461
- _sfc_main$8 as SignaturePad,
62889
+ _sfc_main$a as SignaturePad,
62462
62890
  TabbedLayout,
62463
62891
  TableField,
62464
62892
  TableSchema,
@@ -62467,7 +62895,7 @@ export {
62467
62895
  TabsNav,
62468
62896
  TelInput,
62469
62897
  TextInput,
62470
- _sfc_main$x as Title,
62898
+ _sfc_main$z as Title,
62471
62899
  ToggleInput,
62472
62900
  TopBar,
62473
62901
  allCountries,