mirror of
https://github.com/eugene-serb/wavelovers.git
synced 2023-09-09 23:41:16 +03:00
2 lines
4.7 KiB
JavaScript
2 lines
4.7 KiB
JavaScript
"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[743],{1682:function(t,e,n){n.d(e,{Z:function(){return v}});var a=n(3396),s=n(7139);const i={class:"content-item device-list"};function r(t,e,n,r,o,c){const m=(0,a.up)("GamepadItem");return(0,a.wg)(),(0,a.iD)("div",i,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.gamepads,(t=>((0,a.wg)(),(0,a.j4)(m,{key:t.id,textContent:(0,s.zw)(t.unit.id)},null,8,["textContent"])))),128))])}const o={class:"list-item"};function c(t,e,n,s,i,r){return(0,a.wg)(),(0,a.iD)("div",o)}var m=(0,a.aZ)({name:"GamepadItem"}),p=n(89);const u=(0,p.Z)(m,[["render",c]]);var d=u,l=(0,a.aZ)({name:"GamepadList",props:{gamepads:{type:Array}},components:{GamepadItem:d}});const g=(0,p.Z)(l,[["render",r]]);var v=g},322:function(t,e,n){n.d(e,{Z:function(){return m}});var a=n(3396);const s={class:"content-item message"};function i(t,e,n,i,r,o){return(0,a.wg)(),(0,a.iD)("div",s,[(0,a._)("span",null,[(0,a.WI)(t.$slots,"default")])])}var r=(0,a.aZ)({name:"MessageItem"}),o=n(89);const c=(0,o.Z)(r,[["render",i]]);var m=c},9100:function(t,e,n){n.d(e,{Z:function(){return m}});var a=n(3396);const s={class:"content-item navigation-list"};function i(t,e,n,i,r,o){const c=(0,a.up)("router-link");return(0,a.wg)(),(0,a.iD)("div",s,[(0,a.Wm)(c,{to:"/",class:"navigation-list__item"},{default:(0,a.w5)((()=>[(0,a.Uk)("Patterns")])),_:1}),(0,a.Wm)(c,{to:"/custom",class:"navigation-list__item"},{default:(0,a.w5)((()=>[(0,a.Uk)("Custom")])),_:1}),(0,a.Wm)(c,{to:"/manual",class:"navigation-list__item"},{default:(0,a.w5)((()=>[(0,a.Uk)("Manual")])),_:1}),(0,a.Wm)(c,{to:"/diagnostic",class:"navigation-list__item"},{default:(0,a.w5)((()=>[(0,a.Uk)("Diagnostic")])),_:1})])}var r=(0,a.aZ)({name:"NavigationList"}),o=n(89);const c=(0,o.Z)(r,[["render",i]]);var m=c},2743:function(t,e,n){n.r(e),n.d(e,{default:function(){return j}});var a=n(3396);const s=(0,a._)("h1",{class:"visually-hidden"},"Wavelovers",-1);function i(t,e,n,i,r,o){const c=(0,a.up)("AppPatterns");return(0,a.wg)(),(0,a.iD)(a.HY,null,[s,(0,a.Wm)(c)],64)}const r={class:"app-patterns"};function o(t,e,n,s,i,o){const c=(0,a.up)("NavigationList"),m=(0,a.up)("PatternList"),p=(0,a.up)("MessageItem"),u=(0,a.up)("GamepadList");return(0,a.wg)(),(0,a.iD)(a.HY,null,[(0,a.Wm)(c),(0,a._)("div",r,[t.patterns.length>0?((0,a.wg)(),(0,a.j4)(m,{key:0,patterns:t.patterns,mode:t.mode,isActive:t.isActive,onChange:t.change},null,8,["patterns","mode","isActive","onChange"])):((0,a.wg)(),(0,a.j4)(p,{key:1},{default:(0,a.w5)((()=>[(0,a.Uk)("Loading...")])),_:1}))]),t.gamepads.length>0?((0,a.wg)(),(0,a.j4)(u,{key:0,gamepads:t.gamepads},null,8,["gamepads"])):((0,a.wg)(),(0,a.j4)(p,{key:1},{default:(0,a.w5)((()=>[(0,a.Uk)("Press any gamepad button or connect a new gamepad to vibrate.")])),_:1}))],64)}var c=n(1746),m=n(9100),p=n(1682),u=n(322);const d={class:"content-item pattern-list"};function l(t,e,n,s,i,r){const o=(0,a.up)("PatternItem");return(0,a.wg)(),(0,a.iD)("div",d,[((0,a.wg)(!0),(0,a.iD)(a.HY,null,(0,a.Ko)(t.patterns,((e,n)=>((0,a.wg)(),(0,a.j4)(o,{key:e.name,pattern:e,index:n,mode:t.mode,isActive:t.isActive,onChange:t.change},null,8,["pattern","index","mode","isActive","onChange"])))),128))])}var g=n(7139);const v=["textContent"],f={class:"pattern-item__info-container"},w=["textContent"],_=["textContent"];function Z(t,e,n,s,i,r){return(0,a.wg)(),(0,a.iD)("div",{onClick:e[0]||(e[0]=e=>t.change(t.index)),class:(0,g.C_)(["pattern-item",t.index===t.mode&&!0===t.isActive?"pattern-item_selected":""])},[(0,a._)("span",{class:"pattern-item__icon",textContent:(0,g.zw)(t.pattern.icon)},null,8,v),(0,a._)("div",f,[(0,a._)("span",{class:"pattern-item__name",textContent:(0,g.zw)(t.pattern.name)},null,8,w),(0,a._)("span",{class:"pattern-item__type",textContent:(0,g.zw)(t.pattern.type)},null,8,_)])],2)}var h=(0,a.aZ)({name:"PatternItem",props:{pattern:{type:Object},index:{type:Number},mode:{type:Number},isActive:{type:Boolean}},methods:{change:function(t){this.$emit("change",t)}}}),y=n(89);const k=(0,y.Z)(h,[["render",Z]]);var C=k,A=(0,a.aZ)({name:"PatternList",props:{patterns:{type:Array},mode:{type:Number},isActive:{type:Boolean}},components:{PatternItem:C},methods:{change:function(t){this.$emit("change",t)}}});const x=(0,y.Z)(A,[["render",l]]);var P=x,D=(0,a.aZ)({name:"AppPatterns",components:{PatternList:P,NavigationList:m.Z,GamepadList:p.Z,MessageItem:u.Z},computed:{gamepads:function(){return c.Z.getters.gamepads},patterns:function(){return c.Z.getters.patterns},mode:function(){return c.Z.getters.mode},isActive:function(){return c.Z.getters.isActive}},methods:{change(t){c.Z.dispatch("change",t)}},mounted(){c.Z.dispatch("loadPatterns")}});const I=(0,y.Z)(D,[["render",o]]);var L=I,b=(0,a.aZ)({name:"PatternsView",components:{AppPatterns:L}});const W=(0,y.Z)(b,[["render",i]]);var j=W}}]);
|
|
//# sourceMappingURL=743.5b603767.js.map
|