(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["d6b583d8"],{"2acb":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"full-screen",attrs:{id:"video-wrapper"}},[n("div",{staticClass:"full-screen",attrs:{id:"embed-streaming-video"}})])}];r._withStripped=!0;n("7514"),n("96cf");var a=n("c973"),s=n.n(a),c=(n("7f7f"),n("3156")),o=n.n(c),u=n("2f62"),d=n("383c"),m=n("f6ea"),p=n("b9ef"),f={name:"VideoStreamingPage",data:function(){return{actionsPanelTimeout:null,showVideo:!1,eventCode:""}},computed:o()({},Object(u["c"])("streaming",["script","streamingEventCode"]),Object(u["c"])("authentication",["isLogged"]),Object(u["c"])("myTicket",["eventListByType"]),{eventArray:function(){return this.eventListByType("myEvents")},eventName:function(){return this.eventArray[0].name}}),mounted:function(){var e=s()(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(this.eventCode=this.$route.params.eventCode,this.setStreamingEventCode(this.eventCode),this.isLogged){e.next=6;break}this.$router.push({name:d["c"]}),e.next=14;break;case 6:return e.next=8,this.getScript();case 8:if(!e.sent){e.next=12;break}setTimeout(this.initStreaming,2e3),e.next=14;break;case 12:this.toastError("Você não tem acesso ao video."),this.$router.push({path:"/".concat(p["b"])});case 14:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),methods:o()({},Object(u["b"])("streaming",["setStreamingScript","setStreamingEventCode"]),Object(u["b"])("myTicket",["getEventInformation"]),{initStreaming:function(){var e=s()(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:t=document.getElementById("q-app"),t.classList.add("streaming-full-height-body"),n=document.getElementById("embed-streaming-video"),n.innerHTML=this.script;case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getScript:function(){var e=s()(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(!this.streamingEventCode){e.next=9;break}return e.next=3,this.getEventInformation(this.streamingEventCode);case 3:if(t=e.sent,!(t.tickets.length>0)){e.next=8;break}return n=t.tickets.find(function(e){return e.download.type===m["p"].STREAMING}),this.setStreamingScript(n.download.script),e.abrupt("return",!0);case 8:return e.abrupt("return",!1);case 9:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()})},h=f,v=(n("9fb4"),n("2877")),l=Object(v["a"])(h,r,i,!1,null,null,null);l.options.__file="video.vue";t["default"]=l.exports},"9fb4":function(e,t,n){"use strict";var r=n("b54e"),i=n.n(r);i.a},b54e:function(e,t,n){}}]);
//# sourceMappingURL=d6b583d8.6b893f9c.2024-10-22T18:36:13.257Z.js.map