@papaemmelab/isabl-web 0.3.10 → 0.3.12

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.
@@ -91177,7 +91177,7 @@ module.exports = overArg;
91177
91177
  /***/ "9224":
91178
91178
  /***/ (function(module) {
91179
91179
 
91180
- module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.10\",\"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\"}");
91180
+ module.exports = JSON.parse("{\"name\":\"@papaemmelab/isabl-web\",\"version\":\"0.3.12\",\"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\"}");
91181
91181
 
91182
91182
  /***/ }),
91183
91183
 
@@ -222363,15 +222363,16 @@ var EditProfileModal_component = normalizeComponent(
222363
222363
  )
222364
222364
 
222365
222365
  /* harmony default export */ var EditProfileModal = (EditProfileModal_component.exports);
222366
- // 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=72aeb340&
222367
- var NewProjectModalvue_type_template_id_72aeb340_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('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],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}])})}
222368
- var NewProjectModalvue_type_template_id_72aeb340_staticRenderFns = []
222366
+ // 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=58c607e8&
222367
+ var NewProjectModalvue_type_template_id_58c607e8_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('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],1),_c('v-row',[_c('v-col',{attrs:{"cols":"16"}},[_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)],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}])})}
222368
+ var NewProjectModalvue_type_template_id_58c607e8_staticRenderFns = []
222369
222369
 
222370
222370
 
222371
- // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=72aeb340&
222371
+ // CONCATENATED MODULE: ./src/components/projects/NewProjectModal.vue?vue&type=template&id=58c607e8&
222372
222372
 
222373
222373
  // EXTERNAL MODULE: ./node_modules/lodash/has.js
222374
222374
  var has = __webpack_require__("3852");
222375
+ var has_default = /*#__PURE__*/__webpack_require__.n(has);
222375
222376
 
222376
222377
  // 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/GroupSearchInput.vue?vue&type=template&id=9914fc16&
222377
222378
  var GroupSearchInputvue_type_template_id_9914fc16_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-autocomplete',{ref:"groupSearchInput",attrs:{"value":_vm.value,"rules":_vm.rules,"items":_vm.groups,"loading":_vm.isLoading,"search-input":_vm.groupsQuery,"label":_vm.label,"hint":_vm.hint,"no-filter":"","return-object":"","item-text":"name","item-value":"name"},on:{"update:searchInput":function($event){_vm.groupsQuery=$event},"update:search-input":function($event){_vm.groupsQuery=$event},"input":_vm.updateValue},scopedSlots:_vm._u([{key:"selection",fn:function(ref){
@@ -224530,7 +224531,7 @@ var UserSearchInput_component = normalizeComponent(
224530
224531
  // 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&
224531
224532
  var cov_41uwsnrpn = function () {
224532
224533
  var path = "/Users/juanes/papaemmelab/isabl_web/src/components/projects/NewProjectModal.vue";
224533
- var hash = "569231b05a1c881d9d6ae5390bffc324ffea102b";
224534
+ var hash = "880a7035d32da713e533258d2460ef2446ff3c8f";
224534
224535
  var global = new Function("return this")();
224535
224536
  var gcv = "__coverage__";
224536
224537
  var coverageData = {
@@ -224562,247 +224563,367 @@ var cov_41uwsnrpn = function () {
224562
224563
  column: 6
224563
224564
  },
224564
224565
  end: {
224565
- line: 212,
224566
+ line: 214,
224566
224567
  column: 7
224567
224568
  }
224568
224569
  },
224569
224570
  "3": {
224570
224571
  start: {
224571
- line: 210,
224572
+ line: 209,
224572
224573
  column: 8
224573
224574
  },
224574
224575
  end: {
224576
+ line: 211,
224577
+ column: 9
224578
+ }
224579
+ },
224580
+ "4": {
224581
+ start: {
224575
224582
  line: 210,
224583
+ column: 10
224584
+ },
224585
+ end: {
224586
+ line: 210,
224587
+ column: 48
224588
+ }
224589
+ },
224590
+ "5": {
224591
+ start: {
224592
+ line: 212,
224593
+ column: 8
224594
+ },
224595
+ end: {
224596
+ line: 212,
224576
224597
  column: 26
224577
224598
  }
224578
224599
  },
224579
- "4": {
224600
+ "6": {
224580
224601
  start: {
224581
- line: 211,
224602
+ line: 213,
224582
224603
  column: 8
224583
224604
  },
224584
224605
  end: {
224585
- line: 211,
224606
+ line: 213,
224586
224607
  column: 24
224587
224608
  }
224588
224609
  },
224589
- "5": {
224610
+ "7": {
224590
224611
  start: {
224591
- line: 229,
224612
+ line: 219,
224613
+ column: 4
224614
+ },
224615
+ end: {
224616
+ line: 227,
224617
+ column: 6
224618
+ }
224619
+ },
224620
+ "8": {
224621
+ start: {
224622
+ line: 220,
224592
224623
  column: 6
224593
224624
  },
224594
224625
  end: {
224595
- line: 232,
224626
+ line: 226,
224596
224627
  column: 7
224597
224628
  }
224598
224629
  },
224599
- "6": {
224630
+ "9": {
224600
224631
  start: {
224601
- line: 230,
224632
+ line: 221,
224633
+ column: 8
224634
+ },
224635
+ end: {
224636
+ line: 221,
224637
+ column: 44
224638
+ }
224639
+ },
224640
+ "10": {
224641
+ start: {
224642
+ line: 222,
224643
+ column: 13
224644
+ },
224645
+ end: {
224646
+ line: 226,
224647
+ column: 7
224648
+ }
224649
+ },
224650
+ "11": {
224651
+ start: {
224652
+ line: 223,
224653
+ column: 8
224654
+ },
224655
+ end: {
224656
+ line: 223,
224657
+ column: 66
224658
+ }
224659
+ },
224660
+ "12": {
224661
+ start: {
224662
+ line: 224,
224663
+ column: 13
224664
+ },
224665
+ end: {
224666
+ line: 226,
224667
+ column: 7
224668
+ }
224669
+ },
224670
+ "13": {
224671
+ start: {
224672
+ line: 225,
224673
+ column: 8
224674
+ },
224675
+ end: {
224676
+ line: 225,
224677
+ column: 67
224678
+ }
224679
+ },
224680
+ "14": {
224681
+ start: {
224682
+ line: 231,
224683
+ column: 6
224684
+ },
224685
+ end: {
224686
+ line: 234,
224687
+ column: 7
224688
+ }
224689
+ },
224690
+ "15": {
224691
+ start: {
224692
+ line: 232,
224602
224693
  column: 25
224603
224694
  },
224604
224695
  end: {
224605
- line: 230,
224696
+ line: 232,
224606
224697
  column: 57
224607
224698
  }
224608
224699
  },
224609
- "7": {
224700
+ "16": {
224610
224701
  start: {
224611
- line: 231,
224702
+ line: 233,
224612
224703
  column: 8
224613
224704
  },
224614
224705
  end: {
224615
- line: 231,
224706
+ line: 233,
224616
224707
  column: 38
224617
224708
  }
224618
224709
  },
224619
- "8": {
224710
+ "17": {
224620
224711
  start: {
224621
- line: 235,
224712
+ line: 237,
224622
224713
  column: 6
224623
224714
  },
224624
224715
  end: {
224625
- line: 235,
224716
+ line: 237,
224626
224717
  column: 56
224627
224718
  }
224628
224719
  },
224629
- "9": {
224720
+ "18": {
224630
224721
  start: {
224631
- line: 236,
224722
+ line: 238,
224632
224723
  column: 6
224633
224724
  },
224634
224725
  end: {
224635
- line: 236,
224726
+ line: 238,
224636
224727
  column: 44
224637
224728
  }
224638
224729
  },
224639
- "10": {
224730
+ "19": {
224640
224731
  start: {
224641
- line: 237,
224732
+ line: 239,
224642
224733
  column: 6
224643
224734
  },
224644
224735
  end: {
224645
- line: 237,
224736
+ line: 239,
224646
224737
  column: 54
224647
224738
  }
224648
224739
  },
224649
- "11": {
224740
+ "20": {
224650
224741
  start: {
224651
- line: 240,
224742
+ line: 242,
224743
+ column: 23
224744
+ },
224745
+ end: {
224746
+ line: 242,
224747
+ column: 27
224748
+ }
224749
+ },
224750
+ "21": {
224751
+ start: {
224752
+ line: 243,
224652
224753
  column: 6
224653
224754
  },
224654
224755
  end: {
224655
- line: 240,
224756
+ line: 243,
224656
224757
  column: 32
224657
224758
  }
224658
224759
  },
224659
- "12": {
224760
+ "22": {
224660
224761
  start: {
224661
- line: 246,
224762
+ line: 244,
224662
224763
  column: 6
224663
224764
  },
224664
224765
  end: {
224665
- line: 246,
224666
- column: 22
224766
+ line: 244,
224767
+ column: 80
224667
224768
  }
224668
224769
  },
224669
- "13": {
224770
+ "23": {
224771
+ start: {
224772
+ line: 244,
224773
+ column: 45
224774
+ },
224775
+ end: {
224776
+ line: 244,
224777
+ column: 79
224778
+ }
224779
+ },
224780
+ "24": {
224670
224781
  start: {
224671
224782
  line: 247,
224672
224783
  column: 6
224673
224784
  },
224674
224785
  end: {
224675
224786
  line: 247,
224787
+ column: 22
224788
+ }
224789
+ },
224790
+ "25": {
224791
+ start: {
224792
+ line: 248,
224793
+ column: 6
224794
+ },
224795
+ end: {
224796
+ line: 248,
224676
224797
  column: 31
224677
224798
  }
224678
224799
  },
224679
- "14": {
224800
+ "26": {
224680
224801
  start: {
224681
- line: 250,
224802
+ line: 251,
224682
224803
  column: 6
224683
224804
  },
224684
224805
  end: {
224685
- line: 253,
224806
+ line: 254,
224686
224807
  column: 7
224687
224808
  }
224688
224809
  },
224689
- "15": {
224810
+ "27": {
224690
224811
  start: {
224691
- line: 256,
224812
+ line: 257,
224692
224813
  column: 6
224693
224814
  },
224694
224815
  end: {
224695
- line: 256,
224816
+ line: 257,
224696
224817
  column: 32
224697
224818
  }
224698
224819
  },
224699
- "16": {
224820
+ "28": {
224700
224821
  start: {
224701
- line: 257,
224822
+ line: 258,
224702
224823
  column: 6
224703
224824
  },
224704
224825
  end: {
224705
- line: 259,
224826
+ line: 260,
224706
224827
  column: 8
224707
224828
  }
224708
224829
  },
224709
- "17": {
224830
+ "29": {
224710
224831
  start: {
224711
- line: 258,
224832
+ line: 259,
224712
224833
  column: 8
224713
224834
  },
224714
224835
  end: {
224715
- line: 258,
224836
+ line: 259,
224716
224837
  column: 39
224717
224838
  }
224718
224839
  },
224719
- "18": {
224840
+ "30": {
224720
224841
  start: {
224721
- line: 260,
224842
+ line: 261,
224722
224843
  column: 6
224723
224844
  },
224724
224845
  end: {
224725
- line: 281,
224846
+ line: 282,
224726
224847
  column: 7
224727
224848
  }
224728
224849
  },
224729
- "19": {
224850
+ "31": {
224730
224851
  start: {
224731
- line: 261,
224852
+ line: 262,
224732
224853
  column: 8
224733
224854
  },
224734
224855
  end: {
224735
- line: 280,
224856
+ line: 281,
224736
224857
  column: 12
224737
224858
  }
224738
224859
  },
224739
- "20": {
224860
+ "32": {
224740
224861
  start: {
224741
- line: 263,
224862
+ line: 264,
224742
224863
  column: 30
224743
224864
  },
224744
224865
  end: {
224745
- line: 263,
224866
+ line: 264,
224746
224867
  column: 59
224747
224868
  }
224748
224869
  },
224749
- "21": {
224870
+ "33": {
224750
224871
  start: {
224751
- line: 264,
224872
+ line: 265,
224752
224873
  column: 12
224753
224874
  },
224754
224875
  end: {
224755
- line: 266,
224876
+ line: 267,
224756
224877
  column: 14
224757
224878
  }
224758
224879
  },
224759
- "22": {
224880
+ "34": {
224760
224881
  start: {
224761
- line: 268,
224882
+ line: 269,
224762
224883
  column: 12
224763
224884
  },
224764
224885
  end: {
224765
- line: 270,
224886
+ line: 271,
224766
224887
  column: 14
224767
224888
  }
224768
224889
  },
224769
- "23": {
224890
+ "35": {
224770
224891
  start: {
224771
- line: 271,
224892
+ line: 272,
224772
224893
  column: 12
224773
224894
  },
224774
224895
  end: {
224775
- line: 271,
224896
+ line: 272,
224776
224897
  column: 29
224777
224898
  }
224778
224899
  },
224779
- "24": {
224900
+ "36": {
224780
224901
  start: {
224781
- line: 274,
224902
+ line: 275,
224782
224903
  column: 12
224783
224904
  },
224784
224905
  end: {
224785
- line: 279,
224906
+ line: 280,
224786
224907
  column: 13
224787
224908
  }
224788
224909
  },
224789
- "25": {
224910
+ "37": {
224790
224911
  start: {
224791
- line: 275,
224912
+ line: 276,
224792
224913
  column: 14
224793
224914
  },
224794
224915
  end: {
224795
- line: 275,
224916
+ line: 276,
224796
224917
  column: 54
224797
224918
  }
224798
224919
  },
224799
- "26": {
224920
+ "38": {
224800
224921
  start: {
224801
- line: 276,
224922
+ line: 277,
224802
224923
  column: 14
224803
224924
  },
224804
224925
  end: {
224805
- line: 278,
224926
+ line: 279,
224806
224927
  column: 16
224807
224928
  }
224808
224929
  }
@@ -224874,7 +224995,7 @@ var cov_41uwsnrpn = function () {
224874
224995
  column: 21
224875
224996
  },
224876
224997
  end: {
224877
- line: 213,
224998
+ line: 215,
224878
224999
  column: 5
224879
225000
  }
224880
225001
  },
@@ -224884,241 +225005,289 @@ var cov_41uwsnrpn = function () {
224884
225005
  name: "(anonymous_3)",
224885
225006
  decl: {
224886
225007
  start: {
224887
- line: 215,
225008
+ line: 217,
224888
225009
  column: 2
224889
225010
  },
224890
225011
  end: {
224891
- line: 215,
225012
+ line: 217,
224892
225013
  column: 3
224893
225014
  }
224894
225015
  },
224895
225016
  loc: {
224896
225017
  start: {
224897
- line: 215,
225018
+ line: 217,
224898
225019
  column: 12
224899
225020
  },
224900
225021
  end: {
224901
- line: 226,
225022
+ line: 228,
224902
225023
  column: 3
224903
225024
  }
224904
225025
  },
224905
- line: 215
225026
+ line: 217
224906
225027
  },
224907
225028
  "4": {
224908
225029
  name: "(anonymous_4)",
224909
225030
  decl: {
224910
225031
  start: {
224911
- line: 228,
224912
- column: 4
225032
+ line: 219,
225033
+ column: 34
224913
225034
  },
224914
225035
  end: {
224915
- line: 228,
224916
- column: 5
225036
+ line: 219,
225037
+ column: 35
224917
225038
  }
224918
225039
  },
224919
225040
  loc: {
224920
225041
  start: {
224921
- line: 228,
224922
- column: 24
225042
+ line: 219,
225043
+ column: 43
224923
225044
  },
224924
225045
  end: {
224925
- line: 233,
225046
+ line: 227,
224926
225047
  column: 5
224927
225048
  }
224928
225049
  },
224929
- line: 228
225050
+ line: 219
224930
225051
  },
224931
225052
  "5": {
224932
225053
  name: "(anonymous_5)",
224933
225054
  decl: {
224934
225055
  start: {
224935
- line: 234,
225056
+ line: 230,
224936
225057
  column: 4
224937
225058
  },
224938
225059
  end: {
224939
- line: 234,
225060
+ line: 230,
224940
225061
  column: 5
224941
225062
  }
224942
225063
  },
224943
225064
  loc: {
224944
225065
  start: {
224945
- line: 234,
224946
- column: 27
225066
+ line: 230,
225067
+ column: 24
224947
225068
  },
224948
225069
  end: {
224949
- line: 238,
225070
+ line: 235,
224950
225071
  column: 5
224951
225072
  }
224952
225073
  },
224953
- line: 234
225074
+ line: 230
224954
225075
  },
224955
225076
  "6": {
224956
225077
  name: "(anonymous_6)",
224957
225078
  decl: {
224958
225079
  start: {
224959
- line: 239,
225080
+ line: 236,
224960
225081
  column: 4
224961
225082
  },
224962
225083
  end: {
224963
- line: 239,
225084
+ line: 236,
224964
225085
  column: 5
224965
225086
  }
224966
225087
  },
224967
225088
  loc: {
224968
225089
  start: {
224969
- line: 239,
224970
- column: 16
225090
+ line: 236,
225091
+ column: 27
224971
225092
  },
224972
225093
  end: {
224973
- line: 244,
225094
+ line: 240,
224974
225095
  column: 5
224975
225096
  }
224976
225097
  },
224977
- line: 239
225098
+ line: 236
224978
225099
  },
224979
225100
  "7": {
224980
225101
  name: "(anonymous_7)",
224981
225102
  decl: {
224982
225103
  start: {
224983
- line: 245,
225104
+ line: 241,
224984
225105
  column: 4
224985
225106
  },
224986
225107
  end: {
224987
- line: 245,
225108
+ line: 241,
224988
225109
  column: 5
224989
225110
  }
224990
225111
  },
224991
225112
  loc: {
224992
225113
  start: {
224993
- line: 245,
224994
- column: 17
225114
+ line: 241,
225115
+ column: 16
224995
225116
  },
224996
225117
  end: {
224997
- line: 248,
225118
+ line: 245,
224998
225119
  column: 5
224999
225120
  }
225000
225121
  },
225001
- line: 245
225122
+ line: 241
225002
225123
  },
225003
225124
  "8": {
225004
225125
  name: "(anonymous_8)",
225005
225126
  decl: {
225006
225127
  start: {
225007
- line: 249,
225128
+ line: 244,
225129
+ column: 36
225130
+ },
225131
+ end: {
225132
+ line: 244,
225133
+ column: 37
225134
+ }
225135
+ },
225136
+ loc: {
225137
+ start: {
225138
+ line: 244,
225139
+ column: 45
225140
+ },
225141
+ end: {
225142
+ line: 244,
225143
+ column: 79
225144
+ }
225145
+ },
225146
+ line: 244
225147
+ },
225148
+ "9": {
225149
+ name: "(anonymous_9)",
225150
+ decl: {
225151
+ start: {
225152
+ line: 246,
225008
225153
  column: 4
225009
225154
  },
225010
225155
  end: {
225011
- line: 249,
225156
+ line: 246,
225012
225157
  column: 5
225013
225158
  }
225014
225159
  },
225015
225160
  loc: {
225016
225161
  start: {
225162
+ line: 246,
225163
+ column: 17
225164
+ },
225165
+ end: {
225017
225166
  line: 249,
225167
+ column: 5
225168
+ }
225169
+ },
225170
+ line: 246
225171
+ },
225172
+ "10": {
225173
+ name: "(anonymous_10)",
225174
+ decl: {
225175
+ start: {
225176
+ line: 250,
225177
+ column: 4
225178
+ },
225179
+ end: {
225180
+ line: 250,
225181
+ column: 5
225182
+ }
225183
+ },
225184
+ loc: {
225185
+ start: {
225186
+ line: 250,
225018
225187
  column: 22
225019
225188
  },
225020
225189
  end: {
225021
- line: 254,
225190
+ line: 255,
225022
225191
  column: 5
225023
225192
  }
225024
225193
  },
225025
- line: 249
225194
+ line: 250
225026
225195
  },
225027
- "9": {
225028
- name: "(anonymous_9)",
225196
+ "11": {
225197
+ name: "(anonymous_11)",
225029
225198
  decl: {
225030
225199
  start: {
225031
- line: 255,
225200
+ line: 256,
225032
225201
  column: 4
225033
225202
  },
225034
225203
  end: {
225035
- line: 255,
225204
+ line: 256,
225036
225205
  column: 5
225037
225206
  }
225038
225207
  },
225039
225208
  loc: {
225040
225209
  start: {
225041
- line: 255,
225210
+ line: 256,
225042
225211
  column: 19
225043
225212
  },
225044
225213
  end: {
225045
- line: 282,
225214
+ line: 283,
225046
225215
  column: 5
225047
225216
  }
225048
225217
  },
225049
- line: 255
225218
+ line: 256
225050
225219
  },
225051
- "10": {
225052
- name: "(anonymous_10)",
225220
+ "12": {
225221
+ name: "(anonymous_12)",
225053
225222
  decl: {
225054
225223
  start: {
225055
- line: 257,
225224
+ line: 258,
225056
225225
  column: 36
225057
225226
  },
225058
225227
  end: {
225059
- line: 257,
225228
+ line: 258,
225060
225229
  column: 37
225061
225230
  }
225062
225231
  },
225063
225232
  loc: {
225064
225233
  start: {
225065
- line: 257,
225234
+ line: 258,
225066
225235
  column: 45
225067
225236
  },
225068
225237
  end: {
225069
- line: 259,
225238
+ line: 260,
225070
225239
  column: 7
225071
225240
  }
225072
225241
  },
225073
- line: 257
225242
+ line: 258
225074
225243
  },
225075
- "11": {
225076
- name: "(anonymous_11)",
225244
+ "13": {
225245
+ name: "(anonymous_13)",
225077
225246
  decl: {
225078
225247
  start: {
225079
- line: 262,
225248
+ line: 263,
225080
225249
  column: 16
225081
225250
  },
225082
225251
  end: {
225083
- line: 262,
225252
+ line: 263,
225084
225253
  column: 17
225085
225254
  }
225086
225255
  },
225087
225256
  loc: {
225088
225257
  start: {
225089
- line: 262,
225258
+ line: 263,
225090
225259
  column: 28
225091
225260
  },
225092
225261
  end: {
225093
- line: 272,
225262
+ line: 273,
225094
225263
  column: 11
225095
225264
  }
225096
225265
  },
225097
- line: 262
225266
+ line: 263
225098
225267
  },
225099
- "12": {
225100
- name: "(anonymous_12)",
225268
+ "14": {
225269
+ name: "(anonymous_14)",
225101
225270
  decl: {
225102
225271
  start: {
225103
- line: 273,
225272
+ line: 274,
225104
225273
  column: 17
225105
225274
  },
225106
225275
  end: {
225107
- line: 273,
225276
+ line: 274,
225108
225277
  column: 18
225109
225278
  }
225110
225279
  },
225111
225280
  loc: {
225112
225281
  start: {
225113
- line: 273,
225282
+ line: 274,
225114
225283
  column: 26
225115
225284
  },
225116
225285
  end: {
225117
- line: 280,
225286
+ line: 281,
225118
225287
  column: 11
225119
225288
  }
225120
225289
  },
225121
- line: 273
225290
+ line: 274
225122
225291
  }
225123
225292
  },
225124
225293
  branchMap: {
@@ -225129,7 +225298,7 @@ var cov_41uwsnrpn = function () {
225129
225298
  column: 6
225130
225299
  },
225131
225300
  end: {
225132
- line: 212,
225301
+ line: 214,
225133
225302
  column: 7
225134
225303
  }
225135
225304
  },
@@ -225140,7 +225309,7 @@ var cov_41uwsnrpn = function () {
225140
225309
  column: 6
225141
225310
  },
225142
225311
  end: {
225143
- line: 212,
225312
+ line: 214,
225144
225313
  column: 7
225145
225314
  }
225146
225315
  }, {
@@ -225149,7 +225318,7 @@ var cov_41uwsnrpn = function () {
225149
225318
  column: 6
225150
225319
  },
225151
225320
  end: {
225152
- line: 212,
225321
+ line: 214,
225153
225322
  column: 7
225154
225323
  }
225155
225324
  }],
@@ -225158,101 +225327,266 @@ var cov_41uwsnrpn = function () {
225158
225327
  "1": {
225159
225328
  loc: {
225160
225329
  start: {
225161
- line: 229,
225330
+ line: 209,
225331
+ column: 8
225332
+ },
225333
+ end: {
225334
+ line: 211,
225335
+ column: 9
225336
+ }
225337
+ },
225338
+ type: "if",
225339
+ locations: [{
225340
+ start: {
225341
+ line: 209,
225342
+ column: 8
225343
+ },
225344
+ end: {
225345
+ line: 211,
225346
+ column: 9
225347
+ }
225348
+ }, {
225349
+ start: {
225350
+ line: 209,
225351
+ column: 8
225352
+ },
225353
+ end: {
225354
+ line: 211,
225355
+ column: 9
225356
+ }
225357
+ }],
225358
+ line: 209
225359
+ },
225360
+ "2": {
225361
+ loc: {
225362
+ start: {
225363
+ line: 220,
225162
225364
  column: 6
225163
225365
  },
225164
225366
  end: {
225165
- line: 232,
225367
+ line: 226,
225166
225368
  column: 7
225167
225369
  }
225168
225370
  },
225169
225371
  type: "if",
225170
225372
  locations: [{
225171
225373
  start: {
225172
- line: 229,
225374
+ line: 220,
225173
225375
  column: 6
225174
225376
  },
225175
225377
  end: {
225176
- line: 232,
225378
+ line: 226,
225177
225379
  column: 7
225178
225380
  }
225179
225381
  }, {
225180
225382
  start: {
225181
- line: 229,
225383
+ line: 220,
225182
225384
  column: 6
225183
225385
  },
225184
225386
  end: {
225185
- line: 232,
225387
+ line: 226,
225186
225388
  column: 7
225187
225389
  }
225188
225390
  }],
225189
- line: 229
225391
+ line: 220
225190
225392
  },
225191
- "2": {
225393
+ "3": {
225192
225394
  loc: {
225193
225395
  start: {
225194
- line: 260,
225396
+ line: 222,
225397
+ column: 13
225398
+ },
225399
+ end: {
225400
+ line: 226,
225401
+ column: 7
225402
+ }
225403
+ },
225404
+ type: "if",
225405
+ locations: [{
225406
+ start: {
225407
+ line: 222,
225408
+ column: 13
225409
+ },
225410
+ end: {
225411
+ line: 226,
225412
+ column: 7
225413
+ }
225414
+ }, {
225415
+ start: {
225416
+ line: 222,
225417
+ column: 13
225418
+ },
225419
+ end: {
225420
+ line: 226,
225421
+ column: 7
225422
+ }
225423
+ }],
225424
+ line: 222
225425
+ },
225426
+ "4": {
225427
+ loc: {
225428
+ start: {
225429
+ line: 224,
225430
+ column: 13
225431
+ },
225432
+ end: {
225433
+ line: 226,
225434
+ column: 7
225435
+ }
225436
+ },
225437
+ type: "if",
225438
+ locations: [{
225439
+ start: {
225440
+ line: 224,
225441
+ column: 13
225442
+ },
225443
+ end: {
225444
+ line: 226,
225445
+ column: 7
225446
+ }
225447
+ }, {
225448
+ start: {
225449
+ line: 224,
225450
+ column: 13
225451
+ },
225452
+ end: {
225453
+ line: 226,
225454
+ column: 7
225455
+ }
225456
+ }],
225457
+ line: 224
225458
+ },
225459
+ "5": {
225460
+ loc: {
225461
+ start: {
225462
+ line: 231,
225195
225463
  column: 6
225196
225464
  },
225197
225465
  end: {
225198
- line: 281,
225466
+ line: 234,
225199
225467
  column: 7
225200
225468
  }
225201
225469
  },
225202
225470
  type: "if",
225203
225471
  locations: [{
225204
225472
  start: {
225205
- line: 260,
225473
+ line: 231,
225206
225474
  column: 6
225207
225475
  },
225208
225476
  end: {
225209
- line: 281,
225477
+ line: 234,
225210
225478
  column: 7
225211
225479
  }
225212
225480
  }, {
225213
225481
  start: {
225214
- line: 260,
225482
+ line: 231,
225215
225483
  column: 6
225216
225484
  },
225217
225485
  end: {
225218
- line: 281,
225486
+ line: 234,
225219
225487
  column: 7
225220
225488
  }
225221
225489
  }],
225222
- line: 260
225490
+ line: 231
225223
225491
  },
225224
- "3": {
225492
+ "6": {
225225
225493
  loc: {
225226
225494
  start: {
225227
- line: 274,
225495
+ line: 244,
225496
+ column: 45
225497
+ },
225498
+ end: {
225499
+ line: 244,
225500
+ column: 79
225501
+ }
225502
+ },
225503
+ type: "binary-expr",
225504
+ locations: [{
225505
+ start: {
225506
+ line: 244,
225507
+ column: 45
225508
+ },
225509
+ end: {
225510
+ line: 244,
225511
+ column: 56
225512
+ }
225513
+ }, {
225514
+ start: {
225515
+ line: 244,
225516
+ column: 60
225517
+ },
225518
+ end: {
225519
+ line: 244,
225520
+ column: 79
225521
+ }
225522
+ }],
225523
+ line: 244
225524
+ },
225525
+ "7": {
225526
+ loc: {
225527
+ start: {
225528
+ line: 261,
225529
+ column: 6
225530
+ },
225531
+ end: {
225532
+ line: 282,
225533
+ column: 7
225534
+ }
225535
+ },
225536
+ type: "if",
225537
+ locations: [{
225538
+ start: {
225539
+ line: 261,
225540
+ column: 6
225541
+ },
225542
+ end: {
225543
+ line: 282,
225544
+ column: 7
225545
+ }
225546
+ }, {
225547
+ start: {
225548
+ line: 261,
225549
+ column: 6
225550
+ },
225551
+ end: {
225552
+ line: 282,
225553
+ column: 7
225554
+ }
225555
+ }],
225556
+ line: 261
225557
+ },
225558
+ "8": {
225559
+ loc: {
225560
+ start: {
225561
+ line: 275,
225228
225562
  column: 12
225229
225563
  },
225230
225564
  end: {
225231
- line: 279,
225565
+ line: 280,
225232
225566
  column: 13
225233
225567
  }
225234
225568
  },
225235
225569
  type: "if",
225236
225570
  locations: [{
225237
225571
  start: {
225238
- line: 274,
225572
+ line: 275,
225239
225573
  column: 12
225240
225574
  },
225241
225575
  end: {
225242
- line: 279,
225576
+ line: 280,
225243
225577
  column: 13
225244
225578
  }
225245
225579
  }, {
225246
225580
  start: {
225247
- line: 274,
225581
+ line: 275,
225248
225582
  column: 12
225249
225583
  },
225250
225584
  end: {
225251
- line: 279,
225585
+ line: 280,
225252
225586
  column: 13
225253
225587
  }
225254
225588
  }],
225255
- line: 274
225589
+ line: 275
225256
225590
  }
225257
225591
  },
225258
225592
  s: {
@@ -225282,7 +225616,19 @@ var cov_41uwsnrpn = function () {
225282
225616
  "23": 0,
225283
225617
  "24": 0,
225284
225618
  "25": 0,
225285
- "26": 0
225619
+ "26": 0,
225620
+ "27": 0,
225621
+ "28": 0,
225622
+ "29": 0,
225623
+ "30": 0,
225624
+ "31": 0,
225625
+ "32": 0,
225626
+ "33": 0,
225627
+ "34": 0,
225628
+ "35": 0,
225629
+ "36": 0,
225630
+ "37": 0,
225631
+ "38": 0
225286
225632
  },
225287
225633
  f: {
225288
225634
  "0": 0,
@@ -225297,25 +225643,32 @@ var cov_41uwsnrpn = function () {
225297
225643
  "9": 0,
225298
225644
  "10": 0,
225299
225645
  "11": 0,
225300
- "12": 0
225646
+ "12": 0,
225647
+ "13": 0,
225648
+ "14": 0
225301
225649
  },
225302
225650
  b: {
225303
225651
  "0": [0, 0],
225304
225652
  "1": [0, 0],
225305
225653
  "2": [0, 0],
225306
- "3": [0, 0]
225654
+ "3": [0, 0],
225655
+ "4": [0, 0],
225656
+ "5": [0, 0],
225657
+ "6": [0, 0],
225658
+ "7": [0, 0],
225659
+ "8": [0, 0]
225307
225660
  },
225308
225661
  inputSourceMap: {
225309
225662
  version: 3,
225310
225663
  sources: ["NewProjectModal.vue"],
225311
225664
  names: [],
225312
- mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA;;AAEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
225665
+ mappings: ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyJA;;AAEA;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;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA",
225313
225666
  file: "NewProjectModal.vue",
225314
225667
  sourceRoot: "src/components/projects",
225315
- 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 <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </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 rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput\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 ],\n groups: [],\n project: {},\n refs: {},\n rules,\n showOptionalFields: false,\n users: [],\n usersQuery: ''\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n // this.$nextTick(this.$refs.title.focus)\n this.fetchGroups()\n this.resetForm()\n }\n }\n },\n mounted() {\n // Map all local and nested inputs to local 'refs'\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 // }\n // })\n },\n methods: {\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 // this.fieldsToValidate.forEach(field => {\n // this.refs[field].reset()\n // })\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 async submit() {\n this.formHasErrors = false\n this.fieldsToValidate.forEach(field => {\n this.refs[field].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"]
225668
+ 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 <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </v-row>\n\n <v-row>\n <v-col cols=\"16\">\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 </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 rules from '@/utils/rules'\nimport { createRecord, fetchListRecords } from '@/utils/api'\nimport { SHOW_ALERT } from '@/store/actions/alert'\nimport { SHOW_PANEL } from '@/store/actions/panels'\n\nexport default {\n name: 'NewProjectModal',\n components: {\n BaseModal,\n GroupSearchInput,\n UserSearchInput\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 ],\n groups: [],\n project: {},\n refs: {},\n rules,\n showOptionalFields: false,\n users: [],\n usersQuery: ''\n }\n },\n watch: {\n showModal(value) {\n if (value) {\n // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587\n if (this.$refs.title) {\n this.$nextTick(this.$refs.title.focus)\n }\n this.fetchGroups()\n this.resetForm()\n }\n }\n },\n mounted() {\n // Map all local and nested inputs to local 'refs'\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 }\n })\n },\n methods: {\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 const { refs } = this\n this.formHasErrors = false\n this.fieldsToValidate.forEach(field => refs[field] && refs[field].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 async submit() {\n this.formHasErrors = false\n this.fieldsToValidate.forEach(field => {\n this.refs[field].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"]
225316
225669
  },
225317
225670
  _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184",
225318
- hash: "569231b05a1c881d9d6ae5390bffc324ffea102b"
225671
+ hash: "880a7035d32da713e533258d2460ef2446ff3c8f"
225319
225672
  };
225320
225673
  var coverage = global[gcv] || (global[gcv] = {});
225321
225674
 
@@ -225545,28 +225898,61 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
225545
225898
  if (value) {
225546
225899
  cov_41uwsnrpn.b[0][0]++;
225547
225900
  cov_41uwsnrpn.s[3]++;
225901
+
225548
225902
  // ensure autofocus: https://github.com/vuetifyjs/vuetify/issues/1587
225549
- // this.$nextTick(this.$refs.title.focus)
225903
+ if (this.$refs.title) {
225904
+ cov_41uwsnrpn.b[1][0]++;
225905
+ cov_41uwsnrpn.s[4]++;
225906
+ this.$nextTick(this.$refs.title.focus);
225907
+ } else {
225908
+ cov_41uwsnrpn.b[1][1]++;
225909
+ }
225910
+
225911
+ cov_41uwsnrpn.s[5]++;
225550
225912
  this.fetchGroups();
225551
- cov_41uwsnrpn.s[4]++;
225913
+ cov_41uwsnrpn.s[6]++;
225552
225914
  this.resetForm();
225553
225915
  } else {
225554
225916
  cov_41uwsnrpn.b[0][1]++;
225555
225917
  }
225556
225918
  }
225557
225919
  },
225558
- mounted: function mounted() {// Map all local and nested inputs to local 'refs'
225559
- // this.fieldsToValidate.forEach(field => {
225560
- // if (has(this.$refs[field], 'reset')) {
225561
- // this.refs[field] = this.$refs[field]
225562
- // } else if (has(this.$refs[field], '$refs.userSearchInput.reset')) {
225563
- // this.refs[field] = this.$refs[field].$refs.userSearchInput
225564
- // } else if (has(this.$refs[field], '$refs.groupSearchInput.reset')) {
225565
- // this.refs[field] = this.$refs[field].$refs.groupSearchInput
225566
- // }
225567
- // })
225920
+ mounted: function mounted() {
225921
+ var _this = this;
225568
225922
 
225569
225923
  cov_41uwsnrpn.f[3]++;
225924
+ cov_41uwsnrpn.s[7]++;
225925
+ // Map all local and nested inputs to local 'refs'
225926
+ this.fieldsToValidate.forEach(function (field) {
225927
+ cov_41uwsnrpn.f[4]++;
225928
+ cov_41uwsnrpn.s[8]++;
225929
+
225930
+ if (has_default()(_this.$refs[field], 'reset')) {
225931
+ cov_41uwsnrpn.b[2][0]++;
225932
+ cov_41uwsnrpn.s[9]++;
225933
+ _this.refs[field] = _this.$refs[field];
225934
+ } else {
225935
+ cov_41uwsnrpn.b[2][1]++;
225936
+ cov_41uwsnrpn.s[10]++;
225937
+
225938
+ if (has_default()(_this.$refs[field], '$refs.userSearchInput.reset')) {
225939
+ cov_41uwsnrpn.b[3][0]++;
225940
+ cov_41uwsnrpn.s[11]++;
225941
+ _this.refs[field] = _this.$refs[field].$refs.userSearchInput;
225942
+ } else {
225943
+ cov_41uwsnrpn.b[3][1]++;
225944
+ cov_41uwsnrpn.s[12]++;
225945
+
225946
+ if (has_default()(_this.$refs[field], '$refs.groupSearchInput.reset')) {
225947
+ cov_41uwsnrpn.b[4][0]++;
225948
+ cov_41uwsnrpn.s[13]++;
225949
+ _this.refs[field] = _this.$refs[field].$refs.groupSearchInput;
225950
+ } else {
225951
+ cov_41uwsnrpn.b[4][1]++;
225952
+ }
225953
+ }
225954
+ }
225955
+ });
225570
225956
  },
225571
225957
  methods: {
225572
225958
  fetchGroups: function () {
@@ -225576,28 +225962,28 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
225576
225962
  while (1) {
225577
225963
  switch (_context.prev = _context.next) {
225578
225964
  case 0:
225579
- cov_41uwsnrpn.f[4]++;
225580
- cov_41uwsnrpn.s[5]++;
225965
+ cov_41uwsnrpn.f[5]++;
225966
+ cov_41uwsnrpn.s[14]++;
225581
225967
 
225582
225968
  if (this.groups.length) {
225583
225969
  _context.next = 12;
225584
225970
  break;
225585
225971
  }
225586
225972
 
225587
- cov_41uwsnrpn.b[1][0]++;
225588
- cov_41uwsnrpn.s[6]++;
225973
+ cov_41uwsnrpn.b[5][0]++;
225974
+ cov_41uwsnrpn.s[15]++;
225589
225975
  _context.next = 7;
225590
225976
  return fetchListRecords('groups');
225591
225977
 
225592
225978
  case 7:
225593
225979
  response = _context.sent;
225594
- cov_41uwsnrpn.s[7]++;
225980
+ cov_41uwsnrpn.s[16]++;
225595
225981
  this.groups = response.results;
225596
225982
  _context.next = 13;
225597
225983
  break;
225598
225984
 
225599
225985
  case 12:
225600
- cov_41uwsnrpn.b[1][1]++;
225986
+ cov_41uwsnrpn.b[5][1]++;
225601
225987
 
225602
225988
  case 13:
225603
225989
  case "end":
@@ -225614,93 +226000,101 @@ function NewProjectModalvue_type_script_lang_js_asyncToGenerator(fn) { return fu
225614
226000
  return fetchGroups;
225615
226001
  }(),
225616
226002
  toggleOptionalFields: function toggleOptionalFields() {
225617
- cov_41uwsnrpn.f[5]++;
225618
- cov_41uwsnrpn.s[8]++;
226003
+ cov_41uwsnrpn.f[6]++;
226004
+ cov_41uwsnrpn.s[17]++;
225619
226005
  this.showOptionalFields = !this.showOptionalFields;
225620
- cov_41uwsnrpn.s[9]++;
226006
+ cov_41uwsnrpn.s[18]++;
225621
226007
  this.$nextTick(this.$refs.title.focus);
225622
- cov_41uwsnrpn.s[10]++;
226008
+ cov_41uwsnrpn.s[19]++;
225623
226009
  this.$nextTick(this.$refs.title.resetValidation);
225624
226010
  },
225625
226011
  resetForm: function resetForm() {
225626
- cov_41uwsnrpn.f[6]++;
225627
- cov_41uwsnrpn.s[11]++;
225628
- this.formHasErrors = false; // this.fieldsToValidate.forEach(field => {
225629
- // this.refs[field].reset()
225630
- // })
226012
+ cov_41uwsnrpn.f[7]++;
226013
+
226014
+ var _ref = (cov_41uwsnrpn.s[20]++, this),
226015
+ refs = _ref.refs;
226016
+
226017
+ cov_41uwsnrpn.s[21]++;
226018
+ this.formHasErrors = false;
226019
+ cov_41uwsnrpn.s[22]++;
226020
+ this.fieldsToValidate.forEach(function (field) {
226021
+ cov_41uwsnrpn.f[8]++;
226022
+ cov_41uwsnrpn.s[23]++;
226023
+ return (cov_41uwsnrpn.b[6][0]++, refs[field]) && (cov_41uwsnrpn.b[6][1]++, refs[field].reset());
226024
+ });
225631
226025
  },
225632
226026
  closeModal: function closeModal() {
225633
- cov_41uwsnrpn.f[7]++;
225634
- cov_41uwsnrpn.s[12]++;
226027
+ cov_41uwsnrpn.f[9]++;
226028
+ cov_41uwsnrpn.s[24]++;
225635
226029
  this.resetForm();
225636
- cov_41uwsnrpn.s[13]++;
226030
+ cov_41uwsnrpn.s[25]++;
225637
226031
  this.$emit('close-modal');
225638
226032
  },
225639
226033
  updateValue: function updateValue(data) {
225640
- cov_41uwsnrpn.f[8]++;
225641
- cov_41uwsnrpn.s[14]++;
226034
+ cov_41uwsnrpn.f[10]++;
226035
+ cov_41uwsnrpn.s[26]++;
225642
226036
  this.project = NewProjectModalvue_type_script_lang_js_objectSpread(NewProjectModalvue_type_script_lang_js_objectSpread({}, this.project), data);
225643
226037
  },
225644
226038
  submit: function () {
225645
226039
  var _submit = NewProjectModalvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee2() {
225646
- var _this = this;
226040
+ var _this2 = this;
225647
226041
 
225648
226042
  return regenerator_default.a.wrap(function _callee2$(_context2) {
225649
226043
  while (1) {
225650
226044
  switch (_context2.prev = _context2.next) {
225651
226045
  case 0:
225652
- cov_41uwsnrpn.f[9]++;
225653
- cov_41uwsnrpn.s[15]++;
226046
+ cov_41uwsnrpn.f[11]++;
226047
+ cov_41uwsnrpn.s[27]++;
225654
226048
  this.formHasErrors = false;
225655
- cov_41uwsnrpn.s[16]++;
226049
+ cov_41uwsnrpn.s[28]++;
225656
226050
  this.fieldsToValidate.forEach(function (field) {
225657
- cov_41uwsnrpn.f[10]++;
225658
- cov_41uwsnrpn.s[17]++;
226051
+ cov_41uwsnrpn.f[12]++;
226052
+ cov_41uwsnrpn.s[29]++;
225659
226053
 
225660
- _this.refs[field].validate(true);
226054
+ _this2.refs[field].validate(true);
225661
226055
  });
225662
- cov_41uwsnrpn.s[18]++;
226056
+ cov_41uwsnrpn.s[30]++;
225663
226057
 
225664
226058
  if (!this.formHasErrors) {
225665
- cov_41uwsnrpn.b[2][0]++;
225666
- cov_41uwsnrpn.s[19]++;
226059
+ cov_41uwsnrpn.b[7][0]++;
226060
+ cov_41uwsnrpn.s[31]++;
225667
226061
  createRecord('projects', this.project).then(function (response) {
225668
- cov_41uwsnrpn.f[11]++;
225669
- var projectId = (cov_41uwsnrpn.s[20]++, _this.$get(response, 'pk', ''));
225670
- cov_41uwsnrpn.s[21]++;
226062
+ cov_41uwsnrpn.f[13]++;
226063
+ var projectId = (cov_41uwsnrpn.s[32]++, _this2.$get(response, 'pk', ''));
226064
+ cov_41uwsnrpn.s[33]++;
225671
226065
 
225672
- _this.$store.dispatch(SHOW_ALERT, {
226066
+ _this2.$store.dispatch(SHOW_ALERT, {
225673
226067
  message: "Project ".concat(projectId, " was succesfully created.")
225674
226068
  });
225675
226069
 
225676
- cov_41uwsnrpn.s[22]++;
226070
+ cov_41uwsnrpn.s[34]++;
225677
226071
 
225678
- _this.$store.dispatch(SHOW_PANEL, {
226072
+ _this2.$store.dispatch(SHOW_PANEL, {
225679
226073
  project: projectId
225680
226074
  });
225681
226075
 
225682
- cov_41uwsnrpn.s[23]++;
226076
+ cov_41uwsnrpn.s[35]++;
225683
226077
 
225684
- _this.closeModal();
226078
+ _this2.closeModal();
225685
226079
  }).catch(function (error) {
225686
- cov_41uwsnrpn.f[12]++;
225687
- cov_41uwsnrpn.s[24]++;
226080
+ cov_41uwsnrpn.f[14]++;
226081
+ cov_41uwsnrpn.s[36]++;
225688
226082
 
225689
226083
  if (error.response) {
225690
- cov_41uwsnrpn.b[3][0]++;
225691
- cov_41uwsnrpn.s[25]++;
225692
- _this.errorMessages = error.response.data;
225693
- cov_41uwsnrpn.s[26]++;
226084
+ cov_41uwsnrpn.b[8][0]++;
226085
+ cov_41uwsnrpn.s[37]++;
226086
+ _this2.errorMessages = error.response.data;
226087
+ cov_41uwsnrpn.s[38]++;
225694
226088
 
225695
- _this.$store.dispatch(SHOW_ALERT, {
226089
+ _this2.$store.dispatch(SHOW_ALERT, {
225696
226090
  error: 'The project could not be created. Please try again.'
225697
226091
  });
225698
226092
  } else {
225699
- cov_41uwsnrpn.b[3][1]++;
226093
+ cov_41uwsnrpn.b[8][1]++;
225700
226094
  }
225701
226095
  });
225702
226096
  } else {
225703
- cov_41uwsnrpn.b[2][1]++;
226097
+ cov_41uwsnrpn.b[7][1]++;
225704
226098
  }
225705
226099
 
225706
226100
  case 7:
@@ -225735,8 +226129,8 @@ var NewProjectModalvue_type_style_index_0_lang_scss_ = __webpack_require__("9434
225735
226129
 
225736
226130
  var NewProjectModal_component = normalizeComponent(
225737
226131
  projects_NewProjectModalvue_type_script_lang_js_,
225738
- NewProjectModalvue_type_template_id_72aeb340_render,
225739
- NewProjectModalvue_type_template_id_72aeb340_staticRenderFns,
226132
+ NewProjectModalvue_type_template_id_58c607e8_render,
226133
+ NewProjectModalvue_type_template_id_58c607e8_staticRenderFns,
225740
226134
  false,
225741
226135
  null,
225742
226136
  null,