@bagelink/vue 1.2.69 → 1.2.73

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
@@ -85,7 +85,7 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
85
85
  key: 0,
86
86
  class: vue.normalizeClass(["accordion-icon", [_ctx.iconClass, { open: vue.unref(isOpen) && _ctx.iconType === "expand_more" }]])
87
87
  }, [
88
- vue.createVNode(vue.unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
88
+ vue.createVNode(vue.unref(_sfc_main$t), { icon: computedIcon.value }, null, 8, ["icon"])
89
89
  ], 2)) : vue.createCommentVNode("", true),
90
90
  vue.renderSlot(_ctx.$slots, "head", {}, () => [
91
91
  vue.createElementVNode("span", _hoisted_2$N, vue.toDisplayString(_ctx.label), 1)
@@ -94,7 +94,7 @@ const _sfc_main$1f = /* @__PURE__ */ vue.defineComponent({
94
94
  key: 1,
95
95
  class: vue.normalizeClass(["accordion-icon", [_ctx.iconClass, { open: vue.unref(isOpen) && _ctx.iconType === "expand_more" }]])
96
96
  }, [
97
- vue.createVNode(vue.unref(_sfc_main$s), { icon: computedIcon.value }, null, 8, ["icon"])
97
+ vue.createVNode(vue.unref(_sfc_main$t), { icon: computedIcon.value }, null, 8, ["icon"])
98
98
  ], 2)) : vue.createCommentVNode("", true)
99
99
  ], 8, _hoisted_1$13),
100
100
  vue.createVNode(vue.Transition, { name: "expand" }, {
@@ -146,7 +146,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
146
146
  }
147
147
  return (_ctx, _cache) => {
148
148
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$12, [
149
- vue.createVNode(vue.unref(_sfc_main$X), {
149
+ vue.createVNode(vue.unref(_sfc_main$Y), {
150
150
  ref_key: "suggestion",
151
151
  ref: suggestion,
152
152
  noAutoFocus: true,
@@ -164,7 +164,7 @@ const _sfc_main$1e = /* @__PURE__ */ vue.defineComponent({
164
164
  vue.createVNode(vue.unref(ListView), { class: "-mt-2 hm-300px" }, {
165
165
  default: vue.withCtx(() => [
166
166
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(searchResults), (result2, index2) => {
167
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$h), {
167
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$i), {
168
168
  key: index2,
169
169
  icon: "location_on",
170
170
  title: result2.display_name,
@@ -255,7 +255,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
255
255
  class: "h-100p",
256
256
  size: "15"
257
257
  })) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$11, [
258
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
258
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
259
259
  key: 0,
260
260
  icon: _ctx.icon,
261
261
  class: "transition-400"
@@ -264,7 +264,7 @@ const _sfc_main$1d = /* @__PURE__ */ vue.defineComponent({
264
264
  !vue.unref(slots).default && _ctx.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
265
265
  vue.createTextVNode(vue.toDisplayString(_ctx.value), 1)
266
266
  ], 64)) : vue.createCommentVNode("", true),
267
- _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
267
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
268
268
  key: 2,
269
269
  icon: _ctx.iconEnd,
270
270
  class: "transition-400"
@@ -304,7 +304,7 @@ const _sfc_main$1c = /* @__PURE__ */ vue.defineComponent({
304
304
  class: vue.normalizeClass(["alert", [_ctx.type, { thin: _ctx.thin, outline: _ctx.outline }]]),
305
305
  dismissable: _ctx.dismissable
306
306
  }, [
307
- _ctx.icon !== "none" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
307
+ _ctx.icon !== "none" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
308
308
  key: 0,
309
309
  class: "alert_icon",
310
310
  icon: _ctx.icon || _ctx.type,
@@ -366,13 +366,13 @@ const _sfc_main$1a = /* @__PURE__ */ vue.defineComponent({
366
366
  return vue.openBlock(), vue.createElementBlock("div", {
367
367
  class: vue.normalizeClass(["pill", [_ctx.color]])
368
368
  }, [
369
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
369
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
370
370
  key: 0,
371
371
  class: "inline",
372
372
  icon: _ctx.icon
373
373
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
374
374
  vue.createTextVNode(" " + vue.toDisplayString(_ctx.text) + " ", 1),
375
- _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
375
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
376
376
  key: 1,
377
377
  class: "inline",
378
378
  icon: _ctx.iconEnd
@@ -1498,7 +1498,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
1498
1498
  vue.createTextVNode(" " + vue.toDisplayString(vue.unref(fmtDate)(currentDate.value, { fmt: "YYYY" })), 1)
1499
1499
  ]),
1500
1500
  vue.createElementVNode("div", _hoisted_4$n, [
1501
- vue.createVNode(vue.unref(_sfc_main$X), {
1501
+ vue.createVNode(vue.unref(_sfc_main$Y), {
1502
1502
  thin: "",
1503
1503
  value: currentView.value,
1504
1504
  iconEnd: "keyboard_arrow_down",
@@ -1506,7 +1506,7 @@ const _sfc_main$13 = /* @__PURE__ */ vue.defineComponent({
1506
1506
  }, {
1507
1507
  default: vue.withCtx(() => [
1508
1508
  (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(views, (_2, key) => {
1509
- return vue.createVNode(vue.unref(_sfc_main$h), {
1509
+ return vue.createVNode(vue.unref(_sfc_main$i), {
1510
1510
  key,
1511
1511
  title: key,
1512
1512
  onClick: ($event) => handleViewChange(key)
@@ -1613,876 +1613,206 @@ const _sfc_main$12 = /* @__PURE__ */ vue.defineComponent({
1613
1613
  };
1614
1614
  }
1615
1615
  });
1616
- const _hoisted_1$T = { class: "carousel-wrapper" };
1616
+ const _hoisted_1$T = ["dir"];
1617
1617
  const _hoisted_2$F = {
1618
1618
  key: 0,
1619
- class: "carousel-dots"
1619
+ class: "dots"
1620
1620
  };
1621
- const _hoisted_3$z = ["aria-label", "onClick"];
1622
- const dragThreshold = 10;
1621
+ const _hoisted_3$z = ["onClick"];
1622
+ const GAP_PERCENT = 1;
1623
+ const VELOCITY_SAMPLE_DURATION = 100;
1623
1624
  const _sfc_main$11 = /* @__PURE__ */ vue.defineComponent({
1624
- __name: "Carousel2",
1625
+ __name: "Carousel",
1625
1626
  props: {
1626
- duration: { default: 200 },
1627
- easing: { default: "ease-out" },
1628
- perPage: {},
1629
- startIndex: { default: 0 },
1630
- draggable: { type: Boolean, default: true },
1631
- multipleDrag: { type: Boolean, default: true },
1632
- threshold: { default: 20 },
1633
- loop: { type: Boolean, default: true },
1627
+ autoHeight: { type: Boolean, default: false },
1628
+ allowScroll: { type: Boolean, default: true },
1629
+ freeDrag: { type: Boolean, default: true },
1630
+ items: { type: Number, default: 4 },
1631
+ index: { type: Number, default: 0 },
1634
1632
  rtl: { type: Boolean, default: false },
1635
- autoplay: { type: [Boolean, String], default: "disabled" },
1636
- autoplayInterval: { default: 3e3 },
1637
- autoplaySpeed: { default: 50 },
1638
- pauseOnHover: { type: Boolean, default: true },
1639
- dots: { type: Boolean, default: false },
1640
- slideWidth: { default: 300 },
1641
- onInit: {},
1642
- onChange: {}
1633
+ autoplay: { type: Boolean, default: false },
1634
+ autoPlaySpeed: { type: Number, default: 4e3 },
1635
+ dots: { type: Boolean, default: false }
1643
1636
  },
1644
- emits: ["init", "change"],
1637
+ emits: ["update:index"],
1645
1638
  setup(__props, { expose: __expose, emit: __emit }) {
1646
1639
  const props2 = __props;
1647
1640
  const emit2 = __emit;
1648
- const carouselRef = vue.ref(null);
1649
- const sliderFrame = vue.ref(null);
1650
- const innerElements = vue.ref([]);
1651
- const currentSlide = vue.ref(0);
1652
- const selectorWidth = vue.ref(0);
1653
- const { innerWidth } = useDevice();
1654
- const transformProperty = vue.ref("transform");
1655
- const pointerDown = vue.ref(false);
1656
- const drag = vue.ref({
1657
- startX: 0,
1658
- endX: 0,
1659
- startY: 0,
1660
- letItGo: null,
1661
- preventClick: false
1662
- });
1663
- const isDragging = vue.ref(false);
1664
- const autoplayTimer = vue.ref(null);
1665
- const linearAnimationFrame = vue.ref(null);
1666
- const isHovering = vue.ref(false);
1667
- const linearOffset = vue.ref(0);
1668
- const perPage = vue.computed(() => {
1669
- if (typeof props2.perPage === "number") {
1670
- return props2.perPage;
1671
- }
1672
- if (typeof props2.perPage === "object") {
1673
- return Object.entries(props2.perPage).reduce((acc, [viewport, value]) => innerWidth.value >= Number(viewport) ? value : acc, 1);
1674
- }
1675
- return Math.max(1, Math.ceil(selectorWidth.value / props2.slideWidth));
1676
- });
1677
- const config = vue.computed(() => {
1678
- let autoplayMode = "disabled";
1679
- if (typeof props2.autoplay === "boolean") {
1680
- autoplayMode = props2.autoplay ? "standard" : "disabled";
1681
- } else {
1682
- autoplayMode = props2.autoplay;
1683
- }
1684
- const calculatedPerPage = perPage.value;
1685
- return {
1686
- duration: props2.duration,
1687
- easing: props2.easing,
1688
- perPage: calculatedPerPage,
1689
- startIndex: props2.startIndex,
1690
- draggable: props2.draggable,
1691
- multipleDrag: props2.multipleDrag,
1692
- threshold: props2.threshold,
1693
- loop: props2.loop,
1694
- rtl: props2.rtl,
1695
- autoplay: autoplayMode,
1696
- autoplayInterval: props2.autoplayInterval,
1697
- autoplaySpeed: props2.autoplaySpeed,
1698
- pauseOnHover: props2.pauseOnHover,
1699
- dots: props2.dots,
1700
- slideWidth: props2.slideWidth,
1701
- onInit: () => {
1702
- emit2("init");
1703
- },
1704
- onChange: () => {
1705
- emit2("change");
1706
- }
1707
- };
1708
- });
1709
- const totalDots = vue.computed(() => {
1710
- if (!innerElements.value.length) return 0;
1711
- return config.value.loop ? innerElements.value.length : Math.ceil(innerElements.value.length - perPage.value + 1);
1712
- });
1713
- vue.onMounted(() => init());
1714
- vue.onBeforeUnmount(() => {
1715
- stopAutoplay();
1716
- detachEvents();
1717
- });
1718
- vue.watch(() => props2, () => {
1719
- resizeHandler();
1720
- }, { deep: true });
1721
- function webkitOrNot() {
1722
- const { style } = document.documentElement;
1723
- if (typeof style.transform === "string") {
1724
- return "transform";
1725
- }
1726
- return "WebkitTransform";
1641
+ const ANIMATION_TIMINGS = {
1642
+ TOUCH: 150,
1643
+ MOBILE: 420,
1644
+ DESKTOP: 840,
1645
+ MAX_DURATION: 300,
1646
+ BASE_DURATION: 150,
1647
+ DURATION_PER_PANEL: 50
1648
+ };
1649
+ const THRESHOLDS = {
1650
+ DRAG: 20,
1651
+ TOUCH: 5,
1652
+ SWIPE_PERCENT: 0.1,
1653
+ VELOCITY: 0.15,
1654
+ WHEEL_PERCENT: 0.3
1655
+ };
1656
+ const bglSlider = vue.ref();
1657
+ const isSliderAvailable = vue.computed(() => !!bglSlider.value);
1658
+ let itemCount = vue.ref(props2.items);
1659
+ let activeSlideIndex = vue.ref(props2.index);
1660
+ let slideCount = vue.ref(0);
1661
+ let yHeight = vue.ref("auto");
1662
+ let isDragging = vue.ref(false);
1663
+ let isPressed = vue.ref(false);
1664
+ let startX = vue.ref(0);
1665
+ let startY = vue.ref(0);
1666
+ let translateX2 = vue.ref(0);
1667
+ let lastX = vue.ref(0);
1668
+ let lastTime = vue.ref(0);
1669
+ let accumulatedDeltaX = vue.ref(0);
1670
+ let wheelTimeout;
1671
+ let autoPlayInterval;
1672
+ let velocityTracker = vue.ref([]);
1673
+ function getAverageVelocity() {
1674
+ if (velocityTracker.value.length < 2) return 0;
1675
+ const now = Date.now();
1676
+ const recentSamples = velocityTracker.value.filter((sample) => now - sample.time < VELOCITY_SAMPLE_DURATION);
1677
+ if (recentSamples.length < 2) return 0;
1678
+ const first = recentSamples[0];
1679
+ const last = recentSamples[recentSamples.length - 1];
1680
+ const timeDelta2 = last.time - first.time;
1681
+ if (timeDelta2 === 0) return 0;
1682
+ return (last.position - first.position) / timeDelta2;
1727
1683
  }
1728
- function attachEvents() {
1729
- window.addEventListener("resize", resizeHandler);
1730
- if (config.value.draggable && carouselRef.value) {
1731
- const eventOptions = { passive: true };
1732
- const touchMoveOptions = { passive: false };
1733
- const mouseMoveOptions = { passive: false };
1734
- const mouseDownOptions = { passive: false };
1735
- carouselRef.value.addEventListener("touchstart", touchstartHandler, eventOptions);
1736
- carouselRef.value.addEventListener("touchend", touchendHandler, eventOptions);
1737
- carouselRef.value.addEventListener("touchmove", touchmoveHandler, touchMoveOptions);
1738
- carouselRef.value.addEventListener("mousedown", mousedownHandler, mouseDownOptions);
1739
- carouselRef.value.addEventListener("mouseup", mouseupHandler, eventOptions);
1740
- carouselRef.value.addEventListener("mouseleave", mouseleaveHandler, eventOptions);
1741
- carouselRef.value.addEventListener("mousemove", mousemoveHandler, mouseMoveOptions);
1742
- carouselRef.value.addEventListener("dragstart", dragstartHandler);
1743
- carouselRef.value.addEventListener("click", clickHandler2);
1744
- }
1745
- if (config.value.autoplay !== "disabled" && config.value.pauseOnHover && carouselRef.value) {
1746
- carouselRef.value.addEventListener("mouseenter", mouseenterHandler);
1747
- carouselRef.value.addEventListener("mouseleave", mouseleaveAutoplayHandler);
1748
- }
1684
+ function getCurrentTransform() {
1685
+ if (!bglSlider.value) return 0;
1686
+ const { transform } = bglSlider.value.style;
1687
+ const value = transform ? Number.parseInt(transform.replace(/[^-\d.]/g, "")) : 0;
1688
+ return props2.rtl ? -value : value;
1749
1689
  }
1750
- function detachEvents() {
1751
- window.removeEventListener("resize", resizeHandler);
1752
- if (carouselRef.value) {
1753
- carouselRef.value.removeEventListener("touchstart", touchstartHandler);
1754
- carouselRef.value.removeEventListener("touchend", touchendHandler);
1755
- carouselRef.value.removeEventListener("touchmove", touchmoveHandler);
1756
- carouselRef.value.removeEventListener("mousedown", mousedownHandler);
1757
- carouselRef.value.removeEventListener("mouseup", mouseupHandler);
1758
- carouselRef.value.removeEventListener("mouseleave", mouseleaveHandler);
1759
- carouselRef.value.removeEventListener("mousemove", mousemoveHandler);
1760
- carouselRef.value.removeEventListener("dragstart", dragstartHandler);
1761
- carouselRef.value.removeEventListener("click", clickHandler2);
1762
- carouselRef.value.removeEventListener("mouseenter", mouseenterHandler);
1763
- carouselRef.value.removeEventListener("mouseleave", mouseleaveAutoplayHandler);
1764
- }
1690
+ function setTransform(value) {
1691
+ if (!bglSlider.value) return;
1692
+ const rtlValue = props2.rtl ? -value : value;
1693
+ bglSlider.value.style.transform = `translateX(${rtlValue}px)`;
1765
1694
  }
1766
- async function init() {
1767
- if (!carouselRef.value) return;
1768
- transformProperty.value = webkitOrNot();
1769
- await sleep(10);
1770
- innerElements.value = Array.from(carouselRef.value.children);
1771
- if (!innerElements.value.length) {
1772
- console.warn("No carousel items found during initialization");
1773
- return;
1774
- }
1775
- selectorWidth.value = carouselRef.value.offsetWidth;
1776
- currentSlide.value = config.value.loop ? config.value.startIndex % innerElements.value.length : Math.max(0, Math.min(config.value.startIndex, innerElements.value.length - perPage.value));
1777
- carouselRef.value.style.overflow = "hidden";
1778
- carouselRef.value.style.direction = config.value.rtl ? "rtl" : "ltr";
1779
- attachEvents();
1780
- await vue.nextTick();
1781
- buildSliderFrame();
1782
- if (config.value.autoplay !== "disabled") {
1783
- startAutoplay();
1784
- }
1785
- config.value.onInit();
1695
+ function easeInOutQuad(t) {
1696
+ return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
1786
1697
  }
1787
- function buildSliderFrame() {
1788
- if (!carouselRef.value) return;
1789
- if (!innerElements.value.length) {
1790
- console.warn("No carousel items found");
1791
- return;
1792
- }
1793
- const widthItem = selectorWidth.value / perPage.value;
1794
- const itemsToBuild = config.value.loop ? innerElements.value.length + 2 * perPage.value : innerElements.value.length;
1795
- if (!sliderFrame.value) {
1796
- sliderFrame.value = document.createElement("div");
1797
- }
1798
- sliderFrame.value.style.width = `${widthItem * itemsToBuild}px`;
1799
- enableTransition();
1800
- if (config.value.draggable && carouselRef.value) {
1801
- carouselRef.value.style.cursor = "-webkit-grab";
1802
- }
1803
- const docFragment = document.createDocumentFragment();
1804
- if (config.value.loop && innerElements.value.length > 0) {
1805
- for (let i2 = innerElements.value.length - perPage.value; i2 < innerElements.value.length; i2++) {
1806
- if (i2 >= 0 && i2 < innerElements.value.length) {
1807
- const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
1808
- docFragment.appendChild(element);
1809
- }
1810
- }
1811
- }
1812
- for (let i2 = 0; i2 < innerElements.value.length; i2++) {
1813
- const element = buildSliderFrameItem(innerElements.value[i2]);
1814
- docFragment.appendChild(element);
1815
- }
1816
- if (config.value.loop && innerElements.value.length > 0) {
1817
- for (let i2 = 0; i2 < perPage.value; i2++) {
1818
- if (i2 >= 0 && i2 < innerElements.value.length) {
1819
- const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
1820
- docFragment.appendChild(element);
1821
- }
1822
- }
1823
- }
1824
- if (sliderFrame.value) {
1825
- sliderFrame.value.innerHTML = "";
1826
- sliderFrame.value.appendChild(docFragment);
1827
- if (carouselRef.value) {
1828
- carouselRef.value.innerHTML = "";
1829
- carouselRef.value.appendChild(sliderFrame.value);
1830
- }
1698
+ function animateTransform(start, end, duration) {
1699
+ const startTime = performance.now();
1700
+ function animate(currentTime) {
1701
+ if (!isSliderAvailable.value) return;
1702
+ const timeElapsed = currentTime - startTime;
1703
+ const progress = Math.min(timeElapsed / duration, 1);
1704
+ const currentTransform = start + (end - start) * easeInOutQuad(progress);
1705
+ setTransform(currentTransform);
1706
+ if (progress < 1) requestAnimationFrame(animate);
1831
1707
  }
1832
- slideToCurrent();
1708
+ requestAnimationFrame(animate);
1833
1709
  }
1834
- function buildSliderFrameItem(elm) {
1835
- const elementContainer = document.createElement("div");
1836
- elementContainer.style.cssFloat = config.value.rtl ? "right" : "left";
1837
- elementContainer.style.float = config.value.rtl ? "right" : "left";
1838
- const percentage = config.value.loop ? 100 / (innerElements.value.length + perPage.value * 2) : 100 / innerElements.value.length;
1839
- elementContainer.style.width = `${percentage}%`;
1840
- elementContainer.appendChild(elm);
1841
- return elementContainer;
1710
+ function goToSlide(index2, isTouchNav = false) {
1711
+ countSlides();
1712
+ if (!isSliderAvailable.value || !bglSlider.value || index2 < 0 || index2 >= slideCount.value) return;
1713
+ const containerWidth = bglSlider.value.offsetWidth;
1714
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1715
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1716
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1717
+ const gapsBeforeSlide = index2 * gapWidth;
1718
+ const targetTransform = -(singleItemWidth * index2 + gapsBeforeSlide);
1719
+ const currentTransform = getCurrentTransform();
1720
+ const duration = isTouchNav ? ANIMATION_TIMINGS.TOUCH : window.innerWidth < 600 ? ANIMATION_TIMINGS.MOBILE : ANIMATION_TIMINGS.DESKTOP;
1721
+ animateTransform(currentTransform, targetTransform, duration);
1722
+ activeSlideIndex.value = index2;
1723
+ updateHeight();
1842
1724
  }
1843
- function slideToCurrent(enableTransitionFlag) {
1844
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
1845
- const offset2 = (config.value.rtl ? 1 : -1) * currentSlideValue * (selectorWidth.value / perPage.value);
1846
- if (enableTransitionFlag && sliderFrame.value) {
1847
- requestAnimationFrame(() => {
1848
- requestAnimationFrame(() => {
1849
- enableTransition();
1850
- if (sliderFrame.value) {
1851
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
1852
- }
1853
- });
1854
- });
1855
- } else if (sliderFrame.value) {
1856
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
1857
- }
1725
+ function next() {
1726
+ if (!isSliderAvailable.value) return;
1727
+ countSlides();
1728
+ const nextIndex = props2.rtl ? (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value : (activeSlideIndex.value + 1) % slideCount.value;
1729
+ goToSlide(nextIndex);
1858
1730
  }
1859
- function prev(howManySlides = 1) {
1860
- if (innerElements.value.length <= perPage.value) {
1861
- return;
1862
- }
1863
- const beforeChange = currentSlide.value;
1864
- if (config.value.loop) {
1865
- const isNewIndexClone = currentSlide.value - howManySlides < 0;
1866
- if (isNewIndexClone) {
1867
- disableTransition();
1868
- const mirrorSlideIndex = currentSlide.value + innerElements.value.length;
1869
- const mirrorSlideIndexOffset = perPage.value;
1870
- const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
1871
- const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
1872
- const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
1873
- if (sliderFrame.value) {
1874
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
1875
- }
1876
- currentSlide.value = mirrorSlideIndex - howManySlides;
1877
- } else {
1878
- currentSlide.value = currentSlide.value - howManySlides;
1879
- }
1880
- } else {
1881
- currentSlide.value = Math.max(currentSlide.value - howManySlides, 0);
1882
- }
1883
- if (beforeChange !== currentSlide.value) {
1884
- slideToCurrent(config.value.loop);
1885
- config.value.onChange();
1886
- }
1731
+ function prev() {
1732
+ if (!isSliderAvailable.value) return;
1733
+ countSlides();
1734
+ const prevIndex = props2.rtl ? (activeSlideIndex.value + 1) % slideCount.value : (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value;
1735
+ goToSlide(prevIndex);
1887
1736
  }
1888
- function next(howManySlides = 1) {
1889
- if (innerElements.value.length <= perPage.value) {
1890
- return;
1891
- }
1892
- const beforeChange = currentSlide.value;
1893
- if (config.value.loop) {
1894
- const isNewIndexClone = currentSlide.value + howManySlides > innerElements.value.length - perPage.value;
1895
- if (isNewIndexClone) {
1896
- disableTransition();
1897
- const mirrorSlideIndex = currentSlide.value - innerElements.value.length;
1898
- const mirrorSlideIndexOffset = perPage.value;
1899
- const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
1900
- const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
1901
- const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
1902
- if (sliderFrame.value) {
1903
- sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
1904
- }
1905
- currentSlide.value = mirrorSlideIndex + howManySlides;
1906
- } else {
1907
- currentSlide.value = currentSlide.value + howManySlides;
1908
- }
1909
- } else {
1910
- currentSlide.value = Math.min(currentSlide.value + howManySlides, innerElements.value.length - perPage.value);
1911
- }
1912
- if (beforeChange !== currentSlide.value) {
1913
- slideToCurrent(config.value.loop);
1914
- config.value.onChange();
1737
+ function calcHeight() {
1738
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1739
+ try {
1740
+ const activeSlide = bglSlider.value.children[activeSlideIndex.value];
1741
+ if (!activeSlide) return;
1742
+ const children2 = Array.from(activeSlide.children);
1743
+ const totalHeight = children2.reduce((sum, el) => sum + el.clientHeight, 0);
1744
+ yHeight.value = `${totalHeight}px`;
1745
+ } catch (error) {
1746
+ console.error("Error calculating height:", error);
1915
1747
  }
1916
1748
  }
1917
- function goTo(index2) {
1918
- if (innerElements.value.length <= perPage.value) {
1919
- return;
1920
- }
1921
- const beforeChange = currentSlide.value;
1922
- currentSlide.value = config.value.loop ? index2 % innerElements.value.length : Math.min(Math.max(index2, 0), innerElements.value.length - perPage.value);
1923
- if (beforeChange !== currentSlide.value) {
1924
- slideToCurrent();
1925
- config.value.onChange();
1926
- }
1749
+ function updateHeight() {
1750
+ if (!props2.autoHeight) return;
1751
+ setTimeout(calcHeight, 200);
1927
1752
  }
1928
- function disableTransition() {
1929
- if (sliderFrame.value) {
1930
- sliderFrame.value.style.webkitTransition = `all 0ms ${config.value.easing}`;
1931
- sliderFrame.value.style.transition = `all 0ms ${config.value.easing}`;
1932
- }
1753
+ function countSlides() {
1754
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1755
+ slideCount.value = bglSlider.value.children.length;
1933
1756
  }
1934
- function enableTransition() {
1935
- if (sliderFrame.value) {
1936
- sliderFrame.value.style.webkitTransition = `all ${config.value.duration}ms ${config.value.easing}`;
1937
- sliderFrame.value.style.transition = `all ${config.value.duration}ms ${config.value.easing}`;
1757
+ function handleSlideChange() {
1758
+ if (props2.index !== activeSlideIndex.value) {
1759
+ emit2("update:index", activeSlideIndex.value);
1938
1760
  }
1939
1761
  }
1940
- function updateAfterDrag() {
1941
- const movement = (config.value.rtl ? -1 : 1) * (drag.value.endX - drag.value.startX);
1942
- const movementDistance = Math.abs(movement);
1943
- const howManySliderToSlide = config.value.multipleDrag ? Math.ceil(movementDistance / (selectorWidth.value / perPage.value)) : 1;
1944
- const slideToNegativeClone = movement > 0 && currentSlide.value - howManySliderToSlide < 0;
1945
- const slideToPositiveClone = movement < 0 && currentSlide.value + howManySliderToSlide > innerElements.value.length - perPage.value;
1946
- if (movement > 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
1947
- prev(howManySliderToSlide);
1948
- } else if (movement < 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
1949
- next(howManySliderToSlide);
1950
- }
1951
- slideToCurrent(slideToNegativeClone || slideToPositiveClone);
1762
+ function handleResize() {
1763
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1764
+ itemCount.value = window.innerWidth < 600 ? 1 : window.innerWidth < 991 ? Math.min(props2.items, 2) : props2.items;
1765
+ const containerWidth = bglSlider.value.offsetWidth;
1766
+ const gapWidth = containerWidth * GAP_PERCENT / 100;
1767
+ const totalGapWidth = (itemCount.value - 1) * gapWidth;
1768
+ const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
1769
+ const gapsBeforeSlide = activeSlideIndex.value * gapWidth;
1770
+ const targetTransform = -(singleItemWidth * activeSlideIndex.value + gapsBeforeSlide);
1771
+ setTransform(targetTransform);
1772
+ updateHeight();
1952
1773
  }
1953
- function resizeHandler() {
1954
- if (currentSlide.value + perPage.value > innerElements.value.length) {
1955
- currentSlide.value = innerElements.value.length <= perPage.value ? 0 : innerElements.value.length - perPage.value;
1956
- }
1957
- if (carouselRef.value) {
1958
- selectorWidth.value = carouselRef.value.offsetWidth;
1774
+ function clearAutoplay() {
1775
+ if (autoPlayInterval) clearInterval(autoPlayInterval);
1776
+ }
1777
+ function preventDefaultClick(e) {
1778
+ if (isDragging.value) {
1779
+ e.preventDefault();
1780
+ e.stopPropagation();
1959
1781
  }
1960
- buildSliderFrame();
1961
1782
  }
1962
- function clearDrag() {
1963
- drag.value = {
1964
- startX: 0,
1965
- endX: 0,
1966
- startY: 0,
1967
- letItGo: null,
1968
- preventClick: drag.value.preventClick
1969
- };
1783
+ async function disableDrag() {
1784
+ await vue.nextTick();
1785
+ if (!isSliderAvailable.value || !bglSlider.value) return;
1786
+ const elements = Array.from(bglSlider.value.querySelectorAll("img, a"));
1787
+ elements.forEach((el) => {
1788
+ el.setAttribute("draggable", "false");
1789
+ el.removeEventListener("click", preventDefaultClick, true);
1790
+ el.addEventListener("click", preventDefaultClick, true);
1791
+ });
1792
+ const slides = Array.from(bglSlider.value.children);
1793
+ slides.forEach((slide) => {
1794
+ const element = slide;
1795
+ element.setAttribute("draggable", "false");
1796
+ element.removeEventListener("click", preventDefaultClick, true);
1797
+ element.addEventListener("click", preventDefaultClick, true);
1798
+ });
1970
1799
  }
1971
- function touchstartHandler(e) {
1972
- const target = e.target;
1973
- const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
1974
- if (ignoreTags) {
1975
- return;
1976
- }
1977
- stopAutoplay();
1800
+ function startDrag(e) {
1978
1801
  e.stopPropagation();
1979
- pointerDown.value = true;
1802
+ if (e.button !== 0 || !props2.freeDrag || !isSliderAvailable.value) return;
1803
+ clearAutoplay();
1804
+ startX.value = e.pageX;
1805
+ translateX2.value = getCurrentTransform();
1806
+ isPressed.value = true;
1980
1807
  isDragging.value = false;
1981
- drag.value.startX = e.touches[0].pageX;
1982
- drag.value.startY = e.touches[0].pageY;
1983
- const isLink = target.tagName === "A" || target.closest("a");
1984
- const isImage = target.tagName === "IMG";
1985
- if (isLink || isImage) {
1986
- drag.value.preventClick = false;
1987
- }
1808
+ document.addEventListener("mousemove", onDrag);
1809
+ document.addEventListener("mouseup", endDrag);
1988
1810
  }
1989
- function touchendHandler(e) {
1990
- e.stopPropagation();
1991
- if (isDragging.value) {
1992
- document.addEventListener("click", function preventClickAfterDrag(event) {
1993
- event.preventDefault();
1994
- event.stopPropagation();
1995
- event.stopImmediatePropagation();
1996
- document.removeEventListener("click", preventClickAfterDrag, true);
1997
- }, { capture: true, once: true });
1998
- }
1999
- pointerDown.value = false;
2000
- isDragging.value = false;
2001
- enableTransition();
2002
- if (drag.value.endX) {
2003
- updateAfterDrag();
2004
- }
2005
- clearDrag();
2006
- if (config.value.autoplay !== "disabled") {
2007
- startAutoplay();
2008
- }
2009
- }
2010
- function touchmoveHandler(e) {
2011
- e.stopPropagation();
2012
- if (drag.value.letItGo === null) {
2013
- drag.value.letItGo = Math.abs(drag.value.startY - e.touches[0].pageY) < Math.abs(drag.value.startX - e.touches[0].pageX);
2014
- }
2015
- if (pointerDown.value && drag.value.letItGo) {
2016
- e.preventDefault();
2017
- drag.value.endX = e.touches[0].pageX;
2018
- const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
2019
- if (dragDistance > dragThreshold) {
2020
- isDragging.value = true;
2021
- drag.value.preventClick = true;
2022
- }
2023
- if (sliderFrame.value) {
2024
- disableTransition();
2025
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
2026
- const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
2027
- const dragOffset = drag.value.endX - drag.value.startX;
2028
- const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
2029
- sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
2030
- }
2031
- }
2032
- }
2033
- function mousedownHandler(e) {
2034
- const target = e.target;
2035
- const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
2036
- if (ignoreTags) return;
2037
- stopAutoplay();
2038
- e.preventDefault();
2039
- e.stopPropagation();
2040
- pointerDown.value = true;
2041
- isDragging.value = false;
2042
- drag.value.startX = e.pageX;
2043
- const isLink = target.tagName === "A" || target.closest("a");
2044
- const isImage = target.tagName === "IMG";
2045
- if (isLink || isImage) {
2046
- drag.value.preventClick = false;
2047
- }
2048
- }
2049
- function mouseupHandler(e) {
2050
- e.stopPropagation();
2051
- if (isDragging.value) {
2052
- document.addEventListener("click", function preventClickAfterDrag(event) {
2053
- event.preventDefault();
2054
- event.stopPropagation();
2055
- event.stopImmediatePropagation();
2056
- document.removeEventListener("click", preventClickAfterDrag, true);
2057
- }, { capture: true, once: true });
2058
- }
2059
- pointerDown.value = false;
2060
- isDragging.value = false;
2061
- if (carouselRef.value) {
2062
- carouselRef.value.style.cursor = "-webkit-grab";
2063
- }
2064
- enableTransition();
2065
- if (drag.value.endX) {
2066
- updateAfterDrag();
2067
- }
2068
- clearDrag();
2069
- if (config.value.autoplay !== "disabled" && !isHovering.value) {
2070
- startAutoplay();
2071
- }
2072
- }
2073
- function mousemoveHandler(e) {
2074
- e.preventDefault();
2075
- if (pointerDown.value) {
2076
- drag.value.endX = e.pageX;
2077
- const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
2078
- if (dragDistance > dragThreshold) {
2079
- isDragging.value = true;
2080
- drag.value.preventClick = true;
2081
- }
2082
- if (carouselRef.value) {
2083
- carouselRef.value.style.cursor = "-webkit-grabbing";
2084
- }
2085
- if (sliderFrame.value) {
2086
- disableTransition();
2087
- const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
2088
- const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
2089
- const dragOffset = drag.value.endX - drag.value.startX;
2090
- const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
2091
- sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
2092
- }
2093
- }
2094
- }
2095
- function mouseleaveHandler(e) {
2096
- if (pointerDown.value) {
2097
- pointerDown.value = false;
2098
- if (carouselRef.value) {
2099
- carouselRef.value.style.cursor = "-webkit-grab";
2100
- }
2101
- drag.value.endX = e.pageX;
2102
- drag.value.preventClick = false;
2103
- enableTransition();
2104
- updateAfterDrag();
2105
- clearDrag();
2106
- }
2107
- }
2108
- function clickHandler2(e) {
2109
- if (drag.value.preventClick || isDragging.value) {
2110
- e.preventDefault();
2111
- e.stopPropagation();
2112
- e.stopImmediatePropagation();
2113
- drag.value.preventClick = false;
2114
- }
2115
- drag.value.preventClick = false;
2116
- }
2117
- function dragstartHandler(e) {
2118
- var _a;
2119
- if (config.value.draggable) {
2120
- const target = e.target;
2121
- const isDraggableElement = target.tagName === "IMG" || target.tagName === "A" || ((_a = target.parentElement) == null ? void 0 : _a.tagName) === "A";
2122
- if (isDraggableElement) {
2123
- e.preventDefault();
2124
- }
2125
- }
2126
- }
2127
- function remove2(index2) {
2128
- if (index2 < 0 || index2 >= innerElements.value.length) {
2129
- throw new Error("Item to remove doesn't exist 😭");
2130
- }
2131
- const lowerIndex = index2 < currentSlide.value;
2132
- const lastItem = currentSlide.value + perPage.value - 1 === index2;
2133
- if (lowerIndex || lastItem) {
2134
- currentSlide.value--;
2135
- }
2136
- innerElements.value.splice(index2, 1);
2137
- buildSliderFrame();
2138
- }
2139
- function insert(item, index2) {
2140
- if (index2 < 0 || index2 > innerElements.value.length + 1) {
2141
- throw new Error("Unable to insert at this index 😭");
2142
- }
2143
- if (innerElements.value.includes(item)) {
2144
- throw new Error("The same item in a carousel? Really? Nope 😭");
2145
- }
2146
- const shouldItShift = index2 <= currentSlide.value && innerElements.value.length > 0;
2147
- if (shouldItShift) {
2148
- currentSlide.value++;
2149
- }
2150
- innerElements.value.splice(index2, 0, item);
2151
- buildSliderFrame();
2152
- }
2153
- function prepend(item) {
2154
- insert(item, 0);
2155
- }
2156
- function append3(item) {
2157
- insert(item, innerElements.value.length);
2158
- }
2159
- function destroy2(restoreMarkup = false) {
2160
- detachEvents();
2161
- if (carouselRef.value) {
2162
- carouselRef.value.style.cursor = "auto";
2163
- if (restoreMarkup) {
2164
- const slides = document.createDocumentFragment();
2165
- for (let i2 = 0; i2 < innerElements.value.length; i2++) {
2166
- slides.appendChild(innerElements.value[i2]);
2167
- }
2168
- carouselRef.value.innerHTML = "";
2169
- carouselRef.value.appendChild(slides);
2170
- carouselRef.value.removeAttribute("style");
2171
- }
2172
- }
2173
- }
2174
- async function startAutoplay() {
2175
- stopAutoplay();
2176
- if (config.value.autoplay === "standard") {
2177
- autoplayTimer.value = window.setInterval(() => {
2178
- if (!isHovering.value) {
2179
- next();
2180
- }
2181
- }, config.value.autoplayInterval);
2182
- } else if (config.value.autoplay === "linear") {
2183
- startLinearAutoplay();
2184
- }
2185
- }
2186
- function stopAutoplay() {
2187
- if (autoplayTimer.value !== null) {
2188
- clearInterval(autoplayTimer.value);
2189
- autoplayTimer.value = null;
2190
- }
2191
- if (linearAnimationFrame.value !== null) {
2192
- cancelAnimationFrame(linearAnimationFrame.value);
2193
- linearAnimationFrame.value = null;
2194
- }
2195
- }
2196
- function startLinearAutoplay() {
2197
- linearOffset.value = 0;
2198
- let lastTimestamp = 0;
2199
- const animate = (timestamp2) => {
2200
- if (!lastTimestamp) lastTimestamp = timestamp2;
2201
- const elapsed = timestamp2 - lastTimestamp;
2202
- lastTimestamp = timestamp2;
2203
- if (isHovering.value) {
2204
- linearAnimationFrame.value = requestAnimationFrame(animate);
2205
- return;
2206
- }
2207
- const pixelsToMove = elapsed / 1e3 * config.value.autoplaySpeed;
2208
- linearOffset.value += pixelsToMove;
2209
- const itemWidth = selectorWidth.value / perPage.value;
2210
- const totalWidth = itemWidth * innerElements.value.length;
2211
- if (linearOffset.value >= totalWidth) {
2212
- if (config.value.loop) {
2213
- linearOffset.value = 0;
2214
- } else {
2215
- linearOffset.value = totalWidth - itemWidth;
2216
- stopAutoplay();
2217
- return;
2218
- }
2219
- }
2220
- if (sliderFrame.value) {
2221
- const direction = config.value.rtl ? 1 : -1;
2222
- sliderFrame.value.style.transition = "none";
2223
- sliderFrame.value.style[transformProperty.value] = `translate3d(${direction * linearOffset.value}px, 0, 0)`;
2224
- }
2225
- const newSlide = Math.floor(linearOffset.value / itemWidth) % innerElements.value.length;
2226
- if (newSlide !== currentSlide.value) {
2227
- currentSlide.value = newSlide;
2228
- config.value.onChange();
2229
- }
2230
- linearAnimationFrame.value = requestAnimationFrame(animate);
2231
- };
2232
- linearAnimationFrame.value = requestAnimationFrame(animate);
2233
- }
2234
- function mouseenterHandler() {
2235
- isHovering.value = true;
2236
- }
2237
- function mouseleaveAutoplayHandler() {
2238
- isHovering.value = false;
2239
- }
2240
- function pauseAutoplay() {
2241
- stopAutoplay();
2242
- }
2243
- function resumeAutoplay() {
2244
- if (config.value.autoplay !== "disabled") {
2245
- startAutoplay();
2246
- }
2247
- }
2248
- __expose({
2249
- prev,
2250
- next,
2251
- goTo,
2252
- remove: remove2,
2253
- insert,
2254
- prepend,
2255
- append: append3,
2256
- destroy: destroy2,
2257
- currentSlide,
2258
- pauseAutoplay,
2259
- resumeAutoplay
2260
- });
2261
- return (_ctx, _cache) => {
2262
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$T, [
2263
- vue.createElementVNode("div", {
2264
- ref_key: "carouselRef",
2265
- ref: carouselRef,
2266
- class: "carousel-container"
2267
- }, [
2268
- vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
2269
- ], 512),
2270
- props2.dots && totalDots.value > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
2271
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(totalDots.value, (i2) => {
2272
- return vue.openBlock(), vue.createElementBlock("button", {
2273
- key: i2,
2274
- type: "button",
2275
- class: vue.normalizeClass(["carousel-dot", [{ active: i2 - 1 === currentSlide.value }]]),
2276
- "aria-label": `Go to slide ${i2}`,
2277
- onClick: ($event) => goTo(i2 - 1)
2278
- }, null, 10, _hoisted_3$z);
2279
- }), 128))
2280
- ])) : vue.createCommentVNode("", true)
2281
- ]);
2282
- };
2283
- }
2284
- });
2285
- const Carousel2 = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-6de4176c"]]);
2286
- const _hoisted_1$S = ["dir"];
2287
- const _hoisted_2$E = {
2288
- key: 0,
2289
- class: "dots"
2290
- };
2291
- const _hoisted_3$y = ["onClick"];
2292
- const GAP_PERCENT = 1;
2293
- const VELOCITY_SAMPLE_DURATION = 100;
2294
- const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
2295
- __name: "Carousel",
2296
- props: {
2297
- autoHeight: { type: Boolean, default: false },
2298
- allowScroll: { type: Boolean, default: true },
2299
- freeDrag: { type: Boolean, default: true },
2300
- items: { type: Number, default: 4 },
2301
- index: { type: Number, default: 0 },
2302
- rtl: { type: Boolean, default: false },
2303
- autoplay: { type: Boolean, default: false },
2304
- autoPlaySpeed: { type: Number, default: 4e3 },
2305
- dots: { type: Boolean, default: false }
2306
- },
2307
- emits: ["update:index"],
2308
- setup(__props, { expose: __expose, emit: __emit }) {
2309
- const props2 = __props;
2310
- const emit2 = __emit;
2311
- const ANIMATION_TIMINGS = {
2312
- TOUCH: 150,
2313
- MOBILE: 420,
2314
- DESKTOP: 840,
2315
- MAX_DURATION: 300,
2316
- BASE_DURATION: 150,
2317
- DURATION_PER_PANEL: 50
2318
- };
2319
- const THRESHOLDS = {
2320
- DRAG: 20,
2321
- TOUCH: 5,
2322
- SWIPE_PERCENT: 0.1,
2323
- VELOCITY: 0.15,
2324
- WHEEL_PERCENT: 0.3
2325
- };
2326
- const bglSlider = vue.ref();
2327
- const isSliderAvailable = vue.computed(() => !!bglSlider.value);
2328
- let itemCount = vue.ref(props2.items);
2329
- let activeSlideIndex = vue.ref(props2.index);
2330
- let slideCount = vue.ref(0);
2331
- let yHeight = vue.ref("auto");
2332
- let isDragging = vue.ref(false);
2333
- let isPressed = vue.ref(false);
2334
- let startX = vue.ref(0);
2335
- let startY = vue.ref(0);
2336
- let translateX2 = vue.ref(0);
2337
- let lastX = vue.ref(0);
2338
- let lastTime = vue.ref(0);
2339
- let accumulatedDeltaX = vue.ref(0);
2340
- let wheelTimeout;
2341
- let autoPlayInterval;
2342
- let velocityTracker = vue.ref([]);
2343
- function getAverageVelocity() {
2344
- if (velocityTracker.value.length < 2) return 0;
2345
- const now = Date.now();
2346
- const recentSamples = velocityTracker.value.filter((sample) => now - sample.time < VELOCITY_SAMPLE_DURATION);
2347
- if (recentSamples.length < 2) return 0;
2348
- const first = recentSamples[0];
2349
- const last = recentSamples[recentSamples.length - 1];
2350
- const timeDelta2 = last.time - first.time;
2351
- if (timeDelta2 === 0) return 0;
2352
- return (last.position - first.position) / timeDelta2;
2353
- }
2354
- function getCurrentTransform() {
2355
- if (!bglSlider.value) return 0;
2356
- const { transform } = bglSlider.value.style;
2357
- const value = transform ? Number.parseInt(transform.replace(/[^-\d.]/g, "")) : 0;
2358
- return props2.rtl ? -value : value;
2359
- }
2360
- function setTransform(value) {
2361
- if (!bglSlider.value) return;
2362
- const rtlValue = props2.rtl ? -value : value;
2363
- bglSlider.value.style.transform = `translateX(${rtlValue}px)`;
2364
- }
2365
- function easeInOutQuad(t) {
2366
- return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;
2367
- }
2368
- function animateTransform(start, end, duration) {
2369
- const startTime = performance.now();
2370
- function animate(currentTime) {
2371
- if (!isSliderAvailable.value) return;
2372
- const timeElapsed = currentTime - startTime;
2373
- const progress = Math.min(timeElapsed / duration, 1);
2374
- const currentTransform = start + (end - start) * easeInOutQuad(progress);
2375
- setTransform(currentTransform);
2376
- if (progress < 1) requestAnimationFrame(animate);
2377
- }
2378
- requestAnimationFrame(animate);
2379
- }
2380
- function goToSlide(index2, isTouchNav = false) {
2381
- countSlides();
2382
- if (!isSliderAvailable.value || !bglSlider.value || index2 < 0 || index2 >= slideCount.value) return;
2383
- const containerWidth = bglSlider.value.offsetWidth;
2384
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2385
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2386
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2387
- const gapsBeforeSlide = index2 * gapWidth;
2388
- const targetTransform = -(singleItemWidth * index2 + gapsBeforeSlide);
2389
- const currentTransform = getCurrentTransform();
2390
- const duration = isTouchNav ? ANIMATION_TIMINGS.TOUCH : window.innerWidth < 600 ? ANIMATION_TIMINGS.MOBILE : ANIMATION_TIMINGS.DESKTOP;
2391
- animateTransform(currentTransform, targetTransform, duration);
2392
- activeSlideIndex.value = index2;
2393
- updateHeight();
2394
- }
2395
- function next() {
2396
- if (!isSliderAvailable.value) return;
2397
- countSlides();
2398
- const nextIndex = props2.rtl ? (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value : (activeSlideIndex.value + 1) % slideCount.value;
2399
- goToSlide(nextIndex);
2400
- }
2401
- function prev() {
2402
- if (!isSliderAvailable.value) return;
2403
- countSlides();
2404
- const prevIndex = props2.rtl ? (activeSlideIndex.value + 1) % slideCount.value : (activeSlideIndex.value - 1 + slideCount.value) % slideCount.value;
2405
- goToSlide(prevIndex);
2406
- }
2407
- function calcHeight() {
2408
- if (!isSliderAvailable.value || !bglSlider.value) return;
2409
- try {
2410
- const activeSlide = bglSlider.value.children[activeSlideIndex.value];
2411
- if (!activeSlide) return;
2412
- const children2 = Array.from(activeSlide.children);
2413
- const totalHeight = children2.reduce((sum, el) => sum + el.clientHeight, 0);
2414
- yHeight.value = `${totalHeight}px`;
2415
- } catch (error) {
2416
- console.error("Error calculating height:", error);
2417
- }
2418
- }
2419
- function updateHeight() {
2420
- if (!props2.autoHeight) return;
2421
- setTimeout(calcHeight, 200);
2422
- }
2423
- function countSlides() {
2424
- if (!isSliderAvailable.value || !bglSlider.value) return;
2425
- slideCount.value = bglSlider.value.children.length;
2426
- }
2427
- function handleSlideChange() {
2428
- if (props2.index !== activeSlideIndex.value) {
2429
- emit2("update:index", activeSlideIndex.value);
2430
- }
2431
- }
2432
- function handleResize() {
2433
- if (!isSliderAvailable.value || !bglSlider.value) return;
2434
- itemCount.value = window.innerWidth < 600 ? 1 : window.innerWidth < 991 ? Math.min(props2.items, 2) : props2.items;
2435
- const containerWidth = bglSlider.value.offsetWidth;
2436
- const gapWidth = containerWidth * GAP_PERCENT / 100;
2437
- const totalGapWidth = (itemCount.value - 1) * gapWidth;
2438
- const singleItemWidth = (containerWidth - totalGapWidth) / itemCount.value;
2439
- const gapsBeforeSlide = activeSlideIndex.value * gapWidth;
2440
- const targetTransform = -(singleItemWidth * activeSlideIndex.value + gapsBeforeSlide);
2441
- setTransform(targetTransform);
2442
- updateHeight();
2443
- }
2444
- function clearAutoplay() {
2445
- if (autoPlayInterval) clearInterval(autoPlayInterval);
2446
- }
2447
- function preventDefaultClick(e) {
2448
- if (isDragging.value) {
2449
- e.preventDefault();
2450
- e.stopPropagation();
2451
- }
2452
- }
2453
- async function disableDrag() {
2454
- await vue.nextTick();
2455
- if (!isSliderAvailable.value || !bglSlider.value) return;
2456
- const elements = Array.from(bglSlider.value.querySelectorAll("img, a"));
2457
- elements.forEach((el) => {
2458
- el.setAttribute("draggable", "false");
2459
- el.removeEventListener("click", preventDefaultClick, true);
2460
- el.addEventListener("click", preventDefaultClick, true);
2461
- });
2462
- const slides = Array.from(bglSlider.value.children);
2463
- slides.forEach((slide) => {
2464
- const element = slide;
2465
- element.setAttribute("draggable", "false");
2466
- element.removeEventListener("click", preventDefaultClick, true);
2467
- element.addEventListener("click", preventDefaultClick, true);
2468
- });
2469
- }
2470
- function startDrag(e) {
2471
- e.stopPropagation();
2472
- if (e.button !== 0 || !props2.freeDrag || !isSliderAvailable.value) return;
2473
- clearAutoplay();
2474
- startX.value = e.pageX;
2475
- translateX2.value = getCurrentTransform();
2476
- isPressed.value = true;
2477
- isDragging.value = false;
2478
- document.addEventListener("mousemove", onDrag);
2479
- document.addEventListener("mouseup", endDrag);
2480
- }
2481
- function onDrag(e) {
2482
- if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
2483
- const x2 = e.pageX;
2484
- const distance = x2 - startX.value;
2485
- if (Math.abs(distance) > THRESHOLDS.DRAG) isDragging.value = true;
1811
+ function onDrag(e) {
1812
+ if (!isSliderAvailable.value || !bglSlider.value || !isPressed.value) return;
1813
+ const x2 = e.pageX;
1814
+ const distance = x2 - startX.value;
1815
+ if (Math.abs(distance) > THRESHOLDS.DRAG) isDragging.value = true;
2486
1816
  if (isDragging.value) {
2487
1817
  const newTranslate = translateX2.value + (props2.rtl ? -distance : distance);
2488
1818
  const maxTranslate = 0;
@@ -2725,13 +2055,13 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
2725
2055
  }, [
2726
2056
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
2727
2057
  ], 38),
2728
- props2.dots && vue.unref(slideCount) > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$E, [
2058
+ props2.dots && vue.unref(slideCount) > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$F, [
2729
2059
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(slideCount), (i2) => {
2730
2060
  return vue.openBlock(), vue.createElementBlock("span", {
2731
2061
  key: i2,
2732
2062
  class: vue.normalizeClass(["dot", { current: vue.unref(activeSlideIndex) === i2 - 1 }]),
2733
2063
  onClick: ($event) => goToSlide(i2 - 1)
2734
- }, null, 10, _hoisted_3$y);
2064
+ }, null, 10, _hoisted_3$z);
2735
2065
  }), 128))
2736
2066
  ])) : vue.createCommentVNode("", true),
2737
2067
  vue.createElementVNode("div", {
@@ -2756,11 +2086,11 @@ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
2756
2086
  }, void 0, true)
2757
2087
  ])
2758
2088
  ], 2)
2759
- ], 8, _hoisted_1$S);
2089
+ ], 8, _hoisted_1$T);
2760
2090
  };
2761
2091
  }
2762
2092
  });
2763
- const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["__scopeId", "data-v-406c405d"]]);
2093
+ const Carousel = /* @__PURE__ */ _export_sfc(_sfc_main$11, [["__scopeId", "data-v-406c405d"]]);
2764
2094
  function _isPlaceholder(a2) {
2765
2095
  return a2 != null && typeof a2 === "object" && a2["@@functional/placeholder"] === true;
2766
2096
  }
@@ -8594,7 +7924,7 @@ const _hoisted_1$1$1 = {
8594
7924
  style: { display: "flex", position: "relative" }
8595
7925
  };
8596
7926
  const _hoisted_2$1$1 = ["width", "height", "viewBox"];
8597
- const _hoisted_3$x = { class: "layer-rectangles" };
7927
+ const _hoisted_3$y = { class: "layer-rectangles" };
8598
7928
  const _hoisted_4$m = ["transform", "onMouseover"];
8599
7929
  const _hoisted_5$m = ["width", "height"];
8600
7930
  const _hoisted_6$j = {
@@ -8612,7 +7942,7 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
8612
7942
  viewBox: `0 0 ${_ctx.size.width} ${_ctx.size.height}`,
8613
7943
  ref: "el"
8614
7944
  }, [
8615
- vue.createElementVNode("g", _hoisted_3$x, [
7945
+ vue.createElementVNode("g", _hoisted_3$y, [
8616
7946
  (vue.openBlock(true), vue.createElementBlock(
8617
7947
  vue.Fragment,
8618
7948
  null,
@@ -8704,25 +8034,25 @@ var script = vue.defineComponent({
8704
8034
  return { bar, canvas, direction, mouse };
8705
8035
  }
8706
8036
  });
8707
- const _hoisted_1$R = {
8037
+ const _hoisted_1$S = {
8708
8038
  key: 0,
8709
8039
  class: "layer-hover-bar"
8710
8040
  };
8711
- const _hoisted_2$D = ["x", "y", "width", "height"];
8041
+ const _hoisted_2$E = ["x", "y", "width", "height"];
8712
8042
  function render(_ctx, _cache, $props, $setup, $data, $options) {
8713
- return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$R, [
8043
+ return _ctx.mouse.hover ? (vue.openBlock(), vue.createElementBlock("g", _hoisted_1$S, [
8714
8044
  vue.createElementVNode("rect", vue.mergeProps({ class: "hover-bar" }, _ctx.barStyle, {
8715
8045
  x: _ctx.bar.x,
8716
8046
  y: _ctx.bar.y,
8717
8047
  width: _ctx.bar.width > 0 ? _ctx.bar.width : 0,
8718
8048
  height: _ctx.bar.height > 0 ? _ctx.bar.height : 0
8719
- }), null, 16, _hoisted_2$D)
8049
+ }), null, 16, _hoisted_2$E)
8720
8050
  ])) : vue.createCommentVNode("v-if", true);
8721
8051
  }
8722
8052
  script.render = render;
8723
8053
  script.__file = "src/components/HoverBar/index.vue";
8724
8054
  const BRAND_COLOR = "var(--bgl-primary)";
8725
- const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
8055
+ const _sfc_main$10 = /* @__PURE__ */ vue.defineComponent({
8726
8056
  __name: "Lineart",
8727
8057
  props: {
8728
8058
  data: {},
@@ -8890,8 +8220,8 @@ ${indent}}`;
8890
8220
  text: TextInput,
8891
8221
  textarea: TextInput,
8892
8222
  number: NumberInput,
8893
- array: _sfc_main$S,
8894
- color: _sfc_main$O,
8223
+ array: _sfc_main$T,
8224
+ color: _sfc_main$P,
8895
8225
  tel: TelInput,
8896
8226
  select: SelectInput,
8897
8227
  toggle: ToggleInput,
@@ -8899,9 +8229,9 @@ ${indent}}`;
8899
8229
  richtext: RichText,
8900
8230
  upload: UploadInput,
8901
8231
  file: UploadInput,
8902
- date: _sfc_main$M,
8232
+ date: _sfc_main$N,
8903
8233
  tabs: TabsNav,
8904
- form: _sfc_main$U,
8234
+ form: _sfc_main$V,
8905
8235
  range: RangeInput,
8906
8236
  email: EmailInput
8907
8237
  };
@@ -9198,12 +8528,12 @@ function useTableData(options) {
9198
8528
  schemaState: vue.computed(() => schemaState.value)
9199
8529
  };
9200
8530
  }
9201
- const _hoisted_1$Q = { class: "data-preview" };
9202
- const _hoisted_2$C = {
8531
+ const _hoisted_1$R = { class: "data-preview" };
8532
+ const _hoisted_2$D = {
9203
8533
  key: 1,
9204
8534
  class: "empty-preview"
9205
8535
  };
9206
- const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
8536
+ const _sfc_main$$ = /* @__PURE__ */ vue.defineComponent({
9207
8537
  __name: "DataPreview",
9208
8538
  props: {
9209
8539
  schema: { type: Function },
@@ -9245,17 +8575,17 @@ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
9245
8575
  onUpdateModelValue: void 0
9246
8576
  });
9247
8577
  return (_ctx, _cache) => {
9248
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, [
8578
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$R, [
9249
8579
  vue.unref(computedSchema) && vue.unref(computedSchema).length > 0 ? (vue.openBlock(true), vue.createElementBlock(vue.Fragment, { key: 0 }, vue.renderList(vue.unref(computedSchema), (field) => {
9250
8580
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(renderField)(field, vue.unref(slots))), {
9251
8581
  key: field.id
9252
8582
  });
9253
- }), 128)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, " No data to display "))
8583
+ }), 128)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$D, " No data to display "))
9254
8584
  ]);
9255
8585
  };
9256
8586
  }
9257
8587
  });
9258
- const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-430b1998"]]);
8588
+ const DataPreview = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["__scopeId", "data-v-430b1998"]]);
9259
8589
  function useTableSelection(options) {
9260
8590
  const allSelectorEl = vue.ref();
9261
8591
  const computedSelectedItems = vue.computed(() => options.selectedItems.value);
@@ -10192,15 +9522,15 @@ function useTableVirtualization(options) {
10192
9522
  registerLastItemObserver
10193
9523
  };
10194
9524
  }
10195
- const _hoisted_1$P = {
9525
+ const _hoisted_1$Q = {
10196
9526
  key: 0,
10197
9527
  class: "loading-table-wrapper z-99 h-100 w-100 absolute inset"
10198
9528
  };
10199
- const _hoisted_2$B = {
9529
+ const _hoisted_2$C = {
10200
9530
  key: 1,
10201
9531
  class: "flex-center h-300px txt-red"
10202
9532
  };
10203
- const _hoisted_3$w = { class: "infinite-wrapper" };
9533
+ const _hoisted_3$x = { class: "infinite-wrapper" };
10204
9534
  const _hoisted_4$l = { class: "row first-row" };
10205
9535
  const _hoisted_5$l = { key: 0 };
10206
9536
  const _hoisted_6$i = ["onClick"];
@@ -10209,7 +9539,7 @@ const _hoisted_8$8 = ["onClick"];
10209
9539
  const _hoisted_9$5 = { key: 0 };
10210
9540
  const _hoisted_10$5 = ["value"];
10211
9541
  const _hoisted_11$5 = { key: 1 };
10212
- const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
9542
+ const _sfc_main$_ = /* @__PURE__ */ vue.defineComponent({
10213
9543
  __name: "DataTable",
10214
9544
  props: /* @__PURE__ */ vue.mergeModels({
10215
9545
  data: {},
@@ -10330,13 +9660,13 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
10330
9660
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "table-list-wrap h-100" }, vue.unref(containerProps), {
10331
9661
  class: { "loading-table": showLoading.value }
10332
9662
  }), [
10333
- showLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$P, _cache[4] || (_cache[4] = [
9663
+ showLoading.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$Q, _cache[4] || (_cache[4] = [
10334
9664
  vue.createElementVNode("div", { class: "loading-table-animation fixed oval top-7" }, null, -1)
10335
- ]))) : vue.unref(schemaState) === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$B, " Error loading table schema ")) : vue.createCommentVNode("", true),
9665
+ ]))) : vue.unref(schemaState) === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$C, " Error loading table schema ")) : vue.createCommentVNode("", true),
10336
9666
  vue.createElementVNode("div", vue.mergeProps(vue.unref(wrapperProps), {
10337
9667
  class: { "pointer-events-none": showLoading.value }
10338
9668
  }), [
10339
- vue.createElementVNode("table", _hoisted_3$w, [
9669
+ vue.createElementVNode("table", _hoisted_3$x, [
10340
9670
  vue.createElementVNode("thead", _hoisted_4$l, [
10341
9671
  vue.unref(isSelectable) ? (vue.openBlock(), vue.createElementBlock("th", _hoisted_5$l, [
10342
9672
  vue.createElementVNode("input", {
@@ -10359,7 +9689,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
10359
9689
  vue.createElementVNode("div", {
10360
9690
  class: vue.normalizeClass(["list-arrows", { sorted: vue.unref(sortField) === (field == null ? void 0 : field.id) }])
10361
9691
  }, [
10362
- vue.createVNode(vue.unref(_sfc_main$s), {
9692
+ vue.createVNode(vue.unref(_sfc_main$t), {
10363
9693
  class: vue.normalizeClass({ desc: vue.unref(sortDirection) === "DESC" }),
10364
9694
  icon: "keyboard_arrow_up"
10365
9695
  }, null, 8, ["class"])
@@ -10418,7 +9748,7 @@ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
10418
9748
  };
10419
9749
  }
10420
9750
  });
10421
- const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["__scopeId", "data-v-382d1c94"]]);
9751
+ const DataTable = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["__scopeId", "data-v-382d1c94"]]);
10422
9752
  function useDraggable(options = {}) {
10423
9753
  const isDragging = vue.ref(false);
10424
9754
  const dragElement = vue.ref(null);
@@ -10893,7 +10223,7 @@ function useDraggable(options = {}) {
10893
10223
  initDraggableContainer
10894
10224
  };
10895
10225
  }
10896
- const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
10226
+ const _sfc_main$Z = /* @__PURE__ */ vue.defineComponent({
10897
10227
  __name: "Draggable",
10898
10228
  props: {
10899
10229
  modelValue: {},
@@ -13513,7 +12843,7 @@ const Gt = {
13513
12843
  install: Ct,
13514
12844
  options: h
13515
12845
  };
13516
- const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
12846
+ const _sfc_main$Y = /* @__PURE__ */ vue.defineComponent({
13517
12847
  __name: "Dropdown",
13518
12848
  props: /* @__PURE__ */ vue.mergeModels({
13519
12849
  value: {},
@@ -13607,9 +12937,9 @@ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
13607
12937
  };
13608
12938
  }
13609
12939
  });
13610
- const _hoisted_1$O = { class: "px-1 pt-025 pb-1" };
13611
- const _hoisted_2$A = { class: "ms-1" };
13612
- const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
12940
+ const _hoisted_1$P = { class: "px-1 pt-025 pb-1" };
12941
+ const _hoisted_2$B = { class: "ms-1" };
12942
+ const _sfc_main$X = /* @__PURE__ */ vue.defineComponent({
13613
12943
  __name: "FieldSetVue",
13614
12944
  props: {
13615
12945
  label: {},
@@ -13617,15 +12947,15 @@ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
13617
12947
  },
13618
12948
  setup(__props) {
13619
12949
  return (_ctx, _cache) => {
13620
- return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$O, [
13621
- vue.createElementVNode("legend", _hoisted_2$A, vue.toDisplayString(_ctx.legend || _ctx.label), 1),
12950
+ return vue.openBlock(), vue.createElementBlock("fieldset", _hoisted_1$P, [
12951
+ vue.createElementVNode("legend", _hoisted_2$B, vue.toDisplayString(_ctx.legend || _ctx.label), 1),
13622
12952
  vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
13623
12953
  ]);
13624
12954
  };
13625
12955
  }
13626
12956
  });
13627
- const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f7e758e5"]]);
13628
- const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
12957
+ const FieldSetVue = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["__scopeId", "data-v-f7e758e5"]]);
12958
+ const _sfc_main$W = /* @__PURE__ */ vue.defineComponent({
13629
12959
  __name: "Flag",
13630
12960
  props: {
13631
12961
  country: {},
@@ -13655,7 +12985,7 @@ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
13655
12985
  };
13656
12986
  }
13657
12987
  });
13658
- const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["__scopeId", "data-v-f99f1900"]]);
12988
+ const Flag = /* @__PURE__ */ _export_sfc(_sfc_main$W, [["__scopeId", "data-v-f99f1900"]]);
13659
12989
  function getBaseField(id, labelOrRest = {}, rest = {}) {
13660
12990
  if (typeof labelOrRest === "object") return { id, ...labelOrRest };
13661
12991
  return { id, label: labelOrRest, ...rest };
@@ -14136,8 +13466,8 @@ function getNestedValue(obj, path, defaultValue = void 0) {
14136
13466
  }
14137
13467
  return current ?? defaultValue;
14138
13468
  }
14139
- const _hoisted_1$N = { class: "flex-center h-300px" };
14140
- const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
13469
+ const _hoisted_1$O = { class: "flex-center h-300px" };
13470
+ const _sfc_main$V = /* @__PURE__ */ vue.defineComponent({
14141
13471
  __name: "BagelForm",
14142
13472
  props: {
14143
13473
  modelValue: { default: void 0 },
@@ -14271,7 +13601,7 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14271
13601
  onInput: handleSlotInputChange
14272
13602
  }, [
14273
13603
  schemaState.value === "loading" ? vue.renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
14274
- vue.createElementVNode("div", _hoisted_1$N, [
13604
+ vue.createElementVNode("div", _hoisted_1$O, [
14275
13605
  vue.createVNode(vue.unref(Loading))
14276
13606
  ])
14277
13607
  ]) : schemaState.value === "error" ? vue.renderSlot(_ctx.$slots, "schema-error", { key: 1 }, () => [
@@ -14310,12 +13640,12 @@ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14310
13640
  };
14311
13641
  }
14312
13642
  });
14313
- const _hoisted_1$M = { class: "bgl-multi-step-form" };
14314
- const _hoisted_2$z = {
13643
+ const _hoisted_1$N = { class: "bgl-multi-step-form" };
13644
+ const _hoisted_2$A = {
14315
13645
  key: 0,
14316
13646
  class: "bgl-step-progress"
14317
13647
  };
14318
- const _hoisted_3$v = { class: "bgl-steps-indicator" };
13648
+ const _hoisted_3$w = { class: "bgl-steps-indicator" };
14319
13649
  const _hoisted_4$k = ["onClick"];
14320
13650
  const _hoisted_5$k = {
14321
13651
  key: 0,
@@ -14323,7 +13653,7 @@ const _hoisted_5$k = {
14323
13653
  };
14324
13654
  const _hoisted_6$h = { class: "bgl-form-wrapper" };
14325
13655
  const _hoisted_7$c = { class: "bgl-step-controls" };
14326
- const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
13656
+ const _sfc_main$U = /* @__PURE__ */ vue.defineComponent({
14327
13657
  __name: "BglMultiStepForm",
14328
13658
  props: /* @__PURE__ */ vue.mergeModels({
14329
13659
  bagelFormProps: { default: () => ({}) },
@@ -14479,8 +13809,8 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14479
13809
  prevStep
14480
13810
  });
14481
13811
  return (_ctx, _cache) => {
14482
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$M, [
14483
- _ctx.showProgress ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$z, [
13812
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$N, [
13813
+ _ctx.showProgress ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$A, [
14484
13814
  vue.renderSlot(_ctx.$slots, "progress", vue.normalizeProps(vue.guardReactiveProps({
14485
13815
  currentStep: currentStep.value,
14486
13816
  totalSteps: numberOfSteps.value,
@@ -14489,7 +13819,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14489
13819
  allowStepNavigation: props2.allowStepNavigation,
14490
13820
  isStepValidated: isStepValidated.value
14491
13821
  })), () => [
14492
- vue.createElementVNode("div", _hoisted_3$v, [
13822
+ vue.createElementVNode("div", _hoisted_3$w, [
14493
13823
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(numberOfSteps.value, (_2, index2) => {
14494
13824
  return vue.openBlock(), vue.createElementBlock("div", {
14495
13825
  key: index2,
@@ -14519,7 +13849,7 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14519
13849
  ref: formContainer,
14520
13850
  class: "bgl-form-container"
14521
13851
  }, [
14522
- vue.createVNode(vue.unref(_sfc_main$U), vue.mergeProps({
13852
+ vue.createVNode(vue.unref(_sfc_main$V), vue.mergeProps({
14523
13853
  ref_key: "formRef",
14524
13854
  ref: formRef,
14525
13855
  modelValue: formData.value,
@@ -14576,13 +13906,13 @@ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14576
13906
  };
14577
13907
  }
14578
13908
  });
14579
- const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-53bb3be3"]]);
14580
- const _hoisted_1$L = {
13909
+ const BglMultiStepForm = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-53bb3be3"]]);
13910
+ const _hoisted_1$M = {
14581
13911
  key: 0,
14582
13912
  class: "label mb-05"
14583
13913
  };
14584
- const _hoisted_2$y = { class: "ps-025 border-start mb-05" };
14585
- const _hoisted_3$u = {
13914
+ const _hoisted_2$z = { class: "ps-025 border-start mb-05" };
13915
+ const _hoisted_3$v = {
14586
13916
  key: 0,
14587
13917
  class: "flex-center h-300px"
14588
13918
  };
@@ -14595,7 +13925,7 @@ const _hoisted_5$j = {
14595
13925
  class: "minimizedText txt14 p-025 opacity-7"
14596
13926
  };
14597
13927
  const _hoisted_6$g = { class: "bg-gray-80 -my-05 px-025 pt-065 pb-05 txt-center space-between flex column" };
14598
- const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
13928
+ const _sfc_main$T = /* @__PURE__ */ vue.defineComponent({
14599
13929
  __name: "FieldArray",
14600
13930
  props: {
14601
13931
  el: { default: "div" },
@@ -14704,10 +14034,10 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14704
14034
  return vue.openBlock(), vue.createElementBlock("div", {
14705
14035
  class: vue.normalizeClass(props2.class)
14706
14036
  }, [
14707
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$L, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
14708
- vue.createElementVNode("div", _hoisted_2$y, [
14709
- schemaState.value !== "loaded" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$u, [
14710
- schemaState.value === "loading" ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), { key: 0 })) : schemaState.value === "error" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
14037
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$M, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
14038
+ vue.createElementVNode("div", _hoisted_2$z, [
14039
+ schemaState.value !== "loaded" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$v, [
14040
+ schemaState.value === "loading" ? (vue.openBlock(), vue.createBlock(vue.unref(Loading), { key: 0 })) : schemaState.value === "error" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
14711
14041
  key: 1,
14712
14042
  icon: "error",
14713
14043
  color: "red"
@@ -14722,7 +14052,7 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14722
14052
  thin: "",
14723
14053
  class: vue.normalizeClass(["mb-05 itemBox transition ps-05 pb-025 pt-025 radius-05 gap-05 overflow-hidden", { minimized: minimizedItems.value[i2] }])
14724
14054
  }, [
14725
- minimizedItems.value[i2] ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$j, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(i2 + 1), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$U), {
14055
+ minimizedItems.value[i2] ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_5$j, vue.toDisplayString(_ctx.label) + " " + vue.toDisplayString(i2 + 1), 1)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$V), {
14726
14056
  key: 1,
14727
14057
  "model-value": isPrimitiveType.value ? { value: item } : item,
14728
14058
  schema: resolvedSchemaData.value,
@@ -14767,8 +14097,8 @@ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14767
14097
  };
14768
14098
  }
14769
14099
  });
14770
- const _hoisted_1$K = { class: "primary-checkbox" };
14771
- const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14100
+ const _hoisted_1$L = { class: "primary-checkbox" };
14101
+ const _sfc_main$S = /* @__PURE__ */ vue.defineComponent({
14772
14102
  __name: "Checkbox",
14773
14103
  props: {
14774
14104
  "modelValue": { type: Boolean, ...{ default: false } },
@@ -14778,7 +14108,7 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14778
14108
  setup(__props) {
14779
14109
  const val = vue.useModel(__props, "modelValue");
14780
14110
  return (_ctx, _cache) => {
14781
- return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$K, [
14111
+ return vue.openBlock(), vue.createElementBlock("label", _hoisted_1$L, [
14782
14112
  vue.renderSlot(_ctx.$slots, "label", {}, void 0, true),
14783
14113
  vue.withDirectives(vue.createElementVNode("input", {
14784
14114
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => val.value = $event),
@@ -14790,11 +14120,11 @@ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14790
14120
  };
14791
14121
  }
14792
14122
  });
14793
- const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-73f1d9ad"]]);
14794
- const _hoisted_1$J = ["title"];
14795
- const _hoisted_2$x = ["id", "value", "required"];
14796
- const _hoisted_3$t = ["for"];
14797
- const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14123
+ const Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-73f1d9ad"]]);
14124
+ const _hoisted_1$K = ["title"];
14125
+ const _hoisted_2$y = ["id", "value", "required"];
14126
+ const _hoisted_3$u = ["for"];
14127
+ const _sfc_main$R = /* @__PURE__ */ vue.defineComponent({
14798
14128
  __name: "CheckInput",
14799
14129
  props: /* @__PURE__ */ vue.mergeModels({
14800
14130
  label: {},
@@ -14827,7 +14157,7 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14827
14157
  required: _ctx.required,
14828
14158
  type: "checkbox",
14829
14159
  class: "me-05"
14830
- }, null, 8, _hoisted_2$x), [
14160
+ }, null, 8, _hoisted_2$y), [
14831
14161
  [vue.vModelCheckbox, checked.value]
14832
14162
  ]),
14833
14163
  vue.createElementVNode("label", {
@@ -14836,25 +14166,25 @@ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14836
14166
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
14837
14167
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
14838
14168
  ], true)
14839
- ], 8, _hoisted_3$t)
14840
- ], 10, _hoisted_1$J);
14169
+ ], 8, _hoisted_3$u)
14170
+ ], 10, _hoisted_1$K);
14841
14171
  };
14842
14172
  }
14843
14173
  });
14844
- const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-722373de"]]);
14845
- const _hoisted_1$I = { class: "mb-05" };
14846
- const _hoisted_2$w = {
14174
+ const CheckInput = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-722373de"]]);
14175
+ const _hoisted_1$J = { class: "mb-05" };
14176
+ const _hoisted_2$x = {
14847
14177
  key: 0,
14848
14178
  class: "label txt-start"
14849
14179
  };
14850
- const _hoisted_3$s = {
14180
+ const _hoisted_3$t = {
14851
14181
  key: 1,
14852
14182
  class: "code-editor-wrap grid rounded p-1 overflow hm-300px ltr txt-start relative h-100p"
14853
14183
  };
14854
14184
  const _hoisted_4$i = { class: "overflow-hidden absolute inset-0 p-0 m-0 h-100 codeText" };
14855
14185
  const _hoisted_5$i = ["innerHTML"];
14856
14186
  const _hoisted_6$f = ["onKeydown"];
14857
- const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14187
+ const _sfc_main$Q = /* @__PURE__ */ vue.defineComponent({
14858
14188
  __name: "Index",
14859
14189
  props: {
14860
14190
  language: {},
@@ -14936,9 +14266,9 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14936
14266
  }
14937
14267
  }, { immediate: true });
14938
14268
  return (_ctx, _cache) => {
14939
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$I, [
14940
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$w, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
14941
- vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$s, [
14269
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$J, [
14270
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$x, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
14271
+ vue.unref(loaded) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$t, [
14942
14272
  vue.createElementVNode("div", {
14943
14273
  class: "relative block h-100",
14944
14274
  style: vue.normalizeStyle({ height: `calc(${vue.unref(elHeight)} - 2rem)` })
@@ -14972,11 +14302,11 @@ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14972
14302
  };
14973
14303
  }
14974
14304
  });
14975
- const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-13335b34"]]);
14976
- const _hoisted_1$H = ["title"];
14977
- const _hoisted_2$v = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
14978
- const _hoisted_3$r = ["id", "placeholder", "required"];
14979
- const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
14305
+ const CodeEditor = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-13335b34"]]);
14306
+ const _hoisted_1$I = ["title"];
14307
+ const _hoisted_2$w = { class: "flex bg-input rounded px-025 colorInputPickWrap" };
14308
+ const _hoisted_3$s = ["id", "placeholder", "required"];
14309
+ const _sfc_main$P = /* @__PURE__ */ vue.defineComponent({
14980
14310
  __name: "ColorInput",
14981
14311
  props: {
14982
14312
  label: {},
@@ -15006,7 +14336,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15006
14336
  }, [
15007
14337
  vue.createElementVNode("label", null, [
15008
14338
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
15009
- vue.createElementVNode("div", _hoisted_2$v, [
14339
+ vue.createElementVNode("div", _hoisted_2$w, [
15010
14340
  vue.withDirectives(vue.createElementVNode("input", vue.mergeProps({
15011
14341
  id: _ctx.id,
15012
14342
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => inputVal.value = $event),
@@ -15014,7 +14344,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15014
14344
  type: "color",
15015
14345
  placeholder: _ctx.placeholder || _ctx.label,
15016
14346
  required: _ctx.required
15017
- }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$r), [
14347
+ }, _ctx.nativeInputAttrs), null, 16, _hoisted_3$s), [
15018
14348
  [vue.vModelText, inputVal.value]
15019
14349
  ]),
15020
14350
  vue.withDirectives(vue.createElementVNode("input", {
@@ -15036,7 +14366,7 @@ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15036
14366
  }, null, 8, ["class"])
15037
14367
  ])
15038
14368
  ])
15039
- ], 10, _hoisted_1$H);
14369
+ ], 10, _hoisted_1$I);
15040
14370
  };
15041
14371
  }
15042
14372
  });
@@ -15557,9 +14887,9 @@ class Time {
15557
14887
  return number2 < 10 ? `0${number2}` : String(number2);
15558
14888
  }
15559
14889
  }
15560
- const _hoisted_1$G = { class: "ltr flex gap-075 m_flex-wrap calendar-container justify-content-center h-100p" };
15561
- const _hoisted_2$u = { class: "calendar-section m_border-none pe-05 m_p-0" };
15562
- const _hoisted_3$q = { class: "flex space-between pb-1" };
14890
+ const _hoisted_1$H = { class: "ltr flex gap-075 m_flex-wrap calendar-container justify-content-center h-100p" };
14891
+ const _hoisted_2$v = { class: "calendar-section m_border-none pe-05 m_p-0" };
14892
+ const _hoisted_3$r = { class: "flex space-between pb-1" };
15563
14893
  const _hoisted_4$h = { class: "flex gap-05" };
15564
14894
  const _hoisted_5$h = { class: "month-year" };
15565
14895
  const _hoisted_6$e = {
@@ -15580,7 +14910,7 @@ const _hoisted_10$4 = {
15580
14910
  class: "time-picker border-start flex column gap-1 w-120px px-025"
15581
14911
  };
15582
14912
  const _hoisted_11$4 = { class: "flex gap-025" };
15583
- const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
14913
+ const _sfc_main$O = /* @__PURE__ */ vue.defineComponent({
15584
14914
  __name: "DatePicker",
15585
14915
  props: {
15586
14916
  modelValue: {},
@@ -15790,9 +15120,9 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
15790
15120
  }
15791
15121
  }
15792
15122
  return (_ctx, _cache) => {
15793
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$G, [
15794
- vue.createElementVNode("div", _hoisted_2$u, [
15795
- vue.createElementVNode("div", _hoisted_3$q, [
15123
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$H, [
15124
+ vue.createElementVNode("div", _hoisted_2$v, [
15125
+ vue.createElementVNode("div", _hoisted_3$r, [
15796
15126
  currentView.value === "days" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
15797
15127
  vue.createVNode(vue.unref(Btn), {
15798
15128
  flat: "",
@@ -15920,14 +15250,14 @@ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
15920
15250
  };
15921
15251
  }
15922
15252
  });
15923
- const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-8b7bd9b8"]]);
15924
- const _hoisted_1$F = ["title"];
15925
- const _hoisted_2$t = { key: 0 };
15926
- const _hoisted_3$p = {
15253
+ const DatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-8b7bd9b8"]]);
15254
+ const _hoisted_1$G = ["title"];
15255
+ const _hoisted_2$u = { key: 0 };
15256
+ const _hoisted_3$q = {
15927
15257
  key: 0,
15928
15258
  class: "required"
15929
15259
  };
15930
- const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
15260
+ const _sfc_main$N = /* @__PURE__ */ vue.defineComponent({
15931
15261
  __name: "DateInput",
15932
15262
  props: /* @__PURE__ */ vue.mergeModels({
15933
15263
  required: { type: Boolean },
@@ -16043,11 +15373,11 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
16043
15373
  onFocusin: _cache[4] || (_cache[4] = //@ts-ignore
16044
15374
  (...args) => vue.unref(handleFocus) && vue.unref(handleFocus)(...args))
16045
15375
  }, [
16046
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$t, [
15376
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$u, [
16047
15377
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
16048
- _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$p, "*")) : vue.createCommentVNode("", true)
15378
+ _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$q, "*")) : vue.createCommentVNode("", true)
16049
15379
  ])) : vue.createCommentVNode("", true),
16050
- vue.createVNode(vue.unref(_sfc_main$X), {
15380
+ vue.createVNode(vue.unref(_sfc_main$Y), {
16051
15381
  shown: isOpen.value,
16052
15382
  placement: "bottom-start",
16053
15383
  autoHide: false,
@@ -16102,7 +15432,7 @@ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
16102
15432
  ]),
16103
15433
  _: 1
16104
15434
  }, 8, ["shown"])
16105
- ], 42, _hoisted_1$F);
15435
+ ], 42, _hoisted_1$G);
16106
15436
  };
16107
15437
  }
16108
15438
  });
@@ -16111,9 +15441,9 @@ const IMAGE_FORMATS_REGEXP = new RegExp(`(${IMAGE_FORMATS.join("|")})$`, "i");
16111
15441
  const VIDEO_FORMATS = ["mp4", "webm", "ogg", "mov", "avi", "flv", "wmv", "mkv", "ts", "m3u8"];
16112
15442
  const VIDEO_FORMATS_REGEXP = new RegExp(`(${VIDEO_FORMATS.join("|")})$`, "i");
16113
15443
  const EMAIL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-0-9]+\.)+[a-z]{2,}))$/i;
16114
- const _hoisted_1$E = ["title"];
16115
- const _hoisted_2$s = ["for"];
16116
- const _hoisted_3$o = { class: "flex" };
15444
+ const _hoisted_1$F = ["title"];
15445
+ const _hoisted_2$t = ["for"];
15446
+ const _hoisted_3$p = { class: "flex" };
16117
15447
  const _hoisted_4$g = { key: 0 };
16118
15448
  const _hoisted_5$g = {
16119
15449
  key: 1,
@@ -16124,7 +15454,7 @@ const _hoisted_6$d = {
16124
15454
  class: "validating"
16125
15455
  };
16126
15456
  const _hoisted_7$a = ["id", "name", "title", "placeholder", "disabled", "required"];
16127
- const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
15457
+ const _sfc_main$M = /* @__PURE__ */ vue.defineComponent({
16128
15458
  __name: "EmailInput",
16129
15459
  props: {
16130
15460
  id: {},
@@ -16388,7 +15718,7 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
16388
15718
  title: _ctx.title
16389
15719
  }, [
16390
15720
  vue.createElementVNode("label", { for: _ctx.id }, [
16391
- vue.createElementVNode("div", _hoisted_3$o, [
15721
+ vue.createElementVNode("div", _hoisted_3$p, [
16392
15722
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
16393
15723
  _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_4$g, "*")) : vue.createCommentVNode("", true),
16394
15724
  _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$g, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true),
@@ -16421,30 +15751,30 @@ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
16421
15751
  [vue.vModelText, vue.unref(inputVal)],
16422
15752
  [_directive_pattern, void 0, "lower"]
16423
15753
  ]),
16424
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
15754
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
16425
15755
  key: 0,
16426
15756
  class: "iconStart",
16427
15757
  icon: _ctx.iconStart
16428
15758
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
16429
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
15759
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
16430
15760
  key: 1,
16431
15761
  icon: _ctx.icon
16432
15762
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
16433
- ], 8, _hoisted_2$s)
16434
- ], 10, _hoisted_1$E);
15763
+ ], 8, _hoisted_2$t)
15764
+ ], 10, _hoisted_1$F);
16435
15765
  };
16436
15766
  }
16437
15767
  });
16438
- const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-e3d13caa"]]);
16439
- const _hoisted_1$D = { class: "bagel-input" };
16440
- const _hoisted_2$r = {
15768
+ const EmailInput = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-e3d13caa"]]);
15769
+ const _hoisted_1$E = { class: "bagel-input" };
15770
+ const _hoisted_2$s = {
16441
15771
  key: 0,
16442
15772
  placeholder: "required",
16443
15773
  type: "text",
16444
15774
  required: "",
16445
15775
  class: "pixel"
16446
15776
  };
16447
- const _hoisted_3$n = { class: "m-05 flex opacity-7 z-99" };
15777
+ const _hoisted_3$o = { class: "m-05 flex opacity-7 z-99" };
16448
15778
  const _hoisted_4$f = { class: "ellipsis-1 word-break-all h-20 m-0 color-black" };
16449
15779
  const _hoisted_5$f = { class: "flex gap-025 rounded pe-1 ps-05 py-025 bg-gray-80 -my-1" };
16450
15780
  const _hoisted_6$c = { class: "ellipsis-1 word-break-all h-20 m-0 color-black txt16" };
@@ -16477,7 +15807,7 @@ const _hoisted_15$1 = {
16477
15807
  };
16478
15808
  const _hoisted_16$1 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
16479
15809
  const _hoisted_17$1 = { class: "pretty balance" };
16480
- const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
15810
+ const _sfc_main$L = /* @__PURE__ */ vue.defineComponent({
16481
15811
  __name: "FileUpload",
16482
15812
  props: /* @__PURE__ */ vue.mergeModels({
16483
15813
  label: {},
@@ -16652,9 +15982,9 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16652
15982
  return (_ctx, _cache) => {
16653
15983
  const _directive_tooltip = vue.resolveDirective("tooltip");
16654
15984
  const _directive_lightbox = vue.resolveDirective("lightbox");
16655
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$D, [
15985
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$E, [
16656
15986
  vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
16657
- _ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$r)) : vue.createCommentVNode("", true),
15987
+ _ctx.required && !storageFiles.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$s)) : vue.createCommentVNode("", true),
16658
15988
  _ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$12), {
16659
15989
  key: 1,
16660
15990
  outline: "",
@@ -16676,7 +16006,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16676
16006
  key: file.id,
16677
16007
  class: "txt-gray txt-12 flex"
16678
16008
  }, [
16679
- vue.createElementVNode("div", _hoisted_3$n, [
16009
+ vue.createElementVNode("div", _hoisted_3$o, [
16680
16010
  vue.withDirectives(vue.createVNode(vue.unref(Btn), {
16681
16011
  color: "gray",
16682
16012
  thin: "",
@@ -16711,7 +16041,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16711
16041
  [_directive_lightbox, { src: file.url, download: true }]
16712
16042
  ]),
16713
16043
  vue.createElementVNode("div", _hoisted_5$f, [
16714
- vue.createVNode(vue.unref(_sfc_main$s), {
16044
+ vue.createVNode(vue.unref(_sfc_main$t), {
16715
16045
  icon: "draft",
16716
16046
  size: 1.5
16717
16047
  }),
@@ -16762,7 +16092,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16762
16092
  class: "multi-preview",
16763
16093
  src: file.url,
16764
16094
  alt: ""
16765
- }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
16095
+ }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
16766
16096
  key: 1,
16767
16097
  icon: "draft",
16768
16098
  class: "multi-preview"
@@ -16792,7 +16122,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16792
16122
  src: fileToUrl(fileQ.file),
16793
16123
  alt: ""
16794
16124
  }, null, 8, ["width", "src"])) : vue.createCommentVNode("", true)
16795
- ], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
16125
+ ], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
16796
16126
  key: 1,
16797
16127
  icon: "draft",
16798
16128
  class: "multi-preview"
@@ -16803,7 +16133,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16803
16133
  style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
16804
16134
  }, [
16805
16135
  fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$3, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
16806
- vue.createVNode(vue.unref(_sfc_main$s), {
16136
+ vue.createVNode(vue.unref(_sfc_main$t), {
16807
16137
  class: "success",
16808
16138
  icon: "check"
16809
16139
  })
@@ -16855,7 +16185,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16855
16185
  }, null, 8, ["src"]), [
16856
16186
  [_directive_lightbox, { src: file.url, download: true }]
16857
16187
  ])
16858
- ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
16188
+ ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
16859
16189
  key: 1,
16860
16190
  size: 4,
16861
16191
  weight: "2",
@@ -16876,7 +16206,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16876
16206
  style: vue.normalizeStyle([`--p:${fileQ.progress}`, { "--b": "2px" }])
16877
16207
  }, [
16878
16208
  fileQ.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15$1, vue.toDisplayString(`${fileQ.progress.toFixed(0)}`), 1)) : vue.createCommentVNode("", true),
16879
- vue.createVNode(vue.unref(_sfc_main$s), {
16209
+ vue.createVNode(vue.unref(_sfc_main$t), {
16880
16210
  class: "success",
16881
16211
  icon: "check"
16882
16212
  })
@@ -16900,7 +16230,7 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16900
16230
  browse
16901
16231
  }, () => [
16902
16232
  vue.createElementVNode("p", _hoisted_16$1, [
16903
- vue.createVNode(vue.unref(_sfc_main$s), { icon: "upload_2" }),
16233
+ vue.createVNode(vue.unref(_sfc_main$t), { icon: "upload_2" }),
16904
16234
  vue.createElementVNode("span", _hoisted_17$1, vue.toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
16905
16235
  ])
16906
16236
  ], true) : vue.createCommentVNode("", true)
@@ -16909,11 +16239,11 @@ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16909
16239
  };
16910
16240
  }
16911
16241
  });
16912
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-50fd0597"]]);
16913
- const _hoisted_1$C = ["title"];
16914
- const _hoisted_2$q = { key: 0 };
16915
- const _hoisted_3$m = ["value", "placeholder"];
16916
- const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
16242
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-50fd0597"]]);
16243
+ const _hoisted_1$D = ["title"];
16244
+ const _hoisted_2$r = { key: 0 };
16245
+ const _hoisted_3$n = ["value", "placeholder"];
16246
+ const _sfc_main$K = /* @__PURE__ */ vue.defineComponent({
16917
16247
  __name: "JSONInput",
16918
16248
  props: {
16919
16249
  description: { default: "" },
@@ -16936,7 +16266,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
16936
16266
  class: vue.normalizeClass(["bagel-input", { small: _ctx.small }]),
16937
16267
  title: _ctx.description
16938
16268
  }, [
16939
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$q, [
16269
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$r, [
16940
16270
  vue.createVNode(_component_LangText, { input: _ctx.label }, null, 8, ["input"])
16941
16271
  ])) : vue.createCommentVNode("", true),
16942
16272
  vue.createElementVNode("textarea", {
@@ -16944,18 +16274,18 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
16944
16274
  class: vue.normalizeClass({ "no-edit": !_ctx.editMode }),
16945
16275
  placeholder: _ctx.placeholder,
16946
16276
  onInput: handleInput
16947
- }, null, 42, _hoisted_3$m)
16948
- ], 10, _hoisted_1$C);
16277
+ }, null, 42, _hoisted_3$n)
16278
+ ], 10, _hoisted_1$D);
16949
16279
  };
16950
16280
  }
16951
16281
  });
16952
- const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-1cbaeab2"]]);
16953
- const _hoisted_1$B = ["for"];
16954
- const _hoisted_2$p = {
16282
+ const JSONInput = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-1cbaeab2"]]);
16283
+ const _hoisted_1$C = ["for"];
16284
+ const _hoisted_2$q = {
16955
16285
  key: 0,
16956
16286
  class: "block"
16957
16287
  };
16958
- const _hoisted_3$l = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
16288
+ const _hoisted_3$m = ["id", "placeholder", "disabled", "required", "readonly", "pattern", "onKeydown"];
16959
16289
  const _hoisted_4$e = {
16960
16290
  key: 1,
16961
16291
  class: "opacity-7 light"
@@ -16964,7 +16294,7 @@ const _hoisted_5$e = {
16964
16294
  key: 5,
16965
16295
  class: "flex column spinner"
16966
16296
  };
16967
- const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
16297
+ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
16968
16298
  __name: "NumberInput",
16969
16299
  props: {
16970
16300
  modelValue: {},
@@ -17069,7 +16399,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17069
16399
  }])
17070
16400
  }, [
17071
16401
  vue.createElementVNode("div", { for: _ctx.id }, [
17072
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$p, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
16402
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$q, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
17073
16403
  vue.createElementVNode("div", {
17074
16404
  class: vue.normalizeClass(["gap-025", { "column flex": _ctx.layout === "vertical", "flex": _ctx.layout === "horizontal" }])
17075
16405
  }, [
@@ -17104,7 +16434,7 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17104
16434
  vue.withKeys(vue.withModifiers(increment, ["prevent"]), ["up"]),
17105
16435
  vue.withKeys(vue.withModifiers(decrement, ["prevent"]), ["down"])
17106
16436
  ]
17107
- }, null, 42, _hoisted_3$l), [
16437
+ }, null, 42, _hoisted_3$m), [
17108
16438
  [
17109
16439
  vue.vModelText,
17110
16440
  vue.unref(formattedValue),
@@ -17119,12 +16449,12 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17119
16449
  ]
17120
16450
  ]),
17121
16451
  _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_4$e, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true),
17122
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
16452
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
17123
16453
  key: 2,
17124
16454
  class: "iconStart",
17125
16455
  icon: _ctx.iconStart
17126
16456
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
17127
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
16457
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
17128
16458
  key: 3,
17129
16459
  icon: _ctx.icon
17130
16460
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -17157,14 +16487,14 @@ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17157
16487
  }, null, 8, ["disabled"])
17158
16488
  ])) : vue.createCommentVNode("", true)
17159
16489
  ], 2)
17160
- ], 8, _hoisted_1$B)
16490
+ ], 8, _hoisted_1$C)
17161
16491
  ], 2);
17162
16492
  };
17163
16493
  }
17164
16494
  });
17165
- const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-78609eff"]]);
17166
- const _hoisted_1$A = ["value", "autofocus", "onKeydown", "onPaste"];
17167
- const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
16495
+ const NumberInput = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-78609eff"]]);
16496
+ const _hoisted_1$B = ["value", "autofocus", "onKeydown", "onPaste"];
16497
+ const _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
17168
16498
  __name: "OTP",
17169
16499
  props: {
17170
16500
  digitCount: {},
@@ -17268,16 +16598,16 @@ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17268
16598
  onPaste: ($event) => handlePaste($event, ind),
17269
16599
  onKeyup: _cache[0] || (_cache[0] = vue.withModifiers(() => {
17270
16600
  }, ["prevent"]))
17271
- }, null, 40, _hoisted_1$A);
16601
+ }, null, 40, _hoisted_1$B);
17272
16602
  }), 128))
17273
16603
  ], 512);
17274
16604
  };
17275
16605
  }
17276
16606
  });
17277
- const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-ab0a46bf"]]);
17278
- const _hoisted_1$z = { class: "relative passwordInput" };
17279
- const _hoisted_2$o = { class: "m-password position-bottom-end flex column justify-content-center" };
17280
- const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
16607
+ const OTP = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-ab0a46bf"]]);
16608
+ const _hoisted_1$A = { class: "relative passwordInput" };
16609
+ const _hoisted_2$p = { class: "m-password position-bottom-end flex column justify-content-center" };
16610
+ const _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
17281
16611
  __name: "PasswordInput",
17282
16612
  props: /* @__PURE__ */ vue.mergeModels({
17283
16613
  id: {},
@@ -17317,7 +16647,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17317
16647
  const toggleShowPwdIcon = vue.computed(() => showPwd.value ? "visibility_off" : "visibility");
17318
16648
  const inputType = vue.computed(() => showPwd.value ? "text" : "password");
17319
16649
  return (_ctx, _cache) => {
17320
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$z, [
16650
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
17321
16651
  vue.createVNode(vue.unref(TextInput), vue.mergeProps({
17322
16652
  modelValue: password.value,
17323
16653
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => password.value = $event)
@@ -17326,7 +16656,7 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17326
16656
  class: "mb-0",
17327
16657
  name: props2.name
17328
16658
  }), null, 16, ["modelValue", "type", "name"]),
17329
- vue.createElementVNode("div", _hoisted_2$o, [
16659
+ vue.createElementVNode("div", _hoisted_2$p, [
17330
16660
  vue.createVNode(vue.unref(Btn), {
17331
16661
  flat: "",
17332
16662
  thin: "",
@@ -17339,9 +16669,9 @@ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17339
16669
  };
17340
16670
  }
17341
16671
  });
17342
- const _hoisted_1$y = ["for"];
17343
- const _hoisted_2$n = ["id", "disabled", "name", "value", "required"];
17344
- const _hoisted_3$k = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
16672
+ const _hoisted_1$z = ["for"];
16673
+ const _hoisted_2$o = ["id", "disabled", "name", "value", "required"];
16674
+ const _hoisted_3$l = { class: "flex w-100 gap-1 flex-wrap m_gap-05 m_gap-row-025" };
17345
16675
  const _hoisted_4$d = ["src", "alt"];
17346
16676
  const _hoisted_5$d = { class: "" };
17347
16677
  const _hoisted_6$b = {
@@ -17352,7 +16682,7 @@ const _hoisted_7$8 = {
17352
16682
  key: 1,
17353
16683
  class: "txt-gray txt-12 m-0"
17354
16684
  };
17355
- const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
16685
+ const _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
17356
16686
  __name: "RadioGroup",
17357
16687
  props: /* @__PURE__ */ vue.mergeModels({
17358
16688
  groupName: {},
@@ -17410,10 +16740,10 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17410
16740
  onFocus: handleFocus,
17411
16741
  onBlur: handleBlur,
17412
16742
  onChange: handleChange
17413
- }, null, 40, _hoisted_2$n), [
16743
+ }, null, 40, _hoisted_2$o), [
17414
16744
  [vue.vModelRadio, selectedOption.value]
17415
16745
  ]),
17416
- vue.createElementVNode("div", _hoisted_3$k, [
16746
+ vue.createElementVNode("div", _hoisted_3$l, [
17417
16747
  opt.imgSrc ? (vue.openBlock(), vue.createElementBlock("img", {
17418
16748
  key: 0,
17419
16749
  class: "bg-popup shadow-light py-025 radius-05 m_w40",
@@ -17435,19 +16765,19 @@ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17435
16765
  icon: "delete",
17436
16766
  onClick: ($event) => _ctx.$emit("delete", opt)
17437
16767
  }, null, 8, ["onClick"])) : vue.createCommentVNode("", true)
17438
- ], 8, _hoisted_1$y);
16768
+ ], 8, _hoisted_1$z);
17439
16769
  }), 128))
17440
16770
  ], 2);
17441
16771
  };
17442
16772
  }
17443
16773
  });
17444
- const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-29cff93d"]]);
17445
- const _hoisted_1$x = { class: "bagel-input" };
17446
- const _hoisted_2$m = { class: "pb-025" };
17447
- const _hoisted_3$j = { class: "flex gap-05 flex-wrap" };
16774
+ const RadioGroup = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-29cff93d"]]);
16775
+ const _hoisted_1$y = { class: "bagel-input" };
16776
+ const _hoisted_2$n = { class: "pb-025" };
16777
+ const _hoisted_3$k = { class: "flex gap-05 flex-wrap" };
17448
16778
  const _hoisted_4$c = ["id", "name", "value", "checked"];
17449
16779
  const _hoisted_5$c = ["for"];
17450
- const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
16780
+ const _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
17451
16781
  __name: "RadioPillsInput",
17452
16782
  props: {
17453
16783
  options: {},
@@ -17490,9 +16820,9 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17490
16820
  selectedValue.value = props2.modelValue;
17491
16821
  });
17492
16822
  return (_ctx, _cache) => {
17493
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$x, [
17494
- vue.createElementVNode("label", _hoisted_2$m, vue.toDisplayString(_ctx.label), 1),
17495
- vue.createElementVNode("div", _hoisted_3$j, [
16823
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$y, [
16824
+ vue.createElementVNode("label", _hoisted_2$n, vue.toDisplayString(_ctx.label), 1),
16825
+ vue.createElementVNode("div", _hoisted_3$k, [
17496
16826
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.options, (option2, index2) => {
17497
16827
  return vue.openBlock(), vue.createElementBlock("div", {
17498
16828
  key: index2,
@@ -17516,18 +16846,18 @@ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17516
16846
  };
17517
16847
  }
17518
16848
  });
17519
- const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-68b4cdd0"]]);
17520
- const _hoisted_1$w = ["dir"];
17521
- const _hoisted_2$l = {
16849
+ const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-68b4cdd0"]]);
16850
+ const _hoisted_1$x = ["dir"];
16851
+ const _hoisted_2$m = {
17522
16852
  key: 0,
17523
16853
  class: "label"
17524
16854
  };
17525
- const _hoisted_3$i = { class: "range-slider relative w-100" };
16855
+ const _hoisted_3$j = { class: "range-slider relative w-100" };
17526
16856
  const _hoisted_4$b = ["id", "value", "min", "max", "step", "required", "disabled", "aria-label"];
17527
16857
  const _hoisted_5$b = ["value", "min", "max", "step", "required", "disabled"];
17528
16858
  const _hoisted_6$a = { class: "track absolute pointer-events-none overflow-hidden round" };
17529
16859
  const _hoisted_7$7 = { class: "txt-center txt-14 user-select-none range-slider-txt flex space-between opacity-4 mx-05" };
17530
- const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
16860
+ const _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
17531
16861
  __name: "RangeInput",
17532
16862
  props: {
17533
16863
  modelValue: {},
@@ -17591,8 +16921,8 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17591
16921
  return vue.openBlock(), vue.createElementBlock("div", {
17592
16922
  dir: _ctx.rtl ? "rtl" : "ltr"
17593
16923
  }, [
17594
- props2.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$l, vue.toDisplayString(props2.label), 1)) : vue.createCommentVNode("", true),
17595
- vue.createElementVNode("div", _hoisted_3$i, [
16924
+ props2.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$m, vue.toDisplayString(props2.label), 1)) : vue.createCommentVNode("", true),
16925
+ vue.createElementVNode("div", _hoisted_3$j, [
17596
16926
  vue.createElementVNode("input", {
17597
16927
  id: _ctx.id,
17598
16928
  value: validFrom.value,
@@ -17683,11 +17013,11 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17683
17013
  vue.createElementVNode("span", null, vue.toDisplayString(vue.unref(formatValue)(vue.unref(max2))), 1)
17684
17014
  ], true)
17685
17015
  ])
17686
- ], 8, _hoisted_1$w);
17016
+ ], 8, _hoisted_1$x);
17687
17017
  };
17688
17018
  }
17689
17019
  });
17690
- const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-46e22f3e"]]);
17020
+ const RangeInput = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-46e22f3e"]]);
17691
17021
  const basicToolbarConfig = [
17692
17022
  "h2",
17693
17023
  "h3",
@@ -17753,11 +17083,11 @@ const toolbarOptions = [
17753
17083
  { name: "separator" },
17754
17084
  { name: "fullScreen", label: "Full Screen", icon: "fullscreen", class: "ms-auto" }
17755
17085
  ];
17756
- const _hoisted_1$v = { class: "grid grid-wrap p-05" };
17757
- const _hoisted_2$k = ["onMousemove", "onClick"];
17758
- const _hoisted_3$h = { class: "txt-center txt-12 color-gray" };
17086
+ const _hoisted_1$w = { class: "grid grid-wrap p-05" };
17087
+ const _hoisted_2$l = ["onMousemove", "onClick"];
17088
+ const _hoisted_3$i = { class: "txt-center txt-12 color-gray" };
17759
17089
  const fb = 1;
17760
- const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17090
+ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
17761
17091
  __name: "gridBox",
17762
17092
  props: {
17763
17093
  gridSize: {}
@@ -17778,7 +17108,7 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17778
17108
  return hoveredCol.value > base - 1 ? enlarge : base;
17779
17109
  });
17780
17110
  return (_ctx, _cache) => {
17781
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
17111
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$w, [
17782
17112
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(rowSize.value, (row) => {
17783
17113
  return vue.openBlock(), vue.createElementBlock("div", {
17784
17114
  key: `row-${row}`,
@@ -17805,21 +17135,21 @@ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17805
17135
  hoveredCol.value = col;
17806
17136
  },
17807
17137
  onClick: ($event) => emit2("select", `${row}x${col}`)
17808
- }, null, 42, _hoisted_2$k);
17138
+ }, null, 42, _hoisted_2$l);
17809
17139
  }), 128))
17810
17140
  ], 32);
17811
17141
  }), 128)),
17812
- vue.createElementVNode("p", _hoisted_3$h, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
17142
+ vue.createElementVNode("p", _hoisted_3$i, vue.toDisplayString(hoveredRow.value) + "x" + vue.toDisplayString(hoveredCol.value), 1)
17813
17143
  ]);
17814
17144
  };
17815
17145
  }
17816
17146
  });
17817
- const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-2f424c9c"]]);
17818
- const _hoisted_1$u = {
17147
+ const GridBox = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-2f424c9c"]]);
17148
+ const _hoisted_1$v = {
17819
17149
  class: "toolbar flex gap-025 pb-05 flex-wrap",
17820
17150
  role: "toolbar"
17821
17151
  };
17822
- const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17152
+ const _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
17823
17153
  __name: "EditorToolbar",
17824
17154
  props: {
17825
17155
  config: { default: basicToolbarConfig },
@@ -17834,10 +17164,10 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17834
17164
  }
17835
17165
  return (_ctx, _cache) => {
17836
17166
  const _directive_tooltip = vue.resolveDirective("tooltip");
17837
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
17167
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$v, [
17838
17168
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.config.map(configToOption).filter(Boolean), (action, index2) => {
17839
17169
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: index2 }, [
17840
- action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
17170
+ action.name === "insertTable" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Y), {
17841
17171
  key: 0,
17842
17172
  placement: "bottom-start",
17843
17173
  thin: "",
@@ -17875,7 +17205,7 @@ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
17875
17205
  };
17876
17206
  }
17877
17207
  });
17878
- const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-7e9466dc"]]);
17208
+ const EditorToolbar = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-7e9466dc"]]);
17879
17209
  function isStyleActive(style, doc) {
17880
17210
  const selection = doc.getSelection();
17881
17211
  if (!selection || !selection.rangeCount) return false;
@@ -19442,13 +18772,13 @@ function isNodeEmpty(node) {
19442
18772
  if (brElements.length === 0) return true;
19443
18773
  return brElements.length === 1 && node.childNodes.length <= 2;
19444
18774
  }
19445
- const _hoisted_1$t = { class: "bagel-input" };
19446
- const _hoisted_2$j = { class: "content-area radius-05" };
19447
- const _hoisted_3$g = {
18775
+ const _hoisted_1$u = { class: "bagel-input" };
18776
+ const _hoisted_2$k = { class: "content-area radius-05" };
18777
+ const _hoisted_3$h = {
19448
18778
  key: 1,
19449
18779
  class: "flex"
19450
18780
  };
19451
- const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
18781
+ const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
19452
18782
  __name: "index",
19453
18783
  props: {
19454
18784
  modelValue: {},
@@ -19565,7 +18895,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
19565
18895
  });
19566
18896
  return (_ctx, _cache) => {
19567
18897
  var _a, _b;
19568
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$t, [
18898
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$u, [
19569
18899
  vue.createElementVNode("label", null, vue.toDisplayString(_ctx.label), 1),
19570
18900
  vue.createElementVNode("div", {
19571
18901
  class: vue.normalizeClass(["rich-text-editor rounded pt-05 px-05 pb-075", { "fullscreen-mode": vue.unref(editor).state.isFullscreen }])
@@ -19579,7 +18909,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
19579
18909
  vue.createElementVNode("div", {
19580
18910
  class: vue.normalizeClass(["editor-container", { "split-view": vue.unref(editor).state.isSplitView }])
19581
18911
  }, [
19582
- vue.createElementVNode("div", _hoisted_2$j, [
18912
+ vue.createElementVNode("div", _hoisted_2$k, [
19583
18913
  vue.createElementVNode("iframe", {
19584
18914
  id: "rich-text-iframe",
19585
18915
  ref_key: "iframe",
@@ -19602,7 +18932,7 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
19602
18932
  class: "code-editor"
19603
18933
  }, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)
19604
18934
  ], 2),
19605
- _ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$g, [
18935
+ _ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$h, [
19606
18936
  _cache[6] || (_cache[6] = vue.createElementVNode("p", { class: "text12 txt-gray mb-0 p-0" }, " Debug ", -1)),
19607
18937
  vue.createVNode(vue.unref(Btn), {
19608
18938
  thin: "",
@@ -19646,10 +18976,10 @@ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
19646
18976
  };
19647
18977
  }
19648
18978
  });
19649
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-30bcda4c"]]);
19650
- const _hoisted_1$s = { key: 0 };
19651
- const _hoisted_2$i = { class: "flex gap-05" };
19652
- const _hoisted_3$f = ["disabled"];
18979
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-30bcda4c"]]);
18980
+ const _hoisted_1$t = { key: 0 };
18981
+ const _hoisted_2$j = { class: "flex gap-05" };
18982
+ const _hoisted_3$g = ["disabled"];
19653
18983
  const _hoisted_4$a = { key: 1 };
19654
18984
  const _hoisted_5$a = {
19655
18985
  key: 2,
@@ -19658,7 +18988,7 @@ const _hoisted_5$a = {
19658
18988
  const _hoisted_6$9 = ["value"];
19659
18989
  const _hoisted_7$6 = ["aria-selected", "onClick", "onKeydown"];
19660
18990
  const _hoisted_8$5 = { class: "block" };
19661
- const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
18991
+ const _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
19662
18992
  __name: "SelectInput",
19663
18993
  props: {
19664
18994
  options: {},
@@ -19818,7 +19148,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19818
19148
  }
19819
19149
  });
19820
19150
  return (_ctx, _cache) => {
19821
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$X), {
19151
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$Y), {
19822
19152
  ref_key: "dropdown",
19823
19153
  ref: dropdown,
19824
19154
  shown: vue.unref(open),
@@ -19832,8 +19162,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19832
19162
  trigger: vue.withCtx(() => [
19833
19163
  vue.createElementVNode("label", null, [
19834
19164
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
19835
- _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$s, "*")) : vue.createCommentVNode("", true),
19836
- vue.createElementVNode("div", _hoisted_2$i, [
19165
+ _ctx.required ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$t, "*")) : vue.createCommentVNode("", true),
19166
+ vue.createElementVNode("div", _hoisted_2$j, [
19837
19167
  _ctx.searchable && vue.unref(open) ? (vue.openBlock(), vue.createBlock(vue.unref(TextInput), {
19838
19168
  key: 0,
19839
19169
  ref_key: "searchInput",
@@ -19859,7 +19189,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19859
19189
  _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(($event) => navigate("up"), ["prevent"]), ["up"]))
19860
19190
  ]
19861
19191
  }, [
19862
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
19192
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
19863
19193
  key: 0,
19864
19194
  icon: _ctx.icon
19865
19195
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -19876,11 +19206,11 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19876
19206
  })
19877
19207
  })
19878
19208
  ])) : vue.createCommentVNode("", true),
19879
- !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), vue.mergeProps({
19209
+ !_ctx.disabled ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), vue.mergeProps({
19880
19210
  key: 3,
19881
19211
  thin: ""
19882
19212
  }, { icon: vue.unref(open) ? "unfold_less" : "unfold_more" }), null, 16)) : vue.createCommentVNode("", true)
19883
- ], 42, _hoisted_3$f)),
19213
+ ], 42, _hoisted_3$g)),
19884
19214
  _ctx.required ? (vue.openBlock(), vue.createElementBlock("input", {
19885
19215
  key: 2,
19886
19216
  tabindex: "-1",
@@ -19926,12 +19256,12 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19926
19256
  ]
19927
19257
  }, [
19928
19258
  _ctx.multiselect ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
19929
- isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
19259
+ isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
19930
19260
  key: 0,
19931
19261
  size: 1.1,
19932
19262
  icon: "select_check_box"
19933
19263
  })) : vue.createCommentVNode("", true),
19934
- !isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
19264
+ !isSelected(option2) ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
19935
19265
  key: 1,
19936
19266
  class: "opacity-3",
19937
19267
  icon: "check_box_outline_blank",
@@ -19952,7 +19282,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
19952
19282
  };
19953
19283
  }
19954
19284
  });
19955
- const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-c16650b4"]]);
19285
+ const SelectInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-c16650b4"]]);
19956
19286
  /*!
19957
19287
  * Signature Pad v5.0.7 | https://github.com/szimek/signature_pad
19958
19288
  * (c) 2025 Szymon Nowak | Released under the MIT license
@@ -20549,15 +19879,15 @@ class SignaturePad extends SignatureEventTarget {
20549
19879
  return svg.outerHTML;
20550
19880
  }
20551
19881
  }
20552
- const _hoisted_1$r = ["disabled"];
20553
- const _hoisted_2$h = {
19882
+ const _hoisted_1$s = ["disabled"];
19883
+ const _hoisted_2$i = {
20554
19884
  key: 1,
20555
19885
  placeholder: "required",
20556
19886
  type: "text",
20557
19887
  required: "",
20558
19888
  class: "pixel opacity-0"
20559
19889
  };
20560
- const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
19890
+ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
20561
19891
  __name: "SignaturePad",
20562
19892
  props: /* @__PURE__ */ vue.mergeModels({
20563
19893
  sigOption: {},
@@ -20753,8 +20083,8 @@ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
20753
20083
  ref: vCanvas,
20754
20084
  class: "canvas",
20755
20085
  disabled: _ctx.disabled
20756
- }, null, 8, _hoisted_1$r),
20757
- _ctx.required && vue.unref(_isEmpty) ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$h)) : vue.createCommentVNode("", true)
20086
+ }, null, 8, _hoisted_1$s),
20087
+ _ctx.required && vue.unref(_isEmpty) ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_2$i)) : vue.createCommentVNode("", true)
20758
20088
  ], 34);
20759
20089
  };
20760
20090
  }
@@ -23238,13 +22568,13 @@ const VueDraggableNext = vue.defineComponent({
23238
22568
  }
23239
22569
  }
23240
22570
  });
23241
- const _hoisted_1$q = ["title"];
23242
- const _hoisted_2$g = { class: "bagel-input" };
23243
- const _hoisted_3$e = { class: "table-side-scroll" };
22571
+ const _hoisted_1$r = ["title"];
22572
+ const _hoisted_2$h = { class: "bagel-input" };
22573
+ const _hoisted_3$f = { class: "table-side-scroll" };
23244
22574
  const _hoisted_4$9 = { class: "table-header" };
23245
22575
  const _hoisted_5$9 = { class: "table-reorder" };
23246
22576
  const _hoisted_6$8 = { class: "table-action" };
23247
- const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
22577
+ const _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
23248
22578
  __name: "TableField",
23249
22579
  props: {
23250
22580
  description: { default: "" },
@@ -23309,10 +22639,10 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
23309
22639
  class: "table-field-wrap",
23310
22640
  title: _ctx.description
23311
22641
  }, [
23312
- vue.createElementVNode("div", _hoisted_2$g, [
22642
+ vue.createElementVNode("div", _hoisted_2$h, [
23313
22643
  vue.createElementVNode("label", null, vue.toDisplayString((_a = vue.unref(fieldMeta)) == null ? void 0 : _a.label), 1)
23314
22644
  ]),
23315
- vue.createElementVNode("div", _hoisted_3$e, [
22645
+ vue.createElementVNode("div", _hoisted_3$f, [
23316
22646
  vue.createElementVNode("div", _hoisted_4$9, [
23317
22647
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_b = vue.unref(entityMeta)) == null ? void 0 : _b.fields, (field) => {
23318
22648
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -23341,7 +22671,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
23341
22671
  class: "flex table-row"
23342
22672
  }, [
23343
22673
  vue.createElementVNode("div", _hoisted_5$9, [
23344
- vue.createVNode(vue.unref(_sfc_main$s), { icon: "more_vert" })
22674
+ vue.createVNode(vue.unref(_sfc_main$t), { icon: "more_vert" })
23345
22675
  ]),
23346
22676
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList((_a2 = vue.unref(entityMeta)) == null ? void 0 : _a2.fields, (field) => {
23347
22677
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -23358,7 +22688,7 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
23358
22688
  ], 2);
23359
22689
  }), 128)),
23360
22690
  vue.createElementVNode("div", _hoisted_6$8, [
23361
- vue.createVNode(vue.unref(_sfc_main$s), {
22691
+ vue.createVNode(vue.unref(_sfc_main$t), {
23362
22692
  icon: "delete",
23363
22693
  onClick: ($event) => removeRow(index2)
23364
22694
  }, null, 8, ["onClick"])
@@ -23384,11 +22714,11 @@ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
23384
22714
  ])),
23385
22715
  _: 1
23386
22716
  })
23387
- ], 8, _hoisted_1$q);
22717
+ ], 8, _hoisted_1$r);
23388
22718
  };
23389
22719
  }
23390
22720
  });
23391
- const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-e9632f79"]]);
22721
+ const TableField = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-e9632f79"]]);
23392
22722
  function bind(fn, thisArg) {
23393
22723
  return function wrap() {
23394
22724
  return fn.apply(thisArg, arguments);
@@ -27862,9 +27192,9 @@ function parsePhoneNumber$1() {
27862
27192
  function parsePhoneNumber() {
27863
27193
  return withMetadataArgument(parsePhoneNumber$1, arguments);
27864
27194
  }
27865
- const _hoisted_1$p = { key: 0 };
27866
- const _hoisted_2$f = ["aria-expanded"];
27867
- const _hoisted_3$d = { class: "flex gap-05 country-code-display" };
27195
+ const _hoisted_1$q = { key: 0 };
27196
+ const _hoisted_2$g = ["aria-expanded"];
27197
+ const _hoisted_3$e = { class: "flex gap-05 country-code-display" };
27868
27198
  const _hoisted_4$8 = { class: "p-075 tel-countryp-dropdown" };
27869
27199
  const _hoisted_5$8 = {
27870
27200
  class: "overflow-y p-0 max-h-300px",
@@ -27873,7 +27203,7 @@ const _hoisted_5$8 = {
27873
27203
  const _hoisted_6$7 = ["aria-selected", "onClick"];
27874
27204
  const _hoisted_7$5 = { class: "tel-country" };
27875
27205
  const _hoisted_8$4 = ["id", "required", "placeholder", "disabled", "name"];
27876
- const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
27206
+ const _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
27877
27207
  __name: "TelInput",
27878
27208
  props: {
27879
27209
  id: {},
@@ -28043,7 +27373,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28043
27373
  }, [
28044
27374
  vue.createElementVNode("label", null, [
28045
27375
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
28046
- _ctx.required && _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$p, "*")) : vue.createCommentVNode("", true),
27376
+ _ctx.required && _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_1$q, "*")) : vue.createCommentVNode("", true),
28047
27377
  vue.createElementVNode("div", {
28048
27378
  dir: "ltr",
28049
27379
  class: "flex gap-05 tel-input",
@@ -28052,7 +27382,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28052
27382
  "aria-haspopup": "listbox",
28053
27383
  "aria-expanded": vue.unref(open)
28054
27384
  }, [
28055
- vue.createVNode(vue.unref(_sfc_main$X), {
27385
+ vue.createVNode(vue.unref(_sfc_main$Y), {
28056
27386
  shown: vue.unref(open),
28057
27387
  "onUpdate:shown": _cache[1] || (_cache[1] = ($event) => vue.isRef(open) ? open.value = $event : open = $event),
28058
27388
  placement: "bottom-start",
@@ -28060,8 +27390,8 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28060
27390
  onShow: focusSearchInput
28061
27391
  }, {
28062
27392
  trigger: vue.withCtx(() => [
28063
- vue.createElementVNode("span", _hoisted_3$d, [
28064
- !disableDropdown.value ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
27393
+ vue.createElementVNode("span", _hoisted_3$e, [
27394
+ !disableDropdown.value ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28065
27395
  key: 0,
28066
27396
  icon: vue.unref(open) ? "collapse_all" : "expand_all"
28067
27397
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -28132,23 +27462,23 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28132
27462
  { tel: true }
28133
27463
  ]
28134
27464
  ])
28135
- ], 8, _hoisted_2$f)
27465
+ ], 8, _hoisted_2$g)
28136
27466
  ])
28137
27467
  ], 2);
28138
27468
  };
28139
27469
  }
28140
27470
  });
28141
- const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-24f599bf"]]);
28142
- const _hoisted_1$o = ["title"];
28143
- const _hoisted_2$e = ["for"];
28144
- const _hoisted_3$c = { key: 0 };
27471
+ const TelInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-24f599bf"]]);
27472
+ const _hoisted_1$p = ["title"];
27473
+ const _hoisted_2$f = ["for"];
27474
+ const _hoisted_3$d = { key: 0 };
28145
27475
  const _hoisted_4$7 = ["id", "name", "title", "autocomplete", "type", "placeholder", "disabled", "required", "pattern"];
28146
27476
  const _hoisted_5$7 = ["id", "name", "title", "type", "rows", "placeholder", "disabled", "required", "pattern"];
28147
27477
  const _hoisted_6$6 = {
28148
27478
  key: 3,
28149
27479
  class: "opacity-7 light"
28150
27480
  };
28151
- const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
27481
+ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
28152
27482
  __name: "TextInput",
28153
27483
  props: {
28154
27484
  id: {},
@@ -28240,7 +27570,7 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28240
27570
  }, [
28241
27571
  vue.createElementVNode("label", { for: _ctx.id }, [
28242
27572
  vue.createTextVNode(vue.toDisplayString(_ctx.label) + " ", 1),
28243
- _ctx.required && _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$c, "*")) : vue.createCommentVNode("", true),
27573
+ _ctx.required && _ctx.label ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_3$d, "*")) : vue.createCommentVNode("", true),
28244
27574
  !_ctx.multiline && !_ctx.autoheight && !_ctx.code && inputRows.value < 2 ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
28245
27575
  key: 1,
28246
27576
  id: _ctx.id,
@@ -28291,25 +27621,25 @@ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28291
27621
  [vue.vModelText, vue.unref(inputVal)]
28292
27622
  ]),
28293
27623
  _ctx.helptext ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6$6, vue.toDisplayString(_ctx.helptext), 1)) : vue.createCommentVNode("", true),
28294
- _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
27624
+ _ctx.iconStart ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28295
27625
  key: 4,
28296
27626
  class: "iconStart",
28297
27627
  icon: _ctx.iconStart
28298
27628
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
28299
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
27629
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28300
27630
  key: 5,
28301
27631
  icon: _ctx.icon
28302
27632
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true)
28303
- ], 8, _hoisted_2$e)
28304
- ], 10, _hoisted_1$o);
27633
+ ], 8, _hoisted_2$f)
27634
+ ], 10, _hoisted_1$p);
28305
27635
  };
28306
27636
  }
28307
27637
  });
28308
- const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-84ff4b81"]]);
28309
- const _hoisted_1$n = ["title"];
28310
- const _hoisted_2$d = ["id", "required"];
28311
- const _hoisted_3$b = ["for"];
28312
- const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
27638
+ const TextInput = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-84ff4b81"]]);
27639
+ const _hoisted_1$o = ["title"];
27640
+ const _hoisted_2$e = ["id", "required"];
27641
+ const _hoisted_3$c = ["for"];
27642
+ const _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
28313
27643
  __name: "ToggleInput",
28314
27644
  props: /* @__PURE__ */ vue.mergeModels({
28315
27645
  label: {},
@@ -28345,19 +27675,19 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
28345
27675
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checked.value = $event),
28346
27676
  type: "checkbox",
28347
27677
  required: _ctx.required
28348
- }, null, 8, _hoisted_2$d), [
27678
+ }, null, 8, _hoisted_2$e), [
28349
27679
  [vue.vModelCheckbox, checked.value]
28350
27680
  ]),
28351
27681
  vue.createElementVNode("label", { for: inputId.value }, [
28352
27682
  vue.renderSlot(_ctx.$slots, "label", {}, () => [
28353
27683
  vue.createTextVNode(vue.toDisplayString(_ctx.label), 1)
28354
27684
  ], true)
28355
- ], 8, _hoisted_3$b)
28356
- ], 10, _hoisted_1$n);
27685
+ ], 8, _hoisted_3$c)
27686
+ ], 10, _hoisted_1$o);
28357
27687
  };
28358
27688
  }
28359
27689
  });
28360
- const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-c5e45931"]]);
27690
+ const ToggleInput = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-c5e45931"]]);
28361
27691
  const files = {
28362
27692
  setBaseUrl: (baseUrl) => {
28363
27693
  if (!baseUrl) return;
@@ -28386,9 +27716,9 @@ const files = {
28386
27716
  return axios$1.get("/files_v2/list", { params: { dir_path: dirPath } });
28387
27717
  }
28388
27718
  };
28389
- const _hoisted_1$m = { class: "bagel-input" };
28390
- const _hoisted_2$c = { key: 0 };
28391
- const _hoisted_3$a = {
27719
+ const _hoisted_1$n = { class: "bagel-input" };
27720
+ const _hoisted_2$d = { key: 0 };
27721
+ const _hoisted_3$b = {
28392
27722
  key: 1,
28393
27723
  placeholder: "required",
28394
27724
  type: "text",
@@ -28427,7 +27757,7 @@ const _hoisted_15 = {
28427
27757
  };
28428
27758
  const _hoisted_16 = { class: "p-1 flex column hover fileUploadPlaceHolder justify-content-center mb-05" };
28429
27759
  const _hoisted_17 = { class: "pretty balance" };
28430
- const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
27760
+ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
28431
27761
  __name: "UploadInput",
28432
27762
  props: {
28433
27763
  label: {},
@@ -28536,9 +27866,9 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28536
27866
  return (_ctx, _cache) => {
28537
27867
  const _directive_tooltip = vue.resolveDirective("tooltip");
28538
27868
  const _directive_lightbox = vue.resolveDirective("lightbox");
28539
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$m, [
28540
- _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$c, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
28541
- _ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$a)) : vue.createCommentVNode("", true),
27869
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
27870
+ _ctx.label ? (vue.openBlock(), vue.createElementBlock("label", _hoisted_2$d, vue.toDisplayString(_ctx.label), 1)) : vue.createCommentVNode("", true),
27871
+ _ctx.required && !pathKeys.value.length ? (vue.openBlock(), vue.createElementBlock("input", _hoisted_3$b)) : vue.createCommentVNode("", true),
28542
27872
  _ctx.theme === "basic" ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$12), {
28543
27873
  key: 2,
28544
27874
  outline: "",
@@ -28585,7 +27915,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28585
27915
  download: path_key.split("/").pop()
28586
27916
  }, null, 8, ["href", "download"]),
28587
27917
  vue.createElementVNode("div", _hoisted_5$6, [
28588
- vue.createVNode(vue.unref(_sfc_main$s), {
27918
+ vue.createVNode(vue.unref(_sfc_main$t), {
28589
27919
  icon: "draft",
28590
27920
  size: 1.5
28591
27921
  }),
@@ -28628,7 +27958,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28628
27958
  key: 0,
28629
27959
  pathKey: path_key,
28630
27960
  class: "multi-preview"
28631
- }, null, 8, ["pathKey"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
27961
+ }, null, 8, ["pathKey"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28632
27962
  key: 1,
28633
27963
  icon: "description",
28634
27964
  class: "multi-preview"
@@ -28655,7 +27985,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28655
27985
  class: "multi-preview",
28656
27986
  src: fileToUrl(file.file),
28657
27987
  alt: ""
28658
- }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
27988
+ }, null, 8, ["src"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28659
27989
  key: 1,
28660
27990
  icon: "description",
28661
27991
  class: "multi-preview"
@@ -28666,7 +27996,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28666
27996
  style: vue.normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
28667
27997
  }, [
28668
27998
  file.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11$2, vue.toDisplayString(file.progress.toFixed(0)), 1)) : vue.createCommentVNode("", true),
28669
- vue.createVNode(vue.unref(_sfc_main$s), {
27999
+ vue.createVNode(vue.unref(_sfc_main$t), {
28670
28000
  class: "success",
28671
28001
  icon: "check_circle"
28672
28002
  })
@@ -28714,7 +28044,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28714
28044
  }, null, 8, ["pathKey"]), [
28715
28045
  [_directive_lightbox, { src: vue.unref(pathKeyToURL)(path_key), download: true }]
28716
28046
  ])
28717
- ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
28047
+ ])) : vue.withDirectives((vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
28718
28048
  key: 1,
28719
28049
  size: 4,
28720
28050
  weight: "2",
@@ -28735,7 +28065,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28735
28065
  style: vue.normalizeStyle([{ "--p": file.progress }, { "--b": "2px" }])
28736
28066
  }, [
28737
28067
  file.progress < 100 ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, vue.toDisplayString(file.progress.toFixed(0)), 1)) : vue.createCommentVNode("", true),
28738
- vue.createVNode(vue.unref(_sfc_main$s), {
28068
+ vue.createVNode(vue.unref(_sfc_main$t), {
28739
28069
  class: "success",
28740
28070
  icon: "check_circle"
28741
28071
  })
@@ -28759,7 +28089,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28759
28089
  browse
28760
28090
  }, () => [
28761
28091
  vue.createElementVNode("p", _hoisted_16, [
28762
- vue.createVNode(vue.unref(_sfc_main$s), { icon: "upload_2" }),
28092
+ vue.createVNode(vue.unref(_sfc_main$t), { icon: "upload_2" }),
28763
28093
  vue.createElementVNode("span", _hoisted_17, vue.toDisplayString(_ctx.dropPlaceholder || "Drag and Drop files here or click to upload"), 1)
28764
28094
  ])
28765
28095
  ], true) : vue.createCommentVNode("", true)
@@ -28768,7 +28098,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
28768
28098
  };
28769
28099
  }
28770
28100
  });
28771
- const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-d8f3ff01"]]);
28101
+ const UploadInput = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-d8f3ff01"]]);
28772
28102
  const FONT_AWESOME_ICONS = [
28773
28103
  "trash-can",
28774
28104
  "message",
@@ -33194,7 +32524,7 @@ const MATERIAL_ICONS = [
33194
32524
  "zoom_out",
33195
32525
  "zoom_out_map"
33196
32526
  ];
33197
- const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
32527
+ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
33198
32528
  __name: "Icon",
33199
32529
  props: {
33200
32530
  icon: {},
@@ -33225,8 +32555,8 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
33225
32555
  };
33226
32556
  }
33227
32557
  });
33228
- const _hoisted_1$l = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
33229
- const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
32558
+ const _hoisted_1$m = ["src", "title", "width", "height", "marginwidth", "marginheight", "csp", "scrolling", "srcset"];
32559
+ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
33230
32560
  __name: "IframeVue",
33231
32561
  props: {
33232
32562
  src: {},
@@ -33285,14 +32615,14 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
33285
32615
  scrolling: _ctx.scrolling,
33286
32616
  srcset: _ctx.srcset,
33287
32617
  onLoad: _cache[0] || (_cache[0] = ($event) => emit2("load", $event))
33288
- }, null, 40, _hoisted_1$l);
32618
+ }, null, 40, _hoisted_1$m);
33289
32619
  };
33290
32620
  }
33291
32621
  });
33292
- const _hoisted_1$k = { key: 0 };
33293
- const _hoisted_2$b = ["src", "alt", "width", "height"];
33294
- const _hoisted_3$9 = ["src", "alt", "width", "height"];
33295
- const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
32622
+ const _hoisted_1$l = { key: 0 };
32623
+ const _hoisted_2$c = ["src", "alt", "width", "height"];
32624
+ const _hoisted_3$a = ["src", "alt", "width", "height"];
32625
+ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
33296
32626
  __name: "Image",
33297
32627
  props: {
33298
32628
  src: {},
@@ -33368,7 +32698,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33368
32698
  }
33369
32699
  vue.watch(() => [props2.src, props2.pathKey], loadImage, { immediate: true });
33370
32700
  return (_ctx, _cache) => {
33371
- return _ctx.caption ? (vue.openBlock(), vue.createElementBlock("figcaption", _hoisted_1$k, [
32701
+ return _ctx.caption ? (vue.openBlock(), vue.createElementBlock("figcaption", _hoisted_1$l, [
33372
32702
  vue.unref(imageSrc) ? (vue.openBlock(), vue.createElementBlock("img", vue.mergeProps({
33373
32703
  key: 0,
33374
32704
  src: vue.unref(imageSrc)
@@ -33376,7 +32706,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33376
32706
  alt: _ctx.alt,
33377
32707
  width: vue.unref(normalizeDimension)(_ctx.width),
33378
32708
  height: vue.unref(normalizeDimension)(_ctx.height)
33379
- }), null, 16, _hoisted_2$b)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
32709
+ }), null, 16, _hoisted_2$c)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
33380
32710
  key: 1,
33381
32711
  class: "img-web-kit",
33382
32712
  width: vue.unref(normalizeDimension)(_ctx.width),
@@ -33389,7 +32719,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33389
32719
  alt: _ctx.alt,
33390
32720
  width: vue.unref(normalizeDimension)(_ctx.width),
33391
32721
  height: vue.unref(normalizeDimension)(_ctx.height)
33392
- }), null, 16, _hoisted_3$9)) : vue.unref(loadingError) ? (vue.openBlock(), vue.createElementBlock("div", {
32722
+ }), null, 16, _hoisted_3$a)) : vue.unref(loadingError) ? (vue.openBlock(), vue.createElementBlock("div", {
33393
32723
  key: 2,
33394
32724
  class: "flex-center error-image",
33395
32725
  style: vue.normalizeStyle({
@@ -33397,7 +32727,7 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33397
32727
  height: vue.unref(normalizeDimension)(_ctx.height)
33398
32728
  })
33399
32729
  }, [
33400
- vue.createVNode(vue.unref(_sfc_main$s), { name: "broken_image" })
32730
+ vue.createVNode(vue.unref(_sfc_main$t), { name: "broken_image" })
33401
32731
  ], 4)) : (vue.openBlock(), vue.createBlock(vue.unref(Skeleton), {
33402
32732
  key: 3,
33403
32733
  class: "img-web-kit",
@@ -33407,9 +32737,9 @@ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33407
32737
  };
33408
32738
  }
33409
32739
  });
33410
- const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2f5e271c"]]);
33411
- const _hoisted_1$j = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
33412
- const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
32740
+ const Image$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-2f5e271c"]]);
32741
+ const _hoisted_1$k = { class: "m-0 pb-025 txt10 line-height-1 w60 menu-text" };
32742
+ const _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
33413
32743
  __name: "BottomMenu",
33414
32744
  props: {
33415
32745
  navLinks: {}
@@ -33427,12 +32757,12 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
33427
32757
  onClick: nav.onClick
33428
32758
  }, {
33429
32759
  default: vue.withCtx(() => [
33430
- vue.createVNode(vue.unref(_sfc_main$s), {
32760
+ vue.createVNode(vue.unref(_sfc_main$t), {
33431
32761
  icon: nav.icon,
33432
32762
  size: 1.4,
33433
32763
  class: "m-0 line-height-14"
33434
32764
  }, null, 8, ["icon"]),
33435
- vue.createElementVNode("p", _hoisted_1$j, vue.toDisplayString(nav.label), 1)
32765
+ vue.createElementVNode("p", _hoisted_1$k, vue.toDisplayString(nav.label), 1)
33436
32766
  ]),
33437
32767
  _: 2
33438
32768
  }, 1032, ["to", "onClick"]);
@@ -33444,8 +32774,8 @@ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
33444
32774
  };
33445
32775
  }
33446
32776
  });
33447
- const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-2227f9cc"]]);
33448
- const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
32777
+ const BottomMenu = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-2227f9cc"]]);
32778
+ const _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
33449
32779
  __name: "Layout",
33450
32780
  props: {
33451
32781
  gap: { default: 1 },
@@ -33486,9 +32816,9 @@ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
33486
32816
  };
33487
32817
  }
33488
32818
  });
33489
- const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-1814129a"]]);
33490
- const _hoisted_1$i = { key: 0 };
33491
- const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
32819
+ const Layout = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1814129a"]]);
32820
+ const _hoisted_1$j = { key: 0 };
32821
+ const _sfc_main$o = /* @__PURE__ */ vue.defineComponent({
33492
32822
  __name: "SidebarMenu",
33493
32823
  props: {
33494
32824
  navLinks: {},
@@ -33532,13 +32862,13 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
33532
32862
  ...nav.onClick && { onClick: nav.onClick }
33533
32863
  }, { class: "nav-button px-075 me-auto w-100" }), {
33534
32864
  default: vue.withCtx(() => [
33535
- vue.createVNode(vue.unref(_sfc_main$s), {
32865
+ vue.createVNode(vue.unref(_sfc_main$t), {
33536
32866
  icon: nav.icon,
33537
32867
  size: 1.4
33538
32868
  }, null, 8, ["icon"]),
33539
32869
  vue.createVNode(vue.Transition, { name: "showP" }, {
33540
32870
  default: vue.withCtx(() => [
33541
- _ctx.open ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$i, vue.toDisplayString(nav.label), 1)) : vue.createCommentVNode("", true)
32871
+ _ctx.open ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_1$j, vue.toDisplayString(nav.label), 1)) : vue.createCommentVNode("", true)
33542
32872
  ]),
33543
32873
  _: 2
33544
32874
  }, 1024)
@@ -33565,8 +32895,8 @@ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
33565
32895
  };
33566
32896
  }
33567
32897
  });
33568
- const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-43939d5b"]]);
33569
- const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
32898
+ const SidebarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-43939d5b"]]);
32899
+ const _sfc_main$n = /* @__PURE__ */ vue.defineComponent({
33570
32900
  __name: "Skeleton",
33571
32901
  props: {
33572
32902
  count: { default: 1 },
@@ -33597,11 +32927,11 @@ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
33597
32927
  };
33598
32928
  }
33599
32929
  });
33600
- const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-8788ed73"]]);
33601
- const _hoisted_1$h = { class: "bgl_card tabs-top" };
33602
- const _hoisted_2$a = { class: "tabs grid auto-flow-columns fit-content" };
33603
- const _hoisted_3$8 = ["onClick"];
33604
- const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
32930
+ const Skeleton = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-8788ed73"]]);
32931
+ const _hoisted_1$i = { class: "bgl_card tabs-top" };
32932
+ const _hoisted_2$b = { class: "tabs grid auto-flow-columns fit-content" };
32933
+ const _hoisted_3$9 = ["onClick"];
32934
+ const _sfc_main$m = /* @__PURE__ */ vue.defineComponent({
33605
32935
  __name: "TabbedLayout",
33606
32936
  props: {
33607
32937
  title: {},
@@ -33634,9 +32964,9 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
33634
32964
  return vue.openBlock(), vue.createElementBlock("div", {
33635
32965
  class: vue.normalizeClass(["h-100 grid list-view gap-1", { "side-tabs": _ctx.sideTabs }])
33636
32966
  }, [
33637
- vue.createElementVNode("div", _hoisted_1$h, [
32967
+ vue.createElementVNode("div", _hoisted_1$i, [
33638
32968
  vue.renderSlot(_ctx.$slots, "top-section", {}, void 0, true),
33639
- vue.createElementVNode("div", _hoisted_2$a, [
32969
+ vue.createElementVNode("div", _hoisted_2$b, [
33640
32970
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.tabs, (tab) => {
33641
32971
  var _a;
33642
32972
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -33645,7 +32975,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
33645
32975
  active: tab === vue.unref(activeTab) || tab === ((_a = _ctx.router) == null ? void 0 : _a.currentRoute.value.path.split("/").slice(-1)[0])
33646
32976
  }, "tab"]),
33647
32977
  onClick: ($event) => changeTab(tab)
33648
- }, vue.toDisplayString(tab), 11, _hoisted_3$8);
32978
+ }, vue.toDisplayString(tab), 11, _hoisted_3$9);
33649
32979
  }), 128))
33650
32980
  ])
33651
32981
  ]),
@@ -33661,7 +32991,7 @@ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
33661
32991
  };
33662
32992
  }
33663
32993
  });
33664
- const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-915732c1"]]);
32994
+ const TabbedLayout = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-915732c1"]]);
33665
32995
  const state = vue.reactive(/* @__PURE__ */ new Map());
33666
32996
  function useTabs(group) {
33667
32997
  if (!state.has(group)) {
@@ -33675,8 +33005,8 @@ function useTabs(group) {
33675
33005
  });
33676
33006
  return { currentTab };
33677
33007
  }
33678
- const _hoisted_1$g = { key: 0 };
33679
- const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
33008
+ const _hoisted_1$h = { key: 0 };
33009
+ const _sfc_main$l = /* @__PURE__ */ vue.defineComponent({
33680
33010
  __name: "Tabs",
33681
33011
  props: {
33682
33012
  tabs: {},
@@ -33718,14 +33048,14 @@ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
33718
33048
  group: vue.unref(group),
33719
33049
  class: "mb-05"
33720
33050
  }, null, 8, ["modelValue", "flat", "tabs", "group"]),
33721
- vue.unref(currentTab) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$g, [
33051
+ vue.unref(currentTab) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$h, [
33722
33052
  vue.unref(slots)[vue.unref(currentTab)] ? vue.renderSlot(_ctx.$slots, vue.unref(currentTab), { key: 0 }) : vue.unref(currentTab) ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(tabComponent)), { key: 1 })) : vue.createCommentVNode("", true)
33723
33053
  ])) : vue.createCommentVNode("", true)
33724
33054
  ], 64);
33725
33055
  };
33726
33056
  }
33727
33057
  });
33728
- const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
33058
+ const _sfc_main$k = /* @__PURE__ */ vue.defineComponent({
33729
33059
  __name: "TabsBody",
33730
33060
  props: {
33731
33061
  group: {}
@@ -33738,8 +33068,8 @@ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
33738
33068
  };
33739
33069
  }
33740
33070
  });
33741
- const _hoisted_1$f = ["onClick"];
33742
- const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
33071
+ const _hoisted_1$g = ["onClick"];
33072
+ const _sfc_main$j = /* @__PURE__ */ vue.defineComponent({
33743
33073
  __name: "TabsNav",
33744
33074
  props: {
33745
33075
  title: {},
@@ -33826,31 +33156,31 @@ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
33826
33156
  class: vue.normalizeClass([{ active: isActive(tab) }, "bgl_tab relative z-1"]),
33827
33157
  onClick: ($event) => selectTab(tab)
33828
33158
  }, [
33829
- typeof tab !== "string" && tab.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
33159
+ typeof tab !== "string" && tab.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
33830
33160
  key: 0,
33831
33161
  icon: tab.icon
33832
33162
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
33833
33163
  vue.createTextVNode(" " + vue.toDisplayString(tabLabel(tab)), 1)
33834
- ], 10, _hoisted_1$f);
33164
+ ], 10, _hoisted_1$g);
33835
33165
  }), 128))
33836
33166
  ], true)
33837
33167
  ], 2);
33838
33168
  };
33839
33169
  }
33840
33170
  });
33841
- const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-6ece2018"]]);
33842
- const _hoisted_1$e = { class: "txt-start" };
33843
- const _hoisted_2$9 = {
33171
+ const TabsNav = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-6ece2018"]]);
33172
+ const _hoisted_1$f = { class: "txt-start" };
33173
+ const _hoisted_2$a = {
33844
33174
  key: 0,
33845
33175
  class: "txt10 m-0 p-0 txt-gray ellipsis"
33846
33176
  };
33847
- const _hoisted_3$7 = { class: "m-0 p-0 ellipsis-1 line-height-14 pb-025" };
33177
+ const _hoisted_3$8 = { class: "m-0 p-0 ellipsis-1 line-height-14 pb-025" };
33848
33178
  const _hoisted_4$5 = {
33849
33179
  key: 1,
33850
33180
  class: "txt12 m-0 p-0 opacity-7 ellipsis-1"
33851
33181
  };
33852
33182
  const _hoisted_5$5 = ["textContent"];
33853
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
33183
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
33854
33184
  __name: "ListItem",
33855
33185
  props: {
33856
33186
  src: {},
@@ -33912,18 +33242,18 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
33912
33242
  src: _ctx.src,
33913
33243
  size: 40
33914
33244
  }, null, 8, ["name", "src"])) : vue.createCommentVNode("", true),
33915
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
33245
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
33916
33246
  key: 1,
33917
33247
  size: "1.2",
33918
33248
  class: "color-primary",
33919
33249
  icon: _ctx.icon
33920
33250
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
33921
- vue.createElementVNode("div", _hoisted_1$e, [
33922
- _ctx.lead ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$9, [
33251
+ vue.createElementVNode("div", _hoisted_1$f, [
33252
+ _ctx.lead ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2$a, [
33923
33253
  vue.createTextVNode(vue.toDisplayString(_ctx.lead) + " ", 1),
33924
33254
  vue.renderSlot(_ctx.$slots, "lead")
33925
33255
  ])) : vue.createCommentVNode("", true),
33926
- vue.createElementVNode("p", _hoisted_3$7, [
33256
+ vue.createElementVNode("p", _hoisted_3$8, [
33927
33257
  vue.createTextVNode(vue.toDisplayString(_ctx.title) + " ", 1),
33928
33258
  vue.renderSlot(_ctx.$slots, "default")
33929
33259
  ]),
@@ -33934,7 +33264,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
33934
33264
  ]),
33935
33265
  _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "flex-grow-1" }, null, -1)),
33936
33266
  vue.renderSlot(_ctx.$slots, "end", {}, () => [
33937
- _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
33267
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
33938
33268
  key: 0,
33939
33269
  icon: _ctx.iconEnd,
33940
33270
  class: "transition-400"
@@ -33953,23 +33283,23 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
33953
33283
  };
33954
33284
  }
33955
33285
  });
33956
- const _sfc_main$g = {};
33957
- const _hoisted_1$d = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
33958
- const _hoisted_2$8 = { class: "p-0" };
33959
- const _hoisted_3$6 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
33286
+ const _sfc_main$h = {};
33287
+ const _hoisted_1$e = { class: "list-wrap bgl_card thin grid overflow-hidden pt-0 pb-05 px-0 m_pb-0" };
33288
+ const _hoisted_2$9 = { class: "p-0" };
33289
+ const _hoisted_3$7 = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
33960
33290
  function _sfc_render$3(_ctx, _cache) {
33961
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
33962
- vue.createElementVNode("div", _hoisted_2$8, [
33291
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$e, [
33292
+ vue.createElementVNode("div", _hoisted_2$9, [
33963
33293
  vue.renderSlot(_ctx.$slots, "header")
33964
33294
  ]),
33965
- vue.createElementVNode("div", _hoisted_3$6, [
33295
+ vue.createElementVNode("div", _hoisted_3$7, [
33966
33296
  vue.renderSlot(_ctx.$slots, "default")
33967
33297
  ])
33968
33298
  ]);
33969
33299
  }
33970
- const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$3]]);
33971
- const _hoisted_1$c = { class: "flex-center" };
33972
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
33300
+ const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$3]]);
33301
+ const _hoisted_1$d = { class: "flex-center" };
33302
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
33973
33303
  __name: "Loading",
33974
33304
  props: {
33975
33305
  size: { default: 50 },
@@ -33991,7 +33321,7 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
33991
33321
  return standardSize(borderValue);
33992
33322
  });
33993
33323
  return (_ctx, _cache) => {
33994
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$c, [
33324
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
33995
33325
  theme.value === "bar" ? (vue.openBlock(), vue.createElementBlock("div", {
33996
33326
  key: 0,
33997
33327
  class: "lds-bar",
@@ -34033,11 +33363,11 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
34033
33363
  };
34034
33364
  }
34035
33365
  });
34036
- const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-2d349a92"]]);
34037
- const _hoisted_1$b = ["id"];
33366
+ const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-2d349a92"]]);
33367
+ const _hoisted_1$c = ["id"];
34038
33368
  const defaultMarkerSVG = '<svg width="28" height="38" viewBox="0 0 28 38" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2263 37.7955C17.0897 37.7955 19.4109 37.0138 19.4109 36.0496C19.4109 35.0854 17.0897 34.3037 14.2263 34.3037C11.363 34.3037 9.04175 35.0854 9.04175 36.0496C9.04175 37.0138 11.363 37.7955 14.2263 37.7955Z" fill="black" fill-opacity="0.1"/><path d="M14.2265 0.549591C21.2842 0.549591 27.0131 6.23786 27.0787 13.28V13.4024C27.0787 19.3328 24.4759 24.4306 21.5627 28.2764C18.6511 32.12 15.4577 34.6754 14.3457 35.5097C14.2748 35.5629 14.1778 35.5629 14.1068 35.5097C12.9947 34.675 9.80135 32.1197 6.88984 28.2762C3.97665 24.4304 1.37378 19.3328 1.37378 13.4024C1.37378 6.30387 7.12806 0.549591 14.2265 0.549591Z" fill="#ED1b3E" stroke="#ED6C6F"/><path d="M14.2263 21.6185C18.7639 21.6185 22.4424 17.94 22.4424 13.4024C22.4424 8.86477 18.7639 5.18631 14.2263 5.18631C9.68872 5.18631 6.01025 8.86477 6.01025 13.4024C6.01025 17.94 9.68872 21.6185 14.2263 21.6185Z" fill="white"/></svg>';
34039
33369
  const leafletScriptUrl = "https://unpkg.com/leaflet@1.9.4/dist/leaflet.js";
34040
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
33370
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
34041
33371
  __name: "Index",
34042
33372
  props: {
34043
33373
  center: { default: () => [31.7683, 35.2137] },
@@ -34128,23 +33458,23 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
34128
33458
  class: "leaflet-map",
34129
33459
  style: vue.normalizeStyle({ height: `${props2.height || 400}px` }),
34130
33460
  dir: "ltr"
34131
- }, null, 12, _hoisted_1$b);
33461
+ }, null, 12, _hoisted_1$c);
34132
33462
  };
34133
33463
  }
34134
33464
  });
34135
- const _hoisted_1$a = {
33465
+ const _hoisted_1$b = {
34136
33466
  key: 0,
34137
33467
  class: "tool-bar"
34138
33468
  };
34139
- const _hoisted_2$7 = {
33469
+ const _hoisted_2$8 = {
34140
33470
  key: 1,
34141
33471
  class: "sticky z-index-999 -mt-1 -ms-1 px-025 h-30px pt-025 modal-no-title"
34142
33472
  };
34143
- const _hoisted_3$5 = {
33473
+ const _hoisted_3$6 = {
34144
33474
  key: 2,
34145
33475
  class: "modal-footer mt-1"
34146
33476
  };
34147
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
33477
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
34148
33478
  __name: "Modal",
34149
33479
  props: {
34150
33480
  thin: { type: Boolean },
@@ -34211,7 +33541,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
34211
33541
  default: vue.withCtx(() => {
34212
33542
  var _a;
34213
33543
  return [
34214
- vue.unref(slots).toolbar || _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$a, [
33544
+ vue.unref(slots).toolbar || _ctx.title ? (vue.openBlock(), vue.createElementBlock("header", _hoisted_1$b, [
34215
33545
  vue.renderSlot(_ctx.$slots, "toolbar"),
34216
33546
  vue.createVNode(vue.unref(Btn), {
34217
33547
  style: vue.normalizeStyle({ float: _ctx.side ? "left" : "right" }),
@@ -34226,7 +33556,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
34226
33556
  tag: "h3",
34227
33557
  label: _ctx.title
34228
33558
  }, null, 8, ["label"])) : vue.createCommentVNode("", true)
34229
- ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
33559
+ ])) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$8, [
34230
33560
  vue.createVNode(vue.unref(Btn), {
34231
33561
  class: "position-start",
34232
33562
  icon: "close",
@@ -34237,7 +33567,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
34237
33567
  })
34238
33568
  ])),
34239
33569
  vue.renderSlot(_ctx.$slots, "default"),
34240
- vue.unref(slots).footer || ((_a = _ctx.actions) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$5, [
33570
+ vue.unref(slots).footer || ((_a = _ctx.actions) == null ? void 0 : _a.length) ? (vue.openBlock(), vue.createElementBlock("footer", _hoisted_3$6, [
34241
33571
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.actions, (action, i2) => {
34242
33572
  return vue.openBlock(), vue.createBlock(vue.unref(Btn), vue.mergeProps({
34243
33573
  key: i2,
@@ -34255,8 +33585,8 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
34255
33585
  };
34256
33586
  }
34257
33587
  });
34258
- const _hoisted_1$9 = { class: "pb-05 pretty" };
34259
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
33588
+ const _hoisted_1$a = { class: "pb-05 pretty" };
33589
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
34260
33590
  __name: "ModalConfirm",
34261
33591
  props: {
34262
33592
  title: {},
@@ -34282,7 +33612,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
34282
33612
  const confirmBtnColor = props2.confirmBtnColor || "green";
34283
33613
  const cancelBtnColor = props2.cancelBtnColor || "gray";
34284
33614
  return (_ctx, _cache) => {
34285
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
33615
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$e), {
34286
33616
  title: vue.unref(title),
34287
33617
  width: "380px",
34288
33618
  dismissable: false,
@@ -34301,16 +33631,16 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
34301
33631
  }, null, 8, ["color", "value"])
34302
33632
  ]),
34303
33633
  default: vue.withCtx(() => [
34304
- vue.createElementVNode("p", _hoisted_1$9, vue.toDisplayString(vue.unref(message)), 1)
33634
+ vue.createElementVNode("p", _hoisted_1$a, vue.toDisplayString(vue.unref(message)), 1)
34305
33635
  ]),
34306
33636
  _: 1
34307
33637
  }, 8, ["title"]);
34308
33638
  };
34309
33639
  }
34310
33640
  });
34311
- const _hoisted_1$8 = { class: "flex gap-0" };
34312
- const _hoisted_2$6 = { class: "flex gap-05" };
34313
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
33641
+ const _hoisted_1$9 = { class: "flex gap-0" };
33642
+ const _hoisted_2$7 = { class: "flex gap-05" };
33643
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
34314
33644
  __name: "ModalForm",
34315
33645
  props: /* @__PURE__ */ vue.mergeModels({
34316
33646
  schema: {},
@@ -34374,7 +33704,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34374
33704
  }
34375
33705
  __expose({ setFormValues });
34376
33706
  return (_ctx, _cache) => {
34377
- return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$d), {
33707
+ return vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$e), {
34378
33708
  ref_key: "modal",
34379
33709
  ref: modal,
34380
33710
  side: _ctx.side,
@@ -34385,7 +33715,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34385
33715
  "onUpdate:visible": _cache[3] || (_cache[3] = ($event) => emit2("update:visible", $event))
34386
33716
  }, vue.createSlots({
34387
33717
  default: vue.withCtx(() => [
34388
- _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$U), {
33718
+ _ctx.visible ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$V), {
34389
33719
  key: 0,
34390
33720
  ref_key: "form",
34391
33721
  ref: form,
@@ -34403,7 +33733,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34403
33733
  _ctx.onDelete || _ctx.onSubmit ? {
34404
33734
  name: "footer",
34405
33735
  fn: vue.withCtx(() => [
34406
- vue.createElementVNode("div", _hoisted_1$8, [
33736
+ vue.createElementVNode("div", _hoisted_1$9, [
34407
33737
  vue.createVNode(vue.unref(Btn), {
34408
33738
  thin: "",
34409
33739
  flat: "",
@@ -34420,7 +33750,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34420
33750
  onClick: runDelete
34421
33751
  }, null, 8, ["value"])) : vue.createCommentVNode("", true)
34422
33752
  ]),
34423
- vue.createElementVNode("div", _hoisted_2$6, [
33753
+ vue.createElementVNode("div", _hoisted_2$7, [
34424
33754
  _ctx.onDuplicate ? (vue.openBlock(), vue.createBlock(vue.unref(Btn), {
34425
33755
  key: 0,
34426
33756
  outline: "",
@@ -34446,14 +33776,14 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34446
33776
  };
34447
33777
  }
34448
33778
  });
34449
- const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-1c0f6894"]]);
34450
- const _hoisted_1$7 = { class: "full-nav" };
34451
- const _hoisted_2$5 = { class: "nav-scroll" };
34452
- const _hoisted_3$4 = { class: "nav-links-wrapper" };
33779
+ const ModalForm = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-1c0f6894"]]);
33780
+ const _hoisted_1$8 = { class: "full-nav" };
33781
+ const _hoisted_2$6 = { class: "nav-scroll" };
33782
+ const _hoisted_3$5 = { class: "nav-links-wrapper" };
34453
33783
  const _hoisted_4$4 = { class: "tooltip" };
34454
33784
  const _hoisted_5$4 = { class: "bot-buttons-wrapper" };
34455
33785
  const _hoisted_6$4 = { class: "tooltip" };
34456
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
33786
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
34457
33787
  __name: "NavBar",
34458
33788
  props: {
34459
33789
  footerLinks: { default: () => [] },
@@ -34487,14 +33817,14 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34487
33817
  onClick: toggleMenu,
34488
33818
  onKeypress: vue.withKeys(toggleMenu, ["enter"])
34489
33819
  }, [
34490
- vue.createVNode(vue.unref(_sfc_main$s), {
33820
+ vue.createVNode(vue.unref(_sfc_main$t), {
34491
33821
  icon: "chevron_right",
34492
33822
  class: "top-arrow"
34493
33823
  })
34494
33824
  ], 32),
34495
- vue.createElementVNode("div", _hoisted_1$7, [
34496
- vue.createElementVNode("div", _hoisted_2$5, [
34497
- vue.createElementVNode("div", _hoisted_3$4, [
33825
+ vue.createElementVNode("div", _hoisted_1$8, [
33826
+ vue.createElementVNode("div", _hoisted_2$6, [
33827
+ vue.createElementVNode("div", _hoisted_3$5, [
34498
33828
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.links, (link) => {
34499
33829
  return vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(link.to ? "router-link" : "div"), {
34500
33830
  key: link.label,
@@ -34506,7 +33836,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34506
33836
  }
34507
33837
  }, {
34508
33838
  default: vue.withCtx(() => [
34509
- vue.createVNode(vue.unref(_sfc_main$s), {
33839
+ vue.createVNode(vue.unref(_sfc_main$t), {
34510
33840
  icon: link.icon
34511
33841
  }, null, 8, ["icon"]),
34512
33842
  vue.createElementVNode("div", _hoisted_4$4, vue.toDisplayString(link.label), 1)
@@ -34528,7 +33858,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34528
33858
  }
34529
33859
  }, {
34530
33860
  default: vue.withCtx(() => [
34531
- vue.createVNode(vue.unref(_sfc_main$s), {
33861
+ vue.createVNode(vue.unref(_sfc_main$t), {
34532
33862
  icon: link.icon
34533
33863
  }, null, 8, ["icon"]),
34534
33864
  vue.createElementVNode("div", _hoisted_6$4, vue.toDisplayString(link.label), 1)
@@ -34543,10 +33873,10 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34543
33873
  };
34544
33874
  }
34545
33875
  });
34546
- const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-f3df1ee7"]]);
34547
- const _hoisted_1$6 = { class: "page-top" };
34548
- const _hoisted_2$4 = { class: "top-title m-0" };
34549
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
33876
+ const NavBar = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-f3df1ee7"]]);
33877
+ const _hoisted_1$7 = { class: "page-top" };
33878
+ const _hoisted_2$5 = { class: "top-title m-0" };
33879
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
34550
33880
  __name: "PageTitle",
34551
33881
  props: {
34552
33882
  value: {
@@ -34556,8 +33886,8 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
34556
33886
  },
34557
33887
  setup(__props) {
34558
33888
  return (_ctx, _cache) => {
34559
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$6, [
34560
- vue.createElementVNode("h1", _hoisted_2$4, [
33889
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$7, [
33890
+ vue.createElementVNode("h1", _hoisted_2$5, [
34561
33891
  vue.renderSlot(_ctx.$slots, "default"),
34562
33892
  vue.createTextVNode(" " + vue.toDisplayString(__props.value), 1)
34563
33893
  ])
@@ -34565,9 +33895,9 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
34565
33895
  };
34566
33896
  }
34567
33897
  });
34568
- const _hoisted_1$5 = ["disabled"];
34569
- const _hoisted_2$3 = { class: "bgl_pill-flex" };
34570
- const _hoisted_3$3 = {
33898
+ const _hoisted_1$6 = ["disabled"];
33899
+ const _hoisted_2$4 = { class: "bgl_pill-flex" };
33900
+ const _hoisted_3$4 = {
34571
33901
  key: 0,
34572
33902
  class: "loading"
34573
33903
  };
@@ -34585,7 +33915,7 @@ const _hoisted_8$2 = {
34585
33915
  key: 0,
34586
33916
  class: "flex h-100"
34587
33917
  };
34588
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
33918
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
34589
33919
  __name: "Pill",
34590
33920
  props: {
34591
33921
  disabled: { type: Boolean },
@@ -34663,8 +33993,8 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
34663
33993
  "bgl_pill-border": _ctx.border || _ctx.outline
34664
33994
  })
34665
33995
  }, [
34666
- vue.createElementVNode("div", _hoisted_2$3, [
34667
- _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$3)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
33996
+ vue.createElementVNode("div", _hoisted_2$4, [
33997
+ _ctx.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$4)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$3, [
34668
33998
  _ctx.btn ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$3, [
34669
33999
  vue.createVNode(vue.unref(Btn), vue.mergeProps({
34670
34000
  class: "bgl_pill-btn",
@@ -34673,7 +34003,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
34673
34003
  }, _ctx.btn), null, 16)
34674
34004
  ])) : vue.createCommentVNode("", true)
34675
34005
  ])),
34676
- _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
34006
+ _ctx.icon ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
34677
34007
  key: 2,
34678
34008
  icon: _ctx.icon
34679
34009
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -34681,7 +34011,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
34681
34011
  !vue.unref(slots).default ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 3 }, [
34682
34012
  vue.createTextVNode(vue.toDisplayString(_ctx.value || _ctx.modelValue), 1)
34683
34013
  ], 64)) : vue.createCommentVNode("", true),
34684
- _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
34014
+ _ctx.iconEnd ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
34685
34015
  key: 4,
34686
34016
  icon: _ctx.iconEnd
34687
34017
  }, null, 8, ["icon"])) : vue.createCommentVNode("", true),
@@ -34695,12 +34025,12 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
34695
34025
  ])) : vue.createCommentVNode("", true)
34696
34026
  ]))
34697
34027
  ])
34698
- ], 10, _hoisted_1$5);
34028
+ ], 10, _hoisted_1$6);
34699
34029
  };
34700
34030
  }
34701
34031
  });
34702
- const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-764b6b8b"]]);
34703
- const _sfc_main$7 = {};
34032
+ const Pill = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-764b6b8b"]]);
34033
+ const _sfc_main$8 = {};
34704
34034
  function _sfc_render$2(_ctx, _cache) {
34705
34035
  const _component_router_view = vue.resolveComponent("router-view");
34706
34036
  return vue.openBlock(), vue.createBlock(_component_router_view, null, {
@@ -34722,7 +34052,677 @@ function _sfc_render$2(_ctx, _cache) {
34722
34052
  _: 1
34723
34053
  });
34724
34054
  }
34725
- const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$2]]);
34055
+ const RouterWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$2]]);
34056
+ const _hoisted_1$5 = { class: "carousel-wrapper" };
34057
+ const _hoisted_2$3 = {
34058
+ key: 0,
34059
+ class: "carousel-dots"
34060
+ };
34061
+ const _hoisted_3$3 = ["aria-label", "onClick"];
34062
+ const dragThreshold = 10;
34063
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
34064
+ __name: "Slider",
34065
+ props: {
34066
+ duration: { default: 200 },
34067
+ easing: { default: "ease-out" },
34068
+ perPage: {},
34069
+ startIndex: { default: 0 },
34070
+ draggable: { type: Boolean, default: true },
34071
+ multipleDrag: { type: Boolean, default: true },
34072
+ threshold: { default: 20 },
34073
+ loop: { type: Boolean, default: true },
34074
+ rtl: { type: Boolean, default: false },
34075
+ autoplay: { type: [Boolean, String], default: "disabled" },
34076
+ autoplayInterval: { default: 3e3 },
34077
+ autoplaySpeed: { default: 50 },
34078
+ pauseOnHover: { type: Boolean, default: true },
34079
+ dots: { type: Boolean, default: false },
34080
+ slideWidth: { default: 300 },
34081
+ onInit: {},
34082
+ onChange: {}
34083
+ },
34084
+ emits: ["init", "change"],
34085
+ setup(__props, { expose: __expose, emit: __emit }) {
34086
+ const props2 = __props;
34087
+ const emit2 = __emit;
34088
+ const carouselRef = vue.ref(null);
34089
+ const sliderFrame = vue.ref(null);
34090
+ const innerElements = vue.ref([]);
34091
+ const currentSlide = vue.ref(0);
34092
+ const selectorWidth = vue.ref(0);
34093
+ const { innerWidth } = useDevice();
34094
+ const transformProperty = vue.ref("transform");
34095
+ const pointerDown = vue.ref(false);
34096
+ const drag = vue.ref({
34097
+ startX: 0,
34098
+ endX: 0,
34099
+ startY: 0,
34100
+ letItGo: null,
34101
+ preventClick: false
34102
+ });
34103
+ const isDragging = vue.ref(false);
34104
+ const autoplayTimer = vue.ref(null);
34105
+ const linearAnimationFrame = vue.ref(null);
34106
+ const isHovering = vue.ref(false);
34107
+ const linearOffset = vue.ref(0);
34108
+ const perPage = vue.computed(() => {
34109
+ if (typeof props2.perPage === "number") {
34110
+ return props2.perPage;
34111
+ }
34112
+ if (typeof props2.perPage === "object") {
34113
+ return Object.entries(props2.perPage).reduce((acc, [viewport, value]) => innerWidth.value >= Number(viewport) ? value : acc, 1);
34114
+ }
34115
+ return Math.max(1, Math.ceil(selectorWidth.value / props2.slideWidth));
34116
+ });
34117
+ const config = vue.computed(() => {
34118
+ let autoplayMode = "disabled";
34119
+ if (typeof props2.autoplay === "boolean") {
34120
+ autoplayMode = props2.autoplay ? "standard" : "disabled";
34121
+ } else {
34122
+ autoplayMode = props2.autoplay;
34123
+ }
34124
+ const calculatedPerPage = perPage.value;
34125
+ return {
34126
+ duration: props2.duration,
34127
+ easing: props2.easing,
34128
+ perPage: calculatedPerPage,
34129
+ startIndex: props2.startIndex,
34130
+ draggable: props2.draggable,
34131
+ multipleDrag: props2.multipleDrag,
34132
+ threshold: props2.threshold,
34133
+ loop: props2.loop,
34134
+ rtl: props2.rtl,
34135
+ autoplay: autoplayMode,
34136
+ autoplayInterval: props2.autoplayInterval,
34137
+ autoplaySpeed: props2.autoplaySpeed,
34138
+ pauseOnHover: props2.pauseOnHover,
34139
+ dots: props2.dots,
34140
+ slideWidth: props2.slideWidth,
34141
+ onInit: () => {
34142
+ emit2("init");
34143
+ },
34144
+ onChange: () => {
34145
+ emit2("change");
34146
+ }
34147
+ };
34148
+ });
34149
+ const totalDots = vue.computed(() => {
34150
+ if (!innerElements.value.length) return 0;
34151
+ return config.value.loop ? innerElements.value.length : Math.ceil(innerElements.value.length - perPage.value + 1);
34152
+ });
34153
+ vue.onMounted(() => init());
34154
+ vue.onBeforeUnmount(() => {
34155
+ stopAutoplay();
34156
+ detachEvents();
34157
+ });
34158
+ vue.watch(() => props2, () => {
34159
+ resizeHandler();
34160
+ }, { deep: true });
34161
+ function webkitOrNot() {
34162
+ const { style } = document.documentElement;
34163
+ if (typeof style.transform === "string") {
34164
+ return "transform";
34165
+ }
34166
+ return "WebkitTransform";
34167
+ }
34168
+ function attachEvents() {
34169
+ window.addEventListener("resize", resizeHandler);
34170
+ if (config.value.draggable && carouselRef.value) {
34171
+ const eventOptions = { passive: true };
34172
+ const touchMoveOptions = { passive: false };
34173
+ const mouseMoveOptions = { passive: false };
34174
+ const mouseDownOptions = { passive: false };
34175
+ carouselRef.value.addEventListener("touchstart", touchstartHandler, eventOptions);
34176
+ carouselRef.value.addEventListener("touchend", touchendHandler, eventOptions);
34177
+ carouselRef.value.addEventListener("touchmove", touchmoveHandler, touchMoveOptions);
34178
+ carouselRef.value.addEventListener("mousedown", mousedownHandler, mouseDownOptions);
34179
+ carouselRef.value.addEventListener("mouseup", mouseupHandler, eventOptions);
34180
+ carouselRef.value.addEventListener("mouseleave", mouseleaveHandler, eventOptions);
34181
+ carouselRef.value.addEventListener("mousemove", mousemoveHandler, mouseMoveOptions);
34182
+ carouselRef.value.addEventListener("dragstart", dragstartHandler);
34183
+ carouselRef.value.addEventListener("click", clickHandler2);
34184
+ }
34185
+ if (config.value.autoplay !== "disabled" && config.value.pauseOnHover && carouselRef.value) {
34186
+ carouselRef.value.addEventListener("mouseenter", mouseenterHandler);
34187
+ carouselRef.value.addEventListener("mouseleave", mouseleaveAutoplayHandler);
34188
+ }
34189
+ }
34190
+ function detachEvents() {
34191
+ window.removeEventListener("resize", resizeHandler);
34192
+ if (carouselRef.value) {
34193
+ carouselRef.value.removeEventListener("touchstart", touchstartHandler);
34194
+ carouselRef.value.removeEventListener("touchend", touchendHandler);
34195
+ carouselRef.value.removeEventListener("touchmove", touchmoveHandler);
34196
+ carouselRef.value.removeEventListener("mousedown", mousedownHandler);
34197
+ carouselRef.value.removeEventListener("mouseup", mouseupHandler);
34198
+ carouselRef.value.removeEventListener("mouseleave", mouseleaveHandler);
34199
+ carouselRef.value.removeEventListener("mousemove", mousemoveHandler);
34200
+ carouselRef.value.removeEventListener("dragstart", dragstartHandler);
34201
+ carouselRef.value.removeEventListener("click", clickHandler2);
34202
+ carouselRef.value.removeEventListener("mouseenter", mouseenterHandler);
34203
+ carouselRef.value.removeEventListener("mouseleave", mouseleaveAutoplayHandler);
34204
+ }
34205
+ }
34206
+ async function init() {
34207
+ if (!carouselRef.value) return;
34208
+ transformProperty.value = webkitOrNot();
34209
+ await sleep(10);
34210
+ innerElements.value = Array.from(carouselRef.value.children);
34211
+ if (!innerElements.value.length) {
34212
+ console.warn("No carousel items found during initialization");
34213
+ return;
34214
+ }
34215
+ selectorWidth.value = carouselRef.value.offsetWidth;
34216
+ currentSlide.value = config.value.loop ? config.value.startIndex % innerElements.value.length : Math.max(0, Math.min(config.value.startIndex, innerElements.value.length - perPage.value));
34217
+ carouselRef.value.style.overflow = "hidden";
34218
+ carouselRef.value.style.direction = config.value.rtl ? "rtl" : "ltr";
34219
+ attachEvents();
34220
+ await vue.nextTick();
34221
+ buildSliderFrame();
34222
+ if (config.value.autoplay !== "disabled") {
34223
+ startAutoplay();
34224
+ }
34225
+ config.value.onInit();
34226
+ }
34227
+ function buildSliderFrame() {
34228
+ if (!carouselRef.value) return;
34229
+ if (!innerElements.value.length) {
34230
+ console.warn("No carousel items found");
34231
+ return;
34232
+ }
34233
+ const widthItem = selectorWidth.value / perPage.value;
34234
+ const itemsToBuild = config.value.loop ? innerElements.value.length + 2 * perPage.value : innerElements.value.length;
34235
+ if (!sliderFrame.value) {
34236
+ sliderFrame.value = document.createElement("div");
34237
+ }
34238
+ sliderFrame.value.style.width = `${widthItem * itemsToBuild}px`;
34239
+ enableTransition();
34240
+ if (config.value.draggable && carouselRef.value) {
34241
+ carouselRef.value.style.cursor = "-webkit-grab";
34242
+ }
34243
+ const docFragment = document.createDocumentFragment();
34244
+ if (config.value.loop && innerElements.value.length > 0) {
34245
+ for (let i2 = innerElements.value.length - perPage.value; i2 < innerElements.value.length; i2++) {
34246
+ if (i2 >= 0 && i2 < innerElements.value.length) {
34247
+ const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
34248
+ docFragment.appendChild(element);
34249
+ }
34250
+ }
34251
+ }
34252
+ for (let i2 = 0; i2 < innerElements.value.length; i2++) {
34253
+ const element = buildSliderFrameItem(innerElements.value[i2]);
34254
+ docFragment.appendChild(element);
34255
+ }
34256
+ if (config.value.loop && innerElements.value.length > 0) {
34257
+ for (let i2 = 0; i2 < perPage.value; i2++) {
34258
+ if (i2 >= 0 && i2 < innerElements.value.length) {
34259
+ const element = buildSliderFrameItem(innerElements.value[i2].cloneNode(true));
34260
+ docFragment.appendChild(element);
34261
+ }
34262
+ }
34263
+ }
34264
+ if (sliderFrame.value) {
34265
+ sliderFrame.value.innerHTML = "";
34266
+ sliderFrame.value.appendChild(docFragment);
34267
+ if (carouselRef.value) {
34268
+ carouselRef.value.innerHTML = "";
34269
+ carouselRef.value.appendChild(sliderFrame.value);
34270
+ }
34271
+ }
34272
+ slideToCurrent();
34273
+ }
34274
+ function buildSliderFrameItem(elm) {
34275
+ const elementContainer = document.createElement("div");
34276
+ elementContainer.style.cssFloat = config.value.rtl ? "right" : "left";
34277
+ elementContainer.style.float = config.value.rtl ? "right" : "left";
34278
+ const percentage = config.value.loop ? 100 / (innerElements.value.length + perPage.value * 2) : 100 / innerElements.value.length;
34279
+ elementContainer.style.width = `${percentage}%`;
34280
+ elementContainer.appendChild(elm);
34281
+ return elementContainer;
34282
+ }
34283
+ function slideToCurrent(enableTransitionFlag) {
34284
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34285
+ const offset2 = (config.value.rtl ? 1 : -1) * currentSlideValue * (selectorWidth.value / perPage.value);
34286
+ if (enableTransitionFlag && sliderFrame.value) {
34287
+ requestAnimationFrame(() => {
34288
+ requestAnimationFrame(() => {
34289
+ enableTransition();
34290
+ if (sliderFrame.value) {
34291
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
34292
+ }
34293
+ });
34294
+ });
34295
+ } else if (sliderFrame.value) {
34296
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2}px, 0, 0)`;
34297
+ }
34298
+ }
34299
+ function prev(howManySlides = 1) {
34300
+ if (innerElements.value.length <= perPage.value) {
34301
+ return;
34302
+ }
34303
+ const beforeChange = currentSlide.value;
34304
+ if (config.value.loop) {
34305
+ const isNewIndexClone = currentSlide.value - howManySlides < 0;
34306
+ if (isNewIndexClone) {
34307
+ disableTransition();
34308
+ const mirrorSlideIndex = currentSlide.value + innerElements.value.length;
34309
+ const mirrorSlideIndexOffset = perPage.value;
34310
+ const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
34311
+ const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
34312
+ const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
34313
+ if (sliderFrame.value) {
34314
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
34315
+ }
34316
+ currentSlide.value = mirrorSlideIndex - howManySlides;
34317
+ } else {
34318
+ currentSlide.value = currentSlide.value - howManySlides;
34319
+ }
34320
+ } else {
34321
+ currentSlide.value = Math.max(currentSlide.value - howManySlides, 0);
34322
+ }
34323
+ if (beforeChange !== currentSlide.value) {
34324
+ slideToCurrent(config.value.loop);
34325
+ config.value.onChange();
34326
+ }
34327
+ }
34328
+ function next(howManySlides = 1) {
34329
+ if (innerElements.value.length <= perPage.value) {
34330
+ return;
34331
+ }
34332
+ const beforeChange = currentSlide.value;
34333
+ if (config.value.loop) {
34334
+ const isNewIndexClone = currentSlide.value + howManySlides > innerElements.value.length - perPage.value;
34335
+ if (isNewIndexClone) {
34336
+ disableTransition();
34337
+ const mirrorSlideIndex = currentSlide.value - innerElements.value.length;
34338
+ const mirrorSlideIndexOffset = perPage.value;
34339
+ const moveTo = mirrorSlideIndex + mirrorSlideIndexOffset;
34340
+ const offset2 = (config.value.rtl ? 1 : -1) * moveTo * (selectorWidth.value / perPage.value);
34341
+ const dragDistance = config.value.draggable ? drag.value.endX - drag.value.startX : 0;
34342
+ if (sliderFrame.value) {
34343
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${offset2 + dragDistance}px, 0, 0)`;
34344
+ }
34345
+ currentSlide.value = mirrorSlideIndex + howManySlides;
34346
+ } else {
34347
+ currentSlide.value = currentSlide.value + howManySlides;
34348
+ }
34349
+ } else {
34350
+ currentSlide.value = Math.min(currentSlide.value + howManySlides, innerElements.value.length - perPage.value);
34351
+ }
34352
+ if (beforeChange !== currentSlide.value) {
34353
+ slideToCurrent(config.value.loop);
34354
+ config.value.onChange();
34355
+ }
34356
+ }
34357
+ function goTo(index2) {
34358
+ if (innerElements.value.length <= perPage.value) {
34359
+ return;
34360
+ }
34361
+ const beforeChange = currentSlide.value;
34362
+ currentSlide.value = config.value.loop ? index2 % innerElements.value.length : Math.min(Math.max(index2, 0), innerElements.value.length - perPage.value);
34363
+ if (beforeChange !== currentSlide.value) {
34364
+ slideToCurrent();
34365
+ config.value.onChange();
34366
+ }
34367
+ }
34368
+ function disableTransition() {
34369
+ if (sliderFrame.value) {
34370
+ sliderFrame.value.style.webkitTransition = `all 0ms ${config.value.easing}`;
34371
+ sliderFrame.value.style.transition = `all 0ms ${config.value.easing}`;
34372
+ }
34373
+ }
34374
+ function enableTransition() {
34375
+ if (sliderFrame.value) {
34376
+ sliderFrame.value.style.webkitTransition = `all ${config.value.duration}ms ${config.value.easing}`;
34377
+ sliderFrame.value.style.transition = `all ${config.value.duration}ms ${config.value.easing}`;
34378
+ }
34379
+ }
34380
+ function updateAfterDrag() {
34381
+ const movement = (config.value.rtl ? -1 : 1) * (drag.value.endX - drag.value.startX);
34382
+ const movementDistance = Math.abs(movement);
34383
+ const howManySliderToSlide = config.value.multipleDrag ? Math.ceil(movementDistance / (selectorWidth.value / perPage.value)) : 1;
34384
+ const slideToNegativeClone = movement > 0 && currentSlide.value - howManySliderToSlide < 0;
34385
+ const slideToPositiveClone = movement < 0 && currentSlide.value + howManySliderToSlide > innerElements.value.length - perPage.value;
34386
+ if (movement > 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
34387
+ prev(howManySliderToSlide);
34388
+ } else if (movement < 0 && movementDistance > config.value.threshold && innerElements.value.length > perPage.value) {
34389
+ next(howManySliderToSlide);
34390
+ }
34391
+ slideToCurrent(slideToNegativeClone || slideToPositiveClone);
34392
+ }
34393
+ function resizeHandler() {
34394
+ if (currentSlide.value + perPage.value > innerElements.value.length) {
34395
+ currentSlide.value = innerElements.value.length <= perPage.value ? 0 : innerElements.value.length - perPage.value;
34396
+ }
34397
+ if (carouselRef.value) {
34398
+ selectorWidth.value = carouselRef.value.offsetWidth;
34399
+ }
34400
+ buildSliderFrame();
34401
+ }
34402
+ function clearDrag() {
34403
+ drag.value = {
34404
+ startX: 0,
34405
+ endX: 0,
34406
+ startY: 0,
34407
+ letItGo: null,
34408
+ preventClick: drag.value.preventClick
34409
+ };
34410
+ }
34411
+ function touchstartHandler(e) {
34412
+ const target = e.target;
34413
+ const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
34414
+ if (ignoreTags) {
34415
+ return;
34416
+ }
34417
+ stopAutoplay();
34418
+ e.stopPropagation();
34419
+ pointerDown.value = true;
34420
+ isDragging.value = false;
34421
+ drag.value.startX = e.touches[0].pageX;
34422
+ drag.value.startY = e.touches[0].pageY;
34423
+ const isLink = target.tagName === "A" || target.closest("a");
34424
+ const isImage = target.tagName === "IMG";
34425
+ if (isLink || isImage) {
34426
+ drag.value.preventClick = false;
34427
+ }
34428
+ }
34429
+ function touchendHandler(e) {
34430
+ e.stopPropagation();
34431
+ if (isDragging.value) {
34432
+ document.addEventListener("click", function preventClickAfterDrag(event) {
34433
+ event.preventDefault();
34434
+ event.stopPropagation();
34435
+ event.stopImmediatePropagation();
34436
+ document.removeEventListener("click", preventClickAfterDrag, true);
34437
+ }, { capture: true, once: true });
34438
+ }
34439
+ pointerDown.value = false;
34440
+ isDragging.value = false;
34441
+ enableTransition();
34442
+ if (drag.value.endX) {
34443
+ updateAfterDrag();
34444
+ }
34445
+ clearDrag();
34446
+ if (config.value.autoplay !== "disabled") {
34447
+ startAutoplay();
34448
+ }
34449
+ }
34450
+ function touchmoveHandler(e) {
34451
+ e.stopPropagation();
34452
+ if (drag.value.letItGo === null) {
34453
+ drag.value.letItGo = Math.abs(drag.value.startY - e.touches[0].pageY) < Math.abs(drag.value.startX - e.touches[0].pageX);
34454
+ }
34455
+ if (pointerDown.value && drag.value.letItGo) {
34456
+ e.preventDefault();
34457
+ drag.value.endX = e.touches[0].pageX;
34458
+ const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
34459
+ if (dragDistance > dragThreshold) {
34460
+ isDragging.value = true;
34461
+ drag.value.preventClick = true;
34462
+ }
34463
+ if (sliderFrame.value) {
34464
+ disableTransition();
34465
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34466
+ const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
34467
+ const dragOffset = drag.value.endX - drag.value.startX;
34468
+ const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
34469
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
34470
+ }
34471
+ }
34472
+ }
34473
+ function mousedownHandler(e) {
34474
+ const target = e.target;
34475
+ const ignoreTags = ["TEXTAREA", "OPTION", "INPUT", "SELECT"].includes(target.nodeName);
34476
+ if (ignoreTags) return;
34477
+ stopAutoplay();
34478
+ e.preventDefault();
34479
+ e.stopPropagation();
34480
+ pointerDown.value = true;
34481
+ isDragging.value = false;
34482
+ drag.value.startX = e.pageX;
34483
+ const isLink = target.tagName === "A" || target.closest("a");
34484
+ const isImage = target.tagName === "IMG";
34485
+ if (isLink || isImage) {
34486
+ drag.value.preventClick = false;
34487
+ }
34488
+ }
34489
+ function mouseupHandler(e) {
34490
+ e.stopPropagation();
34491
+ if (isDragging.value) {
34492
+ document.addEventListener("click", function preventClickAfterDrag(event) {
34493
+ event.preventDefault();
34494
+ event.stopPropagation();
34495
+ event.stopImmediatePropagation();
34496
+ document.removeEventListener("click", preventClickAfterDrag, true);
34497
+ }, { capture: true, once: true });
34498
+ }
34499
+ pointerDown.value = false;
34500
+ isDragging.value = false;
34501
+ if (carouselRef.value) {
34502
+ carouselRef.value.style.cursor = "-webkit-grab";
34503
+ }
34504
+ enableTransition();
34505
+ if (drag.value.endX) {
34506
+ updateAfterDrag();
34507
+ }
34508
+ clearDrag();
34509
+ if (config.value.autoplay !== "disabled" && !isHovering.value) {
34510
+ startAutoplay();
34511
+ }
34512
+ }
34513
+ function mousemoveHandler(e) {
34514
+ e.preventDefault();
34515
+ if (pointerDown.value) {
34516
+ drag.value.endX = e.pageX;
34517
+ const dragDistance = Math.abs(drag.value.endX - drag.value.startX);
34518
+ if (dragDistance > dragThreshold) {
34519
+ isDragging.value = true;
34520
+ drag.value.preventClick = true;
34521
+ }
34522
+ if (carouselRef.value) {
34523
+ carouselRef.value.style.cursor = "-webkit-grabbing";
34524
+ }
34525
+ if (sliderFrame.value) {
34526
+ disableTransition();
34527
+ const currentSlideValue = config.value.loop ? currentSlide.value + perPage.value : currentSlide.value;
34528
+ const currentOffset = currentSlideValue * (selectorWidth.value / perPage.value);
34529
+ const dragOffset = drag.value.endX - drag.value.startX;
34530
+ const offset2 = config.value.rtl ? currentOffset + dragOffset : currentOffset - dragOffset;
34531
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${(config.value.rtl ? 1 : -1) * offset2}px, 0, 0)`;
34532
+ }
34533
+ }
34534
+ }
34535
+ function mouseleaveHandler(e) {
34536
+ if (pointerDown.value) {
34537
+ pointerDown.value = false;
34538
+ if (carouselRef.value) {
34539
+ carouselRef.value.style.cursor = "-webkit-grab";
34540
+ }
34541
+ drag.value.endX = e.pageX;
34542
+ drag.value.preventClick = false;
34543
+ enableTransition();
34544
+ updateAfterDrag();
34545
+ clearDrag();
34546
+ }
34547
+ }
34548
+ function clickHandler2(e) {
34549
+ if (drag.value.preventClick || isDragging.value) {
34550
+ e.preventDefault();
34551
+ e.stopPropagation();
34552
+ e.stopImmediatePropagation();
34553
+ drag.value.preventClick = false;
34554
+ }
34555
+ drag.value.preventClick = false;
34556
+ }
34557
+ function dragstartHandler(e) {
34558
+ var _a;
34559
+ if (config.value.draggable) {
34560
+ const target = e.target;
34561
+ const isDraggableElement = target.tagName === "IMG" || target.tagName === "A" || ((_a = target.parentElement) == null ? void 0 : _a.tagName) === "A";
34562
+ if (isDraggableElement) {
34563
+ e.preventDefault();
34564
+ }
34565
+ }
34566
+ }
34567
+ function remove2(index2) {
34568
+ if (index2 < 0 || index2 >= innerElements.value.length) {
34569
+ throw new Error("Item to remove doesn't exist 😭");
34570
+ }
34571
+ const lowerIndex = index2 < currentSlide.value;
34572
+ const lastItem = currentSlide.value + perPage.value - 1 === index2;
34573
+ if (lowerIndex || lastItem) {
34574
+ currentSlide.value--;
34575
+ }
34576
+ innerElements.value.splice(index2, 1);
34577
+ buildSliderFrame();
34578
+ }
34579
+ function insert(item, index2) {
34580
+ if (index2 < 0 || index2 > innerElements.value.length + 1) {
34581
+ throw new Error("Unable to insert at this index 😭");
34582
+ }
34583
+ if (innerElements.value.includes(item)) {
34584
+ throw new Error("The same item in a carousel? Really? Nope 😭");
34585
+ }
34586
+ const shouldItShift = index2 <= currentSlide.value && innerElements.value.length > 0;
34587
+ if (shouldItShift) {
34588
+ currentSlide.value++;
34589
+ }
34590
+ innerElements.value.splice(index2, 0, item);
34591
+ buildSliderFrame();
34592
+ }
34593
+ function prepend(item) {
34594
+ insert(item, 0);
34595
+ }
34596
+ function append3(item) {
34597
+ insert(item, innerElements.value.length);
34598
+ }
34599
+ function destroy2(restoreMarkup = false) {
34600
+ detachEvents();
34601
+ if (carouselRef.value) {
34602
+ carouselRef.value.style.cursor = "auto";
34603
+ if (restoreMarkup) {
34604
+ const slides = document.createDocumentFragment();
34605
+ for (let i2 = 0; i2 < innerElements.value.length; i2++) {
34606
+ slides.appendChild(innerElements.value[i2]);
34607
+ }
34608
+ carouselRef.value.innerHTML = "";
34609
+ carouselRef.value.appendChild(slides);
34610
+ carouselRef.value.removeAttribute("style");
34611
+ }
34612
+ }
34613
+ }
34614
+ async function startAutoplay() {
34615
+ stopAutoplay();
34616
+ if (config.value.autoplay === "standard") {
34617
+ autoplayTimer.value = window.setInterval(() => {
34618
+ if (!isHovering.value) {
34619
+ next();
34620
+ }
34621
+ }, config.value.autoplayInterval);
34622
+ } else if (config.value.autoplay === "linear") {
34623
+ startLinearAutoplay();
34624
+ }
34625
+ }
34626
+ function stopAutoplay() {
34627
+ if (autoplayTimer.value !== null) {
34628
+ clearInterval(autoplayTimer.value);
34629
+ autoplayTimer.value = null;
34630
+ }
34631
+ if (linearAnimationFrame.value !== null) {
34632
+ cancelAnimationFrame(linearAnimationFrame.value);
34633
+ linearAnimationFrame.value = null;
34634
+ }
34635
+ }
34636
+ function startLinearAutoplay() {
34637
+ linearOffset.value = 0;
34638
+ let lastTimestamp = 0;
34639
+ const animate = (timestamp2) => {
34640
+ if (!lastTimestamp) lastTimestamp = timestamp2;
34641
+ const elapsed = timestamp2 - lastTimestamp;
34642
+ lastTimestamp = timestamp2;
34643
+ if (isHovering.value) {
34644
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34645
+ return;
34646
+ }
34647
+ const pixelsToMove = elapsed / 1e3 * config.value.autoplaySpeed;
34648
+ linearOffset.value += pixelsToMove;
34649
+ const itemWidth = selectorWidth.value / perPage.value;
34650
+ const totalWidth = itemWidth * innerElements.value.length;
34651
+ if (linearOffset.value >= totalWidth) {
34652
+ if (config.value.loop) {
34653
+ linearOffset.value = 0;
34654
+ } else {
34655
+ linearOffset.value = totalWidth - itemWidth;
34656
+ stopAutoplay();
34657
+ return;
34658
+ }
34659
+ }
34660
+ if (sliderFrame.value) {
34661
+ const direction = config.value.rtl ? 1 : -1;
34662
+ sliderFrame.value.style.transition = "none";
34663
+ sliderFrame.value.style[transformProperty.value] = `translate3d(${direction * linearOffset.value}px, 0, 0)`;
34664
+ }
34665
+ const newSlide = Math.floor(linearOffset.value / itemWidth) % innerElements.value.length;
34666
+ if (newSlide !== currentSlide.value) {
34667
+ currentSlide.value = newSlide;
34668
+ config.value.onChange();
34669
+ }
34670
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34671
+ };
34672
+ linearAnimationFrame.value = requestAnimationFrame(animate);
34673
+ }
34674
+ function mouseenterHandler() {
34675
+ isHovering.value = true;
34676
+ }
34677
+ function mouseleaveAutoplayHandler() {
34678
+ isHovering.value = false;
34679
+ }
34680
+ function pauseAutoplay() {
34681
+ stopAutoplay();
34682
+ }
34683
+ function resumeAutoplay() {
34684
+ if (config.value.autoplay !== "disabled") {
34685
+ startAutoplay();
34686
+ }
34687
+ }
34688
+ __expose({
34689
+ prev,
34690
+ next,
34691
+ goTo,
34692
+ remove: remove2,
34693
+ insert,
34694
+ prepend,
34695
+ append: append3,
34696
+ destroy: destroy2,
34697
+ currentSlide,
34698
+ pauseAutoplay,
34699
+ resumeAutoplay
34700
+ });
34701
+ return (_ctx, _cache) => {
34702
+ return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$5, [
34703
+ vue.createElementVNode("div", {
34704
+ ref_key: "carouselRef",
34705
+ ref: carouselRef,
34706
+ class: "carousel-container"
34707
+ }, [
34708
+ vue.renderSlot(_ctx.$slots, "default", {}, void 0, true)
34709
+ ], 512),
34710
+ props2.dots && totalDots.value > 1 ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$3, [
34711
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(totalDots.value, (i2) => {
34712
+ return vue.openBlock(), vue.createElementBlock("button", {
34713
+ key: i2,
34714
+ type: "button",
34715
+ class: vue.normalizeClass(["carousel-dot", [{ active: i2 - 1 === currentSlide.value }]]),
34716
+ "aria-label": `Go to slide ${i2}`,
34717
+ onClick: ($event) => goTo(i2 - 1)
34718
+ }, null, 10, _hoisted_3$3);
34719
+ }), 128))
34720
+ ])) : vue.createCommentVNode("", true)
34721
+ ]);
34722
+ };
34723
+ }
34724
+ });
34725
+ const Slider = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-bf496bff"]]);
34726
34726
  const _hoisted_1$4 = { class: "stickyTop" };
34727
34727
  const _hoisted_2$2 = {
34728
34728
  key: 0,
@@ -34825,7 +34825,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
34825
34825
  vue.createElementVNode("span", {
34826
34826
  onClick: ($event) => col.sortable && _ctx.$emit("sortColumn", col.key)
34827
34827
  }, vue.toDisplayString(col.label || col.key), 9, _hoisted_4$2),
34828
- _ctx.sortColumn === col.key ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
34828
+ _ctx.sortColumn === col.key ? (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
34829
34829
  key: 0,
34830
34830
  class: vue.normalizeClass(["line-height-0 transition-400", { "rotate-180": _ctx.sortDirection === "desc" }]),
34831
34831
  name: "keyboard_arrow_down"
@@ -35402,29 +35402,29 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
35402
35402
  placeholder: "Search",
35403
35403
  class: "m-0 max-w200px"
35404
35404
  }, null, 8, ["modelValue"]),
35405
- vue.createVNode(vue.unref(_sfc_main$X), {
35405
+ vue.createVNode(vue.unref(_sfc_main$Y), {
35406
35406
  flat: "",
35407
35407
  thin: "",
35408
35408
  icon: "more_vert"
35409
35409
  }, {
35410
35410
  default: vue.withCtx(() => [
35411
- vue.createVNode(vue.unref(_sfc_main$h), {
35411
+ vue.createVNode(vue.unref(_sfc_main$i), {
35412
35412
  title: "Paste",
35413
35413
  icon: "paste",
35414
35414
  onClick: pasteSelection
35415
35415
  }),
35416
- vue.createVNode(vue.unref(_sfc_main$h), {
35416
+ vue.createVNode(vue.unref(_sfc_main$i), {
35417
35417
  title: "copy",
35418
35418
  icon: "copy",
35419
35419
  onClick: copySelection
35420
35420
  }),
35421
- vue.createVNode(vue.unref(_sfc_main$h), {
35421
+ vue.createVNode(vue.unref(_sfc_main$i), {
35422
35422
  title: "Undo",
35423
35423
  icon: "undo",
35424
35424
  disabled: !canUndo.value,
35425
35425
  onClick: undo
35426
35426
  }, null, 8, ["disabled"]),
35427
- vue.createVNode(vue.unref(_sfc_main$h), {
35427
+ vue.createVNode(vue.unref(_sfc_main$i), {
35428
35428
  title: "Redo",
35429
35429
  icon: "redo",
35430
35430
  disabled: !canRedo.value,
@@ -35435,9 +35435,9 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
35435
35435
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(wrapText) ? wrapText.value = $event : null),
35436
35436
  label: "Wrap Text"
35437
35437
  }, null, 8, ["modelValue"]),
35438
- vue.createVNode(vue.unref(_sfc_main$X), { placement: "auto-end" }, {
35438
+ vue.createVNode(vue.unref(_sfc_main$Y), { placement: "auto-end" }, {
35439
35439
  trigger: vue.withCtx(({ show }) => [
35440
- vue.createVNode(vue.unref(_sfc_main$h), {
35440
+ vue.createVNode(vue.unref(_sfc_main$i), {
35441
35441
  title: "Column Visibility",
35442
35442
  icon: "view_column",
35443
35443
  onClick: ($event) => show()
@@ -36655,13 +36655,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36655
36655
  title: item == null ? void 0 : item.name,
36656
36656
  class: "vw90"
36657
36657
  }, null, 8, _hoisted_5)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
36658
- vue.createVNode(vue.unref(_sfc_main$s), {
36658
+ vue.createVNode(vue.unref(_sfc_main$t), {
36659
36659
  class: "m-0 m_none",
36660
36660
  icon: "draft",
36661
36661
  size: 10,
36662
36662
  weight: "12"
36663
36663
  }),
36664
- vue.createVNode(vue.unref(_sfc_main$s), {
36664
+ vue.createVNode(vue.unref(_sfc_main$t), {
36665
36665
  class: "m-0 none m_block m_-mb-1",
36666
36666
  icon: "draft",
36667
36667
  size: 4,
@@ -36700,7 +36700,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36700
36700
  src: item.src,
36701
36701
  alt: "",
36702
36702
  onClick: ($event) => selectItem(index2)
36703
- }, null, 8, ["src", "class", "onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$s), {
36703
+ }, null, 8, ["src", "class", "onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(_sfc_main$t), {
36704
36704
  key: 1,
36705
36705
  class: vue.normalizeClass(["thumbnail object-fit-cover hover opacity-5 ed flex bg-popup justify-content-center align-items-center flex-shrink-0", { active: vue.unref(currentIndex) === index2 }]),
36706
36706
  icon: "description",
@@ -37081,9 +37081,9 @@ const ModalPlugin = {
37081
37081
  case "modalForm":
37082
37082
  return vue.h(ModalForm, props2, modal.componentSlots);
37083
37083
  case "confirmModal":
37084
- return vue.h(_sfc_main$c, props2, {});
37084
+ return vue.h(_sfc_main$d, props2, {});
37085
37085
  default:
37086
- return vue.h(_sfc_main$d, props2, modal.componentSlots);
37086
+ return vue.h(_sfc_main$e, props2, modal.componentSlots);
37087
37087
  }
37088
37088
  });
37089
37089
  }
@@ -37862,55 +37862,54 @@ exports.AddressSearch = _sfc_main$1e;
37862
37862
  exports.Alert = Alert;
37863
37863
  exports.Avatar = Avatar;
37864
37864
  exports.Badge = Badge;
37865
- exports.BagelForm = _sfc_main$U;
37865
+ exports.BagelForm = _sfc_main$V;
37866
37866
  exports.BagelMultiStepForm = BglMultiStepForm;
37867
37867
  exports.BagelVue = BagelVue;
37868
- exports.BglForm = _sfc_main$U;
37868
+ exports.BglForm = _sfc_main$V;
37869
37869
  exports.BglVideo = BglVideo;
37870
37870
  exports.BottomMenu = BottomMenu;
37871
37871
  exports.Btn = Btn;
37872
37872
  exports.Calendar = Index$1;
37873
37873
  exports.Card = _sfc_main$12;
37874
37874
  exports.Carousel = Carousel;
37875
- exports.Carousel2 = Carousel2;
37876
37875
  exports.CheckInput = CheckInput;
37877
37876
  exports.Checkbox = Checkbox;
37878
37877
  exports.CodeEditor = CodeEditor;
37879
- exports.ColorInput = _sfc_main$O;
37878
+ exports.ColorInput = _sfc_main$P;
37880
37879
  exports.DataPreview = DataPreview;
37881
37880
  exports.DataTable = DataTable;
37882
- exports.DateInput = _sfc_main$M;
37881
+ exports.DateInput = _sfc_main$N;
37883
37882
  exports.DatePicker = DatePicker;
37884
- exports.Draggable = _sfc_main$Y;
37885
- exports.Dropdown = _sfc_main$X;
37883
+ exports.Draggable = _sfc_main$Z;
37884
+ exports.Dropdown = _sfc_main$Y;
37886
37885
  exports.EMAIL_REGEX = EMAIL_REGEX;
37887
37886
  exports.EmailInput = EmailInput;
37888
37887
  exports.FORM_STATE_KEY = FORM_STATE_KEY;
37889
- exports.FieldArray = _sfc_main$S;
37888
+ exports.FieldArray = _sfc_main$T;
37890
37889
  exports.FieldSetVue = FieldSetVue;
37891
37890
  exports.FileUpload = FileUpload;
37892
37891
  exports.Flag = Flag;
37893
37892
  exports.IMAGE_FORMATS = IMAGE_FORMATS;
37894
37893
  exports.IMAGE_FORMATS_REGEXP = IMAGE_FORMATS_REGEXP;
37895
- exports.Icon = _sfc_main$s;
37896
- exports.IframeVue = _sfc_main$r;
37894
+ exports.Icon = _sfc_main$t;
37895
+ exports.IframeVue = _sfc_main$s;
37897
37896
  exports.Image = Image$1;
37898
37897
  exports.JSONInput = JSONInput;
37899
37898
  exports.Layout = Layout;
37900
- exports.Lineart = _sfc_main$$;
37901
- exports.ListItem = _sfc_main$h;
37899
+ exports.Lineart = _sfc_main$10;
37900
+ exports.ListItem = _sfc_main$i;
37902
37901
  exports.ListView = ListView;
37903
37902
  exports.Loading = Loading;
37904
- exports.MapEmbed = _sfc_main$e;
37905
- exports.Modal = _sfc_main$d;
37906
- exports.ModalConfirm = _sfc_main$c;
37903
+ exports.MapEmbed = _sfc_main$f;
37904
+ exports.Modal = _sfc_main$e;
37905
+ exports.ModalConfirm = _sfc_main$d;
37907
37906
  exports.ModalForm = ModalForm;
37908
37907
  exports.ModalPlugin = ModalPlugin;
37909
37908
  exports.NavBar = NavBar;
37910
37909
  exports.NumberInput = NumberInput;
37911
37910
  exports.OTP = OTP;
37912
- exports.PageTitle = _sfc_main$9;
37913
- exports.PasswordInput = _sfc_main$G;
37911
+ exports.PageTitle = _sfc_main$a;
37912
+ exports.PasswordInput = _sfc_main$H;
37914
37913
  exports.Pill = Pill;
37915
37914
  exports.RadioGroup = RadioGroup;
37916
37915
  exports.RadioPillsInput = RadioPillsInput;
@@ -37919,14 +37918,15 @@ exports.RichText = RichText;
37919
37918
  exports.RouterWrapper = RouterWrapper;
37920
37919
  exports.SelectInput = SelectInput;
37921
37920
  exports.SidebarMenu = SidebarMenu;
37922
- exports.SignaturePad = _sfc_main$y;
37921
+ exports.SignaturePad = _sfc_main$z;
37923
37922
  exports.Skeleton = Skeleton;
37923
+ exports.Slider = Slider;
37924
37924
  exports.Spreadsheet = Index;
37925
37925
  exports.TabbedLayout = TabbedLayout;
37926
37926
  exports.TableField = TableField;
37927
37927
  exports.TableSchema = DataTable;
37928
- exports.Tabs = _sfc_main$k;
37929
- exports.TabsBody = _sfc_main$j;
37928
+ exports.Tabs = _sfc_main$l;
37929
+ exports.TabsBody = _sfc_main$k;
37930
37930
  exports.TabsNav = TabsNav;
37931
37931
  exports.TelInput = TelInput;
37932
37932
  exports.TextInput = TextInput;