import { ReplaySubject } from "rxjs" ; import * as webpackJsonpPushUtil from "src/electron-preload/webview/lib/provider-api/webpack-jsonp-push-util" ; import { Logger } from "src/shared/model/common" ; import { StandardSetupProviderInternals , StandardSetupProviderInternalsLazy } from "./model" ; import { curryFunctionMembers } from "src/shared/util" ; export const resolveStandardSetupStandardSetupProviderInternals = async ( _logger ) : Promise < StandardSetupProviderInternals > => { const logger = curryFunctionMembers ( _logger , nameof ( resolveStandardSetupStandardSetupProviderInternals ) ) ; logger . info ( ) ; return new Promise ( ( resolve ) => { const result = { "../../packages/components/containers/app/StandardSetup.tsx" : { value$ : new ReplaySubject ( 1 ) , _valueShape : null as any , } , } ; const resolveIfFullyInitialized = webpackJsonpPushUtil . buildFullyInitializedResolver ( result , resolve , logger ) ; webpackJsonpPushUtil . overridePushMethodGlobally ( { resultKeys : Object . keys ( result ) as ReadonlyArray < keyof typeof result > , chunkItemHook ( { resultKey , webpack_exports , webpack_require } ) { if ( resultKey === "../../packages/components/containers/app/StandardSetup.tsx" ) { webpackJsonpPushUtil . handleObservableValue ( result , { resultKey , webpack_exports , itemName : "StandardSetup" , itemCallResultTypeValidation : "object" , itemCallResultHandler : ( itemCallResult , notify , markAsInitialized ) => { const { createElement , useEffect } = webpack_require < typeof import ( "react" ) > ( "../../node_modules/react/index.js" ) ; return [ createElement ( ( ) => { const useApiModule = ( ( ) => { const key = "../../packages/components/hooks/useApi.ts" ; return webpack_require < StandardSetupProviderInternalsLazy [ typeof key ] > ( key ) ; } ) ( ) ; const useAuthenticationModule = ( ( ) => { const key = "../../packages/components/hooks/useAuthentication.ts" ; return webpack_require < StandardSetupProviderInternalsLazy [ typeof key ] > ( key ) ; } ) ( ) ; const useCacheModule = ( ( ) => { const key = "../../packages/components/hooks/useCache.ts" ; return webpack_require < StandardSetupProviderInternalsLazy [ typeof key ] > ( key ) ; } ) ( ) ; const reactRouterModule = ( ( ) => { const key = "../../node_modules/react-router/esm/react-router.js" ; return webpack_require < StandardSetupProviderInternalsLazy [ typeof key ] > ( key ) ; } ) ( ) ; const httpApi = useApiModule . default ( ) ; const authentication = useAuthenticationModule . default ( ) ; const cache = useCacheModule . default ( ) ; const history = reactRouterModule . useHistory ( ) ; useEffect ( ( ) => { notify ( { publicScope : { httpApi , authentication , cache , history } } ) ; markAsInitialized ( ) ; } ) ; return null ; } ) , itemCallResult , ] ; } , resolveIfFullyInitialized , } , logger ) ; } } , logger , } ) ; } ) ; } ;