uikit 3.14.4-dev.871ba3c05 → 3.14.4-dev.ae765cd84
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/CHANGELOG.md +45 -11
- package/build/util.js +1 -0
- package/dist/css/uikit-core-rtl.css +385 -110
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +385 -110
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +402 -115
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +402 -115
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +7 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +185 -137
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +185 -137
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +4 -5
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +4 -5
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +22 -7
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +4 -5
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +22 -7
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -3
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +97 -135
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +1803 -1709
- package/dist/js/uikit-core.min.js +14 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +1051 -940
- package/dist/js/uikit.min.js +14 -1
- package/package.json +1 -1
- package/src/images/{backgrounds/nav-parent-open.svg → components/nav-parent-icon-large.svg} +0 -0
- package/src/images/components/nav-parent-icon.svg +3 -0
- package/src/images/components/navbar-parent-icon.svg +3 -0
- package/src/images/components/navbar-toggle-icon.svg +22 -3
- package/src/js/api/state.js +2 -2
- package/src/js/components/filter.js +5 -3
- package/src/js/components/sortable.js +2 -3
- package/src/js/core/accordion.js +9 -17
- package/src/js/core/alert.js +35 -14
- package/src/js/core/drop.js +95 -61
- package/src/js/core/height-viewport.js +14 -6
- package/src/js/core/icon.js +16 -0
- package/src/js/core/index.js +2 -0
- package/src/js/core/leader.js +2 -2
- package/src/js/core/navbar.js +44 -30
- package/src/js/core/offcanvas.js +1 -47
- package/src/js/core/scroll.js +37 -10
- package/src/js/core/sticky.js +8 -9
- package/src/js/core/toggle.js +3 -5
- package/src/js/mixin/media.js +4 -5
- package/src/js/mixin/modal.js +97 -8
- package/src/js/mixin/position.js +26 -11
- package/src/js/mixin/slider-drag.js +20 -8
- package/src/js/mixin/style.js +11 -0
- package/src/js/mixin/togglable.js +80 -133
- package/src/js/util/animation.js +4 -3
- package/src/js/util/dimensions.js +6 -6
- package/src/js/util/filter.js +3 -7
- package/src/js/util/position.js +108 -107
- package/src/js/util/style.js +4 -13
- package/src/js/util/viewport.js +5 -32
- package/src/less/components/_import.less +1 -0
- package/src/less/components/drop.less +1 -18
- package/src/less/components/dropbar.less +115 -0
- package/src/less/components/dropdown.less +16 -16
- package/src/less/components/leader.less +1 -1
- package/src/less/components/nav.less +240 -63
- package/src/less/components/navbar.less +81 -38
- package/src/less/components/utility.less +21 -4
- package/src/less/theme/_import.less +1 -0
- package/src/less/theme/dropbar.less +44 -0
- package/src/less/theme/dropdown.less +0 -11
- package/src/less/theme/nav.less +43 -9
- package/src/less/theme/navbar.less +7 -11
- package/src/scss/components/_import.scss +1 -0
- package/src/scss/components/drop.scss +1 -18
- package/src/scss/components/dropbar.scss +115 -0
- package/src/scss/components/dropdown.scss +16 -16
- package/src/scss/components/leader.scss +1 -1
- package/src/scss/components/nav.scss +189 -51
- package/src/scss/components/navbar.scss +69 -38
- package/src/scss/components/utility.scss +19 -3
- package/src/scss/mixins-theme.scss +93 -25
- package/src/scss/mixins.scss +89 -17
- package/src/scss/theme/_import.scss +1 -0
- package/src/scss/theme/dropbar.scss +44 -0
- package/src/scss/theme/dropdown.scss +0 -8
- package/src/scss/theme/nav.scss +41 -9
- package/src/scss/theme/navbar.scss +7 -8
- package/src/scss/variables-theme.scss +71 -18
- package/src/scss/variables.scss +60 -14
- package/tests/accordion.html +2 -2
- package/tests/alert.html +2 -2
- package/tests/countdown.html +1 -1
- package/tests/drop.html +457 -371
- package/tests/dropbar.html +456 -0
- package/tests/dropdown.html +26 -401
- package/tests/filter.html +9 -12
- package/tests/form.html +1 -1
- package/tests/index.html +126 -107
- package/tests/js/index.js +1 -4
- package/tests/lightbox.html +5 -5
- package/tests/list.html +8 -8
- package/tests/modal.html +13 -13
- package/tests/nav.html +117 -75
- package/tests/navbar.html +2002 -1131
- package/tests/offcanvas.html +17 -21
- package/tests/parallax.html +1 -1
- package/tests/position.html +18 -16
- package/tests/progress.html +9 -9
- package/tests/scroll.html +7 -10
- package/tests/search.html +5 -5
- package/tests/slider.html +6 -5
- package/tests/slideshow.html +8 -8
- package/tests/sortable.html +6 -8
- package/tests/sticky-navbar.html +6 -6
- package/tests/sticky.html +8 -8
- package/tests/switcher.html +1 -1
- package/tests/tab.html +1 -1
- package/tests/table.html +7 -7
- package/tests/toggle.html +2 -2
- package/tests/tooltip.html +1 -1
- package/tests/upload.html +11 -11
- package/tests/utility.html +19 -0
- package/src/images/backgrounds/nav-parent-close.svg +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -110,27 +110,7 @@
|
|
|
110
110
|
origin: false,
|
|
111
111
|
transition: 'ease',
|
|
112
112
|
clsEnter: 'uk-togglabe-enter',
|
|
113
|
-
clsLeave: 'uk-togglabe-leave',
|
|
114
|
-
|
|
115
|
-
initProps: {
|
|
116
|
-
overflow: '',
|
|
117
|
-
maxHeight: '',
|
|
118
|
-
paddingTop: '',
|
|
119
|
-
paddingBottom: '',
|
|
120
|
-
marginTop: '',
|
|
121
|
-
marginBottom: '',
|
|
122
|
-
boxShadow: '' },
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hideProps: {
|
|
126
|
-
overflow: 'hidden',
|
|
127
|
-
maxHeight: 0,
|
|
128
|
-
paddingTop: 0,
|
|
129
|
-
paddingBottom: 0,
|
|
130
|
-
marginTop: 0,
|
|
131
|
-
marginBottom: 0,
|
|
132
|
-
boxShadow: 'none' } },
|
|
133
|
-
|
|
113
|
+
clsLeave: 'uk-togglabe-leave' },
|
|
134
114
|
|
|
135
115
|
|
|
136
116
|
computed: {
|
|
@@ -139,7 +119,7 @@
|
|
|
139
119
|
},
|
|
140
120
|
|
|
141
121
|
hasTransition(_ref2) {let { animation } = _ref2;
|
|
142
|
-
return uikitUtil.startsWith(animation[0],
|
|
122
|
+
return ['slide', 'reveal'].some((transition) => uikitUtil.startsWith(animation[0], transition));
|
|
143
123
|
} },
|
|
144
124
|
|
|
145
125
|
|
|
@@ -232,130 +212,97 @@
|
|
|
232
212
|
};
|
|
233
213
|
}
|
|
234
214
|
|
|
235
|
-
function toggleTransition(cmp) {
|
|
236
|
-
|
|
237
|
-
case 'slide-left':
|
|
238
|
-
return slideHorizontal(cmp);
|
|
239
|
-
case 'slide-right':
|
|
240
|
-
return slideHorizontal(cmp, true);}
|
|
241
|
-
|
|
242
|
-
return slide(cmp);
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
function slide(_ref4)
|
|
246
|
-
|
|
247
|
-
|
|
215
|
+
function toggleTransition(cmp) {var _cmp$animation$;
|
|
216
|
+
const [mode = 'reveal', startProp = 'top'] = ((_cmp$animation$ = cmp.animation[0]) == null ? void 0 : _cmp$animation$.split('-')) || [];
|
|
248
217
|
|
|
218
|
+
const dirs = [
|
|
219
|
+
['left', 'right'],
|
|
220
|
+
['top', 'bottom']];
|
|
249
221
|
|
|
222
|
+
const dir = dirs[uikitUtil.includes(dirs[0], startProp) ? 0 : 1];
|
|
223
|
+
const end = dir[1] === startProp;
|
|
224
|
+
const props = ['width', 'height'];
|
|
225
|
+
const dimProp = props[dirs.indexOf(dir)];
|
|
226
|
+
const marginProp = "margin-" + dir[0];
|
|
227
|
+
const marginStartProp = "margin-" + startProp;
|
|
250
228
|
|
|
229
|
+
return async (el, show) => {
|
|
230
|
+
let { duration, velocity, transition, _toggle } = cmp;
|
|
251
231
|
|
|
232
|
+
let currentDim = uikitUtil.dimensions(el)[dimProp];
|
|
252
233
|
|
|
253
|
-
{let { isToggled, duration, velocity, initProps, hideProps, transition, _toggle } = _ref4;
|
|
254
|
-
return (el, show) => {
|
|
255
234
|
const inProgress = uikitUtil.Transition.inProgress(el);
|
|
256
|
-
|
|
257
|
-
!inProgress && el.hasChildNodes() ?
|
|
258
|
-
uikitUtil.toFloat(uikitUtil.css(el.firstElementChild, 'marginTop')) +
|
|
259
|
-
uikitUtil.toFloat(uikitUtil.css(el.lastElementChild, 'marginBottom')) :
|
|
260
|
-
0;
|
|
261
|
-
const currentHeight = uikitUtil.isVisible(el) ? uikitUtil.toFloat(uikitUtil.css(el, 'height')) + inner : 0;
|
|
262
|
-
|
|
263
|
-
const props = inProgress ? uikitUtil.css(el, Object.keys(initProps)) : show ? hideProps : initProps;
|
|
235
|
+
await uikitUtil.Transition.cancel(el);
|
|
264
236
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
if (!isToggled(el)) {
|
|
237
|
+
if (show) {
|
|
268
238
|
_toggle(el, true);
|
|
269
239
|
}
|
|
270
240
|
|
|
271
|
-
|
|
241
|
+
const prevProps = Object.fromEntries(
|
|
242
|
+
['padding', 'border', 'width', 'height', 'overflow', marginProp, marginStartProp].map(
|
|
243
|
+
(key) => [key, el.style[key]]));
|
|
272
244
|
|
|
273
|
-
// Update child components first
|
|
274
|
-
uikitUtil.fastdom.flush();
|
|
275
245
|
|
|
276
|
-
const endHeight = uikitUtil.toFloat(uikitUtil.css(el, 'height')) + inner;
|
|
277
|
-
duration = velocity * endHeight + duration;
|
|
278
246
|
|
|
279
|
-
uikitUtil.
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
uikitUtil.Transition.start(
|
|
284
|
-
el,
|
|
285
|
-
{ ...initProps, overflow: 'hidden', maxHeight: endHeight },
|
|
286
|
-
duration * (1 - currentHeight / endHeight),
|
|
287
|
-
transition) :
|
|
288
|
-
|
|
289
|
-
uikitUtil.Transition.start(
|
|
290
|
-
el,
|
|
291
|
-
hideProps,
|
|
292
|
-
duration * (currentHeight / endHeight),
|
|
293
|
-
transition).
|
|
294
|
-
then(() => _toggle(el, false))).
|
|
295
|
-
then(() => uikitUtil.css(el, initProps));
|
|
296
|
-
};
|
|
297
|
-
}
|
|
247
|
+
const dim = uikitUtil.dimensions(el);
|
|
248
|
+
const currentMargin = uikitUtil.toFloat(uikitUtil.css(el, marginProp));
|
|
249
|
+
const marginStart = uikitUtil.toFloat(uikitUtil.css(el, marginStartProp));
|
|
250
|
+
const endDim = dim[dimProp] + marginStart;
|
|
298
251
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const visible = uikitUtil.isVisible(el);
|
|
302
|
-
const marginLeft = uikitUtil.toFloat(uikitUtil.css(el, 'marginLeft'));
|
|
303
|
-
|
|
304
|
-
uikitUtil.Transition.cancel(el);
|
|
305
|
-
|
|
306
|
-
const [scrollElement] = uikitUtil.scrollParents(el);
|
|
307
|
-
uikitUtil.css(scrollElement, 'overflowX', 'hidden');
|
|
308
|
-
|
|
309
|
-
if (!isToggled(el)) {
|
|
310
|
-
_toggle(el, true);
|
|
252
|
+
if (!inProgress && !show) {
|
|
253
|
+
currentDim += marginStart;
|
|
311
254
|
}
|
|
312
255
|
|
|
313
|
-
const
|
|
314
|
-
|
|
256
|
+
const [wrapper] = uikitUtil.wrapInner(el, '<div>');
|
|
257
|
+
uikitUtil.css(wrapper, {
|
|
258
|
+
boxSizing: 'border-box',
|
|
259
|
+
height: dim.height,
|
|
260
|
+
width: dim.width,
|
|
261
|
+
...uikitUtil.css(el, [
|
|
262
|
+
'padding',
|
|
263
|
+
'borderTop',
|
|
264
|
+
'borderRight',
|
|
265
|
+
'borderBottom',
|
|
266
|
+
'borderLeft',
|
|
267
|
+
'borderImage',
|
|
268
|
+
marginStartProp]) });
|
|
269
|
+
|
|
315
270
|
|
|
316
|
-
const percent = visible ? (width + marginLeft * (right ? -1 : 1)) / width * 100 : 0;
|
|
317
|
-
const offsetEl = uikitUtil.offset(el);
|
|
318
|
-
const useClipPath = right ?
|
|
319
|
-
offsetEl.right < scrollElement.clientWidth :
|
|
320
|
-
Math.round(offsetEl.left) > 0;
|
|
321
271
|
|
|
322
272
|
uikitUtil.css(el, {
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
return (
|
|
332
|
-
show ?
|
|
333
|
-
uikitUtil.Transition.start(
|
|
334
|
-
el,
|
|
335
|
-
{
|
|
336
|
-
clipPath: useClipPath ? "polygon(0 0,100% 0,100% 100%,0 100%)" : '',
|
|
337
|
-
marginLeft: 0 },
|
|
273
|
+
padding: 0,
|
|
274
|
+
border: 0,
|
|
275
|
+
[marginStartProp]: 0,
|
|
276
|
+
width: dim.width,
|
|
277
|
+
height: dim.height,
|
|
278
|
+
overflow: 'hidden',
|
|
279
|
+
[dimProp]: currentDim });
|
|
338
280
|
|
|
339
|
-
duration * (1 - percent / 100),
|
|
340
|
-
transition) :
|
|
341
281
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
{
|
|
345
|
-
clipPath: useClipPath ?
|
|
346
|
-
right ? "polygon(0 0,0 0,0 100%,0 100%)" : "polygon(100% 0,100% 0,100% 100%,100% 100%)" :
|
|
282
|
+
const percent = currentDim / endDim;
|
|
283
|
+
duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
|
|
284
|
+
const endProps = { [dimProp]: show ? endDim : 0 };
|
|
347
285
|
|
|
286
|
+
if (end) {
|
|
287
|
+
uikitUtil.css(el, marginProp, endDim - currentDim + currentMargin);
|
|
288
|
+
endProps[marginProp] = show ? currentMargin : endDim + currentMargin;
|
|
289
|
+
}
|
|
348
290
|
|
|
349
|
-
|
|
350
|
-
|
|
291
|
+
if (!end ^ mode === 'reveal') {
|
|
292
|
+
uikitUtil.css(wrapper, marginProp, -endDim + currentDim);
|
|
293
|
+
uikitUtil.Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);
|
|
294
|
+
}
|
|
351
295
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
uikitUtil.
|
|
357
|
-
|
|
358
|
-
|
|
296
|
+
try {
|
|
297
|
+
await uikitUtil.Transition.start(el, endProps, duration, transition);
|
|
298
|
+
} finally {
|
|
299
|
+
uikitUtil.css(el, prevProps);
|
|
300
|
+
uikitUtil.unwrap(wrapper.firstChild);
|
|
301
|
+
|
|
302
|
+
if (!show) {
|
|
303
|
+
_toggle(el, false);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
359
306
|
};
|
|
360
307
|
}
|
|
361
308
|
|
|
@@ -474,17 +421,26 @@
|
|
|
474
421
|
self: true,
|
|
475
422
|
|
|
476
423
|
handler() {
|
|
477
|
-
|
|
424
|
+
uikitUtil.once(
|
|
425
|
+
this.$el,
|
|
426
|
+
'hide',
|
|
427
|
+
uikitUtil.on(document, 'focusin', (e) => {
|
|
428
|
+
if (uikitUtil.last(active) === this && !uikitUtil.within(e.target, this.$el)) {
|
|
429
|
+
this.$el.focus();
|
|
430
|
+
}
|
|
431
|
+
}));
|
|
478
432
|
|
|
479
|
-
|
|
480
|
-
|
|
433
|
+
|
|
434
|
+
if (this.overlay) {
|
|
435
|
+
uikitUtil.once(this.$el, 'hidden', preventOverscroll(this.$el));
|
|
436
|
+
uikitUtil.once(this.$el, 'hidden', preventBackgroundScroll());
|
|
481
437
|
}
|
|
482
438
|
|
|
483
439
|
if (this.stack) {
|
|
484
440
|
uikitUtil.css(this.$el, 'zIndex', uikitUtil.toFloat(uikitUtil.css(this.$el, 'zIndex')) + active.length);
|
|
485
441
|
}
|
|
486
442
|
|
|
487
|
-
uikitUtil.addClass(
|
|
443
|
+
uikitUtil.addClass(document.documentElement, this.clsPage);
|
|
488
444
|
|
|
489
445
|
if (this.bgClose) {
|
|
490
446
|
uikitUtil.once(
|
|
@@ -559,10 +515,6 @@
|
|
|
559
515
|
active.splice(active.indexOf(this), 1);
|
|
560
516
|
}
|
|
561
517
|
|
|
562
|
-
if (!active.length) {
|
|
563
|
-
uikitUtil.css(document.body, 'overflowY', '');
|
|
564
|
-
}
|
|
565
|
-
|
|
566
518
|
uikitUtil.css(this.$el, 'zIndex', '');
|
|
567
519
|
|
|
568
520
|
if (!active.some((modal) => modal.clsPage === this.clsPage)) {
|
|
@@ -627,6 +579,87 @@
|
|
|
627
579
|
return time ? uikitUtil.endsWith(time, 'ms') ? uikitUtil.toFloat(time) : uikitUtil.toFloat(time) * 1000 : 0;
|
|
628
580
|
}
|
|
629
581
|
|
|
582
|
+
function preventOverscroll(el) {
|
|
583
|
+
if (CSS.supports('overscroll-behavior', 'contain')) {
|
|
584
|
+
const elements = filterChildren(el, (child) => /auto|scroll/.test(uikitUtil.css(child, 'overflow')));
|
|
585
|
+
uikitUtil.css(elements, 'overscrollBehavior', 'contain');
|
|
586
|
+
return () => uikitUtil.css(elements, 'overscrollBehavior', '');
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
let startClientY;
|
|
590
|
+
|
|
591
|
+
const events = [
|
|
592
|
+
uikitUtil.on(
|
|
593
|
+
el,
|
|
594
|
+
'touchstart',
|
|
595
|
+
(_ref6) => {let { targetTouches } = _ref6;
|
|
596
|
+
if (targetTouches.length === 1) {
|
|
597
|
+
startClientY = targetTouches[0].clientY;
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
{ passive: true }),
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
uikitUtil.on(
|
|
604
|
+
el,
|
|
605
|
+
'touchmove',
|
|
606
|
+
(e) => {
|
|
607
|
+
if (e.targetTouches.length !== 1) {
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
let [scrollParent] = uikitUtil.scrollParents(e.target, /auto|scroll/);
|
|
612
|
+
if (!uikitUtil.within(scrollParent, el)) {
|
|
613
|
+
scrollParent = el;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
const clientY = e.targetTouches[0].clientY - startClientY;
|
|
617
|
+
const { scrollTop, scrollHeight, clientHeight } = scrollParent;
|
|
618
|
+
|
|
619
|
+
if (
|
|
620
|
+
clientHeight >= scrollHeight ||
|
|
621
|
+
scrollTop === 0 && clientY > 0 ||
|
|
622
|
+
scrollHeight - scrollTop <= clientHeight && clientY < 0)
|
|
623
|
+
{
|
|
624
|
+
e.cancelable && e.preventDefault();
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
{ passive: false })];
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
return () => events.forEach((fn) => fn());
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
let prevented;
|
|
635
|
+
function preventBackgroundScroll() {
|
|
636
|
+
if (prevented) {
|
|
637
|
+
return uikitUtil.noop;
|
|
638
|
+
}
|
|
639
|
+
prevented = true;
|
|
640
|
+
const { body, documentElement } = document;
|
|
641
|
+
uikitUtil.css(body, {
|
|
642
|
+
overflowY: uikitUtil.width(window) > documentElement.clientWidth ? 'scroll' : '',
|
|
643
|
+
touchAction: 'none' });
|
|
644
|
+
|
|
645
|
+
uikitUtil.css(documentElement, 'overflowY', 'hidden');
|
|
646
|
+
return () => {
|
|
647
|
+
prevented = false;
|
|
648
|
+
uikitUtil.css(documentElement, 'overflowY', '');
|
|
649
|
+
uikitUtil.css(body, { overflowY: '', touchAction: '' });
|
|
650
|
+
};
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function filterChildren(el, fn) {
|
|
654
|
+
const children = [];
|
|
655
|
+
uikitUtil.apply(el, (node) => {
|
|
656
|
+
if (fn(node)) {
|
|
657
|
+
children.push(node);
|
|
658
|
+
}
|
|
659
|
+
});
|
|
660
|
+
return children;
|
|
661
|
+
}
|
|
662
|
+
|
|
630
663
|
function Transitioner(prev, next, dir, _ref) {let { animation, easing } = _ref;
|
|
631
664
|
const { percent, translate, show = uikitUtil.noop } = animation;
|
|
632
665
|
const props = show(dir);
|
|
@@ -768,6 +801,11 @@
|
|
|
768
801
|
this.interval && clearInterval(this.interval);
|
|
769
802
|
} } };
|
|
770
803
|
|
|
804
|
+
const pointerOptions = { passive: false, capture: true };
|
|
805
|
+
const pointerDown = 'touchstart mousedown';
|
|
806
|
+
const pointerMove = 'touchmove mousemove';
|
|
807
|
+
const pointerUp = 'touchend touchcancel mouseup click input';
|
|
808
|
+
|
|
771
809
|
var SliderDrag = {
|
|
772
810
|
props: {
|
|
773
811
|
draggable: Boolean },
|
|
@@ -794,7 +832,7 @@
|
|
|
794
832
|
|
|
795
833
|
events: [
|
|
796
834
|
{
|
|
797
|
-
name:
|
|
835
|
+
name: pointerDown,
|
|
798
836
|
|
|
799
837
|
delegate() {
|
|
800
838
|
return this.selSlides;
|
|
@@ -820,7 +858,17 @@
|
|
|
820
858
|
|
|
821
859
|
handler(e) {
|
|
822
860
|
e.preventDefault();
|
|
823
|
-
} }
|
|
861
|
+
} },
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
{
|
|
865
|
+
// iOS workaround for slider stopping if swiping fast
|
|
866
|
+
name: pointerMove + " " + pointerUp,
|
|
867
|
+
el() {
|
|
868
|
+
return this.list;
|
|
869
|
+
},
|
|
870
|
+
handler: uikitUtil.noop,
|
|
871
|
+
...pointerOptions }],
|
|
824
872
|
|
|
825
873
|
|
|
826
874
|
|
|
@@ -842,10 +890,10 @@
|
|
|
842
890
|
this.prevIndex = this.index;
|
|
843
891
|
}
|
|
844
892
|
|
|
845
|
-
uikitUtil.on(document,
|
|
893
|
+
uikitUtil.on(document, pointerMove, this.move, pointerOptions);
|
|
846
894
|
|
|
847
895
|
// 'input' event is triggered by video controls
|
|
848
|
-
uikitUtil.on(document,
|
|
896
|
+
uikitUtil.on(document, pointerUp, this.end, pointerOptions);
|
|
849
897
|
|
|
850
898
|
uikitUtil.css(this.list, 'userSelect', 'none');
|
|
851
899
|
},
|
|
@@ -925,8 +973,8 @@
|
|
|
925
973
|
},
|
|
926
974
|
|
|
927
975
|
end() {
|
|
928
|
-
uikitUtil.off(document,
|
|
929
|
-
uikitUtil.off(document,
|
|
976
|
+
uikitUtil.off(document, pointerMove, this.move, pointerOptions);
|
|
977
|
+
uikitUtil.off(document, pointerUp, this.end, pointerOptions);
|
|
930
978
|
|
|
931
979
|
if (this.dragging) {
|
|
932
980
|
this.dragging = null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.871ba3c05 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,v){typeof exports=="object"&&typeof module<"u"?module.exports=v(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],v):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox=v(s.UIkit.util))})(this,function(s){"use strict";var v={slide:{show(e){return[{transform:b(e*-100)},{transform:b()}]},percent(e){return S(e)},translate(e,t){return[{transform:b(t*-100*e)},{transform:b(t*100*(1-e))}]}}};function S(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function b(e,t){return e===void 0&&(e=0),t===void 0&&(t="%"),e+=e?t:"","translate3d("+e+", 0, 0)"}function x(e){return"scale3d("+e+", "+e+", 1)"}var $={...v,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:x(1-.2)},{opacity:1,transform:x(1)}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:x(1-.2*e)},{opacity:e,transform:x(1-.2+.2*e)}]}}},C={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:t}=e;return t===!0&&this.$container||t&&s.$(t)}}},N={connected(){!s.hasClass(this.$el,this.$name)&&s.addClass(this.$el,this.$name)}},T={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave",initProps:{overflow:"",maxHeight:"",paddingTop:"",paddingBottom:"",marginTop:"",marginBottom:"",boxShadow:""},hideProps:{overflow:"hidden",maxHeight:0,paddingTop:0,paddingBottom:0,marginTop:0,marginBottom:0,boxShadow:"none"}},computed:{hasAnimation(e){let{animation:t}=e;return!!t[0]},hasTransition(e){let{animation:t}=e;return s.startsWith(t[0],"slide")}},methods:{toggleElement(e,t,n){return new Promise(o=>Promise.all(s.toNodes(e).map(d=>{const h=s.isBoolean(t)?t:!this.isToggled(d);if(!s.trigger(d,"before"+(h?"show":"hide"),[this]))return Promise.reject();const i=(s.isFunction(n)?n:n===!1||!this.hasAnimation?D(this):this.hasTransition?B(this):L(this))(d,h),r=h?this.clsEnter:this.clsLeave;s.addClass(d,r),s.trigger(d,h?"show":"hide",[this]);const a=()=>{s.removeClass(d,r),s.trigger(d,h?"shown":"hidden",[this]),this.$update(d)};return i?i.then(a,()=>(s.removeClass(d,r),Promise.reject())):a()})).then(o,s.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=s.toNodes(e),s.hasClass(e,this.clsEnter)?!0:s.hasClass(e,this.clsLeave)?!1:this.cls?s.hasClass(e,this.cls.split(" ")[0]):s.isVisible(e)},_toggle(e,t){if(!e)return;t=Boolean(t);let n;this.cls?(n=s.includes(this.cls," ")||t!==s.hasClass(e,this.cls),n&&s.toggleClass(e,this.cls,s.includes(this.cls," ")?void 0:t)):(n=t===e.hidden,n&&(e.hidden=!t)),s.$$("[autofocus]",e).some(o=>s.isVisible(o)?o.focus()||!0:o.blur()),n&&(s.trigger(e,"toggled",[t,this]),this.$update(e))}}};function D(e){let{_toggle:t}=e;return(n,o)=>(s.Animation.cancel(n),s.Transition.cancel(n),t(n,o))}function B(e){switch(e.animation[0]){case"slide-left":return P(e);case"slide-right":return P(e,!0)}return z(e)}function z(e){let{isToggled:t,duration:n,velocity:o,initProps:d,hideProps:h,transition:i,_toggle:r}=e;return(a,l)=>{const m=s.Transition.inProgress(a),g=!m&&a.hasChildNodes()?s.toFloat(s.css(a.firstElementChild,"marginTop"))+s.toFloat(s.css(a.lastElementChild,"marginBottom")):0,c=s.isVisible(a)?s.toFloat(s.css(a,"height"))+g:0,u=m?s.css(a,Object.keys(d)):l?h:d;s.Transition.cancel(a),t(a)||r(a,!0),s.css(a,"maxHeight",""),s.fastdom.flush();const p=s.toFloat(s.css(a,"height"))+g;return n=o*p+n,s.css(a,{...u,maxHeight:c}),(l?s.Transition.start(a,{...d,overflow:"hidden",maxHeight:p},n*(1-c/p),i):s.Transition.start(a,h,n*(c/p),i).then(()=>r(a,!1))).then(()=>s.css(a,d))}}function P(e,t){let{isToggled:n,duration:o,velocity:d,transition:h,_toggle:i}=e;return(r,a)=>{const l=s.isVisible(r),m=s.toFloat(s.css(r,"marginLeft"));s.Transition.cancel(r);const[g]=s.scrollParents(r);s.css(g,"overflowX","hidden"),n(r)||i(r,!0);const c=s.toFloat(s.css(r,"width"));o=d*c+o;const u=l?(c+m*(t?-1:1))/c*100:0,p=s.offset(r),I=t?p.right<g.clientWidth:Math.round(p.left)>0;return s.css(r,{clipPath:I?t?"polygon(0 0,"+u+"% 0,"+u+"% 100%,0 100%)":"polygon("+(100-u)+"% 0,100% 0,100% 100%,"+(100-u)+"% 100%)":"",marginLeft:(100-u)*(t?1:-1)/100*c}),(a?s.Transition.start(r,{clipPath:I?"polygon(0 0,100% 0,100% 100%,0 100%)":"",marginLeft:0},o*(1-u/100),h):s.Transition.start(r,{clipPath:I?t?"polygon(0 0,0 0,0 100%,0 100%)":"polygon(100% 0,100% 0,100% 100%,100% 100%)":"",marginLeft:(t?1:-1)*c},o*(u/100),h).then(()=>i(r,!1))).then(()=>{s.css(g,"overflowX",""),s.css(r,{clipPath:"",marginLeft:""})})}}function L(e){return(t,n)=>{s.Animation.cancel(t);const{animation:o,duration:d,_toggle:h}=e;return n?(h(t,!0),s.Animation.in(t,o[0],d,e.origin)):s.Animation.out(t,o[1]||o[0],d,e.origin).then(()=>h(t,!1))}}const f=[];var j={mixins:[N,C,T],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,t){let{selPanel:n}=e;return s.$(n,t)},transitionElement(){return this.panel},bgClose(e){let{bgClose:t}=e;return t&&this.panel}},beforeDisconnect(){s.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(t=>t.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){const e=document.documentElement;s.width(window)>e.clientWidth&&this.overlay&&s.css(document.body,"overflowY","scroll"),this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+f.length),s.addClass(e,this.clsPage),this.bgClose&&s.once(this.$el,"hide",s.on(document,s.pointerDown,t=>{let{target:n}=t;s.last(f)!==this||this.overlay&&!s.within(n,this.$el)||s.within(n,this.panel)||s.once(document,s.pointerUp+" "+s.pointerCancel+" scroll",o=>{let{defaultPrevented:d,type:h,target:i}=o;!d&&h===s.pointerUp&&n===i&&this.hide()},!0)}),{self:!0}),this.escClose&&s.once(this.$el,"hide",s.on(document,"keydown",t=>{t.keyCode===27&&s.last(f)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(f,this)&&f.splice(f.indexOf(this),1),f.length||s.css(document.body,"overflowY",""),s.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||s.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&s.parent(this.$el)!==this.container?(s.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,_(this))},hide(){return this.toggleElement(this.$el,!1,_(this))}}};function _(e){let{transitionElement:t,_toggle:n}=e;return(o,d)=>new Promise((h,i)=>s.once(o,"show hide",()=>{o._reject==null||o._reject(),o._reject=i,n(o,d);const r=s.once(t,"transitionstart",()=>{s.once(t,"transitionend transitioncancel",h,{self:!0}),clearTimeout(a)},{self:!0}),a=setTimeout(()=>{r(),h()},O(s.css(t,"transitionDuration")))})).then(()=>delete o._reject)}function O(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function H(e,t,n,o){let{animation:d,easing:h}=o;const{percent:i,translate:r,show:a=s.noop}=d,l=a(n),m=new s.Deferred;return{dir:n,show(g,c,u){c===void 0&&(c=0);const p=u?"linear":h;return g-=Math.round(g*s.clamp(c,-1,1)),this.translate(c),y(t,"itemin",{percent:c,duration:g,timing:p,dir:n}),y(e,"itemout",{percent:1-c,duration:g,timing:p,dir:n}),Promise.all([s.Transition.start(t,l[1],g,p),s.Transition.start(e,l[0],g,p)]).then(()=>{this.reset(),m.resolve()},s.noop),m.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const g in l[0])s.css([t,e],g,"")},forward(g,c){return c===void 0&&(c=this.percent()),s.Transition.cancel([t,e]),this.show(g,c,!0)},translate(g){this.reset();const c=r(g,n);s.css(t,c[1]),s.css(e,c[0]),y(t,"itemtranslatein",{percent:g,dir:n}),y(e,"itemtranslateout",{percent:1-g,dir:n})},percent(){return i(e||t,t,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function y(e,t,n){s.trigger(e,s.createEvent(t,!1,!1,n))}var M={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},F={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}},W={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const o=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,t(n)}}},events:[{name:s.pointerDown,delegate(){return this.selSlides},handler(e){!this.draggable||!s.isTouch(e)&&R(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,s.pointerMove,this.move,{passive:!1}),s.on(document,s.pointerUp+" "+s.pointerCancel+" input",this.end,!0),s.css(this.list,"userSelect","none")},move(e){const t=this.pos-this.drag;if(t===0||this.prevPos===this.pos||!this.dragging&&Math.abs(t)<this.threshold)return;s.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=t<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,d=Math.abs(t),h=this.getIndex(o+this.dir,o),i=this._getDistance(o,h)||n[o].offsetWidth;for(;h!==o&&d>i;)this.drag-=i*this.dir,o=h,d-=i,h=this.getIndex(o+this.dir,o),i=this._getDistance(o,h)||n[o].offsetWidth;this.percent=d/i;const r=n[o],a=n[h],l=this.index!==h,m=o===h;let g;[this.index,this.prevIndex].filter(c=>!s.includes([h,o],c)).forEach(c=>{s.trigger(n[c],"itemhidden",[this]),m&&(g=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||g)&&s.trigger(n[this.index],"itemshown",[this]),l&&(this.prevIndex=o,this.index=h,!m&&s.trigger(r,"beforeitemhide",[this]),s.trigger(a,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),r,!m&&a),l&&(!m&&s.trigger(r,"itemhide",[this]),s.trigger(a,"itemshow",[this]))},end(){if(s.off(document,s.pointerMove,this.move,{passive:!1}),s.off(document,s.pointerUp+" "+s.pointerCancel+" input",this.end,!0),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function R(e){return!e.children.length&&e.childNodes.length}var V={data:{selNav:!1},computed:{nav(e,t){let{selNav:n}=e;return s.$(n,t)},selNavItem(e){let{attrItem:t}=e;return"["+t+"],[data-"+t+"]"},navItems(e,t){return s.$$(this.selNavItem,t)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((e,t)=>"<li "+this.attrItem+'="'+t+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(s.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const t of this.navItems){const n=s.data(t,this.attrItem);s.toggleClass(t,this.clsActive,s.toNumber(n)===e),s.toggleClass(t,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},q={mixins:[F,W,V,M],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration(e,t){let{velocity:n}=e;return Y(t.offsetWidth/n)},list(e,t){let{selList:n}=e;return s.$(n,t)},maxIndex(){return this.length-1},selSlides(e){let{selList:t,selSlides:n}=e;return t+" "+(n||"> *")},slides:{get(){return s.$$(this.selSlides,this.$el)},watch(){this.$reset()}},length(){return this.slides.length}},methods:{show(e,t){if(t===void 0&&(t=!1),this.dragging||!this.length)return;const{stack:n}=this,o=t?0:n.length,d=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[t?"unshift":"push"](e),!t&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const h=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[h],r=this.getIndex(e,this.index),a=this.slides[r];if(i===a){d();return}if(this.dir=X(e,h),this.prevIndex=h,this.index=r,i&&!s.trigger(i,"beforeitemhide",[this])||!s.trigger(a,"beforeitemshow",[this,i])){this.index=this.prevIndex,d();return}const l=this._show(i,a,t).then(()=>(i&&s.trigger(i,"itemhidden",[this]),s.trigger(a,"itemshown",[this]),new Promise(m=>{s.fastdom.write(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&s.trigger(i,"itemhide",[this]),s.trigger(a,"itemshow",[this]),l},getIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.index),s.clamp(s.getIndex(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.prevIndex),this.getIndex(e,t)},_show(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,{easing:n?t.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t,n){t===void 0&&(t=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(t!==n?t:!1,n);return o.translate(e),o},_getTransitioner(e,t,n,o){return e===void 0&&(e=this.prevIndex),t===void 0&&(t=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),o)}}};function X(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function Y(e){return .5*e+300}var G={mixins:[q],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:v,Transitioner:H},computed:{animation(e){let{animation:t,Animations:n}=e;return{...n[t]||n.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:t}=e;s.addClass(t,this.clsActive)},itemshown(e){let{target:t}=e;s.addClass(t,this.clsActivated)},itemhidden(e){let{target:t}=e;s.removeClass(t,this.clsActive,this.clsActivated)}}},J={mixins:[C,j,T,G],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:$,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=s.$(this.template),t=s.$(this.selList,e);this.items.forEach(()=>s.append(t,"<li>")),this.$mount(s.append(this.container,e))},computed:{caption(e,t){let{selCaption:n}=e;return s.$(n,t)}},events:[{name:s.pointerMove+" "+s.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=$.scale,s.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){s.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,t){const{source:n,type:o,alt:d="",poster:h,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let r;const a={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:l,height:m}=await s.getImage(n,i.srcset,i.size);this.setItem(t,w("img",{src:n,width:l,height:m,alt:d,...i}))}catch{this.setError(t)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const l=w("video",{src:n,poster:h,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});s.on(l,"loadedmetadata",()=>{s.attr(l,{width:l.videoWidth,height:l.videoHeight}),this.setItem(t,l)}),s.on(l,"error",()=>this.setError(t))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(r=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,w("iframe",{src:"https://www.youtube"+(r[1]||"")+".com/embed/"+r[2]+(r[3]?"?"+r[3]:""),width:1920,height:1080,...a,...i}));else if(r=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:l,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(t,w("iframe",{src:"https://player.vimeo.com/video/"+r[1]+(r[2]?"?"+r[2]:""),width:m,height:l,...a,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e){return e===void 0&&(e=this.index),this.items[s.getIndex(e,this.slides)]},setItem(e,t){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(e),t)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function w(e,t){const n=s.fragment("<"+e+">");return s.attr(n,t),n}var A={install:K,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get(e,t){let{toggle:n}=e;return s.$$(n,t)},watch(){this.hide()}}},disconnected(){this.hide()},events:[{name:"click",delegate(){return this.toggle+":not(.uk-disabled)"},handler(e){e.preventDefault(),this.show(e.current)}}],methods:{show(e){const t=s.uniqueBy(this.toggles.map(E),"source");if(s.isElement(e)){const{source:n}=E(e);e=s.findIndex(t,o=>{let{source:d}=o;return n===d})}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:t}),s.on(this.panel.$el,"hidden",()=>this.panel=!1),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function K(e,t){e.lightboxPanel||e.component("lightboxPanel",J),s.assign(t.props,e.component("lightboxPanel").options.props)}function E(e){const t={};for(const n of["href","caption","type","poster","alt","attrs"])t[n==="href"?"source":n]=s.data(e,n);return t.attrs=s.parseOptions(t.attrs),t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",A),A});
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox=u(s.UIkit.util))})(this,function(s){"use strict";var u={slide:{show(e){return[{transform:I(e*-100)},{transform:I()}]},percent(e){return H(e)},translate(e,t){return[{transform:I(t*-100*e)},{transform:I(t*100*(1-e))}]}}};function H(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function I(e,t){return e===void 0&&(e=0),t===void 0&&(t="%"),e+=e?t:"","translate3d("+e+", 0, 0)"}function C(e){return"scale3d("+e+", "+e+", 1)"}var D={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:C(1-.2)},{opacity:1,transform:C(1)}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:C(1-.2*e)},{opacity:e,transform:C(1-.2+.2*e)}]}}},N={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:t}=e;return t===!0&&this.$container||t&&s.$(t)}}},q={connected(){!s.hasClass(this.$el,this.$name)&&s.addClass(this.$el,this.$name)}},B={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation(e){let{animation:t}=e;return!!t[0]},hasTransition(e){let{animation:t}=e;return["slide","reveal"].some(n=>s.startsWith(t[0],n))}},methods:{toggleElement(e,t,n){return new Promise(o=>Promise.all(s.toNodes(e).map(r=>{const a=s.isBoolean(t)?t:!this.isToggled(r);if(!s.trigger(r,"before"+(a?"show":"hide"),[this]))return Promise.reject();const i=(s.isFunction(n)?n:n===!1||!this.hasAnimation?V(this):this.hasTransition?G(this):J(this))(r,a),d=a?this.clsEnter:this.clsLeave;s.addClass(r,d),s.trigger(r,a?"show":"hide",[this]);const l=()=>{s.removeClass(r,d),s.trigger(r,a?"shown":"hidden",[this]),this.$update(r)};return i?i.then(l,()=>(s.removeClass(r,d),Promise.reject())):l()})).then(o,s.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=s.toNodes(e),s.hasClass(e,this.clsEnter)?!0:s.hasClass(e,this.clsLeave)?!1:this.cls?s.hasClass(e,this.cls.split(" ")[0]):s.isVisible(e)},_toggle(e,t){if(!e)return;t=Boolean(t);let n;this.cls?(n=s.includes(this.cls," ")||t!==s.hasClass(e,this.cls),n&&s.toggleClass(e,this.cls,s.includes(this.cls," ")?void 0:t)):(n=t===e.hidden,n&&(e.hidden=!t)),s.$$("[autofocus]",e).some(o=>s.isVisible(o)?o.focus()||!0:o.blur()),n&&(s.trigger(e,"toggled",[t,this]),this.$update(e))}}};function V(e){let{_toggle:t}=e;return(n,o)=>(s.Animation.cancel(n),s.Transition.cancel(n),t(n,o))}function G(e){var t;const[n="reveal",o="top"]=((t=e.animation[0])==null?void 0:t.split("-"))||[],r=[["left","right"],["top","bottom"]],a=r[s.includes(r[0],o)?0:1],i=a[1]===o,l=["width","height"][r.indexOf(a)],c="margin-"+a[0],m="margin-"+o;return async(h,g)=>{let{duration:v,velocity:b,transition:M,_toggle:L}=e,$=s.dimensions(h)[l];const ge=s.Transition.inProgress(h);await s.Transition.cancel(h),g&&L(h,!0);const me=Object.fromEntries(["padding","border","width","height","overflow",c,m].map(Y=>[Y,h.style[Y]])),y=s.dimensions(h),E=s.toFloat(s.css(h,c)),W=s.toFloat(s.css(h,m)),f=y[l]+W;!ge&&!g&&($+=W);const[A]=s.wrapInner(h,"<div>");s.css(A,{boxSizing:"border-box",height:y.height,width:y.width,...s.css(h,["padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",m])}),s.css(h,{padding:0,border:0,[m]:0,width:y.width,height:y.height,overflow:"hidden",[l]:$});const F=$/f;v=(b*f+v)*(g?1-F:F);const R={[l]:g?f:0};i&&(s.css(h,c,f-$+E),R[c]=g?E:f+E),!i^n==="reveal"&&(s.css(A,c,-f+$),s.Transition.start(A,{[c]:g?0:-f},v,M));try{await s.Transition.start(h,R,v,M)}finally{s.css(h,me),s.unwrap(A.firstChild),g||L(h,!1)}}}function J(e){return(t,n)=>{s.Animation.cancel(t);const{animation:o,duration:r,_toggle:a}=e;return n?(a(t,!0),s.Animation.in(t,o[0],r,e.origin)):s.Animation.out(t,o[1]||o[0],r,e.origin).then(()=>a(t,!1))}}const p=[];var K={mixins:[q,N,B],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,t){let{selPanel:n}=e;return s.$(n,t)},transitionElement(){return this.panel},bgClose(e){let{bgClose:t}=e;return t&&this.panel}},beforeDisconnect(){s.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(t=>t.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){s.once(this.$el,"hide",s.on(document,"focusin",e=>{s.last(p)===this&&!s.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(s.once(this.$el,"hidden",X(this.$el)),s.once(this.$el,"hidden",Z())),this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+p.length),s.addClass(document.documentElement,this.clsPage),this.bgClose&&s.once(this.$el,"hide",s.on(document,s.pointerDown,e=>{let{target:t}=e;s.last(p)!==this||this.overlay&&!s.within(t,this.$el)||s.within(t,this.panel)||s.once(document,s.pointerUp+" "+s.pointerCancel+" scroll",n=>{let{defaultPrevented:o,type:r,target:a}=n;!o&&r===s.pointerUp&&t===a&&this.hide()},!0)}),{self:!0}),this.escClose&&s.once(this.$el,"hide",s.on(document,"keydown",e=>{e.keyCode===27&&s.last(p)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(p,this)&&p.splice(p.indexOf(this),1),s.css(this.$el,"zIndex",""),p.some(e=>e.clsPage===this.clsPage)||s.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&s.parent(this.$el)!==this.container?(s.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,O(this))},hide(){return this.toggleElement(this.$el,!1,O(this))}}};function O(e){let{transitionElement:t,_toggle:n}=e;return(o,r)=>new Promise((a,i)=>s.once(o,"show hide",()=>{o._reject==null||o._reject(),o._reject=i,n(o,r);const d=s.once(t,"transitionstart",()=>{s.once(t,"transitionend transitioncancel",a,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{d(),a()},Q(s.css(t,"transitionDuration")))})).then(()=>delete o._reject)}function Q(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function X(e){if(CSS.supports("overscroll-behavior","contain")){const o=k(e,r=>/auto|scroll/.test(s.css(r,"overflow")));return s.css(o,"overscrollBehavior","contain"),()=>s.css(o,"overscrollBehavior","")}let t;const n=[s.on(e,"touchstart",o=>{let{targetTouches:r}=o;r.length===1&&(t=r[0].clientY)},{passive:!0}),s.on(e,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[r]=s.scrollParents(o.target,/auto|scroll/);s.within(r,e)||(r=e);const a=o.targetTouches[0].clientY-t,{scrollTop:i,scrollHeight:d,clientHeight:l}=r;(l>=d||i===0&&a>0||d-i<=l&&a<0)&&o.cancelable&&o.preventDefault()},{passive:!1})];return()=>n.forEach(o=>o())}let P;function Z(){if(P)return s.noop;P=!0;const{body:e,documentElement:t}=document;return s.css(e,{overflowY:s.width(window)>t.clientWidth?"scroll":"",touchAction:"none"}),s.css(t,"overflowY","hidden"),()=>{P=!1,s.css(t,"overflowY",""),s.css(e,{overflowY:"",touchAction:""})}}function k(e,t){const n=[];return s.apply(e,o=>{t(o)&&n.push(o)}),n}function U(e,t,n,o){let{animation:r,easing:a}=o;const{percent:i,translate:d,show:l=s.noop}=r,c=l(n),m=new s.Deferred;return{dir:n,show(h,g,v){g===void 0&&(g=0);const b=v?"linear":a;return h-=Math.round(h*s.clamp(g,-1,1)),this.translate(g),T(t,"itemin",{percent:g,duration:h,timing:b,dir:n}),T(e,"itemout",{percent:1-g,duration:h,timing:b,dir:n}),Promise.all([s.Transition.start(t,c[1],h,b),s.Transition.start(e,c[0],h,b)]).then(()=>{this.reset(),m.resolve()},s.noop),m.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const h in c[0])s.css([t,e],h,"")},forward(h,g){return g===void 0&&(g=this.percent()),s.Transition.cancel([t,e]),this.show(h,g,!0)},translate(h){this.reset();const g=d(h,n);s.css(t,g[1]),s.css(e,g[0]),T(t,"itemtranslatein",{percent:h,dir:n}),T(e,"itemtranslateout",{percent:1-h,dir:n})},percent(){return i(e||t,t,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function T(e,t,n){s.trigger(e,s.createEvent(t,!1,!1,n))}var ee={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},se={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const w={passive:!1,capture:!0},te="touchstart mousedown",_="touchmove mousemove",S="touchend touchcancel mouseup click input";var ne={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const o=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,t(n)}}},events:[{name:te,delegate(){return this.selSlides},handler(e){!this.draggable||!s.isTouch(e)&&oe(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:_+" "+S,el(){return this.list},handler:s.noop,...w}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,_,this.move,w),s.on(document,S,this.end,w),s.css(this.list,"userSelect","none")},move(e){const t=this.pos-this.drag;if(t===0||this.prevPos===this.pos||!this.dragging&&Math.abs(t)<this.threshold)return;s.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=t<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,r=Math.abs(t),a=this.getIndex(o+this.dir,o),i=this._getDistance(o,a)||n[o].offsetWidth;for(;a!==o&&r>i;)this.drag-=i*this.dir,o=a,r-=i,a=this.getIndex(o+this.dir,o),i=this._getDistance(o,a)||n[o].offsetWidth;this.percent=r/i;const d=n[o],l=n[a],c=this.index!==a,m=o===a;let h;[this.index,this.prevIndex].filter(g=>!s.includes([a,o],g)).forEach(g=>{s.trigger(n[g],"itemhidden",[this]),m&&(h=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||h)&&s.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=o,this.index=a,!m&&s.trigger(d,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),d,!m&&l),c&&(!m&&s.trigger(d,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,_,this.move,w),s.off(document,S,this.end,w),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function oe(e){return!e.children.length&&e.childNodes.length}var re={data:{selNav:!1},computed:{nav(e,t){let{selNav:n}=e;return s.$(n,t)},selNavItem(e){let{attrItem:t}=e;return"["+t+"],[data-"+t+"]"},navItems(e,t){return s.$$(this.selNavItem,t)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((e,t)=>"<li "+this.attrItem+'="'+t+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(s.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const t of this.navItems){const n=s.data(t,this.attrItem);s.toggleClass(t,this.clsActive,s.toNumber(n)===e),s.toggleClass(t,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},ae={mixins:[se,ne,re,ee],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration(e,t){let{velocity:n}=e;return he(t.offsetWidth/n)},list(e,t){let{selList:n}=e;return s.$(n,t)},maxIndex(){return this.length-1},selSlides(e){let{selList:t,selSlides:n}=e;return t+" "+(n||"> *")},slides:{get(){return s.$$(this.selSlides,this.$el)},watch(){this.$reset()}},length(){return this.slides.length}},methods:{show(e,t){if(t===void 0&&(t=!1),this.dragging||!this.length)return;const{stack:n}=this,o=t?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[t?"unshift":"push"](e),!t&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const a=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(e,this.index),l=this.slides[d];if(i===l){r();return}if(this.dir=ie(e,a),this.prevIndex=a,this.index=d,i&&!s.trigger(i,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,i])){this.index=this.prevIndex,r();return}const c=this._show(i,l,t).then(()=>(i&&s.trigger(i,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),new Promise(m=>{s.fastdom.write(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&s.trigger(i,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.index),s.clamp(s.getIndex(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.prevIndex),this.getIndex(e,t)},_show(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,{easing:n?t.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!e)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t,n){t===void 0&&(t=this.prevIndex),n===void 0&&(n=this.index);const o=this._getTransitioner(t!==n?t:!1,n);return o.translate(e),o},_getTransitioner(e,t,n,o){return e===void 0&&(e=this.prevIndex),t===void 0&&(t=this.index),n===void 0&&(n=this.dir||1),o===void 0&&(o=this.transitionOptions),new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),o)}}};function ie(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function he(e){return .5*e+300}var de={mixins:[ae],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:U},computed:{animation(e){let{animation:t,Animations:n}=e;return{...n[t]||n.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:t}=e;s.addClass(t,this.clsActive)},itemshown(e){let{target:t}=e;s.addClass(t,this.clsActivated)},itemhidden(e){let{target:t}=e;s.removeClass(t,this.clsActive,this.clsActivated)}}},ce={mixins:[N,K,B,de],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:D,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=s.$(this.template),t=s.$(this.selList,e);this.items.forEach(()=>s.append(t,"<li>")),this.$mount(s.append(this.container,e))},computed:{caption(e,t){let{selCaption:n}=e;return s.$(n,t)}},events:[{name:s.pointerMove+" "+s.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=D.scale,s.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){s.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,t){const{source:n,type:o,alt:r="",poster:a,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let d;const l={frameborder:"0",allow:"autoplay",allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":""+this.videoAutoplay};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i))try{const{width:c,height:m}=await s.getImage(n,i.srcset,i.size);this.setItem(t,x("img",{src:n,width:c,height:m,alt:r,...i}))}catch{this.setError(t)}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=x("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});s.on(c,"loadedmetadata",()=>{s.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(t,c)}),s.on(c,"error",()=>this.setError(t))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,x("iframe",{src:n,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(d=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,x("iframe",{src:"https://www.youtube"+(d[1]||"")+".com/embed/"+d[2]+(d[3]?"?"+d[3]:""),width:1920,height:1080,...l,...i}));else if(d=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(t,x("iframe",{src:"https://player.vimeo.com/video/"+d[1]+(d[2]?"?"+d[2]:""),width:m,height:c,...l,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e){return e===void 0&&(e=this.index),this.items[s.getIndex(e,this.slides)]},setItem(e,t){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(e),t)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function x(e,t){const n=s.fragment("<"+e+">");return s.attr(n,t),n}var z={install:le,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get(e,t){let{toggle:n}=e;return s.$$(n,t)},watch(){this.hide()}}},disconnected(){this.hide()},events:[{name:"click",delegate(){return this.toggle+":not(.uk-disabled)"},handler(e){e.preventDefault(),this.show(e.current)}}],methods:{show(e){const t=s.uniqueBy(this.toggles.map(j),"source");if(s.isElement(e)){const{source:n}=j(e);e=s.findIndex(t,o=>{let{source:r}=o;return n===r})}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:t}),s.on(this.panel.$el,"hidden",()=>this.panel=!1),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function le(e,t){e.lightboxPanel||e.component("lightboxPanel",ce),s.assign(t.props,e.component("lightboxPanel").options.props)}function j(e){const t={};for(const n of["href","caption","type","poster","alt","attrs"])t[n==="href"?"source":n]=s.data(e,n);return t.attrs=s.parseOptions(t.attrs),t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",z),z});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container(s){let{container:e}=s;return e===!0&&this.$container||e&&t.$(e)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:null,pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp(s){let{pos:e}=s;return"margin"+(t.startsWith(e,"top")?"Top":"Bottom")},startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=t.$("."+this.clsContainer+"-"+this.pos,this.container)||t.append(this.container,'<div class="'+this.clsContainer+" "+this.clsContainer+"-"+this.pos+'" style="display: block"></div>');this.$mount(t.append(s,'<div class="'+this.clsMsg+(this.status?" "+this.clsMsg+"-"+this.status:"")+'"> <a href class="'+this.clsClose+'" data-uk-close></a> <div>'+this.message+"</div> </div>"))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){t.closest(s.target,'a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
connected() {
|
|
59
|
-
const media = toMedia(this.media);
|
|
59
|
+
const media = toMedia(this.media, this.$el);
|
|
60
60
|
this.matchMedia = true;
|
|
61
61
|
if (media) {
|
|
62
62
|
this.mediaObj = window.matchMedia(media);
|
|
@@ -77,11 +77,10 @@
|
|
|
77
77
|
} };
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
function toMedia(value) {
|
|
80
|
+
function toMedia(value, element) {
|
|
81
81
|
if (uikitUtil.isString(value)) {
|
|
82
82
|
if (uikitUtil.startsWith(value, '@')) {
|
|
83
|
-
|
|
84
|
-
value = uikitUtil.toFloat(uikitUtil.getCssVar(name));
|
|
83
|
+
value = uikitUtil.toFloat(uikitUtil.css(element, "--uk-breakpoint-" + value.substr(1)));
|
|
85
84
|
} else if (isNaN(value)) {
|
|
86
85
|
return value;
|
|
87
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.14.4-dev.
|
|
1
|
+
/*! UIkit 3.14.4-dev.ae765cd84 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(r,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],m):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitParallax=m(r.UIkit.util))})(this,function(r){"use strict";var m={connected(){var e;this.registerObserver(r.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},T={connected(){B(this._uid,()=>this.$emit("scroll"))},disconnected(){_(this._uid)}};const y=new Map;let b;function B(e,n){b=b||r.on(window,"scroll",()=>y.forEach(t=>t()),{passive:!0,capture:!0}),y.set(e,n)}function _(e){y.delete(e),b&&!y.size&&(b(),b=null)}var q={props:{media:Boolean},data:{media:!1},connected(){const e=H(this.media,this.$el);if(this.matchMedia=!0,e){this.mediaObj=window.matchMedia(e);const n=()=>{this.matchMedia=this.mediaObj.matches,r.trigger(this.$el,r.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=r.on(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var e;(e=this.offMediaObj)==null||e.call(this)}};function H(e,n){if(r.isString(e)){if(r.startsWith(e,"@"))e=r.toFloat(r.css(n,"--uk-breakpoint-"+e.substr(1)));else if(isNaN(e))return e}return e&&r.isNumeric(e)?"(min-width: "+e+"px)":""}r.memoize(async e=>e?r.startsWith(e,"data:")?decodeURIComponent(e.split(",")[1]):(await fetch(e)).text():Promise.reject());function V(e){return Math.ceil(Math.max(0,...r.$$("[stroke]",e).map(n=>{try{return n.getTotalLength()}catch{return 0}})))}const p={x:M,y:M,rotate:M,scale:M,color:P,backgroundColor:P,borderColor:P,blur:l,hue:l,fopacity:l,grayscale:l,invert:l,saturate:l,sepia:l,opacity:J,stroke:K,bgx:I,bgy:I},{keys:j}=Object;var A={mixins:[q],props:L(j(p),"list"),data:L(j(p),void 0),computed:{props(e,n){const t={};for(const s in e)s in p&&!r.isUndefined(e[s])&&(t[s]=e[s].slice());const o={};for(const s in t)o[s]=p[s](s,n,t[s],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const e in this.getCss(0))r.css(this.$el,e,"")},getCss(e){const n={transform:"",filter:""};for(const t in this.props)this.props[t](n,e);return n}}};function M(e,n,t){let o=$(t)||{x:"px",y:"px",rotate:"deg"}[e]||"",s;return e==="x"||e==="y"?(e="translate"+r.ucfirst(e),s=a=>r.toFloat(r.toFloat(a).toFixed(o==="px"?0:6))):e==="scale"&&(o="",s=a=>$([a])?r.toPx(a,"width",n,!0)/n.offsetWidth:a),t.length===1&&t.unshift(e==="scale"?1:0),t=g(t,s),(a,c)=>{a.transform+=" "+e+"("+x(t,c)+o+")"}}function P(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t,o=>G(n,o)),(o,s)=>{const[a,c,i]=E(t,s),d=a.map((u,f)=>(u+=i*(c[f]-u),f===3?r.toFloat(u):parseInt(u,10))).join(",");o[e]="rgba("+d+")"}}function G(e,n){return w(e,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(r.toFloat)}function l(e,n,t){t.length===1&&t.unshift(0);const o=$(t)||{blur:"px",hue:"deg"}[e]||"%";return e={fopacity:"opacity",hue:"hue-rotate"}[e]||e,t=g(t),(s,a)=>{const c=x(t,a);s.filter+=" "+e+"("+(c+o)+")"}}function J(e,n,t){return t.length===1&&t.unshift(w(n,e,"")),t=g(t),(o,s)=>{o[e]=x(t,s)}}function K(e,n,t){t.length===1&&t.unshift(0);const o=$(t),s=V(n);return t=g(t.reverse(),a=>(a=r.toFloat(a),o==="%"?a*s/100:a)),t.some(a=>{let[c]=a;return c})?(r.css(n,"strokeDasharray",s),(a,c)=>{a.strokeDashoffset=x(t,c)}):r.noop}function I(e,n,t,o){t.length===1&&t.unshift(0);const s=e==="bgy"?"height":"width";o[e]=g(t,i=>r.toPx(i,s,n));const a=["bgx","bgy"].filter(i=>i in o);if(a.length===2&&e==="bgx")return r.noop;if(w(n,"backgroundSize","")==="cover")return Q(e,n,t,o);const c={};for(const i of a)c[i]=z(n,i);return C(a,c,o)}function Q(e,n,t,o){const s=X(n);if(!s.width)return r.noop;const a={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),i={};for(const f of c){const h=o[f].map(k=>{let[U]=k;return U}),v=Math.min(...h),S=Math.max(...h),D=h.indexOf(v)<h.indexOf(S),R=S-v;i[f]=(D?-R:0)-(D?v:S)+"px",a[f==="bgy"?"height":"width"]+=R}const d=r.Dimensions.cover(s,a);for(const f of c){const h=f==="bgy"?"height":"width",v=d[h]-a[h];i[f]="max("+z(n,f)+",-"+v+"px) + "+i[f]}const u=C(c,i,o);return(f,h)=>{u(f,h),f.backgroundSize=d.width+"px "+d.height+"px",f.backgroundRepeat="no-repeat"}}function z(e,n){return w(e,"background-position-"+n.substr(-1),"")}function C(e,n,t){return function(o,s){for(const a of e){const c=x(t[a],s);o["background-position-"+a.substr(-1)]="calc("+n[a]+" + "+c+"px)"}}}const F={};function X(e){const n=r.css(e,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[n])return F[n];const t=new Image;return n&&(t.src=n,!t.naturalWidth)?(t.onload=()=>{F[n]=O(t),r.trigger(e,r.createEvent("load",!1))},O(t)):F[n]=O(t)}function O(e){return{width:e.naturalWidth,height:e.naturalHeight}}function g(e,n){n===void 0&&(n=r.toFloat);const t=[],{length:o}=e;let s=0;for(let a=0;a<o;a++){let[c,i]=r.isString(e[a])?e[a].trim().split(" "):[e[a]];if(c=n(c),i=i?r.toFloat(i)/100:null,a===0?i===null?i=0:i&&t.push([c,0]):a===o-1&&(i===null?i=1:i!==1&&(t.push([c,i]),i=1)),t.push([c,i]),i===null)s++;else if(s){const d=t[a-s-1][1],u=(i-d)/(s+1);for(let f=s;f>0;f--)t[a-f][1]=d+u*(s-f+1);s=0}}return t}function E(e,n){const t=r.findIndex(e.slice(1),o=>{let[,s]=o;return n<=s})+1;return[e[t-1][0],e[t][0],(n-e[t-1][1])/(e[t][1]-e[t-1][1])]}function x(e,n){const[t,o,s]=E(e,n);return r.isNumber(t)?t+Math.abs(t-o)*s*(t<o?1:-1):+o}const Y=/^-?\d+(\S*)/;function $(e,n){for(const t of e){const o=t.match==null?void 0:t.match(Y);if(o)return o[1]}return n}function w(e,n,t){const o=e.style[n],s=r.css(r.css(e,n,t),n);return e.style[n]=o,s}function L(e,n){return e.reduce((t,o)=>(t[o]=n,t),{})}var N={mixins:[A,m,T],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target(e,n){let{target:t}=e;return W(t&&r.query(t,n)||n)},start(e){let{start:n}=e;return r.toPx(n,"height",this.target,!0)},end(e){let{end:n,viewport:t}=e;return r.toPx(n||(t=(1-t)*100)&&t+"vh+"+t+"%","height",this.target,!0)}},update:{read(e,n){let{percent:t}=e;if(n.has("scroll")||(t=!1),!this.matchMedia)return;const o=t;return t=Z(r.scrolledOver(this.target,this.start,this.end),this.easing),{percent:t,style:o===t?!1:this.getCss(t)}},write(e){let{style:n}=e;if(!this.matchMedia){this.reset();return}n&&r.css(this.$el,n)},events:["scroll","resize"]}};function Z(e,n){return n>=0?Math.pow(e,n+1):1-Math.pow(1-e,1-n)}function W(e){return e?"offsetTop"in e?e:W(r.parent(e)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",N),N});
|