"html-parsed-element": "^0.4.1",
"perfect-scrollbar": "^1.5.5",
"qr-creator": "^1.0.0",
- "reflect-metadata": "^0.1.13",
+ "reflect-metadata": "^0.2.2",
"tabbable": "^6.2.0",
- "tslib": "^2.6.2"
+ "tslib": "^2.8.1"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
- "esbuild": "^0.19.2",
- "eslint": "^8.48.0",
- "eslint-config-prettier": "^9.0.0",
- "prettier": "^3.0.3",
- "typescript": "^5.2.2"
+ "esbuild": "^0.24.0",
+ "eslint": "^9.13.0",
+ "eslint-config-prettier": "^9.1.0",
+ "prettier": "^3.3.3",
+ "typescript": "^5.6.3"
}
},
"node_modules/@aashutoshrathi/word-wrap": {
"lodash-es": "4.17.21"
}
},
+ "node_modules/@esbuild/aix-ppc64": {
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.24.0.tgz",
+ "integrity": "sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==",
+ "cpu": [
+ "ppc64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "aix"
+ ],
+ "engines": {
+ "node": ">=18"
+ }
+ },
"node_modules/@esbuild/android-arm": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.2.tgz",
- "integrity": "sha512-tM8yLeYVe7pRyAu9VMi/Q7aunpLwD139EY1S99xbQkT4/q2qa6eA4ige/WJQYdJ8GBL1K33pPFhPfPdJ/WzT8Q==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.24.0.tgz",
+ "integrity": "sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==",
"cpu": [
"arm"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/android-arm64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.2.tgz",
- "integrity": "sha512-lsB65vAbe90I/Qe10OjkmrdxSX4UJDjosDgb8sZUKcg3oefEuW2OT2Vozz8ef7wrJbMcmhvCC+hciF8jY/uAkw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.24.0.tgz",
+ "integrity": "sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==",
"cpu": [
"arm64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/android-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.2.tgz",
- "integrity": "sha512-qK/TpmHt2M/Hg82WXHRc/W/2SGo/l1thtDHZWqFq7oi24AjZ4O/CpPSu6ZuYKFkEgmZlFoa7CooAyYmuvnaG8w==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.24.0.tgz",
+ "integrity": "sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"android"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/darwin-arm64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.2.tgz",
- "integrity": "sha512-Ora8JokrvrzEPEpZO18ZYXkH4asCdc1DLdcVy8TGf5eWtPO1Ie4WroEJzwI52ZGtpODy3+m0a2yEX9l+KUn0tA==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.24.0.tgz",
+ "integrity": "sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==",
"cpu": [
"arm64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/darwin-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.2.tgz",
- "integrity": "sha512-tP+B5UuIbbFMj2hQaUr6EALlHOIOmlLM2FK7jeFBobPy2ERdohI4Ka6ZFjZ1ZYsrHE/hZimGuU90jusRE0pwDw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.24.0.tgz",
+ "integrity": "sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"darwin"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/freebsd-arm64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.2.tgz",
- "integrity": "sha512-YbPY2kc0acfzL1VPVK6EnAlig4f+l8xmq36OZkU0jzBVHcOTyQDhnKQaLzZudNJQyymd9OqQezeaBgkTGdTGeQ==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.24.0.tgz",
+ "integrity": "sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==",
"cpu": [
"arm64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/freebsd-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.2.tgz",
- "integrity": "sha512-nSO5uZT2clM6hosjWHAsS15hLrwCvIWx+b2e3lZ3MwbYSaXwvfO528OF+dLjas1g3bZonciivI8qKR/Hm7IWGw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.24.0.tgz",
+ "integrity": "sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"freebsd"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-arm": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.2.tgz",
- "integrity": "sha512-Odalh8hICg7SOD7XCj0YLpYCEc+6mkoq63UnExDCiRA2wXEmGlK5JVrW50vZR9Qz4qkvqnHcpH+OFEggO3PgTg==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.24.0.tgz",
+ "integrity": "sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==",
"cpu": [
"arm"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-arm64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.2.tgz",
- "integrity": "sha512-ig2P7GeG//zWlU0AggA3pV1h5gdix0MA3wgB+NsnBXViwiGgY77fuN9Wr5uoCrs2YzaYfogXgsWZbm+HGr09xg==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.24.0.tgz",
+ "integrity": "sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==",
"cpu": [
"arm64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-ia32": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.2.tgz",
- "integrity": "sha512-mLfp0ziRPOLSTek0Gd9T5B8AtzKAkoZE70fneiiyPlSnUKKI4lp+mGEnQXcQEHLJAcIYDPSyBvsUbKUG2ri/XQ==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.24.0.tgz",
+ "integrity": "sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==",
"cpu": [
"ia32"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-loong64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.2.tgz",
- "integrity": "sha512-hn28+JNDTxxCpnYjdDYVMNTR3SKavyLlCHHkufHV91fkewpIyQchS1d8wSbmXhs1fiYDpNww8KTFlJ1dHsxeSw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.24.0.tgz",
+ "integrity": "sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==",
"cpu": [
"loong64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-mips64el": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.2.tgz",
- "integrity": "sha512-KbXaC0Sejt7vD2fEgPoIKb6nxkfYW9OmFUK9XQE4//PvGIxNIfPk1NmlHmMg6f25x57rpmEFrn1OotASYIAaTg==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.24.0.tgz",
+ "integrity": "sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==",
"cpu": [
"mips64el"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-ppc64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.2.tgz",
- "integrity": "sha512-dJ0kE8KTqbiHtA3Fc/zn7lCd7pqVr4JcT0JqOnbj4LLzYnp+7h8Qi4yjfq42ZlHfhOCM42rBh0EwHYLL6LEzcw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.24.0.tgz",
+ "integrity": "sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==",
"cpu": [
"ppc64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-riscv64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.2.tgz",
- "integrity": "sha512-7Z/jKNFufZ/bbu4INqqCN6DDlrmOTmdw6D0gH+6Y7auok2r02Ur661qPuXidPOJ+FSgbEeQnnAGgsVynfLuOEw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.24.0.tgz",
+ "integrity": "sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==",
"cpu": [
"riscv64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-s390x": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.2.tgz",
- "integrity": "sha512-U+RinR6aXXABFCcAY4gSlv4CL1oOVvSSCdseQmGO66H+XyuQGZIUdhG56SZaDJQcLmrSfRmx5XZOWyCJPRqS7g==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.24.0.tgz",
+ "integrity": "sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==",
"cpu": [
"s390x"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/linux-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.2.tgz",
- "integrity": "sha512-oxzHTEv6VPm3XXNaHPyUTTte+3wGv7qVQtqaZCrgstI16gCuhNOtBXLEBkBREP57YTd68P0VgDgG73jSD8bwXQ==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.24.0.tgz",
+ "integrity": "sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"linux"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/netbsd-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.2.tgz",
- "integrity": "sha512-WNa5zZk1XpTTwMDompZmvQLHszDDDN7lYjEHCUmAGB83Bgs20EMs7ICD+oKeT6xt4phV4NDdSi/8OfjPbSbZfQ==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.24.0.tgz",
+ "integrity": "sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"netbsd"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
+ }
+ },
+ "node_modules/@esbuild/openbsd-arm64": {
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.24.0.tgz",
+ "integrity": "sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "openbsd"
+ ],
+ "engines": {
+ "node": ">=18"
}
},
"node_modules/@esbuild/openbsd-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.2.tgz",
- "integrity": "sha512-S6kI1aT3S++Dedb7vxIuUOb3oAxqxk2Rh5rOXOTYnzN8JzW1VzBd+IqPiSpgitu45042SYD3HCoEyhLKQcDFDw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.24.0.tgz",
+ "integrity": "sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"openbsd"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/sunos-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.2.tgz",
- "integrity": "sha512-VXSSMsmb+Z8LbsQGcBMiM+fYObDNRm8p7tkUDMPG/g4fhFX5DEFmjxIEa3N8Zr96SjsJ1woAhF0DUnS3MF3ARw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.24.0.tgz",
+ "integrity": "sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"sunos"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/win32-arm64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.2.tgz",
- "integrity": "sha512-5NayUlSAyb5PQYFAU9x3bHdsqB88RC3aM9lKDAz4X1mo/EchMIT1Q+pSeBXNgkfNmRecLXA0O8xP+x8V+g/LKg==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.24.0.tgz",
+ "integrity": "sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==",
"cpu": [
"arm64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/win32-ia32": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.2.tgz",
- "integrity": "sha512-47gL/ek1v36iN0wL9L4Q2MFdujR0poLZMJwhO2/N3gA89jgHp4MR8DKCmwYtGNksbfJb9JoTtbkoe6sDhg2QTA==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.24.0.tgz",
+ "integrity": "sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==",
"cpu": [
"ia32"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@esbuild/win32-x64": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.2.tgz",
- "integrity": "sha512-tcuhV7ncXBqbt/Ybf0IyrMcwVOAPDckMK9rXNHtF17UTK18OKLpg08glminN06pt2WCoALhXdLfSPbVvK/6fxw==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.24.0.tgz",
+ "integrity": "sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==",
"cpu": [
"x64"
],
"dev": true,
+ "license": "MIT",
"optional": true,
"os": [
"win32"
],
"engines": {
- "node": ">=12"
+ "node": ">=18"
}
},
"node_modules/@eslint-community/eslint-utils": {
}
},
"node_modules/@eslint-community/regexpp": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.6.2.tgz",
- "integrity": "sha512-pPTNuaAG3QMH+buKyBIGJs3g/S5y0caxw0ygM3YyE6yJFySwiGGSzA+mM3KJ8QQvzeLh3blwgSonkFjgQdxzMw==",
+ "version": "4.12.1",
+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz",
+ "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": "^12.0.0 || ^14.0.0 || >=16.0.0"
}
},
+ "node_modules/@eslint/config-array": {
+ "version": "0.18.0",
+ "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.18.0.tgz",
+ "integrity": "sha512-fTxvnS1sRMu3+JjXwJG0j/i4RT9u4qJ+lqS/yCGap4lH4zZGzQ7tu+xZqQmcMZq5OBZDL4QRxQzRjkWcGt8IVw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "@eslint/object-schema": "^2.1.4",
+ "debug": "^4.3.1",
+ "minimatch": "^3.1.2"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/core": {
+ "version": "0.7.0",
+ "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.7.0.tgz",
+ "integrity": "sha512-xp5Jirz5DyPYlPiKat8jaq0EmYvDXKKpzTbxXMpT9eqlRJkRKIz9AGMdlvYjih+im+QlhWrpvVjl8IPC/lHlUw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
"node_modules/@eslint/eslintrc": {
- "version": "2.1.2",
- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz",
- "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==",
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.1.0.tgz",
+ "integrity": "sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"ajv": "^6.12.4",
"debug": "^4.3.2",
- "espree": "^9.6.0",
- "globals": "^13.19.0",
+ "espree": "^10.0.1",
+ "globals": "^14.0.0",
"ignore": "^5.2.0",
"import-fresh": "^3.2.1",
"js-yaml": "^4.1.0",
"strip-json-comments": "^3.1.1"
},
"engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
"url": "https://opencollective.com/eslint"
}
},
"node_modules/@eslint/js": {
- "version": "8.48.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.48.0.tgz",
- "integrity": "sha512-ZSjtmelB7IJfWD2Fvb7+Z+ChTIKWq6kjda95fLcQKNS5aheVHn4IkfgRQE3sIIzTcSLwLcLZUD9UBt+V7+h+Pw==",
+ "version": "9.13.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.13.0.tgz",
+ "integrity": "sha512-IFLyoY4d72Z5y/6o/BazFBezupzI/taV8sGumxTAVw3lXG9A6md1Dc34T9s1FoD/an9pJH8RHbAxsaEbBed9lA==",
"dev": true,
+ "license": "MIT",
"engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/object-schema": {
+ "version": "2.1.4",
+ "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.4.tgz",
+ "integrity": "sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ }
+ },
+ "node_modules/@eslint/plugin-kit": {
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.2.tgz",
+ "integrity": "sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "dependencies": {
+ "levn": "^0.4.1"
+ },
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
}
},
"node_modules/@googlemaps/markerclusterer": {
"supercluster": "^7.1.3"
}
},
- "node_modules/@humanwhocodes/config-array": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz",
- "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==",
+ "node_modules/@humanfs/core": {
+ "version": "0.19.1",
+ "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",
+ "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18.0"
+ }
+ },
+ "node_modules/@humanfs/node": {
+ "version": "0.16.6",
+ "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz",
+ "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==",
"dev": true,
+ "license": "Apache-2.0",
"dependencies": {
- "@humanwhocodes/object-schema": "^1.2.1",
- "debug": "^4.1.1",
- "minimatch": "^3.0.5"
+ "@humanfs/core": "^0.19.1",
+ "@humanwhocodes/retry": "^0.3.0"
},
"engines": {
- "node": ">=10.10.0"
+ "node": ">=18.18.0"
}
},
"node_modules/@humanwhocodes/module-importer": {
"url": "https://github.com/sponsors/nzakas"
}
},
- "node_modules/@humanwhocodes/object-schema": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz",
- "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==",
- "dev": true
+ "node_modules/@humanwhocodes/retry": {
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz",
+ "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": ">=18.18"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/nzakas"
+ }
},
"node_modules/@nodelib/fs.scandir": {
"version": "2.1.5",
"node": ">= 8"
}
},
+ "node_modules/@types/estree": {
+ "version": "1.0.6",
+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz",
+ "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/@types/facebook-js-sdk": {
"version": "3.3.7",
"resolved": "https://registry.npmjs.org/@types/facebook-js-sdk/-/facebook-js-sdk-3.3.7.tgz",
}
},
"node_modules/@types/json-schema": {
- "version": "7.0.12",
- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz",
- "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==",
- "dev": true
+ "version": "7.0.15",
+ "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
+ "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/pica": {
"version": "5.1.3",
"integrity": "sha512-ZTaqn/qSqUuAq1YwvOFQfVW1AR/oQJlLSZVustdjwI+GZ8kr0MSHBj0tsXPW1EqHubx50gtBEjbPGsdZwQwCjQ=="
},
"node_modules/@types/semver": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.1.tgz",
- "integrity": "sha512-cJRQXpObxfNKkFAZbJl2yjWtJCqELQIdShsogr1d2MilP8dKD9TE/nEKHkJgUNHdGKCQaf9HbIynuV2csLGVLg==",
- "dev": true
+ "version": "7.5.8",
+ "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.8.tgz",
+ "integrity": "sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==",
+ "dev": true,
+ "license": "MIT"
},
"node_modules/@types/sizzle": {
"version": "2.3.3",
}
}
},
- "node_modules/@typescript-eslint/parser": {
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/type-utils": {
"version": "6.5.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.5.0.tgz",
- "integrity": "sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.5.0.tgz",
+ "integrity": "sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "@typescript-eslint/scope-manager": "6.5.0",
- "@typescript-eslint/types": "6.5.0",
"@typescript-eslint/typescript-estree": "6.5.0",
- "@typescript-eslint/visitor-keys": "6.5.0",
- "debug": "^4.3.4"
+ "@typescript-eslint/utils": "6.5.0",
+ "debug": "^4.3.4",
+ "ts-api-utils": "^1.0.1"
},
"engines": {
"node": "^16.0.0 || >=18.0.0"
}
}
},
- "node_modules/@typescript-eslint/scope-manager": {
+ "node_modules/@typescript-eslint/eslint-plugin/node_modules/@typescript-eslint/utils": {
"version": "6.5.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.5.0.tgz",
- "integrity": "sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.5.0.tgz",
+ "integrity": "sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
+ "@eslint-community/eslint-utils": "^4.4.0",
+ "@types/json-schema": "^7.0.12",
+ "@types/semver": "^7.5.0",
+ "@typescript-eslint/scope-manager": "6.5.0",
"@typescript-eslint/types": "6.5.0",
- "@typescript-eslint/visitor-keys": "6.5.0"
+ "@typescript-eslint/typescript-estree": "6.5.0",
+ "semver": "^7.5.4"
},
"engines": {
"node": "^16.0.0 || >=18.0.0"
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/typescript-eslint"
+ },
+ "peerDependencies": {
+ "eslint": "^7.0.0 || ^8.0.0"
}
},
- "node_modules/@typescript-eslint/type-utils": {
+ "node_modules/@typescript-eslint/parser": {
"version": "6.5.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-6.5.0.tgz",
- "integrity": "sha512-f7OcZOkRivtujIBQ4yrJNIuwyCQO1OjocVqntl9dgSIZAdKqicj3xFDqDOzHDlGCZX990LqhLQXWRnQvsapq8A==",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-6.5.0.tgz",
+ "integrity": "sha512-LMAVtR5GN8nY0G0BadkG0XIe4AcNMeyEy3DyhKGAh9k4pLSMBO7rF29JvDBpZGCmp5Pgz5RLHP6eCpSYZJQDuQ==",
"dev": true,
"dependencies": {
+ "@typescript-eslint/scope-manager": "6.5.0",
+ "@typescript-eslint/types": "6.5.0",
"@typescript-eslint/typescript-estree": "6.5.0",
- "@typescript-eslint/utils": "6.5.0",
- "debug": "^4.3.4",
- "ts-api-utils": "^1.0.1"
+ "@typescript-eslint/visitor-keys": "6.5.0",
+ "debug": "^4.3.4"
},
"engines": {
"node": "^16.0.0 || >=18.0.0"
}
}
},
+ "node_modules/@typescript-eslint/scope-manager": {
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-6.5.0.tgz",
+ "integrity": "sha512-A8hZ7OlxURricpycp5kdPTH3XnjG85UpJS6Fn4VzeoH4T388gQJ/PGP4ole5NfKt4WDVhmLaQ/dBLNDC4Xl/Kw==",
+ "dev": true,
+ "dependencies": {
+ "@typescript-eslint/types": "6.5.0",
+ "@typescript-eslint/visitor-keys": "6.5.0"
+ },
+ "engines": {
+ "node": "^16.0.0 || >=18.0.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/typescript-eslint"
+ }
+ },
"node_modules/@typescript-eslint/types": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-6.5.0.tgz",
}
}
},
- "node_modules/@typescript-eslint/utils": {
- "version": "6.5.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-6.5.0.tgz",
- "integrity": "sha512-9nqtjkNykFzeVtt9Pj6lyR9WEdd8npPhhIPM992FWVkZuS6tmxHfGVnlUcjpUP2hv8r4w35nT33mlxd+Be1ACQ==",
- "dev": true,
- "dependencies": {
- "@eslint-community/eslint-utils": "^4.4.0",
- "@types/json-schema": "^7.0.12",
- "@types/semver": "^7.5.0",
- "@typescript-eslint/scope-manager": "6.5.0",
- "@typescript-eslint/types": "6.5.0",
- "@typescript-eslint/typescript-estree": "6.5.0",
- "semver": "^7.5.4"
- },
- "engines": {
- "node": "^16.0.0 || >=18.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/typescript-eslint"
- },
- "peerDependencies": {
- "eslint": "^7.0.0 || ^8.0.0"
- }
- },
"node_modules/@typescript-eslint/visitor-keys": {
"version": "6.5.0",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.5.0.tgz",
}
},
"node_modules/acorn": {
- "version": "8.10.0",
- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",
- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",
+ "version": "8.14.0",
+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz",
+ "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==",
"dev": true,
+ "license": "MIT",
"bin": {
"acorn": "bin/acorn"
},
"resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",
"integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",
"dev": true,
+ "license": "MIT",
"peerDependencies": {
"acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"
}
"resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",
"integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"fast-deep-equal": "^3.1.1",
"fast-json-stable-stringify": "^2.0.0",
"url": "https://github.com/sponsors/epoberezkin"
}
},
- "node_modules/ansi-regex": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
- "dev": true
+ "dev": true,
+ "license": "Python-2.0"
},
"node_modules/array-union": {
"version": "2.1.0",
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/brace-expansion": {
"version": "1.1.11",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",
"integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
"resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",
"integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/cross-spawn": {
"version": "7.0.3",
"node": ">=8"
}
},
- "node_modules/doctrine": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",
- "dev": true,
- "dependencies": {
- "esutils": "^2.0.2"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
"node_modules/esbuild": {
- "version": "0.19.2",
- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.2.tgz",
- "integrity": "sha512-G6hPax8UbFakEj3hWO0Vs52LQ8k3lnBhxZWomUJDxfz3rZTLqF5k/FCzuNdLx2RbpBiQQF9H9onlDDH1lZsnjg==",
+ "version": "0.24.0",
+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.24.0.tgz",
+ "integrity": "sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==",
"dev": true,
"hasInstallScript": true,
+ "license": "MIT",
"bin": {
"esbuild": "bin/esbuild"
},
"engines": {
- "node": ">=12"
+ "node": ">=18"
},
"optionalDependencies": {
- "@esbuild/android-arm": "0.19.2",
- "@esbuild/android-arm64": "0.19.2",
- "@esbuild/android-x64": "0.19.2",
- "@esbuild/darwin-arm64": "0.19.2",
- "@esbuild/darwin-x64": "0.19.2",
- "@esbuild/freebsd-arm64": "0.19.2",
- "@esbuild/freebsd-x64": "0.19.2",
- "@esbuild/linux-arm": "0.19.2",
- "@esbuild/linux-arm64": "0.19.2",
- "@esbuild/linux-ia32": "0.19.2",
- "@esbuild/linux-loong64": "0.19.2",
- "@esbuild/linux-mips64el": "0.19.2",
- "@esbuild/linux-ppc64": "0.19.2",
- "@esbuild/linux-riscv64": "0.19.2",
- "@esbuild/linux-s390x": "0.19.2",
- "@esbuild/linux-x64": "0.19.2",
- "@esbuild/netbsd-x64": "0.19.2",
- "@esbuild/openbsd-x64": "0.19.2",
- "@esbuild/sunos-x64": "0.19.2",
- "@esbuild/win32-arm64": "0.19.2",
- "@esbuild/win32-ia32": "0.19.2",
- "@esbuild/win32-x64": "0.19.2"
+ "@esbuild/aix-ppc64": "0.24.0",
+ "@esbuild/android-arm": "0.24.0",
+ "@esbuild/android-arm64": "0.24.0",
+ "@esbuild/android-x64": "0.24.0",
+ "@esbuild/darwin-arm64": "0.24.0",
+ "@esbuild/darwin-x64": "0.24.0",
+ "@esbuild/freebsd-arm64": "0.24.0",
+ "@esbuild/freebsd-x64": "0.24.0",
+ "@esbuild/linux-arm": "0.24.0",
+ "@esbuild/linux-arm64": "0.24.0",
+ "@esbuild/linux-ia32": "0.24.0",
+ "@esbuild/linux-loong64": "0.24.0",
+ "@esbuild/linux-mips64el": "0.24.0",
+ "@esbuild/linux-ppc64": "0.24.0",
+ "@esbuild/linux-riscv64": "0.24.0",
+ "@esbuild/linux-s390x": "0.24.0",
+ "@esbuild/linux-x64": "0.24.0",
+ "@esbuild/netbsd-x64": "0.24.0",
+ "@esbuild/openbsd-arm64": "0.24.0",
+ "@esbuild/openbsd-x64": "0.24.0",
+ "@esbuild/sunos-x64": "0.24.0",
+ "@esbuild/win32-arm64": "0.24.0",
+ "@esbuild/win32-ia32": "0.24.0",
+ "@esbuild/win32-x64": "0.24.0"
}
},
"node_modules/escape-string-regexp": {
}
},
"node_modules/eslint": {
- "version": "8.48.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.48.0.tgz",
- "integrity": "sha512-sb6DLeIuRXxeM1YljSe1KEx9/YYeZFQWcV8Rq9HfigmdDEugjLEVEa1ozDjL6YDjBpQHPJxJzze+alxi4T3OLg==",
+ "version": "9.13.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.13.0.tgz",
+ "integrity": "sha512-EYZK6SX6zjFHST/HRytOdA/zE72Cq/bfw45LSyuwrdvcclb/gqV8RRQxywOBEWO2+WDpva6UZa4CcDeJKzUCFA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
- "@eslint-community/regexpp": "^4.6.1",
- "@eslint/eslintrc": "^2.1.2",
- "@eslint/js": "8.48.0",
- "@humanwhocodes/config-array": "^0.11.10",
+ "@eslint-community/regexpp": "^4.11.0",
+ "@eslint/config-array": "^0.18.0",
+ "@eslint/core": "^0.7.0",
+ "@eslint/eslintrc": "^3.1.0",
+ "@eslint/js": "9.13.0",
+ "@eslint/plugin-kit": "^0.2.0",
+ "@humanfs/node": "^0.16.5",
"@humanwhocodes/module-importer": "^1.0.1",
- "@nodelib/fs.walk": "^1.2.8",
+ "@humanwhocodes/retry": "^0.3.1",
+ "@types/estree": "^1.0.6",
+ "@types/json-schema": "^7.0.15",
"ajv": "^6.12.4",
"chalk": "^4.0.0",
"cross-spawn": "^7.0.2",
"debug": "^4.3.2",
- "doctrine": "^3.0.0",
"escape-string-regexp": "^4.0.0",
- "eslint-scope": "^7.2.2",
- "eslint-visitor-keys": "^3.4.3",
- "espree": "^9.6.1",
- "esquery": "^1.4.2",
+ "eslint-scope": "^8.1.0",
+ "eslint-visitor-keys": "^4.1.0",
+ "espree": "^10.2.0",
+ "esquery": "^1.5.0",
"esutils": "^2.0.2",
"fast-deep-equal": "^3.1.3",
- "file-entry-cache": "^6.0.1",
+ "file-entry-cache": "^8.0.0",
"find-up": "^5.0.0",
"glob-parent": "^6.0.2",
- "globals": "^13.19.0",
- "graphemer": "^1.4.0",
"ignore": "^5.2.0",
"imurmurhash": "^0.1.4",
"is-glob": "^4.0.0",
- "is-path-inside": "^3.0.3",
- "js-yaml": "^4.1.0",
"json-stable-stringify-without-jsonify": "^1.0.1",
- "levn": "^0.4.1",
"lodash.merge": "^4.6.2",
"minimatch": "^3.1.2",
"natural-compare": "^1.4.0",
"optionator": "^0.9.3",
- "strip-ansi": "^6.0.1",
"text-table": "^0.2.0"
},
"bin": {
"eslint": "bin/eslint.js"
},
"engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
- "url": "https://opencollective.com/eslint"
+ "url": "https://eslint.org/donate"
+ },
+ "peerDependencies": {
+ "jiti": "*"
+ },
+ "peerDependenciesMeta": {
+ "jiti": {
+ "optional": true
+ }
}
},
"node_modules/eslint-config-prettier": {
- "version": "9.0.0",
- "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.0.0.tgz",
- "integrity": "sha512-IcJsTkJae2S35pRsRAwoCE+925rJJStOdkKnLVgtE+tEpqU0EVVM7OqrwxqgptKdX29NUwC82I5pXsGFIgSevw==",
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
+ "integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
"dev": true,
+ "license": "MIT",
"bin": {
"eslint-config-prettier": "bin/cli.js"
},
}
},
"node_modules/eslint-scope": {
- "version": "7.2.2",
- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",
- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.2.0.tgz",
+ "integrity": "sha512-PHlWUfG6lvPc3yvP5A4PNyBL1W8fkDUccmI21JUu/+GKZBoH/W5u6usENXUrWFRsyoW5ACUjFGgAFQp5gUlb/A==",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
"esrecurse": "^4.3.0",
"estraverse": "^5.2.0"
},
"engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
"url": "https://opencollective.com/eslint"
"url": "https://opencollective.com/eslint"
}
},
+ "node_modules/eslint/node_modules/eslint-visitor-keys": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",
+ "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
"node_modules/espree": {
- "version": "9.6.1",
- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",
- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",
+ "version": "10.3.0",
+ "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz",
+ "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
- "acorn": "^8.9.0",
+ "acorn": "^8.14.0",
"acorn-jsx": "^5.3.2",
- "eslint-visitor-keys": "^3.4.1"
+ "eslint-visitor-keys": "^4.2.0"
},
"engines": {
- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
+ },
+ "funding": {
+ "url": "https://opencollective.com/eslint"
+ }
+ },
+ "node_modules/espree/node_modules/eslint-visitor-keys": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",
+ "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",
+ "dev": true,
+ "license": "Apache-2.0",
+ "engines": {
+ "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
},
"funding": {
"url": "https://opencollective.com/eslint"
"resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",
"integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
"estraverse": "^5.2.0"
},
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",
"integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",
"dev": true,
+ "license": "BSD-2-Clause",
"engines": {
"node": ">=0.10.0"
}
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
"integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/fast-levenshtein": {
"version": "2.0.6",
}
},
"node_modules/file-entry-cache": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",
+ "version": "8.0.0",
+ "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",
+ "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "flat-cache": "^3.0.4"
+ "flat-cache": "^4.0.0"
},
"engines": {
- "node": "^10.12.0 || >=12.0.0"
+ "node": ">=16.0.0"
}
},
"node_modules/fill-range": {
}
},
"node_modules/flat-cache": {
- "version": "3.0.4",
- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
- "integrity": "sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==",
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",
+ "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
- "flatted": "^3.1.0",
- "rimraf": "^3.0.2"
+ "flatted": "^3.2.9",
+ "keyv": "^4.5.4"
},
"engines": {
- "node": "^10.12.0 || >=12.0.0"
+ "node": ">=16"
}
},
"node_modules/flatted": {
- "version": "3.2.6",
- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.2.6.tgz",
- "integrity": "sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==",
- "dev": true
+ "version": "3.3.1",
+ "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz",
+ "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==",
+ "dev": true,
+ "license": "ISC"
},
"node_modules/focus-trap": {
"version": "7.5.2",
"tabbable": "^6.2.0"
}
},
- "node_modules/fs.realpath": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",
- "dev": true
- },
- "node_modules/glob": {
- "version": "7.2.3",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
- "dev": true,
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.1.1",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/glob-parent": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",
}
},
"node_modules/globals": {
- "version": "13.21.0",
- "resolved": "https://registry.npmjs.org/globals/-/globals-13.21.0.tgz",
- "integrity": "sha512-ybyme3s4yy/t/3s35bewwXKOf7cvzfreG2lH0lZl0JB7I4GxRP2ghxOK/Nb9EkRXdbBXZLfq/p/0W2JUONB/Gg==",
+ "version": "14.0.0",
+ "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz",
+ "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==",
"dev": true,
- "dependencies": {
- "type-fest": "^0.20.2"
- },
+ "license": "MIT",
"engines": {
- "node": ">=8"
+ "node": ">=18"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
"integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"parent-module": "^1.0.0",
"resolve-from": "^4.0.0"
"node": ">=0.8.19"
}
},
- "node_modules/inflight": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",
- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",
- "dev": true,
- "dependencies": {
- "once": "^1.3.0",
- "wrappy": "1"
- }
- },
- "node_modules/inherits": {
- "version": "2.0.4",
- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",
- "dev": true
- },
"node_modules/is-extglob": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
"node": ">=0.12.0"
}
},
- "node_modules/is-path-inside": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",
- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",
- "dev": true,
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"argparse": "^2.0.1"
},
"js-yaml": "bin/js-yaml.js"
}
},
+ "node_modules/json-buffer": {
+ "version": "3.0.1",
+ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",
+ "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/json-schema-traverse": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",
"integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",
- "dev": true
+ "dev": true,
+ "license": "MIT"
},
"node_modules/json-stable-stringify-without-jsonify": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/kdbush/-/kdbush-3.0.0.tgz",
"integrity": "sha512-hRkd6/XW4HTsA9vjVpY9tuXJYLSlelnkTmVFu4M9/7MIYQtFcHpbugAU7UbOfjOiVSVYl2fqgBuJ32JUmRo5Ew=="
},
+ "node_modules/keyv": {
+ "version": "4.5.4",
+ "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",
+ "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "json-buffer": "3.0.1"
+ }
+ },
"node_modules/levn": {
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true,
+ "license": "ISC",
"dependencies": {
"brace-expansion": "^1.1.7"
},
"integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",
"dev": true
},
- "node_modules/once": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",
- "dev": true,
- "dependencies": {
- "wrappy": "1"
- }
- },
"node_modules/optionator": {
"version": "0.9.3",
"resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.3.tgz",
"resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",
"integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",
"dev": true,
+ "license": "MIT",
"dependencies": {
"callsites": "^3.0.0"
},
"node": ">=8"
}
},
- "node_modules/path-is-absolute": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",
- "dev": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/path-key": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",
}
},
"node_modules/prettier": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz",
- "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==",
+ "version": "3.3.3",
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz",
+ "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==",
"dev": true,
+ "license": "MIT",
"bin": {
"prettier": "bin/prettier.cjs"
},
}
},
"node_modules/punycode": {
- "version": "2.3.0",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",
+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=6"
}
]
},
"node_modules/reflect-metadata": {
- "version": "0.1.13",
- "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.1.13.tgz",
- "integrity": "sha512-Ts1Y/anZELhSsjMcU605fU9RE4Oi3p5ORujwbIKXfWa+0Zxs510Qrmrce5/Jowq3cHSZSJqBjypxmHarc+vEWg=="
+ "version": "0.2.2",
+ "resolved": "https://registry.npmjs.org/reflect-metadata/-/reflect-metadata-0.2.2.tgz",
+ "integrity": "sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q==",
+ "license": "Apache-2.0"
},
"node_modules/resolve-from": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",
"integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=4"
}
"node": ">=0.10.0"
}
},
- "node_modules/rimraf": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",
- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",
- "dev": true,
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/run-parallel": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
"node": ">=8"
}
},
- "node_modules/strip-ansi": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "dev": true,
- "dependencies": {
- "ansi-regex": "^5.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/strip-json-comments": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",
"integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",
"dev": true,
+ "license": "MIT",
"engines": {
"node": ">=8"
},
}
},
"node_modules/tslib": {
- "version": "2.6.2",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz",
- "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q=="
+ "version": "2.8.1",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",
+ "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",
+ "license": "0BSD"
},
"node_modules/type-check": {
"version": "0.4.0",
"node": ">= 0.8.0"
}
},
- "node_modules/type-fest": {
- "version": "0.20.2",
- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
- "dev": true,
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/typescript": {
- "version": "5.2.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz",
- "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==",
+ "version": "5.6.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.3.tgz",
+ "integrity": "sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw==",
"dev": true,
+ "license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
"integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",
"dev": true,
+ "license": "BSD-2-Clause",
"dependencies": {
"punycode": "^2.1.0"
}
"node": ">= 8"
}
},
- "node_modules/wrappy": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",
- "dev": true
- },
"node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
- "esbuild": "^0.19.2",
- "eslint": "^8.48.0",
- "eslint-config-prettier": "^9.0.0",
- "prettier": "^3.0.3",
- "typescript": "^5.2.2"
+ "esbuild": "^0.24.0",
+ "eslint": "^9.13.0",
+ "eslint-config-prettier": "^9.1.0",
+ "prettier": "^3.3.3",
+ "typescript": "^5.6.3"
},
"dependencies": {
"@ckeditor/ckeditor5-inspector": "^4.1.0",
"html-parsed-element": "^0.4.1",
"perfect-scrollbar": "^1.5.5",
"qr-creator": "^1.0.0",
- "reflect-metadata": "^0.1.13",
+ "reflect-metadata": "^0.2.2",
"tabbable": "^6.2.0",
- "tslib": "^2.6.2"
+ "tslib": "^2.8.1"
}
}
define(["require", "exports", "tslib", "../Core", "../Bootstrap", "./Ui/Page/Menu", "./Ui/Page/Menu/Main/Backend"], function (require, exports, tslib_1, Core, Bootstrap_1, UiPageMenu, Backend_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Core = tslib_1.__importStar(Core);
UiPageMenu = tslib_1.__importStar(UiPageMenu);
Backend_1 = tslib_1.__importDefault(Backend_1);
(0, Bootstrap_1.setup)(options.bootstrap);
UiPageMenu.init();
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "WoltLabSuite/Core/Helper/PromiseMutex", "../Ui/Package/PrepareInstallation"], function (require, exports, tslib_1, PromiseMutex_1, PrepareInstallation_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
PrepareInstallation_1 = tslib_1.__importDefault(PrepareInstallation_1);
function installPackage(button) {
const installation = new PrepareInstallation_1.default();
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dialog"], function (require, exports, tslib_1, Language, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.openDialog = exports.init = void 0;
+ exports.init = init;
+ exports.openDialog = openDialog;
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
class ArticleAdd {
articleAdd = new ArticleAdd(link);
}
}
- exports.init = init;
/**
* Opens the 'Add Article' dialog.
*/
function openDialog() {
articleAdd.openDialog();
}
- exports.openDialog = openDialog;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Dom/Util", "../../../../Event/Handler"], function (require, exports, tslib_1, Ajax, Util_1, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
EventHandler = tslib_1.__importStar(EventHandler);
acpUiBoxControllerHandler = new AcpUiBoxControllerHandler(initialObjectTypeId);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dialog"], function (require, exports, tslib_1, Language, UiDialog) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Language = tslib_1.__importStar(Language);
UiDialog = tslib_1.__importStar(UiDialog);
class AcpUiBoxCopy {
acpUiBoxCopy = new AcpUiBoxCopy();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Dom/Util", "../../../Language", "../../../Ui/Page/Search/Handler"], function (require, exports, tslib_1, Util_1, Language, UiPageSearchHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
UiPageSearchHandler = tslib_1.__importStar(UiPageSearchHandler);
acpUiBoxHandler = new AcpUiBoxHandler(map, boxType);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Core", "../../../Ui/Confirmation"], function (require, exports, tslib_1, Ajax, Core, UiConfirmation) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
UiConfirmation = tslib_1.__importStar(UiConfirmation);
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Language", "../../../../Ui/Dialog", "../../../../Dom/Util"], function (require, exports, tslib_1, Ajax, Language, Dialog_1, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
acpUiDevtoolsNotificationTest = new AcpUiDevtoolsNotificationTest();
}
}
- exports.init = init;
});
define(["require", "exports", "WoltLabSuite/Core/Environment"], function (require, exports, Environment_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
const filterByName = document.getElementById("filterByName");
const projects = new Map();
function filterProjects() {
filterByName.focus();
}
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../../../Ajax", "../../../../../Language", "../../../../../Ui/Confirmation"], function (require, exports, tslib_1, Ajax, Language, UiConfirmation) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
UiConfirmation = tslib_1.__importStar(UiConfirmation);
element.addEventListener("click", (ev) => showConfirmation(ev));
});
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Dom/Util", "../../../../Language", "../../../../Ui/Dialog", "../../../../Ui/Notification"], function (require, exports, tslib_1, Ajax, Util_1, Language, Dialog_1, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
acpUiDevtoolsProjectQuickSetup = new AcpUiDevtoolsProjectQuickSetup();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Language", "../../../../Ui/Notification", "../../../../Component/Dialog"], function (require, exports, tslib_1, Ajax, Language, UiNotification, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
UiNotification = tslib_1.__importStar(UiNotification);
acpUiDevtoolsProjectSync = new AcpUiDevtoolsProjectSync(projectId);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../Worker", "../../../Language"], function (require, exports, tslib_1, Worker_1, Language) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.runAllWorkers = exports.register = void 0;
+ exports.register = register;
+ exports.runAllWorkers = runAllWorkers;
Worker_1 = tslib_1.__importDefault(Worker_1);
Language = tslib_1.__importStar(Language);
const workers = new Map();
void runWorker(button);
});
}
- exports.register = register;
async function runAllWorkers() {
const sorted = Array.from(workers)
.sort(([, a], [, b]) => {
await runWorker(worker, `${worker.textContent} (${i++} / ${sorted.length})`, true);
}
}
- exports.runAllWorkers = runAllWorkers;
async function runWorker(button, dialogTitle = button.textContent, implicitContinue = false) {
return new Promise((resolve, reject) => {
new Worker_1.default({
define(["require", "exports", "tslib", "../../../../Dom/Util", "../../../../Language", "../../../../Ui/Page/Search/Handler"], function (require, exports, tslib_1, Util_1, Language, UiPageSearchHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
UiPageSearchHandler = tslib_1.__importStar(UiPageSearchHandler);
acpUiMenuItemHandler = new AcpUiMenuItemHandler(map);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Dom/Util", "../../../Language"], function (require, exports, tslib_1, Ajax, Util_1, Language) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
emailSmtpTest = new EmailSmtpTest();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Language", "../../../Ui/Dialog"], function (require, exports, tslib_1, Ajax, Language, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
rewriteGenerator = new RewriteGenerator();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dialog", "../../../Dom/Util", "WoltLabSuite/Core/Ajax/Backend"], function (require, exports, tslib_1, Language, Dialog_1, Util_1, Backend_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
Util_1 = tslib_1.__importDefault(Util_1);
rewriteTest = new RewriteTest(apps);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Ajax/Status", "../../../Core", "../../../Language", "../../../Dom/Util", "../../../Ui/Dialog", "WoltLabSuite/Core/Ajax/Error"], function (require, exports, tslib_1, Ajax_1, AjaxStatus, Core_1, Language, Util_1, Dialog_1, Error_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
AjaxStatus = tslib_1.__importStar(AjaxStatus);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
detectCode(versionNumber);
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Language", "../../../../Ui/Dialog", "../../../../Dom/Util"], function (require, exports, tslib_1, Ajax_1, Language, UiDialog, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Language = tslib_1.__importStar(Language);
UiDialog = tslib_1.__importStar(UiDialog);
Util_1 = tslib_1.__importDefault(Util_1);
acpUiPackageUpdateManager = new AcpUiPackageUpdateManager();
}
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Dom/Change/Listener", "../../../Language", "../../../Ui/Confirmation", "../../../Ui/Notification"], function (require, exports, tslib_1, Ajax, Listener_1, Language, UiConfirmation, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Listener_1 = tslib_1.__importDefault(Listener_1);
Language = tslib_1.__importStar(Language);
acpUiPageBoxOrder = new AcpUiPageBoxOrder(pageId, boxes);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dialog"], function (require, exports, tslib_1, Language, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
class AcpUiPageCopy {
acpUiPageCopy = new AcpUiPageCopy();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "perfect-scrollbar", "../../../Event/Handler", "../../../Ui/Screen"], function (require, exports, tslib_1, perfect_scrollbar_1, EventHandler, UiScreen) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
perfect_scrollbar_1 = tslib_1.__importDefault(perfect_scrollbar_1);
EventHandler = tslib_1.__importStar(EventHandler);
UiScreen = tslib_1.__importStar(UiScreen);
}
});
}
- exports.init = init;
function enablePerfectScrollbar() {
const options = {
suppressScrollX: true,
define(["require", "exports", "../../../Ajax/Backend", "../../../Component/Confirmation", "../../../Language", "../../../Ui/Notification"], function (require, exports, Backend_1, Confirmation_1, Language_1, Notification_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
async function promptConfirmation(endpoint, question) {
const ok = await (0, Confirmation_1.confirmationFactory)().custom(question).message((0, Language_1.getPhrase)("wcf.dialog.confirmation.cannotBeUndone"));
if (ok) {
function setup() {
setupAddDarkMode();
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Core", "../../../Dom/Util", "../../../Event/Handler", "../../../Ui/Screen", "./DarkMode"], function (require, exports, tslib_1, Ajax, Core, Util_1, EventHandler, UiScreen, DarkMode_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.showVisualEditor = exports.hideVisualEditor = exports.setup = void 0;
+ exports.setup = setup;
+ exports.hideVisualEditor = hideVisualEditor;
+ exports.showVisualEditor = showVisualEditor;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
Util_1 = tslib_1.__importDefault(Util_1);
callbackRegionMarker();
});
}
- exports.setup = setup;
function hideVisualEditor() {
Util_1.default.hide(_stylePreviewWindow);
document.getElementById("spVariablesWrapper").style.removeProperty("transform");
Util_1.default.hide(document.getElementById("stylePreviewRegionMarker"));
_isSmartphone = true;
}
- exports.hideVisualEditor = hideVisualEditor;
function showVisualEditor() {
Util_1.default.show(_stylePreviewWindow);
window.setTimeout(() => {
}, 100);
_isSmartphone = false;
}
- exports.showVisualEditor = showVisualEditor;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../../../../Language", "../../../../Ui/Dialog", "../../../../Ui/Notification", "../../../../Dom/Util"], function (require, exports, tslib_1, Ajax, Language, Dialog_1, UiNotification, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
acpUiTemplateGroupCopy = new AcpUiTemplateGroupCopy(templateGroupId);
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Ui/Style/FontAwesome", "../../../Ui/Color/Picker", "../../../Dom/Util"], function (require, exports, tslib_1, FontAwesome_1, Picker_1, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Picker_1 = tslib_1.__importDefault(Picker_1);
Util_1 = tslib_1.__importDefault(Util_1);
const badgeContainer = document.getElementById("badgeContainer");
setupChangeColor();
setupChangeBackgroundColor();
}
- exports.setup = setup;
});
define(["require", "exports", "./Badge"], function (require, exports, Badge_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setupTypeChange() {
const badgeContainer = document.getElementById("badgeContainer");
const imageContainer = document.getElementById("imageContainer");
setupAwardConditions();
(0, Badge_1.setup)();
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "./Ajax/Request", "./Core", "./Ajax/DboAction", "./Ajax/DboAction"], function (require, exports, tslib_1, Request_1, Core, DboAction_1, DboAction_2) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.handleValidationErrors = exports.dboAction = exports.getRequestObject = exports.apiOnce = exports.api = void 0;
+ exports.handleValidationErrors = void 0;
+ exports.api = api;
+ exports.apiOnce = apiOnce;
+ exports.getRequestObject = getRequestObject;
+ exports.dboAction = dboAction;
Request_1 = tslib_1.__importDefault(Request_1);
Core = tslib_1.__importStar(Core);
DboAction_1 = tslib_1.__importDefault(DboAction_1);
request.setOption("failure", oldFailure);
return request;
}
- exports.api = api;
/**
* Shorthand function to perform a single request against the WCF-API.
*
const request = new Request_1.default(options);
request.sendRequest(false);
}
- exports.apiOnce = apiOnce;
/**
* Returns the request object used for an earlier call to `api()`.
*/
}
return _cache.get(callbackObject);
}
- exports.getRequestObject = getRequestObject;
/**
* Prepares a new requests to a `wcf\\data\\DatabaseObjectAction` action.
*
function dboAction(actionName, className) {
return DboAction_1.default.prepare(actionName, className);
}
- exports.dboAction = dboAction;
Object.defineProperty(exports, "handleValidationErrors", { enumerable: true, get: function () { return DboAction_2.handleValidationErrors; } });
});
define(["require", "exports", "tslib", "./Status", "./Error", "../Core"], function (require, exports, tslib_1, LoadingIndicator, Error_1, Core_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.prepareRequest = void 0;
+ exports.prepareRequest = prepareRequest;
LoadingIndicator = tslib_1.__importStar(LoadingIndicator);
class SetupRequest {
url;
function prepareRequest(url) {
return new SetupRequest(url);
}
- exports.prepareRequest = prepareRequest;
});
define(["require", "exports", "tslib", "./Error", "./Status", "../Core"], function (require, exports, tslib_1, Error_1, AjaxStatus, Core) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.handleValidationErrors = exports.DboAction = void 0;
+ exports.DboAction = void 0;
+ exports.handleValidationErrors = handleValidationErrors;
AjaxStatus = tslib_1.__importStar(AjaxStatus);
Core = tslib_1.__importStar(Core);
let ignoreConnectionErrors = undefined;
}
throw error;
}
- exports.handleValidationErrors = handleValidationErrors;
function isException(json) {
return "code" in json && "returnValues" in json;
}
define(["require", "exports", "tslib", "../Component/Dialog", "../Core", "../Language", "../StringUtil"], function (require, exports, tslib_1, Dialog_1, Core, Language, StringUtil_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.registerGlobalRejectionHandler = exports.InvalidJson = exports.ExpectedJson = exports.StatusNotOk = exports.ConnectionError = exports.ApiError = void 0;
+ exports.InvalidJson = exports.ExpectedJson = exports.StatusNotOk = exports.ConnectionError = exports.ApiError = void 0;
+ exports.registerGlobalRejectionHandler = registerGlobalRejectionHandler;
Core = tslib_1.__importStar(Core);
Language = tslib_1.__importStar(Language);
async function genericError(error) {
});
hasGlobalRejectionHandler = true;
}
- exports.registerGlobalRejectionHandler = registerGlobalRejectionHandler;
});
define(["require", "exports", "tslib", "../Core"], function (require, exports, tslib_1, Core) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.send = void 0;
+ exports.send = send;
Core = tslib_1.__importStar(Core);
/**
* Dispatch a JSONP request, the `url` must not contain a callback parameter.
}
window[callbackName] = undefined;
script.remove();
- }, (~~options.timeout || 10) * 1000);
+ }, (~~options.timeout || 10) * 1_000);
window[callbackName] = (...args) => {
window.clearTimeout(timeout);
success(...args);
script.src = url;
document.head.appendChild(script);
}
- exports.send = send;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.hide = exports.show = void 0;
+ exports.show = show;
+ exports.hide = hide;
class AjaxStatus {
_activeRequests = 0;
_overlay;
function show() {
getStatus().show();
}
- exports.show = show;
/**
* Hides the loading overlay.
*/
function hide() {
getStatus().hide();
}
- exports.hide = hide;
});
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;
+ exports.setUrl = setUrl;
+ exports.invoke = invoke;
Ajax = tslib_1.__importStar(Ajax);
class BackgroundQueue {
_invocations = 0;
queue = new BackgroundQueue(url);
}
}
- exports.setUrl = setUrl;
/**
* Invokes the background queue.
*/
}
queue.invoke();
}
- exports.invoke = invoke;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.observe = void 0;
+ exports.observe = observe;
function initContainer(container, toggleButtons, overflowContainer) {
toggleButtons.forEach((toggleButton) => {
toggleButton.classList.add("jsToggleButtonEnabled");
container.classList.remove("jsCollapsibleBbcode");
});
}
- exports.observe = observe;
});
define(["require", "exports", "tslib", "./Core", "./Date/Picker", "./Devtools", "./Dom/Change/Listener", "./Environment", "./Event/Handler", "./Form/XsrfToken", "./Language", "./Ui/Dialog", "./Ui/Dropdown/Simple", "./Ui/Mobile", "./Ui/Page/Action", "./Ui/TabMenu", "./Ui/Tooltip", "./Ui/Page/JumpTo", "./Ui/Password", "./Ui/Empty", "./Ui/Object/Action", "./Ui/Object/Action/Delete", "./Ui/Object/Action/Toggle", "./Ui/Search", "./LazyLoader", "./Helper/PageOverlay", "perfect-scrollbar"], function (require, exports, tslib_1, Core, Picker_1, Devtools_1, Listener_1, Environment, EventHandler, XsrfToken, Language, Dialog_1, Simple_1, UiMobile, UiPageAction, UiTabMenu, UiTooltip, UiPageJumpTo, UiPassword, UiEmpty, UiObjectAction, UiObjectActionDelete, UiObjectActionToggle, Search_1, LazyLoader_1, PageOverlay_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Core = tslib_1.__importStar(Core);
Picker_1 = tslib_1.__importDefault(Picker_1);
Devtools_1 = tslib_1.__importDefault(Devtools_1);
childList: true,
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "./BackgroundQueue", "./Bootstrap", "./Controller/Popover", "./Ui/User/Ignore", "./Ui/Page/Header/Menu", "./Ui/Message/UserConsent", "./Ui/Message/Share/Dialog", "./Ui/Message/Share/Providers", "./Ui/Feed/Dialog", "./User", "./Ui/Page/Menu/Main/Frontend", "./LazyLoader", "./Ajax/Backend"], function (require, exports, tslib_1, BackgroundQueue, Bootstrap, ControllerPopover, UiUserIgnore, UiPageHeaderMenu, UiMessageUserConsent, UiMessageShareDialog, Providers_1, UiFeedDialog, User_1, Frontend_1, LazyLoader_1, Backend_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
BackgroundQueue = tslib_1.__importStar(BackgroundQueue);
Bootstrap = tslib_1.__importStar(Bootstrap);
ControllerPopover = tslib_1.__importStar(ControllerPopover);
void new Promise((resolve_4, reject_4) => { require(["./Component/Comment/Response/woltlab-core-comment-response"], resolve_4, reject_4); }).then(tslib_1.__importStar);
});
}
- exports.setup = setup;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.copyElementTextToClipboard = exports.copyTextToClipboard = void 0;
+ exports.copyTextToClipboard = copyTextToClipboard;
+ exports.copyElementTextToClipboard = copyElementTextToClipboard;
async function copyTextToClipboard(text) {
if (navigator.clipboard) {
return navigator.clipboard.writeText(text);
}
throw new Error("navigator.clipboard is not supported.");
}
- exports.copyTextToClipboard = copyTextToClipboard;
async function copyElementTextToClipboard(element) {
return copyTextToClipboard(element.textContent.replace(/\u200B/g, "").replace(/\u00A0/g, " "));
}
- exports.copyElementTextToClipboard = copyElementTextToClipboard;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.stringToRgba = exports.isValidColor = exports.rgbaToString = exports.rgbaToHex = exports.rgbToHex = exports.hexToRgb = exports.rgbToHsv = exports.rgbToHsl = exports.hsvToRgb = exports.hslToRgb = void 0;
+ exports.hslToRgb = hslToRgb;
+ exports.hsvToRgb = hsvToRgb;
+ exports.rgbToHsl = rgbToHsl;
+ exports.rgbToHsv = rgbToHsv;
+ exports.hexToRgb = hexToRgb;
+ exports.rgbToHex = rgbToHex;
+ exports.rgbaToHex = rgbaToHex;
+ exports.rgbaToString = rgbaToString;
+ exports.isValidColor = isValidColor;
+ exports.stringToRgba = stringToRgba;
/**
* Converts a HSL color into RGB.
*
b: Math.round((B + m) * 255),
};
}
- exports.hslToRgb = hslToRgb;
/**
* Converts a HSV color into RGB.
*
b: Math.round(rgb.b * 255),
};
}
- exports.hsvToRgb = hsvToRgb;
/**
* Converts a RGB color into HSL.
*
l: Math.round(l * 100),
};
}
- exports.rgbToHsl = rgbToHsl;
/**
* Converts a RGB color into HSV.
*
v: Math.round(max * 100),
};
}
- exports.rgbToHsv = rgbToHsv;
/**
* Converts HEX into RGB.
*/
}
return Number.NaN;
}
- exports.hexToRgb = hexToRgb;
/**
* @since 5.5
*/
}
return rgbComponentToHex(r) + rgbComponentToHex(g) + rgbComponentToHex(b);
}
- exports.rgbToHex = rgbToHex;
/**
* @since 5.5
*/
}
return rgbToHex(r, g, b) + alphaToHex(a);
}
- exports.rgbaToHex = rgbaToHex;
/**
* Returns the textual representation of a RGBA value.
*
function rgbaToString(rgba) {
return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`;
}
- exports.rgbaToString = rgbaToString;
/**
* @since 5.5
*/
colorChecker.style.color = color;
return colorChecker.style.color !== "";
}
- exports.isValidColor = isValidColor;
/**
* Converts the given CSS color value to an RGBA value.
*
}
throw new Error(`Cannot process color '${color}'.`);
}
- exports.stringToRgba = stringToRgba;
// WCF.ColorPicker compatibility (color format conversion)
window.__wcf_bc_colorUtil = {
hexToRgb,
define(["require", "exports", "../../Language", "../../Ui/Article/Search", "../Ckeditor/Event"], function (require, exports, Language_1, Search_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setupBbcode(ckeditor) {
(0, Event_1.listenToCkeditor)(ckeditor.sourceElement).bbcode(({ bbcode }) => {
if (bbcode !== "wsa") {
setupBbcode(ckeditor);
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "./Ckeditor/Attachment", "./Ckeditor/Media", "./Ckeditor/Mention", "./Ckeditor/Quote", "./Ckeditor/Autosave", "./Ckeditor/Configuration", "./Ckeditor/Event", "./Ckeditor/SubmitOnEnter", "./Ckeditor/Normalizer", "../Ui/Scroll", "../Devtools", "./Ckeditor/Keyboard", "./Ckeditor/Layer", "../Environment"], function (require, exports, tslib_1, Attachment_1, Media_1, Mention_1, Quote_1, Autosave_1, Configuration_1, Event_1, SubmitOnEnter_1, Normalizer_1, Scroll_1, Devtools_1, Keyboard_1, Layer_1, Environment_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getCkeditorById = exports.getCkeditor = exports.setupCkeditor = void 0;
+ exports.setupCkeditor = setupCkeditor;
+ exports.getCkeditor = getCkeditor;
+ exports.getCkeditorById = getCkeditorById;
Devtools_1 = tslib_1.__importDefault(Devtools_1);
const instances = new WeakMap();
class Ckeditor {
}
return ckeditor;
}
- exports.setupCkeditor = setupCkeditor;
function getCkeditor(element) {
return instances.get(element);
}
- exports.getCkeditor = getCkeditor;
function getCkeditorById(id, throwIfNotExists = true) {
const element = document.getElementById(id);
if (element === null) {
}
return getCkeditor(element);
}
- exports.getCkeditorById = getCkeditorById;
});
define(["require", "exports", "./Event"], function (require, exports, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function uploadAttachment(element, file, abortController) {
const payload = { abortController, file };
(0, Event_1.dispatchToCkeditor)(element).uploadAttachment(payload);
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "../../Core", "../../Language", "../../StringUtil", "./Event"], function (require, exports, Core_1, Language_1, StringUtil_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.initializeAutosave = exports.setupRestoreDraft = exports.deleteDraft = void 0;
+ exports.deleteDraft = deleteDraft;
+ exports.setupRestoreDraft = setupRestoreDraft;
+ exports.initializeAutosave = initializeAutosave;
function getLocalStorageKey(identifier) {
return `${(0, Core_1.getStoragePrefix)()}ckeditor5-${identifier}`;
}
// We cannot do anything meaningful if this fails.
}
}
- exports.deleteDraft = deleteDraft;
function saveDraft(element, identifier, html) {
if (html === "") {
deleteDraft(identifier);
}
// Check if the stored value is outdated.
const lastEditTime = parseInt(editor.sourceElement.dataset.autosaveLastEditTime) || 0;
- if (lastEditTime && lastEditTime * 1000 >= value.timestamp) {
+ if (lastEditTime && lastEditTime * 1_000 >= value.timestamp) {
return;
}
const originalValue = editor.data.get();
closeOverlayButton.focus();
});
}
- exports.setupRestoreDraft = setupRestoreDraft;
function removeExpiredDrafts() {
- const oneWeekAgo = Date.now() - 7 * 86400;
+ const oneWeekAgo = Date.now() - 7 * 86_400;
Object.keys(localStorage)
.filter((key) => key.startsWith(`ckeditor5-`))
.forEach((key) => {
saveDraft(element, identifier, editor.data.get());
return Promise.resolve();
},
- waitingTime: 15000,
+ waitingTime: 15_000,
};
(0, Event_1.listenToCkeditor)(element).reset(() => deleteDraft(identifier));
if (element instanceof HTMLTextAreaElement && element.form) {
element.form.addEventListener("submit", () => deleteDraft(identifier));
}
}
- exports.initializeAutosave = initializeAutosave;
});
define(["require", "exports", "../../Language"], function (require, exports, Language_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.createConfigurationFor = void 0;
+ exports.createConfigurationFor = createConfigurationFor;
class ConfigurationBuilder {
#features;
#divider = "|";
configuration.build();
return configuration.toConfig();
}
- exports.createConfigurationFor = createConfigurationFor;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.listenToCkeditor = exports.dispatchToCkeditor = void 0;
+ exports.dispatchToCkeditor = dispatchToCkeditor;
+ exports.listenToCkeditor = listenToCkeditor;
class EventDispatcher {
#element;
constructor(element) {
function dispatchToCkeditor(element) {
return new EventDispatcher(element);
}
- exports.dispatchToCkeditor = dispatchToCkeditor;
function listenToCkeditor(element) {
return new EventListener(element);
}
- exports.listenToCkeditor = listenToCkeditor;
});
define(["require", "exports", "./Event"], function (require, exports, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setupSubmitShortcut = void 0;
+ exports.setupSubmitShortcut = setupSubmitShortcut;
function getSubmitShortcut(submitButton) {
return (event) => {
if (event.code !== "KeyS") {
container.removeEventListener("keydown", submitShortcut);
});
}
- exports.setupSubmitShortcut = setupSubmitShortcut;
});
define(["require", "exports", "../../Helper/PageOverlay"], function (require, exports, PageOverlay_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
const targetClassNames = ["ck-body-wrapper", "ck-inspector-wrapper", "ck-inspector-portal"];
function setupWatcher() {
const observer = new MutationObserver((mutations) => {
hasWatcher = true;
setupWatcher();
}
- exports.setup = setup;
});
define(["require", "exports", "./Event"], function (require, exports, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function uploadMedia(element, file, abortController) {
const payload = { abortController, file };
(0, Event_1.dispatchToCkeditor)(element).uploadMedia(payload);
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "../../Ajax/Backend", "../../Dom/Util", "./Event"], function (require, exports, Backend_1, Util_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
async function getPossibleMentions(query) {
// Prevent excessive attempts to resolve mentions.
if (query.length > 24) {
configuration.mention = getMentionConfiguration();
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Dom/Util"], function (require, exports, tslib_1, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.normalizeLegacyMessage = exports.normalizeLegacyHtml = void 0;
+ exports.normalizeLegacyHtml = normalizeLegacyHtml;
+ exports.normalizeLegacyMessage = normalizeLegacyMessage;
Util_1 = tslib_1.__importDefault(Util_1);
function normalizeBr(div) {
div.querySelectorAll("br").forEach((br) => {
convertFloatingImages(div);
return div.innerHTML;
}
- exports.normalizeLegacyHtml = normalizeLegacyHtml;
function normalizeLegacyMessage(element) {
if (!(element instanceof HTMLTextAreaElement)) {
throw new TypeError("Expected the element to be a <textarea>.");
}
element.value = normalizeLegacyHtml(element.value);
}
- exports.normalizeLegacyMessage = normalizeLegacyMessage;
});
define(["require", "exports", "../../StringUtil", "./Event"], function (require, exports, StringUtil_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function insertQuote(editor, payload) {
let { author, content, link } = payload;
if (payload.isText) {
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "./Event"], function (require, exports, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setup(editor, ckeditor) {
editor.editing.view.document.on("enter", (evt, data) => {
// Shift+Enter is allowed to create line breaks.
}
}, { priority: "high" });
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Ajax", "../../Ui/Scroll", "../../Ui/Notification", "../../Language", "../../Event/Handler", "../../Dom/Util", "./GuestDialog", "../../Core", "../Ckeditor", "../Ckeditor/Event"], function (require, exports, tslib_1, Ajax_1, UiScroll, UiNotification, Language_1, EventHandler, Util_1, GuestDialog_1, Core, Ckeditor_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setCommentEditorFeatures = exports.CommentAdd = void 0;
+ exports.CommentAdd = void 0;
+ exports.setCommentEditorFeatures = setCommentEditorFeatures;
UiScroll = tslib_1.__importStar(UiScroll);
UiNotification = tslib_1.__importStar(UiNotification);
EventHandler = tslib_1.__importStar(EventHandler);
features.table = false;
});
}
- exports.setCommentEditorFeatures = setCommentEditorFeatures;
});
define(["require", "exports", "tslib", "../../Controller/Captcha", "../../Language", "../Dialog"], function (require, exports, tslib_1, Captcha_1, Language_1, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.showGuestDialog = void 0;
+ exports.showGuestDialog = showGuestDialog;
Captcha_1 = tslib_1.__importDefault(Captcha_1);
function showGuestDialog(template) {
const captchaId = "commentAdd";
});
});
}
- exports.showGuestDialog = showGuestDialog;
});
define(["require", "exports", "tslib", "../../Ajax", "../../Dom/Change/Listener", "../../Dom/Util", "../../Helper/Selector", "../../Language", "./Add", "./Response/Add", "../../Ui/Scroll", "../../Ui/Reaction/Handler"], function (require, exports, tslib_1, Ajax_1, Listener_1, Util_1, Selector_1, Language_1, Add_1, Add_2, UiScroll, Handler_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
UiScroll = tslib_1.__importStar(UiScroll);
}
new CommentList(element);
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "./Dialog", "../Language", "../Dom/Util", "./Confirmation/Custom"], function (require, exports, tslib_1, Dialog_1, Language_1, DomUtil, Custom_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.confirmationFactory = void 0;
+ exports.confirmationFactory = confirmationFactory;
DomUtil = tslib_1.__importStar(DomUtil);
class ConfirmationPrefab {
custom(question) {
function confirmationFactory() {
return new ConfirmationPrefab();
}
- exports.confirmationFactory = confirmationFactory;
});
define(["require", "exports", "./Dialog/Setup", "../Element/woltlab-core-dialog", "../Element/woltlab-core-dialog-control"], function (require, exports, Setup_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.dialogFactory = void 0;
+ exports.dialogFactory = dialogFactory;
function dialogFactory() {
return new Setup_1.DialogSetup();
}
- exports.dialogFactory = dialogFactory;
});
define(["require", "exports", "../../Helper/Selector", "./Geocoding/Suggestion", "./Marker", "./woltlab-core-google-maps"], function (require, exports, Selector_1, Suggestion_1, Marker_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
class Geocoding {
#element;
#map;
new Geocoding(element, map);
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Ui/Search/Input"], function (require, exports, tslib_1, Input_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Input_1 = tslib_1.__importDefault(Input_1);
class Suggestion extends Input_1.default {
#geocoder;
callbackSelect,
}, geocoder);
}
- exports.setup = setup;
});
define(["require", "exports", "./woltlab-core-google-maps"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.addDraggableMarker = exports.addMarker = void 0;
+ exports.addMarker = addMarker;
+ exports.addDraggableMarker = addDraggableMarker;
async function addMarker(element, latitude, longitude, title, focus) {
const map = await element.getMap();
const marker = new google.maps.Marker({
map.setCenter(marker.getPosition());
}
}
- exports.addMarker = addMarker;
async function addDraggableMarker(element, latitude, longitude) {
const map = await element.getMap();
if (latitude === undefined) {
map.setCenter(marker.getPosition());
return marker;
}
- exports.addDraggableMarker = addDraggableMarker;
});
define(["require", "exports", "tslib", "../../Ajax", "../Dialog", "../../Dom/Util", "@googlemaps/markerclusterer", "./woltlab-core-google-maps"], function (require, exports, tslib_1, Ajax_1, Dialog_1, Util_1, markerclusterer_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Util_1 = tslib_1.__importDefault(Util_1);
class MarkerLoader {
#map;
const map = await googleMaps.getMap();
new MarkerLoader(map, actionClassName, additionalParameters);
}
- exports.setup = setup;
});
define(["require", "exports", "../../Language", "../../Ui/Page/Search", "../Ckeditor/Event"], function (require, exports, Language_1, Search_1, Event_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setupBbcode(ckeditor) {
(0, Event_1.listenToCkeditor)(ckeditor.sourceElement).bbcode(({ bbcode }) => {
if (bbcode !== "wsp") {
setupBbcode(ckeditor);
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../Ajax", "../Core", "../Dom/Change/Listener", "../Dom/Util", "../Event/Handler", "../Language", "../Ui/Confirmation", "../Ui/Dropdown/Simple", "../Ui/Page/Action", "../Ui/Screen"], function (require, exports, tslib_1, Ajax, Core, Listener_1, Util_1, EventHandler, Language, UiConfirmation, Simple_1, UiPageAction, UiScreen) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.unmark = exports.showEditor = exports.hideEditor = exports.reload = exports.setup = void 0;
+ exports.setup = setup;
+ exports.reload = reload;
+ exports.hideEditor = hideEditor;
+ exports.showEditor = showEditor;
+ exports.unmark = unmark;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
Listener_1 = tslib_1.__importDefault(Listener_1);
function setup(options) {
getControllerClipboard().setup(options);
}
- exports.setup = setup;
/**
* Reloads the clipboard data.
*/
function reload() {
getControllerClipboard().reload();
}
- exports.reload = reload;
/**
* Hides the clipboard editor for the given object type.
*/
function hideEditor(objectType) {
getControllerClipboard().hideEditor(objectType);
}
- exports.hideEditor = hideEditor;
/**
* Shows the clipboard editor.
*/
function showEditor() {
getControllerClipboard().showEditor();
}
- exports.showEditor = showEditor;
/**
* Unmarks the objects with given clipboard object type and ids.
*/
function unmark(objectType, objectIds) {
getControllerClipboard().unmark(objectType, objectIds);
}
- exports.unmark = unmark;
});
define(["require", "exports", "tslib", "../../../Dom/Util", "../../../Event/Handler"], function (require, exports, tslib_1, Util_1, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.register = void 0;
+ exports.register = register;
Util_1 = tslib_1.__importDefault(Util_1);
EventHandler = tslib_1.__importStar(EventHandler);
const _pages = Array.from(document.querySelectorAll('input[name="pageIDs[]"]'));
});
checkVisibility();
}
- exports.register = register;
});
define(["require", "exports", "tslib", "../../Media/List/Upload", "../../Media/Clipboard", "../../Event/Handler", "../../Media/Editor", "../../Dom/Change/Listener"], function (require, exports, tslib_1, Upload_1, MediaClipboard, EventHandler, Editor_1, DomChangeListener) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Upload_1 = tslib_1.__importDefault(Upload_1);
MediaClipboard = tslib_1.__importStar(MediaClipboard);
EventHandler = tslib_1.__importStar(EventHandler);
DomChangeListener.add("WoltLabSuite/Core/Controller/Media/List", () => addButtonEventListeners());
EventHandler.add("com.woltlab.wcf.media.upload", "success", (data) => openEditorAfterUpload(data));
}
- exports.init = init;
/**
* Adds the `click` event listeners to the media edit icons in new media table rows.
*/
define(["require", "exports", "WoltLabSuite/Core/Helper/PromiseMutex", "../../Component/Dialog", "../../Language", "../../Ui/Notification"], function (require, exports, PromiseMutex_1, Dialog_1, Language_1, Notification_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
async function showDialog(url) {
const { ok, result } = await (0, Dialog_1.dialogFactory)().usingFormBuilder().fromEndpoint(url);
if (ok) {
function setup(button) {
button.addEventListener("click", (0, PromiseMutex_1.promiseMutex)(() => showDialog(button.dataset.url)));
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Ajax"], function (require, exports, tslib_1, Ajax) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Ajax = tslib_1.__importStar(Ajax);
/**
* Initializes dismiss buttons.
button.addEventListener("click", (ev) => click(ev));
});
}
- exports.setup = setup;
/**
* Sends a request to dismiss a notice and removes it afterwards.
*/
define(["require", "exports", "tslib", "../Ajax", "../Dom/Change/Listener", "../Dom/Util", "../Environment", "../Ui/Alignment"], function (require, exports, tslib_1, Ajax, Listener_1, Util_1, Environment, UiAlignment) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.resetCache = exports.ajaxApi = exports.setContent = exports.init = void 0;
+ exports.init = init;
+ exports.setContent = setContent;
+ exports.ajaxApi = ajaxApi;
+ exports.resetCache = resetCache;
Ajax = tslib_1.__importStar(Ajax);
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
function init(options) {
getControllerPopover().init(options);
}
- exports.init = init;
/**
* Sets the content for given identifier and object id.
*/
function setContent(identifier, objectId, content) {
getControllerPopover().setContent(identifier, objectId, content);
}
- exports.setContent = setContent;
/**
* Sends an AJAX requests to the server, simple wrapper to reuse the request object.
*/
function ajaxApi(data, success, failure) {
getControllerPopover().ajaxApi(data, success, failure);
}
- exports.ajaxApi = ajaxApi;
/**
* Resets the cached data for an object.
*/
function resetCache(identifier, objectId) {
getControllerPopover().resetCache(identifier, objectId);
}
- exports.resetCache = resetCache;
});
define(["require", "exports", "tslib", "../../Ajax", "../../Language", "../../Ui/Dialog"], function (require, exports, tslib_1, Ajax, Language, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.showDialog = exports.setup = void 0;
+ exports.setup = setup;
+ exports.showDialog = showDialog;
Ajax = tslib_1.__importStar(Ajax);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
new ControllerStyleChanger();
}
}
- exports.setup = setup;
/**
* Loads and displays the style change dialog.
*/
function showDialog(event) {
controllerStyleChanger.showDialog(event);
}
- exports.showDialog = showDialog;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setup() {
const themeColor = document.querySelector('meta[name="theme-color"]');
themeColor.content = window.getComputedStyle(document.body).getPropertyValue("--wcfPageThemeColor");
themeColor.content = window.getComputedStyle(document.body).getPropertyValue("--wcfPageThemeColor");
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Language", "../../../Ui/Dropdown/Reusable"], function (require, exports, tslib_1, Language, UiDropdownReusable) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Language = tslib_1.__importStar(Language);
UiDropdownReusable = tslib_1.__importStar(UiDropdownReusable);
let _dropDownMenu;
button.addEventListener("click", (ev) => click(ev));
});
}
- exports.init = init;
});
define(["require", "exports", "../../Component/User/List"], function (require, exports, List_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function setupUserList(userId, buttonId, className) {
const button = document.getElementById(buttonId);
if (button) {
setupFollowerList(userId);
setupVisitorList(userId);
}
- exports.setup = setup;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getXsrfToken = exports.enableLegacyInheritance = exports.debounce = exports.stringToBool = exports.getStoragePrefix = exports.triggerEvent = exports.serialize = exports.getUuid = exports.getType = exports.isPlainObject = exports.inherit = exports.extend = exports.convertLegacyUrl = exports.clone = void 0;
+ exports.clone = clone;
+ exports.convertLegacyUrl = convertLegacyUrl;
+ exports.extend = extend;
+ exports.inherit = inherit;
+ exports.isPlainObject = isPlainObject;
+ exports.getType = getType;
+ exports.getUuid = getUuid;
+ exports.serialize = serialize;
+ exports.triggerEvent = triggerEvent;
+ exports.getStoragePrefix = getStoragePrefix;
+ exports.stringToBool = stringToBool;
+ exports.debounce = debounce;
+ exports.enableLegacyInheritance = enableLegacyInheritance;
+ exports.getXsrfToken = getXsrfToken;
const _clone = function (variable) {
if (typeof variable === "object" && (Array.isArray(variable) || isPlainObject(variable))) {
return _cloneObject(variable);
function clone(obj) {
return _clone(obj);
}
- exports.clone = clone;
/**
* Converts WCF 2.0-style URLs into the default URL layout.
*/
return `index.php?${controller}/&`;
});
}
- exports.convertLegacyUrl = convertLegacyUrl;
/**
* Merges objects with the first argument.
*
}
return newObj;
}
- exports.extend = extend;
/**
* Inherits the prototype methods from one constructor to another
* constructor.
},
}), propertiesObject || {});
}
- exports.inherit = inherit;
/**
* Returns true if `obj` is an object literal.
*/
}
return Object.getPrototypeOf(obj) === Object.prototype;
}
- exports.isPlainObject = isPlainObject;
/**
* Returns the object's class name.
*/
function getType(obj) {
return Object.prototype.toString.call(obj).replace(/^\[object (.+)]$/, "$1");
}
- exports.getType = getType;
/**
* Returns a RFC4122 version 4 compilant UUID.
*
return v.toString(16);
});
}
- exports.getUuid = getUuid;
/**
* Recursively serializes an object into an encoded URI parameter string.
*/
});
return parameters.join("&");
}
- exports.serialize = serialize;
/**
* Triggers a custom or built-in event.
*/
});
element.dispatchEvent(event);
}
- exports.triggerEvent = triggerEvent;
/**
* Returns the unique prefix for the localStorage.
*/
function getStoragePrefix() {
return _prefix;
}
- exports.getStoragePrefix = getStoragePrefix;
/**
* Interprets a string value as a boolean value similar to the behavior of the
* legacy functions `elAttrBool()` and `elDataBool()`.
function stringToBool(value) {
return value === "1" || value === "true";
}
- exports.stringToBool = stringToBool;
/**
* A function that emits a side effect and does not return anything.
*
}
};
}
- exports.debounce = debounce;
/**
* @deprecated 6.0
*/
// This MUST NOT be an error to prevent bricking installations during the upgrade.
console.error("Relying on the legacy inheritance is no longer supported. Please migrate your code to use ES6 classes and inheritance.", legacyClass);
}
- exports.enableLegacyInheritance = enableLegacyInheritance;
function getXsrfToken() {
const cookies = document.cookie.split(";").map((c) => c.trim());
const xsrfToken = cookies.find((c) => c.startsWith("XSRF-TOKEN="));
const [_key, value] = xsrfToken.split(/=/, 2);
return decodeURIComponent(value.trim());
}
- exports.getXsrfToken = getXsrfToken;
});
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;
+ exports.formatDate = formatDate;
+ exports.formatTime = formatTime;
+ exports.formatDateTime = formatDateTime;
+ exports.format = format;
+ exports.gmdate = gmdate;
+ exports.getTimeElement = getTimeElement;
+ exports.getTimezoneDate = getTimezoneDate;
Language = tslib_1.__importStar(Language);
const locale = document.documentElement.lang;
const dateFormatter = new Intl.DateTimeFormat(locale, { dateStyle: "long" });
function formatDate(date) {
return dateFormatter.format(date);
}
- exports.formatDate = formatDate;
/**
* Returns the formatted time.
*/
function formatTime(date) {
return timeFormatter.format(date);
}
- exports.formatTime = formatTime;
/**
* Returns the formatted date time.
*/
function formatDateTime(date) {
return dateTimeFormatter.format(date);
}
- exports.formatDateTime = formatDateTime;
/**
* Formats a date using PHP's `date()` modifiers.
*
}
return out;
}
- exports.format = format;
/**
* Returns UTC timestamp, if date is not given, current time will be used.
*/
}
return Math.round(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), date.getUTCDay(), date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds()) / 1000);
}
- exports.gmdate = gmdate;
/**
* Returns a `<woltlab-core-date-time>` element based on the given date
* just like a `<woltlab-core-date-time>` element created by
}
return time;
}
- exports.getTimeElement = getTimeElement;
/**
* Returns a Date object with precise offset (including timezone and local timezone).
*/
function getTimezoneDate(timestamp, offset) {
const date = new Date(timestamp);
- const localOffset = date.getTimezoneOffset() * 60000;
+ const localOffset = date.getTimezoneOffset() * 60_000;
return new Date(timestamp + localOffset + offset);
}
- exports.getTimezoneDate = getTimezoneDate;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.notify = exports.watch = void 0;
+ exports.watch = watch;
+ exports.notify = notify;
const channelName = "com.woltlab.wcf#DevTools/Style/LiveReload";
function watch() {
if (!window.BroadcastChannel) {
return;
}
const url = new URL(link.href);
- url.searchParams.set("m", Math.trunc(Date.now() / 1000).toString());
+ url.searchParams.set("m", Math.trunc(Date.now() / 1_000).toString());
const newLink = document.createElement("link");
newLink.rel = "stylesheet";
newLink.addEventListener("load", () => {
link.insertAdjacentElement("afterend", newLink);
};
}
- exports.watch = watch;
function notify() {
if (!window.BroadcastChannel) {
return;
const channel = new BroadcastChannel(channelName);
channel.postMessage(undefined);
}
- exports.notify = notify;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.prevByTag = exports.prevByClass = exports.prevBySel = exports.prev = exports.nextByTag = exports.nextByClass = exports.nextBySel = exports.next = exports.parentByTag = exports.parentByClass = exports.parentBySel = exports.childrenByTag = exports.childrenByClass = exports.childrenBySel = exports.childByTag = exports.childByClass = exports.childBySel = void 0;
+ exports.childBySel = childBySel;
+ exports.childByClass = childByClass;
+ exports.childByTag = childByTag;
+ exports.childrenBySel = childrenBySel;
+ exports.childrenByClass = childrenByClass;
+ exports.childrenByTag = childrenByTag;
+ exports.parentBySel = parentBySel;
+ exports.parentByClass = parentByClass;
+ exports.parentByTag = parentByTag;
+ exports.next = next;
+ exports.nextBySel = nextBySel;
+ exports.nextByClass = nextByClass;
+ exports.nextByTag = nextByTag;
+ exports.prev = prev;
+ exports.prevBySel = prevBySel;
+ exports.prevByClass = prevByClass;
+ exports.prevByTag = prevByTag;
const _test = new Map([
[0 /* Type.None */, () => true],
[1 /* Type.Selector */, (element, selector) => element.matches(selector)],
function childBySel(element, selector) {
return _getChildren(element, 1 /* Type.Selector */, selector)[0] || null;
}
- exports.childBySel = childBySel;
/**
* Examines child elements and returns the first child that has the given CSS class set.
*/
function childByClass(element, className) {
return _getChildren(element, 2 /* Type.ClassName */, className)[0] || null;
}
- exports.childByClass = childByClass;
function childByTag(element, tagName) {
return _getChildren(element, 3 /* Type.TagName */, tagName)[0] || null;
}
- exports.childByTag = childByTag;
/**
* Examines child elements and returns all children matching the given selector.
*/
function childrenBySel(element, selector) {
return _getChildren(element, 1 /* Type.Selector */, selector);
}
- exports.childrenBySel = childrenBySel;
/**
* Examines child elements and returns all children that have the given CSS class set.
*/
function childrenByClass(element, className) {
return _getChildren(element, 2 /* Type.ClassName */, className);
}
- exports.childrenByClass = childrenByClass;
function childrenByTag(element, tagName) {
return _getChildren(element, 3 /* Type.TagName */, tagName);
}
- exports.childrenByTag = childrenByTag;
/**
* Examines parent nodes and returns the first parent that matches the given selector.
*/
function parentBySel(element, selector, untilElement) {
return _getParent(element, 1 /* Type.Selector */, selector, untilElement);
}
- exports.parentBySel = parentBySel;
/**
* Examines parent nodes and returns the first parent that has the given CSS class set.
*/
function parentByClass(element, className, untilElement) {
return _getParent(element, 2 /* Type.ClassName */, className, untilElement);
}
- exports.parentByClass = parentByClass;
/**
* Examines parent nodes and returns the first parent which equals the given tag.
*/
function parentByTag(element, tagName, untilElement) {
return _getParent(element, 3 /* Type.TagName */, tagName, untilElement);
}
- exports.parentByTag = parentByTag;
/**
* Returns the next element sibling.
*
function next(element) {
return _getSibling(element, "nextElementSibling", 0 /* Type.None */, "");
}
- exports.next = next;
/**
* Returns the next element sibling that matches the given selector.
*/
function nextBySel(element, selector) {
return _getSibling(element, "nextElementSibling", 1 /* Type.Selector */, selector);
}
- exports.nextBySel = nextBySel;
/**
* Returns the next element sibling with given CSS class.
*/
function nextByClass(element, className) {
return _getSibling(element, "nextElementSibling", 2 /* Type.ClassName */, className);
}
- exports.nextByClass = nextByClass;
/**
* Returns the next element sibling with given CSS class.
*/
function nextByTag(element, tagName) {
return _getSibling(element, "nextElementSibling", 3 /* Type.TagName */, tagName);
}
- exports.nextByTag = nextByTag;
/**
* Returns the previous element sibling.
*
function prev(element) {
return _getSibling(element, "previousElementSibling", 0 /* Type.None */, "");
}
- exports.prev = prev;
/**
* Returns the previous element sibling that matches the given selector.
*/
function prevBySel(element, selector) {
return _getSibling(element, "previousElementSibling", 1 /* Type.Selector */, selector);
}
- exports.prevBySel = prevBySel;
/**
* Returns the previous element sibling with given CSS class.
*/
function prevByClass(element, className) {
return _getSibling(element, "previousElementSibling", 2 /* Type.ClassName */, className);
}
- exports.prevByClass = prevByClass;
/**
* Returns the previous element sibling with given CSS class.
*/
function prevByTag(element, tagName) {
return _getSibling(element, "previousElementSibling", 3 /* Type.TagName */, tagName);
}
- exports.prevByTag = prevByTag;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.touch = exports.platform = exports.browser = exports.setup = void 0;
+ exports.setup = setup;
+ exports.browser = browser;
+ exports.platform = platform;
+ exports.touch = touch;
let _browser = "other";
let _platform = "desktop";
let _touch = false;
_platform = "ios";
}
}
- exports.setup = setup;
/**
* Returns the lower-case browser identifier.
*
function browser() {
return _browser;
}
- exports.browser = browser;
/**
* Returns the browser platform.
*
function platform() {
return _platform;
}
- exports.platform = platform;
/**
* Returns true if browser is potentially used with a touchscreen.
*
function touch() {
return _touch;
}
- exports.touch = touch;
});
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;
+ exports.add = add;
+ exports.fire = fire;
+ exports.remove = remove;
+ exports.removeAll = removeAll;
+ exports.removeAllBySuffix = removeAllBySuffix;
Core = tslib_1.__importStar(Core);
Devtools_1 = tslib_1.__importDefault(Devtools_1);
const _listeners = new Map();
callbacks.set(uuid, callback);
return uuid;
}
- exports.add = add;
/**
* Fires an event and notifies all listeners.
*/
?.get(action)
?.forEach((callback) => callback(data));
}
- exports.fire = fire;
/**
* Removes an event listener, requires the uuid returned by add().
*/
function remove(identifier, action, uuid) {
_listeners.get(identifier)?.get(action)?.delete(uuid);
}
- exports.remove = remove;
/**
* Removes all event listeners for given action. Omitting the second parameter will
* remove all listeners for this identifier.
actions.delete(action);
}
}
- exports.removeAll = removeAll;
/**
* Removes all listeners registered for an identifier and ending with a special suffix.
* This is commonly used to unbound event handlers for the editor.
}
});
}
- exports.removeAllBySuffix = removeAllBySuffix;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.Tab = exports.Space = exports.Home = exports.Escape = exports.Enter = exports.End = exports.Comma = exports.ArrowUp = exports.ArrowRight = exports.ArrowLeft = exports.ArrowDown = void 0;
+ exports.ArrowDown = ArrowDown;
+ exports.ArrowLeft = ArrowLeft;
+ exports.ArrowRight = ArrowRight;
+ exports.ArrowUp = ArrowUp;
+ exports.Comma = Comma;
+ exports.End = End;
+ exports.Enter = Enter;
+ exports.Escape = Escape;
+ exports.Home = Home;
+ exports.Space = Space;
+ exports.Tab = Tab;
function _test(event, key, which) {
if (!(event instanceof Event)) {
throw new TypeError("Expected a valid event when testing for key '" + key + "'.");
function ArrowDown(event) {
return _test(event, "ArrowDown", 40);
}
- exports.ArrowDown = ArrowDown;
/**
* Returns true if the pressed key equals 'ArrowLeft'.
*
function ArrowLeft(event) {
return _test(event, "ArrowLeft", 37);
}
- exports.ArrowLeft = ArrowLeft;
/**
* Returns true if the pressed key equals 'ArrowRight'.
*
function ArrowRight(event) {
return _test(event, "ArrowRight", 39);
}
- exports.ArrowRight = ArrowRight;
/**
* Returns true if the pressed key equals 'ArrowUp'.
*
function ArrowUp(event) {
return _test(event, "ArrowUp", 38);
}
- exports.ArrowUp = ArrowUp;
/**
* Returns true if the pressed key equals 'Comma'.
*
function Comma(event) {
return _test(event, ",", 44);
}
- exports.Comma = Comma;
/**
* Returns true if the pressed key equals 'End'.
*
function End(event) {
return _test(event, "End", 35);
}
- exports.End = End;
/**
* Returns true if the pressed key equals 'Enter'.
*
function Enter(event) {
return _test(event, "Enter", 13);
}
- exports.Enter = Enter;
/**
* Returns true if the pressed key equals 'Escape'.
*
function Escape(event) {
return _test(event, "Escape", 27);
}
- exports.Escape = Escape;
/**
* Returns true if the pressed key equals 'Home'.
*
function Home(event) {
return _test(event, "Home", 36);
}
- exports.Home = Home;
/**
* Returns true if the pressed key equals 'Space'.
*
function Space(event) {
return _test(event, "Space", 32);
}
- exports.Space = Space;
/**
* Returns true if the pressed key equals 'Tab'.
*
function Tab(event) {
return _test(event, "Tab", 9);
}
- exports.Tab = Tab;
});
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;
+ exports.formatFilesize = formatFilesize;
+ exports.getIconNameByFilename = getIconNameByFilename;
+ exports.getExtensionByMimeType = getExtensionByMimeType;
+ exports.blobToFile = blobToFile;
StringUtil = tslib_1.__importStar(StringUtil);
const _fileExtensionIconMapping = new Map(Object.entries({
// archive
}
return StringUtil.formatNumeric(byte, -precision) + " " + symbol;
}
- exports.formatFilesize = formatFilesize;
/**
* Returns the icon name for given filename.
*
}
return "";
}
- exports.getIconNameByFilename = getIconNameByFilename;
/**
* Returns a known file extension including a leading dot or an empty string.
*/
}
return "";
}
- exports.getExtensionByMimeType = getExtensionByMimeType;
/**
* Constructs a File object from a Blob
*
const ext = getExtensionByMimeType(blob.type);
return new File([blob], filename + ext, { type: blob.type });
}
- exports.blobToFile = blobToFile;
});
define(["require", "exports", "tslib", "WoltLabSuite/Core/Ui/ItemList/LineBreakSeparatedText", "WoltLabSuite/Core/Language", "WoltLabSuite/Core/Dom/Util"], function (require, exports, tslib_1, UiItemList, Language_1, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getValues = exports.MultilineItemListFormField = void 0;
+ exports.MultilineItemListFormField = void 0;
+ exports.getValues = getValues;
UiItemList = tslib_1.__importStar(UiItemList);
Util_1 = tslib_1.__importDefault(Util_1);
const _data = new Map();
}
return _data.get(elementId).getItems();
}
- exports.getValues = getValues;
});
define(["require", "exports", "tslib", "../../../../Dom/Util", "../../../../Event/Handler"], function (require, exports, tslib_1, Util_1, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.unregister = exports.register = exports.isHiddenByDependencies = exports.checkDependencies = exports.checkContainers = exports.addDependency = exports.addContainerCheckCallback = void 0;
+ exports.addContainerCheckCallback = addContainerCheckCallback;
+ exports.addDependency = addDependency;
+ exports.checkContainers = checkContainers;
+ exports.checkDependencies = checkDependencies;
+ exports.isHiddenByDependencies = isHiddenByDependencies;
+ exports.register = register;
+ exports.unregister = unregister;
Util_1 = tslib_1.__importDefault(Util_1);
EventHandler = tslib_1.__importStar(EventHandler);
const _dependencyHiddenNodes = new Set();
}
EventHandler.add("com.woltlab.wcf.form.builder.dependency", "checkContainers", callback);
}
- exports.addContainerCheckCallback = addContainerCheckCallback;
/**
* Registers a new form field dependency.
*/
}
});
}
- exports.addDependency = addDependency;
/**
* Checks the containers for their availability.
*
checkContainers();
}
}
- exports.checkContainers = checkContainers;
/**
* Checks if all dependencies are met.
*/
obsoleteNodeIds.forEach((id) => _nodeDependencies.delete(id));
checkContainers();
}
- exports.checkDependencies = checkDependencies;
/**
* Returns `true` if the given node has been hidden because of its own dependencies.
*/
});
return returnValue;
}
- exports.isHiddenByDependencies = isHiddenByDependencies;
/**
* Registers the form with the given id with the dependency manager.
*/
}
_forms.add(form);
}
- exports.register = register;
/**
* Unregisters the form with the given id and all of its dependencies.
*/
});
});
}
- exports.unregister = unregister;
});
define(["require", "exports", "tslib", "../../Core", "../../Event/Handler", "./Field/Field", "./Field/Dependency/Manager"], function (require, exports, tslib_1, Core, EventHandler, Field_1, DependencyManager) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.unregisterForm = exports.registerForm = exports.registerField = exports.hasForm = exports.hasField = exports.getForm = exports.getField = exports.getData = void 0;
+ exports.getData = getData;
+ exports.getField = getField;
+ exports.getForm = getForm;
+ exports.hasField = hasField;
+ exports.hasForm = hasForm;
+ exports.registerField = registerField;
+ exports.registerForm = registerForm;
+ exports.unregisterForm = unregisterForm;
Core = tslib_1.__importStar(Core);
EventHandler = tslib_1.__importStar(EventHandler);
Field_1 = tslib_1.__importDefault(Field_1);
return promiseData.reduce((carry, current) => Core.extend(carry, current), {});
});
}
- exports.getData = getData;
/**
* Returns the registered form field with given.
*
}
return _fields.get(formId).get(fieldId);
}
- exports.getField = getField;
/**
* Returns the registered form with given id.
*/
}
return _forms.get(formId);
}
- exports.getForm = getForm;
/**
* Returns `true` if a field with the given id has been registered for the form with the given id
* and `false` otherwise.
}
return _fields.get(formId).has(fieldId);
}
- exports.hasField = hasField;
/**
* Returns `true` if a form with the given id has been registered and `false` otherwise.
*/
function hasForm(formId) {
return _forms.has(formId);
}
- exports.hasForm = hasForm;
/**
* Registers the given field for the form with the given id.
*/
formId: formId,
});
}
- exports.registerField = registerField;
/**
* Registers the form with the given id.
*/
formId: formId,
});
}
- exports.registerForm = registerForm;
/**
* Unregisters the form with the given id.
*/
formId: formId,
});
}
- exports.unregisterForm = unregisterForm;
});
define(["require", "exports", "../Core", "../Helper/Selector"], function (require, exports, Core_1, Selector_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function isInput(node) {
return node.nodeName === "INPUT";
}
node.classList.add("xsrfTokenInputHandled");
});
}
- exports.setup = setup;
});
define(["require", "exports", "./View", "reflect-metadata"], function (require, exports, View_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.DomElementList = exports.DomElement = void 0;
+ exports.DomElement = DomElement;
+ exports.DomElementList = DomElementList;
function DomElement(selector, options) {
return function (target, propertyKey) {
if (!(target instanceof View_1.DomView)) {
});
};
}
- exports.DomElement = DomElement;
function DomElementList(selector, options) {
return function (target, propertyKey) {
if (!(target instanceof View_1.DomView)) {
});
};
}
- exports.DomElementList = DomElementList;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getPageOverlayContainer = exports.releasePageOverlayContainer = exports.adoptPageOverlayContainer = void 0;
+ exports.adoptPageOverlayContainer = adoptPageOverlayContainer;
+ exports.releasePageOverlayContainer = releasePageOverlayContainer;
+ exports.getPageOverlayContainer = getPageOverlayContainer;
const container = document.createElement("div");
container.id = "pageOverlayContainer";
const adoptiveParents = [];
adoptiveParents.push(element);
element.append(container);
}
- exports.adoptPageOverlayContainer = adoptPageOverlayContainer;
/**
* Releases the page overlay container again, allowing
* it to return to its previous position. Must be called
// is disposed while the new dialog is being shown.
adoptiveParents.splice(index, 1);
}
- exports.releasePageOverlayContainer = releasePageOverlayContainer;
/**
* Returns the global page overlay container used for
* elements that should be displayed out of context,
function getPageOverlayContainer() {
return container;
}
- exports.getPageOverlayContainer = getPageOverlayContainer;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.promiseMutex = void 0;
+ exports.promiseMutex = promiseMutex;
function promiseMutex(promise) {
let pending = false;
return function (...args) {
return true;
};
}
- exports.promiseMutex = promiseMutex;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.wheneverFirstSeen = exports.wheneverSeen = void 0;
+ exports.wheneverSeen = wheneverSeen;
+ exports.wheneverFirstSeen = wheneverFirstSeen;
let observer;
const selectors = new Map();
function findElements(node) {
observer.observe(document, { subtree: true, childList: true });
}
}
- exports.wheneverSeen = wheneverSeen;
/**
* Works identical to `wheneverSeen` wite the difference that all
* previously matched elements are tracked and will not be reported
}
});
}
- exports.wheneverFirstSeen = wheneverFirstSeen;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setExifData = exports.removeExifData = exports.getExifBytesFromJpeg = void 0;
+ exports.getExifBytesFromJpeg = getExifBytesFromJpeg;
+ exports.removeExifData = removeExifData;
+ exports.setExifData = setExifData;
const Tag = {
- SOI: 0xd8,
- APP0: 0xe0,
- APP1: 0xe1,
- APP2: 0xe2,
- APP3: 0xe3,
- APP4: 0xe4,
- APP5: 0xe5,
- APP6: 0xe6,
- APP7: 0xe7,
- APP8: 0xe8,
- APP9: 0xe9,
- APP10: 0xea,
- APP11: 0xeb,
- APP12: 0xec,
- APP13: 0xed,
- APP14: 0xee,
+ SOI: 0xd8, // Start of image
+ APP0: 0xe0, // JFIF tag
+ APP1: 0xe1, // EXIF / XMP
+ APP2: 0xe2, // General purpose tag
+ APP3: 0xe3, // General purpose tag
+ APP4: 0xe4, // General purpose tag
+ APP5: 0xe5, // General purpose tag
+ APP6: 0xe6, // General purpose tag
+ APP7: 0xe7, // General purpose tag
+ APP8: 0xe8, // General purpose tag
+ APP9: 0xe9, // General purpose tag
+ APP10: 0xea, // General purpose tag
+ APP11: 0xeb, // General purpose tag
+ APP12: 0xec, // General purpose tag
+ APP13: 0xed, // General purpose tag
+ APP14: 0xee, // Often used to store copyright information
COM: 0xfe, // Comments
};
// Known sequence signatures
}
return exif;
}
- exports.getExifBytesFromJpeg = getExifBytesFromJpeg;
/**
* Removes all EXIF and XMP sections of a JPEG blob.
*/
}
return new Blob([result], { type: blob.type });
}
- exports.removeExifData = removeExifData;
/**
* Overrides the APP1 (EXIF / XMP) sections of a JPEG blob with the given data.
*/
const result = concatUint8Arrays(start, exif, end);
return new Blob([result], { type: blob.type });
}
- exports.setExifData = setExifData;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.containsTransparentPixels = void 0;
+ exports.containsTransparentPixels = containsTransparentPixels;
/**
* Returns whether the given canvas contains transparent pixels.
*/
}
return false;
}
- exports.containsTransparentPixels = containsTransparentPixels;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.addObject = exports.add = exports.get = exports.registerPhrase = exports.getPhrase = void 0;
+ exports.getPhrase = getPhrase;
+ exports.registerPhrase = registerPhrase;
+ exports.get = get;
+ exports.add = add;
+ exports.addObject = addObject;
function getPhrase(key, parameters = {}) {
return window.WoltLabLanguage.getPhrase(key, parameters);
}
- exports.getPhrase = getPhrase;
function registerPhrase(key, value) {
window.WoltLabLanguage.registerPhrase(key, value);
}
- exports.registerPhrase = registerPhrase;
/**
* @deprecated 6.0 Use `getPhrase()` instead
*/
function get(key, parameters = {}) {
return getPhrase(key, parameters);
}
- exports.get = get;
/**
* @deprecated 6.0 Use `registerPhrase()` instead
*/
function add(key, value) {
registerPhrase(key, value);
}
- exports.add = add;
/**
* @deprecated 6.0 Use `registerPhrase()` instead
*/
registerPhrase(key, value);
});
}
- exports.addObject = addObject;
});
define(["require", "exports", "tslib", "../Core", "../Language", "../Dom/Util", "../Ui/Dropdown/Simple"], function (require, exports, tslib_1, Core, Language, Util_1, Simple_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setLanguageId = exports.removeChooser = exports.getLanguageId = exports.getChooser = exports.init = void 0;
+ exports.init = init;
+ exports.getChooser = getChooser;
+ exports.getLanguageId = getLanguageId;
+ exports.removeChooser = removeChooser;
+ exports.setLanguageId = setLanguageId;
Core = tslib_1.__importStar(Core);
Language = tslib_1.__importStar(Language);
Util_1 = tslib_1.__importDefault(Util_1);
}
initElement(chooserId, element, languageId, languages, callback, allowEmptyValue);
}
- exports.init = init;
/**
* Returns the chooser for an input field.
*/
}
return chooser;
}
- exports.getChooser = getChooser;
/**
* Returns the selected language for a certain chooser.
*/
function getLanguageId(chooserId) {
return ~~getChooser(chooserId).element.value;
}
- exports.getLanguageId = getLanguageId;
/**
* Removes the chooser with given id.
*/
function removeChooser(chooserId) {
_choosers.delete(chooserId);
}
- exports.removeChooser = removeChooser;
/**
* Sets the language for a certain chooser.
*/
}
select(chooserId, languageId);
}
- exports.setLanguageId = setLanguageId;
});
define(["require", "exports", "tslib", "../Dom/Util", "../Language", "../Ui/Dropdown/Simple", "../StringUtil"], function (require, exports, tslib_1, Util_1, Language, Simple_1, StringUtil) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.validate = exports.isEnabled = exports.enable = exports.disable = exports.setValues = exports.getValues = exports.unregister = exports.registerCallback = exports.init = void 0;
+ exports.init = init;
+ exports.registerCallback = registerCallback;
+ exports.unregister = unregister;
+ exports.getValues = getValues;
+ exports.setValues = setValues;
+ exports.disable = disable;
+ exports.enable = enable;
+ exports.isEnabled = isEnabled;
+ exports.validate = validate;
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
Simple_1 = tslib_1.__importDefault(Simple_1);
_values.set(elementId, unescapedValues);
initElement(elementId, element, unescapedValues, availableLanguages, forceSelection);
}
- exports.init = init;
/**
* Registers a callback for an element.
*/
}
_elements.get(elementId).callbacks.set(eventName, callback);
}
- exports.registerCallback = registerCallback;
/**
* Unregisters the element with the given id.
*
_values.delete(elementId);
_elements.delete(elementId);
}
- exports.unregister = unregister;
/**
* Returns the values of an input field.
*/
values.set(element.languageId, element.element.value);
return values;
}
- exports.getValues = getValues;
/**
* Sets the values of an input field.
*/
element.languageId = 0;
select(elementId, window.LANGUAGE_ID, true);
}
- exports.setValues = setValues;
/**
* Disables the i18n interface for an input field.
*/
const dropdownContainer = buttonContainer.parentElement;
dropdownContainer.classList.remove("inputAddon", "dropdown");
}
- exports.disable = disable;
/**
* Enables the i18n interface for an input field.
*/
const dropdownContainer = buttonContainer.parentElement;
dropdownContainer.classList.add("inputAddon", "dropdown");
}
- exports.enable = enable;
/**
* Returns true if i18n input is enabled for an input field.
*/
}
return element.isEnabled;
}
- exports.isEnabled = isEnabled;
/**
* Returns true if the value of an i18n input field is valid.
*
});
return !hasEmptyValue || permitEmptyValue;
}
- exports.validate = validate;
});
define(["require", "exports", "tslib", "./Input", "../Component/Ckeditor"], function (require, exports, tslib_1, LanguageInput, Ckeditor_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
LanguageInput = tslib_1.__importStar(LanguageInput);
/**
* Refreshes the editor content on language switch.
// CKEditor does not permanently mirror the contents to the <textarea>.
LanguageInput.registerCallback(elementId, "beforeSelect", callbackSubmit);
}
- exports.init = init;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.whenFirstSeen = void 0;
+ exports.whenFirstSeen = whenFirstSeen;
let observer;
const selectors = new Map();
const timers = new Map();
}
observer.observe(document, { subtree: true, childList: true });
}
- exports.whenFirstSeen = whenFirstSeen;
});
define(["require", "exports", "tslib", "../Controller/Clipboard", "../Ui/Notification", "../Event/Handler", "../Language", "../Ajax", "WoltLabSuite/Core/Component/Dialog"], function (require, exports, tslib_1, Clipboard, UiNotification, EventHandler, Language_1, Ajax, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setMediaManager = exports.init = void 0;
+ exports.init = init;
+ exports.setMediaManager = setMediaManager;
Clipboard = tslib_1.__importStar(Clipboard);
UiNotification = tslib_1.__importStar(UiNotification);
EventHandler = tslib_1.__importStar(EventHandler);
}
_mediaManager = mediaManager;
}
- exports.init = init;
function setMediaManager(mediaManager) {
_mediaManager = mediaManager;
}
- exports.setMediaManager = setMediaManager;
});
define(["require", "exports", "tslib", "../Ajax", "../Core", "../Event/Handler"], function (require, exports, tslib_1, Ajax, Core, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.poll = exports.enableNotifications = exports.setup = void 0;
+ exports.setup = setup;
+ exports.enableNotifications = enableNotifications;
+ exports.poll = poll;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
EventHandler = tslib_1.__importStar(EventHandler);
onVisibilityChange(event) {
// document was hidden before
if (event && !document.hidden) {
- const difference = (Date.now() - this.inactiveSince) / 60000;
+ const difference = (Date.now() - this.inactiveSince) / 60_000;
if (difference > 4) {
this.resetTimer();
this.dispatchRequest();
return 5;
}
// milliseconds -> minutes
- const inactiveMinutes = ~~((Date.now() - this.inactiveSince) / 60000);
+ const inactiveMinutes = ~~((Date.now() - this.inactiveSince) / 60_000);
if (inactiveMinutes < 15) {
return 5;
}
*/
prepareNextRequest() {
this.resetTimer();
- this.requestTimer = window.setTimeout(() => this.dispatchRequest(), this.getNextDelay() * 60000);
+ this.requestTimer = window.setTimeout(() => this.dispatchRequest(), this.getNextDelay() * 60_000);
}
/**
* Requests new data from the server.
notificationHandler = new NotificationHandler(options);
}
}
- exports.setup = setup;
function enableNotifications() {
notificationHandler.enableNotifications();
}
- exports.enableNotifications = enableNotifications;
function poll() {
notificationHandler?.dispatchRequest();
}
- exports.poll = poll;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.round = void 0;
+ exports.round = round;
/**
* @deprecated 6.0 Use `Number.toLocaleString()` or `Number.toFixed()` as appropriate.
*/
exponent = tmp[1] ? +tmp[1] + exp : exp;
return +`${tmp[0]}e${exponent}`;
}
- exports.round = round;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.get = exports.addObject = exports.add = void 0;
+ exports.add = add;
+ exports.addObject = addObject;
+ exports.get = get;
const _permissions = new Map();
/**
* Adds a single permission to the store.
}
_permissions.set(permission, value);
}
- exports.add = add;
/**
* Adds all the permissions in the given object to the store.
*/
function addObject(object) {
Object.keys(object).forEach((key) => add(key, object[key]));
}
- exports.addObject = addObject;
/**
* Returns the value of a permission.
*
}
return false;
}
- exports.get = get;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.splitIntoLines = void 0;
+ exports.splitIntoLines = splitIntoLines;
function* splitIntoLines(container) {
const it = document.createNodeIterator(container, NodeFilter.SHOW_TEXT, {
acceptNode() {
}
yield line;
}
- exports.splitIntoLines = splitIntoLines;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.toCamelCase = exports.shortUnit = exports.unescapeHTML = exports.ucfirst = exports.lcfirst = exports.formatNumeric = exports.escapeRegExp = exports.escapeHTML = exports.addThousandsSeparator = void 0;
+ exports.addThousandsSeparator = addThousandsSeparator;
+ exports.escapeHTML = escapeHTML;
+ exports.escapeRegExp = escapeRegExp;
+ exports.formatNumeric = formatNumeric;
+ exports.lcfirst = lcfirst;
+ exports.ucfirst = ucfirst;
+ exports.unescapeHTML = unescapeHTML;
+ exports.shortUnit = shortUnit;
+ exports.toCamelCase = toCamelCase;
/**
* Adds thousands separators to a given number.
*
function addThousandsSeparator(number) {
return number.toLocaleString(document.documentElement.lang);
}
- exports.addThousandsSeparator = addThousandsSeparator;
/**
* Escapes special HTML-characters within a string
*/
.replace(/</g, "<")
.replace(/>/g, ">");
}
- exports.escapeHTML = escapeHTML;
/**
* Escapes a String to work with RegExp.
*
function escapeRegExp(string) {
return String(string).replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1");
}
- exports.escapeRegExp = escapeRegExp;
/**
* Rounds number to given count of floating point digits, localizes decimal-point and inserts thousands separators.
*/
})
.replace("-", "\u2212");
}
- exports.formatNumeric = formatNumeric;
/**
* Makes a string's first character lowercase.
*/
function lcfirst(string) {
return String(string).substring(0, 1).toLowerCase() + string.substring(1);
}
- exports.lcfirst = lcfirst;
/**
* Makes a string's first character uppercase.
*/
function ucfirst(string) {
return String(string).substring(0, 1).toUpperCase() + string.substring(1);
}
- exports.ucfirst = ucfirst;
/**
* Unescapes special HTML-characters within a string.
*/
.replace(/>/g, ">")
.replace(/&/g, "&");
}
- exports.unescapeHTML = unescapeHTML;
/**
* Shortens numbers larger than 1000 by using unit suffixes.
*/
}
return formatNumeric(number, -1) + unitSuffix;
}
- exports.shortUnit = shortUnit;
/**
* Converts a lower-case string containing dashed to camelCase for use
* with the `dataset` property.
})
.join("");
}
- exports.toCamelCase = toCamelCase;
});
if (typeof callback !== "function") {
throw new TypeError("Expected a valid callback as first argument.");
}
- if (delta < 0 || delta > 86400 * 1000) {
+ if (delta < 0 || delta > 86_400 * 1_000) {
throw new RangeError(`Invalid delta ${delta}. Delta must be in the interval [0, 86400000].`);
}
// curry callback with `this` as the first parameter
define(["require", "exports", "tslib", "../Core", "../Dom/Traverse", "../Dom/Util", "../Language", "../Environment"], function (require, exports, tslib_1, Core, DomTraverse, Util_1, Language, Environment) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.set = void 0;
+ exports.set = set;
Core = tslib_1.__importStar(Core);
DomTraverse = tslib_1.__importStar(DomTraverse);
Util_1 = tslib_1.__importDefault(Util_1);
}
}
}
- exports.set = set;
});
define(["require", "exports", "tslib", "../../Ajax", "../Notification"], function (require, exports, tslib_1, Ajax_1, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
UiNotification = tslib_1.__importStar(UiNotification);
async function markAllAsRead() {
await (0, Ajax_1.dboAction)("markAllAsRead", "wcf\\data\\article\\ArticleAction").dispatch();
});
});
}
- exports.setup = setup;
});
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;
+ exports.open = open;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
function open(callbackSelect) {
getUiArticleSearch().open(callbackSelect);
}
- exports.open = open;
});
define(["require", "exports", "tslib", "../CallbackList"], function (require, exports, tslib_1, CallbackList_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.execute = exports.remove = exports.add = exports.Origin = void 0;
+ exports.Origin = void 0;
+ exports.add = add;
+ exports.remove = remove;
+ exports.execute = execute;
CallbackList_1 = tslib_1.__importDefault(CallbackList_1);
const _callbackList = new CallbackList_1.default();
var Origin;
hasGlobalListener = true;
}
}
- exports.add = add;
function remove(identifier) {
_callbackList.remove(identifier);
}
- exports.remove = remove;
function execute(origin, identifier) {
_callbackList.forEach(null, (callback) => callback(origin, identifier));
}
- exports.execute = execute;
// This is required for the backwards compatibility with WSC <= 5.4.
const UiCloseOverlay = {
add,
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;
+ exports.show = show;
+ exports.getContentElement = getContentElement;
Core = tslib_1.__importStar(Core);
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
}
getConfirmation().open(options);
}
- exports.show = show;
/**
* Returns content container element.
*/
function getContentElement() {
return getConfirmation().content;
}
- exports.getContentElement = getContentElement;
});
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;
+ exports.create = create;
+ exports.buildItem = buildItem;
+ exports.appendItem = appendItem;
+ exports.appendItems = appendItems;
+ exports.setItems = setItems;
+ exports.attach = attach;
+ exports.divider = divider;
Core = tslib_1.__importStar(Core);
Simple_1 = tslib_1.__importDefault(Simple_1);
const _validIconSizes = [16, 24, 32, 48, 64, 96, 144];
}
return list;
}
- exports.create = create;
/**
* Creates a new dropdown item that can be inserted into lists using regular DOM operations.
*/
function buildItem(item) {
return buildItemFromData(item);
}
- exports.buildItem = buildItem;
/**
* Appends a single item to the target list.
*/
validateList(list);
list.appendChild(buildItemFromData(item));
}
- exports.appendItem = appendItem;
/**
* Appends a list of items to the target list.
*/
list.appendChild(fragment);
}
}
- exports.appendItems = appendItems;
/**
* Replaces the existing list items with the provided list of new items.
*/
list.innerHTML = "";
appendItems(list, items);
}
- exports.setItems = setItems;
/**
* Attaches the list to a button, visibility is from then on controlled through clicks
* on the provided button element. Internally calls `Ui/SimpleDropdown.initFragment()`
Simple_1.default.toggleDropdown(button.id);
});
}
- exports.attach = attach;
/**
* Helper method that returns the special string `"divider"` that causes a divider to
* be created.
function divider() {
return "divider";
}
- exports.divider = divider;
});
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;
+ exports.init = init;
+ exports.getDropdownMenu = getDropdownMenu;
+ exports.registerCallback = registerCallback;
+ exports.toggleDropdown = toggleDropdown;
Simple_1 = tslib_1.__importDefault(Simple_1);
const _dropdowns = new Map();
let _ghostElementId = 0;
Simple_1.default.initFragment(ghostElement, menu);
_dropdowns.set(identifier, ghostElement.id);
}
- exports.init = init;
/**
* Returns the dropdown menu element.
*/
function getDropdownMenu(identifier) {
return Simple_1.default.getDropdownMenu(getDropdownName(identifier));
}
- exports.getDropdownMenu = getDropdownMenu;
/**
* Registers a callback invoked upon open and close.
*/
function registerCallback(identifier, callback) {
Simple_1.default.registerCallback(getDropdownName(identifier), callback);
}
- exports.registerCallback = registerCallback;
/**
* Toggles a dropdown.
*/
function toggleDropdown(identifier, referenceElement) {
Simple_1.default.toggleDropdown(getDropdownName(identifier), referenceElement);
}
- exports.toggleDropdown = toggleDropdown;
});
define(["require", "exports", "tslib", "../Dom/Change/Listener"], function (require, exports, tslib_1, Listener_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Listener_1 = tslib_1.__importDefault(Listener_1);
const observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
observeElements();
Listener_1.default.add("WoltLabSuite/Core/Ui/Empty", () => observeElements());
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../Dialog", "../../StringUtil", "../../Language", "../../Clipboard", "../Notification"], function (require, exports, tslib_1, Dialog_1, StringUtil, Language, Clipboard, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Dialog_1 = tslib_1.__importDefault(Dialog_1);
StringUtil = tslib_1.__importStar(StringUtil);
Language = tslib_1.__importStar(Language);
link.addEventListener("click", (ev) => openDialog(ev));
});
}
- exports.setup = setup;
});
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;
+ exports.setup = setup;
+ exports.register = register;
+ exports.registerTabMenus = registerTabMenus;
+ exports.rebuildAll = rebuildAll;
+ exports.rebuild = rebuild;
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
DomTraverse = tslib_1.__importStar(DomTraverse);
window.addEventListener("resize", rebuildAll);
Listener_1.default.add("WoltLabSuite/Core/Ui/FlexibleMenu", registerTabMenus);
}
- exports.setup = setup;
/**
* Registers a menu by element id.
*/
_itemLists.set(containerId, list);
rebuild(containerId);
}
- exports.register = register;
/**
* Registers tab menus.
*/
}
});
}
- exports.registerTabMenus = registerTabMenus;
/**
* Rebuilds all menus, e.g. on window resize.
*/
rebuild(containerId);
});
}
- exports.rebuildAll = rebuildAll;
/**
* Rebuild the menu identified by given element id.
*/
dropdown.remove();
}
}
- exports.rebuild = rebuild;
});
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;
+ exports.init = init;
+ exports.getValues = getValues;
+ exports.setValues = setValues;
Core = tslib_1.__importStar(Core);
DomTraverse = tslib_1.__importStar(DomTraverse);
Language = tslib_1.__importStar(Language);
});
}
}
- exports.init = init;
/**
* Returns the list of current values.
*/
});
return values;
}
- exports.getValues = getValues;
/**
* Sets the list of current values.
*/
addItem(elementId, value);
});
}
- exports.setValues = setValues;
});
define(["require", "exports", "tslib", "../../Core", "../../Dom/Traverse", "../../Language", "../Dropdown/Simple"], function (require, exports, tslib_1, Core, DomTraverse, Language, Simple_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setValues = exports.getValues = exports.init = void 0;
+ exports.init = init;
+ exports.getValues = getValues;
+ exports.setValues = setValues;
Core = tslib_1.__importStar(Core);
DomTraverse = tslib_1.__importStar(DomTraverse);
Language = tslib_1.__importStar(Language);
});
}
}
- exports.init = init;
/**
* Returns the list of current values.
*/
});
return values;
}
- exports.getValues = getValues;
/**
* Sets the list of current values.
*/
// add new items
values.forEach((v) => addItem(elementId, v));
}
- exports.setValues = setValues;
});
define(["require", "exports", "tslib", "../ItemList"], function (require, exports, tslib_1, UiItemList) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getValues = exports.init = void 0;
+ exports.init = init;
+ exports.getValues = getValues;
UiItemList = tslib_1.__importStar(UiItemList);
function syncShadow(data) {
const values = getValues(data.element.id);
restricted: true,
});
}
- exports.init = init;
/**
* @see WoltLabSuite/Core/Ui/ItemList::getValues()
*/
function getValues(elementId) {
return UiItemList.getValues(elementId);
}
- exports.getValues = getValues;
});
define(["require", "exports", "tslib", "../../Event/Handler", "../../StringUtil"], function (require, exports, tslib_1, EventHandler, StringUtil) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
EventHandler = tslib_1.__importStar(EventHandler);
StringUtil = tslib_1.__importStar(StringUtil);
let _pageDescription = "";
});
});
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../../Dom/Traverse", "../../../Clipboard", "../../Notification", "../../../StringUtil", "../../../Dom/Change/Listener", "./Providers", "../../../Component/Dialog", "WoltLabSuite/Core/Language", "../../../Event/Handler"], function (require, exports, tslib_1, DomTraverse, Clipboard, UiNotification, StringUtil, Listener_1, Providers_1, Dialog_1, Language_1, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
DomTraverse = tslib_1.__importStar(DomTraverse);
Clipboard = tslib_1.__importStar(Clipboard);
UiNotification = tslib_1.__importStar(UiNotification);
registerButtons();
Listener_1.default.add("WoltLabSuite/Core/Ui/Message/Share/Dialog", () => registerButtons());
}
- exports.setup = setup;
});
define(["require", "exports"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.getShareProviders = exports.addShareProviders = exports.addShareProvider = void 0;
+ exports.addShareProvider = addShareProvider;
+ exports.addShareProviders = addShareProviders;
+ exports.getShareProviders = getShareProviders;
const providers = new Set();
function addShareProvider(shareProvider) {
providers.add(shareProvider);
}
- exports.addShareProvider = addShareProvider;
function addShareProviders(shareProviders) {
shareProviders.forEach((shareProvider) => addShareProvider(shareProvider));
}
- exports.addShareProviders = addShareProviders;
function getShareProviders() {
return providers;
}
- exports.getShareProviders = getShareProviders;
});
define(["require", "exports", "https://platform.twitter.com/widgets.js"], function (require, exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.embedAll = exports.embedTweet = void 0;
+ exports.embedTweet = embedTweet;
+ exports.embedAll = embedAll;
const twitterReady = new Promise((resolve) => {
twttr.ready(resolve);
});
}
return tweet;
}
- exports.embedTweet = embedTweet;
/**
* Embeds tweets into all elements with a data-wsc-twitter-tweet attribute, removing
* existing children.
}
});
}
- exports.embedAll = embedAll;
});
define(["require", "exports", "tslib", "WoltLabSuite/Core/Helper/Selector", "../../Ajax", "../../Core", "../../Dom/Change/Listener", "../../Dom/Util", "../../User"], function (require, exports, tslib_1, Selector_1, Ajax, Core, Listener_1, Util_1, User_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
Listener_1 = tslib_1.__importDefault(Listener_1);
userConsent = new UserConsent();
}
}
- exports.init = init;
});
define(["require", "exports", "tslib", "focus-trap", "../Core", "../Dom/Change/Listener", "../Dom/Util", "../Environment", "./Alignment", "./CloseOverlay", "./Dropdown/Reusable", "./Page/Menu/Main", "./Page/Menu/User", "./Screen", "../Language"], function (require, exports, tslib_1, focus_trap_1, Core, Listener_1, Util_1, Environment, UiAlignment, CloseOverlay_1, UiDropdownReusable, Main_1, User_1, UiScreen, Language) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.removeShadow = exports.rebuildShadow = exports.disableShadow = exports.disable = exports.enableShadow = exports.enable = exports.setup = void 0;
+ exports.setup = setup;
+ exports.enable = enable;
+ exports.enableShadow = enableShadow;
+ exports.disable = disable;
+ exports.disableShadow = disableShadow;
+ exports.rebuildShadow = rebuildShadow;
+ exports.removeShadow = removeShadow;
Core = tslib_1.__importStar(Core);
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
});
}
}
- exports.setup = setup;
/**
* Enables the mobile UI.
*/
_pageMenuUser?.enable();
}
}
- exports.enable = enable;
/**
* Enables shadow links for larger click areas on messages.
*/
rebuildShadow(_messageGroups, ".messageGroupLink");
}
}
- exports.enableShadow = enableShadow;
/**
* Disables the mobile UI.
*/
_pageMenuUser?.disable();
}
}
- exports.disable = disable;
/**
* Disables shadow links.
*/
closeDropdown();
}
}
- exports.disableShadow = disableShadow;
function rebuildShadow(elements, linkSelector) {
Array.from(elements).forEach((element) => {
const parent = element.parentElement;
}
});
}
- exports.rebuildShadow = rebuildShadow;
function removeShadow(elements) {
Array.from(elements).forEach((element) => {
const parent = element.parentElement;
}
});
}
- exports.removeShadow = removeShadow;
});
define(["require", "exports", "tslib", "../../../Event/Handler", "../../Notification", "../../../User", "../../../StringUtil", "../../../Language", "../../User/Search/Input", "../../../Dom/Traverse", "../../../Ajax", "../../../Dom/Util", "../../Dialog"], function (require, exports, tslib_1, EventHandler, UiNotification, User_1, StringUtil, Language, Input_1, DomTraverse, Ajax, Util_1, Dialog_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
EventHandler = tslib_1.__importStar(EventHandler);
UiNotification = tslib_1.__importStar(UiNotification);
User_1 = tslib_1.__importDefault(User_1);
});
isSetUp = true;
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Ajax", "../Notification"], function (require, exports, tslib_1, Ajax_1, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
UiNotification = tslib_1.__importStar(UiNotification);
async function markAllAsRead() {
await (0, Ajax_1.dboAction)("markAllAsRead", "wcf\\data\\moderation\\queue\\ModerationQueueAction").dispatch();
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "../../Ajax"], function (require, exports, Ajax_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
const unreadEntries = new WeakSet();
async function markAsRead(entry) {
const queueId = parseInt(entry.dataset.queueId, 10);
}
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Ajax", "../../Component/Dialog", "../../Dom/Util", "../../Helper/Selector", "../../Language", "../Notification"], function (require, exports, tslib_1, Ajax_1, Dialog_1, Util_1, Selector_1, Language, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = exports.registerLegacyButton = void 0;
+ exports.registerLegacyButton = registerLegacyButton;
+ exports.setup = setup;
Language = tslib_1.__importStar(Language);
UiNotification = tslib_1.__importStar(UiNotification);
async function openReportDialog(element) {
element.dataset.isLegacyButton = "true";
registerButton(element);
}
- exports.registerLegacyButton = registerLegacyButton;
function setup() {
(0, Selector_1.wheneverFirstSeen)("[data-report-content]", (element) => registerButton(element));
}
- exports.setup = setup;
});
define(["require", "exports", "../Helper/PageOverlay", "../Language"], function (require, exports, PageOverlay_1, Language_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.show = void 0;
+ exports.show = show;
let _busy = false;
let _callback = null;
let _didInit = false;
_notificationElement.classList.add("active");
_timeout = window.setTimeout(hide, 2000);
}
- exports.show = show;
});
define(["require", "exports", "tslib", "../../Ajax", "../../Event/Handler", "../Confirmation", "../../Language", "../../StringUtil", "../../Dom/Change/Listener"], function (require, exports, tslib_1, Ajax, EventHandler, UiConfirmation, Language, StringUtil, Listener_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Ajax = tslib_1.__importStar(Ajax);
EventHandler = tslib_1.__importStar(EventHandler);
UiConfirmation = tslib_1.__importStar(UiConfirmation);
registerElements();
Listener_1.default.add("WoltLabSuite/Core/Ui/Action", () => registerElements());
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "./Handler"], function (require, exports, tslib_1, Handler_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Handler_1 = tslib_1.__importDefault(Handler_1);
function deleteObject(data) {
const actionElement = data.objectElement.querySelector('.jsObjectAction[data-object-action="delete"]');
function setup() {
new Handler_1.default("delete", ["delete"], deleteObject);
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Language", "./Handler"], function (require, exports, tslib_1, Language, Handler_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Language = tslib_1.__importStar(Language);
Handler_1 = tslib_1.__importDefault(Handler_1);
function toggleObject(data) {
function setup() {
new Handler_1.default("toggle", ["enable", "disable"], toggleObject);
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Core", "../../Language", "../../Ui/Screen"], function (require, exports, tslib_1, Core, Language, UiScreen) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.show = exports.hide = exports.remove = exports.get = exports.has = exports.add = exports.setup = void 0;
+ exports.setup = setup;
+ exports.add = add;
+ exports.has = has;
+ exports.get = get;
+ exports.remove = remove;
+ exports.hide = hide;
+ exports.show = show;
Core = tslib_1.__importStar(Core);
Language = tslib_1.__importStar(Language);
UiScreen = tslib_1.__importStar(UiScreen);
});
onScroll();
}
- exports.setup = setup;
/**
* Adds a button to the page action list. You can optionally provide a button name to
* insert the button right before it. Unmatched button names or empty value will cause
wrapper.setAttribute("aria-hidden", "false");
renderContainer();
}
- exports.add = add;
/**
* Returns true if there is a registered button with the provided name.
*/
function has(buttonName) {
return _buttons.has(buttonName);
}
- exports.has = has;
/**
* Returns the stored button by name or undefined.
*/
function get(buttonName) {
return _buttons.get(buttonName);
}
- exports.get = get;
/**
* Removes a button by its button name.
*/
hide(buttonName);
}
}
- exports.remove = remove;
/**
* Hides a button by its button name.
*/
renderContainer();
}
}
- exports.hide = hide;
/**
* Shows a button by its button name.
*/
renderContainer();
}
}
- exports.show = show;
});
define(["require", "exports", "tslib", "../../../Environment", "../../../Language", "../../Screen"], function (require, exports, tslib_1, Environment, Language, UiScreen) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Environment = tslib_1.__importStar(Environment);
Language = tslib_1.__importStar(Language);
UiScreen = tslib_1.__importStar(UiScreen);
setup: setup,
});
}
- exports.init = init;
});
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;
+ exports.init = init;
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
class UiPageJumpTo {
function init(element, callback) {
getUiPageJumpTo().init(element, callback);
}
- exports.init = init;
});
define(["require", "exports", "tslib", "./Container", "../../../Language", "../../User/Menu/Manager", "../../../Dom/Util", "../../User/Menu/ControlPanel", "../../../Event/Handler", "../../Screen"], function (require, exports, tslib_1, Container_1, Language, Manager_1, Util_1, ControlPanel_1, EventHandler, Screen_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.hasValidUserMenu = exports.PageMenuUser = void 0;
+ exports.PageMenuUser = void 0;
+ exports.hasValidUserMenu = hasValidUserMenu;
Container_1 = tslib_1.__importDefault(Container_1);
Language = tslib_1.__importStar(Language);
Util_1 = tslib_1.__importDefault(Util_1);
const panel = document.getElementById("topMenu");
return panel.classList.contains("userPanelLoggedIn");
}
- exports.hasValidUserMenu = hasValidUserMenu;
exports.default = PageMenuUser;
});
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;
+ exports.open = open;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
Language = tslib_1.__importStar(Language);
function open(callbackSelect) {
getUiPageSearch().open(callbackSelect);
}
- exports.open = open;
});
define(["require", "exports", "tslib", "../../../Language", "../../../StringUtil", "../../../Dom/Util", "../../Dialog", "./Input"], function (require, exports, tslib_1, Language, StringUtil, Util_1, Dialog_1, Input_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.open = void 0;
+ exports.open = open;
Language = tslib_1.__importStar(Language);
StringUtil = tslib_1.__importStar(StringUtil);
Util_1 = tslib_1.__importDefault(Util_1);
function open(pageId, title, callback, labelLanguageItem) {
getUiPageSearchHandler().open(pageId, title, callback, labelLanguageItem);
}
- exports.open = open;
});
define(["require", "exports", "../../Component/Dialog", "../../Helper/Selector", "../../Language"], function (require, exports, Dialog_1, Selector_1, Language_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
function jumpToPage(element) {
const html = `
<dl>
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../Dom/Change/Listener", "../Language"], function (require, exports, tslib_1, Listener_1, Language) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Listener_1 = tslib_1.__importDefault(Listener_1);
Language = tslib_1.__importStar(Language);
const _knownElements = new WeakSet();
initElements();
Listener_1.default.add("WoltLabSuite/Core/Ui/Password", () => initElements());
}
- exports.setup = setup;
function initElements() {
document.querySelectorAll("input[type=password]").forEach((input) => {
if (!_knownElements.has(input)) {
define(["require", "exports", "tslib", "../../Dom/Change/Listener", "../../Dom/Util", "../../StringUtil", "./View/Participants", "./View/Results", "./View/Vote", "./Vote"], function (require, exports, tslib_1, Listener_1, Util_1, StringUtil_1, Participants_1, Results_1, Vote_1, Vote_2) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setupAll = exports.Poll = exports.PollViews = void 0;
+ exports.Poll = exports.PollViews = void 0;
+ exports.setupAll = setupAll;
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
Participants_1 = tslib_1.__importDefault(Participants_1);
});
setup();
}
- exports.setupAll = setupAll;
exports.default = setupAll;
});
define(["require", "exports", "../../Ajax", "../../Component/Dialog", "../../Helper/Selector"], function (require, exports, Ajax_1, Dialog_1, Selector_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
async function showDetails(objectID, objectType) {
const response = (await (0, Ajax_1.dboAction)("getReactionDetails", "wcf\\data\\reaction\\ReactionAction")
.payload({
});
});
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../Core"], function (require, exports, tslib_1, Core) {
"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;
+ exports.on = on;
+ exports.remove = remove;
+ exports.is = is;
+ exports.scrollDisable = scrollDisable;
+ exports.scrollEnable = scrollEnable;
+ exports.pageOverlayOpen = pageOverlayOpen;
+ exports.pageOverlayClose = pageOverlayClose;
+ exports.pageOverlayIsActive = pageOverlayIsActive;
+ exports.setDialogContainer = setDialogContainer;
Core = tslib_1.__importStar(Core);
const _mql = new Map();
let _scrollDisableCounter = 0;
}
return uuid;
}
- exports.on = on;
/**
* Removes all listeners identified by their common UUID.
*/
queryObject.callbacksUnmatch.delete(uuid);
queryObject.callbacksSetup.delete(uuid);
}
- exports.remove = remove;
/**
* Returns a boolean value if a media query expression currently matches.
*/
function is(query) {
return _getQueryObject(query).mql.matches;
}
- exports.is = is;
/**
* Disables scrolling of body element.
*/
}
_scrollDisableCounter++;
}
- exports.scrollDisable = scrollDisable;
/**
* Re-enables scrolling of body element.
*/
}
}
}
- exports.scrollEnable = scrollEnable;
/**
* Indicates that at least one page overlay is currently open.
*/
}
_pageOverlayCounter++;
}
- exports.pageOverlayOpen = pageOverlayOpen;
/**
* Marks one page overlay as closed.
*/
}
}
}
- exports.pageOverlayClose = pageOverlayClose;
/**
* Returns true if at least one page overlay is currently open.
*
function pageOverlayIsActive() {
return _pageOverlayCounter > 0;
}
- exports.pageOverlayIsActive = pageOverlayIsActive;
/**
* @deprecated 5.4 - This method is a noop.
*/
function setDialogContainer(_container) {
// Do nothing.
}
- exports.setDialogContainer = setDialogContainer;
function _getQueryObject(query) {
if (typeof query !== "string" || query.trim() === "") {
throw new TypeError("Expected a non-empty string for parameter 'query'.");
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;
+ exports.element = element;
Util_1 = tslib_1.__importDefault(Util_1);
let _callbacks = [];
let _offset = null;
}
}, 100);
}
- exports.element = element;
});
define(["require", "exports", "tslib", "../Event/Handler", "./Alignment", "./CloseOverlay", "./Dropdown/Simple", "./Screen", "../Environment", "../Dom/Util"], function (require, exports, tslib_1, EventHandler, UiAlignment, CloseOverlay_1, Simple_1, UiScreen, Environment, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
EventHandler = tslib_1.__importStar(EventHandler);
UiAlignment = tslib_1.__importStar(UiAlignment);
CloseOverlay_1 = tslib_1.__importStar(CloseOverlay_1);
});
EventHandler.add("com.woltlab.wcf.Search", "close", () => closeSearch());
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../Core", "../../Dom/Util", "../Dropdown/Simple", "../Screen", "./Input"], function (require, exports, tslib_1, Core, Util_1, Simple_1, UiScreen, Input_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Core = tslib_1.__importStar(Core);
Util_1 = tslib_1.__importDefault(Util_1);
Simple_1 = tslib_1.__importDefault(Simple_1);
submit(form, searchInput);
});
}
- exports.init = init;
function submit(form, input) {
const url = new URL(form.action);
url.search += url.search !== "" ? "&" : "?";
define(["require", "exports", "tslib", "../../Language", "../Dialog", "../ItemList/Filter"], function (require, exports, tslib_1, Language, Dialog_1, Filter_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.open = exports.setup = void 0;
+ exports.setup = setup;
+ exports.open = open;
Language = tslib_1.__importStar(Language);
Dialog_1 = tslib_1.__importDefault(Dialog_1);
Filter_1 = tslib_1.__importDefault(Filter_1);
uiStyleFontAwesome = new UiStyleFontAwesome();
}
}
- exports.setup = setup;
/**
* Shows the FontAwesome selection dialog, supplied callback will be
* invoked with the selection icon's name as the only argument.
}
uiStyleFontAwesome.open(callback);
}
- exports.open = open;
});
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 = exports.selectErroneousTabs = void 0;
+ exports.selectErroneousTabs = selectErroneousTabs;
+ exports.setup = setup;
+ exports.getTabMenu = getTabMenu;
+ exports.scrollToTab = scrollToTab;
Listener_1 = tslib_1.__importDefault(Listener_1);
Util_1 = tslib_1.__importDefault(Util_1);
Simple_1 = tslib_1.__importDefault(Simple_1);
});
});
}
- exports.selectErroneousTabs = selectErroneousTabs;
function scrollEnable(isSetup) {
_enableTabScroll = true;
_tabMenus.forEach((tabMenu) => {
}, 100);
}
}
- exports.setup = setup;
/**
* Returns a TabMenuSimple instance for given container id.
*/
function getTabMenu(containerId) {
return _tabMenus.get(containerId);
}
- exports.getTabMenu = getTabMenu;
function scrollToTab(tab) {
if (!_enableTabScroll) {
return;
scrollMenu(list, left, scrollLeft, scrollWidth, width, paddingRight);
}
}
- exports.scrollToTab = scrollToTab;
});
define(["require", "exports", "tslib", "../Environment", "../Helper/PageOverlay", "../Helper/Selector", "./Alignment"], function (require, exports, tslib_1, Environment, PageOverlay_1, Selector_1, UiAlignment) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Environment = tslib_1.__importStar(Environment);
UiAlignment = tslib_1.__importStar(UiAlignment);
let _pointer;
});
window.addEventListener("scroll", mouseLeave);
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../Ajax", "../../../Dom/Util", "../../../Event/Handler", "../../../Language", "../../Confirmation", "../../Notification"], function (require, exports, tslib_1, Ajax, Util_1, EventHandler, Language, UiConfirmation, UiNotification) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.init = void 0;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Util_1 = tslib_1.__importDefault(Util_1);
EventHandler = tslib_1.__importStar(EventHandler);
uiUserCoverPhotoDelete = new UiUserCoverPhotoDelete(userId);
}
}
- exports.init = init;
});
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;
+ exports.init = init;
Ajax = tslib_1.__importStar(Ajax);
Core = tslib_1.__importStar(Core);
Util_1 = tslib_1.__importDefault(Util_1);
function init() {
new UserEditor();
}
- exports.init = init;
});
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;
+ exports.init = init;
Listener_1 = tslib_1.__importDefault(Listener_1);
const _availableMessages = document.getElementsByClassName("ignoredUserMessage");
const _knownMessages = new Set();
rebuild();
Listener_1.default.add("WoltLabSuite/Core/Ui/User/Ignore", rebuild);
}
- exports.init = init;
});
define(["require", "exports", "tslib", "../../CloseOverlay", "./Manager", "focus-trap", "../../Alignment", "../../../Dom/Util"], function (require, exports, tslib_1, CloseOverlay_1, Manager_1, focus_trap_1, Alignment, Util_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = exports.getElement = void 0;
+ exports.getElement = getElement;
+ exports.setup = setup;
CloseOverlay_1 = tslib_1.__importDefault(CloseOverlay_1);
Alignment = tslib_1.__importStar(Alignment);
Util_1 = tslib_1.__importDefault(Util_1);
function getElement() {
return element;
}
- exports.getElement = getElement;
let isInitialized = false;
function setup() {
if (!isInitialized) {
isInitialized = true;
}
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../View", "../Manager"], function (require, exports, tslib_1, Ajax_1, View_1, Manager_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
View_1 = tslib_1.__importDefault(View_1);
class UserMenuDataModerationQueue {
button;
isInitialized = true;
}
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../../../Ajax", "../View", "../Manager", "../../../../Language", "../../../../Notification/Handler"], function (require, exports, tslib_1, Ajax_1, View_1, Manager_1, Language, Handler_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
View_1 = tslib_1.__importDefault(View_1);
Language = tslib_1.__importStar(Language);
let originalFavicon = "";
isInitialized = true;
}
}
- exports.setup = setup;
});
define(["require", "exports", "tslib", "../../Alignment", "../../CloseOverlay", "../../../Event/Handler", "../../../Dom/Util", "../../Screen", "../../../Helper/PageOverlay"], function (require, exports, tslib_1, Alignment, CloseOverlay_1, EventHandler, Util_1, UiScreen, PageOverlay_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.registerProvider = exports.getContainer = exports.getUserMenuProviders = void 0;
+ exports.getUserMenuProviders = getUserMenuProviders;
+ exports.getContainer = getContainer;
+ exports.registerProvider = registerProvider;
Alignment = tslib_1.__importStar(Alignment);
CloseOverlay_1 = tslib_1.__importDefault(CloseOverlay_1);
EventHandler = tslib_1.__importStar(EventHandler);
function getUserMenuProviders() {
return providers;
}
- exports.getUserMenuProviders = getUserMenuProviders;
function getContainer() {
if (container === undefined) {
container = document.createElement("div");
}
return container;
}
- exports.getContainer = getContainer;
function registerProvider(provider) {
if (providers.size === 0) {
CloseOverlay_1.default.add("WoltLabSuite/Ui/User/Menu", () => closeAll());
}
initProvider(provider);
}
- exports.registerProvider = registerProvider;
});
</button>
</div>
`;
- const time = (0, Util_1.getTimeElement)(new Date(itemData.time * 1000));
+ const time = (0, Util_1.getTimeElement)(new Date(itemData.time * 1_000));
element.querySelector(".userMenuItemMeta").append(time);
const markAsRead = element.querySelector(".userMenuItemMarkAsRead");
markAsRead.addEventListener("click", async () => {
define(["require", "exports", "tslib", "qr-creator", "../../../../Language"], function (require, exports, tslib_1, qr_creator_1, Language) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.renderAll = exports.render = void 0;
+ exports.render = render;
+ exports.renderAll = renderAll;
qr_creator_1 = tslib_1.__importDefault(qr_creator_1);
Language = tslib_1.__importStar(Language);
function render(container) {
canvas.parentElement.insertAdjacentElement("afterbegin", a);
a.appendChild(canvas);
}
- exports.render = render;
function getUrl(issuer, label, secret) {
return `otpauth://totp/${encodeURIComponent(label)}?secret=${encodeURIComponent(secret)}${issuer !== "" ? `&issuer=${encodeURIComponent(issuer)}` : ""}`;
}
function renderAll() {
document.querySelectorAll(".totpSecretContainer").forEach((el) => render(el));
}
- exports.renderAll = renderAll;
});
define(["require", "exports", "tslib", "../../Ajax", "../Notification", "../../Language", "../../Event/Handler"], function (require, exports, tslib_1, Ajax, UiNotification, Language, EventHandler) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
- exports.setup = void 0;
+ exports.setup = setup;
Ajax = tslib_1.__importStar(Ajax);
UiNotification = tslib_1.__importStar(UiNotification);
Language = tslib_1.__importStar(Language);
});
});
}
- exports.setup = setup;
});
time::after {
content: " (" attr(title) ")";
}
- }`,E.append(C)}m&&(this.#a.dateTime=p.toISOString(),this.#a.title=g.DateAndTime.format(p));let k;if(this.static)k=this.#a.title;else if(x<w.OneMinute)k=window.WoltLabLanguage.getPhrase("wcf.date.relative.now");else if(x<w.OneHour){let E=Math.trunc(x/w.OneMinute);k=g.Minutes.format(E*-1,"minute")}else if(x<w.TwelveHours){let E=Math.trunc(x/w.OneHour);k=g.Hours.format(E*-1,"hour")}else if(x<w.SixDays){let E=g.DayOfWeekAndTime.formatToParts(p);E[0].type==="weekday"?p.getTime()>t?k=this.#s(E,0):p.getTime()>a?k=this.#s(E,-1):k=E.map(W=>W.value).join(""):k=g.DateAndTime.format(p)}else k=g.Date.format(p);k=k.charAt(0).toUpperCase()+k.slice(1),this.#a.textContent=k}#s(m,p){return m.map(k=>k.type==="weekday"?g.TodayOrYesterday.format(p,"day"):k.value).join("")}}window.customElements.define("woltlab-core-date-time",A);let S=()=>{document.querySelectorAll("woltlab-core-date-time").forEach(u=>u.refresh(!1))},z,P=()=>{z=window.setInterval(()=>{l(),S()},6e4)};document.addEventListener("DOMContentLoaded",()=>P(),{once:!0}),document.addEventListener("visibilitychange",()=>{document.hidden?window.clearInterval(z):(S(),P())})}{let r=[24,48,96];class n extends HTMLElement{#e;#a;connectedCallback(){this.#e===void 0&&this.#s()}attributeChangedCallback(t,a,l){if(t==="size"){let d=parseInt(l||"");if(!r.includes(d)){let g=parseInt(a||"");r.includes(g)||(g=24),this.setAttribute(t,g.toString())}}}#s(){this.classList.add("loading-indicator"),this.hasAttribute("size")||this.setAttribute("size",24 .toString()),this.#e=document.createElement("fa-icon"),this.#e.size=this.size,this.#e.setIcon("spinner"),this.#a=document.createElement("span"),this.#a.classList.add("loading-indicator__text"),this.#a.textContent=window.WoltLabLanguage.getPhrase("wcf.global.loading"),this.#a.hidden=this.hideText;let t=document.createElement("div");t.classList.add("loading-indicator__wrapper"),t.append(this.#e,this.#a),this.append(t)}get size(){return parseInt(this.getAttribute("size"))}set size(t){if(!r.includes(t))throw new TypeError(`The size ${t} is unrecognized, permitted values are ${r.join(", ")}.`);this.setAttribute("size",t.toString()),this.#e&&(this.#e.size=t)}get hideText(){return this.hasAttribute("hide-text")}set hideText(t){t?this.setAttribute("hide-text",""):this.removeAttribute("hide-text"),this.#a&&(this.#a.hidden=t)}static get observedAttributes(){return["size"]}}window.customElements.define("woltlab-core-loading-indicator",n)}{let e,r=()=>(e===void 0&&(e=window.matchMedia("(max-width: 544px)")),e);class n extends HTMLElement{#e="pagination";connectedCallback(){this.#a(),r().addEventListener("change",()=>this.#a())}#a(){if(this.innerHTML="",this.count<2)return;this.classList.add(`${this.#e}__wrapper`);let t=this.#s();this.append(t);let a=this.#n();a&&t.append(a);let l=document.createElement("ul");l.classList.add(`${this.#e}__list`),t.append(l),l.append(this.#r(1)),this.page>this.thresholdForEllipsis+1&&l.append(this.#l()),this.#f().forEach(g=>{l.append(g)}),this.count-this.page>this.thresholdForEllipsis&&l.append(this.#l()),l.append(this.#r(this.count));let d=this.#o();d&&t.append(d)}#s(){let t=document.createElement("nav");return t.setAttribute("role","navigation"),t.setAttribute("aria-label",window.WoltLabLanguage.getPhrase("wcf.page.pagination")),t.classList.add(this.#e),t}#n(){if(this.page===1)return;let t=document.createElement("div");t.classList.add(`${this.#e}__prev`);let a=this.#t(this.page-1);a instanceof HTMLAnchorElement&&(a.rel="prev"),a.title=window.WoltLabLanguage.getPhrase("wcf.global.page.previous"),a.classList.add("jsTooltip"),t.append(a);let l=document.createElement("fa-icon");return l.setIcon("arrow-left"),a.append(l),t}#o(){if(this.page===this.count)return;let t=document.createElement("div");t.classList.add(`${this.#e}__next`);let a=this.#t(this.page+1);a instanceof HTMLAnchorElement&&(a.rel="next"),a.title=window.WoltLabLanguage.getPhrase("wcf.global.page.next"),a.classList.add("jsTooltip"),t.append(a);let l=document.createElement("fa-icon");return l.setIcon("arrow-right"),a.append(l),t}#t(t){let a,l=this.getLinkUrl(t);return l?(a=document.createElement("a"),a.href=l):(a=document.createElement("button"),a.type="button",this.page===t?a.disabled=!0:a.addEventListener("click",()=>{this.#i(t)})),a.classList.add(`${this.#e}__link`),a}#r(t){let a=document.createElement("li");a.classList.add(`${this.#e}__item`);let l=this.#t(t);return l.setAttribute("aria-label",window.WoltLabLanguage.getPhrase("wcf.page.pageNo",{pageNo:t})),t===this.page&&(l.setAttribute("aria-current","page"),l.classList.add(`${this.#e}__link--current`)),l.textContent=t.toLocaleString(document.documentElement.lang),a.append(l),a}#f(){let t=[],a,l;r().matches?(a=this.page,l=this.page):(a=this.page-1,a===3&&a--,l=this.page+1,l===this.count-2&&l++);for(let d=a;d<=l;d++)d<=1||d>=this.count||t.push(this.#r(d));return t}#l(){let t=document.createElement("li");t.classList.add(`${this.#e}__item`,`${this.#e}__item--ellipsis`);let a=document.createElement("button");return a.type="button",a.title=window.WoltLabLanguage.getPhrase("wcf.page.jumpTo"),a.classList.add("pagination__link","jsTooltip"),a.innerHTML="⋯",a.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("jumpToPage"))}),t.append(a),t}get thresholdForEllipsis(){return r().matches?1:3}getLinkUrl(t){if(!this.url)return"";let a=new URL(this.url);return a.search+=a.search!==""?"&":"?",a.search+=new URLSearchParams([["pageNo",t.toString()]]).toString(),a.toString()}jumpToPage(t){let a=this.getLinkUrl(t);a?window.location.href=a:this.#i(t)}#i(t){let a=new CustomEvent("switchPage",{cancelable:!0,detail:t});this.dispatchEvent(a),a.defaultPrevented||(this.page=t)}get count(){return this.hasAttribute("count")?parseInt(this.getAttribute("count")):0}set count(t){this.setAttribute("count",t.toString()),this.#a()}get page(){return this.hasAttribute("page")?parseInt(this.getAttribute("page")):1}set page(t){this.setAttribute("page",t.toString()),this.#a()}get url(){return this.getAttribute("url")}set url(t){this.setAttribute("url",t),this.#a()}}window.customElements.define("woltlab-core-pagination",n)}{class e extends HTMLElement{connectedCallback(){this.setData(this.#a(),this.#s())}setData(n,h){this.#e(n,h)}get objectId(){return parseInt(this.getAttribute("object-id"))}get objectType(){return this.getAttribute("object-type")}#e(n,h){if(this.innerHTML="",!n.size)return;let t=document.createElement("button");t.classList.add("reactionSummary","jsTooltip"),t.title=window.WoltLabLanguage.getPhrase("wcf.reactions.summary.listReactions"),t.addEventListener("click",()=>{this.dispatchEvent(new Event("showDetails"))}),this.append(t),n.forEach((a,l)=>{let d=document.createElement("span");d.classList.add("reactionCountButton"),l===h&&d.classList.add("selected");let g=document.createElement("span");g.innerHTML=window.REACTION_TYPES[l].renderedIcon,d.append(g);let w=document.createElement("span");w.classList.add("reactionCount"),w.textContent=a.toString(),d.append(w),t.append(d)})}#a(){let n=JSON.parse(this.getAttribute("data"));return this.removeAttribute("data"),new Map(n)}#s(){return parseInt(this.getAttribute("selected-reaction"))}}window.customElements.define("woltlab-core-reaction-summary",e)}window.WoltLabLanguage=ne;window.WoltLabTemplate=V;window.HTMLParsedElement=pe;})();
+ }`,E.append(C)}m&&(this.#a.dateTime=p.toISOString(),this.#a.title=g.DateAndTime.format(p));let k;if(this.static)k=this.#a.title;else if(x<w.OneMinute)k=window.WoltLabLanguage.getPhrase("wcf.date.relative.now");else if(x<w.OneHour){let E=Math.trunc(x/w.OneMinute);k=g.Minutes.format(E*-1,"minute")}else if(x<w.TwelveHours){let E=Math.trunc(x/w.OneHour);k=g.Hours.format(E*-1,"hour")}else if(x<w.SixDays){let E=g.DayOfWeekAndTime.formatToParts(p);E[0].type==="weekday"?p.getTime()>t?k=this.#s(E,0):p.getTime()>a?k=this.#s(E,-1):k=E.map(W=>W.value).join(""):k=g.DateAndTime.format(p)}else k=g.Date.format(p);k=k.charAt(0).toUpperCase()+k.slice(1),this.#a.textContent=k}#s(m,p){return m.map(k=>k.type==="weekday"?g.TodayOrYesterday.format(p,"day"):k.value).join("")}}window.customElements.define("woltlab-core-date-time",A);let S=()=>{document.querySelectorAll("woltlab-core-date-time").forEach(u=>u.refresh(!1))},z,P=()=>{z=window.setInterval(()=>{l(),S()},6e4)};document.addEventListener("DOMContentLoaded",()=>P(),{once:!0}),document.addEventListener("visibilitychange",()=>{document.hidden?window.clearInterval(z):(S(),P())})}{let r=[24,48,96];class n extends HTMLElement{#e;#a;connectedCallback(){this.#e===void 0&&this.#s()}attributeChangedCallback(t,a,l){if(t==="size"){let d=parseInt(l||"");if(!r.includes(d)){let g=parseInt(a||"");r.includes(g)||(g=24),this.setAttribute(t,g.toString())}}}#s(){this.classList.add("loading-indicator"),this.hasAttribute("size")||this.setAttribute("size","24"),this.#e=document.createElement("fa-icon"),this.#e.size=this.size,this.#e.setIcon("spinner"),this.#a=document.createElement("span"),this.#a.classList.add("loading-indicator__text"),this.#a.textContent=window.WoltLabLanguage.getPhrase("wcf.global.loading"),this.#a.hidden=this.hideText;let t=document.createElement("div");t.classList.add("loading-indicator__wrapper"),t.append(this.#e,this.#a),this.append(t)}get size(){return parseInt(this.getAttribute("size"))}set size(t){if(!r.includes(t))throw new TypeError(`The size ${t} is unrecognized, permitted values are ${r.join(", ")}.`);this.setAttribute("size",t.toString()),this.#e&&(this.#e.size=t)}get hideText(){return this.hasAttribute("hide-text")}set hideText(t){t?this.setAttribute("hide-text",""):this.removeAttribute("hide-text"),this.#a&&(this.#a.hidden=t)}static get observedAttributes(){return["size"]}}window.customElements.define("woltlab-core-loading-indicator",n)}{let e,r=()=>(e===void 0&&(e=window.matchMedia("(max-width: 544px)")),e);class n extends HTMLElement{#e="pagination";connectedCallback(){this.#a(),r().addEventListener("change",()=>this.#a())}#a(){if(this.innerHTML="",this.count<2)return;this.classList.add(`${this.#e}__wrapper`);let t=this.#s();this.append(t);let a=this.#n();a&&t.append(a);let l=document.createElement("ul");l.classList.add(`${this.#e}__list`),t.append(l),l.append(this.#r(1)),this.page>this.thresholdForEllipsis+1&&l.append(this.#l()),this.#f().forEach(g=>{l.append(g)}),this.count-this.page>this.thresholdForEllipsis&&l.append(this.#l()),l.append(this.#r(this.count));let d=this.#o();d&&t.append(d)}#s(){let t=document.createElement("nav");return t.setAttribute("role","navigation"),t.setAttribute("aria-label",window.WoltLabLanguage.getPhrase("wcf.page.pagination")),t.classList.add(this.#e),t}#n(){if(this.page===1)return;let t=document.createElement("div");t.classList.add(`${this.#e}__prev`);let a=this.#t(this.page-1);a instanceof HTMLAnchorElement&&(a.rel="prev"),a.title=window.WoltLabLanguage.getPhrase("wcf.global.page.previous"),a.classList.add("jsTooltip"),t.append(a);let l=document.createElement("fa-icon");return l.setIcon("arrow-left"),a.append(l),t}#o(){if(this.page===this.count)return;let t=document.createElement("div");t.classList.add(`${this.#e}__next`);let a=this.#t(this.page+1);a instanceof HTMLAnchorElement&&(a.rel="next"),a.title=window.WoltLabLanguage.getPhrase("wcf.global.page.next"),a.classList.add("jsTooltip"),t.append(a);let l=document.createElement("fa-icon");return l.setIcon("arrow-right"),a.append(l),t}#t(t){let a,l=this.getLinkUrl(t);return l?(a=document.createElement("a"),a.href=l):(a=document.createElement("button"),a.type="button",this.page===t?a.disabled=!0:a.addEventListener("click",()=>{this.#i(t)})),a.classList.add(`${this.#e}__link`),a}#r(t){let a=document.createElement("li");a.classList.add(`${this.#e}__item`);let l=this.#t(t);return l.setAttribute("aria-label",window.WoltLabLanguage.getPhrase("wcf.page.pageNo",{pageNo:t})),t===this.page&&(l.setAttribute("aria-current","page"),l.classList.add(`${this.#e}__link--current`)),l.textContent=t.toLocaleString(document.documentElement.lang),a.append(l),a}#f(){let t=[],a,l;r().matches?(a=this.page,l=this.page):(a=this.page-1,a===3&&a--,l=this.page+1,l===this.count-2&&l++);for(let d=a;d<=l;d++)d<=1||d>=this.count||t.push(this.#r(d));return t}#l(){let t=document.createElement("li");t.classList.add(`${this.#e}__item`,`${this.#e}__item--ellipsis`);let a=document.createElement("button");return a.type="button",a.title=window.WoltLabLanguage.getPhrase("wcf.page.jumpTo"),a.classList.add("pagination__link","jsTooltip"),a.innerHTML="⋯",a.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent("jumpToPage"))}),t.append(a),t}get thresholdForEllipsis(){return r().matches?1:3}getLinkUrl(t){if(!this.url)return"";let a=new URL(this.url);return a.search+=a.search!==""?"&":"?",a.search+=new URLSearchParams([["pageNo",t.toString()]]).toString(),a.toString()}jumpToPage(t){let a=this.getLinkUrl(t);a?window.location.href=a:this.#i(t)}#i(t){let a=new CustomEvent("switchPage",{cancelable:!0,detail:t});this.dispatchEvent(a),a.defaultPrevented||(this.page=t)}get count(){return this.hasAttribute("count")?parseInt(this.getAttribute("count")):0}set count(t){this.setAttribute("count",t.toString()),this.#a()}get page(){return this.hasAttribute("page")?parseInt(this.getAttribute("page")):1}set page(t){this.setAttribute("page",t.toString()),this.#a()}get url(){return this.getAttribute("url")}set url(t){this.setAttribute("url",t),this.#a()}}window.customElements.define("woltlab-core-pagination",n)}{class e extends HTMLElement{connectedCallback(){this.setData(this.#a(),this.#s())}setData(n,h){this.#e(n,h)}get objectId(){return parseInt(this.getAttribute("object-id"))}get objectType(){return this.getAttribute("object-type")}#e(n,h){if(this.innerHTML="",!n.size)return;let t=document.createElement("button");t.classList.add("reactionSummary","jsTooltip"),t.title=window.WoltLabLanguage.getPhrase("wcf.reactions.summary.listReactions"),t.addEventListener("click",()=>{this.dispatchEvent(new Event("showDetails"))}),this.append(t),n.forEach((a,l)=>{let d=document.createElement("span");d.classList.add("reactionCountButton"),l===h&&d.classList.add("selected");let g=document.createElement("span");g.innerHTML=window.REACTION_TYPES[l].renderedIcon,d.append(g);let w=document.createElement("span");w.classList.add("reactionCount"),w.textContent=a.toString(),d.append(w),t.append(d)})}#a(){let n=JSON.parse(this.getAttribute("data"));return this.removeAttribute("data"),new Map(n)}#s(){return parseInt(this.getAttribute("selected-reaction"))}}window.customElements.define("woltlab-core-reaction-summary",e)}window.WoltLabLanguage=ne;window.WoltLabTemplate=V;window.HTMLParsedElement=pe;})();
/**
* Handles the low level management of language items.
*