{"version":3,"sources":["webpack:///./src/components/Team/ConfirmationEmail.vue?8725","webpack:///src/components/Team/ConfirmationEmail.vue","webpack:///./src/components/Team/ConfirmationEmail.vue?cb8a","webpack:///./src/components/Team/ConfirmationEmail.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","chipColor","staticClass","_v","_s","rows","length","valid","loading","scopedSlots","_u","key","fn","ref","on","_g","model","value","callback","$$v","dialog","expression","$event","stopPropagation","window","text","item","_f","dtSent","_l","t","team","p","playerProfileId","fullname","playerIds","search","iRecipients","slot","_e","showAdd","send","sendCount","staticRenderFns","props","data","computed","registrationData","emailHistory","filter","c","validEmail","match","dto","additions","methods","reset","$VBL","confirmationResend","id","watch","v","component","VBtn","VCard","VCardActions","VCardText","VCheckbox","VChip","VCol","VCombobox","VContainer","VDataTable","VDialog","VDivider","VExpandTransition","VIcon","VListItem","VListItemContent","VList","VListItemTitle","VRow","VSpacer","VToolbar","VWindow","VWindowItem"],"mappings":"uHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,SAAS,CAACE,MAAM,CAAC,MAAQN,EAAIO,YAAY,CAACH,EAAG,SAAS,CAACI,YAAY,OAAOF,MAAM,CAAC,MAAQ,KAAK,CAACN,EAAIS,GAAG,qBAAqBT,EAAIS,GAAG,uBAAuBT,EAAIU,GAAGV,EAAIW,MAAQX,EAAIW,KAAKC,OAAS,OAAS,UAAU,KAAKR,EAAG,WAAW,CAACE,MAAM,CAAC,WAAa,GAAG,WAAaN,EAAIa,OAASb,EAAIc,QAAQ,YAAY,QAAQ,WAAa,qBAAqBC,YAAYf,EAAIgB,GAAG,CAAC,CAACC,IAAI,YAAYC,GAAG,SAASC,GAC5e,IAAIC,EAAKD,EAAIC,GACb,MAAO,CAAChB,EAAG,QAAQJ,EAAIqB,GAAG,CAACf,MAAM,CAAC,MAAQ,QAAQ,MAAQ,GAA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R,WAEA,mBAAQ,OAAR,2BACA,oBACQ,EAAR,gBAIEO,MAAO,CACLpC,OAAQ,SAAZ,GACgB,IAANqC,GAASlE,KAAK6D,SAEpBpC,OAAQ,UCzN8V,I,iRCOtW0C,EAAY,eACd,EACArE,EACAkD,GACA,EACA,KACA,KACA,MAIa,aAAAmB,EAAiB,QA0BhC,IAAkBA,EAAW,CAACC,OAAA,KAAKC,QAAA,KAAMC,aAAA,OAAaC,UAAA,OAAUC,YAAA,KAAUC,QAAA,KAAMC,OAAA,KAAKC,YAAA,KAAUC,aAAA,KAAWC,aAAA,KAAWC,UAAA,KAAQC,WAAA,KAASC,kBAAA,OAAkBC,QAAA,KAAMC,YAAA,KAAUC,iBAAAC,EAAA,KAAiBC,eAAAD,EAAA,KAAeE,OAAA,KAAKC,UAAA,KAAQC,WAAA,KAASC,UAAA,KAAQC,cAAA","file":"js/chunk-2d217a89.a20af1a4.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-chip',{attrs:{\"color\":_vm.chipColor}},[_c('v-icon',{staticClass:\"mr-2\",attrs:{\"small\":\"\"}},[_vm._v(\"fas fa-envelope\")]),_vm._v(\" Confirmation Email \"+_vm._s(_vm.rows && _vm.rows.length ? 'Sent' : 'Unsent')+\" \"),_c('v-dialog',{attrs:{\"scrollable\":\"\",\"persistent\":_vm.valid || _vm.loading,\"max-width\":\"500px\",\"transition\":\"dialog-transition\"},scopedSlots:_vm._u([{key:\"activator\",fn:function(ref){\nvar on = ref.on;\nreturn [_c('v-btn',_vm._g({attrs:{\"color\":\"white\",\"small\":\"\",\"icon\":\"\",\"loading\":_vm.loading}},on),[_c('v-icon',[_vm._v(\"fas fa-eye\")])],1)]}}]),model:{value:(_vm.dialog),callback:function ($$v) {_vm.dialog=$$v},expression:\"dialog\"}},[_c('v-card',[_c('v-toolbar',{attrs:{\"color\":\"color2 color2Text--text\",\"dense\":\"\"}},[_vm._v(\" Confirmation Email History \"),_c('v-spacer'),_c('v-btn',{attrs:{\"color\":\"color1 color1Text--text\",\"small\":\"\",\"fab\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.dialog = false}}},[_c('v-icon',[_vm._v(\"fas fa-times\")])],1)],1),_c('v-card-text',{staticClass:\"px-0 pb-0\"},[_c('v-window',{attrs:{\"touchless\":\"\"},model:{value:(_vm.window),callback:function ($$v) {_vm.window=$$v},expression:\"window\"}},[_c('v-window-item',{key:0},[_c('v-data-table',{attrs:{\"headers\":[\n {text: 'Sent On', value: 'dtSent'},\n {text: 'To', value: 'to'}\n ],\"items\":_vm.rows,\"item-key\":\"id\",\"hide-default-footer\":!_vm.rows || _vm.rows.length < 10,\"loading\":_vm.loading,\"disable-sort\":\"\"},scopedSlots:_vm._u([{key:\"item.dtSent\",fn:function(ref){\n var item = ref.item;\nreturn [_c('div',[_vm._v(_vm._s(_vm._f(\"unixToLocalDt\")(item.dtSent)))])]}},{key:\"item.to\",fn:function(ref){\n var item = ref.item;\nreturn _vm._l((item.to),function(t){return _c('div',{key:t},[_vm._v(_vm._s(t))])})}}],null,true)})],1),_c('v-window-item',{key:1},[_c('div',{staticClass:\"px-3 pt-2\"},[_c('div',{staticClass:\"text-subtitle-2\"},[_vm._v(\"Select which players to send it to or enter additional email addresses\")]),_vm._l((_vm.team.players),function(p){return _c('v-checkbox',{key:p.playerProfileId,attrs:{\"label\":p.fullname,\"hide-details\":\"\",\"color\":\"success\",\"value\":p.playerProfileId},model:{value:(_vm.playerIds),callback:function ($$v) {_vm.playerIds=$$v},expression:\"playerIds\"}})}),_c('v-expand-transition',[(_vm.showAdd)?_c('v-combobox',{staticClass:\"mt-3\",attrs:{\"search-input\":_vm.search,\"items\":[],\"color\":\"color3\",\"item-color\":\"color3\",\"multiple\":\"\",\"persistent-hint\":\"\",\"small-chips\":\"\",\"deletable-chips\":\"\",\"label\":\"Additional Recipients\",\"hint\":\"Enter an email addresses to send to\",\"disabled\":_vm.loading},on:{\"update:searchInput\":function($event){_vm.search=$event},\"update:search-input\":function($event){_vm.search=$event}},model:{value:(_vm.iRecipients),callback:function ($$v) {_vm.iRecipients=$$v},expression:\"iRecipients\"}},[(_vm.validEmail)?_c('template',{slot:\"no-data\"},[_c('v-list-item',[_c('v-list-item-content',[_c('v-list-item-title',[_vm._v(\" Press \"),_c('kbd',[_vm._v(\"enter\")]),_vm._v(\" to add this email \")])],1)],1)],1):_vm._e()],2):_vm._e()],1),_c('v-expand-transition',[(!_vm.showAdd)?_c('div',{staticClass:\"text-end\"},[_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\",\"x-small\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.showAdd = true}}},[_vm._v(\"add address\")])],1):_vm._e()])],2)])],1)],1),_c('v-divider'),_c('v-card-actions',[_c('v-container',{staticClass:\"py-0\",attrs:{\"fluid\":\"\"}},[_c('v-row',{staticClass:\"pa-0\"},[_c('v-col',{staticClass:\"pa-0\",attrs:{\"cols\":\"12\"}},[_c('v-window',{attrs:{\"touchless\":\"\"},model:{value:(_vm.window),callback:function ($$v) {_vm.window=$$v},expression:\"window\"}},[_c('v-window-item',{key:0},[_c('v-btn',{attrs:{\"color\":\"color3\",\"text\":\"\"},on:{\"click\":function($event){$event.stopPropagation();_vm.window = 1}}},[_vm._v(\"resend\")])],1),_c('v-window-item',{key:1},[_c('div',{staticClass:\"justify-space-between d-flex\"},[_c('v-btn',{attrs:{\"color\":\"color3Text color3--text\",\"small\":\"\",\"fab\":\"\",\"disabled\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();_vm.window = 0}}},[_c('v-icon',[_vm._v(\"fas fa-caret-left\")])],1),_c('v-btn',{attrs:{\"color\":\"success\",\"disabled\":!_vm.valid,\"loading\":_vm.loading},on:{\"click\":function($event){$event.stopPropagation();return _vm.send($event)}}},[_vm._v(\" Send\"+_vm._s(_vm.sendCount > 0 ? (\" (\" + _vm.sendCount + \")\") : '')+\" \")])],1)])],1)],1)],1)],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <v-chip\r\n :color=\"chipColor\"\r\n >\r\n <v-icon small class=\"mr-2\">fas fa-envelope</v-icon>\r\n Confirmation Email {{rows && rows.length ? 'Sent' : 'Unsent'}}\r\n <v-dialog\r\n v-model=\"dialog\"\r\n scrollable\r\n :persistent=\"valid || loading\"\r\n max-width=\"500px\"\r\n transition=\"dialog-transition\"\r\n >\r\n <template v-slot:activator=\"{ on }\">\r\n <v-btn\r\n color=\"white\"\r\n v-on=\"on\"\r\n small\r\n icon\r\n :loading=\"loading\"\r\n >\r\n <v-icon>fas fa-eye</v-icon>\r\n </v-btn>\r\n </template>\r\n <v-card>\r\n <v-toolbar color=\"color2 color2Text--text\" dense>\r\n Confirmation Email History\r\n <v-spacer></v-spacer>\r\n <v-btn\r\n color=\"color1 color1Text--text\"\r\n small fab\r\n @click.stop=\"dialog = false\"\r\n >\r\n <v-icon>fas fa-times</v-icon>\r\n </v-btn>\r\n </v-toolbar>\r\n <v-card-text class=\"px-0 pb-0\">\r\n <v-window v-model=\"window\" touchless>\r\n <v-window-item :key=\"0\">\r\n <v-data-table\r\n :headers=\"[\r\n {text: 'Sent On', value: 'dtSent'},\r\n {text: 'To', value: 'to'}\r\n ]\"\r\n :items=\"rows\"\r\n item-key=\"id\"\r\n :hide-default-footer=\"!rows || rows.length < 10\"\r\n :loading=\"loading\"\r\n disable-sort\r\n >\r\n <template v-slot:[`item.dtSent`]=\"{item}\">\r\n <div>{{item.dtSent | unixToLocalDt}}</div>\r\n </template>\r\n <template v-slot:[`item.to`]=\"{item}\">\r\n <div v-for=\"t in item.to\" :key=\"t\">{{t}}</div>\r\n </template>\r\n </v-data-table>\r\n </v-window-item>\r\n <v-window-item :key=\"1\">\r\n <div class=\"px-3 pt-2\">\r\n <div class=\"text-subtitle-2\">Select which players to send it to or enter additional email addresses</div>\r\n <v-checkbox\r\n v-for=\"p in team.players\"\r\n :key=\"p.playerProfileId\"\r\n :label=\"p.fullname\"\r\n v-model=\"playerIds\"\r\n hide-details\r\n color=\"success\"\r\n :value=\"p.playerProfileId\"\r\n ></v-checkbox>\r\n <v-expand-transition>\r\n <v-combobox\r\n class=\"mt-3\"\r\n v-if=\"showAdd\"\r\n v-model=\"iRecipients\"\r\n :search-input.sync=\"search\"\r\n :items=\"[]\"\r\n color=\"color3\"\r\n item-color=\"color3\"\r\n multiple\r\n persistent-hint\r\n small-chips\r\n deletable-chips\r\n label=\"Additional Recipients\"\r\n hint=\"Enter an email addresses to send to\"\r\n :disabled=\"loading\"\r\n >\r\n <template slot=\"no-data\" v-if=\"validEmail\">\r\n <v-list-item>\r\n <v-list-item-content>\r\n <v-list-item-title>\r\n Press <kbd>enter</kbd> to add this email\r\n </v-list-item-title>\r\n </v-list-item-content>\r\n </v-list-item>\r\n </template>\r\n </v-combobox>\r\n </v-expand-transition>\r\n <v-expand-transition>\r\n <div class=\"text-end\" v-if=\"!showAdd\">\r\n <v-btn color=\"color3\" text x-small @click.stop=\"showAdd = true\">add address</v-btn>\r\n </div>\r\n </v-expand-transition>\r\n </div>\r\n </v-window-item>\r\n </v-window>\r\n </v-card-text>\r\n <v-divider></v-divider>\r\n <v-card-actions>\r\n <v-container fluid class=\"py-0\">\r\n <v-row class=\"pa-0\">\r\n <v-col cols=\"12\" class=\"pa-0\">\r\n <v-window v-model=\"window\" touchless>\r\n <v-window-item :key=\"0\">\r\n <v-btn\r\n color=\"color3\"\r\n text\r\n @click.stop=\"window = 1\"\r\n >resend</v-btn>\r\n </v-window-item>\r\n <v-window-item :key=\"1\">\r\n <div class=\"justify-space-between d-flex\">\r\n <v-btn\r\n color=\"color3Text color3--text\"\r\n small\r\n fab\r\n @click.stop=\"window = 0\"\r\n :disabled=\"loading\"\r\n >\r\n <v-icon>fas fa-caret-left</v-icon>\r\n </v-btn>\r\n <v-btn\r\n color=\"success\"\r\n :disabled=\"!valid\"\r\n :loading=\"loading\"\r\n @click.stop=\"send\"\r\n >\r\n Send{{sendCount > 0 ? ` (${sendCount})` : ''}}\r\n </v-btn>\r\n </div>\r\n </v-window-item>\r\n </v-window>\r\n </v-col>\r\n </v-row>\r\n </v-container>\r\n </v-card-actions>\r\n </v-card>\r\n </v-dialog>\r\n </v-chip>\r\n\r\n</template>\r\n\r\n<script>\r\nimport { emailRegex } from '@/classes/HelperFunctions'\r\nexport default {\r\n props: ['team'],\r\n data () {\r\n return {\r\n showAdd: false,\r\n dialog: false,\r\n loading: false,\r\n window: 0,\r\n playerIds: [],\r\n iRecipients: [],\r\n search: null\r\n }\r\n },\r\n computed: {\r\n rows () {\r\n return this.team.registrationData.emailHistory && this.team.registrationData.emailHistory.filter(f => f.to.length > 0)\r\n },\r\n chipColor () {\r\n var c = this.rows && this.rows.length ? 'success' : 'error'\r\n return `${c} white--text`\r\n },\r\n validEmail () {\r\n return this.search && this.search.match(emailRegex)\r\n },\r\n sendCount () {\r\n return this.playerIds.length + this.iRecipients.length\r\n },\r\n valid () {\r\n return (this.playerIds.length + this.iRecipients.length) > 0\r\n },\r\n dto () {\r\n return {\r\n playerIds: this.playerIds,\r\n additions: this.iRecipients\r\n }\r\n }\r\n },\r\n methods: {\r\n reset () {\r\n this.showAdd = false\r\n this.loading = false\r\n this.window = 0\r\n this.playerIds = []\r\n this.iRecipients = []\r\n this.search = null\r\n },\r\n send () {\r\n this.loading = true\r\n this.$VBL.team.confirmationResend(this.team.id, this.dto)\r\n .then(r => {\r\n this.team.registrationData = r.data\r\n this.reset()\r\n })\r\n .catch(e => console.log(e.response))\r\n .finally(() => {\r\n this.loading = false\r\n })\r\n }\r\n },\r\n watch: {\r\n window: function (v) {\r\n if (v === 0) this.reset()\r\n },\r\n dialog: 'reset'\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmationEmail.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./ConfirmationEmail.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConfirmationEmail.vue?vue&type=template&id=9070d346&\"\nimport script from \"./ConfirmationEmail.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfirmationEmail.vue?vue&type=script&lang=js&\"\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\n\n/* vuetify-loader */\nimport installComponents from \"!../../../node_modules/vuetify-loader/lib/runtime/installComponents.js\"\nimport { VBtn } from 'vuetify/lib/components/VBtn';\nimport { VCard } from 'vuetify/lib/components/VCard';\nimport { VCardActions } from 'vuetify/lib/components/VCard';\nimport { VCardText } from 'vuetify/lib/components/VCard';\nimport { VCheckbox } from 'vuetify/lib/components/VCheckbox';\nimport { VChip } from 'vuetify/lib/components/VChip';\nimport { VCol } from 'vuetify/lib/components/VGrid';\nimport { VCombobox } from 'vuetify/lib/components/VCombobox';\nimport { VContainer } from 'vuetify/lib/components/VGrid';\nimport { VDataTable } from 'vuetify/lib/components/VDataTable';\nimport { VDialog } from 'vuetify/lib/components/VDialog';\nimport { VDivider } from 'vuetify/lib/components/VDivider';\nimport { VExpandTransition } from 'vuetify/lib/components/transitions';\nimport { VIcon } from 'vuetify/lib/components/VIcon';\nimport { VListItem } from 'vuetify/lib/components/VList';\nimport { VListItemContent } from 'vuetify/lib/components/VList';\nimport { VListItemTitle } from 'vuetify/lib/components/VList';\nimport { VRow } from 'vuetify/lib/components/VGrid';\nimport { VSpacer } from 'vuetify/lib/components/VGrid';\nimport { VToolbar } from 'vuetify/lib/components/VToolbar';\nimport { VWindow } from 'vuetify/lib/components/VWindow';\nimport { VWindowItem } from 'vuetify/lib/components/VWindow';\ninstallComponents(component, {VBtn,VCard,VCardActions,VCardText,VCheckbox,VChip,VCol,VCombobox,VContainer,VDataTable,VDialog,VDivider,VExpandTransition,VIcon,VListItem,VListItemContent,VListItemTitle,VRow,VSpacer,VToolbar,VWindow,VWindowItem})\n"],"sourceRoot":""}