@bagelink/vue 0.0.168 → 0.0.172

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.
package/dist/index.cjs CHANGED
@@ -2246,17 +2246,26 @@ class Bagel {
2246
2246
  }
2247
2247
  }
2248
2248
  const bagelInjectionKey = Symbol("bagel");
2249
+ const i18nTInjectionKey = Symbol("bagel");
2249
2250
  function useBagel() {
2250
2251
  const bagel = vue.inject(bagelInjectionKey);
2251
2252
  if (!bagel)
2252
2253
  throw new Error("No bagel provided");
2253
2254
  return bagel;
2254
2255
  }
2256
+ function useI18nT() {
2257
+ const i18nT = vue.inject(i18nTInjectionKey);
2258
+ if (!i18nT)
2259
+ throw new Error("No i18nT provided");
2260
+ return i18nT;
2261
+ }
2255
2262
  const BagelVue = {
2256
2263
  install: (app, options) => {
2257
2264
  const bagel = new Bagel({ host: options.host, onError: options.onError });
2258
2265
  app.config.globalProperties.$bagel = bagel;
2259
2266
  app.provide(bagelInjectionKey, bagel);
2267
+ app.config.globalProperties.$i18T = (options == null ? void 0 : options.i18nT) || ((key) => key);
2268
+ app.provide(i18nTInjectionKey, (options == null ? void 0 : options.i18nT) || ((key) => key));
2260
2269
  }
2261
2270
  };
2262
2271
  const ModalSymbol = Symbol("modal");
@@ -2293,7 +2302,7 @@ const ModalPlugin = {
2293
2302
  },
2294
2303
  render() {
2295
2304
  return modalStack.value.map((modal, index2) => {
2296
- const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$P;
2305
+ const renderComponent = modal.isModalForm ? ModalForm : _sfc_main$O;
2297
2306
  return vue.h(
2298
2307
  renderComponent,
2299
2308
  {
@@ -2369,8 +2378,8 @@ function useEscape(event, closeModel) {
2369
2378
  closeModel();
2370
2379
  }
2371
2380
  }
2372
- const _hoisted_1$_ = { ref: "el" };
2373
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
2381
+ const _hoisted_1$Z = { ref: "el" };
2382
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
2374
2383
  __name: "LangText",
2375
2384
  props: {
2376
2385
  input: {}
@@ -2378,7 +2387,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
2378
2387
  setup(__props) {
2379
2388
  return (_ctx, _cache) => {
2380
2389
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
2381
- vue.createElementVNode("span", _hoisted_1$_, null, 512),
2390
+ vue.createElementVNode("span", _hoisted_1$Z, null, 512),
2382
2391
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.input) + " ", 1)
2383
2392
  ], 64);
2384
2393
  };
@@ -14494,8 +14503,8 @@ const marks = {
14494
14503
  }
14495
14504
  };
14496
14505
  const schema = new Schema({ nodes, marks });
14497
- const _hoisted_1$Z = ["id"];
14498
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14506
+ const _hoisted_1$Y = ["id"];
14507
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14499
14508
  __name: "RTXEditor",
14500
14509
  props: {
14501
14510
  elementId: { default: Math.random().toString(36).substr(2, 9) },
@@ -14572,11 +14581,11 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14572
14581
  onClick: focusEditor,
14573
14582
  id: `canvas-${_ctx.elementId}`,
14574
14583
  onKeydown: _cache[0] || (_cache[0] = vue.withKeys(vue.withModifiers(($event) => _ctx.$emit("keydown.meta.enter"), ["meta"]), ["enter"]))
14575
- }, null, 40, _hoisted_1$Z);
14584
+ }, null, 40, _hoisted_1$Y);
14576
14585
  };
14577
14586
  }
14578
14587
  });
14579
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14588
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14580
14589
  __name: "MaterialIcon",
14581
14590
  props: {
14582
14591
  icon: {},
@@ -14591,17 +14600,17 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14591
14600
  };
14592
14601
  }
14593
14602
  });
14594
- const _hoisted_1$Y = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14595
- const _hoisted_2$Q = [
14596
- _hoisted_1$Y
14603
+ const _hoisted_1$X = /* @__PURE__ */ vue.createElementVNode("div", { class: "icon-font top-arrow" }, "chevron_right", -1);
14604
+ const _hoisted_2$P = [
14605
+ _hoisted_1$X
14597
14606
  ];
14598
- const _hoisted_3$I = { class: "full-nav" };
14599
- const _hoisted_4$r = { class: "nav-scroll" };
14600
- const _hoisted_5$m = { class: "nav-links-wrapper" };
14607
+ const _hoisted_3$H = { class: "full-nav" };
14608
+ const _hoisted_4$q = { class: "nav-scroll" };
14609
+ const _hoisted_5$l = { class: "nav-links-wrapper" };
14601
14610
  const _hoisted_6$h = { class: "icon-font" };
14602
14611
  const _hoisted_7$c = { class: "tooltip" };
14603
14612
  const _hoisted_8$7 = { class: "bot-buttons-wrapper" };
14604
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14613
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14605
14614
  __name: "NavBar",
14606
14615
  props: {
14607
14616
  links: {},
@@ -14625,10 +14634,10 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14625
14634
  role: "button",
14626
14635
  "aria-label": "Toggle Navigation",
14627
14636
  tabindex: "0"
14628
- }, _hoisted_2$Q, 32),
14629
- vue.createElementVNode("div", _hoisted_3$I, [
14630
- vue.createElementVNode("div", _hoisted_4$r, [
14631
- vue.createElementVNode("div", _hoisted_5$m, [
14637
+ }, _hoisted_2$P, 32),
14638
+ vue.createElementVNode("div", _hoisted_3$H, [
14639
+ vue.createElementVNode("div", _hoisted_4$q, [
14640
+ vue.createElementVNode("div", _hoisted_5$l, [
14632
14641
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a = _ctx.links) == null ? void 0 : _a.call(_ctx), (link) => {
14633
14642
  return vue.openBlock(), vue.createBlock(_component_RouterLink, {
14634
14643
  class: "nav-button",
@@ -14652,15 +14661,15 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14652
14661
  };
14653
14662
  }
14654
14663
  });
14655
- const _hoisted_1$X = {
14664
+ const _hoisted_1$W = {
14656
14665
  key: 0,
14657
14666
  class: "loading"
14658
14667
  };
14659
- const _hoisted_2$P = {
14668
+ const _hoisted_2$O = {
14660
14669
  key: 1,
14661
14670
  class: "btn-flex"
14662
14671
  };
14663
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14672
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14664
14673
  __name: "Btn",
14665
14674
  props: {
14666
14675
  disabled: { type: Boolean, default: false },
@@ -14696,8 +14705,8 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14696
14705
  })
14697
14706
  }, {
14698
14707
  default: vue.withCtx(() => [
14699
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$X)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$P, [
14700
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
14708
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$W)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$O, [
14709
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$R), {
14701
14710
  key: 0,
14702
14711
  icon: _ctx.icon
14703
14712
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -14705,7 +14714,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14705
14714
  !vue.unref(slots)["default"] && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
14706
14715
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
14707
14716
  ], 64)) : vue.createCommentVNode("", true),
14708
- props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
14717
+ props2["icon.end"] ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$R), {
14709
14718
  key: 2,
14710
14719
  icon: props2["icon.end"]
14711
14720
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
@@ -14723,11 +14732,11 @@ const _export_sfc = (sfc, props2) => {
14723
14732
  }
14724
14733
  return target;
14725
14734
  };
14726
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-8fe48560"]]);
14727
- const _hoisted_1$W = { class: "tool-bar" };
14728
- const _hoisted_2$O = { class: "modal-title" };
14729
- const _hoisted_3$H = { class: "modal-footer mt-3" };
14730
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14735
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-8fe48560"]]);
14736
+ const _hoisted_1$V = { class: "tool-bar" };
14737
+ const _hoisted_2$N = { class: "modal-title" };
14738
+ const _hoisted_3$G = { class: "modal-footer mt-3" };
14739
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14731
14740
  __name: "Modal",
14732
14741
  props: {
14733
14742
  side: { type: Boolean },
@@ -14773,7 +14782,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14773
14782
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
14774
14783
  }, ["stop"]))
14775
14784
  }, [
14776
- vue.createElementVNode("header", _hoisted_1$W, [
14785
+ vue.createElementVNode("header", _hoisted_1$V, [
14777
14786
  vue.renderSlot(_ctx.$slots, "toolbar"),
14778
14787
  vue.createVNode(vue.unref(Btn), {
14779
14788
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -14781,10 +14790,10 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14781
14790
  icon: "close",
14782
14791
  onClick: closeModal
14783
14792
  }, null, 8, ["style"]),
14784
- vue.createElementVNode("h3", _hoisted_2$O, vue.toDisplayString(_ctx.title), 1)
14793
+ vue.createElementVNode("h3", _hoisted_2$N, vue.toDisplayString(_ctx.title), 1)
14785
14794
  ]),
14786
14795
  vue.renderSlot(_ctx.$slots, "default"),
14787
- vue.createElementVNode("footer", _hoisted_3$H, [
14796
+ vue.createElementVNode("footer", _hoisted_3$G, [
14788
14797
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i2) => {
14789
14798
  return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
14790
14799
  key: i2,
@@ -14799,10 +14808,10 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14799
14808
  };
14800
14809
  }
14801
14810
  });
14802
- const _hoisted_1$V = { class: "dropdown-title" };
14803
- const _hoisted_2$N = { class: "dropdown-body" };
14804
- const _hoisted_3$G = ["onClick"];
14805
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14811
+ const _hoisted_1$U = { class: "dropdown-title" };
14812
+ const _hoisted_2$M = { class: "dropdown-body" };
14813
+ const _hoisted_3$F = ["onClick"];
14814
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14806
14815
  __name: "DropDown",
14807
14816
  props: {
14808
14817
  modelValue: String,
@@ -14828,31 +14837,31 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14828
14837
  class: vue.normalizeClass(["dropdown", { opendrop: isOpen.value }]),
14829
14838
  onClick: toggleDropdown
14830
14839
  }, [
14831
- vue.createElementVNode("div", _hoisted_1$V, [
14840
+ vue.createElementVNode("div", _hoisted_1$U, [
14832
14841
  vue.createTextVNode(vue.toDisplayString(selectedOption.value || __props.placeholder) + " ", 1),
14833
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "keyboard_arrow_down" })
14842
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "keyboard_arrow_down" })
14834
14843
  ]),
14835
- vue.createElementVNode("div", _hoisted_2$N, [
14844
+ vue.createElementVNode("div", _hoisted_2$M, [
14836
14845
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (option2, index2) => {
14837
14846
  return vue.openBlock(), vue.createElementBlock("p", {
14838
14847
  key: index2,
14839
14848
  onClick: vue.withModifiers(($event) => selectOption(option2, index2), ["stop"])
14840
- }, vue.toDisplayString(option2), 9, _hoisted_3$G);
14849
+ }, vue.toDisplayString(option2), 9, _hoisted_3$F);
14841
14850
  }), 128))
14842
14851
  ])
14843
14852
  ], 2);
14844
14853
  };
14845
14854
  }
14846
14855
  });
14847
- const _hoisted_1$U = { class: "card list-view grid thin" };
14848
- const _hoisted_2$M = { class: "list-header flex gap-3 align-items-top" };
14849
- const _hoisted_3$F = {
14856
+ const _hoisted_1$T = { class: "card list-view grid thin" };
14857
+ const _hoisted_2$L = { class: "list-header flex gap-3 align-items-top" };
14858
+ const _hoisted_3$E = {
14850
14859
  key: 0,
14851
14860
  class: "bagel-input search-wrap"
14852
14861
  };
14853
- const _hoisted_4$q = ["placeholder"];
14854
- const _hoisted_5$l = { class: "list-content grid auto-flow-rows align-items-start" };
14855
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14862
+ const _hoisted_4$p = ["placeholder"];
14863
+ const _hoisted_5$k = { class: "list-content grid auto-flow-rows align-items-start" };
14864
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14856
14865
  __name: "ListView",
14857
14866
  props: {
14858
14867
  enableAdd: { type: Boolean },
@@ -14868,17 +14877,17 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14868
14877
  debounce(() => emit2("debounce", searchTerm.value));
14869
14878
  };
14870
14879
  return (_ctx, _cache) => {
14871
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$U, [
14872
- vue.createElementVNode("div", _hoisted_2$M, [
14873
- _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$F, [
14880
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
14881
+ vue.createElementVNode("div", _hoisted_2$L, [
14882
+ _ctx.enableSearch ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$E, [
14874
14883
  vue.withDirectives(vue.createElementVNode("input", {
14875
14884
  placeholder: _ctx.searchPlaceholder,
14876
14885
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchTerm.value = $event),
14877
14886
  onInput: _cache[1] || (_cache[1] = ($event) => search())
14878
- }, null, 40, _hoisted_4$q), [
14887
+ }, null, 40, _hoisted_4$p), [
14879
14888
  [vue.vModelText, searchTerm.value]
14880
14889
  ]),
14881
- vue.createVNode(vue.unref(_sfc_main$S), {
14890
+ vue.createVNode(vue.unref(_sfc_main$R), {
14882
14891
  class: "txtgray",
14883
14892
  icon: "search"
14884
14893
  })
@@ -14890,16 +14899,16 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14890
14899
  onClick: _cache[2] || (_cache[2] = ($event) => emit2("add"))
14891
14900
  })) : vue.createCommentVNode("", true)
14892
14901
  ]),
14893
- vue.createElementVNode("div", _hoisted_5$l, [
14902
+ vue.createElementVNode("div", _hoisted_5$k, [
14894
14903
  vue.renderSlot(_ctx.$slots, "default")
14895
14904
  ])
14896
14905
  ]);
14897
14906
  };
14898
14907
  }
14899
14908
  });
14900
- const _hoisted_1$T = { class: "txt16 no-margin" };
14901
- const _hoisted_2$L = { class: "txt14 no-margin txtgray" };
14902
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14909
+ const _hoisted_1$S = { class: "txt16 no-margin" };
14910
+ const _hoisted_2$K = { class: "txt14 no-margin txtgray" };
14911
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14903
14912
  __name: "ListItem",
14904
14913
  props: {
14905
14914
  to: {}
@@ -14911,10 +14920,10 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14911
14920
  class: "list-item ellipsis"
14912
14921
  }, {
14913
14922
  default: vue.withCtx(() => [
14914
- vue.createElementVNode("p", _hoisted_1$T, [
14923
+ vue.createElementVNode("p", _hoisted_1$S, [
14915
14924
  vue.renderSlot(_ctx.$slots, "default")
14916
14925
  ]),
14917
- vue.createElementVNode("p", _hoisted_2$L, [
14926
+ vue.createElementVNode("p", _hoisted_2$K, [
14918
14927
  vue.renderSlot(_ctx.$slots, "subtitle")
14919
14928
  ])
14920
14929
  ]),
@@ -14923,11 +14932,11 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
14923
14932
  };
14924
14933
  }
14925
14934
  });
14926
- const _hoisted_1$S = { class: "h-100 grid list-view gap-3" };
14927
- const _hoisted_2$K = { class: "card tabs-top" };
14928
- const _hoisted_3$E = { class: "tabs grid auto-flow-columns fit-content" };
14929
- const _hoisted_4$p = ["onClick"];
14930
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14935
+ const _hoisted_1$R = { class: "h-100 grid list-view gap-3" };
14936
+ const _hoisted_2$J = { class: "card tabs-top" };
14937
+ const _hoisted_3$D = { class: "tabs grid auto-flow-columns fit-content" };
14938
+ const _hoisted_4$o = ["onClick"];
14939
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
14931
14940
  __name: "TabbedLayout",
14932
14941
  props: {
14933
14942
  title: {},
@@ -14955,10 +14964,10 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14955
14964
  activeTab.value = firstTab;
14956
14965
  });
14957
14966
  return (_ctx, _cache) => {
14958
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$S, [
14959
- vue.createElementVNode("div", _hoisted_2$K, [
14967
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
14968
+ vue.createElementVNode("div", _hoisted_2$J, [
14960
14969
  vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
14961
- vue.createElementVNode("div", _hoisted_3$E, [
14970
+ vue.createElementVNode("div", _hoisted_3$D, [
14962
14971
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
14963
14972
  return vue.openBlock(), vue.createElementBlock("div", {
14964
14973
  class: vue.normalizeClass([{
@@ -14966,7 +14975,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14966
14975
  }, "tab"]),
14967
14976
  key: tab,
14968
14977
  onClick: ($event) => changeTab(tab)
14969
- }, vue.toDisplayString(tab), 11, _hoisted_4$p);
14978
+ }, vue.toDisplayString(tab), 11, _hoisted_4$o);
14970
14979
  }), 128))
14971
14980
  ])
14972
14981
  ]),
@@ -14982,16 +14991,16 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
14982
14991
  };
14983
14992
  }
14984
14993
  });
14985
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-3941cced"]]);
14986
- const _hoisted_1$R = { class: "comments-wrap" };
14987
- const _hoisted_2$J = { class: "comment-list" };
14988
- const _hoisted_3$D = { class: "comment-top" };
14989
- const _hoisted_4$o = { class: "comment-owner" };
14990
- const _hoisted_5$k = { class: "comment-time" };
14994
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-3941cced"]]);
14995
+ const _hoisted_1$Q = { class: "comments-wrap" };
14996
+ const _hoisted_2$I = { class: "comment-list" };
14997
+ const _hoisted_3$C = { class: "comment-top" };
14998
+ const _hoisted_4$n = { class: "comment-owner" };
14999
+ const _hoisted_5$j = { class: "comment-time" };
14991
15000
  const _hoisted_6$g = { class: "comment-actions" };
14992
15001
  const _hoisted_7$b = ["innerHTML"];
14993
15002
  const _hoisted_8$6 = { class: "new-comment" };
14994
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15003
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
14995
15004
  __name: "Comments",
14996
15005
  props: {
14997
15006
  ref_table: {},
@@ -15034,8 +15043,8 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15034
15043
  void fetchData();
15035
15044
  };
15036
15045
  return (_ctx, _cache) => {
15037
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
15038
- vue.createElementVNode("div", _hoisted_2$J, [
15046
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
15047
+ vue.createElementVNode("div", _hoisted_2$I, [
15039
15048
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(comments), (comment) => {
15040
15049
  var _a, _b, _c;
15041
15050
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -15045,23 +15054,23 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15045
15054
  }, "comment"]),
15046
15055
  key: comment.id
15047
15056
  }, [
15048
- vue.createElementVNode("div", _hoisted_3$D, [
15049
- vue.createElementVNode("div", _hoisted_4$o, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15050
- vue.createElementVNode("div", _hoisted_5$k, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15057
+ vue.createElementVNode("div", _hoisted_3$C, [
15058
+ vue.createElementVNode("div", _hoisted_4$n, vue.toDisplayString(comment.sender.first_name) + " " + vue.toDisplayString(comment.sender.last_name), 1),
15059
+ vue.createElementVNode("div", _hoisted_5$j, vue.toDisplayString(comment.updated_at.split("T")[0]), 1),
15051
15060
  vue.createElementVNode("div", _hoisted_6$g, [
15052
- vue.createVNode(vue.unref(_sfc_main$S), {
15061
+ vue.createVNode(vue.unref(_sfc_main$R), {
15053
15062
  size: 1,
15054
15063
  class: "edit",
15055
15064
  icon: "edit",
15056
15065
  onClick: ($event) => vue.isRef(editComment) ? editComment.value = comment : editComment = comment
15057
15066
  }, null, 8, ["onClick"]),
15058
- vue.createVNode(vue.unref(_sfc_main$S), {
15067
+ vue.createVNode(vue.unref(_sfc_main$R), {
15059
15068
  size: 1.2,
15060
15069
  class: "delete",
15061
15070
  icon: "delete",
15062
15071
  onClick: ($event) => deleteComment(comment.id)
15063
15072
  }, null, 8, ["onClick"]),
15064
- vue.createVNode(vue.unref(_sfc_main$S), {
15073
+ vue.createVNode(vue.unref(_sfc_main$R), {
15065
15074
  size: 1.2,
15066
15075
  class: "save",
15067
15076
  icon: "save",
@@ -15069,7 +15078,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15069
15078
  })
15070
15079
  ])
15071
15080
  ]),
15072
- vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$T), {
15081
+ vue.unref(editComment) !== null && ((_c = vue.unref(editComment)) == null ? void 0 : _c.id) === comment.id ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$S), {
15073
15082
  key: 0,
15074
15083
  modelValue: vue.unref(editComment).body_html,
15075
15084
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(editComment).body_html = $event),
@@ -15083,7 +15092,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15083
15092
  }), 128))
15084
15093
  ]),
15085
15094
  vue.createElementVNode("div", _hoisted_8$6, [
15086
- vue.createVNode(vue.unref(_sfc_main$T), {
15095
+ vue.createVNode(vue.unref(_sfc_main$S), {
15087
15096
  class: "comment-input",
15088
15097
  modelValue: vue.unref(bodyHtml),
15089
15098
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(bodyHtml) ? bodyHtml.value = $event : bodyHtml = $event),
@@ -15103,10 +15112,10 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15103
15112
  };
15104
15113
  }
15105
15114
  });
15106
- const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-2eead7c8"]]);
15107
- const _hoisted_1$Q = { class: "page-top" };
15108
- const _hoisted_2$I = { class: "top-title" };
15109
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15115
+ const Comments = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-2eead7c8"]]);
15116
+ const _hoisted_1$P = { class: "page-top" };
15117
+ const _hoisted_2$H = { class: "top-title" };
15118
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15110
15119
  __name: "PageTitle",
15111
15120
  props: {
15112
15121
  value: {
@@ -15116,8 +15125,8 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15116
15125
  },
15117
15126
  setup(__props) {
15118
15127
  return (_ctx, _cache) => {
15119
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
15120
- vue.createElementVNode("h1", _hoisted_2$I, [
15128
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, [
15129
+ vue.createElementVNode("h1", _hoisted_2$H, [
15121
15130
  vue.renderSlot(_ctx.$slots, "default"),
15122
15131
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
15123
15132
  ])
@@ -15125,9 +15134,9 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
15125
15134
  };
15126
15135
  }
15127
15136
  });
15128
- const _hoisted_1$P = { class: "tool-bar" };
15129
- const _hoisted_2$H = { class: "modal-title" };
15130
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15137
+ const _hoisted_1$O = { class: "tool-bar" };
15138
+ const _hoisted_2$G = { class: "modal-title" };
15139
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15131
15140
  __name: "ModalForm",
15132
15141
  props: {
15133
15142
  side: { type: Boolean },
@@ -15200,7 +15209,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15200
15209
  onClick: _cache[0] || (_cache[0] = vue.withModifiers(() => {
15201
15210
  }, ["stop"]))
15202
15211
  }, [
15203
- vue.createElementVNode("header", _hoisted_1$P, [
15212
+ vue.createElementVNode("header", _hoisted_1$O, [
15204
15213
  vue.renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
15205
15214
  vue.createVNode(vue.unref(Btn), {
15206
15215
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -15208,9 +15217,9 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15208
15217
  icon: "close",
15209
15218
  onClick: closeModal
15210
15219
  }, null, 8, ["style"]),
15211
- vue.createElementVNode("h3", _hoisted_2$H, vue.toDisplayString(_ctx.title), 1)
15220
+ vue.createElementVNode("h3", _hoisted_2$G, vue.toDisplayString(_ctx.title), 1)
15212
15221
  ]),
15213
- vue.createVNode(vue.unref(_sfc_main$H), {
15222
+ vue.createVNode(vue.unref(_sfc_main$G), {
15214
15223
  onDelete: _ctx.onDelete ? runDelete : void 0,
15215
15224
  modelValue: _ctx.modelValue,
15216
15225
  "onUpdate:modelValue": handleEmit,
@@ -15222,31 +15231,31 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
15222
15231
  };
15223
15232
  }
15224
15233
  });
15225
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-1799b7d0"]]);
15226
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15234
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1799b7d0"]]);
15235
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15227
15236
  __name: "FormSchema",
15228
15237
  props: {
15229
15238
  modelValue: {},
15230
15239
  schema: {},
15231
- onDelete: {},
15232
- i18nT: { type: Function, default: (key) => key }
15240
+ onDelete: { type: Function }
15233
15241
  },
15234
15242
  emits: ["update:modelValue", "submit"],
15235
15243
  setup(__props, { emit: __emit }) {
15236
15244
  const { showModal } = useModal();
15245
+ const i18nT = useI18nT();
15237
15246
  const emits = __emit;
15238
15247
  const handleEmit = (val) => emits("update:modelValue", val);
15239
15248
  const runSubmit = (val) => emits("submit", val);
15240
15249
  const props2 = __props;
15241
15250
  const data2 = vue.reactive({
15242
15251
  ...props2.modelValue,
15243
- t: (val) => props2.i18nT(val)
15252
+ t: (val) => (i18nT == null ? void 0 : i18nT(val)) || val
15244
15253
  });
15245
15254
  const runDelete = () => {
15246
15255
  showModal(
15247
15256
  {
15248
15257
  class: "small-modal",
15249
- title: props2.i18nT("Are you sure?"),
15258
+ title: i18nT("Are you sure?"),
15250
15259
  actions: [
15251
15260
  {
15252
15261
  value: "Confirm",
@@ -15259,7 +15268,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15259
15268
  { value: "Cancel", color: "gray" }
15260
15269
  ]
15261
15270
  },
15262
- { default: props2.i18nT("form.deleteMessage") }
15271
+ { default: i18nT("form.deleteMessage") }
15263
15272
  );
15264
15273
  };
15265
15274
  return (_ctx, _cache) => {
@@ -15272,7 +15281,7 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15272
15281
  modelValue: _ctx.modelValue,
15273
15282
  "onUpdate:modelValue": handleEmit,
15274
15283
  onSubmit: runSubmit,
15275
- submitLabel: _ctx.i18nT("save")
15284
+ submitLabel: vue.unref(i18nT)("save")
15276
15285
  }, {
15277
15286
  default: vue.withCtx(() => [
15278
15287
  vue.createVNode(_component_FormKitSchema, {
@@ -15296,14 +15305,14 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
15296
15305
  };
15297
15306
  }
15298
15307
  });
15299
- const _hoisted_1$O = { class: "table-list-wrap h-100" };
15300
- const _hoisted_2$G = { class: "infinite-wrapper" };
15301
- const _hoisted_3$C = { class: "row first-row" };
15302
- const _hoisted_4$n = ["onClick"];
15303
- const _hoisted_5$j = { class: "flex" };
15308
+ const _hoisted_1$N = { class: "table-list-wrap h-100" };
15309
+ const _hoisted_2$F = { class: "infinite-wrapper" };
15310
+ const _hoisted_3$B = { class: "row first-row" };
15311
+ const _hoisted_4$m = ["onClick"];
15312
+ const _hoisted_5$i = { class: "flex" };
15304
15313
  const _hoisted_6$f = ["onClick"];
15305
15314
  const _hoisted_7$a = { key: 1 };
15306
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15315
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
15307
15316
  __name: "TableSchema",
15308
15317
  props: {
15309
15318
  data: {},
@@ -15349,27 +15358,27 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15349
15358
  }
15350
15359
  );
15351
15360
  return (_ctx, _cache) => {
15352
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$O, [
15353
- vue.createElementVNode("table", _hoisted_2$G, [
15354
- vue.createElementVNode("thead", _hoisted_3$C, [
15361
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
15362
+ vue.createElementVNode("table", _hoisted_2$F, [
15363
+ vue.createElementVNode("thead", _hoisted_3$B, [
15355
15364
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(columns.value, (field) => {
15356
15365
  return vue.openBlock(), vue.createElementBlock("th", {
15357
15366
  class: "col",
15358
15367
  key: field.id,
15359
15368
  onClick: ($event) => sort2(field.id)
15360
15369
  }, [
15361
- vue.createElementVNode("div", _hoisted_5$j, [
15370
+ vue.createElementVNode("div", _hoisted_5$i, [
15362
15371
  vue.createTextVNode(vue.toDisplayString((field == null ? void 0 : field.label) || (field == null ? void 0 : field.id)) + " ", 1),
15363
15372
  vue.createElementVNode("div", {
15364
15373
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === field.id }])
15365
15374
  }, [
15366
- vue.createVNode(vue.unref(_sfc_main$S), {
15375
+ vue.createVNode(vue.unref(_sfc_main$R), {
15367
15376
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
15368
15377
  icon: "keyboard_arrow_up"
15369
15378
  }, null, 8, ["class"])
15370
15379
  ], 2)
15371
15380
  ])
15372
- ], 8, _hoisted_4$n);
15381
+ ], 8, _hoisted_4$m);
15373
15382
  }), 128))
15374
15383
  ]),
15375
15384
  vue.createElementVNode("tbody", {
@@ -15415,16 +15424,16 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
15415
15424
  };
15416
15425
  }
15417
15426
  });
15418
- const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-fb5b163a"]]);
15419
- const _sfc_main$F = {};
15420
- const _hoisted_1$N = { class: "flex space-between" };
15427
+ const TableSchema = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-fb5b163a"]]);
15428
+ const _sfc_main$E = {};
15429
+ const _hoisted_1$M = { class: "flex space-between" };
15421
15430
  function _sfc_render$1(_ctx, _cache) {
15422
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
15431
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15423
15432
  vue.renderSlot(_ctx.$slots, "default")
15424
15433
  ]);
15425
15434
  }
15426
- const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$1]]);
15427
- const _sfc_main$E = {};
15435
+ const TopBar = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render$1]]);
15436
+ const _sfc_main$D = {};
15428
15437
  function _sfc_render(_ctx, _cache) {
15429
15438
  const _component_router_view = vue.resolveComponent("router-view");
15430
15439
  return vue.openBlock(), vue.createBlock(_component_router_view, null, {
@@ -15446,9 +15455,9 @@ function _sfc_render(_ctx, _cache) {
15446
15455
  _: 1
15447
15456
  });
15448
15457
  }
15449
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["render", _sfc_render]]);
15450
- const _hoisted_1$M = { class: "card h-100 thin" };
15451
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15458
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render]]);
15459
+ const _hoisted_1$L = { class: "card h-100 thin" };
15460
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15452
15461
  __name: "ContactSubmissions",
15453
15462
  props: {
15454
15463
  person_id: {
@@ -15478,7 +15487,7 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15478
15487
  void getData();
15479
15488
  });
15480
15489
  return (_ctx, _cache) => {
15481
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
15490
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15482
15491
  vue.createVNode(vue.unref(TableSchema), {
15483
15492
  schema: schema2,
15484
15493
  data: vue.unref(data2)
@@ -15487,14 +15496,14 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
15487
15496
  };
15488
15497
  }
15489
15498
  });
15490
- const _hoisted_1$L = {
15499
+ const _hoisted_1$K = {
15491
15500
  key: 0,
15492
15501
  class: "person-card-edit flex gap-2"
15493
15502
  };
15494
- const _hoisted_2$F = { class: "person-card-icon-wrap" };
15495
- const _hoisted_3$B = { class: "person-card-icon" };
15496
- const _hoisted_4$m = { class: "person-card-name txt20" };
15497
- const _hoisted_5$i = { class: "person-card-details-wrap" };
15503
+ const _hoisted_2$E = { class: "person-card-icon-wrap" };
15504
+ const _hoisted_3$A = { class: "person-card-icon" };
15505
+ const _hoisted_4$l = { class: "person-card-name txt20" };
15506
+ const _hoisted_5$h = { class: "person-card-details-wrap" };
15498
15507
  const _hoisted_6$e = {
15499
15508
  key: 0,
15500
15509
  class: "person-card-details"
@@ -15509,7 +15518,7 @@ const _hoisted_8$5 = {
15509
15518
  };
15510
15519
  const _hoisted_9$3 = { key: 0 };
15511
15520
  const _hoisted_10$3 = { key: 1 };
15512
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15521
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15513
15522
  __name: "PersonPreview",
15514
15523
  props: {
15515
15524
  person: {},
@@ -15539,7 +15548,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15539
15548
  (...args) => _ctx.onClick && _ctx.onClick(...args)),
15540
15549
  class: "person-card"
15541
15550
  }, [
15542
- !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$L, [
15551
+ !_ctx.onClick ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
15543
15552
  !_ctx.$route.path.match("/search") ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
15544
15553
  key: 0,
15545
15554
  round: "",
@@ -15556,13 +15565,13 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15556
15565
  icon: "edit"
15557
15566
  })
15558
15567
  ])) : vue.createCommentVNode("", true),
15559
- vue.createElementVNode("div", _hoisted_2$F, [
15560
- vue.createElementVNode("p", _hoisted_3$B, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15561
- vue.createElementVNode("p", _hoisted_4$m, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15568
+ vue.createElementVNode("div", _hoisted_2$E, [
15569
+ vue.createElementVNode("p", _hoisted_3$A, vue.toDisplayString(vue.unref(initials)(_ctx.person.first_name, _ctx.person.last_name)), 1),
15570
+ vue.createElementVNode("p", _hoisted_4$l, vue.toDisplayString(_ctx.person.first_name) + " " + vue.toDisplayString(_ctx.person.last_name), 1)
15562
15571
  ]),
15563
- vue.createElementVNode("div", _hoisted_5$i, [
15572
+ vue.createElementVNode("div", _hoisted_5$h, [
15564
15573
  ((_a = _ctx.person.phone) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$e, [
15565
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "phone" }),
15574
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "phone" }),
15566
15575
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.phone, (phone) => {
15567
15576
  return vue.openBlock(), vue.createElementBlock("p", {
15568
15577
  key: phone.id
@@ -15570,7 +15579,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15570
15579
  }), 128))
15571
15580
  ])) : vue.createCommentVNode("", true),
15572
15581
  ((_b = _ctx.person.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$9, [
15573
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "email" }),
15582
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "email" }),
15574
15583
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.person.email, (email) => {
15575
15584
  return vue.openBlock(), vue.createElementBlock("p", {
15576
15585
  key: email.id
@@ -15578,7 +15587,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15578
15587
  }), 128))
15579
15588
  ])) : vue.createCommentVNode("", true),
15580
15589
  _ctx.person.date_of_birth || _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8$5, [
15581
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "badge" }),
15590
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "badge" }),
15582
15591
  _ctx.person.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9$3, vue.toDisplayString(_ctx.person.date_of_birth), 1)) : vue.createCommentVNode("", true),
15583
15592
  _ctx.person.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10$3, vue.toDisplayString(_ctx.person.gender), 1)) : vue.createCommentVNode("", true)
15584
15593
  ])) : vue.createCommentVNode("", true)
@@ -15587,38 +15596,38 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
15587
15596
  };
15588
15597
  }
15589
15598
  });
15590
- const _hoisted_1$K = {
15599
+ const _hoisted_1$J = {
15591
15600
  key: 0,
15592
15601
  class: "data"
15593
15602
  };
15594
- const _hoisted_2$E = {
15603
+ const _hoisted_2$D = {
15595
15604
  key: 0,
15596
15605
  class: "mb-3 mt-0"
15597
15606
  };
15598
- const _hoisted_3$A = { class: "key" };
15599
- const _hoisted_4$l = { key: 1 };
15600
- const _hoisted_5$h = { class: "key" };
15607
+ const _hoisted_3$z = { class: "key" };
15608
+ const _hoisted_4$k = { key: 1 };
15609
+ const _hoisted_5$g = { class: "key" };
15601
15610
  const _hoisted_6$d = { class: "vlue" };
15602
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15611
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15603
15612
  __name: "DataPreview",
15604
15613
  props: {
15605
15614
  data: {},
15606
15615
  schema: {},
15607
- title: {},
15608
- i18nT: { type: Function, default: (str) => str }
15616
+ title: {}
15609
15617
  },
15610
15618
  setup(__props) {
15619
+ const i18nT = useI18nT();
15611
15620
  const keysToIgnore = ["id", "person_id", "person", "created_at", "updated_at"];
15612
15621
  return (_ctx, _cache) => {
15613
15622
  var _a;
15614
- return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$K, [
15615
- _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$E, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15623
+ return _ctx.data ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
15624
+ _ctx.title ? (vue.openBlock(), vue.createElementBlock("h3", _hoisted_2$D, vue.toDisplayString(_ctx.title), 1)) : vue.createCommentVNode("", true),
15616
15625
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.schema || [], (field) => {
15617
15626
  return vue.openBlock(), vue.createElementBlock("div", {
15618
15627
  key: field.id,
15619
15628
  class: "data-row"
15620
15629
  }, [
15621
- vue.createElementVNode("div", _hoisted_3$A, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15630
+ vue.createElementVNode("div", _hoisted_3$z, vue.toDisplayString((field == null ? void 0 : field.label) || vue.unref(keyToLabel)(field.id)), 1),
15622
15631
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(field.$el || "div"), { class: "vlue" }, {
15623
15632
  default: vue.withCtx(() => [
15624
15633
  vue.createTextVNode(vue.toDisplayString(_ctx.data[field.id] || field.defaultValue), 1)
@@ -15627,7 +15636,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15627
15636
  }, 1024))
15628
15637
  ]);
15629
15638
  }), 128)),
15630
- !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$l, [
15639
+ !((_a = _ctx.schema) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$k, [
15631
15640
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(Object.entries(_ctx.data).filter(
15632
15641
  ([key]) => !keysToIgnore.includes(key)
15633
15642
  ), ([key, value]) => {
@@ -15635,7 +15644,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15635
15644
  class: "data-row",
15636
15645
  key
15637
15646
  }, [
15638
- vue.createElementVNode("div", _hoisted_5$h, vue.toDisplayString(_ctx.i18nT(vue.unref(keyToLabel)(key))), 1),
15647
+ vue.createElementVNode("div", _hoisted_5$g, vue.toDisplayString(vue.unref(i18nT)(vue.unref(keyToLabel)(key))), 1),
15639
15648
  vue.createElementVNode("div", _hoisted_6$d, vue.toDisplayString(value), 1)
15640
15649
  ]);
15641
15650
  }), 128))
@@ -15645,168 +15654,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
15645
15654
  };
15646
15655
  }
15647
15656
  });
15648
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-0350cc0c"]]);
15649
- const _hoisted_1$J = { class: "files-wrapper flex" };
15650
- const _hoisted_2$D = { class: "img-label" };
15651
- const _hoisted_3$z = { class: "uploading-wrap" };
15652
- const _hoisted_4$k = { class: "load-file-bar" };
15653
- const _hoisted_5$g = ["multiple"];
15654
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
15655
- __name: "FileUploader",
15656
- props: {
15657
- id: { default: "" },
15658
- private: { default: 0 },
15659
- singleFile: { type: Boolean },
15660
- beforeUpload: { type: Function, default: async () => {
15661
- } },
15662
- dragDropLabel: { default: "Drag and drop your files here" },
15663
- browseLabel: { default: "Browse" }
15664
- },
15665
- emits: ["complete", "done"],
15666
- setup(__props, { emit: __emit }) {
15667
- const bagel = useBagel();
15668
- const draggingOver = vue.ref(false);
15669
- const dropCircle = vue.ref();
15670
- const dropZoneEl = vue.ref();
15671
- const fileInputEl = vue.ref();
15672
- const circleTop = vue.ref("0");
15673
- const circleLeft = vue.ref("0");
15674
- const files = vue.ref([]);
15675
- const props2 = __props;
15676
- function openFileDialog() {
15677
- var _a;
15678
- (_a = fileInputEl.value) == null ? void 0 : _a.click();
15679
- }
15680
- function onDragOver(e) {
15681
- var _a, _b;
15682
- if (!draggingOver.value)
15683
- return;
15684
- const parentEl2 = ((_b = (_a = dropZoneEl.value) == null ? void 0 : _a.getBoundingClientRect) == null ? void 0 : _b.call(_a)) || {
15685
- left: 0,
15686
- top: 0,
15687
- width: 0,
15688
- height: 0
15689
- };
15690
- const x2 = e.clientX - parentEl2.left;
15691
- const y2 = e.clientY - parentEl2.top;
15692
- circleLeft.value = `${x2}px`;
15693
- circleTop.value = `${y2}px`;
15694
- if (x2 < 0 || x2 > parentEl2.width || y2 < 0 || y2 > parentEl2.height) {
15695
- draggingOver.value = false;
15696
- }
15697
- }
15698
- function handleFileInput(e) {
15699
- const filesToAdd = e.target.files;
15700
- addFiles(filesToAdd);
15701
- }
15702
- function preventDefaults(e) {
15703
- e.preventDefault();
15704
- }
15705
- function hideCircle(e) {
15706
- console.log({ e });
15707
- draggingOver.value = false;
15708
- }
15709
- const events = ["dragenter", "dragover", "dragleave", "drop"];
15710
- vue.onMounted(() => {
15711
- events.forEach((event) => {
15712
- document.addEventListener(event, preventDefaults);
15713
- });
15714
- document.addEventListener("dragover", onDragOver);
15715
- });
15716
- vue.onUnmounted(() => {
15717
- document.removeEventListener("dragover", onDragOver);
15718
- events.forEach((event) => {
15719
- document.removeEventListener(event, preventDefaults);
15720
- });
15721
- });
15722
- function addFiles(addedFiles) {
15723
- if (props2.singleFile && files.value.length > 1)
15724
- return;
15725
- for (let i2 = 0; i2 < addedFiles.length; i2++) {
15726
- files.value.push({
15727
- file: addedFiles[i2],
15728
- uid: Math.random().toString(36).substring(2, 9),
15729
- progress: "",
15730
- uploading: false
15731
- });
15732
- }
15733
- uploadFiles();
15734
- }
15735
- const emit2 = __emit;
15736
- function uploadFiles() {
15737
- files.value.forEach((item) => {
15738
- item.uploading = true;
15739
- });
15740
- }
15741
- async function onDrop(e) {
15742
- var _a;
15743
- hideCircle(e);
15744
- preventDefaults(e);
15745
- const filesToAdd = (_a = e.dataTransfer) == null ? void 0 : _a.files;
15746
- if (filesToAdd) {
15747
- addFiles(filesToAdd);
15748
- const file = await bagel.uploadFile(filesToAdd[0]);
15749
- emit2("complete", file);
15750
- }
15751
- }
15752
- return (_ctx, _cache) => {
15753
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
15754
- vue.createElementVNode("div", {
15755
- ref_key: "dropZoneEl",
15756
- ref: dropZoneEl,
15757
- class: "drop-zone flex-grow",
15758
- onClick: openFileDialog,
15759
- onDragenter: _cache[0] || (_cache[0] = ($event) => draggingOver.value = true),
15760
- onDrop: vue.withModifiers(onDrop, ["prevent", "stop"])
15761
- }, [
15762
- vue.createVNode(vue.Transition, { name: "pop" }, {
15763
- default: vue.withCtx(() => [
15764
- draggingOver.value ? (vue.openBlock(), vue.createElementBlock("div", {
15765
- key: 0,
15766
- ref_key: "dropCircle",
15767
- ref: dropCircle,
15768
- class: "drop-circle"
15769
- }, null, 512)) : vue.createCommentVNode("", true)
15770
- ]),
15771
- _: 1
15772
- }),
15773
- vue.createElementVNode("div", _hoisted_2$D, [
15774
- vue.createElementVNode("p", null, [
15775
- vue.createTextVNode(vue.toDisplayString(_ctx.dragDropLabel) + " ", 1),
15776
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.browseLabel), 1)
15777
- ])
15778
- ]),
15779
- vue.createElementVNode("div", _hoisted_3$z, [
15780
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(files.value, (item, index2) => {
15781
- return vue.openBlock(), vue.createElementBlock("div", {
15782
- class: vue.normalizeClass({ uploading: item.uploading }),
15783
- key: index2
15784
- }, [
15785
- vue.createElementVNode("div", _hoisted_4$k, [
15786
- vue.createElementVNode("p", null, vue.toDisplayString(item.file.name), 1),
15787
- vue.createElementVNode("div", {
15788
- class: "pie",
15789
- style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
15790
- }, [
15791
- vue.createElementVNode("span", null, vue.toDisplayString(`${item.progress}`), 1)
15792
- ], 4)
15793
- ])
15794
- ], 2);
15795
- }), 128))
15796
- ])
15797
- ], 544),
15798
- vue.createElementVNode("input", {
15799
- class: "file-input",
15800
- type: "file",
15801
- onChange: handleFileInput,
15802
- ref_key: "fileInputEl",
15803
- ref: fileInputEl,
15804
- multiple: !_ctx.singleFile
15805
- }, null, 40, _hoisted_5$g)
15806
- ]);
15807
- };
15808
- }
15809
- });
15657
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-86e783b9"]]);
15810
15658
  const _withScopeId$2 = (n) => (vue.pushScopeId("data-v-fe5af582"), n = n(), vue.popScopeId(), n);
15811
15659
  const _hoisted_1$I = { class: "bar-chart" };
15812
15660
  const _hoisted_2$C = {
@@ -17214,7 +17062,7 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
17214
17062
  [vue.vModelCheckbox, vue.unref(val)]
17215
17063
  ]),
17216
17064
  vue.createElementVNode("span", null, [
17217
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "check" })
17065
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "check" })
17218
17066
  ])
17219
17067
  ]);
17220
17068
  };
@@ -17895,7 +17743,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17895
17743
  props: {
17896
17744
  context: {},
17897
17745
  dragDropLabel: { default: "Drag and drop your files here" },
17898
- browseLabel: { default: "or browse" }
17746
+ browseLabel: { default: "or browse" },
17747
+ multiple: { type: Boolean, default: false }
17899
17748
  },
17900
17749
  setup(__props) {
17901
17750
  const bagel = useBagel();
@@ -17905,9 +17754,20 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17905
17754
  const fileInputEl = vue.ref();
17906
17755
  const files = vue.ref([]);
17907
17756
  const props2 = __props;
17757
+ const computedDragDropLabel = vue.computed(() => {
17758
+ var _a, _b;
17759
+ return ((_b = (_a = props2 == null ? void 0 : props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.dragDropLabel) || (props2 == null ? void 0 : props2.dragDropLabel);
17760
+ });
17761
+ const computedDrowseLabel = vue.computed(() => {
17762
+ var _a, _b;
17763
+ return ((_b = (_a = props2 == null ? void 0 : props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.browseLabel) || (props2 == null ? void 0 : props2.browseLabel);
17764
+ });
17765
+ const computedMultiple = vue.computed(() => {
17766
+ var _a, _b;
17767
+ return !!(((_b = (_a = props2 == null ? void 0 : props2.context) == null ? void 0 : _a.attrs) == null ? void 0 : _b.multiple) || (props2 == null ? void 0 : props2.multiple));
17768
+ });
17908
17769
  const allowUpload = vue.computed(() => {
17909
- var _a;
17910
- const tooManyFiles = !((_a = props2.context) == null ? void 0 : _a.attrs.multiple) && files.value.length > 0;
17770
+ const tooManyFiles = !computedMultiple.value && files.value.length > 0;
17911
17771
  return !tooManyFiles;
17912
17772
  });
17913
17773
  const openFileDialog = () => {
@@ -17927,11 +17787,10 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17927
17787
  (_h = (_g = (_f = dropCircle.value) == null ? void 0 : _f.style) == null ? void 0 : _g.setProperty) == null ? void 0 : _h.call(_g, "top", `${top2}px`);
17928
17788
  }
17929
17789
  function emitValue() {
17930
- var _a, _b;
17931
- if (!((_a = props2.context) == null ? void 0 : _a.attrs.multiple))
17932
- (_b = props2.context) == null ? void 0 : _b.node.input(files.value[0].serverFile);
17933
- else
17934
- alert("not implemented");
17790
+ var _a;
17791
+ if (!computedMultiple.value)
17792
+ return (_a = props2.context) == null ? void 0 : _a.node.input(files.value[0].serverFile);
17793
+ return alert("not implemented");
17935
17794
  }
17936
17795
  const isImg = (file) => {
17937
17796
  var _a, _b, _c, _d;
@@ -17984,16 +17843,16 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
17984
17843
  uploadFiles();
17985
17844
  }
17986
17845
  vue.onMounted(() => {
17987
- var _a, _b, _c, _d, _e, _f, _g, _h;
17846
+ var _a, _b, _c, _d, _e, _f, _g;
17988
17847
  (_a = dropZoneEl.value) == null ? void 0 : _a.addEventListener("dragover", animateCircle);
17989
- if (!((_b = props2.context) == null ? void 0 : _b.attrs.multiple) && ((_c = props2.context) == null ? void 0 : _c.value)) {
17848
+ if (!computedMultiple.value && ((_b = props2.context) == null ? void 0 : _b.value)) {
17990
17849
  files.value.push({
17991
- serverFile: (_d = props2.context) == null ? void 0 : _d.value,
17850
+ serverFile: (_c = props2.context) == null ? void 0 : _c.value,
17992
17851
  uploaded: true,
17993
17852
  uploading: false,
17994
17853
  progress: 100,
17995
- dataUrl: (_f = (_e = props2.context) == null ? void 0 : _e.value) == null ? void 0 : _f.url,
17996
- name: (_h = (_g = props2.context) == null ? void 0 : _g.value) == null ? void 0 : _h.name
17854
+ dataUrl: (_e = (_d = props2.context) == null ? void 0 : _d.value) == null ? void 0 : _e.url,
17855
+ name: (_g = (_f = props2.context) == null ? void 0 : _f.value) == null ? void 0 : _g.name
17997
17856
  });
17998
17857
  }
17999
17858
  });
@@ -18014,7 +17873,6 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18014
17873
  void addFiles(filesToAdd);
18015
17874
  }
18016
17875
  return (_ctx, _cache) => {
18017
- var _a;
18018
17876
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$B, [
18019
17877
  vue.createElementVNode("div", {
18020
17878
  ref_key: "dropZoneEl",
@@ -18037,8 +17895,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18037
17895
  }),
18038
17896
  allowUpload.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$x, [
18039
17897
  vue.createElementVNode("p", null, [
18040
- vue.createTextVNode(vue.toDisplayString(_ctx.dragDropLabel) + " ", 1),
18041
- vue.createElementVNode("span", null, vue.toDisplayString(_ctx.browseLabel), 1)
17898
+ vue.createTextVNode(vue.toDisplayString(computedDragDropLabel.value) + " ", 1),
17899
+ vue.createElementVNode("span", null, vue.toDisplayString(computedDrowseLabel.value), 1)
18042
17900
  ])
18043
17901
  ])) : vue.createCommentVNode("", true),
18044
17902
  vue.createElementVNode("div", _hoisted_3$t, [
@@ -18062,7 +17920,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18062
17920
  style: vue.normalizeStyle([`--p:${item.progress}`, { "--b": "2px" }])
18063
17921
  }, [
18064
17922
  item.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_7$4, vue.toDisplayString(`${item.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
18065
- vue.createVNode(vue.unref(_sfc_main$S), {
17923
+ vue.createVNode(vue.unref(_sfc_main$R), {
18066
17924
  class: "success",
18067
17925
  icon: "check"
18068
17926
  })
@@ -18086,7 +17944,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
18086
17944
  onChange: handleFileInput,
18087
17945
  ref_key: "fileInputEl",
18088
17946
  ref: fileInputEl,
18089
- multiple: ((_a = _ctx.context) == null ? void 0 : _a.attrs.multiple) || false
17947
+ multiple: computedMultiple.value
18090
17948
  }, null, 40, _hoisted_8$1)
18091
17949
  ]);
18092
17950
  };
@@ -18169,7 +18027,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18169
18027
  ]),
18170
18028
  vue.createElementVNode("div", _hoisted_5$a, [
18171
18029
  ((_a = person.value.phone) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6$7, [
18172
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "phone" }),
18030
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "phone" }),
18173
18031
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.phone, (phone) => {
18174
18032
  return vue.openBlock(), vue.createElementBlock("p", {
18175
18033
  key: phone.id
@@ -18177,7 +18035,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18177
18035
  }), 128))
18178
18036
  ])) : vue.createCommentVNode("", true),
18179
18037
  ((_b = person.value.email) == null ? void 0 : _b.length) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7$3, [
18180
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "email" }),
18038
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "email" }),
18181
18039
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(person.value.email, (email) => {
18182
18040
  return vue.openBlock(), vue.createElementBlock("p", {
18183
18041
  key: email.id
@@ -18185,7 +18043,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
18185
18043
  }), 128))
18186
18044
  ])) : vue.createCommentVNode("", true),
18187
18045
  person.value.date_of_birth || person.value.gender ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
18188
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "badge" }),
18046
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "badge" }),
18189
18047
  person.value.date_of_birth ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_9, vue.toDisplayString(person.value.date_of_birth), 1)) : vue.createCommentVNode("", true),
18190
18048
  person.value.gender ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_10, vue.toDisplayString(person.value.gender), 1)) : vue.createCommentVNode("", true)
18191
18049
  ])) : vue.createCommentVNode("", true)
@@ -18286,9 +18144,7 @@ const AddressInput = createInput(AddressArray);
18286
18144
  const BankDetailsInput = createInput(BankDetailsArray);
18287
18145
  const MiscFieldsInput = createInput(MiscFieldsBtns);
18288
18146
  const ToggleSwitchInput = createInput(Toggle);
18289
- const FileUploadInput = createInput(_sfc_main$s, {
18290
- props: ["dragDropLabel", "browseLabel"]
18291
- });
18147
+ const FileUploadInput = createInput(_sfc_main$s);
18292
18148
  const TextVariablesInput = createInput(_sfc_main$q);
18293
18149
  const PersonPreviewInput = createInput(_sfc_main$r);
18294
18150
  const _hoisted_1$z = {
@@ -18329,7 +18185,7 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
18329
18185
  }, {
18330
18186
  default: vue.withCtx(() => [
18331
18187
  vue.createTextVNode(vue.toDisplayString(content.value) + " ", 1),
18332
- vue.createVNode(vue.unref(_sfc_main$S), { icon: "arrow_forward" })
18188
+ vue.createVNode(vue.unref(_sfc_main$R), { icon: "arrow_forward" })
18333
18189
  ]),
18334
18190
  _: 1
18335
18191
  })) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$z, vue.toDisplayString(content.value), 1))
@@ -18392,7 +18248,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18392
18248
  vue.createElementVNode("label", {
18393
18249
  for: vue.unref(formatString)(_ctx.name, "pascal")
18394
18250
  }, [
18395
- vue.createVNode(_sfc_main$U, {
18251
+ vue.createVNode(_sfc_main$T, {
18396
18252
  input: vue.unref(formatString)(_ctx.name, "titleCase")
18397
18253
  }, null, 8, ["input"])
18398
18254
  ], 8, _hoisted_2$v),
@@ -18433,7 +18289,7 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
18433
18289
  onInput: handleInput
18434
18290
  }, null, 40, _hoisted_6$6)) : vue.createCommentVNode("", true),
18435
18291
  vue.createElementVNode("div", null, [
18436
- vue.createVNode(_sfc_main$U, { input: _ctx.errorMessage }, null, 8, ["input"])
18292
+ vue.createVNode(_sfc_main$T, { input: _ctx.errorMessage }, null, 8, ["input"])
18437
18293
  ])
18438
18294
  ]);
18439
18295
  };
@@ -19162,7 +19018,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
19162
19018
  [vue.vModelDynamic, inputVal.value]
19163
19019
  ])
19164
19020
  ], 8, _hoisted_2$k),
19165
- vue.createVNode(vue.unref(_sfc_main$S), {
19021
+ vue.createVNode(vue.unref(_sfc_main$R), {
19166
19022
  onClick: showPassword,
19167
19023
  icon: vue.unref(seePassword) ? "visibility" : "visibility_off"
19168
19024
  }, null, 8, ["icon"])
@@ -19327,7 +19183,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
19327
19183
  for: "label",
19328
19184
  class: vue.normalizeClass({ active: showList.value })
19329
19185
  }, [
19330
- vue.createVNode(vue.unref(_sfc_main$U), { input: _ctx.label }, null, 8, ["input"])
19186
+ vue.createVNode(vue.unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
19331
19187
  ], 2)) : vue.createCommentVNode("", true),
19332
19188
  vue.createElementVNode("div", {
19333
19189
  class: vue.normalizeClass(["custom-select", { "open-select": showList.value && _ctx.editMode }]),
@@ -19339,7 +19195,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
19339
19195
  class: vue.normalizeClass(["input", { active: showList.value }]),
19340
19196
  name: "select-input"
19341
19197
  }, [
19342
- vue.createVNode(vue.unref(_sfc_main$U), { input: displayValue.value }, null, 8, ["input"])
19198
+ vue.createVNode(vue.unref(_sfc_main$T), { input: displayValue.value }, null, 8, ["input"])
19343
19199
  ], 2),
19344
19200
  (vue.openBlock(), vue.createBlock(vue.Teleport, { to: "#app" }, [
19345
19201
  vue.createElementVNode("div", {
@@ -19352,7 +19208,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
19352
19208
  key: option2.value,
19353
19209
  onClick: ($event) => handleSelect(option2)
19354
19210
  }, [
19355
- vue.createVNode(vue.unref(_sfc_main$U), {
19211
+ vue.createVNode(vue.unref(_sfc_main$T), {
19356
19212
  input: option2.label
19357
19213
  }, null, 8, ["input"])
19358
19214
  ], 8, _hoisted_2$i);
@@ -22216,7 +22072,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
22216
22072
  title: _ctx.description
22217
22073
  }, [
22218
22074
  _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$d, [
22219
- vue.createVNode(vue.unref(_sfc_main$U), { input: _ctx.label }, null, 8, ["input"])
22075
+ vue.createVNode(vue.unref(_sfc_main$T), { input: _ctx.label }, null, 8, ["input"])
22220
22076
  ])) : vue.createCommentVNode("", true),
22221
22077
  _ctx.showCharacterLimit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$b, vue.toDisplayString((_a = _ctx.modelValue) == null ? void 0 : _a.length) + " " + vue.toDisplayString(((_b = _ctx.nativeInputAttrs) == null ? void 0 : _b.maxlength) ? `/${_ctx.nativeInputAttrs.maxlength}` : ""), 1)) : vue.createCommentVNode("", true),
22222
22078
  vue.createElementVNode("textarea", vue.mergeProps({
@@ -28900,7 +28756,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28900
28756
  return (_ctx, _cache) => {
28901
28757
  var _a, _b, _c, _d, _e, _f;
28902
28758
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
28903
- vue.createVNode(vue.unref(_sfc_main$J), null, {
28759
+ vue.createVNode(vue.unref(_sfc_main$I), null, {
28904
28760
  default: vue.withCtx(() => [
28905
28761
  vue.createTextVNode("Whatsapp Template")
28906
28762
  ]),
@@ -28909,7 +28765,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
28909
28765
  vue.createElementVNode("div", _hoisted_2, [
28910
28766
  vue.createElementVNode("div", _hoisted_3, [
28911
28767
  vue.createElementVNode("div", _hoisted_4, [
28912
- vue.createVNode(vue.unref(_sfc_main$H), {
28768
+ vue.createVNode(vue.unref(_sfc_main$G), {
28913
28769
  schema: _ctx.whatsappTemplateSchema(),
28914
28770
  modelValue: vue.unref(localWhatsappData),
28915
28771
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(localWhatsappData) ? localWhatsappData.value = $event : localWhatsappData = $event),
@@ -28943,42 +28799,42 @@ exports.Checkbox = Checkbox;
28943
28799
  exports.ColorPicker = _sfc_main$4;
28944
28800
  exports.Comments = Comments;
28945
28801
  exports.ContactArrayInput = ContactArrayInput;
28946
- exports.ContactSubmissions = _sfc_main$D;
28802
+ exports.ContactSubmissions = _sfc_main$C;
28947
28803
  exports.CurrencyInput = CurrencyInput;
28948
28804
  exports.DataPreview = DataPreview;
28949
28805
  exports.DateInput = DateInput;
28950
28806
  exports.DatetimeInput = _sfc_main$j;
28951
- exports.DropDown = _sfc_main$O;
28807
+ exports.DropDown = _sfc_main$N;
28952
28808
  exports.DurationInput = _sfc_main$7;
28953
28809
  exports.DynamicLinkField = _sfc_main$3;
28954
28810
  exports.EmailInput = EmailInput;
28955
28811
  exports.FileUploadInput = FileUploadInput;
28956
- exports.FileUploader = _sfc_main$A;
28812
+ exports.FileUploader = _sfc_main$s;
28957
28813
  exports.FloatInput = _sfc_main$h;
28958
- exports.FormSchema = _sfc_main$H;
28814
+ exports.FormSchema = _sfc_main$G;
28959
28815
  exports.IntInput = _sfc_main$g;
28960
28816
  exports.ItemRef = _sfc_main$p;
28961
28817
  exports.JSONInput = JSONInput;
28962
- exports.LangText = _sfc_main$U;
28818
+ exports.LangText = _sfc_main$T;
28963
28819
  exports.Lineart = _sfc_main$1;
28964
28820
  exports.LinkField = LinkField;
28965
- exports.ListItem = _sfc_main$M;
28966
- exports.ListView = _sfc_main$N;
28967
- exports.MaterialIcon = _sfc_main$S;
28821
+ exports.ListItem = _sfc_main$L;
28822
+ exports.ListView = _sfc_main$M;
28823
+ exports.MaterialIcon = _sfc_main$R;
28968
28824
  exports.MiscFieldsInput = MiscFieldsInput;
28969
- exports.Modal = _sfc_main$P;
28825
+ exports.Modal = _sfc_main$O;
28970
28826
  exports.ModalForm = ModalForm;
28971
28827
  exports.ModalPlugin = ModalPlugin;
28972
28828
  exports.MsgTemplate = MsgTemplate;
28973
- exports.NavBar = _sfc_main$R;
28974
- exports.PageTitle = _sfc_main$J;
28829
+ exports.NavBar = _sfc_main$Q;
28830
+ exports.PageTitle = _sfc_main$I;
28975
28831
  exports.Password = Password;
28976
28832
  exports.PasswordInput = PasswordInput;
28977
- exports.PersonPreview = _sfc_main$C;
28833
+ exports.PersonPreview = _sfc_main$B;
28978
28834
  exports.PersonPreviewInput = PersonPreviewInput;
28979
28835
  exports.PlainInputField = _sfc_main$n;
28980
28836
  exports.PlainText = PlainText;
28981
- exports.RTXEditor = _sfc_main$T;
28837
+ exports.RTXEditor = _sfc_main$S;
28982
28838
  exports.ReadOnlyInput = ReadOnlyInput;
28983
28839
  exports.RichTextEditor = RichTextEditor;
28984
28840
  exports.RouterWrapper = RouterWrapper;
@@ -28997,9 +28853,11 @@ exports.computeFields = computeFields;
28997
28853
  exports.copyText = copyText;
28998
28854
  exports.debounce = debounce;
28999
28855
  exports.formatString = formatString;
28856
+ exports.i18nTInjectionKey = i18nTInjectionKey;
29000
28857
  exports.initials = initials;
29001
28858
  exports.keyToLabel = keyToLabel;
29002
28859
  exports.useBagel = useBagel;
29003
28860
  exports.useEscape = useEscape;
29004
28861
  exports.useFormkit = useFormkit;
28862
+ exports.useI18nT = useI18nT;
29005
28863
  exports.useModal = useModal;