{"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/components/scripts/utilities.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/scripts/utilities.js","mtime":1685653051395},{"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:dmFyIF9yZWdlbmVyYXRvclJ1bnRpbWUgPSByZXF1aXJlKCIvaG9tZS9jbWlzcy9KZW5raW5zL3dvcmtzcGFjZS9tYXBpbnRlZ3JhdGVkdnVlci9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9yZWdlbmVyYXRvclJ1bnRpbWUuanMiKS5kZWZhdWx0Owp2YXIgX2FzeW5jVG9HZW5lcmF0b3IgPSByZXF1aXJlKCIvaG9tZS9jbWlzcy9KZW5raW5zL3dvcmtzcGFjZS9tYXBpbnRlZ3JhdGVkdnVlci9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9hc3luY1RvR2VuZXJhdG9yLmpzIikuZGVmYXVsdDsKcmVxdWlyZSgiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC50by1zdHJpbmcuanMiKTsKcmVxdWlyZSgiY29yZS1qcy9tb2R1bGVzL3dlYi5kb20tY29sbGVjdGlvbnMuaXRlcmF0b3IuanMiKTsKcmVxdWlyZSgiY29yZS1qcy9tb2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oX2NvbnRleHQucHJldiA9IF9jb250ZXh0Lm5leHQpIHsKICAgICAgICBjYXNlIDA6CiAgICAgICAgICBzdGF0ZSA9IGluaXRpYWxEZWZhdWx0U3RhdGUoKTsKICAgICAgICAgIGlmICghKHR5cGUgPT09ICJGQyIpKSB7CiAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSA4OwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIH0KICAgICAgICAgIHN0YXRlLm1haW5UYWJOYW1lID0gIkZsYXRtYXAiOwogICAgICAgICAgc3RhdGUuZW50cmllc1swXS5yZXNvdXJjZSA9ICJGdW5jdGlvbmFsQ29ubmVjdGl2aXR5IjsKICAgICAgICAgIHN0YXRlLmVudHJpZXNbMF0udHlwZSA9ICJGbGF0bWFwIjsKICAgICAgICAgIHN0YXRlLmVudHJpZXNbMF0ubGFiZWwgPSAiRnVuY3Rpb25hbCI7CiAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTc7CiAgICAgICAgICBicmVhazsKICAgICAgICBjYXNlIDg6CiAgICAgICAgICBpZiAoISh0eXBlID09PSAiV2hvbGVCb2R5IikpIHsKICAgICAgICAgICAgX2NvbnRleHQubmV4dCA9IDE3OwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIH0KICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAxMTsKICAgICAgICAgIHJldHVybiBnZXRCb2R5U2NhZmZvbGQoc3BhcmNBcGksICJodW1hbiIpOwogICAgICAgIGNhc2UgMTE6CiAgICAgICAgICB1cmwgPSBfY29udGV4dC5zZW50OwogICAgICAgICAgc3RhdGUubWFpblRhYk5hbWUgPSAiU2NhZmZvbGQiOwogICAgICAgICAgc3RhdGUuZW50cmllc1swXS5yZXNvdXJjZSA9IHVybDsKICAgICAgICAgIHN0YXRlLmVudHJpZXNbMF0udHlwZSA9ICJTY2FmZm9sZCI7CiAgICAgICAgICBzdGF0ZS5lbnRyaWVzWzBdLmxhYmVsID0gIkh1bWFuIjsKICAgICAgICAg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yKSB7CiAgICAgIHdoaWxlICgxKSBzd2l0Y2ggKF9jb250ZXh0Mi5wcmV2ID0gX2NvbnRleHQyLm5leHQpIHsKICAgICAgICBjYXNlIDA6CiAgICAgICAgICBfY29udGV4dDIubmV4dCA9IDI7CiAgICAgICAgICByZXR1cm4gZmV0Y2goIiIuY29uY2F0KHNwYXJjQXBpLCAiZ2V0X2JvZHlfc2NhZmZvbGRfaW5mby8iKS5jb25jYXQoc3BlY2llcykpOwogICAgICAgIGNhc2UgMjoKICAgICAgICAgIHJlc3BvbnNlID0gX2NvbnRleHQyLnNlbnQ7CiAgICAgICAgICBpZiAoIXJlc3BvbnNlLm9rKSB7CiAgICAgICAgICAgIF9jb250ZXh0Mi5uZXh0ID0gMTE7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgfQogICAgICAgICAgX2NvbnRleHQyLm5leHQgPSA2OwogICAgICAgICAgcmV0dXJuIHJlc3BvbnNlLmpzb24oKTsKICAgICAgICBjYXNlIDY6CiAgICAgICAgICBkYXRhID0gX2NvbnRleHQyLnNlbnQ7CiAgICAgICAgICAvL0NvbnN0cnVjdCB0aGUgdXJsIGVuZHBvaW50IGZvciBkb3dubG9hZGluZyB0aGUgc2NhZmZvbGQKICAgICAgICAgIGJ1Y2tldCA9IGV4dHJhY3RTM0J1Y2tldE5hbWUoZGF0YS5zM3VyaSk7CiAgICAgICAgICByZXR1cm4gX2NvbnRleHQyLmFicnVwdCgicmV0dXJuIiwgIiIuY29uY2F0KHNwYXJjQXBpLCAiczMtcmVzb3VyY2UvIikuY29uY2F0KGRhdGEuaWQsICIvIikuY29uY2F0KGRhdGEudmVyc2lvbiwgIi9maWxlcy8iKS5jb25jYXQoZGF0YS5wYXRoLCAiP3MzQnVja2V0TmFtZT0iKS5jb25jYXQoYnVja2V0KSk7CiAgICAgICAgY2FzZSAxMToKICAgICAgICAgIGlmICghKHNwZWNpZXMgPT09ICJyYXQiKSkgewogICAgICAgICAgICBfY29udGV4dDIubmV4dCA9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XVsdFN0YXRlID0gaW5pdGlhbERlZmF1bHRTdGF0ZTsKZXhwb3J0cy5nZXRCb2R5U2NhZmZvbGQgPSBnZXRCb2R5U2NhZmZvbGQ7"},{"version":3,"names":["initialDefaultState","mainTabName","zIndex","showDialogIcons","activeDockedId","currentCount","entries","resource","type","mode","id","state","undefined","label","discoverId","sideBarVisibility","search","startUp","initialState","_ref","_asyncToGenerator","_regeneratorRuntime","mark","_callee","sparcApi","url","wrap","_callee$","_context","prev","next","getBodyScaffold","sent","isBodyScaffold","abrupt","stop","_x","_x2","apply","arguments","capitalise","term","charAt","toUpperCase","slice","availableSpecies","taxo","biologicalSex","iconClass","displayLatestChanges","displayWarning","findSpeciesKey","condition","list","key","extractS3BucketName","uri","substring","split","_ref2","_callee2","species","response","data","bucket","_callee2$","_context2","fetch","concat","ok","json","s3uri","version","path","_x3","_x4","exports"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/components/scripts/utilities.js"],"sourcesContent":["const initialDefaultState = () => {\n return {\n mainTabName: \"Flatmap\",\n zIndex: 1,\n showDialogIcons: false,\n activeDockedId: 1,\n currentCount: 1,\n entries: [\n {\n resource: \"Rat\",\n type: \"MultiFlatmap\",\n zIndex: 1,\n mode: \"main\",\n id: 1,\n state: undefined,\n label: \"\",\n discoverId: undefined\n }\n ],\n sideBarVisibility: true,\n search: '',\n startUp: true\n };\n}\n\n/*\n * Initial state for the split flow\n */\nconst initialState = async (type, sparcApi) => {\n const state = initialDefaultState();\n if (type === \"FC\") {\n state.mainTabName = \"Flatmap\";\n state.entries[0].resource = \"FunctionalConnectivity\";\n state.entries[0].type = \"Flatmap\";\n state.entries[0].label = \"Functional\";\n } else if (type === \"WholeBody\") {\n const url = await getBodyScaffold(sparcApi, \"human\");\n state.mainTabName = \"Scaffold\";\n state.entries[0].resource = url;\n state.entries[0].type = \"Scaffold\";\n state.entries[0].label = \"Human\";\n state.entries[0].isBodyScaffold = true;\n }\n\n return state;\n}\n\nconst capitalise = term => {\n if (term)\n return term.charAt(0).toUpperCase() + term.slice(1);\n return term;\n};\n\n/*\n * Provide a list of available species for the flatmap\n */\nconst availableSpecies = () => {\n return {\n \"Human Female\": { taxo: \"NCBITaxon:9606\", biologicalSex: \"PATO:0000383\", iconClass: \"mapicon-icon_human\", displayLatestChanges: true, displayWarning: true },\n \"Human Male\": { taxo: \"NCBITaxon:9606\", biologicalSex: \"PATO:0000384\", iconClass: \"mapicon-icon_human\", displayLatestChanges: true, displayWarning: true },\n \"Rat\": { taxo: \"NCBITaxon:10114\", iconClass: \"mapicon-icon_rat\", displayLatestChanges: true, displayWarning: true },\n \"Mouse\": { taxo: \"NCBITaxon:10090\", iconClass: \"mapicon-icon_mouse\", displayLatestChanges: true, displayWarning: true },\n \"Pig\": { taxo: \"NCBITaxon:9823\", iconClass: \"mapicon-icon_pig\", displayLatestChanges: true, displayWarning: true },\n \"Cat\": { taxo: \"NCBITaxon:9685\", iconClass: \"mapicon-icon_cat\", displayLatestChanges: true, displayWarning: true },\n }\n}\n\n/*\n * Look for the key in availableSpecies with the provided condition\n */\nconst findSpeciesKey = condition => {\n if (condition) {\n const list = availableSpecies();\n for (let key in list) {\n if (condition.taxo === list[key].taxo) {\n if (condition.biologicalSex && list[key].biologicalSex) {\n if (condition.biologicalSex === list[key].biologicalSex)\n return key;\n } else {\n return key;\n }\n }\n }\n }\n return \"\";\n}\n\nconst extractS3BucketName = uri => {\n if (uri) {\n const substring = uri.split(\"//\")[1]\n if (substring) {\n return substring.split(\"/\")[0]\n }\n }\n return undefined\n}\n\nconst getBodyScaffold = async (sparcApi, species) => {\n //Get body scaffold information\n const response = await fetch(`${sparcApi}get_body_scaffold_info/${species}`);\n if (response.ok) {\n const data = await response.json();\n //Construct the url endpoint for downloading the scaffold\n const bucket = extractS3BucketName(data.s3uri);\n return `${sparcApi}s3-resource/${data.id}/${data.version}/files/${data.path}?s3BucketName=${bucket}`;\n } else {\n //Use default url if data is not found for any reason\n if (species === \"rat\") {\n return \"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/31-May-2021/ratBody/ratBody_syncmap_metadata.json\";\n } else if (species === \"human\") {\n return \"https://mapcore-bucket1.s3.us-west-2.amazonaws.com/WholeBody/27-4-23-human/human_body_metadata.json\";\n }\n }\n}\n\nexports.availableSpecies = availableSpecies;\nexports.capitalise = capitalise;\nexports.findSpeciesKey = findSpeciesKey;\nexports.initialState = initialState;\nexports.initialDefaultState = initialDefaultState;\nexports.getBodyScaffold = getBodyScaffold;"],"mappings":";;;;;;AAAA,IAAMA,mBAAmB,GAAG,SAAtBA,mBAAmBA,CAAA,EAAS;EAChC,OAAO;IACLC,WAAW,EAAE,SAAS;IACtBC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAE,KAAK;IACtBC,cAAc,EAAE,CAAC;IACjBC,YAAY,EAAE,CAAC;IACfC,OAAO,EAAE,CACP;MACEC,QAAQ,EAAE,KAAK;MACfC,IAAI,EAAE,cAAc;MACpBN,MAAM,EAAE,CAAC;MACTO,IAAI,EAAE,MAAM;MACZC,EAAE,EAAE,CAAC;MACLC,KAAK,EAAEC,SAAS;MAChBC,KAAK,EAAE,EAAE;MACTC,UAAU,EAAEF;IACd,CAAC,CACF;IACDG,iBAAiB,EAAE,IAAI;IACvBC,MAAM,EAAE,EAAE;IACVC,OAAO,EAAE;EACX,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA,IAAMC,YAAY;EAAA,IAAAC,IAAA,GAAAC,iBAAA,eAAAC,mBAAA,GAAAC,IAAA,CAAG,SAAAC,QAAOf,IAAI,EAAEgB,QAAQ;IAAA,IAAAb,KAAA,EAAAc,GAAA;IAAA,OAAAJ,mBAAA,GAAAK,IAAA,UAAAC,SAAAC,QAAA;MAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;QAAA;UAClCnB,KAAK,GAAGX,mBAAmB,EAAE;UAAA,MAC/BQ,IAAI,KAAK,IAAI;YAAAoB,QAAA,CAAAE,IAAA;Y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