You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/core/js/dist/maintenance.js

26 lines
61 KiB
JavaScript

!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=935)}({100:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRequestToken",{enumerable:!0,get:function(){return r.getRequestToken}}),Object.defineProperty(e,"onRequestTokenUpdate",{enumerable:!0,get:function(){return r.onRequestTokenUpdate}}),Object.defineProperty(e,"getCurrentUser",{enumerable:!0,get:function(){return o.getCurrentUser}});var r=n(209),o=n(210)},101:function(t,e,n){var r=n(11),o=n(4),i=n(95);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},102:function(t,e,n){var r=n(12),o=n(22),i=n(89).indexOf,c=n(41);t.exports=function(t,e){var n,a=o(t),s=0,u=[];for(n in a)!r(c,n)&&r(a,n)&&u.push(n);for(;e.length>s;)r(a,n=e[s++])&&(~i(u,n)||u.push(n));return u}},103:function(t,e,n){const{MAX_SAFE_COMPONENT_LENGTH:r}=n(68),o=n(104),i=(e=t.exports={}).re=[],c=e.src=[],a=e.t={};let s=0;const u=(t,e,n)=>{const r=s++;o(r,e),a[t]=r,c[r]=e,i[r]=new RegExp(e,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION","(".concat(c[a.NUMERICIDENTIFIER],")\\.")+"(".concat(c[a.NUMERICIDENTIFIER],")\\.")+"(".concat(c[a.NUMERICIDENTIFIER],")")),u("MAINVERSIONLOOSE","(".concat(c[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(c[a.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(c[a.NUMERICIDENTIFIERLOOSE],")")),u("PRERELEASEIDENTIFIER","(?:".concat(c[a.NUMERICIDENTIFIER],"|").concat(c[a.NONNUMERICIDENTIFIER],")")),u("PRERELEASEIDENTIFIERLOOSE","(?:".concat(c[a.NUMERICIDENTIFIERLOOSE],"|").concat(c[a.NONNUMERICIDENTIFIER],")")),u("PRERELEASE","(?:-(".concat(c[a.PRERELEASEIDENTIFIER],"(?:\\.").concat(c[a.PRERELEASEIDENTIFIER],")*))")),u("PRERELEASELOOSE","(?:-?(".concat(c[a.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(c[a.PRERELEASEIDENTIFIERLOOSE],")*))")),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD","(?:\\+(".concat(c[a.BUILDIDENTIFIER],"(?:\\.").concat(c[a.BUILDIDENTIFIER],")*))")),u("FULLPLAIN","v?".concat(c[a.MAINVERSION]).concat(c[a.PRERELEASE],"?").concat(c[a.BUILD],"?")),u("FULL","^".concat(c[a.FULLPLAIN],"$")),u("LOOSEPLAIN","[v=\\s]*".concat(c[a.MAINVERSIONLOOSE]).concat(c[a.PRERELEASELOOSE],"?").concat(c[a.BUILD],"?")),u("LOOSE","^".concat(c[a.LOOSEPLAIN],"$")),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(c[a.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(c[a.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(c[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(c[a.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(c[a.XRANGEIDENTIFIER],")")+"(?:".concat(c[a.PRERELEASE],")?").concat(c[a.BUILD],"?")+")?)?"),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(c[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(c[a.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(c[a.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(c[a.PRERELEASELOOSE],")?").concat(c[a.BUILD],"?")+")?)?"),u("XRANGE","^".concat(c[a.GTLT],"\\s*").concat(c[a.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(c[a.GTLT],"\\s*").concat(c[a.XRANGEPLAINLOOSE],"$")),u("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat
/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
* @author John Molakvoæ <skjnldsv@protonmail.com>
* @author Roeland Jago Douma <roeland@famdouma.nl>
*
* @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/>.
*
*/
const c=Object(i.getRootUrl)()+"/status.php",a=()=>{console.info("checking the Nextcloud maintenance status"),o.a.get(c).then(t=>t.data).then(t=>{if(!1===t.maintenance)return console.info("Nextcloud is not in maintenance mode anymore -> reloading"),void window.location.reload();console.info("Nextcloud is still in maintenance mode"),setTimeout(a,2e4)}).catch(console.error.bind(void 0))};a()},95:function(t,e,n){var r=n(5),o=n(9),i=r.document,c=o(i)&&o(i.createElement);t.exports=function(t){return c?i.createElement(t):{}}},96:function(t,e,n){var r=n(66),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return o.call(t)}),t.exports=r.inspectSource},97:function(t,e){e.f=Object.getOwnPropertySymbols},98:function(t,e,n){var r=n(6),o=n(39),i=n(13),c=r("unscopables"),a=Array.prototype;null==a[c]&&i.f(a,c,{configurable:!0,value:o(null)}),t.exports=function(t){a[c][t]=!0}},99:function(t,e,n){var r=n(78),o=n(33),i=n(6)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}}});
//# sourceMappingURL=maintenance.js.map