@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.
@@ -91407,7 +91407,7 @@ module.exports = overArg;
91407
91407
  /***/ "9224":
91408
91408
  /***/ (function(module) {
91409
91409
 
91410
- 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\"}");
91410
+ 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\"}");
91411
91411
 
91412
91412
  /***/ }),
91413
91413
 
@@ -207404,7 +207404,7 @@ var uniq_default = /*#__PURE__*/__webpack_require__.n(uniq);
207404
207404
  // CONCATENATED MODULE: ./src/utils/tableColumns.js
207405
207405
  var cov_2ayhkohved = function () {
207406
207406
  var path = "/Users/arangooj/papaemme/isabl_web/src/utils/tableColumns.js";
207407
- var hash = "32f47e62d635bf0f4fe83060d0568c152a6f04d3";
207407
+ var hash = "788c692809d43fb08d2c78e8b8a1324be337194f";
207408
207408
  var global = new Function("return this")();
207409
207409
  var gcv = "__coverage__";
207410
207410
  var coverageData = {
@@ -207646,7 +207646,7 @@ var cov_2ayhkohved = function () {
207646
207646
  column: 28
207647
207647
  },
207648
207648
  end: {
207649
- line: 516,
207649
+ line: 522,
207650
207650
  column: 1
207651
207651
  }
207652
207652
  },
@@ -207942,91 +207942,101 @@ var cov_2ayhkohved = function () {
207942
207942
  },
207943
207943
  "53": {
207944
207944
  start: {
207945
- line: 417,
207945
+ line: 378,
207946
+ column: 8
207947
+ },
207948
+ end: {
207949
+ line: 378,
207950
+ column: 72
207951
+ }
207952
+ },
207953
+ "54": {
207954
+ start: {
207955
+ line: 423,
207946
207956
  column: 21
207947
207957
  },
207948
207958
  end: {
207949
- line: 417,
207959
+ line: 423,
207950
207960
  column: 76
207951
207961
  }
207952
207962
  },
207953
- "54": {
207963
+ "55": {
207954
207964
  start: {
207955
- line: 417,
207965
+ line: 423,
207956
207966
  column: 59
207957
207967
  },
207958
207968
  end: {
207959
- line: 417,
207969
+ line: 423,
207960
207970
  column: 75
207961
207971
  }
207962
207972
  },
207963
- "55": {
207973
+ "56": {
207964
207974
  start: {
207965
- line: 423,
207975
+ line: 429,
207966
207976
  column: 21
207967
207977
  },
207968
207978
  end: {
207969
- line: 423,
207979
+ line: 429,
207970
207980
  column: 73
207971
207981
  }
207972
207982
  },
207973
- "56": {
207983
+ "57": {
207974
207984
  start: {
207975
- line: 423,
207985
+ line: 429,
207976
207986
  column: 59
207977
207987
  },
207978
207988
  end: {
207979
- line: 423,
207989
+ line: 429,
207980
207990
  column: 72
207981
207991
  }
207982
207992
  },
207983
- "57": {
207993
+ "58": {
207984
207994
  start: {
207985
- line: 430,
207995
+ line: 436,
207986
207996
  column: 21
207987
207997
  },
207988
207998
  end: {
207989
- line: 430,
207999
+ line: 436,
207990
208000
  column: 31
207991
208001
  }
207992
208002
  },
207993
- "58": {
208003
+ "59": {
207994
208004
  start: {
207995
- line: 437,
208005
+ line: 443,
207996
208006
  column: 8
207997
208007
  },
207998
208008
  end: {
207999
- line: 440,
208009
+ line: 446,
208000
208010
  column: 9
208001
208011
  }
208002
208012
  },
208003
- "59": {
208013
+ "60": {
208004
208014
  start: {
208005
- line: 457,
208015
+ line: 463,
208006
208016
  column: 21
208007
208017
  },
208008
208018
  end: {
208009
- line: 457,
208019
+ line: 463,
208010
208020
  column: 48
208011
208021
  }
208012
208022
  },
208013
- "60": {
208023
+ "61": {
208014
208024
  start: {
208015
- line: 508,
208025
+ line: 514,
208016
208026
  column: 21
208017
208027
  },
208018
208028
  end: {
208019
- line: 508,
208029
+ line: 514,
208020
208030
  column: 56
208021
208031
  }
208022
208032
  },
208023
- "61": {
208033
+ "62": {
208024
208034
  start: {
208025
- line: 518,
208035
+ line: 524,
208026
208036
  column: 34
208027
208037
  },
208028
208038
  end: {
208029
- line: 527,
208039
+ line: 533,
208030
208040
  column: 1
208031
208041
  }
208032
208042
  }
@@ -208468,70 +208478,70 @@ var cov_2ayhkohved = function () {
208468
208478
  name: "(anonymous_18)",
208469
208479
  decl: {
208470
208480
  start: {
208471
- line: 417,
208481
+ line: 377,
208472
208482
  column: 16
208473
208483
  },
208474
208484
  end: {
208475
- line: 417,
208485
+ line: 377,
208476
208486
  column: 17
208477
208487
  }
208478
208488
  },
208479
208489
  loc: {
208480
208490
  start: {
208481
- line: 417,
208482
- column: 21
208491
+ line: 378,
208492
+ column: 8
208483
208493
  },
208484
208494
  end: {
208485
- line: 417,
208486
- column: 76
208495
+ line: 378,
208496
+ column: 72
208487
208497
  }
208488
208498
  },
208489
- line: 417
208499
+ line: 378
208490
208500
  },
208491
208501
  "19": {
208492
208502
  name: "(anonymous_19)",
208493
208503
  decl: {
208494
208504
  start: {
208495
- line: 417,
208496
- column: 49
208505
+ line: 423,
208506
+ column: 16
208497
208507
  },
208498
208508
  end: {
208499
- line: 417,
208500
- column: 50
208509
+ line: 423,
208510
+ column: 17
208501
208511
  }
208502
208512
  },
208503
208513
  loc: {
208504
208514
  start: {
208505
- line: 417,
208506
- column: 59
208515
+ line: 423,
208516
+ column: 21
208507
208517
  },
208508
208518
  end: {
208509
- line: 417,
208510
- column: 75
208519
+ line: 423,
208520
+ column: 76
208511
208521
  }
208512
208522
  },
208513
- line: 417
208523
+ line: 423
208514
208524
  },
208515
208525
  "20": {
208516
208526
  name: "(anonymous_20)",
208517
208527
  decl: {
208518
208528
  start: {
208519
208529
  line: 423,
208520
- column: 16
208530
+ column: 49
208521
208531
  },
208522
208532
  end: {
208523
208533
  line: 423,
208524
- column: 17
208534
+ column: 50
208525
208535
  }
208526
208536
  },
208527
208537
  loc: {
208528
208538
  start: {
208529
208539
  line: 423,
208530
- column: 21
208540
+ column: 59
208531
208541
  },
208532
208542
  end: {
208533
208543
  line: 423,
208534
- column: 73
208544
+ column: 75
208535
208545
  }
208536
208546
  },
208537
208547
  line: 423
@@ -208540,49 +208550,49 @@ var cov_2ayhkohved = function () {
208540
208550
  name: "(anonymous_21)",
208541
208551
  decl: {
208542
208552
  start: {
208543
- line: 423,
208544
- column: 52
208553
+ line: 429,
208554
+ column: 16
208545
208555
  },
208546
208556
  end: {
208547
- line: 423,
208548
- column: 53
208557
+ line: 429,
208558
+ column: 17
208549
208559
  }
208550
208560
  },
208551
208561
  loc: {
208552
208562
  start: {
208553
- line: 423,
208554
- column: 59
208563
+ line: 429,
208564
+ column: 21
208555
208565
  },
208556
208566
  end: {
208557
- line: 423,
208558
- column: 72
208567
+ line: 429,
208568
+ column: 73
208559
208569
  }
208560
208570
  },
208561
- line: 423
208571
+ line: 429
208562
208572
  },
208563
208573
  "22": {
208564
208574
  name: "(anonymous_22)",
208565
208575
  decl: {
208566
208576
  start: {
208567
- line: 430,
208568
- column: 16
208577
+ line: 429,
208578
+ column: 52
208569
208579
  },
208570
208580
  end: {
208571
- line: 430,
208572
- column: 17
208581
+ line: 429,
208582
+ column: 53
208573
208583
  }
208574
208584
  },
208575
208585
  loc: {
208576
208586
  start: {
208577
- line: 430,
208578
- column: 21
208587
+ line: 429,
208588
+ column: 59
208579
208589
  },
208580
208590
  end: {
208581
- line: 430,
208582
- column: 31
208591
+ line: 429,
208592
+ column: 72
208583
208593
  }
208584
208594
  },
208585
- line: 430
208595
+ line: 429
208586
208596
  },
208587
208597
  "23": {
208588
208598
  name: "(anonymous_23)",
@@ -208602,8 +208612,8 @@ var cov_2ayhkohved = function () {
208602
208612
  column: 21
208603
208613
  },
208604
208614
  end: {
208605
- line: 441,
208606
- column: 7
208615
+ line: 436,
208616
+ column: 31
208607
208617
  }
208608
208618
  },
208609
208619
  line: 436
@@ -208612,49 +208622,73 @@ var cov_2ayhkohved = function () {
208612
208622
  name: "(anonymous_24)",
208613
208623
  decl: {
208614
208624
  start: {
208615
- line: 457,
208625
+ line: 442,
208616
208626
  column: 16
208617
208627
  },
208618
208628
  end: {
208619
- line: 457,
208629
+ line: 442,
208620
208630
  column: 17
208621
208631
  }
208622
208632
  },
208623
208633
  loc: {
208624
208634
  start: {
208625
- line: 457,
208635
+ line: 442,
208626
208636
  column: 21
208627
208637
  },
208628
208638
  end: {
208629
- line: 457,
208630
- column: 48
208639
+ line: 447,
208640
+ column: 7
208631
208641
  }
208632
208642
  },
208633
- line: 457
208643
+ line: 442
208634
208644
  },
208635
208645
  "25": {
208636
208646
  name: "(anonymous_25)",
208637
208647
  decl: {
208638
208648
  start: {
208639
- line: 508,
208649
+ line: 463,
208640
208650
  column: 16
208641
208651
  },
208642
208652
  end: {
208643
- line: 508,
208653
+ line: 463,
208644
208654
  column: 17
208645
208655
  }
208646
208656
  },
208647
208657
  loc: {
208648
208658
  start: {
208649
- line: 508,
208659
+ line: 463,
208650
208660
  column: 21
208651
208661
  },
208652
208662
  end: {
208653
- line: 508,
208663
+ line: 463,
208664
+ column: 48
208665
+ }
208666
+ },
208667
+ line: 463
208668
+ },
208669
+ "26": {
208670
+ name: "(anonymous_26)",
208671
+ decl: {
208672
+ start: {
208673
+ line: 514,
208674
+ column: 16
208675
+ },
208676
+ end: {
208677
+ line: 514,
208678
+ column: 17
208679
+ }
208680
+ },
208681
+ loc: {
208682
+ start: {
208683
+ line: 514,
208684
+ column: 21
208685
+ },
208686
+ end: {
208687
+ line: 514,
208654
208688
  column: 56
208655
208689
  }
208656
208690
  },
208657
- line: 508
208691
+ line: 514
208658
208692
  }
208659
208693
  },
208660
208694
  branchMap: {
@@ -208991,134 +209025,200 @@ var cov_2ayhkohved = function () {
208991
209025
  "10": {
208992
209026
  loc: {
208993
209027
  start: {
208994
- line: 375,
209028
+ line: 378,
209029
+ column: 8
209030
+ },
209031
+ end: {
209032
+ line: 378,
209033
+ column: 72
209034
+ }
209035
+ },
209036
+ type: "cond-expr",
209037
+ locations: [{
209038
+ start: {
209039
+ line: 378,
209040
+ column: 52
209041
+ },
209042
+ end: {
209043
+ line: 378,
209044
+ column: 60
209045
+ }
209046
+ }, {
209047
+ start: {
209048
+ line: 378,
209049
+ column: 63
209050
+ },
209051
+ end: {
209052
+ line: 378,
209053
+ column: 72
209054
+ }
209055
+ }],
209056
+ line: 378
209057
+ },
209058
+ "11": {
209059
+ loc: {
209060
+ start: {
209061
+ line: 378,
209062
+ column: 8
209063
+ },
209064
+ end: {
209065
+ line: 378,
209066
+ column: 49
209067
+ }
209068
+ },
209069
+ type: "binary-expr",
209070
+ locations: [{
209071
+ start: {
209072
+ line: 378,
209073
+ column: 8
209074
+ },
209075
+ end: {
209076
+ line: 378,
209077
+ column: 22
209078
+ }
209079
+ }, {
209080
+ start: {
209081
+ line: 378,
209082
+ column: 26
209083
+ },
209084
+ end: {
209085
+ line: 378,
209086
+ column: 49
209087
+ }
209088
+ }],
209089
+ line: 378
209090
+ },
209091
+ "12": {
209092
+ loc: {
209093
+ start: {
209094
+ line: 381,
208995
209095
  column: 21
208996
209096
  },
208997
209097
  end: {
208998
- line: 375,
209098
+ line: 381,
208999
209099
  column: 62
209000
209100
  }
209001
209101
  },
209002
209102
  type: "binary-expr",
209003
209103
  locations: [{
209004
209104
  start: {
209005
- line: 375,
209105
+ line: 381,
209006
209106
  column: 21
209007
209107
  },
209008
209108
  end: {
209009
- line: 375,
209109
+ line: 381,
209010
209110
  column: 56
209011
209111
  }
209012
209112
  }, {
209013
209113
  start: {
209014
- line: 375,
209114
+ line: 381,
209015
209115
  column: 60
209016
209116
  },
209017
209117
  end: {
209018
- line: 375,
209118
+ line: 381,
209019
209119
  column: 62
209020
209120
  }
209021
209121
  }],
209022
- line: 375
209122
+ line: 381
209023
209123
  },
209024
- "11": {
209124
+ "13": {
209025
209125
  loc: {
209026
209126
  start: {
209027
- line: 438,
209127
+ line: 444,
209028
209128
  column: 10
209029
209129
  },
209030
209130
  end: {
209031
- line: 439,
209131
+ line: 445,
209032
209132
  column: 49
209033
209133
  }
209034
209134
  },
209035
209135
  type: "binary-expr",
209036
209136
  locations: [{
209037
209137
  start: {
209038
- line: 438,
209138
+ line: 444,
209039
209139
  column: 10
209040
209140
  },
209041
209141
  end: {
209042
- line: 438,
209142
+ line: 444,
209043
209143
  column: 54
209044
209144
  }
209045
209145
  }, {
209046
209146
  start: {
209047
- line: 439,
209147
+ line: 445,
209048
209148
  column: 10
209049
209149
  },
209050
209150
  end: {
209051
- line: 439,
209151
+ line: 445,
209052
209152
  column: 49
209053
209153
  }
209054
209154
  }],
209055
- line: 438
209155
+ line: 444
209056
209156
  },
209057
- "12": {
209157
+ "14": {
209058
209158
  loc: {
209059
209159
  start: {
209060
- line: 445,
209160
+ line: 451,
209061
209161
  column: 21
209062
209162
  },
209063
209163
  end: {
209064
- line: 445,
209164
+ line: 451,
209065
209165
  column: 63
209066
209166
  }
209067
209167
  },
209068
209168
  type: "binary-expr",
209069
209169
  locations: [{
209070
209170
  start: {
209071
- line: 445,
209171
+ line: 451,
209072
209172
  column: 21
209073
209173
  },
209074
209174
  end: {
209075
- line: 445,
209175
+ line: 451,
209076
209176
  column: 57
209077
209177
  }
209078
209178
  }, {
209079
209179
  start: {
209080
- line: 445,
209180
+ line: 451,
209081
209181
  column: 61
209082
209182
  },
209083
209183
  end: {
209084
- line: 445,
209184
+ line: 451,
209085
209185
  column: 63
209086
209186
  }
209087
209187
  }],
209088
- line: 445
209188
+ line: 451
209089
209189
  },
209090
- "13": {
209190
+ "15": {
209091
209191
  loc: {
209092
209192
  start: {
209093
- line: 492,
209193
+ line: 498,
209094
209194
  column: 21
209095
209195
  },
209096
209196
  end: {
209097
- line: 492,
209197
+ line: 498,
209098
209198
  column: 63
209099
209199
  }
209100
209200
  },
209101
209201
  type: "binary-expr",
209102
209202
  locations: [{
209103
209203
  start: {
209104
- line: 492,
209204
+ line: 498,
209105
209205
  column: 21
209106
209206
  },
209107
209207
  end: {
209108
- line: 492,
209208
+ line: 498,
209109
209209
  column: 57
209110
209210
  }
209111
209211
  }, {
209112
209212
  start: {
209113
- line: 492,
209213
+ line: 498,
209114
209214
  column: 61
209115
209215
  },
209116
209216
  end: {
209117
- line: 492,
209217
+ line: 498,
209118
209218
  column: 63
209119
209219
  }
209120
209220
  }],
209121
- line: 492
209221
+ line: 498
209122
209222
  }
209123
209223
  },
209124
209224
  s: {
@@ -209183,7 +209283,8 @@ var cov_2ayhkohved = function () {
209183
209283
  "58": 0,
209184
209284
  "59": 0,
209185
209285
  "60": 0,
209186
- "61": 0
209286
+ "61": 0,
209287
+ "62": 0
209187
209288
  },
209188
209289
  f: {
209189
209290
  "0": 0,
@@ -209211,7 +209312,8 @@ var cov_2ayhkohved = function () {
209211
209312
  "22": 0,
209212
209313
  "23": 0,
209213
209314
  "24": 0,
209214
- "25": 0
209315
+ "25": 0,
209316
+ "26": 0
209215
209317
  },
209216
209318
  b: {
209217
209319
  "0": [0, 0],
@@ -209227,10 +209329,12 @@ var cov_2ayhkohved = function () {
209227
209329
  "10": [0, 0],
209228
209330
  "11": [0, 0],
209229
209331
  "12": [0, 0],
209230
- "13": [0, 0]
209332
+ "13": [0, 0],
209333
+ "14": [0, 0],
209334
+ "15": [0, 0]
209231
209335
  },
209232
209336
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
209233
- hash: "32f47e62d635bf0f4fe83060d0568c152a6f04d3"
209337
+ hash: "788c692809d43fb08d2c78e8b8a1324be337194f"
209234
209338
  };
209235
209339
  var coverage = global[gcv] || (global[gcv] = {});
209236
209340
 
@@ -209629,7 +209733,15 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209629
209733
  {
209630
209734
  verboseName: 'Description',
209631
209735
  field: 'description'
209632
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[10][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[10][1]++, {})))),
209736
+ }, {
209737
+ verboseName: 'Access',
209738
+ field: 'sharing.is_public',
209739
+ accessor: function accessor(value) {
209740
+ cov_2ayhkohved.f[18]++;
209741
+ cov_2ayhkohved.s[53]++;
209742
+ 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');
209743
+ }
209744
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.projectFields) || (cov_2ayhkohved.b[12][1]++, {})))),
209633
209745
  analyses: [{
209634
209746
  verboseName: 'Key',
209635
209747
  field: 'pk',
@@ -209655,11 +209767,11 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209655
209767
  {
209656
209768
  verboseName: 'Target Experiments',
209657
209769
  accessor: function accessor(d) {
209658
- cov_2ayhkohved.f[18]++;
209659
- cov_2ayhkohved.s[53]++;
209770
+ cov_2ayhkohved.f[19]++;
209771
+ cov_2ayhkohved.s[54]++;
209660
209772
  return d.cached_fields.targets.map(function (target) {
209661
- cov_2ayhkohved.f[19]++;
209662
- cov_2ayhkohved.s[54]++;
209773
+ cov_2ayhkohved.f[20]++;
209774
+ cov_2ayhkohved.s[55]++;
209663
209775
  return target.system_id;
209664
209776
  });
209665
209777
  },
@@ -209668,11 +209780,11 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209668
209780
  }, {
209669
209781
  verboseName: 'Reference Experiments',
209670
209782
  accessor: function accessor(d) {
209671
- cov_2ayhkohved.f[20]++;
209672
- cov_2ayhkohved.s[55]++;
209783
+ cov_2ayhkohved.f[21]++;
209784
+ cov_2ayhkohved.s[56]++;
209673
209785
  return d.cached_fields.references.map(function (ref) {
209674
- cov_2ayhkohved.f[21]++;
209675
- cov_2ayhkohved.s[56]++;
209786
+ cov_2ayhkohved.f[22]++;
209787
+ cov_2ayhkohved.s[57]++;
209676
209788
  return ref.system_id;
209677
209789
  });
209678
209790
  },
@@ -209682,8 +209794,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209682
209794
  verboseName: 'Linked Analyses',
209683
209795
  field: 'analyses',
209684
209796
  accessor: function accessor(d) {
209685
- cov_2ayhkohved.f[22]++;
209686
- cov_2ayhkohved.s[57]++;
209797
+ cov_2ayhkohved.f[23]++;
209798
+ cov_2ayhkohved.s[58]++;
209687
209799
  return d.analyses;
209688
209800
  },
209689
209801
  model: 'analysis'
@@ -209691,12 +209803,12 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209691
209803
  verboseName: 'Projects',
209692
209804
  field: 'targets__projects__pk',
209693
209805
  accessor: function accessor(d) {
209694
- cov_2ayhkohved.f[23]++;
209695
- cov_2ayhkohved.s[58]++;
209696
- 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', ''));
209806
+ cov_2ayhkohved.f[24]++;
209807
+ cov_2ayhkohved.s[59]++;
209808
+ 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', ''));
209697
209809
  },
209698
209810
  model: 'project'
209699
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[12][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[12][1]++, {})))),
209811
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[14][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[14][1]++, {})))),
209700
209812
  projectAnalyses: [{
209701
209813
  verboseName: 'Key',
209702
209814
  field: 'pk',
@@ -209706,8 +209818,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209706
209818
  verboseName: 'Project',
209707
209819
  field: 'project_level_analysis',
209708
209820
  accessor: function accessor(d) {
209709
- cov_2ayhkohved.f[24]++;
209710
- cov_2ayhkohved.s[59]++;
209821
+ cov_2ayhkohved.f[25]++;
209822
+ cov_2ayhkohved.s[60]++;
209711
209823
  return d.project_level_analysis.pk;
209712
209824
  },
209713
209825
  model: 'project'
@@ -209728,7 +209840,7 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209728
209840
  }, {
209729
209841
  verboseName: 'Application',
209730
209842
  field: 'application.pk'
209731
- }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[13][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[13][1]++, {})))),
209843
+ }].concat(baseColumns, _toConsumableArray(Object.values((cov_2ayhkohved.b[15][0]++, tableColumns_settings.customFields.analysisFields) || (cov_2ayhkohved.b[15][1]++, {})))),
209732
209844
  submissions: [{
209733
209845
  verboseName: 'Primary Key',
209734
209846
  field: 'pk',
@@ -209741,8 +209853,8 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209741
209853
  verboseName: 'Processed',
209742
209854
  field: 'processed',
209743
209855
  accessor: function accessor(d) {
209744
- cov_2ayhkohved.f[25]++;
209745
- cov_2ayhkohved.s[60]++;
209856
+ cov_2ayhkohved.f[26]++;
209857
+ cov_2ayhkohved.s[61]++;
209746
209858
  return Object(helpers["f" /* formatDate */])(d.processed, 'calendar');
209747
209859
  }
209748
209860
  }, {
@@ -209750,7 +209862,7 @@ var tableColumns = (cov_2ayhkohved.s[23]++, {
209750
209862
  field: 'description'
209751
209863
  }].concat(baseColumns)
209752
209864
  });
209753
- var defaultQueryParams = (cov_2ayhkohved.s[61]++, {
209865
+ var defaultQueryParams = (cov_2ayhkohved.s[62]++, {
209754
209866
  analyses: {
209755
209867
  'fields!': 'targets,references,analytics',
209756
209868
  distinct: tableColumns_settings.distinctRecords
@@ -222932,12 +223044,12 @@ var EditProfileModal_component = normalizeComponent(
222932
223044
  )
222933
223045
 
222934
223046
  /* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
222935
- // 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&
222936
- 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}])})}
222937
- var NewProjectModalvue_type_template_id_8db07d96_staticRenderFns = []
223047
+ // 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&
223048
+ 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}])})}
223049
+ var NewProjectModalvue_type_template_id_834662e2_staticRenderFns = []
222938
223050
 
222939
223051
 
222940
- // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=8db07d96&
223052
+ // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=834662e2&
222941
223053
 
222942
223054
  // EXTERNAL MODULE: ./node_modules/lodash/has.js
222943
223055
  var has = __webpack_require__("3852");
@@ -226109,7 +226221,7 @@ var SharingSettings_component = normalizeComponent(
226109
226221
  // 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&
226110
226222
  var cov_2q2n13agp2 = function () {
226111
226223
  var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/NewProjectModal.vue";
226112
- var hash = "9065b65484d9dda2d79190551ed5f04b8da2c2ab";
226224
+ var hash = "89acb85815fad1b23ec2d1fd2449b13bff323123";
226113
226225
  var global = new Function("return this")();
226114
226226
  var gcv = "__coverage__";
226115
226227
  var coverageData = {
@@ -226128,110 +226240,110 @@ var cov_2q2n13agp2 = function () {
226128
226240
  "1": {
226129
226241
  start: {
226130
226242
  line: 194,
226131
- column: 4
226243
+ column: 20
226132
226244
  },
226133
226245
  end: {
226134
- line: 217,
226135
- column: 5
226246
+ line: 194,
226247
+ column: 64
226136
226248
  }
226137
226249
  },
226138
226250
  "2": {
226139
226251
  start: {
226140
- line: 221,
226141
- column: 6
226252
+ line: 195,
226253
+ column: 20
226142
226254
  },
226143
226255
  end: {
226144
- line: 228,
226145
- column: 7
226256
+ line: 195,
226257
+ column: 54
226146
226258
  }
226147
226259
  },
226148
226260
  "3": {
226149
226261
  start: {
226150
- line: 222,
226151
- column: 8
226262
+ line: 196,
226263
+ column: 4
226152
226264
  },
226153
226265
  end: {
226154
- line: 222,
226155
- column: 26
226266
+ line: 219,
226267
+ column: 5
226156
226268
  }
226157
226269
  },
226158
226270
  "4": {
226159
226271
  start: {
226160
- line: 224,
226161
- column: 8
226272
+ line: 223,
226273
+ column: 6
226162
226274
  },
226163
226275
  end: {
226164
- line: 227,
226165
- column: 9
226276
+ line: 230,
226277
+ column: 7
226166
226278
  }
226167
226279
  },
226168
226280
  "5": {
226169
226281
  start: {
226170
- line: 225,
226171
- column: 10
226282
+ line: 224,
226283
+ column: 8
226172
226284
  },
226173
226285
  end: {
226174
- line: 225,
226175
- column: 48
226286
+ line: 224,
226287
+ column: 26
226176
226288
  }
226177
226289
  },
226178
226290
  "6": {
226179
226291
  start: {
226180
226292
  line: 226,
226181
- column: 10
226293
+ column: 8
226182
226294
  },
226183
226295
  end: {
226184
- line: 226,
226185
- column: 26
226296
+ line: 229,
226297
+ column: 9
226186
226298
  }
226187
226299
  },
226188
226300
  "7": {
226189
226301
  start: {
226190
- line: 232,
226191
- column: 4
226302
+ line: 227,
226303
+ column: 10
226192
226304
  },
226193
226305
  end: {
226194
- line: 232,
226195
- column: 26
226306
+ line: 227,
226307
+ column: 48
226196
226308
  }
226197
226309
  },
226198
226310
  "8": {
226199
226311
  start: {
226200
- line: 237,
226201
- column: 6
226312
+ line: 228,
226313
+ column: 10
226202
226314
  },
226203
226315
  end: {
226204
- line: 249,
226205
- column: 8
226316
+ line: 228,
226317
+ column: 26
226206
226318
  }
226207
226319
  },
226208
226320
  "9": {
226209
226321
  start: {
226210
- line: 238,
226211
- column: 8
226322
+ line: 234,
226323
+ column: 4
226212
226324
  },
226213
226325
  end: {
226214
- line: 248,
226215
- column: 9
226326
+ line: 234,
226327
+ column: 26
226216
226328
  }
226217
226329
  },
226218
226330
  "10": {
226219
226331
  start: {
226220
226332
  line: 239,
226221
- column: 10
226333
+ column: 6
226222
226334
  },
226223
226335
  end: {
226224
- line: 239,
226225
- column: 46
226336
+ line: 251,
226337
+ column: 8
226226
226338
  }
226227
226339
  },
226228
226340
  "11": {
226229
226341
  start: {
226230
226342
  line: 240,
226231
- column: 15
226343
+ column: 8
226232
226344
  },
226233
226345
  end: {
226234
- line: 248,
226346
+ line: 250,
226235
226347
  column: 9
226236
226348
  }
226237
226349
  },
@@ -226242,7 +226354,7 @@ var cov_2q2n13agp2 = function () {
226242
226354
  },
226243
226355
  end: {
226244
226356
  line: 241,
226245
- column: 68
226357
+ column: 46
226246
226358
  }
226247
226359
  },
226248
226360
  "13": {
@@ -226251,7 +226363,7 @@ var cov_2q2n13agp2 = function () {
226251
226363
  column: 15
226252
226364
  },
226253
226365
  end: {
226254
- line: 248,
226366
+ line: 250,
226255
226367
  column: 9
226256
226368
  }
226257
226369
  },
@@ -226262,7 +226374,7 @@ var cov_2q2n13agp2 = function () {
226262
226374
  },
226263
226375
  end: {
226264
226376
  line: 243,
226265
- column: 69
226377
+ column: 68
226266
226378
  }
226267
226379
  },
226268
226380
  "15": {
@@ -226271,7 +226383,7 @@ var cov_2q2n13agp2 = function () {
226271
226383
  column: 15
226272
226384
  },
226273
226385
  end: {
226274
- line: 248,
226386
+ line: 250,
226275
226387
  column: 9
226276
226388
  }
226277
226389
  },
@@ -226282,17 +226394,17 @@ var cov_2q2n13agp2 = function () {
226282
226394
  },
226283
226395
  end: {
226284
226396
  line: 245,
226285
- column: 74
226397
+ column: 69
226286
226398
  }
226287
226399
  },
226288
226400
  "17": {
226289
226401
  start: {
226290
226402
  line: 246,
226291
- column: 10
226403
+ column: 15
226292
226404
  },
226293
226405
  end: {
226294
- line: 246,
226295
- column: 94
226406
+ line: 250,
226407
+ column: 9
226296
226408
  }
226297
226409
  },
226298
226410
  "18": {
@@ -226302,276 +226414,296 @@ var cov_2q2n13agp2 = function () {
226302
226414
  },
226303
226415
  end: {
226304
226416
  line: 247,
226305
- column: 95
226417
+ column: 74
226306
226418
  }
226307
226419
  },
226308
226420
  "19": {
226309
226421
  start: {
226310
- line: 252,
226422
+ line: 248,
226423
+ column: 10
226424
+ },
226425
+ end: {
226426
+ line: 248,
226427
+ column: 94
226428
+ }
226429
+ },
226430
+ "20": {
226431
+ start: {
226432
+ line: 249,
226433
+ column: 10
226434
+ },
226435
+ end: {
226436
+ line: 249,
226437
+ column: 95
226438
+ }
226439
+ },
226440
+ "21": {
226441
+ start: {
226442
+ line: 254,
226311
226443
  column: 6
226312
226444
  },
226313
226445
  end: {
226314
- line: 255,
226446
+ line: 257,
226315
226447
  column: 7
226316
226448
  }
226317
226449
  },
226318
- "20": {
226450
+ "22": {
226319
226451
  start: {
226320
- line: 253,
226452
+ line: 255,
226321
226453
  column: 25
226322
226454
  },
226323
226455
  end: {
226324
- line: 253,
226456
+ line: 255,
226325
226457
  column: 57
226326
226458
  }
226327
226459
  },
226328
- "21": {
226460
+ "23": {
226329
226461
  start: {
226330
- line: 254,
226462
+ line: 256,
226331
226463
  column: 8
226332
226464
  },
226333
226465
  end: {
226334
- line: 254,
226466
+ line: 256,
226335
226467
  column: 38
226336
226468
  }
226337
226469
  },
226338
- "22": {
226470
+ "24": {
226339
226471
  start: {
226340
- line: 258,
226472
+ line: 260,
226341
226473
  column: 6
226342
226474
  },
226343
226475
  end: {
226344
- line: 258,
226476
+ line: 260,
226345
226477
  column: 56
226346
226478
  }
226347
226479
  },
226348
- "23": {
226480
+ "25": {
226349
226481
  start: {
226350
- line: 259,
226482
+ line: 261,
226351
226483
  column: 6
226352
226484
  },
226353
226485
  end: {
226354
- line: 259,
226486
+ line: 261,
226355
226487
  column: 44
226356
226488
  }
226357
226489
  },
226358
- "24": {
226490
+ "26": {
226359
226491
  start: {
226360
- line: 260,
226492
+ line: 262,
226361
226493
  column: 6
226362
226494
  },
226363
226495
  end: {
226364
- line: 260,
226496
+ line: 262,
226365
226497
  column: 54
226366
226498
  }
226367
226499
  },
226368
- "25": {
226500
+ "27": {
226369
226501
  start: {
226370
- line: 263,
226502
+ line: 265,
226371
226503
  column: 6
226372
226504
  },
226373
226505
  end: {
226374
- line: 263,
226506
+ line: 265,
226375
226507
  column: 32
226376
226508
  }
226377
226509
  },
226378
- "26": {
226510
+ "28": {
226379
226511
  start: {
226380
- line: 264,
226512
+ line: 266,
226381
226513
  column: 6
226382
226514
  },
226383
226515
  end: {
226384
- line: 264,
226516
+ line: 266,
226385
226517
  column: 58
226386
226518
  }
226387
226519
  },
226388
- "27": {
226520
+ "29": {
226389
226521
  start: {
226390
- line: 264,
226522
+ line: 266,
226391
226523
  column: 46
226392
226524
  },
226393
226525
  end: {
226394
- line: 264,
226526
+ line: 266,
226395
226527
  column: 57
226396
226528
  }
226397
226529
  },
226398
- "28": {
226530
+ "30": {
226399
226531
  start: {
226400
- line: 267,
226532
+ line: 269,
226401
226533
  column: 6
226402
226534
  },
226403
226535
  end: {
226404
- line: 267,
226536
+ line: 269,
226405
226537
  column: 22
226406
226538
  }
226407
226539
  },
226408
- "29": {
226540
+ "31": {
226409
226541
  start: {
226410
- line: 268,
226542
+ line: 270,
226411
226543
  column: 6
226412
226544
  },
226413
226545
  end: {
226414
- line: 268,
226546
+ line: 270,
226415
226547
  column: 31
226416
226548
  }
226417
226549
  },
226418
- "30": {
226550
+ "32": {
226419
226551
  start: {
226420
- line: 271,
226552
+ line: 273,
226421
226553
  column: 6
226422
226554
  },
226423
226555
  end: {
226424
- line: 274,
226556
+ line: 276,
226425
226557
  column: 7
226426
226558
  }
226427
226559
  },
226428
- "31": {
226560
+ "33": {
226429
226561
  start: {
226430
- line: 277,
226562
+ line: 279,
226431
226563
  column: 6
226432
226564
  },
226433
226565
  end: {
226434
- line: 280,
226566
+ line: 282,
226435
226567
  column: 7
226436
226568
  }
226437
226569
  },
226438
- "32": {
226570
+ "34": {
226439
226571
  start: {
226440
- line: 281,
226572
+ line: 283,
226441
226573
  column: 6
226442
226574
  },
226443
226575
  end: {
226444
- line: 284,
226576
+ line: 286,
226445
226577
  column: 7
226446
226578
  }
226447
226579
  },
226448
- "33": {
226580
+ "35": {
226449
226581
  start: {
226450
- line: 287,
226582
+ line: 289,
226451
226583
  column: 6
226452
226584
  },
226453
226585
  end: {
226454
- line: 287,
226586
+ line: 289,
226455
226587
  column: 32
226456
226588
  }
226457
226589
  },
226458
- "34": {
226590
+ "36": {
226459
226591
  start: {
226460
- line: 288,
226592
+ line: 290,
226461
226593
  column: 6
226462
226594
  },
226463
226595
  end: {
226464
- line: 288,
226596
+ line: 290,
226465
226597
  column: 28
226466
226598
  }
226467
226599
  },
226468
- "35": {
226600
+ "37": {
226469
226601
  start: {
226470
- line: 289,
226602
+ line: 291,
226471
226603
  column: 6
226472
226604
  },
226473
226605
  end: {
226474
- line: 289,
226606
+ line: 291,
226475
226607
  column: 65
226476
226608
  }
226477
226609
  },
226478
- "36": {
226610
+ "38": {
226479
226611
  start: {
226480
- line: 289,
226612
+ line: 291,
226481
226613
  column: 46
226482
226614
  },
226483
226615
  end: {
226484
- line: 289,
226616
+ line: 291,
226485
226617
  column: 64
226486
226618
  }
226487
226619
  },
226488
- "37": {
226620
+ "39": {
226489
226621
  start: {
226490
- line: 291,
226622
+ line: 293,
226491
226623
  column: 6
226492
226624
  },
226493
226625
  end: {
226494
- line: 312,
226626
+ line: 314,
226495
226627
  column: 7
226496
226628
  }
226497
226629
  },
226498
- "38": {
226630
+ "40": {
226499
226631
  start: {
226500
- line: 292,
226632
+ line: 294,
226501
226633
  column: 8
226502
226634
  },
226503
226635
  end: {
226504
- line: 311,
226636
+ line: 313,
226505
226637
  column: 12
226506
226638
  }
226507
226639
  },
226508
- "39": {
226640
+ "41": {
226509
226641
  start: {
226510
- line: 294,
226642
+ line: 296,
226511
226643
  column: 30
226512
226644
  },
226513
226645
  end: {
226514
- line: 294,
226646
+ line: 296,
226515
226647
  column: 59
226516
226648
  }
226517
226649
  },
226518
- "40": {
226650
+ "42": {
226519
226651
  start: {
226520
- line: 295,
226652
+ line: 297,
226521
226653
  column: 12
226522
226654
  },
226523
226655
  end: {
226524
- line: 297,
226656
+ line: 299,
226525
226657
  column: 14
226526
226658
  }
226527
226659
  },
226528
- "41": {
226660
+ "43": {
226529
226661
  start: {
226530
- line: 299,
226662
+ line: 301,
226531
226663
  column: 12
226532
226664
  },
226533
226665
  end: {
226534
- line: 301,
226666
+ line: 303,
226535
226667
  column: 14
226536
226668
  }
226537
226669
  },
226538
- "42": {
226670
+ "44": {
226539
226671
  start: {
226540
- line: 302,
226672
+ line: 304,
226541
226673
  column: 12
226542
226674
  },
226543
226675
  end: {
226544
- line: 302,
226676
+ line: 304,
226545
226677
  column: 29
226546
226678
  }
226547
226679
  },
226548
- "43": {
226680
+ "45": {
226549
226681
  start: {
226550
- line: 305,
226682
+ line: 307,
226551
226683
  column: 12
226552
226684
  },
226553
226685
  end: {
226554
- line: 310,
226686
+ line: 312,
226555
226687
  column: 13
226556
226688
  }
226557
226689
  },
226558
- "44": {
226690
+ "46": {
226559
226691
  start: {
226560
- line: 306,
226692
+ line: 308,
226561
226693
  column: 14
226562
226694
  },
226563
226695
  end: {
226564
- line: 306,
226696
+ line: 308,
226565
226697
  column: 54
226566
226698
  }
226567
226699
  },
226568
- "45": {
226700
+ "47": {
226569
226701
  start: {
226570
- line: 307,
226702
+ line: 309,
226571
226703
  column: 14
226572
226704
  },
226573
226705
  end: {
226574
- line: 309,
226706
+ line: 311,
226575
226707
  column: 16
226576
226708
  }
226577
226709
  }
@@ -226619,7 +226751,7 @@ var cov_2q2n13agp2 = function () {
226619
226751
  column: 9
226620
226752
  },
226621
226753
  end: {
226622
- line: 218,
226754
+ line: 220,
226623
226755
  column: 3
226624
226756
  }
226625
226757
  },
@@ -226629,660 +226761,660 @@ var cov_2q2n13agp2 = function () {
226629
226761
  name: "(anonymous_2)",
226630
226762
  decl: {
226631
226763
  start: {
226632
- line: 220,
226764
+ line: 222,
226633
226765
  column: 4
226634
226766
  },
226635
226767
  end: {
226636
- line: 220,
226768
+ line: 222,
226637
226769
  column: 5
226638
226770
  }
226639
226771
  },
226640
226772
  loc: {
226641
226773
  start: {
226642
- line: 220,
226774
+ line: 222,
226643
226775
  column: 21
226644
226776
  },
226645
226777
  end: {
226646
- line: 229,
226778
+ line: 231,
226647
226779
  column: 5
226648
226780
  }
226649
226781
  },
226650
- line: 220
226782
+ line: 222
226651
226783
  },
226652
226784
  "3": {
226653
226785
  name: "(anonymous_3)",
226654
226786
  decl: {
226655
226787
  start: {
226656
- line: 231,
226788
+ line: 233,
226657
226789
  column: 2
226658
226790
  },
226659
226791
  end: {
226660
- line: 231,
226792
+ line: 233,
226661
226793
  column: 3
226662
226794
  }
226663
226795
  },
226664
226796
  loc: {
226665
226797
  start: {
226666
- line: 231,
226798
+ line: 233,
226667
226799
  column: 12
226668
226800
  },
226669
226801
  end: {
226670
- line: 233,
226802
+ line: 235,
226671
226803
  column: 3
226672
226804
  }
226673
226805
  },
226674
- line: 231
226806
+ line: 233
226675
226807
  },
226676
226808
  "4": {
226677
226809
  name: "(anonymous_4)",
226678
226810
  decl: {
226679
226811
  start: {
226680
- line: 235,
226812
+ line: 237,
226681
226813
  column: 4
226682
226814
  },
226683
226815
  end: {
226684
- line: 235,
226816
+ line: 237,
226685
226817
  column: 5
226686
226818
  }
226687
226819
  },
226688
226820
  loc: {
226689
226821
  start: {
226690
- line: 235,
226822
+ line: 237,
226691
226823
  column: 22
226692
226824
  },
226693
226825
  end: {
226694
- line: 250,
226826
+ line: 252,
226695
226827
  column: 5
226696
226828
  }
226697
226829
  },
226698
- line: 235
226830
+ line: 237
226699
226831
  },
226700
226832
  "5": {
226701
226833
  name: "(anonymous_5)",
226702
226834
  decl: {
226703
226835
  start: {
226704
- line: 237,
226836
+ line: 239,
226705
226837
  column: 36
226706
226838
  },
226707
226839
  end: {
226708
- line: 237,
226840
+ line: 239,
226709
226841
  column: 37
226710
226842
  }
226711
226843
  },
226712
226844
  loc: {
226713
226845
  start: {
226714
- line: 237,
226846
+ line: 239,
226715
226847
  column: 45
226716
226848
  },
226717
226849
  end: {
226718
- line: 249,
226850
+ line: 251,
226719
226851
  column: 7
226720
226852
  }
226721
226853
  },
226722
- line: 237
226854
+ line: 239
226723
226855
  },
226724
226856
  "6": {
226725
226857
  name: "(anonymous_6)",
226726
226858
  decl: {
226727
226859
  start: {
226728
- line: 251,
226860
+ line: 253,
226729
226861
  column: 4
226730
226862
  },
226731
226863
  end: {
226732
- line: 251,
226864
+ line: 253,
226733
226865
  column: 5
226734
226866
  }
226735
226867
  },
226736
226868
  loc: {
226737
226869
  start: {
226738
- line: 251,
226870
+ line: 253,
226739
226871
  column: 24
226740
226872
  },
226741
226873
  end: {
226742
- line: 256,
226874
+ line: 258,
226743
226875
  column: 5
226744
226876
  }
226745
226877
  },
226746
- line: 251
226878
+ line: 253
226747
226879
  },
226748
226880
  "7": {
226749
226881
  name: "(anonymous_7)",
226750
226882
  decl: {
226751
226883
  start: {
226752
- line: 257,
226884
+ line: 259,
226753
226885
  column: 4
226754
226886
  },
226755
226887
  end: {
226756
- line: 257,
226888
+ line: 259,
226757
226889
  column: 5
226758
226890
  }
226759
226891
  },
226760
226892
  loc: {
226761
226893
  start: {
226762
- line: 257,
226894
+ line: 259,
226763
226895
  column: 27
226764
226896
  },
226765
226897
  end: {
226766
- line: 261,
226898
+ line: 263,
226767
226899
  column: 5
226768
226900
  }
226769
226901
  },
226770
- line: 257
226902
+ line: 259
226771
226903
  },
226772
226904
  "8": {
226773
226905
  name: "(anonymous_8)",
226774
226906
  decl: {
226775
226907
  start: {
226776
- line: 262,
226908
+ line: 264,
226777
226909
  column: 4
226778
226910
  },
226779
226911
  end: {
226780
- line: 262,
226912
+ line: 264,
226781
226913
  column: 5
226782
226914
  }
226783
226915
  },
226784
226916
  loc: {
226785
226917
  start: {
226786
- line: 262,
226918
+ line: 264,
226787
226919
  column: 16
226788
226920
  },
226789
226921
  end: {
226790
- line: 265,
226922
+ line: 267,
226791
226923
  column: 5
226792
226924
  }
226793
226925
  },
226794
- line: 262
226926
+ line: 264
226795
226927
  },
226796
226928
  "9": {
226797
226929
  name: "(anonymous_9)",
226798
226930
  decl: {
226799
226931
  start: {
226800
- line: 264,
226932
+ line: 266,
226801
226933
  column: 39
226802
226934
  },
226803
226935
  end: {
226804
- line: 264,
226936
+ line: 266,
226805
226937
  column: 40
226806
226938
  }
226807
226939
  },
226808
226940
  loc: {
226809
226941
  start: {
226810
- line: 264,
226942
+ line: 266,
226811
226943
  column: 46
226812
226944
  },
226813
226945
  end: {
226814
- line: 264,
226946
+ line: 266,
226815
226947
  column: 57
226816
226948
  }
226817
226949
  },
226818
- line: 264
226950
+ line: 266
226819
226951
  },
226820
226952
  "10": {
226821
226953
  name: "(anonymous_10)",
226822
226954
  decl: {
226823
226955
  start: {
226824
- line: 266,
226956
+ line: 268,
226825
226957
  column: 4
226826
226958
  },
226827
226959
  end: {
226828
- line: 266,
226960
+ line: 268,
226829
226961
  column: 5
226830
226962
  }
226831
226963
  },
226832
226964
  loc: {
226833
226965
  start: {
226834
- line: 266,
226966
+ line: 268,
226835
226967
  column: 17
226836
226968
  },
226837
226969
  end: {
226838
- line: 269,
226970
+ line: 271,
226839
226971
  column: 5
226840
226972
  }
226841
226973
  },
226842
- line: 266
226974
+ line: 268
226843
226975
  },
226844
226976
  "11": {
226845
226977
  name: "(anonymous_11)",
226846
226978
  decl: {
226847
226979
  start: {
226848
- line: 270,
226980
+ line: 272,
226849
226981
  column: 4
226850
226982
  },
226851
226983
  end: {
226852
- line: 270,
226984
+ line: 272,
226853
226985
  column: 5
226854
226986
  }
226855
226987
  },
226856
226988
  loc: {
226857
226989
  start: {
226858
- line: 270,
226990
+ line: 272,
226859
226991
  column: 22
226860
226992
  },
226861
226993
  end: {
226862
- line: 275,
226994
+ line: 277,
226863
226995
  column: 5
226864
226996
  }
226865
226997
  },
226866
- line: 270
226998
+ line: 272
226867
226999
  },
226868
227000
  "12": {
226869
227001
  name: "(anonymous_12)",
226870
227002
  decl: {
226871
227003
  start: {
226872
- line: 276,
227004
+ line: 278,
226873
227005
  column: 4
226874
227006
  },
226875
227007
  end: {
226876
- line: 276,
227008
+ line: 278,
226877
227009
  column: 5
226878
227010
  }
226879
227011
  },
226880
227012
  loc: {
226881
227013
  start: {
226882
- line: 276,
227014
+ line: 278,
226883
227015
  column: 24
226884
227016
  },
226885
227017
  end: {
226886
- line: 285,
227018
+ line: 287,
226887
227019
  column: 5
226888
227020
  }
226889
227021
  },
226890
- line: 276
227022
+ line: 278
226891
227023
  },
226892
227024
  "13": {
226893
227025
  name: "(anonymous_13)",
226894
227026
  decl: {
226895
227027
  start: {
226896
- line: 286,
227028
+ line: 288,
226897
227029
  column: 4
226898
227030
  },
226899
227031
  end: {
226900
- line: 286,
227032
+ line: 288,
226901
227033
  column: 5
226902
227034
  }
226903
227035
  },
226904
227036
  loc: {
226905
227037
  start: {
226906
- line: 286,
227038
+ line: 288,
226907
227039
  column: 19
226908
227040
  },
226909
227041
  end: {
226910
- line: 313,
227042
+ line: 315,
226911
227043
  column: 5
226912
227044
  }
226913
227045
  },
226914
- line: 286
227046
+ line: 288
226915
227047
  },
226916
227048
  "14": {
226917
227049
  name: "(anonymous_14)",
226918
227050
  decl: {
226919
227051
  start: {
226920
- line: 289,
227052
+ line: 291,
226921
227053
  column: 39
226922
227054
  },
226923
227055
  end: {
226924
- line: 289,
227056
+ line: 291,
226925
227057
  column: 40
226926
227058
  }
226927
227059
  },
226928
227060
  loc: {
226929
227061
  start: {
226930
- line: 289,
227062
+ line: 291,
226931
227063
  column: 46
226932
227064
  },
226933
227065
  end: {
226934
- line: 289,
227066
+ line: 291,
226935
227067
  column: 64
226936
227068
  }
226937
227069
  },
226938
- line: 289
227070
+ line: 291
226939
227071
  },
226940
227072
  "15": {
226941
227073
  name: "(anonymous_15)",
226942
227074
  decl: {
226943
227075
  start: {
226944
- line: 293,
227076
+ line: 295,
226945
227077
  column: 16
226946
227078
  },
226947
227079
  end: {
226948
- line: 293,
227080
+ line: 295,
226949
227081
  column: 17
226950
227082
  }
226951
227083
  },
226952
227084
  loc: {
226953
227085
  start: {
226954
- line: 293,
227086
+ line: 295,
226955
227087
  column: 28
226956
227088
  },
226957
227089
  end: {
226958
- line: 303,
227090
+ line: 305,
226959
227091
  column: 11
226960
227092
  }
226961
227093
  },
226962
- line: 293
227094
+ line: 295
226963
227095
  },
226964
227096
  "16": {
226965
227097
  name: "(anonymous_16)",
226966
227098
  decl: {
226967
227099
  start: {
226968
- line: 304,
227100
+ line: 306,
226969
227101
  column: 17
226970
227102
  },
226971
227103
  end: {
226972
- line: 304,
227104
+ line: 306,
226973
227105
  column: 18
226974
227106
  }
226975
227107
  },
226976
227108
  loc: {
226977
227109
  start: {
226978
- line: 304,
227110
+ line: 306,
226979
227111
  column: 26
226980
227112
  },
226981
227113
  end: {
226982
- line: 311,
227114
+ line: 313,
226983
227115
  column: 11
226984
227116
  }
226985
227117
  },
226986
- line: 304
227118
+ line: 306
226987
227119
  }
226988
227120
  },
226989
227121
  branchMap: {
226990
227122
  "0": {
226991
227123
  loc: {
226992
227124
  start: {
226993
- line: 221,
227125
+ line: 223,
226994
227126
  column: 6
226995
227127
  },
226996
227128
  end: {
226997
- line: 228,
227129
+ line: 230,
226998
227130
  column: 7
226999
227131
  }
227000
227132
  },
227001
227133
  type: "if",
227002
227134
  locations: [{
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
227144
  start: {
227013
- line: 221,
227145
+ line: 223,
227014
227146
  column: 6
227015
227147
  },
227016
227148
  end: {
227017
- line: 228,
227149
+ line: 230,
227018
227150
  column: 7
227019
227151
  }
227020
227152
  }],
227021
- line: 221
227153
+ line: 223
227022
227154
  },
227023
227155
  "1": {
227024
227156
  loc: {
227025
227157
  start: {
227026
- line: 224,
227158
+ line: 226,
227027
227159
  column: 8
227028
227160
  },
227029
227161
  end: {
227030
- line: 227,
227162
+ line: 229,
227031
227163
  column: 9
227032
227164
  }
227033
227165
  },
227034
227166
  type: "if",
227035
227167
  locations: [{
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
227177
  start: {
227046
- line: 224,
227178
+ line: 226,
227047
227179
  column: 8
227048
227180
  },
227049
227181
  end: {
227050
- line: 227,
227182
+ line: 229,
227051
227183
  column: 9
227052
227184
  }
227053
227185
  }],
227054
- line: 224
227186
+ line: 226
227055
227187
  },
227056
227188
  "2": {
227057
227189
  loc: {
227058
227190
  start: {
227059
- line: 238,
227191
+ line: 240,
227060
227192
  column: 8
227061
227193
  },
227062
227194
  end: {
227063
- line: 248,
227195
+ line: 250,
227064
227196
  column: 9
227065
227197
  }
227066
227198
  },
227067
227199
  type: "if",
227068
227200
  locations: [{
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
227210
  start: {
227079
- line: 238,
227211
+ line: 240,
227080
227212
  column: 8
227081
227213
  },
227082
227214
  end: {
227083
- line: 248,
227215
+ line: 250,
227084
227216
  column: 9
227085
227217
  }
227086
227218
  }],
227087
- line: 238
227219
+ line: 240
227088
227220
  },
227089
227221
  "3": {
227090
227222
  loc: {
227091
227223
  start: {
227092
- line: 240,
227224
+ line: 242,
227093
227225
  column: 15
227094
227226
  },
227095
227227
  end: {
227096
- line: 248,
227228
+ line: 250,
227097
227229
  column: 9
227098
227230
  }
227099
227231
  },
227100
227232
  type: "if",
227101
227233
  locations: [{
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
227243
  start: {
227112
- line: 240,
227244
+ line: 242,
227113
227245
  column: 15
227114
227246
  },
227115
227247
  end: {
227116
- line: 248,
227248
+ line: 250,
227117
227249
  column: 9
227118
227250
  }
227119
227251
  }],
227120
- line: 240
227252
+ line: 242
227121
227253
  },
227122
227254
  "4": {
227123
227255
  loc: {
227124
227256
  start: {
227125
- line: 242,
227257
+ line: 244,
227126
227258
  column: 15
227127
227259
  },
227128
227260
  end: {
227129
- line: 248,
227261
+ line: 250,
227130
227262
  column: 9
227131
227263
  }
227132
227264
  },
227133
227265
  type: "if",
227134
227266
  locations: [{
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
227276
  start: {
227145
- line: 242,
227277
+ line: 244,
227146
227278
  column: 15
227147
227279
  },
227148
227280
  end: {
227149
- line: 248,
227281
+ line: 250,
227150
227282
  column: 9
227151
227283
  }
227152
227284
  }],
227153
- line: 242
227285
+ line: 244
227154
227286
  },
227155
227287
  "5": {
227156
227288
  loc: {
227157
227289
  start: {
227158
- line: 244,
227290
+ line: 246,
227159
227291
  column: 15
227160
227292
  },
227161
227293
  end: {
227162
- line: 248,
227294
+ line: 250,
227163
227295
  column: 9
227164
227296
  }
227165
227297
  },
227166
227298
  type: "if",
227167
227299
  locations: [{
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
227309
  start: {
227178
- line: 244,
227310
+ line: 246,
227179
227311
  column: 15
227180
227312
  },
227181
227313
  end: {
227182
- line: 248,
227314
+ line: 250,
227183
227315
  column: 9
227184
227316
  }
227185
227317
  }],
227186
- line: 244
227318
+ line: 246
227187
227319
  },
227188
227320
  "6": {
227189
227321
  loc: {
227190
227322
  start: {
227191
- line: 252,
227323
+ line: 254,
227192
227324
  column: 6
227193
227325
  },
227194
227326
  end: {
227195
- line: 255,
227327
+ line: 257,
227196
227328
  column: 7
227197
227329
  }
227198
227330
  },
227199
227331
  type: "if",
227200
227332
  locations: [{
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
227342
  start: {
227211
- line: 252,
227343
+ line: 254,
227212
227344
  column: 6
227213
227345
  },
227214
227346
  end: {
227215
- line: 255,
227347
+ line: 257,
227216
227348
  column: 7
227217
227349
  }
227218
227350
  }],
227219
- line: 252
227351
+ line: 254
227220
227352
  },
227221
227353
  "7": {
227222
227354
  loc: {
227223
227355
  start: {
227224
- line: 291,
227356
+ line: 293,
227225
227357
  column: 6
227226
227358
  },
227227
227359
  end: {
227228
- line: 312,
227360
+ line: 314,
227229
227361
  column: 7
227230
227362
  }
227231
227363
  },
227232
227364
  type: "if",
227233
227365
  locations: [{
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
227375
  start: {
227244
- line: 291,
227376
+ line: 293,
227245
227377
  column: 6
227246
227378
  },
227247
227379
  end: {
227248
- line: 312,
227380
+ line: 314,
227249
227381
  column: 7
227250
227382
  }
227251
227383
  }],
227252
- line: 291
227384
+ line: 293
227253
227385
  },
227254
227386
  "8": {
227255
227387
  loc: {
227256
227388
  start: {
227257
- line: 305,
227389
+ line: 307,
227258
227390
  column: 12
227259
227391
  },
227260
227392
  end: {
227261
- line: 310,
227393
+ line: 312,
227262
227394
  column: 13
227263
227395
  }
227264
227396
  },
227265
227397
  type: "if",
227266
227398
  locations: [{
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
227408
  start: {
227277
- line: 305,
227409
+ line: 307,
227278
227410
  column: 12
227279
227411
  },
227280
227412
  end: {
227281
- line: 310,
227413
+ line: 312,
227282
227414
  column: 13
227283
227415
  }
227284
227416
  }],
227285
- line: 305
227417
+ line: 307
227286
227418
  }
227287
227419
  },
227288
227420
  s: {
@@ -227331,7 +227463,9 @@ var cov_2q2n13agp2 = function () {
227331
227463
  "42": 0,
227332
227464
  "43": 0,
227333
227465
  "44": 0,
227334
- "45": 0
227466
+ "45": 0,
227467
+ "46": 0,
227468
+ "47": 0
227335
227469
  },
227336
227470
  f: {
227337
227471
  "0": 0,
@@ -227367,13 +227501,13 @@ var cov_2q2n13agp2 = function () {
227367
227501
  version: 3,
227368
227502
  sources: ["NewProjectModal.vue"],
227369
227503
  names: [],
227370
- 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",
227504
+ 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",
227371
227505
  file: "NewProjectModal.vue",
227372
227506
  sourceRoot: "src/components/projects",
227373
- 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"]
227507
+ 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"]
227374
227508
  },
227375
227509
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
227376
- hash: "9065b65484d9dda2d79190551ed5f04b8da2c2ab"
227510
+ hash: "89acb85815fad1b23ec2d1fd2449b13bff323123"
227377
227511
  };
227378
227512
  var coverage = global[gcv] || (global[gcv] = {});
227379
227513
 
@@ -227591,17 +227725,23 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227591
227725
  },
227592
227726
  data: function data() {
227593
227727
  cov_2q2n13agp2.f[1]++;
227594
- cov_2q2n13agp2.s[1]++;
227728
+ var sharing = (cov_2q2n13agp2.s[1]++, {
227729
+ isPublic: true,
227730
+ canRead: [],
227731
+ canShare: []
227732
+ });
227733
+ var project = (cov_2q2n13agp2.s[2]++, {
227734
+ sharing: Object(helpers["n" /* snakifyKeys */])(sharing)
227735
+ });
227736
+ cov_2q2n13agp2.s[3]++;
227595
227737
  return {
227596
227738
  isLoading: false,
227597
227739
  errorMessages: {},
227598
227740
  formHasErrors: false,
227599
227741
  fieldsToValidate: ['title', 'shortTitle', 'group', 'principalInvestigator', 'owner', 'coordinator', 'analyst', 'sharing'],
227600
227742
  groups: [],
227601
- project: {},
227602
- sharing: {
227603
- isPublic: true
227604
- },
227743
+ project: project,
227744
+ sharing: sharing,
227605
227745
  refs: {},
227606
227746
  rules: rules,
227607
227747
  showOptionalFields: true,
@@ -227613,20 +227753,20 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227613
227753
  watch: {
227614
227754
  showModal: function showModal(value) {
227615
227755
  cov_2q2n13agp2.f[2]++;
227616
- cov_2q2n13agp2.s[2]++;
227756
+ cov_2q2n13agp2.s[4]++;
227617
227757
 
227618
227758
  if (value) {
227619
227759
  cov_2q2n13agp2.b[0][0]++;
227620
- cov_2q2n13agp2.s[3]++;
227760
+ cov_2q2n13agp2.s[5]++;
227621
227761
  this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
227622
227762
 
227623
- cov_2q2n13agp2.s[4]++;
227763
+ cov_2q2n13agp2.s[6]++;
227624
227764
 
227625
227765
  if (this.$refs.title) {
227626
227766
  cov_2q2n13agp2.b[1][0]++;
227627
- cov_2q2n13agp2.s[5]++;
227767
+ cov_2q2n13agp2.s[7]++;
227628
227768
  this.$nextTick(this.$refs.title.focus);
227629
- cov_2q2n13agp2.s[6]++;
227769
+ cov_2q2n13agp2.s[8]++;
227630
227770
  this.resetForm();
227631
227771
  } else {
227632
227772
  cov_2q2n13agp2.b[1][1]++;
@@ -227638,7 +227778,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227638
227778
  },
227639
227779
  updated: function updated() {
227640
227780
  cov_2q2n13agp2.f[3]++;
227641
- cov_2q2n13agp2.s[7]++;
227781
+ cov_2q2n13agp2.s[9]++;
227642
227782
  this.attachFieldRefs();
227643
227783
  },
227644
227784
  methods: {
@@ -227646,43 +227786,43 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227646
227786
  var _this = this;
227647
227787
 
227648
227788
  cov_2q2n13agp2.f[4]++;
227649
- cov_2q2n13agp2.s[8]++;
227789
+ cov_2q2n13agp2.s[10]++;
227650
227790
  // Map all local and nested inputs to local 'refs' object
227651
227791
  this.fieldsToValidate.forEach(function (field) {
227652
227792
  cov_2q2n13agp2.f[5]++;
227653
- cov_2q2n13agp2.s[9]++;
227793
+ cov_2q2n13agp2.s[11]++;
227654
227794
 
227655
227795
  if (has_default()(_this.$refs[field], 'reset')) {
227656
227796
  cov_2q2n13agp2.b[2][0]++;
227657
- cov_2q2n13agp2.s[10]++;
227797
+ cov_2q2n13agp2.s[12]++;
227658
227798
  _this.refs[field] = _this.$refs[field];
227659
227799
  } else {
227660
227800
  cov_2q2n13agp2.b[2][1]++;
227661
- cov_2q2n13agp2.s[11]++;
227801
+ cov_2q2n13agp2.s[13]++;
227662
227802
 
227663
227803
  if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
227664
227804
  cov_2q2n13agp2.b[3][0]++;
227665
- cov_2q2n13agp2.s[12]++;
227805
+ cov_2q2n13agp2.s[14]++;
227666
227806
  _this.refs[field] = _this.$refs[field].$refs.userSearchInput;
227667
227807
  } else {
227668
227808
  cov_2q2n13agp2.b[3][1]++;
227669
- cov_2q2n13agp2.s[13]++;
227809
+ cov_2q2n13agp2.s[15]++;
227670
227810
 
227671
227811
  if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
227672
227812
  cov_2q2n13agp2.b[4][0]++;
227673
- cov_2q2n13agp2.s[14]++;
227813
+ cov_2q2n13agp2.s[16]++;
227674
227814
  _this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
227675
227815
  } else {
227676
227816
  cov_2q2n13agp2.b[4][1]++;
227677
- cov_2q2n13agp2.s[15]++;
227817
+ cov_2q2n13agp2.s[17]++;
227678
227818
 
227679
227819
  if (has_default()(_this.$refs, "".concat(field, ".$refs.canRead.$refs.userSearchInput.reset"))) {
227680
227820
  cov_2q2n13agp2.b[5][0]++;
227681
- cov_2q2n13agp2.s[16]++;
227821
+ cov_2q2n13agp2.s[18]++;
227682
227822
  _this.refs['sharing.isPublic'] = _this.$refs[field].$refs.isPublic;
227683
- cov_2q2n13agp2.s[17]++;
227823
+ cov_2q2n13agp2.s[19]++;
227684
227824
  _this.refs['sharing.canRead'] = _this.$refs[field].$refs.canRead.$refs.userSearchInput;
227685
- cov_2q2n13agp2.s[18]++;
227825
+ cov_2q2n13agp2.s[20]++;
227686
227826
  _this.refs['sharing.isShare'] = _this.$refs[field].$refs.canShare.$refs.userSearchInput;
227687
227827
  } else {
227688
227828
  cov_2q2n13agp2.b[5][1]++;
@@ -227700,7 +227840,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227700
227840
  switch (_context.prev = _context.next) {
227701
227841
  case 0:
227702
227842
  cov_2q2n13agp2.f[6]++;
227703
- cov_2q2n13agp2.s[19]++;
227843
+ cov_2q2n13agp2.s[21]++;
227704
227844
 
227705
227845
  if (this.groups.length) {
227706
227846
  _context.next = 12;
@@ -227708,13 +227848,13 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227708
227848
  }
227709
227849
 
227710
227850
  cov_2q2n13agp2.b[6][0]++;
227711
- cov_2q2n13agp2.s[20]++;
227851
+ cov_2q2n13agp2.s[22]++;
227712
227852
  _context.next = 7;
227713
227853
  return fetchListRecords('groups');
227714
227854
 
227715
227855
  case 7:
227716
227856
  response = _context.sent;
227717
- cov_2q2n13agp2.s[21]++;
227857
+ cov_2q2n13agp2.s[23]++;
227718
227858
  this.groups = response.results;
227719
227859
  _context.next = 13;
227720
227860
  break;
@@ -227738,41 +227878,41 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227738
227878
  }(),
227739
227879
  toggleOptionalFields: function toggleOptionalFields() {
227740
227880
  cov_2q2n13agp2.f[7]++;
227741
- cov_2q2n13agp2.s[22]++;
227881
+ cov_2q2n13agp2.s[24]++;
227742
227882
  this.showOptionalFields = !this.showOptionalFields;
227743
- cov_2q2n13agp2.s[23]++;
227883
+ cov_2q2n13agp2.s[25]++;
227744
227884
  this.$nextTick(this.$refs.title.focus);
227745
- cov_2q2n13agp2.s[24]++;
227885
+ cov_2q2n13agp2.s[26]++;
227746
227886
  this.$nextTick(this.$refs.title.resetValidation);
227747
227887
  },
227748
227888
  resetForm: function resetForm() {
227749
227889
  cov_2q2n13agp2.f[8]++;
227750
- cov_2q2n13agp2.s[25]++;
227890
+ cov_2q2n13agp2.s[27]++;
227751
227891
  this.formHasErrors = false;
227752
- cov_2q2n13agp2.s[26]++;
227892
+ cov_2q2n13agp2.s[28]++;
227753
227893
  Object.values(this.refs).forEach(function (ref) {
227754
227894
  cov_2q2n13agp2.f[9]++;
227755
- cov_2q2n13agp2.s[27]++;
227895
+ cov_2q2n13agp2.s[29]++;
227756
227896
  return ref.reset();
227757
227897
  });
227758
227898
  },
227759
227899
  closeModal: function closeModal() {
227760
227900
  cov_2q2n13agp2.f[10]++;
227761
- cov_2q2n13agp2.s[28]++;
227901
+ cov_2q2n13agp2.s[30]++;
227762
227902
  this.resetForm();
227763
- cov_2q2n13agp2.s[29]++;
227903
+ cov_2q2n13agp2.s[31]++;
227764
227904
  this.$emit('close-modal');
227765
227905
  },
227766
227906
  updateValue: function updateValue(data) {
227767
227907
  cov_2q2n13agp2.f[11]++;
227768
- cov_2q2n13agp2.s[30]++;
227908
+ cov_2q2n13agp2.s[32]++;
227769
227909
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
227770
227910
  },
227771
227911
  updateSharing: function updateSharing(data) {
227772
227912
  cov_2q2n13agp2.f[12]++;
227773
- cov_2q2n13agp2.s[31]++;
227913
+ cov_2q2n13agp2.s[33]++;
227774
227914
  this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227775
- cov_2q2n13agp2.s[32]++;
227915
+ cov_2q2n13agp2.s[34]++;
227776
227916
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), {}, {
227777
227917
  sharing: Object(helpers["n" /* snakifyKeys */])(this.sharing)
227778
227918
  });
@@ -227786,48 +227926,48 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227786
227926
  switch (_context2.prev = _context2.next) {
227787
227927
  case 0:
227788
227928
  cov_2q2n13agp2.f[13]++;
227789
- cov_2q2n13agp2.s[33]++;
227929
+ cov_2q2n13agp2.s[35]++;
227790
227930
  this.formHasErrors = false;
227791
- cov_2q2n13agp2.s[34]++;
227931
+ cov_2q2n13agp2.s[36]++;
227792
227932
  this.attachFieldRefs();
227793
- cov_2q2n13agp2.s[35]++;
227933
+ cov_2q2n13agp2.s[37]++;
227794
227934
  Object.values(this.refs).forEach(function (ref) {
227795
227935
  cov_2q2n13agp2.f[14]++;
227796
- cov_2q2n13agp2.s[36]++;
227936
+ cov_2q2n13agp2.s[38]++;
227797
227937
  return ref.validate(true);
227798
227938
  });
227799
- cov_2q2n13agp2.s[37]++;
227939
+ cov_2q2n13agp2.s[39]++;
227800
227940
 
227801
227941
  if (!this.formHasErrors) {
227802
227942
  cov_2q2n13agp2.b[7][0]++;
227803
- cov_2q2n13agp2.s[38]++;
227943
+ cov_2q2n13agp2.s[40]++;
227804
227944
  createRecord('projects', this.project).then(function (response) {
227805
227945
  cov_2q2n13agp2.f[15]++;
227806
- var projectId = (cov_2q2n13agp2.s[39]++, _this2.$get(response, 'pk', ''));
227807
- cov_2q2n13agp2.s[40]++;
227946
+ var projectId = (cov_2q2n13agp2.s[41]++, _this2.$get(response, 'pk', ''));
227947
+ cov_2q2n13agp2.s[42]++;
227808
227948
 
227809
227949
  _this2.$store.dispatch(SHOW_ALERT, {
227810
227950
  message: "Project ".concat(projectId, " was succesfully created.")
227811
227951
  });
227812
227952
 
227813
- cov_2q2n13agp2.s[41]++;
227953
+ cov_2q2n13agp2.s[43]++;
227814
227954
 
227815
227955
  _this2.$store.dispatch(SHOW_PANEL, {
227816
227956
  project: projectId
227817
227957
  });
227818
227958
 
227819
- cov_2q2n13agp2.s[42]++;
227959
+ cov_2q2n13agp2.s[44]++;
227820
227960
 
227821
227961
  _this2.closeModal();
227822
227962
  }).catch(function (error) {
227823
227963
  cov_2q2n13agp2.f[16]++;
227824
- cov_2q2n13agp2.s[43]++;
227964
+ cov_2q2n13agp2.s[45]++;
227825
227965
 
227826
227966
  if (error.response) {
227827
227967
  cov_2q2n13agp2.b[8][0]++;
227828
- cov_2q2n13agp2.s[44]++;
227968
+ cov_2q2n13agp2.s[46]++;
227829
227969
  _this2.errorMessages = error.response.data;
227830
- cov_2q2n13agp2.s[45]++;
227970
+ cov_2q2n13agp2.s[47]++;
227831
227971
 
227832
227972
  _this2.$store.dispatch(SHOW_ALERT, {
227833
227973
  error: 'The project could not be created. Please try again.'
@@ -227872,8 +228012,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
227872
228012
 
227873
228013
  var NewProjectModal_component = normalizeComponent(
227874
228014
  projects_NewProjectModalvue_type_script_lang_js_,
227875
- NewProjectModalvue_type_template_id_8db07d96_render,
227876
- NewProjectModalvue_type_template_id_8db07d96_staticRenderFns,
228015
+ NewProjectModalvue_type_template_id_834662e2_render,
228016
+ NewProjectModalvue_type_template_id_834662e2_staticRenderFns,
227877
228017
  false,
227878
228018
  null,
227879
228019
  null,