@papaemmelab/isabl-web 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -91398,7 +91398,7 @@ module.exports = overArg;
91398
91398
  /***/ "9224":
91399
91399
  /***/ (function(module) {
91400
91400
 
91401
- module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.19\",\"scripts\":{\"serve\":\"vue-cli-service serve\",\"lint\":\"vue-cli-service lint\",\"build-lib\":\"vue-cli-service build --target lib --name isabl-web ./src/main.js\",\"build-wc\":\"vue-cli-service build --target wc --name isabl-web ./src/components/*.vue\",\"build-wc-async\":\"vue-cli-service build --target wc-async --name isabl-web ./src/components/*.vue\",\"publish-app\":\"yarn version --patch && yarn build-lib && yarn publish --access public\",\"dev\":\"yarn build-lib --watch\",\"test:unit\":\"vue-cli-service test:unit\",\"test:e2e\":\"vue-cli-service test:e2e\",\"test:travis\":\"yarn test:e2e --headless\",\"test:submissions\":\"node tests/utils/create_test_submission.js\",\"test:report-coverage\":\"nyc report --reporter=text-lcov > coverage.lcov && codecov -t $CODECOV_TOKEN\",\"demo\":\"nodemon demo/demo-app.js\"},\"dependencies\":{\"@mdi/font\":\"^7.0.96\",\"ansi_up\":\"^5\",\"axios\":\"^0.21.1\",\"crossfilter\":\"^1.3.12\",\"crossfilter2\":\"^1.4.7\",\"d3-tip\":\"^0.9.1\",\"dc\":\"3.1.2\",\"detect-csv\":\"^1.1.0\",\"js-md5\":\"^0.7.3\",\"minify-css-string\":\"^1.0.0\",\"moment\":\"^2.22.2\",\"register-service-worker\":\"^1.5.2\",\"v-hotkey\":\"^0.6.0\",\"vue\":\"^2.5.16\",\"vue-clipboard2\":\"^0.2.1\",\"vue-gallery\":\"^1.4.0\",\"vue-highlightjs\":\"^1.3.3\",\"vue-json-excel\":\"^0.2.5\",\"vue-observe-visibility\":\"^0.4.6\",\"vue-router\":\"^3.0.1\",\"vue-upload-component\":\"^2.8.11\",\"vuetify\":\"2.6.10\",\"vuex\":\"^3.0.1\",\"vuex-router-sync\":\"^5.0.0\"},\"devDependencies\":{\"@cypress/code-coverage\":\"^1.10.1\",\"@vue/cli-plugin-babel\":\"^3.3.0\",\"@vue/cli-plugin-e2e-cypress\":\"^3.3.0\",\"@vue/cli-plugin-eslint\":\"^3.3.0\",\"@vue/cli-plugin-pwa\":\"^3.3.0\",\"@vue/cli-plugin-unit-jest\":\"^3.3.0\",\"@vue/cli-service\":\"^3.3.0\",\"@vue/eslint-config-prettier\":\"^3.0.5\",\"@vue/test-utils\":\"^1.0.0-beta.20\",\"axios-mock-adapter\":\"^1.15.0\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^23.0.1\",\"babel-plugin-istanbul\":\"^5.2.0\",\"codecov\":\"^3.6.1\",\"eslint-plugin-vuetify\":\"^1.1.0\",\"express\":\"^4.16.3\",\"html-webpack-plugin\":\"^3.2.0\",\"istanbul-lib-coverage\":\"^2.0.5\",\"mini-css-extract-plugin\":\"^0.4.2\",\"nyc\":\"^14.1.1\",\"sass\":\"^1.55.0\",\"sass-loader\":\"^7.0.1\",\"vue-template-compiler\":\"^2.5.16\",\"xlsx-populate\":\"^1.19.1\"},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not ie <= 8\"],\"main\":\"./dist/isabl-web.umd.min.js\",\"license\":\"MIT\",\"files\":[\"dist/isabl-web*.js\"],\"author\":\"Juan S. Medina - Juan E. Arango\",\"description\":\"Isabl Frontend of the MSK Academic License.\",\"bugs\":{\"url\":\"https://github.com/papaemmelab/isabl_web/issues\"},\"homepage\":\"https://github.com/papaemmelab/isabl_web#readme\"}");
91401
+ module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.21\",\"scripts\":{\"serve\":\"vue-cli-service serve\",\"lint\":\"vue-cli-service lint\",\"build-lib\":\"vue-cli-service build --target lib --name isabl-web ./src/main.js\",\"build-wc\":\"vue-cli-service build --target wc --name isabl-web ./src/components/*.vue\",\"build-wc-async\":\"vue-cli-service build --target wc-async --name isabl-web ./src/components/*.vue\",\"publish-app\":\"yarn version --patch && yarn build-lib && yarn publish --access public\",\"dev\":\"yarn build-lib --watch\",\"test:unit\":\"vue-cli-service test:unit\",\"test:e2e\":\"vue-cli-service test:e2e\",\"test:travis\":\"yarn test:e2e --headless\",\"test:submissions\":\"node tests/utils/create_test_submission.js\",\"test:report-coverage\":\"nyc report --reporter=text-lcov > coverage.lcov && codecov -t $CODECOV_TOKEN\",\"demo\":\"nodemon demo/demo-app.js\"},\"dependencies\":{\"@mdi/font\":\"^7.0.96\",\"ansi_up\":\"^5\",\"axios\":\"^0.21.1\",\"crossfilter\":\"^1.3.12\",\"crossfilter2\":\"^1.4.7\",\"d3-tip\":\"^0.9.1\",\"dc\":\"3.1.2\",\"detect-csv\":\"^1.1.0\",\"js-md5\":\"^0.7.3\",\"minify-css-string\":\"^1.0.0\",\"moment\":\"^2.22.2\",\"register-service-worker\":\"^1.5.2\",\"v-hotkey\":\"^0.6.0\",\"vue\":\"^2.5.16\",\"vue-clipboard2\":\"^0.2.1\",\"vue-gallery\":\"^1.4.0\",\"vue-highlightjs\":\"^1.3.3\",\"vue-json-excel\":\"^0.2.5\",\"vue-observe-visibility\":\"^0.4.6\",\"vue-router\":\"^3.0.1\",\"vue-upload-component\":\"^2.8.11\",\"vuetify\":\"2.6.10\",\"vuex\":\"^3.0.1\",\"vuex-router-sync\":\"^5.0.0\"},\"devDependencies\":{\"@cypress/code-coverage\":\"^1.10.1\",\"@vue/cli-plugin-babel\":\"^3.3.0\",\"@vue/cli-plugin-e2e-cypress\":\"^3.3.0\",\"@vue/cli-plugin-eslint\":\"^3.3.0\",\"@vue/cli-plugin-pwa\":\"^3.3.0\",\"@vue/cli-plugin-unit-jest\":\"^3.3.0\",\"@vue/cli-service\":\"^3.3.0\",\"@vue/eslint-config-prettier\":\"^3.0.5\",\"@vue/test-utils\":\"^1.0.0-beta.20\",\"axios-mock-adapter\":\"^1.15.0\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^23.0.1\",\"babel-plugin-istanbul\":\"^5.2.0\",\"codecov\":\"^3.6.1\",\"eslint-plugin-vuetify\":\"^1.1.0\",\"express\":\"^4.16.3\",\"html-webpack-plugin\":\"^3.2.0\",\"istanbul-lib-coverage\":\"^2.0.5\",\"mini-css-extract-plugin\":\"^0.4.2\",\"nyc\":\"^14.1.1\",\"sass\":\"^1.55.0\",\"sass-loader\":\"^7.0.1\",\"vue-template-compiler\":\"^2.5.16\",\"xlsx-populate\":\"^1.19.1\"},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not ie <= 8\"],\"main\":\"./dist/isabl-web.umd.min.js\",\"license\":\"MIT\",\"files\":[\"dist/isabl-web*.js\"],\"author\":\"Juan S. Medina - Juan E. Arango\",\"description\":\"Isabl Frontend of the MSK Academic License.\",\"bugs\":{\"url\":\"https://github.com/papaemmelab/isabl_web/issues\"},\"homepage\":\"https://github.com/papaemmelab/isabl_web#readme\"}");
91402
91402
 
91403
91403
  /***/ }),
91404
91404
 
@@ -207395,7 +207395,7 @@ var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq);
207395
207395
  // CONCATENATED MODULE: ./src/utils/tableColumns.js
207396
207396
  var cov_2ayhkohved = function () {
207397
207397
  var path = "/Users/arangooj/papaemme/isabl_web/src/utils/tableColumns.js";
207398
- var hash = "32f47e62d635bf0f4fe83060d0568c152a6f04d3";
207398
+ var hash = "788c692809d43fb08d2c78e8b8a1324be337194f";
207399
207399
  var global = new Function("return this")();
207400
207400
  var gcv = "__coverage__";
207401
207401
  var coverageData = {
@@ -207637,7 +207637,7 @@ var cov_2ayhkohved = function () {
207637
207637
  column: 28
207638
207638
  },
207639
207639
  end: {
207640
- line: 516,
207640
+ line: 522,
207641
207641
  column: 1
207642
207642
  }
207643
207643
  },
@@ -207933,91 +207933,101 @@ var cov_2ayhkohved = function () {
207933
207933
  },
207934
207934
  "53": {
207935
207935
  start: {
207936
- line: 417,
207936
+ line: 378,
207937
+ column: 8
207938
+ },
207939
+ end: {
207940
+ line: 378,
207941
+ column: 72
207942
+ }
207943
+ },
207944
+ "54": {
207945
+ start: {
207946
+ line: 423,
207937
207947
  column: 21
207938
207948
  },
207939
207949
  end: {
207940
- line: 417,
207950
+ line: 423,
207941
207951
  column: 76
207942
207952
  }
207943
207953
  },
207944
- "54": {
207954
+ "55": {
207945
207955
  start: {
207946
- line: 417,
207956
+ line: 423,
207947
207957
  column: 59
207948
207958
  },
207949
207959
  end: {
207950
- line: 417,
207960
+ line: 423,
207951
207961
  column: 75
207952
207962
  }
207953
207963
  },
207954
- "55": {
207964
+ "56": {
207955
207965
  start: {
207956
- line: 423,
207966
+ line: 429,
207957
207967
  column: 21
207958
207968
  },
207959
207969
  end: {
207960
- line: 423,
207970
+ line: 429,
207961
207971
  column: 73
207962
207972
  }
207963
207973
  },
207964
- "56": {
207974
+ "57": {
207965
207975
  start: {
207966
- line: 423,
207976
+ line: 429,
207967
207977
  column: 59
207968
207978
  },
207969
207979
  end: {
207970
- line: 423,
207980
+ line: 429,
207971
207981
  column: 72
207972
207982
  }
207973
207983
  },
207974
- "57": {
207984
+ "58": {
207975
207985
  start: {
207976
- line: 430,
207986
+ line: 436,
207977
207987
  column: 21
207978
207988
  },
207979
207989
  end: {
207980
- line: 430,
207990
+ line: 436,
207981
207991
  column: 31
207982
207992
  }
207983
207993
  },
207984
- "58": {
207994
+ "59": {
207985
207995
  start: {
207986
- line: 437,
207996
+ line: 443,
207987
207997
  column: 8
207988
207998
  },
207989
207999
  end: {
207990
- line: 440,
208000
+ line: 446,
207991
208001
  column: 9
207992
208002
  }
207993
208003
  },
207994
- "59": {
208004
+ "60": {
207995
208005
  start: {
207996
- line: 457,
208006
+ line: 463,
207997
208007
  column: 21
207998
208008
  },
207999
208009
  end: {
208000
- line: 457,
208010
+ line: 463,
208001
208011
  column: 48
208002
208012
  }
208003
208013
  },
208004
- "60": {
208014
+ "61": {
208005
208015
  start: {
208006
- line: 508,
208016
+ line: 514,
208007
208017
  column: 21
208008
208018
  },
208009
208019
  end: {
208010
- line: 508,
208020
+ line: 514,
208011
208021
  column: 56
208012
208022
  }
208013
208023
  },
208014
- "61": {
208024
+ "62": {
208015
208025
  start: {
208016
- line: 518,
208026
+ line: 524,
208017
208027
  column: 34
208018
208028
  },
208019
208029
  end: {
208020
- line: 527,
208030
+ line: 533,
208021
208031
  column: 1
208022
208032
  }
208023
208033
  }
@@ -208459,70 +208469,70 @@ var cov_2ayhkohved = function () {
208459
208469
  name: "(anonymous_18)",
208460
208470
  decl: {
208461
208471
  start: {
208462
- line: 417,
208472
+ line: 377,
208463
208473
  column: 16
208464
208474
  },
208465
208475
  end: {
208466
- line: 417,
208476
+ line: 377,
208467
208477
  column: 17
208468
208478
  }
208469
208479
  },
208470
208480
  loc: {
208471
208481
  start: {
208472
- line: 417,
208473
- column: 21
208482
+ line: 378,
208483
+ column: 8
208474
208484
  },
208475
208485
  end: {
208476
- line: 417,
208477
- column: 76
208486
+ line: 378,
208487
+ column: 72
208478
208488
  }
208479
208489
  },
208480
- line: 417
208490
+ line: 378
208481
208491
  },
208482
208492
  "19": {
208483
208493
  name: "(anonymous_19)",
208484
208494
  decl: {
208485
208495
  start: {
208486
- line: 417,
208487
- column: 49
208496
+ line: 423,
208497
+ column: 16
208488
208498
  },
208489
208499
  end: {
208490
- line: 417,
208491
- column: 50
208500
+ line: 423,
208501
+ column: 17
208492
208502
  }
208493
208503
  },
208494
208504
  loc: {
208495
208505
  start: {
208496
- line: 417,
208497
- column: 59
208506
+ line: 423,
208507
+ column: 21
208498
208508
  },
208499
208509
  end: {
208500
- line: 417,
208501
- column: 75
208510
+ line: 423,
208511
+ column: 76
208502
208512
  }
208503
208513
  },
208504
- line: 417
208514
+ line: 423
208505
208515
  },
208506
208516
  "20": {
208507
208517
  name: "(anonymous_20)",
208508
208518
  decl: {
208509
208519
  start: {
208510
208520
  line: 423,
208511
- column: 16
208521
+ column: 49
208512
208522
  },
208513
208523
  end: {
208514
208524
  line: 423,
208515
- column: 17
208525
+ column: 50
208516
208526
  }
208517
208527
  },
208518
208528
  loc: {
208519
208529
  start: {
208520
208530
  line: 423,
208521
- column: 21
208531
+ column: 59
208522
208532
  },
208523
208533
  end: {
208524
208534
  line: 423,
208525
- column: 73
208535
+ column: 75
208526
208536
  }
208527
208537
  },
208528
208538
  line: 423
@@ -208531,49 +208541,49 @@ var cov_2ayhkohved = function () {
208531
208541
  name: "(anonymous_21)",
208532
208542
  decl: {
208533
208543
  start: {
208534
- line: 423,
208535
- column: 52
208544
+ line: 429,
208545
+ column: 16
208536
208546
  },
208537
208547
  end: {
208538
- line: 423,
208539
- column: 53
208548
+ line: 429,
208549
+ column: 17
208540
208550
  }
208541
208551
  },
208542
208552
  loc: {
208543
208553
  start: {
208544
- line: 423,
208545
- column: 59
208554
+ line: 429,
208555
+ column: 21
208546
208556
  },
208547
208557
  end: {
208548
- line: 423,
208549
- column: 72
208558
+ line: 429,
208559
+ column: 73
208550
208560
  }
208551
208561
  },
208552
- line: 423
208562
+ line: 429
208553
208563
  },
208554
208564
  "22": {
208555
208565
  name: "(anonymous_22)",
208556
208566
  decl: {
208557
208567
  start: {
208558
- line: 430,
208559
- column: 16
208568
+ line: 429,
208569
+ column: 52
208560
208570
  },
208561
208571
  end: {
208562
- line: 430,
208563
- column: 17
208572
+ line: 429,
208573
+ column: 53
208564
208574
  }
208565
208575
  },
208566
208576
  loc: {
208567
208577
  start: {
208568
- line: 430,
208569
- column: 21
208578
+ line: 429,
208579
+ column: 59
208570
208580
  },
208571
208581
  end: {
208572
- line: 430,
208573
- column: 31
208582
+ line: 429,
208583
+ column: 72
208574
208584
  }
208575
208585
  },
208576
- line: 430
208586
+ line: 429
208577
208587
  },
208578
208588
  "23": {
208579
208589
  name: "(anonymous_23)",
@@ -208593,8 +208603,8 @@ var cov_2ayhkohved = function () {
208593
208603
  column: 21
208594
208604
  },
208595
208605
  end: {
208596
- line: 441,
208597
- column: 7
208606
+ line: 436,
208607
+ column: 31
208598
208608
  }
208599
208609
  },
208600
208610
  line: 436
@@ -208603,49 +208613,73 @@ var cov_2ayhkohved = function () {
208603
208613
  name: "(anonymous_24)",
208604
208614
  decl: {
208605
208615
  start: {
208606
- line: 457,
208616
+ line: 442,
208607
208617
  column: 16
208608
208618
  },
208609
208619
  end: {
208610
- line: 457,
208620
+ line: 442,
208611
208621
  column: 17
208612
208622
  }
208613
208623
  },
208614
208624
  loc: {
208615
208625
  start: {
208616
- line: 457,
208626
+ line: 442,
208617
208627
  column: 21
208618
208628
  },
208619
208629
  end: {
208620
- line: 457,
208621
- column: 48
208630
+ line: 447,
208631
+ column: 7
208622
208632
  }
208623
208633
  },
208624
- line: 457
208634
+ line: 442
208625
208635
  },
208626
208636
  "25": {
208627
208637
  name: "(anonymous_25)",
208628
208638
  decl: {
208629
208639
  start: {
208630
- line: 508,
208640
+ line: 463,
208631
208641
  column: 16
208632
208642
  },
208633
208643
  end: {
208634
- line: 508,
208644
+ line: 463,
208635
208645
  column: 17
208636
208646
  }
208637
208647
  },
208638
208648
  loc: {
208639
208649
  start: {
208640
- line: 508,
208650
+ line: 463,
208641
208651
  column: 21
208642
208652
  },
208643
208653
  end: {
208644
- line: 508,
208654
+ line: 463,
208655
+ column: 48
208656
+ }
208657
+ },
208658
+ line: 463
208659
+ },
208660
+ "26": {
208661
+ name: "(anonymous_26)",
208662
+ decl: {
208663
+ start: {
208664
+ line: 514,
208665
+ column: 16
208666
+ },
208667
+ end: {
208668
+ line: 514,
208669
+ column: 17
208670
+ }
208671
+ },
208672
+ loc: {
208673
+ start: {
208674
+ line: 514,
208675
+ column: 21
208676
+ },
208677
+ end: {
208678
+ line: 514,
208645
208679
  column: 56
208646
208680
  }
208647
208681
  },
208648
- line: 508
208682
+ line: 514
208649
208683
  }
208650
208684
  },
208651
208685
  branchMap: {
@@ -208982,134 +209016,200 @@ var cov_2ayhkohved = function () {
208982
209016
  "10": {
208983
209017
  loc: {
208984
209018
  start: {
208985
- line: 375,
209019
+ line: 378,
209020
+ column: 8
209021
+ },
209022
+ end: {
209023
+ line: 378,
209024
+ column: 72
209025
+ }
209026
+ },
209027
+ type: "cond-expr",
209028
+ locations: [{
209029
+ start: {
209030
+ line: 378,
209031
+ column: 52
209032
+ },
209033
+ end: {
209034
+ line: 378,
209035
+ column: 60
209036
+ }
209037
+ }, {
209038
+ start: {
209039
+ line: 378,
209040
+ column: 63
209041
+ },
209042
+ end: {
209043
+ line: 378,
209044
+ column: 72
209045
+ }
209046
+ }],
209047
+ line: 378
209048
+ },
209049
+ "11": {
209050
+ loc: {
209051
+ start: {
209052
+ line: 378,
209053
+ column: 8
209054
+ },
209055
+ end: {
209056
+ line: 378,
209057
+ column: 49
209058
+ }
209059
+ },
209060
+ type: "binary-expr",
209061
+ locations: [{
209062
+ start: {
209063
+ line: 378,
209064
+ column: 8
209065
+ },
209066
+ end: {
209067
+ line: 378,
209068
+ column: 22
209069
+ }
209070
+ }, {
209071
+ start: {
209072
+ line: 378,
209073
+ column: 26
209074
+ },
209075
+ end: {
209076
+ line: 378,
209077
+ column: 49
209078
+ }
209079
+ }],
209080
+ line: 378
209081
+ },
209082
+ "12": {
209083
+ loc: {
209084
+ start: {
209085
+ line: 381,
208986
209086
  column: 21
208987
209087
  },
208988
209088
  end: {
208989
- line: 375,
209089
+ line: 381,
208990
209090
  column: 62
208991
209091
  }
208992
209092
  },
208993
209093
  type: "binary-expr",
208994
209094
  locations: [{
208995
209095
  start: {
208996
- line: 375,
209096
+ line: 381,
208997
209097
  column: 21
208998
209098
  },
208999
209099
  end: {
209000
- line: 375,
209100
+ line: 381,
209001
209101
  column: 56
209002
209102
  }
209003
209103
  }, {
209004
209104
  start: {
209005
- line: 375,
209105
+ line: 381,
209006
209106
  column: 60
209007
209107
  },
209008
209108
  end: {
209009
- line: 375,
209109
+ line: 381,
209010
209110
  column: 62
209011
209111
  }
209012
209112
  }],
209013
- line: 375
209113
+ line: 381
209014
209114
  },
209015
- "11": {
209115
+ "13": {
209016
209116
  loc: {
209017
209117
  start: {
209018
- line: 438,
209118
+ line: 444,
209019
209119
  column: 10
209020
209120
  },
209021
209121
  end: {
209022
- line: 439,
209122
+ line: 445,
209023
209123
  column: 49
209024
209124
  }
209025
209125
  },
209026
209126
  type: "binary-expr",
209027
209127
  locations: [{
209028
209128
  start: {
209029
- line: 438,
209129
+ line: 444,
209030
209130
  column: 10
209031
209131
  },
209032
209132
  end: {
209033
- line: 438,
209133
+ line: 444,
209034
209134
  column: 54
209035
209135
  }
209036
209136
  }, {
209037
209137
  start: {
209038
- line: 439,
209138
+ line: 445,
209039
209139
  column: 10
209040
209140
  },
209041
209141
  end: {
209042
- line: 439,
209142
+ line: 445,
209043
209143
  column: 49
209044
209144
  }
209045
209145
  }],
209046
- line: 438
209146
+ line: 444
209047
209147
  },
209048
- "12": {
209148
+ "14": {
209049
209149
  loc: {
209050
209150
  start: {
209051
- line: 445,
209151
+ line: 451,
209052
209152
  column: 21
209053
209153
  },
209054
209154
  end: {
209055
- line: 445,
209155
+ line: 451,
209056
209156
  column: 63
209057
209157
  }
209058
209158
  },
209059
209159
  type: "binary-expr",
209060
209160
  locations: [{
209061
209161
  start: {
209062
- line: 445,
209162
+ line: 451,
209063
209163
  column: 21
209064
209164
  },
209065
209165
  end: {
209066
- line: 445,
209166
+ line: 451,
209067
209167
  column: 57
209068
209168
  }
209069
209169
  }, {
209070
209170
  start: {
209071
- line: 445,
209171
+ line: 451,
209072
209172
  column: 61
209073
209173
  },
209074
209174
  end: {
209075
- line: 445,
209175
+ line: 451,
209076
209176
  column: 63
209077
209177
  }
209078
209178
  }],
209079
- line: 445
209179
+ line: 451
209080
209180
  },
209081
- "13": {
209181
+ "15": {
209082
209182
  loc: {
209083
209183
  start: {
209084
- line: 492,
209184
+ line: 498,
209085
209185
  column: 21
209086
209186
  },
209087
209187
  end: {
209088
- line: 492,
209188
+ line: 498,
209089
209189
  column: 63
209090
209190
  }
209091
209191
  },
209092
209192
  type: "binary-expr",
209093
209193
  locations: [{
209094
209194
  start: {
209095
- line: 492,
209195
+ line: 498,
209096
209196
  column: 21
209097
209197
  },
209098
209198
  end: {
209099
- line: 492,
209199
+ line: 498,
209100
209200
  column: 57
209101
209201
  }
209102
209202
  }, {
209103
209203
  start: {
209104
- line: 492,
209204
+ line: 498,
209105
209205
  column: 61
209106
209206
  },
209107
209207
  end: {
209108
- line: 492,
209208
+ line: 498,
209109
209209
  column: 63
209110
209210
  }
209111
209211
  }],
209112
- line: 492
209212
+ line: 498
209113
209213
  }
209114
209214
  },
209115
209215
  s: {
@@ -209174,7 +209274,8 @@ var cov_2ayhkohved = function () {
209174
209274
  "58": 0,
209175
209275
  "59": 0,
209176
209276
  "60": 0,
209177
- "61": 0
209277
+ "61": 0,
209278
+ "62": 0
209178
209279
  },
209179
209280
  f: {
209180
209281
  "0": 0,
@@ -209202,7 +209303,8 @@ var cov_2ayhkohved = function () {
209202
209303
  "22": 0,
209203
209304
  "23": 0,
209204
209305
  "24": 0,
209205
- "25": 0
209306
+ "25": 0,
209307
+ "26": 0
209206
209308
  },
209207
209309
  b: {
209208
209310
  "0": [0, 0],
@@ -209218,10 +209320,12 @@ var cov_2ayhkohved = function () {
209218
209320
  "10": [0, 0],
209219
209321
  "11": [0, 0],
209220
209322
  "12": [0, 0],
209221
- "13": [0, 0]
209323
+ "13": [0, 0],
209324
+ "14": [0, 0],
209325
+ "15": [0, 0]
209222
209326
  },
209223
209327
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
209224
- hash: "32f47e62d635bf0f4fe83060d0568c152a6f04d3"
209328
+ hash: "788c692809d43fb08d2c78e8b8a1324be337194f"
209225
209329
  };
209226
209330
  var coverage = global[gcv] || (global[gcv] = {});
209227
209331
 
@@ -209620,7 +209724,15 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209620
209724
  {
209621
209725
  verboseName: 'Description',
209622
209726
  field: 'description'
209623
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[10][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[10][1]++, {})))),
209727
+ }, {
209728
+ verboseName: 'Access',
209729
+ field: 'sharing.is_public',
209730
+ accessor: function accessor(value) {
209731
+ cov_2ayhkohved.f[18]++;
209732
+ cov_2ayhkohved.s[53]++;
209733
+ return (cov_2ayhkohved.b[11][0]++, !value.sharing) || (cov_2ayhkohved.b[11][1]++, value.sharing.is_public) ? (cov_2ayhkohved.b[10][0]++, 'Public') : (cov_2ayhkohved.b[10][1]++, 'Private');
209734
+ }
209735
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[12][1]++, {})))),
209624
209736
  analyses: [{
209625
209737
  verboseName: 'Key',
209626
209738
  field: 'pk',
@@ -209646,11 +209758,11 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209646
209758
  {
209647
209759
  verboseName: 'Target Experiments',
209648
209760
  accessor: function accessor(d) {
209649
- cov_2ayhkohved.f[18]++;
209650
- cov_2ayhkohved.s[53]++;
209761
+ cov_2ayhkohved.f[19]++;
209762
+ cov_2ayhkohved.s[54]++;
209651
209763
  return d.cached_fields.targets.map(function (target) {
209652
- cov_2ayhkohved.f[19]++;
209653
- cov_2ayhkohved.s[54]++;
209764
+ cov_2ayhkohved.f[20]++;
209765
+ cov_2ayhkohved.s[55]++;
209654
209766
  return target.system_id;
209655
209767
  });
209656
209768
  },
@@ -209659,11 +209771,11 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209659
209771
  }, {
209660
209772
  verboseName: 'Reference Experiments',
209661
209773
  accessor: function accessor(d) {
209662
- cov_2ayhkohved.f[20]++;
209663
- cov_2ayhkohved.s[55]++;
209774
+ cov_2ayhkohved.f[21]++;
209775
+ cov_2ayhkohved.s[56]++;
209664
209776
  return d.cached_fields.references.map(function (ref) {
209665
- cov_2ayhkohved.f[21]++;
209666
- cov_2ayhkohved.s[56]++;
209777
+ cov_2ayhkohved.f[22]++;
209778
+ cov_2ayhkohved.s[57]++;
209667
209779
  return ref.system_id;
209668
209780
  });
209669
209781
  },
@@ -209673,8 +209785,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209673
209785
  verboseName: 'Linked Analyses',
209674
209786
  field: 'analyses',
209675
209787
  accessor: function accessor(d) {
209676
- cov_2ayhkohved.f[22]++;
209677
- cov_2ayhkohved.s[57]++;
209788
+ cov_2ayhkohved.f[23]++;
209789
+ cov_2ayhkohved.s[58]++;
209678
209790
  return d.analyses;
209679
209791
  },
209680
209792
  model: 'analysis'
@@ -209682,12 +209794,12 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209682
209794
  verboseName: 'Projects',
209683
209795
  field: 'targets__projects__pk',
209684
209796
  accessor: function accessor(d) {
209685
- cov_2ayhkohved.f[23]++;
209686
- cov_2ayhkohved.s[58]++;
209687
- return (cov_2ayhkohved.b[11][0]++, Object(helpers["h" /* get */])(d, 'cached_fields.targets_projects', '')) || (cov_2ayhkohved.b[11][1]++, Object(helpers["h" /* get */])(d, 'project_level_analysis.pk', ''));
209797
+ cov_2ayhkohved.f[24]++;
209798
+ cov_2ayhkohved.s[59]++;
209799
+ return (cov_2ayhkohved.b[13][0]++, Object(helpers["h" /* get */])(d, 'cached_fields.targets_projects', '')) || (cov_2ayhkohved.b[13][1]++, Object(helpers["h" /* get */])(d, 'project_level_analysis.pk', ''));
209688
209800
  },
209689
209801
  model: 'project'
209690
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[12][1]++, {})))),
209802
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[14][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[14][1]++, {})))),
209691
209803
  projectAnalyses: [{
209692
209804
  verboseName: 'Key',
209693
209805
  field: 'pk',
@@ -209697,8 +209809,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209697
209809
  verboseName: 'Project',
209698
209810
  field: 'project_level_analysis',
209699
209811
  accessor: function accessor(d) {
209700
- cov_2ayhkohved.f[24]++;
209701
- cov_2ayhkohved.s[59]++;
209812
+ cov_2ayhkohved.f[25]++;
209813
+ cov_2ayhkohved.s[60]++;
209702
209814
  return d.project_level_analysis.pk;
209703
209815
  },
209704
209816
  model: 'project'
@@ -209719,7 +209831,7 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209719
209831
  }, {
209720
209832
  verboseName: 'Application',
209721
209833
  field: 'application.pk'
209722
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[13][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[13][1]++, {})))),
209834
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[15][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[15][1]++, {})))),
209723
209835
  submissions: [{
209724
209836
  verboseName: 'Primary Key',
209725
209837
  field: 'pk',
@@ -209732,8 +209844,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209732
209844
  verboseName: 'Processed',
209733
209845
  field: 'processed',
209734
209846
  accessor: function accessor(d) {
209735
- cov_2ayhkohved.f[25]++;
209736
- cov_2ayhkohved.s[60]++;
209847
+ cov_2ayhkohved.f[26]++;
209848
+ cov_2ayhkohved.s[61]++;
209737
209849
  return Object(helpers["f" /* formatDate */])(d.processed, 'calendar');
209738
209850
  }
209739
209851
  }, {
@@ -209741,7 +209853,7 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209741
209853
  field: 'description'
209742
209854
  }].concat(baseColumns)
209743
209855
  });
209744
- var defaultQueryParams = (cov_2ayhkohved.s[61]++, {
209856
+ var defaultQueryParams = (cov_2ayhkohved.s[62]++, {
209745
209857
  analyses: {
209746
209858
  'fields!': 'targets,references,analytics',
209747
209859
  distinct: tableColumns_settings.distinctRecords
@@ -222923,12 +223035,12 @@ var EditProfileModal_component = normalizeComponent(
222923
223035
  )
222924
223036
 
222925
223037
  /* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
222926
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=template&id=9dcdd18a&
222927
- var NewProjectModalvue_type_template_id_9dcdd18a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-modal',{attrs:{"show-modal":_vm.showModal,"max-width":"800px"},on:{"close-modal":_vm.closeModal},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Create Project")]},proxy:true},{key:"content",fn:function(){return [_c('v-container',{staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"title",staticClass:"pt-6",attrs:{"v-show":_vm.showModal,"rules":[_vm.rules.required],"error-messages":_vm.errorMessages.title,"label":"Project Title","data-test":"new-project-title-input"},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.project.title),callback:function ($$v) {_vm.$set(_vm.project, "title", $$v)},expression:"project.title"}})],1)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showOptionalFields),expression:"showOptionalFields"}],staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"shortTitle",attrs:{"rules":[_vm.rules.unicode, _vm.rules.min10],"error-messages":_vm.errorMessages.short_title,"label":"Project Short Title","data-test":"new-project-short-input","counter":"","dense":"","maxlength":"30","hint":"Think of the objective of the project."},model:{value:(_vm.project.shortTitle),callback:function ($$v) {_vm.$set(_vm.project, "shortTitle", $$v)},expression:"project.shortTitle"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-select',{ref:"group",attrs:{"items":_vm.groups,"return-object":"","item-text":"slug","label":"Group","dense":"","data-test":"new-project-groups-input"},model:{value:(_vm.project.group),callback:function ($$v) {_vm.$set(_vm.project, "group", $$v)},expression:"project.group"}})],1)],1),_c('div',{staticClass:"text-h6 primary--text pt-8"},[_vm._v("\n Participants\n ")]),_c('v-row',[_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"principalInvestigator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.principal_investigator,"field":"principalInvestigator","label":"Principal Investigator","data-test":"new-project-pi-input","hint":"Laboratory head or principal investigator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"owner",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.owner,"field":"owner","label":"Project Owner","data-test":"new-project-owner-input","hint":"Who deals with the nitty-gritty of the project","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"coordinator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.coordinator,"field":"coordinator","label":"Coordinator","data-test":"new-project-coord-input","hint":"Project manager or coordinator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"analyst",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.analyst,"field":"analyst","label":"Data Analyst","data-test":"new-project-analyst-input","hint":"Person responsible for the data analysis"},on:{"update-value":_vm.updateValue}})],1)],1),_c('sharing-settings',{ref:"sharing",staticClass:"pt-8",attrs:{"sharing":_vm.sharing,"error-messages":_vm.errorMessages.sharing},on:{"update-sharing":_vm.updateSharing}})],1)],1)]},proxy:true},{key:"footer-actions",fn:function(){return [_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-optional-btn","text":""},on:{"click":_vm.toggleOptionalFields}},[_vm._v("Optional Fields")]),_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-create-btn","text":""},on:{"click":_vm.submit}},[_vm._v("Create")])]},proxy:true}])})}
222928
- var NewProjectModalvue_type_template_id_9dcdd18a_staticRenderFns = []
223038
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=template&id=834662e2&
223039
+ var NewProjectModalvue_type_template_id_834662e2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-modal',{attrs:{"show-modal":_vm.showModal,"max-width":"800px"},on:{"close-modal":_vm.closeModal},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Create Project")]},proxy:true},{key:"content",fn:function(){return [_c('v-container',{staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"title",staticClass:"pt-6",attrs:{"v-show":_vm.showModal,"rules":[_vm.rules.required],"error-messages":_vm.errorMessages.title,"label":"Project Title","data-test":"new-project-title-input"},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.project.title),callback:function ($$v) {_vm.$set(_vm.project, "title", $$v)},expression:"project.title"}})],1)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showOptionalFields),expression:"showOptionalFields"}],staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"shortTitle",attrs:{"rules":[_vm.rules.unicode, _vm.rules.min10],"error-messages":_vm.errorMessages.short_title,"label":"Project Short Title","data-test":"new-project-short-input","counter":"","dense":"","maxlength":"30","hint":"Think of the objective of the project."},model:{value:(_vm.project.shortTitle),callback:function ($$v) {_vm.$set(_vm.project, "shortTitle", $$v)},expression:"project.shortTitle"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-select',{ref:"group",attrs:{"items":_vm.groups,"return-object":"","item-text":"slug","label":"Group","dense":"","data-test":"new-project-groups-input"},model:{value:(_vm.project.group),callback:function ($$v) {_vm.$set(_vm.project, "group", $$v)},expression:"project.group"}})],1)],1),_c('div',{staticClass:"text-h6 primary--text pt-8"},[_vm._v("\n Participants\n ")]),_c('v-row',[_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"principalInvestigator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.principal_investigator,"field":"principalInvestigator","label":"Principal Investigator","data-test":"new-project-pi-input","hint":"Laboratory head or principal investigator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"owner",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.owner,"field":"owner","label":"Project Owner","data-test":"new-project-owner-input","hint":"Who deals with the nitty-gritty of the project","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"coordinator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.coordinator,"field":"coordinator","label":"Coordinator","data-test":"new-project-coord-input","hint":"Project manager or coordinator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"analyst",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.analyst,"field":"analyst","label":"Data Analyst","data-test":"new-project-analyst-input","hint":"Person responsible for the data analysis"},on:{"update-value":_vm.updateValue}})],1)],1),_c('sharing-settings',{ref:"sharing",staticClass:"pt-8",attrs:{"sharing":_vm.sharing,"error-messages":_vm.errorMessages.sharing},on:{"update-sharing":_vm.updateSharing}})],1)],1)]},proxy:true},{key:"footer-actions",fn:function(){return [_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-optional-btn","text":""},on:{"click":_vm.toggleOptionalFields}},[_vm._v("Optional Fields")]),_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-create-btn","text":""},on:{"click":_vm.submit}},[_vm._v("Create")])]},proxy:true}])})}
223040
+ var NewProjectModalvue_type_template_id_834662e2_staticRenderFns = []
222929
223041
 
222930
223042
 
222931
- // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=9dcdd18a&
223043
+ // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=834662e2&
222932
223044
 
222933
223045
  // EXTERNAL MODULE: ./node_modules/lodash/has.js
222934
223046
  var has = __webpack_require__("3852");
@@ -226100,7 +226212,7 @@ var SharingSettings_component = normalizeComponent(
226100
226212
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/NewProjectModal.vue?vue&type=script&lang=js&
226101
226213
  var cov_2q2n13agp2 = function () {
226102
226214
  var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/NewProjectModal.vue";
226103
- var hash = "59819bdd4a6ee9b4fa2955075f54f43083d53882";
226215
+ var hash = "89acb85815fad1b23ec2d1fd2449b13bff323123";
226104
226216
  var global = new Function("return this")();
226105
226217
  var gcv = "__coverage__";
226106
226218
  var coverageData = {
@@ -226119,110 +226231,110 @@ var cov_2q2n13agp2 = function () {
226119
226231
  "1": {
226120
226232
  start: {
226121
226233
  line: 194,
226122
- column: 4
226234
+ column: 20
226123
226235
  },
226124
226236
  end: {
226125
- line: 217,
226126
- column: 5
226237
+ line: 194,
226238
+ column: 64
226127
226239
  }
226128
226240
  },
226129
226241
  "2": {
226130
226242
  start: {
226131
- line: 221,
226132
- column: 6
226243
+ line: 195,
226244
+ column: 20
226133
226245
  },
226134
226246
  end: {
226135
- line: 228,
226136
- column: 7
226247
+ line: 195,
226248
+ column: 54
226137
226249
  }
226138
226250
  },
226139
226251
  "3": {
226140
226252
  start: {
226141
- line: 222,
226142
- column: 8
226253
+ line: 196,
226254
+ column: 4
226143
226255
  },
226144
226256
  end: {
226145
- line: 222,
226146
- column: 26
226257
+ line: 219,
226258
+ column: 5
226147
226259
  }
226148
226260
  },
226149
226261
  "4": {
226150
226262
  start: {
226151
- line: 224,
226152
- column: 8
226263
+ line: 223,
226264
+ column: 6
226153
226265
  },
226154
226266
  end: {
226155
- line: 227,
226156
- column: 9
226267
+ line: 230,
226268
+ column: 7
226157
226269
  }
226158
226270
  },
226159
226271
  "5": {
226160
226272
  start: {
226161
- line: 225,
226162
- column: 10
226273
+ line: 224,
226274
+ column: 8
226163
226275
  },
226164
226276
  end: {
226165
- line: 225,
226166
- column: 48
226277
+ line: 224,
226278
+ column: 26
226167
226279
  }
226168
226280
  },
226169
226281
  "6": {
226170
226282
  start: {
226171
226283
  line: 226,
226172
- column: 10
226284
+ column: 8
226173
226285
  },
226174
226286
  end: {
226175
- line: 226,
226176
- column: 26
226287
+ line: 229,
226288
+ column: 9
226177
226289
  }
226178
226290
  },
226179
226291
  "7": {
226180
226292
  start: {
226181
- line: 232,
226182
- column: 4
226293
+ line: 227,
226294
+ column: 10
226183
226295
  },
226184
226296
  end: {
226185
- line: 232,
226186
- column: 26
226297
+ line: 227,
226298
+ column: 48
226187
226299
  }
226188
226300
  },
226189
226301
  "8": {
226190
226302
  start: {
226191
- line: 237,
226192
- column: 6
226303
+ line: 228,
226304
+ column: 10
226193
226305
  },
226194
226306
  end: {
226195
- line: 249,
226196
- column: 8
226307
+ line: 228,
226308
+ column: 26
226197
226309
  }
226198
226310
  },
226199
226311
  "9": {
226200
226312
  start: {
226201
- line: 238,
226202
- column: 8
226313
+ line: 234,
226314
+ column: 4
226203
226315
  },
226204
226316
  end: {
226205
- line: 248,
226206
- column: 9
226317
+ line: 234,
226318
+ column: 26
226207
226319
  }
226208
226320
  },
226209
226321
  "10": {
226210
226322
  start: {
226211
226323
  line: 239,
226212
- column: 10
226324
+ column: 6
226213
226325
  },
226214
226326
  end: {
226215
- line: 239,
226216
- column: 46
226327
+ line: 251,
226328
+ column: 8
226217
226329
  }
226218
226330
  },
226219
226331
  "11": {
226220
226332
  start: {
226221
226333
  line: 240,
226222
- column: 15
226334
+ column: 8
226223
226335
  },
226224
226336
  end: {
226225
- line: 248,
226337
+ line: 250,
226226
226338
  column: 9
226227
226339
  }
226228
226340
  },
@@ -226233,7 +226345,7 @@ var cov_2q2n13agp2 = function () {
226233
226345
  },
226234
226346
  end: {
226235
226347
  line: 241,
226236
- column: 68
226348
+ column: 46
226237
226349
  }
226238
226350
  },
226239
226351
  "13": {
@@ -226242,7 +226354,7 @@ var cov_2q2n13agp2 = function () {
226242
226354
  column: 15
226243
226355
  },
226244
226356
  end: {
226245
- line: 248,
226357
+ line: 250,
226246
226358
  column: 9
226247
226359
  }
226248
226360
  },
@@ -226253,7 +226365,7 @@ var cov_2q2n13agp2 = function () {
226253
226365
  },
226254
226366
  end: {
226255
226367
  line: 243,
226256
- column: 69
226368
+ column: 68
226257
226369
  }
226258
226370
  },
226259
226371
  "15": {
@@ -226262,7 +226374,7 @@ var cov_2q2n13agp2 = function () {
226262
226374
  column: 15
226263
226375
  },
226264
226376
  end: {
226265
- line: 248,
226377
+ line: 250,
226266
226378
  column: 9
226267
226379
  }
226268
226380
  },
@@ -226273,17 +226385,17 @@ var cov_2q2n13agp2 = function () {
226273
226385
  },
226274
226386
  end: {
226275
226387
  line: 245,
226276
- column: 74
226388
+ column: 69
226277
226389
  }
226278
226390
  },
226279
226391
  "17": {
226280
226392
  start: {
226281
226393
  line: 246,
226282
- column: 10
226394
+ column: 15
226283
226395
  },
226284
226396
  end: {
226285
- line: 246,
226286
- column: 94
226397
+ line: 250,
226398
+ column: 9
226287
226399
  }
226288
226400
  },
226289
226401
  "18": {
@@ -226293,57 +226405,57 @@ var cov_2q2n13agp2 = function () {
226293
226405
  },
226294
226406
  end: {
226295
226407
  line: 247,
226296
- column: 95
226408
+ column: 74
226297
226409
  }
226298
226410
  },
226299
226411
  "19": {
226300
226412
  start: {
226301
- line: 252,
226302
- column: 6
226413
+ line: 248,
226414
+ column: 10
226303
226415
  },
226304
226416
  end: {
226305
- line: 255,
226306
- column: 7
226417
+ line: 248,
226418
+ column: 94
226307
226419
  }
226308
226420
  },
226309
226421
  "20": {
226310
226422
  start: {
226311
- line: 253,
226312
- column: 25
226423
+ line: 249,
226424
+ column: 10
226313
226425
  },
226314
226426
  end: {
226315
- line: 253,
226316
- column: 57
226427
+ line: 249,
226428
+ column: 95
226317
226429
  }
226318
226430
  },
226319
226431
  "21": {
226320
226432
  start: {
226321
226433
  line: 254,
226322
- column: 8
226434
+ column: 6
226323
226435
  },
226324
226436
  end: {
226325
- line: 254,
226326
- column: 38
226437
+ line: 257,
226438
+ column: 7
226327
226439
  }
226328
226440
  },
226329
226441
  "22": {
226330
226442
  start: {
226331
- line: 258,
226332
- column: 6
226443
+ line: 255,
226444
+ column: 25
226333
226445
  },
226334
226446
  end: {
226335
- line: 258,
226336
- column: 56
226447
+ line: 255,
226448
+ column: 57
226337
226449
  }
226338
226450
  },
226339
226451
  "23": {
226340
226452
  start: {
226341
- line: 259,
226342
- column: 6
226453
+ line: 256,
226454
+ column: 8
226343
226455
  },
226344
226456
  end: {
226345
- line: 259,
226346
- column: 44
226457
+ line: 256,
226458
+ column: 38
226347
226459
  }
226348
226460
  },
226349
226461
  "24": {
@@ -226353,107 +226465,107 @@ var cov_2q2n13agp2 = function () {
226353
226465
  },
226354
226466
  end: {
226355
226467
  line: 260,
226356
- column: 54
226468
+ column: 56
226357
226469
  }
226358
226470
  },
226359
226471
  "25": {
226360
226472
  start: {
226361
- line: 263,
226473
+ line: 261,
226362
226474
  column: 6
226363
226475
  },
226364
226476
  end: {
226365
- line: 263,
226366
- column: 32
226477
+ line: 261,
226478
+ column: 44
226367
226479
  }
226368
226480
  },
226369
226481
  "26": {
226370
226482
  start: {
226371
- line: 264,
226483
+ line: 262,
226372
226484
  column: 6
226373
226485
  },
226374
226486
  end: {
226375
- line: 264,
226376
- column: 58
226487
+ line: 262,
226488
+ column: 54
226377
226489
  }
226378
226490
  },
226379
226491
  "27": {
226380
226492
  start: {
226381
- line: 264,
226382
- column: 46
226493
+ line: 265,
226494
+ column: 6
226383
226495
  },
226384
226496
  end: {
226385
- line: 264,
226386
- column: 57
226497
+ line: 265,
226498
+ column: 32
226387
226499
  }
226388
226500
  },
226389
226501
  "28": {
226390
226502
  start: {
226391
- line: 267,
226503
+ line: 266,
226392
226504
  column: 6
226393
226505
  },
226394
226506
  end: {
226395
- line: 267,
226396
- column: 22
226507
+ line: 266,
226508
+ column: 58
226397
226509
  }
226398
226510
  },
226399
226511
  "29": {
226400
226512
  start: {
226401
- line: 268,
226402
- column: 6
226513
+ line: 266,
226514
+ column: 46
226403
226515
  },
226404
226516
  end: {
226405
- line: 268,
226406
- column: 31
226517
+ line: 266,
226518
+ column: 57
226407
226519
  }
226408
226520
  },
226409
226521
  "30": {
226410
226522
  start: {
226411
- line: 271,
226523
+ line: 269,
226412
226524
  column: 6
226413
226525
  },
226414
226526
  end: {
226415
- line: 271,
226416
- column: 23
226527
+ line: 269,
226528
+ column: 22
226417
226529
  }
226418
226530
  },
226419
226531
  "31": {
226420
226532
  start: {
226421
- line: 272,
226533
+ line: 270,
226422
226534
  column: 6
226423
226535
  },
226424
226536
  end: {
226425
- line: 275,
226426
- column: 7
226537
+ line: 270,
226538
+ column: 31
226427
226539
  }
226428
226540
  },
226429
226541
  "32": {
226430
226542
  start: {
226431
- line: 278,
226543
+ line: 273,
226432
226544
  column: 6
226433
226545
  },
226434
226546
  end: {
226435
- line: 281,
226547
+ line: 276,
226436
226548
  column: 7
226437
226549
  }
226438
226550
  },
226439
226551
  "33": {
226440
226552
  start: {
226441
- line: 282,
226553
+ line: 279,
226442
226554
  column: 6
226443
226555
  },
226444
226556
  end: {
226445
- line: 285,
226557
+ line: 282,
226446
226558
  column: 7
226447
226559
  }
226448
226560
  },
226449
226561
  "34": {
226450
226562
  start: {
226451
- line: 288,
226563
+ line: 283,
226452
226564
  column: 6
226453
226565
  },
226454
226566
  end: {
226455
- line: 288,
226456
- column: 32
226567
+ line: 286,
226568
+ column: 7
226457
226569
  }
226458
226570
  },
226459
226571
  "35": {
@@ -226463,7 +226575,7 @@ var cov_2q2n13agp2 = function () {
226463
226575
  },
226464
226576
  end: {
226465
226577
  line: 289,
226466
- column: 28
226578
+ column: 32
226467
226579
  }
226468
226580
  },
226469
226581
  "36": {
@@ -226473,97 +226585,97 @@ var cov_2q2n13agp2 = function () {
226473
226585
  },
226474
226586
  end: {
226475
226587
  line: 290,
226476
- column: 65
226588
+ column: 28
226477
226589
  }
226478
226590
  },
226479
226591
  "37": {
226480
226592
  start: {
226481
- line: 290,
226482
- column: 46
226593
+ line: 291,
226594
+ column: 6
226483
226595
  },
226484
226596
  end: {
226485
- line: 290,
226486
- column: 64
226597
+ line: 291,
226598
+ column: 65
226487
226599
  }
226488
226600
  },
226489
226601
  "38": {
226490
226602
  start: {
226491
- line: 292,
226492
- column: 6
226603
+ line: 291,
226604
+ column: 46
226493
226605
  },
226494
226606
  end: {
226495
- line: 313,
226496
- column: 7
226607
+ line: 291,
226608
+ column: 64
226497
226609
  }
226498
226610
  },
226499
226611
  "39": {
226500
226612
  start: {
226501
226613
  line: 293,
226502
- column: 8
226614
+ column: 6
226503
226615
  },
226504
226616
  end: {
226505
- line: 312,
226506
- column: 12
226617
+ line: 314,
226618
+ column: 7
226507
226619
  }
226508
226620
  },
226509
226621
  "40": {
226510
226622
  start: {
226511
- line: 295,
226512
- column: 30
226623
+ line: 294,
226624
+ column: 8
226513
226625
  },
226514
226626
  end: {
226515
- line: 295,
226516
- column: 59
226627
+ line: 313,
226628
+ column: 12
226517
226629
  }
226518
226630
  },
226519
226631
  "41": {
226520
226632
  start: {
226521
226633
  line: 296,
226522
- column: 12
226634
+ column: 30
226523
226635
  },
226524
226636
  end: {
226525
- line: 298,
226526
- column: 14
226637
+ line: 296,
226638
+ column: 59
226527
226639
  }
226528
226640
  },
226529
226641
  "42": {
226530
226642
  start: {
226531
- line: 300,
226643
+ line: 297,
226532
226644
  column: 12
226533
226645
  },
226534
226646
  end: {
226535
- line: 302,
226647
+ line: 299,
226536
226648
  column: 14
226537
226649
  }
226538
226650
  },
226539
226651
  "43": {
226540
226652
  start: {
226541
- line: 303,
226653
+ line: 301,
226542
226654
  column: 12
226543
226655
  },
226544
226656
  end: {
226545
226657
  line: 303,
226546
- column: 29
226658
+ column: 14
226547
226659
  }
226548
226660
  },
226549
226661
  "44": {
226550
226662
  start: {
226551
- line: 306,
226663
+ line: 304,
226552
226664
  column: 12
226553
226665
  },
226554
226666
  end: {
226555
- line: 311,
226556
- column: 13
226667
+ line: 304,
226668
+ column: 29
226557
226669
  }
226558
226670
  },
226559
226671
  "45": {
226560
226672
  start: {
226561
226673
  line: 307,
226562
- column: 14
226674
+ column: 12
226563
226675
  },
226564
226676
  end: {
226565
- line: 307,
226566
- column: 54
226677
+ line: 312,
226678
+ column: 13
226567
226679
  }
226568
226680
  },
226569
226681
  "46": {
@@ -226572,7 +226684,17 @@ var cov_2q2n13agp2 = function () {
226572
226684
  column: 14
226573
226685
  },
226574
226686
  end: {
226575
- line: 310,
226687
+ line: 308,
226688
+ column: 54
226689
+ }
226690
+ },
226691
+ "47": {
226692
+ start: {
226693
+ line: 309,
226694
+ column: 14
226695
+ },
226696
+ end: {
226697
+ line: 311,
226576
226698
  column: 16
226577
226699
  }
226578
226700
  }
@@ -226620,7 +226742,7 @@ var cov_2q2n13agp2 = function () {
226620
226742
  column: 9
226621
226743
  },
226622
226744
  end: {
226623
- line: 218,
226745
+ line: 220,
226624
226746
  column: 3
226625
226747
  }
226626
226748
  },
@@ -226630,660 +226752,660 @@ var cov_2q2n13agp2 = function () {
226630
226752
  name: "(anonymous_2)",
226631
226753
  decl: {
226632
226754
  start: {
226633
- line: 220,
226755
+ line: 222,
226634
226756
  column: 4
226635
226757
  },
226636
226758
  end: {
226637
- line: 220,
226759
+ line: 222,
226638
226760
  column: 5
226639
226761
  }
226640
226762
  },
226641
226763
  loc: {
226642
226764
  start: {
226643
- line: 220,
226765
+ line: 222,
226644
226766
  column: 21
226645
226767
  },
226646
226768
  end: {
226647
- line: 229,
226769
+ line: 231,
226648
226770
  column: 5
226649
226771
  }
226650
226772
  },
226651
- line: 220
226773
+ line: 222
226652
226774
  },
226653
226775
  "3": {
226654
226776
  name: "(anonymous_3)",
226655
226777
  decl: {
226656
226778
  start: {
226657
- line: 231,
226779
+ line: 233,
226658
226780
  column: 2
226659
226781
  },
226660
226782
  end: {
226661
- line: 231,
226783
+ line: 233,
226662
226784
  column: 3
226663
226785
  }
226664
226786
  },
226665
226787
  loc: {
226666
226788
  start: {
226667
- line: 231,
226789
+ line: 233,
226668
226790
  column: 12
226669
226791
  },
226670
226792
  end: {
226671
- line: 233,
226793
+ line: 235,
226672
226794
  column: 3
226673
226795
  }
226674
226796
  },
226675
- line: 231
226797
+ line: 233
226676
226798
  },
226677
226799
  "4": {
226678
226800
  name: "(anonymous_4)",
226679
226801
  decl: {
226680
226802
  start: {
226681
- line: 235,
226803
+ line: 237,
226682
226804
  column: 4
226683
226805
  },
226684
226806
  end: {
226685
- line: 235,
226807
+ line: 237,
226686
226808
  column: 5
226687
226809
  }
226688
226810
  },
226689
226811
  loc: {
226690
226812
  start: {
226691
- line: 235,
226813
+ line: 237,
226692
226814
  column: 22
226693
226815
  },
226694
226816
  end: {
226695
- line: 250,
226817
+ line: 252,
226696
226818
  column: 5
226697
226819
  }
226698
226820
  },
226699
- line: 235
226821
+ line: 237
226700
226822
  },
226701
226823
  "5": {
226702
226824
  name: "(anonymous_5)",
226703
226825
  decl: {
226704
226826
  start: {
226705
- line: 237,
226827
+ line: 239,
226706
226828
  column: 36
226707
226829
  },
226708
226830
  end: {
226709
- line: 237,
226831
+ line: 239,
226710
226832
  column: 37
226711
226833
  }
226712
226834
  },
226713
226835
  loc: {
226714
226836
  start: {
226715
- line: 237,
226837
+ line: 239,
226716
226838
  column: 45
226717
226839
  },
226718
226840
  end: {
226719
- line: 249,
226841
+ line: 251,
226720
226842
  column: 7
226721
226843
  }
226722
226844
  },
226723
- line: 237
226845
+ line: 239
226724
226846
  },
226725
226847
  "6": {
226726
226848
  name: "(anonymous_6)",
226727
226849
  decl: {
226728
226850
  start: {
226729
- line: 251,
226851
+ line: 253,
226730
226852
  column: 4
226731
226853
  },
226732
226854
  end: {
226733
- line: 251,
226855
+ line: 253,
226734
226856
  column: 5
226735
226857
  }
226736
226858
  },
226737
226859
  loc: {
226738
226860
  start: {
226739
- line: 251,
226861
+ line: 253,
226740
226862
  column: 24
226741
226863
  },
226742
226864
  end: {
226743
- line: 256,
226865
+ line: 258,
226744
226866
  column: 5
226745
226867
  }
226746
226868
  },
226747
- line: 251
226869
+ line: 253
226748
226870
  },
226749
226871
  "7": {
226750
226872
  name: "(anonymous_7)",
226751
226873
  decl: {
226752
226874
  start: {
226753
- line: 257,
226875
+ line: 259,
226754
226876
  column: 4
226755
226877
  },
226756
226878
  end: {
226757
- line: 257,
226879
+ line: 259,
226758
226880
  column: 5
226759
226881
  }
226760
226882
  },
226761
226883
  loc: {
226762
226884
  start: {
226763
- line: 257,
226885
+ line: 259,
226764
226886
  column: 27
226765
226887
  },
226766
226888
  end: {
226767
- line: 261,
226889
+ line: 263,
226768
226890
  column: 5
226769
226891
  }
226770
226892
  },
226771
- line: 257
226893
+ line: 259
226772
226894
  },
226773
226895
  "8": {
226774
226896
  name: "(anonymous_8)",
226775
226897
  decl: {
226776
226898
  start: {
226777
- line: 262,
226899
+ line: 264,
226778
226900
  column: 4
226779
226901
  },
226780
226902
  end: {
226781
- line: 262,
226903
+ line: 264,
226782
226904
  column: 5
226783
226905
  }
226784
226906
  },
226785
226907
  loc: {
226786
226908
  start: {
226787
- line: 262,
226909
+ line: 264,
226788
226910
  column: 16
226789
226911
  },
226790
226912
  end: {
226791
- line: 265,
226913
+ line: 267,
226792
226914
  column: 5
226793
226915
  }
226794
226916
  },
226795
- line: 262
226917
+ line: 264
226796
226918
  },
226797
226919
  "9": {
226798
226920
  name: "(anonymous_9)",
226799
226921
  decl: {
226800
226922
  start: {
226801
- line: 264,
226923
+ line: 266,
226802
226924
  column: 39
226803
226925
  },
226804
226926
  end: {
226805
- line: 264,
226927
+ line: 266,
226806
226928
  column: 40
226807
226929
  }
226808
226930
  },
226809
226931
  loc: {
226810
226932
  start: {
226811
- line: 264,
226933
+ line: 266,
226812
226934
  column: 46
226813
226935
  },
226814
226936
  end: {
226815
- line: 264,
226937
+ line: 266,
226816
226938
  column: 57
226817
226939
  }
226818
226940
  },
226819
- line: 264
226941
+ line: 266
226820
226942
  },
226821
226943
  "10": {
226822
226944
  name: "(anonymous_10)",
226823
226945
  decl: {
226824
226946
  start: {
226825
- line: 266,
226947
+ line: 268,
226826
226948
  column: 4
226827
226949
  },
226828
226950
  end: {
226829
- line: 266,
226951
+ line: 268,
226830
226952
  column: 5
226831
226953
  }
226832
226954
  },
226833
226955
  loc: {
226834
226956
  start: {
226835
- line: 266,
226957
+ line: 268,
226836
226958
  column: 17
226837
226959
  },
226838
226960
  end: {
226839
- line: 269,
226961
+ line: 271,
226840
226962
  column: 5
226841
226963
  }
226842
226964
  },
226843
- line: 266
226965
+ line: 268
226844
226966
  },
226845
226967
  "11": {
226846
226968
  name: "(anonymous_11)",
226847
226969
  decl: {
226848
226970
  start: {
226849
- line: 270,
226971
+ line: 272,
226850
226972
  column: 4
226851
226973
  },
226852
226974
  end: {
226853
- line: 270,
226975
+ line: 272,
226854
226976
  column: 5
226855
226977
  }
226856
226978
  },
226857
226979
  loc: {
226858
226980
  start: {
226859
- line: 270,
226981
+ line: 272,
226860
226982
  column: 22
226861
226983
  },
226862
226984
  end: {
226863
- line: 276,
226985
+ line: 277,
226864
226986
  column: 5
226865
226987
  }
226866
226988
  },
226867
- line: 270
226989
+ line: 272
226868
226990
  },
226869
226991
  "12": {
226870
226992
  name: "(anonymous_12)",
226871
226993
  decl: {
226872
226994
  start: {
226873
- line: 277,
226995
+ line: 278,
226874
226996
  column: 4
226875
226997
  },
226876
226998
  end: {
226877
- line: 277,
226999
+ line: 278,
226878
227000
  column: 5
226879
227001
  }
226880
227002
  },
226881
227003
  loc: {
226882
227004
  start: {
226883
- line: 277,
227005
+ line: 278,
226884
227006
  column: 24
226885
227007
  },
226886
227008
  end: {
226887
- line: 286,
227009
+ line: 287,
226888
227010
  column: 5
226889
227011
  }
226890
227012
  },
226891
- line: 277
227013
+ line: 278
226892
227014
  },
226893
227015
  "13": {
226894
227016
  name: "(anonymous_13)",
226895
227017
  decl: {
226896
227018
  start: {
226897
- line: 287,
227019
+ line: 288,
226898
227020
  column: 4
226899
227021
  },
226900
227022
  end: {
226901
- line: 287,
227023
+ line: 288,
226902
227024
  column: 5
226903
227025
  }
226904
227026
  },
226905
227027
  loc: {
226906
227028
  start: {
226907
- line: 287,
227029
+ line: 288,
226908
227030
  column: 19
226909
227031
  },
226910
227032
  end: {
226911
- line: 314,
227033
+ line: 315,
226912
227034
  column: 5
226913
227035
  }
226914
227036
  },
226915
- line: 287
227037
+ line: 288
226916
227038
  },
226917
227039
  "14": {
226918
227040
  name: "(anonymous_14)",
226919
227041
  decl: {
226920
227042
  start: {
226921
- line: 290,
227043
+ line: 291,
226922
227044
  column: 39
226923
227045
  },
226924
227046
  end: {
226925
- line: 290,
227047
+ line: 291,
226926
227048
  column: 40
226927
227049
  }
226928
227050
  },
226929
227051
  loc: {
226930
227052
  start: {
226931
- line: 290,
227053
+ line: 291,
226932
227054
  column: 46
226933
227055
  },
226934
227056
  end: {
226935
- line: 290,
227057
+ line: 291,
226936
227058
  column: 64
226937
227059
  }
226938
227060
  },
226939
- line: 290
227061
+ line: 291
226940
227062
  },
226941
227063
  "15": {
226942
227064
  name: "(anonymous_15)",
226943
227065
  decl: {
226944
227066
  start: {
226945
- line: 294,
227067
+ line: 295,
226946
227068
  column: 16
226947
227069
  },
226948
227070
  end: {
226949
- line: 294,
227071
+ line: 295,
226950
227072
  column: 17
226951
227073
  }
226952
227074
  },
226953
227075
  loc: {
226954
227076
  start: {
226955
- line: 294,
227077
+ line: 295,
226956
227078
  column: 28
226957
227079
  },
226958
227080
  end: {
226959
- line: 304,
227081
+ line: 305,
226960
227082
  column: 11
226961
227083
  }
226962
227084
  },
226963
- line: 294
227085
+ line: 295
226964
227086
  },
226965
227087
  "16": {
226966
227088
  name: "(anonymous_16)",
226967
227089
  decl: {
226968
227090
  start: {
226969
- line: 305,
227091
+ line: 306,
226970
227092
  column: 17
226971
227093
  },
226972
227094
  end: {
226973
- line: 305,
227095
+ line: 306,
226974
227096
  column: 18
226975
227097
  }
226976
227098
  },
226977
227099
  loc: {
226978
227100
  start: {
226979
- line: 305,
227101
+ line: 306,
226980
227102
  column: 26
226981
227103
  },
226982
227104
  end: {
226983
- line: 312,
227105
+ line: 313,
226984
227106
  column: 11
226985
227107
  }
226986
227108
  },
226987
- line: 305
227109
+ line: 306
226988
227110
  }
226989
227111
  },
226990
227112
  branchMap: {
226991
227113
  "0": {
226992
227114
  loc: {
226993
227115
  start: {
226994
- line: 221,
227116
+ line: 223,
226995
227117
  column: 6
226996
227118
  },
226997
227119
  end: {
226998
- line: 228,
227120
+ line: 230,
226999
227121
  column: 7
227000
227122
  }
227001
227123
  },
227002
227124
  type: "if",
227003
227125
  locations: [{
227004
227126
  start: {
227005
- line: 221,
227127
+ line: 223,
227006
227128
  column: 6
227007
227129
  },
227008
227130
  end: {
227009
- line: 228,
227131
+ line: 230,
227010
227132
  column: 7
227011
227133
  }
227012
227134
  }, {
227013
227135
  start: {
227014
- line: 221,
227136
+ line: 223,
227015
227137
  column: 6
227016
227138
  },
227017
227139
  end: {
227018
- line: 228,
227140
+ line: 230,
227019
227141
  column: 7
227020
227142
  }
227021
227143
  }],
227022
- line: 221
227144
+ line: 223
227023
227145
  },
227024
227146
  "1": {
227025
227147
  loc: {
227026
227148
  start: {
227027
- line: 224,
227149
+ line: 226,
227028
227150
  column: 8
227029
227151
  },
227030
227152
  end: {
227031
- line: 227,
227153
+ line: 229,
227032
227154
  column: 9
227033
227155
  }
227034
227156
  },
227035
227157
  type: "if",
227036
227158
  locations: [{
227037
227159
  start: {
227038
- line: 224,
227160
+ line: 226,
227039
227161
  column: 8
227040
227162
  },
227041
227163
  end: {
227042
- line: 227,
227164
+ line: 229,
227043
227165
  column: 9
227044
227166
  }
227045
227167
  }, {
227046
227168
  start: {
227047
- line: 224,
227169
+ line: 226,
227048
227170
  column: 8
227049
227171
  },
227050
227172
  end: {
227051
- line: 227,
227173
+ line: 229,
227052
227174
  column: 9
227053
227175
  }
227054
227176
  }],
227055
- line: 224
227177
+ line: 226
227056
227178
  },
227057
227179
  "2": {
227058
227180
  loc: {
227059
227181
  start: {
227060
- line: 238,
227182
+ line: 240,
227061
227183
  column: 8
227062
227184
  },
227063
227185
  end: {
227064
- line: 248,
227186
+ line: 250,
227065
227187
  column: 9
227066
227188
  }
227067
227189
  },
227068
227190
  type: "if",
227069
227191
  locations: [{
227070
227192
  start: {
227071
- line: 238,
227193
+ line: 240,
227072
227194
  column: 8
227073
227195
  },
227074
227196
  end: {
227075
- line: 248,
227197
+ line: 250,
227076
227198
  column: 9
227077
227199
  }
227078
227200
  }, {
227079
227201
  start: {
227080
- line: 238,
227202
+ line: 240,
227081
227203
  column: 8
227082
227204
  },
227083
227205
  end: {
227084
- line: 248,
227206
+ line: 250,
227085
227207
  column: 9
227086
227208
  }
227087
227209
  }],
227088
- line: 238
227210
+ line: 240
227089
227211
  },
227090
227212
  "3": {
227091
227213
  loc: {
227092
227214
  start: {
227093
- line: 240,
227215
+ line: 242,
227094
227216
  column: 15
227095
227217
  },
227096
227218
  end: {
227097
- line: 248,
227219
+ line: 250,
227098
227220
  column: 9
227099
227221
  }
227100
227222
  },
227101
227223
  type: "if",
227102
227224
  locations: [{
227103
227225
  start: {
227104
- line: 240,
227226
+ line: 242,
227105
227227
  column: 15
227106
227228
  },
227107
227229
  end: {
227108
- line: 248,
227230
+ line: 250,
227109
227231
  column: 9
227110
227232
  }
227111
227233
  }, {
227112
227234
  start: {
227113
- line: 240,
227235
+ line: 242,
227114
227236
  column: 15
227115
227237
  },
227116
227238
  end: {
227117
- line: 248,
227239
+ line: 250,
227118
227240
  column: 9
227119
227241
  }
227120
227242
  }],
227121
- line: 240
227243
+ line: 242
227122
227244
  },
227123
227245
  "4": {
227124
227246
  loc: {
227125
227247
  start: {
227126
- line: 242,
227248
+ line: 244,
227127
227249
  column: 15
227128
227250
  },
227129
227251
  end: {
227130
- line: 248,
227252
+ line: 250,
227131
227253
  column: 9
227132
227254
  }
227133
227255
  },
227134
227256
  type: "if",
227135
227257
  locations: [{
227136
227258
  start: {
227137
- line: 242,
227259
+ line: 244,
227138
227260
  column: 15
227139
227261
  },
227140
227262
  end: {
227141
- line: 248,
227263
+ line: 250,
227142
227264
  column: 9
227143
227265
  }
227144
227266
  }, {
227145
227267
  start: {
227146
- line: 242,
227268
+ line: 244,
227147
227269
  column: 15
227148
227270
  },
227149
227271
  end: {
227150
- line: 248,
227272
+ line: 250,
227151
227273
  column: 9
227152
227274
  }
227153
227275
  }],
227154
- line: 242
227276
+ line: 244
227155
227277
  },
227156
227278
  "5": {
227157
227279
  loc: {
227158
227280
  start: {
227159
- line: 244,
227281
+ line: 246,
227160
227282
  column: 15
227161
227283
  },
227162
227284
  end: {
227163
- line: 248,
227285
+ line: 250,
227164
227286
  column: 9
227165
227287
  }
227166
227288
  },
227167
227289
  type: "if",
227168
227290
  locations: [{
227169
227291
  start: {
227170
- line: 244,
227292
+ line: 246,
227171
227293
  column: 15
227172
227294
  },
227173
227295
  end: {
227174
- line: 248,
227296
+ line: 250,
227175
227297
  column: 9
227176
227298
  }
227177
227299
  }, {
227178
227300
  start: {
227179
- line: 244,
227301
+ line: 246,
227180
227302
  column: 15
227181
227303
  },
227182
227304
  end: {
227183
- line: 248,
227305
+ line: 250,
227184
227306
  column: 9
227185
227307
  }
227186
227308
  }],
227187
- line: 244
227309
+ line: 246
227188
227310
  },
227189
227311
  "6": {
227190
227312
  loc: {
227191
227313
  start: {
227192
- line: 252,
227314
+ line: 254,
227193
227315
  column: 6
227194
227316
  },
227195
227317
  end: {
227196
- line: 255,
227318
+ line: 257,
227197
227319
  column: 7
227198
227320
  }
227199
227321
  },
227200
227322
  type: "if",
227201
227323
  locations: [{
227202
227324
  start: {
227203
- line: 252,
227325
+ line: 254,
227204
227326
  column: 6
227205
227327
  },
227206
227328
  end: {
227207
- line: 255,
227329
+ line: 257,
227208
227330
  column: 7
227209
227331
  }
227210
227332
  }, {
227211
227333
  start: {
227212
- line: 252,
227334
+ line: 254,
227213
227335
  column: 6
227214
227336
  },
227215
227337
  end: {
227216
- line: 255,
227338
+ line: 257,
227217
227339
  column: 7
227218
227340
  }
227219
227341
  }],
227220
- line: 252
227342
+ line: 254
227221
227343
  },
227222
227344
  "7": {
227223
227345
  loc: {
227224
227346
  start: {
227225
- line: 292,
227347
+ line: 293,
227226
227348
  column: 6
227227
227349
  },
227228
227350
  end: {
227229
- line: 313,
227351
+ line: 314,
227230
227352
  column: 7
227231
227353
  }
227232
227354
  },
227233
227355
  type: "if",
227234
227356
  locations: [{
227235
227357
  start: {
227236
- line: 292,
227358
+ line: 293,
227237
227359
  column: 6
227238
227360
  },
227239
227361
  end: {
227240
- line: 313,
227362
+ line: 314,
227241
227363
  column: 7
227242
227364
  }
227243
227365
  }, {
227244
227366
  start: {
227245
- line: 292,
227367
+ line: 293,
227246
227368
  column: 6
227247
227369
  },
227248
227370
  end: {
227249
- line: 313,
227371
+ line: 314,
227250
227372
  column: 7
227251
227373
  }
227252
227374
  }],
227253
- line: 292
227375
+ line: 293
227254
227376
  },
227255
227377
  "8": {
227256
227378
  loc: {
227257
227379
  start: {
227258
- line: 306,
227380
+ line: 307,
227259
227381
  column: 12
227260
227382
  },
227261
227383
  end: {
227262
- line: 311,
227384
+ line: 312,
227263
227385
  column: 13
227264
227386
  }
227265
227387
  },
227266
227388
  type: "if",
227267
227389
  locations: [{
227268
227390
  start: {
227269
- line: 306,
227391
+ line: 307,
227270
227392
  column: 12
227271
227393
  },
227272
227394
  end: {
227273
- line: 311,
227395
+ line: 312,
227274
227396
  column: 13
227275
227397
  }
227276
227398
  }, {
227277
227399
  start: {
227278
- line: 306,
227400
+ line: 307,
227279
227401
  column: 12
227280
227402
  },
227281
227403
  end: {
227282
- line: 311,
227404
+ line: 312,
227283
227405
  column: 13
227284
227406
  }
227285
227407
  }],
227286
- line: 306
227408
+ line: 307
227287
227409
  }
227288
227410
  },
227289
227411
  s: {
@@ -227333,7 +227455,8 @@ var cov_2q2n13agp2 = function () {
227333
227455
  "43": 0,
227334
227456
  "44": 0,
227335
227457
  "45": 0,
227336
- "46": 0
227458
+ "46": 0,
227459
+ "47": 0
227337
227460
  },
227338
227461
  f: {
227339
227462
  "0": 0,
@@ -227369,13 +227492,13 @@ var cov_2q2n13agp2 = function () {
227369
227492
  version: 3,
227370
227493
  sources: ["NewProjectModal.vue"],
227371
227494
  names: [],
227372
- mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
227495
+ mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
227373
227496
  file: "NewProjectModal.vue",
227374
227497
  sourceRoot: "src/components/projects",
227375
- sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n\n <div class=\"text-h6 primary--text pt-8\">\n Participants\n </div>\n\n <v-row>\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <sharing-settings\n ref=\"sharing\"\n :sharing=\"sharing\"\n :error-messages=\"errorMessages.sharing\"\n class=\"pt-8\"\n @update-sharing=\"updateSharing\"\n />\n\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport SharingSettings from '@/components/projects/SharingSettings'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport { snakifyKeys, camelifyKeys } from '@/utils/helpers'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput,\n SharingSettings\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst',\n 'sharing'\n ],\n groups: [],\n project: {},\n sharing: { isPublic: true },\n refs: {},\n rules,\n showOptionalFields: true,\n users: [],\n usersQuery: '',\n camelifyKeys,\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n this.fetchGroups()\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n this.resetForm()\n }\n }\n }\n },\n updated() {\n this.attachFieldRefs()\n },\n methods: {\n attachFieldRefs() {\n // Map all local and nested inputs to local 'refs' object\n this.fieldsToValidate.forEach(field => {\n if (has(this.$refs[field], 'reset')) {\n this.refs[field] = this.$refs[field]\n } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.userSearchInput\n } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.groupSearchInput\n } else if (has(this.$refs, `${field}.$refs.canRead.$refs.userSearchInput.reset`)) {\n this.refs['sharing.isPublic'] = this.$refs[field].$refs.isPublic\n this.refs['sharing.canRead'] = this.$refs[field].$refs.canRead.$refs.userSearchInput\n this.refs['sharing.isShare'] = this.$refs[field].$refs.canShare.$refs.userSearchInput\n }\n })\n },\n async fetchGroups() {\n if (!this.groups.length) {\n const response = await fetchListRecords('groups')\n this.groups = response.results\n }\n },\n toggleOptionalFields() {\n this.showOptionalFields = !this.showOptionalFields\n this.$nextTick(this.$refs.title.focus)\n this.$nextTick(this.$refs.title.resetValidation)\n },\n resetForm() {\n this.formHasErrors = false\n Object.values(this.refs).forEach(ref => ref.reset())\n },\n closeModal() {\n this.resetForm()\n this.$emit('close-modal')\n },\n updateValue(data) {\n console.log(data)\n this.project = {\n ...this.project,\n ...data\n }\n },\n updateSharing(data) {\n this.sharing = {\n ...this.sharing,\n ...data\n }\n this.project = {\n ...this.project,\n sharing: snakifyKeys(this.sharing),\n }\n },\n async submit() {\n this.formHasErrors = false\n this.attachFieldRefs()\n Object.values(this.refs).forEach(ref => ref.validate(true))\n\n if (!this.formHasErrors) {\n createRecord('projects', this.project)\n .then(response => {\n const projectId = this.$get(response, 'pk', '')\n this.$store.dispatch(SHOW_ALERT, {\n message: `Project ${projectId} was succesfully created.`\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n project: projectId\n })\n this.closeModal()\n })\n .catch(error => {\n if (error.response) {\n this.errorMessages = error.response.data\n this.$store.dispatch(SHOW_ALERT, {\n error: 'The project could not be created. Please try again.'\n })\n }\n })\n }\n },\n }\n}\n</script>\n\n<style lang=\"scss\">\n.v-expansion-panel__header {\n padding: 5px !important;\n}\n</style>\n"]
227498
+ sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n\n <div class=\"text-h6 primary--text pt-8\">\n Participants\n </div>\n\n <v-row>\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <sharing-settings\n ref=\"sharing\"\n :sharing=\"sharing\"\n :error-messages=\"errorMessages.sharing\"\n class=\"pt-8\"\n @update-sharing=\"updateSharing\"\n />\n\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport SharingSettings from '@/components/projects/SharingSettings'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport { snakifyKeys, camelifyKeys } from '@/utils/helpers'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput,\n SharingSettings\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n const sharing = { isPublic: true, canRead: [], canShare: []}\n const project = { sharing: snakifyKeys(sharing), }\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst',\n 'sharing'\n ],\n groups: [],\n project,\n sharing,\n refs: {},\n rules,\n showOptionalFields: true,\n users: [],\n usersQuery: '',\n camelifyKeys,\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n this.fetchGroups()\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n this.resetForm()\n }\n }\n }\n },\n updated() {\n this.attachFieldRefs()\n },\n methods: {\n attachFieldRefs() {\n // Map all local and nested inputs to local 'refs' object\n this.fieldsToValidate.forEach(field => {\n if (has(this.$refs[field], 'reset')) {\n this.refs[field] = this.$refs[field]\n } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.userSearchInput\n } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.groupSearchInput\n } else if (has(this.$refs, `${field}.$refs.canRead.$refs.userSearchInput.reset`)) {\n this.refs['sharing.isPublic'] = this.$refs[field].$refs.isPublic\n this.refs['sharing.canRead'] = this.$refs[field].$refs.canRead.$refs.userSearchInput\n this.refs['sharing.isShare'] = this.$refs[field].$refs.canShare.$refs.userSearchInput\n }\n })\n },\n async fetchGroups() {\n if (!this.groups.length) {\n const response = await fetchListRecords('groups')\n this.groups = response.results\n }\n },\n toggleOptionalFields() {\n this.showOptionalFields = !this.showOptionalFields\n this.$nextTick(this.$refs.title.focus)\n this.$nextTick(this.$refs.title.resetValidation)\n },\n resetForm() {\n this.formHasErrors = false\n Object.values(this.refs).forEach(ref => ref.reset())\n },\n closeModal() {\n this.resetForm()\n this.$emit('close-modal')\n },\n updateValue(data) {\n this.project = {\n ...this.project,\n ...data\n }\n },\n updateSharing(data) {\n this.sharing = {\n ...this.sharing,\n ...data\n }\n this.project = {\n ...this.project,\n sharing: snakifyKeys(this.sharing),\n }\n },\n async submit() {\n this.formHasErrors = false\n this.attachFieldRefs()\n Object.values(this.refs).forEach(ref => ref.validate(true))\n\n if (!this.formHasErrors) {\n createRecord('projects', this.project)\n .then(response => {\n const projectId = this.$get(response, 'pk', '')\n this.$store.dispatch(SHOW_ALERT, {\n message: `Project ${projectId} was succesfully created.`\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n project: projectId\n })\n this.closeModal()\n })\n .catch(error => {\n if (error.response) {\n this.errorMessages = error.response.data\n this.$store.dispatch(SHOW_ALERT, {\n error: 'The project could not be created. Please try again.'\n })\n }\n })\n }\n },\n }\n}\n</script>\n\n<style lang=\"scss\">\n.v-expansion-panel__header {\n padding: 5px !important;\n}\n</style>\n"]
227376
227499
  },
227377
227500
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
227378
- hash: "59819bdd4a6ee9b4fa2955075f54f43083d53882"
227501
+ hash: "89acb85815fad1b23ec2d1fd2449b13bff323123"
227379
227502
  };
227380
227503
  var coverage = global[gcv] || (global[gcv] = {});
227381
227504
 
@@ -227593,17 +227716,23 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227593
227716
  },
227594
227717
  data: function data() {
227595
227718
  cov_2q2n13agp2.f[1]++;
227596
- cov_2q2n13agp2.s[1]++;
227719
+ var sharing = (cov_2q2n13agp2.s[1]++, {
227720
+ isPublic: true,
227721
+ canRead: [],
227722
+ canShare: []
227723
+ });
227724
+ var project = (cov_2q2n13agp2.s[2]++, {
227725
+ sharing: Object(helpers["n" /* snakifyKeys */])(sharing)
227726
+ });
227727
+ cov_2q2n13agp2.s[3]++;
227597
227728
  return {
227598
227729
  isLoading: false,
227599
227730
  errorMessages: {},
227600
227731
  formHasErrors: false,
227601
227732
  fieldsToValidate: ['title', 'shortTitle', 'group', 'principalInvestigator', 'owner', 'coordinator', 'analyst', 'sharing'],
227602
227733
  groups: [],
227603
- project: {},
227604
- sharing: {
227605
- isPublic: true
227606
- },
227734
+ project: project,
227735
+ sharing: sharing,
227607
227736
  refs: {},
227608
227737
  rules: rules,
227609
227738
  showOptionalFields: true,
@@ -227615,20 +227744,20 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227615
227744
  watch: {
227616
227745
  showModal: function showModal(value) {
227617
227746
  cov_2q2n13agp2.f[2]++;
227618
- cov_2q2n13agp2.s[2]++;
227747
+ cov_2q2n13agp2.s[4]++;
227619
227748
 
227620
227749
  if (value) {
227621
227750
  cov_2q2n13agp2.b[0][0]++;
227622
- cov_2q2n13agp2.s[3]++;
227751
+ cov_2q2n13agp2.s[5]++;
227623
227752
  this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
227624
227753
 
227625
- cov_2q2n13agp2.s[4]++;
227754
+ cov_2q2n13agp2.s[6]++;
227626
227755
 
227627
227756
  if (this.$refs.title) {
227628
227757
  cov_2q2n13agp2.b[1][0]++;
227629
- cov_2q2n13agp2.s[5]++;
227758
+ cov_2q2n13agp2.s[7]++;
227630
227759
  this.$nextTick(this.$refs.title.focus);
227631
- cov_2q2n13agp2.s[6]++;
227760
+ cov_2q2n13agp2.s[8]++;
227632
227761
  this.resetForm();
227633
227762
  } else {
227634
227763
  cov_2q2n13agp2.b[1][1]++;
@@ -227640,7 +227769,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227640
227769
  },
227641
227770
  updated: function updated() {
227642
227771
  cov_2q2n13agp2.f[3]++;
227643
- cov_2q2n13agp2.s[7]++;
227772
+ cov_2q2n13agp2.s[9]++;
227644
227773
  this.attachFieldRefs();
227645
227774
  },
227646
227775
  methods: {
@@ -227648,43 +227777,43 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227648
227777
  var _this = this;
227649
227778
 
227650
227779
  cov_2q2n13agp2.f[4]++;
227651
- cov_2q2n13agp2.s[8]++;
227780
+ cov_2q2n13agp2.s[10]++;
227652
227781
  // Map all local and nested inputs to local 'refs' object
227653
227782
  this.fieldsToValidate.forEach(function (field) {
227654
227783
  cov_2q2n13agp2.f[5]++;
227655
- cov_2q2n13agp2.s[9]++;
227784
+ cov_2q2n13agp2.s[11]++;
227656
227785
 
227657
227786
  if (has_default()(_this.$refs[field], 'reset')) {
227658
227787
  cov_2q2n13agp2.b[2][0]++;
227659
- cov_2q2n13agp2.s[10]++;
227788
+ cov_2q2n13agp2.s[12]++;
227660
227789
  _this.refs[field] = _this.$refs[field];
227661
227790
  } else {
227662
227791
  cov_2q2n13agp2.b[2][1]++;
227663
- cov_2q2n13agp2.s[11]++;
227792
+ cov_2q2n13agp2.s[13]++;
227664
227793
 
227665
227794
  if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
227666
227795
  cov_2q2n13agp2.b[3][0]++;
227667
- cov_2q2n13agp2.s[12]++;
227796
+ cov_2q2n13agp2.s[14]++;
227668
227797
  _this.refs[field] = _this.$refs[field].$refs.userSearchInput;
227669
227798
  } else {
227670
227799
  cov_2q2n13agp2.b[3][1]++;
227671
- cov_2q2n13agp2.s[13]++;
227800
+ cov_2q2n13agp2.s[15]++;
227672
227801
 
227673
227802
  if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
227674
227803
  cov_2q2n13agp2.b[4][0]++;
227675
- cov_2q2n13agp2.s[14]++;
227804
+ cov_2q2n13agp2.s[16]++;
227676
227805
  _this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
227677
227806
  } else {
227678
227807
  cov_2q2n13agp2.b[4][1]++;
227679
- cov_2q2n13agp2.s[15]++;
227808
+ cov_2q2n13agp2.s[17]++;
227680
227809
 
227681
227810
  if (has_default()(_this.$refs, "".concat(field, ".$refs.canRead.$refs.userSearchInput.reset"))) {
227682
227811
  cov_2q2n13agp2.b[5][0]++;
227683
- cov_2q2n13agp2.s[16]++;
227812
+ cov_2q2n13agp2.s[18]++;
227684
227813
  _this.refs['sharing.isPublic'] = _this.$refs[field].$refs.isPublic;
227685
- cov_2q2n13agp2.s[17]++;
227814
+ cov_2q2n13agp2.s[19]++;
227686
227815
  _this.refs['sharing.canRead'] = _this.$refs[field].$refs.canRead.$refs.userSearchInput;
227687
- cov_2q2n13agp2.s[18]++;
227816
+ cov_2q2n13agp2.s[20]++;
227688
227817
  _this.refs['sharing.isShare'] = _this.$refs[field].$refs.canShare.$refs.userSearchInput;
227689
227818
  } else {
227690
227819
  cov_2q2n13agp2.b[5][1]++;
@@ -227702,7 +227831,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227702
227831
  switch (_context.prev = _context.next) {
227703
227832
  case 0:
227704
227833
  cov_2q2n13agp2.f[6]++;
227705
- cov_2q2n13agp2.s[19]++;
227834
+ cov_2q2n13agp2.s[21]++;
227706
227835
 
227707
227836
  if (this.groups.length) {
227708
227837
  _context.next = 12;
@@ -227710,13 +227839,13 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227710
227839
  }
227711
227840
 
227712
227841
  cov_2q2n13agp2.b[6][0]++;
227713
- cov_2q2n13agp2.s[20]++;
227842
+ cov_2q2n13agp2.s[22]++;
227714
227843
  _context.next = 7;
227715
227844
  return fetchListRecords('groups');
227716
227845
 
227717
227846
  case 7:
227718
227847
  response = _context.sent;
227719
- cov_2q2n13agp2.s[21]++;
227848
+ cov_2q2n13agp2.s[23]++;
227720
227849
  this.groups = response.results;
227721
227850
  _context.next = 13;
227722
227851
  break;
@@ -227740,43 +227869,41 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227740
227869
  }(),
227741
227870
  toggleOptionalFields: function toggleOptionalFields() {
227742
227871
  cov_2q2n13agp2.f[7]++;
227743
- cov_2q2n13agp2.s[22]++;
227872
+ cov_2q2n13agp2.s[24]++;
227744
227873
  this.showOptionalFields = !this.showOptionalFields;
227745
- cov_2q2n13agp2.s[23]++;
227874
+ cov_2q2n13agp2.s[25]++;
227746
227875
  this.$nextTick(this.$refs.title.focus);
227747
- cov_2q2n13agp2.s[24]++;
227876
+ cov_2q2n13agp2.s[26]++;
227748
227877
  this.$nextTick(this.$refs.title.resetValidation);
227749
227878
  },
227750
227879
  resetForm: function resetForm() {
227751
227880
  cov_2q2n13agp2.f[8]++;
227752
- cov_2q2n13agp2.s[25]++;
227881
+ cov_2q2n13agp2.s[27]++;
227753
227882
  this.formHasErrors = false;
227754
- cov_2q2n13agp2.s[26]++;
227883
+ cov_2q2n13agp2.s[28]++;
227755
227884
  Object.values(this.refs).forEach(function (ref) {
227756
227885
  cov_2q2n13agp2.f[9]++;
227757
- cov_2q2n13agp2.s[27]++;
227886
+ cov_2q2n13agp2.s[29]++;
227758
227887
  return ref.reset();
227759
227888
  });
227760
227889
  },
227761
227890
  closeModal: function closeModal() {
227762
227891
  cov_2q2n13agp2.f[10]++;
227763
- cov_2q2n13agp2.s[28]++;
227892
+ cov_2q2n13agp2.s[30]++;
227764
227893
  this.resetForm();
227765
- cov_2q2n13agp2.s[29]++;
227894
+ cov_2q2n13agp2.s[31]++;
227766
227895
  this.$emit('close-modal');
227767
227896
  },
227768
227897
  updateValue: function updateValue(data) {
227769
227898
  cov_2q2n13agp2.f[11]++;
227770
- cov_2q2n13agp2.s[30]++;
227771
- console.log(data);
227772
- cov_2q2n13agp2.s[31]++;
227899
+ cov_2q2n13agp2.s[32]++;
227773
227900
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
227774
227901
  },
227775
227902
  updateSharing: function updateSharing(data) {
227776
227903
  cov_2q2n13agp2.f[12]++;
227777
- cov_2q2n13agp2.s[32]++;
227778
- this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227779
227904
  cov_2q2n13agp2.s[33]++;
227905
+ this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227906
+ cov_2q2n13agp2.s[34]++;
227780
227907
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), {}, {
227781
227908
  sharing: Object(helpers["n" /* snakifyKeys */])(this.sharing)
227782
227909
  });
@@ -227790,48 +227917,48 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227790
227917
  switch (_context2.prev = _context2.next) {
227791
227918
  case 0:
227792
227919
  cov_2q2n13agp2.f[13]++;
227793
- cov_2q2n13agp2.s[34]++;
227794
- this.formHasErrors = false;
227795
227920
  cov_2q2n13agp2.s[35]++;
227796
- this.attachFieldRefs();
227921
+ this.formHasErrors = false;
227797
227922
  cov_2q2n13agp2.s[36]++;
227923
+ this.attachFieldRefs();
227924
+ cov_2q2n13agp2.s[37]++;
227798
227925
  Object.values(this.refs).forEach(function (ref) {
227799
227926
  cov_2q2n13agp2.f[14]++;
227800
- cov_2q2n13agp2.s[37]++;
227927
+ cov_2q2n13agp2.s[38]++;
227801
227928
  return ref.validate(true);
227802
227929
  });
227803
- cov_2q2n13agp2.s[38]++;
227930
+ cov_2q2n13agp2.s[39]++;
227804
227931
 
227805
227932
  if (!this.formHasErrors) {
227806
227933
  cov_2q2n13agp2.b[7][0]++;
227807
- cov_2q2n13agp2.s[39]++;
227934
+ cov_2q2n13agp2.s[40]++;
227808
227935
  createRecord('projects', this.project).then(function (response) {
227809
227936
  cov_2q2n13agp2.f[15]++;
227810
- var projectId = (cov_2q2n13agp2.s[40]++, _this2.$get(response, 'pk', ''));
227811
- cov_2q2n13agp2.s[41]++;
227937
+ var projectId = (cov_2q2n13agp2.s[41]++, _this2.$get(response, 'pk', ''));
227938
+ cov_2q2n13agp2.s[42]++;
227812
227939
 
227813
227940
  _this2.$store.dispatch(SHOW_ALERT, {
227814
227941
  message: "Project ".concat(projectId, " was succesfully created.")
227815
227942
  });
227816
227943
 
227817
- cov_2q2n13agp2.s[42]++;
227944
+ cov_2q2n13agp2.s[43]++;
227818
227945
 
227819
227946
  _this2.$store.dispatch(SHOW_PANEL, {
227820
227947
  project: projectId
227821
227948
  });
227822
227949
 
227823
- cov_2q2n13agp2.s[43]++;
227950
+ cov_2q2n13agp2.s[44]++;
227824
227951
 
227825
227952
  _this2.closeModal();
227826
227953
  }).catch(function (error) {
227827
227954
  cov_2q2n13agp2.f[16]++;
227828
- cov_2q2n13agp2.s[44]++;
227955
+ cov_2q2n13agp2.s[45]++;
227829
227956
 
227830
227957
  if (error.response) {
227831
227958
  cov_2q2n13agp2.b[8][0]++;
227832
- cov_2q2n13agp2.s[45]++;
227833
- _this2.errorMessages = error.response.data;
227834
227959
  cov_2q2n13agp2.s[46]++;
227960
+ _this2.errorMessages = error.response.data;
227961
+ cov_2q2n13agp2.s[47]++;
227835
227962
 
227836
227963
  _this2.$store.dispatch(SHOW_ALERT, {
227837
227964
  error: 'The project could not be created. Please try again.'
@@ -227876,8 +228003,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
227876
228003
 
227877
228004
  var NewProjectModal_component = normalizeComponent(
227878
228005
  projects_NewProjectModalvue_type_script_lang_js_,
227879
- NewProjectModalvue_type_template_id_9dcdd18a_render,
227880
- NewProjectModalvue_type_template_id_9dcdd18a_staticRenderFns,
228006
+ NewProjectModalvue_type_template_id_834662e2_render,
228007
+ NewProjectModalvue_type_template_id_834662e2_staticRenderFns,
227881
228008
  false,
227882
228009
  null,
227883
228010
  null,
@@ -266871,28 +266998,32 @@ var HomeSearch_component = normalizeComponent(
266871
266998
  )
266872
266999
 
266873
267000
  /* harmony default export */ var HomeSearch = (HomeSearch_component.exports);
266874
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=template&id=037ff296&
266875
- var ProjectPanelvue_type_template_id_037ff296_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-panel',{attrs:{"favorite-info":_vm.favoriteInfo,"loading":_vm.loading,"panel-type":"project","data-test":"project-panel"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('v-icon',{staticClass:"title-icon white--text"},[_vm._v("\n "+_vm._s(_vm.$settings.modelIcons.project)+"\n ")]),_c('b',{attrs:{"data-test":"project-title"}},[_vm._v("Project ")]),_c('span',{attrs:{"data-test":"project-id"}},[_vm._v(_vm._s(_vm.projectId))])]},proxy:true},{key:"actions",fn:function(ref){
267001
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=template&id=c79ead1c&
267002
+ var ProjectPanelvue_type_template_id_c79ead1c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-panel',{attrs:{"favorite-info":_vm.favoriteInfo,"loading":_vm.loading,"panel-type":"project","data-test":"project-panel"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('v-icon',{staticClass:"title-icon white--text"},[_vm._v("\n "+_vm._s(_vm.$settings.modelIcons.project)+"\n ")]),_c('b',{attrs:{"data-test":"project-title"}},[_vm._v("Project ")]),_c('span',{attrs:{"data-test":"project-id"}},[_vm._v(_vm._s(_vm.projectId))])]},proxy:true},{key:"actions",fn:function(ref){
266876
267003
  var hover = ref.hover;
266877
267004
  return [_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266878
267005
  var on = ref.on;
266879
267006
  return [(_vm.$isAuthorized('add_submission'))?_c('v-icon',_vm._g({attrs:{"color":hover ? 'white' : 'transparent',"data-test":"add-samples-btn","small":""},on:{"click":_vm.addNewSubmission}},on),[_vm._v("\n library_add\n ")]):_vm._e()]}}],null,true)},[_c('span',[_vm._v("Add batch of samples")])])]}},{key:"content",fn:function(){return [_c('v-card',{staticClass:"isabl-base-card px-8 py-6",attrs:{"flat":""}},[(_vm.editingTitle)?_c('v-row',{staticClass:"text-left"},[_c('v-text-field',{ref:"title",attrs:{"rules":[_vm.rules.required],"outlined":"","label":"Project Title","autofocus":""},on:{"blur":function($event){_vm.editingTitle = false},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.updateValue({ title: _vm.projectTitle })}},model:{value:(_vm.projectTitle),callback:function ($$v) {_vm.projectTitle=$$v},expression:"projectTitle"}})],1):_vm._e(),(!_vm.editingTitle)?_c('v-row',{staticClass:"justify-space-between"},[_c('h2',{staticStyle:{"cursor":"pointer"},attrs:{"data-test":"project-title"},on:{"click":function($event){_vm.editingTitle = true
266880
- _vm.projectTitle = _vm.project.title}}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'title'))+"\n ")]),_c('v-btn',{directives:[{name:"show",rawName:"v-show",value:(!_vm.$get(_vm.project, 'sharing.is_public', false) || _vm.$canShareProject(_vm.project)),expression:"!$get(project, 'sharing.is_public', false) || $canShareProject(project)"}],attrs:{"disabled":!_vm.$canShareProject(_vm.project),"icon":"","small":"","color":"primary"},on:{"click":function($event){_vm.showSharingModal = _vm.$canShareProject(_vm.project)}}},[_c('v-icon',{attrs:{"small":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])],1)],1):_vm._e(),(!_vm.editingTitle)?_c('v-divider',{staticClass:"my-4 mx-n4"}):_vm._e(),_c('v-row',_vm._l((Object.values(_vm.projectBasicFields)),function(field,index){return _c('v-col',{key:index,staticClass:"py-1",attrs:{"cols":"12"}},[_c('model-field',_vm._b({attrs:{"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}},'model-field',field,false))],1)}),1),_c('v-row',[(_vm.project)?_c('v-col',{staticClass:"px-0 py-1",attrs:{"cols":"12","sm":"12"}},[_c('participants-field',{attrs:{"project":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1):_vm._e()],1),_c('v-row',{staticClass:"tags-layout"},[_c('div',{staticClass:"mr-0 mt-4"},[_c('tags-field',{attrs:{"model":_vm.project,"field":'tags',"loading":_vm.fieldLoading,"has-permission":_vm.$isAuthorized('change_project'),"add-tags-message":"Add project tags!"},on:{"update-value":_vm.updateValue}})],1),(_vm.project.group)?_c('div',{staticClass:"mr-0 mt-4"},[(_vm.project.group)?_c('tags-field',{attrs:{"model":_vm.project,"loading":_vm.fieldLoading,"field":'group.tags',"has-permission":_vm.$isAuthorized('change_group'),"add-tags-message":"Add group tags!","tag-class":"group-tag"},on:{"update-value":_vm.updateValue}}):_vm._e()],1):_vm._e()]),_c('v-row',[_c('v-alert',{staticClass:"mt-2",staticStyle:{"width":"100%","cursor":"pointer"},attrs:{"value":_vm.experimentsCount === 0 && _vm.$isAuthorized('add_submission'),"color":"info","outlined":""},on:{"click":_vm.addNewSubmission}},[_vm._v("\n Your project has no samples yet, click here to register new metadata!\n ")])],1)],1),_c('base-modal',{attrs:{"show-modal":_vm.showSharingModal,"loading":_vm.loading,"max-width":"800px"},on:{"close-modal":function($event){_vm.showSharingModal = false}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("\n Sharing Settings\n "),_c('v-icon',{attrs:{"color":"primary","dense":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])]},proxy:true},{key:"content",fn:function(){return [_c('sharing-settings',{attrs:{"sharing":_vm.camelifyKeys(_vm.$get(_vm.project, 'sharing', {})),"no-title":""},on:{"update-sharing":_vm.updateSharing}})]},proxy:true},{key:"cancel-btn",fn:function(){return [_c('span')]},proxy:true}])}),_c('v-card',{staticClass:"pa-0 no-shadow",attrs:{"flat":""}},[_c('base-tabs',{scopedSlots:_vm._u([{key:"content",fn:function(){return [(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-experiments-tab"}},[_vm._v("\n Experiments\n "),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleExperimentsView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266881
- var on = ref.on;
267007
+ _vm.projectTitle = _vm.project.title}}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'title'))+"\n ")]),_c('v-btn',{directives:[{name:"show",rawName:"v-show",value:(
267008
+ _vm.$get(_vm.project, 'sharing', false) && (
267009
+ !_vm.$get(_vm.project, 'sharing.is_public', false) || _vm.$canShareProject(_vm.project)
267010
+ )
267011
+ ),expression:"\n $get(project, 'sharing', false) && (\n !$get(project, 'sharing.is_public', false) || $canShareProject(project)\n )\n "}],attrs:{"disabled":!_vm.$canShareProject(_vm.project),"icon":"","small":"","color":"primary"},on:{"click":function($event){_vm.showSharingModal = _vm.$canShareProject(_vm.project)}}},[_c('v-icon',{attrs:{"small":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])],1)],1):_vm._e(),(!_vm.editingTitle)?_c('v-divider',{staticClass:"my-4 mx-n4"}):_vm._e(),_c('v-row',_vm._l((Object.values(_vm.projectBasicFields)),function(field,index){return _c('v-col',{key:index,staticClass:"py-1",attrs:{"cols":"12"}},[_c('model-field',_vm._b({attrs:{"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}},'model-field',field,false))],1)}),1),_c('v-row',[(_vm.project)?_c('v-col',{staticClass:"px-0 py-1",attrs:{"cols":"12","sm":"12"}},[_c('participants-field',{attrs:{"project":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1):_vm._e()],1),_c('v-row',{staticClass:"tags-layout"},[_c('div',{staticClass:"mr-0 mt-4"},[_c('tags-field',{attrs:{"model":_vm.project,"field":'tags',"loading":_vm.fieldLoading,"has-permission":_vm.$isAuthorized('change_project'),"add-tags-message":"Add project tags!"},on:{"update-value":_vm.updateValue}})],1),(_vm.project.group)?_c('div',{staticClass:"mr-0 mt-4"},[(_vm.project.group)?_c('tags-field',{attrs:{"model":_vm.project,"loading":_vm.fieldLoading,"field":'group.tags',"has-permission":_vm.$isAuthorized('change_group'),"add-tags-message":"Add group tags!","tag-class":"group-tag"},on:{"update-value":_vm.updateValue}}):_vm._e()],1):_vm._e()]),_c('v-row',[_c('v-alert',{staticClass:"mt-2",staticStyle:{"width":"100%","cursor":"pointer"},attrs:{"value":_vm.experimentsCount === 0 && _vm.$isAuthorized('add_submission'),"color":"info","outlined":""},on:{"click":_vm.addNewSubmission}},[_vm._v("\n Your project has no samples yet, click here to register new metadata!\n ")])],1)],1),_c('base-modal',{attrs:{"show-modal":_vm.showSharingModal,"loading":_vm.loading,"max-width":"800px"},on:{"close-modal":function($event){_vm.showSharingModal = false}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("\n Sharing Settings\n "),_c('v-icon',{attrs:{"color":"primary","dense":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])]},proxy:true},{key:"content",fn:function(){return [_c('sharing-settings',{attrs:{"sharing":_vm.camelifyKeys(_vm.$get(_vm.project, 'sharing', {})),"no-title":""},on:{"update-sharing":_vm.updateSharing}})]},proxy:true},{key:"cancel-btn",fn:function(){return [_c('span')]},proxy:true}])}),_c('v-card',{staticClass:"pa-0 no-shadow",attrs:{"flat":""}},[_c('base-tabs',{scopedSlots:_vm._u([{key:"content",fn:function(){return [(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-experiments-tab"}},[_vm._v("\n Experiments\n "),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleExperimentsView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
267012
+ var on = ref.on;
266882
267013
  return [_c('v-icon',_vm._g({staticClass:"white--text",attrs:{"color":"primary","small":""}},on),[_vm._v("\n "+_vm._s(_vm.showExperimentTables ? 'equalizer' : 'view_list')+"\n ")])]}}],null,false,2166994357)},[_c('span',[_vm._v(_vm._s(_vm.showExperimentTables ? 'View graphic data' : 'View tabulated data'))])])],1)],1):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showExperimentTables),expression:"showExperimentTables"}]},[_c('DataTable',{attrs:{"params":_vm.params,"model":"experiments","data-test":"project-experiments-datatable"}}),_c('DataTable',{attrs:{"params":_vm.params,"model":"samples","data-test":"project-samples-datatable"}}),_c('DataTable',{attrs:{"params":_vm.params,"model":"individuals","data-test":"project-individuals-datatable"}})],1),(!_vm.showExperimentTables)?_c('base-dashboard',{attrs:{"figures":_vm.experimentFigures,"params":{ projects__pk__icontains: _vm.projectId },"required-fields":['system_id'],"model":"experiments"}}):_vm._e()],1):_vm._e(),(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-analyses-tab"}},[(_vm.failedAnalyses > 0)?_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266883
- var on = ref.on;
267014
+ var on = ref.on;
266884
267015
  return [_c('v-badge',{attrs:{"dot":"","color":"error"}},[_c('span',_vm._g({},on),[_vm._v("Analyses")])])]}}],null,false,799811077)},[_c('span',[_vm._v("This project has "+_vm._s(_vm.failedAnalyses)+" failed analyses.")])]):_c('span',[_vm._v("Analyses")]),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleAnalysesView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266885
- var on = ref.on;
267016
+ var on = ref.on;
266886
267017
  return [_c('v-icon',_vm._g({staticClass:"white--text",attrs:{"color":"primary","small":""}},on),[_vm._v("\n "+_vm._s(_vm.showAnalysesTables ? 'equalizer' : 'view_list')+"\n ")])]}}],null,false,2424437482)},[_c('span',[_vm._v(_vm._s(_vm.showAnalysesTables ? 'View graphic data' : 'View tabulated data'))])])],1)],1):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showAnalysesTables),expression:"showAnalysesTables"}]},[_c('DataTable',{staticClass:"py-0",attrs:{"params":_vm.params,"model":"analyses"}}),_c('DataTable',{attrs:{"params":_vm.paramsProjectLevelAnalyses,"skip-columns":[
266887
267018
  'Target Experiments',
266888
267019
  'Reference Experiments',
266889
267020
  'Projects',
266890
267021
  'Linked Analyses'
266891
267022
  ],"model":"analyses","title":"Project Analyses"}})],1),(!_vm.showAnalysesTables)?_c('base-dashboard',{attrs:{"figures":_vm.analysisFigures,"params":{ targets__projects__pk__icontains: _vm.projectId },"model":"analyses"}}):_vm._e()],1):_vm._e(),(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-submissions-tab"}},[_vm._v("\n Submissions\n ")]):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('DataTable',{staticClass:"py-0",attrs:{"params":_vm.paramsSubmissions,"model":"submissions","data-test":"project-submissions-datatable"}})],1):_vm._e(),_c('v-tab',{attrs:{"data-test":"project-details-tab"}},[_vm._v("\n Metadata\n ")]),_c('v-tab-item',[_c('model-fields',{attrs:{"fields":_vm.projectFields,"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1),(_vm.isJiraActive)?_c('v-tab',{attrs:{"data-test":"project-jira-tab"},on:{"click":_vm.onJiraSelected}},[_vm._v("Jira")]):_vm._e(),(_vm.isJiraActive)?_c('v-tab-item',[_c('jira-integration',{attrs:{"project":_vm.projectId}})],1):_vm._e()]},proxy:true}])})],1)]},proxy:true}])})}
266892
- var ProjectPanelvue_type_template_id_037ff296_staticRenderFns = []
267023
+ var ProjectPanelvue_type_template_id_c79ead1c_staticRenderFns = []
266893
267024
 
266894
267025
 
266895
- // CONCATENATED MODULE: ./src/components/projects/ProjectPanel.vue?vue&type=template&id=037ff296&
267026
+ // CONCATENATED MODULE: ./src/components/projects/ProjectPanel.vue?vue&type=template&id=c79ead1c&
266896
267027
 
266897
267028
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dashboard/BaseDashboard.vue?vue&type=template&id=191c4226&
266898
267029
  var BaseDashboardvue_type_template_id_191c4226_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dashboard"},[_c('v-card',{staticClass:"isabl-base-card",attrs:{"flat":""}},[_c('dc-graph',{attrs:{"model":_vm.model,"params":_vm.params,"items":_vm.items,"figures":_vm.figures,"loading":_vm.loading,"max-records":_vm.maxRecords,"total-items":_vm.totalItems,"is-embedded":_vm.isEmbedded},on:{"set-max-records":_vm.setMaxRecords,"set-options":_vm.setOptions}})],1)],1)}
@@ -298972,7 +299103,7 @@ var graphs_experimentFigures = function experimentFigures() {
298972
299103
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=script&lang=js&
298973
299104
  var cov_1xfylelwja = function () {
298974
299105
  var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/ProjectPanel.vue";
298975
- var hash = "1e22e790071acd7bfbdf163062b392d0ac39bb05";
299106
+ var hash = "6089d7320d2d7d63cef3b1d2121845b4a705585f";
298976
299107
  var global = new Function("return this")();
298977
299108
  var gcv = "__coverage__";
298978
299109
  var coverageData = {
@@ -298980,361 +299111,361 @@ var cov_1xfylelwja = function () {
298980
299111
  statementMap: {
298981
299112
  "0": {
298982
299113
  start: {
298983
- line: 407,
299114
+ line: 411,
298984
299115
  column: 4
298985
299116
  },
298986
299117
  end: {
298987
- line: 426,
299118
+ line: 430,
298988
299119
  column: 5
298989
299120
  }
298990
299121
  },
298991
299122
  "1": {
298992
299123
  start: {
298993
- line: 434,
299124
+ line: 438,
298994
299125
  column: 6
298995
299126
  },
298996
299127
  end: {
298997
- line: 434,
299128
+ line: 438,
298998
299129
  column: 45
298999
299130
  }
299000
299131
  },
299001
299132
  "2": {
299002
299133
  start: {
299003
- line: 437,
299134
+ line: 441,
299004
299135
  column: 6
299005
299136
  },
299006
299137
  end: {
299007
- line: 437,
299138
+ line: 441,
299008
299139
  column: 73
299009
299140
  }
299010
299141
  },
299011
299142
  "3": {
299012
299143
  start: {
299013
- line: 440,
299144
+ line: 444,
299014
299145
  column: 6
299015
299146
  },
299016
299147
  end: {
299017
- line: 440,
299148
+ line: 444,
299018
299149
  column: 55
299019
299150
  }
299020
299151
  },
299021
299152
  "4": {
299022
299153
  start: {
299023
- line: 443,
299154
+ line: 447,
299024
299155
  column: 24
299025
299156
  },
299026
299157
  end: {
299027
- line: 443,
299158
+ line: 447,
299028
299159
  column: 28
299029
299160
  }
299030
299161
  },
299031
299162
  "5": {
299032
299163
  start: {
299033
- line: 444,
299164
+ line: 448,
299034
299165
  column: 19
299035
299166
  },
299036
299167
  end: {
299037
- line: 444,
299168
+ line: 448,
299038
299169
  column: 21
299039
299170
  }
299040
299171
  },
299041
299172
  "6": {
299042
299173
  start: {
299043
- line: 445,
299174
+ line: 449,
299044
299175
  column: 19
299045
299176
  },
299046
299177
  end: {
299047
- line: 445,
299178
+ line: 449,
299048
299179
  column: 69
299049
299180
  }
299050
299181
  },
299051
299182
  "7": {
299052
299183
  start: {
299053
- line: 446,
299184
+ line: 450,
299054
299185
  column: 6
299055
299186
  },
299056
299187
  end: {
299057
- line: 452,
299188
+ line: 456,
299058
299189
  column: 8
299059
299190
  }
299060
299191
  },
299061
299192
  "8": {
299062
299193
  start: {
299063
- line: 447,
299194
+ line: 451,
299064
299195
  column: 8
299065
299196
  },
299066
299197
  end: {
299067
- line: 451,
299198
+ line: 455,
299068
299199
  column: 9
299069
299200
  }
299070
299201
  },
299071
299202
  "9": {
299072
299203
  start: {
299073
- line: 448,
299204
+ line: 452,
299074
299205
  column: 10
299075
299206
  },
299076
299207
  end: {
299077
- line: 450,
299208
+ line: 454,
299078
299209
  column: 12
299079
299210
  }
299080
299211
  },
299081
299212
  "10": {
299082
299213
  start: {
299083
- line: 449,
299214
+ line: 453,
299084
299215
  column: 12
299085
299216
  },
299086
299217
  end: {
299087
- line: 449,
299218
+ line: 453,
299088
299219
  column: 63
299089
299220
  }
299090
299221
  },
299091
299222
  "11": {
299092
299223
  start: {
299093
- line: 453,
299224
+ line: 457,
299094
299225
  column: 6
299095
299226
  },
299096
299227
  end: {
299097
- line: 453,
299228
+ line: 457,
299098
299229
  column: 31
299099
299230
  }
299100
299231
  },
299101
299232
  "12": {
299102
299233
  start: {
299103
- line: 456,
299234
+ line: 460,
299104
299235
  column: 6
299105
299236
  },
299106
299237
  end: {
299107
- line: 456,
299238
+ line: 460,
299108
299239
  column: 66
299109
299240
  }
299110
299241
  },
299111
299242
  "13": {
299112
299243
  start: {
299113
- line: 459,
299244
+ line: 463,
299114
299245
  column: 6
299115
299246
  },
299116
299247
  end: {
299117
- line: 459,
299248
+ line: 463,
299118
299249
  column: 40
299119
299250
  }
299120
299251
  },
299121
299252
  "14": {
299122
299253
  start: {
299123
- line: 462,
299254
+ line: 466,
299124
299255
  column: 6
299125
299256
  },
299126
299257
  end: {
299127
- line: 467,
299258
+ line: 471,
299128
299259
  column: 7
299129
299260
  }
299130
299261
  },
299131
299262
  "15": {
299132
299263
  start: {
299133
- line: 472,
299264
+ line: 476,
299134
299265
  column: 6
299135
299266
  },
299136
299267
  end: {
299137
- line: 472,
299268
+ line: 476,
299138
299269
  column: 25
299139
299270
  }
299140
299271
  },
299141
299272
  "16": {
299142
299273
  start: {
299143
- line: 475,
299274
+ line: 479,
299144
299275
  column: 6
299145
299276
  },
299146
299277
  end: {
299147
- line: 477,
299278
+ line: 481,
299148
299279
  column: 8
299149
299280
  }
299150
299281
  },
299151
299282
  "17": {
299152
299283
  start: {
299153
- line: 478,
299284
+ line: 482,
299154
299285
  column: 6
299155
299286
  },
299156
299287
  end: {
299157
- line: 478,
299288
+ line: 482,
299158
299289
  column: 26
299159
299290
  }
299160
299291
  },
299161
299292
  "18": {
299162
299293
  start: {
299163
- line: 482,
299294
+ line: 486,
299164
299295
  column: 4
299165
299296
  },
299166
299297
  end: {
299167
- line: 482,
299298
+ line: 486,
299168
299299
  column: 23
299169
299300
  }
299170
299301
  },
299171
299302
  "19": {
299172
299303
  start: {
299173
- line: 486,
299304
+ line: 490,
299174
299305
  column: 6
299175
299306
  },
299176
299307
  end: {
299177
- line: 488,
299308
+ line: 492,
299178
299309
  column: 8
299179
299310
  }
299180
299311
  },
299181
299312
  "20": {
299182
299313
  start: {
299183
- line: 489,
299314
+ line: 493,
299184
299315
  column: 6
299185
299316
  },
299186
299317
  end: {
299187
- line: 493,
299318
+ line: 497,
299188
299319
  column: 8
299189
299320
  }
299190
299321
  },
299191
299322
  "21": {
299192
299323
  start: {
299193
- line: 496,
299324
+ line: 500,
299194
299325
  column: 6
299195
299326
  },
299196
299327
  end: {
299197
- line: 496,
299328
+ line: 500,
299198
299329
  column: 33
299199
299330
  }
299200
299331
  },
299201
299332
  "22": {
299202
299333
  start: {
299203
- line: 499,
299334
+ line: 503,
299204
299335
  column: 6
299205
299336
  },
299206
299337
  end: {
299207
- line: 499,
299338
+ line: 503,
299208
299339
  column: 40
299209
299340
  }
299210
299341
  },
299211
299342
  "23": {
299212
299343
  start: {
299213
- line: 500,
299344
+ line: 504,
299214
299345
  column: 6
299215
299346
  },
299216
299347
  end: {
299217
- line: 500,
299348
+ line: 504,
299218
299349
  column: 31
299219
299350
  }
299220
299351
  },
299221
299352
  "24": {
299222
299353
  start: {
299223
- line: 503,
299354
+ line: 507,
299224
299355
  column: 6
299225
299356
  },
299226
299357
  end: {
299227
- line: 503,
299358
+ line: 507,
299228
299359
  column: 70
299229
299360
  }
299230
299361
  },
299231
299362
  "25": {
299232
299363
  start: {
299233
- line: 506,
299364
+ line: 510,
299234
299365
  column: 6
299235
299366
  },
299236
299367
  end: {
299237
- line: 506,
299368
+ line: 510,
299238
299369
  column: 46
299239
299370
  }
299240
299371
  },
299241
299372
  "26": {
299242
299373
  start: {
299243
- line: 509,
299374
+ line: 513,
299244
299375
  column: 6
299245
299376
  },
299246
299377
  end: {
299247
- line: 509,
299378
+ line: 513,
299248
299379
  column: 60
299249
299380
  }
299250
299381
  },
299251
299382
  "27": {
299252
299383
  start: {
299253
- line: 512,
299384
+ line: 516,
299254
299385
  column: 6
299255
299386
  },
299256
299387
  end: {
299257
- line: 517,
299388
+ line: 521,
299258
299389
  column: 7
299259
299390
  }
299260
299391
  },
299261
299392
  "28": {
299262
299393
  start: {
299263
- line: 520,
299394
+ line: 524,
299264
299395
  column: 6
299265
299396
  },
299266
299397
  end: {
299267
- line: 520,
299398
+ line: 524,
299268
299399
  column: 56
299269
299400
  }
299270
299401
  },
299271
299402
  "29": {
299272
299403
  start: {
299273
- line: 523,
299404
+ line: 527,
299274
299405
  column: 6
299275
299406
  },
299276
299407
  end: {
299277
- line: 528,
299408
+ line: 532,
299278
299409
  column: 7
299279
299410
  }
299280
299411
  },
299281
299412
  "30": {
299282
299413
  start: {
299283
- line: 532,
299414
+ line: 536,
299284
299415
  column: 6
299285
299416
  },
299286
299417
  end: {
299287
- line: 534,
299418
+ line: 538,
299288
299419
  column: 8
299289
299420
  }
299290
299421
  },
299291
299422
  "31": {
299292
299423
  start: {
299293
- line: 537,
299424
+ line: 541,
299294
299425
  column: 6
299295
299426
  },
299296
299427
  end: {
299297
- line: 552,
299428
+ line: 556,
299298
299429
  column: 9
299299
299430
  }
299300
299431
  },
299301
299432
  "32": {
299302
299433
  start: {
299303
- line: 538,
299434
+ line: 542,
299304
299435
  column: 24
299305
299436
  },
299306
299437
  end: {
299307
- line: 541,
299438
+ line: 545,
299308
299439
  column: 9
299309
299440
  }
299310
299441
  },
299311
299442
  "33": {
299312
299443
  start: {
299313
- line: 543,
299444
+ line: 547,
299314
299445
  column: 8
299315
299446
  },
299316
299447
  end: {
299317
- line: 551,
299448
+ line: 555,
299318
299449
  column: 12
299319
299450
  }
299320
299451
  },
299321
299452
  "34": {
299322
299453
  start: {
299323
- line: 545,
299454
+ line: 549,
299324
299455
  column: 12
299325
299456
  },
299326
299457
  end: {
299327
- line: 545,
299458
+ line: 549,
299328
299459
  column: 35
299329
299460
  }
299330
299461
  },
299331
299462
  "35": {
299332
299463
  start: {
299333
- line: 548,
299464
+ line: 552,
299334
299465
  column: 12
299335
299466
  },
299336
299467
  end: {
299337
- line: 550,
299468
+ line: 554,
299338
299469
  column: 14
299339
299470
  }
299340
299471
  }
@@ -299344,744 +299475,744 @@ var cov_1xfylelwja = function () {
299344
299475
  name: "(anonymous_0)",
299345
299476
  decl: {
299346
299477
  start: {
299347
- line: 406,
299478
+ line: 410,
299348
299479
  column: 2
299349
299480
  },
299350
299481
  end: {
299351
- line: 406,
299482
+ line: 410,
299352
299483
  column: 3
299353
299484
  }
299354
299485
  },
299355
299486
  loc: {
299356
299487
  start: {
299357
- line: 406,
299488
+ line: 410,
299358
299489
  column: 9
299359
299490
  },
299360
299491
  end: {
299361
- line: 427,
299492
+ line: 431,
299362
299493
  column: 3
299363
299494
  }
299364
299495
  },
299365
- line: 406
299496
+ line: 410
299366
299497
  },
299367
299498
  "1": {
299368
299499
  name: "(anonymous_1)",
299369
299500
  decl: {
299370
299501
  start: {
299371
- line: 433,
299502
+ line: 437,
299372
299503
  column: 4
299373
299504
  },
299374
299505
  end: {
299375
- line: 433,
299506
+ line: 437,
299376
299507
  column: 5
299377
299508
  }
299378
299509
  },
299379
299510
  loc: {
299380
299511
  start: {
299381
- line: 433,
299512
+ line: 437,
299382
299513
  column: 13
299383
299514
  },
299384
299515
  end: {
299385
- line: 435,
299516
+ line: 439,
299386
299517
  column: 5
299387
299518
  }
299388
299519
  },
299389
- line: 433
299520
+ line: 437
299390
299521
  },
299391
299522
  "2": {
299392
299523
  name: "(anonymous_2)",
299393
299524
  decl: {
299394
299525
  start: {
299395
- line: 436,
299526
+ line: 440,
299396
299527
  column: 4
299397
299528
  },
299398
299529
  end: {
299399
- line: 436,
299530
+ line: 440,
299400
299531
  column: 5
299401
299532
  }
299402
299533
  },
299403
299534
  loc: {
299404
299535
  start: {
299405
- line: 436,
299536
+ line: 440,
299406
299537
  column: 24
299407
299538
  },
299408
299539
  end: {
299409
- line: 438,
299540
+ line: 442,
299410
299541
  column: 5
299411
299542
  }
299412
299543
  },
299413
- line: 436
299544
+ line: 440
299414
299545
  },
299415
299546
  "3": {
299416
299547
  name: "(anonymous_3)",
299417
299548
  decl: {
299418
299549
  start: {
299419
- line: 439,
299550
+ line: 443,
299420
299551
  column: 4
299421
299552
  },
299422
299553
  end: {
299423
- line: 439,
299554
+ line: 443,
299424
299555
  column: 5
299425
299556
  }
299426
299557
  },
299427
299558
  loc: {
299428
299559
  start: {
299429
- line: 439,
299560
+ line: 443,
299430
299561
  column: 33
299431
299562
  },
299432
299563
  end: {
299433
- line: 441,
299564
+ line: 445,
299434
299565
  column: 5
299435
299566
  }
299436
299567
  },
299437
- line: 439
299568
+ line: 443
299438
299569
  },
299439
299570
  "4": {
299440
299571
  name: "(anonymous_4)",
299441
299572
  decl: {
299442
299573
  start: {
299443
- line: 442,
299574
+ line: 446,
299444
299575
  column: 4
299445
299576
  },
299446
299577
  end: {
299447
- line: 442,
299578
+ line: 446,
299448
299579
  column: 5
299449
299580
  }
299450
299581
  },
299451
299582
  loc: {
299452
299583
  start: {
299453
- line: 442,
299584
+ line: 446,
299454
299585
  column: 21
299455
299586
  },
299456
299587
  end: {
299457
- line: 454,
299588
+ line: 458,
299458
299589
  column: 5
299459
299590
  }
299460
299591
  },
299461
- line: 442
299592
+ line: 446
299462
299593
  },
299463
299594
  "5": {
299464
299595
  name: "(anonymous_5)",
299465
299596
  decl: {
299466
299597
  start: {
299467
- line: 446,
299598
+ line: 450,
299468
299599
  column: 19
299469
299600
  },
299470
299601
  end: {
299471
- line: 446,
299602
+ line: 450,
299472
299603
  column: 20
299473
299604
  }
299474
299605
  },
299475
299606
  loc: {
299476
299607
  start: {
299477
- line: 446,
299608
+ line: 450,
299478
299609
  column: 28
299479
299610
  },
299480
299611
  end: {
299481
- line: 452,
299612
+ line: 456,
299482
299613
  column: 7
299483
299614
  }
299484
299615
  },
299485
- line: 446
299616
+ line: 450
299486
299617
  },
299487
299618
  "6": {
299488
299619
  name: "(anonymous_6)",
299489
299620
  decl: {
299490
299621
  start: {
299491
- line: 448,
299622
+ line: 452,
299492
299623
  column: 49
299493
299624
  },
299494
299625
  end: {
299495
- line: 448,
299626
+ line: 452,
299496
299627
  column: 50
299497
299628
  }
299498
299629
  },
299499
299630
  loc: {
299500
299631
  start: {
299501
- line: 448,
299632
+ line: 452,
299502
299633
  column: 60
299503
299634
  },
299504
299635
  end: {
299505
- line: 450,
299636
+ line: 454,
299506
299637
  column: 11
299507
299638
  }
299508
299639
  },
299509
- line: 448
299640
+ line: 452
299510
299641
  },
299511
299642
  "7": {
299512
299643
  name: "(anonymous_7)",
299513
299644
  decl: {
299514
299645
  start: {
299515
- line: 455,
299646
+ line: 459,
299516
299647
  column: 4
299517
299648
  },
299518
299649
  end: {
299519
- line: 455,
299650
+ line: 459,
299520
299651
  column: 5
299521
299652
  }
299522
299653
  },
299523
299654
  loc: {
299524
299655
  start: {
299525
- line: 455,
299656
+ line: 459,
299526
299657
  column: 23
299527
299658
  },
299528
299659
  end: {
299529
- line: 457,
299660
+ line: 461,
299530
299661
  column: 5
299531
299662
  }
299532
299663
  },
299533
- line: 455
299664
+ line: 459
299534
299665
  },
299535
299666
  "8": {
299536
299667
  name: "(anonymous_8)",
299537
299668
  decl: {
299538
299669
  start: {
299539
- line: 458,
299670
+ line: 462,
299540
299671
  column: 4
299541
299672
  },
299542
299673
  end: {
299543
- line: 458,
299674
+ line: 462,
299544
299675
  column: 5
299545
299676
  }
299546
299677
  },
299547
299678
  loc: {
299548
299679
  start: {
299549
- line: 458,
299680
+ line: 462,
299550
299681
  column: 14
299551
299682
  },
299552
299683
  end: {
299553
- line: 460,
299684
+ line: 464,
299554
299685
  column: 5
299555
299686
  }
299556
299687
  },
299557
- line: 458
299688
+ line: 462
299558
299689
  },
299559
299690
  "9": {
299560
299691
  name: "(anonymous_9)",
299561
299692
  decl: {
299562
299693
  start: {
299563
- line: 461,
299694
+ line: 465,
299564
299695
  column: 4
299565
299696
  },
299566
299697
  end: {
299567
- line: 461,
299698
+ line: 465,
299568
299699
  column: 5
299569
299700
  }
299570
299701
  },
299571
299702
  loc: {
299572
299703
  start: {
299573
- line: 461,
299704
+ line: 465,
299574
299705
  column: 19
299575
299706
  },
299576
299707
  end: {
299577
- line: 468,
299708
+ line: 472,
299578
299709
  column: 5
299579
299710
  }
299580
299711
  },
299581
- line: 461
299712
+ line: 465
299582
299713
  },
299583
299714
  "10": {
299584
299715
  name: "(anonymous_10)",
299585
299716
  decl: {
299586
299717
  start: {
299587
- line: 471,
299718
+ line: 475,
299588
299719
  column: 4
299589
299720
  },
299590
299721
  end: {
299591
- line: 471,
299722
+ line: 475,
299592
299723
  column: 5
299593
299724
  }
299594
299725
  },
299595
299726
  loc: {
299596
299727
  start: {
299597
- line: 471,
299728
+ line: 475,
299598
299729
  column: 16
299599
299730
  },
299600
299731
  end: {
299601
- line: 473,
299732
+ line: 477,
299602
299733
  column: 5
299603
299734
  }
299604
299735
  },
299605
- line: 471
299736
+ line: 475
299606
299737
  },
299607
299738
  "11": {
299608
299739
  name: "(anonymous_11)",
299609
299740
  decl: {
299610
299741
  start: {
299611
- line: 474,
299742
+ line: 478,
299612
299743
  column: 4
299613
299744
  },
299614
299745
  end: {
299615
- line: 474,
299746
+ line: 478,
299616
299747
  column: 5
299617
299748
  }
299618
299749
  },
299619
299750
  loc: {
299620
299751
  start: {
299621
- line: 474,
299752
+ line: 478,
299622
299753
  column: 19
299623
299754
  },
299624
299755
  end: {
299625
- line: 479,
299756
+ line: 483,
299626
299757
  column: 5
299627
299758
  }
299628
299759
  },
299629
- line: 474
299760
+ line: 478
299630
299761
  },
299631
299762
  "12": {
299632
299763
  name: "(anonymous_12)",
299633
299764
  decl: {
299634
299765
  start: {
299635
- line: 481,
299766
+ line: 485,
299636
299767
  column: 2
299637
299768
  },
299638
299769
  end: {
299639
- line: 481,
299770
+ line: 485,
299640
299771
  column: 3
299641
299772
  }
299642
299773
  },
299643
299774
  loc: {
299644
299775
  start: {
299645
- line: 481,
299776
+ line: 485,
299646
299777
  column: 12
299647
299778
  },
299648
299779
  end: {
299649
- line: 483,
299780
+ line: 487,
299650
299781
  column: 3
299651
299782
  }
299652
299783
  },
299653
- line: 481
299784
+ line: 485
299654
299785
  },
299655
299786
  "13": {
299656
299787
  name: "(anonymous_13)",
299657
299788
  decl: {
299658
299789
  start: {
299659
- line: 485,
299790
+ line: 489,
299660
299791
  column: 4
299661
299792
  },
299662
299793
  end: {
299663
- line: 485,
299794
+ line: 489,
299664
299795
  column: 5
299665
299796
  }
299666
299797
  },
299667
299798
  loc: {
299668
299799
  start: {
299669
- line: 485,
299800
+ line: 489,
299670
299801
  column: 26
299671
299802
  },
299672
299803
  end: {
299673
- line: 494,
299804
+ line: 498,
299674
299805
  column: 5
299675
299806
  }
299676
299807
  },
299677
- line: 485
299808
+ line: 489
299678
299809
  },
299679
299810
  "14": {
299680
299811
  name: "(anonymous_14)",
299681
299812
  decl: {
299682
299813
  start: {
299683
- line: 495,
299814
+ line: 499,
299684
299815
  column: 4
299685
299816
  },
299686
299817
  end: {
299687
- line: 495,
299818
+ line: 499,
299688
299819
  column: 5
299689
299820
  }
299690
299821
  },
299691
299822
  loc: {
299692
299823
  start: {
299693
- line: 495,
299824
+ line: 499,
299694
299825
  column: 19
299695
299826
  },
299696
299827
  end: {
299697
- line: 497,
299828
+ line: 501,
299698
299829
  column: 5
299699
299830
  }
299700
299831
  },
299701
- line: 495
299832
+ line: 499
299702
299833
  },
299703
299834
  "15": {
299704
299835
  name: "(anonymous_15)",
299705
299836
  decl: {
299706
299837
  start: {
299707
- line: 498,
299838
+ line: 502,
299708
299839
  column: 4
299709
299840
  },
299710
299841
  end: {
299711
- line: 498,
299842
+ line: 502,
299712
299843
  column: 5
299713
299844
  }
299714
299845
  },
299715
299846
  loc: {
299716
299847
  start: {
299717
- line: 498,
299848
+ line: 502,
299718
299849
  column: 22
299719
299850
  },
299720
299851
  end: {
299721
- line: 501,
299852
+ line: 505,
299722
299853
  column: 5
299723
299854
  }
299724
299855
  },
299725
- line: 498
299856
+ line: 502
299726
299857
  },
299727
299858
  "16": {
299728
299859
  name: "(anonymous_16)",
299729
299860
  decl: {
299730
299861
  start: {
299731
- line: 502,
299862
+ line: 506,
299732
299863
  column: 4
299733
299864
  },
299734
299865
  end: {
299735
- line: 502,
299866
+ line: 506,
299736
299867
  column: 5
299737
299868
  }
299738
299869
  },
299739
299870
  loc: {
299740
299871
  start: {
299741
- line: 502,
299872
+ line: 506,
299742
299873
  column: 23
299743
299874
  },
299744
299875
  end: {
299745
- line: 504,
299876
+ line: 508,
299746
299877
  column: 5
299747
299878
  }
299748
299879
  },
299749
- line: 502
299880
+ line: 506
299750
299881
  },
299751
299882
  "17": {
299752
299883
  name: "(anonymous_17)",
299753
299884
  decl: {
299754
299885
  start: {
299755
- line: 505,
299886
+ line: 509,
299756
299887
  column: 4
299757
299888
  },
299758
299889
  end: {
299759
- line: 505,
299890
+ line: 509,
299760
299891
  column: 5
299761
299892
  }
299762
299893
  },
299763
299894
  loc: {
299764
299895
  start: {
299765
- line: 505,
299896
+ line: 509,
299766
299897
  column: 23
299767
299898
  },
299768
299899
  end: {
299769
- line: 507,
299900
+ line: 511,
299770
299901
  column: 5
299771
299902
  }
299772
299903
  },
299773
- line: 505
299904
+ line: 509
299774
299905
  },
299775
299906
  "18": {
299776
299907
  name: "(anonymous_18)",
299777
299908
  decl: {
299778
299909
  start: {
299779
- line: 508,
299910
+ line: 512,
299780
299911
  column: 4
299781
299912
  },
299782
299913
  end: {
299783
- line: 508,
299914
+ line: 512,
299784
299915
  column: 5
299785
299916
  }
299786
299917
  },
299787
299918
  loc: {
299788
299919
  start: {
299789
- line: 508,
299920
+ line: 512,
299790
299921
  column: 28
299791
299922
  },
299792
299923
  end: {
299793
- line: 518,
299924
+ line: 522,
299794
299925
  column: 5
299795
299926
  }
299796
299927
  },
299797
- line: 508
299928
+ line: 512
299798
299929
  },
299799
299930
  "19": {
299800
299931
  name: "(anonymous_19)",
299801
299932
  decl: {
299802
299933
  start: {
299803
- line: 519,
299934
+ line: 523,
299804
299935
  column: 4
299805
299936
  },
299806
299937
  end: {
299807
- line: 519,
299938
+ line: 523,
299808
299939
  column: 5
299809
299940
  }
299810
299941
  },
299811
299942
  loc: {
299812
299943
  start: {
299813
- line: 519,
299944
+ line: 523,
299814
299945
  column: 25
299815
299946
  },
299816
299947
  end: {
299817
- line: 529,
299948
+ line: 533,
299818
299949
  column: 5
299819
299950
  }
299820
299951
  },
299821
- line: 519
299952
+ line: 523
299822
299953
  },
299823
299954
  "20": {
299824
299955
  name: "(anonymous_20)",
299825
299956
  decl: {
299826
299957
  start: {
299827
- line: 530,
299958
+ line: 534,
299828
299959
  column: 4
299829
299960
  },
299830
299961
  end: {
299831
- line: 530,
299962
+ line: 534,
299832
299963
  column: 5
299833
299964
  }
299834
299965
  },
299835
299966
  loc: {
299836
299967
  start: {
299837
- line: 530,
299968
+ line: 534,
299838
299969
  column: 21
299839
299970
  },
299840
299971
  end: {
299841
- line: 535,
299972
+ line: 539,
299842
299973
  column: 5
299843
299974
  }
299844
299975
  },
299845
- line: 530
299976
+ line: 534
299846
299977
  },
299847
299978
  "21": {
299848
299979
  name: "(anonymous_21)",
299849
299980
  decl: {
299850
299981
  start: {
299851
- line: 536,
299982
+ line: 540,
299852
299983
  column: 4
299853
299984
  },
299854
299985
  end: {
299855
- line: 536,
299986
+ line: 540,
299856
299987
  column: 5
299857
299988
  }
299858
299989
  },
299859
299990
  loc: {
299860
299991
  start: {
299861
- line: 536,
299992
+ line: 540,
299862
299993
  column: 30
299863
299994
  },
299864
299995
  end: {
299865
- line: 553,
299996
+ line: 557,
299866
299997
  column: 5
299867
299998
  }
299868
299999
  },
299869
- line: 536
300000
+ line: 540
299870
300001
  },
299871
300002
  "22": {
299872
300003
  name: "(anonymous_22)",
299873
300004
  decl: {
299874
300005
  start: {
299875
- line: 544,
300006
+ line: 548,
299876
300007
  column: 16
299877
300008
  },
299878
300009
  end: {
299879
- line: 544,
300010
+ line: 548,
299880
300011
  column: 17
299881
300012
  }
299882
300013
  },
299883
300014
  loc: {
299884
300015
  start: {
299885
- line: 544,
300016
+ line: 548,
299886
300017
  column: 28
299887
300018
  },
299888
300019
  end: {
299889
- line: 546,
300020
+ line: 550,
299890
300021
  column: 11
299891
300022
  }
299892
300023
  },
299893
- line: 544
300024
+ line: 548
299894
300025
  },
299895
300026
  "23": {
299896
300027
  name: "(anonymous_23)",
299897
300028
  decl: {
299898
300029
  start: {
299899
- line: 547,
300030
+ line: 551,
299900
300031
  column: 17
299901
300032
  },
299902
300033
  end: {
299903
- line: 547,
300034
+ line: 551,
299904
300035
  column: 18
299905
300036
  }
299906
300037
  },
299907
300038
  loc: {
299908
300039
  start: {
299909
- line: 547,
300040
+ line: 551,
299910
300041
  column: 28
299911
300042
  },
299912
300043
  end: {
299913
- line: 551,
300044
+ line: 555,
299914
300045
  column: 11
299915
300046
  }
299916
300047
  },
299917
- line: 547
300048
+ line: 551
299918
300049
  }
299919
300050
  },
299920
300051
  branchMap: {
299921
300052
  "0": {
299922
300053
  loc: {
299923
300054
  start: {
299924
- line: 447,
300055
+ line: 451,
299925
300056
  column: 8
299926
300057
  },
299927
300058
  end: {
299928
- line: 451,
300059
+ line: 455,
299929
300060
  column: 9
299930
300061
  }
299931
300062
  },
299932
300063
  type: "if",
299933
300064
  locations: [{
299934
300065
  start: {
299935
- line: 447,
300066
+ line: 451,
299936
300067
  column: 8
299937
300068
  },
299938
300069
  end: {
299939
- line: 451,
300070
+ line: 455,
299940
300071
  column: 9
299941
300072
  }
299942
300073
  }, {
299943
300074
  start: {
299944
- line: 447,
300075
+ line: 451,
299945
300076
  column: 8
299946
300077
  },
299947
300078
  end: {
299948
- line: 451,
300079
+ line: 455,
299949
300080
  column: 9
299950
300081
  }
299951
300082
  }],
299952
- line: 447
300083
+ line: 451
299953
300084
  },
299954
300085
  "1": {
299955
300086
  loc: {
299956
300087
  start: {
299957
- line: 447,
300088
+ line: 451,
299958
300089
  column: 12
299959
300090
  },
299960
300091
  end: {
299961
- line: 447,
300092
+ line: 451,
299962
300093
  column: 52
299963
300094
  }
299964
300095
  },
299965
300096
  type: "binary-expr",
299966
300097
  locations: [{
299967
300098
  start: {
299968
- line: 447,
300099
+ line: 451,
299969
300100
  column: 12
299970
300101
  },
299971
300102
  end: {
299972
- line: 447,
300103
+ line: 451,
299973
300104
  column: 29
299974
300105
  }
299975
300106
  }, {
299976
300107
  start: {
299977
- line: 447,
300108
+ line: 451,
299978
300109
  column: 33
299979
300110
  },
299980
300111
  end: {
299981
- line: 447,
300112
+ line: 451,
299982
300113
  column: 52
299983
300114
  }
299984
300115
  }],
299985
- line: 447
300116
+ line: 451
299986
300117
  },
299987
300118
  "2": {
299988
300119
  loc: {
299989
300120
  start: {
299990
- line: 513,
300121
+ line: 517,
299991
300122
  column: 8
299992
300123
  },
299993
300124
  end: {
299994
- line: 515,
300125
+ line: 519,
299995
300126
  column: 39
299996
300127
  }
299997
300128
  },
299998
300129
  type: "cond-expr",
299999
300130
  locations: [{
300000
300131
  start: {
300001
- line: 514,
300132
+ line: 518,
300002
300133
  column: 12
300003
300134
  },
300004
300135
  end: {
300005
- line: 514,
300136
+ line: 518,
300006
300137
  column: 39
300007
300138
  }
300008
300139
  }, {
300009
300140
  start: {
300010
- line: 515,
300141
+ line: 519,
300011
300142
  column: 12
300012
300143
  },
300013
300144
  end: {
300014
- line: 515,
300145
+ line: 519,
300015
300146
  column: 39
300016
300147
  }
300017
300148
  }],
300018
- line: 513
300149
+ line: 517
300019
300150
  },
300020
300151
  "3": {
300021
300152
  loc: {
300022
300153
  start: {
300023
- line: 524,
300154
+ line: 528,
300024
300155
  column: 8
300025
300156
  },
300026
300157
  end: {
300027
- line: 526,
300158
+ line: 530,
300028
300159
  column: 39
300029
300160
  }
300030
300161
  },
300031
300162
  type: "cond-expr",
300032
300163
  locations: [{
300033
300164
  start: {
300034
- line: 525,
300165
+ line: 529,
300035
300166
  column: 12
300036
300167
  },
300037
300168
  end: {
300038
- line: 525,
300169
+ line: 529,
300039
300170
  column: 39
300040
300171
  }
300041
300172
  }, {
300042
300173
  start: {
300043
- line: 526,
300174
+ line: 530,
300044
300175
  column: 12
300045
300176
  },
300046
300177
  end: {
300047
- line: 526,
300178
+ line: 530,
300048
300179
  column: 39
300049
300180
  }
300050
300181
  }],
300051
- line: 524
300182
+ line: 528
300052
300183
  },
300053
300184
  "4": {
300054
300185
  loc: {
300055
300186
  start: {
300056
- line: 537,
300187
+ line: 541,
300057
300188
  column: 6
300058
300189
  },
300059
300190
  end: {
300060
- line: 552,
300191
+ line: 556,
300061
300192
  column: 9
300062
300193
  }
300063
300194
  },
300064
300195
  type: "if",
300065
300196
  locations: [{
300066
300197
  start: {
300067
- line: 537,
300198
+ line: 541,
300068
300199
  column: 6
300069
300200
  },
300070
300201
  end: {
300071
- line: 552,
300202
+ line: 556,
300072
300203
  column: 9
300073
300204
  }
300074
300205
  }, {
300075
300206
  start: {
300076
- line: 537,
300207
+ line: 541,
300077
300208
  column: 6
300078
300209
  },
300079
300210
  end: {
300080
- line: 552,
300211
+ line: 556,
300081
300212
  column: 9
300082
300213
  }
300083
300214
  }],
300084
- line: 537
300215
+ line: 541
300085
300216
  }
300086
300217
  },
300087
300218
  s: {
@@ -300159,13 +300290,13 @@ var cov_1xfylelwja = function () {
300159
300290
  version: 3,
300160
300291
  sources: ["ProjectPanel.vue"],
300161
300292
  names: [],
300162
- mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6WA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
300293
+ mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiXA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
300163
300294
  file: "ProjectPanel.vue",
300164
300295
  sourceRoot: "src/components/projects",
300165
- sourcesContent: ["<template>\n <base-panel\n :favorite-info=\"favoriteInfo\"\n :loading=\"loading\"\n panel-type=\"project\"\n data-test=\"project-panel\"\n >\n <!-- Project and Summary -->\n <template v-slot:title>\n <v-icon class=\"title-icon white--text\">\n {{ $settings.modelIcons.project }}\n </v-icon>\n <b data-test=\"project-title\">Project&nbsp;</b>\n <span data-test=\"project-id\">{{ projectId }}</span>\n </template>\n\n <!-- Project Actions -->\n <template v-slot:actions=\"{ hover }\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n v-if=\"$isAuthorized('add_submission')\"\n :color=\"hover ? 'white' : 'transparent'\"\n data-test=\"add-samples-btn\"\n small\n @click=\"addNewSubmission\"\n v-on=\"on\"\n >\n library_add\n </v-icon>\n </template>\n <span>Add batch of samples</span>\n </v-tooltip>\n </template>\n\n <!-- Title and Info -->\n <template v-slot:content>\n <v-card flat class=\"isabl-base-card px-8 py-6\">\n <v-row v-if=\"editingTitle\" class=\"text-left\" >\n <v-text-field\n ref=\"title\"\n v-model=\"projectTitle\"\n :rules=\"[rules.required]\"\n outlined\n label=\"Project Title\"\n autofocus\n @blur=\"editingTitle = false\"\n @keydown.enter=\"updateValue({ title: projectTitle })\"\n />\n </v-row>\n <v-row v-if=\"!editingTitle\" class=\"justify-space-between\">\n <h2\n style=\"cursor: pointer\"\n data-test=\"project-title\"\n @click=\"\n editingTitle = true\n projectTitle = project.title\n \"\n >\n {{ $get(project, 'title') }}\n </h2>\n\n <!-- Share Settings Icon Button -->\n <v-btn\n v-show=\"!$get(project, 'sharing.is_public', false) || $canShareProject(project)\"\n :disabled=\"!$canShareProject(project)\"\n icon\n small\n color=\"primary\"\n @click=\"showSharingModal = $canShareProject(project)\"\n >\n <v-icon small>\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </v-btn>\n </v-row>\n\n <v-divider\n v-if=\"!editingTitle\"\n class=\"my-4 mx-n4\"\n />\n\n <!-- Project Details Section -->\n <v-row>\n <!-- Basic Details: Title, Short Title and Description -->\n <v-col\n v-for=\"(field, index) in Object.values(projectBasicFields)\"\n :key=\"index\"\n cols=\"12\"\n class=\"py-1\"\n >\n <model-field\n v-bind=\"field\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n <v-row>\n <!-- Participants -->\n <v-col\n v-if=\"project\"\n cols=\"12\"\n class=\"px-0 py-1\"\n sm=\"12\"\n >\n <participants-field\n :project=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <!-- tags -->\n <v-row class=\"tags-layout\">\n <div class=\"mr-0 mt-4\">\n <tags-field\n :model=\"project\"\n :field=\"'tags'\"\n :loading=\"fieldLoading\"\n :has-permission=\"$isAuthorized('change_project')\"\n add-tags-message=\"Add project tags!\"\n @update-value=\"updateValue\"\n />\n </div>\n\n <div\n v-if=\"project.group\"\n class=\"mr-0 mt-4\"\n >\n <tags-field\n v-if=\"project.group\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n :field=\"'group.tags'\"\n :has-permission=\"$isAuthorized('change_group')\"\n add-tags-message=\"Add group tags!\"\n tag-class=\"group-tag\"\n @update-value=\"updateValue\"\n />\n </div>\n </v-row>\n\n <v-row>\n <v-alert\n :value=\"experimentsCount === 0 && $isAuthorized('add_submission')\"\n color=\"info\"\n class=\"mt-2\"\n outlined\n style=\"width: 100%; cursor: pointer\"\n @click=\"addNewSubmission\"\n >\n Your project has no samples yet, click here to register new metadata!\n </v-alert>\n </v-row>\n </v-card>\n\n <!-- Modal to edit sharing -->\n <base-modal\n :show-modal=\"showSharingModal\"\n :loading=\"loading\"\n max-width=\"800px\"\n @close-modal=\"showSharingModal = false\"\n >\n <template v-slot:title>\n Sharing Settings\n <v-icon\n color=\"primary\"\n dense\n >\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </template>\n\n <template v-slot:content>\n <sharing-settings\n :sharing=\"camelifyKeys($get(project, 'sharing', {}))\"\n no-title\n @update-sharing=\"updateSharing\"\n />\n </template>\n\n <template v-slot:cancel-btn>\n <span />\n </template>\n\n </base-modal>\n\n <!-- End Modal to edit sharing -->\n\n <v-card flat class=\"pa-0 no-shadow\">\n <base-tabs>\n <template v-slot:content>\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-experiments-tab\"\n >\n Experiments\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleExperimentsView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showExperimentTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showExperimentTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showExperimentTables\">\n <DataTable\n :params=\"params\"\n model=\"experiments\"\n data-test=\"project-experiments-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"samples\"\n data-test=\"project-samples-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"individuals\"\n data-test=\"project-individuals-datatable\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showExperimentTables\"\n :figures=\"experimentFigures\"\n :params=\"{ projects__pk__icontains: projectId }\"\n :required-fields=\"['system_id']\"\n model=\"experiments\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-analyses-tab\"\n >\n <v-tooltip v-if=\"failedAnalyses > 0\" top>\n <template v-slot:activator=\"{ on }\">\n <v-badge\n dot\n color=\"error\"\n >\n <span v-on=\"on\">Analyses</span>\n </v-badge>\n </template>\n <span>This project has {{ failedAnalyses }} failed analyses.</span>\n </v-tooltip>\n <span v-else>Analyses</span>\n\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleAnalysesView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showAnalysesTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showAnalysesTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showAnalysesTables\">\n <DataTable\n :params=\"params\"\n model=\"analyses\"\n class=\"py-0\"\n />\n\n <DataTable\n :params=\"paramsProjectLevelAnalyses\"\n :skip-columns=\"[\n 'Target Experiments',\n 'Reference Experiments',\n 'Projects',\n 'Linked Analyses'\n ]\"\n model=\"analyses\"\n title=\"Project Analyses\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showAnalysesTables\"\n :figures=\"analysisFigures\"\n :params=\"{ targets__projects__pk__icontains: projectId }\"\n model=\"analyses\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-submissions-tab\"\n >\n Submissions\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <DataTable\n :params=\"paramsSubmissions\"\n model=\"submissions\"\n data-test=\"project-submissions-datatable\"\n class=\"py-0\"\n />\n </v-tab-item>\n\n <v-tab data-test=\"project-details-tab\">\n Metadata\n </v-tab>\n <v-tab-item>\n <model-fields\n :fields=\"projectFields\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"isJiraActive\"\n data-test=\"project-jira-tab\"\n @click=\"onJiraSelected\"\n >Jira</v-tab>\n <v-tab-item v-if=\"isJiraActive\">\n <jira-integration :project=\"projectId\" />\n </v-tab-item>\n </template>\n </base-tabs>\n </v-card>\n </template>\n </base-panel>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseTabs from '@/components/base/BaseTabs.vue'\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport BaseDashboard from '@/components/dashboard/BaseDashboard'\nimport DataTable from '@/components/table/DataTable.vue'\nimport JiraIntegration from '@/components/projects/JiraIntegration.vue'\nimport ModelField from '@/components/fields/ModelField'\nimport ModelFields from '@/components/fields/ModelFields'\nimport ParticipantsField from '@/components/fields/ParticipantsField'\nimport TagsField from '@/components/fields/TagsField'\nimport SharingSettings from '@/components/projects/SharingSettings'\n\nimport rules from '@/utils/rules'\nimport { ADD_NEW_SUBMISSION, UPDATE_PROJECT } from '@/store/actions/modals'\nimport { projectFields, projectBasicFields } from '@/utils/fields'\nimport { getRecordsCount } from '@/utils/api'\nimport { experimentFigures, analysisFigures } from '@/utils/graphs'\nimport { camelifyKeys, snakifyKeys } from '@/utils/helpers'\nimport { updateRecord } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\n\nexport default {\n name: 'ProjectPanel',\n components: {\n BasePanel,\n BaseModal,\n BaseSectionTitle,\n DataTable,\n BaseDashboard,\n ModelField,\n ModelFields,\n JiraIntegration,\n ParticipantsField,\n TagsField,\n BaseTabs,\n SharingSettings,\n },\n data() {\n return {\n experimentsCount: null,\n editingTitle: false,\n failedAnalyses: 0,\n fields: [projectBasicFields, projectFields],\n fieldLoading: false,\n isJiraActive: this.$settings.jira,\n loading: false,\n project: {},\n showDetails: false,\n projectBasicFields,\n projectFields,\n rules,\n experimentFigures: experimentFigures(),\n analysisFigures: analysisFigures(),\n showExperimentTables: true,\n showAnalysesTables: true,\n showSharingModal: false,\n camelifyKeys,\n }\n },\n computed: {\n ...mapGetters({\n projectId: 'projectId',\n user: 'getProfile'\n }),\n params() {\n return { projects__pk: this.projectId }\n },\n paramsSubmissions() {\n return { projects__pk: this.projectId, processed__isnull: 'False' }\n },\n paramsProjectLevelAnalyses() {\n return { project_level_analysis: this.projectId }\n },\n projectSummary() {\n let { project } = this\n let result = []\n const keys = ['species', 'source_types', 'analytes', 'methods']\n keys.forEach((key) => {\n if ('data' in project && key in project.data) {\n Object.keys(project.data[key]).forEach((field) => {\n result.push(`${field} ` + project.data[key][field])\n })\n }\n })\n return result.join(' - ')\n },\n executiveSummary() {\n return this.$get(this.project, 'data.executive_summary', '')\n },\n showTab() {\n return this.experimentsCount !== 0\n },\n favoriteInfo() {\n return {\n key: this.project.pk,\n model: 'project',\n panel: 'project',\n title: 'Project',\n }\n },\n },\n watch: {\n projectId() {\n this.fetchProject()\n },\n project(value) {\n this.$store.dispatch(UPDATE_PROJECT, {\n value,\n })\n this.updateMetrics()\n },\n },\n created() {\n this.fetchProject()\n },\n methods: {\n async updateMetrics() {\n this.experimentsCount = await getRecordsCount('experiments', {\n projects: this.projectId,\n })\n this.failedAnalyses = await getRecordsCount('analyses', {\n projects: this.projectId,\n status: 'FAILED',\n distinct: true,\n })\n },\n fetchProject() {\n this.$fetchModel('project')\n },\n updateValue(data) {\n this.$updateField('project', data)\n this.editingTitle = false\n },\n openDrive(driveId) {\n window.open(`https://drive.google.com/drive/folders/${driveId}`)\n },\n addNewSubmission() {\n this.$store.dispatch(ADD_NEW_SUBMISSION)\n },\n toggleExperimentsView() {\n this.showExperimentTables = !this.showExperimentTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showExperimentTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'experiments', panel: 'project' }\n )\n },\n toggleAnalysesView() {\n this.showAnalysesTables = !this.showAnalysesTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showAnalysesTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'analyses', panel: 'project' }\n )\n },\n onJiraSelected() {\n // Track analytics of when user uses the Jira Project Details\n window.analytics.track('Opened Jira Tab', {\n project: this.projectId,\n })\n },\n async updateSharing(data) {\n if (Object.keys(data).length) {\n const sharing = {\n ...this.project.sharing,\n ...snakifyKeys(data)\n }\n\n updateRecord('projects', this.projectId, { sharing })\n .then(response => {\n this.project = response\n })\n .catch((error) => {\n this.$store.dispatch(SHOW_ALERT, {\n error: this.$get(error, 'response.data.detail')\n })\n })\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\n.group-tag {\n background-color: #efe9ff !important;\n color: #3a74a3 !important;\n}\nbutton.v-btn--floating.very-small {\n height: 30px;\n width: 30px;\n}\n</style>\n"]
300296
+ sourcesContent: ["<template>\n <base-panel\n :favorite-info=\"favoriteInfo\"\n :loading=\"loading\"\n panel-type=\"project\"\n data-test=\"project-panel\"\n >\n <!-- Project and Summary -->\n <template v-slot:title>\n <v-icon class=\"title-icon white--text\">\n {{ $settings.modelIcons.project }}\n </v-icon>\n <b data-test=\"project-title\">Project&nbsp;</b>\n <span data-test=\"project-id\">{{ projectId }}</span>\n </template>\n\n <!-- Project Actions -->\n <template v-slot:actions=\"{ hover }\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n v-if=\"$isAuthorized('add_submission')\"\n :color=\"hover ? 'white' : 'transparent'\"\n data-test=\"add-samples-btn\"\n small\n @click=\"addNewSubmission\"\n v-on=\"on\"\n >\n library_add\n </v-icon>\n </template>\n <span>Add batch of samples</span>\n </v-tooltip>\n </template>\n\n <!-- Title and Info -->\n <template v-slot:content>\n <v-card flat class=\"isabl-base-card px-8 py-6\">\n <v-row v-if=\"editingTitle\" class=\"text-left\" >\n <v-text-field\n ref=\"title\"\n v-model=\"projectTitle\"\n :rules=\"[rules.required]\"\n outlined\n label=\"Project Title\"\n autofocus\n @blur=\"editingTitle = false\"\n @keydown.enter=\"updateValue({ title: projectTitle })\"\n />\n </v-row>\n <v-row v-if=\"!editingTitle\" class=\"justify-space-between\">\n <h2\n style=\"cursor: pointer\"\n data-test=\"project-title\"\n @click=\"\n editingTitle = true\n projectTitle = project.title\n \"\n >\n {{ $get(project, 'title') }}\n </h2>\n\n <!-- Share Settings Icon Button -->\n <v-btn\n v-show=\"\n $get(project, 'sharing', false) && (\n !$get(project, 'sharing.is_public', false) || $canShareProject(project)\n )\n \"\n :disabled=\"!$canShareProject(project)\"\n icon\n small\n color=\"primary\"\n @click=\"showSharingModal = $canShareProject(project)\"\n >\n <v-icon small>\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </v-btn>\n </v-row>\n\n <v-divider\n v-if=\"!editingTitle\"\n class=\"my-4 mx-n4\"\n />\n\n <!-- Project Details Section -->\n <v-row>\n <!-- Basic Details: Title, Short Title and Description -->\n <v-col\n v-for=\"(field, index) in Object.values(projectBasicFields)\"\n :key=\"index\"\n cols=\"12\"\n class=\"py-1\"\n >\n <model-field\n v-bind=\"field\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n <v-row>\n <!-- Participants -->\n <v-col\n v-if=\"project\"\n cols=\"12\"\n class=\"px-0 py-1\"\n sm=\"12\"\n >\n <participants-field\n :project=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <!-- tags -->\n <v-row class=\"tags-layout\">\n <div class=\"mr-0 mt-4\">\n <tags-field\n :model=\"project\"\n :field=\"'tags'\"\n :loading=\"fieldLoading\"\n :has-permission=\"$isAuthorized('change_project')\"\n add-tags-message=\"Add project tags!\"\n @update-value=\"updateValue\"\n />\n </div>\n\n <div\n v-if=\"project.group\"\n class=\"mr-0 mt-4\"\n >\n <tags-field\n v-if=\"project.group\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n :field=\"'group.tags'\"\n :has-permission=\"$isAuthorized('change_group')\"\n add-tags-message=\"Add group tags!\"\n tag-class=\"group-tag\"\n @update-value=\"updateValue\"\n />\n </div>\n </v-row>\n\n <v-row>\n <v-alert\n :value=\"experimentsCount === 0 && $isAuthorized('add_submission')\"\n color=\"info\"\n class=\"mt-2\"\n outlined\n style=\"width: 100%; cursor: pointer\"\n @click=\"addNewSubmission\"\n >\n Your project has no samples yet, click here to register new metadata!\n </v-alert>\n </v-row>\n </v-card>\n\n <!-- Modal to edit sharing -->\n <base-modal\n :show-modal=\"showSharingModal\"\n :loading=\"loading\"\n max-width=\"800px\"\n @close-modal=\"showSharingModal = false\"\n >\n <template v-slot:title>\n Sharing Settings\n <v-icon\n color=\"primary\"\n dense\n >\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </template>\n\n <template v-slot:content>\n <sharing-settings\n :sharing=\"camelifyKeys($get(project, 'sharing', {}))\"\n no-title\n @update-sharing=\"updateSharing\"\n />\n </template>\n\n <template v-slot:cancel-btn>\n <span />\n </template>\n\n </base-modal>\n\n <!-- End Modal to edit sharing -->\n\n <v-card flat class=\"pa-0 no-shadow\">\n <base-tabs>\n <template v-slot:content>\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-experiments-tab\"\n >\n Experiments\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleExperimentsView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showExperimentTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showExperimentTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showExperimentTables\">\n <DataTable\n :params=\"params\"\n model=\"experiments\"\n data-test=\"project-experiments-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"samples\"\n data-test=\"project-samples-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"individuals\"\n data-test=\"project-individuals-datatable\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showExperimentTables\"\n :figures=\"experimentFigures\"\n :params=\"{ projects__pk__icontains: projectId }\"\n :required-fields=\"['system_id']\"\n model=\"experiments\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-analyses-tab\"\n >\n <v-tooltip v-if=\"failedAnalyses > 0\" top>\n <template v-slot:activator=\"{ on }\">\n <v-badge\n dot\n color=\"error\"\n >\n <span v-on=\"on\">Analyses</span>\n </v-badge>\n </template>\n <span>This project has {{ failedAnalyses }} failed analyses.</span>\n </v-tooltip>\n <span v-else>Analyses</span>\n\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleAnalysesView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showAnalysesTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showAnalysesTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showAnalysesTables\">\n <DataTable\n :params=\"params\"\n model=\"analyses\"\n class=\"py-0\"\n />\n\n <DataTable\n :params=\"paramsProjectLevelAnalyses\"\n :skip-columns=\"[\n 'Target Experiments',\n 'Reference Experiments',\n 'Projects',\n 'Linked Analyses'\n ]\"\n model=\"analyses\"\n title=\"Project Analyses\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showAnalysesTables\"\n :figures=\"analysisFigures\"\n :params=\"{ targets__projects__pk__icontains: projectId }\"\n model=\"analyses\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-submissions-tab\"\n >\n Submissions\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <DataTable\n :params=\"paramsSubmissions\"\n model=\"submissions\"\n data-test=\"project-submissions-datatable\"\n class=\"py-0\"\n />\n </v-tab-item>\n\n <v-tab data-test=\"project-details-tab\">\n Metadata\n </v-tab>\n <v-tab-item>\n <model-fields\n :fields=\"projectFields\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"isJiraActive\"\n data-test=\"project-jira-tab\"\n @click=\"onJiraSelected\"\n >Jira</v-tab>\n <v-tab-item v-if=\"isJiraActive\">\n <jira-integration :project=\"projectId\" />\n </v-tab-item>\n </template>\n </base-tabs>\n </v-card>\n </template>\n </base-panel>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseTabs from '@/components/base/BaseTabs.vue'\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport BaseDashboard from '@/components/dashboard/BaseDashboard'\nimport DataTable from '@/components/table/DataTable.vue'\nimport JiraIntegration from '@/components/projects/JiraIntegration.vue'\nimport ModelField from '@/components/fields/ModelField'\nimport ModelFields from '@/components/fields/ModelFields'\nimport ParticipantsField from '@/components/fields/ParticipantsField'\nimport TagsField from '@/components/fields/TagsField'\nimport SharingSettings from '@/components/projects/SharingSettings'\n\nimport rules from '@/utils/rules'\nimport { ADD_NEW_SUBMISSION, UPDATE_PROJECT } from '@/store/actions/modals'\nimport { projectFields, projectBasicFields } from '@/utils/fields'\nimport { getRecordsCount } from '@/utils/api'\nimport { experimentFigures, analysisFigures } from '@/utils/graphs'\nimport { camelifyKeys, snakifyKeys } from '@/utils/helpers'\nimport { updateRecord } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\n\nexport default {\n name: 'ProjectPanel',\n components: {\n BasePanel,\n BaseModal,\n BaseSectionTitle,\n DataTable,\n BaseDashboard,\n ModelField,\n ModelFields,\n JiraIntegration,\n ParticipantsField,\n TagsField,\n BaseTabs,\n SharingSettings,\n },\n data() {\n return {\n experimentsCount: null,\n editingTitle: false,\n failedAnalyses: 0,\n fields: [projectBasicFields, projectFields],\n fieldLoading: false,\n isJiraActive: this.$settings.jira,\n loading: false,\n project: {},\n showDetails: false,\n projectBasicFields,\n projectFields,\n rules,\n experimentFigures: experimentFigures(),\n analysisFigures: analysisFigures(),\n showExperimentTables: true,\n showAnalysesTables: true,\n showSharingModal: false,\n camelifyKeys,\n }\n },\n computed: {\n ...mapGetters({\n projectId: 'projectId',\n user: 'getProfile'\n }),\n params() {\n return { projects__pk: this.projectId }\n },\n paramsSubmissions() {\n return { projects__pk: this.projectId, processed__isnull: 'False' }\n },\n paramsProjectLevelAnalyses() {\n return { project_level_analysis: this.projectId }\n },\n projectSummary() {\n let { project } = this\n let result = []\n const keys = ['species', 'source_types', 'analytes', 'methods']\n keys.forEach((key) => {\n if ('data' in project && key in project.data) {\n Object.keys(project.data[key]).forEach((field) => {\n result.push(`${field} ` + project.data[key][field])\n })\n }\n })\n return result.join(' - ')\n },\n executiveSummary() {\n return this.$get(this.project, 'data.executive_summary', '')\n },\n showTab() {\n return this.experimentsCount !== 0\n },\n favoriteInfo() {\n return {\n key: this.project.pk,\n model: 'project',\n panel: 'project',\n title: 'Project',\n }\n },\n },\n watch: {\n projectId() {\n this.fetchProject()\n },\n project(value) {\n this.$store.dispatch(UPDATE_PROJECT, {\n value,\n })\n this.updateMetrics()\n },\n },\n created() {\n this.fetchProject()\n },\n methods: {\n async updateMetrics() {\n this.experimentsCount = await getRecordsCount('experiments', {\n projects: this.projectId,\n })\n this.failedAnalyses = await getRecordsCount('analyses', {\n projects: this.projectId,\n status: 'FAILED',\n distinct: true,\n })\n },\n fetchProject() {\n this.$fetchModel('project')\n },\n updateValue(data) {\n this.$updateField('project', data)\n this.editingTitle = false\n },\n openDrive(driveId) {\n window.open(`https://drive.google.com/drive/folders/${driveId}`)\n },\n addNewSubmission() {\n this.$store.dispatch(ADD_NEW_SUBMISSION)\n },\n toggleExperimentsView() {\n this.showExperimentTables = !this.showExperimentTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showExperimentTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'experiments', panel: 'project' }\n )\n },\n toggleAnalysesView() {\n this.showAnalysesTables = !this.showAnalysesTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showAnalysesTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'analyses', panel: 'project' }\n )\n },\n onJiraSelected() {\n // Track analytics of when user uses the Jira Project Details\n window.analytics.track('Opened Jira Tab', {\n project: this.projectId,\n })\n },\n async updateSharing(data) {\n if (Object.keys(data).length) {\n const sharing = {\n ...this.project.sharing,\n ...snakifyKeys(data)\n }\n\n updateRecord('projects', this.projectId, { sharing })\n .then(response => {\n this.project = response\n })\n .catch((error) => {\n this.$store.dispatch(SHOW_ALERT, {\n error: this.$get(error, 'response.data.detail')\n })\n })\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\n.group-tag {\n background-color: #efe9ff !important;\n color: #3a74a3 !important;\n}\nbutton.v-btn--floating.very-small {\n height: 30px;\n width: 30px;\n}\n</style>\n"]
300166
300297
  },
300167
300298
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
300168
- hash: "1e22e790071acd7bfbdf163062b392d0ac39bb05"
300299
+ hash: "6089d7320d2d7d63cef3b1d2121845b4a705585f"
300169
300300
  };
300170
300301
  var coverage = global[gcv] || (global[gcv] = {});
300171
300302
 
@@ -300552,6 +300683,10 @@ function ProjectPanelvue_type_script_lang_js_defineProperty(obj, key, value) { i
300552
300683
  //
300553
300684
  //
300554
300685
  //
300686
+ //
300687
+ //
300688
+ //
300689
+ //
300555
300690
 
300556
300691
 
300557
300692
 
@@ -300868,8 +301003,8 @@ var ProjectPanelvue_type_style_index_0_lang_scss_ = __webpack_require__("e84f");
300868
301003
 
300869
301004
  var ProjectPanel_component = normalizeComponent(
300870
301005
  projects_ProjectPanelvue_type_script_lang_js_,
300871
- ProjectPanelvue_type_template_id_037ff296_render,
300872
- ProjectPanelvue_type_template_id_037ff296_staticRenderFns,
301006
+ ProjectPanelvue_type_template_id_c79ead1c_render,
301007
+ ProjectPanelvue_type_template_id_c79ead1c_staticRenderFns,
300873
301008
  false,
300874
301009
  null,
300875
301010
  null,