nextcloud/apps/files_sharing/js/dist/additionalScripts.js

24 lines
21 KiB
JavaScript
Raw Normal View History

!function(e){function t(t){for(var i,a,n=t[0],o=t[1],s=0,h=[];s<n.length;s++)a=n[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&h.push(r[a][0]),r[a]=0;for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i]);for(l&&l(t);h.length;)h.shift()()}var i={},r={0:0,1:0};function a(t){if(i[t])return i[t].exports;var r=i[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,a),r.l=!0,r.exports}a.e=function(e){var t=[],i=r[e];if(0!==i)if(i)t.push(i[2]);else{var n=new Promise(function(t,a){i=r[e]=[t,a]});t.push(i[2]=n);var o,s=document.createElement("script");s.charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.src=function(e){return a.p+"files_sharing."+e+".js?v="+{3:"ed357ba9d4e55de058d9",4:"c1ca7d7f891682cc7e47"}[e]}(e);var l=new Error;o=function(t){s.onerror=s.onload=null,clearTimeout(h);var i=r[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+a+": "+n+")",l.name="ChunkLoadError",l.type=a,l.request=n,i[1](l)}r[e]=void 0}};var h=setTimeout(function(){o({type:"timeout",target:s})},12e4);s.onerror=s.onload=o,document.head.appendChild(s)}return Promise.all(t)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},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 i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)a.d(i,r,function(t){return e[t]}.bind(null,r));return i},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.oe=function(e){throw console.error(e),e};var n=window.webpackJsonpFilesSharing=window.webpackJsonpFilesSharing||[],o=n.push.bind(n);n.push=t,n=n.slice();for(var s=0;s<n.length;s++)t(n[s]);var l=o;a(a.s=3)}([function(e,i,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,i){OC.dialogs.filepicker(t("files_sharing","Link to a file"),function(t){OC.Files.getClient().getFileInfo(t).then(function(t,i){e(i.id)}).fail(function(){i()})},!1,null,!1,OC.dialogs.FILEPICKER_TYPE_CHOOSE,"",{allowDirectoryChooser:!0})})},typeString:t("files_sharing","Link to a file"),typeIconClass:"icon-files-dark"})},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i=function(e,t){var i=e[1]||"",r=e[3];if(!r)return i;if(t&&"function"==typeof btoa){var a=(o=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),n=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[i].concat(n).concat([a]).join("\n")}var o,s,l;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(i,"}"):i}).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var n=this[a][0];null!=n&&(r[n]=!0)}for(var o=0;o<e.length;o++){var s=e[o];null!=s[0]&&r[s[0]]||(i&&!s[2]?s[2]=i:i&&(s[2]="(".concat(s[2],") and (").concat(i,")")),t.push(s))}},t}},function(e,t,i){"use strict";var r,a={},n=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}();function s(e,t){for(var i=[],r={},a=0;a<e.length;a++){var n=e[a],o=t.base?n[0]+t.base:n[0],s={css:n[1],media:n[2],sourceMap:n[3]};r[o]?r[o].parts.push(s):i.push(r[o]={id:o,parts:[s]})}return i}function l(e,
/**
* @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/>.
*
*/
!function(){"use strict";var e=OC.Backbone.View.extend({tagName:"span",events:{click:"_onClick"},_dirInfo:void 0,_shareTab:void 0,initialize:function(e){this._shareTab=e.shareTab},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),i=this;t.on("change",function(){i.render({dirInfo:i._dirInfo})}),this._shareTab.on("sharesChanged",function(e){for(var t=[],r=e.getSharesWithCurrentItem(),a=0;a<r.length;a++)-1===t.indexOf(r[a].share_type)&&t.push(r[a].share_type);e.hasLinkShares()&&t.push(OC.Share.SHARE_TYPE_LINK),i._dirInfo.shareTypes=t,i.render({dirInfo:i._dirInfo})}),OCA.Files.App.fileList.showDetailsView(t,"shareTabView")}});OCA.Sharing.ShareBreadCrumbView=e}()},function(e,t,i){var r=i(8);"string"==typeof r&&(r=[[e.i,r,""]]);var a={insert:"head",singleton:!1};i(2)(r,a);r.locals&&(e.exports=r.locals)},function(e,t,i){(e.exports=i(1)(!1)).push([e.i,".app-files .shareTabView{min-height:100px}.share-autocomplete-item{display:flex}.share-autocomplete-item.merged{margin-left:32px}.share-autocomplete-item .autocomplete-item-text{margin-left:10px;margin-right:10px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;line-height:32px;vertical-align:middle;flex-grow:1}.share-autocomplete-item .autocomplete-item-text .ui-state-highlight{border:none;margin:0}.share-autocomplete-item.with-description .autocomplete-item-text{line-height:100%}.share-autocomplete-item .autocomplete-item-details{display:block;line-height:130%;font-size:90%;opacity:0.7}.share-autocomplete-item .icon{opacity:.7;margin-right:7px}.share-autocomplete-item .icon.search-globally{width:32px;height:32px;margin-right:0}.shareTabView .oneline{white-space:nowrap;position:relative}.shareTabView .shareWithLoading{padding-left:10px;right:35px;top:3px}.shareTabView .shareWithConfirm{position:absolute;right:2px;top:6px;padding:14px;opacity:0.5}.shareTabView .shareWithField:focus ~ .shareWithConfirm{opacity:1}.shareTabView .linkMore{position:absolute;right:-7px;top:-4px;padding:14px}.shareTabView .popovermenu .linkPassMenu input.error{border-color:var(--color-error) !important}.shareTabView .popovermenu .linkPassMenu input.error[type=\"submit\"]{border-left:none}.shareTabView .popovermenu .linkPassMenu .share-pass-submit{width:auto !important}.shareTabView .popovermenu .linkPassMenu .icon-loading-small{background-color:var(--color-main-background);position:absolute;right:8px;margin:3px;padding:10px;width:32px;height:32px;z-index:10}.shareTabView .popovermenu .datepicker{margin-left:35px}.shareTabView .popovermenu .share-add input.share-note-delete{border:none;background-color:transparent;width:44px !important;padding:0;flex:0 0 44px;margin-left:auto}.shareTabView .popovermenu .share-add input.share-note-delete.hidden{display:none}.shareTabView .popovermenu .share-note-form span.icon-note{position:relative}.shareTabView .popovermenu .share-note-form textarea.share-note{margin:0;width:200px;min-height:70px;resize:none}.shareTabView .popovermenu .share-note-form textarea.share-note+input.share-note-submit{position:absolute;width:44px !important;height:44px;bottom:0px;right:10px;margin:0;background-color:transparent;border:none;opacity:.7}.shareTabView .popovermenu .share-note-form textarea.share-note+input.share-note-submit:hover,.shareTabView .popovermenu .share-note-form textarea.share-note+input.share-note-submit:focus,.shareTabView .popovermenu .share-note-form textarea.share-note+input.share-note-submit:active{opacity:1}.shareTabView .popovermenu .share-note-form.share-note
//# sourceMappingURL=additionalScripts.js.map