/*! For license information please see Provider.dcf2f031ed98866c5b2a.js.LICENSE.txt */
"use strict";(self.webpackChunk_verdaccio_ui_theme=self.webpackChunk_verdaccio_ui_theme||[]).push([["Provider"],{"./src/pages/Version/VersionContextProvider.tsx":(e,a,o)=>{o.r(a),o.d(a,{default:()=>p});var r,t=o("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js"),n=o("../../../node_modules/.pnpm/react-redux@7.2.6_react-dom@17.0.2+react@17.0.2/node_modules/react-redux/es/index.js"),d=o("../../../node_modules/.pnpm/react-router@5.2.1_react@17.0.2/node_modules/react-router/esm/react-router.js"),c=o("./src/pages/Version/context.ts"),s=o("./src/pages/Version/get-route-package-name.ts");e=o.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);var i="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default.signature:function(e){return e},u=function(e){var a=e.children,o=(0,d.useParams)(),r=o.version,i=o.package,u=o.scope,l=(0,n.useSelector)((function(e){return e.manifest})),p=l.manifest,g=l.readme,m=l.packageName,f=l.hasNotBeenFound,v=(0,n.useSelector)((function(e){var a;return null==e||null===(a=e.loading)||void 0===a?void 0:a.models.manifest})),k=(0,n.useDispatch)();return(0,t.useEffect)((function(){var e=(0,s.default)(i,u);k.manifest.getManifest({packageName:e,packageVersion:r})}),[k,r,i,u]),t.createElement(c.DetailContext.Provider,{value:{packageMeta:p,packageVersion:r,readMe:g,packageName:m,isLoading:v,hasNotBeenFound:f}},a)};i(u,"useParams{{ version: packageVersion, package: pkgName, scope }}\nuseSelector{{ manifest, readme, packageName, hasNotBeenFound }}\nuseSelector{isLoading}\nuseDispatch{dispatch}\nuseEffect{}",(function(){return[d.useParams,n.useSelector,n.useSelector,n.useDispatch]}));var l=u;const p=l;var g,m;(g="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(g.register(u,"VersionContextProvider","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/VersionContextProvider.tsx"),g.register(l,"default","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/VersionContextProvider.tsx")),(m="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&m(e)},"./src/pages/Version/context.ts":(e,a,o)=>{o.r(a),o.d(a,{DetailContext:()=>c,DetailContextProvider:()=>s,DetailContextConsumer:()=>i});var r,t=o("../../../node_modules/.pnpm/react@17.0.2/node_modules/react/index.js");e=o.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;var n,d,c=(0,t.createContext)({}),s=c.Provider,i=c.Consumer;(n="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(n.register(c,"DetailContext","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/context.ts"),n.register(s,"DetailContextProvider","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/context.ts"),n.register(i,"DetailContextConsumer","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/context.ts")),(d="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&d(e)},"./src/pages/Version/get-route-package-name.ts":(e,a,o)=>{var r;o.r(a),o.d(a,{default:()=>d}),e=o.hmd(e),(r="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.enterModule:void 0)&&r(e);"undefined"!=typeof reactHotLoaderGlobal&&reactHotLoaderGlobal.default.signature;function t(e,a){return a?"@".concat(a,"/").concat(e):e}var n=t;const d=n;var c,s;(c="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.default:void 0)&&(c.register(t,"getRouterPackageName","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/get-route-package-name.ts"),c.register(n,"default","/home/runner/work/verdaccio/verdaccio/packages/plugins/ui-theme/src/pages/Version/get-route-package-name.ts")),(s="undefined"!=typeof reactHotLoaderGlobal?reactHotLoaderGlobal.leaveModule:void 0)&&s(e)}}]);