{"version":3,"sources":["webpack:///./src/views/Programs/Communications/Settings.vue?9730","webpack:///./src/views/Programs/Communications/Settings.vue?cdfe","webpack:///./src/views/Programs/Communications/Settings.vue","webpack:///./src/views/Programs/Communications/Settings.vue?97ce","webpack:///./src/views/Programs/Communications/Settings.vue?fa01"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","_e","loading","_m","on","submit","attrs","saving","model","value","leagueSetting","callback","$$v","$set","expression","_v","staticRenderFns","emailSmsAccountID","upwardLeagueID","emailDisplayName","emailReplyTo","populateSettingsDisplay","updateLeagueSettings","settings","providerInfo","communicationsClient","retrieveLeagueSettings","$route","params","id","communications","currentItem","namespace","components","Loading","TextInput","VeeValidateForm","component"],"mappings":"uIAAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAAEN,EAAW,QAAEI,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,YAAY,GAAGJ,EAAIO,KAAOP,EAAIQ,QAAwjCR,EAAIO,KAAnjCH,EAAG,MAAM,CAACA,EAAG,MAAM,CAACE,YAAY,iCAAiC,CAACN,EAAIS,GAAG,GAAGT,EAAIS,GAAG,GAAGT,EAAIS,GAAG,GAAGL,EAAG,MAAM,CAACE,YAAY,OAAO,CAACF,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,oBAAoB,CAACM,GAAG,CAAC,OAASV,EAAIW,SAAS,CAACP,EAAG,aAAa,CAACE,YAAY,OAAOM,MAAM,CAAC,MAAQ,eAAe,KAAO,eAAe,SAAWZ,EAAIa,OAAO,qBAAqB,YAAYC,MAAM,CAACC,MAAOf,EAAIgB,cAA8B,iBAAEC,SAAS,SAAUC,GAAMlB,EAAImB,KAAKnB,EAAIgB,cAAe,mBAAoBE,IAAME,WAAW,oCAAoChB,EAAG,aAAa,CAACE,YAAY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AAeA,GAUN,EAArB,yG,0BACU,EAAAlB,SAAU,EACV,EAAAK,QAAS,EACjB,EAAAG,cAAgB,IAAI,GAAe,EAAG,GAAI,GAAI,IAHhD,4NAmBUf,KAAK0B,0BAnBf,oSAuBM1B,KAAKY,QAAS,EAvBpB,SAwBYZ,KAAK2B,qBAAqB,CAAEC,SAAU5B,KAAKe,gBAxBvD,2FA4BMf,KAAKY,QAAS,EA5BpB,+TAqCMZ,KAAKO,SAAU,EArCrB,SAsCYP,KAAK0B,0BAtCjB,2FA0CM1B,KAAKO,SAAU,EA1CrB,uVAgDYe,EAAoBtB,KAAK6B,aAAaP,kBAhDlD,SAkDkCQ,EAAA,KAAqBC,uBAC/C/B,KAAKgC,OAAOC,OAAOC,GACnBZ,GApDR,OAkDYP,EAlDZ,OAuDM,OAAIA,QAAJ,IAAIA,KAAeQ,eACjBvB,KAAKe,cAAgBA,GAErBf,KAAKe,cAAcQ,eAAiBvB,KAAKgC,OAAOC,OAAOC,GACvDlC,KAAKe,cAAcO,kBAAoBA,GA3D/C,qLAAsC,QAMpC,gBADC,eAAOa,EAAA,KAAgCC,YAAa,CAAEC,UAAWF,EAAA,Q,mCAMlE,gBAHC,eAAOA,EAAA,KAAgCR,qBAAsB,CAC5DU,UAAWF,EAAA,Q,2CASb,gBADC,eAAM,iB,2BAGN,MApBkB,EAAQ,gBAP5B,eAAU,CACTG,WAAY,CACVC,UAAA,KACAC,YAAA,KACAC,kBAAA,SAGiB,WC/FkZ,I,wBCQnaC,EAAY,eACd,EACA5C,EACAuB,GACA,EACA,KACA,WACA,MAIa,aAAAqB,E","file":"js/chunk-51713a00.52a15b79.js","sourcesContent":["export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.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/dist/cjs.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!./Settings.vue?vue&type=style&index=0&id=a74948a4&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row pt-3\"},[(_vm.loading)?_c('div',{staticClass:\"col\"},[_c('loading')],1):_vm._e(),(!_vm.loading)?_c('div',[_c('div',{staticClass:\"col-sm-12 col-md-12 col-lg-12\"},[_vm._m(0),_vm._m(1),_vm._m(2),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-4 ml-4\"},[_c('vee-validate-form',{on:{\"submit\":_vm.submit}},[_c('text-input',{staticClass:\"mb-0\",attrs:{\"label\":\"DISPLAY NAME\",\"name\":\"display name\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.leagueSetting.emailDisplayName),callback:function ($$v) {_vm.$set(_vm.leagueSetting, \"emailDisplayName\", $$v)},expression:\"leagueSetting.emailDisplayName\"}}),_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"REPLY TO ADDRESS\",\"name\":\"reply to address\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required|email\"},model:{value:(_vm.leagueSetting.emailReplyTo),callback:function ($$v) {_vm.$set(_vm.leagueSetting, \"emailReplyTo\", $$v)},expression:\"leagueSetting.emailReplyTo\"}}),_c('button',{staticClass:\"btn btn-success mt-3\",attrs:{\"disabled\":_vm.saving}},[(_vm.saving)?_c('loading',{attrs:{\"is-small\":\"\"}}):[_c('i',{staticClass:\"fa fa-check mr-2\"}),_vm._v(\" Save \")]],2)],1)],1)])])]):_vm._e()])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-6 pr-0\"},[_c('h5',[_vm._v(\"Settings\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-10 ml-4 pr-0\"},[_c('h6',[_vm._v(\"Upward Sports Communication Service\")])])])},function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-sm-7 ml-4\"},[_c('p',{staticClass:\"text\"},[_vm._v(\" Upward Sports Communication Service will send your emails. The following will be used by default unless manually changed in the Email screen before sending. \")])])])}]\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\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\n\n\n\n\nimport { Component, Vue, Watch } from 'vue-property-decorator'\nimport { Getter, Action } from 'vuex-class'\nimport Loading from '@/elements/Loading.vue'\nimport TextInput from '@/elements/TextInput.vue'\nimport VeeValidateForm from '@/elements/VeeValidateForm.vue'\nimport * as communicationsStore from '@/store/communications'\nimport communicationsClient from '@/clients/communicationsClient'\nimport { EmailSMSLeagueSetting } from '@/GeneratedTypes/Communication/EmailSMSLeagueSetting'\nimport { EmailSMSAccount } from '../../../GeneratedTypes/Communication/EmailSMSAccount'\n\nclass LeagueSetting implements EmailSMSLeagueSetting {\n emailSmsAccountID: number\n upwardLeagueID: string | null\n emailDisplayName: string | null\n emailReplyTo: string | null\n constructor(\n emailSmsAccountID: number,\n upwardLeagueID: string | null,\n emailDisplayName: string | null,\n emailReplyTo: string | null\n ) {\n ;(this.emailSmsAccountID = emailSmsAccountID),\n (this.upwardLeagueID = upwardLeagueID),\n (this.emailDisplayName = emailDisplayName),\n (this.emailReplyTo = emailReplyTo)\n }\n}\n@Component({\n components: {\n Loading,\n TextInput,\n VeeValidateForm,\n },\n})\nexport default class Settings extends Vue {\n private loading = false\n private saving = false\n leagueSetting = new LeagueSetting(-1, '', '', '')\n\n @Getter(communicationsStore.getterNames.currentItem, { namespace: communicationsStore.namespace })\n private readonly providerInfo!: EmailSMSAccount\n\n @Action(communicationsStore.actionNames.updateLeagueSettings, {\n namespace: communicationsStore.namespace,\n })\n private readonly updateLeagueSettings!: ({\n settings,\n }: {\n settings: EmailSMSLeagueSetting\n }) => Promise\n\n @Watch('providerInfo')\n private async onInfoChange() {\n await this.populateSettingsDisplay()\n }\n private async submit() {\n try {\n this.saving = true\n await this.updateLeagueSettings({ settings: this.leagueSetting })\n } catch (error) {\n throw error\n } finally {\n this.saving = false\n }\n }\n\n /**\n * mounted\n */\n public async mounted() {\n try {\n this.loading = true\n await this.populateSettingsDisplay()\n } catch (error) {\n throw error\n } finally {\n this.loading = false\n }\n }\n\n private async populateSettingsDisplay() {\n try {\n const emailSmsAccountID = this.providerInfo.emailSmsAccountID\n\n const leagueSetting = await communicationsClient.retrieveLeagueSettings(\n this.$route.params.id,\n emailSmsAccountID\n )\n\n if (leagueSetting?.upwardLeagueID) {\n this.leagueSetting = leagueSetting\n } else {\n this.leagueSetting.upwardLeagueID = this.$route.params.id\n this.leagueSetting.emailSmsAccountID = emailSmsAccountID\n }\n } catch (error) {\n throw error\n }\n }\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!./Settings.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!./Settings.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Settings.vue?vue&type=template&id=a74948a4&scoped=true&\"\nimport script from \"./Settings.vue?vue&type=script&lang=ts&\"\nexport * from \"./Settings.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Settings.vue?vue&type=style&index=0&id=a74948a4&lang=scss&scoped=true&\"\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 \"a74948a4\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}