@bagelink/vue 0.0.1006 → 0.0.1008

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA4JA,OAAO,EAEN,KAAK,UAAU,EAIf,MAAM,eAAe,CAAA;AAOtB,OAAO,qBAAqB,CAAA;AAqC5B,iBAAS,UAAU,SAGlB;AAsBD,iBAAS,cAAc;;yBAyJM,GAAG;yBACF,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAhPb,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;;;;WALV,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;kFAmPhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Modal.vue.d.ts","sourceRoot":"","sources":["../../src/components/Modal.vue"],"names":[],"mappings":"AA8JA,OAAO,EAEN,KAAK,UAAU,EAIf,MAAM,eAAe,CAAA;AAOtB,OAAO,qBAAqB,CAAA;AAqC5B,iBAAS,UAAU,SAGlB;AAsBD,iBAAS,cAAc;;yBAyJM,GAAG;yBACF,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;WAhPb,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;;;;WALV,OAAO;YACN,MAAM;YACN,MAAM;kBACA,OAAO;cACX,UAAU,EAAE;cACZ,OAAO;;;kFAmPhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,11 +1,11 @@
1
- import { BglFormSchemaT, BtnOptions } from '..';
1
+ import { BglFormSchemaFnT, BtnOptions } from '..';
2
2
  declare let __VLS_typeProps: {
3
3
  side?: boolean;
4
4
  title?: string;
5
5
  width?: string;
6
6
  dismissable?: boolean;
7
7
  actions?: BtnOptions[];
8
- schema: BglFormSchemaT | (() => BglFormSchemaT);
8
+ schema: BglFormSchemaFnT<any>;
9
9
  onSubmit?: (formData: any) => Promise<void>;
10
10
  onDelete?: (id: string) => void;
11
11
  visible?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AA0HA,OAAO,EAEN,KAAK,cAAc,EAEnB,KAAK,UAAU,EAGf,MAAM,eAAe,CAAA;AAItB,QAAA,IAAI,eAAe,EAAG;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,cAAc,GAAG,CAAC,MAAM,cAAc,CAAC,CAAA;IAE/C,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAE/B,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAE5B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;CACnC,CAAC;AAyCF,iBAAS,aAAa,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAEpD;AAeD,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,GAAG,OAAO,eAAe,CAAC;;;;;;;;AA2L3B,wBAWG"}
1
+ {"version":3,"file":"ModalForm.vue.d.ts","sourceRoot":"","sources":["../../src/components/ModalForm.vue"],"names":[],"mappings":"AA0HA,OAAO,EAEN,KAAK,gBAAgB,EAErB,KAAK,UAAU,EAGf,MAAM,eAAe,CAAA;AAItB,QAAA,IAAI,eAAe,EAAG;IACrB,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB,MAAM,EAAE,gBAAgB,CAAC,GAAG,CAAC,CAAA;IAE7B,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAE3C,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;IAE/B,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAA;IAE5B,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;CACnC,CAAC;AAyCF,iBAAS,aAAa,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,QAEpD;AAeD,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACrC,GAAG,OAAO,eAAe,CAAC;;;;;;;;AA2L3B,wBAWG"}
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SidebarMenu.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AA6B5C,iBAAS,cAAc;;uBA6IK,GAAG;8BACI,GAAG;yBACR,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAjMT,OAAO,EAAE;iBACP,OAAO;UACd,OAAO;;;;eAFF,OAAO,EAAE;iBACP,OAAO;UACd,OAAO;;;kFAsMZ,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/SidebarMenu.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AA4B5C,iBAAS,cAAc;;uBA6IK,GAAG;8BACI,GAAG;yBACR,GAAG;wBACJ,GAAG;;;WASlB,OAAO,IAA6B;EAEjD;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;eAhMT,OAAO,EAAE;iBACP,OAAO;UACd,OAAO;;;;eAFF,OAAO,EAAE;iBACP,OAAO;UACd,OAAO;;;kFAqMZ,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TabsNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/TabsNav.vue"],"names":[],"mappings":"AAkMA,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;AAMxD,UAAU,OAAO;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,aAAa,CAAA;CACpB;;YAGQ,MAAM;UACR,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE;iBACb,MAAM;eACR,OAAO;WACX,MAAM;WACN,OAAO;eACH,OAAO;;;;YANV,MAAM;UACR,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE;iBACb,MAAM;eACR,OAAO;WACX,MAAM;WACN,OAAO;eACH,OAAO;;;;AAwKnB,wBAOG"}
1
+ {"version":3,"file":"TabsNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/layout/TabsNav.vue"],"names":[],"mappings":"AAoMA,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,eAAe,CAAA;AAMxD,UAAU,OAAO;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,aAAa,CAAA;CACpB;;YAGQ,MAAM;UACR,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE;iBACb,MAAM;eACR,OAAO;WACX,MAAM;WACN,OAAO;eACH,OAAO;;;;YANV,MAAM;UACR,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE;iBACb,MAAM;eACR,OAAO;WACX,MAAM;WACN,OAAO;eACH,OAAO;;;;AA2KnB,wBAOG"}
package/dist/index.cjs CHANGED
@@ -307,7 +307,7 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
307
307
  };
308
308
  }
309
309
  });
310
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3c0720f5"]]);
310
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-521354bb"]]);
311
311
  const _hoisted_1$M = ["dismissable"];
312
312
  const _hoisted_2$u = { class: "m-0" };
313
313
  const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
@@ -9631,7 +9631,9 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
9631
9631
  if (activeTab && tabsWrap.value) {
9632
9632
  const { offsetLeft, offsetWidth } = activeTab;
9633
9633
  tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
9634
- tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
9634
+ if (tabsWrap.value) {
9635
+ tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
9636
+ }
9635
9637
  }
9636
9638
  }
9637
9639
  function selectTab(tab) {
@@ -9672,7 +9674,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
9672
9674
  return vue.openBlock(), vue.createElementBlock("div", {
9673
9675
  ref_key: "tabsWrap",
9674
9676
  ref: tabsWrap,
9675
- class: vue.normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
9677
+ class: vue.normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
9676
9678
  }, [
9677
9679
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props2.tabs, (tab, i2) => {
9678
9680
  return vue.openBlock(), vue.createElementBlock("button", {
@@ -9692,7 +9694,7 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
9692
9694
  };
9693
9695
  }
9694
9696
  });
9695
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-90649f98"]]);
9697
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-dbce6d28"]]);
9696
9698
  const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
9697
9699
  __name: "BglField",
9698
9700
  props: {
@@ -29747,10 +29749,10 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
29747
29749
  const emit2 = __emit;
29748
29750
  const slots = vue.useSlots();
29749
29751
  let isOpen = vue.ref(props2.open);
29750
- function toggleMenu() {
29752
+ const toggleMenu = useDebounceFn(() => {
29751
29753
  isOpen.value = !isOpen.value;
29752
29754
  emit2("update:open", isOpen.value);
29753
- }
29755
+ });
29754
29756
  return (_ctx, _cache) => {
29755
29757
  const _directive_tooltip = vue.resolveDirective("tooltip");
29756
29758
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -29761,8 +29763,8 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
29761
29763
  color: "white",
29762
29764
  class: "mb-05 absolute toggleNav z-2 border",
29763
29765
  icon: "keyboard_arrow_right",
29764
- onClick: toggleMenu
29765
- }),
29766
+ onClick: vue.unref(toggleMenu)
29767
+ }, null, 8, ["onClick"]),
29766
29768
  vue.createVNode(vue.unref(_sfc_main$V), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
29767
29769
  default: vue.withCtx(() => [
29768
29770
  !vue.unref(isOpen) || !vue.unref(slots)["brand-open"] ? vue.renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : vue.createCommentVNode("", true),
@@ -29808,7 +29810,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
29808
29810
  };
29809
29811
  }
29810
29812
  });
29811
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0cd6a0fb"]]);
29813
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ac02125e"]]);
29812
29814
  const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
29813
29815
  __name: "Skeleton",
29814
29816
  props: {
@@ -30302,8 +30304,8 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
30302
30304
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
30303
30305
  flat: "",
30304
30306
  icon: "close",
30305
- onClick: closeModal,
30306
- thin: ""
30307
+ thin: "",
30308
+ onClick: closeModal
30307
30309
  }, null, 8, ["style"]),
30308
30310
  _ctx.title ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$3), {
30309
30311
  key: 0,
@@ -30400,7 +30402,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
30400
30402
  width: {},
30401
30403
  dismissable: { type: Boolean },
30402
30404
  actions: {},
30403
- schema: { type: Function },
30405
+ schema: {},
30404
30406
  onSubmit: { type: Function },
30405
30407
  onDelete: { type: Function },
30406
30408
  visible: { type: Boolean },
@@ -30507,7 +30509,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
30507
30509
  };
30508
30510
  }
30509
30511
  });
30510
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6846fbe3"]]);
30512
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3342a563"]]);
30511
30513
  const _hoisted_1$5 = { class: "full-nav" };
30512
30514
  const _hoisted_2$4 = { class: "nav-scroll" };
30513
30515
  const _hoisted_3$3 = { class: "nav-links-wrapper" };
@@ -33471,6 +33473,7 @@ const translations = {
33471
33473
  minute: "minute",
33472
33474
  second: "second",
33473
33475
  ago: "ago",
33476
+ in: "in",
33474
33477
  justNow: "Just now"
33475
33478
  },
33476
33479
  es: {
@@ -33482,6 +33485,7 @@ const translations = {
33482
33485
  minute: "minuto",
33483
33486
  second: "segundo",
33484
33487
  ago: "hace",
33488
+ in: "en",
33485
33489
  justNow: "Justo ahora"
33486
33490
  },
33487
33491
  fr: {
@@ -33493,6 +33497,7 @@ const translations = {
33493
33497
  minute: "minute",
33494
33498
  second: "seconde",
33495
33499
  ago: "il y a",
33500
+ in: "dans",
33496
33501
  justNow: "À l’instant"
33497
33502
  },
33498
33503
  he: {
@@ -33504,6 +33509,7 @@ const translations = {
33504
33509
  minute: "דקה",
33505
33510
  second: "שנייה",
33506
33511
  ago: "לפני",
33512
+ in: "בעוד",
33507
33513
  justNow: "זה עתה"
33508
33514
  }
33509
33515
  };
@@ -33513,7 +33519,7 @@ function timeAgo(date2, lang = "en") {
33513
33519
  const now = /* @__PURE__ */ new Date();
33514
33520
  const nowNumber = now.getTime();
33515
33521
  const dateNumber = date2.getTime();
33516
- const seconds = Math.floor((nowNumber - dateNumber) / 1e3);
33522
+ const seconds = Math.floor((dateNumber - nowNumber) / 1e3);
33517
33523
  const intervals = [
33518
33524
  { label: "year", seconds: 31536e3 },
33519
33525
  { label: "month", seconds: 2592e3 },
@@ -33525,10 +33531,15 @@ function timeAgo(date2, lang = "en") {
33525
33531
  ];
33526
33532
  const selectedLang = translations[lang];
33527
33533
  for (const interval of intervals) {
33528
- const count2 = Math.floor(seconds / interval.seconds);
33534
+ const count2 = Math.floor(Math.abs(seconds) / interval.seconds);
33529
33535
  if (count2 >= 1) {
33530
- const suffix = lang === "he" ? "" : ` ${selectedLang.ago}`;
33531
- const prefix = lang === "he" ? "לפני " : "";
33536
+ const suffix = seconds < 0 ? ` ${selectedLang.ago}` : "";
33537
+ const prefix = "";
33538
+ if (interval.label === "day" && seconds > 0) {
33539
+ const hours = Math.floor(Math.abs(seconds) % 86400 / 3600);
33540
+ const hourLabel = hours > 1 ? `${selectedLang.hour}s` : selectedLang.hour;
33541
+ return `${prefix}${count2} ${selectedLang[interval.label]}${hours > 0 ? ` ${hours} ${hourLabel}` : ""}${suffix}`;
33542
+ }
33532
33543
  return `${prefix}${count2} ${selectedLang[interval.label]}${suffix}`;
33533
33544
  }
33534
33545
  }
package/dist/index.mjs CHANGED
@@ -305,7 +305,7 @@ const _sfc_main$_ = /* @__PURE__ */ defineComponent({
305
305
  };
306
306
  }
307
307
  });
308
- const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-3c0720f5"]]);
308
+ const Btn = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-521354bb"]]);
309
309
  const _hoisted_1$M = ["dismissable"];
310
310
  const _hoisted_2$u = { class: "m-0" };
311
311
  const _sfc_main$Z = /* @__PURE__ */ defineComponent({
@@ -9629,7 +9629,9 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9629
9629
  if (activeTab && tabsWrap.value) {
9630
9630
  const { offsetLeft, offsetWidth } = activeTab;
9631
9631
  tabsWrap.value.style.setProperty("--indicator-left", `${offsetLeft}px`);
9632
- tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
9632
+ if (tabsWrap.value) {
9633
+ tabsWrap.value.style.setProperty("--indicator-width", `${offsetWidth}px`);
9634
+ }
9633
9635
  }
9634
9636
  }
9635
9637
  function selectTab(tab) {
@@ -9670,7 +9672,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9670
9672
  return openBlock(), createElementBlock("div", {
9671
9673
  ref_key: "tabsWrap",
9672
9674
  ref: tabsWrap,
9673
- class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
9675
+ class: normalizeClass(["grid auto-flow-columns relative fit-content bgl_tabs_wrap overflow-hidden", { "bgl_flat-tabs": _ctx.flat, "bgl_vertical-tabs": _ctx.vertical }])
9674
9676
  }, [
9675
9677
  (openBlock(true), createElementBlock(Fragment, null, renderList(props2.tabs, (tab, i2) => {
9676
9678
  return openBlock(), createElementBlock("button", {
@@ -9690,7 +9692,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9690
9692
  };
9691
9693
  }
9692
9694
  });
9693
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-90649f98"]]);
9695
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-dbce6d28"]]);
9694
9696
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
9695
9697
  __name: "BglField",
9696
9698
  props: {
@@ -29745,10 +29747,10 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
29745
29747
  const emit2 = __emit;
29746
29748
  const slots = useSlots();
29747
29749
  let isOpen = ref(props2.open);
29748
- function toggleMenu() {
29750
+ const toggleMenu = useDebounceFn(() => {
29749
29751
  isOpen.value = !isOpen.value;
29750
29752
  emit2("update:open", isOpen.value);
29751
- }
29753
+ });
29752
29754
  return (_ctx, _cache) => {
29753
29755
  const _directive_tooltip = resolveDirective("tooltip");
29754
29756
  return openBlock(), createElementBlock("div", {
@@ -29759,8 +29761,8 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
29759
29761
  color: "white",
29760
29762
  class: "mb-05 absolute toggleNav z-2 border",
29761
29763
  icon: "keyboard_arrow_right",
29762
- onClick: toggleMenu
29763
- }),
29764
+ onClick: unref(toggleMenu)
29765
+ }, null, 8, ["onClick"]),
29764
29766
  createVNode(unref(_sfc_main$V), { class: "py-1 px-05 h-100 flex column gap-05 rounded relative bg-primary font-light overflow-y" }, {
29765
29767
  default: withCtx(() => [
29766
29768
  !unref(isOpen) || !unref(slots)["brand-open"] ? renderSlot(_ctx.$slots, "brand", { key: 0 }, void 0, true) : createCommentVNode("", true),
@@ -29806,7 +29808,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
29806
29808
  };
29807
29809
  }
29808
29810
  });
29809
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-0cd6a0fb"]]);
29811
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-ac02125e"]]);
29810
29812
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
29811
29813
  __name: "Skeleton",
29812
29814
  props: {
@@ -30300,8 +30302,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
30300
30302
  style: normalizeStyle({ float: _ctx.side ? "left" : "right" }),
30301
30303
  flat: "",
30302
30304
  icon: "close",
30303
- onClick: closeModal,
30304
- thin: ""
30305
+ thin: "",
30306
+ onClick: closeModal
30305
30307
  }, null, 8, ["style"]),
30306
30308
  _ctx.title ? (openBlock(), createBlock(unref(_sfc_main$3), {
30307
30309
  key: 0,
@@ -30398,7 +30400,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30398
30400
  width: {},
30399
30401
  dismissable: { type: Boolean },
30400
30402
  actions: {},
30401
- schema: { type: Function },
30403
+ schema: {},
30402
30404
  onSubmit: { type: Function },
30403
30405
  onDelete: { type: Function },
30404
30406
  visible: { type: Boolean },
@@ -30505,7 +30507,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
30505
30507
  };
30506
30508
  }
30507
30509
  });
30508
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-6846fbe3"]]);
30510
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-3342a563"]]);
30509
30511
  const _hoisted_1$5 = { class: "full-nav" };
30510
30512
  const _hoisted_2$4 = { class: "nav-scroll" };
30511
30513
  const _hoisted_3$3 = { class: "nav-links-wrapper" };
@@ -33469,6 +33471,7 @@ const translations = {
33469
33471
  minute: "minute",
33470
33472
  second: "second",
33471
33473
  ago: "ago",
33474
+ in: "in",
33472
33475
  justNow: "Just now"
33473
33476
  },
33474
33477
  es: {
@@ -33480,6 +33483,7 @@ const translations = {
33480
33483
  minute: "minuto",
33481
33484
  second: "segundo",
33482
33485
  ago: "hace",
33486
+ in: "en",
33483
33487
  justNow: "Justo ahora"
33484
33488
  },
33485
33489
  fr: {
@@ -33491,6 +33495,7 @@ const translations = {
33491
33495
  minute: "minute",
33492
33496
  second: "seconde",
33493
33497
  ago: "il y a",
33498
+ in: "dans",
33494
33499
  justNow: "À l’instant"
33495
33500
  },
33496
33501
  he: {
@@ -33502,6 +33507,7 @@ const translations = {
33502
33507
  minute: "דקה",
33503
33508
  second: "שנייה",
33504
33509
  ago: "לפני",
33510
+ in: "בעוד",
33505
33511
  justNow: "זה עתה"
33506
33512
  }
33507
33513
  };
@@ -33511,7 +33517,7 @@ function timeAgo(date2, lang = "en") {
33511
33517
  const now = /* @__PURE__ */ new Date();
33512
33518
  const nowNumber = now.getTime();
33513
33519
  const dateNumber = date2.getTime();
33514
- const seconds = Math.floor((nowNumber - dateNumber) / 1e3);
33520
+ const seconds = Math.floor((dateNumber - nowNumber) / 1e3);
33515
33521
  const intervals = [
33516
33522
  { label: "year", seconds: 31536e3 },
33517
33523
  { label: "month", seconds: 2592e3 },
@@ -33523,10 +33529,15 @@ function timeAgo(date2, lang = "en") {
33523
33529
  ];
33524
33530
  const selectedLang = translations[lang];
33525
33531
  for (const interval of intervals) {
33526
- const count2 = Math.floor(seconds / interval.seconds);
33532
+ const count2 = Math.floor(Math.abs(seconds) / interval.seconds);
33527
33533
  if (count2 >= 1) {
33528
- const suffix = lang === "he" ? "" : ` ${selectedLang.ago}`;
33529
- const prefix = lang === "he" ? "לפני " : "";
33534
+ const suffix = seconds < 0 ? ` ${selectedLang.ago}` : "";
33535
+ const prefix = "";
33536
+ if (interval.label === "day" && seconds > 0) {
33537
+ const hours = Math.floor(Math.abs(seconds) % 86400 / 3600);
33538
+ const hourLabel = hours > 1 ? `${selectedLang.hour}s` : selectedLang.hour;
33539
+ return `${prefix}${count2} ${selectedLang[interval.label]}${hours > 0 ? ` ${hours} ${hourLabel}` : ""}${suffix}`;
33540
+ }
33530
33541
  return `${prefix}${count2} ${selectedLang[interval.label]}${suffix}`;
33531
33542
  }
33532
33543
  }