{"version":3,"sources":["webpack:///./src/components/SimpleLoading.vue?812b","webpack:///./src/components/SimpleLoading.vue?4fa3","webpack:///./src/reporting/settings/RepositorySubmission.vue?209e","webpack:///./src/reporting/settings/RepositorySubmission.vue?82f1","webpack:///./src/reporting/settings/RepositorySubmission.vue?a5a0","webpack:///./src/reporting/settings/RepositorySubmission.vue","webpack:///./src/reporting/settings/RepositorySubmission.vue?297e","webpack:///./src/reporting/settings/RepositorySubmission.vue?db0f","webpack:///./src/components/SimpleLoading.vue?e6ec","webpack:///./src/components/SimpleLoading.vue","webpack:///./src/components/SimpleLoading.vue?3ebf","webpack:///./src/components/SimpleLoading.vue?4b18"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","staticClass","attrs","isLoadingUser","_e","_v","staticStyle","on","saveEmailNotification","model","value","userSettings","callback","$$v","$set","expression","emailAddress","rejectEmailResponseNotification","saveEmailAddress","staticRenderFns","name","components","AstCheckbox","EmailSelect","SimpleLoading","data","rejectEmailNotification","rejectEmailAddress","telemedicineEmailAddress","mounted","getUserSettings","_context","stop","_callee","methods","getEmailAddress","concat","_","uniq","_context2","prev","getUserSetting","_this","$api","user","getTelemedicineUserSetting","getRejectEmailNotification","then","r","toString","toLowerCase","getRejectEmailAddress","split","filter","x","trim","getTelemedicineEmailAddress","next","Promise","all","finish","_callee2","setUserSetting","join","component","directives","rawName","props","isLoadingData","type","Boolean","required"],"mappings":"mIAAA,W,qBCCAA,EAAOC,QAAU,CAAC,MAAQ,QAAQ,OAAS,QAAQ,MAAQ,SAAS,OAAS,W,kCCD7E,W,qBCCAD,EAAOC,QAAU,CAAC,MAAQ,QAAQ,OAAS,QAAQ,MAAQ,SAAS,OAAS,W,yCCD7E,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kCAAkC,CAACF,EAAG,aAAa,CAACG,MAAM,CAAC,K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IAAI,CAACkE,WAAW,CAAC,CAAC7C,KAAK,OAAO8C,QAAQ,SAASxD,MAAOf,EAAiB,cAAEoB,WAAW,kBAAkBd,YAAY,WAAW,CAACF,EAAG,WAAW,CAACG,MAAM,CAAC,KAAO,UAAU,MAAQ,GAAG,MAAQ,OAAO,IAC9RiB,EAAkB,GCQP,GACdC,KAAM,gBACN+C,MAAO,CACNC,cAAe,CACdC,KAAMC,QACNC,UAAU,KCd0X,I,wBCQnYP,EAAY,eACd,EACAtE,EACAyB,GACA,EACA,KACA,KACA,MAIa,OAAA6C,E","file":"js/repositorySubmissionSettingView.934d61a587cd659a41f6.bundle.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SimpleLoading.vue?vue&type=style&index=0&id=599b3750&prod&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"small\":\"640px\",\"medium\":\"800px\",\"large\":\"1024px\",\"xLarge\":\"1280px\"};","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/lib/loader.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RepositorySubmission.vue?vue&type=style&index=0&id=7e66f118&prod&lang=scss\"","// extracted by mini-css-extract-plugin\nmodule.exports = {\"small\":\"640px\",\"medium\":\"800px\",\"large\":\"1024px\",\"xLarge\":\"1280px\"};","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"repository-submission-settings\"},[_c('transition',{attrs:{\"name\":\"fade\"}},[(!_vm.isLoadingUser)?_c('div',[_c('section',[_c('h4',[_vm._v(\"Email Notifications\")]),_c('ast-checkbox',{staticStyle:{\"display\":\"inline-flex !important\"},on:{\"input\":_vm.saveEmailNotification},model:{value:(_vm.userSettings.rejectEmailNotification),callback:function ($$v) {_vm.$set(_vm.userSettings, \"rejectEmailNotification\", $$v)},expression:\"userSettings.rejectEmailNotification\"}},[_vm._v(\"\\n\\t\\t\\t\\t\\tSend Rejection Email Notification\\n\\t\\t\\t\\t\")])],1),_c('section',[_c('h4',[_vm._v(\"Rejection Email Addresses\")]),_c('email-select',{attrs:{\"disabled\":!_vm.userSettings.emailAddress && !_vm.userSettings.rejectEmailResponseNotification},on:{\"input\":_vm.saveEmailAddress},model:{value:(_vm.userSettings.emailAddress),callback:function ($$v) {_vm.$set(_vm.userSettings, \"emailAddress\", $$v)},expression:\"userSettings.emailAddress\"}})],1)]):_vm._e()]),_c('simple-loading',{attrs:{\"is-loading-data\":_vm.isLoadingUser}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport AstCheckbox from '@components/Checkbox.vue'\nimport EmailSelect from '@components/EmailSelect.vue'\nimport SimpleLoading from '@components/SimpleLoading.vue'\nimport _ from 'lodash'\n\nexport default {\n\tname: 'TeleconsultationsSettingView',\n\tcomponents: {\n\t\tAstCheckbox,\n\t\tEmailSelect,\n\t\tSimpleLoading,\n\t},\n\tdata() {\n\t\treturn {\n\t\t\tisLoadingUser: true,\n\t\t\tuserSettings: {\n\t\t\t\trejectEmailNotification: false,\n\t\t\t\trejectEmailResponseNotification: false,\n\t\t\t\trejectEmailAddress: [],\n\t\t\t\ttelemedicineEmailAddress: [],\n\t\t\t\temailAddress: [],\n\t\t\t},\n\t\t}\n\t},\n\tasync mounted() {\n\t\tthis.getUserSettings()\n\t},\n\tmethods: {\n\t\tgetEmailAddress() {\n\t\t\tthis.userSettings.emailAddress = this.userSettings.rejectEmailAddress.concat(\n\t\t\t\tthis.userSettings.telemedicineEmailAddress\n\t\t\t)\n\t\t\tthis.userSettings.emailAddress = _.uniq(this.userSettings.emailAddress)\n\t\t},\n\t\tasync getUserSettings() {\n\t\t\tthis.isLoadingUser = true\n\t\t\ttry {\n\t\t\t\tconst getUserSetting = name => this.$api.user.getUserSetting(name, 'ReviewSubmission')\n\t\t\t\tconst getTelemedicineUserSetting = name => this.$api.user.getUserSetting(name, 'Telemedicine')\n\t\t\t\tconst getRejectEmailNotification = getUserSetting('RejectEmailNotification').then(\n\t\t\t\t\tr => (this.userSettings.rejectEmailNotification = r.data.toString().toLowerCase() === 'true')\n\t\t\t\t)\n\t\t\t\tconst getRejectEmailAddress = getUserSetting('RejectEmailAddress').then(\n\t\t\t\t\tr => r.data && (this.userSettings.rejectEmailAddress = r.data.split(',').filter(x => !!x.trim()))\n\t\t\t\t)\n\t\t\t\tconst getTelemedicineEmailAddress = getTelemedicineUserSetting('EmailAddress').then(\n\t\t\t\t\tr => r.data && (this.userSettings.telemedicineEmailAddress = r.data.split(',').filter(x => !!x.trim()))\n\t\t\t\t)\n\t\t\t\tawait Promise.all([getRejectEmailNotification, getRejectEmailAddress, getTelemedicineEmailAddress])\n\t\t\t\tthis.getEmailAddress()\n\t\t\t} finally {\n\t\t\t\tthis.isLoadingUser = false\n\t\t\t}\n\t\t},\n\t\tsaveEmailNotification() {\n\t\t\tthis.$api.user.setUserSetting(\n\t\t\t\t'RejectEmailNotification',\n\t\t\t\t'ReviewSubmission',\n\t\t\t\tthis.userSettings.rejectEmailNotification.toString()\n\t\t\t)\n\t\t},\n\t\tsaveEmailAddress() {\n\t\t\tthis.$api.user.setUserSetting('RejectEmailAddress', 'ReviewSubmission', this.userSettings.emailAddress.join(','))\n\t\t},\n\t},\n}\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RepositorySubmission.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--14-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./RepositorySubmission.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./RepositorySubmission.vue?vue&type=template&id=7e66f118\"\nimport script from \"./RepositorySubmission.vue?vue&type=script&lang=ts\"\nexport * from \"./RepositorySubmission.vue?vue&type=script&lang=ts\"\nimport style0 from \"./RepositorySubmission.vue?vue&type=style&index=0&id=7e66f118&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isLoadingData),expression:\"isLoadingData\"}],staticClass:\"loading\"},[_c('svg-icon',{attrs:{\"icon\":\"spinner\",\"pulse\":\"\",\"fixed\":\"\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\nimport { PropType } from 'vue'\n\nexport default {\n\tname: 'SimpleLoading',\n\tprops: {\n\t\tisLoadingData: {\n\t\t\ttype: Boolean as PropType,\n\t\t\trequired: true,\n\t\t},\n\t},\n}\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SimpleLoading.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/ts-loader/index.js??ref--14-3!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./SimpleLoading.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SimpleLoading.vue?vue&type=template&id=599b3750\"\nimport script from \"./SimpleLoading.vue?vue&type=script&lang=ts\"\nexport * from \"./SimpleLoading.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SimpleLoading.vue?vue&type=style&index=0&id=599b3750&prod&lang=scss\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}