@redhat-cloud-services/frontend-components-config-utilities 2.0.0-beta.0 → 2.0.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/federated-modules.js +4 -2
- package/package.json +2 -1
- package/repos/insights-chrome-build/58231b16fdee45a03a4ee3cf94a9f2c3 +3 -6
- package/repos/insights-chrome-build/app.info.json +5 -5
- package/repos/insights-chrome-build/index.html +4 -4
- package/repos/insights-chrome-build/js/79c835ddc356c3ef.woff +0 -0
- package/repos/insights-chrome-build/js/8f3e80eba644e3ec.svg +33 -0
- package/repos/insights-chrome-build/js/{_e6c7-_c8e2-_e6f2-_f5f0-_baa3-_f5b3-_9609-_7327-_e64b-_1dc3-_5da5-_cf22-_9531-_be8c-_50cd-_d0-cdab65.c1dc7ccd468c8c55255f.js → _c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c0.b3f9836f62184986.js} +95 -95
- package/repos/insights-chrome-build/js/_c74b-_e0c3-_9cf0-_3467-_8add-_2900-_a7bc-_70d9-_eea3-_8afc-_d73e-_1a3c-_2385-_85ca-_5c4f-_0f-35898c1.b3f9836f62184986.js +943 -0
- package/repos/insights-chrome-build/js/ajs-destination.b3f9836f62184986.js +594 -0
- package/repos/insights-chrome-build/js/{auto-track.c1dc7ccd468c8c55255f.js → auto-track.b3f9836f62184986.js} +3 -3
- package/repos/insights-chrome-build/js/cb827f53cc6d6dcf.woff2 +0 -0
- package/repos/insights-chrome-build/js/{chrome.c1dc7ccd468c8c55255f.js → chrome-root.b3f9836f62184986.js} +10486 -90
- package/repos/insights-chrome-build/js/{chrome-root.c1dc7ccd468c8c55255f.js → chrome.b3f9836f62184986.js} +112 -102
- package/repos/insights-chrome-build/js/fed-mods.json +7 -10
- package/repos/insights-chrome-build/js/{main.c1dc7ccd468c8c55255f.css → main.b3f9836f62184986.css} +841 -1094
- package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js.b3f9836f62184986.js +323 -0
- package/repos/insights-chrome-build/js/node_modules_lodash_isEqual_js.b3f9836f62184986.js +48 -0
- package/repos/insights-chrome-build/js/{node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--73ba53.c1dc7ccd468c8c55255f.js → node_modules_patternfly_react-icons_dist_js_icons_bars-icon_js-node_modules_patternfly_react--0a3495.b3f9836f62184986.js} +91 -7
- package/repos/insights-chrome-build/js/{queryString.c1dc7ccd468c8c55255f.js → queryString.b3f9836f62184986.js} +49 -5
- package/repos/insights-chrome-build/js/quick-start.b3f9836f62184986.js +47 -0
- package/repos/insights-chrome-build/js/{schemaFilter.c1dc7ccd468c8c55255f.js → schemaFilter.b3f9836f62184986.js} +4 -2
- package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.css +27041 -0
- package/repos/insights-chrome-build/js/src_bootstrap_tsx-src_moduleOverrides_unfetch_ts-node_modules_redhat-cloud-services_frontend--275e6e.b3f9836f62184986.js +20468 -0
- package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.css +52 -0
- package/repos/insights-chrome-build/js/src_components_Debugger_index_ts.b3f9836f62184986.js +512 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.css +8664 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_EmptyState_tsx-src_hooks_useFavoritedServices_ts.b3f9836f62184986.js +5098 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.css +8662 -0
- package/repos/insights-chrome-build/js/src_components_FavoriteServices_LandingNavFavorites_tsx-src_utils_common_ts.b3f9836f62184986.js +898 -0
- package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.css +30 -0
- package/repos/insights-chrome-build/js/src_components_NotEntitledModal_index_tsx.b3f9836f62184986.js +237 -0
- package/repos/insights-chrome-build/js/src_components_QuickstartsCatalogRoute_index_ts.b3f9836f62184986.js +106 -0
- package/repos/insights-chrome-build/js/{src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.css → src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.css} +105 -1375
- package/repos/insights-chrome-build/js/src_components_Stratosphere_ProductSelection_tsx.b3f9836f62184986.js +335 -0
- package/repos/insights-chrome-build/js/src_moduleOverrides_chart-utils-override_js-src_pdf_DownloadButton_tsx-webpack_sharing_consum-3a44a6.b3f9836f62184986.js +91 -0
- package/repos/insights-chrome-build/js/{ajs-destination.c1dc7ccd468c8c55255f.js → tsub-middleware.b3f9836f62184986.js} +800 -820
- package/repos/insights-chrome-build/js/vendors-node_modules_buffer_index_js-node_modules_lodash__baseFlatten_js-node_modules_lodash_-1de864.b3f9836f62184986.js +2552 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules-c053fb.b3f9836f62184986.js +1761 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_inherits_inherits_browser_js-node_modules_lodash__baseMerge_js-node_modu-5ed1a1.b3f9836f62184986.js +1113 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_base64-js_index_js-node_modules_lodash__baseFlatten_js-node_modules_loda-c4069d.c1dc7ccd468c8c55255f.js → vendors-node_modules_lodash__baseForOwn_js-node_modules_lodash__baseIteratee_js-node_modules_-167437.b3f9836f62184986.js} +1 -425
- package/repos/insights-chrome-build/js/vendors-node_modules_openshift_dynamic-plugin-sdk_dist_index_js.b3f9836f62184986.js +17197 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_quickstarts_dist_index_es_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_quickstarts_dist_index_es_js.b3f9836f62184986.js} +220 -242
- package/repos/insights-chrome-build/js/{vendors-node_modules_redhat-cloud-services_frontend-components-pdf-generator_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-charts_dist_esm_components_ChartUtils_chart-theme_js-no-998b15.b3f9836f62184986.js} +138718 -121207
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-core_dist_esm_components_Spinner_Spinner_js-node_module-1e699f.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6763c7.b3f9836f62184986.js} +2130 -266
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-core_dist_esm_index_js.b3f9836f62184986.js} +3266 -3190
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_next_components_Select_Select_js-node_modules_patt-da466d.b3f9836f62184986.js +4946 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_patternfly_react-icons_dist_esm_icons_external-link-alt-icon_js-node_mod-b94988.c1dc7ccd468c8c55255f.js → vendors-node_modules_patternfly_react-icons_dist_esm_icons_bell-slash-icon_js-node_modules_pa-6de3ff.b3f9836f62184986.js} +66729 -43554
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-icons_dist_esm_icons_star-icon_js-node_modules_axios_in-5a9fd5.b3f9836f62184986.js +2881 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_prop-types_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_prop-types_index_js.b3f9836f62184986.js} +0 -208
- package/repos/insights-chrome-build/js/{vendors-node_modules_react-redux_es_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_react-redux_es_index_js.b3f9836f62184986.js} +1131 -955
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_dist_index_js.b3f9836f62184986.js +6691 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_classnames_index_js-node_modules_react_jsx-runtime_js-node_modules_babel-163bf5.c1dc7ccd468c8c55255f.js → vendors-node_modules_react_jsx-runtime_js.b3f9836f62184986.js} +3 -164
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_chrome_esm_index_js.b3f9836f62184986.js +708 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_frontend-components-utilities_esm_interceptors_int-b5fffe.b3f9836f62184986.js +21636 -0
- package/repos/insights-chrome-build/js/vendors-node_modules_scalprum_core_dist_esm_index_js.b3f9836f62184986.js +363 -0
- package/repos/insights-chrome-build/js/{vendors-node_modules_scalprum_react-core_dist_esm_index_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_scalprum_react-core_dist_esm_index_js.b3f9836f62184986.js} +258 -442
- package/repos/insights-chrome-build/js/{vendors-node_modules_tslib_tslib_es6_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_tslib_tslib_es6_js.b3f9836f62184986.js} +16 -16
- package/repos/insights-chrome-build/js/{vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_unleash_proxy-client-react_dist_index_browser_js.b3f9836f62184986.js} +174 -123
- package/search-ignored-styles.js +26 -9
- package/repos/insights-chrome-build/js/0140846175072d73db39.woff +0 -0
- package/repos/insights-chrome-build/js/e888fa788db9794c334f.woff2 +0 -0
- package/repos/insights-chrome-build/js/middleware.c1dc7ccd468c8c55255f.js +0 -138
- package/repos/insights-chrome-build/js/node_modules_hoist-non-react-statics_dist_hoist-non-react-statics_cjs_js-node_modules_babel_r-4097d5.c1dc7ccd468c8c55255f.js +0 -195
- package/repos/insights-chrome-build/js/quick-start.c1dc7ccd468c8c55255f.js +0 -33
- package/repos/insights-chrome-build/js/src_js_App_Routes_QuickstartsCatalogRoute_js.c1dc7ccd468c8c55255f.js +0 -79
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.css +0 -17
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_LandingNav_js.c1dc7ccd468c8c55255f.js +0 -129
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_componentMapper_js.c1dc7ccd468c8c55255f.js +0 -750
- package/repos/insights-chrome-build/js/src_js_App_Sidenav_Navigation_index_js.c1dc7ccd468c8c55255f.js +0 -416
- package/repos/insights-chrome-build/js/src_js_App_Stratosphere_ProductSelection_tsx.c1dc7ccd468c8c55255f.js +0 -283
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.css +0 -921
- package/repos/insights-chrome-build/js/src_js_bootstrap_js-src_js_unfetch_index_js-node_modules_redhat-cloud-services_frontend-compo-d86d1e.c1dc7ccd468c8c55255f.js +0 -8466
- package/repos/insights-chrome-build/js/src_js_inventory_modules_AppInfo_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_DetailWrapper_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetailHead_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryDetail_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_InventoryTable_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_inventory_modules_TagWithDialog_js.c1dc7ccd468c8c55255f.js +0 -182
- package/repos/insights-chrome-build/js/src_js_jwt_insights_offline_ts-src_js_jwt_jwt_ts.c1dc7ccd468c8c55255f.js +0 -1589
- package/repos/insights-chrome-build/js/src_js_jwt_modules_useChromeAuth_ts.c1dc7ccd468c8c55255f.js +0 -64
- package/repos/insights-chrome-build/js/src_js_overrides_chart-utils-override_js-src_js_pdf_DownloadButton_js-webpack_sharing_consume-5c7286.c1dc7ccd468c8c55255f.js +0 -119
- package/repos/insights-chrome-build/js/vendors-node_modules_babel_runtime_regenerator_index_js-node_modules_buffer_index_js-node_mod-aceb88.c1dc7ccd468c8c55255f.js +0 -5787
- package/repos/insights-chrome-build/js/vendors-node_modules_history_esm_history_js.c1dc7ccd468c8c55255f.js +0 -1148
- package/repos/insights-chrome-build/js/vendors-node_modules_patternfly_react-core_dist_esm_components_Button_Button_js-node_modules_-6fa0b5.c1dc7ccd468c8c55255f.js +0 -1346
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router-dom_esm_react-router-dom_js.c1dc7ccd468c8c55255f.js +0 -360
- package/repos/insights-chrome-build/js/vendors-node_modules_react-router_esm_react-router_js.c1dc7ccd468c8c55255f.js +0 -1466
- package/repos/insights-chrome-build/js/vendors-node_modules_redhat-cloud-services_entitlements-client_dist_index_js-node_modules_red-0a1887.c1dc7ccd468c8c55255f.js +0 -27710
- /package/repos/insights-chrome-build/js/{4e58e730f447f9d6a422.woff2 → 00e10699d4604274.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{54b2e33870ba270ba774.woff2 → 03be9971fdd08ef3.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ab4371a522c3fce8ad2d.woff2 → 05294d67f8e33aab.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{60cc25d4be2d99536ede.woff2 → 091b27e83c831713.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{164a0ab4c909b911c99b.woff → 0d54864d782470c6.woff} +0 -0
- /package/repos/insights-chrome-build/js/{65deba23a8337b21a451.woff2 → 0d5f5f4e3bbf47e1.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{732b5ddbe8d56f5462b6.woff → 1039d3d8000f2c4b.woff} +0 -0
- /package/repos/insights-chrome-build/js/{246cf166b6945bf1c584.woff2 → 13f6558f31b2ee0f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{d6b6f0c7a2af826d139d.woff → 1412957e204a8a1a.woff} +0 -0
- /package/repos/insights-chrome-build/js/{0239b22511e2cbe0741a.woff → 17802e9fb8c2dd3c.woff} +0 -0
- /package/repos/insights-chrome-build/js/{23fc486b36786bafb3d3.woff → 1be1bd18c67d1ac8.woff} +0 -0
- /package/repos/insights-chrome-build/js/{cf06a52fa81e76cc6b01.woff2 → 26409b4397ab88cc.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{59058fe454d37a189fb9.woff2 → 278473d290fcbf3b.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{549231141115a61fa57d.woff → 2a96d5b208c56fa6.woff} +0 -0
- /package/repos/insights-chrome-build/js/{269ca6c83388f975ccfa.woff2 → 2baac3a5d7ab7a15.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ac4ae66cc059959cf8b7.woff → 316d3d41de174f24.woff} +0 -0
- /package/repos/insights-chrome-build/js/{323f30b3399fdc516b30.woff2 → 3239d74dcb174610.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{1904b4e1c18b4fc19778.woff → 326f107b61d32769.woff} +0 -0
- /package/repos/insights-chrome-build/js/{69bf841bb989a0010972.woff2 → 49ee635c956449ea.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{e693bff1704e699eb7e2.woff2 → 4ace320f5eaa7ee9.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{44d0c66e3d5040be8378.woff2 → 4b0d8eeb01c2f27e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8192be77a1809074aa20.svg → 4df2ca3d94d759b3.svg} +0 -0
- /package/repos/insights-chrome-build/js/{4a43a00f1c0c63f396ee.woff2 → 52f482efb5487bba.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9db3d5976ae23546bbec.woff2 → 64b9a14b3398824f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{95fdf61ffc45f12737c2.woff2 → 66309a34eac8b284.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{7150021df2ae6bcf6c17.woff2 → 6e30b223886d1eef.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9abd7afa35218a435d29.woff2 → 6fb4e4e104bb886f.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{7799d9401910e36d7bb2.woff → 703c721f27900006.woff} +0 -0
- /package/repos/insights-chrome-build/js/{e7bea4af7086ce0144fc.woff → 7a0809e40bf8e79a.woff} +0 -0
- /package/repos/insights-chrome-build/js/{09bac349bc9aa9b72bbe.woff2 → 7a9fb47c5b35e50d.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{77929aa7a8bd4b667229.woff → 7bb3ddb0583cc7a5.woff} +0 -0
- /package/repos/insights-chrome-build/js/{3cd11726d843ff40c40b.woff → 7bf300b28414f3ad.woff} +0 -0
- /package/repos/insights-chrome-build/js/{e3438b1458a26c814ae6.woff2 → 7d9b027229967149.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{e9d4a1e9285e4454ef7e.woff → 81245ab8c867ea09.woff} +0 -0
- /package/repos/insights-chrome-build/js/{800277ea3e98b616b60f.woff → 830dcb2cc707ae4c.woff} +0 -0
- /package/repos/insights-chrome-build/js/{c0276d79b017a9c2476b.woff → 835112a9ba0d676e.woff} +0 -0
- /package/repos/insights-chrome-build/js/{7b7bb91c0af148738090.woff2 → 8f765508913b945e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{817d3df17057373e2c46.woff → 91bbac2b6e0eb739.woff} +0 -0
- /package/repos/insights-chrome-build/js/{89a09f63411d174b18ea.woff2 → 96971d99ef5f2ef7.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8d723ad7cfca2dfffacb.woff → a14c79bac597c758.woff} +0 -0
- /package/repos/insights-chrome-build/js/{c2b7c03209f0d3558e85.woff2 → a86c2bca47a21ff0.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{db4223ab0faaec898da7.woff → ad4d1e278d4d13cb.woff} +0 -0
- /package/repos/insights-chrome-build/js/{2c5bc263ad288d815bd3.woff2 → b0ebda5f4f12f761.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{675eb11fb9e055cea6a4.woff2 → b97a3321aaf7e87a.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{11855d3f3f99709dfac5.woff2 → ba04b02b7da08f3d.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{99464515aba730eab16c.woff2 → bb85876a67d3e7e7.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8aae586c8c4d72be50c1.woff → bbe18aee9c88166d.woff} +0 -0
- /package/repos/insights-chrome-build/js/{190776b0696119b93c71.woff2 → c3ab7be4146884a3.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{bc0502ffc24dc33b8c5a.woff → c49edc34d14553e4.woff} +0 -0
- /package/repos/insights-chrome-build/js/{3278ae4a3a97d92b639c.woff2 → c8b06bb52b20081e.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{ac78b4f2e64edfb5859a.woff → c99e50723fcf0166.woff} +0 -0
- /package/repos/insights-chrome-build/js/{0227c8bb038eaf0264f7.woff2 → cd1824ff99b9ef33.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{9ed5a0180961e3930d44.woff2 → ce63a8f6be94c7cd.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{8584d6d2426caac44a12.woff2 → d004dc9f8c955767.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{06037ca2cf8525d353a1.woff2 → d19c89c249d7f751.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{61142d93d0198cb3c160.woff2 → d2a095f5996e5014.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{88ade95ac9a035be7168.woff → d2ce043298f5c972.woff} +0 -0
- /package/repos/insights-chrome-build/js/{24515e9b56a0ccb45480.woff → d2cf7e795db09bc7.woff} +0 -0
- /package/repos/insights-chrome-build/js/{d7d2238f0d64e36cd533.svg → d6083bde9a964ab4.svg} +0 -0
- /package/repos/insights-chrome-build/js/{2aa8547fdf2f790c2cb9.woff2 → dd18fb6c0b7048e8.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{909a870fdb828007557f.woff2 → df8a52d2494e1e03.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{3be6f9a55c75aaa6f25a.woff2 → e5c7a27047a83d24.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{f32577e5a5f1d27244a3.woff2 → e693e4f9d9c75499.woff2} +0 -0
- /package/repos/insights-chrome-build/js/{35d01efdc213d0af0d00.woff → e8ec1c41a82bd354.woff} +0 -0
- /package/repos/insights-chrome-build/js/{81aade5a7b362566b199.woff → f66882bad34e5c9f.woff} +0 -0
- /package/repos/insights-chrome-build/js/{47a03d213b0b35080e32.woff → f830d4d01f5e4497.woff} +0 -0
- /package/repos/insights-chrome-build/js/{legacyVideos.c1dc7ccd468c8c55255f.js → legacyVideos.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{remoteMiddleware.c1dc7ccd468c8c55255f.js → remoteMiddleware.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{vendors-node_modules_lodash__baseIsEqual_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_lodash__baseIsEqual_js.b3f9836f62184986.js} +0 -0
- /package/repos/insights-chrome-build/js/{vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.c1dc7ccd468c8c55255f.js → vendors-node_modules_segment_analytics_js-video-plugins_dist_index_umd_js.b3f9836f62184986.js} +0 -0
|
@@ -1,1466 +0,0 @@
|
|
|
1
|
-
(self["webpackChunkinsights_chrome"] = self["webpackChunkinsights_chrome"] || []).push([["vendors-node_modules_react-router_esm_react-router_js"],{
|
|
2
|
-
|
|
3
|
-
/***/ "./node_modules/isarray/index.js":
|
|
4
|
-
/*!***************************************!*\
|
|
5
|
-
!*** ./node_modules/isarray/index.js ***!
|
|
6
|
-
\***************************************/
|
|
7
|
-
/***/ ((module) => {
|
|
8
|
-
|
|
9
|
-
module.exports = Array.isArray || function (arr) {
|
|
10
|
-
return Object.prototype.toString.call(arr) == '[object Array]';
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/***/ }),
|
|
15
|
-
|
|
16
|
-
/***/ "./node_modules/mini-create-react-context/dist/esm/index.js":
|
|
17
|
-
/*!******************************************************************!*\
|
|
18
|
-
!*** ./node_modules/mini-create-react-context/dist/esm/index.js ***!
|
|
19
|
-
\******************************************************************/
|
|
20
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
21
|
-
|
|
22
|
-
"use strict";
|
|
23
|
-
__webpack_require__.r(__webpack_exports__);
|
|
24
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
26
|
-
/* harmony export */ });
|
|
27
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
28
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
29
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
|
|
30
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
31
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_3__);
|
|
32
|
-
/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! tiny-warning */ "./node_modules/tiny-warning/dist/tiny-warning.esm.js");
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var MAX_SIGNED_31_BIT_INT = 1073741823;
|
|
39
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof __webpack_require__.g !== 'undefined' ? __webpack_require__.g : {};
|
|
40
|
-
|
|
41
|
-
function getUniqueId() {
|
|
42
|
-
var key = '__global_unique_id__';
|
|
43
|
-
return commonjsGlobal[key] = (commonjsGlobal[key] || 0) + 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function objectIs(x, y) {
|
|
47
|
-
if (x === y) {
|
|
48
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
49
|
-
} else {
|
|
50
|
-
return x !== x && y !== y;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
function createEventEmitter(value) {
|
|
55
|
-
var handlers = [];
|
|
56
|
-
return {
|
|
57
|
-
on: function on(handler) {
|
|
58
|
-
handlers.push(handler);
|
|
59
|
-
},
|
|
60
|
-
off: function off(handler) {
|
|
61
|
-
handlers = handlers.filter(function (h) {
|
|
62
|
-
return h !== handler;
|
|
63
|
-
});
|
|
64
|
-
},
|
|
65
|
-
get: function get() {
|
|
66
|
-
return value;
|
|
67
|
-
},
|
|
68
|
-
set: function set(newValue, changedBits) {
|
|
69
|
-
value = newValue;
|
|
70
|
-
handlers.forEach(function (handler) {
|
|
71
|
-
return handler(value, changedBits);
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function onlyChild(children) {
|
|
78
|
-
return Array.isArray(children) ? children[0] : children;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function createReactContext(defaultValue, calculateChangedBits) {
|
|
82
|
-
var _Provider$childContex, _Consumer$contextType;
|
|
83
|
-
|
|
84
|
-
var contextProp = '__create-react-context-' + getUniqueId() + '__';
|
|
85
|
-
|
|
86
|
-
var Provider = /*#__PURE__*/function (_Component) {
|
|
87
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(Provider, _Component);
|
|
88
|
-
|
|
89
|
-
function Provider() {
|
|
90
|
-
var _this;
|
|
91
|
-
|
|
92
|
-
_this = _Component.apply(this, arguments) || this;
|
|
93
|
-
_this.emitter = createEventEmitter(_this.props.value);
|
|
94
|
-
return _this;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
var _proto = Provider.prototype;
|
|
98
|
-
|
|
99
|
-
_proto.getChildContext = function getChildContext() {
|
|
100
|
-
var _ref;
|
|
101
|
-
|
|
102
|
-
return _ref = {}, _ref[contextProp] = this.emitter, _ref;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
_proto.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
106
|
-
if (this.props.value !== nextProps.value) {
|
|
107
|
-
var oldValue = this.props.value;
|
|
108
|
-
var newValue = nextProps.value;
|
|
109
|
-
var changedBits;
|
|
110
|
-
|
|
111
|
-
if (objectIs(oldValue, newValue)) {
|
|
112
|
-
changedBits = 0;
|
|
113
|
-
} else {
|
|
114
|
-
changedBits = typeof calculateChangedBits === 'function' ? calculateChangedBits(oldValue, newValue) : MAX_SIGNED_31_BIT_INT;
|
|
115
|
-
|
|
116
|
-
if (true) {
|
|
117
|
-
(0,tiny_warning__WEBPACK_IMPORTED_MODULE_2__.default)((changedBits & MAX_SIGNED_31_BIT_INT) === changedBits, 'calculateChangedBits: Expected the return value to be a ' + '31-bit integer. Instead received: ' + changedBits);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
changedBits |= 0;
|
|
121
|
-
|
|
122
|
-
if (changedBits !== 0) {
|
|
123
|
-
this.emitter.set(nextProps.value, changedBits);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
_proto.render = function render() {
|
|
130
|
-
return this.props.children;
|
|
131
|
-
};
|
|
132
|
-
|
|
133
|
-
return Provider;
|
|
134
|
-
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
|
|
135
|
-
|
|
136
|
-
Provider.childContextTypes = (_Provider$childContex = {}, _Provider$childContex[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object.isRequired), _Provider$childContex);
|
|
137
|
-
|
|
138
|
-
var Consumer = /*#__PURE__*/function (_Component2) {
|
|
139
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_1__.default)(Consumer, _Component2);
|
|
140
|
-
|
|
141
|
-
function Consumer() {
|
|
142
|
-
var _this2;
|
|
143
|
-
|
|
144
|
-
_this2 = _Component2.apply(this, arguments) || this;
|
|
145
|
-
_this2.state = {
|
|
146
|
-
value: _this2.getValue()
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
_this2.onUpdate = function (newValue, changedBits) {
|
|
150
|
-
var observedBits = _this2.observedBits | 0;
|
|
151
|
-
|
|
152
|
-
if ((observedBits & changedBits) !== 0) {
|
|
153
|
-
_this2.setState({
|
|
154
|
-
value: _this2.getValue()
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
return _this2;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
var _proto2 = Consumer.prototype;
|
|
163
|
-
|
|
164
|
-
_proto2.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
165
|
-
var observedBits = nextProps.observedBits;
|
|
166
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
_proto2.componentDidMount = function componentDidMount() {
|
|
170
|
-
if (this.context[contextProp]) {
|
|
171
|
-
this.context[contextProp].on(this.onUpdate);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
var observedBits = this.props.observedBits;
|
|
175
|
-
this.observedBits = observedBits === undefined || observedBits === null ? MAX_SIGNED_31_BIT_INT : observedBits;
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
_proto2.componentWillUnmount = function componentWillUnmount() {
|
|
179
|
-
if (this.context[contextProp]) {
|
|
180
|
-
this.context[contextProp].off(this.onUpdate);
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
_proto2.getValue = function getValue() {
|
|
185
|
-
if (this.context[contextProp]) {
|
|
186
|
-
return this.context[contextProp].get();
|
|
187
|
-
} else {
|
|
188
|
-
return defaultValue;
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
_proto2.render = function render() {
|
|
193
|
-
return onlyChild(this.props.children)(this.state.value);
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
return Consumer;
|
|
197
|
-
}(react__WEBPACK_IMPORTED_MODULE_0__.Component);
|
|
198
|
-
|
|
199
|
-
Consumer.contextTypes = (_Consumer$contextType = {}, _Consumer$contextType[contextProp] = (prop_types__WEBPACK_IMPORTED_MODULE_3___default().object), _Consumer$contextType);
|
|
200
|
-
return {
|
|
201
|
-
Provider: Provider,
|
|
202
|
-
Consumer: Consumer
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
var index = (react__WEBPACK_IMPORTED_MODULE_0___default().createContext) || createReactContext;
|
|
207
|
-
|
|
208
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (index);
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
/***/ }),
|
|
212
|
-
|
|
213
|
-
/***/ "./node_modules/path-to-regexp/index.js":
|
|
214
|
-
/*!**********************************************!*\
|
|
215
|
-
!*** ./node_modules/path-to-regexp/index.js ***!
|
|
216
|
-
\**********************************************/
|
|
217
|
-
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
218
|
-
|
|
219
|
-
var isarray = __webpack_require__(/*! isarray */ "./node_modules/isarray/index.js")
|
|
220
|
-
|
|
221
|
-
/**
|
|
222
|
-
* Expose `pathToRegexp`.
|
|
223
|
-
*/
|
|
224
|
-
module.exports = pathToRegexp
|
|
225
|
-
module.exports.parse = parse
|
|
226
|
-
module.exports.compile = compile
|
|
227
|
-
module.exports.tokensToFunction = tokensToFunction
|
|
228
|
-
module.exports.tokensToRegExp = tokensToRegExp
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* The main path matching regexp utility.
|
|
232
|
-
*
|
|
233
|
-
* @type {RegExp}
|
|
234
|
-
*/
|
|
235
|
-
var PATH_REGEXP = new RegExp([
|
|
236
|
-
// Match escaped characters that would otherwise appear in future matches.
|
|
237
|
-
// This allows the user to escape special characters that won't transform.
|
|
238
|
-
'(\\\\.)',
|
|
239
|
-
// Match Express-style parameters and un-named parameters with a prefix
|
|
240
|
-
// and optional suffixes. Matches appear as:
|
|
241
|
-
//
|
|
242
|
-
// "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?", undefined]
|
|
243
|
-
// "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined, undefined]
|
|
244
|
-
// "/*" => ["/", undefined, undefined, undefined, undefined, "*"]
|
|
245
|
-
'([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))'
|
|
246
|
-
].join('|'), 'g')
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Parse a string for the raw tokens.
|
|
250
|
-
*
|
|
251
|
-
* @param {string} str
|
|
252
|
-
* @param {Object=} options
|
|
253
|
-
* @return {!Array}
|
|
254
|
-
*/
|
|
255
|
-
function parse (str, options) {
|
|
256
|
-
var tokens = []
|
|
257
|
-
var key = 0
|
|
258
|
-
var index = 0
|
|
259
|
-
var path = ''
|
|
260
|
-
var defaultDelimiter = options && options.delimiter || '/'
|
|
261
|
-
var res
|
|
262
|
-
|
|
263
|
-
while ((res = PATH_REGEXP.exec(str)) != null) {
|
|
264
|
-
var m = res[0]
|
|
265
|
-
var escaped = res[1]
|
|
266
|
-
var offset = res.index
|
|
267
|
-
path += str.slice(index, offset)
|
|
268
|
-
index = offset + m.length
|
|
269
|
-
|
|
270
|
-
// Ignore already escaped sequences.
|
|
271
|
-
if (escaped) {
|
|
272
|
-
path += escaped[1]
|
|
273
|
-
continue
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
var next = str[index]
|
|
277
|
-
var prefix = res[2]
|
|
278
|
-
var name = res[3]
|
|
279
|
-
var capture = res[4]
|
|
280
|
-
var group = res[5]
|
|
281
|
-
var modifier = res[6]
|
|
282
|
-
var asterisk = res[7]
|
|
283
|
-
|
|
284
|
-
// Push the current path onto the tokens.
|
|
285
|
-
if (path) {
|
|
286
|
-
tokens.push(path)
|
|
287
|
-
path = ''
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
var partial = prefix != null && next != null && next !== prefix
|
|
291
|
-
var repeat = modifier === '+' || modifier === '*'
|
|
292
|
-
var optional = modifier === '?' || modifier === '*'
|
|
293
|
-
var delimiter = res[2] || defaultDelimiter
|
|
294
|
-
var pattern = capture || group
|
|
295
|
-
|
|
296
|
-
tokens.push({
|
|
297
|
-
name: name || key++,
|
|
298
|
-
prefix: prefix || '',
|
|
299
|
-
delimiter: delimiter,
|
|
300
|
-
optional: optional,
|
|
301
|
-
repeat: repeat,
|
|
302
|
-
partial: partial,
|
|
303
|
-
asterisk: !!asterisk,
|
|
304
|
-
pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')
|
|
305
|
-
})
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
// Match any characters still remaining.
|
|
309
|
-
if (index < str.length) {
|
|
310
|
-
path += str.substr(index)
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
// If the path exists, push it onto the end.
|
|
314
|
-
if (path) {
|
|
315
|
-
tokens.push(path)
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
return tokens
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
/**
|
|
322
|
-
* Compile a string to a template function for the path.
|
|
323
|
-
*
|
|
324
|
-
* @param {string} str
|
|
325
|
-
* @param {Object=} options
|
|
326
|
-
* @return {!function(Object=, Object=)}
|
|
327
|
-
*/
|
|
328
|
-
function compile (str, options) {
|
|
329
|
-
return tokensToFunction(parse(str, options), options)
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
/**
|
|
333
|
-
* Prettier encoding of URI path segments.
|
|
334
|
-
*
|
|
335
|
-
* @param {string}
|
|
336
|
-
* @return {string}
|
|
337
|
-
*/
|
|
338
|
-
function encodeURIComponentPretty (str) {
|
|
339
|
-
return encodeURI(str).replace(/[\/?#]/g, function (c) {
|
|
340
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
341
|
-
})
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Encode the asterisk parameter. Similar to `pretty`, but allows slashes.
|
|
346
|
-
*
|
|
347
|
-
* @param {string}
|
|
348
|
-
* @return {string}
|
|
349
|
-
*/
|
|
350
|
-
function encodeAsterisk (str) {
|
|
351
|
-
return encodeURI(str).replace(/[?#]/g, function (c) {
|
|
352
|
-
return '%' + c.charCodeAt(0).toString(16).toUpperCase()
|
|
353
|
-
})
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
* Expose a method for transforming tokens into the path function.
|
|
358
|
-
*/
|
|
359
|
-
function tokensToFunction (tokens, options) {
|
|
360
|
-
// Compile all the tokens into regexps.
|
|
361
|
-
var matches = new Array(tokens.length)
|
|
362
|
-
|
|
363
|
-
// Compile all the patterns before compilation.
|
|
364
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
365
|
-
if (typeof tokens[i] === 'object') {
|
|
366
|
-
matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$', flags(options))
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
return function (obj, opts) {
|
|
371
|
-
var path = ''
|
|
372
|
-
var data = obj || {}
|
|
373
|
-
var options = opts || {}
|
|
374
|
-
var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent
|
|
375
|
-
|
|
376
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
377
|
-
var token = tokens[i]
|
|
378
|
-
|
|
379
|
-
if (typeof token === 'string') {
|
|
380
|
-
path += token
|
|
381
|
-
|
|
382
|
-
continue
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
var value = data[token.name]
|
|
386
|
-
var segment
|
|
387
|
-
|
|
388
|
-
if (value == null) {
|
|
389
|
-
if (token.optional) {
|
|
390
|
-
// Prepend partial segment prefixes.
|
|
391
|
-
if (token.partial) {
|
|
392
|
-
path += token.prefix
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
continue
|
|
396
|
-
} else {
|
|
397
|
-
throw new TypeError('Expected "' + token.name + '" to be defined')
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
if (isarray(value)) {
|
|
402
|
-
if (!token.repeat) {
|
|
403
|
-
throw new TypeError('Expected "' + token.name + '" to not repeat, but received `' + JSON.stringify(value) + '`')
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (value.length === 0) {
|
|
407
|
-
if (token.optional) {
|
|
408
|
-
continue
|
|
409
|
-
} else {
|
|
410
|
-
throw new TypeError('Expected "' + token.name + '" to not be empty')
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
for (var j = 0; j < value.length; j++) {
|
|
415
|
-
segment = encode(value[j])
|
|
416
|
-
|
|
417
|
-
if (!matches[i].test(segment)) {
|
|
418
|
-
throw new TypeError('Expected all "' + token.name + '" to match "' + token.pattern + '", but received `' + JSON.stringify(segment) + '`')
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
path += (j === 0 ? token.prefix : token.delimiter) + segment
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
continue
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
segment = token.asterisk ? encodeAsterisk(value) : encode(value)
|
|
428
|
-
|
|
429
|
-
if (!matches[i].test(segment)) {
|
|
430
|
-
throw new TypeError('Expected "' + token.name + '" to match "' + token.pattern + '", but received "' + segment + '"')
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
path += token.prefix + segment
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
return path
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/**
|
|
441
|
-
* Escape a regular expression string.
|
|
442
|
-
*
|
|
443
|
-
* @param {string} str
|
|
444
|
-
* @return {string}
|
|
445
|
-
*/
|
|
446
|
-
function escapeString (str) {
|
|
447
|
-
return str.replace(/([.+*?=^!:${}()[\]|\/\\])/g, '\\$1')
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
/**
|
|
451
|
-
* Escape the capturing group by escaping special characters and meaning.
|
|
452
|
-
*
|
|
453
|
-
* @param {string} group
|
|
454
|
-
* @return {string}
|
|
455
|
-
*/
|
|
456
|
-
function escapeGroup (group) {
|
|
457
|
-
return group.replace(/([=!:$\/()])/g, '\\$1')
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
/**
|
|
461
|
-
* Attach the keys as a property of the regexp.
|
|
462
|
-
*
|
|
463
|
-
* @param {!RegExp} re
|
|
464
|
-
* @param {Array} keys
|
|
465
|
-
* @return {!RegExp}
|
|
466
|
-
*/
|
|
467
|
-
function attachKeys (re, keys) {
|
|
468
|
-
re.keys = keys
|
|
469
|
-
return re
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/**
|
|
473
|
-
* Get the flags for a regexp from the options.
|
|
474
|
-
*
|
|
475
|
-
* @param {Object} options
|
|
476
|
-
* @return {string}
|
|
477
|
-
*/
|
|
478
|
-
function flags (options) {
|
|
479
|
-
return options && options.sensitive ? '' : 'i'
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/**
|
|
483
|
-
* Pull out keys from a regexp.
|
|
484
|
-
*
|
|
485
|
-
* @param {!RegExp} path
|
|
486
|
-
* @param {!Array} keys
|
|
487
|
-
* @return {!RegExp}
|
|
488
|
-
*/
|
|
489
|
-
function regexpToRegexp (path, keys) {
|
|
490
|
-
// Use a negative lookahead to match only capturing groups.
|
|
491
|
-
var groups = path.source.match(/\((?!\?)/g)
|
|
492
|
-
|
|
493
|
-
if (groups) {
|
|
494
|
-
for (var i = 0; i < groups.length; i++) {
|
|
495
|
-
keys.push({
|
|
496
|
-
name: i,
|
|
497
|
-
prefix: null,
|
|
498
|
-
delimiter: null,
|
|
499
|
-
optional: false,
|
|
500
|
-
repeat: false,
|
|
501
|
-
partial: false,
|
|
502
|
-
asterisk: false,
|
|
503
|
-
pattern: null
|
|
504
|
-
})
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
return attachKeys(path, keys)
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
/**
|
|
512
|
-
* Transform an array into a regexp.
|
|
513
|
-
*
|
|
514
|
-
* @param {!Array} path
|
|
515
|
-
* @param {Array} keys
|
|
516
|
-
* @param {!Object} options
|
|
517
|
-
* @return {!RegExp}
|
|
518
|
-
*/
|
|
519
|
-
function arrayToRegexp (path, keys, options) {
|
|
520
|
-
var parts = []
|
|
521
|
-
|
|
522
|
-
for (var i = 0; i < path.length; i++) {
|
|
523
|
-
parts.push(pathToRegexp(path[i], keys, options).source)
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options))
|
|
527
|
-
|
|
528
|
-
return attachKeys(regexp, keys)
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
* Create a path regexp from string input.
|
|
533
|
-
*
|
|
534
|
-
* @param {string} path
|
|
535
|
-
* @param {!Array} keys
|
|
536
|
-
* @param {!Object} options
|
|
537
|
-
* @return {!RegExp}
|
|
538
|
-
*/
|
|
539
|
-
function stringToRegexp (path, keys, options) {
|
|
540
|
-
return tokensToRegExp(parse(path, options), keys, options)
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* Expose a function for taking tokens and returning a RegExp.
|
|
545
|
-
*
|
|
546
|
-
* @param {!Array} tokens
|
|
547
|
-
* @param {(Array|Object)=} keys
|
|
548
|
-
* @param {Object=} options
|
|
549
|
-
* @return {!RegExp}
|
|
550
|
-
*/
|
|
551
|
-
function tokensToRegExp (tokens, keys, options) {
|
|
552
|
-
if (!isarray(keys)) {
|
|
553
|
-
options = /** @type {!Object} */ (keys || options)
|
|
554
|
-
keys = []
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
options = options || {}
|
|
558
|
-
|
|
559
|
-
var strict = options.strict
|
|
560
|
-
var end = options.end !== false
|
|
561
|
-
var route = ''
|
|
562
|
-
|
|
563
|
-
// Iterate over the tokens and create our regexp string.
|
|
564
|
-
for (var i = 0; i < tokens.length; i++) {
|
|
565
|
-
var token = tokens[i]
|
|
566
|
-
|
|
567
|
-
if (typeof token === 'string') {
|
|
568
|
-
route += escapeString(token)
|
|
569
|
-
} else {
|
|
570
|
-
var prefix = escapeString(token.prefix)
|
|
571
|
-
var capture = '(?:' + token.pattern + ')'
|
|
572
|
-
|
|
573
|
-
keys.push(token)
|
|
574
|
-
|
|
575
|
-
if (token.repeat) {
|
|
576
|
-
capture += '(?:' + prefix + capture + ')*'
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
if (token.optional) {
|
|
580
|
-
if (!token.partial) {
|
|
581
|
-
capture = '(?:' + prefix + '(' + capture + '))?'
|
|
582
|
-
} else {
|
|
583
|
-
capture = prefix + '(' + capture + ')?'
|
|
584
|
-
}
|
|
585
|
-
} else {
|
|
586
|
-
capture = prefix + '(' + capture + ')'
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
route += capture
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
var delimiter = escapeString(options.delimiter || '/')
|
|
594
|
-
var endsWithDelimiter = route.slice(-delimiter.length) === delimiter
|
|
595
|
-
|
|
596
|
-
// In non-strict mode we allow a slash at the end of match. If the path to
|
|
597
|
-
// match already ends with a slash, we remove it for consistency. The slash
|
|
598
|
-
// is valid at the end of a path match, not in the middle. This is important
|
|
599
|
-
// in non-ending mode, where "/test/" shouldn't match "/test//route".
|
|
600
|
-
if (!strict) {
|
|
601
|
-
route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?'
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
if (end) {
|
|
605
|
-
route += '$'
|
|
606
|
-
} else {
|
|
607
|
-
// In non-ending mode, we need the capturing groups to match as much as
|
|
608
|
-
// possible by using a positive lookahead to the end or next path segment.
|
|
609
|
-
route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)'
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
return attachKeys(new RegExp('^' + route, flags(options)), keys)
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Normalize the given path string, returning a regular expression.
|
|
617
|
-
*
|
|
618
|
-
* An empty array can be passed in for the keys, which will hold the
|
|
619
|
-
* placeholder key descriptions. For example, using `/user/:id`, `keys` will
|
|
620
|
-
* contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.
|
|
621
|
-
*
|
|
622
|
-
* @param {(string|RegExp|Array)} path
|
|
623
|
-
* @param {(Array|Object)=} keys
|
|
624
|
-
* @param {Object=} options
|
|
625
|
-
* @return {!RegExp}
|
|
626
|
-
*/
|
|
627
|
-
function pathToRegexp (path, keys, options) {
|
|
628
|
-
if (!isarray(keys)) {
|
|
629
|
-
options = /** @type {!Object} */ (keys || options)
|
|
630
|
-
keys = []
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
options = options || {}
|
|
634
|
-
|
|
635
|
-
if (path instanceof RegExp) {
|
|
636
|
-
return regexpToRegexp(path, /** @type {!Array} */ (keys))
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
if (isarray(path)) {
|
|
640
|
-
return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)
|
|
644
|
-
}
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
/***/ }),
|
|
648
|
-
|
|
649
|
-
/***/ "./node_modules/react-router/esm/react-router.js":
|
|
650
|
-
/*!*******************************************************!*\
|
|
651
|
-
!*** ./node_modules/react-router/esm/react-router.js ***!
|
|
652
|
-
\*******************************************************/
|
|
653
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
654
|
-
|
|
655
|
-
"use strict";
|
|
656
|
-
__webpack_require__.r(__webpack_exports__);
|
|
657
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
658
|
-
/* harmony export */ "MemoryRouter": () => (/* binding */ MemoryRouter),
|
|
659
|
-
/* harmony export */ "Prompt": () => (/* binding */ Prompt),
|
|
660
|
-
/* harmony export */ "Redirect": () => (/* binding */ Redirect),
|
|
661
|
-
/* harmony export */ "Route": () => (/* binding */ Route),
|
|
662
|
-
/* harmony export */ "Router": () => (/* binding */ Router),
|
|
663
|
-
/* harmony export */ "StaticRouter": () => (/* binding */ StaticRouter),
|
|
664
|
-
/* harmony export */ "Switch": () => (/* binding */ Switch),
|
|
665
|
-
/* harmony export */ "__HistoryContext": () => (/* binding */ historyContext),
|
|
666
|
-
/* harmony export */ "__RouterContext": () => (/* binding */ context),
|
|
667
|
-
/* harmony export */ "generatePath": () => (/* binding */ generatePath),
|
|
668
|
-
/* harmony export */ "matchPath": () => (/* binding */ matchPath),
|
|
669
|
-
/* harmony export */ "useHistory": () => (/* binding */ useHistory),
|
|
670
|
-
/* harmony export */ "useLocation": () => (/* binding */ useLocation),
|
|
671
|
-
/* harmony export */ "useParams": () => (/* binding */ useParams),
|
|
672
|
-
/* harmony export */ "useRouteMatch": () => (/* binding */ useRouteMatch),
|
|
673
|
-
/* harmony export */ "withRouter": () => (/* binding */ withRouter)
|
|
674
|
-
/* harmony export */ });
|
|
675
|
-
/* harmony import */ var _babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/inheritsLoose */ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js");
|
|
676
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/sharing/consume/default/react/react?474c");
|
|
677
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
678
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! prop-types */ "./node_modules/prop-types/index.js");
|
|
679
|
-
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_8__);
|
|
680
|
-
/* harmony import */ var history__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! history */ "./node_modules/history/esm/history.js");
|
|
681
|
-
/* harmony import */ var tiny_warning__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! tiny-warning */ "./node_modules/tiny-warning/dist/tiny-warning.esm.js");
|
|
682
|
-
/* harmony import */ var mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mini-create-react-context */ "./node_modules/mini-create-react-context/dist/esm/index.js");
|
|
683
|
-
/* harmony import */ var tiny_invariant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! tiny-invariant */ "./node_modules/tiny-invariant/dist/tiny-invariant.esm.js");
|
|
684
|
-
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "./node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
685
|
-
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! path-to-regexp */ "./node_modules/path-to-regexp/index.js");
|
|
686
|
-
/* harmony import */ var path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(path_to_regexp__WEBPACK_IMPORTED_MODULE_4__);
|
|
687
|
-
/* harmony import */ var react_is__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react-is */ "./node_modules/react-is/index.js");
|
|
688
|
-
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "./node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
689
|
-
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! hoist-non-react-statics */ "./node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js");
|
|
690
|
-
/* harmony import */ var hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7__);
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
// TODO: Replace with React.createContext once we can assume React 16+
|
|
705
|
-
|
|
706
|
-
var createNamedContext = function createNamedContext(name) {
|
|
707
|
-
var context = (0,mini_create_react_context__WEBPACK_IMPORTED_MODULE_2__.default)();
|
|
708
|
-
context.displayName = name;
|
|
709
|
-
return context;
|
|
710
|
-
};
|
|
711
|
-
|
|
712
|
-
var historyContext = /*#__PURE__*/createNamedContext("Router-History");
|
|
713
|
-
|
|
714
|
-
var context = /*#__PURE__*/createNamedContext("Router");
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* The public API for putting history on context.
|
|
718
|
-
*/
|
|
719
|
-
|
|
720
|
-
var Router = /*#__PURE__*/function (_React$Component) {
|
|
721
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(Router, _React$Component);
|
|
722
|
-
|
|
723
|
-
Router.computeRootMatch = function computeRootMatch(pathname) {
|
|
724
|
-
return {
|
|
725
|
-
path: "/",
|
|
726
|
-
url: "/",
|
|
727
|
-
params: {},
|
|
728
|
-
isExact: pathname === "/"
|
|
729
|
-
};
|
|
730
|
-
};
|
|
731
|
-
|
|
732
|
-
function Router(props) {
|
|
733
|
-
var _this;
|
|
734
|
-
|
|
735
|
-
_this = _React$Component.call(this, props) || this;
|
|
736
|
-
_this.state = {
|
|
737
|
-
location: props.history.location
|
|
738
|
-
}; // This is a bit of a hack. We have to start listening for location
|
|
739
|
-
// changes here in the constructor in case there are any <Redirect>s
|
|
740
|
-
// on the initial render. If there are, they will replace/push when
|
|
741
|
-
// they mount and since cDM fires in children before parents, we may
|
|
742
|
-
// get a new location before the <Router> is mounted.
|
|
743
|
-
|
|
744
|
-
_this._isMounted = false;
|
|
745
|
-
_this._pendingLocation = null;
|
|
746
|
-
|
|
747
|
-
if (!props.staticContext) {
|
|
748
|
-
_this.unlisten = props.history.listen(function (location) {
|
|
749
|
-
if (_this._isMounted) {
|
|
750
|
-
_this.setState({
|
|
751
|
-
location: location
|
|
752
|
-
});
|
|
753
|
-
} else {
|
|
754
|
-
_this._pendingLocation = location;
|
|
755
|
-
}
|
|
756
|
-
});
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
return _this;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
var _proto = Router.prototype;
|
|
763
|
-
|
|
764
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
765
|
-
this._isMounted = true;
|
|
766
|
-
|
|
767
|
-
if (this._pendingLocation) {
|
|
768
|
-
this.setState({
|
|
769
|
-
location: this._pendingLocation
|
|
770
|
-
});
|
|
771
|
-
}
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
775
|
-
if (this.unlisten) {
|
|
776
|
-
this.unlisten();
|
|
777
|
-
this._isMounted = false;
|
|
778
|
-
this._pendingLocation = null;
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
|
|
782
|
-
_proto.render = function render() {
|
|
783
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Provider, {
|
|
784
|
-
value: {
|
|
785
|
-
history: this.props.history,
|
|
786
|
-
location: this.state.location,
|
|
787
|
-
match: Router.computeRootMatch(this.state.location.pathname),
|
|
788
|
-
staticContext: this.props.staticContext
|
|
789
|
-
}
|
|
790
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(historyContext.Provider, {
|
|
791
|
-
children: this.props.children || null,
|
|
792
|
-
value: this.props.history
|
|
793
|
-
}));
|
|
794
|
-
};
|
|
795
|
-
|
|
796
|
-
return Router;
|
|
797
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
798
|
-
|
|
799
|
-
if (true) {
|
|
800
|
-
Router.propTypes = {
|
|
801
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
|
|
802
|
-
history: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object.isRequired),
|
|
803
|
-
staticContext: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
Router.prototype.componentDidUpdate = function (prevProps) {
|
|
807
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(prevProps.history === this.props.history, "You cannot change <Router history>") : 0;
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* The public API for a <Router> that stores location in memory.
|
|
813
|
-
*/
|
|
814
|
-
|
|
815
|
-
var MemoryRouter = /*#__PURE__*/function (_React$Component) {
|
|
816
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(MemoryRouter, _React$Component);
|
|
817
|
-
|
|
818
|
-
function MemoryRouter() {
|
|
819
|
-
var _this;
|
|
820
|
-
|
|
821
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
822
|
-
args[_key] = arguments[_key];
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
826
|
-
_this.history = (0,history__WEBPACK_IMPORTED_MODULE_10__.createMemoryHistory)(_this.props);
|
|
827
|
-
return _this;
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
var _proto = MemoryRouter.prototype;
|
|
831
|
-
|
|
832
|
-
_proto.render = function render() {
|
|
833
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Router, {
|
|
834
|
-
history: this.history,
|
|
835
|
-
children: this.props.children
|
|
836
|
-
});
|
|
837
|
-
};
|
|
838
|
-
|
|
839
|
-
return MemoryRouter;
|
|
840
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
841
|
-
|
|
842
|
-
if (true) {
|
|
843
|
-
MemoryRouter.propTypes = {
|
|
844
|
-
initialEntries: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().array),
|
|
845
|
-
initialIndex: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
846
|
-
getUserConfirmation: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
847
|
-
keyLength: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().number),
|
|
848
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
MemoryRouter.prototype.componentDidMount = function () {
|
|
852
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!this.props.history, "<MemoryRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { MemoryRouter as Router }`.") : 0;
|
|
853
|
-
};
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
var Lifecycle = /*#__PURE__*/function (_React$Component) {
|
|
857
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(Lifecycle, _React$Component);
|
|
858
|
-
|
|
859
|
-
function Lifecycle() {
|
|
860
|
-
return _React$Component.apply(this, arguments) || this;
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
var _proto = Lifecycle.prototype;
|
|
864
|
-
|
|
865
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
866
|
-
if (this.props.onMount) this.props.onMount.call(this, this);
|
|
867
|
-
};
|
|
868
|
-
|
|
869
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
870
|
-
if (this.props.onUpdate) this.props.onUpdate.call(this, this, prevProps);
|
|
871
|
-
};
|
|
872
|
-
|
|
873
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
874
|
-
if (this.props.onUnmount) this.props.onUnmount.call(this, this);
|
|
875
|
-
};
|
|
876
|
-
|
|
877
|
-
_proto.render = function render() {
|
|
878
|
-
return null;
|
|
879
|
-
};
|
|
880
|
-
|
|
881
|
-
return Lifecycle;
|
|
882
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* The public API for prompting the user before navigating away from a screen.
|
|
886
|
-
*/
|
|
887
|
-
|
|
888
|
-
function Prompt(_ref) {
|
|
889
|
-
var message = _ref.message,
|
|
890
|
-
_ref$when = _ref.when,
|
|
891
|
-
when = _ref$when === void 0 ? true : _ref$when;
|
|
892
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
|
|
893
|
-
!context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You should not use <Prompt> outside a <Router>") : 0 : void 0;
|
|
894
|
-
if (!when || context.staticContext) return null;
|
|
895
|
-
var method = context.history.block;
|
|
896
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Lifecycle, {
|
|
897
|
-
onMount: function onMount(self) {
|
|
898
|
-
self.release = method(message);
|
|
899
|
-
},
|
|
900
|
-
onUpdate: function onUpdate(self, prevProps) {
|
|
901
|
-
if (prevProps.message !== message) {
|
|
902
|
-
self.release();
|
|
903
|
-
self.release = method(message);
|
|
904
|
-
}
|
|
905
|
-
},
|
|
906
|
-
onUnmount: function onUnmount(self) {
|
|
907
|
-
self.release();
|
|
908
|
-
},
|
|
909
|
-
message: message
|
|
910
|
-
});
|
|
911
|
-
});
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
if (true) {
|
|
915
|
-
var messageType = prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string)]);
|
|
916
|
-
Prompt.propTypes = {
|
|
917
|
-
when: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
918
|
-
message: messageType.isRequired
|
|
919
|
-
};
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
var cache = {};
|
|
923
|
-
var cacheLimit = 10000;
|
|
924
|
-
var cacheCount = 0;
|
|
925
|
-
|
|
926
|
-
function compilePath(path) {
|
|
927
|
-
if (cache[path]) return cache[path];
|
|
928
|
-
var generator = path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default().compile(path);
|
|
929
|
-
|
|
930
|
-
if (cacheCount < cacheLimit) {
|
|
931
|
-
cache[path] = generator;
|
|
932
|
-
cacheCount++;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
return generator;
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
* Public API for generating a URL pathname from a path and parameters.
|
|
939
|
-
*/
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
function generatePath(path, params) {
|
|
943
|
-
if (path === void 0) {
|
|
944
|
-
path = "/";
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
if (params === void 0) {
|
|
948
|
-
params = {};
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
return path === "/" ? path : compilePath(path)(params, {
|
|
952
|
-
pretty: true
|
|
953
|
-
});
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
/**
|
|
957
|
-
* The public API for navigating programmatically with a component.
|
|
958
|
-
*/
|
|
959
|
-
|
|
960
|
-
function Redirect(_ref) {
|
|
961
|
-
var computedMatch = _ref.computedMatch,
|
|
962
|
-
to = _ref.to,
|
|
963
|
-
_ref$push = _ref.push,
|
|
964
|
-
push = _ref$push === void 0 ? false : _ref$push;
|
|
965
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
|
|
966
|
-
!context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You should not use <Redirect> outside a <Router>") : 0 : void 0;
|
|
967
|
-
var history = context.history,
|
|
968
|
-
staticContext = context.staticContext;
|
|
969
|
-
var method = push ? history.push : history.replace;
|
|
970
|
-
var location = (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(computedMatch ? typeof to === "string" ? generatePath(to, computedMatch.params) : (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, to, {
|
|
971
|
-
pathname: generatePath(to.pathname, computedMatch.params)
|
|
972
|
-
}) : to); // When rendering in a static context,
|
|
973
|
-
// set the new location immediately.
|
|
974
|
-
|
|
975
|
-
if (staticContext) {
|
|
976
|
-
method(location);
|
|
977
|
-
return null;
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Lifecycle, {
|
|
981
|
-
onMount: function onMount() {
|
|
982
|
-
method(location);
|
|
983
|
-
},
|
|
984
|
-
onUpdate: function onUpdate(self, prevProps) {
|
|
985
|
-
var prevLocation = (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(prevProps.to);
|
|
986
|
-
|
|
987
|
-
if (!(0,history__WEBPACK_IMPORTED_MODULE_10__.locationsAreEqual)(prevLocation, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, location, {
|
|
988
|
-
key: prevLocation.key
|
|
989
|
-
}))) {
|
|
990
|
-
method(location);
|
|
991
|
-
}
|
|
992
|
-
},
|
|
993
|
-
to: to
|
|
994
|
-
});
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
if (true) {
|
|
999
|
-
Redirect.propTypes = {
|
|
1000
|
-
push: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
1001
|
-
from: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
1002
|
-
to: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)]).isRequired
|
|
1003
|
-
};
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
var cache$1 = {};
|
|
1007
|
-
var cacheLimit$1 = 10000;
|
|
1008
|
-
var cacheCount$1 = 0;
|
|
1009
|
-
|
|
1010
|
-
function compilePath$1(path, options) {
|
|
1011
|
-
var cacheKey = "" + options.end + options.strict + options.sensitive;
|
|
1012
|
-
var pathCache = cache$1[cacheKey] || (cache$1[cacheKey] = {});
|
|
1013
|
-
if (pathCache[path]) return pathCache[path];
|
|
1014
|
-
var keys = [];
|
|
1015
|
-
var regexp = path_to_regexp__WEBPACK_IMPORTED_MODULE_4___default()(path, keys, options);
|
|
1016
|
-
var result = {
|
|
1017
|
-
regexp: regexp,
|
|
1018
|
-
keys: keys
|
|
1019
|
-
};
|
|
1020
|
-
|
|
1021
|
-
if (cacheCount$1 < cacheLimit$1) {
|
|
1022
|
-
pathCache[path] = result;
|
|
1023
|
-
cacheCount$1++;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
return result;
|
|
1027
|
-
}
|
|
1028
|
-
/**
|
|
1029
|
-
* Public API for matching a URL pathname to a path.
|
|
1030
|
-
*/
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
function matchPath(pathname, options) {
|
|
1034
|
-
if (options === void 0) {
|
|
1035
|
-
options = {};
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
if (typeof options === "string" || Array.isArray(options)) {
|
|
1039
|
-
options = {
|
|
1040
|
-
path: options
|
|
1041
|
-
};
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
var _options = options,
|
|
1045
|
-
path = _options.path,
|
|
1046
|
-
_options$exact = _options.exact,
|
|
1047
|
-
exact = _options$exact === void 0 ? false : _options$exact,
|
|
1048
|
-
_options$strict = _options.strict,
|
|
1049
|
-
strict = _options$strict === void 0 ? false : _options$strict,
|
|
1050
|
-
_options$sensitive = _options.sensitive,
|
|
1051
|
-
sensitive = _options$sensitive === void 0 ? false : _options$sensitive;
|
|
1052
|
-
var paths = [].concat(path);
|
|
1053
|
-
return paths.reduce(function (matched, path) {
|
|
1054
|
-
if (!path && path !== "") return null;
|
|
1055
|
-
if (matched) return matched;
|
|
1056
|
-
|
|
1057
|
-
var _compilePath = compilePath$1(path, {
|
|
1058
|
-
end: exact,
|
|
1059
|
-
strict: strict,
|
|
1060
|
-
sensitive: sensitive
|
|
1061
|
-
}),
|
|
1062
|
-
regexp = _compilePath.regexp,
|
|
1063
|
-
keys = _compilePath.keys;
|
|
1064
|
-
|
|
1065
|
-
var match = regexp.exec(pathname);
|
|
1066
|
-
if (!match) return null;
|
|
1067
|
-
var url = match[0],
|
|
1068
|
-
values = match.slice(1);
|
|
1069
|
-
var isExact = pathname === url;
|
|
1070
|
-
if (exact && !isExact) return null;
|
|
1071
|
-
return {
|
|
1072
|
-
path: path,
|
|
1073
|
-
// the path used to match
|
|
1074
|
-
url: path === "/" && url === "" ? "/" : url,
|
|
1075
|
-
// the matched portion of the URL
|
|
1076
|
-
isExact: isExact,
|
|
1077
|
-
// whether or not we matched exactly
|
|
1078
|
-
params: keys.reduce(function (memo, key, index) {
|
|
1079
|
-
memo[key.name] = values[index];
|
|
1080
|
-
return memo;
|
|
1081
|
-
}, {})
|
|
1082
|
-
};
|
|
1083
|
-
}, null);
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
function isEmptyChildren(children) {
|
|
1087
|
-
return react__WEBPACK_IMPORTED_MODULE_1___default().Children.count(children) === 0;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
function evalChildrenDev(children, props, path) {
|
|
1091
|
-
var value = children(props);
|
|
1092
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(value !== undefined, "You returned `undefined` from the `children` function of " + ("<Route" + (path ? " path=\"" + path + "\"" : "") + ">, but you ") + "should have returned a React element or `null`") : 0;
|
|
1093
|
-
return value || null;
|
|
1094
|
-
}
|
|
1095
|
-
/**
|
|
1096
|
-
* The public API for matching a single path and rendering.
|
|
1097
|
-
*/
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
var Route = /*#__PURE__*/function (_React$Component) {
|
|
1101
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(Route, _React$Component);
|
|
1102
|
-
|
|
1103
|
-
function Route() {
|
|
1104
|
-
return _React$Component.apply(this, arguments) || this;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
var _proto = Route.prototype;
|
|
1108
|
-
|
|
1109
|
-
_proto.render = function render() {
|
|
1110
|
-
var _this = this;
|
|
1111
|
-
|
|
1112
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context$1) {
|
|
1113
|
-
!context$1 ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You should not use <Route> outside a <Router>") : 0 : void 0;
|
|
1114
|
-
var location = _this.props.location || context$1.location;
|
|
1115
|
-
var match = _this.props.computedMatch ? _this.props.computedMatch // <Switch> already computed the match for us
|
|
1116
|
-
: _this.props.path ? matchPath(location.pathname, _this.props) : context$1.match;
|
|
1117
|
-
|
|
1118
|
-
var props = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, context$1, {
|
|
1119
|
-
location: location,
|
|
1120
|
-
match: match
|
|
1121
|
-
});
|
|
1122
|
-
|
|
1123
|
-
var _this$props = _this.props,
|
|
1124
|
-
children = _this$props.children,
|
|
1125
|
-
component = _this$props.component,
|
|
1126
|
-
render = _this$props.render; // Preact uses an empty array as children by
|
|
1127
|
-
// default, so use null if that's the case.
|
|
1128
|
-
|
|
1129
|
-
if (Array.isArray(children) && isEmptyChildren(children)) {
|
|
1130
|
-
children = null;
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Provider, {
|
|
1134
|
-
value: props
|
|
1135
|
-
}, props.match ? children ? typeof children === "function" ? true ? evalChildrenDev(children, props, _this.props.path) : 0 : children : component ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(component, props) : render ? render(props) : null : typeof children === "function" ? true ? evalChildrenDev(children, props, _this.props.path) : 0 : null);
|
|
1136
|
-
});
|
|
1137
|
-
};
|
|
1138
|
-
|
|
1139
|
-
return Route;
|
|
1140
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
1141
|
-
|
|
1142
|
-
if (true) {
|
|
1143
|
-
Route.propTypes = {
|
|
1144
|
-
children: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node)]),
|
|
1145
|
-
component: function component(props, propName) {
|
|
1146
|
-
if (props[propName] && !(0,react_is__WEBPACK_IMPORTED_MODULE_5__.isValidElementType)(props[propName])) {
|
|
1147
|
-
return new Error("Invalid prop 'component' supplied to 'Route': the prop is not a valid React component");
|
|
1148
|
-
}
|
|
1149
|
-
},
|
|
1150
|
-
exact: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
1151
|
-
location: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
1152
|
-
path: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), prop_types__WEBPACK_IMPORTED_MODULE_8___default().arrayOf((prop_types__WEBPACK_IMPORTED_MODULE_8___default().string))]),
|
|
1153
|
-
render: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func),
|
|
1154
|
-
sensitive: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool),
|
|
1155
|
-
strict: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().bool)
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
Route.prototype.componentDidMount = function () {
|
|
1159
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.component), "You should not use <Route component> and <Route children> in the same route; <Route component> will be ignored") : 0;
|
|
1160
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(this.props.children && !isEmptyChildren(this.props.children) && this.props.render), "You should not use <Route render> and <Route children> in the same route; <Route render> will be ignored") : 0;
|
|
1161
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(this.props.component && this.props.render), "You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored") : 0;
|
|
1162
|
-
};
|
|
1163
|
-
|
|
1164
|
-
Route.prototype.componentDidUpdate = function (prevProps) {
|
|
1165
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(this.props.location && !prevProps.location), '<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : 0;
|
|
1166
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(!this.props.location && prevProps.location), '<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : 0;
|
|
1167
|
-
};
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
function addLeadingSlash(path) {
|
|
1171
|
-
return path.charAt(0) === "/" ? path : "/" + path;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
function addBasename(basename, location) {
|
|
1175
|
-
if (!basename) return location;
|
|
1176
|
-
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, location, {
|
|
1177
|
-
pathname: addLeadingSlash(basename) + location.pathname
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
function stripBasename(basename, location) {
|
|
1182
|
-
if (!basename) return location;
|
|
1183
|
-
var base = addLeadingSlash(basename);
|
|
1184
|
-
if (location.pathname.indexOf(base) !== 0) return location;
|
|
1185
|
-
return (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, location, {
|
|
1186
|
-
pathname: location.pathname.substr(base.length)
|
|
1187
|
-
});
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
function createURL(location) {
|
|
1191
|
-
return typeof location === "string" ? location : (0,history__WEBPACK_IMPORTED_MODULE_10__.createPath)(location);
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
function staticHandler(methodName) {
|
|
1195
|
-
return function () {
|
|
1196
|
-
true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You cannot %s with <StaticRouter>", methodName) : 0 ;
|
|
1197
|
-
};
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
function noop() {}
|
|
1201
|
-
/**
|
|
1202
|
-
* The public top-level API for a "static" <Router>, so-called because it
|
|
1203
|
-
* can't actually change the current location. Instead, it just records
|
|
1204
|
-
* location changes in a context object. Useful mainly in testing and
|
|
1205
|
-
* server-rendering scenarios.
|
|
1206
|
-
*/
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
var StaticRouter = /*#__PURE__*/function (_React$Component) {
|
|
1210
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(StaticRouter, _React$Component);
|
|
1211
|
-
|
|
1212
|
-
function StaticRouter() {
|
|
1213
|
-
var _this;
|
|
1214
|
-
|
|
1215
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1216
|
-
args[_key] = arguments[_key];
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
_this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
|
1220
|
-
|
|
1221
|
-
_this.handlePush = function (location) {
|
|
1222
|
-
return _this.navigateTo(location, "PUSH");
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
_this.handleReplace = function (location) {
|
|
1226
|
-
return _this.navigateTo(location, "REPLACE");
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
_this.handleListen = function () {
|
|
1230
|
-
return noop;
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1233
|
-
_this.handleBlock = function () {
|
|
1234
|
-
return noop;
|
|
1235
|
-
};
|
|
1236
|
-
|
|
1237
|
-
return _this;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
var _proto = StaticRouter.prototype;
|
|
1241
|
-
|
|
1242
|
-
_proto.navigateTo = function navigateTo(location, action) {
|
|
1243
|
-
var _this$props = this.props,
|
|
1244
|
-
_this$props$basename = _this$props.basename,
|
|
1245
|
-
basename = _this$props$basename === void 0 ? "" : _this$props$basename,
|
|
1246
|
-
_this$props$context = _this$props.context,
|
|
1247
|
-
context = _this$props$context === void 0 ? {} : _this$props$context;
|
|
1248
|
-
context.action = action;
|
|
1249
|
-
context.location = addBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(location));
|
|
1250
|
-
context.url = createURL(context.location);
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
|
-
_proto.render = function render() {
|
|
1254
|
-
var _this$props2 = this.props,
|
|
1255
|
-
_this$props2$basename = _this$props2.basename,
|
|
1256
|
-
basename = _this$props2$basename === void 0 ? "" : _this$props2$basename,
|
|
1257
|
-
_this$props2$context = _this$props2.context,
|
|
1258
|
-
context = _this$props2$context === void 0 ? {} : _this$props2$context,
|
|
1259
|
-
_this$props2$location = _this$props2.location,
|
|
1260
|
-
location = _this$props2$location === void 0 ? "/" : _this$props2$location,
|
|
1261
|
-
rest = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__.default)(_this$props2, ["basename", "context", "location"]);
|
|
1262
|
-
|
|
1263
|
-
var history = {
|
|
1264
|
-
createHref: function createHref(path) {
|
|
1265
|
-
return addLeadingSlash(basename + createURL(path));
|
|
1266
|
-
},
|
|
1267
|
-
action: "POP",
|
|
1268
|
-
location: stripBasename(basename, (0,history__WEBPACK_IMPORTED_MODULE_10__.createLocation)(location)),
|
|
1269
|
-
push: this.handlePush,
|
|
1270
|
-
replace: this.handleReplace,
|
|
1271
|
-
go: staticHandler("go"),
|
|
1272
|
-
goBack: staticHandler("goBack"),
|
|
1273
|
-
goForward: staticHandler("goForward"),
|
|
1274
|
-
listen: this.handleListen,
|
|
1275
|
-
block: this.handleBlock
|
|
1276
|
-
};
|
|
1277
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Router, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, rest, {
|
|
1278
|
-
history: history,
|
|
1279
|
-
staticContext: context
|
|
1280
|
-
}));
|
|
1281
|
-
};
|
|
1282
|
-
|
|
1283
|
-
return StaticRouter;
|
|
1284
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
1285
|
-
|
|
1286
|
-
if (true) {
|
|
1287
|
-
StaticRouter.propTypes = {
|
|
1288
|
-
basename: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().string),
|
|
1289
|
-
context: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object),
|
|
1290
|
-
location: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)])
|
|
1291
|
-
};
|
|
1292
|
-
|
|
1293
|
-
StaticRouter.prototype.componentDidMount = function () {
|
|
1294
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!this.props.history, "<StaticRouter> ignores the history prop. To use a custom history, " + "use `import { Router }` instead of `import { StaticRouter as Router }`.") : 0;
|
|
1295
|
-
};
|
|
1296
|
-
}
|
|
1297
|
-
|
|
1298
|
-
/**
|
|
1299
|
-
* The public API for rendering the first <Route> that matches.
|
|
1300
|
-
*/
|
|
1301
|
-
|
|
1302
|
-
var Switch = /*#__PURE__*/function (_React$Component) {
|
|
1303
|
-
(0,_babel_runtime_helpers_esm_inheritsLoose__WEBPACK_IMPORTED_MODULE_0__.default)(Switch, _React$Component);
|
|
1304
|
-
|
|
1305
|
-
function Switch() {
|
|
1306
|
-
return _React$Component.apply(this, arguments) || this;
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
var _proto = Switch.prototype;
|
|
1310
|
-
|
|
1311
|
-
_proto.render = function render() {
|
|
1312
|
-
var _this = this;
|
|
1313
|
-
|
|
1314
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
|
|
1315
|
-
!context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You should not use <Switch> outside a <Router>") : 0 : void 0;
|
|
1316
|
-
var location = _this.props.location || context.location;
|
|
1317
|
-
var element, match; // We use React.Children.forEach instead of React.Children.toArray().find()
|
|
1318
|
-
// here because toArray adds keys to all child elements and we do not want
|
|
1319
|
-
// to trigger an unmount/remount for two <Route>s that render the same
|
|
1320
|
-
// component at different URLs.
|
|
1321
|
-
|
|
1322
|
-
react__WEBPACK_IMPORTED_MODULE_1___default().Children.forEach(_this.props.children, function (child) {
|
|
1323
|
-
if (match == null && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().isValidElement(child)) {
|
|
1324
|
-
element = child;
|
|
1325
|
-
var path = child.props.path || child.props.from;
|
|
1326
|
-
match = path ? matchPath(location.pathname, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, child.props, {
|
|
1327
|
-
path: path
|
|
1328
|
-
})) : context.match;
|
|
1329
|
-
}
|
|
1330
|
-
});
|
|
1331
|
-
return match ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(element, {
|
|
1332
|
-
location: location,
|
|
1333
|
-
computedMatch: match
|
|
1334
|
-
}) : null;
|
|
1335
|
-
});
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
|
-
return Switch;
|
|
1339
|
-
}((react__WEBPACK_IMPORTED_MODULE_1___default().Component));
|
|
1340
|
-
|
|
1341
|
-
if (true) {
|
|
1342
|
-
Switch.propTypes = {
|
|
1343
|
-
children: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().node),
|
|
1344
|
-
location: (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)
|
|
1345
|
-
};
|
|
1346
|
-
|
|
1347
|
-
Switch.prototype.componentDidUpdate = function (prevProps) {
|
|
1348
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(this.props.location && !prevProps.location), '<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.') : 0;
|
|
1349
|
-
true ? (0,tiny_warning__WEBPACK_IMPORTED_MODULE_9__.default)(!(!this.props.location && prevProps.location), '<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.') : 0;
|
|
1350
|
-
};
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* A public higher-order component to access the imperative API
|
|
1355
|
-
*/
|
|
1356
|
-
|
|
1357
|
-
function withRouter(Component) {
|
|
1358
|
-
var displayName = "withRouter(" + (Component.displayName || Component.name) + ")";
|
|
1359
|
-
|
|
1360
|
-
var C = function C(props) {
|
|
1361
|
-
var wrappedComponentRef = props.wrappedComponentRef,
|
|
1362
|
-
remainingProps = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_6__.default)(props, ["wrappedComponentRef"]);
|
|
1363
|
-
|
|
1364
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(context.Consumer, null, function (context) {
|
|
1365
|
-
!context ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You should not use <" + displayName + " /> outside a <Router>") : 0 : void 0;
|
|
1366
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Component, (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_3__.default)({}, remainingProps, context, {
|
|
1367
|
-
ref: wrappedComponentRef
|
|
1368
|
-
}));
|
|
1369
|
-
});
|
|
1370
|
-
};
|
|
1371
|
-
|
|
1372
|
-
C.displayName = displayName;
|
|
1373
|
-
C.WrappedComponent = Component;
|
|
1374
|
-
|
|
1375
|
-
if (true) {
|
|
1376
|
-
C.propTypes = {
|
|
1377
|
-
wrappedComponentRef: prop_types__WEBPACK_IMPORTED_MODULE_8___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_8___default().string), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().func), (prop_types__WEBPACK_IMPORTED_MODULE_8___default().object)])
|
|
1378
|
-
};
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
return hoist_non_react_statics__WEBPACK_IMPORTED_MODULE_7___default()(C, Component);
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
var useContext = (react__WEBPACK_IMPORTED_MODULE_1___default().useContext);
|
|
1385
|
-
function useHistory() {
|
|
1386
|
-
if (true) {
|
|
1387
|
-
!(typeof useContext === "function") ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You must use React >= 16.8 in order to use useHistory()") : 0 : void 0;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
return useContext(historyContext);
|
|
1391
|
-
}
|
|
1392
|
-
function useLocation() {
|
|
1393
|
-
if (true) {
|
|
1394
|
-
!(typeof useContext === "function") ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You must use React >= 16.8 in order to use useLocation()") : 0 : void 0;
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
return useContext(context).location;
|
|
1398
|
-
}
|
|
1399
|
-
function useParams() {
|
|
1400
|
-
if (true) {
|
|
1401
|
-
!(typeof useContext === "function") ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You must use React >= 16.8 in order to use useParams()") : 0 : void 0;
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
var match = useContext(context).match;
|
|
1405
|
-
return match ? match.params : {};
|
|
1406
|
-
}
|
|
1407
|
-
function useRouteMatch(path) {
|
|
1408
|
-
if (true) {
|
|
1409
|
-
!(typeof useContext === "function") ? true ? (0,tiny_invariant__WEBPACK_IMPORTED_MODULE_11__.default)(false, "You must use React >= 16.8 in order to use useRouteMatch()") : 0 : void 0;
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
var location = useLocation();
|
|
1413
|
-
var match = useContext(context).match;
|
|
1414
|
-
return path ? matchPath(location.pathname, path) : match;
|
|
1415
|
-
}
|
|
1416
|
-
|
|
1417
|
-
if (true) {
|
|
1418
|
-
if (typeof window !== "undefined") {
|
|
1419
|
-
var global = window;
|
|
1420
|
-
var key = "__react_router_build__";
|
|
1421
|
-
var buildNames = {
|
|
1422
|
-
cjs: "CommonJS",
|
|
1423
|
-
esm: "ES modules",
|
|
1424
|
-
umd: "UMD"
|
|
1425
|
-
};
|
|
1426
|
-
|
|
1427
|
-
if (global[key] && global[key] !== "esm") {
|
|
1428
|
-
var initialBuildName = buildNames[global[key]];
|
|
1429
|
-
var secondaryBuildName = buildNames["esm"]; // TODO: Add link to article that explains in detail how to avoid
|
|
1430
|
-
// loading 2 different builds.
|
|
1431
|
-
|
|
1432
|
-
throw new Error("You are loading the " + secondaryBuildName + " build of React Router " + ("on a page that is already running the " + initialBuildName + " ") + "build, so things won't work right.");
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
global[key] = "esm";
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
//# sourceMappingURL=react-router.js.map
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
/***/ }),
|
|
1444
|
-
|
|
1445
|
-
/***/ "./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js":
|
|
1446
|
-
/*!******************************************************************!*\
|
|
1447
|
-
!*** ./node_modules/@babel/runtime/helpers/esm/inheritsLoose.js ***!
|
|
1448
|
-
\******************************************************************/
|
|
1449
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
1450
|
-
|
|
1451
|
-
"use strict";
|
|
1452
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1453
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1454
|
-
/* harmony export */ "default": () => (/* binding */ _inheritsLoose)
|
|
1455
|
-
/* harmony export */ });
|
|
1456
|
-
/* harmony import */ var _setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setPrototypeOf.js */ "./node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js");
|
|
1457
|
-
|
|
1458
|
-
function _inheritsLoose(subClass, superClass) {
|
|
1459
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
1460
|
-
subClass.prototype.constructor = subClass;
|
|
1461
|
-
(0,_setPrototypeOf_js__WEBPACK_IMPORTED_MODULE_0__.default)(subClass, superClass);
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
/***/ })
|
|
1465
|
-
|
|
1466
|
-
}]);
|