platypush/platypush/backend/http/dist/static/js/chunk-6c27e200.bc387aa4.js

2 lines
9.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c27e200"],{"021b":function(t,e,n){"use strict";n("058f")},"058f":function(t,e,n){},"18dc":function(t,e,n){"use strict";n("99af"),n("a15b"),n("d3b7"),n("6062"),n("3ca3"),n("ddb0");var i=n("5530"),r=(n("96cf"),n("1da1")),s=n("2909"),o=n("3e54"),a={name:"Utils",mixins:[o["a"]],computed:{audioExtensions:function(){return new Set(["3gp","aa","aac","aax","act","aiff","amr","ape","au","awb","dct","dss","dvf","flac","gsm","iklax","ivs","m4a","m4b","m4p","mmf","mp3","mpc","msv","nmf","nsf","ogg,","opus","ra,","raw","sln","tta","vox","wav","wma","wv","webm","8svx"])},videoExtensions:function(){return new Set(["webm","mkv","flv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mts","m2ts","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","mpg","mpeg","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","flv","f4v","f4p","f4a","f4b"])},mediaExtensions:function(){return new Set([].concat(Object(s["a"])(this.videoExtensions),Object(s["a"])(this.audioExtensions)))}},methods:{convertTime:function(t){t=parseFloat(t);var e={};e.h=""+parseInt(t/3600),e.m=""+parseInt(t/60-60*e.h),e.s=""+parseInt(t-(3600*e.h+60*e.m));for(var n=0,i=["m","s"];n<i.length;n++){var r=i[n];parseInt(e[r])<10&&(e[r]="0"+e[r])}var s=[];return parseInt(e.h)&&s.push(e.h),s.push(e.m,e.s),s.join(":")},startStreaming:function(t){var e=arguments,n=this;return Object(r["a"])(regeneratorRuntime.mark((function r(){var s,o,a,c;return regeneratorRuntime.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return s=e.length>1&&void 0!==e[1]&&e[1],o=t,a=null,t instanceof Object?(o=t.url,a=t.subtitles):t={url:o},r.next=6,n.request("media.start_streaming",{media:o,subtitles:a,download:s});case 6:return c=r.sent,r.abrupt("return",Object(i["a"])(Object(i["a"])({},t),c));case 8:case"end":return r.stop()}}),r)})))()},stopStreaming:function(t){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.request("media.stop_streaming",{media_id:t});case 2:case"end":return n.stop()}}),n)})))()}}};e["a"]=a},"524a":function(t,e,n){"use strict";var i=n("7a23"),r=Object(i["K"])("data-v-607f43da");Object(i["u"])("data-v-607f43da");var s={class:"col-1 icon"};Object(i["s"])();var o=r((function(t,e,n,r,o,a){return Object(i["r"])(),Object(i["e"])("div",{class:"row item",onClick:e[1]||(e[1]=function(){return a.clicked.apply(a,arguments)})},[Object(i["h"])("div",s,[n.iconClass?(Object(i["r"])(),Object(i["e"])("i",{key:0,class:n.iconClass},null,2)):Object(i["f"])("",!0)]),Object(i["h"])("div",{class:"col-11 text",textContent:Object(i["C"])(n.text)},null,8,["textContent"])])})),a={name:"DropdownItem",props:{iconClass:{type:String},text:{type:String},disabled:{type:Boolean,default:!1}},methods:{clicked:function(t){this.$parent.$emit("click",t),this.$parent.visible=!1}}};n("021b");a.render=o,a.__scopeId="data-v-607f43da";e["a"]=a},6062:function(t,e,n){"use strict";var i=n("6d61"),r=n("6566");t.exports=i("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r)},6566:function(t,e,n){"use strict";var i=n("9bf2").f,r=n("7c73"),s=n("e2cc"),o=n("0366"),a=n("19aa"),c=n("2266"),u=n("7dd0"),f=n("2626"),l=n("83ab"),d=n("f183").fastKey,v=n("69f3"),p=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,n,u){var f=t((function(t,i){a(t,f,e),p(t,{type:e,index:r(null),first:void 0,last:void 0,size:0}),l||(t.size=0),void 0!=i&&c(i,t[u],{that:t,AS_ENTRIES:n})})),v=m(e),b=function(t,e,n){var i,r,s=v(t),o=h(t,e);return o?o.value=n:(s.last=o={index:r=d(e,!0),key:e,value:n,previous:i=s.last,next:void 0,removed:!1},s.first||(s.first=o),i&&(i.next=o),l?s.size++:t.size++,"F"!==r&&(s.index[r]=o)),t},h=function(t,e){var n,i=v(t),r=d(e);if("F"!==r)return i.index[r];for(n=i.first;n;n=n.next)if(n.key==e)return n};return s(f.prototype,{clear:function(){var t=this,e=v(t),n=e.index,i=e.first;while(i)i.removed=!0,i.previous&&(i.previous=i.previous.next=void 0),delete n[i.index],i=i.next;e.first=e.last=void 0,l?e.size=0:t.size=0},delete:function(t){var e=this,n=v(e),i=h(e,t);if(i){var r=i.next,s=i.previous;delete n.index[i.index],i.removed=!0,s&&(s.next=r),r&&(r.previous=s),n.first==i&&(n.first=r),n.last==i&&(n.last=s),l?n.size--:e.size--}return!!i},forEach:function(t){var e,n=v(this),i=o(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){i(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!h(this,t)}}),s(f.prototype,n?{get:function(t){var e=h(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),l&&i(f.prototype,"size",{get:function(){return v(this).size}}),f},setStrong:function(t,e,n){var i=e+" Iterator",r=m(e),s=m(i);u(t,e,(function(t,e){p(this,{type:i,target:t,state:r(t),kind:e,last:void 0})}),(function(){var t=s(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},"6d61":function(t,e,n){"use strict";var i=n("23e7"),r=n("da84"),s=n("94ca"),o=n("6eeb"),a=n("f183"),c=n("2266"),u=n("19aa"),f=n("861d"),l=n("d039"),d=n("1c7e"),v=n("d44e"),p=n("7156");t.exports=function(t,e,n){var m=-1!==t.indexOf("Map"),b=-1!==t.indexOf("Weak"),h=m?"set":"add",g=r[t],x=g&&g.prototype,w=g,y={},j=function(t){var e=x[t];o(x,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(b&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return b&&!f(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(b&&!f(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(s(t,"function"!=typeof g||!(b||x.forEach&&!l((function(){(new g).entries().next()})))))w=n.getConstructor(e,t,m,h),a.REQUIRED=!0;else if(s(t,!0)){var O=new w,k=O[h](b?{}:-0,1)!=O,C=l((function(){O.has(1)})),E=d((function(t){new g(t)})),S=!b&&l((function(){var t=new g,e=5;while(e--)t[h](e,e);return!t.has(-0)}));E||(w=e((function(e,n){u(e,w,t);var i=p(new g,e,w);return void 0!=n&&c(n,i[h],{that:i,AS_ENTRIES:m}),i})),w.prototype=x,x.constructor=w),(C||S)&&(j("delete"),j("has"),m&&j("get")),(S||k)&&j(h),b&&x.clear&&delete x.clear}return y[t]=w,i({global:!0,forced:w!=g},y),v(w,t),b||n.setStrong(w,t,m),w}},"843b":function(t,e,n){},"87ac":function(t,e,n){"use strict";n("843b")},ab0f:function(t,e,n){"use strict";var i=n("7a23"),r=Object(i["K"])("data-v-00fa59b4");Object(i["u"])("data-v-00fa59b4");var s={class:"dropdown-container",ref:"container"};Object(i["s"])();var o=r((function(t,e,n,r,o,a){return Object(i["r"])(),Object(i["e"])("div",s,[Object(i["h"])("button",{title:n.title,ref:"button",onClick:e[1]||(e[1]=Object(i["J"])((function(t){return a.toggle(t)}),["stop"]))},[n.iconClass?(Object(i["r"])(),Object(i["e"])("i",{key:0,class:["icon",n.iconClass]},null,2)):Object(i["f"])("",!0),n.text?(Object(i["r"])(),Object(i["e"])("span",{key:1,class:"text",textContent:Object(i["C"])(n.text)},null,8,["textContent"])):Object(i["f"])("",!0)],8,["title"]),Object(i["h"])("div",{class:["dropdown fade-in",{hidden:!o.visible}],id:n.id,ref:"dropdown"},[Object(i["y"])(t.$slots,"default")],10,["id"])],512)})),a={name:"Dropdown",emits:["click"],props:{id:{type:String},items:{type:Array,default:function(){return[]}},iconClass:{type:String,default:"fa fa-ellipsis-h"},text:{type:String},title:{type:String}},data:function(){return{visible:!1}},methods:{documentClickHndl:function(t){if(this.visible){var e=t.target;while(e){if(!this.$refs.dropdown)break;if(e===this.$refs.dropdown.element)return;e=e.parentElement}this.close()}},close:function(){this.visible=!1,document.removeEventListener("click",this.documentClickHndl)},open:function(){var t=this;document.addEventListener("click",this.documentClickHndl),this.visible=!0,setTimeout((function(){var e=t.$refs.dropdown;e.style.left=0,e.style.top=parseFloat(getComputedStyle(t.$refs.button).height)+"px",e.getBoundingClientRect().left>window.innerWidth/2&&(e.style.left=-e.clientWidth+parseFloat(getComputedStyle(t.$refs.button).width)+"px"),e.getBoundingClientRect().top>window.innerHeight/2&&(e.style.top=-e.clientHeight+parseFloat(getComputedStyle(t.$refs.button).height)+"px")}),10)},toggle:function(t){t.stopPropagation(),this.$emit("click"),this.visible?this.close():this.open()}}};n("87ac");a.render=o,a.__scopeId="data-v-00fa59b4";e["a"]=a},bb2f:function(t,e,n){var i=n("d039");t.exports=!i((function(){return Object.isExtensible(Object.preventExtensions({}))}))},f183:function(t,e,n){var i=n("d012"),r=n("861d"),s=n("5135"),o=n("9bf2").f,a=n("90e3"),c=n("bb2f"),u=a("meta"),f=0,l=Object.isExtensible||function(){return!0},d=function(t){o(t,u,{value:{objectID:"O"+ ++f,weakData:{}}})},v=function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,u)){if(!l(t))return"F";if(!e)return"E";d(t)}return t[u].objectID},p=function(t,e){if(!s(t,u)){if(!l(t))return!0;if(!e)return!1;d(t)}return t[u].weakData},m=function(t){return c&&b.REQUIRED&&l(t)&&!s(t,u)&&d(t),t},b=t.exports={REQUIRED:!1,fastKey:v,getWeakData:p,onFreeze:m};i[u]=!0}}]);
//# sourceMappingURL=chunk-6c27e200.bc387aa4.js.map