2020-05-14 12:38:03 +03:00
! function ( e ) { var t = { } ; function a ( r ) { if ( t [ r ] ) return t [ r ] . exports ; var n = t [ r ] = { i : r , l : ! 1 , exports : { } } ; return e [ 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" != typeof Symbol && 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 ) return e ; if ( 4 & t && "object" == typeof e && e && e . _ _esModule ) return e ; var r = Object . create ( null ) ; if ( a . r ( r ) , Object . defineProperty ( r , "default" , { enumerable : ! 0 , value : e } ) , 2 & t && "string" != typeof e ) for ( var n in e ) a . d ( r , n , function ( t ) { return e [ t ] } . bind ( null , n ) ) ; return r } , a . n = function ( e ) { var t = e && e . _ _esModule ? function ( ) { return e . default } : function ( ) { return e } ; return a . d ( t , "a" , t ) , t } , a . o = function ( e , t ) { return Object . prototype . hasOwnProperty . call ( e , t ) } , a . p = "/js/" , a ( a . s = 383 ) } ( { 201 : function ( e , a , r ) { r . p = OC . linkTo ( "files_sharing" , "js/dist/" ) , r . nc = btoa ( OC . requestToken ) , window . OCP . Collaboration . registerType ( "file" , { action : function ( ) { return new Promise ( ( 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 ( new Error ( "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" } ) } , 320 : function ( e , t ) {
2019-02-21 19:30:12 +03:00
/ * *
* @ copyright 2016 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ author 2016 Christoph Wurst < christoph @ winzerhof - wurst . at >
*
* @ license GNU AGPL version 3 or any later version
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation , either version 3 of the
* License , or ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU Affero General Public License for more details .
*
* You should have received a copy of the GNU Affero General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
*
* /
2020-06-04 11:52:03 +03:00
! function ( ) { "use strict" ; var e = OC . Backbone . View . extend ( { tagName : "span" , events : { click : "_onClick" } , _dirInfo : void 0 , 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 { var t = 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 ( ) } return this } , _onClick : function ( e ) { e . preventDefault ( ) ; var t = new OCA . Files . FileInfoModel ( this . _dirInfo ) , a = this ; t . on ( "change" , ( function ( ) { a . render ( { dirInfo : a . _dirInfo } ) } ) ) ; var r = t . attributes . path + "/" + t . attributes . name ; OCA . Files . Sidebar . open ( r ) , OCA . Files . Sidebar . setActiveTab ( "sharing" ) } } ) ; OCA . Sharing . ShareBreadCrumbView = e } ( ) } , 321 : function ( e , t , a ) { var r = a ( 322 ) ; "string" == typeof r && ( r = [ [ e . i , r , "" ] ] ) , r . locals && ( e . exports = r . locals ) ; ( 0 , a ( 61 ) . default ) ( "57e7eec1" , r , ! 0 , { } ) } , 322 : 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 } , 383 : function ( e , a , r ) { "use strict" ; r . r ( a ) ; var n = r ( 64 ) , i = r . n ( n ) ; _ . 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 : new RegExp ( "^(([^@]*)@(([^@^/^\\s]*)@)?)([^[\\s/]*)([/](.*))?$" ) , attach : function ( e ) { if ( OC . Share && "trashbin" !== e . id && "files.public" !== e . id ) { var a = e . fileActions , r = e . _createRow ; e . _createRow = function ( e ) { var t = r . apply ( this , arguments ) , n = OCA . Sharing . Util . getSharePermissions ( e ) ; return 0 === e . permissions && ( delete a . actions . all . Comment , delete a . actions . all . Details , delete a . 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 } ; var n = e . elementToFile ; e . elementToFile = function ( e ) { var t = n . apply ( this , arguments ) ; if ( t . sharePermissions = e . attr ( "data-share-permissions" ) || void 0 , t . shareOwner = e . attr ( "data-share-owner" ) || void 0 , t . shareOwnerId = e . attr ( "data-share-owner-id" ) || void 0 , e . attr ( "data-share-types" ) && ( t . shareTypes = e . attr ( "data-share-types" ) . split ( "," ) ) , e . attr ( "data-expiration" ) ) { var a = parseInt ( e . attr ( "data-expiration" ) ) ; t . shares = [ ] , t . shares . push ( { expiration : a } ) } return t } ; var i = e . _getWebdavProperties ; e . _getWebdavProperties = function ( ) { var e = i . apply ( this , arguments ) ; return e . 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 ) { var t = { } , 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 ] ) ; var n = a [ OC . Files . Client . PROPERTY _SHARE _TYPES ] ; return n && ( t . shareTypes = _ . chain ( n ) . filter ( ( function ( e ) { return e . namespaceURI === OC . Files . Client . NS _OWNCLOUD && "share-type" === e . nodeName . split ( ":" ) [ 1 ] } ) ) . map ( ( function ( e ) { return parseInt ( e . textContent || e . text , 10 ) } ) ) . value ( ) ) , t } ) ) , e . $el . on ( "fileActionsReady" , ( function ( e ) { var t = e . $files ; _ . each ( t , ( function ( e ) { var t = $ ( e ) , a = t . attr ( "data-share-types" ) || "" , r = t . attr ( "data-share-owner" ) ; if ( a || r ) { var n = ! 1 , i = ! 1 ; _ . each ( a . split ( "," ) || [ ] , ( function ( e ) { ( e = parseInt ( e , 10 ) ) === OC . Share . SHARE _TYPE _LINK || e === OC . Share . SHARE _TYPE _EMAIL ? n = ! 0 : ( e === OC . Share . SHARE _TYPE _
2020-05-14 12:38:03 +03:00
/ * !
* escape - html
* Copyright ( c ) 2012 - 2013 TJ Holowaychuk
* Copyright ( c ) 2015 Andreas Lubbe
* Copyright ( c ) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
* /var r=/ [ "'&<>]/;e.exports=function(e){var t,a=" "+e,n=r.exec(a);if(!n)return a;var i=" ",s=0,o=0;for(s=n.index;s<a.length;s++){switch(a.charCodeAt(s)){case 34:t=" & quot ; ";break;case 38:t=" & amp ; ";break;case 39:t=" & # 39 ; ";break;case 60:t=" & lt ; ";break;case 62:t=" & gt ; " ; break ; default : continue } o !== s && ( i += a . substring ( o , s ) ) , o = s + 1 , i += t } return o !== s ? i + a . substring ( o , s ) : i } } } ) ;
2019-02-21 19:30:12 +03:00
//# sourceMappingURL=additionalScripts.js.map