"use strict";(self["webpackChunkplatypush"]=self["webpackChunkplatypush"]||[]).push([[47,4647],{4647:function(a,e,t){t.r(e),t.d(e,{default:function(){return c}});t(18111),t(22489);var i=t(20641);const n={class:"media-file-browser"};function s(a,e,t,s,l,r){const d=(0,i.g2)("Loading"),o=(0,i.g2)("Browser");return(0,i.uX)(),(0,i.CE)("div",n,[r.isLoading?((0,i.uX)(),(0,i.Wv)(d,{key:0})):((0,i.uX)(),(0,i.Wv)(o,{key:1,"is-media":!0,filter:a.filter,"has-back":!0,homepage:l.mediaDirs,onBack:e[0]||(e[0]=e=>a.$emit("back")),onPathChange:e[1]||(e[1]=e=>a.$emit("path-change",e)),onPlay:e[2]||(e[2]=e=>a.$emit("play",e))},null,8,["filter","homepage"]))])}var l=t(60959),r=t(81350),d=t(40047),o={mixins:[d["default"]],components:{Browser:l.A,Loading:r.A},data(){return{loading_:!1,mediaDirs:{}}},computed:{isLoading(){return this.loading_||this.loading}},methods:{async refresh(){this.loading_=!0;try{this.mediaDirs=await this.request(`${this.mediaPlugin}.get_media_dirs`)}finally{this.loading_=!1}}},async mounted(){const a=this.getUrlArgs().path;a&&await this.$emit("path-change",a),await this.refresh()}},u=t(66262);const h=(0,u.A)(o,[["render",s],["__scopeId","data-v-b416fbc4"]]);var c=h},40047:function(a,e,t){t.r(e),t.d(e,{default:function(){return l}});var i=t(91387),n={mixins:[i.A],emits:["add-to-playlist","add-to-queue","back","create-playlist","download","download-audio","path-change","play","remove-from-playlist","remove-playlist","rename-playlist"],props:{filter:{type:String,default:""},loading:{type:Boolean,default:!1},mediaPlugin:{type:String},selectedPlaylist:{default:null},selectedChannel:{default:null}},data(){return{loading_:!1}},computed:{isLoading(){return this.loading||this.loading_}}};const s=n;var l=s}}]);
//# sourceMappingURL=4647.79387437.js.map