wavelovers/docs/js/app.cd1223e2.js

2 lines
17 KiB
JavaScript
Raw Normal View History

(function(){"use strict";var e={970:function(e,t,a){var n=a(9242),o=a(3396);function r(e,t,a,n,r,i){const s=(0,o.up)("AppHeader"),c=(0,o.up)("router-view"),l=(0,o.up)("AppFooter");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o.Wm)(s),(0,o.Wm)(c),(0,o.Wm)(l)],64)}const i={class:"header"},s={class:"header-wrapper container"},c=(0,o._)("div",{class:"logo-wrapper"},[(0,o._)("span",{class:"logo-wrapper__logo",translate:"no"},"Wavelovers")],-1),l={class:"menu-wrapper"},d={class:"navigation"},v={class:"navigation__item"},u=(0,o.Uk)("Home"),p={class:"navigation__item"},m=(0,o.Uk)("FAQ"),h={class:"navigation__item"},g=(0,o.Uk)("About"),f={class:"navigation__item"},b=(0,o.Uk)("Donate");function w(e,t,a,n,r,w){const W=(0,o.up)("router-link");return(0,o.wg)(),(0,o.iD)("header",i,[(0,o._)("div",s,[c,(0,o._)("nav",l,[(0,o._)("ul",d,[(0,o._)("li",v,[(0,o.Wm)(W,{to:"/",class:"navigation__link"},{default:(0,o.w5)((()=>[u])),_:1})]),(0,o._)("li",p,[(0,o.Wm)(W,{to:"/faq",class:"navigation__link"},{default:(0,o.w5)((()=>[m])),_:1})]),(0,o._)("li",h,[(0,o.Wm)(W,{to:"/about",class:"navigation__link"},{default:(0,o.w5)((()=>[g])),_:1})]),(0,o._)("li",f,[(0,o.Wm)(W,{to:"/donate",class:"navigation__link"},{default:(0,o.w5)((()=>[b])),_:1})])])])])])}var W=(0,o.aZ)({name:"AppHeader"}),y=a(89);const _=(0,y.Z)(W,[["render",w]]);var k=_;const V={class:"footer"},A=(0,o.uE)('<div class="footer-wrapper container"><div class="annotation"><span class="annotation__text">© 2022 Wavelovers. Content licensed under </span><a href="https://wavelovers.ru/LICENSE.md" target="_blank">GNU General Public License v3.0</a><br><span class="annotation__text">This site is open source. </span><a href="https://github.com/eugene-serb/wavelovers/" target="_blank">Improve this page.</a></div><div class="annotation created-by"><span class="annotation__text">Created by</span><a href="https://eugene-serb.github.io/" target="_blank" translate="no">Eugene Serb</a></div></div>',1),T=[A];function P(e,t,a,n,r,i){return(0,o.wg)(),(0,o.iD)("footer",V,T)}var G=(0,o.aZ)({name:"AppFooter"});const D=(0,y.Z)(G,[["render",P]]);var j=D,Z=(0,o.aZ)({name:"App",components:{AppHeader:k,AppFooter:j}});const x=(0,y.Z)(Z,[["render",r]]);var C=x,M=a(2483);const E={class:"page container"},L=(0,o._)("h1",{class:"visually-hidden"},"Wavelovers",-1);function O(e,t,a,n,r,i){const s=(0,o.up)("WaveloversApp");return(0,o.wg)(),(0,o.iD)("main",E,[L,(0,o.Wm)(s)])}const S={class:"wavelovers"},q=(0,o.Uk)("Loading..."),F=(0,o.Uk)("Press any gamepad's button or connect new gamepad.");function I(e,t,a,n,r,i){const s=(0,o.up)("PatternList"),c=(0,o.up)("MessageItem"),l=(0,o.up)("GamepadList");return(0,o.wg)(),(0,o.iD)("div",S,[e.patterns.length>0?((0,o.wg)(),(0,o.j4)(s,{key:0,patterns:e.patterns,mode:e.mode,isActive:e.isActive,onChange:e.change},null,8,["patterns","mode","isActive","onChange"])):((0,o.wg)(),(0,o.j4)(c,{key:1},{default:(0,o.w5)((()=>[q])),_:1})),e.gamepads.length>0?((0,o.wg)(),(0,o.j4)(l,{key:2,gamepads:e.gamepads},null,8,["gamepads"])):((0,o.wg)(),(0,o.j4)(c,{key:3},{default:(0,o.w5)((()=>[F])),_:1}))])}const N={class:"pattern-list"};function U(e,t,a,n,r,i){const s=(0,o.up)("PatternItem");return(0,o.wg)(),(0,o.iD)("div",N,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.patterns,((t,a)=>((0,o.wg)(),(0,o.j4)(s,{key:t.name,pattern:t,index:a,mode:e.mode,isActive:e.isActive,onChange:e.change},null,8,["pattern","index","mode","isActive","onChange"])))),128))])}var z=a(7139);const H=["textContent"],Q=["textContent"];function R(e,t,a,n,r,i){return(0,o.wg)(),(0,o.iD)("div",{onClick:t[0]||(t[0]=t=>e.change(e.index)),class:(0,z.C_)(["pattern-item",e.index===e.mode&&!0===e.isActive?"pattern-item_selected":""])},[(0,o._)("span",{class:"pattern-item__icon",textContent:(0,z.zw)(e.pattern.icon)},null,8,H),(0,o._)("span",{class:"pattern-item__name",textContent:(0,z.zw)(e.pattern.name)},null,8,Q)],2)}var B=(0,o.aZ)({name:"PatternItem",props:{pattern:{type:Object},index:{type:Number},mode:{type:Number},isActive:{type:Boolean}},methods:{change(e){this.$emit("change",e)}}});const Y=(0,y.Z)(B,[["render",R]]);var $=Y,K=(0,o.aZ)(
//# sourceMappingURL=app.cd1223e2.js.map