rc-material-sidebar
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -1,2 +0,2 @@ | ||
export function ChildItem({ item: _0x552903, variant: _0x19cda4, onClick: _0xe1b89a, show: _0x273b4c, setShow: _0x590139 }: { | ||
export function ChildItem({ item: _0x5e437a, variant: _0x3b0019, onClick: _0x3dcb7e, show: _0x504880, setShow: _0x1beb3a }: { | ||
item: any; | ||
@@ -8,3 +8,3 @@ variant: any; | ||
}): any; | ||
declare function ListC({ items: _0x53d5a6, variant: _0x288215, onClick: _0x126ae8 }: { | ||
declare function ListC({ items: _0xf53039, variant: _0x109552, onClick: _0x4d9c75 }: { | ||
items: any; | ||
@@ -11,0 +11,0 @@ variant: any; |
@@ -1,1 +0,1 @@ | ||
function _0x1183(_0x356393,_0x2759bc){const _0x3c162b=_0x3c16();return _0x1183=function(_0x1183bf,_0x2d09e8){_0x1183bf=_0x1183bf-0x83;let _0x8a34b1=_0x3c162b[_0x1183bf];return _0x8a34b1;},_0x1183(_0x356393,_0x2759bc);}(function(_0x2ba2c8,_0x1e3f2f){const _0x397891=_0x1183,_0x18301f=_0x2ba2c8();while(!![]){try{const _0x19eefb=parseInt(_0x397891(0x8e))/0x1*(parseInt(_0x397891(0x96))/0x2)+-parseInt(_0x397891(0x95))/0x3*(parseInt(_0x397891(0x8c))/0x4)+parseInt(_0x397891(0x88))/0x5+parseInt(_0x397891(0x94))/0x6+-parseInt(_0x397891(0x90))/0x7*(parseInt(_0x397891(0x8b))/0x8)+-parseInt(_0x397891(0x8a))/0x9*(parseInt(_0x397891(0x89))/0xa)+-parseInt(_0x397891(0x86))/0xb;if(_0x19eefb===_0x1e3f2f)break;else _0x18301f['push'](_0x18301f['shift']());}catch(_0x26177d){_0x18301f['push'](_0x18301f['shift']());}}}(_0x3c16,0x6fa78));import{useState,useEffect}from'react';import{useLocation,NavLink}from'react-router-dom';import{ListItemButton,ListItemIcon,Collapse,List}from'@mui/material';import _0x4d2e55 from'@mui/material/ListItemText';import _0x3fdf61 from'@mui/material/ListItem';import{jsx,Fragment,jsxs}from'react/jsx-runtime';const ListC=({items:_0x53d5a6,variant:_0x288215,onClick:_0x126ae8})=>{const _0x43cf76=_0x1183,[_0x487546,_0x1ebe07]=useState(![]),_0x26c3d8=useLocation();return useEffect(()=>{const _0x48af95=_0x1183;let _0x5b9f1e=null;for(let _0x3ec55f=0x0;_0x3ec55f<_0x53d5a6[_0x48af95(0x91)];_0x3ec55f++){const _0x289397=_0x53d5a6[_0x3ec55f];if(_0x289397[_0x48af95(0x85)])for(let _0x5ce763=0x0;_0x5ce763<_0x289397[_0x48af95(0x85)][_0x48af95(0x91)];_0x5ce763++){const _0x36fa39=_0x289397[_0x48af95(0x85)][_0x5ce763];_0x36fa39['link']===_0x26c3d8['pathname']&&(_0x5b9f1e=_0x289397);}else _0x289397[_0x48af95(0x84)]===_0x26c3d8[_0x48af95(0x97)]&&(_0x5b9f1e=_0x289397);}_0x1ebe07(_0x5b9f1e);},[]),_0x53d5a6[_0x43cf76(0x87)](_0x6c1ae7=>jsx(ChildItem,{'variant':_0x288215,'item':_0x6c1ae7,'onClick':_0x126ae8,'show':_0x487546,'setShow':_0x1ebe07},_0x6c1ae7[_0x43cf76(0x83)]));},ChildItem=({item:_0x552903,variant:_0x19cda4,onClick:_0xe1b89a,show:_0x273b4c,setShow:_0x590139})=>{const _0x1791c7=_0x1183,_0x2383e3=(_0x11619c,_0x80fc7f)=>{_0xe1b89a(_0x11619c,_0x80fc7f),_0x590139(_0x80fc7f);};return jsx(Fragment,{'children':_0x552903['children']?.['length']>0x0?jsxs(Fragment,{'children':[jsx(_0x3fdf61,{'disablePadding':!![],'children':jsxs(ListItemButton,{'onClick':_0x3ce553=>{const _0x93affe=_0x1183;_0x552903[_0x93affe(0x8d)]=_0x552903,_0x2383e3(_0x3ce553,_0x552903);},'children':[_0x552903[_0x1791c7(0x98)]&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x19cda4===_0x1791c7(0x8f)?0x1:_0x1791c7(0x93)},'children':_0x552903[_0x1791c7(0x98)]}),jsx(_0x4d2e55,{'primary':_0x552903[_0x1791c7(0x92)],'sx':{'opacity':_0x19cda4==='full'?0x1:0x0}})]})}),jsx(Collapse,{'in':_0x273b4c[_0x1791c7(0x83)]===_0x552903[_0x1791c7(0x83)]?!![]:![],'children':jsx(List,{'children':_0x552903[_0x1791c7(0x85)][_0x1791c7(0x87)](_0x11fa6c=>jsx(_0x3fdf61,{'disablePadding':!![],'children':jsx(NavLink,{'to':_0x11fa6c[_0x1791c7(0x84)],'onClick':_0x1fdfe2=>{const _0x55ce57=_0x1791c7;_0x552903[_0x55ce57(0x8d)]=_0x11fa6c,_0x2383e3(_0x1fdfe2,_0x552903);},'end':!![],'children':jsxs(ListItemButton,{'children':[_0x11fa6c[_0x1791c7(0x98)]&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x19cda4===_0x1791c7(0x8f)?0x1:'auto'},'children':_0x11fa6c['icon']}),jsx(_0x4d2e55,{'primary':_0x11fa6c[_0x1791c7(0x92)],'sx':{'opacity':_0x19cda4===_0x1791c7(0x8f)?0x1:0x0}})]})})},_0x11fa6c[_0x1791c7(0x83)]))})})]}):jsx(_0x3fdf61,{'disablePadding':!![],'children':jsx(NavLink,{'to':_0x552903[_0x1791c7(0x84)],'onClick':_0x449729=>{const _0x5d84f3=_0x1791c7;_0x552903[_0x5d84f3(0x8d)]=_0x552903,_0x2383e3(_0x449729,_0x552903);},'end':!![],'children':jsxs(ListItemButton,{'children':[_0x552903['icon']&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x19cda4===_0x1791c7(0x8f)?0x1:_0x1791c7(0x93)},'children':_0x552903['icon']}),jsx(_0x4d2e55,{'primary':_0x552903['label'],'sx':{'opacity':_0x19cda4===_0x1791c7(0x8f)?0x1:0x0}})]})})})});};export{ChildItem,ListC as default};function _0x3c16(){const _0x292736=['5685790HtxQmK','map','4476320HIvAGB','308510vcMRkI','117ZKcfnj','149752fLhEMu','40SDSWHX','current','243neMLcp','full','77VBhZNk','length','label','auto','2013138kWrqmO','100236SDefsi','5634ieJFjF','pathname','icon','key','link','children'];_0x3c16=function(){return _0x292736;};return _0x3c16();} | ||
(function(_0x2f8808,_0x6c649d){const _0x54b9ff=_0xfd24,_0x2b3663=_0x2f8808();while(!![]){try{const _0x377ba8=parseInt(_0x54b9ff(0xe0))/0x1+-parseInt(_0x54b9ff(0xe4))/0x2*(parseInt(_0x54b9ff(0xdb))/0x3)+parseInt(_0x54b9ff(0xdf))/0x4+parseInt(_0x54b9ff(0xe1))/0x5+-parseInt(_0x54b9ff(0xe2))/0x6+-parseInt(_0x54b9ff(0xe3))/0x7+parseInt(_0x54b9ff(0xd9))/0x8*(parseInt(_0x54b9ff(0xdd))/0x9);if(_0x377ba8===_0x6c649d)break;else _0x2b3663['push'](_0x2b3663['shift']());}catch(_0x4b79fd){_0x2b3663['push'](_0x2b3663['shift']());}}}(_0x14b8,0xf3ce2));import{useState,useEffect}from'react';function _0xfd24(_0x349525,_0x1e6af5){const _0x14b8f7=_0x14b8();return _0xfd24=function(_0xfd2419,_0x571b7d){_0xfd2419=_0xfd2419-0xd7;let _0x3df252=_0x14b8f7[_0xfd2419];return _0x3df252;},_0xfd24(_0x349525,_0x1e6af5);}import{useLocation,NavLink}from'react-router-dom';import{ListItemButton,ListItemIcon,Collapse,List}from'@mui/material';import _0x401b10 from'@mui/material/ListItemText';function _0x14b8(){const _0x3e7f41=['7647864Fuajft','12804974vciYHL','2XuZgbC','pathname','map','full','length','children','link','key','auto','8lpZjyf','icon','4202658UAZKng','label','23408451SAhUVZ','current','78936MMCjZm','1961110cVTnGF','4608275gjnDgD'];_0x14b8=function(){return _0x3e7f41;};return _0x14b8();}import _0x572fd6 from'@mui/material/ListItem';import{jsx,Fragment,jsxs}from'react/jsx-runtime';const ListC=({items:_0xf53039,variant:_0x109552,onClick:_0x4d9c75})=>{const _0x45eda4=_0xfd24,[_0xa1ac65,_0x3f0016]=useState(![]),_0x37f6d9=useLocation();return useEffect(()=>{const _0x4f7595=_0xfd24;let _0x3d8af3=![];for(let _0x310669=0x0;_0x310669<_0xf53039['length'];_0x310669++){const _0x5b8629=_0xf53039[_0x310669];if(_0x5b8629[_0x4f7595(0xe9)])for(let _0xb556d5=0x0;_0xb556d5<_0x5b8629['children']['length'];_0xb556d5++){const _0x3c808a=_0x5b8629[_0x4f7595(0xe9)][_0xb556d5];_0x3c808a[_0x4f7595(0xea)]===_0x37f6d9[_0x4f7595(0xe5)]&&(_0x3d8af3=_0x5b8629);}else _0x5b8629['link']===_0x37f6d9[_0x4f7595(0xe5)]&&(_0x3d8af3=_0x5b8629);}_0x3f0016(_0x3d8af3);},[]),_0xf53039['map'](_0x588c31=>jsx(ChildItem,{'variant':_0x109552,'item':_0x588c31,'onClick':_0x4d9c75,'show':_0xa1ac65,'setShow':_0x3f0016},_0x588c31[_0x45eda4(0xd7)]));},ChildItem=({item:_0x5e437a,variant:_0x3b0019,onClick:_0x3dcb7e,show:_0x504880,setShow:_0x1beb3a})=>{const _0x9c889b=_0xfd24,_0x35d60c=(_0x521a96,_0x35734b)=>{_0x3dcb7e(_0x521a96,_0x35734b),_0x1beb3a(_0x35734b);};return jsx(Fragment,{'children':_0x5e437a['children']?.[_0x9c889b(0xe8)]>0x0?jsxs(Fragment,{'children':[jsx(_0x572fd6,{'disablePadding':!![],'children':jsxs(ListItemButton,{'onClick':_0x166693=>{_0x5e437a['current']=_0x5e437a,_0x35d60c(_0x166693,_0x5e437a);},'children':[_0x5e437a[_0x9c889b(0xda)]&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x3b0019===_0x9c889b(0xe7)?0x1:_0x9c889b(0xd8)},'children':_0x5e437a['icon']}),jsx(_0x401b10,{'primary':_0x5e437a[_0x9c889b(0xdc)],'sx':{'opacity':_0x3b0019==='full'?0x1:0x0}})]})}),jsx(Collapse,{'in':_0x504880['key']===_0x5e437a[_0x9c889b(0xd7)]?!![]:![],'children':jsx(List,{'children':_0x5e437a[_0x9c889b(0xe9)][_0x9c889b(0xe6)](_0x5ac663=>jsx(_0x572fd6,{'disablePadding':!![],'children':jsx(NavLink,{'to':_0x5ac663[_0x9c889b(0xea)],'onClick':_0x2fe84f=>{const _0x5d23d0=_0x9c889b;_0x5e437a[_0x5d23d0(0xde)]=_0x5ac663,_0x35d60c(_0x2fe84f,_0x5e437a);},'end':!![],'children':jsxs(ListItemButton,{'children':[_0x5ac663[_0x9c889b(0xda)]&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x3b0019===_0x9c889b(0xe7)?0x1:_0x9c889b(0xd8)},'children':_0x5ac663[_0x9c889b(0xda)]}),jsx(_0x401b10,{'primary':_0x5ac663[_0x9c889b(0xdc)],'sx':{'opacity':_0x3b0019===_0x9c889b(0xe7)?0x1:0x0}})]})})},_0x5ac663['key']))})})]}):jsx(_0x572fd6,{'disablePadding':!![],'children':jsx(NavLink,{'to':_0x5e437a['link'],'onClick':_0x2f9985=>{const _0x41cb3c=_0x9c889b;_0x5e437a[_0x41cb3c(0xde)]=_0x5e437a,_0x35d60c(_0x2f9985,_0x5e437a);},'end':!![],'children':jsxs(ListItemButton,{'children':[_0x5e437a[_0x9c889b(0xda)]&&jsx(ListItemIcon,{'sx':{'minWidth':0x0,'mr':_0x3b0019==='full'?0x1:_0x9c889b(0xd8)},'children':_0x5e437a[_0x9c889b(0xda)]}),jsx(_0x401b10,{'primary':_0x5e437a[_0x9c889b(0xdc)],'sx':{'opacity':_0x3b0019===_0x9c889b(0xe7)?0x1:0x0}})]})})})});};export{ChildItem,ListC as default}; |
{ | ||
"name": "rc-material-sidebar", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "rc material sidebar", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
6616