kwikid-agent-dashboard 0.0.0-watch → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/bundles/kwikid-agent-dashboard.umd.js +1697 -0
  2. package/bundles/kwikid-agent-dashboard.umd.js.map +1 -0
  3. package/esm2015/kwikid-agent-dashboard.js +4 -4
  4. package/esm2015/lib/components/customer-list/customer-list.component.js +109 -121
  5. package/esm2015/lib/components/customer-tile/customer-tile.component.js +113 -107
  6. package/esm2015/lib/components/customer-tile/status-pill/status-pill.component.js +29 -0
  7. package/esm2015/lib/components/customer-tile/status-pill/status-pill.definitions.js +18 -0
  8. package/esm2015/lib/kwikid-agent-dashboard.component.js +549 -166
  9. package/esm2015/lib/kwikid-agent-dashboard.module.js +114 -87
  10. package/esm2015/lib/pipes/search-filter.pipe.js +62 -0
  11. package/esm2015/lib/services/info-window.service.js +185 -183
  12. package/esm2015/lib/services/map.service.js +101 -175
  13. package/esm2015/public_api.js +5 -5
  14. package/fesm2015/kwikid-agent-dashboard.js +1219 -968
  15. package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
  16. package/kwikid-agent-dashboard.d.ts +5 -5
  17. package/lib/components/customer-list/customer-list.component.d.ts +37 -76
  18. package/lib/components/customer-tile/customer-tile.component.d.ts +64 -67
  19. package/lib/components/customer-tile/status-pill/status-pill.component.d.ts +10 -0
  20. package/lib/components/customer-tile/status-pill/status-pill.definitions.d.ts +10 -0
  21. package/lib/kwikid-agent-dashboard.component.d.ts +147 -110
  22. package/lib/kwikid-agent-dashboard.module.d.ts +21 -20
  23. package/lib/pipes/search-filter.pipe.d.ts +25 -0
  24. package/lib/services/info-window.service.d.ts +98 -98
  25. package/lib/services/map.service.d.ts +26 -27
  26. package/package.json +4 -2
  27. package/public_api.d.ts +2 -2
  28. package/esm2015/lib/components/add-customer/add-customer.component.js +0 -66
  29. package/esm2015/lib/components/menu/menu.component.js +0 -34
  30. package/esm2015/lib/services/agent.service.js +0 -47
  31. package/esm2015/lib/services/customer.service.js +0 -20
  32. package/esm2015/lib/shared/interfaces/customer.js +0 -2
  33. package/esm2015/lib/svgs/kyc-pending/kyc-pending.component.js +0 -18
  34. package/esm2015/lib/svgs/kyc-success/kyc-success.component.js +0 -18
  35. package/lib/components/add-customer/add-customer.component.d.ts +0 -16
  36. package/lib/components/menu/menu.component.d.ts +0 -18
  37. package/lib/services/agent.service.d.ts +0 -18
  38. package/lib/services/customer.service.d.ts +0 -9
  39. package/lib/shared/interfaces/customer.d.ts +0 -16
  40. package/lib/svgs/kyc-pending/kyc-pending.component.d.ts +0 -8
  41. package/lib/svgs/kyc-success/kyc-success.component.d.ts +0 -8
@@ -0,0 +1,1697 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/google-maps'), require('@taiga-ui/core'), require('rxjs'), require('rxjs/operators'), require('@angular/common/http'), require('kwikui'), require('@angular/forms'), require('@taiga-ui/cdk'), require('@angular/cdk/scrolling'), require('kwikid-toolkit'), require('@angular/common'), require('kwikid-forms'), require('@taiga-ui/addon-mobile')) :
3
+ typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', '@angular/google-maps', '@taiga-ui/core', 'rxjs', 'rxjs/operators', '@angular/common/http', 'kwikui', '@angular/forms', '@taiga-ui/cdk', '@angular/cdk/scrolling', 'kwikid-toolkit', '@angular/common', 'kwikid-forms', '@taiga-ui/addon-mobile'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.ng.googleMaps, global["@taiga-ui/core"], global.rxjs, global.rxjs.operators, global.ng.common.http, global.i4$1, global.ng.forms, global["@taiga-ui/cdk"], global.ng.cdk.scrolling, global.kwikidToolkit, global.ng.common, global.i6, global["@taiga-ui/addon-mobile"]));
5
+ })(this, (function (exports, i0, i4, i9, rxjs, operators, i2, i4$1, i5$1, i8, i3, kwikidToolkit, i5, i6, addonMobile) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+ var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
27
+ var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
28
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
+ var i4__namespace$1 = /*#__PURE__*/_interopNamespace(i4$1);
30
+ var i5__namespace$1 = /*#__PURE__*/_interopNamespace(i5$1);
31
+ var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
32
+ var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
33
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
34
+ var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
35
+
36
+ /******************************************************************************
37
+ Copyright (c) Microsoft Corporation.
38
+
39
+ Permission to use, copy, modify, and/or distribute this software for any
40
+ purpose with or without fee is hereby granted.
41
+
42
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
43
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
44
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
45
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
46
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
47
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
48
+ PERFORMANCE OF THIS SOFTWARE.
49
+ ***************************************************************************** */
50
+ /* global Reflect, Promise */
51
+ var extendStatics = function (d, b) {
52
+ extendStatics = Object.setPrototypeOf ||
53
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
54
+ function (d, b) { for (var p in b)
55
+ if (Object.prototype.hasOwnProperty.call(b, p))
56
+ d[p] = b[p]; };
57
+ return extendStatics(d, b);
58
+ };
59
+ function __extends(d, b) {
60
+ if (typeof b !== "function" && b !== null)
61
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
62
+ extendStatics(d, b);
63
+ function __() { this.constructor = d; }
64
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
65
+ }
66
+ var __assign = function () {
67
+ __assign = Object.assign || function __assign(t) {
68
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
69
+ s = arguments[i];
70
+ for (var p in s)
71
+ if (Object.prototype.hasOwnProperty.call(s, p))
72
+ t[p] = s[p];
73
+ }
74
+ return t;
75
+ };
76
+ return __assign.apply(this, arguments);
77
+ };
78
+ function __rest(s, e) {
79
+ var t = {};
80
+ for (var p in s)
81
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
82
+ t[p] = s[p];
83
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
84
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
85
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
86
+ t[p[i]] = s[p[i]];
87
+ }
88
+ return t;
89
+ }
90
+ function __decorate(decorators, target, key, desc) {
91
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
92
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
93
+ r = Reflect.decorate(decorators, target, key, desc);
94
+ else
95
+ for (var i = decorators.length - 1; i >= 0; i--)
96
+ if (d = decorators[i])
97
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
98
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
99
+ }
100
+ function __param(paramIndex, decorator) {
101
+ return function (target, key) { decorator(target, key, paramIndex); };
102
+ }
103
+ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
104
+ function accept(f) { if (f !== void 0 && typeof f !== "function")
105
+ throw new TypeError("Function expected"); return f; }
106
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
107
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
108
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
109
+ var _, done = false;
110
+ for (var i = decorators.length - 1; i >= 0; i--) {
111
+ var context = {};
112
+ for (var p in contextIn)
113
+ context[p] = p === "access" ? {} : contextIn[p];
114
+ for (var p in contextIn.access)
115
+ context.access[p] = contextIn.access[p];
116
+ context.addInitializer = function (f) { if (done)
117
+ throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
118
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
119
+ if (kind === "accessor") {
120
+ if (result === void 0)
121
+ continue;
122
+ if (result === null || typeof result !== "object")
123
+ throw new TypeError("Object expected");
124
+ if (_ = accept(result.get))
125
+ descriptor.get = _;
126
+ if (_ = accept(result.set))
127
+ descriptor.set = _;
128
+ if (_ = accept(result.init))
129
+ initializers.push(_);
130
+ }
131
+ else if (_ = accept(result)) {
132
+ if (kind === "field")
133
+ initializers.push(_);
134
+ else
135
+ descriptor[key] = _;
136
+ }
137
+ }
138
+ if (target)
139
+ Object.defineProperty(target, contextIn.name, descriptor);
140
+ done = true;
141
+ }
142
+ ;
143
+ function __runInitializers(thisArg, initializers, value) {
144
+ var useValue = arguments.length > 2;
145
+ for (var i = 0; i < initializers.length; i++) {
146
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
147
+ }
148
+ return useValue ? value : void 0;
149
+ }
150
+ ;
151
+ function __propKey(x) {
152
+ return typeof x === "symbol" ? x : "".concat(x);
153
+ }
154
+ ;
155
+ function __setFunctionName(f, name, prefix) {
156
+ if (typeof name === "symbol")
157
+ name = name.description ? "[".concat(name.description, "]") : "";
158
+ return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
159
+ }
160
+ ;
161
+ function __metadata(metadataKey, metadataValue) {
162
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
163
+ return Reflect.metadata(metadataKey, metadataValue);
164
+ }
165
+ function __awaiter(thisArg, _arguments, P, generator) {
166
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
167
+ return new (P || (P = Promise))(function (resolve, reject) {
168
+ function fulfilled(value) { try {
169
+ step(generator.next(value));
170
+ }
171
+ catch (e) {
172
+ reject(e);
173
+ } }
174
+ function rejected(value) { try {
175
+ step(generator["throw"](value));
176
+ }
177
+ catch (e) {
178
+ reject(e);
179
+ } }
180
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
181
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
182
+ });
183
+ }
184
+ function __generator(thisArg, body) {
185
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
186
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
187
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
188
+ function verb(n) { return function (v) { return step([n, v]); }; }
189
+ function step(op) {
190
+ if (f)
191
+ throw new TypeError("Generator is already executing.");
192
+ while (g && (g = 0, op[0] && (_ = 0)), _)
193
+ try {
194
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
195
+ return t;
196
+ if (y = 0, t)
197
+ op = [op[0] & 2, t.value];
198
+ switch (op[0]) {
199
+ case 0:
200
+ case 1:
201
+ t = op;
202
+ break;
203
+ case 4:
204
+ _.label++;
205
+ return { value: op[1], done: false };
206
+ case 5:
207
+ _.label++;
208
+ y = op[1];
209
+ op = [0];
210
+ continue;
211
+ case 7:
212
+ op = _.ops.pop();
213
+ _.trys.pop();
214
+ continue;
215
+ default:
216
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
217
+ _ = 0;
218
+ continue;
219
+ }
220
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
221
+ _.label = op[1];
222
+ break;
223
+ }
224
+ if (op[0] === 6 && _.label < t[1]) {
225
+ _.label = t[1];
226
+ t = op;
227
+ break;
228
+ }
229
+ if (t && _.label < t[2]) {
230
+ _.label = t[2];
231
+ _.ops.push(op);
232
+ break;
233
+ }
234
+ if (t[2])
235
+ _.ops.pop();
236
+ _.trys.pop();
237
+ continue;
238
+ }
239
+ op = body.call(thisArg, _);
240
+ }
241
+ catch (e) {
242
+ op = [6, e];
243
+ y = 0;
244
+ }
245
+ finally {
246
+ f = t = 0;
247
+ }
248
+ if (op[0] & 5)
249
+ throw op[1];
250
+ return { value: op[0] ? op[1] : void 0, done: true };
251
+ }
252
+ }
253
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
254
+ if (k2 === undefined)
255
+ k2 = k;
256
+ var desc = Object.getOwnPropertyDescriptor(m, k);
257
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
258
+ desc = { enumerable: true, get: function () { return m[k]; } };
259
+ }
260
+ Object.defineProperty(o, k2, desc);
261
+ }) : (function (o, m, k, k2) {
262
+ if (k2 === undefined)
263
+ k2 = k;
264
+ o[k2] = m[k];
265
+ });
266
+ function __exportStar(m, o) {
267
+ for (var p in m)
268
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
269
+ __createBinding(o, m, p);
270
+ }
271
+ function __values(o) {
272
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
273
+ if (m)
274
+ return m.call(o);
275
+ if (o && typeof o.length === "number")
276
+ return {
277
+ next: function () {
278
+ if (o && i >= o.length)
279
+ o = void 0;
280
+ return { value: o && o[i++], done: !o };
281
+ }
282
+ };
283
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
284
+ }
285
+ function __read(o, n) {
286
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
287
+ if (!m)
288
+ return o;
289
+ var i = m.call(o), r, ar = [], e;
290
+ try {
291
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
292
+ ar.push(r.value);
293
+ }
294
+ catch (error) {
295
+ e = { error: error };
296
+ }
297
+ finally {
298
+ try {
299
+ if (r && !r.done && (m = i["return"]))
300
+ m.call(i);
301
+ }
302
+ finally {
303
+ if (e)
304
+ throw e.error;
305
+ }
306
+ }
307
+ return ar;
308
+ }
309
+ /** @deprecated */
310
+ function __spread() {
311
+ for (var ar = [], i = 0; i < arguments.length; i++)
312
+ ar = ar.concat(__read(arguments[i]));
313
+ return ar;
314
+ }
315
+ /** @deprecated */
316
+ function __spreadArrays() {
317
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
318
+ s += arguments[i].length;
319
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
320
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
321
+ r[k] = a[j];
322
+ return r;
323
+ }
324
+ function __spreadArray(to, from, pack) {
325
+ if (pack || arguments.length === 2)
326
+ for (var i = 0, l = from.length, ar; i < l; i++) {
327
+ if (ar || !(i in from)) {
328
+ if (!ar)
329
+ ar = Array.prototype.slice.call(from, 0, i);
330
+ ar[i] = from[i];
331
+ }
332
+ }
333
+ return to.concat(ar || Array.prototype.slice.call(from));
334
+ }
335
+ function __await(v) {
336
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
337
+ }
338
+ function __asyncGenerator(thisArg, _arguments, generator) {
339
+ if (!Symbol.asyncIterator)
340
+ throw new TypeError("Symbol.asyncIterator is not defined.");
341
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
342
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
343
+ function verb(n) { if (g[n])
344
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
345
+ function resume(n, v) { try {
346
+ step(g[n](v));
347
+ }
348
+ catch (e) {
349
+ settle(q[0][3], e);
350
+ } }
351
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
352
+ function fulfill(value) { resume("next", value); }
353
+ function reject(value) { resume("throw", value); }
354
+ function settle(f, v) { if (f(v), q.shift(), q.length)
355
+ resume(q[0][0], q[0][1]); }
356
+ }
357
+ function __asyncDelegator(o) {
358
+ var i, p;
359
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
360
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
361
+ }
362
+ function __asyncValues(o) {
363
+ if (!Symbol.asyncIterator)
364
+ throw new TypeError("Symbol.asyncIterator is not defined.");
365
+ var m = o[Symbol.asyncIterator], i;
366
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
367
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
368
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
369
+ }
370
+ function __makeTemplateObject(cooked, raw) {
371
+ if (Object.defineProperty) {
372
+ Object.defineProperty(cooked, "raw", { value: raw });
373
+ }
374
+ else {
375
+ cooked.raw = raw;
376
+ }
377
+ return cooked;
378
+ }
379
+ ;
380
+ var __setModuleDefault = Object.create ? (function (o, v) {
381
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
382
+ }) : function (o, v) {
383
+ o["default"] = v;
384
+ };
385
+ function __importStar(mod) {
386
+ if (mod && mod.__esModule)
387
+ return mod;
388
+ var result = {};
389
+ if (mod != null)
390
+ for (var k in mod)
391
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
392
+ __createBinding(result, mod, k);
393
+ __setModuleDefault(result, mod);
394
+ return result;
395
+ }
396
+ function __importDefault(mod) {
397
+ return (mod && mod.__esModule) ? mod : { default: mod };
398
+ }
399
+ function __classPrivateFieldGet(receiver, state, kind, f) {
400
+ if (kind === "a" && !f)
401
+ throw new TypeError("Private accessor was defined without a getter");
402
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
403
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
404
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
405
+ }
406
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
407
+ if (kind === "m")
408
+ throw new TypeError("Private method is not writable");
409
+ if (kind === "a" && !f)
410
+ throw new TypeError("Private accessor was defined without a setter");
411
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
412
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
413
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
414
+ }
415
+ function __classPrivateFieldIn(state, receiver) {
416
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
417
+ throw new TypeError("Cannot use 'in' operator on non-object");
418
+ return typeof state === "function" ? receiver === state : state.has(receiver);
419
+ }
420
+
421
+ var MapService = /** @class */ (function () {
422
+ function MapService(mapDirectionsService) {
423
+ this.mapDirectionsService = mapDirectionsService;
424
+ this.markers = [];
425
+ this.directionsRenderOption = {};
426
+ }
427
+ MapService.prototype.getMarkers = function () {
428
+ return this.markers;
429
+ };
430
+ MapService.prototype.setMarkers = function (markers) {
431
+ this.markers = markers;
432
+ };
433
+ MapService.prototype.initMap = function () {
434
+ return __awaiter(this, void 0, void 0, function () {
435
+ var _a;
436
+ return __generator(this, function (_b) {
437
+ switch (_b.label) {
438
+ case 0:
439
+ _a = this;
440
+ return [4 /*yield*/, this.getPosition()];
441
+ case 1:
442
+ _a.myPosition = _b.sent();
443
+ this.map = {
444
+ zoom: 10,
445
+ center: this.myPosition,
446
+ streetViewControl: false,
447
+ mapTypeControl: false,
448
+ fullscreenControl: false,
449
+ zoomControl: false
450
+ };
451
+ return [2 /*return*/];
452
+ }
453
+ });
454
+ });
455
+ };
456
+ MapService.prototype.plotMarkers = function (customers) {
457
+ var _this = this;
458
+ this.markers = [];
459
+ var path = [];
460
+ this.markers.push(this.myPosition);
461
+ customers.map(function (customer) {
462
+ path.push({
463
+ location: _this.getLatLng(customer.task_details.customer_details.location),
464
+ stopover: true
465
+ });
466
+ });
467
+ var request = {
468
+ origin: this.myPosition,
469
+ destination: this.myPosition,
470
+ waypoints: path,
471
+ optimizeWaypoints: true,
472
+ travelMode: google.maps.TravelMode.DRIVING
473
+ };
474
+ this.directionsRenderOption = {
475
+ suppressMarkers: true
476
+ };
477
+ this.directionsResults$ = this.mapDirectionsService
478
+ .route(request)
479
+ .pipe(operators.map(function (response) { return response.result; }));
480
+ this.directionsResults$.subscribe(function (val) {
481
+ customers = _this.sortList(val.routes[0].waypoint_order, customers);
482
+ customers.map(function (customer) {
483
+ _this.markers.push(_this.getLatLng(customer.task_details.customer_details.location));
484
+ });
485
+ });
486
+ return this.directionsResults$;
487
+ };
488
+ MapService.prototype.getPosition = function () {
489
+ return new Promise(function (resolve, reject) {
490
+ navigator.geolocation.watchPosition(function (resp) {
491
+ resolve({
492
+ lng: resp.coords.longitude,
493
+ lat: resp.coords.latitude
494
+ });
495
+ }, function (err) {
496
+ reject(err);
497
+ });
498
+ });
499
+ };
500
+ MapService.prototype.getLatLng = function (data) {
501
+ var url = data.split('@');
502
+ var lat_long_match = url[1].split(',');
503
+ var lat = Number(lat_long_match[0]);
504
+ var long = Number(lat_long_match[1]);
505
+ return { lat: lat, lng: long };
506
+ };
507
+ MapService.prototype.sortList = function (order, customersData) {
508
+ var c = [];
509
+ for (var i = 0; i < customersData.length; i++) {
510
+ var customer = customersData[order[i]];
511
+ c.push(customer);
512
+ }
513
+ return c;
514
+ };
515
+ return MapService;
516
+ }());
517
+ /** @nocollapse */ MapService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, deps: [{ token: i4__namespace.MapDirectionsService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
518
+ /** @nocollapse */ MapService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, providedIn: 'root' });
519
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapService, decorators: [{
520
+ type: i0.Injectable,
521
+ args: [{
522
+ providedIn: 'root'
523
+ }]
524
+ }], ctorParameters: function () { return [{ type: i4__namespace.MapDirectionsService }]; }, propDecorators: { directionsRenders: [{
525
+ type: i0.ViewChildren,
526
+ args: ['directionsRender']
527
+ }] } });
528
+
529
+ var InfoWindowService = /** @class */ (function () {
530
+ function InfoWindowService(mapService) {
531
+ this.mapService = mapService;
532
+ this.config = {
533
+ fields: {
534
+ name: {
535
+ label: 'Name',
536
+ value: 'name',
537
+ display: 'value',
538
+ style: {
539
+ fontSize: '1rem',
540
+ fontWeight: 600
541
+ }
542
+ },
543
+ phone: {
544
+ label: 'Call',
545
+ value: 'phone',
546
+ display: 'label',
547
+ style: {
548
+ fontSize: '0.8rem',
549
+ padding: '0.1rem 0',
550
+ textAlign: 'justify'
551
+ },
552
+ icon: 'https://cdn-icons-png.flaticon.com/512/60/60720.png'
553
+ },
554
+ address: {
555
+ label: 'Directions',
556
+ value: 'address',
557
+ display: 'label',
558
+ style: {
559
+ fontSize: '0.8rem',
560
+ padding: '0.1rem 0'
561
+ },
562
+ icon: 'https://cdn-icons-png.flaticon.com/512/62/62516.png'
563
+ }
564
+ }
565
+ };
566
+ this.mainInfoWindowStyle = {
567
+ display: 'flex',
568
+ 'flex-direction': 'column',
569
+ 'justify-content': 'center',
570
+ 'align-items': 'stretch',
571
+ gap: '0.5rem',
572
+ padding: '0.5rem'
573
+ };
574
+ this.fieldDivStyle = {
575
+ gap: ' 0.5rem',
576
+ display: 'flex',
577
+ 'flex-direction': 'row'
578
+ };
579
+ }
580
+ InfoWindowService.prototype.getOpenMarker = function () {
581
+ return this.openMarker;
582
+ };
583
+ InfoWindowService.prototype.setOpenMarker = function (value) {
584
+ this.openMarker = value;
585
+ };
586
+ /**
587
+ * @description
588
+ * Wrapper method to show Customer Info Window
589
+ *
590
+ * @function showInfo
591
+ * @func showInfo
592
+ * @method showInfo
593
+ */
594
+ InfoWindowService.prototype.showCustomerInformation = function (customer, marker) {
595
+ var map = this.mapService.map;
596
+ var contentString = this.createInfoContent(customer);
597
+ var infowindow = new google.maps.InfoWindow({
598
+ content: contentString
599
+ });
600
+ this.addEventListeners(customer, infowindow);
601
+ this.closeLastOpenedInfoWindow();
602
+ infowindow.open(map, marker);
603
+ this.lastInfoWindowOpened = infowindow;
604
+ this.mapService.map = Object.assign(Object.assign({}, this.mapService.map), { center: marker.getPosition });
605
+ // map.setCenter(marker.getPosition());
606
+ return { infowindow: infowindow };
607
+ };
608
+ InfoWindowService.prototype.addEventListeners = function (customer, infowindow) {
609
+ // chnage -
610
+ var addressLink = "http://maps.google.com/?q=" + customer.extras.loc[0] + ", " + customer.extras.loc[1];
611
+ google.maps.event.addListener(infowindow, 'domready', function () {
612
+ document.getElementById('Call').addEventListener('click', function (e) {
613
+ window.open("tel:" + customer.extras.phone, '_self');
614
+ });
615
+ document
616
+ .getElementById('Directions')
617
+ .addEventListener('click', function (e) {
618
+ window.open("" + addressLink, '_blank');
619
+ });
620
+ document
621
+ .getElementsByClassName('gm-ui-hover-effect')[0]
622
+ .setAttribute('style', ' background: none;\
623
+ display: block; \
624
+ border: 0px; \
625
+ margin: 0px; \
626
+ padding: 0px; \
627
+ text-transform: none; \
628
+ appearance: none; \
629
+ position: absolute; \
630
+ cursor: pointer; \
631
+ user-select: none; \
632
+ top: 0px; \
633
+ right: 0px; \
634
+ width: 30px; \
635
+ height: 30px; \
636
+ ');
637
+ });
638
+ };
639
+ /**
640
+ * @description
641
+ * Wrapper method to close Last Info Window
642
+ *
643
+ * @function closeLastOpenedInfoWindow
644
+ * @func closeLastOpenedInfoWindow
645
+ * @method closeLastOpenedInfoWindow
646
+ */
647
+ InfoWindowService.prototype.closeLastOpenedInfoWindow = function () {
648
+ if (this.lastInfoWindowOpened) {
649
+ this.lastInfoWindowOpened.close();
650
+ }
651
+ };
652
+ /**
653
+ * @description
654
+ * Closes the previously opened info window.
655
+ *
656
+ * @function infoData
657
+ * @func infoData
658
+ * @method infoData
659
+ */
660
+ InfoWindowService.prototype.createInfoContent = function (customer) {
661
+ var content = "<div style='padding:4px; font-family: Manrope;' >";
662
+ content += this.createFields(customer, this.config.fields);
663
+ content += '</div>';
664
+ return content;
665
+ };
666
+ /**
667
+ * @description
668
+ * Wrapper method to create Fields Container
669
+ *
670
+ * @function createFields
671
+ * @func createFields
672
+ * @method createFields
673
+ */
674
+ InfoWindowService.prototype.createFields = function (customer, fields) {
675
+ var e_1, _a;
676
+ var _div = document.createElement('div');
677
+ for (var property in this.mainInfoWindowStyle)
678
+ _div.style[property] = this.mainInfoWindowStyle[property];
679
+ try {
680
+ for (var _b = __values(Object.keys(fields)), _c = _b.next(); !_c.done; _c = _b.next()) {
681
+ var key = _c.value;
682
+ var field = fields[key];
683
+ var _fieldDiv = document.createElement('div');
684
+ _fieldDiv.setAttribute('id', field.label);
685
+ for (var property in this.fieldDivStyle)
686
+ _fieldDiv.style[property] = this.fieldDivStyle[property];
687
+ for (var property in field.style)
688
+ _fieldDiv.style[property] = field.style[property];
689
+ var string = field.display == 'label' ? field.label : customer.extras[field.value];
690
+ if (field.icon) {
691
+ var _icon = document.createElement('img');
692
+ _icon.src = field.icon;
693
+ _icon.style.width = field.style.fontSize;
694
+ _icon.style.height = field.style.fontSize;
695
+ _fieldDiv.appendChild(_icon);
696
+ }
697
+ var _fieldText = document.createElement('div');
698
+ _fieldText.innerHTML = string;
699
+ _fieldDiv.appendChild(_fieldText);
700
+ _div.appendChild(_fieldDiv);
701
+ }
702
+ }
703
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
704
+ finally {
705
+ try {
706
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
707
+ }
708
+ finally { if (e_1) throw e_1.error; }
709
+ }
710
+ return _div.outerHTML;
711
+ };
712
+ return InfoWindowService;
713
+ }());
714
+ /** @nocollapse */ InfoWindowService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, deps: [{ token: MapService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
715
+ /** @nocollapse */ InfoWindowService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, providedIn: 'root' });
716
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: InfoWindowService, decorators: [{
717
+ type: i0.Injectable,
718
+ args: [{
719
+ providedIn: 'root'
720
+ }]
721
+ }], ctorParameters: function () { return [{ type: MapService }]; } });
722
+
723
+ var EStatus;
724
+ (function (EStatus) {
725
+ EStatus["NOT_STARTED"] = "not started";
726
+ EStatus["ON_GOING"] = "on going";
727
+ EStatus["AUDITING"] = "auditing";
728
+ EStatus["REJECTED"] = "rejected";
729
+ EStatus["AFTER_AUDIT"] = "after audit";
730
+ EStatus["COMPLETE"] = "complete";
731
+ })(EStatus || (EStatus = {}));
732
+ var VStatus = [
733
+ EStatus.NOT_STARTED,
734
+ EStatus.ON_GOING,
735
+ EStatus.AUDITING,
736
+ EStatus.REJECTED,
737
+ EStatus.AFTER_AUDIT,
738
+ EStatus.COMPLETE
739
+ ];
740
+
741
+ var StatusPillComponent = /** @class */ (function () {
742
+ function StatusPillComponent() {
743
+ }
744
+ StatusPillComponent.prototype.ngOnInit = function () {
745
+ if (kwikidToolkit.isEmptyValue(this.status)) {
746
+ this.status = EStatus.NOT_STARTED;
747
+ }
748
+ };
749
+ StatusPillComponent.prototype.getStatusPillClass = function (status) {
750
+ var newStatus = status.replace(' ', '-');
751
+ return "status-pill " + newStatus;
752
+ };
753
+ return StatusPillComponent;
754
+ }());
755
+ /** @nocollapse */ StatusPillComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
756
+ /** @nocollapse */ StatusPillComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StatusPillComponent, selector: "status-pill", inputs: { status: "status" }, ngImport: i0__namespace, template: "<div [ngClass]=\"getStatusPillClass(status)\">{{status}}</div>\n", styles: [".status-pill{background-color:#555;padding:.1rem .5rem;border-radius:1rem;font-size:.7rem;color:#fff}.complete{background-color:var(--tui-positive)}.rejected{background-color:var(--tui-negative)}.auditing{background-color:var(--tui-primary)}.on-going{background-color:var(--tui-primary)}.after-audit{background-color:var(--tui-warning-fill);color:#222}\n"], directives: [{ type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
757
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, decorators: [{
758
+ type: i0.Component,
759
+ args: [{
760
+ selector: 'status-pill',
761
+ templateUrl: './status-pill.component.html',
762
+ styleUrls: ['./status-pill.component.css']
763
+ }]
764
+ }], propDecorators: { status: [{
765
+ type: i0.Input
766
+ }] } });
767
+
768
+ var CustomerTileComponent = /** @class */ (function () {
769
+ /**
770
+ * @description
771
+ *
772
+ * @constructor
773
+ */
774
+ function CustomerTileComponent(mapService, infoWindowService) {
775
+ this.mapService = mapService;
776
+ this.infoWindowService = infoWindowService;
777
+ /**
778
+ * @description
779
+ * Determines Customer Data
780
+ *
781
+ * @default
782
+ * `{}`
783
+ */
784
+ this.customer = {};
785
+ /**
786
+ * @description
787
+ * Determines Index of Customer Data in Customer List
788
+ *
789
+ * @default
790
+ *
791
+ */
792
+ this.index = undefined;
793
+ /**
794
+ * @description
795
+ * Emitter to emit next Step
796
+ *
797
+ * @emits KwikIDAgentDashboardComponent#nextStep
798
+ * @fires KwikIDAgentDashboardComponent#nextStep
799
+ */
800
+ this.nextStep = new i0.EventEmitter();
801
+ this.removeTask = new i0.EventEmitter();
802
+ }
803
+ /**
804
+ * @description
805
+ * To set Google Maps API on script
806
+ *
807
+ * @ngOnInit
808
+ */
809
+ CustomerTileComponent.prototype.ngOnInit = function () { };
810
+ CustomerTileComponent.prototype.getTaskDetails = function (taskData) {
811
+ return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
812
+ };
813
+ CustomerTileComponent.prototype.tileClick = function () {
814
+ console.log('Tile Click', this.index);
815
+ if (this.index == this.infoWindowService.getOpenMarker()) {
816
+ this.infoWindowService.setOpenMarker(null);
817
+ //this.infoWindowService.lastInfoWindowOpened.close();
818
+ }
819
+ else {
820
+ this.showDetails(this.customer, this.index);
821
+ }
822
+ };
823
+ /**
824
+ * @description
825
+ * Wrapper method to show Customer Info Window
826
+ *
827
+ * @function showDetails
828
+ * @func showDetails
829
+ * @method showDetails
830
+ */
831
+ CustomerTileComponent.prototype.showDetails = function (customer, index) {
832
+ var markers = this.mapService.getMarkers();
833
+ console.log('Markers', markers);
834
+ var marker = markers[index + 1];
835
+ // let { infowindow } = this.infoWindowService.showCustomerInformation(
836
+ // customer,
837
+ // marker
838
+ // );
839
+ this.infoWindowService.setOpenMarker(index);
840
+ };
841
+ CustomerTileComponent.prototype.goToNextStep = function (e) {
842
+ this.nextStep.emit(e);
843
+ };
844
+ CustomerTileComponent.prototype.handleOnClickRemoveTask = function (task) {
845
+ this.removeTask.emit(task);
846
+ };
847
+ return CustomerTileComponent;
848
+ }());
849
+ /** @nocollapse */ CustomerTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, deps: [{ token: MapService }, { token: InfoWindowService }], target: i0__namespace.ɵɵFactoryTarget.Component });
850
+ /** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index", taskDetails: "taskDetails" }, outputs: { nextStep: "nextStep", removeTask: "removeTask" }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i4.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"customer-tile-wrapper\">\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <div class=\"customer-tile-primary-container-userid\">\n {{ customer.user_id }}\n </div>\n <status-pill [status]=\"customer.session_status\"></status-pill>\n </div>\n <kwikui-button-icon\n [icon]=\"\n index == infoWindowService.getOpenMarker()\n ? 'tuiIconChevronUpLarge'\n : 'tuiIconChevronDownLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"tileClick()\"\n ></kwikui-button-icon>\n </div>\n <div\n [ngClass]=\"\n index == infoWindowService.getOpenMarker()\n ? 'customer-tile-secondary-container'\n : 'data-collasped'\n \"\n >\n <div class=\"customer-tile-secondary-container-data\">\n <div\n *ngFor=\"let taskData of this.taskDetails\"\n class=\"customer-tile-secondary-container-custom-details\"\n >\n {{ getTaskDetails(taskData) }}\n </div>\n </div>\n <div class=\"customer-tile-secondary-container-actions\">\n <kwikui-button-icon\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button-icon>\n <div class=\"customer-tile-secondary-container-journey-buttons\">\n <kwikui-button\n label=\"Share Link\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'share' })\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"customer.session_status !== 'complete'\"\n label=\"Edit Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'edit' })\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"customer.session_status == ''\"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToNextStep({ customer: customer, process: 'kyc' })\"\n ></kwikui-button>\n </div>\n </div>\n </div>\n</div>\n", styles: [".customer-tile-wrapper{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto;grid-gap:.5rem;gap:.5rem;padding:1rem;border-bottom:.5px solid #ddd}.customer-tile-wrapper .customer-tile-primary-container{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;width:100%;height:100%}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data{padding-left:.2rem;grid-gap:.6rem;gap:.6rem;display:flex;flex-direction:row;flex-wrap:wrap;align-content:stretch;justify-content:space-evenly;align-items:center}.customer-tile-wrapper .customer-tile-primary-container .customer-tile-primary-container-data .customer-tile-primary-container-userid{font-weight:500;font-size:1.1rem;line-height:1rem}.customer-tile-wrapper .customer-tile-secondary-container{width:100%;height:100%;display:flex;flex-direction:column;overflow:auto;grid-gap:.5rem;gap:.5rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data{padding:.4rem .2rem;display:flex;flex-direction:column;font-size:.7rem;grid-gap:.3rem;gap:.3rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-data .customer-tile-secondary-container-custom-details{width:100%;height:100%;line-height:.9rem}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions .customer-tile-secondary-container-journey-buttons{padding-right:.2rem;display:flex;flex-direction:row;grid-gap:.8rem;gap:.8rem;align-items:center}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions .customer-tile-secondary-container-journey-buttons .customer-share-link{font-size:.7rem}.customer-tile-wrapper .data-collasped{display:none}\n"], components: [{ type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i4__namespace$1.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: i4__namespace$1.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }], directives: [{ type: i5__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
851
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, decorators: [{
852
+ type: i0.Component,
853
+ args: [{
854
+ selector: 'customer-tile',
855
+ templateUrl: './customer-tile.component.html',
856
+ styleUrls: ['./customer-tile.component.scss']
857
+ }]
858
+ }], ctorParameters: function () { return [{ type: MapService }, { type: InfoWindowService }]; }, propDecorators: { customer: [{
859
+ type: i0.Input
860
+ }], index: [{
861
+ type: i0.Input
862
+ }], taskDetails: [{
863
+ type: i0.Input
864
+ }], nextStep: [{
865
+ type: i0.Output
866
+ }], removeTask: [{
867
+ type: i0.Output
868
+ }], infoWindow: [{
869
+ type: i0.ViewChild,
870
+ args: [i4.MapInfoWindow]
871
+ }] } });
872
+
873
+ var Ng2SearchPipe = /** @class */ (function () {
874
+ function Ng2SearchPipe() {
875
+ }
876
+ /**
877
+ * @param items object from array
878
+ * @param term term's search
879
+ * @param excludes array of strings which will ignored during search
880
+ */
881
+ Ng2SearchPipe.prototype.transform = function (items, term, excludes) {
882
+ if (excludes === void 0) { excludes = []; }
883
+ if (!term || !items)
884
+ return items;
885
+ return Ng2SearchPipe.filter(items, term, excludes);
886
+ };
887
+ /**
888
+ *
889
+ * @param items List of items to filter
890
+ * @param term a string term to compare with every property of the list
891
+ * @param excludes List of keys which will be ignored during search
892
+ *
893
+ */
894
+ Ng2SearchPipe.filter = function (items, term, excludes) {
895
+ var toCompare = term.toLowerCase();
896
+ function checkInside(item, term) {
897
+ if (typeof item === 'string' &&
898
+ item.toString().toLowerCase().includes(toCompare)) {
899
+ return true;
900
+ }
901
+ for (var property in item) {
902
+ if (item[property] === null ||
903
+ item[property] == undefined ||
904
+ excludes.includes(property)) {
905
+ continue;
906
+ }
907
+ if (typeof item[property] === 'object') {
908
+ if (checkInside(item[property], term)) {
909
+ return true;
910
+ }
911
+ }
912
+ else if (item[property].toString().toLowerCase().includes(toCompare)) {
913
+ return true;
914
+ }
915
+ }
916
+ return false;
917
+ }
918
+ return items.filter(function (item) {
919
+ return checkInside(item, term);
920
+ });
921
+ };
922
+ return Ng2SearchPipe;
923
+ }());
924
+ /** @nocollapse */ Ng2SearchPipe.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
925
+ /** @nocollapse */ Ng2SearchPipe.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, name: "filter", pure: false });
926
+ /** @nocollapse */ Ng2SearchPipe.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe });
927
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, decorators: [{
928
+ type: i0.Pipe,
929
+ args: [{
930
+ name: 'filter',
931
+ pure: false
932
+ }]
933
+ }, {
934
+ type: i0.Injectable
935
+ }] });
936
+
937
+ var CustomerListComponent = /** @class */ (function () {
938
+ function CustomerListComponent(mapService) {
939
+ this.mapService = mapService;
940
+ this.nextStep = new i0.EventEmitter();
941
+ this.removeTask = new i0.EventEmitter();
942
+ this.filterTaskList = new i0.EventEmitter();
943
+ this.filteredData = [];
944
+ this.formGroup = new i5$1.FormGroup({});
945
+ this.fromDate = this.getDate(null);
946
+ this.toDate = this.getDate(null);
947
+ this.dateRangeFormControl = new i5$1.FormControl({
948
+ value: new i8.TuiDayRange(new i8.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate()), new i8.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate())),
949
+ disabled: false
950
+ });
951
+ this.formGroup.addControl('dateRange', this.dateRangeFormControl);
952
+ this.searchFormControl = new i5$1.FormControl('');
953
+ this.formGroup.addControl('search', this.searchFormControl);
954
+ }
955
+ CustomerListComponent.prototype.ngOnInit = function () { };
956
+ CustomerListComponent.prototype.ngAfterViewInit = function () {
957
+ var _this = this;
958
+ setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
959
+ var _a;
960
+ return __generator(this, function (_b) {
961
+ switch (_b.label) {
962
+ case 0: return [4 /*yield*/, this.mapService.initMap()];
963
+ case 1:
964
+ _b.sent();
965
+ _a = this;
966
+ return [4 /*yield*/, this.plotMarkers(this.customers)];
967
+ case 2:
968
+ _a.filteredData = _b.sent();
969
+ return [2 /*return*/];
970
+ }
971
+ });
972
+ }); }, 1000);
973
+ };
974
+ CustomerListComponent.prototype.ngOnChanges = function () {
975
+ this.filteredData = this.plotMarkers(this.customers);
976
+ };
977
+ CustomerListComponent.prototype.goToNextStep = function (e) {
978
+ this.nextStep.emit(e);
979
+ };
980
+ CustomerListComponent.prototype.getDate = function (d) {
981
+ var date = d ? new Date(d) : new Date();
982
+ var year = date.getFullYear();
983
+ var month = date.getMonth() + 1;
984
+ var day = date.getDate();
985
+ if (month < 10)
986
+ month = '0' + month;
987
+ if (day < 10)
988
+ day = '0' + day;
989
+ var today = year + "-" + month + "-" + day;
990
+ return today;
991
+ };
992
+ CustomerListComponent.prototype.plotMarkers = function (customers) {
993
+ var _this = this;
994
+ var directionsResults$ = this.mapService.plotMarkers(customers);
995
+ directionsResults$.subscribe(function (val) {
996
+ _this.filteredData = _this.mapService.sortList(val.routes[0].waypoint_order, customers);
997
+ });
998
+ return customers;
999
+ };
1000
+ CustomerListComponent.prototype.getTuiDate = function (event) {
1001
+ var year = event.year;
1002
+ var month = event.month + 1;
1003
+ var date = event.day;
1004
+ month = month < 10 ? '0' + month : month;
1005
+ date = date < 10 ? '0' + date : date;
1006
+ return year + "-" + month + "-" + date;
1007
+ };
1008
+ CustomerListComponent.prototype.onDateRangeChange = function (event) {
1009
+ this.fromDate = this.getTuiDate(event.value.from);
1010
+ this.toDate = this.getTuiDate(event.value.to);
1011
+ this.handleOnFilterTaskList({
1012
+ from_date: this.fromDate,
1013
+ to_date: this.toDate
1014
+ });
1015
+ };
1016
+ CustomerListComponent.prototype.onSearchFilter = function (event) {
1017
+ this.searchText = event.value;
1018
+ };
1019
+ CustomerListComponent.prototype.handleOnClickRemoveTask = function (task) {
1020
+ this.removeTask.emit(task);
1021
+ };
1022
+ CustomerListComponent.prototype.handleOnFilterTaskList = function (filter) {
1023
+ this.filterTaskList.emit(filter);
1024
+ };
1025
+ return CustomerListComponent;
1026
+ }());
1027
+ /** @nocollapse */ CustomerListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, deps: [{ token: MapService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1028
+ /** @nocollapse */ CustomerListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerListComponent, selector: "customer-list", inputs: { customers: "customers", agentConfig: "agentConfig" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", filterTaskList: "filterTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-list-wrapper\">\n <div class=\"customer-list-filter\" [formGroup]=\"formGroup\">\n <kwikui-input-date-range\n [label]=\"'Date Range'\"\n [id]=\"'dateRange'\"\n size=\"m\"\n [formControlName]=\"'dateRange'\"\n [formControl]=\"dateRangeFormControl\"\n (getKeyValue)=\"onDateRangeChange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n [label]=\"'Search'\"\n [id]=\"'search'\"\n icon=\"tuiIconSearch\"\n size=\"m\"\n placeholder=\"Search Any Task\"\n [formControlName]=\"'search'\"\n [formControl]=\"searchFormControl\"\n (getKeyValue)=\"onSearchFilter($event)\"\n ></kwikui-input>\n </div>\n\n <div class=\"customer-task-list\">\n <cdk-virtual-scroll-viewport itemSize=\"1\" class=\"customer-task-list-scroll\">\n <div\n *cdkVirtualFor=\"\n let customer of filteredData | filter: searchText;\n index as index\n \"\n >\n <customer-tile\n class=\"example-item\"\n [customer]=\"customer\"\n [taskDetails]=\"agentConfig?.taskDetails\"\n [index]=\"index\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n ></customer-tile>\n </div>\n </cdk-virtual-scroll-viewport>\n </div>\n\n <div class=\"customer-list-empty\" *ngIf=\"filteredData.length === 0\">\n No Tasks for the given Date.\n </div>\n</div>\n", styles: [".customer-list-wrapper{width:100%;height:100%;display:flex;flex-direction:column}.customer-list-filter{height:-moz-fit-content;height:fit-content;width:100%;display:flex;flex-direction:column;padding:1rem;grid-gap:.8rem;gap:.8rem;border-bottom:.5px solid #ddd}.customer-list-empty{height:100%;width:100%;margin-top:.5rem;font-size:1rem;text-align:center}.customer-task-list{height:100%}.customer-task-list-scroll{height:100%;width:100%}.cdk-virtual-scroll-spacer{height:0!important}.example-item{height:50px}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i4__namespace$1.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["label", "id", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "min", "minLength", "max", "maxLength", "size", "validators", "properties"], outputs: ["getKeyValue"] }, { type: i4__namespace$1.KwikUIInputComponent, selector: "kwikui-input", inputs: ["label", "id", "type", "formControlName", "formControl", "placeholder", "focus", "invalid", "disabled", "validators", "case", "size", "icon", "properties"], outputs: ["getKeyValue"] }, { type: i3__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { type: CustomerTileComponent, selector: "customer-tile", inputs: ["customer", "index", "taskDetails"], outputs: ["nextStep", "removeTask"] }], directives: [{ type: i5__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i5__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i5__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i5__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i3__namespace.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "filter": Ng2SearchPipe } });
1029
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, decorators: [{
1030
+ type: i0.Component,
1031
+ args: [{
1032
+ selector: 'customer-list',
1033
+ templateUrl: './customer-list.component.html',
1034
+ styleUrls: ['./customer-list.component.css']
1035
+ }]
1036
+ }], ctorParameters: function () { return [{ type: MapService }]; }, propDecorators: { customers: [{
1037
+ type: i0.Input
1038
+ }], agentConfig: [{
1039
+ type: i0.Input
1040
+ }], nextStep: [{
1041
+ type: i0.Output
1042
+ }], removeTask: [{
1043
+ type: i0.Output
1044
+ }], filterTaskList: [{
1045
+ type: i0.Output
1046
+ }] } });
1047
+
1048
+ var KwikIDAgentDashboardComponent = /** @class */ (function () {
1049
+ function KwikIDAgentDashboardComponent(mapService, httpClient, hostElement, dialogService) {
1050
+ this.mapService = mapService;
1051
+ this.httpClient = httpClient;
1052
+ this.hostElement = hostElement;
1053
+ this.dialogService = dialogService;
1054
+ this.agentConfig = {};
1055
+ this.taskList = [];
1056
+ this.nextStep = new i0.EventEmitter();
1057
+ this.addTask = new i0.EventEmitter();
1058
+ this.removeTask = new i0.EventEmitter();
1059
+ this.filterTaskList = new i0.EventEmitter();
1060
+ this.loading = true;
1061
+ this.showMapview = true;
1062
+ this.isMobileView = false;
1063
+ this.listOpen = true;
1064
+ this.options = {
1065
+ stops: ['calc(5rem + 74vw)', 'calc(9rem + 74vw)']
1066
+ };
1067
+ this.open = false;
1068
+ this.formConfig = {
1069
+ key: 'ADD_TASK',
1070
+ title: 'Add Task',
1071
+ fields: [
1072
+ {
1073
+ key: 'name',
1074
+ label: 'Customer Name',
1075
+ disabled: false,
1076
+ messages: [],
1077
+ default: {
1078
+ value: {
1079
+ is_found: false,
1080
+ value: '',
1081
+ sources: [
1082
+ {
1083
+ key: 'OBJECT',
1084
+ props: {
1085
+ object: {
1086
+ key: 'ALL_FORMS_DATA',
1087
+ path: '$.ADD_TASK.name'
1088
+ }
1089
+ },
1090
+ value: '',
1091
+ validation: {
1092
+ is_valid: false,
1093
+ triggers: ['ON_INIT'],
1094
+ rules: [
1095
+ {
1096
+ id: '1',
1097
+ key: 'VALUE_CHECK',
1098
+ props: {
1099
+ value: {
1100
+ source: {
1101
+ key: 'OBJECT',
1102
+ props: {
1103
+ object: {
1104
+ key: 'ALL_FORMS_DATA',
1105
+ path: '$.ADD_TASK.name'
1106
+ }
1107
+ }
1108
+ }
1109
+ },
1110
+ pattern: {
1111
+ key: 'IS_NOT_EMPTY'
1112
+ }
1113
+ }
1114
+ }
1115
+ ],
1116
+ actions: [
1117
+ {
1118
+ id: '1',
1119
+ key: 'SET_FIELD_DEFAULT_VALUE',
1120
+ condition: '1',
1121
+ props: {
1122
+ fieldKey: 'name',
1123
+ value: {
1124
+ source: {
1125
+ key: 'OBJECT',
1126
+ props: {
1127
+ object: {
1128
+ key: 'ALL_FORMS_DATA',
1129
+ path: '$.ADD_TASK.name'
1130
+ }
1131
+ }
1132
+ }
1133
+ }
1134
+ }
1135
+ }
1136
+ ]
1137
+ }
1138
+ }
1139
+ ]
1140
+ }
1141
+ },
1142
+ validators: {
1143
+ required: true
1144
+ },
1145
+ properties: {
1146
+ placeholder: 'Please enter the Customer Name',
1147
+ readOnly: false,
1148
+ case: 'default'
1149
+ },
1150
+ type: 'text'
1151
+ },
1152
+ {
1153
+ key: 'phone',
1154
+ label: 'Phone Number',
1155
+ disabled: false,
1156
+ messages: [],
1157
+ default: {
1158
+ value: {
1159
+ is_found: false,
1160
+ value: '',
1161
+ sources: [
1162
+ {
1163
+ key: 'OBJECT',
1164
+ props: {
1165
+ object: {
1166
+ key: 'ALL_FORMS_DATA',
1167
+ path: '$.ADD_TASK.phone'
1168
+ }
1169
+ },
1170
+ value: '',
1171
+ validation: {
1172
+ is_valid: false,
1173
+ triggers: ['ON_INIT'],
1174
+ rules: [
1175
+ {
1176
+ id: '1',
1177
+ key: 'VALUE_CHECK',
1178
+ props: {
1179
+ value: {
1180
+ source: {
1181
+ key: 'OBJECT',
1182
+ props: {
1183
+ object: {
1184
+ key: 'ALL_FORMS_DATA',
1185
+ path: '$.ADD_TASK.phone'
1186
+ }
1187
+ }
1188
+ }
1189
+ },
1190
+ pattern: {
1191
+ key: 'IS_NOT_EMPTY'
1192
+ }
1193
+ }
1194
+ }
1195
+ ],
1196
+ actions: [
1197
+ {
1198
+ id: '1',
1199
+ key: 'SET_FIELD_DEFAULT_VALUE',
1200
+ condition: '1',
1201
+ props: {
1202
+ fieldKey: 'phone',
1203
+ value: {
1204
+ source: {
1205
+ key: 'OBJECT',
1206
+ props: {
1207
+ object: {
1208
+ key: 'ALL_FORMS_DATA',
1209
+ path: '$.ADD_TASK.phone'
1210
+ }
1211
+ }
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ ]
1217
+ }
1218
+ }
1219
+ ]
1220
+ }
1221
+ },
1222
+ validators: {
1223
+ required: true
1224
+ },
1225
+ properties: {
1226
+ placeholder: 'Please enter the Phone Number',
1227
+ readOnly: false,
1228
+ case: 'default'
1229
+ },
1230
+ type: 'number'
1231
+ },
1232
+ {
1233
+ key: 'address',
1234
+ label: 'Address',
1235
+ disabled: false,
1236
+ messages: [],
1237
+ default: {
1238
+ value: {
1239
+ is_found: false,
1240
+ value: '',
1241
+ sources: [
1242
+ {
1243
+ key: 'OBJECT',
1244
+ props: {
1245
+ object: {
1246
+ key: 'ALL_FORMS_DATA',
1247
+ path: '$.ADD_TASK.address'
1248
+ }
1249
+ },
1250
+ value: '',
1251
+ validation: {
1252
+ is_valid: false,
1253
+ triggers: ['ON_INIT'],
1254
+ rules: [
1255
+ {
1256
+ id: '1',
1257
+ key: 'VALUE_CHECK',
1258
+ props: {
1259
+ value: {
1260
+ source: {
1261
+ key: 'OBJECT',
1262
+ props: {
1263
+ object: {
1264
+ key: 'ALL_FORMS_DATA',
1265
+ path: '$.ADD_TASK.address'
1266
+ }
1267
+ }
1268
+ }
1269
+ },
1270
+ pattern: {
1271
+ key: 'IS_NOT_EMPTY'
1272
+ }
1273
+ }
1274
+ }
1275
+ ],
1276
+ actions: [
1277
+ {
1278
+ id: '1',
1279
+ key: 'SET_FIELD_DEFAULT_VALUE',
1280
+ condition: '1',
1281
+ props: {
1282
+ fieldKey: 'address',
1283
+ value: {
1284
+ source: {
1285
+ key: 'OBJECT',
1286
+ props: {
1287
+ object: {
1288
+ key: 'ALL_FORMS_DATA',
1289
+ path: '$.ADD_TASK.address'
1290
+ }
1291
+ }
1292
+ }
1293
+ }
1294
+ }
1295
+ }
1296
+ ]
1297
+ }
1298
+ }
1299
+ ]
1300
+ }
1301
+ },
1302
+ validators: {
1303
+ required: true
1304
+ },
1305
+ properties: {
1306
+ placeholder: 'Please enter the Address',
1307
+ readOnly: false,
1308
+ case: 'default'
1309
+ },
1310
+ type: 'text'
1311
+ },
1312
+ {
1313
+ key: 'city',
1314
+ label: 'City',
1315
+ disabled: false,
1316
+ messages: [],
1317
+ default: {
1318
+ value: {
1319
+ is_found: false,
1320
+ value: '',
1321
+ sources: [
1322
+ {
1323
+ key: 'OBJECT',
1324
+ props: {
1325
+ object: {
1326
+ key: 'ALL_FORMS_DATA',
1327
+ path: '$.ADD_TASK.city'
1328
+ }
1329
+ },
1330
+ value: '',
1331
+ validation: {
1332
+ is_valid: false,
1333
+ triggers: ['ON_INIT'],
1334
+ rules: [
1335
+ {
1336
+ id: '1',
1337
+ key: 'VALUE_CHECK',
1338
+ props: {
1339
+ value: {
1340
+ source: {
1341
+ key: 'OBJECT',
1342
+ props: {
1343
+ object: {
1344
+ key: 'ALL_FORMS_DATA',
1345
+ path: '$.ADD_TASK.city'
1346
+ }
1347
+ }
1348
+ }
1349
+ },
1350
+ pattern: {
1351
+ key: 'IS_NOT_EMPTY'
1352
+ }
1353
+ }
1354
+ }
1355
+ ],
1356
+ actions: [
1357
+ {
1358
+ id: '1',
1359
+ key: 'SET_FIELD_DEFAULT_VALUE',
1360
+ condition: '1',
1361
+ props: {
1362
+ fieldKey: 'city',
1363
+ value: {
1364
+ source: {
1365
+ key: 'OBJECT',
1366
+ props: {
1367
+ object: {
1368
+ key: 'ALL_FORMS_DATA',
1369
+ path: '$.ADD_TASK.city'
1370
+ }
1371
+ }
1372
+ }
1373
+ }
1374
+ }
1375
+ }
1376
+ ]
1377
+ }
1378
+ }
1379
+ ]
1380
+ }
1381
+ },
1382
+ validators: {
1383
+ required: true
1384
+ },
1385
+ properties: {
1386
+ placeholder: 'Please enter the City',
1387
+ readOnly: false,
1388
+ case: 'default'
1389
+ },
1390
+ type: 'text'
1391
+ },
1392
+ {
1393
+ key: 'location',
1394
+ label: 'Location URL',
1395
+ disabled: false,
1396
+ messages: [],
1397
+ default: {
1398
+ value: {
1399
+ is_found: false,
1400
+ value: '',
1401
+ sources: [
1402
+ {
1403
+ key: 'OBJECT',
1404
+ props: {
1405
+ object: {
1406
+ key: 'ALL_FORMS_DATA',
1407
+ path: '$.ADD_TASK.location'
1408
+ }
1409
+ },
1410
+ value: '',
1411
+ validation: {
1412
+ is_valid: false,
1413
+ triggers: ['ON_INIT'],
1414
+ rules: [
1415
+ {
1416
+ id: '1',
1417
+ key: 'VALUE_CHECK',
1418
+ props: {
1419
+ value: {
1420
+ source: {
1421
+ key: 'OBJECT',
1422
+ props: {
1423
+ object: {
1424
+ key: 'ALL_FORMS_DATA',
1425
+ path: '$.ADD_TASK.location'
1426
+ }
1427
+ }
1428
+ }
1429
+ },
1430
+ pattern: {
1431
+ key: 'IS_NOT_EMPTY'
1432
+ }
1433
+ }
1434
+ }
1435
+ ],
1436
+ actions: [
1437
+ {
1438
+ id: '1',
1439
+ key: 'SET_FIELD_DEFAULT_VALUE',
1440
+ condition: '1',
1441
+ props: {
1442
+ fieldKey: 'location',
1443
+ value: {
1444
+ source: {
1445
+ key: 'OBJECT',
1446
+ props: {
1447
+ object: {
1448
+ key: 'ALL_FORMS_DATA',
1449
+ path: '$.ADD_TASK.location'
1450
+ }
1451
+ }
1452
+ }
1453
+ }
1454
+ }
1455
+ }
1456
+ ]
1457
+ }
1458
+ }
1459
+ ]
1460
+ }
1461
+ },
1462
+ validators: {
1463
+ required: true
1464
+ },
1465
+ properties: {
1466
+ placeholder: 'Please enter the Location URL',
1467
+ readOnly: false,
1468
+ case: 'default'
1469
+ },
1470
+ type: 'text'
1471
+ }
1472
+ ],
1473
+ properties: {
1474
+ header: {
1475
+ title: {
1476
+ hidden: true,
1477
+ label: 'Add Task'
1478
+ },
1479
+ steps: {
1480
+ hidden: true
1481
+ }
1482
+ },
1483
+ footer: {
1484
+ viewFormsButton: {
1485
+ hidden: true,
1486
+ label: 'View Forms'
1487
+ },
1488
+ saveButton: {
1489
+ hidden: false,
1490
+ label: 'Submit'
1491
+ }
1492
+ }
1493
+ }
1494
+ };
1495
+ this.allFormsData = {};
1496
+ this.String = String;
1497
+ var DSLScript = document.createElement('script');
1498
+ DSLScript.src = this.agentConfig.googleMapsAPI;
1499
+ DSLScript.type = 'text/javascript';
1500
+ document.body.appendChild(DSLScript);
1501
+ this.apiLoaded = httpClient
1502
+ .jsonp('https://maps.googleapis.com/maps/api/js?key=AIzaSyA63JY0ja6ZGIR796vJqZARc0c2j8Vgpik&v=3.exp&libraries=geometry,drawing,places', 'callback')
1503
+ .pipe(operators.map(function () { return true; }), operators.catchError(function () { return rxjs.of(false); }));
1504
+ }
1505
+ KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
1506
+ this.agentConfig.showMaps == true || this.agentConfig.showMaps == false
1507
+ ? (this.showMapview = this.agentConfig.showMaps)
1508
+ : null;
1509
+ this.loading = false;
1510
+ };
1511
+ KwikIDAgentDashboardComponent.prototype.goToNextStep = function (e) {
1512
+ this.nextStep.emit(e);
1513
+ };
1514
+ KwikIDAgentDashboardComponent.prototype.handleOnClickAddTask = function (task) {
1515
+ this.addTask.emit(task);
1516
+ };
1517
+ KwikIDAgentDashboardComponent.prototype.handleOnClickRemoveTask = function (task) {
1518
+ this.removeTask.emit(task);
1519
+ };
1520
+ KwikIDAgentDashboardComponent.prototype.handleOnFilterTaskList = function (filter) {
1521
+ this.filterTaskList.emit(filter);
1522
+ };
1523
+ KwikIDAgentDashboardComponent.prototype.refresh = function () {
1524
+ window.location.reload();
1525
+ };
1526
+ KwikIDAgentDashboardComponent.prototype.toggleMapview = function () {
1527
+ this.showMapview = !this.showMapview;
1528
+ };
1529
+ KwikIDAgentDashboardComponent.prototype.onClick = function () {
1530
+ this.open = !this.open;
1531
+ };
1532
+ KwikIDAgentDashboardComponent.prototype.onObscured = function (obscured) {
1533
+ if (obscured) {
1534
+ this.open = false;
1535
+ }
1536
+ };
1537
+ KwikIDAgentDashboardComponent.prototype.onActiveZone = function (active) {
1538
+ this.open = active && this.open;
1539
+ };
1540
+ KwikIDAgentDashboardComponent.prototype.showDialog = function (content) {
1541
+ this.dialogService
1542
+ .open(content, { closeable: false, dismissible: false })
1543
+ .subscribe();
1544
+ };
1545
+ KwikIDAgentDashboardComponent.prototype.openInfoWindow = function (marker) {
1546
+ this.infoWindow.open(marker);
1547
+ };
1548
+ KwikIDAgentDashboardComponent.prototype.handleOnClickSaveForm = function (e) {
1549
+ this.handleOnClickAddTask(e.data);
1550
+ };
1551
+ KwikIDAgentDashboardComponent.prototype.handleOnClickViewForms = function (e) { };
1552
+ return KwikIDAgentDashboardComponent;
1553
+ }());
1554
+ /** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [{ token: MapService }, { token: i2__namespace.HttpClient }, { token: i0__namespace.ElementRef }, { token: i9.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1555
+ /** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentConfig: "agentConfig", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList" }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i4.MapInfoWindow, descendants: true }], ngImport: i0__namespace, template: "<div class=\"kwikid-agent-dashboard\" *ngIf=\"!loading\">\n <div class=\"wrapper\">\n <div class=\"dashboard-header\">\n <div class=\"dashboard-header-client-name\">\n <kwikui-button-icon\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button-icon>\n\n {{ agentConfig.clientName }}\n </div>\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button-icon\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"m\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button-icon>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <h2>{{ agentConfig.agentName }}</h2>\n <h4>Agent ID:{{ agentConfig.agentId }}</h4>\n </div>\n <hr />\n <div\n class=\"menu-dropdown-body\"\n tuiGroup\n [collapsed]=\"true\"\n [rounded]=\"false\"\n [orientation]=\"'vertical'\"\n [size]=\"'m'\"\n >\n <kwikui-button\n *ngIf=\"this.agentConfig.showMaps\"\n id=\"\"\n label=\"{{ showMapview ? 'Hide Maps' : 'Show Maps' }}\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n icon=\"{{ showMapview ? 'tuiIconEyeOff' : 'tuiIconEye' }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"toggleMapview()\"\n ></kwikui-button>\n <kwikui-button\n id=\"\"\n label=\"Add Task\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconAddRowLarge'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"showDialog(template)\"\n ></kwikui-button>\n <kwikui-button\n id=\"\"\n label=\"Refresh\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconRefreshCw'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"refresh()\"\n ></kwikui-button>\n </div>\n <hr />\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n id=\"\"\n label=\"Logout\"\n styles=\"\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"mono\"\n [icon]=\"'tuiIconLogOut'\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"goToNextStep('logout')\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"apiLoaded | async\"\n [class]=\"showMapview ? 'map' : 'map-hidden'\"\n >\n <google-map height=\"100%\" width=\"100%\" [options]=\"this.mapService.map\">\n <map-marker\n #marker=\"mapMarker\"\n *ngFor=\"\n let markerPosition of this.mapService.markers;\n let index = index\n \"\n [position]=\"markerPosition\"\n [label]=\"{ text: String(index), color: '#FFF' }\"\n (mapClick)=\"openInfoWindow(marker)\"\n ></map-marker>\n <map-directions-renderer\n *ngIf=\"\n this.mapService.directionsResults$ | async as directionsResults\n \"\n [directions]=\"directionsResults\"\n [options]=\"this.mapService.directionsRenderOption\"\n ></map-directions-renderer>\n <map-info-window>Info Window content</map-info-window>\n </google-map>\n </div>\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"taskList\"\n [agentConfig]=\"agentConfig\"\n (nextStep)=\"goToNextStep($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n</div>\n<div class=\"kwikid-agent-dashboard-loader\" *ngIf=\"loading\">\n <span class=\"loader\"></span>\n</div>\n\n<ng-template #template let-observer>\n <div class=\"add-task-header\">\n <h2>Add Task</h2>\n <kwikui-button-icon\n icon=\"tuiIconX\"\n id=\"\"\n label=\"Close\"\n styles=\"\"\n type=\"button\"\n appearance=\"mono\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"observer.complete()\"\n ></kwikui-button-icon>\n </div>\n <kwikid-form-view\n [formConfig]=\"formConfig\"\n [allFormsData]=\"allFormsData\"\n [isMobileView]=\"true\"\n (onClickViewForms)=\"this.handleOnClickViewForms($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event)\"\n ></kwikid-form-view>\n</ng-template>\n", styles: [".kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%;position:relative}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:column;align-content:center;justify-content:center;align-items:stretch;flex:1;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{width:100%;height:100%;background-color:#fafafa;overflow:hidden}@media screen and (min-width: 600px){.kwikid-agent-dashboard{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;align-content:center;width:100%;height:100%}.kwikid-agent-dashboard .wrapper{width:100%;height:100%;display:flex;flex-direction:column;align-content:center;justify-content:space-between;align-items:stretch}.kwikid-agent-dashboard .wrapper .dashboard-header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.2rem;max-height:max-content;border:1px solid #fafafa;box-shadow:0 2px 10px -6px #000}.kwikid-agent-dashboard .wrapper .dashboard-header .dashboard-header-client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;font-weight:600}.kwikid-agent-dashboard .wrapper .dashboard-body{display:flex;flex-direction:row-reverse;align-content:center;justify-content:center;align-items:stretch;padding:1.5rem;grid-gap:1.5rem;gap:1.5rem;overflow:auto;background-color:#fafafa}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{min-width:300px;max-width:400px;width:100%;height:100%;overflow:hidden;box-shadow:#0000001a 0 4px 6px -1px,#0000000f 0 2px 4px -1px;border-radius:.5rem}}.menu{position:absolute;transition:\"0.15s linear 0s\"}.kwikid-agent-dashboard-loader{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.75);display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;z-index:100}.kwikid-agent-dashboard-loader .loader{width:48px;height:48px;border-radius:50%;display:inline-block;position:relative;border:3px solid;border-color:#fff #fff transparent;box-sizing:border-box;animation:rotation 1s linear infinite}.kwikid-agent-dashboard-loader .loader:after{content:\"\";box-sizing:border-box;position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;border:3px solid;border-color:transparent var(--tui-primary) var(--tui-primary);width:24px;height:24px;border-radius:50%;animation:rotationBack .5s linear infinite;transform-origin:center center}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotationBack{0%{transform:rotate(0)}to{transform:rotate(-360deg)}}.kwikid-agent-dashboard-loader .t-loader{display:none!important}.add-task-header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:.5rem 0 1rem 1rem}:host{width:100%;height:100%}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}.menu-dropdown{display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;grid-gap:.5rem;gap:.5rem;padding:1rem 1.5rem}.menu-dropdown .menu-dropdown-header{display:flex;flex-direction:column;align-content:flex-start;justify-content:space-between;align-items:flex-start;grid-gap:1rem;gap:1rem}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i4__namespace$1.KwikUIButtonIconComponent, selector: "kwikui-button-icon", inputs: ["disabled", "id", "showLoader", "styles", "class", "type", "appearance", "icon", "shape", "size"], outputs: ["onClick"] }, { type: i4__namespace$1.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["disabled", "id", "label", "showLoader", "styles", "class", "type", "appearance", "icon", "iconRight", "shape", "size"], outputs: ["onClick"] }, { type: i4__namespace.GoogleMap, selector: "google-map", inputs: ["height", "width", "center", "zoom", "options", "mapTypeId"], outputs: ["authFailure", "boundsChanged", "centerChanged", "mapClick", "mapDblclick", "mapDrag", "mapDragend", "mapDragstart", "headingChanged", "idle", "maptypeidChanged", "mapMousemove", "mapMouseout", "mapMouseover", "projectionChanged", "mapRightclick", "tilesloaded", "tiltChanged", "zoomChanged"], exportAs: ["googleMap"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers", "agentConfig"], outputs: ["nextStep", "removeTask", "filterTaskList"] }, { type: i6__namespace.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["formConfig", "formData", "isMobileView", "allFormsData"], outputs: ["onClickViewForms", "onClickSaveForm", "onClickApiCall"] }], directives: [{ type: i5__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i9__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i9__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i9__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]:not([tuiDropdownCustomPosition]):not([tuiDropdownSided])" }, { type: i9__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i9__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i5__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4__namespace.MapMarker, selector: "map-marker", inputs: ["title", "position", "label", "clickable", "options", "icon", "visible"], outputs: ["animationChanged", "mapClick", "clickableChanged", "cursorChanged", "mapDblclick", "mapDrag", "mapDragend", "draggableChanged", "mapDragstart", "flatChanged", "iconChanged", "mapMousedown", "mapMouseout", "mapMouseover", "mapMouseup", "positionChanged", "mapRightclick", "shapeChanged", "titleChanged", "visibleChanged", "zindexChanged"], exportAs: ["mapMarker"] }, { type: i4__namespace.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }, { type: i4__namespace.MapInfoWindow, selector: "map-info-window", inputs: ["options", "position"], outputs: ["closeclick", "contentChanged", "domready", "positionChanged", "zindexChanged"], exportAs: ["mapInfoWindow"] }], pipes: { "async": i5__namespace.AsyncPipe } });
1556
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
1557
+ type: i0.Component,
1558
+ args: [{
1559
+ selector: 'kwikid-agent-dashboard',
1560
+ templateUrl: './kwikid-agent-dashboard.component.html',
1561
+ styleUrls: ['./kwikid-agent-dashboard.component.scss']
1562
+ }]
1563
+ }], ctorParameters: function () {
1564
+ return [{ type: MapService }, { type: i2__namespace.HttpClient }, { type: i0__namespace.ElementRef }, { type: i9__namespace.TuiDialogService, decorators: [{
1565
+ type: i0.Inject,
1566
+ args: [i9.TuiDialogService]
1567
+ }] }];
1568
+ }, propDecorators: { agentConfig: [{
1569
+ type: i0.Input
1570
+ }], taskList: [{
1571
+ type: i0.Input
1572
+ }], nextStep: [{
1573
+ type: i0.Output
1574
+ }], addTask: [{
1575
+ type: i0.Output
1576
+ }], removeTask: [{
1577
+ type: i0.Output
1578
+ }], filterTaskList: [{
1579
+ type: i0.Output
1580
+ }], infoWindow: [{
1581
+ type: i0.ViewChild,
1582
+ args: [i4.MapInfoWindow, { static: false }]
1583
+ }] } });
1584
+
1585
+ var KwikIDAgentDashboardModule = /** @class */ (function () {
1586
+ function KwikIDAgentDashboardModule() {
1587
+ }
1588
+ return KwikIDAgentDashboardModule;
1589
+ }());
1590
+ /** @nocollapse */ KwikIDAgentDashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1591
+ /** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent,
1592
+ CustomerListComponent,
1593
+ CustomerTileComponent,
1594
+ Ng2SearchPipe,
1595
+ StatusPillComponent], imports: [i5.CommonModule,
1596
+ i2.HttpClientModule,
1597
+ i5$1.FormsModule,
1598
+ i5$1.ReactiveFormsModule,
1599
+ i4$1.KwikUIButtonModule,
1600
+ i4$1.KwikUIButtonIconModule,
1601
+ i4$1.KwikUIInputModule,
1602
+ i4$1.KwikUIInputDateModule,
1603
+ i4$1.KwikUIInputDateRangeModule,
1604
+ i4$1.KwikUISelectComboboxModule,
1605
+ i4$1.KwikUITableModule,
1606
+ i4$1.KwikUITablePaginationModule,
1607
+ i6.KwikIDFormViewModule,
1608
+ i9.TuiRootModule,
1609
+ i9.TuiDialogModule,
1610
+ i9.TuiDropdownModule,
1611
+ addonMobile.TuiSidebarModule,
1612
+ i8.TuiActiveZoneModule,
1613
+ i9.TuiGroupModule,
1614
+ i9.TuiSvgModule,
1615
+ i3.ScrollingModule,
1616
+ i4.GoogleMapsModule,
1617
+ i2.HttpClientModule,
1618
+ i2.HttpClientJsonpModule], exports: [KwikIDAgentDashboardComponent] });
1619
+ /** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
1620
+ i5.CommonModule,
1621
+ i2.HttpClientModule,
1622
+ i5$1.FormsModule,
1623
+ i5$1.ReactiveFormsModule,
1624
+ i4$1.KwikUIButtonModule,
1625
+ i4$1.KwikUIButtonIconModule,
1626
+ i4$1.KwikUIInputModule,
1627
+ i4$1.KwikUIInputDateModule,
1628
+ i4$1.KwikUIInputDateRangeModule,
1629
+ i4$1.KwikUISelectComboboxModule,
1630
+ i4$1.KwikUITableModule,
1631
+ i4$1.KwikUITablePaginationModule,
1632
+ i6.KwikIDFormViewModule,
1633
+ i9.TuiRootModule,
1634
+ i9.TuiDialogModule,
1635
+ i9.TuiDropdownModule,
1636
+ addonMobile.TuiSidebarModule,
1637
+ i8.TuiActiveZoneModule,
1638
+ i9.TuiGroupModule,
1639
+ i9.TuiSvgModule,
1640
+ i3.ScrollingModule,
1641
+ i4.GoogleMapsModule,
1642
+ i2.HttpClientModule,
1643
+ i2.HttpClientJsonpModule
1644
+ ]] });
1645
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
1646
+ type: i0.NgModule,
1647
+ args: [{
1648
+ declarations: [
1649
+ KwikIDAgentDashboardComponent,
1650
+ CustomerListComponent,
1651
+ CustomerTileComponent,
1652
+ Ng2SearchPipe,
1653
+ StatusPillComponent
1654
+ ],
1655
+ imports: [
1656
+ i5.CommonModule,
1657
+ i2.HttpClientModule,
1658
+ i5$1.FormsModule,
1659
+ i5$1.ReactiveFormsModule,
1660
+ i4$1.KwikUIButtonModule,
1661
+ i4$1.KwikUIButtonIconModule,
1662
+ i4$1.KwikUIInputModule,
1663
+ i4$1.KwikUIInputDateModule,
1664
+ i4$1.KwikUIInputDateRangeModule,
1665
+ i4$1.KwikUISelectComboboxModule,
1666
+ i4$1.KwikUITableModule,
1667
+ i4$1.KwikUITablePaginationModule,
1668
+ i6.KwikIDFormViewModule,
1669
+ i9.TuiRootModule,
1670
+ i9.TuiDialogModule,
1671
+ i9.TuiDropdownModule,
1672
+ addonMobile.TuiSidebarModule,
1673
+ i8.TuiActiveZoneModule,
1674
+ i9.TuiGroupModule,
1675
+ i9.TuiSvgModule,
1676
+ i3.ScrollingModule,
1677
+ i4.GoogleMapsModule,
1678
+ i2.HttpClientModule,
1679
+ i2.HttpClientJsonpModule
1680
+ ],
1681
+ exports: [KwikIDAgentDashboardComponent]
1682
+ }]
1683
+ }] });
1684
+
1685
+ /* kwikid-agent-dashboard */
1686
+
1687
+ /**
1688
+ * Generated bundle index. Do not edit.
1689
+ */
1690
+
1691
+ exports.KwikIDAgentDashboardComponent = KwikIDAgentDashboardComponent;
1692
+ exports.KwikIDAgentDashboardModule = KwikIDAgentDashboardModule;
1693
+
1694
+ Object.defineProperty(exports, '__esModule', { value: true });
1695
+
1696
+ }));
1697
+ //# sourceMappingURL=kwikid-agent-dashboard.umd.js.map