\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./LineChart.vue?vue&type=template&id=3d1b89aa&scoped=true\"\nimport script from \"./LineChart.vue?vue&type=script&lang=js\"\nexport * from \"./LineChart.vue?vue&type=script&lang=js\"\n\nimport \"./LineChart.vue?vue&type=style&index=0&id=3d1b89aa&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-3d1b89aa\"]])\n\nexport default __exports__","\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n
Login Cutting Wizard
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n \r\n
\r\n
{{ errorMessage }}
\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","/* eslint-disable */\r\nimport axios from 'axios';\r\n\r\nconst API_URL = 'https://bewowebapirecipetool.azurewebsites.net/api/UserRole';\r\n\r\nconst login = async (username, password) => {\r\n // Check for super admin credentials\r\n if (username === 'BewoRoot' && password === 'o4bse') {\r\n const superAdminResponse = {\r\n user: {\r\n username: 'BewoRoot',\r\n },\r\n token: 'super_admin_fake_token',\r\n };\r\n // Store the super admin token\r\n localStorage.setItem('token', superAdminResponse.token); // Storing just the token\r\n return superAdminResponse;\r\n } else {\r\n // Proceed with normal login for other users\r\n try {\r\n const response = await axios.post(`${API_URL}/authenticate`, { username, password });\r\n if (response.data.token) {\r\n // Store just the token for the user session\r\n localStorage.setItem('token', response.data.token);\r\n }\r\n return response.data;\r\n } catch (error) {\r\n throw error; // Make sure to handle this error appropriately in your UI\r\n }\r\n }\r\n};\r\n\r\nexport function getAuthToken() {\r\n // Retrieves the token stored under the 'token' key\r\n return localStorage.getItem('token');\r\n}\r\n\r\nexport const authService = {\r\n login,\r\n // Placeholder for other authentication related methods (logout, refreshToken, etc.)\r\n};\r\n","\r\n
\r\n
\r\n {{ label }}\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./RoundButton.vue?vue&type=template&id=69ef44d2\"\nimport script from \"./RoundButton.vue?vue&type=script&lang=js\"\nexport * from \"./RoundButton.vue?vue&type=script&lang=js\"\n\nimport \"./RoundButton.vue?vue&type=style&index=0&id=69ef44d2&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { render } from \"./LoginPage.vue?vue&type=template&id=521b219b\"\nimport script from \"./LoginPage.vue?vue&type=script&lang=js\"\nexport * from \"./LoginPage.vue?vue&type=script&lang=js\"\n\nimport \"./LoginPage.vue?vue&type=style&index=0&id=521b219b&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./RoundButtonWithInput.vue?vue&type=template&id=63a3077c\"\nimport script from \"./RoundButtonWithInput.vue?vue&type=script&lang=js\"\nexport * from \"./RoundButtonWithInput.vue?vue&type=script&lang=js\"\n\nimport \"./RoundButtonWithInput.vue?vue&type=style&index=0&id=63a3077c&lang=scss\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","\r\n
\r\n
\r\n \r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n","\r\n
\r\n\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./Shape.vue?vue&type=template&id=637e1b59&scoped=true\"\nimport script from \"./Shape.vue?vue&type=script&lang=js\"\nexport * from \"./Shape.vue?vue&type=script&lang=js\"\n\nimport \"./Shape.vue?vue&type=style&index=0&id=637e1b59&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-637e1b59\"]])\n\nexport default __exports__","import { render } from \"./ShapeSelector.vue?vue&type=template&id=9cef02a6&scoped=true\"\nimport script from \"./ShapeSelector.vue?vue&type=script&lang=js\"\nexport * from \"./ShapeSelector.vue?vue&type=script&lang=js\"\n\nimport \"./ShapeSelector.vue?vue&type=style&index=0&id=9cef02a6&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-9cef02a6\"]])\n\nexport default __exports__","import { render } from \"./FormComponent.vue?vue&type=template&id=0937cd2b&scoped=true\"\nimport script from \"./FormComponent.vue?vue&type=script&lang=js\"\nexport * from \"./FormComponent.vue?vue&type=script&lang=js\"\n\nimport \"./FormComponent.vue?vue&type=style&index=0&id=0937cd2b&lang=scss&scoped=true\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-0937cd2b\"]])\n\nexport default __exports__","\r\n
\r\n
Edit Users
\r\n\r\n \r\n
\r\n
Add New User
\r\n \r\n
\r\n\r\n \r\n
\r\n {{ successMessage }}\r\n
\r\n
Registered Users
\r\n
\r\n
\r\n
\r\n {{ user.userName }}\r\n \r\n \r\n
\r\n
\r\n
\r\n
\r\n No users found.\r\n
\r\n
\r\n\r\n\r\n\r\n\r\n\r\n\r\n","/* eslint-disable */\r\nimport axios from 'axios';\r\n\r\nconst API_URL = 'https://bewowebapirecipetool.azurewebsites.net/api/UserRole'; // Replace with your actual API endpoint\r\n\r\n// Updated function to get the JWT token from localStorage\r\nfunction getJwtToken() {\r\n // Updated to match the storage key used in authService.js\r\n return localStorage.getItem('token');\r\n}\r\n\r\n// Function to fetch all users with JWT token\r\nexport async function getUsers() {\r\n const token = getJwtToken();\r\n try {\r\n const response = await axios.get(`${API_URL}/user`, { // Use template literal for consistency\r\n headers: {\r\n Authorization: `Bearer ${token}`, // Use Bearer token authorization\r\n },\r\n });\r\n return response.data; // Assuming the API returns the list of users directly\r\n } catch (error) {\r\n console.error('Error fetching users:', error);\r\n throw error; // Rethrow the error to be handled by the caller\r\n }\r\n}\r\n\r\nexport async function addUser(userData) {\r\n const token = getJwtToken(); // Make sure you have a function to retrieve the JWT token\r\n try {\r\n const response = await axios.post(`${API_URL}/user`, userData, {\r\n headers: {\r\n 'Content-Type': 'application/json',\r\n Authorization: `Bearer ${token}`,\r\n },\r\n });\r\n return response.data;\r\n } catch (error) {\r\n console.error('Error adding user:', error);\r\n throw error;\r\n }\r\n}\r\n\r\nexport async function deleteUser(userId) {\r\n const token = getJwtToken(); // Make sure this function exists to get the JWT token\r\n try {\r\n const response = await axios.delete(`${API_URL}/user/${userId}`, {\r\n headers: {\r\n Authorization: `Bearer ${token}`,\r\n },\r\n });\r\n return response.data; // Depending on your API, this might be confirmation of deletion\r\n } catch (error) {\r\n console.error('Error deleting user:', error);\r\n throw error;\r\n }\r\n}\r\n\r\n","import { render } from \"./UserManagement.vue?vue&type=template&id=dacd8252&scoped=true\"\nimport script from \"./UserManagement.vue?vue&type=script&lang=js\"\nexport * from \"./UserManagement.vue?vue&type=script&lang=js\"\n\nimport \"./UserManagement.vue?vue&type=style&index=0&id=dacd8252&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-dacd8252\"]])\n\nexport default __exports__","\r\n
\r\n
test
\r\n \r\n
\r\n\r\n\r\n\r\n\r\n\r\n","import { render } from \"./Parentcomponent.vue?vue&type=template&id=b11879fa&scoped=true\"\nimport script from \"./Parentcomponent.vue?vue&type=script&lang=js\"\nexport * from \"./Parentcomponent.vue?vue&type=script&lang=js\"\n\nimport \"./Parentcomponent.vue?vue&type=style&index=0&id=b11879fa&scoped=true&lang=css\"\n\nimport exportComponent from \"../../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-b11879fa\"]])\n\nexport default __exports__","import { render } from \"./App.vue?vue&type=template&id=b9ebc52e\"\nimport script from \"./App.vue?vue&type=script&lang=js\"\nexport * from \"./App.vue?vue&type=script&lang=js\"\n\nimport \"./App.vue?vue&type=style&index=0&id=b9ebc52e&lang=scss\"\n\nimport exportComponent from \"../node_modules/vue-loader/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","/* eslint-disable */\r\nimport { createApp } from 'vue'\r\nimport App from './App.vue'\r\nimport '@fontsource/poppins' // Defaults to weight 400.\r\nimport \"@fontsource/poppins\"; // Defaults to weight 400.\r\nimport \"@fontsource/poppins/700.css\";\r\nimport \"@fontsource/poppins/600.css\";\r\nimport \"@fontsource/poppins/500.css\";\r\n\r\ndocument.title = 'Bewo Cutting Wizard';\r\n\r\ncreateApp(App).mount('#app')\r\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\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(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__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(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 = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkCuttingMasterApp\"] = self[\"webpackChunkCuttingMasterApp\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(341); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["key","class","_createStaticVNode","_imports_0","_createElementBlock","$data","isLoggedIn","_hoisted_2","_createElementVNode","_hoisted_3","_hoisted_4","_createVNode","_component_FormComponent","msg","isSuperAdmin","_hoisted_5","_createCommentVNode","_hoisted_1","_component_LoginPage","onLoginSuccess","$options","handleLoginSuccess","staticChartData","data","options","chartOptions","ChartJS","register","Title","Tooltip","Legend","LineElement","CategoryScale","LinearScale","PointElement","name","components","Line","labels","Array","from","length","_","i","datasets","label","backgroundColor","borderColor","Math","random","responsive","maintainAspectRatio","scales","x","title","display","text","y","mounted","console","log","this","__exports__","id","src","for","_Fragment","isLoading","_hoisted_6","_hoisted_7","_cache","$event","username","type","placeholder","required","autocomplete","autofocus","_hoisted_8","_hoisted_9","password","_hoisted_10","_component_RoundButton","onSubmit","submitLogin","gradient","errorMessage","_hoisted_11","_toDisplayString","API_URL","login","async","superAdminResponse","user","token","localStorage","setItem","response","axios","post","error","authService","onClick","args","buttonClicked","_normalizeClass","$props","props","methods","$emit","RoundButton","disabled","value","href","target","getTranslation","currentLanguage","onChange","_ctx","changeLanguage","_hoisted_12","inputData","unitSystem","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","machine_type","_hoisted_20","_renderList","machineTypes","machine","_hoisted_21","_hoisted_22","_hoisted_23","yearOfManufacture","_hoisted_24","years","year","parseInt","_hoisted_25","_hoisted_26","_hoisted_27","_hoisted_28","active","SCD","toggleSelection","BMS","TCM","SCR","_hoisted_29","_hoisted_30","_hoisted_31","tcmDrum","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","unitLabel","_hoisted_37","_hoisted_38","numberOfStartingLengths","number","errorMessageToManyStartingLengths","_hoisted_39","errorMessageToManyStartingLengthsSG","_hoisted_40","errorMessageSCFInsufficentBundleLoaderSpeed","_hoisted_41","_hoisted_42","_hoisted_43","_hoisted_44","shape","setShape","_hoisted_45","_hoisted_46","solid","_hoisted_47","_hoisted_48","width","unit","_hoisted_49","_hoisted_50","_hoisted_51","_hoisted_52","height","_hoisted_53","_hoisted_54","errorMessageSCFSToBigTube","_hoisted_55","errorMessageSCFSToBigWidth","_hoisted_56","errorMessageSCFSToBigHeight","_hoisted_57","errorMessageSCFOToBigTube","_hoisted_58","errorMessageSCFOToBigWidth","_hoisted_59","errorMessageSCFOToBigHeight","_hoisted_60","_hoisted_61","_hoisted_62","wall","_hoisted_63","_hoisted_64","_hoisted_65","_hoisted_66","productLength","_hoisted_67","_hoisted_68","_hoisted_69","_hoisted_70","startLength","_hoisted_71","_hoisted_72","_hoisted_73","_hoisted_74","trimLength","_hoisted_75","_hoisted_76","_hoisted_77","_hoisted_78","_hoisted_79","getStrengths","strength","index","setStrength","_hoisted_80","_hoisted_81","errorMessageIncorrectData","_hoisted_82","errorMessagestartLengthTooHeavy","_hoisted_83","submitData","_hoisted_84","_hoisted_85","_createTextVNode","_hoisted_86","_hoisted_87","_hoisted_88","NOadvise","_hoisted_89","_hoisted_90","_hoisted_91","_hoisted_92","_hoisted_93","_hoisted_94","HSSadvise","_hoisted_95","hssValues","_hoisted_96","_hoisted_97","getUnitForKey","_hoisted_98","_hoisted_99","_hoisted_100","TCTadvise","_hoisted_101","tctValues","_hoisted_102","_hoisted_103","_hoisted_104","_hoisted_105","_hoisted_106","_hoisted_107","errorResponse","_hoisted_108","_hoisted_109","_hoisted_110","_hoisted_111","_hoisted_112","_hoisted_113","emailInputVisible","mail","email","isEmailInvalid","alert","test","getShapes","allowEdit","plcId","valueModel","_component_Shape","viewBox","innerHTML","getShapeById","shapeSource","xmlns","computed","mapGetters","created","uuidv4","svg","document","getElementById","bb","getBBox","bbx","bby","bbw","bbh","vb","join","Shape","watch","handler","$store","dispatch","ShapeSelector","RoundButtonWithInput","LineChart","drumsize","errorMessageSCFToBigWidth","successMessage","submitCount","submitTimeout","translations","nl","nlTranslations","fr","frTranslations","en","enTranslations","es","esTranslations","de","deTranslations","hssChartData","maxDimensionsForMachineType","maxDimensions","maxHoogteRechthoek","maxWijdte","validateDiameter","validateMultipleProducts","newVal","prepareChartData","modifiedInputData","round","advisedSawbladeDiameterHss","bladeThicknesHss","minimumSawbladediameter","toothPitchHss","numberofTeethHss","advisedHighSpeedHss","advisedHighFeedHss","advisedLowFeedHss","standTijdZaagbladMinHss","standTijdZaagbladMaxHss","restPieceHss","zaagtijdHss","outputHss","advisedSawbladeDiameterTct","bladeThicknesTct","toothPitchTct","numberofTeethTct","advisedHighSpeedTct","advisedHighFeedTct","advisedLowFeedTct","standTijdZaagbladMinTct","standTijdZaagbladMaxTct","restPieceTct","zaagtijdTct","outputTct","cylinderSpeedActValuesHss","status","unitMappings","speed","lowFeed","highFeed","sawDiameter","minimalSawDiameter","numberOfTeeth","standTijdZaagbladMin","standTijdZaagbladMax","restlength","sawtime","output","pitch","sawThickness","buttonKey","calculateStartlength","Width","Height","Wall","effectiveWall","surface","weight","weightStartlength","PI","pow","setTimeout","startWeight","maxDimensionsTable","maxDiameter","maxWidthRectangle","maxHeightRectangle","maxWidth","totalWidth","totalHeight","maxHeigtRectangle","topic","langTranslations","_withModifiers","submitNewUser","newUser","userName","users","confirmDelete","getJwtToken","getItem","getUsers","get","headers","Authorization","addUser","userData","deleteUser","userId","delete","fetchAllUsers","usersData","confirmation","confirm","submitDeleteUser","chartData","Object","default","LoginPage","FormComponent","UserManagement","Parentcomponent","render","createApp","App","mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","call","m","deferred","O","result","chunkIds","fn","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","g","globalThis","Function","e","window","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","forEach","bind","push","__webpack_exports__"],"sourceRoot":""}