{"version":3,"sources":["webpack:///./src/views/Programs/Communications/TeamPageAlertEditor.vue?b791","webpack:///./src/views/Programs/Communications/TeamPageAlerts.vue?2fe3","webpack:///./src/views/Programs/Communications/TeamPageAlertList.vue?8cc6","webpack:///./src/views/Programs/Communications/TeamPageAlertList.vue","webpack:///./src/views/Programs/Communications/TeamPageAlertList.vue?7a6c","webpack:///./src/views/Programs/Communications/TeamPageAlertList.vue?a8a6","webpack:///./src/views/Programs/Communications/TeamPageAlertEditor.vue?0e2f","webpack:///./src/views/Programs/Communications/TeamPageAlertEditor.vue","webpack:///./src/views/Programs/Communications/TeamPageAlertEditor.vue?9698","webpack:///./src/views/Programs/Communications/TeamPageAlertEditor.vue?6781","webpack:///./src/views/Programs/Communications/TeamPageAlerts.vue","webpack:///./src/views/Programs/Communications/TeamPageAlerts.vue?bdc1","webpack:///./src/views/Programs/Communications/TeamPageAlerts.vue?48cb","webpack:///./src/views/Programs/Communications/TeamPageAlertList.vue?55ed"],"names":["render","_vm","this","_h","$createElement","_c","_self","componentName","tag","staticRenderFns","staticClass","_m","on","$event","create","_v","attrs","headers","getAlerts","getAlertBackground","rowSelected","rowDoubleClick","scopedSlots","_u","key","fn","ref","item","domProps","_s","message","editItem","deleteItem","_e","staticStyle","currentAlert","intendedFor","visibilityInfo","confirmDeleteAlert","cancelDeleteAlert","model","value","callback","$$v","showConfirmDelete","expression","text","selectedAlertId","isLoading","isDeleting","alert","setCurrentAlert","id","alertID","beginEdit","fetchAllDivisions","upwardLeagueId","$route","params","fetchAllTeams","upwId","fetchProgramTypes","force","retrieveAlerts","a","isActive","isPast","x","beginCreating","deleteAlert","d","format","teamName","divisionName","typeProgramID","formattedDate","expireDate","startDate","isAfter","isBefore","alerts","length","map","replace","isFuture","actions","load","namespace","delete","currentItem","items","set","viewMode","programTypes","fetchAll","allItems","fetchTeams","components","TextInput","YesNoInput","ConfirmDeleteModal","Loading","DataTable","EditBtn","DeleteBtn","component","saveItem","cancelEdit","programOptions","programBlankItemText","selectedProgram","programDivisions","selectedDivisionID","divisionTeams","localInEditItem","$set","programs","allDivisions","currentLeague","upwardLeagueID","filter","allTeams","divisionID","upwardTeamID","updateView","inEditItem","isInCreateMode","edit","$refs","vvForm","checkValidity","formIsValid","dealWithLocalTime","setInEditItem","save","endCreating","endEdit","newAlert","p","optionText","optionValue","editorItem","teams","immediate","SelectInput","DateInput","HtmlEditor","VeeValidateForm","ValidationObserver","name","TeamPageAlertList","TeamPageAlertEditor","setup","store","getters","teamPageAlerts","isInEditOrCreateMode","dispatch"],"mappings":"2IAAA,W,kECAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACA,EAAGJ,EAAIM,cAAc,CAACC,IAAI,eAAe,IAC/IC,EAAkB,G,wBCDlB,EAAS,WAAa,IAAIR,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACK,YAAY,mBAAmB,CAACL,EAAG,MAAM,CAACK,YAAY,YAAY,CAACT,EAAIU,GAAG,GAAGN,EAAG,MAAM,CAACK,YAAY,qBAAqB,CAACL,EAAG,SAAS,CAACK,YAAY,kBAAkBE,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOZ,EAAIa,YAAY,CAACT,EAAG,IAAI,CAACK,YAAY,qBAAqB,CAACT,EAAIc,GAAG,aAAa,OAAOV,EAAG,MAAM,CAACK,YAAY,sBAAsB,CAAET,EAAa,UAAEI,EAAG,MAAM,CAACK,YAAY,OAAO,CAACL,EAAG,YAAY,GAAGA,EAAG,MAAM,CAACK,YAAY,wBAAwB,CAACL,EAAG,YAAY,CAACK,YAAY,cAAcM,MAAM,CAAC,MAAQ,GAAG,QAAUf,EAAIgB,QAAQ,MAAQhB,EAAIiB,UAAU,eAAc,EAAM,iBAAiB,GAAG,UAAYjB,EAAIkB,oB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AAO,CAAEvD,UAAW,U,+BAkClD,gBADC,eAAM,oB,+BAaN,MAGD,gBADC,eAAM,uB,gCAcN,MAGD,gBADC,eAAM,WAAY,CAAEwD,WAAW,K,gCAG/B,MA7GkB,EAAmB,gBATvC,eAAU,CACT9C,WAAY,CACV+C,cAAA,KACAC,YAAA,KACAC,WAAA,OACAC,kBAAA,KACAC,mBAAA,WAGiB,WC1G6Z,ICQ9a,G,UAAY,eACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIa,I,QCPA,kBAAgB,CAC7BC,KAAM,iBACNpD,WAAY,CACVqD,kBAAA,EACAC,oBAAA,GAEFC,MAN6B,WAO3B,IAAM5D,EAAW,gBAAS,kBAAM6D,EAAA,KAAMC,QAAQC,eAAe/D,YAEvDrF,EAAgB,eAAI,qBAkB1B,SAASqJ,IACP,OACEhE,EAASnD,QAAU,OAA6BsF,MAChDnC,EAASnD,QAAU,OAA6B3B,OAIpD,OAvBA,gBAAU,WACR2I,EAAA,KAAMI,SAASF,eAAenB,QAAQ,SAGxC,gBACE,kBAAM5C,EAASnD,SACf,WACMmH,IACFrJ,EAAckC,MAAQ,sBAEtBlC,EAAckC,MAAQ,sBAG1B,CAAEsG,WAAW,IAUR,CACLxI,oBC/Cua,MCOza,GAAY,eACd,GACAP,EACAS,GACA,EACA,KACA,KACA,MAIa,gB,2CClBf","file":"js/chunk-42b6650b.9f73ce8b.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!./TeamPageAlertEditor.vue?vue&type=style&index=0&id=1c67eff9&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c(_vm.componentName,{tag:\"component\"})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row pt-3\"},[_vm._m(0),_c('div',{staticClass:\"col-sm-4 col-md-4\"},[_c('button',{staticClass:\"btn btn-success\",on:{\"click\":function($event){return _vm.create()}}},[_c('i',{staticClass:\"fa fa-check mr-2\"}),[_vm._v(\"Add New\")]],2)])]),_c('div',{staticClass:\"row no-padding-top\"},[(_vm.isLoading)?_c('div',{staticClass:\"col\"},[_c('loading')],1):_c('div',{staticClass:\"col pt-1 fill-height\"},[_c('DataTable',{staticClass:\"elevation-1\",attrs:{\"dense\":\"\",\"headers\":_vm.headers,\"items\":_vm.getAlerts,\"hide-footer\":false,\"items-per-page\":15,\"itemClass\":_vm.getAlertBackground},on:{\"rowSelected\":_vm.rowSelected,\"dblClick\":_vm.rowDoubleClick},scopedSlots:_vm._u([{key:\"item.message\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"text-start truncate\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(item.message)}})])]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('td',{staticClass:\"text-start action-buttons\"},[_c('EditBtn',{staticClass:\"pl-0 pr-0\",on:{\"click\":function($event){return _vm.editItem(item)}}}),_c('DeleteBtn',{staticClass:\"pr-0\",on:{\"click\":function($event){return _vm.deleteItem(item)}}})],1)]}}])}),(_vm.isDeleting)?_c('div',{staticClass:\"float-right\"},[_vm._v(\"deleting ... \"),_c('loading',{attrs:{\"isSmall\":true}})],1):_vm._e()],1),_c('div',{staticClass:\"col-xl-4 pt-1\"},[(_vm.selectedAlertId)?_c('div',{staticClass:\"card info-card\"},[_c('div',{staticClass:\"card-body fill-height\",staticStyle:{\"min-height\":\"350px\"}},[_c('h5',{staticClass:\"mb-1\",domProps:{\"innerHTML\":_vm._s(_vm.currentAlert.message)}}),_c('h6',{staticClass:\"mb-0\"},[_c('i',{staticClass:\"pl-2\"},[_vm._v(\"Intended for \"+_vm._s(_vm.intendedFor(_vm.currentAlert)))])]),_c('p',{staticClass:\"small text-nuted mb-0\"},[_c('i',{staticClass:\"pl-2\"},[_vm._v(_vm._s(_vm.visibilityInfo(_vm.currentAlert)))])])])]):_vm._e()])]),_c('confirm-delete-modal',{attrs:{\"has-confirm-box\":false,\"title\":\"Delete this Team Page Alert?\"},on:{\"onDeleteConfirmed\":_vm.confirmDeleteAlert,\"onDeleteDismissed\":_vm.cancelDeleteAlert},model:{value:(_vm.showConfirmDelete),callback:function ($$v) {_vm.showConfirmDelete=$$v},expression:\"showConfirmDelete\"}},[_vm._v(\"Are you sure you want to delete this Team Page Alert?\")])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"col-sm-8 pr-0\"},[_c('h5',[_vm._v(\"Team Page Alerts\")])])}]\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\nimport { Component, Vue } from 'vue-property-decorator'\nimport { Action, Getter } from 'vuex-class'\nimport * as divisionStore from '@/store/divisions'\nimport * as programTypesStore from '@/store/programTypes'\nimport * as teamStore from '@/store/teams'\nimport * as teamPageAlertStore from '@/store/teamPageAlerts'\nimport { TeamPageAlertInfo } from '@/GeneratedTypes/ListInfo/TeamPageAlertInfo'\nimport { UpwardProgramTypeID } from '@/GeneratedTypes/UpwardTypes/UpwardProgramTypeID'\n\nimport TextInput from '@/elements/TextInput.vue'\nimport YesNoInput from '@/elements/YesNoInput.vue'\nimport ConfirmDeleteModal from '@/components/ConfirmDeleteModal.vue'\nimport Loading from '@/elements/Loading.vue'\nimport EditBtn from '@/elements/DataTable/vue/EditBtn.vue'\nimport DeleteBtn from '@/elements/DataTable/vue/DeleteBtn.vue'\n\nimport DataTable from '@/elements/DataTable/DataTable.vue'\nimport { DataTableHeader } from 'vuetify/types'\nimport { DataTableSelection } from '@/models/DataTable/DataTableSelection'\n\nimport dayjs from 'dayjs'\nimport { programTypeDescription } from '@/lib/common/ProgramTypes'\n\nimport { viewModes } from '@/store/teamPageAlerts'\n\ninterface AlertDataTableElement {\n alertID: number\n message: string | null\n intendedFor: string\n visibility: string\n isActive: boolean\n isPast: boolean\n isFuture: boolean\n actions: string\n}\n\n@Component({\n components: {\n TextInput,\n YesNoInput,\n ConfirmDeleteModal,\n Loading,\n DataTable,\n EditBtn,\n DeleteBtn,\n },\n})\nexport default class TeamPageAlertList extends Vue {\n public deleteItem(alert: AlertDataTableElement) {\n if (alert) {\n this.setCurrentAlert({ id: alert.alertID })\n this.showConfirmDelete = true\n }\n }\n\n public async editItem(alert: AlertDataTableElement) {\n if (alert) {\n this.setCurrentAlert({ id: alert.alertID })\n await this.beginEdit()\n }\n }\n\n @Action(teamPageAlertStore.actionNames.load, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly retrieveAlerts!: ({ id }: { id: string }) => TeamPageAlertInfo[] | null\n\n @Action(teamPageAlertStore.actionNames.delete, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly deleteAlert!: () => boolean\n\n @Getter(teamPageAlertStore.getterNames.currentItem, {\n namespace: teamPageAlertStore.namespace,\n })\n private currentAlert!: TeamPageAlertInfo\n\n @Getter(teamPageAlertStore.getterNames.items, {\n namespace: teamPageAlertStore.namespace,\n })\n private alerts!: TeamPageAlertInfo[]\n\n @Action(teamPageAlertStore.actionNames.set, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly setCurrentAlert!: ({ id }: { id: number }) => TeamPageAlertInfo\n\n @Action(teamPageAlertStore.actionNames.beginEdit, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly beginEdit!: () => void\n\n @Action(teamPageAlertStore.actionNames.beginCreating, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly beginCreating!: () => void\n\n @Getter(teamPageAlertStore.getterNames.viewMode, {\n namespace: teamPageAlertStore.namespace,\n })\n private viewMode!: viewModes\n\n @Action(programTypesStore.actionNames.fetchAll, { namespace: programTypesStore.namespace })\n private fetchProgramTypes!: ({ force }: { force: boolean }) => Promise\n\n @Getter(programTypesStore.getterNames.allItems, { namespace: programTypesStore.namespace })\n readonly allProgramTypes!: UpwardProgramTypeID[]\n\n @Action(divisionStore.actionNames.fetchAll, { namespace: divisionStore.namespace })\n private fetchAllDivisions!: ({ upwardLeagueId }: { upwardLeagueId: string }) => Promise\n\n @Action(teamStore.actionNames.fetchTeams, { namespace: teamStore.namespace })\n private fetchAllTeams!: ({ upwId }: { upwId: string }) => Promise\n\n headers: DataTableHeader[] = [\n { text: 'Message', value: 'message' },\n { text: 'Intended For', value: 'intendedFor' },\n { text: 'Visibility', value: 'visibilityInfo' },\n { text: '', value: 'actions' },\n ]\n\n private showConfirmDelete = false\n private selectedAlertId = 0\n private isLoading = true\n private isDeleting = false\n\n public async mounted() {\n await this.fetchAllDivisions({ upwardLeagueId: this.$route.params.id })\n await this.fetchAllTeams({ upwId: this.$route.params.id })\n await this.fetchProgramTypes({ force: false })\n await this.retrieveAlerts({ id: this.$route.params.id })\n this.isLoading = false\n }\n\n private getAlertBackground(a: AlertDataTableElement) {\n return a.isActive ? 'bg-active' : a.isPast ? 'bg-past' : 'bg-future'\n }\n\n rowSelected(x: DataTableSelection) {\n this.selectedAlertId = x.item.alertID\n this.setCurrentAlert({ id: this.selectedAlertId })\n }\n\n rowDoubleClick() {\n this.beginEdit()\n }\n\n private onBeginEdit() {\n this.beginEdit()\n }\n\n private async create() {\n await this.beginCreating()\n }\n\n private edit() {\n this.beginEdit()\n }\n\n async confirmDeleteAlert() {\n try {\n this.isDeleting = true\n await this.deleteAlert()\n await this.retrieveAlerts({ id: this.$route.params.id })\n } finally {\n this.showConfirmDelete = false\n this.isDeleting = false\n }\n }\n\n private cancelDeleteAlert() {\n this.showConfirmDelete = false\n }\n\n private formattedDate(d: Date | null) {\n return dayjs(d ?? '').format('MMM DD')\n }\n\n private intendedFor(a: TeamPageAlertInfo) {\n return a.teamName\n ? `Team: ${a.teamName}`\n : a.divisionName\n ? `Division: ${a.divisionName}`\n : `${programTypeDescription(a.typeProgramID) ?? 'Everyone'}`\n }\n\n private visibilityInfo(a: TeamPageAlertInfo) {\n return this.isActive(a)\n ? `Now showing until ${this.formattedDate(a.expireDate)}`\n : this.isPast(a)\n ? `Expired on ${this.formattedDate(a.expireDate)}`\n : `Will show on ${this.formattedDate(a.startDate)}`\n }\n\n private isActive(a: TeamPageAlertInfo) {\n return dayjs().isAfter(a.startDate ?? '') && dayjs().isBefore(a.expireDate ?? '')\n }\n\n private isPast(a: TeamPageAlertInfo) {\n return dayjs().isAfter(a.expireDate ?? '')\n }\n private isFuture(a: TeamPageAlertInfo) {\n return dayjs().isBefore(a.startDate ?? '')\n }\n\n get getAlerts() {\n if (this.alerts && this.alerts.length > 0) {\n return this.alerts.map((a) => {\n return {\n alertID: a.id,\n message: a.message?.replace(/

/g, '').replace(/<\\/p>/g, '') ?? '',\n intendedFor: this.intendedFor(a),\n visibilityInfo: this.visibilityInfo(a),\n isActive: this.isActive(a),\n isPast: this.isPast(a),\n isFuture: this.isFuture(a),\n actions: '',\n }\n })\n }\n\n return []\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!./TeamPageAlertList.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!./TeamPageAlertList.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamPageAlertList.vue?vue&type=template&id=70913d1f&\"\nimport script from \"./TeamPageAlertList.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamPageAlertList.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TeamPageAlertList.vue?vue&type=style&index=0&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('div',{staticClass:\"container-fluid\"},[_c('div',{staticClass:\"row pt-3\"},[_c('div',{staticClass:\"col pl-0 text-right\"},[_c('button',{staticClass:\"btn btn-success mr-2\",on:{\"click\":_vm.saveItem}},[_c('i',{staticClass:\"fa fa-check\"}),_vm._v(\" Save\")]),_c('button',{staticClass:\"btn btn-light\",on:{\"click\":_vm.cancelEdit}},[_vm._v(\"Cancel\")])]),_c('div',{staticClass:\"col-12\"},[_c('VeeValidateForm',{ref:\"vvForm\"},[(_vm.programOptions.length > 1)?_c('select-input',{attrs:{\"label\":\"Show alert for\",\"items-list\":_vm.programOptions,\"text-property-name\":\"optionText\",\"value-property-name\":\"optionValue\",\"blank-item-text\":_vm.programBlankItemText,\"blank-item-value\":\"NONE\",\"show-blank-item\":_vm.programOptions.length > 1},model:{value:(_vm.selectedProgram),callback:function ($$v) {_vm.selectedProgram=$$v},expression:\"selectedProgram\"}}):_vm._e(),_c('select-input',{attrs:{\"label\":_vm.programOptions.length == 1 ? 'Show alert for' : '',\"items-list\":_vm.programDivisions,\"text-property-name\":\"divisionName\",\"value-property-name\":\"divisionID\",\"blank-item-text\":\"All Divisions\",\"blank-item-value\":0,\"show-blank-item\":true,\"enabled\":_vm.selectedProgram != 'NONE'},model:{value:(_vm.selectedDivisionID),callback:function ($$v) {_vm.selectedDivisionID=$$v},expression:\"selectedDivisionID\"}}),_c('select-input',{attrs:{\"items-list\":_vm.divisionTeams,\"text-property-name\":\"teamName\",\"value-property-name\":\"upwardTeamID\",\"blank-item-text\":\"All Teams\",\"blank-item-value\":'',\"show-blank-item\":true,\"enabled\":_vm.selectedDivisionID > 0},model:{value:(_vm.localInEditItem.upwardTeamID),callback:function ($$v) {_vm.$set(_vm.localInEditItem, \"upwardTeamID\", $$v)},expression:\"localInEditItem.upwardTeamID\"}}),_c('date-input',{attrs:{\"required\":\"\",\"label\":\"Start displaying on\",\"vee-validate-rules\":\"required\",\"validation-provider-name\":\"beginDate\"},model:{value:(_vm.localInEditItem.startDate),callback:function ($$v) {_vm.$set(_vm.localInEditItem, \"startDate\", $$v)},expression:\"localInEditItem.startDate\"}}),_c('date-input',{attrs:{\"required\":\"\",\"label\":\"End displaying on\",\"vee-validate-rules\":\"required|beginDateLessThanEndDate:@beginDate\"},model:{value:(_vm.localInEditItem.expireDate),callback:function ($$v) {_vm.$set(_vm.localInEditItem, \"expireDate\", $$v)},expression:\"localInEditItem.expireDate\"}}),_c('html-editor',{attrs:{\"required\":\"\",\"label\":\"Message\",\"vee-validate-rules\":\"required\"},model:{value:(_vm.localInEditItem.message),callback:function ($$v) {_vm.$set(_vm.localInEditItem, \"message\", $$v)},expression:\"localInEditItem.message\"}})],1)],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\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 Vue from 'vue'\nimport Component from 'vue-class-component'\nimport { Watch } from 'vue-property-decorator'\nimport * as divisionStore from '@/store/divisions'\nimport * as programTypesStore from '@/store/programTypes'\nimport * as teamStore from '@/store/teams'\nimport * as teamPageAlertStore from '@/store/teamPageAlerts'\nimport { viewModes } from '@/store/teamPageAlerts'\nimport { Action, Getter, Mutation } from 'vuex-class'\nimport { cloneDeep } from 'lodash'\nimport { TeamPageAlertInfo } from '@/GeneratedTypes/ListInfo/TeamPageAlertInfo'\nimport { UpwardProgramTypeID } from '@/GeneratedTypes/UpwardTypes/UpwardProgramTypeID'\nimport { League } from '@/GeneratedTypes/League'\nimport { LeagueProgram } from 'src/GeneratedTypes/LeagueProgram'\nimport { LeagueDivisionInfo } from '@/GeneratedTypes/ListInfo/LeagueDivisionInfo'\nimport { DivisionTeamInfo } from '@/GeneratedTypes/ListInfo/DivisionTeamInfo'\nimport SelectInput from '@/elements/SelectInput.vue'\nimport VeeValidateForm from '@/elements/VeeValidateForm.vue'\nimport DateInput from '@/elements/DateInput.vue'\nimport HtmlEditor from '@/elements/HtmlEditor2.vue'\nimport { ValidationObserver } from 'vee-validate'\nimport { programTypeDescription } from '@/lib/common/ProgramTypes'\nimport { getEmptyTeamPageAlertInfo } from '@/lib/support/models/TeamPageAlertInfo/data'\nimport { convertToOldFashionDateTime } from '@/lib/support/utilities/time/time'\n\ninterface ProgramSelectInputOption {\n optionText: string\n optionValue: string | null\n}\n\n@Component({\n components: {\n SelectInput,\n DateInput,\n HtmlEditor,\n VeeValidateForm,\n ValidationObserver,\n },\n})\nexport default class TeamPageAlertEditor extends Vue {\n @Action(teamPageAlertStore.actionNames.endEdit, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly endEdit!: () => void\n\n @Action(teamPageAlertStore.actionNames.endCreating, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly endCreating!: () => void\n\n @Action(teamPageAlertStore.actionNames.save, {\n namespace: teamPageAlertStore.namespace,\n })\n private readonly save!: () => TeamPageAlertInfo\n\n @Getter(teamPageAlertStore.getterNames.viewMode, {\n namespace: teamPageAlertStore.namespace,\n })\n private viewMode!: viewModes\n\n @Getter(teamPageAlertStore.getterNames.editorItem, {\n namespace: teamPageAlertStore.namespace,\n })\n private inEditItem!: TeamPageAlertInfo\n\n @Mutation(teamPageAlertStore.mutationNames.setInEditItem, {\n namespace: teamPageAlertStore.namespace,\n })\n private setInEditItem!: ({ item }: { item: TeamPageAlertInfo }) => void\n\n @Getter(teamPageAlertStore.getterNames.currentLeague, {\n namespace: teamPageAlertStore.namespace,\n })\n private currentLeague!: League\n\n @Getter(programTypesStore.getterNames.allItems, { namespace: programTypesStore.namespace })\n readonly allProgramTypes!: UpwardProgramTypeID[]\n\n @Getter(divisionStore.getterNames.allItems, { namespace: divisionStore.namespace })\n readonly allDivisions!: (s: string) => LeagueDivisionInfo[]\n\n @Getter(teamStore.getterNames.teams, { namespace: teamStore.namespace })\n readonly allTeams!: DivisionTeamInfo[]\n\n private programs: LeagueProgram[] | null = [] as LeagueProgram[]\n private localInEditItem: TeamPageAlertInfo = getEmptyTeamPageAlertInfo()\n private programDivisions: LeagueDivisionInfo[] | null = [] as LeagueDivisionInfo[]\n private divisionTeams: DivisionTeamInfo[] | null = [] as DivisionTeamInfo[]\n private selectedProgram = 'NONE'\n private selectedDivisionID = 0\n\n private get programBlankItemText() {\n if (this.programs && this.programs.length > 0) {\n return `Both ${programTypeDescription(this.programs[0].typeProgramID)} and Cheer`\n } else {\n return '?All?' //should never be here\n }\n }\n\n private get programOptions(): ProgramSelectInputOption[] {\n if (this.programs) {\n return (\n this.programs.map((p) => {\n return {\n optionText: programTypeDescription(p.typeProgramID) ?? '',\n optionValue: p.typeProgramID,\n } as ProgramSelectInputOption\n }) ?? []\n )\n } else {\n return []\n }\n }\n\n @Watch('selectedProgram')\n private onProgramChanged() {\n if (this.selectedProgram != 'NONE') {\n this.programDivisions = this.allDivisions(this.currentLeague.upwardLeagueID ?? '').filter(\n (x) => x.typeProgramID == this.selectedProgram\n )\n } else {\n this.programDivisions = []\n }\n if (this.localInEditItem.typeProgramID != this.selectedProgram) {\n this.selectedDivisionID = 0\n this.localInEditItem.typeProgramID = this.selectedProgram\n }\n }\n\n @Watch('selectedDivisionID')\n private onDivisionChanged() {\n if (this.selectedDivisionID > 0) {\n this.divisionTeams = this.allTeams.filter(\n (x) => x.typeProgramID == this.selectedProgram && x.divisionID == this.selectedDivisionID\n )\n } else {\n this.divisionTeams = []\n }\n\n if (this.localInEditItem.divisionID != this.selectedDivisionID) {\n this.localInEditItem.upwardTeamID = ''\n this.localInEditItem.divisionID = this.selectedDivisionID\n }\n }\n\n @Watch('viewMode', { immediate: true })\n private onViewModeChanged() {\n this.updateView()\n }\n\n public mounted() {\n this.localInEditItem = cloneDeep(this.inEditItem)\n this.programs = this.currentLeague.programs ?? []\n if (this.isInCreateMode()) {\n this.selectedProgram = this.programs.length > 1 ? 'NONE' : this.programs[0].typeProgramID\n } else {\n this.selectedProgram = this.localInEditItem.typeProgramID ?? 'NONE'\n this.selectedDivisionID = this.localInEditItem.divisionID\n }\n this.updateView()\n }\n\n private isInEditMode() {\n return this.viewMode === viewModes.edit\n }\n\n private isInCreateMode() {\n return this.viewMode === viewModes.create\n }\n\n private async saveItem() {\n // make sure form is valid\n const formIsValid = await (this.$refs.vvForm as Vue & { checkValidity: () => boolean }).checkValidity()\n if (formIsValid) {\n const alert = this.dealWithLocalTime()\n this.setInEditItem({ item: alert })\n await this.save()\n if (this.viewMode === viewModes.create) {\n this.endCreating()\n } else {\n this.endEdit()\n }\n }\n }\n\n private cancelEdit() {\n if (this.viewMode === viewModes.edit) {\n this.endEdit()\n }\n\n if (this.viewMode === viewModes.create) {\n this.endCreating()\n }\n }\n\n private dealWithLocalTime() {\n // deal with local vs UTC time\n const newAlert = cloneDeep(this.localInEditItem)\n //@ts-ignore\n newAlert.startDate = convertToOldFashionDateTime(this.localInEditItem.startDate, '00', '00', '00')\n //@ts-ignore\n newAlert.expireDate = convertToOldFashionDateTime(this.localInEditItem.expireDate, '23', '59', '59')\n\n return newAlert\n }\n\n private updateView() {\n return //place holder just in case\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!./TeamPageAlertEditor.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!./TeamPageAlertEditor.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamPageAlertEditor.vue?vue&type=template&id=1c67eff9&scoped=true&\"\nimport script from \"./TeamPageAlertEditor.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamPageAlertEditor.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./TeamPageAlertEditor.vue?vue&type=style&index=0&id=1c67eff9&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 \"1c67eff9\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\nimport { defineComponent, ref, computed, watch, onMounted } from '@vue/composition-api'\nimport store from '@/store'\nimport TeamPageAlertList from './TeamPageAlertList.vue'\nimport TeamPageAlertEditor from './TeamPageAlertEditor.vue'\nimport * as teamPageAlertStore from '@/store/teamPageAlerts'\n\nexport default defineComponent({\n name: 'TeamPageAlerts',\n components: {\n TeamPageAlertList,\n TeamPageAlertEditor,\n },\n setup() {\n const viewMode = computed(() => store.getters.teamPageAlerts.viewMode)\n\n const componentName = ref('TeamPageAlertList')\n\n onMounted(() => {\n store.dispatch.teamPageAlerts.endEdit(null)\n })\n\n watch(\n () => viewMode.value,\n () => {\n if (isInEditOrCreateMode()) {\n componentName.value = 'TeamPageAlertEditor'\n } else {\n componentName.value = 'TeamPageAlertList'\n }\n },\n { immediate: true }\n )\n\n function isInEditOrCreateMode(): boolean {\n return (\n viewMode.value === teamPageAlertStore.viewModes.edit ||\n viewMode.value === teamPageAlertStore.viewModes.create\n )\n }\n\n return {\n componentName,\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!./TeamPageAlerts.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!./TeamPageAlerts.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./TeamPageAlerts.vue?vue&type=template&id=252341be&\"\nimport script from \"./TeamPageAlerts.vue?vue&type=script&lang=ts&\"\nexport * from \"./TeamPageAlerts.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","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!./TeamPageAlertList.vue?vue&type=style&index=0&lang=scss&\""],"sourceRoot":""}