keycloakify 11.8.21 → 11.8.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -171,6 +171,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
171
171
  <tr>
172
172
  <td align="center" valign="top" width="14.28%"><a href="http://t.me/AAT_L"><img src="https://avatars.githubusercontent.com/u/118743608?v=4?s=100" width="100px;" alt="Lesha"/><br /><sub><b>Lesha</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=EternalSide" title="Code">💻</a></td>
173
173
  <td align="center" valign="top" width="14.28%"><a href="https://blog.bacongobbler.com"><img src="https://avatars.githubusercontent.com/u/1360539?v=4?s=100" width="100px;" alt="Matthew Fisher"/><br /><sub><b>Matthew Fisher</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=bacongobbler" title="Documentation">📖</a></td>
174
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/kodebach"><img src="https://avatars.githubusercontent.com/u/23529132?v=4?s=100" width="100px;" alt="Klemens Böswirth"/><br /><sub><b>Klemens Böswirth</b></sub></a><br /><a href="https://github.com/keycloakify/keycloakify/commits?author=kodebach" title="Code">💻</a></td>
174
175
  </tr>
175
176
  </tbody>
176
177
  </table>
package/bin/355.index.js CHANGED
@@ -499,7 +499,7 @@ function getNodeModulesBinDirPath(params) {
499
499
  /***/ }),
500
500
 
501
501
  /***/ 48433:
502
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
502
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
503
503
 
504
504
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
505
505
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -519,6 +519,7 @@ function getNodeModulesBinDirPath(params) {
519
519
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
520
520
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
521
521
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
522
+ /* module decorator */ module = __webpack_require__.hmd(module);
522
523
 
523
524
 
524
525
 
@@ -556,7 +557,16 @@ async function getPrettier() {
556
557
  // So we do a sketchy eval to bypass ncc.
557
558
  // We make sure to only do that when linking, otherwise we import properly.
558
559
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
559
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
560
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
561
+ const isCJS = true && module.exports;
562
+ if (isCJS) {
563
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
564
+ }
565
+ else {
566
+ prettier = await new Promise(_resolve => {
567
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
568
+ });
569
+ }
560
570
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
561
571
  break import_prettier;
562
572
  }
package/bin/363.index.js CHANGED
@@ -313,12 +313,12 @@ async function getExtensionModuleFileSourceCodeReadyToBeCopied(params) {
313
313
  `This file has been claimed for ownership from ${extensionModuleName} version ${extensionModuleVersion}.`,
314
314
  `To relinquish ownership and restore this file to its original content, run the following command:`,
315
315
  ``,
316
- `$ npx keycloakify own --path '${path}' --revert`
316
+ `$ npx keycloakify own --path "${path}" --revert`
317
317
  ]
318
318
  : [
319
319
  `WARNING: Before modifying this file, run the following command:`,
320
320
  ``,
321
- `$ npx keycloakify own --path '${path}'`,
321
+ `$ npx keycloakify own --path "${path}"`,
322
322
  ``,
323
323
  `This file is provided by ${extensionModuleName} version ${extensionModuleVersion}.`,
324
324
  `It was copied into your repository by the postinstall script: \`keycloakify sync-extensions\`.`
@@ -1552,7 +1552,7 @@ async function installWithoutBreakingLinks(params) {
1552
1552
  /***/ }),
1553
1553
 
1554
1554
  /***/ 48433:
1555
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1555
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
1556
1556
 
1557
1557
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1558
1558
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -1572,6 +1572,7 @@ async function installWithoutBreakingLinks(params) {
1572
1572
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
1573
1573
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
1574
1574
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
1575
+ /* module decorator */ module = __webpack_require__.hmd(module);
1575
1576
 
1576
1577
 
1577
1578
 
@@ -1609,7 +1610,16 @@ async function getPrettier() {
1609
1610
  // So we do a sketchy eval to bypass ncc.
1610
1611
  // We make sure to only do that when linking, otherwise we import properly.
1611
1612
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
1612
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
1613
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
1614
+ const isCJS = true && module.exports;
1615
+ if (isCJS) {
1616
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
1617
+ }
1618
+ else {
1619
+ prettier = await new Promise(_resolve => {
1620
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
1621
+ });
1622
+ }
1613
1623
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
1614
1624
  break import_prettier;
1615
1625
  }
package/bin/780.index.js CHANGED
@@ -496,7 +496,7 @@ function getNodeModulesBinDirPath(params) {
496
496
  /***/ }),
497
497
 
498
498
  /***/ 48433:
499
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
499
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
500
500
 
501
501
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
502
502
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -516,6 +516,7 @@ function getNodeModulesBinDirPath(params) {
516
516
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
517
517
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
518
518
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
519
+ /* module decorator */ module = __webpack_require__.hmd(module);
519
520
 
520
521
 
521
522
 
@@ -553,7 +554,16 @@ async function getPrettier() {
553
554
  // So we do a sketchy eval to bypass ncc.
554
555
  // We make sure to only do that when linking, otherwise we import properly.
555
556
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
556
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
557
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
558
+ const isCJS = true && module.exports;
559
+ if (isCJS) {
560
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
561
+ }
562
+ else {
563
+ prettier = await new Promise(_resolve => {
564
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
565
+ });
566
+ }
557
567
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
558
568
  break import_prettier;
559
569
  }
package/bin/786.index.js CHANGED
@@ -305,7 +305,7 @@ function getNodeModulesBinDirPath(params) {
305
305
  /***/ }),
306
306
 
307
307
  /***/ 48433:
308
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
308
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
309
309
 
310
310
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
311
311
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -325,6 +325,7 @@ function getNodeModulesBinDirPath(params) {
325
325
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
326
326
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
327
327
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
328
+ /* module decorator */ module = __webpack_require__.hmd(module);
328
329
 
329
330
 
330
331
 
@@ -362,7 +363,16 @@ async function getPrettier() {
362
363
  // So we do a sketchy eval to bypass ncc.
363
364
  // We make sure to only do that when linking, otherwise we import properly.
364
365
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
365
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
366
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
367
+ const isCJS = true && module.exports;
368
+ if (isCJS) {
369
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
370
+ }
371
+ else {
372
+ prettier = await new Promise(_resolve => {
373
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
374
+ });
375
+ }
366
376
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
367
377
  break import_prettier;
368
378
  }
package/bin/932.index.js CHANGED
@@ -475,7 +475,7 @@ function getNodeModulesBinDirPath(params) {
475
475
  /***/ }),
476
476
 
477
477
  /***/ 48433:
478
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
478
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
479
479
 
480
480
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
481
481
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -495,6 +495,7 @@ function getNodeModulesBinDirPath(params) {
495
495
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
496
496
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
497
497
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
498
+ /* module decorator */ module = __webpack_require__.hmd(module);
498
499
 
499
500
 
500
501
 
@@ -532,7 +533,16 @@ async function getPrettier() {
532
533
  // So we do a sketchy eval to bypass ncc.
533
534
  // We make sure to only do that when linking, otherwise we import properly.
534
535
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
535
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
536
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
537
+ const isCJS = true && module.exports;
538
+ if (isCJS) {
539
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
540
+ }
541
+ else {
542
+ prettier = await new Promise(_resolve => {
543
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
544
+ });
545
+ }
536
546
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
537
547
  break import_prettier;
538
548
  }
package/bin/949.index.js CHANGED
@@ -321,7 +321,7 @@ function getNodeModulesBinDirPath(params) {
321
321
  /***/ }),
322
322
 
323
323
  /***/ 48433:
324
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
324
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
325
325
 
326
326
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
327
327
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -341,6 +341,7 @@ function getNodeModulesBinDirPath(params) {
341
341
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
342
342
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
343
343
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
344
+ /* module decorator */ module = __webpack_require__.hmd(module);
344
345
 
345
346
 
346
347
 
@@ -378,7 +379,16 @@ async function getPrettier() {
378
379
  // So we do a sketchy eval to bypass ncc.
379
380
  // We make sure to only do that when linking, otherwise we import properly.
380
381
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
381
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
382
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
383
+ const isCJS = true && module.exports;
384
+ if (isCJS) {
385
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
386
+ }
387
+ else {
388
+ prettier = await new Promise(_resolve => {
389
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
390
+ });
391
+ }
382
392
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
383
393
  break import_prettier;
384
394
  }
package/bin/97.index.js CHANGED
@@ -2381,7 +2381,7 @@ function getNodeModulesBinDirPath(params) {
2381
2381
  /***/ }),
2382
2382
 
2383
2383
  /***/ 48433:
2384
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2384
+ /***/ ((module, __webpack_exports__, __webpack_require__) => {
2385
2385
 
2386
2386
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2387
2387
  /* harmony export */ "LG": () => (/* binding */ getPrettier),
@@ -2401,6 +2401,7 @@ function getNodeModulesBinDirPath(params) {
2401
2401
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
2402
2402
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(76030);
2403
2403
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(64795);
2404
+ /* module decorator */ module = __webpack_require__.hmd(module);
2404
2405
 
2405
2406
 
2406
2407
 
@@ -2438,7 +2439,16 @@ async function getPrettier() {
2438
2439
  // So we do a sketchy eval to bypass ncc.
2439
2440
  // We make sure to only do that when linking, otherwise we import properly.
2440
2441
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
2441
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
2442
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
2443
+ const isCJS = true && module.exports;
2444
+ if (isCJS) {
2445
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
2446
+ }
2447
+ else {
2448
+ prettier = await new Promise(_resolve => {
2449
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
2450
+ });
2451
+ }
2442
2452
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
2443
2453
  break import_prettier;
2444
2454
  }
package/bin/main.js CHANGED
@@ -151,6 +151,7 @@ function crawl(params) {
151
151
  function getAbsoluteAndInOsFormatPath(params) {
152
152
  const { pathIsh, cwd } = params;
153
153
  let pathOut = pathIsh;
154
+ pathOut = pathOut.replace(/^['"]/, "").replace(/['"]$/, "");
154
155
  pathOut = pathOut.replace(/\//g, path__WEBPACK_IMPORTED_MODULE_0__.sep);
155
156
  if (pathOut.startsWith("~")) {
156
157
  pathOut = pathOut.replace("~", os__WEBPACK_IMPORTED_MODULE_1__.homedir());
@@ -12775,6 +12776,21 @@ var z = /*#__PURE__*/Object.freeze({
12775
12776
  /******/ };
12776
12777
  /******/ })();
12777
12778
  /******/
12779
+ /******/ /* webpack/runtime/harmony module decorator */
12780
+ /******/ (() => {
12781
+ /******/ __nccwpck_require__.hmd = (module) => {
12782
+ /******/ module = Object.create(module);
12783
+ /******/ if (!module.children) module.children = [];
12784
+ /******/ Object.defineProperty(module, 'exports', {
12785
+ /******/ enumerable: true,
12786
+ /******/ set: () => {
12787
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
12788
+ /******/ }
12789
+ /******/ });
12790
+ /******/ return module;
12791
+ /******/ };
12792
+ /******/ })();
12793
+ /******/
12778
12794
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
12779
12795
  /******/ (() => {
12780
12796
  /******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
@@ -8,9 +8,10 @@ export default function Info(props) {
8
8
  __html: kcSanitize(messageHeader !== null && messageHeader !== void 0 ? messageHeader : message.summary)
9
9
  } }) }, { children: _jsxs("div", Object.assign({ id: "kc-info-message" }, { children: [_jsx("p", { className: "instruction", dangerouslySetInnerHTML: {
10
10
  __html: kcSanitize((() => {
11
- let html = message.summary;
11
+ var _a;
12
+ let html = (_a = message.summary) === null || _a === void 0 ? void 0 : _a.trim();
12
13
  if (requiredActions) {
13
- html += "<b>";
14
+ html += " <b>";
14
15
  html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", ");
15
16
  html += "</b>";
16
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Info.js","sourceRoot":"","sources":["../../src/login/pages/Info.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAIxD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAkE;IAC3F,MAAM,EAAE,SAAS,EAAE,I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AG,EAAE;;4BACF,IAAI,IAAI,GAAG,MAAA,OAAO,CAAC,OAAO,0CAAE,IAAI,EAAE,CAAC;4BAEnC,IAAI,eAAe,EAAE;gCACjB,IAAI,IAAI,MAAM,CAAC;gCAEf,IAAI,IAAI,eAAe,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,kBAAkB,cAAc,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gCAE7G,IAAI,IAAI,MAAM,CAAC;6BAClB;4BAED,OAAO,IAAI,CAAC;wBAChB,CAAC,CAAC,EAAE,CACP;qBACJ,GACH,EACD,CAAC,GAAG,EAAE;oBACH,IAAI,QAAQ,EAAE;wBACV,OAAO,IAAI,CAAC;qBACf;oBAED,IAAI,eAAe,EAAE;wBACjB,OAAO,CACH,sBACI,0BAAG,IAAI,EAAE,eAAe,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GACxD,CACP,CAAC;qBACL;oBACD,IAAI,SAAS,EAAE;wBACX,OAAO,CACH,sBACI,0BAAG,IAAI,EAAE,SAAS,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GAClD,CACP,CAAC;qBACL;oBAED,IAAI,MAAM,CAAC,OAAO,EAAE;wBAChB,OAAO,CACH,sBACI,0BAAG,IAAI,EAAE,MAAM,CAAC,OAAO,gBAAG,GAAG,CAAC,mBAAmB,CAAC,IAAK,GACvD,CACP,CAAC;qBACL;gBACL,CAAC,CAAC,EAAE,KACF,IACC,CACd,CAAC;AACN,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Fragment } from "react";
2
+ import { Fragment, useState } from "react";
3
3
  import { getKcClsx } from "../../login/lib/kcClsx";
4
4
  import { kcSanitize } from "../../lib/kcSanitize";
5
5
  export default function LoginOtp(props) {
@@ -10,8 +10,12 @@ export default function LoginOtp(props) {
10
10
  });
11
11
  const { otpLogin, url, messagesPerField } = kcContext;
12
12
  const { msg, msgStr } = i18n;
13
- return (_jsx(Template, Object.assign({ kcContext: kcContext, i18n: i18n, doUseDefaultCss: doUseDefaultCss, classes: classes, displayMessage: !messagesPerField.existsError("totp"), headerNode: msg("doLogIn") }, { children: _jsxs("form", Object.assign({ id: "kc-otp-login-form", className: kcClsx("kcFormClass"), action: url.loginAction, method: "post" }, { children: [otpLogin.userOtpCredentials.length > 1 && (_jsx("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: _jsx("div", Object.assign({ className: kcClsx("kcInputWrapperClass") }, { children: otpLogin.userOtpCredentials.map((otpCredential, index) => (_jsxs(Fragment, { children: [_jsx("input", { id: `kc-otp-credential-${index}`, className: kcClsx("kcLoginOTPListInputClass"), type: "radio", name: "selectedCredentialId", value: otpCredential.id, defaultChecked: otpCredential.id === otpLogin.selectedCredentialId }), _jsx("label", Object.assign({ htmlFor: `kc-otp-credential-${index}`, className: kcClsx("kcLoginOTPListClass"), tabIndex: index }, { children: _jsxs("span", Object.assign({ className: kcClsx("kcLoginOTPListItemHeaderClass") }, { children: [_jsx("span", Object.assign({ className: kcClsx("kcLoginOTPListItemIconBodyClass") }, { children: _jsx("i", { className: kcClsx("kcLoginOTPListItemIconClass"), "aria-hidden": "true" }) })), _jsx("span", Object.assign({ className: kcClsx("kcLoginOTPListItemTitleClass") }, { children: otpCredential.userLabel }))] })) }))] }, index))) })) }))), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ className: kcClsx("kcLabelWrapperClass") }, { children: _jsx("label", Object.assign({ htmlFor: "otp", className: kcClsx("kcLabelClass") }, { children: msg("loginOtpOneTime") })) })), _jsxs("div", Object.assign({ className: kcClsx("kcInputWrapperClass") }, { children: [_jsx("input", { id: "otp", name: "otp", autoComplete: "off", type: "text", className: kcClsx("kcInputClass"), autoFocus: true, "aria-invalid": messagesPerField.existsError("totp") }), messagesPerField.existsError("totp") && (_jsx("span", { id: "input-error-otp-code", className: kcClsx("kcInputErrorMessageClass"), "aria-live": "polite", dangerouslySetInnerHTML: {
13
+ const [isSubmitting, setIsSubmitting] = useState(false);
14
+ return (_jsx(Template, Object.assign({ kcContext: kcContext, i18n: i18n, doUseDefaultCss: doUseDefaultCss, classes: classes, displayMessage: !messagesPerField.existsError("totp"), headerNode: msg("doLogIn") }, { children: _jsxs("form", Object.assign({ id: "kc-otp-login-form", className: kcClsx("kcFormClass"), action: url.loginAction, onSubmit: () => {
15
+ setIsSubmitting(true);
16
+ return true;
17
+ }, method: "post" }, { children: [otpLogin.userOtpCredentials.length > 1 && (_jsx("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: _jsx("div", Object.assign({ className: kcClsx("kcInputWrapperClass") }, { children: otpLogin.userOtpCredentials.map((otpCredential, index) => (_jsxs(Fragment, { children: [_jsx("input", { id: `kc-otp-credential-${index}`, className: kcClsx("kcLoginOTPListInputClass"), type: "radio", name: "selectedCredentialId", value: otpCredential.id, defaultChecked: otpCredential.id === otpLogin.selectedCredentialId }), _jsx("label", Object.assign({ htmlFor: `kc-otp-credential-${index}`, className: kcClsx("kcLoginOTPListClass"), tabIndex: index }, { children: _jsxs("span", Object.assign({ className: kcClsx("kcLoginOTPListItemHeaderClass") }, { children: [_jsx("span", Object.assign({ className: kcClsx("kcLoginOTPListItemIconBodyClass") }, { children: _jsx("i", { className: kcClsx("kcLoginOTPListItemIconClass"), "aria-hidden": "true" }) })), _jsx("span", Object.assign({ className: kcClsx("kcLoginOTPListItemTitleClass") }, { children: otpCredential.userLabel }))] })) }))] }, index))) })) }))), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ className: kcClsx("kcLabelWrapperClass") }, { children: _jsx("label", Object.assign({ htmlFor: "otp", className: kcClsx("kcLabelClass") }, { children: msg("loginOtpOneTime") })) })), _jsxs("div", Object.assign({ className: kcClsx("kcInputWrapperClass") }, { children: [_jsx("input", { id: "otp", name: "otp", autoComplete: "off", type: "text", className: kcClsx("kcInputClass"), autoFocus: true, "aria-invalid": messagesPerField.existsError("totp") }), messagesPerField.existsError("totp") && (_jsx("span", { id: "input-error-otp-code", className: kcClsx("kcInputErrorMessageClass"), "aria-live": "polite", dangerouslySetInnerHTML: {
14
18
  __html: kcSanitize(messagesPerField.get("totp"))
15
- } }))] }))] })), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ id: "kc-form-options", className: kcClsx("kcFormOptionsClass") }, { children: _jsx("div", { className: kcClsx("kcFormOptionsWrapperClass") }) })), _jsx("div", Object.assign({ id: "kc-form-buttons", className: kcClsx("kcFormButtonsClass") }, { children: _jsx("input", { className: kcClsx("kcButtonClass", "kcButtonPrimaryClass", "kcButtonBlockClass", "kcButtonLargeClass"), name: "login", id: "kc-login", type: "submit", value: msgStr("doLogIn") }) }))] }))] })) })));
19
+ } }))] }))] })), _jsxs("div", Object.assign({ className: kcClsx("kcFormGroupClass") }, { children: [_jsx("div", Object.assign({ id: "kc-form-options", className: kcClsx("kcFormOptionsClass") }, { children: _jsx("div", { className: kcClsx("kcFormOptionsWrapperClass") }) })), _jsx("div", Object.assign({ id: "kc-form-buttons", className: kcClsx("kcFormButtonsClass") }, { children: _jsx("input", { className: kcClsx("kcButtonClass", "kcButtonPrimaryClass", "kcButtonBlockClass", "kcButtonLargeClass"), name: "login", id: "kc-login", type: "submit", value: msgStr("doLogIn"), disabled: isSubmitting }) }))] }))] })) })));
16
20
  }
17
21
  //# sourceMappingURL=LoginOtp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoginOtp.js","sourceRoot":"","sources":["../../src/login/pages/LoginOtp.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAKxD,MAAM,CAAC,OAAO,UAA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oB,EAAE,oBAAoB,CAAC,EACtG,IAAI,EAAC,OAAO,EACZ,EAAE,EAAC,UAAU,EACb,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,EACxB,QAAQ,EAAE,YAAY,GACxB,IACA,KACJ,KACH,IACA,CACd,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "11.8.21",
3
+ "version": "11.8.23",
4
4
  "description": "Framework to create custom Keycloak UIs",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,12 +45,12 @@ export async function getExtensionModuleFileSourceCodeReadyToBeCopied(params: {
45
45
  `This file has been claimed for ownership from ${extensionModuleName} version ${extensionModuleVersion}.`,
46
46
  `To relinquish ownership and restore this file to its original content, run the following command:`,
47
47
  ``,
48
- `$ npx keycloakify own --path '${path}' --revert`
48
+ `$ npx keycloakify own --path "${path}" --revert`
49
49
  ]
50
50
  : [
51
51
  `WARNING: Before modifying this file, run the following command:`,
52
52
  ``,
53
- `$ npx keycloakify own --path '${path}'`,
53
+ `$ npx keycloakify own --path "${path}"`,
54
54
  ``,
55
55
  `This file is provided by ${extensionModuleName} version ${extensionModuleVersion}.`,
56
56
  `It was copied into your repository by the postinstall script: \`keycloakify sync-extensions\`.`
@@ -14,6 +14,8 @@ export function getAbsoluteAndInOsFormatPath(params: {
14
14
 
15
15
  let pathOut = pathIsh;
16
16
 
17
+ pathOut = pathOut.replace(/^['"]/, "").replace(/['"]$/, "");
18
+
17
19
  pathOut = pathOut.replace(/\//g, pathSep);
18
20
 
19
21
  if (pathOut.startsWith("~")) {
@@ -52,10 +52,26 @@ export async function getPrettier(): Promise<PrettierAndConfigHash> {
52
52
  // So we do a sketchy eval to bypass ncc.
53
53
  // We make sure to only do that when linking, otherwise we import properly.
54
54
  if (readThisNpmPackageVersion().startsWith("0.0.0")) {
55
- eval(
56
- `${symToStr({ prettier })} = require("${pathResolve(pathJoin(getNodeModulesBinDirPath({ packageJsonFilePath: undefined }), "..", "prettier"))}")`
55
+ const prettierDirPath = pathResolve(
56
+ pathJoin(
57
+ getNodeModulesBinDirPath({ packageJsonFilePath: undefined }),
58
+ "..",
59
+ "prettier"
60
+ )
57
61
  );
58
62
 
63
+ const isCJS = typeof module !== "undefined" && module.exports;
64
+
65
+ if (isCJS) {
66
+ eval(`${symToStr({ prettier })} = require("${prettierDirPath}")`);
67
+ } else {
68
+ prettier = await new Promise(_resolve => {
69
+ eval(
70
+ `import("file:///${pathJoin(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`
71
+ );
72
+ });
73
+ }
74
+
59
75
  assert(!is<undefined>(prettier));
60
76
 
61
77
  break import_prettier;
@@ -31,10 +31,10 @@ export default function Info(props: PageProps<Extract<KcContext, { pageId: "info
31
31
  dangerouslySetInnerHTML={{
32
32
  __html: kcSanitize(
33
33
  (() => {
34
- let html = message.summary;
34
+ let html = message.summary?.trim();
35
35
 
36
36
  if (requiredActions) {
37
- html += "<b>";
37
+ html += " <b>";
38
38
 
39
39
  html += requiredActions.map(requiredAction => advancedMsgStr(`requiredAction.${requiredAction}`)).join(", ");
40
40
 
@@ -1,4 +1,4 @@
1
- import { Fragment } from "react";
1
+ import { Fragment, useState } from "react";
2
2
  import { getKcClsx } from "keycloakify/login/lib/kcClsx";
3
3
  import { kcSanitize } from "keycloakify/lib/kcSanitize";
4
4
  import type { PageProps } from "keycloakify/login/pages/PageProps";
@@ -17,6 +17,8 @@ export default function LoginOtp(props: PageProps<Extract<KcContext, { pageId: "
17
17
 
18
18
  const { msg, msgStr } = i18n;
19
19
 
20
+ const [isSubmitting, setIsSubmitting] = useState(false);
21
+
20
22
  return (
21
23
  <Template
22
24
  kcContext={kcContext}
@@ -26,7 +28,16 @@ export default function LoginOtp(props: PageProps<Extract<KcContext, { pageId: "
26
28
  displayMessage={!messagesPerField.existsError("totp")}
27
29
  headerNode={msg("doLogIn")}
28
30
  >
29
- <form id="kc-otp-login-form" className={kcClsx("kcFormClass")} action={url.loginAction} method="post">
31
+ <form
32
+ id="kc-otp-login-form"
33
+ className={kcClsx("kcFormClass")}
34
+ action={url.loginAction}
35
+ onSubmit={() => {
36
+ setIsSubmitting(true);
37
+ return true;
38
+ }}
39
+ method="post"
40
+ >
30
41
  {otpLogin.userOtpCredentials.length > 1 && (
31
42
  <div className={kcClsx("kcFormGroupClass")}>
32
43
  <div className={kcClsx("kcInputWrapperClass")}>
@@ -94,6 +105,7 @@ export default function LoginOtp(props: PageProps<Extract<KcContext, { pageId: "
94
105
  id="kc-login"
95
106
  type="submit"
96
107
  value={msgStr("doLogIn")}
108
+ disabled={isSubmitting}
97
109
  />
98
110
  </div>
99
111
  </div>
@@ -46,7 +46,7 @@ export const WithRequiredActions: Story = {
46
46
  kcContext={{
47
47
  messageHeader: "Message header",
48
48
  message: {
49
- summary: "Required actions: "
49
+ summary: "Required actions:"
50
50
  },
51
51
  requiredActions: ["CONFIGURE_TOTP", "UPDATE_PROFILE", "VERIFY_EMAIL", "CUSTOM_ACTION"],
52
52
  "x-keycloakify": {
@@ -200,6 +200,7 @@ var external_os_ = __nccwpck_require__(37);
200
200
  function getAbsoluteAndInOsFormatPath(params) {
201
201
  const { pathIsh, cwd } = params;
202
202
  let pathOut = pathIsh;
203
+ pathOut = pathOut.replace(/^['"]/, "").replace(/['"]$/, "");
203
204
  pathOut = pathOut.replace(/\//g, external_path_.sep);
204
205
  if (pathOut.startsWith("~")) {
205
206
  pathOut = pathOut.replace("~", external_os_.homedir());
@@ -1673,7 +1674,7 @@ function readThisNpmPackageVersion() {
1673
1674
  /***/ }),
1674
1675
 
1675
1676
  /***/ 433:
1676
- /***/ ((__unused_webpack_module, __webpack_exports__, __nccwpck_require__) => {
1677
+ /***/ ((module, __webpack_exports__, __nccwpck_require__) => {
1677
1678
 
1678
1679
  "use strict";
1679
1680
  /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
@@ -1694,6 +1695,7 @@ function readThisNpmPackageVersion() {
1694
1695
  /* harmony import */ var crypto__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__nccwpck_require__.n(crypto__WEBPACK_IMPORTED_MODULE_5__);
1695
1696
  /* harmony import */ var tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__ = __nccwpck_require__(30);
1696
1697
  /* harmony import */ var _readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__ = __nccwpck_require__(795);
1698
+ /* module decorator */ module = __nccwpck_require__.hmd(module);
1697
1699
 
1698
1700
 
1699
1701
 
@@ -1731,7 +1733,16 @@ async function getPrettier() {
1731
1733
  // So we do a sketchy eval to bypass ncc.
1732
1734
  // We make sure to only do that when linking, otherwise we import properly.
1733
1735
  if ((0,_readThisNpmPackageVersion__WEBPACK_IMPORTED_MODULE_6__/* .readThisNpmPackageVersion */ .K)().startsWith("0.0.0")) {
1734
- eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${(0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"))}")`);
1736
+ const prettierDirPath = (0,path__WEBPACK_IMPORTED_MODULE_1__.resolve)((0,path__WEBPACK_IMPORTED_MODULE_1__.join)((0,_nodeModulesBinDirPath__WEBPACK_IMPORTED_MODULE_0__/* .getNodeModulesBinDirPath */ .K)({ packageJsonFilePath: undefined }), "..", "prettier"));
1737
+ const isCJS = true && module.exports;
1738
+ if (isCJS) {
1739
+ eval(`${(0,tsafe_symToStr__WEBPACK_IMPORTED_MODULE_8__/* .symToStr */ .r)({ prettier })} = require("${prettierDirPath}")`);
1740
+ }
1741
+ else {
1742
+ prettier = await new Promise(_resolve => {
1743
+ eval(`import("file:///${(0,path__WEBPACK_IMPORTED_MODULE_1__.join)(prettierDirPath, "index.mjs").replace(/\\/g, "/")}").then(prettier => _resolve(prettier))`);
1744
+ });
1745
+ }
1735
1746
  (0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__/* .assert */ .h)(!(0,tsafe_assert__WEBPACK_IMPORTED_MODULE_3__.is)(prettier));
1736
1747
  break import_prettier;
1737
1748
  }
@@ -10281,6 +10292,21 @@ var z = /*#__PURE__*/Object.freeze({
10281
10292
  /******/ };
10282
10293
  /******/ })();
10283
10294
  /******/
10295
+ /******/ /* webpack/runtime/harmony module decorator */
10296
+ /******/ (() => {
10297
+ /******/ __nccwpck_require__.hmd = (module) => {
10298
+ /******/ module = Object.create(module);
10299
+ /******/ if (!module.children) module.children = [];
10300
+ /******/ Object.defineProperty(module, 'exports', {
10301
+ /******/ enumerable: true,
10302
+ /******/ set: () => {
10303
+ /******/ throw new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);
10304
+ /******/ }
10305
+ /******/ });
10306
+ /******/ return module;
10307
+ /******/ };
10308
+ /******/ })();
10309
+ /******/
10284
10310
  /******/ /* webpack/runtime/hasOwnProperty shorthand */
10285
10311
  /******/ (() => {
10286
10312
  /******/ __nccwpck_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))