@papaemmelab/isabl-web 0.3.20 → 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.20\",\"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=8db07d96&
222927
- var NewProjectModalvue_type_template_id_8db07d96_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_8db07d96_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=8db07d96&
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 = "9065b65484d9dda2d79190551ed5f04b8da2c2ab";
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,276 +226405,296 @@ 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,
226413
+ line: 248,
226414
+ column: 10
226415
+ },
226416
+ end: {
226417
+ line: 248,
226418
+ column: 94
226419
+ }
226420
+ },
226421
+ "20": {
226422
+ start: {
226423
+ line: 249,
226424
+ column: 10
226425
+ },
226426
+ end: {
226427
+ line: 249,
226428
+ column: 95
226429
+ }
226430
+ },
226431
+ "21": {
226432
+ start: {
226433
+ line: 254,
226302
226434
  column: 6
226303
226435
  },
226304
226436
  end: {
226305
- line: 255,
226437
+ line: 257,
226306
226438
  column: 7
226307
226439
  }
226308
226440
  },
226309
- "20": {
226441
+ "22": {
226310
226442
  start: {
226311
- line: 253,
226443
+ line: 255,
226312
226444
  column: 25
226313
226445
  },
226314
226446
  end: {
226315
- line: 253,
226447
+ line: 255,
226316
226448
  column: 57
226317
226449
  }
226318
226450
  },
226319
- "21": {
226451
+ "23": {
226320
226452
  start: {
226321
- line: 254,
226453
+ line: 256,
226322
226454
  column: 8
226323
226455
  },
226324
226456
  end: {
226325
- line: 254,
226457
+ line: 256,
226326
226458
  column: 38
226327
226459
  }
226328
226460
  },
226329
- "22": {
226461
+ "24": {
226330
226462
  start: {
226331
- line: 258,
226463
+ line: 260,
226332
226464
  column: 6
226333
226465
  },
226334
226466
  end: {
226335
- line: 258,
226467
+ line: 260,
226336
226468
  column: 56
226337
226469
  }
226338
226470
  },
226339
- "23": {
226471
+ "25": {
226340
226472
  start: {
226341
- line: 259,
226473
+ line: 261,
226342
226474
  column: 6
226343
226475
  },
226344
226476
  end: {
226345
- line: 259,
226477
+ line: 261,
226346
226478
  column: 44
226347
226479
  }
226348
226480
  },
226349
- "24": {
226481
+ "26": {
226350
226482
  start: {
226351
- line: 260,
226483
+ line: 262,
226352
226484
  column: 6
226353
226485
  },
226354
226486
  end: {
226355
- line: 260,
226487
+ line: 262,
226356
226488
  column: 54
226357
226489
  }
226358
226490
  },
226359
- "25": {
226491
+ "27": {
226360
226492
  start: {
226361
- line: 263,
226493
+ line: 265,
226362
226494
  column: 6
226363
226495
  },
226364
226496
  end: {
226365
- line: 263,
226497
+ line: 265,
226366
226498
  column: 32
226367
226499
  }
226368
226500
  },
226369
- "26": {
226501
+ "28": {
226370
226502
  start: {
226371
- line: 264,
226503
+ line: 266,
226372
226504
  column: 6
226373
226505
  },
226374
226506
  end: {
226375
- line: 264,
226507
+ line: 266,
226376
226508
  column: 58
226377
226509
  }
226378
226510
  },
226379
- "27": {
226511
+ "29": {
226380
226512
  start: {
226381
- line: 264,
226513
+ line: 266,
226382
226514
  column: 46
226383
226515
  },
226384
226516
  end: {
226385
- line: 264,
226517
+ line: 266,
226386
226518
  column: 57
226387
226519
  }
226388
226520
  },
226389
- "28": {
226521
+ "30": {
226390
226522
  start: {
226391
- line: 267,
226523
+ line: 269,
226392
226524
  column: 6
226393
226525
  },
226394
226526
  end: {
226395
- line: 267,
226527
+ line: 269,
226396
226528
  column: 22
226397
226529
  }
226398
226530
  },
226399
- "29": {
226531
+ "31": {
226400
226532
  start: {
226401
- line: 268,
226533
+ line: 270,
226402
226534
  column: 6
226403
226535
  },
226404
226536
  end: {
226405
- line: 268,
226537
+ line: 270,
226406
226538
  column: 31
226407
226539
  }
226408
226540
  },
226409
- "30": {
226541
+ "32": {
226410
226542
  start: {
226411
- line: 271,
226543
+ line: 273,
226412
226544
  column: 6
226413
226545
  },
226414
226546
  end: {
226415
- line: 274,
226547
+ line: 276,
226416
226548
  column: 7
226417
226549
  }
226418
226550
  },
226419
- "31": {
226551
+ "33": {
226420
226552
  start: {
226421
- line: 277,
226553
+ line: 279,
226422
226554
  column: 6
226423
226555
  },
226424
226556
  end: {
226425
- line: 280,
226557
+ line: 282,
226426
226558
  column: 7
226427
226559
  }
226428
226560
  },
226429
- "32": {
226561
+ "34": {
226430
226562
  start: {
226431
- line: 281,
226563
+ line: 283,
226432
226564
  column: 6
226433
226565
  },
226434
226566
  end: {
226435
- line: 284,
226567
+ line: 286,
226436
226568
  column: 7
226437
226569
  }
226438
226570
  },
226439
- "33": {
226571
+ "35": {
226440
226572
  start: {
226441
- line: 287,
226573
+ line: 289,
226442
226574
  column: 6
226443
226575
  },
226444
226576
  end: {
226445
- line: 287,
226577
+ line: 289,
226446
226578
  column: 32
226447
226579
  }
226448
226580
  },
226449
- "34": {
226581
+ "36": {
226450
226582
  start: {
226451
- line: 288,
226583
+ line: 290,
226452
226584
  column: 6
226453
226585
  },
226454
226586
  end: {
226455
- line: 288,
226587
+ line: 290,
226456
226588
  column: 28
226457
226589
  }
226458
226590
  },
226459
- "35": {
226591
+ "37": {
226460
226592
  start: {
226461
- line: 289,
226593
+ line: 291,
226462
226594
  column: 6
226463
226595
  },
226464
226596
  end: {
226465
- line: 289,
226597
+ line: 291,
226466
226598
  column: 65
226467
226599
  }
226468
226600
  },
226469
- "36": {
226601
+ "38": {
226470
226602
  start: {
226471
- line: 289,
226603
+ line: 291,
226472
226604
  column: 46
226473
226605
  },
226474
226606
  end: {
226475
- line: 289,
226607
+ line: 291,
226476
226608
  column: 64
226477
226609
  }
226478
226610
  },
226479
- "37": {
226611
+ "39": {
226480
226612
  start: {
226481
- line: 291,
226613
+ line: 293,
226482
226614
  column: 6
226483
226615
  },
226484
226616
  end: {
226485
- line: 312,
226617
+ line: 314,
226486
226618
  column: 7
226487
226619
  }
226488
226620
  },
226489
- "38": {
226621
+ "40": {
226490
226622
  start: {
226491
- line: 292,
226623
+ line: 294,
226492
226624
  column: 8
226493
226625
  },
226494
226626
  end: {
226495
- line: 311,
226627
+ line: 313,
226496
226628
  column: 12
226497
226629
  }
226498
226630
  },
226499
- "39": {
226631
+ "41": {
226500
226632
  start: {
226501
- line: 294,
226633
+ line: 296,
226502
226634
  column: 30
226503
226635
  },
226504
226636
  end: {
226505
- line: 294,
226637
+ line: 296,
226506
226638
  column: 59
226507
226639
  }
226508
226640
  },
226509
- "40": {
226641
+ "42": {
226510
226642
  start: {
226511
- line: 295,
226643
+ line: 297,
226512
226644
  column: 12
226513
226645
  },
226514
226646
  end: {
226515
- line: 297,
226647
+ line: 299,
226516
226648
  column: 14
226517
226649
  }
226518
226650
  },
226519
- "41": {
226651
+ "43": {
226520
226652
  start: {
226521
- line: 299,
226653
+ line: 301,
226522
226654
  column: 12
226523
226655
  },
226524
226656
  end: {
226525
- line: 301,
226657
+ line: 303,
226526
226658
  column: 14
226527
226659
  }
226528
226660
  },
226529
- "42": {
226661
+ "44": {
226530
226662
  start: {
226531
- line: 302,
226663
+ line: 304,
226532
226664
  column: 12
226533
226665
  },
226534
226666
  end: {
226535
- line: 302,
226667
+ line: 304,
226536
226668
  column: 29
226537
226669
  }
226538
226670
  },
226539
- "43": {
226671
+ "45": {
226540
226672
  start: {
226541
- line: 305,
226673
+ line: 307,
226542
226674
  column: 12
226543
226675
  },
226544
226676
  end: {
226545
- line: 310,
226677
+ line: 312,
226546
226678
  column: 13
226547
226679
  }
226548
226680
  },
226549
- "44": {
226681
+ "46": {
226550
226682
  start: {
226551
- line: 306,
226683
+ line: 308,
226552
226684
  column: 14
226553
226685
  },
226554
226686
  end: {
226555
- line: 306,
226687
+ line: 308,
226556
226688
  column: 54
226557
226689
  }
226558
226690
  },
226559
- "45": {
226691
+ "47": {
226560
226692
  start: {
226561
- line: 307,
226693
+ line: 309,
226562
226694
  column: 14
226563
226695
  },
226564
226696
  end: {
226565
- line: 309,
226697
+ line: 311,
226566
226698
  column: 16
226567
226699
  }
226568
226700
  }
@@ -226610,7 +226742,7 @@ var cov_2q2n13agp2 = function () {
226610
226742
  column: 9
226611
226743
  },
226612
226744
  end: {
226613
- line: 218,
226745
+ line: 220,
226614
226746
  column: 3
226615
226747
  }
226616
226748
  },
@@ -226620,660 +226752,660 @@ var cov_2q2n13agp2 = function () {
226620
226752
  name: "(anonymous_2)",
226621
226753
  decl: {
226622
226754
  start: {
226623
- line: 220,
226755
+ line: 222,
226624
226756
  column: 4
226625
226757
  },
226626
226758
  end: {
226627
- line: 220,
226759
+ line: 222,
226628
226760
  column: 5
226629
226761
  }
226630
226762
  },
226631
226763
  loc: {
226632
226764
  start: {
226633
- line: 220,
226765
+ line: 222,
226634
226766
  column: 21
226635
226767
  },
226636
226768
  end: {
226637
- line: 229,
226769
+ line: 231,
226638
226770
  column: 5
226639
226771
  }
226640
226772
  },
226641
- line: 220
226773
+ line: 222
226642
226774
  },
226643
226775
  "3": {
226644
226776
  name: "(anonymous_3)",
226645
226777
  decl: {
226646
226778
  start: {
226647
- line: 231,
226779
+ line: 233,
226648
226780
  column: 2
226649
226781
  },
226650
226782
  end: {
226651
- line: 231,
226783
+ line: 233,
226652
226784
  column: 3
226653
226785
  }
226654
226786
  },
226655
226787
  loc: {
226656
226788
  start: {
226657
- line: 231,
226789
+ line: 233,
226658
226790
  column: 12
226659
226791
  },
226660
226792
  end: {
226661
- line: 233,
226793
+ line: 235,
226662
226794
  column: 3
226663
226795
  }
226664
226796
  },
226665
- line: 231
226797
+ line: 233
226666
226798
  },
226667
226799
  "4": {
226668
226800
  name: "(anonymous_4)",
226669
226801
  decl: {
226670
226802
  start: {
226671
- line: 235,
226803
+ line: 237,
226672
226804
  column: 4
226673
226805
  },
226674
226806
  end: {
226675
- line: 235,
226807
+ line: 237,
226676
226808
  column: 5
226677
226809
  }
226678
226810
  },
226679
226811
  loc: {
226680
226812
  start: {
226681
- line: 235,
226813
+ line: 237,
226682
226814
  column: 22
226683
226815
  },
226684
226816
  end: {
226685
- line: 250,
226817
+ line: 252,
226686
226818
  column: 5
226687
226819
  }
226688
226820
  },
226689
- line: 235
226821
+ line: 237
226690
226822
  },
226691
226823
  "5": {
226692
226824
  name: "(anonymous_5)",
226693
226825
  decl: {
226694
226826
  start: {
226695
- line: 237,
226827
+ line: 239,
226696
226828
  column: 36
226697
226829
  },
226698
226830
  end: {
226699
- line: 237,
226831
+ line: 239,
226700
226832
  column: 37
226701
226833
  }
226702
226834
  },
226703
226835
  loc: {
226704
226836
  start: {
226705
- line: 237,
226837
+ line: 239,
226706
226838
  column: 45
226707
226839
  },
226708
226840
  end: {
226709
- line: 249,
226841
+ line: 251,
226710
226842
  column: 7
226711
226843
  }
226712
226844
  },
226713
- line: 237
226845
+ line: 239
226714
226846
  },
226715
226847
  "6": {
226716
226848
  name: "(anonymous_6)",
226717
226849
  decl: {
226718
226850
  start: {
226719
- line: 251,
226851
+ line: 253,
226720
226852
  column: 4
226721
226853
  },
226722
226854
  end: {
226723
- line: 251,
226855
+ line: 253,
226724
226856
  column: 5
226725
226857
  }
226726
226858
  },
226727
226859
  loc: {
226728
226860
  start: {
226729
- line: 251,
226861
+ line: 253,
226730
226862
  column: 24
226731
226863
  },
226732
226864
  end: {
226733
- line: 256,
226865
+ line: 258,
226734
226866
  column: 5
226735
226867
  }
226736
226868
  },
226737
- line: 251
226869
+ line: 253
226738
226870
  },
226739
226871
  "7": {
226740
226872
  name: "(anonymous_7)",
226741
226873
  decl: {
226742
226874
  start: {
226743
- line: 257,
226875
+ line: 259,
226744
226876
  column: 4
226745
226877
  },
226746
226878
  end: {
226747
- line: 257,
226879
+ line: 259,
226748
226880
  column: 5
226749
226881
  }
226750
226882
  },
226751
226883
  loc: {
226752
226884
  start: {
226753
- line: 257,
226885
+ line: 259,
226754
226886
  column: 27
226755
226887
  },
226756
226888
  end: {
226757
- line: 261,
226889
+ line: 263,
226758
226890
  column: 5
226759
226891
  }
226760
226892
  },
226761
- line: 257
226893
+ line: 259
226762
226894
  },
226763
226895
  "8": {
226764
226896
  name: "(anonymous_8)",
226765
226897
  decl: {
226766
226898
  start: {
226767
- line: 262,
226899
+ line: 264,
226768
226900
  column: 4
226769
226901
  },
226770
226902
  end: {
226771
- line: 262,
226903
+ line: 264,
226772
226904
  column: 5
226773
226905
  }
226774
226906
  },
226775
226907
  loc: {
226776
226908
  start: {
226777
- line: 262,
226909
+ line: 264,
226778
226910
  column: 16
226779
226911
  },
226780
226912
  end: {
226781
- line: 265,
226913
+ line: 267,
226782
226914
  column: 5
226783
226915
  }
226784
226916
  },
226785
- line: 262
226917
+ line: 264
226786
226918
  },
226787
226919
  "9": {
226788
226920
  name: "(anonymous_9)",
226789
226921
  decl: {
226790
226922
  start: {
226791
- line: 264,
226923
+ line: 266,
226792
226924
  column: 39
226793
226925
  },
226794
226926
  end: {
226795
- line: 264,
226927
+ line: 266,
226796
226928
  column: 40
226797
226929
  }
226798
226930
  },
226799
226931
  loc: {
226800
226932
  start: {
226801
- line: 264,
226933
+ line: 266,
226802
226934
  column: 46
226803
226935
  },
226804
226936
  end: {
226805
- line: 264,
226937
+ line: 266,
226806
226938
  column: 57
226807
226939
  }
226808
226940
  },
226809
- line: 264
226941
+ line: 266
226810
226942
  },
226811
226943
  "10": {
226812
226944
  name: "(anonymous_10)",
226813
226945
  decl: {
226814
226946
  start: {
226815
- line: 266,
226947
+ line: 268,
226816
226948
  column: 4
226817
226949
  },
226818
226950
  end: {
226819
- line: 266,
226951
+ line: 268,
226820
226952
  column: 5
226821
226953
  }
226822
226954
  },
226823
226955
  loc: {
226824
226956
  start: {
226825
- line: 266,
226957
+ line: 268,
226826
226958
  column: 17
226827
226959
  },
226828
226960
  end: {
226829
- line: 269,
226961
+ line: 271,
226830
226962
  column: 5
226831
226963
  }
226832
226964
  },
226833
- line: 266
226965
+ line: 268
226834
226966
  },
226835
226967
  "11": {
226836
226968
  name: "(anonymous_11)",
226837
226969
  decl: {
226838
226970
  start: {
226839
- line: 270,
226971
+ line: 272,
226840
226972
  column: 4
226841
226973
  },
226842
226974
  end: {
226843
- line: 270,
226975
+ line: 272,
226844
226976
  column: 5
226845
226977
  }
226846
226978
  },
226847
226979
  loc: {
226848
226980
  start: {
226849
- line: 270,
226981
+ line: 272,
226850
226982
  column: 22
226851
226983
  },
226852
226984
  end: {
226853
- line: 275,
226985
+ line: 277,
226854
226986
  column: 5
226855
226987
  }
226856
226988
  },
226857
- line: 270
226989
+ line: 272
226858
226990
  },
226859
226991
  "12": {
226860
226992
  name: "(anonymous_12)",
226861
226993
  decl: {
226862
226994
  start: {
226863
- line: 276,
226995
+ line: 278,
226864
226996
  column: 4
226865
226997
  },
226866
226998
  end: {
226867
- line: 276,
226999
+ line: 278,
226868
227000
  column: 5
226869
227001
  }
226870
227002
  },
226871
227003
  loc: {
226872
227004
  start: {
226873
- line: 276,
227005
+ line: 278,
226874
227006
  column: 24
226875
227007
  },
226876
227008
  end: {
226877
- line: 285,
227009
+ line: 287,
226878
227010
  column: 5
226879
227011
  }
226880
227012
  },
226881
- line: 276
227013
+ line: 278
226882
227014
  },
226883
227015
  "13": {
226884
227016
  name: "(anonymous_13)",
226885
227017
  decl: {
226886
227018
  start: {
226887
- line: 286,
227019
+ line: 288,
226888
227020
  column: 4
226889
227021
  },
226890
227022
  end: {
226891
- line: 286,
227023
+ line: 288,
226892
227024
  column: 5
226893
227025
  }
226894
227026
  },
226895
227027
  loc: {
226896
227028
  start: {
226897
- line: 286,
227029
+ line: 288,
226898
227030
  column: 19
226899
227031
  },
226900
227032
  end: {
226901
- line: 313,
227033
+ line: 315,
226902
227034
  column: 5
226903
227035
  }
226904
227036
  },
226905
- line: 286
227037
+ line: 288
226906
227038
  },
226907
227039
  "14": {
226908
227040
  name: "(anonymous_14)",
226909
227041
  decl: {
226910
227042
  start: {
226911
- line: 289,
227043
+ line: 291,
226912
227044
  column: 39
226913
227045
  },
226914
227046
  end: {
226915
- line: 289,
227047
+ line: 291,
226916
227048
  column: 40
226917
227049
  }
226918
227050
  },
226919
227051
  loc: {
226920
227052
  start: {
226921
- line: 289,
227053
+ line: 291,
226922
227054
  column: 46
226923
227055
  },
226924
227056
  end: {
226925
- line: 289,
227057
+ line: 291,
226926
227058
  column: 64
226927
227059
  }
226928
227060
  },
226929
- line: 289
227061
+ line: 291
226930
227062
  },
226931
227063
  "15": {
226932
227064
  name: "(anonymous_15)",
226933
227065
  decl: {
226934
227066
  start: {
226935
- line: 293,
227067
+ line: 295,
226936
227068
  column: 16
226937
227069
  },
226938
227070
  end: {
226939
- line: 293,
227071
+ line: 295,
226940
227072
  column: 17
226941
227073
  }
226942
227074
  },
226943
227075
  loc: {
226944
227076
  start: {
226945
- line: 293,
227077
+ line: 295,
226946
227078
  column: 28
226947
227079
  },
226948
227080
  end: {
226949
- line: 303,
227081
+ line: 305,
226950
227082
  column: 11
226951
227083
  }
226952
227084
  },
226953
- line: 293
227085
+ line: 295
226954
227086
  },
226955
227087
  "16": {
226956
227088
  name: "(anonymous_16)",
226957
227089
  decl: {
226958
227090
  start: {
226959
- line: 304,
227091
+ line: 306,
226960
227092
  column: 17
226961
227093
  },
226962
227094
  end: {
226963
- line: 304,
227095
+ line: 306,
226964
227096
  column: 18
226965
227097
  }
226966
227098
  },
226967
227099
  loc: {
226968
227100
  start: {
226969
- line: 304,
227101
+ line: 306,
226970
227102
  column: 26
226971
227103
  },
226972
227104
  end: {
226973
- line: 311,
227105
+ line: 313,
226974
227106
  column: 11
226975
227107
  }
226976
227108
  },
226977
- line: 304
227109
+ line: 306
226978
227110
  }
226979
227111
  },
226980
227112
  branchMap: {
226981
227113
  "0": {
226982
227114
  loc: {
226983
227115
  start: {
226984
- line: 221,
227116
+ line: 223,
226985
227117
  column: 6
226986
227118
  },
226987
227119
  end: {
226988
- line: 228,
227120
+ line: 230,
226989
227121
  column: 7
226990
227122
  }
226991
227123
  },
226992
227124
  type: "if",
226993
227125
  locations: [{
226994
227126
  start: {
226995
- line: 221,
227127
+ line: 223,
226996
227128
  column: 6
226997
227129
  },
226998
227130
  end: {
226999
- line: 228,
227131
+ line: 230,
227000
227132
  column: 7
227001
227133
  }
227002
227134
  }, {
227003
227135
  start: {
227004
- line: 221,
227136
+ line: 223,
227005
227137
  column: 6
227006
227138
  },
227007
227139
  end: {
227008
- line: 228,
227140
+ line: 230,
227009
227141
  column: 7
227010
227142
  }
227011
227143
  }],
227012
- line: 221
227144
+ line: 223
227013
227145
  },
227014
227146
  "1": {
227015
227147
  loc: {
227016
227148
  start: {
227017
- line: 224,
227149
+ line: 226,
227018
227150
  column: 8
227019
227151
  },
227020
227152
  end: {
227021
- line: 227,
227153
+ line: 229,
227022
227154
  column: 9
227023
227155
  }
227024
227156
  },
227025
227157
  type: "if",
227026
227158
  locations: [{
227027
227159
  start: {
227028
- line: 224,
227160
+ line: 226,
227029
227161
  column: 8
227030
227162
  },
227031
227163
  end: {
227032
- line: 227,
227164
+ line: 229,
227033
227165
  column: 9
227034
227166
  }
227035
227167
  }, {
227036
227168
  start: {
227037
- line: 224,
227169
+ line: 226,
227038
227170
  column: 8
227039
227171
  },
227040
227172
  end: {
227041
- line: 227,
227173
+ line: 229,
227042
227174
  column: 9
227043
227175
  }
227044
227176
  }],
227045
- line: 224
227177
+ line: 226
227046
227178
  },
227047
227179
  "2": {
227048
227180
  loc: {
227049
227181
  start: {
227050
- line: 238,
227182
+ line: 240,
227051
227183
  column: 8
227052
227184
  },
227053
227185
  end: {
227054
- line: 248,
227186
+ line: 250,
227055
227187
  column: 9
227056
227188
  }
227057
227189
  },
227058
227190
  type: "if",
227059
227191
  locations: [{
227060
227192
  start: {
227061
- line: 238,
227193
+ line: 240,
227062
227194
  column: 8
227063
227195
  },
227064
227196
  end: {
227065
- line: 248,
227197
+ line: 250,
227066
227198
  column: 9
227067
227199
  }
227068
227200
  }, {
227069
227201
  start: {
227070
- line: 238,
227202
+ line: 240,
227071
227203
  column: 8
227072
227204
  },
227073
227205
  end: {
227074
- line: 248,
227206
+ line: 250,
227075
227207
  column: 9
227076
227208
  }
227077
227209
  }],
227078
- line: 238
227210
+ line: 240
227079
227211
  },
227080
227212
  "3": {
227081
227213
  loc: {
227082
227214
  start: {
227083
- line: 240,
227215
+ line: 242,
227084
227216
  column: 15
227085
227217
  },
227086
227218
  end: {
227087
- line: 248,
227219
+ line: 250,
227088
227220
  column: 9
227089
227221
  }
227090
227222
  },
227091
227223
  type: "if",
227092
227224
  locations: [{
227093
227225
  start: {
227094
- line: 240,
227226
+ line: 242,
227095
227227
  column: 15
227096
227228
  },
227097
227229
  end: {
227098
- line: 248,
227230
+ line: 250,
227099
227231
  column: 9
227100
227232
  }
227101
227233
  }, {
227102
227234
  start: {
227103
- line: 240,
227235
+ line: 242,
227104
227236
  column: 15
227105
227237
  },
227106
227238
  end: {
227107
- line: 248,
227239
+ line: 250,
227108
227240
  column: 9
227109
227241
  }
227110
227242
  }],
227111
- line: 240
227243
+ line: 242
227112
227244
  },
227113
227245
  "4": {
227114
227246
  loc: {
227115
227247
  start: {
227116
- line: 242,
227248
+ line: 244,
227117
227249
  column: 15
227118
227250
  },
227119
227251
  end: {
227120
- line: 248,
227252
+ line: 250,
227121
227253
  column: 9
227122
227254
  }
227123
227255
  },
227124
227256
  type: "if",
227125
227257
  locations: [{
227126
227258
  start: {
227127
- line: 242,
227259
+ line: 244,
227128
227260
  column: 15
227129
227261
  },
227130
227262
  end: {
227131
- line: 248,
227263
+ line: 250,
227132
227264
  column: 9
227133
227265
  }
227134
227266
  }, {
227135
227267
  start: {
227136
- line: 242,
227268
+ line: 244,
227137
227269
  column: 15
227138
227270
  },
227139
227271
  end: {
227140
- line: 248,
227272
+ line: 250,
227141
227273
  column: 9
227142
227274
  }
227143
227275
  }],
227144
- line: 242
227276
+ line: 244
227145
227277
  },
227146
227278
  "5": {
227147
227279
  loc: {
227148
227280
  start: {
227149
- line: 244,
227281
+ line: 246,
227150
227282
  column: 15
227151
227283
  },
227152
227284
  end: {
227153
- line: 248,
227285
+ line: 250,
227154
227286
  column: 9
227155
227287
  }
227156
227288
  },
227157
227289
  type: "if",
227158
227290
  locations: [{
227159
227291
  start: {
227160
- line: 244,
227292
+ line: 246,
227161
227293
  column: 15
227162
227294
  },
227163
227295
  end: {
227164
- line: 248,
227296
+ line: 250,
227165
227297
  column: 9
227166
227298
  }
227167
227299
  }, {
227168
227300
  start: {
227169
- line: 244,
227301
+ line: 246,
227170
227302
  column: 15
227171
227303
  },
227172
227304
  end: {
227173
- line: 248,
227305
+ line: 250,
227174
227306
  column: 9
227175
227307
  }
227176
227308
  }],
227177
- line: 244
227309
+ line: 246
227178
227310
  },
227179
227311
  "6": {
227180
227312
  loc: {
227181
227313
  start: {
227182
- line: 252,
227314
+ line: 254,
227183
227315
  column: 6
227184
227316
  },
227185
227317
  end: {
227186
- line: 255,
227318
+ line: 257,
227187
227319
  column: 7
227188
227320
  }
227189
227321
  },
227190
227322
  type: "if",
227191
227323
  locations: [{
227192
227324
  start: {
227193
- line: 252,
227325
+ line: 254,
227194
227326
  column: 6
227195
227327
  },
227196
227328
  end: {
227197
- line: 255,
227329
+ line: 257,
227198
227330
  column: 7
227199
227331
  }
227200
227332
  }, {
227201
227333
  start: {
227202
- line: 252,
227334
+ line: 254,
227203
227335
  column: 6
227204
227336
  },
227205
227337
  end: {
227206
- line: 255,
227338
+ line: 257,
227207
227339
  column: 7
227208
227340
  }
227209
227341
  }],
227210
- line: 252
227342
+ line: 254
227211
227343
  },
227212
227344
  "7": {
227213
227345
  loc: {
227214
227346
  start: {
227215
- line: 291,
227347
+ line: 293,
227216
227348
  column: 6
227217
227349
  },
227218
227350
  end: {
227219
- line: 312,
227351
+ line: 314,
227220
227352
  column: 7
227221
227353
  }
227222
227354
  },
227223
227355
  type: "if",
227224
227356
  locations: [{
227225
227357
  start: {
227226
- line: 291,
227358
+ line: 293,
227227
227359
  column: 6
227228
227360
  },
227229
227361
  end: {
227230
- line: 312,
227362
+ line: 314,
227231
227363
  column: 7
227232
227364
  }
227233
227365
  }, {
227234
227366
  start: {
227235
- line: 291,
227367
+ line: 293,
227236
227368
  column: 6
227237
227369
  },
227238
227370
  end: {
227239
- line: 312,
227371
+ line: 314,
227240
227372
  column: 7
227241
227373
  }
227242
227374
  }],
227243
- line: 291
227375
+ line: 293
227244
227376
  },
227245
227377
  "8": {
227246
227378
  loc: {
227247
227379
  start: {
227248
- line: 305,
227380
+ line: 307,
227249
227381
  column: 12
227250
227382
  },
227251
227383
  end: {
227252
- line: 310,
227384
+ line: 312,
227253
227385
  column: 13
227254
227386
  }
227255
227387
  },
227256
227388
  type: "if",
227257
227389
  locations: [{
227258
227390
  start: {
227259
- line: 305,
227391
+ line: 307,
227260
227392
  column: 12
227261
227393
  },
227262
227394
  end: {
227263
- line: 310,
227395
+ line: 312,
227264
227396
  column: 13
227265
227397
  }
227266
227398
  }, {
227267
227399
  start: {
227268
- line: 305,
227400
+ line: 307,
227269
227401
  column: 12
227270
227402
  },
227271
227403
  end: {
227272
- line: 310,
227404
+ line: 312,
227273
227405
  column: 13
227274
227406
  }
227275
227407
  }],
227276
- line: 305
227408
+ line: 307
227277
227409
  }
227278
227410
  },
227279
227411
  s: {
@@ -227322,7 +227454,9 @@ var cov_2q2n13agp2 = function () {
227322
227454
  "42": 0,
227323
227455
  "43": 0,
227324
227456
  "44": 0,
227325
- "45": 0
227457
+ "45": 0,
227458
+ "46": 0,
227459
+ "47": 0
227326
227460
  },
227327
227461
  f: {
227328
227462
  "0": 0,
@@ -227358,13 +227492,13 @@ var cov_2q2n13agp2 = function () {
227358
227492
  version: 3,
227359
227493
  sources: ["NewProjectModal.vue"],
227360
227494
  names: [],
227361
- 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;;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",
227362
227496
  file: "NewProjectModal.vue",
227363
227497
  sourceRoot: "src/components/projects",
227364
- 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 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"]
227365
227499
  },
227366
227500
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
227367
- hash: "9065b65484d9dda2d79190551ed5f04b8da2c2ab"
227501
+ hash: "89acb85815fad1b23ec2d1fd2449b13bff323123"
227368
227502
  };
227369
227503
  var coverage = global[gcv] || (global[gcv] = {});
227370
227504
 
@@ -227582,17 +227716,23 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227582
227716
  },
227583
227717
  data: function data() {
227584
227718
  cov_2q2n13agp2.f[1]++;
227585
- 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]++;
227586
227728
  return {
227587
227729
  isLoading: false,
227588
227730
  errorMessages: {},
227589
227731
  formHasErrors: false,
227590
227732
  fieldsToValidate: ['title', 'shortTitle', 'group', 'principalInvestigator', 'owner', 'coordinator', 'analyst', 'sharing'],
227591
227733
  groups: [],
227592
- project: {},
227593
- sharing: {
227594
- isPublic: true
227595
- },
227734
+ project: project,
227735
+ sharing: sharing,
227596
227736
  refs: {},
227597
227737
  rules: rules,
227598
227738
  showOptionalFields: true,
@@ -227604,20 +227744,20 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227604
227744
  watch: {
227605
227745
  showModal: function showModal(value) {
227606
227746
  cov_2q2n13agp2.f[2]++;
227607
- cov_2q2n13agp2.s[2]++;
227747
+ cov_2q2n13agp2.s[4]++;
227608
227748
 
227609
227749
  if (value) {
227610
227750
  cov_2q2n13agp2.b[0][0]++;
227611
- cov_2q2n13agp2.s[3]++;
227751
+ cov_2q2n13agp2.s[5]++;
227612
227752
  this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
227613
227753
 
227614
- cov_2q2n13agp2.s[4]++;
227754
+ cov_2q2n13agp2.s[6]++;
227615
227755
 
227616
227756
  if (this.$refs.title) {
227617
227757
  cov_2q2n13agp2.b[1][0]++;
227618
- cov_2q2n13agp2.s[5]++;
227758
+ cov_2q2n13agp2.s[7]++;
227619
227759
  this.$nextTick(this.$refs.title.focus);
227620
- cov_2q2n13agp2.s[6]++;
227760
+ cov_2q2n13agp2.s[8]++;
227621
227761
  this.resetForm();
227622
227762
  } else {
227623
227763
  cov_2q2n13agp2.b[1][1]++;
@@ -227629,7 +227769,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227629
227769
  },
227630
227770
  updated: function updated() {
227631
227771
  cov_2q2n13agp2.f[3]++;
227632
- cov_2q2n13agp2.s[7]++;
227772
+ cov_2q2n13agp2.s[9]++;
227633
227773
  this.attachFieldRefs();
227634
227774
  },
227635
227775
  methods: {
@@ -227637,43 +227777,43 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227637
227777
  var _this = this;
227638
227778
 
227639
227779
  cov_2q2n13agp2.f[4]++;
227640
- cov_2q2n13agp2.s[8]++;
227780
+ cov_2q2n13agp2.s[10]++;
227641
227781
  // Map all local and nested inputs to local 'refs' object
227642
227782
  this.fieldsToValidate.forEach(function (field) {
227643
227783
  cov_2q2n13agp2.f[5]++;
227644
- cov_2q2n13agp2.s[9]++;
227784
+ cov_2q2n13agp2.s[11]++;
227645
227785
 
227646
227786
  if (has_default()(_this.$refs[field], 'reset')) {
227647
227787
  cov_2q2n13agp2.b[2][0]++;
227648
- cov_2q2n13agp2.s[10]++;
227788
+ cov_2q2n13agp2.s[12]++;
227649
227789
  _this.refs[field] = _this.$refs[field];
227650
227790
  } else {
227651
227791
  cov_2q2n13agp2.b[2][1]++;
227652
- cov_2q2n13agp2.s[11]++;
227792
+ cov_2q2n13agp2.s[13]++;
227653
227793
 
227654
227794
  if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
227655
227795
  cov_2q2n13agp2.b[3][0]++;
227656
- cov_2q2n13agp2.s[12]++;
227796
+ cov_2q2n13agp2.s[14]++;
227657
227797
  _this.refs[field] = _this.$refs[field].$refs.userSearchInput;
227658
227798
  } else {
227659
227799
  cov_2q2n13agp2.b[3][1]++;
227660
- cov_2q2n13agp2.s[13]++;
227800
+ cov_2q2n13agp2.s[15]++;
227661
227801
 
227662
227802
  if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
227663
227803
  cov_2q2n13agp2.b[4][0]++;
227664
- cov_2q2n13agp2.s[14]++;
227804
+ cov_2q2n13agp2.s[16]++;
227665
227805
  _this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
227666
227806
  } else {
227667
227807
  cov_2q2n13agp2.b[4][1]++;
227668
- cov_2q2n13agp2.s[15]++;
227808
+ cov_2q2n13agp2.s[17]++;
227669
227809
 
227670
227810
  if (has_default()(_this.$refs, "".concat(field, ".$refs.canRead.$refs.userSearchInput.reset"))) {
227671
227811
  cov_2q2n13agp2.b[5][0]++;
227672
- cov_2q2n13agp2.s[16]++;
227812
+ cov_2q2n13agp2.s[18]++;
227673
227813
  _this.refs['sharing.isPublic'] = _this.$refs[field].$refs.isPublic;
227674
- cov_2q2n13agp2.s[17]++;
227814
+ cov_2q2n13agp2.s[19]++;
227675
227815
  _this.refs['sharing.canRead'] = _this.$refs[field].$refs.canRead.$refs.userSearchInput;
227676
- cov_2q2n13agp2.s[18]++;
227816
+ cov_2q2n13agp2.s[20]++;
227677
227817
  _this.refs['sharing.isShare'] = _this.$refs[field].$refs.canShare.$refs.userSearchInput;
227678
227818
  } else {
227679
227819
  cov_2q2n13agp2.b[5][1]++;
@@ -227691,7 +227831,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227691
227831
  switch (_context.prev = _context.next) {
227692
227832
  case 0:
227693
227833
  cov_2q2n13agp2.f[6]++;
227694
- cov_2q2n13agp2.s[19]++;
227834
+ cov_2q2n13agp2.s[21]++;
227695
227835
 
227696
227836
  if (this.groups.length) {
227697
227837
  _context.next = 12;
@@ -227699,13 +227839,13 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227699
227839
  }
227700
227840
 
227701
227841
  cov_2q2n13agp2.b[6][0]++;
227702
- cov_2q2n13agp2.s[20]++;
227842
+ cov_2q2n13agp2.s[22]++;
227703
227843
  _context.next = 7;
227704
227844
  return fetchListRecords('groups');
227705
227845
 
227706
227846
  case 7:
227707
227847
  response = _context.sent;
227708
- cov_2q2n13agp2.s[21]++;
227848
+ cov_2q2n13agp2.s[23]++;
227709
227849
  this.groups = response.results;
227710
227850
  _context.next = 13;
227711
227851
  break;
@@ -227729,41 +227869,41 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227729
227869
  }(),
227730
227870
  toggleOptionalFields: function toggleOptionalFields() {
227731
227871
  cov_2q2n13agp2.f[7]++;
227732
- cov_2q2n13agp2.s[22]++;
227872
+ cov_2q2n13agp2.s[24]++;
227733
227873
  this.showOptionalFields = !this.showOptionalFields;
227734
- cov_2q2n13agp2.s[23]++;
227874
+ cov_2q2n13agp2.s[25]++;
227735
227875
  this.$nextTick(this.$refs.title.focus);
227736
- cov_2q2n13agp2.s[24]++;
227876
+ cov_2q2n13agp2.s[26]++;
227737
227877
  this.$nextTick(this.$refs.title.resetValidation);
227738
227878
  },
227739
227879
  resetForm: function resetForm() {
227740
227880
  cov_2q2n13agp2.f[8]++;
227741
- cov_2q2n13agp2.s[25]++;
227881
+ cov_2q2n13agp2.s[27]++;
227742
227882
  this.formHasErrors = false;
227743
- cov_2q2n13agp2.s[26]++;
227883
+ cov_2q2n13agp2.s[28]++;
227744
227884
  Object.values(this.refs).forEach(function (ref) {
227745
227885
  cov_2q2n13agp2.f[9]++;
227746
- cov_2q2n13agp2.s[27]++;
227886
+ cov_2q2n13agp2.s[29]++;
227747
227887
  return ref.reset();
227748
227888
  });
227749
227889
  },
227750
227890
  closeModal: function closeModal() {
227751
227891
  cov_2q2n13agp2.f[10]++;
227752
- cov_2q2n13agp2.s[28]++;
227892
+ cov_2q2n13agp2.s[30]++;
227753
227893
  this.resetForm();
227754
- cov_2q2n13agp2.s[29]++;
227894
+ cov_2q2n13agp2.s[31]++;
227755
227895
  this.$emit('close-modal');
227756
227896
  },
227757
227897
  updateValue: function updateValue(data) {
227758
227898
  cov_2q2n13agp2.f[11]++;
227759
- cov_2q2n13agp2.s[30]++;
227899
+ cov_2q2n13agp2.s[32]++;
227760
227900
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
227761
227901
  },
227762
227902
  updateSharing: function updateSharing(data) {
227763
227903
  cov_2q2n13agp2.f[12]++;
227764
- cov_2q2n13agp2.s[31]++;
227904
+ cov_2q2n13agp2.s[33]++;
227765
227905
  this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227766
- cov_2q2n13agp2.s[32]++;
227906
+ cov_2q2n13agp2.s[34]++;
227767
227907
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), {}, {
227768
227908
  sharing: Object(helpers["n" /* snakifyKeys */])(this.sharing)
227769
227909
  });
@@ -227777,48 +227917,48 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227777
227917
  switch (_context2.prev = _context2.next) {
227778
227918
  case 0:
227779
227919
  cov_2q2n13agp2.f[13]++;
227780
- cov_2q2n13agp2.s[33]++;
227920
+ cov_2q2n13agp2.s[35]++;
227781
227921
  this.formHasErrors = false;
227782
- cov_2q2n13agp2.s[34]++;
227922
+ cov_2q2n13agp2.s[36]++;
227783
227923
  this.attachFieldRefs();
227784
- cov_2q2n13agp2.s[35]++;
227924
+ cov_2q2n13agp2.s[37]++;
227785
227925
  Object.values(this.refs).forEach(function (ref) {
227786
227926
  cov_2q2n13agp2.f[14]++;
227787
- cov_2q2n13agp2.s[36]++;
227927
+ cov_2q2n13agp2.s[38]++;
227788
227928
  return ref.validate(true);
227789
227929
  });
227790
- cov_2q2n13agp2.s[37]++;
227930
+ cov_2q2n13agp2.s[39]++;
227791
227931
 
227792
227932
  if (!this.formHasErrors) {
227793
227933
  cov_2q2n13agp2.b[7][0]++;
227794
- cov_2q2n13agp2.s[38]++;
227934
+ cov_2q2n13agp2.s[40]++;
227795
227935
  createRecord('projects', this.project).then(function (response) {
227796
227936
  cov_2q2n13agp2.f[15]++;
227797
- var projectId = (cov_2q2n13agp2.s[39]++, _this2.$get(response, 'pk', ''));
227798
- cov_2q2n13agp2.s[40]++;
227937
+ var projectId = (cov_2q2n13agp2.s[41]++, _this2.$get(response, 'pk', ''));
227938
+ cov_2q2n13agp2.s[42]++;
227799
227939
 
227800
227940
  _this2.$store.dispatch(SHOW_ALERT, {
227801
227941
  message: "Project ".concat(projectId, " was succesfully created.")
227802
227942
  });
227803
227943
 
227804
- cov_2q2n13agp2.s[41]++;
227944
+ cov_2q2n13agp2.s[43]++;
227805
227945
 
227806
227946
  _this2.$store.dispatch(SHOW_PANEL, {
227807
227947
  project: projectId
227808
227948
  });
227809
227949
 
227810
- cov_2q2n13agp2.s[42]++;
227950
+ cov_2q2n13agp2.s[44]++;
227811
227951
 
227812
227952
  _this2.closeModal();
227813
227953
  }).catch(function (error) {
227814
227954
  cov_2q2n13agp2.f[16]++;
227815
- cov_2q2n13agp2.s[43]++;
227955
+ cov_2q2n13agp2.s[45]++;
227816
227956
 
227817
227957
  if (error.response) {
227818
227958
  cov_2q2n13agp2.b[8][0]++;
227819
- cov_2q2n13agp2.s[44]++;
227959
+ cov_2q2n13agp2.s[46]++;
227820
227960
  _this2.errorMessages = error.response.data;
227821
- cov_2q2n13agp2.s[45]++;
227961
+ cov_2q2n13agp2.s[47]++;
227822
227962
 
227823
227963
  _this2.$store.dispatch(SHOW_ALERT, {
227824
227964
  error: 'The project could not be created. Please try again.'
@@ -227863,8 +228003,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
227863
228003
 
227864
228004
  var NewProjectModal_component = normalizeComponent(
227865
228005
  projects_NewProjectModalvue_type_script_lang_js_,
227866
- NewProjectModalvue_type_template_id_8db07d96_render,
227867
- NewProjectModalvue_type_template_id_8db07d96_staticRenderFns,
228006
+ NewProjectModalvue_type_template_id_834662e2_render,
228007
+ NewProjectModalvue_type_template_id_834662e2_staticRenderFns,
227868
228008
  false,
227869
228009
  null,
227870
228010
  null,