@papaemmelab/isabl-web 0.3.19 → 0.3.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.19\",\"scripts\":{\"serve\":\"vue-cli-service serve\",\"lint\":\"vue-cli-service lint\",\"build-lib\":\"vue-cli-service build --target lib --name isabl-web ./src/main.js\",\"build-wc\":\"vue-cli-service build --target wc --name isabl-web ./src/components/*.vue\",\"build-wc-async\":\"vue-cli-service build --target wc-async --name isabl-web ./src/components/*.vue\",\"publish-app\":\"yarn version --patch && yarn build-lib && yarn publish --access public\",\"dev\":\"yarn build-lib --watch\",\"test:unit\":\"vue-cli-service test:unit\",\"test:e2e\":\"vue-cli-service test:e2e\",\"test:travis\":\"yarn test:e2e --headless\",\"test:submissions\":\"node tests/utils/create_test_submission.js\",\"test:report-coverage\":\"nyc report --reporter=text-lcov > coverage.lcov && codecov -t $CODECOV_TOKEN\",\"demo\":\"nodemon demo/demo-app.js\"},\"dependencies\":{\"@mdi/font\":\"^7.0.96\",\"ansi_up\":\"^5\",\"axios\":\"^0.21.1\",\"crossfilter\":\"^1.3.12\",\"crossfilter2\":\"^1.4.7\",\"d3-tip\":\"^0.9.1\",\"dc\":\"3.1.2\",\"detect-csv\":\"^1.1.0\",\"js-md5\":\"^0.7.3\",\"minify-css-string\":\"^1.0.0\",\"moment\":\"^2.22.2\",\"register-service-worker\":\"^1.5.2\",\"v-hotkey\":\"^0.6.0\",\"vue\":\"^2.5.16\",\"vue-clipboard2\":\"^0.2.1\",\"vue-gallery\":\"^1.4.0\",\"vue-highlightjs\":\"^1.3.3\",\"vue-json-excel\":\"^0.2.5\",\"vue-observe-visibility\":\"^0.4.6\",\"vue-router\":\"^3.0.1\",\"vue-upload-component\":\"^2.8.11\",\"vuetify\":\"2.6.10\",\"vuex\":\"^3.0.1\",\"vuex-router-sync\":\"^5.0.0\"},\"devDependencies\":{\"@cypress/code-coverage\":\"^1.10.1\",\"@vue/cli-plugin-babel\":\"^3.3.0\",\"@vue/cli-plugin-e2e-cypress\":\"^3.3.0\",\"@vue/cli-plugin-eslint\":\"^3.3.0\",\"@vue/cli-plugin-pwa\":\"^3.3.0\",\"@vue/cli-plugin-unit-jest\":\"^3.3.0\",\"@vue/cli-service\":\"^3.3.0\",\"@vue/eslint-config-prettier\":\"^3.0.5\",\"@vue/test-utils\":\"^1.0.0-beta.20\",\"axios-mock-adapter\":\"^1.15.0\",\"babel-core\":\"7.0.0-bridge.0\",\"babel-jest\":\"^23.0.1\",\"babel-plugin-istanbul\":\"^5.2.0\",\"codecov\":\"^3.6.1\",\"eslint-plugin-vuetify\":\"^1.1.0\",\"express\":\"^4.16.3\",\"html-webpack-plugin\":\"^3.2.0\",\"istanbul-lib-coverage\":\"^2.0.5\",\"mini-css-extract-plugin\":\"^0.4.2\",\"nyc\":\"^14.1.1\",\"sass\":\"^1.55.0\",\"sass-loader\":\"^7.0.1\",\"vue-template-compiler\":\"^2.5.16\",\"xlsx-populate\":\"^1.19.1\"},\"browserslist\":[\"> 1%\",\"last 2 versions\",\"not ie <= 8\"],\"main\":\"./dist/isabl-web.umd.min.js\",\"license\":\"MIT\",\"files\":[\"dist/isabl-web*.js\"],\"author\":\"Juan S. Medina - Juan E. Arango\",\"description\":\"Isabl Frontend of the MSK Academic License.\",\"bugs\":{\"url\":\"https://github.com/papaemmelab/isabl_web/issues\"},\"homepage\":\"https://github.com/papaemmelab/isabl_web#readme\"}");
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=9dcdd18a&
222936
- var NewProjectModalvue_type_template_id_9dcdd18a_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-modal',{attrs:{"show-modal":_vm.showModal,"max-width":"800px"},on:{"close-modal":_vm.closeModal},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("Create Project")]},proxy:true},{key:"content",fn:function(){return [_c('v-container',{staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"title",staticClass:"pt-6",attrs:{"v-show":_vm.showModal,"rules":[_vm.rules.required],"error-messages":_vm.errorMessages.title,"label":"Project Title","data-test":"new-project-title-input"},on:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.submit.apply(null, arguments)}},model:{value:(_vm.project.title),callback:function ($$v) {_vm.$set(_vm.project, "title", $$v)},expression:"project.title"}})],1)],1),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showOptionalFields),expression:"showOptionalFields"}],staticClass:"pa-0"},[_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-text-field',{ref:"shortTitle",attrs:{"rules":[_vm.rules.unicode, _vm.rules.min10],"error-messages":_vm.errorMessages.short_title,"label":"Project Short Title","data-test":"new-project-short-input","counter":"","dense":"","maxlength":"30","hint":"Think of the objective of the project."},model:{value:(_vm.project.shortTitle),callback:function ($$v) {_vm.$set(_vm.project, "shortTitle", $$v)},expression:"project.shortTitle"}})],1)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_c('v-select',{ref:"group",attrs:{"items":_vm.groups,"return-object":"","item-text":"slug","label":"Group","dense":"","data-test":"new-project-groups-input"},model:{value:(_vm.project.group),callback:function ($$v) {_vm.$set(_vm.project, "group", $$v)},expression:"project.group"}})],1)],1),_c('div',{staticClass:"text-h6 primary--text pt-8"},[_vm._v("\n Participants\n ")]),_c('v-row',[_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"principalInvestigator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.principal_investigator,"field":"principalInvestigator","label":"Principal Investigator","data-test":"new-project-pi-input","hint":"Laboratory head or principal investigator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"owner",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.owner,"field":"owner","label":"Project Owner","data-test":"new-project-owner-input","hint":"Who deals with the nitty-gritty of the project","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"coordinator",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.coordinator,"field":"coordinator","label":"Coordinator","data-test":"new-project-coord-input","hint":"Project manager or coordinator","dense":""},on:{"update-value":_vm.updateValue}})],1),_c('v-col',{staticClass:"pb-0",attrs:{"cols":"6"}},[_c('user-search-input',{ref:"analyst",attrs:{"model":_vm.project,"rules":[_vm.rules.email],"error-messages":_vm.errorMessages.analyst,"field":"analyst","label":"Data Analyst","data-test":"new-project-analyst-input","hint":"Person responsible for the data analysis"},on:{"update-value":_vm.updateValue}})],1)],1),_c('sharing-settings',{ref:"sharing",staticClass:"pt-8",attrs:{"sharing":_vm.sharing,"error-messages":_vm.errorMessages.sharing},on:{"update-sharing":_vm.updateSharing}})],1)],1)]},proxy:true},{key:"footer-actions",fn:function(){return [_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-optional-btn","text":""},on:{"click":_vm.toggleOptionalFields}},[_vm._v("Optional Fields")]),_c('v-btn',{attrs:{"color":"primary darken-1","data-test":"new-project-create-btn","text":""},on:{"click":_vm.submit}},[_vm._v("Create")])]},proxy:true}])})}
222937
- var NewProjectModalvue_type_template_id_9dcdd18a_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=9dcdd18a&
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 = "59819bdd4a6ee9b4fa2955075f54f43083d53882";
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,57 +226414,57 @@ 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,
226311
- column: 6
226422
+ line: 248,
226423
+ column: 10
226312
226424
  },
226313
226425
  end: {
226314
- line: 255,
226315
- column: 7
226426
+ line: 248,
226427
+ column: 94
226316
226428
  }
226317
226429
  },
226318
226430
  "20": {
226319
226431
  start: {
226320
- line: 253,
226321
- column: 25
226432
+ line: 249,
226433
+ column: 10
226322
226434
  },
226323
226435
  end: {
226324
- line: 253,
226325
- column: 57
226436
+ line: 249,
226437
+ column: 95
226326
226438
  }
226327
226439
  },
226328
226440
  "21": {
226329
226441
  start: {
226330
226442
  line: 254,
226331
- column: 8
226443
+ column: 6
226332
226444
  },
226333
226445
  end: {
226334
- line: 254,
226335
- column: 38
226446
+ line: 257,
226447
+ column: 7
226336
226448
  }
226337
226449
  },
226338
226450
  "22": {
226339
226451
  start: {
226340
- line: 258,
226341
- column: 6
226452
+ line: 255,
226453
+ column: 25
226342
226454
  },
226343
226455
  end: {
226344
- line: 258,
226345
- column: 56
226456
+ line: 255,
226457
+ column: 57
226346
226458
  }
226347
226459
  },
226348
226460
  "23": {
226349
226461
  start: {
226350
- line: 259,
226351
- column: 6
226462
+ line: 256,
226463
+ column: 8
226352
226464
  },
226353
226465
  end: {
226354
- line: 259,
226355
- column: 44
226466
+ line: 256,
226467
+ column: 38
226356
226468
  }
226357
226469
  },
226358
226470
  "24": {
@@ -226362,107 +226474,107 @@ var cov_2q2n13agp2 = function () {
226362
226474
  },
226363
226475
  end: {
226364
226476
  line: 260,
226365
- column: 54
226477
+ column: 56
226366
226478
  }
226367
226479
  },
226368
226480
  "25": {
226369
226481
  start: {
226370
- line: 263,
226482
+ line: 261,
226371
226483
  column: 6
226372
226484
  },
226373
226485
  end: {
226374
- line: 263,
226375
- column: 32
226486
+ line: 261,
226487
+ column: 44
226376
226488
  }
226377
226489
  },
226378
226490
  "26": {
226379
226491
  start: {
226380
- line: 264,
226492
+ line: 262,
226381
226493
  column: 6
226382
226494
  },
226383
226495
  end: {
226384
- line: 264,
226385
- column: 58
226496
+ line: 262,
226497
+ column: 54
226386
226498
  }
226387
226499
  },
226388
226500
  "27": {
226389
226501
  start: {
226390
- line: 264,
226391
- column: 46
226502
+ line: 265,
226503
+ column: 6
226392
226504
  },
226393
226505
  end: {
226394
- line: 264,
226395
- column: 57
226506
+ line: 265,
226507
+ column: 32
226396
226508
  }
226397
226509
  },
226398
226510
  "28": {
226399
226511
  start: {
226400
- line: 267,
226512
+ line: 266,
226401
226513
  column: 6
226402
226514
  },
226403
226515
  end: {
226404
- line: 267,
226405
- column: 22
226516
+ line: 266,
226517
+ column: 58
226406
226518
  }
226407
226519
  },
226408
226520
  "29": {
226409
226521
  start: {
226410
- line: 268,
226411
- column: 6
226522
+ line: 266,
226523
+ column: 46
226412
226524
  },
226413
226525
  end: {
226414
- line: 268,
226415
- column: 31
226526
+ line: 266,
226527
+ column: 57
226416
226528
  }
226417
226529
  },
226418
226530
  "30": {
226419
226531
  start: {
226420
- line: 271,
226532
+ line: 269,
226421
226533
  column: 6
226422
226534
  },
226423
226535
  end: {
226424
- line: 271,
226425
- column: 23
226536
+ line: 269,
226537
+ column: 22
226426
226538
  }
226427
226539
  },
226428
226540
  "31": {
226429
226541
  start: {
226430
- line: 272,
226542
+ line: 270,
226431
226543
  column: 6
226432
226544
  },
226433
226545
  end: {
226434
- line: 275,
226435
- column: 7
226546
+ line: 270,
226547
+ column: 31
226436
226548
  }
226437
226549
  },
226438
226550
  "32": {
226439
226551
  start: {
226440
- line: 278,
226552
+ line: 273,
226441
226553
  column: 6
226442
226554
  },
226443
226555
  end: {
226444
- line: 281,
226556
+ line: 276,
226445
226557
  column: 7
226446
226558
  }
226447
226559
  },
226448
226560
  "33": {
226449
226561
  start: {
226450
- line: 282,
226562
+ line: 279,
226451
226563
  column: 6
226452
226564
  },
226453
226565
  end: {
226454
- line: 285,
226566
+ line: 282,
226455
226567
  column: 7
226456
226568
  }
226457
226569
  },
226458
226570
  "34": {
226459
226571
  start: {
226460
- line: 288,
226572
+ line: 283,
226461
226573
  column: 6
226462
226574
  },
226463
226575
  end: {
226464
- line: 288,
226465
- column: 32
226576
+ line: 286,
226577
+ column: 7
226466
226578
  }
226467
226579
  },
226468
226580
  "35": {
@@ -226472,7 +226584,7 @@ var cov_2q2n13agp2 = function () {
226472
226584
  },
226473
226585
  end: {
226474
226586
  line: 289,
226475
- column: 28
226587
+ column: 32
226476
226588
  }
226477
226589
  },
226478
226590
  "36": {
@@ -226482,97 +226594,97 @@ var cov_2q2n13agp2 = function () {
226482
226594
  },
226483
226595
  end: {
226484
226596
  line: 290,
226485
- column: 65
226597
+ column: 28
226486
226598
  }
226487
226599
  },
226488
226600
  "37": {
226489
226601
  start: {
226490
- line: 290,
226491
- column: 46
226602
+ line: 291,
226603
+ column: 6
226492
226604
  },
226493
226605
  end: {
226494
- line: 290,
226495
- column: 64
226606
+ line: 291,
226607
+ column: 65
226496
226608
  }
226497
226609
  },
226498
226610
  "38": {
226499
226611
  start: {
226500
- line: 292,
226501
- column: 6
226612
+ line: 291,
226613
+ column: 46
226502
226614
  },
226503
226615
  end: {
226504
- line: 313,
226505
- column: 7
226616
+ line: 291,
226617
+ column: 64
226506
226618
  }
226507
226619
  },
226508
226620
  "39": {
226509
226621
  start: {
226510
226622
  line: 293,
226511
- column: 8
226623
+ column: 6
226512
226624
  },
226513
226625
  end: {
226514
- line: 312,
226515
- column: 12
226626
+ line: 314,
226627
+ column: 7
226516
226628
  }
226517
226629
  },
226518
226630
  "40": {
226519
226631
  start: {
226520
- line: 295,
226521
- column: 30
226632
+ line: 294,
226633
+ column: 8
226522
226634
  },
226523
226635
  end: {
226524
- line: 295,
226525
- column: 59
226636
+ line: 313,
226637
+ column: 12
226526
226638
  }
226527
226639
  },
226528
226640
  "41": {
226529
226641
  start: {
226530
226642
  line: 296,
226531
- column: 12
226643
+ column: 30
226532
226644
  },
226533
226645
  end: {
226534
- line: 298,
226535
- column: 14
226646
+ line: 296,
226647
+ column: 59
226536
226648
  }
226537
226649
  },
226538
226650
  "42": {
226539
226651
  start: {
226540
- line: 300,
226652
+ line: 297,
226541
226653
  column: 12
226542
226654
  },
226543
226655
  end: {
226544
- line: 302,
226656
+ line: 299,
226545
226657
  column: 14
226546
226658
  }
226547
226659
  },
226548
226660
  "43": {
226549
226661
  start: {
226550
- line: 303,
226662
+ line: 301,
226551
226663
  column: 12
226552
226664
  },
226553
226665
  end: {
226554
226666
  line: 303,
226555
- column: 29
226667
+ column: 14
226556
226668
  }
226557
226669
  },
226558
226670
  "44": {
226559
226671
  start: {
226560
- line: 306,
226672
+ line: 304,
226561
226673
  column: 12
226562
226674
  },
226563
226675
  end: {
226564
- line: 311,
226565
- column: 13
226676
+ line: 304,
226677
+ column: 29
226566
226678
  }
226567
226679
  },
226568
226680
  "45": {
226569
226681
  start: {
226570
226682
  line: 307,
226571
- column: 14
226683
+ column: 12
226572
226684
  },
226573
226685
  end: {
226574
- line: 307,
226575
- column: 54
226686
+ line: 312,
226687
+ column: 13
226576
226688
  }
226577
226689
  },
226578
226690
  "46": {
@@ -226581,7 +226693,17 @@ var cov_2q2n13agp2 = function () {
226581
226693
  column: 14
226582
226694
  },
226583
226695
  end: {
226584
- line: 310,
226696
+ line: 308,
226697
+ column: 54
226698
+ }
226699
+ },
226700
+ "47": {
226701
+ start: {
226702
+ line: 309,
226703
+ column: 14
226704
+ },
226705
+ end: {
226706
+ line: 311,
226585
226707
  column: 16
226586
226708
  }
226587
226709
  }
@@ -226629,7 +226751,7 @@ var cov_2q2n13agp2 = function () {
226629
226751
  column: 9
226630
226752
  },
226631
226753
  end: {
226632
- line: 218,
226754
+ line: 220,
226633
226755
  column: 3
226634
226756
  }
226635
226757
  },
@@ -226639,660 +226761,660 @@ var cov_2q2n13agp2 = function () {
226639
226761
  name: "(anonymous_2)",
226640
226762
  decl: {
226641
226763
  start: {
226642
- line: 220,
226764
+ line: 222,
226643
226765
  column: 4
226644
226766
  },
226645
226767
  end: {
226646
- line: 220,
226768
+ line: 222,
226647
226769
  column: 5
226648
226770
  }
226649
226771
  },
226650
226772
  loc: {
226651
226773
  start: {
226652
- line: 220,
226774
+ line: 222,
226653
226775
  column: 21
226654
226776
  },
226655
226777
  end: {
226656
- line: 229,
226778
+ line: 231,
226657
226779
  column: 5
226658
226780
  }
226659
226781
  },
226660
- line: 220
226782
+ line: 222
226661
226783
  },
226662
226784
  "3": {
226663
226785
  name: "(anonymous_3)",
226664
226786
  decl: {
226665
226787
  start: {
226666
- line: 231,
226788
+ line: 233,
226667
226789
  column: 2
226668
226790
  },
226669
226791
  end: {
226670
- line: 231,
226792
+ line: 233,
226671
226793
  column: 3
226672
226794
  }
226673
226795
  },
226674
226796
  loc: {
226675
226797
  start: {
226676
- line: 231,
226798
+ line: 233,
226677
226799
  column: 12
226678
226800
  },
226679
226801
  end: {
226680
- line: 233,
226802
+ line: 235,
226681
226803
  column: 3
226682
226804
  }
226683
226805
  },
226684
- line: 231
226806
+ line: 233
226685
226807
  },
226686
226808
  "4": {
226687
226809
  name: "(anonymous_4)",
226688
226810
  decl: {
226689
226811
  start: {
226690
- line: 235,
226812
+ line: 237,
226691
226813
  column: 4
226692
226814
  },
226693
226815
  end: {
226694
- line: 235,
226816
+ line: 237,
226695
226817
  column: 5
226696
226818
  }
226697
226819
  },
226698
226820
  loc: {
226699
226821
  start: {
226700
- line: 235,
226822
+ line: 237,
226701
226823
  column: 22
226702
226824
  },
226703
226825
  end: {
226704
- line: 250,
226826
+ line: 252,
226705
226827
  column: 5
226706
226828
  }
226707
226829
  },
226708
- line: 235
226830
+ line: 237
226709
226831
  },
226710
226832
  "5": {
226711
226833
  name: "(anonymous_5)",
226712
226834
  decl: {
226713
226835
  start: {
226714
- line: 237,
226836
+ line: 239,
226715
226837
  column: 36
226716
226838
  },
226717
226839
  end: {
226718
- line: 237,
226840
+ line: 239,
226719
226841
  column: 37
226720
226842
  }
226721
226843
  },
226722
226844
  loc: {
226723
226845
  start: {
226724
- line: 237,
226846
+ line: 239,
226725
226847
  column: 45
226726
226848
  },
226727
226849
  end: {
226728
- line: 249,
226850
+ line: 251,
226729
226851
  column: 7
226730
226852
  }
226731
226853
  },
226732
- line: 237
226854
+ line: 239
226733
226855
  },
226734
226856
  "6": {
226735
226857
  name: "(anonymous_6)",
226736
226858
  decl: {
226737
226859
  start: {
226738
- line: 251,
226860
+ line: 253,
226739
226861
  column: 4
226740
226862
  },
226741
226863
  end: {
226742
- line: 251,
226864
+ line: 253,
226743
226865
  column: 5
226744
226866
  }
226745
226867
  },
226746
226868
  loc: {
226747
226869
  start: {
226748
- line: 251,
226870
+ line: 253,
226749
226871
  column: 24
226750
226872
  },
226751
226873
  end: {
226752
- line: 256,
226874
+ line: 258,
226753
226875
  column: 5
226754
226876
  }
226755
226877
  },
226756
- line: 251
226878
+ line: 253
226757
226879
  },
226758
226880
  "7": {
226759
226881
  name: "(anonymous_7)",
226760
226882
  decl: {
226761
226883
  start: {
226762
- line: 257,
226884
+ line: 259,
226763
226885
  column: 4
226764
226886
  },
226765
226887
  end: {
226766
- line: 257,
226888
+ line: 259,
226767
226889
  column: 5
226768
226890
  }
226769
226891
  },
226770
226892
  loc: {
226771
226893
  start: {
226772
- line: 257,
226894
+ line: 259,
226773
226895
  column: 27
226774
226896
  },
226775
226897
  end: {
226776
- line: 261,
226898
+ line: 263,
226777
226899
  column: 5
226778
226900
  }
226779
226901
  },
226780
- line: 257
226902
+ line: 259
226781
226903
  },
226782
226904
  "8": {
226783
226905
  name: "(anonymous_8)",
226784
226906
  decl: {
226785
226907
  start: {
226786
- line: 262,
226908
+ line: 264,
226787
226909
  column: 4
226788
226910
  },
226789
226911
  end: {
226790
- line: 262,
226912
+ line: 264,
226791
226913
  column: 5
226792
226914
  }
226793
226915
  },
226794
226916
  loc: {
226795
226917
  start: {
226796
- line: 262,
226918
+ line: 264,
226797
226919
  column: 16
226798
226920
  },
226799
226921
  end: {
226800
- line: 265,
226922
+ line: 267,
226801
226923
  column: 5
226802
226924
  }
226803
226925
  },
226804
- line: 262
226926
+ line: 264
226805
226927
  },
226806
226928
  "9": {
226807
226929
  name: "(anonymous_9)",
226808
226930
  decl: {
226809
226931
  start: {
226810
- line: 264,
226932
+ line: 266,
226811
226933
  column: 39
226812
226934
  },
226813
226935
  end: {
226814
- line: 264,
226936
+ line: 266,
226815
226937
  column: 40
226816
226938
  }
226817
226939
  },
226818
226940
  loc: {
226819
226941
  start: {
226820
- line: 264,
226942
+ line: 266,
226821
226943
  column: 46
226822
226944
  },
226823
226945
  end: {
226824
- line: 264,
226946
+ line: 266,
226825
226947
  column: 57
226826
226948
  }
226827
226949
  },
226828
- line: 264
226950
+ line: 266
226829
226951
  },
226830
226952
  "10": {
226831
226953
  name: "(anonymous_10)",
226832
226954
  decl: {
226833
226955
  start: {
226834
- line: 266,
226956
+ line: 268,
226835
226957
  column: 4
226836
226958
  },
226837
226959
  end: {
226838
- line: 266,
226960
+ line: 268,
226839
226961
  column: 5
226840
226962
  }
226841
226963
  },
226842
226964
  loc: {
226843
226965
  start: {
226844
- line: 266,
226966
+ line: 268,
226845
226967
  column: 17
226846
226968
  },
226847
226969
  end: {
226848
- line: 269,
226970
+ line: 271,
226849
226971
  column: 5
226850
226972
  }
226851
226973
  },
226852
- line: 266
226974
+ line: 268
226853
226975
  },
226854
226976
  "11": {
226855
226977
  name: "(anonymous_11)",
226856
226978
  decl: {
226857
226979
  start: {
226858
- line: 270,
226980
+ line: 272,
226859
226981
  column: 4
226860
226982
  },
226861
226983
  end: {
226862
- line: 270,
226984
+ line: 272,
226863
226985
  column: 5
226864
226986
  }
226865
226987
  },
226866
226988
  loc: {
226867
226989
  start: {
226868
- line: 270,
226990
+ line: 272,
226869
226991
  column: 22
226870
226992
  },
226871
226993
  end: {
226872
- line: 276,
226994
+ line: 277,
226873
226995
  column: 5
226874
226996
  }
226875
226997
  },
226876
- line: 270
226998
+ line: 272
226877
226999
  },
226878
227000
  "12": {
226879
227001
  name: "(anonymous_12)",
226880
227002
  decl: {
226881
227003
  start: {
226882
- line: 277,
227004
+ line: 278,
226883
227005
  column: 4
226884
227006
  },
226885
227007
  end: {
226886
- line: 277,
227008
+ line: 278,
226887
227009
  column: 5
226888
227010
  }
226889
227011
  },
226890
227012
  loc: {
226891
227013
  start: {
226892
- line: 277,
227014
+ line: 278,
226893
227015
  column: 24
226894
227016
  },
226895
227017
  end: {
226896
- line: 286,
227018
+ line: 287,
226897
227019
  column: 5
226898
227020
  }
226899
227021
  },
226900
- line: 277
227022
+ line: 278
226901
227023
  },
226902
227024
  "13": {
226903
227025
  name: "(anonymous_13)",
226904
227026
  decl: {
226905
227027
  start: {
226906
- line: 287,
227028
+ line: 288,
226907
227029
  column: 4
226908
227030
  },
226909
227031
  end: {
226910
- line: 287,
227032
+ line: 288,
226911
227033
  column: 5
226912
227034
  }
226913
227035
  },
226914
227036
  loc: {
226915
227037
  start: {
226916
- line: 287,
227038
+ line: 288,
226917
227039
  column: 19
226918
227040
  },
226919
227041
  end: {
226920
- line: 314,
227042
+ line: 315,
226921
227043
  column: 5
226922
227044
  }
226923
227045
  },
226924
- line: 287
227046
+ line: 288
226925
227047
  },
226926
227048
  "14": {
226927
227049
  name: "(anonymous_14)",
226928
227050
  decl: {
226929
227051
  start: {
226930
- line: 290,
227052
+ line: 291,
226931
227053
  column: 39
226932
227054
  },
226933
227055
  end: {
226934
- line: 290,
227056
+ line: 291,
226935
227057
  column: 40
226936
227058
  }
226937
227059
  },
226938
227060
  loc: {
226939
227061
  start: {
226940
- line: 290,
227062
+ line: 291,
226941
227063
  column: 46
226942
227064
  },
226943
227065
  end: {
226944
- line: 290,
227066
+ line: 291,
226945
227067
  column: 64
226946
227068
  }
226947
227069
  },
226948
- line: 290
227070
+ line: 291
226949
227071
  },
226950
227072
  "15": {
226951
227073
  name: "(anonymous_15)",
226952
227074
  decl: {
226953
227075
  start: {
226954
- line: 294,
227076
+ line: 295,
226955
227077
  column: 16
226956
227078
  },
226957
227079
  end: {
226958
- line: 294,
227080
+ line: 295,
226959
227081
  column: 17
226960
227082
  }
226961
227083
  },
226962
227084
  loc: {
226963
227085
  start: {
226964
- line: 294,
227086
+ line: 295,
226965
227087
  column: 28
226966
227088
  },
226967
227089
  end: {
226968
- line: 304,
227090
+ line: 305,
226969
227091
  column: 11
226970
227092
  }
226971
227093
  },
226972
- line: 294
227094
+ line: 295
226973
227095
  },
226974
227096
  "16": {
226975
227097
  name: "(anonymous_16)",
226976
227098
  decl: {
226977
227099
  start: {
226978
- line: 305,
227100
+ line: 306,
226979
227101
  column: 17
226980
227102
  },
226981
227103
  end: {
226982
- line: 305,
227104
+ line: 306,
226983
227105
  column: 18
226984
227106
  }
226985
227107
  },
226986
227108
  loc: {
226987
227109
  start: {
226988
- line: 305,
227110
+ line: 306,
226989
227111
  column: 26
226990
227112
  },
226991
227113
  end: {
226992
- line: 312,
227114
+ line: 313,
226993
227115
  column: 11
226994
227116
  }
226995
227117
  },
226996
- line: 305
227118
+ line: 306
226997
227119
  }
226998
227120
  },
226999
227121
  branchMap: {
227000
227122
  "0": {
227001
227123
  loc: {
227002
227124
  start: {
227003
- line: 221,
227125
+ line: 223,
227004
227126
  column: 6
227005
227127
  },
227006
227128
  end: {
227007
- line: 228,
227129
+ line: 230,
227008
227130
  column: 7
227009
227131
  }
227010
227132
  },
227011
227133
  type: "if",
227012
227134
  locations: [{
227013
227135
  start: {
227014
- line: 221,
227136
+ line: 223,
227015
227137
  column: 6
227016
227138
  },
227017
227139
  end: {
227018
- line: 228,
227140
+ line: 230,
227019
227141
  column: 7
227020
227142
  }
227021
227143
  }, {
227022
227144
  start: {
227023
- line: 221,
227145
+ line: 223,
227024
227146
  column: 6
227025
227147
  },
227026
227148
  end: {
227027
- line: 228,
227149
+ line: 230,
227028
227150
  column: 7
227029
227151
  }
227030
227152
  }],
227031
- line: 221
227153
+ line: 223
227032
227154
  },
227033
227155
  "1": {
227034
227156
  loc: {
227035
227157
  start: {
227036
- line: 224,
227158
+ line: 226,
227037
227159
  column: 8
227038
227160
  },
227039
227161
  end: {
227040
- line: 227,
227162
+ line: 229,
227041
227163
  column: 9
227042
227164
  }
227043
227165
  },
227044
227166
  type: "if",
227045
227167
  locations: [{
227046
227168
  start: {
227047
- line: 224,
227169
+ line: 226,
227048
227170
  column: 8
227049
227171
  },
227050
227172
  end: {
227051
- line: 227,
227173
+ line: 229,
227052
227174
  column: 9
227053
227175
  }
227054
227176
  }, {
227055
227177
  start: {
227056
- line: 224,
227178
+ line: 226,
227057
227179
  column: 8
227058
227180
  },
227059
227181
  end: {
227060
- line: 227,
227182
+ line: 229,
227061
227183
  column: 9
227062
227184
  }
227063
227185
  }],
227064
- line: 224
227186
+ line: 226
227065
227187
  },
227066
227188
  "2": {
227067
227189
  loc: {
227068
227190
  start: {
227069
- line: 238,
227191
+ line: 240,
227070
227192
  column: 8
227071
227193
  },
227072
227194
  end: {
227073
- line: 248,
227195
+ line: 250,
227074
227196
  column: 9
227075
227197
  }
227076
227198
  },
227077
227199
  type: "if",
227078
227200
  locations: [{
227079
227201
  start: {
227080
- line: 238,
227202
+ line: 240,
227081
227203
  column: 8
227082
227204
  },
227083
227205
  end: {
227084
- line: 248,
227206
+ line: 250,
227085
227207
  column: 9
227086
227208
  }
227087
227209
  }, {
227088
227210
  start: {
227089
- line: 238,
227211
+ line: 240,
227090
227212
  column: 8
227091
227213
  },
227092
227214
  end: {
227093
- line: 248,
227215
+ line: 250,
227094
227216
  column: 9
227095
227217
  }
227096
227218
  }],
227097
- line: 238
227219
+ line: 240
227098
227220
  },
227099
227221
  "3": {
227100
227222
  loc: {
227101
227223
  start: {
227102
- line: 240,
227224
+ line: 242,
227103
227225
  column: 15
227104
227226
  },
227105
227227
  end: {
227106
- line: 248,
227228
+ line: 250,
227107
227229
  column: 9
227108
227230
  }
227109
227231
  },
227110
227232
  type: "if",
227111
227233
  locations: [{
227112
227234
  start: {
227113
- line: 240,
227235
+ line: 242,
227114
227236
  column: 15
227115
227237
  },
227116
227238
  end: {
227117
- line: 248,
227239
+ line: 250,
227118
227240
  column: 9
227119
227241
  }
227120
227242
  }, {
227121
227243
  start: {
227122
- line: 240,
227244
+ line: 242,
227123
227245
  column: 15
227124
227246
  },
227125
227247
  end: {
227126
- line: 248,
227248
+ line: 250,
227127
227249
  column: 9
227128
227250
  }
227129
227251
  }],
227130
- line: 240
227252
+ line: 242
227131
227253
  },
227132
227254
  "4": {
227133
227255
  loc: {
227134
227256
  start: {
227135
- line: 242,
227257
+ line: 244,
227136
227258
  column: 15
227137
227259
  },
227138
227260
  end: {
227139
- line: 248,
227261
+ line: 250,
227140
227262
  column: 9
227141
227263
  }
227142
227264
  },
227143
227265
  type: "if",
227144
227266
  locations: [{
227145
227267
  start: {
227146
- line: 242,
227268
+ line: 244,
227147
227269
  column: 15
227148
227270
  },
227149
227271
  end: {
227150
- line: 248,
227272
+ line: 250,
227151
227273
  column: 9
227152
227274
  }
227153
227275
  }, {
227154
227276
  start: {
227155
- line: 242,
227277
+ line: 244,
227156
227278
  column: 15
227157
227279
  },
227158
227280
  end: {
227159
- line: 248,
227281
+ line: 250,
227160
227282
  column: 9
227161
227283
  }
227162
227284
  }],
227163
- line: 242
227285
+ line: 244
227164
227286
  },
227165
227287
  "5": {
227166
227288
  loc: {
227167
227289
  start: {
227168
- line: 244,
227290
+ line: 246,
227169
227291
  column: 15
227170
227292
  },
227171
227293
  end: {
227172
- line: 248,
227294
+ line: 250,
227173
227295
  column: 9
227174
227296
  }
227175
227297
  },
227176
227298
  type: "if",
227177
227299
  locations: [{
227178
227300
  start: {
227179
- line: 244,
227301
+ line: 246,
227180
227302
  column: 15
227181
227303
  },
227182
227304
  end: {
227183
- line: 248,
227305
+ line: 250,
227184
227306
  column: 9
227185
227307
  }
227186
227308
  }, {
227187
227309
  start: {
227188
- line: 244,
227310
+ line: 246,
227189
227311
  column: 15
227190
227312
  },
227191
227313
  end: {
227192
- line: 248,
227314
+ line: 250,
227193
227315
  column: 9
227194
227316
  }
227195
227317
  }],
227196
- line: 244
227318
+ line: 246
227197
227319
  },
227198
227320
  "6": {
227199
227321
  loc: {
227200
227322
  start: {
227201
- line: 252,
227323
+ line: 254,
227202
227324
  column: 6
227203
227325
  },
227204
227326
  end: {
227205
- line: 255,
227327
+ line: 257,
227206
227328
  column: 7
227207
227329
  }
227208
227330
  },
227209
227331
  type: "if",
227210
227332
  locations: [{
227211
227333
  start: {
227212
- line: 252,
227334
+ line: 254,
227213
227335
  column: 6
227214
227336
  },
227215
227337
  end: {
227216
- line: 255,
227338
+ line: 257,
227217
227339
  column: 7
227218
227340
  }
227219
227341
  }, {
227220
227342
  start: {
227221
- line: 252,
227343
+ line: 254,
227222
227344
  column: 6
227223
227345
  },
227224
227346
  end: {
227225
- line: 255,
227347
+ line: 257,
227226
227348
  column: 7
227227
227349
  }
227228
227350
  }],
227229
- line: 252
227351
+ line: 254
227230
227352
  },
227231
227353
  "7": {
227232
227354
  loc: {
227233
227355
  start: {
227234
- line: 292,
227356
+ line: 293,
227235
227357
  column: 6
227236
227358
  },
227237
227359
  end: {
227238
- line: 313,
227360
+ line: 314,
227239
227361
  column: 7
227240
227362
  }
227241
227363
  },
227242
227364
  type: "if",
227243
227365
  locations: [{
227244
227366
  start: {
227245
- line: 292,
227367
+ line: 293,
227246
227368
  column: 6
227247
227369
  },
227248
227370
  end: {
227249
- line: 313,
227371
+ line: 314,
227250
227372
  column: 7
227251
227373
  }
227252
227374
  }, {
227253
227375
  start: {
227254
- line: 292,
227376
+ line: 293,
227255
227377
  column: 6
227256
227378
  },
227257
227379
  end: {
227258
- line: 313,
227380
+ line: 314,
227259
227381
  column: 7
227260
227382
  }
227261
227383
  }],
227262
- line: 292
227384
+ line: 293
227263
227385
  },
227264
227386
  "8": {
227265
227387
  loc: {
227266
227388
  start: {
227267
- line: 306,
227389
+ line: 307,
227268
227390
  column: 12
227269
227391
  },
227270
227392
  end: {
227271
- line: 311,
227393
+ line: 312,
227272
227394
  column: 13
227273
227395
  }
227274
227396
  },
227275
227397
  type: "if",
227276
227398
  locations: [{
227277
227399
  start: {
227278
- line: 306,
227400
+ line: 307,
227279
227401
  column: 12
227280
227402
  },
227281
227403
  end: {
227282
- line: 311,
227404
+ line: 312,
227283
227405
  column: 13
227284
227406
  }
227285
227407
  }, {
227286
227408
  start: {
227287
- line: 306,
227409
+ line: 307,
227288
227410
  column: 12
227289
227411
  },
227290
227412
  end: {
227291
- line: 311,
227413
+ line: 312,
227292
227414
  column: 13
227293
227415
  }
227294
227416
  }],
227295
- line: 306
227417
+ line: 307
227296
227418
  }
227297
227419
  },
227298
227420
  s: {
@@ -227342,7 +227464,8 @@ var cov_2q2n13agp2 = function () {
227342
227464
  "43": 0,
227343
227465
  "44": 0,
227344
227466
  "45": 0,
227345
- "46": 0
227467
+ "46": 0,
227468
+ "47": 0
227346
227469
  },
227347
227470
  f: {
227348
227471
  "0": 0,
@@ -227378,13 +227501,13 @@ var cov_2q2n13agp2 = function () {
227378
227501
  version: 3,
227379
227502
  sources: ["NewProjectModal.vue"],
227380
227503
  names: [],
227381
- mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiKA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
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",
227382
227505
  file: "NewProjectModal.vue",
227383
227506
  sourceRoot: "src/components/projects",
227384
- sourcesContent: ["<template>\n <base-modal\n :show-modal=\"showModal\"\n max-width=\"800px\"\n @close-modal=\"closeModal\"\n >\n <template v-slot:title>Create Project</template>\n\n <template v-slot:content>\n <v-container\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"title\"\n v-model=\"project.title\"\n :v-show=\"showModal\"\n :rules=\"[rules.required]\"\n :error-messages=\"errorMessages.title\"\n label=\"Project Title\"\n data-test=\"new-project-title-input\"\n class=\"pt-6\"\n @keyup.enter=\"submit\"\n />\n </v-col>\n </v-row>\n\n <div\n v-show=\"showOptionalFields\"\n class=\"pa-0\"\n >\n <v-row>\n <v-col cols=\"16\">\n <v-text-field\n ref=\"shortTitle\"\n v-model=\"project.shortTitle\"\n :rules=\"[rules.unicode, rules.min10]\"\n :error-messages=\"errorMessages.short_title\"\n label=\"Project Short Title\"\n data-test=\"new-project-short-input\"\n counter\n dense\n maxlength=\"30\"\n hint=\"Think of the objective of the project.\"\n />\n </v-col>\n </v-row>\n\n <v-row>\n <v-col cols=\"16\">\n <v-select\n ref=\"group\"\n v-model=\"project.group\"\n :items=\"groups\"\n return-object\n item-text=\"slug\"\n label=\"Group\"\n dense\n data-test=\"new-project-groups-input\"\n />\n </v-col>\n </v-row>\n\n <div class=\"text-h6 primary--text pt-8\">\n Participants\n </div>\n\n <v-row>\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"principalInvestigator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.principal_investigator\"\n field=\"principalInvestigator\"\n label=\"Principal Investigator\"\n data-test=\"new-project-pi-input\"\n hint=\"Laboratory head or principal investigator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"owner\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.owner\"\n field=\"owner\"\n label=\"Project Owner\"\n data-test=\"new-project-owner-input\"\n hint=\"Who deals with the nitty-gritty of the project\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"coordinator\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.coordinator\"\n field=\"coordinator\"\n label=\"Coordinator\"\n data-test=\"new-project-coord-input\"\n hint=\"Project manager or coordinator\"\n dense\n @update-value=\"updateValue\"\n />\n </v-col>\n\n <v-col cols=\"6\" class=\"pb-0\">\n <user-search-input\n ref=\"analyst\"\n :model=\"project\"\n :rules=\"[rules.email]\"\n :error-messages=\"errorMessages.analyst\"\n field=\"analyst\"\n label=\"Data Analyst\"\n data-test=\"new-project-analyst-input\"\n hint=\"Person responsible for the data analysis\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <sharing-settings\n ref=\"sharing\"\n :sharing=\"sharing\"\n :error-messages=\"errorMessages.sharing\"\n class=\"pt-8\"\n @update-sharing=\"updateSharing\"\n />\n\n </div>\n\n </v-container>\n </template>\n\n <template v-slot:footer-actions>\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-optional-btn\"\n text\n @click=\"toggleOptionalFields\"\n >Optional Fields</v-btn>\n\n <v-btn\n color=\"primary darken-1\"\n data-test=\"new-project-create-btn\"\n text\n @click=\"submit\"\n >Create</v-btn>\n </template>\n </base-modal>\n</template>\n\n<script>\nimport has from 'lodash/has'\n\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport GroupSearchInput from '@/components/projects/GroupSearchInput'\nimport UserSearchInput from '@/components/projects/UserSearchInput'\nimport SharingSettings from '@/components/projects/SharingSettings'\nimport rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\nimport { snakifyKeys, camelifyKeys } from '@/utils/helpers'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput,\n SharingSettings\n },\n props: {\n showModal: {\n type: Boolean,\n default: false,\n required: true\n },\n projects: {\n type: Array,\n default: () => []\n }\n },\n data() {\n return {\n isLoading: false,\n errorMessages: {},\n formHasErrors: false,\n fieldsToValidate: [\n 'title',\n 'shortTitle',\n 'group',\n 'principalInvestigator',\n 'owner',\n 'coordinator',\n 'analyst',\n 'sharing'\n ],\n groups: [],\n project: {},\n sharing: { isPublic: true },\n refs: {},\n rules,\n showOptionalFields: true,\n users: [],\n usersQuery: '',\n camelifyKeys,\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n this.fetchGroups()\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n this.resetForm()\n }\n }\n }\n },\n updated() {\n this.attachFieldRefs()\n },\n methods: {\n attachFieldRefs() {\n // Map all local and nested inputs to local 'refs' object\n this.fieldsToValidate.forEach(field => {\n if (has(this.$refs[field], 'reset')) {\n this.refs[field] = this.$refs[field]\n } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.userSearchInput\n } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {\n this.refs[field] = this.$refs[field].$refs.groupSearchInput\n } else if (has(this.$refs, `${field}.$refs.canRead.$refs.userSearchInput.reset`)) {\n this.refs['sharing.isPublic'] = this.$refs[field].$refs.isPublic\n this.refs['sharing.canRead'] = this.$refs[field].$refs.canRead.$refs.userSearchInput\n this.refs['sharing.isShare'] = this.$refs[field].$refs.canShare.$refs.userSearchInput\n }\n })\n },\n async fetchGroups() {\n if (!this.groups.length) {\n const response = await fetchListRecords('groups')\n this.groups = response.results\n }\n },\n toggleOptionalFields() {\n this.showOptionalFields = !this.showOptionalFields\n this.$nextTick(this.$refs.title.focus)\n this.$nextTick(this.$refs.title.resetValidation)\n },\n resetForm() {\n this.formHasErrors = false\n Object.values(this.refs).forEach(ref => ref.reset())\n },\n closeModal() {\n this.resetForm()\n this.$emit('close-modal')\n },\n updateValue(data) {\n console.log(data)\n this.project = {\n ...this.project,\n ...data\n }\n },\n updateSharing(data) {\n this.sharing = {\n ...this.sharing,\n ...data\n }\n this.project = {\n ...this.project,\n sharing: snakifyKeys(this.sharing),\n }\n },\n async submit() {\n this.formHasErrors = false\n this.attachFieldRefs()\n Object.values(this.refs).forEach(ref => ref.validate(true))\n\n if (!this.formHasErrors) {\n createRecord('projects', this.project)\n .then(response => {\n const projectId = this.$get(response, 'pk', '')\n this.$store.dispatch(SHOW_ALERT, {\n message: `Project ${projectId} was succesfully created.`\n })\n\n this.$store.dispatch(SHOW_PANEL, {\n project: projectId\n })\n this.closeModal()\n })\n .catch(error => {\n if (error.response) {\n this.errorMessages = error.response.data\n this.$store.dispatch(SHOW_ALERT, {\n error: 'The project could not be created. Please try again.'\n })\n }\n })\n }\n },\n }\n}\n</script>\n\n<style lang=\"scss\">\n.v-expansion-panel__header {\n padding: 5px !important;\n}\n</style>\n"]
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"]
227385
227508
  },
227386
227509
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
227387
- hash: "59819bdd4a6ee9b4fa2955075f54f43083d53882"
227510
+ hash: "89acb85815fad1b23ec2d1fd2449b13bff323123"
227388
227511
  };
227389
227512
  var coverage = global[gcv] || (global[gcv] = {});
227390
227513
 
@@ -227602,17 +227725,23 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227602
227725
  },
227603
227726
  data: function data() {
227604
227727
  cov_2q2n13agp2.f[1]++;
227605
- 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]++;
227606
227737
  return {
227607
227738
  isLoading: false,
227608
227739
  errorMessages: {},
227609
227740
  formHasErrors: false,
227610
227741
  fieldsToValidate: ['title', 'shortTitle', 'group', 'principalInvestigator', 'owner', 'coordinator', 'analyst', 'sharing'],
227611
227742
  groups: [],
227612
- project: {},
227613
- sharing: {
227614
- isPublic: true
227615
- },
227743
+ project: project,
227744
+ sharing: sharing,
227616
227745
  refs: {},
227617
227746
  rules: rules,
227618
227747
  showOptionalFields: true,
@@ -227624,20 +227753,20 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227624
227753
  watch: {
227625
227754
  showModal: function showModal(value) {
227626
227755
  cov_2q2n13agp2.f[2]++;
227627
- cov_2q2n13agp2.s[2]++;
227756
+ cov_2q2n13agp2.s[4]++;
227628
227757
 
227629
227758
  if (value) {
227630
227759
  cov_2q2n13agp2.b[0][0]++;
227631
- cov_2q2n13agp2.s[3]++;
227760
+ cov_2q2n13agp2.s[5]++;
227632
227761
  this.fetchGroups(); // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
227633
227762
 
227634
- cov_2q2n13agp2.s[4]++;
227763
+ cov_2q2n13agp2.s[6]++;
227635
227764
 
227636
227765
  if (this.$refs.title) {
227637
227766
  cov_2q2n13agp2.b[1][0]++;
227638
- cov_2q2n13agp2.s[5]++;
227767
+ cov_2q2n13agp2.s[7]++;
227639
227768
  this.$nextTick(this.$refs.title.focus);
227640
- cov_2q2n13agp2.s[6]++;
227769
+ cov_2q2n13agp2.s[8]++;
227641
227770
  this.resetForm();
227642
227771
  } else {
227643
227772
  cov_2q2n13agp2.b[1][1]++;
@@ -227649,7 +227778,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227649
227778
  },
227650
227779
  updated: function updated() {
227651
227780
  cov_2q2n13agp2.f[3]++;
227652
- cov_2q2n13agp2.s[7]++;
227781
+ cov_2q2n13agp2.s[9]++;
227653
227782
  this.attachFieldRefs();
227654
227783
  },
227655
227784
  methods: {
@@ -227657,43 +227786,43 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227657
227786
  var _this = this;
227658
227787
 
227659
227788
  cov_2q2n13agp2.f[4]++;
227660
- cov_2q2n13agp2.s[8]++;
227789
+ cov_2q2n13agp2.s[10]++;
227661
227790
  // Map all local and nested inputs to local 'refs' object
227662
227791
  this.fieldsToValidate.forEach(function (field) {
227663
227792
  cov_2q2n13agp2.f[5]++;
227664
- cov_2q2n13agp2.s[9]++;
227793
+ cov_2q2n13agp2.s[11]++;
227665
227794
 
227666
227795
  if (has_default()(_this.$refs[field], 'reset')) {
227667
227796
  cov_2q2n13agp2.b[2][0]++;
227668
- cov_2q2n13agp2.s[10]++;
227797
+ cov_2q2n13agp2.s[12]++;
227669
227798
  _this.refs[field] = _this.$refs[field];
227670
227799
  } else {
227671
227800
  cov_2q2n13agp2.b[2][1]++;
227672
- cov_2q2n13agp2.s[11]++;
227801
+ cov_2q2n13agp2.s[13]++;
227673
227802
 
227674
227803
  if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
227675
227804
  cov_2q2n13agp2.b[3][0]++;
227676
- cov_2q2n13agp2.s[12]++;
227805
+ cov_2q2n13agp2.s[14]++;
227677
227806
  _this.refs[field] = _this.$refs[field].$refs.userSearchInput;
227678
227807
  } else {
227679
227808
  cov_2q2n13agp2.b[3][1]++;
227680
- cov_2q2n13agp2.s[13]++;
227809
+ cov_2q2n13agp2.s[15]++;
227681
227810
 
227682
227811
  if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
227683
227812
  cov_2q2n13agp2.b[4][0]++;
227684
- cov_2q2n13agp2.s[14]++;
227813
+ cov_2q2n13agp2.s[16]++;
227685
227814
  _this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
227686
227815
  } else {
227687
227816
  cov_2q2n13agp2.b[4][1]++;
227688
- cov_2q2n13agp2.s[15]++;
227817
+ cov_2q2n13agp2.s[17]++;
227689
227818
 
227690
227819
  if (has_default()(_this.$refs, "".concat(field, ".$refs.canRead.$refs.userSearchInput.reset"))) {
227691
227820
  cov_2q2n13agp2.b[5][0]++;
227692
- cov_2q2n13agp2.s[16]++;
227821
+ cov_2q2n13agp2.s[18]++;
227693
227822
  _this.refs['sharing.isPublic'] = _this.$refs[field].$refs.isPublic;
227694
- cov_2q2n13agp2.s[17]++;
227823
+ cov_2q2n13agp2.s[19]++;
227695
227824
  _this.refs['sharing.canRead'] = _this.$refs[field].$refs.canRead.$refs.userSearchInput;
227696
- cov_2q2n13agp2.s[18]++;
227825
+ cov_2q2n13agp2.s[20]++;
227697
227826
  _this.refs['sharing.isShare'] = _this.$refs[field].$refs.canShare.$refs.userSearchInput;
227698
227827
  } else {
227699
227828
  cov_2q2n13agp2.b[5][1]++;
@@ -227711,7 +227840,7 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227711
227840
  switch (_context.prev = _context.next) {
227712
227841
  case 0:
227713
227842
  cov_2q2n13agp2.f[6]++;
227714
- cov_2q2n13agp2.s[19]++;
227843
+ cov_2q2n13agp2.s[21]++;
227715
227844
 
227716
227845
  if (this.groups.length) {
227717
227846
  _context.next = 12;
@@ -227719,13 +227848,13 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227719
227848
  }
227720
227849
 
227721
227850
  cov_2q2n13agp2.b[6][0]++;
227722
- cov_2q2n13agp2.s[20]++;
227851
+ cov_2q2n13agp2.s[22]++;
227723
227852
  _context.next = 7;
227724
227853
  return fetchListRecords('groups');
227725
227854
 
227726
227855
  case 7:
227727
227856
  response = _context.sent;
227728
- cov_2q2n13agp2.s[21]++;
227857
+ cov_2q2n13agp2.s[23]++;
227729
227858
  this.groups = response.results;
227730
227859
  _context.next = 13;
227731
227860
  break;
@@ -227749,43 +227878,41 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227749
227878
  }(),
227750
227879
  toggleOptionalFields: function toggleOptionalFields() {
227751
227880
  cov_2q2n13agp2.f[7]++;
227752
- cov_2q2n13agp2.s[22]++;
227881
+ cov_2q2n13agp2.s[24]++;
227753
227882
  this.showOptionalFields = !this.showOptionalFields;
227754
- cov_2q2n13agp2.s[23]++;
227883
+ cov_2q2n13agp2.s[25]++;
227755
227884
  this.$nextTick(this.$refs.title.focus);
227756
- cov_2q2n13agp2.s[24]++;
227885
+ cov_2q2n13agp2.s[26]++;
227757
227886
  this.$nextTick(this.$refs.title.resetValidation);
227758
227887
  },
227759
227888
  resetForm: function resetForm() {
227760
227889
  cov_2q2n13agp2.f[8]++;
227761
- cov_2q2n13agp2.s[25]++;
227890
+ cov_2q2n13agp2.s[27]++;
227762
227891
  this.formHasErrors = false;
227763
- cov_2q2n13agp2.s[26]++;
227892
+ cov_2q2n13agp2.s[28]++;
227764
227893
  Object.values(this.refs).forEach(function (ref) {
227765
227894
  cov_2q2n13agp2.f[9]++;
227766
- cov_2q2n13agp2.s[27]++;
227895
+ cov_2q2n13agp2.s[29]++;
227767
227896
  return ref.reset();
227768
227897
  });
227769
227898
  },
227770
227899
  closeModal: function closeModal() {
227771
227900
  cov_2q2n13agp2.f[10]++;
227772
- cov_2q2n13agp2.s[28]++;
227901
+ cov_2q2n13agp2.s[30]++;
227773
227902
  this.resetForm();
227774
- cov_2q2n13agp2.s[29]++;
227903
+ cov_2q2n13agp2.s[31]++;
227775
227904
  this.$emit('close-modal');
227776
227905
  },
227777
227906
  updateValue: function updateValue(data) {
227778
227907
  cov_2q2n13agp2.f[11]++;
227779
- cov_2q2n13agp2.s[30]++;
227780
- console.log(data);
227781
- cov_2q2n13agp2.s[31]++;
227908
+ cov_2q2n13agp2.s[32]++;
227782
227909
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
227783
227910
  },
227784
227911
  updateSharing: function updateSharing(data) {
227785
227912
  cov_2q2n13agp2.f[12]++;
227786
- cov_2q2n13agp2.s[32]++;
227787
- this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227788
227913
  cov_2q2n13agp2.s[33]++;
227914
+ this.sharing = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.sharing), data);
227915
+ cov_2q2n13agp2.s[34]++;
227789
227916
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), {}, {
227790
227917
  sharing: Object(helpers["n" /* snakifyKeys */])(this.sharing)
227791
227918
  });
@@ -227799,48 +227926,48 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
227799
227926
  switch (_context2.prev = _context2.next) {
227800
227927
  case 0:
227801
227928
  cov_2q2n13agp2.f[13]++;
227802
- cov_2q2n13agp2.s[34]++;
227803
- this.formHasErrors = false;
227804
227929
  cov_2q2n13agp2.s[35]++;
227805
- this.attachFieldRefs();
227930
+ this.formHasErrors = false;
227806
227931
  cov_2q2n13agp2.s[36]++;
227932
+ this.attachFieldRefs();
227933
+ cov_2q2n13agp2.s[37]++;
227807
227934
  Object.values(this.refs).forEach(function (ref) {
227808
227935
  cov_2q2n13agp2.f[14]++;
227809
- cov_2q2n13agp2.s[37]++;
227936
+ cov_2q2n13agp2.s[38]++;
227810
227937
  return ref.validate(true);
227811
227938
  });
227812
- cov_2q2n13agp2.s[38]++;
227939
+ cov_2q2n13agp2.s[39]++;
227813
227940
 
227814
227941
  if (!this.formHasErrors) {
227815
227942
  cov_2q2n13agp2.b[7][0]++;
227816
- cov_2q2n13agp2.s[39]++;
227943
+ cov_2q2n13agp2.s[40]++;
227817
227944
  createRecord('projects', this.project).then(function (response) {
227818
227945
  cov_2q2n13agp2.f[15]++;
227819
- var projectId = (cov_2q2n13agp2.s[40]++, _this2.$get(response, 'pk', ''));
227820
- cov_2q2n13agp2.s[41]++;
227946
+ var projectId = (cov_2q2n13agp2.s[41]++, _this2.$get(response, 'pk', ''));
227947
+ cov_2q2n13agp2.s[42]++;
227821
227948
 
227822
227949
  _this2.$store.dispatch(SHOW_ALERT, {
227823
227950
  message: "Project ".concat(projectId, " was succesfully created.")
227824
227951
  });
227825
227952
 
227826
- cov_2q2n13agp2.s[42]++;
227953
+ cov_2q2n13agp2.s[43]++;
227827
227954
 
227828
227955
  _this2.$store.dispatch(SHOW_PANEL, {
227829
227956
  project: projectId
227830
227957
  });
227831
227958
 
227832
- cov_2q2n13agp2.s[43]++;
227959
+ cov_2q2n13agp2.s[44]++;
227833
227960
 
227834
227961
  _this2.closeModal();
227835
227962
  }).catch(function (error) {
227836
227963
  cov_2q2n13agp2.f[16]++;
227837
- cov_2q2n13agp2.s[44]++;
227964
+ cov_2q2n13agp2.s[45]++;
227838
227965
 
227839
227966
  if (error.response) {
227840
227967
  cov_2q2n13agp2.b[8][0]++;
227841
- cov_2q2n13agp2.s[45]++;
227842
- _this2.errorMessages = error.response.data;
227843
227968
  cov_2q2n13agp2.s[46]++;
227969
+ _this2.errorMessages = error.response.data;
227970
+ cov_2q2n13agp2.s[47]++;
227844
227971
 
227845
227972
  _this2.$store.dispatch(SHOW_ALERT, {
227846
227973
  error: 'The project could not be created. Please try again.'
@@ -227885,8 +228012,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
227885
228012
 
227886
228013
  var NewProjectModal_component = normalizeComponent(
227887
228014
  projects_NewProjectModalvue_type_script_lang_js_,
227888
- NewProjectModalvue_type_template_id_9dcdd18a_render,
227889
- NewProjectModalvue_type_template_id_9dcdd18a_staticRenderFns,
228015
+ NewProjectModalvue_type_template_id_834662e2_render,
228016
+ NewProjectModalvue_type_template_id_834662e2_staticRenderFns,
227890
228017
  false,
227891
228018
  null,
227892
228019
  null,
@@ -266880,28 +267007,32 @@ var HomeSearch_component = normalizeComponent(
266880
267007
  )
266881
267008
 
266882
267009
  /* harmony default export */ var HomeSearch = (HomeSearch_component.exports);
266883
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=template&id=037ff296&
266884
- var ProjectPanelvue_type_template_id_037ff296_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-panel',{attrs:{"favorite-info":_vm.favoriteInfo,"loading":_vm.loading,"panel-type":"project","data-test":"project-panel"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('v-icon',{staticClass:"title-icon white--text"},[_vm._v("\n "+_vm._s(_vm.$settings.modelIcons.project)+"\n ")]),_c('b',{attrs:{"data-test":"project-title"}},[_vm._v("Project ")]),_c('span',{attrs:{"data-test":"project-id"}},[_vm._v(_vm._s(_vm.projectId))])]},proxy:true},{key:"actions",fn:function(ref){
267010
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=template&id=c79ead1c&
267011
+ var ProjectPanelvue_type_template_id_c79ead1c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('base-panel',{attrs:{"favorite-info":_vm.favoriteInfo,"loading":_vm.loading,"panel-type":"project","data-test":"project-panel"},scopedSlots:_vm._u([{key:"title",fn:function(){return [_c('v-icon',{staticClass:"title-icon white--text"},[_vm._v("\n "+_vm._s(_vm.$settings.modelIcons.project)+"\n ")]),_c('b',{attrs:{"data-test":"project-title"}},[_vm._v("Project ")]),_c('span',{attrs:{"data-test":"project-id"}},[_vm._v(_vm._s(_vm.projectId))])]},proxy:true},{key:"actions",fn:function(ref){
266885
267012
  var hover = ref.hover;
266886
267013
  return [_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266887
267014
  var on = ref.on;
266888
267015
  return [(_vm.$isAuthorized('add_submission'))?_c('v-icon',_vm._g({attrs:{"color":hover ? 'white' : 'transparent',"data-test":"add-samples-btn","small":""},on:{"click":_vm.addNewSubmission}},on),[_vm._v("\n library_add\n ")]):_vm._e()]}}],null,true)},[_c('span',[_vm._v("Add batch of samples")])])]}},{key:"content",fn:function(){return [_c('v-card',{staticClass:"isabl-base-card px-8 py-6",attrs:{"flat":""}},[(_vm.editingTitle)?_c('v-row',{staticClass:"text-left"},[_c('v-text-field',{ref:"title",attrs:{"rules":[_vm.rules.required],"outlined":"","label":"Project Title","autofocus":""},on:{"blur":function($event){_vm.editingTitle = false},"keydown":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.updateValue({ title: _vm.projectTitle })}},model:{value:(_vm.projectTitle),callback:function ($$v) {_vm.projectTitle=$$v},expression:"projectTitle"}})],1):_vm._e(),(!_vm.editingTitle)?_c('v-row',{staticClass:"justify-space-between"},[_c('h2',{staticStyle:{"cursor":"pointer"},attrs:{"data-test":"project-title"},on:{"click":function($event){_vm.editingTitle = true
266889
- _vm.projectTitle = _vm.project.title}}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'title'))+"\n ")]),_c('v-btn',{directives:[{name:"show",rawName:"v-show",value:(!_vm.$get(_vm.project, 'sharing.is_public', false) || _vm.$canShareProject(_vm.project)),expression:"!$get(project, 'sharing.is_public', false) || $canShareProject(project)"}],attrs:{"disabled":!_vm.$canShareProject(_vm.project),"icon":"","small":"","color":"primary"},on:{"click":function($event){_vm.showSharingModal = _vm.$canShareProject(_vm.project)}}},[_c('v-icon',{attrs:{"small":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])],1)],1):_vm._e(),(!_vm.editingTitle)?_c('v-divider',{staticClass:"my-4 mx-n4"}):_vm._e(),_c('v-row',_vm._l((Object.values(_vm.projectBasicFields)),function(field,index){return _c('v-col',{key:index,staticClass:"py-1",attrs:{"cols":"12"}},[_c('model-field',_vm._b({attrs:{"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}},'model-field',field,false))],1)}),1),_c('v-row',[(_vm.project)?_c('v-col',{staticClass:"px-0 py-1",attrs:{"cols":"12","sm":"12"}},[_c('participants-field',{attrs:{"project":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1):_vm._e()],1),_c('v-row',{staticClass:"tags-layout"},[_c('div',{staticClass:"mr-0 mt-4"},[_c('tags-field',{attrs:{"model":_vm.project,"field":'tags',"loading":_vm.fieldLoading,"has-permission":_vm.$isAuthorized('change_project'),"add-tags-message":"Add project tags!"},on:{"update-value":_vm.updateValue}})],1),(_vm.project.group)?_c('div',{staticClass:"mr-0 mt-4"},[(_vm.project.group)?_c('tags-field',{attrs:{"model":_vm.project,"loading":_vm.fieldLoading,"field":'group.tags',"has-permission":_vm.$isAuthorized('change_group'),"add-tags-message":"Add group tags!","tag-class":"group-tag"},on:{"update-value":_vm.updateValue}}):_vm._e()],1):_vm._e()]),_c('v-row',[_c('v-alert',{staticClass:"mt-2",staticStyle:{"width":"100%","cursor":"pointer"},attrs:{"value":_vm.experimentsCount === 0 && _vm.$isAuthorized('add_submission'),"color":"info","outlined":""},on:{"click":_vm.addNewSubmission}},[_vm._v("\n Your project has no samples yet, click here to register new metadata!\n ")])],1)],1),_c('base-modal',{attrs:{"show-modal":_vm.showSharingModal,"loading":_vm.loading,"max-width":"800px"},on:{"close-modal":function($event){_vm.showSharingModal = false}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("\n Sharing Settings\n "),_c('v-icon',{attrs:{"color":"primary","dense":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])]},proxy:true},{key:"content",fn:function(){return [_c('sharing-settings',{attrs:{"sharing":_vm.camelifyKeys(_vm.$get(_vm.project, 'sharing', {})),"no-title":""},on:{"update-sharing":_vm.updateSharing}})]},proxy:true},{key:"cancel-btn",fn:function(){return [_c('span')]},proxy:true}])}),_c('v-card',{staticClass:"pa-0 no-shadow",attrs:{"flat":""}},[_c('base-tabs',{scopedSlots:_vm._u([{key:"content",fn:function(){return [(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-experiments-tab"}},[_vm._v("\n Experiments\n "),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleExperimentsView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266890
- var on = ref.on;
267016
+ _vm.projectTitle = _vm.project.title}}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'title'))+"\n ")]),_c('v-btn',{directives:[{name:"show",rawName:"v-show",value:(
267017
+ _vm.$get(_vm.project, 'sharing', false) && (
267018
+ !_vm.$get(_vm.project, 'sharing.is_public', false) || _vm.$canShareProject(_vm.project)
267019
+ )
267020
+ ),expression:"\n $get(project, 'sharing', false) && (\n !$get(project, 'sharing.is_public', false) || $canShareProject(project)\n )\n "}],attrs:{"disabled":!_vm.$canShareProject(_vm.project),"icon":"","small":"","color":"primary"},on:{"click":function($event){_vm.showSharingModal = _vm.$canShareProject(_vm.project)}}},[_c('v-icon',{attrs:{"small":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])],1)],1):_vm._e(),(!_vm.editingTitle)?_c('v-divider',{staticClass:"my-4 mx-n4"}):_vm._e(),_c('v-row',_vm._l((Object.values(_vm.projectBasicFields)),function(field,index){return _c('v-col',{key:index,staticClass:"py-1",attrs:{"cols":"12"}},[_c('model-field',_vm._b({attrs:{"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}},'model-field',field,false))],1)}),1),_c('v-row',[(_vm.project)?_c('v-col',{staticClass:"px-0 py-1",attrs:{"cols":"12","sm":"12"}},[_c('participants-field',{attrs:{"project":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1):_vm._e()],1),_c('v-row',{staticClass:"tags-layout"},[_c('div',{staticClass:"mr-0 mt-4"},[_c('tags-field',{attrs:{"model":_vm.project,"field":'tags',"loading":_vm.fieldLoading,"has-permission":_vm.$isAuthorized('change_project'),"add-tags-message":"Add project tags!"},on:{"update-value":_vm.updateValue}})],1),(_vm.project.group)?_c('div',{staticClass:"mr-0 mt-4"},[(_vm.project.group)?_c('tags-field',{attrs:{"model":_vm.project,"loading":_vm.fieldLoading,"field":'group.tags',"has-permission":_vm.$isAuthorized('change_group'),"add-tags-message":"Add group tags!","tag-class":"group-tag"},on:{"update-value":_vm.updateValue}}):_vm._e()],1):_vm._e()]),_c('v-row',[_c('v-alert',{staticClass:"mt-2",staticStyle:{"width":"100%","cursor":"pointer"},attrs:{"value":_vm.experimentsCount === 0 && _vm.$isAuthorized('add_submission'),"color":"info","outlined":""},on:{"click":_vm.addNewSubmission}},[_vm._v("\n Your project has no samples yet, click here to register new metadata!\n ")])],1)],1),_c('base-modal',{attrs:{"show-modal":_vm.showSharingModal,"loading":_vm.loading,"max-width":"800px"},on:{"close-modal":function($event){_vm.showSharingModal = false}},scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._v("\n Sharing Settings\n "),_c('v-icon',{attrs:{"color":"primary","dense":""}},[_vm._v("\n "+_vm._s(_vm.$get(_vm.project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock')+"\n ")])]},proxy:true},{key:"content",fn:function(){return [_c('sharing-settings',{attrs:{"sharing":_vm.camelifyKeys(_vm.$get(_vm.project, 'sharing', {})),"no-title":""},on:{"update-sharing":_vm.updateSharing}})]},proxy:true},{key:"cancel-btn",fn:function(){return [_c('span')]},proxy:true}])}),_c('v-card',{staticClass:"pa-0 no-shadow",attrs:{"flat":""}},[_c('base-tabs',{scopedSlots:_vm._u([{key:"content",fn:function(){return [(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-experiments-tab"}},[_vm._v("\n Experiments\n "),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleExperimentsView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
267021
+ var on = ref.on;
266891
267022
  return [_c('v-icon',_vm._g({staticClass:"white--text",attrs:{"color":"primary","small":""}},on),[_vm._v("\n "+_vm._s(_vm.showExperimentTables ? 'equalizer' : 'view_list')+"\n ")])]}}],null,false,2166994357)},[_c('span',[_vm._v(_vm._s(_vm.showExperimentTables ? 'View graphic data' : 'View tabulated data'))])])],1)],1):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showExperimentTables),expression:"showExperimentTables"}]},[_c('DataTable',{attrs:{"params":_vm.params,"model":"experiments","data-test":"project-experiments-datatable"}}),_c('DataTable',{attrs:{"params":_vm.params,"model":"samples","data-test":"project-samples-datatable"}}),_c('DataTable',{attrs:{"params":_vm.params,"model":"individuals","data-test":"project-individuals-datatable"}})],1),(!_vm.showExperimentTables)?_c('base-dashboard',{attrs:{"figures":_vm.experimentFigures,"params":{ projects__pk__icontains: _vm.projectId },"required-fields":['system_id'],"model":"experiments"}}):_vm._e()],1):_vm._e(),(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-analyses-tab"}},[(_vm.failedAnalyses > 0)?_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266892
- var on = ref.on;
267023
+ var on = ref.on;
266893
267024
  return [_c('v-badge',{attrs:{"dot":"","color":"error"}},[_c('span',_vm._g({},on),[_vm._v("Analyses")])])]}}],null,false,799811077)},[_c('span',[_vm._v("This project has "+_vm._s(_vm.failedAnalyses)+" failed analyses.")])]):_c('span',[_vm._v("Analyses")]),_c('v-btn',{staticClass:"ml-2",attrs:{"fab":"","x-small":"","elevation":"0","color":"transparent"},on:{"click":_vm.toggleAnalysesView}},[_c('v-tooltip',{attrs:{"top":""},scopedSlots:_vm._u([{key:"activator",fn:function(ref){
266894
- var on = ref.on;
267025
+ var on = ref.on;
266895
267026
  return [_c('v-icon',_vm._g({staticClass:"white--text",attrs:{"color":"primary","small":""}},on),[_vm._v("\n "+_vm._s(_vm.showAnalysesTables ? 'equalizer' : 'view_list')+"\n ")])]}}],null,false,2424437482)},[_c('span',[_vm._v(_vm._s(_vm.showAnalysesTables ? 'View graphic data' : 'View tabulated data'))])])],1)],1):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showAnalysesTables),expression:"showAnalysesTables"}]},[_c('DataTable',{staticClass:"py-0",attrs:{"params":_vm.params,"model":"analyses"}}),_c('DataTable',{attrs:{"params":_vm.paramsProjectLevelAnalyses,"skip-columns":[
266896
267027
  'Target Experiments',
266897
267028
  'Reference Experiments',
266898
267029
  'Projects',
266899
267030
  'Linked Analyses'
266900
267031
  ],"model":"analyses","title":"Project Analyses"}})],1),(!_vm.showAnalysesTables)?_c('base-dashboard',{attrs:{"figures":_vm.analysisFigures,"params":{ targets__projects__pk__icontains: _vm.projectId },"model":"analyses"}}):_vm._e()],1):_vm._e(),(_vm.showTab)?_c('v-tab',{attrs:{"data-test":"project-submissions-tab"}},[_vm._v("\n Submissions\n ")]):_vm._e(),(_vm.showTab)?_c('v-tab-item',[_c('DataTable',{staticClass:"py-0",attrs:{"params":_vm.paramsSubmissions,"model":"submissions","data-test":"project-submissions-datatable"}})],1):_vm._e(),_c('v-tab',{attrs:{"data-test":"project-details-tab"}},[_vm._v("\n Metadata\n ")]),_c('v-tab-item',[_c('model-fields',{attrs:{"fields":_vm.projectFields,"model":_vm.project,"loading":_vm.fieldLoading},on:{"update-value":_vm.updateValue}})],1),(_vm.isJiraActive)?_c('v-tab',{attrs:{"data-test":"project-jira-tab"},on:{"click":_vm.onJiraSelected}},[_vm._v("Jira")]):_vm._e(),(_vm.isJiraActive)?_c('v-tab-item',[_c('jira-integration',{attrs:{"project":_vm.projectId}})],1):_vm._e()]},proxy:true}])})],1)]},proxy:true}])})}
266901
- var ProjectPanelvue_type_template_id_037ff296_staticRenderFns = []
267032
+ var ProjectPanelvue_type_template_id_c79ead1c_staticRenderFns = []
266902
267033
 
266903
267034
 
266904
- // CONCATENATED MODULE: ./src/components/projects/ProjectPanel.vue?vue&type=template&id=037ff296&
267035
+ // CONCATENATED MODULE: ./src/components/projects/ProjectPanel.vue?vue&type=template&id=c79ead1c&
266905
267036
 
266906
267037
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"d220a428-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/dashboard/BaseDashboard.vue?vue&type=template&id=191c4226&
266907
267038
  var BaseDashboardvue_type_template_id_191c4226_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dashboard"},[_c('v-card',{staticClass:"isabl-base-card",attrs:{"flat":""}},[_c('dc-graph',{attrs:{"model":_vm.model,"params":_vm.params,"items":_vm.items,"figures":_vm.figures,"loading":_vm.loading,"max-records":_vm.maxRecords,"total-items":_vm.totalItems,"is-embedded":_vm.isEmbedded},on:{"set-max-records":_vm.setMaxRecords,"set-options":_vm.setOptions}})],1)],1)}
@@ -298981,7 +299112,7 @@ var graphs_experimentFigures = function experimentFigures() {
298981
299112
  // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/projects/ProjectPanel.vue?vue&type=script&lang=js&
298982
299113
  var cov_1xfylelwja = function () {
298983
299114
  var path = "/Users/arangooj/papaemme/isabl_web/src/components/projects/ProjectPanel.vue";
298984
- var hash = "1e22e790071acd7bfbdf163062b392d0ac39bb05";
299115
+ var hash = "6089d7320d2d7d63cef3b1d2121845b4a705585f";
298985
299116
  var global = new Function("return this")();
298986
299117
  var gcv = "__coverage__";
298987
299118
  var coverageData = {
@@ -298989,361 +299120,361 @@ var cov_1xfylelwja = function () {
298989
299120
  statementMap: {
298990
299121
  "0": {
298991
299122
  start: {
298992
- line: 407,
299123
+ line: 411,
298993
299124
  column: 4
298994
299125
  },
298995
299126
  end: {
298996
- line: 426,
299127
+ line: 430,
298997
299128
  column: 5
298998
299129
  }
298999
299130
  },
299000
299131
  "1": {
299001
299132
  start: {
299002
- line: 434,
299133
+ line: 438,
299003
299134
  column: 6
299004
299135
  },
299005
299136
  end: {
299006
- line: 434,
299137
+ line: 438,
299007
299138
  column: 45
299008
299139
  }
299009
299140
  },
299010
299141
  "2": {
299011
299142
  start: {
299012
- line: 437,
299143
+ line: 441,
299013
299144
  column: 6
299014
299145
  },
299015
299146
  end: {
299016
- line: 437,
299147
+ line: 441,
299017
299148
  column: 73
299018
299149
  }
299019
299150
  },
299020
299151
  "3": {
299021
299152
  start: {
299022
- line: 440,
299153
+ line: 444,
299023
299154
  column: 6
299024
299155
  },
299025
299156
  end: {
299026
- line: 440,
299157
+ line: 444,
299027
299158
  column: 55
299028
299159
  }
299029
299160
  },
299030
299161
  "4": {
299031
299162
  start: {
299032
- line: 443,
299163
+ line: 447,
299033
299164
  column: 24
299034
299165
  },
299035
299166
  end: {
299036
- line: 443,
299167
+ line: 447,
299037
299168
  column: 28
299038
299169
  }
299039
299170
  },
299040
299171
  "5": {
299041
299172
  start: {
299042
- line: 444,
299173
+ line: 448,
299043
299174
  column: 19
299044
299175
  },
299045
299176
  end: {
299046
- line: 444,
299177
+ line: 448,
299047
299178
  column: 21
299048
299179
  }
299049
299180
  },
299050
299181
  "6": {
299051
299182
  start: {
299052
- line: 445,
299183
+ line: 449,
299053
299184
  column: 19
299054
299185
  },
299055
299186
  end: {
299056
- line: 445,
299187
+ line: 449,
299057
299188
  column: 69
299058
299189
  }
299059
299190
  },
299060
299191
  "7": {
299061
299192
  start: {
299062
- line: 446,
299193
+ line: 450,
299063
299194
  column: 6
299064
299195
  },
299065
299196
  end: {
299066
- line: 452,
299197
+ line: 456,
299067
299198
  column: 8
299068
299199
  }
299069
299200
  },
299070
299201
  "8": {
299071
299202
  start: {
299072
- line: 447,
299203
+ line: 451,
299073
299204
  column: 8
299074
299205
  },
299075
299206
  end: {
299076
- line: 451,
299207
+ line: 455,
299077
299208
  column: 9
299078
299209
  }
299079
299210
  },
299080
299211
  "9": {
299081
299212
  start: {
299082
- line: 448,
299213
+ line: 452,
299083
299214
  column: 10
299084
299215
  },
299085
299216
  end: {
299086
- line: 450,
299217
+ line: 454,
299087
299218
  column: 12
299088
299219
  }
299089
299220
  },
299090
299221
  "10": {
299091
299222
  start: {
299092
- line: 449,
299223
+ line: 453,
299093
299224
  column: 12
299094
299225
  },
299095
299226
  end: {
299096
- line: 449,
299227
+ line: 453,
299097
299228
  column: 63
299098
299229
  }
299099
299230
  },
299100
299231
  "11": {
299101
299232
  start: {
299102
- line: 453,
299233
+ line: 457,
299103
299234
  column: 6
299104
299235
  },
299105
299236
  end: {
299106
- line: 453,
299237
+ line: 457,
299107
299238
  column: 31
299108
299239
  }
299109
299240
  },
299110
299241
  "12": {
299111
299242
  start: {
299112
- line: 456,
299243
+ line: 460,
299113
299244
  column: 6
299114
299245
  },
299115
299246
  end: {
299116
- line: 456,
299247
+ line: 460,
299117
299248
  column: 66
299118
299249
  }
299119
299250
  },
299120
299251
  "13": {
299121
299252
  start: {
299122
- line: 459,
299253
+ line: 463,
299123
299254
  column: 6
299124
299255
  },
299125
299256
  end: {
299126
- line: 459,
299257
+ line: 463,
299127
299258
  column: 40
299128
299259
  }
299129
299260
  },
299130
299261
  "14": {
299131
299262
  start: {
299132
- line: 462,
299263
+ line: 466,
299133
299264
  column: 6
299134
299265
  },
299135
299266
  end: {
299136
- line: 467,
299267
+ line: 471,
299137
299268
  column: 7
299138
299269
  }
299139
299270
  },
299140
299271
  "15": {
299141
299272
  start: {
299142
- line: 472,
299273
+ line: 476,
299143
299274
  column: 6
299144
299275
  },
299145
299276
  end: {
299146
- line: 472,
299277
+ line: 476,
299147
299278
  column: 25
299148
299279
  }
299149
299280
  },
299150
299281
  "16": {
299151
299282
  start: {
299152
- line: 475,
299283
+ line: 479,
299153
299284
  column: 6
299154
299285
  },
299155
299286
  end: {
299156
- line: 477,
299287
+ line: 481,
299157
299288
  column: 8
299158
299289
  }
299159
299290
  },
299160
299291
  "17": {
299161
299292
  start: {
299162
- line: 478,
299293
+ line: 482,
299163
299294
  column: 6
299164
299295
  },
299165
299296
  end: {
299166
- line: 478,
299297
+ line: 482,
299167
299298
  column: 26
299168
299299
  }
299169
299300
  },
299170
299301
  "18": {
299171
299302
  start: {
299172
- line: 482,
299303
+ line: 486,
299173
299304
  column: 4
299174
299305
  },
299175
299306
  end: {
299176
- line: 482,
299307
+ line: 486,
299177
299308
  column: 23
299178
299309
  }
299179
299310
  },
299180
299311
  "19": {
299181
299312
  start: {
299182
- line: 486,
299313
+ line: 490,
299183
299314
  column: 6
299184
299315
  },
299185
299316
  end: {
299186
- line: 488,
299317
+ line: 492,
299187
299318
  column: 8
299188
299319
  }
299189
299320
  },
299190
299321
  "20": {
299191
299322
  start: {
299192
- line: 489,
299323
+ line: 493,
299193
299324
  column: 6
299194
299325
  },
299195
299326
  end: {
299196
- line: 493,
299327
+ line: 497,
299197
299328
  column: 8
299198
299329
  }
299199
299330
  },
299200
299331
  "21": {
299201
299332
  start: {
299202
- line: 496,
299333
+ line: 500,
299203
299334
  column: 6
299204
299335
  },
299205
299336
  end: {
299206
- line: 496,
299337
+ line: 500,
299207
299338
  column: 33
299208
299339
  }
299209
299340
  },
299210
299341
  "22": {
299211
299342
  start: {
299212
- line: 499,
299343
+ line: 503,
299213
299344
  column: 6
299214
299345
  },
299215
299346
  end: {
299216
- line: 499,
299347
+ line: 503,
299217
299348
  column: 40
299218
299349
  }
299219
299350
  },
299220
299351
  "23": {
299221
299352
  start: {
299222
- line: 500,
299353
+ line: 504,
299223
299354
  column: 6
299224
299355
  },
299225
299356
  end: {
299226
- line: 500,
299357
+ line: 504,
299227
299358
  column: 31
299228
299359
  }
299229
299360
  },
299230
299361
  "24": {
299231
299362
  start: {
299232
- line: 503,
299363
+ line: 507,
299233
299364
  column: 6
299234
299365
  },
299235
299366
  end: {
299236
- line: 503,
299367
+ line: 507,
299237
299368
  column: 70
299238
299369
  }
299239
299370
  },
299240
299371
  "25": {
299241
299372
  start: {
299242
- line: 506,
299373
+ line: 510,
299243
299374
  column: 6
299244
299375
  },
299245
299376
  end: {
299246
- line: 506,
299377
+ line: 510,
299247
299378
  column: 46
299248
299379
  }
299249
299380
  },
299250
299381
  "26": {
299251
299382
  start: {
299252
- line: 509,
299383
+ line: 513,
299253
299384
  column: 6
299254
299385
  },
299255
299386
  end: {
299256
- line: 509,
299387
+ line: 513,
299257
299388
  column: 60
299258
299389
  }
299259
299390
  },
299260
299391
  "27": {
299261
299392
  start: {
299262
- line: 512,
299393
+ line: 516,
299263
299394
  column: 6
299264
299395
  },
299265
299396
  end: {
299266
- line: 517,
299397
+ line: 521,
299267
299398
  column: 7
299268
299399
  }
299269
299400
  },
299270
299401
  "28": {
299271
299402
  start: {
299272
- line: 520,
299403
+ line: 524,
299273
299404
  column: 6
299274
299405
  },
299275
299406
  end: {
299276
- line: 520,
299407
+ line: 524,
299277
299408
  column: 56
299278
299409
  }
299279
299410
  },
299280
299411
  "29": {
299281
299412
  start: {
299282
- line: 523,
299413
+ line: 527,
299283
299414
  column: 6
299284
299415
  },
299285
299416
  end: {
299286
- line: 528,
299417
+ line: 532,
299287
299418
  column: 7
299288
299419
  }
299289
299420
  },
299290
299421
  "30": {
299291
299422
  start: {
299292
- line: 532,
299423
+ line: 536,
299293
299424
  column: 6
299294
299425
  },
299295
299426
  end: {
299296
- line: 534,
299427
+ line: 538,
299297
299428
  column: 8
299298
299429
  }
299299
299430
  },
299300
299431
  "31": {
299301
299432
  start: {
299302
- line: 537,
299433
+ line: 541,
299303
299434
  column: 6
299304
299435
  },
299305
299436
  end: {
299306
- line: 552,
299437
+ line: 556,
299307
299438
  column: 9
299308
299439
  }
299309
299440
  },
299310
299441
  "32": {
299311
299442
  start: {
299312
- line: 538,
299443
+ line: 542,
299313
299444
  column: 24
299314
299445
  },
299315
299446
  end: {
299316
- line: 541,
299447
+ line: 545,
299317
299448
  column: 9
299318
299449
  }
299319
299450
  },
299320
299451
  "33": {
299321
299452
  start: {
299322
- line: 543,
299453
+ line: 547,
299323
299454
  column: 8
299324
299455
  },
299325
299456
  end: {
299326
- line: 551,
299457
+ line: 555,
299327
299458
  column: 12
299328
299459
  }
299329
299460
  },
299330
299461
  "34": {
299331
299462
  start: {
299332
- line: 545,
299463
+ line: 549,
299333
299464
  column: 12
299334
299465
  },
299335
299466
  end: {
299336
- line: 545,
299467
+ line: 549,
299337
299468
  column: 35
299338
299469
  }
299339
299470
  },
299340
299471
  "35": {
299341
299472
  start: {
299342
- line: 548,
299473
+ line: 552,
299343
299474
  column: 12
299344
299475
  },
299345
299476
  end: {
299346
- line: 550,
299477
+ line: 554,
299347
299478
  column: 14
299348
299479
  }
299349
299480
  }
@@ -299353,744 +299484,744 @@ var cov_1xfylelwja = function () {
299353
299484
  name: "(anonymous_0)",
299354
299485
  decl: {
299355
299486
  start: {
299356
- line: 406,
299487
+ line: 410,
299357
299488
  column: 2
299358
299489
  },
299359
299490
  end: {
299360
- line: 406,
299491
+ line: 410,
299361
299492
  column: 3
299362
299493
  }
299363
299494
  },
299364
299495
  loc: {
299365
299496
  start: {
299366
- line: 406,
299497
+ line: 410,
299367
299498
  column: 9
299368
299499
  },
299369
299500
  end: {
299370
- line: 427,
299501
+ line: 431,
299371
299502
  column: 3
299372
299503
  }
299373
299504
  },
299374
- line: 406
299505
+ line: 410
299375
299506
  },
299376
299507
  "1": {
299377
299508
  name: "(anonymous_1)",
299378
299509
  decl: {
299379
299510
  start: {
299380
- line: 433,
299511
+ line: 437,
299381
299512
  column: 4
299382
299513
  },
299383
299514
  end: {
299384
- line: 433,
299515
+ line: 437,
299385
299516
  column: 5
299386
299517
  }
299387
299518
  },
299388
299519
  loc: {
299389
299520
  start: {
299390
- line: 433,
299521
+ line: 437,
299391
299522
  column: 13
299392
299523
  },
299393
299524
  end: {
299394
- line: 435,
299525
+ line: 439,
299395
299526
  column: 5
299396
299527
  }
299397
299528
  },
299398
- line: 433
299529
+ line: 437
299399
299530
  },
299400
299531
  "2": {
299401
299532
  name: "(anonymous_2)",
299402
299533
  decl: {
299403
299534
  start: {
299404
- line: 436,
299535
+ line: 440,
299405
299536
  column: 4
299406
299537
  },
299407
299538
  end: {
299408
- line: 436,
299539
+ line: 440,
299409
299540
  column: 5
299410
299541
  }
299411
299542
  },
299412
299543
  loc: {
299413
299544
  start: {
299414
- line: 436,
299545
+ line: 440,
299415
299546
  column: 24
299416
299547
  },
299417
299548
  end: {
299418
- line: 438,
299549
+ line: 442,
299419
299550
  column: 5
299420
299551
  }
299421
299552
  },
299422
- line: 436
299553
+ line: 440
299423
299554
  },
299424
299555
  "3": {
299425
299556
  name: "(anonymous_3)",
299426
299557
  decl: {
299427
299558
  start: {
299428
- line: 439,
299559
+ line: 443,
299429
299560
  column: 4
299430
299561
  },
299431
299562
  end: {
299432
- line: 439,
299563
+ line: 443,
299433
299564
  column: 5
299434
299565
  }
299435
299566
  },
299436
299567
  loc: {
299437
299568
  start: {
299438
- line: 439,
299569
+ line: 443,
299439
299570
  column: 33
299440
299571
  },
299441
299572
  end: {
299442
- line: 441,
299573
+ line: 445,
299443
299574
  column: 5
299444
299575
  }
299445
299576
  },
299446
- line: 439
299577
+ line: 443
299447
299578
  },
299448
299579
  "4": {
299449
299580
  name: "(anonymous_4)",
299450
299581
  decl: {
299451
299582
  start: {
299452
- line: 442,
299583
+ line: 446,
299453
299584
  column: 4
299454
299585
  },
299455
299586
  end: {
299456
- line: 442,
299587
+ line: 446,
299457
299588
  column: 5
299458
299589
  }
299459
299590
  },
299460
299591
  loc: {
299461
299592
  start: {
299462
- line: 442,
299593
+ line: 446,
299463
299594
  column: 21
299464
299595
  },
299465
299596
  end: {
299466
- line: 454,
299597
+ line: 458,
299467
299598
  column: 5
299468
299599
  }
299469
299600
  },
299470
- line: 442
299601
+ line: 446
299471
299602
  },
299472
299603
  "5": {
299473
299604
  name: "(anonymous_5)",
299474
299605
  decl: {
299475
299606
  start: {
299476
- line: 446,
299607
+ line: 450,
299477
299608
  column: 19
299478
299609
  },
299479
299610
  end: {
299480
- line: 446,
299611
+ line: 450,
299481
299612
  column: 20
299482
299613
  }
299483
299614
  },
299484
299615
  loc: {
299485
299616
  start: {
299486
- line: 446,
299617
+ line: 450,
299487
299618
  column: 28
299488
299619
  },
299489
299620
  end: {
299490
- line: 452,
299621
+ line: 456,
299491
299622
  column: 7
299492
299623
  }
299493
299624
  },
299494
- line: 446
299625
+ line: 450
299495
299626
  },
299496
299627
  "6": {
299497
299628
  name: "(anonymous_6)",
299498
299629
  decl: {
299499
299630
  start: {
299500
- line: 448,
299631
+ line: 452,
299501
299632
  column: 49
299502
299633
  },
299503
299634
  end: {
299504
- line: 448,
299635
+ line: 452,
299505
299636
  column: 50
299506
299637
  }
299507
299638
  },
299508
299639
  loc: {
299509
299640
  start: {
299510
- line: 448,
299641
+ line: 452,
299511
299642
  column: 60
299512
299643
  },
299513
299644
  end: {
299514
- line: 450,
299645
+ line: 454,
299515
299646
  column: 11
299516
299647
  }
299517
299648
  },
299518
- line: 448
299649
+ line: 452
299519
299650
  },
299520
299651
  "7": {
299521
299652
  name: "(anonymous_7)",
299522
299653
  decl: {
299523
299654
  start: {
299524
- line: 455,
299655
+ line: 459,
299525
299656
  column: 4
299526
299657
  },
299527
299658
  end: {
299528
- line: 455,
299659
+ line: 459,
299529
299660
  column: 5
299530
299661
  }
299531
299662
  },
299532
299663
  loc: {
299533
299664
  start: {
299534
- line: 455,
299665
+ line: 459,
299535
299666
  column: 23
299536
299667
  },
299537
299668
  end: {
299538
- line: 457,
299669
+ line: 461,
299539
299670
  column: 5
299540
299671
  }
299541
299672
  },
299542
- line: 455
299673
+ line: 459
299543
299674
  },
299544
299675
  "8": {
299545
299676
  name: "(anonymous_8)",
299546
299677
  decl: {
299547
299678
  start: {
299548
- line: 458,
299679
+ line: 462,
299549
299680
  column: 4
299550
299681
  },
299551
299682
  end: {
299552
- line: 458,
299683
+ line: 462,
299553
299684
  column: 5
299554
299685
  }
299555
299686
  },
299556
299687
  loc: {
299557
299688
  start: {
299558
- line: 458,
299689
+ line: 462,
299559
299690
  column: 14
299560
299691
  },
299561
299692
  end: {
299562
- line: 460,
299693
+ line: 464,
299563
299694
  column: 5
299564
299695
  }
299565
299696
  },
299566
- line: 458
299697
+ line: 462
299567
299698
  },
299568
299699
  "9": {
299569
299700
  name: "(anonymous_9)",
299570
299701
  decl: {
299571
299702
  start: {
299572
- line: 461,
299703
+ line: 465,
299573
299704
  column: 4
299574
299705
  },
299575
299706
  end: {
299576
- line: 461,
299707
+ line: 465,
299577
299708
  column: 5
299578
299709
  }
299579
299710
  },
299580
299711
  loc: {
299581
299712
  start: {
299582
- line: 461,
299713
+ line: 465,
299583
299714
  column: 19
299584
299715
  },
299585
299716
  end: {
299586
- line: 468,
299717
+ line: 472,
299587
299718
  column: 5
299588
299719
  }
299589
299720
  },
299590
- line: 461
299721
+ line: 465
299591
299722
  },
299592
299723
  "10": {
299593
299724
  name: "(anonymous_10)",
299594
299725
  decl: {
299595
299726
  start: {
299596
- line: 471,
299727
+ line: 475,
299597
299728
  column: 4
299598
299729
  },
299599
299730
  end: {
299600
- line: 471,
299731
+ line: 475,
299601
299732
  column: 5
299602
299733
  }
299603
299734
  },
299604
299735
  loc: {
299605
299736
  start: {
299606
- line: 471,
299737
+ line: 475,
299607
299738
  column: 16
299608
299739
  },
299609
299740
  end: {
299610
- line: 473,
299741
+ line: 477,
299611
299742
  column: 5
299612
299743
  }
299613
299744
  },
299614
- line: 471
299745
+ line: 475
299615
299746
  },
299616
299747
  "11": {
299617
299748
  name: "(anonymous_11)",
299618
299749
  decl: {
299619
299750
  start: {
299620
- line: 474,
299751
+ line: 478,
299621
299752
  column: 4
299622
299753
  },
299623
299754
  end: {
299624
- line: 474,
299755
+ line: 478,
299625
299756
  column: 5
299626
299757
  }
299627
299758
  },
299628
299759
  loc: {
299629
299760
  start: {
299630
- line: 474,
299761
+ line: 478,
299631
299762
  column: 19
299632
299763
  },
299633
299764
  end: {
299634
- line: 479,
299765
+ line: 483,
299635
299766
  column: 5
299636
299767
  }
299637
299768
  },
299638
- line: 474
299769
+ line: 478
299639
299770
  },
299640
299771
  "12": {
299641
299772
  name: "(anonymous_12)",
299642
299773
  decl: {
299643
299774
  start: {
299644
- line: 481,
299775
+ line: 485,
299645
299776
  column: 2
299646
299777
  },
299647
299778
  end: {
299648
- line: 481,
299779
+ line: 485,
299649
299780
  column: 3
299650
299781
  }
299651
299782
  },
299652
299783
  loc: {
299653
299784
  start: {
299654
- line: 481,
299785
+ line: 485,
299655
299786
  column: 12
299656
299787
  },
299657
299788
  end: {
299658
- line: 483,
299789
+ line: 487,
299659
299790
  column: 3
299660
299791
  }
299661
299792
  },
299662
- line: 481
299793
+ line: 485
299663
299794
  },
299664
299795
  "13": {
299665
299796
  name: "(anonymous_13)",
299666
299797
  decl: {
299667
299798
  start: {
299668
- line: 485,
299799
+ line: 489,
299669
299800
  column: 4
299670
299801
  },
299671
299802
  end: {
299672
- line: 485,
299803
+ line: 489,
299673
299804
  column: 5
299674
299805
  }
299675
299806
  },
299676
299807
  loc: {
299677
299808
  start: {
299678
- line: 485,
299809
+ line: 489,
299679
299810
  column: 26
299680
299811
  },
299681
299812
  end: {
299682
- line: 494,
299813
+ line: 498,
299683
299814
  column: 5
299684
299815
  }
299685
299816
  },
299686
- line: 485
299817
+ line: 489
299687
299818
  },
299688
299819
  "14": {
299689
299820
  name: "(anonymous_14)",
299690
299821
  decl: {
299691
299822
  start: {
299692
- line: 495,
299823
+ line: 499,
299693
299824
  column: 4
299694
299825
  },
299695
299826
  end: {
299696
- line: 495,
299827
+ line: 499,
299697
299828
  column: 5
299698
299829
  }
299699
299830
  },
299700
299831
  loc: {
299701
299832
  start: {
299702
- line: 495,
299833
+ line: 499,
299703
299834
  column: 19
299704
299835
  },
299705
299836
  end: {
299706
- line: 497,
299837
+ line: 501,
299707
299838
  column: 5
299708
299839
  }
299709
299840
  },
299710
- line: 495
299841
+ line: 499
299711
299842
  },
299712
299843
  "15": {
299713
299844
  name: "(anonymous_15)",
299714
299845
  decl: {
299715
299846
  start: {
299716
- line: 498,
299847
+ line: 502,
299717
299848
  column: 4
299718
299849
  },
299719
299850
  end: {
299720
- line: 498,
299851
+ line: 502,
299721
299852
  column: 5
299722
299853
  }
299723
299854
  },
299724
299855
  loc: {
299725
299856
  start: {
299726
- line: 498,
299857
+ line: 502,
299727
299858
  column: 22
299728
299859
  },
299729
299860
  end: {
299730
- line: 501,
299861
+ line: 505,
299731
299862
  column: 5
299732
299863
  }
299733
299864
  },
299734
- line: 498
299865
+ line: 502
299735
299866
  },
299736
299867
  "16": {
299737
299868
  name: "(anonymous_16)",
299738
299869
  decl: {
299739
299870
  start: {
299740
- line: 502,
299871
+ line: 506,
299741
299872
  column: 4
299742
299873
  },
299743
299874
  end: {
299744
- line: 502,
299875
+ line: 506,
299745
299876
  column: 5
299746
299877
  }
299747
299878
  },
299748
299879
  loc: {
299749
299880
  start: {
299750
- line: 502,
299881
+ line: 506,
299751
299882
  column: 23
299752
299883
  },
299753
299884
  end: {
299754
- line: 504,
299885
+ line: 508,
299755
299886
  column: 5
299756
299887
  }
299757
299888
  },
299758
- line: 502
299889
+ line: 506
299759
299890
  },
299760
299891
  "17": {
299761
299892
  name: "(anonymous_17)",
299762
299893
  decl: {
299763
299894
  start: {
299764
- line: 505,
299895
+ line: 509,
299765
299896
  column: 4
299766
299897
  },
299767
299898
  end: {
299768
- line: 505,
299899
+ line: 509,
299769
299900
  column: 5
299770
299901
  }
299771
299902
  },
299772
299903
  loc: {
299773
299904
  start: {
299774
- line: 505,
299905
+ line: 509,
299775
299906
  column: 23
299776
299907
  },
299777
299908
  end: {
299778
- line: 507,
299909
+ line: 511,
299779
299910
  column: 5
299780
299911
  }
299781
299912
  },
299782
- line: 505
299913
+ line: 509
299783
299914
  },
299784
299915
  "18": {
299785
299916
  name: "(anonymous_18)",
299786
299917
  decl: {
299787
299918
  start: {
299788
- line: 508,
299919
+ line: 512,
299789
299920
  column: 4
299790
299921
  },
299791
299922
  end: {
299792
- line: 508,
299923
+ line: 512,
299793
299924
  column: 5
299794
299925
  }
299795
299926
  },
299796
299927
  loc: {
299797
299928
  start: {
299798
- line: 508,
299929
+ line: 512,
299799
299930
  column: 28
299800
299931
  },
299801
299932
  end: {
299802
- line: 518,
299933
+ line: 522,
299803
299934
  column: 5
299804
299935
  }
299805
299936
  },
299806
- line: 508
299937
+ line: 512
299807
299938
  },
299808
299939
  "19": {
299809
299940
  name: "(anonymous_19)",
299810
299941
  decl: {
299811
299942
  start: {
299812
- line: 519,
299943
+ line: 523,
299813
299944
  column: 4
299814
299945
  },
299815
299946
  end: {
299816
- line: 519,
299947
+ line: 523,
299817
299948
  column: 5
299818
299949
  }
299819
299950
  },
299820
299951
  loc: {
299821
299952
  start: {
299822
- line: 519,
299953
+ line: 523,
299823
299954
  column: 25
299824
299955
  },
299825
299956
  end: {
299826
- line: 529,
299957
+ line: 533,
299827
299958
  column: 5
299828
299959
  }
299829
299960
  },
299830
- line: 519
299961
+ line: 523
299831
299962
  },
299832
299963
  "20": {
299833
299964
  name: "(anonymous_20)",
299834
299965
  decl: {
299835
299966
  start: {
299836
- line: 530,
299967
+ line: 534,
299837
299968
  column: 4
299838
299969
  },
299839
299970
  end: {
299840
- line: 530,
299971
+ line: 534,
299841
299972
  column: 5
299842
299973
  }
299843
299974
  },
299844
299975
  loc: {
299845
299976
  start: {
299846
- line: 530,
299977
+ line: 534,
299847
299978
  column: 21
299848
299979
  },
299849
299980
  end: {
299850
- line: 535,
299981
+ line: 539,
299851
299982
  column: 5
299852
299983
  }
299853
299984
  },
299854
- line: 530
299985
+ line: 534
299855
299986
  },
299856
299987
  "21": {
299857
299988
  name: "(anonymous_21)",
299858
299989
  decl: {
299859
299990
  start: {
299860
- line: 536,
299991
+ line: 540,
299861
299992
  column: 4
299862
299993
  },
299863
299994
  end: {
299864
- line: 536,
299995
+ line: 540,
299865
299996
  column: 5
299866
299997
  }
299867
299998
  },
299868
299999
  loc: {
299869
300000
  start: {
299870
- line: 536,
300001
+ line: 540,
299871
300002
  column: 30
299872
300003
  },
299873
300004
  end: {
299874
- line: 553,
300005
+ line: 557,
299875
300006
  column: 5
299876
300007
  }
299877
300008
  },
299878
- line: 536
300009
+ line: 540
299879
300010
  },
299880
300011
  "22": {
299881
300012
  name: "(anonymous_22)",
299882
300013
  decl: {
299883
300014
  start: {
299884
- line: 544,
300015
+ line: 548,
299885
300016
  column: 16
299886
300017
  },
299887
300018
  end: {
299888
- line: 544,
300019
+ line: 548,
299889
300020
  column: 17
299890
300021
  }
299891
300022
  },
299892
300023
  loc: {
299893
300024
  start: {
299894
- line: 544,
300025
+ line: 548,
299895
300026
  column: 28
299896
300027
  },
299897
300028
  end: {
299898
- line: 546,
300029
+ line: 550,
299899
300030
  column: 11
299900
300031
  }
299901
300032
  },
299902
- line: 544
300033
+ line: 548
299903
300034
  },
299904
300035
  "23": {
299905
300036
  name: "(anonymous_23)",
299906
300037
  decl: {
299907
300038
  start: {
299908
- line: 547,
300039
+ line: 551,
299909
300040
  column: 17
299910
300041
  },
299911
300042
  end: {
299912
- line: 547,
300043
+ line: 551,
299913
300044
  column: 18
299914
300045
  }
299915
300046
  },
299916
300047
  loc: {
299917
300048
  start: {
299918
- line: 547,
300049
+ line: 551,
299919
300050
  column: 28
299920
300051
  },
299921
300052
  end: {
299922
- line: 551,
300053
+ line: 555,
299923
300054
  column: 11
299924
300055
  }
299925
300056
  },
299926
- line: 547
300057
+ line: 551
299927
300058
  }
299928
300059
  },
299929
300060
  branchMap: {
299930
300061
  "0": {
299931
300062
  loc: {
299932
300063
  start: {
299933
- line: 447,
300064
+ line: 451,
299934
300065
  column: 8
299935
300066
  },
299936
300067
  end: {
299937
- line: 451,
300068
+ line: 455,
299938
300069
  column: 9
299939
300070
  }
299940
300071
  },
299941
300072
  type: "if",
299942
300073
  locations: [{
299943
300074
  start: {
299944
- line: 447,
300075
+ line: 451,
299945
300076
  column: 8
299946
300077
  },
299947
300078
  end: {
299948
- line: 451,
300079
+ line: 455,
299949
300080
  column: 9
299950
300081
  }
299951
300082
  }, {
299952
300083
  start: {
299953
- line: 447,
300084
+ line: 451,
299954
300085
  column: 8
299955
300086
  },
299956
300087
  end: {
299957
- line: 451,
300088
+ line: 455,
299958
300089
  column: 9
299959
300090
  }
299960
300091
  }],
299961
- line: 447
300092
+ line: 451
299962
300093
  },
299963
300094
  "1": {
299964
300095
  loc: {
299965
300096
  start: {
299966
- line: 447,
300097
+ line: 451,
299967
300098
  column: 12
299968
300099
  },
299969
300100
  end: {
299970
- line: 447,
300101
+ line: 451,
299971
300102
  column: 52
299972
300103
  }
299973
300104
  },
299974
300105
  type: "binary-expr",
299975
300106
  locations: [{
299976
300107
  start: {
299977
- line: 447,
300108
+ line: 451,
299978
300109
  column: 12
299979
300110
  },
299980
300111
  end: {
299981
- line: 447,
300112
+ line: 451,
299982
300113
  column: 29
299983
300114
  }
299984
300115
  }, {
299985
300116
  start: {
299986
- line: 447,
300117
+ line: 451,
299987
300118
  column: 33
299988
300119
  },
299989
300120
  end: {
299990
- line: 447,
300121
+ line: 451,
299991
300122
  column: 52
299992
300123
  }
299993
300124
  }],
299994
- line: 447
300125
+ line: 451
299995
300126
  },
299996
300127
  "2": {
299997
300128
  loc: {
299998
300129
  start: {
299999
- line: 513,
300130
+ line: 517,
300000
300131
  column: 8
300001
300132
  },
300002
300133
  end: {
300003
- line: 515,
300134
+ line: 519,
300004
300135
  column: 39
300005
300136
  }
300006
300137
  },
300007
300138
  type: "cond-expr",
300008
300139
  locations: [{
300009
300140
  start: {
300010
- line: 514,
300141
+ line: 518,
300011
300142
  column: 12
300012
300143
  },
300013
300144
  end: {
300014
- line: 514,
300145
+ line: 518,
300015
300146
  column: 39
300016
300147
  }
300017
300148
  }, {
300018
300149
  start: {
300019
- line: 515,
300150
+ line: 519,
300020
300151
  column: 12
300021
300152
  },
300022
300153
  end: {
300023
- line: 515,
300154
+ line: 519,
300024
300155
  column: 39
300025
300156
  }
300026
300157
  }],
300027
- line: 513
300158
+ line: 517
300028
300159
  },
300029
300160
  "3": {
300030
300161
  loc: {
300031
300162
  start: {
300032
- line: 524,
300163
+ line: 528,
300033
300164
  column: 8
300034
300165
  },
300035
300166
  end: {
300036
- line: 526,
300167
+ line: 530,
300037
300168
  column: 39
300038
300169
  }
300039
300170
  },
300040
300171
  type: "cond-expr",
300041
300172
  locations: [{
300042
300173
  start: {
300043
- line: 525,
300174
+ line: 529,
300044
300175
  column: 12
300045
300176
  },
300046
300177
  end: {
300047
- line: 525,
300178
+ line: 529,
300048
300179
  column: 39
300049
300180
  }
300050
300181
  }, {
300051
300182
  start: {
300052
- line: 526,
300183
+ line: 530,
300053
300184
  column: 12
300054
300185
  },
300055
300186
  end: {
300056
- line: 526,
300187
+ line: 530,
300057
300188
  column: 39
300058
300189
  }
300059
300190
  }],
300060
- line: 524
300191
+ line: 528
300061
300192
  },
300062
300193
  "4": {
300063
300194
  loc: {
300064
300195
  start: {
300065
- line: 537,
300196
+ line: 541,
300066
300197
  column: 6
300067
300198
  },
300068
300199
  end: {
300069
- line: 552,
300200
+ line: 556,
300070
300201
  column: 9
300071
300202
  }
300072
300203
  },
300073
300204
  type: "if",
300074
300205
  locations: [{
300075
300206
  start: {
300076
- line: 537,
300207
+ line: 541,
300077
300208
  column: 6
300078
300209
  },
300079
300210
  end: {
300080
- line: 552,
300211
+ line: 556,
300081
300212
  column: 9
300082
300213
  }
300083
300214
  }, {
300084
300215
  start: {
300085
- line: 537,
300216
+ line: 541,
300086
300217
  column: 6
300087
300218
  },
300088
300219
  end: {
300089
- line: 552,
300220
+ line: 556,
300090
300221
  column: 9
300091
300222
  }
300092
300223
  }],
300093
- line: 537
300224
+ line: 541
300094
300225
  }
300095
300226
  },
300096
300227
  s: {
@@ -300168,13 +300299,13 @@ var cov_1xfylelwja = function () {
300168
300299
  version: 3,
300169
300300
  sources: ["ProjectPanel.vue"],
300170
300301
  names: [],
300171
- mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6WA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
300302
+ mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiXA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
300172
300303
  file: "ProjectPanel.vue",
300173
300304
  sourceRoot: "src/components/projects",
300174
- sourcesContent: ["<template>\n <base-panel\n :favorite-info=\"favoriteInfo\"\n :loading=\"loading\"\n panel-type=\"project\"\n data-test=\"project-panel\"\n >\n <!-- Project and Summary -->\n <template v-slot:title>\n <v-icon class=\"title-icon white--text\">\n {{ $settings.modelIcons.project }}\n </v-icon>\n <b data-test=\"project-title\">Project&nbsp;</b>\n <span data-test=\"project-id\">{{ projectId }}</span>\n </template>\n\n <!-- Project Actions -->\n <template v-slot:actions=\"{ hover }\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n v-if=\"$isAuthorized('add_submission')\"\n :color=\"hover ? 'white' : 'transparent'\"\n data-test=\"add-samples-btn\"\n small\n @click=\"addNewSubmission\"\n v-on=\"on\"\n >\n library_add\n </v-icon>\n </template>\n <span>Add batch of samples</span>\n </v-tooltip>\n </template>\n\n <!-- Title and Info -->\n <template v-slot:content>\n <v-card flat class=\"isabl-base-card px-8 py-6\">\n <v-row v-if=\"editingTitle\" class=\"text-left\" >\n <v-text-field\n ref=\"title\"\n v-model=\"projectTitle\"\n :rules=\"[rules.required]\"\n outlined\n label=\"Project Title\"\n autofocus\n @blur=\"editingTitle = false\"\n @keydown.enter=\"updateValue({ title: projectTitle })\"\n />\n </v-row>\n <v-row v-if=\"!editingTitle\" class=\"justify-space-between\">\n <h2\n style=\"cursor: pointer\"\n data-test=\"project-title\"\n @click=\"\n editingTitle = true\n projectTitle = project.title\n \"\n >\n {{ $get(project, 'title') }}\n </h2>\n\n <!-- Share Settings Icon Button -->\n <v-btn\n v-show=\"!$get(project, 'sharing.is_public', false) || $canShareProject(project)\"\n :disabled=\"!$canShareProject(project)\"\n icon\n small\n color=\"primary\"\n @click=\"showSharingModal = $canShareProject(project)\"\n >\n <v-icon small>\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </v-btn>\n </v-row>\n\n <v-divider\n v-if=\"!editingTitle\"\n class=\"my-4 mx-n4\"\n />\n\n <!-- Project Details Section -->\n <v-row>\n <!-- Basic Details: Title, Short Title and Description -->\n <v-col\n v-for=\"(field, index) in Object.values(projectBasicFields)\"\n :key=\"index\"\n cols=\"12\"\n class=\"py-1\"\n >\n <model-field\n v-bind=\"field\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n <v-row>\n <!-- Participants -->\n <v-col\n v-if=\"project\"\n cols=\"12\"\n class=\"px-0 py-1\"\n sm=\"12\"\n >\n <participants-field\n :project=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <!-- tags -->\n <v-row class=\"tags-layout\">\n <div class=\"mr-0 mt-4\">\n <tags-field\n :model=\"project\"\n :field=\"'tags'\"\n :loading=\"fieldLoading\"\n :has-permission=\"$isAuthorized('change_project')\"\n add-tags-message=\"Add project tags!\"\n @update-value=\"updateValue\"\n />\n </div>\n\n <div\n v-if=\"project.group\"\n class=\"mr-0 mt-4\"\n >\n <tags-field\n v-if=\"project.group\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n :field=\"'group.tags'\"\n :has-permission=\"$isAuthorized('change_group')\"\n add-tags-message=\"Add group tags!\"\n tag-class=\"group-tag\"\n @update-value=\"updateValue\"\n />\n </div>\n </v-row>\n\n <v-row>\n <v-alert\n :value=\"experimentsCount === 0 && $isAuthorized('add_submission')\"\n color=\"info\"\n class=\"mt-2\"\n outlined\n style=\"width: 100%; cursor: pointer\"\n @click=\"addNewSubmission\"\n >\n Your project has no samples yet, click here to register new metadata!\n </v-alert>\n </v-row>\n </v-card>\n\n <!-- Modal to edit sharing -->\n <base-modal\n :show-modal=\"showSharingModal\"\n :loading=\"loading\"\n max-width=\"800px\"\n @close-modal=\"showSharingModal = false\"\n >\n <template v-slot:title>\n Sharing Settings\n <v-icon\n color=\"primary\"\n dense\n >\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </template>\n\n <template v-slot:content>\n <sharing-settings\n :sharing=\"camelifyKeys($get(project, 'sharing', {}))\"\n no-title\n @update-sharing=\"updateSharing\"\n />\n </template>\n\n <template v-slot:cancel-btn>\n <span />\n </template>\n\n </base-modal>\n\n <!-- End Modal to edit sharing -->\n\n <v-card flat class=\"pa-0 no-shadow\">\n <base-tabs>\n <template v-slot:content>\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-experiments-tab\"\n >\n Experiments\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleExperimentsView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showExperimentTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showExperimentTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showExperimentTables\">\n <DataTable\n :params=\"params\"\n model=\"experiments\"\n data-test=\"project-experiments-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"samples\"\n data-test=\"project-samples-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"individuals\"\n data-test=\"project-individuals-datatable\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showExperimentTables\"\n :figures=\"experimentFigures\"\n :params=\"{ projects__pk__icontains: projectId }\"\n :required-fields=\"['system_id']\"\n model=\"experiments\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-analyses-tab\"\n >\n <v-tooltip v-if=\"failedAnalyses > 0\" top>\n <template v-slot:activator=\"{ on }\">\n <v-badge\n dot\n color=\"error\"\n >\n <span v-on=\"on\">Analyses</span>\n </v-badge>\n </template>\n <span>This project has {{ failedAnalyses }} failed analyses.</span>\n </v-tooltip>\n <span v-else>Analyses</span>\n\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleAnalysesView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showAnalysesTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showAnalysesTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showAnalysesTables\">\n <DataTable\n :params=\"params\"\n model=\"analyses\"\n class=\"py-0\"\n />\n\n <DataTable\n :params=\"paramsProjectLevelAnalyses\"\n :skip-columns=\"[\n 'Target Experiments',\n 'Reference Experiments',\n 'Projects',\n 'Linked Analyses'\n ]\"\n model=\"analyses\"\n title=\"Project Analyses\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showAnalysesTables\"\n :figures=\"analysisFigures\"\n :params=\"{ targets__projects__pk__icontains: projectId }\"\n model=\"analyses\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-submissions-tab\"\n >\n Submissions\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <DataTable\n :params=\"paramsSubmissions\"\n model=\"submissions\"\n data-test=\"project-submissions-datatable\"\n class=\"py-0\"\n />\n </v-tab-item>\n\n <v-tab data-test=\"project-details-tab\">\n Metadata\n </v-tab>\n <v-tab-item>\n <model-fields\n :fields=\"projectFields\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"isJiraActive\"\n data-test=\"project-jira-tab\"\n @click=\"onJiraSelected\"\n >Jira</v-tab>\n <v-tab-item v-if=\"isJiraActive\">\n <jira-integration :project=\"projectId\" />\n </v-tab-item>\n </template>\n </base-tabs>\n </v-card>\n </template>\n </base-panel>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseTabs from '@/components/base/BaseTabs.vue'\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport BaseDashboard from '@/components/dashboard/BaseDashboard'\nimport DataTable from '@/components/table/DataTable.vue'\nimport JiraIntegration from '@/components/projects/JiraIntegration.vue'\nimport ModelField from '@/components/fields/ModelField'\nimport ModelFields from '@/components/fields/ModelFields'\nimport ParticipantsField from '@/components/fields/ParticipantsField'\nimport TagsField from '@/components/fields/TagsField'\nimport SharingSettings from '@/components/projects/SharingSettings'\n\nimport rules from '@/utils/rules'\nimport { ADD_NEW_SUBMISSION, UPDATE_PROJECT } from '@/store/actions/modals'\nimport { projectFields, projectBasicFields } from '@/utils/fields'\nimport { getRecordsCount } from '@/utils/api'\nimport { experimentFigures, analysisFigures } from '@/utils/graphs'\nimport { camelifyKeys, snakifyKeys } from '@/utils/helpers'\nimport { updateRecord } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\n\nexport default {\n name: 'ProjectPanel',\n components: {\n BasePanel,\n BaseModal,\n BaseSectionTitle,\n DataTable,\n BaseDashboard,\n ModelField,\n ModelFields,\n JiraIntegration,\n ParticipantsField,\n TagsField,\n BaseTabs,\n SharingSettings,\n },\n data() {\n return {\n experimentsCount: null,\n editingTitle: false,\n failedAnalyses: 0,\n fields: [projectBasicFields, projectFields],\n fieldLoading: false,\n isJiraActive: this.$settings.jira,\n loading: false,\n project: {},\n showDetails: false,\n projectBasicFields,\n projectFields,\n rules,\n experimentFigures: experimentFigures(),\n analysisFigures: analysisFigures(),\n showExperimentTables: true,\n showAnalysesTables: true,\n showSharingModal: false,\n camelifyKeys,\n }\n },\n computed: {\n ...mapGetters({\n projectId: 'projectId',\n user: 'getProfile'\n }),\n params() {\n return { projects__pk: this.projectId }\n },\n paramsSubmissions() {\n return { projects__pk: this.projectId, processed__isnull: 'False' }\n },\n paramsProjectLevelAnalyses() {\n return { project_level_analysis: this.projectId }\n },\n projectSummary() {\n let { project } = this\n let result = []\n const keys = ['species', 'source_types', 'analytes', 'methods']\n keys.forEach((key) => {\n if ('data' in project && key in project.data) {\n Object.keys(project.data[key]).forEach((field) => {\n result.push(`${field} ` + project.data[key][field])\n })\n }\n })\n return result.join(' - ')\n },\n executiveSummary() {\n return this.$get(this.project, 'data.executive_summary', '')\n },\n showTab() {\n return this.experimentsCount !== 0\n },\n favoriteInfo() {\n return {\n key: this.project.pk,\n model: 'project',\n panel: 'project',\n title: 'Project',\n }\n },\n },\n watch: {\n projectId() {\n this.fetchProject()\n },\n project(value) {\n this.$store.dispatch(UPDATE_PROJECT, {\n value,\n })\n this.updateMetrics()\n },\n },\n created() {\n this.fetchProject()\n },\n methods: {\n async updateMetrics() {\n this.experimentsCount = await getRecordsCount('experiments', {\n projects: this.projectId,\n })\n this.failedAnalyses = await getRecordsCount('analyses', {\n projects: this.projectId,\n status: 'FAILED',\n distinct: true,\n })\n },\n fetchProject() {\n this.$fetchModel('project')\n },\n updateValue(data) {\n this.$updateField('project', data)\n this.editingTitle = false\n },\n openDrive(driveId) {\n window.open(`https://drive.google.com/drive/folders/${driveId}`)\n },\n addNewSubmission() {\n this.$store.dispatch(ADD_NEW_SUBMISSION)\n },\n toggleExperimentsView() {\n this.showExperimentTables = !this.showExperimentTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showExperimentTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'experiments', panel: 'project' }\n )\n },\n toggleAnalysesView() {\n this.showAnalysesTables = !this.showAnalysesTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showAnalysesTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'analyses', panel: 'project' }\n )\n },\n onJiraSelected() {\n // Track analytics of when user uses the Jira Project Details\n window.analytics.track('Opened Jira Tab', {\n project: this.projectId,\n })\n },\n async updateSharing(data) {\n if (Object.keys(data).length) {\n const sharing = {\n ...this.project.sharing,\n ...snakifyKeys(data)\n }\n\n updateRecord('projects', this.projectId, { sharing })\n .then(response => {\n this.project = response\n })\n .catch((error) => {\n this.$store.dispatch(SHOW_ALERT, {\n error: this.$get(error, 'response.data.detail')\n })\n })\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\n.group-tag {\n background-color: #efe9ff !important;\n color: #3a74a3 !important;\n}\nbutton.v-btn--floating.very-small {\n height: 30px;\n width: 30px;\n}\n</style>\n"]
300305
+ sourcesContent: ["<template>\n <base-panel\n :favorite-info=\"favoriteInfo\"\n :loading=\"loading\"\n panel-type=\"project\"\n data-test=\"project-panel\"\n >\n <!-- Project and Summary -->\n <template v-slot:title>\n <v-icon class=\"title-icon white--text\">\n {{ $settings.modelIcons.project }}\n </v-icon>\n <b data-test=\"project-title\">Project&nbsp;</b>\n <span data-test=\"project-id\">{{ projectId }}</span>\n </template>\n\n <!-- Project Actions -->\n <template v-slot:actions=\"{ hover }\">\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n v-if=\"$isAuthorized('add_submission')\"\n :color=\"hover ? 'white' : 'transparent'\"\n data-test=\"add-samples-btn\"\n small\n @click=\"addNewSubmission\"\n v-on=\"on\"\n >\n library_add\n </v-icon>\n </template>\n <span>Add batch of samples</span>\n </v-tooltip>\n </template>\n\n <!-- Title and Info -->\n <template v-slot:content>\n <v-card flat class=\"isabl-base-card px-8 py-6\">\n <v-row v-if=\"editingTitle\" class=\"text-left\" >\n <v-text-field\n ref=\"title\"\n v-model=\"projectTitle\"\n :rules=\"[rules.required]\"\n outlined\n label=\"Project Title\"\n autofocus\n @blur=\"editingTitle = false\"\n @keydown.enter=\"updateValue({ title: projectTitle })\"\n />\n </v-row>\n <v-row v-if=\"!editingTitle\" class=\"justify-space-between\">\n <h2\n style=\"cursor: pointer\"\n data-test=\"project-title\"\n @click=\"\n editingTitle = true\n projectTitle = project.title\n \"\n >\n {{ $get(project, 'title') }}\n </h2>\n\n <!-- Share Settings Icon Button -->\n <v-btn\n v-show=\"\n $get(project, 'sharing', false) && (\n !$get(project, 'sharing.is_public', false) || $canShareProject(project)\n )\n \"\n :disabled=\"!$canShareProject(project)\"\n icon\n small\n color=\"primary\"\n @click=\"showSharingModal = $canShareProject(project)\"\n >\n <v-icon small>\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </v-btn>\n </v-row>\n\n <v-divider\n v-if=\"!editingTitle\"\n class=\"my-4 mx-n4\"\n />\n\n <!-- Project Details Section -->\n <v-row>\n <!-- Basic Details: Title, Short Title and Description -->\n <v-col\n v-for=\"(field, index) in Object.values(projectBasicFields)\"\n :key=\"index\"\n cols=\"12\"\n class=\"py-1\"\n >\n <model-field\n v-bind=\"field\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n <v-row>\n <!-- Participants -->\n <v-col\n v-if=\"project\"\n cols=\"12\"\n class=\"px-0 py-1\"\n sm=\"12\"\n >\n <participants-field\n :project=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-col>\n </v-row>\n\n <!-- tags -->\n <v-row class=\"tags-layout\">\n <div class=\"mr-0 mt-4\">\n <tags-field\n :model=\"project\"\n :field=\"'tags'\"\n :loading=\"fieldLoading\"\n :has-permission=\"$isAuthorized('change_project')\"\n add-tags-message=\"Add project tags!\"\n @update-value=\"updateValue\"\n />\n </div>\n\n <div\n v-if=\"project.group\"\n class=\"mr-0 mt-4\"\n >\n <tags-field\n v-if=\"project.group\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n :field=\"'group.tags'\"\n :has-permission=\"$isAuthorized('change_group')\"\n add-tags-message=\"Add group tags!\"\n tag-class=\"group-tag\"\n @update-value=\"updateValue\"\n />\n </div>\n </v-row>\n\n <v-row>\n <v-alert\n :value=\"experimentsCount === 0 && $isAuthorized('add_submission')\"\n color=\"info\"\n class=\"mt-2\"\n outlined\n style=\"width: 100%; cursor: pointer\"\n @click=\"addNewSubmission\"\n >\n Your project has no samples yet, click here to register new metadata!\n </v-alert>\n </v-row>\n </v-card>\n\n <!-- Modal to edit sharing -->\n <base-modal\n :show-modal=\"showSharingModal\"\n :loading=\"loading\"\n max-width=\"800px\"\n @close-modal=\"showSharingModal = false\"\n >\n <template v-slot:title>\n Sharing Settings\n <v-icon\n color=\"primary\"\n dense\n >\n {{ $get(project, 'sharing.is_public', false) ? 'mdi-share-variant' : 'mdi-lock' }}\n </v-icon>\n </template>\n\n <template v-slot:content>\n <sharing-settings\n :sharing=\"camelifyKeys($get(project, 'sharing', {}))\"\n no-title\n @update-sharing=\"updateSharing\"\n />\n </template>\n\n <template v-slot:cancel-btn>\n <span />\n </template>\n\n </base-modal>\n\n <!-- End Modal to edit sharing -->\n\n <v-card flat class=\"pa-0 no-shadow\">\n <base-tabs>\n <template v-slot:content>\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-experiments-tab\"\n >\n Experiments\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleExperimentsView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showExperimentTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showExperimentTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showExperimentTables\">\n <DataTable\n :params=\"params\"\n model=\"experiments\"\n data-test=\"project-experiments-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"samples\"\n data-test=\"project-samples-datatable\"\n />\n\n <DataTable\n :params=\"params\"\n model=\"individuals\"\n data-test=\"project-individuals-datatable\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showExperimentTables\"\n :figures=\"experimentFigures\"\n :params=\"{ projects__pk__icontains: projectId }\"\n :required-fields=\"['system_id']\"\n model=\"experiments\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-analyses-tab\"\n >\n <v-tooltip v-if=\"failedAnalyses > 0\" top>\n <template v-slot:activator=\"{ on }\">\n <v-badge\n dot\n color=\"error\"\n >\n <span v-on=\"on\">Analyses</span>\n </v-badge>\n </template>\n <span>This project has {{ failedAnalyses }} failed analyses.</span>\n </v-tooltip>\n <span v-else>Analyses</span>\n\n <v-btn\n fab\n x-small\n elevation=\"0\"\n class=\"ml-2\"\n color=\"transparent\"\n @click=\"toggleAnalysesView\"\n >\n <v-tooltip top>\n <template v-slot:activator=\"{ on }\">\n <v-icon\n color=\"primary\"\n class=\"white--text\"\n small\n v-on=\"on\"\n >\n {{ showAnalysesTables ? 'equalizer' : 'view_list' }}\n </v-icon>\n </template>\n <span>{{ showAnalysesTables ? 'View graphic data' : 'View tabulated data' }}</span>\n </v-tooltip>\n </v-btn>\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <div v-show=\"showAnalysesTables\">\n <DataTable\n :params=\"params\"\n model=\"analyses\"\n class=\"py-0\"\n />\n\n <DataTable\n :params=\"paramsProjectLevelAnalyses\"\n :skip-columns=\"[\n 'Target Experiments',\n 'Reference Experiments',\n 'Projects',\n 'Linked Analyses'\n ]\"\n model=\"analyses\"\n title=\"Project Analyses\"\n />\n </div>\n\n <base-dashboard\n v-if=\"!showAnalysesTables\"\n :figures=\"analysisFigures\"\n :params=\"{ targets__projects__pk__icontains: projectId }\"\n model=\"analyses\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"showTab\"\n data-test=\"project-submissions-tab\"\n >\n Submissions\n </v-tab>\n <v-tab-item v-if=\"showTab\">\n <DataTable\n :params=\"paramsSubmissions\"\n model=\"submissions\"\n data-test=\"project-submissions-datatable\"\n class=\"py-0\"\n />\n </v-tab-item>\n\n <v-tab data-test=\"project-details-tab\">\n Metadata\n </v-tab>\n <v-tab-item>\n <model-fields\n :fields=\"projectFields\"\n :model=\"project\"\n :loading=\"fieldLoading\"\n @update-value=\"updateValue\"\n />\n </v-tab-item>\n\n <v-tab\n v-if=\"isJiraActive\"\n data-test=\"project-jira-tab\"\n @click=\"onJiraSelected\"\n >Jira</v-tab>\n <v-tab-item v-if=\"isJiraActive\">\n <jira-integration :project=\"projectId\" />\n </v-tab-item>\n </template>\n </base-tabs>\n </v-card>\n </template>\n </base-panel>\n</template>\n\n<script>\nimport { mapGetters } from 'vuex'\n\nimport BasePanel from '@/components/base/BasePanel.vue'\nimport BaseTabs from '@/components/base/BaseTabs.vue'\nimport BaseModal from '@/components/base/BaseModal.vue'\nimport BaseSectionTitle from '@/components/base/BaseSectionTitle'\nimport BaseDashboard from '@/components/dashboard/BaseDashboard'\nimport DataTable from '@/components/table/DataTable.vue'\nimport JiraIntegration from '@/components/projects/JiraIntegration.vue'\nimport ModelField from '@/components/fields/ModelField'\nimport ModelFields from '@/components/fields/ModelFields'\nimport ParticipantsField from '@/components/fields/ParticipantsField'\nimport TagsField from '@/components/fields/TagsField'\nimport SharingSettings from '@/components/projects/SharingSettings'\n\nimport rules from '@/utils/rules'\nimport { ADD_NEW_SUBMISSION, UPDATE_PROJECT } from '@/store/actions/modals'\nimport { projectFields, projectBasicFields } from '@/utils/fields'\nimport { getRecordsCount } from '@/utils/api'\nimport { experimentFigures, analysisFigures } from '@/utils/graphs'\nimport { camelifyKeys, snakifyKeys } from '@/utils/helpers'\nimport { updateRecord } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\n\nexport default {\n name: 'ProjectPanel',\n components: {\n BasePanel,\n BaseModal,\n BaseSectionTitle,\n DataTable,\n BaseDashboard,\n ModelField,\n ModelFields,\n JiraIntegration,\n ParticipantsField,\n TagsField,\n BaseTabs,\n SharingSettings,\n },\n data() {\n return {\n experimentsCount: null,\n editingTitle: false,\n failedAnalyses: 0,\n fields: [projectBasicFields, projectFields],\n fieldLoading: false,\n isJiraActive: this.$settings.jira,\n loading: false,\n project: {},\n showDetails: false,\n projectBasicFields,\n projectFields,\n rules,\n experimentFigures: experimentFigures(),\n analysisFigures: analysisFigures(),\n showExperimentTables: true,\n showAnalysesTables: true,\n showSharingModal: false,\n camelifyKeys,\n }\n },\n computed: {\n ...mapGetters({\n projectId: 'projectId',\n user: 'getProfile'\n }),\n params() {\n return { projects__pk: this.projectId }\n },\n paramsSubmissions() {\n return { projects__pk: this.projectId, processed__isnull: 'False' }\n },\n paramsProjectLevelAnalyses() {\n return { project_level_analysis: this.projectId }\n },\n projectSummary() {\n let { project } = this\n let result = []\n const keys = ['species', 'source_types', 'analytes', 'methods']\n keys.forEach((key) => {\n if ('data' in project && key in project.data) {\n Object.keys(project.data[key]).forEach((field) => {\n result.push(`${field} ` + project.data[key][field])\n })\n }\n })\n return result.join(' - ')\n },\n executiveSummary() {\n return this.$get(this.project, 'data.executive_summary', '')\n },\n showTab() {\n return this.experimentsCount !== 0\n },\n favoriteInfo() {\n return {\n key: this.project.pk,\n model: 'project',\n panel: 'project',\n title: 'Project',\n }\n },\n },\n watch: {\n projectId() {\n this.fetchProject()\n },\n project(value) {\n this.$store.dispatch(UPDATE_PROJECT, {\n value,\n })\n this.updateMetrics()\n },\n },\n created() {\n this.fetchProject()\n },\n methods: {\n async updateMetrics() {\n this.experimentsCount = await getRecordsCount('experiments', {\n projects: this.projectId,\n })\n this.failedAnalyses = await getRecordsCount('analyses', {\n projects: this.projectId,\n status: 'FAILED',\n distinct: true,\n })\n },\n fetchProject() {\n this.$fetchModel('project')\n },\n updateValue(data) {\n this.$updateField('project', data)\n this.editingTitle = false\n },\n openDrive(driveId) {\n window.open(`https://drive.google.com/drive/folders/${driveId}`)\n },\n addNewSubmission() {\n this.$store.dispatch(ADD_NEW_SUBMISSION)\n },\n toggleExperimentsView() {\n this.showExperimentTables = !this.showExperimentTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showExperimentTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'experiments', panel: 'project' }\n )\n },\n toggleAnalysesView() {\n this.showAnalysesTables = !this.showAnalysesTables\n\n // Track preferences in visualizing models in analytics\n window.analytics.track(\n this.showAnalysesTables\n ? 'Viewed models from tables'\n : 'Viewed models from graphs',\n { dashboard: 'analyses', panel: 'project' }\n )\n },\n onJiraSelected() {\n // Track analytics of when user uses the Jira Project Details\n window.analytics.track('Opened Jira Tab', {\n project: this.projectId,\n })\n },\n async updateSharing(data) {\n if (Object.keys(data).length) {\n const sharing = {\n ...this.project.sharing,\n ...snakifyKeys(data)\n }\n\n updateRecord('projects', this.projectId, { sharing })\n .then(response => {\n this.project = response\n })\n .catch((error) => {\n this.$store.dispatch(SHOW_ALERT, {\n error: this.$get(error, 'response.data.detail')\n })\n })\n }\n },\n },\n}\n</script>\n\n<style lang=\"scss\">\n.group-tag {\n background-color: #efe9ff !important;\n color: #3a74a3 !important;\n}\nbutton.v-btn--floating.very-small {\n height: 30px;\n width: 30px;\n}\n</style>\n"]
300175
300306
  },
300176
300307
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
300177
- hash: "1e22e790071acd7bfbdf163062b392d0ac39bb05"
300308
+ hash: "6089d7320d2d7d63cef3b1d2121845b4a705585f"
300178
300309
  };
300179
300310
  var coverage = global[gcv] || (global[gcv] = {});
300180
300311
 
@@ -300561,6 +300692,10 @@ function ProjectPanelvue_type_script_lang_js_defineProperty(obj, key, value) { i
300561
300692
  //
300562
300693
  //
300563
300694
  //
300695
+ //
300696
+ //
300697
+ //
300698
+ //
300564
300699
 
300565
300700
 
300566
300701
 
@@ -300877,8 +301012,8 @@ var ProjectPanelvue_type_style_index_0_lang_scss_ = __webpack_require__("e84f");
300877
301012
 
300878
301013
  var ProjectPanel_component = normalizeComponent(
300879
301014
  projects_ProjectPanelvue_type_script_lang_js_,
300880
- ProjectPanelvue_type_template_id_037ff296_render,
300881
- ProjectPanelvue_type_template_id_037ff296_staticRenderFns,
301015
+ ProjectPanelvue_type_template_id_c79ead1c_render,
301016
+ ProjectPanelvue_type_template_id_c79ead1c_staticRenderFns,
300882
301017
  false,
300883
301018
  null,
300884
301019
  null,