PageSourceSearch

https://morainelake.com/wp-content/themes/kicks/build/js/uikit/core/switcher.e6d77adbf67619e32233.min.js

js morainelake.com collected 2026-10-02 18:32:02 UTC 3,460 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkkicks=self.webpackChunkkicks||[]).push([[4906],{3428:(t,e,i)=>{i.r(e),i.d(e,{default:()=>w});var s=i(7804),n=i(8618),l=i(6839),o=i(2483),c=i(1485),r=i(4477),h=i(9e3),a=i(1489),g=i(5543),d=i(4516),u=i(9576);const p=".uk-disabled *, .uk-disabled, [disabled]",w={mixins:[d.Z],args:"connect",props:{connect:String,toggle:String,itemNav:String,active:Number,followFocus:Boolean,swiping:Boolean},data:{connect:"~.uk-switcher",toggle:"> * > :first-child",itemNav:!1,active:0,cls:"uk-active",attrItem:"uk-switcher-item",selVertical:".uk-nav",followFocus:!1,swiping:!0},computed:{connects:({connect:t},e)=>(0,s.Kt)(t,e),connectChildren(){return this.connects.map((t=>(0,n.pI)(t))).flat()},toggles:({toggle:t},e)=>(0,l.$$)(t,e),children(){return(0,n.pI)(this.$el).filter((t=>this.toggles.some((e=>(0,n.Yj)(e,t)))))}},watch:{connects(t){this.swiping&&(0,o.i)(t,"touchAction","pan-y pinch-zoom"),this.$emit()},connectChildren(){let t=Math.max(0,this.index());for(const e of this.connects)(0,n.pI)(e).forEach(((e,i)=>(0,c.og)(e,this.cls,i===t)));this.$emit()},toggles(t){this.$emit();const e=this.index();this.show(~e?e:t[this.active]||t[0])}},connected(){(0,r.Lj)(this.$el,"role","tablist")},observe:[(0,g.mA)({targets:({connectChildren:t})=>t}),(0,g.aq)({target:({connects:t})=>t,filter:({swiping:t})=>t})],events:[{name:"click keydown",delegate(){return this.toggle},handler(t){(0,n.wB)(t.current,p)||"click"!==t.type&&t.keyCode!==u.P.SPACE||(t.preventDefault(),this.show(t.current))}},{name:"keydown",delegate(){return this.toggle},handler(t){const{current:e,keyCode:i}=t,s=(0,n.wB)(this.$el,this.selVertical);let l=i===u.P.HOME?0:i===u.P.END?"last":i===u.P.LEFT&&!s||i===u.P.UP&&s?"previous":i===u.P.RIGHT&&!s||i===u.P.DOWN&&s?"next":-1;if(~l){t.preventDefault();const i=this.toggles.filter((t=>!(0,n.wB)(t,p))),s=i[(0,h.rw)(l,i,i.indexOf(e))];s.focus(),this.followFocus&&this.show(s)}}},{name:"click",el(){return this.connects.concat(this.itemNav?(0,s.Kt)(this.itemNav,this.$el):[])},delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){(0,n.oq)(t.target,"a,button")&&(t.preventDefault(),this.show((0,r.aT)(t.current,this.attrItem)))}},{name:"swipeRight swipeLeft",filter(){return this.swiping},el(){return this.connects},handler({type:t}){this.show((0,h.pn)(t,"Left")?"next":"previous")}}],update(){(0,r.Lj)(this.connects,"role","presentation"),(0,r.Lj)((0,n.pI)(this.$el),"role","presentation");for(const t in this.toggles){const e=this.toggles[t],i=this.connects[0]?.children[t];(0,r.Lj)(e,"role","tab"),i&&(e.id=(0,a.O)(this,e,`-tab-${t}`),i.id=(0,a.O)(this,i,`-tabpanel-${t}`),(0,r.Lj)(e,"aria-controls",i.id),(0,r.Lj)(i,{role:"tabpanel","aria-labelledby":e.id}))}(0,r.Lj)(this.$el,"aria-orientation",(0,n.wB)(this.$el,this.selVertical)?"vertical":null)},methods:{index(){return(0,h.cx)(this.children,(t=>(0,c.pv)(t,this.cls)))},show(t){const e=this.toggles.filter((t=>!(0,n.wB)(t,p))),i=this.index(),s=(0,h.rw)(!(0,h.UG)(t)||(0,h.q9)(e,t)?t:0,e,(0,h.rw)(this.toggles[i],e)),l=(0,h.rw)(e[s],this.toggles);this.children.forEach(((t,e)=>{(0,c.og)(t,this.cls,l===e),(0,r.Lj)(this.toggles[e],{"aria-selected":l===e,tabindex:l===e?null:-1})}));const o=i>=0&&i!==s;this.connects.forEach((async({children:t})=>{const e=(0,h.qo)(t).filter(((t,e)=>e!==l&&(0,c.pv)(t,this.cls)));await this.toggleElement(e,!1,o),await this.toggleElement(t[l],!0,o)}))}}}}}]);
2//# sourceMappingURL=switcher.e6d77adbf67619e32233.min.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.