(()=>{"use strict";vare,i,s,a={79491:(e,i,s)=>{vara=s(20144),r=s(31352),n=s(1794),o=s(79753),h=s(75925),l=s.n(h),c=s(4820),d=s(79954),p=s(42515);classu{constructor(){this._capabilities=(0,p.getCapabilities)()}getdefaultPermissions(){vare;returnnull===(e=this._capabilities.files_sharing)||void0===e?void0:e.default_permissions}getisPublicUploadEnabled(){vare;returnnull===(e=this._capabilities.files_sharing)||void0===e?void0:e.public.upload}getisShareWithLinkAllowed(){returndocument.getElementById("allowShareWithLink")&&"yes"===document.getElementById("allowShareWithLink").value}getfederatedShareDocLink(){returnOC.appConfig.core.federatedCloudShareDoc}getdefaultExpirationDate(){returnthis.isDefaultExpireDateEnabled?newDate((newDate).setDate((newDate).getDate()+this.defaultExpireDate)):null}getdefaultInternalExpirationDate(){returnthis.isDefaultInternalExpireDateEnabled?newDate((newDate).setDate((newDate).getDate()+this.defaultInternalExpireDate)):null}getdefaultRemoteExpirationDateString(){returnthis.isDefaultRemoteExpireDateEnabled?newDate((newDate).setDate((newDate).getDate()+this.defaultRemoteExpireDate)):null}getenforcePasswordForPublicLink(){return!0===OC.appConfig.core.enforcePasswordForPublicLink}getenableLinkPasswordByDefault(){return!0===OC.appConfig.core.enableLinkPasswordByDefault}getisDefaultExpireDateEnforced(){return!0===OC.appConfig.core.defaultExpireDateEnforced}getisDefaultExpireDateEnabled(){return!0===OC.appConfig.core.defaultExpireDateEnabled}getisDefaultInternalExpireDateEnforced(){return!0===OC.appConfig.core.defaultInternalExpireDateEnforced}getisDefaultRemoteExpireDateEnforced(){return!0===OC.appConfig.core.defaultRemoteExpireDateEnforced}getisDefaultInternalExpireDateEnabled(){return!0===OC.appConfig.core.defaultInternalExpireDateEnabled}getisDefaultRemoteExpireDateEnabled(){return!0===OC.appConfig.core.defaultRemoteExpireDateEnabled}getisRemoteShareAllowed(){return!0===OC.appConfig.core.remoteShareAllowed}getisMailShareAllowed(){vare,t,i,s,a;returnvoid0!==(null===(e=this._capabilities)||void0===e||null===(t=e.files_sharing)||void0===t?void0:t.sharebymail)&&!0===(null===(i=this._capabilities)||void0===i||null===(s=i.files_sharing)||void0===s||null===(a=s.public)||void0===a?void0:a.enabled)}getdefaultExpireDate(){returnOC.appConfig.core.defaultExpireDate}getdefaultInternalExpireDate(){returnOC.appConfig.core.defaultInternalExpireDate}getdefaultRemoteExpireDate(){returnOC.appConfig.core.defaultRemoteExpireDate}getisResharingAllowed(){return!0===OC.appConfig.core.resharingAllowed}getisPasswordForMailSharesRequired(){returnvoid0!==this._capabilities.files_sharing.sharebymail&&this._capabilities.files_sharing.sharebymail.password.enforced}getshouldAlwaysShowUnique(){vare,t;return!0===(null===(e=this._capabilities.files_sharing)||void0===e||null===(t=e.sharee)||void0===t?void0:t.always_show_unique)}getallowGroupSharing(){return!0===OC.appConfig.core.allowGroupSharing}getmaxAutocompleteResults(){returnparseInt(OC.config["sharing.maxAutocompleteResults"],10)||25}getminSearchStringLength(){returnparseInt(OC.config["sharing.minSearchStringLength"],10)||0}getpasswordPolicy(){returnthis._capabilities.password_policy?this._capabilities.password_policy:{}}}varA=s(41922),g=s(25108);classf{constructor(e){vart,i,s,a;if(i=this,a=void0,(s=function(e){vart=function(e,t){if("object"!=typeofe||null===e)returne;vari=e[Symbol.toPrimitive];if(void0!==i){vars=i.call(e,"string");if("object"!=typeofs)returns;thrownewTypeError("@@toPrimitive must return a primitive value.")}returnString(e)}(e);return"symbol"==typeoft?t:String(t)}(s="_share"))ini?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,e.ocs&&e.ocs.data&&e.ocs.data[0]&&(e=e.ocs.data[0]),e.hide_download=!!e.hide_download,e.mail_send=!!e.mail_send,e.attributes&&"string"==typeofe.attributes)try{e.attributes=JSON.parse(e.attributes)}catch(t){g.warn("Could not parse share attributes returned by server",e.attributes)}e.attributes=null!==(t=e.attrib