{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/services/Enums.ts","webpack:///./src/services/ClaimEnum.ts","webpack:///./src/services/MenuGroup.ts","webpack:///./src/services/Store.ts","webpack:///./src/services/General.ts","webpack:///./src/services/MenuItem.ts"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","ReportType","SignStatus","NET20_AUTHORIZATION","NET20_CONTRACT_TYPE","PPE_PRODUCT_TYPE","PPE_STATUS","PPE_PDF","PPE_AUTHORIZATION","PPE_UOM","PROCESS_TYPE_ENUM","PROCESS_EXECUTION_MODE_ENUM","CONTRACT_TYPE_ENUM","HTTP_RESPONSE","ClaimEnum","MenuGroup","_createClass","title","icon","child","arguments","header","_classCallCheck","this","Active","vue_1","tslib_1","__importDefault","require","vuex_1","axios_1","vuex_persistedstate_1","General_1","default","use","getDefaultState","token","user","userProfile","countrySelected","claimsList","isLogged","currentPath","isMainLoading","impersonatedBy","impersonationStartDate","userToImpersonate","clientVersion","mandatoryCommunications","isHidingCommunicationDuringImpersonation","processList","processCount","lastTranslationUpdate","languages","singleMenuItem","isEmergencyContactExpired","Store","strict","plugins","state","getters","getSingleMenuItem","isLoggedIn","getMandatoryCommunications","getCountrySelected","getFatherCountry","countryFather","getUser","getLastTranslationUpdate","claims","isImpersonated","impersionationDateTime","impersionationDate","Date","checkClientVersion","getProcessList","General","filterProcess","getProcessCount","getLanguages","getUserProfile","mutations","SET_SINGLEMENUITEM","SET_TOKEN","SET_MANDATORYCOMMUNICATIONS","SET_USER","SET_USER_CULTURE","idCulture","IdCulture","SET_USERPROFILE","SET_CLAIMS","RESET","assign","SET_ISLOGGED","SET_PATH","SET_LASTTRANSLATIONUPDATE","lastTranslationDate","SET_COUNTRYSELECTED","SET_MAINLOADING","mainLoading","SET_IMPERSONATEDBY","SET_IMPERSIONATIONDATE","SET_USERTOIMPERSONATE","SET_CLIENTVERSION","log","SET_ISHIDINGCOMMUNICATIONSDURINGIMPERSONATION","hideCommunicationDuringImpersonation","SET_ISEMERGENCYCONTACTEXPIRED","isExpiredEmergencyContact","ADD_LANGUAGE","language","UPDATE_LANGUAGE","newLanguage","oldLangIndex","findIndex","lang","ADD_PROCESS","forEach","element","index","element2","ProcessId","Percentage","CurrentStep","Status","ErrorDescription","EndDate","CLEAR_PROCESS_LIST","CLEAR_ALL_REMOVABLE_PROCESS","newProcessList","DELETE_PROCESS","processId","indexToDelete","actions","setSingleMenuItem","_ref","isSingleMenuItem","commit","login","_ref2","_ref3","dispatch","defaults","headers","common","concat","logout","_ref4","setCurrentPath","_ref5","_ref6","setLoading","_ref7","impersonate","_ref8","_ref9","now","setClientVersion","_ref10","setUserInfo","_ref11","_ref12","country","setMandatoryCommunications","_ref13","setLastTranslationUpdate","_ref14","lastTransaltionDate","setIsHidingCommunicationsDuringImpersonation","_ref15","hideCommunicationsDuringImpersonation","addProcess","_ref16","clearProcessList","_ref17","deleteProcess","_ref18","setUserCulture","_ref19","_ref20","setIsEmergencyContactExpired","_ref21","Store_1","moment_1","ClaimEnum_1","i18n_setup_1","i18n_setup_2","Enums_1","defaultState","url","ApiUrl","text","app","errorMessage","$fire","html","customResponse","errors","detailedError","response","status","Logout","showAlertDanger","showAlertDangerAsHTML","array","separator","string","item","$toastr","split","find","includes","replace","trim","idDocument","GetApiUrl","auth","claimType","claimValue","_a","isManagedBySAP","CheckAuthorization","CanManageLubTable","replaceState","suffix","substring","limit","GetLimitDateProcessToView","filter","x","getTime","toLowerCase","Username","array1","array2","JSON","stringify","_context2","next","__awaiter","_this","_regeneratorRuntime","mark","_callee","currentLastTranslationDate","currentClaims","isDifferent","version","wrap","_context","prev","CheckIfDifferent","showAlertInfo","i18n","loadLanguageAsync","communications","RefreshPage","stop","GetEmergencyContactIfExpiredAsync","CallAjax","startDate","currentDate","diffTime","diffDate","getMinutes","EndImpersonate","abrupt","_callee2","route","router","username","BuildUser","cookieExpiration","_context3","SetUser","query","from","fromUrl","_callee3","location","reload","currentRoute","path","size","toString","Math","round","toFixed","date","locale","diffInHours","abs","diff","fromNow","format","active","vueApp","okFunc","$bvModal","msgBoxConfirm","buttonSize","okVariant","okTitle","cancelTitle","footerClass","hideHeaderClose","centered","noFunc","msgBoxOk","method","thenFunc","_this2","responseType","withCredentials","catch","loading","HandleError","userNameToImpersonate","$store","_context4","sent","GoToHomePage","_callee4","Impersonate","_context5","_callee5","_context6","_callee6","GetUser","responseFromGet","_context7","userAuth","_callee7","_context8","_callee8","_context9","_callee9","showCommunicationClaim","ShowCommunication","setHours","getHours","process","contractType","showCommunication","_context10","_callee10","_context11","_callee11","setHideCommunication","GoToHP","_context12","_callee12","source","excludeDeleted","apiUrl","_context13","t0","_callee13","_context14","SetOptionsDropDown","_callee14","dropDownItems","includeEmptyOption","emptyItem","el","newItem","idDropDownItem","identifyCode","deletionDate","itemText","startsWith","INTERNAL","EXTERNAL","OUTER","_context15","_callee15","MenuItem","claim","alias","disabled","OpenModal","Claim"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAA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PzDjH,EAAQ+K,EAAAtD,KAOZ1I,EAAArJ,QAAMwG,OAAO,gCAAiC8D,EAASzT,MAAMwe,EAAA5G,OAAA,SACtDnE,EAASzT,MAAI,OAGa,OAHbwe,EAAA5H,KAAA,EAAA4H,EAAAlB,GAAAkB,EAAA,YAGpB1S,EAAQgP,YAAW0D,EAAAlB,GAAQ7U,MAAM+V,EAAA5G,OAAA,SAC1B,MAAI,yBAAA4G,EAAArH,UAAAsH,EAAA,sBArlBH,GAApBxc,EAAA6J,UAGmBA,EAAAkH,OAA6BuJ,Y,mICxCnCmC,EAAQxW,GACjB,SAAAwW,EAAYvW,EAAe4K,EAAa4L,GAA+I,IAAhIC,EAAAtW,UAAA9H,OAAA,QAAA4E,IAAAkD,UAAA,GAAAA,UAAA,GAAgB,KAAMD,EAAAC,UAAA9H,OAAA,QAAA4E,IAAAkD,UAAA,GAAAA,UAAA,GAAqC,GAAIF,EAAAE,UAAA9H,OAAA,QAAA4E,IAAAkD,UAAA,GAAAA,UAAA,GAAe,KAAMuW,EAAAvW,UAAA9H,OAAA,QAAA4E,IAAAkD,UAAA,IAAAA,UAAA,GAA2BwW,EAASxW,UAAA9H,OAAA,QAAA4E,IAAAkD,UAAA,IAAAA,UAAA,GAAQE,EAAA,KAAAkW,GACnLjW,KAAKN,MAAQA,EACbM,KAAK/F,KAAOqQ,EACZtK,KAAKmW,MAAQA,EACbnW,KAAKJ,MAAQA,EACbI,KAAKL,KAAOA,EACZK,KAAKoW,SAAWA,EAChBpW,KAAKsW,MAAQJ,EACblW,KAAKC,QAAS,EACdD,KAAKqW,UAAYA,KAVzB7c,EAAAyc","file":"js/app~1697e983.9856382f.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app~1697e983\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app~1697e983\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-17c3f88a\":\"82929ec8\",\"chunk-18d96376\":\"1218f01d\",\"chunk-1e3aeac8\":\"127a45fe\",\"chunk-3e85342d\":\"4f2d8c8d\",\"chunk-04bf96e4\":\"1df3467b\",\"chunk-502e593d\":\"35979236\",\"chunk-66517134\":\"24f29cb2\",\"chunk-548763d3\":\"2c23c48b\",\"chunk-6059cc5f\":\"a2b32360\",\"chunk-68171ae2\":\"95d4b10a\",\"chunk-6e83591c\":\"9e852703\",\"chunk-2b75bfbf\":\"e1244c8e\",\"chunk-2d216bb6\":\"8f66f099\",\"chunk-2d0e4ff6\":\"3b3efb00\",\"chunk-2d0aeba3\":\"b78ef0f5\",\"chunk-4722018a\":\"cec6155b\",\"chunk-6e89c1d0\":\"3c953a1f\",\"chunk-22ff0126\":\"2887a6f2\",\"chunk-38201a94\":\"16cba446\",\"chunk-127a8acb\":\"9b28797a\",\"chunk-f9e49b46\":\"5dae50da\",\"chunk-818f8cc6\":\"d3009870\",\"chunk-10bacadc\":\"3317106f\",\"chunk-ebcadb2e\":\"8b75ef5a\",\"chunk-20a0ff14\":\"c6e8477a\",\"chunk-a925058e\":\"6ca130f5\",\"chunk-2d2248b6\":\"e6dcce42\",\"chunk-29c261d4\":\"1f204e16\",\"chunk-82c71bc4\":\"76837476\",\"chunk-98e7e97c\":\"7fb32063\",\"chunk-6223a234\":\"f1735d5f\",\"chunk-67454de0\":\"b666acec\",\"chunk-22d85136\":\"a9a1c8a9\",\"chunk-1200e3f5\":\"5779b2d9\",\"chunk-7e798a38\":\"baf53203\",\"chunk-13719a49\":\"cdc2f8ae\",\"chunk-74f6f3c4\":\"bcdce48a\",\"chunk-7a19ca76\":\"8def3ec7\",\"chunk-7df0f79a\":\"ae21d9a3\",\"chunk-89277cee\":\"a724a3c0\",\"chunk-a00dc7b6\":\"220357b9\",\"chunk-a6ea1de4\":\"d98bf174\",\"chunk-b0a4986c\":\"921e4ea2\",\"chunk-cc4dfaba\":\"32d7c58b\",\"chunk-715a41e7\":\"cb358183\",\"chunk-3bdee921\":\"27028513\",\"chunk-35feef03\":\"79fad7d6\",\"chunk-77e4a162\":\"b2ddfbbf\",\"chunk-382a4042\":\"13b28006\",\"chunk-7134fa7e\":\"8683d74a\",\"chunk-920c38f6\":\"9fa048b3\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-17c3f88a\":1,\"chunk-18d96376\":1,\"chunk-1e3aeac8\":1,\"chunk-3e85342d\":1,\"chunk-04bf96e4\":1,\"chunk-548763d3\":1,\"chunk-68171ae2\":1,\"chunk-2b75bfbf\":1,\"chunk-4722018a\":1,\"chunk-6e89c1d0\":1,\"chunk-127a8acb\":1,\"chunk-10bacadc\":1,\"chunk-20a0ff14\":1,\"chunk-29c261d4\":1,\"chunk-82c71bc4\":1,\"chunk-98e7e97c\":1,\"chunk-6223a234\":1,\"chunk-13719a49\":1,\"chunk-7a19ca76\":1,\"chunk-89277cee\":1,\"chunk-a00dc7b6\":1,\"chunk-cc4dfaba\":1,\"chunk-715a41e7\":1,\"chunk-3bdee921\":1,\"chunk-77e4a162\":1,\"chunk-382a4042\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-17c3f88a\":\"2b0c5ec3\",\"chunk-18d96376\":\"0a34b72c\",\"chunk-1e3aeac8\":\"9887c5db\",\"chunk-3e85342d\":\"9887c5db\",\"chunk-04bf96e4\":\"de06e980\",\"chunk-502e593d\":\"31d6cfe0\",\"chunk-66517134\":\"31d6cfe0\",\"chunk-548763d3\":\"120dbfce\",\"chunk-6059cc5f\":\"31d6cfe0\",\"chunk-68171ae2\":\"7551f348\",\"chunk-6e83591c\":\"31d6cfe0\",\"chunk-2b75bfbf\":\"b0899d91\",\"chunk-2d216bb6\":\"31d6cfe0\",\"chunk-2d0e4ff6\":\"31d6cfe0\",\"chunk-2d0aeba3\":\"31d6cfe0\",\"chunk-4722018a\":\"e1a312f5\",\"chunk-6e89c1d0\":\"9887c5db\",\"chunk-22ff0126\":\"31d6cfe0\",\"chunk-38201a94\":\"31d6cfe0\",\"chunk-127a8acb\":\"17bbc47f\",\"chunk-f9e49b46\":\"31d6cfe0\",\"chunk-818f8cc6\":\"31d6cfe0\",\"chunk-10bacadc\":\"edcd3b2a\",\"chunk-ebcadb2e\":\"31d6cfe0\",\"chunk-20a0ff14\":\"12d3ae18\",\"chunk-a925058e\":\"31d6cfe0\",\"chunk-2d2248b6\":\"31d6cfe0\",\"chunk-29c261d4\":\"32c39b50\",\"chunk-82c71bc4\":\"8c776204\",\"chunk-98e7e97c\":\"56295e4d\",\"chunk-6223a234\":\"d0d74561\",\"chunk-67454de0\":\"31d6cfe0\",\"chunk-22d85136\":\"31d6cfe0\",\"chunk-1200e3f5\":\"31d6cfe0\",\"chunk-7e798a38\":\"31d6cfe0\",\"chunk-13719a49\":\"336eb3ef\",\"chunk-74f6f3c4\":\"31d6cfe0\",\"chunk-7a19ca76\":\"9887c5db\",\"chunk-7df0f79a\":\"31d6cfe0\",\"chunk-89277cee\":\"83cb0f19\",\"chunk-a00dc7b6\":\"9887c5db\",\"chunk-a6ea1de4\":\"31d6cfe0\",\"chunk-b0a4986c\":\"31d6cfe0\",\"chunk-cc4dfaba\":\"d95eb699\",\"chunk-715a41e7\":\"71b04808\",\"chunk-3bdee921\":\"9887c5db\",\"chunk-35feef03\":\"31d6cfe0\",\"chunk-77e4a162\":\"a85ae26b\",\"chunk-382a4042\":\"c708029b\",\"chunk-7134fa7e\":\"31d6cfe0\",\"chunk-920c38f6\":\"31d6cfe0\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors~0f485567\",\"chunk-vendors~e4173fa2\",\"chunk-vendors~2f8bc2b9\",\"chunk-vendors~2e5c6c73\",\"chunk-vendors~5ce4fade\",\"chunk-vendors~eb7344d5\",\"chunk-vendors~ab9cc731\",\"chunk-vendors~4bc2da00\",\"chunk-vendors~f414210c\",\"chunk-vendors~6bcf42e1\",\"chunk-vendors~1187b811\",\"chunk-vendors~7a8621bb\",\"chunk-vendors~3567b4a7\",\"chunk-vendors~7e2e2373\",\"chunk-vendors~f8ef863f\",\"chunk-vendors~52f44a73\",\"chunk-vendors~6937032c\",\"chunk-vendors~36c5d7d2\",\"chunk-vendors~ab1ba4f8\",\"chunk-vendors~93acefaf\",\"chunk-vendors~31c671ca\",\"chunk-vendors~203e0718\",\"chunk-vendors~9c5b28f6\",\"chunk-vendors~399b027d\",\"chunk-vendors~e258e298\",\"chunk-vendors~8eeb4602\",\"chunk-vendors~7db804d5\",\"chunk-vendors~15f0789d\",\"chunk-vendors~cc99a214\",\"chunk-vendors~f9ca8911\",\"chunk-vendors~73d8ab38\",\"chunk-vendors~fdc6512a\",\"chunk-vendors~5068d5f8\",\"chunk-vendors~cf55716b\",\"chunk-vendors~02576867\",\"chunk-vendors~d2305125\",\"app~d0ae3f07\",\"app~f289f234\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export enum ReportType {\r\n Documents=\"Documents\",\r\n Products=\"Products\"\r\n}\r\n\r\nexport enum SignStatus {\r\n ORDINATA = 1,\r\n CONSEGNATA = 2,\r\n DANNEGGIATA = 3,\r\n RITIRATA = 4,\r\n IRREPERIBILE = 5,\r\n ROTTAMATA = 6\r\n}\r\n\r\nexport enum NET20_AUTHORIZATION {\r\n READ = \"R\",\r\n WRITE = \"W\"\r\n}\r\n\r\nexport enum NET20_CONTRACT_TYPE {\r\n FIRST_CONTRACT = 1,\r\n RENEWAL = 2,\r\n NEW_CONTRACT = 3\r\n}\r\n\r\nexport enum PPE_PRODUCT_TYPE {\r\n INCLUDED = 1,\r\n EXCLUDED = 2,\r\n COST_ALLOCATION = 3\r\n}\r\n\r\nexport enum PPE_STATUS {\r\n START_MANAGING = 1,\r\n TARGET_CHECK = 2,\r\n IN_PROGRESS = 3,\r\n EVALUATION_CHECK = 4,\r\n CLOSED = 5\r\n}\r\n\r\nexport enum PPE_PDF {\r\n PROMOTION_PLAN = 1,\r\n EVALUATION_REPORT = 2\r\n}\r\n\r\nexport enum PPE_AUTHORIZATION {\r\n READ = \"R\",\r\n WRITE = \"W\"\r\n}\r\n\r\nexport enum PPE_UOM {\r\n KILOS = \"KILOS\",\r\n LITERS = \"LITERS\"\r\n}\r\n\r\nexport enum PROCESS_TYPE_ENUM {\r\n uploadPds,\r\n downloadDocuments,\r\n sendMails,\r\n downloadFiles\r\n}\r\nexport enum PROCESS_EXECUTION_MODE_ENUM {\r\n queuing,\r\n immediate\r\n}\r\nexport enum CONTRACT_TYPE_ENUM {\r\n INTERNAL = 1,\r\n EXTERNAL = 2,\r\n OUTER = 3,\r\n}\r\nexport enum HTTP_RESPONSE {\r\n OK = 200,\r\n UserCreated = 201,\r\n UserPasswordNotSet = 289,\r\n DisabledUser = 290,\r\n TwoFactorRequired = 291,\r\n InternalUser = 292,\r\n UserLockedOut = 293,\r\n UserPasswordExpired = 294,\r\n InvalidOTPCode = 295,\r\n InvalidCredentials = 296,\r\n UserDoesntExist = 297,\r\n LoginFailed = 298,\r\n LoggedIn = 299,\r\n BadRequest = 400,\r\n NotFound = 404,\r\n Conflict = 409,\r\n Unauthorized = 460,\r\n InternalServerError = 500\r\n}\r\n","export enum ClaimEnum {\r\n CanSearchProduct = \"CanSearchProduct\",\r\n CanEditProduct = \"CanEditProduct\",\r\n CanUploadPDS = \"CanUploadPDS\",\r\n CanUploadDocument = \"CanUploadDocument\",\r\n CANDOANYTHING = \"CANDOANYTHING\",\r\n CanEditDocument = \"CanEditDocument\",\r\n CanDeleteProduct = \"CanDeleteProduct\",\r\n CanSearchMaterial = \"CanSearchMaterial\",\r\n CanUploadTechSpecs = \"CanUploadTechSpecs\",\r\n CanPrintPackageLabel = \"CanPrintPackageLabel\",\r\n CanShowLog = \"CanShowLog\",\r\n CanImpersonate = \"CanImpersonate\",\r\n CanUploadGenericDocument = \"CanUploadGenericDocument\",\r\n CanManageCQC = \"CanManageCQC\",\r\n CanReportDocuments = \"CanReportDocuments\",\r\n CanReportProducts = \"CanReportProducts\",\r\n CanManageLubTable = \"CanManageLubTable\",\r\n CanViewLubTable = \"CanViewLubTable\",\r\n CanManageCommunications = \"CanManageCommunications\",\r\n CanManageCommunicationCategories = \"CanManageCommunicationCategories\",\r\n CanManageCommunicationsForCountry = \"CanManageCommunicationsForCountry\",\r\n CanShowCommunications = \"CanShowCommunications\",\r\n CanViewElmah = \"CanViewElmah\",\r\n CanExportZip = \"CanExportZip\",\r\n CanManageSigns = \"CanManageSigns\",\r\n CanUploadMaterialInfo = \"CanUploadMaterialInfo\",\r\n CanManageNet20 = \"CanManageNet20\",\r\n CanAdminNet20 = \"CanAdminNet20\",\r\n CanAdminPpe = \"CanAdminPpe\",\r\n CanManagePpe = \"CanManagePpe\",\r\n CanAdmin = \"CanAdmin\",\r\n CanViewPackaging = \"CanViewPackaging\",\r\n CanDownloadGeolocator = \"CanDownloadGeolocator\",\r\n CanViewMaterialLabel = \"CanViewMaterialLabel\",\r\n CanEditMaterialLabel = \"CanEditMaterialLabel\", \r\n CanManageEmergencyContacts = \"CanManageEmergencyContacts\"\r\n}","import { MenuItem } from '@/services/MenuItem';\r\nimport { SidebarHeaderItem } from 'vue-sidebar-menu';\r\n\r\nexport class MenuGroup implements SidebarHeaderItem {\r\n constructor(title: string, icon: string | object, child: Array = [], header: boolean = false) {\r\n this.title = title;\r\n this.icon = icon ;\r\n this.child = child;\r\n this.header = header;\r\n this.Active = false;\r\n };\r\n \r\n public title: string;\r\n public icon: string | object;\r\n public child: Array;\r\n public header: boolean = false;\r\n public Active: boolean;\r\n\r\n}","import Vue from 'vue';\r\nimport Vuex from 'vuex';\r\nimport Axios from 'axios';\r\nimport createPersistedState from 'vuex-persistedstate';\r\nimport {Process} from '@/entity/Process';\r\nimport {General} from '@/services/General';\r\nimport { IStoreUser } from '@/interfaces/IStoreUser';\r\nimport { MenuItem } from '@/services/MenuItem';\r\n\r\nVue.use(Vuex);\r\nconst getDefaultState = () => {\r\n return {\r\n token: '',\r\n user: {} as IStoreUser,\r\n userProfile: {},\r\n countrySelected: {},\r\n claimsList: [],\r\n isLogged: false,\r\n currentPath: '',\r\n isMainLoading: false,\r\n impersonatedBy: null,\r\n impersonationStartDate: null,\r\n userToImpersonate: null,\r\n clientVersion: null,\r\n mandatoryCommunications: null,\r\n isHidingCommunicationDuringImpersonation: false,\r\n processList: [] as Array,\r\n processCount: 0,\r\n lastTranslationUpdate: null,\r\n languages: [] as Array,\r\n singleMenuItem: {} as MenuItem, \r\n isEmergencyContactExpired: null ,\r\n };\r\n};\r\nexport default new Vuex.Store({\r\n strict: true,\r\n plugins: [createPersistedState()],\r\n state: getDefaultState(),\r\n getters: {\r\n getSingleMenuItem: state =>{\r\n return state.singleMenuItem;\r\n },\r\n isLoggedIn: state => {\r\n return state.token;\r\n },\r\n getMandatoryCommunications : state => {\r\n return state.mandatoryCommunications;\r\n },\r\n getCountrySelected: state => {\r\n return state.countrySelected;\r\n },\r\n getFatherCountry: state=>{\r\n if (state.countrySelected==null) return {};\r\n return (state.countrySelected as any).countryFather;\r\n },\r\n getUser: state => {\r\n return state.user;\r\n },\r\n getLastTranslationUpdate: state => {\r\n return state.lastTranslationUpdate;\r\n },\r\n claims: state => {\r\n return state.claimsList;\r\n },\r\n isLogged: state => {\r\n return state.isLogged;\r\n },\r\n currentPath: state => {\r\n return state.currentPath;\r\n },\r\n isMainLoading: state => {\r\n return state.isMainLoading;\r\n },\r\n impersonatedBy: state => {\r\n return state.impersonatedBy;\r\n },\r\n isImpersonated: state => {\r\n if (state.impersonatedBy != undefined && state.impersonatedBy != null) {\r\n return true;\r\n }\r\n return false;\r\n },\r\n isHidingCommunicationDuringImpersonation: state => {\r\n return state.isHidingCommunicationDuringImpersonation;\r\n },\r\n impersionationDateTime: state => {\r\n return state.impersonationStartDate;\r\n },\r\n impersionationDate: state => {\r\n return new Date(state.impersonationStartDate);\r\n },\r\n userToImpersonate: state => {\r\n return state.userToImpersonate;\r\n },\r\n checkClientVersion: state => {\r\n return state.clientVersion\r\n },\r\n getProcessList: state => {\r\n return General.filterProcess(state.processList);\r\n },\r\n getProcessCount: state => {\r\n return General.filterProcess(state.processList).length;\r\n },\r\n getLanguages: state => {\r\n return state.languages;\r\n },\r\n getUserProfile: state => {\r\n return state.userProfile;\r\n },\r\n isEmergencyContactExpired: state => {\r\n return state.isEmergencyContactExpired;\r\n }\r\n },\r\n mutations: {\r\n SET_SINGLEMENUITEM: (state, token) => {\r\n state.singleMenuItem = token;\r\n },\r\n SET_TOKEN: (state, token) => {\r\n state.token = token;\r\n },\r\n SET_MANDATORYCOMMUNICATIONS:(state,mandatoryCommunications) => {\r\n state.mandatoryCommunications = mandatoryCommunications;\r\n },\r\n SET_USER: (state, user) => {\r\n state.user = user;\r\n },\r\n SET_USER_CULTURE: (state, idCulture) => {\r\n state.user.IdCulture = idCulture;\r\n },\r\n SET_USERPROFILE: (state, userProfile) => {\r\n state.userProfile = userProfile;\r\n\r\n },\r\n SET_CLAIMS: (state, claims) => {\r\n state.claimsList = claims;\r\n },\r\n RESET: state => {\r\n Object.assign(state, getDefaultState());\r\n },\r\n SET_ISLOGGED: (state, isLogged) => {\r\n state.isLogged = isLogged;\r\n },\r\n SET_PATH: (state, currentPath) => {\r\n state.currentPath = currentPath;\r\n },\r\n SET_LASTTRANSLATIONUPDATE:(state, lastTranslationDate) => {\r\n state.lastTranslationUpdate = lastTranslationDate;\r\n },\r\n SET_COUNTRYSELECTED: (state, countrySelected) => {\r\n state.countrySelected = countrySelected;\r\n },\r\n SET_MAINLOADING: (state, mainLoading) => {\r\n state.isMainLoading = mainLoading;\r\n },\r\n SET_IMPERSONATEDBY: (state, impersonatedBy) => {\r\n state.impersonatedBy = impersonatedBy;\r\n },\r\n SET_IMPERSIONATIONDATE: (state, impersonationStartDate) => {\r\n state.impersonationStartDate = impersonationStartDate;\r\n },\r\n SET_USERTOIMPERSONATE: (state, userToImpersonate) => {\r\n state.userToImpersonate = userToImpersonate;\r\n },\r\n SET_CLIENTVERSION: (state, clientVersion) => {\r\n console.log(\"test client \" + clientVersion)\r\n state.clientVersion = clientVersion;\r\n },\r\n SET_ISHIDINGCOMMUNICATIONSDURINGIMPERSONATION: (state, hideCommunicationDuringImpersonation) =>{\r\n state.isHidingCommunicationDuringImpersonation = hideCommunicationDuringImpersonation;\r\n },\r\n SET_ISEMERGENCYCONTACTEXPIRED:(state, isExpiredEmergencyContact) => { \r\n state.isEmergencyContactExpired = isExpiredEmergencyContact;\r\n },\r\n ADD_LANGUAGE: (state, language: any) => {\r\n state.languages.push(language);\r\n },\r\n UPDATE_LANGUAGE:(state, newLanguage: any) => {\r\n let oldLangIndex = state.languages.findIndex(lang => lang[\"idCulture\"] == newLanguage.idCulture);\r\n console.log(oldLangIndex);\r\n \r\n if(oldLangIndex != -1){\r\n state.languages.splice(oldLangIndex, 1)\r\n state.languages[oldLangIndex] = newLanguage;\r\n }\r\n },\r\n ADD_PROCESS: (state, processList: Array) => {\r\n processList.forEach(element => {\r\n let index = state.processList.findIndex(element2 => element2.ProcessId === element.ProcessId);\r\n if(index < 0) {\r\n state.processList.push(element);\r\n //state.processCount = state.processList.length;\r\n } else {\r\n state.processList[index].Percentage = element.Percentage;\r\n state.processList[index].CurrentStep = element.CurrentStep;\r\n state.processList[index].Status = element.Status;\r\n state.processList[index].ErrorDescription = element.ErrorDescription;\r\n state.processList[index].EndDate = element.EndDate;\r\n }\r\n });\r\n },\r\n CLEAR_PROCESS_LIST: (state) => {\r\n state.processList = [];\r\n state.processCount = 0;\r\n },\r\n CLEAR_ALL_REMOVABLE_PROCESS: (state) => {\r\n let newProcessList = [];\r\n state.processList.forEach(p => {\r\n if(p.ErrorDescription === undefined || p.ErrorDescription == null) {\r\n if(p.Percentage != 100)\r\n newProcessList.push(p);\r\n }\r\n });\r\n state.processList = newProcessList;\r\n state.processCount = state.processList.length;\r\n },\r\n DELETE_PROCESS: (state, processId: string) => {\r\n const indexToDelete = state.processList.findIndex(element => element.ProcessId === processId);\r\n if (indexToDelete > -1)\r\n state.processList.splice(indexToDelete, 1);\r\n\r\n state.processCount = state.processList.length;\r\n }\r\n },\r\n actions: {\r\n \r\n setSingleMenuItem:({commit}, isSingleMenuItem) => { \r\n commit('SET_SINGLEMENUITEM', isSingleMenuItem);\r\n },\r\n login: ({ commit, dispatch }, { token, user, claims, isLogged }) => {\r\n commit('SET_CLAIMS', claims);\r\n commit('SET_TOKEN', token);\r\n commit('SET_USER', user);\r\n commit('SET_ISLOGGED', isLogged);\r\n commit('SET_IMPERSONATEDBY', null);\r\n // set auth header\r\n Axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;\r\n }, \r\n logout: ({ commit }) => {\r\n commit('RESET', '');\r\n },\r\n setCurrentPath: ({ commit, dispatch }, { currentPath }) => {\r\n commit('SET_PATH', currentPath);\r\n },\r\n setLoading: ({ commit, dispatch }, mainLoading) => { \r\n commit('SET_MAINLOADING', mainLoading);\r\n },\r\n impersonate: ({ commit, dispatch }, { token, user, impersonatedBy, userToImpersonate, claims, isLogged }) => {\r\n commit('SET_CLAIMS', claims);\r\n commit('SET_TOKEN', token);\r\n commit('SET_USER', user);\r\n commit('SET_ISLOGGED', isLogged);\r\n commit('SET_IMPERSONATEDBY', impersonatedBy);\r\n commit('SET_IMPERSIONATIONDATE', Date.now());\r\n commit('SET_USERTOIMPERSONATE', userToImpersonate);\r\n // set auth header\r\n Axios.defaults.headers.common['Authorization'] = `Bearer ${token}`;\r\n },\r\n setClientVersion: ({ commit, dispatch }, clientVersion) => {\r\n console.log(\"test client _1_\" + clientVersion)\r\n commit(\"SET_CLIENTVERSION\", clientVersion);\r\n },\r\n\r\n setUserInfo: ({ commit, dispatch }, {userProfile,claims}) => {\r\n commit(\"SET_COUNTRYSELECTED\", userProfile.country);\r\n commit(\"SET_USERPROFILE\", userProfile);\r\n commit(\"SET_CLAIMS\", claims);\r\n },\r\n setMandatoryCommunications: ({ commit, dispatch }, mandatoryCommunications) => {\r\n commit(\"SET_MANDATORYCOMMUNICATIONS\", mandatoryCommunications);\r\n },\r\n setLastTranslationUpdate: ({commit, dispatch}, lastTransaltionDate) => {\r\n commit(\"SET_LASTTRANSLATIONUPDATE\", lastTransaltionDate)\r\n },\r\n setIsHidingCommunicationsDuringImpersonation: ({commit, dispatch}, hideCommunicationsDuringImpersonation)=> {\r\n commit(\"SET_ISHIDINGCOMMUNICATIONSDURINGIMPERSONATION\", hideCommunicationsDuringImpersonation)\r\n },\r\n addProcess: ({commit, dispatch}, processList: Array) => {\r\n commit(\"ADD_PROCESS\", processList)\r\n },\r\n clearProcessList: ({commit, dispatch}) => {\r\n commit(\"CLEAR_PROCESS_LIST\")\r\n },\r\n deleteProcess: ({commit, dispatch}, processId: string) => {\r\n commit(\"DELETE_PROCESS\", processId)\r\n },\r\n setUserCulture: ({commit, dispatch}, {idCulture}) => {\r\n commit(\"SET_USER_CULTURE\", idCulture);\r\n },\r\n setIsEmergencyContactExpired: ({commit, dispatch}, isEmergencyContactExpired) => {\r\n commit(\"SET_ISEMERGENCYCONTACTEXPIRED\", isEmergencyContactExpired);\r\n }\r\n }\r\n});","import store from '@/services/Store';\r\nimport axios, { Method } from 'axios';\r\nimport moment from 'moment';\r\nimport { ICustomResponse } from '@/interfaces/ICustomResponse';\r\nimport {DropDownItem, SelectDropDownItem} from '@/services/DropDownItem';\r\nimport { ClaimEnum } from './ClaimEnum';\r\nimport { loadLanguageAsync } from '@/i18n/i18n-setup';\r\nimport { i18n } from '@/i18n/i18n-setup';\r\nimport { Process } from '@/entity/Process';\r\nimport { IStoreUser } from '@/interfaces/IStoreUser';\r\nimport VueRouter, { Route } from 'vue-router';\r\nimport { CONTRACT_TYPE_ENUM } from './Enums';\r\n\r\n//TODO: trovare una soluzione per centralizzare lo stato di default\r\nconst defaultState = () => {\r\n return {\r\n token: '',\r\n user: {} as IStoreUser,\r\n userProfile: {},\r\n countrySelected: {},\r\n claimsList: [],\r\n isLogged: false,\r\n currentPath: '',\r\n isMainLoading: false,\r\n impersonatedBy: null,\r\n impersonationStartDate: null,\r\n userToImpersonate: null,\r\n clientVersion: null,\r\n mandatoryCommunications: null,\r\n isHidingCommunicationDuringImpersonation: false,\r\n isEmergencyContactExpired: null,\r\n processList: [] as Array,\r\n processCount: 0,\r\n lastTranslationUpdate: null,\r\n languages: [] as Array,\r\n singleMenuItem: null\r\n };\r\n};\r\n\r\n\r\nexport class General {\r\n \r\n\r\n private static ApiUrl: string | undefined = process.env.VUE_APP_URL;\r\n public static GetApiUrl(url: string) {\r\n return General.ApiUrl + url;\r\n }\r\n public static showAlertDanger(text: string, app: any, errorMessage: string = \"\") { \r\n app.$fire({\r\n title: \"Error\",\r\n text: (errorMessage != \"\" ? errorMessage : text),\r\n type: \"error\"\r\n })\r\n }\r\n public static showAlertDangerAsHTML(text: string, app: any) { \r\n app.$fire({\r\n title: \"Error\",\r\n html: text,\r\n type: \"error\"\r\n })\r\n }\r\n public static showAlertDangerAsJson(customResponse: ICustomResponse, app: any) { \r\n let message:string = '';\r\n if (customResponse.errors!=null && customResponse.errors.length>0){\r\n customResponse.errors.forEach(element => {\r\n message+=element+\"
\\n\";\r\n });\r\n\r\n }else{\r\n message = \"Undefined\";\r\n }\r\n \r\n app.$fire({\r\n title: \"Error\",\r\n html: message,\r\n type: \"error\"\r\n })\r\n }\r\n public static HandleError(error: any, app: any, detailedError: boolean = false) {\r\n if(error.response != undefined) {\r\n \r\n if (error.response.status == 460) {\r\n General.Logout();\r\n } else {\r\n if (app != null)\r\n General.showAlertDanger(error, app, (detailedError ? (error.response.data.errors != undefined ? \"\" : error.response.data) : \"\"));\r\n }\r\n }\r\n }\r\n public static HandleErrorAsHTML(error: any, app: any) {\r\n if (error.response.status == 460) {\r\n General.Logout();\r\n } else {\r\n if (app != null)\r\n General.showAlertDangerAsHTML(error, app);\r\n }\r\n }\r\n\r\n public static fillArraySeparator(array: string[], separator: string) {\r\n let string = '';\r\n array.forEach(function (item, index) {\r\n if (index != array.length - 1)\r\n string += item + separator;\r\n else string += item;\r\n });\r\n return string;\r\n }\r\n\r\n public static showAlertInfo(text: string, app: any) {\r\n app.$fire({\r\n //title: \"Info\",\r\n text: text,\r\n //type: \"warning\"\r\n })\r\n }\r\n public static showAlertSuccess(text: string, app: any) {\r\n app.$toastr.s(\r\n text\r\n );\r\n /*\r\n app.$fire({\r\n title: \"Success\",\r\n text: text,\r\n type: \"success\"\r\n })\r\n */\r\n \r\n }\r\n\r\n public static getFileNameFromHeader(headers) {\r\n return headers['content-disposition'].split(';')\r\n .find(n => n.includes('filename='))\r\n .replace('filename=', '')\r\n .trim();\r\n }\r\n\r\n public static getDocumentUrl(idDocument: any) {\r\n return General.GetApiUrl(\"/api/document/DownloadDocumentById?documentId=\" + idDocument);\r\n }\r\n /*\r\n public static getPackageLabelUrl(materialId: string, packageType: string, pageHeight: string, pageWidth: string, textTopOffset: string, zoom: string, rotation: string, printLogoAndFooter: boolean) {\r\n return General.GetApiUrl(\"/api/packagelabel/DownloadPackageLabel?materialId=\" + materialId + \"&packageType=\" + packageType + \"&pageHeight=\" + pageHeight + \"&pageWidth=\" + pageWidth + \"&textTopOffset=\" + textTopOffset + \"&zoom=\" + zoom + \"&rotation=\" + rotation + \"&printLogoAndFooter=\" + printLogoAndFooter as string);\r\n }\r\n */\r\n public static CheckAuthorization(auth: string): boolean {\r\n let claims = store.state.claimsList;\r\n if (!claims) return false;\r\n for (let i = 0; i < claims.length; i++) {\r\n if (auth == claims[i].claimType)\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public static CheckAuthorizationAndClaimValue(auth: string, claimValue: string): boolean {\r\n let claims = store.state.claimsList;\r\n if (!claims) return false;\r\n for (let i = 0; i < claims.length; i++) {\r\n if (auth == claims[i].claimType && claimValue == claims[i].claimValue)\r\n return true;\r\n }\r\n return false;\r\n }\r\n\r\n public static CanManualProcessProduct(): boolean {\r\n if (store.getters.getCountrySelected?.countryFather==null ) return false; \r\n return !store.getters.getCountrySelected.countryFather.isManagedBySAP;\r\n }\r\n\r\n public static CanManageLubTable(): boolean {\r\n return this.CheckAuthorization(ClaimEnum.CanManageLubTable);\r\n }\r\n\r\n public static Logout() {\r\n //store.dispatch('logout', {});\r\n store.replaceState(defaultState());\r\n }\r\n\r\n public static truncate(text:string, length:number, suffix:string) {\r\n if (text.length > length) \r\n return text.substring(0, length) + suffix.trim();\r\n else \r\n return text; \r\n }\r\n public static filterProcess(processList:Process[]):Process[]{\r\n let limit = General.GetLimitDateProcessToView(); \r\n return processList.filter(\r\n x=>\r\n (x.EndDate==null || (new Date(x.EndDate).getTime()>limit.getTime())) \r\n );\r\n }\r\n public static get currentUsername():string{\r\n\r\n if (store.getters.isImpersonated==true){\r\n return store.getters.userToImpersonate.toLowerCase();\r\n }\r\n return store.getters.getUser.Username.toLowerCase();\r\n\r\n }\r\n private static CheckIfDifferent(array1: Array, array2: Array ):boolean{ \r\n if (JSON.stringify(array1)!=JSON.stringify(array2)) return true;\r\n \r\n return false;\r\n }\r\n public static async IsLogged(app: any) {\r\n let isLogged: boolean = store.state.isLogged;\r\n \r\n if (isLogged) { \r\n \r\n let call = async (response: any) => {\r\n \r\n let currentLastTranslationDate = new Date(store.getters.getLastTranslationUpdate);\r\n let lastTranslationUpdate = new Date(response.data.lastTranslationUpdate);\r\n \r\n \r\n let currentClaims = store.getters.claims;\r\n if (store.getters.isLogged){\r\n let isDifferent = General.CheckIfDifferent(currentClaims,response.data.claims);\r\n if(isDifferent){\r\n General.showAlertInfo(i18n.t('GENERIC.REENTER_LOGIN') as string, app);\r\n General.Logout();\r\n \r\n \r\n }\r\n }\r\n if(store.getters.getLastTranslationUpdate != null && lastTranslationUpdate.getTime() != currentLastTranslationDate.getTime() ){ \r\n await loadLanguageAsync(store.getters.getUser.IdCulture, true);\r\n } \r\n \r\n currentLastTranslationDate = response.data.lastTranslationUpdate;\r\n store.dispatch('setLastTranslationUpdate', currentLastTranslationDate);\r\n \r\n store.dispatch('setMandatoryCommunications', response.data.communications);\r\n \r\n let version = store.getters.checkClientVersion;\r\n if (version == null) {\r\n version = response.data.version;\r\n store.dispatch('setClientVersion', version);\r\n }\r\n \r\n if (response.data.version != version) {\r\n version = response.data.version; \r\n store.dispatch('setClientVersion', version); \r\n General.RefreshPage();\r\n }\r\n isLogged = false;\r\n }\r\n\r\n await General.GetEmergencyContactIfExpiredAsync(); \r\n \r\n General.CallAjax('/api/auth/IsLogged', 'get', null, call);\r\n if (store.getters.isImpersonated) {\r\n let startDate = store.getters.impersionationDate;\r\n \r\n if (startDate != null) {\r\n let currentDate = (new Date(Date.now()));\r\n let diffTime = currentDate.getTime() - startDate.getTime();\r\n let diffDate = new Date(diffTime);\r\n // da aggiungere nelle configurazioni generali\r\n if (diffDate.getMinutes() > 40) {\r\n General.showAlertInfo(\"Time for impersonation is ended\", app);\r\n General.EndImpersonate(app);\r\n }\r\n }\r\n }\r\n\r\n let processList = store.getters.getProcessList as Process[];\r\n processList = General.filterProcess(processList);\r\n store.dispatch('clearProcessList');\r\n store.dispatch('addProcess',processList);\r\n }\r\n return isLogged;\r\n }\r\n\r\n public static async AuthenticateUser(response: any, route: Route, router: VueRouter) {\r\n let token = response.data.username; \r\n let user = General.BuildUser(token, response.data.claims, response.data.idCulture); \r\n let claims = response.data.claims;\r\n let isLogged = true; \r\n let cookieExpiration = response.data.cookieExpiration;\r\n store.dispatch('login', { token, user, claims, isLogged, cookieExpiration }); \r\n await General.loadLanguageAsync(response.data.idCulture); \r\n await General.SetUser(); \r\n\r\n if(!route.query.from) {\r\n router.push('/');\r\n } else {\r\n let fromUrl = route.query.from as string;\r\n router.push(fromUrl);\r\n } \r\n }\r\n\r\n public static RefreshPage() {\r\n window.location.reload();\r\n }\r\n\r\n public static GoToHomePage(router: any) {\r\n window.location.href = \"/\";\r\n router.push('/');\r\n }\r\n\r\n public static goToPage(url: string, router: any){\r\n store.commit(\"SET_PATH\",router.currentRoute.path);\r\n router.push(url.replace('/:id', '/'));\r\n\r\n }\r\n public static showSize(size: number): string {\r\n if (size < 1024) {\r\n return size.toString() + ' bytes';\r\n }\r\n if (size < 1048576) {\r\n return Math.round(size / 1024).toString() + ' Kb';\r\n }\r\n return (size / 1048576).toFixed(1) + ' Mb';\r\n }\r\n public static showDate(date: any): string {\r\n moment.locale('en');\r\n const diffInHours = Math.abs(moment().diff(date, 'hours'));\r\n let now;\r\n if (diffInHours < 2) {\r\n now = moment(date).fromNow();\r\n } else {\r\n now = moment(date).format('lll');\r\n }\r\n return now;\r\n }\r\n public static formatDateTime(date: Date): string{\r\n if (date == null) return '';\r\n return moment(date).format('MM/DD/YYYY HH:mm');\r\n }\r\n public static formatDateEng(date: Date): string {\r\n if (date == null) return '';\r\n return moment(date).format('MM/DD/YYYY');\r\n }\r\n public static formatDateIt(date:Date):string{\r\n var result = moment(date).format('DD/MM/YYYY');\r\n return result;\r\n }\r\n public static mainLoading(active: boolean): void {\r\n store.dispatch('setLoading', active);\r\n }\r\n public static confirm(message: string, vueApp: Vue, okFunc: () => any) {\r\n vueApp.$bvModal.msgBoxConfirm(message, {\r\n title: 'Please Confirm',\r\n size: 'sm',\r\n buttonSize: 'sm',\r\n okVariant: 'danger',\r\n okTitle: 'YES',\r\n cancelTitle: 'NO',\r\n footerClass: 'p-2',\r\n hideHeaderClose: false,\r\n centered: true\r\n }).then(value => {\r\n if (value) okFunc();\r\n })\r\n }\r\n public static confirmWithNoFunction(message: string, vueApp: Vue, okFunc: () => any, noFunc: () => any) {\r\n vueApp.$bvModal.msgBoxConfirm(message, {\r\n title: 'Please Confirm',\r\n size: 'sm',\r\n buttonSize: 'sm',\r\n okVariant: 'danger',\r\n okTitle: 'YES',\r\n cancelTitle: 'NO',\r\n footerClass: 'p-2',\r\n hideHeaderClose: false,\r\n centered: true\r\n }).then(value => {\r\n if (value) \r\n okFunc();\r\n else\r\n noFunc();\r\n })\r\n }\r\n public static msgBoxAlert(message: string, vueApp: Vue, okFunc: () => any) {\r\n vueApp.$bvModal.msgBoxOk(message).then(value => {\r\n if (value) okFunc();\r\n })\r\n }\r\n public static CallAjax(url: string, method: Method, app: any, thenFunc: (response: any) => any): void {\r\n axios({\r\n method: method,\r\n url: General.GetApiUrl(url),\r\n responseType: 'json',\r\n withCredentials: true\r\n }).then(function (response) {\r\n thenFunc(response);\r\n }).catch(error => {\r\n if (app != null)\r\n app.loading = false;\r\n this.HandleError(error, app);\r\n });\r\n }\r\n private static async Impersonate(userNameToImpersonate: string, app: any, active: boolean, router: any) {\r\n let impersonatedBy: any = app.$store.state.user;\r\n let userToImpersonate: string = userNameToImpersonate;\r\n if (active == false) {\r\n userNameToImpersonate = app.$store.getters.impersonatedBy.Username;\r\n let response = await axios.get(General.GetApiUrl('/api/UserProfile/EndImpersonate'), { withCredentials: true })\r\n if (response.data.response == 299) { \r\n let token: string = impersonatedBy.Username;\r\n let user = {\r\n Username: token,\r\n IdCulture: response.data.idCulture\r\n }\r\n let claims = response.data.claims;\r\n let isLogged = true;\r\n let cookieExpiration = response.data.cookieExpiration;\r\n app.$store.dispatch('login', { token, user, claims, isLogged, cookieExpiration });\r\n //app.$router.push('/');\r\n } else {\r\n app.$fire({\r\n //title: \"Info\",\r\n text: response.data.response,\r\n type: \"error\"\r\n })\r\n }\r\n }\r\n else{\r\n let response = await axios.get(General.GetApiUrl('/api/Admin/Impersonate?username=' + userNameToImpersonate), { withCredentials: true })\r\n console.log('vedi', response)\r\n if (response.data.response == 299) { \r\n let token: string = impersonatedBy.Username;\r\n let claims = response.data.claims;\r\n let user = General.BuildUser(token,claims, response.data.idCulture); \r\n let isLogged = true;\r\n let cookieExpiration = response.data.cookieExpiration;\r\n if (active == true) {\r\n app.$store.dispatch('impersonate', { token, user, impersonatedBy, userToImpersonate, claims, isLogged, cookieExpiration });\r\n } else {\r\n app.$store.dispatch('login', { token, user, claims, isLogged, cookieExpiration });\r\n }\r\n \r\n General.GoToHomePage(router);\r\n //app.$router.push('/');\r\n } else {\r\n app.$fire({\r\n //title: \"Info\",\r\n text: response.data.message,\r\n type: \"error\"\r\n })\r\n }\r\n }\r\n \r\n }\r\n public static async StartImpersonate(userNameToImpersonate: string, app: any, router: any) {\r\n await General.Impersonate(userNameToImpersonate, app, true, router);\r\n }\r\n \r\n public static async GetUser() { \r\n let response = await axios({\r\n method: 'get',\r\n url: General.GetApiUrl('/api/userProfile/GetFullUserProfile'),\r\n responseType: 'json',\r\n withCredentials: true\r\n });\r\n return response;\r\n }\r\n\r\n public static async SetUser() { \r\n let responseFromGet = await General.GetUser();\r\n if (responseFromGet.data != null) { \r\n let claims = responseFromGet.data.userAuth.claims;\r\n let userProfile = responseFromGet.data.userProfile;\r\n store.dispatch('setUserInfo', { userProfile,claims });\r\n }\r\n }\r\n public static async loadLanguageAsync(language: string) {\r\n await loadLanguageAsync(language);\r\n }\r\n public static async loadLanguageFromStoreAsync() { \r\n await loadLanguageAsync(store.getters.getUser.IdCulture); \r\n }\r\n public static BuildUser(username:string,claimsList:Array, idCulture: string): IStoreUser{\r\n const showCommunicationClaim:boolean = (claimsList)?claimsList.find(x => x.claimType == \"CanShowCommunications\"):false; \r\n let user: IStoreUser = {\r\n Username: username,\r\n ShowCommunication: (showCommunicationClaim) ? true : false,\r\n IdCulture: idCulture\r\n }\r\n\r\n return user;\r\n }\r\n public static GetLimitDateProcessToView():Date{ \r\n let date = new Date(Date.now());\r\n \r\n date.setHours(date.getHours() - process.env.VUE_APP_PROCESS_MAX_TIME_HH);\r\n \r\n return date;\r\n \r\n }\r\n\r\n public static CommunicationsIsActive(){\r\n if (store.getters.getFatherCountry==null) return false; \r\n if (store.getters.getUserProfile.contractType == 3) return false\r\n return store.getters.getFatherCountry.showCommunication;\r\n }\r\n\r\n \r\n public static GetUserFromStore() {\r\n if (store.getters.isImpersonated) {\r\n return store.getters.userToImpersonate;\r\n } \r\n return store.getters.getUser.Username\r\n }\r\n\r\n public static async GetCountries() { \r\n let response = await axios({\r\n method: 'get',\r\n url: General.GetApiUrl('/api/culture/getcountries?emptyCountriesPolicy=0&type=COUNTRY_AUTHORITY&ok'),\r\n withCredentials: true\r\n });\r\n return response;\r\n }\r\n public static async GetCountriesAll() { \r\n let response = await axios({\r\n method: 'get',\r\n url: General.GetApiUrl('/api/culture/GetCountriesAll?type=COUNTRY_AUTHORITY'),\r\n withCredentials: true\r\n });\r\n return response;\r\n }\r\n\r\n public static async EndImpersonate(app: any) {\r\n await General.Impersonate(null, app, false, null);\r\n General.setHideCommunication(app, false);\r\n General.GoToHP();\r\n \r\n }\r\n\r\n public static GoToHP(){\r\n window.location.href=\"/\";\r\n }\r\n\r\n public static setHideCommunication(app: any, hideCommunicationDuringImpersonation: boolean){\r\n app.$store.dispatch('setIsHidingCommunicationsDuringImpersonation', hideCommunicationDuringImpersonation);\r\n }\r\n\r\n public static async GetDropDownItemList(source: string, excludeDeleted: boolean = false): Promise> {\r\n try{\r\n let apiUrl = '/api/DropDownItem/GetDropDownItemsBySourceCode?codDropDownSource=' + source\r\n apiUrl = excludeDeleted ? apiUrl + '&excludeDeleted=true' : apiUrl;\r\n\r\n let response = await axios.get(\r\n General.GetApiUrl(apiUrl),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n }); \r\n \r\n return response.data; \r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n }\r\n\r\n public static async GetDropdownList(source: string, excludeDeleted: boolean = false): Promise> {\r\n try{\r\n let apiUrl = '/api/DropDownItem/GetDropDownItemsBySourceCode?codDropDownSource=' + source\r\n apiUrl = excludeDeleted ? apiUrl + '&excludeDeleted=true' : apiUrl; \r\n\r\n let response = await axios.get(\r\n General.GetApiUrl(apiUrl),{\r\n responseType: \"json\",\r\n withCredentials: true\r\n });\r\n if(response.data) {\r\n return General.SetOptionsDropDown(response.data);\r\n }\r\n \r\n } catch(ex) {\r\n General.HandleError(ex, this);\r\n return null;\r\n }\r\n }\r\n\r\n public static SetOptionsDropDown(dropDownItems: DropDownItem[], includeEmptyOption: boolean = true) {\r\n let array: Array = [];\r\n \r\n\r\n if(includeEmptyOption) {\r\n let emptyItem = {} as SelectDropDownItem;\r\n emptyItem.value = null;\r\n emptyItem.text = \"\";\r\n emptyItem.identifyCode = null;\r\n emptyItem.deletionDate = null;\r\n \r\n array.push(emptyItem);\r\n }\r\n \r\n dropDownItems.forEach(function (el) {\r\n let newItem = {} as SelectDropDownItem;\r\n newItem.value = el.idDropDownItem;\r\n newItem.identifyCode = el.identifyCode;\r\n newItem.deletionDate = el.deletionDate;\r\n \r\n if(el.itemText.startsWith('{{'))\r\n newItem.text = i18n.t(el.itemText.substring(2, el.itemText.length - 2)) as string;\r\n else\r\n newItem.text = el.itemText;\r\n\r\n if(el.deletionDate != null)\r\n newItem.text = newItem.text + ' ' + i18n.t('GENERIC.DELETED_DROPDOWN_LABEL_SUFFIX')\r\n\r\n array.push(newItem);\r\n });\r\n return array;\r\n }\r\n \r\n\r\n public static getContractTypeDescription(contractType:number): string{\r\n switch (contractType) {\r\n case CONTRACT_TYPE_ENUM.INTERNAL:\r\n return \"Internal\"\r\n case CONTRACT_TYPE_ENUM.EXTERNAL:\r\n return \"External\"\r\n case CONTRACT_TYPE_ENUM.OUTER:\r\n return \"Outer\"\r\n default:\r\n return \"Undefined\";\r\n }\r\n } \r\n \r\n public static async GetEmergencyContactIfExpiredAsync() {\r\n try {\r\n let response: any = await axios({\r\n method: 'GET',\r\n url: General.GetApiUrl('/api/EmergencyContact/CheckIfEmergencyContactIsExpiredAsync'),\r\n withCredentials: true,\r\n responseType: 'json'\r\n })\r\n\r\n store.commit(\"SET_ISEMERGENCYCONTACTEXPIRED\", response.data);\r\n return response.data\r\n\r\n } catch (error) {\r\n General.HandleError(error, this);\r\n return null\r\n }\r\n }\r\n \r\n}","import { SidebarItem } from \"vue-sidebar-menu\";\r\nimport { MenuGroup } from \"./MenuGroup\";\r\n\r\nexport class MenuItem implements SidebarItem { \r\n constructor(title: string, url: string, claim: string, alias: string = null, child: Array = [], icon: string = null, disabled: boolean = false, OpenModal = false) {\r\n this.title = title;\r\n this.href = url;\r\n this.alias = alias;\r\n this.child = child;\r\n this.icon = icon;\r\n this.disabled = disabled\r\n this.Claim = claim;\r\n this.Active = false;\r\n this.OpenModal = OpenModal\r\n };\r\n \r\n public href: string;\r\n public title: string;\r\n public icon: string;\r\n public disabled: boolean;\r\n public child: Array;\r\n public Claim: string;\r\n public Active: boolean;\r\n public OpenModal: boolean;\r\n public alias: string;\r\n\r\n\r\n //public PageTitle(): string {\r\n // return (this.TitleLong == null) ? this.Title : this.TitleLong;\r\n //}\r\n}"],"sourceRoot":""}