@bagelink/vue 0.0.1109 → 0.0.1111

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.mjs CHANGED
@@ -19754,114 +19754,15 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
19754
19754
  };
19755
19755
  }
19756
19756
  });
19757
- const _hoisted_1$A = { key: 0 };
19758
- const _hoisted_2$p = ["src", "alt", "width", "height"];
19759
- const _hoisted_3$k = ["src", "alt", "width", "height"];
19760
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
19761
- __name: "Image",
19762
- props: {
19763
- src: {},
19764
- pathKey: {},
19765
- alt: { default: "" },
19766
- width: {},
19767
- height: {},
19768
- caption: {}
19769
- },
19770
- setup(__props) {
19771
- let imageSrc = ref(null);
19772
- const fileBaseUrl = computed(() => "https://files.bagel.design".replace(/\/$/, ""));
19773
- function pathToUrl() {
19774
- var _a2;
19775
- if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
19776
- return `${fileBaseUrl.value}/${__props.pathKey}`;
19777
- }
19778
- async function loadImage() {
19779
- var _a2;
19780
- const url = __props.src || pathToUrl();
19781
- console.log(url);
19782
- if (!url) {
19783
- imageSrc.value = null;
19784
- return;
19785
- }
19786
- const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
19787
- if (ext === "heic") {
19788
- if (!("caches" in window)) {
19789
- console.warn("Caching is not available. Proceeding without cache.");
19790
- } else {
19791
- try {
19792
- const imgCache = await window.caches.open("img-cache");
19793
- const cachedResponse = await imgCache.match(url);
19794
- if (cachedResponse) {
19795
- imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
19796
- return;
19797
- }
19798
- } catch (error) {
19799
- console.warn("Error accessing cache:", error);
19800
- }
19801
- }
19802
- try {
19803
- await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
19804
- const response = await fetch(url);
19805
- const blob = await response.blob();
19806
- const convertedBlob = await window.heic2any({ blob });
19807
- imageSrc.value = URL.createObjectURL(convertedBlob);
19808
- if ("caches" in window) {
19809
- try {
19810
- const imgCache = await window.caches.open("img-cache");
19811
- imgCache.put(url, new Response(convertedBlob));
19812
- } catch (cacheError) {
19813
- console.warn("Failed to cache the image:", cacheError);
19814
- }
19815
- }
19816
- } catch (error) {
19817
- console.error("Error converting HEIC file:", error);
19818
- }
19819
- } else {
19820
- imageSrc.value = url;
19821
- }
19822
- }
19823
- watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
19824
- return (_ctx, _cache) => {
19825
- return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$A, [
19826
- unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
19827
- key: 0,
19828
- src: unref(imageSrc)
19829
- }, _ctx.$attrs, {
19830
- alt: _ctx.alt,
19831
- width: unref(normalizeDimension)(_ctx.width),
19832
- height: unref(normalizeDimension)(_ctx.height)
19833
- }), null, 16, _hoisted_2$p)) : (openBlock(), createBlock(unref(Skeleton), {
19834
- key: 1,
19835
- class: "img-web-kit",
19836
- width: unref(normalizeDimension)(_ctx.width),
19837
- height: unref(normalizeDimension)(_ctx.height)
19838
- }, null, 8, ["width", "height"]))
19839
- ])) : unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
19840
- key: 1,
19841
- src: unref(imageSrc)
19842
- }, _ctx.$attrs, {
19843
- alt: _ctx.alt,
19844
- width: unref(normalizeDimension)(_ctx.width),
19845
- height: unref(normalizeDimension)(_ctx.height)
19846
- }), null, 16, _hoisted_3$k)) : (openBlock(), createBlock(unref(Skeleton), {
19847
- key: 2,
19848
- class: "img-web-kit",
19849
- width: unref(normalizeDimension)(_ctx.width),
19850
- height: unref(normalizeDimension)(_ctx.height)
19851
- }, null, 8, ["width", "height"]));
19852
- };
19853
- }
19854
- });
19855
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-29509e85"]]);
19856
- const _hoisted_1$z = { class: "bagel-input" };
19857
- const _hoisted_2$o = {
19757
+ const _hoisted_1$A = { class: "bagel-input" };
19758
+ const _hoisted_2$p = {
19858
19759
  key: 0,
19859
19760
  placeholder: "required",
19860
19761
  type: "text",
19861
19762
  required: "",
19862
19763
  class: "pixel"
19863
19764
  };
19864
- const _hoisted_3$j = { class: "m-05 flex opacity-7 z-99" };
19765
+ const _hoisted_3$k = { class: "m-05 flex opacity-7 z-99" };
19865
19766
  const _hoisted_4$d = { class: "ellipsis-1 word-break-all h-20 m-0" };
19866
19767
  const _hoisted_5$c = {
19867
19768
  key: 1,
@@ -19891,7 +19792,7 @@ const _hoisted_13$2 = {
19891
19792
  class: "progress"
19892
19793
  };
19893
19794
  const _hoisted_14$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
19894
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
19795
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
19895
19796
  __name: "FileUpload",
19896
19797
  props: /* @__PURE__ */ mergeModels({
19897
19798
  label: {},
@@ -20063,9 +19964,9 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20063
19964
  return (_ctx, _cache) => {
20064
19965
  const _directive_tooltip = resolveDirective("tooltip");
20065
19966
  const _directive_lightbox = resolveDirective("lightbox");
20066
- return openBlock(), createElementBlock("div", _hoisted_1$z, [
19967
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
20067
19968
  createElementVNode("label", null, toDisplayString(_ctx.label), 1),
20068
- _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$o)) : createCommentVNode("", true),
19969
+ _ctx.required && !storageFiles.value.length ? (openBlock(), createElementBlock("input", _hoisted_2$p)) : createCommentVNode("", true),
20069
19970
  _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$$), {
20070
19971
  key: 1,
20071
19972
  outline: "",
@@ -20091,7 +19992,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20091
19992
  key: file.id,
20092
19993
  class: "txt-gray txt-12 flex"
20093
19994
  }, [
20094
- createElementVNode("div", _hoisted_3$j, [
19995
+ createElementVNode("div", _hoisted_3$k, [
20095
19996
  withDirectives(createVNode(unref(Btn), {
20096
19997
  color: "gray",
20097
19998
  thin: "",
@@ -20161,7 +20062,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20161
20062
  key: file.id,
20162
20063
  class: "multi-image-item-preview"
20163
20064
  }, [
20164
- isImage(file.extension || file.url) ? (openBlock(), createBlock(Image$1, {
20065
+ isImage(file.extension || file.url) ? (openBlock(), createBlock(unref(Image$1), {
20165
20066
  key: 0,
20166
20067
  class: "multi-preview",
20167
20068
  src: file.url,
@@ -20189,7 +20090,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20189
20090
  class: "multi-image-item-preview"
20190
20091
  }, [
20191
20092
  isImage(fileQ.file.type) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
20192
- _ctx.multiple ? (openBlock(), createBlock(Image$1, {
20093
+ _ctx.multiple ? (openBlock(), createBlock(unref(Image$1), {
20193
20094
  key: 0,
20194
20095
  width: _ctx.width || "220",
20195
20096
  class: "multi-preview",
@@ -20252,7 +20153,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20252
20153
  ])
20253
20154
  ]),
20254
20155
  isImage(file.extension || file.url) ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
20255
- withDirectives(createVNode(Image$1, {
20156
+ withDirectives(createVNode(unref(Image$1), {
20256
20157
  class: "single-preview",
20257
20158
  src: file.url,
20258
20159
  alt: ""
@@ -20285,7 +20186,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20285
20186
  icon: "check"
20286
20187
  })
20287
20188
  ], 6),
20288
- isImage(fileQ.file.type) ? (openBlock(), createBlock(Image$1, {
20189
+ isImage(fileQ.file.type) ? (openBlock(), createBlock(unref(Image$1), {
20289
20190
  key: 0,
20290
20191
  class: "single-preview",
20291
20192
  src: fileToUrl(fileQ.file),
@@ -20311,11 +20212,11 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20311
20212
  };
20312
20213
  }
20313
20214
  });
20314
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-438b09e8"]]);
20315
- const _hoisted_1$y = ["title"];
20316
- const _hoisted_2$n = { key: 0 };
20317
- const _hoisted_3$i = ["value", "placeholder"];
20318
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
20215
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-133a8c7a"]]);
20216
+ const _hoisted_1$z = ["title"];
20217
+ const _hoisted_2$o = { key: 0 };
20218
+ const _hoisted_3$j = ["value", "placeholder"];
20219
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
20319
20220
  __name: "JSONInput",
20320
20221
  props: {
20321
20222
  description: { default: "" },
@@ -20338,7 +20239,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20338
20239
  class: normalizeClass(["bagel-input", { small: _ctx.small }]),
20339
20240
  title: _ctx.description
20340
20241
  }, [
20341
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$n, [
20242
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$o, [
20342
20243
  createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
20343
20244
  ])) : createCommentVNode("", true),
20344
20245
  createElementVNode("textarea", {
@@ -20346,20 +20247,20 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20346
20247
  class: normalizeClass({ "no-edit": !_ctx.editMode }),
20347
20248
  placeholder: _ctx.placeholder,
20348
20249
  onInput: handleInput
20349
- }, null, 42, _hoisted_3$i)
20350
- ], 10, _hoisted_1$y);
20250
+ }, null, 42, _hoisted_3$j)
20251
+ ], 10, _hoisted_1$z);
20351
20252
  };
20352
20253
  }
20353
20254
  });
20354
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-1cbaeab2"]]);
20355
- const _hoisted_1$x = ["for"];
20356
- const _hoisted_2$m = ["id", "placeholder", "disabled", "required", "readonly", "onKeydown"];
20357
- const _hoisted_3$h = { key: 1 };
20255
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-1cbaeab2"]]);
20256
+ const _hoisted_1$y = ["for"];
20257
+ const _hoisted_2$n = ["id", "placeholder", "disabled", "required", "readonly", "onKeydown"];
20258
+ const _hoisted_3$i = { key: 1 };
20358
20259
  const _hoisted_4$c = {
20359
20260
  key: 5,
20360
20261
  class: "flex column spinner"
20361
20262
  };
20362
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
20263
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
20363
20264
  __name: "NumberInput",
20364
20265
  props: {
20365
20266
  modelValue: {},
@@ -20462,7 +20363,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
20462
20363
  withKeys(withModifiers(increment, ["prevent"]), ["up"]),
20463
20364
  withKeys(withModifiers(decrement, ["prevent"]), ["down"])
20464
20365
  ]
20465
- }, null, 42, _hoisted_2$m), [
20366
+ }, null, 42, _hoisted_2$n), [
20466
20367
  [
20467
20368
  vModelText,
20468
20369
  unref(formattedValue),
@@ -20476,7 +20377,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
20476
20377
  { number: true }
20477
20378
  ]
20478
20379
  ]),
20479
- _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_3$h, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
20380
+ _ctx.helptext ? (openBlock(), createElementBlock("p", _hoisted_3$i, toDisplayString(_ctx.helptext), 1)) : createCommentVNode("", true),
20480
20381
  _ctx.iconStart ? (openBlock(), createBlock(unref(_sfc_main$d), {
20481
20382
  key: 2,
20482
20383
  class: "iconStart",
@@ -20515,14 +20416,14 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
20515
20416
  }, null, 8, ["disabled"])
20516
20417
  ])) : createCommentVNode("", true)
20517
20418
  ], 2)
20518
- ], 8, _hoisted_1$x)
20419
+ ], 8, _hoisted_1$y)
20519
20420
  ], 2);
20520
20421
  };
20521
20422
  }
20522
20423
  });
20523
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-f265687e"]]);
20524
- const _hoisted_1$w = ["value", "autofocus", "onKeydown", "onPaste"];
20525
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
20424
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-f265687e"]]);
20425
+ const _hoisted_1$x = ["value", "autofocus", "onKeydown", "onPaste"];
20426
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
20526
20427
  __name: "OTP",
20527
20428
  props: {
20528
20429
  digitCount: {},
@@ -20620,16 +20521,16 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
20620
20521
  oninput: "this.value = this.value.slice(0, 1);",
20621
20522
  onKeydown: ($event) => handleKeyDown($event, ind),
20622
20523
  onPaste: ($event) => handlePaste($event, ind)
20623
- }, null, 40, _hoisted_1$w);
20524
+ }, null, 40, _hoisted_1$x);
20624
20525
  }), 128))
20625
20526
  ], 512);
20626
20527
  };
20627
20528
  }
20628
20529
  });
20629
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-5c22c199"]]);
20630
- const _hoisted_1$v = { class: "relative" };
20631
- const _hoisted_2$l = { class: "m-password position-bottom-end flex column justify-content-center" };
20632
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
20530
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-5c22c199"]]);
20531
+ const _hoisted_1$w = { class: "relative" };
20532
+ const _hoisted_2$m = { class: "m-password position-bottom-end flex column justify-content-center" };
20533
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
20633
20534
  __name: "PasswordInput",
20634
20535
  props: /* @__PURE__ */ mergeModels({
20635
20536
  id: {},
@@ -20670,7 +20571,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
20670
20571
  );
20671
20572
  const inputType = computed(() => showPwd.value ? "text" : "password");
20672
20573
  return (_ctx, _cache) => {
20673
- return openBlock(), createElementBlock("div", _hoisted_1$v, [
20574
+ return openBlock(), createElementBlock("div", _hoisted_1$w, [
20674
20575
  createVNode(unref(TextInput), mergeProps({
20675
20576
  modelValue: password.value,
20676
20577
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
@@ -20678,7 +20579,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
20678
20579
  type: inputType.value,
20679
20580
  class: "mb-0"
20680
20581
  }), null, 16, ["modelValue", "type"]),
20681
- createElementVNode("div", _hoisted_2$l, [
20582
+ createElementVNode("div", _hoisted_2$m, [
20682
20583
  createVNode(unref(Btn), {
20683
20584
  flat: "",
20684
20585
  thin: "",
@@ -20691,9 +20592,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
20691
20592
  };
20692
20593
  }
20693
20594
  });
20694
- const _hoisted_1$u = ["for"];
20695
- const _hoisted_2$k = ["id", "name", "value", "required"];
20696
- const _hoisted_3$g = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
20595
+ const _hoisted_1$v = ["for"];
20596
+ const _hoisted_2$l = ["id", "name", "value", "required"];
20597
+ const _hoisted_3$h = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
20697
20598
  const _hoisted_4$b = ["src", "alt"];
20698
20599
  const _hoisted_5$b = { class: "" };
20699
20600
  const _hoisted_6$9 = {
@@ -20704,7 +20605,7 @@ const _hoisted_7$6 = {
20704
20605
  key: 1,
20705
20606
  class: "txt-gray txt-12 m-0"
20706
20607
  };
20707
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
20608
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
20708
20609
  __name: "RadioGroup",
20709
20610
  props: /* @__PURE__ */ mergeModels({
20710
20611
  groupName: {},
@@ -20734,10 +20635,10 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20734
20635
  name: _ctx.groupName,
20735
20636
  value: opt.value,
20736
20637
  required: _ctx.required
20737
- }, null, 8, _hoisted_2$k), [
20638
+ }, null, 8, _hoisted_2$l), [
20738
20639
  [vModelRadio, selectedOption.value]
20739
20640
  ]),
20740
- createElementVNode("div", _hoisted_3$g, [
20641
+ createElementVNode("div", _hoisted_3$h, [
20741
20642
  opt.imgSrc ? (openBlock(), createElementBlock("img", {
20742
20643
  key: 0,
20743
20644
  class: "bg-popup shadow-light py-025 radius-05 m_w40",
@@ -20759,19 +20660,19 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20759
20660
  icon: "delete",
20760
20661
  onClick: ($event) => _ctx.$emit("delete", opt)
20761
20662
  }, null, 8, ["onClick"])) : createCommentVNode("", true)
20762
- ], 8, _hoisted_1$u);
20663
+ ], 8, _hoisted_1$v);
20763
20664
  }), 128))
20764
20665
  ]);
20765
20666
  };
20766
20667
  }
20767
20668
  });
20768
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-3c77be46"]]);
20769
- const _hoisted_1$t = { class: "bagel-input" };
20770
- const _hoisted_2$j = { class: "pb-025" };
20771
- const _hoisted_3$f = { class: "flex gap-05 flex-wrap" };
20669
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-3c77be46"]]);
20670
+ const _hoisted_1$u = { class: "bagel-input" };
20671
+ const _hoisted_2$k = { class: "pb-025" };
20672
+ const _hoisted_3$g = { class: "flex gap-05 flex-wrap" };
20772
20673
  const _hoisted_4$a = ["id", "name", "value", "checked"];
20773
20674
  const _hoisted_5$a = ["for"];
20774
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
20675
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
20775
20676
  __name: "RadioPillsInput",
20776
20677
  props: {
20777
20678
  options: {},
@@ -20812,9 +20713,9 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20812
20713
  selectedValue.value = props2.modelValue;
20813
20714
  });
20814
20715
  return (_ctx, _cache) => {
20815
- return openBlock(), createElementBlock("div", _hoisted_1$t, [
20816
- createElementVNode("label", _hoisted_2$j, toDisplayString(_ctx.label), 1),
20817
- createElementVNode("div", _hoisted_3$f, [
20716
+ return openBlock(), createElementBlock("div", _hoisted_1$u, [
20717
+ createElementVNode("label", _hoisted_2$k, toDisplayString(_ctx.label), 1),
20718
+ createElementVNode("div", _hoisted_3$g, [
20818
20719
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (option2, index2) => {
20819
20720
  return openBlock(), createElementBlock("div", {
20820
20721
  key: index2,
@@ -20838,18 +20739,18 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20838
20739
  };
20839
20740
  }
20840
20741
  });
20841
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-cf892d71"]]);
20842
- const _hoisted_1$s = ["dir"];
20843
- const _hoisted_2$i = {
20742
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-cf892d71"]]);
20743
+ const _hoisted_1$t = ["dir"];
20744
+ const _hoisted_2$j = {
20844
20745
  key: 0,
20845
20746
  class: "label"
20846
20747
  };
20847
- const _hoisted_3$e = { class: "range-slider relative w-100" };
20748
+ const _hoisted_3$f = { class: "range-slider relative w-100" };
20848
20749
  const _hoisted_4$9 = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
20849
20750
  const _hoisted_5$9 = ["value", "min", "max", "step", "required", "disabled"];
20850
20751
  const _hoisted_6$8 = { class: "track absolute pointer-events-none overflow-hidden round" };
20851
20752
  const _hoisted_7$5 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
20852
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
20753
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
20853
20754
  __name: "RangeInput",
20854
20755
  props: {
20855
20756
  modelValue: {},
@@ -20917,8 +20818,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
20917
20818
  return openBlock(), createElementBlock("div", {
20918
20819
  dir: unref(rtl) ? "rtl" : "ltr"
20919
20820
  }, [
20920
- unref(label) ? (openBlock(), createElementBlock("label", _hoisted_2$i, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
20921
- createElementVNode("div", _hoisted_3$e, [
20821
+ unref(label) ? (openBlock(), createElementBlock("label", _hoisted_2$j, toDisplayString(unref(label)), 1)) : createCommentVNode("", true),
20822
+ createElementVNode("div", _hoisted_3$f, [
20922
20823
  createElementVNode("input", {
20923
20824
  id: unref(id),
20924
20825
  value: validFrom.value,
@@ -21009,11 +20910,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
21009
20910
  createElementVNode("span", null, toDisplayString(unref(formatValue)(unref(max2))), 1)
21010
20911
  ], true)
21011
20912
  ])
21012
- ], 8, _hoisted_1$s);
20913
+ ], 8, _hoisted_1$t);
21013
20914
  };
21014
20915
  }
21015
20916
  });
21016
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-e606435a"]]);
20917
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-e606435a"]]);
21017
20918
  const tableTools = [
21018
20919
  "mergeCells",
21019
20920
  "splitCells",
@@ -21103,12 +21004,12 @@ const toolbarOptions = [
21103
21004
  { name: "separator" },
21104
21005
  { name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
21105
21006
  ];
21106
- const _hoisted_1$r = { class: "grid grid-wrap p-05" };
21107
- const _hoisted_2$h = ["onMousemove", "onClick"];
21108
- const _hoisted_3$d = { class: "txt-center txt-12 color-gray" };
21007
+ const _hoisted_1$s = { class: "grid grid-wrap p-05" };
21008
+ const _hoisted_2$i = ["onMousemove", "onClick"];
21009
+ const _hoisted_3$e = { class: "txt-center txt-12 color-gray" };
21109
21010
  const fb = 1;
21110
21011
  const base = 5;
21111
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
21012
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
21112
21013
  __name: "gridBox",
21113
21014
  emits: ["select"],
21114
21015
  setup(__props, { emit: __emit }) {
@@ -21124,7 +21025,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21124
21025
  return hoveredCol.value > base - 1 ? enlarge : base;
21125
21026
  });
21126
21027
  return (_ctx, _cache) => {
21127
- return openBlock(), createElementBlock("div", _hoisted_1$r, [
21028
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
21128
21029
  (openBlock(true), createElementBlock(Fragment, null, renderList(rowSize.value, (row) => {
21129
21030
  return openBlock(), createElementBlock("div", {
21130
21031
  key: `row-${row}`,
@@ -21151,21 +21052,21 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21151
21052
  hoveredCol.value = col;
21152
21053
  },
21153
21054
  onClick: ($event) => emit2("select", `${row}x${col}`)
21154
- }, null, 42, _hoisted_2$h);
21055
+ }, null, 42, _hoisted_2$i);
21155
21056
  }), 128))
21156
21057
  ], 32);
21157
21058
  }), 128)),
21158
- createElementVNode("p", _hoisted_3$d, toDisplayString(hoveredRow.value) + "x" + toDisplayString(hoveredCol.value), 1)
21059
+ createElementVNode("p", _hoisted_3$e, toDisplayString(hoveredRow.value) + "x" + toDisplayString(hoveredCol.value), 1)
21159
21060
  ]);
21160
21061
  };
21161
21062
  }
21162
21063
  });
21163
- const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-4548b70f"]]);
21164
- const _hoisted_1$q = {
21064
+ const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-4548b70f"]]);
21065
+ const _hoisted_1$r = {
21165
21066
  class: "toolbar flex gap-025 pb-05 flex-wrap",
21166
21067
  role: "toolbar"
21167
21068
  };
21168
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
21069
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
21169
21070
  __name: "EditorToolbar",
21170
21071
  props: {
21171
21072
  config: { default: defaultToolbarConfig },
@@ -21180,7 +21081,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
21180
21081
  }
21181
21082
  return (_ctx, _cache) => {
21182
21083
  const _directive_tooltip = resolveDirective("tooltip");
21183
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
21084
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
21184
21085
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
21185
21086
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
21186
21087
  action.name === "insertTable" ? (openBlock(), createBlock(unref(_sfc_main$X), {
@@ -21222,7 +21123,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
21222
21123
  };
21223
21124
  }
21224
21125
  });
21225
- const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-33dff8fa"]]);
21126
+ const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-33dff8fa"]]);
21226
21127
  function createCommandExecutor(state2, commands) {
21227
21128
  return {
21228
21129
  execute(command, value) {
@@ -22142,12 +22043,12 @@ function useEditorKeyboard(doc, handleToolbarAction) {
22142
22043
  }
22143
22044
  });
22144
22045
  }
22145
- const _hoisted_1$p = { class: "content-area radius-05" };
22146
- const _hoisted_2$g = {
22046
+ const _hoisted_1$q = { class: "content-area radius-05" };
22047
+ const _hoisted_2$h = {
22147
22048
  key: 1,
22148
22049
  class: "flex"
22149
22050
  };
22150
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
22051
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
22151
22052
  __name: "index",
22152
22053
  props: {
22153
22054
  modelValue: {},
@@ -22231,7 +22132,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22231
22132
  createElementVNode("div", {
22232
22133
  class: normalizeClass(["editor-container", { "split-view": unref(editor).state.isSplitView }])
22233
22134
  }, [
22234
- createElementVNode("div", _hoisted_1$p, [
22135
+ createElementVNode("div", _hoisted_1$q, [
22235
22136
  createElementVNode("iframe", {
22236
22137
  id: "rich-text-iframe",
22237
22138
  ref_key: "iframe",
@@ -22251,7 +22152,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22251
22152
  language: "html"
22252
22153
  }, null, 8, ["modelValue"])) : createCommentVNode("", true)
22253
22154
  ], 2),
22254
- _ctx.debug ? (openBlock(), createElementBlock("div", _hoisted_2$g, [
22155
+ _ctx.debug ? (openBlock(), createElementBlock("div", _hoisted_2$h, [
22255
22156
  _cache[6] || (_cache[6] = createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
22256
22157
  createVNode(unref(Btn), {
22257
22158
  thin: "",
@@ -22294,10 +22195,10 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22294
22195
  };
22295
22196
  }
22296
22197
  });
22297
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-2e74943d"]]);
22298
- const _hoisted_1$o = { class: "flex gap-05" };
22299
- const _hoisted_2$f = ["disabled"];
22300
- const _hoisted_3$c = { key: 1 };
22198
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-2e74943d"]]);
22199
+ const _hoisted_1$p = { class: "flex gap-05" };
22200
+ const _hoisted_2$g = ["disabled"];
22201
+ const _hoisted_3$d = { key: 1 };
22301
22202
  const _hoisted_4$8 = {
22302
22203
  key: 2,
22303
22204
  class: "ms-auto ps-05 me-05"
@@ -22305,7 +22206,7 @@ const _hoisted_4$8 = {
22305
22206
  const _hoisted_5$8 = ["value"];
22306
22207
  const _hoisted_6$7 = ["aria-selected", "onClick", "onKeydown"];
22307
22208
  const _hoisted_7$4 = { class: "block" };
22308
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
22209
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
22309
22210
  __name: "SelectInput",
22310
22211
  props: {
22311
22212
  options: {},
@@ -22493,7 +22394,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22493
22394
  trigger: withCtx(() => [
22494
22395
  createElementVNode("label", null, [
22495
22396
  createTextVNode(toDisplayString(_ctx.label) + " ", 1),
22496
- createElementVNode("div", _hoisted_1$o, [
22397
+ createElementVNode("div", _hoisted_1$p, [
22497
22398
  _ctx.searchable && unref(open) ? (openBlock(), createBlock(unref(TextInput), {
22498
22399
  key: 0,
22499
22400
  ref_key: "searchInput",
@@ -22524,7 +22425,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22524
22425
  key: 0,
22525
22426
  icon: _ctx.icon
22526
22427
  }, null, 8, ["icon"])) : createCommentVNode("", true),
22527
- !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$c, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
22428
+ !_ctx.hideLabel ? (openBlock(), createElementBlock("p", _hoisted_3$d, toDisplayString(selectedLabel.value), 1)) : createCommentVNode("", true),
22528
22429
  _ctx.clearable && selectedItemCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_4$8, [
22529
22430
  createVNode(unref(Btn), {
22530
22431
  flat: "",
@@ -22541,7 +22442,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22541
22442
  key: 3,
22542
22443
  thin: ""
22543
22444
  }, { icon: unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : createCommentVNode("", true)
22544
- ], 42, _hoisted_2$f)),
22445
+ ], 42, _hoisted_2$g)),
22545
22446
  _ctx.required ? (openBlock(), createElementBlock("input", {
22546
22447
  key: 2,
22547
22448
  tabindex: "-1",
@@ -22611,7 +22512,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
22611
22512
  };
22612
22513
  }
22613
22514
  });
22614
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-77b2541f"]]);
22515
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-77b2541f"]]);
22615
22516
  /*!
22616
22517
  * Signature Pad v5.0.4 | https://github.com/szimek/signature_pad
22617
22518
  * (c) 2024 Szymon Nowak | Released under the MIT license
@@ -23208,15 +23109,15 @@ class SignaturePad extends SignatureEventTarget {
23208
23109
  return svg.outerHTML;
23209
23110
  }
23210
23111
  }
23211
- const _hoisted_1$n = ["disabled"];
23212
- const _hoisted_2$e = {
23112
+ const _hoisted_1$o = ["disabled"];
23113
+ const _hoisted_2$f = {
23213
23114
  key: 1,
23214
23115
  placeholder: "required",
23215
23116
  type: "text",
23216
23117
  required: "",
23217
23118
  class: "pixel"
23218
23119
  };
23219
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
23120
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
23220
23121
  __name: "SignaturePad",
23221
23122
  props: /* @__PURE__ */ mergeModels({
23222
23123
  sigOption: {},
@@ -23369,8 +23270,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
23369
23270
  ref: vCanvas,
23370
23271
  class: "canvas",
23371
23272
  disabled: _ctx.disabled
23372
- }, null, 8, _hoisted_1$n),
23373
- _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$e)) : createCommentVNode("", true)
23273
+ }, null, 8, _hoisted_1$o),
23274
+ _ctx.required && unref(_isEmpty) ? (openBlock(), createElementBlock("input", _hoisted_2$f)) : createCommentVNode("", true)
23374
23275
  ], 34);
23375
23276
  };
23376
23277
  }
@@ -25854,13 +25755,13 @@ const VueDraggableNext = defineComponent({
25854
25755
  }
25855
25756
  }
25856
25757
  });
25857
- const _hoisted_1$m = ["title"];
25858
- const _hoisted_2$d = { class: "bagel-input" };
25859
- const _hoisted_3$b = { class: "table-side-scroll" };
25758
+ const _hoisted_1$n = ["title"];
25759
+ const _hoisted_2$e = { class: "bagel-input" };
25760
+ const _hoisted_3$c = { class: "table-side-scroll" };
25860
25761
  const _hoisted_4$7 = { class: "table-header" };
25861
25762
  const _hoisted_5$7 = { class: "table-reorder" };
25862
25763
  const _hoisted_6$6 = { class: "table-action" };
25863
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
25764
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
25864
25765
  __name: "TableField",
25865
25766
  props: {
25866
25767
  description: { default: "" },
@@ -25925,10 +25826,10 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
25925
25826
  class: "table-field-wrap",
25926
25827
  title: _ctx.description
25927
25828
  }, [
25928
- createElementVNode("div", _hoisted_2$d, [
25829
+ createElementVNode("div", _hoisted_2$e, [
25929
25830
  createElementVNode("label", null, toDisplayString((_a2 = unref(fieldMeta)) == null ? void 0 : _a2.label), 1)
25930
25831
  ]),
25931
- createElementVNode("div", _hoisted_3$b, [
25832
+ createElementVNode("div", _hoisted_3$c, [
25932
25833
  createElementVNode("div", _hoisted_4$7, [
25933
25834
  (openBlock(true), createElementBlock(Fragment, null, renderList((_b = unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
25934
25835
  return openBlock(), createElementBlock("div", {
@@ -26000,11 +25901,11 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
26000
25901
  ])),
26001
25902
  _: 1
26002
25903
  })
26003
- ], 8, _hoisted_1$m);
25904
+ ], 8, _hoisted_1$n);
26004
25905
  };
26005
25906
  }
26006
25907
  });
26007
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-a65c658c"]]);
25908
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-a65c658c"]]);
26008
25909
  function bind(fn2, thisArg) {
26009
25910
  return function wrap() {
26010
25911
  return fn2.apply(thisArg, arguments);
@@ -30451,13 +30352,13 @@ function parsePhoneNumber$1() {
30451
30352
  function parsePhoneNumber() {
30452
30353
  return withMetadataArgument(parsePhoneNumber$1, arguments);
30453
30354
  }
30454
- const _hoisted_1$l = ["aria-expanded"];
30455
- const _hoisted_2$c = { class: "p-075 tel-countryp-dropdown" };
30456
- const _hoisted_3$a = ["aria-selected", "onClick", "onMousemove"];
30355
+ const _hoisted_1$m = ["aria-expanded"];
30356
+ const _hoisted_2$d = { class: "p-075 tel-countryp-dropdown" };
30357
+ const _hoisted_3$b = ["aria-selected", "onClick", "onMousemove"];
30457
30358
  const _hoisted_4$6 = { class: "tel-country" };
30458
30359
  const _hoisted_5$6 = { key: 1 };
30459
30360
  const _hoisted_6$5 = ["id", "required", "placeholder", "disabled", "autocomplete", "pattern", "minlength", "maxlength", "name", "readonly", "tabindex", "aria-describedby"];
30460
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
30361
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
30461
30362
  __name: "TelInput",
30462
30363
  props: /* @__PURE__ */ mergeModels({
30463
30364
  label: {},
@@ -30742,7 +30643,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
30742
30643
  ])
30743
30644
  ]),
30744
30645
  default: withCtx(() => [
30745
- createElementVNode("div", _hoisted_2$c, [
30646
+ createElementVNode("div", _hoisted_2$d, [
30746
30647
  _ctx.searchable ? (openBlock(), createBlock(unref(TextInput), {
30747
30648
  key: 0,
30748
30649
  modelValue: searchQuery.value,
@@ -30772,7 +30673,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
30772
30673
  }, null, 8, ["country"])) : createCommentVNode("", true),
30773
30674
  createElementVNode("p", _hoisted_4$6, toDisplayString(pb.name), 1),
30774
30675
  computedDropDownOptions.value.showDialCodeInList ? (openBlock(), createElementBlock("span", _hoisted_5$6, " +" + toDisplayString(pb.dialCode), 1)) : createCommentVNode("", true)
30775
- ], 40, _hoisted_3$a);
30676
+ ], 40, _hoisted_3$b);
30776
30677
  }), 128))
30777
30678
  ], 2)
30778
30679
  ])
@@ -30806,19 +30707,19 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
30806
30707
  }, null, 44, _hoisted_6$5), [
30807
30708
  [vModelText, phone.value]
30808
30709
  ])
30809
- ], 40, _hoisted_1$l)
30710
+ ], 40, _hoisted_1$m)
30810
30711
  ])
30811
30712
  ], 2);
30812
30713
  };
30813
30714
  }
30814
30715
  });
30815
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-cfcf054d"]]);
30816
- const _hoisted_1$k = ["title"];
30817
- const _hoisted_2$b = ["for"];
30818
- const _hoisted_3$9 = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
30716
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-cfcf054d"]]);
30717
+ const _hoisted_1$l = ["title"];
30718
+ const _hoisted_2$c = ["for"];
30719
+ const _hoisted_3$a = ["id", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
30819
30720
  const _hoisted_4$5 = ["id", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
30820
30721
  const _hoisted_5$5 = { key: 2 };
30821
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
30722
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
30822
30723
  __name: "TextInput",
30823
30724
  props: {
30824
30725
  id: {},
@@ -30916,7 +30817,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30916
30817
  onFocusout: _cache[1] || (_cache[1] = //@ts-ignore
30917
30818
  (...args) => _ctx.onFocusout && _ctx.onFocusout(...args)),
30918
30819
  onInput: updateInputVal
30919
- }), null, 16, _hoisted_3$9)), [
30820
+ }), null, 16, _hoisted_3$a)), [
30920
30821
  [
30921
30822
  vModelDynamic,
30922
30823
  unref(inputVal),
@@ -30953,16 +30854,16 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30953
30854
  key: 4,
30954
30855
  icon: _ctx.icon
30955
30856
  }, null, 8, ["icon"])) : createCommentVNode("", true)
30956
- ], 8, _hoisted_2$b)
30957
- ], 10, _hoisted_1$k);
30857
+ ], 8, _hoisted_2$c)
30858
+ ], 10, _hoisted_1$l);
30958
30859
  };
30959
30860
  }
30960
30861
  });
30961
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-52ac6dc3"]]);
30962
- const _hoisted_1$j = ["title"];
30963
- const _hoisted_2$a = ["id", "required"];
30964
- const _hoisted_3$8 = ["for"];
30965
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
30862
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-52ac6dc3"]]);
30863
+ const _hoisted_1$k = ["title"];
30864
+ const _hoisted_2$b = ["id", "required"];
30865
+ const _hoisted_3$9 = ["for"];
30866
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
30966
30867
  __name: "ToggleInput",
30967
30868
  props: /* @__PURE__ */ mergeModels({
30968
30869
  label: {},
@@ -30998,19 +30899,19 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
30998
30899
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
30999
30900
  type: "checkbox",
31000
30901
  required: _ctx.required
31001
- }, null, 8, _hoisted_2$a), [
30902
+ }, null, 8, _hoisted_2$b), [
31002
30903
  [vModelCheckbox, checked.value]
31003
30904
  ]),
31004
30905
  createElementVNode("label", { for: inputId.value }, [
31005
30906
  renderSlot(_ctx.$slots, "label", {}, () => [
31006
30907
  createTextVNode(toDisplayString(_ctx.label), 1)
31007
30908
  ], true)
31008
- ], 8, _hoisted_3$8)
31009
- ], 10, _hoisted_1$j);
30909
+ ], 8, _hoisted_3$9)
30910
+ ], 10, _hoisted_1$k);
31010
30911
  };
31011
30912
  }
31012
30913
  });
31013
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-ebe691ee"]]);
30914
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-ebe691ee"]]);
31014
30915
  const files = {
31015
30916
  setBaseUrl: (baseUrl) => {
31016
30917
  if (!baseUrl) return;
@@ -31036,9 +30937,9 @@ const files = {
31036
30937
  });
31037
30938
  }
31038
30939
  };
31039
- const _hoisted_1$i = { class: "bagel-input" };
31040
- const _hoisted_2$9 = { key: 0 };
31041
- const _hoisted_3$7 = {
30940
+ const _hoisted_1$j = { class: "bagel-input" };
30941
+ const _hoisted_2$a = { key: 0 };
30942
+ const _hoisted_3$8 = {
31042
30943
  key: 1,
31043
30944
  placeholder: "required",
31044
30945
  type: "text",
@@ -31075,7 +30976,7 @@ const _hoisted_14 = {
31075
30976
  class: "progress"
31076
30977
  };
31077
30978
  const _hoisted_15 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
31078
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
30979
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
31079
30980
  __name: "UploadInput",
31080
30981
  props: {
31081
30982
  label: {},
@@ -31183,9 +31084,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
31183
31084
  return (_ctx, _cache) => {
31184
31085
  const _directive_tooltip = resolveDirective("tooltip");
31185
31086
  const _directive_lightbox = resolveDirective("lightbox");
31186
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
31187
- _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$9, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
31188
- _ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$7)) : createCommentVNode("", true),
31087
+ return openBlock(), createElementBlock("div", _hoisted_1$j, [
31088
+ _ctx.label ? (openBlock(), createElementBlock("label", _hoisted_2$a, toDisplayString(_ctx.label), 1)) : createCommentVNode("", true),
31089
+ _ctx.required && !pathKeys.value.length ? (openBlock(), createElementBlock("input", _hoisted_3$8)) : createCommentVNode("", true),
31189
31090
  _ctx.theme === "basic" ? (openBlock(), createBlock(unref(_sfc_main$$), {
31190
31091
  key: 2,
31191
31092
  outline: "",
@@ -31409,9 +31310,9 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
31409
31310
  };
31410
31311
  }
31411
31312
  });
31412
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-bd972fe8"]]);
31413
- const _hoisted_1$h = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
31414
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
31313
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-bd972fe8"]]);
31314
+ const _hoisted_1$i = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
31315
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
31415
31316
  __name: "IframeVue",
31416
31317
  props: {
31417
31318
  src: {},
@@ -31470,10 +31371,109 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31470
31371
  scrolling: _ctx.scrolling,
31471
31372
  srcset: _ctx.srcset,
31472
31373
  onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
31473
- }, null, 40, _hoisted_1$h);
31374
+ }, null, 40, _hoisted_1$i);
31375
+ };
31376
+ }
31377
+ });
31378
+ const _hoisted_1$h = { key: 0 };
31379
+ const _hoisted_2$9 = ["src", "alt", "width", "height"];
31380
+ const _hoisted_3$7 = ["src", "alt", "width", "height"];
31381
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
31382
+ __name: "Image",
31383
+ props: {
31384
+ src: {},
31385
+ pathKey: {},
31386
+ alt: { default: "" },
31387
+ width: {},
31388
+ height: {},
31389
+ caption: {}
31390
+ },
31391
+ setup(__props) {
31392
+ let imageSrc = ref(null);
31393
+ const fileBaseUrl = computed(() => "https://files.bagel.design".replace(/\/$/, ""));
31394
+ function pathToUrl() {
31395
+ var _a2;
31396
+ if ((_a2 = __props.pathKey) == null ? void 0 : _a2.startsWith("static/")) return `${void 0}/${__props.pathKey}`;
31397
+ return `${fileBaseUrl.value}/${__props.pathKey}`;
31398
+ }
31399
+ async function loadImage() {
31400
+ var _a2;
31401
+ const url = __props.src || pathToUrl();
31402
+ console.log(url);
31403
+ if (!url) {
31404
+ imageSrc.value = null;
31405
+ return;
31406
+ }
31407
+ const ext = (_a2 = url.split(".").pop()) == null ? void 0 : _a2.toLowerCase().split("?").shift();
31408
+ if (ext === "heic") {
31409
+ if (!("caches" in window)) {
31410
+ console.warn("Caching is not available. Proceeding without cache.");
31411
+ } else {
31412
+ try {
31413
+ const imgCache = await window.caches.open("img-cache");
31414
+ const cachedResponse = await imgCache.match(url);
31415
+ if (cachedResponse) {
31416
+ imageSrc.value = URL.createObjectURL(await cachedResponse.blob());
31417
+ return;
31418
+ }
31419
+ } catch (error) {
31420
+ console.warn("Error accessing cache:", error);
31421
+ }
31422
+ }
31423
+ try {
31424
+ await appendScript("https://cdnjs.cloudflare.com/ajax/libs/heic2any/0.0.1/index.min.js");
31425
+ const response = await fetch(url);
31426
+ const blob = await response.blob();
31427
+ const convertedBlob = await window.heic2any({ blob });
31428
+ imageSrc.value = URL.createObjectURL(convertedBlob);
31429
+ if ("caches" in window) {
31430
+ try {
31431
+ const imgCache = await window.caches.open("img-cache");
31432
+ imgCache.put(url, new Response(convertedBlob));
31433
+ } catch (cacheError) {
31434
+ console.warn("Failed to cache the image:", cacheError);
31435
+ }
31436
+ }
31437
+ } catch (error) {
31438
+ console.error("Error converting HEIC file:", error);
31439
+ }
31440
+ } else {
31441
+ imageSrc.value = url;
31442
+ }
31443
+ }
31444
+ watch(() => [__props.src, __props.pathKey], loadImage, { immediate: true });
31445
+ return (_ctx, _cache) => {
31446
+ return _ctx.caption ? (openBlock(), createElementBlock("figcaption", _hoisted_1$h, [
31447
+ unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
31448
+ key: 0,
31449
+ src: unref(imageSrc)
31450
+ }, _ctx.$attrs, {
31451
+ alt: _ctx.alt,
31452
+ width: unref(normalizeDimension)(_ctx.width),
31453
+ height: unref(normalizeDimension)(_ctx.height)
31454
+ }), null, 16, _hoisted_2$9)) : (openBlock(), createBlock(unref(Skeleton), {
31455
+ key: 1,
31456
+ class: "img-web-kit",
31457
+ width: unref(normalizeDimension)(_ctx.width),
31458
+ height: unref(normalizeDimension)(_ctx.height)
31459
+ }, null, 8, ["width", "height"]))
31460
+ ])) : unref(imageSrc) ? (openBlock(), createElementBlock("img", mergeProps({
31461
+ key: 1,
31462
+ src: unref(imageSrc)
31463
+ }, _ctx.$attrs, {
31464
+ alt: _ctx.alt,
31465
+ width: unref(normalizeDimension)(_ctx.width),
31466
+ height: unref(normalizeDimension)(_ctx.height)
31467
+ }), null, 16, _hoisted_3$7)) : (openBlock(), createBlock(unref(Skeleton), {
31468
+ key: 2,
31469
+ class: "img-web-kit",
31470
+ width: unref(normalizeDimension)(_ctx.width),
31471
+ height: unref(normalizeDimension)(_ctx.height)
31472
+ }, null, 8, ["width", "height"]));
31474
31473
  };
31475
31474
  }
31476
31475
  });
31476
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-29509e85"]]);
31477
31477
  const _hoisted_1$g = { class: "m-0 pb-025 txt14 line-height-1 w60 menu-text" };
31478
31478
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
31479
31479
  __name: "BottomMenu",
@@ -35561,7 +35561,7 @@ export {
35561
35561
  IMAGE_FORMATS,
35562
35562
  IMAGE_FORMATS_REGEXP,
35563
35563
  _sfc_main$d as Icon,
35564
- _sfc_main$p as IframeVue,
35564
+ _sfc_main$q as IframeVue,
35565
35565
  Image$1 as Image,
35566
35566
  JSONInput,
35567
35567
  Layout,
@@ -35579,7 +35579,7 @@ export {
35579
35579
  NumberInput,
35580
35580
  OTP,
35581
35581
  _sfc_main$8 as PageTitle,
35582
- _sfc_main$D as PasswordInput,
35582
+ _sfc_main$E as PasswordInput,
35583
35583
  Pill,
35584
35584
  RadioGroup,
35585
35585
  RadioPillsInput,
@@ -35588,7 +35588,7 @@ export {
35588
35588
  RouterWrapper,
35589
35589
  SelectInput,
35590
35590
  SidebarMenu,
35591
- _sfc_main$v as SignaturePad,
35591
+ _sfc_main$w as SignaturePad,
35592
35592
  Skeleton,
35593
35593
  TabbedLayout,
35594
35594
  TableField,