/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ "use strict";
/******/ var __webpack_modules__ = ({
/***/ "./src/EndPageSharedMicroApps.tsx":
/*!****************************************!*\
!*** ./src/EndPageSharedMicroApps.tsx ***!
\****************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Utils_Href__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Utils/Href */ \"./src/Utils/Href.ts\");\n\r\n$('#selectedStore').change(function () {\r\n let storeId = \"\" + $(this).val();\r\n const baseUrl = window.location.href.split('?')[0];\r\n window.location.href = _Utils_Href__WEBPACK_IMPORTED_MODULE_0__.Href.appendParams(baseUrl, [{ key: \"selectedStore\", value: storeId }]);\r\n});\r\n\n\n//# sourceURL=webpack://react-typescript-webpack-starter/./src/EndPageSharedMicroApps.tsx?");
/***/ }),
/***/ "./src/Utils/Href.ts":
/*!***************************!*\
!*** ./src/Utils/Href.ts ***!
\***************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Href\": () => (/* binding */ Href)\n/* harmony export */ });\nclass Href {\r\n static appendParams(baseUrl, params) {\r\n const urlObj = new URL(baseUrl);\r\n //only append if the key does not exist\r\n params.forEach(param => {\r\n if (!urlObj.searchParams.has(param.key)) {\r\n urlObj.searchParams.append(param.key, param.value + '');\r\n }\r\n });\r\n return urlObj.toString();\r\n }\r\n //from url string, split the query string and return as array of key value pairs\r\n static getParams(url) {\r\n const urlObj = new URL(url);\r\n const params = [];\r\n urlObj.searchParams.forEach((value, key) => {\r\n params.push({ key: key, value: value });\r\n });\r\n return params;\r\n }\r\n //replace param in the url with a value, if value = null/undef, remove it\r\n static replaceParam(url, key, value) {\r\n const urlObj = new URL(url);\r\n if (value) {\r\n urlObj.searchParams.set(key, value);\r\n }\r\n else {\r\n urlObj.searchParams.delete(key);\r\n }\r\n return urlObj.toString();\r\n }\r\n}\r\n\n\n//# sourceURL=webpack://react-typescript-webpack-starter/./src/Utils/Href.ts?");
/***/ })
/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/ /* webpack/runtime/define property getters */
/******/ (() => {
/******/ // define getter functions for harmony exports
/******/ __webpack_require__.d = (exports, definition) => {
/******/ for(var key in definition) {
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
/******/ }
/******/ }
/******/ };
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
/******/ (() => {
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
/******/ })();
/******/
/******/ /* webpack/runtime/make namespace object */
/******/ (() => {
/******/ // define __esModule on exports
/******/ __webpack_require__.r = (exports) => {
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ }
/******/ Object.defineProperty(exports, '__esModule', { value: true });
/******/ };
/******/ })();
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./src/EndPageSharedMicroApps.tsx");
/******/
/******/ })()
;