@frankenstyle/uikit 0.0.2 → 0.0.3
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/.prettierignore +0 -1
- package/CHANGELOG.md +62 -0
- package/README.md +0 -1
- package/build/publishDev.js +2 -3
- package/build/release.js +12 -7
- package/build/util.js +6 -6
- package/dist/css/uikit-rtl.css +105 -92
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +105 -92
- 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 +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +35 -30
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +35 -30
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +2 -2
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -7
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -7
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +41 -42
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -7
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +34 -35
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -6
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +2 -2
- 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 +123 -70
- 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 +131 -74
- package/dist/js/uikit.min.js +1 -1
- package/package.json +23 -24
- package/src/images/components/accordion-icon.svg +20 -0
- package/src/js/components/internal/slider-transitioner.js +1 -1
- package/src/js/components/slider.js +6 -7
- package/src/js/components/sortable.js +5 -6
- package/src/js/core/accordion.js +14 -10
- package/src/js/core/drop.js +8 -1
- package/src/js/core/height-viewport.js +12 -1
- package/src/js/core/icon.js +4 -2
- package/src/js/core/index.js +1 -0
- package/src/js/core/overflow-fade.js +83 -8
- package/src/js/mixin/slider-drag.js +21 -14
- package/src/js/mixin/slider-nav.js +16 -18
- package/src/js/util/attr.js +1 -5
- package/src/less/components/accordion.less +110 -46
- package/src/less/components/card.less +1 -1
- package/src/less/components/form.less +10 -7
- package/src/less/components/lightbox.less +0 -5
- package/src/less/components/nav.less +1 -1
- package/src/less/components/overlay.less +2 -2
- package/src/less/components/utility.less +7 -4
- package/src/less/theme/accordion.less +31 -38
- package/src/scss/components/accordion.scss +77 -30
- package/src/scss/components/form.scss +4 -4
- package/src/scss/components/lightbox.scss +0 -5
- package/src/scss/components/nav.scss +1 -1
- package/src/scss/components/utility.scss +7 -4
- package/src/scss/mixins-theme.scss +39 -23
- package/src/scss/mixins.scss +38 -15
- package/src/scss/variables-theme.scss +20 -18
- package/src/scss/variables.scss +18 -14
- package/tests/accordion.html +76 -17
- package/tests/card.html +87 -1
- package/tests/height-viewport.html +12 -3
- package/tests/index.html +7 -7
- package/tests/navbar.html +1 -1
- package/tests/overlay.html +181 -13
- package/tests/parallax.html +1 -1
- package/tests/position.html +16 -16
- package/tests/sticky.html +2 -2
- package/tests/tab.html +1 -1
- package/tests/thumbnav.html +2 -2
- package/tests/toggle.html +2 -2
- package/tests/transition.html +19 -19
- package/tests/upload.html +2 -2
- package/src/images/backgrounds/accordion-close.svg +0 -4
- package/src/images/backgrounds/accordion-open.svg +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(t,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],x):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=x(t.UIkit.util))})(this,function(t){"use strict";function x(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[r,o]=n.split(/:(.*)/);return r&&!t.isUndefined(o)&&(i[r.trim()]=o.trim()),i},{}):{}}catch{return{}}}function K(e,s="update"){e._connected&&e._updates.length&&(e._updateCount||(e._updateCount=0,requestAnimationFrame(()=>e._updateCount=0)),e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&ee(e,e._queued),e._queued=null})),e._updateCount++<20&&e._queued.add(s.type||s))}function ee(e,s){for(const{read:i,write:n,events:r=[]}of e._updates){if(!s.has("update")&&!r.some(h=>s.has(h)))continue;let o;i&&(o=i.call(e,e._data,s),o&&t.isPlainObject(o)&&t.assign(e._data,o)),n&&o!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function te(e){return D(t.observeResize,e,"resize")}function se(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){K(this,i)},...s}}se({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function ie(e,s){if(s=ne(s),s.length){const i=t.fragment("<picture>");for(const n of s){const r=t.fragment("<source>");t.attr(r,n),t.append(i,r)}t.append(i,e)}}function ne(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=x(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}function O(){return new Promise(e=>requestAnimationFrame(e))}let P;function oe(e){const s=t.on(e,"touchstart",r=>{if(r.targetTouches.length!==1||t.matches(r.target,'input[type="range"'))return;let o=t.getEventPos(r).y;const h=t.on(e,"touchmove",a=>{const d=t.getEventPos(a).y;d!==o&&(o=d,t.scrollParents(a.target).some(c=>{if(!e.contains(c))return!1;let{scrollHeight:m,clientHeight:l}=c;return l<m})||a.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",h,{capture:!0})},{passive:!0});if(P)return s;P=!0;const{scrollingElement:i}=document,n={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:t.width(window)-i.clientWidth?"stable":""};return t.css(i,n),()=>{P=!1,s(),t.resetProps(i,n)}}var re={connected(){t.addClass(this.$el,this.$options.id)}},ae={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function M(e){e.target.closest('a[href="#"],a[href=""]')&&e.preventDefault()}function B(e){const s=t.scrollParent(e),{scrollTop:i}=s,n=()=>{i!==s.scrollTop&&(s.scrollTop=i)};return()=>{n(),setTimeout(n)}}var he={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-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const r=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const o=(t.isFunction(i)?i:i===!1||!this.hasAnimation?de:this.hasTransition?le:ce)(n,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,r?"show":"hide",[this]);const a=()=>{var d;if(t.removeClass(n,h),t.trigger(n,r?"shown":"hidden",[this]),r){const c=B(n);(d=t.$$("[autofocus]",n).find(t.isVisible))==null||d.focus(),c()}};return o?o.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function de(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function le(e,s,{animation:i,duration:n,velocity:r,transition:o,_toggle:h}){var a;const[d="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],l=m[t.includes(m[0],c)?0:1],f=l[1]===c,u=["width","height"][m.indexOf(l)],w=`margin-${l[0]}`,A=`margin-${c}`;let k=t.dimensions(e)[u];const Fe=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const He=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",w,A].map(Z=>[Z,e.style[Z]])),$=t.dimensions(e),N=t.toFloat(t.css(e,w)),X=t.toFloat(t.css(e,A)),b=$[u]+X;!Fe&&!s&&(k+=X);const[_]=t.wrapInner(e,"<div>");t.css(_,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[u]:k});const Q=k/b;n=(r*b+n)*(s?1-Q:Q);const Y={[u]:s?b:0};f&&(t.css(e,w,b-k+N),Y[w]=s?N:b+N),!f^d==="reveal"&&(t.css(_,w,-b+k),t.Transition.start(_,{[w]:s?0:-b},n,o));try{await t.Transition.start(e,Y,n,o)}finally{t.css(e,He),t.unwrap(_.firstChild),s||h(e,!1)}}function ce(e,s,i){const{animation:n,duration:r,_toggle:o}=i;return s?(o(e,!0),t.Animation.in(e,n[0],r,i.origin)):t.Animation.out(e,n[1]||n[0],r,i.origin).then(()=>o(e,!1))}const p=[];var fe={mixins:[re,ae,he],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},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){const e=this.panel||this.$el;e.role=this.role,this.overlay&&(e.ariaModal=!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(M(e),this.hide())}},{name:"toggle",self:!0,handler(e,s){e.defaultPrevented||(e.preventDefault(),this.target=s==null?void 0:s.$el,this.isToggled()===t.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(s=>s.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&me(this),this.overlay&&oe(this.$el),this.bgClose&&ge(this),this.escClose&&ue(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage),F(this.target,!0)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||(this.$el.tabIndex=-1),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(p,this)&&p.splice(p.indexOf(this),1),t.css(this.$el,"zIndex","");const{target:e}=this;p.some(s=>s.clsPage===this.clsPage)||(t.removeClass(document.documentElement,this.clsPage),queueMicrotask(()=>{if(t.isFocusable(e)){const s=B(e);e.focus(),s()}})),F(e,!1),this.target=null}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},async show(){return this.container&&t.parent(this.$el)!==this.container&&(t.append(this.container,this.$el),await O()),this.toggleElement(this.$el,!0,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,s,{transitionElement:i,_toggle:n}){return new Promise((r,o)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=o,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{a(),r()},pe(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function pe(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function me(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function ge(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:r})=>{!i&&n===t.pointerUp&&s===r&&e.hide()},!0)})}function ue(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}function F(e,s){e!=null&&e.ariaExpanded&&(e.ariaExpanded=s)}var S={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return ve(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function ve(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function be(e,s,i,{animation:n,easing:r}){const{percent:o,translate:h,show:a=t.noop}=n,d=a(i),{promise:c,resolve:m}=xe();return{dir:i,show(l,f=0,J){const u=J?"linear":r;return l-=Math.round(l*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:l,timing:u,dir:i}),I(e,"itemout",{percent:1-f,duration:l,timing:u,dir:i}),Promise.all([t.Transition.start(s,d[1],l,u),t.Transition.start(e,d[0],l,u)]).then(()=>{this.reset(),m()},t.noop),c},cancel(){return t.Transition.cancel([s,e])},reset(){t.resetProps([s,e],d[0])},async forward(l,f=this.percent()){return await this.cancel(),this.show(l,f,!0)},translate(l){this.reset();const f=h(l,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:l,dir:i}),I(e,"itemtranslateout",{percent:1-l,dir:i})},percent(){return o(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function xe(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var we={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:r.replace(/%s/g,()=>s[o++]||""))||""}}},ke={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!t.isVisible(this.$el)||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},H={passive:!0,capture:!0},$e="touchstart mousedown",E="touchmove mousemove",z="touchend touchcancel mouseup click input scroll";var ye={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i).x*(t.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:$e,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&Ie(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:E,el:({list:e})=>e,handler:t.noop,...C}],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,t.on(document,E,this.move,C),t.on(document,z,this.end,H),t.css(this.list,"userSelect","none")},move(e){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(s),o=this.getIndex(n+this.dir),h=W.call(this,n,o);for(;o!==n&&r>h;)this.drag-=h*this.dir,n=o,r-=h,o=this.getIndex(n+this.dir),h=W.call(this,n,o);this.percent=r/h;const a=i[n],d=i[o],c=this.index!==o,m=n===o;let l;for(const f of[this.index,this.prevIndex])t.includes([o,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=o,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(d,"beforeitemshow",[this]),t.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&d)},end(){if(t.off(document,E,this.move,C),t.off(document,z,this.end,H),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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=(t.isRtl?this.dir*(t.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=e?this.index:this.prevIndex,e&&(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function W(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function Ie(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(r=>[t.hyphenate(r),`data-${t.hyphenate(r)}`]).flat();return{attributes:i,filter:n}});let Ce=1;function j(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${Ce++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var Te={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$(e,s),navChildren(){return t.children(this.nav)},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let r,o=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=j(this,a)),o=a.id),r=this.t("slideX",t.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=j(this,this.list)),o=this.list.id),r=this.t(i);n.ariaControls=o,n.ariaLabel=n.ariaLabel||r}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(M(e),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let r=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~r&&(e.preventDefault(),this.show(r))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const o=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,o),t.toggleClass(n,"uk-disabled",!!this.parallax),n.ariaSelected=o,n.tabIndex=o&&!this.parallax?null:-1,o&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){if(!this.nav)return;const e=[];for(let s=0;s<this.length;s++){const i=`${this.attrItem}="${s}"`;e[s]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||t.$(`<li ${i}><a href></a></li>`)}t.isEqual(e,this.navChildren)||t.html(this.nav,e)}}};const Ae="cubic-bezier(0.25, 0.46, 0.45, 0.94)",_e="cubic-bezier(0.165, 0.84, 0.44, 1)";var Pe={mixins:[ke,ye,Te,we],props:{clsActivated:String,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:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>Ee(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=s?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(e,this.index),c=this.slides[d];if(a===c){o();return}if(this.dir=Se(e,h),this.prevIndex=h,this.index=d,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),await this._show(a,c,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,await O(),n.length&&this.show(n.shift(),!0)},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?Ae:_e:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Se(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function Ee(e){return .5*e+300}var Ne={mixins:[Pe],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:S,Transitioner:be},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:te(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...S});function T(e){return`scale3d(${e}, ${e}, 1)`}var R={...S,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},De={i18n:{counter:"%s / %s"},mixins:[fe,Ne],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:R,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(o=>!t.matches(o,`.uk-${i}`)));for(const[o,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Oe(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${o}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:e}){if(!this.isToggled()||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=R.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:r={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let o;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":!!this.videoAutoplay};if(n==="image"||q(i)){const a=v("img");ie(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...r}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||U(i)){const a=this.videoAutoplay==="inline",d=v("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,muted:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":!!this.videoAutoplay,...r});t.on(d,"loadedmetadata",()=>this.setItem(s,d)),t.on(d,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...r}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,v("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...h,...r}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,v("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:d,height:a,...h,...r}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function v(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Oe(e,s){const i=e.poster||e.thumb&&(e.type==="image"||q(e.thumb))?v("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||U(e.thumb))?v("video",{src:e.thumb,loop:"",playsinline:"",muted:"","uk-video":s==="inline"}):v("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function q(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function U(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}const Me=".uk-disabled *, .uk-disabled, [disabled]";var V={install:Be,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:e},s)=>t.$$(e,s)},watch:{toggles(e){this.hide();for(const s of e)t.isTag(s,"a")&&(s.role="button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:e})=>e,handler(e){e.defaultPrevented||(e.preventDefault(),t.matches(e.current,Me)||this.show(e.current))}},methods:{show(e){let s=this.toggles.map(G);if(this.nav==="thumbnav"&&Le.call(this,this.toggles,s),s=t.uniqueBy(s,"source"),t.isElement(e)){const{source:i}=G(e);e=t.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.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 Be(e,s){e.lightboxPanel||e.component("lightboxPanel",De),t.assign(s.props,e.component("lightboxPanel").options.props)}function Le(e,s){for(const[i,n]of Object.entries(e)){if(s[i].thumb)continue;const r=t.parents(n).reverse().concat(n).find(h=>this.$el.contains(h)&&(h===n||t.$$(this.toggle,h).length===1));if(!r)continue;const o=t.$("img,video",r);o&&(s[i].thumb=o.currentSrc||o.poster||o.src,s[i].thumbRatio=(o.naturalWidth||o.videoWidth)/(o.naturalHeight||o.videoHeight))}}function G(e){const s={};for(const i of e.getAttributeNames()){const n=i.replace(/^data-/,"");s[n==="href"?"source":n]=e.getAttribute(i)}return s.attrs=x(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",V),V});
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(t,x){typeof exports=="object"&&typeof module<"u"?module.exports=x(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox",["uikit-util"],x):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitLightbox=x(t.UIkit.util))})(this,function(t){"use strict";function x(e,s=[]){try{return e?t.startsWith(e,"{")?JSON.parse(e):s.length&&!t.includes(e,":")?{[s[0]]:e}:e.split(";").reduce((i,n)=>{const[r,o]=n.split(/:(.*)/);return r&&!t.isUndefined(o)&&(i[r.trim()]=o.trim()),i},{}):{}}catch{return{}}}function Y(e,s="update"){e._connected&&e._updates.length&&(e._updateCount||(e._updateCount=0,requestAnimationFrame(()=>e._updateCount=0)),e._queued||(e._queued=new Set,t.fastdom.read(()=>{e._connected&&Z(e,e._queued),e._queued=null})),e._updateCount++<20&&e._queued.add(s.type||s))}function Z(e,s){for(const{read:i,write:n,events:r=[]}of e._updates){if(!s.has("update")&&!r.some(h=>s.has(h)))continue;let o;i&&(o=i.call(e,e._data,s),o&&t.isPlainObject(o)&&t.assign(e._data,o)),n&&o!==!1&&t.fastdom.write(()=>{e._connected&&n.call(e,e._data,s)})}}function K(e){return D(t.observeResize,e,"resize")}function ee(e){return D(t.observeIntersection,e)}function D(e,s,i){return{observe:e,handler(){Y(this,i)},...s}}ee({handler(e,s){this.load(),s.disconnect()},options:({margin:e})=>({rootMargin:e}),filter:({loading:e})=>e==="lazy",target:({$el:e,$props:s})=>s.target?[e,...t.queryAll(s.target,e)]:e});function te(e,s){if(s=se(s),s.length){const i=t.fragment("<picture>");for(const n of s){const r=t.fragment("<source>");t.attr(r,n),t.append(i,r)}t.append(i,e)}}function se(e){if(!e)return[];if(t.startsWith(e,"["))try{e=JSON.parse(e)}catch{e=[]}else e=x(e);return t.isArray(e)||(e=[e]),e.filter(s=>!t.isEmpty(s))}function M(){return new Promise(e=>requestAnimationFrame(e))}let _;function ie(e){const s=t.on(e,"touchstart",r=>{if(r.targetTouches.length!==1||t.matches(r.target,'input[type="range"'))return;let o=t.getEventPos(r).y;const h=t.on(e,"touchmove",a=>{const l=t.getEventPos(a).y;l!==o&&(o=l,t.scrollParents(a.target).some(c=>{if(!e.contains(c))return!1;let{scrollHeight:m,clientHeight:d}=c;return d<m})||a.preventDefault())},{passive:!1});t.once(e,"scroll touchend touchcanel",h,{capture:!0})},{passive:!0});if(_)return s;_=!0;const{scrollingElement:i}=document,n={overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",scrollbarGutter:t.width(window)-i.clientWidth?"stable":""};return t.css(i,n),()=>{_=!1,s(),t.resetProps(i,n)}}var ne={connected(){t.addClass(this.$el,this.$options.id)}},oe={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function O(e){e.target.closest('a[href="#"],a[href=""]')&&e.preventDefault()}function B(e){const s=t.scrollParent(e),{scrollTop:i}=s,n=()=>{i!==s.scrollTop&&(s.scrollTop=i)};return()=>{n(),setTimeout(n)}}var re={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-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:e})=>!!e[0],hasTransition:({animation:e})=>["slide","reveal"].some(s=>t.startsWith(e[0],s))},methods:{async toggleElement(e,s,i){try{return await Promise.all(t.toNodes(e).map(n=>{const r=t.isBoolean(s)?s:!this.isToggled(n);if(!t.trigger(n,`before${r?"show":"hide"}`,[this]))return Promise.reject();const o=(t.isFunction(i)?i:i===!1||!this.hasAnimation?ae:this.hasTransition?he:le)(n,r,this),h=r?this.clsEnter:this.clsLeave;t.addClass(n,h),t.trigger(n,r?"show":"hide",[this]);const a=()=>{var l;if(t.removeClass(n,h),t.trigger(n,r?"shown":"hidden",[this]),r){const c=B(n);(l=t.$$("[autofocus]",n).find(t.isVisible))==null||l.focus(),c()}};return o?o.then(a,()=>(t.removeClass(n,h),Promise.reject())):a()})),!0}catch{return!1}},isToggled(e=this.$el){return e=t.toNode(e),t.hasClass(e,this.clsEnter)?!0:t.hasClass(e,this.clsLeave)?!1:this.cls?t.hasClass(e,this.cls.split(" ")[0]):t.isVisible(e)},_toggle(e,s){if(!e)return;s=!!s;let i;this.cls?(i=t.includes(this.cls," ")||s!==t.hasClass(e,this.cls),i&&t.toggleClass(e,this.cls,t.includes(this.cls," ")?void 0:s)):(i=s===e.hidden,i&&(e.hidden=!s)),i&&t.trigger(e,"toggled",[s,this])}}};function ae(e,s,{_toggle:i}){return t.Animation.cancel(e),t.Transition.cancel(e),i(e,s)}async function he(e,s,{animation:i,duration:n,velocity:r,transition:o,_toggle:h}){var a;const[l="reveal",c="top"]=((a=i[0])==null?void 0:a.split("-"))||[],m=[["left","right"],["top","bottom"]],d=m[t.includes(m[0],c)?0:1],f=d[1]===c,u=["width","height"][m.indexOf(d)],w=`margin-${d[0]}`,A=`margin-${c}`;let k=t.dimensions(e)[u];const Fe=t.Transition.inProgress(e);await t.Transition.cancel(e),s&&h(e,!0);const He=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",w,A].map(Q=>[Q,e.style[Q]])),$=t.dimensions(e),N=t.toFloat(t.css(e,w)),G=t.toFloat(t.css(e,A)),b=$[u]+G;!Fe&&!s&&(k+=G);const[P]=t.wrapInner(e,"<div>");t.css(P,{boxSizing:"border-box",height:$.height,width:$.width,...t.css(e,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",A])}),t.css(e,{padding:0,border:0,minWidth:0,minHeight:0,[A]:0,width:$.width,height:$.height,overflow:"hidden",[u]:k});const J=k/b;n=(r*b+n)*(s?1-J:J);const X={[u]:s?b:0};f&&(t.css(e,w,b-k+N),X[w]=s?N:b+N),!f^l==="reveal"&&(t.css(P,w,-b+k),t.Transition.start(P,{[w]:s?0:-b},n,o));try{await t.Transition.start(e,X,n,o)}finally{t.css(e,He),t.unwrap(P.firstChild),s||h(e,!1)}}function le(e,s,i){const{animation:n,duration:r,_toggle:o}=i;return s?(o(e,!0),t.Animation.in(e,n[0],r,i.origin)):t.Animation.out(e,n[1]||n[0],r,i.origin).then(()=>o(e,!1))}const p=[];var de={mixins:[ne,oe,re],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},s)=>t.$(e,s),transitionElement(){return this.panel}},connected(){const e=this.panel||this.$el;e.role=this.role,this.overlay&&(e.ariaModal=!0)},beforeDisconnect(){t.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate:({selClose:e})=>`${e},a[href*="#"]`,handler(e){const{current:s,defaultPrevented:i}=e,{hash:n}=s;!i&&n&&t.isSameSiteAnchor(s)&&!this.$el.contains(t.$(n))?this.hide():t.matches(s,this.selClose)&&(O(e),this.hide())}},{name:"toggle",self:!0,handler(e,s){e.defaultPrevented||(e.preventDefault(),this.target=s==null?void 0:s.$el,this.isToggled()===t.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(e){if(t.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(s=>s.hide())).then(this.show),e.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){this.stack&&t.css(this.$el,"zIndex",t.toFloat(t.css(this.$el,"zIndex"))+p.length);const e=[this.overlay&&fe(this),this.overlay&&ie(this.$el),this.bgClose&&pe(this),this.escClose&&me(this)];t.once(this.$el,"hidden",()=>e.forEach(s=>s&&s()),{self:!0}),t.addClass(document.documentElement,this.clsPage),F(this.target,!0)}},{name:"shown",self:!0,handler(){t.isFocusable(this.$el)||(this.$el.tabIndex=-1),t.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){t.includes(p,this)&&p.splice(p.indexOf(this),1),t.css(this.$el,"zIndex","");const{target:e}=this;p.some(s=>s.clsPage===this.clsPage)||(t.removeClass(document.documentElement,this.clsPage),queueMicrotask(()=>{if(t.isFocusable(e)){const s=B(e);e.focus(),s()}})),F(e,!1),this.target=null}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},async show(){return this.container&&t.parent(this.$el)!==this.container&&(t.append(this.container,this.$el),await M()),this.toggleElement(this.$el,!0,L)},hide(){return this.toggleElement(this.$el,!1,L)}}};function L(e,s,{transitionElement:i,_toggle:n}){return new Promise((r,o)=>t.once(e,"show hide",()=>{var h;(h=e._reject)==null||h.call(e),e._reject=o,n(e,s);const a=t.once(i,"transitionstart",()=>{t.once(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{a(),r()},ce(t.css(i,"transitionDuration")))})).then(()=>delete e._reject)}function ce(e){return e?t.endsWith(e,"ms")?t.toFloat(e):t.toFloat(e)*1e3:0}function fe(e){return t.on(document,"focusin",s=>{t.last(p)===e&&!e.$el.contains(s.target)&&e.$el.focus()})}function pe(e){return t.on(document,t.pointerDown,({target:s})=>{t.last(p)!==e||e.overlay&&!e.$el.contains(s)||!e.panel||e.panel.contains(s)||t.once(document,`${t.pointerUp} ${t.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:r})=>{!i&&n===t.pointerUp&&s===r&&e.hide()},!0)})}function me(e){return t.on(document,"keydown",s=>{s.keyCode===27&&t.last(p)===e&&e.hide()})}function F(e,s){e!=null&&e.ariaExpanded&&(e.ariaExpanded=s)}var E={slide:{show(e){return[{transform:y(e*-100)},{transform:y()}]},percent(e){return ge(e)},translate(e,s){return[{transform:y(s*-100*e)},{transform:y(s*100*(1-e))}]}}};function ge(e){return Math.abs(new DOMMatrix(t.css(e,"transform")).m41/e.offsetWidth)}function y(e=0,s="%"){return e?`translate3d(${e+s}, 0, 0)`:""}function ue(e,s,i,{animation:n,easing:r}){const{percent:o,translate:h,show:a=t.noop}=n,l=a(i),{promise:c,resolve:m}=ve();return{dir:i,show(d,f=0,V){const u=V?"linear":r;return d-=Math.round(d*t.clamp(f,-1,1)),this.translate(f),I(s,"itemin",{percent:f,duration:d,timing:u,dir:i}),I(e,"itemout",{percent:1-f,duration:d,timing:u,dir:i}),Promise.all([t.Transition.start(s,l[1],d,u),t.Transition.start(e,l[0],d,u)]).then(()=>{this.reset(),m()},t.noop),c},cancel(){return t.Transition.cancel([s,e])},reset(){t.resetProps([s,e],l[0])},async forward(d,f=this.percent()){return await this.cancel(),this.show(d,f,!0)},translate(d){this.reset();const f=h(d,i);t.css(s,f[1]),t.css(e,f[0]),I(s,"itemtranslatein",{percent:d,dir:i}),I(e,"itemtranslateout",{percent:1-d,dir:i})},percent(){return o(e||s,s,i)},getDistance(){return e==null?void 0:e.offsetWidth}}}function I(e,s,i){t.trigger(e,t.createEvent(s,!1,!1,i))}function ve(){let e;return{promise:new Promise(s=>e=s),resolve:e}}var be={props:{i18n:Object},data:{i18n:null},methods:{t(e,...s){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[e])||((n=this.$options.i18n)==null?void 0:n[e]))==null?void 0:r.replace(/%s/g,()=>s[o++]||""))||""}}},xe={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){t.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){t.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:e})=>e,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!t.isVisible(this.$el)||this.draggable&&t.matches(this.$el,":focus-within")&&!t.matches(this.$el,":focus")||this.pauseOnHover&&t.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const C={passive:!1,capture:!0},we="touchstart mousedown",S="touchmove mousemove",ke="touchend touchcancel mouseup click input scroll";var $e={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const e of["start","move","end"]){const s=this[e];this[e]=i=>{const n=t.getEventPos(i);t.isRtl&&(n.x=-n.x),this.prevPos=t.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,s(i)}}},events:[{name:we,passive:!0,delegate:({selList:e})=>`${e} > *`,handler(e){!this.draggable||this.parallax||!t.isTouch(e)&&ye(e.target)||e.target.closest(t.selInput)||e.button>0||this.length<2||this.start(e)}},{name:"dragstart",handler(e){e.preventDefault()}},{name:S,el:({list:e})=>e,handler:t.noop,...C}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,t.on(document,S,this.move,C),t.on(document,ke,this.end,{passive:!0,capture:!0,once:!0}),t.css(this.list,"userSelect","none")},move(e){const s=this.pos.x-this.drag.x;if(s===0||!this.dragging&&Ie(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(s)<this.threshold)return;e.cancelable&&e.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(s),o=this.getIndex(n+this.dir),h=H.call(this,n,o);for(;o!==n&&r>h;)this.drag.x-=h*this.dir,n=o,r-=h,o=this.getIndex(n+this.dir),h=H.call(this,n,o);this.percent=r/h;const a=i[n],l=i[o],c=this.index!==o,m=n===o;let d;for(const f of[this.index,this.prevIndex])t.includes([o,n],f)||(t.trigger(i[f],"itemhidden",[this]),m&&(d=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||d)&&t.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=o,m||(t.trigger(a,"beforeitemhide",[this]),t.trigger(a,"itemhide",[this])),t.trigger(l,"beforeitemshow",[this]),t.trigger(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!m&&l)},end(){if(t.off(document,S,this.move,C),this.dragging)if(setTimeout(t.on(this.list,"click",e=>e.preventDefault(),C)),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=this.dir<0==this.prevPos.x>this.pos.x;e?(t.trigger(this.slides[this.prevIndex],"itemhidden",[this]),t.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!e||this.dir<0&&e?"next":"previous",!0)}t.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function H(e,s){return this._getTransitioner(e,e!==s&&s).getDistance()||this.slides[e].offsetWidth}function ye(e){return t.css(e,"userSelect")!=="none"&&t.toArray(e.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}function Ie(e,s){return Math.atan2(Math.abs(s.y-e.y),Math.abs(s.x-e.x))*180/Math.PI}t.memoize((e,s)=>{const i=Object.keys(s),n=i.concat(e).map(r=>[t.hyphenate(r),`data-${t.hyphenate(r)}`]).flat();return{attributes:i,filter:n}});let Ce=1;function z(e,s=null){return(s==null?void 0:s.id)||`${e.$options.id}-${Ce++}`}const g={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};var Te={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:e},s)=>t.$$(e,s),navChildren(){return this.nav.map(e=>t.children(e)).flat()},selNavItem:({attrItem:e})=>`[${e}],[data-${e}]`,navItems(e,s){return t.$$(this.selNavItem,s)}},watch:{nav(e,s){t.attr(e,"role","tablist"),this.padNavitems(),s&&this.$emit()},list(e){t.isTag(e,"ul")&&t.attr(e,"role","presentation")},navChildren(e){t.attr(e,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(e){for(const s of e){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;let r,o=null;if(t.isNumeric(i)){const h=t.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=z(this,a)),o=a.id),r=this.t("slideX",t.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=z(this,this.list)),o=this.list.id),r=this.t(i);n.ariaControls=o,n.ariaLabel=n.ariaLabel||r}},slides(e){e.forEach((s,i)=>t.attr(s,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(e=>e&&(e.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){e.target.closest("a,button")&&(e.type==="click"||e.keyCode===g.SPACE)&&(O(e),this.show(t.data(e.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:e})=>e,filter:({parallax:e})=>!e,handler(e){const{current:s,keyCode:i}=e,n=t.data(s,this.attrItem);if(!t.isNumeric(n))return;let r=i===g.HOME?0:i===g.END?"last":i===g.LEFT?"previous":i===g.RIGHT?"next":-1;~r&&(e.preventDefault(),this.show(r))}}],methods:{updateNav(){const e=this.getValidIndex();for(const s of this.navItems){const i=t.data(s,this.attrItem),n=t.$("a,button",s)||s;if(t.isNumeric(i)){const o=t.toNumber(i)===e;t.toggleClass(s,this.clsActive,o),t.toggleClass(n,"uk-disabled",!!this.parallax),n.ariaSelected=o,n.tabIndex=o&&!this.parallax?null:-1,o&&n&&t.matches(t.parent(s),":focus-within")&&n.focus()}else t.toggleClass(s,"uk-invisible",this.finite&&(i==="previous"&&e===0||i==="next"&&e>=this.maxIndex))}},padNavitems(){for(const e of this.nav){const s=t.children(e),i=[];for(let n=0;n<this.length;n++){const r=`${this.attrItem}="${n}"`;i[n]=s.findLast(o=>o.matches(`[${r}]`))||t.$(`<li ${r}><a href></a></li>`)}t.isEqual(i,s)||t.html(this.nav,i)}}}};const Ae="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Pe="cubic-bezier(0.165, 0.84, 0.44, 1)";var _e={mixins:[xe,$e,Te,be],props:{clsActivated:String,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:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){t.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:e},s)=>Se(s.offsetWidth/e),list:({selList:e},s)=>t.$(e,s),maxIndex(){return this.length-1},slides(){return t.children(this.list)},length(){return this.slides.length}},watch:{slides(e,s){s&&this.$emit()}},events:{itemshow({target:e}){t.addClass(e,this.clsEnter,this.clsSlideActive)},itemshown({target:e}){t.removeClass(e,this.clsEnter)},itemhide({target:e}){t.addClass(e,this.clsLeave)},itemhidden({target:e}){t.removeClass(e,this.clsLeave,this.clsSlideActive)}},methods:{async show(e,s=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=s?0:n.length,o=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[s?"unshift":"push"](e),!s&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=t.hasClass(this.slides,this.clsActive)&&this.slides[h],l=this.getIndex(e,this.index),c=this.slides[l];if(a===c){o();return}if(this.dir=Ee(e,h),this.prevIndex=h,this.index=l,a&&!t.trigger(a,"beforeitemhide",[this])||!t.trigger(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,o();return}a&&t.trigger(a,"itemhide",[this]),t.trigger(c,"itemshow",[this]),await this._show(a,c,s),a&&t.trigger(a,"itemhidden",[this]),t.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,await M(),n.length&&this.show(n.shift(),!0)},getIndex(e=this.index,s=this.index){return t.clamp(t.getIndex(e,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(e=this.index,s=this.prevIndex){return this.getIndex(e,s)},async _show(e,s,i){if(this._transitioner=this._getTransitioner(e,s,this.dir,{easing:i?s.offsetWidth<600?Ae:Pe:this.easing,...this.transitionOptions}),!i&&!e){this._translate(1);return}const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(e,s=this.prevIndex,i=this.index){const n=this._getTransitioner(s===i?!1:s,i);return n.translate(e),n},_getTransitioner(e=this.prevIndex,s=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(t.isNumber(e)?this.slides[e]:e,t.isNumber(s)?this.slides[s]:s,i*(t.isRtl?-1:1),n)}}};function Ee(e,s){return e==="next"?1:e==="previous"||e<s?-1:1}function Se(e){return .5*e+300}var Ne={mixins:[_e],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:E,Transitioner:ue},computed:{animation({animation:e,Animations:s}){return{...s[e]||s.slide,name:e}},transitionOptions(){return{animation:this.animation}}},observe:K(),events:{itemshow({target:e}){t.addClass(e,this.clsActive)},itemshown({target:e}){t.addClass(e,this.clsActivated)},itemhidden({target:e}){t.removeClass(e,this.clsActive,this.clsActivated)}}};({...E});function T(e){return`scale3d(${e}, ${e}, 1)`}var W={...E,fade:{show(){return[{opacity:0},{opacity:1}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e},{opacity:e}]}},scale:{show(){return[{opacity:0,transform:T(1-.2)},{opacity:1,transform:T(1)}]},percent(e){return 1-t.css(e,"opacity")},translate(e){return[{opacity:1-e,transform:T(1-.2*e)},{opacity:e,transform:T(1-.2+.2*e)}]}}},De={i18n:{counter:"%s / %s"},mixins:[de,Ne],functional:!0,props:{counter:Boolean,preload:Number,nav:Boolean,slidenav:Boolean,delayControls:Number,videoAutoplay:Boolean,template:String},data:()=>({counter:!1,preload:1,nav:!1,slidenav:!0,delayControls:3e3,videoAutoplay:!1,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",clsFit:"uk-lightbox-items-fit",clsZoom:"uk-lightbox-zoom",attrItem:"uk-lightbox-item",selList:".uk-lightbox-items",selClose:".uk-close-large",selNav:".uk-lightbox-thumbnav, .uk-lightbox-dotnav",selCaption:".uk-lightbox-caption",selCounter:".uk-lightbox-counter",pauseOnHover:!1,velocity:2,Animations:W,template:'<div class="uk-lightbox uk-overflow-hidden"> <div class="uk-lightbox-items"></div> <div class="uk-position-top-right uk-position-small uk-transition-fade" uk-inverse> <button class="uk-lightbox-close uk-close-large" type="button" uk-close></button> </div> <div class="uk-lightbox-slidenav uk-position-center-left uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-previous uk-lightbox-item="previous"></a> </div> <div class="uk-lightbox-slidenav uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse> <a href uk-slidenav-next uk-lightbox-item="next"></a> </div> <div class="uk-position-center-right uk-position-medium uk-transition-fade" uk-inverse style="max-height: 90vh; overflow: auto;"> <ul class="uk-lightbox-thumbnav uk-lightbox-thumbnav-vertical uk-thumbnav uk-thumbnav-vertical"></ul> <ul class="uk-lightbox-dotnav uk-dotnav uk-dotnav-vertical"></ul> </div> <div class="uk-lightbox-counter uk-text-large uk-position-top-left uk-position-small uk-transition-fade" uk-inverse></div> <div class="uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){let e=t.$(this.template);t.isTag(e,"template")&&(e=t.fragment(t.html(e)));const s=t.$(this.selList,e),i=this.$props.nav;t.remove(t.$$(this.selNav,e).filter(o=>!t.matches(o,`.uk-${i}`)));for(const[o,h]of this.items.entries())t.append(s,"<div>"),i==="thumbnav"&&t.wrapAll(Me(h,this.videoAutoplay),t.append(t.$(this.selNav,e),`<li uk-lightbox-item="${o}"><a href></a></li>`));this.slidenav||t.remove(t.$$(".uk-lightbox-slidenav",e)),this.counter||t.remove(t.$(this.selCounter,e)),t.addClass(s,this.clsFit);const n=t.$("[uk-close]",e),r=this.t("close");n&&r&&(n.dataset.i18n=JSON.stringify({label:r})),this.$mount(t.append(this.container,e))},events:[{name:"click",self:!0,filter:({bgClose:e})=>e,delegate:({selList:e})=>`${e} > *`,handler(e){e.defaultPrevented||this.hide()}},{name:"click",self:!0,delegate:({clsZoom:e})=>`.${e}`,handler(e){e.defaultPrevented||t.toggleClass(this.list,this.clsFit)}},{name:`${t.pointerMove} ${t.pointerDown} keydown`,filter:({delayControls:e})=>e,handler(){this.showControls()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),t.removeClass(this.slides,this.clsActive),t.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:e}){if(!this.isToggled()||!this.draggable)return;let s=-1;e===g.LEFT?s="previous":e===g.RIGHT?s="next":e===g.HOME?s=0:e===g.END&&(s="last"),~s&&this.show(s)}},{name:"beforeitemshow",handler(e){t.html(t.$(this.selCaption,this.$el),this.getItem().caption||""),t.html(t.$(this.selCounter,this.$el),this.t("counter",this.index+1,this.slides.length));for(let s=-this.preload;s<=this.preload;s++)this.loadItem(this.index+s);this.isToggled()||(this.draggable=!1,e.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=W.scale,t.removeClass(e.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(e,s){const{source:i,type:n,attrs:r={}}=s;if(this.setItem(s,"<span uk-spinner uk-inverse></span>"),!i)return;let o;const h={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":!!this.videoAutoplay};if(n==="image"||j(i)){const a=v("img");te(a,s.sources),t.attr(a,{src:i,...t.pick(s,["alt","srcset","sizes"]),...r}),t.on(a,"load",()=>this.setItem(s,t.parent(a)||a)),t.on(a,"error",()=>this.setError(s))}else if(n==="video"||q(i)){const a=this.videoAutoplay==="inline",l=v("video",{src:i,playsinline:"",controls:a?null:"",loop:a?"":null,muted:a?"":null,poster:this.videoAutoplay?null:s.poster,"uk-video":!!this.videoAutoplay,...r});t.on(l,"loadedmetadata",()=>this.setItem(s,l)),t.on(l,"error",()=>this.setError(s))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(s,v("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...r}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(s,v("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...h,...r}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:a,width:l}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(s,v("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:l,height:a,...h,...r}))}catch{this.setError(s)}}},{name:"itemloaded",handler(){this.$emit("resize")}}],update:{read(){for(const e of t.$$(`${this.selList} :not([controls]):is(img,video)`,this.$el))t.toggleClass(e,this.clsZoom,(e.naturalHeight||e.videoHeight)-this.$el.offsetHeight>Math.max(0,(e.naturalWidth||e.videoWidth)-this.$el.offsetWidth))},events:["resize"]},methods:{loadItem(e=this.index){const s=this.getItem(e);this.getSlide(s).childElementCount||t.trigger(this.$el,"itemload",[s])},getItem(e=this.index){return this.items[t.getIndex(e,this.slides)]},setItem(e,s){t.trigger(this.$el,"itemloaded",[this,t.html(this.getSlide(e),s)])},getSlide(e){return this.slides[this.items.indexOf(e)]},setError(e){this.setItem(e,'<span uk-icon="icon: bolt; ratio: 2" uk-inverse></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=this.delayControls&&setTimeout(this.hideControls,this.delayControls),t.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){t.removeClass(this.$el,"uk-active","uk-transition-active")}}};function v(e,s){const i=t.fragment(`<${e}>`);return t.attr(i,s),i}function Me(e,s){const i=e.poster||e.thumb&&(e.type==="image"||j(e.thumb))?v("img",{src:e.poster||e.thumb,alt:""}):e.thumb&&(e.type==="video"||q(e.thumb))?v("video",{src:e.thumb,loop:"",playsinline:"",muted:"","uk-video":s==="inline"}):v("canvas");return e.thumbRatio&&(i.style.aspectRatio=e.thumbRatio),i}function j(e){return e==null?void 0:e.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)}function q(e){return e==null?void 0:e.match(/\.(mp4|webm|ogv)($|\?)/i)}const Oe=".uk-disabled *, .uk-disabled, [disabled]";var R={install:Be,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:e},s)=>t.$$(e,s)},watch:{toggles(e){this.hide();for(const s of e)t.isTag(s,"a")&&(s.role="button")}},disconnected(){this.hide()},events:{name:"click",delegate:({toggle:e})=>e,handler(e){e.defaultPrevented||(e.preventDefault(),t.matches(e.current,Oe)||this.show(e.current))}},methods:{show(e){let s=this.toggles.map(U);if(this.nav==="thumbnav"&&Le.call(this,this.toggles,s),s=t.uniqueBy(s,"source"),t.isElement(e)){const{source:i}=U(e);e=t.findIndex(s,({source:n})=>i===n)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:s}),t.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 Be(e,s){e.lightboxPanel||e.component("lightboxPanel",De),t.assign(s.props,e.component("lightboxPanel").options.props)}function Le(e,s){for(const[i,n]of Object.entries(e)){if(s[i].thumb)continue;const r=t.parents(n).reverse().concat(n).find(h=>this.$el.contains(h)&&(h===n||t.$$(this.toggle,h).length===1));if(!r)continue;const o=t.$("img,video",r);o&&(s[i].thumb=o.currentSrc||o.poster||o.src,s[i].thumbRatio=(o.naturalWidth||o.videoWidth)/(o.naturalHeight||o.videoHeight))}}function U(e){const s={};for(const i of e.getAttributeNames()){const n=i.replace(/^data-/,"");s[n==="href"?"source":n]=e.getAttribute(i)}return s.attrs=x(s.attrs),s}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",R),R});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
this.$mount(
|
|
58
58
|
uikitUtil.append(
|
|
59
59
|
container,
|
|
60
|
-
`<div class="${this.clsMsg}${this.status ? ` ${this.clsMsg}-${this.status}` : ""}" role="alert">
|
|
60
|
+
`<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>`
|
|
61
61
|
)
|
|
62
62
|
);
|
|
63
63
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:e}){return e===!0&&this.$container||e&&t.$(e)}}};function c(e){e.target.closest('a[href="#"],a[href=""]')&&e.preventDefault()}var r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:h,computed:{marginProp:({pos:e})=>`margin-${e.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const e=`${this.clsContainer}-${this.pos}`,s=`data-${this.clsContainer}-container`,i=t.$(`.${e}[${s}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${e}" ${s}></div>`);this.$mount(t.append(i,`<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 e=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:e}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(e){c(e),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(e){const s=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),e||await t.Transition.start(this.$el,this.startProps),s(this.$el)}}};function h(e){e.notification.closeAll=function(s,i){t.apply(document.body,n=>{const a=e.getComponent(n,"notification");a&&(!s||s===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -128,9 +128,6 @@
|
|
|
128
128
|
return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
|
|
129
129
|
}
|
|
130
130
|
const { from: toArray } = Array;
|
|
131
|
-
function isFunction(obj) {
|
|
132
|
-
return typeof obj === "function";
|
|
133
|
-
}
|
|
134
131
|
function isObject(obj) {
|
|
135
132
|
return obj !== null && typeof obj === "object";
|
|
136
133
|
}
|
|
@@ -175,9 +172,6 @@
|
|
|
175
172
|
return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
|
|
176
173
|
} else {
|
|
177
174
|
for (const el of toNodes(element)) {
|
|
178
|
-
if (isFunction(value)) {
|
|
179
|
-
value = value.call(el, attr(el, name));
|
|
180
|
-
}
|
|
181
175
|
if (value === null) {
|
|
182
176
|
removeAttr(el, name);
|
|
183
177
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._updateCount||(n._updateCount=0,requestAnimationFrame(()=>n._updateCount=0)),n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&Y(n,n._queued),n._queued=null})),n._updateCount++<20&&n._queued.add(e.type||e))}function Y(n,e){for(const{read:t,write:r,events:o=[]}of n._updates){if(!e.has("update")&&!o.some(c=>e.has(c)))continue;let s;t&&(s=t.call(n,n._data,e),s&&i.isPlainObject(s)&&i.assign(n._data,s)),r&&s!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,e)})}}function Z(n){return F(i.observeResize,n,"resize")}function k(n){return F((e,t)=>i.observeViewportResize(t),n,"resize")}function U(n){return F((e,t)=>({disconnect:i.on(nn(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function nn(n){return i.toNodes(n).map(e=>{const{ownerDocument:t}=e,r=i.scrollParent(e,!0);return r===t.scrollingElement?t:r})}var en={props:{media:Boolean},data:{media:!1},connected(){const n=tn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function tn(n,e){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function rn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:on}=Array;function sn(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function cn(n){return M(n)&&n===n.window}function an(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!cn(n)&&M(n)&&n.nodeType}function P(n){return typeof n=="string"}function fn(n){return n===void 0}function x(n){return n&&l(n)[0]}function l(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function A(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function C(n,e,t){var r;if(M(e)){for(const o in e)C(n,o,e[o]);return}if(fn(t))return(r=x(n))==null?void 0:r.getAttribute(e);for(const o of l(n))sn(t)&&(t=t.call(o,C(o,e))),t===null?un(o,e):o.setAttribute(e,t)}function un(n,e){l(n).forEach(t=>t.removeAttribute(e))}const dn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function ln(n){return l(n).some(e=>dn.call(e))}function hn(n){var e;return(e=x(n))==null?void 0:e.parentElement}function gn(n,e){return l(n).filter(t=>T(t,e))}function T(n,e){return l(n).some(t=>t.matches(e))}function mn(n,e){n=x(n);const t=n?on(n.children):[];return e?gn(t,e):t}function W(n,e){return mn(hn(n)).indexOf(n)}function bn(n,e){return l(vn(n,x(e),"querySelectorAll"))}const pn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,$n=/(\([^)]*\)|[^,])+/g,wn=A(n=>{let e=!1;if(!n||!P(n))return{};const t=[];for(let r of n.match($n))r=r.trim().replace(pn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),xn=/(\([^)]*\)|\S)*/,R=A(n=>{n=n.slice(1).trim();const[e]=n.match(xn);return[e,n.slice(e.length+1)]});function vn(n,e=document,t){var r;const o=wn(n);if(!o.isContextSelector)return o.selector?O(e,t,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=e;if(c[0]==="!"&&([a,c]=R(c),f=(r=e.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=R(c),f=f.previousElementSibling,f=T(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${W(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),O(f,t,c);n+=`${n?",":""}${yn(f)} ${c}`}}return an(e)||(e=e.ownerDocument),O(e,t,n)}function O(n,e,t){try{return n[e](t)}catch{return null}}function yn(n){const e=[];for(;n.parentNode;){const t=C(n,"id");if(t){e.unshift(`#${Sn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function Sn(n){return P(n)?CSS.escape(n):""}const _n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Fn(n){const e=_n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Mn(t.content.childNodes)}function Mn(n){return n.length>1?n:n[0]}function Pn(n,e){return Cn(n)?l(Fn(n)):bn(n,e)}function Cn(n){return P(n)&&rn(n.trim(),"<")}function On(n){return ln(n)?Math.ceil(Math.max(0,...Pn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const v={x:y,y,rotate:y,scale:y,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Nn,stroke:In,bgx:D,bgy:D},{keys:q}=Object;var jn={mixins:[en],props:Q(q(v),"list"),data:Q(q(v),void 0),computed:{props(n,e){const t={};for(const o in n)o in v&&!i.isUndefined(n[o])&&(t[o]=n[o].slice());const r={};for(const o in t)r[o]=v[o](o,e,t[o],t);return r}},events:{load(){this.$emit()}},methods:{reset(){i.resetProps(this.$el,this.getCss(0))},getCss(n){const e={};for(const t in this.props)this.props[t](e,i.clamp(n));return e.willChange=Object.keys(e).map(i.propName).join(","),e}}};function y(n,e,t){let r=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return _([s])?i.toPx(s,"width",e,!0)/e[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${p(t,c)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t,r=>En(e,r)),(r,o)=>{const[s,c,a]=L(t,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function En(n,e){return $(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(o,s)=>{const c=p(t,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Nn(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t),(r,o)=>{r[n]=p(t,o)}}function In(n,e,t){t.length===1&&t.unshift(0);const r=_(t),o=On(e);return t=m(t.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),t.some(([s])=>s)?(i.css(e,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=p(t,c)}):i.noop}function D(n,e,t,r){t.length===1&&t.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(t,a=>i.toPx(a,o,e));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if($(e,"backgroundSize","")==="cover")return zn(n,e,t,r);const c={};for(const a of s)c[a]=H(e,a);return V(s,c,r)}function zn(n,e,t,r){const o=An(e);if(!o.width)return i.noop;const s={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const d=r[u].map(([Rn])=>Rn),w=Math.min(...d),N=Math.max(...d),K=d.indexOf(w)<d.indexOf(N),X=N-w;a[u]=`${(K?-X:0)-(K?w:N)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const d=u==="bgy"?"height":"width",w=f[d]-s[d];a[u]=`max(${H(e,u)},-${w}px) + ${a[u]}`}const h=V(c,a,r);return(u,d)=>{h(u,d),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function H(n,e){return $(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,o){for(const s of n){const c=p(t[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${e[s]} + ${c}px)`}}}const B={},S={};function An(n){const e=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!B[e])?(i.once(t,"error load",()=>{S[e]=E(t),i.trigger(n,i.createEvent("load",!1))}),B[e]=!0,E(t)):S[e]=E(t)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=i.toFloat){const t=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=e(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&t.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)o++;else if(o){const f=t[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)t[s-u][1]=f+h*(o-u+1);o=0}}return t}function L(n,e){const t=i.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function p(n,e){const[t,r,o]=L(n,e);return t+Math.abs(t-r)*o*(t<r?1:-1)}const Tn=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const r of n){const o=(t=r.match)==null?void 0:t.call(r,Tn);if(o)return o[1]}return e}function $(n,e,t){const r=n.style[e],o=i.css(i.css(n,e,t),e);return n.style[e]=r,o}function Q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}function Wn(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var G={mixins:[jn],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:n},e)=>J(n&&i.query(n,e)||e),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return i.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[k(),U({target:({target:n})=>n}),Z({target:({$el:n,target:e})=>[n,e,i.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=Wn(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:t===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function J(n){return n?"offsetTop"in n?n:J(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",G),G});
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,e="update"){n._connected&&n._updates.length&&(n._updateCount||(n._updateCount=0,requestAnimationFrame(()=>n._updateCount=0)),n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&Y(n,n._queued),n._queued=null})),n._updateCount++<20&&n._queued.add(e.type||e))}function Y(n,e){for(const{read:t,write:r,events:o=[]}of n._updates){if(!e.has("update")&&!o.some(c=>e.has(c)))continue;let s;t&&(s=t.call(n,n._data,e),s&&i.isPlainObject(s)&&i.assign(n._data,s)),r&&s!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,e)})}}function Z(n){return F(i.observeResize,n,"resize")}function k(n){return F((e,t)=>i.observeViewportResize(t),n,"resize")}function U(n){return F((e,t)=>({disconnect:i.on(nn(e),"scroll",t,{passive:!0})}),n,"scroll")}function F(n,e,t){return{observe:n,handler(){b(this,t)},...e}}function nn(n){return i.toNodes(n).map(e=>{const{ownerDocument:t}=e,r=i.scrollParent(e,!0);return r===t.scrollingElement?t:r})}var en={props:{media:Boolean},data:{media:!1},connected(){const n=tn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function tn(n,e){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function rn(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{from:on}=Array;function M(n){return n!==null&&typeof n=="object"}function sn(n){return M(n)&&n===n.window}function cn(n){return I(n)===9}function N(n){return I(n)>=1}function I(n){return!sn(n)&&M(n)&&n.nodeType}function P(n){return typeof n=="string"}function an(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function z(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function A(n,e,t){var r;if(M(e)){for(const o in e)A(n,o,e[o]);return}if(an(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const o of l(n))t===null?fn(o,e):o.setAttribute(e,t)}function fn(n,e){l(n).forEach(t=>t.removeAttribute(e))}const un=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function dn(n){return l(n).some(e=>un.call(e))}function ln(n){var e;return(e=w(n))==null?void 0:e.parentElement}function hn(n,e){return l(n).filter(t=>T(t,e))}function T(n,e){return l(n).some(t=>t.matches(e))}function gn(n,e){n=w(n);const t=n?on(n.children):[];return e?hn(t,e):t}function W(n,e){return gn(ln(n)).indexOf(n)}function mn(n,e){return l(wn(n,w(e),"querySelectorAll"))}const bn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,pn=/(\([^)]*\)|[^,])+/g,$n=z(n=>{let e=!1;if(!n||!P(n))return{};const t=[];for(let r of n.match(pn))r=r.trim().replace(bn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),vn=/(\([^)]*\)|\S)*/,R=z(n=>{n=n.slice(1).trim();const[e]=n.match(vn);return[e,n.slice(e.length+1)]});function wn(n,e=document,t){var r;const o=$n(n);if(!o.isContextSelector)return o.selector?C(e,t,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=e;if(c[0]==="!"&&([a,c]=R(c),f=(r=e.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=R(c),f=f.previousElementSibling,f=T(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${W(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),C(f,t,c);n+=`${n?",":""}${xn(f)} ${c}`}}return cn(e)||(e=e.ownerDocument),C(e,t,n)}function C(n,e,t){try{return n[e](t)}catch{return null}}function xn(n){const e=[];for(;n.parentNode;){const t=A(n,"id");if(t){e.unshift(`#${yn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function yn(n){return P(n)?CSS.escape(n):""}const Sn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function _n(n){const e=Sn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),Fn(t.content.childNodes)}function Fn(n){return n.length>1?n:n[0]}function Mn(n,e){return Pn(n)?l(_n(n)):mn(n,e)}function Pn(n){return P(n)&&rn(n.trim(),"<")}function Cn(n){return dn(n)?Math.ceil(Math.max(0,...Mn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}const x={x:y,y,rotate:y,scale:y,color:O,backgroundColor:O,borderColor:O,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:En,stroke:Nn,bgx:D,bgy:D},{keys:q}=Object;var On={mixins:[en],props:Q(q(x),"list"),data:Q(q(x),void 0),computed:{props(n,e){const t={};for(const o in n)o in x&&!i.isUndefined(n[o])&&(t[o]=n[o].slice());const r={};for(const o in t)r[o]=x[o](o,e,t[o],t);return r}},events:{load(){this.$emit()}},methods:{reset(){i.resetProps(this.$el,this.getCss(0))},getCss(n){const e={};for(const t in this.props)this.props[t](e,i.clamp(n));return e.willChange=Object.keys(e).map(i.propName).join(","),e}}};function y(n,e,t){let r=_(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return _([s])?i.toPx(s,"width",e,!0)/e[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${p(t,c)}${r})`}}function O(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t,r=>jn(e,r)),(r,o)=>{const[s,c,a]=L(t,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function jn(n,e){return $(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=_(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(o,s)=>{const c=p(t,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function En(n,e,t){return t.length===1&&t.unshift($(e,n,"")),t=m(t),(r,o)=>{r[n]=p(t,o)}}function Nn(n,e,t){t.length===1&&t.unshift(0);const r=_(t),o=Cn(e);return t=m(t.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),t.some(([s])=>s)?(i.css(e,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=p(t,c)}):i.noop}function D(n,e,t,r){t.length===1&&t.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(t,a=>i.toPx(a,o,e));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if($(e,"backgroundSize","")==="cover")return In(n,e,t,r);const c={};for(const a of s)c[a]=H(e,a);return V(s,c,r)}function In(n,e,t,r){const o=zn(e);if(!o.width)return i.noop;const s={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const d=r[u].map(([Wn])=>Wn),v=Math.min(...d),E=Math.max(...d),K=d.indexOf(v)<d.indexOf(E),X=E-v;a[u]=`${(K?-X:0)-(K?v:E)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const d=u==="bgy"?"height":"width",v=f[d]-s[d];a[u]=`max(${H(e,u)},-${v}px) + ${a[u]}`}const h=V(c,a,r);return(u,d)=>{h(u,d),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function H(n,e){return $(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,o){for(const s of n){const c=p(t[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${e[s]} + ${c}px)`}}}const B={},S={};function zn(n){const e=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!B[e])?(i.once(t,"error load",()=>{S[e]=j(t),i.trigger(n,i.createEvent("load",!1))}),B[e]=!0,j(t)):S[e]=j(t)}function j(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=i.toFloat){const t=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=e(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&t.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)o++;else if(o){const f=t[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)t[s-u][1]=f+h*(o-u+1);o=0}}return t}function L(n,e){const t=i.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function p(n,e){const[t,r,o]=L(n,e);return t+Math.abs(t-r)*o*(t<r?1:-1)}const An=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,e){var t;for(const r of n){const o=(t=r.match)==null?void 0:t.call(r,An);if(o)return o[1]}return e}function $(n,e,t){const r=n.style[e],o=i.css(i.css(n,e,t),e);return n.style[e]=r,o}function Q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}function Tn(n,e){return e>=0?Math.pow(n,e+1):1-Math.pow(1-n,1-e)}var G={mixins:[On],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:n},e)=>J(n&&i.query(n,e)||e),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:e}){return i.toPx(n||(e=(1-e)*100)&&`${e}vh+${e}%`,"height",this.target,!0)}},observe:[k(),U({target:({target:n})=>n}),Z({target:({$el:n,target:e})=>[n,e,i.scrollParent(e,!0)]})],update:{read({percent:n},e){if(e.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const t=n;return n=Tn(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:t===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function J(n){return n?"offsetTop"in n?n:J(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",G),G});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -50,9 +50,6 @@
|
|
|
50
50
|
return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
|
|
51
51
|
}
|
|
52
52
|
const { from: toArray } = Array;
|
|
53
|
-
function isFunction(obj) {
|
|
54
|
-
return typeof obj === "function";
|
|
55
|
-
}
|
|
56
53
|
function isObject(obj) {
|
|
57
54
|
return obj !== null && typeof obj === "object";
|
|
58
55
|
}
|
|
@@ -97,9 +94,6 @@
|
|
|
97
94
|
return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
|
|
98
95
|
} else {
|
|
99
96
|
for (const el of toNodes(element)) {
|
|
100
|
-
if (isFunction(value)) {
|
|
101
|
-
value = value.call(el, attr(el, name));
|
|
102
|
-
}
|
|
103
97
|
if (value === null) {
|
|
104
98
|
removeAttr(el, name);
|
|
105
99
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(i,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlider_parallax=$(i.UIkit.util))})(this,function(i){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{from:k}=Array;function C(n){return n!==null&&typeof n=="object"}function U(n){return C(n)&&n===n.window}function nn(n){return E(n)===9}function _(n){return E(n)>=1}function E(n){return!U(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function tn(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return _(n)?[n]:Array.from(n||[]).filter(_)}function N(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function T(n,t,e){var r;if(C(t)){for(const o in t)T(n,o,t[o]);return}if(tn(e))return(r=w(n))==null?void 0:r.getAttribute(t);for(const o of d(n))e===null?en(o,t):o.setAttribute(t,e)}function en(n,t){d(n).forEach(e=>e.removeAttribute(t))}const rn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function on(n){return d(n).some(t=>rn.call(t))}function sn(n){var t;return(t=w(n))==null?void 0:t.parentElement}function cn(n,t){return d(n).filter(e=>W(e,t))}function W(n,t){return d(n).some(e=>e.matches(t))}function an(n,t){n=w(n);const e=n?k(n.children):[];return t?cn(e,t):e}function A(n,t){return an(sn(n)).indexOf(n)}function fn(n,t){return d(gn(n,w(t),"querySelectorAll"))}const un=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,dn=N(n=>{let t=!1;if(!n||!M(n))return{};const e=[];for(let r of n.match(ln))r=r.trim().replace(un,"$1 *"),t||(t=["!","+","~","-",">"].includes(r[0])),e.push(r);return{selector:e.join(","),selectors:e,isContextSelector:t}}),hn=/(\([^)]*\)|\S)*/,D=N(n=>{n=n.slice(1).trim();const[t]=n.match(hn);return[t,n.slice(t.length+1)]});function gn(n,t=document,e){var r;const o=dn(n);if(!o.isContextSelector)return o.selector?P(t,e,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=t;if(c[0]==="!"&&([a,c]=D(c),f=(r=t.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=D(c),f=f.previousElementSibling,f=W(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${A(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),P(f,e,c);n+=`${n?",":""}${mn(f)} ${c}`}}return nn(t)||(t=t.ownerDocument),P(t,e,n)}function P(n,t,e){try{return n[t](e)}catch{return null}}function mn(n){const t=[];for(;n.parentNode;){const e=T(n,"id");if(e){t.unshift(`#${$n(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function $n(n){return M(n)?CSS.escape(n):""}const bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function pn(n){const t=bn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),xn(e.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function wn(n,t){return yn(n)?d(pn(n)):fn(n,t)}function yn(n){return M(n)&&Z(n.trim(),"<")}function vn(n){return on(n)?Math.ceil(Math.max(0,...wn("[stroke]",n).map(t=>{var e;return((e=t.getTotalLength)==null?void 0:e.call(t))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:O,backgroundColor:O,borderColor:O,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Cn,stroke:Mn,bgx:R,bgy:R},{keys:H}=Object;var Sn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!i.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){i.resetProps(this.$el,this.getCss(0))},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function v(n,t,e){let r=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return F([s])?i.toPx(s,"width",t,!0)/t[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${b(e,c)}${r})`}}function O(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,r=>Fn(t,r)),(r,o)=>{const[s,c,a]=L(e,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function Fn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,s)=>{const c=b(e,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Cn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(r,o)=>{r[n]=b(e,o)}}function Mn(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=vn(t);return e=m(e.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),e.some(([s])=>s)?(i.css(t,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=b(e,c)}):i.noop}function R(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,o,t));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if(p(t,"backgroundSize","")==="cover")return Pn(n,t,e,r);const c={};for(const a of s)c[a]=B(t,a);return V(s,c,r)}function Pn(n,t,e,r){const o=On(t);if(!o.width)return i.noop;const s={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const l=r[u].map(([In])=>In),x=Math.min(...l),I=Math.max(...l),K=l.indexOf(x)<l.indexOf(I),X=I-x;a[u]=`${(K?-X:0)-(K?x:I)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const l=u==="bgy"?"height":"width",x=f[l]-s[l];a[u]=`max(${B(t,u)},-${x}px) + ${a[u]}`}const h=V(c,a,r);return(u,l)=>{h(u,l),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function B(n,t){return p(n,`background-position-${t.slice(-1)}`,"")}function V(n,t,e){return function(r,o){for(const s of n){const c=b(e[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${t[s]} + ${c}px)`}}}const z={},S={};function On(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!z[t])?(i.once(e,"error load",()=>{S[t]=j(e),i.trigger(n,i.createEvent("load",!1))}),z[t]=!0,j(e)):S[t]=j(e)}function j(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=t(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&e.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)o++;else if(o){const f=e[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)e[s-u][1]=f+h*(o-u+1);o=0}}return e}function L(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+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,r,o]=L(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const jn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,jn);if(o)return o[1]}return t}function p(n,t,e){const r=n.style[t],o=i.css(i.css(n,t,e),t);return n.style[t]=r,o}function q(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}var Q={mixins:[Sn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,duration:e,timing:r,dir:o}}){i.fastdom.read(()=>{if(!this.matchMedia)return;const s=this.getCss(J(n,o,t)),c=this.getCss(G(n)?.5:o>0?1:0);i.fastdom.write(()=>{i.css(this.$el,s),i.Transition.start(this.$el,c,e,r).catch(i.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){i.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,dir:e}}){i.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,e,t));i.fastdom.write(()=>i.css(this.$el,r))})}}]};function G(n){return i.endsWith(n,"in")}function J(n,t,e){return e/=2,G(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Q),Q});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 0.0.
|
|
1
|
+
/*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -178,7 +178,6 @@
|
|
|
178
178
|
};
|
|
179
179
|
|
|
180
180
|
const pointerOptions = { passive: false, capture: true };
|
|
181
|
-
const pointerUpOptions = { passive: true, capture: true };
|
|
182
181
|
const pointerDown = "touchstart mousedown";
|
|
183
182
|
const pointerMove = "touchmove mousemove";
|
|
184
183
|
const pointerUp = "touchend touchcancel mouseup click input scroll";
|
|
@@ -188,14 +187,18 @@
|
|
|
188
187
|
},
|
|
189
188
|
data: {
|
|
190
189
|
draggable: true,
|
|
191
|
-
threshold: 10
|
|
190
|
+
threshold: 10,
|
|
191
|
+
angleThreshold: 45
|
|
192
192
|
},
|
|
193
193
|
created() {
|
|
194
194
|
for (const key of ["start", "move", "end"]) {
|
|
195
195
|
const fn = this[key];
|
|
196
196
|
this[key] = (e) => {
|
|
197
|
-
const pos = util.getEventPos(e)
|
|
198
|
-
|
|
197
|
+
const pos = util.getEventPos(e);
|
|
198
|
+
if (util.isRtl) {
|
|
199
|
+
pos.x = -pos.x;
|
|
200
|
+
}
|
|
201
|
+
this.prevPos = util.isEqual(pos, this.pos) ? this.prevPos : this.pos;
|
|
199
202
|
this.pos = pos;
|
|
200
203
|
fn(e);
|
|
201
204
|
};
|
|
@@ -232,7 +235,7 @@
|
|
|
232
235
|
this.drag = this.pos;
|
|
233
236
|
if (this._transitioner) {
|
|
234
237
|
this.percent = this._transitioner.percent();
|
|
235
|
-
this.drag += this._transitioner.getDistance() * this.percent * this.dir;
|
|
238
|
+
this.drag.x += this._transitioner.getDistance() * this.percent * this.dir;
|
|
236
239
|
this._transitioner.cancel();
|
|
237
240
|
this._transitioner.translate(this.percent);
|
|
238
241
|
this.dragging = true;
|
|
@@ -241,12 +244,12 @@
|
|
|
241
244
|
this.prevIndex = this.index;
|
|
242
245
|
}
|
|
243
246
|
util.on(document, pointerMove, this.move, pointerOptions);
|
|
244
|
-
util.on(document, pointerUp, this.end,
|
|
247
|
+
util.on(document, pointerUp, this.end, { passive: true, capture: true, once: true });
|
|
245
248
|
util.css(this.list, "userSelect", "none");
|
|
246
249
|
},
|
|
247
250
|
move(e) {
|
|
248
|
-
const distance = this.pos - this.drag;
|
|
249
|
-
if (distance === 0 || this.prevPos === this.pos || !this.dragging && Math.abs(distance) < this.threshold) {
|
|
251
|
+
const distance = this.pos.x - this.drag.x;
|
|
252
|
+
if (distance === 0 || !this.dragging && getAngle(this.pos, this.drag) > this.angleThreshold || this.prevPos.x === this.pos.x || !this.dragging && Math.abs(distance) < this.threshold) {
|
|
250
253
|
return;
|
|
251
254
|
}
|
|
252
255
|
e.cancelable && e.preventDefault();
|
|
@@ -257,7 +260,7 @@
|
|
|
257
260
|
let nextIndex = this.getIndex(prevIndex + this.dir);
|
|
258
261
|
let width = getDistance.call(this, prevIndex, nextIndex);
|
|
259
262
|
while (nextIndex !== prevIndex && dis > width) {
|
|
260
|
-
this.drag -= width * this.dir;
|
|
263
|
+
this.drag.x -= width * this.dir;
|
|
261
264
|
prevIndex = nextIndex;
|
|
262
265
|
dis -= width;
|
|
263
266
|
nextIndex = this.getIndex(prevIndex + this.dir);
|
|
@@ -295,7 +298,6 @@
|
|
|
295
298
|
},
|
|
296
299
|
end() {
|
|
297
300
|
util.off(document, pointerMove, this.move, pointerOptions);
|
|
298
|
-
util.off(document, pointerUp, this.end, pointerUpOptions);
|
|
299
301
|
if (this.dragging) {
|
|
300
302
|
setTimeout(util.on(this.list, "click", (e) => e.preventDefault(), pointerOptions));
|
|
301
303
|
this.dragging = null;
|
|
@@ -305,12 +307,13 @@
|
|
|
305
307
|
this._show(false, this.index, true);
|
|
306
308
|
this._transitioner = null;
|
|
307
309
|
} else {
|
|
308
|
-
const dirChange =
|
|
309
|
-
this.index = dirChange ? this.index : this.prevIndex;
|
|
310
|
+
const dirChange = this.dir < 0 === this.prevPos.x > this.pos.x;
|
|
310
311
|
if (dirChange) {
|
|
311
312
|
util.trigger(this.slides[this.prevIndex], "itemhidden", [this]);
|
|
312
313
|
util.trigger(this.slides[this.index], "itemshown", [this]);
|
|
313
314
|
this.percent = 1 - this.percent;
|
|
315
|
+
} else {
|
|
316
|
+
this.index = this.prevIndex;
|
|
314
317
|
}
|
|
315
318
|
this.show(
|
|
316
319
|
this.dir > 0 && !dirChange || this.dir < 0 && dirChange ? "next" : "previous",
|
|
@@ -329,6 +332,9 @@
|
|
|
329
332
|
function hasSelectableText(el) {
|
|
330
333
|
return util.css(el, "userSelect") !== "none" && util.toArray(el.childNodes).some((el2) => el2.nodeType === 3 && el2.textContent.trim());
|
|
331
334
|
}
|
|
335
|
+
function getAngle(pos1, pos2) {
|
|
336
|
+
return Math.atan2(Math.abs(pos2.y - pos1.y), Math.abs(pos2.x - pos1.x)) * 180 / Math.PI;
|
|
337
|
+
}
|
|
332
338
|
|
|
333
339
|
util.memoize((id, props) => {
|
|
334
340
|
const attributes = Object.keys(props);
|
|
@@ -359,17 +365,16 @@
|
|
|
359
365
|
next: "Next slide",
|
|
360
366
|
previous: "Previous slide",
|
|
361
367
|
slideX: "Slide %s",
|
|
362
|
-
slideLabel: "%s of %s"
|
|
363
|
-
role: "String"
|
|
368
|
+
slideLabel: "%s of %s"
|
|
364
369
|
},
|
|
365
370
|
data: {
|
|
366
371
|
selNav: false,
|
|
367
372
|
role: "region"
|
|
368
373
|
},
|
|
369
374
|
computed: {
|
|
370
|
-
nav: ({ selNav }, $el) => util
|
|
375
|
+
nav: ({ selNav }, $el) => util.$$(selNav, $el),
|
|
371
376
|
navChildren() {
|
|
372
|
-
return util.children(
|
|
377
|
+
return this.nav.map((nav) => util.children(nav)).flat();
|
|
373
378
|
},
|
|
374
379
|
selNavItem: ({ attrItem }) => `[${attrItem}],[data-${attrItem}]`,
|
|
375
380
|
navItems(_, $el) {
|
|
@@ -427,9 +432,9 @@
|
|
|
427
432
|
slides(slides) {
|
|
428
433
|
slides.forEach(
|
|
429
434
|
(slide, i) => util.attr(slide, {
|
|
430
|
-
role: this.nav ? "tabpanel" : "group",
|
|
435
|
+
role: this.nav.length ? "tabpanel" : "group",
|
|
431
436
|
"aria-label": this.t("slideLabel", i + 1, this.length),
|
|
432
|
-
"aria-roledescription": this.nav ? null : "slide"
|
|
437
|
+
"aria-roledescription": this.nav.length ? null : "slide"
|
|
433
438
|
})
|
|
434
439
|
);
|
|
435
440
|
this.padNavitems();
|
|
@@ -510,16 +515,16 @@
|
|
|
510
515
|
}
|
|
511
516
|
},
|
|
512
517
|
padNavitems() {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
518
|
+
for (const nav of this.nav) {
|
|
519
|
+
const navChildren = util.children(nav);
|
|
520
|
+
const navItems = [];
|
|
521
|
+
for (let i = 0; i < this.length; i++) {
|
|
522
|
+
const attr2 = `${this.attrItem}="${i}"`;
|
|
523
|
+
navItems[i] = navChildren.findLast((el) => el.matches(`[${attr2}]`)) || util.$(`<li ${attr2}><a href></a></li>`);
|
|
524
|
+
}
|
|
525
|
+
if (!util.isEqual(navItems, navChildren)) {
|
|
526
|
+
util.html(this.nav, navItems);
|
|
527
|
+
}
|
|
523
528
|
}
|
|
524
529
|
}
|
|
525
530
|
}
|
|
@@ -695,9 +700,6 @@
|
|
|
695
700
|
return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
|
|
696
701
|
}
|
|
697
702
|
const { from: toArray } = Array;
|
|
698
|
-
function isFunction(obj) {
|
|
699
|
-
return typeof obj === "function";
|
|
700
|
-
}
|
|
701
703
|
function isObject(obj) {
|
|
702
704
|
return obj !== null && typeof obj === "object";
|
|
703
705
|
}
|
|
@@ -742,9 +744,6 @@
|
|
|
742
744
|
return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
|
|
743
745
|
} else {
|
|
744
746
|
for (const el of toNodes(element)) {
|
|
745
|
-
if (isFunction(value)) {
|
|
746
|
-
value = value.call(el, attr(el, name));
|
|
747
|
-
}
|
|
748
747
|
if (value === null) {
|
|
749
748
|
removeAttr(el, name);
|
|
750
749
|
} else {
|
|
@@ -1440,7 +1439,7 @@
|
|
|
1440
1439
|
return util.sumBy(util.children(list).slice(0, index), (el) => util.dimensions(el).width);
|
|
1441
1440
|
}
|
|
1442
1441
|
function centerEl(el, list) {
|
|
1443
|
-
return util.dimensions(list).width
|
|
1442
|
+
return (util.dimensions(list).width - util.dimensions(el).width) / 2;
|
|
1444
1443
|
}
|
|
1445
1444
|
function getElLeft(el, list) {
|
|
1446
1445
|
return el && (util.position(el).left + (util.isRtl ? util.dimensions(el).width - util.dimensions(list).width : 0)) * (util.isRtl ? -1 : 1) || 0;
|
|
@@ -1509,7 +1508,7 @@
|
|
|
1509
1508
|
if (this.center) {
|
|
1510
1509
|
if (left < width / 2 && left + slideWidth + util.dimensions(this.slides[util.getIndex(i + 1, this.slides)]).width / 2 > width / 2) {
|
|
1511
1510
|
sets.push(i);
|
|
1512
|
-
left = width
|
|
1511
|
+
left = (width - slideWidth) / 2;
|
|
1513
1512
|
}
|
|
1514
1513
|
} else if (left === 0) {
|
|
1515
1514
|
sets.push(Math.min(i, this.maxIndex));
|
|
@@ -1600,7 +1599,7 @@
|
|
|
1600
1599
|
return;
|
|
1601
1600
|
}
|
|
1602
1601
|
const next = this.slides[index];
|
|
1603
|
-
let width = util.dimensions(this.list).width
|
|
1602
|
+
let width = (util.dimensions(this.list).width - util.dimensions(next).width) / 2;
|
|
1604
1603
|
let j = 0;
|
|
1605
1604
|
while (width > 0) {
|
|
1606
1605
|
const slideIndex = this.getIndex(--j + index, index);
|
|
@@ -1650,7 +1649,7 @@
|
|
|
1650
1649
|
const left = -width;
|
|
1651
1650
|
const right = width * 2;
|
|
1652
1651
|
const slideWidth = util.dimensions(this.slides[this.index]).width;
|
|
1653
|
-
const slideLeft = this.center ? width
|
|
1652
|
+
const slideLeft = this.center ? (width - slideWidth) / 2 : 0;
|
|
1654
1653
|
const slides = /* @__PURE__ */ new Set();
|
|
1655
1654
|
for (const i of [-1, 1]) {
|
|
1656
1655
|
let currentLeft = slideLeft + (i > 0 ? slideWidth : 0);
|
|
@@ -1665,12 +1664,12 @@
|
|
|
1665
1664
|
},
|
|
1666
1665
|
getIndexAt(percent) {
|
|
1667
1666
|
let index = -1;
|
|
1668
|
-
const scrollDist = this.center ? getWidth(this.list) - (util.dimensions(this.slides[0]).width
|
|
1667
|
+
const scrollDist = this.center ? getWidth(this.list) - (util.dimensions(this.slides[0]).width + util.dimensions(util.last(this.slides)).width) / 2 : getWidth(this.list, this.maxIndex);
|
|
1669
1668
|
let dist = percent * scrollDist;
|
|
1670
1669
|
let slidePercent = 0;
|
|
1671
1670
|
do {
|
|
1672
1671
|
const slideWidth = util.dimensions(this.slides[++index]).width;
|
|
1673
|
-
const slideDist = this.center ? slideWidth
|
|
1672
|
+
const slideDist = this.center ? (slideWidth + util.dimensions(this.slides[index + 1]).width) / 2 : slideWidth;
|
|
1674
1673
|
slidePercent = dist / slideDist % 1;
|
|
1675
1674
|
dist -= slideDist;
|
|
1676
1675
|
} while (dist >= 0 && index < this.maxIndex);
|
|
@@ -1706,7 +1705,7 @@
|
|
|
1706
1705
|
}
|
|
1707
1706
|
diff = Math.max(
|
|
1708
1707
|
diff,
|
|
1709
|
-
slideWidth
|
|
1708
|
+
(slideWidth + util.dimensions(slides[util.getIndex(+index + i, slides)]).width) / 2 - (left - listHalf)
|
|
1710
1709
|
);
|
|
1711
1710
|
}
|
|
1712
1711
|
if (Math.trunc(diff) > util.sumBy(
|