From: Alexander Ebert Date: Wed, 28 Oct 2020 14:00:59 +0000 (+0100) Subject: Use the `tslib` helper library X-Git-Tag: 5.4.0_Alpha_1~704^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a132a6707e095f692f634e92383bc9a7cd6945ee;p=GitHub%2FWoltLab%2FWCF.git Use the `tslib` helper library --- diff --git a/package-lock.json b/package-lock.json index bd8325855a..64bd12711a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,11 @@ "integrity": "sha512-zSLdgIcZXxqamFwIuogGVM22UwStYhWhHgzXXczW3GwNAv1LZdgL0XYGaufipf/FgB2Jj5jTT0ov0v5TVYnUjA==", "dev": true }, + "tslib": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz", + "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ==" + }, "typescript": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.0.3.tgz", diff --git a/package.json b/package.json index adfd341c3e..fc14c06889 100644 --- a/package.json +++ b/package.json @@ -3,5 +3,8 @@ "@types/facebook-js-sdk": "^3.3.1", "@types/pica": "^5.1.1", "typescript": "^4.0.3" + }, + "dependencies": { + "tslib": "^2.0.3" } } diff --git a/tsconfig.json b/tsconfig.json index 2db1a8dad7..43ea08f90c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -17,6 +17,7 @@ "moduleResolution": "node", "esModuleInterop": true, "noImplicitThis": true, - "strictBindCallApply": true + "strictBindCallApply": true, + "importHelpers": true } } diff --git a/wcfsetup/install/files/js/3rdParty/tslib.js b/wcfsetup/install/files/js/3rdParty/tslib.js new file mode 100644 index 0000000000..7dd8daa33b --- /dev/null +++ b/wcfsetup/install/files/js/3rdParty/tslib.js @@ -0,0 +1,292 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */ +/* global global, define, System, Reflect, Promise */ +var __extends; +var __assign; +var __rest; +var __decorate; +var __param; +var __metadata; +var __awaiter; +var __generator; +var __exportStar; +var __values; +var __read; +var __spread; +var __spreadArrays; +var __await; +var __asyncGenerator; +var __asyncDelegator; +var __asyncValues; +var __makeTemplateObject; +var __importStar; +var __importDefault; +var __classPrivateFieldGet; +var __classPrivateFieldSet; +var __createBinding; +(function (factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); + } + else if (typeof module === "object" && typeof module.exports === "object") { + factory(createExporter(root, createExporter(module.exports))); + } + else { + factory(createExporter(root)); + } + function createExporter(exports, previous) { + if (exports !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports, "__esModule", { value: true }); + } + else { + exports.__esModule = true; + } + } + return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; + } +}) +(function (exporter) { + var extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; + + __extends = function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + + __assign = Object.assign || function (t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; + } + return t; + }; + + __rest = function (s, e) { + var t = {}; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + + __decorate = function (decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); + else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + + __param = function (paramIndex, decorator) { + return function (target, key) { decorator(target, key, paramIndex); } + }; + + __metadata = function (metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); + }; + + __awaiter = function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + + __generator = function (thisArg, body) { + var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; + function verb(n) { return function (v) { return step([n, v]); }; } + function step(op) { + if (f) throw new TypeError("Generator is already executing."); + while (_) try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: case 1: t = op; break; + case 4: _.label++; return { value: op[1], done: false }; + case 5: _.label++; y = op[1]; op = [0]; continue; + case 7: op = _.ops.pop(); _.trys.pop(); continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } + if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } + if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } + if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } + if (t[2]) _.ops.pop(); + _.trys.pop(); continue; + } + op = body.call(thisArg, _); + } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } + if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; + } + }; + + __exportStar = function(m, o) { + for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p); + }; + + __createBinding = Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + }) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; + }); + + __values = function (o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) return m.call(o); + if (o && typeof o.length === "number") return { + next: function () { + if (o && i >= o.length) o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + + __read = function (o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); + } + catch (error) { e = { error: error }; } + finally { + try { + if (r && !r.done && (m = i["return"])) m.call(i); + } + finally { if (e) throw e.error; } + } + return ar; + }; + + __spread = function () { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read(arguments[i])); + return ar; + }; + + __spreadArrays = function () { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + + __await = function (v) { + return this instanceof __await ? (this.v = v, this) : new __await(v); + }; + + __asyncGenerator = function (thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; + function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } + function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } + function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } + function fulfill(value) { resume("next", value); } + function reject(value) { resume("throw", value); } + function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } + }; + + __asyncDelegator = function (o) { + var i, p; + return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; + function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } + }; + + __asyncValues = function (o) { + if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); + function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } + function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } + }; + + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + + var __setModuleDefault = Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + }) : function(o, v) { + o["default"] = v; + }; + + __importStar = function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; + }; + + __importDefault = function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; + }; + + __classPrivateFieldGet = function (receiver, privateMap) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); + } + return privateMap.get(receiver); + }; + + __classPrivateFieldSet = function (receiver, privateMap, value) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to set private field on non-instance"); + } + privateMap.set(receiver, value); + return value; + }; + + exporter("__extends", __extends); + exporter("__assign", __assign); + exporter("__rest", __rest); + exporter("__decorate", __decorate); + exporter("__param", __param); + exporter("__metadata", __metadata); + exporter("__awaiter", __awaiter); + exporter("__generator", __generator); + exporter("__exportStar", __exportStar); + exporter("__createBinding", __createBinding); + exporter("__values", __values); + exporter("__read", __read); + exporter("__spread", __spread); + exporter("__spreadArrays", __spreadArrays); + exporter("__await", __await); + exporter("__asyncGenerator", __asyncGenerator); + exporter("__asyncDelegator", __asyncDelegator); + exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); + exporter("__importStar", __importStar); + exporter("__importDefault", __importDefault); + exporter("__classPrivateFieldGet", __classPrivateFieldGet); + exporter("__classPrivateFieldSet", __classPrivateFieldSet); +}); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax.js index 822e6fc365..191d7d4ba6 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax.js @@ -7,14 +7,11 @@ * @module Ajax (alias) * @module WoltLabSuite/Core/Ajax */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "./Ajax/Request"], function (require, exports, Request_1) { +define(["require", "exports", "tslib", "./Ajax/Request"], function (require, exports, tslib_1, Request_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getRequestObject = exports.apiOnce = exports.api = void 0; - Request_1 = __importDefault(Request_1); + Request_1 = tslib_1.__importDefault(Request_1); const _cache = new WeakMap(); /** * Shorthand function to perform a request against the WCF-API with overrides diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Jsonp.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Jsonp.js index 3562eac3b5..571c7f60b8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Jsonp.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Jsonp.js @@ -7,30 +7,11 @@ * @module AjaxJsonp (alias) * @module WoltLabSuite/Core/Ajax/Jsonp */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Core"], function (require, exports, Core) { +define(["require", "exports", "tslib", "../Core"], function (require, exports, tslib_1, Core) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.send = void 0; - Core = __importStar(Core); + Core = tslib_1.__importStar(Core); /** * Dispatch a JSONP request, the `url` must not contain a callback parameter. */ diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js index d9c70d36c9..83f5235ce0 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Request.js @@ -9,35 +9,13 @@ * @module AjaxRequest (alias) * @module WoltLabSuite/Core/Ajax/Request */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "./Status", "../Core", "../Dom/Change/Listener", "../Dom/Util", "../Language"], function (require, exports, AjaxStatus, Core, Listener_1, Util_1, Language) { +define(["require", "exports", "tslib", "./Status", "../Core", "../Dom/Change/Listener", "../Dom/Util", "../Language"], function (require, exports, tslib_1, AjaxStatus, Core, Listener_1, Util_1, Language) { "use strict"; - AjaxStatus = __importStar(AjaxStatus); - Core = __importStar(Core); - Listener_1 = __importDefault(Listener_1); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); + AjaxStatus = tslib_1.__importStar(AjaxStatus); + Core = tslib_1.__importStar(Core); + Listener_1 = tslib_1.__importDefault(Listener_1); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); let _didInit = false; let _ignoreAllErrors = false; /** @@ -221,7 +199,7 @@ define(["require", "exports", "./Status", "../Core", "../Dom/Change/Listener", " } // force-invoke the background queue if (data && data.forceBackgroundQueuePerform) { - new Promise((resolve_1, reject_1) => { require(['../BackgroundQueue'], resolve_1, reject_1); }).then(__importStar).then(backgroundQueue => backgroundQueue.invoke()); + new Promise((resolve_1, reject_1) => { require(['../BackgroundQueue'], resolve_1, reject_1); }).then(tslib_1.__importStar).then(backgroundQueue => backgroundQueue.invoke()); } } options.success(data, xhr.responseText, xhr, options.data); @@ -252,7 +230,7 @@ define(["require", "exports", "./Status", "../Core", "../Dom/Change/Listener", " if (options.ignoreError !== true && showError) { const html = this.getErrorHtml(data, xhr); if (html) { - new Promise((resolve_2, reject_2) => { require(['../Ui/Dialog'], resolve_2, reject_2); }).then(__importStar).then(UiDialog => { + new Promise((resolve_2, reject_2) => { require(['../Ui/Dialog'], resolve_2, reject_2); }).then(tslib_1.__importStar).then(UiDialog => { UiDialog.openStatic(Util_1.default.getUniqueId(), html, { title: Language.get('wcf.global.error.title'), }); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js index 18809497c4..8343900dfd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ajax/Status.js @@ -6,30 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ajax/Status */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Language"], function (require, exports, Language) { +define(["require", "exports", "tslib", "../Language"], function (require, exports, tslib_1, Language) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hide = exports.show = void 0; - Language = __importStar(Language); + Language = tslib_1.__importStar(Language); class AjaxStatus { constructor() { this._activeRequests = 0; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/BackgroundQueue.js b/wcfsetup/install/files/js/WoltLabSuite/Core/BackgroundQueue.js index 24b103e622..e5672e85ad 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/BackgroundQueue.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/BackgroundQueue.js @@ -6,30 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/BackgroundQueue */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "./Ajax"], function (require, exports, Ajax) { +define(["require", "exports", "tslib", "./Ajax"], function (require, exports, tslib_1, Ajax) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.invoke = exports.setUrl = void 0; - Ajax = __importStar(Ajax); + Ajax = tslib_1.__importStar(Ajax); class BackgroundQueue { constructor(url) { this._invocations = 0; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js index f9d4d0109d..ef1e3234ad 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Picker.js @@ -6,38 +6,16 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Date/Picker */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "./Util", "../Dom/Change/Listener", "../Event/Handler", "../Language", "../Ui/Alignment", "../Ui/CloseOverlay", "../Dom/Util"], function (require, exports, Core, DateUtil, Listener_1, EventHandler, Language, UiAlignment, CloseOverlay_1, Util_1) { +define(["require", "exports", "tslib", "../Core", "./Util", "../Dom/Change/Listener", "../Event/Handler", "../Language", "../Ui/Alignment", "../Ui/CloseOverlay", "../Dom/Util"], function (require, exports, tslib_1, Core, DateUtil, Listener_1, EventHandler, Language, UiAlignment, CloseOverlay_1, Util_1) { "use strict"; - Core = __importStar(Core); - DateUtil = __importStar(DateUtil); - Listener_1 = __importDefault(Listener_1); - EventHandler = __importStar(EventHandler); - Language = __importStar(Language); - UiAlignment = __importStar(UiAlignment); - CloseOverlay_1 = __importDefault(CloseOverlay_1); - Util_1 = __importDefault(Util_1); + Core = tslib_1.__importStar(Core); + DateUtil = tslib_1.__importStar(DateUtil); + Listener_1 = tslib_1.__importDefault(Listener_1); + EventHandler = tslib_1.__importStar(EventHandler); + Language = tslib_1.__importStar(Language); + UiAlignment = tslib_1.__importStar(UiAlignment); + CloseOverlay_1 = tslib_1.__importDefault(CloseOverlay_1); + Util_1 = tslib_1.__importDefault(Util_1); let _didInit = false; let _firstDayOfWeek = 0; let _wasInsidePicker = false; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js index e45e216445..7b1084f621 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js @@ -6,37 +6,15 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Date/Time/Relative */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Core", "../Util", "../../Dom/Change/Listener", "../../Language", "../../Timer/Repeating"], function (require, exports, Core, DateUtil, Listener_1, Language, Repeating_1) { +define(["require", "exports", "tslib", "../../Core", "../Util", "../../Dom/Change/Listener", "../../Language", "../../Timer/Repeating"], function (require, exports, tslib_1, Core, DateUtil, Listener_1, Language, Repeating_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setup = void 0; - Core = __importStar(Core); - DateUtil = __importStar(DateUtil); - Listener_1 = __importDefault(Listener_1); - Language = __importStar(Language); - Repeating_1 = __importDefault(Repeating_1); + Core = tslib_1.__importStar(Core); + DateUtil = tslib_1.__importStar(DateUtil); + Listener_1 = tslib_1.__importDefault(Listener_1); + Language = tslib_1.__importStar(Language); + Repeating_1 = tslib_1.__importDefault(Repeating_1); let _isActive = true; let _isPending = false; let _offset; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Util.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Util.js index c6b3235ab0..ea1bf0aed1 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Util.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Util.js @@ -7,30 +7,11 @@ * @module DateUtil (alias) * @module WoltLabSuite/Core/Date/Util */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Language"], function (require, exports, Language) { +define(["require", "exports", "tslib", "../Language"], function (require, exports, tslib_1, Language) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getTimezoneDate = exports.getTimeElement = exports.gmdate = exports.format = exports.formatDateTime = exports.formatTime = exports.formatDate = void 0; - Language = __importStar(Language); + Language = tslib_1.__importStar(Language); /** * Returns the formatted date. */ diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Change/Listener.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Change/Listener.js index fc76a104ba..650d6dbf05 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Change/Listener.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Change/Listener.js @@ -8,12 +8,9 @@ * @module Dom/ChangeListener (alias) * @module WoltLabSuite/Core/Dom/Change/Listener */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../CallbackList"], function (require, exports, CallbackList_1) { +define(["require", "exports", "tslib", "../../CallbackList"], function (require, exports, tslib_1, CallbackList_1) { "use strict"; - CallbackList_1 = __importDefault(CallbackList_1); + CallbackList_1 = tslib_1.__importDefault(CallbackList_1); const _callbackList = new CallbackList_1.default(); let _hot = false; const DomChangeListener = { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Util.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Util.js index 4405f918a1..e27a074295 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Util.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Dom/Util.js @@ -7,28 +7,9 @@ * @module Dom/Util (alias) * @module WoltLabSuite/Core/Dom/Util */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../StringUtil"], function (require, exports, StringUtil) { +define(["require", "exports", "tslib", "../StringUtil"], function (require, exports, tslib_1, StringUtil) { "use strict"; - StringUtil = __importStar(StringUtil); + StringUtil = tslib_1.__importStar(StringUtil); function _isBoundaryNode(element, ancestor, position) { if (!ancestor.contains(element)) { throw new Error('Ancestor element does not contain target element.'); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Event/Handler.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Event/Handler.js index 87be2313de..5e4084fd6e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Event/Handler.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Event/Handler.js @@ -7,34 +7,12 @@ * @module EventHandler (alias) * @module WoltLabSuite/Core/Event/Handler */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "../Devtools"], function (require, exports, Core, Devtools_1) { +define(["require", "exports", "tslib", "../Core", "../Devtools"], function (require, exports, tslib_1, Core, Devtools_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.removeAllBySuffix = exports.removeAll = exports.remove = exports.fire = exports.add = void 0; - Core = __importStar(Core); - Devtools_1 = __importDefault(Devtools_1); + Core = tslib_1.__importStar(Core); + Devtools_1 = tslib_1.__importDefault(Devtools_1); const _listeners = new Map(); /** * Registers an event listener. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/FileUtil.js b/wcfsetup/install/files/js/WoltLabSuite/Core/FileUtil.js index 1937434d56..42207ccee5 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/FileUtil.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/FileUtil.js @@ -6,30 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/FileUtil */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "./StringUtil"], function (require, exports, StringUtil) { +define(["require", "exports", "tslib", "./StringUtil"], function (require, exports, tslib_1, StringUtil) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.blobToFile = exports.getExtensionByMimeType = exports.getIconNameByFilename = exports.formatFilesize = void 0; - StringUtil = __importStar(StringUtil); + StringUtil = tslib_1.__importStar(StringUtil); const _fileExtensionIconMapping = new Map(Object.entries({ // archive zip: 'archive', diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js b/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js index c31bd12921..3bd6decea3 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/I18n/Plural.js @@ -6,28 +6,9 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/I18n/Plural */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../StringUtil"], function (require, exports, StringUtil) { +define(["require", "exports", "tslib", "../StringUtil"], function (require, exports, tslib_1, StringUtil) { "use strict"; - StringUtil = __importStar(StringUtil); + StringUtil = tslib_1.__importStar(StringUtil); const PLURAL_FEW = 'few'; const PLURAL_MANY = 'many'; const PLURAL_ONE = 'one'; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Image/Resizer.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Image/Resizer.js index cb2d801c3c..6136663f9f 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Image/Resizer.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Image/Resizer.js @@ -6,33 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Image/Resizer */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../FileUtil", "./ExifUtil", "pica"], function (require, exports, FileUtil, ExifUtil, pica_1) { +define(["require", "exports", "tslib", "../FileUtil", "./ExifUtil", "pica"], function (require, exports, tslib_1, FileUtil, ExifUtil, pica_1) { "use strict"; - FileUtil = __importStar(FileUtil); - ExifUtil = __importStar(ExifUtil); - pica_1 = __importDefault(pica_1); + FileUtil = tslib_1.__importStar(FileUtil); + ExifUtil = tslib_1.__importStar(ExifUtil); + pica_1 = tslib_1.__importDefault(pica_1); const pica = new pica_1.default({ features: ["js", "wasm", "ww"] }); const DEFAULT_WIDTH = 800; const DEFAULT_HEIGHT = 600; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js index df89816743..8baf330ac2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Language.js @@ -7,14 +7,11 @@ * @module Language (alias) * @module WoltLabSuite/Core/Language */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "./Template"], function (require, exports, Template_1) { +define(["require", "exports", "tslib", "./Template"], function (require, exports, tslib_1, Template_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.get = exports.add = exports.addObject = void 0; - Template_1 = __importDefault(Template_1); + Template_1 = tslib_1.__importDefault(Template_1); const _languageItems = new Map(); /** * Adds all the language items in the given object to the store. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/StringUtil.js b/wcfsetup/install/files/js/WoltLabSuite/Core/StringUtil.js index de3f2624ad..3870e8cf8a 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/StringUtil.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/StringUtil.js @@ -7,31 +7,12 @@ * @module StringUtil (alias) * @module WoltLabSuite/Core/StringUtil */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "./Language", "./NumberUtil"], function (require, exports, Language, NumberUtil) { +define(["require", "exports", "tslib", "./Language", "./NumberUtil"], function (require, exports, tslib_1, Language, NumberUtil) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.shortUnit = exports.unescapeHTML = exports.ucfirst = exports.lcfirst = exports.formatNumeric = exports.escapeRegExp = exports.escapeHTML = exports.addThousandsSeparator = void 0; - Language = __importStar(Language); - NumberUtil = __importStar(NumberUtil); + Language = tslib_1.__importStar(Language); + NumberUtil = tslib_1.__importStar(NumberUtil); /** * Adds thousands separators to a given number. * diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Template.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Template.js index c3c3c7b2d1..0eb547e991 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Template.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Template.js @@ -9,31 +9,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Template */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "./Template.grammar", "./StringUtil", "./Language", "./I18n/Plural"], function (require, exports, parser, StringUtil, Language, I18nPlural) { +define(["require", "exports", "tslib", "./Template.grammar", "./StringUtil", "./Language", "./I18n/Plural"], function (require, exports, tslib_1, parser, StringUtil, Language, I18nPlural) { "use strict"; - parser = __importStar(parser); - StringUtil = __importStar(StringUtil); - Language = __importStar(Language); - I18nPlural = __importStar(I18nPlural); + parser = tslib_1.__importStar(parser); + StringUtil = tslib_1.__importStar(StringUtil); + Language = tslib_1.__importStar(Language); + I18nPlural = tslib_1.__importStar(I18nPlural); // @todo: still required? // work around bug in AMD module generation of Jison /*function Parser() { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Acl/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Acl/Simple.js index 9ef2772c75..4060befbdc 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Acl/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Acl/Simple.js @@ -1,32 +1,10 @@ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Language", "../../StringUtil", "../../Dom/Change/Listener", "../../Dom/Util", "../User/Search/Input"], function (require, exports, Language, StringUtil, Listener_1, Util_1, Input_1) { +define(["require", "exports", "tslib", "../../Language", "../../StringUtil", "../../Dom/Change/Listener", "../../Dom/Util", "../User/Search/Input"], function (require, exports, tslib_1, Language, StringUtil, Listener_1, Util_1, Input_1) { "use strict"; - Language = __importStar(Language); - StringUtil = __importStar(StringUtil); - Listener_1 = __importDefault(Listener_1); - Util_1 = __importDefault(Util_1); - Input_1 = __importDefault(Input_1); + Language = tslib_1.__importStar(Language); + StringUtil = tslib_1.__importStar(StringUtil); + Listener_1 = tslib_1.__importDefault(Listener_1); + Util_1 = tslib_1.__importDefault(Util_1); + Input_1 = tslib_1.__importDefault(Input_1); class UiAclSimple { constructor(prefix, inputName) { this.prefix = prefix || ''; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js index 66c613f198..c2bbbde7bd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Alignment.js @@ -7,36 +7,14 @@ * @module Ui/Alignment (alias) * @module WoltLabSuite/Core/Ui/Alignment */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "../Dom/Traverse", "../Dom/Util", "../Language"], function (require, exports, Core, DomTraverse, Util_1, Language) { +define(["require", "exports", "tslib", "../Core", "../Dom/Traverse", "../Dom/Util", "../Language"], function (require, exports, tslib_1, Core, DomTraverse, Util_1, Language) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.set = void 0; - Core = __importStar(Core); - DomTraverse = __importStar(DomTraverse); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); + Core = tslib_1.__importStar(Core); + DomTraverse = tslib_1.__importStar(DomTraverse); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); /** * Calculates left/right position and verifies if the element would be still within the page's boundaries. * diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js index 1790d31e99..171ca2c535 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/MarkAllAsRead.js @@ -6,30 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Article/MarkAllAsRead */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../../Ajax"], function (require, exports, Ajax) { +define(["require", "exports", "tslib", "../../Ajax"], function (require, exports, tslib_1, Ajax) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; - Ajax = __importStar(Ajax); + Ajax = tslib_1.__importStar(Ajax); class UiArticleMarkAllAsRead { constructor() { document.querySelectorAll('.markAllAsReadButton').forEach(button => { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js index cece9fd7d4..b68e15f806 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Article/Search.js @@ -1,34 +1,12 @@ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog"], function (require, exports, Ajax, Util_1, Language, StringUtil, Dialog_1) { +define(["require", "exports", "tslib", "../../Ajax", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog"], function (require, exports, tslib_1, Ajax, Util_1, Language, StringUtil, Dialog_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.open = void 0; - Ajax = __importStar(Ajax); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); - StringUtil = __importStar(StringUtil); - Dialog_1 = __importDefault(Dialog_1); + Ajax = tslib_1.__importStar(Ajax); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); + StringUtil = tslib_1.__importStar(StringUtil); + Dialog_1 = tslib_1.__importDefault(Dialog_1); class UiArticleSearch { constructor() { this.callbackSelect = undefined; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/CloseOverlay.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/CloseOverlay.js index 9acd0c4a8c..206f1f1a61 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/CloseOverlay.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/CloseOverlay.js @@ -7,12 +7,9 @@ * @module Ui/CloseOverlay (alias) * @module WoltLabSuite/Core/Ui/CloseOverlay */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../CallbackList"], function (require, exports, CallbackList_1) { +define(["require", "exports", "tslib", "../CallbackList"], function (require, exports, tslib_1, CallbackList_1) { "use strict"; - CallbackList_1 = __importDefault(CallbackList_1); + CallbackList_1 = tslib_1.__importDefault(CallbackList_1); const _callbackList = new CallbackList_1.default(); const UiCloseOverlay = { /** diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Confirmation.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Confirmation.js index e6a477d848..7888f6061c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Confirmation.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Confirmation.js @@ -7,35 +7,13 @@ * @module Ui/Confirmation (alias) * @module WoltLabSuite/Core/Ui/Confirmation */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "../Language", "./Dialog"], function (require, exports, Core, Language, Dialog_1) { +define(["require", "exports", "tslib", "../Core", "../Language", "./Dialog"], function (require, exports, tslib_1, Core, Language, Dialog_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getContentElement = exports.show = void 0; - Core = __importStar(Core); - Language = __importStar(Language); - Dialog_1 = __importDefault(Dialog_1); + Core = tslib_1.__importStar(Core); + Language = tslib_1.__importStar(Language); + Dialog_1 = tslib_1.__importDefault(Dialog_1); class UiConfirmation { constructor() { this._active = false; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js index 61b6031897..aec10acfe2 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dialog.js @@ -7,38 +7,16 @@ * @module Ui/Dialog (alias) * @module WoltLabSuite/Core/Ui/Dialog */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "../Dom/Change/Listener", "./Screen", "../Dom/Util", "../Language", "../Environment", "../Event/Handler", "./Dropdown/Simple"], function (require, exports, Core, Listener_1, UiScreen, Util_1, Language, Environment, EventHandler, Simple_1) { +define(["require", "exports", "tslib", "../Core", "../Dom/Change/Listener", "./Screen", "../Dom/Util", "../Language", "../Environment", "../Event/Handler", "./Dropdown/Simple"], function (require, exports, tslib_1, Core, Listener_1, UiScreen, Util_1, Language, Environment, EventHandler, Simple_1) { "use strict"; - Core = __importStar(Core); - Listener_1 = __importDefault(Listener_1); - UiScreen = __importStar(UiScreen); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); - Environment = __importStar(Environment); - EventHandler = __importStar(EventHandler); - Simple_1 = __importDefault(Simple_1); + Core = tslib_1.__importStar(Core); + Listener_1 = tslib_1.__importDefault(Listener_1); + UiScreen = tslib_1.__importStar(UiScreen); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); + Environment = tslib_1.__importStar(Environment); + EventHandler = tslib_1.__importStar(EventHandler); + Simple_1 = tslib_1.__importDefault(Simple_1); let _activeDialog = null; let _callbackFocus; let _container; @@ -174,7 +152,7 @@ define(["require", "exports", "../Core", "../Dom/Change/Listener", "./Screen", " setupData.source = html; } else { - new Promise((resolve_1, reject_1) => { require(['../Ajax'], resolve_1, reject_1); }).then(__importStar).then(Ajax => { + new Promise((resolve_1, reject_1) => { require(['../Ajax'], resolve_1, reject_1); }).then(tslib_1.__importStar).then(Ajax => { const source = setupData.source; Ajax.api(this, source.data, data => { if (data.returnValues && typeof data.returnValues.template === 'string') { @@ -237,7 +215,7 @@ define(["require", "exports", "../Core", "../Dom/Change/Listener", "./Screen", " options.backdropCloseOnClick = false; if (options.closeConfirmMessage) { options.onBeforeClose = id => { - new Promise((resolve_2, reject_2) => { require(['./Confirmation'], resolve_2, reject_2); }).then(__importStar).then(UiConfirmation => { + new Promise((resolve_2, reject_2) => { require(['./Confirmation'], resolve_2, reject_2); }).then(tslib_1.__importStar).then(UiConfirmation => { UiConfirmation.show({ confirm: this.close.bind(this, id), message: options.closeConfirmMessage || '', diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js index 3f54bac6c4..dd1708d276 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Builder.js @@ -6,34 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Dropdown/Builder */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Core", "./Simple"], function (require, exports, Core, Simple_1) { +define(["require", "exports", "tslib", "../../Core", "./Simple"], function (require, exports, tslib_1, Core, Simple_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.divider = exports.attach = exports.setItems = exports.appendItems = exports.appendItem = exports.buildItem = exports.create = void 0; - Core = __importStar(Core); - Simple_1 = __importDefault(Simple_1); + Core = tslib_1.__importStar(Core); + Simple_1 = tslib_1.__importDefault(Simple_1); const _validIconSizes = [16, 24, 32, 48, 64, 96, 144]; function validateList(list) { if (!(list instanceof HTMLUListElement)) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Reusable.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Reusable.js index ecb4f2c7c2..41e1777dc7 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Reusable.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Reusable.js @@ -7,14 +7,11 @@ * @module Ui/ReusableDropdown (alias) * @module WoltLabSuite/Core/Ui/Dropdown/Reusable */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "./Simple"], function (require, exports, Simple_1) { +define(["require", "exports", "tslib", "./Simple"], function (require, exports, tslib_1, Simple_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.toggleDropdown = exports.registerCallback = exports.getDropdownMenu = exports.init = void 0; - Simple_1 = __importDefault(Simple_1); + Simple_1 = tslib_1.__importDefault(Simple_1); const _dropdowns = new Map(); let _ghostElementId = 0; /** diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js index bdce725786..8ca05bf7ac 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Dropdown/Simple.js @@ -7,37 +7,15 @@ * @module Ui/SimpleDropdown (alias) * @module WoltLabSuite/Core/Ui/Dropdown/Simple */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../CallbackList", "../../Core", "../../Dom/Change/Listener", "../../Dom/Traverse", "../../Dom/Util", "../Alignment", "../CloseOverlay"], function (require, exports, CallbackList_1, Core, Listener_1, DomTraverse, Util_1, UiAlignment, CloseOverlay_1) { +define(["require", "exports", "tslib", "../../CallbackList", "../../Core", "../../Dom/Change/Listener", "../../Dom/Traverse", "../../Dom/Util", "../Alignment", "../CloseOverlay"], function (require, exports, tslib_1, CallbackList_1, Core, Listener_1, DomTraverse, Util_1, UiAlignment, CloseOverlay_1) { "use strict"; - CallbackList_1 = __importDefault(CallbackList_1); - Core = __importStar(Core); - Listener_1 = __importDefault(Listener_1); - DomTraverse = __importStar(DomTraverse); - Util_1 = __importDefault(Util_1); - UiAlignment = __importStar(UiAlignment); - CloseOverlay_1 = __importDefault(CloseOverlay_1); + CallbackList_1 = tslib_1.__importDefault(CallbackList_1); + Core = tslib_1.__importStar(Core); + Listener_1 = tslib_1.__importDefault(Listener_1); + DomTraverse = tslib_1.__importStar(DomTraverse); + Util_1 = tslib_1.__importDefault(Util_1); + UiAlignment = tslib_1.__importStar(UiAlignment); + CloseOverlay_1 = tslib_1.__importDefault(CloseOverlay_1); let _availableDropdowns; const _callbacks = new CallbackList_1.default(); let _didInit = false; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Delete.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Delete.js index ae457f517b..d8a8871b98 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Delete.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/File/Delete.js @@ -7,34 +7,12 @@ * @module WoltLabSuite/Core/Ui/File/Delete * @since 5.2 */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Core", "../../Dom/Change/Listener", "../../Language"], function (require, exports, Ajax, Core, Listener_1, Language) { +define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Change/Listener", "../../Language"], function (require, exports, tslib_1, Ajax, Core, Listener_1, Language) { "use strict"; - Ajax = __importStar(Ajax); - Core = __importStar(Core); - Listener_1 = __importDefault(Listener_1); - Language = __importStar(Language); + Ajax = tslib_1.__importStar(Ajax); + Core = tslib_1.__importStar(Core); + Listener_1 = tslib_1.__importDefault(Listener_1); + Language = tslib_1.__importStar(Language); class UiFileDelete { // TODO: uploadHandler should not be `any` constructor(buttonContainerId, targetId, isSingleImagePreview, uploadHandler) { diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/FlexibleMenu.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/FlexibleMenu.js index deae94e7a8..282b7968f1 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/FlexibleMenu.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/FlexibleMenu.js @@ -7,36 +7,14 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/FlexibleMenu */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Dom/Change/Listener", "../Dom/Util", "../Dom/Traverse", "./Dropdown/Simple"], function (require, exports, Listener_1, Util_1, DomTraverse, Simple_1) { +define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Dom/Util", "../Dom/Traverse", "./Dropdown/Simple"], function (require, exports, tslib_1, Listener_1, Util_1, DomTraverse, Simple_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.rebuild = exports.rebuildAll = exports.registerTabMenus = exports.register = exports.setup = void 0; - Listener_1 = __importDefault(Listener_1); - Util_1 = __importDefault(Util_1); - DomTraverse = __importStar(DomTraverse); - Simple_1 = __importDefault(Simple_1); + Listener_1 = tslib_1.__importDefault(Listener_1); + Util_1 = tslib_1.__importDefault(Util_1); + DomTraverse = tslib_1.__importStar(DomTraverse); + Simple_1 = tslib_1.__importDefault(Simple_1); const _containers = new Map(); const _dropdowns = new Map(); const _dropdownMenus = new Map(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js index a0e6926e51..e9a02bf738 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/ItemList.js @@ -6,38 +6,16 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/ItemList */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Core", "../Dom/Traverse", "../Language", "./Suggestion", "./Dropdown/Simple", "../Dom/Util"], function (require, exports, Core, DomTraverse, Language, Suggestion_1, Simple_1, Util_1) { +define(["require", "exports", "tslib", "../Core", "../Dom/Traverse", "../Language", "./Suggestion", "./Dropdown/Simple", "../Dom/Util"], function (require, exports, tslib_1, Core, DomTraverse, Language, Suggestion_1, Simple_1, Util_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setValues = exports.getValues = exports.init = void 0; - Core = __importStar(Core); - DomTraverse = __importStar(DomTraverse); - Language = __importStar(Language); - Suggestion_1 = __importDefault(Suggestion_1); - Simple_1 = __importDefault(Simple_1); - Util_1 = __importDefault(Util_1); + Core = tslib_1.__importStar(Core); + DomTraverse = tslib_1.__importStar(DomTraverse); + Language = tslib_1.__importStar(Language); + Suggestion_1 = tslib_1.__importDefault(Suggestion_1); + Simple_1 = tslib_1.__importDefault(Simple_1); + Util_1 = tslib_1.__importDefault(Util_1); let _activeId = ''; const _data = new Map(); /** diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js index 57cc927775..3353292b31 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Notification.js @@ -7,30 +7,11 @@ * @module Ui/Notification (alias) * @module WoltLabSuite/Core/Ui/Notification */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Language"], function (require, exports, Language) { +define(["require", "exports", "tslib", "../Language"], function (require, exports, tslib_1, Language) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.show = void 0; - Language = __importStar(Language); + Language = tslib_1.__importStar(Language); let _busy = false; let _callback = null; let _didInit = false; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js index 8cb4bd13fc..356e1fbba4 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Action.js @@ -6,31 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Page/Action */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../../Core", "../../Language"], function (require, exports, Core, Language) { +define(["require", "exports", "tslib", "../../Core", "../../Language"], function (require, exports, tslib_1, Core, Language) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.show = exports.hide = exports.remove = exports.get = exports.has = exports.add = exports.setup = void 0; - Core = __importStar(Core); - Language = __importStar(Language); + Core = tslib_1.__importStar(Core); + Language = tslib_1.__importStar(Language); const _buttons = new Map(); let _container; let _didInit = false; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpTo.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpTo.js index a100922336..473114031c 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpTo.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/JumpTo.js @@ -6,34 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Page/JumpTo */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Language", "../Dialog"], function (require, exports, Language, Dialog_1) { +define(["require", "exports", "tslib", "../../Language", "../Dialog"], function (require, exports, tslib_1, Language, Dialog_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; - Language = __importStar(Language); - Dialog_1 = __importDefault(Dialog_1); + Language = tslib_1.__importStar(Language); + Dialog_1 = tslib_1.__importDefault(Dialog_1); class UiPageJumpTo { constructor() { this.elements = new Map(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Search.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Search.js index bde3e8f319..6ef6a9fe35 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Search.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Page/Search.js @@ -1,34 +1,12 @@ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog"], function (require, exports, Ajax, Util_1, Language, StringUtil, Dialog_1) { +define(["require", "exports", "tslib", "../../Ajax", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog"], function (require, exports, tslib_1, Ajax, Util_1, Language, StringUtil, Dialog_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.open = void 0; - Ajax = __importStar(Ajax); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); - StringUtil = __importStar(StringUtil); - Dialog_1 = __importDefault(Dialog_1); + Ajax = tslib_1.__importStar(Ajax); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); + StringUtil = tslib_1.__importStar(StringUtil); + Dialog_1 = tslib_1.__importDefault(Dialog_1); class UiPageSearch { constructor() { this.callbackSelect = undefined; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Pagination.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Pagination.js index 6d42605132..157b31e9a8 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Pagination.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Pagination.js @@ -6,31 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Pagination */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Core", "../Language", "../StringUtil", "./Page/JumpTo"], function (require, exports, Core, Language, StringUtil, UiPageJumpTo) { +define(["require", "exports", "tslib", "../Core", "../Language", "../StringUtil", "./Page/JumpTo"], function (require, exports, tslib_1, Core, Language, StringUtil, UiPageJumpTo) { "use strict"; - Core = __importStar(Core); - Language = __importStar(Language); - StringUtil = __importStar(StringUtil); - UiPageJumpTo = __importStar(UiPageJumpTo); + Core = tslib_1.__importStar(Core); + Language = tslib_1.__importStar(Language); + StringUtil = tslib_1.__importStar(StringUtil); + UiPageJumpTo = tslib_1.__importStar(UiPageJumpTo); class UiPagination { /** * Initializes the pagination. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js index 784feb559f..e2f4c984ac 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Screen.js @@ -7,31 +7,12 @@ * @module Ui/Screen (alias) * @module WoltLabSuite/Core/Ui/Screen */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../Core", "../Environment"], function (require, exports, Core, Environment) { +define(["require", "exports", "tslib", "../Core", "../Environment"], function (require, exports, tslib_1, Core, Environment) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.setDialogContainer = exports.pageOverlayIsActive = exports.pageOverlayClose = exports.pageOverlayOpen = exports.scrollEnable = exports.scrollDisable = exports.is = exports.remove = exports.on = void 0; - Core = __importStar(Core); - Environment = __importStar(Environment); + Core = tslib_1.__importStar(Core); + Environment = tslib_1.__importStar(Environment); const _mql = new Map(); let _dialogContainer; let _scrollDisableCounter = 0; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Scroll.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Scroll.js index 7d6f7c2bca..9a375e7552 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Scroll.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Scroll.js @@ -1,11 +1,8 @@ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Dom/Util"], function (require, exports, Util_1) { +define(["require", "exports", "tslib", "../Dom/Util"], function (require, exports, tslib_1, Util_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.element = void 0; - Util_1 = __importDefault(Util_1); + Util_1 = tslib_1.__importDefault(Util_1); let _callback = null; let _offset = null; let _timeoutScroll = null; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Input.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Input.js index 2e81735d15..e0b4999bfa 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Input.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Input.js @@ -6,34 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Search/Input */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Core", "../../Dom/Util", "../Dropdown/Simple"], function (require, exports, Ajax, Core, Util_1, Simple_1) { +define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Util", "../Dropdown/Simple"], function (require, exports, tslib_1, Ajax, Core, Util_1, Simple_1) { "use strict"; - Ajax = __importStar(Ajax); - Core = __importStar(Core); - Util_1 = __importDefault(Util_1); - Simple_1 = __importDefault(Simple_1); + Ajax = tslib_1.__importStar(Ajax); + Core = tslib_1.__importStar(Core); + Util_1 = tslib_1.__importDefault(Util_1); + Simple_1 = tslib_1.__importDefault(Simple_1); class UiSearchInput { /** * Initializes the search input field. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js index e9bc6462bc..cebf0f897d 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Search/Page.js @@ -1,35 +1,13 @@ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Core", "../../Dom/Traverse", "../../Dom/Util", "../Dropdown/Simple", "../Screen", "./Input"], function (require, exports, Core, DomTraverse, Util_1, Simple_1, UiScreen, Input_1) { +define(["require", "exports", "tslib", "../../Core", "../../Dom/Traverse", "../../Dom/Util", "../Dropdown/Simple", "../Screen", "./Input"], function (require, exports, tslib_1, Core, DomTraverse, Util_1, Simple_1, UiScreen, Input_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; - Core = __importStar(Core); - DomTraverse = __importStar(DomTraverse); - Util_1 = __importDefault(Util_1); - Simple_1 = __importDefault(Simple_1); - UiScreen = __importStar(UiScreen); - Input_1 = __importDefault(Input_1); + Core = tslib_1.__importStar(Core); + DomTraverse = tslib_1.__importStar(DomTraverse); + Util_1 = tslib_1.__importDefault(Util_1); + Simple_1 = tslib_1.__importDefault(Simple_1); + UiScreen = tslib_1.__importStar(UiScreen); + Input_1 = tslib_1.__importDefault(Input_1); function click(event) { event.preventDefault(); const pageHeader = document.getElementById('pageHeader'); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js index 5162d5bfe0..cd258f523a 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Smiley/Insert.js @@ -6,28 +6,9 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Smiley/Insert */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -define(["require", "exports", "../../Event/Handler"], function (require, exports, EventHandler) { +define(["require", "exports", "tslib", "../../Event/Handler"], function (require, exports, tslib_1, EventHandler) { "use strict"; - EventHandler = __importStar(EventHandler); + EventHandler = tslib_1.__importStar(EventHandler); class UiSmileyInsert { constructor(editorId) { this.editorId = editorId; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js index b376d82618..9a474ffc9e 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Suggestion.js @@ -6,33 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Suggestion */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Ajax", "../Core", "./Dropdown/Simple"], function (require, exports, Ajax, Core, Simple_1) { +define(["require", "exports", "tslib", "../Ajax", "../Core", "./Dropdown/Simple"], function (require, exports, tslib_1, Ajax, Core, Simple_1) { "use strict"; - Ajax = __importStar(Ajax); - Core = __importStar(Core); - Simple_1 = __importDefault(Simple_1); + Ajax = tslib_1.__importStar(Ajax); + Core = tslib_1.__importStar(Core); + Simple_1 = tslib_1.__importDefault(Simple_1); class UiSuggestion { /** * Initializes a new suggestion input. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js index 40bfdbf373..c18ac91a52 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu.js @@ -7,38 +7,16 @@ * @module Ui/TabMenu (alias) * @module WoltLabSuite/Core/Ui/TabMenu */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Dom/Change/Listener", "../Dom/Util", "./TabMenu/Simple", "./CloseOverlay", "./Screen", "./Scroll"], function (require, exports, Listener_1, Util_1, Simple_1, CloseOverlay_1, UiScreen, UiScroll) { +define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Dom/Util", "./TabMenu/Simple", "./CloseOverlay", "./Screen", "./Scroll"], function (require, exports, tslib_1, Listener_1, Util_1, Simple_1, CloseOverlay_1, UiScreen, UiScroll) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.scrollToTab = exports.getTabMenu = exports.setup = void 0; - Listener_1 = __importDefault(Listener_1); - Util_1 = __importDefault(Util_1); - Simple_1 = __importDefault(Simple_1); - CloseOverlay_1 = __importDefault(CloseOverlay_1); - UiScreen = __importStar(UiScreen); - UiScroll = __importStar(UiScroll); + Listener_1 = tslib_1.__importDefault(Listener_1); + Util_1 = tslib_1.__importDefault(Util_1); + Simple_1 = tslib_1.__importDefault(Simple_1); + CloseOverlay_1 = tslib_1.__importDefault(CloseOverlay_1); + UiScreen = tslib_1.__importStar(UiScreen); + UiScroll = tslib_1.__importStar(UiScroll); let _activeList = null; let _enableTabScroll = false; const _tabMenus = new Map(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js index 68c246d352..b58e6433f7 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/TabMenu/Simple.js @@ -6,34 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/TabMenu/Simple */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Dom/Traverse", "../../Dom/Util", "../../Environment", "../../Event/Handler"], function (require, exports, DomTraverse, Util_1, Environment, EventHandler) { +define(["require", "exports", "tslib", "../../Dom/Traverse", "../../Dom/Util", "../../Environment", "../../Event/Handler"], function (require, exports, tslib_1, DomTraverse, Util_1, Environment, EventHandler) { "use strict"; - DomTraverse = __importStar(DomTraverse); - Util_1 = __importDefault(Util_1); - Environment = __importStar(Environment); - EventHandler = __importStar(EventHandler); + DomTraverse = tslib_1.__importStar(DomTraverse); + Util_1 = tslib_1.__importDefault(Util_1); + Environment = tslib_1.__importStar(Environment); + EventHandler = tslib_1.__importStar(EventHandler); class TabMenuSimple { constructor(container) { this.containers = new Map(); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js index 72dd2f930a..0a05dda5ae 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Toggle/Input.js @@ -20,12 +20,9 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Toggle/Input */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Dom/Util"], function (require, exports, Util_1) { +define(["require", "exports", "tslib", "../../Dom/Util"], function (require, exports, tslib_1, Util_1) { "use strict"; - Util_1 = __importDefault(Util_1); + Util_1 = tslib_1.__importDefault(Util_1); class UiToggleInput { /** * Initializes a new input toggle. diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js index c8f0e6a81e..3f07f0fa29 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/Tooltip.js @@ -6,35 +6,13 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/Tooltip */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../Dom/Change/Listener", "../Environment", "./Alignment"], function (require, exports, Listener_1, Environment, UiAlignment) { +define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Environment", "./Alignment"], function (require, exports, tslib_1, Listener_1, Environment, UiAlignment) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = exports.setup = void 0; - Listener_1 = __importDefault(Listener_1); - Environment = __importStar(Environment); - UiAlignment = __importStar(UiAlignment); + Listener_1 = tslib_1.__importDefault(Listener_1); + Environment = tslib_1.__importStar(Environment); + UiAlignment = tslib_1.__importStar(UiAlignment); let _pointer; let _text; let _tooltip; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js index a9c7ed3c9b..e8da413585 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Editor.js @@ -6,39 +6,17 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/User/Editor */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Core", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog", "../Notification"], function (require, exports, Ajax, Core, Util_1, Language, StringUtil, Dialog_1, UiNotification) { +define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Util", "../../Language", "../../StringUtil", "../Dialog", "../Notification"], function (require, exports, tslib_1, Ajax, Core, Util_1, Language, StringUtil, Dialog_1, UiNotification) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; - Ajax = __importStar(Ajax); - Core = __importStar(Core); - Util_1 = __importDefault(Util_1); - Language = __importStar(Language); - StringUtil = __importStar(StringUtil); - Dialog_1 = __importDefault(Dialog_1); - UiNotification = __importStar(UiNotification); + Ajax = tslib_1.__importStar(Ajax); + Core = tslib_1.__importStar(Core); + Util_1 = tslib_1.__importDefault(Util_1); + Language = tslib_1.__importStar(Language); + StringUtil = tslib_1.__importStar(StringUtil); + Dialog_1 = tslib_1.__importDefault(Dialog_1); + UiNotification = tslib_1.__importStar(UiNotification); class UserEditor { constructor() { this.actionName = ''; diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js index 68064520e3..f1131cf3fd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Ignore.js @@ -6,14 +6,11 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/User/Ignore */ -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Dom/Change/Listener"], function (require, exports, Listener_1) { +define(["require", "exports", "tslib", "../../Dom/Change/Listener"], function (require, exports, tslib_1, Listener_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.init = void 0; - Listener_1 = __importDefault(Listener_1); + Listener_1 = tslib_1.__importDefault(Listener_1); const _availableMessages = document.getElementsByClassName('ignoredUserMessage'); const _knownMessages = new Set(); /** diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js index 42f6230e9b..815539e6ef 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/List.js @@ -6,35 +6,13 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/User/List */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../Ajax", "../../Core", "../../Dom/Util", "../Dialog", "../Pagination"], function (require, exports, Ajax, Core, Util_1, Dialog_1, Pagination_1) { +define(["require", "exports", "tslib", "../../Ajax", "../../Core", "../../Dom/Util", "../Dialog", "../Pagination"], function (require, exports, tslib_1, Ajax, Core, Util_1, Dialog_1, Pagination_1) { "use strict"; - Ajax = __importStar(Ajax); - Core = __importStar(Core); - Util_1 = __importDefault(Util_1); - Dialog_1 = __importDefault(Dialog_1); - Pagination_1 = __importDefault(Pagination_1); + Ajax = tslib_1.__importStar(Ajax); + Core = tslib_1.__importStar(Core); + Util_1 = tslib_1.__importDefault(Util_1); + Dialog_1 = tslib_1.__importDefault(Dialog_1); + Pagination_1 = tslib_1.__importDefault(Pagination_1); /** * @constructor */ diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Search/Input.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Search/Input.js index 45fe279454..d01713b7bd 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Search/Input.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Search/Input.js @@ -7,32 +7,10 @@ * @module WoltLabSuite/Core/Ui/User/Search/Input * @see module:WoltLabSuite/Core/Ui/Search/Input */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../../Core", "../../Search/Input"], function (require, exports, Core, Input_1) { +define(["require", "exports", "tslib", "../../../Core", "../../Search/Input"], function (require, exports, tslib_1, Core, Input_1) { "use strict"; - Core = __importStar(Core); - Input_1 = __importDefault(Input_1); + Core = tslib_1.__importStar(Core); + Input_1 = tslib_1.__importDefault(Input_1); class UiUserSearchInput extends Input_1.default { constructor(element, options) { const includeUserGroups = (Core.isPlainObject(options) && options.includeUserGroups === true); diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js index 5f47f25137..9c6c9500ed 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Ui/User/Trophy/List.js @@ -6,34 +6,12 @@ * @license GNU Lesser General Public License * @module WoltLabSuite/Core/Ui/User/Trophy/List */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); -}) : function(o, v) { - o["default"] = v; -}); -var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; -}; -var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; -}; -define(["require", "exports", "../../../Ajax", "../../../Dom/Change/Listener", "../../Dialog", "../../Pagination"], function (require, exports, Ajax, Listener_1, Dialog_1, Pagination_1) { +define(["require", "exports", "tslib", "../../../Ajax", "../../../Dom/Change/Listener", "../../Dialog", "../../Pagination"], function (require, exports, tslib_1, Ajax, Listener_1, Dialog_1, Pagination_1) { "use strict"; - Ajax = __importStar(Ajax); - Listener_1 = __importDefault(Listener_1); - Dialog_1 = __importDefault(Dialog_1); - Pagination_1 = __importDefault(Pagination_1); + Ajax = tslib_1.__importStar(Ajax); + Listener_1 = tslib_1.__importDefault(Listener_1); + Dialog_1 = tslib_1.__importDefault(Dialog_1); + Pagination_1 = tslib_1.__importDefault(Pagination_1); class CacheData { constructor(pageCount, title) { this.pageCount = pageCount; diff --git a/wcfsetup/install/files/js/require.config.js b/wcfsetup/install/files/js/require.config.js index e8ff9923bc..61369552f9 100644 --- a/wcfsetup/install/files/js/require.config.js +++ b/wcfsetup/install/files/js/require.config.js @@ -7,6 +7,7 @@ requirejs.config({ 'Pica': '3rdParty/pica', 'pica': '3rdParty/pica', prism: '3rdParty/prism', + tslib: '3rdParty/tslib', zxcvbn: '3rdParty/zxcvbn', }, shim: {