{"version":3,"sources":["webpack:///./src/components/Communication/SmsApplicationModal.vue?0111","webpack:///./src/components/Communication/SmsApplicationModal.vue","webpack:///./src/components/Communication/SmsApplicationModal.vue?34a7","webpack:///./src/components/Communication/SmsApplicationModal.vue?8c36","webpack:///./src/components/Communication/SmsApplicationModal.vue?55d9","webpack:///./src/views/UpwardRunning/Communications/Communications.vue?9d36","webpack:///./src/views/UpwardRunning/Communications/Communications.vue","webpack:///./src/views/UpwardRunning/Communications/Communications.vue?bddb","webpack:///./src/views/UpwardRunning/Communications/Communications.vue?fec7"],"names":["render","_vm","this","_h","$createElement","_c","_self","loading","_e","ref","scopedSlots","_u","key","fn","valid","validated","attrs","tollFreeAppShowClosed","model","value","callback","$$v","tollFreeAppRequired","expression","step","_v","staticClass","class","saving","appRequest","$set","on","$event","serviceIDHelpIsVisible","slot","cancel","nextClicked","submit","staticRenderFns","communicationsClient","createTwilioTollFreeApplication","canSubmitTollFreeApp","accountNumber","isAllowed","partnersClient","getPartnerInfo","partnerInfo","partnerName","accountName","businessName","substring","indexOf","primaryContactIdName","contactFirstName","lastIndexOf","contactLastName","length","contactEmail","primaryContactEmailAddress","contactMobilePhone","primaryContactPhoneNumber","serviceID","address","address1_Line1","address2","address1_Line2","city","address1_City","stateProvince","address1_StateOrProvince","postalCode","address1_PostalCode","website","webSiteUrl","estimatedVolume","isTollFreeAppPending","getDefaultTollFreeApplication","firstAccountNumber","namespace","components","TextInput","VeeValidateForm","Modal","component","emailSmsAccountID","_m","tabs","$route","fullPath","init","payLoad","upwardID","params","id","getProviderInfo","payload","providerInfo","fetchLeagueSettings","upwID","emailSMSAccountID","leagueSetting","emailDisplayName","emailReplyTo","path","baseRoute","$router","replace","routeId","smsTypeProviderID","text","to","shouldShowFailures","filter","t","leagues","currentItem","communications","retrieveAndSetAsCurrent","VerticalTabs","Loading","SmsApplicationModal"],"mappings":"yIAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAA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=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.loading)?_c('div',[_c('vee-validate-form',{ref:\"form\",scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar valid = ref.valid;\nvar validated = ref.validated;\nreturn [_c('modal',{attrs:{\"title\":\"Toll-Free Text Number Application\",\"show-close\":_vm.tollFreeAppShowClosed},model:{value:(_vm.tollFreeAppRequired),callback:function ($$v) {_vm.tollFreeAppRequired=$$v},expression:\"tollFreeAppRequired\"}},[[(_vm.step === 1)?[_c('div',{ref:\"container\"},[_c('h6',[_vm._v(\"Upward Toll Free Number SMS Application\")]),_c('div',[_c('hr'),_c('p',{staticClass:\"text\"},[_vm._v(\" To continue providing the most reliable and industry-compliant SMS experience, Upward is migrating to a new platform. This requires Upward to complete an application for each partner individually with the new provider. Please update the information on the following screens so the migration for your account can occur. \")])])])]:(_vm.step == 2)?_c('div',{class:[{ 'sign-not-showing': _vm.step != 2 }, { 'sign-showing': _vm.step == 2 }]},[_c('p',[_vm._v(\" Please update the information below and click Submit for Upward to continue with the migration process for your account. \")]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-4\"},[_c('text-input',{staticClass:\"mb-0\",attrs:{\"label\":\"Partner Name\",\"name\":\"businessName\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.businessName),callback:function ($$v) {_vm.$set(_vm.appRequest, \"businessName\", $$v)},expression:\"appRequest.businessName\"}})],1),_c('div',{staticClass:\"col-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Service Identifier (Ex. FBC UpwardSports)\",\"name\":\"serviceID\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\",\"show-help\":true,\"maxlength\":\"16\"},on:{\"helpClicked\":function($event){_vm.serviceIDHelpIsVisible = true}},model:{value:(_vm.appRequest.serviceID),callback:function ($$v) {_vm.$set(_vm.appRequest, \"serviceID\", $$v)},expression:\"appRequest.serviceID\"}}),_c('modal',{attrs:{\"title\":\"HELP: Service Identifier\",\"is-small\":true},model:{value:(_vm.serviceIDHelpIsVisible),callback:function ($$v) {_vm.serviceIDHelpIsVisible=$$v},expression:\"serviceIDHelpIsVisible\"}},[_c('div',{staticClass:\"col-12 mb-0 mt-3\"},[_vm._v(\" The \"),_c('b',[_vm._v(\"Service Identifier\")]),_vm._v(\" is included at the front of each text message you send to identify your organization. This cannot be changed, so be certain of your selection before completing this form. The identifier can be no more than 16 characters in length and can only contain letters and spaces. (e.g. UpwardSportsBurg) \")])])],1)]),_c('div',{staticClass:\"row pt-3\"},[_c('h6',{staticClass:\"ml-3\"},[_vm._v(\"Partner Primary Contact Information\")])]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"First Name\",\"name\":\"contactFirstName\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.contactFirstName),callback:function ($$v) {_vm.$set(_vm.appRequest, \"contactFirstName\", $$v)},expression:\"appRequest.contactFirstName\"}})],1),_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Last Name\",\"name\":\"contactLastName\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.contactLastName),callback:function ($$v) {_vm.$set(_vm.appRequest, \"contactLastName\", $$v)},expression:\"appRequest.contactLastName\"}})],1)]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Email\",\"name\":\"contactEmail\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required|email\"},model:{value:(_vm.appRequest.contactEmail),callback:function ($$v) {_vm.$set(_vm.appRequest, \"contactEmail\", $$v)},expression:\"appRequest.contactEmail\"}})],1),_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Mobile Phone\",\"name\":\"contactMobilePhone\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.contactMobilePhone),callback:function ($$v) {_vm.$set(_vm.appRequest, \"contactMobilePhone\", $$v)},expression:\"appRequest.contactMobilePhone\"}})],1)]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-sm-6\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Partner Website\",\"name\":\"website\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.website),callback:function ($$v) {_vm.$set(_vm.appRequest, \"website\", $$v)},expression:\"appRequest.website\"}})],1)]),_c('div',{staticClass:\"row pt-3\"},[_c('h6',{staticClass:\"ml-3\"},[_vm._v(\"Partner Business Address\")])]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Address\",\"name\":\"address\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.address),callback:function ($$v) {_vm.$set(_vm.appRequest, \"address\", $$v)},expression:\"appRequest.address\"}})],1),_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Address 2\",\"name\":\"address\",\"enabled\":!_vm.saving},model:{value:(_vm.appRequest.address2),callback:function ($$v) {_vm.$set(_vm.appRequest, \"address2\", $$v)},expression:\"appRequest.address2\"}})],1)]),_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"City\",\"name\":\"city\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.city),callback:function ($$v) {_vm.$set(_vm.appRequest, \"city\", $$v)},expression:\"appRequest.city\"}})],1),_c('div',{staticClass:\"col-sm-4\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"State or Province\",\"name\":\"stateProvince\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.stateProvince),callback:function ($$v) {_vm.$set(_vm.appRequest, \"stateProvince\", $$v)},expression:\"appRequest.stateProvince\"}})],1),_c('div',{staticClass:\"col-sm-3\"},[_c('text-input',{staticClass:\"mb-0 mt-3\",attrs:{\"label\":\"Postal Code\",\"name\":\"postalCode\",\"enabled\":!_vm.saving,\"vee-validate-rules\":\"required\"},model:{value:(_vm.appRequest.postalCode),callback:function ($$v) {_vm.$set(_vm.appRequest, \"postalCode\", $$v)},expression:\"appRequest.postalCode\"}})],1)])]):(_vm.step == 3)?_c('div',{class:[{ 'sign-not-showing': _vm.step != 3 }, { 'sign-showing': _vm.step == 3 }]},[_c('p',[_vm._v(\" Thank you for completing this process. Upward will work with the service provider to get your application approved and then migrate your account to the new platform. You may continue to send SMS messages with Upward's communication tools in the meanwhile. \")])]):_vm._e()],_c('template',{slot:\"footer\"},[_c('div',{staticClass:\"row\"},[(_vm.step === 1)?[_c('div',{staticClass:\"col py-0 text-right\"},[_c('button',{staticClass:\"btn btn-light mt-1 mr-2\",on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel\")]),_c('button',{staticClass:\"btn btn-primary mt-1\",on:{\"click\":_vm.nextClicked}},[_vm._v(\"Next\")])])]:(_vm.step === 2)?[_c('div',{staticClass:\"col py-0 text-right\"},[_c('button',{staticClass:\"btn btn-light mr-2\",on:{\"click\":_vm.cancel}},[_vm._v(\"Cancel\")]),_c('button',{staticClass:\"btn btn-success\",attrs:{\"type\":\"button\",\"disabled\":!valid},on:{\"click\":_vm.submit}},[_vm._v(\" Submit \")])])]:_vm._e(),(_vm.step === 3)?[_c('div',{staticClass:\"col py-0 text-right\"},[_c('button',{staticClass:\"btn btn-light mt-1\",on:{\"click\":_vm.cancel}},[_vm._v(\"Close\")])])]:_vm._e()],2)])],2)]}}],null,false,2362541446)})],1):_vm._e()}\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\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\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\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\n\n\n\n\n\n\n\n\n\n\n\nimport { Component, Vue } from 'vue-property-decorator'\nimport { Getter } from 'vuex-class'\n\nimport TextInput from '@/elements/TextInput.vue'\n\nimport Modal from '@/components/Modal.vue'\n\nimport * as authStore from '@/store/authorization'\nimport VeeValidateForm from '@/elements/VeeValidateForm.vue'\nimport communicationsClient from '@/clients/communicationsClient'\nimport partnersClient from '@/clients/partnersClient'\nimport { TwilioApplicationRequest } from '@/GeneratedTypes/Communication/TwilioApplicationRequest'\n\n@Component({\n components: {\n TextInput,\n VeeValidateForm,\n Modal,\n },\n})\nexport default class SmsApplicationModal extends Vue {\n @Getter(authStore.getterNames.firstAccountNumber, { namespace: authStore.namespace })\n private accountNumber!: string\n\n @Getter(authStore.getterNames.accountName, { namespace: authStore.namespace })\n private accountName!: string\n\n private loading = false\n private saving = false\n private tollFreeAppRequired = false\n private tollFreeAppShowClosed = true\n private serviceIDHelpIsVisible = false\n\n protected appRequest = {} as TwilioApplicationRequest\n\n private step = 1\n\n nextClicked() {\n this.step = 2\n }\n\n cancel() {\n this.tollFreeAppRequired = false\n this.tollFreeAppShowClosed = true\n }\n\n private async submit() {\n try {\n this.saving = true\n await communicationsClient.createTwilioTollFreeApplication(this.appRequest)\n this.step = 3\n } catch (error) {\n throw error\n } finally {\n this.saving = false\n }\n }\n\n private async isTollFreeAppPending() {\n var isAllowed = await communicationsClient.canSubmitTollFreeApp(this.accountNumber)\n\n if (isAllowed) {\n this.tollFreeAppRequired = true\n }\n\n this.tollFreeAppShowClosed = !this.tollFreeAppRequired\n }\n\n private async getDefaultTollFreeApplication() {\n if (!this.tollFreeAppRequired) return //only load data if modal is being displayed\n\n try {\n const partnerInfo = await partnersClient.getPartnerInfo(this.accountNumber)\n\n this.appRequest.accountNumber = this.accountNumber\n this.appRequest.partnerName = this.accountName\n this.appRequest.businessName = this.accountName.substring(0, this.accountName.indexOf('-'))\n\n if (partnerInfo && partnerInfo.primaryContactIdName) {\n this.appRequest.contactFirstName = partnerInfo.primaryContactIdName.substring(\n 0,\n partnerInfo.primaryContactIdName?.lastIndexOf(' ')\n )\n this.appRequest.contactLastName = partnerInfo.primaryContactIdName.substring(\n partnerInfo.primaryContactIdName?.lastIndexOf(' ') + 1,\n partnerInfo.primaryContactIdName?.length\n )\n } else {\n this.appRequest.contactFirstName = ''\n this.appRequest.contactLastName = ''\n }\n\n this.appRequest.contactEmail = partnerInfo ? partnerInfo.primaryContactEmailAddress : ''\n this.appRequest.contactMobilePhone = partnerInfo ? partnerInfo.primaryContactPhoneNumber : ''\n this.appRequest.serviceID = ''\n this.appRequest.address = partnerInfo ? partnerInfo.address1_Line1 : ''\n this.appRequest.address2 = partnerInfo ? partnerInfo.address1_Line2 : ''\n this.appRequest.city = partnerInfo ? partnerInfo.address1_City : ''\n this.appRequest.stateProvince = partnerInfo ? partnerInfo.address1_StateOrProvince : ''\n this.appRequest.postalCode = partnerInfo ? partnerInfo.address1_PostalCode : ''\n this.appRequest.website = partnerInfo ? partnerInfo.webSiteUrl : ''\n this.appRequest.estimatedVolume = 10000\n } catch (error) {\n throw error\n }\n }\n\n public async mounted() {\n try {\n this.loading = true\n await this.isTollFreeAppPending()\n await this.getDefaultTollFreeApplication()\n } catch (error) {\n throw error\n } finally {\n this.loading = false\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!./SmsApplicationModal.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!./SmsApplicationModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SmsApplicationModal.vue?vue&type=template&id=379e2b67&scoped=true&\"\nimport script from \"./SmsApplicationModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./SmsApplicationModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./SmsApplicationModal.vue?vue&type=style&index=0&id=379e2b67&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 \"379e2b67\",\n null\n \n)\n\nexport default component.exports","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!./SmsApplicationModal.vue?vue&type=style&index=0&id=379e2b67&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"d-flex flex-row flex-grow-1 bg-light-2\"},[(_vm.loading)?_c('div',{staticClass:\"row mt-3\"},[_c('div',{staticClass:\"col-md-12 text-center\"},[_c('loading')],1)]):(!_vm.emailSmsAccountID)?_c('div',{staticClass:\"row mt-3\"},[_vm._m(0)]):_vm._e(),(_vm.emailSmsAccountID && !_vm.loading)?_c('vertical-tabs',{attrs:{\"tabs\":_vm.tabs}}):_vm._e(),(_vm.emailSmsAccountID && !_vm.loading)?_c('div',{staticClass:\"bg-white flex-grow-1 mb-2 container-fluid\"},[_c('router-view',{key:_vm.$route.fullPath})],1):_vm._e(),_c('sms-application-modal')],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col-md-12\"},[_c('span',{staticClass:\"alert alert-warning\",attrs:{\"role\":\"alert\"}},[_vm._v(\" Communications has not been setup for this program. Please \"),_c('a',{staticClass:\"show-link\",attrs:{\"href\":\"https://www.myupward.org/contact/\"}},[_vm._v(\"Contact Partner Support\")]),_vm._v(\" to enable communications. \")])])}]\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\nimport VerticalTabs from '@/components/VerticalTabs.vue'\nimport { Component, Vue } from 'vue-property-decorator'\nimport { Getter, Action } from 'vuex-class'\nimport Loading from '@/elements/Loading.vue'\nimport Modal from '@/components/Modal.vue'\n\nimport * as authStore from '@/store/authorization'\nimport * as leaguesStore from '@/store/leagues'\nimport { LeagueData } from '@/store/communications'\nimport { League } from '@/GeneratedTypes/League'\nimport * as communicationsStore from '@/store/communications'\nimport { EmailSMSAccount } from '../../../GeneratedTypes/Communication/EmailSMSAccount'\nimport SmsApplicationModal from '@/components/Communication/SmsApplicationModal.vue'\nimport { EmailSMSLeagueSetting } from '@/GeneratedTypes/Communication/EmailSMSLeagueSetting'\n\n@Component({\n components: {\n VerticalTabs,\n Loading,\n Modal,\n SmsApplicationModal,\n },\n})\nexport default class Communications extends Vue {\n @Getter(leaguesStore.getterNames.currentItem, { namespace: leaguesStore.namespace })\n private currentLeague!: League\n\n @Getter(communicationsStore.getterNames.currentItem, { namespace: communicationsStore.namespace })\n private readonly providerInfo!: EmailSMSAccount\n\n @Getter(authStore.getterNames.firstAccountNumber, { namespace: authStore.namespace })\n private accountNumber!: string\n\n @Action(communicationsStore.actionNames.retrieveAndSetAsCurrent, {\n namespace: communicationsStore.namespace,\n })\n private readonly getProviderInfo!: ({ payload }: { payload: LeagueData }) => Promise\n\n @Action(communicationsStore.actionNames.fetchLeagueSettings, {\n namespace: communicationsStore.namespace,\n })\n private readonly fetchLeagueSettings!: ({\n upwID,\n emailSMSAccountID,\n }: {\n upwID: string\n emailSMSAccountID: number\n }) => Promise\n\n private get id() {\n return this.$route.params.id\n }\n\n private get routeId() {\n return this.id ? `${this.id}/` : ''\n }\n\n private get baseRoute() {\n return `/programs/running/${this.routeId}communications`\n }\n\n private get shouldShowFailures() {\n return this.providerInfo.smsTypeProviderID === 3\n }\n\n emailSmsAccountID = 0\n loading = true\n\n private async mounted() {\n await this.init()\n }\n\n private async init() {\n this.loading = true\n\n const payLoad: communicationsStore.LeagueData = {\n upwardID: this.$route.params.id,\n accountNumber: this.accountNumber,\n }\n\n await this.getProviderInfo({ payload: payLoad })\n\n this.emailSmsAccountID = this.providerInfo.emailSmsAccountID\n\n const leagueSetting = await this.fetchLeagueSettings({\n upwID: this.$route.params.id,\n emailSMSAccountID: this.emailSmsAccountID,\n })\n\n if (!leagueSetting || !leagueSetting.emailDisplayName || !leagueSetting.emailReplyTo) {\n if (this.$route.path !== `${this.baseRoute}/settings`) {\n this.$router.replace(`${this.baseRoute}/settings`)\n }\n }\n this.loading = false\n }\n\n private get tabs() {\n let tabs = [\n { text: 'Email', to: `${this.baseRoute}/email` },\n { text: 'SMS', to: `${this.baseRoute}/sms` },\n { text: 'SMS Failures', to: `${this.baseRoute}/failures` },\n { text: 'Scheduled', to: `${this.baseRoute}/scheduled` },\n { text: 'History', to: `${this.baseRoute}/history` },\n { text: 'Settings', to: `${this.baseRoute}/settings` },\n ]\n if (!this.shouldShowFailures) {\n tabs = tabs.filter((t) => t.text !== 'SMS Failures')\n }\n return tabs\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!./Communications.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!./Communications.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Communications.vue?vue&type=template&id=6938bb1e&\"\nimport script from \"./Communications.vue?vue&type=script&lang=ts&\"\nexport * from \"./Communications.vue?vue&type=script&lang=ts&\"\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":""}