text: (function(t){function e(e){for(var o,i,c=e[0],l=e[1],s=e[2],v=0,d=[];v<c.length;v++)i=c[v],Object.prototype.hasOwnProperty.call(r,i)&&r[i]&&d.push(r[i][0]),r[i]=0;for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(t[o]=l[o]);u&&u(e);while(d.length)d.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var t,e=0;e<a.length;e++){for(var n=a[e],o=!0,c=1;c<n.length;c++){var l=n[c];0!==r[l]&&(o=!1)}o&&(a.splice(e--,1),t=i(i.s=n[0]))}return t}var o={},r={app:0},a=[];function i(e){if(o[e])return o[e].exports;var n=o[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=t,i.c=o,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="";var c=window["webpackJsonp"]=window["webpackJsonp"]||[],l=c.push.bind(c);c.push=e,c=c.slice();for(var s=0;s<c.length;s++)e(c[s]);var u=l;a.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"56d7":function(t,e,n){"use strict";n.r(e);var o=n("2b0e"),r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-app",[n("router-view"),n("v-bottom-navigation",{attrs:{absolute:"",grow:"",color:"primary"}},[n("v-btn",{attrs:{to:{name:"Control"},height:"56"}},[n("span",[t._v("Control")]),n("v-icon",[t._v("directions")])],1),n("v-btn",{attrs:{to:{name:"Bluetooth"},height:"56"}},[n("span",[t._v("Devices")]),n("v-icon",[t._v("bluetooth")])],1)],1)],1)},a=[],i={name:"App"},c=i,l=n("2877"),s=n("6544"),u=n.n(s),v=n("7496"),d=n("b81c"),p=n("8336"),f=n("132d"),b=Object(l["a"])(c,r,a,!1,null,null,null),h=b.exports;u()(b,{VApp:v["a"],VBottomNavigation:d["a"],VBtn:p["a"],VIcon:f["a"]});var m=n("f309");o["a"].use(m["a"]);var g=new m["a"]({icons:{iconfont:"mdi"}}),w=n("8c4f"),y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._v("Homepage")])},_=[],x={data(){return{}}},V=x,O=Object(l["a"])(V,y,_,!1,null,null,null),C=O.exports,j=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-container",{attrs:{"fill-height":""}},[n("v-container",[n("v-row",[n("v-col"),n("v-col",{staticClass:"text-center"},[n("v-btn",{attrs:{fab:"","x-large":""},on:{click:t.forward}},[n("v-text",[t._v("90⁰")])],1)],1),n("v-col")],1),n("v-row",[n("v-col",{staticClass:"text-right",on:{click:t.left}},[n("v-btn",{attrs:{fab:"","x-large":""}},[n("v-text",[t._v("180⁰")])],1)],1),n("v-col",{staticClass:"text-center"},[n("v-btn",{attrs:{fab:"","x-large":""},on:{click:t.stop}},[n("v-icon",[t._v("pause")])],1)],1),n("v-col",[n("v-btn",{staticClass:"text-left",attrs:{fab:"","x-large":""},on:{click:t.right}},[n("v-text",[t._v("45⁰")])],1)],1)],1),n("v-row",[n("v-col"),n("v-col",{staticClass:"text-center"},[n("v-btn",{attrs:{fab:"","x-large":""},on:{click:t.back}},[n("v-text",[t._v("0⁰")])],1)],1),n("v-col")],1)],1)],1)},k=[],I=n("c2bb"),P=n.n(I),L={methods:{forward(){P.a.write("90;")},back(){P.a.write("0;")},left(){P.a.write("180;")},right(){P.a.write("45;")},stop(){P.a.write("s;")}}},B=L,E=n("62ad"),S=n("a523"),$=n("0fd9"),M=Object(l["a"])(B,j,k,!1,null,null,null),T=M.exports;u()(M,{VBtn:p["a"],VCol:E["a"],VContainer:S["a"],VIcon:f["a"],VRow:$["a"]});var A=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-list",[n("v-list-item-group",{attrs:{color:"primary"}},t._l(t.devices,function(e,o){return n("v-list-item",{key:o,on:{click:function(n){return t.connect(e)}}},[n("v-list-item-icon",[n("v-icon",{attrs:{color:t.connected&&e.id===t.connected.id?"primary":"grey"}},[t._v("bluetooth\n        ")])],1),n("v-list-item-content",[n("v-list-item-title",{domProps:{textContent:t._s(e.name)}})],1)],1)}),1),n("v-overlay",{attrs:{value:t.loading}},[n("v-progress-circular",{attrs:{indeterminate:"",size:"64"}})],1)],1)},H=[],J={data(){return{devices:[],connected:null,loading:!1}},mounted(){document.addEventListener("deviceready",()=>{P.a.isEnabled(()=>{P.a.list(t=>{this.devices=t})},()=>{alert("Bluetooth is not enabled")})})},methods:{async connect(t){this.loading=!0,await P.a.isConnected(async()=>{await P.a.disconnect(this.connected.id),this.connected=null}),P.a.connect(t.id,()=>{this.connected=t,this.loading=!1},()=>{this.loading=!1,alert("Can not connect to selected device")})}}},z=J,D=n("8860"),G=n("da13"),N=n("5d23"),R=n("1baa"),q=n("34c3"),F=n("a797"),K=n("490a"),Q=Object(l["a"])(z,A,H,!1,null,null,null),U=Q.exports;u()(Q,{VIcon:f["a"],VList:D["a"],VListItem:G["a"],VListItemContent:N["a"],VListItemGroup:R["a"],VListItemIcon:q["a"],VListItemTitle:N["b"],VOverlay:F["a"],VProgressCircular:K["a"]}),o["a"].use(w["a"]);const W=new w["a"]({mode:"hash",routes:[{path:"/s",name:"Homepage",component:C},{path:"/",name:"Control",component:T},{path:"/bluetooth",name:"Bluetooth",component:U}]});var X=W;o["a"].config.productionTip=!1,new o["a"]({vuetify:g,router:X,render:t=>t(h)}).$mount("#app")}});
  //# sourceMappingURL=app.cf7fb07d.js.map