24 lines
22 KiB
JavaScript
24 lines
22 KiB
JavaScript
|
!function(e){var n={};function t(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}t.m=e,t.c=n,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(t.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(i,r,function(n){return e[n]}.bind(null,r));return i},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/js/",t(t.s=2)}([function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=function(e,n){var t=e[1]||"",i=e[3];if(!i)return t;if(n&&"function"==typeof btoa){var r=(o=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[t].concat(a).concat([r]).join("\n")}var o;return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(r=0;r<e.length;r++){var o=e[r];null!=o[0]&&i[o[0]]||(t&&!o[2]?o[2]=t:t&&(o[2]="("+o[2]+") and ("+t+")"),n.push(o))}},n}},function(e,n,t){var i,r,a={},o=(i=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=i.apply(this,arguments)),r}),s=function(e){var n={};return function(e,t){if("function"==typeof e)return e();if(void 0===n[e]){var i=function(e,n){return n?n.querySelector(e):document.querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}n[e]=i}return n[e]}}(),h=null,l=0,p=[],d=t(8);function c(e,n){for(var t=0;t<e.length;t++){var i=e[t],r=a[i.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](i.parts[o]);for(;o<i.parts.length;o++)r.parts.push(v(i.parts[o],n))}else{var s=[];for(o=0;o<i.parts.length;o++)s.push(v(i.parts[o],n));a[i.id]={id:i.id,refs:1,parts:s}}}}function u(e,n){for(var t=[],i={},r=0;r<e.length;r++){var a=e[r],o=n.base?a[0]+n.base:a[0],s={css:a[1],media:a[2],sourceMap:a[3]};i[o]?i[o].parts.push(s):t.push(i[o]={id:o,parts:[s]})}return t}function f(e,n){var t=s(e.insertInto);if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=p[p.length-1];if("top"===e.insertAt)i?i.nextSibling?t.insertBefore(n,i.nextSibling):t.appendChild(n):t.insertBefore(n,t.firstChild),p.push(n);else if("bottom"===e.insertAt)t.appendChild(n);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=s(e.insertAt.before,t);t.insertBefore(n,r)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var n=p.indexOf(e);n>=0&&p.splice(n,1)}function g(e){var n=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var i=function(){0;return t.nc}();i&&(e.attrs.nonce=i)}return b(n,e.attrs),f(e,n),n}function b(e,n){Object.keys(n).forEach(function(t){e.setAttribute(t,n[t])})}function v(e,n){var t,i,r,a;if(n.transform&&e.css){if(!(a="function"==typeof n.transform?n.transform(e.css):n.transform.default(e.css)))return function(){};e.css=a}if(n.singleton){var o=l++;t=h||(h=g(n)),i=O.bind(null,t,o,!1),r=O.bind(null,t,o,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof U
|
||
|
/**
|
||
|
* @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 n=e.dirInfo&&e.dirInfo.shareTypes&&e.dirInfo.shareTypes.length>0;this.$el.removeClass("shared icon-public icon-shared"),n?(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 n=new OCA.Files.FileInfoModel(this._dirInfo),t=this;n.on("change",function(){t.render({dirInfo:t._dirInfo})}),this._shareTab.on("sharesChanged",function(e){for(var n=[],i=e.getSharesWithCurrentItem(),r=0;r<i.length;r++)-1===n.indexOf(i[r].share_type)&&n.push(i[r].share_type);e.hasLinkShares()&&n.push(OC.Share.SHARE_TYPE_LINK),t._dirInfo.shareTypes=n,t.render({dirInfo:t._dirInfo})}),OCA.Files.App.fileList.showDetailsView(n,"shareTabView")}});OCA.Sharing.ShareBreadCrumbView=e}()},function(e,n,t){var i=t(7);"string"==typeof i&&(i=[[e.i,i,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};t(1)(i,r);i.locals&&(e.exports=i.locals)},function(e,n,t){(e.exports=t(0)(!1)).push([e.i,".app-files .shareTabView {\n min-height: 100px; }\n\n.share-autocomplete-item {\n display: flex; }\n .share-autocomplete-item.merged {\n margin-left: 32px; }\n .share-autocomplete-item .autocomplete-item-text {\n margin-left: 10px;\n margin-right: 10px;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n line-height: 32px;\n vertical-align: middle;\n flex-grow: 1; }\n .share-autocomplete-item .autocomplete-item-text .ui-state-highlight {\n border: none;\n margin: 0; }\n .share-autocomplete-item.with-description .autocomplete-item-text {\n line-height: 100%; }\n .share-autocomplete-item .autocomplete-item-details {\n display: block;\n line-height: 130%;\n font-size: 90%;\n opacity: 0.7; }\n .share-autocomplete-item .icon {\n opacity: .7;\n margin-right: 7px; }\n\n.shareTabView .oneline {\n white-space: nowrap;\n position: relative; }\n\n.shareTabView .shareWithLoading {\n padding-left: 10px;\n right: 35px;\n top: 3px; }\n\n.shareTabView .shareWithConfirm {\n position: absolute;\n right: 2px;\n top: 6px;\n padding: 14px;\n opacity: 0.5; }\n\n.shareTabView .shareWithField:focus ~ .shareWithConfirm {\n opacity: 1; }\n\n.shareTabView .linkMore {\n position: absolute;\n right: -7px;\n top: -4px;\n padding: 14px; }\n\n.shareTabView .popovermenu {\n /* Border above last entry '+ Add another share' to separate it from current link settings */ }\n .shareTabView .popovermenu .linkPassMenu .share-pass-submit {\n width: auto !important; }\n .shareTabView .popovermenu .linkPassMenu .icon-loading-small {\n background-color: var(--color-main-background);\n position: absolute;\n right: 8px;\n margin: 3px;\n padding: 10px;\n width: 32px;\n height: 32px;\n z-index: 10; }\n .shareTabView .popovermenu .datepicker {\n margin-left: 35px; }\n .shareTabView .popovermenu .share-add input.share-note-delete {\n border: none;\n background-color: transparent;\n width: 44px !important;\n padding: 0;\n flex: 0 0 44px;\n margin-left: auto; }\n .shareTabView .popovermenu .share-add input.share-note-delete.hidden {\n display: none; }\n .shareTabView .popovermenu .share-note-form span.icon-note {\n position: relative; }\n .shareTabView .popovermenu .share-note-form textarea.share-note {\n margin: 0;\n width: 200px;\n min-height: 70px;\n resize: none; }\n .shareTabView .popovermenu .share-note-form textarea.share-note + input.share-note-submit {\n position: absolute;\n width: 44px !important;\n height: 44px;\n
|
||
|
//# sourceMappingURL=additionalScripts.js.map
|