@salutejs/plasma-new-hope 0.340.0-canary.2305.18873573377.0 → 0.340.0-canary.2314.19038910206.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/cjs/components/Combobox/ComboboxNew/Combobox.css +19 -0
 - package/cjs/components/Combobox/ComboboxNew/Combobox.js +78 -15
 - package/cjs/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
 - package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
 - package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +8 -2
 - package/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
 - package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +319 -1
 - package/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
 - package/cjs/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/cjs/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js.map +1 -1
 - package/cjs/components/Combobox/ComboboxNew/reducers/treePathReducer.js +135 -0
 - package/cjs/components/Combobox/ComboboxNew/reducers/treePathReducer.js.map +1 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.css +57 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +96 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js.map +1 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +30 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js.map +1 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles_1auklgl.css +2 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.css +54 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +144 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js.map +1 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +205 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js.map +1 -0
 - package/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles_7nhjnm.css +15 -0
 - package/cjs/components/Select/Select.js +2 -1
 - package/cjs/components/Select/Select.js.map +1 -1
 - package/cjs/components/Select/hooks/useKeyboardNavigation.js +127 -38
 - package/cjs/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
 - package/cjs/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/cjs/components/Select/reducers/focusedPathReducer.js.map +1 -1
 - package/cjs/components/Select/reducers/treePathReducer.js +12 -0
 - package/cjs/components/Select/reducers/treePathReducer.js.map +1 -1
 - package/cjs/components/Select/ui/TreeList/TreeList.js +3 -3
 - package/cjs/components/Select/ui/TreeList/TreeList.js.map +1 -1
 - package/cjs/components/Select/ui/TreeList/ui/Item/Item.js +22 -5
 - package/cjs/components/Select/ui/TreeList/ui/Item/Item.js.map +1 -1
 - package/cjs/index.css +19 -0
 - package/cjs/index.js +2 -0
 - package/cjs/index.js.map +1 -1
 - package/cjs/utils/index.js.map +1 -1
 - package/cjs/utils/isArraysEqual.js +12 -0
 - package/cjs/utils/isArraysEqual.js.map +1 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.js +66 -13
 - package/emotion/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +35 -3
 - package/emotion/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +312 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/reducers/index.js +1 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/reducers/treePathReducer.js +152 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +130 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +36 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.js +4 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +192 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +183 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.js +4 -0
 - package/emotion/cjs/components/Combobox/ComboboxNew/ui/index.js +1 -0
 - package/emotion/cjs/components/Select/Select.js +2 -1
 - package/emotion/cjs/components/Select/hooks/useKeyboardNavigation.js +156 -44
 - package/emotion/cjs/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/emotion/cjs/components/Select/reducers/treePathReducer.js +12 -0
 - package/emotion/cjs/components/Select/ui/TreeList/TreeList.js +7 -3
 - package/emotion/cjs/components/Select/ui/TreeList/ui/Item/Item.js +49 -5
 - package/emotion/cjs/examples/components/Combobox/Combobox.config.js +15 -15
 - package/emotion/cjs/utils/index.js +4 -0
 - package/emotion/cjs/utils/isArraysEqual.js +15 -0
 - package/emotion/es/components/Combobox/ComboboxNew/Combobox.js +68 -15
 - package/emotion/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/emotion/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +35 -3
 - package/emotion/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +313 -0
 - package/emotion/es/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/emotion/es/components/Combobox/ComboboxNew/reducers/index.js +1 -0
 - package/emotion/es/components/Combobox/ComboboxNew/reducers/treePathReducer.js +135 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +79 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +13 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.js +1 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +141 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +119 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.js +1 -0
 - package/emotion/es/components/Combobox/ComboboxNew/ui/index.js +1 -0
 - package/emotion/es/components/Select/Select.js +2 -1
 - package/emotion/es/components/Select/hooks/useKeyboardNavigation.js +157 -44
 - package/emotion/es/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/emotion/es/components/Select/reducers/treePathReducer.js +12 -0
 - package/emotion/es/components/Select/ui/TreeList/TreeList.js +7 -3
 - package/emotion/es/components/Select/ui/TreeList/ui/Item/Item.js +50 -6
 - package/emotion/es/examples/components/Combobox/Combobox.config.js +15 -15
 - package/emotion/es/utils/index.js +1 -0
 - package/emotion/es/utils/isArraysEqual.js +5 -0
 - package/es/components/Combobox/ComboboxNew/Combobox.css +19 -0
 - package/es/components/Combobox/ComboboxNew/Combobox.js +79 -16
 - package/es/components/Combobox/ComboboxNew/Combobox.js.map +1 -1
 - package/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/es/components/Combobox/ComboboxNew/Combobox.tokens.js.map +1 -1
 - package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +8 -2
 - package/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js.map +1 -1
 - package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +319 -1
 - package/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js.map +1 -1
 - package/es/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/es/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js.map +1 -1
 - package/es/components/Combobox/ComboboxNew/reducers/treePathReducer.js +130 -0
 - package/es/components/Combobox/ComboboxNew/reducers/treePathReducer.js.map +1 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.css +57 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +88 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js.map +1 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +25 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js.map +1 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles_1auklgl.css +2 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.css +54 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +136 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js.map +1 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +187 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js.map +1 -0
 - package/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles_7nhjnm.css +15 -0
 - package/es/components/Select/Select.js +2 -1
 - package/es/components/Select/Select.js.map +1 -1
 - package/es/components/Select/hooks/useKeyboardNavigation.js +127 -38
 - package/es/components/Select/hooks/useKeyboardNavigation.js.map +1 -1
 - package/es/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/es/components/Select/reducers/focusedPathReducer.js.map +1 -1
 - package/es/components/Select/reducers/treePathReducer.js +12 -0
 - package/es/components/Select/reducers/treePathReducer.js.map +1 -1
 - package/es/components/Select/ui/TreeList/TreeList.js +3 -3
 - package/es/components/Select/ui/TreeList/TreeList.js.map +1 -1
 - package/es/components/Select/ui/TreeList/ui/Item/Item.js +23 -6
 - package/es/components/Select/ui/TreeList/ui/Item/Item.js.map +1 -1
 - package/es/index.css +19 -0
 - package/es/index.js +1 -0
 - package/es/index.js.map +1 -1
 - package/es/utils/index.js.map +1 -1
 - package/es/utils/isArraysEqual.js +8 -0
 - package/es/utils/isArraysEqual.js.map +1 -0
 - package/package.json +4 -4
 - package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.js +66 -13
 - package/styled-components/cjs/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/getPathMaps.js +35 -3
 - package/styled-components/cjs/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +312 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/reducers/index.js +1 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/reducers/treePathReducer.js +152 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +130 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +50 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.js +4 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +192 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +296 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.js +4 -0
 - package/styled-components/cjs/components/Combobox/ComboboxNew/ui/index.js +1 -0
 - package/styled-components/cjs/components/Select/Select.js +2 -1
 - package/styled-components/cjs/components/Select/hooks/useKeyboardNavigation.js +156 -44
 - package/styled-components/cjs/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/styled-components/cjs/components/Select/reducers/treePathReducer.js +12 -0
 - package/styled-components/cjs/components/Select/ui/TreeList/TreeList.js +7 -3
 - package/styled-components/cjs/components/Select/ui/TreeList/ui/Item/Item.js +49 -5
 - package/styled-components/cjs/examples/components/Combobox/Combobox.config.js +12 -4
 - package/styled-components/cjs/utils/index.js +4 -0
 - package/styled-components/cjs/utils/isArraysEqual.js +15 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/Combobox.js +68 -15
 - package/styled-components/es/components/Combobox/ComboboxNew/Combobox.tokens.js +2 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/hooks/getPathMaps.js +35 -3
 - package/styled-components/es/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.js +313 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/reducers/focusedPathReducer.js +7 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/reducers/index.js +1 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/reducers/treePathReducer.js +135 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.js +79 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.js +27 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.js +1 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.js +141 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.js +232 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.js +1 -0
 - package/styled-components/es/components/Combobox/ComboboxNew/ui/index.js +1 -0
 - package/styled-components/es/components/Select/Select.js +2 -1
 - package/styled-components/es/components/Select/hooks/useKeyboardNavigation.js +157 -44
 - package/styled-components/es/components/Select/reducers/focusedPathReducer.js +7 -0
 - package/styled-components/es/components/Select/reducers/treePathReducer.js +12 -0
 - package/styled-components/es/components/Select/ui/TreeList/TreeList.js +7 -3
 - package/styled-components/es/components/Select/ui/TreeList/ui/Item/Item.js +50 -6
 - package/styled-components/es/examples/components/Combobox/Combobox.config.js +12 -4
 - package/styled-components/es/examples/components/Combobox/Combobox.js +0 -7
 - package/styled-components/es/utils/index.js +1 -0
 - package/styled-components/es/utils/isArraysEqual.js +5 -0
 - package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts +2 -0
 - package/types/components/Combobox/ComboboxNew/Combobox.tokens.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +17 -3
 - package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts +2 -1
 - package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +7 -2
 - package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/reducers/focusedPathReducer.d.ts +3 -0
 - package/types/components/Combobox/ComboboxNew/reducers/focusedPathReducer.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/reducers/index.d.ts +1 -0
 - package/types/components/Combobox/ComboboxNew/reducers/index.d.ts.map +1 -1
 - package/types/components/Combobox/ComboboxNew/reducers/treePathReducer.d.ts +24 -0
 - package/types/components/Combobox/ComboboxNew/reducers/treePathReducer.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.d.ts +4 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.d.ts +6 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.styles.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.d.ts +11 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/TreeList.types.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.d.ts +4 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.d.ts +62 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.styles.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.d.ts +6 -0
 - package/types/components/Combobox/ComboboxNew/ui/TreeList/ui/Item/Item.types.d.ts.map +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/index.d.ts +1 -0
 - package/types/components/Combobox/ComboboxNew/ui/index.d.ts.map +1 -1
 - package/types/components/Select/Select.d.ts.map +1 -1
 - package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -1
 - package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
 - package/types/components/Select/reducers/focusedPathReducer.d.ts +3 -0
 - package/types/components/Select/reducers/focusedPathReducer.d.ts.map +1 -1
 - package/types/components/Select/reducers/treePathReducer.d.ts +6 -0
 - package/types/components/Select/reducers/treePathReducer.d.ts.map +1 -1
 - package/types/components/Select/ui/TreeList/ui/Item/Item.d.ts.map +1 -1
 - package/types/components/Select/ui/TreeList/ui/Item/Item.types.d.ts +1 -9
 - package/types/components/Select/ui/TreeList/ui/Item/Item.types.d.ts.map +1 -1
 - package/types/examples/components/Combobox/Combobox.config.d.ts.map +1 -1
 - package/types/examples/components/Combobox/Combobox.d.ts +48 -0
 - package/types/examples/components/Combobox/Combobox.d.ts.map +1 -1
 - package/types/utils/index.d.ts +1 -0
 - package/types/utils/index.d.ts.map +1 -1
 - package/types/utils/isArraysEqual.d.ts +2 -0
 - package/types/utils/isArraysEqual.d.ts.map +1 -0
 
| 
         @@ -0,0 +1,152 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
      
 3 
     | 
    
         
            +
                value: true
         
     | 
| 
      
 4 
     | 
    
         
            +
            });
         
     | 
| 
      
 5 
     | 
    
         
            +
            function _export(target, all) {
         
     | 
| 
      
 6 
     | 
    
         
            +
                for(var name in all)Object.defineProperty(target, name, {
         
     | 
| 
      
 7 
     | 
    
         
            +
                    enumerable: true,
         
     | 
| 
      
 8 
     | 
    
         
            +
                    get: Object.getOwnPropertyDescriptor(all, name).get
         
     | 
| 
      
 9 
     | 
    
         
            +
                });
         
     | 
| 
      
 10 
     | 
    
         
            +
            }
         
     | 
| 
      
 11 
     | 
    
         
            +
            _export(exports, {
         
     | 
| 
      
 12 
     | 
    
         
            +
                get keyExists () {
         
     | 
| 
      
 13 
     | 
    
         
            +
                    return keyExists;
         
     | 
| 
      
 14 
     | 
    
         
            +
                },
         
     | 
| 
      
 15 
     | 
    
         
            +
                get treePathReducer () {
         
     | 
| 
      
 16 
     | 
    
         
            +
                    return treePathReducer;
         
     | 
| 
      
 17 
     | 
    
         
            +
                }
         
     | 
| 
      
 18 
     | 
    
         
            +
            });
         
     | 
| 
      
 19 
     | 
    
         
            +
            var _utils = require("../../../../utils");
         
     | 
| 
      
 20 
     | 
    
         
            +
            function _type_of(obj) {
         
     | 
| 
      
 21 
     | 
    
         
            +
                "@swc/helpers - typeof";
         
     | 
| 
      
 22 
     | 
    
         
            +
                return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
         
     | 
| 
      
 23 
     | 
    
         
            +
            }
         
     | 
| 
      
 24 
     | 
    
         
            +
            var keyExists = function(obj, path) {
         
     | 
| 
      
 25 
     | 
    
         
            +
                if ((typeof obj === "undefined" ? "undefined" : _type_of(obj)) !== 'object' || obj === null || !Array.isArray(path)) {
         
     | 
| 
      
 26 
     | 
    
         
            +
                    return false;
         
     | 
| 
      
 27 
     | 
    
         
            +
                }
         
     | 
| 
      
 28 
     | 
    
         
            +
                var current = obj;
         
     | 
| 
      
 29 
     | 
    
         
            +
                for(var i = 0; i < path.length; i++){
         
     | 
| 
      
 30 
     | 
    
         
            +
                    var key = path[i];
         
     | 
| 
      
 31 
     | 
    
         
            +
                    if (current === null || (typeof current === "undefined" ? "undefined" : _type_of(current)) !== 'object' || !(key in current)) {
         
     | 
| 
      
 32 
     | 
    
         
            +
                        return false;
         
     | 
| 
      
 33 
     | 
    
         
            +
                    }
         
     | 
| 
      
 34 
     | 
    
         
            +
                    current = current[key];
         
     | 
| 
      
 35 
     | 
    
         
            +
                }
         
     | 
| 
      
 36 
     | 
    
         
            +
                return true;
         
     | 
| 
      
 37 
     | 
    
         
            +
            };
         
     | 
| 
      
 38 
     | 
    
         
            +
            function createObjectAtPath(obj, path) {
         
     | 
| 
      
 39 
     | 
    
         
            +
                if ((typeof obj === "undefined" ? "undefined" : _type_of(obj)) !== 'object' || obj === null) {
         
     | 
| 
      
 40 
     | 
    
         
            +
                    return;
         
     | 
| 
      
 41 
     | 
    
         
            +
                }
         
     | 
| 
      
 42 
     | 
    
         
            +
                var current = obj;
         
     | 
| 
      
 43 
     | 
    
         
            +
                for(var i = 0; i < path.length; i++){
         
     | 
| 
      
 44 
     | 
    
         
            +
                    var key = path[i];
         
     | 
| 
      
 45 
     | 
    
         
            +
                    if (i === path.length - 1) {
         
     | 
| 
      
 46 
     | 
    
         
            +
                        current[key] = {};
         
     | 
| 
      
 47 
     | 
    
         
            +
                        break;
         
     | 
| 
      
 48 
     | 
    
         
            +
                    }
         
     | 
| 
      
 49 
     | 
    
         
            +
                    if (current[key] === undefined || current[key] === null) {
         
     | 
| 
      
 50 
     | 
    
         
            +
                        current[key] = {};
         
     | 
| 
      
 51 
     | 
    
         
            +
                    }
         
     | 
| 
      
 52 
     | 
    
         
            +
                    current = current[key];
         
     | 
| 
      
 53 
     | 
    
         
            +
                }
         
     | 
| 
      
 54 
     | 
    
         
            +
                return obj;
         
     | 
| 
      
 55 
     | 
    
         
            +
            }
         
     | 
| 
      
 56 
     | 
    
         
            +
            function removeObjectAtPath(obj, path) {
         
     | 
| 
      
 57 
     | 
    
         
            +
                if (path.length === 0) {
         
     | 
| 
      
 58 
     | 
    
         
            +
                    return obj;
         
     | 
| 
      
 59 
     | 
    
         
            +
                }
         
     | 
| 
      
 60 
     | 
    
         
            +
                var current = obj;
         
     | 
| 
      
 61 
     | 
    
         
            +
                for(var i = 0; i < path.length; i++){
         
     | 
| 
      
 62 
     | 
    
         
            +
                    var key = path[i];
         
     | 
| 
      
 63 
     | 
    
         
            +
                    if (current === null || (typeof current === "undefined" ? "undefined" : _type_of(current)) !== 'object' || !(key in current)) {
         
     | 
| 
      
 64 
     | 
    
         
            +
                        return obj;
         
     | 
| 
      
 65 
     | 
    
         
            +
                    }
         
     | 
| 
      
 66 
     | 
    
         
            +
                    if (i === path.length - 1) {
         
     | 
| 
      
 67 
     | 
    
         
            +
                        delete current[key];
         
     | 
| 
      
 68 
     | 
    
         
            +
                        break;
         
     | 
| 
      
 69 
     | 
    
         
            +
                    }
         
     | 
| 
      
 70 
     | 
    
         
            +
                    current = current[key];
         
     | 
| 
      
 71 
     | 
    
         
            +
                }
         
     | 
| 
      
 72 
     | 
    
         
            +
                return obj;
         
     | 
| 
      
 73 
     | 
    
         
            +
            }
         
     | 
| 
      
 74 
     | 
    
         
            +
            // Утилита, которая получает на вход список отфильтрованных элементов
         
     | 
| 
      
 75 
     | 
    
         
            +
            // и возвращает объект путей раскрытых элементов дерева.
         
     | 
| 
      
 76 
     | 
    
         
            +
            function generateNestedTreePathFromFilteredItems(items) {
         
     | 
| 
      
 77 
     | 
    
         
            +
                var result = {};
         
     | 
| 
      
 78 
     | 
    
         
            +
                var buildTree = function(currentItems, currentLevel) {
         
     | 
| 
      
 79 
     | 
    
         
            +
                    if (!currentItems || !Array.isArray(currentItems)) return;
         
     | 
| 
      
 80 
     | 
    
         
            +
                    var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
         
     | 
| 
      
 81 
     | 
    
         
            +
                    try {
         
     | 
| 
      
 82 
     | 
    
         
            +
                        for(var _iterator = currentItems[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
         
     | 
| 
      
 83 
     | 
    
         
            +
                            var item = _step.value;
         
     | 
| 
      
 84 
     | 
    
         
            +
                            if ((item === null || item === void 0 ? void 0 : item.value) && (item === null || item === void 0 ? void 0 : item.items)) {
         
     | 
| 
      
 85 
     | 
    
         
            +
                                // Создаем новый уровень для текущего значения
         
     | 
| 
      
 86 
     | 
    
         
            +
                                currentLevel[item === null || item === void 0 ? void 0 : item.value] = {};
         
     | 
| 
      
 87 
     | 
    
         
            +
                                // Рекурсивно обрабатываем дочерние элементы
         
     | 
| 
      
 88 
     | 
    
         
            +
                                if ((item === null || item === void 0 ? void 0 : item.items) && (item === null || item === void 0 ? void 0 : item.items.length) > 0) {
         
     | 
| 
      
 89 
     | 
    
         
            +
                                    buildTree(item === null || item === void 0 ? void 0 : item.items, currentLevel[item === null || item === void 0 ? void 0 : item.value]);
         
     | 
| 
      
 90 
     | 
    
         
            +
                                }
         
     | 
| 
      
 91 
     | 
    
         
            +
                            }
         
     | 
| 
      
 92 
     | 
    
         
            +
                        }
         
     | 
| 
      
 93 
     | 
    
         
            +
                    } catch (err) {
         
     | 
| 
      
 94 
     | 
    
         
            +
                        _didIteratorError = true;
         
     | 
| 
      
 95 
     | 
    
         
            +
                        _iteratorError = err;
         
     | 
| 
      
 96 
     | 
    
         
            +
                    } finally{
         
     | 
| 
      
 97 
     | 
    
         
            +
                        try {
         
     | 
| 
      
 98 
     | 
    
         
            +
                            if (!_iteratorNormalCompletion && _iterator.return != null) {
         
     | 
| 
      
 99 
     | 
    
         
            +
                                _iterator.return();
         
     | 
| 
      
 100 
     | 
    
         
            +
                            }
         
     | 
| 
      
 101 
     | 
    
         
            +
                        } finally{
         
     | 
| 
      
 102 
     | 
    
         
            +
                            if (_didIteratorError) {
         
     | 
| 
      
 103 
     | 
    
         
            +
                                throw _iteratorError;
         
     | 
| 
      
 104 
     | 
    
         
            +
                            }
         
     | 
| 
      
 105 
     | 
    
         
            +
                        }
         
     | 
| 
      
 106 
     | 
    
         
            +
                    }
         
     | 
| 
      
 107 
     | 
    
         
            +
                };
         
     | 
| 
      
 108 
     | 
    
         
            +
                buildTree(items, result);
         
     | 
| 
      
 109 
     | 
    
         
            +
                return result;
         
     | 
| 
      
 110 
     | 
    
         
            +
            }
         
     | 
| 
      
 111 
     | 
    
         
            +
            function treePathReducer(state, action) {
         
     | 
| 
      
 112 
     | 
    
         
            +
                switch(action.type){
         
     | 
| 
      
 113 
     | 
    
         
            +
                    case 'reset':
         
     | 
| 
      
 114 
     | 
    
         
            +
                        {
         
     | 
| 
      
 115 
     | 
    
         
            +
                            return {};
         
     | 
| 
      
 116 
     | 
    
         
            +
                        }
         
     | 
| 
      
 117 
     | 
    
         
            +
                    case 'toggled_level':
         
     | 
| 
      
 118 
     | 
    
         
            +
                        {
         
     | 
| 
      
 119 
     | 
    
         
            +
                            var stateCopy = (0, _utils.deepCopy)(state);
         
     | 
| 
      
 120 
     | 
    
         
            +
                            var isTargetLevelOpened = keyExists(stateCopy, action.value);
         
     | 
| 
      
 121 
     | 
    
         
            +
                            if (isTargetLevelOpened) {
         
     | 
| 
      
 122 
     | 
    
         
            +
                                // нужно закрыть текущий уровень
         
     | 
| 
      
 123 
     | 
    
         
            +
                                removeObjectAtPath(stateCopy, action.value);
         
     | 
| 
      
 124 
     | 
    
         
            +
                            } else {
         
     | 
| 
      
 125 
     | 
    
         
            +
                                // нужно открыть требуемый уровень
         
     | 
| 
      
 126 
     | 
    
         
            +
                                createObjectAtPath(stateCopy, action.value);
         
     | 
| 
      
 127 
     | 
    
         
            +
                            }
         
     | 
| 
      
 128 
     | 
    
         
            +
                            return stateCopy;
         
     | 
| 
      
 129 
     | 
    
         
            +
                        }
         
     | 
| 
      
 130 
     | 
    
         
            +
                    case 'expand_all':
         
     | 
| 
      
 131 
     | 
    
         
            +
                        {
         
     | 
| 
      
 132 
     | 
    
         
            +
                            var filteredItem = action.value;
         
     | 
| 
      
 133 
     | 
    
         
            +
                            return generateNestedTreePathFromFilteredItems(filteredItem);
         
     | 
| 
      
 134 
     | 
    
         
            +
                        }
         
     | 
| 
      
 135 
     | 
    
         
            +
                    case 'open_level':
         
     | 
| 
      
 136 
     | 
    
         
            +
                        {
         
     | 
| 
      
 137 
     | 
    
         
            +
                            var stateCopy1 = (0, _utils.deepCopy)(state);
         
     | 
| 
      
 138 
     | 
    
         
            +
                            createObjectAtPath(stateCopy1, action.value);
         
     | 
| 
      
 139 
     | 
    
         
            +
                            return stateCopy1;
         
     | 
| 
      
 140 
     | 
    
         
            +
                        }
         
     | 
| 
      
 141 
     | 
    
         
            +
                    case 'close_level':
         
     | 
| 
      
 142 
     | 
    
         
            +
                        {
         
     | 
| 
      
 143 
     | 
    
         
            +
                            var stateCopy2 = (0, _utils.deepCopy)(state);
         
     | 
| 
      
 144 
     | 
    
         
            +
                            removeObjectAtPath(stateCopy2, action.value);
         
     | 
| 
      
 145 
     | 
    
         
            +
                            return stateCopy2;
         
     | 
| 
      
 146 
     | 
    
         
            +
                        }
         
     | 
| 
      
 147 
     | 
    
         
            +
                    default:
         
     | 
| 
      
 148 
     | 
    
         
            +
                        {
         
     | 
| 
      
 149 
     | 
    
         
            +
                            return state;
         
     | 
| 
      
 150 
     | 
    
         
            +
                        }
         
     | 
| 
      
 151 
     | 
    
         
            +
                }
         
     | 
| 
      
 152 
     | 
    
         
            +
            }
         
     | 
| 
         @@ -0,0 +1,130 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
      
 3 
     | 
    
         
            +
                value: true
         
     | 
| 
      
 4 
     | 
    
         
            +
            });
         
     | 
| 
      
 5 
     | 
    
         
            +
            Object.defineProperty(exports, "TreeList", {
         
     | 
| 
      
 6 
     | 
    
         
            +
                enumerable: true,
         
     | 
| 
      
 7 
     | 
    
         
            +
                get: function() {
         
     | 
| 
      
 8 
     | 
    
         
            +
                    return TreeList;
         
     | 
| 
      
 9 
     | 
    
         
            +
                }
         
     | 
| 
      
 10 
     | 
    
         
            +
            });
         
     | 
| 
      
 11 
     | 
    
         
            +
            var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
         
     | 
| 
      
 12 
     | 
    
         
            +
            var _reactvirtual = require("@tanstack/react-virtual");
         
     | 
| 
      
 13 
     | 
    
         
            +
            var _utils = require("../../../../../utils");
         
     | 
| 
      
 14 
     | 
    
         
            +
            var _Item = require("./ui/Item/Item");
         
     | 
| 
      
 15 
     | 
    
         
            +
            var _TreeListstyles = require("./TreeList.styles");
         
     | 
| 
      
 16 
     | 
    
         
            +
            function _getRequireWildcardCache(nodeInterop) {
         
     | 
| 
      
 17 
     | 
    
         
            +
                if (typeof WeakMap !== "function") return null;
         
     | 
| 
      
 18 
     | 
    
         
            +
                var cacheBabelInterop = new WeakMap();
         
     | 
| 
      
 19 
     | 
    
         
            +
                var cacheNodeInterop = new WeakMap();
         
     | 
| 
      
 20 
     | 
    
         
            +
                return (_getRequireWildcardCache = function(nodeInterop) {
         
     | 
| 
      
 21 
     | 
    
         
            +
                    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
         
     | 
| 
      
 22 
     | 
    
         
            +
                })(nodeInterop);
         
     | 
| 
      
 23 
     | 
    
         
            +
            }
         
     | 
| 
      
 24 
     | 
    
         
            +
            function _interop_require_wildcard(obj, nodeInterop) {
         
     | 
| 
      
 25 
     | 
    
         
            +
                if (!nodeInterop && obj && obj.__esModule) {
         
     | 
| 
      
 26 
     | 
    
         
            +
                    return obj;
         
     | 
| 
      
 27 
     | 
    
         
            +
                }
         
     | 
| 
      
 28 
     | 
    
         
            +
                if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
         
     | 
| 
      
 29 
     | 
    
         
            +
                    return {
         
     | 
| 
      
 30 
     | 
    
         
            +
                        default: obj
         
     | 
| 
      
 31 
     | 
    
         
            +
                    };
         
     | 
| 
      
 32 
     | 
    
         
            +
                }
         
     | 
| 
      
 33 
     | 
    
         
            +
                var cache = _getRequireWildcardCache(nodeInterop);
         
     | 
| 
      
 34 
     | 
    
         
            +
                if (cache && cache.has(obj)) {
         
     | 
| 
      
 35 
     | 
    
         
            +
                    return cache.get(obj);
         
     | 
| 
      
 36 
     | 
    
         
            +
                }
         
     | 
| 
      
 37 
     | 
    
         
            +
                var newObj = {
         
     | 
| 
      
 38 
     | 
    
         
            +
                    __proto__: null
         
     | 
| 
      
 39 
     | 
    
         
            +
                };
         
     | 
| 
      
 40 
     | 
    
         
            +
                var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 41 
     | 
    
         
            +
                for(var key in obj){
         
     | 
| 
      
 42 
     | 
    
         
            +
                    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
         
     | 
| 
      
 43 
     | 
    
         
            +
                        var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
         
     | 
| 
      
 44 
     | 
    
         
            +
                        if (desc && (desc.get || desc.set)) {
         
     | 
| 
      
 45 
     | 
    
         
            +
                            Object.defineProperty(newObj, key, desc);
         
     | 
| 
      
 46 
     | 
    
         
            +
                        } else {
         
     | 
| 
      
 47 
     | 
    
         
            +
                            newObj[key] = obj[key];
         
     | 
| 
      
 48 
     | 
    
         
            +
                        }
         
     | 
| 
      
 49 
     | 
    
         
            +
                    }
         
     | 
| 
      
 50 
     | 
    
         
            +
                }
         
     | 
| 
      
 51 
     | 
    
         
            +
                newObj.default = obj;
         
     | 
| 
      
 52 
     | 
    
         
            +
                if (cache) {
         
     | 
| 
      
 53 
     | 
    
         
            +
                    cache.set(obj, newObj);
         
     | 
| 
      
 54 
     | 
    
         
            +
                }
         
     | 
| 
      
 55 
     | 
    
         
            +
                return newObj;
         
     | 
| 
      
 56 
     | 
    
         
            +
            }
         
     | 
| 
      
 57 
     | 
    
         
            +
            var TreeList = function(param) {
         
     | 
| 
      
 58 
     | 
    
         
            +
                var items = param.items, listMaxHeight = param.listMaxHeight, onScroll = param.onScroll, virtual = param.virtual, beforeList = param.beforeList, afterList = param.afterList;
         
     | 
| 
      
 59 
     | 
    
         
            +
                if (virtual) {
         
     | 
| 
      
 60 
     | 
    
         
            +
                    return /*#__PURE__*/ _react.default.createElement(VirtualTreeList, {
         
     | 
| 
      
 61 
     | 
    
         
            +
                        items: items,
         
     | 
| 
      
 62 
     | 
    
         
            +
                        listMaxHeight: listMaxHeight,
         
     | 
| 
      
 63 
     | 
    
         
            +
                        onScroll: onScroll,
         
     | 
| 
      
 64 
     | 
    
         
            +
                        beforeList: beforeList,
         
     | 
| 
      
 65 
     | 
    
         
            +
                        afterList: afterList
         
     | 
| 
      
 66 
     | 
    
         
            +
                    });
         
     | 
| 
      
 67 
     | 
    
         
            +
                }
         
     | 
| 
      
 68 
     | 
    
         
            +
                return /*#__PURE__*/ _react.default.createElement(_TreeListstyles.ListWrapper, null, /*#__PURE__*/ _react.default.createElement(_TreeListstyles.ScrollContainer, {
         
     | 
| 
      
 69 
     | 
    
         
            +
                    listMaxHeight: listMaxHeight,
         
     | 
| 
      
 70 
     | 
    
         
            +
                    onScroll: onScroll
         
     | 
| 
      
 71 
     | 
    
         
            +
                }, beforeList, items === null || items === void 0 ? void 0 : items.map(function(item, index) {
         
     | 
| 
      
 72 
     | 
    
         
            +
                    return /*#__PURE__*/ _react.default.createElement(_Item.Item, {
         
     | 
| 
      
 73 
     | 
    
         
            +
                        key: index,
         
     | 
| 
      
 74 
     | 
    
         
            +
                        item: item,
         
     | 
| 
      
 75 
     | 
    
         
            +
                        pathToItem: [
         
     | 
| 
      
 76 
     | 
    
         
            +
                            index
         
     | 
| 
      
 77 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 78 
     | 
    
         
            +
                    });
         
     | 
| 
      
 79 
     | 
    
         
            +
                }), afterList));
         
     | 
| 
      
 80 
     | 
    
         
            +
            };
         
     | 
| 
      
 81 
     | 
    
         
            +
            var VirtualTreeList = function(param) {
         
     | 
| 
      
 82 
     | 
    
         
            +
                var _param_items = param.items, items = _param_items === void 0 ? [] : _param_items, listMaxHeight = param.listMaxHeight, onScroll = param.onScroll, beforeList = param.beforeList, afterList = param.afterList;
         
     | 
| 
      
 83 
     | 
    
         
            +
                var _virtualItems_;
         
     | 
| 
      
 84 
     | 
    
         
            +
                var parentRef = (0, _react.useRef)(null);
         
     | 
| 
      
 85 
     | 
    
         
            +
                var virtualizer = (0, _reactvirtual.useVirtualizer)({
         
     | 
| 
      
 86 
     | 
    
         
            +
                    count: items.length,
         
     | 
| 
      
 87 
     | 
    
         
            +
                    getScrollElement: function() {
         
     | 
| 
      
 88 
     | 
    
         
            +
                        return parentRef.current;
         
     | 
| 
      
 89 
     | 
    
         
            +
                    },
         
     | 
| 
      
 90 
     | 
    
         
            +
                    estimateSize: function() {
         
     | 
| 
      
 91 
     | 
    
         
            +
                        return 48;
         
     | 
| 
      
 92 
     | 
    
         
            +
                    }
         
     | 
| 
      
 93 
     | 
    
         
            +
                });
         
     | 
| 
      
 94 
     | 
    
         
            +
                var virtualItems = virtualizer.getVirtualItems();
         
     | 
| 
      
 95 
     | 
    
         
            +
                var _virtualItems__start;
         
     | 
| 
      
 96 
     | 
    
         
            +
                return /*#__PURE__*/ _react.default.createElement(_TreeListstyles.ListWrapper, null, beforeList, /*#__PURE__*/ _react.default.createElement("div", {
         
     | 
| 
      
 97 
     | 
    
         
            +
                    ref: parentRef,
         
     | 
| 
      
 98 
     | 
    
         
            +
                    style: {
         
     | 
| 
      
 99 
     | 
    
         
            +
                        height: 'auto',
         
     | 
| 
      
 100 
     | 
    
         
            +
                        maxHeight: (0, _utils.getHeightAsNumber)(listMaxHeight),
         
     | 
| 
      
 101 
     | 
    
         
            +
                        overflowY: 'auto'
         
     | 
| 
      
 102 
     | 
    
         
            +
                    },
         
     | 
| 
      
 103 
     | 
    
         
            +
                    onScroll: onScroll
         
     | 
| 
      
 104 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement("div", {
         
     | 
| 
      
 105 
     | 
    
         
            +
                    style: {
         
     | 
| 
      
 106 
     | 
    
         
            +
                        height: virtualizer.getTotalSize(),
         
     | 
| 
      
 107 
     | 
    
         
            +
                        width: '100%',
         
     | 
| 
      
 108 
     | 
    
         
            +
                        position: 'relative'
         
     | 
| 
      
 109 
     | 
    
         
            +
                    }
         
     | 
| 
      
 110 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement("div", {
         
     | 
| 
      
 111 
     | 
    
         
            +
                    style: {
         
     | 
| 
      
 112 
     | 
    
         
            +
                        position: 'absolute',
         
     | 
| 
      
 113 
     | 
    
         
            +
                        top: 0,
         
     | 
| 
      
 114 
     | 
    
         
            +
                        left: 0,
         
     | 
| 
      
 115 
     | 
    
         
            +
                        width: '100%',
         
     | 
| 
      
 116 
     | 
    
         
            +
                        transform: "translateY(".concat((_virtualItems__start = (_virtualItems_ = virtualItems[0]) === null || _virtualItems_ === void 0 ? void 0 : _virtualItems_.start) !== null && _virtualItems__start !== void 0 ? _virtualItems__start : 0, "px)")
         
     | 
| 
      
 117 
     | 
    
         
            +
                    }
         
     | 
| 
      
 118 
     | 
    
         
            +
                }, virtualItems.map(function(virtualRow) {
         
     | 
| 
      
 119 
     | 
    
         
            +
                    return /*#__PURE__*/ _react.default.createElement("div", {
         
     | 
| 
      
 120 
     | 
    
         
            +
                        key: virtualRow.key,
         
     | 
| 
      
 121 
     | 
    
         
            +
                        "data-index": virtualRow.index,
         
     | 
| 
      
 122 
     | 
    
         
            +
                        ref: virtualizer.measureElement
         
     | 
| 
      
 123 
     | 
    
         
            +
                    }, /*#__PURE__*/ _react.default.createElement(_Item.Item, {
         
     | 
| 
      
 124 
     | 
    
         
            +
                        item: items[virtualRow.index],
         
     | 
| 
      
 125 
     | 
    
         
            +
                        pathToItem: [
         
     | 
| 
      
 126 
     | 
    
         
            +
                            virtualRow.index
         
     | 
| 
      
 127 
     | 
    
         
            +
                        ]
         
     | 
| 
      
 128 
     | 
    
         
            +
                    }));
         
     | 
| 
      
 129 
     | 
    
         
            +
                })))), afterList);
         
     | 
| 
      
 130 
     | 
    
         
            +
            };
         
     | 
| 
         @@ -0,0 +1,50 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
      
 3 
     | 
    
         
            +
                value: true
         
     | 
| 
      
 4 
     | 
    
         
            +
            });
         
     | 
| 
      
 5 
     | 
    
         
            +
            function _export(target, all) {
         
     | 
| 
      
 6 
     | 
    
         
            +
                for(var name in all)Object.defineProperty(target, name, {
         
     | 
| 
      
 7 
     | 
    
         
            +
                    enumerable: true,
         
     | 
| 
      
 8 
     | 
    
         
            +
                    get: Object.getOwnPropertyDescriptor(all, name).get
         
     | 
| 
      
 9 
     | 
    
         
            +
                });
         
     | 
| 
      
 10 
     | 
    
         
            +
            }
         
     | 
| 
      
 11 
     | 
    
         
            +
            _export(exports, {
         
     | 
| 
      
 12 
     | 
    
         
            +
                get ListWrapper () {
         
     | 
| 
      
 13 
     | 
    
         
            +
                    return ListWrapper;
         
     | 
| 
      
 14 
     | 
    
         
            +
                },
         
     | 
| 
      
 15 
     | 
    
         
            +
                get ScrollContainer () {
         
     | 
| 
      
 16 
     | 
    
         
            +
                    return ScrollContainer;
         
     | 
| 
      
 17 
     | 
    
         
            +
                }
         
     | 
| 
      
 18 
     | 
    
         
            +
            });
         
     | 
| 
      
 19 
     | 
    
         
            +
            var _styledcomponents = /*#__PURE__*/ _interop_require_default(require("styled-components"));
         
     | 
| 
      
 20 
     | 
    
         
            +
            var _Comboboxtokens = require("../../Combobox.tokens");
         
     | 
| 
      
 21 
     | 
    
         
            +
            function _interop_require_default(obj) {
         
     | 
| 
      
 22 
     | 
    
         
            +
                return obj && obj.__esModule ? obj : {
         
     | 
| 
      
 23 
     | 
    
         
            +
                    default: obj
         
     | 
| 
      
 24 
     | 
    
         
            +
                };
         
     | 
| 
      
 25 
     | 
    
         
            +
            }
         
     | 
| 
      
 26 
     | 
    
         
            +
            var ListWrapper = _styledcomponents.default.div.withConfig({
         
     | 
| 
      
 27 
     | 
    
         
            +
                displayName: "TreeList.styles__ListWrapper",
         
     | 
| 
      
 28 
     | 
    
         
            +
                componentId: "sc-1116f9b8-0"
         
     | 
| 
      
 29 
     | 
    
         
            +
            })([
         
     | 
| 
      
 30 
     | 
    
         
            +
                "width:100%;padding:calc(var(",
         
     | 
| 
      
 31 
     | 
    
         
            +
                ") + var(",
         
     | 
| 
      
 32 
     | 
    
         
            +
                ",0rem));border-radius:var(",
         
     | 
| 
      
 33 
     | 
    
         
            +
                ");box-sizing:border-box;background:var(",
         
     | 
| 
      
 34 
     | 
    
         
            +
                ");box-shadow:",
         
     | 
| 
      
 35 
     | 
    
         
            +
                ",inset 0 0 0 var(",
         
     | 
| 
      
 36 
     | 
    
         
            +
                ",0rem) var(",
         
     | 
| 
      
 37 
     | 
    
         
            +
                ",transparent);"
         
     | 
| 
      
 38 
     | 
    
         
            +
            ], _Comboboxtokens.tokens.padding, _Comboboxtokens.tokens.dropdownBorderWidth, _Comboboxtokens.tokens.borderRadius, _Comboboxtokens.constants.background, _Comboboxtokens.constants.boxShadow, _Comboboxtokens.tokens.dropdownBorderWidth, _Comboboxtokens.tokens.dropdownBorderColor);
         
     | 
| 
      
 39 
     | 
    
         
            +
            var ScrollContainer = _styledcomponents.default.div.withConfig({
         
     | 
| 
      
 40 
     | 
    
         
            +
                displayName: "TreeList.styles__ScrollContainer",
         
     | 
| 
      
 41 
     | 
    
         
            +
                componentId: "sc-1116f9b8-1"
         
     | 
| 
      
 42 
     | 
    
         
            +
            })([
         
     | 
| 
      
 43 
     | 
    
         
            +
                "max-height:",
         
     | 
| 
      
 44 
     | 
    
         
            +
                ";overflow-x:hidden;overflow-y:auto;border-radius:calc(var(",
         
     | 
| 
      
 45 
     | 
    
         
            +
                ") - 0.125rem - var(",
         
     | 
| 
      
 46 
     | 
    
         
            +
                ",0rem));"
         
     | 
| 
      
 47 
     | 
    
         
            +
            ], function(param) {
         
     | 
| 
      
 48 
     | 
    
         
            +
                var listMaxHeight = param.listMaxHeight;
         
     | 
| 
      
 49 
     | 
    
         
            +
                return listMaxHeight || 'auto';
         
     | 
| 
      
 50 
     | 
    
         
            +
            }, _Comboboxtokens.tokens.borderRadius, _Comboboxtokens.tokens.dropdownBorderWidth);
         
     | 
| 
         @@ -0,0 +1,192 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            "use strict";
         
     | 
| 
      
 2 
     | 
    
         
            +
            Object.defineProperty(exports, "__esModule", {
         
     | 
| 
      
 3 
     | 
    
         
            +
                value: true
         
     | 
| 
      
 4 
     | 
    
         
            +
            });
         
     | 
| 
      
 5 
     | 
    
         
            +
            Object.defineProperty(exports, "Item", {
         
     | 
| 
      
 6 
     | 
    
         
            +
                enumerable: true,
         
     | 
| 
      
 7 
     | 
    
         
            +
                get: function() {
         
     | 
| 
      
 8 
     | 
    
         
            +
                    return Item;
         
     | 
| 
      
 9 
     | 
    
         
            +
                }
         
     | 
| 
      
 10 
     | 
    
         
            +
            });
         
     | 
| 
      
 11 
     | 
    
         
            +
            var _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
         
     | 
| 
      
 12 
     | 
    
         
            +
            var _Selecttokens = require("../../../../../../Select/Select.tokens");
         
     | 
| 
      
 13 
     | 
    
         
            +
            var _utils = require("../../../../../../Select/utils");
         
     | 
| 
      
 14 
     | 
    
         
            +
            var _hooks = require("../../../../../../../hooks");
         
     | 
| 
      
 15 
     | 
    
         
            +
            var _utils1 = require("../../../../../../../utils");
         
     | 
| 
      
 16 
     | 
    
         
            +
            var _treePathReducer = require("../../../../reducers/treePathReducer");
         
     | 
| 
      
 17 
     | 
    
         
            +
            var _Comboboxcontext = require("../../../../Combobox.context");
         
     | 
| 
      
 18 
     | 
    
         
            +
            var _Itemstyles = require("./Item.styles");
         
     | 
| 
      
 19 
     | 
    
         
            +
            function _array_like_to_array(arr, len) {
         
     | 
| 
      
 20 
     | 
    
         
            +
                if (len == null || len > arr.length) len = arr.length;
         
     | 
| 
      
 21 
     | 
    
         
            +
                for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
         
     | 
| 
      
 22 
     | 
    
         
            +
                return arr2;
         
     | 
| 
      
 23 
     | 
    
         
            +
            }
         
     | 
| 
      
 24 
     | 
    
         
            +
            function _array_without_holes(arr) {
         
     | 
| 
      
 25 
     | 
    
         
            +
                if (Array.isArray(arr)) return _array_like_to_array(arr);
         
     | 
| 
      
 26 
     | 
    
         
            +
            }
         
     | 
| 
      
 27 
     | 
    
         
            +
            function _getRequireWildcardCache(nodeInterop) {
         
     | 
| 
      
 28 
     | 
    
         
            +
                if (typeof WeakMap !== "function") return null;
         
     | 
| 
      
 29 
     | 
    
         
            +
                var cacheBabelInterop = new WeakMap();
         
     | 
| 
      
 30 
     | 
    
         
            +
                var cacheNodeInterop = new WeakMap();
         
     | 
| 
      
 31 
     | 
    
         
            +
                return (_getRequireWildcardCache = function(nodeInterop) {
         
     | 
| 
      
 32 
     | 
    
         
            +
                    return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
         
     | 
| 
      
 33 
     | 
    
         
            +
                })(nodeInterop);
         
     | 
| 
      
 34 
     | 
    
         
            +
            }
         
     | 
| 
      
 35 
     | 
    
         
            +
            function _interop_require_wildcard(obj, nodeInterop) {
         
     | 
| 
      
 36 
     | 
    
         
            +
                if (!nodeInterop && obj && obj.__esModule) {
         
     | 
| 
      
 37 
     | 
    
         
            +
                    return obj;
         
     | 
| 
      
 38 
     | 
    
         
            +
                }
         
     | 
| 
      
 39 
     | 
    
         
            +
                if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
         
     | 
| 
      
 40 
     | 
    
         
            +
                    return {
         
     | 
| 
      
 41 
     | 
    
         
            +
                        default: obj
         
     | 
| 
      
 42 
     | 
    
         
            +
                    };
         
     | 
| 
      
 43 
     | 
    
         
            +
                }
         
     | 
| 
      
 44 
     | 
    
         
            +
                var cache = _getRequireWildcardCache(nodeInterop);
         
     | 
| 
      
 45 
     | 
    
         
            +
                if (cache && cache.has(obj)) {
         
     | 
| 
      
 46 
     | 
    
         
            +
                    return cache.get(obj);
         
     | 
| 
      
 47 
     | 
    
         
            +
                }
         
     | 
| 
      
 48 
     | 
    
         
            +
                var newObj = {
         
     | 
| 
      
 49 
     | 
    
         
            +
                    __proto__: null
         
     | 
| 
      
 50 
     | 
    
         
            +
                };
         
     | 
| 
      
 51 
     | 
    
         
            +
                var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
         
     | 
| 
      
 52 
     | 
    
         
            +
                for(var key in obj){
         
     | 
| 
      
 53 
     | 
    
         
            +
                    if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
         
     | 
| 
      
 54 
     | 
    
         
            +
                        var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
         
     | 
| 
      
 55 
     | 
    
         
            +
                        if (desc && (desc.get || desc.set)) {
         
     | 
| 
      
 56 
     | 
    
         
            +
                            Object.defineProperty(newObj, key, desc);
         
     | 
| 
      
 57 
     | 
    
         
            +
                        } else {
         
     | 
| 
      
 58 
     | 
    
         
            +
                            newObj[key] = obj[key];
         
     | 
| 
      
 59 
     | 
    
         
            +
                        }
         
     | 
| 
      
 60 
     | 
    
         
            +
                    }
         
     | 
| 
      
 61 
     | 
    
         
            +
                }
         
     | 
| 
      
 62 
     | 
    
         
            +
                newObj.default = obj;
         
     | 
| 
      
 63 
     | 
    
         
            +
                if (cache) {
         
     | 
| 
      
 64 
     | 
    
         
            +
                    cache.set(obj, newObj);
         
     | 
| 
      
 65 
     | 
    
         
            +
                }
         
     | 
| 
      
 66 
     | 
    
         
            +
                return newObj;
         
     | 
| 
      
 67 
     | 
    
         
            +
            }
         
     | 
| 
      
 68 
     | 
    
         
            +
            function _iterable_to_array(iter) {
         
     | 
| 
      
 69 
     | 
    
         
            +
                if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
         
     | 
| 
      
 70 
     | 
    
         
            +
            }
         
     | 
| 
      
 71 
     | 
    
         
            +
            function _non_iterable_spread() {
         
     | 
| 
      
 72 
     | 
    
         
            +
                throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
         
     | 
| 
      
 73 
     | 
    
         
            +
            }
         
     | 
| 
      
 74 
     | 
    
         
            +
            function _to_consumable_array(arr) {
         
     | 
| 
      
 75 
     | 
    
         
            +
                return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
         
     | 
| 
      
 76 
     | 
    
         
            +
            }
         
     | 
| 
      
 77 
     | 
    
         
            +
            function _unsupported_iterable_to_array(o, minLen) {
         
     | 
| 
      
 78 
     | 
    
         
            +
                if (!o) return;
         
     | 
| 
      
 79 
     | 
    
         
            +
                if (typeof o === "string") return _array_like_to_array(o, minLen);
         
     | 
| 
      
 80 
     | 
    
         
            +
                var n = Object.prototype.toString.call(o).slice(8, -1);
         
     | 
| 
      
 81 
     | 
    
         
            +
                if (n === "Object" && o.constructor) n = o.constructor.name;
         
     | 
| 
      
 82 
     | 
    
         
            +
                if (n === "Map" || n === "Set") return Array.from(n);
         
     | 
| 
      
 83 
     | 
    
         
            +
                if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
         
     | 
| 
      
 84 
     | 
    
         
            +
            }
         
     | 
| 
      
 85 
     | 
    
         
            +
            var Item = function(param) {
         
     | 
| 
      
 86 
     | 
    
         
            +
                var item = param.item, pathToItem = param.pathToItem;
         
     | 
| 
      
 87 
     | 
    
         
            +
                var _valueToPathMap_get, _item_items;
         
     | 
| 
      
 88 
     | 
    
         
            +
                var label = item.label, value = item.value, disabled = item.disabled, contentLeft = item.contentLeft, contentRight = item.contentRight;
         
     | 
| 
      
 89 
     | 
    
         
            +
                var isLeaf = !(item === null || item === void 0 ? void 0 : item.items);
         
     | 
| 
      
 90 
     | 
    
         
            +
                var _useContext = (0, _react.useContext)(_Comboboxcontext.Context), checked = _useContext.checked, multiple = _useContext.multiple, size = _useContext.size, variant = _useContext.variant, renderItem = _useContext.renderItem, // eslint-disable-next-line @typescript-eslint/ban-ts-comment
         
     | 
| 
      
 91 
     | 
    
         
            +
                // @ts-ignore
         
     | 
| 
      
 92 
     | 
    
         
            +
                _checkboxAppearance = _useContext._checkboxAppearance, focusedPath = _useContext.focusedPath, treePath = _useContext.treePath, dispatchTreePath = _useContext.dispatchTreePath, arrowPlacement = _useContext.arrowPlacement, handleItemClick = _useContext.handleItemClick, handleCheckboxChange = _useContext.handleCheckboxChange, valueToPathMap = _useContext.valueToPathMap;
         
     | 
| 
      
 93 
     | 
    
         
            +
                var ref = (0, _react.useRef)(null);
         
     | 
| 
      
 94 
     | 
    
         
            +
                var itemDisabled = disabled;
         
     | 
| 
      
 95 
     | 
    
         
            +
                var disabledClassName = itemDisabled ? _Selecttokens.classes.dropdownItemIsDisabled : undefined;
         
     | 
| 
      
 96 
     | 
    
         
            +
                var currentItemDepth = (((_valueToPathMap_get = valueToPathMap.get(item.value.toString())) === null || _valueToPathMap_get === void 0 ? void 0 : _valueToPathMap_get.length) || 0) - 1;
         
     | 
| 
      
 97 
     | 
    
         
            +
                var isCurrentLevelOpened = (0, _treePathReducer.keyExists)(treePath, valueToPathMap.get(value.toString()) || []);
         
     | 
| 
      
 98 
     | 
    
         
            +
                var withArrowInverse = isCurrentLevelOpened ? _Selecttokens.classes.arrowInverse : undefined;
         
     | 
| 
      
 99 
     | 
    
         
            +
                var focusedClass = (0, _utils1.isArraysEqual)(pathToItem, focusedPath) ? _Selecttokens.classes.dropdownItemIsFocused : undefined;
         
     | 
| 
      
 100 
     | 
    
         
            +
                var handleClick = function(e) {
         
     | 
| 
      
 101 
     | 
    
         
            +
                    if (itemDisabled) return;
         
     | 
| 
      
 102 
     | 
    
         
            +
                    if (!isLeaf) {
         
     | 
| 
      
 103 
     | 
    
         
            +
                        dispatchTreePath({
         
     | 
| 
      
 104 
     | 
    
         
            +
                            type: 'toggled_level',
         
     | 
| 
      
 105 
     | 
    
         
            +
                            value: valueToPathMap.get(value.toString()) || []
         
     | 
| 
      
 106 
     | 
    
         
            +
                        });
         
     | 
| 
      
 107 
     | 
    
         
            +
                    }
         
     | 
| 
      
 108 
     | 
    
         
            +
                    if (handleItemClick) {
         
     | 
| 
      
 109 
     | 
    
         
            +
                        handleItemClick(item, e);
         
     | 
| 
      
 110 
     | 
    
         
            +
                    }
         
     | 
| 
      
 111 
     | 
    
         
            +
                };
         
     | 
| 
      
 112 
     | 
    
         
            +
                var handleChange = function(e) {
         
     | 
| 
      
 113 
     | 
    
         
            +
                    if (itemDisabled) return;
         
     | 
| 
      
 114 
     | 
    
         
            +
                    e.stopPropagation();
         
     | 
| 
      
 115 
     | 
    
         
            +
                    handleCheckboxChange(item);
         
     | 
| 
      
 116 
     | 
    
         
            +
                };
         
     | 
| 
      
 117 
     | 
    
         
            +
                (0, _hooks.useDidMountEffect)(function() {
         
     | 
| 
      
 118 
     | 
    
         
            +
                    if (focusedClass && (ref === null || ref === void 0 ? void 0 : ref.current)) {
         
     | 
| 
      
 119 
     | 
    
         
            +
                        ref.current.scrollIntoView({
         
     | 
| 
      
 120 
     | 
    
         
            +
                            behavior: 'smooth',
         
     | 
| 
      
 121 
     | 
    
         
            +
                            block: 'center',
         
     | 
| 
      
 122 
     | 
    
         
            +
                            inline: 'center'
         
     | 
| 
      
 123 
     | 
    
         
            +
                        });
         
     | 
| 
      
 124 
     | 
    
         
            +
                    }
         
     | 
| 
      
 125 
     | 
    
         
            +
                }, [
         
     | 
| 
      
 126 
     | 
    
         
            +
                    focusedClass
         
     | 
| 
      
 127 
     | 
    
         
            +
                ]);
         
     | 
| 
      
 128 
     | 
    
         
            +
                return /*#__PURE__*/ _react.default.createElement(_Itemstyles.ItemWrapper, null, /*#__PURE__*/ _react.default.createElement(_Itemstyles.Wrapper, {
         
     | 
| 
      
 129 
     | 
    
         
            +
                    ref: ref,
         
     | 
| 
      
 130 
     | 
    
         
            +
                    className: (0, _utils1.cx)(focusedClass, disabledClassName),
         
     | 
| 
      
 131 
     | 
    
         
            +
                    onClick: handleClick,
         
     | 
| 
      
 132 
     | 
    
         
            +
                    variant: variant,
         
     | 
| 
      
 133 
     | 
    
         
            +
                    role: "treeitem"
         
     | 
| 
      
 134 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.Offset, {
         
     | 
| 
      
 135 
     | 
    
         
            +
                    depth: currentItemDepth
         
     | 
| 
      
 136 
     | 
    
         
            +
                }), arrowPlacement === 'left' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.DisclosureIconWrapper, {
         
     | 
| 
      
 137 
     | 
    
         
            +
                    visibility: isLeaf ? 'hidden' : 'visible'
         
     | 
| 
      
 138 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledArrowLeft, {
         
     | 
| 
      
 139 
     | 
    
         
            +
                    size: (0, _utils.sizeToIconSize)(size, variant),
         
     | 
| 
      
 140 
     | 
    
         
            +
                    color: "inherit",
         
     | 
| 
      
 141 
     | 
    
         
            +
                    className: withArrowInverse
         
     | 
| 
      
 142 
     | 
    
         
            +
                })), multiple && /*#__PURE__*/ _react.default.createElement(_Itemstyles.IconWrapper, {
         
     | 
| 
      
 143 
     | 
    
         
            +
                    variant: variant
         
     | 
| 
      
 144 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCheckboxWrapper, {
         
     | 
| 
      
 145 
     | 
    
         
            +
                    onClick: function(e) {
         
     | 
| 
      
 146 
     | 
    
         
            +
                        return e.stopPropagation();
         
     | 
| 
      
 147 
     | 
    
         
            +
                    }
         
     | 
| 
      
 148 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCheckbox, {
         
     | 
| 
      
 149 
     | 
    
         
            +
                    disabled: itemDisabled,
         
     | 
| 
      
 150 
     | 
    
         
            +
                    checked: Boolean(checked.get(item.value)),
         
     | 
| 
      
 151 
     | 
    
         
            +
                    indeterminate: checked.get(item.value) === 'indeterminate',
         
     | 
| 
      
 152 
     | 
    
         
            +
                    onChange: handleChange,
         
     | 
| 
      
 153 
     | 
    
         
            +
                    appearance: _checkboxAppearance !== null && _checkboxAppearance !== void 0 ? _checkboxAppearance : 'default'
         
     | 
| 
      
 154 
     | 
    
         
            +
                }))), !multiple && arrowPlacement === 'right' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.IconWrapper, {
         
     | 
| 
      
 155 
     | 
    
         
            +
                    variant: variant
         
     | 
| 
      
 156 
     | 
    
         
            +
                }, checked.get(item.value) === 'dot' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledIndicator, {
         
     | 
| 
      
 157 
     | 
    
         
            +
                    size: "s",
         
     | 
| 
      
 158 
     | 
    
         
            +
                    view: "default"
         
     | 
| 
      
 159 
     | 
    
         
            +
                }), checked.get(item.value) === 'done' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledIconDone, {
         
     | 
| 
      
 160 
     | 
    
         
            +
                    size: (0, _utils.sizeToIconSize)(size, variant),
         
     | 
| 
      
 161 
     | 
    
         
            +
                    color: "inherit"
         
     | 
| 
      
 162 
     | 
    
         
            +
                })), renderItem ? /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledText, null, renderItem(item)) : /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledWrapper, null, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledCell, {
         
     | 
| 
      
 163 
     | 
    
         
            +
                    contentLeft: contentLeft,
         
     | 
| 
      
 164 
     | 
    
         
            +
                    contentRight: contentRight,
         
     | 
| 
      
 165 
     | 
    
         
            +
                    // TODO: #1548
         
     | 
| 
      
 166 
     | 
    
         
            +
                    // eslint-disable-next-line @typescript-eslint/ban-ts-comment
         
     | 
| 
      
 167 
     | 
    
         
            +
                    // @ts-ignore
         
     | 
| 
      
 168 
     | 
    
         
            +
                    title: /*#__PURE__*/ _react.default.createElement("span", null, label)
         
     | 
| 
      
 169 
     | 
    
         
            +
                })), !multiple && arrowPlacement === 'left' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.IconWrapper, {
         
     | 
| 
      
 170 
     | 
    
         
            +
                    variant: variant
         
     | 
| 
      
 171 
     | 
    
         
            +
                }, checked.get(item.value) === 'dot' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledIndicator, {
         
     | 
| 
      
 172 
     | 
    
         
            +
                    size: "s",
         
     | 
| 
      
 173 
     | 
    
         
            +
                    view: "default"
         
     | 
| 
      
 174 
     | 
    
         
            +
                }), checked.get(item.value) === 'done' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledIconDone, {
         
     | 
| 
      
 175 
     | 
    
         
            +
                    size: (0, _utils.sizeToIconSize)(size, variant),
         
     | 
| 
      
 176 
     | 
    
         
            +
                    color: "inherit"
         
     | 
| 
      
 177 
     | 
    
         
            +
                })), arrowPlacement === 'right' && /*#__PURE__*/ _react.default.createElement(_Itemstyles.DisclosureIconWrapper, {
         
     | 
| 
      
 178 
     | 
    
         
            +
                    visibility: isLeaf ? 'hidden' : 'visible'
         
     | 
| 
      
 179 
     | 
    
         
            +
                }, /*#__PURE__*/ _react.default.createElement(_Itemstyles.StyledArrowRight, {
         
     | 
| 
      
 180 
     | 
    
         
            +
                    size: (0, _utils.sizeToIconSize)(size, variant),
         
     | 
| 
      
 181 
     | 
    
         
            +
                    color: "inherit",
         
     | 
| 
      
 182 
     | 
    
         
            +
                    className: withArrowInverse
         
     | 
| 
      
 183 
     | 
    
         
            +
                }))), !isLeaf && isCurrentLevelOpened && /*#__PURE__*/ _react.default.createElement(_Itemstyles.ChildItems, null, (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map(function(item, index) {
         
     | 
| 
      
 184 
     | 
    
         
            +
                    return /*#__PURE__*/ _react.default.createElement(Item, {
         
     | 
| 
      
 185 
     | 
    
         
            +
                        item: item,
         
     | 
| 
      
 186 
     | 
    
         
            +
                        key: item.value,
         
     | 
| 
      
 187 
     | 
    
         
            +
                        pathToItem: _to_consumable_array(pathToItem).concat([
         
     | 
| 
      
 188 
     | 
    
         
            +
                            index
         
     | 
| 
      
 189 
     | 
    
         
            +
                        ])
         
     | 
| 
      
 190 
     | 
    
         
            +
                    });
         
     | 
| 
      
 191 
     | 
    
         
            +
                })));
         
     | 
| 
      
 192 
     | 
    
         
            +
            };
         
     |