kwikid-agent-dashboard 0.0.38 → 0.0.39

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 (129) hide show
  1. package/bundles/kwikid-agent-dashboard.umd.js +2269 -351
  2. package/bundles/kwikid-agent-dashboard.umd.js.map +1 -1
  3. package/esm2015/lib/kwikid-agent-dashboard.component.js +43 -23
  4. package/esm2015/lib/kwikid-agent-dashboard.module.js +84 -21
  5. package/esm2015/lib/v1/components/action-button/action-button.component.js +91 -0
  6. package/esm2015/lib/v1/components/customer-details/customer-details.component.js +139 -0
  7. package/esm2015/lib/v1/components/customer-list/customer-list.component.js +201 -0
  8. package/esm2015/lib/v1/components/customer-tile/customer-tile.component.js +137 -0
  9. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.component.js +54 -0
  10. package/esm2015/lib/v1/components/customer-tile/status-pill/status-pill.definitions.js +36 -0
  11. package/esm2015/lib/v1/helpers/maps.helpers.js +46 -0
  12. package/esm2015/lib/v1/kwikid-agent-dashboard.component.js +177 -0
  13. package/esm2015/lib/v1/kwikid-agent-dashboard.module.js +120 -0
  14. package/esm2015/lib/v1/pipes/search-filter.pipe.js +62 -0
  15. package/esm2015/lib/v1/services/agent.service.js +149 -0
  16. package/esm2015/lib/v1/services/google-maps.service.js +201 -0
  17. package/esm2015/lib/v1/services/open-street-maps.service.js +252 -0
  18. package/esm2015/lib/v2/components/agent-info/agent-info.component.js +20 -0
  19. package/esm2015/lib/v2/components/agent-info/agent-info.module.js +37 -0
  20. package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.component.js +111 -0
  21. package/esm2015/lib/v2/components/bottom-sheet/bottom-sheet.module.js +41 -0
  22. package/esm2015/lib/v2/components/components.module.js +79 -0
  23. package/esm2015/lib/v2/components/map-view/map-view.component.js +39 -0
  24. package/esm2015/lib/v2/components/map-view/map-view.module.js +37 -0
  25. package/esm2015/lib/v2/components/primary-actions/primary-actions.component.js +65 -0
  26. package/esm2015/lib/v2/components/primary-actions/primary-actions.module.js +54 -0
  27. package/esm2015/lib/v2/components/task-detail/task-detail.component.js +82 -0
  28. package/esm2015/lib/v2/components/task-detail/task-detail.module.js +41 -0
  29. package/esm2015/lib/v2/components/task-item/task-item.component.js +107 -0
  30. package/esm2015/lib/v2/components/task-item/task-item.constant.js +12 -0
  31. package/esm2015/lib/v2/components/task-item/task-item.module.js +45 -0
  32. package/esm2015/lib/v2/components/task-item-status/task-item-status.component.js +51 -0
  33. package/esm2015/lib/v2/components/task-item-status/task-item-status.module.js +19 -0
  34. package/esm2015/lib/v2/components/task-list/task-list.component.js +186 -0
  35. package/esm2015/lib/v2/components/task-list/task-list.module.js +57 -0
  36. package/esm2015/lib/v2/components/task-list-search/task-list-search.component.js +118 -0
  37. package/esm2015/lib/v2/components/task-list-search/task-list-search.module.js +41 -0
  38. package/esm2015/lib/v2/components/task-preview/task-preview.component.js +30 -0
  39. package/esm2015/lib/v2/components/task-preview/task-preview.module.js +37 -0
  40. package/esm2015/lib/v2/helpers/array.helper.js +10 -0
  41. package/esm2015/lib/v2/helpers/date.helplers.js +17 -0
  42. package/esm2015/lib/v2/kwikid-agent-dashboard.component.js +61 -0
  43. package/esm2015/lib/v2/kwikid-agent-dashboard.module.js +45 -0
  44. package/esm2015/lib/v2/layout/layout-body/layout-body.component.js +274 -0
  45. package/esm2015/lib/v2/layout/layout-body/layout-body.module.js +55 -0
  46. package/esm2015/lib/v2/layout/layout-header/layout-header.component.js +60 -0
  47. package/esm2015/lib/v2/layout/layout-header/layout-header.module.js +48 -0
  48. package/esm2015/lib/v2/layout/layout.module.js +18 -0
  49. package/esm2015/lib/v2/pipes/search-filter.pipe.js +62 -0
  50. package/fesm2015/kwikid-agent-dashboard.js +2049 -324
  51. package/fesm2015/kwikid-agent-dashboard.js.map +1 -1
  52. package/lib/kwikid-agent-dashboard.component.d.ts +11 -3
  53. package/lib/kwikid-agent-dashboard.module.d.ts +12 -6
  54. package/lib/v1/components/action-button/action-button.component.d.ts +18 -0
  55. package/lib/v1/components/customer-details/customer-details.component.d.ts +35 -0
  56. package/lib/v1/components/customer-list/customer-list.component.d.ts +55 -0
  57. package/lib/v1/components/customer-tile/customer-tile.component.d.ts +34 -0
  58. package/lib/v1/components/customer-tile/status-pill/status-pill.component.d.ts +15 -0
  59. package/lib/v1/components/customer-tile/status-pill/status-pill.definitions.d.ts +19 -0
  60. package/lib/v1/helpers/maps.helpers.d.ts +3 -0
  61. package/lib/v1/kwikid-agent-dashboard.component.d.ts +54 -0
  62. package/lib/v1/kwikid-agent-dashboard.module.d.ts +23 -0
  63. package/lib/{pipes → v1/pipes}/search-filter.pipe.d.ts +1 -1
  64. package/lib/v1/services/agent.service.d.ts +77 -0
  65. package/lib/v1/services/google-maps.service.d.ts +29 -0
  66. package/lib/v1/services/open-street-maps.service.d.ts +39 -0
  67. package/lib/{components → v2/components}/agent-info/agent-info.component.d.ts +1 -1
  68. package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.component.d.ts +2 -2
  69. package/lib/{components → v2/components}/map-view/map-view.component.d.ts +1 -1
  70. package/lib/{components → v2/components}/primary-actions/primary-actions.component.d.ts +1 -1
  71. package/lib/{components → v2/components}/task-detail/task-detail.component.d.ts +1 -1
  72. package/lib/{components → v2/components}/task-item/task-item.component.d.ts +1 -1
  73. package/lib/{components → v2/components}/task-item-status/task-item-status.component.d.ts +1 -1
  74. package/lib/{components → v2/components}/task-list/task-list.component.d.ts +4 -4
  75. package/lib/{components → v2/components}/task-list-search/task-list-search.component.d.ts +3 -3
  76. package/lib/{components → v2/components}/task-preview/task-preview.component.d.ts +1 -1
  77. package/lib/v2/kwikid-agent-dashboard.component.d.ts +17 -0
  78. package/lib/v2/kwikid-agent-dashboard.module.d.ts +13 -0
  79. package/lib/{layout → v2/layout}/layout-body/layout-body.component.d.ts +3 -3
  80. package/lib/{layout → v2/layout}/layout-header/layout-header.component.d.ts +1 -1
  81. package/lib/v2/pipes/search-filter.pipe.d.ts +25 -0
  82. package/package.json +1 -1
  83. package/esm2015/lib/components/agent-info/agent-info.component.js +0 -20
  84. package/esm2015/lib/components/agent-info/agent-info.module.js +0 -37
  85. package/esm2015/lib/components/bottom-sheet/bottom-sheet.component.js +0 -111
  86. package/esm2015/lib/components/bottom-sheet/bottom-sheet.module.js +0 -41
  87. package/esm2015/lib/components/components.module.js +0 -79
  88. package/esm2015/lib/components/map-view/map-view.component.js +0 -39
  89. package/esm2015/lib/components/map-view/map-view.module.js +0 -37
  90. package/esm2015/lib/components/primary-actions/primary-actions.component.js +0 -65
  91. package/esm2015/lib/components/primary-actions/primary-actions.module.js +0 -54
  92. package/esm2015/lib/components/task-detail/task-detail.component.js +0 -82
  93. package/esm2015/lib/components/task-detail/task-detail.module.js +0 -41
  94. package/esm2015/lib/components/task-item/task-item.component.js +0 -109
  95. package/esm2015/lib/components/task-item/task-item.constant.js +0 -12
  96. package/esm2015/lib/components/task-item/task-item.module.js +0 -45
  97. package/esm2015/lib/components/task-item-status/task-item-status.component.js +0 -51
  98. package/esm2015/lib/components/task-item-status/task-item-status.module.js +0 -19
  99. package/esm2015/lib/components/task-list/task-list.component.js +0 -186
  100. package/esm2015/lib/components/task-list/task-list.module.js +0 -57
  101. package/esm2015/lib/components/task-list-search/task-list-search.component.js +0 -117
  102. package/esm2015/lib/components/task-list-search/task-list-search.module.js +0 -41
  103. package/esm2015/lib/components/task-preview/task-preview.component.js +0 -30
  104. package/esm2015/lib/components/task-preview/task-preview.module.js +0 -37
  105. package/esm2015/lib/helpers/array.helper.js +0 -10
  106. package/esm2015/lib/helpers/date.helplers.js +0 -17
  107. package/esm2015/lib/layout/layout-body/layout-body.component.js +0 -274
  108. package/esm2015/lib/layout/layout-body/layout-body.module.js +0 -55
  109. package/esm2015/lib/layout/layout-header/layout-header.component.js +0 -60
  110. package/esm2015/lib/layout/layout-header/layout-header.module.js +0 -48
  111. package/esm2015/lib/layout/layout.module.js +0 -18
  112. package/esm2015/lib/pipes/search-filter.pipe.js +0 -62
  113. package/lib/{components → v2/components}/agent-info/agent-info.module.d.ts +0 -0
  114. package/lib/{components → v2/components}/bottom-sheet/bottom-sheet.module.d.ts +0 -0
  115. package/lib/{components → v2/components}/components.module.d.ts +0 -0
  116. package/lib/{components → v2/components}/map-view/map-view.module.d.ts +0 -0
  117. package/lib/{components → v2/components}/primary-actions/primary-actions.module.d.ts +0 -0
  118. package/lib/{components → v2/components}/task-detail/task-detail.module.d.ts +0 -0
  119. package/lib/{components → v2/components}/task-item/task-item.constant.d.ts +0 -0
  120. package/lib/{components → v2/components}/task-item/task-item.module.d.ts +0 -0
  121. package/lib/{components → v2/components}/task-item-status/task-item-status.module.d.ts +0 -0
  122. package/lib/{components → v2/components}/task-list/task-list.module.d.ts +0 -0
  123. package/lib/{components → v2/components}/task-list-search/task-list-search.module.d.ts +0 -0
  124. package/lib/{components → v2/components}/task-preview/task-preview.module.d.ts +0 -0
  125. package/lib/{helpers → v2/helpers}/array.helper.d.ts +0 -0
  126. package/lib/{helpers → v2/helpers}/date.helplers.d.ts +1 -1
  127. /package/lib/{layout → v2/layout}/layout-body/layout-body.module.d.ts +0 -0
  128. /package/lib/{layout → v2/layout}/layout-header/layout-header.module.d.ts +0 -0
  129. /package/lib/{layout → v2/layout}/layout.module.d.ts +0 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikui'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/animations'), require('@taiga-ui/addon-preview'), require('kwikid-toolkit'), require('@taiga-ui/kit'), require('@angular/common'), require('@taiga-ui/core/directives/dropdown'), require('kwikid-forms'), require('@angular/forms'), require('@angular/cdk/scrolling')) :
3
- typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', 'kwikui', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/animations', '@taiga-ui/addon-preview', 'kwikid-toolkit', '@taiga-ui/kit', '@angular/common', '@taiga-ui/core/directives/dropdown', 'kwikid-forms', '@angular/forms', '@angular/cdk/scrolling'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.i1, global["@taiga-ui/cdk"], global["@taiga-ui/core"], global.ng.animations, global["@taiga-ui/addon-preview"], global.kwikidToolkit, global["@taiga-ui/kit"], global.ng.common, global.i6, global.i3$2, global.ng.forms, global.ng.cdk.scrolling));
5
- })(this, (function (exports, i0, i1, i2, i3, animations, i8, kwikidToolkit, i1$1, i3$1, i6, i3$2, i2$1, scrolling) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('kwikui'), require('@taiga-ui/cdk'), require('@taiga-ui/core'), require('@angular/animations'), require('@taiga-ui/addon-preview'), require('kwikid-toolkit'), require('@taiga-ui/kit'), require('@angular/common'), require('@taiga-ui/core/directives/dropdown'), require('kwikid-forms'), require('@angular/forms'), require('@angular/google-maps'), require('rxjs/operators'), require('rxjs'), require('@angular/common/http'), require('leaflet'), require('leaflet-routing-machine'), require('@angular/cdk/scrolling'), require('@taiga-ui/addon-mobile')) :
3
+ typeof define === 'function' && define.amd ? define('kwikid-agent-dashboard', ['exports', '@angular/core', 'kwikui', '@taiga-ui/cdk', '@taiga-ui/core', '@angular/animations', '@taiga-ui/addon-preview', 'kwikid-toolkit', '@taiga-ui/kit', '@angular/common', '@taiga-ui/core/directives/dropdown', 'kwikid-forms', '@angular/forms', '@angular/google-maps', 'rxjs/operators', 'rxjs', '@angular/common/http', 'leaflet', 'leaflet-routing-machine', '@angular/cdk/scrolling', '@taiga-ui/addon-mobile'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["kwikid-agent-dashboard"] = {}, global.ng.core, global.i1, global["@taiga-ui/cdk"], global["@taiga-ui/core"], global.ng.animations, global["@taiga-ui/addon-preview"], global.kwikidToolkit, global["@taiga-ui/kit"], global.ng.common, global.i6, global.i3$1, global.ng.forms, global.ng.googleMaps, global.rxjs.operators, global.rxjs, global.ng.common.http, global.L, null, global.ng.cdk.scrolling, global["@taiga-ui/addon-mobile"]));
5
+ })(this, (function (exports, i0, i1, i2, i3, animations, i8, kwikidToolkit, i1$1, i7, i6, i3$1, i2$1, i2$2, operators, rxjs, i3$2, L, leafletRoutingMachine, i5, addonMobile) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -28,10 +28,14 @@
28
28
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
29
29
  var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
30
30
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
- var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
31
+ var i7__namespace = /*#__PURE__*/_interopNamespace(i7);
32
32
  var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
33
- var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
33
+ var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$1);
34
34
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
35
+ var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
36
+ var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$2);
37
+ var L__namespace = /*#__PURE__*/_interopNamespace(L);
38
+ var i5__namespace = /*#__PURE__*/_interopNamespace(i5);
35
39
 
36
40
  /******************************************************************************
37
41
  Copyright (c) Microsoft Corporation.
@@ -538,7 +542,7 @@
538
542
  this.open = active && this.open;
539
543
  };
540
544
  LayoutHeaderComponent.prototype.logout = function () {
541
- this.handleOnClickPerformAction({ type: 'LOGOUT' });
545
+ this.handleOnClickPerformAction({ action: { type: "logout" } });
542
546
  };
543
547
  LayoutHeaderComponent.prototype.handleOnGetTaskList = function (event) {
544
548
  this.onGetTaskList.emit(event);
@@ -549,13 +553,13 @@
549
553
  return LayoutHeaderComponent;
550
554
  }());
551
555
  /** @nocollapse */ LayoutHeaderComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
552
- /** @nocollapse */ LayoutHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutHeaderComponent, selector: "layout-header", inputs: { config: "config", agentInfo: "agentInfo" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<div id=\"header-container\">\n <div id=\"client-information-wrapper\">\n <img id=\"client-logo\" [src]=\"config?.theme?.clientLogo\" />\n </div>\n <div id=\"actions-wrapper\">\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"l\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <div class=\"menu-dropdown-header-agent-name\">\n {{ agentInfo?.agent_name ?? 'Welcome' }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID:\n {{ agentInfo?.agent_id }}\n </div>\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 appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Refresh\"\n [icon]=\"'tuiIconRefreshCw'\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"refreshPage()\"\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)=\"logout()\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n</div>\n", styles: ["#header-container{display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;padding:1rem}#header-container #client-information-wrapper{height:100%;width:100%}#header-container #client-information-wrapper #client-logo{height:100%}#header-container #client-information-wrapper #client-name{height:100%;width:100%;font-size:1.25rem;font-weight:600}#header-container #actions-wrapper{display:flex;flex-direction:row;align-items:center}#header-container #actions-wrapper>*{margin-right:.5rem}.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:.5rem;gap:.5rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i3__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }] });
556
+ /** @nocollapse */ LayoutHeaderComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutHeaderComponent, selector: "layout-header", inputs: { config: "config", agentInfo: "agentInfo" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<div id=\"header-container\">\n <div id=\"client-information-wrapper\">\n <img\n id=\"client-logo\"\n [src]=\"config?.theme?.clientLogo\"\n />\n </div>\n <div id=\"actions-wrapper\">\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconSettingsLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"l\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <div class=\"menu-dropdown-header-agent-name\">\n {{ agentInfo?.agent_name ?? \"Welcome\" }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID:\n {{ agentInfo?.agent_id }}\n </div>\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 appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Refresh\"\n [icon]=\"'tuiIconRefreshCw'\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"refreshPage()\"\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)=\"logout()\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n </div>\n</div>\n", styles: ["#header-container{display:flex;align-items:center;justify-content:space-between;height:100%;width:100%;padding:1rem}#header-container #client-information-wrapper{height:100%;width:100%}#header-container #client-information-wrapper #client-logo{height:100%}#header-container #client-information-wrapper #client-name{height:100%;width:100%;font-size:1.25rem;font-weight:600}#header-container #actions-wrapper{display:flex;flex-direction:row;align-items:center}#header-container #actions-wrapper>*{margin-right:.5rem}.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:.5rem;gap:.5rem}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-name{font-size:1.2rem;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i3__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }] });
553
557
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderComponent, decorators: [{
554
558
  type: i0.Component,
555
559
  args: [{
556
- selector: 'layout-header',
557
- templateUrl: './layout-header.component.html',
558
- styleUrls: ['./layout-header.component.scss']
560
+ selector: "layout-header",
561
+ templateUrl: "./layout-header.component.html",
562
+ styleUrls: ["./layout-header.component.scss"]
559
563
  }]
560
564
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
561
565
  type: i0.Input
@@ -596,7 +600,7 @@
596
600
  }
597
601
  finally { if (e_1) throw e_1.error; }
598
602
  }
599
- if (verifyChange('primaryActionsConfig')) {
603
+ if (verifyChange("primaryActionsConfig")) {
600
604
  this.primaryActionsConfig = changes.primaryActionsConfig.currentValue;
601
605
  this.primaryActionsConfig.map(i2.ALWAYS_FALSE_HANDLER);
602
606
  }
@@ -614,7 +618,7 @@
614
618
  return PrimaryActionsComponent;
615
619
  }());
616
620
  /** @nocollapse */ PrimaryActionsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
617
- /** @nocollapse */ PrimaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PrimaryActionsComponent, selector: "primary-actions", inputs: { primaryActionsConfig: "primaryActionsConfig" }, outputs: { onClickPrimaryAction: "onClickPrimaryAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"primary-actions-container\">\n <tui-items-with-more tuiGroup [itemsLimit]=\"1\">\n <ng-container *ngFor=\"let item of primaryActionsConfig; let index = index\">\n <kwikui-button\n *tuiItem\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: max-content; margin-right: 1rem; box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n <ng-template let-lastIndex tuiMore>\n <tui-hosted-dropdown\n tuiDropdownAlign=\"right\"\n class=\"item\"\n [content]=\"dropdown\"\n >\n <kwikui-button\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n icon=\"tuiIconMoreVertical\"\n styles=\"\n box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\n \"\n ></kwikui-button>\n <ng-template #dropdown>\n <tui-data-list size=\"l\">\n <ng-container\n *ngFor=\"let item of primaryActionsConfig; let index = index\"\n >\n <kwikui-button\n *ngIf=\"index > lastIndex\"\n tuiOption\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: calc(100% - 1rem); margin: 0.5rem;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n </ng-template>\n </tui-items-with-more>\n</div>\n", styles: ["::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#primary-actions-container{width:-moz-fit-content;width:fit-content;margin-left:auto}@media only screen and (max-width: 600px){#primary-actions-container{display:flex;flex-direction:row;flex-wrap:nowrap;grid-gap:1.5rem;gap:1.5rem;align-items:flex-start;justify-content:flex-start}}::ng-deep .t-empty{display:none!important}\n"], components: [{ type: i1__namespace$1.TuiItemsWithMoreComponent, selector: "tui-items-with-more" }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i3__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i3__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }], directives: [{ type: i1__namespace$1.TuiItemsWithMoreDirective, selector: "tui-items-with-more", inputs: ["itemsLimit", "required"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.TuiItemDirective, selector: "[tuiItem]" }, { type: i1__namespace$1.TuiMoreDirective, selector: "[tuiMore]" }, { type: i6__namespace.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
621
+ /** @nocollapse */ PrimaryActionsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PrimaryActionsComponent, selector: "primary-actions", inputs: { primaryActionsConfig: "primaryActionsConfig" }, outputs: { onClickPrimaryAction: "onClickPrimaryAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"primary-actions-container\">\n <tui-items-with-more\n tuiGroup\n [itemsLimit]=\"1\"\n >\n <ng-container *ngFor=\"let item of primaryActionsConfig; let index = index\">\n <kwikui-button\n *tuiItem\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: max-content; margin-right: 1rem; box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n <ng-template\n let-lastIndex\n tuiMore\n >\n <tui-hosted-dropdown\n tuiDropdownAlign=\"right\"\n class=\"item\"\n [content]=\"dropdown\"\n >\n <kwikui-button\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n icon=\"tuiIconMoreVertical\"\n styles=\"\n box-shadow: #32325d40 0 13px 27px -5px, #0000004d 0 8px 16px -8px;\n \"\n ></kwikui-button>\n <ng-template #dropdown>\n <tui-data-list size=\"l\">\n <ng-container\n *ngFor=\"let item of primaryActionsConfig; let index = index\"\n >\n <kwikui-button\n *ngIf=\"index > lastIndex\"\n tuiOption\n [label]=\"item.label\"\n appearance=\"primary\"\n shape=\"rounded\"\n size=\"m\"\n styles=\"width: calc(100% - 1rem); margin: 0.5rem;\"\n [icon]=\"item.props.iconLeft || ''\"\n [iconRight]=\"item.props.iconRight || ''\"\n (onClick)=\"handleOnClickPrimaryAction(item)\"\n ></kwikui-button>\n </ng-container>\n </tui-data-list>\n </ng-template>\n </tui-hosted-dropdown>\n </ng-template>\n </tui-items-with-more>\n</div>\n", styles: ["::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#primary-actions-container{width:-moz-fit-content;width:fit-content;margin-left:auto}@media only screen and (max-width: 600px){#primary-actions-container{display:flex;flex-direction:row;flex-wrap:nowrap;grid-gap:1.5rem;gap:1.5rem;align-items:flex-start;justify-content:flex-start}}::ng-deep .t-empty{display:none!important}\n"], components: [{ type: i1__namespace$1.TuiItemsWithMoreComponent, selector: "tui-items-with-more" }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i3__namespace.TuiHostedDropdownComponent, selector: "tui-hosted-dropdown", inputs: ["content", "sided", "canOpen", "open"], outputs: ["openChange", "focusedChange"] }, { type: i3__namespace.TuiDataListComponent, selector: "tui-data-list", inputs: ["role", "emptyContent", "size"] }], directives: [{ type: i1__namespace$1.TuiItemsWithMoreDirective, selector: "tui-items-with-more", inputs: ["itemsLimit", "required"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.TuiItemDirective, selector: "[tuiItem]" }, { type: i1__namespace$1.TuiMoreDirective, selector: "[tuiMore]" }, { type: i6__namespace.TuiDropdownOptionsDirective, selector: "[tuiDropdownAlign], [tuiDropdownAppearance], [tuiDropdownDirection], [tuiDropdownLimitWidth], [tuiDropdownMinHeight], [tuiDropdownMaxHeight], [tuiDropdownOffset]", inputs: ["tuiDropdownAlign", "tuiDropdownAppearance", "tuiDropdownDirection", "tuiDropdownLimitWidth", "tuiDropdownMinHeight", "tuiDropdownMaxHeight", "tuiDropdownOffset"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
618
622
  __decorate([
619
623
  kwikidToolkit.logMethod
620
624
  ], PrimaryActionsComponent.prototype, "handleOnInitPrimaryActionsConfig", null);
@@ -624,9 +628,9 @@
624
628
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsComponent, decorators: [{
625
629
  type: i0.Component,
626
630
  args: [{
627
- selector: 'primary-actions',
628
- templateUrl: './primary-actions.component.html',
629
- styleUrls: ['./primary-actions.component.scss'],
631
+ selector: "primary-actions",
632
+ templateUrl: "./primary-actions.component.html",
633
+ styleUrls: ["./primary-actions.component.scss"],
630
634
  changeDetection: i0.ChangeDetectionStrategy.OnPush
631
635
  }]
632
636
  }], ctorParameters: function () { return []; }, propDecorators: { primaryActionsConfig: [{
@@ -665,20 +669,20 @@
665
669
  }
666
670
  finally { if (e_1) throw e_1.error; }
667
671
  }
668
- if (verifyChange('mapConfig')) {
672
+ if (verifyChange("mapConfig")) {
669
673
  this.mapConfig = changes.mapConfig.currentValue;
670
674
  }
671
675
  };
672
676
  return MapViewComponent;
673
677
  }());
674
678
  /** @nocollapse */ MapViewComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
675
- /** @nocollapse */ MapViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapViewComponent, selector: "map-view", inputs: { mapConfig: "mapConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"map-view-container\">\n <iframe\n *ngIf=\"!mapConfig?.isMapHidden\"\n src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d942.4620332111369!2d72.89243374854026!3d19.114317185214237!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c90062467355%3A0xbc5e9528a3783c2b!2sBoomerang!5e0!3m2!1sen!2sin!4v1708350741641!5m2!1sen!2sin\"\n width=\"600\"\n height=\"450\"\n style=\"border: 0\"\n allowfullscreen=\"\"\n loading=\"lazy\"\n referrerpolicy=\"no-referrer-when-downgrade\"\n ></iframe>\n</div>\n", styles: [".map-view-container{width:100%;height:100%}.map-view-container iframe{width:100%!important;height:100%!important;position:relative}\n"], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
679
+ /** @nocollapse */ MapViewComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MapViewComponent, selector: "map-view", inputs: { mapConfig: "mapConfig" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"map-view-container\">\n <iframe\n *ngIf=\"!mapConfig?.isMapHidden\"\n src=\"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d942.4620332111369!2d72.89243374854026!3d19.114317185214237!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7c90062467355%3A0xbc5e9528a3783c2b!2sBoomerang!5e0!3m2!1sen!2sin!4v1708350741641!5m2!1sen!2sin\"\n width=\"600\"\n height=\"450\"\n style=\"border: 0\"\n allowfullscreen=\"\"\n loading=\"lazy\"\n referrerpolicy=\"no-referrer-when-downgrade\"\n ></iframe>\n</div>\n", styles: [".map-view-container{width:100%;height:100%}.map-view-container iframe{width:100%!important;height:100%!important;position:relative}\n"], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
676
680
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewComponent, decorators: [{
677
681
  type: i0.Component,
678
682
  args: [{
679
- selector: 'map-view',
680
- templateUrl: './map-view.component.html',
681
- styleUrls: ['./map-view.component.scss']
683
+ selector: "map-view",
684
+ templateUrl: "./map-view.component.html",
685
+ styleUrls: ["./map-view.component.scss"]
682
686
  }]
683
687
  }], ctorParameters: function () { return []; }, propDecorators: { mapConfig: [{
684
688
  type: i0.Input
@@ -687,7 +691,7 @@
687
691
  var TaskItemStatusComponent = /** @class */ (function () {
688
692
  function TaskItemStatusComponent() {
689
693
  this.styles = {};
690
- this.value = '';
694
+ this.value = "";
691
695
  }
692
696
  TaskItemStatusComponent.prototype.ngOnInit = function () {
693
697
  return __awaiter(this, void 0, void 0, function () {
@@ -701,17 +705,17 @@
701
705
  var verifyChange = function (key) {
702
706
  return changes.hasOwnProperty(key) && !changes[key].firstChange;
703
707
  };
704
- if (verifyChange('config')) {
708
+ if (verifyChange("config")) {
705
709
  this.config = changes.config.currentValue;
706
710
  }
707
- if (verifyChange('status')) {
711
+ if (verifyChange("status")) {
708
712
  this.status = changes.status.currentValue;
709
713
  this.setupStatus();
710
714
  }
711
715
  };
712
716
  TaskItemStatusComponent.prototype.setupStatus = function () {
713
717
  var _a, _b;
714
- if (kwikidToolkit.checkObjectPathExists(this.config, 'mapping') &&
718
+ if (kwikidToolkit.checkObjectPathExists(this.config, "mapping") &&
715
719
  kwikidToolkit.checkObjectKeyExists(this.config.mapping, this.status)) {
716
720
  this.styles = this.config.mapping[this.status];
717
721
  this.value =
@@ -721,13 +725,13 @@
721
725
  return TaskItemStatusComponent;
722
726
  }());
723
727
  /** @nocollapse */ TaskItemStatusComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
724
- /** @nocollapse */ TaskItemStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemStatusComponent, selector: "task-item-status", inputs: { config: "config", status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"task-iem-status-container\" [style]=\"styles\">\n {{ value }}\n</div>\n", styles: [".task-iem-status-container{width:-moz-fit-content;width:fit-content;padding:0 .4rem;font-size:.7rem;border-radius:1rem}\n"] });
728
+ /** @nocollapse */ TaskItemStatusComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemStatusComponent, selector: "task-item-status", inputs: { config: "config", status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n class=\"task-iem-status-container\"\n [style]=\"styles\"\n>\n {{ value }}\n</div>\n", styles: [".task-iem-status-container{width:-moz-fit-content;width:fit-content;padding:0 .4rem;font-size:.7rem;border-radius:1rem}\n"] });
725
729
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusComponent, decorators: [{
726
730
  type: i0.Component,
727
731
  args: [{
728
- selector: 'task-item-status',
729
- templateUrl: './task-item-status.component.html',
730
- styleUrls: ['./task-item-status.component.scss']
732
+ selector: "task-item-status",
733
+ templateUrl: "./task-item-status.component.html",
734
+ styleUrls: ["./task-item-status.component.scss"]
731
735
  }]
732
736
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
733
737
  type: i0.Input
@@ -761,7 +765,7 @@
761
765
  TaskDetailComponent.prototype.parseData = function () {
762
766
  var _this = this;
763
767
  var _a, _b, _c, _d, _e, _f, _g, _h;
764
- if (kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.details.data') &&
768
+ if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.data") &&
765
769
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.data) &&
766
770
  Array.isArray(this.config.taskUI.details.data) &&
767
771
  this.config.taskUI.details.data.length > 0) {
@@ -778,14 +782,14 @@
778
782
  TaskDetailComponent.prototype.parseSessionStatus = function () {
779
783
  var _a, _b, _c, _d, _e, _f, _g;
780
784
  if (((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.utilityFlags) === null || _b === void 0 ? void 0 : _b.isShowTaskStatus) &&
781
- kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.details.header.taskStatus.path') &&
785
+ kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.header.taskStatus.path") &&
782
786
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.header.taskStatus.path)) {
783
787
  this.status = kwikidToolkit.getObjectValueFromPath(this.taskDetail.data, (_g = (_f = (_e = (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.taskUI) === null || _d === void 0 ? void 0 : _d.details) === null || _e === void 0 ? void 0 : _e.header) === null || _f === void 0 ? void 0 : _f.taskStatus) === null || _g === void 0 ? void 0 : _g.path);
784
788
  }
785
789
  };
786
790
  TaskDetailComponent.prototype.parseTaskId = function () {
787
791
  var _a, _b, _c, _d, _e;
788
- if (kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.details.header.taskId.path') &&
792
+ if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.details.header.taskId.path") &&
789
793
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.details.header.taskId.path)) {
790
794
  this.taskId = kwikidToolkit.getObjectValueFromPath(this.taskDetail.data, (_e = (_d = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.taskUI) === null || _b === void 0 ? void 0 : _b.details) === null || _c === void 0 ? void 0 : _c.header) === null || _d === void 0 ? void 0 : _d.taskId) === null || _e === void 0 ? void 0 : _e.path);
791
795
  }
@@ -799,13 +803,13 @@
799
803
  return TaskDetailComponent;
800
804
  }());
801
805
  /** @nocollapse */ TaskDetailComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
802
- /** @nocollapse */ TaskDetailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskDetailComponent, selector: "task-detail", inputs: { config: "config", taskDetail: "taskDetail" }, outputs: { onClickCloseTaskDetail: "onClickCloseTaskDetail" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"task-detail-container\">\n <kwikui-button\n appearance=\"primary\"\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickClose($event)\"\n ></kwikui-button>\n\n <div id=\"task-details-title\">{{ title }}</div>\n <div id=\"task-detail-header\">\n <div>{{ taskId }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.details?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n\n <div id=\"task-details-container\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n id=\"task-detail-footer\"\n *ngIf=\"\n config?.taskUI?.details?.action &&\n config?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container *ngFor=\"let action of config?.taskUI?.details?.action\">\n <kwikui-button\n [label]=\"action.label\"\n appearance=\"primary\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action)\"\n ></kwikui-button>\n </ng-container>\n </div>\n</div>\n", styles: ["#task-detail-container{padding:1rem;font-size:1rem;display:flex;flex-direction:column;grid-gap:.5rem;gap:.5rem}#task-details-title{font-weight:600;font-size:1.5rem;margin:.5rem 0}#task-detail-header{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}#task-detail-footer{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
806
+ /** @nocollapse */ TaskDetailComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskDetailComponent, selector: "task-detail", inputs: { config: "config", taskDetail: "taskDetail" }, outputs: { onClickCloseTaskDetail: "onClickCloseTaskDetail" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"task-detail-container\">\n <kwikui-button\n appearance=\"primary\"\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickClose($event)\"\n ></kwikui-button>\n\n <div id=\"task-details-title\">{{ title }}</div>\n <div id=\"task-detail-header\">\n <div>{{ taskId }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.details?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n\n <div id=\"task-details-container\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n id=\"task-detail-footer\"\n *ngIf=\"\n config?.taskUI?.details?.action &&\n config?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container *ngFor=\"let action of config?.taskUI?.details?.action\">\n <kwikui-button\n [label]=\"action.label\"\n appearance=\"primary\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action)\"\n ></kwikui-button>\n </ng-container>\n </div>\n</div>\n", styles: ["#task-detail-container{padding:1rem;font-size:1rem;display:flex;flex-direction:column;grid-gap:.5rem;gap:.5rem}#task-details-title{font-weight:600;font-size:1.5rem;margin:.5rem 0}#task-detail-header{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}#task-detail-footer{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
803
807
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailComponent, decorators: [{
804
808
  type: i0.Component,
805
809
  args: [{
806
- selector: 'task-detail',
807
- templateUrl: './task-detail.component.html',
808
- styleUrls: ['./task-detail.component.scss']
810
+ selector: "task-detail",
811
+ templateUrl: "./task-detail.component.html",
812
+ styleUrls: ["./task-detail.component.scss"]
809
813
  }]
810
814
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
811
815
  type: i0.Input
@@ -860,10 +864,10 @@
860
864
  var deltaY = clientY - this.startY;
861
865
  var newHeight = this.startHeight - deltaY;
862
866
  if (newHeight > this.startHeight) {
863
- this.swipeDirection = 'UP';
867
+ this.swipeDirection = "UP";
864
868
  }
865
869
  if (newHeight < this.startHeight) {
866
- this.swipeDirection = 'DOWN';
870
+ this.swipeDirection = "DOWN";
867
871
  }
868
872
  var maxHeight = window.innerHeight - 180;
869
873
  if (newHeight >= this.minHeight && newHeight <= maxHeight) {
@@ -882,17 +886,17 @@
882
886
  return undefined;
883
887
  };
884
888
  BottomSheetComponent.prototype.removeEventListeners = function () {
885
- document.removeEventListener('mousedown', this.onMouseStart.bind(this));
886
- document.removeEventListener('mousemove', this.onMouseMove.bind(this));
887
- document.removeEventListener('mouseup', this.onMouseEnd.bind(this));
888
- document.removeEventListener('touchend', this.onTouchMove.bind(this));
889
- document.removeEventListener('touchmove', this.onTouchEnd.bind(this));
890
- document.removeEventListener('touchstart', this.onTouchEnd.bind(this));
889
+ document.removeEventListener("mousedown", this.onMouseStart.bind(this));
890
+ document.removeEventListener("mousemove", this.onMouseMove.bind(this));
891
+ document.removeEventListener("mouseup", this.onMouseEnd.bind(this));
892
+ document.removeEventListener("touchend", this.onTouchMove.bind(this));
893
+ document.removeEventListener("touchmove", this.onTouchEnd.bind(this));
894
+ document.removeEventListener("touchstart", this.onTouchEnd.bind(this));
891
895
  };
892
896
  return BottomSheetComponent;
893
897
  }());
894
898
  /** @nocollapse */ BottomSheetComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
895
- /** @nocollapse */ BottomSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BottomSheetComponent, selector: "bottom-sheet", viewQueries: [{ propertyName: "parentElement", first: true, predicate: ["parentElement"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div #parentElement class=\"bottom-sheet\" [style.height.px]=\"height\">\n <div\n class=\"top-holder\"\n (mousedown)=\"onMouseStart($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseEnd($event)\"\n (touchend)=\"onTouchEnd($event)\"\n (touchmove)=\"onTouchMove($event)\"\n (touchstart)=\"onTouchStart($event)\"\n >\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'UP'\"\n src=\"tuiIconChevronUpLarge\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'DOWN'\"\n src=\"tuiIconChevronDownLarge\"\n ></tui-svg>\n <tui-svg *ngIf=\"!isSwipeActive\" src=\"tuiIconHrLarge\"></tui-svg>\n </div>\n <!-- Use ng-content to project content into the component -->\n <div class=\"bottom-sheet-content-container\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".bottom-sheet{position:absolute;bottom:0;left:0;width:100%;background-color:#fff;box-shadow:0 -2px 6px #0000001a;overflow:auto;resize:vertical;border-top-right-radius:1rem;border-top-left-radius:1rem;display:flex;flex-direction:column;z-index:5;padding-top:1rem}.top-holder{width:100%;height:40px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;cursor:grab;z-index:1}.top-holder:focus,.top-holder:focus-within,.top-holder:active{cursor:grabbing}.resize-handle{position:absolute;bottom:0;left:0;width:100%;height:10px;cursor:ns-resize;background-color:transparent}.bottom-sheet-content-container{width:100%;height:100%;position:relative;z-index:1;overflow:auto}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
899
+ /** @nocollapse */ BottomSheetComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: BottomSheetComponent, selector: "bottom-sheet", viewQueries: [{ propertyName: "parentElement", first: true, predicate: ["parentElement"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div\n #parentElement\n class=\"bottom-sheet\"\n [style.height.px]=\"height\"\n>\n <div\n class=\"top-holder\"\n (mousedown)=\"onMouseStart($event)\"\n (mousemove)=\"onMouseMove($event)\"\n (mouseup)=\"onMouseEnd($event)\"\n (touchend)=\"onTouchEnd($event)\"\n (touchmove)=\"onTouchMove($event)\"\n (touchstart)=\"onTouchStart($event)\"\n >\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'UP'\"\n src=\"tuiIconChevronUpLarge\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"isSwipeActive && swipeDirection == 'DOWN'\"\n src=\"tuiIconChevronDownLarge\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isSwipeActive\"\n src=\"tuiIconHrLarge\"\n ></tui-svg>\n </div>\n <!-- Use ng-content to project content into the component -->\n <div class=\"bottom-sheet-content-container\">\n <ng-content></ng-content>\n </div>\n</div>\n", styles: [".bottom-sheet{position:absolute;bottom:0;left:0;width:100%;background-color:#fff;box-shadow:0 -2px 6px #0000001a;overflow:auto;resize:vertical;border-top-right-radius:1rem;border-top-left-radius:1rem;display:flex;flex-direction:column;z-index:5;padding-top:1rem}.top-holder{width:100%;height:40px;display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center;cursor:grab;z-index:1}.top-holder:focus,.top-holder:focus-within,.top-holder:active{cursor:grabbing}.resize-handle{position:absolute;bottom:0;left:0;width:100%;height:10px;cursor:ns-resize;background-color:transparent}.bottom-sheet-content-container{width:100%;height:100%;position:relative;z-index:1;overflow:auto}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
896
900
  __decorate([
897
901
  kwikidToolkit.logMethod
898
902
  ], BottomSheetComponent.prototype, "onMouseStart", null);
@@ -914,15 +918,19 @@
914
918
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetComponent, decorators: [{
915
919
  type: i0.Component,
916
920
  args: [{
917
- selector: 'bottom-sheet',
918
- templateUrl: './bottom-sheet.component.html',
919
- styleUrls: ['./bottom-sheet.component.scss']
921
+ selector: "bottom-sheet",
922
+ templateUrl: "./bottom-sheet.component.html",
923
+ styleUrls: ["./bottom-sheet.component.scss"]
920
924
  }]
921
925
  }], ctorParameters: function () { return []; }, propDecorators: { parentElement: [{
922
926
  type: i0.ViewChild,
923
- args: ['parentElement', { static: true }]
927
+ args: ["parentElement", { static: true }]
924
928
  }], onMouseStart: [], onMouseEnd: [], onTouchStart: [], onTouchMove: [], onTouchEnd: [], preventMouseOrTouchEvents: [] } });
925
929
 
930
+ var padZeroValuesInStart = function (value, digits) {
931
+ if (digits === void 0) { digits = 2; }
932
+ return String(value).padStart(digits, "0");
933
+ };
926
934
  var convertKwikUIDateToStringFormat = function (event) {
927
935
  var year = event.year;
928
936
  var month = padZeroValuesInStart(event.month + 1, 2);
@@ -936,10 +944,6 @@
936
944
  var day = padZeroValuesInStart(date.getDate());
937
945
  return year + "-" + month + "-" + day;
938
946
  };
939
- var padZeroValuesInStart = function (value, digits) {
940
- if (digits === void 0) { digits = 2; }
941
- return String(value).padStart(digits, '0');
942
- };
943
947
 
944
948
  var sortItems = function (data, key, sortInAscendingOrder) {
945
949
  if (!data || data.length === 0) {
@@ -954,7 +958,7 @@
954
958
  var TaskListSearchComponent = /** @class */ (function () {
955
959
  function TaskListSearchComponent() {
956
960
  // Search Text
957
- this.searchText = '';
961
+ this.searchText = "";
958
962
  this.formGroup = new i2$1.FormGroup({});
959
963
  this.sortInAscendingOrder = true;
960
964
  // Date Range Values
@@ -962,7 +966,7 @@
962
966
  this.end_time = undefined;
963
967
  this.max = new i2.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
964
968
  // Sorting Variables
965
- this.sortFilterOptions = ['name', 'session_status', 'mobile_number'];
969
+ this.sortFilterOptions = ["name", "session_status", "mobile_number"];
966
970
  this.activeSearchAction = undefined;
967
971
  this.onFilterTasksByText = new i0.EventEmitter();
968
972
  this.onFilterTasksByDate = new i0.EventEmitter();
@@ -993,7 +997,7 @@
993
997
  value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
994
998
  disabled: false
995
999
  });
996
- this.formGroup.addControl('search-date', this.searchDateFormControl);
1000
+ this.formGroup.addControl("search-date", this.searchDateFormControl);
997
1001
  this.start_time = convertNormalDateToStringFormat(startDate);
998
1002
  this.end_time = convertNormalDateToStringFormat(null);
999
1003
  // To get Tasks for First Time
@@ -1003,12 +1007,13 @@
1003
1007
  });
1004
1008
  };
1005
1009
  TaskListSearchComponent.prototype.handleSearchAndSortFormControls = function () {
1006
- var _a, _b;
1007
- this.searchTextFormControl = new i2$1.FormControl('');
1008
- this.formGroup.addControl('search-text', this.searchTextFormControl);
1009
- this.sortFilterKeyFormControl = new i2$1.FormControl('');
1010
- this.formGroup.addControl('sort-filter', this.sortFilterKeyFormControl);
1011
- this.sortFilterOptions = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.extendedFlags) === null || _b === void 0 ? void 0 : _b.sortFilterKeys;
1010
+ var _a, _b, _c;
1011
+ this.searchTextFormControl = new i2$1.FormControl("");
1012
+ this.formGroup.addControl("search-text", this.searchTextFormControl);
1013
+ this.sortFilterKeyFormControl = new i2$1.FormControl("");
1014
+ this.formGroup.addControl("sort-filter", this.sortFilterKeyFormControl);
1015
+ this.sortFilterOptions =
1016
+ (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.extendedFlags) === null || _b === void 0 ? void 0 : _b.sortFilterKeys) !== null && _c !== void 0 ? _c : this.sortFilterOptions;
1012
1017
  };
1013
1018
  TaskListSearchComponent.prototype.handleOnChangeSearchText = function (event) {
1014
1019
  this.onFilterTasksByText.emit({ text: event.value });
@@ -1037,16 +1042,16 @@
1037
1042
  return TaskListSearchComponent;
1038
1043
  }());
1039
1044
  /** @nocollapse */ TaskListSearchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1040
- /** @nocollapse */ TaskListSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListSearchComponent, selector: "task-list-search", inputs: { config: "config" }, outputs: { onFilterTasksByText: "onFilterTasksByText", onFilterTasksByDate: "onFilterTasksByDate", onChangeSortFilter: "onChangeSortFilter" }, ngImport: i0__namespace, template: "<div class=\"task-list-search-container\" [formGroup]=\"formGroup\">\n <div class=\"task-list-search-icons\">\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconSearchLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-text')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconCalendarLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-date')\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"config?.utilityFlags?.isAllowSortTasks\"\n appearance=\"mono\"\n icon=\"tuiIconFilterLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('sort-filter')\"\n ></kwikui-button>\n </div>\n\n <div class=\"task-list-search-action\" *ngIf=\"activeSearchAction\">\n <kwikui-input-date-range\n *ngIf=\"activeSearchAction == 'search-date'\"\n class=\"task-list-date-box\"\n label=\"Search by Date Range\"\n id=\"dateRange\"\n size=\"m\"\n [max]=\"max\"\n [maxLength]=\"maxLength\"\n formControlName=\"search-date\"\n [formControl]=\"searchDateFormControl\"\n (getKeyValue)=\"handleOnChangeDateRange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n *ngIf=\"activeSearchAction == 'search-text'\"\n label=\"Search\"\n id=\"search\"\n icon=\"tuiIconSearch\"\n placeholder=\"Search any task from here\"\n size=\"m\"\n [formControl]=\"searchTextFormControl\"\n formControlName=\"search-text\"\n (getKeyValue)=\"handleOnChangeSearchText($event)\"\n ></kwikui-input>\n\n <div\n *ngIf=\"activeSearchAction == 'sort-filter'\"\n class=\"task-list-sort-action\"\n >\n <kwikui-button\n appearance=\"outline\"\n [icon]=\"\n sortInAscendingOrder\n ? 'tuiIconChevronsUpLarge'\n : 'tuiIconChevronsDownLarge'\n \"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickChangeSortOrder()\"\n ></kwikui-button>\n <kwikui-input-select\n class=\"task-list-sort-key\"\n formControlName=\"sort-filter\"\n label=\"Sort By Key\"\n size=\"m\"\n [formControl]=\"sortFilterKeyFormControl\"\n [options]=\"sortFilterOptions\"\n [searchable]=\"false\"\n (getKeyValue)=\"handleOnChangeSortFilter($event)\"\n ></kwikui-input-select>\n </div>\n </div>\n</div>\n", styles: [".task-list-search-container{width:100%}.task-list-search-container .task-list-search-icons{display:flex;justify-content:flex-end;align-items:center;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action{margin-top:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action .task-list-sort-key{flex:1}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxLength", "min", "minLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }], directives: [{ type: i2__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1045
+ /** @nocollapse */ TaskListSearchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListSearchComponent, selector: "task-list-search", inputs: { config: "config" }, outputs: { onFilterTasksByText: "onFilterTasksByText", onFilterTasksByDate: "onFilterTasksByDate", onChangeSortFilter: "onChangeSortFilter" }, ngImport: i0__namespace, template: "<div\n class=\"task-list-search-container\"\n [formGroup]=\"formGroup\"\n>\n <div class=\"task-list-search-icons\">\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconSearchLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-text')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconCalendarLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-date')\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"config?.utilityFlags?.isAllowSortTasks\"\n appearance=\"mono\"\n icon=\"tuiIconFilterLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('sort-filter')\"\n ></kwikui-button>\n </div>\n\n <div\n class=\"task-list-search-action\"\n *ngIf=\"activeSearchAction\"\n >\n <kwikui-input-date-range\n *ngIf=\"activeSearchAction == 'search-date'\"\n class=\"task-list-date-box\"\n label=\"Search by Date Range\"\n id=\"dateRange\"\n size=\"m\"\n [max]=\"max\"\n [maxLength]=\"maxLength\"\n formControlName=\"search-date\"\n [formControl]=\"searchDateFormControl\"\n (getKeyValue)=\"handleOnChangeDateRange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n *ngIf=\"activeSearchAction == 'search-text'\"\n label=\"Search\"\n id=\"search\"\n icon=\"tuiIconSearch\"\n placeholder=\"Search any task from here\"\n size=\"m\"\n [formControl]=\"searchTextFormControl\"\n formControlName=\"search-text\"\n (getKeyValue)=\"handleOnChangeSearchText($event)\"\n ></kwikui-input>\n\n <div\n *ngIf=\"activeSearchAction == 'sort-filter'\"\n class=\"task-list-sort-action\"\n >\n <kwikui-button\n appearance=\"outline\"\n [icon]=\"\n sortInAscendingOrder\n ? 'tuiIconChevronsUpLarge'\n : 'tuiIconChevronsDownLarge'\n \"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickChangeSortOrder()\"\n ></kwikui-button>\n <kwikui-input-select\n class=\"task-list-sort-key\"\n formControlName=\"sort-filter\"\n label=\"Sort By Key\"\n size=\"m\"\n [formControl]=\"sortFilterKeyFormControl\"\n [options]=\"sortFilterOptions\"\n [searchable]=\"false\"\n (getKeyValue)=\"handleOnChangeSortFilter($event)\"\n ></kwikui-input-select>\n </div>\n </div>\n</div>\n", styles: [".task-list-search-container{width:100%}.task-list-search-container .task-list-search-icons{display:flex;justify-content:flex-end;align-items:center;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action{margin-top:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}.task-list-search-container .task-list-search-action .task-list-sort-action .task-list-sort-key{flex:1}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxLength", "min", "minLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }], directives: [{ type: i2__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1041
1046
  __decorate([
1042
1047
  kwikidToolkit.logMethod
1043
1048
  ], TaskListSearchComponent.prototype, "handleOnChangeSearchText", null);
1044
1049
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchComponent, decorators: [{
1045
1050
  type: i0.Component,
1046
1051
  args: [{
1047
- selector: 'task-list-search',
1048
- templateUrl: './task-list-search.component.html',
1049
- styleUrls: ['./task-list-search.component.scss'],
1052
+ selector: "task-list-search",
1053
+ templateUrl: "./task-list-search.component.html",
1054
+ styleUrls: ["./task-list-search.component.scss"],
1050
1055
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1051
1056
  }]
1052
1057
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
@@ -1060,9 +1065,9 @@
1060
1065
  }], handleOnChangeSearchText: [] } });
1061
1066
 
1062
1067
  var PREVIEW_DATA_DEFAULT_CONFIG = {
1063
- separator: ':',
1064
- orientation: 'horizontal',
1065
- placeholder: '-',
1068
+ separator: ":",
1069
+ orientation: "horizontal",
1070
+ placeholder: "-",
1066
1071
  customStyles: {
1067
1072
  label: {},
1068
1073
  value: {},
@@ -1075,8 +1080,8 @@
1075
1080
  function TaskItemComponent() {
1076
1081
  this.config = {};
1077
1082
  this.data = {};
1078
- this.header = '';
1079
- this.status = '';
1083
+ this.header = "";
1084
+ this.status = "";
1080
1085
  this.previewConfig = {};
1081
1086
  this.previewData = [];
1082
1087
  this.onClickTaskItem = new i0.EventEmitter();
@@ -1095,22 +1100,20 @@
1095
1100
  };
1096
1101
  TaskItemComponent.prototype.parseHeader = function () {
1097
1102
  var _a, _b, _c, _d;
1098
- if (kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.header.taskId.path') &&
1103
+ if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskId.path") &&
1099
1104
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskId.path)) {
1100
1105
  this.header = kwikidToolkit.getObjectValueFromPath(this.data, (_d = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.taskUI) === null || _b === void 0 ? void 0 : _b.header) === null || _c === void 0 ? void 0 : _c.taskId) === null || _d === void 0 ? void 0 : _d.path);
1101
1106
  }
1102
- if (kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.header.taskId.maxLengthToShow') &&
1107
+ if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskId.maxLengthToShow") &&
1103
1108
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskId.maxLengthToShow) &&
1104
1109
  this.header.length > this.config.taskUI.header.taskId.maxLengthToShow) {
1105
- this.header =
1106
- this.header.slice(0, this.config.taskUI.header.taskId.maxLengthToShow) +
1107
- '...';
1110
+ this.header = this.header.slice(0, this.config.taskUI.header.taskId.maxLengthToShow) + "...";
1108
1111
  }
1109
1112
  };
1110
1113
  TaskItemComponent.prototype.parseSessionStatus = function () {
1111
1114
  var _a, _b, _c, _d, _e, _f;
1112
1115
  if (((_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.utilityFlags) === null || _b === void 0 ? void 0 : _b.isShowTaskStatus) &&
1113
- kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.header.taskStatus.path') &&
1116
+ kwikidToolkit.checkObjectPathExists(this.config, "taskUI.header.taskStatus.path") &&
1114
1117
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.header.taskStatus.path)) {
1115
1118
  this.status = kwikidToolkit.getObjectValueFromPath(this.data, (_f = (_e = (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.taskUI) === null || _d === void 0 ? void 0 : _d.header) === null || _e === void 0 ? void 0 : _e.taskStatus) === null || _f === void 0 ? void 0 : _f.path);
1116
1119
  }
@@ -1118,7 +1121,7 @@
1118
1121
  TaskItemComponent.prototype.parsePreviewData = function () {
1119
1122
  var _this = this;
1120
1123
  var _a, _b, _c, _d;
1121
- if (kwikidToolkit.checkObjectPathExists(this.config, 'taskUI.preview.data') &&
1124
+ if (kwikidToolkit.checkObjectPathExists(this.config, "taskUI.preview.data") &&
1122
1125
  kwikidToolkit.isNotEmptyValue(this.config.taskUI.preview.data) &&
1123
1126
  Array.isArray(this.config.taskUI.preview.data) &&
1124
1127
  this.config.taskUI.preview.data.length > 0) {
@@ -1150,7 +1153,7 @@
1150
1153
  return TaskItemComponent;
1151
1154
  }());
1152
1155
  /** @nocollapse */ TaskItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1153
- /** @nocollapse */ TaskItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemComponent, selector: "task-item", inputs: { config: "config", data: "data" }, outputs: { onClickTaskItem: "onClickTaskItem", onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<tui-accordion\n class=\"task-item-container\"\n (click)=\"handleOnClickTaskItem($event, data)\"\n>\n <tui-accordion-item>\n <div class=\"task-item-header\">\n <div class=\"task-item-id\">{{ header }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n <ng-template tuiAccordionItemContent>\n <div class=\"task-item-preview\">\n <kwikui-label-value-pair\n [config]=\"previewConfig\"\n [data]=\"previewData\"\n ></kwikui-label-value-pair>\n </div>\n <div class=\"task-item-footer\">\n \n <kwikui-button\n appearance=\"primary\"\n label=\"View Detail\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"handleOnClickTaskItemViewDetail($event, data)\"\n ></kwikui-button>\n </div>\n </ng-template>\n </tui-accordion-item>\n</tui-accordion>\n", styles: [".task-item-header{display:flex;flex-direction:column}.task-item-footer{margin-top:.5rem}\n"], components: [{ type: i1__namespace$1.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { type: i1__namespace$1.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }] });
1156
+ /** @nocollapse */ TaskItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskItemComponent, selector: "task-item", inputs: { config: "config", data: "data" }, outputs: { onClickTaskItem: "onClickTaskItem", onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onClickPerformAction: "onClickPerformAction" }, ngImport: i0__namespace, template: "<tui-accordion\n class=\"task-item-container\"\n (click)=\"handleOnClickTaskItem($event, data)\"\n>\n <tui-accordion-item>\n <div class=\"task-item-header\">\n <div class=\"task-item-id\">{{ header }}</div>\n <task-item-status\n *ngIf=\"status\"\n [config]=\"config?.taskUI?.header?.taskStatus\"\n [status]=\"status\"\n ></task-item-status>\n </div>\n <ng-template tuiAccordionItemContent>\n <div class=\"task-item-preview\">\n <kwikui-label-value-pair\n [config]=\"previewConfig\"\n [data]=\"previewData\"\n ></kwikui-label-value-pair>\n </div>\n <div class=\"task-item-footer\">\n <kwikui-button\n appearance=\"primary\"\n label=\"View Detail\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"handleOnClickTaskItemViewDetail($event, data)\"\n ></kwikui-button>\n </div>\n </ng-template>\n </tui-accordion-item>\n</tui-accordion>\n", styles: [".task-item-header{display:flex;flex-direction:column}.task-item-footer{margin-top:.5rem}\n"], components: [{ type: i1__namespace$1.TuiAccordionComponent, selector: "tui-accordion", inputs: ["closeOthers", "rounded"] }, { type: i1__namespace$1.TuiAccordionItemComponent, selector: "tui-accordion-item", inputs: ["noPadding", "showArrow", "borders", "size", "disabled", "disableHover", "open", "async"], outputs: ["openChange"] }, { type: TaskItemStatusComponent, selector: "task-item-status", inputs: ["config", "status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.TuiAccordionItemContentDirective, selector: "ng-template[tuiAccordionItemContent]" }] });
1154
1157
  __decorate([
1155
1158
  kwikidToolkit.logMethod
1156
1159
  ], TaskItemComponent.prototype, "handleOnClickTaskItem", null);
@@ -1160,9 +1163,9 @@
1160
1163
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemComponent, decorators: [{
1161
1164
  type: i0.Component,
1162
1165
  args: [{
1163
- selector: 'task-item',
1164
- templateUrl: './task-item.component.html',
1165
- styleUrls: ['./task-item.component.scss']
1166
+ selector: "task-item",
1167
+ templateUrl: "./task-item.component.html",
1168
+ styleUrls: ["./task-item.component.scss"]
1166
1169
  }]
1167
1170
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
1168
1171
  type: i0.Input
@@ -1191,10 +1194,10 @@
1191
1194
  // Loaders
1192
1195
  this.loading = false;
1193
1196
  // Search Text
1194
- this.searchText = '';
1197
+ this.searchText = "";
1195
1198
  // Sort Filter
1196
- this.sortFilterKey = '';
1197
- this.sortInAscendingOrder = 'ASC';
1199
+ this.sortFilterKey = "";
1200
+ this.sortInAscendingOrder = "ASC";
1198
1201
  // Date Range Values
1199
1202
  this.start_time = undefined;
1200
1203
  this.end_time = undefined;
@@ -1219,7 +1222,7 @@
1219
1222
  var verifyChange = function (key) {
1220
1223
  return changes.hasOwnProperty(key) && !changes[key].firstChange;
1221
1224
  };
1222
- if (verifyChange('taskItems')) {
1225
+ if (verifyChange("taskItems")) {
1223
1226
  this.toggleLoader(true);
1224
1227
  this.taskItems = changes.taskItems.currentValue;
1225
1228
  this.handleOnSortTaskItems(this.sortFilterKey, this.sortInAscendingOrder);
@@ -1248,9 +1251,9 @@
1248
1251
  value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
1249
1252
  disabled: false
1250
1253
  });
1251
- this.formGroup.addControl('searchDate', this.searchDataFormControl);
1252
- this.searchTextFormControl = new i2$1.FormControl('');
1253
- this.formGroup.addControl('searchText', this.searchTextFormControl);
1254
+ this.formGroup.addControl("searchDate", this.searchDataFormControl);
1255
+ this.searchTextFormControl = new i2$1.FormControl("");
1256
+ this.formGroup.addControl("searchText", this.searchTextFormControl);
1254
1257
  this.handleOnGetTaskItems();
1255
1258
  };
1256
1259
  TaskListComponent.prototype.handleOnFilterTasksByText = function (event) {
@@ -1312,7 +1315,7 @@
1312
1315
  if (loader) {
1313
1316
  this.loaderService.show({
1314
1317
  fullscreen: true,
1315
- loaderText: message !== null && message !== void 0 ? message : 'Please Wait'
1318
+ loaderText: message !== null && message !== void 0 ? message : "Please Wait"
1316
1319
  });
1317
1320
  this.loading = true;
1318
1321
  }
@@ -1327,7 +1330,7 @@
1327
1330
  return TaskListComponent;
1328
1331
  }());
1329
1332
  /** @nocollapse */ TaskListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListComponent, deps: [{ token: i1__namespace.KwikUILoaderService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1330
- /** @nocollapse */ TaskListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListComponent, selector: "task-list", inputs: { config: "config", taskItems: "taskItems" }, outputs: { onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onGetTaskList: "onGetTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-loader></kwikui-loader>\n<div id=\"task-list-container\">\n <div id=\"task-list-search-wrapper\">\n <task-list-search\n [config]=\"config\"\n (onFilterTasksByText)=\"handleOnFilterTasksByText($event)\"\n (onFilterTasksByDate)=\"handleOnFilterTasksByDate($event)\"\n (onChangeSortFilter)=\"handleOnChangeSortFilter($event)\"\n ></task-list-search>\n </div>\n <hr />\n <div\n itemSize=\"50\"\n class=\"virtualscroll-container\"\n *ngIf=\"activePageItems.length > 0 && !loading; else NO_TASKS\"\n >\n <div id=\"task-list-items-container\">\n <div\n *ngFor=\"let taskItem of activePageItems\"\n class=\"task-item-container\"\n >\n <task-item\n [config]=\"config\"\n [data]=\"taskItem\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n >\n </task-item>\n </div>\n </div>\n <div id=\"task-list-items-pagination-container\">\n <tui-pagination\n [index]=\"paginationIndex\"\n [length]=\"paginationLength\"\n (indexChange)=\"handleOnClickChangePaginationIndex($event)\"\n ></tui-pagination>\n </div>\n </div>\n <ng-template #NO_TASKS>\n <div class=\"no-tasks\">No Tasks</div>\n </ng-template>\n</div>\n", styles: ["#task-list-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}#task-list-container ::-webkit-scrollbar{width:8px!important}#task-list-container ::-webkit-scrollbar-track{border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb:hover{background:gray!important}#task-list-container #task-list-search-wrapper{width:100%;padding:1rem}#task-list-container .virtualscroll-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;overflow:auto}#task-list-container .no-tasks{width:100%;height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:1rem;font-weight:bold}#task-list-container #task-list-items-container{overflow:auto}#task-list-container #task-list-items-container>*:first-child{margin-top:1rem}#task-list-container #task-list-items-container .task-item-container{padding:0 1rem;margin-bottom:1rem}#task-list-container #task-list-items-pagination-container{padding:1rem}\n"], components: [{ type: i1__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: TaskListSearchComponent, selector: "task-list-search", inputs: ["config"], outputs: ["onFilterTasksByText", "onFilterTasksByDate", "onChangeSortFilter"] }, { type: TaskItemComponent, selector: "task-item", inputs: ["config", "data"], outputs: ["onClickTaskItem", "onClickTaskItemViewDetail", "onClickPerformAction"] }, { type: i1__namespace$1.TuiPaginationComponent, selector: "tui-pagination", inputs: ["length", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1333
+ /** @nocollapse */ TaskListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: TaskListComponent, selector: "task-list", inputs: { config: "config", taskItems: "taskItems" }, outputs: { onClickTaskItemViewDetail: "onClickTaskItemViewDetail", onGetTaskList: "onGetTaskList" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-loader></kwikui-loader>\n<div id=\"task-list-container\">\n <div id=\"task-list-search-wrapper\">\n <task-list-search\n [config]=\"config\"\n (onFilterTasksByText)=\"handleOnFilterTasksByText($event)\"\n (onFilterTasksByDate)=\"handleOnFilterTasksByDate($event)\"\n (onChangeSortFilter)=\"handleOnChangeSortFilter($event)\"\n ></task-list-search>\n </div>\n <hr />\n <div\n itemSize=\"50\"\n class=\"virtualscroll-container\"\n *ngIf=\"activePageItems.length > 0 && !loading; else NO_TASKS\"\n >\n <div id=\"task-list-items-container\">\n <div\n *ngFor=\"let taskItem of activePageItems\"\n class=\"task-item-container\"\n >\n <task-item\n [config]=\"config\"\n [data]=\"taskItem\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n >\n </task-item>\n </div>\n </div>\n <div id=\"task-list-items-pagination-container\">\n <tui-pagination\n [index]=\"paginationIndex\"\n [length]=\"paginationLength\"\n (indexChange)=\"handleOnClickChangePaginationIndex($event)\"\n ></tui-pagination>\n </div>\n </div>\n <ng-template #NO_TASKS>\n <div class=\"no-tasks\">No Tasks</div>\n </ng-template>\n</div>\n", styles: ["#task-list-container{width:100%;height:100%;overflow:hidden;display:flex;flex-direction:column}#task-list-container ::-webkit-scrollbar{width:8px!important}#task-list-container ::-webkit-scrollbar-track{border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}#task-list-container ::-webkit-scrollbar-thumb:hover{background:gray!important}#task-list-container #task-list-search-wrapper{width:100%;padding:1rem}#task-list-container .virtualscroll-container{width:100%;height:100%;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch;overflow:auto}#task-list-container .no-tasks{width:100%;height:100%;display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:1rem;font-weight:bold}#task-list-container #task-list-items-container{overflow:auto}#task-list-container #task-list-items-container>*:first-child{margin-top:1rem}#task-list-container #task-list-items-container .task-item-container{padding:0 1rem;margin-bottom:1rem}#task-list-container #task-list-items-pagination-container{padding:1rem}\n"], components: [{ type: i1__namespace.KwikUILoaderComponent, selector: "kwikui-loader" }, { type: TaskListSearchComponent, selector: "task-list-search", inputs: ["config"], outputs: ["onFilterTasksByText", "onFilterTasksByDate", "onChangeSortFilter"] }, { type: TaskItemComponent, selector: "task-item", inputs: ["config", "data"], outputs: ["onClickTaskItem", "onClickTaskItemViewDetail", "onClickPerformAction"] }, { type: i1__namespace$1.TuiPaginationComponent, selector: "tui-pagination", inputs: ["length", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
1331
1334
  __decorate([
1332
1335
  kwikidToolkit.logMethod
1333
1336
  ], TaskListComponent.prototype, "ngOnChanges", null);
@@ -1343,9 +1346,9 @@
1343
1346
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListComponent, decorators: [{
1344
1347
  type: i0.Component,
1345
1348
  args: [{
1346
- selector: 'task-list',
1347
- templateUrl: './task-list.component.html',
1348
- styleUrls: ['./task-list.component.scss'],
1349
+ selector: "task-list",
1350
+ templateUrl: "./task-list.component.html",
1351
+ styleUrls: ["./task-list.component.scss"],
1349
1352
  changeDetection: i0.ChangeDetectionStrategy.OnPush
1350
1353
  }]
1351
1354
  }], ctorParameters: function () { return [{ type: i1__namespace.KwikUILoaderService }]; }, propDecorators: { config: [{
@@ -1369,15 +1372,15 @@
1369
1372
  this.popupFormData = {};
1370
1373
  this.previewProperties = {
1371
1374
  html: {
1372
- before: '',
1373
- after: ''
1375
+ before: "",
1376
+ after: ""
1374
1377
  },
1375
1378
  iframe: {
1376
- src: '',
1377
- title: ''
1379
+ src: "",
1380
+ title: ""
1378
1381
  },
1379
- popupFormKey: '',
1380
- title: '',
1382
+ popupFormKey: "",
1383
+ title: "",
1381
1384
  unavailable: false
1382
1385
  };
1383
1386
  this.pageFormConfig = undefined;
@@ -1424,7 +1427,7 @@
1424
1427
  }
1425
1428
  finally { if (e_1) throw e_1.error; }
1426
1429
  }
1427
- if (verifyChange('taskList')) {
1430
+ if (verifyChange("taskList")) {
1428
1431
  this.taskList = changes.taskList.currentValue;
1429
1432
  }
1430
1433
  };
@@ -1467,9 +1470,9 @@
1467
1470
  case 0:
1468
1471
  _c = e.type;
1469
1472
  switch (_c) {
1470
- case 'POPUP_FORM': return [3 /*break*/, 1];
1471
- case 'PAGE_FORM': return [3 /*break*/, 4];
1472
- case 'action_3': return [3 /*break*/, 7];
1473
+ case "POPUP_FORM": return [3 /*break*/, 1];
1474
+ case "PAGE_FORM": return [3 /*break*/, 4];
1475
+ case "action_3": return [3 /*break*/, 7];
1473
1476
  }
1474
1477
  return [3 /*break*/, 8];
1475
1478
  case 1:
@@ -1478,14 +1481,14 @@
1478
1481
  case 2: return [4 /*yield*/, (_f.sent()).json()];
1479
1482
  case 3:
1480
1483
  _d.popupFormConfig = _f.sent();
1481
- console.log('popupFormConfig', this.popupFormConfig);
1484
+ console.log("popupFormConfig", this.popupFormConfig);
1482
1485
  this.previewDialogRef = this.previewDialogService
1483
- .open(this.preview || '')
1486
+ .open(this.preview || "")
1484
1487
  .subscribe({
1485
1488
  next: function (data) {
1486
1489
  _this.popupFormCallback = {
1487
- popupFormData: data['data'],
1488
- popupFormConfig: data['formConfig']
1490
+ popupFormData: data.data,
1491
+ popupFormConfig: data.formConfig
1489
1492
  };
1490
1493
  _this.popupFormConfig = {};
1491
1494
  _this.previewDialogRef.complete();
@@ -1496,10 +1499,10 @@
1496
1499
  popupFormConfig: _this.popupFormConfig
1497
1500
  };
1498
1501
  _this.popupFormConfig = {};
1499
- console.info('Preview error');
1502
+ console.info("Preview error");
1500
1503
  },
1501
1504
  complete: function () {
1502
- console.info('Preview closed');
1505
+ console.info("Preview closed");
1503
1506
  }
1504
1507
  });
1505
1508
  return [3 /*break*/, 9];
@@ -1519,10 +1522,10 @@
1519
1522
  };
1520
1523
  LayoutBodyComponent.prototype.handleOnClickSaveForm = function (e, eventType) {
1521
1524
  switch (eventType) {
1522
- case 'POPUP_FORM':
1525
+ case "POPUP_FORM":
1523
1526
  this.previewDialogRef.next(e);
1524
1527
  break;
1525
- case 'PAGE_FORM':
1528
+ case "PAGE_FORM":
1526
1529
  this.pageFormConfig = undefined;
1527
1530
  break;
1528
1531
  default:
@@ -1532,32 +1535,32 @@
1532
1535
  return LayoutBodyComponent;
1533
1536
  }());
1534
1537
  /** @nocollapse */ LayoutBodyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyComponent, deps: [{ token: i0__namespace.ElementRef }, { token: i8.TuiPreviewDialogService }, { token: i3.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
1535
- /** @nocollapse */ LayoutBodyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutBodyComponent, selector: "layout-body", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onClickApiCall: "onClickApiCall", onGetTaskList: "onGetTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"body-container\">\n <div\n id=\"sidebar-container\"\n *ngIf=\"!isMobileView && !activeTaskDetail\"\n [class.is-hidden]=\"!isActiveSidebar\"\n >\n <div\n id=\"sidebar-toggle\"\n *ngIf=\"!isMobileView && !activeTaskDetail && !pageFormConfig\"\n [class.is-hidden]=\"!isActiveSidebar\"\n (click)=\"handleOnClickToggleSidebar($event)\"\n >\n <tui-svg\n *ngIf=\"isActiveSidebar\"\n [src]=\"'tuiIconChevronsLeftLarge'\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isActiveSidebar\"\n [src]=\"'tuiIconChevronsRightLarge'\"\n ></tui-svg>\n </div>\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n </div>\n <div id=\"main-container\" [class.is-desktop]=\"!isMobileView\">\n <div\n id=\"primary-actions-wrapper\"\n [class.is-desktop]=\"!isMobileView\"\n [class.is-nomaps]=\"config.mapConfig?.isHidden\"\n *ngIf=\"config.primaryActionsConfig\"\n >\n <primary-actions\n [primaryActionsConfig]=\"config.primaryActionsConfig\"\n (onClickPrimaryAction)=\"handleOnClickPrimaryAction($event)\"\n ></primary-actions>\n </div>\n\n <div\n class=\"kwikid-form-view-page-container\"\n *ngIf=\"pageFormConfig && pageFormConfig !== {}\"\n >\n <kwikid-form-view\n [formConfig]=\"pageFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'PAGE_FORM')\"\n ></kwikid-form-view>\n </div>\n\n <div id=\"map-view-wrapper\" [class.is-desktop]=\"!isMobileView\">\n <map-view [mapConfig]=\"config.mapConfig\"></map-view>\n </div>\n\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && isShowFullTaskDetails\"\n [@taskDetail2InOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n </div>\n</div>\n\n<bottom-sheet *ngIf=\"isMobileView\">\n <!-- Content to be projected into the bottom sheet -->\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n</bottom-sheet>\n\n<ng-template #TaskList>\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && !isShowFullTaskDetails\"\n [@taskDetailInOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n <div id=\"task-list-wrapper\">\n <task-list\n [config]=\"config\"\n [taskItems]=\"taskList\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n [@taskListInOut]\n ></task-list>\n </div>\n</ng-template>\n\n<ng-template #preview let-preview>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n *ngIf=\"popupFormConfig\"\n >\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n </tui-preview>\n</ng-template>\n\n<ng-template #content let-context>\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n</ng-template>\n", styles: [":root,:host{display:block;width:100%;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:10px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#body-container{width:100%;height:100%;display:flex;flex-direction:row;align-items:stretch;overflow:auto;position:relative;z-index:1}#body-container #sidebar-container{width:100%;max-width:320px;height:100%;overflow-y:auto;position:relative;z-index:1;box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;overflow-x:hidden;z-index:5}#body-container #sidebar-container.is-hidden{width:0px!important}#body-container #sidebar-container #sidebar-toggle{flex-direction:row;background:white;width:3.6rem;border-top-right-radius:1rem;border-bottom-right-radius:1rem;height:3.6rem;display:flex;justify-content:center;align-items:center;cursor:pointer;position:fixed;transform:translate(320px,1.6rem);box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;z-index:-1}#body-container #sidebar-container #sidebar-toggle.is-hidden{transform:translateY(1.6rem)}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto;z-index:1}#body-container #main-container #primary-actions-wrapper{position:absolute;padding:0;top:1rem;left:calc(100% - 1rem);z-index:3;border-radius:.5rem;transform:translate(-100%)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden;position:relative;z-index:2}@media only screen and (max-width: 600px){#body-container{display:flex;flex-direction:column-reverse;justify-content:space-between;align-items:stretch}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto}#body-container #main-container #primary-actions-wrapper{position:absolute;width:calc(100% - (2 * 1rem));padding:0;top:1rem;left:calc(1rem);z-index:3;border-radius:.5rem;transform:translate(0)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden}}#task-list-wrapper{width:100%;height:100%;overflow:auto;background-color:#fff;z-index:2}#task-detail-wrapper{position:absolute;top:0px;left:0px;background-color:#fff;width:100%;height:100%;overflow:auto;z-index:3}.kwikid-form-view-popup-container{border-radius:1rem;background:var(--tui-base-01);min-width:320px;max-width:480px;padding:.5rem;height:100%;max-height:90vh;overflow:auto;width:100%}.kwikid-form-view-page-container{min-width:320px;max-width:100%;padding:.5rem;height:100%;max-height:100%;overflow:auto;width:100%}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: PrimaryActionsComponent, selector: "primary-actions", inputs: ["primaryActionsConfig"], outputs: ["onClickPrimaryAction"] }, { type: i3__namespace$2.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "extraData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickViewFile", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }, { type: MapViewComponent, selector: "map-view", inputs: ["mapConfig"] }, { type: TaskDetailComponent, selector: "task-detail", inputs: ["config", "taskDetail"], outputs: ["onClickCloseTaskDetail"] }, { type: BottomSheetComponent, selector: "bottom-sheet" }, { type: TaskListComponent, selector: "task-list", inputs: ["config", "taskItems"], outputs: ["onClickTaskItemViewDetail", "onGetTaskList"] }, { type: i8__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i3__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i3__namespace$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], animations: [
1536
- animations.trigger('taskDetailInOut', [
1537
- animations.transition(':enter', [
1538
- animations.style({ transform: 'translateY(100%)' }),
1538
+ /** @nocollapse */ LayoutBodyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: LayoutBodyComponent, selector: "layout-body", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onClickApiCall: "onClickApiCall", onGetTaskList: "onGetTaskList" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "preview", first: true, predicate: ["preview"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"body-container\">\n <div\n id=\"sidebar-container\"\n *ngIf=\"!isMobileView && !activeTaskDetail\"\n [class.is-hidden]=\"!isActiveSidebar\"\n >\n <div\n id=\"sidebar-toggle\"\n *ngIf=\"!isMobileView && !activeTaskDetail && !pageFormConfig\"\n [class.is-hidden]=\"!isActiveSidebar\"\n (click)=\"handleOnClickToggleSidebar($event)\"\n >\n <tui-svg\n *ngIf=\"isActiveSidebar\"\n [src]=\"'tuiIconChevronsLeftLarge'\"\n ></tui-svg>\n <tui-svg\n *ngIf=\"!isActiveSidebar\"\n [src]=\"'tuiIconChevronsRightLarge'\"\n ></tui-svg>\n </div>\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n </div>\n <div\n id=\"main-container\"\n [class.is-desktop]=\"!isMobileView\"\n >\n <div\n id=\"primary-actions-wrapper\"\n [class.is-desktop]=\"!isMobileView\"\n [class.is-nomaps]=\"config.mapConfig?.isHidden\"\n *ngIf=\"config.primaryActionsConfig\"\n >\n <primary-actions\n [primaryActionsConfig]=\"config.primaryActionsConfig\"\n (onClickPrimaryAction)=\"handleOnClickPrimaryAction($event)\"\n ></primary-actions>\n </div>\n\n <div\n class=\"kwikid-form-view-page-container\"\n *ngIf=\"pageFormConfig && pageFormConfig !== {}\"\n >\n <kwikid-form-view\n [formConfig]=\"pageFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'PAGE_FORM')\"\n ></kwikid-form-view>\n </div>\n\n <div\n id=\"map-view-wrapper\"\n [class.is-desktop]=\"!isMobileView\"\n >\n <map-view [mapConfig]=\"config.mapConfig\"></map-view>\n </div>\n\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && isShowFullTaskDetails\"\n [@taskDetail2InOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n </div>\n</div>\n\n<bottom-sheet *ngIf=\"isMobileView\">\n <!-- Content to be projected into the bottom sheet -->\n <ng-container *ngTemplateOutlet=\"TaskList\"></ng-container>\n</bottom-sheet>\n\n<ng-template #TaskList>\n <div\n id=\"task-detail-wrapper\"\n *ngIf=\"activeTaskDetail && !isShowFullTaskDetails\"\n [@taskDetailInOut]\n >\n <task-detail\n [config]=\"config\"\n [taskDetail]=\"activeTaskDetail\"\n (onClickCloseTaskDetail)=\"handleOnClickCloseTaskDetail($event)\"\n ></task-detail>\n </div>\n <div id=\"task-list-wrapper\">\n <task-list\n [config]=\"config\"\n [taskItems]=\"taskList\"\n (onClickTaskItemViewDetail)=\"handleOnClickTaskItemViewDetail($event)\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n [@taskListInOut]\n ></task-list>\n </div>\n</ng-template>\n\n<ng-template\n #preview\n let-preview\n>\n <tui-preview\n [rotatable]=\"false\"\n [zoomable]=\"false\"\n class=\"preview-container\"\n *ngIf=\"popupFormConfig\"\n >\n <button\n tuiIconButton\n tuiPreviewAction\n icon=\"tuiIconCloseLarge\"\n title=\"Close\"\n type=\"button\"\n (click)=\"preview.complete()\"\n ></button>\n\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n </tui-preview>\n</ng-template>\n\n<ng-template\n #content\n let-context\n>\n <div class=\"kwikid-form-view-popup-container\">\n <kwikid-form-view\n [formConfig]=\"popupFormConfig\"\n [allFormsData]=\"{}\"\n [apiCallResponse]=\"this.apiCallResponse\"\n (onClickApiCall)=\"handleOnClickApiCall($event)\"\n (onClickSaveForm)=\"this.handleOnClickSaveForm($event, 'POPUP_FORM')\"\n ></kwikid-form-view>\n </div>\n</ng-template>\n", styles: [":root,:host{display:block;width:100%;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:10px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:10px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#body-container{width:100%;height:100%;display:flex;flex-direction:row;align-items:stretch;overflow:auto;position:relative;z-index:1}#body-container #sidebar-container{width:100%;max-width:320px;height:100%;overflow-y:auto;position:relative;z-index:1;box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;overflow-x:hidden;z-index:5}#body-container #sidebar-container.is-hidden{width:0px!important}#body-container #sidebar-container #sidebar-toggle{flex-direction:row;background:white;width:3.6rem;border-top-right-radius:1rem;border-bottom-right-radius:1rem;height:3.6rem;display:flex;justify-content:center;align-items:center;cursor:pointer;position:fixed;transform:translate(320px,1.6rem);box-shadow:#32325d40 0 13px 27px -5px,#0000004d 0 8px 16px -8px;z-index:-1}#body-container #sidebar-container #sidebar-toggle.is-hidden{transform:translateY(1.6rem)}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto;z-index:1}#body-container #main-container #primary-actions-wrapper{position:absolute;padding:0;top:1rem;left:calc(100% - 1rem);z-index:3;border-radius:.5rem;transform:translate(-100%)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden;position:relative;z-index:2}@media only screen and (max-width: 600px){#body-container{display:flex;flex-direction:column-reverse;justify-content:space-between;align-items:stretch}#body-container #main-container{flex:1;height:100%;position:relative;overflow:auto}#body-container #main-container #primary-actions-wrapper{position:absolute;width:calc(100% - (2 * 1rem));padding:0;top:1rem;left:calc(1rem);z-index:3;border-radius:.5rem;transform:translate(0)}#body-container #main-container #primary-actions-wrapper.is-nomaps{box-shadow:none}#body-container #main-container #map-view-wrapper{width:100%;height:100%;overflow:hidden}}#task-list-wrapper{width:100%;height:100%;overflow:auto;background-color:#fff;z-index:2}#task-detail-wrapper{position:absolute;top:0px;left:0px;background-color:#fff;width:100%;height:100%;overflow:auto;z-index:3}.kwikid-form-view-popup-container{border-radius:1rem;background:var(--tui-base-01);min-width:320px;max-width:480px;padding:.5rem;height:100%;max-height:90vh;overflow:auto;width:100%}.kwikid-form-view-page-container{min-width:320px;max-width:100%;padding:.5rem;height:100%;max-height:100%;overflow:auto;width:100%}\n"], components: [{ type: i3__namespace.TuiSvgComponent, selector: "tui-svg", inputs: ["src"] }, { type: PrimaryActionsComponent, selector: "primary-actions", inputs: ["primaryActionsConfig"], outputs: ["onClickPrimaryAction"] }, { type: i3__namespace$1.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "extraData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickViewFile", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }, { type: MapViewComponent, selector: "map-view", inputs: ["mapConfig"] }, { type: TaskDetailComponent, selector: "task-detail", inputs: ["config", "taskDetail"], outputs: ["onClickCloseTaskDetail"] }, { type: BottomSheetComponent, selector: "bottom-sheet" }, { type: TaskListComponent, selector: "task-list", inputs: ["config", "taskItems"], outputs: ["onClickTaskItemViewDetail", "onGetTaskList"] }, { type: i8__namespace.TuiPreviewComponent, selector: "tui-preview", inputs: ["zoomable", "rotatable"] }, { type: i3__namespace.TuiButtonComponent, selector: "button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]", inputs: ["appearance", "disabled", "icon", "iconRight", "shape", "showLoader", "size"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i8__namespace.TuiPreviewActionDirective, selector: "[tuiPreviewAction]" }], animations: [
1539
+ animations.trigger("taskDetailInOut", [
1540
+ animations.transition(":enter", [
1541
+ animations.style({ transform: "translateY(100%)" }),
1539
1542
  animations.animate(150)
1540
1543
  ]),
1541
- animations.transition(':leave', [
1542
- animations.animate(150, animations.style({ transform: 'translateY(100%)' }))
1544
+ animations.transition(":leave", [
1545
+ animations.animate(150, animations.style({ transform: "translateY(100%)" }))
1543
1546
  ])
1544
1547
  ]),
1545
- animations.trigger('taskDetail2InOut', [
1546
- animations.transition(':enter', [
1547
- animations.style({ transform: 'translateX(100%)' }),
1548
+ animations.trigger("taskDetail2InOut", [
1549
+ animations.transition(":enter", [
1550
+ animations.style({ transform: "translateX(100%)" }),
1548
1551
  animations.animate(150)
1549
1552
  ]),
1550
- animations.transition(':leave', [
1551
- animations.animate(150, animations.style({ transform: 'translateX(100%)' }))
1553
+ animations.transition(":leave", [
1554
+ animations.animate(150, animations.style({ transform: "translateX(100%)" }))
1552
1555
  ])
1553
1556
  ]),
1554
- animations.trigger('taskListInOut', [
1555
- animations.transition(':enter', [
1556
- animations.style({ transform: 'translateY(100%)' }),
1557
+ animations.trigger("taskListInOut", [
1558
+ animations.transition(":enter", [
1559
+ animations.style({ transform: "translateY(100%)" }),
1557
1560
  animations.animate(0)
1558
1561
  ]),
1559
- animations.transition(':leave', [
1560
- animations.animate(0, animations.style({ transform: 'translateY(100%)' }))
1562
+ animations.transition(":leave", [
1563
+ animations.animate(0, animations.style({ transform: "translateY(100%)" }))
1561
1564
  ])
1562
1565
  ])
1563
1566
  ] });
@@ -1588,35 +1591,35 @@
1588
1591
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyComponent, decorators: [{
1589
1592
  type: i0.Component,
1590
1593
  args: [{
1591
- selector: 'layout-body',
1592
- templateUrl: './layout-body.component.html',
1593
- styleUrls: ['./layout-body.component.scss'],
1594
+ selector: "layout-body",
1595
+ templateUrl: "./layout-body.component.html",
1596
+ styleUrls: ["./layout-body.component.scss"],
1594
1597
  animations: [
1595
- animations.trigger('taskDetailInOut', [
1596
- animations.transition(':enter', [
1597
- animations.style({ transform: 'translateY(100%)' }),
1598
+ animations.trigger("taskDetailInOut", [
1599
+ animations.transition(":enter", [
1600
+ animations.style({ transform: "translateY(100%)" }),
1598
1601
  animations.animate(150)
1599
1602
  ]),
1600
- animations.transition(':leave', [
1601
- animations.animate(150, animations.style({ transform: 'translateY(100%)' }))
1603
+ animations.transition(":leave", [
1604
+ animations.animate(150, animations.style({ transform: "translateY(100%)" }))
1602
1605
  ])
1603
1606
  ]),
1604
- animations.trigger('taskDetail2InOut', [
1605
- animations.transition(':enter', [
1606
- animations.style({ transform: 'translateX(100%)' }),
1607
+ animations.trigger("taskDetail2InOut", [
1608
+ animations.transition(":enter", [
1609
+ animations.style({ transform: "translateX(100%)" }),
1607
1610
  animations.animate(150)
1608
1611
  ]),
1609
- animations.transition(':leave', [
1610
- animations.animate(150, animations.style({ transform: 'translateX(100%)' }))
1612
+ animations.transition(":leave", [
1613
+ animations.animate(150, animations.style({ transform: "translateX(100%)" }))
1611
1614
  ])
1612
1615
  ]),
1613
- animations.trigger('taskListInOut', [
1614
- animations.transition(':enter', [
1615
- animations.style({ transform: 'translateY(100%)' }),
1616
+ animations.trigger("taskListInOut", [
1617
+ animations.transition(":enter", [
1618
+ animations.style({ transform: "translateY(100%)" }),
1616
1619
  animations.animate(0)
1617
1620
  ]),
1618
- animations.transition(':leave', [
1619
- animations.animate(0, animations.style({ transform: 'translateY(100%)' }))
1621
+ animations.transition(":leave", [
1622
+ animations.animate(0, animations.style({ transform: "translateY(100%)" }))
1620
1623
  ])
1621
1624
  ])
1622
1625
  ]
@@ -1631,10 +1634,10 @@
1631
1634
  }] }];
1632
1635
  }, propDecorators: { windowResizeWatcher: [{
1633
1636
  type: i0.HostListener,
1634
- args: ['window:resize', ['$event']]
1637
+ args: ["window:resize", ["$event"]]
1635
1638
  }], preview: [{
1636
1639
  type: i0.ViewChild,
1637
- args: ['preview']
1640
+ args: ["preview"]
1638
1641
  }], onClickApiCall: [{
1639
1642
  type: i0.Output
1640
1643
  }], onGetTaskList: [{
@@ -1649,8 +1652,8 @@
1649
1652
  type: i0.Input
1650
1653
  }], ngOnChanges: [], handleShowingFullTaskDetails: [], handleOnClickTaskItemViewDetail: [], handleOnClickCloseTaskDetail: [], handleOnClickToggleSidebar: [], handleOnClickApiCall: [], handleOnClickPrimaryAction: [], handleOnClickSaveForm: [] } });
1651
1654
 
1652
- var KwikIDAgentDashboardComponent = /** @class */ (function () {
1653
- function KwikIDAgentDashboardComponent() {
1655
+ var KwikIDAgentDashboardComponentV2 = /** @class */ (function () {
1656
+ function KwikIDAgentDashboardComponentV2() {
1654
1657
  this.config = {};
1655
1658
  this.userConfig = {};
1656
1659
  this.agentInfo = {};
@@ -1658,13 +1661,13 @@
1658
1661
  this.onGetTaskList = new i0.EventEmitter();
1659
1662
  this.onClickPerformAction = new i0.EventEmitter();
1660
1663
  }
1661
- KwikIDAgentDashboardComponent.prototype.ngOnInit = function () {
1662
- console.log('Agent Dashboard Config', this.config);
1663
- console.log('User Config', this.userConfig);
1664
- console.log('Agent Info', this.agentInfo);
1665
- console.log('Tasks List', this.taskList);
1664
+ KwikIDAgentDashboardComponentV2.prototype.ngOnInit = function () {
1665
+ console.log("Agent Dashboard Config", this.config);
1666
+ console.log("User Config", this.userConfig);
1667
+ console.log("Agent Info", this.agentInfo);
1668
+ console.log("Tasks List", this.taskList);
1666
1669
  };
1667
- KwikIDAgentDashboardComponent.prototype.ngOnChanges = function (changes) {
1670
+ KwikIDAgentDashboardComponentV2.prototype.ngOnChanges = function (changes) {
1668
1671
  var e_1, _a;
1669
1672
  var verifyChange = function (key) {
1670
1673
  return changes.hasOwnProperty(key) && !changes[key].firstChange;
@@ -1683,26 +1686,26 @@
1683
1686
  }
1684
1687
  finally { if (e_1) throw e_1.error; }
1685
1688
  }
1686
- if (verifyChange('taskList')) {
1689
+ if (verifyChange("taskList")) {
1687
1690
  this.taskList = changes.taskList.currentValue;
1688
1691
  }
1689
1692
  };
1690
- KwikIDAgentDashboardComponent.prototype.handleOnGetTaskList = function (event) {
1693
+ KwikIDAgentDashboardComponentV2.prototype.handleOnGetTaskList = function (event) {
1691
1694
  this.onGetTaskList.emit(event);
1692
1695
  };
1693
- KwikIDAgentDashboardComponent.prototype.handleOnClickPerformAction = function (event) {
1696
+ KwikIDAgentDashboardComponentV2.prototype.handleOnClickPerformAction = function (event) {
1694
1697
  this.onClickPerformAction.emit(event);
1695
1698
  };
1696
- return KwikIDAgentDashboardComponent;
1699
+ return KwikIDAgentDashboardComponentV2;
1697
1700
  }());
1698
- /** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1699
- /** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"container\">\n <div id=\"header\">\n <layout-header\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-header>\n </div>\n <div id=\"body\">\n <layout-body\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n [taskList]=\"taskList\"\n [userConfig]=\"userConfig\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-body>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#container{width:100%;height:100%}#container #header{width:100%;height:80px;border:1px solid red}#container #body{width:100%;height:calc(100% - 60px);border:1px solid blue;overflow:auto}\n"], components: [{ type: LayoutHeaderComponent, selector: "layout-header", inputs: ["config", "agentInfo"], outputs: ["onGetTaskList", "onClickPerformAction"] }, { type: LayoutBodyComponent, selector: "layout-body", inputs: ["config", "userConfig", "agentInfo", "taskList"], outputs: ["onClickApiCall", "onGetTaskList"] }] });
1700
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
1701
+ /** @nocollapse */ KwikIDAgentDashboardComponentV2.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV2, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1702
+ /** @nocollapse */ KwikIDAgentDashboardComponentV2.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponentV2, selector: "kwikid-agent-dashboard-v2", inputs: { config: "config", userConfig: "userConfig", agentInfo: "agentInfo", taskList: "taskList" }, outputs: { onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div id=\"container\">\n <div id=\"header\">\n <layout-header\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-header>\n </div>\n <div id=\"body\">\n <layout-body\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n [taskList]=\"taskList\"\n [userConfig]=\"userConfig\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></layout-body>\n </div>\n</div>\n", styles: [":host{position:relative;display:block;height:100%}::-webkit-scrollbar{width:8px!important}::-webkit-scrollbar-track{border-radius:8px!important}::-webkit-scrollbar-thumb{background:lightgray!important;border-radius:8px!important}::-webkit-scrollbar-thumb:hover{background:gray!important}#container{width:100%;height:100%}#container #header{width:100%;height:80px;border:1px solid red}#container #body{width:100%;height:calc(100% - 60px);border:1px solid blue;overflow:auto}\n"], components: [{ type: LayoutHeaderComponent, selector: "layout-header", inputs: ["config", "agentInfo"], outputs: ["onGetTaskList", "onClickPerformAction"] }, { type: LayoutBodyComponent, selector: "layout-body", inputs: ["config", "userConfig", "agentInfo", "taskList"], outputs: ["onClickApiCall", "onGetTaskList"] }] });
1703
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV2, decorators: [{
1701
1704
  type: i0.Component,
1702
1705
  args: [{
1703
- selector: 'kwikid-agent-dashboard',
1704
- templateUrl: './kwikid-agent-dashboard.component.html',
1705
- styleUrls: ['./kwikid-agent-dashboard.component.scss']
1706
+ selector: "kwikid-agent-dashboard-v2",
1707
+ templateUrl: "./kwikid-agent-dashboard.component.html",
1708
+ styleUrls: ["./kwikid-agent-dashboard.component.scss"]
1706
1709
  }]
1707
1710
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
1708
1711
  type: i0.Input
@@ -1718,147 +1721,1966 @@
1718
1721
  type: i0.Output
1719
1722
  }] } });
1720
1723
 
1721
- var AgentInfoComponent = /** @class */ (function () {
1722
- function AgentInfoComponent() {
1724
+ // To Calculate Distance between two markers
1725
+ var calculateDistance = function (point1, point2) {
1726
+ var lat1 = point1.lat;
1727
+ var lng1 = point1.lng;
1728
+ var lat2 = point2.lat;
1729
+ var lng2 = point2.lng;
1730
+ var R = 6371; // Earth radius in kilometers
1731
+ var dLat = (lat2 - lat1) * (Math.PI / 180);
1732
+ var dLng = (lng2 - lng1) * (Math.PI / 180);
1733
+ var a = Math.sin(dLat / 2) * Math.sin(dLat / 2) +
1734
+ Math.cos((lat1 * Math.PI) / 180) *
1735
+ Math.cos((lat2 * Math.PI) / 180) *
1736
+ Math.sin(dLng / 2) *
1737
+ Math.sin(dLng / 2);
1738
+ var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));
1739
+ var distance = R * c;
1740
+ return distance;
1741
+ };
1742
+ // To calculate nearest distance from marker
1743
+ var nearestNeighborAlgorithm = function (startingPoint, unvisitedPoints) {
1744
+ var e_1, _a;
1745
+ var currentPoint = startingPoint;
1746
+ var path = [currentPoint];
1747
+ var visitedPoints = new Set([currentPoint]);
1748
+ while (unvisitedPoints.length > 0) {
1749
+ var nearestPoint = null;
1750
+ var minDistance = Number.POSITIVE_INFINITY;
1751
+ try {
1752
+ for (var unvisitedPoints_1 = (e_1 = void 0, __values(unvisitedPoints)), unvisitedPoints_1_1 = unvisitedPoints_1.next(); !unvisitedPoints_1_1.done; unvisitedPoints_1_1 = unvisitedPoints_1.next()) {
1753
+ var point = unvisitedPoints_1_1.value;
1754
+ var distance = calculateDistance(currentPoint, point);
1755
+ if (distance < minDistance) {
1756
+ minDistance = distance;
1757
+ nearestPoint = point;
1758
+ }
1759
+ }
1760
+ }
1761
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
1762
+ finally {
1763
+ try {
1764
+ if (unvisitedPoints_1_1 && !unvisitedPoints_1_1.done && (_a = unvisitedPoints_1.return)) _a.call(unvisitedPoints_1);
1765
+ }
1766
+ finally { if (e_1) throw e_1.error; }
1767
+ }
1768
+ path.push(nearestPoint);
1769
+ visitedPoints.add(nearestPoint);
1770
+ currentPoint = nearestPoint;
1771
+ unvisitedPoints = unvisitedPoints.filter(function (point) { return !visitedPoints.has(point); });
1723
1772
  }
1724
- AgentInfoComponent.prototype.ngOnInit = function () {
1725
- return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
1726
- return [2 /*return*/];
1727
- }); });
1773
+ return path;
1774
+ };
1775
+ var addressConcator = function (data, config) {
1776
+ var address = config.reduce(function (accumulator, currentValue) { return accumulator + " " + kwikidToolkit.getObjectValueFromPath(data, currentValue); }, "");
1777
+ return address;
1778
+ };
1779
+
1780
+ var EStatus;
1781
+ (function (EStatus) {
1782
+ EStatus["NOT_STARTED"] = "not_started";
1783
+ EStatus["ON_GOING"] = "on_going";
1784
+ EStatus["AUDITING"] = "auditing";
1785
+ EStatus["REJECTED"] = "rejected";
1786
+ EStatus["AFTER_AUDIT"] = "after_audit";
1787
+ EStatus["COMPLETE"] = "complete";
1788
+ EStatus["WAITING"] = "waiting";
1789
+ EStatus["SESSION_EXPIRED"] = "session_expired";
1790
+ EStatus["KYC_REJECTED"] = "kyc_rejected";
1791
+ EStatus["KYC_REQUEST_REJECTED"] = "kyc_request_rejected";
1792
+ EStatus["KYC_REQUEST_ACCEPTED"] = "kyc_request_accepted";
1793
+ EStatus["KYC_RESULT_REJECTED"] = "kyc_result_rejected";
1794
+ EStatus["KYC_RESULT_APPROVED"] = "kyc_result_approved";
1795
+ EStatus["KYC_RESULT_PARTIAL_UPDATE"] = "kyc_result_partial_update";
1796
+ EStatus["KYC_RESULT_UNDER_REVIEW"] = "kyc_result_under_review";
1797
+ })(EStatus || (EStatus = {}));
1798
+ var VStatus = [
1799
+ EStatus.NOT_STARTED,
1800
+ EStatus.ON_GOING,
1801
+ EStatus.AUDITING,
1802
+ EStatus.REJECTED,
1803
+ EStatus.AFTER_AUDIT,
1804
+ EStatus.COMPLETE,
1805
+ EStatus.WAITING,
1806
+ EStatus.SESSION_EXPIRED,
1807
+ EStatus.KYC_REJECTED,
1808
+ EStatus.KYC_REQUEST_REJECTED,
1809
+ EStatus.KYC_REQUEST_ACCEPTED,
1810
+ EStatus.KYC_RESULT_REJECTED,
1811
+ EStatus.KYC_RESULT_APPROVED,
1812
+ EStatus.KYC_RESULT_PARTIAL_UPDATE,
1813
+ EStatus.KYC_RESULT_UNDER_REVIEW
1814
+ ];
1815
+
1816
+ var AgentService = /** @class */ (function () {
1817
+ function AgentService() {
1818
+ this.isListOpen = true;
1819
+ this.showMapview = false;
1820
+ this.addTaskForm = {
1821
+ key: "ADD_TASK",
1822
+ title: "Add Task",
1823
+ fields: [
1824
+ {
1825
+ key: "name",
1826
+ label: "Customer Name",
1827
+ validators: {
1828
+ required: true
1829
+ },
1830
+ properties: {
1831
+ placeholder: "Please enter the Customer Name",
1832
+ readOnly: false,
1833
+ case: "default"
1834
+ },
1835
+ type: "text"
1836
+ },
1837
+ {
1838
+ key: "phone",
1839
+ label: "Phone Number",
1840
+ validators: {
1841
+ required: true
1842
+ },
1843
+ properties: {
1844
+ countryCode: "+91",
1845
+ removeCountryCodeFromValue: true,
1846
+ phoneMaskAfterCountryCode: "##########",
1847
+ placeholder: "Please enter your Mobile Number",
1848
+ readOnly: false
1849
+ },
1850
+ type: "phone"
1851
+ },
1852
+ {
1853
+ key: "address",
1854
+ label: "Address",
1855
+ validators: {
1856
+ required: true
1857
+ },
1858
+ properties: {
1859
+ placeholder: "Please enter the Address",
1860
+ readOnly: false,
1861
+ case: "default"
1862
+ },
1863
+ type: "text"
1864
+ },
1865
+ {
1866
+ key: "city",
1867
+ label: "City",
1868
+ validators: {
1869
+ required: true
1870
+ },
1871
+ properties: {
1872
+ placeholder: "Please enter the City",
1873
+ readOnly: false,
1874
+ case: "default"
1875
+ },
1876
+ type: "text"
1877
+ },
1878
+ {
1879
+ key: "location",
1880
+ label: "Location URL",
1881
+ validators: {
1882
+ required: true
1883
+ },
1884
+ properties: {
1885
+ placeholder: "Please enter the Location URL",
1886
+ readOnly: false,
1887
+ case: "default"
1888
+ },
1889
+ type: "text"
1890
+ }
1891
+ ],
1892
+ properties: {
1893
+ header: {
1894
+ title: {
1895
+ hidden: true,
1896
+ label: "Add Task"
1897
+ },
1898
+ steps: {
1899
+ hidden: true
1900
+ },
1901
+ logo: {
1902
+ hidden: true
1903
+ }
1904
+ },
1905
+ footer: {
1906
+ viewFormsButton: {
1907
+ hidden: true,
1908
+ label: "View Forms"
1909
+ },
1910
+ saveButton: {
1911
+ hidden: false,
1912
+ label: "Submit"
1913
+ }
1914
+ }
1915
+ }
1916
+ };
1917
+ this.notRequiredStatus = [
1918
+ EStatus.REJECTED,
1919
+ EStatus.AFTER_AUDIT,
1920
+ EStatus.COMPLETE,
1921
+ EStatus.SESSION_EXPIRED,
1922
+ EStatus.KYC_REJECTED,
1923
+ EStatus.KYC_RESULT_APPROVED,
1924
+ EStatus.KYC_RESULT_REJECTED,
1925
+ EStatus.KYC_RESULT_UNDER_REVIEW,
1926
+ EStatus.KYC_REQUEST_REJECTED
1927
+ ];
1928
+ }
1929
+ AgentService.prototype.ngOnInit = function () { };
1930
+ AgentService.prototype.setAgentConfig = function (config) {
1931
+ this.config = config;
1728
1932
  };
1729
- return AgentInfoComponent;
1933
+ AgentService.prototype.toggleMapview = function () {
1934
+ this.showMapview = !this.showMapview;
1935
+ };
1936
+ AgentService.prototype.canStartJourney = function (status) {
1937
+ var _a, _b;
1938
+ var noneEditableStatus = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.cannotStartJourney) !== null && _b !== void 0 ? _b : this.notRequiredStatus;
1939
+ if (noneEditableStatus.includes(status)) {
1940
+ return false;
1941
+ }
1942
+ return true;
1943
+ };
1944
+ AgentService.prototype.canPlotMarkers = function (status) {
1945
+ var _a, _b;
1946
+ var nonePlottingSessions = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.dontPlotMarkers) !== null && _b !== void 0 ? _b : [];
1947
+ if (nonePlottingSessions.includes(status)) {
1948
+ return false;
1949
+ }
1950
+ return true;
1951
+ };
1952
+ return AgentService;
1730
1953
  }());
1731
- /** @nocollapse */ AgentInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
1732
- /** @nocollapse */ AgentInfoComponentcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AgentInfoComponent, selector: "agent-info", ngImport: i0__namespace, template: "Agent Info\n", styles: [""] });
1733
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, decorators: [{
1734
- type: i0.Component,
1954
+ /** @nocollapse */ AgentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
1955
+ /** @nocollapse */ AgentServiceprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, providedIn: "root" });
1956
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentService, decorators: [{
1957
+ type: i0.Injectable,
1735
1958
  args: [{
1736
- selector: 'agent-info',
1737
- templateUrl: './agent-info.component.html',
1738
- styleUrls: ['./agent-info.component.scss']
1959
+ providedIn: "root"
1739
1960
  }]
1740
1961
  }], ctorParameters: function () { return []; } });
1741
1962
 
1742
- var AgentInfoModule = /** @class */ (function () {
1743
- function AgentInfoModule() {
1963
+ var GoogleMapsService = /** @class */ (function () {
1964
+ function GoogleMapsService(agentService, mapDirectionsService, httpClient) {
1965
+ this.agentService = agentService;
1966
+ this.mapDirectionsService = mapDirectionsService;
1967
+ this.httpClient = httpClient;
1968
+ this.allMarkers = [];
1744
1969
  }
1745
- return AgentInfoModule;
1970
+ // To get Current Position
1971
+ GoogleMapsService.prototype.getPosition = function () {
1972
+ return new Promise(function (resolve, reject) {
1973
+ navigator.geolocation.watchPosition(function (resp) {
1974
+ resolve({
1975
+ lng: resp.coords.longitude,
1976
+ lat: resp.coords.latitude
1977
+ });
1978
+ }, function (err) {
1979
+ reject(err);
1980
+ });
1981
+ });
1982
+ };
1983
+ // To Initialize Google Maps
1984
+ GoogleMapsService.prototype.initializeMap = function () {
1985
+ return __awaiter(this, void 0, void 0, function () {
1986
+ var _o;
1987
+ return __generator(this, function (_p) {
1988
+ switch (_p.label) {
1989
+ case 0:
1990
+ _o = this;
1991
+ return [4 /*yield*/, this.getPosition()];
1992
+ case 1:
1993
+ _o.myPosition = _p.sent();
1994
+ this.map = {
1995
+ zoom: 10,
1996
+ center: this.myPosition,
1997
+ streetViewControl: false,
1998
+ mapTypeControl: false,
1999
+ fullscreenControl: false,
2000
+ zoomControl: false
2001
+ };
2002
+ return [2 /*return*/];
2003
+ }
2004
+ });
2005
+ });
2006
+ };
2007
+ // To extract Location from the Task Details
2008
+ GoogleMapsService.prototype.getLocation = function (task) {
2009
+ return __awaiter(this, void 0, void 0, function () {
2010
+ var _this = this;
2011
+ return __generator(this, function (_o) {
2012
+ return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
2013
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, encodedAddres, config, address, config, address, address, url, response, data, isValidLocation, location;
2014
+ return __generator(this, function (_o) {
2015
+ switch (_o.label) {
2016
+ case 0:
2017
+ // If Fetch Address from Multiple Paths
2018
+ if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPaths")) {
2019
+ config = this.agentService.config.dashboard.taskLocationPaths;
2020
+ address = addressConcator(task, config);
2021
+ // Encode the Address in URI
2022
+ encodedAddres = encodeURI(address);
2023
+ }
2024
+ // If Fetch Address from Single Path
2025
+ else if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPath")) {
2026
+ config = this.agentService.config.dashboard.taskLocationPath;
2027
+ address = kwikidToolkit.getObjectValueFromPath(task, config);
2028
+ // Encode the Address in URI
2029
+ encodedAddres = encodeURI(address);
2030
+ }
2031
+ // Default Address Paths Avaiable
2032
+ else {
2033
+ address = (_k = (_j = (_g = (_d = (_c = (_b = (_a = task === null || task === void 0 ? void 0 : task.extras) === null || _a === void 0 ? void 0 : _a.task_details) === null || _b === void 0 ? void 0 : _b.customer_details) === null || _c === void 0 ? void 0 : _c.address) !== null && _d !== void 0 ? _d : (_f = (_e = task === null || task === void 0 ? void 0 : task.task_details) === null || _e === void 0 ? void 0 : _e.customer_details) === null || _f === void 0 ? void 0 : _f.address) !== null && _g !== void 0 ? _g : (_h = task === null || task === void 0 ? void 0 : task.extras) === null || _h === void 0 ? void 0 : _h.address) !== null && _j !== void 0 ? _j : task === null || task === void 0 ? void 0 : task.address) !== null && _k !== void 0 ? _k : "";
2034
+ // Encode the Address in URI
2035
+ encodedAddres = encodeURI(address);
2036
+ }
2037
+ url = "https://maps.googleapis.com/maps/api/geocode/json?key=" + this.apiKey + "&address=" + encodedAddres;
2038
+ return [4 /*yield*/, fetch(url)];
2039
+ case 1:
2040
+ response = _o.sent();
2041
+ return [4 /*yield*/, response.json()];
2042
+ case 2:
2043
+ data = _o.sent();
2044
+ isValidLocation = kwikidToolkit.isNotEmptyArray(data === null || data === void 0 ? void 0 : data.results);
2045
+ location = isValidLocation
2046
+ ? (_m = (_l = data === null || data === void 0 ? void 0 : data.results[0]) === null || _l === void 0 ? void 0 : _l.geometry) === null || _m === void 0 ? void 0 : _m.location
2047
+ : { lat: null, lng: null };
2048
+ // Set Location validation & Google Maps URL
2049
+ location.isValidLocation = isValidLocation;
2050
+ location.googleMapsUrl = "https://www.google.com/maps/place/" + (location === null || location === void 0 ? void 0 : location.lat) + "," + (location === null || location === void 0 ? void 0 : location.lng);
2051
+ resolve(location);
2052
+ return [2 /*return*/];
2053
+ }
2054
+ });
2055
+ }); })];
2056
+ });
2057
+ });
2058
+ };
2059
+ // Get Tasks | Markers Location Co Ordinates
2060
+ GoogleMapsService.prototype.getMarkersLocation = function (myMarker, tasks) {
2061
+ return __awaiter(this, void 0, void 0, function () {
2062
+ var _this = this;
2063
+ return __generator(this, function (_o) {
2064
+ return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
2065
+ var markers, promises;
2066
+ var _this = this;
2067
+ return __generator(this, function (_o) {
2068
+ switch (_o.label) {
2069
+ case 0:
2070
+ markers = [];
2071
+ markers.push(myMarker);
2072
+ promises = tasks.map(function (task) { return __awaiter(_this, void 0, void 0, function () {
2073
+ var marker;
2074
+ return __generator(this, function (_o) {
2075
+ switch (_o.label) {
2076
+ case 0: return [4 /*yield*/, this.getLocation(task)];
2077
+ case 1:
2078
+ marker = _o.sent();
2079
+ task = Object.assign(Object.assign({}, task), marker);
2080
+ markers.push(task);
2081
+ return [2 /*return*/];
2082
+ }
2083
+ });
2084
+ }); });
2085
+ return [4 /*yield*/, Promise.all(promises)];
2086
+ case 1:
2087
+ _o.sent();
2088
+ resolve(markers);
2089
+ return [2 /*return*/];
2090
+ }
2091
+ });
2092
+ }); })];
2093
+ });
2094
+ });
2095
+ };
2096
+ // Plot All Markers
2097
+ GoogleMapsService.prototype.plotAllMarkers = function (tasks) {
2098
+ return __awaiter(this, void 0, void 0, function () {
2099
+ var _this = this;
2100
+ return __generator(this, function (_o) {
2101
+ return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
2102
+ var path, promises;
2103
+ var _this = this;
2104
+ return __generator(this, function (_o) {
2105
+ switch (_o.label) {
2106
+ case 0:
2107
+ path = [];
2108
+ promises = tasks.map(function (task) {
2109
+ if (task === null || task === void 0 ? void 0 : task.isValidLocation) {
2110
+ path.push({
2111
+ location: task,
2112
+ stopover: true
2113
+ });
2114
+ _this.allMarkers.push(task);
2115
+ }
2116
+ });
2117
+ return [4 /*yield*/, Promise.all(promises)];
2118
+ case 1:
2119
+ _o.sent();
2120
+ resolve(path);
2121
+ return [2 /*return*/];
2122
+ }
2123
+ });
2124
+ }); })];
2125
+ });
2126
+ });
2127
+ };
2128
+ // To Plot Directions for All Tasks
2129
+ GoogleMapsService.prototype.plotDirectionsForAllTasks = function (tasks) {
2130
+ return __awaiter(this, void 0, void 0, function () {
2131
+ var myMarker, markers, startingPoint, unvisitedWaypoints, optimizedRoute, path, request;
2132
+ return __generator(this, function (_o) {
2133
+ switch (_o.label) {
2134
+ case 0:
2135
+ this.allMarkers = [];
2136
+ myMarker = {
2137
+ lat: this.myPosition.lat,
2138
+ lng: this.myPosition.lng,
2139
+ title: 0,
2140
+ color: "red"
2141
+ };
2142
+ return [4 /*yield*/, this.getMarkersLocation(myMarker, tasks)];
2143
+ case 1:
2144
+ markers = _o.sent();
2145
+ startingPoint = markers[0];
2146
+ unvisitedWaypoints = markers.slice(1);
2147
+ optimizedRoute = nearestNeighborAlgorithm(startingPoint, unvisitedWaypoints);
2148
+ // Sort All Tasks as per optimized routes
2149
+ tasks = optimizedRoute.slice(1);
2150
+ this.allMarkers = [myMarker];
2151
+ return [4 /*yield*/, this.plotAllMarkers(tasks)];
2152
+ case 2:
2153
+ path = _o.sent();
2154
+ request = {
2155
+ origin: this.myPosition,
2156
+ destination: this.myPosition,
2157
+ waypoints: path,
2158
+ travelMode: google.maps.TravelMode.DRIVING
2159
+ };
2160
+ this.directionsRenderOption = {
2161
+ suppressMarkers: true
2162
+ };
2163
+ this.directionsResults$ = this.mapDirectionsService
2164
+ .route(request)
2165
+ .pipe(operators.map(function (response) { return response.result; }));
2166
+ this.directionsResults$.subscribe(function (val) { });
2167
+ this.allDirectionsResults$ = this.directionsResults$;
2168
+ return [2 /*return*/, tasks];
2169
+ }
2170
+ });
2171
+ });
2172
+ };
2173
+ // To Plot Directions for Selected Tasks
2174
+ GoogleMapsService.prototype.plotDirectionsForSelectedTask = function (task) {
2175
+ if (task != null) {
2176
+ var taskMarker = task;
2177
+ // If Location is Available in Task Details
2178
+ if (taskMarker === null || taskMarker === void 0 ? void 0 : taskMarker.isValidLocation) {
2179
+ var request = {
2180
+ origin: this.myPosition,
2181
+ destination: taskMarker,
2182
+ optimizeWaypoints: true,
2183
+ travelMode: google.maps.TravelMode.DRIVING
2184
+ };
2185
+ this.directionsResults$ = this.mapDirectionsService
2186
+ .route(request)
2187
+ .pipe(operators.map(function (response) { return response.result; }));
2188
+ this.directionsResults$.subscribe();
2189
+ }
2190
+ else {
2191
+ alert("No Location Available");
2192
+ this.directionsResults$ = this.allDirectionsResults$;
2193
+ }
2194
+ }
2195
+ else {
2196
+ this.directionsResults$ = this.allDirectionsResults$;
2197
+ }
2198
+ };
2199
+ return GoogleMapsService;
1746
2200
  }());
1747
- /** @nocollapse */ AgentInfoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1748
- /** @nocollapse */ AgentInfoModulemod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, declarations: [AgentInfoComponent], imports: [i3$1.CommonModule,
1749
- i2$1.FormsModule,
1750
- i2$1.ReactiveFormsModule,
1751
- i1.KwikUIModule,
1752
- i3$2.KwikIDFormsModule], exports: [AgentInfoComponent] });
1753
- /** @nocollapse */ AgentInfoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, imports: [[
1754
- i3$1.CommonModule,
1755
- i2$1.FormsModule,
1756
- i2$1.ReactiveFormsModule,
1757
- i1.KwikUIModule,
1758
- i3$2.KwikIDFormsModule
1759
- ]] });
1760
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, decorators: [{
1761
- type: i0.NgModule,
2201
+ /** @nocollapse */ GoogleMapsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, deps: [{ token: AgentService }, { token: i2__namespace$2.MapDirectionsService }, { token: i3__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2202
+ /** @nocollapse */ GoogleMapsServiceprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, providedIn: "root" });
2203
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: GoogleMapsService, decorators: [{
2204
+ type: i0.Injectable,
1762
2205
  args: [{
1763
- declarations: [AgentInfoComponent],
1764
- imports: [
1765
- i3$1.CommonModule,
1766
- i2$1.FormsModule,
1767
- i2$1.ReactiveFormsModule,
1768
- i1.KwikUIModule,
1769
- i3$2.KwikIDFormsModule
1770
- ],
1771
- exports: [AgentInfoComponent]
2206
+ providedIn: "root"
1772
2207
  }]
1773
- }] });
2208
+ }], ctorParameters: function () { return [{ type: AgentService }, { type: i2__namespace$2.MapDirectionsService }, { type: i3__namespace$2.HttpClient }]; }, propDecorators: { directionsRenders: [{
2209
+ type: i0.ViewChildren,
2210
+ args: ["directionsRender"]
2211
+ }] } });
1774
2212
 
1775
- var BottomSheetModule = /** @class */ (function () {
1776
- function BottomSheetModule() {
2213
+ var OpenStreetMapsService = /** @class */ (function () {
2214
+ function OpenStreetMapsService(agentService, mapDirectionsService, httpClient) {
2215
+ this.agentService = agentService;
2216
+ this.mapDirectionsService = mapDirectionsService;
2217
+ this.httpClient = httpClient;
2218
+ this.allMarkers = [];
1777
2219
  }
1778
- return BottomSheetModule;
2220
+ // To get Current Position
2221
+ OpenStreetMapsService.prototype.getPosition = function () {
2222
+ return new Promise(function (resolve, reject) {
2223
+ navigator.geolocation.watchPosition(function (resp) {
2224
+ resolve({
2225
+ lng: resp.coords.longitude,
2226
+ lat: resp.coords.latitude
2227
+ });
2228
+ }, function (err) {
2229
+ reject(err);
2230
+ });
2231
+ });
2232
+ };
2233
+ // To extract Location from the Task Details
2234
+ OpenStreetMapsService.prototype.getLocation = function (task) {
2235
+ return __awaiter(this, void 0, void 0, function () {
2236
+ var _this = this;
2237
+ return __generator(this, function (_q) {
2238
+ return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
2239
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, encodedAddres, config, address, config, address, address, url, response, data, isValidLocation, location;
2240
+ return __generator(this, function (_q) {
2241
+ switch (_q.label) {
2242
+ case 0:
2243
+ // If Fetch Address from Multiple Paths
2244
+ if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPaths")) {
2245
+ config = this.agentService.config.dashboard.taskLocationPaths;
2246
+ address = addressConcator(task, config);
2247
+ // Encode the Address in URI
2248
+ encodedAddres = encodeURI(address);
2249
+ }
2250
+ // If Fetch Address from Single Path
2251
+ else if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskLocationPath")) {
2252
+ config = this.agentService.config.dashboard.taskLocationPath;
2253
+ address = kwikidToolkit.getObjectValueFromPath(task, config);
2254
+ // Encode the Address in URI
2255
+ encodedAddres = encodeURI(address);
2256
+ }
2257
+ // Default Address Paths Avaiable
2258
+ else {
2259
+ address = (_k = (_j = (_g = (_d = (_c = (_b = (_a = task === null || task === void 0 ? void 0 : task.extras) === null || _a === void 0 ? void 0 : _a.task_details) === null || _b === void 0 ? void 0 : _b.customer_details) === null || _c === void 0 ? void 0 : _c.address) !== null && _d !== void 0 ? _d : (_f = (_e = task === null || task === void 0 ? void 0 : task.task_details) === null || _e === void 0 ? void 0 : _e.customer_details) === null || _f === void 0 ? void 0 : _f.address) !== null && _g !== void 0 ? _g : (_h = task === null || task === void 0 ? void 0 : task.extras) === null || _h === void 0 ? void 0 : _h.address) !== null && _j !== void 0 ? _j : task === null || task === void 0 ? void 0 : task.address) !== null && _k !== void 0 ? _k : "";
2260
+ // Encode the Address in URI
2261
+ encodedAddres = encodeURI(address);
2262
+ }
2263
+ url = "https://nominatim.openstreetmap.org/search?q=" + encodedAddres + "&format=json";
2264
+ return [4 /*yield*/, fetch(url)];
2265
+ case 1:
2266
+ response = _q.sent();
2267
+ return [4 /*yield*/, response.json()];
2268
+ case 2:
2269
+ data = _q.sent();
2270
+ isValidLocation = kwikidToolkit.isNotEmptyArray(data) && ((_l = data[0]) === null || _l === void 0 ? void 0 : _l.lat) & ((_m = data[0]) === null || _m === void 0 ? void 0 : _m.lon);
2271
+ location = isValidLocation
2272
+ ? { lat: (_o = data[0]) === null || _o === void 0 ? void 0 : _o.lat, lng: (_p = data[0]) === null || _p === void 0 ? void 0 : _p.lon }
2273
+ : { lat: null, lng: null };
2274
+ // Set Location validation & Google Maps URL
2275
+ location.isValidLocation = isValidLocation;
2276
+ location.color = isValidLocation ? "blue" : "red";
2277
+ location.googleMapsUrl = "https://www.google.com/maps/place/" + (location === null || location === void 0 ? void 0 : location.lat) + "," + (location === null || location === void 0 ? void 0 : location.lng);
2278
+ resolve(location);
2279
+ return [2 /*return*/];
2280
+ }
2281
+ });
2282
+ }); })];
2283
+ });
2284
+ });
2285
+ };
2286
+ // Get Tasks | Markers Location Co Ordinates
2287
+ OpenStreetMapsService.prototype.getMarkersLocation = function (myMarker, tasks) {
2288
+ return __awaiter(this, void 0, void 0, function () {
2289
+ var _this = this;
2290
+ return __generator(this, function (_q) {
2291
+ return [2 /*return*/, new Promise(function (resolve) { return __awaiter(_this, void 0, void 0, function () {
2292
+ var markers, promises;
2293
+ var _this = this;
2294
+ return __generator(this, function (_q) {
2295
+ switch (_q.label) {
2296
+ case 0:
2297
+ markers = [];
2298
+ markers.push(myMarker);
2299
+ promises = tasks.map(function (task) { return __awaiter(_this, void 0, void 0, function () {
2300
+ var marker;
2301
+ return __generator(this, function (_q) {
2302
+ switch (_q.label) {
2303
+ case 0: return [4 /*yield*/, this.getLocation(task)];
2304
+ case 1:
2305
+ marker = _q.sent();
2306
+ task = Object.assign(Object.assign({}, task), marker);
2307
+ markers.push(task);
2308
+ return [2 /*return*/];
2309
+ }
2310
+ });
2311
+ }); });
2312
+ return [4 /*yield*/, Promise.all(promises)];
2313
+ case 1:
2314
+ _q.sent();
2315
+ resolve(markers);
2316
+ return [2 /*return*/];
2317
+ }
2318
+ });
2319
+ }); })];
2320
+ });
2321
+ });
2322
+ };
2323
+ // To Initialize Open Street Map
2324
+ OpenStreetMapsService.prototype.initializeMap = function () {
2325
+ return __awaiter(this, void 0, void 0, function () {
2326
+ var _q;
2327
+ return __generator(this, function (_r) {
2328
+ switch (_r.label) {
2329
+ case 0:
2330
+ console.log("Running Init Open Street Maps");
2331
+ _q = this;
2332
+ return [4 /*yield*/, this.getPosition()];
2333
+ case 1:
2334
+ _q.myPosition = _r.sent();
2335
+ this.map = L__namespace.map("map", {
2336
+ center: [this.myPosition.lat, this.myPosition.lng],
2337
+ zoom: 11
2338
+ });
2339
+ L__namespace.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").addTo(this.map);
2340
+ return [2 /*return*/];
2341
+ }
2342
+ });
2343
+ });
2344
+ };
2345
+ // To Add Open Street Marker in Map
2346
+ OpenStreetMapsService.prototype.addMarker = function (_q) {
2347
+ var lat = _q.lat, lng = _q.lng, title = _q.title, color = _q.color;
2348
+ L__namespace.marker([lat, lng], {
2349
+ icon: L__namespace.icon({
2350
+ iconUrl: color == "red"
2351
+ ? "https://kwikid.s3.ap-south-1.amazonaws.com/CONFIG/USER/assets/map-marker-0.png"
2352
+ : "https://kwikid.s3.ap-south-1.amazonaws.com/CONFIG/USER/assets/map-marker-1.png"
2353
+ })
2354
+ })
2355
+ .addTo(this.map)
2356
+ .bindPopup(title);
2357
+ };
2358
+ // To Plot Open Street Directions for All Tasks
2359
+ OpenStreetMapsService.prototype.plotDirectionsForAllTasks = function (tasks) {
2360
+ return __awaiter(this, void 0, void 0, function () {
2361
+ var myMarker, _q, startingPoint, unvisitedWaypoints, optimizedRoute, styles;
2362
+ var _this = this;
2363
+ return __generator(this, function (_r) {
2364
+ switch (_r.label) {
2365
+ case 0:
2366
+ if (!this.map) return [3 /*break*/, 2];
2367
+ this.allMarkers = [];
2368
+ myMarker = {
2369
+ lat: this.myPosition.lat,
2370
+ lng: this.myPosition.lng,
2371
+ title: 0,
2372
+ color: "red"
2373
+ };
2374
+ this.addMarker(myMarker);
2375
+ this.allMarkers.push(myMarker);
2376
+ // Create Markers for all Tasks
2377
+ _q = this;
2378
+ return [4 /*yield*/, this.getMarkersLocation(myMarker, tasks)];
2379
+ case 1:
2380
+ // Create Markers for all Tasks
2381
+ _q.allMarkers = _r.sent();
2382
+ startingPoint = this.allMarkers[0];
2383
+ unvisitedWaypoints = this.allMarkers.slice(1);
2384
+ optimizedRoute = nearestNeighborAlgorithm(startingPoint, unvisitedWaypoints);
2385
+ // Sort All Markers as per optimized routes
2386
+ this.allMarkers = this.sortTasksAsPerDistance(optimizedRoute, this.allMarkers, true);
2387
+ // Sort All Tasks as per optimized routes
2388
+ tasks = this.sortTasksAsPerDistance(optimizedRoute.slice(1), tasks, false);
2389
+ // Plot Markers for All Tasks
2390
+ tasks.map(function (task) {
2391
+ if (task === null || task === void 0 ? void 0 : task.isValidLocation) {
2392
+ var marker = _this.getLocation(task);
2393
+ _this.addMarker(marker);
2394
+ }
2395
+ });
2396
+ styles = [
2397
+ { color: "blue", opacity: 1, weight: 8 },
2398
+ { color: "white", opacity: 0.6, weight: 12 }
2399
+ ];
2400
+ // Set Routes for all Tasks
2401
+ this.allTasksRoutes = this.setRoutes(this.allMarkers, styles);
2402
+ this.fitMapBounds();
2403
+ _r.label = 2;
2404
+ case 2: return [2 /*return*/, tasks];
2405
+ }
2406
+ });
2407
+ });
2408
+ };
2409
+ // To plot Open Street Direction for selected Task
2410
+ OpenStreetMapsService.prototype.plotDirectionsForSelectedTask = function (task) {
2411
+ if (task !== null) {
2412
+ // Remove Previously Selected Task Route
2413
+ if (this.selectedTaskRoutes) {
2414
+ this.map.removeControl(this.selectedTaskRoutes);
2415
+ }
2416
+ // Remove All Tasks Routes
2417
+ if (this.allTasksRoutes) {
2418
+ this.map.removeControl(this.allTasksRoutes);
2419
+ }
2420
+ var taskMarker = task;
2421
+ // If Location is Available in Task Details
2422
+ if (taskMarker.color != "red") {
2423
+ var markers = [this.allMarkers[0], taskMarker];
2424
+ var styles = [
2425
+ { color: "green", opacity: 1, weight: 8 },
2426
+ { color: "white", opacity: 0.4, weight: 12 }
2427
+ ];
2428
+ this.selectedTaskRoutes = this.setRoutes(markers, styles);
2429
+ this.setSelectedTaskDistanceAndTime();
2430
+ }
2431
+ else {
2432
+ alert("No Location Available");
2433
+ }
2434
+ }
2435
+ // Set All Tasks Routes Again & Remove Selected Tasks route
2436
+ else {
2437
+ if (this.selectedTaskRoutes) {
2438
+ this.map.removeControl(this.selectedTaskRoutes);
2439
+ }
2440
+ this.map.addControl(this.allTasksRoutes);
2441
+ this.selectedTaskRoutes = undefined;
2442
+ }
2443
+ this.fitMapBounds();
2444
+ };
2445
+ // Get Distance & Time of Selected Task
2446
+ OpenStreetMapsService.prototype.getSelectedTaskDistanceAndTime = function () {
2447
+ return this.selectedTaskDistanceAndTime;
2448
+ };
2449
+ // Set Distance & Time of Selected Task
2450
+ OpenStreetMapsService.prototype.setSelectedTaskDistanceAndTime = function () {
2451
+ this.selectedTaskRoutes.on("routesfound", function (e) {
2452
+ var routes = e.routes;
2453
+ var summary = routes[0].summary;
2454
+ var distance = summary.totalDistance / 1000;
2455
+ var time = Math.round((summary.totalTime % 3600) / 60);
2456
+ this.selectedTaskDistanceAndTime = {
2457
+ distance: distance,
2458
+ time: time
2459
+ };
2460
+ });
2461
+ };
2462
+ // To sort Open Street Maps Task as per nearest distance
2463
+ OpenStreetMapsService.prototype.sortTasksAsPerDistance = function (order, tasks, isMarker) {
2464
+ var sortedTasks = [];
2465
+ for (var i = 0; i < tasks.length; i++) {
2466
+ var title = isMarker ? order[i].title : order[i].title - 1;
2467
+ var task = tasks[title];
2468
+ sortedTasks.push(task);
2469
+ }
2470
+ return sortedTasks;
2471
+ };
2472
+ // To set Open Street routes in the maps
2473
+ OpenStreetMapsService.prototype.setRoutes = function (markers, styles) {
2474
+ return L__namespace.Routing.control({
2475
+ waypoints: markers,
2476
+ lineOptions: {
2477
+ styles: styles
2478
+ },
2479
+ createMarker: function () {
2480
+ return null;
2481
+ },
2482
+ routeWhileDragging: true
2483
+ }).addTo(this.map);
2484
+ };
2485
+ // To set Open Street view point on the map
2486
+ OpenStreetMapsService.prototype.fitMapBounds = function () {
2487
+ var markerLatLngs = this.allMarkers.map(function (marker) { return L__namespace.latLng(marker.lat, marker.lng); });
2488
+ this.map.fitBounds(markerLatLngs);
2489
+ };
2490
+ return OpenStreetMapsService;
1779
2491
  }());
1780
- /** @nocollapse */ BottomSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1781
- /** @nocollapse */ BottomSheetModulemod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, declarations: [BottomSheetComponent], imports: [i3$1.CommonModule,
1782
- i2$1.FormsModule,
1783
- i2$1.ReactiveFormsModule,
1784
- i3.TuiSvgModule,
1785
- i1.KwikUIModule,
1786
- i3$2.KwikIDFormsModule], exports: [BottomSheetComponent] });
1787
- /** @nocollapse */ BottomSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, imports: [[
1788
- i3$1.CommonModule,
1789
- i2$1.FormsModule,
1790
- i2$1.ReactiveFormsModule,
1791
- i3.TuiSvgModule,
1792
- i1.KwikUIModule,
1793
- i3$2.KwikIDFormsModule
1794
- ]] });
1795
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, decorators: [{
1796
- type: i0.NgModule,
2492
+ /** @nocollapse */ OpenStreetMapsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, deps: [{ token: AgentService }, { token: i2__namespace$2.MapDirectionsService }, { token: i3__namespace$2.HttpClient }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
2493
+ /** @nocollapse */ OpenStreetMapsServiceprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, providedIn: "root" });
2494
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: OpenStreetMapsService, decorators: [{
2495
+ type: i0.Injectable,
1797
2496
  args: [{
1798
- declarations: [BottomSheetComponent],
1799
- imports: [
1800
- i3$1.CommonModule,
1801
- i2$1.FormsModule,
1802
- i2$1.ReactiveFormsModule,
1803
- i3.TuiSvgModule,
1804
- i1.KwikUIModule,
1805
- i3$2.KwikIDFormsModule
1806
- ],
1807
- exports: [BottomSheetComponent]
2497
+ providedIn: "root"
1808
2498
  }]
1809
- }] });
2499
+ }], ctorParameters: function () { return [{ type: AgentService }, { type: i2__namespace$2.MapDirectionsService }, { type: i3__namespace$2.HttpClient }]; }, propDecorators: { directionsRenders: [{
2500
+ type: i0.ViewChildren,
2501
+ args: ["directionsRender"]
2502
+ }] } });
1810
2503
 
1811
- var MapViewModule = /** @class */ (function () {
1812
- function MapViewModule() {
2504
+ var StatusPillComponent = /** @class */ (function () {
2505
+ function StatusPillComponent() {
2506
+ this.status = EStatus.WAITING;
2507
+ this.statusText = "";
2508
+ this.statusClass = {};
1813
2509
  }
1814
- return MapViewModule;
2510
+ StatusPillComponent.prototype.ngOnInit = function () {
2511
+ this.parseStatus(this.status);
2512
+ };
2513
+ StatusPillComponent.prototype.ngOnChanges = function (changes) {
2514
+ var verifyChange = function (key) {
2515
+ return changes.hasOwnProperty(key) && !changes[key].firstChange;
2516
+ };
2517
+ if (verifyChange("status")) {
2518
+ this.status = changes.status.currentValue;
2519
+ this.parseStatus(this.status);
2520
+ }
2521
+ };
2522
+ StatusPillComponent.prototype.parseStatus = function (status) {
2523
+ if (kwikidToolkit.isEmptyValue(status)) {
2524
+ this.status = EStatus.WAITING;
2525
+ }
2526
+ this.statusText = this.getStatusLabel(status);
2527
+ this.statusClass = this.getStatusPillClass(status);
2528
+ };
2529
+ StatusPillComponent.prototype.getStatusPillClass = function (status) {
2530
+ var newStatus = status
2531
+ .replace("_", "-")
2532
+ .replace("_", "-")
2533
+ .replace("_", "-");
2534
+ return "status-pill " + newStatus;
2535
+ };
2536
+ StatusPillComponent.prototype.getStatusLabel = function (status) {
2537
+ return status.replace("_", " ").replace("_", " ").replace("_", " ");
2538
+ };
2539
+ return StatusPillComponent;
1815
2540
  }());
1816
- /** @nocollapse */ MapViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1817
- /** @nocollapse */ MapViewModulemod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, declarations: [MapViewComponent], imports: [i3$1.CommonModule,
1818
- i2$1.FormsModule,
1819
- i2$1.ReactiveFormsModule,
1820
- i1.KwikUIModule,
1821
- i3$2.KwikIDFormsModule], exports: [MapViewComponent] });
1822
- /** @nocollapse */ MapViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, imports: [[
1823
- i3$1.CommonModule,
1824
- i2$1.FormsModule,
1825
- i2$1.ReactiveFormsModule,
1826
- i1.KwikUIModule,
1827
- i3$2.KwikIDFormsModule
1828
- ]] });
1829
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, decorators: [{
1830
- type: i0.NgModule,
2541
+ /** @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 });
2542
+ /** @nocollapse */ StatusPillComponentcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: StatusPillComponent, selector: "status-pill", inputs: { status: "status" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div [ngClass]=\"getStatusPillClass(status)\">{{ getStatusLabel(status) }}</div>\n", styles: [".status-pill{background-color:#dedede;padding:.1rem .5rem;border-radius:1rem;font-size:.7rem;color:#222}.complete,.kyc-request-accepted,.kyc-result-approved{background-color:#d7faee;color:#01663e}.rejected,.kyc-request-rejected,.kyc-result-rejected,.kyc-rejected{background:#f9dade;color:#eb3434}.auditing,.on-going,.kyc-result-partial-update,.kyc-resut-partial-update{background-color:#c1e3f4;color:#023b57}.after-audit,.waiting,.kyc-result-under-review{background-color:#f5ecb5;color:#000}\n"], directives: [{ type: i7__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
2543
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: StatusPillComponent, decorators: [{
2544
+ type: i0.Component,
1831
2545
  args: [{
1832
- declarations: [MapViewComponent],
1833
- imports: [
1834
- i3$1.CommonModule,
1835
- i2$1.FormsModule,
1836
- i2$1.ReactiveFormsModule,
1837
- i1.KwikUIModule,
1838
- i3$2.KwikIDFormsModule
1839
- ],
1840
- exports: [MapViewComponent]
2546
+ selector: "status-pill",
2547
+ templateUrl: "./status-pill.component.html",
2548
+ styleUrls: ["./status-pill.component.css"]
1841
2549
  }]
1842
- }] });
2550
+ }], propDecorators: { status: [{
2551
+ type: i0.Input
2552
+ }] } });
1843
2553
 
1844
- var PrimaryActionsModule = /** @class */ (function () {
1845
- function PrimaryActionsModule() {
2554
+ var ActionButtonComponent = /** @class */ (function () {
2555
+ function ActionButtonComponent() {
2556
+ var _this = this;
2557
+ this.action = {};
2558
+ this.config = {};
2559
+ this.customer = {};
2560
+ this.disabled = false;
2561
+ this.hidden = false;
2562
+ this.onClickPerformAction = new i0.EventEmitter();
2563
+ this.takeAction = function (action) {
2564
+ switch (action.key) {
2565
+ case "BUTTON_DISABLE":
2566
+ _this.disabled = true;
2567
+ break;
2568
+ case "BUTTON_ENABLE":
2569
+ _this.disabled = false;
2570
+ break;
2571
+ case "BUTTON_HIDE":
2572
+ _this.hidden = true;
2573
+ break;
2574
+ case "BUTTON_SHOW":
2575
+ _this.hidden = false;
2576
+ break;
2577
+ default:
2578
+ break;
2579
+ }
2580
+ };
1846
2581
  }
1847
- return PrimaryActionsModule;
1848
- }());
1849
- /** @nocollapse */ PrimaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1850
- /** @nocollapse */ PrimaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, declarations: [PrimaryActionsComponent], imports: [i3$1.CommonModule,
1851
- i2$1.FormsModule,
1852
- i2$1.ReactiveFormsModule,
2582
+ ActionButtonComponent.prototype.ngOnInit = function () { };
2583
+ ActionButtonComponent.prototype.ngOnChanges = function (changes) {
2584
+ var _a;
2585
+ var verifyChange = function (key) {
2586
+ // eslint-disable-next-line no-prototype-builtins
2587
+ return changes.hasOwnProperty(key) && !changes[key].firstChange;
2588
+ };
2589
+ if (verifyChange("action")) {
2590
+ this.action = changes.action.currentValue;
2591
+ }
2592
+ if (verifyChange("customer")) {
2593
+ this.customer = changes.customer.currentValue;
2594
+ }
2595
+ if ((_a = this.action) === null || _a === void 0 ? void 0 : _a.default) {
2596
+ this.runValidations();
2597
+ }
2598
+ };
2599
+ ActionButtonComponent.prototype.runValidations = function () {
2600
+ var _a, _b, _c, _d, _e, _f;
2601
+ return __awaiter(this, void 0, void 0, function () {
2602
+ return __generator(this, function (_g) {
2603
+ switch (_g.label) {
2604
+ case 0: return [4 /*yield*/, new kwikidToolkit.RuleEngine({
2605
+ DATA: this.customer
2606
+ }, this.takeAction).run({
2607
+ triggers: [],
2608
+ rules: (_c = (_b = (_a = this.action) === null || _a === void 0 ? void 0 : _a.default) === null || _b === void 0 ? void 0 : _b.rules) !== null && _c !== void 0 ? _c : [],
2609
+ actions: (_f = (_e = (_d = this.action) === null || _d === void 0 ? void 0 : _d.default) === null || _e === void 0 ? void 0 : _e.actions) !== null && _f !== void 0 ? _f : []
2610
+ })];
2611
+ case 1:
2612
+ _g.sent();
2613
+ return [2 /*return*/];
2614
+ }
2615
+ });
2616
+ });
2617
+ };
2618
+ ActionButtonComponent.prototype.handleOnClickPerformAction = function (action, customer) {
2619
+ this.onClickPerformAction.emit({
2620
+ action: action,
2621
+ customer: customer
2622
+ });
2623
+ };
2624
+ return ActionButtonComponent;
2625
+ }());
2626
+ /** @nocollapse */ ActionButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
2627
+ /** @nocollapse */ ActionButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ActionButtonComponent, selector: "kwikid-action-button", inputs: { action: "action", config: "config", customer: "customer" }, outputs: { onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<kwikui-button\n *ngIf=\"!hidden\"\n appearance=\"primary\"\n [disabled]=\"disabled\"\n [label]=\"action?.label\"\n [icon]=\"action?.icon\"\n [iconRight]=\"action?.iconRight\"\n size=\"s\"\n shape=\"rounded\"\n (onClick)=\"handleOnClickPerformAction(action, customer)\"\n></kwikui-button>\n", styles: [""], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
2628
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ActionButtonComponent, decorators: [{
2629
+ type: i0.Component,
2630
+ args: [{
2631
+ selector: "kwikid-action-button",
2632
+ templateUrl: "./action-button.component.html",
2633
+ styleUrls: ["./action-button.component.css"]
2634
+ }]
2635
+ }], ctorParameters: function () { return []; }, propDecorators: { action: [{
2636
+ type: i0.Input
2637
+ }], config: [{
2638
+ type: i0.Input
2639
+ }], customer: [{
2640
+ type: i0.Input
2641
+ }], onClickPerformAction: [{
2642
+ type: i0.Output
2643
+ }] } });
2644
+
2645
+ /* eslint-disable no-empty-function */
2646
+ var CustomerDetailsComponent = /** @class */ (function () {
2647
+ function CustomerDetailsComponent(agentService, googleMapsService, openStreetMapsService, cdr) {
2648
+ this.agentService = agentService;
2649
+ this.googleMapsService = googleMapsService;
2650
+ this.openStreetMapsService = openStreetMapsService;
2651
+ this.cdr = cdr;
2652
+ this.customer = {};
2653
+ this.title = "Session Details";
2654
+ this.viewTaskDetails = [];
2655
+ this.taskId = "";
2656
+ this.labelValuePairConfig = {};
2657
+ this.labelValuePairData = [];
2658
+ this.nextStep = new i0.EventEmitter();
2659
+ this.removeTask = new i0.EventEmitter();
2660
+ this.onClickPerformAction = new i0.EventEmitter();
2661
+ }
2662
+ CustomerDetailsComponent.prototype.ngOnInit = function () {
2663
+ this.parseData();
2664
+ };
2665
+ CustomerDetailsComponent.prototype.ngOnChanges = function (changes) {
2666
+ var verifyChange = function (key) {
2667
+ return changes.hasOwnProperty(key) && !changes[key].firstChange;
2668
+ };
2669
+ if (verifyChange("customer")) {
2670
+ this.customer = changes.customer.currentValue;
2671
+ this.parseData();
2672
+ }
2673
+ };
2674
+ CustomerDetailsComponent.prototype.parseData = function () {
2675
+ var _this = this;
2676
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
2677
+ var identifier = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.taskIdentifier) !== null && _c !== void 0 ? _c : "user_id";
2678
+ this.taskId = kwikidToolkit.getObjectValueFromPath(this.customer, identifier);
2679
+ var detailsConfig = [];
2680
+ if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.viewTaskDetails") &&
2681
+ kwikidToolkit.isNotEmptyArray(this.config.dashboard.viewTaskDetails)) {
2682
+ detailsConfig = this.config.dashboard.viewTaskDetails;
2683
+ var data_1 = [];
2684
+ detailsConfig.map(function (field) {
2685
+ var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.value);
2686
+ data_1.push({ label: field.label, value: value });
2687
+ return true;
2688
+ });
2689
+ this.labelValuePairData = data_1;
2690
+ }
2691
+ else if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.taskUI.details.data") &&
2692
+ kwikidToolkit.isNotEmptyArray(this.config.dashboard.taskUI.details.data)) {
2693
+ detailsConfig = this.config.dashboard.taskUI.details.data;
2694
+ var data_2 = [];
2695
+ detailsConfig.map(function (field) {
2696
+ var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.path);
2697
+ data_2.push({ label: field.label, value: value });
2698
+ return true;
2699
+ });
2700
+ this.labelValuePairData = data_2;
2701
+ }
2702
+ this.labelValuePairConfig =
2703
+ (_h = (_g = (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.taskUI) === null || _f === void 0 ? void 0 : _f.details) === null || _g === void 0 ? void 0 : _g.config) !== null && _h !== void 0 ? _h : {};
2704
+ this.title =
2705
+ (_p = (_o = (_m = (_l = (_k = (_j = this.config) === null || _j === void 0 ? void 0 : _j.dashboard) === null || _k === void 0 ? void 0 : _k.taskUI) === null || _l === void 0 ? void 0 : _l.details) === null || _m === void 0 ? void 0 : _m.header) === null || _o === void 0 ? void 0 : _o.title) !== null && _p !== void 0 ? _p : this.title;
2706
+ };
2707
+ CustomerDetailsComponent.prototype.getTaskCreationTime = function (task) {
2708
+ var _a;
2709
+ if (kwikidToolkit.checkObjectPathExists(this.agentService.config, "dashboard.taskCreationTimePath")) {
2710
+ var time = kwikidToolkit.getObjectValueFromPath(task, this.agentService.config.dashboard.taskCreationTimePath);
2711
+ return this.convertEpochToDate(time);
2712
+ }
2713
+ return this.convertEpochToDate((_a = task === null || task === void 0 ? void 0 : task.task_creation_time) !== null && _a !== void 0 ? _a : task === null || task === void 0 ? void 0 : task.start_time);
2714
+ };
2715
+ CustomerDetailsComponent.prototype.convertEpochToDate = function (epochTime) {
2716
+ if (typeof epochTime === "string")
2717
+ epochTime = Number(epochTime);
2718
+ var date = new Date(epochTime * 1000); // Convert to milliseconds
2719
+ var day = date.getDate().toString().padStart(2, "0");
2720
+ var month = (date.getMonth() + 1).toString().padStart(2, "0"); // Months are zero-based
2721
+ var year = date.getFullYear().toString();
2722
+ return day + "-" + month + "-" + year;
2723
+ };
2724
+ CustomerDetailsComponent.prototype.getTaskDetails = function (taskData) {
2725
+ return kwikidToolkit.getObjectValueFromPath(this.customer, taskData);
2726
+ };
2727
+ CustomerDetailsComponent.prototype.goToMaps = function (location) {
2728
+ window.open("" + location, "_blank");
2729
+ };
2730
+ CustomerDetailsComponent.prototype.handleOnClickNext = function (e) {
2731
+ this.nextStep.emit(e);
2732
+ };
2733
+ CustomerDetailsComponent.prototype.close = function () {
2734
+ var _a, _b;
2735
+ this.agentService.currentTaskDetails = undefined;
2736
+ if (((_b = (_a = this.agentService.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "google-maps") {
2737
+ this.googleMapsService.plotDirectionsForSelectedTask(null);
2738
+ }
2739
+ else {
2740
+ this.openStreetMapsService.plotDirectionsForSelectedTask(null);
2741
+ }
2742
+ };
2743
+ CustomerDetailsComponent.prototype.handleOnClickRemoveTask = function (task) {
2744
+ this.removeTask.emit(task);
2745
+ };
2746
+ CustomerDetailsComponent.prototype.handleOnClickPerformAction = function (event) {
2747
+ this.onClickPerformAction.emit(event);
2748
+ };
2749
+ return CustomerDetailsComponent;
2750
+ }());
2751
+ /** @nocollapse */ CustomerDetailsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, deps: [{ token: AgentService }, { token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
2752
+ /** @nocollapse */ CustomerDetailsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerDetailsComponent, selector: "customer-details", inputs: { customer: "customer", config: "config" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-details-wrapper\">\n <div>\n <kwikui-button\n icon=\"tuiIconChevronLeft\"\n label=\"Back\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"close()\"\n ></kwikui-button>\n </div>\n <div class=\"customer-details-heading\">{{ title }}</div>\n <div class=\"customer-details-body\">\n <div class=\"customer-details-user-id\">\n {{ taskId }}\n\n <status-pill\n *ngIf=\"config?.dashboard?.isShowTaskStatus\"\n [status]=\"customer.session_status\"\n ></status-pill>\n </div>\n\n <div class=\"customer-details-table\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n </div>\n\n <div\n class=\"customer-details-actions\"\n *ngIf=\"\n config?.dashboard?.taskUI?.details?.action &&\n config?.dashboard?.taskUI?.details?.action?.length > 0\n \"\n >\n <ng-container\n *ngFor=\"let action of config?.dashboard?.taskUI?.details?.action\"\n >\n <kwikid-action-button\n [action]=\"action\"\n [config]=\"config\"\n [customer]=\"customer\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-action-button>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".customer-details-wrapper{display:flex;flex-direction:column;align-items:stretch;overflow:auto;grid-gap:.5rem;gap:.5rem;padding:1.5rem;height:100%;width:100%}.customer-details-wrapper .customer-details-heading{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:1rem 0;font-size:1.5rem;font-weight:600}.customer-details-wrapper .customer-details-body{display:flex;flex-direction:column;font-size:1rem}.customer-details-wrapper .customer-details-body .customer-details-user-id{display:flex;flex-direction:row;grid-gap:.6rem;gap:.6rem;align-items:center;font-size:1.25rem;font-weight:500;padding:.5rem 0}.customer-details-wrapper .customer-details-body .customer-details-table{display:flex;grid-gap:.5rem;gap:.5rem;flex-direction:column}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-name{font-weight:500}.customer-details-wrapper .customer-details-body .customer-details-table .customer-details-table-data .customer-details-table-detail-value{word-wrap:break-word}.customer-details-wrapper .customer-details-body .customer-details-date{padding-top:1rem}.customer-details-wrapper .customer-details-body .customer-details-actions{padding:.5rem 0;display:flex;flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:flex-start;grid-gap:.5rem;gap:.5rem}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{border-radius:10px}::-webkit-scrollbar-thumb{background:lightgray;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:gray}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: ActionButtonComponent, selector: "kwikid-action-button", inputs: ["action", "config", "customer"], outputs: ["onClickPerformAction"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.Default });
2753
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerDetailsComponent, decorators: [{
2754
+ type: i0.Component,
2755
+ args: [{
2756
+ selector: "customer-details",
2757
+ templateUrl: "./customer-details.component.html",
2758
+ styleUrls: ["./customer-details.component.scss"],
2759
+ changeDetection: i0.ChangeDetectionStrategy.Default
2760
+ }]
2761
+ }], ctorParameters: function () { return [{ type: AgentService }, { type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { customer: [{
2762
+ type: i0.Input
2763
+ }], config: [{
2764
+ type: i0.Input
2765
+ }], nextStep: [{
2766
+ type: i0.Output
2767
+ }], removeTask: [{
2768
+ type: i0.Output
2769
+ }], onClickPerformAction: [{
2770
+ type: i0.Output
2771
+ }] } });
2772
+
2773
+ var CustomerTileComponent = /** @class */ (function () {
2774
+ function CustomerTileComponent(googleMapsService, openStreetMapsService, agentService, hostElement) {
2775
+ this.googleMapsService = googleMapsService;
2776
+ this.openStreetMapsService = openStreetMapsService;
2777
+ this.agentService = agentService;
2778
+ this.hostElement = hostElement;
2779
+ this.customer = {};
2780
+ this.index = undefined;
2781
+ this.isMobileView = false;
2782
+ this.viewTaskDetails = [];
2783
+ this.taskId = "";
2784
+ this.labelValuePairConfig = {};
2785
+ this.labelValuePairData = [];
2786
+ this.onClickPerformAction = new i0.EventEmitter();
2787
+ this.nextStep = new i0.EventEmitter();
2788
+ this.removeTask = new i0.EventEmitter();
2789
+ }
2790
+ CustomerTileComponent.prototype.windowResizeWatcher = function () {
2791
+ if (this.hostElement.nativeElement.offsetWidth < 600) {
2792
+ this.isMobileView = true;
2793
+ }
2794
+ else {
2795
+ this.isMobileView = false;
2796
+ }
2797
+ };
2798
+ CustomerTileComponent.prototype.ngOnInit = function () {
2799
+ this.parseData();
2800
+ };
2801
+ CustomerTileComponent.prototype.ngOnChanges = function (changes) {
2802
+ var verifyChange = function (key) {
2803
+ return changes.hasOwnProperty(key) && !changes[key].firstChange;
2804
+ };
2805
+ if (verifyChange("customer")) {
2806
+ this.customer = changes.customer.currentValue;
2807
+ this.parseData();
2808
+ }
2809
+ };
2810
+ CustomerTileComponent.prototype.parseData = function () {
2811
+ var _this = this;
2812
+ var _a, _b, _c, _d, _e, _f, _g, _h;
2813
+ var identifier = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.taskIdentifier) !== null && _c !== void 0 ? _c : "user_id";
2814
+ this.taskId = kwikidToolkit.getObjectValueFromPath(this.customer, identifier);
2815
+ var detailsConfig = [];
2816
+ if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.viewTaskDetails") &&
2817
+ kwikidToolkit.isNotEmptyArray(this.config.dashboard.viewTaskDetails)) {
2818
+ detailsConfig = this.config.dashboard.viewTaskDetails;
2819
+ var data_1 = [];
2820
+ detailsConfig.map(function (field) {
2821
+ console.log("vvvvv", field);
2822
+ var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.value);
2823
+ data_1.push({ label: field.label, value: value });
2824
+ return true;
2825
+ });
2826
+ this.labelValuePairData = data_1;
2827
+ }
2828
+ else if (kwikidToolkit.checkObjectPathExists(this.config, "dashboard.taskUI.details.data") &&
2829
+ kwikidToolkit.isNotEmptyArray(this.config.dashboard.taskUI.details.data)) {
2830
+ detailsConfig = this.config.dashboard.taskUI.details.data;
2831
+ var data_2 = [];
2832
+ detailsConfig.map(function (field) {
2833
+ var value = kwikidToolkit.getObjectValueFromPath(_this.customer, field.path);
2834
+ data_2.push({ label: field.label, value: value });
2835
+ return true;
2836
+ });
2837
+ this.labelValuePairData = data_2;
2838
+ }
2839
+ console.log("DATA", this.labelValuePairData);
2840
+ this.labelValuePairConfig =
2841
+ (_h = (_g = (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.taskUI) === null || _f === void 0 ? void 0 : _f.details) === null || _g === void 0 ? void 0 : _g.config) !== null && _h !== void 0 ? _h : {};
2842
+ };
2843
+ CustomerTileComponent.prototype.openDetails = function () {
2844
+ var _a, _b, _c, _d;
2845
+ var isDifferentTaskSelected = ((_a = this.agentService.currentTaskDetails) === null || _a === void 0 ? void 0 : _a.session_id) !==
2846
+ ((_b = this.customer) === null || _b === void 0 ? void 0 : _b.session_id);
2847
+ if (isDifferentTaskSelected) {
2848
+ this.agentService.currentTaskDetails = this.customer;
2849
+ }
2850
+ else {
2851
+ this.agentService.currentTaskDetails = undefined;
2852
+ }
2853
+ if (this.agentService.showMapview) {
2854
+ if (((_d = (_c = this.agentService.config) === null || _c === void 0 ? void 0 : _c.dashboard) === null || _d === void 0 ? void 0 : _d.mapType) === "google-maps") {
2855
+ this.googleMapsService.plotDirectionsForSelectedTask(this.agentService.currentTaskDetails);
2856
+ }
2857
+ else {
2858
+ this.openStreetMapsService.plotDirectionsForSelectedTask(this.agentService.currentTaskDetails);
2859
+ }
2860
+ }
2861
+ };
2862
+ CustomerTileComponent.prototype.goToMaps = function (location) {
2863
+ window.open("" + location, "_blank");
2864
+ };
2865
+ CustomerTileComponent.prototype.handleOnClickPerformAction = function (event) {
2866
+ this.onClickPerformAction.emit(event);
2867
+ };
2868
+ CustomerTileComponent.prototype.handleOnClickNext = function (e) {
2869
+ this.nextStep.emit(e);
2870
+ };
2871
+ CustomerTileComponent.prototype.handleOnClickRemoveTask = function (task) {
2872
+ this.removeTask.emit(task);
2873
+ };
2874
+ return CustomerTileComponent;
2875
+ }());
2876
+ /** @nocollapse */ CustomerTileComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, deps: [{ token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: AgentService }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
2877
+ /** @nocollapse */ CustomerTileComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerTileComponent, selector: "customer-tile", inputs: { customer: "customer", index: "index", config: "config" }, outputs: { onClickPerformAction: "onClickPerformAction", nextStep: "nextStep", removeTask: "removeTask" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, usesOnChanges: true, ngImport: i0__namespace, template: "<div\n [ngClass]=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id\n ? 'customer-tile-wrapper customer-tile-active'\n : 'customer-tile-wrapper'\n \"\n>\n <div class=\"customer-tile-primary-container\">\n <div class=\"customer-tile-primary-container-data\">\n <div class=\"customer-tile-primary-container-userid\">\n {{ taskId }}\n </div>\n <status-pill\n *ngIf=\"config?.dashboard?.isShowTaskStatus\"\n [status]=\"customer.session_status\"\n ></status-pill>\n </div>\n <kwikui-button\n *ngIf=\"!agentService.isMobileView && !agentService.showMapview\"\n [icon]=\"\n agentService.currentTaskDetails?.session_id == customer?.session_id\n ? 'tuiIconChevronLeftLarge'\n : 'tuiIconChevronRightLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"agentService.isMobileView || agentService.showMapview\"\n [icon]=\"\n agentService.currentTaskDetails?.session_id == customer?.session_id\n ? 'tuiIconChevronUpLarge'\n : 'tuiIconChevronDownLarge'\n \"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"openDetails()\"\n ></kwikui-button>\n </div>\n <div\n *ngIf=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id &&\n (agentService.isMobileView || agentService.showMapview)\n \"\n [ngClass]=\"\n customer?.session_id == agentService.currentTaskDetails?.session_id &&\n (agentService.isMobileView || agentService.showMapview)\n ? 'customer-tile-secondary-container'\n : 'data-collasped'\n \"\n >\n <div class=\"customer-tile-secondary-container-data\">\n <kwikui-label-value-pair\n [config]=\"labelValuePairConfig\"\n [data]=\"labelValuePairData\"\n ></kwikui-label-value-pair>\n <!-- <div\n *ngIf=\"\n agentService.config?.dashboard?.maps?.sho &&\n agentService.config?.dashboard?.isShowDistanceAndTime &&\n openStreetMapsService.getSelectedTaskDistanceAndTime()\n \"\n class=\"customer-tile-secondary-container-custom-details\"\n >\n Distance: {{ openStreetMapsService.getSelectedTaskDistanceAndTime()?.distance }} |\n Time: {{ openStreetMapsService.getSelectedTaskDistanceAndTime()?.time }}\n </div> -->\n </div>\n <div class=\"customer-tile-secondary-container-actions\">\n <ng-container\n *ngFor=\"let action of config?.dashboard?.taskUI?.details?.action\"\n >\n <kwikid-action-button\n [action]=\"action\"\n [config]=\"config\"\n [customer]=\"customer\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-action-button>\n </ng-container>\n <!-- <div class=\"customer-tile-secondary-container-task-buttons\">\n <kwikui-button\n *ngIf=\"config.dashboard?.isAllowRemoveTask\"\n [icon]=\"'tuiIconTrash2'\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"handleOnClickRemoveTask(customer)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"config.dashboard?.isShowCopyLink\"\n icon=\"tuiIconCopy\"\n [shape]=\"'rounded'\"\n appearance=\"icon\"\n size=\"s\"\n (onClick)=\"\n handleOnClickNext({\n customer: customer,\n stepType: 'SHARE_JOURNEY_LINK'\n })\n \"\n ></kwikui-button>\n </div>\n <div class=\"customer-tile-secondary-container-journey-buttons\">\n <kwikui-button\n *ngIf=\"config.dashboard?.isShowMaps && customer?.isValidLocation\"\n label=\"Show Directions\"\n appearance=\"flat\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"goToMaps(customer.googleMapsUrl)\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"\n config.dashboard?.isAllowStartJourney &&\n agentService.canStartJourney(customer.session_status)\n \"\n label=\"Start Journey\"\n appearance=\"primary\"\n size=\"s\"\n styles=\"font-size:0.7rem;\"\n (onClick)=\"\n handleOnClickNext({ customer: customer, stepType: 'START_JOURNEY' })\n \"\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;margin:1rem;padding:1rem .25rem 1rem 1rem;border-radius:1rem;border:.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:column;flex-wrap:wrap;align-content:stretch;justify-content:flex-start;align-items:flex-start}.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;word-wrap:break-word}.customer-tile-wrapper .customer-tile-secondary-container .customer-tile-secondary-container-actions{padding:.5rem 0;display:flex;flex-wrap:wrap;align-items:center;flex-direction:row;justify-content:flex-start;grid-gap:.5rem;gap:.5rem}.customer-tile-wrapper .data-collasped{display:none}.customer-tile-active{background-color:#dcedfd}\n"], components: [{ type: StatusPillComponent, selector: "status-pill", inputs: ["status"] }, { type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUILabelValuePairComponent, selector: "kwikui-label-value-pair", inputs: ["config", "data", "id"] }, { type: ActionButtonComponent, selector: "kwikid-action-button", inputs: ["action", "config", "customer"], outputs: ["onClickPerformAction"] }], directives: [{ type: i7__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
2878
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerTileComponent, decorators: [{
2879
+ type: i0.Component,
2880
+ args: [{
2881
+ selector: "customer-tile",
2882
+ templateUrl: "./customer-tile.component.html",
2883
+ styleUrls: ["./customer-tile.component.scss"]
2884
+ }]
2885
+ }], ctorParameters: function () { return [{ type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: AgentService }, { type: i0__namespace.ElementRef }]; }, propDecorators: { windowResizeWatcher: [{
2886
+ type: i0.HostListener,
2887
+ args: ["window:resize", ["$event"]]
2888
+ }], customer: [{
2889
+ type: i0.Input
2890
+ }], index: [{
2891
+ type: i0.Input
2892
+ }], config: [{
2893
+ type: i0.Input
2894
+ }], onClickPerformAction: [{
2895
+ type: i0.Output
2896
+ }], nextStep: [{
2897
+ type: i0.Output
2898
+ }], removeTask: [{
2899
+ type: i0.Output
2900
+ }] } });
2901
+
2902
+ var Ng2SearchPipe$1 = /** @class */ (function () {
2903
+ function Ng2SearchPipe() {
2904
+ }
2905
+ /**
2906
+ * @param items object from array
2907
+ * @param term term's search
2908
+ * @param excludes array of strings which will ignored during search
2909
+ */
2910
+ Ng2SearchPipe.prototype.transform = function (items, term, excludes) {
2911
+ if (excludes === void 0) { excludes = []; }
2912
+ if (!term || !items)
2913
+ return items;
2914
+ return Ng2SearchPipe.filter(items, term, excludes);
2915
+ };
2916
+ /**
2917
+ *
2918
+ * @param items List of items to filter
2919
+ * @param term a string term to compare with every property of the list
2920
+ * @param excludes List of keys which will be ignored during search
2921
+ *
2922
+ */
2923
+ Ng2SearchPipe.filter = function (items, term, excludes) {
2924
+ var toCompare = term.toLowerCase();
2925
+ function checkInside(item, term) {
2926
+ if (typeof item === "string" &&
2927
+ item.toString().toLowerCase().includes(toCompare)) {
2928
+ return true;
2929
+ }
2930
+ for (var property in item) {
2931
+ if (item[property] === null ||
2932
+ item[property] == undefined ||
2933
+ excludes.includes(property)) {
2934
+ continue;
2935
+ }
2936
+ if (typeof item[property] === "object") {
2937
+ if (checkInside(item[property], term)) {
2938
+ return true;
2939
+ }
2940
+ }
2941
+ else if (item[property].toString().toLowerCase().includes(toCompare)) {
2942
+ return true;
2943
+ }
2944
+ }
2945
+ return false;
2946
+ }
2947
+ return items.filter(function (item) {
2948
+ return checkInside(item, term);
2949
+ });
2950
+ };
2951
+ return Ng2SearchPipe;
2952
+ }());
2953
+ /** @nocollapse */ Ng2SearchPipe$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, deps: [], target: i0__namespace.ɵɵFactoryTarget.Pipe });
2954
+ /** @nocollapse */ Ng2SearchPipe$1.ɵpipe = i0__namespace.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, name: "filter", pure: false });
2955
+ /** @nocollapse */ Ng2SearchPipe$1.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1 });
2956
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe$1, decorators: [{
2957
+ type: i0.Pipe,
2958
+ args: [{
2959
+ name: "filter",
2960
+ pure: false
2961
+ }]
2962
+ }, {
2963
+ type: i0.Injectable
2964
+ }] });
2965
+
2966
+ var CustomerListComponent = /** @class */ (function () {
2967
+ function CustomerListComponent(googleMapsService, openStreetMapsService, agentService
2968
+ // eslint-disable-next-line no-empty-function
2969
+ ) {
2970
+ this.googleMapsService = googleMapsService;
2971
+ this.openStreetMapsService = openStreetMapsService;
2972
+ this.agentService = agentService;
2973
+ this.nextStep = new i0.EventEmitter();
2974
+ this.removeTask = new i0.EventEmitter();
2975
+ this.filterTaskList = new i0.EventEmitter();
2976
+ this.filteredData = [];
2977
+ this.formGroup = new i2$1.FormGroup({});
2978
+ this.sortInAscendingOrder = true;
2979
+ this.max = new i2.TuiDay(new Date().getFullYear(), new Date().getMonth(), new Date().getDate());
2980
+ // Sorting Variables
2981
+ this.sortFilterKey = "";
2982
+ this.sortFilterOptions = ["user_id", "session_status"];
2983
+ this.activeSearchAction = undefined;
2984
+ this.onClickPerformAction = new i0.EventEmitter();
2985
+ }
2986
+ CustomerListComponent.prototype.ngOnInit = function () {
2987
+ return __awaiter(this, void 0, void 0, function () {
2988
+ return __generator(this, function (_f) {
2989
+ this.handleInitialDateRange();
2990
+ this.handleSearchAndSortFormControls();
2991
+ return [2 /*return*/];
2992
+ });
2993
+ });
2994
+ };
2995
+ CustomerListComponent.prototype.handleOnClickSearchType = function (type) {
2996
+ if (this.activeSearchAction !== type) {
2997
+ this.activeSearchAction = type;
2998
+ }
2999
+ else {
3000
+ this.activeSearchAction = undefined;
3001
+ }
3002
+ };
3003
+ CustomerListComponent.prototype.handleInitialDateRange = function () {
3004
+ var _a, _b, _c, _d, _e;
3005
+ var searchDateStart = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.searchDateStart) !== null && _b !== void 0 ? _b : {
3006
+ day: 0,
3007
+ month: 0,
3008
+ year: 0
3009
+ };
3010
+ var currentDate = new Date();
3011
+ var startDate = new Date((_c = currentDate.getFullYear() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.year)) !== null && _c !== void 0 ? _c : 0, (_d = currentDate.getMonth() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.month)) !== null && _d !== void 0 ? _d : 0, (_e = currentDate.getDate() - (searchDateStart === null || searchDateStart === void 0 ? void 0 : searchDateStart.day)) !== null && _e !== void 0 ? _e : 0);
3012
+ this.fromDate = convertNormalDateToStringFormat(startDate);
3013
+ this.toDate = convertNormalDateToStringFormat(null);
3014
+ this.searchDateFormControl = new i2$1.FormControl({
3015
+ value: new i2.TuiDayRange(new i2.TuiDay(startDate.getFullYear(), startDate.getMonth(), startDate.getDate()), this.max),
3016
+ disabled: false
3017
+ });
3018
+ this.formGroup.addControl("search-date", this.searchDateFormControl);
3019
+ };
3020
+ CustomerListComponent.prototype.handleSearchAndSortFormControls = function () {
3021
+ var _a, _b, _c;
3022
+ this.searchTextFormControl = new i2$1.FormControl("");
3023
+ this.formGroup.addControl("search-text", this.searchTextFormControl);
3024
+ this.sortFilterKeyFormControl = new i2$1.FormControl("");
3025
+ this.formGroup.addControl("sort-filter", this.sortFilterKeyFormControl);
3026
+ this.sortFilterOptions =
3027
+ (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.extendedFlags) === null || _b === void 0 ? void 0 : _b.sortFilterKeys) !== null && _c !== void 0 ? _c : this.sortFilterOptions;
3028
+ };
3029
+ CustomerListComponent.prototype.setUpMaps = function () {
3030
+ var _a, _b;
3031
+ return __awaiter(this, void 0, void 0, function () {
3032
+ return __generator(this, function (_f) {
3033
+ switch (_f.label) {
3034
+ case 0:
3035
+ if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isShowMaps)) return [3 /*break*/, 4];
3036
+ if (!(((_b = this.config.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "open-street")) return [3 /*break*/, 2];
3037
+ return [4 /*yield*/, this.openStreetMapsService.initializeMap()];
3038
+ case 1:
3039
+ _f.sent();
3040
+ return [3 /*break*/, 4];
3041
+ case 2: return [4 /*yield*/, this.googleMapsService.initializeMap()];
3042
+ case 3:
3043
+ _f.sent();
3044
+ _f.label = 4;
3045
+ case 4: return [2 /*return*/];
3046
+ }
3047
+ });
3048
+ });
3049
+ };
3050
+ CustomerListComponent.prototype.setCustomersList = function () {
3051
+ var _a;
3052
+ return __awaiter(this, void 0, void 0, function () {
3053
+ var _f;
3054
+ return __generator(this, function (_g) {
3055
+ switch (_g.label) {
3056
+ case 0:
3057
+ if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isShowMaps)) return [3 /*break*/, 2];
3058
+ _f = this;
3059
+ return [4 /*yield*/, this.plotMarkers(this.customers)];
3060
+ case 1:
3061
+ _f.filteredData = _g.sent();
3062
+ return [3 /*break*/, 3];
3063
+ case 2:
3064
+ this.filteredData = this.customers;
3065
+ _g.label = 3;
3066
+ case 3: return [2 /*return*/];
3067
+ }
3068
+ });
3069
+ });
3070
+ };
3071
+ CustomerListComponent.prototype.ngAfterViewInit = function () {
3072
+ var _this = this;
3073
+ var _a, _b;
3074
+ this.maxLength = (_b = (_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.searchDateRange) !== null && _b !== void 0 ? _b : this.maxLength;
3075
+ setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
3076
+ return __generator(this, function (_f) {
3077
+ switch (_f.label) {
3078
+ case 0: return [4 /*yield*/, this.setUpMaps()];
3079
+ case 1:
3080
+ _f.sent();
3081
+ return [4 /*yield*/, this.setCustomersList()];
3082
+ case 2:
3083
+ _f.sent();
3084
+ return [2 /*return*/];
3085
+ }
3086
+ });
3087
+ }); }, 1000);
3088
+ };
3089
+ CustomerListComponent.prototype.ngOnChanges = function () {
3090
+ return __awaiter(this, void 0, void 0, function () {
3091
+ return __generator(this, function (_f) {
3092
+ switch (_f.label) {
3093
+ case 0: return [4 /*yield*/, this.setCustomersList()];
3094
+ case 1:
3095
+ _f.sent();
3096
+ return [2 /*return*/];
3097
+ }
3098
+ });
3099
+ });
3100
+ };
3101
+ CustomerListComponent.prototype.handleOnClickNext = function (e) {
3102
+ this.nextStep.emit(e);
3103
+ };
3104
+ CustomerListComponent.prototype.plotMarkers = function (customers) {
3105
+ var _a, _b;
3106
+ return __awaiter(this, void 0, void 0, function () {
3107
+ var _this = this;
3108
+ return __generator(this, function (_f) {
3109
+ switch (_f.label) {
3110
+ case 0:
3111
+ if (!((_a = this.config.dashboard) === null || _a === void 0 ? void 0 : _a.isPlotCompletedTaskMarkers)) {
3112
+ customers = customers.filter(function (customer) {
3113
+ return _this.agentService.canPlotMarkers(customer.session_status);
3114
+ });
3115
+ }
3116
+ if (!(((_b = this.config.dashboard) === null || _b === void 0 ? void 0 : _b.mapType) === "open-street")) return [3 /*break*/, 2];
3117
+ return [4 /*yield*/, this.openStreetMapsService.plotDirectionsForAllTasks(customers)];
3118
+ case 1:
3119
+ customers =
3120
+ _f.sent();
3121
+ return [3 /*break*/, 4];
3122
+ case 2: return [4 /*yield*/, this.googleMapsService.plotDirectionsForAllTasks(customers)];
3123
+ case 3:
3124
+ customers =
3125
+ _f.sent();
3126
+ _f.label = 4;
3127
+ case 4: return [2 /*return*/, customers];
3128
+ }
3129
+ });
3130
+ });
3131
+ };
3132
+ CustomerListComponent.prototype.handleOnChangeDateRange = function (event) {
3133
+ this.handleChangeDateRangeFormat(event);
3134
+ this.handleOnFilterTaskList({
3135
+ from_date: this.fromDate,
3136
+ to_date: this.toDate
3137
+ });
3138
+ };
3139
+ CustomerListComponent.prototype.handleOnClickChangeSortOrder = function () {
3140
+ this.sortInAscendingOrder = !this.sortInAscendingOrder;
3141
+ this.handleOnChangeSortFilter(false);
3142
+ };
3143
+ CustomerListComponent.prototype.handleOnChangeSortFilter = function (event) {
3144
+ if (event && kwikidToolkit.isNotEmptyValue(event.value)) {
3145
+ this.sortFilterKey = event.value;
3146
+ this.handleOnSortTaskItems(this.sortFilterKey, this.sortInAscendingOrder);
3147
+ }
3148
+ };
3149
+ CustomerListComponent.prototype.handleOnSortTaskItems = function (key, order) {
3150
+ var sortedTaskItems = sortItems(this.filteredData, key, order);
3151
+ this.filteredData = kwikidToolkit.getObjectDeepCopy(sortedTaskItems);
3152
+ };
3153
+ CustomerListComponent.prototype.handleChangeDateRangeFormat = function (event) {
3154
+ var _a, _b;
3155
+ if (((_a = event.value) === null || _a === void 0 ? void 0 : _a.from) && ((_b = event.value) === null || _b === void 0 ? void 0 : _b.to)) {
3156
+ this.fromDate = convertKwikUIDateToStringFormat(event.value.from);
3157
+ this.toDate = convertKwikUIDateToStringFormat(event.value.to);
3158
+ }
3159
+ };
3160
+ CustomerListComponent.prototype.handleOnChangeSearchText = function (event) {
3161
+ this.searchText = event.value;
3162
+ };
3163
+ CustomerListComponent.prototype.handleOnClickRemoveTask = function (task) {
3164
+ this.removeTask.emit(task);
3165
+ };
3166
+ CustomerListComponent.prototype.handleOnFilterTaskList = function (filter) {
3167
+ this.filterTaskList.emit(filter);
3168
+ };
3169
+ CustomerListComponent.prototype.handleOnClickPerformAction = function (event) {
3170
+ this.onClickPerformAction.emit(event);
3171
+ };
3172
+ return CustomerListComponent;
3173
+ }());
3174
+ /** @nocollapse */ CustomerListComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, deps: [{ token: GoogleMapsService }, { token: OpenStreetMapsService }, { token: AgentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
3175
+ /** @nocollapse */ CustomerListComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CustomerListComponent, selector: "customer-list", inputs: { customers: "customers", config: "config" }, outputs: { nextStep: "nextStep", removeTask: "removeTask", filterTaskList: "filterTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div class=\"customer-list-wrapper\">\n <div\n class=\"customer-list-filter\"\n [formGroup]=\"formGroup\"\n >\n <div class=\"task-list-search-icons\">\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconSearchLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-text')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconCalendarLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('search-date')\"\n ></kwikui-button>\n <kwikui-button\n appearance=\"mono\"\n icon=\"tuiIconFilterLarge\"\n size=\"s\"\n type=\"button\"\n (onClick)=\"handleOnClickSearchType('sort-filter')\"\n ></kwikui-button>\n </div>\n\n <div\n class=\"task-list-search-action\"\n *ngIf=\"activeSearchAction\"\n >\n <kwikui-input-date-range\n *ngIf=\"activeSearchAction == 'search-date'\"\n class=\"task-list-date-box\"\n label=\"Search by Date Range\"\n id=\"dateRange\"\n size=\"m\"\n [max]=\"max\"\n [maxLength]=\"maxLength\"\n formControlName=\"search-date\"\n [formControl]=\"searchDateFormControl\"\n (getKeyValue)=\"handleOnChangeDateRange($event)\"\n ></kwikui-input-date-range>\n\n <kwikui-input\n *ngIf=\"activeSearchAction == 'search-text'\"\n label=\"Search\"\n id=\"search\"\n icon=\"tuiIconSearch\"\n placeholder=\"Search any task from here\"\n size=\"m\"\n [formControl]=\"searchTextFormControl\"\n formControlName=\"search-text\"\n (getKeyValue)=\"handleOnChangeSearchText($event)\"\n ></kwikui-input>\n\n <div\n *ngIf=\"activeSearchAction == 'sort-filter'\"\n class=\"task-list-sort-action\"\n >\n <kwikui-button\n appearance=\"outline\"\n [icon]=\"\n sortInAscendingOrder\n ? 'tuiIconChevronsUpLarge'\n : 'tuiIconChevronsDownLarge'\n \"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickChangeSortOrder()\"\n ></kwikui-button>\n <kwikui-input-select\n class=\"task-list-sort-key\"\n formControlName=\"sort-filter\"\n label=\"Sort By Key\"\n size=\"m\"\n [formControl]=\"sortFilterKeyFormControl\"\n [options]=\"sortFilterOptions\"\n [searchable]=\"false\"\n (getKeyValue)=\"handleOnChangeSortFilter($event)\"\n ></kwikui-input-select>\n </div>\n </div>\n </div>\n\n <div class=\"customer-task-list\">\n <cdk-virtual-scroll-viewport\n itemSize=\"1\"\n class=\"customer-task-list-scroll\"\n >\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 [config]=\"config\"\n [index]=\"index\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-tile>\n </div>\n </cdk-virtual-scroll-viewport>\n </div>\n\n <div\n class=\"customer-list-empty\"\n *ngIf=\"filteredData.length === 0\"\n >\n {{\n config?.dashboard?.emptyTaskListMessage ?? \"0 Tasks for the given Date.\"\n }}\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-filter .task-list-search-icons{display:flex;justify-content:flex-end;align-items:center;flex-direction:row;grid-gap:.5rem;gap:.5rem}.customer-list-filter .task-list-search-action{margin-top:.5rem}.customer-list-filter .task-list-search-action .task-list-sort-action{display:flex;flex-direction:row;grid-gap:.5rem;gap:.5rem}.customer-list-filter .task-list-search-action .task-list-sort-action .task-list-sort-key{flex:1}.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: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i1__namespace.KwikUIInputDateRangeComponent, selector: "kwikui-input-date-range", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "max", "maxLength", "min", "minLength", "placeholder", "postfix", "prefix", "properties", "size", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputComponent, selector: "kwikui-input", inputs: ["case", "disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "placeholder", "postfix", "prefix", "properties", "size", "type", "validators"], outputs: ["getKeyValue"] }, { type: i1__namespace.KwikUIInputSelectComponent, selector: "kwikui-input-select", inputs: ["disabled", "focus", "formControl", "formControlName", "hintContent", "icon", "id", "invalid", "label", "options", "placeholder", "properties", "searchable", "size", "validators"], outputs: ["getKeyValue"] }, { type: i5__namespace.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { type: CustomerTileComponent, selector: "customer-tile", inputs: ["customer", "index", "config"], outputs: ["onClickPerformAction", "nextStep", "removeTask"] }], directives: [{ type: i2__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i2__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2__namespace$1.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i2__namespace$1.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i5__namespace.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { type: i5__namespace.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }], pipes: { "filter": Ng2SearchPipe$1 } });
3176
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CustomerListComponent, decorators: [{
3177
+ type: i0.Component,
3178
+ args: [{
3179
+ selector: "customer-list",
3180
+ templateUrl: "./customer-list.component.html",
3181
+ styleUrls: ["./customer-list.component.scss"]
3182
+ }]
3183
+ }], ctorParameters: function () { return [{ type: GoogleMapsService }, { type: OpenStreetMapsService }, { type: AgentService }]; }, propDecorators: { customers: [{
3184
+ type: i0.Input
3185
+ }], config: [{
3186
+ type: i0.Input
3187
+ }], nextStep: [{
3188
+ type: i0.Output
3189
+ }], removeTask: [{
3190
+ type: i0.Output
3191
+ }], filterTaskList: [{
3192
+ type: i0.Output
3193
+ }], onClickPerformAction: [{
3194
+ type: i0.Output
3195
+ }] } });
3196
+
3197
+ var KwikIDAgentDashboardComponentV1 = /** @class */ (function () {
3198
+ function KwikIDAgentDashboardComponentV1(googleMapsService, agentService, httpClient, hostElement, dialogService) {
3199
+ this.googleMapsService = googleMapsService;
3200
+ this.agentService = agentService;
3201
+ this.httpClient = httpClient;
3202
+ this.hostElement = hostElement;
3203
+ this.dialogService = dialogService;
3204
+ this.config = {};
3205
+ this.taskList = [];
3206
+ this.nextStep = new i0.EventEmitter();
3207
+ this.addTask = new i0.EventEmitter();
3208
+ this.removeTask = new i0.EventEmitter();
3209
+ this.filterTaskList = new i0.EventEmitter();
3210
+ this.onClickPerformAction = new i0.EventEmitter();
3211
+ this.loading = true;
3212
+ this.console = console;
3213
+ this.open = false;
3214
+ this.allFormsData = {};
3215
+ this.String = String;
3216
+ }
3217
+ KwikIDAgentDashboardComponentV1.prototype.windowResizeWatcher = function () {
3218
+ if (this.hostElement.nativeElement.offsetWidth < 600) {
3219
+ this.isMobileView = true;
3220
+ this.agentService.isMobileView = true;
3221
+ }
3222
+ else {
3223
+ this.isMobileView = false;
3224
+ this.agentService.isMobileView = false;
3225
+ }
3226
+ };
3227
+ KwikIDAgentDashboardComponentV1.prototype.ngOnInit = function () {
3228
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
3229
+ return __awaiter(this, void 0, void 0, function () {
3230
+ var _this = this;
3231
+ return __generator(this, function (_o) {
3232
+ this.agentService.config = this.config;
3233
+ this.agentService.showMapview = (_c = (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.dashboard) === null || _b === void 0 ? void 0 : _b.isShowMaps) !== null && _c !== void 0 ? _c : false;
3234
+ this.agentService.addTaskForm =
3235
+ (_f = (_e = (_d = this.config) === null || _d === void 0 ? void 0 : _d.dashboard) === null || _e === void 0 ? void 0 : _e.addTaskForm) !== null && _f !== void 0 ? _f : this.agentService.addTaskForm;
3236
+ if (((_h = (_g = this.config) === null || _g === void 0 ? void 0 : _g.dashboard) === null || _h === void 0 ? void 0 : _h.mapType) === "google-maps" &&
3237
+ kwikidToolkit.isNotEmptyValue((_k = (_j = this.config) === null || _j === void 0 ? void 0 : _j.dashboard) === null || _k === void 0 ? void 0 : _k.googleMapsAPIKey)) {
3238
+ this.loadMaps((_m = (_l = this.config) === null || _l === void 0 ? void 0 : _l.dashboard) === null || _m === void 0 ? void 0 : _m.googleMapsAPIKey).subscribe(function (loaded) {
3239
+ _this.mapsLoaded = loaded;
3240
+ if (loaded) {
3241
+ console.log("Google Maps JavaScript API loaded successfully.");
3242
+ _this.loading = false;
3243
+ // Initialize and render Google Map here
3244
+ }
3245
+ else {
3246
+ console.error("Google Maps JavaScript API failed to load.");
3247
+ _this.loading = false;
3248
+ }
3249
+ });
3250
+ }
3251
+ else {
3252
+ this.mapsLoaded = true;
3253
+ this.loading = false;
3254
+ }
3255
+ setTimeout(function () {
3256
+ _this.windowResizeWatcher();
3257
+ }, 1000);
3258
+ return [2 /*return*/];
3259
+ });
3260
+ });
3261
+ };
3262
+ // Load Google Maps
3263
+ KwikIDAgentDashboardComponentV1.prototype.loadMaps = function (apiKey) {
3264
+ var url = "https://maps.googleapis.com/maps/api/js?key=" + apiKey + "&v=3.exp&libraries=geometry,drawing,places";
3265
+ this.googleMapsService.apiKey = apiKey;
3266
+ return this.httpClient.jsonp(url, "callback").pipe(operators.map(function () { return true; }), operators.catchError(function () {
3267
+ console.error("Error loading Google Maps JavaScript API.");
3268
+ return rxjs.of(false);
3269
+ }));
3270
+ };
3271
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickNext = function (e) {
3272
+ this.nextStep.emit(e);
3273
+ };
3274
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickAddTask = function (task) {
3275
+ this.addTask.emit(task);
3276
+ };
3277
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickRemoveTask = function (task) {
3278
+ this.removeTask.emit(task);
3279
+ };
3280
+ KwikIDAgentDashboardComponentV1.prototype.handleOnFilterTaskList = function (filter) {
3281
+ this.filterTaskList.emit(filter);
3282
+ };
3283
+ KwikIDAgentDashboardComponentV1.prototype.refresh = function () {
3284
+ this.handleOnFilterTaskList({});
3285
+ };
3286
+ KwikIDAgentDashboardComponentV1.prototype.onClick = function () {
3287
+ this.open = !this.open;
3288
+ };
3289
+ KwikIDAgentDashboardComponentV1.prototype.onObscured = function (obscured) {
3290
+ if (obscured) {
3291
+ this.open = false;
3292
+ }
3293
+ };
3294
+ KwikIDAgentDashboardComponentV1.prototype.onActiveZone = function (active) {
3295
+ this.open = active && this.open;
3296
+ };
3297
+ KwikIDAgentDashboardComponentV1.prototype.close = function () {
3298
+ this.open = false;
3299
+ if (this.dialogSubscription) {
3300
+ this.dialogSubscription.unsubscribe();
3301
+ }
3302
+ };
3303
+ KwikIDAgentDashboardComponentV1.prototype.showDialog = function (content) {
3304
+ this.dialogSubscription = this.dialogService
3305
+ .open(content, { closeable: false, dismissible: false })
3306
+ .subscribe();
3307
+ };
3308
+ KwikIDAgentDashboardComponentV1.prototype.openInfoWindow = function (marker) {
3309
+ this.infoWindow.open(marker);
3310
+ };
3311
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickSaveForm = function (e) {
3312
+ this.handleOnClickAddTask(e.data);
3313
+ this.close();
3314
+ };
3315
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickLogout = function () {
3316
+ this.handleOnClickPerformAction({ action: { type: "logout" } });
3317
+ };
3318
+ KwikIDAgentDashboardComponentV1.prototype.handleOnClickPerformAction = function (event) {
3319
+ this.onClickPerformAction.emit(event);
3320
+ };
3321
+ return KwikIDAgentDashboardComponentV1;
3322
+ }());
3323
+ /** @nocollapse */ KwikIDAgentDashboardComponentV1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV1, deps: [{ token: GoogleMapsService }, { token: AgentService }, { token: i3__namespace$2.HttpClient }, { token: i0__namespace.ElementRef }, { token: i3.TuiDialogService }], target: i0__namespace.ɵɵFactoryTarget.Component });
3324
+ /** @nocollapse */ KwikIDAgentDashboardComponentV1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponentV1, selector: "kwikid-agent-dashboard-v1", inputs: { config: "config", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList", onClickPerformAction: "onClickPerformAction" }, host: { listeners: { "window:resize": "windowResizeWatcher($event)" } }, viewQueries: [{ propertyName: "infoWindow", first: true, predicate: i2$2.MapInfoWindow, descendants: true }, { propertyName: "mapElement", first: true, predicate: ["map"], descendants: true, static: true }], ngImport: i0__namespace, template: "<div\n class=\"kwikid-agent-dashboard\"\n *ngIf=\"!loading\"\n>\n <div class=\"wrapper\">\n <header>\n <span (tuiActiveZoneChange)=\"onActiveZone($event)\">\n <kwikui-button\n [icon]=\"'tuiIconMenuLarge'\"\n (onClick)=\"onClick()\"\n appearance=\"mono\"\n size=\"m\"\n [tuiDropdown]=\"dropdownContent\"\n [tuiDropdownManual]=\"open\"\n (tuiObscured)=\"onObscured($event)\"\n ></kwikui-button>\n <ng-template #dropdownContent>\n <div class=\"menu-dropdown\">\n <div class=\"menu-dropdown-header\">\n <!-- <img\n *ngIf=\"\n agentService.config?.clientLogo &&\n agentService.config?.dashboard?.isShowClientLogo\n \"\n [src]=\"agentService.config.clientLogo\"\n class=\"client-logo\"\n />\n <div\n *ngIf=\"\n !agentService.config.clientLogo ||\n !agentService.config?.dashboard?.isShowClientLogo\n \"\n class=\"client-name\"\n >\n <kwikui-button\n [icon]=\"'tuiIconLink'\"\n appearance=\"mono\"\n size=\"m\"\n ></kwikui-button>\n\n {{ agentService.config.clientName }}\n </div> -->\n <div class=\"menu-dropdown-header-agent-name\">\n {{ agentService.config.agentName }}\n </div>\n <div class=\"menu-dropdown-header-agent-id\">\n Agent ID: {{ agentService.config.agentId }}\n </div>\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=\"agentService.config?.dashboard?.isAllowAddTask\"\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Refresh\"\n [icon]=\"'tuiIconRefreshCw'\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"refresh()\"\n ></kwikui-button>\n <kwikui-button\n *ngIf=\"this.config.dashboard.isShowMaps\"\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"{{\n agentService.showMapview ? 'Hide Maps' : 'Show Maps'\n }}\"\n type=\"button\"\n icon=\"{{\n agentService.showMapview ? 'tuiIconEyeOff' : 'tuiIconEye'\n }}\"\n iconRight=\"\"\n [shape]=\"null\"\n size=\"m\"\n styles=\"padding: 0rem !important\"\n (onClick)=\"agentService.toggleMapview()\"\n ></kwikui-button>\n </div>\n <hr />\n <div class=\"menu-dropdown-footer\">\n <kwikui-button\n appearance=\"mono\"\n class=\"menu-dropdown-buttons\"\n label=\"Logout\"\n icon=\"tuiIconLogOut\"\n size=\"m\"\n type=\"button\"\n (onClick)=\"handleOnClickLogout()\"\n ></kwikui-button>\n </div>\n </div>\n </ng-template>\n </span>\n <div class=\"actions\">\n <kwikui-button\n *ngIf=\"agentService.config?.dashboard?.isAllowAddTask\"\n class=\"menu-dropdown-buttons\"\n type=\"button\"\n appearance=\"primary\"\n [label]=\"\n agentService.config?.dashboard?.addTaskButtonLabel ?? 'Add User'\n \"\n icon=\"tuiIconPlus\"\n shape=\"rounded\"\n size=\"s\"\n (onClick)=\"showDialog(template)\"\n ></kwikui-button>\n </div>\n </header>\n\n <div class=\"dashboard-body\">\n <div\n *ngIf=\"mapsLoaded\"\n [class]=\"agentService.showMapview ? 'map' : 'map-hidden'\"\n >\n <google-map\n *ngIf=\"agentService.config?.dashboard?.mapType == 'google-maps'\"\n [options]=\"this.googleMapsService.map\"\n height=\"100%\"\n width=\"100%\"\n >\n <map-marker\n #marker=\"mapMarker\"\n *ngFor=\"\n let markerPosition of this.googleMapsService.allMarkers;\n let index = index\n \"\n [position]=\"markerPosition\"\n [label]=\"{ text: String(index) }\"\n ></map-marker>\n <map-directions-renderer\n *ngIf=\"\n this.googleMapsService.directionsResults$\n | async as directionsResults\n \"\n [directions]=\"directionsResults\"\n [options]=\"this.googleMapsService.directionsRenderOption\"\n ></map-directions-renderer>\n </google-map>\n\n <div\n *ngIf=\"agentService.config?.dashboard?.mapType == 'open-street'\"\n id=\"map\"\n style=\"height: 100%\"\n ></div>\n </div>\n\n <div\n class=\"task-details\"\n *ngIf=\"\n !agentService.isMobileView &&\n agentService.currentTaskDetails != undefined &&\n !agentService.showMapview\n \"\n >\n <customer-details\n [customer]=\"agentService.currentTaskDetails\"\n [config]=\"config\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-details>\n </div>\n\n <div\n class=\"no-task-details\"\n *ngIf=\"\n !agentService.isMobileView &&\n agentService.currentTaskDetails == undefined &&\n !agentService.showMapview\n \"\n >\n <img\n src=\"assets/No-Results.jpg\"\n class=\"no-task-img\"\n alt=\"No Task\"\n />\n <div class=\"\">Select a Task to view it's details.</div>\n </div>\n\n <div class=\"customer-list\">\n <customer-list\n [customers]=\"taskList\"\n [config]=\"config\"\n (nextStep)=\"handleOnClickNext($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></customer-list>\n </div>\n </div>\n </div>\n</div>\n\n<div\n class=\"kwikid-agent-dashboard-loader\"\n *ngIf=\"loading\"\n>\n <span class=\"loader\"></span>\n</div>\n\n<ng-template\n #template\n let-observer\n>\n <div class=\"add-task-header\">\n <h2>{{ agentService?.addTaskForm?.title ?? \"Create User\" }}</h2>\n <kwikui-button\n icon=\"tuiIconX\"\n id=\"\"\n styles=\"\"\n type=\"button\"\n appearance=\"mono\"\n [shape]=\"null\"\n size=\"m\"\n (onClick)=\"observer.complete()\"\n ></kwikui-button>\n </div>\n <kwikid-form-view\n [allFormsData]=\"allFormsData\"\n [formConfig]=\"agentService.addTaskForm\"\n [isMobileView]=\"true\"\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 header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:1rem;max-height:80px;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper header .actions{display:flex;flex-direction:row;align-items:center}.kwikid-agent-dashboard .wrapper header .actions>*{margin-right:.5rem}.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%;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 header{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;grid-column-gap:1rem;column-gap:1rem;padding:.75rem;max-height:80px;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper 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:flex-end;align-items:stretch;overflow:auto}.kwikid-agent-dashboard .wrapper .dashboard-body .map{width:100%;height:100%;position:relative;overflow:hidden;border:1px solid #cdcdcd;border-radius:.5rem}.kwikid-agent-dashboard .wrapper .dashboard-body .map-hidden{visibility:collapse}.kwikid-agent-dashboard .wrapper .dashboard-body .task-details{width:100%;height:100%;position:relative;overflow:hidden;border:1px solid #cdcdcd}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details{width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;grid-gap:.5rem;gap:.5rem;overflow:hidden;color:#555}.kwikid-agent-dashboard .wrapper .dashboard-body .no-task-details .no-task-img{height:100px;width:100px}.kwikid-agent-dashboard .wrapper .dashboard-body .customer-list{min-width:300px;max-width:320px;width:100%;height:100%;overflow:hidden;border:1px solid #cdcdcd}}.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-header .menu-dropdown-header-agent-name{font-size:1.2rem;margin:0 auto;font-weight:600}.menu-dropdown .menu-dropdown-header .menu-dropdown-header-agent-id{font-size:.8rem;margin:0 auto;font-weight:600}.menu-dropdown .menu-dropdown-buttons ::ng-deep .t-wrapper{padding:0!important}.client-logo{height:40px;width:-moz-fit-content;width:fit-content;margin:0 auto;padding-left:1rem}.client-name{display:flex;flex-direction:row;align-content:center;justify-content:space-between;align-items:center;font-size:1rem;margin:0 auto;font-weight:600}\n"], components: [{ type: i1__namespace.KwikUIButtonComponent, selector: "kwikui-button", inputs: ["appearance", "class", "disabled", "icon", "iconRight", "id", "label", "shape", "showLoader", "size", "styles", "type", "pseudoHover"], outputs: ["onClick"] }, { type: i2__namespace$2.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: CustomerDetailsComponent, selector: "customer-details", inputs: ["customer", "config"], outputs: ["nextStep", "removeTask", "onClickPerformAction"] }, { type: CustomerListComponent, selector: "customer-list", inputs: ["customers", "config"], outputs: ["nextStep", "removeTask", "filterTaskList", "onClickPerformAction"] }, { type: i3__namespace$1.KwikIDFormViewComponent, selector: "kwikid-form-view", inputs: ["allFormsData", "extraData", "apiCallResponse", "buttonClickResponse", "formConfig", "formData", "isMobileView", "popupFormCallback", "userConfig", "stepConfig"], outputs: ["getLogs", "getUnsavedDataState", "onActionShowPopupForm", "onClickApiCall", "onClickViewFile", "onClickFormFieldButton", "onClickGoBack", "onClickSaveForm", "onClickViewForms"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.TuiActiveZoneDirective, selector: "[tuiActiveZone]:not(ng-container), [tuiActiveZoneChange]:not(ng-container), [tuiActiveZoneParent]:not(ng-container)", inputs: ["tuiActiveZoneParent"], outputs: ["tuiActiveZoneChange"], exportAs: ["tuiActiveZone"] }, { type: i3__namespace.TuiDropdownDirective, selector: "[tuiDropdown]:not(ng-container)", inputs: ["tuiDropdown"], exportAs: ["tuiDropdown"] }, { type: i3__namespace.TuiDropdownDriverDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownPositionDirective, selector: "[tuiDropdown]" }, { type: i3__namespace.TuiDropdownManualDirective, selector: "[tuiDropdown][tuiDropdownManual]", inputs: ["tuiDropdownManual"] }, { type: i3__namespace.TuiGroupDirective, selector: "[tuiGroup]:not(ng-container)", inputs: ["orientation", "adaptive", "collapsed", "rounded", "size"] }, { type: i7__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace$2.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: i2__namespace$2.MapDirectionsRenderer, selector: "map-directions-renderer", inputs: ["directions", "options"], outputs: ["directionsChanged"], exportAs: ["mapDirectionsRenderer"] }], pipes: { "async": i7__namespace.AsyncPipe } });
3325
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponentV1, decorators: [{
3326
+ type: i0.Component,
3327
+ args: [{
3328
+ selector: "kwikid-agent-dashboard-v1",
3329
+ templateUrl: "./kwikid-agent-dashboard.component.html",
3330
+ styleUrls: ["./kwikid-agent-dashboard.component.scss"]
3331
+ }]
3332
+ }], ctorParameters: function () {
3333
+ return [{ type: GoogleMapsService }, { type: AgentService }, { type: i3__namespace$2.HttpClient }, { type: i0__namespace.ElementRef }, { type: i3__namespace.TuiDialogService, decorators: [{
3334
+ type: i0.Inject,
3335
+ args: [i3.TuiDialogService]
3336
+ }] }];
3337
+ }, propDecorators: { windowResizeWatcher: [{
3338
+ type: i0.HostListener,
3339
+ args: ["window:resize", ["$event"]]
3340
+ }], config: [{
3341
+ type: i0.Input
3342
+ }], taskList: [{
3343
+ type: i0.Input
3344
+ }], nextStep: [{
3345
+ type: i0.Output
3346
+ }], addTask: [{
3347
+ type: i0.Output
3348
+ }], removeTask: [{
3349
+ type: i0.Output
3350
+ }], filterTaskList: [{
3351
+ type: i0.Output
3352
+ }], onClickPerformAction: [{
3353
+ type: i0.Output
3354
+ }], infoWindow: [{
3355
+ type: i0.ViewChild,
3356
+ args: [i2$2.MapInfoWindow, { static: false }]
3357
+ }], mapElement: [{
3358
+ type: i0.ViewChild,
3359
+ args: ["map", { static: true }]
3360
+ }] } });
3361
+
3362
+ /* eslint-disable no-empty-function */
3363
+ var KwikIDAgentDashboardComponent = /** @class */ (function () {
3364
+ // eslint-disable-next-line no-useless-constructor, @typescript-eslint/no-empty-function
3365
+ function KwikIDAgentDashboardComponent() {
3366
+ this.agentInfo = {};
3367
+ this.config = {};
3368
+ this.userConfig = {};
3369
+ this.taskList = [];
3370
+ this.nextStep = new i0.EventEmitter();
3371
+ this.addTask = new i0.EventEmitter();
3372
+ this.removeTask = new i0.EventEmitter();
3373
+ this.filterTaskList = new i0.EventEmitter();
3374
+ this.onGetTaskList = new i0.EventEmitter();
3375
+ this.onClickPerformAction = new i0.EventEmitter();
3376
+ }
3377
+ // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-empty-function
3378
+ KwikIDAgentDashboardComponent.prototype.ngOnInit = function () { };
3379
+ KwikIDAgentDashboardComponent.prototype.ngOnChanges = function (changes) {
3380
+ var verifyChange = function (key) {
3381
+ // eslint-disable-next-line no-prototype-builtins
3382
+ return changes.hasOwnProperty(key) && !changes[key].firstChange;
3383
+ };
3384
+ if (verifyChange("taskList")) {
3385
+ this.taskList = changes.taskList.currentValue;
3386
+ }
3387
+ };
3388
+ KwikIDAgentDashboardComponent.prototype.handleOnClickNext = function (e) {
3389
+ this.nextStep.emit(e);
3390
+ };
3391
+ KwikIDAgentDashboardComponent.prototype.handleOnClickAddTask = function (task) {
3392
+ this.addTask.emit(task);
3393
+ };
3394
+ KwikIDAgentDashboardComponent.prototype.handleOnClickRemoveTask = function (task) {
3395
+ this.removeTask.emit(task);
3396
+ };
3397
+ KwikIDAgentDashboardComponent.prototype.handleOnFilterTaskList = function (filter) {
3398
+ this.onGetTaskList.emit(filter);
3399
+ };
3400
+ KwikIDAgentDashboardComponent.prototype.handleOnGetTaskList = function (event) {
3401
+ this.onGetTaskList.emit(event);
3402
+ };
3403
+ KwikIDAgentDashboardComponent.prototype.handleOnClickPerformAction = function (event) {
3404
+ this.onClickPerformAction.emit(event);
3405
+ };
3406
+ return KwikIDAgentDashboardComponent;
3407
+ }());
3408
+ /** @nocollapse */ KwikIDAgentDashboardComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3409
+ /** @nocollapse */ KwikIDAgentDashboardComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: KwikIDAgentDashboardComponent, selector: "kwikid-agent-dashboard", inputs: { agentInfo: "agentInfo", config: "config", userConfig: "userConfig", taskList: "taskList" }, outputs: { nextStep: "nextStep", addTask: "addTask", removeTask: "removeTask", filterTaskList: "filterTaskList", onGetTaskList: "onGetTaskList", onClickPerformAction: "onClickPerformAction" }, usesOnChanges: true, ngImport: i0__namespace, template: "<div *ngIf=\"config?.version === 2\">\n <kwikid-agent-dashboard-v2\n [agentInfo]=\"agentInfo\"\n [config]=\"config\"\n [taskList]=\"taskList\"\n [userConfig]=\"userConfig\"\n (onGetTaskList)=\"handleOnGetTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-agent-dashboard-v2>\n</div>\n\n<div *ngIf=\"config?.version !== 2\">\n <kwikid-agent-dashboard-v1\n [config]=\"config\"\n [taskList]=\"taskList\"\n (nextStep)=\"handleOnClickNext($event)\"\n (addTask)=\"handleOnClickAddTask($event)\"\n (removeTask)=\"handleOnClickRemoveTask($event)\"\n (filterTaskList)=\"handleOnFilterTaskList($event)\"\n (onClickPerformAction)=\"handleOnClickPerformAction($event)\"\n ></kwikid-agent-dashboard-v1>\n</div>\n", styles: ["div{height:100%}\n"], components: [{ type: KwikIDAgentDashboardComponentV2, selector: "kwikid-agent-dashboard-v2", inputs: ["config", "userConfig", "agentInfo", "taskList"], outputs: ["onGetTaskList", "onClickPerformAction"] }, { type: KwikIDAgentDashboardComponentV1, selector: "kwikid-agent-dashboard-v1", inputs: ["config", "taskList"], outputs: ["nextStep", "addTask", "removeTask", "filterTaskList", "onClickPerformAction"] }], directives: [{ type: i7__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3410
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardComponent, decorators: [{
3411
+ type: i0.Component,
3412
+ args: [{
3413
+ selector: "kwikid-agent-dashboard",
3414
+ templateUrl: "./kwikid-agent-dashboard.component.html",
3415
+ styleUrls: ["./kwikid-agent-dashboard.component.scss"]
3416
+ }]
3417
+ }], ctorParameters: function () { return []; }, propDecorators: { agentInfo: [{
3418
+ type: i0.Input
3419
+ }], config: [{
3420
+ type: i0.Input
3421
+ }], userConfig: [{
3422
+ type: i0.Input
3423
+ }], taskList: [{
3424
+ type: i0.Input
3425
+ }], nextStep: [{
3426
+ type: i0.Output
3427
+ }], addTask: [{
3428
+ type: i0.Output
3429
+ }], removeTask: [{
3430
+ type: i0.Output
3431
+ }], filterTaskList: [{
3432
+ type: i0.Output
3433
+ }], onGetTaskList: [{
3434
+ type: i0.Output
3435
+ }], onClickPerformAction: [{
3436
+ type: i0.Output
3437
+ }] } });
3438
+
3439
+ var KwikIDAgentDashboardModuleV1 = /** @class */ (function () {
3440
+ function KwikIDAgentDashboardModuleV1() {
3441
+ }
3442
+ return KwikIDAgentDashboardModuleV1;
3443
+ }());
3444
+ /** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3445
+ /** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, declarations: [KwikIDAgentDashboardComponentV1,
3446
+ CustomerListComponent,
3447
+ CustomerTileComponent,
3448
+ Ng2SearchPipe$1,
3449
+ StatusPillComponent,
3450
+ CustomerDetailsComponent,
3451
+ ActionButtonComponent], imports: [i7.CommonModule,
3452
+ i3$2.HttpClientModule,
3453
+ i2$1.FormsModule,
3454
+ i2$1.ReactiveFormsModule,
3455
+ i1.KwikUIButtonModule,
3456
+ i1.KwikUIInputModule,
3457
+ i1.KwikUIInputDateModule,
3458
+ i1.KwikUIInputDateRangeModule,
3459
+ i1.KwikUIInputSelectModule,
3460
+ i1.KwikUILabelValuePairModule,
3461
+ i1.KwikUITableModule,
3462
+ i1.KwikUITablePaginationModule,
3463
+ i3$1.KwikIDFormViewModule,
3464
+ i3.TuiRootModule,
3465
+ i3.TuiDialogModule,
3466
+ i3.TuiDropdownModule,
3467
+ addonMobile.TuiSidebarModule,
3468
+ i2.TuiActiveZoneModule,
3469
+ i3.TuiGroupModule,
3470
+ i3.TuiSvgModule,
3471
+ i5.ScrollingModule,
3472
+ i2$2.GoogleMapsModule,
3473
+ i3$2.HttpClientModule,
3474
+ i3$2.HttpClientJsonpModule], exports: [KwikIDAgentDashboardComponentV1] });
3475
+ /** @nocollapse */ KwikIDAgentDashboardModuleV1.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, imports: [[
3476
+ i7.CommonModule,
3477
+ i3$2.HttpClientModule,
3478
+ i2$1.FormsModule,
3479
+ i2$1.ReactiveFormsModule,
3480
+ i1.KwikUIButtonModule,
3481
+ i1.KwikUIInputModule,
3482
+ i1.KwikUIInputDateModule,
3483
+ i1.KwikUIInputDateRangeModule,
3484
+ i1.KwikUIInputSelectModule,
3485
+ i1.KwikUILabelValuePairModule,
3486
+ i1.KwikUITableModule,
3487
+ i1.KwikUITablePaginationModule,
3488
+ i3$1.KwikIDFormViewModule,
3489
+ i3.TuiRootModule,
3490
+ i3.TuiDialogModule,
3491
+ i3.TuiDropdownModule,
3492
+ addonMobile.TuiSidebarModule,
3493
+ i2.TuiActiveZoneModule,
3494
+ i3.TuiGroupModule,
3495
+ i3.TuiSvgModule,
3496
+ i5.ScrollingModule,
3497
+ i2$2.GoogleMapsModule,
3498
+ i3$2.HttpClientModule,
3499
+ i3$2.HttpClientJsonpModule
3500
+ ]] });
3501
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV1, decorators: [{
3502
+ type: i0.NgModule,
3503
+ args: [{
3504
+ declarations: [
3505
+ KwikIDAgentDashboardComponentV1,
3506
+ CustomerListComponent,
3507
+ CustomerTileComponent,
3508
+ Ng2SearchPipe$1,
3509
+ StatusPillComponent,
3510
+ CustomerDetailsComponent,
3511
+ ActionButtonComponent
3512
+ ],
3513
+ imports: [
3514
+ i7.CommonModule,
3515
+ i3$2.HttpClientModule,
3516
+ i2$1.FormsModule,
3517
+ i2$1.ReactiveFormsModule,
3518
+ i1.KwikUIButtonModule,
3519
+ i1.KwikUIInputModule,
3520
+ i1.KwikUIInputDateModule,
3521
+ i1.KwikUIInputDateRangeModule,
3522
+ i1.KwikUIInputSelectModule,
3523
+ i1.KwikUILabelValuePairModule,
3524
+ i1.KwikUITableModule,
3525
+ i1.KwikUITablePaginationModule,
3526
+ i3$1.KwikIDFormViewModule,
3527
+ i3.TuiRootModule,
3528
+ i3.TuiDialogModule,
3529
+ i3.TuiDropdownModule,
3530
+ addonMobile.TuiSidebarModule,
3531
+ i2.TuiActiveZoneModule,
3532
+ i3.TuiGroupModule,
3533
+ i3.TuiSvgModule,
3534
+ i5.ScrollingModule,
3535
+ i2$2.GoogleMapsModule,
3536
+ i3$2.HttpClientModule,
3537
+ i3$2.HttpClientJsonpModule
3538
+ ],
3539
+ exports: [KwikIDAgentDashboardComponentV1]
3540
+ }]
3541
+ }] });
3542
+
3543
+ var AgentInfoComponent = /** @class */ (function () {
3544
+ function AgentInfoComponent() {
3545
+ }
3546
+ AgentInfoComponent.prototype.ngOnInit = function () {
3547
+ return __awaiter(this, void 0, void 0, function () { return __generator(this, function (_a) {
3548
+ return [2 /*return*/];
3549
+ }); });
3550
+ };
3551
+ return AgentInfoComponent;
3552
+ }());
3553
+ /** @nocollapse */ AgentInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3554
+ /** @nocollapse */ AgentInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: AgentInfoComponent, selector: "agent-info", ngImport: i0__namespace, template: "Agent Info\n", styles: [""] });
3555
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoComponent, decorators: [{
3556
+ type: i0.Component,
3557
+ args: [{
3558
+ selector: "agent-info",
3559
+ templateUrl: "./agent-info.component.html",
3560
+ styleUrls: ["./agent-info.component.scss"]
3561
+ }]
3562
+ }], ctorParameters: function () { return []; } });
3563
+
3564
+ var AgentInfoModule = /** @class */ (function () {
3565
+ function AgentInfoModule() {
3566
+ }
3567
+ return AgentInfoModule;
3568
+ }());
3569
+ /** @nocollapse */ AgentInfoModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3570
+ /** @nocollapse */ AgentInfoModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, declarations: [AgentInfoComponent], imports: [i7.CommonModule,
3571
+ i2$1.FormsModule,
3572
+ i2$1.ReactiveFormsModule,
3573
+ i1.KwikUIModule,
3574
+ i3$1.KwikIDFormsModule], exports: [AgentInfoComponent] });
3575
+ /** @nocollapse */ AgentInfoModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, imports: [[
3576
+ i7.CommonModule,
3577
+ i2$1.FormsModule,
3578
+ i2$1.ReactiveFormsModule,
3579
+ i1.KwikUIModule,
3580
+ i3$1.KwikIDFormsModule
3581
+ ]] });
3582
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: AgentInfoModule, decorators: [{
3583
+ type: i0.NgModule,
3584
+ args: [{
3585
+ declarations: [AgentInfoComponent],
3586
+ imports: [
3587
+ i7.CommonModule,
3588
+ i2$1.FormsModule,
3589
+ i2$1.ReactiveFormsModule,
3590
+ i1.KwikUIModule,
3591
+ i3$1.KwikIDFormsModule
3592
+ ],
3593
+ exports: [AgentInfoComponent]
3594
+ }]
3595
+ }] });
3596
+
3597
+ var BottomSheetModule = /** @class */ (function () {
3598
+ function BottomSheetModule() {
3599
+ }
3600
+ return BottomSheetModule;
3601
+ }());
3602
+ /** @nocollapse */ BottomSheetModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3603
+ /** @nocollapse */ BottomSheetModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, declarations: [BottomSheetComponent], imports: [i7.CommonModule,
3604
+ i2$1.FormsModule,
3605
+ i2$1.ReactiveFormsModule,
3606
+ i3.TuiSvgModule,
3607
+ i1.KwikUIModule,
3608
+ i3$1.KwikIDFormsModule], exports: [BottomSheetComponent] });
3609
+ /** @nocollapse */ BottomSheetModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, imports: [[
3610
+ i7.CommonModule,
3611
+ i2$1.FormsModule,
3612
+ i2$1.ReactiveFormsModule,
3613
+ i3.TuiSvgModule,
3614
+ i1.KwikUIModule,
3615
+ i3$1.KwikIDFormsModule
3616
+ ]] });
3617
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: BottomSheetModule, decorators: [{
3618
+ type: i0.NgModule,
3619
+ args: [{
3620
+ declarations: [BottomSheetComponent],
3621
+ imports: [
3622
+ i7.CommonModule,
3623
+ i2$1.FormsModule,
3624
+ i2$1.ReactiveFormsModule,
3625
+ i3.TuiSvgModule,
3626
+ i1.KwikUIModule,
3627
+ i3$1.KwikIDFormsModule
3628
+ ],
3629
+ exports: [BottomSheetComponent]
3630
+ }]
3631
+ }] });
3632
+
3633
+ var MapViewModule = /** @class */ (function () {
3634
+ function MapViewModule() {
3635
+ }
3636
+ return MapViewModule;
3637
+ }());
3638
+ /** @nocollapse */ MapViewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3639
+ /** @nocollapse */ MapViewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, declarations: [MapViewComponent], imports: [i7.CommonModule,
3640
+ i2$1.FormsModule,
3641
+ i2$1.ReactiveFormsModule,
3642
+ i1.KwikUIModule,
3643
+ i3$1.KwikIDFormsModule], exports: [MapViewComponent] });
3644
+ /** @nocollapse */ MapViewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, imports: [[
3645
+ i7.CommonModule,
3646
+ i2$1.FormsModule,
3647
+ i2$1.ReactiveFormsModule,
3648
+ i1.KwikUIModule,
3649
+ i3$1.KwikIDFormsModule
3650
+ ]] });
3651
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MapViewModule, decorators: [{
3652
+ type: i0.NgModule,
3653
+ args: [{
3654
+ declarations: [MapViewComponent],
3655
+ imports: [
3656
+ i7.CommonModule,
3657
+ i2$1.FormsModule,
3658
+ i2$1.ReactiveFormsModule,
3659
+ i1.KwikUIModule,
3660
+ i3$1.KwikIDFormsModule
3661
+ ],
3662
+ exports: [MapViewComponent]
3663
+ }]
3664
+ }] });
3665
+
3666
+ var PrimaryActionsModule = /** @class */ (function () {
3667
+ function PrimaryActionsModule() {
3668
+ }
3669
+ return PrimaryActionsModule;
3670
+ }());
3671
+ /** @nocollapse */ PrimaryActionsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
3672
+ /** @nocollapse */ PrimaryActionsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, declarations: [PrimaryActionsComponent], imports: [i7.CommonModule,
3673
+ i2$1.FormsModule,
3674
+ i2$1.ReactiveFormsModule,
1853
3675
  i1$1.TuiItemsWithMoreModule,
1854
3676
  i3.TuiDropdownModule,
1855
3677
  i3.TuiHostedDropdownModule,
1856
3678
  i3.TuiDataListModule,
1857
3679
  i1$1.TuiBadgeModule,
1858
3680
  i1.KwikUIModule,
1859
- i3$2.KwikIDFormsModule], exports: [PrimaryActionsComponent] });
3681
+ i3$1.KwikIDFormsModule], exports: [PrimaryActionsComponent] });
1860
3682
  /** @nocollapse */ PrimaryActionsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, imports: [[
1861
- i3$1.CommonModule,
3683
+ i7.CommonModule,
1862
3684
  i2$1.FormsModule,
1863
3685
  i2$1.ReactiveFormsModule,
1864
3686
  i1$1.TuiItemsWithMoreModule,
@@ -1867,14 +3689,14 @@
1867
3689
  i3.TuiDataListModule,
1868
3690
  i1$1.TuiBadgeModule,
1869
3691
  i1.KwikUIModule,
1870
- i3$2.KwikIDFormsModule
3692
+ i3$1.KwikIDFormsModule
1871
3693
  ]] });
1872
3694
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PrimaryActionsModule, decorators: [{
1873
3695
  type: i0.NgModule,
1874
3696
  args: [{
1875
3697
  declarations: [PrimaryActionsComponent],
1876
3698
  imports: [
1877
- i3$1.CommonModule,
3699
+ i7.CommonModule,
1878
3700
  i2$1.FormsModule,
1879
3701
  i2$1.ReactiveFormsModule,
1880
3702
  i1$1.TuiItemsWithMoreModule,
@@ -1883,7 +3705,7 @@
1883
3705
  i3.TuiDataListModule,
1884
3706
  i1$1.TuiBadgeModule,
1885
3707
  i1.KwikUIModule,
1886
- i3$2.KwikIDFormsModule
3708
+ i3$1.KwikIDFormsModule
1887
3709
  ],
1888
3710
  exports: [PrimaryActionsComponent]
1889
3711
  }]
@@ -1895,13 +3717,13 @@
1895
3717
  return TaskItemStatusModule;
1896
3718
  }());
1897
3719
  /** @nocollapse */ TaskItemStatusModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1898
- /** @nocollapse */ TaskItemStatusModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, declarations: [TaskItemStatusComponent], imports: [i3$1.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule], exports: [TaskItemStatusComponent] });
1899
- /** @nocollapse */ TaskItemStatusModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, imports: [[i3$1.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule]] });
3720
+ /** @nocollapse */ TaskItemStatusModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, declarations: [TaskItemStatusComponent], imports: [i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule], exports: [TaskItemStatusComponent] });
3721
+ /** @nocollapse */ TaskItemStatusModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, imports: [[i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule]] });
1900
3722
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemStatusModule, decorators: [{
1901
3723
  type: i0.NgModule,
1902
3724
  args: [{
1903
3725
  declarations: [TaskItemStatusComponent],
1904
- imports: [i3$1.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule],
3726
+ imports: [i7.CommonModule, i2$1.FormsModule, i2$1.ReactiveFormsModule],
1905
3727
  exports: [TaskItemStatusComponent]
1906
3728
  }]
1907
3729
  }] });
@@ -1912,18 +3734,18 @@
1912
3734
  return TaskDetailModule;
1913
3735
  }());
1914
3736
  /** @nocollapse */ TaskDetailModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1915
- /** @nocollapse */ TaskDetailModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, declarations: [TaskDetailComponent], imports: [i3$1.CommonModule,
3737
+ /** @nocollapse */ TaskDetailModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, declarations: [TaskDetailComponent], imports: [i7.CommonModule,
1916
3738
  i2$1.FormsModule,
1917
3739
  i2$1.ReactiveFormsModule,
1918
3740
  i1.KwikUIModule,
1919
- i3$2.KwikIDFormsModule,
3741
+ i3$1.KwikIDFormsModule,
1920
3742
  TaskItemStatusModule], exports: [TaskDetailComponent] });
1921
3743
  /** @nocollapse */ TaskDetailModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, imports: [[
1922
- i3$1.CommonModule,
3744
+ i7.CommonModule,
1923
3745
  i2$1.FormsModule,
1924
3746
  i2$1.ReactiveFormsModule,
1925
3747
  i1.KwikUIModule,
1926
- i3$2.KwikIDFormsModule,
3748
+ i3$1.KwikIDFormsModule,
1927
3749
  TaskItemStatusModule
1928
3750
  ]] });
1929
3751
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskDetailModule, decorators: [{
@@ -1931,11 +3753,11 @@
1931
3753
  args: [{
1932
3754
  declarations: [TaskDetailComponent],
1933
3755
  imports: [
1934
- i3$1.CommonModule,
3756
+ i7.CommonModule,
1935
3757
  i2$1.FormsModule,
1936
3758
  i2$1.ReactiveFormsModule,
1937
3759
  i1.KwikUIModule,
1938
- i3$2.KwikIDFormsModule,
3760
+ i3$1.KwikIDFormsModule,
1939
3761
  TaskItemStatusModule
1940
3762
  ],
1941
3763
  exports: [TaskDetailComponent]
@@ -1948,34 +3770,34 @@
1948
3770
  return TaskItemModule;
1949
3771
  }());
1950
3772
  /** @nocollapse */ TaskItemModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1951
- /** @nocollapse */ TaskItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, declarations: [TaskItemComponent], imports: [i3$1.CommonModule,
3773
+ /** @nocollapse */ TaskItemModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, declarations: [TaskItemComponent], imports: [i7.CommonModule,
1952
3774
  i2$1.FormsModule,
1953
3775
  i2$1.ReactiveFormsModule,
1954
3776
  i1$1.TuiAccordionModule,
1955
3777
  TaskItemStatusModule,
1956
3778
  i1.KwikUIModule,
1957
- i3$2.KwikIDFormsModule], exports: [TaskItemComponent] });
3779
+ i3$1.KwikIDFormsModule], exports: [TaskItemComponent] });
1958
3780
  /** @nocollapse */ TaskItemModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, imports: [[
1959
- i3$1.CommonModule,
3781
+ i7.CommonModule,
1960
3782
  i2$1.FormsModule,
1961
3783
  i2$1.ReactiveFormsModule,
1962
3784
  i1$1.TuiAccordionModule,
1963
3785
  TaskItemStatusModule,
1964
3786
  i1.KwikUIModule,
1965
- i3$2.KwikIDFormsModule
3787
+ i3$1.KwikIDFormsModule
1966
3788
  ]] });
1967
3789
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskItemModule, decorators: [{
1968
3790
  type: i0.NgModule,
1969
3791
  args: [{
1970
3792
  declarations: [TaskItemComponent],
1971
3793
  imports: [
1972
- i3$1.CommonModule,
3794
+ i7.CommonModule,
1973
3795
  i2$1.FormsModule,
1974
3796
  i2$1.ReactiveFormsModule,
1975
3797
  i1$1.TuiAccordionModule,
1976
3798
  TaskItemStatusModule,
1977
3799
  i1.KwikUIModule,
1978
- i3$2.KwikIDFormsModule
3800
+ i3$1.KwikIDFormsModule
1979
3801
  ],
1980
3802
  exports: [TaskItemComponent]
1981
3803
  }]
@@ -1987,31 +3809,31 @@
1987
3809
  return TaskListSearchModule;
1988
3810
  }());
1989
3811
  /** @nocollapse */ TaskListSearchModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1990
- /** @nocollapse */ TaskListSearchModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, declarations: [TaskListSearchComponent], imports: [i3$1.CommonModule,
1991
- scrolling.ScrollingModule,
3812
+ /** @nocollapse */ TaskListSearchModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, declarations: [TaskListSearchComponent], imports: [i7.CommonModule,
3813
+ i5.ScrollingModule,
1992
3814
  i2$1.FormsModule,
1993
3815
  i2$1.ReactiveFormsModule,
1994
3816
  i1.KwikUIModule,
1995
- i3$2.KwikIDFormsModule], exports: [TaskListSearchComponent] });
3817
+ i3$1.KwikIDFormsModule], exports: [TaskListSearchComponent] });
1996
3818
  /** @nocollapse */ TaskListSearchModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, imports: [[
1997
- i3$1.CommonModule,
1998
- scrolling.ScrollingModule,
3819
+ i7.CommonModule,
3820
+ i5.ScrollingModule,
1999
3821
  i2$1.FormsModule,
2000
3822
  i2$1.ReactiveFormsModule,
2001
3823
  i1.KwikUIModule,
2002
- i3$2.KwikIDFormsModule
3824
+ i3$1.KwikIDFormsModule
2003
3825
  ]] });
2004
3826
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListSearchModule, decorators: [{
2005
3827
  type: i0.NgModule,
2006
3828
  args: [{
2007
3829
  declarations: [TaskListSearchComponent],
2008
3830
  imports: [
2009
- i3$1.CommonModule,
2010
- scrolling.ScrollingModule,
3831
+ i7.CommonModule,
3832
+ i5.ScrollingModule,
2011
3833
  i2$1.FormsModule,
2012
3834
  i2$1.ReactiveFormsModule,
2013
3835
  i1.KwikUIModule,
2014
- i3$2.KwikIDFormsModule
3836
+ i3$1.KwikIDFormsModule
2015
3837
  ],
2016
3838
  exports: [TaskListSearchComponent]
2017
3839
  }]
@@ -2041,7 +3863,7 @@
2041
3863
  Ng2SearchPipe.filter = function (items, term, excludes) {
2042
3864
  var toCompare = term.toLowerCase();
2043
3865
  function checkInside(item, term) {
2044
- if (typeof item === 'string' &&
3866
+ if (typeof item === "string" &&
2045
3867
  item.toString().toLowerCase().includes(toCompare)) {
2046
3868
  return true;
2047
3869
  }
@@ -2051,7 +3873,7 @@
2051
3873
  excludes.includes(property)) {
2052
3874
  continue;
2053
3875
  }
2054
- if (typeof item[property] === 'object') {
3876
+ if (typeof item[property] === "object") {
2055
3877
  if (checkInside(item[property], term)) {
2056
3878
  return true;
2057
3879
  }
@@ -2074,7 +3896,7 @@
2074
3896
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: Ng2SearchPipe, decorators: [{
2075
3897
  type: i0.Pipe,
2076
3898
  args: [{
2077
- name: 'filter',
3899
+ name: "filter",
2078
3900
  pure: false
2079
3901
  }]
2080
3902
  }, {
@@ -2087,24 +3909,24 @@
2087
3909
  return TaskListModule;
2088
3910
  }());
2089
3911
  /** @nocollapse */ TaskListModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2090
- /** @nocollapse */ TaskListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, declarations: [TaskListComponent, Ng2SearchPipe], imports: [i3$1.CommonModule,
2091
- scrolling.ScrollingModule,
3912
+ /** @nocollapse */ TaskListModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, declarations: [TaskListComponent, Ng2SearchPipe], imports: [i7.CommonModule,
3913
+ i5.ScrollingModule,
2092
3914
  i2$1.FormsModule,
2093
3915
  i2$1.ReactiveFormsModule,
2094
3916
  i1.KwikUIModule,
2095
3917
  i1.KwikUILoaderModule,
2096
- i3$2.KwikIDFormsModule,
3918
+ i3$1.KwikIDFormsModule,
2097
3919
  TaskItemModule,
2098
3920
  TaskListSearchModule,
2099
3921
  i1$1.TuiPaginationModule], exports: [TaskListComponent] });
2100
3922
  /** @nocollapse */ TaskListModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskListModule, imports: [[
2101
- i3$1.CommonModule,
2102
- scrolling.ScrollingModule,
3923
+ i7.CommonModule,
3924
+ i5.ScrollingModule,
2103
3925
  i2$1.FormsModule,
2104
3926
  i2$1.ReactiveFormsModule,
2105
3927
  i1.KwikUIModule,
2106
3928
  i1.KwikUILoaderModule,
2107
- i3$2.KwikIDFormsModule,
3929
+ i3$1.KwikIDFormsModule,
2108
3930
  TaskItemModule,
2109
3931
  TaskListSearchModule,
2110
3932
  i1$1.TuiPaginationModule
@@ -2114,13 +3936,13 @@
2114
3936
  args: [{
2115
3937
  declarations: [TaskListComponent, Ng2SearchPipe],
2116
3938
  imports: [
2117
- i3$1.CommonModule,
2118
- scrolling.ScrollingModule,
3939
+ i7.CommonModule,
3940
+ i5.ScrollingModule,
2119
3941
  i2$1.FormsModule,
2120
3942
  i2$1.ReactiveFormsModule,
2121
3943
  i1.KwikUIModule,
2122
3944
  i1.KwikUILoaderModule,
2123
- i3$2.KwikIDFormsModule,
3945
+ i3$1.KwikIDFormsModule,
2124
3946
  TaskItemModule,
2125
3947
  TaskListSearchModule,
2126
3948
  i1$1.TuiPaginationModule
@@ -2147,9 +3969,9 @@
2147
3969
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewComponent, decorators: [{
2148
3970
  type: i0.Component,
2149
3971
  args: [{
2150
- selector: 'task-preview',
2151
- templateUrl: './task-preview.component.html',
2152
- styleUrls: ['./task-preview.component.scss']
3972
+ selector: "task-preview",
3973
+ templateUrl: "./task-preview.component.html",
3974
+ styleUrls: ["./task-preview.component.scss"]
2153
3975
  }]
2154
3976
  }], ctorParameters: function () { return []; }, propDecorators: { config: [{
2155
3977
  type: i0.Input
@@ -2165,28 +3987,28 @@
2165
3987
  return TaskPreviewModule;
2166
3988
  }());
2167
3989
  /** @nocollapse */ TaskPreviewModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2168
- /** @nocollapse */ TaskPreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, declarations: [TaskPreviewComponent], imports: [i3$1.CommonModule,
3990
+ /** @nocollapse */ TaskPreviewModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, declarations: [TaskPreviewComponent], imports: [i7.CommonModule,
2169
3991
  i2$1.FormsModule,
2170
3992
  i2$1.ReactiveFormsModule,
2171
3993
  i1.KwikUIModule,
2172
- i3$2.KwikIDFormsModule], exports: [TaskPreviewComponent] });
3994
+ i3$1.KwikIDFormsModule], exports: [TaskPreviewComponent] });
2173
3995
  /** @nocollapse */ TaskPreviewModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, imports: [[
2174
- i3$1.CommonModule,
3996
+ i7.CommonModule,
2175
3997
  i2$1.FormsModule,
2176
3998
  i2$1.ReactiveFormsModule,
2177
3999
  i1.KwikUIModule,
2178
- i3$2.KwikIDFormsModule
4000
+ i3$1.KwikIDFormsModule
2179
4001
  ]] });
2180
4002
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: TaskPreviewModule, decorators: [{
2181
4003
  type: i0.NgModule,
2182
4004
  args: [{
2183
4005
  declarations: [TaskPreviewComponent],
2184
4006
  imports: [
2185
- i3$1.CommonModule,
4007
+ i7.CommonModule,
2186
4008
  i2$1.FormsModule,
2187
4009
  i2$1.ReactiveFormsModule,
2188
4010
  i1.KwikUIModule,
2189
- i3$2.KwikIDFormsModule
4011
+ i3$1.KwikIDFormsModule
2190
4012
  ],
2191
4013
  exports: [TaskPreviewComponent]
2192
4014
  }]
@@ -2269,22 +4091,22 @@
2269
4091
  return LayoutBodyModule;
2270
4092
  }());
2271
4093
  /** @nocollapse */ LayoutBodyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2272
- /** @nocollapse */ LayoutBodyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, declarations: [LayoutBodyComponent], imports: [i3$1.CommonModule,
4094
+ /** @nocollapse */ LayoutBodyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, declarations: [LayoutBodyComponent], imports: [i7.CommonModule,
2273
4095
  i2$1.FormsModule,
2274
4096
  i2$1.ReactiveFormsModule,
2275
4097
  i1.KwikUIModule,
2276
- i3$2.KwikIDFormViewModule,
4098
+ i3$1.KwikIDFormViewModule,
2277
4099
  ComponentModule,
2278
4100
  i3.TuiSvgModule,
2279
4101
  i8.TuiPreviewActionModule,
2280
4102
  i8.TuiPreviewModule,
2281
4103
  i3.TuiButtonModule], exports: [LayoutBodyComponent] });
2282
4104
  /** @nocollapse */ LayoutBodyModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutBodyModule, imports: [[
2283
- i3$1.CommonModule,
4105
+ i7.CommonModule,
2284
4106
  i2$1.FormsModule,
2285
4107
  i2$1.ReactiveFormsModule,
2286
4108
  i1.KwikUIModule,
2287
- i3$2.KwikIDFormViewModule,
4109
+ i3$1.KwikIDFormViewModule,
2288
4110
  ComponentModule,
2289
4111
  i3.TuiSvgModule,
2290
4112
  i8.TuiPreviewActionModule,
@@ -2296,11 +4118,11 @@
2296
4118
  args: [{
2297
4119
  declarations: [LayoutBodyComponent],
2298
4120
  imports: [
2299
- i3$1.CommonModule,
4121
+ i7.CommonModule,
2300
4122
  i2$1.FormsModule,
2301
4123
  i2$1.ReactiveFormsModule,
2302
4124
  i1.KwikUIModule,
2303
- i3$2.KwikIDFormViewModule,
4125
+ i3$1.KwikIDFormViewModule,
2304
4126
  ComponentModule,
2305
4127
  i3.TuiSvgModule,
2306
4128
  i8.TuiPreviewActionModule,
@@ -2317,20 +4139,20 @@
2317
4139
  return LayoutHeaderModule;
2318
4140
  }());
2319
4141
  /** @nocollapse */ LayoutHeaderModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
2320
- /** @nocollapse */ LayoutHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, declarations: [LayoutHeaderComponent], imports: [i3$1.CommonModule,
4142
+ /** @nocollapse */ LayoutHeaderModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, declarations: [LayoutHeaderComponent], imports: [i7.CommonModule,
2321
4143
  i2$1.FormsModule,
2322
4144
  i2$1.ReactiveFormsModule,
2323
4145
  i1.KwikUIModule,
2324
- i3$2.KwikIDFormsModule,
4146
+ i3$1.KwikIDFormsModule,
2325
4147
  i2.TuiActiveZoneModule,
2326
4148
  i3.TuiGroupModule,
2327
4149
  i3.TuiDropdownModule], exports: [LayoutHeaderComponent] });
2328
4150
  /** @nocollapse */ LayoutHeaderModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: LayoutHeaderModule, imports: [[
2329
- i3$1.CommonModule,
4151
+ i7.CommonModule,
2330
4152
  i2$1.FormsModule,
2331
4153
  i2$1.ReactiveFormsModule,
2332
4154
  i1.KwikUIModule,
2333
- i3$2.KwikIDFormsModule,
4155
+ i3$1.KwikIDFormsModule,
2334
4156
  i2.TuiActiveZoneModule,
2335
4157
  i3.TuiGroupModule,
2336
4158
  i3.TuiDropdownModule
@@ -2340,11 +4162,11 @@
2340
4162
  args: [{
2341
4163
  declarations: [LayoutHeaderComponent],
2342
4164
  imports: [
2343
- i3$1.CommonModule,
4165
+ i7.CommonModule,
2344
4166
  i2$1.FormsModule,
2345
4167
  i2$1.ReactiveFormsModule,
2346
4168
  i1.KwikUIModule,
2347
- i3$2.KwikIDFormsModule,
4169
+ i3$1.KwikIDFormsModule,
2348
4170
  i2.TuiActiveZoneModule,
2349
4171
  i3.TuiGroupModule,
2350
4172
  i3.TuiDropdownModule
@@ -2370,41 +4192,137 @@
2370
4192
  }]
2371
4193
  }] });
2372
4194
 
2373
- var KwikIDAgentDashboardModule = /** @class */ (function () {
2374
- function KwikIDAgentDashboardModule() {
4195
+ var KwikIDAgentDashboardModuleV2 = /** @class */ (function () {
4196
+ function KwikIDAgentDashboardModuleV2() {
2375
4197
  }
2376
- return KwikIDAgentDashboardModule;
4198
+ return KwikIDAgentDashboardModuleV2;
2377
4199
  }());
2378
- /** @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 });
2379
- /** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent], imports: [i3$1.CommonModule,
4200
+ /** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
4201
+ /** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, declarations: [KwikIDAgentDashboardComponentV2], imports: [i7.CommonModule,
2380
4202
  i2$1.FormsModule,
2381
4203
  i2$1.ReactiveFormsModule,
2382
4204
  i1.KwikUIModule,
2383
- i3$2.KwikIDFormsModule,
4205
+ i3$1.KwikIDFormsModule,
2384
4206
  LayoutModule,
2385
- ComponentModule], exports: [KwikIDAgentDashboardComponent] });
2386
- /** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
2387
- i3$1.CommonModule,
4207
+ ComponentModule], exports: [KwikIDAgentDashboardComponentV2] });
4208
+ /** @nocollapse */ KwikIDAgentDashboardModuleV2.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, imports: [[
4209
+ i7.CommonModule,
2388
4210
  i2$1.FormsModule,
2389
4211
  i2$1.ReactiveFormsModule,
2390
4212
  i1.KwikUIModule,
2391
- i3$2.KwikIDFormsModule,
4213
+ i3$1.KwikIDFormsModule,
2392
4214
  LayoutModule,
2393
4215
  ComponentModule
2394
4216
  ]] });
2395
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
4217
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModuleV2, decorators: [{
2396
4218
  type: i0.NgModule,
2397
4219
  args: [{
2398
- declarations: [KwikIDAgentDashboardComponent],
4220
+ declarations: [KwikIDAgentDashboardComponentV2],
2399
4221
  imports: [
2400
- i3$1.CommonModule,
4222
+ i7.CommonModule,
2401
4223
  i2$1.FormsModule,
2402
4224
  i2$1.ReactiveFormsModule,
2403
4225
  i1.KwikUIModule,
2404
- i3$2.KwikIDFormsModule,
4226
+ i3$1.KwikIDFormsModule,
2405
4227
  LayoutModule,
2406
4228
  ComponentModule
2407
4229
  ],
4230
+ exports: [KwikIDAgentDashboardComponentV2]
4231
+ }]
4232
+ }] });
4233
+
4234
+ var KwikIDAgentDashboardModule = /** @class */ (function () {
4235
+ function KwikIDAgentDashboardModule() {
4236
+ }
4237
+ return KwikIDAgentDashboardModule;
4238
+ }());
4239
+ /** @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 });
4240
+ /** @nocollapse */ KwikIDAgentDashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, declarations: [KwikIDAgentDashboardComponent], imports: [i7.CommonModule,
4241
+ i3$2.HttpClientModule,
4242
+ i2$1.FormsModule,
4243
+ i2$1.ReactiveFormsModule,
4244
+ i1.KwikUIButtonModule,
4245
+ i1.KwikUIInputModule,
4246
+ i1.KwikUIInputDateModule,
4247
+ i1.KwikUIInputDateRangeModule,
4248
+ i1.KwikUIInputSelectModule,
4249
+ i1.KwikUILabelValuePairModule,
4250
+ i1.KwikUITableModule,
4251
+ i1.KwikUITablePaginationModule,
4252
+ i3$1.KwikIDFormViewModule,
4253
+ i3.TuiRootModule,
4254
+ i3.TuiDialogModule,
4255
+ i3.TuiDropdownModule,
4256
+ addonMobile.TuiSidebarModule,
4257
+ i2.TuiActiveZoneModule,
4258
+ i3.TuiGroupModule,
4259
+ i3.TuiSvgModule,
4260
+ i5.ScrollingModule,
4261
+ i2$2.GoogleMapsModule,
4262
+ i3$2.HttpClientModule,
4263
+ i3$2.HttpClientJsonpModule,
4264
+ KwikIDAgentDashboardModuleV1,
4265
+ KwikIDAgentDashboardModuleV2], exports: [KwikIDAgentDashboardComponent] });
4266
+ /** @nocollapse */ KwikIDAgentDashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, imports: [[
4267
+ i7.CommonModule,
4268
+ i3$2.HttpClientModule,
4269
+ i2$1.FormsModule,
4270
+ i2$1.ReactiveFormsModule,
4271
+ i1.KwikUIButtonModule,
4272
+ i1.KwikUIInputModule,
4273
+ i1.KwikUIInputDateModule,
4274
+ i1.KwikUIInputDateRangeModule,
4275
+ i1.KwikUIInputSelectModule,
4276
+ i1.KwikUILabelValuePairModule,
4277
+ i1.KwikUITableModule,
4278
+ i1.KwikUITablePaginationModule,
4279
+ i3$1.KwikIDFormViewModule,
4280
+ i3.TuiRootModule,
4281
+ i3.TuiDialogModule,
4282
+ i3.TuiDropdownModule,
4283
+ addonMobile.TuiSidebarModule,
4284
+ i2.TuiActiveZoneModule,
4285
+ i3.TuiGroupModule,
4286
+ i3.TuiSvgModule,
4287
+ i5.ScrollingModule,
4288
+ i2$2.GoogleMapsModule,
4289
+ i3$2.HttpClientModule,
4290
+ i3$2.HttpClientJsonpModule,
4291
+ KwikIDAgentDashboardModuleV1,
4292
+ KwikIDAgentDashboardModuleV2
4293
+ ]] });
4294
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: KwikIDAgentDashboardModule, decorators: [{
4295
+ type: i0.NgModule,
4296
+ args: [{
4297
+ declarations: [KwikIDAgentDashboardComponent],
4298
+ imports: [
4299
+ i7.CommonModule,
4300
+ i3$2.HttpClientModule,
4301
+ i2$1.FormsModule,
4302
+ i2$1.ReactiveFormsModule,
4303
+ i1.KwikUIButtonModule,
4304
+ i1.KwikUIInputModule,
4305
+ i1.KwikUIInputDateModule,
4306
+ i1.KwikUIInputDateRangeModule,
4307
+ i1.KwikUIInputSelectModule,
4308
+ i1.KwikUILabelValuePairModule,
4309
+ i1.KwikUITableModule,
4310
+ i1.KwikUITablePaginationModule,
4311
+ i3$1.KwikIDFormViewModule,
4312
+ i3.TuiRootModule,
4313
+ i3.TuiDialogModule,
4314
+ i3.TuiDropdownModule,
4315
+ addonMobile.TuiSidebarModule,
4316
+ i2.TuiActiveZoneModule,
4317
+ i3.TuiGroupModule,
4318
+ i3.TuiSvgModule,
4319
+ i5.ScrollingModule,
4320
+ i2$2.GoogleMapsModule,
4321
+ i3$2.HttpClientModule,
4322
+ i3$2.HttpClientJsonpModule,
4323
+ KwikIDAgentDashboardModuleV1,
4324
+ KwikIDAgentDashboardModuleV2
4325
+ ],
2408
4326
  exports: [KwikIDAgentDashboardComponent]
2409
4327
  }]
2410
4328
  }] });