!function(e){vart={};functiona(r){if(t[r])returnt[r].exports;varn=t[r]={i:r,l:!1,exports:{}};returne[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(varnine)a.d(r,n,function(t){returne[t]}.bind(null,n));returnr},a.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returna.d(t,"a",t),t},a.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a(a.s=514)}({250:function(e,a,r){r.p=OC.linkTo("files_sharing","js/dist/"),r.nc=btoa(OC.requestToken),window.OCP.Collaboration.registerType("file",{action:function(){returnnewPromise((function(e,a){OC.dialogs.filepicker(t("files_sharing","Link to a file"),(function(t){OC.Files.getClient().getFileInfo(t).then((function(t,a){e(a.id)})).fail((function(){a(newError("Cannot get fileinfo"))}))}),!1,null,!1,OC.dialogs.FILEPICKER_TYPE_CHOOSE,"",{allowDirectoryChooser:!0})}))},typeString:t("files_sharing","Link to a file"),typeIconClass:"icon-files-dark"})},50:function(e,t,a){"use strict";e.exports=function(e){vart=[];returnt.toString=function(){returnthis.map((function(t){vara=function(e,t){vara=e[1]||"",r=e[3];if(!r)returna;if(t&&"function"==typeofbtoa){varn=(s=r,o=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(l," */")),i=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[a].concat(i).concat([n]).join("\n")}vars,o,l;return[a].join("\n")}(t,e);returnt[2]?"@media ".concat(t[2]," {").concat(a,"}"):a})).join("")},t.i=function(e,a){"string"==typeofe&&(e=[[null,e,""]]);for(varr=0;r<e.length;r++){varn=[].concat(e[r]);a&&(n[2]?n[2]="".concat(a," and ").concat(n[2]):n[2]=a),t.push(n)}},t}},514:function(e,t,a){"use strict";a.r(t);a(515),a(516),a(517),a(250);a.p=OC.linkTo("files_sharing","js/dist/"),a.nc=btoa(OC.requestToken),window.OCA.Sharing=OCA.Sharing},515:function(e,a){_.extend(OC.Files.Client,{PROPERTY_SHARE_TYPES:"{"+OC.Files.Client.NS_OWNCLOUD+"}share-types",PROPERTY_OWNER_ID:"{"+OC.Files.Client.NS_OWNCLOUD+"}owner-id",PROPERTY_OWNER_DISPLAY_NAME:"{"+OC.Files.Client.NS_OWNCLOUD+"}owner-display-name"}),OCA.Sharing||(OCA.Sharing={}),OCA.Sharing.Util={_REMOTE_OWNER_REGEXP:newRegExp("^(([^@]*)@(([^@^/^\\s]*)@)?)([^[\\s/]*)([/](.*))?$"),attach:function(e){if(OC.Share&&"trashbin"!==e.id&&"files.public"!==e.id){vara=e.fileActions,r=e._createRow;e._createRow=function(e){vart=r.apply(this,arguments),n=OCA.Sharing.Util.getSharePermissions(e);return0===e.permissions&&(deletea.actions.all.Comment,deletea.actions.all.Details,deletea.actions.all.Goto),t.attr("data-share-permissions",n),e.shareOwner&&(t.attr("data-share-owner",e.shareOwner),t.attr("data-share-owner-id",e.shareOwnerId),"shared-root"===e.mountType&&t.attr("data-permissions",e.permissions|OC.PERMISSION_UPDATE)),e.recipientData&&!_.isEmpty(e.recipientData)&&t.attr("data-share-recipient-data",JSON.stringify(e.recipientData)),e.shareTypes&&t.attr("data-share-types",e.shareTypes.join(",")),t};varn=e.elementToFile;e.elementToFile=function(e){vart=n.apply(this,arguments);if(t.sharePermissions=e.attr("data-share-permissions")||void0,t.shareOwner=e.attr("data-share-owner")||void0,t.shareOwnerId=e.attr("data-share-owner-id")||void0,e.attr("data-share-types")&&(t.shareTypes=e.attr("data-share-types").split(",")),e.attr("data-expiration")){vara=parseInt(e.attr("data-expiration"));t.shares=[],t.shares.push({expiration:a})}returnt};vari=e._getWebdavProperties;e._getWebdavProperties=function(){vare=i.apply(this,arguments);returne
!function(){"use strict";vare=OC.Backbone.View.extend({tagName:"span",events:{click:"_onClick"},_dirInfo:void0,render:function(e){if(this._dirInfo=e.dirInfo||null,null===this._dirInfo||"/"===this._dirInfo.path&&""===this._dirInfo.name)this.$el.removeClass("shared icon-public icon-shared"),this.$el.hide();else{vart=e.dirInfo&&e.dirInfo.shareTypes&&e.dirInfo.shareTypes.length>0;this.$el.removeClass("shared icon-public icon-shared"),t?(this.$el.addClass("shared"),-1!==e.dirInfo.shareTypes.indexOf(OC.Share.SHARE_TYPE_LINK)?this.$el.addClass("icon-public"):this.$el.addClass("icon-shared")):this.$el.addClass("icon-shared"),this.$el.show(),this.delegateEvents()}returnthis},_onClick:function(e){e.preventDefault();vart=newOCA.Files.FileInfoModel(this._dirInfo),a=this;t.on("change",(function(){a.render({dirInfo:a._dirInfo})}));varr=t.attributes.path+"/"+t.attributes.name;OCA.Files.Sidebar.open(r),OCA.Files.Sidebar.setActiveTab("sharing")}});OCA.Sharing.ShareBreadCrumbView=e}()},517:function(e,t,a){varr=a(518);"string"==typeofr&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);(0,a(67).default)("57e7eec1",r,!0,{})},518:function(e,t,a){(t=a(50)(!1)).push([e.i,"div.crumb span.icon-shared,div.crumb span.icon-public{display:inline-block;cursor:pointer;opacity:0.2;margin-right:6px}div.crumb span.icon-shared.shared,div.crumb span.icon-public.shared{opacity:0.7}\n",""]),e.exports=t},67:function(e,t,a){"use strict";functionr(e,t){for(vara=[],r={},n=0;n<t.length;n++){vari=t[n],s=i[0],o={id:e+":"+n,css:i[1],media:i[2],sourceMap:i[3]};r[s]?r[s].parts.push(o):a.push(r[s]={id:s,parts:[o]})}returna}a.r(t),a.d(t,"default",(function(){returnp}));varn="undefined"!=typeofdocument;if("undefined"!=typeofDEBUG&&DEBUG&&!n)thrownewError("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");vari={},s=n&&(document.head||document.getElementsByTagName("head")[0]),o=null,l=0,d=!1,c=function(){},h=null,u="undefined"!=typeofnavigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());functionp(e,t,a,n){d=a,h=n||{};vars=r(e,t);returnf(s),function(t){for(vara=[],n=0;n<s.length;n++){varo=s[n];(l=i[o.id]).refs--,a.push(l)}t?f(s=r(e,t)):s=[];for(n=0;n<a.length;n++){varl;if(0===(l=a[n]).refs){for(vard=0;d<l.parts.length;d++)l.parts[d]();deletei[l.id]}}}}functionf(e){for(vart=0;t<e.length;t++){vara=e[t],r=i[a.id];if(r){r.refs++;for(varn=0;n<r.parts.length;n++)r.parts[n](a.parts[n]);for(;n<a.parts.length;n++)r.parts.push(C(a.parts[n]));r.parts.length>a.parts.length&&(r.parts.length=a.parts.length)}else{vars=[];for(n=0;n<a.parts.length;n++)s.push(C(a.parts[n]));i[a.id]={id:a.id,refs:1,parts:s}}}}functionm(){vare=document.createElement("style");returne.type="text/css",s.appendChild(e),e}functionC(e){vart,a,r=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(r){if(d)returnc;r.parentNode.removeChild(r)}if(u){varn=l++;r=o||(o=m()),t=S.bind(null,r,n,!1),a=S.bind(null,r,n,!0)}elser=m(),t=_.bind(null,r),a=function(){r.parentNode.removeChild(r)};returnt(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}elsea()}}varO,v=(O=[],function(e,t){returnO[e]=t,O.filter(Boolean).join("\n")});functionS(e,t,a,r){varn=a?"":r.css;if(e.styleSheet)e.styleSheet.cssText=v(t,n);else{vari=document.createTextNode(n),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(i,s[t]):e.appendChild(i)}}function_(e,t){vara=t.css,r=t.media,n=t.sourceMap;if(r&&e.setAttribute("media",r),h.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),n&&(a+="\n/*# sourceURL="+n.sources[0]+" */",a+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),e.styleSheet)e.styleSheet.cssText=a;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(a))}}}});