uikit 3.16.24-dev.d6158da87 → 3.16.25-dev.12f581d90
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/.eslintrc.json +0 -9
- package/.prettierrc.json +3 -4
- package/CHANGELOG.md +2 -1
- package/build/build.js +2 -2
- package/build/less.js +2 -2
- package/build/prefix.js +3 -3
- package/build/release.js +7 -7
- package/build/scope.js +3 -3
- package/build/scss.js +9 -9
- package/build/util.js +11 -11
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +2 -2
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +18 -18
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +351 -350
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +353 -352
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +6 -6
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +69 -69
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +37 -37
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +222 -224
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +37 -37
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +300 -302
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +2 -2
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +95 -95
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +2 -2
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +452 -449
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +6837 -6836
- package/dist/js/uikit.min.js +1 -1
- package/package.json +8 -7
- package/src/js/api/app.js +1 -1
- package/src/js/api/boot.js +2 -2
- package/src/js/api/component.js +1 -1
- package/src/js/api/computed.js +2 -2
- package/src/js/api/events.js +2 -2
- package/src/js/api/global.js +3 -3
- package/src/js/api/hooks.js +4 -4
- package/src/js/api/instance.js +3 -3
- package/src/js/api/log.js +1 -1
- package/src/js/api/observables.js +1 -1
- package/src/js/api/observer.js +2 -2
- package/src/js/api/options.js +2 -2
- package/src/js/api/props.js +2 -2
- package/src/js/api/state.js +2 -2
- package/src/js/components/countdown.js +1 -1
- package/src/js/components/filter.js +5 -5
- package/src/js/components/internal/lightbox-animations.js +1 -1
- package/src/js/components/internal/slider-transitioner.js +6 -6
- package/src/js/components/internal/slideshow-animations.js +1 -1
- package/src/js/components/lightbox-panel.js +10 -10
- package/src/js/components/lightbox.js +2 -2
- package/src/js/components/notification.js +4 -4
- package/src/js/components/parallax.js +3 -3
- package/src/js/components/slider-parallax.js +1 -1
- package/src/js/components/slider.js +12 -12
- package/src/js/components/slideshow.js +3 -3
- package/src/js/components/sortable.js +4 -4
- package/src/js/components/tooltip.js +6 -6
- package/src/js/components/upload.js +4 -4
- package/src/js/core/accordion.js +8 -8
- package/src/js/core/alert.js +2 -2
- package/src/js/core/cover.js +1 -1
- package/src/js/core/drop.js +12 -12
- package/src/js/core/dropnav.js +7 -7
- package/src/js/core/form-custom.js +1 -1
- package/src/js/core/grid.js +9 -9
- package/src/js/core/height-match.js +2 -2
- package/src/js/core/height-viewport.js +1 -1
- package/src/js/core/icon.js +23 -23
- package/src/js/core/img.js +2 -2
- package/src/js/core/index.js +16 -14
- package/src/js/core/leader.js +2 -2
- package/src/js/core/modal.js +7 -7
- package/src/js/core/navbar.js +4 -4
- package/src/js/core/offcanvas.js +3 -3
- package/src/js/core/overflow-auto.js +3 -3
- package/src/js/core/responsive.js +3 -3
- package/src/js/core/scrollspy-nav.js +1 -1
- package/src/js/core/scrollspy.js +1 -1
- package/src/js/core/sticky.js +12 -12
- package/src/js/core/svg.js +4 -4
- package/src/js/core/switcher.js +7 -7
- package/src/js/core/tab.js +2 -2
- package/src/js/core/toggle.js +5 -5
- package/src/js/core/video.js +1 -1
- package/src/js/mixin/animate.js +1 -1
- package/src/js/mixin/i18n.js +1 -1
- package/src/js/mixin/internal/animate-fade.js +14 -14
- package/src/js/mixin/internal/animate-slide.js +1 -1
- package/src/js/mixin/internal/scroll.js +1 -1
- package/src/js/mixin/modal.js +15 -12
- package/src/js/mixin/parallax.js +2 -2
- package/src/js/mixin/position.js +2 -2
- package/src/js/mixin/slider-drag.js +1 -1
- package/src/js/mixin/slider-nav.js +8 -9
- package/src/js/mixin/slider.js +9 -9
- package/src/js/mixin/slideshow.js +1 -1
- package/src/js/mixin/togglable.js +4 -4
- package/src/js/uikit-core.js +2 -2
- package/src/js/uikit.js +2 -2
- package/src/js/util/animation.js +8 -8
- package/src/js/util/class.js +1 -1
- package/src/js/util/dimensions.js +5 -5
- package/src/js/util/dom.js +3 -3
- package/src/js/util/event.js +3 -3
- package/src/js/util/filter.js +1 -1
- package/src/js/util/lang.js +4 -4
- package/src/js/util/observer.js +2 -2
- package/src/js/util/player.js +1 -1
- package/src/js/util/position.js +5 -5
- package/src/js/util/selector.js +1 -1
- package/src/js/util/style.js +1 -1
- package/src/js/util/svg.js +2 -2
- package/src/js/util/viewport.js +6 -6
- package/tests/js/index.js +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.25-dev.12f581d90 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
function toMedia(value, element) {
|
|
38
38
|
if (uikitUtil.isString(value)) {
|
|
39
39
|
if (uikitUtil.startsWith(value, "@")) {
|
|
40
|
-
value = uikitUtil.toFloat(uikitUtil.css(element,
|
|
40
|
+
value = uikitUtil.toFloat(uikitUtil.css(element, "--uk-breakpoint-".concat(value.substr(1))));
|
|
41
41
|
} else if (isNaN(value)) {
|
|
42
42
|
return value;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
return value && uikitUtil.isNumeric(value) ?
|
|
45
|
+
return value && uikitUtil.isNumeric(value) ? "(min-width: ".concat(value, "px)") : "";
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
function startsWith(str, search) {
|
|
@@ -85,6 +85,28 @@
|
|
|
85
85
|
return (key) => cache[key] || (cache[key] = fn(key));
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
function parent(element) {
|
|
89
|
+
var _a;
|
|
90
|
+
return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
|
|
91
|
+
}
|
|
92
|
+
function filter(element, selector) {
|
|
93
|
+
return toNodes(element).filter((element2) => matches(element2, selector));
|
|
94
|
+
}
|
|
95
|
+
function matches(element, selector) {
|
|
96
|
+
return toNodes(element).some((element2) => element2.matches(selector));
|
|
97
|
+
}
|
|
98
|
+
function closest(element, selector) {
|
|
99
|
+
return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
|
|
100
|
+
}
|
|
101
|
+
function children(element, selector) {
|
|
102
|
+
element = toNode(element);
|
|
103
|
+
const children2 = element ? toArray(element.children) : [];
|
|
104
|
+
return selector ? filter(children2, selector) : children2;
|
|
105
|
+
}
|
|
106
|
+
function index(element, ref) {
|
|
107
|
+
return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);
|
|
108
|
+
}
|
|
109
|
+
|
|
88
110
|
function attr(element, name, value) {
|
|
89
111
|
var _a;
|
|
90
112
|
if (isObject(name)) {
|
|
@@ -112,28 +134,6 @@
|
|
|
112
134
|
toNodes(element).forEach((element2) => element2.removeAttribute(name));
|
|
113
135
|
}
|
|
114
136
|
|
|
115
|
-
function parent(element) {
|
|
116
|
-
var _a;
|
|
117
|
-
return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
|
|
118
|
-
}
|
|
119
|
-
function filter(element, selector) {
|
|
120
|
-
return toNodes(element).filter((element2) => matches(element2, selector));
|
|
121
|
-
}
|
|
122
|
-
function matches(element, selector) {
|
|
123
|
-
return toNodes(element).some((element2) => element2.matches(selector));
|
|
124
|
-
}
|
|
125
|
-
function closest(element, selector) {
|
|
126
|
-
return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
|
|
127
|
-
}
|
|
128
|
-
function children(element, selector) {
|
|
129
|
-
element = toNode(element);
|
|
130
|
-
const children2 = element ? toArray(element.children) : [];
|
|
131
|
-
return selector ? filter(children2, selector) : children2;
|
|
132
|
-
}
|
|
133
|
-
function index(element, ref) {
|
|
134
|
-
return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
137
|
function findAll(selector, context) {
|
|
138
138
|
return toNodes(_query(selector, toNode(context), "querySelectorAll"));
|
|
139
139
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
sel = selectors.slice(1).join(" ");
|
|
167
167
|
}
|
|
168
168
|
if (ctx) {
|
|
169
|
-
selector +=
|
|
169
|
+
selector += "".concat(selector ? "," : "").concat(domPath(ctx), " ").concat(sel);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
context = document;
|
|
@@ -186,12 +186,12 @@
|
|
|
186
186
|
while (element.parentNode) {
|
|
187
187
|
const id = attr(element, "id");
|
|
188
188
|
if (id) {
|
|
189
|
-
names.unshift(
|
|
189
|
+
names.unshift("#".concat(escape(id)));
|
|
190
190
|
break;
|
|
191
191
|
} else {
|
|
192
192
|
let { tagName } = element;
|
|
193
193
|
if (tagName !== "HTML") {
|
|
194
|
-
tagName +=
|
|
194
|
+
tagName += ":nth-child(".concat(index(element) + 1, ")");
|
|
195
195
|
}
|
|
196
196
|
names.unshift(tagName);
|
|
197
197
|
element = element.parentNode;
|
|
@@ -308,7 +308,7 @@
|
|
|
308
308
|
let unit = getUnit(stops) || { x: "px", y: "px", rotate: "deg" }[prop] || "";
|
|
309
309
|
let transformFn2;
|
|
310
310
|
if (prop === "x" || prop === "y") {
|
|
311
|
-
prop =
|
|
311
|
+
prop = "translate".concat(uikitUtil.ucfirst(prop));
|
|
312
312
|
transformFn2 = (stop) => uikitUtil.toFloat(uikitUtil.toFloat(stop).toFixed(unit === "px" ? 0 : 6));
|
|
313
313
|
} else if (prop === "scale") {
|
|
314
314
|
unit = "";
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
}
|
|
320
320
|
stops = parseStops(stops, transformFn2);
|
|
321
321
|
return (css2, percent) => {
|
|
322
|
-
css2.transform +=
|
|
322
|
+
css2.transform += " ".concat(prop, "(").concat(getValue(stops, percent)).concat(unit, ")");
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
325
|
function colorFn(prop, el, stops) {
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
value2 += p * (end[i] - value2);
|
|
334
334
|
return i === 3 ? uikitUtil.toFloat(value2) : parseInt(value2, 10);
|
|
335
335
|
}).join(",");
|
|
336
|
-
css2[prop] =
|
|
336
|
+
css2[prop] = "rgba(".concat(value, ")");
|
|
337
337
|
};
|
|
338
338
|
}
|
|
339
339
|
function parseColor(el, color) {
|
|
@@ -348,7 +348,7 @@
|
|
|
348
348
|
stops = parseStops(stops);
|
|
349
349
|
return (css2, percent) => {
|
|
350
350
|
const value = getValue(stops, percent);
|
|
351
|
-
css2.filter +=
|
|
351
|
+
css2.filter += " ".concat(prop, "(").concat(value + unit, ")");
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
function cssPropFn(prop, el, stops) {
|
|
@@ -414,30 +414,30 @@
|
|
|
414
414
|
const max = Math.max(...values);
|
|
415
415
|
const down = values.indexOf(min) < values.indexOf(max);
|
|
416
416
|
const diff = max - min;
|
|
417
|
-
positions[prop2] =
|
|
417
|
+
positions[prop2] = "".concat((down ? -diff : 0) - (down ? min : max), "px");
|
|
418
418
|
dimEl[prop2 === "bgy" ? "height" : "width"] += diff;
|
|
419
419
|
}
|
|
420
420
|
const dim = uikitUtil.Dimensions.cover(dimImage, dimEl);
|
|
421
421
|
for (const prop2 of bgProps) {
|
|
422
422
|
const attr = prop2 === "bgy" ? "height" : "width";
|
|
423
423
|
const overflow = dim[attr] - dimEl[attr];
|
|
424
|
-
positions[prop2] =
|
|
424
|
+
positions[prop2] = "max(".concat(getBackgroundPos(el, prop2), ",-").concat(overflow, "px) + ").concat(positions[prop2]);
|
|
425
425
|
}
|
|
426
426
|
const fn = setBackgroundPosFn(bgProps, positions, props2);
|
|
427
427
|
return (css2, percent) => {
|
|
428
428
|
fn(css2, percent);
|
|
429
|
-
css2.backgroundSize =
|
|
429
|
+
css2.backgroundSize = "".concat(dim.width, "px ").concat(dim.height, "px");
|
|
430
430
|
css2.backgroundRepeat = "no-repeat";
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
433
|
function getBackgroundPos(el, prop) {
|
|
434
|
-
return getCssValue(el,
|
|
434
|
+
return getCssValue(el, "background-position-".concat(prop.substr(-1)), "");
|
|
435
435
|
}
|
|
436
436
|
function setBackgroundPosFn(bgProps, positions, props2) {
|
|
437
437
|
return function(css2, percent) {
|
|
438
438
|
for (const prop of bgProps) {
|
|
439
439
|
const value = getValue(props2[prop], percent);
|
|
440
|
-
css2[
|
|
440
|
+
css2["background-position-".concat(prop.substr(-1))] = "calc(".concat(positions[prop], " + ").concat(value, "px)");
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
443
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.
|
|
1
|
+
/*! UIkit 3.16.25-dev.12f581d90 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(c,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],b):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlider_parallax=b(c.UIkit.util))})(this,function(c){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,"--uk-breakpoint-".concat(n.substr(1))));else if(isNaN(n))return n}return n&&c.isNumeric(n)?"(min-width: ".concat(n,"px)"):""}function A(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Nn,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function T(n){return E(n)>=1}function U(n){return E(n)===1}function E(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function x(n){return u(n)[0]}function u(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function j(n){const e=Object.create(null);return t=>e[t]||(e[t]=n(t))}function W(n){var e;return(e=x(n))==null?void 0:e.parentElement}function tn(n,e){return u(n).filter(t=>_(t,e))}function _(n,e){return u(n).some(t=>t.matches(e))}function R(n,e){return U(n)?n.closest(A(e,">")?e.slice(1):e):u(n).map(t=>R(t,e)).filter(Boolean)}function en(n,e){n=x(n);const t=n?Y(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?u(n).indexOf(x(e)):en(W(n)).indexOf(n)}function O(n,e,t){var o;if(C(e)){for(const r in e)O(n,r,e[r]);return}if(nn(t))return(o=x(n))==null?void 0:o.getAttribute(e);for(const r of u(n))Z(t)&&(t=t.call(r,O(r,e))),t===null?on(r,e):r.setAttribute(e,t)}function on(n,e){u(n).forEach(t=>t.removeAttribute(e))}function cn(n,e){return u(dn(n,x(e),"querySelectorAll"))}const sn=/(^|[^\\],)\s*[!>+~-]/,an=j(n=>n.match(sn)),fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=j(n=>n.replace(fn,"$1 *"));function dn(n,e=document,t){if(!n||!M(n))return n;if(n=un(n),an(n)){const o=ln(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const a=r.substr(1).trim().split(" ");if(i=R(W(e),a[0]),r=a.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const a=r.substr(1).trim().split(" "),s=(i||e).previousElementSibling;i=_(s,r.substr(1))?s:null,r=a.slice(1).join(" ")}i&&(n+="".concat(n?",":"").concat(mn(i)," ").concat(r))}e=document}try{return e[t](n)}catch{return null}}const hn=/.*?[^\\](?:,|$)/g,ln=j(n=>n.match(hn).map(e=>e.replace(/,$/,"").trim()));function mn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift("#".concat(gn(t)));break}else{let{tagName:o}=n;o!=="HTML"&&(o+=":nth-child(".concat(rn(n)+1,")")),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function gn(n){return M(n)?CSS.escape(n):""}const bn=/^\s*<(\w+|!)[^>]*>/,xn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function yn(n){const e=xn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("div");return bn.test(n)?t.insertAdjacentHTML("beforeend",n.trim()):t.textContent=n,pn(t.childNodes)}function pn(n){return n.length>1?n:n[0]}function wn(n,e){return vn(n)?u(yn(n)):cn(n,e)}function vn(n){return M(n)&&A(n.trim(),"<")}function Fn(n){return Math.ceil(Math.max(0,...wn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const v={x:F,y:F,rotate:F,scale:F,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Cn,stroke:Mn,bgx:B,bgy:B},{keys:z}=Object;var $n={mixins:[b],props:L(z(v),"list"),data:L(z(v),void 0),computed:{props(n,e){const t={};for(const r in n)r in v&&!c.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=v[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={transform:"",filter:""};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).filter(t=>e[t]!=="").map(c.propName).join(","),e}}};function F(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n="translate".concat(c.ucfirst(n)),r=i=>c.toFloat(c.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>S([i])?c.toPx(i,"width",e,!0)/e.offsetWidth:i),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,a)=>{i.transform+=" ".concat(n,"(").concat(y(t,a)).concat(o,")")}}function I(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=g(t,o=>Sn(e,o)),(o,r)=>{const[i,a,s]=q(t,r),h=i.map((l,f)=>(l+=s*(a[f]-l),f===3?c.toFloat(l):parseInt(l,10))).join(",");o[n]="rgba(".concat(h,")")}}function Sn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const a=y(t,i);r.filter+=" ".concat(n,"(").concat(a+o,")")}}function Cn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=g(t),(o,r)=>{o[n]=y(t,r)}}function Mn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=Fn(e);return t=g(t.reverse(),i=>(i=c.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(c.css(e,"strokeDasharray",r),(i,a)=>{i.strokeDashoffset=y(t,a)}):c.noop}function B(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,s=>c.toPx(s,r,e));const i=["bgx","bgy"].filter(s=>s in o);if(i.length===2&&n==="bgx")return c.noop;if(p(e,"backgroundSize","")==="cover")return jn(n,e,t,o);const a={};for(const s of i)a[s]=D(e,s);return H(i,a,o)}function jn(n,e,t,o){const r=On(e);if(!r.width)return c.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),s={};for(const f of a){const d=o[f].map(([Pn])=>Pn),w=Math.min(...d),N=Math.max(...d),K=d.indexOf(w)<d.indexOf(N),Q=N-w;s[f]="".concat((K?-Q:0)-(K?w:N),"px"),i[f==="bgy"?"height":"width"]+=Q}const h=c.Dimensions.cover(r,i);for(const f of a){const d=f==="bgy"?"height":"width",w=h[d]-i[d];s[f]="max(".concat(D(e,f),",-").concat(w,"px) + ").concat(s[f])}const l=H(a,s,o);return(f,d)=>{l(f,d),f.backgroundSize="".concat(h.width,"px ").concat(h.height,"px"),f.backgroundRepeat="no-repeat"}}function D(n,e){return p(n,"background-position-".concat(e.substr(-1)),"")}function H(n,e,t){return function(o,r){for(const i of n){const a=y(t[i],r);o["background-position-".concat(i.substr(-1))]="calc(".concat(e[i]," + ").concat(a,"px)")}}}const $={};function On(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if($[e])return $[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{$[e]=P(t),c.trigger(n,c.createEvent("load",!1))},P(t)):$[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=c.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[a,s]=c.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=e(a),s=s?c.toFloat(s)/100:null,i===0?s===null?s=0:s&&t.push([a,0]):i===o-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)r++;else if(r){const h=t[i-r-1][1],l=(s-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function q(n,e){const t=c.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function y(n,e){const[t,o,r]=q(n,e);return c.isNumber(t)?t+Math.abs(t-o)*r*(t<o?1:-1):+o}const In=/^-?\d+(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,In);if(r)return r[1]}return e}function p(n,e,t){const o=n.style[e],r=c.css(c.css(n,e,t),e);return n.style[e]=o,r}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var V={mixins:[$n],data:{selItem:"!li"},beforeConnect(){this.item=c.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,r,e)),a=this.getCss(G(n)?.5:r>0?1:0);c.fastdom.write(()=>{c.css(this.$el,i),c.Transition.start(this.$el,a,t,o).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,o))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",V),V});
|