text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49409318"],{"3e5b":function(t,e,i){"use strict";var a=i("4d15"),o=i.n(a);o.a},"431f":function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.busy?a("Busy"):t._e(),a("imageku",{staticStyle:{"z-index":"1000"}}),a("div",{staticClass:"text-center d-sm-none"},[t.menuTrigger?t._e():a("v-touch",{staticStyle:{width:"40px",background:"transparent",height:"900px",position:"absolute",left:"0","z-index":"10001"},on:{swiperight:t.onSwipeRight}})],1),a("div",{staticClass:"container-fluid anim shadow-lg",staticStyle:{background:"#343A40"}},[a("div",{staticClass:"row anim"},[a("div",{staticClass:"anim col-4 col-sm-3 col-md-2 p-1 rounded-lg",staticStyle:{position:"fixed",padding:"0",margin:"0","min-height":"760px"},style:{background:t.bgleft1}},[a("div",{staticClass:"text-center text-white font-bold text-times text-xs",staticStyle:{height:"50px",margin:"none","padding-top":"10px"},style:{background:t.bgleft2}},[a("img",{staticClass:"img-fluid p-4",attrs:{src:i("7987")}})]),a("div",{staticClass:"text-center p-1",style:{background:t.bgleft2}},[t._m(0),a("div",{staticClass:"flex items-center border-b border-b-2 p-2"}),a("br"),a("div",{staticClass:"bord hover:bg-red rounded-t-lg text-left pl-3",staticStyle:{"border-top":"2px solid black",color:"white"},attrs:{id:"pertamaclick"},on:{click:function(e){return t.muncul(e)}}},[t._v("\n            MENU\n            "),a("span",{staticClass:"typcn typcn-arrow-down float-right"})]),a("ul",{staticClass:"isaktif pl-4 anim mb-3 text-white animated slideInRight"},[a("li",{staticClass:"bord hover:bg-red text-left pl-3",on:{click:function(e){return t.$router.push("/tv/edit1")}}},[t._v("DASHBOARD")]),a("li",{staticClass:"bord hover:bg-red text-left pl-3",on:{click:function(e){return t.$router.push("/tv/edit3")}}},[t._v("EDIT INFO")])]),a("div",{staticClass:"bord hover:bg-red rounded-b-lg text-left pl-3 bg-red mt-2",staticStyle:{"border-top":"2px solid black",color:"white"},on:{click:t.logout}},[t._v("\n            LOGOUT\n          ")])])]),a("div",{staticClass:"bg-black anim",class:{"col-8 col-sm-9 col-md-10 offset-4 offset-sm-3 offset-md-2":t.menuTrigger,"col-sm-12":!t.menuTrigger}},[a("div",{staticClass:"row"},[a("div",{staticClass:"col-sm-12",staticStyle:{padding:"0",margin:"0"}},[a("div",{staticClass:"pt-2",staticStyle:{height:"50px",margin:"none",padding:"3px"},style:{background:t.bgrighttop}},[a("button",{staticClass:"btn btn-sm btn-dark ml-3",staticStyle:{"border-color":"white"},attrs:{type:"button"},on:{click:function(e){t.menuTrigger=!t.menuTrigger}}},[t._m(1)])])]),a("div",{staticClass:"col-sm-12",staticStyle:{background:"#eceff4","min-height":"760px"},on:{click:function(e){t.menuTrigger=!1,t.menuKanan=!1}}},[a("div",{staticClass:"sm:mt-2 sm:p-2"},[a("router-view",{directives:[{name:"myimage",rawName:"v-myimage"},{name:"reload",rawName:"v-reload"}],staticStyle:{"z-index":"10"}})],1)])])])]),a("transition",{attrs:{tag:"div","enter-active-class":"animated fadeInRight","leave-active-class":"animated fadeOutRight",mode:"in-out"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.menuKanan,expression:"menuKanan"}],staticClass:"bg-blue",staticStyle:{position:"fixed","z-index":"11",right:"0",top:"0",width:"210px",height:"700px","box-shadow":"1px 1px 2px 1.5px black"}},[a("p",{staticClass:"text-center"},[t._v("MENU")]),a("div",{staticClass:"bord hover:bg-red rounded-t-lg text-left pl-3",staticStyle:{"border-top":"2px solid black",color:"white"},on:{click:function(e){return t.muncul(e)}}},[t._v("\n          Menu 1\n          "),a("span",{staticClass:"typcn typcn-arrow-down float-right"})]),a("ul",{staticClass:"isaktif pl-4 anim mb-3 text-white animated fadeIn"},[a("li",{staticClass:"bord hover:bg-red text-left pl-3"},[t._v("pilih 1")]),a("li",{staticClass:"bord hover:bg-red text-left pl-3"},[t._v("pilih 2")]),a("li",{staticClass:"bord hover:bg-red text-left pl-3"},[t._v("pilih 3")])])])])],1)],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"sm:p-3 text-center",staticStyle:{"border-bottom":"1px solid gray"}},[i("br"),i("br"),i("br")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"tips"},[i("i",{staticClass:"fas fa-th",staticStyle:{color:"white","margin-left":"50px"}}),i("span",{staticClass:"tipstextB"},[t._v("Slide")])])}],s=(i("8e6e"),i("456d"),i("7618")),n=i("bd86"),r=(i("a481"),i("ac6a"),i("748e")),l=i("8ea4"),c=i("bc3a"),u=i.n(c),d=i("f051"),h=i("ee0b"),g=i("19d9"),f=i("38d8");function m(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function p(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?m(i,!0).forEach((function(e){Object(n["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):m(i).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var b={components:{imageku:d["a"],menus:l["a"],dropdown:r["a"],Busy:h["a"],Footer:g["a"],Navbar:f["a"]},data:function(){return{bgleft1:"#343A40",bgleft2:"#232e30",bgleft3:"#343A40",bgrighttop:"#3c8dbc",test:1,menuTrigger:!0,menuKanan:!1,bearer:"",busy:!1}},methods:{logout:function(){localStorage.removeItem("login"),this.$router.push("/")},muncul:function(t){t.target.nextElementSibling.classList.toggle("isaktif")},onSwipeRight:function(){this.menuTrigger=!0},scrollOnLoad:function(){var t=this;this.$el.querySelectorAll("a.scrollactive-item").forEach((function(e){e.hash==t.$route.hash&&e.click()}))},cekAuth:function(){var t=this;null!=localStorage.getItem("auth._token.local")&&("false"==localStorage.getItem("auth._token.local")?"false"!=localStorage.getItem("auth.local")&&u.a.get(this.$store.state.url+"/api/auth/user",{headers:{Authorization:localStorage.getItem("auth.local")}}).then((function(e){t.$store.commit("changeUser",e.data.user)})):u.a.get(this.$store.state.url+"/api/auth/user",{headers:{Authorization:localStorage.getItem("auth._token.local")}}).then((function(e){t.$store.commit("changeUser",e.data.user)})))},loginOAuth:function(){var t=this,e=document.URL.indexOf("?json");e=document.URL.slice(0,e);var i=document.URL.indexOf("xxx");if(-1!=i){var a=document.URL.slice(i).replace("%20"," ").replace("#/","").replace("xxx=","");console.log(a),this.bearer=a,localStorage.setItem("auth._token.local",a),localStorage.setItem("auth.local",a),u.a.get(this.$store.state.url+"/api/auth/user",{headers:{Authorization:a}}).then((function(i){console.log(i.data),t.$store.commit("changeUser",i.data.user),console.log(t.$store.state.user),setTimeout((function(){window.location=e}),500)}))}},isLoginNotLocal:function(){var t=this,e=this;this.$store.state.auth.loggedIn&&"local"!=this.$store.state.auth.strategy&&!this.$store.state.auth.isAuth&&(this.busy=!0,setTimeout((function(){if(t.busy=!1,t.$store.dispatch("auth/goAuth",t.$store.state.auth.isAuth),"local"!=t.$auth.$state.strategy){var i=new Date;localStorage.setItem("expireDate",new Date(i.getTime()+36e5));var a=t.$auth.user;"facebook"==t.$auth.$state.strategy&&(a.picture=t.$auth.user.picture.data.url,a.verified=!0),t.$auth.loginWith("local",{data:p({},a,{oAuth:!0})}).then((function(i){
  //! setelah di ganti ke login local maka redirect kemana?
  t.busy=!0,setTimeout((function(){t.busy=!1,e.$store.dispatch("userRefresh"),t.$router.push("/")}),500)}))}}),1e3))},version:function(){null==localStorage.getItem("version")&&localStorage.setItem("version",1)},newStuff:function(){if(localStorage.getItem("newstuff")!=this.$store.state.version){var t=indexedDB.deleteDatabase(this.$store.state.indexdb);t.onsuccess=function(){console.log("Deleted database successfully")},t.onerror=function(){console.log("Couldn't delete database")},t.onblocked=function(){console.log("Couldn't delete database due to the operation being blocked")},localStorage.clear(),localStorage.setItem("newstuff",this.$store.state.version),alert("new version")}},mediaQueries:function(){this.$store.commit("mediaQueries",window.innerWidth<=576?"sm":window.innerWidth<=768?"md":window.innerWidth<=992?"lg":"xl")},init:function(){this.scrollOnLoad(),"dekstop"!=this.$store.state.device&&this.isLoginNotLocal(),this.version(),this.loginOAuth()}},mounted:function(){var t=this;this.$el.querySelector("#pertamaclick").click();var e=this;"object"===("undefined"===typeof cordova?"undefined":Object(s["a"])(cordova))&&document.addEventListener("deviceready",(function(){cordova.plugins.backgroundMode.enable(),cordova.plugins.backgroundMode.on("EVENT",(function(){})),cordova.plugins.backgroundMode.setDefaults({title:"HELLO",text:"World",hidden:!0,silent:!0}),cordova.plugins.notification.local.setDefaults({led:{color:"#FF00FF",on:500,off:500},vibrate:[100,50,200]})})),this.mediaQueries(),this.$nextTick((function(){window.addEventListener("resize",(function(){e.mediaQueries()}))})),this.init(),setTimeout((function(){t.$store.commit("nossr",!0)}),100),this.$nuxt.$on("busy",(function(e){t.busy=e}))},head:{title:"hello",link:[{rel:"stylesheet",href:"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"},{}]}},v=b,x=(i("3e5b"),i("2877")),w=Object(x["a"])(v,a,o,!1,null,"35b2e9f7",null);e["default"]=w.exports},"4d15":function(t,e,i){},7987:function(t,e,i){t.exports=i.p+"img/btn.4ca301eb.png"}}]);
  //# sourceMappingURL=chunk-49409318.c7f80a6b.js.map