@amirjalili1374/ui-kit 1.3.8 → 1.3.9
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/layout/AppSidebar.vue.d.ts +59 -34
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/layout/NavCollapse/NavCollapse.vue.d.ts +7 -0
- package/dist/components/layout/NavCollapse/NavCollapse.vue.d.ts.map +1 -0
- package/dist/components/layout/NavGroup/NavGroup.vue.d.ts +8 -0
- package/dist/components/layout/NavGroup/NavGroup.vue.d.ts.map +1 -0
- package/dist/components/layout/NavItem/NavItem.vue.d.ts +7 -0
- package/dist/components/layout/NavItem/NavItem.vue.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/dist/ui-kit.cjs.js +1 -7
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +378 -1433
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-kit.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { capitalize, reactive, watchEffect, toRef, shallowRef, Fragment, cameliz
|
|
|
2
2
|
import { IconHome, IconArrowBadgeLeft, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconCheck, IconPencil, IconClock } from "@tabler/icons-vue";
|
|
3
3
|
import axios from "axios";
|
|
4
4
|
import { useDebounceFn } from "@vueuse/core";
|
|
5
|
-
import { useRouter as useRouter$1
|
|
5
|
+
import { useRouter as useRouter$1 } from "vue-router";
|
|
6
6
|
import { defineStore } from "pinia";
|
|
7
7
|
function propsFactory(props, source) {
|
|
8
8
|
return (defaults) => {
|
|
@@ -655,13 +655,13 @@ function animate(el, keyframes, options) {
|
|
|
655
655
|
}
|
|
656
656
|
return animation;
|
|
657
657
|
}
|
|
658
|
-
const handlers
|
|
658
|
+
const handlers = /* @__PURE__ */ new WeakMap();
|
|
659
659
|
function bindProps(el, props) {
|
|
660
660
|
Object.keys(props).forEach((k) => {
|
|
661
661
|
var _a;
|
|
662
662
|
if (isOn(k)) {
|
|
663
663
|
const name2 = eventName(k);
|
|
664
|
-
const handler = handlers
|
|
664
|
+
const handler = handlers.get(el);
|
|
665
665
|
if (props[k] == null) {
|
|
666
666
|
handler == null ? void 0 : handler.forEach((v) => {
|
|
667
667
|
const [n, fn] = v;
|
|
@@ -674,7 +674,7 @@ function bindProps(el, props) {
|
|
|
674
674
|
el.addEventListener(name2, props[k]);
|
|
675
675
|
const _handler = handler || /* @__PURE__ */ new Set();
|
|
676
676
|
_handler.add([name2, props[k]]);
|
|
677
|
-
if (!handlers
|
|
677
|
+
if (!handlers.has(el)) handlers.set(el, _handler);
|
|
678
678
|
}
|
|
679
679
|
} else {
|
|
680
680
|
if (props[k] == null) {
|
|
@@ -689,7 +689,7 @@ function unbindProps(el, props) {
|
|
|
689
689
|
Object.keys(props).forEach((k) => {
|
|
690
690
|
if (isOn(k)) {
|
|
691
691
|
const name2 = eventName(k);
|
|
692
|
-
const handler = handlers
|
|
692
|
+
const handler = handlers.get(el);
|
|
693
693
|
handler == null ? void 0 : handler.forEach((v) => {
|
|
694
694
|
const [n, fn] = v;
|
|
695
695
|
if (n === name2) {
|
|
@@ -3887,8 +3887,8 @@ const VRow = genericComponent()({
|
|
|
3887
3887
|
const VSpacer = createSimpleFunctional("v-spacer", "div", "VSpacer");
|
|
3888
3888
|
const _hoisted_1$d = { class: "text-h3" };
|
|
3889
3889
|
const _hoisted_2$7 = { class: "d-flex align-center gap-2" };
|
|
3890
|
-
const _hoisted_3$
|
|
3891
|
-
const _sfc_main$
|
|
3890
|
+
const _hoisted_3$6 = { class: "d-flex align-center gap-2" };
|
|
3891
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
3892
3892
|
__name: "BaseBreadcrumb",
|
|
3893
3893
|
props: {
|
|
3894
3894
|
title: String,
|
|
@@ -3941,7 +3941,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
|
3941
3941
|
size: "16",
|
|
3942
3942
|
class: "text-secondary ml-2"
|
|
3943
3943
|
}),
|
|
3944
|
-
createElementVNode("div", _hoisted_3$
|
|
3944
|
+
createElementVNode("div", _hoisted_3$6, [
|
|
3945
3945
|
createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
|
|
3946
3946
|
])
|
|
3947
3947
|
]),
|
|
@@ -3965,7 +3965,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
|
3965
3965
|
};
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
|
-
const _sfc_main$
|
|
3968
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent$1({
|
|
3969
3969
|
__name: "BaseIcon",
|
|
3970
3970
|
props: {
|
|
3971
3971
|
icon: {
|
|
@@ -5495,10 +5495,10 @@ function useScrollStrategies(props, data2) {
|
|
|
5495
5495
|
});
|
|
5496
5496
|
}
|
|
5497
5497
|
function closeScrollStrategy(data2) {
|
|
5498
|
-
function
|
|
5498
|
+
function onScroll(e) {
|
|
5499
5499
|
data2.isActive.value = false;
|
|
5500
5500
|
}
|
|
5501
|
-
bindScroll(getTargetEl(data2.target.value, data2.contentEl.value),
|
|
5501
|
+
bindScroll(getTargetEl(data2.target.value, data2.contentEl.value), onScroll);
|
|
5502
5502
|
}
|
|
5503
5503
|
function blockScrollStrategy(data2, props) {
|
|
5504
5504
|
var _a;
|
|
@@ -5541,7 +5541,7 @@ function repositionScrollStrategy(data2, props, scope) {
|
|
|
5541
5541
|
let slow = false;
|
|
5542
5542
|
let raf2 = -1;
|
|
5543
5543
|
let ric = -1;
|
|
5544
|
-
function
|
|
5544
|
+
function update(e) {
|
|
5545
5545
|
requestNewFrame(() => {
|
|
5546
5546
|
var _a, _b;
|
|
5547
5547
|
const start = performance.now();
|
|
@@ -5557,11 +5557,11 @@ function repositionScrollStrategy(data2, props, scope) {
|
|
|
5557
5557
|
cancelAnimationFrame(raf2);
|
|
5558
5558
|
raf2 = requestAnimationFrame(() => {
|
|
5559
5559
|
raf2 = requestAnimationFrame(() => {
|
|
5560
|
-
|
|
5560
|
+
update(e);
|
|
5561
5561
|
});
|
|
5562
5562
|
});
|
|
5563
5563
|
} else {
|
|
5564
|
-
|
|
5564
|
+
update(e);
|
|
5565
5565
|
}
|
|
5566
5566
|
});
|
|
5567
5567
|
});
|
|
@@ -5574,16 +5574,16 @@ function repositionScrollStrategy(data2, props, scope) {
|
|
|
5574
5574
|
function getTargetEl(target, contentEl) {
|
|
5575
5575
|
return Array.isArray(target) ? document.elementsFromPoint(...target).find((el) => !(contentEl == null ? void 0 : contentEl.contains(el))) : target ?? contentEl;
|
|
5576
5576
|
}
|
|
5577
|
-
function bindScroll(el,
|
|
5577
|
+
function bindScroll(el, onScroll) {
|
|
5578
5578
|
const scrollElements = [document, ...getScrollParents(el)];
|
|
5579
5579
|
scrollElements.forEach((el2) => {
|
|
5580
|
-
el2.addEventListener("scroll",
|
|
5580
|
+
el2.addEventListener("scroll", onScroll, {
|
|
5581
5581
|
passive: true
|
|
5582
5582
|
});
|
|
5583
5583
|
});
|
|
5584
5584
|
onScopeDispose(() => {
|
|
5585
5585
|
scrollElements.forEach((el2) => {
|
|
5586
|
-
el2.removeEventListener("scroll",
|
|
5586
|
+
el2.removeEventListener("scroll", onScroll);
|
|
5587
5587
|
});
|
|
5588
5588
|
});
|
|
5589
5589
|
}
|
|
@@ -6584,7 +6584,7 @@ const _hoisted_1$c = {
|
|
|
6584
6584
|
key: 0,
|
|
6585
6585
|
class: "mb-2"
|
|
6586
6586
|
};
|
|
6587
|
-
const _sfc_main$
|
|
6587
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent$1({
|
|
6588
6588
|
__name: "ConfirmDialog",
|
|
6589
6589
|
props: {
|
|
6590
6590
|
modelValue: { type: Boolean },
|
|
@@ -7222,13 +7222,13 @@ function useValidation(props) {
|
|
|
7222
7222
|
let value2 = (props.validateOn ?? ((_a = form.validateOn) == null ? void 0 : _a.value)) || "input";
|
|
7223
7223
|
if (value2 === "lazy") value2 = "input lazy";
|
|
7224
7224
|
if (value2 === "eager") value2 = "input eager";
|
|
7225
|
-
const
|
|
7225
|
+
const set = new Set((value2 == null ? void 0 : value2.split(" ")) ?? []);
|
|
7226
7226
|
return {
|
|
7227
|
-
input:
|
|
7228
|
-
blur:
|
|
7229
|
-
invalidInput:
|
|
7230
|
-
lazy:
|
|
7231
|
-
eager:
|
|
7227
|
+
input: set.has("input"),
|
|
7228
|
+
blur: set.has("blur") || set.has("input") || set.has("invalid-input"),
|
|
7229
|
+
invalidInput: set.has("invalid-input"),
|
|
7230
|
+
lazy: set.has("lazy"),
|
|
7231
|
+
eager: set.has("eager")
|
|
7232
7232
|
};
|
|
7233
7233
|
});
|
|
7234
7234
|
const isValid = computed(() => {
|
|
@@ -7873,7 +7873,7 @@ const VSlideGroup = genericComponent()({
|
|
|
7873
7873
|
goTo(newPosition, goToOptions.value);
|
|
7874
7874
|
}
|
|
7875
7875
|
}
|
|
7876
|
-
function
|
|
7876
|
+
function onScroll(e) {
|
|
7877
7877
|
const {
|
|
7878
7878
|
scrollTop,
|
|
7879
7879
|
scrollLeft
|
|
@@ -8033,7 +8033,7 @@ const VSlideGroup = genericComponent()({
|
|
|
8033
8033
|
"key": "container",
|
|
8034
8034
|
"ref": containerRef,
|
|
8035
8035
|
"class": normalizeClass(["v-slide-group__container", props.contentClass]),
|
|
8036
|
-
"onScroll":
|
|
8036
|
+
"onScroll": onScroll
|
|
8037
8037
|
}, [createElementVNode("div", {
|
|
8038
8038
|
"ref": contentRef,
|
|
8039
8039
|
"class": "v-slide-group__content",
|
|
@@ -8511,19 +8511,19 @@ const independentActiveStrategy = (mandatory) => {
|
|
|
8511
8511
|
return activated;
|
|
8512
8512
|
},
|
|
8513
8513
|
in: (v, children, parents) => {
|
|
8514
|
-
let
|
|
8514
|
+
let set = /* @__PURE__ */ new Set();
|
|
8515
8515
|
if (v != null) {
|
|
8516
8516
|
for (const id of wrapInArray(v)) {
|
|
8517
|
-
|
|
8517
|
+
set = strategy.activate({
|
|
8518
8518
|
id,
|
|
8519
8519
|
value: true,
|
|
8520
|
-
activated: new Set(
|
|
8520
|
+
activated: new Set(set),
|
|
8521
8521
|
children,
|
|
8522
8522
|
parents
|
|
8523
8523
|
});
|
|
8524
8524
|
}
|
|
8525
8525
|
}
|
|
8526
|
-
return
|
|
8526
|
+
return set;
|
|
8527
8527
|
},
|
|
8528
8528
|
out: (v) => {
|
|
8529
8529
|
return Array.from(v);
|
|
@@ -8549,14 +8549,14 @@ const independentSingleActiveStrategy = (mandatory) => {
|
|
|
8549
8549
|
});
|
|
8550
8550
|
},
|
|
8551
8551
|
in: (v, children, parents) => {
|
|
8552
|
-
let
|
|
8552
|
+
let set = /* @__PURE__ */ new Set();
|
|
8553
8553
|
if (v != null) {
|
|
8554
8554
|
const arr = wrapInArray(v);
|
|
8555
8555
|
if (arr.length) {
|
|
8556
|
-
|
|
8556
|
+
set = parentStrategy.in(arr.slice(0, 1), children, parents);
|
|
8557
8557
|
}
|
|
8558
8558
|
}
|
|
8559
|
-
return
|
|
8559
|
+
return set;
|
|
8560
8560
|
},
|
|
8561
8561
|
out: (v, children, parents) => {
|
|
8562
8562
|
return parentStrategy.out(v, children, parents);
|
|
@@ -11582,11 +11582,11 @@ const VSelect = genericComponent()({
|
|
|
11582
11582
|
}
|
|
11583
11583
|
}
|
|
11584
11584
|
function select(item) {
|
|
11585
|
-
let
|
|
11585
|
+
let set = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
11586
11586
|
if (item.props.disabled) return;
|
|
11587
11587
|
if (props.multiple) {
|
|
11588
11588
|
const index2 = model.value.findIndex((selection) => (props.valueComparator || deepEqual)(selection.value, item.value));
|
|
11589
|
-
const add2 =
|
|
11589
|
+
const add2 = set == null ? !~index2 : set;
|
|
11590
11590
|
if (~index2) {
|
|
11591
11591
|
const value2 = add2 ? [...model.value, item] : [...model.value];
|
|
11592
11592
|
value2.splice(index2, 1);
|
|
@@ -11595,7 +11595,7 @@ const VSelect = genericComponent()({
|
|
|
11595
11595
|
model.value = [...model.value, item];
|
|
11596
11596
|
}
|
|
11597
11597
|
} else {
|
|
11598
|
-
const add2 =
|
|
11598
|
+
const add2 = set !== false;
|
|
11599
11599
|
model.value = add2 ? [item] : [];
|
|
11600
11600
|
nextTick(() => {
|
|
11601
11601
|
menu.value = false;
|
|
@@ -11976,11 +11976,11 @@ function useFilter(props, items, query, options) {
|
|
|
11976
11976
|
results.forEach((_ref) => {
|
|
11977
11977
|
let {
|
|
11978
11978
|
index: index2,
|
|
11979
|
-
matches
|
|
11979
|
+
matches
|
|
11980
11980
|
} = _ref;
|
|
11981
11981
|
const item = originalItems[index2];
|
|
11982
11982
|
_filteredItems.push(item);
|
|
11983
|
-
_filteredMatches.set(item.value,
|
|
11983
|
+
_filteredMatches.set(item.value, matches);
|
|
11984
11984
|
});
|
|
11985
11985
|
filteredItems.value = _filteredItems;
|
|
11986
11986
|
filteredMatches.value = _filteredMatches;
|
|
@@ -11994,16 +11994,16 @@ function useFilter(props, items, query, options) {
|
|
|
11994
11994
|
getMatches
|
|
11995
11995
|
};
|
|
11996
11996
|
}
|
|
11997
|
-
function highlightResult(name2, text2,
|
|
11998
|
-
if (
|
|
11999
|
-
return
|
|
12000
|
-
const start = i === 0 ? 0 :
|
|
11997
|
+
function highlightResult(name2, text2, matches) {
|
|
11998
|
+
if (matches == null || !matches.length) return text2;
|
|
11999
|
+
return matches.map((match, i) => {
|
|
12000
|
+
const start = i === 0 ? 0 : matches[i - 1][1];
|
|
12001
12001
|
const result = [createElementVNode("span", {
|
|
12002
12002
|
"class": normalizeClass(`${name2}__unmask`)
|
|
12003
12003
|
}, [text2.slice(start, match[0])]), createElementVNode("span", {
|
|
12004
12004
|
"class": normalizeClass(`${name2}__mask`)
|
|
12005
12005
|
}, [text2.slice(match[0], match[1])])];
|
|
12006
|
-
if (i ===
|
|
12006
|
+
if (i === matches.length - 1) {
|
|
12007
12007
|
result.push(createElementVNode("span", {
|
|
12008
12008
|
"class": normalizeClass(`${name2}__unmask`)
|
|
12009
12009
|
}, [text2.slice(match[1])]));
|
|
@@ -12230,11 +12230,11 @@ const VAutocomplete = genericComponent()({
|
|
|
12230
12230
|
}
|
|
12231
12231
|
const isSelecting = shallowRef(false);
|
|
12232
12232
|
function select(item) {
|
|
12233
|
-
let
|
|
12233
|
+
let set = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
12234
12234
|
if (!item || item.props.disabled) return;
|
|
12235
12235
|
if (props.multiple) {
|
|
12236
12236
|
const index2 = model.value.findIndex((selection) => (props.valueComparator || deepEqual)(selection.value, item.value));
|
|
12237
|
-
const add2 =
|
|
12237
|
+
const add2 = set == null ? !~index2 : set;
|
|
12238
12238
|
if (~index2) {
|
|
12239
12239
|
const value2 = add2 ? [...model.value, item] : [...model.value];
|
|
12240
12240
|
value2.splice(index2, 1);
|
|
@@ -12246,7 +12246,7 @@ const VAutocomplete = genericComponent()({
|
|
|
12246
12246
|
search.value = "";
|
|
12247
12247
|
}
|
|
12248
12248
|
} else {
|
|
12249
|
-
const add2 =
|
|
12249
|
+
const add2 = set !== false;
|
|
12250
12250
|
model.value = add2 ? [item] : [];
|
|
12251
12251
|
search.value = add2 && !hasSelectionSlot.value ? item.title : "";
|
|
12252
12252
|
nextTick(() => {
|
|
@@ -12593,15 +12593,15 @@ const VTooltip = genericComponent()({
|
|
|
12593
12593
|
});
|
|
12594
12594
|
const _hoisted_1$b = { class: "ca-item-title" };
|
|
12595
12595
|
const _hoisted_2$6 = { class: "ca-item-subtitle" };
|
|
12596
|
-
const _hoisted_3$
|
|
12597
|
-
const _hoisted_4$
|
|
12596
|
+
const _hoisted_3$5 = { class: "ca-group-tooltip" };
|
|
12597
|
+
const _hoisted_4$3 = { class: "ca-group-tooltip-header" };
|
|
12598
12598
|
const _hoisted_5$3 = { class: "ca-group-count" };
|
|
12599
12599
|
const _hoisted_6$2 = { class: "ca-group-members" };
|
|
12600
12600
|
const _hoisted_7$2 = { class: "ca-item-title" };
|
|
12601
12601
|
const _hoisted_8$2 = { class: "ca-item-subtitle" };
|
|
12602
12602
|
const _hoisted_9$2 = { class: "ca-chip-title" };
|
|
12603
12603
|
const _hoisted_10$2 = { class: "ca-chip-subtitle" };
|
|
12604
|
-
const _sfc_main$
|
|
12604
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
12605
12605
|
__name: "CustomAutocomplete",
|
|
12606
12606
|
props: {
|
|
12607
12607
|
fields: {},
|
|
@@ -12746,8 +12746,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
12746
12746
|
item: item.raw ?? item,
|
|
12747
12747
|
groupMembers: getGroupMembers(item.raw ?? item)
|
|
12748
12748
|
}, () => [
|
|
12749
|
-
createElementVNode("div", _hoisted_3$
|
|
12750
|
-
createElementVNode("div", _hoisted_4$
|
|
12749
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
12750
|
+
createElementVNode("div", _hoisted_4$3, [
|
|
12751
12751
|
createElementVNode("strong", null, toDisplayString(resolveTitle(item.raw ?? item)), 1),
|
|
12752
12752
|
createElementVNode("span", _hoisted_5$3, toDisplayString(getGroupMembers(item.raw ?? item).length) + " آیتم", 1)
|
|
12753
12753
|
]),
|
|
@@ -12812,8 +12812,8 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
12812
12812
|
}
|
|
12813
12813
|
return target;
|
|
12814
12814
|
};
|
|
12815
|
-
const CustomAutocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12816
|
-
const _sfc_main$
|
|
12815
|
+
const CustomAutocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-4c17f7bd"]]);
|
|
12816
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent$1({
|
|
12817
12817
|
__name: "MoneyInput",
|
|
12818
12818
|
props: {
|
|
12819
12819
|
modelValue: {
|
|
@@ -12920,7 +12920,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
12920
12920
|
}
|
|
12921
12921
|
});
|
|
12922
12922
|
const _hoisted_1$a = { class: "shamsi-date-picker" };
|
|
12923
|
-
const _sfc_main$
|
|
12923
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
12924
12924
|
__name: "ShamsiDatePicker",
|
|
12925
12925
|
props: {
|
|
12926
12926
|
modelValue: { default: "" },
|
|
@@ -13031,7 +13031,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
|
13031
13031
|
};
|
|
13032
13032
|
}
|
|
13033
13033
|
});
|
|
13034
|
-
const ShamsiDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13034
|
+
const ShamsiDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-d56f50fe"]]);
|
|
13035
13035
|
function useTableSelection(items, options = {}) {
|
|
13036
13036
|
const selectedItems = ref([]);
|
|
13037
13037
|
const expandedGroups = ref(/* @__PURE__ */ new Set());
|
|
@@ -13277,7 +13277,7 @@ function jalCalLeap(jy) {
|
|
|
13277
13277
|
}
|
|
13278
13278
|
n = jy - jp;
|
|
13279
13279
|
if (jump - n < 6)
|
|
13280
|
-
n = n - jump + div
|
|
13280
|
+
n = n - jump + div(jump + 4, 33) * 33;
|
|
13281
13281
|
leap = mod(mod(n + 1, 33) - 1, 4);
|
|
13282
13282
|
if (leap === -1) {
|
|
13283
13283
|
leap = 4;
|
|
@@ -13293,18 +13293,18 @@ function jalCal(jy, withoutLeap) {
|
|
|
13293
13293
|
jump = jm - jp;
|
|
13294
13294
|
if (jy < jm)
|
|
13295
13295
|
break;
|
|
13296
|
-
leapJ = leapJ + div
|
|
13296
|
+
leapJ = leapJ + div(jump, 33) * 8 + div(mod(jump, 33), 4);
|
|
13297
13297
|
jp = jm;
|
|
13298
13298
|
}
|
|
13299
13299
|
n = jy - jp;
|
|
13300
|
-
leapJ = leapJ + div
|
|
13300
|
+
leapJ = leapJ + div(n, 33) * 8 + div(mod(n, 33) + 3, 4);
|
|
13301
13301
|
if (mod(jump, 33) === 4 && jump - n === 4)
|
|
13302
13302
|
leapJ += 1;
|
|
13303
|
-
leapG = div
|
|
13303
|
+
leapG = div(gy, 4) - div((div(gy, 100) + 1) * 3, 4) - 150;
|
|
13304
13304
|
march = 20 + leapJ - leapG;
|
|
13305
13305
|
if (withoutLeap) return { gy, march };
|
|
13306
13306
|
if (jump - n < 6)
|
|
13307
|
-
n = n - jump + div
|
|
13307
|
+
n = n - jump + div(jump + 4, 33) * 33;
|
|
13308
13308
|
leap = mod(mod(n + 1, 33) - 1, 4);
|
|
13309
13309
|
if (leap === -1) {
|
|
13310
13310
|
leap = 4;
|
|
@@ -13317,14 +13317,14 @@ function jalCal(jy, withoutLeap) {
|
|
|
13317
13317
|
}
|
|
13318
13318
|
function j2d(jy, jm, jd) {
|
|
13319
13319
|
var r = jalCal(jy, true);
|
|
13320
|
-
return g2d(r.gy, 3, r.march) + (jm - 1) * 31 - div
|
|
13320
|
+
return g2d(r.gy, 3, r.march) + (jm - 1) * 31 - div(jm, 7) * (jm - 7) + jd - 1;
|
|
13321
13321
|
}
|
|
13322
13322
|
function d2j(jdn) {
|
|
13323
13323
|
var gy = d2g(jdn).gy, jy = gy - 621, r = jalCal(jy, false), jdn1f = g2d(gy, 3, r.march), jd, jm, k;
|
|
13324
13324
|
k = jdn - jdn1f;
|
|
13325
13325
|
if (k >= 0) {
|
|
13326
13326
|
if (k <= 185) {
|
|
13327
|
-
jm = 1 + div
|
|
13327
|
+
jm = 1 + div(k, 31);
|
|
13328
13328
|
jd = mod(k, 31) + 1;
|
|
13329
13329
|
return {
|
|
13330
13330
|
jy,
|
|
@@ -13340,7 +13340,7 @@ function d2j(jdn) {
|
|
|
13340
13340
|
if (r.leap === 1)
|
|
13341
13341
|
k += 1;
|
|
13342
13342
|
}
|
|
13343
|
-
jm = 7 + div
|
|
13343
|
+
jm = 7 + div(k, 30);
|
|
13344
13344
|
jd = mod(k, 30) + 1;
|
|
13345
13345
|
return {
|
|
13346
13346
|
jy,
|
|
@@ -13349,18 +13349,18 @@ function d2j(jdn) {
|
|
|
13349
13349
|
};
|
|
13350
13350
|
}
|
|
13351
13351
|
function g2d(gy, gm, gd) {
|
|
13352
|
-
var d = div
|
|
13353
|
-
d = d - div
|
|
13352
|
+
var d = div((gy + div(gm - 8, 6) + 100100) * 1461, 4) + div(153 * mod(gm + 9, 12) + 2, 5) + gd - 34840408;
|
|
13353
|
+
d = d - div(div(gy + 100100 + div(gm - 8, 6), 100) * 3, 4) + 752;
|
|
13354
13354
|
return d;
|
|
13355
13355
|
}
|
|
13356
13356
|
function d2g(jdn) {
|
|
13357
13357
|
var j, i, gd, gm, gy;
|
|
13358
13358
|
j = 4 * jdn + 139361631;
|
|
13359
|
-
j = j + div
|
|
13360
|
-
i = div
|
|
13361
|
-
gd = div
|
|
13362
|
-
gm = mod(div
|
|
13363
|
-
gy = div
|
|
13359
|
+
j = j + div(div(4 * jdn + 183187720, 146097) * 3, 4) * 4 - 3908;
|
|
13360
|
+
i = div(mod(j, 1461), 4) * 5 + 308;
|
|
13361
|
+
gd = div(mod(i, 153), 5) + 1;
|
|
13362
|
+
gm = mod(div(i, 153), 12) + 1;
|
|
13363
|
+
gy = div(j, 1461) - 100100 + div(8 - gm, 6);
|
|
13364
13364
|
return {
|
|
13365
13365
|
gy,
|
|
13366
13366
|
gm,
|
|
@@ -13388,7 +13388,7 @@ function jalaaliToDateObject(jy, jm, jd, h2, m, s, ms) {
|
|
|
13388
13388
|
ms || 0
|
|
13389
13389
|
);
|
|
13390
13390
|
}
|
|
13391
|
-
function div
|
|
13391
|
+
function div(a, b) {
|
|
13392
13392
|
return ~~(a / b);
|
|
13393
13393
|
}
|
|
13394
13394
|
function mod(a, b) {
|
|
@@ -16661,8 +16661,8 @@ const _hoisted_1$9 = {
|
|
|
16661
16661
|
class: "page-title"
|
|
16662
16662
|
};
|
|
16663
16663
|
const _hoisted_2$5 = { class: "title-text" };
|
|
16664
|
-
const _hoisted_3$
|
|
16665
|
-
const _hoisted_4$
|
|
16664
|
+
const _hoisted_3$4 = { class: "action-buttons" };
|
|
16665
|
+
const _hoisted_4$2 = {
|
|
16666
16666
|
key: 3,
|
|
16667
16667
|
class: "selection-actions"
|
|
16668
16668
|
};
|
|
@@ -16700,7 +16700,7 @@ const _hoisted_18 = {
|
|
|
16700
16700
|
};
|
|
16701
16701
|
const _hoisted_19 = { class: "d-flex justify-space-between align-center pa-4" };
|
|
16702
16702
|
const _hoisted_20 = { class: "text-subtitle-2" };
|
|
16703
|
-
const _sfc_main$
|
|
16703
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
16704
16704
|
...{ inheritAttrs: false },
|
|
16705
16705
|
__name: "CustomDataTable",
|
|
16706
16706
|
props: {
|
|
@@ -17541,7 +17541,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
17541
17541
|
props.title ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
17542
17542
|
createElementVNode("h3", _hoisted_2$5, toDisplayString(props.title), 1)
|
|
17543
17543
|
])) : createCommentVNode("", true),
|
|
17544
|
-
createElementVNode("div", _hoisted_3$
|
|
17544
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
17545
17545
|
((_a = props.actions) == null ? void 0 : _a.includes("create")) ? (openBlock(), createBlock(VBtn, {
|
|
17546
17546
|
key: 0,
|
|
17547
17547
|
color: "green",
|
|
@@ -17574,7 +17574,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
17574
17574
|
])]),
|
|
17575
17575
|
_: 1
|
|
17576
17576
|
}, 8, ["onClick", "loading"])) : createCommentVNode("", true),
|
|
17577
|
-
props.selectable && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
17577
|
+
props.selectable && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_4$2, [
|
|
17578
17578
|
createVNode(VChip, {
|
|
17579
17579
|
color: "primary",
|
|
17580
17580
|
class: "me-2"
|
|
@@ -18282,7 +18282,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
18282
18282
|
disabled: isHeaderDisabled(header),
|
|
18283
18283
|
clearable: "",
|
|
18284
18284
|
variant: "outlined"
|
|
18285
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$
|
|
18285
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
18286
18286
|
key: 2,
|
|
18287
18287
|
modelValue: formModel.value[resolveHeaderKey(header)],
|
|
18288
18288
|
"onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
|
|
@@ -18825,7 +18825,7 @@ const VTextarea = genericComponent()({
|
|
|
18825
18825
|
}
|
|
18826
18826
|
});
|
|
18827
18827
|
const _hoisted_1$8 = { class: "description-input" };
|
|
18828
|
-
const _sfc_main$
|
|
18828
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
18829
18829
|
__name: "DescriptionInput",
|
|
18830
18830
|
props: {
|
|
18831
18831
|
modelValue: { default: "" },
|
|
@@ -18947,7 +18947,7 @@ ${newLineNumber} - `;
|
|
|
18947
18947
|
};
|
|
18948
18948
|
}
|
|
18949
18949
|
});
|
|
18950
|
-
const DescriptionInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
18950
|
+
const DescriptionInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-e8b64ecb"]]);
|
|
18951
18951
|
var mdiAlertCircle = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
18952
18952
|
var mdiArrowRight = "M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";
|
|
18953
18953
|
var mdiCheckCircle = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z";
|
|
@@ -18977,7 +18977,7 @@ const icons = {
|
|
|
18977
18977
|
cog: mdiCog
|
|
18978
18978
|
};
|
|
18979
18979
|
const _hoisted_1$7 = { class: "download-title" };
|
|
18980
|
-
const _sfc_main$
|
|
18980
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
18981
18981
|
...{
|
|
18982
18982
|
inheritAttrs: false
|
|
18983
18983
|
},
|
|
@@ -19095,14 +19095,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
|
19095
19095
|
};
|
|
19096
19096
|
}
|
|
19097
19097
|
});
|
|
19098
|
-
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19098
|
+
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-0a911831"]]);
|
|
19099
19099
|
const _hoisted_1$6 = {
|
|
19100
19100
|
key: 0,
|
|
19101
19101
|
class: "pdf-viewer-header"
|
|
19102
19102
|
};
|
|
19103
19103
|
const _hoisted_2$4 = { class: "pdf-viewer-title" };
|
|
19104
|
-
const _hoisted_3$
|
|
19105
|
-
const _hoisted_4$
|
|
19104
|
+
const _hoisted_3$3 = { class: "pdf-viewer-controls" };
|
|
19105
|
+
const _hoisted_4$1 = {
|
|
19106
19106
|
key: 0,
|
|
19107
19107
|
class: "zoom-controls"
|
|
19108
19108
|
};
|
|
@@ -19139,7 +19139,7 @@ const _hoisted_16 = {
|
|
|
19139
19139
|
key: 0,
|
|
19140
19140
|
class: "file-info"
|
|
19141
19141
|
};
|
|
19142
|
-
const _sfc_main$
|
|
19142
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
19143
19143
|
__name: "PdfViewer",
|
|
19144
19144
|
props: {
|
|
19145
19145
|
src: {},
|
|
@@ -19351,8 +19351,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
19351
19351
|
createElementVNode("div", _hoisted_2$4, [
|
|
19352
19352
|
createElementVNode("h3", null, toDisplayString(__props.title || "PDF Viewer"), 1)
|
|
19353
19353
|
]),
|
|
19354
|
-
createElementVNode("div", _hoisted_3$
|
|
19355
|
-
__props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
19354
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
19355
|
+
__props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
19356
19356
|
createVNode(VBtn, {
|
|
19357
19357
|
size: "small",
|
|
19358
19358
|
variant: "text",
|
|
@@ -19566,8 +19566,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
19566
19566
|
};
|
|
19567
19567
|
}
|
|
19568
19568
|
});
|
|
19569
|
-
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19570
|
-
const _sfc_main$
|
|
19569
|
+
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-f3e9c767"]]);
|
|
19570
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
19571
19571
|
__name: "UiChildCard",
|
|
19572
19572
|
props: {
|
|
19573
19573
|
title: String
|
|
@@ -19602,7 +19602,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
|
19602
19602
|
}
|
|
19603
19603
|
});
|
|
19604
19604
|
const _hoisted_1$5 = { class: "d-sm-flex align-center justify-space-between" };
|
|
19605
|
-
const _sfc_main$
|
|
19605
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
19606
19606
|
__name: "UiParentCard",
|
|
19607
19607
|
props: {
|
|
19608
19608
|
title: String
|
|
@@ -19639,7 +19639,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
|
19639
19639
|
};
|
|
19640
19640
|
}
|
|
19641
19641
|
});
|
|
19642
|
-
const _sfc_main$
|
|
19642
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
19643
19643
|
__name: "VPriceTextField",
|
|
19644
19644
|
props: {
|
|
19645
19645
|
modelValue: {},
|
|
@@ -19745,8 +19745,8 @@ const _hoisted_1$4 = {
|
|
|
19745
19745
|
dir: "rtl"
|
|
19746
19746
|
};
|
|
19747
19747
|
const _hoisted_2$3 = { class: "app-stepper-header-card" };
|
|
19748
|
-
const _hoisted_3$
|
|
19749
|
-
const _sfc_main$
|
|
19748
|
+
const _hoisted_3$2 = { class: "app-stepper-title" };
|
|
19749
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
19750
19750
|
__name: "AppStepper",
|
|
19751
19751
|
props: {
|
|
19752
19752
|
steps: {
|
|
@@ -19840,7 +19840,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
19840
19840
|
}))
|
|
19841
19841
|
], true)
|
|
19842
19842
|
], 2),
|
|
19843
|
-
createElementVNode("span", _hoisted_3$
|
|
19843
|
+
createElementVNode("span", _hoisted_3$2, toDisplayString(step.title), 1),
|
|
19844
19844
|
index2 < __props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
19845
19845
|
key: 0,
|
|
19846
19846
|
class: normalizeClass([
|
|
@@ -19865,7 +19865,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
19865
19865
|
};
|
|
19866
19866
|
}
|
|
19867
19867
|
});
|
|
19868
|
-
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19868
|
+
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-d5178633"]]);
|
|
19869
19869
|
var lottie = { exports: {} };
|
|
19870
19870
|
(function(module, exports) {
|
|
19871
19871
|
typeof navigator !== "undefined" && function(global2, factory) {
|
|
@@ -21090,7 +21090,7 @@ var lottie = { exports: {} };
|
|
|
21090
21090
|
}
|
|
21091
21091
|
return null;
|
|
21092
21092
|
}
|
|
21093
|
-
function
|
|
21093
|
+
function destroy() {
|
|
21094
21094
|
this.imagesLoadedCb = null;
|
|
21095
21095
|
this.images.length = 0;
|
|
21096
21096
|
}
|
|
@@ -21128,7 +21128,7 @@ var lottie = { exports: {} };
|
|
|
21128
21128
|
setPath,
|
|
21129
21129
|
loadedImages,
|
|
21130
21130
|
loadedFootages,
|
|
21131
|
-
destroy
|
|
21131
|
+
destroy,
|
|
21132
21132
|
getAsset,
|
|
21133
21133
|
createImgData,
|
|
21134
21134
|
createImageData,
|
|
@@ -22070,7 +22070,7 @@ var lottie = { exports: {} };
|
|
|
22070
22070
|
registeredAnimations[i].animation.togglePause(animation);
|
|
22071
22071
|
}
|
|
22072
22072
|
}
|
|
22073
|
-
function
|
|
22073
|
+
function destroy(animation) {
|
|
22074
22074
|
var i;
|
|
22075
22075
|
for (i = len - 1; i >= 0; i -= 1) {
|
|
22076
22076
|
registeredAnimations[i].animation.destroy(animation);
|
|
@@ -22150,7 +22150,7 @@ var lottie = { exports: {} };
|
|
|
22150
22150
|
moduleOb.searchAnimations = searchAnimations2;
|
|
22151
22151
|
moduleOb.resize = resize;
|
|
22152
22152
|
moduleOb.goToAndStop = goToAndStop;
|
|
22153
|
-
moduleOb.destroy =
|
|
22153
|
+
moduleOb.destroy = destroy;
|
|
22154
22154
|
moduleOb.freeze = freeze;
|
|
22155
22155
|
moduleOb.unfreeze = unfreeze;
|
|
22156
22156
|
moduleOb.setVolume = setVolume;
|
|
@@ -22185,14 +22185,14 @@ var lottie = { exports: {} };
|
|
|
22185
22185
|
function B(aA1, aA2) {
|
|
22186
22186
|
return 3 * aA2 - 6 * aA1;
|
|
22187
22187
|
}
|
|
22188
|
-
function
|
|
22188
|
+
function C(aA1) {
|
|
22189
22189
|
return 3 * aA1;
|
|
22190
22190
|
}
|
|
22191
22191
|
function calcBezier(aT, aA1, aA2) {
|
|
22192
|
-
return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT +
|
|
22192
|
+
return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
|
|
22193
22193
|
}
|
|
22194
22194
|
function getSlope(aT, aA1, aA2) {
|
|
22195
|
-
return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT +
|
|
22195
|
+
return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1);
|
|
22196
22196
|
}
|
|
22197
22197
|
function binarySubdivide(aX, aA, aB, mX1, mX2) {
|
|
22198
22198
|
var currentX, currentT, i = 0;
|
|
@@ -22223,7 +22223,7 @@ var lottie = { exports: {} };
|
|
|
22223
22223
|
this.get = this.get.bind(this);
|
|
22224
22224
|
}
|
|
22225
22225
|
BezierEasing.prototype = {
|
|
22226
|
-
get: function
|
|
22226
|
+
get: function get(x) {
|
|
22227
22227
|
var mX1 = this._p[0], mY1 = this._p[1], mX2 = this._p[2], mY2 = this._p[3];
|
|
22228
22228
|
if (!this._precomputed) this._precompute();
|
|
22229
22229
|
if (mX1 === mY1 && mX2 === mY2) return x;
|
|
@@ -27370,7 +27370,7 @@ var lottie = { exports: {} };
|
|
|
27370
27370
|
this.prepareProperties(num, this.isInRange);
|
|
27371
27371
|
this.checkTransparency();
|
|
27372
27372
|
},
|
|
27373
|
-
destroy: function
|
|
27373
|
+
destroy: function destroy() {
|
|
27374
27374
|
this.innerElem = null;
|
|
27375
27375
|
this.destroyBaseElement();
|
|
27376
27376
|
}
|
|
@@ -30635,7 +30635,7 @@ var lottie = { exports: {} };
|
|
|
30635
30635
|
this._isFirstFrame = false;
|
|
30636
30636
|
}
|
|
30637
30637
|
},
|
|
30638
|
-
destroy: function
|
|
30638
|
+
destroy: function destroy() {
|
|
30639
30639
|
this.canvasContext = null;
|
|
30640
30640
|
this.data = null;
|
|
30641
30641
|
this.globalData = null;
|
|
@@ -31981,7 +31981,7 @@ var lottie = { exports: {} };
|
|
|
31981
31981
|
this._isFirstFrame = false;
|
|
31982
31982
|
}
|
|
31983
31983
|
},
|
|
31984
|
-
destroy: function
|
|
31984
|
+
destroy: function destroy() {
|
|
31985
31985
|
this.layerElement = null;
|
|
31986
31986
|
this.transformedElement = null;
|
|
31987
31987
|
if (this.matteElement) {
|
|
@@ -33557,7 +33557,7 @@ var lottie = { exports: {} };
|
|
|
33557
33557
|
var thisProperty = property;
|
|
33558
33558
|
thisProperty.valueAtTime = thisProperty.getValueAtTime;
|
|
33559
33559
|
Object.defineProperty(thisProperty, "value", {
|
|
33560
|
-
get: function
|
|
33560
|
+
get: function get() {
|
|
33561
33561
|
return thisProperty.v;
|
|
33562
33562
|
}
|
|
33563
33563
|
});
|
|
@@ -33898,7 +33898,7 @@ var lottie = { exports: {} };
|
|
|
33898
33898
|
this._data = data2;
|
|
33899
33899
|
}
|
|
33900
33900
|
Object.defineProperty(MaskInterface.prototype, "maskPath", {
|
|
33901
|
-
get: function
|
|
33901
|
+
get: function get() {
|
|
33902
33902
|
if (this._mask.prop.k) {
|
|
33903
33903
|
this._mask.prop.getValue();
|
|
33904
33904
|
}
|
|
@@ -33906,7 +33906,7 @@ var lottie = { exports: {} };
|
|
|
33906
33906
|
}
|
|
33907
33907
|
});
|
|
33908
33908
|
Object.defineProperty(MaskInterface.prototype, "maskOpacity", {
|
|
33909
|
-
get: function
|
|
33909
|
+
get: function get() {
|
|
33910
33910
|
if (this._mask.op.k) {
|
|
33911
33911
|
this._mask.op.getValue();
|
|
33912
33912
|
}
|
|
@@ -33947,7 +33947,7 @@ var lottie = { exports: {} };
|
|
|
33947
33947
|
};
|
|
33948
33948
|
function completeProperty(expressionValue, property2, type) {
|
|
33949
33949
|
Object.defineProperty(expressionValue, "velocity", {
|
|
33950
|
-
get: function
|
|
33950
|
+
get: function get() {
|
|
33951
33951
|
return property2.getVelocityAtTime(property2.comp.currentFrame);
|
|
33952
33952
|
}
|
|
33953
33953
|
});
|
|
@@ -34103,7 +34103,7 @@ var lottie = { exports: {} };
|
|
|
34103
34103
|
}
|
|
34104
34104
|
}
|
|
34105
34105
|
Object.defineProperty(_thisFunction, "position", {
|
|
34106
|
-
get: function
|
|
34106
|
+
get: function get() {
|
|
34107
34107
|
if (transform2.p) {
|
|
34108
34108
|
return _transformFactory();
|
|
34109
34109
|
}
|
|
@@ -34255,12 +34255,12 @@ var lottie = { exports: {} };
|
|
|
34255
34255
|
var anchorPointDescriptor = getDescriptor(transformInterface, "anchorPoint");
|
|
34256
34256
|
Object.defineProperties(_thisLayerFunction, {
|
|
34257
34257
|
hasParent: {
|
|
34258
|
-
get: function
|
|
34258
|
+
get: function get() {
|
|
34259
34259
|
return elem2.hierarchy.length;
|
|
34260
34260
|
}
|
|
34261
34261
|
},
|
|
34262
34262
|
parent: {
|
|
34263
|
-
get: function
|
|
34263
|
+
get: function get() {
|
|
34264
34264
|
return elem2.hierarchy[0].layerInterface;
|
|
34265
34265
|
}
|
|
34266
34266
|
},
|
|
@@ -34271,12 +34271,12 @@ var lottie = { exports: {} };
|
|
|
34271
34271
|
anchorPoint: anchorPointDescriptor,
|
|
34272
34272
|
anchor_point: anchorPointDescriptor,
|
|
34273
34273
|
transform: {
|
|
34274
|
-
get: function
|
|
34274
|
+
get: function get() {
|
|
34275
34275
|
return transformInterface;
|
|
34276
34276
|
}
|
|
34277
34277
|
},
|
|
34278
34278
|
active: {
|
|
34279
|
-
get: function
|
|
34279
|
+
get: function get() {
|
|
34280
34280
|
return elem2.isInRange;
|
|
34281
34281
|
}
|
|
34282
34282
|
}
|
|
@@ -34346,7 +34346,7 @@ var lottie = { exports: {} };
|
|
|
34346
34346
|
return null;
|
|
34347
34347
|
};
|
|
34348
34348
|
Object.defineProperty(groupInterface, "numProperties", {
|
|
34349
|
-
get: function
|
|
34349
|
+
get: function get() {
|
|
34350
34350
|
return effects.length;
|
|
34351
34351
|
}
|
|
34352
34352
|
});
|
|
@@ -34383,14 +34383,14 @@ var lottie = { exports: {} };
|
|
|
34383
34383
|
}
|
|
34384
34384
|
if (data2.mn === "ADBE Color Control") {
|
|
34385
34385
|
Object.defineProperty(groupInterface, "color", {
|
|
34386
|
-
get: function
|
|
34386
|
+
get: function get() {
|
|
34387
34387
|
return effectElements[0]();
|
|
34388
34388
|
}
|
|
34389
34389
|
});
|
|
34390
34390
|
}
|
|
34391
34391
|
Object.defineProperties(groupInterface, {
|
|
34392
34392
|
numProperties: {
|
|
34393
|
-
get: function
|
|
34393
|
+
get: function get() {
|
|
34394
34394
|
return data2.np;
|
|
34395
34395
|
}
|
|
34396
34396
|
},
|
|
@@ -34433,7 +34433,7 @@ var lottie = { exports: {} };
|
|
|
34433
34433
|
prop.setGroupProperty(PropertyInterface("Path", _propertyGroup));
|
|
34434
34434
|
Object.defineProperties(interfaceFunction, {
|
|
34435
34435
|
path: {
|
|
34436
|
-
get: function
|
|
34436
|
+
get: function get() {
|
|
34437
34437
|
if (prop.k) {
|
|
34438
34438
|
prop.getValue();
|
|
34439
34439
|
}
|
|
@@ -34441,7 +34441,7 @@ var lottie = { exports: {} };
|
|
|
34441
34441
|
}
|
|
34442
34442
|
},
|
|
34443
34443
|
shape: {
|
|
34444
|
-
get: function
|
|
34444
|
+
get: function get() {
|
|
34445
34445
|
if (prop.k) {
|
|
34446
34446
|
prop.getValue();
|
|
34447
34447
|
}
|
|
@@ -34544,7 +34544,7 @@ var lottie = { exports: {} };
|
|
|
34544
34544
|
interfaceFunction.content = content2;
|
|
34545
34545
|
interfaceFunction.transform = transformInterface;
|
|
34546
34546
|
Object.defineProperty(interfaceFunction, "_name", {
|
|
34547
|
-
get: function
|
|
34547
|
+
get: function get() {
|
|
34548
34548
|
return shape.nm;
|
|
34549
34549
|
}
|
|
34550
34550
|
});
|
|
@@ -34606,7 +34606,7 @@ var lottie = { exports: {} };
|
|
|
34606
34606
|
get: ExpressionPropertyInterface(view.o)
|
|
34607
34607
|
},
|
|
34608
34608
|
type: {
|
|
34609
|
-
get: function
|
|
34609
|
+
get: function get() {
|
|
34610
34610
|
return "a";
|
|
34611
34611
|
}
|
|
34612
34612
|
},
|
|
@@ -34666,7 +34666,7 @@ var lottie = { exports: {} };
|
|
|
34666
34666
|
get: ExpressionPropertyInterface(view.w)
|
|
34667
34667
|
},
|
|
34668
34668
|
dash: {
|
|
34669
|
-
get: function
|
|
34669
|
+
get: function get() {
|
|
34670
34670
|
return dashOb;
|
|
34671
34671
|
}
|
|
34672
34672
|
},
|
|
@@ -35010,14 +35010,14 @@ var lottie = { exports: {} };
|
|
|
35010
35010
|
}
|
|
35011
35011
|
}
|
|
35012
35012
|
Object.defineProperty(_thisLayerFunction, "sourceText", {
|
|
35013
|
-
get: function
|
|
35013
|
+
get: function get() {
|
|
35014
35014
|
elem2.textProperty.getValue();
|
|
35015
35015
|
var stringValue = elem2.textProperty.currentData.t;
|
|
35016
35016
|
if (!_sourceText || stringValue !== _sourceText.value) {
|
|
35017
35017
|
_sourceText = new String(stringValue);
|
|
35018
35018
|
_sourceText.value = stringValue || new String(stringValue);
|
|
35019
35019
|
Object.defineProperty(_sourceText, "style", {
|
|
35020
|
-
get: function
|
|
35020
|
+
get: function get2() {
|
|
35021
35021
|
return {
|
|
35022
35022
|
fillColor: elem2.textProperty.currentData.fc
|
|
35023
35023
|
};
|
|
@@ -36281,7 +36281,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
36281
36281
|
}
|
|
36282
36282
|
return target;
|
|
36283
36283
|
};
|
|
36284
|
-
const _sfc_main$
|
|
36284
|
+
const _sfc_main$7 = defineComponent$1({
|
|
36285
36285
|
props: {
|
|
36286
36286
|
animationData: {
|
|
36287
36287
|
type: Object,
|
|
@@ -36532,7 +36532,7 @@ const _sfc_main$4 = defineComponent$1({
|
|
|
36532
36532
|
lottieAnimation.stop();
|
|
36533
36533
|
}
|
|
36534
36534
|
};
|
|
36535
|
-
const
|
|
36535
|
+
const destroy = () => {
|
|
36536
36536
|
if (lottieAnimation) {
|
|
36537
36537
|
lottieAnimation.destroy();
|
|
36538
36538
|
}
|
|
@@ -36592,7 +36592,7 @@ const _sfc_main$4 = defineComponent$1({
|
|
|
36592
36592
|
play,
|
|
36593
36593
|
pause,
|
|
36594
36594
|
stop,
|
|
36595
|
-
destroy
|
|
36595
|
+
destroy,
|
|
36596
36596
|
setSpeed,
|
|
36597
36597
|
setDirection,
|
|
36598
36598
|
goToAndStop,
|
|
@@ -36613,7 +36613,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36613
36613
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hoverEnded && _ctx.hoverEnded(...args))
|
|
36614
36614
|
}, null, 36);
|
|
36615
36615
|
}
|
|
36616
|
-
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36616
|
+
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
|
|
36617
36617
|
const useCustomizerStore = defineStore({
|
|
36618
36618
|
id: "customizer",
|
|
36619
36619
|
state: () => ({
|
|
@@ -36672,8 +36672,8 @@ const _hoisted_1$3 = {
|
|
|
36672
36672
|
class: "loading-overlay"
|
|
36673
36673
|
};
|
|
36674
36674
|
const _hoisted_2$2 = { class: "loading-wrapper" };
|
|
36675
|
-
const _hoisted_3$
|
|
36676
|
-
const _sfc_main$
|
|
36675
|
+
const _hoisted_3$1 = { key: 0 };
|
|
36676
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
36677
36677
|
__name: "Loading",
|
|
36678
36678
|
setup(__props) {
|
|
36679
36679
|
const customizer = useCustomizerStore();
|
|
@@ -36690,7 +36690,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
36690
36690
|
}),
|
|
36691
36691
|
createVNode(Transition, { name: "fade-slide" }, {
|
|
36692
36692
|
default: withCtx(() => [
|
|
36693
|
-
unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3$
|
|
36693
|
+
unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3$1, "لطفا منتظر بمانید")) : createCommentVNode("", true)
|
|
36694
36694
|
]),
|
|
36695
36695
|
_: 1
|
|
36696
36696
|
})
|
|
@@ -36702,1096 +36702,159 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
36702
36702
|
};
|
|
36703
36703
|
}
|
|
36704
36704
|
});
|
|
36705
|
-
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
36706
|
-
|
|
36707
|
-
|
|
36708
|
-
|
|
36709
|
-
|
|
36710
|
-
|
|
36711
|
-
function get(element) {
|
|
36712
|
-
return getComputedStyle(element);
|
|
36713
|
-
}
|
|
36714
|
-
function set(element, obj) {
|
|
36715
|
-
for (var key2 in obj) {
|
|
36716
|
-
var val2 = obj[key2];
|
|
36717
|
-
if (typeof val2 === "number") {
|
|
36718
|
-
val2 = val2 + "px";
|
|
36719
|
-
}
|
|
36720
|
-
element.style[key2] = val2;
|
|
36721
|
-
}
|
|
36722
|
-
return element;
|
|
36723
|
-
}
|
|
36724
|
-
function div(className) {
|
|
36725
|
-
var div2 = document.createElement("div");
|
|
36726
|
-
div2.className = className;
|
|
36727
|
-
return div2;
|
|
36728
|
-
}
|
|
36729
|
-
var elMatches = typeof Element !== "undefined" && (Element.prototype.matches || Element.prototype.webkitMatchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector);
|
|
36730
|
-
function matches(element, query) {
|
|
36731
|
-
if (!elMatches) {
|
|
36732
|
-
throw new Error("No element matching method supported");
|
|
36733
|
-
}
|
|
36734
|
-
return elMatches.call(element, query);
|
|
36735
|
-
}
|
|
36736
|
-
function remove(element) {
|
|
36737
|
-
if (element.remove) {
|
|
36738
|
-
element.remove();
|
|
36739
|
-
} else {
|
|
36740
|
-
if (element.parentNode) {
|
|
36741
|
-
element.parentNode.removeChild(element);
|
|
36742
|
-
}
|
|
36743
|
-
}
|
|
36744
|
-
}
|
|
36745
|
-
function queryChildren(element, selector) {
|
|
36746
|
-
return Array.prototype.filter.call(
|
|
36747
|
-
element.children,
|
|
36748
|
-
function(child) {
|
|
36749
|
-
return matches(child, selector);
|
|
36750
|
-
}
|
|
36751
|
-
);
|
|
36752
|
-
}
|
|
36753
|
-
var cls = {
|
|
36754
|
-
main: "ps",
|
|
36755
|
-
rtl: "ps__rtl",
|
|
36756
|
-
element: {
|
|
36757
|
-
thumb: function(x) {
|
|
36758
|
-
return "ps__thumb-" + x;
|
|
36759
|
-
},
|
|
36760
|
-
rail: function(x) {
|
|
36761
|
-
return "ps__rail-" + x;
|
|
36762
|
-
},
|
|
36763
|
-
consuming: "ps__child--consume"
|
|
36705
|
+
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-9b533ee4"]]);
|
|
36706
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
36707
|
+
__name: "NavItem",
|
|
36708
|
+
props: {
|
|
36709
|
+
item: {},
|
|
36710
|
+
level: {}
|
|
36764
36711
|
},
|
|
36765
|
-
|
|
36766
|
-
|
|
36767
|
-
|
|
36768
|
-
|
|
36769
|
-
|
|
36770
|
-
|
|
36771
|
-
|
|
36772
|
-
|
|
36773
|
-
|
|
36774
|
-
|
|
36775
|
-
|
|
36776
|
-
|
|
36777
|
-
|
|
36778
|
-
|
|
36779
|
-
|
|
36780
|
-
|
|
36781
|
-
|
|
36782
|
-
|
|
36783
|
-
|
|
36784
|
-
|
|
36785
|
-
|
|
36786
|
-
|
|
36787
|
-
|
|
36788
|
-
|
|
36789
|
-
|
|
36790
|
-
|
|
36791
|
-
|
|
36792
|
-
|
|
36793
|
-
|
|
36794
|
-
|
|
36795
|
-
|
|
36796
|
-
|
|
36797
|
-
|
|
36798
|
-
|
|
36799
|
-
|
|
36800
|
-
|
|
36801
|
-
|
|
36802
|
-
|
|
36803
|
-
|
|
36804
|
-
|
|
36805
|
-
|
|
36806
|
-
|
|
36807
|
-
|
|
36808
|
-
|
|
36809
|
-
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
|
|
36813
|
-
|
|
36814
|
-
|
|
36815
|
-
|
|
36816
|
-
|
|
36817
|
-
|
|
36818
|
-
|
|
36819
|
-
|
|
36820
|
-
|
|
36821
|
-
|
|
36822
|
-
|
|
36823
|
-
|
|
36824
|
-
|
|
36825
|
-
|
|
36826
|
-
var this$1$1 = this;
|
|
36827
|
-
return Object.keys(this.handlers).every(
|
|
36828
|
-
function(key2) {
|
|
36829
|
-
return this$1$1.handlers[key2].length === 0;
|
|
36830
|
-
}
|
|
36831
|
-
);
|
|
36832
|
-
};
|
|
36833
|
-
Object.defineProperties(EventElement.prototype, prototypeAccessors);
|
|
36834
|
-
var EventManager = function EventManager2() {
|
|
36835
|
-
this.eventElements = [];
|
|
36836
|
-
};
|
|
36837
|
-
EventManager.prototype.eventElement = function eventElement(element) {
|
|
36838
|
-
var ee = this.eventElements.filter(function(ee2) {
|
|
36839
|
-
return ee2.element === element;
|
|
36840
|
-
})[0];
|
|
36841
|
-
if (!ee) {
|
|
36842
|
-
ee = new EventElement(element);
|
|
36843
|
-
this.eventElements.push(ee);
|
|
36844
|
-
}
|
|
36845
|
-
return ee;
|
|
36846
|
-
};
|
|
36847
|
-
EventManager.prototype.bind = function bind2(element, eventName2, handler) {
|
|
36848
|
-
this.eventElement(element).bind(eventName2, handler);
|
|
36849
|
-
};
|
|
36850
|
-
EventManager.prototype.unbind = function unbind2(element, eventName2, handler) {
|
|
36851
|
-
var ee = this.eventElement(element);
|
|
36852
|
-
ee.unbind(eventName2, handler);
|
|
36853
|
-
if (ee.isEmpty) {
|
|
36854
|
-
this.eventElements.splice(this.eventElements.indexOf(ee), 1);
|
|
36855
|
-
}
|
|
36856
|
-
};
|
|
36857
|
-
EventManager.prototype.unbindAll = function unbindAll2() {
|
|
36858
|
-
this.eventElements.forEach(function(e) {
|
|
36859
|
-
return e.unbindAll();
|
|
36860
|
-
});
|
|
36861
|
-
this.eventElements = [];
|
|
36862
|
-
};
|
|
36863
|
-
EventManager.prototype.once = function once(element, eventName2, handler) {
|
|
36864
|
-
var ee = this.eventElement(element);
|
|
36865
|
-
var onceHandler = function(evt) {
|
|
36866
|
-
ee.unbind(eventName2, onceHandler);
|
|
36867
|
-
handler(evt);
|
|
36868
|
-
};
|
|
36869
|
-
ee.bind(eventName2, onceHandler);
|
|
36870
|
-
};
|
|
36871
|
-
function createEvent(name2) {
|
|
36872
|
-
if (typeof window.CustomEvent === "function") {
|
|
36873
|
-
return new CustomEvent(name2);
|
|
36874
|
-
}
|
|
36875
|
-
var evt = document.createEvent("CustomEvent");
|
|
36876
|
-
evt.initCustomEvent(name2, false, false, void 0);
|
|
36877
|
-
return evt;
|
|
36878
|
-
}
|
|
36879
|
-
function processScrollDiff(i, axis, diff, useScrollingClass, forceFireReachEvent) {
|
|
36880
|
-
if (useScrollingClass === void 0) useScrollingClass = true;
|
|
36881
|
-
if (forceFireReachEvent === void 0) forceFireReachEvent = false;
|
|
36882
|
-
var fields;
|
|
36883
|
-
if (axis === "top") {
|
|
36884
|
-
fields = ["contentHeight", "containerHeight", "scrollTop", "y", "up", "down"];
|
|
36885
|
-
} else if (axis === "left") {
|
|
36886
|
-
fields = ["contentWidth", "containerWidth", "scrollLeft", "x", "left", "right"];
|
|
36887
|
-
} else {
|
|
36888
|
-
throw new Error("A proper axis should be provided");
|
|
36889
|
-
}
|
|
36890
|
-
processScrollDiff$1(i, diff, fields, useScrollingClass, forceFireReachEvent);
|
|
36891
|
-
}
|
|
36892
|
-
function processScrollDiff$1(i, diff, ref2, useScrollingClass, forceFireReachEvent) {
|
|
36893
|
-
var contentHeight = ref2[0];
|
|
36894
|
-
var containerHeight = ref2[1];
|
|
36895
|
-
var scrollTop = ref2[2];
|
|
36896
|
-
var y = ref2[3];
|
|
36897
|
-
var up = ref2[4];
|
|
36898
|
-
var down = ref2[5];
|
|
36899
|
-
if (useScrollingClass === void 0) useScrollingClass = true;
|
|
36900
|
-
if (forceFireReachEvent === void 0) forceFireReachEvent = false;
|
|
36901
|
-
var element = i.element;
|
|
36902
|
-
i.reach[y] = null;
|
|
36903
|
-
if (element[scrollTop] < 1) {
|
|
36904
|
-
i.reach[y] = "start";
|
|
36905
|
-
}
|
|
36906
|
-
if (element[scrollTop] > i[contentHeight] - i[containerHeight] - 1) {
|
|
36907
|
-
i.reach[y] = "end";
|
|
36908
|
-
}
|
|
36909
|
-
if (diff) {
|
|
36910
|
-
element.dispatchEvent(createEvent("ps-scroll-" + y));
|
|
36911
|
-
if (diff < 0) {
|
|
36912
|
-
element.dispatchEvent(createEvent("ps-scroll-" + up));
|
|
36913
|
-
} else if (diff > 0) {
|
|
36914
|
-
element.dispatchEvent(createEvent("ps-scroll-" + down));
|
|
36915
|
-
}
|
|
36916
|
-
if (useScrollingClass) {
|
|
36917
|
-
setScrollingClassInstantly(i, y);
|
|
36918
|
-
}
|
|
36919
|
-
}
|
|
36920
|
-
if (i.reach[y] && (diff || forceFireReachEvent)) {
|
|
36921
|
-
element.dispatchEvent(createEvent("ps-" + y + "-reach-" + i.reach[y]));
|
|
36922
|
-
}
|
|
36923
|
-
}
|
|
36924
|
-
function toInt(x) {
|
|
36925
|
-
return parseInt(x, 10) || 0;
|
|
36926
|
-
}
|
|
36927
|
-
function isEditable(el) {
|
|
36928
|
-
return matches(el, "input,[contenteditable]") || matches(el, "select,[contenteditable]") || matches(el, "textarea,[contenteditable]") || matches(el, "button,[contenteditable]");
|
|
36929
|
-
}
|
|
36930
|
-
function outerWidth(element) {
|
|
36931
|
-
var styles = get(element);
|
|
36932
|
-
return toInt(styles.width) + toInt(styles.paddingLeft) + toInt(styles.paddingRight) + toInt(styles.borderLeftWidth) + toInt(styles.borderRightWidth);
|
|
36933
|
-
}
|
|
36934
|
-
var env = {
|
|
36935
|
-
isWebKit: typeof document !== "undefined" && "WebkitAppearance" in document.documentElement.style,
|
|
36936
|
-
supportsTouch: typeof window !== "undefined" && ("ontouchstart" in window || "maxTouchPoints" in window.navigator && window.navigator.maxTouchPoints > 0 || window.DocumentTouch && document instanceof window.DocumentTouch),
|
|
36937
|
-
supportsIePointer: typeof navigator !== "undefined" && navigator.msMaxTouchPoints,
|
|
36938
|
-
isChrome: typeof navigator !== "undefined" && /Chrome/i.test(navigator && navigator.userAgent)
|
|
36939
|
-
};
|
|
36940
|
-
function updateGeometry(i) {
|
|
36941
|
-
var element = i.element;
|
|
36942
|
-
var roundedScrollTop = Math.floor(element.scrollTop);
|
|
36943
|
-
var rect = element.getBoundingClientRect();
|
|
36944
|
-
i.containerWidth = Math.floor(rect.width);
|
|
36945
|
-
i.containerHeight = Math.floor(rect.height);
|
|
36946
|
-
i.contentWidth = element.scrollWidth;
|
|
36947
|
-
i.contentHeight = element.scrollHeight;
|
|
36948
|
-
if (!element.contains(i.scrollbarXRail)) {
|
|
36949
|
-
queryChildren(element, cls.element.rail("x")).forEach(function(el) {
|
|
36950
|
-
return remove(el);
|
|
36951
|
-
});
|
|
36952
|
-
element.appendChild(i.scrollbarXRail);
|
|
36953
|
-
}
|
|
36954
|
-
if (!element.contains(i.scrollbarYRail)) {
|
|
36955
|
-
queryChildren(element, cls.element.rail("y")).forEach(function(el) {
|
|
36956
|
-
return remove(el);
|
|
36957
|
-
});
|
|
36958
|
-
element.appendChild(i.scrollbarYRail);
|
|
36959
|
-
}
|
|
36960
|
-
if (!i.settings.suppressScrollX && i.containerWidth + i.settings.scrollXMarginOffset < i.contentWidth) {
|
|
36961
|
-
i.scrollbarXActive = true;
|
|
36962
|
-
i.railXWidth = i.containerWidth - i.railXMarginWidth;
|
|
36963
|
-
i.railXRatio = i.containerWidth / i.railXWidth;
|
|
36964
|
-
i.scrollbarXWidth = getThumbSize(i, toInt(i.railXWidth * i.containerWidth / i.contentWidth));
|
|
36965
|
-
i.scrollbarXLeft = toInt(
|
|
36966
|
-
(i.negativeScrollAdjustment + element.scrollLeft) * (i.railXWidth - i.scrollbarXWidth) / (i.contentWidth - i.containerWidth)
|
|
36967
|
-
);
|
|
36968
|
-
} else {
|
|
36969
|
-
i.scrollbarXActive = false;
|
|
36970
|
-
}
|
|
36971
|
-
if (!i.settings.suppressScrollY && i.containerHeight + i.settings.scrollYMarginOffset < i.contentHeight) {
|
|
36972
|
-
i.scrollbarYActive = true;
|
|
36973
|
-
i.railYHeight = i.containerHeight - i.railYMarginHeight;
|
|
36974
|
-
i.railYRatio = i.containerHeight / i.railYHeight;
|
|
36975
|
-
i.scrollbarYHeight = getThumbSize(
|
|
36976
|
-
i,
|
|
36977
|
-
toInt(i.railYHeight * i.containerHeight / i.contentHeight)
|
|
36978
|
-
);
|
|
36979
|
-
i.scrollbarYTop = toInt(
|
|
36980
|
-
roundedScrollTop * (i.railYHeight - i.scrollbarYHeight) / (i.contentHeight - i.containerHeight)
|
|
36981
|
-
);
|
|
36982
|
-
} else {
|
|
36983
|
-
i.scrollbarYActive = false;
|
|
36984
|
-
}
|
|
36985
|
-
if (i.scrollbarXLeft >= i.railXWidth - i.scrollbarXWidth) {
|
|
36986
|
-
i.scrollbarXLeft = i.railXWidth - i.scrollbarXWidth;
|
|
36987
|
-
}
|
|
36988
|
-
if (i.scrollbarYTop >= i.railYHeight - i.scrollbarYHeight) {
|
|
36989
|
-
i.scrollbarYTop = i.railYHeight - i.scrollbarYHeight;
|
|
36990
|
-
}
|
|
36991
|
-
updateCss(element, i);
|
|
36992
|
-
if (i.scrollbarXActive) {
|
|
36993
|
-
element.classList.add(cls.state.active("x"));
|
|
36994
|
-
} else {
|
|
36995
|
-
element.classList.remove(cls.state.active("x"));
|
|
36996
|
-
i.scrollbarXWidth = 0;
|
|
36997
|
-
i.scrollbarXLeft = 0;
|
|
36998
|
-
element.scrollLeft = i.isRtl === true ? i.contentWidth : 0;
|
|
36999
|
-
}
|
|
37000
|
-
if (i.scrollbarYActive) {
|
|
37001
|
-
element.classList.add(cls.state.active("y"));
|
|
37002
|
-
} else {
|
|
37003
|
-
element.classList.remove(cls.state.active("y"));
|
|
37004
|
-
i.scrollbarYHeight = 0;
|
|
37005
|
-
i.scrollbarYTop = 0;
|
|
37006
|
-
element.scrollTop = 0;
|
|
37007
|
-
}
|
|
37008
|
-
}
|
|
37009
|
-
function getThumbSize(i, thumbSize) {
|
|
37010
|
-
if (i.settings.minScrollbarLength) {
|
|
37011
|
-
thumbSize = Math.max(thumbSize, i.settings.minScrollbarLength);
|
|
37012
|
-
}
|
|
37013
|
-
if (i.settings.maxScrollbarLength) {
|
|
37014
|
-
thumbSize = Math.min(thumbSize, i.settings.maxScrollbarLength);
|
|
37015
|
-
}
|
|
37016
|
-
return thumbSize;
|
|
37017
|
-
}
|
|
37018
|
-
function updateCss(element, i) {
|
|
37019
|
-
var xRailOffset = { width: i.railXWidth };
|
|
37020
|
-
var roundedScrollTop = Math.floor(element.scrollTop);
|
|
37021
|
-
if (i.isRtl) {
|
|
37022
|
-
xRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth - i.contentWidth;
|
|
37023
|
-
} else {
|
|
37024
|
-
xRailOffset.left = element.scrollLeft;
|
|
37025
|
-
}
|
|
37026
|
-
if (i.isScrollbarXUsingBottom) {
|
|
37027
|
-
xRailOffset.bottom = i.scrollbarXBottom - roundedScrollTop;
|
|
37028
|
-
} else {
|
|
37029
|
-
xRailOffset.top = i.scrollbarXTop + roundedScrollTop;
|
|
37030
|
-
}
|
|
37031
|
-
set(i.scrollbarXRail, xRailOffset);
|
|
37032
|
-
var yRailOffset = { top: roundedScrollTop, height: i.railYHeight };
|
|
37033
|
-
if (i.isScrollbarYUsingRight) {
|
|
37034
|
-
if (i.isRtl) {
|
|
37035
|
-
yRailOffset.right = i.contentWidth - (i.negativeScrollAdjustment + element.scrollLeft) - i.scrollbarYRight - i.scrollbarYOuterWidth - 9;
|
|
37036
|
-
} else {
|
|
37037
|
-
yRailOffset.right = i.scrollbarYRight - element.scrollLeft;
|
|
37038
|
-
}
|
|
37039
|
-
} else {
|
|
37040
|
-
if (i.isRtl) {
|
|
37041
|
-
yRailOffset.left = i.negativeScrollAdjustment + element.scrollLeft + i.containerWidth * 2 - i.contentWidth - i.scrollbarYLeft - i.scrollbarYOuterWidth;
|
|
37042
|
-
} else {
|
|
37043
|
-
yRailOffset.left = i.scrollbarYLeft + element.scrollLeft;
|
|
37044
|
-
}
|
|
37045
|
-
}
|
|
37046
|
-
set(i.scrollbarYRail, yRailOffset);
|
|
37047
|
-
set(i.scrollbarX, {
|
|
37048
|
-
left: i.scrollbarXLeft,
|
|
37049
|
-
width: i.scrollbarXWidth - i.railBorderXWidth
|
|
37050
|
-
});
|
|
37051
|
-
set(i.scrollbarY, {
|
|
37052
|
-
top: i.scrollbarYTop,
|
|
37053
|
-
height: i.scrollbarYHeight - i.railBorderYWidth
|
|
37054
|
-
});
|
|
37055
|
-
}
|
|
37056
|
-
function clickRail(i) {
|
|
37057
|
-
i.event.bind(i.scrollbarY, "mousedown", function(e) {
|
|
37058
|
-
return e.stopPropagation();
|
|
37059
|
-
});
|
|
37060
|
-
i.event.bind(i.scrollbarYRail, "mousedown", function(e) {
|
|
37061
|
-
var positionTop = e.pageY - window.pageYOffset - i.scrollbarYRail.getBoundingClientRect().top;
|
|
37062
|
-
var direction = positionTop > i.scrollbarYTop ? 1 : -1;
|
|
37063
|
-
i.element.scrollTop += direction * i.containerHeight;
|
|
37064
|
-
updateGeometry(i);
|
|
37065
|
-
e.stopPropagation();
|
|
37066
|
-
});
|
|
37067
|
-
i.event.bind(i.scrollbarX, "mousedown", function(e) {
|
|
37068
|
-
return e.stopPropagation();
|
|
37069
|
-
});
|
|
37070
|
-
i.event.bind(i.scrollbarXRail, "mousedown", function(e) {
|
|
37071
|
-
var positionLeft = e.pageX - window.pageXOffset - i.scrollbarXRail.getBoundingClientRect().left;
|
|
37072
|
-
var direction = positionLeft > i.scrollbarXLeft ? 1 : -1;
|
|
37073
|
-
i.element.scrollLeft += direction * i.containerWidth;
|
|
37074
|
-
updateGeometry(i);
|
|
37075
|
-
e.stopPropagation();
|
|
37076
|
-
});
|
|
37077
|
-
}
|
|
37078
|
-
var activeSlider = null;
|
|
37079
|
-
function setupScrollHandlers(i) {
|
|
37080
|
-
bindMouseScrollHandler(i, [
|
|
37081
|
-
"containerHeight",
|
|
37082
|
-
"contentHeight",
|
|
37083
|
-
"pageY",
|
|
37084
|
-
"railYHeight",
|
|
37085
|
-
"scrollbarY",
|
|
37086
|
-
"scrollbarYHeight",
|
|
37087
|
-
"scrollTop",
|
|
37088
|
-
"y",
|
|
37089
|
-
"scrollbarYRail"
|
|
37090
|
-
]);
|
|
37091
|
-
bindMouseScrollHandler(i, [
|
|
37092
|
-
"containerWidth",
|
|
37093
|
-
"contentWidth",
|
|
37094
|
-
"pageX",
|
|
37095
|
-
"railXWidth",
|
|
37096
|
-
"scrollbarX",
|
|
37097
|
-
"scrollbarXWidth",
|
|
37098
|
-
"scrollLeft",
|
|
37099
|
-
"x",
|
|
37100
|
-
"scrollbarXRail"
|
|
37101
|
-
]);
|
|
37102
|
-
}
|
|
37103
|
-
function bindMouseScrollHandler(i, ref2) {
|
|
37104
|
-
var containerDimension = ref2[0];
|
|
37105
|
-
var contentDimension = ref2[1];
|
|
37106
|
-
var pageAxis = ref2[2];
|
|
37107
|
-
var railDimension = ref2[3];
|
|
37108
|
-
var scrollbarAxis = ref2[4];
|
|
37109
|
-
var scrollbarDimension = ref2[5];
|
|
37110
|
-
var scrollAxis = ref2[6];
|
|
37111
|
-
var axis = ref2[7];
|
|
37112
|
-
var scrollbarRail = ref2[8];
|
|
37113
|
-
var element = i.element;
|
|
37114
|
-
var startingScrollPosition = null;
|
|
37115
|
-
var startingMousePagePosition = null;
|
|
37116
|
-
var scrollBy = null;
|
|
37117
|
-
function moveHandler(e) {
|
|
37118
|
-
if (e.touches && e.touches[0]) {
|
|
37119
|
-
e[pageAxis] = e.touches[0]["page" + axis.toUpperCase()];
|
|
37120
|
-
}
|
|
37121
|
-
if (activeSlider === scrollbarAxis) {
|
|
37122
|
-
element[scrollAxis] = startingScrollPosition + scrollBy * (e[pageAxis] - startingMousePagePosition);
|
|
37123
|
-
addScrollingClass(i, axis);
|
|
37124
|
-
updateGeometry(i);
|
|
37125
|
-
e.stopPropagation();
|
|
37126
|
-
e.preventDefault();
|
|
37127
|
-
}
|
|
37128
|
-
}
|
|
37129
|
-
function endHandler() {
|
|
37130
|
-
removeScrollingClass(i, axis);
|
|
37131
|
-
i[scrollbarRail].classList.remove(cls.state.clicking);
|
|
37132
|
-
document.removeEventListener("mousemove", moveHandler);
|
|
37133
|
-
document.removeEventListener("mouseup", endHandler);
|
|
37134
|
-
document.removeEventListener("touchmove", moveHandler);
|
|
37135
|
-
document.removeEventListener("touchend", endHandler);
|
|
37136
|
-
activeSlider = null;
|
|
37137
|
-
}
|
|
37138
|
-
function bindMoves(e) {
|
|
37139
|
-
if (activeSlider === null) {
|
|
37140
|
-
activeSlider = scrollbarAxis;
|
|
37141
|
-
startingScrollPosition = element[scrollAxis];
|
|
37142
|
-
if (e.touches) {
|
|
37143
|
-
e[pageAxis] = e.touches[0]["page" + axis.toUpperCase()];
|
|
37144
|
-
}
|
|
37145
|
-
startingMousePagePosition = e[pageAxis];
|
|
37146
|
-
scrollBy = (i[contentDimension] - i[containerDimension]) / (i[railDimension] - i[scrollbarDimension]);
|
|
37147
|
-
if (!e.touches) {
|
|
37148
|
-
document.addEventListener("mousemove", moveHandler);
|
|
37149
|
-
document.addEventListener("mouseup", endHandler);
|
|
37150
|
-
} else {
|
|
37151
|
-
document.addEventListener("touchmove", moveHandler, { passive: false });
|
|
37152
|
-
document.addEventListener("touchend", endHandler);
|
|
37153
|
-
}
|
|
37154
|
-
i[scrollbarRail].classList.add(cls.state.clicking);
|
|
37155
|
-
}
|
|
37156
|
-
e.stopPropagation();
|
|
37157
|
-
if (e.cancelable) {
|
|
37158
|
-
e.preventDefault();
|
|
37159
|
-
}
|
|
37160
|
-
}
|
|
37161
|
-
i[scrollbarAxis].addEventListener("mousedown", bindMoves);
|
|
37162
|
-
i[scrollbarAxis].addEventListener("touchstart", bindMoves);
|
|
37163
|
-
}
|
|
37164
|
-
function keyboard(i) {
|
|
37165
|
-
var element = i.element;
|
|
37166
|
-
var elementHovered = function() {
|
|
37167
|
-
return matches(element, ":hover");
|
|
37168
|
-
};
|
|
37169
|
-
var scrollbarFocused = function() {
|
|
37170
|
-
return matches(i.scrollbarX, ":focus") || matches(i.scrollbarY, ":focus");
|
|
37171
|
-
};
|
|
37172
|
-
function shouldPreventDefault(deltaX, deltaY) {
|
|
37173
|
-
var scrollTop = Math.floor(element.scrollTop);
|
|
37174
|
-
if (deltaX === 0) {
|
|
37175
|
-
if (!i.scrollbarYActive) {
|
|
37176
|
-
return false;
|
|
37177
|
-
}
|
|
37178
|
-
if (scrollTop === 0 && deltaY > 0 || scrollTop >= i.contentHeight - i.containerHeight && deltaY < 0) {
|
|
37179
|
-
return !i.settings.wheelPropagation;
|
|
37180
|
-
}
|
|
37181
|
-
}
|
|
37182
|
-
var scrollLeft = element.scrollLeft;
|
|
37183
|
-
if (deltaY === 0) {
|
|
37184
|
-
if (!i.scrollbarXActive) {
|
|
37185
|
-
return false;
|
|
37186
|
-
}
|
|
37187
|
-
if (scrollLeft === 0 && deltaX < 0 || scrollLeft >= i.contentWidth - i.containerWidth && deltaX > 0) {
|
|
37188
|
-
return !i.settings.wheelPropagation;
|
|
37189
|
-
}
|
|
37190
|
-
}
|
|
37191
|
-
return true;
|
|
37192
|
-
}
|
|
37193
|
-
i.event.bind(i.ownerDocument, "keydown", function(e) {
|
|
37194
|
-
if (e.isDefaultPrevented && e.isDefaultPrevented() || e.defaultPrevented) {
|
|
37195
|
-
return;
|
|
37196
|
-
}
|
|
37197
|
-
if (!elementHovered() && !scrollbarFocused()) {
|
|
37198
|
-
return;
|
|
37199
|
-
}
|
|
37200
|
-
var activeElement = document.activeElement ? document.activeElement : i.ownerDocument.activeElement;
|
|
37201
|
-
if (activeElement) {
|
|
37202
|
-
if (activeElement.tagName === "IFRAME") {
|
|
37203
|
-
activeElement = activeElement.contentDocument.activeElement;
|
|
37204
|
-
} else {
|
|
37205
|
-
while (activeElement.shadowRoot) {
|
|
37206
|
-
activeElement = activeElement.shadowRoot.activeElement;
|
|
37207
|
-
}
|
|
37208
|
-
}
|
|
37209
|
-
if (isEditable(activeElement)) {
|
|
37210
|
-
return;
|
|
37211
|
-
}
|
|
37212
|
-
}
|
|
37213
|
-
var deltaX = 0;
|
|
37214
|
-
var deltaY = 0;
|
|
37215
|
-
switch (e.which) {
|
|
37216
|
-
case 37:
|
|
37217
|
-
if (e.metaKey) {
|
|
37218
|
-
deltaX = -i.contentWidth;
|
|
37219
|
-
} else if (e.altKey) {
|
|
37220
|
-
deltaX = -i.containerWidth;
|
|
37221
|
-
} else {
|
|
37222
|
-
deltaX = -30;
|
|
37223
|
-
}
|
|
37224
|
-
break;
|
|
37225
|
-
case 38:
|
|
37226
|
-
if (e.metaKey) {
|
|
37227
|
-
deltaY = i.contentHeight;
|
|
37228
|
-
} else if (e.altKey) {
|
|
37229
|
-
deltaY = i.containerHeight;
|
|
37230
|
-
} else {
|
|
37231
|
-
deltaY = 30;
|
|
37232
|
-
}
|
|
37233
|
-
break;
|
|
37234
|
-
case 39:
|
|
37235
|
-
if (e.metaKey) {
|
|
37236
|
-
deltaX = i.contentWidth;
|
|
37237
|
-
} else if (e.altKey) {
|
|
37238
|
-
deltaX = i.containerWidth;
|
|
37239
|
-
} else {
|
|
37240
|
-
deltaX = 30;
|
|
37241
|
-
}
|
|
37242
|
-
break;
|
|
37243
|
-
case 40:
|
|
37244
|
-
if (e.metaKey) {
|
|
37245
|
-
deltaY = -i.contentHeight;
|
|
37246
|
-
} else if (e.altKey) {
|
|
37247
|
-
deltaY = -i.containerHeight;
|
|
37248
|
-
} else {
|
|
37249
|
-
deltaY = -30;
|
|
37250
|
-
}
|
|
37251
|
-
break;
|
|
37252
|
-
case 32:
|
|
37253
|
-
if (e.shiftKey) {
|
|
37254
|
-
deltaY = i.containerHeight;
|
|
37255
|
-
} else {
|
|
37256
|
-
deltaY = -i.containerHeight;
|
|
37257
|
-
}
|
|
37258
|
-
break;
|
|
37259
|
-
case 33:
|
|
37260
|
-
deltaY = i.containerHeight;
|
|
37261
|
-
break;
|
|
37262
|
-
case 34:
|
|
37263
|
-
deltaY = -i.containerHeight;
|
|
37264
|
-
break;
|
|
37265
|
-
case 36:
|
|
37266
|
-
deltaY = i.contentHeight;
|
|
37267
|
-
break;
|
|
37268
|
-
case 35:
|
|
37269
|
-
deltaY = -i.contentHeight;
|
|
37270
|
-
break;
|
|
37271
|
-
default:
|
|
37272
|
-
return;
|
|
37273
|
-
}
|
|
37274
|
-
if (i.settings.suppressScrollX && deltaX !== 0) {
|
|
37275
|
-
return;
|
|
37276
|
-
}
|
|
37277
|
-
if (i.settings.suppressScrollY && deltaY !== 0) {
|
|
37278
|
-
return;
|
|
37279
|
-
}
|
|
37280
|
-
element.scrollTop -= deltaY;
|
|
37281
|
-
element.scrollLeft += deltaX;
|
|
37282
|
-
updateGeometry(i);
|
|
37283
|
-
if (shouldPreventDefault(deltaX, deltaY)) {
|
|
37284
|
-
e.preventDefault();
|
|
37285
|
-
}
|
|
37286
|
-
});
|
|
37287
|
-
}
|
|
37288
|
-
function wheel(i) {
|
|
37289
|
-
var element = i.element;
|
|
37290
|
-
function shouldPreventDefault(deltaX, deltaY) {
|
|
37291
|
-
var roundedScrollTop = Math.floor(element.scrollTop);
|
|
37292
|
-
var isTop = element.scrollTop === 0;
|
|
37293
|
-
var isBottom = roundedScrollTop + element.offsetHeight === element.scrollHeight;
|
|
37294
|
-
var isLeft = element.scrollLeft === 0;
|
|
37295
|
-
var isRight = element.scrollLeft + element.offsetWidth === element.scrollWidth;
|
|
37296
|
-
var hitsBound;
|
|
37297
|
-
if (Math.abs(deltaY) > Math.abs(deltaX)) {
|
|
37298
|
-
hitsBound = isTop || isBottom;
|
|
37299
|
-
} else {
|
|
37300
|
-
hitsBound = isLeft || isRight;
|
|
37301
|
-
}
|
|
37302
|
-
return hitsBound ? !i.settings.wheelPropagation : true;
|
|
37303
|
-
}
|
|
37304
|
-
function getDeltaFromEvent(e) {
|
|
37305
|
-
var deltaX = e.deltaX;
|
|
37306
|
-
var deltaY = -1 * e.deltaY;
|
|
37307
|
-
if (typeof deltaX === "undefined" || typeof deltaY === "undefined") {
|
|
37308
|
-
deltaX = -1 * e.wheelDeltaX / 6;
|
|
37309
|
-
deltaY = e.wheelDeltaY / 6;
|
|
37310
|
-
}
|
|
37311
|
-
if (e.deltaMode && e.deltaMode === 1) {
|
|
37312
|
-
deltaX *= 10;
|
|
37313
|
-
deltaY *= 10;
|
|
37314
|
-
}
|
|
37315
|
-
if (deltaX !== deltaX && deltaY !== deltaY) {
|
|
37316
|
-
deltaX = 0;
|
|
37317
|
-
deltaY = e.wheelDelta;
|
|
37318
|
-
}
|
|
37319
|
-
if (e.shiftKey) {
|
|
37320
|
-
return [-deltaY, -deltaX];
|
|
37321
|
-
}
|
|
37322
|
-
return [deltaX, deltaY];
|
|
37323
|
-
}
|
|
37324
|
-
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
|
37325
|
-
if (!env.isWebKit && element.querySelector("select:focus")) {
|
|
37326
|
-
return true;
|
|
37327
|
-
}
|
|
37328
|
-
if (!element.contains(target)) {
|
|
37329
|
-
return false;
|
|
37330
|
-
}
|
|
37331
|
-
var cursor = target;
|
|
37332
|
-
while (cursor && cursor !== element) {
|
|
37333
|
-
if (cursor.classList.contains(cls.element.consuming)) {
|
|
37334
|
-
return true;
|
|
37335
|
-
}
|
|
37336
|
-
var style = get(cursor);
|
|
37337
|
-
if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
|
|
37338
|
-
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
|
37339
|
-
if (maxScrollTop > 0) {
|
|
37340
|
-
if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
|
|
37341
|
-
return true;
|
|
37342
|
-
}
|
|
37343
|
-
}
|
|
37344
|
-
}
|
|
37345
|
-
if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
|
|
37346
|
-
var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
|
|
37347
|
-
if (maxScrollLeft > 0) {
|
|
37348
|
-
if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
|
|
37349
|
-
return true;
|
|
37350
|
-
}
|
|
37351
|
-
}
|
|
37352
|
-
}
|
|
37353
|
-
cursor = cursor.parentNode;
|
|
37354
|
-
}
|
|
37355
|
-
return false;
|
|
37356
|
-
}
|
|
37357
|
-
function mousewheelHandler(e) {
|
|
37358
|
-
var ref2 = getDeltaFromEvent(e);
|
|
37359
|
-
var deltaX = ref2[0];
|
|
37360
|
-
var deltaY = ref2[1];
|
|
37361
|
-
if (shouldBeConsumedByChild(e.target, deltaX, deltaY)) {
|
|
37362
|
-
return;
|
|
37363
|
-
}
|
|
37364
|
-
var shouldPrevent = false;
|
|
37365
|
-
if (!i.settings.useBothWheelAxes) {
|
|
37366
|
-
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
|
37367
|
-
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
|
37368
|
-
} else if (i.scrollbarYActive && !i.scrollbarXActive) {
|
|
37369
|
-
if (deltaY) {
|
|
37370
|
-
element.scrollTop -= deltaY * i.settings.wheelSpeed;
|
|
37371
|
-
} else {
|
|
37372
|
-
element.scrollTop += deltaX * i.settings.wheelSpeed;
|
|
37373
|
-
}
|
|
37374
|
-
shouldPrevent = true;
|
|
37375
|
-
} else if (i.scrollbarXActive && !i.scrollbarYActive) {
|
|
37376
|
-
if (deltaX) {
|
|
37377
|
-
element.scrollLeft += deltaX * i.settings.wheelSpeed;
|
|
37378
|
-
} else {
|
|
37379
|
-
element.scrollLeft -= deltaY * i.settings.wheelSpeed;
|
|
37380
|
-
}
|
|
37381
|
-
shouldPrevent = true;
|
|
37382
|
-
}
|
|
37383
|
-
updateGeometry(i);
|
|
37384
|
-
shouldPrevent = shouldPrevent || shouldPreventDefault(deltaX, deltaY);
|
|
37385
|
-
if (shouldPrevent && !e.ctrlKey) {
|
|
37386
|
-
e.stopPropagation();
|
|
37387
|
-
e.preventDefault();
|
|
37388
|
-
}
|
|
37389
|
-
}
|
|
37390
|
-
if (typeof window.onwheel !== "undefined") {
|
|
37391
|
-
i.event.bind(element, "wheel", mousewheelHandler);
|
|
37392
|
-
} else if (typeof window.onmousewheel !== "undefined") {
|
|
37393
|
-
i.event.bind(element, "mousewheel", mousewheelHandler);
|
|
37394
|
-
}
|
|
37395
|
-
}
|
|
37396
|
-
function touch(i) {
|
|
37397
|
-
if (!env.supportsTouch && !env.supportsIePointer) {
|
|
37398
|
-
return;
|
|
37399
|
-
}
|
|
37400
|
-
var element = i.element;
|
|
37401
|
-
var state = {
|
|
37402
|
-
startOffset: {},
|
|
37403
|
-
startTime: 0,
|
|
37404
|
-
speed: {},
|
|
37405
|
-
easingLoop: null
|
|
37406
|
-
};
|
|
37407
|
-
function shouldPrevent(deltaX, deltaY) {
|
|
37408
|
-
var scrollTop = Math.floor(element.scrollTop);
|
|
37409
|
-
var scrollLeft = element.scrollLeft;
|
|
37410
|
-
var magnitudeX = Math.abs(deltaX);
|
|
37411
|
-
var magnitudeY = Math.abs(deltaY);
|
|
37412
|
-
if (magnitudeY > magnitudeX) {
|
|
37413
|
-
if (deltaY < 0 && scrollTop === i.contentHeight - i.containerHeight || deltaY > 0 && scrollTop === 0) {
|
|
37414
|
-
return window.scrollY === 0 && deltaY > 0 && env.isChrome;
|
|
37415
|
-
}
|
|
37416
|
-
} else if (magnitudeX > magnitudeY) {
|
|
37417
|
-
if (deltaX < 0 && scrollLeft === i.contentWidth - i.containerWidth || deltaX > 0 && scrollLeft === 0) {
|
|
37418
|
-
return true;
|
|
37419
|
-
}
|
|
37420
|
-
}
|
|
37421
|
-
return true;
|
|
37422
|
-
}
|
|
37423
|
-
function applyTouchMove(differenceX, differenceY) {
|
|
37424
|
-
element.scrollTop -= differenceY;
|
|
37425
|
-
element.scrollLeft -= differenceX;
|
|
37426
|
-
updateGeometry(i);
|
|
37427
|
-
}
|
|
37428
|
-
function getTouch(e) {
|
|
37429
|
-
if (e.targetTouches) {
|
|
37430
|
-
return e.targetTouches[0];
|
|
37431
|
-
}
|
|
37432
|
-
return e;
|
|
37433
|
-
}
|
|
37434
|
-
function shouldHandle(e) {
|
|
37435
|
-
if (e.target === i.scrollbarX || e.target === i.scrollbarY) {
|
|
37436
|
-
return false;
|
|
37437
|
-
}
|
|
37438
|
-
if (e.pointerType && e.pointerType === "pen" && e.buttons === 0) {
|
|
37439
|
-
return false;
|
|
37440
|
-
}
|
|
37441
|
-
if (e.targetTouches && e.targetTouches.length === 1) {
|
|
37442
|
-
return true;
|
|
37443
|
-
}
|
|
37444
|
-
if (e.pointerType && e.pointerType !== "mouse" && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
|
|
37445
|
-
return true;
|
|
37446
|
-
}
|
|
37447
|
-
return false;
|
|
37448
|
-
}
|
|
37449
|
-
function touchStart(e) {
|
|
37450
|
-
if (!shouldHandle(e)) {
|
|
37451
|
-
return;
|
|
37452
|
-
}
|
|
37453
|
-
var touch2 = getTouch(e);
|
|
37454
|
-
state.startOffset.pageX = touch2.pageX;
|
|
37455
|
-
state.startOffset.pageY = touch2.pageY;
|
|
37456
|
-
state.startTime = (/* @__PURE__ */ new Date()).getTime();
|
|
37457
|
-
if (state.easingLoop !== null) {
|
|
37458
|
-
clearInterval(state.easingLoop);
|
|
37459
|
-
}
|
|
37460
|
-
}
|
|
37461
|
-
function shouldBeConsumedByChild(target, deltaX, deltaY) {
|
|
37462
|
-
if (!element.contains(target)) {
|
|
37463
|
-
return false;
|
|
37464
|
-
}
|
|
37465
|
-
var cursor = target;
|
|
37466
|
-
while (cursor && cursor !== element) {
|
|
37467
|
-
if (cursor.classList.contains(cls.element.consuming)) {
|
|
37468
|
-
return true;
|
|
37469
|
-
}
|
|
37470
|
-
var style = get(cursor);
|
|
37471
|
-
if (deltaY && style.overflowY.match(/(scroll|auto)/)) {
|
|
37472
|
-
var maxScrollTop = cursor.scrollHeight - cursor.clientHeight;
|
|
37473
|
-
if (maxScrollTop > 0) {
|
|
37474
|
-
if (cursor.scrollTop > 0 && deltaY < 0 || cursor.scrollTop < maxScrollTop && deltaY > 0) {
|
|
37475
|
-
return true;
|
|
37476
|
-
}
|
|
37477
|
-
}
|
|
37478
|
-
}
|
|
37479
|
-
if (deltaX && style.overflowX.match(/(scroll|auto)/)) {
|
|
37480
|
-
var maxScrollLeft = cursor.scrollWidth - cursor.clientWidth;
|
|
37481
|
-
if (maxScrollLeft > 0) {
|
|
37482
|
-
if (cursor.scrollLeft > 0 && deltaX < 0 || cursor.scrollLeft < maxScrollLeft && deltaX > 0) {
|
|
37483
|
-
return true;
|
|
37484
|
-
}
|
|
37485
|
-
}
|
|
37486
|
-
}
|
|
37487
|
-
cursor = cursor.parentNode;
|
|
37488
|
-
}
|
|
37489
|
-
return false;
|
|
37490
|
-
}
|
|
37491
|
-
function touchMove(e) {
|
|
37492
|
-
if (shouldHandle(e)) {
|
|
37493
|
-
var touch2 = getTouch(e);
|
|
37494
|
-
var currentOffset = { pageX: touch2.pageX, pageY: touch2.pageY };
|
|
37495
|
-
var differenceX = currentOffset.pageX - state.startOffset.pageX;
|
|
37496
|
-
var differenceY = currentOffset.pageY - state.startOffset.pageY;
|
|
37497
|
-
if (shouldBeConsumedByChild(e.target, differenceX, differenceY)) {
|
|
37498
|
-
return;
|
|
37499
|
-
}
|
|
37500
|
-
applyTouchMove(differenceX, differenceY);
|
|
37501
|
-
state.startOffset = currentOffset;
|
|
37502
|
-
var currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
37503
|
-
var timeGap = currentTime - state.startTime;
|
|
37504
|
-
if (timeGap > 0) {
|
|
37505
|
-
state.speed.x = differenceX / timeGap;
|
|
37506
|
-
state.speed.y = differenceY / timeGap;
|
|
37507
|
-
state.startTime = currentTime;
|
|
37508
|
-
}
|
|
37509
|
-
if (shouldPrevent(differenceX, differenceY)) {
|
|
37510
|
-
if (e.cancelable) {
|
|
37511
|
-
e.preventDefault();
|
|
37512
|
-
}
|
|
37513
|
-
}
|
|
37514
|
-
}
|
|
37515
|
-
}
|
|
37516
|
-
function touchEnd() {
|
|
37517
|
-
if (i.settings.swipeEasing) {
|
|
37518
|
-
clearInterval(state.easingLoop);
|
|
37519
|
-
state.easingLoop = setInterval(function() {
|
|
37520
|
-
if (i.isInitialized) {
|
|
37521
|
-
clearInterval(state.easingLoop);
|
|
37522
|
-
return;
|
|
37523
|
-
}
|
|
37524
|
-
if (!state.speed.x && !state.speed.y) {
|
|
37525
|
-
clearInterval(state.easingLoop);
|
|
37526
|
-
return;
|
|
37527
|
-
}
|
|
37528
|
-
if (Math.abs(state.speed.x) < 0.01 && Math.abs(state.speed.y) < 0.01) {
|
|
37529
|
-
clearInterval(state.easingLoop);
|
|
37530
|
-
return;
|
|
37531
|
-
}
|
|
37532
|
-
applyTouchMove(state.speed.x * 30, state.speed.y * 30);
|
|
37533
|
-
state.speed.x *= 0.8;
|
|
37534
|
-
state.speed.y *= 0.8;
|
|
37535
|
-
}, 10);
|
|
37536
|
-
}
|
|
37537
|
-
}
|
|
37538
|
-
if (env.supportsTouch) {
|
|
37539
|
-
i.event.bind(element, "touchstart", touchStart);
|
|
37540
|
-
i.event.bind(element, "touchmove", touchMove);
|
|
37541
|
-
i.event.bind(element, "touchend", touchEnd);
|
|
37542
|
-
} else if (env.supportsIePointer) {
|
|
37543
|
-
if (window.PointerEvent) {
|
|
37544
|
-
i.event.bind(element, "pointerdown", touchStart);
|
|
37545
|
-
i.event.bind(element, "pointermove", touchMove);
|
|
37546
|
-
i.event.bind(element, "pointerup", touchEnd);
|
|
37547
|
-
} else if (window.MSPointerEvent) {
|
|
37548
|
-
i.event.bind(element, "MSPointerDown", touchStart);
|
|
37549
|
-
i.event.bind(element, "MSPointerMove", touchMove);
|
|
37550
|
-
i.event.bind(element, "MSPointerUp", touchEnd);
|
|
37551
|
-
}
|
|
37552
|
-
}
|
|
37553
|
-
}
|
|
37554
|
-
var defaultSettings = function() {
|
|
37555
|
-
return {
|
|
37556
|
-
handlers: ["click-rail", "drag-thumb", "keyboard", "wheel", "touch"],
|
|
37557
|
-
maxScrollbarLength: null,
|
|
37558
|
-
minScrollbarLength: null,
|
|
37559
|
-
scrollingThreshold: 1e3,
|
|
37560
|
-
scrollXMarginOffset: 0,
|
|
37561
|
-
scrollYMarginOffset: 0,
|
|
37562
|
-
suppressScrollX: false,
|
|
37563
|
-
suppressScrollY: false,
|
|
37564
|
-
swipeEasing: true,
|
|
37565
|
-
useBothWheelAxes: false,
|
|
37566
|
-
wheelPropagation: true,
|
|
37567
|
-
wheelSpeed: 1
|
|
37568
|
-
};
|
|
37569
|
-
};
|
|
37570
|
-
var handlers = {
|
|
37571
|
-
"click-rail": clickRail,
|
|
37572
|
-
"drag-thumb": setupScrollHandlers,
|
|
37573
|
-
keyboard,
|
|
37574
|
-
wheel,
|
|
37575
|
-
touch
|
|
37576
|
-
};
|
|
37577
|
-
var PerfectScrollbar = function PerfectScrollbar2(element, userSettings) {
|
|
37578
|
-
var this$1$1 = this;
|
|
37579
|
-
if (userSettings === void 0) userSettings = {};
|
|
37580
|
-
if (typeof element === "string") {
|
|
37581
|
-
element = document.querySelector(element);
|
|
37582
|
-
}
|
|
37583
|
-
if (!element || !element.nodeName) {
|
|
37584
|
-
throw new Error("no element is specified to initialize PerfectScrollbar");
|
|
37585
|
-
}
|
|
37586
|
-
this.element = element;
|
|
37587
|
-
element.classList.add(cls.main);
|
|
37588
|
-
this.settings = defaultSettings();
|
|
37589
|
-
for (var key2 in userSettings) {
|
|
37590
|
-
this.settings[key2] = userSettings[key2];
|
|
37591
|
-
}
|
|
37592
|
-
this.containerWidth = null;
|
|
37593
|
-
this.containerHeight = null;
|
|
37594
|
-
this.contentWidth = null;
|
|
37595
|
-
this.contentHeight = null;
|
|
37596
|
-
var focus = function() {
|
|
37597
|
-
return element.classList.add(cls.state.focus);
|
|
37598
|
-
};
|
|
37599
|
-
var blur = function() {
|
|
37600
|
-
return element.classList.remove(cls.state.focus);
|
|
37601
|
-
};
|
|
37602
|
-
this.isRtl = get(element).direction === "rtl";
|
|
37603
|
-
if (this.isRtl === true) {
|
|
37604
|
-
element.classList.add(cls.rtl);
|
|
37605
|
-
}
|
|
37606
|
-
this.isNegativeScroll = function() {
|
|
37607
|
-
var originalScrollLeft = element.scrollLeft;
|
|
37608
|
-
var result = null;
|
|
37609
|
-
element.scrollLeft = -1;
|
|
37610
|
-
result = element.scrollLeft < 0;
|
|
37611
|
-
element.scrollLeft = originalScrollLeft;
|
|
37612
|
-
return result;
|
|
37613
|
-
}();
|
|
37614
|
-
this.negativeScrollAdjustment = this.isNegativeScroll ? element.scrollWidth - element.clientWidth : 0;
|
|
37615
|
-
this.event = new EventManager();
|
|
37616
|
-
this.ownerDocument = element.ownerDocument || document;
|
|
37617
|
-
this.scrollbarXRail = div(cls.element.rail("x"));
|
|
37618
|
-
element.appendChild(this.scrollbarXRail);
|
|
37619
|
-
this.scrollbarX = div(cls.element.thumb("x"));
|
|
37620
|
-
this.scrollbarXRail.appendChild(this.scrollbarX);
|
|
37621
|
-
this.scrollbarX.setAttribute("tabindex", 0);
|
|
37622
|
-
this.event.bind(this.scrollbarX, "focus", focus);
|
|
37623
|
-
this.event.bind(this.scrollbarX, "blur", blur);
|
|
37624
|
-
this.scrollbarXActive = null;
|
|
37625
|
-
this.scrollbarXWidth = null;
|
|
37626
|
-
this.scrollbarXLeft = null;
|
|
37627
|
-
var railXStyle = get(this.scrollbarXRail);
|
|
37628
|
-
this.scrollbarXBottom = parseInt(railXStyle.bottom, 10);
|
|
37629
|
-
if (isNaN(this.scrollbarXBottom)) {
|
|
37630
|
-
this.isScrollbarXUsingBottom = false;
|
|
37631
|
-
this.scrollbarXTop = toInt(railXStyle.top);
|
|
37632
|
-
} else {
|
|
37633
|
-
this.isScrollbarXUsingBottom = true;
|
|
37634
|
-
}
|
|
37635
|
-
this.railBorderXWidth = toInt(railXStyle.borderLeftWidth) + toInt(railXStyle.borderRightWidth);
|
|
37636
|
-
set(this.scrollbarXRail, { display: "block" });
|
|
37637
|
-
this.railXMarginWidth = toInt(railXStyle.marginLeft) + toInt(railXStyle.marginRight);
|
|
37638
|
-
set(this.scrollbarXRail, { display: "" });
|
|
37639
|
-
this.railXWidth = null;
|
|
37640
|
-
this.railXRatio = null;
|
|
37641
|
-
this.scrollbarYRail = div(cls.element.rail("y"));
|
|
37642
|
-
element.appendChild(this.scrollbarYRail);
|
|
37643
|
-
this.scrollbarY = div(cls.element.thumb("y"));
|
|
37644
|
-
this.scrollbarYRail.appendChild(this.scrollbarY);
|
|
37645
|
-
this.scrollbarY.setAttribute("tabindex", 0);
|
|
37646
|
-
this.event.bind(this.scrollbarY, "focus", focus);
|
|
37647
|
-
this.event.bind(this.scrollbarY, "blur", blur);
|
|
37648
|
-
this.scrollbarYActive = null;
|
|
37649
|
-
this.scrollbarYHeight = null;
|
|
37650
|
-
this.scrollbarYTop = null;
|
|
37651
|
-
var railYStyle = get(this.scrollbarYRail);
|
|
37652
|
-
this.scrollbarYRight = parseInt(railYStyle.right, 10);
|
|
37653
|
-
if (isNaN(this.scrollbarYRight)) {
|
|
37654
|
-
this.isScrollbarYUsingRight = false;
|
|
37655
|
-
this.scrollbarYLeft = toInt(railYStyle.left);
|
|
37656
|
-
} else {
|
|
37657
|
-
this.isScrollbarYUsingRight = true;
|
|
37658
|
-
}
|
|
37659
|
-
this.scrollbarYOuterWidth = this.isRtl ? outerWidth(this.scrollbarY) : null;
|
|
37660
|
-
this.railBorderYWidth = toInt(railYStyle.borderTopWidth) + toInt(railYStyle.borderBottomWidth);
|
|
37661
|
-
set(this.scrollbarYRail, { display: "block" });
|
|
37662
|
-
this.railYMarginHeight = toInt(railYStyle.marginTop) + toInt(railYStyle.marginBottom);
|
|
37663
|
-
set(this.scrollbarYRail, { display: "" });
|
|
37664
|
-
this.railYHeight = null;
|
|
37665
|
-
this.railYRatio = null;
|
|
37666
|
-
this.reach = {
|
|
37667
|
-
x: element.scrollLeft <= 0 ? "start" : element.scrollLeft >= this.contentWidth - this.containerWidth ? "end" : null,
|
|
37668
|
-
y: element.scrollTop <= 0 ? "start" : element.scrollTop >= this.contentHeight - this.containerHeight ? "end" : null
|
|
37669
|
-
};
|
|
37670
|
-
this.isAlive = true;
|
|
37671
|
-
this.settings.handlers.forEach(function(handlerName) {
|
|
37672
|
-
return handlers[handlerName](this$1$1);
|
|
37673
|
-
});
|
|
37674
|
-
this.lastScrollTop = Math.floor(element.scrollTop);
|
|
37675
|
-
this.lastScrollLeft = element.scrollLeft;
|
|
37676
|
-
this.event.bind(this.element, "scroll", function(e) {
|
|
37677
|
-
return this$1$1.onScroll(e);
|
|
37678
|
-
});
|
|
37679
|
-
updateGeometry(this);
|
|
37680
|
-
};
|
|
37681
|
-
PerfectScrollbar.prototype.update = function update() {
|
|
37682
|
-
if (!this.isAlive) {
|
|
37683
|
-
return;
|
|
37684
|
-
}
|
|
37685
|
-
this.negativeScrollAdjustment = this.isNegativeScroll ? this.element.scrollWidth - this.element.clientWidth : 0;
|
|
37686
|
-
set(this.scrollbarXRail, { display: "block" });
|
|
37687
|
-
set(this.scrollbarYRail, { display: "block" });
|
|
37688
|
-
this.railXMarginWidth = toInt(get(this.scrollbarXRail).marginLeft) + toInt(get(this.scrollbarXRail).marginRight);
|
|
37689
|
-
this.railYMarginHeight = toInt(get(this.scrollbarYRail).marginTop) + toInt(get(this.scrollbarYRail).marginBottom);
|
|
37690
|
-
set(this.scrollbarXRail, { display: "none" });
|
|
37691
|
-
set(this.scrollbarYRail, { display: "none" });
|
|
37692
|
-
updateGeometry(this);
|
|
37693
|
-
processScrollDiff(this, "top", 0, false, true);
|
|
37694
|
-
processScrollDiff(this, "left", 0, false, true);
|
|
37695
|
-
set(this.scrollbarXRail, { display: "" });
|
|
37696
|
-
set(this.scrollbarYRail, { display: "" });
|
|
37697
|
-
};
|
|
37698
|
-
PerfectScrollbar.prototype.onScroll = function onScroll(e) {
|
|
37699
|
-
if (!this.isAlive) {
|
|
37700
|
-
return;
|
|
37701
|
-
}
|
|
37702
|
-
updateGeometry(this);
|
|
37703
|
-
processScrollDiff(this, "top", this.element.scrollTop - this.lastScrollTop);
|
|
37704
|
-
processScrollDiff(this, "left", this.element.scrollLeft - this.lastScrollLeft);
|
|
37705
|
-
this.lastScrollTop = Math.floor(this.element.scrollTop);
|
|
37706
|
-
this.lastScrollLeft = this.element.scrollLeft;
|
|
37707
|
-
};
|
|
37708
|
-
PerfectScrollbar.prototype.destroy = function destroy() {
|
|
37709
|
-
if (!this.isAlive) {
|
|
37710
|
-
return;
|
|
36712
|
+
setup(__props) {
|
|
36713
|
+
const props = __props;
|
|
36714
|
+
return (_ctx, _cache) => {
|
|
36715
|
+
return openBlock(), createBlock(VListItem, {
|
|
36716
|
+
to: __props.item.type === "external" ? "" : __props.item.to,
|
|
36717
|
+
href: __props.item.type === "external" ? __props.item.to : "",
|
|
36718
|
+
rounded: "",
|
|
36719
|
+
class: "mb-1",
|
|
36720
|
+
color: "secondary",
|
|
36721
|
+
disabled: __props.item.disabled,
|
|
36722
|
+
target: __props.item.type === "external" ? "_blank" : ""
|
|
36723
|
+
}, createSlots({
|
|
36724
|
+
default: withCtx(() => [
|
|
36725
|
+
createVNode(VListItemTitle, null, {
|
|
36726
|
+
default: withCtx(() => [
|
|
36727
|
+
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
36728
|
+
]),
|
|
36729
|
+
_: 1
|
|
36730
|
+
}),
|
|
36731
|
+
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
36732
|
+
key: 0,
|
|
36733
|
+
class: "text-caption mt-n1 hide-menu"
|
|
36734
|
+
}, {
|
|
36735
|
+
default: withCtx(() => [
|
|
36736
|
+
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
36737
|
+
]),
|
|
36738
|
+
_: 1
|
|
36739
|
+
})) : createCommentVNode("", true)
|
|
36740
|
+
]),
|
|
36741
|
+
_: 2
|
|
36742
|
+
}, [
|
|
36743
|
+
props.item.icon ? {
|
|
36744
|
+
name: "prepend",
|
|
36745
|
+
fn: withCtx(() => [
|
|
36746
|
+
typeof props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
36747
|
+
key: 0,
|
|
36748
|
+
icon: props.item.icon
|
|
36749
|
+
}, null, 8, ["icon"])) : (openBlock(), createBlock(resolveDynamicComponent(props.item.icon), { key: 1 }))
|
|
36750
|
+
]),
|
|
36751
|
+
key: "0"
|
|
36752
|
+
} : void 0,
|
|
36753
|
+
__props.item.chip ? {
|
|
36754
|
+
name: "append",
|
|
36755
|
+
fn: withCtx(() => [
|
|
36756
|
+
createVNode(VChip, {
|
|
36757
|
+
color: __props.item.chipColor,
|
|
36758
|
+
class: "sidebarchip hide-menu",
|
|
36759
|
+
size: __props.item.chipIcon ? "small" : "default",
|
|
36760
|
+
variant: __props.item.chipVariant,
|
|
36761
|
+
"prepend-icon": __props.item.chipIcon
|
|
36762
|
+
}, {
|
|
36763
|
+
default: withCtx(() => [
|
|
36764
|
+
createTextVNode(toDisplayString(__props.item.chip), 1)
|
|
36765
|
+
]),
|
|
36766
|
+
_: 1
|
|
36767
|
+
}, 8, ["color", "size", "variant", "prepend-icon"])
|
|
36768
|
+
]),
|
|
36769
|
+
key: "1"
|
|
36770
|
+
} : void 0
|
|
36771
|
+
]), 1032, ["to", "href", "disabled", "target"]);
|
|
36772
|
+
};
|
|
37711
36773
|
}
|
|
37712
|
-
|
|
37713
|
-
|
|
37714
|
-
|
|
37715
|
-
|
|
37716
|
-
remove(this.scrollbarYRail);
|
|
37717
|
-
this.removePsClasses();
|
|
37718
|
-
this.element = null;
|
|
37719
|
-
this.scrollbarX = null;
|
|
37720
|
-
this.scrollbarY = null;
|
|
37721
|
-
this.scrollbarXRail = null;
|
|
37722
|
-
this.scrollbarYRail = null;
|
|
37723
|
-
this.isAlive = false;
|
|
37724
|
-
};
|
|
37725
|
-
PerfectScrollbar.prototype.removePsClasses = function removePsClasses() {
|
|
37726
|
-
this.element.className = this.element.className.split(" ").filter(function(name2) {
|
|
37727
|
-
return !name2.match(/^ps([-_].+|)$/);
|
|
37728
|
-
}).join(" ");
|
|
37729
|
-
};
|
|
37730
|
-
const C = /* @__PURE__ */ defineComponent$1({
|
|
37731
|
-
__name: "PerfectScrollbar",
|
|
36774
|
+
});
|
|
36775
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent$1({
|
|
36776
|
+
...{ name: "NavCollapse" },
|
|
36777
|
+
__name: "NavCollapse",
|
|
37732
36778
|
props: {
|
|
37733
|
-
|
|
37734
|
-
|
|
36779
|
+
item: {},
|
|
36780
|
+
level: {}
|
|
37735
36781
|
},
|
|
37736
|
-
|
|
37737
|
-
|
|
37738
|
-
|
|
37739
|
-
|
|
37740
|
-
()
|
|
37741
|
-
|
|
37742
|
-
|
|
37743
|
-
|
|
37744
|
-
|
|
37745
|
-
|
|
37746
|
-
|
|
37747
|
-
|
|
37748
|
-
|
|
37749
|
-
|
|
37750
|
-
|
|
37751
|
-
|
|
37752
|
-
|
|
37753
|
-
|
|
37754
|
-
|
|
37755
|
-
|
|
37756
|
-
|
|
37757
|
-
|
|
37758
|
-
|
|
37759
|
-
|
|
37760
|
-
|
|
37761
|
-
|
|
37762
|
-
|
|
37763
|
-
|
|
37764
|
-
|
|
37765
|
-
|
|
37766
|
-
|
|
37767
|
-
|
|
37768
|
-
|
|
37769
|
-
|
|
37770
|
-
|
|
37771
|
-
|
|
37772
|
-
|
|
37773
|
-
|
|
37774
|
-
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
36782
|
+
setup(__props) {
|
|
36783
|
+
const props = __props;
|
|
36784
|
+
return (_ctx, _cache) => {
|
|
36785
|
+
const _component_NavCollapse = resolveComponent("NavCollapse", true);
|
|
36786
|
+
return openBlock(), createBlock(VListGroup, { "no-action": "" }, {
|
|
36787
|
+
activator: withCtx(({ props: props2 }) => [
|
|
36788
|
+
createVNode(VListItem, mergeProps(props2, {
|
|
36789
|
+
value: __props.item.title,
|
|
36790
|
+
rounded: "",
|
|
36791
|
+
class: "mb-1",
|
|
36792
|
+
color: "secondary"
|
|
36793
|
+
}), {
|
|
36794
|
+
prepend: withCtx(() => [
|
|
36795
|
+
typeof __props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
36796
|
+
key: 0,
|
|
36797
|
+
icon: __props.item.icon
|
|
36798
|
+
}, null, 8, ["icon"])) : __props.item.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.icon), { key: 1 })) : createCommentVNode("", true)
|
|
36799
|
+
]),
|
|
36800
|
+
default: withCtx(() => [
|
|
36801
|
+
createVNode(VListItemTitle, { class: "ml-auto" }, {
|
|
36802
|
+
default: withCtx(() => [
|
|
36803
|
+
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
36804
|
+
]),
|
|
36805
|
+
_: 1
|
|
36806
|
+
}),
|
|
36807
|
+
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
36808
|
+
key: 0,
|
|
36809
|
+
class: "text-caption mt-n1 hide-menu"
|
|
36810
|
+
}, {
|
|
36811
|
+
default: withCtx(() => [
|
|
36812
|
+
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
36813
|
+
]),
|
|
36814
|
+
_: 1
|
|
36815
|
+
})) : createCommentVNode("", true)
|
|
36816
|
+
]),
|
|
36817
|
+
_: 1
|
|
36818
|
+
}, 16, ["value"])
|
|
36819
|
+
]),
|
|
36820
|
+
default: withCtx(() => [
|
|
36821
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (subitem, i) => {
|
|
36822
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
36823
|
+
subitem.children ? (openBlock(), createBlock(_component_NavCollapse, {
|
|
36824
|
+
key: 0,
|
|
36825
|
+
item: subitem,
|
|
36826
|
+
level: props.level + 1
|
|
36827
|
+
}, null, 8, ["item", "level"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
36828
|
+
key: 1,
|
|
36829
|
+
item: subitem,
|
|
36830
|
+
level: props.level + 1
|
|
36831
|
+
}, null, 8, ["item", "level"]))
|
|
36832
|
+
], 64);
|
|
36833
|
+
}), 128))
|
|
36834
|
+
]),
|
|
36835
|
+
_: 1
|
|
37779
36836
|
});
|
|
37780
|
-
}
|
|
37781
|
-
return n({
|
|
37782
|
-
ps: s
|
|
37783
|
-
}), (r, t) => (openBlock(), createBlock(resolveDynamicComponent(r.tag), {
|
|
37784
|
-
ref_key: "scrollbar",
|
|
37785
|
-
ref: l,
|
|
37786
|
-
class: "ps"
|
|
37787
|
-
}, {
|
|
37788
|
-
default: withCtx(() => [
|
|
37789
|
-
renderSlot(r.$slots, "default")
|
|
37790
|
-
]),
|
|
37791
|
-
_: 3
|
|
37792
|
-
}, 512));
|
|
36837
|
+
};
|
|
37793
36838
|
}
|
|
37794
36839
|
});
|
|
36840
|
+
const _sfc_main$3 = {
|
|
36841
|
+
__name: "NavGroup",
|
|
36842
|
+
props: { item: Object },
|
|
36843
|
+
setup(__props) {
|
|
36844
|
+
const props = __props;
|
|
36845
|
+
return (_ctx, _cache) => {
|
|
36846
|
+
return openBlock(), createBlock(VListSubheader, {
|
|
36847
|
+
color: "darkText",
|
|
36848
|
+
class: "smallCap"
|
|
36849
|
+
}, {
|
|
36850
|
+
default: withCtx(() => [
|
|
36851
|
+
createTextVNode(toDisplayString(props.item.header), 1)
|
|
36852
|
+
]),
|
|
36853
|
+
_: 1
|
|
36854
|
+
});
|
|
36855
|
+
};
|
|
36856
|
+
}
|
|
36857
|
+
};
|
|
37795
36858
|
function useSticky(_ref) {
|
|
37796
36859
|
let {
|
|
37797
36860
|
rootEl,
|
|
@@ -37815,21 +36878,21 @@ function useSticky(_ref) {
|
|
|
37815
36878
|
onMounted(() => {
|
|
37816
36879
|
watch(isSticky, (val2) => {
|
|
37817
36880
|
if (val2) {
|
|
37818
|
-
window.addEventListener("scroll",
|
|
36881
|
+
window.addEventListener("scroll", onScroll, {
|
|
37819
36882
|
passive: true
|
|
37820
36883
|
});
|
|
37821
36884
|
} else {
|
|
37822
|
-
window.removeEventListener("scroll",
|
|
36885
|
+
window.removeEventListener("scroll", onScroll);
|
|
37823
36886
|
}
|
|
37824
36887
|
}, {
|
|
37825
36888
|
immediate: true
|
|
37826
36889
|
});
|
|
37827
36890
|
});
|
|
37828
36891
|
onBeforeUnmount(() => {
|
|
37829
|
-
window.removeEventListener("scroll",
|
|
36892
|
+
window.removeEventListener("scroll", onScroll);
|
|
37830
36893
|
});
|
|
37831
36894
|
let lastScrollTop = 0;
|
|
37832
|
-
function
|
|
36895
|
+
function onScroll() {
|
|
37833
36896
|
const direction = lastScrollTop > window.scrollY ? "up" : "down";
|
|
37834
36897
|
const rect = rootEl.value.getBoundingClientRect();
|
|
37835
36898
|
const layoutTop = parseFloat(layoutItemStyles.value.top ?? 0);
|
|
@@ -37894,14 +36957,14 @@ function calculateImpulseVelocity(samples) {
|
|
|
37894
36957
|
function useVelocity() {
|
|
37895
36958
|
const touches = {};
|
|
37896
36959
|
function addMovement(e) {
|
|
37897
|
-
Array.from(e.changedTouches).forEach((
|
|
37898
|
-
const samples = touches[
|
|
37899
|
-
samples.push([e.timeStamp,
|
|
36960
|
+
Array.from(e.changedTouches).forEach((touch) => {
|
|
36961
|
+
const samples = touches[touch.identifier] ?? (touches[touch.identifier] = new CircularBuffer(HISTORY));
|
|
36962
|
+
samples.push([e.timeStamp, touch]);
|
|
37900
36963
|
});
|
|
37901
36964
|
}
|
|
37902
36965
|
function endTouch(e) {
|
|
37903
|
-
Array.from(e.changedTouches).forEach((
|
|
37904
|
-
delete touches[
|
|
36966
|
+
Array.from(e.changedTouches).forEach((touch) => {
|
|
36967
|
+
delete touches[touch.identifier];
|
|
37905
36968
|
});
|
|
37906
36969
|
}
|
|
37907
36970
|
function getVelocity(id) {
|
|
@@ -38333,231 +37396,113 @@ const VNavigationDrawer = genericComponent()({
|
|
|
38333
37396
|
};
|
|
38334
37397
|
}
|
|
38335
37398
|
});
|
|
38336
|
-
const _hoisted_1$2 = { class: "
|
|
38337
|
-
const _hoisted_2$1 =
|
|
38338
|
-
|
|
38339
|
-
|
|
38340
|
-
class: "logo-text text-h6 ms-2"
|
|
37399
|
+
const _hoisted_1$2 = { class: "pa-5" };
|
|
37400
|
+
const _hoisted_2$1 = {
|
|
37401
|
+
key: 0,
|
|
37402
|
+
class: "pa-4 text-center"
|
|
38341
37403
|
};
|
|
38342
|
-
const _hoisted_4$1 = ["src"];
|
|
38343
37404
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
38344
37405
|
__name: "AppSidebar",
|
|
38345
37406
|
props: {
|
|
38346
|
-
|
|
38347
|
-
|
|
38348
|
-
|
|
38349
|
-
|
|
38350
|
-
|
|
38351
|
-
|
|
38352
|
-
|
|
38353
|
-
|
|
38354
|
-
|
|
38355
|
-
|
|
38356
|
-
|
|
37407
|
+
sidebarItems: {
|
|
37408
|
+
type: Array,
|
|
37409
|
+
required: true
|
|
37410
|
+
},
|
|
37411
|
+
getFilteredSidebarItems: {
|
|
37412
|
+
type: Function,
|
|
37413
|
+
required: true
|
|
37414
|
+
},
|
|
37415
|
+
logoComponent: {
|
|
37416
|
+
type: Object,
|
|
37417
|
+
// Vue component
|
|
37418
|
+
required: true
|
|
37419
|
+
},
|
|
37420
|
+
sidebarDrawer: {
|
|
37421
|
+
type: Boolean,
|
|
37422
|
+
required: true
|
|
37423
|
+
},
|
|
37424
|
+
miniSidebar: {
|
|
37425
|
+
type: Boolean,
|
|
37426
|
+
required: true
|
|
37427
|
+
}
|
|
38357
37428
|
},
|
|
38358
|
-
|
|
37429
|
+
emits: ["update:sidebarDrawer"],
|
|
37430
|
+
setup(__props, { emit: __emit }) {
|
|
38359
37431
|
const props = __props;
|
|
38360
|
-
const
|
|
38361
|
-
const
|
|
38362
|
-
|
|
38363
|
-
|
|
38364
|
-
|
|
38365
|
-
|
|
38366
|
-
|
|
38367
|
-
});
|
|
38368
|
-
const navigationDrawerWidth = computed(
|
|
38369
|
-
() => isMini.value ? props.railWidth : props.width
|
|
38370
|
-
);
|
|
38371
|
-
const handleClick = (item) => {
|
|
38372
|
-
if (item.disabled) return;
|
|
38373
|
-
if (item.to) {
|
|
38374
|
-
router.push(item.to);
|
|
38375
|
-
} else if (item.href) {
|
|
38376
|
-
window.open(item.href, "_blank");
|
|
37432
|
+
const emit = __emit;
|
|
37433
|
+
const sidebarMenu = computed(() => {
|
|
37434
|
+
var _a;
|
|
37435
|
+
try {
|
|
37436
|
+
const filtered = (_a = props.getFilteredSidebarItems) == null ? void 0 : _a.call(props);
|
|
37437
|
+
if (Array.isArray(filtered)) return filtered;
|
|
37438
|
+
} catch {
|
|
38377
37439
|
}
|
|
38378
|
-
|
|
38379
|
-
|
|
38380
|
-
if (!item.to) return false;
|
|
38381
|
-
return route.path === item.to || route.path.startsWith(item.to + "/");
|
|
38382
|
-
};
|
|
38383
|
-
const expandOnHover = computed(() => isMini.value && !drawer.value);
|
|
37440
|
+
return props.sidebarItems;
|
|
37441
|
+
});
|
|
38384
37442
|
return (_ctx, _cache) => {
|
|
37443
|
+
const _component_perfect_scrollbar = resolveComponent("perfect-scrollbar");
|
|
38385
37444
|
return openBlock(), createBlock(VNavigationDrawer, {
|
|
38386
|
-
|
|
38387
|
-
"
|
|
38388
|
-
|
|
38389
|
-
|
|
38390
|
-
rail:
|
|
38391
|
-
"
|
|
38392
|
-
|
|
38393
|
-
|
|
38394
|
-
class: normalizeClass([
|
|
37445
|
+
right: "",
|
|
37446
|
+
"model-value": __props.sidebarDrawer,
|
|
37447
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:sidebarDrawer", $event)),
|
|
37448
|
+
elevation: "0",
|
|
37449
|
+
"rail-width": "80",
|
|
37450
|
+
"mobile-breakpoint": "lg",
|
|
37451
|
+
app: "",
|
|
37452
|
+
rail: __props.miniSidebar,
|
|
37453
|
+
class: normalizeClass(["rightSidebar", { "sidebar-closed": !__props.sidebarDrawer }])
|
|
38395
37454
|
}, {
|
|
38396
37455
|
default: withCtx(() => [
|
|
38397
37456
|
createElementVNode("div", _hoisted_1$2, [
|
|
38398
|
-
|
|
38399
|
-
__props.logo && !isMini.value ? (openBlock(), createElementBlock("img", {
|
|
38400
|
-
key: 0,
|
|
38401
|
-
src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
|
|
38402
|
-
alt: "Logo",
|
|
38403
|
-
class: "logo-img",
|
|
38404
|
-
style: { "max-height": "40px", "max-width": "100%" }
|
|
38405
|
-
}, null, 8, _hoisted_2$1)) : createCommentVNode("", true),
|
|
38406
|
-
__props.logoText && !isMini.value ? (openBlock(), createElementBlock("span", _hoisted_3$1, toDisplayString(__props.logoText), 1)) : createCommentVNode("", true),
|
|
38407
|
-
__props.logo && isMini.value ? (openBlock(), createElementBlock("img", {
|
|
38408
|
-
key: 2,
|
|
38409
|
-
src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
|
|
38410
|
-
alt: "Logo",
|
|
38411
|
-
class: "logo-img-mini",
|
|
38412
|
-
style: { "height": "40px", "width": "40px", "object-fit": "contain" }
|
|
38413
|
-
}, null, 8, _hoisted_4$1)) : createCommentVNode("", true)
|
|
38414
|
-
], 64)) : (openBlock(), createBlock(VSpacer, { key: 1 }))
|
|
37457
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.logoComponent)))
|
|
38415
37458
|
]),
|
|
38416
|
-
createVNode(
|
|
38417
|
-
createVNode(unref(C), {
|
|
38418
|
-
class: "scrollnavbar",
|
|
38419
|
-
options: { wheelSpeed: 1, swipeEasing: true, suppressScrollX: true }
|
|
38420
|
-
}, {
|
|
37459
|
+
createVNode(_component_perfect_scrollbar, { class: "scrollnavbar" }, {
|
|
38421
37460
|
default: withCtx(() => [
|
|
38422
|
-
createVNode(VList, {
|
|
38423
|
-
lines: false,
|
|
38424
|
-
class: "pa-0"
|
|
38425
|
-
}, {
|
|
37461
|
+
createVNode(VList, { class: "pa-4" }, {
|
|
38426
37462
|
default: withCtx(() => [
|
|
38427
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
38428
|
-
return openBlock(), createElementBlock(Fragment, { key:
|
|
38429
|
-
item.
|
|
37463
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sidebarMenu.value, (item, i) => {
|
|
37464
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37465
|
+
item.header ? (openBlock(), createBlock(_sfc_main$3, {
|
|
38430
37466
|
key: 0,
|
|
38431
|
-
|
|
38432
|
-
})) : item.
|
|
37467
|
+
item
|
|
37468
|
+
}, null, 8, ["item"])) : item.divider ? (openBlock(), createBlock(VDivider, {
|
|
38433
37469
|
key: 1,
|
|
38434
|
-
|
|
38435
|
-
}, {
|
|
38436
|
-
activator: withCtx(({ props: groupProps }) => [
|
|
38437
|
-
createVNode(VListItem, mergeProps({ ref_for: true }, groupProps, {
|
|
38438
|
-
disabled: item.disabled,
|
|
38439
|
-
"prepend-icon": item.icon
|
|
38440
|
-
}), createSlots({
|
|
38441
|
-
default: withCtx(() => [
|
|
38442
|
-
createVNode(VListItemTitle, null, {
|
|
38443
|
-
default: withCtx(() => [
|
|
38444
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
38445
|
-
]),
|
|
38446
|
-
_: 2
|
|
38447
|
-
}, 1024)
|
|
38448
|
-
]),
|
|
38449
|
-
_: 2
|
|
38450
|
-
}, [
|
|
38451
|
-
item.chip ? {
|
|
38452
|
-
name: "append",
|
|
38453
|
-
fn: withCtx(() => [
|
|
38454
|
-
createVNode(VChip, {
|
|
38455
|
-
color: item.chip.color || "primary",
|
|
38456
|
-
size: "small",
|
|
38457
|
-
class: "ms-2"
|
|
38458
|
-
}, {
|
|
38459
|
-
default: withCtx(() => [
|
|
38460
|
-
createTextVNode(toDisplayString(item.chip.content), 1)
|
|
38461
|
-
]),
|
|
38462
|
-
_: 2
|
|
38463
|
-
}, 1032, ["color"])
|
|
38464
|
-
]),
|
|
38465
|
-
key: "0"
|
|
38466
|
-
} : void 0
|
|
38467
|
-
]), 1040, ["disabled", "prepend-icon"])
|
|
38468
|
-
]),
|
|
38469
|
-
default: withCtx(() => [
|
|
38470
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.items, (child, childIndex) => {
|
|
38471
|
-
return openBlock(), createBlock(VListItem, {
|
|
38472
|
-
key: childIndex,
|
|
38473
|
-
to: child.to,
|
|
38474
|
-
href: child.href,
|
|
38475
|
-
disabled: child.disabled,
|
|
38476
|
-
active: isActive(child),
|
|
38477
|
-
"prepend-icon": child.icon,
|
|
38478
|
-
onClick: ($event) => handleClick(child)
|
|
38479
|
-
}, createSlots({
|
|
38480
|
-
default: withCtx(() => [
|
|
38481
|
-
createVNode(VListItemTitle, null, {
|
|
38482
|
-
default: withCtx(() => [
|
|
38483
|
-
createTextVNode(toDisplayString(child.title), 1)
|
|
38484
|
-
]),
|
|
38485
|
-
_: 2
|
|
38486
|
-
}, 1024)
|
|
38487
|
-
]),
|
|
38488
|
-
_: 2
|
|
38489
|
-
}, [
|
|
38490
|
-
child.chip ? {
|
|
38491
|
-
name: "append",
|
|
38492
|
-
fn: withCtx(() => [
|
|
38493
|
-
createVNode(VChip, {
|
|
38494
|
-
color: child.chip.color || "primary",
|
|
38495
|
-
size: "small",
|
|
38496
|
-
class: "ms-2"
|
|
38497
|
-
}, {
|
|
38498
|
-
default: withCtx(() => [
|
|
38499
|
-
createTextVNode(toDisplayString(child.chip.content), 1)
|
|
38500
|
-
]),
|
|
38501
|
-
_: 2
|
|
38502
|
-
}, 1032, ["color"])
|
|
38503
|
-
]),
|
|
38504
|
-
key: "0"
|
|
38505
|
-
} : void 0
|
|
38506
|
-
]), 1032, ["to", "href", "disabled", "active", "prepend-icon", "onClick"]);
|
|
38507
|
-
}), 128))
|
|
38508
|
-
]),
|
|
38509
|
-
_: 2
|
|
38510
|
-
}, 1032, ["value"])) : (openBlock(), createBlock(VListItem, {
|
|
37470
|
+
class: "my-3"
|
|
37471
|
+
})) : item.children ? (openBlock(), createBlock(_sfc_main$4, {
|
|
38511
37472
|
key: 2,
|
|
38512
|
-
|
|
38513
|
-
|
|
38514
|
-
|
|
38515
|
-
|
|
38516
|
-
|
|
38517
|
-
|
|
38518
|
-
|
|
38519
|
-
|
|
38520
|
-
createVNode(VListItemTitle, null, {
|
|
38521
|
-
default: withCtx(() => [
|
|
38522
|
-
createTextVNode(toDisplayString(item.title), 1)
|
|
38523
|
-
]),
|
|
38524
|
-
_: 2
|
|
38525
|
-
}, 1024)
|
|
38526
|
-
]),
|
|
38527
|
-
_: 2
|
|
38528
|
-
}, [
|
|
38529
|
-
item.chip ? {
|
|
38530
|
-
name: "append",
|
|
38531
|
-
fn: withCtx(() => [
|
|
38532
|
-
createVNode(VChip, {
|
|
38533
|
-
color: item.chip.color || "primary",
|
|
38534
|
-
size: "small",
|
|
38535
|
-
class: "ms-2"
|
|
38536
|
-
}, {
|
|
38537
|
-
default: withCtx(() => [
|
|
38538
|
-
createTextVNode(toDisplayString(item.chip.content), 1)
|
|
38539
|
-
]),
|
|
38540
|
-
_: 2
|
|
38541
|
-
}, 1032, ["color"])
|
|
38542
|
-
]),
|
|
38543
|
-
key: "0"
|
|
38544
|
-
} : void 0
|
|
38545
|
-
]), 1032, ["to", "href", "disabled", "active", "prepend-icon", "onClick"]))
|
|
37473
|
+
item,
|
|
37474
|
+
level: 0,
|
|
37475
|
+
class: "leftPadding"
|
|
37476
|
+
}, null, 8, ["item"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
37477
|
+
key: 3,
|
|
37478
|
+
item,
|
|
37479
|
+
class: "leftPadding"
|
|
37480
|
+
}, null, 8, ["item"]))
|
|
38546
37481
|
], 64);
|
|
38547
37482
|
}), 128))
|
|
38548
37483
|
]),
|
|
38549
37484
|
_: 1
|
|
38550
|
-
})
|
|
37485
|
+
}),
|
|
37486
|
+
__props.sidebarDrawer ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
37487
|
+
createVNode(VChip, {
|
|
37488
|
+
color: "inputBorder",
|
|
37489
|
+
size: "small"
|
|
37490
|
+
}, {
|
|
37491
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
37492
|
+
createTextVNode("نمایشی", -1)
|
|
37493
|
+
])]),
|
|
37494
|
+
_: 1
|
|
37495
|
+
})
|
|
37496
|
+
])) : createCommentVNode("", true)
|
|
38551
37497
|
]),
|
|
38552
37498
|
_: 1
|
|
38553
37499
|
})
|
|
38554
37500
|
]),
|
|
38555
37501
|
_: 1
|
|
38556
|
-
}, 8, ["
|
|
37502
|
+
}, 8, ["model-value", "rail", "class"]);
|
|
38557
37503
|
};
|
|
38558
37504
|
}
|
|
38559
37505
|
});
|
|
38560
|
-
const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-b3040226"]]);
|
|
38561
37506
|
const makeVToolbarTitleProps = propsFactory({
|
|
38562
37507
|
text: String,
|
|
38563
37508
|
...makeComponentProps(),
|
|
@@ -38766,7 +37711,7 @@ function useScroll(props) {
|
|
|
38766
37711
|
const scrollRatio = computed(() => {
|
|
38767
37712
|
return clamp((scrollThreshold.value - currentScroll.value) / scrollThreshold.value || 0);
|
|
38768
37713
|
});
|
|
38769
|
-
const
|
|
37714
|
+
const onScroll = () => {
|
|
38770
37715
|
const targetEl = target.value;
|
|
38771
37716
|
if (!targetEl || canScroll && !canScroll.value) return;
|
|
38772
37717
|
previousScroll = currentScroll.value;
|
|
@@ -38794,9 +37739,9 @@ function useScroll(props) {
|
|
|
38794
37739
|
return;
|
|
38795
37740
|
}
|
|
38796
37741
|
if (newTarget === target.value) return;
|
|
38797
|
-
(_a = target.value) == null ? void 0 : _a.removeEventListener("scroll",
|
|
37742
|
+
(_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
|
38798
37743
|
target.value = newTarget;
|
|
38799
|
-
target.value.addEventListener("scroll",
|
|
37744
|
+
target.value.addEventListener("scroll", onScroll, {
|
|
38800
37745
|
passive: true
|
|
38801
37746
|
});
|
|
38802
37747
|
}, {
|
|
@@ -38805,9 +37750,9 @@ function useScroll(props) {
|
|
|
38805
37750
|
});
|
|
38806
37751
|
onBeforeUnmount(() => {
|
|
38807
37752
|
var _a;
|
|
38808
|
-
(_a = target.value) == null ? void 0 : _a.removeEventListener("scroll",
|
|
37753
|
+
(_a = target.value) == null ? void 0 : _a.removeEventListener("scroll", onScroll);
|
|
38809
37754
|
});
|
|
38810
|
-
canScroll && watch(canScroll,
|
|
37755
|
+
canScroll && watch(canScroll, onScroll, {
|
|
38811
37756
|
immediate: true
|
|
38812
37757
|
});
|
|
38813
37758
|
return {
|
|
@@ -39503,7 +38448,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
39503
38448
|
return openBlock(), createBlock(VApp, null, {
|
|
39504
38449
|
default: withCtx(() => [
|
|
39505
38450
|
createVNode(AppHeader, mergeProps(__props.header, { class: "app-header" }), null, 16),
|
|
39506
|
-
createVNode(
|
|
38451
|
+
createVNode(_sfc_main$2, mergeProps(__props.sidebar, { class: "app-sidebar" }), null, 16),
|
|
39507
38452
|
createVNode(VMain, null, {
|
|
39508
38453
|
default: withCtx(() => [
|
|
39509
38454
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -40081,28 +39026,28 @@ const index = {
|
|
|
40081
39026
|
export {
|
|
40082
39027
|
AppHeader,
|
|
40083
39028
|
AppLayout,
|
|
40084
|
-
AppSidebar,
|
|
39029
|
+
_sfc_main$2 as AppSidebar,
|
|
40085
39030
|
AppStepper,
|
|
40086
|
-
_sfc_main$
|
|
40087
|
-
_sfc_main$
|
|
39031
|
+
_sfc_main$l as BaseBreadcrumb,
|
|
39032
|
+
_sfc_main$k as BaseIcon,
|
|
40088
39033
|
BooleanEnum,
|
|
40089
39034
|
BooleanEnumOptions,
|
|
40090
|
-
_sfc_main$
|
|
39035
|
+
_sfc_main$j as ConfirmDialog,
|
|
40091
39036
|
CustomAutocomplete,
|
|
40092
|
-
_sfc_main$
|
|
39037
|
+
_sfc_main$f as CustomDataTable,
|
|
40093
39038
|
DateConverter,
|
|
40094
39039
|
DescriptionInput,
|
|
40095
39040
|
DigitLimit,
|
|
40096
39041
|
DownloadButton,
|
|
40097
39042
|
GreetingUtils,
|
|
40098
39043
|
Loading,
|
|
40099
|
-
_sfc_main$
|
|
39044
|
+
_sfc_main$h as MoneyInput,
|
|
40100
39045
|
NationalCodeValidator,
|
|
40101
39046
|
PdfViewer,
|
|
40102
39047
|
ShamsiDatePicker,
|
|
40103
|
-
_sfc_main$
|
|
40104
|
-
_sfc_main$
|
|
40105
|
-
_sfc_main$
|
|
39048
|
+
_sfc_main$b as UiChildCard,
|
|
39049
|
+
_sfc_main$a as UiParentCard,
|
|
39050
|
+
_sfc_main$9 as VPriceTextField,
|
|
40106
39051
|
configureAuth,
|
|
40107
39052
|
configureAxiosInstance,
|
|
40108
39053
|
index as default,
|