1
+ /******/ ( ( ) => { // webpackBootstrap
2
+ /******/
3
+ /******/ var __webpack_modules__ = ( {
4
+
5
+ /***/ 571 :
6
+ /***/ ( ( __unused_webpack_module , __webpack_exports__ , __webpack_require__ ) => {
7
+
8
+ __webpack_require__ . r ( __webpack_exports__ ) ;
9
+ // extracted by mini-css-extract-plugin
10
+
11
+
12
+ /***/ } )
13
+
14
+ /******/ } ) ;
15
+ /************************************************************************/
16
+ /******/ // The module cache
17
+ /******/ var __webpack_module_cache__ = { } ;
18
+ /******/
19
+ /******/ // The require function
20
+ /******/ function __webpack_require__ ( moduleId ) {
21
+ /******/ // Check if module is in cache
22
+ /******/ var cachedModule = __webpack_module_cache__ [ moduleId ] ;
23
+ /******/ if ( cachedModule !== undefined ) {
24
+ /******/ return cachedModule . exports ;
25
+ /******/ }
26
+ /******/ // Create a new module (and put it into the cache)
27
+ /******/ var module = __webpack_module_cache__ [ moduleId ] = {
28
+ /******/ // no module.id needed
29
+ /******/ // no module.loaded needed
30
+ /******/ exports : { }
31
+ /******/ } ;
32
+ /******/
33
+ /******/ // Execute the module function
34
+ /******/ __webpack_modules__ [ moduleId ] ( module , module . exports , __webpack_require__ ) ;
35
+ /******/
36
+ /******/ // Return the exports of the module
37
+ /******/ return module . exports ;
38
+ /******/ }
39
+ /******/
40
+ /************************************************************************/
41
+ /******/ /* webpack/runtime/make namespace object */
42
+ /******/ ( ( ) => {
43
+ /******/ // define __esModule on exports
44
+ /******/ __webpack_require__ . r = ( exports ) => {
45
+ /******/ if ( typeof Symbol !== 'undefined' && Symbol . toStringTag ) {
46
+ /******/ Object . defineProperty ( exports , Symbol . toStringTag , { value : 'Module' } ) ;
47
+ /******/ }
48
+ /******/ Object . defineProperty ( exports , '__esModule' , { value : true } ) ;
49
+ /******/ } ;
50
+ /******/ } ) ( ) ;
51
+ /******/
52
+ /************************************************************************/
53
+ var __webpack_exports__ = { } ;
54
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
55
+ ( ( ) => {
56
+ var exports = __webpack_exports__ ;
57
+ var __webpack_unused_export__ ;
58
+
59
+ __webpack_unused_export__ = ( { value : true } ) ;
60
+ __webpack_require__ ( 571 ) ;
61
+ for ( const item of document . querySelectorAll ( '.js-category-title:not([data-id="root"])' ) ) {
62
+ item . addEventListener ( 'click' , ( ) => {
63
+ const id = item . dataset . id || '' ;
64
+ const list = document . querySelector ( `.js-category-list[data-id="${ id } "]` ) ;
65
+ const icon = document . querySelector ( `.js-category-icon[data-id="${ id } "]` ) ;
66
+ list === null || list === void 0 ? void 0 : list . classList . toggle ( '_open' ) ;
67
+ icon === null || icon === void 0 ? void 0 : icon . classList . toggle ( 'fa-folder-open' ) ;
68
+ } ) ;
69
+ }
70
+ ( ( ) => {
71
+ var _a , _b ;
72
+ const pathname = window . location . pathname . replace ( '/docs' , '' ) ;
73
+ let activeElement = document . querySelector ( `.js-category-link[data-id="${ pathname } "]` ) ;
74
+ if ( ! activeElement ) {
75
+ return ;
76
+ }
77
+ activeElement . classList . add ( '_active' ) ;
78
+ // eslint-disable-next-line no-constant-condition
79
+ while ( true ) {
80
+ const parent = activeElement === null || activeElement === void 0 ? void 0 : activeElement . closest ( '.js-category-list' ) ;
81
+ if ( ! parent ) {
82
+ break ;
83
+ }
84
+ parent . classList . add ( '_open' ) ;
85
+ ( _b = ( _a = parent . parentNode ) === null || _a === void 0 ? void 0 : _a . querySelector ( '.js-category-icon' ) ) === null || _b === void 0 ? void 0 : _b . classList . add ( 'category__folder--open' ) ;
86
+ activeElement = parent . parentNode ;
87
+ }
88
+ } ) ( ) ;
89
+
90
+ } ) ( ) ;
91
+
92
+ /******/ } ) ( )
93
+ ;
0 commit comments