ahs-cti 0.0.29 → 0.0.30

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 (42) hide show
  1. package/dist/{agentDetailReport-6HFIDHTC.mjs → agentDetailReport-5KLUBUZH.mjs} +2 -2
  2. package/dist/{agentPerformanceReport-2UZWOGER.mjs → agentPerformanceReport-6CT6PKDS.mjs} +113 -101
  3. package/dist/agentPerformanceReport-6CT6PKDS.mjs.map +1 -0
  4. package/dist/{callHistory-DDMQBE7X.mjs → callHistory-OBF5Z6DU.mjs} +3 -5
  5. package/dist/{callHistory-DDMQBE7X.mjs.map → callHistory-OBF5Z6DU.mjs.map} +1 -1
  6. package/dist/{campaigns-WR2342WE.mjs → campaigns-DSC5PBRM.mjs} +139 -100
  7. package/dist/campaigns-DSC5PBRM.mjs.map +1 -0
  8. package/dist/{chunk-6AXXYS36.mjs → chunk-3OVYSB7R.mjs} +22 -11
  9. package/dist/chunk-3OVYSB7R.mjs.map +1 -0
  10. package/dist/{chunk-DT4DCE7W.mjs → chunk-TDKW6IXV.mjs} +10 -3
  11. package/dist/chunk-TDKW6IXV.mjs.map +1 -0
  12. package/dist/index.d.mts +1 -54
  13. package/dist/index.d.ts +2 -55
  14. package/dist/index.js +2214 -2142
  15. package/dist/index.js.map +1 -1
  16. package/dist/index.mjs +10 -9
  17. package/dist/index.mjs.map +1 -1
  18. package/dist-react/{agentDetailReport-D4SIU3BC.mjs → agentDetailReport-D6YX5EWT.mjs} +2 -2
  19. package/dist-react/{agentPerformanceReport-ZU2J22GR.mjs → agentPerformanceReport-IGTLLSZV.mjs} +40 -21
  20. package/dist-react/agentPerformanceReport-IGTLLSZV.mjs.map +1 -0
  21. package/dist-react/{campaigns-QRYQRSLX.mjs → campaigns-S4LFD5EX.mjs} +124 -90
  22. package/dist-react/campaigns-S4LFD5EX.mjs.map +1 -0
  23. package/dist-react/{chunk-GE5Q5DRU.mjs → chunk-IYYH5PCQ.mjs} +14 -10
  24. package/dist-react/chunk-IYYH5PCQ.mjs.map +1 -0
  25. package/dist-react/index.d.mts +1 -54
  26. package/dist-react/index.d.ts +1 -54
  27. package/dist-react/index.js +179 -120
  28. package/dist-react/index.js.map +1 -1
  29. package/dist-react/index.mjs +7 -4
  30. package/dist-react/index.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/agentPerformanceReport-2UZWOGER.mjs.map +0 -1
  33. package/dist/campaigns-WR2342WE.mjs.map +0 -1
  34. package/dist/chunk-6AXXYS36.mjs.map +0 -1
  35. package/dist/chunk-DT4DCE7W.mjs.map +0 -1
  36. package/dist/chunk-LJACVXXL.mjs +0 -24
  37. package/dist/chunk-LJACVXXL.mjs.map +0 -1
  38. package/dist-react/agentPerformanceReport-ZU2J22GR.mjs.map +0 -1
  39. package/dist-react/campaigns-QRYQRSLX.mjs.map +0 -1
  40. package/dist-react/chunk-GE5Q5DRU.mjs.map +0 -1
  41. /package/dist/{agentDetailReport-6HFIDHTC.mjs.map → agentDetailReport-5KLUBUZH.mjs.map} +0 -0
  42. /package/dist-react/{agentDetailReport-D4SIU3BC.mjs.map → agentDetailReport-D6YX5EWT.mjs.map} +0 -0
@@ -10,7 +10,7 @@ var require = function (id) {
10
10
 
11
11
  import {
12
12
  agentDetailReport_default
13
- } from "./chunk-6AXXYS36.mjs";
13
+ } from "./chunk-3OVYSB7R.mjs";
14
14
  import "./chunk-NX4GSQTP.mjs";
15
15
  import "./chunk-KYGJOAS4.mjs";
16
16
  import "./chunk-KQRMGBV3.mjs";
@@ -25,4 +25,4 @@ import "./chunk-7F3FCGC3.mjs";
25
25
  export {
26
26
  agentDetailReport_default as default
27
27
  };
28
- //# sourceMappingURL=agentDetailReport-6HFIDHTC.mjs.map
28
+ //# sourceMappingURL=agentDetailReport-5KLUBUZH.mjs.map
@@ -26,10 +26,11 @@ import {
26
26
  } from "./chunk-ESUAMCTF.mjs";
27
27
  import {
28
28
  BreakSessionsTable,
29
+ Visibility_default,
29
30
  agentDetailReport_default,
30
31
  exportAgentBreakSessionsToExcel,
31
32
  getAgentBreakSessions
32
- } from "./chunk-6AXXYS36.mjs";
33
+ } from "./chunk-3OVYSB7R.mjs";
33
34
  import "./chunk-NX4GSQTP.mjs";
34
35
  import {
35
36
  FileDownload_default
@@ -82,7 +83,8 @@ import {
82
83
  Search_default
83
84
  } from "./chunk-RRZP7UK2.mjs";
84
85
  import {
85
- SDKProvider
86
+ SDKProvider,
87
+ useToast
86
88
  } from "./chunk-R7E4CV5J.mjs";
87
89
  import {
88
90
  Close_default
@@ -168,14 +170,6 @@ import {
168
170
 
169
171
  // call-control-sdk/lib/pages/agentPerformanceReport/index.tsx
170
172
  import { useState as useState5, useEffect as useEffect4, useMemo as useMemo3, useCallback as useCallback2 } from "react";
171
-
172
- // node_modules/@mui/icons-material/Visibility.mjs
173
- import { jsx as _jsx } from "react/jsx-runtime";
174
- var Visibility_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
175
- d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
176
- }), "Visibility");
177
-
178
- // call-control-sdk/lib/pages/agentPerformanceReport/index.tsx
179
173
  var import_dayjs2 = __toESM(require_dayjs_min());
180
174
 
181
175
  // node_modules/@tanstack/react-table/build/lib/index.mjs
@@ -3854,177 +3848,177 @@ function getAccessorAttributes(accessor) {
3854
3848
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
3855
3849
 
3856
3850
  // node_modules/@mui/icons-material/ArrowDownward.mjs
3857
- import { jsx as _jsx2 } from "react/jsx-runtime";
3858
- var ArrowDownward_default = createSvgIcon(/* @__PURE__ */ _jsx2("path", {
3851
+ import { jsx as _jsx } from "react/jsx-runtime";
3852
+ var ArrowDownward_default = createSvgIcon(/* @__PURE__ */ _jsx("path", {
3859
3853
  d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"
3860
3854
  }), "ArrowDownward");
3861
3855
 
3862
3856
  // node_modules/@mui/icons-material/ArrowRight.mjs
3863
- import { jsx as _jsx3 } from "react/jsx-runtime";
3864
- var ArrowRight_default = createSvgIcon(/* @__PURE__ */ _jsx3("path", {
3857
+ import { jsx as _jsx2 } from "react/jsx-runtime";
3858
+ var ArrowRight_default = createSvgIcon(/* @__PURE__ */ _jsx2("path", {
3865
3859
  d: "m10 17 5-5-5-5z"
3866
3860
  }), "ArrowRight");
3867
3861
 
3868
3862
  // node_modules/@mui/icons-material/Cancel.mjs
3869
- import { jsx as _jsx4 } from "react/jsx-runtime";
3870
- var Cancel_default = createSvgIcon(/* @__PURE__ */ _jsx4("path", {
3863
+ import { jsx as _jsx3 } from "react/jsx-runtime";
3864
+ var Cancel_default = createSvgIcon(/* @__PURE__ */ _jsx3("path", {
3871
3865
  d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"
3872
3866
  }), "Cancel");
3873
3867
 
3874
3868
  // node_modules/@mui/icons-material/ClearAll.mjs
3875
- import { jsx as _jsx5 } from "react/jsx-runtime";
3876
- var ClearAll_default = createSvgIcon(/* @__PURE__ */ _jsx5("path", {
3869
+ import { jsx as _jsx4 } from "react/jsx-runtime";
3870
+ var ClearAll_default = createSvgIcon(/* @__PURE__ */ _jsx4("path", {
3877
3871
  d: "M5 13h14v-2H5zm-2 4h14v-2H3zM7 7v2h14V7z"
3878
3872
  }), "ClearAll");
3879
3873
 
3880
3874
  // node_modules/@mui/icons-material/ContentCopy.mjs
3881
- import { jsx as _jsx6 } from "react/jsx-runtime";
3882
- var ContentCopy_default = createSvgIcon(/* @__PURE__ */ _jsx6("path", {
3875
+ import { jsx as _jsx5 } from "react/jsx-runtime";
3876
+ var ContentCopy_default = createSvgIcon(/* @__PURE__ */ _jsx5("path", {
3883
3877
  d: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"
3884
3878
  }), "ContentCopy");
3885
3879
 
3886
3880
  // node_modules/@mui/icons-material/DensityLarge.mjs
3887
- import { jsx as _jsx7 } from "react/jsx-runtime";
3888
- var DensityLarge_default = createSvgIcon(/* @__PURE__ */ _jsx7("path", {
3881
+ import { jsx as _jsx6 } from "react/jsx-runtime";
3882
+ var DensityLarge_default = createSvgIcon(/* @__PURE__ */ _jsx6("path", {
3889
3883
  d: "M3 3h18v2H3zm0 16h18v2H3z"
3890
3884
  }), "DensityLarge");
3891
3885
 
3892
3886
  // node_modules/@mui/icons-material/DensityMedium.mjs
3893
- import { jsx as _jsx8 } from "react/jsx-runtime";
3894
- var DensityMedium_default = createSvgIcon(/* @__PURE__ */ _jsx8("path", {
3887
+ import { jsx as _jsx7 } from "react/jsx-runtime";
3888
+ var DensityMedium_default = createSvgIcon(/* @__PURE__ */ _jsx7("path", {
3895
3889
  d: "M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"
3896
3890
  }), "DensityMedium");
3897
3891
 
3898
3892
  // node_modules/@mui/icons-material/DensitySmall.mjs
3899
- import { jsx as _jsx9 } from "react/jsx-runtime";
3900
- var DensitySmall_default = createSvgIcon(/* @__PURE__ */ _jsx9("path", {
3893
+ import { jsx as _jsx8 } from "react/jsx-runtime";
3894
+ var DensitySmall_default = createSvgIcon(/* @__PURE__ */ _jsx8("path", {
3901
3895
  d: "M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"
3902
3896
  }), "DensitySmall");
3903
3897
 
3904
3898
  // node_modules/@mui/icons-material/DragHandle.mjs
3905
- import { jsx as _jsx10 } from "react/jsx-runtime";
3906
- var DragHandle_default = createSvgIcon(/* @__PURE__ */ _jsx10("path", {
3899
+ import { jsx as _jsx9 } from "react/jsx-runtime";
3900
+ var DragHandle_default = createSvgIcon(/* @__PURE__ */ _jsx9("path", {
3907
3901
  d: "M20 9H4v2h16zM4 15h16v-2H4z"
3908
3902
  }), "DragHandle");
3909
3903
 
3910
3904
  // node_modules/@mui/icons-material/DynamicFeed.mjs
3911
- import { jsx as _jsx11 } from "react/jsx-runtime";
3912
- var DynamicFeed_default = createSvgIcon([/* @__PURE__ */ _jsx11("path", {
3905
+ import { jsx as _jsx10 } from "react/jsx-runtime";
3906
+ var DynamicFeed_default = createSvgIcon([/* @__PURE__ */ _jsx10("path", {
3913
3907
  d: "M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"
3914
- }, "0"), /* @__PURE__ */ _jsx11("path", {
3908
+ }, "0"), /* @__PURE__ */ _jsx10("path", {
3915
3909
  d: "M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"
3916
3910
  }, "1")], "DynamicFeed");
3917
3911
 
3918
3912
  // node_modules/@mui/icons-material/ExpandMore.mjs
3919
- import { jsx as _jsx12 } from "react/jsx-runtime";
3920
- var ExpandMore_default = createSvgIcon(/* @__PURE__ */ _jsx12("path", {
3913
+ import { jsx as _jsx11 } from "react/jsx-runtime";
3914
+ var ExpandMore_default = createSvgIcon(/* @__PURE__ */ _jsx11("path", {
3921
3915
  d: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"
3922
3916
  }), "ExpandMore");
3923
3917
 
3924
3918
  // node_modules/@mui/icons-material/FilterAlt.mjs
3925
- import { jsx as _jsx13 } from "react/jsx-runtime";
3926
- var FilterAlt_default = createSvgIcon(/* @__PURE__ */ _jsx13("path", {
3919
+ import { jsx as _jsx12 } from "react/jsx-runtime";
3920
+ var FilterAlt_default = createSvgIcon(/* @__PURE__ */ _jsx12("path", {
3927
3921
  d: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61"
3928
3922
  }), "FilterAlt");
3929
3923
 
3930
3924
  // node_modules/@mui/icons-material/FilterList.mjs
3931
- import { jsx as _jsx14 } from "react/jsx-runtime";
3932
- var FilterList_default = createSvgIcon(/* @__PURE__ */ _jsx14("path", {
3925
+ import { jsx as _jsx13 } from "react/jsx-runtime";
3926
+ var FilterList_default = createSvgIcon(/* @__PURE__ */ _jsx13("path", {
3933
3927
  d: "M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"
3934
3928
  }), "FilterList");
3935
3929
 
3936
3930
  // node_modules/@mui/icons-material/FilterListOff.mjs
3937
- import { jsx as _jsx15 } from "react/jsx-runtime";
3938
- var FilterListOff_default = createSvgIcon(/* @__PURE__ */ _jsx15("path", {
3931
+ import { jsx as _jsx14 } from "react/jsx-runtime";
3932
+ var FilterListOff_default = createSvgIcon(/* @__PURE__ */ _jsx14("path", {
3939
3933
  d: "M10.83 8H21V6H8.83zm5 5H18v-2h-4.17zM14 16.83V18h-4v-2h3.17l-3-3H6v-2h2.17l-3-3H3V6h.17L1.39 4.22 2.8 2.81l18.38 18.38-1.41 1.41z"
3940
3934
  }), "FilterListOff");
3941
3935
 
3942
3936
  // node_modules/@mui/icons-material/FirstPage.mjs
3943
- import { jsx as _jsx16 } from "react/jsx-runtime";
3944
- var FirstPage_default = createSvgIcon(/* @__PURE__ */ _jsx16("path", {
3937
+ import { jsx as _jsx15 } from "react/jsx-runtime";
3938
+ var FirstPage_default = createSvgIcon(/* @__PURE__ */ _jsx15("path", {
3945
3939
  d: "M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
3946
3940
  }), "FirstPage");
3947
3941
 
3948
3942
  // node_modules/@mui/icons-material/Fullscreen.mjs
3949
- import { jsx as _jsx17 } from "react/jsx-runtime";
3950
- var Fullscreen_default = createSvgIcon(/* @__PURE__ */ _jsx17("path", {
3943
+ import { jsx as _jsx16 } from "react/jsx-runtime";
3944
+ var Fullscreen_default = createSvgIcon(/* @__PURE__ */ _jsx16("path", {
3951
3945
  d: "M7 14H5v5h5v-2H7zm-2-4h2V7h3V5H5zm12 7h-3v2h5v-5h-2zM14 5v2h3v3h2V5z"
3952
3946
  }), "Fullscreen");
3953
3947
 
3954
3948
  // node_modules/@mui/icons-material/FullscreenExit.mjs
3955
- import { jsx as _jsx18 } from "react/jsx-runtime";
3956
- var FullscreenExit_default = createSvgIcon(/* @__PURE__ */ _jsx18("path", {
3949
+ import { jsx as _jsx17 } from "react/jsx-runtime";
3950
+ var FullscreenExit_default = createSvgIcon(/* @__PURE__ */ _jsx17("path", {
3957
3951
  d: "M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"
3958
3952
  }), "FullscreenExit");
3959
3953
 
3960
3954
  // node_modules/@mui/icons-material/KeyboardDoubleArrowDown.mjs
3961
- import { jsx as _jsx19 } from "react/jsx-runtime";
3962
- var KeyboardDoubleArrowDown_default = createSvgIcon([/* @__PURE__ */ _jsx19("path", {
3955
+ import { jsx as _jsx18 } from "react/jsx-runtime";
3956
+ var KeyboardDoubleArrowDown_default = createSvgIcon([/* @__PURE__ */ _jsx18("path", {
3963
3957
  d: "M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"
3964
- }, "0"), /* @__PURE__ */ _jsx19("path", {
3958
+ }, "0"), /* @__PURE__ */ _jsx18("path", {
3965
3959
  d: "m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"
3966
3960
  }, "1")], "KeyboardDoubleArrowDown");
3967
3961
 
3968
3962
  // node_modules/@mui/icons-material/LastPage.mjs
3969
- import { jsx as _jsx20 } from "react/jsx-runtime";
3970
- var LastPage_default = createSvgIcon(/* @__PURE__ */ _jsx20("path", {
3963
+ import { jsx as _jsx19 } from "react/jsx-runtime";
3964
+ var LastPage_default = createSvgIcon(/* @__PURE__ */ _jsx19("path", {
3971
3965
  d: "M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
3972
3966
  }), "LastPage");
3973
3967
 
3974
3968
  // node_modules/@mui/icons-material/MoreHoriz.mjs
3975
- import { jsx as _jsx21 } from "react/jsx-runtime";
3976
- var MoreHoriz_default = createSvgIcon(/* @__PURE__ */ _jsx21("path", {
3969
+ import { jsx as _jsx20 } from "react/jsx-runtime";
3970
+ var MoreHoriz_default = createSvgIcon(/* @__PURE__ */ _jsx20("path", {
3977
3971
  d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
3978
3972
  }), "MoreHoriz");
3979
3973
 
3980
3974
  // node_modules/@mui/icons-material/PushPin.mjs
3981
- import { jsx as _jsx22 } from "react/jsx-runtime";
3982
- var PushPin_default = createSvgIcon(/* @__PURE__ */ _jsx22("path", {
3975
+ import { jsx as _jsx21 } from "react/jsx-runtime";
3976
+ var PushPin_default = createSvgIcon(/* @__PURE__ */ _jsx21("path", {
3983
3977
  fillRule: "evenodd",
3984
3978
  d: "M16 9V4h1c.55 0 1-.45 1-1s-.45-1-1-1H7c-.55 0-1 .45-1 1s.45 1 1 1h1v5c0 1.66-1.34 3-3 3v2h5.97v7l1 1 1-1v-7H19v-2c-1.66 0-3-1.34-3-3"
3985
3979
  }), "PushPin");
3986
3980
 
3987
3981
  // node_modules/@mui/icons-material/RestartAlt.mjs
3988
- import { jsx as _jsx23 } from "react/jsx-runtime";
3989
- var RestartAlt_default = createSvgIcon(/* @__PURE__ */ _jsx23("path", {
3982
+ import { jsx as _jsx22 } from "react/jsx-runtime";
3983
+ var RestartAlt_default = createSvgIcon(/* @__PURE__ */ _jsx22("path", {
3990
3984
  d: "M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"
3991
3985
  }), "RestartAlt");
3992
3986
 
3993
3987
  // node_modules/@mui/icons-material/Save.mjs
3994
- import { jsx as _jsx24 } from "react/jsx-runtime";
3995
- var Save_default = createSvgIcon(/* @__PURE__ */ _jsx24("path", {
3988
+ import { jsx as _jsx23 } from "react/jsx-runtime";
3989
+ var Save_default = createSvgIcon(/* @__PURE__ */ _jsx23("path", {
3996
3990
  d: "M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"
3997
3991
  }), "Save");
3998
3992
 
3999
3993
  // node_modules/@mui/icons-material/SearchOff.mjs
4000
- import { jsx as _jsx25 } from "react/jsx-runtime";
4001
- var SearchOff_default = createSvgIcon([/* @__PURE__ */ _jsx25("path", {
3994
+ import { jsx as _jsx24 } from "react/jsx-runtime";
3995
+ var SearchOff_default = createSvgIcon([/* @__PURE__ */ _jsx24("path", {
4002
3996
  d: "M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3 6.08 3 3.28 5.64 3.03 9h2.02C5.3 6.75 7.18 5 9.5 5 11.99 5 14 7.01 14 9.5S11.99 14 9.5 14c-.17 0-.33-.03-.5-.05v2.02c.17.02.33.03.5.03 1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19z"
4003
- }, "0"), /* @__PURE__ */ _jsx25("path", {
3997
+ }, "0"), /* @__PURE__ */ _jsx24("path", {
4004
3998
  d: "M6.47 10.82 4 13.29l-2.47-2.47-.71.71L3.29 14 .82 16.47l.71.71L4 14.71l2.47 2.47.71-.71L4.71 14l2.47-2.47z"
4005
3999
  }, "1")], "SearchOff");
4006
4000
 
4007
4001
  // node_modules/@mui/icons-material/Sort.mjs
4008
- import { jsx as _jsx26 } from "react/jsx-runtime";
4009
- var Sort_default = createSvgIcon(/* @__PURE__ */ _jsx26("path", {
4002
+ import { jsx as _jsx25 } from "react/jsx-runtime";
4003
+ var Sort_default = createSvgIcon(/* @__PURE__ */ _jsx25("path", {
4010
4004
  d: "M3 18h6v-2H3zM3 6v2h18V6zm0 7h12v-2H3z"
4011
4005
  }), "Sort");
4012
4006
 
4013
4007
  // node_modules/@mui/icons-material/SyncAlt.mjs
4014
- import { jsx as _jsx27 } from "react/jsx-runtime";
4015
- var SyncAlt_default = createSvgIcon(/* @__PURE__ */ _jsx27("path", {
4008
+ import { jsx as _jsx26 } from "react/jsx-runtime";
4009
+ var SyncAlt_default = createSvgIcon(/* @__PURE__ */ _jsx26("path", {
4016
4010
  d: "m18 12 4-4-4-4v3H3v2h15zM6 12l-4 4 4 4v-3h15v-2H6z"
4017
4011
  }), "SyncAlt");
4018
4012
 
4019
4013
  // node_modules/@mui/icons-material/ViewColumn.mjs
4020
- import { jsx as _jsx28 } from "react/jsx-runtime";
4021
- var ViewColumn_default = createSvgIcon(/* @__PURE__ */ _jsx28("path", {
4014
+ import { jsx as _jsx27 } from "react/jsx-runtime";
4015
+ var ViewColumn_default = createSvgIcon(/* @__PURE__ */ _jsx27("path", {
4022
4016
  d: "M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"
4023
4017
  }), "ViewColumn");
4024
4018
 
4025
4019
  // node_modules/@mui/icons-material/VisibilityOff.mjs
4026
- import { jsx as _jsx29 } from "react/jsx-runtime";
4027
- var VisibilityOff_default = createSvgIcon(/* @__PURE__ */ _jsx29("path", {
4020
+ import { jsx as _jsx28 } from "react/jsx-runtime";
4021
+ var VisibilityOff_default = createSvgIcon(/* @__PURE__ */ _jsx28("path", {
4028
4022
  d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
4029
4023
  }), "VisibilityOff");
4030
4024
 
@@ -4937,7 +4931,7 @@ var useTimeField = (props) => {
4937
4931
  };
4938
4932
 
4939
4933
  // node_modules/@mui/x-date-pickers/TimeField/TimeField.mjs
4940
- import { jsx as _jsx30 } from "react/jsx-runtime";
4934
+ import { jsx as _jsx29 } from "react/jsx-runtime";
4941
4935
  var _excluded = ["slots", "slotProps"];
4942
4936
  var TimeField = /* @__PURE__ */ React3.forwardRef(function TimeField2(inProps, inRef) {
4943
4937
  const themeProps = useThemeProps({
@@ -4954,11 +4948,11 @@ var TimeField = /* @__PURE__ */ React3.forwardRef(function TimeField2(inProps, i
4954
4948
  externalForwardedProps: other
4955
4949
  });
4956
4950
  const fieldResponse = useTimeField(textFieldProps);
4957
- return /* @__PURE__ */ _jsx30(PickerFieldUIContextProvider, {
4951
+ return /* @__PURE__ */ _jsx29(PickerFieldUIContextProvider, {
4958
4952
  slots,
4959
4953
  slotProps,
4960
4954
  inputRef: other.inputRef,
4961
- children: /* @__PURE__ */ _jsx30(PickerFieldUI, {
4955
+ children: /* @__PURE__ */ _jsx29(PickerFieldUI, {
4962
4956
  fieldResponse,
4963
4957
  defaultOpenPickerIcon: ClockIcon
4964
4958
  })
@@ -5255,7 +5249,7 @@ function getTimePickerToolbarUtilityClass(slot) {
5255
5249
  var timePickerToolbarClasses = generateUtilityClasses("MuiTimePickerToolbar", ["root", "separator", "hourMinuteLabel", "hourMinuteLabelLandscape", "hourMinuteLabelReverse", "ampmSelection", "ampmLandscape", "ampmLabel"]);
5256
5250
 
5257
5251
  // node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar.mjs
5258
- import { jsx as _jsx31, jsxs as _jsxs } from "react/jsx-runtime";
5252
+ import { jsx as _jsx30, jsxs as _jsxs } from "react/jsx-runtime";
5259
5253
  var _excluded2 = ["ampm", "ampmInClock", "className", "classes"];
5260
5254
  var useUtilityClasses = (classes, ownerState) => {
5261
5255
  const {
@@ -5376,7 +5370,7 @@ function TimePickerToolbar(inProps) {
5376
5370
  }
5377
5371
  return adapter.format(value, format);
5378
5372
  };
5379
- const separator = /* @__PURE__ */ _jsx31(TimePickerToolbarSeparator, {
5373
+ const separator = /* @__PURE__ */ _jsx30(TimePickerToolbarSeparator, {
5380
5374
  tabIndex: -1,
5381
5375
  value: ":",
5382
5376
  variant: "h3",
@@ -5392,19 +5386,19 @@ function TimePickerToolbar(inProps) {
5392
5386
  children: [/* @__PURE__ */ _jsxs(TimePickerToolbarHourMinuteLabel, {
5393
5387
  className: classes.hourMinuteLabel,
5394
5388
  ownerState,
5395
- children: [arrayIncludes(views, "hours") && /* @__PURE__ */ _jsx31(PickersToolbarButton, {
5389
+ children: [arrayIncludes(views, "hours") && /* @__PURE__ */ _jsx30(PickersToolbarButton, {
5396
5390
  tabIndex: -1,
5397
5391
  variant: "h3",
5398
5392
  onClick: () => setView("hours"),
5399
5393
  selected: view === "hours",
5400
5394
  value: formatSection(ampm ? "hours12h" : "hours24h")
5401
- }), arrayIncludes(views, ["hours", "minutes"]) && separator, arrayIncludes(views, "minutes") && /* @__PURE__ */ _jsx31(PickersToolbarButton, {
5395
+ }), arrayIncludes(views, ["hours", "minutes"]) && separator, arrayIncludes(views, "minutes") && /* @__PURE__ */ _jsx30(PickersToolbarButton, {
5402
5396
  tabIndex: -1,
5403
5397
  variant: "h3",
5404
5398
  onClick: () => setView("minutes"),
5405
5399
  selected: view === "minutes",
5406
5400
  value: formatSection("minutes")
5407
- }), arrayIncludes(views, ["minutes", "seconds"]) && separator, arrayIncludes(views, "seconds") && /* @__PURE__ */ _jsx31(PickersToolbarButton, {
5401
+ }), arrayIncludes(views, ["minutes", "seconds"]) && separator, arrayIncludes(views, "seconds") && /* @__PURE__ */ _jsx30(PickersToolbarButton, {
5408
5402
  variant: "h3",
5409
5403
  onClick: () => setView("seconds"),
5410
5404
  selected: view === "seconds",
@@ -5413,7 +5407,7 @@ function TimePickerToolbar(inProps) {
5413
5407
  }), showAmPmControl && /* @__PURE__ */ _jsxs(TimePickerToolbarAmPmSelection, {
5414
5408
  className: classes.ampmSelection,
5415
5409
  ownerState,
5416
- children: [/* @__PURE__ */ _jsx31(PickersToolbarButton, {
5410
+ children: [/* @__PURE__ */ _jsx30(PickersToolbarButton, {
5417
5411
  disableRipple: true,
5418
5412
  variant: "subtitle2",
5419
5413
  selected: meridiemMode === "am",
@@ -5421,7 +5415,7 @@ function TimePickerToolbar(inProps) {
5421
5415
  value: formatMeridiem(adapter, "am"),
5422
5416
  onClick: readOnly ? void 0 : () => handleMeridiemChange("am"),
5423
5417
  disabled
5424
- }), /* @__PURE__ */ _jsx31(PickersToolbarButton, {
5418
+ }), /* @__PURE__ */ _jsx30(PickersToolbarButton, {
5425
5419
  disableRipple: true,
5426
5420
  variant: "subtitle2",
5427
5421
  selected: meridiemMode === "pm",
@@ -6148,7 +6142,7 @@ MobileTimePicker.propTypes = {
6148
6142
  };
6149
6143
 
6150
6144
  // node_modules/@mui/x-date-pickers/TimePicker/TimePicker.mjs
6151
- import { jsx as _jsx32 } from "react/jsx-runtime";
6145
+ import { jsx as _jsx31 } from "react/jsx-runtime";
6152
6146
  var _excluded3 = ["desktopModeMediaQuery"];
6153
6147
  var TimePicker = /* @__PURE__ */ React7.forwardRef(function TimePicker2(inProps, ref) {
6154
6148
  const props = useThemeProps({
@@ -6162,11 +6156,11 @@ var TimePicker = /* @__PURE__ */ React7.forwardRef(function TimePicker2(inProps,
6162
6156
  defaultMatches: true
6163
6157
  });
6164
6158
  if (isDesktop) {
6165
- return /* @__PURE__ */ _jsx32(DesktopTimePicker, _extends({
6159
+ return /* @__PURE__ */ _jsx31(DesktopTimePicker, _extends({
6166
6160
  ref
6167
6161
  }, other));
6168
6162
  }
6169
- return /* @__PURE__ */ _jsx32(MobileTimePicker, _extends({
6163
+ return /* @__PURE__ */ _jsx31(MobileTimePicker, _extends({
6170
6164
  ref
6171
6165
  }, other));
6172
6166
  });
@@ -10191,10 +10185,24 @@ function fmtDur(s) {
10191
10185
  const h = Math.floor(s / 3600), m = Math.floor(s % 3600 / 60), sc = Math.floor(s % 60);
10192
10186
  return [h, m, sc].map((x) => String(x).padStart(2, "0")).join(":");
10193
10187
  }
10194
- function fmtDateTime(v) {
10195
- if (!v) return "";
10188
+ function cleanVal(v) {
10189
+ if (v == null) return "";
10190
+ const s = String(v).trim();
10191
+ return s.toLowerCase() === "null" || s.toLowerCase() === "undefined" ? "" : s;
10192
+ }
10193
+ function fmtDateParts(v) {
10194
+ if (!cleanVal(v)) return { date: "", time: "" };
10196
10195
  const d = (0, import_dayjs2.default)(String(v).replace(" ", "T"));
10197
- return d.isValid() ? d.format("DD-MM-YYYY HH:mm:ss") : String(v);
10196
+ if (!d.isValid()) return { date: "", time: "" };
10197
+ return { date: d.format("MMM D, YYYY"), time: d.format("h:mm A") };
10198
+ }
10199
+ function DateTimeCell({ value }) {
10200
+ const { date, time } = fmtDateParts(value);
10201
+ if (!date) return null;
10202
+ return /* @__PURE__ */ jsxs3("span", { style: { display: "flex", flexDirection: "column", lineHeight: 1.35, fontVariantNumeric: "tabular-nums" }, children: [
10203
+ /* @__PURE__ */ jsx4("span", { style: { fontSize: 13, color: C2.t1, fontWeight: 700 }, children: date }),
10204
+ /* @__PURE__ */ jsx4("span", { style: { fontSize: 11.5, color: C2.t2, fontWeight: 500 }, children: time })
10205
+ ] });
10198
10206
  }
10199
10207
  function toEpoch(v) {
10200
10208
  if (!v) return 0;
@@ -10247,7 +10255,7 @@ function HeatColumn({ title, rows, variant }) {
10247
10255
  "&:hover": { background: C2.s2 }
10248
10256
  }, children: [
10249
10257
  /* @__PURE__ */ jsx4(Typography_default, { sx: __spreadProps(__spreadValues({}, mono), { fontSize: 10, fontWeight: 700, color: tone.rank, textAlign: "right" }), children: i + 1 }),
10250
- /* @__PURE__ */ jsx4(Tooltip_default, { title: r.name, arrow: true, placement: "top", children: /* @__PURE__ */ jsx4(Typography_default, { noWrap: true, sx: { fontSize: 11.5, fontWeight: 600, color: C2.t1, cursor: "default", minWidth: 0 }, children: r.name }) }),
10258
+ /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 11.5, fontWeight: 600, color: C2.t1, lineHeight: 1.25, wordBreak: "break-word" }, children: r.name }),
10251
10259
  /* @__PURE__ */ jsx4(Box_default, { sx: __spreadProps(__spreadValues({ background: tone.pillBg, color: tone.pillTx, borderRadius: "5px", textAlign: "center", px: 0.9, py: 0.3, minWidth: 62 }, mono), { fontSize: 10.5 }), children: fmtDur(r.secs) })
10252
10260
  ] }, i)),
10253
10261
  rows.length === 0 && /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 11.5, color: C2.t3, textAlign: "center", py: 3 }, children: "No data" })
@@ -10302,24 +10310,25 @@ function BarCell({ value, pct, accent, count: count2, onCountClick }) {
10302
10310
  }
10303
10311
  ),
10304
10312
  /* @__PURE__ */ jsxs3(Typography_default, { sx: __spreadValues({
10305
- fontSize: 11,
10313
+ fontSize: 13,
10314
+ fontWeight: 800,
10306
10315
  fontVariantNumeric: "tabular-nums",
10307
10316
  whiteSpace: "nowrap"
10308
10317
  }, pct > 100 ? { color: C2.red, background: C2.rlt, borderRadius: "4px", px: 0.5 } : { color: C2.t2 }), children: [
10309
10318
  pct.toFixed(1),
10310
10319
  "%"
10311
10320
  ] }),
10312
- /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 10.5, color: C2.t3, fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap" }, children: value })
10321
+ /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 11.5, color: C2.t1, fontWeight: 800, fontVariantNumeric: "tabular-nums", whiteSpace: "nowrap" }, children: cleanVal(value) })
10313
10322
  ] }),
10314
10323
  /* @__PURE__ */ jsx4(Box_default, { sx: { width: "100%", height: 8, background: C2.s3, borderRadius: "4px", overflow: "hidden" }, children: width > 0 && /* @__PURE__ */ jsx4(Box_default, { sx: { height: "100%", width: `${width}%`, background: accent, borderRadius: "4px" } }) })
10315
10324
  ] });
10316
10325
  }
10317
- var InOut = ({ i, o }) => /* @__PURE__ */ jsxs3(Typography_default, { sx: { fontSize: 11.5, color: C2.t2, whiteSpace: "nowrap" }, children: [
10318
- /* @__PURE__ */ jsx4("span", { style: { color: C2.t3 }, children: "In:" }),
10326
+ var InOut = ({ i, o }) => /* @__PURE__ */ jsxs3(Typography_default, { sx: { fontSize: 13, color: C2.t1, fontWeight: 600, whiteSpace: "nowrap" }, children: [
10327
+ /* @__PURE__ */ jsx4("span", { style: { color: C2.t1, fontWeight: 400 }, children: "In:" }),
10319
10328
  " ",
10320
10329
  i,
10321
10330
  " ",
10322
- /* @__PURE__ */ jsx4("span", { style: { color: C2.t3 }, children: "Out:" }),
10331
+ /* @__PURE__ */ jsx4("span", { style: { color: C2.t1, fontWeight: 400 }, children: "Out:" }),
10323
10332
  " ",
10324
10333
  o
10325
10334
  ] });
@@ -10340,9 +10349,12 @@ function AgentPerformanceReportContent() {
10340
10349
  const [exportMode, setExportMode] = useState5("summary");
10341
10350
  const [exporting, setExporting] = useState5(false);
10342
10351
  const loading = loadingTop || loadingTable;
10352
+ const toast = useToast();
10343
10353
  const onErr = (err) => {
10344
- var _a2, _b2;
10345
- return setError(((_b2 = (_a2 = err == null ? void 0 : err.response) == null ? void 0 : _a2.data) == null ? void 0 : _b2.detail) || (err == null ? void 0 : err.message) || "Failed to load agents report");
10354
+ var _a2, _b2, _c2, _d2;
10355
+ const msg = ((_b2 = (_a2 = err == null ? void 0 : err.response) == null ? void 0 : _a2.data) == null ? void 0 : _b2.message) || ((_d2 = (_c2 = err == null ? void 0 : err.response) == null ? void 0 : _c2.data) == null ? void 0 : _d2.detail) || (err == null ? void 0 : err.message) || "Failed to load agents report";
10356
+ setError(msg);
10357
+ toast.showToast(msg, "error");
10346
10358
  };
10347
10359
  const fetchDashboard = useCallback2((showSpinner = true) => {
10348
10360
  if (!startDate || !endDate) return;
@@ -10407,7 +10419,7 @@ function AgentPerformanceReportContent() {
10407
10419
  size: 220,
10408
10420
  accessorFn: (r) => r.agentName,
10409
10421
  Cell: ({ row }) => {
10410
- const name = row.original.agentName || "";
10422
+ const name = cleanVal(row.original.agentName);
10411
10423
  return /* @__PURE__ */ jsxs3(Box_default, { sx: { display: "flex", alignItems: "center", gap: 1, minWidth: 0 }, children: [
10412
10424
  /* @__PURE__ */ jsx4(Box_default, { sx: {
10413
10425
  width: 30,
@@ -10423,8 +10435,8 @@ function AgentPerformanceReportContent() {
10423
10435
  letterSpacing: 0.3
10424
10436
  }, children: getInitials(name) }),
10425
10437
  /* @__PURE__ */ jsxs3(Box_default, { sx: { minWidth: 0 }, children: [
10426
- /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 11.5, color: C2.t1, lineHeight: 1.3 }, children: name }),
10427
- /* @__PURE__ */ jsx4(Typography_default, { noWrap: true, sx: { fontSize: 10.5, color: C2.t3, fontVariantNumeric: "tabular-nums", lineHeight: 1.3 }, children: row.original.agentId })
10438
+ /* @__PURE__ */ jsx4(Typography_default, { sx: { fontSize: 13, color: C2.t1, fontWeight: 600, lineHeight: 1.3 }, children: name }),
10439
+ /* @__PURE__ */ jsx4(Typography_default, { noWrap: true, sx: { fontSize: 11.5, color: C2.t3, fontWeight: 500, fontVariantNumeric: "tabular-nums", lineHeight: 1.3 }, children: cleanVal(row.original.agentId) })
10428
10440
  ] })
10429
10441
  ] });
10430
10442
  }
@@ -10434,14 +10446,14 @@ function AgentPerformanceReportContent() {
10434
10446
  header: "First Login",
10435
10447
  size: 160,
10436
10448
  accessorFn: (r) => toEpoch(r.firstLoginTime),
10437
- Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontSize: 11.5, color: C2.t2, fontVariantNumeric: "tabular-nums" }, children: fmtDateTime(row.original.firstLoginTime) })
10449
+ Cell: ({ row }) => /* @__PURE__ */ jsx4(DateTimeCell, { value: row.original.firstLoginTime })
10438
10450
  },
10439
10451
  {
10440
10452
  id: "lastLogout",
10441
10453
  header: "Last Logout",
10442
10454
  size: 160,
10443
10455
  accessorFn: (r) => toEpoch(r.logoutTime),
10444
- Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontSize: 11.5, color: C2.t2, fontVariantNumeric: "tabular-nums" }, children: fmtDateTime(row.original.logoutTime) })
10456
+ Cell: ({ row }) => /* @__PURE__ */ jsx4(DateTimeCell, { value: row.original.logoutTime })
10445
10457
  },
10446
10458
  {
10447
10459
  id: "total",
@@ -10469,14 +10481,14 @@ function AgentPerformanceReportContent() {
10469
10481
  header: "AHT",
10470
10482
  size: 100,
10471
10483
  accessorFn: (r) => parseDur(r.avgCallHandleTime),
10472
- Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontWeight: 400, fontSize: 11.5, color: C2.purple, fontVariantNumeric: "tabular-nums" }, children: row.original.avgCallHandleTime })
10484
+ Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontWeight: 600, fontSize: 13, color: C2.purple, fontVariantNumeric: "tabular-nums" }, children: cleanVal(row.original.avgCallHandleTime) })
10473
10485
  },
10474
10486
  {
10475
10487
  id: "loggedInDuration",
10476
10488
  header: "Logged In Duration",
10477
10489
  size: 130,
10478
10490
  accessorFn: (r) => parseDur(r.loggedInDuration),
10479
- Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontWeight: 400, fontSize: 11.5, color: C2.teal, fontVariantNumeric: "tabular-nums" }, children: row.original.loggedInDuration })
10491
+ Cell: ({ row }) => /* @__PURE__ */ jsx4("span", { style: { fontWeight: 600, fontSize: 13, color: C2.teal, fontVariantNumeric: "tabular-nums" }, children: cleanVal(row.original.loggedInDuration) })
10480
10492
  },
10481
10493
  {
10482
10494
  id: "production",
@@ -10733,4 +10745,4 @@ export {
10733
10745
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
10734
10746
  *)
10735
10747
  */
10736
- //# sourceMappingURL=agentPerformanceReport-2UZWOGER.mjs.map
10748
+ //# sourceMappingURL=agentPerformanceReport-6CT6PKDS.mjs.map