uikit 3.16.4-dev.8705d5334 → 3.16.4-dev.a8da41c36
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 +2 -1
- 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 +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +3 -6
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +26 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- 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 +44 -61
- 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 +71 -66
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +1 -2
- package/src/js/api/hooks.js +2 -6
- package/src/js/components/filter.js +2 -6
- package/src/js/components/slider.js +33 -0
- package/src/js/core/cover.js +16 -28
- package/src/js/core/drop.js +2 -1
- package/src/js/core/height-match.js +5 -10
- package/src/js/core/scrollspy.js +1 -2
- package/src/js/util/lang.js +7 -7
- package/src/js/util/observer.js +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],s):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitCountdown=s(t.UIkit.util))})(this,function(t){"use strict";var s={connected(){t.addClass(this.$el,this.$options.id)}};const d=["days","hours","minutes","seconds"];var r={mixins:[s],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){t.attr(this.$el,"role",this.role),this.date=t.toFloat(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:[{name:"visibilitychange",el(){return document},handler(){document.hidden?this.stop():this.start()}}],methods:{start(){this.stop(),this.update(),this.timer||(t.trigger(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),t.trigger(this.$el,"countdownstop"),this.timer=null)},update(){const o=a(this.date);o.total||(this.stop(),this.end||(t.trigger(this.$el,"countdownend"),this.end=!0));for(const n of d){const i=t.$(this.clsWrapper.replace("%unit%",n),this.$el);if(!i)continue;let e=String(Math.trunc(o[n]));e=e.length<2?`0${e}`:e,i.textContent!==e&&(e=e.split(""),e.length!==i.children.length&&t.html(i,e.map(()=>"<span></span>").join("")),e.forEach((h,u)=>i.children[u].textContent=h))}}}};function a(o){const n=Math.max(0,o-Date.now())/1e3;return{total:n,seconds:n%60,minutes:n/60%60,hours:n/60/60%24,days:n/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",r),r});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -307,8 +307,8 @@
|
|
|
307
307
|
get({ target }, $el) {
|
|
308
308
|
return uikitUtil.$$(`${target} > *`, $el);
|
|
309
309
|
},
|
|
310
|
-
watch(list,
|
|
311
|
-
if (
|
|
310
|
+
watch(list, prev) {
|
|
311
|
+
if (prev) {
|
|
312
312
|
this.updateState();
|
|
313
313
|
}
|
|
314
314
|
},
|
|
@@ -411,9 +411,6 @@
|
|
|
411
411
|
const { filter = "", group = "", sort, order = "asc" } = getFilter(el, attr2);
|
|
412
412
|
return uikitUtil.isUndefined(sort) ? group in stateFilter && filter === stateFilter[group] || !filter && group && !(group in stateFilter) && !stateFilter[""] : stateSort === sort && stateOrder === order;
|
|
413
413
|
}
|
|
414
|
-
function isEqualList(listA, listB) {
|
|
415
|
-
return listA.length === listB.length && listA.every((el) => listB.includes(el));
|
|
416
|
-
}
|
|
417
414
|
function getSelector({ filter }) {
|
|
418
415
|
let selector = "";
|
|
419
416
|
uikitUtil.each(filter, (value) => selector += value || "");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(e,y){typeof exports=="object"&&typeof module<"u"?module.exports=y(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],y):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitFilter=y(e.UIkit.util))})(this,function(e){"use strict";function y(s){return A(s,"top","bottom")}function A(s,n,o){const t=[[]];for(const r of s){if(!e.isVisible(r))continue;let a=w(r);for(let c=t.length-1;c>=0;c--){const f=t[c];if(!f[0]){f.push(r);break}let h;if(f[0].offsetParent===r.offsetParent?h=w(f[0]):(a=w(r,!0),h=w(f[0],!0)),a[n]>=h[o]-1&&a[n]!==h[n]){t.push([r]);break}if(a[o]-1>h[n]||a[n]===h[n]){f.push(r);break}if(c===0){t.unshift([r]);break}}}return t}function w(s,n=!1){let{offsetTop:o,offsetLeft:t,offsetHeight:r,offsetWidth:a}=s;return n&&([o,t]=e.offsetPosition(s)),{top:o,left:t,bottom:o+r,right:t+a}}const g="uk-transition-leave",T="uk-transition-enter";function $(s,n,o,t=0){const r=u(n,!0),a={opacity:1},c={opacity:0},f=m=>()=>r===u(n)?m():Promise.reject(),h=f(async()=>{e.addClass(n,g),await Promise.all(P(n).map((m,l)=>new Promise(d=>setTimeout(()=>e.Transition.start(m,c,o/2,"ease").then(d),l*t)))),e.removeClass(n,g)}),i=f(async()=>{const m=e.height(n);e.addClass(n,T),s(),e.css(e.children(n),{opacity:0}),await B();const l=e.children(n),d=e.height(n);e.css(n,"alignContent","flex-start"),e.height(n,m);const p=P(n);e.css(l,c);const x=p.map(async(G,J)=>{await q(J*t),await e.Transition.start(G,a,o/2,"ease")});m!==d&&x.push(e.Transition.start(n,{height:d},o/2+p.length*t,"ease")),await Promise.all(x).then(()=>{e.removeClass(n,T),r===u(n)&&(e.css(n,{height:"",alignContent:""}),e.css(l,{opacity:""}),delete n.dataset.transition)})});return e.hasClass(n,g)?v(n).then(i):e.hasClass(n,T)?v(n).then(h).then(i):h().then(i)}function u(s,n){return n&&(s.dataset.transition=1+u(s)),e.toNumber(s.dataset.transition)||0}function v(s){return Promise.all(e.children(s).filter(e.Transition.inProgress).map(n=>new Promise(o=>e.once(n,"transitionend transitioncanceled",o))))}function P(s){return y(e.children(s)).reduce((n,o)=>n.concat(e.sortBy(o.filter(t=>e.isInView(t)),"offsetLeft")),[])}function B(){return new Promise(s=>requestAnimationFrame(s))}function q(s){return new Promise(n=>setTimeout(n,s))}async function N(s,n,o){await I();let t=e.children(n);const r=t.map(d=>S(d,!0)),a={...e.css(n,["height","padding"]),display:"block"};await Promise.all(t.concat(n).map(e.Transition.cancel)),s(),t=t.concat(e.children(n).filter(d=>!e.includes(t,d))),await Promise.resolve(),e.fastdom.flush();const c=e.attr(n,"style"),f=e.css(n,["height","padding"]),[h,i]=H(n,t,r),m=t.map(d=>({style:e.attr(d,"style")}));t.forEach((d,p)=>i[p]&&e.css(d,i[p])),e.css(n,a),e.trigger(n,"scroll"),e.fastdom.flush(),await I();const l=t.map((d,p)=>e.parent(d)===n&&e.Transition.start(d,h[p],o,"ease")).concat(e.Transition.start(n,f,o,"ease"));try{await Promise.all(l),t.forEach((d,p)=>{e.attr(d,m[p]),e.parent(d)===n&&e.css(d,"display",h[p].opacity===0?"none":"")}),e.attr(n,"style",c)}catch{e.attr(t,"style",""),L(n,a)}}function S(s,n){const o=e.css(s,"zIndex");return e.isVisible(s)?{display:"",opacity:n?e.css(s,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?e.index(s):o,...b(s)}:!1}function H(s,n,o){const t=n.map((a,c)=>e.parent(a)&&c in o?o[c]?e.isVisible(a)?b(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),r=t.map((a,c)=>{const f=e.parent(n[c])===s&&(o[c]||S(n[c]));if(!f)return!1;if(!a)delete f.opacity;else if(!("opacity"in a)){const{opacity:h}=f;h%1?a.opacity=1:delete f.opacity}return f});return[t,r]}function L(s,n){for(const o in n)e.css(s,o,"")}function b(s){const{height:n,width:o}=e.offset(s);return{height:n,width:o,transform:"",...e.position(s),...e.css(s,["marginTop","marginLeft"])}}function I(){return new Promise(s=>requestAnimationFrame(s))}var O={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(s,n=this.$el){const o=this.animation;return(o==="fade"?$:o==="delayed-fade"?(...r)=>$(...r,40):o?N:()=>(s(),Promise.resolve()))(s,n,this.duration).catch(e.noop)}}};const V={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var C={mixins:[O],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get({attrItem:s},n){return e.$$(`[${s}],[data-${s}]`,n)},watch(s){this.updateState();const n=e.$$(this.selActive,this.$el);for(const o of s){this.selActive!==!1&&e.toggleClass(o,this.cls,e.includes(n,o));const t=R(o);e.isTag(t,"a")&&e.attr(t,"role","button")}},immediate:!0},children:{get({target:s},n){return e.$$(`${s} > *`,n)},watch(s,n){n&&this.updateState()},immediate:!0}},events:[{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(s){s.type==="keydown"&&s.keyCode!==V.SPACE||e.closest(s.target,"a,button")&&(s.preventDefault(),this.apply(s.current))}}],methods:{apply(s){const n=this.getState(),o=F(s,this.attrItem,this.getState());D(n,o)||this.setState(o)},getState(){return this.toggles.filter(s=>e.hasClass(s,this.cls)).reduce((s,n)=>F(n,this.attrItem,s),{filter:{"":""},sort:[]})},async setState(s,n=!0){s={filter:{"":""},sort:[],...s},e.trigger(this.$el,"beforeFilter",[this,s]);for(const o of this.toggles)e.toggleClass(o,this.cls,M(o,this.attrItem,s));await Promise.all(e.$$(this.target,this.$el).map(o=>{const t=()=>{z(s,o,e.children(o)),this.$update(this.$el)};return n?this.animate(t,o):t()})),e.trigger(this.$el,"afterFilter",[this])},updateState(){e.fastdom.write(()=>this.setState(this.getState(),!1))}}};function E(s,n){return e.parseOptions(e.data(s,n),["filter"])}function D(s,n){return["filter","sort"].every(o=>e.isEqual(s[o],n[o]))}function z(s,n,o){const t=W(s);o.forEach(c=>e.css(c,"display",t&&!e.matches(c,t)?"none":""));const[r,a]=s.sort;if(r){const c=j(o,r,a);e.isEqual(c,o)||e.append(n,c)}}function F(s,n,o){const{filter:t,group:r,sort:a,order:c="asc"}=E(s,n);return(t||e.isUndefined(a))&&(r?t?(delete o.filter[""],o.filter[r]=t):(delete o.filter[r],(e.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":t||""})):o.filter={"":t||""}),e.isUndefined(a)||(o.sort=[a,c]),o}function M(s,n,{filter:o={"":""},sort:[t,r]}){const{filter:a="",group:c="",sort:f,order:h="asc"}=E(s,n);return e.isUndefined(f)?c in o&&a===o[c]||!a&&c&&!(c in o)&&!o[""]:t===f&&r===h}function W({filter:s}){let n="";return e.each(s,o=>n+=o||""),n}function j(s,n,o){return[...s].sort((t,r)=>e.data(t,n).localeCompare(e.data(r,n),void 0,{numeric:!0})*(o==="asc"||-1))}function R(s){return e.$("a,button",s)||s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",C),C});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.8705d5334 | https://www.getuikit.com | (c) 2014 - 2023 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_panel",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=u(s.UIkit.util))})(this,function(s){"use strict";let u;function q(e){const t=s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[{scrollHeight:o,clientHeight:a}]=s.scrollParents(r.target);a>=o&&r.cancelable&&r.preventDefault()},{passive:!1});if(u)return t;u=!0;const{scrollingElement:n}=document;return s.css(n,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:s.width(window)-n.clientWidth||""}),()=>{u=!1,t(),s.css(n,{overflowY:"",touchAction:"",paddingRight:""})}}function V(e){return["origin","pathname","search"].every(t=>e[t]===location[t])}function P(e,t=e.$el,n=""){if(t.id)return t.id;let r=`${e.$options.id}-${e._uid}${n}`;return s.$(`#${r}`)&&(r=P(e,t,`${n}-2`)),r}const f={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var O={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return G(e)},translate(e,t){return[{transform:y(t*-100*e)},{transform:y(t*100*(1-e))}]}}};function G(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e=0,t="%"){return e+=e?t:"",`translate3d(${e}, 0, 0)`}function C(e){return`scale3d(${e}, ${e}, 1)`}var B={...O,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)}]}}},X={connected(){s.addClass(this.$el,this.$options.id)}},Y={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&s.$(e)}}},J={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({animation:e}){return!!e[0]},hasTransition({animation:e}){return["slide","reveal"].some(t=>s.startsWith(e[0],t))}},methods:{toggleElement(e,t,n){return new Promise(r=>Promise.all(s.toNodes(e).map(o=>{const a=s.isBoolean(t)?t:!this.isToggled(o);if(!s.trigger(o,`before${a?"show":"hide"}`,[this]))return Promise.reject();const h=(s.isFunction(n)?n:n===!1||!this.hasAnimation?K:this.hasTransition?Q:Z)(o,a,this),i=a?this.clsEnter:this.clsLeave;s.addClass(o,i),s.trigger(o,a?"show":"hide",[this]);const l=()=>{s.removeClass(o,i),s.trigger(o,a?"shown":"hidden",[this])};return h?h.then(l,()=>(s.removeClass(o,i),Promise.reject())):l()})).then(r,s.noop))},isToggled(e=this.$el){return[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(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function K(e,t,{_toggle:n}){return s.Animation.cancel(e),s.Transition.cancel(e),n(e,t)}async function Q(e,t,{animation:n,duration:r,velocity:o,transition:a,_toggle:h}){var i;const[l="reveal",d="top"]=((i=n[0])==null?void 0:i.split("-"))||[],c=[["left","right"],["top","bottom"]],m=c[s.includes(c[0],d)?0:1],g=m[1]===d,A=["width","height"][c.indexOf(m)],b=`margin-${m[0]}`,E=`margin-${d}`;let $=s.dimensions(e)[A];const ge=s.Transition.inProgress(e);await s.Transition.cancel(e),t&&h(e,!0);const ue=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,E].map(W=>[W,e.style[W]])),I=s.dimensions(e),D=s.toFloat(s.css(e,b)),H=s.toFloat(s.css(e,E)),v=I[A]+H;!ge&&!t&&($+=H);const[_]=s.wrapInner(e,"<div>");s.css(_,{boxSizing:"border-box",height:I.height,width:I.width,...s.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",E])}),s.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[E]:0,width:I.width,height:I.height,overflow:"hidden",[A]:$});const z=$/v;r=(o*v+r)*(t?1-z:z);const R={[A]:t?v:0};g&&(s.css(e,b,v-$+D),R[b]=t?D:v+D),!g^l==="reveal"&&(s.css(_,b,-v+$),s.Transition.start(_,{[b]:t?0:-v},r,a));try{await s.Transition.start(e,R,r,a)}finally{s.css(e,ue),s.unwrap(_.firstChild),t||h(e,!1)}}function Z(e,t,n){s.Animation.cancel(e);const{animation:r,duration:o,_toggle:a}=n;return t?(a(e,!0),s.Animation.in(e,r[0],o,n.origin)):s.Animation.out(e,r[1]||r[0],o,n.origin).then(()=>a(e,!1))}const p=[];var k={mixins:[X,Y,J],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:e},t){return s.$(e,t)},transitionElement(){return this.panel},bgClose({bgClose:e}){return e&&this.panel}},connected(){s.attr(this.panel||this.$el,"role",this.role),this.overlay&&s.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){s.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(e){const{current:t,defaultPrevented:n}=e,{hash:r}=t;!n&&r&&V(t)&&!s.within(r,this.$el)&&s.$(r,document.body)?this.hide():s.matches(t,this.selClose)&&(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(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&ee(this),this.overlay&&q(this.$el),this.bgClose&&se(this),this.escClose&&te(this)];s.once(this.$el,"hidden",()=>e.forEach(t=>t&&t()),{self:!0}),s.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.matches(this.$el,":focus-within")||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,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,t,{transitionElement:n,_toggle:r}){return new Promise((o,a)=>s.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=a,r(e,t);const i=s.once(n,"transitionstart",()=>{s.once(n,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{i(),o()},U(s.css(n,"transitionDuration")))})).then(()=>delete e._reject)}function U(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function ee(e){return s.on(document,"focusin",t=>{s.last(p)===e&&!s.within(t.target,e.$el)&&e.$el.focus()})}function se(e){return s.on(document,s.pointerDown,({target:t})=>{s.last(p)!==e||e.overlay&&!s.within(t,e.$el)||s.within(t,e.panel)||s.once(document,`${s.pointerUp} ${s.pointerCancel} scroll`,({defaultPrevented:n,type:r,target:o})=>{!n&&r===s.pointerUp&&t===o&&e.hide()},!0)})}function te(e){return s.on(document,"keydown",t=>{t.keyCode===27&&s.last(p)===e&&e.hide()})}function ne(e,t,n,{animation:r,easing:o}){const{percent:a,translate:h,show:i=s.noop}=r,l=i(n),d=new s.Deferred;return{dir:n,show(c,m=0,g){const x=g?"linear":o;return c-=Math.round(c*s.clamp(m,-1,1)),this.translate(m),T(t,"itemin",{percent:m,duration:c,timing:x,dir:n}),T(e,"itemout",{percent:1-m,duration:c,timing:x,dir:n}),Promise.all([s.Transition.start(t,l[1],c,x),s.Transition.start(e,l[0],c,x)]).then(()=>{this.reset(),d.resolve()},s.noop),d.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const c in l[0])s.css([t,e],c,"")},forward(c,m=this.percent()){return s.Transition.cancel([t,e]),this.show(c,m,!0)},translate(c){this.reset();const m=h(c,n);s.css(t,m[1]),s.css(e,m[0]),T(t,"itemtranslatein",{percent:c,dir:n}),T(e,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(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 re={props:{i18n:Object},data:{i18n:null},methods:{t(e,...t){var n,r,o;let a=0;return((o=((n=this.i18n)==null?void 0:n[e])||((r=this.$options.i18n)==null?void 0:r[e]))==null?void 0:o.replace(/%s/g,()=>t[a++]||""))||""}}},oe={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},ae={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:e},t){return s.$(e,t)},watch(e,t){s.attr(e,"role","tablist"),t&&this.$emit()},immediate:!0},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems:{get(e,t){return s.$$(this.selNavItem,t)},watch(){this.$emit()}}},connected(){s.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((e,t)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",t+1,this.length),"aria-roledescription":this.nav?null:"slide"})),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("")),s.attr(s.children(this.nav).concat(this.list),"role","presentation");for(const e of this.navItems){const t=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let r,o=null;if(s.isNumeric(t)){const a=s.toNumber(t),h=this.slides[a];h&&(h.id||(h.id=P(this,h,`-item-${t}`)),o=h.id),r=this.t("slideX",s.toFloat(t)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=P(this,this.list,"-items")),o=this.list.id),r=this.t(t);s.attr(n,{"aria-controls":o,"aria-label":s.attr(n,"aria-label")||r})}}},{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(e){s.closest(e.target,"a,button")&&(e.type==="click"||e.keyCode===f.SPACE)&&(e.preventDefault(),this.show(s.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(e){const{current:t,keyCode:n}=e,r=s.data(t,this.attrItem);if(!s.isNumeric(r))return;let o=n===f.HOME?0:n===f.END?"last":n===f.LEFT?"previous":n===f.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();let t,n;for(const r of this.navItems){const o=s.data(r,this.attrItem),a=s.$("a,button",r)||r;if(s.isNumeric(o)){const i=s.toNumber(o)===e;s.toggleClass(r,this.clsActive,i),s.attr(a,{"aria-selected":i,tabindex:i?null:-1}),i&&(n=a),t=t||s.matches(a,":focus")}else s.toggleClass(r,"uk-invisible",this.finite&&(o==="previous"&&e===0||o==="next"&&e>=this.maxIndex));t&&n&&n.focus()}}}};const S={passive:!1,capture:!0},M={passive:!0,capture:!0},ie="touchstart mousedown",N="touchmove mousemove",F="touchend touchcancel mouseup click input scroll";var he={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const r=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,t(n)}}},events:[{name:ie,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!s.isTouch(e)&&ce(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:N,el(){return this.list},handler:s.noop,...S}],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,N,this.move,S),s.on(document,F,this.end,M),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:r}=this,o=Math.abs(t),a=this.getIndex(r+this.dir,r),h=this._getDistance(r,a)||n[r].offsetWidth;for(;a!==r&&o>h;)this.drag-=h*this.dir,r=a,o-=h,a=this.getIndex(r+this.dir,r),h=this._getDistance(r,a)||n[r].offsetWidth;this.percent=o/h;const i=n[r],l=n[a],d=this.index!==a,c=r===a;let m;[this.index,this.prevIndex].filter(g=>!s.includes([a,r],g)).forEach(g=>{s.trigger(n[g],"itemhidden",[this]),c&&(m=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||m)&&s.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=r,this.index=a,!c&&s.trigger(i,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),i,!c&&l),d&&(!c&&s.trigger(i,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,N,this.move,S),s.off(document,F,this.end,M),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 ce(e){return s.css(e,"userSelect")!=="none"&&s.toNodes(e.childNodes).some(t=>t.nodeType===3&&t.textContent.trim())}var de={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live","polite"),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()}},{name:`${s.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${s.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),s.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),s.attr(this.list,"aria-live","polite")}}},le={mixins:[de,he,ae,oe,re],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},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({velocity:e},t){return pe(t.offsetWidth/e)},list({selList:e},t){return s.$(e,t)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},methods:{show(e,t=!1){var n;if(this.dragging||!this.length)return;const{stack:r}=this,o=t?0:r.length,a=()=>{r.splice(o,1),r.length&&this.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&r.length>1){r.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(e,this.index),d=this.slides[l];if(i===d){a();return}if(this.dir=me(e,h),this.prevIndex=h,this.index=l,i&&!s.trigger(i,"beforeitemhide",[this])||!s.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,t).then(()=>{i&&s.trigger(i,"itemhidden",[this]),s.trigger(d,"itemshown",[this]),r.shift(),this._transitioner=null,requestAnimationFrame(()=>r.length&&this.show(r.shift(),!0))});return i&&s.trigger(i,"itemhide",[this]),s.trigger(d,"itemshow",[this]),c},getIndex(e=this.index,t=this.index){return s.clamp(s.getIndex(e,this.slides,t,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,t=this.prevIndex){return 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:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t=this.prevIndex,n=this.index){const r=this._getTransitioner(t===n?!1:t,n);return r.translate(e),r},_getTransitioner(e=this.prevIndex,t=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function me(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function pe(e){return .5*e+300}var fe={mixins:[le],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:ne},computed:{animation({animation:e,Animations:t}){return{...t[e]||t.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){s.addClass(e,this.clsActive)},itemshown({target:e}){s.addClass(e,this.clsActivated)},itemhidden({target:e}){s.removeClass(e,this.clsActive,this.clsActivated)}}},j={mixins:[k,fe],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:B,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>"));const n=s.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(s.append(this.container,e))},computed:{caption({selCaption:e},t){return s.$(e,t)}},events:[{name:`${s.pointerMove} ${s.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},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({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let t=-1;e===f.LEFT?t="previous":e===f.RIGHT?t="next":e===f.HOME?t=0:e===f.END&&(t="last"),~t&&this.show(t)}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.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:r,alt:o="",poster:a,attrs:h={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let i;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(r==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const d=w("img",{src:n,alt:o,...h});s.on(d,"load",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const d=w("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});s.on(d,"loadedmetadata",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...h}));else if(i=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,w("iframe",{src:`https://www.youtube${i[1]||""}.com/embed/${i[2]}${i[3]?`?${i[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(i=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:d,width:c}=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/${i[1]}${i[2]?`?${i[2]}`:""}`,width:c,height:d,...l,...h}))}catch{this.setError(t)}}}],methods:{loadItem(e=this.index){const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e=this.index){return 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}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",j),j});
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 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_panel",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=u(s.UIkit.util))})(this,function(s){"use strict";let u;function q(e){const t=s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[{scrollHeight:o,clientHeight:a}]=s.scrollParents(r.target);a>=o&&r.cancelable&&r.preventDefault()},{passive:!1});if(u)return t;u=!0;const{scrollingElement:n}=document;return s.css(n,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:s.width(window)-n.clientWidth||""}),()=>{u=!1,t(),s.css(n,{overflowY:"",touchAction:"",paddingRight:""})}}function V(e){return["origin","pathname","search"].every(t=>e[t]===location[t])}function P(e,t=e.$el,n=""){if(t.id)return t.id;let r=`${e.$options.id}-${e._uid}${n}`;return s.$(`#${r}`)&&(r=P(e,t,`${n}-2`)),r}const f={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var O={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return G(e)},translate(e,t){return[{transform:y(t*-100*e)},{transform:y(t*100*(1-e))}]}}};function G(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e=0,t="%"){return e+=e?t:"",`translate3d(${e}, 0, 0)`}function C(e){return`scale3d(${e}, ${e}, 1)`}var B={...O,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)}]}}},X={connected(){s.addClass(this.$el,this.$options.id)}},Y={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&s.$(e)}}},J={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({animation:e}){return!!e[0]},hasTransition({animation:e}){return["slide","reveal"].some(t=>s.startsWith(e[0],t))}},methods:{toggleElement(e,t,n){return new Promise(r=>Promise.all(s.toNodes(e).map(o=>{const a=s.isBoolean(t)?t:!this.isToggled(o);if(!s.trigger(o,`before${a?"show":"hide"}`,[this]))return Promise.reject();const h=(s.isFunction(n)?n:n===!1||!this.hasAnimation?K:this.hasTransition?Q:Z)(o,a,this),i=a?this.clsEnter:this.clsLeave;s.addClass(o,i),s.trigger(o,a?"show":"hide",[this]);const l=()=>{s.removeClass(o,i),s.trigger(o,a?"shown":"hidden",[this])};return h?h.then(l,()=>(s.removeClass(o,i),Promise.reject())):l()})).then(r,s.noop))},isToggled(e=this.$el){return[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(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function K(e,t,{_toggle:n}){return s.Animation.cancel(e),s.Transition.cancel(e),n(e,t)}async function Q(e,t,{animation:n,duration:r,velocity:o,transition:a,_toggle:h}){var i;const[l="reveal",d="top"]=((i=n[0])==null?void 0:i.split("-"))||[],c=[["left","right"],["top","bottom"]],m=c[s.includes(c[0],d)?0:1],g=m[1]===d,A=["width","height"][c.indexOf(m)],b=`margin-${m[0]}`,E=`margin-${d}`;let $=s.dimensions(e)[A];const ge=s.Transition.inProgress(e);await s.Transition.cancel(e),t&&h(e,!0);const ue=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,E].map(W=>[W,e.style[W]])),I=s.dimensions(e),D=s.toFloat(s.css(e,b)),H=s.toFloat(s.css(e,E)),v=I[A]+H;!ge&&!t&&($+=H);const[_]=s.wrapInner(e,"<div>");s.css(_,{boxSizing:"border-box",height:I.height,width:I.width,...s.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",E])}),s.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[E]:0,width:I.width,height:I.height,overflow:"hidden",[A]:$});const z=$/v;r=(o*v+r)*(t?1-z:z);const R={[A]:t?v:0};g&&(s.css(e,b,v-$+D),R[b]=t?D:v+D),!g^l==="reveal"&&(s.css(_,b,-v+$),s.Transition.start(_,{[b]:t?0:-v},r,a));try{await s.Transition.start(e,R,r,a)}finally{s.css(e,ue),s.unwrap(_.firstChild),t||h(e,!1)}}function Z(e,t,n){s.Animation.cancel(e);const{animation:r,duration:o,_toggle:a}=n;return t?(a(e,!0),s.Animation.in(e,r[0],o,n.origin)):s.Animation.out(e,r[1]||r[0],o,n.origin).then(()=>a(e,!1))}const p=[];var k={mixins:[X,Y,J],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:e},t){return s.$(e,t)},transitionElement(){return this.panel},bgClose({bgClose:e}){return e&&this.panel}},connected(){s.attr(this.panel||this.$el,"role",this.role),this.overlay&&s.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){s.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(e){const{current:t,defaultPrevented:n}=e,{hash:r}=t;!n&&r&&V(t)&&!s.within(r,this.$el)&&s.$(r,document.body)?this.hide():s.matches(t,this.selClose)&&(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(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&ee(this),this.overlay&&q(this.$el),this.bgClose&&se(this),this.escClose&&te(this)];s.once(this.$el,"hidden",()=>e.forEach(t=>t&&t()),{self:!0}),s.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.matches(this.$el,":focus-within")||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,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,t,{transitionElement:n,_toggle:r}){return new Promise((o,a)=>s.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=a,r(e,t);const i=s.once(n,"transitionstart",()=>{s.once(n,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{i(),o()},U(s.css(n,"transitionDuration")))})).then(()=>delete e._reject)}function U(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function ee(e){return s.on(document,"focusin",t=>{s.last(p)===e&&!s.within(t.target,e.$el)&&e.$el.focus()})}function se(e){return s.on(document,s.pointerDown,({target:t})=>{s.last(p)!==e||e.overlay&&!s.within(t,e.$el)||s.within(t,e.panel)||s.once(document,`${s.pointerUp} ${s.pointerCancel} scroll`,({defaultPrevented:n,type:r,target:o})=>{!n&&r===s.pointerUp&&t===o&&e.hide()},!0)})}function te(e){return s.on(document,"keydown",t=>{t.keyCode===27&&s.last(p)===e&&e.hide()})}function ne(e,t,n,{animation:r,easing:o}){const{percent:a,translate:h,show:i=s.noop}=r,l=i(n),d=new s.Deferred;return{dir:n,show(c,m=0,g){const x=g?"linear":o;return c-=Math.round(c*s.clamp(m,-1,1)),this.translate(m),T(t,"itemin",{percent:m,duration:c,timing:x,dir:n}),T(e,"itemout",{percent:1-m,duration:c,timing:x,dir:n}),Promise.all([s.Transition.start(t,l[1],c,x),s.Transition.start(e,l[0],c,x)]).then(()=>{this.reset(),d.resolve()},s.noop),d.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const c in l[0])s.css([t,e],c,"")},forward(c,m=this.percent()){return s.Transition.cancel([t,e]),this.show(c,m,!0)},translate(c){this.reset();const m=h(c,n);s.css(t,m[1]),s.css(e,m[0]),T(t,"itemtranslatein",{percent:c,dir:n}),T(e,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(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 re={props:{i18n:Object},data:{i18n:null},methods:{t(e,...t){var n,r,o;let a=0;return((o=((n=this.i18n)==null?void 0:n[e])||((r=this.$options.i18n)==null?void 0:r[e]))==null?void 0:o.replace(/%s/g,()=>t[a++]||""))||""}}},oe={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},ae={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:e},t){return s.$(e,t)},watch(e,t){s.attr(e,"role","tablist"),t&&this.$emit()},immediate:!0},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems:{get(e,t){return s.$$(this.selNavItem,t)},watch(){this.$emit()}}},connected(){s.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((e,t)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",t+1,this.length),"aria-roledescription":this.nav?null:"slide"})),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("")),s.attr(s.children(this.nav).concat(this.list),"role","presentation");for(const e of this.navItems){const t=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let r,o=null;if(s.isNumeric(t)){const a=s.toNumber(t),h=this.slides[a];h&&(h.id||(h.id=P(this,h,`-item-${t}`)),o=h.id),r=this.t("slideX",s.toFloat(t)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=P(this,this.list,"-items")),o=this.list.id),r=this.t(t);s.attr(n,{"aria-controls":o,"aria-label":s.attr(n,"aria-label")||r})}}},{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(e){s.closest(e.target,"a,button")&&(e.type==="click"||e.keyCode===f.SPACE)&&(e.preventDefault(),this.show(s.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(e){const{current:t,keyCode:n}=e,r=s.data(t,this.attrItem);if(!s.isNumeric(r))return;let o=n===f.HOME?0:n===f.END?"last":n===f.LEFT?"previous":n===f.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();let t,n;for(const r of this.navItems){const o=s.data(r,this.attrItem),a=s.$("a,button",r)||r;if(s.isNumeric(o)){const i=s.toNumber(o)===e;s.toggleClass(r,this.clsActive,i),s.attr(a,{"aria-selected":i,tabindex:i?null:-1}),i&&(n=a),t=t||s.matches(a,":focus")}else s.toggleClass(r,"uk-invisible",this.finite&&(o==="previous"&&e===0||o==="next"&&e>=this.maxIndex));t&&n&&n.focus()}}}};const S={passive:!1,capture:!0},M={passive:!0,capture:!0},ie="touchstart mousedown",N="touchmove mousemove",F="touchend touchcancel mouseup click input scroll";var he={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const r=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,t(n)}}},events:[{name:ie,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!s.isTouch(e)&&ce(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:N,el(){return this.list},handler:s.noop,...S}],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,N,this.move,S),s.on(document,F,this.end,M),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:r}=this,o=Math.abs(t),a=this.getIndex(r+this.dir,r),h=this._getDistance(r,a)||n[r].offsetWidth;for(;a!==r&&o>h;)this.drag-=h*this.dir,r=a,o-=h,a=this.getIndex(r+this.dir,r),h=this._getDistance(r,a)||n[r].offsetWidth;this.percent=o/h;const i=n[r],l=n[a],d=this.index!==a,c=r===a;let m;[this.index,this.prevIndex].filter(g=>!s.includes([a,r],g)).forEach(g=>{s.trigger(n[g],"itemhidden",[this]),c&&(m=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||m)&&s.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=r,this.index=a,!c&&s.trigger(i,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),i,!c&&l),d&&(!c&&s.trigger(i,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,N,this.move,S),s.off(document,F,this.end,M),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 ce(e){return s.css(e,"userSelect")!=="none"&&s.toNodes(e.childNodes).some(t=>t.nodeType===3&&t.textContent.trim())}var de={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live","polite"),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()}},{name:`${s.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${s.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),s.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),s.attr(this.list,"aria-live","polite")}}},le={mixins:[de,he,ae,oe,re],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},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({velocity:e},t){return pe(t.offsetWidth/e)},list({selList:e},t){return s.$(e,t)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},methods:{show(e,t=!1){var n;if(this.dragging||!this.length)return;const{stack:r}=this,o=t?0:r.length,a=()=>{r.splice(o,1),r.length&&this.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&r.length>1){r.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(e,this.index),d=this.slides[l];if(i===d){a();return}if(this.dir=me(e,h),this.prevIndex=h,this.index=l,i&&!s.trigger(i,"beforeitemhide",[this])||!s.trigger(d,"beforeitemshow",[this,i])){this.index=this.prevIndex,a();return}const c=this._show(i,d,t).then(()=>{i&&s.trigger(i,"itemhidden",[this]),s.trigger(d,"itemshown",[this]),r.shift(),this._transitioner=null,requestAnimationFrame(()=>r.length&&this.show(r.shift(),!0))});return i&&s.trigger(i,"itemhide",[this]),s.trigger(d,"itemshow",[this]),c},getIndex(e=this.index,t=this.index){return s.clamp(s.getIndex(e,this.slides,t,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,t=this.prevIndex){return 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:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t=this.prevIndex,n=this.index){const r=this._getTransitioner(t===n?!1:t,n);return r.translate(e),r},_getTransitioner(e=this.prevIndex,t=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function me(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function pe(e){return .5*e+300}var fe={mixins:[le],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:ne},computed:{animation({animation:e,Animations:t}){return{...t[e]||t.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){s.addClass(e,this.clsActive)},itemshown({target:e}){s.addClass(e,this.clsActivated)},itemhidden({target:e}){s.removeClass(e,this.clsActive,this.clsActivated)}}},j={mixins:[k,fe],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:B,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>"));const n=s.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(s.append(this.container,e))},computed:{caption({selCaption:e},t){return s.$(e,t)}},events:[{name:`${s.pointerMove} ${s.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},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({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let t=-1;e===f.LEFT?t="previous":e===f.RIGHT?t="next":e===f.HOME?t=0:e===f.END&&(t="last"),~t&&this.show(t)}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.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:r,alt:o="",poster:a,attrs:h={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let i;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(r==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const d=w("img",{src:n,alt:o,...h});s.on(d,"load",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const d=w("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...h});s.on(d,"loadedmetadata",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...h}));else if(i=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,w("iframe",{src:`https://www.youtube${i[1]||""}.com/embed/${i[2]}${i[3]?`?${i[3]}`:""}`,width:1920,height:1080,...l,...h}));else if(i=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:d,width:c}=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/${i[1]}${i[2]?`?${i[2]}`:""}`,width:c,height:d,...l,...h}))}catch{this.setError(t)}}}],methods:{loadItem(e=this.index){const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e=this.index){return 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}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",j),j});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.8705d5334 | https://www.getuikit.com | (c) 2014 - 2023 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";let u;function V(e){const t=s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[{scrollHeight:o,clientHeight:a}]=s.scrollParents(r.target);a>=o&&r.cancelable&&r.preventDefault()},{passive:!1});if(u)return t;u=!0;const{scrollingElement:n}=document;return s.css(n,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:s.width(window)-n.clientWidth||""}),()=>{u=!1,t(),s.css(n,{overflowY:"",touchAction:"",paddingRight:""})}}function G(e){return["origin","pathname","search"].every(t=>e[t]===location[t])}function _(e,t=e.$el,n=""){if(t.id)return t.id;let r=`${e.$options.id}-${e._uid}${n}`;return s.$(`#${r}`)&&(r=_(e,t,`${n}-2`)),r}const g={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var O={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return X(e)},translate(e,t){return[{transform:y(t*-100*e)},{transform:y(t*100*(1-e))}]}}};function X(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e=0,t="%"){return e+=e?t:"",`translate3d(${e}, 0, 0)`}function C(e){return`scale3d(${e}, ${e}, 1)`}var B={...O,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)}]}}},Y={connected(){s.addClass(this.$el,this.$options.id)}},J={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&s.$(e)}}},K={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({animation:e}){return!!e[0]},hasTransition({animation:e}){return["slide","reveal"].some(t=>s.startsWith(e[0],t))}},methods:{toggleElement(e,t,n){return new Promise(r=>Promise.all(s.toNodes(e).map(o=>{const a=s.isBoolean(t)?t:!this.isToggled(o);if(!s.trigger(o,`before${a?"show":"hide"}`,[this]))return Promise.reject();const i=(s.isFunction(n)?n:n===!1||!this.hasAnimation?Q:this.hasTransition?Z:k)(o,a,this),h=a?this.clsEnter:this.clsLeave;s.addClass(o,h),s.trigger(o,a?"show":"hide",[this]);const l=()=>{s.removeClass(o,h),s.trigger(o,a?"shown":"hidden",[this])};return i?i.then(l,()=>(s.removeClass(o,h),Promise.reject())):l()})).then(r,s.noop))},isToggled(e=this.$el){return[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(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function Q(e,t,{_toggle:n}){return s.Animation.cancel(e),s.Transition.cancel(e),n(e,t)}async function Z(e,t,{animation:n,duration:r,velocity:o,transition:a,_toggle:i}){var h;const[l="reveal",d="top"]=((h=n[0])==null?void 0:h.split("-"))||[],c=[["left","right"],["top","bottom"]],p=c[s.includes(c[0],d)?0:1],f=p[1]===d,A=["width","height"][c.indexOf(p)],b=`margin-${p[0]}`,E=`margin-${d}`;let $=s.dimensions(e)[A];const be=s.Transition.inProgress(e);await s.Transition.cancel(e),t&&i(e,!0);const we=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,E].map(q=>[q,e.style[q]])),I=s.dimensions(e),D=s.toFloat(s.css(e,b)),z=s.toFloat(s.css(e,E)),v=I[A]+z;!be&&!t&&($+=z);const[P]=s.wrapInner(e,"<div>");s.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...s.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",E])}),s.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[E]:0,width:I.width,height:I.height,overflow:"hidden",[A]:$});const R=$/v;r=(o*v+r)*(t?1-R:R);const W={[A]:t?v:0};f&&(s.css(e,b,v-$+D),W[b]=t?D:v+D),!f^l==="reveal"&&(s.css(P,b,-v+$),s.Transition.start(P,{[b]:t?0:-v},r,a));try{await s.Transition.start(e,W,r,a)}finally{s.css(e,we),s.unwrap(P.firstChild),t||i(e,!1)}}function k(e,t,n){s.Animation.cancel(e);const{animation:r,duration:o,_toggle:a}=n;return t?(a(e,!0),s.Animation.in(e,r[0],o,n.origin)):s.Animation.out(e,r[1]||r[0],o,n.origin).then(()=>a(e,!1))}const m=[];var U={mixins:[Y,J,K],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:e},t){return s.$(e,t)},transitionElement(){return this.panel},bgClose({bgClose:e}){return e&&this.panel}},connected(){s.attr(this.panel||this.$el,"role",this.role),this.overlay&&s.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){s.includes(m,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(e){const{current:t,defaultPrevented:n}=e,{hash:r}=t;!n&&r&&G(t)&&!s.within(r,this.$el)&&s.$(r,document.body)?this.hide():s.matches(t,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(t=>t.hide())).then(this.show),e.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+m.length);const e=[this.overlay&&se(this),this.overlay&&V(this.$el),this.bgClose&&te(this),this.escClose&&ne(this)];s.once(this.$el,"hidden",()=>e.forEach(t=>t&&t()),{self:!0}),s.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(m,this)&&m.splice(m.indexOf(this),1),s.css(this.$el,"zIndex",""),m.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,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,t,{transitionElement:n,_toggle:r}){return new Promise((o,a)=>s.once(e,"show hide",()=>{var i;(i=e._reject)==null||i.call(e),e._reject=a,r(e,t);const h=s.once(n,"transitionstart",()=>{s.once(n,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{h(),o()},ee(s.css(n,"transitionDuration")))})).then(()=>delete e._reject)}function ee(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function se(e){return s.on(document,"focusin",t=>{s.last(m)===e&&!s.within(t.target,e.$el)&&e.$el.focus()})}function te(e){return s.on(document,s.pointerDown,({target:t})=>{s.last(m)!==e||e.overlay&&!s.within(t,e.$el)||s.within(t,e.panel)||s.once(document,`${s.pointerUp} ${s.pointerCancel} scroll`,({defaultPrevented:n,type:r,target:o})=>{!n&&r===s.pointerUp&&t===o&&e.hide()},!0)})}function ne(e){return s.on(document,"keydown",t=>{t.keyCode===27&&s.last(m)===e&&e.hide()})}function re(e,t,n,{animation:r,easing:o}){const{percent:a,translate:i,show:h=s.noop}=r,l=h(n),d=new s.Deferred;return{dir:n,show(c,p=0,f){const x=f?"linear":o;return c-=Math.round(c*s.clamp(p,-1,1)),this.translate(p),T(t,"itemin",{percent:p,duration:c,timing:x,dir:n}),T(e,"itemout",{percent:1-p,duration:c,timing:x,dir:n}),Promise.all([s.Transition.start(t,l[1],c,x),s.Transition.start(e,l[0],c,x)]).then(()=>{this.reset(),d.resolve()},s.noop),d.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const c in l[0])s.css([t,e],c,"")},forward(c,p=this.percent()){return s.Transition.cancel([t,e]),this.show(c,p,!0)},translate(c){this.reset();const p=i(c,n);s.css(t,p[1]),s.css(e,p[0]),T(t,"itemtranslatein",{percent:c,dir:n}),T(e,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(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 oe={props:{i18n:Object},data:{i18n:null},methods:{t(e,...t){var n,r,o;let a=0;return((o=((n=this.i18n)==null?void 0:n[e])||((r=this.$options.i18n)==null?void 0:r[e]))==null?void 0:o.replace(/%s/g,()=>t[a++]||""))||""}}},ae={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},he={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:e},t){return s.$(e,t)},watch(e,t){s.attr(e,"role","tablist"),t&&this.$emit()},immediate:!0},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems:{get(e,t){return s.$$(this.selNavItem,t)},watch(){this.$emit()}}},connected(){s.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((e,t)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",t+1,this.length),"aria-roledescription":this.nav?null:"slide"})),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("")),s.attr(s.children(this.nav).concat(this.list),"role","presentation");for(const e of this.navItems){const t=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let r,o=null;if(s.isNumeric(t)){const a=s.toNumber(t),i=this.slides[a];i&&(i.id||(i.id=_(this,i,`-item-${t}`)),o=i.id),r=this.t("slideX",s.toFloat(t)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=_(this,this.list,"-items")),o=this.list.id),r=this.t(t);s.attr(n,{"aria-controls":o,"aria-label":s.attr(n,"aria-label")||r})}}},{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(e){s.closest(e.target,"a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(s.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(e){const{current:t,keyCode:n}=e,r=s.data(t,this.attrItem);if(!s.isNumeric(r))return;let o=n===g.HOME?0:n===g.END?"last":n===g.LEFT?"previous":n===g.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();let t,n;for(const r of this.navItems){const o=s.data(r,this.attrItem),a=s.$("a,button",r)||r;if(s.isNumeric(o)){const h=s.toNumber(o)===e;s.toggleClass(r,this.clsActive,h),s.attr(a,{"aria-selected":h,tabindex:h?null:-1}),h&&(n=a),t=t||s.matches(a,":focus")}else s.toggleClass(r,"uk-invisible",this.finite&&(o==="previous"&&e===0||o==="next"&&e>=this.maxIndex));t&&n&&n.focus()}}}};const S={passive:!1,capture:!0},M={passive:!0,capture:!0},ie="touchstart mousedown",N="touchmove mousemove",F="touchend touchcancel mouseup click input scroll";var ce={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const r=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,t(n)}}},events:[{name:ie,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!s.isTouch(e)&&de(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:N,el(){return this.list},handler:s.noop,...S}],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,N,this.move,S),s.on(document,F,this.end,M),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:r}=this,o=Math.abs(t),a=this.getIndex(r+this.dir,r),i=this._getDistance(r,a)||n[r].offsetWidth;for(;a!==r&&o>i;)this.drag-=i*this.dir,r=a,o-=i,a=this.getIndex(r+this.dir,r),i=this._getDistance(r,a)||n[r].offsetWidth;this.percent=o/i;const h=n[r],l=n[a],d=this.index!==a,c=r===a;let p;[this.index,this.prevIndex].filter(f=>!s.includes([a,r],f)).forEach(f=>{s.trigger(n[f],"itemhidden",[this]),c&&(p=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||p)&&s.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=r,this.index=a,!c&&s.trigger(h,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&l),d&&(!c&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,N,this.move,S),s.off(document,F,this.end,M),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 de(e){return s.css(e,"userSelect")!=="none"&&s.toNodes(e.childNodes).some(t=>t.nodeType===3&&t.textContent.trim())}var le={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live","polite"),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()}},{name:`${s.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${s.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),s.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),s.attr(this.list,"aria-live","polite")}}},pe={mixins:[le,ce,he,ae,oe],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},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({velocity:e},t){return ge(t.offsetWidth/e)},list({selList:e},t){return s.$(e,t)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},methods:{show(e,t=!1){var n;if(this.dragging||!this.length)return;const{stack:r}=this,o=t?0:r.length,a=()=>{r.splice(o,1),r.length&&this.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&r.length>1){r.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const i=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[i],l=this.getIndex(e,this.index),d=this.slides[l];if(h===d){a();return}if(this.dir=me(e,i),this.prevIndex=i,this.index=l,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(d,"beforeitemshow",[this,h])){this.index=this.prevIndex,a();return}const c=this._show(h,d,t).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(d,"itemshown",[this]),r.shift(),this._transitioner=null,requestAnimationFrame(()=>r.length&&this.show(r.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(d,"itemshow",[this]),c},getIndex(e=this.index,t=this.index){return s.clamp(s.getIndex(e,this.slides,t,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,t=this.prevIndex){return 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:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t=this.prevIndex,n=this.index){const r=this._getTransitioner(t===n?!1:t,n);return r.translate(e),r},_getTransitioner(e=this.prevIndex,t=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function me(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function ge(e){return .5*e+300}var fe={mixins:[pe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:re},computed:{animation({animation:e,Animations:t}){return{...t[e]||t.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){s.addClass(e,this.clsActive)},itemshown({target:e}){s.addClass(e,this.clsActivated)},itemhidden({target:e}){s.removeClass(e,this.clsActive,this.clsActivated)}}},ue={mixins:[U,fe],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:B,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>"));const n=s.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(s.append(this.container,e))},computed:{caption({selCaption:e},t){return s.$(e,t)}},events:[{name:`${s.pointerMove} ${s.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},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({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let t=-1;e===g.LEFT?t="previous":e===g.RIGHT?t="next":e===g.HOME?t=0:e===g.END&&(t="last"),~t&&this.show(t)}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.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:r,alt:o="",poster:a,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let h;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(r==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const d=w("img",{src:n,alt:o,...i});s.on(d,"load",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const d=w("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...i});s.on(d,"loadedmetadata",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,w("iframe",{src:`https://www.youtube${h[1]||""}.com/embed/${h[2]}${h[3]?`?${h[3]}`:""}`,width:1920,height:1080,...l,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:d,width:c}=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/${h[1]}${h[2]?`?${h[2]}`:""}`,width:c,height:d,...l,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e=this.index){const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e=this.index){return 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 j={install:ve,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get({toggle:e},t){return s.$$(e,t)},watch(e){this.hide();for(const t of e)s.isTag(t,"a")&&s.attr(t,"role","button")},immediate:!0}},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(H),"source");if(s.isElement(e)){const{source:n}=H(e);e=s.findIndex(t,({source:r})=>n===r)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:t}),s.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function ve(e,t){e.lightboxPanel||e.component("lightboxPanel",ue),s.assign(t.props,e.component("lightboxPanel").options.props)}function H(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",j),j});
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 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";let u;function V(e){const t=s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[{scrollHeight:o,clientHeight:a}]=s.scrollParents(r.target);a>=o&&r.cancelable&&r.preventDefault()},{passive:!1});if(u)return t;u=!0;const{scrollingElement:n}=document;return s.css(n,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:s.width(window)-n.clientWidth||""}),()=>{u=!1,t(),s.css(n,{overflowY:"",touchAction:"",paddingRight:""})}}function G(e){return["origin","pathname","search"].every(t=>e[t]===location[t])}function _(e,t=e.$el,n=""){if(t.id)return t.id;let r=`${e.$options.id}-${e._uid}${n}`;return s.$(`#${r}`)&&(r=_(e,t,`${n}-2`)),r}const g={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var O={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return X(e)},translate(e,t){return[{transform:y(t*-100*e)},{transform:y(t*100*(1-e))}]}}};function X(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function y(e=0,t="%"){return e+=e?t:"",`translate3d(${e}, 0, 0)`}function C(e){return`scale3d(${e}, ${e}, 1)`}var B={...O,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)}]}}},Y={connected(){s.addClass(this.$el,this.$options.id)}},J={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&s.$(e)}}},K={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({animation:e}){return!!e[0]},hasTransition({animation:e}){return["slide","reveal"].some(t=>s.startsWith(e[0],t))}},methods:{toggleElement(e,t,n){return new Promise(r=>Promise.all(s.toNodes(e).map(o=>{const a=s.isBoolean(t)?t:!this.isToggled(o);if(!s.trigger(o,`before${a?"show":"hide"}`,[this]))return Promise.reject();const i=(s.isFunction(n)?n:n===!1||!this.hasAnimation?Q:this.hasTransition?Z:k)(o,a,this),h=a?this.clsEnter:this.clsLeave;s.addClass(o,h),s.trigger(o,a?"show":"hide",[this]);const l=()=>{s.removeClass(o,h),s.trigger(o,a?"shown":"hidden",[this])};return i?i.then(l,()=>(s.removeClass(o,h),Promise.reject())):l()})).then(r,s.noop))},isToggled(e=this.$el){return[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(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function Q(e,t,{_toggle:n}){return s.Animation.cancel(e),s.Transition.cancel(e),n(e,t)}async function Z(e,t,{animation:n,duration:r,velocity:o,transition:a,_toggle:i}){var h;const[l="reveal",d="top"]=((h=n[0])==null?void 0:h.split("-"))||[],c=[["left","right"],["top","bottom"]],p=c[s.includes(c[0],d)?0:1],f=p[1]===d,A=["width","height"][c.indexOf(p)],b=`margin-${p[0]}`,E=`margin-${d}`;let $=s.dimensions(e)[A];const be=s.Transition.inProgress(e);await s.Transition.cancel(e),t&&i(e,!0);const we=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",b,E].map(q=>[q,e.style[q]])),I=s.dimensions(e),D=s.toFloat(s.css(e,b)),z=s.toFloat(s.css(e,E)),v=I[A]+z;!be&&!t&&($+=z);const[P]=s.wrapInner(e,"<div>");s.css(P,{boxSizing:"border-box",height:I.height,width:I.width,...s.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",E])}),s.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[E]:0,width:I.width,height:I.height,overflow:"hidden",[A]:$});const R=$/v;r=(o*v+r)*(t?1-R:R);const W={[A]:t?v:0};f&&(s.css(e,b,v-$+D),W[b]=t?D:v+D),!f^l==="reveal"&&(s.css(P,b,-v+$),s.Transition.start(P,{[b]:t?0:-v},r,a));try{await s.Transition.start(e,W,r,a)}finally{s.css(e,we),s.unwrap(P.firstChild),t||i(e,!1)}}function k(e,t,n){s.Animation.cancel(e);const{animation:r,duration:o,_toggle:a}=n;return t?(a(e,!0),s.Animation.in(e,r[0],o,n.origin)):s.Animation.out(e,r[1]||r[0],o,n.origin).then(()=>a(e,!1))}const m=[];var U={mixins:[Y,J,K],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:e},t){return s.$(e,t)},transitionElement(){return this.panel},bgClose({bgClose:e}){return e&&this.panel}},connected(){s.attr(this.panel||this.$el,"role",this.role),this.overlay&&s.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){s.includes(m,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(e){const{current:t,defaultPrevented:n}=e,{hash:r}=t;!n&&r&&G(t)&&!s.within(r,this.$el)&&s.$(r,document.body)?this.hide():s.matches(t,this.selClose)&&(e.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(t=>t.hide())).then(this.show),e.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+m.length);const e=[this.overlay&&se(this),this.overlay&&V(this.$el),this.bgClose&&te(this),this.escClose&&ne(this)];s.once(this.$el,"hidden",()=>e.forEach(t=>t&&t()),{self:!0}),s.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(m,this)&&m.splice(m.indexOf(this),1),s.css(this.$el,"zIndex",""),m.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,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,t,{transitionElement:n,_toggle:r}){return new Promise((o,a)=>s.once(e,"show hide",()=>{var i;(i=e._reject)==null||i.call(e),e._reject=a,r(e,t);const h=s.once(n,"transitionstart",()=>{s.once(n,"transitionend transitioncancel",o,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{h(),o()},ee(s.css(n,"transitionDuration")))})).then(()=>delete e._reject)}function ee(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function se(e){return s.on(document,"focusin",t=>{s.last(m)===e&&!s.within(t.target,e.$el)&&e.$el.focus()})}function te(e){return s.on(document,s.pointerDown,({target:t})=>{s.last(m)!==e||e.overlay&&!s.within(t,e.$el)||s.within(t,e.panel)||s.once(document,`${s.pointerUp} ${s.pointerCancel} scroll`,({defaultPrevented:n,type:r,target:o})=>{!n&&r===s.pointerUp&&t===o&&e.hide()},!0)})}function ne(e){return s.on(document,"keydown",t=>{t.keyCode===27&&s.last(m)===e&&e.hide()})}function re(e,t,n,{animation:r,easing:o}){const{percent:a,translate:i,show:h=s.noop}=r,l=h(n),d=new s.Deferred;return{dir:n,show(c,p=0,f){const x=f?"linear":o;return c-=Math.round(c*s.clamp(p,-1,1)),this.translate(p),T(t,"itemin",{percent:p,duration:c,timing:x,dir:n}),T(e,"itemout",{percent:1-p,duration:c,timing:x,dir:n}),Promise.all([s.Transition.start(t,l[1],c,x),s.Transition.start(e,l[0],c,x)]).then(()=>{this.reset(),d.resolve()},s.noop),d.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const c in l[0])s.css([t,e],c,"")},forward(c,p=this.percent()){return s.Transition.cancel([t,e]),this.show(c,p,!0)},translate(c){this.reset();const p=i(c,n);s.css(t,p[1]),s.css(e,p[0]),T(t,"itemtranslatein",{percent:c,dir:n}),T(e,"itemtranslateout",{percent:1-c,dir:n})},percent(){return a(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 oe={props:{i18n:Object},data:{i18n:null},methods:{t(e,...t){var n,r,o;let a=0;return((o=((n=this.i18n)==null?void 0:n[e])||((r=this.$options.i18n)==null?void 0:r[e]))==null?void 0:o.replace(/%s/g,()=>t[a++]||""))||""}}},ae={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},he={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:e},t){return s.$(e,t)},watch(e,t){s.attr(e,"role","tablist"),t&&this.$emit()},immediate:!0},selNavItem({attrItem:e}){return`[${e}],[data-${e}]`},navItems:{get(e,t){return s.$$(this.selNavItem,t)},watch(){this.$emit()}}},connected(){s.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((e,t)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",t+1,this.length),"aria-roledescription":this.nav?null:"slide"})),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("")),s.attr(s.children(this.nav).concat(this.list),"role","presentation");for(const e of this.navItems){const t=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let r,o=null;if(s.isNumeric(t)){const a=s.toNumber(t),i=this.slides[a];i&&(i.id||(i.id=_(this,i,`-item-${t}`)),o=i.id),r=this.t("slideX",s.toFloat(t)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=_(this,this.list,"-items")),o=this.list.id),r=this.t(t);s.attr(n,{"aria-controls":o,"aria-label":s.attr(n,"aria-label")||r})}}},{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(e){s.closest(e.target,"a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(e.preventDefault(),this.show(s.data(e.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(e){const{current:t,keyCode:n}=e,r=s.data(t,this.attrItem);if(!s.isNumeric(r))return;let o=n===g.HOME?0:n===g.END?"last":n===g.LEFT?"previous":n===g.RIGHT?"next":-1;~o&&(e.preventDefault(),this.show(o))}}],methods:{updateNav(){const e=this.getValidIndex();let t,n;for(const r of this.navItems){const o=s.data(r,this.attrItem),a=s.$("a,button",r)||r;if(s.isNumeric(o)){const h=s.toNumber(o)===e;s.toggleClass(r,this.clsActive,h),s.attr(a,{"aria-selected":h,tabindex:h?null:-1}),h&&(n=a),t=t||s.matches(a,":focus")}else s.toggleClass(r,"uk-invisible",this.finite&&(o==="previous"&&e===0||o==="next"&&e>=this.maxIndex));t&&n&&n.focus()}}}};const S={passive:!1,capture:!0},M={passive:!0,capture:!0},ie="touchstart mousedown",N="touchmove mousemove",F="touchend touchcancel mouseup click input scroll";var ce={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const r=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=r===this.pos?this.prevPos:this.pos,this.pos=r,t(n)}}},events:[{name:ie,passive:!0,delegate(){return`${this.selList} > *`},handler(e){!this.draggable||!s.isTouch(e)&&de(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:N,el(){return this.list},handler:s.noop,...S}],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,N,this.move,S),s.on(document,F,this.end,M),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:r}=this,o=Math.abs(t),a=this.getIndex(r+this.dir,r),i=this._getDistance(r,a)||n[r].offsetWidth;for(;a!==r&&o>i;)this.drag-=i*this.dir,r=a,o-=i,a=this.getIndex(r+this.dir,r),i=this._getDistance(r,a)||n[r].offsetWidth;this.percent=o/i;const h=n[r],l=n[a],d=this.index!==a,c=r===a;let p;[this.index,this.prevIndex].filter(f=>!s.includes([a,r],f)).forEach(f=>{s.trigger(n[f],"itemhidden",[this]),c&&(p=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||p)&&s.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=r,this.index=a,!c&&s.trigger(h,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&l),d&&(!c&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,N,this.move,S),s.off(document,F,this.end,M),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 de(e){return s.css(e,"userSelect")!=="none"&&s.toNodes(e.childNodes).some(t=>t.nodeType===3&&t.textContent.trim())}var le={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live","polite"),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()}},{name:`${s.pointerEnter} focusin`,filter(){return this.autoplay},handler:"stopAutoplay"},{name:`${s.pointerLeave} focusout`,filter(){return this.autoplay},handler:"startAutoplay"}],methods:{startAutoplay(){this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),s.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),s.attr(this.list,"aria-live","polite")}}},pe={mixins:[le,ce,he,ae,oe],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number},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({velocity:e},t){return ge(t.offsetWidth/e)},list({selList:e},t){return s.$(e,t)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},methods:{show(e,t=!1){var n;if(this.dragging||!this.length)return;const{stack:r}=this,o=t?0:r.length,a=()=>{r.splice(o,1),r.length&&this.show(r.shift(),!0)};if(r[t?"unshift":"push"](e),!t&&r.length>1){r.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const i=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[i],l=this.getIndex(e,this.index),d=this.slides[l];if(h===d){a();return}if(this.dir=me(e,i),this.prevIndex=i,this.index=l,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(d,"beforeitemshow",[this,h])){this.index=this.prevIndex,a();return}const c=this._show(h,d,t).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(d,"itemshown",[this]),r.shift(),this._transitioner=null,requestAnimationFrame(()=>r.length&&this.show(r.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(d,"itemshow",[this]),c},getIndex(e=this.index,t=this.index){return s.clamp(s.getIndex(e,this.slides,t,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,t=this.prevIndex){return 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:r}=this.stack;return this._transitioner[r>1?"forward":"show"](r>1?Math.min(this.duration,75+75/(r-1)):this.duration,this.percent)},_getDistance(e,t){return this._getTransitioner(e,e!==t&&t).getDistance()},_translate(e,t=this.prevIndex,n=this.index){const r=this._getTransitioner(t===n?!1:t,n);return r.translate(e),r},_getTransitioner(e=this.prevIndex,t=this.index,n=this.dir||1,r=this.transitionOptions){return new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function me(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function ge(e){return .5*e+300}var fe={mixins:[pe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:O,Transitioner:re},computed:{animation({animation:e,Animations:t}){return{...t[e]||t.slide,name:e}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:e}){s.addClass(e,this.clsActive)},itemshown({target:e}){s.addClass(e,this.clsActivated)},itemhidden({target:e}){s.removeClass(e,this.clsActive,this.clsActivated)}}},ue={mixins:[U,fe],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:B,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>"));const n=s.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(s.append(this.container,e))},computed:{caption({selCaption:e},t){return s.$(e,t)}},events:[{name:`${s.pointerMove} ${s.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},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({keyCode:e}){if(!this.isToggled(this.$el)||!this.draggable)return;let t=-1;e===g.LEFT?t="previous":e===g.RIGHT?t="next":e===g.HOME?t=0:e===g.END&&(t="last"),~t&&this.show(t)}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=B.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:r,alt:o="",poster:a,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let h;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(r==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const d=w("img",{src:n,alt:o,...i});s.on(d,"load",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const d=w("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...i});s.on(d,"loadedmetadata",()=>this.setItem(t,d)),s.on(d,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,w("iframe",{src:`https://www.youtube${h[1]||""}.com/embed/${h[2]}${h[3]?`?${h[3]}`:""}`,width:1920,height:1080,...l,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:d,width:c}=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/${h[1]}${h[2]?`?${h[2]}`:""}`,width:c,height:d,...l,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e=this.index){const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e=this.index){return 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 j={install:ve,props:{toggle:String},data:{toggle:"a"},computed:{toggles:{get({toggle:e},t){return s.$$(e,t)},watch(e){this.hide();for(const t of e)s.isTag(t,"a")&&s.attr(t,"role","button")},immediate:!0}},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(H),"source");if(s.isElement(e)){const{source:n}=H(e);e=s.findIndex(t,({source:r})=>n===r)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:t}),s.on(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(e)},hide(){var e;return(e=this.panel)==null?void 0:e.hide()}}};function ve(e,t){e.lightboxPanel||e.component("lightboxPanel",ue),s.assign(t.props,e.component("lightboxPanel").options.props)}function H(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",j),j});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],e):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=e(t.UIkit.util))})(this,function(t){"use strict";var e={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[e],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({pos:s}){return`margin${t.startsWith(s,"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}`:""}" role="alert"> <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 n=o=>{const i=t.parent(o);t.trigger(o,"close",[this]),t.remove(o),i!=null&&i.hasChildNodes()||t.remove(i)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),n(this.$el)}}};function c(s){s.notification.closeAll=function(n,o){t.apply(document.body,i=>{const a=s.getComponent(i,"notification");a&&(!n||n===a.group)&&a.close(o)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 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")))}},_={connected(){B(this._uid,()=>this.$emit("scroll"))},disconnected(){R(this._uid)}};const y=new Map;let b;function B(e,t){b=b||r.on(window,"scroll",()=>y.forEach(n=>n()),{passive:!0,capture:!0}),y.set(e,t)}function R(e){y.delete(e),b&&!y.size&&(b(),b=null)}var V={props:{media:Boolean},data:{media:!1},connected(){const e=q(this.media,this.$el);if(this.matchMedia=!0,e){this.mediaObj=window.matchMedia(e);const t=()=>{this.matchMedia=this.mediaObj.matches,r.trigger(this.$el,r.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=r.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var e;(e=this.offMediaObj)==null||e.call(this)}};function q(e,t){if(r.isString(e)){if(r.startsWith(e,"@"))e=r.toFloat(r.css(t,`--uk-breakpoint-${e.substr(1)}`));else if(isNaN(e))return e}return e&&r.isNumeric(e)?`(min-width: ${e}px)`:""}function H(e){return Math.ceil(Math.max(0,...r.$$("[stroke]",e).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:F,y:F,rotate:F,scale:F,color:S,backgroundColor:S,borderColor:S,blur:l,hue:l,fopacity:l,grayscale:l,invert:l,saturate:l,sepia:l,opacity:J,stroke:K,bgx:z,bgy:z},{keys:I}=Object;var A={mixins:[V],props:L(I(v),"list"),data:L(I(v),void 0),computed:{props(e,t){const n={};for(const o in e)o in v&&!r.isUndefined(e[o])&&(n[o]=e[o].slice());const s={};for(const o in n)s[o]=v[o](o,t,n[o],n);return s}},events:{load(){this.$emit()}},methods:{reset(){for(const e in this.getCss(0))r.css(this.$el,e,"")},getCss(e){const t={transform:"",filter:""};for(const n in this.props)this.props[n](t,e);return t.willChange=Object.keys(t).filter(n=>t[n]!=="").join(","),t}}};function F(e,t,n){let s=O(n)||{x:"px",y:"px",rotate:"deg"}[e]||"",o;return e==="x"||e==="y"?(e=`translate${r.ucfirst(e)}`,o=a=>r.toFloat(r.toFloat(a).toFixed(s==="px"?0:6))):e==="scale"&&(s="",o=a=>O([a])?r.toPx(a,"width",t,!0)/t.offsetWidth:a),n.length===1&&n.unshift(e==="scale"?1:0),n=g(n,o),(a,c)=>{a.transform+=` ${e}(${x(n,c)}${s})`}}function S(e,t,n){return n.length===1&&n.unshift($(t,e,"")),n=g(n,s=>G(t,s)),(s,o)=>{const[a,c,i]=E(n,o),u=a.map((d,f)=>(d+=i*(c[f]-d),f===3?r.toFloat(d):parseInt(d,10))).join(",");s[e]=`rgba(${u})`}}function G(e,t){return $(e,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(r.toFloat)}function l(e,t,n){n.length===1&&n.unshift(0);const s=O(n)||{blur:"px",hue:"deg"}[e]||"%";return e={fopacity:"opacity",hue:"hue-rotate"}[e]||e,n=g(n),(o,a)=>{const c=x(n,a);o.filter+=` ${e}(${c+s})`}}function J(e,t,n){return n.length===1&&n.unshift($(t,e,"")),n=g(n),(s,o)=>{s[e]=x(n,o)}}function K(e,t,n){n.length===1&&n.unshift(0);const s=O(n),o=H(t);return n=g(n.reverse(),a=>(a=r.toFloat(a),s==="%"?a*o/100:a)),n.some(([a])=>a)?(r.css(t,"strokeDasharray",o),(a,c)=>{a.strokeDashoffset=x(n,c)}):r.noop}function z(e,t,n,s){n.length===1&&n.unshift(0);const o=e==="bgy"?"height":"width";s[e]=g(n,i=>r.toPx(i,o,t));const a=["bgx","bgy"].filter(i=>i in s);if(a.length===2&&e==="bgx")return r.noop;if($(t,"backgroundSize","")==="cover")return Q(e,t,n,s);const c={};for(const i of a)c[i]=C(t,i);return p(a,c,s)}function Q(e,t,n,s){const o=X(t);if(!o.width)return r.noop;const a={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(f=>f in s),i={};for(const f of c){const h=s[f].map(([k])=>k),w=Math.min(...h),P=Math.max(...h),D=h.indexOf(w)<h.indexOf(P),W=P-w;i[f]=`${(D?-W:0)-(D?w:P)}px`,a[f==="bgy"?"height":"width"]+=W}const u=r.Dimensions.cover(o,a);for(const f of c){const h=f==="bgy"?"height":"width",w=u[h]-a[h];i[f]=`max(${C(t,f)},-${w}px) + ${i[f]}`}const d=p(c,i,s);return(f,h)=>{d(f,h),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function C(e,t){return $(e,`background-position-${t.substr(-1)}`,"")}function p(e,t,n){return function(s,o){for(const a of e){const c=x(n[a],o);s[`background-position-${a.substr(-1)}`]=`calc(${t[a]} + ${c}px)`}}}const M={};function X(e){const t=r.css(e,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(M[t])return M[t];const n=new Image;return t&&(n.src=t,!n.naturalWidth)?(n.onload=()=>{M[t]=j(n),r.trigger(e,r.createEvent("load",!1))},j(n)):M[t]=j(n)}function j(e){return{width:e.naturalWidth,height:e.naturalHeight}}function g(e,t=r.toFloat){const n=[],{length:s}=e;let o=0;for(let a=0;a<s;a++){let[c,i]=r.isString(e[a])?e[a].trim().split(" "):[e[a]];if(c=t(c),i=i?r.toFloat(i)/100:null,a===0?i===null?i=0:i&&n.push([c,0]):a===s-1&&(i===null?i=1:i!==1&&(n.push([c,i]),i=1)),n.push([c,i]),i===null)o++;else if(o){const u=n[a-o-1][1],d=(i-u)/(o+1);for(let f=o;f>0;f--)n[a-f][1]=u+d*(o-f+1);o=0}}return n}function E(e,t){const n=r.findIndex(e.slice(1),([,s])=>t<=s)+1;return[e[n-1][0],e[n][0],(t-e[n-1][1])/(e[n][1]-e[n-1][1])]}function x(e,t){const[n,s,o]=E(e,t);return r.isNumber(n)?n+Math.abs(n-s)*o*(n<s?1:-1):+s}const Y=/^-?\d+(\S+)?/;function O(e,t){var n;for(const s of e){const o=(n=s.match)==null?void 0:n.call(s,Y);if(o)return o[1]}return t}function $(e,t,n){const s=e.style[t],o=r.css(r.css(e,t,n),t);return e.style[t]=s,o}function L(e,t){return e.reduce((n,s)=>(n[s]=t,n),{})}var N={mixins:[A,m,_],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target({target:e},t){return T(e&&r.query(e,t)||t)},start({start:e}){return r.toPx(e,"height",this.target,!0)},end({end:e,viewport:t}){return r.toPx(e||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},resizeTargets(){return[this.$el,this.target]},update:{read({percent:e},t){if(t.has("scroll")||(e=!1),!r.isVisible(this.$el))return!1;if(!this.matchMedia)return;const n=e;return e=Z(r.scrolledOver(this.target,this.start,this.end),this.easing),{percent:e,style:n===e?!1:this.getCss(e)}},write({style:e}){if(!this.matchMedia){this.reset();return}e&&r.css(this.$el,e)},events:["scroll","resize"]}};function Z(e,t){return t>=0?Math.pow(e,t+1):1-Math.pow(1-e,1-t)}function T(e){return e?"offsetTop"in e?e:T(r.parent(e)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",N),N});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(r,g){typeof exports=="object"&&typeof module<"u"?module.exports=g(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],g):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitSlider_parallax=g(r.UIkit.util))})(this,function(r){"use strict";var g={props:{media:Boolean},data:{media:!1},connected(){const n=z(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,r.trigger(this.$el,r.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=r.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function z(n,t){if(r.isString(n)){if(r.startsWith(n,"@"))n=r.toFloat(r.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&r.isNumeric(n)?`(min-width: ${n}px)`:""}function E(n){return Math.ceil(Math.max(0,...r.$$("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const w={x:y,y,rotate:y,scale:y,color:v,backgroundColor:v,borderColor:v,blur:l,hue:l,fopacity:l,grayscale:l,invert:l,saturate:l,sepia:l,opacity:L,stroke:R,bgx:P,bgy:P},{keys:j}=Object;var q={mixins:[g],props:T(j(w),"list"),data:T(j(w),void 0),computed:{props(n,t){const e={};for(const s in n)s in w&&!r.isUndefined(n[s])&&(e[s]=n[s].slice());const o={};for(const s in e)o[s]=w[s](s,t,e[s],e);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))r.css(this.$el,n,"")},getCss(n){const t={transform:"",filter:""};for(const e in this.props)this.props[e](t,n);return t.willChange=Object.keys(t).filter(e=>t[e]!=="").join(","),t}}};function y(n,t,e){let o=M(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",s;return n==="x"||n==="y"?(n=`translate${r.ucfirst(n)}`,s=a=>r.toFloat(r.toFloat(a).toFixed(o==="px"?0:6))):n==="scale"&&(o="",s=a=>M([a])?r.toPx(a,"width",t,!0)/t.offsetWidth:a),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,s),(a,i)=>{a.transform+=` ${n}(${b(e,i)}${o})`}}function v(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,o=>H(t,o)),(o,s)=>{const[a,i,c]=p(e,s),d=a.map((u,f)=>(u+=c*(i[f]-u),f===3?r.toFloat(u):parseInt(u,10))).join(",");o[n]=`rgba(${d})`}}function H(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(r.toFloat)}function l(n,t,e){e.length===1&&e.unshift(0);const o=M(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(s,a)=>{const i=b(e,a);s.filter+=` ${n}(${i+o})`}}function L(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(o,s)=>{o[n]=b(e,s)}}function R(n,t,e){e.length===1&&e.unshift(0);const o=M(e),s=E(t);return e=m(e.reverse(),a=>(a=r.toFloat(a),o==="%"?a*s/100:a)),e.some(([a])=>a)?(r.css(t,"strokeDasharray",s),(a,i)=>{a.strokeDashoffset=b(e,i)}):r.noop}function P(n,t,e,o){e.length===1&&e.unshift(0);const s=n==="bgy"?"height":"width";o[n]=m(e,c=>r.toPx(c,s,t));const a=["bgx","bgy"].filter(c=>c in o);if(a.length===2&&n==="bgx")return r.noop;if(x(t,"backgroundSize","")==="cover")return V(n,t,e,o);const i={};for(const c of a)i[c]=O(t,c);return S(a,i,o)}function V(n,t,e,o){const s=A(t);if(!s.width)return r.noop;const a={width:t.offsetWidth,height:t.offsetHeight},i=["bgx","bgy"].filter(f=>f in o),c={};for(const f of i){const h=o[f].map(([J])=>J),$=Math.min(...h),I=Math.max(...h),N=h.indexOf($)<h.indexOf(I),_=I-$;c[f]=`${(N?-_:0)-(N?$:I)}px`,a[f==="bgy"?"height":"width"]+=_}const d=r.Dimensions.cover(s,a);for(const f of i){const h=f==="bgy"?"height":"width",$=d[h]-a[h];c[f]=`max(${O(t,f)},-${$}px) + ${c[f]}`}const u=S(i,c,o);return(f,h)=>{u(f,h),f.backgroundSize=`${d.width}px ${d.height}px`,f.backgroundRepeat="no-repeat"}}function O(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function S(n,t,e){return function(o,s){for(const a of n){const i=b(e[a],s);o[`background-position-${a.substr(-1)}`]=`calc(${t[a]} + ${i}px)`}}}const F={};function A(n){const t=r.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[t])return F[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{F[t]=C(e),r.trigger(n,r.createEvent("load",!1))},C(e)):F[t]=C(e)}function C(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=r.toFloat){const e=[],{length:o}=n;let s=0;for(let a=0;a<o;a++){let[i,c]=r.isString(n[a])?n[a].trim().split(" "):[n[a]];if(i=t(i),c=c?r.toFloat(c)/100:null,a===0?c===null?c=0:c&&e.push([i,0]):a===o-1&&(c===null?c=1:c!==1&&(e.push([i,c]),c=1)),e.push([i,c]),c===null)s++;else if(s){const d=e[a-s-1][1],u=(c-d)/(s+1);for(let f=s;f>0;f--)e[a-f][1]=d+u*(s-f+1);s=0}}return e}function p(n,t){const e=r.findIndex(n.slice(1),([,o])=>t<=o)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function b(n,t){const[e,o,s]=p(n,t);return r.isNumber(e)?e+Math.abs(e-o)*s*(e<o?1:-1):+o}const G=/^-?\d+(\S+)?/;function M(n,t){var e;for(const o of n){const s=(e=o.match)==null?void 0:e.call(o,G);if(s)return s[1]}return t}function x(n,t,e){const o=n.style[t],s=r.css(r.css(n,t,e),t);return n.style[t]=o,s}function T(n,t){return n.reduce((e,o)=>(e[o]=t,e),{})}var W={mixins:[q],data:{selItem:"!li"},beforeConnect(){this.item=r.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,duration:e,timing:o,dir:s}}){r.fastdom.read(()=>{if(!this.matchMedia)return;const a=this.getCss(B(n,s,t)),i=this.getCss(D(n)?.5:s>0?1:0);r.fastdom.write(()=>{r.css(this.$el,a),r.Transition.start(this.$el,i,e,o).catch(r.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){r.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:t,dir:e}}){r.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(B(n,e,t));r.fastdom.write(()=>r.css(this.$el,o))})}}]};function D(n){return r.endsWith(n,"in")}function B(n,t,e){return e/=2,D(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",W),W});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.4-dev.
|
|
1
|
+
/*! UIkit 3.16.4-dev.a8da41c36 | 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')) :
|
|
@@ -841,6 +841,31 @@
|
|
|
841
841
|
center: this.center,
|
|
842
842
|
list: this.list
|
|
843
843
|
};
|
|
844
|
+
},
|
|
845
|
+
children: {
|
|
846
|
+
get() {
|
|
847
|
+
return uikitUtil.children(this.list);
|
|
848
|
+
},
|
|
849
|
+
watch(slides, prev) {
|
|
850
|
+
if (!prev) {
|
|
851
|
+
this.registerObserver(
|
|
852
|
+
this._resizeObserver = uikitUtil.observeResize(slides, () => this.$emit("resize"))
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
if (prev) {
|
|
856
|
+
slides.forEach(
|
|
857
|
+
(slide) => !uikitUtil.includes(prev, slide) && this._resizeObserver.observe(slide)
|
|
858
|
+
);
|
|
859
|
+
prev.forEach(
|
|
860
|
+
(slide) => !uikitUtil.includes(slides, slide) && this._resizeObserver.unobserve(slide)
|
|
861
|
+
);
|
|
862
|
+
this.$emit();
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
immediate: true
|
|
866
|
+
},
|
|
867
|
+
slides() {
|
|
868
|
+
return this.children.filter(uikitUtil.isVisible);
|
|
844
869
|
}
|
|
845
870
|
},
|
|
846
871
|
connected() {
|