{"version":3,"sources":["webpack:///./src/components/CommunicationModal.vue?0637","webpack:///./src/filters/dateFmt.ts","webpack:///./src/components/CommunicationModal.vue","webpack:///./src/components/CommunicationModal.vue?a76f","webpack:///./src/components/CommunicationModal.vue?83cb","webpack:///./src/views/Programs/Communications/History.vue?aed1","webpack:///./src/views/Programs/Communications/vue/ErrorIcon.vue?4cfe","webpack:///./src/views/Programs/Communications/vue/ErrorIcon.vue","webpack:///./src/views/Programs/Communications/vue/ErrorIcon.vue?5843","webpack:///./src/views/Programs/Communications/vue/ErrorIcon.vue?d205","webpack:///./src/views/Programs/Communications/vue/SearchButton.vue?f755","webpack:///./src/views/Programs/Communications/vue/SearchButton.vue","webpack:///./src/views/Programs/Communications/vue/SearchButton.vue?6fbd","webpack:///./src/views/Programs/Communications/vue/SearchButton.vue?8b01","webpack:///./src/components/CollapsePanel.vue?f247","webpack:///./src/components/CollapsePanel.vue","webpack:///./src/components/CollapsePanel.vue?d58d","webpack:///./src/components/CollapsePanel.vue?1122","webpack:///./src/views/Programs/Communications/History.vue","webpack:///./src/views/Programs/Communications/History.vue?8c5e","webpack:///./src/views/Programs/Communications/History.vue?af88","webpack:///./src/components/CollapsePanel.vue?1409","webpack:///./src/views/Programs/Communications/History.vue?36ae","webpack:///./src/components/CommunicationModal.vue?62a9"],"names":["render","_vm","this","_h","$createElement","_c","_self","attrs","title","model","value","callback","$$v","show","expression","staticClass","class","message","recipientCount","domProps","_s","summaryMessage","_v","on","copyAddress","wasCopied","_l","item","i","key","subject","_e","sanitizedMessage","isPreview","sendingResults","slot","$event","send","staticRenderFns","dateFmt","formatTemplate","format","Date","copyAddresses","copyingAddress","document","execCommand","e","csvRecipients","individualRecipients","reduce","s","a","clipboardData","setData","preventDefault","addEventListener","copyEmailAddress","$emit","val","msg","messageBody","allowedTags","defaults","concat","results","thirdPartyResponse","includes","dateMsg","verbTense","plural","dt","sentDate","messageType","type","Boolean","required","default","Object","String","components","Modal","Loading","Alert","component","selectedMessage","showModal","_m","emailFilter","emailHeaders","emails","scopedSlots","_u","fn","ref","loadingMessage","showMessage","smsFilter","smsHeaders","smsList","name","props","setup","click","loadingItemId","emailSmsMessageID","Number","emit","collapsed","_t","$slots","SlideUpDown","initialCollapse","loading","emailHistory","smsHistory","populateMessageData","sendCommunicationOn","createDate","recipientsString","recipients","maxStringLength","join","recipientsCount","length","sent","hasError","b","aSentDate","bSentDate","isBefore","toLowerCase","search","emailSubject","emailSmsAccountID","providerInfo","upwID","$route","params","id","communicationsClient","retrieveLeagueSettings","leagueSetting","retrieveMessages","MessageTypes","Email","Sms","currentMessage","mt","retrieveMessage","headers","text","align","some","unshift","email","filter","m","isSent","sentComplete","map","msgMap","sort","dateSort","emailFilterFnc","sms","smsFilterFnc","communications","currentItem","namespace","CollapsePanel","TextInput","CommunicationModal","DataTable","ErrorIcon","SearchButton"],"mappings":"gKAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,MAAM,CAAC,MAAQN,EAAIO,OAAOC,MAAM,CAACC,MAAOT,EAAQ,KAAEU,SAAS,SAAUC,GAAMX,EAAIY,KAAKD,GAAKE,WAAW,SAAS,CAAEb,EAAW,QAAEI,EAAG,MAAM,CAACU,YAAY,4BAA4B,CAACV,EAAG,MAAM,CAACU,YAAY,OAAO,CAACV,EAAG,MAAM,CAACU,YAAY,UAAU,CAACV,EAAG,MAAM,CAACU,YAAY,6BAA6BC,MAAM,CACvY,uBAAwBf,EAAIgB,QAAQC,eAAiB,EACrD,YAAajB,EAAIgB,QAAQC,gBAAkB,IAC1C,CAACb,EAAG,MAAM,CAACU,YAAY,cAAc,CAACV,EAAG,IAAI,CAACU,YAAY,wBAAwB,CAACV,EAAG,OAAO,CAACc,SAAS,CAAC,UAAYlB,EAAImB,GAAGnB,EAAIoB,6BAA6BhB,EAAG,MAAM,CAACU,YAAY,OAAO,CAACV,EA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ElE,8BAoEa,MACLU,EAAMnK,KAAKiH,WAAL,UACNjH,KAAKiH,kBADC,aACN,EACIyC,QAAO,SAACC,GACR,IAAIC,GAAS,EAGb,OAFKD,EAAExC,oBACEwC,EAAExC,sBAA0C,IAAnBwC,EAAEE,eAAuBD,GAAS,GADxCA,GAAS,EAE9BA,KAERE,IAAI9J,KAAK+J,QACTC,KAAKhK,KAAKiK,UACb,GACJ,OAAOjK,KAAK+F,UAAYoE,EAAIT,OAAO1J,KAAKoK,cAAgBD,MAhF5D,GAAqC,QAEnC,gBADC,eAAOE,EAAA,KAAgCC,YAAa,CAAEC,UAAWF,EAAA,Q,mCAclE,gBADC,eAAM,iB,2BAGN,MAjBkB,EAAO,gBAX3B,eAAU,CACTvF,WAAY,CACVE,UAAA,KACAwF,gBACAC,YAAA,KACAC,qBAAA,KACAC,YAAA,KACAC,YACAC,mBAGiB,WC5GiZ,ICQla,G,UAAY,eACd,EACA/K,EACAsC,GACA,EACA,KACA,WACA,OAIa,e,2CCnBf,W,kCCAA,W,yDCAA","file":"js/chunk-4caf4c9e.9cd73a84.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('modal',{attrs:{\"title\":_vm.title},model:{value:(_vm.show),callback:function ($$v) {_vm.show=$$v},expression:\"show\"}},[(_vm.message)?_c('div',{staticClass:\"d-flex flex-column h-100\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"panel panel-default border\",class:{\n 'background-secondary': _vm.message.recipientCount > 0,\n 'bg-danger': _vm.message.recipientCount <= 0,\n }},[_c('div',{staticClass:\"panel-body\"},[_c('p',{staticClass:\"m-0 py-3 text-center\"},[_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.summaryMessage)}})])])])])]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"To\")]),_c('button',{staticClass:\"btn btn-light float-right btn-xs\",on:{\"click\":_vm.copyAddress}},[_c('i',{staticClass:\"fa fa-copy\"}),_vm._v(\" Copy to Clipboard \")]),_c('alert',{attrs:{\"timeout\":3000,\"type\":\"notice\"},model:{value:(_vm.wasCopied),callback:function ($$v) {_vm.wasCopied=$$v},expression:\"wasCopied\"}},[_c('p',[_vm._v(\"The email addresses were copied to the clipboard.\")])])],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12\"},[_c('div',{staticClass:\"panel panel-default border w-100\"},[_c('div',{staticClass:\"panel-body w-100 p-1 recipients-panel\"},_vm._l((_vm.message.individualRecipients),function(item,i){return _c('div',{key:(\"\" + item + i),staticClass:\"badge no-dismiss bg-light-3 badge-pill mr-2\"},[_vm._v(\" \"+_vm._s(item)+\" \")])}),0)])])]),(_vm.message.subject)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-6 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Subject\")]),_c('div',[_vm._v(_vm._s(_vm.message.subject))])]),(_vm.message.attachments)?_c('div',{staticClass:\"col-6 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Attachment(s)\")]),_vm._l((_vm.message.attachments),function(item,i){return _c('div',{key:(\"\" + item + i)},[_vm._v(\" \"+_vm._s(item)+\" \")])})],2):_vm._e()]):_vm._e(),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Message\")]),_c('p',{staticClass:\"m-0 text-danger\"},[_vm._v(\"(not editable)\")])])]),_c('div',{staticClass:\"d-flex flex-column h-100 border message\"},[_c('div',{staticClass:\"panel panel-default p-1\"},[_c('div',{staticClass:\"panel-body message-body-panel\"},[(_vm.sanitizedMessage)?_c('span',[_c('p',{staticClass:\"m-0\",domProps:{\"innerHTML\":_vm._s(_vm.sanitizedMessage)}})]):_vm._e()])])]),(!_vm.isPreview)?_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-12 mt-4\"},[_c('label',{staticClass:\"text-uppercase\"},[_vm._v(\"Sending Result\")])])]):_vm._e(),(!_vm.isPreview)?_c('div',{staticClass:\"d-flex flex-column h-100 border message\"},[_c('div',{staticClass:\"panel panel-default p-1\"},[_c('div',{staticClass:\"panel-body message-body-panel\"},[_c('p',{staticClass:\"m-0\",domProps:{\"innerHTML\":_vm._s(_vm.sendingResults)}})])])]):_vm._e()]):_vm._e(),_c('template',{slot:\"footer\"},[_c('button',{staticClass:\"btn btn-light\",on:{\"click\":function($event){_vm.show = false}}},[_vm._v(\"Close\")]),(_vm.isPreview)?_c('button',{staticClass:\"btn btn-success mx-1 px-3\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.send}},[(_vm.sendingEmailInProgress)?_c('loading',{attrs:{\"is-small\":\"\"}}):[_c('i',{staticClass:\"fa fa-paper-plane\"}),_vm._v(\" Send \")]],2):_vm._e()])],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","// In preparation for Vue3, this function can be used in lieu of date filter\nimport { format } from 'date-fns'\n\nexport function dateFmt(value: Date | string | null | undefined, formatTemplate = 'MM/dd/yy') {\n if (!value) {\n return ''\n }\n\n return format(new Date(value), formatTemplate)\n}\n","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 Alert from '@/components/Alert.vue'\nimport Modal from '@/components/Modal.vue'\nimport { Component, Vue, Prop } from 'vue-property-decorator'\nimport sanitizeHtml from 'sanitize-html'\nimport { dateFmt } from '@/filters/dateFmt.ts'\nimport { MessageData, getEmptyMessageData } from '@/lib/support/models/Communication/PreviewMessage.ts'\nimport Loading from '@/elements/Loading.vue'\n\n@Component({\n components: {\n Modal,\n Loading,\n Alert,\n },\n})\nexport default class CommunicationModal extends Vue {\n @Prop({ type: Boolean, required: true })\n private readonly value!: boolean\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly isPreview!: boolean\n\n @Prop({ type: Boolean, default: false, required: false })\n private readonly sendingEmailInProgress!: boolean\n\n @Prop({ type: Object, default: getEmptyMessageData, required: false })\n private readonly message!: MessageData\n\n @Prop({ type: String, required: true })\n private readonly title!: string\n\n private get show() {\n return this.value\n }\n\n private set show(val: boolean) {\n this.$emit('input', val)\n }\n\n copyAddresses = false\n private wasCopied = false\n\n private copyAddress() {\n this.copyAddresses = true\n document.execCommand('copy')\n this.copyAddresses = false\n this.wasCopied = true\n }\n\n copyingAddress = false\n private copyEmailAddress(e: any) {\n if (!this.copyAddresses || this.copyingAddress) {\n return\n }\n this.copyingAddress = true\n\n var csvRecipients = this.message.individualRecipients.reduce((s, a) => `${s},${a}`)\n e.clipboardData.setData('text/plain', csvRecipients)\n\n // This is necessary to prevent the current document selection from\n // being written to the clipboard.\n e.preventDefault()\n this.copyingAddress = false\n }\n\n mounted() {\n document.addEventListener('copy', this.copyEmailAddress)\n }\n\n private get sanitizedMessage() {\n const msg = this.message.messageBody ? this.message.messageBody : ''\n return sanitizeHtml(msg, { allowedTags: sanitizeHtml.defaults.allowedTags.concat('u') })\n }\n\n private get sendingResults() {\n const results = this.message.thirdPartyResponse ? this.message.thirdPartyResponse : ''\n\n if (!results.includes('errors')) return 'Message Sent Successfully.'\n\n return results\n }\n\n private send() {\n this.$emit('sendMessage')\n }\n private get summaryMessage() {\n if (!this.message) return ''\n\n let dateMsg = ''\n let verbTense = 'will send'\n const plural = this.message.recipientCount === 1 ? '' : 's'\n\n if (!this.isPreview) {\n verbTense = 'sent'\n const dt = dateFmt(this.message.sentDate, 'MM/dd/yy hh:MMa')\n dateMsg = ` on ${dt}`\n }\n\n return ` You ${verbTense} the following ${this.message.messageType}\n to ${this.message.recipientCount} recipient${plural}${dateMsg}.`\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!./CommunicationModal.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!./CommunicationModal.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CommunicationModal.vue?vue&type=template&id=512e4ba2&scoped=true&\"\nimport script from \"./CommunicationModal.vue?vue&type=script&lang=ts&\"\nexport * from \"./CommunicationModal.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CommunicationModal.vue?vue&type=style&index=0&id=512e4ba2&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 \"512e4ba2\",\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:\"row pt-3\"},[_c('communication-modal',{attrs:{\"message\":_vm.selectedMessage,\"title\":\"Message History\"},model:{value:(_vm.showModal),callback:function ($$v) {_vm.showModal=$$v},expression:\"showModal\"}}),(_vm.loading)?_c('div',{staticClass:\"col\"},[_c('loading')],1):[_vm._m(0),_c('div',{staticClass:\"container-fluid remove-all-margin-padding history-panels mb-3\"},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-11 col-sm-11 mb-4\"},[_c('collapse-panel',{attrs:{\"title\":\"Email Communication History\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-11 mt-3 d-flex justify-content-center\"},[_c('text-input',{attrs:{\"prepend-icon\":\"search\",\"placeholder\":\"Search Email History\"},model:{value:(_vm.emailFilter),callback:function ($$v) {_vm.emailFilter=$$v},expression:\"emailFilter\"}})],1)]),_c('div',{staticClass:\"grid-panel\"},[_c('DataTable',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.emailHeaders,\"items\":_vm.emails},scopedSlots:_vm._u([{key:\"item.hasError\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('ErrorIcon',{attrs:{\"item\":item}})]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('SearchButton',{attrs:{\"item\":item,\"loadingItemId\":_vm.loadingMessage},on:{\"click\":function($event){return _vm.showMessage(item)}}})]}}])})],1)])],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-11 col-sm-11\"},[_c('collapse-panel',{attrs:{\"title\":\"SMS Communication History\"}},[_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-11 mt-3 d-flex justify-content-center\"},[_c('text-input',{attrs:{\"prepend-icon\":\"search\",\"placeholder\":\"Search SMS History\"},model:{value:(_vm.smsFilter),callback:function ($$v) {_vm.smsFilter=$$v},expression:\"smsFilter\"}})],1)]),_c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col-md-11 mt-3 d-flex justify-content-center\"},[_c('strong',{staticClass:\"text-secondary\"},[_vm._v(\"**Only includes messages sent by league administrators through MyUpward.**\")])])]),_c('div',{staticClass:\"grid-panel\"},[_c('DataTable',{staticClass:\"elevation-1\",attrs:{\"headers\":_vm.smsHeaders,\"items\":_vm.smsList},scopedSlots:_vm._u([{key:\"item.hasError\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('ErrorIcon',{attrs:{\"item\":item}})]}},{key:\"item.actions\",fn:function(ref){\nvar item = ref.item;\nreturn [_c('SearchButton',{attrs:{\"item\":item,\"loadingItemId\":_vm.loadingMessage},on:{\"click\":function($event){return _vm.showMessage(item)}}})]}}])})],1)])],1)])])]],2)}\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 ml-3\"},[_c('h5',[_vm._v(\"History\")])])])}]\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.item.hasError)?_c('i',{staticClass:\"fa fa-exclamation-triangle text-danger\",attrs:{\"aria-hidden\":\"true\"}}):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\nimport { defineComponent, PropType } from '@vue/composition-api'\nimport { MessageItem } from '@/views/Programs/Communications/model/MessageItem'\nexport default defineComponent({\n name: 'CommsErrorIcon',\n props: { item: { type: Object as PropType, required: true } },\n components: {},\n setup() {\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!./ErrorIcon.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!./ErrorIcon.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ErrorIcon.vue?vue&type=template&id=07462a7e&\"\nimport script from \"./ErrorIcon.vue?vue&type=script&lang=ts&\"\nexport * from \"./ErrorIcon.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',{staticClass:\"btn btn-sm btn-primary\",on:{\"click\":function($event){return _vm.click(_vm.item)}}},[(_vm.loadingItemId == _vm.item.emailSmsMessageID)?_c('loading',{attrs:{\"is-small\":\"\"}}):_c('i',{staticClass:\"fa fa-search\",attrs:{\"aria-hidden\":\"true\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\nimport { defineComponent, PropType } from '@vue/composition-api'\nimport { MessageItem } from '@/views/Programs/Communications/model/MessageItem'\nimport Loading from '@/elements/Loading.vue'\nexport default defineComponent({\n name: 'CommsSearchButton',\n props: {\n item: { type: Object as PropType, required: true },\n loadingItemId: { type: Number, required: true },\n },\n components: { Loading },\n setup(props, { emit }) {\n function click(item: MessageItem) {\n emit('click', item)\n }\n return { click }\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!./SearchButton.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!./SearchButton.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./SearchButton.vue?vue&type=template&id=2861a4e9&\"\nimport script from \"./SearchButton.vue?vue&type=script&lang=ts&\"\nexport * from \"./SearchButton.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","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"row\"},[_c('div',{staticClass:\"col\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-body p-1\"},[_c('div',{staticClass:\"collapse-header\"},[_c('div',{staticClass:\"row clickable\",on:{\"click\":function($event){_vm.collapsed = !_vm.collapsed}}},[_c('div',{staticClass:\"col-auto\"},[_c('i',{staticClass:\"pl-2 indicator fas\",class:{\n 'fa-angle-up': !_vm.collapsed,\n 'fa-angle-down': _vm.collapsed,\n }})]),_c('div',{staticClass:\"col\"},[_vm._t(\"header\",[_vm._v(_vm._s(_vm.title))])],2),(_vm.$slots.subHeader)?_c('div',{staticClass:\"col-12\"},[_vm._t(\"subHeader\")],2):_vm._e()])]),_c('slide-up-down',{attrs:{\"active\":!_vm.collapsed,\"duration\":300,\"use-hidden\":false}},[_c('div',{staticClass:\"container-fluid\"},[_vm._t(\"default\")],2)])],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\nimport { VueConstructor } from 'vue'\nimport { defineComponent, ref } from '@vue/composition-api'\nimport Loading from '@/elements/Loading.vue'\n/// \nimport SlideUpDown from 'vue-slide-up-down'\n\nexport default defineComponent({\n name: 'CollapsePanel',\n components: {\n Loading,\n SlideUpDown: (SlideUpDown as unknown) as VueConstructor,\n },\n props: {\n title: { type: String, required: false, default: '' },\n initialCollapse: { type: Boolean, required: false, default: false },\n },\n setup(props) {\n const collapsed = ref(props.initialCollapse)\n\n return {\n collapsed,\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!./CollapsePanel.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!./CollapsePanel.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CollapsePanel.vue?vue&type=template&id=0ea97e3f&scoped=true&\"\nimport script from \"./CollapsePanel.vue?vue&type=script&lang=ts&\"\nexport * from \"./CollapsePanel.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CollapsePanel.vue?vue&type=style&index=0&id=0ea97e3f&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 \"0ea97e3f\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\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 dayjs from 'dayjs'\nimport { Getter } from 'vuex-class'\nimport ErrorIcon from '@/views/Programs/Communications/vue/ErrorIcon.vue'\nimport SearchButton from '@/views/Programs/Communications/vue/SearchButton.vue'\nimport Loading from '@/elements/Loading.vue'\nimport CollapsePanel from '@/components/CollapsePanel.vue'\nimport TextInput from '@/elements/TextInput.vue'\nimport CommunicationModal from '@/components/CommunicationModal.vue'\nimport DataTable from '@/elements/DataTable/DataTable.vue'\nimport { DataTableHeader } from 'vuetify/types'\nimport communicationsClient from '@/clients/communicationsClient'\nimport { EmailSMSLeagueMessageInfo } from '@/GeneratedTypes/Communication/EmailSMSLeagueMessage'\nimport { EmailSMSAccount } from '@/GeneratedTypes/Communication/EmailSMSAccount'\nimport { MessageItem } from '@/views/Programs/Communications/model/MessageItem'\nimport { maxStringLength } from '@/filters/maxStringLength'\nimport * as communicationsStore from '@/store/communications'\nimport {\n toMessageDataFromEmailSMSLeagueMessageInfo,\n getEmptyMessageData,\n} from '@/lib/support/models/Communication/PreviewMessage.ts'\n\n@Component({\n components: {\n Loading,\n CollapsePanel,\n TextInput,\n CommunicationModal,\n DataTable,\n ErrorIcon,\n SearchButton,\n },\n})\nexport default class History extends Vue {\n @Getter(communicationsStore.getterNames.currentItem, { namespace: communicationsStore.namespace })\n private readonly providerInfo!: EmailSMSAccount\n\n private loading = false\n private loadingMessage = 0\n private showModal = false\n\n private selectedMessage = getEmptyMessageData()\n private emailFilter = ''\n private emailHistory: EmailSMSLeagueMessageInfo[] | null = []\n private smsFilter = ''\n private smsHistory: EmailSMSLeagueMessageInfo[] | null = []\n\n @Watch('providerInfo')\n private async onInfoChange() {\n await this.populateMessageData()\n }\n\n public async mounted() {\n await this.populateMessageData()\n }\n\n get emailHeaders(): DataTableHeader[] {\n let headers: DataTableHeader[] = [\n { text: 'From', value: 'emailReplyTo' },\n { text: 'Subject', value: 'emailSubject' },\n {\n text: 'Attachments',\n value: 'attachmentsCount',\n align: 'center',\n },\n { text: 'Date Sent', value: 'sent' },\n { text: '', value: 'actions' },\n ]\n if (this.emails.some((e) => e.hasError)) {\n headers.unshift({ text: '', value: 'hasError' })\n }\n return headers\n }\n\n get smsHeaders(): DataTableHeader[] {\n let headers = [\n { text: 'Recipients', value: 'recipientsString' },\n { text: 'Date Sent', value: 'sent' },\n { text: '', value: 'actions' },\n ]\n if (this.smsList.some((e) => e.hasError)) {\n headers.unshift({ text: '', value: 'hasError' })\n }\n return headers\n }\n\n get emails() {\n let email = this.emailHistory\n ? this.emailHistory\n ?.filter((m) => {\n let isSent = false\n if (!m.sendCommunicationOn) isSent = true\n else if (m.sendCommunicationOn && m.sentComplete === true) isSent = true\n return isSent\n })\n .map(this.msgMap)\n .sort(this.dateSort)\n : []\n return this.emailFilter ? email.filter(this.emailFilterFnc) : email\n }\n\n get smsList() {\n let sms = this.smsHistory\n ? this.smsHistory\n ?.filter((m) => {\n let isSent = false\n if (!m.sendCommunicationOn) isSent = true\n else if (m.sendCommunicationOn && m.sentComplete === true) isSent = true\n return isSent\n })\n .map(this.msgMap)\n .sort(this.dateSort)\n : []\n return this.smsFilter ? sms.filter(this.smsFilterFnc) : sms\n }\n\n msgMap(msg: EmailSMSLeagueMessageInfo) {\n const sentDate = msg.sendCommunicationOn ? msg.sendCommunicationOn : msg.createDate\n return {\n ...msg,\n recipientsString: msg.recipients ? maxStringLength(msg.recipients.join(', '), 30) : '',\n recipientsCount: msg.recipients?.length ?? 0,\n sent: dayjs(sentDate ?? '').format('MM/DD/YY hh:mma'),\n hasError: msg.thirdPartyResponse?.includes('errors') ? true : false,\n } as MessageItem\n }\n\n dateSort(a: MessageItem, b: MessageItem) {\n const aSentDate = a.sendCommunicationOn ? a.sendCommunicationOn : a.createDate\n const bSentDate = b.sendCommunicationOn ? b.sendCommunicationOn : b.createDate\n return dayjs(aSentDate ?? '').isBefore(dayjs(bSentDate ?? '')) ? 1 : -1\n }\n\n smsFilterFnc(msg: MessageItem) {\n return msg.recipientsString.toLowerCase().search(this.smsFilter.toLowerCase()) != -1\n }\n\n emailFilterFnc(msg: MessageItem) {\n return (\n `${msg.recipientsString}${msg.emailSubject}`.toLowerCase().search(this.emailFilter.toLowerCase()) != -1\n )\n }\n\n private async populateMessageData() {\n try {\n this.loading = true\n const emailSmsAccountID = this.providerInfo.emailSmsAccountID\n\n const upwID = this.$route.params.id\n\n const leagueSetting = await communicationsClient.retrieveLeagueSettings(upwID, emailSmsAccountID)\n\n if (leagueSetting) {\n this.emailHistory = await communicationsClient.retrieveMessages(\n upwID,\n emailSmsAccountID,\n communicationsClient.MessageTypes.Email\n )\n this.smsHistory = await communicationsClient.retrieveMessages(\n upwID,\n emailSmsAccountID,\n communicationsClient.MessageTypes.Sms\n )\n }\n } finally {\n this.loading = false\n }\n }\n\n public async showMessage(message: MessageItem) {\n const currentMessage = message\n try {\n const mt =\n currentMessage.messageType === 'Email'\n ? communicationsClient.MessageTypes.Email\n : communicationsClient.MessageTypes.Sms\n\n this.loadingMessage = currentMessage.emailSmsMessageID\n const message = await communicationsClient.retrieveMessage(currentMessage.emailSmsMessageID, mt)\n this.loadingMessage = 0\n\n this.selectedMessage = toMessageDataFromEmailSMSLeagueMessageInfo(message)\n this.showModal = true\n } finally {\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!./History.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!./History.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./History.vue?vue&type=template&id=24a823fd&scoped=true&\"\nimport script from \"./History.vue?vue&type=script&lang=ts&\"\nexport * from \"./History.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./History.vue?vue&type=style&index=0&id=24a823fd&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 \"24a823fd\",\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!./CollapsePanel.vue?vue&type=style&index=0&id=0ea97e3f&lang=scss&scoped=true&\"","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!./History.vue?vue&type=style&index=0&id=24a823fd&lang=scss&scoped=true&\"","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!./CommunicationModal.vue?vue&type=style&index=0&id=512e4ba2&lang=scss&scoped=true&\""],"sourceRoot":""}