1 line
8.2 KiB
Plaintext
1 line
8.2 KiB
Plaintext
|
{"version":3,"sources":["DrawerRouter.tsx"],"names":["DrawerActions","TabActions","openDrawer","type","closeDrawer","toggleDrawer","isDrawerOpen","state","Boolean","history","some","it","filter","DrawerRouter","openByDefault","rest","router","getInitialState","routeNames","routeParamList","routeGetIdList","stale","key","getRehydratedState","partialState","getStateForRouteFocus","result","getStateForAction","action","options","actionCreators"],"mappings":";;;;;;;;AAAA;;AAOA;;;;;;AAqDO,MAAMA,aAAa,GAAG,EAC3B,GAAGC,qBADwB;;AAE3BC,EAAAA,UAAU,GAAqB;AAC7B,WAAO;AAAEC,MAAAA,IAAI,EAAE;AAAR,KAAP;AACD,GAJ0B;;AAK3BC,EAAAA,WAAW,GAAqB;AAC9B,WAAO;AAAED,MAAAA,IAAI,EAAE;AAAR,KAAP;AACD,GAP0B;;AAQ3BE,EAAAA,YAAY,GAAqB;AAC/B,WAAO;AAAEF,MAAAA,IAAI,EAAE;AAAR,KAAP;AACD;;AAV0B,CAAtB;;;AAaP,MAAMG,YAAY,GAChBC,KADmB;AAAA;;AAAA,SAIhBC,OAAO,mBAACD,KAAK,CAACE,OAAP,mDAAC,eAAeC,IAAf,CAAqBC,EAAD,IAAQA,EAAE,CAACR,IAAH,KAAY,QAAxC,CAAD,CAJS;AAAA,CAArB;;AAMA,MAAMD,UAAU,GACdK,KADiB,IAEwB;AACzC,MAAID,YAAY,CAACC,KAAD,CAAhB,EAAyB;AACvB,WAAOA,KAAP;AACD;;AAED,SAAO,EACL,GAAGA,KADE;AAELE,IAAAA,OAAO,EAAE,CAAC,GAAGF,KAAK,CAACE,OAAV,EAAmB;AAAEN,MAAAA,IAAI,EAAE;AAAR,KAAnB;AAFJ,GAAP;AAID,CAXD;;AAaA,MAAMC,WAAW,GACfG,KADkB,IAEuB;AACzC,MAAI,CAACD,YAAY,CAACC,KAAD,CAAjB,EAA0B;AACxB,WAAOA,KAAP;AACD;;AAED,SAAO,EACL,GAAGA,KADE;AA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AAhC,EAAwCC,OAAxC,CAAP;AA5BJ;AA8BD,KA1FI;;AA4FLC,IAAAA,cAAc,EAAE9B;AA5FX,GAAP;AA8FD","sourcesContent":["import { nanoid } from 'nanoid/non-secure';\nimport type {\n PartialState,\n CommonNavigationAction,\n Router,\n ParamListBase,\n} from './types';\nimport TabRouter, {\n TabActions,\n TabActionType,\n TabRouterOptions,\n TabNavigationState,\n TabActionHelpers,\n} from './TabRouter';\n\nexport type DrawerActionType =\n | TabActionType\n | {\n type: 'OPEN_DRAWER' | 'CLOSE_DRAWER' | 'TOGGLE_DRAWER';\n source?: string;\n target?: string;\n };\n\nexport type DrawerRouterOptions = TabRouterOptions & {\n openByDefault?: boolean;\n};\n\nexport t
|