uikit 3.15.4-dev.c21737f52 → 3.15.5-dev.9a62efcdc

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/less.js +1 -1
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +14 -13
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +105 -108
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +105 -108
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +1 -1
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +101 -103
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +172 -145
  38. package/dist/js/uikit-core.min.js +2 -2
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +178 -150
  42. package/dist/js/uikit.min.js +2 -2
  43. package/package.json +6 -6
  44. package/src/js/components/filter.js +14 -12
  45. package/src/js/core/accordion.js +51 -16
  46. package/src/js/core/alert.js +19 -21
  47. package/src/js/core/scrollspy.js +3 -0
  48. package/src/js/mixin/modal.js +28 -29
  49. package/src/js/mixin/togglable.js +109 -111
  50. package/tests/accordion.html +1 -1
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -1 +1 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitCountdown=i(e.UIkit.util))})(this,function(e){"use strict";var i={connected(){!e.hasClass(this.$el,this.$name)&&e.addClass(this.$el,this.$name)}};const a=["days","hours","minutes","seconds"];var d={mixins:[i],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},connected(){this.date=Date.parse(this.$props.date),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=setInterval(this.update,1e3)},stop(){clearInterval(this.timer)},update(){const n=r(this.date);(!this.date||n.total<=0)&&(this.stop(),n.days=n.hours=n.minutes=n.seconds=0);for(const s of a){const o=e.$(this.clsWrapper.replace("%unit%",s),this.$el);if(!o)continue;let t=String(Math.trunc(n[s]));t=t.length<2?"0"+t:t,o.textContent!==t&&(t=t.split(""),t.length!==o.children.length&&e.html(o,t.map(()=>"<span></span>").join("")),t.forEach((h,u)=>o.children[u].textContent=h))}}}};function r(n){const s=n-Date.now();return{total:s,seconds:s/1e3%60,minutes:s/1e3/60%60,hours:s/1e3/60/60%24,days:s/1e3/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",d),d});
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitcountdown",["uikit-util"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitCountdown=i(e.UIkit.util))})(this,function(e){"use strict";var i={connected(){!e.hasClass(this.$el,this.$name)&&e.addClass(this.$el,this.$name)}};const a=["days","hours","minutes","seconds"];var d={mixins:[i],props:{date:String,clsWrapper:String},data:{date:"",clsWrapper:".uk-countdown-%unit%"},connected(){this.date=Date.parse(this.$props.date),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=setInterval(this.update,1e3)},stop(){clearInterval(this.timer)},update(){const n=r(this.date);(!this.date||n.total<=0)&&(this.stop(),n.days=n.hours=n.minutes=n.seconds=0);for(const s of a){const o=e.$(this.clsWrapper.replace("%unit%",s),this.$el);if(!o)continue;let t=String(Math.trunc(n[s]));t=t.length<2?"0"+t:t,o.textContent!==t&&(t=t.split(""),t.length!==o.children.length&&e.html(o,t.map(()=>"<span></span>").join("")),t.forEach((h,u)=>o.children[u].textContent=h))}}}};function r(n){const s=n-Date.now();return{total:s,seconds:s/1e3%60,minutes:s/1e3/60%60,hours:s/1e3/60/60%24,days:s/1e3/60/60/24}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",d),d});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -383,7 +383,7 @@
383
383
  },
384
384
 
385
385
  watch() {
386
- this.$emit();
386
+ this.updateState();
387
387
 
388
388
  if (this.selActive !== false) {
389
389
  const actives = uikitUtil.$$(this.selActive, this.$el);
@@ -401,7 +401,7 @@
401
401
 
402
402
  watch(list, old) {
403
403
  if (old && !isEqualList(list, old)) {
404
- this.$emit();
404
+ this.updateState();
405
405
  }
406
406
  },
407
407
 
@@ -409,12 +409,6 @@
409
409
 
410
410
 
411
411
 
412
- update: {
413
- write() {
414
- this.setState(this.getState(), false);
415
- } },
416
-
417
-
418
412
  events: [
419
413
  {
420
414
  name: 'click',
@@ -454,18 +448,25 @@
454
448
 
455
449
  uikitUtil.trigger(this.$el, 'beforeFilter', [this, state]);
456
450
 
457
- for (const el of this.toggles) {
458
- uikitUtil.toggleClass(el, this.cls, !!matchFilter(el, this.attrItem, state));
459
- }
451
+ this.toggles.forEach((el) =>
452
+ uikitUtil.toggleClass(el, this.cls, !!matchFilter(el, this.attrItem, state)));
453
+
460
454
 
461
455
  await Promise.all(
462
456
  uikitUtil.$$(this.target, this.$el).map((target) => {
463
- const filterFn = () => applyState(state, target, uikitUtil.children(target));
457
+ const filterFn = () => {
458
+ applyState(state, target, uikitUtil.children(target));
459
+ this.$update(this.$el);
460
+ };
464
461
  return animate ? this.animate(filterFn, target) : filterFn();
465
462
  }));
466
463
 
467
464
 
468
465
  uikitUtil.trigger(this.$el, 'afterFilter', [this]);
466
+ },
467
+
468
+ updateState() {
469
+ uikitUtil.fastdom.write(() => this.setState(this.getState(), false));
469
470
  } } };
470
471
 
471
472
 
@@ -1 +1 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],m):(n=typeof globalThis<"u"?globalThis:n||self,n.UIkitFilter=m(n.UIkit.util))})(this,function(n){"use strict";function m(s){return A(s,"top","bottom")}function A(s,e,o){const t=[[]];for(const a of s){if(!n.isVisible(a))continue;let c=l(a);for(let r=t.length-1;r>=0;r--){const f=t[r];if(!f[0]){f.push(a);break}let d;if(f[0].offsetParent===a.offsetParent?d=l(f[0]):(c=l(a,!0),d=l(f[0],!0)),c[e]>=d[o]-1&&c[e]!==d[e]){t.push([a]);break}if(c[o]-1>d[e]||c[e]===d[e]){f.push(a);break}if(r===0){t.unshift([a]);break}}}return t}function l(s,e){e===void 0&&(e=!1);let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:c}=s;return e&&([o,t]=n.offsetPosition(s)),{top:o,left:t,bottom:o+a,right:t+c}}const y="uk-transition-leave",g="uk-transition-enter";function v(s,e,o,t){t===void 0&&(t=0);const a=u(e,!0),c={opacity:1},r={opacity:0},f=i=>()=>a===u(e)?i():Promise.reject(),d=f(async()=>{n.addClass(e,y),await Promise.all(I(e).map((i,h)=>new Promise(w=>setTimeout(()=>n.Transition.start(i,r,o/2,"ease").then(w),h*t)))),n.removeClass(e,y)}),p=f(async()=>{const i=n.height(e);n.addClass(e,g),s(),n.css(n.children(e),{opacity:0}),await L();const h=n.children(e),w=n.height(e);n.css(e,"alignContent","flex-start"),n.height(e,i);const x=I(e);n.css(h,r);const q=x.map(async(R,G)=>{await z(G*t),await n.Transition.start(R,c,o/2,"ease")});i!==w&&q.push(n.Transition.start(e,{height:w},o/2+x.length*t,"ease")),await Promise.all(q).then(()=>{n.removeClass(e,g),a===u(e)&&(n.css(e,{height:"",alignContent:""}),n.css(h,{opacity:""}),delete e.dataset.transition)})});return n.hasClass(e,y)?T(e).then(p):n.hasClass(e,g)?T(e).then(d).then(p):d().then(p)}function u(s,e){return e&&(s.dataset.transition=1+u(s)),n.toNumber(s.dataset.transition)||0}function T(s){return Promise.all(n.children(s).filter(n.Transition.inProgress).map(e=>new Promise(o=>n.once(e,"transitionend transitioncanceled",o))))}function I(s){return m(n.children(s)).reduce((e,o)=>e.concat(n.sortBy(o.filter(t=>n.isInView(t)),"offsetLeft")),[])}function L(){return new Promise(s=>requestAnimationFrame(s))}function z(s){return new Promise(e=>setTimeout(e,s))}async function B(s,e,o){await P();let t=n.children(e);const a=t.map(i=>F(i,!0)),c=n.css(e,["height","padding"]);n.Transition.cancel(e),t.forEach(n.Transition.cancel),$(e),s(),t=t.concat(n.children(e).filter(i=>!n.includes(t,i))),await Promise.resolve(),n.fastdom.flush();const r=n.css(e,["height","padding"]),[f,d]=V(e,t,a);t.forEach((i,h)=>d[h]&&n.css(i,d[h])),n.css(e,{display:"block",...c}),await P();const p=t.map((i,h)=>n.parent(i)===e&&n.Transition.start(i,f[h],o,"ease")).concat(n.Transition.start(e,r,o,"ease"));await Promise.all(p).then(()=>{t.forEach((i,h)=>n.parent(i)===e&&n.css(i,"display",f[h].opacity===0?"none":"")),$(e)},n.noop)}function F(s,e){const o=n.css(s,"zIndex");return n.isVisible(s)?{display:"",opacity:e?n.css(s,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?n.index(s):o,...b(s)}:!1}function V(s,e,o){const t=e.map((c,r)=>n.parent(c)&&r in o?o[r]?n.isVisible(c)?b(c):{opacity:0}:{opacity:n.isVisible(c)?1:0}:!1),a=t.map((c,r)=>{const f=n.parent(e[r])===s&&(o[r]||F(e[r]));if(!f)return!1;if(!c)delete f.opacity;else if(!("opacity"in c)){const{opacity:d}=f;d%1?c.opacity=1:delete f.opacity}return f});return[t,a]}function $(s){n.css(s.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),n.css(s,{height:"",display:"",padding:""})}function b(s){const{height:e,width:o}=n.offset(s),{top:t,left:a}=n.position(s),{marginLeft:c,marginTop:r}=n.css(s,["marginTop","marginLeft"]);return{top:t,left:a,height:e,width:o,marginLeft:c,marginTop:r,transform:""}}function P(){return new Promise(s=>requestAnimationFrame(s))}var N={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(s,e){e===void 0&&(e=this.$el);const o=this.animation;return(o==="fade"?v:o==="delayed-fade"?function(){for(var a=arguments.length,c=new Array(a),r=0;r<a;r++)c[r]=arguments[r];return v(...c,40)}:o?B:()=>(s(),Promise.resolve()))(s,e,this.duration).then(()=>this.$update(e,"resize"),n.noop)}}},S={mixins:[N],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get(s,e){let{attrItem:o}=s;return n.$$("["+o+"],[data-"+o+"]",e)},watch(){if(this.$emit(),this.selActive!==!1){const s=n.$$(this.selActive,this.$el);this.toggles.forEach(e=>n.toggleClass(e,this.cls,n.includes(s,e)))}},immediate:!0},children:{get(s,e){let{target:o}=s;return n.$$(o+" > *",e)},watch(s,e){e&&!D(s,e)&&this.$emit()},immediate:!0}},update:{write(){this.setState(this.getState(),!1)}},events:[{name:"click",delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(s){s.preventDefault(),this.apply(s.current)}}],methods:{apply(s){const e=this.getState(),o=E(s,this.attrItem,this.getState());O(e,o)||this.setState(o)},getState(){return this.toggles.filter(s=>n.hasClass(s,this.cls)).reduce((s,e)=>E(e,this.attrItem,s),{filter:{"":""},sort:[]})},async setState(s,e){e===void 0&&(e=!0),s={filter:{"":""},sort:[],...s},n.trigger(this.$el,"beforeFilter",[this,s]);for(const o of this.toggles)n.toggleClass(o,this.cls,!!j(o,this.attrItem,s));await Promise.all(n.$$(this.target,this.$el).map(o=>{const t=()=>H(s,o,n.children(o));return e?this.animate(t,o):t()})),n.trigger(this.$el,"afterFilter",[this])}}};function C(s,e){return n.parseOptions(n.data(s,e),["filter"])}function O(s,e){return["filter","sort"].every(o=>n.isEqual(s[o],e[o]))}function H(s,e,o){const t=W(s);o.forEach(r=>n.css(r,"display",t&&!n.matches(r,t)?"none":""));const[a,c]=s.sort;if(a){const r=M(o,a,c);n.isEqual(r,o)||n.append(e,r)}}function E(s,e,o){const t=C(s,e),{filter:a,group:c,sort:r,order:f="asc"}=t;return(a||n.isUndefined(r))&&(c?a?(delete o.filter[""],o.filter[c]=a):(delete o.filter[c],(n.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":a||""})):o.filter={"":a||""}),n.isUndefined(r)||(o.sort=[r,f]),o}function j(s,e,o){let{filter:t={"":""},sort:[a,c]}=o;const{filter:r="",group:f="",sort:d,order:p="asc"}=C(s,e);return n.isUndefined(d)?f in t&&r===t[f]||!r&&f&&!(f in t)&&!t[""]:a===d&&c===p}function D(s,e){return s.length===e.length&&s.every(o=>e.includes(o))}function W(s){let{filter:e}=s,o="";return n.each(e,t=>o+=t||""),o}function M(s,e,o){return[...s].sort((t,a)=>n.data(t,e).localeCompare(n.data(a,e),void 0,{numeric:!0})*(o==="asc"||-1))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",S),S});
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(n,m){typeof exports=="object"&&typeof module<"u"?module.exports=m(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitfilter",["uikit-util"],m):(n=typeof globalThis<"u"?globalThis:n||self,n.UIkitFilter=m(n.UIkit.util))})(this,function(n){"use strict";function m(s){return A(s,"top","bottom")}function A(s,e,o){const t=[[]];for(const a of s){if(!n.isVisible(a))continue;let c=l(a);for(let r=t.length-1;r>=0;r--){const f=t[r];if(!f[0]){f.push(a);break}let d;if(f[0].offsetParent===a.offsetParent?d=l(f[0]):(c=l(a,!0),d=l(f[0],!0)),c[e]>=d[o]-1&&c[e]!==d[e]){t.push([a]);break}if(c[o]-1>d[e]||c[e]===d[e]){f.push(a);break}if(r===0){t.unshift([a]);break}}}return t}function l(s,e){e===void 0&&(e=!1);let{offsetTop:o,offsetLeft:t,offsetHeight:a,offsetWidth:c}=s;return e&&([o,t]=n.offsetPosition(s)),{top:o,left:t,bottom:o+a,right:t+c}}const y="uk-transition-leave",g="uk-transition-enter";function v(s,e,o,t){t===void 0&&(t=0);const a=u(e,!0),c={opacity:1},r={opacity:0},f=i=>()=>a===u(e)?i():Promise.reject(),d=f(async()=>{n.addClass(e,y),await Promise.all(I(e).map((i,h)=>new Promise(w=>setTimeout(()=>n.Transition.start(i,r,o/2,"ease").then(w),h*t)))),n.removeClass(e,y)}),p=f(async()=>{const i=n.height(e);n.addClass(e,g),s(),n.css(n.children(e),{opacity:0}),await L();const h=n.children(e),w=n.height(e);n.css(e,"alignContent","flex-start"),n.height(e,i);const x=I(e);n.css(h,r);const q=x.map(async(R,G)=>{await z(G*t),await n.Transition.start(R,c,o/2,"ease")});i!==w&&q.push(n.Transition.start(e,{height:w},o/2+x.length*t,"ease")),await Promise.all(q).then(()=>{n.removeClass(e,g),a===u(e)&&(n.css(e,{height:"",alignContent:""}),n.css(h,{opacity:""}),delete e.dataset.transition)})});return n.hasClass(e,y)?T(e).then(p):n.hasClass(e,g)?T(e).then(d).then(p):d().then(p)}function u(s,e){return e&&(s.dataset.transition=1+u(s)),n.toNumber(s.dataset.transition)||0}function T(s){return Promise.all(n.children(s).filter(n.Transition.inProgress).map(e=>new Promise(o=>n.once(e,"transitionend transitioncanceled",o))))}function I(s){return m(n.children(s)).reduce((e,o)=>e.concat(n.sortBy(o.filter(t=>n.isInView(t)),"offsetLeft")),[])}function L(){return new Promise(s=>requestAnimationFrame(s))}function z(s){return new Promise(e=>setTimeout(e,s))}async function B(s,e,o){await b();let t=n.children(e);const a=t.map(i=>F(i,!0)),c=n.css(e,["height","padding"]);n.Transition.cancel(e),t.forEach(n.Transition.cancel),S(e),s(),t=t.concat(n.children(e).filter(i=>!n.includes(t,i))),await Promise.resolve(),n.fastdom.flush();const r=n.css(e,["height","padding"]),[f,d]=V(e,t,a);t.forEach((i,h)=>d[h]&&n.css(i,d[h])),n.css(e,{display:"block",...c}),await b();const p=t.map((i,h)=>n.parent(i)===e&&n.Transition.start(i,f[h],o,"ease")).concat(n.Transition.start(e,r,o,"ease"));await Promise.all(p).then(()=>{t.forEach((i,h)=>n.parent(i)===e&&n.css(i,"display",f[h].opacity===0?"none":"")),S(e)},n.noop)}function F(s,e){const o=n.css(s,"zIndex");return n.isVisible(s)?{display:"",opacity:e?n.css(s,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?n.index(s):o,...$(s)}:!1}function V(s,e,o){const t=e.map((c,r)=>n.parent(c)&&r in o?o[r]?n.isVisible(c)?$(c):{opacity:0}:{opacity:n.isVisible(c)?1:0}:!1),a=t.map((c,r)=>{const f=n.parent(e[r])===s&&(o[r]||F(e[r]));if(!f)return!1;if(!c)delete f.opacity;else if(!("opacity"in c)){const{opacity:d}=f;d%1?c.opacity=1:delete f.opacity}return f});return[t,a]}function S(s){n.css(s.children,{height:"",left:"",opacity:"",pointerEvents:"",position:"",top:"",marginTop:"",marginLeft:"",transform:"",width:"",zIndex:""}),n.css(s,{height:"",display:"",padding:""})}function $(s){const{height:e,width:o}=n.offset(s),{top:t,left:a}=n.position(s),{marginLeft:c,marginTop:r}=n.css(s,["marginTop","marginLeft"]);return{top:t,left:a,height:e,width:o,marginLeft:c,marginTop:r,transform:""}}function b(){return new Promise(s=>requestAnimationFrame(s))}var N={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(s,e){e===void 0&&(e=this.$el);const o=this.animation;return(o==="fade"?v:o==="delayed-fade"?function(){for(var a=arguments.length,c=new Array(a),r=0;r<a;r++)c[r]=arguments[r];return v(...c,40)}:o?B:()=>(s(),Promise.resolve()))(s,e,this.duration).then(()=>this.$update(e,"resize"),n.noop)}}},P={mixins:[N],args:"target",props:{target:Boolean,selActive:Boolean},data:{target:null,selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{toggles:{get(s,e){let{attrItem:o}=s;return n.$$("["+o+"],[data-"+o+"]",e)},watch(){if(this.updateState(),this.selActive!==!1){const s=n.$$(this.selActive,this.$el);this.toggles.forEach(e=>n.toggleClass(e,this.cls,n.includes(s,e)))}},immediate:!0},children:{get(s,e){let{target:o}=s;return n.$$(o+" > *",e)},watch(s,e){e&&!D(s,e)&&this.updateState()},immediate:!0}},events:[{name:"click",delegate(){return"["+this.attrItem+"],[data-"+this.attrItem+"]"},handler(s){s.preventDefault(),this.apply(s.current)}}],methods:{apply(s){const e=this.getState(),o=C(s,this.attrItem,this.getState());O(e,o)||this.setState(o)},getState(){return this.toggles.filter(s=>n.hasClass(s,this.cls)).reduce((s,e)=>C(e,this.attrItem,s),{filter:{"":""},sort:[]})},async setState(s,e){e===void 0&&(e=!0),s={filter:{"":""},sort:[],...s},n.trigger(this.$el,"beforeFilter",[this,s]),this.toggles.forEach(o=>n.toggleClass(o,this.cls,!!j(o,this.attrItem,s))),await Promise.all(n.$$(this.target,this.$el).map(o=>{const t=()=>{H(s,o,n.children(o)),this.$update(this.$el)};return e?this.animate(t,o):t()})),n.trigger(this.$el,"afterFilter",[this])},updateState(){n.fastdom.write(()=>this.setState(this.getState(),!1))}}};function E(s,e){return n.parseOptions(n.data(s,e),["filter"])}function O(s,e){return["filter","sort"].every(o=>n.isEqual(s[o],e[o]))}function H(s,e,o){const t=W(s);o.forEach(r=>n.css(r,"display",t&&!n.matches(r,t)?"none":""));const[a,c]=s.sort;if(a){const r=M(o,a,c);n.isEqual(r,o)||n.append(e,r)}}function C(s,e,o){const t=E(s,e),{filter:a,group:c,sort:r,order:f="asc"}=t;return(a||n.isUndefined(r))&&(c?a?(delete o.filter[""],o.filter[c]=a):(delete o.filter[c],(n.isEmpty(o.filter)||""in o.filter)&&(o.filter={"":a||""})):o.filter={"":a||""}),n.isUndefined(r)||(o.sort=[r,f]),o}function j(s,e,o){let{filter:t={"":""},sort:[a,c]}=o;const{filter:r="",group:f="",sort:d,order:p="asc"}=E(s,e);return n.isUndefined(d)?f in t&&r===t[f]||!r&&f&&!(f in t)&&!t[""]:a===d&&c===p}function D(s,e){return s.length===e.length&&s.every(o=>e.includes(o))}function W(s){let{filter:e}=s,o="";return n.each(e,t=>o+=t||""),o}function M(s,e,o){return[...s].sort((t,a)=>n.data(t,e).localeCompare(n.data(a,e),void 0,{numeric:!0})*(o==="asc"||-1))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",P),P});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -138,11 +138,11 @@
138
138
  uikitUtil.isFunction(animate) ?
139
139
  animate :
140
140
  animate === false || !this.hasAnimation ?
141
- toggleInstant(this) :
141
+ toggleInstant :
142
142
  this.hasTransition ?
143
- toggleTransition(this) :
144
- toggleAnimation(this))(
145
- el, show);
143
+ toggleTransition :
144
+ toggleAnimation)(
145
+ el, show, this);
146
146
 
147
147
  const cls = show ? this.clsEnter : this.clsLeave;
148
148
 
@@ -202,16 +202,18 @@
202
202
 
203
203
 
204
204
 
205
- function toggleInstant(_ref3) {let { _toggle } = _ref3;
206
- return (el, show) => {
207
- uikitUtil.Animation.cancel(el);
208
- uikitUtil.Transition.cancel(el);
209
- return _toggle(el, show);
210
- };
205
+ function toggleInstant(el, show, _ref3) {let { _toggle } = _ref3;
206
+ uikitUtil.Animation.cancel(el);
207
+ uikitUtil.Transition.cancel(el);
208
+ return _toggle(el, show);
211
209
  }
212
210
 
213
- function toggleTransition(cmp) {var _cmp$animation$;
214
- const [mode = 'reveal', startProp = 'top'] = ((_cmp$animation$ = cmp.animation[0]) == null ? void 0 : _cmp$animation$.split('-')) || [];
211
+ async function toggleTransition(
212
+ el,
213
+ show, _ref4)
214
+
215
+ {var _animation$;let { animation, duration, velocity, transition, _toggle } = _ref4;
216
+ const [mode = 'reveal', startProp = 'top'] = ((_animation$ = animation[0]) == null ? void 0 : _animation$.split('-')) || [];
215
217
 
216
218
  const dirs = [
217
219
  ['left', 'right'],
@@ -224,111 +226,107 @@
224
226
  const marginProp = "margin-" + dir[0];
225
227
  const marginStartProp = "margin-" + startProp;
226
228
 
227
- return async (el, show) => {
228
- let { duration, velocity, transition, _toggle } = cmp;
229
+ let currentDim = uikitUtil.dimensions(el)[dimProp];
229
230
 
230
- let currentDim = uikitUtil.dimensions(el)[dimProp];
231
+ const inProgress = uikitUtil.Transition.inProgress(el);
232
+ await uikitUtil.Transition.cancel(el);
231
233
 
232
- const inProgress = uikitUtil.Transition.inProgress(el);
233
- await uikitUtil.Transition.cancel(el);
234
+ if (show) {
235
+ _toggle(el, true);
236
+ }
234
237
 
235
- if (show) {
236
- _toggle(el, true);
237
- }
238
+ const prevProps = Object.fromEntries(
239
+ [
240
+ 'padding',
241
+ 'border',
242
+ 'width',
243
+ 'height',
244
+ 'minWidth',
245
+ 'minHeight',
246
+ 'overflowY',
247
+ 'overflowX',
248
+ marginProp,
249
+ marginStartProp].
250
+ map((key) => [key, el.style[key]]));
251
+
252
+
253
+ const dim = uikitUtil.dimensions(el);
254
+ const currentMargin = uikitUtil.toFloat(uikitUtil.css(el, marginProp));
255
+ const marginStart = uikitUtil.toFloat(uikitUtil.css(el, marginStartProp));
256
+ const endDim = dim[dimProp] + marginStart;
257
+
258
+ if (!inProgress && !show) {
259
+ currentDim += marginStart;
260
+ }
238
261
 
239
- const prevProps = Object.fromEntries(
240
- [
262
+ const [wrapper] = uikitUtil.wrapInner(el, '<div>');
263
+ uikitUtil.css(wrapper, {
264
+ boxSizing: 'border-box',
265
+ height: dim.height,
266
+ width: dim.width,
267
+ ...uikitUtil.css(el, [
268
+ 'overflow',
241
269
  'padding',
242
- 'border',
243
- 'width',
244
- 'height',
245
- 'overflowY',
246
- 'overflowX',
247
- marginProp,
248
- marginStartProp].
249
- map((key) => [key, el.style[key]]));
250
-
251
-
252
- const dim = uikitUtil.dimensions(el);
253
- const currentMargin = uikitUtil.toFloat(uikitUtil.css(el, marginProp));
254
- const marginStart = uikitUtil.toFloat(uikitUtil.css(el, marginStartProp));
255
- const endDim = dim[dimProp] + marginStart;
256
-
257
- if (!inProgress && !show) {
258
- currentDim += marginStart;
259
- }
260
-
261
- const [wrapper] = uikitUtil.wrapInner(el, '<div>');
262
- uikitUtil.css(wrapper, {
263
- boxSizing: 'border-box',
264
- height: dim.height,
265
- width: dim.width,
266
- ...uikitUtil.css(el, [
267
- 'overflow',
268
- 'padding',
269
- 'borderTop',
270
- 'borderRight',
271
- 'borderBottom',
272
- 'borderLeft',
273
- 'borderImage',
274
- marginStartProp]) });
275
-
276
-
277
-
278
- uikitUtil.css(el, {
279
- padding: 0,
280
- border: 0,
281
- minWidth: 0,
282
- minHeight: 0,
283
- [marginStartProp]: 0,
284
- width: dim.width,
285
- height: dim.height,
286
- overflow: 'hidden',
287
- [dimProp]: currentDim });
288
-
289
-
290
- const percent = currentDim / endDim;
291
- duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
292
- const endProps = { [dimProp]: show ? endDim : 0 };
293
-
294
- if (end) {
295
- uikitUtil.css(el, marginProp, endDim - currentDim + currentMargin);
296
- endProps[marginProp] = show ? currentMargin : endDim + currentMargin;
297
- }
270
+ 'borderTop',
271
+ 'borderRight',
272
+ 'borderBottom',
273
+ 'borderLeft',
274
+ 'borderImage',
275
+ marginStartProp]) });
276
+
277
+
278
+
279
+ uikitUtil.css(el, {
280
+ padding: 0,
281
+ border: 0,
282
+ minWidth: 0,
283
+ minHeight: 0,
284
+ [marginStartProp]: 0,
285
+ width: dim.width,
286
+ height: dim.height,
287
+ overflow: 'hidden',
288
+ [dimProp]: currentDim });
289
+
290
+
291
+ const percent = currentDim / endDim;
292
+ duration = (velocity * endDim + duration) * (show ? 1 - percent : percent);
293
+ const endProps = { [dimProp]: show ? endDim : 0 };
294
+
295
+ if (end) {
296
+ uikitUtil.css(el, marginProp, endDim - currentDim + currentMargin);
297
+ endProps[marginProp] = show ? currentMargin : endDim + currentMargin;
298
+ }
298
299
 
299
- if (!end ^ mode === 'reveal') {
300
- uikitUtil.css(wrapper, marginProp, -endDim + currentDim);
301
- uikitUtil.Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);
302
- }
300
+ if (!end ^ mode === 'reveal') {
301
+ uikitUtil.css(wrapper, marginProp, -endDim + currentDim);
302
+ uikitUtil.Transition.start(wrapper, { [marginProp]: show ? 0 : -endDim }, duration, transition);
303
+ }
303
304
 
304
- try {
305
- await uikitUtil.Transition.start(el, endProps, duration, transition);
306
- } finally {
307
- uikitUtil.css(el, prevProps);
308
- uikitUtil.unwrap(wrapper.firstChild);
305
+ try {
306
+ await uikitUtil.Transition.start(el, endProps, duration, transition);
307
+ } finally {
308
+ uikitUtil.css(el, prevProps);
309
+ uikitUtil.unwrap(wrapper.firstChild);
309
310
 
310
- if (!show) {
311
- _toggle(el, false);
312
- }
311
+ if (!show) {
312
+ _toggle(el, false);
313
313
  }
314
- };
314
+ }
315
315
  }
316
316
 
317
- function toggleAnimation(cmp) {
318
- return (el, show) => {
319
- uikitUtil.Animation.cancel(el);
317
+ function toggleAnimation(el, show, cmp) {
318
+ uikitUtil.Animation.cancel(el);
320
319
 
321
- const { animation, duration, _toggle } = cmp;
320
+ const { animation, duration, _toggle } = cmp;
322
321
 
323
- if (show) {
324
- _toggle(el, true);
325
- return uikitUtil.Animation.in(el, animation[0], duration, cmp.origin);
326
- }
322
+ if (show) {
323
+ _toggle(el, true);
324
+ return uikitUtil.Animation.in(el, animation[0], duration, cmp.origin);
325
+ }
327
326
 
328
- return uikitUtil.Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() =>
329
- _toggle(el, false));
327
+ return uikitUtil.Animation.out(el, animation[1] || animation[0], duration, cmp.origin).then(() =>
328
+ _toggle(el, false));
330
329
 
331
- };
332
330
  }
333
331
 
334
332
  const active = [];
@@ -545,18 +543,17 @@
545
543
 
546
544
  }
547
545
 
548
- return this.toggleElement(this.$el, true, animate(this));
546
+ return this.toggleElement(this.$el, true, animate);
549
547
  },
550
548
 
551
549
  hide() {
552
- return this.toggleElement(this.$el, false, animate(this));
550
+ return this.toggleElement(this.$el, false, animate);
553
551
  } } };
554
552
 
555
553
 
556
554
 
557
- function animate(_ref5) {let { transitionElement, _toggle } = _ref5;
558
- return (el, show) =>
559
- new Promise((resolve, reject) =>
555
+ function animate(el, show, _ref5) {let { transitionElement, _toggle } = _ref5;
556
+ return new Promise((resolve, reject) =>
560
557
  uikitUtil.once(el, 'show hide', () => {
561
558
  el._reject == null ? void 0 : el._reject();
562
559
  el._reject = reject;
@@ -1 +1 @@
1
- /*! UIkit 3.15.4-dev.c21737f52 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=u(s.UIkit.util))})(this,function(s){"use strict";var u={slide:{show(e){return[{transform:$(e*-100)},{transform:$()}]},percent(e){return H(e)},translate(e,t){return[{transform:$(t*-100*e)},{transform:$(t*100*(1-e))}]}}};function H(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function $(e,t){return e===void 0&&(e=0),t===void 0&&(t="%"),e+=e?t:"","translate3d("+e+", 0, 0)"}function C(e){return"scale3d("+e+", "+e+", 1)"}var D={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:C(1-.2)},{opacity:1,transform:C(1)}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:C(1-.2*e)},{opacity:e,transform:C(1-.2+.2*e)}]}}},N={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:t}=e;return t===!0&&this.$container||t&&s.$(t)}}},Y={connected(){!s.hasClass(this.$el,this.$name)&&s.addClass(this.$el,this.$name)}},B={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation(e){let{animation:t}=e;return!!t[0]},hasTransition(e){let{animation:t}=e;return["slide","reveal"].some(n=>s.startsWith(t[0],n))}},methods:{toggleElement(e,t,n){return new Promise(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):this.hasTransition?V(this):X(this))(o,a),d=a?this.clsEnter:this.clsLeave;s.addClass(o,d),s.trigger(o,a?"show":"hide",[this]);const l=()=>{s.removeClass(o,d),s.trigger(o,a?"shown":"hidden",[this])};return i?i.then(l,()=>(s.removeClass(o,d),Promise.reject())):l()})).then(r,s.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=s.toNodes(e),s.hasClass(e,this.clsEnter)?!0:s.hasClass(e,this.clsLeave)?!1:this.cls?s.hasClass(e,this.cls.split(" ")[0]):s.isVisible(e)},_toggle(e,t){if(!e)return;t=Boolean(t);let n;this.cls?(n=s.includes(this.cls," ")||t!==s.hasClass(e,this.cls),n&&s.toggleClass(e,this.cls,s.includes(this.cls," ")?void 0:t)):(n=t===e.hidden,n&&(e.hidden=!t)),s.$$("[autofocus]",e).some(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function q(e){let{_toggle:t}=e;return(n,r)=>(s.Animation.cancel(n),s.Transition.cancel(n),t(n,r))}function V(e){var t;const[n="reveal",r="top"]=((t=e.animation[0])==null?void 0:t.split("-"))||[],o=[["left","right"],["top","bottom"]],a=o[s.includes(o[0],r)?0:1],i=a[1]===r,l=["width","height"][o.indexOf(a)],c="margin-"+a[0],m="margin-"+r;return async(h,g)=>{let{duration:v,velocity:b,transition:j,_toggle:M}=e,I=s.dimensions(h)[l];const de=s.Transition.inProgress(h);await s.Transition.cancel(h),g&&M(h,!0);const ce=Object.fromEntries(["padding","border","width","height","overflowY","overflowX",c,m].map(L=>[L,h.style[L]])),y=s.dimensions(h),E=s.toFloat(s.css(h,c)),W=s.toFloat(s.css(h,m)),p=y[l]+W;!de&&!g&&(I+=W);const[A]=s.wrapInner(h,"<div>");s.css(A,{boxSizing:"border-box",height:y.height,width:y.width,...s.css(h,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",m])}),s.css(h,{padding:0,border:0,minWidth:0,minHeight:0,[m]:0,width:y.width,height:y.height,overflow:"hidden",[l]:I});const R=I/p;v=(b*p+v)*(g?1-R:R);const F={[l]:g?p:0};i&&(s.css(h,c,p-I+E),F[c]=g?E:p+E),!i^n==="reveal"&&(s.css(A,c,-p+I),s.Transition.start(A,{[c]:g?0:-p},v,j));try{await s.Transition.start(h,F,v,j)}finally{s.css(h,ce),s.unwrap(A.firstChild),g||M(h,!1)}}}function X(e){return(t,n)=>{s.Animation.cancel(t);const{animation:r,duration:o,_toggle:a}=e;return n?(a(t,!0),s.Animation.in(t,r[0],o,e.origin)):s.Animation.out(t,r[1]||r[0],o,e.origin).then(()=>a(t,!1))}}const f=[];var G={mixins:[Y,N,B],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,t){let{selPanel:n}=e;return s.$(n,t)},transitionElement(){return this.panel},bgClose(e){let{bgClose:t}=e;return t&&this.panel}},beforeDisconnect(){s.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(t=>t.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){s.once(this.$el,"hide",s.on(document,"focusin",e=>{s.last(f)===this&&!s.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(s.once(this.$el,"hidden",K(this.$el),{self:!0}),s.once(this.$el,"hidden",Q(),{self:!0})),this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+f.length),s.addClass(document.documentElement,this.clsPage),this.bgClose&&s.once(this.$el,"hide",s.on(document,s.pointerDown,e=>{let{target:t}=e;s.last(f)!==this||this.overlay&&!s.within(t,this.$el)||s.within(t,this.panel)||s.once(document,s.pointerUp+" "+s.pointerCancel+" scroll",n=>{let{defaultPrevented:r,type:o,target:a}=n;!r&&o===s.pointerUp&&t===a&&this.hide()},!0)}),{self:!0}),this.escClose&&s.once(this.$el,"hide",s.on(document,"keydown",e=>{e.keyCode===27&&s.last(f)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(f,this)&&f.splice(f.indexOf(this),1),s.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||s.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&s.parent(this.$el)!==this.container?(s.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,z(this))},hide(){return this.toggleElement(this.$el,!1,z(this))}}};function z(e){let{transitionElement:t,_toggle:n}=e;return(r,o)=>new Promise((a,i)=>s.once(r,"show hide",()=>{r._reject==null||r._reject(),r._reject=i,n(r,o);const d=s.once(t,"transitionstart",()=>{s.once(t,"transitionend transitioncancel",a,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{d(),a()},J(s.css(t,"transitionDuration")))})).then(()=>delete r._reject)}function J(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function K(e){if(CSS.supports("overscroll-behavior","contain")){const r=Z(e,o=>/auto|scroll/.test(s.css(o,"overflow")));return s.css(r,"overscrollBehavior","contain"),()=>s.css(r,"overscrollBehavior","")}let t;const n=[s.on(e,"touchstart",r=>{let{targetTouches:o}=r;o.length===1&&(t=o[0].clientY)},{passive:!0}),s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[o]=s.scrollParents(r.target,/auto|scroll/);s.within(o,e)||(o=e);const a=r.targetTouches[0].clientY-t,{scrollTop:i,scrollHeight:d,clientHeight:l}=o;(l>=d||i===0&&a>0||d-i<=l&&a<0)&&r.cancelable&&r.preventDefault()},{passive:!1})];return()=>n.forEach(r=>r())}let _;function Q(){if(_)return s.noop;_=!0;const{scrollingElement:e}=document;return s.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:s.width(window)-e.clientWidth}),()=>{_=!1,s.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function Z(e,t){const n=[];return s.apply(e,r=>{t(r)&&n.push(r)}),n}function k(e,t,n,r){let{animation:o,easing:a}=r;const{percent:i,translate:d,show:l=s.noop}=o,c=l(n),m=new s.Deferred;return{dir:n,show(h,g,v){g===void 0&&(g=0);const b=v?"linear":a;return h-=Math.round(h*s.clamp(g,-1,1)),this.translate(g),T(t,"itemin",{percent:g,duration:h,timing:b,dir:n}),T(e,"itemout",{percent:1-g,duration:h,timing:b,dir:n}),Promise.all([s.Transition.start(t,c[1],h,b),s.Transition.start(e,c[0],h,b)]).then(()=>{this.reset(),m.resolve()},s.noop),m.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const h in c[0])s.css([t,e],h,"")},forward(h,g){return g===void 0&&(g=this.percent()),s.Transition.cancel([t,e]),this.show(h,g,!0)},translate(h){this.reset();const g=d(h,n);s.css(t,g[1]),s.css(e,g[0]),T(t,"itemtranslatein",{percent:h,dir:n}),T(e,"itemtranslateout",{percent:1-h,dir:n})},percent(){return i(e||t,t,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function T(e,t,n){s.trigger(e,s.createEvent(t,!1,!1,n))}var U={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},ee={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const w={passive:!1,capture:!0},se="touchstart mousedown",P="touchmove mousemove",S="touchend touchcancel mouseup click input";var te={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:se,delegate(){return this.selSlides},handler(e){!this.draggable||!s.isTouch(e)&&ne(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:P+" "+S,el(){return this.list},handler:s.noop,...w}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,P,this.move,w),s.on(document,S,this.end,w),s.css(this.list,"userSelect","none")},move(e){const t=this.pos-this.drag;if(t===0||this.prevPos===this.pos||!this.dragging&&Math.abs(t)<this.threshold)return;s.css(this.list,"pointerEvents","none"),e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=t<0?1:-1;const{slides:n}=this;let{prevIndex: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 d=n[r],l=n[a],c=this.index!==a,m=r===a;let h;[this.index,this.prevIndex].filter(g=>!s.includes([a,r],g)).forEach(g=>{s.trigger(n[g],"itemhidden",[this]),m&&(h=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||h)&&s.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=r,this.index=a,!m&&s.trigger(d,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),d,!m&&l),c&&(!m&&s.trigger(d,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,P,this.move,w),s.off(document,S,this.end,w),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const e=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ne(e){return!e.children.length&&e.childNodes.length}var re={data:{selNav:!1},computed:{nav(e,t){let{selNav:n}=e;return s.$(n,t)},selNavItem(e){let{attrItem:t}=e;return"["+t+"],[data-"+t+"]"},navItems(e,t){return s.$$(this.selNavItem,t)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((e,t)=>"<li "+this.attrItem+'="'+t+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(s.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const t of this.navItems){const n=s.data(t,this.attrItem);s.toggleClass(t,this.clsActive,s.toNumber(n)===e),s.toggleClass(t,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},oe={mixins:[ee,te,re,U],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration(e,t){let{velocity:n}=e;return ie(t.offsetWidth/n)},list(e,t){let{selList:n}=e;return s.$(n,t)},maxIndex(){return this.length-1},selSlides(e){let{selList:t,selSlides:n}=e;return t+" "+(n||"> *")},slides:{get(){return s.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,t){if(t===void 0&&(t=!1),this.dragging||!this.length)return;const{stack:n}=this,r=t?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[t?"unshift":"push"](e),!t&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const a=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(e,this.index),l=this.slides[d];if(i===l){o();return}if(this.dir=ae(e,a),this.prevIndex=a,this.index=d,i&&!s.trigger(i,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,i])){this.index=this.prevIndex,o();return}const c=this._show(i,l,t).then(()=>(i&&s.trigger(i,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),new Promise(m=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&s.trigger(i,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.index),s.clamp(s.getIndex(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.prevIndex),this.getIndex(e,t)},_show(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,{easing:n?t.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!e)return this._translate(1),Promise.resolve();const{length: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,n){t===void 0&&(t=this.prevIndex),n===void 0&&(n=this.index);const r=this._getTransitioner(t!==n?t:!1,n);return r.translate(e),r},_getTransitioner(e,t,n,r){return e===void 0&&(e=this.prevIndex),t===void 0&&(t=this.index),n===void 0&&(n=this.dir||1),r===void 0&&(r=this.transitionOptions),new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function ae(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function ie(e){return .5*e+300}var he={mixins:[oe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:k},computed:{animation(e){let{animation:t,Animations:n}=e;return{...n[t]||n.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:t}=e;s.addClass(t,this.clsActive)},itemshown(e){let{target:t}=e;s.addClass(t,this.clsActivated)},itemhidden(e){let{target:t}=e;s.removeClass(t,this.clsActive,this.clsActivated)}}},O={mixins:[N,G,B,he],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:D,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=s.$(this.template),t=s.$(this.selList,e);this.items.forEach(()=>s.append(t,"<li>")),this.$mount(s.append(this.container,e))},computed:{caption(e,t){let{selCaption:n}=e;return s.$(n,t)}},events:[{name:s.pointerMove+" "+s.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=D.scale,s.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){s.html(this.caption,this.getItem().caption||"");for(let e=-this.preload;e<=this.preload;e++)this.loadItem(this.index+e)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,t){const{source:n,type:r,alt:o="",poster:a,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let d;const l={frameborder:"0",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))try{const{width:c,height:m}=await s.getImage(n,i.srcset,i.size);this.setItem(t,x("img",{src:n,width:c,height:m,alt:o,...i}))}catch{this.setError(t)}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=x("video",{src:n,poster:a,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});s.on(c,"loadedmetadata",()=>{s.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(t,c)}),s.on(c,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,x("iframe",{src:n,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(d=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(t,x("iframe",{src:"https://www.youtube"+(d[1]||"")+".com/embed/"+d[2]+(d[3]?"?"+d[3]:""),width:1920,height:1080,...l,...i}));else if(d=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(t,x("iframe",{src:"https://player.vimeo.com/video/"+d[1]+(d[2]?"?"+d[2]:""),width:m,height:c,...l,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e){return e===void 0&&(e=this.index),this.items[s.getIndex(e,this.slides)]},setItem(e,t){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(e),t)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function x(e,t){const n=s.fragment("<"+e+">");return s.attr(n,t),n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",O),O});
1
+ /*! UIkit 3.15.5-dev.9a62efcdc | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(s,u){typeof exports=="object"&&typeof module<"u"?module.exports=u(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],u):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=u(s.UIkit.util))})(this,function(s){"use strict";var u={slide:{show(e){return[{transform:$(e*-100)},{transform:$()}]},percent(e){return Y(e)},translate(e,t){return[{transform:$(t*-100*e)},{transform:$(t*100*(1-e))}]}}};function Y(e){return Math.abs(s.css(e,"transform").split(",")[4]/e.offsetWidth)||0}function $(e,t){return e===void 0&&(e=0),t===void 0&&(t="%"),e+=e?t:"","translate3d("+e+", 0, 0)"}function C(e){return"scale3d("+e+", "+e+", 1)"}var z={...u,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:C(1-.2)},{opacity:1,transform:C(1)}]},percent(e){return 1-s.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:C(1-.2*e)},{opacity:e,transform:C(1-.2+.2*e)}]}}},O={props:{container:Boolean},data:{container:!0},computed:{container(e){let{container:t}=e;return t===!0&&this.$container||t&&s.$(t)}}},q={connected(){!s.hasClass(this.$el,this.$name)&&s.addClass(this.$el,this.$name)}},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(e){let{animation:t}=e;return!!t[0]},hasTransition(e){let{animation:t}=e;return["slide","reveal"].some(n=>s.startsWith(t[0],n))}},methods:{toggleElement(e,t,n){return new Promise(r=>Promise.all(s.toNodes(e).map(a=>{const o=s.isBoolean(t)?t:!this.isToggled(a);if(!s.trigger(a,"before"+(o?"show":"hide"),[this]))return Promise.reject();const i=(s.isFunction(n)?n:n===!1||!this.hasAnimation?V:this.hasTransition?X:G)(a,o,this),h=o?this.clsEnter:this.clsLeave;s.addClass(a,h),s.trigger(a,o?"show":"hide",[this]);const d=()=>{s.removeClass(a,h),s.trigger(a,o?"shown":"hidden",[this])};return i?i.then(d,()=>(s.removeClass(a,h),Promise.reject())):d()})).then(r,s.noop))},isToggled(e){return e===void 0&&(e=this.$el),[e]=s.toNodes(e),s.hasClass(e,this.clsEnter)?!0:s.hasClass(e,this.clsLeave)?!1:this.cls?s.hasClass(e,this.cls.split(" ")[0]):s.isVisible(e)},_toggle(e,t){if(!e)return;t=Boolean(t);let n;this.cls?(n=s.includes(this.cls," ")||t!==s.hasClass(e,this.cls),n&&s.toggleClass(e,this.cls,s.includes(this.cls," ")?void 0:t)):(n=t===e.hidden,n&&(e.hidden=!t)),s.$$("[autofocus]",e).some(r=>s.isVisible(r)?r.focus()||!0:r.blur()),n&&s.trigger(e,"toggled",[t,this])}}};function V(e,t,n){let{_toggle:r}=n;return s.Animation.cancel(e),s.Transition.cancel(e),r(e,t)}async function X(e,t,n){var r;let{animation:a,duration:o,velocity:i,transition:h,_toggle:d}=n;const[c="reveal",m="top"]=((r=a[0])==null?void 0:r.split("-"))||[],l=[["left","right"],["top","bottom"]],g=l[s.includes(l[0],m)?0:1],A=g[1]===m,_=["width","height"][l.indexOf(g)],v="margin-"+g[0],P="margin-"+m;let I=s.dimensions(e)[_];const ce=s.Transition.inProgress(e);await s.Transition.cancel(e),t&&d(e,!0);const le=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",v,P].map(L=>[L,e.style[L]])),y=s.dimensions(e),B=s.toFloat(s.css(e,v)),R=s.toFloat(s.css(e,P)),p=y[_]+R;!ce&&!t&&(I+=R);const[S]=s.wrapInner(e,"<div>");s.css(S,{boxSizing:"border-box",height:y.height,width:y.width,...s.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",P])}),s.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[P]:0,width:y.width,height:y.height,overflow:"hidden",[_]:I});const F=I/p;o=(i*p+o)*(t?1-F:F);const H={[_]:t?p:0};A&&(s.css(e,v,p-I+B),H[v]=t?B:p+B),!A^c==="reveal"&&(s.css(S,v,-p+I),s.Transition.start(S,{[v]:t?0:-p},o,h));try{await s.Transition.start(e,H,o,h)}finally{s.css(e,le),s.unwrap(S.firstChild),t||d(e,!1)}}function G(e,t,n){s.Animation.cancel(e);const{animation:r,duration:a,_toggle:o}=n;return t?(o(e,!0),s.Animation.in(e,r[0],a,n.origin)):s.Animation.out(e,r[1]||r[0],a,n.origin).then(()=>o(e,!1))}const f=[];var J={mixins:[q,O,j],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1},computed:{panel(e,t){let{selPanel:n}=e;return s.$(n,t)},transitionElement(){return this.panel},bgClose(e){let{bgClose:t}=e;return t&&this.panel}},beforeDisconnect(){s.includes(f,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return this.selClose},handler(e){e.preventDefault(),this.hide()}},{name:"toggle",self:!0,handler(e){e.defaultPrevented||(e.preventDefault(),this.isToggled()===s.includes(f,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(s.includes(f,this))return!1;!this.stack&&f.length?(Promise.all(f.map(t=>t.hide())).then(this.show),e.preventDefault()):f.push(this)}},{name:"show",self:!0,handler(){s.once(this.$el,"hide",s.on(document,"focusin",e=>{s.last(f)===this&&!s.within(e.target,this.$el)&&this.$el.focus()})),this.overlay&&(s.once(this.$el,"hidden",Q(this.$el),{self:!0}),s.once(this.$el,"hidden",Z(),{self:!0})),this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+f.length),s.addClass(document.documentElement,this.clsPage),this.bgClose&&s.once(this.$el,"hide",s.on(document,s.pointerDown,e=>{let{target:t}=e;s.last(f)!==this||this.overlay&&!s.within(t,this.$el)||s.within(t,this.panel)||s.once(document,s.pointerUp+" "+s.pointerCancel+" scroll",n=>{let{defaultPrevented:r,type:a,target:o}=n;!r&&a===s.pointerUp&&t===o&&this.hide()},!0)}),{self:!0}),this.escClose&&s.once(this.$el,"hide",s.on(document,"keydown",e=>{e.keyCode===27&&s.last(f)===this&&this.hide()}),{self:!0})}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.$(":focus",this.$el)||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(f,this)&&f.splice(f.indexOf(this),1),s.css(this.$el,"zIndex",""),f.some(e=>e.clsPage===this.clsPage)||s.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&s.parent(this.$el)!==this.container?(s.append(this.container,this.$el),new Promise(e=>requestAnimationFrame(()=>this.show().then(e)))):this.toggleElement(this.$el,!0,M)},hide(){return this.toggleElement(this.$el,!1,M)}}};function M(e,t,n){let{transitionElement:r,_toggle:a}=n;return new Promise((o,i)=>s.once(e,"show hide",()=>{e._reject==null||e._reject(),e._reject=i,a(e,t);const h=s.once(r,"transitionstart",()=>{s.once(r,"transitionend transitioncancel",o,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{h(),o()},K(s.css(r,"transitionDuration")))})).then(()=>delete e._reject)}function K(e){return e?s.endsWith(e,"ms")?s.toFloat(e):s.toFloat(e)*1e3:0}function Q(e){if(CSS.supports("overscroll-behavior","contain")){const r=k(e,a=>/auto|scroll/.test(s.css(a,"overflow")));return s.css(r,"overscrollBehavior","contain"),()=>s.css(r,"overscrollBehavior","")}let t;const n=[s.on(e,"touchstart",r=>{let{targetTouches:a}=r;a.length===1&&(t=a[0].clientY)},{passive:!0}),s.on(e,"touchmove",r=>{if(r.targetTouches.length!==1)return;let[a]=s.scrollParents(r.target,/auto|scroll/);s.within(a,e)||(a=e);const o=r.targetTouches[0].clientY-t,{scrollTop:i,scrollHeight:h,clientHeight:d}=a;(d>=h||i===0&&o>0||h-i<=d&&o<0)&&r.cancelable&&r.preventDefault()},{passive:!1})];return()=>n.forEach(r=>r())}let E;function Z(){if(E)return s.noop;E=!0;const{scrollingElement:e}=document;return s.css(e,{overflowY:"hidden",touchAction:"none",paddingRight:s.width(window)-e.clientWidth}),()=>{E=!1,s.css(e,{overflowY:"",touchAction:"",paddingRight:""})}}function k(e,t){const n=[];return s.apply(e,r=>{t(r)&&n.push(r)}),n}function U(e,t,n,r){let{animation:a,easing:o}=r;const{percent:i,translate:h,show:d=s.noop}=a,c=d(n),m=new s.Deferred;return{dir:n,show(l,g,A){g===void 0&&(g=0);const x=A?"linear":o;return l-=Math.round(l*s.clamp(g,-1,1)),this.translate(g),T(t,"itemin",{percent:g,duration:l,timing:x,dir:n}),T(e,"itemout",{percent:1-g,duration:l,timing:x,dir:n}),Promise.all([s.Transition.start(t,c[1],l,x),s.Transition.start(e,c[0],l,x)]).then(()=>{this.reset(),m.resolve()},s.noop),m.promise},cancel(){s.Transition.cancel([t,e])},reset(){for(const l in c[0])s.css([t,e],l,"")},forward(l,g){return g===void 0&&(g=this.percent()),s.Transition.cancel([t,e]),this.show(l,g,!0)},translate(l){this.reset();const g=h(l,n);s.css(t,g[1]),s.css(e,g[0]),T(t,"itemtranslatein",{percent:l,dir:n}),T(e,"itemtranslateout",{percent:1-l,dir:n})},percent(){return i(e||t,t,n)},getDistance(){return e==null?void 0:e.offsetWidth}}}function T(e,t,n){s.trigger(e,s.createEvent(t,!1,!1,n))}var ee={connected(){var e;this.registerObserver(s.observeResize(((e=this.$options.resizeTargets)==null?void 0:e.call(this))||this.$el,()=>this.$emit("resize")))}},se={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>(!this.draggable||!s.$(":focus",this.$el))&&(!this.pauseOnHover||!s.matches(this.$el,":hover"))&&!this.stack.length&&this.show("next"),this.autoplayInterval)},stopAutoplay(){this.interval&&clearInterval(this.interval)}}};const b={passive:!1,capture:!0},te="touchstart mousedown",D="touchmove mousemove",N="touchend touchcancel mouseup click input";var ne={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const t=this[e];this[e]=n=>{const 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:te,delegate(){return this.selSlides},handler(e){!this.draggable||!s.isTouch(e)&&re(e.target)||s.closest(e.target,s.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:D+" "+N,el(){return this.list},handler:s.noop,...b}],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,D,this.move,b),s.on(document,N,this.end,b),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,a=Math.abs(t),o=this.getIndex(r+this.dir,r),i=this._getDistance(r,o)||n[r].offsetWidth;for(;o!==r&&a>i;)this.drag-=i*this.dir,r=o,a-=i,o=this.getIndex(r+this.dir,r),i=this._getDistance(r,o)||n[r].offsetWidth;this.percent=a/i;const h=n[r],d=n[o],c=this.index!==o,m=r===o;let l;[this.index,this.prevIndex].filter(g=>!s.includes([o,r],g)).forEach(g=>{s.trigger(n[g],"itemhidden",[this]),m&&(l=!0,this.prevIndex=r)}),(this.index===r&&this.prevIndex!==r||l)&&s.trigger(n[this.index],"itemshown",[this]),c&&(this.prevIndex=r,this.index=o,!m&&s.trigger(h,"beforeitemhide",[this]),s.trigger(d,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!m&&d),c&&(!m&&s.trigger(h,"itemhide",[this]),s.trigger(d,"itemshow",[this]))},end(){if(s.off(document,D,this.move,b),s.off(document,N,this.end,b),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 re(e){return!e.children.length&&e.childNodes.length}var oe={data:{selNav:!1},computed:{nav(e,t){let{selNav:n}=e;return s.$(n,t)},selNavItem(e){let{attrItem:t}=e;return"["+t+"],[data-"+t+"]"},navItems(e,t){return s.$$(this.selNavItem,t)}},update:{write(){this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((e,t)=>"<li "+this.attrItem+'="'+t+'"><a href></a></li>').join("")),this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]},events:[{name:"click",delegate(){return this.selNavItem},handler(e){e.preventDefault(),this.show(s.data(e.current,this.attrItem))}},{name:"itemshow",handler:"updateNav"}],methods:{updateNav(){const e=this.getValidIndex();for(const t of this.navItems){const n=s.data(t,this.attrItem);s.toggleClass(t,this.clsActive,s.toNumber(n)===e),s.toggleClass(t,"uk-invisible",this.finite&&(n==="previous"&&e===0||n==="next"&&e>=this.maxIndex))}}}},ae={mixins:[se,ne,oe,ee],props:{clsActivated:Boolean,easing:String,index:Number,finite:Boolean,velocity:Number,selSlides:String},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration(e,t){let{velocity:n}=e;return he(t.offsetWidth/n)},list(e,t){let{selList:n}=e;return s.$(n,t)},maxIndex(){return this.length-1},selSlides(e){let{selList:t,selSlides:n}=e;return t+" "+(n||"> *")},slides:{get(){return s.$$(this.selSlides,this.$el)},watch(){this.$emit("resize")}},length(){return this.slides.length}},methods:{show(e,t){if(t===void 0&&(t=!1),this.dragging||!this.length)return;const{stack:n}=this,r=t?0:n.length,a=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[t?"unshift":"push"](e),!t&&n.length>1){n.length===2&&this._transitioner.forward(Math.min(this.duration,200));return}const o=this.getIndex(this.index),i=s.hasClass(this.slides,this.clsActive)&&this.slides[o],h=this.getIndex(e,this.index),d=this.slides[h];if(i===d){a();return}if(this.dir=ie(e,o),this.prevIndex=o,this.index=h,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]),new Promise(m=>{requestAnimationFrame(()=>{n.shift(),n.length?this.show(n.shift(),!0):this._transitioner=null,m()})})));return i&&s.trigger(i,"itemhide",[this]),s.trigger(d,"itemshow",[this]),c},getIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.index),s.clamp(s.getIndex(e,this.slides,t,this.finite),0,this.maxIndex)},getValidIndex(e,t){return e===void 0&&(e=this.index),t===void 0&&(t=this.prevIndex),this.getIndex(e,t)},_show(e,t,n){if(this._transitioner=this._getTransitioner(e,t,this.dir,{easing:n?t.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!e)return this._translate(1),Promise.resolve();const{length: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,n){t===void 0&&(t=this.prevIndex),n===void 0&&(n=this.index);const r=this._getTransitioner(t!==n?t:!1,n);return r.translate(e),r},_getTransitioner(e,t,n,r){return e===void 0&&(e=this.prevIndex),t===void 0&&(t=this.index),n===void 0&&(n=this.dir||1),r===void 0&&(r=this.transitionOptions),new this.Transitioner(s.isNumber(e)?this.slides[e]:e,s.isNumber(t)?this.slides[t]:t,n*(s.isRtl?-1:1),r)}}};function ie(e,t){return e==="next"?1:e==="previous"||e<t?-1:1}function he(e){return .5*e+300}var de={mixins:[ae],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:u,Transitioner:U},computed:{animation(e){let{animation:t,Animations:n}=e;return{...n[t]||n.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow(e){let{target:t}=e;s.addClass(t,this.clsActive)},itemshown(e){let{target:t}=e;s.addClass(t,this.clsActivated)},itemhidden(e){let{target:t}=e;s.removeClass(t,this.clsActive,this.clsActivated)}}},W={mixins:[O,J,j,de],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:z,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const e=s.$(this.template),t=s.$(this.selList,e);this.items.forEach(()=>s.append(t,"<li>")),this.$mount(s.append(this.container,e))},computed:{caption(e,t){let{selCaption:n}=e;return s.$(n,t)}},events:[{name:s.pointerMove+" "+s.pointerDown+" keydown",handler:"showControls"},{name:"click",self:!0,delegate(){return this.selSlides},handler(e){e.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler(e){if(!(!this.isToggled(this.$el)||!this.draggable))switch(e.keyCode){case 37:this.show("previous");break;case 39:this.show("next");break}}},{name:"beforeitemshow",handler(e){this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=z.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:a="",poster:o,attrs:i={}}=t;if(this.setItem(t,"<span uk-spinner></span>"),!n)return;let h;const d={frameborder:"0",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))try{const{width:c,height:m}=await s.getImage(n,i.srcset,i.size);this.setItem(t,w("img",{src:n,width:c,height:m,alt:a,...i}))}catch{this.setError(t)}else if(r==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=w("video",{src:n,poster:o,controls:"",playsinline:"","uk-video":""+this.videoAutoplay,...i});s.on(c,"loadedmetadata",()=>{s.attr(c,{width:c.videoWidth,height:c.videoHeight}),this.setItem(t,c)}),s.on(c,"error",()=>this.setError(t))}else if(r==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(t,w("iframe",{src:n,frameborder:"0",allowfullscreen:"",class:"uk-lightbox-iframe",...i}));else if(h=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?[?&]v=|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,...d,...i}));else if(h=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:m}=await(await fetch("https://vimeo.com/api/oembed.json?maxwidth=1920&url="+encodeURI(n),{credentials:"omit"})).json();this.setItem(t,w("iframe",{src:"https://player.vimeo.com/video/"+h[1]+(h[2]?"?"+h[2]:""),width:m,height:c,...d,...i}))}catch{this.setError(t)}}}],methods:{loadItem(e){e===void 0&&(e=this.index);const t=this.getItem(e);this.getSlide(t).childElementCount||s.trigger(this.$el,"itemload",[t])},getItem(e){return e===void 0&&(e=this.index),this.items[s.getIndex(e,this.slides)]},setItem(e,t){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(e),t)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function w(e,t){const n=s.fragment("<"+e+">");return s.attr(n,t),n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",W),W});