{"version":3,"sources":["webpack:///./src/app/inbox/details/details.component.css","webpack:///./src/app/inbox/inbox.component.ts","webpack:///./src/app/inbox/details/details.component.ts","webpack:///./src/app/inbox/inbox-routing.module.ts","webpack:///./src/app/inbox/shared/sms-receive-filter.directive.ts","webpack:///./src/app/inbox/shared/filter/filter.component.ts","webpack:///./src/app/inbox/inbox.module.ts","webpack:///./src/app/inbox/details/details.component.html","webpack:///./src/app/inbox/inbox.component.html","webpack:///./src/app/inbox/shared/filter/filter.component.css","webpack:///./src/app/inbox/inbox.component.css","webpack:///./src/app/inbox/shared/filter/filter.component.html"],"names":["module","exports","inbox_component_InboxComponent","InboxComponent","coreApiSvc","changeDetectorRef","textMsgItApiSvc","this","page","pageSize","smsReceives","prototype","ngOnInit","ngAfterViewInit","get","_this","smsReceive","filters","filter","include","orderBy","pipe","Object","tap","result","totalCount","count","mergeMap","data","map","rd_sms","toArray","subscribe","onFilterChange","newVal","console","log","onPageChange","refetch","event","__decorate","core","shared","selector","rd_core","details_component_DetailsComponent","DetailsComponent","route","MOMENT_FORMAT","dates","groupedConversation","isOptedOut","defineProperty","moment","utc","toISOString","params","toNumber","fromNumber","smsPhone","getPhone","phone","account","getSmsReceiveParams","results","sms","time","timeReceived","message","incoming","smsSent","getSmsSentParams","timeSent","smsQueue","sendDateTime","isQueued","combineLatest","concat","groupBy","value","groupByDate","messages","push","key","post","Error","body","model","postResult","reset","details_component_decorate","router","inbox_routing_module_InboxRoutingModule","InboxRoutingModule","inbox_routing_module_decorate","imports","forChild","path","component","sms_receive_filter_directive_SmsReceiveFilterDirective","SmsReceiveFilterDirective","sms_receive_filter_directive_decorate","InboxFilterModel","filter_component_FilterComponent","FilterComponent","filterChange","REGEX_MASK","mask","onChange","emit","onUnmask","unmask_control","clear","filter_component_decorate","inbox_module_InboxModule","InboxModule","inbox_module_decorate","common","fesm5_forms","shared_module","declarations","providers"],"mappings":"8EAAAA,EAAAC,QAAA,k1HCcAC,EAAA,WAUE,SAAAC,EAAoBC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AA,EAAAzF,CAAmBiE,IAGrBiB,EAAA7F,UAAAqG,MAAA,SAAMzE,GACJhC,KAAKgF,MAAQ,IAAIe,EACjB/F,KAAKqG,SAASrE,IApBN0E,GAAT3F,OAAAmB,EAAA,OAAAnB,mBAAuBmB,EAAA,kDADb+D,EAAeS,GAL3B3F,OAAAmB,EAAA,UAAAnB,EACCqB,SAAU,qFAIC6D,GAAb,uXCqBAU,EAAA,oBAAAC,KAA2B,OAAdA,EAAWC,GAvBvB9F,OAAAmB,EAAA,SAAAnB,EACCyE,SACEsB,EAAA,aAAcC,EAAA,YAAa1B,EAC3B2B,EAAA,EACA3E,EAAA,qBAEF4E,cACEtH,EACAiG,EACAI,EACA1D,GAEF5C,SACEC,EACAiG,EACAI,EAAiB1D,EAEjB+C,EACA2B,EAAA,EACA3E,EAAA,qBAEF6E,gBAEWN,GAAb,uBCpCAnH,EAAAC,QAAA,suFCAAD,EAAAC,QAAA,+pDCAAD,EAAAC,QAAA,uBCAAD,EAAAC,QAAA,yBCAAD,EAAAC,QAAA","file":"7.cf3d092605e4e70c5ba7.js","sourcesContent":["module.exports = \"/* alt. darker red color: #ee615d */\\n\\n* {\\n box-sizing: border-box;\\n}\\n\\nbody {\\n background: none repeat scroll 0 0 #fff;\\n color: #FFFFFF;\\n font-family: \\\"Open Sans\\\";\\n line-height: 26px;\\n width: 400px;\\n margin: 0 auto;\\n overflow-X: hidden;\\n position: relative;\\n}\\n\\n.left {\\n position: absolute;\\n top: 0;\\n left: 35px;\\n font-size: 18px\\n}\\n\\n.left:after {\\n border: 3px solid #ee5f5b;\\n border-right: 3px solid transparent;\\n border-top: 3px solid transparent;\\n content: \\\" \\\";\\n height: 14px;\\n left: -20px;\\n position: absolute;\\n top: 20px;\\n -webkit-transform: rotate(45deg);\\n transform: rotate(45deg);\\n width: 14px;\\n}\\n\\n.right {\\n position: absolute;\\n top: 0;\\n right: 15px;\\n font-size: 18px\\n}\\n\\n.conversation {}\\n\\n.empty-conversation i {\\n text-align: center;\\n margin: auto;\\n display: block;\\n color: #ccc;\\n}\\n\\n.empty-conversation h2 {\\n text-align: center;\\n margin: auto;\\n display: block;\\n}\\n\\n.header {\\n color: #ee5f5b;\\n background: #eee;\\n border: 1px solid #ccc;\\n border-bottom: 1px solid #bbb;\\n opacity: 0.9;\\n /*box-shadow: 0 1px 2px rgba(1,1,1,0.2);*/\\n height: 60px;\\n text-align: center;\\n font-size: 20px;\\n line-height: 58px;\\n white-space: nowrap;\\n position: absolute;\\n z-index: 1;\\n width: inherit;\\n padding-left: 10px;\\n padding-right: 10px;\\n /*padding: 5px;*/\\n}\\n\\n.header h2 {\\n font-weight: bold;\\n color: #111111;\\n display: inline-block;\\n}\\n\\n.footer {\\n color: #ee5f5b;\\n background: #eee;\\n border: 1px solid #ccc;\\n border-bottom: 1px solid #bbb;\\n opacity: 0.9;\\n /*box-shadow: 0 1px 2px rgba(1,1,1,0.2);*/\\n height: 60px;\\n text-align: center;\\n font-size: 20px;\\n line-height: 58px;\\n white-space: nowrap;\\n position: absolute;\\n z-index: 1;\\n width: inherit;\\n margin-top: -60px;\\n}\\n\\n.footer h2 {\\n font-weight: bold;\\n color: #111111;\\n}\\n\\n.footer input {\\n height: 80%;\\n border-radius: 30px;\\n margin-top: auto;\\n margin-bottom: auto;\\n /*width: 50%;*/\\n}\\n\\n.footer #send {\\n color: #ee5f5b;\\n margin-left: -55px;\\n background-color: transparent;\\n border: none !important;\\n box-shadow: none !important;\\n}\\n\\n#send:focus {\\n outline: none !important;\\n}\\n\\n.messages-wrapper {\\n padding-top: 10px;\\n position: relative;\\n border: 1px solid #ddd;\\n border-top: 0 none;\\n max-height: 400px;\\n overflow-y: auto;\\n}\\n\\n.message {\\n border-radius: 20px 20px 20px 20px;\\n margin: 0 15px 10px;\\n padding: 15px 20px;\\n position: relative;\\n}\\n\\n.message.to {\\n background-color: #ee5f5b;\\n color: #fff;\\n margin-left: 80px;\\n}\\n\\n.message.from {\\n background-color: #E5E4E9;\\n color: #363636;\\n margin-right: 80px;\\n}\\n\\n.message.to+.message.to,\\n.message.from+.message.from {\\n margin-top: -7px;\\n}\\n\\n.message:before {\\n border-color: #ee5f5b;\\n border-radius: 50% 50% 50% 50%;\\n border-style: solid;\\n border-width: 0 20px;\\n bottom: 0;\\n clip: rect(20px, 35px, 42px, 0px);\\n content: \\\" \\\";\\n height: 40px;\\n position: absolute;\\n right: -50px;\\n width: 30px;\\n z-index: -1;\\n}\\n\\n.message.from:before {\\n border-color: #E5E4E9;\\n left: -50px;\\n -webkit-transform: rotateY(180deg);\\n transform: rotateY(180deg);\\n}\\n\\n.indicator-icon {\\n position: absolute;\\n margin-top: -15px;\\n margin-left: 40px;\\n}\"","\nimport {toArray, map, mergeMap, tap} from 'rxjs/operators';\nimport { AfterViewInit, Component, ChangeDetectorRef, OnInit, ViewChild } from '@angular/core';\n\nimport { CoreApiService, TextMsgItApiService } from '@rd/core';\nimport { SmsReceive, SmsReceiveDirective, SmsReceiveModel } from '@rd/sms';\nimport { PagedListComponent } from '../shared';\nimport { InboxFilterModel } from './shared';\n\n@Component({\n selector: 'rd-inbox',\n templateUrl: './inbox.component.html',\n styleUrls: ['./inbox.component.css']\n})\nexport class InboxComponent implements OnInit, AfterViewInit {\n @ViewChild(SmsReceiveDirective) smsReceive: SmsReceiveDirective;\n @ViewChild(PagedListComponent) pagedList: PagedListComponent;\n\n filter: InboxFilterModel;\n page: number = 1;\n pageSize: number = 10;\n totalCount: number;\n smsReceives: SmsReceive[] = [];\n\n constructor(private coreApiSvc: CoreApiService, private changeDetectorRef: ChangeDetectorRef, private textMsgItApiSvc: TextMsgItApiService) { }\n\n ngOnInit() {\n\n }\n\n ngAfterViewInit() {\n // you now have access to smsReceive directive\n this.get();\n }\n\n get(page?: number) {\n return this.smsReceive.get({\n filters: this.filter,\n include: ['sms', 'sms__account'],\n page: page || this.page,\n pageSize: this.pageSize,\n orderBy: '-time_received'\n }).pipe(\n tap(result => this.totalCount = result.count),\n mergeMap(result => result.data),\n map(result => new SmsReceiveModel(result)),\n toArray(),)\n .subscribe((result: any) => { \n this.smsReceives = result;\n });\n }\n\n onFilterChange(newVal: InboxFilterModel) {\n this.filter = newVal;\n console.log('onFilterChange', newVal);\n this.get();\n }\n\n onPageChange(newVal: number) {\n this.page = newVal;\n console.log('onPageChange', newVal);\n this.get();\n } \n\n refetch(event) {\n this.get();\n }\n\n}\n","\nimport {toArray, map, mergeMap, groupBy, combineLatest} from 'rxjs/operators';\nimport { Component, OnInit, ViewChild } from '@angular/core';\nimport { ActivatedRoute, Params } from '@angular/router';\nimport { Observable } from 'rxjs';\n\nimport { MomentFormat, TimezoneService } from '@rd/datetime';\nimport {\n SmsOptOutDirective, SmsPhoneDirective, SmsQueueDirective,\n SmsReceiveDirective, SmsSentDirective, SmsConversationModel,\n SmsReceive, SmsSent, SmsQueue\n} from '@rd/sms';\n\ndeclare var moment;\n\n@Component({\n selector: 'rd-details',\n templateUrl: './details.component.html',\n styleUrls: ['./details.component.css']\n})\nexport class DetailsComponent implements OnInit, MomentFormat {\n @ViewChild(SmsQueueDirective) smsQueue: SmsQueueDirective;\n @ViewChild(SmsPhoneDirective) smsPhone: SmsPhoneDirective;\n @ViewChild(SmsReceiveDirective) smsReceive: SmsReceiveDirective;\n @ViewChild(SmsSentDirective) smsSent: SmsSentDirective;\n\n MOMENT_FORMAT: string = 'MM/DD/YYYY hh:mm a';\n\n account: any;\n dates: any[] = [];\n groupedConversation: any = {};\n message: string;\n phone: any;\n toNumber: string;\n fromNumber: string;\n isOptedOut: boolean = false;\n\n get utcNow() {\n return moment.utc().toISOString();\n }\n\n constructor(private route: ActivatedRoute) { }\n\n ngOnInit() {\n this.route.params.subscribe((params: Params) => {\n this.toNumber = params['toNumber'];\n this.fromNumber = params['fromNumber'];\n this.get();\n this.smsPhone.getPhone(this.toNumber).subscribe(phone => {\n this.phone = phone[0];\n this.account = phone[0] ? phone[0].account : null;\n })\n });\n }\n\n get() {\n let smsReceive = this.smsReceive.get(this.getSmsReceiveParams()).pipe(\n mergeMap(results => results),\n map((result: SmsReceive) => new SmsConversationModel({\n toNumber: result.sms.toNumber,\n fromNumber: result.sms.fromNumber,\n time: result.timeReceived,\n message: result.sms.message,\n incoming: true\n })),\n toArray(),);\n\n let smsSent = this.smsSent.get(this.getSmsSentParams()).pipe(\n mergeMap(results => results),\n map((result: SmsSent) => new SmsConversationModel({\n toNumber: result.sms.toNumber,\n fromNumber: result.sms.fromNumber,\n time: result.timeSent,\n message: result.sms.message,\n incoming: false\n })),\n toArray(),);\n\n let smsQueue = this.smsQueue.get(this.getSmsSentParams()).pipe(\n mergeMap(results => results),\n map((result: SmsQueue) => new SmsConversationModel({\n toNumber: result.sms.toNumber,\n fromNumber: result.sms.fromNumber,\n time: result.sendDateTime,\n message: result.sms.message,\n incoming: false,\n isQueued: true\n })),\n toArray(),);\n\n smsReceive.pipe(combineLatest(smsSent, smsQueue),\n map((result: [SmsConversationModel[], SmsConversationModel[], SmsConversationModel[]]) =>\n result[0].concat(result[1]).concat(result[2])\n ),\n mergeMap(results => results),\n groupBy((value: SmsConversationModel) => {\n return value.groupByDate;\n }),)\n .subscribe((result) => {\n result.pipe(toArray()).subscribe(messages => {\n this.dates.push(result.key);\n this.groupedConversation[result.key] = messages;\n });\n });\n }\n\n post(event?: any) {\n if (!this.smsQueue)\n throw Error('smsQueue directive(s) not found');\n\n let body = this.smsQueue.model;\n body.sendDateTime = moment.utc().toISOString();\n\n return this.smsQueue.post(body)\n .subscribe((postResult: any) => {\n this.reset();\n this.get();\n });\n }\n\n getSmsReceiveParams() {\n return {\n filters: {\n sms: {\n fromNumber: this.fromNumber,\n toNumber: this.toNumber\n }\n },\n include: ['sms']\n };\n }\n\n getSmsSentParams() {\n return {\n filters: {\n sms: {\n toNumber: this.fromNumber,\n fromNumber: this.toNumber\n }\n },\n include: ['sms']\n };\n }\n\n reset() {\n this.dates = [];\n this.groupedConversation = {};\n this.message = null;\n }\n}\n","import { NgModule } from '@angular/core';\nimport { Routes, RouterModule } from '@angular/router';\n\nimport { RdAngularFormsModule } from '@rd/forms';\n\nimport { InboxComponent } from './inbox.component';\nimport { DetailsComponent } from './details';\n\n@NgModule({\n imports: [RouterModule.forChild([\n //{ path: '', redirectTo: 'inbox', pathMatch: 'full' },\n { path: '', component: InboxComponent },\n { path: 'details/:toNumber/:fromNumber', component: DetailsComponent },\n ])],\n exports: [RouterModule]\n})\nexport class InboxRoutingModule { }\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdSmsReceiveFilter]'\n})\nexport class SmsReceiveFilterDirective {\n\n constructor() { }\n\n}\n","import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { unmaskPhoneControl } from '../../../shared/mask/unmask-control';\nimport { REGEX_MASK } from '../../../shared/mask';\n\nexport class InboxFilterModel {\n 'sms__to_number': string = null;\n 'sms__account': number = null;\n}\n\n@Component({\n selector: 'rd-inbox-filter',\n templateUrl: './filter.component.html',\n styleUrls: ['./filter.component.css']\n})\nexport class FilterComponent implements OnInit {\n @Output() filterChange: EventEmitter = new EventEmitter();\n\n model: InboxFilterModel = new InboxFilterModel();\n REGEX_MASK = REGEX_MASK;\n\n constructor() { }\n\n ngOnInit() {\n }\n\n onChange(event){\n this.filterChange.emit(this.model);\n }\n\n onUnmask(model: NgControl) {\n unmaskPhoneControl(model);\n }\n\n clear(event){\n this.model = new InboxFilterModel();\n this.onChange(event);\n }\n \n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\n\nimport { RdAngularCoreModule } from '@rd/core';\n\nimport { SharedModule } from '../shared/shared.module';\nimport { InboxComponent } from './inbox.component';\nimport { InboxRoutingModule } from './inbox-routing.module';\nimport { SmsReceiveFilterDirective } from './shared/sms-receive-filter.directive';\nimport { FilterComponent } from './shared/filter/filter.component';\nimport { DetailsComponent } from './details/details.component';\n\n@NgModule({\n imports: [\n CommonModule, FormsModule, InboxRoutingModule,\n SharedModule,\n RdAngularCoreModule,\n ],\n declarations: [\n InboxComponent,\n SmsReceiveFilterDirective,\n FilterComponent,\n DetailsComponent,\n ],\n exports: [\n InboxComponent,\n SmsReceiveFilterDirective,\n FilterComponent, DetailsComponent,\n\n InboxRoutingModule,\n SharedModule,\n RdAngularCoreModule,\n ],\n providers: [],\n})\nexport class InboxModule { } ","module.exports = \"
\\n\\n \\n\\n
\\n

text reply\\n create a reply to the text message received.\\n

\\n
\\n\\n
\\n
\\n

{{account?.name.toLowerCase()}}\\n {{phone?.label}}\\n

\\n
\\n
\\n\\n \\n
\\n
\\n \\n Messages\\n \\n

{{fromNumber | telephone}}

\\n \\n \\n \\n \\n
\\n\\n
\\n
\\n \\n
\\n
\\n
\\n
{{date}}
\\n
\\n {{conversation.message}}
{{conversation.time | utcToLocalTime: account?.id | async}}
\\n
\\n
\\n
\\n\\n
\\n \\n
\\n
\\n\\n
\\n
\\n\\n
\\n \\n \\n \\n
\\n\\n
\\n\\n
\"","module.exports = \"
\\n\\n \\n \\n \\n\\n
\\n\\n
\\n
\\n

\\n received messages\\n \\n all incoming text messages can be viewed here.\\n \\n

\\n
\\n\\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n \\n\\n \\n \\n \\n \\n \\n \\n \\n \\n
account\\n received\\n \\n to number\\n \\n from number\\n message
\\n view details\\n {{item.sms?.account?.name}}\\n {{item.timeReceived | utcToLocalDateTime: item.sms?.accountId | async}}\\n {{item.sms?.toNumber | telephone}}{{item.sms?.fromNumber | telephone}}{{item.sms?.message}}
\\n\\n \\n\\n
\\n\\n
\\n\\n
\"","module.exports = \"\"","module.exports = \"\"","module.exports = \"
\\n

filters

\\n
\\n
to number:\\n \\n
\\n
\\n account: \\n \\n
\\n\\n
\\n \\n clear\\n
\\n
\\n\\n
\""],"sourceRoot":""}