(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{459:function(e,n,a){"use strict";a.r(n);var t=a(33),r=a(461),s=a.n(r),i=a(133),u=a(136),o=a(463),c=a(479);function h(e,n,a,t,r,s,i){try{var u=e[s](i),o=u.value}catch(e){return void a(e)}u.done?n(o):Promise.resolve(o).then(t,r)}var d={name:"Shares",components:{Avatar:a.n(c).a},data:function(){return{uniqueShareUIDs:[],uidDisplaynameMap:{},isLoading:!0}},computed:{isEmptyList:function(){return!1===this.isLoading&&0===this.uniqueShareUIDs.length}},mounted:function(){var e,n=this;return(e=regeneratorRuntime.mark((function e(){var a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Object(i.generateOcsUrl)("/apps/files_sharing/api/v1/shares?format=json&shared_with_me=false"),r=Object(u.getCurrentUser)().uid,e.prev=2,e.next=5,s.a.get(a);case 5:e.sent.data.ocs.data.forEach((function(e){if(e.share_with!==r)switch(e.share_type){case 0:-1===n.uniqueShareUIDs.indexOf(e.share_with)&&(n.uniqueShareUIDs.push(e.share_with),t.default.set(n.uidDisplaynameMap,e.share_with,e.share_with_displayname))}})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(2),console.error(e.t0),Object(o.showError)("Error loading information about shares.");case 13:return e.prev=13,n.isLoading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,9,13,16]])})),function(){var n=this,a=arguments;return new Promise((function(t,r){var s=e.apply(n,a);function i(e){h(s,t,r,i,u,"next",e)}function u(e){h(s,t,r,i,u,"throw",e)}i(void 0)}))})()}},p=a(462),l=Object(p.a)(d,(function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("div",{staticClass:"who-has-access"},[a("span",{staticClass:"icon icon-loading",class:{hidden:!e.isLoading}}),e._v(" "),a("span",{class:{hidden:!e.isEmptyList}},[e._v("\n\t\t"+e._s(e.$t("privacy","You don't have any shares with individual users."))+"\n\t")]),e._v(" "),e._l(e.uniqueShareUIDs,(function(n){return a("Avatar",{key:n,attrs:{user:n,"display-name":e.uidDisplaynameMap[n],size:64}})}))],2)}),[],!1,null,null,null);n.default=l.exports}}]);
//# sourceMappingURL=9-cb3756be5d83e6808ba0.js.map