@diplodoc/client 2.0.5 → 2.1.0
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/CHANGELOG.md +13 -0
- package/build/client/app.css +1 -1
- package/build/client/app.css.map +1 -1
- package/build/client/app.js +1 -1
- package/build/client/app.js.map +1 -1
- package/build/client/app.rtl.css +2 -0
- package/build/client/manifest.json +5 -3
- package/build/client/react.js +1 -1
- package/build/client/react.js.map +1 -1
- package/build/client/vendor.css +124 -292
- package/build/client/vendor.css.map +1 -1
- package/build/client/vendor.js +1 -1
- package/build/client/vendor.js.map +1 -1
- package/build/client/vendor.rtl.css +2641 -0
- package/build/constants.d.ts +5 -0
- package/build/server/app.js +67 -45
- package/build/server/app.js.map +1 -1
- package/build/server/manifest.json +2 -2
- package/build/server/react.js +17 -17
- package/build/server/vendor.js +4209 -2870
- package/build/server/vendor.js.map +1 -1
- package/build/utils.d.ts +3 -1
- package/package.json +10 -4
- package/rtl-css.js +66 -0
package/build/server/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/******/ (() => { // webpackBootstrap
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
|
-
/***/
|
|
4
|
+
/***/ 5048:
|
|
5
5
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
@@ -14,23 +14,25 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
// EXTERNAL MODULE: ./node_modules/react/index.js
|
|
17
|
-
var react = __webpack_require__(
|
|
17
|
+
var react = __webpack_require__(6540);
|
|
18
18
|
// EXTERNAL MODULE: ./node_modules/react-dom/server.node.js
|
|
19
|
-
var server_node = __webpack_require__(
|
|
19
|
+
var server_node = __webpack_require__(4362);
|
|
20
20
|
// EXTERNAL MODULE: ./node_modules/@gravity-ui/page-constructor/build/esm/containers/PageConstructor/Provider.js
|
|
21
|
-
var Provider = __webpack_require__(
|
|
22
|
-
// EXTERNAL MODULE: ./node_modules/@gravity-ui/page-constructor/build/esm/containers/PageConstructor/PageConstructor.js +
|
|
23
|
-
var PageConstructor = __webpack_require__(
|
|
21
|
+
var Provider = __webpack_require__(7658);
|
|
22
|
+
// EXTERNAL MODULE: ./node_modules/@gravity-ui/page-constructor/build/esm/containers/PageConstructor/PageConstructor.js + 356 modules
|
|
23
|
+
var PageConstructor = __webpack_require__(9915);
|
|
24
|
+
// EXTERNAL MODULE: ./node_modules/@gravity-ui/uikit/build/esm/components/theme/ThemeProvider.js + 6 modules
|
|
25
|
+
var ThemeProvider = __webpack_require__(4647);
|
|
24
26
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/models/index.js
|
|
25
|
-
var models = __webpack_require__(
|
|
27
|
+
var models = __webpack_require__(8184);
|
|
26
28
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/DocLeadingPage/DocLeadingPage.js + 2 modules
|
|
27
|
-
var DocLeadingPage = __webpack_require__(
|
|
28
|
-
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/DocPage/DocPage.js +
|
|
29
|
-
var DocPage = __webpack_require__(
|
|
29
|
+
var DocLeadingPage = __webpack_require__(8472);
|
|
30
|
+
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/DocPage/DocPage.js + 39 modules
|
|
31
|
+
var DocPage = __webpack_require__(9530);
|
|
30
32
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/Controls/ControlsLayout.js
|
|
31
|
-
var ControlsLayout = __webpack_require__(
|
|
32
|
-
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/Controls/Controls.js +
|
|
33
|
-
var Controls = __webpack_require__(
|
|
33
|
+
var ControlsLayout = __webpack_require__(6141);
|
|
34
|
+
// EXTERNAL MODULE: ./node_modules/@diplodoc/components/build/esm/components/Controls/Controls.js + 64 modules
|
|
35
|
+
var Controls = __webpack_require__(7871);
|
|
34
36
|
;// CONCATENATED MODULE: ./src/components/HeaderControls/index.tsx
|
|
35
37
|
|
|
36
38
|
|
|
@@ -48,12 +50,12 @@ const HeaderControls = /*#__PURE__*/(0,react.memo)(({
|
|
|
48
50
|
showMiniToc,
|
|
49
51
|
onChangeShowMiniToc
|
|
50
52
|
}) => {
|
|
51
|
-
return /*#__PURE__*/react.createElement(ControlsLayout/* ControlsLayout */.
|
|
53
|
+
return /*#__PURE__*/react.createElement(ControlsLayout/* ControlsLayout */.n, {
|
|
52
54
|
controlClassName: 'Control',
|
|
53
|
-
controlSize: models/* ControlSizes
|
|
55
|
+
controlSize: models/* ControlSizes */.Uv.L,
|
|
54
56
|
isWideView: mobileView,
|
|
55
57
|
isMobileView: mobileView
|
|
56
|
-
}, /*#__PURE__*/react.createElement(Controls/* default */.
|
|
58
|
+
}, /*#__PURE__*/react.createElement(Controls/* default */.A, {
|
|
57
59
|
className: 'Controls',
|
|
58
60
|
theme: theme,
|
|
59
61
|
onChangeTheme: onChangeTheme,
|
|
@@ -66,7 +68,15 @@ const HeaderControls = /*#__PURE__*/(0,react.memo)(({
|
|
|
66
68
|
}));
|
|
67
69
|
});
|
|
68
70
|
HeaderControls.displayName = 'HeaderControls';
|
|
71
|
+
;// CONCATENATED MODULE: ./src/constants.ts
|
|
72
|
+
const RTL_LANGS = ['ar', 'arc', 'ckb', 'dv', 'fa', 'ha', 'he', 'khw', 'ks', 'ps', 'sd', 'ur', 'uz_AF', 'yi'];
|
|
73
|
+
let TextDirection = /*#__PURE__*/function (TextDirection) {
|
|
74
|
+
TextDirection["RTL"] = "rtl";
|
|
75
|
+
TextDirection["LTR"] = "ltr";
|
|
76
|
+
return TextDirection;
|
|
77
|
+
}({});
|
|
69
78
|
;// CONCATENATED MODULE: ./src/utils.ts
|
|
79
|
+
|
|
70
80
|
function strToBoolean(str) {
|
|
71
81
|
if (typeof str === 'boolean') {
|
|
72
82
|
return str;
|
|
@@ -81,13 +91,17 @@ function updateRootClassName({
|
|
|
81
91
|
}) {
|
|
82
92
|
document.body.className = ['g-root', mobileView ? 'mobile' : 'desktop', wideFormat && 'dc-root_wide-format', fullHeader && 'dc-root_full-header', theme === 'light' && 'g-root_theme_light', theme === 'dark' && 'g-root_theme_dark'].filter(Boolean).join(' ');
|
|
83
93
|
}
|
|
94
|
+
function getDirection(lang) {
|
|
95
|
+
const isRTL = RTL_LANGS.includes(lang);
|
|
96
|
+
return isRTL ? TextDirection.RTL : TextDirection.LTR;
|
|
97
|
+
}
|
|
84
98
|
// EXTERNAL MODULE: ./node_modules/bem-cn-lite/lib/index.js
|
|
85
|
-
var lib = __webpack_require__(
|
|
99
|
+
var lib = __webpack_require__(3614);
|
|
86
100
|
;// CONCATENATED MODULE: ./src/components/Layout/index.tsx
|
|
87
101
|
|
|
88
102
|
|
|
89
103
|
|
|
90
|
-
const b = (0,lib/* default */.
|
|
104
|
+
const b = (0,lib/* default */.A)('Layout');
|
|
91
105
|
function Header() {
|
|
92
106
|
return null;
|
|
93
107
|
}
|
|
@@ -142,8 +156,8 @@ Layout.Footer = Footer;
|
|
|
142
156
|
|
|
143
157
|
|
|
144
158
|
const DEFAULT_USER_SETTINGS = {
|
|
145
|
-
theme: models/* Theme */.
|
|
146
|
-
textSize: models/* TextSizes */.
|
|
159
|
+
theme: models/* Theme */.Sx.Light,
|
|
160
|
+
textSize: models/* TextSizes */.ov.M,
|
|
147
161
|
showMiniToc: true,
|
|
148
162
|
wideFormat: true,
|
|
149
163
|
fullScreen: false
|
|
@@ -219,15 +233,15 @@ function useMobile() {
|
|
|
219
233
|
return mobileView;
|
|
220
234
|
}
|
|
221
235
|
// EXTERNAL MODULE: ./src/interceptors/leading-page-links.js
|
|
222
|
-
var leading_page_links = __webpack_require__(
|
|
236
|
+
var leading_page_links = __webpack_require__(4186);
|
|
223
237
|
;// CONCATENATED MODULE: external "@diplodoc/transform/dist/js/yfm"
|
|
224
238
|
const yfm_namespaceObject = require("@diplodoc/transform/dist/js/yfm");
|
|
225
239
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/mermaid-extension/react/index.js
|
|
226
|
-
var mermaid_extension_react = __webpack_require__(
|
|
240
|
+
var mermaid_extension_react = __webpack_require__(5905);
|
|
227
241
|
// EXTERNAL MODULE: ./node_modules/@diplodoc/latex-extension/react/index.js
|
|
228
|
-
var latex_extension_react = __webpack_require__(
|
|
229
|
-
// EXTERNAL MODULE: ./node_modules/@diplodoc/openapi-extension/runtime/index.min.js +
|
|
230
|
-
var index_min = __webpack_require__(
|
|
242
|
+
var latex_extension_react = __webpack_require__(358);
|
|
243
|
+
// EXTERNAL MODULE: ./node_modules/@diplodoc/openapi-extension/runtime/index.min.js + 26 modules
|
|
244
|
+
var index_min = __webpack_require__(8432);
|
|
231
245
|
;// CONCATENATED MODULE: ./src/components/App/App.tsx
|
|
232
246
|
|
|
233
247
|
|
|
@@ -243,12 +257,13 @@ var index_min = __webpack_require__(5584);
|
|
|
243
257
|
|
|
244
258
|
|
|
245
259
|
|
|
260
|
+
|
|
246
261
|
function Runtime(props) {
|
|
247
262
|
const {
|
|
248
263
|
theme
|
|
249
264
|
} = props;
|
|
250
|
-
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(index_min/* Runtime */.
|
|
251
|
-
theme: theme === models/* Theme */.
|
|
265
|
+
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(index_min/* Runtime */.v, null), /*#__PURE__*/react.createElement(latex_extension_react/* LatexRuntime */.l, null), /*#__PURE__*/react.createElement(mermaid_extension_react/* MermaidRuntime */.A, {
|
|
266
|
+
theme: theme === models/* Theme */.Sx.Dark ? 'dark' : 'neutral',
|
|
252
267
|
zoom: {
|
|
253
268
|
showMenu: true,
|
|
254
269
|
bindKeys: true
|
|
@@ -260,7 +275,7 @@ function Page(props) {
|
|
|
260
275
|
data,
|
|
261
276
|
...pageProps
|
|
262
277
|
} = props;
|
|
263
|
-
const Page = data.leading ? DocLeadingPage/* DocLeadingPage */.
|
|
278
|
+
const Page = data.leading ? DocLeadingPage/* DocLeadingPage */.sc : DocPage/* default */.A;
|
|
264
279
|
return /*#__PURE__*/react.createElement(Layout, null, /*#__PURE__*/react.createElement(Layout.Content, null, /*#__PURE__*/react.createElement(Page, Object.assign({}, data, pageProps))));
|
|
265
280
|
}
|
|
266
281
|
function isDropdownItem(item) {
|
|
@@ -311,6 +326,7 @@ function App(props) {
|
|
|
311
326
|
fullScreen,
|
|
312
327
|
onChangeFullScreen
|
|
313
328
|
};
|
|
329
|
+
const direction = getDirection(lang);
|
|
314
330
|
(0,react.useEffect)(() => {
|
|
315
331
|
updateRootClassName({
|
|
316
332
|
theme,
|
|
@@ -322,9 +338,12 @@ function App(props) {
|
|
|
322
338
|
if (!navigation) {
|
|
323
339
|
return /*#__PURE__*/react.createElement("div", {
|
|
324
340
|
className: "App"
|
|
341
|
+
}, /*#__PURE__*/react.createElement(ThemeProvider/* ThemeProvider */.N, {
|
|
342
|
+
theme: theme,
|
|
343
|
+
direction: direction
|
|
325
344
|
}, /*#__PURE__*/react.createElement(Page, Object.assign({}, pageProps, settings)), /*#__PURE__*/react.createElement(Runtime, {
|
|
326
345
|
theme: theme
|
|
327
|
-
}));
|
|
346
|
+
})));
|
|
328
347
|
}
|
|
329
348
|
const {
|
|
330
349
|
header = {},
|
|
@@ -337,9 +356,12 @@ function App(props) {
|
|
|
337
356
|
const headerWithControls = rightItems.some(item => item.type === 'controls');
|
|
338
357
|
return /*#__PURE__*/react.createElement("div", {
|
|
339
358
|
className: "App"
|
|
340
|
-
}, /*#__PURE__*/react.createElement(
|
|
359
|
+
}, /*#__PURE__*/react.createElement(ThemeProvider/* ThemeProvider */.N, {
|
|
360
|
+
theme: theme,
|
|
361
|
+
direction: direction
|
|
362
|
+
}, /*#__PURE__*/react.createElement(Provider/* PageConstructorProvider */.Z, {
|
|
341
363
|
theme: theme
|
|
342
|
-
}, /*#__PURE__*/react.createElement(PageConstructor/* PageConstructor */.
|
|
364
|
+
}, /*#__PURE__*/react.createElement(PageConstructor/* PageConstructor */.i, {
|
|
343
365
|
custom: {
|
|
344
366
|
navigation: {
|
|
345
367
|
controls: () => /*#__PURE__*/react.createElement(HeaderControls, Object.assign({}, settings, {
|
|
@@ -363,7 +385,7 @@ function App(props) {
|
|
|
363
385
|
},
|
|
364
386
|
logo
|
|
365
387
|
} : undefined
|
|
366
|
-
})), /*#__PURE__*/react.createElement(Runtime, {
|
|
388
|
+
}))), /*#__PURE__*/react.createElement(Runtime, {
|
|
367
389
|
theme: theme
|
|
368
390
|
}));
|
|
369
391
|
}
|
|
@@ -371,11 +393,11 @@ function App(props) {
|
|
|
371
393
|
|
|
372
394
|
|
|
373
395
|
|
|
374
|
-
const render = props => (0,server_node/* renderToString */.
|
|
396
|
+
const render = props => (0,server_node/* renderToString */.F0)( /*#__PURE__*/react.createElement(App, props));
|
|
375
397
|
|
|
376
398
|
/***/ }),
|
|
377
399
|
|
|
378
|
-
/***/
|
|
400
|
+
/***/ 4186:
|
|
379
401
|
/***/ (() => {
|
|
380
402
|
|
|
381
403
|
(function () {
|
|
@@ -426,18 +448,18 @@ const render = props => (0,server_node/* renderToString */.Dq)( /*#__PURE__*/rea
|
|
|
426
448
|
|
|
427
449
|
/***/ }),
|
|
428
450
|
|
|
429
|
-
/***/
|
|
451
|
+
/***/ 7040:
|
|
430
452
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
431
453
|
|
|
432
454
|
"use strict";
|
|
433
455
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
434
|
-
/* harmony export */
|
|
456
|
+
/* harmony export */ A: () => (/* export default binding */ __WEBPACK_DEFAULT_EXPORT__)
|
|
435
457
|
/* harmony export */ });
|
|
436
458
|
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__() {}
|
|
437
459
|
|
|
438
460
|
/***/ }),
|
|
439
461
|
|
|
440
|
-
/***/
|
|
462
|
+
/***/ 6982:
|
|
441
463
|
/***/ ((module) => {
|
|
442
464
|
|
|
443
465
|
"use strict";
|
|
@@ -445,7 +467,7 @@ module.exports = require("crypto");
|
|
|
445
467
|
|
|
446
468
|
/***/ }),
|
|
447
469
|
|
|
448
|
-
/***/
|
|
470
|
+
/***/ 2203:
|
|
449
471
|
/***/ ((module) => {
|
|
450
472
|
|
|
451
473
|
"use strict";
|
|
@@ -453,7 +475,7 @@ module.exports = require("stream");
|
|
|
453
475
|
|
|
454
476
|
/***/ }),
|
|
455
477
|
|
|
456
|
-
/***/
|
|
478
|
+
/***/ 7016:
|
|
457
479
|
/***/ ((module) => {
|
|
458
480
|
|
|
459
481
|
"use strict";
|
|
@@ -461,7 +483,7 @@ module.exports = require("url");
|
|
|
461
483
|
|
|
462
484
|
/***/ }),
|
|
463
485
|
|
|
464
|
-
/***/
|
|
486
|
+
/***/ 9023:
|
|
465
487
|
/***/ ((module) => {
|
|
466
488
|
|
|
467
489
|
"use strict";
|
|
@@ -505,7 +527,7 @@ module.exports = require("util");
|
|
|
505
527
|
/******/ __webpack_require__.x = () => {
|
|
506
528
|
/******/ // Load entry module and return exports
|
|
507
529
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
508
|
-
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [
|
|
530
|
+
/******/ var __webpack_exports__ = __webpack_require__.O(undefined, [644,121], () => (__webpack_require__(5048)))
|
|
509
531
|
/******/ __webpack_exports__ = __webpack_require__.O(__webpack_exports__);
|
|
510
532
|
/******/ return __webpack_exports__;
|
|
511
533
|
/******/ };
|
|
@@ -590,7 +612,7 @@ module.exports = require("util");
|
|
|
590
612
|
/******/ // This function allow to reference async chunks and sibling chunks for the entrypoint
|
|
591
613
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
592
614
|
/******/ // return url for filenames based on template
|
|
593
|
-
/******/ return "" + {"
|
|
615
|
+
/******/ return "" + {"121":"vendor","644":"react"}[chunkId] + ".js";
|
|
594
616
|
/******/ };
|
|
595
617
|
/******/ })();
|
|
596
618
|
/******/
|
|
@@ -640,7 +662,7 @@ module.exports = require("util");
|
|
|
640
662
|
/******/ // object to store loaded chunks
|
|
641
663
|
/******/ // "1" means "loaded", otherwise not loaded yet
|
|
642
664
|
/******/ var installedChunks = {
|
|
643
|
-
/******/
|
|
665
|
+
/******/ 524: 1
|
|
644
666
|
/******/ };
|
|
645
667
|
/******/
|
|
646
668
|
/******/ __webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);
|
|
@@ -679,8 +701,8 @@ module.exports = require("util");
|
|
|
679
701
|
/******/ (() => {
|
|
680
702
|
/******/ var next = __webpack_require__.x;
|
|
681
703
|
/******/ __webpack_require__.x = () => {
|
|
682
|
-
/******/ __webpack_require__.e(
|
|
683
|
-
/******/ __webpack_require__.e(
|
|
704
|
+
/******/ __webpack_require__.e(644);
|
|
705
|
+
/******/ __webpack_require__.e(121);
|
|
684
706
|
/******/ return next();
|
|
685
707
|
/******/ };
|
|
686
708
|
/******/ })();
|
package/build/server/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAkC;AAE4D;;AAE9F;;AAgBO,MAAMK,cAAc,gBAAGJ,cAAI,CAC9B,CAAC;EACGK,UAAU;EAEVC,KAAK;EACLC,aAAa;EAEbC,QAAQ;EACRC,gBAAgB;EAEhBC,UAAU;EACVC,kBAAkB;EAElBC,WAAW;EACXC;AACJ,CAAC,KAAK;EACF,oBACId,mBAAA,CAACI,oCAAc;IACXY,gBAAgB,EAAE,SAAU;IAC5BC,WAAW,EAAEf,2BAAY,CAACgB,CAAE;IAC5BC,UAAU,EAAEb,UAAW;IACvBc,YAAY,EAAEd;EAAW,gBAEzBN,mBAAA,CAACG,uBAAQ;IACLkB,SAAS,EAAE,UAAW;IACtBd,KAAK,EAAEA,KAAM;IACbC,aAAa,EAAEA,aAAc;IAC7BG,UAAU,E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ACA;UACA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;;UAEA;UACA;;UAEA;UACA;UACA;UACA;UACA;UACA;UACA;UACA;;;;;WCrCA;;;;;WCAA;WACA;WACA;WACA;WACA,+BAA+B,wCAAwC;WACvE;WACA;WACA;WACA;WACA,iBAAiB,qBAAqB;WACtC;WACA;WACA,kBAAkB,qBAAqB;WACvC;WACA;WACA,KAAK;WACL;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;;;WC3BA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA,cAAc,6BAA6B;WAC3C;;;;;WCJA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,gBAAgB,qBAAqB;WACrC;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA,aAAa;WACb;WACA,IAAI;WACJ;WACA;;WAEA;;WAEA;;WAEA;;;;;WCrCA;WACA;WACA;WACA;WACA;WACA;;;;;UELA;UACA","sources":["webpack://@diplodoc/client/./src/components/HeaderControls/index.tsx","webpack://@diplodoc/client/./src/utils.ts","webpack://@diplodoc/client/./src/components/Layout/index.tsx","webpack://@diplodoc/client/./src/hooks/useSettings.ts","webpack://@diplodoc/client/./src/hooks/useMobile.ts","webpack://@diplodoc/client/external commonjs2 \"@diplodoc/transform/dist/js/yfm\"","webpack://@diplodoc/client/./src/components/App/App.tsx","webpack://@diplodoc/client/./src/index.server.tsx","webpack://@diplodoc/client/./src/interceptors/leading-page-links.js","webpack://@diplodoc/client/./src/stub/empty-module.js","webpack://@diplodoc/client/external node-commonjs \"crypto\"","webpack://@diplodoc/client/external node-commonjs \"stream\"","webpack://@diplodoc/client/external node-commonjs \"url\"","webpack://@diplodoc/client/external node-commonjs \"util\"","webpack://@diplodoc/client/webpack/bootstrap","webpack://@diplodoc/client/webpack/runtime/amd options","webpack://@diplodoc/client/webpack/runtime/chunk loaded","webpack://@diplodoc/client/webpack/runtime/compat get default export","webpack://@diplodoc/client/webpack/runtime/define property getters","webpack://@diplodoc/client/webpack/runtime/ensure chunk","webpack://@diplodoc/client/webpack/runtime/get javascript chunk filename","webpack://@diplodoc/client/webpack/runtime/get mini-css chunk filename","webpack://@diplodoc/client/webpack/runtime/hasOwnProperty shorthand","webpack://@diplodoc/client/webpack/runtime/make namespace object","webpack://@diplodoc/client/webpack/runtime/node module decorator","webpack://@diplodoc/client/webpack/runtime/publicPath","webpack://@diplodoc/client/webpack/runtime/require chunk loading","webpack://@diplodoc/client/webpack/runtime/startup chunk dependencies","webpack://@diplodoc/client/webpack/before-startup","webpack://@diplodoc/client/webpack/startup","webpack://@diplodoc/client/webpack/after-startup"],"sourcesContent":["import React, {memo} from 'react';\n\nimport {ControlSizes, Controls, ControlsLayout, TextSizes, Theme} from '@diplodoc/components';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OnChangeCallback = (value: any) => void;\n\ntype Props = {\n mobileView: boolean;\n\n theme: Theme;\n onChangeTheme: OnChangeCallback;\n textSize: TextSizes;\n onChangeTextSize: OnChangeCallback;\n wideFormat: boolean;\n onChangeWideFormat: OnChangeCallback;\n showMiniToc: boolean;\n onChangeShowMiniToc: OnChangeCallback;\n};\n\nexport const HeaderControls = memo<Props>(\n ({\n mobileView,\n\n theme,\n onChangeTheme,\n\n textSize,\n onChangeTextSize,\n\n wideFormat,\n onChangeWideFormat,\n\n showMiniToc,\n onChangeShowMiniToc,\n }) => {\n return (\n <ControlsLayout\n controlClassName={'Control'}\n controlSize={ControlSizes.L}\n isWideView={mobileView}\n isMobileView={mobileView}\n >\n <Controls\n className={'Controls'}\n theme={theme}\n onChangeTheme={onChangeTheme}\n wideFormat={wideFormat}\n onChangeWideFormat={onChangeWideFormat}\n showMiniToc={showMiniToc}\n onChangeShowMiniToc={onChangeShowMiniToc}\n textSize={textSize}\n onChangeTextSize={onChangeTextSize}\n />\n </ControlsLayout>\n );\n },\n);\n\nHeaderControls.displayName = 'HeaderControls';\n","import {Theme} from '@diplodoc/components';\n\nexport function strToBoolean(str: string | boolean) {\n if (typeof str === 'boolean') {\n return str;\n }\n\n return str ? str === 'true' : false;\n}\n\nexport function updateRootClassName({\n theme,\n mobileView = false,\n wideFormat = false,\n fullHeader = false,\n}: {\n theme: Theme;\n mobileView: boolean;\n wideFormat: boolean;\n fullHeader: boolean;\n}) {\n document.body.className = [\n 'g-root',\n mobileView ? 'mobile' : 'desktop',\n wideFormat && 'dc-root_wide-format',\n fullHeader && 'dc-root_full-header',\n theme === 'light' && 'g-root_theme_light',\n theme === 'dark' && 'g-root_theme_dark',\n ]\n .filter(Boolean)\n .join(' ');\n}\n","import React, {FC, PropsWithChildren, ReactElement} from 'react';\nimport block from 'bem-cn-lite';\n\nimport './Layout.scss';\n\nconst b = block('Layout');\n\nfunction Header() {\n return null;\n}\n\nfunction Content() {\n return null;\n}\n\nfunction Footer() {\n return null;\n}\n\ntype LayoutStatics = {\n Header: FC<PropsWithChildren>;\n Content: FC<PropsWithChildren>;\n Footer: FC<PropsWithChildren>;\n};\n\nexport const Layout: LayoutStatics & FC<PropsWithChildren<{doc?: boolean}>> = (props) => {\n const {children, doc} = props;\n let header, content, footer;\n\n React.Children.forEach(children as ReactElement[], (child: ReactElement) => {\n switch (child.type) {\n case Header:\n header = child.props.children;\n break;\n case Content:\n content = child.props.children;\n break;\n case Footer:\n footer = child.props.children;\n break;\n }\n });\n\n return (\n <div className={b()}>\n {header && <div className={b('header')}>{header}</div>}\n <div className={b('body')}>\n {content && <div className={b('content')}>{content}</div>}\n {footer && <div className={b('footer', {doc})}>{footer}</div>}\n </div>\n </div>\n );\n};\n\nLayout.displayName = 'Layout';\n\nLayout.defaultProps = {\n doc: false,\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\n","import {strToBoolean} from '../utils';\nimport {useState} from 'react';\n\nimport {TextSizes, Theme} from '@diplodoc/components';\n\nconst DEFAULT_USER_SETTINGS = {\n theme: Theme.Light,\n textSize: TextSizes.M,\n showMiniToc: true,\n wideFormat: true,\n fullScreen: false,\n};\n\nexport function useSettings() {\n const settings = getSettings();\n\n const [wideFormat, setWideFormat] = useState(settings.wideFormat);\n const [fullScreen, setFullScreen] = useState(settings.fullScreen);\n const [showMiniToc, setShowMiniToc] = useState(settings.showMiniToc);\n const [theme, setTheme] = useState(settings.theme);\n const [textSize, setTextSize] = useState(settings.textSize);\n\n return {\n theme,\n onChangeTheme: withSavingSetting('theme', setTheme),\n textSize,\n onChangeTextSize: withSavingSetting('textSize', setTextSize),\n wideFormat,\n onChangeWideFormat: withSavingSetting('wideFormat', setWideFormat),\n showMiniToc,\n onChangeShowMiniToc: withSavingSetting('showMiniToc', setShowMiniToc),\n fullScreen,\n onChangeFullScreen: withSavingSetting('fullScreen', setFullScreen),\n };\n}\n\nfunction getSettings() {\n const theme = getSetting('theme');\n const textSize = getSetting('textSize');\n const showMiniToc = getSetting('showMiniToc');\n const wideFormat = getSetting('wideFormat');\n const fullScreen = getSetting('fullScreen');\n\n return {\n theme,\n textSize,\n showMiniToc: strToBoolean(showMiniToc),\n wideFormat: strToBoolean(wideFormat),\n fullScreen: strToBoolean(fullScreen),\n };\n}\n\ntype TSettings = typeof DEFAULT_USER_SETTINGS;\n\nfunction getSetting<T extends keyof TSettings>(name: T): TSettings[T] {\n if (typeof sessionStorage === 'undefined') {\n return DEFAULT_USER_SETTINGS[name];\n }\n\n try {\n return (sessionStorage.getItem(name) as TSettings[T]) || DEFAULT_USER_SETTINGS[name];\n } catch {\n return DEFAULT_USER_SETTINGS[name];\n }\n}\n\nfunction setSetting<T>(name: string, value: T) {\n try {\n sessionStorage.setItem(name, String(value));\n } catch {}\n}\n\nfunction withSavingSetting<T>(settingName: string, onChange: (value: T) => void) {\n return (value: T) => {\n setSetting<T>(settingName, value);\n\n onChange(value);\n };\n}\n","import {useCallback, useEffect, useState} from 'react';\n\nconst MOBILE_VIEW_WIDTH_BREAKPOINT = 769;\n\nexport function useMobile() {\n const [mobileView, setMobileView] = useState<boolean>(\n typeof document !== 'undefined' && document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT,\n );\n\n const onResizeHandler = useCallback(() => {\n setMobileView(document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT);\n }, []);\n\n useEffect(onResizeHandler, [onResizeHandler]);\n\n useEffect(() => {\n window.addEventListener('resize', onResizeHandler);\n\n return () => window.removeEventListener('resize', onResizeHandler);\n }, [onResizeHandler]);\n\n return mobileView;\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@diplodoc/transform/dist/js/yfm\");","import React, {ReactElement, useEffect} from 'react';\n\nimport {\n NavigationData,\n NavigationDropdownItem,\n NavigationItemModel,\n PageConstructor,\n PageConstructorProvider,\n} from '@gravity-ui/page-constructor';\nimport {\n DocLeadingPage,\n DocLeadingPageData,\n DocPage,\n DocPageData,\n Lang,\n Router,\n Theme,\n} from '@diplodoc/components';\nimport {HeaderControls} from '../HeaderControls';\nimport {updateRootClassName} from '../../utils';\nimport {Layout} from '../Layout';\nimport {useSettings} from '../../hooks/useSettings';\nimport {useMobile} from '../../hooks/useMobile';\n\nimport '../../interceptors/leading-page-links';\n\nimport '@diplodoc/transform/dist/js/yfm';\nimport {MermaidRuntime} from '@diplodoc/mermaid-extension/react';\nimport {LatexRuntime} from '@diplodoc/latex-extension/react';\nimport {Runtime as OpenapiSandbox} from '@diplodoc/openapi-extension/runtime';\n\nimport './App.scss';\n\nexport interface AppProps {\n lang: Lang;\n router: Router;\n}\n\nexport type DocInnerProps<Data = DocLeadingPageData | DocPageData> = {\n data: Data;\n} & AppProps;\n\nexport type {DocLeadingPageData, DocPageData};\n\ntype RuntimeProps = {\n theme: Theme;\n};\n\nfunction Runtime(props: RuntimeProps) {\n const {theme} = props;\n\n return (\n <>\n <OpenapiSandbox />\n <LatexRuntime />\n <MermaidRuntime\n theme={theme === Theme.Dark ? 'dark' : 'neutral'}\n zoom={{\n showMenu: true,\n bindKeys: true,\n }}\n />\n </>\n );\n}\n\nfunction Page(props: DocInnerProps) {\n const {data, ...pageProps} = props;\n\n const Page = data.leading ? DocLeadingPage : DocPage;\n\n return (\n <Layout>\n <Layout.Content>\n {/*@ts-ignore*/}\n <Page {...data} {...pageProps} />\n </Layout.Content>\n </Layout>\n );\n}\n\nfunction isDropdownItem(item: NavigationItemModel): item is NavigationDropdownItem {\n return Array.isArray((item as NavigationDropdownItem).items);\n}\n\nfunction rebaseNavItem<T extends NavigationItemModel>(item: T) {\n const result: T = {...item};\n\n if (isDropdownItem(item)) {\n (result as NavigationDropdownItem).items = item.items.map(rebaseNavItem);\n }\n\n if (item.url !== undefined) {\n result.url = item.url.replace(/^\\/?/, '/');\n }\n\n return result;\n}\n\ntype TocData = DocPageData['toc'] & {\n navigation?: NavigationData;\n};\n\nexport function App(props: DocInnerProps): ReactElement {\n const {data, router, lang} = props;\n const {navigation} = data.toc as TocData;\n\n const settings = useSettings();\n const mobileView = useMobile();\n\n const {theme, textSize, wideFormat, fullScreen, showMiniToc, onChangeFullScreen} = settings;\n const fullHeader = !fullScreen && Boolean(navigation);\n const headerHeight = fullHeader ? 64 : 0;\n const pageProps = {\n headerHeight,\n data,\n router,\n lang,\n wideFormat,\n showMiniToc,\n theme,\n textSize,\n fullScreen,\n onChangeFullScreen,\n };\n\n useEffect(() => {\n updateRootClassName({\n theme,\n mobileView,\n wideFormat,\n fullHeader,\n });\n }, [theme, mobileView, wideFormat, fullHeader]);\n\n if (!navigation) {\n return (\n <div className=\"App\">\n <Page {...pageProps} {...settings} />\n <Runtime theme={theme} />\n </div>\n );\n }\n\n const {header = {}, logo} = navigation;\n const {leftItems = [], rightItems = []} = header as NavigationData['header'];\n const headerWithControls = rightItems.some((item: {type: string}) => item.type === 'controls');\n\n return (\n <div className=\"App\">\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n navigation: {\n controls: () => (\n <HeaderControls {...settings} mobileView={mobileView} />\n ),\n },\n blocks: {\n page: () => (\n <Page {...pageProps} {...(headerWithControls ? {} : settings)} />\n ),\n },\n }}\n content={{\n blocks: [\n {\n type: 'page',\n },\n ],\n }}\n navigation={\n fullHeader\n ? {\n header: {\n withBorder: true,\n leftItems: leftItems.map(rebaseNavItem),\n rightItems: rightItems.map(rebaseNavItem),\n },\n logo,\n }\n : undefined\n }\n />\n </PageConstructorProvider>\n <Runtime theme={theme} />\n </div>\n );\n}\n","import React from 'react';\nimport {renderToString} from 'react-dom/server';\n\nimport {App, DocInnerProps, DocLeadingPageData, DocPageData} from './components/App/App';\n\nexport type {DocInnerProps, DocPageData, DocLeadingPageData};\n\nexport const render = (props: DocInnerProps) => renderToString(<App {...props} />);\n","(function () {\n /**\n * Element.matches() polyfill.\n * @link https://developer.mozilla.org/ru/docs/Web/API/Element/matches\n */\n if (typeof Element !== 'undefined') {\n (function (e) {\n const matches =\n e.matches ||\n e.matchesSelector ||\n e.webkitMatchesSelector ||\n e.mozMatchesSelector ||\n e.msMatchesSelector ||\n e.oMatchesSelector;\n\n if (matches) {\n e.matches = e.matchesSelector = matches;\n } else {\n e.matches = e.matchesSelector = function (selector) {\n const th = this;\n return Array.prototype.some.call(document.querySelectorAll(selector), (el) => {\n return el === th;\n });\n };\n }\n })(Element.prototype);\n }\n\n if (typeof document !== 'undefined') {\n document.addEventListener('click', (event) => {\n const href = event.target.href;\n const locationOrigin = window.location.origin;\n\n if (\n event.target.matches('.dc-doc-layout__center a') &&\n href.startsWith(locationOrigin)\n ) {\n event.preventDefault();\n\n const mainFileName = 'index';\n const extention = '.html';\n\n if (href.endsWith('/')) {\n window.location.href = `${href}${mainFileName}${extention}`;\n return;\n }\n\n // https://../file-name, https://../file-name#fragment\n const splitedHref = href.split('#');\n if (splitedHref.length > 0 && !splitedHref[0].endsWith(extention)) {\n splitedHref[0] += extention;\n window.location.href = splitedHref.join('#');\n return;\n }\n\n window.location.href = href;\n }\n });\n }\n})();\n","export default function () {}\n","module.exports = require(\"crypto\");","module.exports = require(\"stream\");","module.exports = require(\"url\");","module.exports = require(\"util\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [514,736], () => (__webpack_require__(2722)))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + {\"514\":\"react\",\"736\":\"vendor\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"loaded\", otherwise not loaded yet\nvar installedChunks = {\n\t143: 1\n};\n\n__webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);\n\nvar installChunk = (chunk) => {\n\tvar moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\tfor(var i = 0; i < chunkIds.length; i++)\n\t\tinstalledChunks[chunkIds[i]] = 1;\n\t__webpack_require__.O();\n};\n\n// require() chunk loading for javascript\n__webpack_require__.f.require = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\tinstallChunk(require(\"./\" + __webpack_require__.u(chunkId)));\n\t\t} else installedChunks[chunkId] = 1;\n\t}\n};\n\n// no external install chunk\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\t__webpack_require__.e(514);\n\t__webpack_require__.e(736);\n\treturn next();\n};","","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n",""],"names":["React","memo","ControlSizes","Controls","ControlsLayout","HeaderControls","mobileView","theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","createElement","controlClassName","controlSize","L","isWideView","isMobileView","className","displayName","strToBoolean","str","updateRootClassName","fullHeader","document","body","filter","Boolean","join","block","b","Header","Content","Footer","Layout","props","children","doc","header","content","footer","Children","forEach","child","type","defaultProps","useState","TextSizes","Theme","DEFAULT_USER_SETTINGS","Light","M","fullScreen","useSettings","settings","getSettings","setWideFormat","setFullScreen","setShowMiniToc","setTheme","setTextSize","withSavingSetting","onChangeFullScreen","getSetting","name","sessionStorage","getItem","setSetting","value","setItem","String","settingName","onChange","useCallback","useEffect","MOBILE_VIEW_WIDTH_BREAKPOINT","useMobile","setMobileView","clientWidth","onResizeHandler","window","addEventListener","removeEventListener","PageConstructor","PageConstructorProvider","DocLeadingPage","DocPage","MermaidRuntime","LatexRuntime","Runtime","OpenapiSandbox","Fragment","Dark","zoom","showMenu","bindKeys","Page","data","pageProps","leading","Object","assign","isDropdownItem","item","Array","isArray","items","rebaseNavItem","result","map","url","undefined","replace","App","router","lang","navigation","toc","headerHeight","logo","leftItems","rightItems","headerWithControls","some","custom","controls","blocks","page","withBorder","renderToString","render","Element","e","matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","selector","th","prototype","call","querySelectorAll","el","event","href","target","locationOrigin","location","origin","startsWith","preventDefault","mainFileName","extention","endsWith","splitedHref","split","length"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"app.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAkC;AAE4D;;AAE9F;;AAgBO,MAAMK,cAAc,gBAAGJ,cAAI,CAC9B,CAAC;EACGK,UAAU;EAEVC,KAAK;EACLC,aAAa;EAEbC,QAAQ;EACRC,gBAAgB;EAEhBC,UAAU;EACVC,kBAAkB;EAElBC,WAAW;EACXC;AACJ,CAAC,KAAK;EACF,oBACId,mBAAA,CAACI,oCAAc;IACXY,gBAAgB,EAAE,SAAU;IAC5BC,WAAW,EAAEf,2BAAY,CAACgB,CAAE;IAC5BC,UAAU,EAAEb,UAAW;IACvBc,YAAY,EAAEd;EAAW,gBAEzBN,mBAAA,CAACG,u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WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,EAAE;WACF;;;;;WCRA;WACA;WACA;WACA,cAAc,6BAA6B;WAC3C;;;;;WCJA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;WCNA;WACA;WACA;WACA;WACA;;;;;WCJA;;;;;WCAA;;WAEA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,gBAAgB,qBAAqB;WACrC;WACA;WACA;;WAEA;WACA;WACA;WACA;WACA,aAAa;WACb;WACA,IAAI;WACJ;WACA;;WAEA;;WAEA;;WAEA;;;;;WCrCA;WACA;WACA;WACA;WACA;WACA;;;;;UELA;UACA","sources":["webpack://@diplodoc/client/./src/components/HeaderControls/index.tsx","webpack://@diplodoc/client/./src/constants.ts","webpack://@diplodoc/client/./src/utils.ts","webpack://@diplodoc/client/./src/components/Layout/index.tsx","webpack://@diplodoc/client/./src/hooks/useSettings.ts","webpack://@diplodoc/client/./src/hooks/useMobile.ts","webpack://@diplodoc/client/external commonjs2 \"@diplodoc/transform/dist/js/yfm\"","webpack://@diplodoc/client/./src/components/App/App.tsx","webpack://@diplodoc/client/./src/index.server.tsx","webpack://@diplodoc/client/./src/interceptors/leading-page-links.js","webpack://@diplodoc/client/./src/stub/empty-module.js","webpack://@diplodoc/client/external node-commonjs \"crypto\"","webpack://@diplodoc/client/external node-commonjs \"stream\"","webpack://@diplodoc/client/external node-commonjs \"url\"","webpack://@diplodoc/client/external node-commonjs \"util\"","webpack://@diplodoc/client/webpack/bootstrap","webpack://@diplodoc/client/webpack/runtime/amd options","webpack://@diplodoc/client/webpack/runtime/chunk loaded","webpack://@diplodoc/client/webpack/runtime/compat get default export","webpack://@diplodoc/client/webpack/runtime/define property getters","webpack://@diplodoc/client/webpack/runtime/ensure chunk","webpack://@diplodoc/client/webpack/runtime/get javascript chunk filename","webpack://@diplodoc/client/webpack/runtime/get mini-css chunk filename","webpack://@diplodoc/client/webpack/runtime/hasOwnProperty shorthand","webpack://@diplodoc/client/webpack/runtime/make namespace object","webpack://@diplodoc/client/webpack/runtime/node module decorator","webpack://@diplodoc/client/webpack/runtime/publicPath","webpack://@diplodoc/client/webpack/runtime/require chunk loading","webpack://@diplodoc/client/webpack/runtime/startup chunk dependencies","webpack://@diplodoc/client/webpack/before-startup","webpack://@diplodoc/client/webpack/startup","webpack://@diplodoc/client/webpack/after-startup"],"sourcesContent":["import React, {memo} from 'react';\n\nimport {ControlSizes, Controls, ControlsLayout, TextSizes, Theme} from '@diplodoc/components';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype OnChangeCallback = (value: any) => void;\n\ntype Props = {\n mobileView: boolean;\n\n theme: Theme;\n onChangeTheme: OnChangeCallback;\n textSize: TextSizes;\n onChangeTextSize: OnChangeCallback;\n wideFormat: boolean;\n onChangeWideFormat: OnChangeCallback;\n showMiniToc: boolean;\n onChangeShowMiniToc: OnChangeCallback;\n};\n\nexport const HeaderControls = memo<Props>(\n ({\n mobileView,\n\n theme,\n onChangeTheme,\n\n textSize,\n onChangeTextSize,\n\n wideFormat,\n onChangeWideFormat,\n\n showMiniToc,\n onChangeShowMiniToc,\n }) => {\n return (\n <ControlsLayout\n controlClassName={'Control'}\n controlSize={ControlSizes.L}\n isWideView={mobileView}\n isMobileView={mobileView}\n >\n <Controls\n className={'Controls'}\n theme={theme}\n onChangeTheme={onChangeTheme}\n wideFormat={wideFormat}\n onChangeWideFormat={onChangeWideFormat}\n showMiniToc={showMiniToc}\n onChangeShowMiniToc={onChangeShowMiniToc}\n textSize={textSize}\n onChangeTextSize={onChangeTextSize}\n />\n </ControlsLayout>\n );\n },\n);\n\nHeaderControls.displayName = 'HeaderControls';\n","export const RTL_LANGS = [\n 'ar',\n 'arc',\n 'ckb',\n 'dv',\n 'fa',\n 'ha',\n 'he',\n 'khw',\n 'ks',\n 'ps',\n 'sd',\n 'ur',\n 'uz_AF',\n 'yi',\n];\n\nexport enum TextDirection {\n RTL = 'rtl',\n LTR = 'ltr',\n}\n","import {Lang, Theme} from '@diplodoc/components';\nimport {RTL_LANGS, TextDirection} from './constants';\n\nexport function strToBoolean(str: string | boolean) {\n if (typeof str === 'boolean') {\n return str;\n }\n\n return str ? str === 'true' : false;\n}\n\nexport function updateRootClassName({\n theme,\n mobileView = false,\n wideFormat = false,\n fullHeader = false,\n}: {\n theme: Theme;\n mobileView: boolean;\n wideFormat: boolean;\n fullHeader: boolean;\n}) {\n document.body.className = [\n 'g-root',\n mobileView ? 'mobile' : 'desktop',\n wideFormat && 'dc-root_wide-format',\n fullHeader && 'dc-root_full-header',\n theme === 'light' && 'g-root_theme_light',\n theme === 'dark' && 'g-root_theme_dark',\n ]\n .filter(Boolean)\n .join(' ');\n}\n\nexport function getDirection(lang: Lang): TextDirection {\n const isRTL = RTL_LANGS.includes(lang);\n\n return isRTL ? TextDirection.RTL : TextDirection.LTR;\n}\n","import React, {FC, PropsWithChildren, ReactElement} from 'react';\nimport block from 'bem-cn-lite';\n\nimport './Layout.scss';\n\nconst b = block('Layout');\n\nfunction Header() {\n return null;\n}\n\nfunction Content() {\n return null;\n}\n\nfunction Footer() {\n return null;\n}\n\ntype LayoutStatics = {\n Header: FC<PropsWithChildren>;\n Content: FC<PropsWithChildren>;\n Footer: FC<PropsWithChildren>;\n};\n\nexport const Layout: LayoutStatics & FC<PropsWithChildren<{doc?: boolean}>> = (props) => {\n const {children, doc} = props;\n let header, content, footer;\n\n React.Children.forEach(children as ReactElement[], (child: ReactElement) => {\n switch (child.type) {\n case Header:\n header = child.props.children;\n break;\n case Content:\n content = child.props.children;\n break;\n case Footer:\n footer = child.props.children;\n break;\n }\n });\n\n return (\n <div className={b()}>\n {header && <div className={b('header')}>{header}</div>}\n <div className={b('body')}>\n {content && <div className={b('content')}>{content}</div>}\n {footer && <div className={b('footer', {doc})}>{footer}</div>}\n </div>\n </div>\n );\n};\n\nLayout.displayName = 'Layout';\n\nLayout.defaultProps = {\n doc: false,\n};\n\nLayout.Header = Header;\nLayout.Content = Content;\nLayout.Footer = Footer;\n","import {strToBoolean} from '../utils';\nimport {useState} from 'react';\n\nimport {TextSizes, Theme} from '@diplodoc/components';\n\nconst DEFAULT_USER_SETTINGS = {\n theme: Theme.Light,\n textSize: TextSizes.M,\n showMiniToc: true,\n wideFormat: true,\n fullScreen: false,\n};\n\nexport function useSettings() {\n const settings = getSettings();\n\n const [wideFormat, setWideFormat] = useState(settings.wideFormat);\n const [fullScreen, setFullScreen] = useState(settings.fullScreen);\n const [showMiniToc, setShowMiniToc] = useState(settings.showMiniToc);\n const [theme, setTheme] = useState(settings.theme);\n const [textSize, setTextSize] = useState(settings.textSize);\n\n return {\n theme,\n onChangeTheme: withSavingSetting('theme', setTheme),\n textSize,\n onChangeTextSize: withSavingSetting('textSize', setTextSize),\n wideFormat,\n onChangeWideFormat: withSavingSetting('wideFormat', setWideFormat),\n showMiniToc,\n onChangeShowMiniToc: withSavingSetting('showMiniToc', setShowMiniToc),\n fullScreen,\n onChangeFullScreen: withSavingSetting('fullScreen', setFullScreen),\n };\n}\n\nfunction getSettings() {\n const theme = getSetting('theme');\n const textSize = getSetting('textSize');\n const showMiniToc = getSetting('showMiniToc');\n const wideFormat = getSetting('wideFormat');\n const fullScreen = getSetting('fullScreen');\n\n return {\n theme,\n textSize,\n showMiniToc: strToBoolean(showMiniToc),\n wideFormat: strToBoolean(wideFormat),\n fullScreen: strToBoolean(fullScreen),\n };\n}\n\ntype TSettings = typeof DEFAULT_USER_SETTINGS;\n\nfunction getSetting<T extends keyof TSettings>(name: T): TSettings[T] {\n if (typeof sessionStorage === 'undefined') {\n return DEFAULT_USER_SETTINGS[name];\n }\n\n try {\n return (sessionStorage.getItem(name) as TSettings[T]) || DEFAULT_USER_SETTINGS[name];\n } catch {\n return DEFAULT_USER_SETTINGS[name];\n }\n}\n\nfunction setSetting<T>(name: string, value: T) {\n try {\n sessionStorage.setItem(name, String(value));\n } catch {}\n}\n\nfunction withSavingSetting<T>(settingName: string, onChange: (value: T) => void) {\n return (value: T) => {\n setSetting<T>(settingName, value);\n\n onChange(value);\n };\n}\n","import {useCallback, useEffect, useState} from 'react';\n\nconst MOBILE_VIEW_WIDTH_BREAKPOINT = 769;\n\nexport function useMobile() {\n const [mobileView, setMobileView] = useState<boolean>(\n typeof document !== 'undefined' && document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT,\n );\n\n const onResizeHandler = useCallback(() => {\n setMobileView(document.body.clientWidth < MOBILE_VIEW_WIDTH_BREAKPOINT);\n }, []);\n\n useEffect(onResizeHandler, [onResizeHandler]);\n\n useEffect(() => {\n window.addEventListener('resize', onResizeHandler);\n\n return () => window.removeEventListener('resize', onResizeHandler);\n }, [onResizeHandler]);\n\n return mobileView;\n}\n","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@diplodoc/transform/dist/js/yfm\");","import React, {ReactElement, useEffect} from 'react';\n\nimport {\n NavigationData,\n NavigationDropdownItem,\n NavigationItemModel,\n PageConstructor,\n PageConstructorProvider,\n} from '@gravity-ui/page-constructor';\nimport {ThemeProvider} from '@gravity-ui/uikit';\nimport {\n DocLeadingPage,\n DocLeadingPageData,\n DocPage,\n DocPageData,\n Lang,\n Router,\n Theme,\n} from '@diplodoc/components';\nimport {HeaderControls} from '../HeaderControls';\nimport {getDirection, updateRootClassName} from '../../utils';\nimport {Layout} from '../Layout';\nimport {useSettings} from '../../hooks/useSettings';\nimport {useMobile} from '../../hooks/useMobile';\n\nimport '../../interceptors/leading-page-links';\n\nimport '@diplodoc/transform/dist/js/yfm';\nimport {MermaidRuntime} from '@diplodoc/mermaid-extension/react';\nimport {LatexRuntime} from '@diplodoc/latex-extension/react';\nimport {Runtime as OpenapiSandbox} from '@diplodoc/openapi-extension/runtime';\n\nimport './App.scss';\n\nexport interface AppProps {\n lang: Lang;\n router: Router;\n}\n\nexport type DocInnerProps<Data = DocLeadingPageData | DocPageData> = {\n data: Data;\n} & AppProps;\n\nexport type {DocLeadingPageData, DocPageData};\n\ntype RuntimeProps = {\n theme: Theme;\n};\n\nfunction Runtime(props: RuntimeProps) {\n const {theme} = props;\n\n return (\n <>\n <OpenapiSandbox />\n <LatexRuntime />\n <MermaidRuntime\n theme={theme === Theme.Dark ? 'dark' : 'neutral'}\n zoom={{\n showMenu: true,\n bindKeys: true,\n }}\n />\n </>\n );\n}\n\nfunction Page(props: DocInnerProps) {\n const {data, ...pageProps} = props;\n const Page = data.leading ? DocLeadingPage : DocPage;\n\n return (\n <Layout>\n <Layout.Content>\n {/*@ts-ignore*/}\n <Page {...data} {...pageProps} />\n </Layout.Content>\n </Layout>\n );\n}\n\nfunction isDropdownItem(item: NavigationItemModel): item is NavigationDropdownItem {\n return Array.isArray((item as NavigationDropdownItem).items);\n}\n\nfunction rebaseNavItem<T extends NavigationItemModel>(item: T) {\n const result: T = {...item};\n\n if (isDropdownItem(item)) {\n (result as NavigationDropdownItem).items = item.items.map(rebaseNavItem);\n }\n\n if (item.url !== undefined) {\n result.url = item.url.replace(/^\\/?/, '/');\n }\n\n return result;\n}\n\ntype TocData = DocPageData['toc'] & {\n navigation?: NavigationData;\n};\n\nexport function App(props: DocInnerProps): ReactElement {\n const {data, router, lang} = props;\n const {navigation} = data.toc as TocData;\n\n const settings = useSettings();\n const mobileView = useMobile();\n\n const {theme, textSize, wideFormat, fullScreen, showMiniToc, onChangeFullScreen} = settings;\n const fullHeader = !fullScreen && Boolean(navigation);\n const headerHeight = fullHeader ? 64 : 0;\n const pageProps = {\n headerHeight,\n data,\n router,\n lang,\n wideFormat,\n showMiniToc,\n theme,\n textSize,\n fullScreen,\n onChangeFullScreen,\n };\n const direction = getDirection(lang);\n\n useEffect(() => {\n updateRootClassName({\n theme,\n mobileView,\n wideFormat,\n fullHeader,\n });\n }, [theme, mobileView, wideFormat, fullHeader]);\n\n if (!navigation) {\n return (\n <div className=\"App\">\n <ThemeProvider theme={theme} direction={direction}>\n <Page {...pageProps} {...settings} />\n <Runtime theme={theme} />\n </ThemeProvider>\n </div>\n );\n }\n\n const {header = {}, logo} = navigation;\n const {leftItems = [], rightItems = []} = header as NavigationData['header'];\n const headerWithControls = rightItems.some((item: {type: string}) => item.type === 'controls');\n\n return (\n <div className=\"App\">\n <ThemeProvider theme={theme} direction={direction}>\n <PageConstructorProvider theme={theme}>\n <PageConstructor\n custom={{\n navigation: {\n controls: () => (\n <HeaderControls {...settings} mobileView={mobileView} />\n ),\n },\n blocks: {\n page: () => (\n <Page\n {...pageProps}\n {...(headerWithControls ? {} : settings)}\n />\n ),\n },\n }}\n content={{\n blocks: [\n {\n type: 'page',\n },\n ],\n }}\n navigation={\n fullHeader\n ? {\n header: {\n withBorder: true,\n leftItems: leftItems.map(rebaseNavItem),\n rightItems: rightItems.map(rebaseNavItem),\n },\n logo,\n }\n : undefined\n }\n />\n </PageConstructorProvider>\n </ThemeProvider>\n <Runtime theme={theme} />\n </div>\n );\n}\n","import React from 'react';\nimport {renderToString} from 'react-dom/server';\n\nimport {App, DocInnerProps, DocLeadingPageData, DocPageData} from './components/App/App';\n\nexport type {DocInnerProps, DocPageData, DocLeadingPageData};\n\nexport const render = (props: DocInnerProps) => renderToString(<App {...props} />);\n","(function () {\n /**\n * Element.matches() polyfill.\n * @link https://developer.mozilla.org/ru/docs/Web/API/Element/matches\n */\n if (typeof Element !== 'undefined') {\n (function (e) {\n const matches =\n e.matches ||\n e.matchesSelector ||\n e.webkitMatchesSelector ||\n e.mozMatchesSelector ||\n e.msMatchesSelector ||\n e.oMatchesSelector;\n\n if (matches) {\n e.matches = e.matchesSelector = matches;\n } else {\n e.matches = e.matchesSelector = function (selector) {\n const th = this;\n return Array.prototype.some.call(document.querySelectorAll(selector), (el) => {\n return el === th;\n });\n };\n }\n })(Element.prototype);\n }\n\n if (typeof document !== 'undefined') {\n document.addEventListener('click', (event) => {\n const href = event.target.href;\n const locationOrigin = window.location.origin;\n\n if (\n event.target.matches('.dc-doc-layout__center a') &&\n href.startsWith(locationOrigin)\n ) {\n event.preventDefault();\n\n const mainFileName = 'index';\n const extention = '.html';\n\n if (href.endsWith('/')) {\n window.location.href = `${href}${mainFileName}${extention}`;\n return;\n }\n\n // https://../file-name, https://../file-name#fragment\n const splitedHref = href.split('#');\n if (splitedHref.length > 0 && !splitedHref[0].endsWith(extention)) {\n splitedHref[0] += extention;\n window.location.href = splitedHref.join('#');\n return;\n }\n\n window.location.href = href;\n }\n });\n }\n})();\n","export default function () {}\n","module.exports = require(\"crypto\");","module.exports = require(\"stream\");","module.exports = require(\"url\");","module.exports = require(\"util\");","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [644,121], () => (__webpack_require__(5048)))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","__webpack_require__.amdO = {};","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn \"\" + {\"121\":\"vendor\",\"644\":\"react\"}[chunkId] + \".js\";\n};","// This function allow to reference async chunks and sibling chunks for the entrypoint\n__webpack_require__.miniCssF = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = (module) => {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"\";","// no baseURI\n\n// object to store loaded chunks\n// \"1\" means \"loaded\", otherwise not loaded yet\nvar installedChunks = {\n\t524: 1\n};\n\n__webpack_require__.O.require = (chunkId) => (installedChunks[chunkId]);\n\nvar installChunk = (chunk) => {\n\tvar moreModules = chunk.modules, chunkIds = chunk.ids, runtime = chunk.runtime;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\tfor(var i = 0; i < chunkIds.length; i++)\n\t\tinstalledChunks[chunkIds[i]] = 1;\n\t__webpack_require__.O();\n};\n\n// require() chunk loading for javascript\n__webpack_require__.f.require = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\tinstallChunk(require(\"./\" + __webpack_require__.u(chunkId)));\n\t\t} else installedChunks[chunkId] = 1;\n\t}\n};\n\n// no external install chunk\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\t__webpack_require__.e(644);\n\t__webpack_require__.e(121);\n\treturn next();\n};","","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n",""],"names":["React","memo","ControlSizes","Controls","ControlsLayout","HeaderControls","mobileView","theme","onChangeTheme","textSize","onChangeTextSize","wideFormat","onChangeWideFormat","showMiniToc","onChangeShowMiniToc","createElement","controlClassName","controlSize","L","isWideView","isMobileView","className","displayName","RTL_LANGS","TextDirection","strToBoolean","str","updateRootClassName","fullHeader","document","body","filter","Boolean","join","getDirection","lang","isRTL","includes","RTL","LTR","block","b","Header","Content","Footer","Layout","props","children","doc","header","content","footer","Children","forEach","child","type","defaultProps","useState","TextSizes","Theme","DEFAULT_USER_SETTINGS","Light","M","fullScreen","useSettings","settings","getSettings","setWideFormat","setFullScreen","setShowMiniToc","setTheme","setTextSize","withSavingSetting","onChangeFullScreen","getSetting","name","sessionStorage","getItem","setSetting","value","setItem","String","settingName","onChange","useCallback","useEffect","MOBILE_VIEW_WIDTH_BREAKPOINT","useMobile","setMobileView","clientWidth","onResizeHandler","window","addEventListener","removeEventListener","PageConstructor","PageConstructorProvider","ThemeProvider","DocLeadingPage","DocPage","MermaidRuntime","LatexRuntime","Runtime","OpenapiSandbox","Fragment","Dark","zoom","showMenu","bindKeys","Page","data","pageProps","leading","Object","assign","isDropdownItem","item","Array","isArray","items","rebaseNavItem","result","map","url","undefined","replace","App","router","navigation","toc","headerHeight","direction","logo","leftItems","rightItems","headerWithControls","some","custom","controls","blocks","page","withBorder","renderToString","render","Element","e","matches","matchesSelector","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector","selector","th","prototype","call","querySelectorAll","el","event","href","target","locationOrigin","location","origin","startsWith","preventDefault","mainFileName","extention","endsWith","splitedHref","split","length"],"sourceRoot":""}
|
package/build/server/react.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 644;
|
|
3
|
+
exports.ids = [644];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 6711:
|
|
7
7
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -15,7 +15,7 @@ exports.modules = {
|
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
17
|
*/
|
|
18
|
-
var ea=__webpack_require__(
|
|
18
|
+
var ea=__webpack_require__(6540),fa=__webpack_require__(2203),n=Object.prototype.hasOwnProperty,ha=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ia={},ja={};
|
|
19
19
|
function ka(a){if(n.call(ja,a))return!0;if(n.call(ia,a))return!1;if(ha.test(a))return ja[a]=!0;ia[a]=!0;return!1}function q(a,b,c,d,f,e,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=e;this.removeEmptyString=g}var r={};
|
|
20
20
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){r[a]=new q(a,0,!1,a,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];r[b]=new q(b,1,!1,a[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){r[a]=new q(a,2,!1,a.toLowerCase(),null,!1,!1)});
|
|
21
21
|
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){r[a]=new q(a,2,!1,a,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){r[a]=new q(a,3,!1,a.toLowerCase(),null,!1,!1)});
|
|
@@ -111,7 +111,7 @@ exports.version="18.2.0";
|
|
|
111
111
|
|
|
112
112
|
/***/ }),
|
|
113
113
|
|
|
114
|
-
/***/
|
|
114
|
+
/***/ 6513:
|
|
115
115
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
116
116
|
|
|
117
117
|
/**
|
|
@@ -123,7 +123,7 @@ exports.version="18.2.0";
|
|
|
123
123
|
* This source code is licensed under the MIT license found in the
|
|
124
124
|
* LICENSE file in the root directory of this source tree.
|
|
125
125
|
*/
|
|
126
|
-
var aa=__webpack_require__(
|
|
126
|
+
var aa=__webpack_require__(9023),ba=__webpack_require__(6540),k=null,l=0,q=!0;
|
|
127
127
|
function r(a,b){if("string"===typeof b){if(0!==b.length)if(2048<3*b.length)0<l&&(t(a,k.subarray(0,l)),k=new Uint8Array(2048),l=0),t(a,u.encode(b));else{var c=k;0<l&&(c=k.subarray(l));c=u.encodeInto(b,c);var d=c.read;l+=c.written;d<b.length&&(t(a,k),k=new Uint8Array(2048),l=u.encodeInto(b.slice(d),k).written);2048===l&&(t(a,k),k=new Uint8Array(2048),l=0)}}else 0!==b.byteLength&&(2048<b.byteLength?(0<l&&(t(a,k.subarray(0,l)),k=new Uint8Array(2048),l=0),t(a,b)):(c=k.length-l,c<b.byteLength&&(0===c?t(a,
|
|
128
128
|
k):(k.set(b.subarray(0,c),l),l+=c,t(a,k),b=b.subarray(c)),k=new Uint8Array(2048),l=0),k.set(b,l),l+=b.byteLength,2048===l&&(t(a,k),k=new Uint8Array(2048),l=0)))}function t(a,b){a=a.write(b);q=q&&a}function w(a,b){r(a,b);return q}function ca(a){k&&0<l&&a.write(k.subarray(0,l));k=null;l=0;q=!0}var u=new aa.TextEncoder;function x(a){return u.encode(a)}
|
|
129
129
|
var y=Object.prototype.hasOwnProperty,da=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ea={},fa={};
|
|
@@ -220,7 +220,7 @@ exports.renderToPipeableStream=function(a,b){var c=od(a,b),d=!1;jd(c);return{pip
|
|
|
220
220
|
|
|
221
221
|
/***/ }),
|
|
222
222
|
|
|
223
|
-
/***/
|
|
223
|
+
/***/ 2551:
|
|
224
224
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
225
225
|
|
|
226
226
|
/**
|
|
@@ -235,7 +235,7 @@ exports.renderToPipeableStream=function(a,b){var c=od(a,b),d=!1;jd(c);return{pip
|
|
|
235
235
|
/*
|
|
236
236
|
Modernizr 3.0.0pre (Custom Build) | MIT
|
|
237
237
|
*/
|
|
238
|
-
var aa=__webpack_require__(
|
|
238
|
+
var aa=__webpack_require__(6540),ca=__webpack_require__(9982);function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(a,b){ha(a,b);ha(a+"Capture",b)}
|
|
239
239
|
function ha(a,b){ea[a]=b;for(a=0;a<b.length;a++)da.add(b[a])}
|
|
240
240
|
var ia=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),ja=Object.prototype.hasOwnProperty,ka=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,la=
|
|
241
241
|
{},ma={};function oa(a){if(ja.call(ma,a))return!0;if(ja.call(la,a))return!1;if(ka.test(a))return ma[a]=!0;la[a]=!0;return!1}function pa(a,b,c,d){if(null!==c&&0===c.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(d)return!1;if(null!==c)return!c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}
|
|
@@ -550,7 +550,7 @@ exports.unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!pl(c))throw Er
|
|
|
550
550
|
|
|
551
551
|
/***/ }),
|
|
552
552
|
|
|
553
|
-
/***/
|
|
553
|
+
/***/ 961:
|
|
554
554
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
555
555
|
|
|
556
556
|
|
|
@@ -578,13 +578,13 @@ if (true) {
|
|
|
578
578
|
// DCE check should happen before ReactDOM bundle executes so that
|
|
579
579
|
// DevTools can report bad minification during injection.
|
|
580
580
|
checkDCE();
|
|
581
|
-
module.exports = __webpack_require__(
|
|
581
|
+
module.exports = __webpack_require__(2551);
|
|
582
582
|
} else {}
|
|
583
583
|
|
|
584
584
|
|
|
585
585
|
/***/ }),
|
|
586
586
|
|
|
587
|
-
/***/
|
|
587
|
+
/***/ 4362:
|
|
588
588
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
589
589
|
|
|
590
590
|
var __webpack_unused_export__;
|
|
@@ -592,12 +592,12 @@ var __webpack_unused_export__;
|
|
|
592
592
|
|
|
593
593
|
var l, s;
|
|
594
594
|
if (true) {
|
|
595
|
-
l = __webpack_require__(
|
|
596
|
-
s = __webpack_require__(
|
|
595
|
+
l = __webpack_require__(6711);
|
|
596
|
+
s = __webpack_require__(6513);
|
|
597
597
|
} else {}
|
|
598
598
|
|
|
599
599
|
__webpack_unused_export__ = l.version;
|
|
600
|
-
exports.
|
|
600
|
+
exports.F0 = l.renderToString;
|
|
601
601
|
__webpack_unused_export__ = l.renderToStaticMarkup;
|
|
602
602
|
__webpack_unused_export__ = l.renderToNodeStream;
|
|
603
603
|
__webpack_unused_export__ = l.renderToStaticNodeStream;
|
|
@@ -606,7 +606,7 @@ __webpack_unused_export__ = s.renderToPipeableStream;
|
|
|
606
606
|
|
|
607
607
|
/***/ }),
|
|
608
608
|
|
|
609
|
-
/***/
|
|
609
|
+
/***/ 5287:
|
|
610
610
|
/***/ ((__unused_webpack_module, exports) => {
|
|
611
611
|
|
|
612
612
|
/**
|
|
@@ -639,13 +639,13 @@ exports.useTransition=function(){return U.current.useTransition()};exports.versi
|
|
|
639
639
|
|
|
640
640
|
/***/ }),
|
|
641
641
|
|
|
642
|
-
/***/
|
|
642
|
+
/***/ 6540:
|
|
643
643
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
644
644
|
|
|
645
645
|
|
|
646
646
|
|
|
647
647
|
if (true) {
|
|
648
|
-
module.exports = __webpack_require__(
|
|
648
|
+
module.exports = __webpack_require__(5287);
|
|
649
649
|
} else {}
|
|
650
650
|
|
|
651
651
|
|