nextcloud/apps/settings/js/vue-vendors-files-modal.js

166 lines
110 KiB
JavaScript
Raw Normal View History

(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["vendors-files-modal"],{
/***/ "./node_modules/@nextcloud/vue/dist/Components/Modal.js":
/*!**************************************************************!*\
!*** ./node_modules/@nextcloud/vue/dist/Components/Modal.js ***!
\**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
!function(e,t){ true?module.exports=t():undefined}(window,(function(){return function(e){var t={};function s(n){if(t[n])return t[n].exports;var A=t[n]={i:n,l:!1,exports:{}};return e[n].call(A.exports,A,A.exports,s),A.l=!0,A.exports}return s.m=e,s.c=t,s.d=function(e,t,n){s.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},s.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.t=function(e,t){if(1&t&&(e=s(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(s.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var A in e)s.d(n,A,function(t){return e[t]}.bind(null,A));return n},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/dist/",s(s.s=154)}([function(e,t,s){"use strict";function n(e,t,s,n,A,o,a,r){var i,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=s,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(i=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),A&&A.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},c._ssrRegister=i):A&&(i=r?function(){A.call(this,this.$root.$options.shadowRoot)}:A),i)if(c.functional){c._injectStyles=i;var l=c.render;c.render=function(e,t){return i.call(t),l(e,t)}}else{var m=c.beforeCreate;c.beforeCreate=m?[].concat(m,i):[i]}return{exports:e,options:c}}s.d(t,"a",(function(){return n}))},function(e,t,s){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var s=function(e,t){var s=e[1]||"",n=e[3];if(!n)return s;if(t&&"function"==typeof btoa){var A=(a=n,r=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(i," */")),o=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[s].concat(o).concat([A]).join("\n")}var a,r,i;return[s].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(s,"}"):s})).join("")},t.i=function(e,s,n){"string"==typeof e&&(e=[[null,e,""]]);var A={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(A[a]=!0)}for(var r=0;r<e.length;r++){var i=[].concat(e[r]);n&&A[i[0]]||(s&&(i[2]?i[2]="".concat(s," and ").concat(i[2]):i[2]=s),t.push(i))}},t}},function(e,t,s){"use strict";function n(e,t){for(var s=[],n={},A=0;A<t.length;A++){var o=t[A],a=o[0],r={id:e+":"+A,css:o[1],media:o[2],sourceMap:o[3]};n[a]?n[a].parts.push(r):s.push(n[a]={id:a,parts:[r]})}return s}s.r(t),s.d(t,"default",(function(){return u}));var A="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!A)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},a=A&&(document.head||document.getElementsByTagName("head")[0]),r=null,i=0,c=!1,l=function(){},m=null,g="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function u(e,t,s,A){c=s,m=A||{};var a=n(e,t);return d(a),function(t){for(var s=[],A=0;A<a.length;A++){var r=a[A];(i=o[r.id]).refs--,s.push(i)}t?d(a=n(e,t)):a=[];for(A=0;A<s.length;A++){var i;if(0===(i=s[A]).refs){for(var c=0;c<i.parts.length;c++)i.parts[c]();delete o[i.id]}}}}function d(e){for(var t=0;t<e.length;t++){var s=e[t],n=o[s.id];if(n){n.refs++;for(var A=0;A<n.parts.length;A++)n.parts[A](s.parts[A]);for(;A<s.parts.length;A++)n.parts.push(f(s.parts[A]));n.parts.length>s.parts.length&&(n.parts.length=s.parts.length)}else{var a=[];for(A=0;A<s.parts.length;A++)a.push(f(s.parts[A]));o[s.id]={id:s.id,refs:1,parts:a}}}}function p(){var e=document.createElement("style");return e.type="text/css",a.appendChil
/**
* @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
*
* @author Julius Härtl <jus@bitgrid.net>
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/
n.VTooltip.options.defaultTemplate='<div class="vue-tooltip" role="tooltip" data-v-'.concat("2c44938",'><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'),n.VTooltip.options.defaultHtml=!1,t.default=n.VTooltip},function(e,t,s){"use strict";s.d(t,"a",(function(){return a})),s.d(t,"b",(function(){return r}));s(32);var n=s(39),A=Object(n.getGettextBuilder)().detectLocale();[{locale:"cs_CZ",json:{charset:"utf-8",headers:{"Last-Translator":"Pavel Borecki <pavel.borecki@gmail.com>, 2020","Language-Team":"Czech (Czech Republic) (https://www.transifex.com/nextcloud/teams/64236/cs_CZ/)","Content-Type":"text/plain; charset=UTF-8",Language:"cs_CZ","Plural-Forms":"nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;"},translations:{"":{"":{msgid:"",comments:{translator:"Translators:\nPavel Borecki <pavel.borecki@gmail.com>, 2020\n"},msgstr:["Last-Translator: Pavel Borecki <pavel.borecki@gmail.com>, 2020\nLanguage-Team: Czech (Czech Republic) (https://www.transifex.com/nextcloud/teams/64236/cs_CZ/)\nContent-Type: text/plain; charset=UTF-8\nLanguage: cs_CZ\nPlural-Forms: nplurals=4; plural=(n == 1 && n % 1 == 0) ? 0 : (n >= 2 && n <= 4 && n % 1 == 0) ? 1: (n % 1 != 0 ) ? 2 : 3;\n"]},"{tag} (invisible)":{msgid:"{tag} (invisible)",comments:{reference:"src/components/MultiselectTags/MultiselectTags.vue:169"},msgstr:["{tag} (neviditelný)"]},"{tag} (restricted)":{msgid:"{tag} (restricted)",comments:{reference:"src/components/MultiselectTags/MultiselectTags.vue:172"},msgstr:["{tag} (omezený)"]},Choose:{msgid:"Choose",comments:{reference:"src/components/ColorPicker/ColorPicker.vue:145"},msgstr:["Zvolit"]},Close:{msgid:"Close",comments:{reference:"src/components/Modal/Modal.vue:109"},msgstr:["Zavřít"]},Next:{msgid:"Next",comments:{reference:"src/components/Modal/Modal.vue:154"},msgstr:["Následující"]},"No results":{msgid:"No results",comments:{reference:"src/components/Multiselect/Multiselect.vue:169\nsrc/components/MultiselectTags/MultiselectTags.vue:78"},msgstr:["Žádné výsledky"]},"Pause slideshow":{msgid:"Pause slideshow",comments:{reference:"src/components/Modal/Modal.vue:290"},msgstr:["Pozastavit prezentaci"]},Previous:{msgid:"Previous",comments:{reference:"src/components/Modal/Modal.vue:134"},msgstr:["Předchozí"]},"Select a tag":{msgid:"Select a tag",comments:{reference:"src/components/MultiselectTags/MultiselectTags.vue:100"},msgstr:["Vybrat štítek"]},Settings:{msgid:"Settings",comments:{reference:"src/components/AppNavigationSettings/AppNavigationSettings.vue:53"},msgstr:["Nastavení"]},"Start slideshow":{msgid:"Start slideshow",comments:{reference:"src/components/Modal/Modal.vue:290"},msgstr:["Spustit prezentaci"]}}}}},{locale:"de",json:{charset:"utf-8",headers:{"Last-Translator":"Philipp Fischbeck <pfischbeck@googlemail.com>, 2020","Language-Team":"German (https://www.transifex.com/nextcloud/teams/64236/de/)","Content-Type":"text/plain; charset=UTF-8",Language:"de","Plural-Forms":"nplurals=2; plural=(n != 1);"},translations:{"":{"":{msgid:"",comments:{translator:"Translators:\nMark Ziegler <mark.ziegler@rakekniven.de>, 2020\nPhilipp Fischbeck <pfischbeck@googlemail.com>, 2020\n"},msgstr:["Last-Translator: Philipp Fischbeck <pfischbeck@googlemail.com>, 2020\nLanguage-Team: German (https://www.transifex.com/nextcloud/teams/64236/de/)\nContent-Type: text/plain; charset=UTF-8\nLanguage: de\nPlural-Forms: nplurals=2; plural=(n != 1);\n"]},"{tag} (invisible)":{msgid:"{tag} (invisible)",comments:{reference:"src/components/MultiselectTags/MultiselectTags.vue:169"},msgstr:["{tag} (unsichtbar)"]},"{tag} (restricted)":{msgid:"{tag} (restricted)",comments:{reference:"src/components/MultiselectTags/MultiselectTags.vue:172"},msgstr:["{tag} (eingeschränkt)"]},Choose:{msgid:"Choose",comments:{reference:"src/components/ColorPicker/ColorPicker.vue:145"},msgstr:["Auswählen"]},Close:{msgid:"Close",comments:{reference:"src/components/Modal/Modal.vue:109"},msgstr:["Schließen"]},Next:{msgid:"Next",comments:{reference:"src/components/Modal/Modal.vue:154"},msg
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/t.a={before:function(){this.$slots.default&&""!==this.text.trim()||(A.a.util.warn("".concat(this.$options.name," cannot be empty and requires a meaningful text content"),this),this.$destroy(),this.$el.remove())},beforeUpdate:function(){this.text=this.getText()},data:function(){return{text:this.getText()}},computed:{isLongText:function(){return this.text&&this.text.trim().length>20}},methods:{getText:function(){return this.$slots.default?this.$slots.default[0].text.trim():""}}}},function(e,t){e.exports=__webpack_require__(/*! v-click-outside */ "./node_modules/v-click-outside/dist/v-click-outside.umd.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.iterator */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.iterator.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.string.iterator */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.string.iterator.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/web.dom-collections.iterator */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/web.dom-collections.iterator.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.regexp.exec */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.regexp.exec.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.index-of */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.index-of.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.regexp.to-string */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.regexp.to-string.js")},function(e,t,s){"use strict";s(3),s(19),s(21),s(28);t.a=function(e){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,e||5)}},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/web.url */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/web.url.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.string.trim */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.string.trim.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.number.constructor */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.number.constructor.js")},function(e,t,s){"use strict";s(16),s(3),s(17),s(18),s(23);var n=s(14),A=(s(6),function(e,t){for(var s=e.$parent;s;){if(s.$options.name===t)return s;s=s.$parent}});t.a={mixins:[n.a],props:{icon:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1}},computed:{isIconUrl:function(){try{return new URL(this.icon)}catch(e){return!1}}},methods:{onClick:function(e){if(this.$emit("click",e),this.closeAfterClick){var t=A(this,"Actions");t&&t.closeMenu&&t.closeMenu()}}}}},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.concat */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.concat.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.string.replace */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.string.replace.js")},,,,function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.map */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.map.js")},function(e,t,s){"use strict";var n=s(13);t.a={methods:{n:n.a,t:n.b}}},function(e,t,s){var n=s(80);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(2).default)("0a304400",n,!0,{})},,,function(e,t,s){"use strict";
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/t.a=function(e){e.mounted?Array.isArray(e.mounted)||(e.mounted=[e.mounted]):e.mounted=[],e.mounted.push((function(){this.$el.setAttribute("data-v-".concat("2c44938"),"")}))}},function(e,t,s){"use strict";s(27),s(52),s(20);var n=s(15),A=s(12),o=s(22),a=(s(77),function(e){var t=e.getBoundingClientRect(),s=document.documentElement.clientHeight,n=document.documentElement.clientWidth,A=Object.assign({});return A.top=t.top<0,A.left=t.left<0,A.bottom=t.bottom>s,A.right=t.right>n,A.any=A.top||A.left||A.bottom||A.right,A.all=A.top&&A.left&&A.bottom&&A.right,A.offsetY=A.top?t.top:A.bottom?t.bottom-s:0,A.offsetX=A.left?t.left:A.right?t.right-n:0,A}),r=(s(74),s(78),s(6),s(75),s(5)),i=s.n(r),c=function(e,t,s){void 0!==e&&e.forEach((function(n,A){var o=!n.componentOptions&&n.tag&&-1===t.indexOf(n.tag),a=!!n.componentOptions&&"string"==typeof n.componentOptions.tag&&-1===t.indexOf(n.componentOptions.tag);(o||a)&&(i.a.util.warn("".concat(o?n.tag:n.componentOptions.tag," is not allowed inside the ").concat(s.$options.name," component"),s),e.splice(A,1))}))},l=["ActionButton","ActionCheckbox","ActionInput","ActionLink","ActionRadio","ActionRouter","ActionSeparator","ActionText","ActionTextEditable"],m={name:"Actions",directives:{ClickOutside:n.directive,tooltip:A.default},props:{open:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},menuAlign:{type:String,default:"center",validator:function(e){return["left","center","right"].indexOf(e)>-1}},defaultIcon:{type:String,default:"action-item__menutoggle--default-icon"}},data:function(){return{actions:[],opened:this.open,focusIndex:0,randomId:"menu-"+Object(o.a)(),offsetX:0,offsetY:0,offsetYArrow:0,rotateArrow:!1,children:this.$children}},computed:{hasMultipleActions:function(){return this.actions.length>1},isValidSingleAction:function(){return 1===this.actions.length&&null!==this.firstActionElement},firstActionVNode:function(){return this.actions[0]},firstAction:function(){return this.children[0]?this.children[0]:{}},firstActionBinding:function(){if(this.firstActionVNode&&this.firstActionVNode.componentOptions){var e=this.firstActionVNode.componentOptions.tag;if("ActionLink"===e)return{is:"a",href:this.firstAction.href,target:this.firstAction.target};if("ActionRouter"===e)return{is:"router-link",to:this.firstAction.to,exact:this.firstAction.exact};if("ActionButton"===e)return{is:"button"}}return null},firstActionEvent:function(){return this.firstActionVNode&&this.firstActionVNode.componentOptions&&this.firstActionVNode.componentOptions.listeners&&this.firstActionVNode.componentOptions.listeners.click},firstActionEventBinding:function(){return this.firstActionEvent?"click":null},firstActionClass:function(){var e=this.firstActionVNode&&this.firstActionVNode.data.staticClass,t=this.firstActionVNode&&this.firstActionVNode.data.class;return"".concat(e," ").concat(t)}},watch:{open:function(e){var t=this;this.opened=e,this.opened&&this.$nextTick((function(){t.onOpen()}))}},beforeMount:function(){this.initActions(),c(this.$slots.default,l,this)},beforeUpdate:function(){this.initActions(),c(this.$slots.default,l,this)},methods:{toggleMenu:function(e){var t=this;this.opened=!this.opened,this.opened?(this.$nextTick((function(){t.onOpen(),t.focusFirstAction()})),this.$emit("open",e)):(this.offsetX=0,this.offsetY=0,this.offsetYArrow=0,this.rotateArrow=!1),this.$emit("update:open",this.opened)},closeMenu:function(e){this.opened&&(this.$emit("update:open",!1),this.$emit("close",e)),this.opened=!1,this.offsetX=0,this.offsetY=0,this.offsetYArrow=0,this.rotateArrow=!1},onOpen:function(){if(this.offsetX=0,this.offsetY=0,this.offsetYArrow=0,this.rotateArrow=!1,"center"===this.menuAlign){var e=a(this.$refs.menu);(e.left||e.right)&&(this.offsetX=e.offsetX>0?Math.round(e.offsetX)+5:Math.round(e.offsetX)-5),e.bottom&&(this.offsetY=0-Math.round(this.$refs.menu.clientHeight)-42,this.offsetYArrow=Math.round(this.$refs.menu.clientHeight)+18,this.rotateArrow=!0)}},onMouseFocusAction:function(e){if(document.activeElement!==e.target){var t=e.target.closest("li");if(t){var s=t.querySelector(".focusable");if(s)
/**
* @copyright Copyright (c) 2018 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/t.default=n.a},,,,,,,,,,,,,,,,function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.for-each */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.for-each.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/web.dom-collections.for-each */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/web.dom-collections.for-each.js")},function(e,t){e.exports=__webpack_require__(/*! hammerjs */ "./node_modules/hammerjs/hammer.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.object.assign */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.object.assign.js")},function(e,t){e.exports=__webpack_require__(/*! core-js/modules/es.array.splice */ "./node_modules/@nextcloud/vue/node_modules/core-js/modules/es.array.splice.js")},function(e,t,s){"use strict";var n=s(34);s.n(n).a},function(e,t,s){var n=s(1),A=s(7),o=s(8),a=s(9),r=s(10),i=s(11);t=n(!1);var c=A(o),l=A(a),m=A(r),g=A(i);t.push([e.i,'@font-face{font-family:"iconfont-vue-2c44938";src:url('+c+");src:url("+c+') format("embedded-opentype"),url('+l+') format("woff"),url('+m+') format("truetype"),url('+g+') format("svg")}.icon[data-v-5acb084b]{font-style:normal;font-weight:400}.icon.arrow-left-double[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-left[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-right-double[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-right[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.checkmark[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.close[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.confirm[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.menu[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.more[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.pause[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.play[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.triangle-s[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";content:""}.action-item[data-v-5acb084b]{position:relative;display:inline-block}.action-item--single[data-v-5acb084b]:hover,.action-item--single[data-v-5acb084b]:focus,.action-item--single[data-v-5acb084b]:active,.action-item__menutoggle[data-v-5acb084b]:hover,.action-item__menutoggle[data-v-5acb084b]:focus,.action-item__menutoggle[data-v-5acb084b]:active{border-radius:22px;background-color:rgba(127,127,127,0.25) !important;opacity:1}.action-item.action-item--open .action-item__menutoggle[data-v-5acb084b]{opacity:1;border-radius:22px;background-color:rgba(127,127,127,0.25)}.action-item--single[data-v-5acb084b],.action-item__menutoggle[data-v-5acb084b]{box-sizing:border-box;width:44px;height:44px;margin:0;padding:14px;cursor:pointer;border:none;background-color:transparent}.action-item__menutoggle[data-v-5acb084b]{display:flex;align-items:center;justify-content:center;opacity:.7}.action-item__menutoggle[data-v-5acb084b]:before{content:\'\'}.action-item__menutoggle--default-icon[data-v-5acb084b]{font-size:16px}.action-item__menutoggle--default-icon[data-v-5acb084b]:before{font-family:"iconfont-vue-2c44938";font-style:normal;font-weight:400;content:""}.action-item--single[data-v-5acb084b]{opacity:.7}.action-item--single[data-v-5acb084b]:hover,.action-item--single[data-v-5acb084b]:focus,.action-item--single[data-v-5acb084b]:active{opacity:1}.action-item--single>[hidden][data-v-5acb084b]{display:none}.action-item--multiple[data-v-5acb084b]{position:relative}.action-item__menu[data-v-5acb084b]{position:absolute;z-index:110;right:50%;display:none;margin-bottom:10px;margin-top:-5px;transform:translateX(50%);color:var(--color-main-text);border-radius:var(--border-radius);background-color:var(--color-main-background);filter:drop-shadow(0 1px 3px var(--color-box-shadow))}.action-item__m
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/t.default=n.a},,,,,,,,,,,,,,,,,,,,,,,function(e,t,s){var n=s(222);"string"==typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);(0,s(2).default)("2d8e8fe0",n,!0,{})},,,,,,,,function(e,t,s){"use strict";var n=s(43);s.n(n).a},function(e,t,s){(t=s(1)(!1)).push([e.i,"li.active[data-v-42604de1]{box-shadow:inset 4px 0 var(--color-primary)}.action--disabled[data-v-42604de1]{pointer-events:none;opacity:.5}.action--disabled[data-v-42604de1]:hover,.action--disabled[data-v-42604de1]:focus{cursor:default;opacity:.5}.action--disabled *[data-v-42604de1]{opacity:1 !important}.action-button[data-v-42604de1]{display:flex;align-items:flex-start;width:100%;height:auto;margin:0;padding:0;padding-right:14px;cursor:pointer;white-space:nowrap;opacity:.7;color:var(--color-main-text);border:0;border-radius:0;background-color:transparent;box-shadow:none;font-weight:normal;line-height:44px}.action-button[data-v-42604de1]:hover,.action-button[data-v-42604de1]:focus{opacity:1}.action-button>span[data-v-42604de1]{cursor:pointer;white-space:nowrap}.action-button__icon[data-v-42604de1]{width:44px;height:44px;opacity:1;background-position:14px center;background-size:16px}.action-button p[data-v-42604de1]{width:150px;padding:7px 0;margin:auto;cursor:pointer;text-align:left;line-height:1.6em}.action-button__longtext[data-v-42604de1]{cursor:pointer;white-space:pre-wrap}.action-button__title[data-v-42604de1]{font-weight:bold}\n",""]),e.exports=t},,,,,,,,,,,,,function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,s){"use strict";s.r(t),s.d(t,"Modal",(function(){return v}));var n=s(37),A=(s(20),s(25),s(76)),o=s.n(A),a=s(58),r=s(84),i=s(33),c=s(13),l=s(12);
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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 m(e,t){var s,n,A,o=t;this.start=function(){A=!0,n=new Date,s=setTimeout(e,o)},this.pause=function(){A=!1,clearTimeout(s),o-=new Date-n},this.clear=function(){A=!1,clearTimeout(s),o=0},this.getTimeLeft=function(){return A&&(this.pause(),this.start()),o},this.getStateRunning=function(){return A},this.start()}var g={name:"Modal",components:{Actions:a.default,ActionButton:r.default},directives:{tooltip:l.default},mixins:[i.a],props:{title:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},clearViewDelay:{type:Number,default:5e3},slideshowDelay:{type:Number,default:3e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:function(e){return-1!==["normal","large","full"].indexOf(e)}},canClose:{type:Boolean,default:!0},dark:{type:Boolean,default:!1}},data:function(){return{mc:null,showModal:!1,clearView:!1,clearViewTimeout:null,playing:!1,slideshowTimeout:null}},computed:{modalTransitionName:function(){return"modal-".concat(this.outTransition?"out":"in")},playPauseTitle:function(){return this.playing?Object(c.b)("Pause slideshow"):Object(c.b)("Start slideshow")}},watch:{slideshowPaused:function(e){this.slideshowTimeout&&(e?this.slideshowTimeout.pause():this.slideshowTimeout.start())}},beforeMount:function(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy:function(){window.removeEventListener("keydown",this.handleKeydown)},mounted:function(){var e=this;this.showModal=!0,this.handleMouseMove(),this.mc=new o.a(this.$refs.mask),this.mc.on("swipeleft swiperight",(function(t){e.handleSwipe(t)})),document.body.insertBefore(this.$el,document.body.lastChild)},unmounted:function(){this.mc.off("swipeleft swiperight"),this.mc.destroy()},methods:{previous:function(e){this.hasPrevious&&(e&&this.resetSlideshow(),this.$emit("previous",e))},next:function(e){this.hasNext&&(e&&this.resetSlideshow(),this.$emit("next",e))},close:function(e){var t=this;this.canClose&&(this.showModal=!1,setTimeout((function(){t.$emit("close",e)}),300))},handleKeydown:function(e){switch(e.keyCode){case 37:this.previous(e);break;case 13:case 39:this.next(e);break;case 27:this.close(e)}},handleSwipe:function(e){this.enableSwipe&&("swipeleft"===e.type?this.next(e):"swiperight"===e.type&&this.previous(e))},handleMouseMove:function(){var e=this;this.clearViewDelay>0&&(this.clearView=!1,clearTimeout(this.clearViewTimeout),this.clearViewTimeout=setTimeout((function(){e.clearView=!0}),this.clearViewDelay))},togglePlayPause:function(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow:function(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick((function(){this.togglePlayPause()}))},handleSlideshow:function(){var e=this;this.playing=!0,this.hasNext?this.slideshowTimeout=new m((function(){e.next(),e.handleSlideshow()}),this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout:function(){this.slideshowTimeout&&this.slideshowTimeout.clear()}}},u=(s(221),s(0)),d=s(129),p=s.n(d),f=Object(u.a)(g,(function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("transition",{attrs:{name:"fade"}},[s("div",{ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":e.dark},on:{click:e.handleMouseMove,mousemove:e.handleMouseMove,touchmove:e.handleMouseMove}},[s("transition",{attrs:{name:"fade-visibility"}},[s("div",{directives:[{name:"show",rawName:"v-show",value:!e.clearView,expression:"!clearView"}],staticClass:"modal-header",class:{invisible:e.clearView}},[""!==e.title.trim()?s("div",{staticClass:"modal-title"},[e._v("\n\t\t\t\t\t"+e._s(e.title)+"\n\t\t\t\t")]):e._e(),e._v(" "),s("div",{staticClass:"icons-menu"},[e.hasNext&&e.enableSlideshow?s("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:e.playPauseTitle,expression:"playPauseTitle",modifiers:{auto:!0}}],staticClass:"play-pause",
/**
* @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>
*
* @author John Molakvoæ <skjnldsv@protonmail.com>
*
* @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/>.
*
*/Object(n.a)(v);t.default=v},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,s){"use strict";var n=s(107);s.n(n).a},function(e,t,s){var n=s(1),A=s(7),o=s(8),a=s(9),r=s(10),i=s(11);t=n(!1);var c=A(o),l=A(a),m=A(r),g=A(i);t.push([e.i,'@font-face{font-family:"iconfont-vue-2c44938";src:url('+c+");src:url("+c+') format("embedded-opentype"),url('+l+') format("woff"),url('+m+') format("truetype"),url('+g+') format("svg")}.icon[data-v-0654c186]{font-style:normal;font-weight:400}.icon.arrow-left-double[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-left[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-right-double[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.arrow-right[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.checkmark[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.close[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.confirm[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.menu[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.more[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.pause[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.play[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.icon.triangle-s[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";content:""}.modal-mask[data-v-0654c186]{position:fixed;z-index:9998;top:0;left:0;display:block;width:100%;height:100%;background-color:rgba(0,0,0,0.5)}.modal-mask--dark[data-v-0654c186]{background-color:rgba(0,0,0,0.92)}.modal-header[data-v-0654c186]{position:absolute;z-index:10001;top:0;right:0;left:0;display:flex !important;align-items:center;justify-content:center;width:100%;height:50px;transition:opacity 250ms, visibility 250ms}.modal-header.invisible[style*=\'display:none\'][data-v-0654c186],.modal-header.invisible[style*=\'display: none\'][data-v-0654c186]{visibility:hidden}.modal-header .modal-title[data-v-0654c186]{overflow-x:hidden;box-sizing:border-box;width:100%;padding:0 132px 0 12px;transition:padding ease 100ms;white-space:nowrap;text-overflow:ellipsis;color:#fff;font-size:14px}@media only screen and (min-width: 512px){.modal-header .modal-title[data-v-0654c186]{text-align:center;padding-left:132px}}.modal-header .icons-menu[data-v-0654c186]{position:absolute;right:0;display:flex;align-items:center;justify-content:flex-end}.modal-header .icons-menu .icon-close[data-v-0654c186]{box-sizing:border-box;margin:3px;padding:10px 11px;color:#fff;background-image:none;font-size:23px}.modal-header .icons-menu .icon-close[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";font-style:normal;font-weight:400;content:""}.modal-header .icons-menu .play-pause[data-v-0654c186]{position:relative;width:50px;height:50px;margin:0;padding:0;cursor:pointer;color:white;border:none;background-color:transparent;font-size:22px}.modal-header .icons-menu .play-pause:hover .icon-play[data-v-0654c186],.modal-header .icons-menu .play-pause:hover .icon-pause[data-v-0654c186],.modal-header .icons-menu .play-pause:focus .icon-play[data-v-0654c186],.modal-header .icons-menu .play-pause:focus .icon-pause[data-v-0654c186]{opacity:1;border-radius:22px;background-color:rgba(127,127,127,0.25)}.modal-header .icons-menu .play-pause .icon-play[data-v-0654c186],.modal-header .icons-menu .play-pause .icon-pause[data-v-0654c186]{box-sizing:border-box;width:44px;height:44px;margin:3px;opacity:.7;background-image:none;cursor:pointer}.modal-header .icons-menu .play-pause .icon-play[data-v-0654c186]{padding:11px 13px}.modal-header .icons-menu .play-pause .icon-play[data-v-0654c186]:before{font-family:"iconfont-vue-2c44938";font-style:normal;font-weight:400;content:""}.modal-header .icons-menu .play-pause .icon-pause[data-v-0654c186]{padding:12px;font-size:19.5px}.modal-header .icons-menu .play-pause .icon-pause[d
//# sourceMappingURL=Modal.js.map
/***/ })
}]);
//# sourceMappingURL=vue-vendors-files-modal.js.map?v=587d562c7d8b8b4282d8