{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/entries.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/entries.js","mtime":1697426030200},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LnRvLXN0cmluZy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL3dlYi5kb20tY29sbGVjdGlvbnMuaXRlcmF0b3IuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5wdXNoLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuc3BsaWNlLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuZmluZC5qcyI7CmltcG9ydCBWdWUgZnJvbSAidnVlIjsKaW1wb3J0IHsgaW5pdGlhbERlZmF1bHRTdGF0ZSB9IGZyb20gIi4uLy4uL2NvbXBvbmVudHMvc2NyaXB0cy91dGlsaXRpZXMuanMiOwoKLyogZXNsaW50LWRpc2FibGUgbm8tYWxlcnQsIG5vLWNvbnNvbGUgKi8KdmFyIHN0YXRlID0gZnVuY3Rpb24gc3RhdGUoKSB7CiAgcmV0dXJuIGluaXRpYWxEZWZhdWx0U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1VybDsKICAgIC8vIFVwZGF0ZSB0aGUgc2NhZmZvbGQgd2l0aCBhIHZpZXcgdXJsCiAgICB2YXIgZW50cnkgPSBzdGF0ZS5lbnRyaWVzLmZpbmQoZnVuY3Rpb24gKGVudHJ5KSB7CiAgICAgIHJldHVybiBlbnRyeS5pZCA9PT0gaWQ7CiAgICB9KTsKICAgIFZ1ZS5zZXQoZW50cnksICd2aWV3VXJsJywgdmlld1VybCk7CiAgICBlbnRyeS52aWV3VXJsID0gdmlld1VybDsKICB9Cn07CmV4cG9ydCBkZWZhdWx0IHsKICBuYW1lc3BhY2VkOiB0cnVlLAogIHN0YXRlOiBzdGF0ZSwKICBnZXR0ZXJzOiBnZXR0ZXJzLAogIG11dGF0aW9uczogbXV0YXRpb25zCn07"},{"version":3,"names":["Vue","initialDefaultState","state","getters","findIndexOfId","id","i","entries","length","mutations","addNewEntry","entry","push","destroyEntry","index","splice","setAll","newEntries","Object","assign","updateViewForEntry","_ref","viewUrl","find","set","namespaced"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/entries.js"],"sourcesContent":["import Vue from \"vue\";\nimport { initialDefaultState } from \"../../components/scripts/utilities.js\";\n\n/* eslint-disable no-alert, no-console */\nconst state = () => ( initialDefaultState() );\n\nconst getters = {\n state: state => () => {\n return state;\n },\n findIndexOfId: state => id => {\n for (let i = 0; i < state.entries.length; i++) {\n if (state.entries[i].id == id) {\n return i;\n }\n }\n return -1;\n }\n};\n\nconst mutations = {\n addNewEntry(state, entry) {\n state.entries.push(entry);\n },\n destroyEntry(state, index) {\n if (index > -1) {\n state.entries.splice(index, 1);\n }\n },\n setAll(state, newEntries) {\n state.entries = [];\n Object.assign(state.entries, newEntries);\n },\n updateViewForEntry(state, {id, viewUrl}) {\n // Update the scaffold with a view url\n const entry = state.entries.find(entry => entry.id === id);\n Vue.set(entry, 'viewUrl', viewUrl);\n entry.viewUrl = viewUrl;\n },\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n m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