PageSourceSearch

https://hyscore.io/assets/admin.statistics.crm-activity-CixDpry8.js

js hyscore.io collected 2026-09-24 09:26:40 UTC 42,341 bytes, 64 lines download raw bytes

1import{dD as M,cb as h,dC as Xe,r as B,a0 as Je,a1 as et,a2 as tt,b as Le,e as Ee,j as i}from"./index-B4mWWRqi.js";import{f as O,w as rt,x as mt,y as nt,z as ht,k as U,F as Se,H as z,a as E,I as at,p as Ne,J as it,D as vt,b as gt,d as J,l as Y,S as bt,A as yt,K as xt,c as Re,g as At,i as H,j as jt,u as kt,G as _t,M as de,q as Ot,s as ot,N as Pt,O as ce,P as Ie,t as wt,Q as St,R as xe,C as $e,X as De,Y as Ce,T as Ae,B as Nt,L as Tt}from"./generateCategoricalChart-Cw-ywUHj.js";import{L as Lt}from"./LineChart-DZEPVAnm.js";import{L as Et}from"./Line-DXParvRf.js";import{B as Rt}from"./BarChart-z8Du53ld.js";import"./index-C7yKKq-w.js";var It=["points","className","baseLinePoints","connectNulls"];function Q(){return Q=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},Q.apply(this,arguments)}function $t(r,e){if(r==null)return{};var n=Dt(r,e),t,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a<s.length;a++)t=s[a],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function Dt(r,e){if(r==null)return{};var n={};for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)){if(e.indexOf(t)>=0)continue;n[t]=r[t]}return n}function ze(r){return Kt(r)||Ft(r)||zt(r)||Ct()}function Ct(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zt(r,e){if(r){if(typeof r=="string")return _e(r,e);var n=Object.prototype.toString.call(r).slice(8,-1);if(n==="Object"&&r.constructor&&(n=r.constructor.name),n==="Map"||n==="Set")return Array.from(r);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _e(r,e)}}function Ft(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function Kt(r){if(Array.isArray(r))return _e(r)}function _e(r,e){(e==null||e>r.length)&&(e=r.length);for(var n=0,t=new Array(e);n<e;n++)t[n]=r[n];return t}var Fe=function(e){return e&&e.x===+e.x&&e.y===+e.y},Bt=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return e.forEach(function(t){Fe(t)?n[n.length-1].push(t):n[n.length-1].length>0&&n.push([])}),Fe(e[0])&&n[n.length-1].push(e[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ie=function(e,n){var t=Bt(e);n&&(t=[t.reduce(function(s,o){return[].concat(ze(s),ze(o))},[])]);var a=t.map(function(s){return s.reduce(function(o,d,f){return"".concat(o).concat(f===0?"M":"L").concat(d.x,",").concat(d.y)},"")}).join("");return t.length===1?"".concat(a,"Z"):a},Mt=function(e,n,t){var a=ie(e,t);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ie(n.reverse(),t).slice(1))},qt=function(e){var n=e.points,t=e.className,a=e.baseLinePoints,s=e.connectNulls,o=$t(e,It);if(!n||!n.length)return null;var d=M("recharts-polygon",t);if(a&&a.length){var f=o.stroke&&o.stroke!=="none",u=Mt(n,a,s);return h.createElement("g",{className:d},h.createElement("path",Q({},O(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),f?h.createElement("path",Q({},O(o,!0),{fill:"none",d:ie(n,s)})):null,f?h.createElement("path",Q({},O(o,!0),{fill:"none",d:ie(a,s)})):null)}var m=ie(n,s);return h.createElement("path",Q({},O(o,!0),{fill:m.slice(-1)==="Z"?o.fill:"none",className:d,d:m}))},je,Ke;function Vt(){if(Ke)return je;Ke=1;var r=rt(),e=mt(),n=nt();function t(a,s){return a&&a.length?r(a,n(s,2),e):void 0}return je=t,je}var Ut=Vt();const Zt=Xe(Ut);var ke,Be;function Gt(){if(Be)return ke;Be=1;var r=rt(),e=nt(),n=ht();function t(a,s){return a&&a.length?r(a,e(s,2),n):void 0}return ke=t,ke}var Wt=Gt();const Yt=Xe(Wt);var Ht=["cx","cy","angle","ticks","axisLine"],Qt=["ticks","tick","angle","tickFormatter","stroke"];function ee(r){"@babel/helpers - typeof";return ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(r)}function oe(){return oe=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},oe.apply(this,arguments)}function Me(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function q(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};
2e%2?Me(Object(n),!0).forEach(function(t){ve(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function qe(r,e){if(r==null)return{};var n=Xt(r,e),t,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);for(a=0;a<s.length;a++)t=s[a],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(r,t)&&(n[t]=r[t])}return n}function Xt(r,e){if(r==null)return{};var n={};for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)){if(e.indexOf(t)>=0)continue;n[t]=r[t]}return n}function Jt(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ve(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,lt(t.key),t)}}function er(r,e,n){return e&&Ve(r.prototype,e),n&&Ve(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function tr(r,e,n){return e=fe(e),rr(r,st()?Reflect.construct(e,n||[],fe(r).constructor):e.apply(r,n))}function rr(r,e){if(e&&(ee(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nr(r)}function nr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function st(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(st=function(){return!!r})()}function fe(r){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fe(r)}function ar(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Oe(r,e)}function Oe(r,e){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},Oe(r,e)}function ve(r,e,n){return e=lt(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function lt(r){var e=ir(r,"string");return ee(e)=="symbol"?e:e+""}function ir(r,e){if(ee(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var t=n.call(r,e);if(ee(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var ge=(function(r){function e(){return Jt(this,e),tr(this,e,arguments)}return ar(e,r),er(e,[{key:"getTickValueCoord",value:function(t){var a=t.coordinate,s=this.props,o=s.angle,d=s.cx,f=s.cy;return z(d,f,a,o)}},{key:"getTickTextAnchor",value:function(){var t=this.props.orientation,a;switch(t){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var t=this.props,a=t.cx,s=t.cy,o=t.angle,d=t.ticks,f=Zt(d,function(m){return m.coordinate||0}),u=Yt(d,function(m){return m.coordinate||0});return{cx:a,cy:s,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,a=t.cx,s=t.cy,o=t.angle,d=t.ticks,f=t.axisLine,u=qe(t,Ht),m=d.reduce(function(g,c){return[Math.min(g[0],c.coordinate),Math.max(g[1],c.coordinate)]},[1/0,-1/0]),p=z(a,s,m[0],o),x=z(a,s,m[1],o),k=q(q(q({},O(u,!1)),{},{fill:"none"},O(f,!1)),{},{x1:p.x,y1:p.y,x2:x.x,y2:x.y});return h.createElement("line",oe({className:"recharts-polar-radius-axis-line"},k))}},{key:"renderTicks",value:function(){var t=this,a=this.props,s=a.ticks,o=a.tick,d=a.angle,f=a.tickFormatter,u=a.stroke,m=qe(a,Qt),p=this.getTickTextAnchor(),x=O(m,!1),k=O(o,!1),g=s.map(function(c,y){var A=t.getTickValueCoord(c),j=q(q(q(q({textAnchor:p,transform:"rotate(".concat(90-d,", ").concat(A.x,", ").concat(A.y,")")},x),{},{stroke:"none",fill:u},k),{},{index:y},A),{},{payload:c});return h.createElement(E,oe({className:M("recharts-polar-radius-axis-tick",at(o)),key:"tick-".concat(c.coordinate)},Ne(t.props,c,y)),e.renderTickItem(o,j,f?f(c.value,y):c.value))});return h.createElement(E,{className:"recharts-polar-radius-axis-ticks"},g)}},{key:"render",value:function(){var t=this.props,a=t.ticks,s=t.axisLine,o=t.tick;return!a||!a.length?null:h.createElement(E,{className:M("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),o&&this.renderTicks(),it.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(t,a,s){var o;return h.isValidElement(t)?o=h.cloneElement(t,a):U(t)?o=t(a):o=h.createElement(Se,oe({},a,{className:"recharts-polar-radius-axis-tick-value"}),s),o}}])}
2)(B.PureComponent);ve(ge,"displayName","PolarRadiusAxis");ve(ge,"axisType","radiusAxis");ve(ge,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function te(r){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},te(r)}function Z(){return Z=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},Z.apply(this,arguments)}function Ue(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function V(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ue(Object(n),!0).forEach(function(t){be(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):Ue(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function or(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ze(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,ut(t.key),t)}}function sr(r,e,n){return e&&Ze(r.prototype,e),n&&Ze(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function lr(r,e,n){return e=me(e),cr(r,ct()?Reflect.construct(e,n||[],me(r).constructor):e.apply(r,n))}function cr(r,e){if(e&&(te(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ur(r)}function ur(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function ct(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ct=function(){return!!r})()}function me(r){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},me(r)}function dr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&Pe(r,e)}function Pe(r,e){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},Pe(r,e)}function be(r,e,n){return e=ut(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function ut(r){var e=pr(r,"string");return te(e)=="symbol"?e:e+""}function pr(r,e){if(te(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var t=n.call(r,e);if(te(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var fr=Math.PI/180,Ge=1e-5,ye=(function(r){function e(){return or(this,e),lr(this,e,arguments)}return dr(e,r),sr(e,[{key:"getTickLineCoord",value:function(t){var a=this.props,s=a.cx,o=a.cy,d=a.radius,f=a.orientation,u=a.tickSize,m=u||8,p=z(s,o,d,t.coordinate),x=z(s,o,d+(f==="inner"?-1:1)*m,t.coordinate);return{x1:p.x,y1:p.y,x2:x.x,y2:x.y}}},{key:"getTickTextAnchor",value:function(t){var a=this.props.orientation,s=Math.cos(-t.coordinate*fr),o;return s>Ge?o=a==="outer"?"start":"end":s<-Ge?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var t=this.props,a=t.cx,s=t.cy,o=t.radius,d=t.axisLine,f=t.axisLineType,u=V(V({},O(this.props,!1)),{},{fill:"none"},O(d,!1));if(f==="circle")return h.createElement(vt,Z({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:s,r:o}));var m=this.props.ticks,p=m.map(function(x){return z(a,s,o,x.coordinate)});return h.createElement(qt,Z({className:"recharts-polar-angle-axis-line"},u,{points:p}))}},{key:"renderTicks",value:function(){var t=this,a=this.props,s=a.ticks,o=a.tick,d=a.tickLine,f=a.tickFormatter,u=a.stroke,m=O(this.props,!1),p=O(o,!1),x=V(V({},m),{},{fill:"none"}
2,O(d,!1)),k=s.map(function(g,c){var y=t.getTickLineCoord(g),A=t.getTickTextAnchor(g),j=V(V(V({textAnchor:A},m),{},{stroke:"none",fill:u},p),{},{index:c,payload:g,x:y.x2,y:y.y2});return h.createElement(E,Z({className:M("recharts-polar-angle-axis-tick",at(o)),key:"tick-".concat(g.coordinate)},Ne(t.props,g,c)),d&&h.createElement("line",Z({className:"recharts-polar-angle-axis-tick-line"},x,y)),o&&e.renderTickItem(o,j,f?f(g.value,c):g.value))});return h.createElement(E,{className:"recharts-polar-angle-axis-ticks"},k)}},{key:"render",value:function(){var t=this.props,a=t.ticks,s=t.radius,o=t.axisLine;return s<=0||!a||!a.length?null:h.createElement(E,{className:M("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(t,a,s){var o;return h.isValidElement(t)?o=h.cloneElement(t,a):U(t)?o=t(a):o=h.createElement(Se,Z({},a,{className:"recharts-polar-angle-axis-tick-value"}),s),o}}])})(B.PureComponent);be(ye,"displayName","PolarAngleAxis");be(ye,"axisType","angleAxis");be(ye,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var pe;function re(r){"@babel/helpers - typeof";return re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(r)}function X(){return X=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(r[t]=n[t])}return r},X.apply(this,arguments)}function We(r,e){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.push.apply(n,t)}return n}function b(r){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?We(Object(n),!0).forEach(function(t){N(r,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):We(Object(n)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))})}return r}function mr(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ye(r,e){for(var n=0;n<e.length;n++){var t=e[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,pt(t.key),t)}}function hr(r,e,n){return e&&Ye(r.prototype,e),n&&Ye(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}function vr(r,e,n){return e=he(e),gr(r,dt()?Reflect.construct(e,n||[],he(r).constructor):e.apply(r,n))}function gr(r,e){if(e&&(re(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return br(r)}function br(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function dt(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dt=function(){return!!r})()}function he(r){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},he(r)}function yr(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),e&&we(r,e)}function we(r,e){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,a){return t.__proto__=a,t},we(r,e)}function N(r,e,n){return e=pt(e),e in r?Object.defineProperty(r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function pt(r){var e=xr(r,"string");return re(e)=="symbol"?e:e+""}function xr(r,e){if(re(r)!="object"||!r)return r;var n=r[Symbol.toPrimitive];if(n!==void 0){var t=n.call(r,e);if(re(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}var F=(function(r){function e(n){var t;return mr(this,e),t=vr(this,e,[n]),N(t,"pieRef",null),N(t,"sectorRefs",[]),N(t,"id",kt("recharts-pie-")),N(t,"handleAnimationEnd",function(){var a=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),U(a)&&a()}),N(t,"handleAnimationStart",function(){var a=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),U(a)&&a()}),t.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},t}
2return yr(e,r),hr(e,[{key:"isActiveIndex",value:function(t){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(t)!==-1:t===a}},{key:"hasActiveIndex",value:function(){var t=this.props.activeIndex;return Array.isArray(t)?t.length!==0:t||t===0}},{key:"renderLabels",value:function(t){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var s=this.props,o=s.label,d=s.labelLine,f=s.dataKey,u=s.valueKey,m=O(this.props,!1),p=O(o,!1),x=O(d,!1),k=o&&o.offsetRadius||20,g=t.map(function(c,y){var A=(c.startAngle+c.endAngle)/2,j=z(c.cx,c.cy,c.outerRadius+k,A),S=b(b(b(b({},m),c),{},{stroke:"none"},p),{},{index:y,textAnchor:e.getTextAnchor(j.x,c.cx)},j),C=b(b(b(b({},m),c),{},{fill:"none",stroke:c.fill},x),{},{index:y,points:[z(c.cx,c.cy,c.outerRadius,A),j]}),w=f;return J(f)&&J(u)?w="value":J(f)&&(w=u),h.createElement(E,{key:"label-".concat(c.startAngle,"-").concat(c.endAngle,"-").concat(c.midAngle,"-").concat(y)},d&&e.renderLabelLineItem(d,C,"line"),e.renderLabelItem(o,S,Y(c,w)))});return h.createElement(E,{className:"recharts-pie-labels"},g)}},{key:"renderSectorsStatically",value:function(t){var a=this,s=this.props,o=s.activeShape,d=s.blendStroke,f=s.inactiveShape;return t.map(function(u,m){if(u?.startAngle===0&&u?.endAngle===0&&t.length!==1)return null;var p=a.isActiveIndex(m),x=f&&a.hasActiveIndex()?f:null,k=p?o:x,g=b(b({},u),{},{stroke:d?u.fill:u.stroke,tabIndex:-1});return h.createElement(E,X({ref:function(y){y&&!a.sectorRefs.includes(y)&&a.sectorRefs.push(y)},tabIndex:-1,className:"recharts-pie-sector"},Ne(a.props,u,m),{key:"sector-".concat(u?.startAngle,"-").concat(u?.endAngle,"-").concat(u.midAngle,"-").concat(m)}),h.createElement(bt,X({option:k,isActive:p,shapeType:"sector"},g)))})}},{key:"renderSectorsWithAnimation",value:function(){var t=this,a=this.props,s=a.sectors,o=a.isAnimationActive,d=a.animationBegin,f=a.animationDuration,u=a.animationEasing,m=a.animationId,p=this.state,x=p.prevSectors,k=p.prevIsAnimationActive;return h.createElement(yt,{begin:d,duration:f,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(k),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(g){var c=g.t,y=[],A=s&&s[0],j=A.startAngle;return s.forEach(function(S,C){var w=x&&x[C],R=C>0?xt(S,"paddingAngle",0):0;if(w){var I=Re(w.endAngle-w.startAngle,S.endAngle-S.startAngle),_=b(b({},S),{},{startAngle:j+R,endAngle:j+I(c)+R});y.push(_),j=_.endAngle}else{var T=S.endAngle,P=S.startAngle,G=Re(0,T-P),L=G(c),$=b(b({},S),{},{startAngle:j+R,endAngle:j+L+R});y.push($),j=$.endAngle}}),h.createElement(E,null,t.renderSectorsStatically(y))})}},{key:"attachKeyboardHandlers",value:function(t){var a=this;t.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var d=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[d].focus(),a.setState({sectorToFocus:d});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var t=this.props,a=t.sectors,s=t.isAnimationActive,o=this.state.prevSectors;return s&&a&&a.length&&(!o||!At(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,a=this.props,s=a.hide,o=a.sectors,d=a.className,f=a.label,u=a.cx,m=a.cy,p=a.innerRadius,x=a.outerRadius,k=a.isAnimationActive,g=this.state.isAnimationFinished;if(s||!o||!o.length||!H(u)||!H(m)||!H(p)||!H(x))return null;var c=M("recharts-pie",d);return h.createElement(E,{tabIndex:this.props.rootTabIndex,className:c,ref:function(A){t.pieRef=A}},this.renderSectors(),f&&this.renderLabels(o),it.renderCallByParent(this.props,null,!1),(!k||g)&&jt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(t,a){return a.prevIsAnimationActive!==t.isAnimationActive?{prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:[],isAnimationFinished:!0}:t.isAnimationActive&&t.animationId!==a.prevAnimationId?{prevAnimationId:t.animationId,curSectors:t.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:t.sectors!==a.curSectors?{curSectors:t.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(t,a){return t>a?"start":t<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,a,s){if(h.isValidElement(t))return h.cloneElement(t,a);if(U(t))return t(a);var o=M("recharts-pie-label-line",typeof t!="boolean"?t.className:"");return h.createElement(gt,X({},a,{key:s,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(t,a,s){if(h.isValidElement(t))return h.cloneElement(t,a);var o=s;if(U(t)&&(o=t(a),h.isValidElement(o)))return o;var d=M("recharts-pie-label-text",typeof t!="boolean"&&!U(t)?t.className:"");return h.createElement(Se,X({},a,{alignmentBaseline:"middle",className:d}),o)}}])}
2)(B.PureComponent);pe=F;N(F,"displayName","Pie");N(F,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!_t.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});N(F,"parseDeltaAngle",function(r,e){var n=de(e-r),t=Math.min(Math.abs(e-r),360);return n*t});N(F,"getRealPieData",function(r){var e=r.data,n=r.children,t=O(r,!1),a=Ot(n,ot);return e&&e.length?e.map(function(s,o){return b(b(b({payload:s},t),s),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(s){return b(b({},t),s.props)}):[]});N(F,"parseCoordinateOfPie",function(r,e){var n=e.top,t=e.left,a=e.width,s=e.height,o=Pt(a,s),d=t+ce(r.cx,a,a/2),f=n+ce(r.cy,s,s/2),u=ce(r.innerRadius,o,0),m=ce(r.outerRadius,o,o*.8),p=r.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:d,cy:f,innerRadius:u,outerRadius:m,maxRadius:p}});N(F,"getComposedData",function(r){var e=r.item,n=r.offset,t=e.type.defaultProps!==void 0?b(b({},e.type.defaultProps),e.props):e.props,a=pe.getRealPieData(t);if(!a||!a.length)return null;var s=t.cornerRadius,o=t.startAngle,d=t.endAngle,f=t.paddingAngle,u=t.dataKey,m=t.nameKey,p=t.valueKey,x=t.tooltipType,k=Math.abs(t.minAngle),g=pe.parseCoordinateOfPie(t,n),c=pe.parseDeltaAngle(o,d),y=Math.abs(c),A=u;J(u)&&J(p)?(Ie(!1,`Use "dataKey" to specify the value of pie,
3      the props "valueKey" will be deprecated in 1.1.0`),A="value"):J(u)&&(Ie(!1,`Use "dataKey" to specify the value of pie,
4      the props "valueKey" will be deprecated in 1.1.0`),A=p);var j=a.filter(function(_){return Y(_,A,0)!==0}).length,S=(y>=360?j:j-1)*f,C=y-j*k-S,w=a.reduce(function(_,T){var P=Y(T,A,0);return _+(H(P)?P:0)},0),R;if(w>0){var I;R=a.map(function(_,T){var P=Y(_,A,0),G=Y(_,m,T),L=(H(P)?P:0)/w,$;T?$=I.endAngle+de(c)*f*(P!==0?1:0):$=o;var se=$+de(c)*((P!==0?k:0)+L*C),le=($+se)/2,l=(g.innerRadius+g.outerRadius)/2,v=[{name:G,value:P,payload:_,dataKey:A,type:x}],D=z(g.cx,g.cy,l,le);return I=b(b(b({percent:L,cornerRadius:s,name:G,tooltipPayload:v,midAngle:le,middleRadius:l,tooltipPosition:D},_),g),{},{value:Y(_,A),startAngle:$,endAngle:se,payload:_,paddingAngle:de(c)*f}),I})}return b(b({},g),{},{sectors:R,data:a})});var Ar=wt({chartName:"PieChart",GraphicalChild:F,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ye},{axisType:"radiusAxis",AxisComp:ge}],formatAxisMap:St,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const ne={company:"Firmen",contact:"Kontakte",lead:"Leads",note:"Notizen",booking:"Terminbuchungen",task:"Tasks",email_sent:"E-Mails gesendet",sequence_start:"Sequenz-Starts",landing_page:"Landingpages"},ue={company:["created","updated"],contact:["created","updated"],lead:["created","updated"],note:["created","updated"],booking:["created","completed"],task:["created","completed"],email_sent:["created"],sequence_start:["created"],landing_page:["created"]},jr=Je({method:"POST"}).middleware([et]).handler(tt("f29716360a38287579780012b9b0a1a416f8b80a9679b478669e46bcaef4c421")),kr=Je({method:"GET"}).middleware([et]).handler(tt("71c3faf18464291faaf9bd344e015c2cce0246c8090fc468fa7e59207c342871")),He=[{label:"Letzte 24 Stunden (stündlich)",bucket:"hour",hours:24},{label:"Heute (stündlich)",bucket:"hour",todayLocal:!0},{label:"Letzte 3 Tage (stündlich)",bucket:"hour",hours:72},{label:"Täglich (30 Tage)",bucket:"day",days:30},{label:"Täglich (90 Tage)",bucket:"day",days:90}],ae=["company","contact","lead","note","booking","task","email_sent","sequence_start","landing_page"],_r=["created","updated","completed"],W={created:"Angelegt",updated:"Bearbeitet",completed:"Erledigt"};function Qe(){const r=new Date,e=new Date(r.getFullYear(),r.getMonth(),r.getDate());return Math.max(1,Math.ceil((r.getTime()-e.getTime())/36e5))}function Lr(){const[r,e]=B.useState(3),[n,t]=B.useState("all"),[a,s]=B.useState("all"),[o,d]=B.useState("all"),f=B.useRef(null),u=()=>{const l=f.current;if(!l)return window.print();const v=l.parentNode,D=l.nextSibling;document.body.appendChild(l),document.body.classList.add("is-printing-report");const K=()=>{document.body.classList.remove("is-printing-report"),v&&v.insertBefore(l,D),window.removeEventListener("afterprint",K)};window.addEventListener("afterprint",K),window.print()},m=o==="__unknown__",p=He[r],x=Le(jr),k=Le(kr),g=Ee({queryKey:["crm-activity","users"],queryFn:()=>k(),staleTime:6e4}),c=Ee({queryKey:["crm-activity-stats",p.bucket,p.days??null,p.hours??null,p.todayLocal??!1,n,a,o],queryFn:()=>{const l=p.bucket==="hour"?p.todayLocal?Qe():p.hours:void 0;return x({data:{bucket:p.bucket,sinceDays:p.bucket==="hour"?void 0:p.days,sinceHours:l,tzOffsetMinutes:new Date().getTimezoneOffset(),entity:n,action:a,userId:o==="all"||m?null:o}})},refetchInterval:p.bucket==="hour"?6e4:!1}),y=c.data?.totals??{},A=c.data?.distinctTotals??{},j=(l,v)=>y[`${l}.${v}`]??0,C=(n==="all"?ae:[n]).flatMap(l=>{const v=ue[l];return(a==="all"?v:v.includes(a)?[a]:[]).map(K=>({name:`${ne[l]} ${W[K].toLowerCase()}`,count:j(l,K)}))}),w=C.reduce((l,v)=>l+v.count,0),R=["hsl(217 91% 60%)","hsl(142 71% 45%)","hsl(38 92% 50%)","hsl(0 84% 60%)","hsl(280 75% 60%)","hsl(190 85% 50%)","hsl(340 82% 60%)","hsl(50 95% 55%)"],I=(c.data?.users??[]).filter(l=>o==="__unknown__"?!!l.user_id&&!l.email:!0),_=I.filter(l=>l.total>0).map(l=>({name:l.email??(l.user_id?l.user_id:"System"),value:l.total})).sort((l,v)=>v.value-l.value),T=_.reduce((l,v)=>l+v.value,0),P=new Intl.DateTimeFormat("de-DE",{dateStyle:"short",timeStyle:"short"}),G=p.bucket==="hour"?(p.todayLocal?Qe():p.hours??24)*36e5:(p.days??30)*864e5,L=new Date,$=p.todayLocal?new Date(L.getFullYear(),L.getMonth(),L.getDate()):new Date(L.getTime()-G),se=o==="all"?"Alle":o==="__unknown__"?"Unbekannt":(g.data??[]).find(l=>l.user_id===o)?.email??o,le=[["Auswertung",p.label],["Zeitraum",`${P.format($)} – ${P.format(L)}`],["Objekt",n==="all"?"Alle":ne[n]],["Aktion",a==="all"?"Alle":W[a]],["Nutzer",se],["Erstellt am",P.format(L)]];return i.jsxs("div",{ref:f,className:"space-y-6 w-full print-report",children:[i.jsx("style",{children:`
5        @media print {
6          @page {
7            size: A4 portrait;
8            margin: 12mm 10mm 14mm 10mm;
9            @bottom-right {
10              content: "Seite " counter(page) " von " counter(pages);
11              font-family: system-ui, -apple-system, sans-serif;
12              font-size: 8pt;
13              color: #4b5563;
14            }
15          }
16          @page landscape {
17            size: A4 landscape;
18            margin: 10mm 12mm 14mm 12mm;
19            @bottom-right {
20              content: "Seite " counter(page) " von " counter(pages);
21              font-family: system-ui, -apple-system, sans-serif;
22              font-size: 8pt;
23              color: #4b5563;
24            }
25          }
26          .print-report > .print-table-card { page: landscape; break-before: page; }
27          html, body { background: #fff !important; }
28          body.is-printing-report > *:not(.print-report) { display: none !important; }
29          .print-report { max-width: 100% !important; padding: 0 !important; margin: 0 !important; color: #000 !important; }
30          .print-report > * + * { margin-top: 3mm !important; }
31          .print-report .no-print { display: none !important; }
32          .print-report .print-only { display: block !important; }
33          .print-report .rounded-2xl, .print-report .rounded-md { background: #fff !important; border-color: #d1d5db !important; color: #000 !important; box-shadow: none !important; }
34          .print-report .text-muted-foreground { color: #4b5563 !important; }
35          .print-report .bg-card, .print-report .bg-background, .print-report .bg-muted\\/40 { background: #fff !important; }
36          .print-report h1 { font-size: 13pt !important; margin: 0 !important; }
37          .print-report .text-sm { font-size: 7.5pt !important; }
38          .print-report .text-xs, .print-report td, .print-report th { font-size: 6.5pt !important; }
39          .print-report .text-2xl { font-size: 12pt !important; }
40          .print-report .p-4 { padding: 2mm !important; }
41          .print-report .px-4, .print-report .px-3 { padding-left: 1.5mm !important; padding-right: 1.5mm !important; }
42          .print-report .py-2, .print-report .py-3 { padding-top: 1mm !important; padding-bottom: 1mm !important; }
43          .print-report .print-hide { display: none !important; }
44          .print-report .print-charts { break-inside: avoid; page-break-inside: avoid; }
45          .print-report .print-charts {
46            display: grid !important;
47            grid-template-columns: 1fr !important;
48            gap: 3mm !important;
49          }
50          .print-report .print-charts > * { grid-column: auto !important; width: 100% !important; }
51          .print-report .print-charts .print-bar-card .h-72 { height: 80mm !important; }
52          .print-report .print-charts .print-pie-card .h-72 { height: 60mm !important; }
53          .print-report .print-charts .recharts-cartesian-axis-tick text { font-size: 8pt !important; }
54          .print-report .print-charts .recharts-legend-item-text { font-size: 8pt !important; }
55          .print-report table { page-break-inside: auto; }
56          .print-report thead { display: table-header-group; }
57          .print-report tfoot { display: table-footer-group; }
58          .print-report tr { page-break-inside: avoid; }
59          .print-report .print-table-card { break-inside: auto !important; page-break-inside: auto !important; }
60          .print-report .recharts-cartesian-axis-tick text,
61          .print-report .recharts-legend-item-text { fill: #000 !important; color: #000 !important; }
62        }
63        .print-only { display: none; }
64      `}),i.jsxs("div",{className:"print-only rounded-2xl border border-border p-3",children:[i.jsx("div",{className:"text-base font-bold",children:"Nutzer-Aktivität"}),i.jsx("div",{className:"mt-1 grid grid-cols-3 gap-x-4 gap-y-0.5 text-xs",children:le.map(([l,v])=>i.jsxs("div",{children:[i.jsxs("span",{className:"text-muted-foreground",children:[l,": "]}),i.jsx("span",{className:"font-medium",children:v})]},l))})]}),i.jsxs("div",{className:"flex items-center justify-between flex-wrap gap-3 print-hide",children:[i.jsxs("div",{children:[i.jsx("h1",{className:"text-3xl font-bold",children:"Nutzer-Aktivität"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Anzahl angelegter/bearbeiteter Firmen, Kontakte, Leads und Notizen, angelegter/erledigter Terminbuchungen und Tasks sowie gesendeter E-Mails, Sequenz-Starts und angelegter Landingpages pro Nutzer."})]}),i.jsxs("div",{className:"flex items-center gap-2 flex-wrap no-print",children:[i.jsx("select",{value:r,onChange:l=>e(Number(l.target.value)),className:"rounded-md border border-border bg-background px-3 py-2 text-sm",children:He.map((l,v)=>i.jsx("option",{value:v,children:l.label},l.label))}),i.jsxs("select",{value:n,onChange:l=>t(l.target.value),className:"rounded-md border border-border bg-background px-3 py-2 text-sm",children:[i.jsx("option",{value:"all",children:"Alle Objekte"}),ae.map(l=>i.jsx("option",{value:l,children:ne[l]},l))]}),i.jsxs("select",{value:a,onChange:l=>s(l.target.value),className:"rounded-md border border-border bg-background px-3 py-2 text-sm",children:[i.jsx("option",{value:"all",children:"Alle Aktionen"}),_r.map(l=>i.jsx("option",{value:l,children:W[l]},l))]}),i.jsxs("select",{value:o,onChange:l=>d(l.target.value),className:"rounded-md border border-border bg-background px-3 py-2 text-sm",children:[i.jsx("option",{value:"all",children:"Alle Nutzer"}),i.jsx("option",{value:"__unknown__",children:"Unbekannt"}
64),(g.data??[]).map(l=>i.jsx("option",{value:l.user_id,children:l.email??l.user_id},l.user_id))]}),i.jsx("button",{type:"button",onClick:()=>{e(3),t("all"),s("all"),d("all")},className:"rounded-md border border-border bg-background px-3 py-2 text-sm hover:bg-muted",children:"Filter zurücksetzen"}),i.jsx("button",{type:"button",onClick:u,className:"rounded-md border border-border bg-primary text-primary-foreground px-3 py-2 text-sm hover:opacity-90",children:"Als PDF exportieren"})]})]}),i.jsx("div",{className:"grid gap-3 grid-cols-2 md:grid-cols-3 lg:grid-cols-6",children:ae.map(l=>{const[v,D]=ue[l];return i.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4",children:[i.jsx("div",{className:"text-xs uppercase tracking-wide text-muted-foreground",children:ne[l]}),i.jsx("div",{className:"mt-1 text-2xl font-bold tabular-nums",children:A[l]??0}),i.jsxs("div",{className:"mt-1 text-xs text-muted-foreground",children:[j(l,v)," ",W[v].toLowerCase(),D?i.jsxs(i.Fragment,{children:[" · ",j(l,D)," ",W[D].toLowerCase()]}):null]})]},l)})}),i.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4 print-hide",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("div",{className:"text-sm font-medium",children:"Verlauf"}),i.jsxs("div",{className:"text-sm text-muted-foreground",children:["Gesamt: ",i.jsx("span",{className:"font-semibold text-foreground",children:c.data?.total??0})]})]}),i.jsx("div",{className:"h-72 w-full",children:c.isLoading?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Lade…"}):(c.data?.series.length??0)===0?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Keine Aktivität im Zeitraum."}):i.jsx(xe,{width:"100%",height:"100%",children:i.jsxs(Lt,{data:c.data.series,children:[i.jsx($e,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),i.jsx(De,{dataKey:"key",stroke:"#ffffff",tick:{fill:"#ffffff"},fontSize:11}),i.jsx(Ce,{stroke:"#ffffff",tick:{fill:"#ffffff"},fontSize:11,allowDecimals:!1}),i.jsx(Ae,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12}}),i.jsx(Et,{type:"monotone",dataKey:"count",stroke:"var(--primary)",strokeWidth:2,dot:!1})]})})})]}),i.jsxs("div",{className:"grid gap-4 grid-cols-1 lg:grid-cols-4 print-charts",children:[i.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4 lg:col-span-2 print-bar-card",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("div",{className:"text-sm font-medium",children:"Aktionen im Zeitraum"}),i.jsxs("div",{className:"text-sm text-muted-foreground",children:["Gesamt: ",i.jsx("span",{className:"font-semibold text-foreground",children:w})]})]}),i.jsx("div",{className:"h-72 w-full",children:c.isLoading?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Lade…"}):w===0?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Keine Aktionen im Zeitraum."}):i.jsx(xe,{width:"100%",height:"100%",children:i.jsxs(Rt,{data:C,margin:{top:8,right:8,left:0,bottom:24},children:[i.jsx($e,{strokeDasharray:"3 3",stroke:"hsl(var(--border))"}),i.jsx(De,{dataKey:"name",stroke:"#ffffff",tick:{fill:"#ffffff"},fontSize:11,interval:0,angle:-25,textAnchor:"end",height:70}),i.jsx(Ce,{stroke:"#ffffff",tick:{fill:"#ffffff"},fontSize:11,allowDecimals:!1}),i.jsx(Ae,{contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12}}),i.jsx(Nt,{dataKey:"count",fill:"var(--primary)",radius:[6,6,0,0]})]})})})]}),i.jsxs("div",{className:"rounded-2xl border border-border bg-card p-4 lg:col-span-2",children:[i.jsxs("div",{className:"flex items-center justify-between mb-3",children:[i.jsx("div",{className:"text-sm font-medium",children:"Anteil je Nutzer"}),i.jsxs("div",{className:"text-sm text-muted-foreground",children:["Aktionen: ",i.jsx("span",{className:"font-semibold text-foreground",children:T})]})]}),i.jsx("div",{className:"h-72 w-full",children:c.isLoading?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Lade…"}):T===0?i.jsx("div",{className:"h-full flex items-center justify-center text-sm text-muted-foreground",children:"Keine Aktivität im Zeitraum."}):i.jsx(xe,{width:"100%",height:"100%",children:i.jsxs(Ar,{children:[i.jsx(F,{data:_,dataKey:"value",nameKey:"name",cx:"40%",cy:"50%",outerRadius:90,label:l=>`${(l.value/T*100).toFixed(0)}%`,labelLine:!1,children:_.map((l,v)=>i.jsx(ot,{fill:R[v%R.length]},v))}),i.jsx(Ae,{formatter:((l,v)=>[`${l} (${(l/T*100).toFixed(1)}%)`,v]),contentStyle:{background:"hsl(var(--card))",border:"1px solid hsl(var(--border))",borderRadius:8,fontSize:12}}),i.jsx(Tt,{layout:"vertical",align:"right",verticalAlign:"middle",wrapperStyle:{fontSize:11}})]})})})]})]}),i.jsxs("div",{className:"rounded-2xl border border-border bg-card overflow-hidden print-table-card",children:[i.jsxs("div",{className:"px-4 py-3 border-b border-border text-sm font-medium",children:["Pro Nutzer (",I.length,")"]}),c.isLoading?i.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"Lade…"}):I.length===0?i.jsx("div",{className:"p-6 text-sm text-muted-foreground",children:"Keine Aktivität im Zeitraum."}):i.jsx("div",{className:"overflow-x-auto",children:i.jsxs("table",{className:"w-full text-sm",children:[i.jsx("thead",{className:"bg-muted/40 text-left text-xs uppercase tracking-wide text-muted-foreground",children:i.jsxs("tr",{children:[i.jsx("th",{className:"px-4 py-2",children:"Nutzer"}),ae.map(l=>i.jsxs("th",{className:"px-3 py-2 text-right whitespace-nowrap",children:[ne[l],i.jsx("div",{className:"text-[10px] font-normal normal-case text-muted-foreground",children:ue[l].map(v=>W[v].toLowerCase()).join(" / ")})]},l)),i.jsx("th",{className:"px-4 py-2 text-right",children:"Gesamt"})]})}),i.jsx("tbody",{className:"divide-y divide-border",children:I.map(l
64=>i.jsxs("tr",{children:[i.jsxs("td",{className:"px-4 py-2",children:[i.jsx("div",{className:"font-medium",children:l.email??(l.user_id?"Unbekannt":"System")}),l.user_id&&i.jsx("div",{className:"font-mono text-[10px] text-muted-foreground",children:l.user_id})]}),ae.map(v=>{const[D,K]=ue[v],ft=l.by_entity_action[`${v}.${D}`]??0,Te=K?l.by_entity_action[`${v}.${K}`]??0:null;return i.jsxs("td",{className:"px-3 py-2 text-right tabular-nums",children:[i.jsx("span",{className:"text-emerald-500",children:ft}),Te!==null&&i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"text-muted-foreground",children:" / "}),i.jsx("span",{children:Te})]})]},v)}),i.jsx("td",{className:"px-4 py-2 text-right font-semibold tabular-nums",children:l.total})]},l.user_id??"__system__"))})]})})]})]})}export{Lr as component};

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.