PageSourceSearch

https://linix.me/ui/static/js/async/19130.87699c79.js

js linix.me collected 2026-10-09 03:58:30 UTC 23,019 bytes, 2 lines download raw bytes

1(globalThis.webpackChunkbackdraft=globalThis.webpackChunkbackdraft||[]).push([["19130"],{18870:function(e,t,i){var r={"./ja-JP.ts":["10563","90885"],"./fr-CA.ts":["685064","51363"],"./ko-KR.ts":["539842","9788"],"./en-US.ts":["509639"],"./zh-CN.ts":["938324","73661"],"./zh-TW.ts":["844393","86220"],"./index.ts":["213949"]};function n(e){if(!i.o(r,e))return Promise.resolve().then(function(){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],n=t[0];return Promise.all(t.slice(1).map(i.e)).then(function(){return i(n)})}n.keys=()=>Object.keys(r),n.id=18870,e.exports=n},509639:function(e,t,i){"use strict";i.r(t),i.d(t,{messages:()=>r});let r={minimizeTable:"Minimize Active Sessions Table",maximizeTable:"Maximize Active Sessions Table",usernameLabel:"User Name",countryLabel:"Country",assignedIpLabel:"Assigned IP",publicIpLabel:"Public IP",durationLabel:"Session Length",loginLabel:"Login Time",sensorLabel:"Gateway",sessionTypeLabel:"Session Type",groupPolicyLabel:"Group Policy",connectionProfileLabel:"Connection Profile",clientApplicationLabel:"Client Application",clientOsLabel:"Client OS",duration:"{hours} {hours, select, 1 {Hour} other {Hours}}, {minutes} {minutes, select, 1 {minute} other {minutes}}",emptyMessageActiveSessionTable:"There are no Active RAVPN sessions",activeSessionTableTitle:"Active Sessions ({amount})",confirmTermination:"Confirm Session Termination",terminatingSession:"Terminating session…",terminateSessionError:"Error while terminating session! Retry?",errorTitle:"Error!",terminateSession:"Terminate session",terminateByUsername:"Terminate all sessions of {username}, on gateway {gateway}",terminateByDevice:"Terminate all sessions on gateway {gateway}",terminateSessionConfirmation:"This will terminate the selected session on gateway {gateway}. Continue?",terminateByUsernameConfirmation:"This will terminate all sessions of {username}, on gateway {gateway}. Continue?",terminateByDeviceConfirmation:"This will terminate all sessions on gateway {gateway}. Continue?",terminatedSessionsCount:"{count} sessions terminated",ok:"Ok",cancel:"Cancel",total:"Total",sessions:"Sessions",sessionWidgetLabel:"Sessions",groupByDevice:"By Device",groupByEncryptionType:"By Encryption Type",groupBySecureClientVersion:"By {secureClient} Version",groupByOperatingSystem:"By Operating System",groupByConnectionProfile:"By Connection Profile",restSessions:"Other sessions",selectType:"Select Type",noActiveSession:"No active sessions",deviceIdentityCertificatesWidgetLabel:"Device Identity Certificates",identityCertificates:"{amount} Identity {amount, select, 1 {Certificate} other {Certificates}}",identityCertificatesExpireSoon:"{amount} {amount, select, 1 {certificate} other {certificates}} expiring in 1 to 30 days",identityCertificatesExpired:"{amount} {amount, select, 1 {certificate is} other {certificates are}} expired",viewDetails:"View Details",mapTitle:"Active Sessions",reset:"Reset",mapTooltip:"{amount} Active {amount, select, 1 {Session} other {Sessions}}",username:"Username",assignedIp:"Assigned IP",publicIp:"Public IP",loginTime:"Login Time",gateway:"Gateway",clientApplication:"Client Application",clientOs:"Client OS",connectionProfile:"Connection Profile",groupPolicy:"Group Policy",refreshInterval:"{minutes} {minutes, select, 1 {minute} other {minutes}}",refreshMessage:"Refresh every",autoRefreshOnTitle:"Turn on auto refresh",autoRefreshOffTitle:"Turn off auto refresh",refreshIntervalOn:"Automatic refresh is turned on.",refreshIntervalOff:"Automatic refresh is turned off.",refresh:"Refresh",historicalSessions:"Historical Sessions",tooltipForMaxSessionLegend:"The maximum number of VPN sessions will be displayed after redeploying the device configurations"}},213949:function(e,t,i){"use strict";i.r(t),i.d(t,{MessageProvider:()=>o,useMessages:()=>a});var r=i(509639),n=i(148262);let s=e=>i(18870)(`./${e}.ts`).then(({messages:e})=>e),{MessageProvider:o,useMessages:a}=(0,n.Z)(s,r.messages)},627355:function(e,t,i){"use strict";i.d(t,{N:()=>r});var r=function(e){return e.SessionIndex="vpn_session_index",e.Device="sensor",e.UserId="user_id",e.UserName="username",e.AssignedIp="current_ip",e.PublicIp="vpn_client_public_ip",e.SessionType="vpn_session_type",e.GroupPolicy="vpn_tunnel_group_policy",e.ConnectionProfile="vpn_conn_profile",e.ClientApplication="vpn_client_application",e.ClientOS="vpn_client_os",e.LoginTimeUnix="login_timestamp_unix",e.ClientCountryIso3Code="vpn_client_country_iso3",e}({})},439402:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{De:()=>rangeOp,Dz:()=>arithmeticOp,cy:()=>StringOperators,ge:()=>stringOp});var RangeOperators=function(e){return e.IN="in",e.NOT_IN="not-in",e}({}),ArithmeticOperators=function(e){return e.EQ="=",e.LT="<",e.GT=">",e.LE="<=",e.GE=">=",e.NE="!=",e}({}),StringOperators=function(e){return e.CONTAINS="contains",e.BEGINS_WITH="begins-with",e}({});let rangeOp=(e,t,i)=>({evaluate:r=>{let n=i.start?i.start:Number.MIN_SAFE_INTEGER,s=i.end?i.end:Number.MAX_SAFE_INTEGER,o=e(r),a=n<=o&&o<=s;return"in"===t?a:!a}}),arithmeticOp=(valueExtractor,operator,num)=>({evaluate:item=>{let operand=valueExtractor(item);return eval(`${operand} ${operator} ${num}`)}}),stringOp=(e,t,i)=>({evaluate:r=>{let n=e(r);return"begins-with"===t?n.startsWith(i):n.includes(i)}})},401781:function(e,t,i){"use strict";i.d(t,{ZP:()=>m,VL:()=>g,cy:()=>l.cy,x3:()=>v,QX:()=>a});var r=i(627355),n=i(14751);let s=(e,t)=>(t.has(e)||t.set(e,(0,n.uniqueId)()),t.get(e)),o=(e,t)=>{let i=(0,n.memoize)(e,(...e)=>{let t="";
1return e&&e.forEach(e=>{Array.isArray(e)?t+=s(e,i.cache):"object"==typeof e?t+=JSON.stringify(e,(t,r)=>Array.isArray(r)?s(e,i.cache):"function"==typeof r?r.name:r):t+=e}),t});return i},a=(e,t,i,r)=>++e;var l=i(439402);class c{_left;_operator;_right;constructor(e,t,i){this._left=e,this._operator=t,this._right=i}evaluate(e){return"&&"===this._operator?this._left.evaluate(e)&&this._right.evaluate(e):this._left.evaluate(e)||this._right.evaluate(e)}}class u{_operation;constructor(e){this._operation=e}and(e){return this._operation=new c(this._operation,"&&",e),this}or(e){return this._operation=new c(this._operation,"||",e),this}evaluate(e){return this._operation.evaluate(e)}}let d=(e,t,i)=>new u((0,l.ge)(e,t,i)),p=e=>t=>"function"==typeof e?e(t):t[e],h=(e,t)=>i=>new u(d(p(e),t,i));class f{_filter;_filterConstructor;constructor(e,t){this._filterConstructor=t,this._filter=t(e)}and(e){return this._filter=this._filter.and(e),this}or(e){return this._filter=this._filter.or(e),this}evaluate(e){return this._filter.evaluate(e)}And(e){return this._filter=this._filter.and(this._filterConstructor(e)),this}Or(e){return this._filter=this._filter.or(this._filterConstructor(e)),this}}class g extends f{constructor(e,t,i){super(i,h(e,t))}}let v=e=>t=>e.evaluate(t);class y{_cache;_deviceStore;_deviceMap;_groupSessions;_fetchSessions;_fetchDistinctValues;constructor(e,t){this._cache=e,this._deviceStore=t,this._groupSessions=o(this.groupSessions),this._fetchSessions=o(this.fetchSessions),this._fetchDistinctValues=o(this.fetchDistinctValuesForColumns),this._cache.attachListeners({loading:e=>{e&&(this._groupSessions.cache.clear&&this._groupSessions.cache.clear(),this._fetchSessions.cache.clear&&this._fetchSessions.cache.clear(),this._fetchDistinctValues.cache.clear&&this._fetchDistinctValues.cache.clear(),this._deviceStore.clear())}})}getDeviceNameExtractor(){return e=>this._deviceStore.getDevice(e[r.N.Device],this._deviceMap)?.container?.name||e[r.N.Device]}getPrimaryDeviceId(e){let t=this._deviceStore.getDevice(e,this._deviceMap);return t?.container?.primaryId||t?.id||""}getMaxSessions(e){let t=this._deviceStore.getDevice(e,this._deviceMap);return t?.container?.maxSessions||t?.maxSessions||0}async fetchActiveSessions(e,t){return this.fetchSessions(await this._cache.read(),e,t)}async fetchSessions(e,t,i){return this._deviceMap=await this._deviceStore.deviceMap(),e=i?e.filter(i):e,t?[...e].sort((e,i)=>
1{let r="function"==typeof t.sortKey?t.sortKey(e):e[t.sortKey],n="function"==typeof t.sortKey?t.sortKey(i):i[t.sortKey];return("DESC"===t.sortOrder&&([r,n]=[n,r]),"string"==typeof r&&"string"==typeof n)?r.localeCompare(n):r===n?0:r<n?-1:1}):e}async fetchGroupedSessions(e,t,i){return this._groupSessions(await this.fetchActiveSessions(),e,t,i)}async groupSessions(e,t,i,r){let n={};if(n=e.reduce((e,i)=>{if(r&&!r(i))return e;let n="function"==typeof t?t(i):i[t];if(e[n])e[n].sessions.push(i);else{let t=[i];e[n]={sessions:t,value:n,aggregateResult:0}}return e},n),i){let{column:e,func:t}=i;Object.values(n).forEach(i=>{i.aggregateResult=i.sessions.reduce((i,r,n,s)=>t(i,parseInt("function"==typeof e?e(r):r[e]),n,s),0)})}return i?.sortOrder?Object.values(n).sort((e,t)=>{let r="ASC"===i.sortOrder?e:t,n="ASC"===i.sortOrder?t:e;return r.aggregateResult-n.aggregateResult}):Object.values(n).sort((e,t)=>e.value.localeCompare(t.value))}async fetchDistinctValues(...e){return this._fetchDistinctValues(await this.fetchActiveSessions(),...e)}fetchDistinctValuesForColumns(e,...t){let i={};return e.forEach(e=>{t.forEach(t=>{let r=i[t.column]||new Set,n=t.extractor?t.extractor(e):e[t.column];r.add(n),i[t.column]=r})}),i}getCache(){return this._cache}}let m=y},371925:function(e,t,i){"use strict";i.d(t,{Z:()=>y});var r=i(172289),n=i(191887),s=i(826750);let o=200;var a=i(284117);let l={widgetWrapper:(e,t)=>(0,s.iv)({position:"relative",width:e,height:t,marginBottom:a.Z.spacing.m,overflow:"hidden",display:"flex",flexDirection:"column",backgroundColor:a.Z.colors.base.bg.weak.default}),widgetHeader:e=>(0,s.iv)({display:"flex",padding:e.basePaddingXsmall,paddingLeft:e.basePaddingSmall,paddingRight:e.basePaddingSmall,justifyContent:"space-between",fontSize:e.fontSizeSm,fontWeight:e.fontWeightBold}),widgetHeaderControl:(0,s.iv)({display:"flex",alignItems:"center"}),widgetHeaderIcon:e=>(0,s.iv)({paddingRight:e.basePaddingXsmall}),widgetBody:{padding:a.Z.spacing.s,backgroundColor:a.Z.colors.base.bg.weak.default,flex:1},widgetFooter:e=>(0,s.iv)({padding:e.basePaddingSmall,display:"flex",justifyContent:"space-between"}),widgetFooterContent:e=>(0,s.iv)({fontSize:e.fontSizeXs,color:e.baseStrokeColor}),emptyMessage:e=>(0,s.iv)({height:o,display:"flex",justifyContent:"center",alignItems:"center",fontSize:e.fontSizeMd}),contextualNotificationStyle:e=>(0,s.iv)({margin:`${e.basePaddingSmall} 0 !important`,width:"100% !important"})};var c=i(396953),u=i(509268);let d=function(e){var t=e.wrapperCss,i=e.title,n=e.onClose,o=e.closeWidgetButtonLabel,a=(0,u.Fg)();return(0,r.tZ)("div",{css:(0,s.iv)(l.widgetHeader(a),t),children:"string"==typeof i?(0,r.BX)(r.HY,{children:[(0,r.tZ)("div",{children:(0,r.tZ)("span",{children:i})}),(0,r.tZ)("div",{css:l.widgetHeaderControl,children:n&&(0,r.tZ)(c.Z,{icon:"close",size:"small",onClick:n,label:o,buttonProps:{"data-testid":"closeWidgetButton"}})})]}):i})},p=function(e){var t=e.footerContent,i=e.openDetailedInfo,n=e.detailedInfoButtonLabel,o=e.wrapperCss,a=(0,u.Fg)();return null==t?null:(0,r.BX)("div",{css:(0,s.iv)(l.widgetFooter(a),o),children:[(0,r.tZ)("div",{css:l.widgetFooterContent(a),children:t}),i&&(0,r.tZ)(c.Z,{icon:"view",size:"medium",onClick:i,label:n,buttonProps:{"data-testid":"openFullListButton"}})]})};var h=i(759611),f=i(194422);let g=function(e){var t=e.errors,i=void 0===t?[]:t,o=e.wrapperCss,a=(0,u.Fg)(),c=(0,n.useMemo)(function(){return i.map(function(e){return e.message})},[i]);return(0,r.tZ)(r.HY,{children:c.map(function(e){return(0,r.tZ)(f.Z,{status:"critical",wrapperCss:(0,s.iv)(l.contextualNotificationStyle(a),o),children:e},e)})})},v=function(e){var t=e.isLoading,i=e.wrapperCss,n=e.errors,o=e.children;return t?(0,r.tZ)(h.ZP,{}):(0,r.tZ)("div",{css:(0,s.iv)(l.widgetBody,i),children:(null==n?void 0:n.length)?(0,r.tZ)(g,{errors:n}):o})},y=function(e){var t=e.title,i=e.footerContent,n=e.onClose,o=e.openDetailedInfo,a=e.height,c=void 0===a?250:a,u=e.width,h=void 0===u?400:u,f=e.isLoading,g=void 0!==f&&f,y=e.errors,m=e.widgetCss,b=e.widgetHeaderCss,S=e.widgetContentCss,C=e.widgetFooterCss,w=e.children;return(0,r.BX)("div",{css:(0,s.iv)(l.widgetWrapper(h,c),m),children:[(0,r.tZ)(d,{title:t,wrapperCss:b,onClose:n}),(0,r.tZ)(v,{isLoading:g,errors:y,wrapperCss:S,children:w}),(0,r.tZ)(p,{footerContent:i,openDetailedInfo:o,wrapperCss:C})]})}},577550:function(e,t,i){"use strict";i.r(t),i.d(t,{default:()=>V});var r=i(172289),n=i(191887),s=i(371925),o=i(213949),a=i(826750),l=i(284117);let c={sessionWidgetWrapper:(0,a.iv)({display:"flex",justifyContent:"space-around"}),sessionWidget:(0,a.iv)({width:"100%",transitionDuration:"0.5s"}),chartWrapper:(0,a.iv)({display:"flex"}),chartLegendItemWrapper:e=>(0,a.iv)({marginBottom:e.basePaddingXsmall,display:"flex",alignItems:"center",color:e.baseIconColor}),colorBar:(e,t)=>
1(0,a.iv)({backgroundColor:t,width:14,height:14,marginRight:e.basePaddingXsmall,borderRadius:l.Z.borderRadius.sm}),widgetContentCss:(0,a.iv)({overflow:"hidden",paddingTop:0}),widgetContentWrapper:(0,a.iv)({overflow:"hidden",height:"100%",alignSelf:"stretch",display:"flex",flexDirection:"column"}),chartBar:e=>(0,a.iv)({position:"relative",display:"flex",justifyContent:"space-around",marginBottom:e.basePadding,width:"50%"}),legendBar:(0,a.iv)({width:"50%",height:"100%"}),select:e=>(0,a.iv)({marginBottom:e.basePadding}),chart:(0,a.iv)({position:"absolute",top:0,left:"auto"}),chartTitleWrapper:(e,t)=>(0,a.iv)({width:e,height:t,display:"flex",justifyContent:"center",alignItems:"center"}),chartPart:e=>(0,a.iv)({"&:hover":{fill:e,cursor:"pointer"}}),tooltipInPortal:e=>(0,a.iv)({zIndex:1e3,color:`${e.baseColor} !important`,backgroundColor:`${e.baseBg} !important`}),chartTitle:(0,a.iv)({textAlign:"center",width:100}),chartTitleAmount:e=>(0,a.iv)({fontSize:e.fontSizeMd}),chartTitleText:e=>(0,a.iv)({fontSize:e.fontSizeXs,color:e.baseStrokeColor}),selectLabel:e=>(0,a.iv)({color:e.controlStrokeColorHover,fontSize:e.fontSizeXs}),emptyMessage:e=>(0,a.iv)({display:"flex",justifyContent:"space-around",width:"100%",height:"100%",alignItems:"center",fontSize:e.fontSize})};var u=i(686090),d=i(330438),p=i(318412),h=i(509268),f=i(473693),g=i(595866),v=i(133415),y=i(97565),m=i(928649);let b=150,S=150,C=270,w=0,_=function(e){var t=e.chartData,i=(0,h.Fg)(),n=(0,v.Z)(),s=n.tooltipData,o=n.tooltipLeft,a=n.tooltipTop,l=n.tooltipOpen,u=n.showTooltip,d=n.hideTooltip,p=(0,y.Z)({detectBounds:!0,scroll:!0}),C=p.containerRef,w=p.TooltipInPortal,_=function(e,t){var i=e.target.ownerSVGElement,r=(0,m.Z)(i,e);u({tooltipLeft:r.x,tooltipTop:r.y,tooltipData:t})},T=b,Z=S,O=Math.min(T,Z)/2,P=O/1.3,B=Z/2,x=T/2;return(0,r.BX)(r.HY,{children:[(0,r.tZ)("svg",{width:T,height:Z,ref:C,css:c.chart,children:(0,r.tZ)(f.Z,{top:B,left:x,children:(0,r.tZ)(g.Z,{data:t,pieValue:function(e){return+e.aggregateResult},outerRadius:O,innerRadius:P,children:function(e){return e.arcs.map(function(t,i){var n=t.data,s=n.fill,o=n.value,a=n.fillHover,l=n.aggregateResult,u=n.displayValue,p=e.path(t);return(0,r.tZ)("g",{onMouseOver:function(e){return _(e,(0,r.tZ)("div",{children:"".concat(o," (").concat(null!=u?u:l,")")}))},onMouseOut:d,children:(0,r.tZ)("path",{d:p,fill:s,css:c.chartPart(a)})},"arc-".concat(o,"-").concat(i))})}})})}),l&&(0,r.tZ)(w,{top:a,left:o,css:c.tooltipInPortal(i),children:(0,r.tZ)(r.HY,{children:s})},"pie-chart-tooltip")]})};var T=i(927549);let Z=function(e){var t=e.displayValue,i=e.value,n=e.aggregateResult,s=e.colorFill,o=e.tooltipDesc,l=(0,h.Fg)(),u="".concat(i," (").concat(t||n,")");return(0,r.BX)("div",{css:c.chartLegendItemWrapper(l),children:[(0,r.tZ)("div",{children:(0,r.tZ)("div",{css:c.colorBar(l,s)})}),(0,r.tZ)(p.Z,{tooltip:u,children:u}),o&&(0,r.tZ)(T.ZP,{label:o,name:"information",size:"medium",tooltipCss:(0,a.iv)("width:310px;")})]})},O=function(e){var t=e.items;return(0,r.tZ)("div",{children:t.map(function(e){return(0,r.tZ)(Z,{value:e.value,aggregateResult:e.aggregateResult,displayValue:e.displayValue,colorFill:e.colorFill,tooltipDesc:e.tooltipDesc})})})};var P=i(627355);function B(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable}))),r.forEach(function(t){B(e,t,i[t])})}return e}function D(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}),e}let A=function(e){var t=e.groupBy,i=e.setGroupBy,n=e.groupedSessions,s=e.service;e.isLoading;
1var a=(0,o.useMessages)(),l=a.message,f=a.Message,g=(0,h.Fg)(),v=(0,u.Z)(),y=function(e){e&&i(e)},m=[g.sessionsWidgetChartOrange,g.sessionsWidgetChartBlue,g.sessionsWidgetChartBerry,g.sessionsWidgetChartSage,g.sessionsWidgetChartCoral,g.sessionsWidgetChartYellow],C=[g.sessionsWidgetChartOrangeHover,g.sessionsWidgetChartBlueHover,g.sessionsWidgetChartBerryHover,g.sessionsWidgetChartSageHover,g.sessionsWidgetChartCoralHover,g.sessionsWidgetChartYellowHover],T=w,Z={sessions:[],aggregateResult:w,value:l("restSessions"),colorFill:m[5]},B=function(e,t){return t&&t<0?e.aggregateResult.toString():"".concat(e.aggregateResult," / ").concat(t)},D=n.map(function(e,i){T+=e.aggregateResult;var r="sensor"===t.value?s.getMaxSessions(e.value):0;return i>4&&(Z.aggregateResult=Z.aggregateResult+e.aggregateResult),I(x({},e),{colorFill:m[i],displayValue:"sensor"===t.value?B(e,r):void 0,tooltipDesc:r<0?l("tooltipForMaxSessionLegend"):void 0,maxSessions:r})});D.length>5&&(D.length=5),Z.aggregateResult&&D.push(Z);var A=D.map(function(e,i){return{aggregateResult:e.aggregateResult,fill:e.colorFill,fillHover:C[i],value:e.value,displayValue:"sensor"===t.value?B(e,null==e?void 0:e.maxSessions):void 0}}),L=[{label:l("groupByDevice"),value:P.N.Device},{label:l("groupByEncryptionType"),value:P.N.SessionType},{label:l("groupBySecureClientVersion",{secureClient:v.secureClient}),value:P.N.ClientApplication},{label:l("groupByOperatingSystem"),value:P.N.ClientOS},{label:l("groupByConnectionProfile"),value:P.N.ConnectionProfile}];return(0,r.BX)("div",{css:c.widgetContentWrapper,children:[(0,r.tZ)("label",{htmlFor:"select-session-type",css:c.selectLabel(g),children:l("selectType")}),(0,r.tZ)(d.Z,{inputId:"select-session-type",onChange:y,formValue:t,defaultValue:t,options:L,isSearchable:!1,disabled:!n.length,css:c.select(g)}),(0,r.BX)("div",{css:c.chartWrapper,children:[(0,r.BX)("div",{css:c.chartBar(g),children:[!!n.length&&(0,r.tZ)("div",{css:c.chartTitleWrapper(b,S),children:(0,r.BX)("div",{css:c.chartTitle,children:[(0,r.tZ)("div",{css:c.chartTitleAmount(g),children:(0,r.tZ)(p.Z,{tooltip:T,children:T})}),(0,r.tZ)("div",{css:c.chartTitleText(g),children:(0,r.tZ)(f,{id:"total"})}),(0,r.tZ)("div",{css:c.chartTitleText(g),children:(0,r.tZ)(f,{id:"sessions"})})]})}),(0,r.tZ)(_,{chartData:A})]}),(0,r.tZ)("div",{css:c.legendBar,children:(0,r.tZ)(O,{items:D})})]}),!n.length&&(0,r.tZ)("div",{css:c.emptyMessage(g),children:l("noActiveSession")})]})};var L=i(401781);function W(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function R(e){if(Array.isArray(e))return e}function E(e,t,i,r,n,s,o){try{var a=e[s](o),l=a.value}catch(e){i(e);return}a.done?t(l):Promise.resolve(l).then(r,n)}function N(e){return function(){var t=this,i=arguments;return new Promise(function(r,n){var s=e.apply(t,i);function o(e){E(s,r,n,o,a,"next",e)}function a(e){E(s,r,n,o,a,"throw",e)}o(void 0)})}}function j(e,t){var i,r,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var s=[],o=!0,a=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(s.push(i.value),!t||s.length!==t);o=!0);}catch(e){a=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(a)throw r}}return s}}function M(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){return R(e)||j(e,t)||z(e,t)||M()}function z(e,t){if(e){if("string"==typeof e)return W(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(i);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return W(e,t)}}function F(e,t){var i,r,n,s={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(e){return function(t){return l([e,t])}}function l(a){if(i)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(i=1,r&&(n=2&a[0]?r.return:a[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,a[1])).done)return n;switch(r=0,n&&(a=[2&a[0],n.value]),a[0]){case 0:case 1:n=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===a[0]||2===a[0])){s=0;continue}if(3===a[0]&&(!n||a[1]>n[0]&&a[1]<n[3])){s.label=a[1];break}if(6===a[0]&&s.label<n[1]){s.label=n[1],n=a;break}if(n&&s.label<n[2]){s.label=n[2],s.ops.push(a);break}n[2]&&s.ops.pop(),s.trys.pop();continue}a=t.call(e,s)}catch(e){a=[6,e],r=0}finally{i=n=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}let V=function(e){var t=e.service,i=(0,o.useMessages)().message,a=k((0,n.use
1State)(!1),2),l=a[0],u=a[1],d=k((0,n.useState)([]),2),p=d[0],h=d[1],f={value:P.N.Device,label:i("groupByDevice")},g=k((0,n.useState)(f),2),v=g[0],y=g[1],m=function(){var e=N(function(){var e;return F(this,function(i){switch(i.label){case 0:return i.trys.push([0,,2,3]),u(!0),e=v.value===P.N.Device?t.getDeviceNameExtractor():v.value,[4,t.fetchGroupedSessions(e,{column:e,func:L.QX,sortOrder:"DESC"})];case 1:return h(i.sent()),[3,3];case 2:return u(!1),[7];case 3:return[2]}})});return function(){return e.apply(this,arguments)}}();(0,n.useEffect)(function(){m()},[v]),(0,n.useEffect)(function(){return t.getCache().attachListeners({invalidated:function(){return y(f),m()}})},[]);var b=(0,r.tZ)(A,{groupBy:v,setGroupBy:y,groupedSessions:p,service:t,isLoading:l});return(0,r.tZ)("div",{css:c.sessionWidgetWrapper,children:(0,r.tZ)(s.Z,{title:i("sessionWidgetLabel"),isLoading:l,widgetCss:c.sessionWidget,widgetContentCss:c.widgetContentCss,height:C,width:250,children:b})})}}}]);
2//# sourceMappingURL=19130.87699c79.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.