(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-50779d2e","chunk-91c3565e","chunk-2d0b2ee4","chunk-2a286362","chunk-2d0c4c28"],{"25e0":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("table",{staticClass:"table is-hoverable"},[i("thead",[i("tr",t._l(t.columns,(function(e,n){return i("th",{key:n,class:e.class,style:e.style},[t._v(" "+t._s(e.name)+" "),t._m(0,!0)])})),0)]),i("tbody",t._l(t.data,(function(e,n){return i("tr",{key:n},[i("td",{attrs:{title:e.name},on:{click:function(i){return i.target!==i.currentTarget?null:t.action(e,"application/vnd.google-apps.folder"!==e.mimeType?"view":"")}}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.icons(e.mimeType)}})]),t._v(" "+t._s(e.name)+" "),t.isShowDesc?i("span",{staticClass:"has-text-grey g2-file-desc",domProps:{innerHTML:t._s(e.description)}}):t._e()]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[t._v(" "+t._s(e.modifiedTime)+" ")]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[t._v(t._s(e.size))]),i("td",{staticClass:"is-hidden-mobile is-hidden-touch"},[i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.action(e,"copy")}}},[i("i",{staticClass:"fa fa-copy faa-shake animated-hover",attrs:{title:t.$t("list.opt.copy"),"aria-hidden":"true"}})]),i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.action(e,"_blank")}}},[i("i",{staticClass:"fa fa-external-link faa-shake animated-hover",attrs:{title:t.$t("list.opt.newTab"),"aria-hidden":"true"}})]),"application/vnd.google-apps.folder"!==e.mimeType?i("span",{staticClass:"icon",on:{click:function(i){return i.stopPropagation(),t.action(e,"down")}}},[i("i",{staticClass:"fa fa-download faa-shake animated-hover",attrs:{"aria-hidden":"true",title:t.$t("list.opt.download")}})]):t._e()])])})),0)])},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"caret-wrapper"},[i("i",{staticClass:"sort-caret ascending"}),i("i",{staticClass:"sort-caret descending"})])}],r={props:{data:{type:Array,default:function(){return[]}},icons:{type:Function},action:{type:Function}},computed:{columns:function(){return[{name:this.$t("list.title.file"),style:""},{name:this.$t("list.title.moditime"),style:"width:20%",class:"is-hidden-mobile is-hidden-touch"},{name:this.$t("list.title.size"),style:"width:10.5%",class:"is-hidden-mobile is-hidden-touch"},{name:this.$t("list.title.operation"),style:"width:13.5%",class:"is-hidden-mobile is-hidden-touch"}]},isShowDesc:function(){return window.themeOptions.render.desc||!1}}},o=r,s=i("2877"),l=Object(s["a"])(o,n,a,!1,null,null,null);e["default"]=l.exports},"2a7a":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"g2-grid-view"},[i("div",{staticClass:"columns is-multiline"},t._l(t.folders,(function(e,n){return i("div",{key:"folder_"+n,staticClass:"column is-one-quarter",on:{click:function(i){return t.action(e)}}},[i("div",{staticClass:"card g2-grid-view-card g2-grid-view-folder"},[i("div",{staticClass:"media"},[i("div",{staticClass:"content",attrs:{title:e.name}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})]),t._v(" "+t._s(e.name)+" ")])])])])})),0),i("div",{staticClass:"columns is-multiline"},t._l(t.files,(function(e,n){return i("div",{key:"file_"+n,staticClass:"column is-one-quarter",on:{click:function(i){return t.action(e,"view")}}},[i("div",{staticClass:"card g2-grid-view-card"},[i("div",{class:"card-image"+(-1!=e.mimeType.indexOf("video")?" g2-grid-view-play":"")},[i("i"),i("figure",{staticClass:"image is-square"},[e.thumbnailLink?i("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.thum(e.thumbnailLink),expression:"thum(file.thumbnailLink)"}],attrs:{alt:e.name}}):i("svg",{staticClass:"file-icon iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})])])]),i("div",{staticClass:"media g2-grid-view-file"},[i("div",{staticClass:"content",attrs:{title:e.name}},[i("svg",{staticClass:"iconfont",attrs:{"aria-hidden":"true"}},[i("use",{attrs:{"xlink:href":t.getIcon(e.mimeType)}})]),t._v(" "+t._s(e.name)+" ")])])])])})),0)])},a=[],r=(i("4de4"),{name:"GridView",props:{data:{type:Array,default:function(){return[]}},getIcon:{type:Function},action:{type:Function},thum:{type:Function}},data:function(){return{}},computed:{folders:function(){return this.data.filter((function(t){return t.isFolder}))},files:function(){return this.data.filter((function(t){return!t.isFolder}))}},methods:{}}),o=r,s=(i("677f"),i("2877")),l=Object(s["a"])(o,n,a,!1,null,"1871190e",null);e["default"]=l.exports},"2db9":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("nav",{staticClass:"breadcrumb level g2-breadcrumb is-hidden-mobile is-hidden-touch",attrs:{"aria-label":"breadcrumbs"}},[i("div",{staticClass:"level-left"},[i("div",{staticClass:"level-item"},[i("ul",[i("li",[i("a",{directives:[{name:"show",rawName:"v-show",value:t.navs&&t.navs.length>0,expression:"navs && navs.length > 0"}],on:{click:function(e){return t.go("/"+t.index+":/")}}},[t._v(t._s(t.$t("index")))])]),t._l(t.navs,(function(e,n){return i("li",{key:n,class:n+1==t.navs.length?"is-active":""},[n+1==t.navs.length?i("a",{attrs:{"aria-current":"page",href:"#"}},[t._v(t._s(e.title))]):i("a",{on:{click:function(i){return t.go(e.path)}}},[t._v(t._s(e.title))])])}))],2)])]),i("div",{staticClass:"level-right"},[i("div",{staticClass:"level-item"},[i("view-mode")],1)])])])},a=[],r=(i("ac1f"),i("466d"),i("1276"),i("498a"),i("f3f7")),o=i("45d8"),s={props:["name"],components:{ViewMode:r["a"]},data:function(){return{navs:[],index:"/"}},mounted:function(){this.render()},watch:{$route:"render"},methods:{go:function(t){this.$router.push({path:t})},render:function(){this.index=this.$route.params.id;var t=this.$route.params.cmd;if("search"!==t){var e=this.$route.path;t&&(e=Object(o["d"])(this.$route.params.path));var i=e.trim("/").split("/"),n="/";if(i.length>0){var a=[];for(var r in i){var s=i[r];""!=s&&(s=decodeURIComponent(s),n+=i[r]+"/",s.match("[0-9]+:")||a.push({path:n,title:s}))}this.navs=a}}else this.navs=[]}}},l=s,d=(i("c9d4"),i("2877")),c=Object(d["a"])(l,n,a,!1,null,"3b7c6fae",null);e["default"]=c.exports},"3bcf":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}})},a=[],r=i("45d8"),o=i("0e54"),s=i.n(o),l={props:{option:{}},watch:{option:function(){this.render()}},mounted:function(){this.render()},data:function(){return{content:""}},computed:{defaultContent:function(){return'\n
\n \n Loading...\n \n '}},methods:{render:function(){var t=this;this.content=this.defaultContent,Object(r["g"])(this.option,(function(e){t.content=s()(e)}))}}},d=l,c=i("2877"),u=Object(c["a"])(d,n,a,!1,null,null,null);e["default"]=u.exports},"45a1":function(t,e,i){},"498a":function(t,e,i){"use strict";var n=i("23e7"),a=i("58a8").trim,r=i("c8d2");n({target:"String",proto:!0,forced:r("trim")},{trim:function(){return a(this)}})},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,i){var n=i("1d80"),a=i("5899"),r="["+a+"]",o=RegExp("^"+r+r+"*"),s=RegExp(r+r+"*$"),l=function(t){return function(e){var i=String(n(e));return 1&t&&(i=i.replace(o,"")),2&t&&(i=i.replace(s,"")),i}};t.exports={start:l(1),end:l(2),trim:l(3)}},"677f":function(t,e,i){"use strict";var n=i("45a1"),a=i.n(n);a.a},a844:function(t,e,i){},c740:function(t,e,i){"use strict";var n=i("23e7"),a=i("b727").findIndex,r=i("44d2"),o=i("ae40"),s="findIndex",l=!0,d=o(s);s in[]&&Array(1)[s]((function(){l=!1})),n({target:"Array",proto:!0,forced:l||!d},{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),r(s)},c8d2:function(t,e,i){var n=i("d039"),a=i("5899"),r="
";t.exports=function(t){return n((function(){return!!a[t]()||r[t]()!=r||a[t].name!==t}))}},c9d4:function(t,e,i){"use strict";var n=i("a844"),a=i.n(n);a.a},e166:function(t,e,i){
/*!
* vue-infinite-loading v2.4.5
* (c) 2016-2020 PeachScript
* MIT License
*/
!function(e,i){t.exports=i()}(0,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var a=e[n]={i:n,l:!1,exports:{}};return t[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,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 a in t)i.d(n,a,function(e){return t[e]}.bind(null,a));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="",i(i.s=9)}([function(t,e,i){var n=i(6);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(3).default)("6223ff68",n,!0,{})},function(t,e,i){var n=i(8);"string"==typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals),(0,i(3).default)("27f0e51f",n,!0,{})},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n=t[1]||"",a=t[3];if(!a)return n;if(e&&"function"==typeof btoa){var r=(i=a,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),o=a.sources.map((function(t){return"/*# sourceURL="+a.sourceRoot+t+" */"}));return[n].concat(o).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},a=0;ai.parts.length&&(n.parts.length=i.parts.length)}else{var o=[];for(a=0;a',"\nscript:\n...\ninfiniteHandler($state) {\n ajax('https://www.example.com/api/news')\n .then((res) => {\n if (res.data.length) {\n $state.loaded();\n } else {\n $state.complete();\n }\n });\n}\n...","","more details: https://github.com/PeachScript/vue-infinite-loading/issues/57#issuecomment-324370549"].join("\n"),INFINITE_EVENT:"`:on-infinite` property will be deprecated soon, please use `@infinite` event instead.",IDENTIFIER:"the `reset` event will be deprecated soon, please reset this component by change the `identifier` property."},o={INFINITE_LOOP:["executed the callback function more than ".concat(n.loopCheckMaxCalls," times for a short time, it looks like searched a wrong scroll wrapper that doest not has fixed height or maximum height, please check it. If you want to force to set a element as scroll wrapper ranther than automatic searching, you can do this:"),'\n\x3c!-- add a special attribute for the real scroll wrapper --\x3e\n\n ...\n \x3c!-- set force-use-infinite-wrapper --\x3e\n \n
\nor\n\n ...\n \x3c!-- set force-use-infinite-wrapper as css selector of the real scroll wrapper --\x3e\n \n
\n ',"more details: https://github.com/PeachScript/vue-infinite-loading/issues/55#issuecomment-316934169"].join("\n")},s={READY:0,LOADING:1,COMPLETE:2,ERROR:3},l={color:"#666",fontSize:"14px",padding:"10px 0"},d={mode:"development",props:{spinner:"default",distance:100,forceUseInfiniteWrapper:!1},system:n,slots:{noResults:"No results :(",noMore:"No more data :)",error:"Opps, something went wrong :(",errorBtnText:"Retry",spinner:""},WARNINGS:r,ERRORS:o,STATUS:s},c=i(4),u=i.n(c),p={BUBBLES:{render:function(t){return t("span",{attrs:{class:"loading-bubbles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"bubble-item"}})})))}},CIRCLES:{render:function(t){return t("span",{attrs:{class:"loading-circles"}},Array.apply(Array,Array(8)).map((function(){return t("span",{attrs:{class:"circle-item"}})})))}},DEFAULT:{render:function(t){return t("i",{attrs:{class:"loading-default"}})}},SPIRAL:{render:function(t){return t("i",{attrs:{class:"loading-spiral"}})}},WAVEDOTS:{render:function(t){return t("span",{attrs:{class:"loading-wave-dots"}},Array.apply(Array,Array(5)).map((function(){return t("span",{attrs:{class:"wave-item"}})})))}}};function f(t,e,i,n,a,r,o,s){var l,d="function"==typeof t?t.options:t;if(e&&(d.render=e,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),a&&a.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},d._ssrRegister=l):a&&(l=s?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(d.functional){d._injectStyles=l;var c=d.render;d.render=function(t,e){return l.call(e),c(t,e)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,l):[l]}return{exports:t,options:d}}var h=f({name:"Spinner",computed:{spinnerView:function(){return p[(this.$attrs.spinner||"").toUpperCase()]||this.spinnerInConfig},spinnerInConfig:function(){return d.slots.spinner&&"string"==typeof d.slots.spinner?{render:function(){return this._v(d.slots.spinner)}}:"object"===u()(d.slots.spinner)?d.slots.spinner:p[d.props.spinner.toUpperCase()]||p.DEFAULT}}},(function(){var t=this.$createElement;return(this._self._c||t)(this.spinnerView,{tag:"component"})}),[],!1,(function(t){var e=i(5);e.__inject__&&e.__inject__(t)}),"46b20d22",null).exports;function m(t){"production"!==d.mode&&console.warn("[Vue-infinite-loading warn]: ".concat(t))}function g(t){console.error("[Vue-infinite-loading error]: ".concat(t))}var b={timers:[],caches:[],throttle:function(t){var e=this;-1===this.caches.indexOf(t)&&(this.caches.push(t),this.timers.push(setTimeout((function(){t(),e.caches.splice(e.caches.indexOf(t),1),e.timers.shift()}),d.system.throttleLimit)))},reset:function(){this.timers.forEach((function(t){clearTimeout(t)})),this.timers.length=0,this.caches=[]}},v={isChecked:!1,timer:null,times:0,track:function(){var t=this;this.times+=1,clearTimeout(this.timer),this.timer=setTimeout((function(){t.isChecked=!0}),d.system.loopCheckTimeout),this.times>d.system.loopCheckMaxCalls&&(g(o.INFINITE_LOOP),this.isChecked=!0)}},w={key:"_infiniteScrollHeight",getScrollElm:function(t){return t===window?document.documentElement:t},save:function(t){var e=this.getScrollElm(t);e[this.key]=e.scrollHeight},restore:function(t){var e=this.getScrollElm(t);"number"==typeof e[this.key]&&(e.scrollTop=e.scrollHeight-e[this.key]+e.scrollTop),this.remove(e)},remove:function(t){void 0!==t[this.key]&&delete t[this.key]}};function y(t){return t.replace(/[A-Z]/g,(function(t){return"-".concat(t.toLowerCase())}))}function x(t){return t.offsetWidth+t.offsetHeight>0}var k=f({name:"InfiniteLoading",data:function(){return{scrollParent:null,scrollHandler:null,isFirstLoad:!0,status:s.READY,slots:d.slots}},components:{Spinner:h},computed:{isShowSpinner:function(){return this.status===s.LOADING},isShowError:function(){return this.status===s.ERROR},isShowNoResults:function(){return this.status===s.COMPLETE&&this.isFirstLoad},isShowNoMore:function(){return this.status===s.COMPLETE&&!this.isFirstLoad},slotStyles:function(){var t=this,e={};return Object.keys(d.slots).forEach((function(i){var n=y(i);(!t.$slots[n]&&!d.slots[i].render||t.$slots[n]&&!t.$slots[n][0].tag)&&(e[i]=l)})),e}},props:{distance:{type:Number,default:d.props.distance},spinner:String,direction:{type:String,default:"bottom"},forceUseInfiniteWrapper:{type:[Boolean,String],default:d.props.forceUseInfiniteWrapper},identifier:{default:+new Date},onInfinite:Function},watch:{identifier:function(){this.stateChanger.reset()}},mounted:function(){var t=this;this.$watch("forceUseInfiniteWrapper",(function(){t.scrollParent=t.getScrollParent()}),{immediate:!0}),this.scrollHandler=function(e){t.status===s.READY&&(e&&e.constructor===Event&&x(t.$el)?b.throttle(t.attemptLoad):t.attemptLoad())},setTimeout((function(){t.scrollHandler(),t.scrollParent.addEventListener("scroll",t.scrollHandler,a)}),1),this.$on("$InfiniteLoading:loaded",(function(e){t.isFirstLoad=!1,"top"===t.direction&&t.$nextTick((function(){w.restore(t.scrollParent)})),t.status===s.LOADING&&t.$nextTick(t.attemptLoad.bind(null,!0)),e&&e.target===t||m(r.STATE_CHANGER)})),this.$on("$InfiniteLoading:complete",(function(e){t.status=s.COMPLETE,t.$nextTick((function(){t.$forceUpdate()})),t.scrollParent.removeEventListener("scroll",t.scrollHandler,a),e&&e.target===t||m(r.STATE_CHANGER)})),this.$on("$InfiniteLoading:reset",(function(e){t.status=s.READY,t.isFirstLoad=!0,w.remove(t.scrollParent),t.scrollParent.addEventListener("scroll",t.scrollHandler,a),setTimeout((function(){b.reset(),t.scrollHandler()}),1),e&&e.target===t||m(r.IDENTIFIER)})),this.stateChanger={loaded:function(){t.$emit("$InfiniteLoading:loaded",{target:t})},complete:function(){t.$emit("$InfiniteLoading:complete",{target:t})},reset:function(){t.$emit("$InfiniteLoading:reset",{target:t})},error:function(){t.status=s.ERROR,b.reset()}},this.onInfinite&&m(r.INFINITE_EVENT)},deactivated:function(){this.status===s.LOADING&&(this.status=s.READY),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a)},activated:function(){this.scrollParent.addEventListener("scroll",this.scrollHandler,a)},methods:{attemptLoad:function(t){var e=this;this.status!==s.COMPLETE&&x(this.$el)&&this.getCurrentDistance()<=this.distance?(this.status=s.LOADING,"top"===this.direction&&this.$nextTick((function(){w.save(e.scrollParent)})),"function"==typeof this.onInfinite?this.onInfinite.call(null,this.stateChanger):this.$emit("infinite",this.stateChanger),!t||this.forceUseInfiniteWrapper||v.isChecked||v.track()):this.status===s.LOADING&&(this.status=s.READY)},getCurrentDistance:function(){var t;return t="top"===this.direction?"number"==typeof this.scrollParent.scrollTop?this.scrollParent.scrollTop:this.scrollParent.pageYOffset:this.$el.getBoundingClientRect().top-(this.scrollParent===window?window.innerHeight:this.scrollParent.getBoundingClientRect().bottom),t},getScrollParent:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$el;return"string"==typeof this.forceUseInfiniteWrapper&&(t=document.querySelector(this.forceUseInfiniteWrapper)),t||("BODY"===e.tagName?t=window:(!this.forceUseInfiniteWrapper&&["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>-1||e.hasAttribute("infinite-wrapper")||e.hasAttribute("data-infinite-wrapper"))&&(t=e)),t||this.getScrollParent(e.parentNode)}},destroyed:function(){!this.status!==s.COMPLETE&&(b.reset(),w.remove(this.scrollParent),this.scrollParent.removeEventListener("scroll",this.scrollHandler,a))}},(function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"infinite-loading-container"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowSpinner,expression:"isShowSpinner"}],staticClass:"infinite-status-prompt",style:t.slotStyles.spinner},[t._t("spinner",[i("spinner",{attrs:{spinner:t.spinner}})])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoResults,expression:"isShowNoResults"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noResults},[t._t("no-results",[t.slots.noResults.render?i(t.slots.noResults,{tag:"component"}):[t._v(t._s(t.slots.noResults))]])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowNoMore,expression:"isShowNoMore"}],staticClass:"infinite-status-prompt",style:t.slotStyles.noMore},[t._t("no-more",[t.slots.noMore.render?i(t.slots.noMore,{tag:"component"}):[t._v(t._s(t.slots.noMore))]])],2),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowError,expression:"isShowError"}],staticClass:"infinite-status-prompt",style:t.slotStyles.error},[t._t("error",[t.slots.error.render?i(t.slots.error,{tag:"component",attrs:{trigger:t.attemptLoad}}):[t._v("\n "+t._s(t.slots.error)+"\n "),i("br"),t._v(" "),i("button",{staticClass:"btn-try-infinite",domProps:{textContent:t._s(t.slots.errorBtnText)},on:{click:t.attemptLoad}})]],{trigger:t.attemptLoad})],2)])}),[],!1,(function(t){var e=i(7);e.__inject__&&e.__inject__(t)}),"644ea9c9",null).exports;function _(t){d.mode=t.config.productionTip?"development":"production"}Object.defineProperty(k,"install",{configurable:!1,enumerable:!1,value:function(t,e){Object.assign(d.props,e&&e.props),Object.assign(d.slots,e&&e.slots),Object.assign(d.system,e&&e.system),t.component("infinite-loading",k),_(t)}}),"undefined"!=typeof window&&window.Vue&&(window.Vue.component("infinite-loading",k),_(window.Vue)),e.default=k}])}))},e65d:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.renderHeadMD&&t.headmd.display?i("headmd",{staticStyle:{margin:"1rem 0"},attrs:{option:t.headmd}}):t._e(),i("bread-crumb",{ref:"breadcrumb"}),i("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"golist"},["list"===t.mode?i("list-view",{attrs:{data:t.files,icons:t.getIcon,action:t.action,copy:t.copy}}):t._e(),"list"!==t.mode?i("grid-view",{staticClass:"g2-content",attrs:{data:t.files,getIcon:t.getIcon,action:t.action,thum:t.thum}}):t._e(),i("infinite-loading",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],ref:"infinite",attrs:{spinner:"bubbles"},on:{infinite:t.infiniteHandler}},[i("div",{attrs:{slot:"no-more"},slot:"no-more"}),i("div",{attrs:{slot:"no-results"},slot:"no-results"})]),i("div",{directives:[{name:"show",rawName:"v-show",value:0===t.files.length,expression:"files.length === 0"}],staticClass:"has-text-centered no-content"})],1),i("div",{staticClass:"is-divider",attrs:{"data-content":t.$t("list.total")+" "+t.files.length+" "+t.$t("list.item")}}),t.renderReadMeMD&&t.readmemd.display?i("readmemd",{attrs:{option:t.readmemd}}):t._e(),t.viewer&&t.images&&t.images.length>0?i("viewer",{ref:"viewer",staticClass:"is-hidden",attrs:{images:t.images,options:{toolbar:!0,url:"data-source"}},on:{inited:t.inited}},t._l(t.images,(function(e){return i("img",{key:e.path,staticClass:"image",attrs:{src:t.thum(e.thumbnailLink),"data-source":e.path,alt:e.name}})})),0):t._e()],1)},a=[],r=(i("99af"),i("4de4"),i("c740"),i("4160"),i("c975"),i("d81d"),i("b0c0"),i("ac1f"),i("5319"),i("159b"),i("2909")),o=i("5530"),s=i("45d8"),l=i("5880"),d=i("2db9"),c=i("25e0"),u=i("2a7a"),p=i("3bcf"),f=i("e166"),h=i.n(f),m={name:"GoList",components:{BreadCrumb:d["default"],ListView:c["default"],GridView:u["default"],Headmd:p["default"],Readmemd:p["default"],InfiniteLoading:h.a},data:function(){return{infiniteId:+new Date,loading:!0,page:{page_token:null,page_index:0},files:[],viewer:!1,icon:{"application/vnd.google-apps.folder":"icon-morenwenjianjia","video/mp4":"icon-mp","video/x-matroska":"icon-mkv","video/x-msvideo":"icon-avi","video/webm":"icon-webm","text/plain":"icon-txt","text/markdown":"icon-markdown","text/x-ssa":"icon-ASS","text/html":"icon-html","text/x-python-script":"icon-python","text/x-java":"icon-java1","text/x-sh":"icon-SH","application/x-subrip":"icon-srt","application/zip":"icon-zip","application/x-zip-compressed":"icon-zip","application/rar":"icon-rar","application/pdf":"icon-pdf","application/json":"icon-JSON1","application/x-yaml":"icon-YML","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"icon-word","image/bmp":"icon-img","image/jpeg":"icon-img","image/png":"icon-img","image/gif":"icon-img"},headmd:{display:!1,file:{},path:""},readmemd:{display:!1,file:{},path:""}}},computed:Object(o["a"])({},Object(l["mapState"])("acrou/view",["mode"]),{images:function(){return this.files.filter((function(t){return-1!=t.mimeType.indexOf("image")}))},renderHeadMD:function(){return window.themeOptions.render.head_md||!1},renderReadMeMD:function(){return window.themeOptions.render.readme_md||!1}}),created:function(){this.render()},methods:{infiniteHandler:function(t){this.page.page_token&&(this.page.page_index++,this.render(t))},render:function(t){var e=this;this.headmd={display:!1,file:{},path:""},this.readmemd={display:!1,file:{},path:""};var i=this.$route.path,n=localStorage.getItem("password"+i),a=this.$route.query.q,s=Object(o["a"])({q:a?decodeURIComponent(a):"",password:n||null},this.page);this.axios.post(i,s).then((function(n){var a=n.data;if(a){if(a.error&&"401"==a.error.code)return void e.checkPassword(i);var o,s=a.data;if(!s)return;if(e.page={page_token:a.nextPageToken,page_index:a.curPageIndex},t)(o=e.files).push.apply(o,Object(r["a"])(e.buildFiles(s.files)));else e.files=e.buildFiles(s.files);s.files&&e.renderMd(s.files,i)}a.nextPageToken?e.$refs.infinite.stateChanger.loaded():e.$refs.infinite.stateChanger.complete(),e.loading=!1})).catch((function(t){e.loading=!1,console.log(t)}))},buildFiles:function(t){var e=this.$route.path;return t?t.map((function(t){var i=e+Object(s["c"])(t.name,t),n="application/vnd.google-apps.folder"===t.mimeType,a=n?"-":Object(s["f"])(t.size);return Object(o["a"])({path:i},t,{modifiedTime:Object(s["e"])(t.modifiedTime),size:a,isFolder:n})})).sort((function(t,e){return t.isFolder&&e.isFolder?0:t.isFolder?-1:1})):[]},checkPassword:function(t){var e=prompt(this.$t("list.auth"),"");localStorage.setItem("password"+t,e),null!=e&&""!=e?this.render(t):this.$router.go(-1)},copy:function(t){var e=this,i=window.location.origin;t=i+encodeURI(t),this.$copyText(t).then((function(){e.$notify({title:e.$t("notify.title"),message:e.$t("copy.success"),type:"success"})})).catch((function(){e.$notify.error({title:e.$t("notify.title"),message:e.$t("copy.error")})}))},thum:function(t){return t?"/".concat(this.$route.params.id,":view?url=").concat(t):""},inited:function(t){this.$viewer=t},action:function(t,e){var i=this;if(-1!=t.mimeType.indexOf("image"))return this.viewer=!0,void this.$nextTick((function(){var e=i.images.findIndex((function(e){return e.path===t.path}));i.$viewer.view(e)}));var n=this.$route.params.cmd;n&&"search"===n?this.goSearchResult(t,e):this.target(t,e)},target:function(t,e){var i=t.path;"_blank"!==e?"copy"!==e?"down"!==e&&(Object(s["a"])(i)||t.isFolder)?"view"!==e?"application/vnd.google-apps.folder"!==t.mimeType||this.$router.push({path:i}):this.$router.push({path:Object(s["b"])(i)}):location.href=i.replace(/^\/(\d+:)\//,"/$1down/"):this.copy(i):window.open(i)},renderMd:function(t,e){var i=this,n=this.$route.params.cmd;n||t.forEach((function(t){"HEAD.md"===t.name&&(i.headmd={display:!0,file:t,path:e+t.name}),"README.md"===t.name&&(i.readmemd={display:!0,file:t,path:e+t.name})}))},goSearchResult:function(t,e){var i=this;this.loading=!0;var n=this.$route.params.id;this.axios.post("/".concat(n,":id2path"),{id:t.id}).then((function(a){i.loading=!1;var r=a.data;r&&(t.path="/".concat(n,":").concat(r),i.target(t,e))})).catch((function(t){i.loading=!1,console.log(t)}))},getIcon:function(t){return"#"+(this.icon[t]?this.icon[t]:"icon-weizhi")}}},g=m,b=i("2877"),v=Object(b["a"])(g,n,a,!1,null,null,null);e["default"]=v.exports}}]);