!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=319)}({200: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"})},319:function(e,t,a){"use strict";a.r(t);a(320),a(321),a(322),a(200);a.p=OC.linkTo("files_sharing","js/dist/"),a.nc=btoa(OC.requestToken),window.OCA.Sharing=OCA.Sharing},320: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]*)@)?)((https://)?[^[\\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.push(OC.Files.Client.PROPERTY_OWNER_ID),e.push(OC.Files.Client.PROPERTY_OWNER_DISPLAY_NAME),e.push(OC.Files.Client.PROPERTY_SHARE_TYPES),e},e.filesClient.addFileInfoParser((function(e){vart={},a=e.propStat[0].properties,r=a[OC.Files.Client.PROPERTY_PERMISSIONS];r&&r.indexOf("S")>=0&&(t.shareOwner=a[OC.Files.Client.PROPERTY_OWNER_DISPLAY_NAME],t.shareOwnerId=a[OC.Files.Client.PROPERTY_OWNER_ID]);varn=a[OC.Files.Client.PROPERTY_SHARE_TYPES];returnn&&(t.shareTypes=_.chain(n).filter((function(e){returne.namespaceURI===OC.Files.Client.NS_OWNCLOUD&&"share-type"===e.nodeName.split(":")[1]})).map((function(e){returnparseInt(e.textContent||e.text,10)})).value()),t})),e.$el.on("fileActionsReady",(function(e){vart=e.$files;_.each(t,(function(e){vart=$(e),a=t.attr("data-share-types