{"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/mixins/ContentMixin.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/mixins/ContentMixin.js","mtime":1691447163859},{"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:aW1wb3J0IF9yZWdlbmVyYXRvclJ1bnRpbWUgZnJvbSAiL2hvbWUvY21pc3MvSmVua2lucy93b3Jrc3BhY2UvbWFwaW50ZWdyYXRlZHZ1ZXIvbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvZXNtL3JlZ2VuZXJhdG9yUnVudGltZS5qcyI7CmltcG9ydCBfYXN5bmNUb0dlbmVyYXRvciBmcm9tICIvaG9tZS9jbWlzcy9KZW5raW5zL3dvcmtzcGFjZS9tYXBpbnRlZ3JhdGVkdnVlci9ub2RlX21vZHVsZXMvQGJhYmVsL3J1bnRpbWUvaGVscGVycy9lc20vYXN5bmNUb0dlbmVyYXRvci5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmFycmF5LmZpbHRlci5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC50by1zdHJpbmcuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5yZWdleHAuZXhlYy5qcyI7CmltcG9ydCAi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Y3RlZCI7CiAgICAgICAgICBpZiAocmVzb3VyY2UuZmVhdHVyZS50eXBlID09ICJtYXJrZXIiKSB7CiAgICAgICAgICAgIHZhciBsYWJlbCA9IHRoaXMuaWROYW1lUGFpcltyZXNvdXJjZS5mZWF0dXJlLm1vZGVsc107CiAgICAgICAgICAgIHZhciBoYXJkY29kZWRBbm5vdGF0aW9uID0gbWFya2VyWm9vbUxldmVscy5maWx0ZXIoZnVuY3Rpb24gKG16KSB7CiAgICAgICAgICAgICAgcmV0dXJuIG16LmlkID09PSByZXNvdXJjZS5mZWF0dXJlLm1vZGVsczsKICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIGlmIChzdG9yZS5nZXR0ZXJzWyJzZXR0aW5ncy9pc0ZlYXR1cmVkTWFya2VySWRlbnRpZmllciJdKHJlc291cmNlLmZlYXR1cmUuaWQpKSB7CiAgICAgICAgICAgICAgLy8gSXQgaXMgYSBmZWF0dXJlZCBkYXRhc2V0IHNlYXJjaCBmb3IgRE9JLgogICAgICAgICAgICAgIHJldHVybmVkQWN0aW9uID0gewogICAgICAgICAgICAgICAgdHlwZTogIlNlYXJjaCIsCiAgICAgICAgICAgICAgICB0ZXJtOiBzdG9yZS5nZXR0ZXJzWyJzZXR0aW5ncy9mZWF0dXJlZE1hcmtlckRvaSJdKHJlc291cmNlLmZlYXR1cmUuaWQpCiAgICAgICAgICAgICAgfTsKICAgICAgICAgICAgfSBlbHNlIGlmIChoYXJkY29kZWRBbm5vdGF0aW9uLmZpbHRlcihmdW5jdGlvbiAoaCkgewogICAgICAgICAgICAgIHJldHVybiBoLmtleXdvcmQ7CiAgICAgICAgICAgIH0pLmxlbmd0aCA+IDApIHsKICAgICAgICAgICAgICAvLyBpZiBpdCBtYXRjaGVzIG91ciBzdG9yZWQga2V5d29yZHMsIGl0IGlzIGEga2V5d29yZCBzZWFyY2gKICAgICAgICAgICAgICAvLyBLZXl3b3JkIHNlYXJjaGVzIGRvIG5vdCBjb250YWluIGxhYmVscywgc28gc3dpdGNoIHRvIGtleXdvcmQgc2VhcmNoIGlmIG5vIGxhYmVsIGV4aXN0cwogICAgICAgICAgICAgIHJldHVybmVkQWN0aW9uID0gewogICAgICAgICAgICAgICAgdHlwZTogIlNlYXJjaCIsCiAgICAgICAgICAgICAgICB0ZXJtOiAiaHR0cDovL3B1cmwub2JvbGlicmFyeS5vcmcvb2JvLyIgKyByZXNvdXJjZS5mZWF0dXJlLm1vZGVscy5yZXBsYWNlKCI6IiwgIl8iKQogICAgICAgICAgICAgIH07CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgLy8gRmFjZXQgc2VhcmNoIG9uIGFuYXRvbXkgaWYgaXQgaXMgbm90IGEga2V5d29yZCBzZWFyY2gKICAgICAgICAgICAgICByZXR1cm5lZEFjdGlvbiA9IHsKICAgICAgICAgICAgICAgIHR5cGU6ICJGYWNldCIsCiAgICAgICAgICAgICAgICBmYWNldDogbGFiZWwsCiAgICAgICAgICAgICAgICBmYWNldFByb3BQYXRoOiAiYW5hdG9teS5vcmdhbi5uYW1lIiwKICAgICAgICAgICAgICAgIHRlcm06ICJBbmF0b21pY2FsIHN0cnVjdHVyZSIKICAgICAgICAgICAgICB9OwogICAgICAgICAgICB9CiAgICAgICAgICAgIGZpcmVSZXNvdXJjZVNlbGVjdGVkID0gdHJ1ZTsKICAgICAgICAgICAgaWYgKHR5cGUgPT0gIk11bHRpRmxhdG1hcCIpIHsKICAgICAgICAgICAgICB2YXIgZmxhdG1hcCA9IHRoaXMuJHJlZnMubXVsdGlmbGF0bWFwLmdldEN1cnJlbnRGbGF0bWFwKCkubWFwSW1wOwogICAgICAgICAgICAgIGZsYXRtYXAuY2xlYXJTZWFyY2hSZXN1bHRzKCk7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0gZWxzZSBpZiAocmVzb3VyY2UuZmVhdHVyZS50eXBlID09ICJmZWF0dXJlIikgewogICAgICAgICAgICAvLyBEbyBubyBvcGVuIHNjYWZmb2xkIGluIHN5b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ZW5lcmF0b3IoIC8qI19fUFVSRV9fKi9fcmVnZW5lcmF0b3JSdW50aW1lKCkubWFyayhmdW5jdGlvbiBfY2FsbGVlKGRhdGEpIHsKICAgICAgICB2YXIgbmFtZSwgaWQsIG9iamVjdHMsIG1hdGNoZWQsIF9tYXRjaGVkOwogICAgICAgIHJldHVybiBfcmVnZW5lcmF0b3JSdW50aW1lKCkud3JhcChmdW5jdGlvbiBfY2FsbGVlJChfY29udGV4dCkgewogICAgICAgICAgd2hpbGUgKDEpIHN3aXRjaCAoX2NvbnRleHQucHJldiA9IF9jb250ZXh0Lm5leHQpIHsKICAgICAgICAgICAgY2FzZSAwOgogICAgICAgICAgICAgIG5hbWUgPSBkYXRhLmludGVybmFsTmFtZTsKICAgICAgICAgICAgICBpZiAobmFtZSA9PT0gdW5kZWZpbmVkICYmIGRhdGEucmVzb3VyY2UpIHsKICAgICAgICAgICAgICAgIG5hbWUgPSBkYXRhLnJlc291cmNlLmxhYmVsOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBpZCA9IHVuZGVmaW5lZDsKICAgICAgICAgICAgICBpZiAoZGF0YS5yZXNvdXJjZSAmJiBkYXRhLnJlc291cmNlLnJlc291cmNlKSB7CiAgICAgICAgICAgICAgICBpZCA9IGRhdGEucmVzb3VyY2UucmVzb3VyY2VbMF07CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIGlmICghKHRoaXMuZW50cnkudHlwZSA9PT0gIlNjYWZmb2xkIikpIHsKICAgICAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAxODsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBvYmplY3RzID0gdGhpcy4kcmVmcy5zY2FmZm9sZC5maW5kT2JqZWN0c1dpdGhHcm91cE5hbWUobmFtZSk7IC8vIElmIGEgcmVnaW9uIGlzIG5vdCBmb3VuZCB1c2UgYSBoYXJkY29kZWQgbGlzdCB0byBkZXRlcm1pbmUKICAgICAgICAgICAgICAvLyBpdHMgcGFyZW50cyByZWdpb24gZmlyc3QKICAgICAgICAgICAgICBpZiAoIShvYmplY3RzLmxlbmd0aCA9PT0gMCkpIHsKICAgICAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAxNjsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBpZiAoIShkYXRhLnJlc291cmNlICYmIGRhdGEucmVzb3VyY2UuZmVhdHVyZSkpIHsKICAgICAgICAgICAgICAgIF9jb250ZXh0Lm5leHQgPSAxMTsKICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBtYXRjaGVkID0gZ2V0TmVydmVOYW1lcyhkYXRhLnJlc291cmNlLmZlYXR1cmUubW9kZWxzKTsKICAgICAgICAgICAgICBpZiAoIShtYXRjaGVkLmxlbmd0aCA+IDApKSB7CiAgICAgICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTE7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgcmV0dXJuIF9jb250ZXh0LmFicnVwdCgicmV0dXJuIiwgbWF0Y2hlZCk7CiAgICAgICAgICAgIGNhc2UgMTE6CiAgICAgICAgICAgICAgbWF0Y2hlZCA9IGdldFBhcmVudHNSZWdpb24obmFtZSk7CiAgICAgICAgICAgICAgaWYgKCFtYXRjaGVkKSB7CiAgICAgICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTQ7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgcmV0dXJuIF9jb250ZXh0LmFicnVwdCgicmV0dXJuIiwgbWF0Y2hlZCk7CiAgICAgICAgICAgIGNhc2UgMTQ6CiAgICAgICAgICAgICAgaWYgKCEoaWQgJiYgZGF0YS5ldmVudFR5cGUgPT09ICJzZWxlY3RlZCIpKSB7CiAgICAgICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTY7CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgcmV0dXJuIF9jb250ZXh0LmFicnVwdCgicmV0dXJuIiwgZmV0Y2goIiIuY29uY2F0KHRoaXMuYXBpTG9jYXRpb24sICJnZXQtcmVsYXRlZC10ZXJtcy8iKS5jb25jYXQoaWQpKS50aGVuKGZ1bmN0aW9uIChyZXNwb25zZSkgewogICAgICAgICAgICAgICAgcmV0dXJuIHJlc3BvbnNlLmpzb24oKTsKICAgICAgICAgICAgICB9KS50aGVuKGZ1bmN0aW9uIChkYXRhKSB7CiAgICAgICAgICAgICAgICBpZiAoZGF0YS51YmVyb24uYXJyYXkubGVuZ3RoID4gMCkgewogICAgICAgICAgICAgICAgICBuYW1lID0gZGF0YS51YmVyb24uYXJyYXlbMF0ubmFtZS5jaGFyQXQoMCkudG9VcHBlckNhc2UoKSArIGRhdGEudWJlcm9uLmFycmF5WzBdLm5hbWUuc2xpY2UoMSk7CiAgICAgICAgICAgICAgICAgIGlkID0gZGF0YS51YmVyb24uYXJyYXlbMF0uaWQudG9VcHBlckNhc2UoKTsKICAgICAgICAgICAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgICAgICAgICBpZDogaWQsCiAgICAgICAgICAgICAgICAgICAgbmFtZTogbmFtZQogICAgICAgICAgICAgICAgICB9OwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0pKTsKICAgICAgICAgICAgY2FzZSAxNjoKICAgICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMTk7CiAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIGNhc2UgMTg6CiAgICAgICAgICAgICAgaWYgKHRoaXMuZW50cnkudHlwZSA9PT0gIk11bHRpRmxhdG1hcCIpIHsKICAgICAgICAgICAgICAgIGlmIChuYW1lID09PSAiQmxhZGRlciIpIHsKICAgICAgICAgICAgICAgICAgbmFtZSA9ICJVcmluYXJ5IEJsYWRkZXIiOwogICAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgICAgX21hdGNoZWQgPSBnZXROZXJ2ZU5hbWVzKG5hbWUpOwogICAgICAgICAgICAgICAgICBpZiAoX21hdGNoZWQubGVuZ3RoID4gMCkgbmFtZSA9IF9tYXRjaGVkWzBdOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIH0KICAgICAgICAgICAgY2FzZSAxOToKICAgICAgICAgICAgICByZXR1cm4gX2NvbnRleHQuYWJydXB0KCJyZXR1cm4iLCB7CiAgICAgICAgICAgICAgICBpZDogaWQsCiAgICAgICAgICAgICAgICBuYW1lOiBuYW1lCiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIGNhc2UgMjA6CiAgICAgICAgICAgIGNhc2UgImVuZCI6CiAgICAgICAgICAgICAgcmV0dXJuIF9jb250ZXh0LnN0b3AoKTsKICAgICAgICAgIH0KICAgICAgICB9LCBfY2FsbGVlLCB0aGlzKTsKICAgICAgfSkpOwogICAgICBmdW5jdGlvbiBnZXROYW1lQW5kSWRGcm9tU3luY0RhdGEoX3gpIHsKICAgICAgICByZXR1cm4gX2dldE5hbWVBbmRJZEZyb21TeW5jRGF0YS5hcHBseSh0aGlzLCBhcmd1bWVudHMpOwogICAgICB9CiAgICAgIHJldHVybiBnZXROYW1lQW5kSWRGcm9tU3luY0RhdGE7CiAgICB9KCksCiAgICBnZXREYXRhc2V0QW5hdG9teUluZm86IGZ1bmN0aW9uIGdldERhdGFzZXRBbmF0b215SW5mbyhpZGVudGlmaWVyKSB7CiAgICAgIGZldGNoKCIiLmNvbmNhdCh0aGlzLmFwaUxvY2F0aW9uLCAiZGF0YXNldF9pbmZvL2FuYXRvbXk/aWRlbnRpZmllcj0iKS5jb25jYXQoaWRlbnRpZmllcikpLnRoZW4oZnVuY3Rpb24gKHJlc3BvbnNlKSB7CiAgICAgICAgcmV0dXJuIHJlc3BvbnNlLmpzb24oKTsKICAgICAgfSkudGhlbihmdW5jdGlvbiAoZGF0YSkgewogICAgICAgIHZhciByZXN1bHRQYXlsb2FkID0gZGF0YS5yZXN1bHRbMF07CiAgICAgICAgdmFyIG1hcmtlckN1cmllOwogICAgICAgIHRyeSB7CiAgICAgICAgICBtYXJrZXJDdXJpZSA9IHJlc3VsdFBheWxvYWQuYW5hdG9teS5vcmdhblswXS5jdXJpZTsKICAgICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgICAgbWFya2VyQ3VyaWUgPSB1bmRlZmluZWQ7CiAgICAgICAgfQogICAgICAgIHZhciBtYXJrZXJEb2k7CiAgICAgICAgdHJ5IHsKICAgICAgICAgIG1hcmtlckRvaSA9IHJlc3VsdFBheWxvYWQuaXRlbS5jdXJpZTsKICAgICAgICB9IGNhdGNoIChlcnJvcikgewogICAgICAgICAgbWFya2VyRG9pID0gdW5kZWZpbmVkOwogICAgICAgIH0KICAgICAgICB2YXIgbWFya2VyU3BlY2llczsKICAgICAgICB0cnkgewogICAgICAgICAgdmFyIGluZGV4ID0gMDsKICAgICAgICAgIHZhciBmb3VuZCA9IGZhbHNlOwogICAgICAgICAgd2hpbGUgKCFmb3VuZCAmJiBpbmRleCA8IHJlc3VsdFBheWxvYWQub3JnYW5pc21zLnN1YmplY3QubGVuZ3RoKSB7CiAgICAgICAgICAgIHZhciBlbnRyeSA9IHJlc3VsdFBheWxvYWQub3JnYW5pc21zLnN1YmplY3RbaW5kZXhdOwogICAgICAgICAgICBpZiAoZW50cnkuc3BlY2llcykgewogICAgICAgICAgICAgIG1hcmtlclNwZWNpZXMgPSBlbnRyeS5zcGVjaWVzLm5hbWU7CiAgICAgICAgICAgICAgZm91bmQgPSB0cnVlOwogICAgICAgICAgICB9CiAgICAgICAgICAgIGluZGV4ICs9IDE7CiAgICAgICAgICB9CiAgICAgICAgfSBjYXRjaCAoZXJyb3IpIHsKICAgICAgICAgIG1hcmtlclNwZWNpZXMgPSB1bmRlZmluZWQ7CiAgICAgICAgfQogICAgICAgIHN0b3JlLmNvbW1pdCgic2V0dGluZ3MvdXBkYXRlRmVhdHVyZWRNYXJrZXIiLCB7CiAgICAgICAgICBpZGVudGlmaWVyOiBpZGVudGlmaWVyLAogICAgICAgICAgbWFya2VyOiBtYXJrZXJDdXJpZSwKICAgICAgICAgIGRvaTogbWFya2VyRG9pLAogICAgICAgICAgc3BlY2llczogbWFya2VyU3BlY2llcwogICAgICAgIH0pOwogICAgICB9KTsKICAgIH0sCiAgICAvKioKICAgICAqIEdldCBhIGxpc3Qgb2YgZmVhdHVyZWQgZGF0YXNldHMgdG8gZGlzcGxheS4KICAgICAqLwogICAgZ2V0RmVhdHVyZWREYXRhc2V0czogZnVuY3Rpb24gZ2V0RmVhdHVyZWREYXRhc2V0cygpIHsKICAgICAgdmFyIGxvY2FsX3RoaXMgPSB0aGlzOwogICAgICBmZXRjaCgiIi5jb25jYXQodGhpcy5hcGlMb2NhdGlvbiwgImdldF9mZWF0dXJlZF9kYXRhc2V0c19pZGVudGlmaWVycyIpKS50aGVuKGZ1bmN0aW9uIChyZXNwb25zZSkgewogICAgICAgIHJldHVybiByZXNwb25zZS5qc29uKCk7CiAgICAgIH0pLnRoZW4oZnVuY3Rpb24gKGRhdGEpIHsKICAgICAgICBzdG9yZS5jb21taXQoInNldHRpbmdzL3VwZGF0ZUZlYXR1cmVkIiwgZGF0YS5pZGVudGlmaWVycyk7CiAgICAgICAgZGF0YS5pZGVudGlmaWVycy5mb3JFYWNoKGZ1bmN0aW9uIChlbGVtZW50KSB7CiAgICAgICAgICBsb2NhbF90aGlzLmdldERhdGFzZXRBbmF0b215SW5mbyhlbGVtZW50KTsKICAgICAgICB9KTsKICAgICAgfSk7CiAgICB9LAogICAgem9vbVRvRmVhdHVyZXM6IGZ1bmN0aW9uIHpvb21Ub0ZlYXR1cmVzKCkgewogICAgICByZXR1cm47CiAgICB9LAogICAgaGFuZGxlU3luY01vdXNlRXZlbnQ6IGZ1bmN0aW9uICgpIHsKICAgICAgdmFyIF9oYW5kbGVTeW5jTW91c2VFdmVudCA9IF9hc3luY1RvR2VuZXJhdG9yKCAvKiNfX1BVUkVfXyovX3JlZ2VuZXJhdG9yUnVudGltZSgpLm1hcmsoZnVuY3Rpb24gX2NhbGxlZTIoZGF0YSkgewogICAgICAgIHZhciBpbmZvOwogICAgICAgIHJldHVybiBfcmVnZW5lcmF0b3JSdW50aW1lKCkud3JhcChmdW5jdGlvbiBfY2FsbGVlMiQoX2NvbnRleHQyKSB7CiAgICAgICAgICB3aGlsZSAoMSkgc3dpdGNoIChfY29udGV4dDIucHJldiA9IF9jb250ZXh0Mi5uZXh0KSB7CiAgICAgICAgICAgIGNhc2UgMDoKICAgICAgICAgICAgICBfY29udGV4dDIubmV4dCA9IDI7CiAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2V0TmFtZUFuZElkRnJvbVN5bmNEYXRhKGRhdGEpOwogICAgICAgICAgICBjYXNlIDI6CiAgICAgICAgICAgICAgaW5mbyA9IF9jb250ZXh0Mi5zZW50OwogICAgICAgICAgICAgIGlmIChkYXRhLmV2ZW50VHlwZSA9PT0gImhpZ2hsaWdodGVkIikgewogICAgICAgICAgICAgICAgdGhpcy5oaWdobGlnaHRGZWF0dXJlcyhpbmZvKTsKICAgICAgICAgICAgICB9IGVsc2UgaWYgKGRhdGEuZXZlbnRUeXBlID09PSAic2VsZWN0ZWQiKSB7CiAgICAgICAgICAgICAgICB0aGlzLmRpc3BsYXlUb29sdGlwKGluZm8pOwogICAgICAgICAgICAgICAgLy90aGlzLnpvb21Ub0ZlYXR1cmVzKGluZm8sIHRydWUpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgY2FzZSA0OgogICAgICAgICAgICBjYXNlICJlbmQiOgogICAgICAgICAgICAgIHJldHVybiBfY29udGV4dDIuc3RvcCgpOwogICAgICAgICAgfQogICAgICAgIH0sIF9jYWxsZWUyLCB0aGlzKTsKICAgICAgfSkpOwogICAgICBmdW5jdGlvbiBoYW5kbGVTeW5jTW91c2VFdmVudChfeDIpIHsKICAgICAgICByZXR1cm4g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AgICAgIC8vdGhpcy5oYW5kbGVTeW5jUGFuWm9vbUV2ZW50KGRhdGEpOwogICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICB0aGlzLmhhbmRsZVN5bmNNb3VzZUV2ZW50KGRhdGEpOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgICBfY29udGV4dDMubmV4dCA9IDk7CiAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIGNhc2UgNDoKICAgICAgICAgICAgICBpZiAoIShkYXRhLmV2ZW50VHlwZSA9PSAic2VsZWN0ZWQiKSkgewogICAgICAgICAgICAgICAgX2NvbnRleHQzLm5leHQgPSA5OwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICAgIF9jb250ZXh0My5uZXh0ID0gNzsKICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nZXROYW1lQW5kSWRGcm9tU3luY0RhdGEoZGF0YSk7CiAgICAgICAgICAgIGNhc2UgNzoKICAgICAgICAgICAgICBpbmZvID0gX2NvbnRleHQzLnNlbnQ7CiAgICAgICAgICAgICAgdGhpcy56b29tVG9GZWF0dXJlcyhpbmZvLCBmYWxzZSk7CiAgICAgICAgICAgIGNhc2UgOToKICAgICAgICAgICAgY2FzZSAiZW5kIjoKICAgICAgICAgICAgICByZXR1cm4gX2NvbnRleHQzLnN0b3AoKTsKICAgICAgICAgIH0KICAgICAgICB9LCBfY2FsbGVlMywgdGhpcyk7CiAgICAgIH0pKTsKICAgICAgZnVuY3Rpb24gcmVjZWl2ZVN5bmNocm9uaXNlZEV2ZW50KF94MykgewogICAgICAgIHJldHVybiBfcmVjZWl2ZVN5bmNocm9uaXNlZEV2ZW50LmFwcGx5KHRoaXMsIGFyZ3VtZW50cyk7CiAgICAgIH0KICAgICAgcmV0dXJuIHJlY2VpdmVTeW5jaHJvbmlzZWRFdmVudDsKICAgIH0oKSwKICAgIHJlcXVlc3RTeW5jaHJvbmlzZWRFdmVudDogZnVuY3Rpb24gcmVxdWVzdFN5bmNocm9uaXNlZEV2ZW50KCkgewogICAgICByZXR1cm47CiAgICB9LAogICAgZ2V0QXZhaWxhYmxlVGVybXM6IGZ1bmN0aW9uIGdldEF2YWlsYWJsZVRlcm1zKCkgewogICAgICB2YXIgX3RoaXMyID0gdGhpczsKICAgICAgLy9Vc2UgdGhlIGRlZmF1bHQgbGlzdCBvZiB1YmVyb25zIGJlZm9yZSB3ZSBnZXQgdGhlIGxpc3QgZnJvbQogICAgICAvL3RoZSBhcGkKICAgICAgdmFyIHRlcm1zID0gZ2V0QXZhaWxhYmxlVGVybXNGb3JTcGVjaWVzKCk7CiAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgdGVybXMubGVuZ3RoOyBpKyspIHsKICAgICAgICB0aGlzLmlkTmFtZVBhaXJbdGVybXNbaV0uaWRdID0gdGVybXNbaV0ubmFtZTsKICAgICAgfQogICAgICBpZiAodGhpcy5hcGlMb2NhdGlvbikgewogICAgICAgIGlmICh0aGlzLl9jb250cm9sbGVyKSB0aGlzLl9jb250cm9sbGVyLmFib3J0KCk7CiAgICAgICAgdGhpcy5fY29udHJvbGxlciA9IG5ldyBBYm9ydENvbnRyb2xsZXIoKTsKICAgICAgICB2YXIgc2lnbmFsID0gdGhpcy5fY29udHJvbGxlci5zaWduYWw7CiAgICAgICAgZmV0Y2goIiIuY29uY2F0KHRoaXMuYXBpTG9jYXRpb24sICJnZXQtb3JnYW4tY3VyaWVzIiksIHsKICAgICAgICAgIHNpZ25hbDogc2lnbmFsCiAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgIHJldHVybiByZXNwb25zZS5qc29uKCk7CiAgICAgICAgfSkudGhlbihmdW5jdGlvbiAoZGF0YSkgewogICAgICAgICAgX3RoaXMyLl9jb250cm9sbGVyID0gdW5kZWZpbmVkOwogICAgICAgICAgZGF0YS51YmVyb24uYXJyYXkuZm9yRWFjaChmdW5jdGlvbiAocGFpc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FBfQVBJX0xPQ0FUSU9OLAogICAgICBhY3RpdmVTcGVjaWVzOiAiUmF0IiwKICAgICAgc2NhZmZvbGRDYW1lcmE6IHVuZGVmaW5lZCwKICAgICAgbWFpblN0eWxlOiB7CiAgICAgICAgaGVpZ2h0OiB0aGlzLmVudHJ5LmRhdGFzZXRUaXRsZSA/ICJjYWxjKDEwMCUgLSAzMHB4KSIgOiAiMTAwJSIsCiAgICAgICAgd2lkdGg6ICIxMDAlIiwKICAgICAgICBib3R0b206ICIwcHgiCiAgICAgIH0sCiAgICAgIGhlbHBNb2RlOiBmYWxzZSwKICAgICAgaWROYW1lUGFpcjoge30sCiAgICAgIHNjYWZmb2xkTG9hZGVkOiBmYWxzZSwKICAgICAgaXNJbkhlbHA6IGZhbHNlCiAgICB9OwogIH0sCiAgY3JlYXRlZDogZnVuY3Rpb24gY3JlYXRlZCgpIHsKICAgIHRoaXMuZmxhdG1hcEFQSSA9IHVuZGVmaW5lZDsKICAgIHRoaXMuYXBpTG9jYXRpb24gPSB1bmRlZmluZWQ7CiAgICBpZiAoc3RvcmUuc3RhdGUuc2V0dGluZ3MuZmxhdG1hcEFQSSkgdGhpcy5mbGF0bWFwQVBJID0gc3RvcmUuc3RhdGUuc2V0dGluZ3MuZmxhdG1hcEFQSTsKICAgIGlmIChzdG9yZS5zdGF0ZS5zZXR0aW5ncy5zcGFyY0FwaSkgdGhpcy5hcGlMb2NhdGlvbiA9IHN0b3JlLnN0YXRlLnNldHRpbmdzLnNwYXJjQXBpOwogIH0KfTs="},{"version":3,"names":["getAvailableTermsForSpecies","getInteractiveAction","getNerveNames","getParentsRegion","EventBus","markerZoomLevels","store","props","entry","Object","visible","type","Boolean","default","mouseHovered","computed","syncMode","state","splitFlow","mounted","_this","$on","startHelp","methods","toggleSyncMode","getState","undefined","openMap","$emit","search","searchSuggestions","resourceSelected","resource","resourceHasAction","returnedAction","action","fireResourceSelected","result","paneIndex","id","internalName","eventType","idNamePair","feature","models","label","hardcodedAnnotation","filter","mz","getters","term","h","keyword","length","replace","facet","facetPropPath","flatmap","$refs","multiflatmap","getCurrentFlatmap","mapImp","clearSearchResults","data","isVisible","slot","displayTooltip","getNameAndIdFromSyncData","_getNameAndIdFromSyncData","_asyncToGenerator","_regeneratorRuntime","mark","_callee","name","objects","matched","_matched","wrap","_callee$","_context","prev","next","scaffold","findObjectsWithGroupName","abrupt","fetch","concat","apiLocation","then","response","json","uberon","array","charAt","toUpperCase","slice","stop","_x","apply","arguments","getDatasetAnatomyInfo","identifier","resultPayload","markerCurie","anatomy","organ","curie","error","markerDoi","item","markerSpecies","index","found","organisms","subject","species","commit","marker","doi","getFeaturedDatasets","local_this","identifiers","forEach","element","zoomToFeatures","handleSyncMouseEvent","_handleSyncMouseEvent","_callee2","info","_callee2$","_context2","sent","highlightFeatures","_x2","handleSyncPanZoomEvent","receiveSynchronisedEvent","_receiveSynchronisedEvent","_callee3","_callee3$","_context3","_x3","requestSynchronisedEvent","getAvailableTerms","_this2","terms","i","_controller","abort","AbortController","signal","pair","flatmapMarkerZoomUpdate","onResize","isInHelp","helpMode","window","addEventListener","endHelp","_this3","removeEventListener","setTimeout","process","env","VUE_APP_API_LOCATION","activeSpecies","scaffoldCamera","mainStyle","height","datasetTitle","width","bottom","scaffoldLoaded","created","flatmapAPI","settings","sparcApi"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/mixins/ContentMixin.js"],"sourcesContent":["import {\n getAvailableTermsForSpecies,\n getInteractiveAction,\n getNerveNames,\n getParentsRegion,\n} from \"../components/SimulatedData.js\";\nimport EventBus from \"../components/EventBus\";\nimport markerZoomLevels from \"../components/markerZoomLevelsHardCoded.js\";\nimport store from \"../store\";\n\n/* eslint-disable no-alert, no-console */\nexport default {\n props: {\n /**\n * Object containing information for\n * the required viewing.\n */\n entry: Object,\n visible: {\n type: Boolean,\n default: true,\n },\n mouseHovered: {\n type: Boolean,\n default: false,\n },\n },\n computed: {\n syncMode() {\n return store.state.splitFlow.syncMode;\n },\n },\n mounted: function () {\n EventBus.$on(\"startHelp\", () => {\n this.startHelp();\n });\n },\n methods: {\n toggleSyncMode: function () {\n return;\n },\n getState: function () {\n return undefined;\n },\n openMap: function (type) {\n if (type === \"SYNC\") {\n this.toggleSyncMode();\n } else {\n EventBus.$emit(\"OpenNewMap\", type);\n }\n },\n /**\n * Perform a local search on this contentvuer\n */\n search: function () {\n return false;\n },\n /**\n * Get a list of search suggestions on this contentvuer\n */\n searchSuggestions: function () {\n return;\n },\n /**\n * Callback when the vuers emit a selected event.\n */\n resourceSelected: function (type, resource) {\n // Skip processing if resources already has actions\n if (this.resourceHasAction(resource)) {\n EventBus.$emit(\"PopoverActionClick\", resource);\n return;\n }\n\n let returnedAction = undefined;\n let action = \"none\";\n let fireResourceSelected = false;\n const result = {\n paneIndex: this.entry.id,\n type: type,\n resource: resource,\n internalName: undefined,\n eventType: undefined,\n };\n\n if (type == \"MultiFlatmap\" || type == \"Flatmap\") {\n result.internalName = this.idNamePair[resource.feature.models];\n if (resource.eventType == \"click\") {\n result.eventType = \"selected\";\n if (resource.feature.type == \"marker\") {\n let label = this.idNamePair[resource.feature.models];\n let hardcodedAnnotation = markerZoomLevels.filter(\n mz => mz.id === resource.feature.models\n );\n\n if (\n store.getters[\"settings/isFeaturedMarkerIdentifier\"](\n resource.feature.id\n )\n ) {\n // It is a featured dataset search for DOI.\n returnedAction = {\n type: \"Search\",\n term: store.getters[\"settings/featuredMarkerDoi\"](\n resource.feature.id\n ),\n };\n } else if (hardcodedAnnotation.filter(h => h.keyword).length > 0) {\n // if it matches our stored keywords, it is a keyword search\n // Keyword searches do not contain labels, so switch to keyword search if no label exists\n returnedAction = {\n type: \"Search\",\n term:\n \"http://purl.obolibrary.org/obo/\" +\n resource.feature.models.replace(\":\", \"_\"),\n };\n } else {\n // Facet search on anatomy if it is not a keyword search\n returnedAction = {\n type: \"Facet\",\n facet: label,\n facetPropPath: \"anatomy.organ.name\",\n term: \"Anatomical structure\",\n };\n }\n\n fireResourceSelected = true;\n if (type == \"MultiFlatmap\") {\n const flatmap =\n this.$refs.multiflatmap.getCurrentFlatmap().mapImp;\n flatmap.clearSearchResults();\n }\n } else if (resource.feature.type == \"feature\") {\n // Do no open scaffold in sync map\n if (this.syncMode) {\n fireResourceSelected = true;\n } else {\n action = \"scaffold\";\n }\n }\n } else if (resource.eventType == \"mouseenter\") {\n result.eventType = \"highlighted\";\n fireResourceSelected = true;\n }\n } else if (type == \"Scaffold\") {\n if (resource && resource[0]) result.internalName = resource[0].data.id;\n result.eventType = \"selected\";\n fireResourceSelected = true;\n action = \"search\";\n }\n if (returnedAction === undefined)\n returnedAction = getInteractiveAction(result, action);\n if (returnedAction) EventBus.$emit(\"PopoverActionClick\", returnedAction);\n if (fireResourceSelected) this.$emit(\"resource-selected\", result);\n },\n resourceHasAction: function (resource) {\n return (\n resource.type === \"URL\" ||\n resource.type === \"Search\" ||\n resource.type === \"Neuron Search\" ||\n resource.type == \"Facet\" ||\n resource.type == \"Facets\"\n );\n },\n /**\n * Check if this viewer is currently visible\n */\n isVisible: function () {\n let slot = store.getters[\"splitFlow/getSlotById\"](this.entry.id);\n if (slot) return store.getters[\"splitFlow/isSlotActive\"](slot);\n return false;\n },\n displayTooltip: function() {\n return;\n },\n /**\n * Get the term to zoom/highlight in a synchronisation event,\n * if it cannot be found in the map, it will perform several\n * calls to try to ge a valid name/id.\n */\n getNameAndIdFromSyncData: async function (data) {\n let name = data.internalName;\n if (name === undefined && data.resource) {\n name = data.resource.label;\n }\n let id = undefined;\n if (data.resource && data.resource.resource) {\n id = data.resource.resource[0];\n }\n if (this.entry.type === \"Scaffold\") {\n const objects = this.$refs.scaffold.findObjectsWithGroupName(name);\n // If a region is not found use a hardcoded list to determine\n // its parents region first\n if (objects.length === 0) {\n //Use nerve mapping\n if (data.resource && data.resource.feature) {\n matched = getNerveNames(data.resource.feature.models);\n if (matched.length > 0) return matched;\n }\n let matched = getParentsRegion(name);\n if (matched) {\n return matched;\n }\n // Hardcoded list failed - use an endpoint to find its parents\n if (id && data.eventType === \"selected\") {\n return fetch(`${this.apiLocation}get-related-terms/${id}`)\n .then(response => response.json())\n .then(data => {\n if (data.uberon.array.length > 0) {\n name =\n data.uberon.array[0].name.charAt(0).toUpperCase() +\n data.uberon.array[0].name.slice(1);\n id = data.uberon.array[0].id.toUpperCase();\n return { id, name };\n }\n });\n }\n }\n } else if (this.entry.type === \"MultiFlatmap\") {\n if (name === \"Bladder\") {\n name = \"Urinary Bladder\";\n } else {\n const matched = getNerveNames(name);\n if (matched.length > 0) name = matched[0];\n }\n }\n return { id, name };\n },\n getDatasetAnatomyInfo: function (identifier) {\n fetch(`${this.apiLocation}dataset_info/anatomy?identifier=${identifier}`)\n .then(response => response.json())\n .then(data => {\n const resultPayload = data.result[0];\n let markerCurie;\n try {\n markerCurie = resultPayload.anatomy.organ[0].curie;\n } catch (error) {\n markerCurie = undefined;\n }\n let markerDoi;\n try {\n markerDoi = resultPayload.item.curie;\n } catch (error) {\n markerDoi = undefined;\n }\n let markerSpecies;\n try {\n let index = 0;\n let found = false;\n while (!found && index < resultPayload.organisms.subject.length) {\n const entry = resultPayload.organisms.subject[index];\n if (entry.species) {\n markerSpecies = entry.species.name;\n found = true;\n }\n index += 1;\n }\n } catch (error) {\n markerSpecies = undefined;\n }\n store.commit(\"settings/updateFeaturedMarker\", {\n identifier,\n marker: markerCurie,\n doi: markerDoi,\n species: markerSpecies,\n });\n });\n },\n /**\n * Get a list of featured datasets to display.\n */\n getFeaturedDatasets: function () {\n const local_this = this;\n fetch(`${this.apiLocation}get_featured_datasets_identifiers`)\n .then(response => response.json())\n .then(data => {\n store.commit(\"settings/updateFeatured\", data.identifiers);\n data.identifiers.forEach(element => {\n local_this.getDatasetAnatomyInfo(element);\n });\n });\n },\n zoomToFeatures: function () {\n return;\n },\n handleSyncMouseEvent: async function (data) {\n let info = await this.getNameAndIdFromSyncData(data);\n if (data.eventType === \"highlighted\") {\n this.highlightFeatures(info);\n } else if (data.eventType === \"selected\") {\n this.displayTooltip(info);\n //this.zoomToFeatures(info, true);\n }\n },\n /**\n * Handle sync pan zoom event\n */\n handleSyncPanZoomEvent: function () {\n return;\n },\n highlightFeatures: function () {\n return;\n },\n receiveSynchronisedEvent: async function (data) {\n if (data.paneIndex !== this.entry.id) {\n if (data.eventType == \"panZoom\") {\n //this.handleSyncPanZoomEvent(data);\n } else {\n this.handleSyncMouseEvent(data);\n }\n } else {\n if (data.eventType == \"selected\") {\n let info = await this.getNameAndIdFromSyncData(data);\n this.zoomToFeatures(info, false);\n }\n }\n },\n requestSynchronisedEvent: function () {\n return;\n },\n getAvailableTerms: function () {\n //Use the default list of uberons before we get the list from\n //the api\n let terms = getAvailableTermsForSpecies();\n for (let i = 0; i < terms.length; i++) {\n this.idNamePair[terms[i].id] = terms[i].name;\n }\n if (this.apiLocation) {\n if (this._controller) this._controller.abort();\n this._controller = new AbortController();\n let signal = this._controller.signal;\n fetch(`${this.apiLocation}get-organ-curies`, {\n signal,\n })\n .then(response => response.json())\n .then(data => {\n this._controller = undefined;\n data.uberon.array.forEach(pair => {\n this.idNamePair[pair.id.toUpperCase()] =\n pair.name.charAt(0).toUpperCase() + pair.name.slice(1);\n });\n return;\n });\n }\n },\n flatmapMarkerZoomUpdate() {\n return;\n },\n onResize: function () {\n return;\n },\n startHelp: function () {\n if (this.isInHelp === false) {\n this.helpMode = true;\n window.addEventListener(\"mousedown\", this.endHelp);\n this.isInHelp = true;\n }\n },\n endHelp: function () {\n window.removeEventListener(\"mousedown\", this.endHelp);\n this.helpMode = false;\n setTimeout(() => {\n this.isInHelp = false;\n }, 200);\n },\n },\n data: function () {\n return {\n apiLocation: process.env.VUE_APP_API_LOCATION,\n activeSpecies: \"Rat\",\n scaffoldCamera: undefined,\n mainStyle: {\n height: this.entry.datasetTitle ? \"calc(100% - 30px)\" : \"100%\",\n width: \"100%\",\n bottom: \"0px\",\n },\n helpMode: false,\n idNamePair: {},\n scaffoldLoaded: false,\n isInHelp: false,\n };\n },\n created: function () {\n this.flatmapAPI = undefined;\n this.apiLocation = undefined;\n if (store.state.settings.flatmapAPI)\n this.flatmapAPI = store.state.settings.flatmapAPI;\n if (store.state.settings.sparcApi)\n this.apiLocation = store.state.settings.sparcApi;\n },\n};\n"],"mappings":";;;;;;;;;;AAAA,SACEA,2BAA2B,EAC3BC,oBAAoB,EACpBC,aAAa,EACbC,gBAAgB,QACX,gCAAgC;AACvC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,gBAAgB,MAAM,4CAA4C;AACzE,OAAOC,KAAK,MAAM,UAAU;;AAE5B;AACA,eAAe;EACbC,KAAK,EAAE;IACL;AACJ;AACA;AACA;IACIC,KAAK,EAAEC,MAAM;IACbC,OAAO,EAAE;MACPC,IAAI,EAAEC,OAAO;MACbC,OAAO,EAAE;IACX,CAAC;IACDC,YAAY,EAAE;MACZH,IAAI,EAAEC,OAAO;MACbC,OAAO,EAAE;IACX;EACF,CAAC;EACDE,QAAQ,EAAE;IACRC,QAAQ,WAAAA,SAAA,EAAG;MACT,OAAOV,KAAK,CAACW,KAAK,CAACC,SAAS,CAACF,QAAQ;IACvC;EACF,CAAC;EACDG,OAAO,EAAE,SAAAA,QAAA,EAAY;IAAA,IAAAC,KAAA;IACnBhB,QAAQ,CAACiB,GAAG,CAAC,WAAW,EAAE,YAAM;MAC9BD,KAAI,CAACE,SAAS,EAAE;IAClB,CAAC,CAAC;EACJ,CAAC;EACDC,OAAO,EAAE;IACPC,cAAc,EAAE,SAAAA,eAAA,EAAY;MAC1B;IACF,CAAC;IACDC,QAAQ,EAAE,SAAAA,SAAA,EAAY;MACpB,OAAOC,SAAS;IAClB,CAAC;IACDC,OAAO,EAAE,SAAAA,QAAUhB,IAAI,EAAE;MACvB,IAAIA,IAAI,KAAK,MAAM,EAAE;QACnB,IAAI,CAACa,cAAc,EAAE;MACvB,CAAC,MAAM;QACLpB,QAAQ,CAACwB,KAAK,CAAC,YAAY,EAAEjB,IAAI,CAAC;MACpC;IACF,CAA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