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AAE3H,MAAO1F,EAAa,8BAA+B/P,OAAQ8M,EAAauQ,GAAI/d,KAAMyN,EAAW6I,UAEnG5I,EAAUsQ,WACV,2BAGJ,OAZMP,EAActR,EAAAC,SAYDoB,EAAauQ,GACrB,CAAP,EAAOrd,GACA+c,GAAejQ,EAAamQ,GAC5B,CAAP,EAAO,CACHrM,eAAe,EACfC,kBAAmB,EACnBC,cAAe,IAGZ,CAAP,OAAOzT,MAEf,sDApCM,GAsCA2Z,EAAA,iBAAa3L,IAAA,SAAOE,sDACtB,SAAMK,EAA8BvB,EAAMiB,KAAMC,kBAAhDE,EAAAC,OACArB,EAAMyG,cAAgBvF,SAC1B,oBAH0BA,mCAApB,GAKN,OAAOqD,EAAAA,EAAAA,KAACoH,6UAAA1H,CAAA,CACJ0I,WAAYA,EACZI,uBAAwB/M,EAAMkT,aAAenG,OAAyB/Z,EACtE4Z,eAAe,GACX5M,cAAA,CACJkN,iBAAkBlN,EAAMyG,cACxB8B,SAAUA,EACVkE,SAAUA,EACVW,kBAAmBpN,EAAMkT,aACzB5F,OAAQ5B,GAAOyH,qVAEvB,ED9DE3T,WAAY,aACZjB,cAAA,SAAc6U,EAAKC,EAAMne,GACrB,OAAOqP,EAAAA,EAAAA,KAAC,gBAAI,wCAChB,IAPa4N,GAA8BH,GAA9BG,UAAWE,GAAmBL,GAAnBK,MAAOzS,GAAYoS,GAAZpS","sources":["webpack://quantity-selector/../../packages/ui/src/components/Adaptive/Adaptive.module.scss","webpack://quantity-selector/../../packages/ui/src/components/QuantitySelector/QuantitySelector.module.scss","webpack://quantity-selector/../../node_modules/css-loader/dist/runtime/api.js","webpack://quantity-selector/../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://quantity-selector/../../node_modules/react-dom/client.js","webpack://quantity-selector/../../node_modules/react/cjs/react-jsx-runtime.production.min.js","webpack://quantity-selector/../../node_modules/react/jsx-runtime.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://quantity-selector/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://quantity-selector/../../node_modules/systemjs-webpack-interop/auto-public-path/auto-public-path.js","webpack://quantity-selector/../../node_modules/systemjs-webpack-interop/public-path.js","webpack://quantity-selector/external system \"react\"","webpack://quantity-selector/external system \"react-dom\"","webpack://quantity-selector/../../node_modules/classnames/index.js","webpack://quantity-selector/webpack/bootstrap","webpack://quantity-selector/webpack/runtime/__system_context__","webpack://quantity-selector/webpack/runtime/compat get default export","webpack://quantity-selector/webpack/runtime/define property getters","webpack://quantity-selector/webpack/runtime/hasOwnProperty shorthand","webpack://quantity-selector/webpack/runtime/make namespace object","webpack://quantity-selector/webpack/runtime/publicPath","webpack://quantity-selector/webpack/runtime/nonce","webpack://quantity-selector/../../node_modules/systemjs-webpack-interop/auto-public-path/1.js","webpack://quantity-selector/../../node_modules/single-spa-react/lib/esm/single-spa-react.js","webpack://quantity-selector/../../packages/ui/src/utilities/cart.ts","webpack://quantity-selector/../../packages/ui/src/hooks/useCartItemUpdate.ts","webpack://quantity-selector/../../packages/ui/src/utilities/popup.ts","webpack://quantity-selector/../../packages/ui/src/components/Loader/Loader.tsx","webpack://quantity-selector/../../packages/ui/src/components/RemanufacturedChoice/RemanufacturedChoice.tsx","webpack://quantity-selector/../../packages/ui/src/utilities/debounce.ts","webpack://quantity-selector/../../packages/ui/src/components/QuantitySelector/QuantitySelector.module.scss?559d","webpack://quantity-selector/../../packages/ui/src/utilities/matomo.ts","webpack://quantity-selector/../../packages/ui/src/components/Adaptive/Adaptive.module.scss?30bd","webpack://quantity-selector/../../packages/ui/src/components/Adaptive/Adaptive.tsx","webpack://quantity-selector/../../packages/ui/src/components/QuantitySelector/QuantitySelector.tsx","webpack://quantity-selector/./src/swecon-quantity-selector.tsx","webpack://quantity-selector/./src/app.tsx"],"sourcesContent":["// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.E3wuS5onJhEdp1esFFph,.E3wuS5onJhEdp1esFFph .dbEYhdrNjWJSY1qWW9tC{display:contents}.E3wuS5onJhEdp1esFFph .jqrYdgRUzerqC8Ri_39f{display:none}@media(max-width: 400.02px){.E3wuS5onJhEdp1esFFph.I1fYZWvhIipXWwtQYmho .dbEYhdrNjWJSY1qWW9tC{display:none}.E3wuS5onJhEdp1esFFph.I1fYZWvhIipXWwtQYmho .jqrYdgRUzerqC8Ri_39f{display:contents}}@media(max-width: 576.02px){.E3wuS5onJhEdp1esFFph._dvnaO6cuYjxmo1hR9yE .dbEYhdrNjWJSY1qWW9tC{display:none}.E3wuS5onJhEdp1esFFph._dvnaO6cuYjxmo1hR9yE .jqrYdgRUzerqC8Ri_39f{display:contents}}@media(max-width: 768.02px){.E3wuS5onJhEdp1esFFph.tO2e33ruirApbGq5DFHj .dbEYhdrNjWJSY1qWW9tC{display:none}.E3wuS5onJhEdp1esFFph.tO2e33ruirApbGq5DFHj .jqrYdgRUzerqC8Ri_39f{display:contents}}@media(max-width: 1024.02px){.E3wuS5onJhEdp1esFFph.T0Z1wGoL8DUIC1ARpvNx .dbEYhdrNjWJSY1qWW9tC{display:none}.E3wuS5onJhEdp1esFFph.T0Z1wGoL8DUIC1ARpvNx .jqrYdgRUzerqC8Ri_39f{display:contents}}@media(max-width: 1366.02px){.E3wuS5onJhEdp1esFFph.fHBBZVbgptwQCf1LePLD .dbEYhdrNjWJSY1qWW9tC{display:none}.E3wuS5onJhEdp1esFFph.fHBBZVbgptwQCf1LePLD .jqrYdgRUzerqC8Ri_39f{display:contents}}`, \"\"]);\n// Exports\nexport var adaptive = `E3wuS5onJhEdp1esFFph`;\nexport var over = `dbEYhdrNjWJSY1qWW9tC`;\nexport var under = `jqrYdgRUzerqC8Ri_39f`;\nexport var xs = `I1fYZWvhIipXWwtQYmho`;\nexport var sm = `_dvnaO6cuYjxmo1hR9yE`;\nexport var md = `tO2e33ruirApbGq5DFHj`;\nexport var lg = `T0Z1wGoL8DUIC1ARpvNx`;\nexport var xl = `fHBBZVbgptwQCf1LePLD`;\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.MRNj31NucNVlmaSXXh1h{width:100%;font-size:1.9rem !important;line-height:2.8rem !important}.MRNj31NucNVlmaSXXh1h.ah39qj26SVHNzPznHgMk{pointer-events:none;opacity:.7}.MRNj31NucNVlmaSXXh1h.agw1Lrbp9AKPSoL2f7LC>div{height:unset;padding:0 !important}.MRNj31NucNVlmaSXXh1h.agw1Lrbp9AKPSoL2f7LC:hover>div{filter:invert(1)}.MRNj31NucNVlmaSXXh1h.GOPIXNZCO0i_lPlIAyuj{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;pointer-events:none}.MRNj31NucNVlmaSXXh1h.GOPIXNZCO0i_lPlIAyuj .TT4lefWbPlLQkZtxoNIx{width:16px;height:16px;background-size:contain;background-repeat:no-repeat;content:\"\";background-image:url(../assets/icons/Check.svg);margin-right:min(10%,40px);margin-left:max(-10%,-40px)}.MRNj31NucNVlmaSXXh1h.GOPIXNZCO0i_lPlIAyuj .TT4lefWbPlLQkZtxoNIx:hover{background-image:url(../assets/icons/Check-cloud.svg)}.MRNj31NucNVlmaSXXh1h.GOPIXNZCO0i_lPlIAyuj .CtQtJGjCSGYdy7AzArhm{display:inline-block}.MRNj31NucNVlmaSXXh1h.GOPIXNZCO0i_lPlIAyuj:hover .TT4lefWbPlLQkZtxoNIx{background-image:url(../assets/icons/Check-cloud.svg)}.eSfzvtNupaRUFkfdwj1q{text-decoration:none !important;font-size:1.9rem !important;line-height:2.8rem !important;text-wrap:wrap;padding:6px 24px !important;text-align:center;white-space:break-spaces}.JLtL78fYvzFPzQyRuHyu{text-decoration:underline}div.s8uFc0eB_Udeb8aXyubt{margin:auto;width:128px;overflow:visible}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ{display:flex;justify-content:space-between;align-items:stretch;box-shadow:0 0 5px rgba(0,0,0,.2);position:relative}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ input{margin:0;padding:0 8px;height:48px;border:0;flex:1 1 auto;-moz-appearance:textfield}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ input::-webkit-outer-spin-button,div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{display:none;position:absolute;top:0;left:0;right:0;font-size:10px;user-select:none;text-align:center}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv{flex:0 0 24px;display:flex;flex-direction:column;justify-content:space-around;align-items:center}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr,div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE{text-align:center;vertical-align:middle;user-select:none;cursor:pointer;width:24px;margin:0}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .ah39qj26SVHNzPznHgMk.nc8lExd_cgvJ6VmZMIjr,div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .ah39qj26SVHNzPznHgMk.s_saf5ex65X1mK_M1NjE{pointer-events:none;opacity:.5}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr:hover,div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE:hover{background-color:#f2f2f0}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr div,div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE div{line-height:24px;font-size:24px}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE div{transform:rotate(90deg) translateY(-2px)}div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr div{transform:rotate(270deg) scaleY(-1) translateY(-2px)}div.s8uFc0eB_Udeb8aXyubt .yum8k3uetPoCBtVp_7OQ{width:fit-content;transform:translateX(calc(-50% + 49px));position:relative;top:8px;color:#c0453a;white-space:nowrap}.GtCNn9toKJ8YPSm17DF1{padding-top:26px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt{width:98px;height:42px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ{height:100%;flex-direction:column-reverse;justify-content:flex-end;align-items:center;border-radius:30px;border:1px solid #434b4f;box-shadow:unset}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ input{text-align:center;height:unset;width:98px;padding:0;line-height:1;min-height:unset}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{display:block;position:absolute;white-space:nowrap;width:fit-content;top:-26px;transform:translateX(calc(49px - 50%))}@media(min-width: 0){.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{font-size:1.3rem;line-height:1.8rem}}@media(min-width: 400px){.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{font-size:1.3rem;line-height:1.8rem}}@media(min-width: 1366px){.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{font-size:1.4rem;line-height:2.1rem}}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv{position:absolute;width:100%;height:100%;flex-direction:row-reverse;gap:26px;justify-content:space-between;padding:0 11px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE{z-index:1;border-radius:50%;display:flex;align-items:center;justify-content:center;height:24px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE div{display:none}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .s_saf5ex65X1mK_M1NjE:after{content:\"+\";color:#434b4f;font-size:24px;line-height:16px;display:inline-block;vertical-align:inherit;margin-bottom:3px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr{z-index:1;border-radius:50%;display:flex;align-items:center;justify-content:center;height:24px}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr div{display:none}.GtCNn9toKJ8YPSm17DF1 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv .nc8lExd_cgvJ6VmZMIjr:after{content:\"–\";color:#434b4f;font-size:24px;line-height:16px;display:inline-block;vertical-align:inherit;margin-bottom:3px}.GtCNn9toKJ8YPSm17DF1.sAMV85TpTN9TqNaEumD7 div.s8uFc0eB_Udeb8aXyubt{height:56px}.GtCNn9toKJ8YPSm17DF1.sAMV85TpTN9TqNaEumD7 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .w39JeX1XXrslcxLrNJtN{margin-top:8px}.GtCNn9toKJ8YPSm17DF1.sAMV85TpTN9TqNaEumD7 div.s8uFc0eB_Udeb8aXyubt .WPif_gMWrSI_lD6LvHAZ .rC8D_0nlEC3yDoqzQDsv{padding:0 8px}`, \"\"]);\n// Exports\nexport var buyButton = `MRNj31NucNVlmaSXXh1h`;\nexport var disabled = `ah39qj26SVHNzPznHgMk`;\nexport var buttonLabelLoadingState = `agw1Lrbp9AKPSoL2f7LC`;\nexport var buttonLabelAddedState = `GOPIXNZCO0i_lPlIAyuj`;\nexport var buttonLabelAddedStateIcon = `TT4lefWbPlLQkZtxoNIx`;\nexport var buttonLabelAddedStateLbl = `CtQtJGjCSGYdy7AzArhm`;\nexport var buttonStyledAnchor = `eSfzvtNupaRUFkfdwj1q`;\nexport var itemLogInLink = `JLtL78fYvzFPzQyRuHyu`;\nexport var numberInput = `s8uFc0eB_Udeb8aXyubt`;\nexport var input = `WPif_gMWrSI_lD6LvHAZ`;\nexport var note = `w39JeX1XXrslcxLrNJtN`;\nexport var inputChevrons = `rC8D_0nlEC3yDoqzQDsv`;\nexport var chevronDown = `nc8lExd_cgvJ6VmZMIjr`;\nexport var chevronUp = `s_saf5ex65X1mK_M1NjE`;\nexport var error = `yum8k3uetPoCBtVp_7OQ`;\nexport var newDesign = `GtCNn9toKJ8YPSm17DF1`;\nexport var pdpDesign = `sAMV85TpTN9TqNaEumD7`;\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","\"use strict\";\n\nvar stylesInDOM = [];\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n return result;\n}\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n identifiers.push(identifier);\n }\n return identifiers;\n}\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n return updater;\n}\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n var newLastIdentifiers = modulesToDom(newList, options);\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n var _index = getIndexByIdentifier(_identifier);\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n stylesInDOM.splice(_index, 1);\n }\n }\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n\n/* istanbul ignore next */\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target);\n\n // Special case to return head of iframe instead of iframe itself\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n memo[target] = styleTarget;\n }\n return memo[target];\n}\n\n/* istanbul ignore next */\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n target.appendChild(style);\n}\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n var needLayer = typeof obj.layer !== \"undefined\";\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n css += obj.css;\n if (needLayer) {\n css += \"}\";\n }\n if (obj.media) {\n css += \"}\";\n }\n if (obj.supports) {\n css += \"}\";\n }\n var sourceMap = obj.sourceMap;\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n }\n\n // For old IE\n /* istanbul ignore if */\n options.styleTagTransform(css, styleElement, options.options);\n}\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n styleElement.parentNode.removeChild(styleElement);\n}\n\n/* istanbul ignore next */\nfunction domAPI(options) {\n if (typeof document === \"undefined\") {\n return {\n update: function update() {},\n remove: function remove() {}\n };\n }\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n styleElement.appendChild(document.createTextNode(css));\n }\n}\nmodule.exports = styleTagTransform;","const resolveDirectory = require(\"../public-path\").resolveDirectory;\n\nexports.autoPublicPath = function autoPublicPath(rootDirLevel) {\n if (!rootDirLevel) {\n rootDirLevel = 1;\n }\n\n if (typeof __webpack_public_path__ !== \"undefined\") {\n if (typeof __system_context__ === \"undefined\") {\n throw Error(\n \"systemjs-webpack-interop requires webpack@>=5.0.0-beta.15 and output.libraryTarget set to 'system'\"\n );\n }\n\n if (!__system_context__.meta || !__system_context__.meta.url) {\n console.error(\"__system_context__\", __system_context__);\n throw Error(\n \"systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(\n __system_context__.meta.url,\n rootDirLevel\n );\n }\n};\n","exports.setPublicPath = function setPublicPath(\n systemjsModuleName,\n rootDirectoryLevel\n) {\n if (!rootDirectoryLevel) {\n rootDirectoryLevel = 1;\n }\n if (\n typeof systemjsModuleName !== \"string\" ||\n systemjsModuleName.trim().length === 0\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName) must be called with a non-empty string 'systemjsModuleName'\"\n );\n }\n\n if (\n typeof rootDirectoryLevel !== \"number\" ||\n rootDirectoryLevel <= 0 ||\n isNaN(rootDirectoryLevel) ||\n !isInteger(rootDirectoryLevel)\n ) {\n throw Error(\n \"systemjs-webpack-interop: setPublicPath(systemjsModuleName, rootDirectoryLevel) must be called with a positive integer 'rootDirectoryLevel'\"\n );\n }\n\n var moduleUrl;\n try {\n moduleUrl = window.System.resolve(systemjsModuleName);\n if (!moduleUrl) {\n throw Error();\n }\n } catch (err) {\n throw Error(\n \"systemjs-webpack-interop: There is no such module '\" +\n systemjsModuleName +\n \"' in the SystemJS registry. Did you misspell the name of your module?\"\n );\n }\n\n __webpack_public_path__ = resolveDirectory(moduleUrl, rootDirectoryLevel);\n};\n\nfunction resolveDirectory(urlString, rootDirectoryLevel) {\n // Our friend IE11 doesn't support new URL()\n // https://github.com/single-spa/single-spa/issues/612\n // https://gist.github.com/jlong/2428561\n\n var a = document.createElement(\"a\");\n a.href = urlString;\n\n var pathname = a.pathname[0] === \"/\" ? a.pathname : \"/\" + a.pathname;\n var numDirsProcessed = 0,\n index = pathname.length;\n while (numDirsProcessed !== rootDirectoryLevel && index >= 0) {\n var char = pathname[--index];\n if (char === \"/\") {\n numDirsProcessed++;\n }\n }\n\n if (numDirsProcessed !== rootDirectoryLevel) {\n throw Error(\n \"systemjs-webpack-interop: rootDirectoryLevel (\" +\n rootDirectoryLevel +\n \") is greater than the number of directories (\" +\n numDirsProcessed +\n \") in the URL path \" +\n urlString\n );\n }\n\n var finalPath = pathname.slice(0, index + 1);\n\n return a.protocol + \"//\" + a.host + finalPath;\n}\n\nexports.resolveDirectory = resolveDirectory;\n\n// borrowed from https://github.com/parshap/js-is-integer/blob/master/index.js\nvar isInteger =\n Number.isInteger ||\n function isInteger(val) {\n return typeof val === \"number\" && isFinite(val) && Math.floor(val) === val;\n };\n","module.exports = __WEBPACK_EXTERNAL_MODULE__726__;","module.exports = __WEBPACK_EXTERNAL_MODULE__867__;","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","__webpack_require__.y = __system_context__;","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.p = \"\";","__webpack_require__.nc = undefined;","const autoPublicPath = require(\"./auto-public-path\").autoPublicPath;\n\nautoPublicPath(1);\n","function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function t(t){for(var n=1;n=0))return!1;var t=e.version.slice(0,e.version.indexOf(\".\"));try{return Number(t)>=16}catch(e){return!1}}(e.React)||e.errorBoundary||e.errorBoundaryClass||(e.rootComponent.prototype?e.rootComponent.prototype.componentDidCatch||console.warn(\"single-spa-react: \".concat(t.name||t.appName||t.childAppName,\"'s rootComponent should implement componentDidCatch to avoid accidentally unmounting the entire single-spa application.\")):console.warn(\"single-spa-react: \".concat(t.name||t.appName||t.childAppName,\"'s rootComponent does not implement an error boundary. If using a functional component, consider providing an opts.errorBoundary to singleSpaReact(opts).\")));var r=y(e,t,(function(){n(this)})),c=a(e,t)(),u=function(e){var t=e.reactDom,n=e.renderType,o=e.elementToRender,r=e.domElement,a=t[n];if(\"function\"!=typeof a)throw new Error('renderType \"'.concat(n,'\" did not return a function.'));switch(n){case\"createRoot\":case\"unstable_createRoot\":case\"createBlockingRoot\":case\"unstable_createBlockingRoot\":var c=a(r);return c.render(o),c;case\"hydrateRoot\":return a(r,o);case\"hydrate\":default:return a(o,r),null}}({elementToRender:r,domElement:c,reactDom:d(e),renderType:f(e)});e.domElements[t.name]=c,e.renderResults[t.name]=u}))}function l(e,t){return new Promise((function(n){e.unmountResolves[t.name]=n;var o=e.renderResults[t.name];o&&o.unmount?o.unmount():d(e).unmountComponentAtNode(e.domElements[t.name]),delete e.domElements[t.name],delete e.renderResults[t.name]}))}function m(e,t){return new Promise((function(n){e.updateResolves[t.name]||(e.updateResolves[t.name]=[]),e.updateResolves[t.name].push(n);var o=y(e,t,null),r=e.renderResults[t.name];if(r&&r.render)r.render(o);else{var c=a(e,t)();d(e).render(o,c)}}))}function d(e){return e.ReactDOMClient||e.ReactDOM}function f(e){return\"function\"==typeof e.renderType?e.renderType():e.renderType}function y(e,n,o){var r=e.React.createElement(e.rootComponent,n),a=c?e.React.createElement(c.Provider,{value:n},r):r;return(e.errorBoundary||n.errorBoundary||e.errorBoundaryClass||n.errorBoundaryClass)&&(e.errorBoundaryClass=e.errorBoundaryClass||n.errorBoundaryClass||function(e,t){function n(t){e.React.Component.apply(this,arguments),this.state={caughtError:null,caughtErrorInfo:null},n.displayName=\"SingleSpaReactErrorBoundary(\".concat(t.name,\")\")}return n.prototype=Object.create(e.React.Component.prototype),n.prototype.render=function(){return this.state.caughtError?(e.errorBoundary||t.errorBoundary)(this.state.caughtError,this.state.caughtErrorInfo,this.props):this.props.children},n.prototype.componentDidCatch=function(e,t){this.setState({caughtError:e,caughtErrorInfo:t})},n}(e,n),a=e.React.createElement(e.errorBoundaryClass,n,a)),a=e.React.createElement(e.SingleSpaRoot,t(t({},n),{},{mountFinished:o,updateFinished:function(){e.updateResolves[n.name]&&(e.updateResolves[n.name].forEach((function(e){return e()})),delete e.updateResolves[n.name])},unmountFinished:function(){e.unmountResolves[n.name]&&(e.unmountResolves[n.name](),delete e.unmountResolves[n.name])}}),a)}export{c as SingleSpaContext,i as default};\n//# sourceMappingURL=single-spa-react.js.map\n","import { Cart } from '../types';\r\nimport { Observable } from './observable';\r\nimport { useEffect } from 'react';\r\n\r\ntype Matomo = {\r\n getAsyncTrackers(): MatomoTracker[];\r\n}\r\n\r\ntype MatomoTracker = {\r\n clearEcommerceCart(): void;\r\n addEcommerceItem(code: string, name: string, labels: string | string[], unitPrice: number, quantity: number): void;\r\n trackEcommerceCartUpdate(cartTotal: number): void;\r\n}\r\n\r\ndeclare global {\r\n interface Window {\r\n cart: Observable,\r\n Matomo: Matomo | undefined;\r\n }\r\n}\r\n\r\nexport const ensureCart = () => {\r\n if (window.cart) return;\r\n\r\n window.cart = Observable(async () => {\r\n const response = await fetch('/api/cart?noValidation=true', {\r\n method: 'GET',\r\n headers: {\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n }\r\n });\r\n if (!response.ok) {\r\n throw new Error(await response.text());\r\n }\r\n const data = await response.json() as Cart;\r\n\r\n sendCartToMatomo(data);\r\n\r\n return data;\r\n })\r\n}\r\n\r\nexport const useCartChange = (callback: (cart: Cart) => void) => {\r\n ensureCart();\r\n useEffect(() => {\r\n window.cart.subscribe(callback);\r\n return () => window.cart.unsubscribe(callback);\r\n }, [callback]);\r\n}\r\n\r\nexport const updateCart = () => window.cart?.update();\r\n\r\n\r\nfunction sendCartToMatomo(cart: Cart) {\r\n if (!cart.isMatomoEnabled) {\r\n return;\r\n }\r\n if (!window.Matomo) {\r\n return;\r\n }\r\n const tracker = window.Matomo.getAsyncTrackers()[0];\r\n if (!tracker) {\r\n return;\r\n }\r\n tracker.clearEcommerceCart();\r\n cart.lineItems.forEach(item => {\r\n tracker.addEcommerceItem(item.code, item.displayName ?? \"\", item.categories, item.unitPriceAmount, item.quantity);\r\n });\r\n tracker.trackEcommerceCartUpdate(cart.summary.totalAmount);\r\n}","import { StockAvailability } from \"../types\";\r\nimport { updateCart } from \"../utilities\";\r\n\r\nexport const useCartItemUpdate = (code: string) => {\r\n return async (quantity: number) => {\r\n await updateCartItem(code, quantity);\r\n };\r\n}\r\n\r\nexport const updateCartItem = async (code: string, quantity: number) => {\r\n await updateRemanItemBySparePartCode(code, 0);\r\n await updateItem(code, quantity);\r\n await updateCart();\r\n}\r\n\r\nexport const addRemanAndDepositItemsToCart = async (code: string, quantity: number) => {\r\n await updateItem(code, 0);\r\n await updateRemanItemBySparePartCode(code, quantity);\r\n await updateCart();\r\n}\r\n\r\nexport const updateRemanAndDepositCartItem = async (remanCode: string, depositCode: string, quantity: number) => {\r\n await updateRemanAndDeposit(remanCode, depositCode, quantity);\r\n await updateCart();\r\n}\r\n\r\nexport const getAvailabilityDisplay = async (code: string): Promise => {\r\n const response = await fetch(`/api/inventory/warehouse/byVariant/${code}/availability`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n method: \"GET\"\r\n });\r\n return await response.json();\r\n}\r\n\r\nconst updateItem = async (code: string, quantity: number) => {\r\n const response = await fetch(`/api/cart/items/update`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify({ code, quantity }),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n }\r\n}\r\n\r\nconst updateRemanAndDeposit = async (remanCode: string, depositCode : string, quantity: number) => {\r\n const response = await fetch(`/api/cart/items/reman-and-deposit-update`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify({ remanCode, depositCode, quantity }),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n }\r\n}\r\n\r\nconst updateRemanItemBySparePartCode = async (sparePartCode: string, quantity: number) => {\r\n const response = await fetch(`/api/cart/items/reman-and-deposit-update-by-spare-part-code`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify({ code: sparePartCode, quantity }),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n }\r\n}\r\n\r\nexport const updateCartKitItem = async (code: string, quantity: number, bundleCode: string, kitCode: string, serialNumber: string | null) => {\r\n const response = await fetch(`/api/cart/kit-items/update`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify({ code, quantity, bundleCode, kitCode, serialNumber }),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n } else {\r\n await updateCart();\r\n }\r\n}\r\n\r\nexport const updateMultipleCartItems = async (items: { code: string, quantity: number }[]) => {\r\n const response = await fetch(`/api/cart/items/updateMultiple`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify(items),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n } else {\r\n await updateCart();\r\n }\r\n}\r\n\r\n export const updateMultipleCartKitItems = async (items: { code: string, quantity: number, bundleCode: string, kitCode: string, serialNumber: string | null }[]) => {\r\n const response = await fetch(`/api/cart/kit-items/updateMultiple`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify(items),\r\n method: \"POST\"\r\n });\r\n const data = await response.json();\r\n if (!data.isSuccess) {\r\n console.error(JSON.stringify(data))\r\n } else {\r\n await updateCart();\r\n }\r\n}","import { ReactNode, useState, useSyncExternalStore } from \"react\";\r\n\r\nexport enum ButtonResult {\r\n Ok = \"Ok\",\r\n Yes = \"Yes\", \r\n No = \"No\",\r\n Cancel = \"Cancel\",\r\n}\r\n\r\nexport enum ButtonType {\r\n Primary = \"primary\", \r\n Outlined = \"outlined\",\r\n Link = \"linked\"\r\n}\r\n\r\nexport interface Button {\r\n label: string;\r\n result: T;\r\n type: ButtonType;\r\n enabled?: boolean;\r\n className?: string;\r\n visible?: boolean;\r\n}\r\n\r\nexport enum PopupSize {\r\n Small = 'small',\r\n Large = 'large',\r\n ExtraVertical = 'vertical-large',\r\n ExtraLarge = 'extra-large'\r\n}\r\n\r\nexport const popup = (title: string, content: ReactNode, buttons: Button[], size: PopupSize = PopupSize.Small, popUpClass?: string, footer?: { content?: ReactNode, reverse?: boolean }) => {\r\n return new Promise(resolve => {\r\n window.popupButtonPrechecks = new Map (boolean | Promise)>();\r\n window.popupCallback(title, content, buttons, size, popUpClass, { content: footer?.content, reverse: footer?.reverse }, resolve as (_: ButtonResult) => void);\r\n });\r\n}\r\n\r\ntype PopupState = {\r\n open: boolean,\r\n title: string,\r\n content: ReactNode,\r\n buttons: Button[],\r\n size: PopupSize,\r\n footerContent?: ReactNode,\r\n footerReverse?: boolean,\r\n resolve: (result: ButtonResult) => void,\r\n popUpClass?: string;\r\n};\r\n\r\nwindow.popupState = {\r\n open: false,\r\n title: \"\",\r\n content: \"\" as ReactNode,\r\n buttons: [] as Button[],\r\n size: PopupSize.Small,\r\n popUpClass: undefined,\r\n footerContent: undefined,\r\n footerReverse: undefined,\r\n resolve: (_: ButtonResult) => { }\r\n};\r\n\r\nwindow.popupStateCallback ??= [];\r\n\r\nconst setState = (newState: PopupState) => {\r\n window.popupState = newState;\r\n window.popupStateCallback.forEach(c => {\r\n try {\r\n c();\r\n } catch (e) {\r\n console.error(e);\r\n }\r\n });\r\n}\r\n\r\nwindow.popupCallback = (title, content, buttons, size, popUpClass, footer, resolve) => {\r\n setState({ open: true, title, content, buttons, size, popUpClass, footerContent: footer?.content, footerReverse: footer?.reverse, resolve });\r\n}\r\n\r\nwindow.popupButtonCallback = (index, enabled) => {\r\n setState({ ...window.popupState, buttons: window.popupState.buttons.map((b, i) => i === index ? ({ ...b, enabled }) : { ...b }) });\r\n}\r\n\r\nexport const usePopup = () => {\r\n\r\n const state = useSyncExternalStore(\r\n (change) => {\r\n window.popupStateCallback.push(change);\r\n return () => {\r\n window.popupStateCallback = window.popupStateCallback.filter(c => c !== change);\r\n }\r\n },\r\n () => window.popupState\r\n );\r\n\r\n return {\r\n ...state,\r\n close: async (result: ButtonResult) => {\r\n const checkFunction = window.popupButtonPrechecks.get(result);\r\n if (checkFunction) {\r\n const checkResult = await checkFunction();\r\n if (!checkResult) return;\r\n }\r\n state.resolve(result);\r\n setState({\r\n open: false,\r\n title: \"\",\r\n content: \"\",\r\n buttons: [] as Button[],\r\n size: PopupSize.Small,\r\n popUpClass: undefined,\r\n footerContent: undefined,\r\n footerReverse: undefined,\r\n resolve: (_: ButtonResult) => { }\r\n })\r\n }\r\n };\r\n}\r\n\r\nexport const setPopupButton = (buttonIndex: number, enabled: boolean) => {\r\n window.popupButtonCallback?.(buttonIndex, enabled);\r\n}\r\n\r\nexport const usePopupButtonPrecheck = (buttonType: ButtonResult, check: () => (boolean | Promise)) => {\r\n window.popupButtonPrechecks.set(buttonType, check);\r\n};\r\n\r\ndeclare global {\r\n interface Window {\r\n popupCallback: (title: string, content: ReactNode, buttons: Button[], size: PopupSize, popUpClass: string | undefined, footer: { content?: ReactNode, reverse?: boolean }, resolve: (_: ButtonResult) => void) => void\r\n popupButtonCallback: (buttonIndex: number, enabled: boolean) => void;\r\n popupButtonPrechecks: Map (boolean | Promise)>;\r\n popupStateCallback: (() => void)[];\r\n popupState: PopupState;\r\n }\r\n}","import React from \"react\";\r\nimport cn from 'classnames';\r\n\r\ntype LoaderProps = {\r\n size?: number;\r\n inline?: boolean;\r\n}\r\n\r\nexport const Loader = ({ size = 28, inline = false }: LoaderProps) => {\r\n return
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n}","import React, { useEffect, useState } from \"react\";\r\nimport { Loader } from \"../Loader/Loader\";\r\nimport { RemanChoices, RemanResults, RemanufacturedPopUpItemDetails } from \"../../types\";\r\n\r\nconst translations = (window as any).app.preloadState.translation;\r\nexport function RemanufacturedChoice({ changeResult, sparePartIds, quantityOverride }: { changeResult: (results: RemanResults) => void, sparePartIds: string[], quantityOverride?: Record}) {\r\n\r\n const [choices, setChoices] = useState({});\r\n const [chosenResult, setChosenResult] = useState(\r\n Object.fromEntries(sparePartIds.map(id => ([id, { selectedReman: true, sparePartQuantity: 0, remanQuantity: 0 }] as const)))\r\n );\r\n const [totalSum, setTotalSum] = useState(\"0\");\r\n\r\n useEffect(() => {\r\n changeResult(chosenResult);\r\n }, [chosenResult]);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n const itemDetailsResponse = await fetch(`/api/pdp/reman-item-details`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify(sparePartIds),\r\n method: \"POST\"\r\n });\r\n\r\n if (!itemDetailsResponse.ok) {\r\n console.error(await itemDetailsResponse.text());\r\n }\r\n else {\r\n var choices: RemanChoices = await itemDetailsResponse.json();\r\n setChoices(choices);\r\n setChosenResult(\r\n Object.fromEntries(\r\n sparePartIds.map(id => ([id, {\r\n selectedReman: true,\r\n sparePartQuantity: quantityOverride?.[id] ?? choices[id]?.sparePartDetails.quantity ?? 0,\r\n remanQuantity: quantityOverride?.[id] ?? choices[id]?.remanPartDetails.quantity ?? 0\r\n }] as const))\r\n )\r\n );\r\n }\r\n })();\r\n }, [...sparePartIds]);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n const response = await fetch(`/api/pdp/reman-items-total-price`, {\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n body: JSON.stringify({ ...chosenResult }),\r\n method: \"POST\"\r\n });\r\n if (!response.ok) {\r\n console.error(await response.text())\r\n } else {\r\n setTotalSum(await response.json());\r\n }\r\n })();\r\n }, [chosenResult])\r\n\r\n\r\n return <>{Object.keys(choices).length > 0 ?\r\n
{sparePartIds.map(sparePartId => {\r\n const sparePartItem = choices[sparePartId]!.sparePartDetails;\r\n const remanItem = choices[sparePartId]!.remanPartDetails;\r\n const depositItem = choices[sparePartId]!.depositDetails;\r\n const chosenData = chosenResult[sparePartId];\r\n\r\n return (
\r\n
\r\n
{translations[\"remanufacturedItemPopUp.articleNo\"]}
\r\n
{translations[\"remanufacturedItemPopUp.description\"]}
\r\n
{translations[\"remanufacturedItemPopUp.displayName\"]}
\r\n
{translations[\"remanufacturedItemPopUp.unit\"]}
\r\n
{translations[\"remanufacturedItemPopUp.quantity\"]}
\r\n
{translations[\"remanufacturedItemPopUp.webStorage\"]}
\r\n
{translations[\"remanufacturedItemPopUp.facility\"]}
\r\n
{translations[\"remanufacturedItemPopUp.price\"]} ({translations[\"remanufacturedItemPopUp.discountIncluded\"]})
\r\n
\r\n\r\n
setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, selectedReman: false } })}>\r\n
\r\n
\r\n setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, selectedReman: false } })} />\r\n \r\n
\r\n
\r\n
{translations[\"remanufacturedItemPopUp.originalSparePart\"]}
\r\n
\r\n setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, sparePartQuantity: Math.max(1, q), remanQuantity: Math.max(1, q) } })} />\r\n
setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, selectedReman: true } })}>\r\n
\r\n
\r\n setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, selectedReman: true } })} />\r\n \r\n
\r\n
\r\n
{translations[\"remanufacturedItemPopUp.remanufacturedPart\"]}
\r\n
\r\n setChosenResult({ ...chosenResult, [sparePartId]: { ...chosenData, remanQuantity: Math.max(1, q), sparePartQuantity: Math.max(1, q) } })} />\r\n \r\n
\r\n
);\r\n })}\r\n
\r\n
{translations[\"remanufacturedItemPopUp.totalPrice\"]}
\r\n
{totalSum}
\r\n
\r\n
\r\n :\r\n }\r\n \r\n}\r\n\r\nconst RemanufacturedItem = ({ item, updateItemQuantity = () => { }, isDisabled = false, showAvailability = true, quantity }: { item: RemanufacturedPopUpItemDetails, updateItemQuantity?: (quantity: number) => void, isDisabled ?: boolean, showAvailability?: boolean, quantity: number }) => {\r\n const [price, setPrice] = useState(item.price);\r\n\r\n useEffect(() => {\r\n (async () => {\r\n const response = await fetch(`/api/pdp/${item.code}/price?quantity=${quantity}`, {\r\n headers: {\r\n \"Swecon-Current-Language\": (window as any).app.preloadState.currentLanguage\r\n },\r\n method: \"GET\"\r\n });\r\n if (!response.ok) {\r\n console.error(await response.text())\r\n } else {\r\n setPrice(await response.json());\r\n }\r\n })();\r\n }, [quantity]);\r\n\r\n return (\r\n
\r\n
{item.code}
\r\n
{item.description}
\r\n
{item.displayName}
\r\n
{item.unit}
\r\n
\r\n !isDisabled && updateItemQuantity(ev.target.valueAsNumber ?? 1)}/>\r\n
\r\n {showAvailability &&
{item.availability ? () : translations[\"inventoryPopup.notInStock\"]}
}\r\n {showAvailability &&
{item.branch}
}\r\n
{price}
\r\n
\r\n );\r\n}","export const debounce = (func: (...args: Args) => R, time: number) => {\r\n let timeout: NodeJS.Timeout;\r\n let valueToSend: Args | null = null;\r\n const debounced = (...args: Args) => {\r\n valueToSend = args;\r\n clearTimeout(timeout);\r\n timeout = setTimeout(() => {\r\n func(...valueToSend!);\r\n }, time);\r\n };\r\n debounced.stop = () => clearTimeout(timeout);\r\n return debounced;\r\n}","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].use[2]!./QuantitySelector.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].use[2]!./QuantitySelector.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","type Matomo = {\r\n getCustomVariable(id: number, label?: string): string | null;\r\n getCustomDimension(id: number): string | null;\r\n getVisitorId(): string | null;\r\n isUserOptedOut(): boolean;\r\n};\r\n\r\nexport const sendMatomoEvent = (category: string, action: string, name?: string | null, value?: number | null) => {\r\n const data: any[] = ['trackEvent', category, action];\r\n if (name != null) data.push(name);\r\n if (value != null) {\r\n if (data.length == 3) data.push(null);\r\n data.push(value);\r\n }\r\n (window as any)._paq?.push(data);\r\n}\r\n\r\nexport const sendMatomoSearch = (keyword: string, category: string | false, results: number | false) => {\r\n (window as any)._paq?.push(['trackSiteSearch', keyword, category, results]);\r\n}\r\n\r\nexport const executeMatomoScript = (lambda: (matomo: Matomo) => T): T | null => {\r\n let result: T | null = null;\r\n (window as any)._paq?.push([function (this: Matomo) { result = lambda(this); }]);\r\n return result;\r\n}\r\n\r\nexport const setMatomoCustomDimension = (id: number, value: string) => {\r\n (window as any)._paq?.push(['setCustomDimension', id, value]);\r\n}\r\n\r\nexport const deleteMatomoCustomDimension = (id: number) => {\r\n (window as any)._paq?.push(['deleteCustomDimension', id]);\r\n}\r\n\r\nexport const getMatomoCustomDimension = (id: number): string | null => {\r\n return executeMatomoScript(mtm => mtm.getCustomDimension(id));\r\n}","\n import API from \"!../../../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].use[2]!./Adaptive.module.scss\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\noptions.insert = insertFn.bind(null, \"head\");\noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].use[1]!../../../../../node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[7].use[2]!./Adaptive.module.scss\";\n export default content && content.locals ? content.locals : undefined;\n","import * as styles from './Adaptive.module.scss';\r\nimport cn from 'classnames';\r\n\r\nexport const Adaptive = ({ breakpoint = 'lg', over, under }: { breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl', over?: React.ReactNode, under?: React.ReactNode }) => {\r\n return
\r\n
\r\n {over}\r\n
\r\n
\r\n {under}\r\n
\r\n
\r\n}","import React, { useState, useEffect, useMemo } from \"react\"\r\nimport { debounce } from \"../../utilities/debounce\";\r\nimport * as styles from './QuantitySelector.module.scss';\r\nimport { ButtonResult, ButtonType, PopupSize, popup, Loader, sendMatomoEvent } from \"ui\";\r\nimport cn from 'classnames';\r\nimport { RemanResults } from \"../../types\";\r\nimport { Adaptive } from \"../Adaptive/Adaptive\";\r\n\r\nenum ButtonState {\r\n Normal,\r\n Loader,\r\n LoadedLabel,\r\n LoadedRemanItem,\r\n RemanItemChosen,\r\n UsedPartChosen,\r\n RemovingItem\r\n}\r\n\r\nconst cancelDefault = (e: React.MouseEvent) => {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n}\r\n\r\nfunction isNumeric(str: string | number) {\r\n if (typeof str != \"string\") return false;\r\n return !isNaN(str as unknown as number) && !isNaN(parseFloat(str));\r\n}\r\n\r\nconst clamp = (v: number, min: number, max: number) => Math.min(max, Math.max(min, v));\r\n\r\nconst translations = (window as any).app.preloadState.translation;\r\nconst loginLink = (window as any).app.preloadState.loginLink;\r\n\r\nconst tr = Object.fromEntries(Object.entries(translations)\r\n .filter(pair => pair[0].startsWith(\"quantitySelector.\"))\r\n .map(pair => ([pair[0].split('.')[1], pair[1] as string] as const)));\r\n\r\nexport const showNotAuthorizedPopup = (ev: React.MouseEvent) => {\r\n ev.preventDefault();\r\n popup(\r\n tr.cannotBuy,\r\n
\r\n {tr.insufficientRightsToBuy}

\r\n {tr.contactMySweconAdministrator}\r\n
,\r\n [\r\n { label: tr.close, result: ButtonResult.Cancel, type: ButtonType.Primary }\r\n ],\r\n PopupSize.Small\r\n );\r\n}\r\n\r\nconst shouldShowModeButton = (m: Mode) => !(m == Mode.UsedPart || m == Mode.AddToCart || m == Mode.Buy);\r\n\r\nexport enum Mode {\r\n LoginToBuy,\r\n NotAuthorized,\r\n RequestQuotationByEmail,\r\n ContactSupport,\r\n Buy,\r\n AddToCart,\r\n NotAvailableAndDisabled,\r\n UsedPart\r\n}\r\n\r\nexport enum Design {\r\n Normal,\r\n PDP,\r\n New\r\n}\r\n\r\ntype QuantitySelectorProps = {\r\n step: number;\r\n min: number;\r\n max: number;\r\n initialValue: number;\r\n disabled?: boolean;\r\n onChange: (value: number) => void;\r\n onRemove: (doAfter: () => void) => void;\r\n onAddReman?: (value: number) => void;\r\n forceMinValue: boolean;\r\n mode: Mode;\r\n requestQuotationByEmail: string | null;\r\n contactSupportLink: string | null;\r\n className?: string;\r\n showRemanufacturePopUp?: () => Promise;\r\n buttonClassName?: string;\r\n hasRemanInCart?: boolean;\r\n hasRemanAvailable?: boolean;\r\n design?: Design;\r\n}\r\n\r\nexport const QuantitySelector = (props: QuantitySelectorProps) => {\r\n if (shouldShowModeButton(props.mode)) {\r\n return \r\n }\r\n return \r\n}\r\n\r\nconst ModeButton = ({ mode, requestQuotationByEmail, contactSupportLink }: QuantitySelectorProps) => {\r\n switch (mode) {\r\n case Mode.LoginToBuy:\r\n return {tr.login}\r\n case Mode.NotAuthorized:\r\n return ;\r\n case Mode.RequestQuotationByEmail:\r\n return {tr.requestForQuotation};\r\n case Mode.NotAvailableAndDisabled:\r\n return ;\r\n case Mode.ContactSupport:\r\n return {tr.contactSupport};\r\n default:\r\n return ;\r\n }\r\n}\r\n\r\nconst InternalQuantitySelector = ({\r\n step,\r\n min,\r\n max,\r\n initialValue,\r\n disabled,\r\n onChange,\r\n onRemove,\r\n onAddReman = () => { },\r\n forceMinValue,\r\n mode,\r\n className = \"\",\r\n showRemanufacturePopUp = undefined,\r\n buttonClassName = \"btn--primary\",\r\n hasRemanInCart,\r\n hasRemanAvailable = false,\r\n design = Design.New\r\n}: QuantitySelectorProps) => {\r\n\r\n const maxTruncated = useMemo(() => Math.trunc(max / step) * step, [max, step]);\r\n\r\n const [textValue, setTextValue] = useState(initialValue.toString());\r\n const [lastValidValue, setLastValidValue] = useState(initialValue);\r\n const [shouldShowButton, setShowButton] = useState(initialValue === 0);\r\n const [infoMessage, setInfoMessage] = useState(\"\");\r\n const [buttonState, setButtonState] = useState(mode === Mode.UsedPart && initialValue > 0\r\n ? ButtonState.UsedPartChosen\r\n : (hasRemanInCart\r\n ? ButtonState.RemanItemChosen\r\n : ButtonState.Normal)\r\n );\r\n\r\n const debouncedOnChange = useMemo(() => debounce((v: number) => {\r\n sendMatomoEvent('Quantity Selector', 'Clicked', 'Buy', v);\r\n onChange(v);\r\n }, 500), [onChange]);\r\n\r\n useEffect(() => {\r\n if (!disabled && checkForErrors(textValue, lastValidValue) === null && lastValidValue > 0) {\r\n debouncedOnChange(lastValidValue);\r\n }\r\n }, [lastValidValue, textValue]);\r\n\r\n const updateValue = (text: string | number) => {\r\n setInfoMessage(\"\");\r\n\r\n if (typeof text === 'number') {\r\n text = text.toString();\r\n }\r\n setTextValue(text);\r\n if (isNumeric(text)) {\r\n const num = +text;\r\n min = Math.max(min, 1);\r\n setLastValidValue(num);\r\n if (forceMinValue && num < min) {\r\n setLastValidValue(min);\r\n setTextValue(min.toString());\r\n }\r\n }\r\n };\r\n\r\n const updateButton = (v: number) => {\r\n const shouldRemove = v === 0;\r\n if (shouldRemove) {\r\n if (buttonState === ButtonState.UsedPartChosen) {\r\n setButtonState(ButtonState.Loader);\r\n setTimeout(() => setButtonState(ButtonState.Normal), 1000);\r\n onRemove(() => setShowButton(true));\r\n } else {\r\n debouncedOnChange.stop();\r\n onRemove(() => setShowButton(true));\r\n }\r\n } else {\r\n setShowButton(false);\r\n }\r\n }\r\n\r\n const add = async () => {\r\n\r\n const addSparePartToCart = (quantity?: number) => {\r\n setButtonState(ButtonState.Loader);\r\n\r\n (quantity == 0) ?\r\n setTimeout(() => setButtonState(ButtonState.RemovingItem), 1000)\r\n :\r\n setTimeout(() => setButtonState(ButtonState.LoadedLabel), 1000)\r\n\r\n setTimeout(() => setButtonState(ButtonState.Normal), 2000);\r\n updateValue(quantity ?? step);\r\n updateButton(quantity ?? step);\r\n }\r\n\r\n const addRemanItemToCart = (quantity: number) => {\r\n onAddReman(quantity);\r\n\r\n setButtonState(ButtonState.Loader);\r\n setTimeout(() => setButtonState(ButtonState.LoadedRemanItem), 1000);\r\n setTimeout(() => setButtonState(ButtonState.RemanItemChosen), 2000);\r\n }\r\n\r\n const addUsedItemToCart = (quantity: number) => {\r\n setButtonState(ButtonState.Loader);\r\n setTimeout(() => setButtonState(ButtonState.LoadedLabel), 1000);\r\n setTimeout(() => setButtonState(ButtonState.UsedPartChosen), 2000);\r\n\r\n updateValue(quantity ?? step);\r\n updateButton(quantity ?? step);\r\n }\r\n\r\n if (mode === Mode.UsedPart) {\r\n addUsedItemToCart(1);\r\n return;\r\n }\r\n if (!showRemanufacturePopUp) {\r\n addSparePartToCart();\r\n } else {\r\n const popupData = await showRemanufacturePopUp();\r\n if (!popupData) {\r\n //undefined, user canceled the pop up\r\n //do nothing\r\n return;\r\n }\r\n if (popupData.selectedReman) {\r\n addRemanItemToCart(popupData.remanQuantity);\r\n } else {\r\n addSparePartToCart(popupData.sparePartQuantity);\r\n }\r\n }\r\n };\r\n\r\n const increment = () => {\r\n const intendedValue = Math.trunc((lastValidValue + step) / step) * step;\r\n const possibleValue = clamp(intendedValue, min, maxTruncated)\r\n updateValue(possibleValue);\r\n\r\n if (intendedValue > possibleValue)\r\n setInfoMessage(tr.maxNumberOfItems ?? \"\");\r\n }\r\n\r\n const decrement = () => {\r\n const newValue = clamp(Math.trunc((lastValidValue - step) / step) * step, 0, max);\r\n updateValue(newValue);\r\n if (!forceMinValue) {\r\n updateButton(newValue);\r\n }\r\n }\r\n\r\n const onEnter = (e: React.KeyboardEvent) => {\r\n if (e.key == \"Enter\") {\r\n e.currentTarget.blur();\r\n }\r\n }\r\n\r\n const checkForErrors = (textValue: string, numberValue: number) => {\r\n if (numberValue.toString() !== textValue) {\r\n return tr.invalidValue;\r\n }\r\n if (numberValue === 0) {\r\n return tr.productRemoved;\r\n }\r\n if (numberValue < min) {\r\n return tr.valueTooLow;\r\n }\r\n if (numberValue > max) {\r\n return tr.valueTooHigh;\r\n }\r\n if (numberValue % step !== 0) {\r\n return tr.cannotDivideUnit;\r\n }\r\n return null;\r\n };\r\n\r\n const errorMessage = checkForErrors(textValue, lastValidValue);\r\n const checkButton = () => updateButton(lastValidValue);\r\n\r\n const MainButton = () => {\r\n switch (buttonState) {\r\n case ButtonState.Loader:\r\n return ;\r\n case ButtonState.LoadedLabel:\r\n return ;\r\n case ButtonState.LoadedRemanItem:\r\n return ;\r\n case ButtonState.RemanItemChosen:\r\n return ;\r\n case ButtonState.RemovingItem:\r\n return ;\r\n case ButtonState.UsedPartChosen:\r\n return ;\r\n default:\r\n return ;\r\n };\r\n };\r\n\r\n const NumberInput = () =>
\r\n
\r\n updateValue(e.currentTarget.value)}>\r\n
{tr.countInCart}
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n
\r\n {errorMessage !== null && (\r\n
{errorMessage}
\r\n )}\r\n {errorMessage == null && infoMessage?.length > 0 && (\r\n
{infoMessage}
\r\n )}\r\n
;\r\n\r\n const designStyle = useMemo(() => {\r\n switch (design) {\r\n case Design.New:\r\n return styles.newDesign;\r\n case Design.PDP:\r\n return styles.pdpDesign;\r\n default:\r\n return \"\";\r\n };\r\n }, [design]);\r\n\r\n return (\r\n
\r\n {shouldShowButton || buttonState !== ButtonState.Normal ? : }\r\n
\r\n );\r\n}","import React from \"react\";\r\nimport ReactDOMClient from 'react-dom/client';\r\nimport singleSpaReact from \"single-spa-react\";\r\nimport rootComponent from \"./app\";\r\n\r\nexport const { bootstrap, mount, unmount } = singleSpaReact({\r\n React,\r\n ReactDOMClient,\r\n rootComponent,\r\n renderType: \"createRoot\",\r\n errorBoundary(err, info, props) {\r\n return
An unhandled frontend error occurred
;\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { ButtonResult, ButtonType, Design, PopupSize, QuantitySelector, RemanufacturedChoice, addRemanAndDepositItemsToCart, popup, useCartItemUpdate } from \"ui\";\r\nimport { RemanResults } from \"ui/src/types\";\r\nimport * as styles from \"./app.module.scss\";\r\n\r\nfunction App() {\r\n const state = window.app.preloadState.quantitySelector;\r\n const update = useCartItemUpdate(state.code);\r\n\r\n const onChange = async (quantity: number) => {\r\n await update(quantity);\r\n state.remanQuantity = 0;\r\n }\r\n\r\n const onRemove = async (f: () => void) => { await onChange(0); f() }\r\n const translations = (window as any).app.preloadState.translation;\r\n\r\n const showRemanufacturePopUp = async () => {\r\n\r\n let result: RemanResults[string] = undefined!;\r\n\r\n const changeResult = (results: RemanResults) => {\r\n result = results[state.code];\r\n }\r\n\r\n const override = state.remanQuantity\r\n ? {\r\n [state.code]: state.remanQuantity\r\n } : undefined;\r\n\r\n const popupResult = await popup(\r\n translations[\"remanufacturedItemPopUp.selectItemToAddToCart\"],\r\n ,\r\n [\r\n { label: translations[\"remanufacturedItemPopUp.remove\"], result: ButtonResult.No, type: ButtonType.Link, className: \"deleteButton\", visible: override != null },\r\n { label: translations[\"remanufacturedItemPopUp.cancel\"], result: ButtonResult.Cancel, type: ButtonType.Outlined },\r\n { label: translations[\"remanufacturedItemPopUp.ok\"], result: ButtonResult.Ok, type: ButtonType.Primary }\r\n ],\r\n PopupSize.ExtraLarge,\r\n \"noPaddingsPopUp\"\r\n );\r\n\r\n if (popupResult == ButtonResult.Ok) {\r\n return result;\r\n } else if (popupResult == ButtonResult.No) {\r\n return {\r\n selectedReman: false,\r\n sparePartQuantity: 0,\r\n remanQuantity: 0\r\n };\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n\r\n const onAddReman = async (quantity: number) => {\r\n await addRemanAndDepositItemsToCart(state.code, quantity);\r\n state.remanQuantity = quantity;\r\n }\r\n\r\n return \r\n}\r\n\r\nexport default App;\r\n"],"names":["___CSS_LOADER_EXPORT___","push","module","id","adaptive","over","under","xs","sm","md","lg","xl","buyButton","disabled","buttonLabelLoadingState","buttonLabelAddedState","buttonLabelAddedStateIcon","buttonLabelAddedStateLbl","buttonStyledAnchor","numberInput","input","note","inputChevrons","chevronDown","chevronUp","error","newDesign","pdpDesign","exports","cssWithMappingToString","list","toString","this","map","item","content","needLayer","concat","length","join","i","modules","media","dedupe","supports","layer","undefined","alreadyImportedModules","k","_k","m","createRoot","hydrateRoot","f","Symbol","for","l","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","type","props","_owner","current","Fragment","jsx","jsxs","stylesInDOM","getIndexByIdentifier","identifier","result","modulesToDom","options","idCountMap","identifiers","base","count","indexByIdentifier","obj","css","sourceMap","references","updater","addElementStyle","byIndex","splice","api","domAPI","update","newObj","remove","lastIdentifiers","newList","index","newLastIdentifiers","_i","_index","memo","insert","style","target","styleTarget","document","querySelector","window","HTMLIFrameElement","contentDocument","head","getTarget","Error","appendChild","element","createElement","setAttributes","attributes","styleElement","nonce","setAttribute","insertStyleElement","btoa","unescape","encodeURIComponent","JSON","stringify","styleTagTransform","apply","parentNode","removeChild","removeStyleElement","styleSheet","cssText","firstChild","createTextNode","resolveDirectory","rootDirLevel","meta","url","console","urlString","rootDirectoryLevel","href","pathname","numDirsProcessed","finalPath","slice","protocol","host","Number","isInteger","__WEBPACK_EXTERNAL_MODULE__726__","__WEBPACK_EXTERNAL_MODULE__867__","hasOwn","classNames","classes","arguments","arg","appendClass","parseValue","Array","isArray","includes","value","newClass","default","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","y","__system_context__","getter","__esModule","definition","o","defineProperty","enumerable","get","prop","r","toStringTag","nc","autoPublicPath","t","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","forEach","getOwnPropertyDescriptors","defineProperties","iterator","constructor","configurable","writable","domElement","domElementGetter","appName","name","getElementById","body","HTMLElement","require","createContext","u","React","ReactDOM","ReactDOMClient","rootComponent","loadRootComponent","errorBoundary","errorBoundaryClass","parcelCanUpdate","suppressComponentDidCatchWarning","domElements","renderResults","updateResolves","unmountResolves","s","Promise","resolve","then","version","indexOf","componentDidCatch","warn","childAppName","renderType","elementToRender","reactDom","render","unmount","unmountComponentAtNode","Provider","Component","state","caughtError","caughtErrorInfo","displayName","create","children","setState","SingleSpaRoot","mountFinished","updateFinished","unmountFinished","updateCart","_window_cart","cart","_window","updateCartItem","_async_to_generator","code","quantity","updateRemanItemBySparePartCode","_state","sent","updateItem","addRemanAndDepositItemsToCart","remanCode","depositCode","updateRemanAndDeposit","fetch","headers","app","preloadState","currentLanguage","method","json","data","isSuccess","sparePartCode","bundleCode","kitCode","serialNumber","items","ButtonResult","ButtonType","PopupSize","popup","title","buttons","size","popUpClass","footer","popupButtonPrechecks","Map","popupCallback","reverse","popupState","open","footerContent","footerReverse","_","_popupStateCallback","popupStateCallback","newState","popupButtonCallback","enabled","_object_spread_props","_object_spread","Loader","param","_param_size","_param_inline","inline","_jsx","className","cn","xmlns","width","height","viewBox","preserveAspectRatio","cx","cy","fill","stroke","strokeWidth","strokeDasharray","attributeName","repeatCount","dur","values","keyTimes","translations","translation","RemanufacturedChoice","changeResult","sparePartIds","quantityOverride","_useState","_sliced_to_array","useState","choices","setChoices","_useState1","fromEntries","selectedReman","sparePartQuantity","remanQuantity","chosenResult","setChosenResult","_useState2","totalSum","setTotalSum","useEffect","itemDetailsResponse","ok","text","_choices_id","_choices_id1","_quantityOverride_id","_ref","_quantityOverride_id1","_ref1","sparePartDetails","remanPartDetails","response","_Fragment","_jsxs","sparePartId","sparePartItem","remanItem","depositItem","depositDetails","chosenData","onClick","_define_property","checked","onChange","RemanufacturedItem","updateItemQuantity","Math","max","isDisabled","showAvailability","_item_availability","_param_updateItemQuantity","_param_isDisabled","_param_showAvailability","price","setPrice","description","unit","ev","_ev_target_valueAsNumber","valueAsNumber","availability","dangerouslySetInnerHTML","__html","isInBranch","branch","locals","Adaptive","breakpoint","_param_breakpoint","styles","ButtonState","cancelDefault","preventDefault","stopPropagation","clamp","v","min","loginLink","tr","entries","pair","startsWith","split","showNotAuthorizedPopup","cannotBuy","insufficientRightsToBuy","contactMySweconAdministrator","label","close","Cancel","Primary","Small","Mode","Design","QuantitySelector","shouldShowModeButton","mode","ModeButton","InternalQuantitySelector","requestQuotationByEmail","contactSupportLink","login","moreInformation","requestForQuotation","notAvailable","contactSupport","step","initialValue","onRemove","_param_onAddReman","onAddReman","forceMinValue","_param_className","_param_showRemanufacturePopUp","showRemanufacturePopUp","_param_buttonClassName","buttonClassName","hasRemanInCart","_param_hasRemanAvailable","hasRemanAvailable","_param_design","design","maxTruncated","useMemo","trunc","textValue","setTextValue","lastValidValue","setLastValidValue","shouldShowButton","setShowButton","_useState3","infoMessage","setInfoMessage","_useState4","buttonState","setButtonState","debouncedOnChange","func","_window__paq","_paq","valueToSend","debounced","args","_len","_key","clearTimeout","timeout","setTimeout","stop","checkForErrors","updateValue","str","isNaN","parseFloat","num","updateButton","add","addSparePartToCart","addRemanItemToCart","addUsedItemToCart","popupData","increment","_tr_maxNumberOfItems","intendedValue","possibleValue","maxNumberOfItems","decrement","newValue","onEnter","currentTarget","blur","numberValue","invalidValue","productRemoved","valueTooLow","valueTooHigh","cannotDivideUnit","errorMessage","checkButton","MainButton","buttonLabelAdded","buttonLabelRemanAdded","buttonLabelReman","itemRemoved","buttonLabelRemanBase","buttonLabelAddToCart","buttonLabelAddToCartMobile","buttonLabel","NumberInput","onKeyUp","onBlur","onInput","countInCart","designStyle","_singleSpaReact","componentDidMount","componentWillUnmount","bootstrap","bind","mount","singleSpaReact","quantitySelector","useCartItemUpdate","override","popupResult","results","No","Link","visible","Outlined","Ok","ExtraLarge","hasRemanItem","New","err","info"],"sourceRoot":""}