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