diff --git a/shrine-webclient/src/main/js/client/js-shrine/config.js b/shrine-webclient/src/main/js/client/js-shrine/config.js index b93a865da..6b89b0961 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/config.js +++ b/shrine-webclient/src/main/js/client/js-shrine/config.js @@ -1,764 +1,764 @@ System.config({ defaultJSExtensions: true, transpiler: false, paths: { "*": "dist/*", "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "aurelia-animator-css": "npm:aurelia-animator-css@1.0.1", "aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0", "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-fetch-client": "npm:aurelia-fetch-client@1.0.1", "aurelia-framework": "npm:aurelia-framework@1.0.6", "aurelia-history-browser": "npm:aurelia-history-browser@1.0.0", "aurelia-loader-default": "npm:aurelia-loader-default@1.0.0", "aurelia-logging-console": "npm:aurelia-logging-console@1.0.0", "aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0", "aurelia-polyfills": "npm:aurelia-polyfills@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0", "aurelia-templating-resources": "npm:aurelia-templating-resources@1.1.1", "aurelia-templating-router": "npm:aurelia-templating-router@1.0.0", "bluebird": "npm:bluebird@3.4.1", "bootstrap": "github:twbs/bootstrap@3.3.7", "fetch": "github:github/fetch@1.0.0", "font-awesome": "npm:font-awesome@4.7.0", "jquery": "npm:jquery@2.2.4", "moment": "npm:moment@2.18.1", "ramda": "npm:ramda@0.23.0", "text": "github:systemjs/plugin-text@0.0.8", "github:jspm/nodelibs-assert@0.1.0": { "assert": "npm:assert@1.4.1" }, "github:jspm/nodelibs-buffer@0.1.1": { "buffer": "npm:buffer@5.0.6" }, "github:jspm/nodelibs-process@0.1.2": { "process": "npm:process@0.11.10" }, "github:jspm/nodelibs-util@0.1.0": { "util": "npm:util@0.10.3" }, "github:jspm/nodelibs-vm@0.1.0": { "vm-browserify": "npm:vm-browserify@0.0.4" }, "github:twbs/bootstrap@3.3.7": { "jquery": "npm:jquery@2.2.4" }, "npm:assert@1.4.1": { "assert": "github:jspm/nodelibs-assert@0.1.0", "buffer": "github:jspm/nodelibs-buffer@0.1.1", "process": "github:jspm/nodelibs-process@0.1.2", "util": "npm:util@0.10.3" }, "npm:aurelia-animator-css@1.0.1": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-binding@1.0.9": { "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0" }, "npm:aurelia-bootstrapper@1.0.0": { "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-framework": "npm:aurelia-framework@1.0.6", "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-history-browser": "npm:aurelia-history-browser@1.0.0", "aurelia-loader-default": "npm:aurelia-loader-default@1.0.0", "aurelia-logging-console": "npm:aurelia-logging-console@1.0.0", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0", "aurelia-polyfills": "npm:aurelia-polyfills@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1", "aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0", "aurelia-templating-resources": "npm:aurelia-templating-resources@1.1.1", "aurelia-templating-router": "npm:aurelia-templating-router@1.0.0" }, "npm:aurelia-dependency-injection@1.3.1": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-event-aggregator@1.0.1": { "aurelia-logging": "npm:aurelia-logging@1.3.1" }, "npm:aurelia-framework@1.0.6": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-history-browser@1.0.0": { "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-loader-default@1.0.0": { "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-loader@1.0.0": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-path": "npm:aurelia-path@1.1.1" }, "npm:aurelia-logging-console@1.0.0": { "aurelia-logging": "npm:aurelia-logging@1.3.1" }, "npm:aurelia-metadata@1.0.3": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-pal-browser@1.0.0": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-polyfills@1.1.1": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-route-recognizer@1.1.0": { "aurelia-path": "npm:aurelia-path@1.1.1" }, "npm:aurelia-router@1.3.0": { "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.1.0" }, "npm:aurelia-task-queue@1.1.0": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-templating-binding@1.0.0": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating-resources@1.1.1": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating-router@1.0.0": { "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating@1.1.1": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0" }, "npm:bluebird@3.4.1": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:buffer@5.0.6": { "base64-js": "npm:base64-js@1.2.0", "ieee754": "npm:ieee754@1.1.8" }, "npm:font-awesome@4.7.0": { "css": "github:systemjs/plugin-css@0.1.33" }, "npm:inherits@2.0.1": { "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:process@0.11.10": { "assert": "github:jspm/nodelibs-assert@0.1.0", "fs": "github:jspm/nodelibs-fs@0.1.2", "vm": "github:jspm/nodelibs-vm@0.1.0" }, "npm:ramda@0.23.0": { "assert": "github:jspm/nodelibs-assert@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "util": "github:jspm/nodelibs-util@0.1.0", "vm": "github:jspm/nodelibs-vm@0.1.0" }, "npm:util@0.10.3": { "inherits": "npm:inherits@2.0.1", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:vm-browserify@0.0.4": { "indexof": "npm:indexof@0.0.1" } }, bundles: { + "app-build.js": [ + "main.js", + "repository/qep.repository.js", + "resources/converters/box-style.converter.js", + "resources/converters/count-value-converter.js", + "resources/converters/datetime.value.converter.js", + "resources/converters/result-style.converter.js", + "resources/converters/result-value.converter.js", + "resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/breakdown/breakdown.js", + "resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/error/error.js", + "resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/node-result/node-result.js", + "resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/node-status/node-status.js", + "resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/patient-count/patient-count.js", + "resources/index.js", + "services/container.js", + "services/i2b2.pub-sub.js", + "services/i2b2.service.js", + "services/pub-sub.js", + "services/queries.model.js", + "services/query-export.js", + "services/query-status.model.js", + "services/shrine.messages.js", + "shell.html!github:systemjs/plugin-text@0.0.8.js", + "shell.js", + "views/index.js", + "views/mailto/mailto.config.js", + "views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js", + "views/mailto/mailto.js", + "views/mailto/mailto.service.js", + "views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-status/query-status.js", + "views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/context-menu/context-menu.js", + "views/query-viewer/date.converter.js", + "views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/loading-bar/loading-bar.js", + "views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/paginator/paginator.js", + "views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/query-status/query-status.js", + "views/query-viewer/query-viewer.config.js", + "views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/query-viewer.js", + "views/query-viewer/scroll.service.js" + ], "aurelia.js": [ "github:github/fetch@1.0.0.js", "github:github/fetch@1.0.0/fetch.js", "github:jspm/nodelibs-process@0.1.2.js", "github:jspm/nodelibs-process@0.1.2/index.js", "npm:aurelia-binding@1.0.9.js", "npm:aurelia-binding@1.0.9/aurelia-binding.js", "npm:aurelia-bootstrapper@1.0.0.js", "npm:aurelia-bootstrapper@1.0.0/aurelia-bootstrapper.js", "npm:aurelia-dependency-injection@1.3.1.js", "npm:aurelia-dependency-injection@1.3.1/aurelia-dependency-injection.js", "npm:aurelia-event-aggregator@1.0.1.js", "npm:aurelia-event-aggregator@1.0.1/aurelia-event-aggregator.js", "npm:aurelia-fetch-client@1.0.1.js", "npm:aurelia-fetch-client@1.0.1/aurelia-fetch-client.js", "npm:aurelia-framework@1.0.6.js", "npm:aurelia-framework@1.0.6/aurelia-framework.js", "npm:aurelia-history-browser@1.0.0.js", "npm:aurelia-history-browser@1.0.0/aurelia-history-browser.js", "npm:aurelia-history@1.0.0.js", "npm:aurelia-history@1.0.0/aurelia-history.js", "npm:aurelia-loader-default@1.0.0.js", "npm:aurelia-loader-default@1.0.0/aurelia-loader-default.js", "npm:aurelia-loader@1.0.0.js", "npm:aurelia-loader@1.0.0/aurelia-loader.js", "npm:aurelia-logging-console@1.0.0.js", "npm:aurelia-logging-console@1.0.0/aurelia-logging-console.js", "npm:aurelia-logging@1.3.1.js", "npm:aurelia-logging@1.3.1/aurelia-logging.js", "npm:aurelia-metadata@1.0.3.js", "npm:aurelia-metadata@1.0.3/aurelia-metadata.js", "npm:aurelia-pal-browser@1.0.0.js", "npm:aurelia-pal-browser@1.0.0/aurelia-pal-browser.js", "npm:aurelia-pal@1.3.0.js", "npm:aurelia-pal@1.3.0/aurelia-pal.js", "npm:aurelia-path@1.1.1.js", "npm:aurelia-path@1.1.1/aurelia-path.js", "npm:aurelia-polyfills@1.1.1.js", "npm:aurelia-polyfills@1.1.1/aurelia-polyfills.js", "npm:aurelia-route-recognizer@1.1.0.js", "npm:aurelia-route-recognizer@1.1.0/aurelia-route-recognizer.js", "npm:aurelia-router@1.3.0.js", "npm:aurelia-router@1.3.0/aurelia-router.js", "npm:aurelia-task-queue@1.1.0.js", "npm:aurelia-task-queue@1.1.0/aurelia-task-queue.js", "npm:aurelia-templating-binding@1.0.0.js", "npm:aurelia-templating-binding@1.0.0/aurelia-templating-binding.js", "npm:aurelia-templating-resources@1.1.1.js", "npm:aurelia-templating-resources@1.1.1/abstract-repeater.js", "npm:aurelia-templating-resources@1.1.1/analyze-view-factory.js", "npm:aurelia-templating-resources@1.1.1/array-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/attr-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/aurelia-hide-style.js", "npm:aurelia-templating-resources@1.1.1/aurelia-templating-resources.js", "npm:aurelia-templating-resources@1.1.1/binding-mode-behaviors.js", "npm:aurelia-templating-resources@1.1.1/binding-signaler.js", "npm:aurelia-templating-resources@1.1.1/compose.js", "npm:aurelia-templating-resources@1.1.1/css-resource.js", "npm:aurelia-templating-resources@1.1.1/debounce-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/dynamic-element.js", "npm:aurelia-templating-resources@1.1.1/focus.js", "npm:aurelia-templating-resources@1.1.1/hide.js", "npm:aurelia-templating-resources@1.1.1/html-resource-plugin.js", "npm:aurelia-templating-resources@1.1.1/html-sanitizer.js", "npm:aurelia-templating-resources@1.1.1/if.js", "npm:aurelia-templating-resources@1.1.1/map-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/null-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/number-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/repeat-strategy-locator.js", "npm:aurelia-templating-resources@1.1.1/repeat-utilities.js", "npm:aurelia-templating-resources@1.1.1/repeat.js", "npm:aurelia-templating-resources@1.1.1/replaceable.js", "npm:aurelia-templating-resources@1.1.1/sanitize-html.js", "npm:aurelia-templating-resources@1.1.1/set-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/show.js", "npm:aurelia-templating-resources@1.1.1/signal-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/throttle-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/update-trigger-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/with.js", "npm:aurelia-templating-router@1.0.0.js", "npm:aurelia-templating-router@1.0.0/aurelia-templating-router.js", "npm:aurelia-templating-router@1.0.0/route-href.js", "npm:aurelia-templating-router@1.0.0/route-loader.js", "npm:aurelia-templating-router@1.0.0/router-view.js", "npm:aurelia-templating@1.1.1.js", "npm:aurelia-templating@1.1.1/aurelia-templating.js", "npm:font-awesome@4.7.0.js", "npm:font-awesome@4.7.0/css/font-awesome.css!github:systemjs/plugin-css@0.1.33.js", "npm:jquery@2.2.4.js", "npm:jquery@2.2.4/dist/jquery.js", "npm:moment@2.18.1.js", "npm:moment@2.18.1/moment.js", "npm:process@0.11.10.js", "npm:process@0.11.10/browser.js", "npm:ramda@0.23.0.js", "npm:ramda@0.23.0/index.js", "npm:ramda@0.23.0/src/F.js", "npm:ramda@0.23.0/src/T.js", "npm:ramda@0.23.0/src/__.js", "npm:ramda@0.23.0/src/add.js", "npm:ramda@0.23.0/src/addIndex.js", "npm:ramda@0.23.0/src/adjust.js", "npm:ramda@0.23.0/src/all.js", "npm:ramda@0.23.0/src/allPass.js", "npm:ramda@0.23.0/src/always.js", "npm:ramda@0.23.0/src/and.js", "npm:ramda@0.23.0/src/any.js", "npm:ramda@0.23.0/src/anyPass.js", "npm:ramda@0.23.0/src/ap.js", "npm:ramda@0.23.0/src/aperture.js", "npm:ramda@0.23.0/src/append.js", "npm:ramda@0.23.0/src/apply.js", "npm:ramda@0.23.0/src/applySpec.js", "npm:ramda@0.23.0/src/ascend.js", "npm:ramda@0.23.0/src/assoc.js", "npm:ramda@0.23.0/src/assocPath.js", "npm:ramda@0.23.0/src/binary.js", "npm:ramda@0.23.0/src/bind.js", "npm:ramda@0.23.0/src/both.js", "npm:ramda@0.23.0/src/call.js", "npm:ramda@0.23.0/src/chain.js", "npm:ramda@0.23.0/src/clamp.js", "npm:ramda@0.23.0/src/clone.js", "npm:ramda@0.23.0/src/comparator.js", "npm:ramda@0.23.0/src/complement.js", "npm:ramda@0.23.0/src/compose.js", "npm:ramda@0.23.0/src/composeK.js", "npm:ramda@0.23.0/src/composeP.js", "npm:ramda@0.23.0/src/concat.js", "npm:ramda@0.23.0/src/cond.js", "npm:ramda@0.23.0/src/construct.js", "npm:ramda@0.23.0/src/constructN.js", "npm:ramda@0.23.0/src/contains.js", "npm:ramda@0.23.0/src/converge.js", "npm:ramda@0.23.0/src/countBy.js", "npm:ramda@0.23.0/src/curry.js", "npm:ramda@0.23.0/src/curryN.js", "npm:ramda@0.23.0/src/dec.js", "npm:ramda@0.23.0/src/defaultTo.js", "npm:ramda@0.23.0/src/descend.js", "npm:ramda@0.23.0/src/difference.js", "npm:ramda@0.23.0/src/differenceWith.js", "npm:ramda@0.23.0/src/dissoc.js", "npm:ramda@0.23.0/src/dissocPath.js", "npm:ramda@0.23.0/src/divide.js", "npm:ramda@0.23.0/src/drop.js", "npm:ramda@0.23.0/src/dropLast.js", "npm:ramda@0.23.0/src/dropLastWhile.js", "npm:ramda@0.23.0/src/dropRepeats.js", "npm:ramda@0.23.0/src/dropRepeatsWith.js", "npm:ramda@0.23.0/src/dropWhile.js", "npm:ramda@0.23.0/src/either.js", "npm:ramda@0.23.0/src/empty.js", "npm:ramda@0.23.0/src/eqBy.js", "npm:ramda@0.23.0/src/eqProps.js", "npm:ramda@0.23.0/src/equals.js", "npm:ramda@0.23.0/src/evolve.js", "npm:ramda@0.23.0/src/filter.js", "npm:ramda@0.23.0/src/find.js", "npm:ramda@0.23.0/src/findIndex.js", "npm:ramda@0.23.0/src/findLast.js", "npm:ramda@0.23.0/src/findLastIndex.js", "npm:ramda@0.23.0/src/flatten.js", "npm:ramda@0.23.0/src/flip.js", "npm:ramda@0.23.0/src/forEach.js", "npm:ramda@0.23.0/src/forEachObjIndexed.js", "npm:ramda@0.23.0/src/fromPairs.js", "npm:ramda@0.23.0/src/groupBy.js", "npm:ramda@0.23.0/src/groupWith.js", "npm:ramda@0.23.0/src/gt.js", "npm:ramda@0.23.0/src/gte.js", "npm:ramda@0.23.0/src/has.js", "npm:ramda@0.23.0/src/hasIn.js", "npm:ramda@0.23.0/src/head.js", "npm:ramda@0.23.0/src/identical.js", "npm:ramda@0.23.0/src/identity.js", "npm:ramda@0.23.0/src/ifElse.js", "npm:ramda@0.23.0/src/inc.js", "npm:ramda@0.23.0/src/indexBy.js", "npm:ramda@0.23.0/src/indexOf.js", "npm:ramda@0.23.0/src/init.js", "npm:ramda@0.23.0/src/insert.js", "npm:ramda@0.23.0/src/insertAll.js", "npm:ramda@0.23.0/src/internal/_Set.js", "npm:ramda@0.23.0/src/internal/_aperture.js", "npm:ramda@0.23.0/src/internal/_arity.js", "npm:ramda@0.23.0/src/internal/_arrayFromIterator.js", "npm:ramda@0.23.0/src/internal/_assign.js", "npm:ramda@0.23.0/src/internal/_checkForMethod.js", "npm:ramda@0.23.0/src/internal/_clone.js", "npm:ramda@0.23.0/src/internal/_cloneRegExp.js", "npm:ramda@0.23.0/src/internal/_complement.js", "npm:ramda@0.23.0/src/internal/_concat.js", "npm:ramda@0.23.0/src/internal/_contains.js", "npm:ramda@0.23.0/src/internal/_containsWith.js", "npm:ramda@0.23.0/src/internal/_createPartialApplicator.js", "npm:ramda@0.23.0/src/internal/_curry1.js", "npm:ramda@0.23.0/src/internal/_curry2.js", "npm:ramda@0.23.0/src/internal/_curry3.js", "npm:ramda@0.23.0/src/internal/_curryN.js", "npm:ramda@0.23.0/src/internal/_dispatchable.js", "npm:ramda@0.23.0/src/internal/_dropLast.js", "npm:ramda@0.23.0/src/internal/_dropLastWhile.js", "npm:ramda@0.23.0/src/internal/_equals.js", "npm:ramda@0.23.0/src/internal/_filter.js", "npm:ramda@0.23.0/src/internal/_flatCat.js", "npm:ramda@0.23.0/src/internal/_forceReduced.js", "npm:ramda@0.23.0/src/internal/_functionName.js", "npm:ramda@0.23.0/src/internal/_has.js", "npm:ramda@0.23.0/src/internal/_identity.js", "npm:ramda@0.23.0/src/internal/_indexOf.js", "npm:ramda@0.23.0/src/internal/_isArguments.js", "npm:ramda@0.23.0/src/internal/_isArray.js", "npm:ramda@0.23.0/src/internal/_isFunction.js", "npm:ramda@0.23.0/src/internal/_isInteger.js", "npm:ramda@0.23.0/src/internal/_isNumber.js", "npm:ramda@0.23.0/src/internal/_isObject.js", "npm:ramda@0.23.0/src/internal/_isPlaceholder.js", "npm:ramda@0.23.0/src/internal/_isRegExp.js", "npm:ramda@0.23.0/src/internal/_isString.js", "npm:ramda@0.23.0/src/internal/_isTransformer.js", "npm:ramda@0.23.0/src/internal/_makeFlat.js", "npm:ramda@0.23.0/src/internal/_map.js", "npm:ramda@0.23.0/src/internal/_objectAssign.js", "npm:ramda@0.23.0/src/internal/_of.js", "npm:ramda@0.23.0/src/internal/_pipe.js", "npm:ramda@0.23.0/src/internal/_pipeP.js", "npm:ramda@0.23.0/src/internal/_quote.js", "npm:ramda@0.23.0/src/internal/_reduce.js", "npm:ramda@0.23.0/src/internal/_reduced.js", "npm:ramda@0.23.0/src/internal/_stepCat.js", "npm:ramda@0.23.0/src/internal/_toISOString.js", "npm:ramda@0.23.0/src/internal/_toString.js", "npm:ramda@0.23.0/src/internal/_xall.js", "npm:ramda@0.23.0/src/internal/_xany.js", "npm:ramda@0.23.0/src/internal/_xaperture.js", "npm:ramda@0.23.0/src/internal/_xchain.js", "npm:ramda@0.23.0/src/internal/_xdrop.js", "npm:ramda@0.23.0/src/internal/_xdropLast.js", "npm:ramda@0.23.0/src/internal/_xdropLastWhile.js", "npm:ramda@0.23.0/src/internal/_xdropRepeatsWith.js", "npm:ramda@0.23.0/src/internal/_xdropWhile.js", "npm:ramda@0.23.0/src/internal/_xfBase.js", "npm:ramda@0.23.0/src/internal/_xfilter.js", "npm:ramda@0.23.0/src/internal/_xfind.js", "npm:ramda@0.23.0/src/internal/_xfindIndex.js", "npm:ramda@0.23.0/src/internal/_xfindLast.js", "npm:ramda@0.23.0/src/internal/_xfindLastIndex.js", "npm:ramda@0.23.0/src/internal/_xmap.js", "npm:ramda@0.23.0/src/internal/_xreduceBy.js", "npm:ramda@0.23.0/src/internal/_xtake.js", "npm:ramda@0.23.0/src/internal/_xtakeWhile.js", "npm:ramda@0.23.0/src/internal/_xwrap.js", "npm:ramda@0.23.0/src/intersection.js", "npm:ramda@0.23.0/src/intersectionWith.js", "npm:ramda@0.23.0/src/intersperse.js", "npm:ramda@0.23.0/src/into.js", "npm:ramda@0.23.0/src/invert.js", "npm:ramda@0.23.0/src/invertObj.js", "npm:ramda@0.23.0/src/invoker.js", "npm:ramda@0.23.0/src/is.js", "npm:ramda@0.23.0/src/isArrayLike.js", "npm:ramda@0.23.0/src/isEmpty.js", "npm:ramda@0.23.0/src/isNil.js", "npm:ramda@0.23.0/src/join.js", "npm:ramda@0.23.0/src/juxt.js", "npm:ramda@0.23.0/src/keys.js", "npm:ramda@0.23.0/src/keysIn.js", "npm:ramda@0.23.0/src/last.js", "npm:ramda@0.23.0/src/lastIndexOf.js", "npm:ramda@0.23.0/src/length.js", "npm:ramda@0.23.0/src/lens.js", "npm:ramda@0.23.0/src/lensIndex.js", "npm:ramda@0.23.0/src/lensPath.js", "npm:ramda@0.23.0/src/lensProp.js", "npm:ramda@0.23.0/src/lift.js", "npm:ramda@0.23.0/src/liftN.js", "npm:ramda@0.23.0/src/lt.js", "npm:ramda@0.23.0/src/lte.js", "npm:ramda@0.23.0/src/map.js", "npm:ramda@0.23.0/src/mapAccum.js", "npm:ramda@0.23.0/src/mapAccumRight.js", "npm:ramda@0.23.0/src/mapObjIndexed.js", "npm:ramda@0.23.0/src/match.js", "npm:ramda@0.23.0/src/mathMod.js", "npm:ramda@0.23.0/src/max.js", "npm:ramda@0.23.0/src/maxBy.js", "npm:ramda@0.23.0/src/mean.js", "npm:ramda@0.23.0/src/median.js", "npm:ramda@0.23.0/src/memoize.js", "npm:ramda@0.23.0/src/merge.js", "npm:ramda@0.23.0/src/mergeAll.js", "npm:ramda@0.23.0/src/mergeWith.js", "npm:ramda@0.23.0/src/mergeWithKey.js", "npm:ramda@0.23.0/src/min.js", "npm:ramda@0.23.0/src/minBy.js", "npm:ramda@0.23.0/src/modulo.js", "npm:ramda@0.23.0/src/multiply.js", "npm:ramda@0.23.0/src/nAry.js", "npm:ramda@0.23.0/src/negate.js", "npm:ramda@0.23.0/src/none.js", "npm:ramda@0.23.0/src/not.js", "npm:ramda@0.23.0/src/nth.js", "npm:ramda@0.23.0/src/nthArg.js", "npm:ramda@0.23.0/src/objOf.js", "npm:ramda@0.23.0/src/of.js", "npm:ramda@0.23.0/src/omit.js", "npm:ramda@0.23.0/src/once.js", "npm:ramda@0.23.0/src/or.js", "npm:ramda@0.23.0/src/over.js", "npm:ramda@0.23.0/src/pair.js", "npm:ramda@0.23.0/src/partial.js", "npm:ramda@0.23.0/src/partialRight.js", "npm:ramda@0.23.0/src/partition.js", "npm:ramda@0.23.0/src/path.js", "npm:ramda@0.23.0/src/pathEq.js", "npm:ramda@0.23.0/src/pathOr.js", "npm:ramda@0.23.0/src/pathSatisfies.js", "npm:ramda@0.23.0/src/pick.js", "npm:ramda@0.23.0/src/pickAll.js", "npm:ramda@0.23.0/src/pickBy.js", "npm:ramda@0.23.0/src/pipe.js", "npm:ramda@0.23.0/src/pipeK.js", "npm:ramda@0.23.0/src/pipeP.js", "npm:ramda@0.23.0/src/pluck.js", "npm:ramda@0.23.0/src/prepend.js", "npm:ramda@0.23.0/src/product.js", "npm:ramda@0.23.0/src/project.js", "npm:ramda@0.23.0/src/prop.js", "npm:ramda@0.23.0/src/propEq.js", "npm:ramda@0.23.0/src/propIs.js", "npm:ramda@0.23.0/src/propOr.js", "npm:ramda@0.23.0/src/propSatisfies.js", "npm:ramda@0.23.0/src/props.js", "npm:ramda@0.23.0/src/range.js", "npm:ramda@0.23.0/src/reduce.js", "npm:ramda@0.23.0/src/reduceBy.js", "npm:ramda@0.23.0/src/reduceRight.js", "npm:ramda@0.23.0/src/reduceWhile.js", "npm:ramda@0.23.0/src/reduced.js", "npm:ramda@0.23.0/src/reject.js", "npm:ramda@0.23.0/src/remove.js", "npm:ramda@0.23.0/src/repeat.js", "npm:ramda@0.23.0/src/replace.js", "npm:ramda@0.23.0/src/reverse.js", "npm:ramda@0.23.0/src/scan.js", "npm:ramda@0.23.0/src/sequence.js", "npm:ramda@0.23.0/src/set.js", "npm:ramda@0.23.0/src/slice.js", "npm:ramda@0.23.0/src/sort.js", "npm:ramda@0.23.0/src/sortBy.js", "npm:ramda@0.23.0/src/sortWith.js", "npm:ramda@0.23.0/src/split.js", "npm:ramda@0.23.0/src/splitAt.js", "npm:ramda@0.23.0/src/splitEvery.js", "npm:ramda@0.23.0/src/splitWhen.js", "npm:ramda@0.23.0/src/subtract.js", "npm:ramda@0.23.0/src/sum.js", "npm:ramda@0.23.0/src/symmetricDifference.js", "npm:ramda@0.23.0/src/symmetricDifferenceWith.js", "npm:ramda@0.23.0/src/tail.js", "npm:ramda@0.23.0/src/take.js", "npm:ramda@0.23.0/src/takeLast.js", "npm:ramda@0.23.0/src/takeLastWhile.js", "npm:ramda@0.23.0/src/takeWhile.js", "npm:ramda@0.23.0/src/tap.js", "npm:ramda@0.23.0/src/test.js", "npm:ramda@0.23.0/src/times.js", "npm:ramda@0.23.0/src/toLower.js", "npm:ramda@0.23.0/src/toPairs.js", "npm:ramda@0.23.0/src/toPairsIn.js", "npm:ramda@0.23.0/src/toString.js", "npm:ramda@0.23.0/src/toUpper.js", "npm:ramda@0.23.0/src/transduce.js", "npm:ramda@0.23.0/src/transpose.js", "npm:ramda@0.23.0/src/traverse.js", "npm:ramda@0.23.0/src/trim.js", "npm:ramda@0.23.0/src/tryCatch.js", "npm:ramda@0.23.0/src/type.js", "npm:ramda@0.23.0/src/unapply.js", "npm:ramda@0.23.0/src/unary.js", "npm:ramda@0.23.0/src/uncurryN.js", "npm:ramda@0.23.0/src/unfold.js", "npm:ramda@0.23.0/src/union.js", "npm:ramda@0.23.0/src/unionWith.js", "npm:ramda@0.23.0/src/uniq.js", "npm:ramda@0.23.0/src/uniqBy.js", "npm:ramda@0.23.0/src/uniqWith.js", "npm:ramda@0.23.0/src/unless.js", "npm:ramda@0.23.0/src/unnest.js", "npm:ramda@0.23.0/src/until.js", "npm:ramda@0.23.0/src/update.js", "npm:ramda@0.23.0/src/useWith.js", "npm:ramda@0.23.0/src/values.js", "npm:ramda@0.23.0/src/valuesIn.js", "npm:ramda@0.23.0/src/view.js", "npm:ramda@0.23.0/src/when.js", "npm:ramda@0.23.0/src/where.js", "npm:ramda@0.23.0/src/whereEq.js", "npm:ramda@0.23.0/src/without.js", "npm:ramda@0.23.0/src/xprod.js", "npm:ramda@0.23.0/src/zip.js", "npm:ramda@0.23.0/src/zipObj.js", "npm:ramda@0.23.0/src/zipWith.js" - ], - "app-build.js": [ - "main.js", - "repository/qep.repository.js", - "resources/converters/box-style.converter.js", - "resources/converters/count-value-converter.js", - "resources/converters/datetime.value.converter.js", - "resources/converters/result-style.converter.js", - "resources/converters/result-value.converter.js", - "resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/breakdown/breakdown.js", - "resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/error/error.js", - "resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/node-result/node-result.js", - "resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/node-status/node-status.js", - "resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/patient-count/patient-count.js", - "resources/index.js", - "services/container.js", - "services/i2b2.pub-sub.js", - "services/i2b2.service.js", - "services/pub-sub.js", - "services/queries.model.js", - "services/query-export.js", - "services/query-status.model.js", - "services/shrine.messages.js", - "shell.html!github:systemjs/plugin-text@0.0.8.js", - "shell.js", - "views/index.js", - "views/mailto/mailto.config.js", - "views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js", - "views/mailto/mailto.js", - "views/mailto/mailto.service.js", - "views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-status/query-status.js", - "views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/context-menu/context-menu.js", - "views/query-viewer/date.converter.js", - "views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/loading-bar/loading-bar.js", - "views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/paginator/paginator.js", - "views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/query-status/query-status.js", - "views/query-viewer/query-viewer.config.js", - "views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/query-viewer.js", - "views/query-viewer/scroll.service.js" ] }, depCache: { "repository/qep.repository.js": [ "aurelia-fetch-client", "fetch" ], "resources/converters/datetime.value.converter.js": [ "moment" ], "resources/custom/breakdown/breakdown.js": [ "aurelia-framework" ], "resources/custom/error/error.js": [ "aurelia-framework", "services/pub-sub" ], "resources/custom/node-result/node-result.js": [ "aurelia-framework" ], "resources/custom/node-status/node-status.js": [ "aurelia-framework", "services/pub-sub" ], "resources/custom/patient-count/patient-count.js": [ "aurelia-framework" ], "services/container.js": [ "ramda" ], "services/i2b2.pub-sub.js": [ "./pub-sub", "./i2b2.service" ], "services/i2b2.service.js": [ "ramda", "./container" ], "services/pub-sub.js": [ "aurelia-event-aggregator", "./shrine.messages" ], "services/queries.model.js": [ "aurelia-event-aggregator", "repository/qep.repository", "./shrine.messages" ], "services/query-export.js": [ "./pub-sub" ], "services/query-status.model.js": [ "aurelia-event-aggregator", "repository/qep.repository", "./shrine.messages" ], "shell.js": [ "services/i2b2.pub-sub", "services/query-export" ], "views/mailto/mailto.js": [ "views/mailto/mailto.service", "views/mailto/mailto.config" ], "views/mailto/mailto.service.js": [ "repository/qep.repository" ], "views/query-status/query-status.js": [ "aurelia-framework", "services/query-status.model", "services/pub-sub" ], "views/query-viewer/context-menu/context-menu.js": [ "aurelia-framework", "aurelia-event-aggregator", "common/shrine.messages" ], "views/query-viewer/date.converter.js": [ "moment" ], "views/query-viewer/loading-bar/loading-bar.js": [ "aurelia-framework" ], "views/query-viewer/paginator/paginator.js": [ "aurelia-framework" ], "views/query-viewer/query-status/query-status.js": [ "aurelia-framework", "ramda" ], "views/query-viewer/query-viewer.js": [ "aurelia-event-aggregator", "common/queries.model", "./scroll.service", "common/shrine.messages" ], "views/query-viewer/scroll.service.js": [ "ramda", "common/container" ] } }); \ No newline at end of file diff --git a/shrine-webclient/src/main/js/client/js-shrine/dist/app-build.js b/shrine-webclient/src/main/js/client/js-shrine/dist/app-build.js index 62edbe718..9a6a2445f 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/dist/app-build.js +++ b/shrine-webclient/src/main/js/client/js-shrine/dist/app-build.js @@ -1,2 +1,2 @@ -"bundle";System.register("main.js",[],function(a,b){"use strict";function c(a){a.use.standardConfiguration().developmentLogging().feature("resources").feature("views"),a.start().then(function(){return a.setRoot("shell")})}return a("configure",c),{setters:[],execute:function(){}}}),System.register("resources/converters/box-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("BoxStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return"transform: translate("+String(-100*a)+"%);"},a}()),a("BoxStyleValueConverter",d)}}}),System.register("resources/converters/count-value-converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("CountValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a<0?"<=10 patients":a+" +-10 patients"},a}()),a("CountValueConverter",d)}}}),System.register("resources/converters/datetime.value.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateTimeValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY h:mm:ss a")},a}()),a("DateTimeValueConverter",e)}}}),System.register("resources/converters/result-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){var b=this.isUnresolved(a)?"color:"+this.getColorValue(a):"";return b},a.prototype.isUnresolved=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FINISHED";return!a||a.status!==b},a.prototype.getColorValue=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ERROR",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#00FF00";return a&&a.status!==b?d:c},a}()),a("ResultStyleValueConverter",d)}}}),System.register("resources/converters/result-value.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a?"FINISHED"!==a.status?"":a.count<0?"<=10":a.count:"not available"},a}()),a("ResultValueConverter",d)}}}),function(){var a=System.amdDefine;a("resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px"><br><font>${data.resultType.i2b2Options.description}:</font></div><div style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px"></div><div repeat.for="result of data.results" style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px">${result.dataKey}: <font color="#0000dd">${result.value | count}</font></div></template>'})}(),System.register("resources/custom/breakdown/breakdown.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("Breakdown",(h=g("breakdown"),l=h((j=function b(){d(this,b),c(this,"data",k,this)},k=e(j.prototype,"data",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("Breakdown",l)}}}),function(){var a=System.amdDefine;a("resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></template>'})}(),System.register("resources/custom/error/error.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p;return{setters:[function(a){h=a.inject,i=a.bindable,j=a.customElement},function(a){k=a.PubSub}],execute:function(){a("Error",(l=j("error"),p=l((n=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",o,i),i}return f(b,a),b}(k),o=g(n.prototype,"result",[i],{enumerable:!0,initializer:null}),m=n))||m)),a("Error",p)}}}),function(){var a=System.amdDefine;a("resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear:both"><br><div style="float:left; font-weight:bold; margin-left:20px">${result.adapterNode} ${queryName}:</div></div><span> ${result.status}</span><patient-count if.one-way="result.status === \'COMPLETED\' || result.status === \'FINISHED\'" result.one-way="result"></patient-count><error if.one-way="result.status === \'ERROR\'" result.one-way="result"></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.status) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span></template>'})}(),System.register("resources/custom/node-result/node-result.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.customElement,g=a.bindable}],execute:function(){a("NodeResult",(h=f("node-result"),m=h((j=function b(){d(this,b),c(this,"result",k,this),c(this,"queryName",l,this)},k=e(j.prototype,"result",[g],{enumerable:!0,initializer:null}),l=e(j.prototype,"queryName",[g],{enumerable:!0,initializer:null}),i=j))||i)),a("NodeResult",m)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> <span style="color: black">COMPLETED</span> </span><span> <a if.one-way="result.status === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR </a></span><span if.one-way="!\'ERROR,COMPLETED,FINISHED\'.includes(result.status)"> <span style="color: #00dd00">RUNNING</span></span></div><div style="flex:1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div></template>'})}(),System.register("resources/custom/node-status/node-status.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o;return{setters:[function(a){h=a.customElement,i=a.bindable},function(a){j=a.PubSub}],execute:function(){a("NodeStatus",(k=h("node-status"),o=k((m=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",n,i),i}return f(b,a),b}(j),n=g(m.prototype,"result",[i],{enumerable:!0,initializer:null}),l=m))||l)),a("NodeStatus",o)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> <span style="color: black">${result.statusMessage}</span> </span><span> <a if.one-way="result.statusMessage === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR: ${result.statusDescription} </a></span><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> <span style="color: #00dd00">${result.statusMessage}</span></span></div><div style="flex:1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div><patient-count if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" result.one-way="result"><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div></patient-count><error if.one-way="result.statusMessage === \'ERROR\'" result.one-way="result"> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span>'})}(),function(){var a=System.amdDefine;a("resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div><breakdown repeat.for="breakdown of result.breakdowns" data.one-way="breakdown"></breakdown></template>'})}(),System.register("resources/custom/patient-count/patient-count.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("PatientCount",(h=g("patient-count"),l=h((j=function(){function a(){d(this,a),c(this,"result",k,this)}return a.prototype.attached=function(){},a}(),k=e(j.prototype,"result",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("PatientCount",l)}}}),System.register("resources/index.js",[],function(a,b){"use strict";function c(a){var b="converters",c=["box-style.converter","count-value-converter","datetime.value.converter","result-style.converter","result-value.converter"];a.globalResources.apply(a,c.map(function(a){return"./"+b+"/"+a}));var d="custom",e=["error/error","breakdown/breakdown","node-result/node-result","node-status/node-status","patient-count/patient-count"];a.globalResources.apply(a,e.map(function(a){return"./"+d+"/"+a}))}return a("configure",c),{setters:[],execute:function(){}}}),System.register("services/queries.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.notifications}],execute:function(){a("QueriesModel",(h=g=function b(a,d,e){var f=this;c(this,b);var g=d,h=40,i=0,j=0,k=null;b.prototype.load=function(){return g.fetchPreviousQueries(f.maxQueriesPerFetch()+f.loadedCount()).then(function(a){return j=a.rowCount,i=a.queryResults.length,a})["catch"](function(a){return console.log(a)}).then(l).then(function(b){k=b,a.publish(e.shrine.queriesReceived,k)})},b.prototype.totalQueries=function(){return j},b.prototype.loadedCount=function(){return i},b.prototype.maxQueriesPerFetch=function(){return h},b.prototype.moreToLoad=function(){return i<j},b.prototype.hasData=function(){return null!==k&&void 0!==k};var l=function(a){arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new Promise(function(b,c){for(var d=[],e=6,f=a.adapters,g=f.length,h=a.queryResults,i=0;i<g;i+=e){var j=m(f,i,e),k=f.slice(i,j),l=n(k,h);d.push({nodes:k,results:l})}b(d)})},m=function(a,b,c){var d=b+c;return d<a.length?d:a.length},n=function(a,b){var c=[];return b.forEach(function(b,d){var e={name:b.query.queryName,id:b.query.networkId,date:b.query.dateCreated,flagged:b.query.flagged===!0,flagMessage:b.query.flagMessage||null,nodeResults:[],status:b.adaptersToResults.reduce(function(a,c){var d="FINISHED"===c.status?a.finished+1:a.finished,e="ERROR"===c.status?a.error+1:a.error;return{error:e,finished:d,total:b.adaptersToResults.length}},{error:0,finished:0,total:b.adaptersToResults.length})};a.forEach(function(a){e.nodeResults.push(b.adaptersToResults.find(function(b){return b.adapterNode===a}))}),c.push(e)}),c}},g.inject=[d,e,f],i=h)),a("QueriesModel",i)}}}),function(){var a=System.amdDefine;a("shell.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return"<template><query-status></query-status></template>"})}(),System.register("services/container.js",["ramda"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f;return{setters:[function(a){d=a}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Container",f=function(){function a(b){c(this,a),this.__value=b}return a.of=function(b){return new a(function(){return b})},a.prototype.map=function(b){return this.hasNothing()?a.of(null):a.of(b(this.value))},a.prototype.join=function(){return this.hasNothing()?a.of(null):this.value},a.prototype.chain=function(a){return this.map(a).join()},a.prototype.hasNothing=function(){return null===this.value||void 0===this.value},a.prototype.ap=function(a){a.map(this.value)},e(a,[{key:"value",get:function(){return this.__value()}}]),a}()),a("Container",f)}}}),System.register("services/i2b2.service.js",["ramda","./container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("I2B2Service",(g=f=function b(a){c(this,b);var f=a?e.of(a):e.of(null),g=d.curry(function(a,b){return b.value?e.of(d.prop(a,b.value)):e.of(null)}),h=d.compose(g("i2b2"),g("window"),g("parent")),i=d.compose(g("CRC"),h),j=d.compose(g("events"),h),k=d.compose(g("SHRINE"),h);b.prototype.onResize=function(a){return j(f).map(function(b){return b.changedZoomWindows.subscribe(a)})},b.prototype.onHistory=function(a){return i(f).map(function(b){return b.ctrlr.history.events.onDataUpdate.subscribe(a)})},b.prototype.onQuery=function(a){return j(f).map(function(b){return b.afterQueryInit.subscribe(a)})},b.prototype.onNetworkId=function(a){return j(f).map(function(b){return b.networkIdReceived.subscribe(a)})},b.prototype.onViewSelected=function(a){return g("addEventListener",f).value?e.of(f.value.addEventListener("message",a,!1)):e.of(null)},b.prototype.onExport=function(a){return j(f).map(function(b){return b.exportQueryResult.subscribe(a)})},b.prototype.loadHistory=function(){return i(f).map(function(a){return a.view.history.doRefreshAll()})},b.prototype.loadQuery=function(a){return i(f).map(function(b){return b.ctrlr.QT.doQueryLoad(a)})},b.prototype.errorDetail=function(a){return k(f).map(function(b){return b.plugin.errorDetail(a)})},b.prototype.renameQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.queryRename(a,!1)})},b.prototype.flagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Flag({queryId:a,message:""})})},b.prototype.unflagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Unflag({queryId:a})})},b.prototype.publishQueryUnavailable=function(){return j(f).map(function(a){return a.queryResultUnavailable.fire()})},b.prototype.publishQueryAvailable=function(){return j(f).map(function(a){return a.queryResultAvailable.fire()})}},f.inject=[window],h=g)),a("I2B2Service",h)}}}),System.register("services/i2b2.pub-sub.js",["./pub-sub","./i2b2.service"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h,i,j;return{setters:[function(a){f=a.PubSub},function(a){g=a.I2B2Service}],execute:function(){a("I2B2PubSub",(i=h=function(a){function b(e){c(this,b);for(var f=arguments.length,g=Array(f>1?f-1:0),h=1;h<f;h++)g[h-1]=arguments[h];var i=d(this,a.call.apply(a,[this].concat(g)));return i.listen=function(){e.onResize(function(a,b){return b.find(function(a){return"ADD"===a.action})?function(){return i.publish(i.notifications.i2b2.tabMax)}:function(){return i.publish(i.notifications.i2b2.tabMin)}}),e.onHistory(function(){return i.publish(i.notifications.i2b2.historyRefreshed)}),e.onQuery(function(a,b){return i.publish(i.notifications.i2b2.queryStarted,b[0].name)}),e.onNetworkId(function(a,b){return i.publish(i.notifications.i2b2.networkIdReceived,b[0])}),e.onViewSelected(function(a){return i.publish(i.notifications.i2b2.viewSelected,a.data)}),e.onExport(function(){return i.publish(i.notifications.i2b2.exportQuery)}),i.subscribe(i.commands.i2b2.cloneQuery,function(a){return e.loadQuery(a)}),i.subscribe(i.commands.i2b2.showError,function(a){return e.errorDetail(a)}),i.subscribe(i.commands.i2b2.renameQuery,function(a){return e.renameQuery(a)}),i.subscribe(i.commands.i2b2.flagQuery,function(a){return e.flagQuery(a)}),i.subscribe(i.commands.i2b2.unflagQuery,function(a){return e.unflagQuery(a)}),i.subscribe(i.notifications.shrine.queryUnavailable,function(){return e.publishQueryUnavailable()}),i.subscribe(i.notifications.shrine.queryAvailable,function(){return e.publishQueryAvailable()})},i}return e(b,a),b}(f),h.inject=[g],j=i)),a("I2B2PubSub",j)}}}),System.register("services/query-export.js",["./pub-sub"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h;return{setters:[function(a){f=a.PubSub}],execute:function(){a("QueryExport",g=function(a){function b(){c(this,b);for(var e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];return d(this,a.call.apply(a,[this].concat(f)))}return e(b,a),b.prototype.listen=function(){this.subscribe(this.commands.shrine.exportResult,h)},b}(f)),a("QueryExport",g),h=function(a){var b=a.nodes.sort(),c=new Map,d=function(a){var b=a.resultType.i2b2Options.description;return b},e=function(a,b){return d(a)<=d(b)?-1:1};b.forEach(function(a){var b=a.breakdowns;return b.sort(e).forEach(function(a){var b,d=a.resultType.i2b2Options.description,e=a.results;return c.has(d)?(b=c.get(d)).add.apply(b,e.map(function(a){return a.dataKey}).sort()):c.set(d,new Set(e.map(function(a){return a.dataKey}).sort()))})});var f="data:text/csv;charset=utf-8,SHRINE QUERY RESULTS (OBFUSCATED PATIENT COUNTS),"+[""].concat(b.map(function(a){return a.adapterNode}).join(",")),g="\nAll Patients,"+[""].concat(b.map(function(a){return a.count}).join(",")),h=[];c.forEach(function(a,c){h.push.apply(h,[""].concat(Array.from(a).map(function(a){var d=c.split(" ").shift()+","+a,e=b.map(function(b){var d=b.breakdowns,e=d.find(function(a){var b=a.resultType.i2b2Options.description;a.results;return b===c}),f=e?e.results.find(function(b){return b.dataKey===a}):void 0;return f?f.value>0?f.value:0:"unavailable"});return d+","+e.join(",")})))});var i=encodeURI(""+f+g+h.join("\n")),j=document.createElement("a");j.setAttribute("href",i),j.setAttribute("download","export.csv"),document.body.appendChild(j),j.click(),document.body.removeChild(j)}}}}),System.register("shell.js",["services/i2b2.pub-sub","services/query-export"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.I2B2PubSub},function(a){e=a.QueryExport}],execute:function(){a("Shell",(g=f=function b(a,d){c(this,b),a.listen(),d.listen()},f.inject=[d,e],h=g)),a("Shell",h)}}}),System.register("views/index.js",[],function(a,b){"use strict";function c(a){var b=["views/query-status/query-status"];a.globalResources.apply(a,b)}return a("configure",c),{setters:[],execute:function(){}}}),function(){var a=System.amdDefine;a("views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="mailto"><div class="content"><p>If you have questions about your query results or this SHRINE network, contact the Data Steward at your site.</p><div class="email js-email"><button class="button button--large js-button" click.delegate="openEmail()">Email Data Steward</button></div></div></div></template>'})}(),System.register("views/mailto/mailto.service.js",["repository/qep.repository"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g;return{setters:[function(a){d=a.QEPRepository}],execute:function(){a("MailToService",(f=e=function(){function a(b){c(this,a),this.repository=b}return a.prototype.fetchStewardEmail=function(){return this.repository.fetchStewardEmail()},a}(),e.inject=[d],g=f)),a("MailToService",g)}}}),System.register("views/mailto/mailto.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("MailConfig",c={mailto:"mailto:",subject:encodeURIComponent("Question from a SHRINE User"),body:encodeURIComponent("Please enter the suggested information and your question. Your data steward will reply to this email.\n \n\n***Never send patient information, passwords, or other sensitive information by email****\n \nName:\n \nTitle:\n \nUser name (to log into SHRINE):\n \nTelephone Number (optional):\n \nPreferred email address (optional):\n \n\nQuestion or Comment:")}),a("MailConfig",c)}}}),System.register("views/mailto/mailto.js",["views/mailto/mailto.service","views/mailto/mailto.config"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.MailToService},function(a){e=a.MailConfig}],execute:function(){a("MailTo",(g=f=function(){function a(b,d){c(this,a),this.service=b,this.config=d}return a.prototype.openEmail=function(){var a=this;this.service.fetchStewardEmail().then(function(b){window.top.location="mailto:"+b+"?subject="+a.config.subject+"&body="+a.config.body})},a}(),f.inject=[d,e],h=g)),a("MailTo",h)}}}),function(){var a=System.amdDefine;a("views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="height: 100%; overflow: auto"><div style="display: flex" if.one-way="status.query.queryName"><div style="flex:1">Status of Query: ${status.query.queryName}</div><div style="flex:1" if.one-way="status.nodes.length">Last Updated: ${status.updated | dateTime}</div><div style="flex:1" if.one-way="!status.nodes.length">Waiting on response from network...</div></div><br><node-status repeat.for="node of status.nodes" result.one-way="node"></node-status><span if.one-way="status.nodes.length"><br><span>Completed query counts and breakdowns are shown below:</span><div style="width: 100%; border-bottom: 1px solid"></div><br></span><node-result repeat.for="node of status.nodes" result.one-way="node" query-name.one-way="status.query.queryName"></node-result></div></template>'})}(),System.register("repository/qep.repository.js",["aurelia-fetch-client","fetch"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.HttpClient},function(a){}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("QEPRepository",(g=f=function(){function a(b){var d=this;c(this,a),b.configure(function(a){a.useStandardConfiguration().withBaseUrl(d.url).withDefaults({headers:{Authorization:"Basic "+d.auth}})}),this.http=b}return a.prototype.fetchPreviousQueries=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.http.fetch("qep/queryResults?limit="+a+"&skip="+b).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchNetworkId=function(a){return this.http.fetch("qep/networkId?queryName='"+a+"'").then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchQuery=function(a,b,c){return this.http.fetch("qep/queryResult/"+a+"?timeoutSeconds="+b+"&afterVersion="+c).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchStewardEmail=function(){return this.http.fetch("data?key=stewardEmail").then(function(a){return a.json()}).then(function(a){return a.indexOf('"')>0?a.split('"')[1]:a})["catch"](function(){return""})},e(a,[{key:"url",get:function(){var a=document.URL,b=":6443/shrine-metadata/";return a.substring(0,a.lastIndexOf(":"))+b}},{key:"auth",get:function(){var a=sessionStorage.getItem("shrine.auth");return sessionStorage.removeItem("shrine.auth"),a}}]),a}(),f.inject=[d],h=g)),a("QEPRepository",h)}}}),System.register("services/query-status.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k,l;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.commands,g=a.notifications}],execute:function(){h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},k=function(){var a=!1;return function(b){return a=void 0===b?a:!!b}}(),a("QueryStatusModel",(j=i=function b(a,d,e){c(this,b);var g=function(b){return a.publish(e.shrine.queryReceived,b)},i=function(a){return console.log("ERROR: "+a)},j=function(a){return new Promise(function(b,c){var d=[].concat(a.results),e=a.dataVersion,f=d.length>0&&d.filter(function(a){return"ERROR,COMPLETED,FINISHED".includes(a.status)}).length===d.length,g=h({},a.query,{complete:f});b({query:g,nodes:d,dataVersion:e})})},k=function(a){d.fetchQuery(a.networkId,a.timeoutSeconds,a.dataVersion).then(function(a){ -return j(a)})["catch"](function(a){return i(a)}).then(function(a){return g(a)})},l=function(){a.subscribe(f.shrine.fetchQuery,k)};l()},i.inject=[d,e,g],l=j)),a("QueryStatusModel",l)}}}),System.register("services/shrine.messages.js",[],function(a,b){"use strict";var c,d;return{setters:[],execute:function(){a("notifications",c={i2b2:{tabMax:"notification.from.i2b2.tab.max",tabMin:"notification.from.i2b2.tab.min",viewSelected:"notification.from.i2b2.tab.selected",historyRefreshed:"notification.from.i2b2.history.refreshed",queryStarted:"notification.from.i2b2.query.started",messageReceived:"notification.from.i2b2.message.received",networkIdReceived:"notification.from.i2b2.networkId.receieved",exportQuery:"notification.from.i2b2.export.query"},shrine:{queriesReceived:"notification.from.shrine.queries.received",queryReceived:"notification.from.shrine.query.recieved",queryUnavailable:"notification.from.shrine.query.unavailable",queryAvailable:"notification.from.shrine.query.available"}}),a("notifications",c),a("commands",d={i2b2:{cloneQuery:"command.to.i2b2.clone.query",showError:"command.to.i2b2.show.error",flagQuery:"command.to.i2b2.flag.query",unflagQuery:"command.to.i2b2.unflag.query",renameQuery:"command.to.i2b2.rename.query"},shrine:{fetchQuery:"command.to.shrine.fetch.query",exportResult:"command.to.shrine.export.result"}}),a("commands",d)}}}),System.register("services/pub-sub.js",["aurelia-event-aggregator","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.commands,f=a.notifications}],execute:function(){a("PubSub",(h=g=function b(a,d,e){c(this,b),this.commands=d,this.notifications=e,this.publish=function(b,c){return a.publish(b,c)},this.subscribe=function(b,c){return a.subscribe(b,c)}},g.inject=[d,e,f],i=h)),a("PubSub",i)}}}),System.register("views/query-status/query-status.js",["aurelia-framework","services/query-status.model","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;return{setters:[function(a){h=a.customElement,i=a.observable},function(a){j=a.QueryStatusModel},function(a){k=a.PubSub}],execute:function(){l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},a("QueryStatus",(m=h("query-status"),s=m((r=q=function(a){function b(f){d(this,b);for(var g=arguments.length,h=Array(g>1?g-1:0),i=1;i<g;i++)h[i-1]=arguments[i];var j=e(this,a.call.apply(a,[this].concat(h)));return c(j,"status",p,j),v.set(j,{isDevEnv:document.location.href.includes("http://localhost:8000/"),exportAvailable:!1}),j}return f(b,a),b.prototype.statusChanged=function(a,b){a.nodes&&a.nodes.length?(v.get(this).exportAvailable=!0,this.publish(this.notifications.shrine.queryAvailable)):(v.get(this).exportAvailable=!1,this.publish(this.notifications.shrine.queryUnavailable))},b.prototype.attached=function(){var a=this;this.subscribe(this.notifications.i2b2.queryStarted,function(b){a.status=w(),a.status.query.queryName=b}),this.subscribe(this.notifications.i2b2.networkIdReceived,function(b){var c=b.networkId,d=w(),e=d.nodes;d.query.queryName=b.name||d.query.queryName,a.status=a.status?l({},a.status,{nodes:e}):d,a.publish(a.commands.shrine.fetchQuery,{networkId:c,timeoutSeconds:t,dataVersion:u})}),this.subscribe(this.notifications.i2b2.exportQuery,function(){a.publish(a.commands.shrine.exportResult,l({},a.status))}),this.subscribe(this.notifications.shrine.queryReceived,function(b){var c=b.query,d=b.nodes,e=b.dataVersion,f=Number(new Date),g=b.query.complete,h=b.query.networkId;a.status=l({},a.status,{query:c,nodes:d,updated:f}),g||window.setTimeout(function(){return a.publish(a.commands.shrine.fetchQuery,{networkId:h,dataVersion:e,timeoutSeconds:t})},5e3)}),v.get(this).isDevEnv&&this.publish(this.notifications.i2b2.networkIdReceived,{networkId:1,name:"started query"})},b}(k),q.inject=[j],o=r,p=g(o.prototype,"status",[i],{enumerable:!0,initializer:null}),n=o))||n)),a("QueryStatus",s),t=15,u=-1,v=new WeakMap,w=function(a){return{query:{queryName:null,updated:null,complete:!1},nodes:null}}}}}),function(){var a=System.amdDefine;a("views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><ul class="context-menu ${context.class || \'hide\'}" mouseleave.trigger="context.class=\'hide\'" css="top: ${context.y - 40}; left: ${context.x - 50};"><li if.bind="context.isCount"><a click.delegate="refreshHistory()" href="#"><i class="fa fa-bar-chart-o"></i>Breakdown</a></li><li click.delegate="cloneQuery(context.query.id)"><a href="#"><i class="fa fa-files-o"></i> Clone</a></li><li><a click.delegate="renameQuery(context.query.id)" href="#"><i class="fa fa-edit"></i> Rename</a></li><!--li><a click.delegate="flagQuery(context.query.id)" href="#"><i class="fa fa-flag"></i> Flag</a></li--><!--li><a click.delegate="unflagQuery(context.query.id)" href="#"><i class="fa fa-flag-o"></i> Unflag</a></li--></ul></template>'})}(),System.register("views/query-viewer/context-menu/context-menu.js",["aurelia-framework","aurelia-event-aggregator","common/shrine.messages"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m,n;return{setters:[function(a){f=a.bindable},function(a){g=a.EventAggregator},function(a){h=a.commands}],execute:function(){a("ContextMenu",(l=k=function b(a,c){var e=this;d(this,b),m.call(this),b.prototype.cloneQuery=function(b){a.publish(c.i2b2.cloneQuery,b),e.context["class"]="hide"},b.prototype.renameQuery=function(b){a.publish(c.i2b2.renameQuery,b),e.context["class"]="hide"},b.prototype.flagQuery=function(b){a.publish(c.i2b2.flagQuery,b),e.context["class"]="hide"},b.prototype.unflagQuery=function(b){a.publish(c.i2b2.unflagQuery,b),e.context["class"]="hide"}},k.inject=[g,h],m=function(){c(this,"context",j,this)},i=l,j=e(i.prototype,"context",[f],{enumerable:!0,initializer:null}),n=i)),a("ContextMenu",n)}}}),System.register("views/query-viewer/date.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY")},a}()),a("DateValueConverter",e)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="loader"><h1>${status}</h1><div class="slider"><div class="line"></div><div class="break dot1"></div><div class="break dot2"></div><div class="break dot3"></div></div></div></template>'})}(),System.register("views/query-viewer/loading-bar/loading-bar.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("LoadingBar",(g=function b(){d(this,b),c(this,"status",h,this)},h=e(g.prototype,"status",[f],{enumerable:!0,initializer:null}),i=g)),a("LoadingBar",i)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return""})}(),function(){var a=System.amdDefine;a("views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css"><div class="paginator"><ol class="btn-group"><li class="btn-group__item" click.delegate="pageIndex = index - 1"><i class="i-chevron-left"></i></li><li repeat.for="page of pages" class="btn-group__item" click.delegate="pageIndex = $index"><button class="btn btn--basic ${index === $index? \'current\' : \'\'}">${$index + 1}</button></li><li class="btn-group__item" click.delegate="pageIndex = index + 1"><i class="i-chevron-right"></i></li></ol></div></template>'})}(),System.register("views/query-viewer/paginator/paginator.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable}],execute:function(){g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Paginator",(k=j=function(){function a(b){var e=this;d(this,a),c(this,"pages",i,this),a.prototype.init=function(){e.index=0,e.element=b},this.init()}return g(a,[{key:"pageIndex",set:function(a){var b=this.pages.length-1;this.index=a<0?0:a>b?b:a,this.element.dispatchEvent(new CustomEvent("paginator-click",{detail:{index:this.index},bubbles:!0,cancelable:!0}))}}]),a}(),j.inject=[Element],h=k,i=e(h.prototype,"pages",[f],{enumerable:!0,initializer:null}),l=h)),a("Paginator",l)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="tooltip"><span ref="tooltipContent" data-line1="Total: ${total}" data-line2="Available: ${finished}, Error: ${error}, Pending: ${pending}"><svg viewbox="0 0 35 35" class="query-status"><circle cx="18" cy="16" r="12" class="countdown__background"/><circle cx="18" cy="16" r="12" class="error__progress" css="stroke-dashoffset: ${errorOffset}"/><circle cx="18" cy="16" r="12" class="ready__progress" css="stroke-dashoffset: ${readyOffset}"/></svg></span></div></template>'})}(),System.register("views/query-viewer/query-status/query-status.js",["aurelia-framework","ramda"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable},function(a){g=a}],execute:function(){a("QueryStatus",(k=j=function(){function a(b){d(this,a),l.call(this),this.floor=b.floor}return a.prototype.attached=function(){var a=75,b=g.curry(function(a,b,c,d){return a(d/c*b)})(this.floor,a,this.status.total),c=this.status,d=b(c.finished),e=b(c.error);this.readyOffset=100-d,this.errorOffset=this.readyOffset-e,this.finished=c.finished,this.error=c.error,this.pending=c.total-(c.finished+c.error),this.total=c.total},a}(),j.inject=[Math],l=function(){c(this,"status",i,this)},h=k,i=e(h.prototype,"status",[f],{enumerable:!0,initializer:null}),m=h)),a("QueryStatus",m)}}}),System.register("views/query-viewer/query-viewer.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("QueryViewerConfig",c={maxNodesPerScreen:10,maxQueriesPerScroll:40}),a("QueryViewerConfig",c)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><require from="views/query-viewer/result-style.converter"></require><require from="views/query-viewer/result-value.converter"></require><require from="views/query-viewer/box-style.converter"></require><require from="views/query-viewer/context-menu/context-menu"></require><require from="views/query-viewer/loading-bar/loading-bar"></require><require from="views/query-viewer/paginator/paginator"></require><require from="views/query-viewer/date.converter"></require><require from="views/query-viewer/query-status/query-status"></require><span class="query-viewer"><loading-bar status.bind="\'Loading...\'" if.bind="showLoader"></loading-bar><div style="width: 100%; text-align: center"><paginator pages.bind="pages" paginator-click.delegate="updatePage($event)" if.bind="pages.length > 1"></paginator></div><div class="flex-table"><div class="flex-table-row node-header"><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div repeat.for="node of page.nodes" class="flex-table-item">${node}</div></div></div><div class="flex-table query-viewer ${vertStyle}" scroll.trigger="onScroll($event)"><div><!-- @todo: create running query component --><div class="flex-table-row" if.bind="runningQueryName"><div class="flex-table-item"></div><div class="flex-table-item">${runningQueryName}</div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item" repeat.for="node of page.nodes" style="color: #00FF00">RUNNING</div></div><div repeat.for="result of page.results" class="flex-table-row"><div class="flex-table-item"><i if.bind="result.flagged" class="fa fa-flag"></i> <i if.bind="!result.flagged" class="fa fa-flag-o"></i></div><div class="flex-table-item" click.delegate="context = getContext($event, result)"><div class="ellipses">${result.name}</div></div><div class="flex-table-item" click.delegate="context = getContext($event, result)">${result.date | date}</div><div class="flex-table-item"><query-status status.bind="result.status"></query-status></div><div repeat.for="nodeResult of result.nodeResults" class="flex-table-item" click.delegate="context = getContext($event, result)"><a if.bind="nodeResult.status === \'ERROR\'" style="text-decoration: underline; color:red" click.delegate="publishError($event, nodeResult)">${nodeResult.status} </a>${nodeResult}</div></div><div class="flex-table-row" if.bind="loadingInfiniteScroll"><div style="width: 100%; text-align: center; font-size: 1.5rem; background:rgba(217, 236, 240, .05); text-align:center; color: rgba(0, 0, 0, .20)"><i class="fa fa-spinner fa-spin" style="color: inherit"></i> Loading...</div></div></div></div><!-- context menu --><context-menu context.bind="context"></context-menu></span></template>'})}(),System.register("views/query-viewer/scroll.service.js",["ramda","common/container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("ScrollService",(g=f=function b(){c(this,b)},f.either=d.curry(function(a,b,c){return e.of(d.prop(a,c)||b)}),f.target=function(a,b){return h.either("target",b,b).chain(function(b){return h.either(a,0,b)})},f.clientHeight=function(a){return h.target("clientHeight",a)},f.scrollHeight=function(a){return h.target("scrollHeight",a)},f.scrollTop=function(a){return h.target("scrollTop",a)},f.userScroll=function(a){return h.clientHeight(a).map(function(b){return b+h.scrollTop(a).value})},f.scrollRatio=function(a){return h.userScroll(a).map(function(b){return b/h.scrollHeight(a).value})},h=g)),a("ScrollService",h)}}}),System.register("views/query-viewer/query-viewer.js",["aurelia-event-aggregator","common/queries.model","./scroll.service","common/shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QueriesModel},function(a){f=a.ScrollService},function(a){g=a.notifications,h=a.commands}],execute:function(){a("QueryViewer",(j=i=function(){function a(b,d,e,g){var h=this;c(this,a),a.prototype.init=function(){h.pageIndex=0,h.showLoader=!0,h.vertStyle="v-min",h.runningQueryName=null},this.init(),a.prototype.setToPage=function(a){h.pageIndex=a,h.page=h.pages[h.pageIndex]};var i=function(a){return 1===f.scrollRatio(a).value};a.prototype.onScroll=function(a){i(a)&&!h.loadingInfiniteScroll&&d.moreToLoad()&&(h.loadingInfiniteScroll=!0,d.load())},a.prototype.publishError=function(a,c){return a.stopPropagation(),b.publish(g.i2b2.showError,c)},a.prototype.getContext=function(a,b,c){return{x:a.pageX,y:a.pageY,"class":"show",query:b,isCount:void 0!==c,count:c}},b.subscribe(e.i2b2.historyRefreshed,function(){return d.load()}),b.subscribe(e.i2b2.tabMax,function(){return h.vertStyle="v-full"}),b.subscribe(e.i2b2.tabMin,function(){return h.vertStyle="v-min"}),b.subscribe(e.i2b2.queryStarted,function(a){return h.runningQueryName=a}),b.subscribe(e.shrine.queriesReceived,function(a){h.pages=a,h.page=h.pages[0],h.runningQueryName=null,h.loadingInfiniteScroll=!1,h.showLoader=!1})}return a.prototype.updatePage=function(a){a.stopPropagation();var b=event.detail.index;this.page=this.pages[b]},a}(),i.inject=[d,e,g,h],k=j)),a("QueryViewer",k)}}}); \ No newline at end of file +"bundle";System.register("main.js",[],function(a,b){"use strict";function c(a){a.use.standardConfiguration().developmentLogging().feature("resources").feature("views"),a.start().then(function(){return a.setRoot("shell")})}return a("configure",c),{setters:[],execute:function(){}}}),System.register("resources/converters/box-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("BoxStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return"transform: translate("+String(-100*a)+"%);"},a}()),a("BoxStyleValueConverter",d)}}}),System.register("resources/converters/count-value-converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("CountValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a<0?"<=10 patients":a+" +-10 patients"},a}()),a("CountValueConverter",d)}}}),System.register("resources/converters/datetime.value.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateTimeValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY h:mm:ss a")},a}()),a("DateTimeValueConverter",e)}}}),System.register("resources/converters/result-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){var b=this.isUnresolved(a)?"color:"+this.getColorValue(a):"";return b},a.prototype.isUnresolved=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FINISHED";return!a||a.status!==b},a.prototype.getColorValue=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ERROR",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#00FF00";return a&&a.status!==b?d:c},a}()),a("ResultStyleValueConverter",d)}}}),System.register("resources/converters/result-value.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a?"FINISHED"!==a.status?"":a.count<0?"<=10":a.count:"not available"},a}()),a("ResultValueConverter",d)}}}),function(){var a=System.amdDefine;a("resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px"><br><font>${data.resultType.i2b2Options.description}:</font></div><div style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px"></div><div repeat.for="result of data.results" style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px">${result.dataKey}: <font color="#0000dd">${result.value | count}</font></div></template>'})}(),System.register("resources/custom/breakdown/breakdown.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("Breakdown",(h=g("breakdown"),l=h((j=function b(){d(this,b),c(this,"data",k,this)},k=e(j.prototype,"data",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("Breakdown",l)}}}),function(){var a=System.amdDefine;a("resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">${result.statusDescription}</span></b></a></b></span></template>'})}(),System.register("resources/custom/error/error.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p;return{setters:[function(a){h=a.inject,i=a.bindable,j=a.customElement},function(a){k=a.PubSub}],execute:function(){a("Error",(l=j("error"),p=l((n=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",o,i),i}return f(b,a),b}(k),o=g(n.prototype,"result",[i],{enumerable:!0,initializer:null}),m=n))||m)),a("Error",p)}}}),function(){var a=System.amdDefine;a("resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear:both"><br><div style="float:left; font-weight:bold; margin-left:20px">${result.adapterNode} ${queryName}:</div></div><span> ${result.status}</span><patient-count if.one-way="result.status === \'COMPLETED\' || result.status === \'FINISHED\'" result.one-way="result"></patient-count><error if.one-way="result.status === \'ERROR\'" result.one-way="result"></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.status) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span></template>'})}(),System.register("resources/custom/node-result/node-result.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.customElement,g=a.bindable}],execute:function(){a("NodeResult",(h=f("node-result"),m=h((j=function b(){d(this,b),c(this,"result",k,this),c(this,"queryName",l,this)},k=e(j.prototype,"result",[g],{enumerable:!0,initializer:null}),l=e(j.prototype,"queryName",[g],{enumerable:!0,initializer:null}),i=j))||i)),a("NodeResult",m)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> <span style="color: black">COMPLETED</span> </span><span> <a if.one-way="result.status === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR </a></span><span if.one-way="!\'ERROR,COMPLETED,FINISHED\'.includes(result.status)"> <span style="color: #00dd00">RUNNING</span></span></div><div style="flex:1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div></template>'})}(),System.register("resources/custom/node-status/node-status.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o;return{setters:[function(a){h=a.customElement,i=a.bindable},function(a){j=a.PubSub}],execute:function(){a("NodeStatus",(k=h("node-status"),o=k((m=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",n,i),i}return f(b,a),b}(j),n=g(m.prototype,"result",[i],{enumerable:!0,initializer:null}),l=m))||l)),a("NodeStatus",o)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> <span style="color: black">${result.statusMessage}</span> </span><span> <a if.one-way="result.statusMessage === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR: ${result.statusDescription} </a></span><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> <span style="color: #00dd00">${result.statusMessage}</span></span></div><div style="flex:1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div><patient-count if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" result.one-way="result"><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div></patient-count><error if.one-way="result.statusMessage === \'ERROR\'" result.one-way="result"> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span>'})}(),function(){var a=System.amdDefine;a("resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div><breakdown repeat.for="breakdown of result.breakdowns" data.one-way="breakdown"></breakdown></template>'})}(),System.register("resources/custom/patient-count/patient-count.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("PatientCount",(h=g("patient-count"),l=h((j=function(){function a(){d(this,a),c(this,"result",k,this)}return a.prototype.attached=function(){},a}(),k=e(j.prototype,"result",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("PatientCount",l)}}}),System.register("resources/index.js",[],function(a,b){"use strict";function c(a){var b="converters",c=["box-style.converter","count-value-converter","datetime.value.converter","result-style.converter","result-value.converter"];a.globalResources.apply(a,c.map(function(a){return"./"+b+"/"+a}));var d="custom",e=["error/error","breakdown/breakdown","node-result/node-result","node-status/node-status","patient-count/patient-count"];a.globalResources.apply(a,e.map(function(a){return"./"+d+"/"+a}))}return a("configure",c),{setters:[],execute:function(){}}}),System.register("services/queries.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.notifications}],execute:function(){a("QueriesModel",(h=g=function b(a,d,e){var f=this;c(this,b);var g=d,h=40,i=0,j=0,k=null;b.prototype.load=function(){return g.fetchPreviousQueries(f.maxQueriesPerFetch()+f.loadedCount()).then(function(a){return j=a.rowCount,i=a.queryResults.length,a})["catch"](function(a){return console.log(a)}).then(l).then(function(b){k=b,a.publish(e.shrine.queriesReceived,k)})},b.prototype.totalQueries=function(){return j},b.prototype.loadedCount=function(){return i},b.prototype.maxQueriesPerFetch=function(){return h},b.prototype.moreToLoad=function(){return i<j},b.prototype.hasData=function(){return null!==k&&void 0!==k};var l=function(a){arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new Promise(function(b,c){for(var d=[],e=6,f=a.adapters,g=f.length,h=a.queryResults,i=0;i<g;i+=e){var j=m(f,i,e),k=f.slice(i,j),l=n(k,h);d.push({nodes:k,results:l})}b(d)})},m=function(a,b,c){var d=b+c;return d<a.length?d:a.length},n=function(a,b){var c=[];return b.forEach(function(b,d){var e={name:b.query.queryName,id:b.query.networkId,date:b.query.dateCreated,flagged:b.query.flagged===!0,flagMessage:b.query.flagMessage||null,nodeResults:[],status:b.adaptersToResults.reduce(function(a,c){var d="FINISHED"===c.status?a.finished+1:a.finished,e="ERROR"===c.status?a.error+1:a.error;return{error:e,finished:d,total:b.adaptersToResults.length}},{error:0,finished:0,total:b.adaptersToResults.length})};a.forEach(function(a){e.nodeResults.push(b.adaptersToResults.find(function(b){return b.adapterNode===a}))}),c.push(e)}),c}},g.inject=[d,e,f],i=h)),a("QueriesModel",i)}}}),function(){var a=System.amdDefine;a("shell.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return"<template><query-status></query-status></template>"})}(),System.register("services/container.js",["ramda"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f;return{setters:[function(a){d=a}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Container",f=function(){function a(b){c(this,a),this.__value=b}return a.of=function(b){return new a(function(){return b})},a.prototype.map=function(b){return this.hasNothing()?a.of(null):a.of(b(this.value))},a.prototype.join=function(){return this.hasNothing()?a.of(null):this.value},a.prototype.chain=function(a){return this.map(a).join()},a.prototype.hasNothing=function(){return null===this.value||void 0===this.value},a.prototype.ap=function(a){a.map(this.value)},e(a,[{key:"value",get:function(){return this.__value()}}]),a}()),a("Container",f)}}}),System.register("services/i2b2.service.js",["ramda","./container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("I2B2Service",(g=f=function b(a){c(this,b);var f=a?e.of(a):e.of(null),g=d.curry(function(a,b){return b.value?e.of(d.prop(a,b.value)):e.of(null)}),h=d.compose(g("i2b2"),g("window"),g("parent")),i=d.compose(g("CRC"),h),j=d.compose(g("events"),h),k=d.compose(g("SHRINE"),h);b.prototype.onResize=function(a){return j(f).map(function(b){return b.changedZoomWindows.subscribe(a)})},b.prototype.onHistory=function(a){return i(f).map(function(b){return b.ctrlr.history.events.onDataUpdate.subscribe(a)})},b.prototype.onQuery=function(a){return j(f).map(function(b){return b.afterQueryInit.subscribe(a)})},b.prototype.onNetworkId=function(a){return j(f).map(function(b){return b.networkIdReceived.subscribe(a)})},b.prototype.onViewSelected=function(a){return g("addEventListener",f).value?e.of(f.value.addEventListener("message",a,!1)):e.of(null)},b.prototype.onExport=function(a){return j(f).map(function(b){return b.exportQueryResult.subscribe(a)})},b.prototype.loadHistory=function(){return i(f).map(function(a){return a.view.history.doRefreshAll()})},b.prototype.loadQuery=function(a){return i(f).map(function(b){return b.ctrlr.QT.doQueryLoad(a)})},b.prototype.errorDetail=function(a){return k(f).map(function(b){return b.plugin.errorDetail(a)})},b.prototype.renameQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.queryRename(a,!1)})},b.prototype.flagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Flag({queryId:a,message:""})})},b.prototype.unflagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Unflag({queryId:a})})},b.prototype.publishQueryUnavailable=function(){return j(f).map(function(a){return a.queryResultUnavailable.fire()})},b.prototype.publishQueryAvailable=function(){return j(f).map(function(a){return a.queryResultAvailable.fire()})}},f.inject=[window],h=g)),a("I2B2Service",h)}}}),System.register("services/i2b2.pub-sub.js",["./pub-sub","./i2b2.service"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h,i,j;return{setters:[function(a){f=a.PubSub},function(a){g=a.I2B2Service}],execute:function(){a("I2B2PubSub",(i=h=function(a){function b(e){c(this,b);for(var f=arguments.length,g=Array(f>1?f-1:0),h=1;h<f;h++)g[h-1]=arguments[h];var i=d(this,a.call.apply(a,[this].concat(g)));return i.listen=function(){e.onResize(function(a,b){return b.find(function(a){return"ADD"===a.action})?function(){return i.publish(i.notifications.i2b2.tabMax)}:function(){return i.publish(i.notifications.i2b2.tabMin)}}),e.onHistory(function(){return i.publish(i.notifications.i2b2.historyRefreshed)}),e.onQuery(function(a,b){return i.publish(i.notifications.i2b2.queryStarted,b[0].name)}),e.onNetworkId(function(a,b){return i.publish(i.notifications.i2b2.networkIdReceived,b[0])}),e.onViewSelected(function(a){return i.publish(i.notifications.i2b2.viewSelected,a.data)}),e.onExport(function(){return i.publish(i.notifications.i2b2.exportQuery)}),i.subscribe(i.commands.i2b2.cloneQuery,function(a){return e.loadQuery(a)}),i.subscribe(i.commands.i2b2.showError,function(a){return e.errorDetail(a)}),i.subscribe(i.commands.i2b2.renameQuery,function(a){return e.renameQuery(a)}),i.subscribe(i.commands.i2b2.flagQuery,function(a){return e.flagQuery(a)}),i.subscribe(i.commands.i2b2.unflagQuery,function(a){return e.unflagQuery(a)}),i.subscribe(i.notifications.shrine.queryUnavailable,function(){return e.publishQueryUnavailable()}),i.subscribe(i.notifications.shrine.queryAvailable,function(){return e.publishQueryAvailable()})},i}return e(b,a),b}(f),h.inject=[g],j=i)),a("I2B2PubSub",j)}}}),System.register("services/query-export.js",["./pub-sub"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h;return{setters:[function(a){f=a.PubSub}],execute:function(){a("QueryExport",g=function(a){function b(){c(this,b);for(var e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];return d(this,a.call.apply(a,[this].concat(f)))}return e(b,a),b.prototype.listen=function(){this.subscribe(this.commands.shrine.exportResult,h)},b}(f)),a("QueryExport",g),h=function(a){var b=a.nodes.sort(),c=new Map,d=function(a){var b=a.resultType.i2b2Options.description;return b},e=function(a,b){return d(a)<=d(b)?-1:1};b.forEach(function(a){var b=a.breakdowns;return b.sort(e).forEach(function(a){var b,d=a.resultType.i2b2Options.description,e=a.results;return c.has(d)?(b=c.get(d)).add.apply(b,e.map(function(a){return a.dataKey}).sort()):c.set(d,new Set(e.map(function(a){return a.dataKey}).sort()))})});var f="data:text/csv;charset=utf-8,SHRINE QUERY RESULTS (OBFUSCATED PATIENT COUNTS),"+[""].concat(b.map(function(a){return a.adapterNode}).join(",")),g="\nAll Patients,"+[""].concat(b.map(function(a){return a.count}).join(",")),h=[];c.forEach(function(a,c){h.push.apply(h,[""].concat(Array.from(a).map(function(a){var d=c.split(" ").shift()+","+a,e=b.map(function(b){var d=b.breakdowns,e=d.find(function(a){var b=a.resultType.i2b2Options.description;a.results;return b===c}),f=e?e.results.find(function(b){return b.dataKey===a}):void 0;return f?f.value>0?f.value:0:"unavailable"});return d+","+e.join(",")})))});var i=encodeURI(""+f+g+h.join("\n")),j=document.createElement("a");j.setAttribute("href",i),j.setAttribute("download","export.csv"),document.body.appendChild(j),j.click(),document.body.removeChild(j)}}}}),System.register("shell.js",["services/i2b2.pub-sub","services/query-export"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.I2B2PubSub},function(a){e=a.QueryExport}],execute:function(){a("Shell",(g=f=function b(a,d){c(this,b),a.listen(),d.listen()},f.inject=[d,e],h=g)),a("Shell",h)}}}),System.register("views/index.js",[],function(a,b){"use strict";function c(a){var b=["views/query-status/query-status"];a.globalResources.apply(a,b)}return a("configure",c),{setters:[],execute:function(){}}}),function(){var a=System.amdDefine;a("views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="mailto"><div class="content"><p>If you have questions about your query results or this SHRINE network, contact the Data Steward at your site.</p><div class="email js-email"><button class="button button--large js-button" click.delegate="openEmail()">Email Data Steward</button></div></div></div></template>'})}(),System.register("views/mailto/mailto.service.js",["repository/qep.repository"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g;return{setters:[function(a){d=a.QEPRepository}],execute:function(){a("MailToService",(f=e=function(){function a(b){c(this,a),this.repository=b}return a.prototype.fetchStewardEmail=function(){return this.repository.fetchStewardEmail()},a}(),e.inject=[d],g=f)),a("MailToService",g)}}}),System.register("views/mailto/mailto.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("MailConfig",c={mailto:"mailto:",subject:encodeURIComponent("Question from a SHRINE User"),body:encodeURIComponent("Please enter the suggested information and your question. Your data steward will reply to this email.\n \n\n***Never send patient information, passwords, or other sensitive information by email****\n \nName:\n \nTitle:\n \nUser name (to log into SHRINE):\n \nTelephone Number (optional):\n \nPreferred email address (optional):\n \n\nQuestion or Comment:")}),a("MailConfig",c)}}}),System.register("views/mailto/mailto.js",["views/mailto/mailto.service","views/mailto/mailto.config"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.MailToService},function(a){e=a.MailConfig}],execute:function(){a("MailTo",(g=f=function(){function a(b,d){c(this,a),this.service=b,this.config=d}return a.prototype.openEmail=function(){var a=this;this.service.fetchStewardEmail().then(function(b){window.top.location="mailto:"+b+"?subject="+a.config.subject+"&body="+a.config.body})},a}(),f.inject=[d,e],h=g)),a("MailTo",h)}}}),function(){var a=System.amdDefine;a("views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="height: 100%; overflow: auto"><div style="display: flex" if.one-way="status.query.queryName"><div style="flex:1">Status of Query: ${status.query.queryName}</div><div style="flex:1" if.one-way="status.nodes.length">Last Updated: ${status.updated | dateTime}</div><div style="flex:1" if.one-way="!status.nodes.length">Waiting on response from network...</div></div><br><node-status repeat.for="node of status.nodes" result.one-way="node"></node-status><span if.one-way="status.nodes.length"><br><span>Completed query counts and breakdowns are shown below:</span><div style="width: 100%; border-bottom: 1px solid"></div><br></span><node-result repeat.for="node of status.nodes" result.one-way="node" query-name.one-way="status.query.queryName"></node-result></div></template>'})}(),System.register("repository/qep.repository.js",["aurelia-fetch-client","fetch"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.HttpClient},function(a){}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("QEPRepository",(g=f=function(){function a(b){var d=this;c(this,a),b.configure(function(a){a.useStandardConfiguration().withBaseUrl(d.url).withDefaults({headers:{Authorization:"Basic "+d.auth}})}),this.http=b}return a.prototype.fetchPreviousQueries=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.http.fetch("qep/queryResults?limit="+a+"&skip="+b).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchNetworkId=function(a){return this.http.fetch("qep/networkId?queryName='"+a+"'").then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchQuery=function(a,b,c){return this.http.fetch("qep/queryResult/"+a+"?timeoutSeconds="+b+"&afterVersion="+c).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchStewardEmail=function(){return this.http.fetch("data?key=stewardEmail").then(function(a){return a.json()}).then(function(a){return a.indexOf('"')>0?a.split('"')[1]:a})["catch"](function(){return""})},e(a,[{key:"url",get:function(){var a=document.URL,b=":6443/shrine-metadata/";return a.substring(0,a.lastIndexOf(":"))+b}},{key:"auth",get:function(){var a=sessionStorage.getItem("shrine.auth");return sessionStorage.removeItem("shrine.auth"),a}}]),a}(),f.inject=[d],h=g)),a("QEPRepository",h)}}}),System.register("services/query-status.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k,l;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.commands,g=a.notifications}],execute:function(){h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},k=function(){var a=!1;return function(b){return a=void 0===b?a:!!b}}(),a("QueryStatusModel",(j=i=function b(a,d,e){c(this,b);var g=function(b){return a.publish(e.shrine.queryReceived,b)},i=function(a){return console.log("ERROR: "+a)},j=function(a){return new Promise(function(b,c){var d=[].concat(a.results),e=a.dataVersion,f=d.length>0&&d.filter(function(a){return"ERROR,COMPLETED,FINISHED".includes(a.status)}).length===d.length,g=h({},a.query,{complete:f});b({query:g,nodes:d,dataVersion:e})})},k=function(a){d.fetchQuery(a.networkId,a.timeoutSeconds,a.dataVersion).then(function(a){return j(a); +})["catch"](function(a){return i(a)}).then(function(a){return g(a)})},l=function(){a.subscribe(f.shrine.fetchQuery,k)};l()},i.inject=[d,e,g],l=j)),a("QueryStatusModel",l)}}}),System.register("services/shrine.messages.js",[],function(a,b){"use strict";var c,d;return{setters:[],execute:function(){a("notifications",c={i2b2:{tabMax:"notification.from.i2b2.tab.max",tabMin:"notification.from.i2b2.tab.min",viewSelected:"notification.from.i2b2.tab.selected",historyRefreshed:"notification.from.i2b2.history.refreshed",queryStarted:"notification.from.i2b2.query.started",messageReceived:"notification.from.i2b2.message.received",networkIdReceived:"notification.from.i2b2.networkId.receieved",exportQuery:"notification.from.i2b2.export.query"},shrine:{queriesReceived:"notification.from.shrine.queries.received",queryReceived:"notification.from.shrine.query.recieved",queryUnavailable:"notification.from.shrine.query.unavailable",queryAvailable:"notification.from.shrine.query.available"}}),a("notifications",c),a("commands",d={i2b2:{cloneQuery:"command.to.i2b2.clone.query",showError:"command.to.i2b2.show.error",flagQuery:"command.to.i2b2.flag.query",unflagQuery:"command.to.i2b2.unflag.query",renameQuery:"command.to.i2b2.rename.query"},shrine:{fetchQuery:"command.to.shrine.fetch.query",exportResult:"command.to.shrine.export.result"}}),a("commands",d)}}}),System.register("services/pub-sub.js",["aurelia-event-aggregator","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.commands,f=a.notifications}],execute:function(){a("PubSub",(h=g=function b(a,d,e){c(this,b),this.commands=d,this.notifications=e,this.publish=function(b,c){return a.publish(b,c)},this.subscribe=function(b,c){return a.subscribe(b,c)}},g.inject=[d,e,f],i=h)),a("PubSub",i)}}}),System.register("views/query-status/query-status.js",["aurelia-framework","services/query-status.model","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;return{setters:[function(a){h=a.customElement,i=a.observable},function(a){j=a.QueryStatusModel},function(a){k=a.PubSub}],execute:function(){l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},a("QueryStatus",(m=h("query-status"),s=m((r=q=function(a){function b(f){d(this,b);for(var g=arguments.length,h=Array(g>1?g-1:0),i=1;i<g;i++)h[i-1]=arguments[i];var j=e(this,a.call.apply(a,[this].concat(h)));return c(j,"status",p,j),v.set(j,{isDevEnv:document.location.href.includes("http://localhost:8000/"),exportAvailable:!1}),j}return f(b,a),b.prototype.statusChanged=function(a,b){a.nodes&&a.nodes.length?(v.get(this).exportAvailable=!0,this.publish(this.notifications.shrine.queryAvailable)):(v.get(this).exportAvailable=!1,this.publish(this.notifications.shrine.queryUnavailable))},b.prototype.attached=function(){var a=this;this.subscribe(this.notifications.i2b2.queryStarted,function(b){a.status=w(),a.status.query.queryName=b}),this.subscribe(this.notifications.i2b2.networkIdReceived,function(b){var c=b.networkId,d=w(),e=d.nodes;d.query.queryName=b.name||d.query.queryName,a.status=a.status?l({},a.status,{nodes:e}):d,a.publish(a.commands.shrine.fetchQuery,{networkId:c,timeoutSeconds:t,dataVersion:u})}),this.subscribe(this.notifications.i2b2.exportQuery,function(){a.publish(a.commands.shrine.exportResult,l({},a.status))}),this.subscribe(this.notifications.shrine.queryReceived,function(b){var c=b.query,d=b.nodes,e=b.dataVersion,f=Number(new Date),g=b.query.complete,h=b.query.networkId;a.status=l({},a.status,{query:c,nodes:d,updated:f}),g||window.setTimeout(function(){return a.publish(a.commands.shrine.fetchQuery,{networkId:h,dataVersion:e,timeoutSeconds:t})},5e3)}),v.get(this).isDevEnv&&this.publish(this.notifications.i2b2.networkIdReceived,{networkId:1,name:"started query"})},b}(k),q.inject=[j],o=r,p=g(o.prototype,"status",[i],{enumerable:!0,initializer:null}),n=o))||n)),a("QueryStatus",s),t=15,u=-1,v=new WeakMap,w=function(a){return{query:{queryName:null,updated:null,complete:!1},nodes:null}}}}}),function(){var a=System.amdDefine;a("views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><ul class="context-menu ${context.class || \'hide\'}" mouseleave.trigger="context.class=\'hide\'" css="top: ${context.y - 40}; left: ${context.x - 50};"><li if.bind="context.isCount"><a click.delegate="refreshHistory()" href="#"><i class="fa fa-bar-chart-o"></i>Breakdown</a></li><li click.delegate="cloneQuery(context.query.id)"><a href="#"><i class="fa fa-files-o"></i> Clone</a></li><li><a click.delegate="renameQuery(context.query.id)" href="#"><i class="fa fa-edit"></i> Rename</a></li><!--li><a click.delegate="flagQuery(context.query.id)" href="#"><i class="fa fa-flag"></i> Flag</a></li--><!--li><a click.delegate="unflagQuery(context.query.id)" href="#"><i class="fa fa-flag-o"></i> Unflag</a></li--></ul></template>'})}(),System.register("views/query-viewer/context-menu/context-menu.js",["aurelia-framework","aurelia-event-aggregator","common/shrine.messages"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m,n;return{setters:[function(a){f=a.bindable},function(a){g=a.EventAggregator},function(a){h=a.commands}],execute:function(){a("ContextMenu",(l=k=function b(a,c){var e=this;d(this,b),m.call(this),b.prototype.cloneQuery=function(b){a.publish(c.i2b2.cloneQuery,b),e.context["class"]="hide"},b.prototype.renameQuery=function(b){a.publish(c.i2b2.renameQuery,b),e.context["class"]="hide"},b.prototype.flagQuery=function(b){a.publish(c.i2b2.flagQuery,b),e.context["class"]="hide"},b.prototype.unflagQuery=function(b){a.publish(c.i2b2.unflagQuery,b),e.context["class"]="hide"}},k.inject=[g,h],m=function(){c(this,"context",j,this)},i=l,j=e(i.prototype,"context",[f],{enumerable:!0,initializer:null}),n=i)),a("ContextMenu",n)}}}),System.register("views/query-viewer/date.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY")},a}()),a("DateValueConverter",e)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="loader"><h1>${status}</h1><div class="slider"><div class="line"></div><div class="break dot1"></div><div class="break dot2"></div><div class="break dot3"></div></div></div></template>'})}(),System.register("views/query-viewer/loading-bar/loading-bar.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("LoadingBar",(g=function b(){d(this,b),c(this,"status",h,this)},h=e(g.prototype,"status",[f],{enumerable:!0,initializer:null}),i=g)),a("LoadingBar",i)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return""})}(),function(){var a=System.amdDefine;a("views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css"><div class="paginator"><ol class="btn-group"><li class="btn-group__item" click.delegate="pageIndex = index - 1"><i class="i-chevron-left"></i></li><li repeat.for="page of pages" class="btn-group__item" click.delegate="pageIndex = $index"><button class="btn btn--basic ${index === $index? \'current\' : \'\'}">${$index + 1}</button></li><li class="btn-group__item" click.delegate="pageIndex = index + 1"><i class="i-chevron-right"></i></li></ol></div></template>'})}(),System.register("views/query-viewer/paginator/paginator.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable}],execute:function(){g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Paginator",(k=j=function(){function a(b){var e=this;d(this,a),c(this,"pages",i,this),a.prototype.init=function(){e.index=0,e.element=b},this.init()}return g(a,[{key:"pageIndex",set:function(a){var b=this.pages.length-1;this.index=a<0?0:a>b?b:a,this.element.dispatchEvent(new CustomEvent("paginator-click",{detail:{index:this.index},bubbles:!0,cancelable:!0}))}}]),a}(),j.inject=[Element],h=k,i=e(h.prototype,"pages",[f],{enumerable:!0,initializer:null}),l=h)),a("Paginator",l)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="tooltip"><span ref="tooltipContent" data-line1="Total: ${total}" data-line2="Available: ${finished}, Error: ${error}, Pending: ${pending}"><svg viewbox="0 0 35 35" class="query-status"><circle cx="18" cy="16" r="12" class="countdown__background"/><circle cx="18" cy="16" r="12" class="error__progress" css="stroke-dashoffset: ${errorOffset}"/><circle cx="18" cy="16" r="12" class="ready__progress" css="stroke-dashoffset: ${readyOffset}"/></svg></span></div></template>'})}(),System.register("views/query-viewer/query-status/query-status.js",["aurelia-framework","ramda"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable},function(a){g=a}],execute:function(){a("QueryStatus",(k=j=function(){function a(b){d(this,a),l.call(this),this.floor=b.floor}return a.prototype.attached=function(){var a=75,b=g.curry(function(a,b,c,d){return a(d/c*b)})(this.floor,a,this.status.total),c=this.status,d=b(c.finished),e=b(c.error);this.readyOffset=100-d,this.errorOffset=this.readyOffset-e,this.finished=c.finished,this.error=c.error,this.pending=c.total-(c.finished+c.error),this.total=c.total},a}(),j.inject=[Math],l=function(){c(this,"status",i,this)},h=k,i=e(h.prototype,"status",[f],{enumerable:!0,initializer:null}),m=h)),a("QueryStatus",m)}}}),System.register("views/query-viewer/query-viewer.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("QueryViewerConfig",c={maxNodesPerScreen:10,maxQueriesPerScroll:40}),a("QueryViewerConfig",c)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><require from="views/query-viewer/result-style.converter"></require><require from="views/query-viewer/result-value.converter"></require><require from="views/query-viewer/box-style.converter"></require><require from="views/query-viewer/context-menu/context-menu"></require><require from="views/query-viewer/loading-bar/loading-bar"></require><require from="views/query-viewer/paginator/paginator"></require><require from="views/query-viewer/date.converter"></require><require from="views/query-viewer/query-status/query-status"></require><span class="query-viewer"><loading-bar status.bind="\'Loading...\'" if.bind="showLoader"></loading-bar><div style="width: 100%; text-align: center"><paginator pages.bind="pages" paginator-click.delegate="updatePage($event)" if.bind="pages.length > 1"></paginator></div><div class="flex-table"><div class="flex-table-row node-header"><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div repeat.for="node of page.nodes" class="flex-table-item">${node}</div></div></div><div class="flex-table query-viewer ${vertStyle}" scroll.trigger="onScroll($event)"><div><!-- @todo: create running query component --><div class="flex-table-row" if.bind="runningQueryName"><div class="flex-table-item"></div><div class="flex-table-item">${runningQueryName}</div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item" repeat.for="node of page.nodes" style="color: #00FF00">RUNNING</div></div><div repeat.for="result of page.results" class="flex-table-row"><div class="flex-table-item"><i if.bind="result.flagged" class="fa fa-flag"></i> <i if.bind="!result.flagged" class="fa fa-flag-o"></i></div><div class="flex-table-item" click.delegate="context = getContext($event, result)"><div class="ellipses">${result.name}</div></div><div class="flex-table-item" click.delegate="context = getContext($event, result)">${result.date | date}</div><div class="flex-table-item"><query-status status.bind="result.status"></query-status></div><div repeat.for="nodeResult of result.nodeResults" class="flex-table-item" click.delegate="context = getContext($event, result)"><a if.bind="nodeResult.status === \'ERROR\'" style="text-decoration: underline; color:red" click.delegate="publishError($event, nodeResult)">${nodeResult.status} </a>${nodeResult}</div></div><div class="flex-table-row" if.bind="loadingInfiniteScroll"><div style="width: 100%; text-align: center; font-size: 1.5rem; background:rgba(217, 236, 240, .05); text-align:center; color: rgba(0, 0, 0, .20)"><i class="fa fa-spinner fa-spin" style="color: inherit"></i> Loading...</div></div></div></div><!-- context menu --><context-menu context.bind="context"></context-menu></span></template>'})}(),System.register("views/query-viewer/scroll.service.js",["ramda","common/container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("ScrollService",(g=f=function b(){c(this,b)},f.either=d.curry(function(a,b,c){return e.of(d.prop(a,c)||b)}),f.target=function(a,b){return h.either("target",b,b).chain(function(b){return h.either(a,0,b)})},f.clientHeight=function(a){return h.target("clientHeight",a)},f.scrollHeight=function(a){return h.target("scrollHeight",a)},f.scrollTop=function(a){return h.target("scrollTop",a)},f.userScroll=function(a){return h.clientHeight(a).map(function(b){return b+h.scrollTop(a).value})},f.scrollRatio=function(a){return h.userScroll(a).map(function(b){return b/h.scrollHeight(a).value})},h=g)),a("ScrollService",h)}}}),System.register("views/query-viewer/query-viewer.js",["aurelia-event-aggregator","common/queries.model","./scroll.service","common/shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QueriesModel},function(a){f=a.ScrollService},function(a){g=a.notifications,h=a.commands}],execute:function(){a("QueryViewer",(j=i=function(){function a(b,d,e,g){var h=this;c(this,a),a.prototype.init=function(){h.pageIndex=0,h.showLoader=!0,h.vertStyle="v-min",h.runningQueryName=null},this.init(),a.prototype.setToPage=function(a){h.pageIndex=a,h.page=h.pages[h.pageIndex]};var i=function(a){return 1===f.scrollRatio(a).value};a.prototype.onScroll=function(a){i(a)&&!h.loadingInfiniteScroll&&d.moreToLoad()&&(h.loadingInfiniteScroll=!0,d.load())},a.prototype.publishError=function(a,c){return a.stopPropagation(),b.publish(g.i2b2.showError,c)},a.prototype.getContext=function(a,b,c){return{x:a.pageX,y:a.pageY,"class":"show",query:b,isCount:void 0!==c,count:c}},b.subscribe(e.i2b2.historyRefreshed,function(){return d.load()}),b.subscribe(e.i2b2.tabMax,function(){return h.vertStyle="v-full"}),b.subscribe(e.i2b2.tabMin,function(){return h.vertStyle="v-min"}),b.subscribe(e.i2b2.queryStarted,function(a){return h.runningQueryName=a}),b.subscribe(e.shrine.queriesReceived,function(a){h.pages=a,h.page=h.pages[0],h.runningQueryName=null,h.loadingInfiniteScroll=!1,h.showLoader=!1})}return a.prototype.updatePage=function(a){a.stopPropagation();var b=event.detail.index;this.page=this.pages[b]},a}(),i.inject=[d,e,g,h],k=j)),a("QueryViewer",k)}}}); \ No newline at end of file diff --git a/shrine-webclient/src/main/js/client/js-shrine/dist/resources/custom/error/error.html b/shrine-webclient/src/main/js/client/js-shrine/dist/resources/custom/error/error.html index eb6bf08d1..be63117b4 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/dist/resources/custom/error/error.html +++ b/shrine-webclient/src/main/js/client/js-shrine/dist/resources/custom/error/error.html @@ -1 +1 @@ -<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></template> \ No newline at end of file +<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">${result.statusDescription}</span></b></a></b></span></template> \ No newline at end of file diff --git a/shrine-webclient/src/main/js/client/js-shrine/export/config.js b/shrine-webclient/src/main/js/client/js-shrine/export/config.js index b93a865da..6b89b0961 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/export/config.js +++ b/shrine-webclient/src/main/js/client/js-shrine/export/config.js @@ -1,764 +1,764 @@ System.config({ defaultJSExtensions: true, transpiler: false, paths: { "*": "dist/*", "github:*": "jspm_packages/github/*", "npm:*": "jspm_packages/npm/*" }, map: { "aurelia-animator-css": "npm:aurelia-animator-css@1.0.1", "aurelia-bootstrapper": "npm:aurelia-bootstrapper@1.0.0", "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-fetch-client": "npm:aurelia-fetch-client@1.0.1", "aurelia-framework": "npm:aurelia-framework@1.0.6", "aurelia-history-browser": "npm:aurelia-history-browser@1.0.0", "aurelia-loader-default": "npm:aurelia-loader-default@1.0.0", "aurelia-logging-console": "npm:aurelia-logging-console@1.0.0", "aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0", "aurelia-polyfills": "npm:aurelia-polyfills@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0", "aurelia-templating-resources": "npm:aurelia-templating-resources@1.1.1", "aurelia-templating-router": "npm:aurelia-templating-router@1.0.0", "bluebird": "npm:bluebird@3.4.1", "bootstrap": "github:twbs/bootstrap@3.3.7", "fetch": "github:github/fetch@1.0.0", "font-awesome": "npm:font-awesome@4.7.0", "jquery": "npm:jquery@2.2.4", "moment": "npm:moment@2.18.1", "ramda": "npm:ramda@0.23.0", "text": "github:systemjs/plugin-text@0.0.8", "github:jspm/nodelibs-assert@0.1.0": { "assert": "npm:assert@1.4.1" }, "github:jspm/nodelibs-buffer@0.1.1": { "buffer": "npm:buffer@5.0.6" }, "github:jspm/nodelibs-process@0.1.2": { "process": "npm:process@0.11.10" }, "github:jspm/nodelibs-util@0.1.0": { "util": "npm:util@0.10.3" }, "github:jspm/nodelibs-vm@0.1.0": { "vm-browserify": "npm:vm-browserify@0.0.4" }, "github:twbs/bootstrap@3.3.7": { "jquery": "npm:jquery@2.2.4" }, "npm:assert@1.4.1": { "assert": "github:jspm/nodelibs-assert@0.1.0", "buffer": "github:jspm/nodelibs-buffer@0.1.1", "process": "github:jspm/nodelibs-process@0.1.2", "util": "npm:util@0.10.3" }, "npm:aurelia-animator-css@1.0.1": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-binding@1.0.9": { "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0" }, "npm:aurelia-bootstrapper@1.0.0": { "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-framework": "npm:aurelia-framework@1.0.6", "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-history-browser": "npm:aurelia-history-browser@1.0.0", "aurelia-loader-default": "npm:aurelia-loader-default@1.0.0", "aurelia-logging-console": "npm:aurelia-logging-console@1.0.0", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-pal-browser": "npm:aurelia-pal-browser@1.0.0", "aurelia-polyfills": "npm:aurelia-polyfills@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1", "aurelia-templating-binding": "npm:aurelia-templating-binding@1.0.0", "aurelia-templating-resources": "npm:aurelia-templating-resources@1.1.1", "aurelia-templating-router": "npm:aurelia-templating-router@1.0.0" }, "npm:aurelia-dependency-injection@1.3.1": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-event-aggregator@1.0.1": { "aurelia-logging": "npm:aurelia-logging@1.3.1" }, "npm:aurelia-framework@1.0.6": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-history-browser@1.0.0": { "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-loader-default@1.0.0": { "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-loader@1.0.0": { "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-path": "npm:aurelia-path@1.1.1" }, "npm:aurelia-logging-console@1.0.0": { "aurelia-logging": "npm:aurelia-logging@1.3.1" }, "npm:aurelia-metadata@1.0.3": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-pal-browser@1.0.0": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-polyfills@1.1.1": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-route-recognizer@1.1.0": { "aurelia-path": "npm:aurelia-path@1.1.1" }, "npm:aurelia-router@1.3.0": { "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-event-aggregator": "npm:aurelia-event-aggregator@1.0.1", "aurelia-history": "npm:aurelia-history@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-route-recognizer": "npm:aurelia-route-recognizer@1.1.0" }, "npm:aurelia-task-queue@1.1.0": { "aurelia-pal": "npm:aurelia-pal@1.3.0" }, "npm:aurelia-templating-binding@1.0.0": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating-resources@1.1.1": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating-router@1.0.0": { "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-router": "npm:aurelia-router@1.3.0", "aurelia-templating": "npm:aurelia-templating@1.1.1" }, "npm:aurelia-templating@1.1.1": { "aurelia-binding": "npm:aurelia-binding@1.0.9", "aurelia-dependency-injection": "npm:aurelia-dependency-injection@1.3.1", "aurelia-loader": "npm:aurelia-loader@1.0.0", "aurelia-logging": "npm:aurelia-logging@1.3.1", "aurelia-metadata": "npm:aurelia-metadata@1.0.3", "aurelia-pal": "npm:aurelia-pal@1.3.0", "aurelia-path": "npm:aurelia-path@1.1.1", "aurelia-task-queue": "npm:aurelia-task-queue@1.1.0" }, "npm:bluebird@3.4.1": { "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:buffer@5.0.6": { "base64-js": "npm:base64-js@1.2.0", "ieee754": "npm:ieee754@1.1.8" }, "npm:font-awesome@4.7.0": { "css": "github:systemjs/plugin-css@0.1.33" }, "npm:inherits@2.0.1": { "util": "github:jspm/nodelibs-util@0.1.0" }, "npm:process@0.11.10": { "assert": "github:jspm/nodelibs-assert@0.1.0", "fs": "github:jspm/nodelibs-fs@0.1.2", "vm": "github:jspm/nodelibs-vm@0.1.0" }, "npm:ramda@0.23.0": { "assert": "github:jspm/nodelibs-assert@0.1.0", "process": "github:jspm/nodelibs-process@0.1.2", "util": "github:jspm/nodelibs-util@0.1.0", "vm": "github:jspm/nodelibs-vm@0.1.0" }, "npm:util@0.10.3": { "inherits": "npm:inherits@2.0.1", "process": "github:jspm/nodelibs-process@0.1.2" }, "npm:vm-browserify@0.0.4": { "indexof": "npm:indexof@0.0.1" } }, bundles: { + "app-build.js": [ + "main.js", + "repository/qep.repository.js", + "resources/converters/box-style.converter.js", + "resources/converters/count-value-converter.js", + "resources/converters/datetime.value.converter.js", + "resources/converters/result-style.converter.js", + "resources/converters/result-value.converter.js", + "resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/breakdown/breakdown.js", + "resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/error/error.js", + "resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/node-result/node-result.js", + "resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/node-status/node-status.js", + "resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js", + "resources/custom/patient-count/patient-count.js", + "resources/index.js", + "services/container.js", + "services/i2b2.pub-sub.js", + "services/i2b2.service.js", + "services/pub-sub.js", + "services/queries.model.js", + "services/query-export.js", + "services/query-status.model.js", + "services/shrine.messages.js", + "shell.html!github:systemjs/plugin-text@0.0.8.js", + "shell.js", + "views/index.js", + "views/mailto/mailto.config.js", + "views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js", + "views/mailto/mailto.js", + "views/mailto/mailto.service.js", + "views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-status/query-status.js", + "views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/context-menu/context-menu.js", + "views/query-viewer/date.converter.js", + "views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/loading-bar/loading-bar.js", + "views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/paginator/paginator.js", + "views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/query-status/query-status.js", + "views/query-viewer/query-viewer.config.js", + "views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js", + "views/query-viewer/query-viewer.js", + "views/query-viewer/scroll.service.js" + ], "aurelia.js": [ "github:github/fetch@1.0.0.js", "github:github/fetch@1.0.0/fetch.js", "github:jspm/nodelibs-process@0.1.2.js", "github:jspm/nodelibs-process@0.1.2/index.js", "npm:aurelia-binding@1.0.9.js", "npm:aurelia-binding@1.0.9/aurelia-binding.js", "npm:aurelia-bootstrapper@1.0.0.js", "npm:aurelia-bootstrapper@1.0.0/aurelia-bootstrapper.js", "npm:aurelia-dependency-injection@1.3.1.js", "npm:aurelia-dependency-injection@1.3.1/aurelia-dependency-injection.js", "npm:aurelia-event-aggregator@1.0.1.js", "npm:aurelia-event-aggregator@1.0.1/aurelia-event-aggregator.js", "npm:aurelia-fetch-client@1.0.1.js", "npm:aurelia-fetch-client@1.0.1/aurelia-fetch-client.js", "npm:aurelia-framework@1.0.6.js", "npm:aurelia-framework@1.0.6/aurelia-framework.js", "npm:aurelia-history-browser@1.0.0.js", "npm:aurelia-history-browser@1.0.0/aurelia-history-browser.js", "npm:aurelia-history@1.0.0.js", "npm:aurelia-history@1.0.0/aurelia-history.js", "npm:aurelia-loader-default@1.0.0.js", "npm:aurelia-loader-default@1.0.0/aurelia-loader-default.js", "npm:aurelia-loader@1.0.0.js", "npm:aurelia-loader@1.0.0/aurelia-loader.js", "npm:aurelia-logging-console@1.0.0.js", "npm:aurelia-logging-console@1.0.0/aurelia-logging-console.js", "npm:aurelia-logging@1.3.1.js", "npm:aurelia-logging@1.3.1/aurelia-logging.js", "npm:aurelia-metadata@1.0.3.js", "npm:aurelia-metadata@1.0.3/aurelia-metadata.js", "npm:aurelia-pal-browser@1.0.0.js", "npm:aurelia-pal-browser@1.0.0/aurelia-pal-browser.js", "npm:aurelia-pal@1.3.0.js", "npm:aurelia-pal@1.3.0/aurelia-pal.js", "npm:aurelia-path@1.1.1.js", "npm:aurelia-path@1.1.1/aurelia-path.js", "npm:aurelia-polyfills@1.1.1.js", "npm:aurelia-polyfills@1.1.1/aurelia-polyfills.js", "npm:aurelia-route-recognizer@1.1.0.js", "npm:aurelia-route-recognizer@1.1.0/aurelia-route-recognizer.js", "npm:aurelia-router@1.3.0.js", "npm:aurelia-router@1.3.0/aurelia-router.js", "npm:aurelia-task-queue@1.1.0.js", "npm:aurelia-task-queue@1.1.0/aurelia-task-queue.js", "npm:aurelia-templating-binding@1.0.0.js", "npm:aurelia-templating-binding@1.0.0/aurelia-templating-binding.js", "npm:aurelia-templating-resources@1.1.1.js", "npm:aurelia-templating-resources@1.1.1/abstract-repeater.js", "npm:aurelia-templating-resources@1.1.1/analyze-view-factory.js", "npm:aurelia-templating-resources@1.1.1/array-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/attr-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/aurelia-hide-style.js", "npm:aurelia-templating-resources@1.1.1/aurelia-templating-resources.js", "npm:aurelia-templating-resources@1.1.1/binding-mode-behaviors.js", "npm:aurelia-templating-resources@1.1.1/binding-signaler.js", "npm:aurelia-templating-resources@1.1.1/compose.js", "npm:aurelia-templating-resources@1.1.1/css-resource.js", "npm:aurelia-templating-resources@1.1.1/debounce-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/dynamic-element.js", "npm:aurelia-templating-resources@1.1.1/focus.js", "npm:aurelia-templating-resources@1.1.1/hide.js", "npm:aurelia-templating-resources@1.1.1/html-resource-plugin.js", "npm:aurelia-templating-resources@1.1.1/html-sanitizer.js", "npm:aurelia-templating-resources@1.1.1/if.js", "npm:aurelia-templating-resources@1.1.1/map-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/null-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/number-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/repeat-strategy-locator.js", "npm:aurelia-templating-resources@1.1.1/repeat-utilities.js", "npm:aurelia-templating-resources@1.1.1/repeat.js", "npm:aurelia-templating-resources@1.1.1/replaceable.js", "npm:aurelia-templating-resources@1.1.1/sanitize-html.js", "npm:aurelia-templating-resources@1.1.1/set-repeat-strategy.js", "npm:aurelia-templating-resources@1.1.1/show.js", "npm:aurelia-templating-resources@1.1.1/signal-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/throttle-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/update-trigger-binding-behavior.js", "npm:aurelia-templating-resources@1.1.1/with.js", "npm:aurelia-templating-router@1.0.0.js", "npm:aurelia-templating-router@1.0.0/aurelia-templating-router.js", "npm:aurelia-templating-router@1.0.0/route-href.js", "npm:aurelia-templating-router@1.0.0/route-loader.js", "npm:aurelia-templating-router@1.0.0/router-view.js", "npm:aurelia-templating@1.1.1.js", "npm:aurelia-templating@1.1.1/aurelia-templating.js", "npm:font-awesome@4.7.0.js", "npm:font-awesome@4.7.0/css/font-awesome.css!github:systemjs/plugin-css@0.1.33.js", "npm:jquery@2.2.4.js", "npm:jquery@2.2.4/dist/jquery.js", "npm:moment@2.18.1.js", "npm:moment@2.18.1/moment.js", "npm:process@0.11.10.js", "npm:process@0.11.10/browser.js", "npm:ramda@0.23.0.js", "npm:ramda@0.23.0/index.js", "npm:ramda@0.23.0/src/F.js", "npm:ramda@0.23.0/src/T.js", "npm:ramda@0.23.0/src/__.js", "npm:ramda@0.23.0/src/add.js", "npm:ramda@0.23.0/src/addIndex.js", "npm:ramda@0.23.0/src/adjust.js", "npm:ramda@0.23.0/src/all.js", "npm:ramda@0.23.0/src/allPass.js", "npm:ramda@0.23.0/src/always.js", "npm:ramda@0.23.0/src/and.js", "npm:ramda@0.23.0/src/any.js", "npm:ramda@0.23.0/src/anyPass.js", "npm:ramda@0.23.0/src/ap.js", "npm:ramda@0.23.0/src/aperture.js", "npm:ramda@0.23.0/src/append.js", "npm:ramda@0.23.0/src/apply.js", "npm:ramda@0.23.0/src/applySpec.js", "npm:ramda@0.23.0/src/ascend.js", "npm:ramda@0.23.0/src/assoc.js", "npm:ramda@0.23.0/src/assocPath.js", "npm:ramda@0.23.0/src/binary.js", "npm:ramda@0.23.0/src/bind.js", "npm:ramda@0.23.0/src/both.js", "npm:ramda@0.23.0/src/call.js", "npm:ramda@0.23.0/src/chain.js", "npm:ramda@0.23.0/src/clamp.js", "npm:ramda@0.23.0/src/clone.js", "npm:ramda@0.23.0/src/comparator.js", "npm:ramda@0.23.0/src/complement.js", "npm:ramda@0.23.0/src/compose.js", "npm:ramda@0.23.0/src/composeK.js", "npm:ramda@0.23.0/src/composeP.js", "npm:ramda@0.23.0/src/concat.js", "npm:ramda@0.23.0/src/cond.js", "npm:ramda@0.23.0/src/construct.js", "npm:ramda@0.23.0/src/constructN.js", "npm:ramda@0.23.0/src/contains.js", "npm:ramda@0.23.0/src/converge.js", "npm:ramda@0.23.0/src/countBy.js", "npm:ramda@0.23.0/src/curry.js", "npm:ramda@0.23.0/src/curryN.js", "npm:ramda@0.23.0/src/dec.js", "npm:ramda@0.23.0/src/defaultTo.js", "npm:ramda@0.23.0/src/descend.js", "npm:ramda@0.23.0/src/difference.js", "npm:ramda@0.23.0/src/differenceWith.js", "npm:ramda@0.23.0/src/dissoc.js", "npm:ramda@0.23.0/src/dissocPath.js", "npm:ramda@0.23.0/src/divide.js", "npm:ramda@0.23.0/src/drop.js", "npm:ramda@0.23.0/src/dropLast.js", "npm:ramda@0.23.0/src/dropLastWhile.js", "npm:ramda@0.23.0/src/dropRepeats.js", "npm:ramda@0.23.0/src/dropRepeatsWith.js", "npm:ramda@0.23.0/src/dropWhile.js", "npm:ramda@0.23.0/src/either.js", "npm:ramda@0.23.0/src/empty.js", "npm:ramda@0.23.0/src/eqBy.js", "npm:ramda@0.23.0/src/eqProps.js", "npm:ramda@0.23.0/src/equals.js", "npm:ramda@0.23.0/src/evolve.js", "npm:ramda@0.23.0/src/filter.js", "npm:ramda@0.23.0/src/find.js", "npm:ramda@0.23.0/src/findIndex.js", "npm:ramda@0.23.0/src/findLast.js", "npm:ramda@0.23.0/src/findLastIndex.js", "npm:ramda@0.23.0/src/flatten.js", "npm:ramda@0.23.0/src/flip.js", "npm:ramda@0.23.0/src/forEach.js", "npm:ramda@0.23.0/src/forEachObjIndexed.js", "npm:ramda@0.23.0/src/fromPairs.js", "npm:ramda@0.23.0/src/groupBy.js", "npm:ramda@0.23.0/src/groupWith.js", "npm:ramda@0.23.0/src/gt.js", "npm:ramda@0.23.0/src/gte.js", "npm:ramda@0.23.0/src/has.js", "npm:ramda@0.23.0/src/hasIn.js", "npm:ramda@0.23.0/src/head.js", "npm:ramda@0.23.0/src/identical.js", "npm:ramda@0.23.0/src/identity.js", "npm:ramda@0.23.0/src/ifElse.js", "npm:ramda@0.23.0/src/inc.js", "npm:ramda@0.23.0/src/indexBy.js", "npm:ramda@0.23.0/src/indexOf.js", "npm:ramda@0.23.0/src/init.js", "npm:ramda@0.23.0/src/insert.js", "npm:ramda@0.23.0/src/insertAll.js", "npm:ramda@0.23.0/src/internal/_Set.js", "npm:ramda@0.23.0/src/internal/_aperture.js", "npm:ramda@0.23.0/src/internal/_arity.js", "npm:ramda@0.23.0/src/internal/_arrayFromIterator.js", "npm:ramda@0.23.0/src/internal/_assign.js", "npm:ramda@0.23.0/src/internal/_checkForMethod.js", "npm:ramda@0.23.0/src/internal/_clone.js", "npm:ramda@0.23.0/src/internal/_cloneRegExp.js", "npm:ramda@0.23.0/src/internal/_complement.js", "npm:ramda@0.23.0/src/internal/_concat.js", "npm:ramda@0.23.0/src/internal/_contains.js", "npm:ramda@0.23.0/src/internal/_containsWith.js", "npm:ramda@0.23.0/src/internal/_createPartialApplicator.js", "npm:ramda@0.23.0/src/internal/_curry1.js", "npm:ramda@0.23.0/src/internal/_curry2.js", "npm:ramda@0.23.0/src/internal/_curry3.js", "npm:ramda@0.23.0/src/internal/_curryN.js", "npm:ramda@0.23.0/src/internal/_dispatchable.js", "npm:ramda@0.23.0/src/internal/_dropLast.js", "npm:ramda@0.23.0/src/internal/_dropLastWhile.js", "npm:ramda@0.23.0/src/internal/_equals.js", "npm:ramda@0.23.0/src/internal/_filter.js", "npm:ramda@0.23.0/src/internal/_flatCat.js", "npm:ramda@0.23.0/src/internal/_forceReduced.js", "npm:ramda@0.23.0/src/internal/_functionName.js", "npm:ramda@0.23.0/src/internal/_has.js", "npm:ramda@0.23.0/src/internal/_identity.js", "npm:ramda@0.23.0/src/internal/_indexOf.js", "npm:ramda@0.23.0/src/internal/_isArguments.js", "npm:ramda@0.23.0/src/internal/_isArray.js", "npm:ramda@0.23.0/src/internal/_isFunction.js", "npm:ramda@0.23.0/src/internal/_isInteger.js", "npm:ramda@0.23.0/src/internal/_isNumber.js", "npm:ramda@0.23.0/src/internal/_isObject.js", "npm:ramda@0.23.0/src/internal/_isPlaceholder.js", "npm:ramda@0.23.0/src/internal/_isRegExp.js", "npm:ramda@0.23.0/src/internal/_isString.js", "npm:ramda@0.23.0/src/internal/_isTransformer.js", "npm:ramda@0.23.0/src/internal/_makeFlat.js", "npm:ramda@0.23.0/src/internal/_map.js", "npm:ramda@0.23.0/src/internal/_objectAssign.js", "npm:ramda@0.23.0/src/internal/_of.js", "npm:ramda@0.23.0/src/internal/_pipe.js", "npm:ramda@0.23.0/src/internal/_pipeP.js", "npm:ramda@0.23.0/src/internal/_quote.js", "npm:ramda@0.23.0/src/internal/_reduce.js", "npm:ramda@0.23.0/src/internal/_reduced.js", "npm:ramda@0.23.0/src/internal/_stepCat.js", "npm:ramda@0.23.0/src/internal/_toISOString.js", "npm:ramda@0.23.0/src/internal/_toString.js", "npm:ramda@0.23.0/src/internal/_xall.js", "npm:ramda@0.23.0/src/internal/_xany.js", "npm:ramda@0.23.0/src/internal/_xaperture.js", "npm:ramda@0.23.0/src/internal/_xchain.js", "npm:ramda@0.23.0/src/internal/_xdrop.js", "npm:ramda@0.23.0/src/internal/_xdropLast.js", "npm:ramda@0.23.0/src/internal/_xdropLastWhile.js", "npm:ramda@0.23.0/src/internal/_xdropRepeatsWith.js", "npm:ramda@0.23.0/src/internal/_xdropWhile.js", "npm:ramda@0.23.0/src/internal/_xfBase.js", "npm:ramda@0.23.0/src/internal/_xfilter.js", "npm:ramda@0.23.0/src/internal/_xfind.js", "npm:ramda@0.23.0/src/internal/_xfindIndex.js", "npm:ramda@0.23.0/src/internal/_xfindLast.js", "npm:ramda@0.23.0/src/internal/_xfindLastIndex.js", "npm:ramda@0.23.0/src/internal/_xmap.js", "npm:ramda@0.23.0/src/internal/_xreduceBy.js", "npm:ramda@0.23.0/src/internal/_xtake.js", "npm:ramda@0.23.0/src/internal/_xtakeWhile.js", "npm:ramda@0.23.0/src/internal/_xwrap.js", "npm:ramda@0.23.0/src/intersection.js", "npm:ramda@0.23.0/src/intersectionWith.js", "npm:ramda@0.23.0/src/intersperse.js", "npm:ramda@0.23.0/src/into.js", "npm:ramda@0.23.0/src/invert.js", "npm:ramda@0.23.0/src/invertObj.js", "npm:ramda@0.23.0/src/invoker.js", "npm:ramda@0.23.0/src/is.js", "npm:ramda@0.23.0/src/isArrayLike.js", "npm:ramda@0.23.0/src/isEmpty.js", "npm:ramda@0.23.0/src/isNil.js", "npm:ramda@0.23.0/src/join.js", "npm:ramda@0.23.0/src/juxt.js", "npm:ramda@0.23.0/src/keys.js", "npm:ramda@0.23.0/src/keysIn.js", "npm:ramda@0.23.0/src/last.js", "npm:ramda@0.23.0/src/lastIndexOf.js", "npm:ramda@0.23.0/src/length.js", "npm:ramda@0.23.0/src/lens.js", "npm:ramda@0.23.0/src/lensIndex.js", "npm:ramda@0.23.0/src/lensPath.js", "npm:ramda@0.23.0/src/lensProp.js", "npm:ramda@0.23.0/src/lift.js", "npm:ramda@0.23.0/src/liftN.js", "npm:ramda@0.23.0/src/lt.js", "npm:ramda@0.23.0/src/lte.js", "npm:ramda@0.23.0/src/map.js", "npm:ramda@0.23.0/src/mapAccum.js", "npm:ramda@0.23.0/src/mapAccumRight.js", "npm:ramda@0.23.0/src/mapObjIndexed.js", "npm:ramda@0.23.0/src/match.js", "npm:ramda@0.23.0/src/mathMod.js", "npm:ramda@0.23.0/src/max.js", "npm:ramda@0.23.0/src/maxBy.js", "npm:ramda@0.23.0/src/mean.js", "npm:ramda@0.23.0/src/median.js", "npm:ramda@0.23.0/src/memoize.js", "npm:ramda@0.23.0/src/merge.js", "npm:ramda@0.23.0/src/mergeAll.js", "npm:ramda@0.23.0/src/mergeWith.js", "npm:ramda@0.23.0/src/mergeWithKey.js", "npm:ramda@0.23.0/src/min.js", "npm:ramda@0.23.0/src/minBy.js", "npm:ramda@0.23.0/src/modulo.js", "npm:ramda@0.23.0/src/multiply.js", "npm:ramda@0.23.0/src/nAry.js", "npm:ramda@0.23.0/src/negate.js", "npm:ramda@0.23.0/src/none.js", "npm:ramda@0.23.0/src/not.js", "npm:ramda@0.23.0/src/nth.js", "npm:ramda@0.23.0/src/nthArg.js", "npm:ramda@0.23.0/src/objOf.js", "npm:ramda@0.23.0/src/of.js", "npm:ramda@0.23.0/src/omit.js", "npm:ramda@0.23.0/src/once.js", "npm:ramda@0.23.0/src/or.js", "npm:ramda@0.23.0/src/over.js", "npm:ramda@0.23.0/src/pair.js", "npm:ramda@0.23.0/src/partial.js", "npm:ramda@0.23.0/src/partialRight.js", "npm:ramda@0.23.0/src/partition.js", "npm:ramda@0.23.0/src/path.js", "npm:ramda@0.23.0/src/pathEq.js", "npm:ramda@0.23.0/src/pathOr.js", "npm:ramda@0.23.0/src/pathSatisfies.js", "npm:ramda@0.23.0/src/pick.js", "npm:ramda@0.23.0/src/pickAll.js", "npm:ramda@0.23.0/src/pickBy.js", "npm:ramda@0.23.0/src/pipe.js", "npm:ramda@0.23.0/src/pipeK.js", "npm:ramda@0.23.0/src/pipeP.js", "npm:ramda@0.23.0/src/pluck.js", "npm:ramda@0.23.0/src/prepend.js", "npm:ramda@0.23.0/src/product.js", "npm:ramda@0.23.0/src/project.js", "npm:ramda@0.23.0/src/prop.js", "npm:ramda@0.23.0/src/propEq.js", "npm:ramda@0.23.0/src/propIs.js", "npm:ramda@0.23.0/src/propOr.js", "npm:ramda@0.23.0/src/propSatisfies.js", "npm:ramda@0.23.0/src/props.js", "npm:ramda@0.23.0/src/range.js", "npm:ramda@0.23.0/src/reduce.js", "npm:ramda@0.23.0/src/reduceBy.js", "npm:ramda@0.23.0/src/reduceRight.js", "npm:ramda@0.23.0/src/reduceWhile.js", "npm:ramda@0.23.0/src/reduced.js", "npm:ramda@0.23.0/src/reject.js", "npm:ramda@0.23.0/src/remove.js", "npm:ramda@0.23.0/src/repeat.js", "npm:ramda@0.23.0/src/replace.js", "npm:ramda@0.23.0/src/reverse.js", "npm:ramda@0.23.0/src/scan.js", "npm:ramda@0.23.0/src/sequence.js", "npm:ramda@0.23.0/src/set.js", "npm:ramda@0.23.0/src/slice.js", "npm:ramda@0.23.0/src/sort.js", "npm:ramda@0.23.0/src/sortBy.js", "npm:ramda@0.23.0/src/sortWith.js", "npm:ramda@0.23.0/src/split.js", "npm:ramda@0.23.0/src/splitAt.js", "npm:ramda@0.23.0/src/splitEvery.js", "npm:ramda@0.23.0/src/splitWhen.js", "npm:ramda@0.23.0/src/subtract.js", "npm:ramda@0.23.0/src/sum.js", "npm:ramda@0.23.0/src/symmetricDifference.js", "npm:ramda@0.23.0/src/symmetricDifferenceWith.js", "npm:ramda@0.23.0/src/tail.js", "npm:ramda@0.23.0/src/take.js", "npm:ramda@0.23.0/src/takeLast.js", "npm:ramda@0.23.0/src/takeLastWhile.js", "npm:ramda@0.23.0/src/takeWhile.js", "npm:ramda@0.23.0/src/tap.js", "npm:ramda@0.23.0/src/test.js", "npm:ramda@0.23.0/src/times.js", "npm:ramda@0.23.0/src/toLower.js", "npm:ramda@0.23.0/src/toPairs.js", "npm:ramda@0.23.0/src/toPairsIn.js", "npm:ramda@0.23.0/src/toString.js", "npm:ramda@0.23.0/src/toUpper.js", "npm:ramda@0.23.0/src/transduce.js", "npm:ramda@0.23.0/src/transpose.js", "npm:ramda@0.23.0/src/traverse.js", "npm:ramda@0.23.0/src/trim.js", "npm:ramda@0.23.0/src/tryCatch.js", "npm:ramda@0.23.0/src/type.js", "npm:ramda@0.23.0/src/unapply.js", "npm:ramda@0.23.0/src/unary.js", "npm:ramda@0.23.0/src/uncurryN.js", "npm:ramda@0.23.0/src/unfold.js", "npm:ramda@0.23.0/src/union.js", "npm:ramda@0.23.0/src/unionWith.js", "npm:ramda@0.23.0/src/uniq.js", "npm:ramda@0.23.0/src/uniqBy.js", "npm:ramda@0.23.0/src/uniqWith.js", "npm:ramda@0.23.0/src/unless.js", "npm:ramda@0.23.0/src/unnest.js", "npm:ramda@0.23.0/src/until.js", "npm:ramda@0.23.0/src/update.js", "npm:ramda@0.23.0/src/useWith.js", "npm:ramda@0.23.0/src/values.js", "npm:ramda@0.23.0/src/valuesIn.js", "npm:ramda@0.23.0/src/view.js", "npm:ramda@0.23.0/src/when.js", "npm:ramda@0.23.0/src/where.js", "npm:ramda@0.23.0/src/whereEq.js", "npm:ramda@0.23.0/src/without.js", "npm:ramda@0.23.0/src/xprod.js", "npm:ramda@0.23.0/src/zip.js", "npm:ramda@0.23.0/src/zipObj.js", "npm:ramda@0.23.0/src/zipWith.js" - ], - "app-build.js": [ - "main.js", - "repository/qep.repository.js", - "resources/converters/box-style.converter.js", - "resources/converters/count-value-converter.js", - "resources/converters/datetime.value.converter.js", - "resources/converters/result-style.converter.js", - "resources/converters/result-value.converter.js", - "resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/breakdown/breakdown.js", - "resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/error/error.js", - "resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/node-result/node-result.js", - "resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/node-status/node-status.js", - "resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js", - "resources/custom/patient-count/patient-count.js", - "resources/index.js", - "services/container.js", - "services/i2b2.pub-sub.js", - "services/i2b2.service.js", - "services/pub-sub.js", - "services/queries.model.js", - "services/query-export.js", - "services/query-status.model.js", - "services/shrine.messages.js", - "shell.html!github:systemjs/plugin-text@0.0.8.js", - "shell.js", - "views/index.js", - "views/mailto/mailto.config.js", - "views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js", - "views/mailto/mailto.js", - "views/mailto/mailto.service.js", - "views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-status/query-status.js", - "views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/context-menu/context-menu.js", - "views/query-viewer/date.converter.js", - "views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/loading-bar/loading-bar.js", - "views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/paginator/paginator.js", - "views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/query-status/query-status.js", - "views/query-viewer/query-viewer.config.js", - "views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js", - "views/query-viewer/query-viewer.js", - "views/query-viewer/scroll.service.js" ] }, depCache: { "repository/qep.repository.js": [ "aurelia-fetch-client", "fetch" ], "resources/converters/datetime.value.converter.js": [ "moment" ], "resources/custom/breakdown/breakdown.js": [ "aurelia-framework" ], "resources/custom/error/error.js": [ "aurelia-framework", "services/pub-sub" ], "resources/custom/node-result/node-result.js": [ "aurelia-framework" ], "resources/custom/node-status/node-status.js": [ "aurelia-framework", "services/pub-sub" ], "resources/custom/patient-count/patient-count.js": [ "aurelia-framework" ], "services/container.js": [ "ramda" ], "services/i2b2.pub-sub.js": [ "./pub-sub", "./i2b2.service" ], "services/i2b2.service.js": [ "ramda", "./container" ], "services/pub-sub.js": [ "aurelia-event-aggregator", "./shrine.messages" ], "services/queries.model.js": [ "aurelia-event-aggregator", "repository/qep.repository", "./shrine.messages" ], "services/query-export.js": [ "./pub-sub" ], "services/query-status.model.js": [ "aurelia-event-aggregator", "repository/qep.repository", "./shrine.messages" ], "shell.js": [ "services/i2b2.pub-sub", "services/query-export" ], "views/mailto/mailto.js": [ "views/mailto/mailto.service", "views/mailto/mailto.config" ], "views/mailto/mailto.service.js": [ "repository/qep.repository" ], "views/query-status/query-status.js": [ "aurelia-framework", "services/query-status.model", "services/pub-sub" ], "views/query-viewer/context-menu/context-menu.js": [ "aurelia-framework", "aurelia-event-aggregator", "common/shrine.messages" ], "views/query-viewer/date.converter.js": [ "moment" ], "views/query-viewer/loading-bar/loading-bar.js": [ "aurelia-framework" ], "views/query-viewer/paginator/paginator.js": [ "aurelia-framework" ], "views/query-viewer/query-status/query-status.js": [ "aurelia-framework", "ramda" ], "views/query-viewer/query-viewer.js": [ "aurelia-event-aggregator", "common/queries.model", "./scroll.service", "common/shrine.messages" ], "views/query-viewer/scroll.service.js": [ "ramda", "common/container" ] } }); \ No newline at end of file diff --git a/shrine-webclient/src/main/js/client/js-shrine/export/dist/app-build.js b/shrine-webclient/src/main/js/client/js-shrine/export/dist/app-build.js index 62edbe718..9a6a2445f 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/export/dist/app-build.js +++ b/shrine-webclient/src/main/js/client/js-shrine/export/dist/app-build.js @@ -1,2 +1,2 @@ -"bundle";System.register("main.js",[],function(a,b){"use strict";function c(a){a.use.standardConfiguration().developmentLogging().feature("resources").feature("views"),a.start().then(function(){return a.setRoot("shell")})}return a("configure",c),{setters:[],execute:function(){}}}),System.register("resources/converters/box-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("BoxStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return"transform: translate("+String(-100*a)+"%);"},a}()),a("BoxStyleValueConverter",d)}}}),System.register("resources/converters/count-value-converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("CountValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a<0?"<=10 patients":a+" +-10 patients"},a}()),a("CountValueConverter",d)}}}),System.register("resources/converters/datetime.value.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateTimeValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY h:mm:ss a")},a}()),a("DateTimeValueConverter",e)}}}),System.register("resources/converters/result-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){var b=this.isUnresolved(a)?"color:"+this.getColorValue(a):"";return b},a.prototype.isUnresolved=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FINISHED";return!a||a.status!==b},a.prototype.getColorValue=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ERROR",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#00FF00";return a&&a.status!==b?d:c},a}()),a("ResultStyleValueConverter",d)}}}),System.register("resources/converters/result-value.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a?"FINISHED"!==a.status?"":a.count<0?"<=10":a.count:"not available"},a}()),a("ResultValueConverter",d)}}}),function(){var a=System.amdDefine;a("resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px"><br><font>${data.resultType.i2b2Options.description}:</font></div><div style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px"></div><div repeat.for="result of data.results" style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px">${result.dataKey}: <font color="#0000dd">${result.value | count}</font></div></template>'})}(),System.register("resources/custom/breakdown/breakdown.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("Breakdown",(h=g("breakdown"),l=h((j=function b(){d(this,b),c(this,"data",k,this)},k=e(j.prototype,"data",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("Breakdown",l)}}}),function(){var a=System.amdDefine;a("resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></template>'})}(),System.register("resources/custom/error/error.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p;return{setters:[function(a){h=a.inject,i=a.bindable,j=a.customElement},function(a){k=a.PubSub}],execute:function(){a("Error",(l=j("error"),p=l((n=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",o,i),i}return f(b,a),b}(k),o=g(n.prototype,"result",[i],{enumerable:!0,initializer:null}),m=n))||m)),a("Error",p)}}}),function(){var a=System.amdDefine;a("resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear:both"><br><div style="float:left; font-weight:bold; margin-left:20px">${result.adapterNode} ${queryName}:</div></div><span> ${result.status}</span><patient-count if.one-way="result.status === \'COMPLETED\' || result.status === \'FINISHED\'" result.one-way="result"></patient-count><error if.one-way="result.status === \'ERROR\'" result.one-way="result"></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.status) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span></template>'})}(),System.register("resources/custom/node-result/node-result.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.customElement,g=a.bindable}],execute:function(){a("NodeResult",(h=f("node-result"),m=h((j=function b(){d(this,b),c(this,"result",k,this),c(this,"queryName",l,this)},k=e(j.prototype,"result",[g],{enumerable:!0,initializer:null}),l=e(j.prototype,"queryName",[g],{enumerable:!0,initializer:null}),i=j))||i)),a("NodeResult",m)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> <span style="color: black">COMPLETED</span> </span><span> <a if.one-way="result.status === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR </a></span><span if.one-way="!\'ERROR,COMPLETED,FINISHED\'.includes(result.status)"> <span style="color: #00dd00">RUNNING</span></span></div><div style="flex:1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div></template>'})}(),System.register("resources/custom/node-status/node-status.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o;return{setters:[function(a){h=a.customElement,i=a.bindable},function(a){j=a.PubSub}],execute:function(){a("NodeStatus",(k=h("node-status"),o=k((m=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",n,i),i}return f(b,a),b}(j),n=g(m.prototype,"result",[i],{enumerable:!0,initializer:null}),l=m))||l)),a("NodeStatus",o)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> <span style="color: black">${result.statusMessage}</span> </span><span> <a if.one-way="result.statusMessage === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR: ${result.statusDescription} </a></span><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> <span style="color: #00dd00">${result.statusMessage}</span></span></div><div style="flex:1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div><patient-count if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" result.one-way="result"><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div></patient-count><error if.one-way="result.statusMessage === \'ERROR\'" result.one-way="result"> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span>'})}(),function(){var a=System.amdDefine;a("resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div><breakdown repeat.for="breakdown of result.breakdowns" data.one-way="breakdown"></breakdown></template>'})}(),System.register("resources/custom/patient-count/patient-count.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("PatientCount",(h=g("patient-count"),l=h((j=function(){function a(){d(this,a),c(this,"result",k,this)}return a.prototype.attached=function(){},a}(),k=e(j.prototype,"result",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("PatientCount",l)}}}),System.register("resources/index.js",[],function(a,b){"use strict";function c(a){var b="converters",c=["box-style.converter","count-value-converter","datetime.value.converter","result-style.converter","result-value.converter"];a.globalResources.apply(a,c.map(function(a){return"./"+b+"/"+a}));var d="custom",e=["error/error","breakdown/breakdown","node-result/node-result","node-status/node-status","patient-count/patient-count"];a.globalResources.apply(a,e.map(function(a){return"./"+d+"/"+a}))}return a("configure",c),{setters:[],execute:function(){}}}),System.register("services/queries.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.notifications}],execute:function(){a("QueriesModel",(h=g=function b(a,d,e){var f=this;c(this,b);var g=d,h=40,i=0,j=0,k=null;b.prototype.load=function(){return g.fetchPreviousQueries(f.maxQueriesPerFetch()+f.loadedCount()).then(function(a){return j=a.rowCount,i=a.queryResults.length,a})["catch"](function(a){return console.log(a)}).then(l).then(function(b){k=b,a.publish(e.shrine.queriesReceived,k)})},b.prototype.totalQueries=function(){return j},b.prototype.loadedCount=function(){return i},b.prototype.maxQueriesPerFetch=function(){return h},b.prototype.moreToLoad=function(){return i<j},b.prototype.hasData=function(){return null!==k&&void 0!==k};var l=function(a){arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new Promise(function(b,c){for(var d=[],e=6,f=a.adapters,g=f.length,h=a.queryResults,i=0;i<g;i+=e){var j=m(f,i,e),k=f.slice(i,j),l=n(k,h);d.push({nodes:k,results:l})}b(d)})},m=function(a,b,c){var d=b+c;return d<a.length?d:a.length},n=function(a,b){var c=[];return b.forEach(function(b,d){var e={name:b.query.queryName,id:b.query.networkId,date:b.query.dateCreated,flagged:b.query.flagged===!0,flagMessage:b.query.flagMessage||null,nodeResults:[],status:b.adaptersToResults.reduce(function(a,c){var d="FINISHED"===c.status?a.finished+1:a.finished,e="ERROR"===c.status?a.error+1:a.error;return{error:e,finished:d,total:b.adaptersToResults.length}},{error:0,finished:0,total:b.adaptersToResults.length})};a.forEach(function(a){e.nodeResults.push(b.adaptersToResults.find(function(b){return b.adapterNode===a}))}),c.push(e)}),c}},g.inject=[d,e,f],i=h)),a("QueriesModel",i)}}}),function(){var a=System.amdDefine;a("shell.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return"<template><query-status></query-status></template>"})}(),System.register("services/container.js",["ramda"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f;return{setters:[function(a){d=a}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Container",f=function(){function a(b){c(this,a),this.__value=b}return a.of=function(b){return new a(function(){return b})},a.prototype.map=function(b){return this.hasNothing()?a.of(null):a.of(b(this.value))},a.prototype.join=function(){return this.hasNothing()?a.of(null):this.value},a.prototype.chain=function(a){return this.map(a).join()},a.prototype.hasNothing=function(){return null===this.value||void 0===this.value},a.prototype.ap=function(a){a.map(this.value)},e(a,[{key:"value",get:function(){return this.__value()}}]),a}()),a("Container",f)}}}),System.register("services/i2b2.service.js",["ramda","./container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("I2B2Service",(g=f=function b(a){c(this,b);var f=a?e.of(a):e.of(null),g=d.curry(function(a,b){return b.value?e.of(d.prop(a,b.value)):e.of(null)}),h=d.compose(g("i2b2"),g("window"),g("parent")),i=d.compose(g("CRC"),h),j=d.compose(g("events"),h),k=d.compose(g("SHRINE"),h);b.prototype.onResize=function(a){return j(f).map(function(b){return b.changedZoomWindows.subscribe(a)})},b.prototype.onHistory=function(a){return i(f).map(function(b){return b.ctrlr.history.events.onDataUpdate.subscribe(a)})},b.prototype.onQuery=function(a){return j(f).map(function(b){return b.afterQueryInit.subscribe(a)})},b.prototype.onNetworkId=function(a){return j(f).map(function(b){return b.networkIdReceived.subscribe(a)})},b.prototype.onViewSelected=function(a){return g("addEventListener",f).value?e.of(f.value.addEventListener("message",a,!1)):e.of(null)},b.prototype.onExport=function(a){return j(f).map(function(b){return b.exportQueryResult.subscribe(a)})},b.prototype.loadHistory=function(){return i(f).map(function(a){return a.view.history.doRefreshAll()})},b.prototype.loadQuery=function(a){return i(f).map(function(b){return b.ctrlr.QT.doQueryLoad(a)})},b.prototype.errorDetail=function(a){return k(f).map(function(b){return b.plugin.errorDetail(a)})},b.prototype.renameQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.queryRename(a,!1)})},b.prototype.flagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Flag({queryId:a,message:""})})},b.prototype.unflagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Unflag({queryId:a})})},b.prototype.publishQueryUnavailable=function(){return j(f).map(function(a){return a.queryResultUnavailable.fire()})},b.prototype.publishQueryAvailable=function(){return j(f).map(function(a){return a.queryResultAvailable.fire()})}},f.inject=[window],h=g)),a("I2B2Service",h)}}}),System.register("services/i2b2.pub-sub.js",["./pub-sub","./i2b2.service"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h,i,j;return{setters:[function(a){f=a.PubSub},function(a){g=a.I2B2Service}],execute:function(){a("I2B2PubSub",(i=h=function(a){function b(e){c(this,b);for(var f=arguments.length,g=Array(f>1?f-1:0),h=1;h<f;h++)g[h-1]=arguments[h];var i=d(this,a.call.apply(a,[this].concat(g)));return i.listen=function(){e.onResize(function(a,b){return b.find(function(a){return"ADD"===a.action})?function(){return i.publish(i.notifications.i2b2.tabMax)}:function(){return i.publish(i.notifications.i2b2.tabMin)}}),e.onHistory(function(){return i.publish(i.notifications.i2b2.historyRefreshed)}),e.onQuery(function(a,b){return i.publish(i.notifications.i2b2.queryStarted,b[0].name)}),e.onNetworkId(function(a,b){return i.publish(i.notifications.i2b2.networkIdReceived,b[0])}),e.onViewSelected(function(a){return i.publish(i.notifications.i2b2.viewSelected,a.data)}),e.onExport(function(){return i.publish(i.notifications.i2b2.exportQuery)}),i.subscribe(i.commands.i2b2.cloneQuery,function(a){return e.loadQuery(a)}),i.subscribe(i.commands.i2b2.showError,function(a){return e.errorDetail(a)}),i.subscribe(i.commands.i2b2.renameQuery,function(a){return e.renameQuery(a)}),i.subscribe(i.commands.i2b2.flagQuery,function(a){return e.flagQuery(a)}),i.subscribe(i.commands.i2b2.unflagQuery,function(a){return e.unflagQuery(a)}),i.subscribe(i.notifications.shrine.queryUnavailable,function(){return e.publishQueryUnavailable()}),i.subscribe(i.notifications.shrine.queryAvailable,function(){return e.publishQueryAvailable()})},i}return e(b,a),b}(f),h.inject=[g],j=i)),a("I2B2PubSub",j)}}}),System.register("services/query-export.js",["./pub-sub"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h;return{setters:[function(a){f=a.PubSub}],execute:function(){a("QueryExport",g=function(a){function b(){c(this,b);for(var e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];return d(this,a.call.apply(a,[this].concat(f)))}return e(b,a),b.prototype.listen=function(){this.subscribe(this.commands.shrine.exportResult,h)},b}(f)),a("QueryExport",g),h=function(a){var b=a.nodes.sort(),c=new Map,d=function(a){var b=a.resultType.i2b2Options.description;return b},e=function(a,b){return d(a)<=d(b)?-1:1};b.forEach(function(a){var b=a.breakdowns;return b.sort(e).forEach(function(a){var b,d=a.resultType.i2b2Options.description,e=a.results;return c.has(d)?(b=c.get(d)).add.apply(b,e.map(function(a){return a.dataKey}).sort()):c.set(d,new Set(e.map(function(a){return a.dataKey}).sort()))})});var f="data:text/csv;charset=utf-8,SHRINE QUERY RESULTS (OBFUSCATED PATIENT COUNTS),"+[""].concat(b.map(function(a){return a.adapterNode}).join(",")),g="\nAll Patients,"+[""].concat(b.map(function(a){return a.count}).join(",")),h=[];c.forEach(function(a,c){h.push.apply(h,[""].concat(Array.from(a).map(function(a){var d=c.split(" ").shift()+","+a,e=b.map(function(b){var d=b.breakdowns,e=d.find(function(a){var b=a.resultType.i2b2Options.description;a.results;return b===c}),f=e?e.results.find(function(b){return b.dataKey===a}):void 0;return f?f.value>0?f.value:0:"unavailable"});return d+","+e.join(",")})))});var i=encodeURI(""+f+g+h.join("\n")),j=document.createElement("a");j.setAttribute("href",i),j.setAttribute("download","export.csv"),document.body.appendChild(j),j.click(),document.body.removeChild(j)}}}}),System.register("shell.js",["services/i2b2.pub-sub","services/query-export"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.I2B2PubSub},function(a){e=a.QueryExport}],execute:function(){a("Shell",(g=f=function b(a,d){c(this,b),a.listen(),d.listen()},f.inject=[d,e],h=g)),a("Shell",h)}}}),System.register("views/index.js",[],function(a,b){"use strict";function c(a){var b=["views/query-status/query-status"];a.globalResources.apply(a,b)}return a("configure",c),{setters:[],execute:function(){}}}),function(){var a=System.amdDefine;a("views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="mailto"><div class="content"><p>If you have questions about your query results or this SHRINE network, contact the Data Steward at your site.</p><div class="email js-email"><button class="button button--large js-button" click.delegate="openEmail()">Email Data Steward</button></div></div></div></template>'})}(),System.register("views/mailto/mailto.service.js",["repository/qep.repository"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g;return{setters:[function(a){d=a.QEPRepository}],execute:function(){a("MailToService",(f=e=function(){function a(b){c(this,a),this.repository=b}return a.prototype.fetchStewardEmail=function(){return this.repository.fetchStewardEmail()},a}(),e.inject=[d],g=f)),a("MailToService",g)}}}),System.register("views/mailto/mailto.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("MailConfig",c={mailto:"mailto:",subject:encodeURIComponent("Question from a SHRINE User"),body:encodeURIComponent("Please enter the suggested information and your question. Your data steward will reply to this email.\n \n\n***Never send patient information, passwords, or other sensitive information by email****\n \nName:\n \nTitle:\n \nUser name (to log into SHRINE):\n \nTelephone Number (optional):\n \nPreferred email address (optional):\n \n\nQuestion or Comment:")}),a("MailConfig",c)}}}),System.register("views/mailto/mailto.js",["views/mailto/mailto.service","views/mailto/mailto.config"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.MailToService},function(a){e=a.MailConfig}],execute:function(){a("MailTo",(g=f=function(){function a(b,d){c(this,a),this.service=b,this.config=d}return a.prototype.openEmail=function(){var a=this;this.service.fetchStewardEmail().then(function(b){window.top.location="mailto:"+b+"?subject="+a.config.subject+"&body="+a.config.body})},a}(),f.inject=[d,e],h=g)),a("MailTo",h)}}}),function(){var a=System.amdDefine;a("views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="height: 100%; overflow: auto"><div style="display: flex" if.one-way="status.query.queryName"><div style="flex:1">Status of Query: ${status.query.queryName}</div><div style="flex:1" if.one-way="status.nodes.length">Last Updated: ${status.updated | dateTime}</div><div style="flex:1" if.one-way="!status.nodes.length">Waiting on response from network...</div></div><br><node-status repeat.for="node of status.nodes" result.one-way="node"></node-status><span if.one-way="status.nodes.length"><br><span>Completed query counts and breakdowns are shown below:</span><div style="width: 100%; border-bottom: 1px solid"></div><br></span><node-result repeat.for="node of status.nodes" result.one-way="node" query-name.one-way="status.query.queryName"></node-result></div></template>'})}(),System.register("repository/qep.repository.js",["aurelia-fetch-client","fetch"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.HttpClient},function(a){}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("QEPRepository",(g=f=function(){function a(b){var d=this;c(this,a),b.configure(function(a){a.useStandardConfiguration().withBaseUrl(d.url).withDefaults({headers:{Authorization:"Basic "+d.auth}})}),this.http=b}return a.prototype.fetchPreviousQueries=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.http.fetch("qep/queryResults?limit="+a+"&skip="+b).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchNetworkId=function(a){return this.http.fetch("qep/networkId?queryName='"+a+"'").then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchQuery=function(a,b,c){return this.http.fetch("qep/queryResult/"+a+"?timeoutSeconds="+b+"&afterVersion="+c).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchStewardEmail=function(){return this.http.fetch("data?key=stewardEmail").then(function(a){return a.json()}).then(function(a){return a.indexOf('"')>0?a.split('"')[1]:a})["catch"](function(){return""})},e(a,[{key:"url",get:function(){var a=document.URL,b=":6443/shrine-metadata/";return a.substring(0,a.lastIndexOf(":"))+b}},{key:"auth",get:function(){var a=sessionStorage.getItem("shrine.auth");return sessionStorage.removeItem("shrine.auth"),a}}]),a}(),f.inject=[d],h=g)),a("QEPRepository",h)}}}),System.register("services/query-status.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k,l;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.commands,g=a.notifications}],execute:function(){h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},k=function(){var a=!1;return function(b){return a=void 0===b?a:!!b}}(),a("QueryStatusModel",(j=i=function b(a,d,e){c(this,b);var g=function(b){return a.publish(e.shrine.queryReceived,b)},i=function(a){return console.log("ERROR: "+a)},j=function(a){return new Promise(function(b,c){var d=[].concat(a.results),e=a.dataVersion,f=d.length>0&&d.filter(function(a){return"ERROR,COMPLETED,FINISHED".includes(a.status)}).length===d.length,g=h({},a.query,{complete:f});b({query:g,nodes:d,dataVersion:e})})},k=function(a){d.fetchQuery(a.networkId,a.timeoutSeconds,a.dataVersion).then(function(a){ -return j(a)})["catch"](function(a){return i(a)}).then(function(a){return g(a)})},l=function(){a.subscribe(f.shrine.fetchQuery,k)};l()},i.inject=[d,e,g],l=j)),a("QueryStatusModel",l)}}}),System.register("services/shrine.messages.js",[],function(a,b){"use strict";var c,d;return{setters:[],execute:function(){a("notifications",c={i2b2:{tabMax:"notification.from.i2b2.tab.max",tabMin:"notification.from.i2b2.tab.min",viewSelected:"notification.from.i2b2.tab.selected",historyRefreshed:"notification.from.i2b2.history.refreshed",queryStarted:"notification.from.i2b2.query.started",messageReceived:"notification.from.i2b2.message.received",networkIdReceived:"notification.from.i2b2.networkId.receieved",exportQuery:"notification.from.i2b2.export.query"},shrine:{queriesReceived:"notification.from.shrine.queries.received",queryReceived:"notification.from.shrine.query.recieved",queryUnavailable:"notification.from.shrine.query.unavailable",queryAvailable:"notification.from.shrine.query.available"}}),a("notifications",c),a("commands",d={i2b2:{cloneQuery:"command.to.i2b2.clone.query",showError:"command.to.i2b2.show.error",flagQuery:"command.to.i2b2.flag.query",unflagQuery:"command.to.i2b2.unflag.query",renameQuery:"command.to.i2b2.rename.query"},shrine:{fetchQuery:"command.to.shrine.fetch.query",exportResult:"command.to.shrine.export.result"}}),a("commands",d)}}}),System.register("services/pub-sub.js",["aurelia-event-aggregator","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.commands,f=a.notifications}],execute:function(){a("PubSub",(h=g=function b(a,d,e){c(this,b),this.commands=d,this.notifications=e,this.publish=function(b,c){return a.publish(b,c)},this.subscribe=function(b,c){return a.subscribe(b,c)}},g.inject=[d,e,f],i=h)),a("PubSub",i)}}}),System.register("views/query-status/query-status.js",["aurelia-framework","services/query-status.model","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;return{setters:[function(a){h=a.customElement,i=a.observable},function(a){j=a.QueryStatusModel},function(a){k=a.PubSub}],execute:function(){l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},a("QueryStatus",(m=h("query-status"),s=m((r=q=function(a){function b(f){d(this,b);for(var g=arguments.length,h=Array(g>1?g-1:0),i=1;i<g;i++)h[i-1]=arguments[i];var j=e(this,a.call.apply(a,[this].concat(h)));return c(j,"status",p,j),v.set(j,{isDevEnv:document.location.href.includes("http://localhost:8000/"),exportAvailable:!1}),j}return f(b,a),b.prototype.statusChanged=function(a,b){a.nodes&&a.nodes.length?(v.get(this).exportAvailable=!0,this.publish(this.notifications.shrine.queryAvailable)):(v.get(this).exportAvailable=!1,this.publish(this.notifications.shrine.queryUnavailable))},b.prototype.attached=function(){var a=this;this.subscribe(this.notifications.i2b2.queryStarted,function(b){a.status=w(),a.status.query.queryName=b}),this.subscribe(this.notifications.i2b2.networkIdReceived,function(b){var c=b.networkId,d=w(),e=d.nodes;d.query.queryName=b.name||d.query.queryName,a.status=a.status?l({},a.status,{nodes:e}):d,a.publish(a.commands.shrine.fetchQuery,{networkId:c,timeoutSeconds:t,dataVersion:u})}),this.subscribe(this.notifications.i2b2.exportQuery,function(){a.publish(a.commands.shrine.exportResult,l({},a.status))}),this.subscribe(this.notifications.shrine.queryReceived,function(b){var c=b.query,d=b.nodes,e=b.dataVersion,f=Number(new Date),g=b.query.complete,h=b.query.networkId;a.status=l({},a.status,{query:c,nodes:d,updated:f}),g||window.setTimeout(function(){return a.publish(a.commands.shrine.fetchQuery,{networkId:h,dataVersion:e,timeoutSeconds:t})},5e3)}),v.get(this).isDevEnv&&this.publish(this.notifications.i2b2.networkIdReceived,{networkId:1,name:"started query"})},b}(k),q.inject=[j],o=r,p=g(o.prototype,"status",[i],{enumerable:!0,initializer:null}),n=o))||n)),a("QueryStatus",s),t=15,u=-1,v=new WeakMap,w=function(a){return{query:{queryName:null,updated:null,complete:!1},nodes:null}}}}}),function(){var a=System.amdDefine;a("views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><ul class="context-menu ${context.class || \'hide\'}" mouseleave.trigger="context.class=\'hide\'" css="top: ${context.y - 40}; left: ${context.x - 50};"><li if.bind="context.isCount"><a click.delegate="refreshHistory()" href="#"><i class="fa fa-bar-chart-o"></i>Breakdown</a></li><li click.delegate="cloneQuery(context.query.id)"><a href="#"><i class="fa fa-files-o"></i> Clone</a></li><li><a click.delegate="renameQuery(context.query.id)" href="#"><i class="fa fa-edit"></i> Rename</a></li><!--li><a click.delegate="flagQuery(context.query.id)" href="#"><i class="fa fa-flag"></i> Flag</a></li--><!--li><a click.delegate="unflagQuery(context.query.id)" href="#"><i class="fa fa-flag-o"></i> Unflag</a></li--></ul></template>'})}(),System.register("views/query-viewer/context-menu/context-menu.js",["aurelia-framework","aurelia-event-aggregator","common/shrine.messages"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m,n;return{setters:[function(a){f=a.bindable},function(a){g=a.EventAggregator},function(a){h=a.commands}],execute:function(){a("ContextMenu",(l=k=function b(a,c){var e=this;d(this,b),m.call(this),b.prototype.cloneQuery=function(b){a.publish(c.i2b2.cloneQuery,b),e.context["class"]="hide"},b.prototype.renameQuery=function(b){a.publish(c.i2b2.renameQuery,b),e.context["class"]="hide"},b.prototype.flagQuery=function(b){a.publish(c.i2b2.flagQuery,b),e.context["class"]="hide"},b.prototype.unflagQuery=function(b){a.publish(c.i2b2.unflagQuery,b),e.context["class"]="hide"}},k.inject=[g,h],m=function(){c(this,"context",j,this)},i=l,j=e(i.prototype,"context",[f],{enumerable:!0,initializer:null}),n=i)),a("ContextMenu",n)}}}),System.register("views/query-viewer/date.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY")},a}()),a("DateValueConverter",e)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="loader"><h1>${status}</h1><div class="slider"><div class="line"></div><div class="break dot1"></div><div class="break dot2"></div><div class="break dot3"></div></div></div></template>'})}(),System.register("views/query-viewer/loading-bar/loading-bar.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("LoadingBar",(g=function b(){d(this,b),c(this,"status",h,this)},h=e(g.prototype,"status",[f],{enumerable:!0,initializer:null}),i=g)),a("LoadingBar",i)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return""})}(),function(){var a=System.amdDefine;a("views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css"><div class="paginator"><ol class="btn-group"><li class="btn-group__item" click.delegate="pageIndex = index - 1"><i class="i-chevron-left"></i></li><li repeat.for="page of pages" class="btn-group__item" click.delegate="pageIndex = $index"><button class="btn btn--basic ${index === $index? \'current\' : \'\'}">${$index + 1}</button></li><li class="btn-group__item" click.delegate="pageIndex = index + 1"><i class="i-chevron-right"></i></li></ol></div></template>'})}(),System.register("views/query-viewer/paginator/paginator.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable}],execute:function(){g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Paginator",(k=j=function(){function a(b){var e=this;d(this,a),c(this,"pages",i,this),a.prototype.init=function(){e.index=0,e.element=b},this.init()}return g(a,[{key:"pageIndex",set:function(a){var b=this.pages.length-1;this.index=a<0?0:a>b?b:a,this.element.dispatchEvent(new CustomEvent("paginator-click",{detail:{index:this.index},bubbles:!0,cancelable:!0}))}}]),a}(),j.inject=[Element],h=k,i=e(h.prototype,"pages",[f],{enumerable:!0,initializer:null}),l=h)),a("Paginator",l)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="tooltip"><span ref="tooltipContent" data-line1="Total: ${total}" data-line2="Available: ${finished}, Error: ${error}, Pending: ${pending}"><svg viewbox="0 0 35 35" class="query-status"><circle cx="18" cy="16" r="12" class="countdown__background"/><circle cx="18" cy="16" r="12" class="error__progress" css="stroke-dashoffset: ${errorOffset}"/><circle cx="18" cy="16" r="12" class="ready__progress" css="stroke-dashoffset: ${readyOffset}"/></svg></span></div></template>'})}(),System.register("views/query-viewer/query-status/query-status.js",["aurelia-framework","ramda"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable},function(a){g=a}],execute:function(){a("QueryStatus",(k=j=function(){function a(b){d(this,a),l.call(this),this.floor=b.floor}return a.prototype.attached=function(){var a=75,b=g.curry(function(a,b,c,d){return a(d/c*b)})(this.floor,a,this.status.total),c=this.status,d=b(c.finished),e=b(c.error);this.readyOffset=100-d,this.errorOffset=this.readyOffset-e,this.finished=c.finished,this.error=c.error,this.pending=c.total-(c.finished+c.error),this.total=c.total},a}(),j.inject=[Math],l=function(){c(this,"status",i,this)},h=k,i=e(h.prototype,"status",[f],{enumerable:!0,initializer:null}),m=h)),a("QueryStatus",m)}}}),System.register("views/query-viewer/query-viewer.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("QueryViewerConfig",c={maxNodesPerScreen:10,maxQueriesPerScroll:40}),a("QueryViewerConfig",c)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><require from="views/query-viewer/result-style.converter"></require><require from="views/query-viewer/result-value.converter"></require><require from="views/query-viewer/box-style.converter"></require><require from="views/query-viewer/context-menu/context-menu"></require><require from="views/query-viewer/loading-bar/loading-bar"></require><require from="views/query-viewer/paginator/paginator"></require><require from="views/query-viewer/date.converter"></require><require from="views/query-viewer/query-status/query-status"></require><span class="query-viewer"><loading-bar status.bind="\'Loading...\'" if.bind="showLoader"></loading-bar><div style="width: 100%; text-align: center"><paginator pages.bind="pages" paginator-click.delegate="updatePage($event)" if.bind="pages.length > 1"></paginator></div><div class="flex-table"><div class="flex-table-row node-header"><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div repeat.for="node of page.nodes" class="flex-table-item">${node}</div></div></div><div class="flex-table query-viewer ${vertStyle}" scroll.trigger="onScroll($event)"><div><!-- @todo: create running query component --><div class="flex-table-row" if.bind="runningQueryName"><div class="flex-table-item"></div><div class="flex-table-item">${runningQueryName}</div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item" repeat.for="node of page.nodes" style="color: #00FF00">RUNNING</div></div><div repeat.for="result of page.results" class="flex-table-row"><div class="flex-table-item"><i if.bind="result.flagged" class="fa fa-flag"></i> <i if.bind="!result.flagged" class="fa fa-flag-o"></i></div><div class="flex-table-item" click.delegate="context = getContext($event, result)"><div class="ellipses">${result.name}</div></div><div class="flex-table-item" click.delegate="context = getContext($event, result)">${result.date | date}</div><div class="flex-table-item"><query-status status.bind="result.status"></query-status></div><div repeat.for="nodeResult of result.nodeResults" class="flex-table-item" click.delegate="context = getContext($event, result)"><a if.bind="nodeResult.status === \'ERROR\'" style="text-decoration: underline; color:red" click.delegate="publishError($event, nodeResult)">${nodeResult.status} </a>${nodeResult}</div></div><div class="flex-table-row" if.bind="loadingInfiniteScroll"><div style="width: 100%; text-align: center; font-size: 1.5rem; background:rgba(217, 236, 240, .05); text-align:center; color: rgba(0, 0, 0, .20)"><i class="fa fa-spinner fa-spin" style="color: inherit"></i> Loading...</div></div></div></div><!-- context menu --><context-menu context.bind="context"></context-menu></span></template>'})}(),System.register("views/query-viewer/scroll.service.js",["ramda","common/container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("ScrollService",(g=f=function b(){c(this,b)},f.either=d.curry(function(a,b,c){return e.of(d.prop(a,c)||b)}),f.target=function(a,b){return h.either("target",b,b).chain(function(b){return h.either(a,0,b)})},f.clientHeight=function(a){return h.target("clientHeight",a)},f.scrollHeight=function(a){return h.target("scrollHeight",a)},f.scrollTop=function(a){return h.target("scrollTop",a)},f.userScroll=function(a){return h.clientHeight(a).map(function(b){return b+h.scrollTop(a).value})},f.scrollRatio=function(a){return h.userScroll(a).map(function(b){return b/h.scrollHeight(a).value})},h=g)),a("ScrollService",h)}}}),System.register("views/query-viewer/query-viewer.js",["aurelia-event-aggregator","common/queries.model","./scroll.service","common/shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QueriesModel},function(a){f=a.ScrollService},function(a){g=a.notifications,h=a.commands}],execute:function(){a("QueryViewer",(j=i=function(){function a(b,d,e,g){var h=this;c(this,a),a.prototype.init=function(){h.pageIndex=0,h.showLoader=!0,h.vertStyle="v-min",h.runningQueryName=null},this.init(),a.prototype.setToPage=function(a){h.pageIndex=a,h.page=h.pages[h.pageIndex]};var i=function(a){return 1===f.scrollRatio(a).value};a.prototype.onScroll=function(a){i(a)&&!h.loadingInfiniteScroll&&d.moreToLoad()&&(h.loadingInfiniteScroll=!0,d.load())},a.prototype.publishError=function(a,c){return a.stopPropagation(),b.publish(g.i2b2.showError,c)},a.prototype.getContext=function(a,b,c){return{x:a.pageX,y:a.pageY,"class":"show",query:b,isCount:void 0!==c,count:c}},b.subscribe(e.i2b2.historyRefreshed,function(){return d.load()}),b.subscribe(e.i2b2.tabMax,function(){return h.vertStyle="v-full"}),b.subscribe(e.i2b2.tabMin,function(){return h.vertStyle="v-min"}),b.subscribe(e.i2b2.queryStarted,function(a){return h.runningQueryName=a}),b.subscribe(e.shrine.queriesReceived,function(a){h.pages=a,h.page=h.pages[0],h.runningQueryName=null,h.loadingInfiniteScroll=!1,h.showLoader=!1})}return a.prototype.updatePage=function(a){a.stopPropagation();var b=event.detail.index;this.page=this.pages[b]},a}(),i.inject=[d,e,g,h],k=j)),a("QueryViewer",k)}}}); \ No newline at end of file +"bundle";System.register("main.js",[],function(a,b){"use strict";function c(a){a.use.standardConfiguration().developmentLogging().feature("resources").feature("views"),a.start().then(function(){return a.setRoot("shell")})}return a("configure",c),{setters:[],execute:function(){}}}),System.register("resources/converters/box-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("BoxStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return"transform: translate("+String(-100*a)+"%);"},a}()),a("BoxStyleValueConverter",d)}}}),System.register("resources/converters/count-value-converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("CountValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a<0?"<=10 patients":a+" +-10 patients"},a}()),a("CountValueConverter",d)}}}),System.register("resources/converters/datetime.value.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateTimeValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY h:mm:ss a")},a}()),a("DateTimeValueConverter",e)}}}),System.register("resources/converters/result-style.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultStyleValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){var b=this.isUnresolved(a)?"color:"+this.getColorValue(a):"";return b},a.prototype.isUnresolved=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"FINISHED";return!a||a.status!==b},a.prototype.getColorValue=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ERROR",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#FF0000",d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#00FF00";return a&&a.status!==b?d:c},a}()),a("ResultStyleValueConverter",d)}}}),System.register("resources/converters/result-value.converter.js",[],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d;return{setters:[],execute:function(){a("ResultValueConverter",d=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return a?"FINISHED"!==a.status?"":a.count<0?"<=10":a.count:"not available"},a}()),a("ResultValueConverter",d)}}}),function(){var a=System.amdDefine;a("resources/custom/breakdown/breakdown.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px"><br><font>${data.resultType.i2b2Options.description}:</font></div><div style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px"></div><div repeat.for="result of data.results" style="clear: both; margin-left: 40px; float: left; height: 16px; line-height: 16px">${result.dataKey}: <font color="#0000dd">${result.value | count}</font></div></template>'})}(),System.register("resources/custom/breakdown/breakdown.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("Breakdown",(h=g("breakdown"),l=h((j=function b(){d(this,b),c(this,"data",k,this)},k=e(j.prototype,"data",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("Breakdown",l)}}}),function(){var a=System.amdDefine;a("resources/custom/error/error.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">${result.statusDescription}</span></b></a></b></span></template>'})}(),System.register("resources/custom/error/error.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p;return{setters:[function(a){h=a.inject,i=a.bindable,j=a.customElement},function(a){k=a.PubSub}],execute:function(){a("Error",(l=j("error"),p=l((n=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",o,i),i}return f(b,a),b}(k),o=g(n.prototype,"result",[i],{enumerable:!0,initializer:null}),m=n))||m)),a("Error",p)}}}),function(){var a=System.amdDefine;a("resources/custom/node-result/node-result.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear:both"><br><div style="float:left; font-weight:bold; margin-left:20px">${result.adapterNode} ${queryName}:</div></div><span> ${result.status}</span><patient-count if.one-way="result.status === \'COMPLETED\' || result.status === \'FINISHED\'" result.one-way="result"></patient-count><error if.one-way="result.status === \'ERROR\'" result.one-way="result"></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.status) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span></template>'})}(),System.register("resources/custom/node-result/node-result.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.customElement,g=a.bindable}],execute:function(){a("NodeResult",(h=f("node-result"),m=h((j=function b(){d(this,b),c(this,"result",k,this),c(this,"queryName",l,this)},k=e(j.prototype,"result",[g],{enumerable:!0,initializer:null}),l=e(j.prototype,"queryName",[g],{enumerable:!0,initializer:null}),i=j))||i)),a("NodeResult",m)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/node-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> <span style="color: black">COMPLETED</span> </span><span> <a if.one-way="result.status === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR </a></span><span if.one-way="!\'ERROR,COMPLETED,FINISHED\'.includes(result.status)"> <span style="color: #00dd00">RUNNING</span></span></div><div style="flex:1"><span if.one-way="\'STATUS,FINISHED\'.includes(result.status)" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div></template>'})}(),System.register("resources/custom/node-status/node-status.js",["aurelia-framework","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o;return{setters:[function(a){h=a.customElement,i=a.bindable},function(a){j=a.PubSub}],execute:function(){a("NodeStatus",(k=h("node-status"),o=k((m=function(a){function b(){d(this,b);for(var f=arguments.length,g=Array(f),h=0;h<f;h++)g[h]=arguments[h];var i=e(this,a.call.apply(a,[this].concat(g)));return c(i,"result",n,i),i}return f(b,a),b}(j),n=g(m.prototype,"result",[i],{enumerable:!0,initializer:null}),l=m))||l)),a("NodeStatus",o)}}}),function(){var a=System.amdDefine;a("resources/custom/node-status/temp.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<div style="display: flex"><div style="flex:1">${result.adapterNode}</div><div style="flex: 1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> <span style="color: black">${result.statusMessage}</span> </span><span> <a if.one-way="result.statusMessage === \'ERROR\'" class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)">ERROR: ${result.statusDescription} </a></span><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> <span style="color: #00dd00">${result.statusMessage}</span></span></div><div style="flex:1"><span if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" style="display: inline-block; color: #0000dd"> ${result.count | count}</span></div></div><patient-count if.one-way="result.statusMessage === \'COMPLETED\' || result.statusMessage === \'FINISHED\'" result.one-way="result"><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div></patient-count><error if.one-way="result.statusMessage === \'ERROR\'" result.one-way="result"> - <span title="${result.statusDescription}"><b><a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"><b><span color="#ff0000">ERROR: ${result.statusDescription}</span></b></a></b></span></error><span if.one-way="[\'ERROR\',\'COMPLETED\',\'FINISHED\'].indexOf(result.statusMessage) === -1"> - <span style="color: #00dd00">${result.statusMessage}</span></span>'})}(),function(){var a=System.amdDefine;a("resources/custom/patient-count/patient-count.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="clear: both; margin-left: 30px; float: left; height: 16px; line-height: 16px">Patient Count: <font color="#0000dd">- ${result.count | count}</font></div><breakdown repeat.for="breakdown of result.breakdowns" data.one-way="breakdown"></breakdown></template>'})}(),System.register("resources/custom/patient-count/patient-count.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable,g=a.customElement}],execute:function(){a("PatientCount",(h=g("patient-count"),l=h((j=function(){function a(){d(this,a),c(this,"result",k,this)}return a.prototype.attached=function(){},a}(),k=e(j.prototype,"result",[f],{enumerable:!0,initializer:null}),i=j))||i)),a("PatientCount",l)}}}),System.register("resources/index.js",[],function(a,b){"use strict";function c(a){var b="converters",c=["box-style.converter","count-value-converter","datetime.value.converter","result-style.converter","result-value.converter"];a.globalResources.apply(a,c.map(function(a){return"./"+b+"/"+a}));var d="custom",e=["error/error","breakdown/breakdown","node-result/node-result","node-status/node-status","patient-count/patient-count"];a.globalResources.apply(a,e.map(function(a){return"./"+d+"/"+a}))}return a("configure",c),{setters:[],execute:function(){}}}),System.register("services/queries.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.notifications}],execute:function(){a("QueriesModel",(h=g=function b(a,d,e){var f=this;c(this,b);var g=d,h=40,i=0,j=0,k=null;b.prototype.load=function(){return g.fetchPreviousQueries(f.maxQueriesPerFetch()+f.loadedCount()).then(function(a){return j=a.rowCount,i=a.queryResults.length,a})["catch"](function(a){return console.log(a)}).then(l).then(function(b){k=b,a.publish(e.shrine.queriesReceived,k)})},b.prototype.totalQueries=function(){return j},b.prototype.loadedCount=function(){return i},b.prototype.maxQueriesPerFetch=function(){return h},b.prototype.moreToLoad=function(){return i<j},b.prototype.hasData=function(){return null!==k&&void 0!==k};var l=function(a){arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new Promise(function(b,c){for(var d=[],e=6,f=a.adapters,g=f.length,h=a.queryResults,i=0;i<g;i+=e){var j=m(f,i,e),k=f.slice(i,j),l=n(k,h);d.push({nodes:k,results:l})}b(d)})},m=function(a,b,c){var d=b+c;return d<a.length?d:a.length},n=function(a,b){var c=[];return b.forEach(function(b,d){var e={name:b.query.queryName,id:b.query.networkId,date:b.query.dateCreated,flagged:b.query.flagged===!0,flagMessage:b.query.flagMessage||null,nodeResults:[],status:b.adaptersToResults.reduce(function(a,c){var d="FINISHED"===c.status?a.finished+1:a.finished,e="ERROR"===c.status?a.error+1:a.error;return{error:e,finished:d,total:b.adaptersToResults.length}},{error:0,finished:0,total:b.adaptersToResults.length})};a.forEach(function(a){e.nodeResults.push(b.adaptersToResults.find(function(b){return b.adapterNode===a}))}),c.push(e)}),c}},g.inject=[d,e,f],i=h)),a("QueriesModel",i)}}}),function(){var a=System.amdDefine;a("shell.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return"<template><query-status></query-status></template>"})}(),System.register("services/container.js",["ramda"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f;return{setters:[function(a){d=a}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Container",f=function(){function a(b){c(this,a),this.__value=b}return a.of=function(b){return new a(function(){return b})},a.prototype.map=function(b){return this.hasNothing()?a.of(null):a.of(b(this.value))},a.prototype.join=function(){return this.hasNothing()?a.of(null):this.value},a.prototype.chain=function(a){return this.map(a).join()},a.prototype.hasNothing=function(){return null===this.value||void 0===this.value},a.prototype.ap=function(a){a.map(this.value)},e(a,[{key:"value",get:function(){return this.__value()}}]),a}()),a("Container",f)}}}),System.register("services/i2b2.service.js",["ramda","./container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("I2B2Service",(g=f=function b(a){c(this,b);var f=a?e.of(a):e.of(null),g=d.curry(function(a,b){return b.value?e.of(d.prop(a,b.value)):e.of(null)}),h=d.compose(g("i2b2"),g("window"),g("parent")),i=d.compose(g("CRC"),h),j=d.compose(g("events"),h),k=d.compose(g("SHRINE"),h);b.prototype.onResize=function(a){return j(f).map(function(b){return b.changedZoomWindows.subscribe(a)})},b.prototype.onHistory=function(a){return i(f).map(function(b){return b.ctrlr.history.events.onDataUpdate.subscribe(a)})},b.prototype.onQuery=function(a){return j(f).map(function(b){return b.afterQueryInit.subscribe(a)})},b.prototype.onNetworkId=function(a){return j(f).map(function(b){return b.networkIdReceived.subscribe(a)})},b.prototype.onViewSelected=function(a){return g("addEventListener",f).value?e.of(f.value.addEventListener("message",a,!1)):e.of(null)},b.prototype.onExport=function(a){return j(f).map(function(b){return b.exportQueryResult.subscribe(a)})},b.prototype.loadHistory=function(){return i(f).map(function(a){return a.view.history.doRefreshAll()})},b.prototype.loadQuery=function(a){return i(f).map(function(b){return b.ctrlr.QT.doQueryLoad(a)})},b.prototype.errorDetail=function(a){return k(f).map(function(b){return b.plugin.errorDetail(a)})},b.prototype.renameQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.queryRename(a,!1)})},b.prototype.flagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Flag({queryId:a,message:""})})},b.prototype.unflagQuery=function(a){return i(f).map(function(b){return b.ctrlr.history.Unflag({queryId:a})})},b.prototype.publishQueryUnavailable=function(){return j(f).map(function(a){return a.queryResultUnavailable.fire()})},b.prototype.publishQueryAvailable=function(){return j(f).map(function(a){return a.queryResultAvailable.fire()})}},f.inject=[window],h=g)),a("I2B2Service",h)}}}),System.register("services/i2b2.pub-sub.js",["./pub-sub","./i2b2.service"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h,i,j;return{setters:[function(a){f=a.PubSub},function(a){g=a.I2B2Service}],execute:function(){a("I2B2PubSub",(i=h=function(a){function b(e){c(this,b);for(var f=arguments.length,g=Array(f>1?f-1:0),h=1;h<f;h++)g[h-1]=arguments[h];var i=d(this,a.call.apply(a,[this].concat(g)));return i.listen=function(){e.onResize(function(a,b){return b.find(function(a){return"ADD"===a.action})?function(){return i.publish(i.notifications.i2b2.tabMax)}:function(){return i.publish(i.notifications.i2b2.tabMin)}}),e.onHistory(function(){return i.publish(i.notifications.i2b2.historyRefreshed)}),e.onQuery(function(a,b){return i.publish(i.notifications.i2b2.queryStarted,b[0].name)}),e.onNetworkId(function(a,b){return i.publish(i.notifications.i2b2.networkIdReceived,b[0])}),e.onViewSelected(function(a){return i.publish(i.notifications.i2b2.viewSelected,a.data)}),e.onExport(function(){return i.publish(i.notifications.i2b2.exportQuery)}),i.subscribe(i.commands.i2b2.cloneQuery,function(a){return e.loadQuery(a)}),i.subscribe(i.commands.i2b2.showError,function(a){return e.errorDetail(a)}),i.subscribe(i.commands.i2b2.renameQuery,function(a){return e.renameQuery(a)}),i.subscribe(i.commands.i2b2.flagQuery,function(a){return e.flagQuery(a)}),i.subscribe(i.commands.i2b2.unflagQuery,function(a){return e.unflagQuery(a)}),i.subscribe(i.notifications.shrine.queryUnavailable,function(){return e.publishQueryUnavailable()}),i.subscribe(i.notifications.shrine.queryAvailable,function(){return e.publishQueryAvailable()})},i}return e(b,a),b}(f),h.inject=[g],j=i)),a("I2B2PubSub",j)}}}),System.register("services/query-export.js",["./pub-sub"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function e(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}var f,g,h;return{setters:[function(a){f=a.PubSub}],execute:function(){a("QueryExport",g=function(a){function b(){c(this,b);for(var e=arguments.length,f=Array(e),g=0;g<e;g++)f[g]=arguments[g];return d(this,a.call.apply(a,[this].concat(f)))}return e(b,a),b.prototype.listen=function(){this.subscribe(this.commands.shrine.exportResult,h)},b}(f)),a("QueryExport",g),h=function(a){var b=a.nodes.sort(),c=new Map,d=function(a){var b=a.resultType.i2b2Options.description;return b},e=function(a,b){return d(a)<=d(b)?-1:1};b.forEach(function(a){var b=a.breakdowns;return b.sort(e).forEach(function(a){var b,d=a.resultType.i2b2Options.description,e=a.results;return c.has(d)?(b=c.get(d)).add.apply(b,e.map(function(a){return a.dataKey}).sort()):c.set(d,new Set(e.map(function(a){return a.dataKey}).sort()))})});var f="data:text/csv;charset=utf-8,SHRINE QUERY RESULTS (OBFUSCATED PATIENT COUNTS),"+[""].concat(b.map(function(a){return a.adapterNode}).join(",")),g="\nAll Patients,"+[""].concat(b.map(function(a){return a.count}).join(",")),h=[];c.forEach(function(a,c){h.push.apply(h,[""].concat(Array.from(a).map(function(a){var d=c.split(" ").shift()+","+a,e=b.map(function(b){var d=b.breakdowns,e=d.find(function(a){var b=a.resultType.i2b2Options.description;a.results;return b===c}),f=e?e.results.find(function(b){return b.dataKey===a}):void 0;return f?f.value>0?f.value:0:"unavailable"});return d+","+e.join(",")})))});var i=encodeURI(""+f+g+h.join("\n")),j=document.createElement("a");j.setAttribute("href",i),j.setAttribute("download","export.csv"),document.body.appendChild(j),j.click(),document.body.removeChild(j)}}}}),System.register("shell.js",["services/i2b2.pub-sub","services/query-export"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.I2B2PubSub},function(a){e=a.QueryExport}],execute:function(){a("Shell",(g=f=function b(a,d){c(this,b),a.listen(),d.listen()},f.inject=[d,e],h=g)),a("Shell",h)}}}),System.register("views/index.js",[],function(a,b){"use strict";function c(a){var b=["views/query-status/query-status"];a.globalResources.apply(a,b)}return a("configure",c),{setters:[],execute:function(){}}}),function(){var a=System.amdDefine;a("views/mailto/mailto.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="mailto"><div class="content"><p>If you have questions about your query results or this SHRINE network, contact the Data Steward at your site.</p><div class="email js-email"><button class="button button--large js-button" click.delegate="openEmail()">Email Data Steward</button></div></div></div></template>'})}(),System.register("views/mailto/mailto.service.js",["repository/qep.repository"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g;return{setters:[function(a){d=a.QEPRepository}],execute:function(){a("MailToService",(f=e=function(){function a(b){c(this,a),this.repository=b}return a.prototype.fetchStewardEmail=function(){return this.repository.fetchStewardEmail()},a}(),e.inject=[d],g=f)),a("MailToService",g)}}}),System.register("views/mailto/mailto.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("MailConfig",c={mailto:"mailto:",subject:encodeURIComponent("Question from a SHRINE User"),body:encodeURIComponent("Please enter the suggested information and your question. Your data steward will reply to this email.\n \n\n***Never send patient information, passwords, or other sensitive information by email****\n \nName:\n \nTitle:\n \nUser name (to log into SHRINE):\n \nTelephone Number (optional):\n \nPreferred email address (optional):\n \n\nQuestion or Comment:")}),a("MailConfig",c)}}}),System.register("views/mailto/mailto.js",["views/mailto/mailto.service","views/mailto/mailto.config"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.MailToService},function(a){e=a.MailConfig}],execute:function(){a("MailTo",(g=f=function(){function a(b,d){c(this,a),this.service=b,this.config=d}return a.prototype.openEmail=function(){var a=this;this.service.fetchStewardEmail().then(function(b){window.top.location="mailto:"+b+"?subject="+a.config.subject+"&body="+a.config.body})},a}(),f.inject=[d,e],h=g)),a("MailTo",h)}}}),function(){var a=System.amdDefine;a("views/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div style="height: 100%; overflow: auto"><div style="display: flex" if.one-way="status.query.queryName"><div style="flex:1">Status of Query: ${status.query.queryName}</div><div style="flex:1" if.one-way="status.nodes.length">Last Updated: ${status.updated | dateTime}</div><div style="flex:1" if.one-way="!status.nodes.length">Waiting on response from network...</div></div><br><node-status repeat.for="node of status.nodes" result.one-way="node"></node-status><span if.one-way="status.nodes.length"><br><span>Completed query counts and breakdowns are shown below:</span><div style="width: 100%; border-bottom: 1px solid"></div><br></span><node-result repeat.for="node of status.nodes" result.one-way="node" query-name.one-way="status.query.queryName"></node-result></div></template>'})}(),System.register("repository/qep.repository.js",["aurelia-fetch-client","fetch"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a.HttpClient},function(a){}],execute:function(){e=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("QEPRepository",(g=f=function(){function a(b){var d=this;c(this,a),b.configure(function(a){a.useStandardConfiguration().withBaseUrl(d.url).withDefaults({headers:{Authorization:"Basic "+d.auth}})}),this.http=b}return a.prototype.fetchPreviousQueries=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.http.fetch("qep/queryResults?limit="+a+"&skip="+b).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchNetworkId=function(a){return this.http.fetch("qep/networkId?queryName='"+a+"'").then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchQuery=function(a,b,c){return this.http.fetch("qep/queryResult/"+a+"?timeoutSeconds="+b+"&afterVersion="+c).then(function(a){return a.json()})["catch"](function(a){return a})},a.prototype.fetchStewardEmail=function(){return this.http.fetch("data?key=stewardEmail").then(function(a){return a.json()}).then(function(a){return a.indexOf('"')>0?a.split('"')[1]:a})["catch"](function(){return""})},e(a,[{key:"url",get:function(){var a=document.URL,b=":6443/shrine-metadata/";return a.substring(0,a.lastIndexOf(":"))+b}},{key:"auth",get:function(){var a=sessionStorage.getItem("shrine.auth");return sessionStorage.removeItem("shrine.auth"),a}}]),a}(),f.inject=[d],h=g)),a("QEPRepository",h)}}}),System.register("services/query-status.model.js",["aurelia-event-aggregator","repository/qep.repository","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k,l;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QEPRepository},function(a){f=a.commands,g=a.notifications}],execute:function(){h=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},k=function(){var a=!1;return function(b){return a=void 0===b?a:!!b}}(),a("QueryStatusModel",(j=i=function b(a,d,e){c(this,b);var g=function(b){return a.publish(e.shrine.queryReceived,b)},i=function(a){return console.log("ERROR: "+a)},j=function(a){return new Promise(function(b,c){var d=[].concat(a.results),e=a.dataVersion,f=d.length>0&&d.filter(function(a){return"ERROR,COMPLETED,FINISHED".includes(a.status)}).length===d.length,g=h({},a.query,{complete:f});b({query:g,nodes:d,dataVersion:e})})},k=function(a){d.fetchQuery(a.networkId,a.timeoutSeconds,a.dataVersion).then(function(a){return j(a); +})["catch"](function(a){return i(a)}).then(function(a){return g(a)})},l=function(){a.subscribe(f.shrine.fetchQuery,k)};l()},i.inject=[d,e,g],l=j)),a("QueryStatusModel",l)}}}),System.register("services/shrine.messages.js",[],function(a,b){"use strict";var c,d;return{setters:[],execute:function(){a("notifications",c={i2b2:{tabMax:"notification.from.i2b2.tab.max",tabMin:"notification.from.i2b2.tab.min",viewSelected:"notification.from.i2b2.tab.selected",historyRefreshed:"notification.from.i2b2.history.refreshed",queryStarted:"notification.from.i2b2.query.started",messageReceived:"notification.from.i2b2.message.received",networkIdReceived:"notification.from.i2b2.networkId.receieved",exportQuery:"notification.from.i2b2.export.query"},shrine:{queriesReceived:"notification.from.shrine.queries.received",queryReceived:"notification.from.shrine.query.recieved",queryUnavailable:"notification.from.shrine.query.unavailable",queryAvailable:"notification.from.shrine.query.available"}}),a("notifications",c),a("commands",d={i2b2:{cloneQuery:"command.to.i2b2.clone.query",showError:"command.to.i2b2.show.error",flagQuery:"command.to.i2b2.flag.query",unflagQuery:"command.to.i2b2.unflag.query",renameQuery:"command.to.i2b2.rename.query"},shrine:{fetchQuery:"command.to.shrine.fetch.query",exportResult:"command.to.shrine.export.result"}}),a("commands",d)}}}),System.register("services/pub-sub.js",["aurelia-event-aggregator","./shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.commands,f=a.notifications}],execute:function(){a("PubSub",(h=g=function b(a,d,e){c(this,b),this.commands=d,this.notifications=e,this.publish=function(b,c){return a.publish(b,c)},this.subscribe=function(b,c){return a.subscribe(b,c)}},g.inject=[d,e,f],i=h)),a("PubSub",i)}}}),System.register("views/query-status/query-status.js",["aurelia-framework","services/query-status.model","services/pub-sub"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?a:b}function f(a,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}function g(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;return{setters:[function(a){h=a.customElement,i=a.observable},function(a){j=a.QueryStatusModel},function(a){k=a.PubSub}],execute:function(){l=Object.assign||function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},a("QueryStatus",(m=h("query-status"),s=m((r=q=function(a){function b(f){d(this,b);for(var g=arguments.length,h=Array(g>1?g-1:0),i=1;i<g;i++)h[i-1]=arguments[i];var j=e(this,a.call.apply(a,[this].concat(h)));return c(j,"status",p,j),v.set(j,{isDevEnv:document.location.href.includes("http://localhost:8000/"),exportAvailable:!1}),j}return f(b,a),b.prototype.statusChanged=function(a,b){a.nodes&&a.nodes.length?(v.get(this).exportAvailable=!0,this.publish(this.notifications.shrine.queryAvailable)):(v.get(this).exportAvailable=!1,this.publish(this.notifications.shrine.queryUnavailable))},b.prototype.attached=function(){var a=this;this.subscribe(this.notifications.i2b2.queryStarted,function(b){a.status=w(),a.status.query.queryName=b}),this.subscribe(this.notifications.i2b2.networkIdReceived,function(b){var c=b.networkId,d=w(),e=d.nodes;d.query.queryName=b.name||d.query.queryName,a.status=a.status?l({},a.status,{nodes:e}):d,a.publish(a.commands.shrine.fetchQuery,{networkId:c,timeoutSeconds:t,dataVersion:u})}),this.subscribe(this.notifications.i2b2.exportQuery,function(){a.publish(a.commands.shrine.exportResult,l({},a.status))}),this.subscribe(this.notifications.shrine.queryReceived,function(b){var c=b.query,d=b.nodes,e=b.dataVersion,f=Number(new Date),g=b.query.complete,h=b.query.networkId;a.status=l({},a.status,{query:c,nodes:d,updated:f}),g||window.setTimeout(function(){return a.publish(a.commands.shrine.fetchQuery,{networkId:h,dataVersion:e,timeoutSeconds:t})},5e3)}),v.get(this).isDevEnv&&this.publish(this.notifications.i2b2.networkIdReceived,{networkId:1,name:"started query"})},b}(k),q.inject=[j],o=r,p=g(o.prototype,"status",[i],{enumerable:!0,initializer:null}),n=o))||n)),a("QueryStatus",s),t=15,u=-1,v=new WeakMap,w=function(a){return{query:{queryName:null,updated:null,complete:!1},nodes:null}}}}}),function(){var a=System.amdDefine;a("views/query-viewer/context-menu/context-menu.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><ul class="context-menu ${context.class || \'hide\'}" mouseleave.trigger="context.class=\'hide\'" css="top: ${context.y - 40}; left: ${context.x - 50};"><li if.bind="context.isCount"><a click.delegate="refreshHistory()" href="#"><i class="fa fa-bar-chart-o"></i>Breakdown</a></li><li click.delegate="cloneQuery(context.query.id)"><a href="#"><i class="fa fa-files-o"></i> Clone</a></li><li><a click.delegate="renameQuery(context.query.id)" href="#"><i class="fa fa-edit"></i> Rename</a></li><!--li><a click.delegate="flagQuery(context.query.id)" href="#"><i class="fa fa-flag"></i> Flag</a></li--><!--li><a click.delegate="unflagQuery(context.query.id)" href="#"><i class="fa fa-flag-o"></i> Unflag</a></li--></ul></template>'})}(),System.register("views/query-viewer/context-menu/context-menu.js",["aurelia-framework","aurelia-event-aggregator","common/shrine.messages"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m,n;return{setters:[function(a){f=a.bindable},function(a){g=a.EventAggregator},function(a){h=a.commands}],execute:function(){a("ContextMenu",(l=k=function b(a,c){var e=this;d(this,b),m.call(this),b.prototype.cloneQuery=function(b){a.publish(c.i2b2.cloneQuery,b),e.context["class"]="hide"},b.prototype.renameQuery=function(b){a.publish(c.i2b2.renameQuery,b),e.context["class"]="hide"},b.prototype.flagQuery=function(b){a.publish(c.i2b2.flagQuery,b),e.context["class"]="hide"},b.prototype.unflagQuery=function(b){a.publish(c.i2b2.unflagQuery,b),e.context["class"]="hide"}},k.inject=[g,h],m=function(){c(this,"context",j,this)},i=l,j=e(i.prototype,"context",[f],{enumerable:!0,initializer:null}),n=i)),a("ContextMenu",n)}}}),System.register("views/query-viewer/date.converter.js",["moment"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e;return{setters:[function(a){d=a["default"]}],execute:function(){a("DateValueConverter",e=function(){function a(){c(this,a)}return a.prototype.toView=function(a){return d(a).format("MM/DD/YYYY")},a}()),a("DateValueConverter",e)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/loading-bar.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="loader"><h1>${status}</h1><div class="slider"><div class="line"></div><div class="break dot1"></div><div class="break dot2"></div><div class="break dot3"></div></div></div></template>'})}(),System.register("views/query-viewer/loading-bar/loading-bar.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i;return{setters:[function(a){f=a.bindable}],execute:function(){a("LoadingBar",(g=function b(){d(this,b),c(this,"status",h,this)},h=e(g.prototype,"status",[f],{enumerable:!0,initializer:null}),i=g)),a("LoadingBar",i)}}}),function(){var a=System.amdDefine;a("views/query-viewer/loading-bar/row-loader.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return""})}(),function(){var a=System.amdDefine;a("views/query-viewer/paginator/paginator.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,700" rel="stylesheet" type="text/css"><div class="paginator"><ol class="btn-group"><li class="btn-group__item" click.delegate="pageIndex = index - 1"><i class="i-chevron-left"></i></li><li repeat.for="page of pages" class="btn-group__item" click.delegate="pageIndex = $index"><button class="btn btn--basic ${index === $index? \'current\' : \'\'}">${$index + 1}</button></li><li class="btn-group__item" click.delegate="pageIndex = index + 1"><i class="i-chevron-right"></i></li></ol></div></template>'})}(),System.register("views/query-viewer/paginator/paginator.js",["aurelia-framework"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l;return{setters:[function(a){f=a.bindable}],execute:function(){g=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),a("Paginator",(k=j=function(){function a(b){var e=this;d(this,a),c(this,"pages",i,this),a.prototype.init=function(){e.index=0,e.element=b},this.init()}return g(a,[{key:"pageIndex",set:function(a){var b=this.pages.length-1;this.index=a<0?0:a>b?b:a,this.element.dispatchEvent(new CustomEvent("paginator-click",{detail:{index:this.index},bubbles:!0,cancelable:!0}))}}]),a}(),j.inject=[Element],h=k,i=e(h.prototype,"pages",[f],{enumerable:!0,initializer:null}),l=h)),a("Paginator",l)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-status/query-status.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><div class="tooltip"><span ref="tooltipContent" data-line1="Total: ${total}" data-line2="Available: ${finished}, Error: ${error}, Pending: ${pending}"><svg viewbox="0 0 35 35" class="query-status"><circle cx="18" cy="16" r="12" class="countdown__background"/><circle cx="18" cy="16" r="12" class="error__progress" css="stroke-dashoffset: ${errorOffset}"/><circle cx="18" cy="16" r="12" class="ready__progress" css="stroke-dashoffset: ${readyOffset}"/></svg></span></div></template>'})}(),System.register("views/query-viewer/query-status/query-status.js",["aurelia-framework","ramda"],function(a,b){"use strict";function c(a,b,c,d){c&&Object.defineProperty(a,b,{enumerable:c.enumerable,configurable:c.configurable,writable:c.writable,value:c.initializer?c.initializer.call(d):void 0})}function d(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function e(a,b,c,d,e){var f={};return Object.keys(d).forEach(function(a){f[a]=d[a]}),f.enumerable=!!f.enumerable,f.configurable=!!f.configurable,("value"in f||f.initializer)&&(f.writable=!0),f=c.slice().reverse().reduce(function(c,d){return d(a,b,c)||c},f),e&&void 0!==f.initializer&&(f.value=f.initializer?f.initializer.call(e):void 0,f.initializer=void 0),void 0===f.initializer&&(Object.defineProperty(a,b,f),f=null),f}var f,g,h,i,j,k,l,m;return{setters:[function(a){f=a.bindable},function(a){g=a}],execute:function(){a("QueryStatus",(k=j=function(){function a(b){d(this,a),l.call(this),this.floor=b.floor}return a.prototype.attached=function(){var a=75,b=g.curry(function(a,b,c,d){return a(d/c*b)})(this.floor,a,this.status.total),c=this.status,d=b(c.finished),e=b(c.error);this.readyOffset=100-d,this.errorOffset=this.readyOffset-e,this.finished=c.finished,this.error=c.error,this.pending=c.total-(c.finished+c.error),this.total=c.total},a}(),j.inject=[Math],l=function(){c(this,"status",i,this)},h=k,i=e(h.prototype,"status",[f],{enumerable:!0,initializer:null}),m=h)),a("QueryStatus",m)}}}),System.register("views/query-viewer/query-viewer.config.js",[],function(a,b){"use strict";var c;return{setters:[],execute:function(){a("QueryViewerConfig",c={maxNodesPerScreen:10,maxQueriesPerScroll:40}),a("QueryViewerConfig",c)}}}),function(){var a=System.amdDefine;a("views/query-viewer/query-viewer.html!github:systemjs/plugin-text@0.0.8.js",[],function(){return'<template><require from="views/query-viewer/result-style.converter"></require><require from="views/query-viewer/result-value.converter"></require><require from="views/query-viewer/box-style.converter"></require><require from="views/query-viewer/context-menu/context-menu"></require><require from="views/query-viewer/loading-bar/loading-bar"></require><require from="views/query-viewer/paginator/paginator"></require><require from="views/query-viewer/date.converter"></require><require from="views/query-viewer/query-status/query-status"></require><span class="query-viewer"><loading-bar status.bind="\'Loading...\'" if.bind="showLoader"></loading-bar><div style="width: 100%; text-align: center"><paginator pages.bind="pages" paginator-click.delegate="updatePage($event)" if.bind="pages.length > 1"></paginator></div><div class="flex-table"><div class="flex-table-row node-header"><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item"></div><div repeat.for="node of page.nodes" class="flex-table-item">${node}</div></div></div><div class="flex-table query-viewer ${vertStyle}" scroll.trigger="onScroll($event)"><div><!-- @todo: create running query component --><div class="flex-table-row" if.bind="runningQueryName"><div class="flex-table-item"></div><div class="flex-table-item">${runningQueryName}</div><div class="flex-table-item"></div><div class="flex-table-item"></div><div class="flex-table-item" repeat.for="node of page.nodes" style="color: #00FF00">RUNNING</div></div><div repeat.for="result of page.results" class="flex-table-row"><div class="flex-table-item"><i if.bind="result.flagged" class="fa fa-flag"></i> <i if.bind="!result.flagged" class="fa fa-flag-o"></i></div><div class="flex-table-item" click.delegate="context = getContext($event, result)"><div class="ellipses">${result.name}</div></div><div class="flex-table-item" click.delegate="context = getContext($event, result)">${result.date | date}</div><div class="flex-table-item"><query-status status.bind="result.status"></query-status></div><div repeat.for="nodeResult of result.nodeResults" class="flex-table-item" click.delegate="context = getContext($event, result)"><a if.bind="nodeResult.status === \'ERROR\'" style="text-decoration: underline; color:red" click.delegate="publishError($event, nodeResult)">${nodeResult.status} </a>${nodeResult}</div></div><div class="flex-table-row" if.bind="loadingInfiniteScroll"><div style="width: 100%; text-align: center; font-size: 1.5rem; background:rgba(217, 236, 240, .05); text-align:center; color: rgba(0, 0, 0, .20)"><i class="fa fa-spinner fa-spin" style="color: inherit"></i> Loading...</div></div></div></div><!-- context menu --><context-menu context.bind="context"></context-menu></span></template>'})}(),System.register("views/query-viewer/scroll.service.js",["ramda","common/container"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h;return{setters:[function(a){d=a},function(a){e=a.Container}],execute:function(){a("ScrollService",(g=f=function b(){c(this,b)},f.either=d.curry(function(a,b,c){return e.of(d.prop(a,c)||b)}),f.target=function(a,b){return h.either("target",b,b).chain(function(b){return h.either(a,0,b)})},f.clientHeight=function(a){return h.target("clientHeight",a)},f.scrollHeight=function(a){return h.target("scrollHeight",a)},f.scrollTop=function(a){return h.target("scrollTop",a)},f.userScroll=function(a){return h.clientHeight(a).map(function(b){return b+h.scrollTop(a).value})},f.scrollRatio=function(a){return h.userScroll(a).map(function(b){return b/h.scrollHeight(a).value})},h=g)),a("ScrollService",h)}}}),System.register("views/query-viewer/query-viewer.js",["aurelia-event-aggregator","common/queries.model","./scroll.service","common/shrine.messages"],function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}var d,e,f,g,h,i,j,k;return{setters:[function(a){d=a.EventAggregator},function(a){e=a.QueriesModel},function(a){f=a.ScrollService},function(a){g=a.notifications,h=a.commands}],execute:function(){a("QueryViewer",(j=i=function(){function a(b,d,e,g){var h=this;c(this,a),a.prototype.init=function(){h.pageIndex=0,h.showLoader=!0,h.vertStyle="v-min",h.runningQueryName=null},this.init(),a.prototype.setToPage=function(a){h.pageIndex=a,h.page=h.pages[h.pageIndex]};var i=function(a){return 1===f.scrollRatio(a).value};a.prototype.onScroll=function(a){i(a)&&!h.loadingInfiniteScroll&&d.moreToLoad()&&(h.loadingInfiniteScroll=!0,d.load())},a.prototype.publishError=function(a,c){return a.stopPropagation(),b.publish(g.i2b2.showError,c)},a.prototype.getContext=function(a,b,c){return{x:a.pageX,y:a.pageY,"class":"show",query:b,isCount:void 0!==c,count:c}},b.subscribe(e.i2b2.historyRefreshed,function(){return d.load()}),b.subscribe(e.i2b2.tabMax,function(){return h.vertStyle="v-full"}),b.subscribe(e.i2b2.tabMin,function(){return h.vertStyle="v-min"}),b.subscribe(e.i2b2.queryStarted,function(a){return h.runningQueryName=a}),b.subscribe(e.shrine.queriesReceived,function(a){h.pages=a,h.page=h.pages[0],h.runningQueryName=null,h.loadingInfiniteScroll=!1,h.showLoader=!1})}return a.prototype.updatePage=function(a){a.stopPropagation();var b=event.detail.index;this.page=this.pages[b]},a}(),i.inject=[d,e,g,h],k=j)),a("QueryViewer",k)}}}); \ No newline at end of file diff --git a/shrine-webclient/src/main/js/client/js-shrine/src/resources/custom/error/error.html b/shrine-webclient/src/main/js/client/js-shrine/src/resources/custom/error/error.html index 89226208a..898a85b65 100644 --- a/shrine-webclient/src/main/js/client/js-shrine/src/resources/custom/error/error.html +++ b/shrine-webclient/src/main/js/client/js-shrine/src/resources/custom/error/error.html @@ -1,13 +1,13 @@ <template> - <span title="${result.statusDescription}"> <b> <a class="query-error-anchor" href="#" style="color:#ff0000" click.delegate="publish(commands.i2b2.showError, result)"> <b> <span color="#ff0000"> - ERROR: ${result.statusDescription} + ${result.statusDescription} </span> </b> </a> </b> </span> </template>