framework7 8.1.0 → 8.2.0
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/components/input/input-ios.less +3 -0
- package/components/input/input-rtl.css +1 -1
- package/components/input/input.css +1 -1
- package/components/panel/panel-rtl.css +1 -1
- package/components/panel/panel.css +1 -1
- package/components/panel/panel.less +7 -2
- package/components/panel/resizable-panel.js +6 -5
- package/components/swiper/swiper-rtl.css +1 -1
- package/components/swiper/swiper.css +1 -1
- package/components/swiper/swiper.less +1 -1
- package/framework7-bundle-rtl.css +126 -79
- package/framework7-bundle-rtl.min.css +3 -3
- package/framework7-bundle.css +126 -79
- package/framework7-bundle.esm.js +2 -2
- package/framework7-bundle.js +867 -683
- package/framework7-bundle.js.map +1 -1
- package/framework7-bundle.less +2 -2
- package/framework7-bundle.min.css +3 -3
- package/framework7-bundle.min.js +3 -3
- package/framework7-bundle.min.js.map +1 -1
- package/framework7-lite-bundle.esm.js +2 -2
- package/framework7-lite.esm.js +2 -2
- package/framework7-rtl.css +2 -2
- package/framework7-rtl.min.css +2 -2
- package/framework7.css +2 -2
- package/framework7.esm.js +2 -2
- package/framework7.less +2 -2
- package/framework7.min.css +2 -2
- package/package.json +3 -3
package/framework7-bundle.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Framework7 8.
|
|
2
|
+
* Framework7 8.2.0
|
|
3
3
|
* Full featured mobile HTML framework for building iOS & Android apps
|
|
4
4
|
* https://framework7.io/
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: July 6, 2023
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function (global, factory) {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
* Released on: December 13, 2021
|
|
29
29
|
*/
|
|
30
30
|
/* eslint-disable no-param-reassign */
|
|
31
|
-
function isObject$
|
|
31
|
+
function isObject$4(obj) {
|
|
32
32
|
return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
|
|
33
33
|
}
|
|
34
|
-
function extend$
|
|
34
|
+
function extend$4(target, src) {
|
|
35
35
|
if (target === void 0) {
|
|
36
36
|
target = {};
|
|
37
37
|
}
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
src = {};
|
|
40
40
|
}
|
|
41
41
|
Object.keys(src).forEach(key => {
|
|
42
|
-
if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$
|
|
43
|
-
extend$
|
|
42
|
+
if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$4(src[key]) && isObject$4(target[key]) && Object.keys(src[key]).length > 0) {
|
|
43
|
+
extend$4(target[key], src[key]);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
const ssrDocument = {
|
|
47
|
+
const ssrDocument$1 = {
|
|
48
48
|
body: {},
|
|
49
49
|
addEventListener() {},
|
|
50
50
|
removeEventListener() {},
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
search: ''
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
function getDocument() {
|
|
97
|
+
function getDocument$1() {
|
|
98
98
|
const doc = typeof document !== 'undefined' ? document : {};
|
|
99
|
-
extend$
|
|
99
|
+
extend$4(doc, ssrDocument$1);
|
|
100
100
|
return doc;
|
|
101
101
|
}
|
|
102
|
-
const ssrWindow = {
|
|
103
|
-
document: ssrDocument,
|
|
102
|
+
const ssrWindow$1 = {
|
|
103
|
+
document: ssrDocument$1,
|
|
104
104
|
navigator: {
|
|
105
105
|
userAgent: ''
|
|
106
106
|
},
|
|
@@ -154,9 +154,9 @@
|
|
|
154
154
|
clearTimeout(id);
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
function getWindow() {
|
|
157
|
+
function getWindow$1() {
|
|
158
158
|
const win = typeof window !== 'undefined' ? window : {};
|
|
159
|
-
extend$
|
|
159
|
+
extend$4(win, ssrWindow$1);
|
|
160
160
|
return win;
|
|
161
161
|
}
|
|
162
162
|
|
|
@@ -236,8 +236,8 @@
|
|
|
236
236
|
return a;
|
|
237
237
|
}
|
|
238
238
|
function $$1(selector, context) {
|
|
239
|
-
const window = getWindow();
|
|
240
|
-
const document = getDocument();
|
|
239
|
+
const window = getWindow$1();
|
|
240
|
+
const document = getDocument$1();
|
|
241
241
|
let arr = [];
|
|
242
242
|
if (!context && selector instanceof Dom7) {
|
|
243
243
|
return selector;
|
|
@@ -585,7 +585,7 @@
|
|
|
585
585
|
return dom.on(eventName, targetSelector, onceHandler, capture);
|
|
586
586
|
}
|
|
587
587
|
function trigger() {
|
|
588
|
-
const window = getWindow();
|
|
588
|
+
const window = getWindow$1();
|
|
589
589
|
for (var _len9 = arguments.length, args = new Array(_len9), _key9 = 0; _key9 < _len9; _key9++) {
|
|
590
590
|
args[_key9] = arguments[_key9];
|
|
591
591
|
}
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
return this;
|
|
648
648
|
}
|
|
649
649
|
function width() {
|
|
650
|
-
const window = getWindow();
|
|
650
|
+
const window = getWindow$1();
|
|
651
651
|
if (this[0] === window) {
|
|
652
652
|
return window.innerWidth;
|
|
653
653
|
}
|
|
@@ -667,7 +667,7 @@
|
|
|
667
667
|
return null;
|
|
668
668
|
}
|
|
669
669
|
function height() {
|
|
670
|
-
const window = getWindow();
|
|
670
|
+
const window = getWindow$1();
|
|
671
671
|
if (this[0] === window) {
|
|
672
672
|
return window.innerHeight;
|
|
673
673
|
}
|
|
@@ -688,8 +688,8 @@
|
|
|
688
688
|
}
|
|
689
689
|
function offset() {
|
|
690
690
|
if (this.length > 0) {
|
|
691
|
-
const window = getWindow();
|
|
692
|
-
const document = getDocument();
|
|
691
|
+
const window = getWindow$1();
|
|
692
|
+
const document = getDocument$1();
|
|
693
693
|
const el = this[0];
|
|
694
694
|
const box = el.getBoundingClientRect();
|
|
695
695
|
const body = document.body;
|
|
@@ -711,7 +711,7 @@
|
|
|
711
711
|
return this;
|
|
712
712
|
}
|
|
713
713
|
function show() {
|
|
714
|
-
const window = getWindow();
|
|
714
|
+
const window = getWindow$1();
|
|
715
715
|
for (let i = 0; i < this.length; i += 1) {
|
|
716
716
|
const el = this[i];
|
|
717
717
|
if (el.style.display === 'none') {
|
|
@@ -725,12 +725,12 @@
|
|
|
725
725
|
return this;
|
|
726
726
|
}
|
|
727
727
|
function styles() {
|
|
728
|
-
const window = getWindow();
|
|
728
|
+
const window = getWindow$1();
|
|
729
729
|
if (this[0]) return window.getComputedStyle(this[0], null);
|
|
730
730
|
return {};
|
|
731
731
|
}
|
|
732
732
|
function css(props, value) {
|
|
733
|
-
const window = getWindow();
|
|
733
|
+
const window = getWindow$1();
|
|
734
734
|
let i;
|
|
735
735
|
if (arguments.length === 1) {
|
|
736
736
|
if (typeof props === 'string') {
|
|
@@ -785,8 +785,8 @@
|
|
|
785
785
|
return this;
|
|
786
786
|
}
|
|
787
787
|
function is(selector) {
|
|
788
|
-
const window = getWindow();
|
|
789
|
-
const document = getDocument();
|
|
788
|
+
const window = getWindow$1();
|
|
789
|
+
const document = getDocument$1();
|
|
790
790
|
const el = this[0];
|
|
791
791
|
let compareWith;
|
|
792
792
|
let i;
|
|
@@ -844,7 +844,7 @@
|
|
|
844
844
|
}
|
|
845
845
|
function append() {
|
|
846
846
|
let newChild;
|
|
847
|
-
const document = getDocument();
|
|
847
|
+
const document = getDocument$1();
|
|
848
848
|
for (let k = 0; k < arguments.length; k += 1) {
|
|
849
849
|
newChild = k < 0 || arguments.length <= k ? undefined : arguments[k];
|
|
850
850
|
for (let i = 0; i < this.length; i += 1) {
|
|
@@ -870,7 +870,7 @@
|
|
|
870
870
|
return this;
|
|
871
871
|
}
|
|
872
872
|
function prepend(newChild) {
|
|
873
|
-
const document = getDocument();
|
|
873
|
+
const document = getDocument$1();
|
|
874
874
|
let i;
|
|
875
875
|
let j;
|
|
876
876
|
for (i = 0; i < this.length; i += 1) {
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
// eslint-disable-next-line
|
|
1084
1084
|
|
|
1085
1085
|
function scrollTo() {
|
|
1086
|
-
const window = getWindow();
|
|
1086
|
+
const window = getWindow$1();
|
|
1087
1087
|
for (var _len11 = arguments.length, args = new Array(_len11), _key11 = 0; _key11 < _len11; _key11++) {
|
|
1088
1088
|
args[_key11] = arguments[_key11];
|
|
1089
1089
|
}
|
|
@@ -1208,7 +1208,7 @@
|
|
|
1208
1208
|
// eslint-disable-next-line
|
|
1209
1209
|
|
|
1210
1210
|
function animate(initialProps, initialParams) {
|
|
1211
|
-
const window = getWindow();
|
|
1211
|
+
const window = getWindow$1();
|
|
1212
1212
|
const els = this;
|
|
1213
1213
|
const a = {
|
|
1214
1214
|
props: Object.assign({}, initialProps),
|
|
@@ -2408,11 +2408,11 @@
|
|
|
2408
2408
|
});
|
|
2409
2409
|
}
|
|
2410
2410
|
function requestAnimationFrame$1(callback) {
|
|
2411
|
-
const window = getWindow();
|
|
2411
|
+
const window = getWindow$1();
|
|
2412
2412
|
return window.requestAnimationFrame(callback);
|
|
2413
2413
|
}
|
|
2414
2414
|
function cancelAnimationFrame$1(frameId) {
|
|
2415
|
-
const window = getWindow();
|
|
2415
|
+
const window = getWindow$1();
|
|
2416
2416
|
return window.cancelAnimationFrame(frameId);
|
|
2417
2417
|
}
|
|
2418
2418
|
function nextTick$1(callback, delay) {
|
|
@@ -2430,7 +2430,7 @@
|
|
|
2430
2430
|
return Date.now();
|
|
2431
2431
|
}
|
|
2432
2432
|
function parseUrlQuery(url) {
|
|
2433
|
-
const window = getWindow();
|
|
2433
|
+
const window = getWindow$1();
|
|
2434
2434
|
const query = {};
|
|
2435
2435
|
let urlToParse = url || window.location.href;
|
|
2436
2436
|
let i;
|
|
@@ -2452,7 +2452,7 @@
|
|
|
2452
2452
|
if (axis === void 0) {
|
|
2453
2453
|
axis = 'x';
|
|
2454
2454
|
}
|
|
2455
|
-
const window = getWindow();
|
|
2455
|
+
const window = getWindow$1();
|
|
2456
2456
|
let matrix;
|
|
2457
2457
|
let curTransform;
|
|
2458
2458
|
let transformMatrix;
|
|
@@ -2539,7 +2539,7 @@
|
|
|
2539
2539
|
|
|
2540
2540
|
return resultArray.join(separator);
|
|
2541
2541
|
}
|
|
2542
|
-
function isObject$
|
|
2542
|
+
function isObject$3(o) {
|
|
2543
2543
|
return typeof o === 'object' && o !== null && o.constructor && o.constructor === Object;
|
|
2544
2544
|
}
|
|
2545
2545
|
function merge() {
|
|
@@ -2564,7 +2564,7 @@
|
|
|
2564
2564
|
}
|
|
2565
2565
|
return to;
|
|
2566
2566
|
}
|
|
2567
|
-
function extend$
|
|
2567
|
+
function extend$3() {
|
|
2568
2568
|
let deep = true;
|
|
2569
2569
|
let to;
|
|
2570
2570
|
let from;
|
|
@@ -2591,11 +2591,11 @@
|
|
|
2591
2591
|
if (desc !== undefined && desc.enumerable) {
|
|
2592
2592
|
if (!deep) {
|
|
2593
2593
|
to[nextKey] = nextSource[nextKey];
|
|
2594
|
-
} else if (isObject$
|
|
2595
|
-
extend$
|
|
2596
|
-
} else if (!isObject$
|
|
2594
|
+
} else if (isObject$3(to[nextKey]) && isObject$3(nextSource[nextKey])) {
|
|
2595
|
+
extend$3(to[nextKey], nextSource[nextKey]);
|
|
2596
|
+
} else if (!isObject$3(to[nextKey]) && isObject$3(nextSource[nextKey])) {
|
|
2597
2597
|
to[nextKey] = {};
|
|
2598
|
-
extend$
|
|
2598
|
+
extend$3(to[nextKey], nextSource[nextKey]);
|
|
2599
2599
|
} else {
|
|
2600
2600
|
to[nextKey] = nextSource[nextKey];
|
|
2601
2601
|
}
|
|
@@ -2748,7 +2748,7 @@
|
|
|
2748
2748
|
}
|
|
2749
2749
|
function bindMethods(instance, obj) {
|
|
2750
2750
|
Object.keys(obj).forEach(key => {
|
|
2751
|
-
if (isObject$
|
|
2751
|
+
if (isObject$3(obj[key])) {
|
|
2752
2752
|
Object.keys(obj[key]).forEach(subKey => {
|
|
2753
2753
|
if (typeof obj[key][subKey] === 'function') {
|
|
2754
2754
|
obj[key][subKey] = obj[key][subKey].bind(instance);
|
|
@@ -2903,12 +2903,12 @@
|
|
|
2903
2903
|
colorThemeCSSStyles: colorThemeCSSStyles,
|
|
2904
2904
|
deleteProps: deleteProps$1,
|
|
2905
2905
|
eventNameToColonCase: eventNameToColonCase,
|
|
2906
|
-
extend: extend$
|
|
2906
|
+
extend: extend$3,
|
|
2907
2907
|
flattenArray: flattenArray,
|
|
2908
2908
|
getTranslate: getTranslate$1,
|
|
2909
2909
|
id: id$1,
|
|
2910
2910
|
iosPreloaderContent: iosPreloaderContent,
|
|
2911
|
-
isObject: isObject$
|
|
2911
|
+
isObject: isObject$3,
|
|
2912
2912
|
mdPreloaderContent: mdPreloaderContent,
|
|
2913
2913
|
merge: merge,
|
|
2914
2914
|
nextFrame: nextFrame$1,
|
|
@@ -2922,8 +2922,8 @@
|
|
|
2922
2922
|
|
|
2923
2923
|
let support$1;
|
|
2924
2924
|
function calcSupport$1() {
|
|
2925
|
-
const window = getWindow();
|
|
2926
|
-
const document = getDocument();
|
|
2925
|
+
const window = getWindow$1();
|
|
2926
|
+
const document = getDocument$1();
|
|
2927
2927
|
return {
|
|
2928
2928
|
touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch),
|
|
2929
2929
|
pointerEvents: !!window.PointerEvent && 'maxTouchPoints' in window.navigator && window.navigator.maxTouchPoints >= 0,
|
|
@@ -2960,7 +2960,7 @@
|
|
|
2960
2960
|
userAgent
|
|
2961
2961
|
} = _temp === void 0 ? {} : _temp;
|
|
2962
2962
|
const support = getSupport$1();
|
|
2963
|
-
const window = getWindow();
|
|
2963
|
+
const window = getWindow$1();
|
|
2964
2964
|
const platform = window.navigator.platform;
|
|
2965
2965
|
const ua = userAgent || window.navigator.userAgent;
|
|
2966
2966
|
const device = {
|
|
@@ -3206,11 +3206,11 @@
|
|
|
3206
3206
|
const originalParams = {};
|
|
3207
3207
|
Object.keys(module.params).forEach(paramKey => {
|
|
3208
3208
|
if (typeof instanceParams[paramKey] === 'undefined') return;
|
|
3209
|
-
originalParams[paramKey] = extend$
|
|
3209
|
+
originalParams[paramKey] = extend$3({}, instanceParams[paramKey]);
|
|
3210
3210
|
});
|
|
3211
|
-
extend$
|
|
3211
|
+
extend$3(instanceParams, module.params);
|
|
3212
3212
|
Object.keys(originalParams).forEach(paramKey => {
|
|
3213
|
-
extend$
|
|
3213
|
+
extend$3(instanceParams[paramKey], originalParams[paramKey]);
|
|
3214
3214
|
});
|
|
3215
3215
|
}
|
|
3216
3216
|
}
|
|
@@ -3221,7 +3221,7 @@
|
|
|
3221
3221
|
const module = instance.modules[moduleName];
|
|
3222
3222
|
// Extend params
|
|
3223
3223
|
if (module.params) {
|
|
3224
|
-
extend$
|
|
3224
|
+
extend$3(instanceParams, module.params);
|
|
3225
3225
|
}
|
|
3226
3226
|
});
|
|
3227
3227
|
}
|
|
@@ -3387,7 +3387,7 @@
|
|
|
3387
3387
|
constructor: Constructor,
|
|
3388
3388
|
app
|
|
3389
3389
|
} = parameters;
|
|
3390
|
-
const methods = extend$
|
|
3390
|
+
const methods = extend$3(ConstructorMethods({
|
|
3391
3391
|
defaultSelector,
|
|
3392
3392
|
constructor: Constructor,
|
|
3393
3393
|
app,
|
|
@@ -3459,8 +3459,8 @@
|
|
|
3459
3459
|
const fetchedModules = [];
|
|
3460
3460
|
function loadModule(moduleToLoad) {
|
|
3461
3461
|
const Framework7 = this;
|
|
3462
|
-
const window = getWindow();
|
|
3463
|
-
const document = getDocument();
|
|
3462
|
+
const window = getWindow$1();
|
|
3463
|
+
const document = getDocument$1();
|
|
3464
3464
|
return new Promise((resolve, reject) => {
|
|
3465
3465
|
const app = Framework7.instance;
|
|
3466
3466
|
let modulePath;
|
|
@@ -3614,14 +3614,14 @@
|
|
|
3614
3614
|
userAgent: params.userAgent || undefined
|
|
3615
3615
|
});
|
|
3616
3616
|
const support = getSupport$1();
|
|
3617
|
-
const passedParams = extend$
|
|
3617
|
+
const passedParams = extend$3({}, params);
|
|
3618
3618
|
|
|
3619
3619
|
// App Instance
|
|
3620
3620
|
const app = this;
|
|
3621
3621
|
app.device = device;
|
|
3622
3622
|
app.support = support;
|
|
3623
|
-
const w = getWindow();
|
|
3624
|
-
const d = getDocument();
|
|
3623
|
+
const w = getWindow$1();
|
|
3624
|
+
const d = getDocument$1();
|
|
3625
3625
|
Framework7.instance = app;
|
|
3626
3626
|
|
|
3627
3627
|
// Default
|
|
@@ -3663,8 +3663,8 @@
|
|
|
3663
3663
|
app.useModulesParams(defaults);
|
|
3664
3664
|
|
|
3665
3665
|
// Extend defaults with passed params
|
|
3666
|
-
app.params = extend$
|
|
3667
|
-
extend$
|
|
3666
|
+
app.params = extend$3(defaults, params);
|
|
3667
|
+
extend$3(app, {
|
|
3668
3668
|
// App Name
|
|
3669
3669
|
name: app.params.name,
|
|
3670
3670
|
// Routes
|
|
@@ -3718,7 +3718,7 @@
|
|
|
3718
3718
|
}
|
|
3719
3719
|
setColors() {
|
|
3720
3720
|
const app = this;
|
|
3721
|
-
const document = getDocument();
|
|
3721
|
+
const document = getDocument$1();
|
|
3722
3722
|
if (!app.colorsStyleEl) {
|
|
3723
3723
|
app.colorsStyleEl = document.createElement('style');
|
|
3724
3724
|
document.head.appendChild(app.colorsStyleEl);
|
|
@@ -3727,8 +3727,8 @@
|
|
|
3727
3727
|
}
|
|
3728
3728
|
mount(rootEl) {
|
|
3729
3729
|
const app = this;
|
|
3730
|
-
const window = getWindow();
|
|
3731
|
-
const document = getDocument();
|
|
3730
|
+
const window = getWindow$1();
|
|
3731
|
+
const document = getDocument$1();
|
|
3732
3732
|
const $rootEl = $(rootEl || app.params.el).eq(0);
|
|
3733
3733
|
app.$el = $rootEl;
|
|
3734
3734
|
if (app.$el && app.$el[0]) {
|
|
@@ -3775,8 +3775,8 @@
|
|
|
3775
3775
|
}
|
|
3776
3776
|
}
|
|
3777
3777
|
enableAutoDarkMode() {
|
|
3778
|
-
const window = getWindow();
|
|
3779
|
-
const document = getDocument();
|
|
3778
|
+
const window = getWindow$1();
|
|
3779
|
+
const document = getDocument$1();
|
|
3780
3780
|
if (!window.matchMedia) return;
|
|
3781
3781
|
const app = this;
|
|
3782
3782
|
const html = document.querySelector('html');
|
|
@@ -3795,7 +3795,7 @@
|
|
|
3795
3795
|
}
|
|
3796
3796
|
}
|
|
3797
3797
|
disableAutoDarkMode() {
|
|
3798
|
-
const window = getWindow();
|
|
3798
|
+
const window = getWindow$1();
|
|
3799
3799
|
if (!window.matchMedia) return;
|
|
3800
3800
|
const app = this;
|
|
3801
3801
|
if (app.mq.dark) app.mq.dark.removeListener(app.colorSchemeListener);
|
|
@@ -3846,7 +3846,7 @@
|
|
|
3846
3846
|
}
|
|
3847
3847
|
|
|
3848
3848
|
// Watch for online/offline state
|
|
3849
|
-
const window = getWindow();
|
|
3849
|
+
const window = getWindow$1();
|
|
3850
3850
|
window.addEventListener('offline', () => {
|
|
3851
3851
|
app.online = false;
|
|
3852
3852
|
app.emit('offline');
|
|
@@ -3943,7 +3943,7 @@
|
|
|
3943
3943
|
},
|
|
3944
3944
|
on: {
|
|
3945
3945
|
init() {
|
|
3946
|
-
const document = getDocument();
|
|
3946
|
+
const document = getDocument$1();
|
|
3947
3947
|
const device = getDevice$1();
|
|
3948
3948
|
const classNames = [];
|
|
3949
3949
|
const html = document.querySelector('html');
|
|
@@ -4024,7 +4024,7 @@
|
|
|
4024
4024
|
on: {
|
|
4025
4025
|
init() {
|
|
4026
4026
|
const app = this;
|
|
4027
|
-
const window = getWindow();
|
|
4027
|
+
const window = getWindow$1();
|
|
4028
4028
|
|
|
4029
4029
|
// Get Size
|
|
4030
4030
|
app.getSize();
|
|
@@ -4040,7 +4040,7 @@
|
|
|
4040
4040
|
});
|
|
4041
4041
|
},
|
|
4042
4042
|
orientationchange() {
|
|
4043
|
-
const document = getDocument();
|
|
4043
|
+
const document = getDocument$1();
|
|
4044
4044
|
const device = getDevice$1();
|
|
4045
4045
|
// Fix iPad weird body scroll
|
|
4046
4046
|
if (device.ipad) {
|
|
@@ -4062,8 +4062,8 @@
|
|
|
4062
4062
|
const app = this;
|
|
4063
4063
|
const device = getDevice$1();
|
|
4064
4064
|
const support = getSupport$1();
|
|
4065
|
-
const window = getWindow();
|
|
4066
|
-
const document = getDocument();
|
|
4065
|
+
const window = getWindow$1();
|
|
4066
|
+
const document = getDocument$1();
|
|
4067
4067
|
const params = app.params.touch;
|
|
4068
4068
|
const useRipple = params[`${app.theme}TouchRipple`];
|
|
4069
4069
|
if (device.ios && device.webView) {
|
|
@@ -4522,7 +4522,7 @@
|
|
|
4522
4522
|
create() {
|
|
4523
4523
|
const app = this;
|
|
4524
4524
|
const support = getSupport$1();
|
|
4525
|
-
extend$
|
|
4525
|
+
extend$3(app, {
|
|
4526
4526
|
touchEvents: {
|
|
4527
4527
|
start: support.touch ? 'touchstart' : support.pointerEvents ? 'pointerdown' : 'mousedown',
|
|
4528
4528
|
move: support.touch ? 'touchmove' : support.pointerEvents ? 'pointermove' : 'mousemove',
|
|
@@ -5063,16 +5063,16 @@
|
|
|
5063
5063
|
});
|
|
5064
5064
|
},
|
|
5065
5065
|
initViewState(viewId, viewState) {
|
|
5066
|
-
const window = getWindow();
|
|
5067
|
-
const newState = extend$
|
|
5066
|
+
const window = getWindow$1();
|
|
5067
|
+
const newState = extend$3({}, History$1.state || {}, {
|
|
5068
5068
|
[viewId]: viewState
|
|
5069
5069
|
});
|
|
5070
5070
|
History$1.state = newState;
|
|
5071
5071
|
window.history.replaceState(newState, '');
|
|
5072
5072
|
},
|
|
5073
5073
|
push(viewId, viewState, url) {
|
|
5074
|
-
const window = getWindow();
|
|
5075
|
-
const document = getDocument();
|
|
5074
|
+
const window = getWindow$1();
|
|
5075
|
+
const document = getDocument$1();
|
|
5076
5076
|
/* eslint-disable no-param-reassign */
|
|
5077
5077
|
if (url.substr(-3) === '#!/') {
|
|
5078
5078
|
url = url.replace('#!/', '');
|
|
@@ -5091,14 +5091,14 @@
|
|
|
5091
5091
|
return;
|
|
5092
5092
|
}
|
|
5093
5093
|
History$1.previousState = History$1.state;
|
|
5094
|
-
const newState = extend$
|
|
5094
|
+
const newState = extend$3({}, History$1.previousState || {}, {
|
|
5095
5095
|
[viewId]: viewState
|
|
5096
5096
|
});
|
|
5097
5097
|
History$1.state = newState;
|
|
5098
5098
|
window.history.pushState(newState, '', url);
|
|
5099
5099
|
},
|
|
5100
5100
|
replace(viewId, viewState, url) {
|
|
5101
|
-
const window = getWindow();
|
|
5101
|
+
const window = getWindow$1();
|
|
5102
5102
|
if (url.substr(-3) === '#!/') {
|
|
5103
5103
|
// eslint-disable-next-line
|
|
5104
5104
|
url = url.replace('#!/', '');
|
|
@@ -5110,19 +5110,19 @@
|
|
|
5110
5110
|
return;
|
|
5111
5111
|
}
|
|
5112
5112
|
History$1.previousState = History$1.state;
|
|
5113
|
-
const newState = extend$
|
|
5113
|
+
const newState = extend$3({}, History$1.previousState || {}, {
|
|
5114
5114
|
[viewId]: viewState
|
|
5115
5115
|
});
|
|
5116
5116
|
History$1.state = newState;
|
|
5117
5117
|
window.history.replaceState(newState, '', url);
|
|
5118
5118
|
},
|
|
5119
5119
|
go(index) {
|
|
5120
|
-
const window = getWindow();
|
|
5120
|
+
const window = getWindow$1();
|
|
5121
5121
|
History$1.allowChange = false;
|
|
5122
5122
|
window.history.go(index);
|
|
5123
5123
|
},
|
|
5124
5124
|
back() {
|
|
5125
|
-
const window = getWindow();
|
|
5125
|
+
const window = getWindow$1();
|
|
5126
5126
|
History$1.allowChange = false;
|
|
5127
5127
|
window.history.back();
|
|
5128
5128
|
},
|
|
@@ -5131,8 +5131,8 @@
|
|
|
5131
5131
|
state: {},
|
|
5132
5132
|
blockPopstate: true,
|
|
5133
5133
|
init(app) {
|
|
5134
|
-
const window = getWindow();
|
|
5135
|
-
const document = getDocument();
|
|
5134
|
+
const window = getWindow$1();
|
|
5135
|
+
const document = getDocument$1();
|
|
5136
5136
|
History$1.state = window.history.state;
|
|
5137
5137
|
$(window).on('load', () => {
|
|
5138
5138
|
setTimeout(() => {
|
|
@@ -5744,7 +5744,7 @@
|
|
|
5744
5744
|
redirectOptions = {};
|
|
5745
5745
|
}
|
|
5746
5746
|
router.allowPageChange = true;
|
|
5747
|
-
router[method](redirectUrl, extend$
|
|
5747
|
+
router[method](redirectUrl, extend$3({}, options, redirectOptions));
|
|
5748
5748
|
}
|
|
5749
5749
|
function redirectReject() {
|
|
5750
5750
|
router.allowPageChange = true;
|
|
@@ -5883,11 +5883,11 @@
|
|
|
5883
5883
|
if (forwardOptions === void 0) {
|
|
5884
5884
|
forwardOptions = {};
|
|
5885
5885
|
}
|
|
5886
|
-
const document = getDocument();
|
|
5886
|
+
const document = getDocument$1();
|
|
5887
5887
|
const $el = $(el);
|
|
5888
5888
|
const app = router.app;
|
|
5889
5889
|
const view = router.view;
|
|
5890
|
-
const options = extend$
|
|
5890
|
+
const options = extend$3(false, {
|
|
5891
5891
|
animate: router.params.animate,
|
|
5892
5892
|
browserHistory: true,
|
|
5893
5893
|
replaceState: false,
|
|
@@ -6255,7 +6255,7 @@
|
|
|
6255
6255
|
|
|
6256
6256
|
// Load Tab
|
|
6257
6257
|
if (options.route.route.tab) {
|
|
6258
|
-
router.tabLoad(options.route.route.tab, extend$
|
|
6258
|
+
router.tabLoad(options.route.route.tab, extend$3({}, options, {
|
|
6259
6259
|
history: false,
|
|
6260
6260
|
browserHistory: false
|
|
6261
6261
|
}));
|
|
@@ -6417,7 +6417,7 @@
|
|
|
6417
6417
|
}
|
|
6418
6418
|
if (!options.route && url) {
|
|
6419
6419
|
options.route = router.parseRouteUrl(url);
|
|
6420
|
-
extend$
|
|
6420
|
+
extend$3(options.route, {
|
|
6421
6421
|
route: {
|
|
6422
6422
|
url,
|
|
6423
6423
|
path: url
|
|
@@ -6427,7 +6427,7 @@
|
|
|
6427
6427
|
|
|
6428
6428
|
// Component Callbacks
|
|
6429
6429
|
function resolve(pageEl, newOptions) {
|
|
6430
|
-
return forward(router, pageEl, extend$
|
|
6430
|
+
return forward(router, pageEl, extend$3(options, newOptions));
|
|
6431
6431
|
}
|
|
6432
6432
|
function reject() {
|
|
6433
6433
|
router.allowPageChange = true;
|
|
@@ -6521,8 +6521,8 @@
|
|
|
6521
6521
|
navigateUrl = ((currentPath ? `${currentPath}/` : '/') + navigateUrl).replace('///', '/').replace('//', '/');
|
|
6522
6522
|
}
|
|
6523
6523
|
if (createRoute) {
|
|
6524
|
-
route = extend$
|
|
6525
|
-
route: extend$
|
|
6524
|
+
route = extend$3(router.parseRouteUrl(navigateUrl), {
|
|
6525
|
+
route: extend$3({}, createRoute)
|
|
6526
6526
|
});
|
|
6527
6527
|
} else {
|
|
6528
6528
|
route = router.findMatchingRoute(navigateUrl);
|
|
@@ -6545,9 +6545,9 @@
|
|
|
6545
6545
|
}
|
|
6546
6546
|
const options = {};
|
|
6547
6547
|
if (route.route.options) {
|
|
6548
|
-
extend$
|
|
6548
|
+
extend$3(options, route.route.options, navigateOptions);
|
|
6549
6549
|
} else {
|
|
6550
|
-
extend$
|
|
6550
|
+
extend$3(options, navigateOptions);
|
|
6551
6551
|
}
|
|
6552
6552
|
if (options.openIn && (!router.params.ignoreOpenIn || router.params.ignoreOpenIn && router.history.length > 0)) {
|
|
6553
6553
|
return router.openIn(router, navigateUrl, options);
|
|
@@ -6583,15 +6583,15 @@
|
|
|
6583
6583
|
'popup popover sheet loginScreen actions customModal panel'.split(' ').forEach(modalLoadProp => {
|
|
6584
6584
|
if (resolveParams[modalLoadProp]) {
|
|
6585
6585
|
resolvedAsModal = true;
|
|
6586
|
-
const modalRoute = extend$
|
|
6586
|
+
const modalRoute = extend$3({}, route, {
|
|
6587
6587
|
route: resolveParams
|
|
6588
6588
|
});
|
|
6589
6589
|
router.allowPageChange = true;
|
|
6590
|
-
router.modalLoad(modalLoadProp, modalRoute, extend$
|
|
6590
|
+
router.modalLoad(modalLoadProp, modalRoute, extend$3(options, resolveOptions), 'forward');
|
|
6591
6591
|
}
|
|
6592
6592
|
});
|
|
6593
6593
|
if (resolvedAsModal) return;
|
|
6594
|
-
load(router, resolveParams, extend$
|
|
6594
|
+
load(router, resolveParams, extend$3(options, resolveOptions), true);
|
|
6595
6595
|
}
|
|
6596
6596
|
function asyncReject() {
|
|
6597
6597
|
router.allowPageChange = true;
|
|
@@ -6641,7 +6641,7 @@
|
|
|
6641
6641
|
history: !navigateOptions.initial,
|
|
6642
6642
|
once: {
|
|
6643
6643
|
pageAfterIn() {
|
|
6644
|
-
router.navigate(navigateParams, extend$
|
|
6644
|
+
router.navigate(navigateParams, extend$3({}, navigateOptions, {
|
|
6645
6645
|
animate: false,
|
|
6646
6646
|
reloadAll: false,
|
|
6647
6647
|
reloadCurrent: false,
|
|
@@ -6678,7 +6678,7 @@
|
|
|
6678
6678
|
loadOptions = {};
|
|
6679
6679
|
}
|
|
6680
6680
|
const router = this;
|
|
6681
|
-
const options = extend$
|
|
6681
|
+
const options = extend$3({
|
|
6682
6682
|
animate: router.params.animate,
|
|
6683
6683
|
browserHistory: true,
|
|
6684
6684
|
history: true,
|
|
@@ -6857,7 +6857,7 @@
|
|
|
6857
6857
|
|
|
6858
6858
|
// Async
|
|
6859
6859
|
function asyncResolve(resolveParams, resolveOptions) {
|
|
6860
|
-
loadTab(resolveParams, extend$
|
|
6860
|
+
loadTab(resolveParams, extend$3(options, resolveOptions));
|
|
6861
6861
|
}
|
|
6862
6862
|
function asyncReject() {
|
|
6863
6863
|
router.allowPageChange = true;
|
|
@@ -6907,14 +6907,14 @@
|
|
|
6907
6907
|
const app = router.app;
|
|
6908
6908
|
const isPanel = modalType === 'panel';
|
|
6909
6909
|
const modalOrPanel = isPanel ? 'panel' : 'modal';
|
|
6910
|
-
const options = extend$
|
|
6910
|
+
const options = extend$3({
|
|
6911
6911
|
animate: router.params.animate,
|
|
6912
6912
|
browserHistory: true,
|
|
6913
6913
|
history: true,
|
|
6914
6914
|
on: {},
|
|
6915
6915
|
once: {}
|
|
6916
6916
|
}, loadOptions);
|
|
6917
|
-
const modalParams = extend$
|
|
6917
|
+
const modalParams = extend$3({}, route.route[modalType]);
|
|
6918
6918
|
const modalRoute = route.route;
|
|
6919
6919
|
const routeCallback = (modal, name) => {
|
|
6920
6920
|
const {
|
|
@@ -6988,7 +6988,7 @@
|
|
|
6988
6988
|
|
|
6989
6989
|
// Set Route
|
|
6990
6990
|
if (options.route !== router.currentRoute) {
|
|
6991
|
-
modal.route = extend$
|
|
6991
|
+
modal.route = extend$3(options.route, {
|
|
6992
6992
|
modal
|
|
6993
6993
|
});
|
|
6994
6994
|
router.currentRoute = modal.route;
|
|
@@ -7091,7 +7091,7 @@
|
|
|
7091
7091
|
|
|
7092
7092
|
// Async
|
|
7093
7093
|
function asyncResolve(resolveParams, resolveOptions) {
|
|
7094
|
-
loadModal(resolveParams, extend$
|
|
7094
|
+
loadModal(resolveParams, extend$3(options, resolveOptions));
|
|
7095
7095
|
}
|
|
7096
7096
|
function asyncReject() {
|
|
7097
7097
|
router.allowPageChange = true;
|
|
@@ -7113,7 +7113,7 @@
|
|
|
7113
7113
|
return router;
|
|
7114
7114
|
}
|
|
7115
7115
|
function modalRemove(modal) {
|
|
7116
|
-
extend$
|
|
7116
|
+
extend$3(modal, {
|
|
7117
7117
|
closeByRouter: true
|
|
7118
7118
|
});
|
|
7119
7119
|
modal.close();
|
|
@@ -7121,11 +7121,11 @@
|
|
|
7121
7121
|
|
|
7122
7122
|
function backward(router, el, backwardOptions) {
|
|
7123
7123
|
const device = getDevice$1();
|
|
7124
|
-
const document = getDocument();
|
|
7124
|
+
const document = getDocument$1();
|
|
7125
7125
|
const $el = $(el);
|
|
7126
7126
|
const app = router.app;
|
|
7127
7127
|
const view = router.view;
|
|
7128
|
-
const options = extend$
|
|
7128
|
+
const options = extend$3(false, {
|
|
7129
7129
|
animate: router.params.animate,
|
|
7130
7130
|
browserHistory: true,
|
|
7131
7131
|
replaceState: false
|
|
@@ -7305,7 +7305,7 @@
|
|
|
7305
7305
|
insertPage();
|
|
7306
7306
|
// Tab route
|
|
7307
7307
|
if (options.route.route.tab) {
|
|
7308
|
-
router.tabLoad(options.route.route.tab, extend$
|
|
7308
|
+
router.tabLoad(options.route.route.tab, extend$3({}, options, {
|
|
7309
7309
|
history: false,
|
|
7310
7310
|
browserHistory: false,
|
|
7311
7311
|
preload: true
|
|
@@ -7406,7 +7406,7 @@
|
|
|
7406
7406
|
|
|
7407
7407
|
// Load Tab
|
|
7408
7408
|
if (options.route.route.tab) {
|
|
7409
|
-
router.tabLoad(options.route.route.tab, extend$
|
|
7409
|
+
router.tabLoad(options.route.route.tab, extend$3({}, options, {
|
|
7410
7410
|
history: false,
|
|
7411
7411
|
browserHistory: false
|
|
7412
7412
|
}));
|
|
@@ -7513,7 +7513,7 @@
|
|
|
7513
7513
|
|
|
7514
7514
|
// Component Callbacks
|
|
7515
7515
|
function resolve(pageEl, newOptions) {
|
|
7516
|
-
return backward(router, pageEl, extend$
|
|
7516
|
+
return backward(router, pageEl, extend$3(options, newOptions));
|
|
7517
7517
|
}
|
|
7518
7518
|
function reject() {
|
|
7519
7519
|
router.allowPageChange = true;
|
|
@@ -7587,7 +7587,7 @@
|
|
|
7587
7587
|
query
|
|
7588
7588
|
});
|
|
7589
7589
|
if (navigateUrl) {
|
|
7590
|
-
return router.back(navigateUrl, extend$
|
|
7590
|
+
return router.back(navigateUrl, extend$3({}, navigateOptions, {
|
|
7591
7591
|
name: null,
|
|
7592
7592
|
params: null,
|
|
7593
7593
|
query: null
|
|
@@ -7693,7 +7693,7 @@
|
|
|
7693
7693
|
}
|
|
7694
7694
|
if (!navigateOptions.force && $previousPage.length && !skipMaster) {
|
|
7695
7695
|
if (router.params.browserHistory && $previousPage[0].f7Page && router.history[router.history.length - 2] !== $previousPage[0].f7Page.route.url) {
|
|
7696
|
-
router.back(router.history[router.history.length - 2], extend$
|
|
7696
|
+
router.back(router.history[router.history.length - 2], extend$3(navigateOptions, {
|
|
7697
7697
|
force: true,
|
|
7698
7698
|
props: router.propsHistory[router.propsHistory.length - 2] || {}
|
|
7699
7699
|
}));
|
|
@@ -7703,7 +7703,7 @@
|
|
|
7703
7703
|
processRouteQueue.call(router, previousPageRoute, router.currentRoute, () => {
|
|
7704
7704
|
loadBack(router, {
|
|
7705
7705
|
el: $previousPage
|
|
7706
|
-
}, extend$
|
|
7706
|
+
}, extend$3(navigateOptions, {
|
|
7707
7707
|
route: previousPageRoute
|
|
7708
7708
|
}));
|
|
7709
7709
|
}, () => {}, 'backward');
|
|
@@ -7722,7 +7722,7 @@
|
|
|
7722
7722
|
navigateProps = router.propsHistory[router.propsHistory.length - 2] || {};
|
|
7723
7723
|
}
|
|
7724
7724
|
if (skipMaster && !navigateOptions.force && router.history[router.history.length - 3]) {
|
|
7725
|
-
return router.back(router.history[router.history.length - 3], extend$
|
|
7725
|
+
return router.back(router.history[router.history.length - 3], extend$3({}, navigateOptions || {}, {
|
|
7726
7726
|
force: true,
|
|
7727
7727
|
animate: false,
|
|
7728
7728
|
props: router.propsHistory[router.propsHistory.length - 3] || {}
|
|
@@ -7755,11 +7755,11 @@
|
|
|
7755
7755
|
}
|
|
7756
7756
|
const options = {};
|
|
7757
7757
|
if (route.route.options) {
|
|
7758
|
-
extend$
|
|
7758
|
+
extend$3(options, route.route.options, navigateOptions, {
|
|
7759
7759
|
props: navigateProps || {}
|
|
7760
7760
|
});
|
|
7761
7761
|
} else {
|
|
7762
|
-
extend$
|
|
7762
|
+
extend$3(options, navigateOptions, {
|
|
7763
7763
|
props: navigateProps || {}
|
|
7764
7764
|
});
|
|
7765
7765
|
}
|
|
@@ -7784,7 +7784,7 @@
|
|
|
7784
7784
|
// Async
|
|
7785
7785
|
function asyncResolve(resolveParams, resolveOptions) {
|
|
7786
7786
|
router.allowPageChange = false;
|
|
7787
|
-
loadBack(router, resolveParams, extend$
|
|
7787
|
+
loadBack(router, resolveParams, extend$3(options, resolveOptions), true);
|
|
7788
7788
|
}
|
|
7789
7789
|
function asyncReject() {
|
|
7790
7790
|
router.allowPageChange = true;
|
|
@@ -7869,7 +7869,7 @@
|
|
|
7869
7869
|
router.isAppRouter = typeof view === 'undefined';
|
|
7870
7870
|
if (router.isAppRouter) {
|
|
7871
7871
|
// App Router
|
|
7872
|
-
extend$
|
|
7872
|
+
extend$3(false, router, {
|
|
7873
7873
|
app,
|
|
7874
7874
|
params: app.params.view,
|
|
7875
7875
|
routes: app.routes || [],
|
|
@@ -7877,7 +7877,7 @@
|
|
|
7877
7877
|
});
|
|
7878
7878
|
} else {
|
|
7879
7879
|
// View Router
|
|
7880
|
-
extend$
|
|
7880
|
+
extend$3(false, router, {
|
|
7881
7881
|
app,
|
|
7882
7882
|
view,
|
|
7883
7883
|
viewId: view.id,
|
|
@@ -7910,7 +7910,7 @@
|
|
|
7910
7910
|
if (newRoute === void 0) {
|
|
7911
7911
|
newRoute = {};
|
|
7912
7912
|
}
|
|
7913
|
-
previousRoute = extend$
|
|
7913
|
+
previousRoute = extend$3({}, currentRoute);
|
|
7914
7914
|
currentRoute = newRoute;
|
|
7915
7915
|
if (!currentRoute) return;
|
|
7916
7916
|
router.url = currentRoute.url;
|
|
@@ -7935,8 +7935,8 @@
|
|
|
7935
7935
|
mount() {
|
|
7936
7936
|
const router = this;
|
|
7937
7937
|
const view = router.view;
|
|
7938
|
-
const document = getDocument();
|
|
7939
|
-
extend$
|
|
7938
|
+
const document = getDocument$1();
|
|
7939
|
+
extend$3(false, router, {
|
|
7940
7940
|
tempDom: document.createElement('div'),
|
|
7941
7941
|
$el: view.$el,
|
|
7942
7942
|
el: view.el,
|
|
@@ -8263,7 +8263,7 @@
|
|
|
8263
8263
|
let hasTabRoutes = false;
|
|
8264
8264
|
if ('tabs' in route && route.tabs) {
|
|
8265
8265
|
const mergedPathsRoutes = route.tabs.map(tabRoute => {
|
|
8266
|
-
const tRoute = extend$
|
|
8266
|
+
const tRoute = extend$3({}, route, {
|
|
8267
8267
|
path: `${route.path}/${tabRoute.path}`.replace('///', '/').replace('//', '/'),
|
|
8268
8268
|
parentPath: route.path,
|
|
8269
8269
|
tab: tabRoute
|
|
@@ -8277,7 +8277,7 @@
|
|
|
8277
8277
|
}
|
|
8278
8278
|
if ('detailRoutes' in route) {
|
|
8279
8279
|
const mergedPathsRoutes = route.detailRoutes.map(detailRoute => {
|
|
8280
|
-
const dRoute = extend$
|
|
8280
|
+
const dRoute = extend$3({}, detailRoute);
|
|
8281
8281
|
dRoute.masterRoute = route;
|
|
8282
8282
|
dRoute.masterRoutePath = route.path;
|
|
8283
8283
|
return dRoute;
|
|
@@ -8286,7 +8286,7 @@
|
|
|
8286
8286
|
}
|
|
8287
8287
|
if ('routes' in route) {
|
|
8288
8288
|
const mergedPathsRoutes = route.routes.map(childRoute => {
|
|
8289
|
-
const cRoute = extend$
|
|
8289
|
+
const cRoute = extend$3({}, childRoute);
|
|
8290
8290
|
cRoute.path = `${route.path}/${cRoute.path}`.replace('///', '/').replace('//', '/');
|
|
8291
8291
|
return cRoute;
|
|
8292
8292
|
});
|
|
@@ -8674,7 +8674,7 @@
|
|
|
8674
8674
|
const colonName = `page:${callback.toLowerCase()}`;
|
|
8675
8675
|
let page = {};
|
|
8676
8676
|
if (callback === 'beforeRemove' && $pageEl[0].f7Page) {
|
|
8677
|
-
page = extend$
|
|
8677
|
+
page = extend$3($pageEl[0].f7Page, {
|
|
8678
8678
|
from,
|
|
8679
8679
|
to,
|
|
8680
8680
|
position: from
|
|
@@ -8688,10 +8688,10 @@
|
|
|
8688
8688
|
once = {}
|
|
8689
8689
|
} = options.route ? options.route.route : {};
|
|
8690
8690
|
if (options.on) {
|
|
8691
|
-
extend$
|
|
8691
|
+
extend$3(on, options.on);
|
|
8692
8692
|
}
|
|
8693
8693
|
if (options.once) {
|
|
8694
|
-
extend$
|
|
8694
|
+
extend$3(once, options.once);
|
|
8695
8695
|
}
|
|
8696
8696
|
function attachEvents() {
|
|
8697
8697
|
if ($pageEl[0].f7RouteEventsAttached) return;
|
|
@@ -8781,7 +8781,7 @@
|
|
|
8781
8781
|
}
|
|
8782
8782
|
saveHistory() {
|
|
8783
8783
|
const router = this;
|
|
8784
|
-
const window = getWindow();
|
|
8784
|
+
const window = getWindow$1();
|
|
8785
8785
|
router.view.history = router.history;
|
|
8786
8786
|
if (router.params.browserHistory && router.params.browserHistoryStoreHistory && window.localStorage) {
|
|
8787
8787
|
window.localStorage[`f7router-${router.view.id}-history`] = JSON.stringify(router.history);
|
|
@@ -8789,7 +8789,7 @@
|
|
|
8789
8789
|
}
|
|
8790
8790
|
restoreHistory() {
|
|
8791
8791
|
const router = this;
|
|
8792
|
-
const window = getWindow();
|
|
8792
|
+
const window = getWindow$1();
|
|
8793
8793
|
if (router.params.browserHistory && router.params.browserHistoryStoreHistory && window.localStorage && window.localStorage[`f7router-${router.view.id}-history`]) {
|
|
8794
8794
|
router.history = JSON.parse(window.localStorage[`f7router-${router.view.id}-history`]);
|
|
8795
8795
|
router.view.history = router.history;
|
|
@@ -8820,7 +8820,7 @@
|
|
|
8820
8820
|
path
|
|
8821
8821
|
} = router.parseRouteUrl(newUrl);
|
|
8822
8822
|
if (router.currentRoute) {
|
|
8823
|
-
extend$
|
|
8823
|
+
extend$3(router.currentRoute, {
|
|
8824
8824
|
query,
|
|
8825
8825
|
hash,
|
|
8826
8826
|
params,
|
|
@@ -8851,8 +8851,8 @@
|
|
|
8851
8851
|
app,
|
|
8852
8852
|
view
|
|
8853
8853
|
} = router;
|
|
8854
|
-
const document = getDocument();
|
|
8855
|
-
const window = getWindow();
|
|
8854
|
+
const document = getDocument$1();
|
|
8855
|
+
const window = getWindow$1();
|
|
8856
8856
|
const location = app.params.url && typeof app.params.url === 'string' && typeof URL !== 'undefined' ? new URL(app.params.url) : document.location;
|
|
8857
8857
|
let initialUrl = router.params.url;
|
|
8858
8858
|
let documentUrl = location.href.split(location.origin)[1];
|
|
@@ -8920,7 +8920,7 @@
|
|
|
8920
8920
|
app,
|
|
8921
8921
|
view
|
|
8922
8922
|
} = router;
|
|
8923
|
-
const document = getDocument();
|
|
8923
|
+
const document = getDocument$1();
|
|
8924
8924
|
router.mount();
|
|
8925
8925
|
const {
|
|
8926
8926
|
initialUrl,
|
|
@@ -8943,7 +8943,7 @@
|
|
|
8943
8943
|
const initUrl = browserHistoryInitialMatch ? initialUrl : router.history[0];
|
|
8944
8944
|
currentRoute = router.findMatchingRoute(initUrl);
|
|
8945
8945
|
if (!currentRoute) {
|
|
8946
|
-
currentRoute = extend$
|
|
8946
|
+
currentRoute = extend$3(router.parseRouteUrl(initUrl), {
|
|
8947
8947
|
route: {
|
|
8948
8948
|
url: initUrl,
|
|
8949
8949
|
path: initUrl.split('?')[0]
|
|
@@ -8954,7 +8954,7 @@
|
|
|
8954
8954
|
// Don't load page
|
|
8955
8955
|
currentRoute = router.findMatchingRoute(initialUrl);
|
|
8956
8956
|
if (!currentRoute) {
|
|
8957
|
-
currentRoute = extend$
|
|
8957
|
+
currentRoute = extend$3(router.parseRouteUrl(initialUrl), {
|
|
8958
8958
|
route: {
|
|
8959
8959
|
url: initialUrl,
|
|
8960
8960
|
path: initialUrl.split('?')[0]
|
|
@@ -9031,7 +9031,7 @@
|
|
|
9031
9031
|
route: router.currentRoute
|
|
9032
9032
|
};
|
|
9033
9033
|
if (router.currentRoute && router.currentRoute.route && router.currentRoute.route.options) {
|
|
9034
|
-
extend$
|
|
9034
|
+
extend$3(initOptions, router.currentRoute.route.options);
|
|
9035
9035
|
}
|
|
9036
9036
|
router.currentPageEl = $pageEl[0];
|
|
9037
9037
|
if (router.dynamicNavbar && $navbarEl.length) {
|
|
@@ -9043,7 +9043,7 @@
|
|
|
9043
9043
|
}
|
|
9044
9044
|
if (initOptions.route.route.tab) {
|
|
9045
9045
|
hasTabRoute = true;
|
|
9046
|
-
router.tabLoad(initOptions.route.route.tab, extend$
|
|
9046
|
+
router.tabLoad(initOptions.route.route.tab, extend$3({}, initOptions));
|
|
9047
9047
|
}
|
|
9048
9048
|
router.pageCallback('init', $pageEl, $navbarEl, 'current', undefined, initOptions);
|
|
9049
9049
|
router.pageCallback('beforeIn', $pageEl, $navbarEl, 'current', undefined, initOptions);
|
|
@@ -9145,7 +9145,7 @@
|
|
|
9145
9145
|
const app = view.app;
|
|
9146
9146
|
const support = getSupport$1();
|
|
9147
9147
|
if (view.resizableInitialized) return;
|
|
9148
|
-
extend$
|
|
9148
|
+
extend$3(view, {
|
|
9149
9149
|
resizable: true,
|
|
9150
9150
|
resizableWidth: null,
|
|
9151
9151
|
resizableInitialized: true
|
|
@@ -9285,7 +9285,7 @@
|
|
|
9285
9285
|
}
|
|
9286
9286
|
|
|
9287
9287
|
// Default View params
|
|
9288
|
-
view.params = extend$
|
|
9288
|
+
view.params = extend$3({
|
|
9289
9289
|
el
|
|
9290
9290
|
}, defaults, app.params.view, viewParams);
|
|
9291
9291
|
|
|
@@ -9297,7 +9297,7 @@
|
|
|
9297
9297
|
}
|
|
9298
9298
|
|
|
9299
9299
|
// View Props
|
|
9300
|
-
extend$
|
|
9300
|
+
extend$3(false, view, {
|
|
9301
9301
|
app,
|
|
9302
9302
|
name: view.params.name,
|
|
9303
9303
|
main: view.params.main,
|
|
@@ -9423,7 +9423,7 @@
|
|
|
9423
9423
|
$navbarsEl = $('<div class="navbars"></div>');
|
|
9424
9424
|
}
|
|
9425
9425
|
}
|
|
9426
|
-
extend$
|
|
9426
|
+
extend$3(view, {
|
|
9427
9427
|
$el,
|
|
9428
9428
|
el: $el[0],
|
|
9429
9429
|
main: view.main || $el.hasClass('view-main'),
|
|
@@ -9466,7 +9466,7 @@
|
|
|
9466
9466
|
|
|
9467
9467
|
function initClicks(app) {
|
|
9468
9468
|
function handleClicks(e) {
|
|
9469
|
-
const window = getWindow();
|
|
9469
|
+
const window = getWindow$1();
|
|
9470
9470
|
const $clickedEl = $(e.target);
|
|
9471
9471
|
const $clickedLinkEl = $clickedEl.closest('a');
|
|
9472
9472
|
const isLink = $clickedLinkEl.length > 0;
|
|
@@ -10120,7 +10120,7 @@
|
|
|
10120
10120
|
return slotNodes.map(subTreeNode => treeNodeToVNode(subTreeNode, component, f7, initial));
|
|
10121
10121
|
};
|
|
10122
10122
|
const isTreeNode = treeNode => {
|
|
10123
|
-
return isObject$
|
|
10123
|
+
return isObject$3(treeNode) && 'props' in treeNode && 'type' in treeNode && 'children' in treeNode;
|
|
10124
10124
|
};
|
|
10125
10125
|
const treeNodeToVNode = (treeNode, component, f7, initial, isRoot) => {
|
|
10126
10126
|
if (!isTreeNode(treeNode)) {
|
|
@@ -10923,7 +10923,7 @@
|
|
|
10923
10923
|
context,
|
|
10924
10924
|
children
|
|
10925
10925
|
} = _temp === void 0 ? {} : _temp;
|
|
10926
|
-
const document = getDocument();
|
|
10926
|
+
const document = getDocument$1();
|
|
10927
10927
|
merge(this, {
|
|
10928
10928
|
f7: app,
|
|
10929
10929
|
props: props || {},
|
|
@@ -11200,7 +11200,7 @@
|
|
|
11200
11200
|
});
|
|
11201
11201
|
}
|
|
11202
11202
|
startUpdateQueue() {
|
|
11203
|
-
const window = getWindow();
|
|
11203
|
+
const window = getWindow$1();
|
|
11204
11204
|
if (this.__requestAnimationFrameId) return;
|
|
11205
11205
|
const update = () => {
|
|
11206
11206
|
this.hook('onBeforeUpdate');
|
|
@@ -11266,7 +11266,7 @@
|
|
|
11266
11266
|
}
|
|
11267
11267
|
destroy() {
|
|
11268
11268
|
if (this.__destroyed) return;
|
|
11269
|
-
const window = getWindow();
|
|
11269
|
+
const window = getWindow$1();
|
|
11270
11270
|
this.hook('onBeforeUnmount');
|
|
11271
11271
|
if (this.styleEl) $(this.styleEl).remove();
|
|
11272
11272
|
this.detachEvents();
|
|
@@ -11311,8 +11311,8 @@
|
|
|
11311
11311
|
Component.$jsx = $jsx;
|
|
11312
11312
|
|
|
11313
11313
|
function parseComponent(componentString) {
|
|
11314
|
-
const window = getWindow();
|
|
11315
|
-
const document = getDocument();
|
|
11314
|
+
const window = getWindow$1();
|
|
11315
|
+
const document = getDocument$1();
|
|
11316
11316
|
const componentId = id$1();
|
|
11317
11317
|
const callbackCreateName = `f7_component_create_callback_${componentId}`;
|
|
11318
11318
|
|
|
@@ -11442,7 +11442,7 @@
|
|
|
11442
11442
|
registrations: [],
|
|
11443
11443
|
register(path, scope) {
|
|
11444
11444
|
const app = this;
|
|
11445
|
-
const window = getWindow();
|
|
11445
|
+
const window = getWindow$1();
|
|
11446
11446
|
if (!('serviceWorker' in window.navigator) || !app.serviceWorker.container) {
|
|
11447
11447
|
return new Promise((resolve, reject) => {
|
|
11448
11448
|
reject(new Error('Service worker is not supported'));
|
|
@@ -11463,7 +11463,7 @@
|
|
|
11463
11463
|
},
|
|
11464
11464
|
unregister(registration) {
|
|
11465
11465
|
const app = this;
|
|
11466
|
-
const window = getWindow();
|
|
11466
|
+
const window = getWindow$1();
|
|
11467
11467
|
if (!('serviceWorker' in window.navigator) || !app.serviceWorker.container) {
|
|
11468
11468
|
return new Promise((resolve, reject) => {
|
|
11469
11469
|
reject(new Error('Service worker is not supported'));
|
|
@@ -11495,8 +11495,8 @@
|
|
|
11495
11495
|
},
|
|
11496
11496
|
create() {
|
|
11497
11497
|
const app = this;
|
|
11498
|
-
const window = getWindow();
|
|
11499
|
-
extend$
|
|
11498
|
+
const window = getWindow$1();
|
|
11499
|
+
extend$3(app, {
|
|
11500
11500
|
serviceWorker: {
|
|
11501
11501
|
container: 'serviceWorker' in window.navigator ? window.navigator.serviceWorker : undefined,
|
|
11502
11502
|
registrations: SW.registrations,
|
|
@@ -11507,7 +11507,7 @@
|
|
|
11507
11507
|
},
|
|
11508
11508
|
on: {
|
|
11509
11509
|
init() {
|
|
11510
|
-
const window = getWindow();
|
|
11510
|
+
const window = getWindow$1();
|
|
11511
11511
|
if (!('serviceWorker' in window.navigator)) return;
|
|
11512
11512
|
const app = this;
|
|
11513
11513
|
if (app.device.cordova || window.Capacitor && window.Capacitor.isNative) return;
|
|
@@ -11540,7 +11540,7 @@
|
|
|
11540
11540
|
const getters = {
|
|
11541
11541
|
...(storeParams.getters || {})
|
|
11542
11542
|
};
|
|
11543
|
-
const state = extend$
|
|
11543
|
+
const state = extend$3({}, originalState);
|
|
11544
11544
|
let propsQueue = [];
|
|
11545
11545
|
const gettersDependencies = {};
|
|
11546
11546
|
const gettersCallbacks = {};
|
|
@@ -11671,12 +11671,12 @@
|
|
|
11671
11671
|
};
|
|
11672
11672
|
|
|
11673
11673
|
const isCapacitor = () => {
|
|
11674
|
-
const window = getWindow();
|
|
11674
|
+
const window = getWindow$1();
|
|
11675
11675
|
return window.Capacitor && window.Capacitor.isNative && window.Capacitor.Plugins && window.Capacitor.Plugins.StatusBar;
|
|
11676
11676
|
};
|
|
11677
11677
|
const Statusbar = {
|
|
11678
11678
|
hide() {
|
|
11679
|
-
const window = getWindow();
|
|
11679
|
+
const window = getWindow$1();
|
|
11680
11680
|
const device = getDevice$1();
|
|
11681
11681
|
if (device.cordova && window.StatusBar) {
|
|
11682
11682
|
window.StatusBar.hide();
|
|
@@ -11686,7 +11686,7 @@
|
|
|
11686
11686
|
}
|
|
11687
11687
|
},
|
|
11688
11688
|
show() {
|
|
11689
|
-
const window = getWindow();
|
|
11689
|
+
const window = getWindow$1();
|
|
11690
11690
|
const device = getDevice$1();
|
|
11691
11691
|
if (device.cordova && window.StatusBar) {
|
|
11692
11692
|
window.StatusBar.show();
|
|
@@ -11721,7 +11721,7 @@
|
|
|
11721
11721
|
}
|
|
11722
11722
|
},
|
|
11723
11723
|
setTextColor(color) {
|
|
11724
|
-
const window = getWindow();
|
|
11724
|
+
const window = getWindow$1();
|
|
11725
11725
|
const device = getDevice$1();
|
|
11726
11726
|
if (device.cordova && window.StatusBar) {
|
|
11727
11727
|
if (color === 'white') {
|
|
@@ -11743,7 +11743,7 @@
|
|
|
11743
11743
|
}
|
|
11744
11744
|
},
|
|
11745
11745
|
setBackgroundColor(color) {
|
|
11746
|
-
const window = getWindow();
|
|
11746
|
+
const window = getWindow$1();
|
|
11747
11747
|
const device = getDevice$1();
|
|
11748
11748
|
if (device.cordova && window.StatusBar) {
|
|
11749
11749
|
window.StatusBar.backgroundColorByHexString(color);
|
|
@@ -11755,7 +11755,7 @@
|
|
|
11755
11755
|
}
|
|
11756
11756
|
},
|
|
11757
11757
|
isVisible() {
|
|
11758
|
-
const window = getWindow();
|
|
11758
|
+
const window = getWindow$1();
|
|
11759
11759
|
const device = getDevice$1();
|
|
11760
11760
|
return new Promise(resolve => {
|
|
11761
11761
|
if (device.cordova && window.StatusBar) {
|
|
@@ -11773,7 +11773,7 @@
|
|
|
11773
11773
|
if (overlays === void 0) {
|
|
11774
11774
|
overlays = true;
|
|
11775
11775
|
}
|
|
11776
|
-
const window = getWindow();
|
|
11776
|
+
const window = getWindow$1();
|
|
11777
11777
|
const device = getDevice$1();
|
|
11778
11778
|
if (device.cordova && window.StatusBar) {
|
|
11779
11779
|
window.StatusBar.overlaysWebView(overlays);
|
|
@@ -11786,7 +11786,7 @@
|
|
|
11786
11786
|
},
|
|
11787
11787
|
init() {
|
|
11788
11788
|
const app = this;
|
|
11789
|
-
const window = getWindow();
|
|
11789
|
+
const window = getWindow$1();
|
|
11790
11790
|
const device = getDevice$1();
|
|
11791
11791
|
const params = app.params.statusbar;
|
|
11792
11792
|
if (!params.enabled) return;
|
|
@@ -11961,8 +11961,8 @@
|
|
|
11961
11961
|
},
|
|
11962
11962
|
create() {
|
|
11963
11963
|
const app = this;
|
|
11964
|
-
extend$
|
|
11965
|
-
views: extend$
|
|
11964
|
+
extend$3(app, {
|
|
11965
|
+
views: extend$3([], {
|
|
11966
11966
|
create(el, params) {
|
|
11967
11967
|
return new View$1(app, el, params);
|
|
11968
11968
|
},
|
|
@@ -13070,7 +13070,7 @@
|
|
|
13070
13070
|
|
|
13071
13071
|
// Extend defaults with modules params
|
|
13072
13072
|
modal.useModulesParams(defaults);
|
|
13073
|
-
modal.params = extend$
|
|
13073
|
+
modal.params = extend$3(defaults, params);
|
|
13074
13074
|
modal.opened = false;
|
|
13075
13075
|
let $containerEl = modal.params.containerEl ? $(modal.params.containerEl).eq(0) : app.$el;
|
|
13076
13076
|
if (!$containerEl.length) $containerEl = app.$el;
|
|
@@ -13116,7 +13116,7 @@
|
|
|
13116
13116
|
}
|
|
13117
13117
|
open(animateModal, force) {
|
|
13118
13118
|
const modal = this;
|
|
13119
|
-
const document = getDocument();
|
|
13119
|
+
const document = getDocument$1();
|
|
13120
13120
|
const app = modal.app;
|
|
13121
13121
|
const $el = modal.$el;
|
|
13122
13122
|
const $backdropEl = modal.$backdropEl;
|
|
@@ -13277,7 +13277,7 @@
|
|
|
13277
13277
|
|
|
13278
13278
|
class CustomModal extends Modal$1 {
|
|
13279
13279
|
constructor(app, params) {
|
|
13280
|
-
const extendedParams = extend$
|
|
13280
|
+
const extendedParams = extend$3({
|
|
13281
13281
|
backdrop: true,
|
|
13282
13282
|
closeByBackdropClick: true,
|
|
13283
13283
|
on: {}
|
|
@@ -13325,7 +13325,7 @@
|
|
|
13325
13325
|
app.off('click', handleClick);
|
|
13326
13326
|
}
|
|
13327
13327
|
});
|
|
13328
|
-
extend$
|
|
13328
|
+
extend$3(customModal, {
|
|
13329
13329
|
app,
|
|
13330
13330
|
$el,
|
|
13331
13331
|
el: $el[0],
|
|
@@ -13361,7 +13361,7 @@
|
|
|
13361
13361
|
|
|
13362
13362
|
let Dialog$1 = class Dialog extends Modal$1 {
|
|
13363
13363
|
constructor(app, params) {
|
|
13364
|
-
const extendedParams = extend$
|
|
13364
|
+
const extendedParams = extend$3({
|
|
13365
13365
|
title: app.params.dialog.title,
|
|
13366
13366
|
text: undefined,
|
|
13367
13367
|
content: '',
|
|
@@ -13383,7 +13383,7 @@
|
|
|
13383
13383
|
super(app, extendedParams);
|
|
13384
13384
|
const dialog = this;
|
|
13385
13385
|
const device = getDevice$1();
|
|
13386
|
-
const document = getDocument();
|
|
13386
|
+
const document = getDocument$1();
|
|
13387
13387
|
const {
|
|
13388
13388
|
title,
|
|
13389
13389
|
text,
|
|
@@ -13481,7 +13481,7 @@
|
|
|
13481
13481
|
addKeyboardHander = false;
|
|
13482
13482
|
});
|
|
13483
13483
|
}
|
|
13484
|
-
extend$
|
|
13484
|
+
extend$3(dialog, {
|
|
13485
13485
|
app,
|
|
13486
13486
|
$el,
|
|
13487
13487
|
el: $el[0],
|
|
@@ -13585,7 +13585,7 @@
|
|
|
13585
13585
|
}
|
|
13586
13586
|
} : {};
|
|
13587
13587
|
const isIosTheme = app.theme === 'ios';
|
|
13588
|
-
app.dialog = extend$
|
|
13588
|
+
app.dialog = extend$3(ModalMethods({
|
|
13589
13589
|
app,
|
|
13590
13590
|
constructor: Dialog$1,
|
|
13591
13591
|
defaultSelector: '.dialog.modal-in'
|
|
@@ -13790,15 +13790,15 @@
|
|
|
13790
13790
|
|
|
13791
13791
|
let Popup$1 = class Popup extends Modal$1 {
|
|
13792
13792
|
constructor(app, params) {
|
|
13793
|
-
const extendedParams = extend$
|
|
13793
|
+
const extendedParams = extend$3({
|
|
13794
13794
|
on: {}
|
|
13795
13795
|
}, app.params.popup, params);
|
|
13796
13796
|
|
|
13797
13797
|
// Extends with open/close Modal methods;
|
|
13798
13798
|
super(app, extendedParams);
|
|
13799
13799
|
const popup = this;
|
|
13800
|
-
const window = getWindow();
|
|
13801
|
-
const document = getDocument();
|
|
13800
|
+
const window = getWindow$1();
|
|
13801
|
+
const document = getDocument$1();
|
|
13802
13802
|
const support = getSupport$1();
|
|
13803
13803
|
const device = getDevice$1();
|
|
13804
13804
|
popup.params = extendedParams;
|
|
@@ -13831,7 +13831,7 @@
|
|
|
13831
13831
|
popup.$containerEl.append($backdropEl);
|
|
13832
13832
|
}
|
|
13833
13833
|
}
|
|
13834
|
-
extend$
|
|
13834
|
+
extend$3(popup, {
|
|
13835
13835
|
app,
|
|
13836
13836
|
push: $el.hasClass('popup-push') || popup.params.push,
|
|
13837
13837
|
$el,
|
|
@@ -14157,7 +14157,7 @@
|
|
|
14157
14157
|
|
|
14158
14158
|
let LoginScreen$1 = class LoginScreen extends Modal$1 {
|
|
14159
14159
|
constructor(app, params) {
|
|
14160
|
-
const extendedParams = extend$
|
|
14160
|
+
const extendedParams = extend$3({
|
|
14161
14161
|
on: {}
|
|
14162
14162
|
}, params);
|
|
14163
14163
|
|
|
@@ -14179,7 +14179,7 @@
|
|
|
14179
14179
|
if ($el.length === 0) {
|
|
14180
14180
|
return loginScreen.destroy();
|
|
14181
14181
|
}
|
|
14182
|
-
extend$
|
|
14182
|
+
extend$3(loginScreen, {
|
|
14183
14183
|
app,
|
|
14184
14184
|
$el,
|
|
14185
14185
|
el: $el[0],
|
|
@@ -14223,7 +14223,7 @@
|
|
|
14223
14223
|
|
|
14224
14224
|
let Popover$1 = class Popover extends Modal$1 {
|
|
14225
14225
|
constructor(app, params) {
|
|
14226
|
-
const extendedParams = extend$
|
|
14226
|
+
const extendedParams = extend$3({
|
|
14227
14227
|
on: {}
|
|
14228
14228
|
}, app.params.popover, params);
|
|
14229
14229
|
|
|
@@ -14231,8 +14231,8 @@
|
|
|
14231
14231
|
super(app, extendedParams);
|
|
14232
14232
|
const popover = this;
|
|
14233
14233
|
const device = getDevice$1();
|
|
14234
|
-
const window = getWindow();
|
|
14235
|
-
const document = getDocument();
|
|
14234
|
+
const window = getWindow$1();
|
|
14235
|
+
const document = getDocument$1();
|
|
14236
14236
|
popover.params = extendedParams;
|
|
14237
14237
|
|
|
14238
14238
|
// Find Element
|
|
@@ -14282,7 +14282,7 @@
|
|
|
14282
14282
|
|
|
14283
14283
|
// Open
|
|
14284
14284
|
const originalOpen = popover.open;
|
|
14285
|
-
extend$
|
|
14285
|
+
extend$3(popover, {
|
|
14286
14286
|
app,
|
|
14287
14287
|
$el,
|
|
14288
14288
|
el: $el[0],
|
|
@@ -14529,7 +14529,7 @@
|
|
|
14529
14529
|
},
|
|
14530
14530
|
create() {
|
|
14531
14531
|
const app = this;
|
|
14532
|
-
app.popover = extend$
|
|
14532
|
+
app.popover = extend$3(ModalMethods({
|
|
14533
14533
|
app,
|
|
14534
14534
|
constructor: Popover$1,
|
|
14535
14535
|
defaultSelector: '.popover.modal-in'
|
|
@@ -14584,7 +14584,7 @@
|
|
|
14584
14584
|
/* eslint indent: ["off"] */
|
|
14585
14585
|
let Actions$1 = class Actions extends Modal$1 {
|
|
14586
14586
|
constructor(app, params) {
|
|
14587
|
-
const extendedParams = extend$
|
|
14587
|
+
const extendedParams = extend$3({
|
|
14588
14588
|
on: {}
|
|
14589
14589
|
}, app.params.actions, params);
|
|
14590
14590
|
|
|
@@ -14592,8 +14592,8 @@
|
|
|
14592
14592
|
super(app, extendedParams);
|
|
14593
14593
|
const actions = this;
|
|
14594
14594
|
const device = getDevice$1();
|
|
14595
|
-
const window = getWindow();
|
|
14596
|
-
const document = getDocument();
|
|
14595
|
+
const window = getWindow$1();
|
|
14596
|
+
const document = getDocument$1();
|
|
14597
14597
|
actions.params = extendedParams;
|
|
14598
14598
|
|
|
14599
14599
|
// Buttons
|
|
@@ -14757,7 +14757,7 @@
|
|
|
14757
14757
|
}
|
|
14758
14758
|
return actions;
|
|
14759
14759
|
};
|
|
14760
|
-
extend$
|
|
14760
|
+
extend$3(actions, {
|
|
14761
14761
|
app,
|
|
14762
14762
|
$el,
|
|
14763
14763
|
el: $el ? $el[0] : undefined,
|
|
@@ -14947,15 +14947,15 @@
|
|
|
14947
14947
|
|
|
14948
14948
|
let Sheet$1 = class Sheet extends Modal$1 {
|
|
14949
14949
|
constructor(app, params) {
|
|
14950
|
-
const extendedParams = extend$
|
|
14950
|
+
const extendedParams = extend$3({
|
|
14951
14951
|
on: {}
|
|
14952
14952
|
}, app.params.sheet, params);
|
|
14953
14953
|
|
|
14954
14954
|
// Extends with open/close Modal methods;
|
|
14955
14955
|
super(app, extendedParams);
|
|
14956
14956
|
const sheet = this;
|
|
14957
|
-
const window = getWindow();
|
|
14958
|
-
const document = getDocument();
|
|
14957
|
+
const window = getWindow$1();
|
|
14958
|
+
const document = getDocument$1();
|
|
14959
14959
|
const support = getSupport$1();
|
|
14960
14960
|
const device = getDevice$1();
|
|
14961
14961
|
sheet.params = extendedParams;
|
|
@@ -14991,7 +14991,7 @@
|
|
|
14991
14991
|
sheet.$containerEl.append($backdropEl);
|
|
14992
14992
|
}
|
|
14993
14993
|
}
|
|
14994
|
-
extend$
|
|
14994
|
+
extend$3(sheet, {
|
|
14995
14995
|
app,
|
|
14996
14996
|
push: $el.hasClass('sheet-modal-push') || sheet.params.push,
|
|
14997
14997
|
$el,
|
|
@@ -15436,7 +15436,7 @@
|
|
|
15436
15436
|
},
|
|
15437
15437
|
create() {
|
|
15438
15438
|
const app = this;
|
|
15439
|
-
app.sheet = extend$
|
|
15439
|
+
app.sheet = extend$3({}, ModalMethods({
|
|
15440
15440
|
app,
|
|
15441
15441
|
constructor: Sheet$1,
|
|
15442
15442
|
defaultSelector: '.sheet-modal.modal-in'
|
|
@@ -15481,14 +15481,14 @@
|
|
|
15481
15481
|
|
|
15482
15482
|
let Toast$1 = class Toast extends Modal$1 {
|
|
15483
15483
|
constructor(app, params) {
|
|
15484
|
-
const extendedParams = extend$
|
|
15484
|
+
const extendedParams = extend$3({
|
|
15485
15485
|
on: {}
|
|
15486
15486
|
}, app.params.toast, params);
|
|
15487
15487
|
|
|
15488
15488
|
// Extends with open/close Modal methods;
|
|
15489
15489
|
super(app, extendedParams);
|
|
15490
15490
|
const toast = this;
|
|
15491
|
-
const window = getWindow();
|
|
15491
|
+
const window = getWindow$1();
|
|
15492
15492
|
toast.app = app;
|
|
15493
15493
|
toast.params = extendedParams;
|
|
15494
15494
|
const {
|
|
@@ -15509,7 +15509,7 @@
|
|
|
15509
15509
|
if ($el.length === 0) {
|
|
15510
15510
|
return toast.destroy();
|
|
15511
15511
|
}
|
|
15512
|
-
extend$
|
|
15512
|
+
extend$3(toast, {
|
|
15513
15513
|
$el,
|
|
15514
15514
|
el: $el[0],
|
|
15515
15515
|
type: 'toast'
|
|
@@ -15585,14 +15585,14 @@
|
|
|
15585
15585
|
},
|
|
15586
15586
|
create() {
|
|
15587
15587
|
const app = this;
|
|
15588
|
-
app.toast = extend$
|
|
15588
|
+
app.toast = extend$3({}, ModalMethods({
|
|
15589
15589
|
app,
|
|
15590
15590
|
constructor: Toast$1,
|
|
15591
15591
|
defaultSelector: '.toast.modal-in'
|
|
15592
15592
|
}), {
|
|
15593
15593
|
// Shortcuts
|
|
15594
15594
|
show(params) {
|
|
15595
|
-
extend$
|
|
15595
|
+
extend$3(params, {
|
|
15596
15596
|
destroyOnClose: true
|
|
15597
15597
|
});
|
|
15598
15598
|
return new Toast$1(app, params).open();
|
|
@@ -15873,7 +15873,7 @@
|
|
|
15873
15873
|
const Sortable = {
|
|
15874
15874
|
init() {
|
|
15875
15875
|
const app = this;
|
|
15876
|
-
const document = getDocument();
|
|
15876
|
+
const document = getDocument$1();
|
|
15877
15877
|
let isTouched;
|
|
15878
15878
|
let isMoved;
|
|
15879
15879
|
let touchStartY;
|
|
@@ -16156,7 +16156,7 @@
|
|
|
16156
16156
|
const Swipeout = {
|
|
16157
16157
|
init() {
|
|
16158
16158
|
const app = this;
|
|
16159
|
-
const document = getDocument();
|
|
16159
|
+
const document = getDocument$1();
|
|
16160
16160
|
const touchesStart = {};
|
|
16161
16161
|
let isTouched;
|
|
16162
16162
|
let isMoved;
|
|
@@ -16792,7 +16792,7 @@
|
|
|
16792
16792
|
super(params, [app]);
|
|
16793
16793
|
const vl = this;
|
|
16794
16794
|
const device = getDevice$1();
|
|
16795
|
-
const document = getDocument();
|
|
16795
|
+
const document = getDocument$1();
|
|
16796
16796
|
let defaultHeight;
|
|
16797
16797
|
if (app.theme === 'md') {
|
|
16798
16798
|
defaultHeight = 48;
|
|
@@ -16828,7 +16828,7 @@
|
|
|
16828
16828
|
|
|
16829
16829
|
// Extend defaults with modules params
|
|
16830
16830
|
vl.useModulesParams(defaults);
|
|
16831
|
-
vl.params = extend$
|
|
16831
|
+
vl.params = extend$3(defaults, params);
|
|
16832
16832
|
if (vl.params.height === undefined || !vl.params.height) {
|
|
16833
16833
|
vl.params.height = defaultHeight;
|
|
16834
16834
|
}
|
|
@@ -16871,7 +16871,7 @@
|
|
|
16871
16871
|
vl.ul = vl.$ul[0];
|
|
16872
16872
|
let $itemsWrapEl;
|
|
16873
16873
|
if (!vl.ul && !vl.params.createUl) $itemsWrapEl = vl.$el;else $itemsWrapEl = vl.$ul;
|
|
16874
|
-
extend$
|
|
16874
|
+
extend$3(vl, {
|
|
16875
16875
|
$itemsWrapEl,
|
|
16876
16876
|
itemsWrapEl: $itemsWrapEl[0],
|
|
16877
16877
|
// DOM cached items
|
|
@@ -17410,7 +17410,7 @@
|
|
|
17410
17410
|
|
|
17411
17411
|
// Extend defaults with modules params
|
|
17412
17412
|
index.useModulesParams(defaults);
|
|
17413
|
-
index.params = extend$
|
|
17413
|
+
index.params = extend$3(defaults, params);
|
|
17414
17414
|
let $el;
|
|
17415
17415
|
let $listEl;
|
|
17416
17416
|
let $pageContentEl;
|
|
@@ -17443,7 +17443,7 @@
|
|
|
17443
17443
|
}
|
|
17444
17444
|
}
|
|
17445
17445
|
$el[0].f7ListIndex = index;
|
|
17446
|
-
extend$
|
|
17446
|
+
extend$3(index, {
|
|
17447
17447
|
app,
|
|
17448
17448
|
$el,
|
|
17449
17449
|
el: $el && $el[0],
|
|
@@ -17725,7 +17725,7 @@
|
|
|
17725
17725
|
tabMounted(tabEl) {
|
|
17726
17726
|
const app = this;
|
|
17727
17727
|
$(tabEl).find('.list-index-init').each(listIndexEl => {
|
|
17728
|
-
const params = extend$
|
|
17728
|
+
const params = extend$3($(listIndexEl).dataset(), {
|
|
17729
17729
|
el: listIndexEl
|
|
17730
17730
|
});
|
|
17731
17731
|
app.listIndex.create(params);
|
|
@@ -17739,7 +17739,7 @@
|
|
|
17739
17739
|
pageInit(page) {
|
|
17740
17740
|
const app = this;
|
|
17741
17741
|
page.$el.find('.list-index-init').each(listIndexEl => {
|
|
17742
|
-
const params = extend$
|
|
17742
|
+
const params = extend$3($(listIndexEl).dataset(), {
|
|
17743
17743
|
el: listIndexEl
|
|
17744
17744
|
});
|
|
17745
17745
|
app.listIndex.create(params);
|
|
@@ -17756,7 +17756,7 @@
|
|
|
17756
17756
|
insert(vnode) {
|
|
17757
17757
|
const app = this;
|
|
17758
17758
|
const listIndexEl = vnode.elm;
|
|
17759
|
-
const params = extend$
|
|
17759
|
+
const params = extend$3($(listIndexEl).dataset(), {
|
|
17760
17760
|
el: listIndexEl
|
|
17761
17761
|
});
|
|
17762
17762
|
app.listIndex.create(params);
|
|
@@ -17979,7 +17979,7 @@
|
|
|
17979
17979
|
name: 'tabs',
|
|
17980
17980
|
create() {
|
|
17981
17981
|
const app = this;
|
|
17982
|
-
extend$
|
|
17982
|
+
extend$3(app, {
|
|
17983
17983
|
tab: {
|
|
17984
17984
|
show: Tab.show.bind(app)
|
|
17985
17985
|
}
|
|
@@ -18020,7 +18020,7 @@
|
|
|
18020
18020
|
if (panel.swipeInitialized) {
|
|
18021
18021
|
return;
|
|
18022
18022
|
}
|
|
18023
|
-
extend$
|
|
18023
|
+
extend$3(panel, {
|
|
18024
18024
|
swipeable: true,
|
|
18025
18025
|
swipeInitialized: true
|
|
18026
18026
|
});
|
|
@@ -18328,7 +18328,7 @@
|
|
|
18328
18328
|
const app = panel.app;
|
|
18329
18329
|
const support = getSupport$1();
|
|
18330
18330
|
if (panel.resizableInitialized) return;
|
|
18331
|
-
extend$
|
|
18331
|
+
extend$3(panel, {
|
|
18332
18332
|
resizable: true,
|
|
18333
18333
|
resizableWidth: null,
|
|
18334
18334
|
resizableInitialized: true
|
|
@@ -18350,6 +18350,7 @@
|
|
|
18350
18350
|
let panelMinWidth;
|
|
18351
18351
|
let panelMaxWidth;
|
|
18352
18352
|
let visibleByBreakpoint;
|
|
18353
|
+
const isPushingPanel = effect !== 'cover' && effect !== 'floating';
|
|
18353
18354
|
function transformCSSWidth(v) {
|
|
18354
18355
|
if (!v) return null;
|
|
18355
18356
|
if (v.indexOf('%') >= 0 || v.indexOf('vw') >= 0) {
|
|
@@ -18380,13 +18381,13 @@
|
|
|
18380
18381
|
$el.transition(0);
|
|
18381
18382
|
$el.addClass('panel-resizing');
|
|
18382
18383
|
$htmlEl.css('cursor', 'col-resize');
|
|
18383
|
-
if (
|
|
18384
|
+
if (isPushingPanel || visibleByBreakpoint) {
|
|
18384
18385
|
$viewEl = $(panel.getViewEl());
|
|
18385
18386
|
if (panel.$containerEl && panel.$containerEl.hasClass('page')) {
|
|
18386
18387
|
$viewEl.add(panel.$containerEl.children('.page-content, .tabs, .fab'));
|
|
18387
18388
|
}
|
|
18388
18389
|
}
|
|
18389
|
-
if (
|
|
18390
|
+
if (isPushingPanel && !visibleByBreakpoint) {
|
|
18390
18391
|
$backdropEl.transition(0);
|
|
18391
18392
|
$viewEl.transition(0);
|
|
18392
18393
|
}
|
|
@@ -18404,7 +18405,7 @@
|
|
|
18404
18405
|
newPanelWidth = Math.min(Math.max(newPanelWidth, 0), app.width);
|
|
18405
18406
|
panel.resizableWidth = newPanelWidth;
|
|
18406
18407
|
$el[0].style.width = `${newPanelWidth}px`;
|
|
18407
|
-
if (
|
|
18408
|
+
if (isPushingPanel && !visibleByBreakpoint) {
|
|
18408
18409
|
if ($viewEl) {
|
|
18409
18410
|
$viewEl.transform(`translate3d(${side === 'left' ? newPanelWidth : -newPanelWidth}px, 0, 0)`);
|
|
18410
18411
|
}
|
|
@@ -18428,14 +18429,14 @@
|
|
|
18428
18429
|
isMoved = false;
|
|
18429
18430
|
$htmlEl[0].style.setProperty(`--f7-panel-${side}-width`, `${panel.resizableWidth}px`);
|
|
18430
18431
|
$el[0].style.width = '';
|
|
18431
|
-
if (
|
|
18432
|
+
if (isPushingPanel && !visibleByBreakpoint) {
|
|
18432
18433
|
$viewEl.transform('');
|
|
18433
18434
|
$backdropEl.transform('');
|
|
18434
18435
|
}
|
|
18435
18436
|
$el.removeClass('panel-resizing');
|
|
18436
18437
|
nextFrame$1(() => {
|
|
18437
18438
|
$el.transition('');
|
|
18438
|
-
if (
|
|
18439
|
+
if (isPushingPanel) {
|
|
18439
18440
|
$backdropEl.transition('');
|
|
18440
18441
|
if ($viewEl) $viewEl.transition('');
|
|
18441
18442
|
}
|
|
@@ -18485,7 +18486,7 @@
|
|
|
18485
18486
|
if (params === void 0) {
|
|
18486
18487
|
params = {};
|
|
18487
18488
|
}
|
|
18488
|
-
const extendedParams = extend$
|
|
18489
|
+
const extendedParams = extend$3({
|
|
18489
18490
|
on: {}
|
|
18490
18491
|
}, app.params.panel, params);
|
|
18491
18492
|
super(extendedParams, [app]);
|
|
@@ -18526,7 +18527,7 @@
|
|
|
18526
18527
|
panel.$containerEl.prepend($backdropEl);
|
|
18527
18528
|
}
|
|
18528
18529
|
}
|
|
18529
|
-
extend$
|
|
18530
|
+
extend$3(panel, {
|
|
18530
18531
|
app,
|
|
18531
18532
|
side,
|
|
18532
18533
|
effect,
|
|
@@ -18812,7 +18813,7 @@
|
|
|
18812
18813
|
}
|
|
18813
18814
|
insertToRoot() {
|
|
18814
18815
|
const panel = this;
|
|
18815
|
-
const document = getDocument();
|
|
18816
|
+
const document = getDocument$1();
|
|
18816
18817
|
const {
|
|
18817
18818
|
$el,
|
|
18818
18819
|
$backdropEl,
|
|
@@ -19062,7 +19063,7 @@
|
|
|
19062
19063
|
},
|
|
19063
19064
|
create() {
|
|
19064
19065
|
const app = this;
|
|
19065
|
-
extend$
|
|
19066
|
+
extend$3(app, {
|
|
19066
19067
|
panel: {
|
|
19067
19068
|
allowOpen: true,
|
|
19068
19069
|
create(params) {
|
|
@@ -19228,7 +19229,7 @@
|
|
|
19228
19229
|
}
|
|
19229
19230
|
const app = this;
|
|
19230
19231
|
const device = getDevice$1();
|
|
19231
|
-
const document = getDocument();
|
|
19232
|
+
const document = getDocument$1();
|
|
19232
19233
|
const support = getSupport$1();
|
|
19233
19234
|
const $cardEl = $(cardEl).eq(0);
|
|
19234
19235
|
if (!$cardEl || !$cardEl.length) return;
|
|
@@ -19725,7 +19726,7 @@
|
|
|
19725
19726
|
const FormData = {
|
|
19726
19727
|
store(form, data) {
|
|
19727
19728
|
const app = this;
|
|
19728
|
-
const window = getWindow();
|
|
19729
|
+
const window = getWindow$1();
|
|
19729
19730
|
let formId = form;
|
|
19730
19731
|
const $formEl = $(form);
|
|
19731
19732
|
if ($formEl.length && $formEl.is('form') && $formEl.attr('id')) {
|
|
@@ -19739,7 +19740,7 @@
|
|
|
19739
19740
|
},
|
|
19740
19741
|
get(form) {
|
|
19741
19742
|
const app = this;
|
|
19742
|
-
const window = getWindow();
|
|
19743
|
+
const window = getWindow$1();
|
|
19743
19744
|
let formId = form;
|
|
19744
19745
|
const $formEl = $(form);
|
|
19745
19746
|
if ($formEl.length && $formEl.is('form') && $formEl.attr('id')) {
|
|
@@ -19755,7 +19756,7 @@
|
|
|
19755
19756
|
},
|
|
19756
19757
|
remove(form) {
|
|
19757
19758
|
const app = this;
|
|
19758
|
-
const window = getWindow();
|
|
19759
|
+
const window = getWindow$1();
|
|
19759
19760
|
let formId = form;
|
|
19760
19761
|
const $formEl = $(form);
|
|
19761
19762
|
if ($formEl.length && $formEl.is('form') && $formEl.attr('id')) {
|
|
@@ -19916,8 +19917,8 @@
|
|
|
19916
19917
|
}
|
|
19917
19918
|
function initAjaxForm() {
|
|
19918
19919
|
const app = this;
|
|
19919
|
-
const window = getWindow();
|
|
19920
|
-
const document = getDocument();
|
|
19920
|
+
const window = getWindow$1();
|
|
19921
|
+
const document = getDocument$1();
|
|
19921
19922
|
function onSubmitChange(e, fromData) {
|
|
19922
19923
|
const $formEl = $(this);
|
|
19923
19924
|
if (e.type === 'change' && !$formEl.hasClass('form-ajax-submit-onchange')) return;
|
|
@@ -19982,7 +19983,7 @@
|
|
|
19982
19983
|
name: 'form',
|
|
19983
19984
|
create() {
|
|
19984
19985
|
const app = this;
|
|
19985
|
-
extend$
|
|
19986
|
+
extend$3(app, {
|
|
19986
19987
|
form: {
|
|
19987
19988
|
data: {},
|
|
19988
19989
|
storeFormData: FormData.store.bind(app),
|
|
@@ -20032,7 +20033,7 @@
|
|
|
20032
20033
|
const Input = {
|
|
20033
20034
|
ignoreTypes: ['checkbox', 'button', 'submit', 'range', 'radio', 'image'],
|
|
20034
20035
|
createTextareaResizableShadow() {
|
|
20035
|
-
const document = getDocument();
|
|
20036
|
+
const document = getDocument$1();
|
|
20036
20037
|
const $shadowEl = $(document.createElement('textarea'));
|
|
20037
20038
|
$shadowEl.addClass('textarea-resizable-shadow');
|
|
20038
20039
|
$shadowEl.prop({
|
|
@@ -20044,7 +20045,7 @@
|
|
|
20044
20045
|
textareaResizableShadow: undefined,
|
|
20045
20046
|
resizeTextarea(textareaEl) {
|
|
20046
20047
|
const app = this;
|
|
20047
|
-
const window = getWindow();
|
|
20048
|
+
const window = getWindow$1();
|
|
20048
20049
|
const $textareaEl = $(textareaEl);
|
|
20049
20050
|
if (!Input.textareaResizableShadow) {
|
|
20050
20051
|
Input.createTextareaResizableShadow();
|
|
@@ -20220,8 +20221,8 @@
|
|
|
20220
20221
|
init() {
|
|
20221
20222
|
const app = this;
|
|
20222
20223
|
const device = getDevice$1();
|
|
20223
|
-
const window = getWindow();
|
|
20224
|
-
const document = getDocument();
|
|
20224
|
+
const window = getWindow$1();
|
|
20225
|
+
const document = getDocument$1();
|
|
20225
20226
|
Input.createTextareaResizableShadow();
|
|
20226
20227
|
function onFocus() {
|
|
20227
20228
|
const inputEl = this;
|
|
@@ -20385,14 +20386,14 @@
|
|
|
20385
20386
|
|
|
20386
20387
|
// Extend defaults with modules params
|
|
20387
20388
|
toggle.useModulesParams(defaults);
|
|
20388
|
-
toggle.params = extend$
|
|
20389
|
+
toggle.params = extend$3(defaults, params);
|
|
20389
20390
|
const el = toggle.params.el;
|
|
20390
20391
|
if (!el) return toggle;
|
|
20391
20392
|
const $el = $(el);
|
|
20392
20393
|
if ($el.length === 0) return toggle;
|
|
20393
20394
|
if ($el[0].f7Toggle) return $el[0].f7Toggle;
|
|
20394
20395
|
const $inputEl = $el.children('input[type="checkbox"]');
|
|
20395
|
-
extend$
|
|
20396
|
+
extend$3(toggle, {
|
|
20396
20397
|
app,
|
|
20397
20398
|
$el,
|
|
20398
20399
|
el: $el[0],
|
|
@@ -20616,7 +20617,7 @@
|
|
|
20616
20617
|
|
|
20617
20618
|
// Extend defaults with modules params
|
|
20618
20619
|
range.useModulesParams(defaults);
|
|
20619
|
-
range.params = extend$
|
|
20620
|
+
range.params = extend$3(defaults, params);
|
|
20620
20621
|
const el = range.params.el;
|
|
20621
20622
|
if (!el) return range;
|
|
20622
20623
|
const $el = $(el);
|
|
@@ -20661,7 +20662,7 @@
|
|
|
20661
20662
|
scaleSubSteps,
|
|
20662
20663
|
limitKnobPosition
|
|
20663
20664
|
} = range.params;
|
|
20664
|
-
extend$
|
|
20665
|
+
extend$3(range, {
|
|
20665
20666
|
app,
|
|
20666
20667
|
$el,
|
|
20667
20668
|
el: $el[0],
|
|
@@ -20753,7 +20754,7 @@
|
|
|
20753
20754
|
`);
|
|
20754
20755
|
$el.append($scaleEl);
|
|
20755
20756
|
}
|
|
20756
|
-
extend$
|
|
20757
|
+
extend$3(range, {
|
|
20757
20758
|
knobs,
|
|
20758
20759
|
labels,
|
|
20759
20760
|
$barEl,
|
|
@@ -21166,7 +21167,7 @@
|
|
|
21166
21167
|
name: 'range',
|
|
21167
21168
|
create() {
|
|
21168
21169
|
const app = this;
|
|
21169
|
-
app.range = extend$
|
|
21170
|
+
app.range = extend$3(ConstructorMethods({
|
|
21170
21171
|
defaultSelector: '.range-slider',
|
|
21171
21172
|
constructor: Range$1,
|
|
21172
21173
|
app,
|
|
@@ -21258,7 +21259,7 @@
|
|
|
21258
21259
|
|
|
21259
21260
|
// Extend defaults with modules params
|
|
21260
21261
|
stepper.useModulesParams(defaults);
|
|
21261
|
-
stepper.params = extend$
|
|
21262
|
+
stepper.params = extend$3(defaults, params);
|
|
21262
21263
|
if (stepper.params.value < stepper.params.min) {
|
|
21263
21264
|
stepper.params.value = stepper.params.min;
|
|
21264
21265
|
}
|
|
@@ -21308,7 +21309,7 @@
|
|
|
21308
21309
|
value,
|
|
21309
21310
|
decimalPoint
|
|
21310
21311
|
} = stepper.params;
|
|
21311
|
-
extend$
|
|
21312
|
+
extend$3(stepper, {
|
|
21312
21313
|
app,
|
|
21313
21314
|
$el,
|
|
21314
21315
|
el: $el[0],
|
|
@@ -21638,7 +21639,7 @@
|
|
|
21638
21639
|
name: 'stepper',
|
|
21639
21640
|
create() {
|
|
21640
21641
|
const app = this;
|
|
21641
|
-
app.stepper = extend$
|
|
21642
|
+
app.stepper = extend$3(ConstructorMethods({
|
|
21642
21643
|
defaultSelector: '.stepper',
|
|
21643
21644
|
constructor: Stepper$1,
|
|
21644
21645
|
app,
|
|
@@ -21670,7 +21671,7 @@
|
|
|
21670
21671
|
const app = this;
|
|
21671
21672
|
$(tabEl).find('.stepper-init').each(stepperEl => {
|
|
21672
21673
|
const dataset = $(stepperEl).dataset();
|
|
21673
|
-
app.stepper.create(extend$
|
|
21674
|
+
app.stepper.create(extend$3({
|
|
21674
21675
|
el: stepperEl
|
|
21675
21676
|
}, dataset || {}));
|
|
21676
21677
|
});
|
|
@@ -21684,7 +21685,7 @@
|
|
|
21684
21685
|
const app = this;
|
|
21685
21686
|
page.$el.find('.stepper-init').each(stepperEl => {
|
|
21686
21687
|
const dataset = $(stepperEl).dataset();
|
|
21687
|
-
app.stepper.create(extend$
|
|
21688
|
+
app.stepper.create(extend$3({
|
|
21688
21689
|
el: stepperEl
|
|
21689
21690
|
}, dataset || {}));
|
|
21690
21691
|
});
|
|
@@ -21701,7 +21702,7 @@
|
|
|
21701
21702
|
const app = this;
|
|
21702
21703
|
const stepperEl = vnode.elm;
|
|
21703
21704
|
const dataset = $(stepperEl).dataset();
|
|
21704
|
-
app.stepper.create(extend$
|
|
21705
|
+
app.stepper.create(extend$3({
|
|
21705
21706
|
el: stepperEl
|
|
21706
21707
|
}, dataset || {}));
|
|
21707
21708
|
},
|
|
@@ -21991,13 +21992,13 @@
|
|
|
21991
21992
|
}
|
|
21992
21993
|
super(params, [app]);
|
|
21993
21994
|
const ss = this;
|
|
21994
|
-
const defaults = extend$
|
|
21995
|
+
const defaults = extend$3({
|
|
21995
21996
|
on: {}
|
|
21996
21997
|
}, app.params.smartSelect);
|
|
21997
21998
|
|
|
21998
21999
|
// Extend defaults with modules params
|
|
21999
22000
|
ss.useModulesParams(defaults);
|
|
22000
|
-
ss.params = extend$
|
|
22001
|
+
ss.params = extend$3({}, defaults, params);
|
|
22001
22002
|
ss.app = app;
|
|
22002
22003
|
const $el = $(ss.params.el).eq(0);
|
|
22003
22004
|
if ($el.length === 0) return ss;
|
|
@@ -22025,7 +22026,7 @@
|
|
|
22025
22026
|
const multiple = $selectEl[0].multiple;
|
|
22026
22027
|
const inputType = multiple ? 'checkbox' : 'radio';
|
|
22027
22028
|
const selectId = id$1();
|
|
22028
|
-
extend$
|
|
22029
|
+
extend$3(ss, {
|
|
22029
22030
|
$el,
|
|
22030
22031
|
el: $el[0],
|
|
22031
22032
|
$selectEl,
|
|
@@ -22591,7 +22592,7 @@
|
|
|
22591
22592
|
$containerEl.find('.page-content').append($notFoundEl[0]);
|
|
22592
22593
|
}
|
|
22593
22594
|
}
|
|
22594
|
-
const searchbarParams = extend$
|
|
22595
|
+
const searchbarParams = extend$3({
|
|
22595
22596
|
el: $searchbarEl,
|
|
22596
22597
|
backdropEl: $containerEl.find('.searchbar-backdrop'),
|
|
22597
22598
|
searchContainer: `.smart-select-list-${ss.id}`,
|
|
@@ -22906,7 +22907,7 @@
|
|
|
22906
22907
|
},
|
|
22907
22908
|
create() {
|
|
22908
22909
|
const app = this;
|
|
22909
|
-
app.smartSelect = extend$
|
|
22910
|
+
app.smartSelect = extend$3(ConstructorMethods({
|
|
22910
22911
|
defaultSelector: '.smart-select',
|
|
22911
22912
|
constructor: SmartSelect$1,
|
|
22912
22913
|
app,
|
|
@@ -22928,7 +22929,7 @@
|
|
|
22928
22929
|
tabMounted(tabEl) {
|
|
22929
22930
|
const app = this;
|
|
22930
22931
|
$(tabEl).find('.smart-select-init').each(smartSelectEl => {
|
|
22931
|
-
app.smartSelect.create(extend$
|
|
22932
|
+
app.smartSelect.create(extend$3({
|
|
22932
22933
|
el: smartSelectEl
|
|
22933
22934
|
}, $(smartSelectEl).dataset()));
|
|
22934
22935
|
});
|
|
@@ -22943,7 +22944,7 @@
|
|
|
22943
22944
|
pageInit(page) {
|
|
22944
22945
|
const app = this;
|
|
22945
22946
|
page.$el.find('.smart-select-init').each(smartSelectEl => {
|
|
22946
|
-
app.smartSelect.create(extend$
|
|
22947
|
+
app.smartSelect.create(extend$3({
|
|
22947
22948
|
el: smartSelectEl
|
|
22948
22949
|
}, $(smartSelectEl).dataset()));
|
|
22949
22950
|
});
|
|
@@ -22960,7 +22961,7 @@
|
|
|
22960
22961
|
'.smart-select': function open($clickedEl, data) {
|
|
22961
22962
|
const app = this;
|
|
22962
22963
|
if (!$clickedEl[0].f7SmartSelect) {
|
|
22963
|
-
const ss = app.smartSelect.create(extend$
|
|
22964
|
+
const ss = app.smartSelect.create(extend$3({
|
|
22964
22965
|
el: $clickedEl
|
|
22965
22966
|
}, data));
|
|
22966
22967
|
ss.open();
|
|
@@ -22972,7 +22973,7 @@
|
|
|
22972
22973
|
insert(vnode) {
|
|
22973
22974
|
const app = this;
|
|
22974
22975
|
const smartSelectEl = vnode.elm;
|
|
22975
|
-
app.smartSelect.create(extend$
|
|
22976
|
+
app.smartSelect.create(extend$3({
|
|
22976
22977
|
el: smartSelectEl
|
|
22977
22978
|
}, $(smartSelectEl).dataset()));
|
|
22978
22979
|
},
|
|
@@ -22997,7 +22998,7 @@
|
|
|
22997
22998
|
}
|
|
22998
22999
|
super(params, [app]);
|
|
22999
23000
|
const calendar = this;
|
|
23000
|
-
calendar.params = extend$
|
|
23001
|
+
calendar.params = extend$3({}, app.params.calendar, params);
|
|
23001
23002
|
let $containerEl;
|
|
23002
23003
|
if (calendar.params.containerEl) {
|
|
23003
23004
|
$containerEl = $(calendar.params.containerEl);
|
|
@@ -23012,7 +23013,7 @@
|
|
|
23012
23013
|
if (isHorizontal) {
|
|
23013
23014
|
inverter = app.rtl ? -1 : 1;
|
|
23014
23015
|
}
|
|
23015
|
-
extend$
|
|
23016
|
+
extend$3(calendar, {
|
|
23016
23017
|
app,
|
|
23017
23018
|
$containerEl,
|
|
23018
23019
|
containerEl: $containerEl && $containerEl[0],
|
|
@@ -23070,7 +23071,7 @@
|
|
|
23070
23071
|
if (monthNamesShort === 'auto') monthNamesShort = monthNamesShortIntl;
|
|
23071
23072
|
if (dayNames === 'auto') dayNames = dayNamesIntl;
|
|
23072
23073
|
if (dayNamesShort === 'auto') dayNamesShort = dayNamesShortIntl;
|
|
23073
|
-
extend$
|
|
23074
|
+
extend$3(calendar, {
|
|
23074
23075
|
monthNames,
|
|
23075
23076
|
monthNamesShort,
|
|
23076
23077
|
dayNames,
|
|
@@ -23105,7 +23106,7 @@
|
|
|
23105
23106
|
}
|
|
23106
23107
|
|
|
23107
23108
|
// Events
|
|
23108
|
-
extend$
|
|
23109
|
+
extend$3(calendar, {
|
|
23109
23110
|
attachInputEvents() {
|
|
23110
23111
|
calendar.$inputEl.on('click', onInputClick);
|
|
23111
23112
|
calendar.$inputEl.on('input:clear', onInputClear);
|
|
@@ -25100,8 +25101,8 @@
|
|
|
25100
25101
|
super(params, [app]);
|
|
25101
25102
|
const picker = this;
|
|
25102
25103
|
const device = getDevice$1();
|
|
25103
|
-
const window = getWindow();
|
|
25104
|
-
picker.params = extend$
|
|
25104
|
+
const window = getWindow$1();
|
|
25105
|
+
picker.params = extend$3({}, app.params.picker, params);
|
|
25105
25106
|
let $containerEl;
|
|
25106
25107
|
if (picker.params.containerEl) {
|
|
25107
25108
|
$containerEl = $(picker.params.containerEl);
|
|
@@ -25118,7 +25119,7 @@
|
|
|
25118
25119
|
$scrollToEl = scrollToEl;
|
|
25119
25120
|
}
|
|
25120
25121
|
}
|
|
25121
|
-
extend$
|
|
25122
|
+
extend$3(picker, {
|
|
25122
25123
|
app,
|
|
25123
25124
|
$containerEl,
|
|
25124
25125
|
containerEl: $containerEl && $containerEl[0],
|
|
@@ -25161,7 +25162,7 @@
|
|
|
25161
25162
|
}
|
|
25162
25163
|
|
|
25163
25164
|
// Events
|
|
25164
|
-
extend$
|
|
25165
|
+
extend$3(picker, {
|
|
25165
25166
|
attachResizeEvent() {
|
|
25166
25167
|
app.on('resize', onResize);
|
|
25167
25168
|
},
|
|
@@ -26332,7 +26333,7 @@
|
|
|
26332
26333
|
name: 'pullToRefresh',
|
|
26333
26334
|
create() {
|
|
26334
26335
|
const app = this;
|
|
26335
|
-
app.ptr = extend$
|
|
26336
|
+
app.ptr = extend$3(ConstructorMethods({
|
|
26336
26337
|
defaultSelector: '.ptr-content',
|
|
26337
26338
|
constructor: PullToRefresh$1,
|
|
26338
26339
|
app,
|
|
@@ -26398,7 +26399,7 @@
|
|
|
26398
26399
|
|
|
26399
26400
|
// Extend defaults with modules params
|
|
26400
26401
|
table.useModulesParams(defaults);
|
|
26401
|
-
table.params = extend$
|
|
26402
|
+
table.params = extend$3(defaults, params);
|
|
26402
26403
|
|
|
26403
26404
|
// El
|
|
26404
26405
|
const $el = $(table.params.el);
|
|
@@ -26411,7 +26412,7 @@
|
|
|
26411
26412
|
return instance;
|
|
26412
26413
|
}
|
|
26413
26414
|
table.$el[0].f7DataTable = table;
|
|
26414
|
-
extend$
|
|
26415
|
+
extend$3(table, {
|
|
26415
26416
|
collapsible: $el.hasClass('data-table-collapsible'),
|
|
26416
26417
|
// Headers
|
|
26417
26418
|
$headerEl: $el.find('.data-table-header'),
|
|
@@ -26797,7 +26798,7 @@
|
|
|
26797
26798
|
|
|
26798
26799
|
// Extend defaults with modules params
|
|
26799
26800
|
sb.useModulesParams(defaults);
|
|
26800
|
-
sb.params = extend$
|
|
26801
|
+
sb.params = extend$3(defaults, params);
|
|
26801
26802
|
const $el = $(sb.params.el);
|
|
26802
26803
|
if ($el.length === 0) return sb;
|
|
26803
26804
|
if ($el[0].f7Searchbar) return $el[0].f7Searchbar;
|
|
@@ -26884,7 +26885,7 @@
|
|
|
26884
26885
|
$disableButtonEl = $el.find('.searchbar-disable-button');
|
|
26885
26886
|
}
|
|
26886
26887
|
}
|
|
26887
|
-
extend$
|
|
26888
|
+
extend$3(sb, {
|
|
26888
26889
|
app,
|
|
26889
26890
|
view: app.views.get($el.parents('.view')),
|
|
26890
26891
|
$el,
|
|
@@ -27030,7 +27031,7 @@
|
|
|
27030
27031
|
const sb = this;
|
|
27031
27032
|
if (sb.enabled) return sb;
|
|
27032
27033
|
const app = sb.app;
|
|
27033
|
-
const document = getDocument();
|
|
27034
|
+
const document = getDocument$1();
|
|
27034
27035
|
const device = getDevice$1();
|
|
27035
27036
|
sb.enabled = true;
|
|
27036
27037
|
function enable() {
|
|
@@ -27364,7 +27365,7 @@
|
|
|
27364
27365
|
const app = this;
|
|
27365
27366
|
$(tabEl).find('.searchbar-init').each(searchbarEl => {
|
|
27366
27367
|
const $searchbarEl = $(searchbarEl);
|
|
27367
|
-
app.searchbar.create(extend$
|
|
27368
|
+
app.searchbar.create(extend$3($searchbarEl.dataset(), {
|
|
27368
27369
|
el: searchbarEl
|
|
27369
27370
|
}));
|
|
27370
27371
|
});
|
|
@@ -27380,14 +27381,14 @@
|
|
|
27380
27381
|
const app = this;
|
|
27381
27382
|
page.$el.find('.searchbar-init').each(searchbarEl => {
|
|
27382
27383
|
const $searchbarEl = $(searchbarEl);
|
|
27383
|
-
app.searchbar.create(extend$
|
|
27384
|
+
app.searchbar.create(extend$3($searchbarEl.dataset(), {
|
|
27384
27385
|
el: searchbarEl
|
|
27385
27386
|
}));
|
|
27386
27387
|
});
|
|
27387
27388
|
if (app.theme === 'ios' && page.view && page.view.router.dynamicNavbar && page.$navbarEl && page.$navbarEl.length > 0) {
|
|
27388
27389
|
page.$navbarEl.find('.searchbar-init').each(searchbarEl => {
|
|
27389
27390
|
const $searchbarEl = $(searchbarEl);
|
|
27390
|
-
app.searchbar.create(extend$
|
|
27391
|
+
app.searchbar.create(extend$3($searchbarEl.dataset(), {
|
|
27391
27392
|
el: searchbarEl
|
|
27392
27393
|
}));
|
|
27393
27394
|
});
|
|
@@ -27449,7 +27450,7 @@
|
|
|
27449
27450
|
const app = this;
|
|
27450
27451
|
const searchbarEl = vnode.elm;
|
|
27451
27452
|
const $searchbarEl = $(searchbarEl);
|
|
27452
|
-
app.searchbar.create(extend$
|
|
27453
|
+
app.searchbar.create(extend$3($searchbarEl.dataset(), {
|
|
27453
27454
|
el: searchbarEl
|
|
27454
27455
|
}));
|
|
27455
27456
|
},
|
|
@@ -29519,13 +29520,13 @@
|
|
|
29519
29520
|
|
|
29520
29521
|
// Extend defaults with modules params
|
|
29521
29522
|
m.useModulesParams(defaults);
|
|
29522
|
-
m.params = extend$
|
|
29523
|
+
m.params = extend$3(defaults, params);
|
|
29523
29524
|
const $el = $(params.el).eq(0);
|
|
29524
29525
|
if ($el.length === 0) return m;
|
|
29525
29526
|
if ($el[0].f7Messages) return $el[0].f7Messages;
|
|
29526
29527
|
$el[0].f7Messages = m;
|
|
29527
29528
|
const $pageContentEl = $el.closest('.page-content').eq(0);
|
|
29528
|
-
extend$
|
|
29529
|
+
extend$3(m, {
|
|
29529
29530
|
messages: m.params.messages,
|
|
29530
29531
|
$el,
|
|
29531
29532
|
el: $el[0],
|
|
@@ -29584,7 +29585,7 @@
|
|
|
29584
29585
|
}
|
|
29585
29586
|
renderMessage(messageToRender) {
|
|
29586
29587
|
const m = this;
|
|
29587
|
-
const message = extend$
|
|
29588
|
+
const message = extend$3({
|
|
29588
29589
|
type: 'sent',
|
|
29589
29590
|
attrs: {}
|
|
29590
29591
|
}, messageToRender);
|
|
@@ -29890,7 +29891,7 @@
|
|
|
29890
29891
|
if (typingMessage) {
|
|
29891
29892
|
m.removeMessage(m.messages.indexOf(typingMessage));
|
|
29892
29893
|
}
|
|
29893
|
-
m.addMessage(extend$
|
|
29894
|
+
m.addMessage(extend$3({
|
|
29894
29895
|
type: 'received',
|
|
29895
29896
|
isTyping: true
|
|
29896
29897
|
}, message));
|
|
@@ -30057,7 +30058,7 @@
|
|
|
30057
30058
|
|
|
30058
30059
|
// Extend defaults with modules params
|
|
30059
30060
|
messagebar.useModulesParams(defaults);
|
|
30060
|
-
messagebar.params = extend$
|
|
30061
|
+
messagebar.params = extend$3(defaults, params);
|
|
30061
30062
|
|
|
30062
30063
|
// El
|
|
30063
30064
|
const $el = $(messagebar.params.el);
|
|
@@ -30086,7 +30087,7 @@
|
|
|
30086
30087
|
if (messagebar.params.top) {
|
|
30087
30088
|
$el.addClass('messagebar-top');
|
|
30088
30089
|
}
|
|
30089
|
-
extend$
|
|
30090
|
+
extend$3(messagebar, {
|
|
30090
30091
|
$el,
|
|
30091
30092
|
el: $el[0],
|
|
30092
30093
|
$areaEl,
|
|
@@ -30269,7 +30270,7 @@
|
|
|
30269
30270
|
const messagebar = this;
|
|
30270
30271
|
const $attachmentsEl = $(`<div class="messagebar-attachments">${innerHTML}</div>`);
|
|
30271
30272
|
$attachmentsEl.insertBefore(messagebar.$textareaEl);
|
|
30272
|
-
extend$
|
|
30273
|
+
extend$3(messagebar, {
|
|
30273
30274
|
$attachmentsEl,
|
|
30274
30275
|
attachmentsEl: $attachmentsEl[0]
|
|
30275
30276
|
});
|
|
@@ -30342,7 +30343,7 @@
|
|
|
30342
30343
|
const messagebar = this;
|
|
30343
30344
|
const $sheetEl = $(`<div class="messagebar-sheet">${innerHTML}</div>`);
|
|
30344
30345
|
messagebar.$el.append($sheetEl);
|
|
30345
|
-
extend$
|
|
30346
|
+
extend$3(messagebar, {
|
|
30346
30347
|
$sheetEl,
|
|
30347
30348
|
sheetEl: $sheetEl[0]
|
|
30348
30349
|
});
|
|
@@ -30426,7 +30427,7 @@
|
|
|
30426
30427
|
tabMounted(tabEl) {
|
|
30427
30428
|
const app = this;
|
|
30428
30429
|
$(tabEl).find('.messagebar-init').each(messagebarEl => {
|
|
30429
|
-
app.messagebar.create(extend$
|
|
30430
|
+
app.messagebar.create(extend$3({
|
|
30430
30431
|
el: messagebarEl
|
|
30431
30432
|
}, $(messagebarEl).dataset()));
|
|
30432
30433
|
});
|
|
@@ -30440,7 +30441,7 @@
|
|
|
30440
30441
|
pageInit(page) {
|
|
30441
30442
|
const app = this;
|
|
30442
30443
|
page.$el.find('.messagebar-init').each(messagebarEl => {
|
|
30443
|
-
app.messagebar.create(extend$
|
|
30444
|
+
app.messagebar.create(extend$3({
|
|
30444
30445
|
el: messagebarEl
|
|
30445
30446
|
}, $(messagebarEl).dataset()));
|
|
30446
30447
|
});
|
|
@@ -30451,7 +30452,7 @@
|
|
|
30451
30452
|
insert(vnode) {
|
|
30452
30453
|
const app = this;
|
|
30453
30454
|
const messagebarEl = vnode.elm;
|
|
30454
|
-
app.messagebar.create(extend$
|
|
30455
|
+
app.messagebar.create(extend$3({
|
|
30455
30456
|
el: messagebarEl
|
|
30456
30457
|
}, $(messagebarEl).dataset()));
|
|
30457
30458
|
},
|
|
@@ -30464,6 +30465,150 @@
|
|
|
30464
30465
|
}
|
|
30465
30466
|
};
|
|
30466
30467
|
|
|
30468
|
+
/**
|
|
30469
|
+
* SSR Window 4.0.2
|
|
30470
|
+
* Better handling for window object in SSR environment
|
|
30471
|
+
* https://github.com/nolimits4web/ssr-window
|
|
30472
|
+
*
|
|
30473
|
+
* Copyright 2021, Vladimir Kharlampidi
|
|
30474
|
+
*
|
|
30475
|
+
* Licensed under MIT
|
|
30476
|
+
*
|
|
30477
|
+
* Released on: December 13, 2021
|
|
30478
|
+
*/
|
|
30479
|
+
/* eslint-disable no-param-reassign */
|
|
30480
|
+
function isObject$2(obj) {
|
|
30481
|
+
return obj !== null && typeof obj === 'object' && 'constructor' in obj && obj.constructor === Object;
|
|
30482
|
+
}
|
|
30483
|
+
function extend$2(target, src) {
|
|
30484
|
+
if (target === void 0) {
|
|
30485
|
+
target = {};
|
|
30486
|
+
}
|
|
30487
|
+
if (src === void 0) {
|
|
30488
|
+
src = {};
|
|
30489
|
+
}
|
|
30490
|
+
Object.keys(src).forEach(key => {
|
|
30491
|
+
if (typeof target[key] === 'undefined') target[key] = src[key];else if (isObject$2(src[key]) && isObject$2(target[key]) && Object.keys(src[key]).length > 0) {
|
|
30492
|
+
extend$2(target[key], src[key]);
|
|
30493
|
+
}
|
|
30494
|
+
});
|
|
30495
|
+
}
|
|
30496
|
+
const ssrDocument = {
|
|
30497
|
+
body: {},
|
|
30498
|
+
addEventListener() {},
|
|
30499
|
+
removeEventListener() {},
|
|
30500
|
+
activeElement: {
|
|
30501
|
+
blur() {},
|
|
30502
|
+
nodeName: ''
|
|
30503
|
+
},
|
|
30504
|
+
querySelector() {
|
|
30505
|
+
return null;
|
|
30506
|
+
},
|
|
30507
|
+
querySelectorAll() {
|
|
30508
|
+
return [];
|
|
30509
|
+
},
|
|
30510
|
+
getElementById() {
|
|
30511
|
+
return null;
|
|
30512
|
+
},
|
|
30513
|
+
createEvent() {
|
|
30514
|
+
return {
|
|
30515
|
+
initEvent() {}
|
|
30516
|
+
};
|
|
30517
|
+
},
|
|
30518
|
+
createElement() {
|
|
30519
|
+
return {
|
|
30520
|
+
children: [],
|
|
30521
|
+
childNodes: [],
|
|
30522
|
+
style: {},
|
|
30523
|
+
setAttribute() {},
|
|
30524
|
+
getElementsByTagName() {
|
|
30525
|
+
return [];
|
|
30526
|
+
}
|
|
30527
|
+
};
|
|
30528
|
+
},
|
|
30529
|
+
createElementNS() {
|
|
30530
|
+
return {};
|
|
30531
|
+
},
|
|
30532
|
+
importNode() {
|
|
30533
|
+
return null;
|
|
30534
|
+
},
|
|
30535
|
+
location: {
|
|
30536
|
+
hash: '',
|
|
30537
|
+
host: '',
|
|
30538
|
+
hostname: '',
|
|
30539
|
+
href: '',
|
|
30540
|
+
origin: '',
|
|
30541
|
+
pathname: '',
|
|
30542
|
+
protocol: '',
|
|
30543
|
+
search: ''
|
|
30544
|
+
}
|
|
30545
|
+
};
|
|
30546
|
+
function getDocument() {
|
|
30547
|
+
const doc = typeof document !== 'undefined' ? document : {};
|
|
30548
|
+
extend$2(doc, ssrDocument);
|
|
30549
|
+
return doc;
|
|
30550
|
+
}
|
|
30551
|
+
const ssrWindow = {
|
|
30552
|
+
document: ssrDocument,
|
|
30553
|
+
navigator: {
|
|
30554
|
+
userAgent: ''
|
|
30555
|
+
},
|
|
30556
|
+
location: {
|
|
30557
|
+
hash: '',
|
|
30558
|
+
host: '',
|
|
30559
|
+
hostname: '',
|
|
30560
|
+
href: '',
|
|
30561
|
+
origin: '',
|
|
30562
|
+
pathname: '',
|
|
30563
|
+
protocol: '',
|
|
30564
|
+
search: ''
|
|
30565
|
+
},
|
|
30566
|
+
history: {
|
|
30567
|
+
replaceState() {},
|
|
30568
|
+
pushState() {},
|
|
30569
|
+
go() {},
|
|
30570
|
+
back() {}
|
|
30571
|
+
},
|
|
30572
|
+
CustomEvent: function CustomEvent() {
|
|
30573
|
+
return this;
|
|
30574
|
+
},
|
|
30575
|
+
addEventListener() {},
|
|
30576
|
+
removeEventListener() {},
|
|
30577
|
+
getComputedStyle() {
|
|
30578
|
+
return {
|
|
30579
|
+
getPropertyValue() {
|
|
30580
|
+
return '';
|
|
30581
|
+
}
|
|
30582
|
+
};
|
|
30583
|
+
},
|
|
30584
|
+
Image() {},
|
|
30585
|
+
Date() {},
|
|
30586
|
+
screen: {},
|
|
30587
|
+
setTimeout() {},
|
|
30588
|
+
clearTimeout() {},
|
|
30589
|
+
matchMedia() {
|
|
30590
|
+
return {};
|
|
30591
|
+
},
|
|
30592
|
+
requestAnimationFrame(callback) {
|
|
30593
|
+
if (typeof setTimeout === 'undefined') {
|
|
30594
|
+
callback();
|
|
30595
|
+
return null;
|
|
30596
|
+
}
|
|
30597
|
+
return setTimeout(callback, 0);
|
|
30598
|
+
},
|
|
30599
|
+
cancelAnimationFrame(id) {
|
|
30600
|
+
if (typeof setTimeout === 'undefined') {
|
|
30601
|
+
return;
|
|
30602
|
+
}
|
|
30603
|
+
clearTimeout(id);
|
|
30604
|
+
}
|
|
30605
|
+
};
|
|
30606
|
+
function getWindow() {
|
|
30607
|
+
const win = typeof window !== 'undefined' ? window : {};
|
|
30608
|
+
extend$2(win, ssrWindow);
|
|
30609
|
+
return win;
|
|
30610
|
+
}
|
|
30611
|
+
|
|
30467
30612
|
function deleteProps(obj) {
|
|
30468
30613
|
const object = obj;
|
|
30469
30614
|
Object.keys(object).forEach(key => {
|
|
@@ -30510,7 +30655,7 @@
|
|
|
30510
30655
|
let matrix;
|
|
30511
30656
|
let curTransform;
|
|
30512
30657
|
let transformMatrix;
|
|
30513
|
-
const curStyle = getComputedStyle$1(el
|
|
30658
|
+
const curStyle = getComputedStyle$1(el);
|
|
30514
30659
|
if (window.WebKitCSSMatrix) {
|
|
30515
30660
|
curTransform = curStyle.transform || curStyle.webkitTransform;
|
|
30516
30661
|
if (curTransform.split(',').length > 6) {
|
|
@@ -30635,20 +30780,7 @@
|
|
|
30635
30780
|
animate();
|
|
30636
30781
|
}
|
|
30637
30782
|
function getSlideTransformEl(slideEl) {
|
|
30638
|
-
return slideEl.querySelector('.swiper-slide-transform') || slideEl.
|
|
30639
|
-
}
|
|
30640
|
-
function findElementsInElements(elements, selector) {
|
|
30641
|
-
if (elements === void 0) {
|
|
30642
|
-
elements = [];
|
|
30643
|
-
}
|
|
30644
|
-
if (selector === void 0) {
|
|
30645
|
-
selector = '';
|
|
30646
|
-
}
|
|
30647
|
-
const found = [];
|
|
30648
|
-
elements.forEach(el => {
|
|
30649
|
-
found.push(...el.querySelectorAll(selector));
|
|
30650
|
-
});
|
|
30651
|
-
return found;
|
|
30783
|
+
return slideEl.querySelector('.swiper-slide-transform') || slideEl.shadowRoot && slideEl.shadowRoot.querySelector('.swiper-slide-transform') || slideEl;
|
|
30652
30784
|
}
|
|
30653
30785
|
function elementChildren(element, selector) {
|
|
30654
30786
|
if (selector === void 0) {
|
|
@@ -30753,7 +30885,7 @@
|
|
|
30753
30885
|
const window = getWindow();
|
|
30754
30886
|
const document = getDocument();
|
|
30755
30887
|
return {
|
|
30756
|
-
smoothScroll: document.documentElement && 'scrollBehavior' in document.documentElement.style,
|
|
30888
|
+
smoothScroll: document.documentElement && document.documentElement.style && 'scrollBehavior' in document.documentElement.style,
|
|
30757
30889
|
touch: !!('ontouchstart' in window || window.DocumentTouch && document instanceof window.DocumentTouch)
|
|
30758
30890
|
};
|
|
30759
30891
|
}
|
|
@@ -30763,7 +30895,6 @@
|
|
|
30763
30895
|
}
|
|
30764
30896
|
return support;
|
|
30765
30897
|
}
|
|
30766
|
-
|
|
30767
30898
|
let deviceCached;
|
|
30768
30899
|
function calcDevice(_temp) {
|
|
30769
30900
|
let {
|
|
@@ -30816,7 +30947,6 @@
|
|
|
30816
30947
|
}
|
|
30817
30948
|
return deviceCached;
|
|
30818
30949
|
}
|
|
30819
|
-
|
|
30820
30950
|
let browser;
|
|
30821
30951
|
function calcBrowser() {
|
|
30822
30952
|
const window = getWindow();
|
|
@@ -30844,7 +30974,6 @@
|
|
|
30844
30974
|
}
|
|
30845
30975
|
return browser;
|
|
30846
30976
|
}
|
|
30847
|
-
|
|
30848
30977
|
function Resize(_ref) {
|
|
30849
30978
|
let {
|
|
30850
30979
|
swiper,
|
|
@@ -30913,7 +31042,6 @@
|
|
|
30913
31042
|
window.removeEventListener('orientationchange', orientationChangeHandler);
|
|
30914
31043
|
});
|
|
30915
31044
|
}
|
|
30916
|
-
|
|
30917
31045
|
function Observer(_ref) {
|
|
30918
31046
|
let {
|
|
30919
31047
|
swiper,
|
|
@@ -31090,7 +31218,6 @@
|
|
|
31090
31218
|
return self;
|
|
31091
31219
|
}
|
|
31092
31220
|
};
|
|
31093
|
-
|
|
31094
31221
|
function updateSize() {
|
|
31095
31222
|
const swiper = this;
|
|
31096
31223
|
let width;
|
|
@@ -31121,7 +31248,6 @@
|
|
|
31121
31248
|
size: swiper.isHorizontal() ? width : height
|
|
31122
31249
|
});
|
|
31123
31250
|
}
|
|
31124
|
-
|
|
31125
31251
|
function updateSlides() {
|
|
31126
31252
|
const swiper = this;
|
|
31127
31253
|
function getDirectionLabel(property) {
|
|
@@ -31177,6 +31303,8 @@
|
|
|
31177
31303
|
}
|
|
31178
31304
|
if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
|
|
31179
31305
|
spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiperSize;
|
|
31306
|
+
} else if (typeof spaceBetween === 'string') {
|
|
31307
|
+
spaceBetween = parseFloat(spaceBetween);
|
|
31180
31308
|
}
|
|
31181
31309
|
swiper.virtualSize = -spaceBetween;
|
|
31182
31310
|
|
|
@@ -31286,10 +31414,10 @@
|
|
|
31286
31414
|
}
|
|
31287
31415
|
swiper.virtualSize = Math.max(swiper.virtualSize, swiperSize) + offsetAfter;
|
|
31288
31416
|
if (rtl && wrongRTL && (params.effect === 'slide' || params.effect === 'coverflow')) {
|
|
31289
|
-
wrapperEl.style.width = `${swiper.virtualSize +
|
|
31417
|
+
wrapperEl.style.width = `${swiper.virtualSize + spaceBetween}px`;
|
|
31290
31418
|
}
|
|
31291
31419
|
if (params.setWrapperSize) {
|
|
31292
|
-
wrapperEl.style[getDirectionLabel('width')] = `${swiper.virtualSize +
|
|
31420
|
+
wrapperEl.style[getDirectionLabel('width')] = `${swiper.virtualSize + spaceBetween}px`;
|
|
31293
31421
|
}
|
|
31294
31422
|
if (gridEnabled) {
|
|
31295
31423
|
swiper.grid.updateWrapperSize(slideSize, snapGrid, getDirectionLabel);
|
|
@@ -31328,7 +31456,7 @@
|
|
|
31328
31456
|
}
|
|
31329
31457
|
}
|
|
31330
31458
|
if (snapGrid.length === 0) snapGrid = [0];
|
|
31331
|
-
if (
|
|
31459
|
+
if (spaceBetween !== 0) {
|
|
31332
31460
|
const key = swiper.isHorizontal() && rtl ? 'marginLeft' : getDirectionLabel('marginRight');
|
|
31333
31461
|
slides.filter((_, slideIndex) => {
|
|
31334
31462
|
if (!params.cssMode || params.loop) return true;
|
|
@@ -31343,12 +31471,12 @@
|
|
|
31343
31471
|
if (params.centeredSlides && params.centeredSlidesBounds) {
|
|
31344
31472
|
let allSlidesSize = 0;
|
|
31345
31473
|
slidesSizesGrid.forEach(slideSizeValue => {
|
|
31346
|
-
allSlidesSize += slideSizeValue + (
|
|
31474
|
+
allSlidesSize += slideSizeValue + (spaceBetween || 0);
|
|
31347
31475
|
});
|
|
31348
|
-
allSlidesSize -=
|
|
31476
|
+
allSlidesSize -= spaceBetween;
|
|
31349
31477
|
const maxSnap = allSlidesSize - swiperSize;
|
|
31350
31478
|
snapGrid = snapGrid.map(snap => {
|
|
31351
|
-
if (snap
|
|
31479
|
+
if (snap <= 0) return -offsetBefore;
|
|
31352
31480
|
if (snap > maxSnap) return maxSnap + offsetAfter;
|
|
31353
31481
|
return snap;
|
|
31354
31482
|
});
|
|
@@ -31356,9 +31484,9 @@
|
|
|
31356
31484
|
if (params.centerInsufficientSlides) {
|
|
31357
31485
|
let allSlidesSize = 0;
|
|
31358
31486
|
slidesSizesGrid.forEach(slideSizeValue => {
|
|
31359
|
-
allSlidesSize += slideSizeValue + (
|
|
31487
|
+
allSlidesSize += slideSizeValue + (spaceBetween || 0);
|
|
31360
31488
|
});
|
|
31361
|
-
allSlidesSize -=
|
|
31489
|
+
allSlidesSize -= spaceBetween;
|
|
31362
31490
|
if (allSlidesSize < swiperSize) {
|
|
31363
31491
|
const allSlidesOffset = (swiperSize - allSlidesSize) / 2;
|
|
31364
31492
|
snapGrid.forEach((snap, snapIndex) => {
|
|
@@ -31406,7 +31534,6 @@
|
|
|
31406
31534
|
}
|
|
31407
31535
|
}
|
|
31408
31536
|
}
|
|
31409
|
-
|
|
31410
31537
|
function updateAutoHeight(speed) {
|
|
31411
31538
|
const swiper = this;
|
|
31412
31539
|
const activeSlides = [];
|
|
@@ -31420,7 +31547,7 @@
|
|
|
31420
31547
|
}
|
|
31421
31548
|
const getSlideByIndex = index => {
|
|
31422
31549
|
if (isVirtual) {
|
|
31423
|
-
return swiper.getSlideIndexByData(index);
|
|
31550
|
+
return swiper.slides[swiper.getSlideIndexByData(index)];
|
|
31424
31551
|
}
|
|
31425
31552
|
return swiper.slides[index];
|
|
31426
31553
|
};
|
|
@@ -31452,17 +31579,15 @@
|
|
|
31452
31579
|
// Update Height
|
|
31453
31580
|
if (newHeight || newHeight === 0) swiper.wrapperEl.style.height = `${newHeight}px`;
|
|
31454
31581
|
}
|
|
31455
|
-
|
|
31456
31582
|
function updateSlidesOffset() {
|
|
31457
31583
|
const swiper = this;
|
|
31458
31584
|
const slides = swiper.slides;
|
|
31459
31585
|
// eslint-disable-next-line
|
|
31460
31586
|
const minusOffset = swiper.isElement ? swiper.isHorizontal() ? swiper.wrapperEl.offsetLeft : swiper.wrapperEl.offsetTop : 0;
|
|
31461
31587
|
for (let i = 0; i < slides.length; i += 1) {
|
|
31462
|
-
slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset;
|
|
31588
|
+
slides[i].swiperSlideOffset = (swiper.isHorizontal() ? slides[i].offsetLeft : slides[i].offsetTop) - minusOffset - swiper.cssOverflowAdjustment();
|
|
31463
31589
|
}
|
|
31464
31590
|
}
|
|
31465
|
-
|
|
31466
31591
|
function updateSlidesProgress(translate) {
|
|
31467
31592
|
if (translate === void 0) {
|
|
31468
31593
|
translate = this && this.translate || 0;
|
|
@@ -31485,14 +31610,20 @@
|
|
|
31485
31610
|
});
|
|
31486
31611
|
swiper.visibleSlidesIndexes = [];
|
|
31487
31612
|
swiper.visibleSlides = [];
|
|
31613
|
+
let spaceBetween = params.spaceBetween;
|
|
31614
|
+
if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
|
|
31615
|
+
spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;
|
|
31616
|
+
} else if (typeof spaceBetween === 'string') {
|
|
31617
|
+
spaceBetween = parseFloat(spaceBetween);
|
|
31618
|
+
}
|
|
31488
31619
|
for (let i = 0; i < slides.length; i += 1) {
|
|
31489
31620
|
const slide = slides[i];
|
|
31490
31621
|
let slideOffset = slide.swiperSlideOffset;
|
|
31491
31622
|
if (params.cssMode && params.centeredSlides) {
|
|
31492
31623
|
slideOffset -= slides[0].swiperSlideOffset;
|
|
31493
31624
|
}
|
|
31494
|
-
const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize +
|
|
31495
|
-
const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize +
|
|
31625
|
+
const slideProgress = (offsetCenter + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);
|
|
31626
|
+
const originalSlideProgress = (offsetCenter - snapGrid[0] + (params.centeredSlides ? swiper.minTranslate() : 0) - slideOffset) / (slide.swiperSlideSize + spaceBetween);
|
|
31496
31627
|
const slideBefore = -(offsetCenter - slideOffset);
|
|
31497
31628
|
const slideAfter = slideBefore + swiper.slidesSizesGrid[i];
|
|
31498
31629
|
const isVisible = slideBefore >= 0 && slideBefore < swiper.size - 1 || slideAfter > 1 && slideAfter <= swiper.size || slideBefore <= 0 && slideAfter >= swiper.size;
|
|
@@ -31505,7 +31636,6 @@
|
|
|
31505
31636
|
slide.originalProgress = rtl ? -originalSlideProgress : originalSlideProgress;
|
|
31506
31637
|
}
|
|
31507
31638
|
}
|
|
31508
|
-
|
|
31509
31639
|
function updateProgress(translate) {
|
|
31510
31640
|
const swiper = this;
|
|
31511
31641
|
if (typeof translate === 'undefined') {
|
|
@@ -31568,7 +31698,6 @@
|
|
|
31568
31698
|
}
|
|
31569
31699
|
swiper.emit('progress', progress);
|
|
31570
31700
|
}
|
|
31571
|
-
|
|
31572
31701
|
function updateSlidesClasses() {
|
|
31573
31702
|
const swiper = this;
|
|
31574
31703
|
const {
|
|
@@ -31620,7 +31749,6 @@
|
|
|
31620
31749
|
}
|
|
31621
31750
|
swiper.emitSlidesClasses();
|
|
31622
31751
|
}
|
|
31623
|
-
|
|
31624
31752
|
const processLazyPreloader = (swiper, imageEl) => {
|
|
31625
31753
|
if (!swiper || swiper.destroyed || !swiper.params) return;
|
|
31626
31754
|
const slideSelector = () => swiper.isElement ? `swiper-slide` : `.${swiper.params.slideClass}`;
|
|
@@ -31643,19 +31771,33 @@
|
|
|
31643
31771
|
amount = Math.min(amount, len);
|
|
31644
31772
|
const slidesPerView = swiper.params.slidesPerView === 'auto' ? swiper.slidesPerViewDynamic() : Math.ceil(swiper.params.slidesPerView);
|
|
31645
31773
|
const activeIndex = swiper.activeIndex;
|
|
31774
|
+
if (swiper.params.grid && swiper.params.grid.rows > 1) {
|
|
31775
|
+
const activeColumn = activeIndex;
|
|
31776
|
+
const preloadColumns = [activeColumn - amount];
|
|
31777
|
+
preloadColumns.push(...Array.from({
|
|
31778
|
+
length: amount
|
|
31779
|
+
}).map((_, i) => {
|
|
31780
|
+
return activeColumn + slidesPerView + i;
|
|
31781
|
+
}));
|
|
31782
|
+
swiper.slides.forEach((slideEl, i) => {
|
|
31783
|
+
if (preloadColumns.includes(slideEl.column)) unlazy(swiper, i);
|
|
31784
|
+
});
|
|
31785
|
+
return;
|
|
31786
|
+
}
|
|
31646
31787
|
const slideIndexLastInView = activeIndex + slidesPerView - 1;
|
|
31647
|
-
if (swiper.params.rewind) {
|
|
31788
|
+
if (swiper.params.rewind || swiper.params.loop) {
|
|
31648
31789
|
for (let i = activeIndex - amount; i <= slideIndexLastInView + amount; i += 1) {
|
|
31649
31790
|
const realIndex = (i % len + len) % len;
|
|
31650
|
-
if (realIndex
|
|
31791
|
+
if (realIndex < activeIndex || realIndex > slideIndexLastInView) unlazy(swiper, realIndex);
|
|
31651
31792
|
}
|
|
31652
31793
|
} else {
|
|
31653
|
-
for (let i = Math.max(
|
|
31654
|
-
if (i !== activeIndex && i > slideIndexLastInView
|
|
31794
|
+
for (let i = Math.max(activeIndex - amount, 0); i <= Math.min(slideIndexLastInView + amount, len - 1); i += 1) {
|
|
31795
|
+
if (i !== activeIndex && (i > slideIndexLastInView || i < activeIndex)) {
|
|
31796
|
+
unlazy(swiper, i);
|
|
31797
|
+
}
|
|
31655
31798
|
}
|
|
31656
31799
|
}
|
|
31657
31800
|
};
|
|
31658
|
-
|
|
31659
31801
|
function getActiveIndexByTranslate(swiper) {
|
|
31660
31802
|
const {
|
|
31661
31803
|
slidesGrid,
|
|
@@ -31732,7 +31874,9 @@
|
|
|
31732
31874
|
realIndex = activeIndex;
|
|
31733
31875
|
}
|
|
31734
31876
|
Object.assign(swiper, {
|
|
31877
|
+
previousSnapIndex,
|
|
31735
31878
|
snapIndex,
|
|
31879
|
+
previousRealIndex,
|
|
31736
31880
|
realIndex,
|
|
31737
31881
|
previousIndex,
|
|
31738
31882
|
activeIndex
|
|
@@ -31749,7 +31893,6 @@
|
|
|
31749
31893
|
swiper.emit('slideChange');
|
|
31750
31894
|
}
|
|
31751
31895
|
}
|
|
31752
|
-
|
|
31753
31896
|
function updateClickedSlide(e) {
|
|
31754
31897
|
const swiper = this;
|
|
31755
31898
|
const params = swiper.params;
|
|
@@ -31781,7 +31924,6 @@
|
|
|
31781
31924
|
swiper.slideToClickedSlide();
|
|
31782
31925
|
}
|
|
31783
31926
|
}
|
|
31784
|
-
|
|
31785
31927
|
var update = {
|
|
31786
31928
|
updateSize,
|
|
31787
31929
|
updateSlides,
|
|
@@ -31793,7 +31935,6 @@
|
|
|
31793
31935
|
updateActiveIndex,
|
|
31794
31936
|
updateClickedSlide
|
|
31795
31937
|
};
|
|
31796
|
-
|
|
31797
31938
|
function getSwiperTranslate(axis) {
|
|
31798
31939
|
if (axis === void 0) {
|
|
31799
31940
|
axis = this.isHorizontal() ? 'x' : 'y';
|
|
@@ -31812,10 +31953,10 @@
|
|
|
31812
31953
|
return translate;
|
|
31813
31954
|
}
|
|
31814
31955
|
let currentTranslate = getTranslate(wrapperEl, axis);
|
|
31956
|
+
currentTranslate += swiper.cssOverflowAdjustment();
|
|
31815
31957
|
if (rtl) currentTranslate = -currentTranslate;
|
|
31816
31958
|
return currentTranslate || 0;
|
|
31817
31959
|
}
|
|
31818
|
-
|
|
31819
31960
|
function setTranslate(translate, byController) {
|
|
31820
31961
|
const swiper = this;
|
|
31821
31962
|
const {
|
|
@@ -31836,13 +31977,18 @@
|
|
|
31836
31977
|
x = Math.floor(x);
|
|
31837
31978
|
y = Math.floor(y);
|
|
31838
31979
|
}
|
|
31980
|
+
swiper.previousTranslate = swiper.translate;
|
|
31981
|
+
swiper.translate = swiper.isHorizontal() ? x : y;
|
|
31839
31982
|
if (params.cssMode) {
|
|
31840
31983
|
wrapperEl[swiper.isHorizontal() ? 'scrollLeft' : 'scrollTop'] = swiper.isHorizontal() ? -x : -y;
|
|
31841
31984
|
} else if (!params.virtualTranslate) {
|
|
31985
|
+
if (swiper.isHorizontal()) {
|
|
31986
|
+
x -= swiper.cssOverflowAdjustment();
|
|
31987
|
+
} else {
|
|
31988
|
+
y -= swiper.cssOverflowAdjustment();
|
|
31989
|
+
}
|
|
31842
31990
|
wrapperEl.style.transform = `translate3d(${x}px, ${y}px, ${z}px)`;
|
|
31843
31991
|
}
|
|
31844
|
-
swiper.previousTranslate = swiper.translate;
|
|
31845
|
-
swiper.translate = swiper.isHorizontal() ? x : y;
|
|
31846
31992
|
|
|
31847
31993
|
// Check if we need to update progress
|
|
31848
31994
|
let newProgress;
|
|
@@ -31857,15 +32003,12 @@
|
|
|
31857
32003
|
}
|
|
31858
32004
|
swiper.emit('setTranslate', swiper.translate, byController);
|
|
31859
32005
|
}
|
|
31860
|
-
|
|
31861
32006
|
function minTranslate() {
|
|
31862
32007
|
return -this.snapGrid[0];
|
|
31863
32008
|
}
|
|
31864
|
-
|
|
31865
32009
|
function maxTranslate() {
|
|
31866
32010
|
return -this.snapGrid[this.snapGrid.length - 1];
|
|
31867
32011
|
}
|
|
31868
|
-
|
|
31869
32012
|
function translateTo(translate, speed, runCallbacks, translateBounds, internal) {
|
|
31870
32013
|
if (translate === void 0) {
|
|
31871
32014
|
translate = 0;
|
|
@@ -31947,7 +32090,6 @@
|
|
|
31947
32090
|
}
|
|
31948
32091
|
return true;
|
|
31949
32092
|
}
|
|
31950
|
-
|
|
31951
32093
|
var translate = {
|
|
31952
32094
|
getTranslate: getSwiperTranslate,
|
|
31953
32095
|
setTranslate,
|
|
@@ -31955,7 +32097,6 @@
|
|
|
31955
32097
|
maxTranslate,
|
|
31956
32098
|
translateTo
|
|
31957
32099
|
};
|
|
31958
|
-
|
|
31959
32100
|
function setTransition(duration, byController) {
|
|
31960
32101
|
const swiper = this;
|
|
31961
32102
|
if (!swiper.params.cssMode) {
|
|
@@ -31963,7 +32104,6 @@
|
|
|
31963
32104
|
}
|
|
31964
32105
|
swiper.emit('setTransition', duration, byController);
|
|
31965
32106
|
}
|
|
31966
|
-
|
|
31967
32107
|
function transitionEmit(_ref) {
|
|
31968
32108
|
let {
|
|
31969
32109
|
swiper,
|
|
@@ -31993,7 +32133,6 @@
|
|
|
31993
32133
|
}
|
|
31994
32134
|
}
|
|
31995
32135
|
}
|
|
31996
|
-
|
|
31997
32136
|
function transitionStart(runCallbacks, direction) {
|
|
31998
32137
|
if (runCallbacks === void 0) {
|
|
31999
32138
|
runCallbacks = true;
|
|
@@ -32013,7 +32152,6 @@
|
|
|
32013
32152
|
step: 'Start'
|
|
32014
32153
|
});
|
|
32015
32154
|
}
|
|
32016
|
-
|
|
32017
32155
|
function transitionEnd(runCallbacks, direction) {
|
|
32018
32156
|
if (runCallbacks === void 0) {
|
|
32019
32157
|
runCallbacks = true;
|
|
@@ -32032,13 +32170,11 @@
|
|
|
32032
32170
|
step: 'End'
|
|
32033
32171
|
});
|
|
32034
32172
|
}
|
|
32035
|
-
|
|
32036
32173
|
var transition = {
|
|
32037
32174
|
setTransition,
|
|
32038
32175
|
transitionStart,
|
|
32039
32176
|
transitionEnd
|
|
32040
32177
|
};
|
|
32041
|
-
|
|
32042
32178
|
function slideTo(index, speed, runCallbacks, internal, initial) {
|
|
32043
32179
|
if (index === void 0) {
|
|
32044
32180
|
index = 0;
|
|
@@ -32091,7 +32227,7 @@
|
|
|
32091
32227
|
}
|
|
32092
32228
|
// Directions locks
|
|
32093
32229
|
if (swiper.initialized && slideIndex !== activeIndex) {
|
|
32094
|
-
if (!swiper.allowSlideNext && translate < swiper.translate && translate < swiper.minTranslate()) {
|
|
32230
|
+
if (!swiper.allowSlideNext && (rtl ? translate > swiper.translate && translate > swiper.minTranslate() : translate < swiper.translate && translate < swiper.minTranslate())) {
|
|
32095
32231
|
return false;
|
|
32096
32232
|
}
|
|
32097
32233
|
if (!swiper.allowSlidePrev && translate > swiper.translate && translate > swiper.maxTranslate()) {
|
|
@@ -32189,7 +32325,6 @@
|
|
|
32189
32325
|
}
|
|
32190
32326
|
return true;
|
|
32191
32327
|
}
|
|
32192
|
-
|
|
32193
32328
|
function slideToLoop(index, speed, runCallbacks, internal) {
|
|
32194
32329
|
if (index === void 0) {
|
|
32195
32330
|
index = 0;
|
|
@@ -32364,7 +32499,6 @@
|
|
|
32364
32499
|
index = Math.min(index, swiper.slidesGrid.length - 1);
|
|
32365
32500
|
return swiper.slideTo(index, speed, runCallbacks, internal);
|
|
32366
32501
|
}
|
|
32367
|
-
|
|
32368
32502
|
function slideToClickedSlide() {
|
|
32369
32503
|
const swiper = this;
|
|
32370
32504
|
const {
|
|
@@ -32401,7 +32535,6 @@
|
|
|
32401
32535
|
swiper.slideTo(slideToIndex);
|
|
32402
32536
|
}
|
|
32403
32537
|
}
|
|
32404
|
-
|
|
32405
32538
|
var slide = {
|
|
32406
32539
|
slideTo,
|
|
32407
32540
|
slideToLoop,
|
|
@@ -32411,7 +32544,6 @@
|
|
|
32411
32544
|
slideToClosest,
|
|
32412
32545
|
slideToClickedSlide
|
|
32413
32546
|
};
|
|
32414
|
-
|
|
32415
32547
|
function loopCreate(slideRealIndex) {
|
|
32416
32548
|
const swiper = this;
|
|
32417
32549
|
const {
|
|
@@ -32428,7 +32560,6 @@
|
|
|
32428
32560
|
direction: params.centeredSlides ? undefined : 'next'
|
|
32429
32561
|
});
|
|
32430
32562
|
}
|
|
32431
|
-
|
|
32432
32563
|
function loopFix(_temp) {
|
|
32433
32564
|
let {
|
|
32434
32565
|
slideRealIndex,
|
|
@@ -32500,15 +32631,22 @@
|
|
|
32500
32631
|
}
|
|
32501
32632
|
if (isPrev) {
|
|
32502
32633
|
prependSlidesIndexes.forEach(index => {
|
|
32634
|
+
swiper.slides[index].swiperLoopMoveDOM = true;
|
|
32503
32635
|
slidesEl.prepend(swiper.slides[index]);
|
|
32636
|
+
swiper.slides[index].swiperLoopMoveDOM = false;
|
|
32504
32637
|
});
|
|
32505
32638
|
}
|
|
32506
32639
|
if (isNext) {
|
|
32507
32640
|
appendSlidesIndexes.forEach(index => {
|
|
32641
|
+
swiper.slides[index].swiperLoopMoveDOM = true;
|
|
32508
32642
|
slidesEl.append(swiper.slides[index]);
|
|
32643
|
+
swiper.slides[index].swiperLoopMoveDOM = false;
|
|
32509
32644
|
});
|
|
32510
32645
|
}
|
|
32511
32646
|
swiper.recalcSlides();
|
|
32647
|
+
if (params.slidesPerView === 'auto') {
|
|
32648
|
+
swiper.updateSlides();
|
|
32649
|
+
}
|
|
32512
32650
|
if (params.watchSlidesProgress) {
|
|
32513
32651
|
swiper.updateSlidesOffset();
|
|
32514
32652
|
}
|
|
@@ -32570,7 +32708,6 @@
|
|
|
32570
32708
|
}
|
|
32571
32709
|
swiper.emit('loopFix');
|
|
32572
32710
|
}
|
|
32573
|
-
|
|
32574
32711
|
function loopDestroy() {
|
|
32575
32712
|
const swiper = this;
|
|
32576
32713
|
const {
|
|
@@ -32593,13 +32730,11 @@
|
|
|
32593
32730
|
swiper.recalcSlides();
|
|
32594
32731
|
swiper.slideTo(swiper.realIndex, 0);
|
|
32595
32732
|
}
|
|
32596
|
-
|
|
32597
32733
|
var loop = {
|
|
32598
32734
|
loopCreate,
|
|
32599
32735
|
loopFix,
|
|
32600
32736
|
loopDestroy
|
|
32601
32737
|
};
|
|
32602
|
-
|
|
32603
32738
|
function setGrabCursor(moving) {
|
|
32604
32739
|
const swiper = this;
|
|
32605
32740
|
if (!swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
|
|
@@ -32615,7 +32750,6 @@
|
|
|
32615
32750
|
});
|
|
32616
32751
|
}
|
|
32617
32752
|
}
|
|
32618
|
-
|
|
32619
32753
|
function unsetGrabCursor() {
|
|
32620
32754
|
const swiper = this;
|
|
32621
32755
|
if (swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {
|
|
@@ -32631,7 +32765,6 @@
|
|
|
32631
32765
|
});
|
|
32632
32766
|
}
|
|
32633
32767
|
}
|
|
32634
|
-
|
|
32635
32768
|
var grabCursor = {
|
|
32636
32769
|
setGrabCursor,
|
|
32637
32770
|
unsetGrabCursor
|
|
@@ -32744,12 +32877,11 @@
|
|
|
32744
32877
|
if ((params.touchStartForcePreventDefault || shouldPreventDefault) && !targetEl.isContentEditable) {
|
|
32745
32878
|
e.preventDefault();
|
|
32746
32879
|
}
|
|
32747
|
-
if (
|
|
32880
|
+
if (params.freeMode && params.freeMode.enabled && swiper.freeMode && swiper.animating && !params.cssMode) {
|
|
32748
32881
|
swiper.freeMode.onTouchStart();
|
|
32749
32882
|
}
|
|
32750
32883
|
swiper.emit('touchStart', e);
|
|
32751
32884
|
}
|
|
32752
|
-
|
|
32753
32885
|
function onTouchMove(event) {
|
|
32754
32886
|
const document = getDocument();
|
|
32755
32887
|
const swiper = this;
|
|
@@ -32981,7 +33113,7 @@
|
|
|
32981
33113
|
swiper.updateActiveIndex();
|
|
32982
33114
|
swiper.updateSlidesClasses();
|
|
32983
33115
|
}
|
|
32984
|
-
if (
|
|
33116
|
+
if (params.freeMode && params.freeMode.enabled && swiper.freeMode) {
|
|
32985
33117
|
swiper.freeMode.onTouchMove();
|
|
32986
33118
|
}
|
|
32987
33119
|
// Update progress
|
|
@@ -32989,7 +33121,6 @@
|
|
|
32989
33121
|
// Update translate
|
|
32990
33122
|
swiper.setTranslate(data.currentTranslate);
|
|
32991
33123
|
}
|
|
32992
|
-
|
|
32993
33124
|
function onTouchEnd(event) {
|
|
32994
33125
|
const swiper = this;
|
|
32995
33126
|
const data = swiper.touchEventsData;
|
|
@@ -33066,7 +33197,7 @@
|
|
|
33066
33197
|
if (params.cssMode) {
|
|
33067
33198
|
return;
|
|
33068
33199
|
}
|
|
33069
|
-
if (
|
|
33200
|
+
if (params.freeMode && params.freeMode.enabled) {
|
|
33070
33201
|
swiper.freeMode.onTouchEnd({
|
|
33071
33202
|
currentPos
|
|
33072
33203
|
});
|
|
@@ -33092,7 +33223,7 @@
|
|
|
33092
33223
|
let rewindLastIndex = null;
|
|
33093
33224
|
if (params.rewind) {
|
|
33094
33225
|
if (swiper.isBeginning) {
|
|
33095
|
-
rewindLastIndex =
|
|
33226
|
+
rewindLastIndex = params.virtual && params.virtual.enabled && swiper.virtual ? swiper.virtual.slides.length - 1 : swiper.slides.length - 1;
|
|
33096
33227
|
} else if (swiper.isEnd) {
|
|
33097
33228
|
rewindFirstIndex = 0;
|
|
33098
33229
|
}
|
|
@@ -33139,8 +33270,6 @@
|
|
|
33139
33270
|
}
|
|
33140
33271
|
}
|
|
33141
33272
|
}
|
|
33142
|
-
|
|
33143
|
-
let timeout;
|
|
33144
33273
|
function onResize() {
|
|
33145
33274
|
const swiper = this;
|
|
33146
33275
|
const {
|
|
@@ -33179,8 +33308,8 @@
|
|
|
33179
33308
|
}
|
|
33180
33309
|
}
|
|
33181
33310
|
if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
|
|
33182
|
-
clearTimeout(
|
|
33183
|
-
|
|
33311
|
+
clearTimeout(swiper.autoplay.resizeTimeout);
|
|
33312
|
+
swiper.autoplay.resizeTimeout = setTimeout(() => {
|
|
33184
33313
|
if (swiper.autoplay && swiper.autoplay.running && swiper.autoplay.paused) {
|
|
33185
33314
|
swiper.autoplay.resume();
|
|
33186
33315
|
}
|
|
@@ -33193,7 +33322,6 @@
|
|
|
33193
33322
|
swiper.checkOverflow();
|
|
33194
33323
|
}
|
|
33195
33324
|
}
|
|
33196
|
-
|
|
33197
33325
|
function onClick(e) {
|
|
33198
33326
|
const swiper = this;
|
|
33199
33327
|
if (!swiper.enabled) return;
|
|
@@ -33205,7 +33333,6 @@
|
|
|
33205
33333
|
}
|
|
33206
33334
|
}
|
|
33207
33335
|
}
|
|
33208
|
-
|
|
33209
33336
|
function onScroll() {
|
|
33210
33337
|
const swiper = this;
|
|
33211
33338
|
const {
|
|
@@ -33236,13 +33363,14 @@
|
|
|
33236
33363
|
}
|
|
33237
33364
|
swiper.emit('setTranslate', swiper.translate, false);
|
|
33238
33365
|
}
|
|
33239
|
-
|
|
33240
33366
|
function onLoad(e) {
|
|
33241
33367
|
const swiper = this;
|
|
33242
33368
|
processLazyPreloader(swiper, e.target);
|
|
33369
|
+
if (swiper.params.cssMode || swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight) {
|
|
33370
|
+
return;
|
|
33371
|
+
}
|
|
33243
33372
|
swiper.update();
|
|
33244
33373
|
}
|
|
33245
|
-
|
|
33246
33374
|
let dummyEventAttached = false;
|
|
33247
33375
|
function dummyEventListener() {}
|
|
33248
33376
|
const events = (swiper, method) => {
|
|
@@ -33326,7 +33454,6 @@
|
|
|
33326
33454
|
attachEvents,
|
|
33327
33455
|
detachEvents
|
|
33328
33456
|
};
|
|
33329
|
-
|
|
33330
33457
|
const isGridEnabled = (swiper, params) => {
|
|
33331
33458
|
return swiper.grid && params.grid && params.grid.rows > 1;
|
|
33332
33459
|
};
|
|
@@ -33362,6 +33489,7 @@
|
|
|
33362
33489
|
|
|
33363
33490
|
// Toggle navigation, pagination, scrollbar
|
|
33364
33491
|
['navigation', 'pagination', 'scrollbar'].forEach(prop => {
|
|
33492
|
+
if (typeof breakpointParams[prop] === 'undefined') return;
|
|
33365
33493
|
const wasModuleEnabled = params[prop] && params[prop].enabled;
|
|
33366
33494
|
const isModuleEnabled = breakpointParams[prop] && breakpointParams[prop].enabled;
|
|
33367
33495
|
if (wasModuleEnabled && !isModuleEnabled) {
|
|
@@ -33397,7 +33525,6 @@
|
|
|
33397
33525
|
}
|
|
33398
33526
|
swiper.emit('breakpoint', breakpointParams);
|
|
33399
33527
|
}
|
|
33400
|
-
|
|
33401
33528
|
function getBreakpoint(breakpoints, base, containerEl) {
|
|
33402
33529
|
if (base === void 0) {
|
|
33403
33530
|
base = 'window';
|
|
@@ -33436,12 +33563,10 @@
|
|
|
33436
33563
|
}
|
|
33437
33564
|
return breakpoint || 'max';
|
|
33438
33565
|
}
|
|
33439
|
-
|
|
33440
33566
|
var breakpoints = {
|
|
33441
33567
|
setBreakpoint,
|
|
33442
33568
|
getBreakpoint
|
|
33443
33569
|
};
|
|
33444
|
-
|
|
33445
33570
|
function prepareClasses(entries, prefix) {
|
|
33446
33571
|
const resultClasses = [];
|
|
33447
33572
|
entries.forEach(item => {
|
|
@@ -33492,7 +33617,6 @@
|
|
|
33492
33617
|
el.classList.add(...classNames);
|
|
33493
33618
|
swiper.emitContainerClasses();
|
|
33494
33619
|
}
|
|
33495
|
-
|
|
33496
33620
|
function removeClasses() {
|
|
33497
33621
|
const swiper = this;
|
|
33498
33622
|
const {
|
|
@@ -33502,12 +33626,10 @@
|
|
|
33502
33626
|
el.classList.remove(...classNames);
|
|
33503
33627
|
swiper.emitContainerClasses();
|
|
33504
33628
|
}
|
|
33505
|
-
|
|
33506
33629
|
var classes = {
|
|
33507
33630
|
addClasses,
|
|
33508
33631
|
removeClasses
|
|
33509
33632
|
};
|
|
33510
|
-
|
|
33511
33633
|
function checkOverflow() {
|
|
33512
33634
|
const swiper = this;
|
|
33513
33635
|
const {
|
|
@@ -33540,7 +33662,6 @@
|
|
|
33540
33662
|
var checkOverflow$1 = {
|
|
33541
33663
|
checkOverflow
|
|
33542
33664
|
};
|
|
33543
|
-
|
|
33544
33665
|
var defaults = {
|
|
33545
33666
|
init: true,
|
|
33546
33667
|
direction: 'horizontal',
|
|
@@ -33658,7 +33779,6 @@
|
|
|
33658
33779
|
// Internals
|
|
33659
33780
|
_emitClasses: false
|
|
33660
33781
|
};
|
|
33661
|
-
|
|
33662
33782
|
function moduleExtendParams(params, allModulesParams) {
|
|
33663
33783
|
return function extendParams(obj) {
|
|
33664
33784
|
if (obj === void 0) {
|
|
@@ -33812,6 +33932,11 @@
|
|
|
33812
33932
|
progress: 0,
|
|
33813
33933
|
velocity: 0,
|
|
33814
33934
|
animating: false,
|
|
33935
|
+
cssOverflowAdjustment() {
|
|
33936
|
+
// Returns 0 unless `translate` is > 2**23
|
|
33937
|
+
// Should be subtracted from css values to prevent overflow
|
|
33938
|
+
return Math.trunc(this.translate / 2 ** 23) * 2 ** 23;
|
|
33939
|
+
},
|
|
33815
33940
|
// Locks
|
|
33816
33941
|
allowSlideNext: swiper.params.allowSlideNext,
|
|
33817
33942
|
allowSlidePrev: swiper.params.allowSlidePrev,
|
|
@@ -33957,7 +34082,7 @@
|
|
|
33957
34082
|
} = swiper;
|
|
33958
34083
|
let spv = 1;
|
|
33959
34084
|
if (params.centeredSlides) {
|
|
33960
|
-
let slideSize = slides[activeIndex].swiperSlideSize;
|
|
34085
|
+
let slideSize = slides[activeIndex] ? slides[activeIndex].swiperSlideSize : 0;
|
|
33961
34086
|
let breakLoop;
|
|
33962
34087
|
for (let i = activeIndex + 1; i < slides.length; i += 1) {
|
|
33963
34088
|
if (slides[i] && !breakLoop) {
|
|
@@ -34022,14 +34147,15 @@
|
|
|
34022
34147
|
swiper.updateSlidesClasses();
|
|
34023
34148
|
}
|
|
34024
34149
|
let translated;
|
|
34025
|
-
if (
|
|
34150
|
+
if (params.freeMode && params.freeMode.enabled && !params.cssMode) {
|
|
34026
34151
|
setTranslate();
|
|
34027
|
-
if (
|
|
34152
|
+
if (params.autoHeight) {
|
|
34028
34153
|
swiper.updateAutoHeight();
|
|
34029
34154
|
}
|
|
34030
34155
|
} else {
|
|
34031
|
-
if ((
|
|
34032
|
-
|
|
34156
|
+
if ((params.slidesPerView === 'auto' || params.slidesPerView > 1) && swiper.isEnd && !params.centeredSlides) {
|
|
34157
|
+
const slides = swiper.virtual && params.virtual.enabled ? swiper.virtual.slides : swiper.slides;
|
|
34158
|
+
translated = swiper.slideTo(slides.length - 1, 0, false, true);
|
|
34033
34159
|
} else {
|
|
34034
34160
|
translated = swiper.slideTo(swiper.activeIndex, 0, false, true);
|
|
34035
34161
|
}
|
|
@@ -34097,7 +34223,7 @@
|
|
|
34097
34223
|
return false;
|
|
34098
34224
|
}
|
|
34099
34225
|
el.swiper = swiper;
|
|
34100
|
-
if (el.
|
|
34226
|
+
if (el.parentNode && el.parentNode.host) {
|
|
34101
34227
|
swiper.isElement = true;
|
|
34102
34228
|
}
|
|
34103
34229
|
const getWrapperSelector = () => {
|
|
@@ -34123,7 +34249,8 @@
|
|
|
34123
34249
|
Object.assign(swiper, {
|
|
34124
34250
|
el,
|
|
34125
34251
|
wrapperEl,
|
|
34126
|
-
slidesEl: swiper.isElement ? el : wrapperEl,
|
|
34252
|
+
slidesEl: swiper.isElement ? el.parentNode.host : wrapperEl,
|
|
34253
|
+
hostEl: swiper.isElement ? el.parentNode.host : el,
|
|
34127
34254
|
mounted: true,
|
|
34128
34255
|
// RTL
|
|
34129
34256
|
rtl: el.dir.toLowerCase() === 'rtl' || elementStyle(el, 'direction') === 'rtl',
|
|
@@ -34402,7 +34529,7 @@
|
|
|
34402
34529
|
if (previousFrom === from && previousTo === to && !force) {
|
|
34403
34530
|
if (swiper.slidesGrid !== previousSlidesGrid && offset !== previousOffset) {
|
|
34404
34531
|
swiper.slides.forEach(slideEl => {
|
|
34405
|
-
slideEl.style[offsetProp] = `${offset}px`;
|
|
34532
|
+
slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;
|
|
34406
34533
|
});
|
|
34407
34534
|
}
|
|
34408
34535
|
swiper.updateProgress();
|
|
@@ -34483,7 +34610,7 @@
|
|
|
34483
34610
|
});
|
|
34484
34611
|
}
|
|
34485
34612
|
elementChildren(swiper.slidesEl, '.swiper-slide, swiper-slide').forEach(slideEl => {
|
|
34486
|
-
slideEl.style[offsetProp] = `${offset}px`;
|
|
34613
|
+
slideEl.style[offsetProp] = `${offset - Math.abs(swiper.cssOverflowAdjustment())}px`;
|
|
34487
34614
|
});
|
|
34488
34615
|
onRendered();
|
|
34489
34616
|
}
|
|
@@ -34739,7 +34866,8 @@
|
|
|
34739
34866
|
sensitivity: 1,
|
|
34740
34867
|
eventsTarget: 'container',
|
|
34741
34868
|
thresholdDelta: null,
|
|
34742
|
-
thresholdTime: null
|
|
34869
|
+
thresholdTime: null,
|
|
34870
|
+
noMousewheelClass: 'swiper-no-mousewheel'
|
|
34743
34871
|
}
|
|
34744
34872
|
});
|
|
34745
34873
|
swiper.mousewheel = {
|
|
@@ -34885,6 +35013,9 @@
|
|
|
34885
35013
|
let e = event;
|
|
34886
35014
|
let disableParentSwiper = true;
|
|
34887
35015
|
if (!swiper.enabled) return;
|
|
35016
|
+
|
|
35017
|
+
// Ignore event if the target or its parents have the swiper-no-mousewheel class
|
|
35018
|
+
if (event.target.closest(`.${swiper.params.mousewheel.noMousewheelClass}`)) return;
|
|
34888
35019
|
const params = swiper.params.mousewheel;
|
|
34889
35020
|
if (swiper.params.cssMode) {
|
|
34890
35021
|
e.preventDefault();
|
|
@@ -35151,7 +35282,7 @@
|
|
|
35151
35282
|
function getEl(el) {
|
|
35152
35283
|
let res;
|
|
35153
35284
|
if (el && typeof el === 'string' && swiper.isElement) {
|
|
35154
|
-
res = swiper.el.
|
|
35285
|
+
res = swiper.el.querySelector(el);
|
|
35155
35286
|
if (res) return res;
|
|
35156
35287
|
}
|
|
35157
35288
|
if (el) {
|
|
@@ -35393,10 +35524,12 @@
|
|
|
35393
35524
|
const index = elementIndex(bulletEl) * swiper.params.slidesPerGroup;
|
|
35394
35525
|
if (swiper.params.loop) {
|
|
35395
35526
|
if (swiper.realIndex === index) return;
|
|
35396
|
-
|
|
35527
|
+
const newSlideIndex = swiper.getSlideIndexByData(index);
|
|
35528
|
+
const currentSlideIndex = swiper.getSlideIndexByData(swiper.realIndex);
|
|
35529
|
+
if (newSlideIndex > swiper.slides.length - swiper.loopedSlides) {
|
|
35397
35530
|
swiper.loopFix({
|
|
35398
|
-
direction:
|
|
35399
|
-
activeSlideIndex:
|
|
35531
|
+
direction: newSlideIndex > currentSlideIndex ? 'next' : 'prev',
|
|
35532
|
+
activeSlideIndex: newSlideIndex,
|
|
35400
35533
|
slideTo: false
|
|
35401
35534
|
});
|
|
35402
35535
|
}
|
|
@@ -35414,13 +35547,17 @@
|
|
|
35414
35547
|
el = makeElementsArray(el);
|
|
35415
35548
|
// Current/Total
|
|
35416
35549
|
let current;
|
|
35550
|
+
let previousIndex;
|
|
35417
35551
|
const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;
|
|
35418
35552
|
const total = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;
|
|
35419
35553
|
if (swiper.params.loop) {
|
|
35554
|
+
previousIndex = swiper.previousRealIndex || 0;
|
|
35420
35555
|
current = swiper.params.slidesPerGroup > 1 ? Math.floor(swiper.realIndex / swiper.params.slidesPerGroup) : swiper.realIndex;
|
|
35421
35556
|
} else if (typeof swiper.snapIndex !== 'undefined') {
|
|
35422
35557
|
current = swiper.snapIndex;
|
|
35558
|
+
previousIndex = swiper.previousSnapIndex;
|
|
35423
35559
|
} else {
|
|
35560
|
+
previousIndex = swiper.previousIndex || 0;
|
|
35424
35561
|
current = swiper.activeIndex || 0;
|
|
35425
35562
|
}
|
|
35426
35563
|
// Types
|
|
@@ -35434,8 +35571,8 @@
|
|
|
35434
35571
|
el.forEach(subEl => {
|
|
35435
35572
|
subEl.style[swiper.isHorizontal() ? 'width' : 'height'] = `${bulletSize * (params.dynamicMainBullets + 4)}px`;
|
|
35436
35573
|
});
|
|
35437
|
-
if (params.dynamicMainBullets > 1 &&
|
|
35438
|
-
dynamicBulletIndex += current - (
|
|
35574
|
+
if (params.dynamicMainBullets > 1 && previousIndex !== undefined) {
|
|
35575
|
+
dynamicBulletIndex += current - (previousIndex || 0);
|
|
35439
35576
|
if (dynamicBulletIndex > params.dynamicMainBullets - 1) {
|
|
35440
35577
|
dynamicBulletIndex = params.dynamicMainBullets - 1;
|
|
35441
35578
|
} else if (dynamicBulletIndex < 0) {
|
|
@@ -35455,6 +35592,8 @@
|
|
|
35455
35592
|
const bulletIndex = elementIndex(bullet);
|
|
35456
35593
|
if (bulletIndex === current) {
|
|
35457
35594
|
bullet.classList.add(...params.bulletActiveClass.split(' '));
|
|
35595
|
+
} else if (swiper.isElement) {
|
|
35596
|
+
bullet.setAttribute('part', 'bullet');
|
|
35458
35597
|
}
|
|
35459
35598
|
if (params.dynamicBullets) {
|
|
35460
35599
|
if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {
|
|
@@ -35473,6 +35612,11 @@
|
|
|
35473
35612
|
if (bullet) {
|
|
35474
35613
|
bullet.classList.add(...params.bulletActiveClass.split(' '));
|
|
35475
35614
|
}
|
|
35615
|
+
if (swiper.isElement) {
|
|
35616
|
+
bullets.forEach((bulletEl, bulletIndex) => {
|
|
35617
|
+
bulletEl.setAttribute('part', bulletIndex === current ? 'bullet-active' : 'bullet');
|
|
35618
|
+
});
|
|
35619
|
+
}
|
|
35476
35620
|
if (params.dynamicBullets) {
|
|
35477
35621
|
const firstDisplayedBullet = bullets[firstIndex];
|
|
35478
35622
|
const lastDisplayedBullet = bullets[lastIndex];
|
|
@@ -35552,7 +35696,8 @@
|
|
|
35552
35696
|
if (params.renderBullet) {
|
|
35553
35697
|
paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);
|
|
35554
35698
|
} else {
|
|
35555
|
-
|
|
35699
|
+
// prettier-ignore
|
|
35700
|
+
paginationHTML += `<${params.bulletElement} ${swiper.isElement ? 'part="bullet"' : ''} class="${params.bulletClass}"></${params.bulletElement}>`;
|
|
35556
35701
|
}
|
|
35557
35702
|
}
|
|
35558
35703
|
}
|
|
@@ -35591,7 +35736,7 @@
|
|
|
35591
35736
|
if (!params.el) return;
|
|
35592
35737
|
let el;
|
|
35593
35738
|
if (typeof params.el === 'string' && swiper.isElement) {
|
|
35594
|
-
el = swiper.el.
|
|
35739
|
+
el = swiper.el.querySelector(params.el);
|
|
35595
35740
|
}
|
|
35596
35741
|
if (!el && typeof params.el === 'string') {
|
|
35597
35742
|
el = [...document.querySelectorAll(params.el)];
|
|
@@ -35656,6 +35801,18 @@
|
|
|
35656
35801
|
}
|
|
35657
35802
|
if (swiper.pagination.bullets) swiper.pagination.bullets.forEach(subEl => subEl.classList.remove(...params.bulletActiveClass.split(' ')));
|
|
35658
35803
|
}
|
|
35804
|
+
on('changeDirection', () => {
|
|
35805
|
+
if (!swiper.pagination || !swiper.pagination.el) return;
|
|
35806
|
+
const params = swiper.params.pagination;
|
|
35807
|
+
let {
|
|
35808
|
+
el
|
|
35809
|
+
} = swiper.pagination;
|
|
35810
|
+
el = makeElementsArray(el);
|
|
35811
|
+
el.forEach(subEl => {
|
|
35812
|
+
subEl.classList.remove(params.horizontalClass, params.verticalClass);
|
|
35813
|
+
subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);
|
|
35814
|
+
});
|
|
35815
|
+
});
|
|
35659
35816
|
on('init', () => {
|
|
35660
35817
|
if (swiper.params.pagination.enabled === false) {
|
|
35661
35818
|
// eslint-disable-next-line
|
|
@@ -35695,10 +35852,7 @@
|
|
|
35695
35852
|
});
|
|
35696
35853
|
on('click', (_s, e) => {
|
|
35697
35854
|
const targetEl = e.target;
|
|
35698
|
-
|
|
35699
|
-
el
|
|
35700
|
-
} = swiper.pagination;
|
|
35701
|
-
if (!Array.isArray(el)) el = [el].filter(element => !!element);
|
|
35855
|
+
const el = makeElementsArray(swiper.pagination.el);
|
|
35702
35856
|
if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && el && el.length > 0 && !targetEl.classList.contains(swiper.params.pagination.bulletClass)) {
|
|
35703
35857
|
if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;
|
|
35704
35858
|
const isHidden = el[0].classList.contains(swiper.params.pagination.hiddenClass);
|
|
@@ -35996,7 +36150,7 @@
|
|
|
35996
36150
|
if (!params.el) return;
|
|
35997
36151
|
let el;
|
|
35998
36152
|
if (typeof params.el === 'string' && swiper.isElement) {
|
|
35999
|
-
el = swiper.el.
|
|
36153
|
+
el = swiper.el.querySelector(params.el);
|
|
36000
36154
|
}
|
|
36001
36155
|
if (!el && typeof params.el === 'string') {
|
|
36002
36156
|
el = document.querySelectorAll(params.el);
|
|
@@ -36762,7 +36916,7 @@
|
|
|
36762
36916
|
});
|
|
36763
36917
|
on('touchEnd', (_s, e) => {
|
|
36764
36918
|
if (!swiper.zoom.enabled) return;
|
|
36765
|
-
onTouchEnd(
|
|
36919
|
+
onTouchEnd();
|
|
36766
36920
|
});
|
|
36767
36921
|
on('doubleTap', (_s, e) => {
|
|
36768
36922
|
if (!swiper.animating && swiper.params.zoom.enabled && swiper.zoom.enabled && swiper.params.zoom.toggle) {
|
|
@@ -36846,11 +37000,8 @@
|
|
|
36846
37000
|
};
|
|
36847
37001
|
return this;
|
|
36848
37002
|
}
|
|
36849
|
-
// xxx: for now i will just save one spline function to to
|
|
36850
37003
|
function getInterpolateFunction(c) {
|
|
36851
|
-
|
|
36852
|
-
swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);
|
|
36853
|
-
}
|
|
37004
|
+
swiper.controller.spline = swiper.params.loop ? new LinearSpline(swiper.slidesGrid, c.slidesGrid) : new LinearSpline(swiper.snapGrid, c.snapGrid);
|
|
36854
37005
|
}
|
|
36855
37006
|
function setTranslate(_t, byController) {
|
|
36856
37007
|
const controlled = swiper.controller.control;
|
|
@@ -36873,6 +37024,9 @@
|
|
|
36873
37024
|
}
|
|
36874
37025
|
if (!controlledTranslate || swiper.params.controller.by === 'container') {
|
|
36875
37026
|
multiplier = (c.maxTranslate() - c.minTranslate()) / (swiper.maxTranslate() - swiper.minTranslate());
|
|
37027
|
+
if (Number.isNaN(multiplier) || !Number.isFinite(multiplier)) {
|
|
37028
|
+
multiplier = 1;
|
|
37029
|
+
}
|
|
36876
37030
|
controlledTranslate = (translate - swiper.minTranslate()) * multiplier + c.minTranslate();
|
|
36877
37031
|
}
|
|
36878
37032
|
if (swiper.params.controller.inverse) {
|
|
@@ -36959,11 +37113,11 @@
|
|
|
36959
37113
|
removeSpline();
|
|
36960
37114
|
});
|
|
36961
37115
|
on('setTranslate', (_s, translate, byController) => {
|
|
36962
|
-
if (!swiper.controller.control) return;
|
|
37116
|
+
if (!swiper.controller.control || swiper.controller.control.destroyed) return;
|
|
36963
37117
|
swiper.controller.setTranslate(translate, byController);
|
|
36964
37118
|
});
|
|
36965
37119
|
on('setTransition', (_s, duration, byController) => {
|
|
36966
|
-
if (!swiper.controller.control) return;
|
|
37120
|
+
if (!swiper.controller.control || swiper.controller.control.destroyed) return;
|
|
36967
37121
|
swiper.controller.setTransition(duration, byController);
|
|
36968
37122
|
});
|
|
36969
37123
|
Object.assign(swiper.controller, {
|
|
@@ -37260,7 +37414,7 @@
|
|
|
37260
37414
|
swiper.el.addEventListener('pointerup', handlePointerUp, true);
|
|
37261
37415
|
};
|
|
37262
37416
|
function destroy() {
|
|
37263
|
-
if (liveRegion
|
|
37417
|
+
if (liveRegion) liveRegion.remove();
|
|
37264
37418
|
let {
|
|
37265
37419
|
nextEl,
|
|
37266
37420
|
prevEl
|
|
@@ -37291,9 +37445,6 @@
|
|
|
37291
37445
|
liveRegion = createElement('span', swiper.params.a11y.notificationClass);
|
|
37292
37446
|
liveRegion.setAttribute('aria-live', 'assertive');
|
|
37293
37447
|
liveRegion.setAttribute('aria-atomic', 'true');
|
|
37294
|
-
if (swiper.isElement) {
|
|
37295
|
-
liveRegion.setAttribute('slot', 'container-end');
|
|
37296
|
-
}
|
|
37297
37448
|
});
|
|
37298
37449
|
on('afterInit', () => {
|
|
37299
37450
|
if (!swiper.params.a11y.enabled) return;
|
|
@@ -37470,28 +37621,38 @@
|
|
|
37470
37621
|
hashNavigation: {
|
|
37471
37622
|
enabled: false,
|
|
37472
37623
|
replaceState: false,
|
|
37473
|
-
watchState: false
|
|
37624
|
+
watchState: false,
|
|
37625
|
+
getSlideIndex(_s, hash) {
|
|
37626
|
+
if (swiper.virtual && swiper.params.virtual.enabled) {
|
|
37627
|
+
const slideWithHash = swiper.slides.filter(slideEl => slideEl.getAttribute('data-hash') === hash)[0];
|
|
37628
|
+
if (!slideWithHash) return 0;
|
|
37629
|
+
const index = parseInt(slideWithHash.getAttribute('data-swiper-slide-index'), 10);
|
|
37630
|
+
return index;
|
|
37631
|
+
}
|
|
37632
|
+
return swiper.getSlideIndex(elementChildren(swiper.slidesEl, `.${swiper.params.slideClass}[data-hash="${hash}"], swiper-slide[data-hash="${hash}"]`)[0]);
|
|
37633
|
+
}
|
|
37474
37634
|
}
|
|
37475
37635
|
});
|
|
37476
37636
|
const onHashChange = () => {
|
|
37477
37637
|
emit('hashChange');
|
|
37478
37638
|
const newHash = document.location.hash.replace('#', '');
|
|
37479
|
-
const
|
|
37639
|
+
const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index="${swiper.activeIndex}"]`) : swiper.slides[swiper.activeIndex];
|
|
37640
|
+
const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute('data-hash') : '';
|
|
37480
37641
|
if (newHash !== activeSlideHash) {
|
|
37481
|
-
const newIndex = swiper.getSlideIndex(
|
|
37482
|
-
if (typeof newIndex === 'undefined') return;
|
|
37642
|
+
const newIndex = swiper.params.hashNavigation.getSlideIndex(swiper, newHash);
|
|
37643
|
+
if (typeof newIndex === 'undefined' || Number.isNaN(newIndex)) return;
|
|
37483
37644
|
swiper.slideTo(newIndex);
|
|
37484
37645
|
}
|
|
37485
37646
|
};
|
|
37486
37647
|
const setHash = () => {
|
|
37487
37648
|
if (!initialized || !swiper.params.hashNavigation.enabled) return;
|
|
37649
|
+
const activeSlideEl = swiper.virtual && swiper.params.virtual.enabled ? swiper.slidesEl.querySelector(`[data-swiper-slide-index="${swiper.activeIndex}"]`) : swiper.slides[swiper.activeIndex];
|
|
37650
|
+
const activeSlideHash = activeSlideEl ? activeSlideEl.getAttribute('data-hash') || activeSlideEl.getAttribute('data-history') : '';
|
|
37488
37651
|
if (swiper.params.hashNavigation.replaceState && window.history && window.history.replaceState) {
|
|
37489
|
-
window.history.replaceState(null, null, `#${
|
|
37652
|
+
window.history.replaceState(null, null, `#${activeSlideHash}` || '');
|
|
37490
37653
|
emit('hashSet');
|
|
37491
37654
|
} else {
|
|
37492
|
-
|
|
37493
|
-
const hash = slide.getAttribute('data-hash') || slide.getAttribute('data-history');
|
|
37494
|
-
document.location.hash = hash || '';
|
|
37655
|
+
document.location.hash = activeSlideHash || '';
|
|
37495
37656
|
emit('hashSet');
|
|
37496
37657
|
}
|
|
37497
37658
|
};
|
|
@@ -37501,14 +37662,8 @@
|
|
|
37501
37662
|
const hash = document.location.hash.replace('#', '');
|
|
37502
37663
|
if (hash) {
|
|
37503
37664
|
const speed = 0;
|
|
37504
|
-
|
|
37505
|
-
|
|
37506
|
-
const slideHash = slide.getAttribute('data-hash') || slide.getAttribute('data-history');
|
|
37507
|
-
if (slideHash === hash) {
|
|
37508
|
-
const index = swiper.getSlideIndex(slide);
|
|
37509
|
-
swiper.slideTo(index, speed, swiper.params.runCallbacksOnInit, true);
|
|
37510
|
-
}
|
|
37511
|
-
}
|
|
37665
|
+
const index = swiper.params.hashNavigation.getSlideIndex(swiper, hash);
|
|
37666
|
+
swiper.slideTo(index || 0, speed, swiper.params.runCallbacksOnInit, true);
|
|
37512
37667
|
}
|
|
37513
37668
|
if (swiper.params.hashNavigation.watchState) {
|
|
37514
37669
|
window.addEventListener('hashchange', onHashChange);
|
|
@@ -37542,6 +37697,7 @@
|
|
|
37542
37697
|
}
|
|
37543
37698
|
|
|
37544
37699
|
/* eslint no-underscore-dangle: "off" */
|
|
37700
|
+
/* eslint no-use-before-define: "off" */
|
|
37545
37701
|
function Autoplay(_ref) {
|
|
37546
37702
|
let {
|
|
37547
37703
|
swiper,
|
|
@@ -37943,9 +38099,7 @@
|
|
|
37943
38099
|
} else {
|
|
37944
38100
|
newThumbsIndex = newThumbsIndex + Math.floor(slidesPerView / 2) - 1;
|
|
37945
38101
|
}
|
|
37946
|
-
} else if (newThumbsIndex > currentThumbsIndex && thumbsSwiper.params.slidesPerGroup === 1)
|
|
37947
|
-
// newThumbsIndex = newThumbsIndex - slidesPerView + 1;
|
|
37948
|
-
}
|
|
38102
|
+
} else if (newThumbsIndex > currentThumbsIndex && thumbsSwiper.params.slidesPerGroup === 1) ;
|
|
37949
38103
|
thumbsSwiper.slideTo(newThumbsIndex, initial ? 0 : undefined);
|
|
37950
38104
|
}
|
|
37951
38105
|
}
|
|
@@ -38030,6 +38184,7 @@
|
|
|
38030
38184
|
}
|
|
38031
38185
|
});
|
|
38032
38186
|
function onTouchStart() {
|
|
38187
|
+
if (swiper.params.cssMode) return;
|
|
38033
38188
|
const translate = swiper.getTranslate();
|
|
38034
38189
|
swiper.setTranslate(translate);
|
|
38035
38190
|
swiper.setTransition(0);
|
|
@@ -38039,6 +38194,7 @@
|
|
|
38039
38194
|
});
|
|
38040
38195
|
}
|
|
38041
38196
|
function onTouchMove() {
|
|
38197
|
+
if (swiper.params.cssMode) return;
|
|
38042
38198
|
const {
|
|
38043
38199
|
touchEventsData: data,
|
|
38044
38200
|
touches
|
|
@@ -38059,6 +38215,7 @@
|
|
|
38059
38215
|
let {
|
|
38060
38216
|
currentPos
|
|
38061
38217
|
} = _ref2;
|
|
38218
|
+
if (swiper.params.cssMode) return;
|
|
38062
38219
|
const {
|
|
38063
38220
|
params,
|
|
38064
38221
|
wrapperEl,
|
|
@@ -38254,6 +38411,15 @@
|
|
|
38254
38411
|
let slidesNumberEvenToRows;
|
|
38255
38412
|
let slidesPerRow;
|
|
38256
38413
|
let numFullColumns;
|
|
38414
|
+
const getSpaceBetween = () => {
|
|
38415
|
+
let spaceBetween = swiper.params.spaceBetween;
|
|
38416
|
+
if (typeof spaceBetween === 'string' && spaceBetween.indexOf('%') >= 0) {
|
|
38417
|
+
spaceBetween = parseFloat(spaceBetween.replace('%', '')) / 100 * swiper.size;
|
|
38418
|
+
} else if (typeof spaceBetween === 'string') {
|
|
38419
|
+
spaceBetween = parseFloat(spaceBetween);
|
|
38420
|
+
}
|
|
38421
|
+
return spaceBetween;
|
|
38422
|
+
};
|
|
38257
38423
|
const initSlides = slidesLength => {
|
|
38258
38424
|
const {
|
|
38259
38425
|
slidesPerView
|
|
@@ -38262,7 +38428,6 @@
|
|
|
38262
38428
|
rows,
|
|
38263
38429
|
fill
|
|
38264
38430
|
} = swiper.params.grid;
|
|
38265
|
-
slidesPerRow = slidesNumberEvenToRows / rows;
|
|
38266
38431
|
numFullColumns = Math.floor(slidesLength / rows);
|
|
38267
38432
|
if (Math.floor(slidesLength / rows) === slidesLength / rows) {
|
|
38268
38433
|
slidesNumberEvenToRows = slidesLength;
|
|
@@ -38272,12 +38437,13 @@
|
|
|
38272
38437
|
if (slidesPerView !== 'auto' && fill === 'row') {
|
|
38273
38438
|
slidesNumberEvenToRows = Math.max(slidesNumberEvenToRows, slidesPerView * rows);
|
|
38274
38439
|
}
|
|
38440
|
+
slidesPerRow = slidesNumberEvenToRows / rows;
|
|
38275
38441
|
};
|
|
38276
38442
|
const updateSlide = (i, slide, slidesLength, getDirectionLabel) => {
|
|
38277
38443
|
const {
|
|
38278
|
-
slidesPerGroup
|
|
38279
|
-
spaceBetween
|
|
38444
|
+
slidesPerGroup
|
|
38280
38445
|
} = swiper.params;
|
|
38446
|
+
const spaceBetween = getSpaceBetween();
|
|
38281
38447
|
const {
|
|
38282
38448
|
rows,
|
|
38283
38449
|
fill
|
|
@@ -38308,14 +38474,16 @@
|
|
|
38308
38474
|
row = Math.floor(i / slidesPerRow);
|
|
38309
38475
|
column = i - row * slidesPerRow;
|
|
38310
38476
|
}
|
|
38477
|
+
slide.row = row;
|
|
38478
|
+
slide.column = column;
|
|
38311
38479
|
slide.style[getDirectionLabel('margin-top')] = row !== 0 ? spaceBetween && `${spaceBetween}px` : '';
|
|
38312
38480
|
};
|
|
38313
38481
|
const updateWrapperSize = (slideSize, snapGrid, getDirectionLabel) => {
|
|
38314
38482
|
const {
|
|
38315
|
-
spaceBetween,
|
|
38316
38483
|
centeredSlides,
|
|
38317
38484
|
roundLengths
|
|
38318
38485
|
} = swiper.params;
|
|
38486
|
+
const spaceBetween = getSpaceBetween();
|
|
38319
38487
|
const {
|
|
38320
38488
|
rows
|
|
38321
38489
|
} = swiper.params.grid;
|
|
@@ -38374,7 +38542,6 @@
|
|
|
38374
38542
|
swiper.update();
|
|
38375
38543
|
}
|
|
38376
38544
|
}
|
|
38377
|
-
|
|
38378
38545
|
function prependSlide(slides) {
|
|
38379
38546
|
const swiper = this;
|
|
38380
38547
|
const {
|
|
@@ -38413,7 +38580,6 @@
|
|
|
38413
38580
|
}
|
|
38414
38581
|
swiper.slideTo(newActiveIndex, 0, false);
|
|
38415
38582
|
}
|
|
38416
|
-
|
|
38417
38583
|
function addSlide(index, slides) {
|
|
38418
38584
|
const swiper = this;
|
|
38419
38585
|
const {
|
|
@@ -38467,7 +38633,6 @@
|
|
|
38467
38633
|
swiper.slideTo(newActiveIndex, 0, false);
|
|
38468
38634
|
}
|
|
38469
38635
|
}
|
|
38470
|
-
|
|
38471
38636
|
function removeSlide(slidesIndexes) {
|
|
38472
38637
|
const swiper = this;
|
|
38473
38638
|
const {
|
|
@@ -38507,7 +38672,6 @@
|
|
|
38507
38672
|
swiper.slideTo(newActiveIndex, 0, false);
|
|
38508
38673
|
}
|
|
38509
38674
|
}
|
|
38510
|
-
|
|
38511
38675
|
function removeAllSlides() {
|
|
38512
38676
|
const swiper = this;
|
|
38513
38677
|
const slidesIndexes = [];
|
|
@@ -38516,7 +38680,6 @@
|
|
|
38516
38680
|
}
|
|
38517
38681
|
swiper.removeSlide(slidesIndexes);
|
|
38518
38682
|
}
|
|
38519
|
-
|
|
38520
38683
|
function Manipulation(_ref) {
|
|
38521
38684
|
let {
|
|
38522
38685
|
swiper
|
|
@@ -38609,7 +38772,7 @@
|
|
|
38609
38772
|
const getSlide = el => {
|
|
38610
38773
|
if (!el.parentElement) {
|
|
38611
38774
|
// assume shadow root
|
|
38612
|
-
const slide = swiper.slides.filter(slideEl => slideEl.
|
|
38775
|
+
const slide = swiper.slides.filter(slideEl => slideEl.shadowRoot && slideEl.shadowRoot === el.parentNode)[0];
|
|
38613
38776
|
return slide;
|
|
38614
38777
|
}
|
|
38615
38778
|
return el.parentElement;
|
|
@@ -38719,11 +38882,11 @@
|
|
|
38719
38882
|
let shadowBefore = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');
|
|
38720
38883
|
let shadowAfter = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');
|
|
38721
38884
|
if (!shadowBefore) {
|
|
38722
|
-
shadowBefore = createElement('div', `swiper-slide-shadow-${isHorizontal ? 'left' : 'top'}
|
|
38885
|
+
shadowBefore = createElement('div', `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? 'left' : 'top'}`.split(' '));
|
|
38723
38886
|
slideEl.append(shadowBefore);
|
|
38724
38887
|
}
|
|
38725
38888
|
if (!shadowAfter) {
|
|
38726
|
-
shadowAfter = createElement('div', `swiper-slide-shadow-${isHorizontal ? 'right' : 'bottom'}
|
|
38889
|
+
shadowAfter = createElement('div', `swiper-slide-shadow-cube swiper-slide-shadow-${isHorizontal ? 'right' : 'bottom'}`.split(' '));
|
|
38727
38890
|
slideEl.append(shadowAfter);
|
|
38728
38891
|
}
|
|
38729
38892
|
if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);
|
|
@@ -38755,10 +38918,10 @@
|
|
|
38755
38918
|
let cubeShadowEl;
|
|
38756
38919
|
if (params.shadow) {
|
|
38757
38920
|
if (isHorizontal) {
|
|
38758
|
-
cubeShadowEl = swiper.
|
|
38921
|
+
cubeShadowEl = swiper.wrapperEl.querySelector('.swiper-cube-shadow');
|
|
38759
38922
|
if (!cubeShadowEl) {
|
|
38760
38923
|
cubeShadowEl = createElement('div', 'swiper-cube-shadow');
|
|
38761
|
-
swiper.
|
|
38924
|
+
swiper.wrapperEl.append(cubeShadowEl);
|
|
38762
38925
|
}
|
|
38763
38926
|
cubeShadowEl.style.height = `${swiperWidth}px`;
|
|
38764
38927
|
} else {
|
|
@@ -38870,12 +39033,12 @@
|
|
|
38870
39033
|
});
|
|
38871
39034
|
}
|
|
38872
39035
|
|
|
38873
|
-
function createShadow(
|
|
38874
|
-
const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}`;
|
|
39036
|
+
function createShadow(suffix, slideEl, side) {
|
|
39037
|
+
const shadowClass = `swiper-slide-shadow${side ? `-${side}` : ''}${suffix ? ` swiper-slide-shadow-${suffix}` : ''}`;
|
|
38875
39038
|
const shadowContainer = getSlideTransformEl(slideEl);
|
|
38876
|
-
let shadowEl = shadowContainer.querySelector(`.${shadowClass}`);
|
|
39039
|
+
let shadowEl = shadowContainer.querySelector(`.${shadowClass.split(' ').join('.')}`);
|
|
38877
39040
|
if (!shadowEl) {
|
|
38878
|
-
shadowEl = createElement('div',
|
|
39041
|
+
shadowEl = createElement('div', shadowClass.split(' '));
|
|
38879
39042
|
shadowContainer.append(shadowEl);
|
|
38880
39043
|
}
|
|
38881
39044
|
return shadowEl;
|
|
@@ -38893,27 +39056,27 @@
|
|
|
38893
39056
|
limitRotation: true
|
|
38894
39057
|
}
|
|
38895
39058
|
});
|
|
38896
|
-
const createSlideShadows = (slideEl, progress
|
|
39059
|
+
const createSlideShadows = (slideEl, progress) => {
|
|
38897
39060
|
let shadowBefore = swiper.isHorizontal() ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');
|
|
38898
39061
|
let shadowAfter = swiper.isHorizontal() ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');
|
|
38899
39062
|
if (!shadowBefore) {
|
|
38900
|
-
shadowBefore = createShadow(
|
|
39063
|
+
shadowBefore = createShadow('flip', slideEl, swiper.isHorizontal() ? 'left' : 'top');
|
|
38901
39064
|
}
|
|
38902
39065
|
if (!shadowAfter) {
|
|
38903
|
-
shadowAfter = createShadow(
|
|
39066
|
+
shadowAfter = createShadow('flip', slideEl, swiper.isHorizontal() ? 'right' : 'bottom');
|
|
38904
39067
|
}
|
|
38905
39068
|
if (shadowBefore) shadowBefore.style.opacity = Math.max(-progress, 0);
|
|
38906
39069
|
if (shadowAfter) shadowAfter.style.opacity = Math.max(progress, 0);
|
|
38907
39070
|
};
|
|
38908
39071
|
const recreateShadows = () => {
|
|
38909
39072
|
// Set shadows
|
|
38910
|
-
|
|
39073
|
+
swiper.params.flipEffect;
|
|
38911
39074
|
swiper.slides.forEach(slideEl => {
|
|
38912
39075
|
let progress = slideEl.progress;
|
|
38913
39076
|
if (swiper.params.flipEffect.limitRotation) {
|
|
38914
39077
|
progress = Math.max(Math.min(slideEl.progress, 1), -1);
|
|
38915
39078
|
}
|
|
38916
|
-
createSlideShadows(slideEl, progress
|
|
39079
|
+
createSlideShadows(slideEl, progress);
|
|
38917
39080
|
});
|
|
38918
39081
|
};
|
|
38919
39082
|
const setTranslate = () => {
|
|
@@ -38944,7 +39107,7 @@
|
|
|
38944
39107
|
}
|
|
38945
39108
|
slideEl.style.zIndex = -Math.abs(Math.round(progress)) + slides.length;
|
|
38946
39109
|
if (params.slideShadows) {
|
|
38947
|
-
createSlideShadows(slideEl, progress
|
|
39110
|
+
createSlideShadows(slideEl, progress);
|
|
38948
39111
|
}
|
|
38949
39112
|
const transform = `translate3d(${tx}px, ${ty}px, 0px) rotateX(${rotateX}deg) rotateY(${rotateY}deg)`;
|
|
38950
39113
|
const targetEl = effectTarget(params, slideEl);
|
|
@@ -39049,10 +39212,10 @@
|
|
|
39049
39212
|
let shadowBeforeEl = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-left') : slideEl.querySelector('.swiper-slide-shadow-top');
|
|
39050
39213
|
let shadowAfterEl = isHorizontal ? slideEl.querySelector('.swiper-slide-shadow-right') : slideEl.querySelector('.swiper-slide-shadow-bottom');
|
|
39051
39214
|
if (!shadowBeforeEl) {
|
|
39052
|
-
shadowBeforeEl = createShadow(
|
|
39215
|
+
shadowBeforeEl = createShadow('coverflow', slideEl, isHorizontal ? 'left' : 'top');
|
|
39053
39216
|
}
|
|
39054
39217
|
if (!shadowAfterEl) {
|
|
39055
|
-
shadowAfterEl = createShadow(
|
|
39218
|
+
shadowAfterEl = createShadow('coverflow', slideEl, isHorizontal ? 'right' : 'bottom');
|
|
39056
39219
|
}
|
|
39057
39220
|
if (shadowBeforeEl) shadowBeforeEl.style.opacity = offsetMultiplier > 0 ? offsetMultiplier : 0;
|
|
39058
39221
|
if (shadowAfterEl) shadowAfterEl.style.opacity = -offsetMultiplier > 0 ? -offsetMultiplier : 0;
|
|
@@ -39174,7 +39337,7 @@
|
|
|
39174
39337
|
if (custom && data.shadow || !custom) {
|
|
39175
39338
|
let shadowEl = slideEl.querySelector('.swiper-slide-shadow');
|
|
39176
39339
|
if (!shadowEl && data.shadow) {
|
|
39177
|
-
shadowEl = createShadow(
|
|
39340
|
+
shadowEl = createShadow('creative', slideEl);
|
|
39178
39341
|
}
|
|
39179
39342
|
if (shadowEl) {
|
|
39180
39343
|
const shadowOpacity = params.shadowPerProgress ? progress * (1 / params.limitProgress) : progress;
|
|
@@ -39235,14 +39398,15 @@
|
|
|
39235
39398
|
const setTranslate = () => {
|
|
39236
39399
|
const {
|
|
39237
39400
|
slides,
|
|
39238
|
-
activeIndex
|
|
39401
|
+
activeIndex,
|
|
39402
|
+
rtlTranslate: rtl
|
|
39239
39403
|
} = swiper;
|
|
39240
39404
|
const params = swiper.params.cardsEffect;
|
|
39241
39405
|
const {
|
|
39242
39406
|
startTranslate,
|
|
39243
39407
|
isTouched
|
|
39244
39408
|
} = swiper.touchEventsData;
|
|
39245
|
-
const currentTranslate = swiper.translate;
|
|
39409
|
+
const currentTranslate = rtl ? -swiper.translate : swiper.translate;
|
|
39246
39410
|
for (let i = 0; i < slides.length; i += 1) {
|
|
39247
39411
|
const slideEl = slides[i];
|
|
39248
39412
|
const slideProgress = slideEl.progress;
|
|
@@ -39272,10 +39436,10 @@
|
|
|
39272
39436
|
}
|
|
39273
39437
|
if (progress < 0) {
|
|
39274
39438
|
// next
|
|
39275
|
-
tX = `calc(${tX}px + (${tXAdd * Math.abs(progress)}%))`;
|
|
39439
|
+
tX = `calc(${tX}px ${rtl ? '-' : '+'} (${tXAdd * Math.abs(progress)}%))`;
|
|
39276
39440
|
} else if (progress > 0) {
|
|
39277
39441
|
// prev
|
|
39278
|
-
tX = `calc(${tX}px + (-${tXAdd * Math.abs(progress)}%))`;
|
|
39442
|
+
tX = `calc(${tX}px ${rtl ? '-' : '+'} (-${tXAdd * Math.abs(progress)}%))`;
|
|
39279
39443
|
} else {
|
|
39280
39444
|
tX = `${tX}px`;
|
|
39281
39445
|
}
|
|
@@ -39285,16 +39449,20 @@
|
|
|
39285
39449
|
tX = prevY;
|
|
39286
39450
|
}
|
|
39287
39451
|
const scaleString = progress < 0 ? `${1 + (1 - scale) * progress}` : `${1 - (1 - scale) * progress}`;
|
|
39452
|
+
|
|
39453
|
+
/* eslint-disable */
|
|
39288
39454
|
const transform = `
|
|
39289
39455
|
translate3d(${tX}, ${tY}, ${tZ}px)
|
|
39290
|
-
rotateZ(${params.rotate ? rotate : 0}deg)
|
|
39456
|
+
rotateZ(${params.rotate ? rtl ? -rotate : rotate : 0}deg)
|
|
39291
39457
|
scale(${scaleString})
|
|
39292
39458
|
`;
|
|
39459
|
+
/* eslint-enable */
|
|
39460
|
+
|
|
39293
39461
|
if (params.slideShadows) {
|
|
39294
39462
|
// Set shadows
|
|
39295
39463
|
let shadowEl = slideEl.querySelector('.swiper-slide-shadow');
|
|
39296
39464
|
if (!shadowEl) {
|
|
39297
|
-
shadowEl = createShadow(
|
|
39465
|
+
shadowEl = createShadow('cards', slideEl);
|
|
39298
39466
|
}
|
|
39299
39467
|
if (shadowEl) shadowEl.style.opacity = Math.min(Math.max((Math.abs(progress) - 0.5) / 0.5, 0), 1);
|
|
39300
39468
|
}
|
|
@@ -39332,7 +39500,7 @@
|
|
|
39332
39500
|
}
|
|
39333
39501
|
|
|
39334
39502
|
/**
|
|
39335
|
-
* Swiper
|
|
39503
|
+
* Swiper 10.0.3
|
|
39336
39504
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
39337
39505
|
* https://swiperjs.com
|
|
39338
39506
|
*
|
|
@@ -39340,7 +39508,7 @@
|
|
|
39340
39508
|
*
|
|
39341
39509
|
* Released under the MIT License
|
|
39342
39510
|
*
|
|
39343
|
-
* Released on:
|
|
39511
|
+
* Released on: July 3, 2023
|
|
39344
39512
|
*/
|
|
39345
39513
|
|
|
39346
39514
|
// Swiper Class
|
|
@@ -39348,10 +39516,9 @@
|
|
|
39348
39516
|
Swiper$1.use(modules);
|
|
39349
39517
|
|
|
39350
39518
|
/* underscore in name -> watch for changes */
|
|
39351
|
-
const paramsList = ['eventsPrefix', 'modules', 'init', '_direction', 'oneWayMovement', 'touchEventsTarget', 'initialSlide', '_speed', 'cssMode', 'updateOnWindowResize', 'resizeObserver', 'nested', 'focusableElements', '_enabled', '_width', '_height', 'preventInteractionOnTransition', 'userAgent', 'url', '_edgeSwipeDetection', '_edgeSwipeThreshold', '_freeMode', '_autoHeight', 'setWrapperSize', 'virtualTranslate', '_effect', 'breakpoints', '_spaceBetween', '_slidesPerView', 'maxBackfaceHiddenSlides', '_grid', '_slidesPerGroup', '_slidesPerGroupSkip', '_slidesPerGroupAuto', '_centeredSlides', '_centeredSlidesBounds', '_slidesOffsetBefore', '_slidesOffsetAfter', 'normalizeSlideIndex', '_centerInsufficientSlides', '_watchOverflow', 'roundLengths', 'touchRatio', 'touchAngle', 'simulateTouch', '_shortSwipes', '_longSwipes', 'longSwipesRatio', 'longSwipesMs', '_followFinger', 'allowTouchMove', '_threshold', 'touchMoveStopPropagation', 'touchStartPreventDefault', 'touchStartForcePreventDefault', 'touchReleaseOnEdges', 'uniqueNavElements', '_resistance', '_resistanceRatio', '_watchSlidesProgress', '_grabCursor', 'preventClicks', 'preventClicksPropagation', '_slideToClickedSlide', '_loop', 'loopedSlides', 'loopPreventsSliding', '_rewind', '_allowSlidePrev', '_allowSlideNext', '_swipeHandler', '_noSwiping', 'noSwipingClass', 'noSwipingSelector', 'passiveListeners', 'containerModifierClass', 'slideClass', 'slideActiveClass', 'slideVisibleClass', 'slideNextClass', 'slidePrevClass', 'wrapperClass', 'lazyPreloaderClass', 'lazyPreloadPrevNext', 'runCallbacksOnInit', 'observer', 'observeParents', 'observeSlideChildren',
|
|
39519
|
+
const paramsList = ['eventsPrefix', 'injectStyles', 'injectStylesUrls', 'modules', 'init', '_direction', 'oneWayMovement', 'touchEventsTarget', 'initialSlide', '_speed', 'cssMode', 'updateOnWindowResize', 'resizeObserver', 'nested', 'focusableElements', '_enabled', '_width', '_height', 'preventInteractionOnTransition', 'userAgent', 'url', '_edgeSwipeDetection', '_edgeSwipeThreshold', '_freeMode', '_autoHeight', 'setWrapperSize', 'virtualTranslate', '_effect', 'breakpoints', '_spaceBetween', '_slidesPerView', 'maxBackfaceHiddenSlides', '_grid', '_slidesPerGroup', '_slidesPerGroupSkip', '_slidesPerGroupAuto', '_centeredSlides', '_centeredSlidesBounds', '_slidesOffsetBefore', '_slidesOffsetAfter', 'normalizeSlideIndex', '_centerInsufficientSlides', '_watchOverflow', 'roundLengths', 'touchRatio', 'touchAngle', 'simulateTouch', '_shortSwipes', '_longSwipes', 'longSwipesRatio', 'longSwipesMs', '_followFinger', 'allowTouchMove', '_threshold', 'touchMoveStopPropagation', 'touchStartPreventDefault', 'touchStartForcePreventDefault', 'touchReleaseOnEdges', 'uniqueNavElements', '_resistance', '_resistanceRatio', '_watchSlidesProgress', '_grabCursor', 'preventClicks', 'preventClicksPropagation', '_slideToClickedSlide', '_loop', 'loopedSlides', 'loopPreventsSliding', '_rewind', '_allowSlidePrev', '_allowSlideNext', '_swipeHandler', '_noSwiping', 'noSwipingClass', 'noSwipingSelector', 'passiveListeners', 'containerModifierClass', 'slideClass', 'slideActiveClass', 'slideVisibleClass', 'slideNextClass', 'slidePrevClass', 'wrapperClass', 'lazyPreloaderClass', 'lazyPreloadPrevNext', 'runCallbacksOnInit', 'observer', 'observeParents', 'observeSlideChildren',
|
|
39352
39520
|
// modules
|
|
39353
|
-
'a11y', '_autoplay', '_controller', 'coverflowEffect', 'cubeEffect', 'fadeEffect', 'flipEffect', 'creativeEffect', 'cardsEffect', 'hashNavigation', 'history', 'keyboard', 'mousewheel', '_navigation', '_pagination', 'parallax', '_scrollbar', '_thumbs', 'virtual', 'zoom', 'control'
|
|
39354
|
-
|
|
39521
|
+
'a11y', '_autoplay', '_controller', 'coverflowEffect', 'cubeEffect', 'fadeEffect', 'flipEffect', 'creativeEffect', 'cardsEffect', 'hashNavigation', 'history', 'keyboard', 'mousewheel', '_navigation', '_pagination', 'parallax', '_scrollbar', '_thumbs', 'virtual', 'zoom', 'control'];
|
|
39355
39522
|
function isObject(o) {
|
|
39356
39523
|
return typeof o === 'object' && o !== null && o.constructor && Object.prototype.toString.call(o).slice(8, -1) === 'Object';
|
|
39357
39524
|
}
|
|
@@ -39408,91 +39575,6 @@
|
|
|
39408
39575
|
if (!className.includes('swiper-wrapper')) return `swiper-wrapper ${className}`;
|
|
39409
39576
|
return className;
|
|
39410
39577
|
}
|
|
39411
|
-
|
|
39412
|
-
const formatValue = val => {
|
|
39413
|
-
if (parseFloat(val) === Number(val)) return Number(val);
|
|
39414
|
-
if (val === 'true') return true;
|
|
39415
|
-
if (val === '') return true;
|
|
39416
|
-
if (val === 'false') return false;
|
|
39417
|
-
if (val === 'null') return null;
|
|
39418
|
-
if (val === 'undefined') return undefined;
|
|
39419
|
-
return val;
|
|
39420
|
-
};
|
|
39421
|
-
const modulesParamsList = ['a11y', 'autoplay', 'controller', 'cards-effect', 'coverflow-effect', 'creative-effect', 'cube-effect', 'fade-effect', 'flip-effect', 'free-mode', 'grid', 'hash-navigation', 'history', 'keyboard', 'mousewheel', 'navigation', 'pagination', 'parallax', 'scrollbar', 'thumbs', 'virtual', 'zoom'];
|
|
39422
|
-
function getParams(element) {
|
|
39423
|
-
const params = {};
|
|
39424
|
-
const passedParams = {};
|
|
39425
|
-
extend(params, defaults);
|
|
39426
|
-
const localParamsList = [...paramsList, 'on'];
|
|
39427
|
-
const allowedParams = localParamsList.map(key => key.replace(/_/, ''));
|
|
39428
|
-
|
|
39429
|
-
// First check props
|
|
39430
|
-
localParamsList.forEach(paramName => {
|
|
39431
|
-
paramName = paramName.replace('_', '');
|
|
39432
|
-
if (typeof element[paramName] !== 'undefined') {
|
|
39433
|
-
passedParams[paramName] = element[paramName];
|
|
39434
|
-
}
|
|
39435
|
-
});
|
|
39436
|
-
|
|
39437
|
-
// Attributes
|
|
39438
|
-
[...element.attributes].forEach(attr => {
|
|
39439
|
-
const moduleParam = modulesParamsList.filter(mParam => attr.name.indexOf(`${mParam}-`) === 0)[0];
|
|
39440
|
-
if (moduleParam) {
|
|
39441
|
-
const parentObjName = attrToProp(moduleParam);
|
|
39442
|
-
const subObjName = attrToProp(attr.name.split(`${moduleParam}-`)[1]);
|
|
39443
|
-
if (!passedParams[parentObjName]) passedParams[parentObjName] = {};
|
|
39444
|
-
if (passedParams[parentObjName] === true) {
|
|
39445
|
-
passedParams[parentObjName] = {
|
|
39446
|
-
enabled: true
|
|
39447
|
-
};
|
|
39448
|
-
}
|
|
39449
|
-
passedParams[parentObjName][subObjName] = formatValue(attr.value);
|
|
39450
|
-
} else {
|
|
39451
|
-
const name = attrToProp(attr.name);
|
|
39452
|
-
if (!allowedParams.includes(name)) return;
|
|
39453
|
-
const value = formatValue(attr.value);
|
|
39454
|
-
if (passedParams[name] && modulesParamsList.includes(attr.name)) {
|
|
39455
|
-
if (passedParams[name].constructor !== Object) {
|
|
39456
|
-
passedParams[name] = {};
|
|
39457
|
-
}
|
|
39458
|
-
passedParams[name].enabled = value;
|
|
39459
|
-
} else {
|
|
39460
|
-
passedParams[name] = value;
|
|
39461
|
-
}
|
|
39462
|
-
}
|
|
39463
|
-
});
|
|
39464
|
-
extend(params, passedParams);
|
|
39465
|
-
if (params.navigation) {
|
|
39466
|
-
params.navigation = {
|
|
39467
|
-
prevEl: '.swiper-button-prev',
|
|
39468
|
-
nextEl: '.swiper-button-next',
|
|
39469
|
-
...(params.navigation !== true ? params.navigation : {})
|
|
39470
|
-
};
|
|
39471
|
-
} else if (params.navigation === false) {
|
|
39472
|
-
delete params.navigation;
|
|
39473
|
-
}
|
|
39474
|
-
if (params.scrollbar) {
|
|
39475
|
-
params.scrollbar = {
|
|
39476
|
-
el: '.swiper-scrollbar',
|
|
39477
|
-
...(params.scrollbar !== true ? params.scrollbar : {})
|
|
39478
|
-
};
|
|
39479
|
-
} else if (params.scrollbar === false) {
|
|
39480
|
-
delete params.scrollbar;
|
|
39481
|
-
}
|
|
39482
|
-
if (params.pagination) {
|
|
39483
|
-
params.pagination = {
|
|
39484
|
-
el: '.swiper-pagination',
|
|
39485
|
-
...(params.pagination !== true ? params.pagination : {})
|
|
39486
|
-
};
|
|
39487
|
-
} else if (params.pagination === false) {
|
|
39488
|
-
delete params.pagination;
|
|
39489
|
-
}
|
|
39490
|
-
return {
|
|
39491
|
-
params,
|
|
39492
|
-
passedParams
|
|
39493
|
-
};
|
|
39494
|
-
}
|
|
39495
|
-
|
|
39496
39578
|
function updateSwiper(_ref) {
|
|
39497
39579
|
let {
|
|
39498
39580
|
swiper,
|
|
@@ -39568,6 +39650,9 @@
|
|
|
39568
39650
|
updateParams.forEach(key => {
|
|
39569
39651
|
if (isObject(currentParams[key]) && isObject(passedParams[key])) {
|
|
39570
39652
|
extend(currentParams[key], passedParams[key]);
|
|
39653
|
+
if ((key === 'navigation' || key === 'pagination' || key === 'scrollbar') && 'enabled' in passedParams[key] && !passedParams[key].enabled) {
|
|
39654
|
+
destroyModule(key);
|
|
39655
|
+
}
|
|
39571
39656
|
} else {
|
|
39572
39657
|
const newValue = passedParams[key];
|
|
39573
39658
|
if ((newValue === true || newValue === false) && (key === 'navigation' || key === 'pagination' || key === 'scrollbar')) {
|
|
@@ -39600,7 +39685,7 @@
|
|
|
39600
39685
|
if (swiper.isElement && (!paginationEl || typeof paginationEl === 'string')) {
|
|
39601
39686
|
paginationEl = document.createElement('div');
|
|
39602
39687
|
paginationEl.classList.add('swiper-pagination');
|
|
39603
|
-
swiper.el.
|
|
39688
|
+
swiper.el.appendChild(paginationEl);
|
|
39604
39689
|
}
|
|
39605
39690
|
if (paginationEl) currentParams.pagination.el = paginationEl;
|
|
39606
39691
|
pagination.init();
|
|
@@ -39611,7 +39696,7 @@
|
|
|
39611
39696
|
if (swiper.isElement && (!scrollbarEl || typeof scrollbarEl === 'string')) {
|
|
39612
39697
|
scrollbarEl = document.createElement('div');
|
|
39613
39698
|
scrollbarEl.classList.add('swiper-scrollbar');
|
|
39614
|
-
swiper.el.
|
|
39699
|
+
swiper.el.appendChild(scrollbarEl);
|
|
39615
39700
|
}
|
|
39616
39701
|
if (scrollbarEl) currentParams.scrollbar.el = scrollbarEl;
|
|
39617
39702
|
scrollbar.init();
|
|
@@ -39623,12 +39708,14 @@
|
|
|
39623
39708
|
if (!nextEl || typeof nextEl === 'string') {
|
|
39624
39709
|
nextEl = document.createElement('div');
|
|
39625
39710
|
nextEl.classList.add('swiper-button-next');
|
|
39626
|
-
swiper.
|
|
39711
|
+
nextEl.innerHTML = swiper.hostEl.nextButtonSvg;
|
|
39712
|
+
swiper.el.appendChild(nextEl);
|
|
39627
39713
|
}
|
|
39628
39714
|
if (!prevEl || typeof prevEl === 'string') {
|
|
39629
39715
|
prevEl = document.createElement('div');
|
|
39630
39716
|
prevEl.classList.add('swiper-button-prev');
|
|
39631
|
-
swiper.
|
|
39717
|
+
nextEl.innerHTML = swiper.hostEl.prevButtonSvg;
|
|
39718
|
+
swiper.el.appendChild(prevEl);
|
|
39632
39719
|
}
|
|
39633
39720
|
}
|
|
39634
39721
|
if (nextEl) currentParams.navigation.nextEl = nextEl;
|
|
@@ -39654,8 +39741,108 @@
|
|
|
39654
39741
|
swiper.update();
|
|
39655
39742
|
}
|
|
39656
39743
|
|
|
39744
|
+
const formatValue = val => {
|
|
39745
|
+
if (parseFloat(val) === Number(val)) return Number(val);
|
|
39746
|
+
if (val === 'true') return true;
|
|
39747
|
+
if (val === '') return true;
|
|
39748
|
+
if (val === 'false') return false;
|
|
39749
|
+
if (val === 'null') return null;
|
|
39750
|
+
if (val === 'undefined') return undefined;
|
|
39751
|
+
if (typeof val === 'string' && val.includes('{') && val.includes('}') && val.includes('"')) {
|
|
39752
|
+
let v;
|
|
39753
|
+
try {
|
|
39754
|
+
v = JSON.parse(val);
|
|
39755
|
+
} catch (err) {
|
|
39756
|
+
v = val;
|
|
39757
|
+
}
|
|
39758
|
+
return v;
|
|
39759
|
+
}
|
|
39760
|
+
return val;
|
|
39761
|
+
};
|
|
39762
|
+
const modulesParamsList = ['a11y', 'autoplay', 'controller', 'cards-effect', 'coverflow-effect', 'creative-effect', 'cube-effect', 'fade-effect', 'flip-effect', 'free-mode', 'grid', 'hash-navigation', 'history', 'keyboard', 'mousewheel', 'navigation', 'pagination', 'parallax', 'scrollbar', 'thumbs', 'virtual', 'zoom'];
|
|
39763
|
+
function getParams(element, propName, propValue) {
|
|
39764
|
+
const params = {};
|
|
39765
|
+
const passedParams = {};
|
|
39766
|
+
extend(params, defaults);
|
|
39767
|
+
const localParamsList = [...paramsList, 'on'];
|
|
39768
|
+
const allowedParams = localParamsList.map(key => key.replace(/_/, ''));
|
|
39769
|
+
|
|
39770
|
+
// First check props
|
|
39771
|
+
localParamsList.forEach(paramName => {
|
|
39772
|
+
paramName = paramName.replace('_', '');
|
|
39773
|
+
if (typeof element[paramName] !== 'undefined') {
|
|
39774
|
+
passedParams[paramName] = element[paramName];
|
|
39775
|
+
}
|
|
39776
|
+
});
|
|
39777
|
+
|
|
39778
|
+
// Attributes
|
|
39779
|
+
const attrsList = [...element.attributes];
|
|
39780
|
+
if (typeof propName === 'string' && typeof propValue !== 'undefined') {
|
|
39781
|
+
attrsList.push({
|
|
39782
|
+
name: propName,
|
|
39783
|
+
value: propValue
|
|
39784
|
+
});
|
|
39785
|
+
}
|
|
39786
|
+
attrsList.forEach(attr => {
|
|
39787
|
+
const moduleParam = modulesParamsList.filter(mParam => attr.name.indexOf(`${mParam}-`) === 0)[0];
|
|
39788
|
+
if (moduleParam) {
|
|
39789
|
+
const parentObjName = attrToProp(moduleParam);
|
|
39790
|
+
const subObjName = attrToProp(attr.name.split(`${moduleParam}-`)[1]);
|
|
39791
|
+
if (typeof passedParams[parentObjName] === 'undefined') passedParams[parentObjName] = {};
|
|
39792
|
+
if (passedParams[parentObjName] === true) {
|
|
39793
|
+
passedParams[parentObjName] = {
|
|
39794
|
+
enabled: true
|
|
39795
|
+
};
|
|
39796
|
+
}
|
|
39797
|
+
passedParams[parentObjName][subObjName] = formatValue(attr.value);
|
|
39798
|
+
} else {
|
|
39799
|
+
const name = attrToProp(attr.name);
|
|
39800
|
+
if (!allowedParams.includes(name)) return;
|
|
39801
|
+
const value = formatValue(attr.value);
|
|
39802
|
+
if (passedParams[name] && modulesParamsList.includes(attr.name)) {
|
|
39803
|
+
if (passedParams[name].constructor !== Object) {
|
|
39804
|
+
passedParams[name] = {};
|
|
39805
|
+
}
|
|
39806
|
+
passedParams[name].enabled = value;
|
|
39807
|
+
} else {
|
|
39808
|
+
passedParams[name] = value;
|
|
39809
|
+
}
|
|
39810
|
+
}
|
|
39811
|
+
});
|
|
39812
|
+
extend(params, passedParams);
|
|
39813
|
+
if (params.navigation) {
|
|
39814
|
+
params.navigation = {
|
|
39815
|
+
prevEl: '.swiper-button-prev',
|
|
39816
|
+
nextEl: '.swiper-button-next',
|
|
39817
|
+
...(params.navigation !== true ? params.navigation : {})
|
|
39818
|
+
};
|
|
39819
|
+
} else if (params.navigation === false) {
|
|
39820
|
+
delete params.navigation;
|
|
39821
|
+
}
|
|
39822
|
+
if (params.scrollbar) {
|
|
39823
|
+
params.scrollbar = {
|
|
39824
|
+
el: '.swiper-scrollbar',
|
|
39825
|
+
...(params.scrollbar !== true ? params.scrollbar : {})
|
|
39826
|
+
};
|
|
39827
|
+
} else if (params.scrollbar === false) {
|
|
39828
|
+
delete params.scrollbar;
|
|
39829
|
+
}
|
|
39830
|
+
if (params.pagination) {
|
|
39831
|
+
params.pagination = {
|
|
39832
|
+
el: '.swiper-pagination',
|
|
39833
|
+
...(params.pagination !== true ? params.pagination : {})
|
|
39834
|
+
};
|
|
39835
|
+
} else if (params.pagination === false) {
|
|
39836
|
+
delete params.pagination;
|
|
39837
|
+
}
|
|
39838
|
+
return {
|
|
39839
|
+
params,
|
|
39840
|
+
passedParams
|
|
39841
|
+
};
|
|
39842
|
+
}
|
|
39843
|
+
|
|
39657
39844
|
/**
|
|
39658
|
-
* Swiper Custom Element
|
|
39845
|
+
* Swiper Custom Element 10.0.3
|
|
39659
39846
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
39660
39847
|
* https://swiperjs.com
|
|
39661
39848
|
*
|
|
@@ -39663,42 +39850,44 @@
|
|
|
39663
39850
|
*
|
|
39664
39851
|
* Released under the MIT License
|
|
39665
39852
|
*
|
|
39666
|
-
* Released on:
|
|
39853
|
+
* Released on: July 3, 2023
|
|
39667
39854
|
*/
|
|
39668
|
-
|
|
39669
|
-
const SwiperCSS = `:root{--swiper-theme-color:#007aff}.swiper,swiper-container{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}:host(.swiper-vertical)>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight swiper-slide{height:auto}:host(.swiper-autoheight) .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}:host(.swiper-3d.swiper-css-mode) .swiper-wrapper{perspective:1200px}:host(.swiper-3d) .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top,.swiper-3d swiper-slide{transform-style:preserve-3d}.swiper-3d .swiper-slide-shadow,.swiper-3d .swiper-slide-shadow-bottom,.swiper-3d .swiper-slide-shadow-left,.swiper-3d .swiper-slide-shadow-right,.swiper-3d .swiper-slide-shadow-top{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}.swiper-3d .swiper-slide-shadow{background:rgba(0,0,0,.15)}.swiper-3d .swiper-slide-shadow-left{background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-right{background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-top{background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}.swiper-3d .swiper-slide-shadow-bottom{background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}:host(.swiper-css-mode)>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}:host(.swiper-css-mode)>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>swiper-slide{scroll-snap-align:start start}:host(.swiper-horizontal.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:x mandatory}:host(.swiper-vertical.swiper-css-mode)>.swiper-wrapper{scroll-snap-type:y mandatory}:host(.swiper-centered)>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-centered>swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-centered.swiper-horizontal>swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-horizontal)>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-centered.swiper-vertical>swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}:host(.swiper-centered.swiper-vertical)>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-lazy-preloader{width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}.swiper-watch-progress .swiper-slide-visible .swiper-lazy-preloader,.swiper:not(.swiper-watch-progress) .swiper-lazy-preloader,swiper-container:not(.swiper-watch-progress) .swiper-lazy-preloader{animation:swiper-preloader-spin 1s infinite linear}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.swiper-virtual swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}:host(.swiper-virtual.swiper-css-mode) .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}:host(.swiper-virtual.swiper-css-mode.swiper-horizontal) .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}:host(.swiper-virtual.swiper-css-mode.swiper-vertical) .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next:after,.swiper-button-prev:after{font-family:swiper-icons;font-size:var(--swiper-navigation-size);text-transform:none!important;letter-spacing:0;font-variant:initial;line-height:1}.swiper-button-prev,:host(.swiper-rtl) .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-prev:after,:host(.swiper-rtl) .swiper-button-next:after{content:'prev'}.swiper-button-next,:host(.swiper-rtl) .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-next:after,:host(.swiper-rtl) .swiper-button-prev:after{content:'next'}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,:host(.swiper-horizontal.swiper-rtl) .swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}:host(.swiper-rtl) .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}.swiper-slide-zoomed{cursor:move;touch-action:none}.swiper .swiper-notification,swiper-container .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}:host(.swiper-free-mode)>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}:host(.swiper-grid)>.swiper-wrapper{flex-wrap:wrap}:host(.swiper-grid-column)>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode swiper-slide{transition-timing-function:ease-out}.swiper-fade swiper-slide{pointer-events:none;transition-property:opacity}.swiper-fade swiper-slide swiper-slide{pointer-events:none}.swiper-fade .swiper-slide-active,.swiper-fade .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube swiper-slide swiper-slide{pointer-events:none}.swiper-cube.swiper-rtl swiper-slide{transform-origin:100% 0}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-cube .swiper-slide-active,.swiper-cube .swiper-slide-next,.swiper-cube .swiper-slide-prev,.swiper-cube swiper-slide-next+swiper-slide{pointer-events:auto;visibility:visible}.swiper-cube .swiper-slide-shadow-bottom,.swiper-cube .swiper-slide-shadow-left,.swiper-cube .swiper-slide-shadow-right,.swiper-cube .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-flip{overflow:visible}.swiper-flip swiper-slide{pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip swiper-slide swiper-slide{pointer-events:none}.swiper-flip .swiper-slide-active,.swiper-flip .swiper-slide-active .swiper-slide-active{pointer-events:auto}.swiper-flip .swiper-slide-shadow-bottom,.swiper-flip .swiper-slide-shadow-left,.swiper-flip .swiper-slide-shadow-right,.swiper-flip .swiper-slide-shadow-top{z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-creative swiper-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards swiper-slide{transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}`;
|
|
39670
|
-
|
|
39671
|
-
const addGlobalStyles = (preInit, swiper) => {
|
|
39672
|
-
|
|
39673
|
-
const shouldOverwrite = globalStyles && globalStyles.preInit && !preInit;
|
|
39674
|
-
if (!preInit && swiper) {
|
|
39675
|
-
swiper.cssLinks().forEach(url => {
|
|
39676
|
-
const linkEl = document.createElement('link');
|
|
39677
|
-
linkEl.rel = 'stylesheet';
|
|
39678
|
-
linkEl.href = url;
|
|
39679
|
-
document.head.prepend(linkEl);
|
|
39680
|
-
});
|
|
39681
|
-
}
|
|
39682
|
-
if (!globalStyles || shouldOverwrite) {
|
|
39683
|
-
globalStyles = globalStyles || document.createElement('style');
|
|
39684
|
-
globalStyles.textContent = [SwiperFontCSS, swiper ? swiper.cssStyles() : ''].join('\n'); // eslint-disable-line
|
|
39685
|
-
globalStyles.id = 'swiper-element-styles';
|
|
39686
|
-
globalStyles.preInit = preInit;
|
|
39687
|
-
document.head.prepend(globalStyles);
|
|
39688
|
-
}
|
|
39689
|
-
};
|
|
39855
|
+
|
|
39856
|
+
/* eslint-disable spaced-comment */
|
|
39857
|
+
|
|
39858
|
+
const SwiperCSS = `:host{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{width:100%;height:100%;margin-left:auto;margin-right:auto;position:relative;overflow:hidden;overflow:clip;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android ::slotted(swiper-slide),.swiper-ios ::slotted(swiper-slide),.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}::slotted(swiper-slide){flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}::slotted(.swiper-slide-invisible-blank){visibility:hidden}.swiper-autoheight,.swiper-autoheight ::slotted(swiper-slide){height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden ::slotted(swiper-slide){transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d ::slotted(swiper-slide){transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode ::slotted(swiper-slide){scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode ::slotted(swiper-slide){scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered ::slotted(swiper-slide){scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal ::slotted(swiper-slide):first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical ::slotted(swiper-slide):first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-centered-offset-after)}.swiper-virtual ::slotted(swiper-slide){-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode .swiper-wrapper::after{content:'';position:absolute;left:0;top:0;pointer-events:none}.swiper-virtual.swiper-css-mode.swiper-horizontal .swiper-wrapper::after{height:1px;width:var(--swiper-virtual-size)}.swiper-virtual.swiper-css-mode.swiper-vertical .swiper-wrapper::after{width:1px;height:var(--swiper-virtual-size)}:host{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{position:absolute;top:var(--swiper-navigation-top-offset,50%);width:calc(var(--swiper-navigation-size)/ 44 * 27);height:var(--swiper-navigation-size);margin-top:calc(0px - (var(--swiper-navigation-size)/ 2));z-index:10;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--swiper-navigation-color,var(--swiper-theme-color))}.swiper-button-next.swiper-button-disabled,.swiper-button-prev.swiper-button-disabled{opacity:.35;cursor:auto;pointer-events:none}.swiper-button-next.swiper-button-hidden,.swiper-button-prev.swiper-button-hidden{opacity:0;cursor:auto;pointer-events:none}.swiper-navigation-disabled .swiper-button-next,.swiper-navigation-disabled .swiper-button-prev{display:none!important}.swiper-button-next svg,.swiper-button-prev svg{width:100%;height:100%;object-fit:contain;transform-origin:center}.swiper-rtl .swiper-button-next svg,.swiper-rtl .swiper-button-prev svg{transform:rotate(180deg)}.swiper-button-prev,.swiper-rtl .swiper-button-next{left:var(--swiper-navigation-sides-offset,10px);right:auto}.swiper-button-next,.swiper-rtl .swiper-button-prev{right:var(--swiper-navigation-sides-offset,10px);left:auto}.swiper-button-lock{display:none}.swiper-pagination{position:absolute;text-align:center;transition:.3s opacity;transform:translate3d(0,0,0);z-index:10}.swiper-pagination.swiper-pagination-hidden{opacity:0}.swiper-pagination-disabled>.swiper-pagination,.swiper-pagination.swiper-pagination-disabled{display:none!important}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);top:var(--swiper-pagination-top,auto);left:0;width:100%}.swiper-pagination-bullets-dynamic{overflow:hidden;font-size:0}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transform:scale(.33);position:relative}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-main{transform:scale(1)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next{transform:scale(.66)}.swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next-next{transform:scale(.33)}.swiper-pagination-bullet{width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));display:inline-block;border-radius:var(--swiper-pagination-bullet-border-radius,50%);background:var(--swiper-pagination-bullet-inactive-color,#000);opacity:var(--swiper-pagination-bullet-inactive-opacity, .2)}button.swiper-pagination-bullet{border:none;margin:0;padding:0;box-shadow:none;-webkit-appearance:none;appearance:none}.swiper-pagination-clickable .swiper-pagination-bullet{cursor:pointer}.swiper-pagination-bullet:only-child{display:none!important}.swiper-pagination-bullet-active{opacity:var(--swiper-pagination-bullet-opacity, 1);background:var(--swiper-pagination-color,var(--swiper-theme-color))}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{right:var(--swiper-pagination-right,8px);left:var(--swiper-pagination-left,auto);top:50%;transform:translate3d(0px,-50%,0)}.swiper-pagination-vertical.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px) 0;display:block}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{top:50%;transform:translateY(-50%);width:8px}.swiper-pagination-vertical.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-vertical>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{display:inline-block;transition:.2s transform,.2s top}.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic{left:50%;transform:translateX(-50%);white-space:nowrap}.swiper-horizontal>.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet,.swiper-pagination-horizontal.swiper-pagination-bullets.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s left}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:.2s transform,.2s right}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,rgba(0,0,0,.25));position:absolute}.swiper-pagination-progressbar .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));position:absolute;left:0;top:0;width:100%;height:100%;transform:scale(0);transform-origin:left top}.swiper-rtl .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{transform-origin:right top}.swiper-horizontal>.swiper-pagination-progressbar,.swiper-pagination-progressbar.swiper-pagination-horizontal,.swiper-pagination-progressbar.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-vertical>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite{width:100%;height:var(--swiper-pagination-progressbar-size,4px);left:0;top:0}.swiper-horizontal>.swiper-pagination-progressbar.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,.swiper-pagination-progressbar.swiper-pagination-vertical,.swiper-vertical>.swiper-pagination-progressbar{width:var(--swiper-pagination-progressbar-size,4px);height:100%;left:0;top:0}.swiper-pagination-lock{display:none}.swiper-scrollbar{border-radius:var(--swiper-scrollbar-border-radius,10px);position:relative;-ms-touch-action:none;background:var(--swiper-scrollbar-bg-color,rgba(0,0,0,.1))}.swiper-scrollbar-disabled>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-disabled{display:none!important}.swiper-horizontal>.swiper-scrollbar,.swiper-scrollbar.swiper-scrollbar-horizontal{position:absolute;left:var(--swiper-scrollbar-sides-offset,1%);bottom:var(--swiper-scrollbar-bottom,4px);top:var(--swiper-scrollbar-top,auto);z-index:50;height:var(--swiper-scrollbar-size,4px);width:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar.swiper-scrollbar-vertical,.swiper-vertical>.swiper-scrollbar{position:absolute;left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);z-index:50;width:var(--swiper-scrollbar-size,4px);height:calc(100% - 2 * var(--swiper-scrollbar-sides-offset,1%))}.swiper-scrollbar-drag{height:100%;width:100%;position:relative;background:var(--swiper-scrollbar-drag-bg-color,rgba(0,0,0,.5));border-radius:var(--swiper-scrollbar-border-radius,10px);left:0;top:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.swiper-zoom-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center;text-align:center}.swiper-zoom-container>canvas,.swiper-zoom-container>img,.swiper-zoom-container>svg{max-width:100%;max-height:100%;object-fit:contain}::slotted(.swiper-slide-zoomed){cursor:move;touch-action:none}.swiper .swiper-notification{position:absolute;left:0;top:0;pointer-events:none;opacity:0;z-index:-1000}.swiper-free-mode>.swiper-wrapper{transition-timing-function:ease-out;margin:0 auto}.swiper-grid>.swiper-wrapper{flex-wrap:wrap}.swiper-grid-column>.swiper-wrapper{flex-wrap:wrap;flex-direction:column}.swiper-fade.swiper-free-mode ::slotted(swiper-slide){transition-timing-function:ease-out}.swiper-fade ::slotted(swiper-slide){pointer-events:none;transition-property:opacity}.swiper-fade ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-fade ::slotted(.swiper-slide-active),.swiper-fade ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube{overflow:visible}.swiper-cube ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1;visibility:hidden;transform-origin:0 0;width:100%;height:100%}.swiper-cube ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-cube.swiper-rtl ::slotted(swiper-slide){transform-origin:100% 0}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-cube ::slotted(.swiper-slide-active),.swiper-cube ::slotted(.swiper-slide-next),.swiper-cube ::slotted(.swiper-slide-prev){pointer-events:auto;visibility:visible}.swiper-cube .swiper-cube-shadow{position:absolute;left:0;bottom:0px;width:100%;height:100%;opacity:.6;z-index:0}.swiper-cube .swiper-cube-shadow:before{content:'';background:#000;position:absolute;left:0;top:0;bottom:0;right:0;filter:blur(50px)}.swiper-cube ::slotted(.swiper-slide-next)+::slotted(swiper-slide){pointer-events:auto;visibility:visible}.swiper-flip{overflow:visible}.swiper-flip ::slotted(swiper-slide){pointer-events:none;-webkit-backface-visibility:hidden;backface-visibility:hidden;z-index:1}.swiper-flip ::slotted(swiper-slide) ::slotted(swiper-slide){pointer-events:none}.swiper-flip ::slotted(.swiper-slide-active),.swiper-flip ::slotted(.swiper-slide-active) ::slotted(.swiper-slide-active){pointer-events:auto}.swiper-creative ::slotted(swiper-slide){-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden;transition-property:transform,opacity,height}.swiper-cards{overflow:visible}.swiper-cards ::slotted(swiper-slide){transform-origin:center bottom;-webkit-backface-visibility:hidden;backface-visibility:hidden;overflow:hidden}`;
|
|
39859
|
+
const SwiperSlideCSS = `::slotted(.swiper-slide-shadow),::slotted(.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-top){position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;z-index:10}::slotted(.swiper-slide-shadow){background:rgba(0,0,0,.15)}::slotted(.swiper-slide-shadow-left){background-image:linear-gradient(to left,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-right){background-image:linear-gradient(to right,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-top){background-image:linear-gradient(to top,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-slide-shadow-bottom){background-image:linear-gradient(to bottom,rgba(0,0,0,.5),rgba(0,0,0,0))}::slotted(.swiper-lazy-preloader){animation:swiper-preloader-spin 1s infinite linear;width:42px;height:42px;position:absolute;left:50%;top:50%;margin-left:-21px;margin-top:-21px;z-index:10;transform-origin:50%;box-sizing:border-box;border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));border-radius:50%;border-top-color:transparent}@keyframes swiper-preloader-spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-cube.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-bottom),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-left),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-right),::slotted(.swiper-slide-shadow-flip.swiper-slide-shadow-top){z-index:0;-webkit-backface-visibility:hidden;backface-visibility:hidden}`;
|
|
39690
39860
|
class DummyHTMLElement {}
|
|
39691
39861
|
const ClassToExtend = typeof window === 'undefined' || typeof HTMLElement === 'undefined' ? DummyHTMLElement : HTMLElement;
|
|
39862
|
+
const arrowSvg = `<svg width="11" height="20" viewBox="0 0 11 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.38296 20.0762C0.111788 19.805 0.111788 19.3654 0.38296 19.0942L9.19758 10.2796L0.38296 1.46497C0.111788 1.19379 0.111788 0.754138 0.38296 0.482966C0.654131 0.211794 1.09379 0.211794 1.36496 0.482966L10.4341 9.55214C10.8359 9.9539 10.8359 10.6053 10.4341 11.007L1.36496 20.0762C1.09379 20.3474 0.654131 20.3474 0.38296 20.0762Z" fill="currentColor"/></svg>
|
|
39863
|
+
`;
|
|
39864
|
+
const addStyle = (shadowRoot, styles) => {
|
|
39865
|
+
if (typeof CSSStyleSheet !== 'undefined' && !shadowRoot.adoptedStyleSheets) {
|
|
39866
|
+
const styleSheet = new CSSStyleSheet();
|
|
39867
|
+
styleSheet.replaceSync(styles);
|
|
39868
|
+
shadowRoot.adoptedStyleSheets = [styleSheet];
|
|
39869
|
+
} else {
|
|
39870
|
+
const style = document.createElement('style');
|
|
39871
|
+
style.rel = 'stylesheet';
|
|
39872
|
+
style.textContent = styles;
|
|
39873
|
+
shadowRoot.appendChild(style);
|
|
39874
|
+
}
|
|
39875
|
+
};
|
|
39692
39876
|
class SwiperContainer extends ClassToExtend {
|
|
39693
39877
|
constructor() {
|
|
39694
39878
|
super();
|
|
39695
|
-
this.
|
|
39696
|
-
this.shadowEl = this.attachShadow({
|
|
39879
|
+
this.attachShadow({
|
|
39697
39880
|
mode: 'open'
|
|
39698
39881
|
});
|
|
39699
39882
|
}
|
|
39883
|
+
static get nextButtonSvg() {
|
|
39884
|
+
return arrowSvg;
|
|
39885
|
+
}
|
|
39886
|
+
static get prevButtonSvg() {
|
|
39887
|
+
return arrowSvg.replace('/></svg>', ' transform-origin="center" transform="rotate(180)"/></svg>');
|
|
39888
|
+
}
|
|
39700
39889
|
cssStyles() {
|
|
39701
|
-
return [
|
|
39890
|
+
return [SwiperCSS,
|
|
39702
39891
|
// eslint-disable-line
|
|
39703
39892
|
...(this.injectStyles && Array.isArray(this.injectStyles) ? this.injectStyles : [])].join('\n');
|
|
39704
39893
|
}
|
|
@@ -39706,47 +39895,45 @@
|
|
|
39706
39895
|
return this.injectStylesUrls || [];
|
|
39707
39896
|
}
|
|
39708
39897
|
render() {
|
|
39709
|
-
if (
|
|
39710
|
-
// global styles
|
|
39711
|
-
addGlobalStyles(false, this);
|
|
39712
|
-
}
|
|
39898
|
+
if (this.rendered) return;
|
|
39713
39899
|
|
|
39714
39900
|
// local styles
|
|
39715
39901
|
const localStyles = this.cssStyles();
|
|
39716
39902
|
if (localStyles.length) {
|
|
39717
|
-
this.
|
|
39718
|
-
this.stylesEl.textContent = localStyles;
|
|
39719
|
-
this.shadowEl.appendChild(this.stylesEl);
|
|
39903
|
+
addStyle(this.shadowRoot, localStyles);
|
|
39720
39904
|
}
|
|
39721
39905
|
this.cssLinks().forEach(url => {
|
|
39722
|
-
const linkExists =
|
|
39906
|
+
const linkExists = this.shadowRoot.querySelector(`link[href="${url}"]`);
|
|
39723
39907
|
if (linkExists) return;
|
|
39724
39908
|
const linkEl = document.createElement('link');
|
|
39725
39909
|
linkEl.rel = 'stylesheet';
|
|
39726
39910
|
linkEl.href = url;
|
|
39727
|
-
this.
|
|
39911
|
+
this.shadowRoot.appendChild(linkEl);
|
|
39728
39912
|
});
|
|
39729
39913
|
// prettier-ignore
|
|
39730
|
-
|
|
39914
|
+
const el = document.createElement('div');
|
|
39915
|
+
el.classList.add('swiper');
|
|
39916
|
+
el.part = 'container';
|
|
39917
|
+
// prettier-ignore
|
|
39918
|
+
el.innerHTML = `
|
|
39731
39919
|
<slot name="container-start"></slot>
|
|
39732
|
-
<div class="swiper-wrapper">
|
|
39920
|
+
<div class="swiper-wrapper" part="wrapper">
|
|
39733
39921
|
<slot></slot>
|
|
39734
39922
|
</div>
|
|
39735
39923
|
<slot name="container-end"></slot>
|
|
39736
39924
|
${needsNavigation(this.passedParams) ? `
|
|
39737
|
-
<div class="swiper-button-prev"
|
|
39738
|
-
<div class="swiper-button-next"
|
|
39925
|
+
<div part="button-prev" class="swiper-button-prev">${this.constructor.prevButtonSvg}</div>
|
|
39926
|
+
<div part="button-next" class="swiper-button-next">${this.constructor.nextButtonSvg}</div>
|
|
39739
39927
|
` : ''}
|
|
39740
39928
|
${needsPagination(this.passedParams) ? `
|
|
39741
|
-
<div class="swiper-pagination"></div>
|
|
39929
|
+
<div part="pagination" class="swiper-pagination"></div>
|
|
39742
39930
|
` : ''}
|
|
39743
39931
|
${needsScrollbar(this.passedParams) ? `
|
|
39744
|
-
<div class="swiper-scrollbar"></div>
|
|
39932
|
+
<div part="scrollbar" class="swiper-scrollbar"></div>
|
|
39745
39933
|
` : ''}
|
|
39746
39934
|
`;
|
|
39747
|
-
|
|
39748
|
-
|
|
39749
|
-
});
|
|
39935
|
+
this.shadowRoot.appendChild(el);
|
|
39936
|
+
this.rendered = true;
|
|
39750
39937
|
}
|
|
39751
39938
|
initialize() {
|
|
39752
39939
|
var _this = this;
|
|
@@ -39761,7 +39948,7 @@
|
|
|
39761
39948
|
delete this.swiperParams.init;
|
|
39762
39949
|
this.render();
|
|
39763
39950
|
// eslint-disable-next-line
|
|
39764
|
-
this.swiper = new Swiper$1(this, {
|
|
39951
|
+
this.swiper = new Swiper$1(this.shadowRoot.querySelector('.swiper'), {
|
|
39765
39952
|
...swiperParams,
|
|
39766
39953
|
touchEventsTarget: 'container',
|
|
39767
39954
|
...(swiperParams.virtual ? {} : {
|
|
@@ -39782,23 +39969,28 @@
|
|
|
39782
39969
|
});
|
|
39783
39970
|
}
|
|
39784
39971
|
connectedCallback() {
|
|
39972
|
+
if (this.initialized && this.nested && this.closest('swiper-slide') && this.closest('swiper-slide').swiperLoopMoveDOM) {
|
|
39973
|
+
return;
|
|
39974
|
+
}
|
|
39785
39975
|
if (this.init === false || this.getAttribute('init') === 'false') {
|
|
39786
|
-
addGlobalStyles(true, this);
|
|
39787
39976
|
return;
|
|
39788
39977
|
}
|
|
39789
39978
|
this.initialize();
|
|
39790
39979
|
}
|
|
39791
39980
|
disconnectedCallback() {
|
|
39981
|
+
if (this.nested && this.closest('swiper-slide') && this.closest('swiper-slide').swiperLoopMoveDOM) {
|
|
39982
|
+
return;
|
|
39983
|
+
}
|
|
39792
39984
|
if (this.swiper && this.swiper.destroy) {
|
|
39793
39985
|
this.swiper.destroy();
|
|
39794
39986
|
}
|
|
39795
39987
|
this.initialized = false;
|
|
39796
39988
|
}
|
|
39797
|
-
updateSwiperOnPropChange(propName) {
|
|
39989
|
+
updateSwiperOnPropChange(propName, propValue) {
|
|
39798
39990
|
const {
|
|
39799
39991
|
params: swiperParams,
|
|
39800
39992
|
passedParams
|
|
39801
|
-
} = getParams(this);
|
|
39993
|
+
} = getParams(this, propName, propValue);
|
|
39802
39994
|
this.passedParams = passedParams;
|
|
39803
39995
|
this.swiperParams = swiperParams;
|
|
39804
39996
|
updateSwiper({
|
|
@@ -39819,6 +40011,9 @@
|
|
|
39819
40011
|
}
|
|
39820
40012
|
attributeChangedCallback(attr, prevValue, newValue) {
|
|
39821
40013
|
if (!this.initialized) return;
|
|
40014
|
+
if (prevValue === 'true' && newValue === null) {
|
|
40015
|
+
newValue = false;
|
|
40016
|
+
}
|
|
39822
40017
|
this.updateSwiperOnPropChange(attr, newValue);
|
|
39823
40018
|
}
|
|
39824
40019
|
static get observedAttributes() {
|
|
@@ -39830,6 +40025,7 @@
|
|
|
39830
40025
|
if (paramName === 'init') return;
|
|
39831
40026
|
paramName = paramName.replace('_', '');
|
|
39832
40027
|
Object.defineProperty(SwiperContainer.prototype, paramName, {
|
|
40028
|
+
configurable: true,
|
|
39833
40029
|
get() {
|
|
39834
40030
|
return (this.passedParams || {})[paramName];
|
|
39835
40031
|
},
|
|
@@ -39837,24 +40033,21 @@
|
|
|
39837
40033
|
if (!this.passedParams) this.passedParams = {};
|
|
39838
40034
|
this.passedParams[paramName] = value;
|
|
39839
40035
|
if (!this.initialized) return;
|
|
39840
|
-
this.updateSwiperOnPropChange(paramName
|
|
40036
|
+
this.updateSwiperOnPropChange(paramName);
|
|
39841
40037
|
}
|
|
39842
40038
|
});
|
|
39843
40039
|
});
|
|
39844
40040
|
class SwiperSlide extends ClassToExtend {
|
|
39845
40041
|
constructor() {
|
|
39846
40042
|
super();
|
|
39847
|
-
this.
|
|
39848
|
-
this.shadowEl = this.attachShadow({
|
|
40043
|
+
this.attachShadow({
|
|
39849
40044
|
mode: 'open'
|
|
39850
40045
|
});
|
|
39851
40046
|
}
|
|
39852
40047
|
render() {
|
|
39853
40048
|
const lazy = this.lazy || this.getAttribute('lazy') === '' || this.getAttribute('lazy') === 'true';
|
|
39854
|
-
this.
|
|
39855
|
-
|
|
39856
|
-
this.shadowEl.appendChild(el);
|
|
39857
|
-
});
|
|
40049
|
+
addStyle(this.shadowRoot, SwiperSlideCSS);
|
|
40050
|
+
this.shadowRoot.appendChild(document.createElement('slot'));
|
|
39858
40051
|
if (lazy) {
|
|
39859
40052
|
const lazyDiv = document.createElement('div');
|
|
39860
40053
|
lazyDiv.classList.add('swiper-lazy-preloader');
|
|
@@ -39870,17 +40063,8 @@
|
|
|
39870
40063
|
}
|
|
39871
40064
|
|
|
39872
40065
|
// eslint-disable-next-line
|
|
39873
|
-
const register =
|
|
39874
|
-
if (injectStyles === void 0) {
|
|
39875
|
-
injectStyles = true;
|
|
39876
|
-
}
|
|
40066
|
+
const register = () => {
|
|
39877
40067
|
if (typeof window === 'undefined') return;
|
|
39878
|
-
if (!injectStyles) {
|
|
39879
|
-
globalInjectStyles = false;
|
|
39880
|
-
}
|
|
39881
|
-
if (globalInjectStyles) {
|
|
39882
|
-
addGlobalStyles(true);
|
|
39883
|
-
}
|
|
39884
40068
|
if (!window.customElements.get('swiper-container')) window.customElements.define('swiper-container', SwiperContainer);
|
|
39885
40069
|
if (!window.customElements.get('swiper-slide')) window.customElements.define('swiper-slide', SwiperSlide);
|
|
39886
40070
|
};
|
|
@@ -40042,14 +40226,14 @@
|
|
|
40042
40226
|
super(params, [app]);
|
|
40043
40227
|
const pb = this;
|
|
40044
40228
|
pb.app = app;
|
|
40045
|
-
const defaults = extend$
|
|
40229
|
+
const defaults = extend$3({
|
|
40046
40230
|
on: {}
|
|
40047
40231
|
}, app.params.photoBrowser);
|
|
40048
40232
|
|
|
40049
40233
|
// Extend defaults with modules params
|
|
40050
40234
|
pb.useModulesParams(defaults);
|
|
40051
|
-
pb.params = extend$
|
|
40052
|
-
extend$
|
|
40235
|
+
pb.params = extend$3(defaults, params);
|
|
40236
|
+
extend$3(pb, {
|
|
40053
40237
|
exposed: false,
|
|
40054
40238
|
opened: false,
|
|
40055
40239
|
activeIndex: pb.params.swiper.initialSlide,
|
|
@@ -40393,7 +40577,7 @@
|
|
|
40393
40577
|
let preventThumbsSlide;
|
|
40394
40578
|
let preventMainSlide;
|
|
40395
40579
|
const initialSlide = pb.activeIndex;
|
|
40396
|
-
const swiperParams = extend$
|
|
40580
|
+
const swiperParams = extend$3({}, pb.params.swiper, {
|
|
40397
40581
|
initialSlide,
|
|
40398
40582
|
// cssMode:
|
|
40399
40583
|
// typeof pb.params.swiper.cssMode === 'undefined' && (app.device.ios || app.device.android)
|
|
@@ -40459,7 +40643,7 @@
|
|
|
40459
40643
|
}
|
|
40460
40644
|
});
|
|
40461
40645
|
if (pb.params.swipeToClose && pb.params.type !== 'page') {
|
|
40462
|
-
extend$
|
|
40646
|
+
extend$3(swiperParams.on, {
|
|
40463
40647
|
touchStart(swiper, e) {
|
|
40464
40648
|
pb.onTouchStart(e);
|
|
40465
40649
|
pb.emit('local::touchStart', e);
|
|
@@ -40475,7 +40659,7 @@
|
|
|
40475
40659
|
});
|
|
40476
40660
|
}
|
|
40477
40661
|
if (pb.params.virtualSlides) {
|
|
40478
|
-
extend$
|
|
40662
|
+
extend$3(swiperParams, {
|
|
40479
40663
|
virtual: {
|
|
40480
40664
|
slides: pb.params.photos,
|
|
40481
40665
|
renderSlide(photo, index) {
|
|
@@ -40490,7 +40674,7 @@
|
|
|
40490
40674
|
}
|
|
40491
40675
|
});
|
|
40492
40676
|
}
|
|
40493
|
-
const window = getWindow();
|
|
40677
|
+
const window = getWindow$1();
|
|
40494
40678
|
pb.swiper = app.swiper ? app.swiper.create(pb.$swiperContainerEl[0], swiperParams) : new window.Swiper(pb.$swiperContainerEl[0], swiperParams);
|
|
40495
40679
|
if (pb.activeIndex === 0 || pb.params.virtualSlides) {
|
|
40496
40680
|
pb.onSlideChange(pb.swiper);
|
|
@@ -40835,7 +41019,7 @@
|
|
|
40835
41019
|
|
|
40836
41020
|
let Notification$1 = class Notification extends Modal$1 {
|
|
40837
41021
|
constructor(app, params) {
|
|
40838
|
-
const extendedParams = extend$
|
|
41022
|
+
const extendedParams = extend$3({
|
|
40839
41023
|
on: {}
|
|
40840
41024
|
}, app.params.notification, params);
|
|
40841
41025
|
|
|
@@ -40877,7 +41061,7 @@
|
|
|
40877
41061
|
if ($el.length === 0) {
|
|
40878
41062
|
return notification.destroy();
|
|
40879
41063
|
}
|
|
40880
|
-
extend$
|
|
41064
|
+
extend$3(notification, {
|
|
40881
41065
|
$el,
|
|
40882
41066
|
el: $el[0],
|
|
40883
41067
|
type: 'notification'
|
|
@@ -41047,7 +41231,7 @@
|
|
|
41047
41231
|
},
|
|
41048
41232
|
create() {
|
|
41049
41233
|
const app = this;
|
|
41050
|
-
app.notification = extend$
|
|
41234
|
+
app.notification = extend$3({}, ModalMethods({
|
|
41051
41235
|
app,
|
|
41052
41236
|
constructor: Notification$1,
|
|
41053
41237
|
defaultSelector: '.notification.modal-in'
|
|
@@ -41081,13 +41265,13 @@
|
|
|
41081
41265
|
const ac = this;
|
|
41082
41266
|
ac.app = app;
|
|
41083
41267
|
const device = getDevice$1();
|
|
41084
|
-
const defaults = extend$
|
|
41268
|
+
const defaults = extend$3({
|
|
41085
41269
|
on: {}
|
|
41086
41270
|
}, app.params.autocomplete);
|
|
41087
41271
|
|
|
41088
41272
|
// Extend defaults with modules params
|
|
41089
41273
|
ac.useModulesParams(defaults);
|
|
41090
|
-
ac.params = extend$
|
|
41274
|
+
ac.params = extend$3(defaults, params);
|
|
41091
41275
|
let $openerEl;
|
|
41092
41276
|
if (ac.params.openerEl) {
|
|
41093
41277
|
$openerEl = $(ac.params.openerEl);
|
|
@@ -41107,7 +41291,7 @@
|
|
|
41107
41291
|
}
|
|
41108
41292
|
if (!url || url === '#' || url === '') url = ac.params.url;
|
|
41109
41293
|
const inputType = ac.params.multiple ? 'checkbox' : 'radio';
|
|
41110
|
-
extend$
|
|
41294
|
+
extend$3(ac, {
|
|
41111
41295
|
$openerEl,
|
|
41112
41296
|
openerEl: $openerEl && $openerEl[0],
|
|
41113
41297
|
$inputEl,
|
|
@@ -41937,7 +42121,7 @@
|
|
|
41937
42121
|
},
|
|
41938
42122
|
create() {
|
|
41939
42123
|
const app = this;
|
|
41940
|
-
app.autocomplete = extend$
|
|
42124
|
+
app.autocomplete = extend$3(ConstructorMethods({
|
|
41941
42125
|
defaultSelector: undefined,
|
|
41942
42126
|
constructor: Autocomplete$1,
|
|
41943
42127
|
app,
|
|
@@ -41965,12 +42149,12 @@
|
|
|
41965
42149
|
super(params, [app]);
|
|
41966
42150
|
const tooltip = this;
|
|
41967
42151
|
const support = getSupport$1();
|
|
41968
|
-
const defaults = extend$
|
|
41969
|
-
const document = getDocument();
|
|
42152
|
+
const defaults = extend$3({}, app.params.tooltip);
|
|
42153
|
+
const document = getDocument$1();
|
|
41970
42154
|
|
|
41971
42155
|
// Extend defaults with modules params
|
|
41972
42156
|
tooltip.useModulesParams(defaults);
|
|
41973
|
-
tooltip.params = extend$
|
|
42157
|
+
tooltip.params = extend$3(defaults, params);
|
|
41974
42158
|
if (typeof params.offset === 'undefined' && support.touch && tooltip.params.trigger === 'hover') {
|
|
41975
42159
|
tooltip.params.offset = 10;
|
|
41976
42160
|
}
|
|
@@ -41987,7 +42171,7 @@
|
|
|
41987
42171
|
$containerEl = app.$el;
|
|
41988
42172
|
}
|
|
41989
42173
|
const $el = $(tooltip.render()).eq(0);
|
|
41990
|
-
extend$
|
|
42174
|
+
extend$3(tooltip, {
|
|
41991
42175
|
app,
|
|
41992
42176
|
$targetEl,
|
|
41993
42177
|
targetEl: $targetEl && $targetEl[0],
|
|
@@ -42423,11 +42607,11 @@
|
|
|
42423
42607
|
}
|
|
42424
42608
|
super(params, [app]);
|
|
42425
42609
|
const self = this;
|
|
42426
|
-
const defaults = extend$
|
|
42610
|
+
const defaults = extend$3({}, app.params.gauge);
|
|
42427
42611
|
|
|
42428
42612
|
// Extend defaults with modules params
|
|
42429
42613
|
self.useModulesParams(defaults);
|
|
42430
|
-
self.params = extend$
|
|
42614
|
+
self.params = extend$3(defaults, params);
|
|
42431
42615
|
const {
|
|
42432
42616
|
el
|
|
42433
42617
|
} = self.params;
|
|
@@ -42435,7 +42619,7 @@
|
|
|
42435
42619
|
const $el = $(el);
|
|
42436
42620
|
if ($el.length === 0) return self;
|
|
42437
42621
|
if ($el[0].f7Gauge) return $el[0].f7Gauge;
|
|
42438
|
-
extend$
|
|
42622
|
+
extend$3(self, {
|
|
42439
42623
|
app,
|
|
42440
42624
|
$el,
|
|
42441
42625
|
el: $el && $el[0]
|
|
@@ -42549,7 +42733,7 @@
|
|
|
42549
42733
|
newParams = {};
|
|
42550
42734
|
}
|
|
42551
42735
|
const self = this;
|
|
42552
|
-
const document = getDocument();
|
|
42736
|
+
const document = getDocument$1();
|
|
42553
42737
|
const {
|
|
42554
42738
|
params,
|
|
42555
42739
|
$svgEl
|
|
@@ -42688,7 +42872,7 @@
|
|
|
42688
42872
|
const self = this;
|
|
42689
42873
|
const $svgEl = $(self.render()).eq(0);
|
|
42690
42874
|
$svgEl.f7Gauge = self;
|
|
42691
|
-
extend$
|
|
42875
|
+
extend$3(self, {
|
|
42692
42876
|
$svgEl,
|
|
42693
42877
|
svgEl: $svgEl && $svgEl[0]
|
|
42694
42878
|
});
|
|
@@ -42753,7 +42937,7 @@
|
|
|
42753
42937
|
tabMounted(tabEl) {
|
|
42754
42938
|
const app = this;
|
|
42755
42939
|
$(tabEl).find('.gauge-init').each(el => {
|
|
42756
|
-
app.gauge.create(extend$
|
|
42940
|
+
app.gauge.create(extend$3({
|
|
42757
42941
|
el
|
|
42758
42942
|
}, $(el).dataset() || {}));
|
|
42759
42943
|
});
|
|
@@ -42766,7 +42950,7 @@
|
|
|
42766
42950
|
pageInit(page) {
|
|
42767
42951
|
const app = this;
|
|
42768
42952
|
page.$el.find('.gauge-init').each(el => {
|
|
42769
|
-
app.gauge.create(extend$
|
|
42953
|
+
app.gauge.create(extend$3({
|
|
42770
42954
|
el
|
|
42771
42955
|
}, $(el).dataset() || {}));
|
|
42772
42956
|
});
|
|
@@ -42782,7 +42966,7 @@
|
|
|
42782
42966
|
insert(vnode) {
|
|
42783
42967
|
const app = this;
|
|
42784
42968
|
const el = vnode.elm;
|
|
42785
|
-
app.gauge.create(extend$
|
|
42969
|
+
app.gauge.create(extend$3({
|
|
42786
42970
|
el
|
|
42787
42971
|
}, $(el).dataset() || {}));
|
|
42788
42972
|
},
|
|
@@ -44171,7 +44355,7 @@
|
|
|
44171
44355
|
}
|
|
44172
44356
|
super(params, [app]);
|
|
44173
44357
|
const self = this;
|
|
44174
|
-
self.params = extend$
|
|
44358
|
+
self.params = extend$3({}, app.params.colorPicker, params);
|
|
44175
44359
|
let $containerEl;
|
|
44176
44360
|
if (self.params.containerEl) {
|
|
44177
44361
|
$containerEl = $(self.params.containerEl);
|
|
@@ -44185,7 +44369,7 @@
|
|
|
44185
44369
|
if (self.params.targetEl) {
|
|
44186
44370
|
$targetEl = $(self.params.targetEl);
|
|
44187
44371
|
}
|
|
44188
|
-
extend$
|
|
44372
|
+
extend$3(self, {
|
|
44189
44373
|
app,
|
|
44190
44374
|
$containerEl,
|
|
44191
44375
|
containerEl: $containerEl && $containerEl[0],
|
|
@@ -44242,7 +44426,7 @@
|
|
|
44242
44426
|
}
|
|
44243
44427
|
|
|
44244
44428
|
// Events
|
|
44245
|
-
extend$
|
|
44429
|
+
extend$3(self, {
|
|
44246
44430
|
attachInputEvents() {
|
|
44247
44431
|
self.$inputEl.on('click', onInputClick);
|
|
44248
44432
|
if (self.params.inputReadOnly) {
|
|
@@ -44488,7 +44672,7 @@
|
|
|
44488
44672
|
rgba,
|
|
44489
44673
|
hsla
|
|
44490
44674
|
};
|
|
44491
|
-
if (!self.initialValue) self.initialValue = extend$
|
|
44675
|
+
if (!self.initialValue) self.initialValue = extend$3({}, self.value);
|
|
44492
44676
|
self.updateValue(needChangeEvent);
|
|
44493
44677
|
if (self.opened && updateModules) {
|
|
44494
44678
|
self.updateModules();
|
|
@@ -44741,7 +44925,7 @@
|
|
|
44741
44925
|
}, false);
|
|
44742
44926
|
}
|
|
44743
44927
|
} else if (value) {
|
|
44744
|
-
self.initialValue = extend$
|
|
44928
|
+
self.initialValue = extend$3({}, value);
|
|
44745
44929
|
self.setValue(value, false);
|
|
44746
44930
|
}
|
|
44747
44931
|
|
|
@@ -45205,13 +45389,13 @@
|
|
|
45205
45389
|
constructor(app, params) {
|
|
45206
45390
|
super(params, [app]);
|
|
45207
45391
|
const self = this;
|
|
45208
|
-
const document = getDocument();
|
|
45392
|
+
const document = getDocument$1();
|
|
45209
45393
|
const device = getDevice$1();
|
|
45210
|
-
const defaults = extend$
|
|
45394
|
+
const defaults = extend$3({}, app.params.textEditor);
|
|
45211
45395
|
|
|
45212
45396
|
// Extend defaults with modules params
|
|
45213
45397
|
self.useModulesParams(defaults);
|
|
45214
|
-
self.params = extend$
|
|
45398
|
+
self.params = extend$3(defaults, params);
|
|
45215
45399
|
const el = self.params.el;
|
|
45216
45400
|
if (!el) return self;
|
|
45217
45401
|
const $el = $(el);
|
|
@@ -45222,7 +45406,7 @@
|
|
|
45222
45406
|
$el.append('<div class="text-editor-content" contenteditable></div>');
|
|
45223
45407
|
$contentEl = $el.children('.text-editor-content');
|
|
45224
45408
|
}
|
|
45225
|
-
extend$
|
|
45409
|
+
extend$3(self, {
|
|
45226
45410
|
app,
|
|
45227
45411
|
$el,
|
|
45228
45412
|
el: $el[0],
|
|
@@ -45322,8 +45506,8 @@
|
|
|
45322
45506
|
}
|
|
45323
45507
|
createLink() {
|
|
45324
45508
|
const self = this;
|
|
45325
|
-
const window = getWindow();
|
|
45326
|
-
const document = getDocument();
|
|
45509
|
+
const window = getWindow$1();
|
|
45510
|
+
const document = getDocument$1();
|
|
45327
45511
|
const currentSelection = window.getSelection();
|
|
45328
45512
|
const selectedNodes = [];
|
|
45329
45513
|
let $selectedLinks;
|
|
@@ -45381,7 +45565,7 @@
|
|
|
45381
45565
|
}
|
|
45382
45566
|
insertImage() {
|
|
45383
45567
|
const self = this;
|
|
45384
|
-
const document = getDocument();
|
|
45568
|
+
const document = getDocument$1();
|
|
45385
45569
|
const currentRange = self.getSelectionRange();
|
|
45386
45570
|
if (!currentRange) return self;
|
|
45387
45571
|
const dialog = self.app.dialog.prompt('', self.params.imageUrlText, imageUrl => {
|
|
@@ -45407,8 +45591,8 @@
|
|
|
45407
45591
|
}
|
|
45408
45592
|
onSelectionChange() {
|
|
45409
45593
|
const self = this;
|
|
45410
|
-
const window = getWindow();
|
|
45411
|
-
const document = getDocument();
|
|
45594
|
+
const window = getWindow$1();
|
|
45595
|
+
const document = getDocument$1();
|
|
45412
45596
|
if (self.params.mode === 'toolbar') return;
|
|
45413
45597
|
const selection = window.getSelection();
|
|
45414
45598
|
const selectionIsInContent = $(selection.anchorNode).parents(self.contentEl).length || selection.anchorNode === self.contentEl;
|
|
@@ -45438,7 +45622,7 @@
|
|
|
45438
45622
|
}
|
|
45439
45623
|
onPaste(e) {
|
|
45440
45624
|
const self = this;
|
|
45441
|
-
const document = getDocument();
|
|
45625
|
+
const document = getDocument$1();
|
|
45442
45626
|
if (self.params.clearFormattingOnPaste && e.clipboardData && e.clipboardData.getData) {
|
|
45443
45627
|
const text = e.clipboardData.getData('text/plain');
|
|
45444
45628
|
e.preventDefault();
|
|
@@ -45463,8 +45647,8 @@
|
|
|
45463
45647
|
}
|
|
45464
45648
|
onBlur() {
|
|
45465
45649
|
const self = this;
|
|
45466
|
-
const window = getWindow();
|
|
45467
|
-
const document = getDocument();
|
|
45650
|
+
const window = getWindow$1();
|
|
45651
|
+
const document = getDocument$1();
|
|
45468
45652
|
if (self.params.placeholder && self.$contentEl.html() === '') {
|
|
45469
45653
|
self.insertPlaceholder();
|
|
45470
45654
|
}
|
|
@@ -45488,8 +45672,8 @@
|
|
|
45488
45672
|
}
|
|
45489
45673
|
onButtonClick(e) {
|
|
45490
45674
|
const self = this;
|
|
45491
|
-
const window = getWindow();
|
|
45492
|
-
const document = getDocument();
|
|
45675
|
+
const window = getWindow$1();
|
|
45676
|
+
const document = getDocument$1();
|
|
45493
45677
|
const selection = window.getSelection();
|
|
45494
45678
|
const selectionIsInContent = $(selection.anchorNode).parents(self.contentEl).length || selection.anchorNode === self.contentEl;
|
|
45495
45679
|
if (!selectionIsInContent) return;
|
|
@@ -45530,8 +45714,8 @@
|
|
|
45530
45714
|
|
|
45531
45715
|
// eslint-disable-next-line
|
|
45532
45716
|
getSelectionRange() {
|
|
45533
|
-
const window = getWindow();
|
|
45534
|
-
const document = getDocument();
|
|
45717
|
+
const window = getWindow$1();
|
|
45718
|
+
const document = getDocument$1();
|
|
45535
45719
|
if (window.getSelection) {
|
|
45536
45720
|
const sel = window.getSelection();
|
|
45537
45721
|
if (sel.getRangeAt && sel.rangeCount) {
|
|
@@ -45545,8 +45729,8 @@
|
|
|
45545
45729
|
|
|
45546
45730
|
// eslint-disable-next-line
|
|
45547
45731
|
setSelectionRange(range) {
|
|
45548
|
-
const window = getWindow();
|
|
45549
|
-
const document = getDocument();
|
|
45732
|
+
const window = getWindow$1();
|
|
45733
|
+
const document = getDocument$1();
|
|
45550
45734
|
if (range) {
|
|
45551
45735
|
if (window.getSelection) {
|
|
45552
45736
|
const sel = window.getSelection();
|
|
@@ -45709,7 +45893,7 @@
|
|
|
45709
45893
|
},
|
|
45710
45894
|
create() {
|
|
45711
45895
|
const app = this;
|
|
45712
|
-
app.textEditor = extend$
|
|
45896
|
+
app.textEditor = extend$3(ConstructorMethods({
|
|
45713
45897
|
defaultSelector: '.text-editor',
|
|
45714
45898
|
constructor: TextEditor$1,
|
|
45715
45899
|
app,
|
|
@@ -45724,7 +45908,7 @@
|
|
|
45724
45908
|
const app = this;
|
|
45725
45909
|
$(tabEl).find('.text-editor-init').each(editorEl => {
|
|
45726
45910
|
const dataset = $(editorEl).dataset();
|
|
45727
|
-
app.textEditor.create(extend$
|
|
45911
|
+
app.textEditor.create(extend$3({
|
|
45728
45912
|
el: editorEl
|
|
45729
45913
|
}, dataset || {}));
|
|
45730
45914
|
});
|
|
@@ -45738,7 +45922,7 @@
|
|
|
45738
45922
|
const app = this;
|
|
45739
45923
|
page.$el.find('.text-editor-init').each(editorEl => {
|
|
45740
45924
|
const dataset = $(editorEl).dataset();
|
|
45741
|
-
app.textEditor.create(extend$
|
|
45925
|
+
app.textEditor.create(extend$3({
|
|
45742
45926
|
el: editorEl
|
|
45743
45927
|
}, dataset || {}));
|
|
45744
45928
|
});
|
|
@@ -45755,7 +45939,7 @@
|
|
|
45755
45939
|
const app = this;
|
|
45756
45940
|
const editorEl = vnode.elm;
|
|
45757
45941
|
const dataset = $(editorEl).dataset();
|
|
45758
|
-
app.textEditor.create(extend$
|
|
45942
|
+
app.textEditor.create(extend$3({
|
|
45759
45943
|
el: editorEl
|
|
45760
45944
|
}, dataset || {}));
|
|
45761
45945
|
},
|
|
@@ -45774,11 +45958,11 @@
|
|
|
45774
45958
|
}
|
|
45775
45959
|
super(params, [app]);
|
|
45776
45960
|
const self = this;
|
|
45777
|
-
const defaults = extend$
|
|
45961
|
+
const defaults = extend$3({}, app.params.pieChart);
|
|
45778
45962
|
|
|
45779
45963
|
// Extend defaults with modules params
|
|
45780
45964
|
self.useModulesParams(defaults);
|
|
45781
|
-
self.params = extend$
|
|
45965
|
+
self.params = extend$3(defaults, params);
|
|
45782
45966
|
const {
|
|
45783
45967
|
el
|
|
45784
45968
|
} = self.params;
|
|
@@ -45786,7 +45970,7 @@
|
|
|
45786
45970
|
const $el = $(el);
|
|
45787
45971
|
if ($el.length === 0) return self;
|
|
45788
45972
|
if ($el[0].f7PieChart) return $el[0].f7PieChart;
|
|
45789
|
-
extend$
|
|
45973
|
+
extend$3(self, {
|
|
45790
45974
|
app,
|
|
45791
45975
|
$el,
|
|
45792
45976
|
el: $el && $el[0],
|
|
@@ -45949,7 +46133,7 @@
|
|
|
45949
46133
|
delete self.$svgEl.f7PieChart;
|
|
45950
46134
|
const $svgEl = $(self.render()).eq(0);
|
|
45951
46135
|
$svgEl.f7PieChart = self;
|
|
45952
|
-
extend$
|
|
46136
|
+
extend$3(self, {
|
|
45953
46137
|
$svgEl,
|
|
45954
46138
|
svgEl: $svgEl && $svgEl[0]
|
|
45955
46139
|
});
|
|
@@ -45986,7 +46170,7 @@
|
|
|
45986
46170
|
const self = this;
|
|
45987
46171
|
const $svgEl = $(self.render()).eq(0);
|
|
45988
46172
|
$svgEl.f7PieChart = self;
|
|
45989
|
-
extend$
|
|
46173
|
+
extend$3(self, {
|
|
45990
46174
|
$svgEl,
|
|
45991
46175
|
svgEl: $svgEl && $svgEl[0]
|
|
45992
46176
|
});
|
|
@@ -46049,11 +46233,11 @@
|
|
|
46049
46233
|
}
|
|
46050
46234
|
super(params, [app]);
|
|
46051
46235
|
const self = this;
|
|
46052
|
-
const defaults = extend$
|
|
46236
|
+
const defaults = extend$3({}, app.params.areaChart);
|
|
46053
46237
|
|
|
46054
46238
|
// Extend defaults with modules params
|
|
46055
46239
|
self.useModulesParams(defaults);
|
|
46056
|
-
self.params = extend$
|
|
46240
|
+
self.params = extend$3(defaults, params);
|
|
46057
46241
|
const {
|
|
46058
46242
|
el
|
|
46059
46243
|
} = self.params;
|
|
@@ -46061,7 +46245,7 @@
|
|
|
46061
46245
|
const $el = $(el);
|
|
46062
46246
|
if ($el.length === 0) return self;
|
|
46063
46247
|
if ($el[0].f7AreaChart) return $el[0].f7AreaChart;
|
|
46064
|
-
extend$
|
|
46248
|
+
extend$3(self, {
|
|
46065
46249
|
app,
|
|
46066
46250
|
$el,
|
|
46067
46251
|
el: $el && $el[0],
|
|
@@ -46450,14 +46634,14 @@
|
|
|
46450
46634
|
}
|
|
46451
46635
|
const $rendered = $(self.render());
|
|
46452
46636
|
const $svgEl = $rendered.find('svg');
|
|
46453
|
-
extend$
|
|
46637
|
+
extend$3(self, {
|
|
46454
46638
|
svgEl: $svgEl && $svgEl[0],
|
|
46455
46639
|
$svgEl
|
|
46456
46640
|
});
|
|
46457
46641
|
if (!onlySvg) {
|
|
46458
46642
|
const $axisEl = $rendered.find('.area-chart-axis');
|
|
46459
46643
|
const $legendEl = $rendered.find('.area-chart-legend');
|
|
46460
|
-
extend$
|
|
46644
|
+
extend$3(self, {
|
|
46461
46645
|
$axisEl,
|
|
46462
46646
|
$legendEl
|
|
46463
46647
|
});
|
|
@@ -46474,7 +46658,7 @@
|
|
|
46474
46658
|
const $svgEl = $rendered.find('svg');
|
|
46475
46659
|
const $axisEl = $rendered.find('.area-chart-axis');
|
|
46476
46660
|
const $legendEl = $rendered.find('.area-chart-legend');
|
|
46477
|
-
extend$
|
|
46661
|
+
extend$3(self, {
|
|
46478
46662
|
svgEl: $svgEl && $svgEl[0],
|
|
46479
46663
|
$svgEl,
|
|
46480
46664
|
$axisEl,
|