{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/thread-loader/dist/cjs.js!/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/settings.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/settings.js","mtime":1694129089876},{"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/thread-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:aW1wb3J0IF9zbGljZWRUb0FycmF5IGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9zbGljZWRUb0FycmF5LmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuaW5jbHVkZXMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5zdHJpbmcuaW5jbHVkZXMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5maW5kLWluZGV4LmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LnRvLXN0cmluZy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL3dlYi5k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XRzLnNwZWNpZXMucHVzaChlLmZhY2V0KTsKICAgICAgICAgICAgICBpZiAoIXN0YXRlLmZhY2V0cy5zcGVjaWVzLmluY2x1ZGVzKGUuZmFjZXQpKSB7CiAgICAgICAgICAgICAgICBzdGF0ZS5mYWNldHMuc3BlY2llcy5wdXNoKGUuZmFjZXQpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICBzdGF0ZS5mYWNldHMuc3BlY2llcyA9IFtdOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAiZ2VuZGVyIjoKICAgICAgICAgICAgaWYgKGUuZmFjZXQudG9Mb3dlckNhc2UoKSAhPT0gInNob3cgYWxsIikgewogICAgICAgICAgICAgIGZhY2V0cy5nZW5kZXIucHVzaChlLmZhY2V0KTsKICAgICAgICAgICAgICBpZiAoIXN0YXRlLmZhY2V0cy5zcGVjaWVzLmluY2x1ZGVzKGUuZmFjZXQpKSBzdGF0ZS5mYWNldHMuZ2VuZGVyLnB1c2goZS5mYWNldCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJvcmdhbiI6CiAgICAgICAgICAgIGlmIChlLmZhY2V0LnRvTG93ZXJDYXNlKCkgIT09ICJzaG93IGFsbCIpIHsKICAgICAgICAgICAgICBmYWNldHMub3JnYW4ucHVzaChlLmZhY2V0KTsKICAgICAgICAgICAgICBpZiAoIXN0YXRlLmZhY2V0cy5zcGVjaWVzLmluY2x1ZGVzKGUuZmFjZXQpKSBzdGF0ZS5mYWNldHMub3JnYW4ucHVzaChlLmZhY2V0KTsKICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgfSk7CiAgICAgIC8vUmVtb3ZlIGl0ZW0gbm90IGluIGxpc3QKICAgICAgZm9yICh2YXIgX2kgPSAwLCBfT2JqZWN0JGVudHJpZXMgPSBPYmplY3QuZW50cmllcyhzdGF0ZS5mYWNldHMpOyBfaSA8IF9PYmplY3QkZW50cmllcy5sZW5ndGg7IF9pKyspIHsKICAgICAgICB2YXIgX09iamVjdCRlbnRyaWVzJF9pID0gX3NsaWNlZFRvQXJyYXkoX09iamVjdCRlbnRyaWVzW19pXSwgMiksCiAgICAgICAgICBrZXkgPSBfT2JqZWN0JGVudHJpZXMkX2lbMF0sCiAgICAgICAgICBhcnIgPSBfT2JqZWN0JGVudHJpZXMkX2lbMV07CiAgICAgICAgdmFyIGkgPSAwOwogICAgICAgIGZvciAoaSA9IGFyci5sZW5ndGggLSAxOyBpID49IDA7IGkgLT0gMSkgewogICAgICAgICAgdmFyIGluZGV4ID0gZmFjZXRzW2tleV0uaW5kZXhPZihhcnJbaV0pOwogICAgICAgICAgaWYgKGluZGV4ID09IC0xKSB7CiAgICAgICAgICAgIGFyci5zcGxpY2UoaSwgMSk7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfSwKICB1cGRhdGVGYWNldExhYmVsczogZnVuY3Rpb24gdXBkYXRlRmFjZXRMYWJlbHMoc3RhdGUsIGZhY2V0TGFiZWxzKSB7CiAgICBzdGF0ZS5mYWNldExhYmVscyA9IGZhY2V0TGFiZWxzOwogIH0KfTsKZXhwb3J0IGRlZmF1bHQgewogIG5hbWVzcGFjZWQ6IHRydWUsCiAgc3RhdGU6IHN0YXRlLAogIGdldHRlcnM6IGdldHRlcnMsCiAgbXV0YXRpb25zOiBtdXRhdGlvbnMKfTs="},{"version":3,"names":["Vue","state","shareLink","undefined","sparcApi","algoliaIndex","algoliaKey","algoliaId","pennsieveApi","flatmapAPI","nlLinkPrefix","rootUrl","facets","species","gender","organ","facetLabels","markers","featuredMarkers","featuredMarkerIdentifiers","featuredMarkerDois","featuredMarkerSpecies","featuredDatasetIdentifiers","getters","isFeaturedMarkerIdentifier","identifier","includes","featuredMarkerDoi","index","findIndex","element","mutations","updateShareLink","newLink","updateSparcAPI","api","updateAlgoliaIndex","updateAlgoliaKey","updateAlgoliaId","updatePennsieveApi","updateFlatmapAPI","updateNLLinkPrefix","updateRootUrl","updateMarkers","updateFeatured","datasetIdentifiers","Array","length","updateFeaturedMarker","payload","set","marker","doi","updateFeaturedMarkerIdentifier","markerIdentifier","resetFeaturedMarkerIdentifier","updateFacets","facetsIn","forEach","e","term","toLowerCase","facet","push","_i","_Object$entries","Object","entries","_Object$entries$_i","_slicedToArray","key","arr","i","indexOf","splice","updateFacetLabels","namespaced"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/settings.js"],"sourcesContent":["import Vue from \"vue\";\n\n/* eslint-disable no-alert, no-console */\nconst state = () => ({\n shareLink: undefined,\n sparcApi: undefined,\n algoliaIndex: \"k-core_dev_published_time_desc\",\n algoliaKey: undefined,\n algoliaId: undefined,\n pennsieveApi: undefined,\n flatmapAPI: undefined,\n nlLinkPrefix: undefined,\n rootUrl: undefined,\n facets: { species: [], gender: [], organ: [] },\n facetLabels: [],\n markers: [],\n featuredMarkers: [],\n featuredMarkerIdentifiers: [],\n featuredMarkerDois: [],\n featuredMarkerSpecies: [],\n featuredDatasetIdentifiers: [],\n});\n\nconst getters = {\n isFeaturedMarkerIdentifier: state => identifier => {\n return state.featuredMarkerIdentifiers.includes(identifier);\n },\n featuredMarkerDoi: state => identifier => {\n const index = state.featuredMarkerIdentifiers.findIndex(\n element => element == identifier\n );\n return state.featuredMarkerDois[index];\n },\n featuredMarkerSpecies: state => index => {\n return state.featuredMarkerSpecies[index];\n }\n};\n\nconst mutations = {\n updateShareLink(state, newLink) {\n state.shareLink = newLink;\n },\n updateSparcAPI(state, api) {\n state.sparcApi = api;\n },\n updateAlgoliaIndex(state, algoliaIndex) {\n state.algoliaIndex = algoliaIndex;\n },\n updateAlgoliaKey(state, algoliaKey) {\n state.algoliaKey = algoliaKey;\n },\n updateAlgoliaId(state, algoliaId) {\n state.algoliaId = algoliaId;\n },\n updatePennsieveApi(state, pennsieveApi) {\n state.pennsieveApi = pennsieveApi;\n },\n updateFlatmapAPI(state, flatmapAPI) {\n state.flatmapAPI = flatmapAPI;\n },\n updateNLLinkPrefix(state, nlLinkPrefix) {\n state.nlLinkPrefix = nlLinkPrefix;\n },\n updateRootUrl(state, rootUrl) {\n state.rootUrl = rootUrl;\n },\n updateMarkers(state, markers) {\n state.markers = markers;\n },\n updateFeatured(state, datasetIdentifiers) {\n state.featuredMarkerIdentifiers = new Array(datasetIdentifiers.length);\n state.featuredMarkers = new Array(datasetIdentifiers.length);\n state.featuredMarkerDois = new Array(datasetIdentifiers.length);\n state.featuredMarkerSpecies = new Array(datasetIdentifiers.length);\n state.featuredDatasetIdentifiers = datasetIdentifiers;\n },\n updateFeaturedMarker(state, payload) {\n const index = state.featuredDatasetIdentifiers.findIndex(\n element => element == payload.identifier\n );\n Vue.set(state.featuredMarkers, index, payload.marker);\n state.featuredMarkerDois[index] = payload.doi;\n state.featuredMarkerSpecies[index] = payload.species;\n },\n updateFeaturedMarkerIdentifier(state, payload) {\n state.featuredMarkerIdentifiers[payload.index] = payload.markerIdentifier;\n },\n resetFeaturedMarkerIdentifier(state) {\n state.featuredMarkerIdentifiers = new Array(\n state.featuredDatasetIdentifiers.length\n );\n },\n\n updateFacets(state, facetsIn) {\n // The following codes aim to minimise changes on the array\n let facets = { species: [], gender: [], organ: [] };\n //First add missing item\n if (facetsIn) {\n facetsIn.forEach(e => {\n switch (e.term.toLowerCase()) {\n case \"species\":\n if (e.facet.toLowerCase() !== \"show all\") {\n facets.species.push(e.facet);\n if (!state.facets.species.includes(e.facet)) {\n state.facets.species.push(e.facet);\n }\n } else {\n state.facets.species = [];\n }\n break;\n case \"gender\":\n if (e.facet.toLowerCase() !== \"show all\") {\n facets.gender.push(e.facet);\n if (!state.facets.species.includes(e.facet))\n state.facets.gender.push(e.facet);\n }\n break;\n case \"organ\":\n if (e.facet.toLowerCase() !== \"show all\") {\n facets.organ.push(e.facet);\n if (!state.facets.species.includes(e.facet))\n state.facets.organ.push(e.facet);\n }\n break;\n default:\n break;\n }\n });\n //Remove item not in list\n for (const [key, arr] of Object.entries(state.facets)) {\n let i = 0;\n for (i = arr.length - 1; i >= 0; i -= 1) {\n const index = facets[key].indexOf(arr[i]);\n if (index == -1) {\n arr.splice(i, 1);\n }\n }\n }\n }\n },\n updateFacetLabels(state, facetLabels) {\n state.facetLabels = facetLabels;\n }\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations,\n};\n"],"mappings":";;;;;;;;;AAAA,OAAOA,GAAG,MAAM,KAAK;;AAErB;AACA,IAAMC,KAAK,GAAG,SAARA,KAAKA,CAAA;EAAA,OAAU;IACnBC,SAAS,EAAEC,SAAS;IACpBC,QAAQ,EAAED,SAAS;IACnBE,YAAY,EAAE,gCAAgC;IAC9CC,UAAU,EAAEH,SAAS;IACrBI,SAAS,EAAEJ,SAAS;IACpBK,YAAY,EAAEL,SAAS;IACvBM,UAAU,EAAEN,SAAS;IACrBO,YAAY,EAAEP,SAAS;IACvBQ,OAAO,EAAER,SAAS;IAClBS,MAAM,EAAE;MAAEC,OAAO,EAAE,EAAE;MAAEC,MAAM,EAAE,EAAE;MAAEC,KAAK,EAAE;IAAG,CAAC;IAC9CC,WAAW,EAAE,EAAE;IACfC,OAAO,EAAE,EAAE;IACXC,eAAe,EAAE,EAAE;IACnBC,yBAAyB,EAAE,EAAE;IAC7BC,kBAAkB,EAAE,EAAE;IACtBC,qBAAqB,EAAE,EAAE;IACzBC,0BAA0B,EAAE;EAC9B,CAAC;AAAA,CAAC;AAEF,IAAMC,OAAO,GAAG;EACdC,0BAA0B,EAAE,SAAAA,2BAAAvB,KAAK;IAAA,OAAI,UAAAwB,UAAU,EAAI;MACjD,OAAOxB,KAAK,CAACkB,yBAAyB,CAACO,QAAQ,CAACD,UAAU,CAAC;IAC7D,CAAC;EAAA;EACDE,iBAAiB,EAAE,SAAAA,kBAAA1B,KAAK;IAAA,OA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