PageSourceSearch

https://my.blazeo.com/static/js/5562.3e273a66.chunk.js

js blazeo.com collected 2026-09-24 08:56:25 UTC 27,235 bytes, 2 lines download raw bytes

1"use strict";(globalThis.webpackChunkapp||=[]).push([[4724,5562],{81450(e,t,a){a.d(t,{O:()=>i});a(65043);var l=a(70579);var s=a(27343),n=a(77599);const i=e=>{let{id:t,children:a,title:i="head",clickMoreOptions:r,isCard:o=!0,isFilter:c=!1,showSubHeading:d,subHeading:u,showTabs:p=!1,variant:h,buttons:m=[],selected:y,multiple:v=!1,handleChangeButton:x}=e;return(0,l.jsxs)("div",{className:`\n        ${p?"line-chart-card-container chat-stats-chart":"line-chart-card-container"} ${"list"===h?"listing-wrapper":""}`,children:[(0,l.jsx)("div",{className:"card-header px-2 py-1",style:{backgroundColor:"var(--primary)",color:"white"},children:(0,l.jsxs)("div",{className:"d-flex justify-content-between align-items-center",children:[(0,l.jsxs)("div",{className:"d-flex justify-content-between w-100 align-items-center",style:{height:"26px"},children:[(0,l.jsxs)("div",{children:[(0,l.jsx)("span",{className:"font-weight-bold",children:i}),d&&(0,l.jsx)("span",{className:"sub-heading",children:u})]}),(0,l.jsx)("div",{className:"d-flex align-items-center",children:m.length?m.map((e,t)=>(0,l.jsx)(n.A.Check,{custom:!0,type:v?"checkbox":"radio",name:i,id:e.key+t,label:e.label,onChange:v?t=>{return a=e.key,void(y.includes(a)?x(y.filter(e=>e!==a)):x([...y,a]));var a}:t=>x(e.key),checked:v?y.includes(e.key):e.key===y,style:{minHeight:"1rem"},className:"text-white mr-1"},t)):null})]}),(0,l.jsx)(s.A,{onClick:()=>{r()},className:"ml-1 cursor-pointer",style:{marginRight:"-6px"}})]})}),(0,l.jsx)("div",{className:o?"graph-card-body":"list-card-body",children:a})]})}},92786(e,t,a){var l=a(19227),s=a(14668),n=a(61072),i=a(78602),r=a(6344),o=a(36857),c=a(61171),d=a(70014),u=a(70579);const p=e=>{let{data:t,title:a="",note:p="",handleClose:h,closeTitle:m="Clear All",setSelectedFilters:y,storageKey:v="analytics"}=e;const x=(0,c.wA)(),g=e=>{if(Object.keys(t).length)return(0,u.jsx)(u.Fragment,{children:t[e].map((a,n)=>(0,u.jsx)(l.A,{className:"chips-background",deleteIcon:(0,u.jsx)(s.A,{}),label:"userTypes"===e?(0,o.XN)(a.name,"heading"):a.key,color:"secondary",onDelete:a=>{a.preventDefault(),((e,a)=>{let l=JSON.parse(JSON.stringify(t)),s=l[e];s.length&&s.splice(a,1),l[e]=s,y(l),x((0,d.MV)({key:v,filters:l}))})(e,n)}},n))})};return(0,u.jsxs)("div",{className:"cards-container filter-tags",children:[(0,u.jsxs)("div",{className:"d-flex justify-content-between",children:[(0,u.jsx)("div",{className:"heading mb-16",children:(0,u.jsx)("span",{children:a})}),(0,u.jsx)("div",{className:"filter-clear text-danger",children:(0,u.jsx)("span",{onClick:()=>{let e={businessTypes:[],devices:[],features:[],hours:[],items:[],userTypes:[]};y(e),x((0,d.MV)({key:v,filters:e})),x((0,r.$H)(!0))},children:m})})]}),(0,u.jsx)("div",{className:"filters-chips",children:(0,u.jsx)(n.A,{children:(0,u.jsx)("div",{className:"tags-container",children:(0,u.jsxs)(i.A,{sm:12,children:[g("features"),g("devices"),g("userTypes"),g("items"),g("businessTypes"),g("hours")]})})})}),(0,u.jsx)("div",{className:"tags-note",children:p})]})};a.d(t,["A",0,p])},24724(e,t,a){a.d(t,{A:()=>h});var l=a(18697),s=(a(65043),a(10446)),n=a(88665),i=a(81551),r=a(26943);var o=a(19227),c=a(53167),d=a(70579);const u=e=>{let{options:t,handleChange:a,handleTextChange:l,loading:u=!1,selected:p=[],variant:h="outlined",title:m="Select Company Key",styles:y={},editable:v=!0,isMultiSelectEnable:x,handleBlur:g=null,name:f,error:j,freeSolo:k=!1,placeholder:b="Select one or more...",multiline:C=!1,maxRows:T,minRows:A,inputClass:N="",errorClass:S="",limitTags:w=5,maxLength:F=100,inputFormat:B="array"}=e;const L=(0,i.A)(e=>({root:{fontFamily:"Lato",background:"white",pointerEvents:v?"auto":"none"},inputRoot:{},tag:{opacity:"1 !important",color:`var(--darkgray-${v?"1":"2"}) !important`}}))(),R=e=>{if("comma"===B){return e.map(e=>"object"===typeof e?e.key||e.text||e.value:e).filter((e,t,a)=>a.indexOf(e)===t).join(",")}return e},O=(E=p)?"comma"===B&&"string"===typeof E?E.split(",").filter(e=>""!==e.trim()):Array.isArray(E)?E:x?[E]:E:[];var E;return(0,d.jsx)("div",{className:"custom-auto-comp",style:y,children:(0,d.jsx)(n.Ay,{freeSolo:k,open:!k&&void 0,onBlur:k?e=>{const t=e.target.value.trim();if(!t||!g)return;const a=[...O,t];g({target:{name:f,value:"comma"===B?a.join(","):a}})}:g,disabled:!v,readOnly:!v,classes:L,multiple:x,limitTags:v?w:void 0,id:f||"tags-outlined",options:t,name:f,loading:u,getOptionLabel:e=>e.key||"",renderTags:(e,t)=>e.map((e,a)=>{let l={...t({index:a})};return(0,d.jsx)(o.A,{label:(null===e||void 0===e?void 0:e.key)||e,...l,onDelete:v?l.onDelete:null,className:`${l.className} custom-chip`})}),getLimitTagsText:e=>(0,d.jsx)("span",{className:"cursor-pointer",children:`+${e}`}),onChange:(e,t)=>
1{const l=R(t);a(l,{...e,target:{...e.target,name:f,value:l}})},onInputChange:!c.Fr||"emails"!==f&&"developerEmails"!==f?s((e,t)=>{t&&l(t)},1500):(e,t)=>{var l,s;if("insertText"===(null===e||void 0===e||null===(l=e.nativeEvent)||void 0===l?void 0:l.inputType)&&","===(null===e||void 0===e||null===(s=e.nativeEvent)||void 0===s?void 0:s.data)){var n;null===e||void 0===e||null===(n=e.nativeEvent)||void 0===n||n.preventDefault();let l=t.substring(0,t.length-1);if(l.trim()){const t=[...O,l];a(R(t),e)}e.target.value=""}},value:O,filterSelectedOptions:!0,clearOnBlur:!k,renderInput:e=>(0,d.jsx)(r.A,{...e,variant:h,error:!!j,FormHelperTextProps:{style:{marginTop:"0px"}},helperText:(0,d.jsx)("span",{className:S,style:{color:"var(--danger)",position:"absolute",bottom:"-20px"},children:j||""}),label:m,name:f,InputLabelProps:{classes:{root:L.root}},inputProps:{...e.inputProps,maxLength:F,style:{borderBottom:"1px solid yellow !important"},className:`${e.inputProps.className} ${N}`,name:f},placeholder:v?b:"",multiline:C,maxRows:T,minRows:A})})})};var p=a(78291);const h=e=>{let{title:t="",setFunction:a,onChangefilters:s=e=>{},variant:n="outlined",handleTextChange:i,loading:r,selected:o,liStyles:c="",options:h=[{value:0,text:"None",name:"None"},{value:3,text:"Vendor Max",name:"vendormax"},{value:2,text:"Frozen Mountain",name:"frozenmountain"},{value:13,text:"Reach Local",name:"reachlocal"},{value:2054,text:"Abdul Samad",name:"Abdul Samad"}],toolTipQuickStats:m="Apply to All Quick Stats",toolTipGraphs:y="Apply to All Charts",isFilterWrapper:v=!0,styles:x={},isMultiSelectEnable:g=!0,editable:f,error:j,handleBlur:k,name:b,freeSolo:C,placeholder:T,limitTags:A=5,multiline:N=!1,maxRows:S,minRows:w,inputClass:F,errorClass:B,maxLength:L,inputFormat:R="array"}=e;const O=(e,t)=>{a(e,t),s(e)};return v?(0,d.jsx)(l.A,{title:t,onFilterClear:()=>{a([]),s([])},tooltipLabel:(0,d.jsx)(p.A,{toolTipQuickStats:m,toolTipGraphs:y}),children:(0,d.jsx)("div",{className:"items-container",children:(0,d.jsx)(u,{handleChange:O,handleTextChange:i,options:h,loading:r,selected:o||[],variant:n,styles:x,isMultiSelectEnable:g,handleBlur:k,name:b,error:j})})}):(0,d.jsx)(u,{title:t,handleChange:O,handleTextChange:i,options:h,loading:r,selected:o,variant:n,styles:x,editable:f,isMultiSelectEnable:g,handleBlur:k,name:b,error:j,freeSolo:C,placeholder:T,multiline:N,maxRows:S,minRows:w,inputClass:F,errorClass:B,limitTags:A,maxLength:L,inputFormat:R})}},78291(e,t,a){a(65043);var l=a(49092),s=a(70579);const n=e=>{let{toolTipQuickStats:t,toolTipGraphs:a}=e;const{t:n}=(0,l.B)(),i=e=>(console.log(e),n(`company.analytics.${e}`));return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{style:{textAlign:"left"},children:[(0,s.jsx)("div",{style:{fontWeight:"700",whiteSpace:"break-spaces",width:"280px",overflow:"hidden",textOverflow:"ellipsis"},className:"mb-3",title:n("company.analytics.filtersTooltip1"),children:n("company.analytics.filtersTooltip1")}),(0,s.jsxs)("div",{style:{fontWeight:"700"},children:[n("company.analytics.quickStats")," :"," "]}),(0,s.jsx)("ul",{className:"mb-2",children:t.split(",").map((e,t)=>(0,s.jsx)("li",{children:i(e)},t))}),(0,s.jsxs)("div",{style:{fontWeight:"700"},children:[" ",n("company.analytics.charts")," :"," "]}),(0,s.jsx)("ul",{className:"mb-2",children:a.split(",").map((e,t)=>(0,s.jsx)("li",{children:i(e)},t))})]})})};a.d(t,["A",0,n])},18697(e,t,a){a(90849);var l=a(43946),s=a(89242),n=a(10615),i=a(49092),r=a(70579);const o=e=>{let{title:t="Title",clearTitle:a="Clear",onFilterClear:o,onSelectAll:c,children:d,tooltipLabel:u="",tooltipPosition:p="right",footerBorder:h=!0}=e;const{t:m}=(0,i.B)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"filter-wrapper",children:[(0,r.jsxs)("div",{className:"filter-header",children:[(0,r.jsxs)("div",{className:"filter-heading d-flex align-items-center",children:[t,u?(0,r.jsx)(s.A,{placement:"right",overlay:(0,r.jsx)(n.A,{className:"filter-panel-tooltip",children:u}),children:(0,r.jsx)(l.A,{size:18,className:"ml-1"})}):null]}),(0,r.jsxs)("div",{className:"d-flex",style:{gap:"10px"},children:["function"===typeof c?(0,r.jsx)("div",{className:"filter-clear text-primary-5",onClick:c,children:(0,r.jsx)("span",{children:m("company.analytics.selectAll")})}):null,(0,r.jsx)("div",{className:"filter-clear text-danger",onClick:()=>{o("clear")},children:(0,r.jsx)("span",{children:m("company.analytics.clearAll")})})]})]}),(0,r.jsx)("div",{className:"filter-body",children:d})]}),h&&(0,r.jsx)("hr",{className:"m-0"})]})};a.d(t,["A",0,o])},23565(e,t,a){a.d(t,{A:()=>O});var l=a(65043),s=a(13330),n=a(18697),i=a(77599),r=a(14282),o=(a(90849),a(78291)),c=a(70579);const d=e=>{let{allowedOptions:t={}
1,title:a="",onChangefilters:l,dataArray:d,setFunction:u,categoryButtons:p=!1,isHours:h=!1,toolTipQuickStats:m="totalChats,totalVisits,totalBillableLeads,blankChats,activeChats,ctr,lcr",toolTipGraphs:y="featuresUsage,chatStatsBy,chatReferrals,agentCTR,chatsLeads"}=e;const v=e=>{let t=d.filter(t=>t.selectorType===e),a=d.filter(t=>t.selectorType===e&&t.value);return t.length===a.length};return(0,c.jsxs)(n.A,{title:a,onFilterClear:function(){let e=d.map(e=>({...e,value:!1}));u(e),l([])},onSelectAll:()=>{let e=d.map(e=>{let t={...e};return t.value=!0,t});u(e),l(e.filter(e=>e.value))},tooltipLabel:(0,c.jsx)(o.A,{toolTipQuickStats:m,toolTipGraphs:y}),children:[(0,c.jsx)("div",{className:"w-100",children:(0,c.jsx)("div",{children:p&&s._n.map((e,t)=>d.some(t=>t.selectorType===e.key)?(0,c.jsx)(r.A,{className:"btn-md btn-flex custom-btn custom-radius",type:"button",variant:v(e.key)?"primary":"secondary",onClick:t=>{t.preventDefault(),(e=>{let t=!v(e),a=d.map(a=>a.selectorType===e?{...a,value:t}:{...a});u(a),l(a.filter(e=>e.value))})(e.key)},children:(0,c.jsx)("span",{children:e.label})},t):null)})}),(0,c.jsx)("div",{className:h?"features-hours":"features-container",children:d.length?d.map((e,t)=>(0,c.jsx)(i.A.Check,{custom:!0,type:"checkbox",name:"checkbox",id:e.key+t,label:e.key,onChange:e=>((e,t)=>{let a=d.map((a,l)=>{let s={...a};return l===t&&(s.value=e.target.checked),s});u(a),l(a.filter(e=>e.value))})(e,t),checked:e.value,style:{paddingTop:"10px",fontSize:"0.8125rem",fontWeight:"600"}},t)):(0,c.jsx)("p",{children:"No features are available. "})})]})},u=e=>{let{title:t="",onChangefilters:a,setFunction:l,dataArray:s,toolTipQuickStats:i,toolTipGraphs:d}=e;return(0,c.jsx)(n.A,{title:t,onFilterClear:()=>{let e=s.map(e=>({...e,value:!1}));l(e),a([])},onSelectAll:()=>{let e=s.map(e=>{let t={...e};return t.value=!0,t});l(e),a(e.filter(e=>e.value))},tooltipLabel:(0,c.jsx)(o.A,{toolTipQuickStats:i,toolTipGraphs:d}),children:(0,c.jsx)("div",{className:"w-100",children:(0,c.jsx)("div",{children:s.map((e,t)=>(0,c.jsxs)(r.A,{className:"btn-md btn-flex custom-btn custom-radius",type:"button",variant:e.value?"primary":"secondary",onClick:n=>{n.preventDefault(),((e,t)=>{let n=s.map((a,l)=>{let s={...a};return l===t&&(s.value=e),s});l(n),a(n.filter(e=>e.value))})(!e.value,t)},children:[e.icon,(0,c.jsx)("span",{children:e.key})]},t))})})})};var p=a(36857),h=a(49092);const m=e=>{let{allowedOptions:t={},title:a="",onChangefilters:l,setFunction:s,dataArray:i,toolTipQuickStats:d,toolTipGraphs:u}=e;const{t:m}=(0,h.B)();return(0,c.jsx)(n.A,{title:a,onFilterClear:function(){let e=i.map(e=>({...e,value:!1}));s(e),l([])},onSelectAll:()=>{let e=i.map(e=>{let t={...e};return t.value=!0,t});s(e),l(e.filter(e=>e.value))},tooltipLabel:(0,c.jsx)(o.A,{toolTipQuickStats:d,toolTipGraphs:u}),children:(0,c.jsx)("div",{className:"w-100",children:i.length?i.map((e,t)=>(0,c.jsxs)(r.A,{className:"btn-md btn-flex custom-btn custom-radius",type:"button",variant:e.value?"primary":"secondary",onClick:a=>{a.preventDefault(),((e,t)=>{let a=[...i];a[t].value=!e,s(a),l(a.filter(e=>e.value))})(e.value,t)},children:[e.icon||null,(0,c.jsx)("span",{children:(0,p.XN)(e.name,"heading")})]},t)):(0,c.jsx)("p",{children:(0,c.jsx)("p",{children:m("company.analytics.noUsersAvailable")})})})})};var y=a(27343);const v=e=>{let{title:t="Title",clearTitle:a="Clear",onFilterClearAll:l,handleClosePanel:s}=e;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"filters-header",children:[(0,c.jsx)("div",{className:"filter-heading",children:t}),(0,c.jsx)("div",{className:"filter-clear",children:(0,c.jsx)("span",{onClick:s,className:"ml-8",children:(0,c.jsx)(y.A,{size:30})})})]}),(0,c.jsx)("hr",{className:"m-0"})]})};var x=a(88665),g=a(81551),f=a(26943);const j=(0,g.A)(e=>({root:{background:"white"},tag:{color:"#454F5B !important"}})),k=e=>{let{title:t="",setFunction:a,onChangefilters:l,loading:s,selected:i,options:r=[{value:3,text:"Vendor Max",name:"vendormax"},{value:2,text:"Frozen Mountain",name:"frozenmountain"},{value:13,text:"Reach Local",name:"reachlocal"},{value:2054,text:"Abdul Samad",name:"Abdul Samad"}],isDropdown:d=!0,toolTipQuickStats:u,toolTipGraphs:p}=e;const h=j();return(0,c.jsx)(n.A,{title:t,onFilterClear:()=>{console.log("clear"),a([]),l([])},tooltipLabel:(0,c.jsx)(o.A,{toolTipQuickStats:u,toolTipGraphs:p}),children:(0,c.jsx)("div",{className:"items-container",children:(0,c.jsx)(x.Ay,{multiple:!0,classes:h,limitTags:1,options:r,getOptionLabel:e=>e.key,getLimitTagsText:e=>(0,c.jsx)("span",{className:"cursor-pointer",children:`+${e}`}),onChange:(e,t)=>
1((e,t)=>{a(t),l(t)})(0,t),value:i,renderInput:e=>(0,c.jsx)(f.A,{...e,variant:"outlined",label:" Select Business Type",size:"small"})})})})};var b=a(57727),C=a(89242),T=a(4588),A=a(43946);const N=e=>{let{title:t="",onChangefilters:a,data:l,setFunction:r,onFilterClear:o,allowedCheckBoxes:d,voiceComp:u}=e;const{t:m}=(0,h.B)(),y=(e,t)=>{let a={...l};a[t]=e.target.checked,r(a)};return(0,c.jsx)(n.A,{title:t,onFilterClear:o,onSelectAll:()=>{r({...(0,s.tp)(!0,l)})},footerBorder:!1,children:(0,c.jsxs)("div",{className:"features-hours",children:[(0,c.jsx)("div",{className:" two-column-checkboxes",children:Object.keys(l).map((e,t)=>s.Hp.includes(b.Enums.graphType[e])?null:(0,c.jsx)(i.A.Check,{custom:!0,type:"checkbox",name:"checkbox",id:e+t,label:m(`company.analytics.${(0,p.PT)((0,p.gi)(e))}`),onChange:t=>y(t,e),checked:l[e],style:{paddingTop:"10px",fontSize:"0.8125rem",fontWeight:"600"}},t))}),u?"":(0,c.jsxs)("div",{className:"non-filter-graph-filter-panel-heading mt-3",children:[m("company.analytics.nonFilteredGraphs"),(0,c.jsx)("span",{className:"ml-1",children:(0,c.jsx)(C.A,{placement:"top",overlay:(0,T.A)(m("company.analytics.tooltip1")),children:(0,c.jsx)(A.A,{size:18,className:""})})})]}),(0,c.jsx)("div",{className:"mt-2 two-column-checkboxes",children:Object.keys(l).map((e,t)=>s.Hp.includes(b.Enums.graphType[e])?(0,c.jsx)(i.A.Check,{custom:!0,type:"checkbox",name:"checkbox",id:e+t,label:m(`company.analytics.${(0,p.PT)((0,p.gi)(e))}`),onChange:t=>y(t,e),checked:l[e],style:{paddingTop:"10px",fontSize:"0.8125rem",fontWeight:"600"}},t):null)})]})})};var S=a(53817),w=a(91036),F=a(24724),B=a(6344),L=a(61171);const R=e=>[...e].map(e=>({key:`${e.name}`,value:e.id,id:e.id})),O=e=>{let{openColapse:t,onFilterChange:a,closePanel:n,selectedData:i,hiddenCards:o,setHiddenCards:y,roles:x={},cardsSection:g,isAdmin:f,voiceComp:j}=e;const[b,C]=(0,l.useState)(s.O5),[T,A]=(0,l.useState)({}),[O,E]=(0,l.useState)(s.I$),[z,$]=(0,l.useState)(s.uk),[D,G]=(0,l.useState)(s.zO),[V,Q]=(0,l.useState)([]),[H,P]=(0,l.useState)([]),[I,M]=(0,l.useState)(s.J2),[W,U]=(0,l.useState)(o),K=(0,L.d4)(B.tC),J=(0,L.d4)(B.PF),{t:q}=(0,h.B)(),_=(0,L.wA)(),X=e=>{switch(e){case"features":return s.O5.filter(e=>f?e:T[e.name]);case"userTypes":return s.zO.filter(e=>f?e:T[e.key||e.name]);default:return[]}},Y={businessTypes:Q,devices:$,features:C,hours:E,items:P,userTypes:G};let Z={businessTypes:V,devices:s.uk,features:X("features"),hours:s.I$,items:H,userTypes:X("userTypes")};const[ee,te]=(0,l.useState)([]),[ae,le]=(0,l.useState)([]),[se,ne]=(0,l.useState)(!1),ie=e=>{_((0,B.g9)(e)),A(e||{}),C(s.O5.filter(t=>e[t.name])),G(s.zO.filter(t=>e[t.key||t.name]))},re=(e,t)=>{let a={businessTypes:V.filter(e=>e.value),devices:z.filter(e=>e.value),features:b.filter(e=>e.value),hours:O.filter(e=>e.value),items:H.filter(e=>e.value),userTypes:D.filter(e=>e.value)};a[t]=e,M(a)},oe=e=>!(!H.length||!H.find(t=>t.key===e.key));(0,l.useEffect)(()=>{if((0,p.Ri)("analyticsBusinessOptions")){let e=R(JSON.parse((0,p.Ri)("analyticsBusinessOptions")));le(e)}else ce();f||(Object.keys(J).length?ie(J):(()=>{try{(0,B.gA)().then(e=>{if(e&&e.data){const{data:t}=e.data;ie(t)}})}catch(e){w.oR.error(p.wC.error(e||e.message))}})())},[]);const ce=()=>{try{(0,B.sC)().then(e=>{if(e&&e.data){let t=R(e.data.data);le(t),(0,p.TV)("analyticsBusinessOptions",JSON.stringify(e.data.data),1)}})}catch(e){w.oR.error(p.wC.error(e||e.message))}},de=(e,t)=>{C(X("features")),E(s.I$),$(s.uk),G(X("userTypes")),U((0,s.tp)(!1,o)),Q([]),P([]),M(s.J2)};(0,l.useEffect)(()=>{K&&(de(),_((0,B.$H)(!1)))},[K]),(0,l.useEffect)(()=>{ue()},[t]),(0,l.useEffect)(()=>{ue(),M(i)},[i,o]);const ue=()=>
1{Object.keys(i).forEach((e,t)=>{let a=i[e].map(e=>e.key),l=Z[e].map(e=>a.includes(e.key)?{...e,value:!0}:{...e});s.Vq.includes(e)?Y[e]([...l]):Y[e](i[e])}),pe(i.items),U(o)},pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(i&&i.items&&i.items.length&&(e=[...e,...i.items]),e&&e.length){let t=e.filter((e,t,a)=>t===a.findIndex(t=>t.id===e.id&&t.value===e.value&&t.key===e.key));te(t)}};return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(v,{title:q("company.analytics.filters"),onFilterClearAll:de,handleClosePanel:n,clearTitle:q("company.analytics.clearAll")}),x.allowFeatures&&(0,c.jsx)(d,{allowedOptions:T,title:q("company.analytics.features"),toolTipQuickStats:"totalChats,totalBillableLeads,blankChats,activeChats,ctr,lcr",toolTipGraphs:"featuresUsage,chatStatsBy,chatReferrals,agentCTR,chatsLeads",dataArray:b,setFunction:C,categoryButtons:!0,onChangefilters:e=>re(e,"features")}),x.allowDevices&&(0,c.jsx)(u,{title:q("company.analytics.devices"),toolTipQuickStats:"totalChats,totalLeads,totalVisits,totalBillableLeads,blankChats,activeChats,ctr,l
1cr",toolTipGraphs:"featuresUsage,chatStatsBy,chatsLeads",dataArray:z,setFunction:$,onChangefilters:e=>re(e,"devices")}),x.allowUser&&(0,c.jsx)(m,{allowedOptions:T,title:q("company.analytics.user"),toolTipQuickStats:"totalChats,totalLeads,totalBillableLeads,blankChats,activeChats,ctr,lcr",toolTipGraphs:"featuresUsage,chatStatsBy,chatsLeads",dataArray:D,setFunction:G,onChangefilters:e=>re(e,"userTypes")}),x.allowCompanyKey&&(0,c.jsx)(F.A,{title:q("company.analytics.companyKey"),toolTipQuickStats:"applyToAll",toolTipGraphs:j?"outboundCalls,callQualityTrends,peakVolumeTimes,totalCallsGenerated,retainersOverview":"featuresUsage,chatStatsBy,chatsLeads,topBottomLeadAccounts",onChangefilters:e=>re(e,"items"),setFunction:P,handleTextChange:e=>{ne(!0);try{let t={start:0,limit:10,filter:JSON.stringify([{propertyName:"companyKey",propertyValue1:`${e}%`,propertyValue2:"",propertyValue3:[],filterDataType:2,comparison:2}]),dir:"ASC",sort:"companyKey"};(0,S.f$)(t).then(e=>{if(e&&e.data){let t=(e=>[...e].map(e=>({key:`${e.companyKey}`,value:e.companyKey,id:e.id})))(e.data.data),a=[];t.forEach(e=>{oe(e)||a.push(e)}),te(a),ne(!1)}})}catch(t){ne(!1),w.oR.error(p.wC.error(t||t.message))}},options:ee,loading:se,selected:H}),x.allowBusinessType&&(0,c.jsx)(k,{title:q("company.analytics.typeOfBusiness"),toolTipQuickStats:"applyToAll",onChangefilters:e=>re(e,"businessTypes"),toolTipGraphs:"featuresUsage,chatStatsBy,chatsLeads,topBottomLeadAccounts",dataArray:V,setFunction:Q,options:ae,loading:se,selected:V}),(0,c.jsx)(N,{onFilterClear:()=>U((0,s.tp)(!1,o)),title:q("company.analytics.ChartsShowHide"),data:W,setFunction:U,voiceComp:j}),t&&(0,c.jsxs)("div",{className:"floating-btn-apply-filter d-flex justify-content-between",children:[(0,c.jsx)(r.A,{style:{padding:"0 34px"},variant:"secondary",onClick:de,className:"col",children:"Clear All"}),(0,c.jsx)(r.A,{style:{padding:"0 34px"},variant:"primary",title:"Filters",onClick:()=>{console.log("apply"),a(I,W)},className:"col",children:q("company.analytics.applyFilters")})]}),(0,c.jsx)("br",{}),(0,c.jsx)("br",{})]})}},23177(e,t,a){var l=a(57727);a.d(t,["Fo",0,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach(a=>{e[a]&&(t[a]=e[a])}),t},"Y4",0,(e,t,a,s)=>{if(e.includes(5)&&e.includes(2)&&e.includes(1)&&a&&t){let e={current:0,previous:0,widgetId:5,widgetName:"ClickThroughRate",arrowDirection:"",hasInfo:!0,info:`(${t.current} Chats \xf7 ${a.current} Visits) x 100`};var n=s!==l.$M.SixMonths&&isNaN(t.previous/a.previous);return e.current=a.current?t.current/a.current*100:0,e.previous=n&&a.previous>0?100:a.previous?t.previous/a.previous*100:0,e.arrowDirection=t.current>t.previous?"up":"down",e}return null},"n7",0,{Web:["Bar","Dom","Window","Static","Standard","Tab","ExitPopup","PreChat","Unknown","WebApi"],Sms:["SmsStatic","SmsWeb","SmsContainer"],Unknown:["Unknown"]},"ny",0,(e,t,a)=>{if(e.includes(6)&&e.includes(2)&&e.includes(3)&&t&&a){let e={current:0,previous:0,widgetId:6,widgetName:"LeadConversionRate",arrowDirection:""};var l=isNaN(a.previous/t.previous);return e.current=t.current?a.current/t.current*100:0,e.previous=l&&a.previous>0?100:t.previous?a.previous/t.previous*100:0,e.arrowDirection=a.current>a.previous?"up":"down",e}return null},"pG",0,e=>{let t={};return e&&Object.keys(e).filter(t=>e[t]).forEach(e=>{t[e]=!0}),t}])},59402(e,t,a){var l=a(32223),s=a(49092),n=a(70579);a.d(t,["q",0,e=>{let{loading:t=!1,dataLength:a=1,isList:i=!0}=e;const{t:r}=(0,s.B)();return(0,n.jsx)(n.Fragment,{children:t?(0,n.jsx)("div",{className:"heading text-center",children:(0,n.jsxs)("span",{className:"ml-2 mr-2 mb-5",children:[(0,n.jsx)("i",{className:"uil uil-spinner spinner mr-2 fz-24"}),(0,n.jsx)("span",{className:"fz-14 text-darkgray-2",children:r("company.analytics.dataBeingFetched")})]})}):a?null:i?(0,n.jsx)(l.A.Item,{children:(0,n.jsx)("div",{className:"heading text-center",children:r("company.analytics.noData_Available")})}):(0,n.jsx)("div",{className:"heading text-center",children:r("company.analytics.noData_Available")})})}])},81795(e,t,a){var l=a(65043),s=a(14282),n=a(77599),i=a(82457),r=a(36857),o=(a(64353),a(49092)),c=a(22689),d=a(70579);const u=e=>{let{onChangefilters:t,selected:a,quickStatsOptions:u}=e;const[p,h]=(0,l.useState)(!1),[m,y]=(0,l.useState)(!1),v=(0,l.useRef)(null),[x,g]=(0,l.useState)(u);(0,l.useEffect)(()=>{let e=x.map(e=>({...e,value:a.includes(e.id)}
1));e.every(e=>e.value)&&y(!0),g(e)},[a]);const{t:f}=(0,o.B)(),j=(e,t,a)=>{if(["Click Through Rate","Lead Conversion Rate"].find(e=>e===a)&&e.target.checked)return void((e,t)=>{let a=[...x];"Lead Conversion Rate"===t&&a.forEach((t,a)=>{"Lead Conversion Rate"!==t.key&&"Total Chats"!==t.key&&"Total Leads"!==t.key||(t.value=e.target.checked)}),"Click Through Rate"===t&&a.forEach((t,a)=>{"Click Through Rate"!==t.key&&"Total Chats"!==t.key&&"Total Visits"!==t.key||(t.value=e.target.checked)}),g(a),a.every(e=>e.value)?y(!0):y(!1)})(e,a);if(["Total Visits","Total Chats","Total Leads"].find(e=>e===a)&&!e.target.checked)return void((e,t)=>{let a=[...x];"Total Chats"===t&&a.forEach(t=>{"Lead Conversion Rate"!==t.key&&"Click Through Rate"!==t.key&&"Total Chats"!==t.key||(t.value=e.target.checked)}),"Total Visits"===t&&a.forEach(t=>{"Click Through Rate"!==t.key&&"Total Visits"!==t.key||(t.value=e.target.checked)}),"Total Leads"===t&&a.forEach(t=>{"Lead Conversion Rate"!==t.key&&"Total Leads"!==t.key||(t.value=e.target.checked)}),g(a),a.every(e=>e.value)?y(!0):y(!1)})(e,a);let l=x.map((a,l)=>{let s={...a};return l===t&&(s.value=e.target.checked),s});g(l),l.every(e=>e.value)?y(!0):y(!1)},k=e=>{h(e)},b=()=>{t(x.filter(e=>e.value)),h(!1)};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(s.A,{className:"btn-addmore",variant:"primary",ref:v,onClick:k.bind(void 0,!p),children:[(0,d.jsx)(c.A,{style:{height:18,width:18,marginRight:"0.25rem"}}),f("company.analytics.customize")]}),(0,d.jsx)(i.A,{target:v.current,show:p,placement:"bottom",onHide:k.bind(void 0,!1),rootClose:!0,children:e=>{let{placement:t,arrowProps:a,show:l,popper:i,...o}=e;return(0,d.jsxs)("div",{...o,style:{backgroundColor:"white",padding:"2px 10px",border:"1px solid lightgrey",color:"white",borderRadius:5,...o.style},children:[(0,d.jsx)(n.A.Check,{custom:!0,type:"checkbox",name:"selectAllOptions",id:"selectAllOptions",label:f("company.analytics.selectAll"),onChange:e=>(e=>{y(e.target.checked);let t=x;t.forEach(t=>{t.value=e.target.checked}),g(t)})(e),checked:m,style:{paddingTop:"10px",color:"#454F5B",fontSize:"13px",fontWeight:"600",borderBottom:"1px solid #454f5b",paddingBottom:"5px"}}),x.map((e,t)=>(0,d.jsx)(n.A.Check,{custom:!0,type:"checkbox",name:"checkbox",id:e.key+t,label:f(`company.analytics.${(0,r.PT)(e.key)}`),onChange:a=>j(a,t,e.key),checked:e.value,style:{paddingTop:"10px",color:"#454F5B",fontSize:"13px",fontWeight:"600"}},t)),(0,d.jsx)(s.A,{className:"btn-apply-filter",variant:"primary",title:f("company.analytics.filters"),onClick:b,children:f("company.analytics.apply")})]})}})]})};a.d(t,["A",0,u])},5047(e,t,a){var l=a(65043),s=a(76483),n=a(70579);const i=e=>{let{children:t,styles:a={},verticalScroll:l=!0,horizontalScroll:i=!0,...r}=e;const o=e=>{let{style:t,...a}=e;console.log("1235");const l={backgroundColor:"rgb(236 0 0)",background:"rgb(236 0 0)"};return(0,n.jsx)("div",{style:{...t,...l},...a})};return i?(0,n.jsx)(s.Ay,{renderThumbHorizontal:o,renderThumbVertical:o,autoHide:!0,...r,children:t}):(0,n.jsx)(s.Ay,{autoHide:!0,className:"scroll-bar-comp",renderTrackHorizontal:e=>(0,n.jsx)("div",{...e,className:"track-horizontal",style:{display:i?"block":"none"}}),renderThumbHorizontal:e=>(0,n.jsx)("div",{...e,className:"thumb-horizontal",style:{display:i?"block":"none",backgroundColor:"#a8acb0cc"}}),renderThumbVertical:e=>(0,n.jsx)("div",{...e,className:"thumb-vertical",style:{...e.style,borderRadius:"10px",backgroundColor:"#a8acb0cc"}}),...r,children:t})},r=i,o=e=>{let{onScroll:t,forwardedRef:a,style:s,children:r}=e;const o=(0,l.useCallback)(e=>{a(e?e.view:null)},[]);return(0,n.jsx)(i,{ref:o,horizontalScroll:!1,style:{height:s.height,overflow:"hidden"},onScroll:t,children:r})},c=(0,l.forwardRef)((e,t)=>(0,n.jsx)(o,{...e,forwardedRef:t}));a.d(t,["A",0,r,"m",0,c])},70425(e,t,a){a(65043);var l=a(86636),s=a(70579);const n=e=>{let{open:t,children:a}=e;return(0,s.jsx)(l.A,{id:"sidebar-analytics",className:"sidebar-nav sidebar-nav-"+(t?"open active":"close"),children:(0,s.jsx)("div",{className:"sidebar-wrapper",children:a})})};a.d(t,["A",0,n])},64353(){},90849(){}}]);
2//# sourceMappingURL=5562.3e273a66.chunk.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.