vendor: 14,594 bytes, lines 1-2
1/*! For license information please see main.f915832a.js.LICENSE.txt */ 2(()=>{var e={210(e,t,n){var a;!function(){"use strict";var r,i=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,l="[DecimalError] ",c=l+"Invalid argument: ",d=l+"Exponent out of range: ",u=Math.floor,m=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,f=9007199254740991,g=u(1286742750677284.5),x={};function v(e,t){var n,a,r,i,s,l,c,d,u=e.constructor,m=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),o?E(t,m):t;if(c=e.d,d=t.d,s=e.e,r=t.e,c=c.slice(),i=s-r){for(i<0?(a=c,i=-i,l=d.length):(a=d,r=s,l=c.length),i>(l=(s=Math.ceil(m/7))>l?s+1:l+1)&&(i=l,a.length=1),a.reverse();i--;)a.push(0);a.reverse()}for((l=c.length)-(i=d.length)<0&&(i=l,a=d,d=c,c=a),n=0;i;)n=(c[--i]=c[i]+d[i]+n)/h|0,c[i]%=h;for(n&&(c.unshift(n),++r),l=c.length;0==c[--l];)c.pop();return t.d=c,t.e=r,o?E(t,m):t}function b(e,t,n){if(e!==~~e||e<t||e>n)throw Error(c+e)}function y(e){var t,n,a,r=e.length-1,i="",s=e[0];if(r>0){for(i+=s,t=1;t<r;t++)(n=7-(a=e[t]+"").length)&&(i+=S(n)),i+=a;(n=7-(a=(s=e[t])+"").length)&&(i+=S(n))}else if(0===s)return"0";for(;s%10===0;)s/=10;return i+s}x.absoluteValue=x.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},x.comparedTo=x.cmp=function(e){var t,n,a,r,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(a=i.d.length)<(r=e.d.length)?a:r;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return a===r?0:a>r^i.s<0?1:-1},x.decimalPlaces=x.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},x.dividedBy=x.div=function(e){return w(this,new this.constructor(e))},x.dividedToIntegerBy=x.idiv=function(e){var t=this.constructor;return E(w(this,new t(e),0,1),t.precision)},x.equals=x.eq=function(e){return!this.cmp(e)},x.exponent=function(){return k(this)},x.greaterThan=x.gt=function(e){return this.cmp(e)>0},x.greaterThanOrEqualTo=x.gte=function(e){return this.cmp(e)>=0},x.isInteger=x.isint=function(){return this.e>this.d.length-2},x.isNegative=x.isneg=function(){return this.s<0},x.isPositive=x.ispos=function(){return this.s>0},x.isZero=function(){return 0===this.s},x.lessThan=x.lt=function(e){return this.cmp(e)<0},x.lessThanOrEqualTo=x.lte=function(e){return this.cmp(e)<1},x.logarithm=x.log=function(e){var t,n=this,a=n.constructor,i=a.precision,s=i+5;if(void 0===e)e=new a(10);else if((e=new a(e)).s<1||e.eq(r))throw Error(l+"NaN");if(n.s<1)throw Error(l+(n.s?"NaN":"-Infinity"));return n.eq(r)?new a(0):(o=!1,t=w(_(n,s),_(e,s),s),o=!0,E(t,i))},x.minus=x.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C(t,e):v(t,(e.s=-e.s,e))},x.modulo=x.mod=function(e){var t,n=this,a=n.constructor,r=a.precision;if(!(e=new a(e)).s)throw Error(l+"NaN");return n.s?(o=!1,t=w(n,e,0,1).times(e),o=!0,n.minus(t)):E(new a(n),r)},x.naturalExponential=x.exp=function(){return j(this)},x.naturalLogarithm=x.ln=function(){return _(this)},x.negated=x.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},x.plus=x.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):C(t,(e.s=-e.s,e))},x.precision=x.sd=function(e){var t,n,a,r=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(t=k(r)+1,n=7*(a=r.d.length-1)+1,a=r.d[a]){for(;a%10==0;a/=10)n--;for(a=r.d[0];a>=10;a/=10)n++}return e&&t>n?t:n},x.squareRoot=x.sqrt=function(){var e,t,n,a,r,i,s,c=this,d=c.constructor;if(c.s<1){if(!c.s)return new d(0);throw Error(l+"NaN")}for(e=k(c),o=!1,0==(r=Math.sqrt(+c))||r==1/0?(((t=y(c.d)).length+e)%2==0&&(t+="0"),r=Math.sqrt(t),e=u((e+1)/2)-(e<0||e%2),a=new d(t=r==1/0?"5e"+e:(t=r.toExponential()).slice(0,t.indexOf("e")+1)+e)):a=new d(r.toString()),r=s=(n=d.precision)+3;;)if(a=(i=a).plus(w(c,i,s+2)).times(.5),y(i.d).slice(0,s)===(t=y(a.d)).slice(0,s)){if(t=t.slice(s-3,s+1),r==s&&"4999"==t){if(E(i,n+1,0),i.times(i).eq(c)){a=i;break}}else if("9999"!=t)break;s+=4}return o=!0,E(a,n)},x.times=x.mul=function(e){var t,n,a,r,i,s,l,c,d,u=this,m=u.constructor,p=u.d,f=(e=new m(e)).d;if(!u.s||!e.s)return new m(0);for(e.s*=u.s,n=u.e+e.e,(c=p.length)<(d=f.length)&&(i=p,p=f,f=i,s=c,c=d,d=s),i=[],a=s=c+d;a--;)i.push(0);for(a=d;--a>=0;){for(t=0,r=c+a;r>a;)l=i[r]+f[a]*p[r-a-1]+t,i[r--]=l%h|0,t=l/h|0;i[r]=(i[r]+t)%h|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,o?E(e,m.precision):e},x.toDecimalPlaces=x.todp=function(e,t){var n=this,a=n.constructor;return n=new a(n),void 0===e?n:(b(e,0,i),void 0===t?t=a.rounding:b(t,0,8),E(n,e+k(n)+1,t))},x.toExponential=function(e,t){var n,a=this,r=a.constructor;return void 0===e?n=P(a,!0):(b(e,0,i),void 0===t?t=r.rounding:b(t,0,8),n=P(a=E(new r(a),e+1,t),!0,e+1)),n},x.toFixed=function(e,t){var n,a,r=this,s=r.constructor;return void 0===e?P(r):(b(e,0,i),void 0===t?t=s.rounding:b(t,0,8),n=P((a=E(new s(r),e+k(r)+1,t)).abs(),!1,e+k(a)+1),r.isneg()&&!r.isZero()?"-"+n:n)},x.toInteger=x.toint=function(){var e=this,t=e.constructor;return E(new t(e),k(e)+1,t.rounding)},x.toNumber=function(){return+this},x.toPower=x.pow=function(e){var t,n,a,i,s,c,d=this,m=d.constructor,p=+(e=new m(e));if(!e.s)return new m(r);if(!(d=new m(d)).s){if(e.s<1)throw Error(l+"Infinity");return d}if(d.eq(r))return d;if(a=m.precision,e.eq(r))return E(d,a);if(c=(t=e.e)>=(n=e.d.length-1),s=d.s,c){if((n=p<0?-p:p)<=f){for(i=new m(r),t=Math.ceil(a/7+4),o=!1;n%2&&A((i=i.times(d)).d,t),0!==(n=u(n/2));)A((d=d.times(d)).d,t);return o=!0,e.s<0?new m(r).div(i):E(i,a)}}else if(s<0)throw Error(l+"NaN");return s=s<0&&1&e.d[Math.max(t,n)]?-1:1,d.s=1,o=!1,i=e.times(_(d,a+12)),o=!0,(i=j(i)).s=s,i},x.toPrecision=function(e,t){var n,a,r=this,s=r.constructor;return void 0===e?a=P(r,(n=k(r))<=s.toExpNeg||n>=s.toExpPos):(b(e,1,i),void 0===t?t=s.rounding:b(t,0,8),a=P(r=E(new s(r),e,t),e<=(n=k(r))||n<=s.toExpNeg,e)),a},x.toSignificantDigits=x.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(b(e,1,i),void 0===t?t=n.rounding:b(t,0,8)),E(new n(this),e,t)},x.toString=x.valueOf=x.val=x.toJSON=function(){var e=this,t=k(e),n=e.constructor;return P(e,t<=n.toExpNeg||t>=n.toExpPos)};var w=function(){function e(e,t){var n,a=0,r=e.length;for(e=e.slice();r--;)n=e[r]*t+a,e[r]=n%h|0,a=n/h|0;return a&&e.unshift(a),e}function t(e,t,n,a){var r,i;if(n!=a)i=n>a?1:-1;else for(r=i=0;r<n;r++)if(e[r]!=t[r]){i=e[r]>t[r]?1:-1;break}return i}function n(e,t,n){for(var a=0;n--;)e[n]-=a,a=e[n]<t[n]?1:0,e[n]=a*h+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(a,r,i,s){var o,c,d,u,m,p,f,g,x,v,b,y,w,j,N,S,_,z,C=a.constructor,P=a.s==r.s?1:-1,A=a.d,T=r.d;if(!a.s)return new C(a);if(!r.s)throw Error(l+"Division by zero");for(c=a.e-r.e,_=T.length,N=A.length,g=(f=new C(P)).d=[],d=0;T[d]==(A[d]||0);)++d;if(T[d]>(A[d]||0)&&--c,(y=null==i?i=C.precision:s?i+(k(a)-k(r))+1:i)<0)return new C(0);if(y=y/7+2|0,d=0,1==_)for(u=0,T=T[0],y++;(d<N||u)&&y--;d++)w=u*h+(A[d]||0),g[d]=w/T|0,u=w%T|0;else{for((u=h/(T[0]+1)|0)>1&&(T=e(T,u),A=e(A,u),_=T.length,N=A.length),j=_,v=(x=A.slice(0,_)).length;v<_;)x[v++]=0;(z=T.slice()).unshift(0),S=T[0],T[1]>=h/2&&++S;do{u=0,(o=t(T,x,_,v))<0?(b=x[0],_!=v&&(b=b*h+(x[1]||0)),(u=b/S|0)>1?(u>=h&&(u=h-1),1==(o=t(m=e(T,u),x,p=m.length,v=x.length))&&(u--,n(m,_<p?z:T,p))):(0==u&&(o=u=1),m=T.slice()),(p=m.length)<v&&m.unshift(0),n(x,m,v),-1==o&&(o=t(T,x,_,v=x.length))<1&&(u++,n(x,_<v?z:T,v)),v=x.length):0===o&&(u++,x=[0]),g[d++]=u,o&&x[0]?x[v++]=A[j]||0:(x=[A[j]],v=1)}while((j++<N||void 0!==x[0])&&y--)}return g[0]||g.shift(),f.e=c,E(f,s?i+k(f)+1:i)}}();function j(e,t){var n,a,i,s,l,c=0,u=0,p=e.constructor,h=p.precision;if(k(e)>16)throw Error(d+k(e));if(!e.s)return new p(r);for(null==t?(o=!1,l=h):l=t,s=new p(.03125);e.abs().gte(.1);)e=e.times(s),u+=5;for(l+=Math.log(m(2,u))/Math.LN10*2+5|0,n=a=i=new p(r),p.precision=l;;){if(a=E(a.times(e),l),n=n.times(++c),y((s=i.plus(w(a,n,l))).d).slice(0,l)===y(i.d).slice(0,l)){for(;u--;)i=E(i.times(i),l);return p.precision=h,null==t?(o=!0,E(i,h)):i}i=s}}function k(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function N(e,t,n){if(t>e.LN10.sd())throw o=!0,n&&(e.precision=n),Error(l+"LN10 precision limit exceeded");return E(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function _(e,t){var n,a,i,s,c,d,u,m,p,h=1,f=e,g=f.d,x=f.constructor,v=x.precision;if(f.s<1)throw Error(l+(f.s?"NaN":"-Infinity"));if(f.eq(r))return new x(0);if(null==t?(o=!1,m=v):m=t,f.eq(10))return null==t&&(o=!0),N(x,m);if(m+=10,x.precision=m,a=(n=y(g)).charAt(0),s=k(f),!(Math.abs(s)<15e14))return u=N(x,m+2,v).times(s+""),f=_(new x(a+"."+n.slice(1)),m-10).plus(u),x.precision=v,null==t?(o=!0,E(f,v)):f;for(;a<7&&1!=a||1==a&&n.charAt(1)>3;)a=(n=y((f=f.times(e)).d)).charAt(0),h++;for(s=k(f),a>1?(f=new x("0."+n),s++):f=new x(a+"."+n.slice(1)),d=c=f=w(f.minus(r),f.plus(r),m),p=E(f.times(f),m),i=3;;){if(c=E(c.times(p),m),y((u=d.plus(w(c,new x(i),m))).d).slice(0,m)===y(d.d).slice(0,m))return d=d.times(2),0!==s&&(d=d.plus(N(x,m+2,v).times(s+""))),d=w(d,new x(h),m),x.precision=v,null==t?(o=!0,E(d,v)):d;d=u,i+=2}}function z(e,t){var n,a,r;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(a=t.search(/e/i))>0?(n<0&&(n=a),n+=+t.slice(a+1),t=t.substring(0,a)):n<0&&(n=t.length),a=0;48===t.charCodeAt(a);)++a;for(r=t.length;48===t.charCodeAt(r-1);)--r;if(t=t.slice(a,r)){if(r-=a,n=n-a-1,e.e=u(n/7),e.d=[],a=(n+1)%7,n<0&&(a+=7),a<r){for(a&&e.d.push(+t.slice(0,a)),r-=7;a<r;)e.d.push(+t.slice(a,a+=7));a=7-(t=t.slice(a)).length}else a-=r;for(;a--;)t+="0";if(e.d.push(+t),o&&(e.e>g||e.e<-g))throw Error(d+n)}else e.s=0,e.e=0,e.d=[0];return e}function E(e,t,n){var a,r,i,s,l,c,p,f,x=e.d;for(s=1,i=x[0];i>=10;i/=10)s++;if((a=t-s)<0)a+=7,r=t,p=x[f=0];else{if((f=Math.ceil((a+1)/7))>=(i=x.length))return e;for(p=i=x[f],s=1;i>=10;i/=10)s++;r=(a%=7)-7+s}if(void 0!==n&&(l=p/(i=m(10,s-r-1))%10|0,c=t<0||void 0!==x[f+1]||p%i,c=n<4?(l||c)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||c||6==n&&(a>0?r>0?p/m(10,s-r):0:x[f-1])%10&1||n==(e.s<0?8:7))),t<1||!x[0])return c?(i=k(e),x.length=1,t=t-i-1,x[0]=m(10,(7-t%7)%7),e.e=u(-t/7)||0):(x.length=1,x[0]=e.e=e.s=0),e;if(0==a?(x.length=f,i=1,f--):(x.length=f+1,i=m(10,7-a),x[f]=r>0?(p/m(10,s-r)%m(10,r)|0)*i:0),c)for(;;){if(0==f){(x[0]+=i)==h&&(x[0]=1,++e.e);break}if(x[f]+=i,x[f]!=h)break;x[f--]=0,i=1}for(a=x.length;0===x[--a];)x.pop();if(o&&(e.e>g||e.e<-g))throw Error(d+k(e));return e}function C(e,t){var n,a,r,i,s,l,c,d,u,m,p=e.constructor,f=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),o?E(t,f):t;if(c=e.d,m=t.d,a=t.e,d=e.e,c=c.slice(),s=d-a){for((u=s<0)?(n=c,s=-s,l=m.length):(n=m,a=d,l=c.length),s>(r=Math.max(Math.ceil(f/7),l)+2)&&(s=r,n.length=1),n.reverse(),r=s;r--;)n.push(0);n.reverse()}else{for((u=(r=c.length)<(l=m.length))&&(l=r),r=0;r<l;r++)if(c[r]!=m[r]){u=c[r]<m[r];break}s=0}for(u&&(n=c,c=m,m=n,t.s=-t.s),l=c.length,r=m.length-l;r>0;--r)c[l++]=0;for(r=m.length;r>s;){if(c[--r]<m[r]){for(i=r;i&&0===c[--i];)c[i]=h-1;--c[i],c[r]+=h}c[r]-=m[r]}for(;0===c[--l];)c.pop();for(;0===c[0];c.shift())--a;return c[0]?(t.d=c,t.e=a,o?E(t,f):t):new p(0)}function P(e,t,n){var a,r=k(e),i=y(e.d),s=i.length;return t?(n&&(a=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+S(a):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(r<0?"e":"e+")+r):r<0?(i="0."+S(-r-1)+i,n&&(a=n-s)>0&&(i+=S(a))):r>=s?(i+=S(r+1-s),n&&(a=n-r-1)>0&&(i=i+"."+S(a))):((a=r+1)<s&&(i=i.slice(0,a)+"."+i.slice(a)),n&&(a=n-s)>0&&(r+1===s&&(i+="."),i+=S(a))),e.s<0?"-"+i:i}function A(e,t){if(e.length>t)return e.length=t,!0}function T(e){if(!e||"object"!==typeof e)throw Error(l+"Object expected");var t,n,a,r=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<r.length;t+=3)if(void 0!==(a=e[n=r[t]])){if(!(u(a)===a&&a>=r[t+1]&&a<=r[t+2]))throw Error(c+n+": "+a);this[n]=a}if(void 0!==(a=e[n="LN10"])){if(a!=Math.LN10)throw Error(c+n+": "+a);this[n]=new this(a)}return this}s=function e(t){var n,a,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(c+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):z(t,e.toString())}if("string"!==typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(c+e);z(t,e)}if(i.prototype=x,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=T,void 0===t&&(t={}),t)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<r.length;)t.hasOwnProperty(a=r[n++])||(t[a]=this[a]);return i.config(t),i}(s),s.default=s.Decimal=s,r=new s(1),void 0===(a=function(){return s}.call(t,n,t,e))||(e.exports=a)}()},283(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,s){if("function"!==typeof a)throw new TypeError("The listener must be a function");var o=new r(a,i||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0===--e._eventsCount?e._events=new a:delete e._events[t]}function o(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,s=new Array(i);r<i;r++)s[r]=a[r].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,a=this._events[t];return a?a.fn?1:a.length:0},o.prototype.emit=function(e,t,a,r,i,s){var o=n?n+e:e;if(!this._events[o])return!1;var l,c,d=this._events[o],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,a),!0;case 4:return d.fn.call(d.context,t,a,r),!0;case 5:return d.fn.call(d.context,t,a,r,i),!0;case 6:return d.fn.call(d.context,t,a,r,i,s),!0}for(c=1,l=new Array(u-1);c<u;c++)l[c-1]=arguments[c];d.fn.apply(d.context,l)}else{var m,p=d.length;for(c=0;c<p;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].c
2ontext);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,a);break;case 4:d[c].fn.call(d[c].context,t,a,r);break;default:if(!l)for(m=1,l=new Array(u-1);m<u;m++)l[m-1]=arguments[m];d[c].fn.apply(d[c].context,l)}}return!0},o.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,a,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||r&&!o.once||a&&o.context!==a||s(this,i);else{for(var l=0,c=[],d=o.length;l<d;l++)(o[l].fn!==t||r&&!o[l].once||a&&o[l].context!==a)&&c.push(o[l]);c.length?this._events[i]=1===c.length?c[0]:c:s(this,i)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new a,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},4(e,t,n){"use strict";var a=n(853),r=n(43),i=n(950);function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),p=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),f=Symbol.for("react.consumer"),g=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),w=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var j=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var k=Symbol.for("react.memo_cache_sentinel"),N=Symbol.iterator;function S(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var _=Symbol.for("react.client.reference");function z(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===_?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case u:return"Fragment";case d:return"Portal";case p:return"Profiler";case m:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case g:return(e.displayName||"Context")+".Provider";case f:return(e._context.displayName||"Context")+".Consumer";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case y:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case w:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}var E,C,P=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.assign;function T(e){if(void 0===E)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);E=t&&t[1]||"",C=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+E+e+C}var R=!1;function O(e,t){if(!e||R)return"";R=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(r){var a=r}Reflect.construct(e,[],n)}
vendor: 5,106 bytes, line 2
2else{try{n.call()}catch(i){a=i}e.call(n.prototype)}}else{try{throw Error()}catch(s){a=s}(n=e())&&"function"===typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&a&&"string"===typeof o.stack)return[o.stack,a.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],o=i[1];if(s&&o){var l=s.split("\n"),c=o.split("\n");for(r=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;r<c.length&&!c[r].includes("DetermineComponentFrameRoot");)r++;if(a===l.length||r===c.length)for(a=l.length-1,r=c.length-1;1<=a&&0<=r&&l[a]!==c[r];)r--;for(;1<=a&&0<=r;a--,r--)if(l[a]!==c[r]){if(1!==a||1!==r)do{if(a--,0>--r||l[a]!==c[r]){var d="\n"+l[a].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}}while(1<=a&&0<=r);break}}}finally{R=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?T(n):""}function D(e){switch(e.tag){case 26:case 27:case 5:return T(e.type);case 16:return T("Lazy");case 13:return T("Suspense");case 19:return T("SuspenseList");case 0:case 15:return e=O(e.type,!1);case 11:return e=O(e.type.render,!1);case 1:return e=O(e.type,!0);default:return""}}function M(e){try{var t="";do{t+=D(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function I(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function F(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function L(e){if(I(e)!==e)throw Error(s(188))}function B(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=B(e)))return t;e=e.sibling}return null}var q=Array.isArray,U=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},H=[],W=-1;function K(e){return{current:e}}function G(e){0>W||(e.current=H[W],H[W]=null,W--)}function Z(e,t){W++,H[W]=e.current,e.current=t}var Y=K(null),Q=K(null),$=K(null),X=K(null);function J(e,t){switch(Z($,t),Z(Q,e),Z(Y,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Qd(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=$d(e=Qd(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}G(Y),Z(Y,t)}function ee(){G(Y),G(Q),G($)}function te(e){null!==e.memoizedState&&Z(X,e);var t=Y.current,n=$d(t,e.type);t!==n&&(Z(Q,e),Z(Y,n))}function ne(e){Q.current===e&&(G(Y),G(Q)),X.current===e&&(G(X),Mu._currentValue=V)}var ae=Object.prototype.hasOwnProperty,re=a.unstable_scheduleCallback,ie=a.unstable_cancelCallback,se=a.unstable_shouldYield,oe=a.unstable_requestPaint,le=a.unstable_now,ce=a.unstable_getCurrentPriorityLevel,de=a.unstable_ImmediatePriority,ue=a.unstable_UserBlockingPriority,me=a.unstable_NormalPriority,pe=a.unstable_LowPriority,he=a.unstable_IdlePriority,fe=a.log,ge=a.unstable_setDisableYieldValue,xe=null,ve=null;function be(e){if("function"===typeof fe&&ge(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(xe,e)}catch(t){}}var ye=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(we(e)/je|0)|0},we=Math.log,je=Math.LN2;var ke=128,Ne=4194304;function Se(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t){var n=e.pendingLanes;if(0===n)return 0;var a=0,r=e.suspendedLanes,i=e.pingedLanes,s=e.warmLanes;e=0!==e.finishedLanes;var o=134217727&n;return 0!==o?0!==(n=o&~r)?a=Se(n):0!==(i&=o)?a=Se(i):e||0!==(s=o&~s)&&(a=Se(s)):0!==(o=n&~r)?a=Se(o):0!==i?a=Se(i):e||0!==(s=n&~s)&&(a=Se(s)),0===a?0:0!==t&&t!==a&&0===(t&r)&&((r=a&-a)>=(s=t&-t)||32===r&&0!==(4194176&s))?t:a}function ze(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ee(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ce(){var e=ke;return 0===(4194176&(ke<<=1))&&(ke=128),e}function Pe(){var e=Ne;return 0===(62914560&(Ne<<=1))&&(Ne=4194304),e}function Ae(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
2function Te(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Re(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-ye(t);e.entangledLanes|=t,e.entanglements[a]=1073741824|e.entanglements[a]|4194218&n}function Oe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-ye(n),r=1<<a;r&t|e[a]&t&&(e[a]|=t),n&=~r}}function De(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Me(){var e=U.p;return 0!==e?e:void 0===(e=window.event)?32:$u(e.type)}var Ie=Math.random().toString(36).slice(2),Fe="__reactFiber$"+Ie,Le="__reactProps$"+Ie,Be="__reactContainer$"+Ie,qe="__reactEvents$"+Ie,Ue="__reactListeners$"+Ie,Ve="__reactHandles$"+Ie,He="__reactResources$"+Ie,We="__reactMarker$"+Ie;function Ke(e){delete e[Fe],delete e[Le],delete e[qe],delete e[Ue],delete e[Ve]}function Ge(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Be]||n[Fe]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lu(e);null!==e;){if(n=e[Fe])return n;e=lu(e)}return t}n=(e=n).parentNode}return null}function Ze(e){if(e=e[Fe]||e[Be]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Ye(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(s(33))}function Qe(e){var t=e[He];return t||(t=e[He]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[We]=!0}var Xe=new Set,Je={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Je[e]=t,e=0;e<t.length;e++)Xe.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),at=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),rt={},it={};function st(e,t,n){if(r=t,ae.call(it,r)||!ae.call(rt,r)&&(at.test(r)?it[r]=!0:(rt[r]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var a=t.toLowerCase().slice(0,5);if("data-"!==a&&"aria-"!==a)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var r}function ot(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,a){if(null===a)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+a)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function dt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ut(e){e._valueTracker||(e._valueTracker=function(e){var t=dt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var r=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(e){a=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function mt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=dt(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function pt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var ht=/[\n"\\]/g;function ft(e){return e.replace(ht,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function gt(e,t,n,a,r,i,s,o){e.name="",null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.type=s:e.removeAttribute("type"),null!=t?"number"===s?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==s&&"reset"!==s||e.removeAttribute("value"),null!=t?vt(e,s,ct(t)):null!=n?vt(e,s,ct(n)):null!=a&&e.removeAttribute("value"),null==r&&null!=i&&(e.defaultChecked=!!i),null!=r&&(e.checked=r&&"function"!==typeof r&&"symbol"!==typeof r),null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.name=""+ct(o):e.removeAttribute("name")}function xt(e,t,n,a,r,i,s,o){if(null!=i&&"function"!==typeof i&&"symbol"!==typeof i&&"boolean"!==typeof i&&(e.type=i),null!=t||null!=n){if(!("submit"!==i&&"reset"!==i||void 0!==t&&null!==t))return;n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}a="function"!==typeof(a=null!=a?a:r)&&"symbol"!==typeof a&&!!a,e.checked=o?e.checked:!!a,e.defaultChecked=!!a,null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.name=s)}function vt(e,t,n){"number"===t&&pt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(e,t,n,a){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&a&&(e[n].defaultSelected=!0)}else{for(n=""+ct(n),t=null,r=0;r<e.length;r++){if(e[r].value===n)return e[r].selected=!0,void(a&&(e[r].defaultSelected=!0));null!==t||e[r].disabled||(t=e[r])}null!==t&&(t.selected=!0)}}function yt(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}
vendor: 4,415 bytes, line 2
2function wt(e,t,n,a){if(null==t){if(null!=a){if(null!=n)throw Error(s(92));if(q(a)){if(1<a.length)throw Error(s(93));a=a[0]}n=a}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(a=e.textContent)===n&&""!==a&&null!==a&&(e.value=a)}function jt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var kt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Nt(e,t,n){var a=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?a?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":a?e.setProperty(t,n):"number"!==typeof n||0===n||kt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(s(62));if(e=e.style,null!=n){for(var a in n)!n.hasOwnProperty(a)||null!=t&&t.hasOwnProperty(a)||(0===a.indexOf("--")?e.setProperty(a,""):"float"===a?e.cssFloat="":e[a]="");for(var r in t)a=t[r],t.hasOwnProperty(r)&&n[r]!==a&&Nt(e,r,a)}else for(var i in t)t.hasOwnProperty(i)&&Nt(e,i,t[i])}function _t(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Et=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Ct(e){return Et.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function At(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Tt=null,Rt=null;function Ot(e){var t=Ze(e);if(t&&(e=t.stateNode)){var n=e[Le]||null;e:switch(e=t.stateNode,t.type){case"input":if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ft(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var r=a[Le]||null;if(!r)throw Error(s(90));gt(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)(a=n[t]).form===e.form&&mt(a)}break e;case"textarea":yt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Dt=!1;function Mt(e,t,n){if(Dt)return e(t,n);Dt=!0;try{return e(t)}finally{if(Dt=!1,(null!==Tt||null!==Rt)&&(Fc(),Tt&&(t=Tt,e=Rt,Rt=Tt=null,Ot(t),e)))for(t=0;t<e.length;t++)Ot(e[t])}}function It(e,t){var n=e.stateNode;if(null===n)return null;var a=n[Le]||null;if(null===a)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(a=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!a;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(s(231,t,typeof n));return n}var Ft=!1;if(nt)try{var Lt={};Object.defineProperty(Lt,"passive",{get:function(){Ft=!0}}),window.addEventListener("test",Lt,Lt),window.removeEventListener("test",Lt,Lt)}catch(wm){Ft=!1}var Bt=null,qt=null,Ut=null;function Vt(){if(Ut)return Ut;var e,t,n=qt,a=n.length,r="value"in Bt?Bt.value:Bt.textContent,i=r.length;for(e=0;e<a&&n[e]===r[e];e++);var s=a-e;for(t=1;t<=s&&n[a-t]===r[i-t];t++);return Ut=r.slice(e,1<t?1-t:void 0)}function Ht(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Wt(){return!0}function Kt(){return!1}function Gt(e){function t(t,n,a,r,i){for(var s in this._reactName=t,this._targetInst=a,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(s)&&(t=e[s],this[s]=t?t(r):r[s]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Wt:Kt,this.isPropagationStopped=Kt,this}return A(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Wt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Wt)},persist:function(){},isPersistent:Wt}),t}var Zt,Yt,Qt,$t={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xt=Gt($t),Jt=A({},$t,{view:0,detail:0}),en=Gt(Jt),tn=A({},Jt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Qt&&(Qt&&"mousemove"===e.type?(Zt=e.screenX-Qt.screenX,Yt=e.screenY-Qt.screenY):Yt=Zt=0,Qt=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Yt}}),nn=Gt(tn),an=Gt(A({},tn,{dataTransfer:0})),rn=Gt(A({},Jt,{relatedTarget:0})),sn=Gt(A({},$t,{animationName:0,elapsedTime:0,pseudoElement:0})),on=Gt(A({},$t,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Gt(A({},$t,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},un={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=un[e])&&!!t[e]}function pn(){return mn}var hn=Gt(A({},Jt,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Ht(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?dn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pn,charCode:function(e){return"keypress"===e.type?Ht(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Ht(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),fn=Gt(A({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=Gt(A({},Jt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pn})),xn=Gt(A({},$t,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Gt(A({},tn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),bn=Gt(A({},$t,{newState:0,oldState:0})),yn=[9,13,27,32],wn=nt&&"CompositionEvent"in window,jn=null;nt&&"documentMode"in document&&(jn=document.documentMode);var kn=nt&&"TextEvent"in window&&!jn,Nn=nt&&(!wn||jn&&8<jn&&11>=jn),Sn=String.fromCharCode(32),_n=!1;function zn(e,t){switch(e){case"keyup":return-1!==yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function En(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Cn=!1;var Pn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function An(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pn[e.type]:"textarea"===t}function Tn(e,t,n,a){Tt?Rt?Rt.push(a):Rt=[a]:Tt=a,0<(t=Md(t,"onChange")).length&&(n=new Xt("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Rn=null,On=null;function Dn(e){Ed(e,0)}function Mn(e){if(mt(Ye(e)))return e}function In(e,t){if("change"===e)return t}var Fn=!1;if(nt){var Ln;if(nt){var Bn="oninput"in document;if(!Bn){var qn=document.createElement("div");qn.setAttribute("oninput","return;"),Bn="function"===typeof qn.oninput}Ln=Bn}else Ln=!1;Fn=Ln&&(!document.documentMode||9<document.documentMode)}function Un(){Rn&&(Rn.detachEvent("onpropertychange",Vn),On=Rn=null)}function Vn(e){if("value"===e.propertyName&&Mn(On)){var t=[];Tn(t,On,e,At(e)),Mt(Dn,t)}}function Hn(e,t,n){"focusin"===e?(Un(),On=n,(Rn=t).attachEvent("onpropertychange",Vn)):"focusout"===e&&Un()}function Wn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Mn(On)}function Kn(e,t){if("click"===e)return Mn(t)}function Gn(e,t){if("input"===e||"change"===e)return Mn(t)}var Zn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Yn(e,t){if(Zn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var r=n[a];if(!ae.call(t,r)||!Zn(e[r],t[r]))return!1}return!0}function Qn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $n(e,t){var n,a=Qn(e);for(e=0;a;){if(3===a.nodeType){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Qn(a)}}function Xn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Xn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Jn(e){for(var t=pt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(a){n=!1}if(!n)break;t=pt((e=t.contentWindow).document)}return t}function ea(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ta(e,t){var n=Jn(t);t=e.focusedElem;var a=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Xn(t.ownerDocument.documentElement,t)){if(null!==a&&ea(t))if(e=a.start,void 0===(n=a.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var r=t.textContent.length,i=Math.min(a.start,r);a=void 0===a.end?i:Math.min(a.end,r),!n.extend&&i>a&&(r=a,a=i,i=r),r=$n(t,i);var s=$n(t,a);r&&s&&(1!==n.rangeCount||n.anchorNode!==r.node||n.anchorOffset!==r.offset||n.focusNode!==s.node||n.focusOffset!==s.offset)&&((e=e.createRange()).setStart(r.node,r.offset),n.removeAllRanges(),i>a?(n.addRange(e),n.extend(s.node,s.offset)):(e.setEnd(s.node,s.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});
vendor: 5,735 bytes, line 2
2for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var na=nt&&"documentMode"in document&&11>=document.documentMode,aa=null,ra=null,ia=null,sa=!1;function oa(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;sa||null==aa||aa!==pt(a)||("selectionStart"in(a=aa)&&ea(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},ia&&Yn(ia,a)||(ia=a,0<(a=Md(ra,"onSelect")).length&&(t=new Xt("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=aa)))}function la(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ca={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionrun:la("Transition","TransitionRun"),transitionstart:la("Transition","TransitionStart"),transitioncancel:la("Transition","TransitionCancel"),transitionend:la("Transition","TransitionEnd")},da={},ua={};function ma(e){if(da[e])return da[e];if(!ca[e])return e;var t,n=ca[e];for(t in n)if(n.hasOwnProperty(t)&&t in ua)return da[e]=n[t];return e}nt&&(ua=document.createElement("div").style,"AnimationEvent"in window||(delete ca.animationend.animation,delete ca.animationiteration.animation,delete ca.animationstart.animation),"TransitionEvent"in window||delete ca.transitionend.transition);var pa=ma("animationend"),ha=ma("animationiteration"),fa=ma("animationstart"),ga=ma("transitionrun"),xa=ma("transitionstart"),va=ma("transitioncancel"),ba=ma("transitionend"),ya=new Map,wa="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function ja(e,t){ya.set(e,t),et(t,[e])}var ka=[],Na=0,Sa=0;function _a(){for(var e=Na,t=Sa=Na=0;t<e;){var n=ka[t];ka[t++]=null;var a=ka[t];ka[t++]=null;var r=ka[t];ka[t++]=null;var i=ka[t];if(ka[t++]=null,null!==a&&null!==r){var s=a.pending;null===s?r.next=r:(r.next=s.next,s.next=r),a.pending=r}0!==i&&Pa(n,r,i)}}function za(e,t,n,a){ka[Na++]=e,ka[Na++]=t,ka[Na++]=n,ka[Na++]=a,Sa|=a,e.lanes|=a,null!==(e=e.alternate)&&(e.lanes|=a)}function Ea(e,t,n,a){return za(e,t,n,a),Aa(e)}function Ca(e,t){return za(e,null,null,t),Aa(e)}function Pa(e,t,n){e.lanes|=n;var a=e.alternate;null!==a&&(a.lanes|=n);for(var r=!1,i=e.return;null!==i;)i.childLanes|=n,null!==(a=i.alternate)&&(a.childLanes|=n),22===i.tag&&(null===(e=i.stateNode)||1&e._visibility||(r=!0)),e=i,i=i.return;r&&null!==t&&3===e.tag&&(i=e.stateNode,r=31-ye(n),null===(e=(i=i.hiddenUpdates)[r])?i[r]=[t]:e.push(t),t.lane=536870912|n)}function Aa(e){if(50<Ec)throw Ec=0,Cc=null,Error(s(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Ta={},Ra=new WeakMap;function Oa(e,t){if("object"===typeof e&&null!==e){var n=Ra.get(e);return void 0!==n?n:(t={value:e,source:t,stack:M(t)},Ra.set(e,t),t)}return{value:e,source:t,stack:M(t)}}var Da=[],Ma=0,Ia=null,Fa=0,La=[],Ba=0,qa=null,Ua=1,Va="";function Ha(e,t){Da[Ma++]=Fa,Da[Ma++]=Ia,Ia=e,Fa=t}function Wa(e,t,n){La[Ba++]=Ua,La[Ba++]=Va,La[Ba++]=qa,qa=e;var a=Ua;e=Va;var r=32-ye(a)-1;a&=~(1<<r),n+=1;var i=32-ye(t)+r;if(30<i){var s=r-r%5;i=(a&(1<<s)-1).toString(32),a>>=s,r-=s,Ua=1<<32-ye(t)+r|n<<r|a,Va=i+e}else Ua=1<<i|n<<r|a,Va=e}function Ka(e){null!==e.return&&(Ha(e,1),Wa(e,1,0))}function Ga(e){for(;e===Ia;)Ia=Da[--Ma],Da[Ma]=null,Fa=Da[--Ma],Da[Ma]=null;for(;e===qa;)qa=La[--Ba],La[Ba]=null,Va=La[--Ba],La[Ba]=null,Ua=La[--Ba],La[Ba]=null}var Za=null,Ya=null,Qa=!1,$a=null,Xa=!1,Ja=Error(s(519));function er(e){throw ir(Oa(Error(s(418,"")),e)),Ja}function tr(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[Fe]=e,t[Le]=a,n){case"dialog":Cd("cancel",t),Cd("close",t);break;case"iframe":case"object":case"embed":Cd("load",t);break;case"video":case"audio":for(n=0;n<_d.length;n++)Cd(_d[n],t);break;case"source":Cd("error",t);break;case"img":case"image":case"link":Cd("error",t),Cd("load",t);break;case"details":Cd("toggle",t);break;case"input":Cd("invalid",t),xt(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0),ut(t);break;case"select":Cd("invalid",t);break;case"textarea":Cd("invalid",t),wt(t,a.value,a.defaultValue,a.children),ut(t)}"string"!==typeof(n=a.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===a.suppressHydrationWarning||Ud(t.textContent,n)?(null!=a.popover&&(Cd("beforetoggle",t),Cd("toggle",t)),null!=a.onScroll&&Cd("scroll",t),null!=a.onScrollEnd&&Cd("scrollend",t),null!=a.onClick&&(t.onclick=Vd),t=!0):t=!1,t||er(e)}function nr(e){for(Za=e.return;Za;)switch(Za.tag){case 3:case 27:return void(Xa=!0);case 5:case 13:return void(Xa=!1);default:Za=Za.return}}function ar(e){if(e!==Za)return!1;if(!Qa)return nr(e),Qa=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Xd(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Ya&&er(e),nr(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(s(317));e:{for(e=e.nextSibling,n=0;e;
2){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Ya=ou(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Ya=null}}else Ya=Za?ou(e.stateNode.nextSibling):null;return!0}function rr(){Ya=Za=null,Qa=!1}function ir(e){null===$a?$a=[e]:$a.push(e)}var sr=Error(s(460)),or=Error(s(474)),lr={then:function(){}};function cr(e){return"fulfilled"===(e=e.status)||"rejected"===e}function dr(){}function ur(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(dr,dr),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===sr)throw Error(s(483));throw e;default:if("string"===typeof t.status)t.then(dr,dr);else{if(null!==(e=tc)&&100<e.shellSuspendCounter)throw Error(s(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===sr)throw Error(s(483));throw e}throw mr=t,sr}}var mr=null;function pr(){if(null===mr)throw Error(s(459));var e=mr;return mr=null,e}var hr=null,fr=0;function gr(e){var t=fr;return fr+=1,null===hr&&(hr=[]),ur(hr,e,t)}function xr(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function vr(e,t){if(t.$$typeof===l)throw Error(s(525));throw e=Object.prototype.toString.call(t),Error(s(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function br(e){return(0,e._init)(e._payload)}function yr(e){function t(t,n){if(e){var a=t.deletions;null===a?(t.deletions=[n],t.flags|=16):a.push(n)}}function n(n,a){if(!e)return null;for(;null!==a;)t(n,a),a=a.sibling;return null}function a(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function r(e,t){return(e=Il(e,t)).index=0,e.sibling=null,e}function i(t,n,a){return t.index=a,e?null!==(a=t.alternate)?(a=a.index)<n?(t.flags|=33554434,n):a:(t.flags|=33554434,n):(t.flags|=1048576,n)}function o(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,a){return null===t||6!==t.tag?((t=Ul(n,e.mode,a)).return=e,t):((t=r(t,n)).return=e,t)}function m(e,t,n,a){var i=n.type;return i===u?h(e,t,n.props.children,a,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===w&&br(i)===t.type)?(xr(t=r(t,n.props),n),t.return=e,t):(xr(t=Ll(n.type,n.key,n.props,null,e.mode,a),n),t.return=e,t)}function p(e,t,n,a){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vl(n,e.mode,a)).return=e,t):((t=r(t,n.children||[])).return=e,t)}function h(e,t,n,a,i){return null===t||7!==t.tag?((t=Bl(n,e.mode,a,i)).return=e,t):((t=r(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Ul(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case c:return xr(n=Ll(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case d:return(t=Vl(t,e.mode,n)).return=e,t;case w:return f(e,t=(0,t._init)(t._payload),n)}if(q(t)||S(t))return(t=Bl(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return f(e,gr(t),n);if(t.$$typeof===g)return f(e,_o(e,t),n);vr(e,t)}return null}function x(e,t,n,a){var r=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==r?null:l(e,t,""+n,a);if("object"===typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===r?m(e,t,n,a):null;case d:return n.key===r?p(e,t,n,a):null;case w:return x(e,t,n=(r=n._init)(n._payload),a)}if(q(n)||S(n))return null!==r?null:h(e,t,n,a,null);if("function"===typeof n.then)return x(e,t,gr(n),a);if(n.$$typeof===g)return x(e,t,_o(e,n),a);vr(e,n)}return null}function v(e,t,n,a,r){if("string"===typeof a&&""!==a||"number"===typeof a||"bigint"===typeof a)return l(t,e=e.get(n)||null,""+a,r);if("object"===typeof a&&null!==a){switch(a.$$typeof){case c:return m(t,e=e.get(null===a.key?n:a.key)||null,a,r);case d:return p(t,e=e.get(null===a.key?n:a.key)||null,a,r);case w:return v(e,t,n,a=(0,a._init)(a._payload),r)}
vendor: 5,717 bytes, line 2
2if(q(a)||S(a))return h(t,e=e.get(n)||null,a,r,null);if("function"===typeof a.then)return v(e,t,n,gr(a),r);if(a.$$typeof===g)return v(e,t,n,_o(t,a),r);vr(t,a)}return null}function b(l,m,p,h){if("object"===typeof p&&null!==p&&p.type===u&&null===p.key&&(p=p.props.children),"object"===typeof p&&null!==p){switch(p.$$typeof){case c:e:{for(var y=p.key;null!==m;){if(m.key===y){if((y=p.type)===u){if(7===m.tag){n(l,m.sibling),(h=r(m,p.props.children)).return=l,l=h;break e}}else if(m.elementType===y||"object"===typeof y&&null!==y&&y.$$typeof===w&&br(y)===m.type){n(l,m.sibling),xr(h=r(m,p.props),p),h.return=l,l=h;break e}n(l,m);break}t(l,m),m=m.sibling}p.type===u?((h=Bl(p.props.children,l.mode,h,p.key)).return=l,l=h):(xr(h=Ll(p.type,p.key,p.props,null,l.mode,h),p),h.return=l,l=h)}return o(l);case d:e:{for(y=p.key;null!==m;){if(m.key===y){if(4===m.tag&&m.stateNode.containerInfo===p.containerInfo&&m.stateNode.implementation===p.implementation){n(l,m.sibling),(h=r(m,p.children||[])).return=l,l=h;break e}n(l,m);break}t(l,m),m=m.sibling}(h=Vl(p,l.mode,h)).return=l,l=h}return o(l);case w:return b(l,m,p=(y=p._init)(p._payload),h)}if(q(p))return function(r,s,o,l){for(var c=null,d=null,u=s,m=s=0,p=null;null!==u&&m<o.length;m++){u.index>m?(p=u,u=null):p=u.sibling;var h=x(r,u,o[m],l);if(null===h){null===u&&(u=p);break}e&&u&&null===h.alternate&&t(r,u),s=i(h,s,m),null===d?c=h:d.sibling=h,d=h,u=p}if(m===o.length)return n(r,u),Qa&&Ha(r,m),c;if(null===u){for(;m<o.length;m++)null!==(u=f(r,o[m],l))&&(s=i(u,s,m),null===d?c=u:d.sibling=u,d=u);return Qa&&Ha(r,m),c}for(u=a(u);m<o.length;m++)null!==(p=v(u,r,m,o[m],l))&&(e&&null!==p.alternate&&u.delete(null===p.key?m:p.key),s=i(p,s,m),null===d?c=p:d.sibling=p,d=p);return e&&u.forEach(function(e){return t(r,e)}),Qa&&Ha(r,m),c}(l,m,p,h);if(S(p)){if("function"!==typeof(y=S(p)))throw Error(s(150));return function(r,o,l,c){if(null==l)throw Error(s(151));for(var d=null,u=null,m=o,p=o=0,h=null,g=l.next();null!==m&&!g.done;p++,g=l.next()){m.index>p?(h=m,m=null):h=m.sibling;var b=x(r,m,g.value,c);if(null===b){null===m&&(m=h);break}e&&m&&null===b.alternate&&t(r,m),o=i(b,o,p),null===u?d=b:u.sibling=b,u=b,m=h}if(g.done)return n(r,m),Qa&&Ha(r,p),d;if(null===m){for(;!g.done;p++,g=l.next())null!==(g=f(r,g.value,c))&&(o=i(g,o,p),null===u?d=g:u.sibling=g,u=g);return Qa&&Ha(r,p),d}for(m=a(m);!g.done;p++,g=l.next())null!==(g=v(m,r,p,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?p:g.key),o=i(g,o,p),null===u?d=g:u.sibling=g,u=g);return e&&m.forEach(function(e){return t(r,e)}),Qa&&Ha(r,p),d}(l,m,p=y.call(p),h)}if("function"===typeof p.then)return b(l,m,gr(p),h);if(p.$$typeof===g)return b(l,m,_o(l,p),h);vr(l,p)}return"string"===typeof p&&""!==p||"number"===typeof p||"bigint"===typeof p?(p=""+p,null!==m&&6===m.tag?(n(l,m.sibling),(h=r(m,p)).return=l,l=h):(n(l,m),(h=Ul(p,l.mode,h)).return=l,l=h),o(l)):n(l,m)}return function(e,t,n,a){try{fr=0;var r=b(e,t,n,a);return hr=null,r}catch(s){if(s===sr)throw s;var i=Dl(29,s,null,e.mode);return i.lanes=a,i.return=e,i}}}var wr=yr(!0),jr=yr(!1),kr=K(null),Nr=K(0);function Sr(e,t){Z(Nr,e=cc),Z(kr,t),cc=e|t.baseLanes}function _r(){Z(Nr,cc),Z(kr,kr.current)}function zr(){cc=Nr.current,G(kr),G(Nr)}var Er=K(null),Cr=null;function Pr(e){var t=e.alternate;Z(Or,1&Or.current),Z(Er,e),null===Cr&&(null===t||null!==kr.current||null!==t.memoizedState)&&(Cr=e)}function Ar(e){if(22===e.tag){if(Z(Or,Or.current),Z(Er,e),null===Cr){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Cr=e)}}else Tr()}function Tr(){Z(Or,Or.current),Z(Er,Er.current)}function Rr(e){G(Er),Cr===e&&(Cr=null),G(Or)}var Or=K(0);function Dr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Mr="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Ir=a.unstable_scheduleCallback,Fr=a.unstable_NormalPriority,Lr={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Br(){return{controller:new Mr,data:new Map,refCount:0}}function qr(e){e.refCount--,0===e.refCount&&Ir(Fr,function(){e.controller.abort()})}var Ur=null,Vr=0,Hr=0,Wr=null;function Kr(){if(0===--Vr&&null!==Ur){null!==Wr&&(Wr.status="fulfilled");var e=Ur;Ur=null,Hr=0,Wr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Gr=P.S;P.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Ur){var n=Ur=[];Vr=0,Hr=wd(),Wr={status:"pending",value:void 0,then:function(e){n.push(e)}}}Vr++,t.then(Kr,Kr)}(0,t),null!==Gr&&Gr(e,t)};var Zr=K(null);function Yr(){var e=Zr.current;return null!==e?e:tc.pooledCache}function Qr(e,t){Z(Zr,null===t?Zr.current:t.pool)}function $r(){var e=Yr();return null===e?null:{parent:Lr._currentValue,pool:e}}var Xr=0,Jr=null,ei=null,ti=null,ni=!1,ai=!1,ri=!1,ii=0,si=0,oi=null,li=0;function ci(){throw Error(s(321))}function di(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function ui(e,t,n,a,r,i){return Xr=i,Jr=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=null===e||null===e.memoizedState?Ss:_s,ri=!1,i=n(a,r),ri=!1,ai&&(i=pi(t,n,a,r)),mi(e),i}function mi(e){P.H=Ns;var t=null!==ei&&null!==ei.next;if(Xr=0,ti=ei=Jr=null,ni=!1,si=0,oi=null,t)throw Error(s(300));
vendor: 5,907 bytes, line 2
2null===e||Vs||null!==(e=e.dependencies)&&ko(e)&&(Vs=!0)}function pi(e,t,n,a){Jr=e;var r=0;do{if(ai&&(oi=null),si=0,ai=!1,25<=r)throw Error(s(301));if(r+=1,ti=ei=null,null!=e.updateQueue){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,null!=i.memoCache&&(i.memoCache.index=0)}P.H=zs,i=t(n,a)}while(ai);return i}function hi(){var e=P.H,t=e.useState()[0];return t="function"===typeof t.then?yi(t):t,e=e.useState()[0],(null!==ei?ei.memoizedState:null)!==e&&(Jr.flags|=1024),t}function fi(){var e=0!==ii;return ii=0,e}function gi(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function xi(e){if(ni){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ni=!1}Xr=0,ti=ei=Jr=null,ai=!1,si=ii=0,oi=null}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Jr.memoizedState=ti=e:ti=ti.next=e,ti}function bi(){if(null===ei){var e=Jr.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Jr.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e){if(null===Jr.alternate)throw Error(s(467));throw Error(s(310))}e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Jr.memoizedState=ti=e:ti=ti.next=e}return ti}function yi(e){var t=si;return si+=1,null===oi&&(oi=[]),e=ur(oi,e,t),t=Jr,null===(null===ti?t.memoizedState:ti.next)&&(t=t.alternate,P.H=null===t||null===t.memoizedState?Ss:_s),e}function wi(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return yi(e);if(e.$$typeof===g)return So(e)}throw Error(s(438,String(e)))}function ji(e){var t=null,n=Jr.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var a=Jr.alternate;null!==a&&(null!==(a=a.updateQueue)&&(null!=(a=a.memoCache)&&(t={data:a.data.map(function(e){return e.slice()}),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=k;return t.index++,n}function ki(e,t){return"function"===typeof t?t(e):t}function Ni(e){return Si(bi(),ei,e)}function Si(e,t,n){var a=e.queue;if(null===a)throw Error(s(311));a.lastRenderedReducer=n;var r=e.baseQueue,i=a.pending;if(null!==i){if(null!==r){var o=r.next;r.next=i.next,i.next=o}t.baseQueue=r=i,a.pending=null}if(i=e.baseState,null===r)e.memoizedState=i;else{var l=o=null,c=null,d=t=r.next,u=!1;do{var m=-536870913&d.lane;if(m!==d.lane?(ac&m)===m:(Xr&m)===m){var p=d.revertLane;if(0===p)null!==c&&(c=c.next={lane:0,revertLane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),m===Hr&&(u=!0);else{if((Xr&p)===p){d=d.next,p===Hr&&(u=!0);continue}m={lane:0,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(l=c=m,o=i):c=c.next=m,Jr.lanes|=p,uc|=p}m=d.action,ri&&n(i,m),i=d.hasEagerState?d.eagerState:n(i,m)}else p={lane:m,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},null===c?(l=c=p,o=i):c=c.next=p,Jr.lanes|=m,uc|=m;d=d.next}while(null!==d&&d!==t);if(null===c?o=i:c.next=l,!Zn(i,e.memoizedState)&&(Vs=!0,u&&null!==(n=Wr)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=c,a.lastRenderedState=i}return null===r&&(a.lanes=0),[e.memoizedState,a.dispatch]}function _i(e){var t=bi(),n=t.queue;if(null===n)throw Error(s(311));n.lastRenderedReducer=e;var a=n.dispatch,r=n.pending,i=t.memoizedState;if(null!==r){n.pending=null;var o=r=r.next;do{i=e(i,o.action),o=o.next}while(o!==r);Zn(i,t.memoizedState)||(Vs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,a]}function zi(e,t,n){var a=Jr,r=bi(),i=Qa;if(i){if(void 0===n)throw Error(s(407));n=n()}else n=t();var o=!Zn((ei||r).memoizedState,n);if(o&&(r.memoizedState=n,Vs=!0),r=r.queue,Xi(Pi.bind(null,a,r,e),[e]),r.getSnapshot!==t||o||null!==ti&&1&ti.memoizedState.tag){if(a.flags|=2048,Gi(9,Ci.bind(null,a,r,n,t),{destroy:void 0},null),null===tc)throw Error(s(349));i||0!==(60&Xr)||Ei(a,t,n)}return n}function Ei(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Jr.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ci(e,t,n,a){t.value=n,t.getSnapshot=a,Ai(t)&&Ti(e)}function Pi(e,t,n){return n(function(){Ai(t)&&Ti(e)})}function Ai(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(a){return!0}}function Ti(e){var t=Ca(e,2);null!==t&&Tc(t,e,2)}function Ri(e){var t=vi();if("function"===typeof e){var n=e;if(e=n(),ri){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:e},t}function Oi(e,t,n,a){return e.baseState=n,Si(e,ei,"function"===typeof a?a:ki)}function Di(e,t,n,a,r){if(ws(e))throw Error(s(485));if(null!==(e=t.action)){var i={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){i.listeners.push(e)}};null!==P.T?n(!0):i.isTransition=!1,a(i),null===(n=t.pending)?(i.next=t.pending=i,Mi(t,i)):(i.next=n.next,t.pending=n.next=i)}}function Mi(e,t){var n=t.action,a=t.payload,r=e.state;if(t.isTransition){var i=P.T,s={};P.T=s;try{var o=n(r,a),l=P.S;null!==l&&l(s,o),Ii(e,t,o)}catch(c){Li(e,t,c)}finally{P.T=i}}else try{Ii(e,t,i=n(r,a))}catch(d){Li(e,t,d)}}function Ii(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then(function(n){Fi(e,t,n)},function(n){return Li(e,t,n)}):Fi(e,t,n)}function Fi(e,t,n){t.status="fulfilled",t.value=n,Bi(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Mi(e,n)))}function Li(e,t,n){var a=e.pending;if(e.pending=null,null!==a){a=a.next;do{t.status="rejected",t.reason=n,Bi(t),t=t.next}
2while(t!==a)}e.action=null}function Bi(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qi(e,t){return t}function Ui(e,t){if(Qa){var n=tc.formState;if(null!==n){e:{var a=Jr;if(Qa){if(Ya){t:{for(var r=Ya,i=Xa;8!==r.nodeType;){if(!i){r=null;break t}if(null===(r=ou(r.nextSibling))){r=null;break t}}r="F!"===(i=r.data)||"F"===i?r:null}if(r){Ya=ou(r.nextSibling),a="F!"===r.data;break e}}er(a)}a=!1}a&&(t=n[0])}}return(n=vi()).memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qi,lastRenderedState:t},n.queue=a,n=vs.bind(null,Jr,a),a.dispatch=n,a=Ri(!1),i=ys.bind(null,Jr,!1,a.queue),r={state:t,dispatch:null,action:e,pending:null},(a=vi()).queue=r,n=Di.bind(null,Jr,r,i,n),r.dispatch=n,a.memoizedState=e,[t,n,!1]}function Vi(e){return Hi(bi(),ei,e)}function Hi(e,t,n){t=Si(e,t,qi)[0],e=Ni(ki)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?yi(t):t;var a=bi(),r=a.queue,i=r.dispatch;return n!==a.memoizedState&&(Jr.flags|=2048,Gi(9,Wi.bind(null,r,n),{destroy:void 0},null)),[t,i,e]}function Wi(e,t){e.action=t}function Ki(e){var t=bi(),n=ei;if(null!==n)return Hi(t,n,e);bi(),t=t.memoizedState;var a=(n=bi()).queue.dispatch;return n.memoizedState=e,[t,a,!1]}function Gi(e,t,n,a){return e={tag:e,create:t,inst:n,deps:a,next:null},null===(t=Jr.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Jr.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function Zi(){return bi().memoizedState}function Yi(e,t,n,a){var r=vi();Jr.flags|=e,r.memoizedState=Gi(1|t,n,{destroy:void 0},void 0===a?null:a)}function Qi(e,t,n,a){var r=bi();a=void 0===a?null:a;var i=r.memoizedState.inst;null!==ei&&null!==a&&di(a,ei.memoizedState.deps)?r.memoizedState=Gi(t,n,i,a):(Jr.flags|=e,r.memoizedState=Gi(1|t,n,i,a))}function $i(e,t){Yi(8390656,8,e,t)}function Xi(e,t){Qi(2048,8,e,t)}function Ji(e,t){return Qi(4,2,e,t)}function es(e,t){return Qi(4,4,e,t)}function ts(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function ns(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Qi(4,4,ts.bind(null,t,e),n)}function as(){}function rs(e,t){var n=bi();t=void 0===t?null:t;var a=n.memoizedState;return null!==t&&di(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function is(e,t){var n=bi();t=void 0===t?null:t;var a=n.memoizedState;if(null!==t&&di(t,a[1]))return a[0];if(a=e(),ri){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[a,t],a}function ss(e,t,n){return void 0===n||0!==(1073741824&Xr)?e.memoizedState=t:(e.memoizedState=n,e=Ac(),Jr.lanes|=e,uc|=e,n)}function os(e,t,n,a){return Zn(n,t)?n:null!==kr.current?(e=ss(e,n,a),Zn(e,t)||(Vs=!0),e):0===(42&Xr)?(Vs=!0,e.memoizedState=n):(e=Ac(),Jr.lanes|=e,uc|=e,t)}function ls(e,t,n,a,r){var i=U.p;U.p=0!==i&&8>i?i:8;var s=P.T,o={};P.T=o,ys(e,!1,t,n);try{var l=r(),c=P.S;if(null!==c&&c(o,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)bs(e,t,function(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(a.status="rejected",a.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),a}(l,a),Pc());else bs(e,t,a,Pc())}catch(d){bs(e,t,{then:function(){},status:"rejected",reason:d},Pc())}finally{U.p=i,P.T=s}}function cs(){}function ds(e,t,n,a){if(5!==e.tag)throw Error(s(476));var r=us(e).queue;ls(e,r,t,V,null===n?cs:function(){return ms(e),n(a)})}function us(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:V},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ki,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function ms(e){bs(e,us(e).next.queue,{},Pc())}function ps(){return So(Mu)}function hs(){return bi().memoizedState}function fs(){return bi().memoizedState}function gs(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Pc(),a=To(t,e=Ao(n),n);return null!==a&&(Tc(a,t,n),Ro(a,t,n)),t={cache:Br()},void(e.payload=t)}t=t.return}}function xs(e,t,n){var a=Pc();n={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},ws(e)?js(t,n):null!==(n=Ea(e,t,n,a))&&(Tc(n,e,a),ks(n,t,a))}
vendor: 4,098 bytes, line 2
2function vs(e,t,n){bs(e,t,n,Pc())}function bs(e,t,n,a){var r={lane:a,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(ws(e))js(t,r);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var s=t.lastRenderedState,o=i(s,n);if(r.hasEagerState=!0,r.eagerState=o,Zn(o,s))return za(e,t,r,0),null===tc&&_a(),!1}catch(l){}if(null!==(n=Ea(e,t,r,a)))return Tc(n,e,a),ks(n,t,a),!0}return!1}function ys(e,t,n,a){if(a={lane:2,revertLane:wd(),action:a,hasEagerState:!1,eagerState:null,next:null},ws(e)){if(t)throw Error(s(479))}else null!==(t=Ea(e,n,a,2))&&Tc(t,e,2)}function ws(e){var t=e.alternate;return e===Jr||null!==t&&t===Jr}function js(e,t){ai=ni=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ks(e,t,n){if(0!==(4194176&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Oe(e,n)}}var Ns={readContext:So,use:wi,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useInsertionEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useSyncExternalStore:ci,useId:ci};Ns.useCacheRefresh=ci,Ns.useMemoCache=ci,Ns.useHostTransitionStatus=ci,Ns.useFormState=ci,Ns.useActionState=ci,Ns.useOptimistic=ci;var Ss={readContext:So,use:wi,useCallback:function(e,t){return vi().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:$i,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Yi(4194308,4,ts.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4194308,4,e,t)},useInsertionEffect:function(e,t){Yi(4,2,e,t)},useMemo:function(e,t){var n=vi();t=void 0===t?null:t;var a=e();if(ri){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=vi();if(void 0!==n){var r=n(t);if(ri){be(!0);try{n(t)}finally{be(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=xs.bind(null,Jr,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},vi().memoizedState=e},useState:function(e){var t=(e=Ri(e)).queue,n=vs.bind(null,Jr,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:as,useDeferredValue:function(e,t){return ss(vi(),e,t)},useTransition:function(){var e=Ri(!1);return e=ls.bind(null,Jr,e.queue,!0,!1),vi().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=Jr,r=vi();if(Qa){if(void 0===n)throw Error(s(407));n=n()}else{if(n=t(),null===tc)throw Error(s(349));0!==(60&ac)||Ei(a,t,n)}r.memoizedState=n;var i={value:n,getSnapshot:t};return r.queue=i,$i(Pi.bind(null,a,i,e),[e]),a.flags|=2048,Gi(9,Ci.bind(null,a,i,n,t),{destroy:void 0},null),n},useId:function(){var e=vi(),t=tc.identifierPrefix;if(Qa){var n=Va;t=":"+t+"R"+(n=(Ua&~(1<<32-ye(Ua)-1)).toString(32)+n),0<(n=ii++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=li++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return vi().memoizedState=gs.bind(null,Jr)}};Ss.useMemoCache=ji,Ss.useHostTransitionStatus=ps,Ss.useFormState=Ui,Ss.useActionState=Ui,Ss.useOptimistic=function(e){var t=vi();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ys.bind(null,Jr,!0,n),n.dispatch=t,[e,t]};var _s={readContext:So,use:wi,useCallback:rs,useContext:So,useEffect:Xi,useImperativeHandle:ns,useInsertionEffect:Ji,useLayoutEffect:es,useMemo:is,useReducer:Ni,useRef:Zi,useState:function(){return Ni(ki)},useDebugValue:as,useDeferredValue:function(e,t){return os(bi(),ei.memoizedState,e,t)},useTransition:function(){var e=Ni(ki)[0],t=bi().memoizedState;return["boolean"===typeof e?e:yi(e),t]},useSyncExternalStore:zi,useId:hs};_s.useCacheRefresh=fs,_s.useMemoCache=ji,_s.useHostTransitionStatus=ps,_s.useFormState=Vi,_s.useActionState=Vi,_s.useOptimistic=function(e,t){return Oi(bi(),0,e,t)};var zs={readContext:So,use:wi,useCallback:rs,useContext:So,useEffect:Xi,useImperativeHandle:ns,useInsertionEffect:Ji,useLayoutEffect:es,useMemo:is,useReducer:_i,useRef
2:Zi,useState:function(){return _i(ki)},useDebugValue:as,useDeferredValue:function(e,t){var n=bi();return null===ei?ss(n,e,t):os(n,ei.memoizedState,e,t)},useTransition:function(){var e=_i(ki)[0],t=bi().memoizedState;return["boolean"===typeof e?e:yi(e),t]},useSyncExternalStore:zi,useId:hs};function Es(e,t,n,a){n=null===(n=n(a,t=e.memoizedState))||void 0===n?t:A({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}zs.useCacheRefresh=fs,zs.useMemoCache=ji,zs.useHostTransitionStatus=ps,zs.useFormState=Ki,zs.useActionState=Ki,zs.useOptimistic=function(e,t){var n=bi();return null!==ei?Oi(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Cs={isMounted:function(e){return!!(e=e._reactInternals)&&I(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Pc(),r=Ao(a);r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=To(e,r,a))&&(Tc(t,e,a),Ro(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Pc(),r=Ao(a);r.tag=1,r.payload=t,void 0!==n&&null!==n&&(r.callback=n),null!==(t=To(e,r,a))&&(Tc(t,e,a),Ro(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pc(),a=Ao(n);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=To(e,a,n))&&(Tc(t,e,n),Ro(t,e,n))}};function Ps(e,t,n,a,r,i,s){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(a,i,s):!t.prototype||!t.prototype.isPureReactComponent||(!Yn(n,a)||!Yn(r,i))}function As(e,t,n,a){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,a),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Cs.enqueueReplaceState(t,t.state,null)}function Ts(e,t){var n=t;if("ref"in t)for(var a in n={},t)"ref"!==a&&(n[a]=t[a]);if(e=e.defaultProps)for(var r in n===t&&(n=A({},n)),e)void 0===n[r]&&(n[r]=e[r]);return n}var Rs="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Os(e){Rs(e)}function Ds(e){console.error(e)}function Ms(e){Rs(e)}function Is(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Fs(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Ls(e,t,n){return(n=Ao(n)).tag=3,n.payload={element:null},n.callback=function(){Is(e,t)},n}function Bs(e){return(e=Ao(e)).tag=3,e}function qs(e,t,n,a){var r=n.type.getDerivedStateFromError;if("function"===typeof r){var i=a.value;e.payload=function(){return r(i)},e.callback=function(){Fs(t,n,a)}}var s=n.stateNode;null!==s&&"function"===typeof s.componentDidCatch&&(e.callback=function(){Fs(t,n,a),"function"!==typeof r&&(null===jc?jc=new Set([this]):jc.add(this));var e=a.stack;this.componentDidCatch(a.value,{componentStack:null!==e?e:""})})}var Us=Error(s(461)),Vs=!1;function Hs(e,t,n,a){t.child=null===e?jr(t,null,n,a):wr(t,e.child,n,a)}function Ws(e,t,n,a,r){n=n.render;var i=t.ref;if("ref"in a){var s={};for(var o in a)"ref"!==o&&(s[o]=a[o])}else s=a;return No(t),a=ui(e,t,n,s,i,r),o=fi(),null===e||Vs?(Qa&&o&&Ka(t),t.flags|=1,Hs(e,t,a,r),t.child):(gi(e,t,r),mo(e,t,r))}function Ks(e,t,n,a,r){if(null===e){var i=n.type;return"function"!==typeof i||Ml(i)||void 0!==i.defaultProps||null!==n.compare?((e=Ll(n.type,null,a,t,t.mode,r)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Gs(e,t,i,a,r))}if(i=e.child,!po(e,r)){var s=i.memoizedProps;if((n=null!==(n=n.compare)?n:Yn)(s,a)&&e.ref===t.ref)return mo(e,t,r)}return t.flags|=1,(e=Il(i,a)).ref=t.ref,e.return=t,t.child=e}function Gs(e,t,n,a,r){if(null!==e){var i=e.memoizedProps;if(Yn(i,a)&&e.ref===t.ref){if(Vs=!1,t.pendingProps=a=i,!po(e,r))return t.lanes=e.lanes,mo(e,t,r);0!==(131072&e.flags)&&(Vs=!0)}}return $s(e,t,n,a,r)}function Zs(e,t,n){var a=t.pendingProps,r=a.children,i=0!==(2&t.stateNode._pendingVisibility),s=null!==e?e.memoizedState:null;if(Qs(e,t),"hidden"===a.mode||i){if(0!==(128&t.flags)){if(a=null!==s?s.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;t.childLanes=i&~a}else t.childLanes=0,t.child=null;return Ys(e,t,a,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Ys(e,t,null!==s?s.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Qr(0,null!==s?s.cachePool:null),null!==s?Sr(t,s):_r(),Ar(t)}else null!==s?(Qr(0,s.cachePool),Sr(t,s),Tr(),t.memoizedState=null):(null!==e&&Qr(0,null),_r(),Tr());return Hs(e,t,r,n),t.child}function Ys(e,t,n,a){var r=Yr();return r=null===r?null:{parent:Lr._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},null!==e&&Qr(0,null),_r(),Ar(t),null!==e&&jo(e,t,a,!0),null}function Qs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(s(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function $s(e,t,n,a,r){return No(t),n=ui(e,t,n,a,void 0,r),a=fi(),null===e||Vs?(Qa&&a&&Ka(t),t.flags|=1,Hs(e,t,n,r),t.child):(gi(e,t,r),mo(e,t,r))}function Xs(e,t,n,a,r,i){return No(t),t.updateQueue=null,n=pi(t,a,n,r),mi(e),a=fi(),null===e||Vs?(Qa&&a&&Ka(t),t.flags|=1,Hs(e,t,n,i),t.child):(gi(e,t,i),mo(e,t,i))}function Js(e,t,n,a,r){if(No(t),null===t.stateNode){var i=Ta,s=n.contextType;"object"===typeof s&&null!==s&&(i=So(s)),i=new n(a,i),t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i.updater=Cs,t.stateNode=i,i._reactInternals=t,(i=t.stateNode).props=a,i.state=t.memoizedState,i.refs={},Co(t),s=n.contextType,i.context="object"===typeof s&&null!==s?So(s):Ta,i.state=t.memoizedState,"function"===typeof(s=n.getDerivedStateFromProps)&&(Es(t,n,s,a),i.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(s=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),s!==i.state&&Cs.enqueueReplaceState(i,i.state,null),Io(t,a,i,r),Mo(),i.state=t.memoizedState),"function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!0}
2else if(null===e){i=t.stateNode;var o=t.memoizedProps,l=Ts(n,o);i.props=l;var c=i.context,d=n.contextType;s=Ta,"object"===typeof d&&null!==d&&(s=So(d));var u=n.getDerivedStateFromProps;d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate,o=t.pendingProps!==o,d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(o||c!==s)&&As(t,i,a,s),Eo=!1;var m=t.memoizedState;i.state=m,Io(t,a,i,r),Mo(),c=t.memoizedState,o||m!==c||Eo?("function"===typeof u&&(Es(t,n,u,a),c=t.memoizedState),(l=Eo||Ps(t,n,l,a,m,c,s))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=c),i.props=a,i.state=c,i.context=s,a=l):("function"===typeof i.componentDidMount&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Po(e,t),d=Ts(n,s=t.memoizedProps),i.props=d,u=t.pendingProps,m=i.context,c=n.contextType,l=Ta,"object"===typeof c&&null!==c&&(l=So(c)),(c="function"===typeof(o=n.getDerivedStateFromProps)||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==u||m!==l)&&As(t,i,a,l),Eo=!1,m=t.memoizedState,i.state=m,Io(t,a,i,r),Mo();var p=t.memoizedState;s!==u||m!==p||Eo||null!==e&&null!==e.dependencies&&ko(e.dependencies)?("function"===typeof o&&(Es(t,n,o,a),p=t.memoizedState),(d=Eo||Ps(t,n,d,a,m,p,l)||null!==e&&null!==e.dependencies&&ko(e.dependencies))?(c||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(a,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(a,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=p),i.props=a,i.state=p,i.context=l,a=d):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,Qs(e,t),a=0!==(128&t.flags),i||a?(i=t.stateNode,n=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render(),t.flags|=1,null!==e&&a?(t.child=wr(t,e.child,null,r),t.child=wr(t,null,n,r)):Hs(e,t,n,r),t.memoizedState=i.state,e=t.child):e=mo(e,t,r),e}function eo(e,t,n,a){return rr(),t.flags|=256,Hs(e,t,n,a),t.child}var to={dehydrated:null,treeContext:null,retryLane:0};function no(e){return{baseLanes:e,cachePool:$r()}}function ao(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=hc),e}function ro(e,t,n){var a,r=t.pendingProps,i=!1,o=0!==(128&t.flags);if((a=o)||(a=(null===e||null!==e.memoizedState)&&0!==(2&Or.current)),a&&(i=!0,t.flags&=-129),a=0!==(32&t.flags),t.flags&=-33,null===e){if(Qa){if(i?Pr(t):Tr(),Qa){var l,c=Ya;if(l=c){e:{for(l=c,c=Xa;8!==l.nodeType;){if(!c){c=null;break e}if(null===(l=ou(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==qa?{id:Ua,overflow:Va}:null,retryLane:536870912},(l=Dl(18,null,null,0)).stateNode=c,l.return=t,t.child=l,Za=t,Ya=null,l=!0):l=!1}l||er(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return"$!"===c.data?t.lanes=16:t.lanes=536870912,null;Rr(t)}return c=r.children,r=r.fallback,i?(Tr(),c=so({mode:"hidden",children:c},i=t.mode),r=Bl(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,(i=t.child).memoizedState=no(n),i.childLanes=ao(e,a,n),t.memoizedState=to,r):(Pr(t),io(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(o)256&t.flags?(Pr(t),t.flags&=-257,t=oo(e,t,n)):null!==t.memoizedState?(Tr(),t.child=e.child,t.flags|=128,t=null):(Tr(),i=r.fallback,
2c=t.mode,r=so({mode:"visible",children:r.children},c),(i=Bl(i,c,n,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,wr(t,e.child,null,n),(r=t.child).memoizedState=no(n),r.childLanes=ao(e,a,n),t.memoizedState=to,t=i);else if(Pr(t),"$!"===c.data){if(a=c.nextSibling&&c.nextSibling.dataset)var d=a.dgst;a=d,(r=Error(s(419))).stack="",r.digest=a,ir({value:r,source:null,stack:null}),t=oo(e,t,n)}else if(Vs||jo(e,t,n,!1),a=0!==(n&e.childLanes),Vs||a){if(null!==(a=tc)){if(0!==(42&(r=n&-n)))r=1;else switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=64;break;case 268435456:r=134217728;break;default:r=0}if(0!==(r=0!==(r&(a.suspendedLanes|n))?0:r)&&r!==l.retryLane)throw l.retryLane=r,Ca(e,r),Tc(a,e,r),Us}"$?"===c.data||Hc(),t=oo(e,t,n)}else"$?"===c.data?(t.flags|=128,t.child=e.child,t=od.bind(null,e),c._reactRetry=t,t=null):(e=l.treeContext,Ya=ou(c.nextSibling),Za=t,Qa=!0,$a=null,Xa=!1,null!==e&&(La[Ba++]=Ua,La[Ba++]=Va,La[Ba++]=qa,Ua=e.id,Va=e.overflow,qa=t),(t=io(t,r.children)).flags|=4096);return t}return i?(Tr(),i=r.fallback,c=t.mode,d=(l=e.child).sibling,(r=Il(l,{mode:"hidden",children:r.children})).subtreeFlags=31457280&l.subtreeFlags,null!==d?i=Il(d,i):(i=Bl(i,c,n,null)).flags|=2,i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,null===(c=e.child.memoizedState)?c=no(n):(null!==(l=c.cachePool)?(d=Lr._currentValue,l=l.parent!==d?{parent:d,pool:d}:l):l=$r(),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ao(e,a,n),t.memoizedState=to,r):(Pr(t),e=(n=e.child).sibling,(n=Il(n,{mode:"visible",children:r.children})).return=t,n.sibling=null,null!==e&&(null===(a=t.deletions)?(t.deletions=[e],t.flags|=16):a.push(e)),t.child=n,t.memoizedState=null,n)}function io(e,t){return(t=so({mode:"visible",children:t},e.mode)).return=e,e.child=t}function so(e,t){return ql(e,t,0,null)}function oo(e,t,n){return wr(t,e.child,null,n),(e=io(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function lo(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),yo(e.return,t,n)}function co(e,t,n,a,r){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function uo(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail;if(Hs(e,t,a.children,n),0!==(2&(a=Or.current)))a=1&a|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&lo(e,n,t);else if(19===e.tag)lo(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}switch(Z(Or,a),r){case"forwards":for(n=t.child,r=null;null!==n;)null!==(e=n.alternate)&&null===Dr(e)&&(r=n),n=n.sibling;null===(n=r)?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),co(t,!1,r,n,i);break;case"backwards":for(n=null,r=t.child,t.child=null;null!==r;){if(null!==(e=r.alternate)&&null===Dr(e)){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}co(t,!0,n,null,i);break;case"together":co(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function mo(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),uc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(jo(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(s(153));if(null!==t.child){for(n=Il(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Il(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function po(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!ko(e))}function ho(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Vs=!0;else{if(!po(e,n)&&0===(128&t.flags))return Vs=!1,function(e,t,n){switch(t.tag){case 3:J(t,t.stateNode.containerInfo),vo(t,Lr,e.memoizedState.cache),rr();break;case 27:case 5:te(t);break;case 4:J(t,t.stateNode.containerInfo);break;case 10:vo(t,t.type,t.memoizedProps.value);break;case 13:var a=t.memoizedState;if(null!==a)return null!==a.dehydrated?(Pr(t),t.flags|=128,null):0!==(n&t.child.childLanes)?ro(e,t,n):(Pr(t),null!==(e=mo(e,t,n))?e.sibling:null);Pr(t);break;case 19:var r=0!==(128&e.flags);if((a=0!==(n&t.childLanes))||(jo(e,t,n,!1),a=0!==(n&t.childLanes)),r){if(a)return uo(e,t,n);t.flags|=128}if(null!==(r=t.memoizedState)&&(r.rendering=null,r.tail=null,r.lastEffect=null),Z(Or,Or.current),a)break;return null;case 22:case 23:return t.lanes=0,Zs(e,t,n);case 24:vo(t,Lr,e.memoizedState.cache)}return mo(e,t,n)}
vendor: 5,164 bytes, line 2
2(e,t,n);Vs=0!==(131072&e.flags)}else Vs=!1,Qa&&0!==(1048576&t.flags)&&Wa(t,Fa,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var a=t.elementType,r=a._init;if(a=r(a._payload),t.type=a,"function"!==typeof a){if(void 0!==a&&null!==a){if((r=a.$$typeof)===x){t.tag=11,t=Ws(null,t,a,e,n);break e}if(r===y){t.tag=14,t=Ks(null,t,a,e,n);break e}}throw t=z(a)||a,Error(s(306,t,""))}Ml(a)?(e=Ts(a,e),t.tag=1,t=Js(null,t,a,e,n)):(t.tag=0,t=$s(null,t,a,e,n))}return t;case 0:return $s(e,t,t.type,t.pendingProps,n);case 1:return Js(e,t,a=t.type,r=Ts(a,t.pendingProps),n);case 3:e:{if(J(t,t.stateNode.containerInfo),null===e)throw Error(s(387));var i=t.pendingProps;a=(r=t.memoizedState).element,Po(e,t),Io(t,i,null,n);var o=t.memoizedState;if(i=o.cache,vo(t,Lr,i),i!==r.cache&&wo(t,[Lr],n,!0),Mo(),i=o.element,r.isDehydrated){if(r={element:i,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=r,t.memoizedState=r,256&t.flags){t=eo(e,t,i,n);break e}if(i!==a){ir(a=Oa(Error(s(424)),t)),t=eo(e,t,i,n);break e}for(Ya=ou(t.stateNode.containerInfo.firstChild),Za=t,Qa=!0,$a=null,Xa=!0,n=jr(t,null,i,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(rr(),i===a){t=mo(e,t,n);break e}Hs(e,t,i,n)}t=t.child}return t;case 26:return Qs(e,t),null===e?(n=gu(t.type,null,t.pendingProps,null))?t.memoizedState=n:Qa||(n=t.type,e=t.pendingProps,(a=Yd($.current).createElement(n))[Fe]=t,a[Le]=e,Kd(a,n,e),$e(a),t.stateNode=a):t.memoizedState=gu(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Qa&&(a=t.stateNode=cu(t.type,t.pendingProps,$.current),Za=t,Xa=!0,Ya=ou(a.firstChild)),a=t.pendingProps.children,null!==e||Qa?Hs(e,t,a,n):t.child=wr(t,null,a,n),Qs(e,t),t.child;case 5:return null===e&&Qa&&((r=a=Ya)&&(null!==(a=function(e,t,n,a){for(;1===e.nodeType;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(a){if(!e[We])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(i=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(i!==r.rel||e.getAttribute("href")!==(null==r.href?null:r.href)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin)||e.getAttribute("title")!==(null==r.title?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((i=e.getAttribute("src"))!==(null==r.src?null:r.src)||e.getAttribute("type")!==(null==r.type?null:r.type)||e.getAttribute("crossorigin")!==(null==r.crossOrigin?null:r.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var i=null==r.name?null:""+r.name;if("hidden"===r.type&&e.getAttribute("name")===i)return e}if(null===(e=ou(e.nextSibling)))break}return null}(a,t.type,t.pendingProps,Xa))?(t.stateNode=a,Za=t,Ya=ou(a.firstChild),Xa=!1,r=!0):r=!1),r||er(t)),te(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,a=i.children,Xd(r,i)?a=null:null!==o&&Xd(r,o)&&(t.flags|=32),null!==t.memoizedState&&(r=ui(e,t,hi,null,null,n),Mu._currentValue=r),Qs(e,t),Hs(e,t,a,n),t.child;case 6:return null===e&&Qa&&((e=n=Ya)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ou(e.nextSibling)))return null}return e}(n,t.pendingProps,Xa))?(t.stateNode=n,Za=t,Ya=null,e=!0):e=!1),e||er(t)),null;case 13:return ro(e,t,n);case 4:return J(t,t.stateNode.containerInfo),a=t.pendingProps,null===e?t.child=wr(t,null,a,n):Hs(e,t,a,n),t.child;case 11:return Ws(e,t,t.type,t.pendingProps,n);case 7:return Hs(e,t,t.pendingProps,n),t.child;case 8:case 12:return Hs(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,vo(t,t.type,a.value),Hs(e,t,a.children,n),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,No(t),a=a(r=So(r)),t.flags|=1,Hs(e,t,a,n),t.child;case 14:return Ks(e,t,t.type,t.pendingProps,n);case 15:return Gs(e,t,t.type,t.pendingProps,n);case 19:return uo(e,t,n);case 22:return Zs(e,t,n);case 24:return No(t),a=So(Lr),null===e?(null===(r=Yr())&&(r=tc,i=Br(),r.pooledCache=i,i.refCount++,null!==i&&(r.pooledCacheLanes|=n),r=i),t.memoizedState={parent:a,cache:r},Co(t),vo(t,Lr,r)):(0!==(e.lanes&n)&&(Po(e,t),Io(t,null,null,n),Mo()),r=e.memoizedState,i=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=r),vo(t,Lr,a)):(a=i.cache,vo(t,Lr,a),a!==r.cache&&wo(t,[Lr],n,!0))),Hs(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}var fo=K(null),go=null,xo=null;function vo(e,t,n){Z(fo,t._currentValue),t._currentValue=n}function bo(e){e._currentValue=fo.current,G(fo)}function yo(e,t,n){for(;null!==e;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==a&&(a.childLanes|=t)):null!==a&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function wo(e,t,n,a){var r=e.child;for(null!==r&&(r.return=e);null!==r;){var i=r.dependencies;if(null!==i){var o=r.child;i=i.firstContext;e:for(;null!==i;){var l=i;
vendor: 1,058 bytes, line 2
2i=r;for(var c=0;c<t.length;c++)if(l.context===t[c]){i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),yo(i.return,n,e),a||(o=null);break e}i=l.next}}else if(18===r.tag){if(null===(o=r.return))throw Error(s(341));o.lanes|=n,null!==(i=o.alternate)&&(i.lanes|=n),yo(o,n,e),o=null}else o=r.child;if(null!==o)o.return=r;else for(o=r;null!==o;){if(o===e){o=null;break}if(null!==(r=o.sibling)){r.return=o.return,o=r;break}o=o.return}r=o}}function jo(e,t,n,a){e=null;for(var r=t,i=!1;null!==r;){if(!i)if(0!==(524288&r.flags))i=!0;else if(0!==(262144&r.flags))break;if(10===r.tag){var o=r.alternate;if(null===o)throw Error(s(387));if(null!==(o=o.memoizedProps)){var l=r.type;Zn(r.pendingProps.value,o.value)||(null!==e?e.push(l):e=[l])}}else if(r===X.current){if(null===(o=r.alternate))throw Error(s(387));o.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(null!==e?e.push(Mu):e=[Mu])}r=r.return}null!==e&&wo(t,e,n,a),t.flags|=262144}function ko(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 23,210 bytes, line 2
2function No(e){go=e,xo=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function So(e){return zo(go,e)}function _o(e,t){return null===go&&No(e),zo(e,t)}function zo(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===xo){if(null===e)throw Error(s(308));xo=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else xo=xo.next=t;return n}var Eo=!1;function Co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ao(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function To(e,t,n){var a=e.updateQueue;if(null===a)return null;if(a=a.shared,0!==(2&ec)){var r=a.pending;return null===r?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Aa(e),Pa(e,null,n),t}return za(e,a,t,n),Aa(e)}function Ro(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,Oe(e,n)}}function Oo(e,t){var n=e.updateQueue,a=e.alternate;if(null!==a&&n===(a=a.updateQueue)){var r=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===i?r=i=s:i=i.next=s,n=n.next}while(null!==n);null===i?r=i=t:i=i.next=t}else r=i=t;return n={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Do=!1;function Mo(){if(Do){if(null!==Wr)throw Wr}}function Io(e,t,n,a){Do=!1;var r=e.updateQueue;Eo=!1;var i=r.firstBaseUpdate,s=r.lastBaseUpdate,o=r.shared.pending;if(null!==o){r.shared.pending=null;var l=o,c=l.next;l.next=null,null===s?i=c:s.next=c,s=l;var d=e.alternate;null!==d&&((o=(d=d.updateQueue).lastBaseUpdate)!==s&&(null===o?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=l))}if(null!==i){var u=r.baseState;for(s=0,d=c=l=null,o=i;;){var m=-536870913&o.lane,p=m!==o.lane;if(p?(ac&m)===m:(a&m)===m){0!==m&&m===Hr&&(Do=!0),null!==d&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var h=e,f=o;m=t;var g=n;switch(f.tag){case 1:if("function"===typeof(h=f.payload)){u=h.call(g,u,m);break e}u=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(m="function"===typeof(h=f.payload)?h.call(g,u,m):h)||void 0===m)break e;u=A({},u,m);break e;case 2:Eo=!0}}null!==(m=o.callback)&&(e.flags|=64,p&&(e.flags|=8192),null===(p=r.callbacks)?r.callbacks=[m]:p.push(m))}else p={lane:m,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===d?(c=d=p,l=u):d=d.next=p,s|=m;if(null===(o=o.next)){if(null===(o=r.shared.pending))break;o=(p=o).next,p.next=null,r.lastBaseUpdate=p,r.shared.pending=null}}null===d&&(l=u),r.baseState=l,r.firstBaseUpdate=c,r.lastBaseUpdate=d,null===i&&(r.shared.lanes=0),uc|=s,e.lanes=s,e.memoizedState=u}}function Fo(e,t){if("function"!==typeof e)throw Error(s(191,e));e.call(t)}function Lo(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Fo(n[e],t)}function Bo(e,t){try{var n=t.updateQueue,a=null!==n?n.lastEffect:null;if(null!==a){var r=a.next;n=r;do{if((n.tag&e)===e){a=void 0;var i=n.create,s=n.inst;a=i(),s.destroy=a}n=n.next}while(n!==r)}}catch(o){ad(t,t.return,o)}}function qo(e,t,n){try{var a=t.updateQueue,r=null!==a?a.lastEffect:null;if(null!==r){var i=r.next;a=i;do{if((a.tag&e)===e){var s=a.inst,o=s.destroy;if(void 0!==o){s.destroy=void 0,r=t;var l=n;try{o()}catch(c){ad(r,l,c)}}}a=a.next}while(a!==i)}}catch(c){ad(t,t.return,c)}}function Uo(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Lo(t,n)}catch(a){ad(e,e.return,a)}}}function Vo(e,t,n){n.props=Ts(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){ad(e,t,a)}}function Ho(e,t){try{var n=e.ref;if(null!==n){var a=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=a;break;default:r=a}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(i){ad(e,t,i)}}function Wo(e,t){var n=e.ref,a=e.refCleanup;if(null!==n)if("function"===typeof a)try{a()}catch(r){ad(e,t,r)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(i){ad(e,t,i)}else n.current=null}function Ko(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(r){ad(e,e.return,r)}}function Go(e,t,n){try{var a=e.stateNode;!function(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,i=null,o=null,l=null,c=null,d=null,u=null;for(h in n){var m=n[h];if(n.hasOwnProperty(h)&&null!=m)switch(h){case"checked":case"value":break;case"defaultValue":c=m;default:a.hasOwnProperty(h)||Hd(e,t,h,null,a,m)}}for(var p in a){var h=a[p];if(m=n[p],a.hasOwnProperty(p)&&(null!=h||null!=m))switch(p){case"type":i=h;break;case"name":r=h;break;case"checked":d=h;break;case"defaultChecked":u=h;break;case"value":o=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(s(137,t));break;default:h!==m&&Hd(e,t,p,h,a,m)}}return void gt(e,o,l,c,d,u,i,r);case"select":for(i in h=o=l=p=null,n)if(c=n[i],n.hasOwnProperty(i)&&null!=c)switch(i){case"value":break;case"multiple":h=c;default:a.hasOwnProperty(i)||Hd(e,t,i,null,a,c)}for(r in a)if(i=a[r],c=n[r],a.hasOwnProperty(r)&&(null!=i||null!=c))switch(r){case"value":p=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==c&&Hd(e,t,r,i,a,c)}return t=l,n=o,a=h,void(null!=p?bt(e,!!n,p,!1):!!a!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(r=n[l],n.hasOwnProperty(l)&&null!=r&&!a.hasOwnProperty(l))switch(l){case"value":case"children":break;default:Hd(e,t,l,null,a,r)}for(o in a)if(r=a[o],i=n[o],a.hasOwnProperty(o)&&(null!=r||null!=i))switch(o){case"value":p=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=r)throw Error(s(91));break;default:r!==i&&Hd(e,t,o,r,a,i)}return void yt(e,p,h);case"option":for(var f in n)if(p=n[f],n.hasOwnProperty(f)&&null!=p&&!a.hasOwnProperty(f))if("selected"===f)e.selected=!1;else Hd(e,t,f,null,a,p);for(c in a)if(p=a[c],h=n[c],a.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))if("selected"===c)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else Hd(e,t,c,p,a,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!a.hasOwnProperty(g)&&Hd(e,t,g,null,a,p);for(d in a)if(p=a[d],h=n[d],a.hasOwnProperty(d)&&p!==h&&(null!=p||null!=h))switch(d){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(s(137,t));break;default:Hd(e,t,d,p,a,h)}return;default:if(_t(t)){for(var x in n)p=n[x],n.hasOwnProperty(x)&&void 0!==p&&!a.hasOwnProperty(x)&&Wd(e,t,x,void 0,a,p);for(u in a)p=a[u],h=n[u],!a.hasOwnProperty(u)||p===h||void 0===p&&void 0===h||Wd(e,t,u,p,a,h);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&null!=p&&!a.hasOwnProperty(v)&&Hd(e,t,v,null,a,p);for(m in a)p=a[m],h=n[m],!a.hasOwnProperty(m)||p===h||null==p&&null==h||Hd(e,t,m,p,a,h)}(a,e.type,n,t),a[Le]=t}catch(r){ad(e,e.return,r)}}function Zo(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Yo(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Zo(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Qo(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Vd));else if(4!==a&&27!==a&&null!==(e=e.child))for(Qo(e,t,n),e=e.sibling;null!==e;)Qo(e,t,n),e=e.sibling}function $o(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&27!==a&&null!==(e=e.child))for($o(e,t,n),e=e.sibling;null!==e;)$o(e,t,n),e=e.sibling}var Xo=!1,Jo=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,al=!1;function rl(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:xl(e,n),4&a&&Bo(5,n);break;case 1:if(xl(e,n),4&a)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(o){ad(n,n.return,o)}else{var r=Ts(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){ad(n,n.return,l)}}64&a&&Uo(n),512&a&&Ho(n,n.return);break;case 3:if(xl(e,n),64&a&&null!==(a=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{Lo(a,e)}catch(o){ad(n,n.return,o)}}break;case 26:xl(e,n),512&a&&Ho(n,n.return);break;case 27:case 5:xl(e,n),null===t&&4&a&&Ko(n),512&a&&Ho(n,n.return);break;case 12:default:xl(e,n);break;case 13:xl(e,n),4&a&&dl(e,n);break;case 22:if(!(r=null!==n.memoizedState||Xo)){t=null!==t&&null!==t.memoizedState||Jo;var i=Xo,s=Jo;Xo=r,(Jo=t)&&!s?bl(e,n,0!==(8772&n.subtreeFlags)):xl(e,n),Xo=i,Jo=s}512&a&&("manual"===n.memoizedProps.mode?Ho(n,n.return):Wo(n,n.return))}}function il(e){var t=e.alternate;null!==t&&(e.alternate=null,il(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ke(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,ol=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(xe,n)}catch(s){}switch(n.tag){case 26:Jo||Wo(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Jo||Wo(n,t);var a=sl,r=ol;for(sl=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);Ke(n),sl=a,ol=r;break;case 5:Jo||Wo(n,t);case 6:r=sl;var i=ol;if(sl=null,ll(e,t,n),ol=i,null!==(sl=r))if(ol)try{e=sl,a=n.stateNode,8===e.nodeType?e.parentNode.removeChild(a):e.removeChild(a)}catch(o){ad(n,t,o)}else try{sl.removeChild(n.stateNode)}catch(o){ad(n,t,o)}break;case 18:null!==sl&&(ol?(t=sl,n=n.stateNode,8===t.nodeType?iu(t.parentNode,n):1===t.nodeType&&iu(t,n),fm(t)):iu(sl,n.stateNode));break;case 4:a=sl,r=ol,sl=n.stateNode.containerInfo,ol=!0,ll(e,t,n),sl=a,ol=r;break;case 0:case 11:case 14:case 15:Jo||qo(2,n,t),Jo||qo(4,n,t),ll(e,t,n);break;case 1:Jo||(Wo(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount&&Vo(n,t,a)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Jo||Wo(n,t),Jo=(a=Jo)||null!==n.memoizedState,ll(e,t,n),Jo=a;break;default:ll(e,t,n)}}function dl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{fm(e)}catch(n){ad(t,t.return,n)}}function ul(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(s(435,e.tag))}}(e);t.forEach(function(t){var a=ld.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))})}function ml(e,t){var n=t.deletions;if(null!==n)for(var a=0;a<n.length;a++){var r=n[a],i=e,o=t,l=o;e:for(;null!==l;){switch(l.tag){case 27:case 5:sl=l.stateNode,ol=!1;break e;case 3:case 4:sl=l.stateNode.containerInfo,ol=!0;break e}l=l.return}if(null===sl)throw Error(s(160));cl(i,o,r),sl=null,ol=!1,null!==(i=r.alternate)&&(i.return=null),r.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)hl(t,e),t=t.sibling}var pl=null;function hl(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ml(t,e),fl(e),4&a&&(qo(3,e,e.return),Bo(3,e),qo(5,e,e.return));break;case 1:ml(t,e),fl(e),512&a&&(Jo||null===n||Wo(n,n.return)),64&a&&Xo&&(null!==(e=e.updateQueue)&&(null!==(a=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?a:n.concat(a))));break;case 26:var r=pl;if(ml(t,e),fl(e),512&a&&(Jo||null===n||Wo(n,n.return)),4&a){var i=null!==n?n.memoizedState:null;if(a=e.memoizedState,null===n)if(null===a)if(null===e.stateNode){e:{a=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(a){case"title":(!(i=r.getElementsByTagName("title")[0])||i[We]||i[Fe]||"http://www.w3.org/2000/svg"===i.namespaceURI||i.hasAttribute("itemprop"))&&(i=r.createElement(a),r.head.insertBefore(i,r.querySelector("head > title"))),Kd(i,a,n),i[Fe]=e,$e(i),a=i;break e;case"link":var o=zu("link","href",r).get(a+(n.href||""));if(o)for(var l=0;l<o.length;l++)if((i=o[l]).getAttribute("href")===(null==n.href?null:n.href)&&i.getAttribute("rel")===(null==n.rel?null:n.rel)&&i.getAttribute("title")===(null==n.title?null:n.title)&&i.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){o.splice(l,1);break t}Kd(i=r.createElement(a),a,n),r.head.appendChild(i);break;case"meta":if(o=zu("meta","content",r).get(a+(n.content||"")))for(l=0;l<o.length;l++)if((i=o[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&i.getAttribute("name")===(null==n.name?null:n.name)&&i.getAttribute("property")===(null==n.property?null:n.property)&&i.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&i.getAttribute("charset")===(null==n.charSet?null:n.charSet)){o.splice(l,1);break t}Kd(i=r.createElement(a),a,n),r.head.appendChild(i);break;default:throw Error(s(468,a))}i[Fe]=e,$e(i),a=i}e.stateNode=a}else Eu(r,e.type,e.stateNode);else e.stateNode=ju(r,a,e.memoizedProps);else i!==a?(null===i?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):i.count--,null===a?Eu(r,e.type,e.stateNode):ju(r,a,e.memoizedProps)):null===a&&null!==e.stateNode&&Go(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&a&&null===e.alternate){r=e.stateNode,i=e.memoizedProps;try{for(var c=r.firstChild;c;){var d=c.nextSibling,u=c.nodeName;c[We]||"HEAD"===u||"BODY"===u||"SCRIPT"===u||"STYLE"===u||"LINK"===u&&"stylesheet"===c.rel.toLowerCase()||r.removeChild(c),c=d}for(var m=e.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Kd(r,m,i),r[Fe]=e,r[Le]=i}catch(f){ad(e,e.return,f)}}case 5:if(ml(t,e),fl(e),512&a&&(Jo||null===n||Wo(n,n.return)),32&e.flags){r=e.stateNode;try{jt(r,"")}catch(f){ad(e,e.return,f)}}4&a&&null!=e.stateNode&&Go(e,r=e.memoizedProps,null!==n?n.memoizedProps:r),1024&a&&(el=!0);break;case 6:if(ml(t,e),fl(e),4&a){if(null===e.stateNode)throw Error(s(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(f){ad(e,e.return,f)}}break;case 3:if(_u=null,r=pl,pl=mu(t.containerInfo),ml(t,e),pl=r,fl(e),4&a&&null!==n&&n.memoizedState.isDehydrated)try{fm(t.containerInfo)}catch(f){ad(e,e.return,f)}el&&(el=!1,gl(e));break;case 4:a=pl,pl=mu(e.stateNode.containerInfo),ml(t,e),fl(e),pl=a;break;case 12:ml(t,e),fl(e);break;case 13:ml(t,e),fl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bc=le()),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,ul(e,a)));break;case 22:if(512&a&&(Jo||null===n||Wo(n,n.return)),c=null!==e.memoizedState,d=null!==n&&null!==n.memoizedState,Xo=(u=Xo)||c,Jo=(m=Jo)||d,ml(t,e),Jo=m,Xo=u,fl(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&a&&(t._visibility=c?-2&t._visibility:1|t._visibility,c&&(t=Xo||Jo,null===n||d||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){d=n=t;try{if(r=d.stateNode,c)"function"===typeof(i=r.style).setProperty?i.setProperty("display","none","important"):i.display="none";else{o=d.stateNode;var h=void 0!==(l=d.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;o.style.display=null==h||"boolean"===typeof h?"":(""+h).trim()}}catch(f){ad(d,d.return,f)}}}else if(6===t.tag){if(null===n){d=t;try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(f){ad(d,d.return,f)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&a&&(null!==(a=e.updateQueue)&&(null!==(n=a.retryQueue)&&(a.retryQueue=null,ul(e,n))));break;case 19:ml(t,e),fl(e),4&a&&(null!==(a=e.updateQueue)&&(e.updateQueue=null,ul(e,a)));break;case 21:break;default:ml(t,e),fl(e)}}function fl(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Zo(n)){var a=n;break e}n=n.return}throw Error(s(160))}switch(a.tag){case 27:var r=a.stateNode;$o(e,Yo(e),r);break;case 5:var i=a.stateNode;32&a.flags&&(jt(i,""),a.flags&=-33),$o(e,Yo(e),i);break;case 3:case 4:var o=a.stateNode.containerInfo;Qo(e,Yo(e),o);break;default:throw Error(s(161))}}}catch(l){ad(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function xl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)rl(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qo(4,t,t.return),vl(t);break;case 1:Wo(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&Vo(t,t.return,n),vl(t);break;case 26:case 27:case 5:Wo(t,t.return),vl(t);break;case 22:Wo(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var a=t.alternate,r=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:bl(r,i,n),Bo(4,i);break;case 1:if(bl(r,i,n),"function"===typeof(r=(a=i).stateNode).componentDidMount)try{r.componentDidMount()}catch(c){ad(a,a.return,c)}if(null!==(r=(a=i).updateQueue)){var o=a.stateNode;try{var l=r.shared.hiddenCallbacks;if(null!==l)for(r.shared.hiddenCallbacks=null,r=0;r<l.length;r++)Fo(l[r],o)}catch(c){ad(a,a.return,c)}}n&&64&s&&Uo(i),Ho(i,i.return);break;case 26:case 27:case 5:bl(r,i,n),n&&null===a&&4&s&&Ko(i),Ho(i,i.return);break;case 12:default:bl(r,i,n);break;case 13:bl(r,i,n),n&&4&s&&dl(r,i);break;case 22:null===i.memoizedState&&bl(r,i,n),Ho(i,i.return)}t=t.sibling}}function yl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&qr(n))}function wl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&qr(e))}function jl(e,t,n,a){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)kl(e,t,n,a),t=t.sibling}function kl(e,t,n,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:jl(e,t,n,a),2048&r&&Bo(9,t);break;case 3:jl(e,t,n,a),2048&r&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&qr(e)));break;case 12:if(2048&r){jl(e,t,n,a),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,o=i.onPostCommit;"function"===typeof o&&o(s,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ad(t,t.return,l)}}else jl(e,t,n,a);break;case 23:break;case 22:i=t.stateNode,null!==t.memoizedState?4&i._visibility?jl(e,t,n,a):Sl(e,t):4&i._visibility?jl(e,t,n,a):(i._visibility|=4,Nl(e,t,n,a,0!==(10256&t.subtreeFlags))),2048&r&&yl(t.alternate,t);break;case 24:jl(e,t,n,a),2048&r&&wl(t.alternate,t);break;default:jl(e,t,n,a)}}function Nl(e,t,n,a,r){for(r=r&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var i=e,s=t,o=n,l=a,c=s.flags;switch(s.tag){case 0:case 11:case 15:Nl(i,s,o,l,r),Bo(8,s);break;case 23:break;case 22:var d=s.stateNode;null!==s.memoizedState?4&d._visibility?Nl(i,s,o,l,r):Sl(i,s):(d._visibility|=4,Nl(i,s,o,l,r)),r&&2048&c&&yl(s.alternate,s);break;case 24:Nl(i,s,o,l,r),r&&2048&c&&wl(s.alternate,s);break;default:Nl(i,s,o,l,r)}t=t.sibling}}function Sl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,a=t,r=a.flags;switch(a.tag){case 22:Sl(n,a),2048&r&&yl(a.alternate,a);break;case 24:Sl(n,a),2048&r&&wl(a.alternate,a);break;default:Sl(n,a)}t=t.sibling}}var _l=8192;function zl(e){if(e.subtreeFlags&_l)for(e=e.child;null!==e;)El(e),e=e.sibling}function El(e){switch(e.tag){case 26:zl(e),e.flags&_l&&null!==e.memoizedState&&function(e,t,n){if(null===Pu)throw Error(s(475));var a=Pu;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var r=xu(n.href),i=e.querySelector(vu(r));if(i)return null!==(e=i._p)&&"object"===typeof e&&"function"===typeof e.then&&(a.count++,a=Tu.bind(a),e.then(a,a)),t.state.loading|=4,t.instance=i,void $e(i);i=e.ownerDocument||e,n=bu(n),(r=du.get(r))&&Nu(n,r),$e(i=i.createElement("link"));var o=i;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Kd(i,"link",n),t.instance=i}null===a.stylesheets&&(a.stylesheets=new Map),a.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(a.count++,t=Tu.bind(a),e.addEventListener("load",t),e.addEventListener("error",t))}}(pl,e.memoizedState,e.memoizedProps);break;case 5:default:zl(e);break;case 3:case 4:var t=pl;pl=mu(e.stateNode.containerInfo),zl(e),pl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=_l,_l=16777216,zl(e),_l=t):zl(e))}}function Cl(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Pl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];nl=a,Rl(a,e)}Cl(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Al(e),e=e.sibling}function Al(e){switch(e.tag){case 0:case 11:case 15:Pl(e),2048&e.flags&&qo(9,e,e.return);break;case 3:case 12:default:Pl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Tl(e)):Pl(e)}}function Tl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var a=t[n];nl=a,Rl(a,e)}Cl(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:qo(8,t,t.return),Tl(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Tl(t));break;default:Tl(t)}e=e.sibling}}function Rl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:qo(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var a=n.memoizedState.cachePool.pool;null!=a&&a.refCount++}break;case 24:qr(n.memoizedState.cache)}if(null!==(a=n.child))a.return=n,nl=a;else e:for(n=e;null!==nl;){var r=(a=nl).sibling,i=a.return;if(il(a),a===n){nl=null;break e}if(null!==r){r.return=i,nl=r;break e}nl=i}}}function Ol(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
2ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Dl(e,t,n,a){return new Ol(e,t,n,a)}function Ml(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Il(e,t){var n=e.alternate;return null===n?((n=Dl(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Fl(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ll(e,t,n,a,r,i){var o=0;if(a=e,"function"===typeof e)Ml(e)&&(o=1);else if("string"===typeof e)o=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,Y.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case u:return Bl(n.children,r,i,t);case m:o=8,r|=24;break;case p:return(e=Dl(12,n,t,2|r)).elementType=p,e.lanes=i,e;case v:return(e=Dl(13,n,t,r)).elementType=v,e.lanes=i,e;case b:return(e=Dl(19,n,t,r)).elementType=b,e.lanes=i,e;case j:return ql(n,r,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case h:case g:o=10;break e;case f:o=9;break e;case x:o=11;break e;case y:o=14;break e;case w:o=16,a=null;break e}o=29,n=Error(s(130,null===e?"null":typeof e,"")),a=null}return(t=Dl(o,n,t,r)).elementType=e,t.type=a,t.lanes=i,t}function Bl(e,t,n,a){return(e=Dl(7,e,a,t)).lanes=n,e}function ql(e,t,n,a){(e=Dl(22,e,a,t)).elementType=j,e.lanes=n;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=r._current;if(null===e)throw Error(s(456));if(0===(2&r._pendingVisibility)){var t=Ca(e,2);null!==t&&(r._pendingVisibility|=2,Tc(t,e,2))}},attach:function(){var e=r._current;if(null===e)throw Error(s(456));if(0!==(2&r._pendingVisibility)){var t=Ca(e,2);null!==t&&(r._pendingVisibility&=-3,Tc(t,e,2))}}};return e.stateNode=r,e}function Ul(e,t,n){return(e=Dl(6,e,null,t)).lanes=n,e}function Vl(e,t,n){return(t=Dl(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Hl(e){e.flags|=4}function Wl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Cu(t)){if(null!==(t=Er.current)&&((4194176&ac)===ac?null!==Cr:(62914560&ac)!==ac&&0===(536870912&ac)||t!==Cr))throw mr=lr,or;e.flags|=8192}}function Kl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,fc|=t)}function Gl(e,t){if(!Qa)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Zl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var r=e.child;null!==r;
vendor: 11,499 bytes, line 2
2)n|=r.lanes|r.childLanes,a|=31457280&r.subtreeFlags,a|=31457280&r.flags,r.return=e,r=r.sibling;else for(r=e.child;null!==r;)n|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function Yl(e,t,n){var a=t.pendingProps;switch(Ga(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Zl(t),null;case 3:return n=t.stateNode,a=null,null!==e&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),bo(Lr),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ar(t)?Hl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==$a&&(Oc($a),$a=null))),Zl(t),null;case 26:return n=t.memoizedState,null===e?(Hl(t),null!==n?(Zl(t),Wl(t,n)):(Zl(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Hl(t),Zl(t),Wl(t,n)):(Zl(t),t.flags&=-16777217):(e.memoizedProps!==a&&Hl(t),Zl(t),t.flags&=-16777217),null;case 27:ne(t),n=$.current;var r=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==a&&Hl(t);else{if(!a){if(null===t.stateNode)throw Error(s(166));return Zl(t),null}e=Y.current,ar(t)?tr(t):(e=cu(r,a,n),t.stateNode=e,Hl(t))}return Zl(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==a&&Hl(t);else{if(!a){if(null===t.stateNode)throw Error(s(166));return Zl(t),null}if(e=Y.current,ar(t))tr(t);else{switch(r=Yd($.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=r.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof a.is?r.createElement("select",{is:a.is}):r.createElement("select"),a.multiple?e.multiple=!0:a.size&&(e.size=a.size);break;default:e="string"===typeof a.is?r.createElement(n,{is:a.is}):r.createElement(n)}}e[Fe]=t,e[Le]=a;e:for(r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&27!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;null===r.sibling;){if(null===r.return||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Kd(e,n,a),n){case"button":case"input":case"select":case"textarea":e=!!a.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Hl(t)}}return Zl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==a&&Hl(t);else{if("string"!==typeof a&&null===t.stateNode)throw Error(s(166));if(e=$.current,ar(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,null!==(r=Za))switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Fe]=t,(e=!!(e.nodeValue===n||null!==a&&!0===a.suppressHydrationWarning||Ud(e.nodeValue,n)))||er(t)}else(e=Yd(e).createTextNode(a))[Fe]=t,t.stateNode=e}return Zl(t),null;case 13:if(a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(r=ar(t),null!==a&&null!==a.dehydrated){if(null===e){if(!r)throw Error(s(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(s(317));r[Fe]=t}else rr(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Zl(t),r=!1}else null!==$a&&(Oc($a),$a=null),r=!0;if(!r)return 256&t.flags?(Rr(t),t):(Rr(t),null)}if(Rr(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==a,e=null!==e&&null!==e.memoizedState,n){r=null,null!==(a=t.child).alternate&&null!==a.alternate.memoizedState&&null!==a.alternate.memoizedState.cachePool&&(r=a.alternate.memoizedState.cachePool.pool);var i=null;null!==a.memoizedState&&null!==a.memoizedState.cachePool&&(i=a.memoizedState.cachePool.pool),i!==r&&(a.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Kl(t,t.updateQueue),Zl(t),null;case 4:return ee(),null===e&&Td(t.stateNode.containerInfo),Zl(t),null;case 10:return bo(t.type),Zl(t),null;case 19:if(G(Or),null===(r=t.memoizedState))return Zl(t),null;if(a=0!==(128&t.flags),null===(i=r.rendering))if(a)Gl(r,!1);else{if(0!==dc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Dr(e))){for(t.flags|=128,Gl(r,!1),e=i.updateQueue,t.updateQueue=e,Kl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fl(n,e),n=n.sibling;return Z(Or,1&Or.current|2),t.child}e=e.sibling}null!==r.tail&&le()>yc&&(t.flags|=128,a=!0,Gl(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=Dr(i))){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Kl(t,e),Gl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!i.alternate&&!Qa)return Zl(t),null}else 2*le()-r.renderingStartTime>yc&&536870912!==n&&(t.flags|=128,a=!0,Gl(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(null!==(e=r.last)?e.sibling=i:t.child=i,r.last=i)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=le(),t.sibling=null,e=Or.current,Z(Or,a?1&e|2:1&e),t):(Zl(t),null);case 22:case 23:return Rr(t),zr(),a=null!==t.memoizedState,null!==e?null!==e.memoizedState!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?0!==(536870912&n)&&0===(128&t.flags)&&(Zl(t),6&t.subtreeFlags&&(t.flags|=8192)):Zl(t),null!==(n=t.updateQueue)&&Kl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),a=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),null!==e&&G(Zr),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),bo(Lr),Zl(t),null;case 25:return null}throw Error(s(156,t.tag))}function Ql(e,t){switch(Ga(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return bo(Lr),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Rr(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(s(340));rr()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return G(Or),null;case 4:return ee(),null;case 10:return bo(t.type),null;case 22:case 23:return Rr(t),zr(),null!==e&&G(Zr),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return bo(Lr),null;default:return null}}function $l(e,t){switch(Ga(t),t.tag){case 3:bo(Lr),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Rr(t);break;case 19:G(Or);break;case 10:bo(t.type);break;case 22:case 23:Rr(t),zr(),null!==e&&G(Zr);break;case 24:bo(Lr)}}var Xl={getCacheForType:function(e){var t=So(Lr),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Jl="function"===typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,ac=0,rc=0,ic=null,sc=!1,oc=!1,lc=!1,cc=0,dc=0,uc=0,mc=0,pc=0,hc=0,fc=0,gc=null,xc=null,vc=!1,bc=0,yc=1/0,wc=null,jc=null,kc=!1,Nc=null,Sc=0,_c=0,zc=null,Ec=0,Cc=null;function Pc(){if(0!==(2&ec)&&0!==ac)return ac&-ac;if(null!==P.T){return 0!==Hr?Hr:wd()}return Me()}function Ac(){0===hc&&(hc=0===(536870912&ac)||Qa?Ce():536870912);var e=Er.current;return null!==e&&(e.flags|=32),hc}function Tc(e,t,n){(e===tc&&2===rc||null!==e.cancelPendingCommit)&&(Bc(e,0),Ic(e,ac,hc,!1)),Te(e,n),0!==(2&ec)&&e===tc||(e===tc&&(0===(2&ec)&&(mc|=n),4===dc&&Ic(e,ac,hc,!1)),fd(e))}function Rc(e,t,n){if(0!==(6&ec))throw Error(s(327));for(var a=!n&&0===(60&t)&&0===(t&e.expiredLanes)||ze(e,t),r=a?function(e,t){var n=ec;ec|=2;var a=Uc(),r=Vc();tc!==e||ac!==t?(wc=null,yc=le()+500,Bc(e,t)):oc=ze(e,t);e:for(;;)try{if(0!==rc&&null!==nc){t=nc;var i=ic;t:switch(rc){case 1:rc=0,ic=null,Qc(e,t,i,1);break;case 2:if(cr(i)){rc=0,ic=null,Yc(t);break}t=function(){2===rc&&tc===e&&(rc=7),fd(e)},i.then(t,t);break e;case 3:rc=7;break e;case 4:rc=5;break e;case 7:cr(i)?(rc=0,ic=null,Yc(t)):(rc=0,ic=null,Qc(e,t,i,7));break;case 5:var o=null;switch(nc.tag){case 26:o=nc.memoizedState;case 5:case 27:var l=nc;if(!o||Cu(o)){rc=0,ic=null;var c=l.sibling;if(null!==c)nc=c;else{var d=l.return;null!==d?(nc=d,$c(d)):nc=null}break t}}rc=0,ic=null,Qc(e,t,i,5);break;case 6:rc=0,ic=null,Qc(e,t,i,6);break;case 8:Lc(),dc=6;break e;default:throw Error(s(462))}}Gc();break}catch(u){qc(e,u)}return xo=go=null,P.H=a,P.A=r,ec=n,null!==nc?0:(tc=null,ac=0,_a(),dc)}(e,t):Wc(e,t,!0),i=a;;){if(0===r){oc&&!a&&Ic(e,t,0,!1);break}if(6===r)Ic(e,t,0,!sc);else{if(n=e.current.alternate,i&&!Mc(n)){r=Wc(e,t,!1),i=!1;continue}if(2===r){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=0!==(o=-536870913&e.pendingLanes)?o:536870912&o?536870912:0;if(0!==o){t=o;e:{var l=e;r=gc;var c=l.current.memoizedState.isDehydrated;if(c&&(Bc(l,o).flags|=256),2!==(o=Wc(l,o,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=i,mc|=i,r=4;break e}i=xc,xc=r,null!==i&&Oc(i)}r=o}if(i=!1,2!==r)continue}}if(1===r){Bc(e,0),Ic(e,t,0,!0);break}e:{switch(a=e,r){case 0:case 1:throw Error(s(345));case 4:if((4194176&t)===t){Ic(a,t,hc,!sc);break e}break;case 2:xc=null;break;case 3:case 5:break;default:throw Error(s(329))}if(a.finishedWork=n,a.finishedLanes=t,(62914560&t)===t&&10<(i=bc+300-le())){if(Ic(a,t,hc,!sc),0!==_e(a,0))break e;a.timeoutHandle=eu(Dc.bind(null,a,n,xc,wc,vc,t,hc,mc,fc,sc,2,-0,0),i)}else Dc(a,n,xc,wc,vc,t,hc,mc,fc,sc,0,-0,0)}}break}fd(e)}function Oc(e){null===xc?xc=e:xc.push.apply(xc,e)}function Dc(e,t,n,a,r,i,o,l,c,d,u,m,p){var h=t.subtreeFlags;if((8192&h||16785408===(16785408&h))&&(Pu={stylesheets:null,count:0,unsuspend:Au},El(t),null!==(t=function(){if(null===Pu)throw Error(s(475));var e=Pu;return e.stylesheets&&0===e.count&&Ou(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Ou(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Jc.bind(null,e,n,a,r,o,l,c,1,m,p)),void Ic(e,i,o,!d);Jc(e,n,a,r,o,l,c,u,m,p)}function Mc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var a=0;a<n.length;a++){var r=n[a],i=r.getSnapshot;r=r.value;try{if(!Zn(i(),r))return!1}catch(s){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ic(e,t,n,a){t&=~pc,t&=~mc,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var i=31-ye(r),s=1<<i;a[i]=-1,r&=~s}0!==n&&Re(e,n,t)}function Fc(){return 0!==(6&ec)||(gd(0,!1),!1)}function Lc(){if(null!==nc){if(0===rc)var e=nc.return;else xo=go=null,xi(e=nc),hr=null,fr=0,e=nc;for(;null!==e;)$l(e.alternate,e),e=e.return;nc=null}}function Bc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,tu(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Lc(),tc=e,nc=n=Il(e.current,null),ac=t,rc=0,ic=null,sc=!1,oc=ze(e,t),lc=!1,fc=hc=pc=mc=uc=dc=0,xc=gc=null,vc=!1,0!==(8&t)&&(t|=32&t);var a=e.entangledLanes;if(0!==a)for(e=e.entanglements,a&=t;0<a;){var r=31-ye(a),i=1<<r;t|=e[r],a&=~i}return cc=t,_a(),n}function qc(e,t){Jr=null,P.H=Ns,t===sr?(t=pr(),rc=3):t===or?(t=pr(),rc=4):rc=t===Us?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,ic=t,null===nc&&(dc=1,Is(e,Oa(t,e.current)))}function Uc(){var e=P.H;return P.H=Ns,null===e?Ns:e}function Vc(){var e=P.A;return P.A=Xl,e}function Hc(){dc=4,sc||(4194176&ac)!==ac&&null!==Er.current||(oc=!0),0===(134217727&uc)&&0===(134217727&mc)||null===tc||Ic(tc,ac,hc,!1)}
2function Wc(e,t,n){var a=ec;ec|=2;var r=Uc(),i=Vc();tc===e&&ac===t||(wc=null,Bc(e,t)),t=!1;var s=dc;e:for(;;)try{if(0!==rc&&null!==nc){var o=nc,l=ic;switch(rc){case 8:Lc(),s=6;break e;case 3:case 2:case 6:null===Er.current&&(t=!0);var c=rc;if(rc=0,ic=null,Qc(e,o,l,c),n&&oc){s=0;break e}break;default:c=rc,rc=0,ic=null,Qc(e,o,l,c)}}Kc(),s=dc;break}catch(d){qc(e,d)}return t&&e.shellSuspendCounter++,xo=go=null,ec=a,P.H=r,P.A=i,null===nc&&(tc=null,ac=0,_a()),s}function Kc(){for(;null!==nc;)Zc(nc)}function Gc(){for(;null!==nc&&!se();)Zc(nc)}function Zc(e){var t=ho(e.alternate,e,cc);e.memoizedProps=e.pendingProps,null===t?$c(e):nc=t}function Yc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Xs(n,t,t.pendingProps,t.type,void 0,ac);break;case 11:t=Xs(n,t,t.pendingProps,t.type.render,t.ref,ac);break;case 5:xi(t);default:$l(n,t),t=ho(n,t=nc=Fl(t,cc),cc)}e.memoizedProps=e.pendingProps,null===t?$c(e):nc=t}function Qc(e,t,n,a){xo=go=null,xi(t),hr=null,fr=0;var r=t.return;try{if(function(e,t,n,a,r){if(n.flags|=32768,null!==a&&"object"===typeof a&&"function"===typeof a.then){if(null!==(t=n.alternate)&&jo(t,n,r,!0),null!==(n=Er.current)){switch(n.tag){case 13:return null===Cr?Hc():null===n.alternate&&0===dc&&(dc=3),n.flags&=-257,n.flags|=65536,n.lanes=r,a===lr?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([a]):t.add(a),rd(e,a,r)),!1;case 22:return n.flags|=65536,a===lr?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([a]):n.add(a),rd(e,a,r)),!1}throw Error(s(435,n.tag))}return rd(e,a,r),Hc(),!1}if(Qa)return null!==(t=Er.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==Ja&&ir(Oa(e=Error(s(422),{cause:a}),n))):(a!==Ja&&ir(Oa(t=Error(s(423),{cause:a}),n)),(e=e.current.alternate).flags|=65536,r&=-r,e.lanes|=r,a=Oa(a,n),Oo(e,r=Ls(e.stateNode,a,r)),4!==dc&&(dc=2)),!1;var i=Error(s(520),{cause:a});if(i=Oa(i,n),null===gc?gc=[i]:gc.push(i),4!==dc&&(dc=2),null===t)return!0;a=Oa(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,Oo(n,e=Ls(n.stateNode,a,e)),!1;case 1:if(t=n.type,i=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==i&&"function"===typeof i.componentDidCatch&&(null===jc||!jc.has(i))))return n.flags|=65536,r&=-r,n.lanes|=r,qs(r=Bs(r),e,n,a),Oo(n,r),!1}n=n.return}while(null!==n);return!1}(e,r,t,n,ac))return dc=1,Is(e,Oa(n,e.current)),void(nc=null)}catch(i){if(null!==r)throw nc=r,i;return dc=1,Is(e,Oa(n,e.current)),void(nc=null)}32768&t.flags?(Qa||1===a?e=!0:oc||0!==(536870912&ac)?e=!1:(sc=e=!0,(2===a||3===a||6===a)&&(null!==(a=Er.current)&&13===a.tag&&(a.flags|=16384))),Xc(t,e)):$c(t)}function $c(e){var t=e;do{if(0!==(32768&t.flags))return void Xc(t,sc);e=t.return;var n=Yl(t.alternate,t,cc);if(null!==n)return void(nc=n);if(null!==(t=t.sibling))return void(nc=t);nc=t=e}while(null!==t);0===dc&&(dc=5)}function Xc(e,t){do{var n=Ql(e.alternate,e);if(null!==n)return n.flags&=32767,void(nc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nc=e);nc=e=n}while(null!==e);dc=6,nc=null}function Jc(e,t,n,a,r,i,o,l,c,d){var u=P.T,m=U.p;try{U.p=2,P.T=null,function(e,t,n,a,r,i,o,l){do{td()}while(null!==Nc);if(0!==(6&ec))throw Error(s(327));var c=e.finishedWork;if(a=e.finishedLanes,null===c)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(s(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var d=c.lanes|c.childLanes;if(function(e,t,n,a,r,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var d=31-ye(n),u=1<<d;o[d]=0,l[d]=-1;var m=c[d];if(null!==m)for(c[d]=null,d=0;d<m.length;d++){var p=m[d];null!==p&&(p.lane&=-536870913)}n&=~u}0!==a&&Re(e,a,0),0!==i&&0===r&&0!==e.tag&&(e.suspendedLanes|=i&~(s&~t))}(e,a,d|=Sa,i,o,l),e===tc&&(nc=tc=null,ac=0),0===(10256&c.subtreeFlags)&&0===(10256&c.flags)||kc||(kc=!0,_c=d,zc=n,function(e,t){re(e,t)}(me,function(){return td(),null})),n=0!==(15990&c.flags),0!==(15990&c.subtreeFlags)||n?(n=P.T,P.T=null,i=U.p,U.p=2,o=ec,ec|=4,function(e,t){if(e=e.containerInfo,Gd=Hu,ea(e=Jn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var a=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(a&&0!==a.rangeCount){n=a.anchorNode;var r=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{n.nodeType,i.nodeType}catch(g){n=null;break e}var o=0,l=-1,c=-1,d=0,u=0,m=e,p=null;t:for(;;){for(var h;m!==n||0!==r&&3!==m.nodeType||(l=o+r),m!==i||0!==a&&3!==m.nodeType||(c=o+a),3===m.nodeType&&(o+=m.nodeValue.length),null!==(h=m.firstChild);)p=m,m=h;for(;;){if(m===e)break t;if(p===n&&++d===r&&(l=o),p===i&&++u===a&&(c=o),null!==(h=m.nextSibling))break;p=(m=p).parentNode}m=h}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zd={focusedElem:e,selectionRange:n},Hu=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(i=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==i){e=void 0,n=t,r=i.memoizedProps,i=i.memoizedState,a=n.stateNode;try{var f=Ts(n.type,r,(n.elementType,n.type));e=a.getSnapshotBeforeUpdate(f,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(x){ad(n,n.return,x)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))su(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":su(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(s(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}f=al,al=!1}(e,c),hl(c,e),ta(Zd,e.containerInfo),Hu=!!Gd,Zd=Gd=null,e.current=c,rl(e,c.alternate,c),oe(),ec=o,U.p=i,P.T=n):e.current=c,kc?(kc=!1,Nc=e,Sc=a):ed(e,d),d=e.pendingLanes,0===d&&(jc=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(xe,e,void 0,128===(128&e.current.flags))}catch(t){}}(c.stateNode),fd(e),null!==t)for(r=e.onRecoverableError,c=0;c<t.length;c++)d=t[c],r(d.value,{componentStack:d.stack});0!==(3&Sc)&&td(),d=e.pendingLanes,0!==(4194218&a)&&0!==(42&d)?e===Cc?Ec++:(Ec=0,Cc=e):Ec=0,gd(0,!1)}(e,t,n,a,m,r,i,o)}finally{P.T=u,U.p=m}}function ed(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,qr(t)))}function td(){if(null!==Nc){var e=Nc,t=_c;_c=0;var n=De(Sc),a=P.T,r=U.p;try{if(U.p=32>n?32:n,P.T=null,null===Nc)var i=!1;else{n=zc,zc=null;var o=Nc,l=Sc;if(Nc=null,Sc=0,0!==(6&ec))throw Error(s(331));var c=ec;if(ec|=4,Al(o.current),kl(o,o.current,l,n),ec=c,gd(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(xe,o)}catch(d){}i=!0}return i}finally{U.p=r,P.T=a,ed(e,t)}}return!1}
2function nd(e,t,n){t=Oa(n,t),null!==(e=To(e,t=Ls(e.stateNode,t,2),2))&&(Te(e,2),fd(e))}function ad(e,t,n){if(3===e.tag)nd(e,e,n);else for(;null!==t;){if(3===t.tag){nd(t,e,n);break}if(1===t.tag){var a=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof a.componentDidCatch&&(null===jc||!jc.has(a))){e=Oa(n,e),null!==(a=To(t,n=Bs(2),2))&&(qs(n,a,t,e),Te(a,2),fd(a));break}}t=t.return}}function rd(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new Jl;var r=new Set;a.set(t,r)}else void 0===(r=a.get(t))&&(r=new Set,a.set(t,r));r.has(n)||(lc=!0,r.add(n),e=id.bind(null,e,t,n),t.then(e,e))}function id(e,t,n){var a=e.pingCache;null!==a&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(ac&n)===n&&(4===dc||3===dc&&(62914560&ac)===ac&&300>le()-bc?0===(2&ec)&&Bc(e,0):pc|=n,fc===ac&&(fc=0)),fd(e)}function sd(e,t){0===t&&(t=Pe()),null!==(e=Ca(e,t))&&(Te(e,t),fd(e))}function od(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),sd(e,n)}function ld(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,r=e.memoizedState;null!==r&&(n=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}null!==a&&a.delete(t),sd(e,n)}var cd=null,dd=null,ud=!1,md=!1,pd=!1,hd=0;function fd(e){var t;e!==dd&&null===e.next&&(null===dd?cd=dd=e:dd=dd.next=e),md=!0,ud||(ud=!0,t=xd,au(function(){0!==(6&ec)?re(de,t):t()}))}function gd(e,t){if(!pd&&md){pd=!0;do{for(var n=!1,a=cd;null!==a;){if(!t)if(0!==e){var r=a.pendingLanes;if(0===r)var i=0;else{var s=a.suspendedLanes,o=a.pingedLanes;i=(1<<31-ye(42|e)+1)-1,i=201326677&(i&=r&~(s&~o))?201326677&i|1:i?2|i:0}0!==i&&(n=!0,yd(a,i))}else i=ac,0===(3&(i=_e(a,a===tc?i:0)))||ze(a,i)||(n=!0,yd(a,i));a=a.next}}while(n);pd=!1}}function xd(){md=ud=!1;var e=0;0!==hd&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Jd&&(Jd=e,!0);return Jd=null,!1}()&&(e=hd),hd=0);for(var t=le(),n=null,a=cd;null!==a;){var r=a.next,i=vd(a,t);0===i?(a.next=null,null===n?cd=r:n.next=r,null===r&&(dd=n)):(n=a,(0!==e||0!==(3&i))&&(md=!0)),a=r}gd(e,!1)}function vd(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,i=-62914561&e.pendingLanes;0<i;){var s=31-ye(i),o=1<<s,l=r[s];-1===l?0!==(o&n)&&0===(o&a)||(r[s]=Ee(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(n=ac,n=_e(e,e===(t=tc)?n:0),a=e.callbackNode,0===n||e===t&&2===rc||null!==e.cancelPendingCommit)return null!==a&&null!==a&&ie(a),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||ze(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==a&&ie(a),De(n)){case 2:case 8:n=ue;break;case 32:default:n=me;break;case 268435456:n=he}return a=bd.bind(null,e),n=re(n,a),e.callbackPriority=t,e.callbackNode=n,t}return null!==a&&null!==a&&ie(a),e.callbackPriority=2,e.callbackNode=null,2}function bd(e,t){var n=e.callbackNode;if(td()&&e.callbackNode!==n)return null;var a=ac;return 0===(a=_e(e,e===tc?a:0))?null:(Rc(e,a,t),vd(e,le()),null!=e.callbackNode&&e.callbackNode===n?bd.bind(null,e):null)}function yd(e,t){if(td())return null;Rc(e,t,!0)}function wd(){return 0===hd&&(hd=Ce()),hd}function jd(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:Ct(""+e)}function kd(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Nd=0;Nd<wa.length;Nd++){var Sd=wa[Nd];ja(Sd.toLowerCase(),"on"+(Sd[0].toUpperCase()+Sd.slice(1)))}ja(pa,"onAnimationEnd"),ja(ha,"onAnimationIteration"),ja(fa,"onAnimationStart"),ja("dblclick","onDoubleClick"),ja("focusin","onFocus"),ja("focusout","onBlur"),ja(ga,"onTransitionRun"),ja(xa,"onTransitionStart"),ja(va,"onTransitionCancel"),ja(ba,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _d="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),zd=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_d));function Ed(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var a=e[n],r=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var s=a.length-1;0<=s;s--){var o=a[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=c;try{i(r)}catch(d){Rs(d)}r.currentTarget=null,i=l}else for(s=0;s<a.length;s++){if(l=(o=a[s]).instance,c=o.currentTarget,o=o.listener,l!==i&&r.isPropagationStopped())break e;i=o,r.currentTarget=c;try{i(r)}catch(d){Rs(d)}r.currentTarget=null,i=l}}}}function Cd(e,t){var n=t[qe];void 0===n&&(n=t[qe]=new Set);var a=e+"__bubble";n.has(a)||(Rd(t,e,2,!1),n.add(a))}function Pd(e,t,n){var a=0;t&&(a|=4),Rd(n,e,a,t)}var Ad="_reactListening"+Math.random().toString(36).slice(2);function Td(e){if(!e[Ad]){e[Ad]=!0,Xe.forEach(function(t){"selectionchange"!==t&&(zd.has(t)||Pd(t,!1,e),Pd(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ad]||(t[Ad]=!0,Pd("selectionchange",!1,t))}}function Rd(e,t,n,a){switch($u(t)){case 2:var r=Wu;break;case 8:r=Ku;break;default:r=Gu}n=r.bind(null,t,n,e),r=void 0,!Ft||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(r=!0),a?void 0!==r?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):void 0!==r?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function Od(e,t,n,a,r){var i=a;if(0===(1&t)&&0===(2&t)&&null!==a)e:for(;;){if(null===a)return;var s=a.tag;if(3===s||4===s){var o=a.stateNode.containerInfo;if(o===r||8===o.nodeType&&o.parentNode===r)break;if(4===s)for(s=a.return;null!==s;){var l=s.tag;if((3===l||4===l)&&((l=s.stateNode.containerInfo)===r||8===l.nodeType&&l.parentNode===r))return;s=s.return}for(;null!==o;){if(null===(s=Ge(o)))return;if(5===(l=s.tag)||6===l||26===l||27===l){a=i=s;continue e}o=o.parentNode}}a=a.return}Mt(function(){var a=i,r=At(n),s=[];e:{var o=ya.get(e);if(void 0!==o){var l=Xt,c=e;switch(e){case"keypress":if(0===Ht(n))break e;case"keydown":case"keyup":l=hn;break;case"focusin":c="focus",l=rn;break;case"focusout":c="blur",l=rn;break;case"beforeblur":case"afterblur":l=rn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=an;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=gn;break;case pa:case ha:case fa:l=sn;break;case ba:l=xn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=on;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=fn;break;case"toggle":case"beforetoggle":l=bn}var d=0!==(4&t),u=!d&&("scroll"===e||"scrollend"===e),m=d?null!==o?o+"Capture":null:o;d=[];for(var p,h=a;null!==h;){var f=h;if(p=f.stateNode,5!==(f=f.tag)&&26!==f&&27!==f||null===p||null===m||null!=(f=It(h,m))&&d.push(Dd(h,f,p)),u)break;h=h.return}0<d.length&&(o=new l(o,c,null,n,r),s.push({event:o,listeners:d}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(o="mouseover"===e||"pointerover"===e)||n===Pt||!(c=n.relatedTarget||n.fromElement)||!Ge(c)&&!c[Be])&&(l||o)&&(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,l?(l=a,null!==(c=(c=n.relatedTarget||n.toElement)?Ge(c):null)&&(u=I(c),d=c.tag,c!==u||5!==d&&27!==d&&6!==d)&&(c=null)):(l=null,c=a),l!==c)){if(d=nn,f="onMouseLeave",m="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(d=fn,f="onPointerLeave",m="onPointerEnter",h="pointer"),u=null==l?o:Ye(l),p=null==c?o:Ye(c),(o=new d(f,h+"leave",l,n,r)).target=u,o.relatedTarget=p,f=null,Ge(r)===a&&((d=new d(m,h+"enter",c,n,r)).target=p,d.relatedTarget=u,f=d),u=f,l&&c)e:{for(m=c,h=0,p=d=l;p;p=Id(p))h++;for(p=0,f=m;f;f=Id(f))p++;for(;0<h-p;)d=Id(d),h--;for(;0<p-h;)m=Id(m),p--;for(;h--;){if(d===m||null!==m&&d===m.alternate)break e;d=Id(d),m=Id(m)}d=null}else d=null;null!==l&&Fd(s,o,l,d,!1),null!==c&&null!==u&&Fd(s,u,c,d,!0)}if("select"===(l=(o=a?Ye(a):window).nodeName&&o.nodeName.toLowerCase())||"input"===l&&"file"===o.type)var g=In;else if(An(o))if(Fn)g=Gn;else{g=Wn;var x=Hn}else!(l=o.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==o.type&&"radio"!==o.type?a&&_t(a.elementType)&&(g=In):g=Kn;switch(g&&(g=g(e,a))?Tn(s,g,n,r):(x&&x(e,o,a),"focusout"===e&&a&&"number"===o.type&&null!=a.memoizedProps.value&&vt(o,"number",o.value)),x=a?Ye(a):window,e){case"focusin":(An(x)||"true"===x.c
vendor: 4,542 bytes, line 2
2ontentEditable)&&(aa=x,ra=a,ia=null);break;case"focusout":ia=ra=aa=null;break;case"mousedown":sa=!0;break;case"contextmenu":case"mouseup":case"dragend":sa=!1,oa(s,n,r);break;case"selectionchange":if(na)break;case"keydown":case"keyup":oa(s,n,r)}var v;if(wn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Cn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Cn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Cn&&(v=Vt()):(qt="value"in(Bt=r)?Bt.value:Bt.textContent,Cn=!0)),0<(x=Md(a,b)).length&&(b=new ln(b,e,null,n,r),s.push({event:b,listeners:x}),v?b.data=v:null!==(v=En(n))&&(b.data=v))),(v=kn?function(e,t){switch(e){case"compositionend":return En(t);case"keypress":return 32!==t.which?null:(_n=!0,Sn);case"textInput":return(e=t.data)===Sn&&_n?null:e;default:return null}}(e,n):function(e,t){if(Cn)return"compositionend"===e||!wn&&zn(e,t)?(e=Vt(),Ut=qt=Bt=null,Cn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=Md(a,"onBeforeInput")).length&&(x=new ln("onBeforeInput","beforeinput",null,n,r),s.push({event:x,listeners:b}),x.data=v)),function(e,t,n,a,r){if("submit"===t&&n&&n.stateNode===r){var i=jd((r[Le]||null).action),s=a.submitter;s&&null!==(t=(t=s[Le]||null)?jd(t.formAction):s.getAttribute("formAction"))&&(i=t,s=null);var o=new Xt("action","action",null,a,r);e.push({event:o,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(0!==hd){var e=s?kd(r,s):new FormData(r);ds(n,{pending:!0,data:e,method:r.method,action:i},null,e)}}else"function"===typeof i&&(o.preventDefault(),e=s?kd(r,s):new FormData(r),ds(n,{pending:!0,data:e,method:r.method,action:i},i,e))},currentTarget:r}]})}}(s,e,a,n,r)}Ed(s,t)})}function Dd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+"Capture",a=[];null!==e;){var r=e,i=r.stateNode;5!==(r=r.tag)&&26!==r&&27!==r||null===i||(null!=(r=It(e,n))&&a.unshift(Dd(e,r,i)),null!=(r=It(e,t))&&a.push(Dd(e,r,i))),e=e.return}return a}function Id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Fd(e,t,n,a,r){for(var i=t._reactName,s=[];null!==n&&n!==a;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,null!==l&&l===a)break;5!==o&&26!==o&&27!==o||null===c||(l=c,r?null!=(c=It(n,i))&&s.unshift(Dd(n,c,l)):r||null!=(c=It(n,i))&&s.push(Dd(n,c,l))),n=n.return}0!==s.length&&e.push({event:t,listeners:s})}var Ld=/\r\n?/g,Bd=/\u0000|\uFFFD/g;function qd(e){return("string"===typeof e?e:""+e).replace(Ld,"\n").replace(Bd,"")}function Ud(e,t){return t=qd(t),qd(e)===t}function Vd(){}function Hd(e,t,n,a,r,i){switch(n){case"children":"string"===typeof a?"body"===t||"textarea"===t&&""===a||jt(e,a):("number"===typeof a||"bigint"===typeof a)&&"body"!==t&&jt(e,""+a);break;case"className":ot(e,"class",a);break;case"tabIndex":ot(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ot(e,n,a);break;case"style":St(e,a,i);break;case"data":if("object"!==t){ot(e,"data",a);break}case"src":case"href":if(""===a&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==a||"function"===typeof a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Ct(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if("function"===typeof a){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof i&&("formAction"===n?("input"!==t&&Hd(e,t,"name",r.name,r,null),Hd(e,t,"formEncType",r.formEncType,r,null),Hd(e,t,"formMethod",r.formMethod,r,null),Hd(e,t,"formTarget",r.formTarget,r,null)):(Hd(e,t,"encType",r.encType,r,null),Hd(e,t,"method",r.method,r,null),Hd(e,t,"target",r.target,r,null))),null==a||"symbol"===typeof a||"boolean"===typeof a){e.removeAttribute(n);break}a=Ct(""+a),e.setAttribute(n,a);break;case"onClick":null!=a&&(e.onclick=Vd);break;case"onScroll":null!=a&&Cd("scroll",e);break;case"onScrollEnd":null!=a&&Cd("scrollend",e);break;
2case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(s(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"muted":e.muted=a&&"function"!==typeof a&&"symbol"!==typeof a;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==a||"function"===typeof a||"boolean"===typeof a||"symbol"===typeof a){e.removeAttribute("xlink:href");break}n=Ct(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""+a):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===a?e.setAttribute(n,""):!1!==a&&null!=a&&"function"!==typeof a&&"symbol"!==typeof a?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":null==a||"function"===typeof a||"symbol"===typeof a||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Cd("beforetoggle",e),Cd("toggle",e),st(e,"popover",a);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":st(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&st(e,n=zt.get(n)||n,a)}}function Wd(e,t,n,a,r,i){switch(n){case"style":St(e,a,i);break;case"dangerouslySetInnerHTML":if(null!=a){if("object"!==typeof a||!("__html"in a))throw Error(s(61));if(null!=(n=a.__html)){if(null!=r.children)throw Error(s(60));e.innerHTML=n}}break;case"children":"string"===typeof a?jt(e,a):("number"===typeof a||"bigint"===typeof a)&&jt(e,""+a);break;case"onScroll":null!=a&&Cd("scroll",e);break;case"onScrollEnd":null!=a&&Cd("scrollend",e);break;case"onClick":null!=a&&(e.onclick=Vd);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Je.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),"function"===typeof(i=null!=(i=e[Le]||null)?i[n]:null)&&e.removeEventListener(t,i,r),"function"!==typeof a)?n in e?e[n]=a:!0===a?e.setAttribute(n,""):st(e,n,a):("function"!==typeof i&&null!==i&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,r)))}}function Kd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Cd("error",e),Cd("load",e);var a,r=!1,i=!1;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(null!=o)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Hd(e,t,a,o,n,null)}}return i&&Hd(e,t,"srcSet",n.srcSet,n,null),void(r&&Hd(e,t,"src",n.src,n,null));case"input":Cd("invalid",e);var l=a=o=i=null,c=null,d=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(null!=u)switch(r){case"name":i=u;break;case"type":o=u;break;case"checked":c=u;break;case"defaultChecked":d=u;break;case"value":a=u;break;case"defaultValue":l=u;break;case"children":case"dangerouslySetInnerHTML":if(null!=u)throw Error(s(137,t));break;default:Hd(e,t,r,u,n,null)}}return xt(e,a,l,c,d,o,i,!1),void ut(e);case"select":for(i in Cd("invalid",e),r=o=a=null,n)if(n.hasOwnProperty(i)&&null!=(l=n[i]))switch(i){case"value":a=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:Hd(e,t,i,l,n,null)}return t=a,n=o,e.multiple=!!r,void(null!=t?bt(e,!!r,t,!1):null!=n&&bt(e,!!r,n,!0));case"textarea":for(o in Cd("invalid",e),a=i=r=null,n)if(n.hasOwnProperty(o)&&null!=(l=n[o]))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"children":a=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(s(91));break;default:Hd(e,t,o,l,n,null)}return wt(e,r,i,a),void ut(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(r=n[c]))if("selected"===c)e.selected=r&&"function"!==typeof r&&"symbol"!==typeof r;else Hd(e,t,c,r,n,null);return;case"dialog":Cd("cancel",e),Cd("close",e);break;case"iframe":case"object":Cd("load",e);break;case"video":case"audio":for(r=0;r<_d.length;r++)Cd(_d[r],e);break;case"image":Cd("error",e),Cd("load",e);break;case"details":Cd("toggle",e);break;case"embed":case"source":case"link":Cd("error",e),Cd("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(d in n)if(n.hasOwnProperty(d)&&null!=(r=n[d]))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Hd(e,t,d,r,n,null)}return;default:if(_t(t)){for(u in n)n.hasOwnProperty(u)&&(void 0!==(r=n[u])&&Wd(e,t,u,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(r=n[l])&&Hd(e,t,l,r,n,null))}var Gd=null,Zd=null;
2function Yd(e){return 9===e.nodeType?e:e.ownerDocument}function Qd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $d(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Xd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Jd=null;var eu="function"===typeof setTimeout?setTimeout:void 0,tu="function"===typeof clearTimeout?clearTimeout:void 0,nu="function"===typeof Promise?Promise:void 0,au="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nu?function(e){return nu.resolve(null).then(e).catch(ru)}:eu;function ru(e){setTimeout(function(){throw e})}function iu(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===a)return e.removeChild(r),void fm(t);a--}else"$"!==n&&"$?"!==n&&"$!"!==n||a++;n=r}while(n);fm(t)}function su(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":su(n),Ke(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function ou(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function lu(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}function cu(e,t,n){switch(t=Yd(n),e){case"html":if(!(e=t.documentElement))throw Error(s(452));return e;case"head":if(!(e=t.head))throw Error(s(453));return e;case"body":if(!(e=t.body))throw Error(s(454));return e;default:throw Error(s(451))}}var du=new Map,uu=new Set;function mu(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var pu=U.d;U.d={f:function(){var e=pu.f(),t=Fc();return e||t},r:function(e){var t=Ze(e);null!==t&&5===t.tag&&"form"===t.type?ms(t):pu.r(e)},D:function(e){pu.D(e),fu("dns-prefetch",e,null)},C:function(e,t){pu.C(e,t),fu("preconnect",e,t)},L:function(e,t,n){pu.L(e,t,n);var a=hu;if(a&&e&&t){var r='link[rel="preload"][as="'+ft(t)+'"]';"image"===t&&n&&n.imageSrcSet?(r+='[imagesrcset="'+ft(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(r+='[imagesizes="'+ft(n.imageSizes)+'"]')):r+='[href="'+ft(e)+'"]';var i=r;switch(t){case"style":i=xu(e);break;case"script":i=yu(e)}du.has(i)||(e=A({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),du.set(i,e),null!==a.querySelector(r)||"style"===t&&a.querySelector(vu(i))||"script"===t&&a.querySelector(wu(i))||(Kd(t=a.createElement("link"),"link",e),$e(t),a.head.appendChild(t)))}},m:function(e,t){pu.m(e,t);var n=hu;if(n&&e){var a=t&&"string"===typeof t.as?t.as:"script",r='link[rel="modulepreload"][as="'+ft(a)+'"][href="'+ft(e)+'"]',i=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=yu(e)}if(!du.has(i)&&(e=A({rel:"modulepreload",href:e},t),du.set(i,e),null===n.querySelector(r))){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(wu(i)))return}Kd(a=n.createElement("link"),"link",e),$e(a),n.head.appendChild(a)}}},X:function(e,t){pu.X(e,t);var n=hu;if(n&&e){var a=Qe(n).hoistableScripts,r=yu(e),i=a.get(r);i||((i=n.querySelector(wu(r)))||(e=A({src:e,async:!0},t),(t=du.get(r))&&Su(e,t),$e(i=n.createElement("script")),Kd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}},S:function(e,t,n){pu.S(e,t,n);var a=hu;if(a&&e){var r=Qe(a).hoistableStyles,i=xu(e);t=t||"default";var s=r.get(i);if(!s){var o={loading:0,preload:null};if(s=a.querySelector(vu(i)))o.loading=5;else{e=A({rel:"stylesheet",href:e,"data-precedence":t},n),(n=du.get(i))&&Nu(e,n);var l=s=a.createElement("link");$e(l),Kd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,ku(s,t,a)}s={type:"stylesheet",instance:s,count:1,state:o},r.set(i,s)}}},M:function(e,t){pu.M(e,t);var n=hu;if(n&&e){var a=Qe(n).hoistableScripts,r=yu(e),i=a.get(r);i||((i=n.querySelector(wu(r)))||(e=A({src:e,async:!0,type:"module"},t),(t=du.get(r))&&Su(e,t),$e(i=n.createElement("script")),Kd(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(r,i))}}};
vendor: 8,641 bytes, line 2
2var hu="undefined"===typeof document?null:document;function fu(e,t,n){var a=hu;if(a&&"string"===typeof t&&t){var r=ft(t);r='link[rel="'+e+'"][href="'+r+'"]',"string"===typeof n&&(r+='[crossorigin="'+n+'"]'),uu.has(r)||(uu.add(r),e={rel:e,crossOrigin:n,href:t},null===a.querySelector(r)&&(Kd(t=a.createElement("link"),"link",e),$e(t),a.head.appendChild(t)))}}function gu(e,t,n,a){var r,i,o,l,c=(c=$.current)?mu(c):null;if(!c)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=xu(n.href),(a=(n=Qe(c).hoistableStyles).get(t))||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=xu(n.href);var d=Qe(c).hoistableStyles,u=d.get(e);if(u||(c=c.ownerDocument||c,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,u),(d=c.querySelector(vu(e)))&&!d._p&&(u.instance=d,u.state.loading=5),du.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},du.set(e,n),d||(r=c,i=e,o=n,l=u.state,r.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=r.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Kd(i,"link",o),$e(i),r.head.appendChild(i))))),t&&null===a)throw Error(s(528,""));return u}if(t&&null!==a)throw Error(s(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=yu(n),(a=(n=Qe(c).hoistableScripts).get(t))||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function xu(e){return'href="'+ft(e)+'"'}function vu(e){return'link[rel="stylesheet"]['+e+"]"}function bu(e){return A({},e,{"data-precedence":e.precedence,precedence:null})}function yu(e){return'[src="'+ft(e)+'"]'}function wu(e){return"script[async]"+e}function ju(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+ft(n.href)+'"]');if(a)return t.instance=a,$e(a),a;var r=A({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return $e(a=(e.ownerDocument||e).createElement("style")),Kd(a,"style",r),ku(a,n.precedence,e),t.instance=a;case"stylesheet":r=xu(n.href);var i=e.querySelector(vu(r));if(i)return t.state.loading|=4,t.instance=i,$e(i),i;a=bu(n),(r=du.get(r))&&Nu(a,r),$e(i=(e.ownerDocument||e).createElement("link"));var o=i;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Kd(i,"link",a),t.state.loading|=4,ku(i,n.precedence,e),t.instance=i;case"script":return i=yu(n.src),(r=e.querySelector(wu(i)))?(t.instance=r,$e(r),r):(a=n,(r=du.get(i))&&Su(a=A({},n),r),$e(r=(e=e.ownerDocument||e).createElement("script")),Kd(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(a=t.instance,t.state.loading|=4,ku(a,n.precedence,e));return t.instance}function ku(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,i=r,s=0;s<a.length;s++){var o=a[s];if(o.dataset.precedence===t)i=o;else if(i!==r)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Nu(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Su(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var _u=null;function zu(e,t,n){if(null===_u){var a=new Map,r=_u=new Map;r.set(n,a)}else(a=(r=_u).get(n))||(a=new Map,r.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var i=n[r];if(!(i[We]||i[Fe]||"link"===e&&"stylesheet"===i.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==i.namespaceURI){var s=i.getAttribute(t)||"";s=e+s;var o=a.get(s);o?o.push(i):a.set(s,[i])}}return a}function Eu(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Cu(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Pu=null;function Au(){}function Tu(){if(this.count--,0===this.count)if(this.stylesheets)Ou(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Ru=null;function Ou(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Ru=new Map,t.forEach(Du,e),Ru=null,Tu.call(e))}function Du(e,t){if(!(4&t.state.loading)){var n=Ru.get(e);if(n)var a=n.get(null);else{n=new Map,Ru.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<r.length;i++){var s=r[i];"LINK"!==s.nodeName&&"not all"===s.getAttribute("media")||(n.set(s.dataset.precedence,s),a=s)}a&&n.set(null,a)}s=(r=t.instance).getAttribute("data-precedence"),(i=n.get(s)||a)===a&&n.set(null,r),n.set(s,r),this.count++,a=Tu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),i?i.parentNode.insertBefore(r,i.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(r,e.firstChild),t.state.loading|=4}}var Mu={$$typeof:g,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function Iu(e,t,n,a,r,i,s,o){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ae(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ae(0),this.hiddenUpdates=Ae(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function Fu(e,t,n,a,r,i,s,o,l,c,d,u){return e=new Iu(e,t,n,s,o,l,c,u),t=1,!0===i&&(t|=24),i=Dl(3,null,null,t),e.current=i,i.stateNode=e,(t=Br()).refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:n,cache:t},Co(i),e}function Lu(e){return e?e=Ta:Ta}function Bu(e,t,n,a,r,i){r=Lu(r),null===a.context?a.context=r:a.pendingContext=r,(a=Ao(t)).payload={element:n},null!==(i=void 0===i?null:i)&&(a.callback=i),null!==(n=To(e,a,t))&&(Tc(n,0,t),Ro(n,e,t))}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Uu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}function Vu(e){if(13===e.tag){var t=Ca(e,67108864);null!==t&&Tc(t,0,67108864),Uu(e,67108864)}}var Hu=!0;function Wu(e,t,n,a){var r=P.T;P.T=null;var i=U.p;try{U.p=2,Gu(e,t,n,a)}finally{U.p=i,P.T=r}}function Ku(e,t,n,a){var r=P.T;P.T=null;var i=U.p;try{U.p=8,Gu(e,t,n,a)}finally{U.p=i,P.T=r}}function Gu(e,t,n,a){if(Hu){var r=Zu(a);if(null===r)Od(e,t,a,Yu,n),sm(e,a);else if(function(e,t,n,a,r){switch(t){case"focusin":return Ju=om(Ju,e,t,n,a,r),!0;case"dragenter":return em=om(em,e,t,n,a,r),!0;case"mouseover":return tm=om(tm,e,t,n,a,r),!0;case"pointerover":var i=r.pointerId;return nm.set(i,om(nm.get(i)||null,e,t,n,a,r)),!0;case"gotpointercapture":return i=r.pointerId,am.set(i,om(am.get(i)||null,e,t,n,a,r)),!0}return!1}(r,e,t,n,a))a.stopPropagation();else if(sm(e,a),4&t&&-1<im.indexOf(e)){for(;null!==r;){var i=Ze(r);if(null!==i)switch(i.tag){case 3:if((i=i.stateNode).current.memoizedState.isDehydrated){var s=Se(i.pendingLanes);if(0!==s){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-ye(s);o.entanglements[1]|=l,s&=~l}fd(i),0===(6&ec)&&(yc=le()+500,gd(0,!1))}}break;case 13:null!==(o=Ca(i,2))&&Tc(o,0,2),Fc(),Uu(i,2)}if(null===(i=Zu(a))&&Od(e,t,a,Yu,n),i===r)break;r=i}null!==r&&a.stopPropagation()}else Od(e,t,a,null,n)}}function Zu(e){return Qu(e=At(e))}var Yu=null;function Qu(e){if(Yu=null,null!==(e=Ge(e))){var t=I(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=F(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yu=e,null}function $u(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 2,157 bytes, line 2
2:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case de:return 2;case ue:return 8;case me:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Xu=!1,Ju=null,em=null,tm=null,nm=new Map,am=new Map,rm=[],im="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function sm(e,t){switch(e){case"focusin":case"focusout":Ju=null;break;case"dragenter":case"dragleave":em=null;break;case"mouseover":case"mouseout":tm=null;break;case"pointerover":case"pointerout":nm.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":am.delete(t.pointerId)}}function om(e,t,n,a,r,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:i,targetContainers:[r]},null!==t&&(null!==(t=Ze(t))&&Vu(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,null!==r&&-1===t.indexOf(r)&&t.push(r),e)}function lm(e){var t=Ge(e.target);if(null!==t){var n=I(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=F(n)))return e.blockedOn=t,void function(e,t){var n=U.p;try{return U.p=e,t()}finally{U.p=n}}(e.priority,function(){if(13===n.tag){var e=Pc(),t=Ca(n,e);null!==t&&Tc(t,0,e),Uu(n,e)}})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function cm(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zu(e.nativeEvent);if(null!==n)return null!==(t=Ze(n))&&Vu(t),e.blockedOn=n,!1;var a=new(n=e.nativeEvent).constructor(n.type,n);Pt=a,n.target.dispatchEvent(a),Pt=null,t.shift()}return!0}function dm(e,t,n){cm(e)&&n.delete(t)}function um(){Xu=!1,null!==Ju&&cm(Ju)&&(Ju=null),null!==em&&cm(em)&&(em=null),null!==tm&&cm(tm)&&(tm=null),nm.forEach(dm),am.forEach(dm)}function mm(e,t){e.blockedOn===t&&(e.blockedOn=null,Xu||(Xu=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,um)))}var pm=null;function hm(e){pm!==e&&(pm=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){pm===e&&(pm=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],r=e[t+2];if("function"!==typeof a){if(null===Qu(a||n))continue;break}var i=Ze(n);null!==i&&(e.splice(t,3),t-=3,ds(i,{pending:!0,data:r,method:n.method,action:a},a,r))}}))}function fm(e){function t(t){return mm(t,e)}null!==Ju&&mm(Ju,e),null!==em&&mm(em,e),null!==tm&&mm(tm,e),nm.forEach(t),am.forEach(t);for(var n=0;n<rm.length;n++){var a=rm[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<rm.length&&null===(n=rm[0]).blockedOn;)lm(n),null===n.blockedOn&&rm.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(a=0;a<n.length;a+=3){var r=n[a],i=n[a+1],s=r[Le]||null;if("function"===typeof i)s||hm(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(r=i,s=i[Le]||null)o=s.formAction;else if(null!==Qu(r))continue}else o=s.action;"function"===typeof o?n[a+1]=o:(n.splice(a,3),a-=3),hm(n)}}}function gm(e){this._internalRoot=e}function xm(e){this._internalRoot=e}xm.prototype.render=gm.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(s(409));Bu(t.current,Pc(),e,t,null,null)},xm.prototype.unmount=gm.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&td(),Bu(e.current,2,null,e,null,null),Fc(),t[Be]=null}},xm.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<rm.length&&0!==t&&t<rm[n].priority;n++);rm.splice(n,0,e),0===n&&lm(e)}};var vm=r.version;if("19.0.0"!==vm)throw Error(s(527,vm,"19.0.0"));U.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(s(188));throw e=Object.keys(e).join(","),Error(s(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=I(e)))throw Error(s(188));return t!==e?null:e}for(var n=e,a=t;;){var r=n.return;if(null===r)break;var i=r.alternate;if(null===i){if(null!==(a=r.return)){n=a;continue}break}if(r.child===i.child){for(i=r.child;i;){if(i===n)return L(r),e;if(i===a)return L(r),t;i=i.sibling}throw Error(s(188))}if(n.return!==a.return)n=r,a=i;else{for(var o=!1,l=r.child;l;){if(l===n){o=!0,n=r,a=i;break}if(l===a){o=!0,a=r,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,a=r;break}if(l===a){o=!0,a=i,n=r;break}l=l.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==a)throw Error(s(190))}if(3!==n.tag)throw Error(s(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?B(e):null)?null:e.stateNode};var bm={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ge,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ym=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ym.isDisabled&&ym.supportsFiber)try{xe=ym.inject(bm),ve=ym}catch(jm){}}t.createRoot=function(e,t){if(!o(e))throw Error(s(299));var n=!1,a="",r=Os,i=Ds,l=Ms;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(a=t.identifierPrefix),void 0!==t.onUncaughtError&&(r=t.onUncaughtError),void 0!==t.onCaughtError&&(i=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Fu(e,1,!1,null,0,n,a,r,i,l,0,null),e[Be]=t.current,Td(8===e.nodeType?e.parentNode:e),new gm(t)},t.hydrateRoot=function(e,t,n){if(!o(e))throw Error(s(299));var a=!1,r="",i=Os,l=Ds,c=Ms,d=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(r=n.identifierPrefix),void 0!==n.onUncaughtError&&(i=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(d=n.formState)),(t=Fu(e,1,!0,t,0,a,r,i,l,c,0,d)).context=Lu(null),n=t.current,(r=Ao(a=Pc())).callback=null,To(n,r,a),t.current.lanes=a,Te(t,a),fd(t),e[Be]=t.current,Td(e),new xm(t)},t.version="19.0.0"},672(e,t,n){"use strict";var a=n(43);function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");var l=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(r(299));return function(e,t,n){var a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==a?null:""+a,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=s.p;try{if(l.T=null,s.p=2,e)return e()}finally{l.T=t,s.p=n,s.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,s.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&s.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin),r="string"===typeof t.integrity?t.integrity:void 0,i="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?s.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:a,integrity:r,fetchPriority:i}):"script"===n&&s.d.X(e,{crossOrigin:a,integrity:r,fetchPriority:i,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);s.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&s.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,a=c(n,t.crossOrigin);s.d.L(e,n,{crossOrigin:a,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);s.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else s.d.m(e)},t.requestFormReset=function(e){s.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},391(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4)},950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(672)},82(e,t){"use strict";var n=60103,a=60106,r=60107,i=60108,s=60114,o=60109,l=60110,c=60112,d=60113,u=60120,m=60115,p=60116,h=60121,f=60122,g=60117,x=60129,v=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),a=b("react.portal"),r=b("react.fragment"),i=b("react.strict_mode"),s=b("react.profiler"),o=b("react.provider"),l=b("react.context"),c=b("react.forward_ref"),d=b("react.suspense"),u=b("react.suspense_list"),m=b("react.memo"),p=b("react.lazy"),h=b("react.block"),f=b("react.server.block"),g=b("react.fundamental"),x=b("react.debug_trace_mode"),v=b("react.legacy_hidden")}function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case r:case s:case i:case d:case u:return e;default:switch(e=e&&e.$$typeof){case l:case c:case p:case m:case o:return e;default:return t}}case a:return t}}}
2t.isFragment=function(e){return y(e)===r}},86(e,t,n){"use strict";e.exports=n(82)},799(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var i in a={},t)"key"!==i&&(a[i]=t[i]);else a=t;return t=a.ref,{$$typeof:n,type:e,key:r,ref:void 0!==t?t:null,props:a}}t.Fragment=a,t.jsx=r,t.jsxs=r},288(e,t){"use strict";var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function x(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=x.prototype;var y=b.prototype=new v;y.constructor=b,f(y,x.prototype),y.isPureReactComponent=!0;var w=Array.isArray,j={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function N(e,t,a,r,i,s){return a=s.ref,{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:s}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var _=/\/+/g;function z(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function E(){}function C(e,t,r,i,s){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var l,c,d=!1;if(null===e)d=!0;else switch(o){case"bigint":case"string":case"number":d=!0;break;case"object":switch(e.$$typeof){case n:case a:d=!0;break;case m:return C((d=e._init)(e._payload),t,r,i,s)}}if(d)return s=s(e),d=""===i?"."+z(e,0):i,w(s)?(r="",null!=d&&(r=d.replace(_,"$&/")+"/"),C(s,t,r,"",function(e){return e})):null!=s&&(S(s)&&(l=s,c=r+(null==s.key||e&&e.key===s.key?"":(""+s.key).replace(_,"$&/")+"/")+d,s=N(l.type,c,void 0,0,0,l.props)),t.push(s)),1;d=0;var u,h=""===i?".":i+":";if(w(e))for(var f=0;f<e.length;f++)d+=C(i=e[f],t,r,o=h+z(i,f),s);else if("function"===typeof(f=null===(u=e)||"object"!==typeof u?null:"function"===typeof(u=p&&u[p]||u["@@iterator"])?u:null))for(e=f.call(e),f=0;!(i=e.next()).done;)d+=C(i=i.value,t,r,o=h+z(i,f++),s);else if("object"===o){if("function"===typeof e.then)return C(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(E,E):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,r,i,s);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return d}function P(e,t,n){if(null==e)return e;var a=[],r=0;return C(e,a,"","",function(e){return t.call(n,e,r++)}),a}function A(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var T="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function R(){}t.Children={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=x,t.Fragment=r,t.Profiler=s,t.PureComponent=b,t.StrictMode=i,t.Suspense=
2d,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var a=f({},e.props),r=e.key;if(null!=t)for(i in void 0!==t.ref&&void 0,void 0!==t.key&&(r=""+t.key),t)!k.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(a[i]=t[i]);var i=arguments.length-2;if(1===i)a.children=n;else if(1<i){for(var s=Array(i),o=0;o<i;o++)s[o]=arguments[o+2];a.children=s}return N(e.type,r,void 0,0,0,a)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:o,_context:e},e},t.createElement=function(e,t,n){var a,r={},i=null;if(null!=t)for(a in void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&"key"!==a&&"__self"!==a&&"__source"!==a&&(r[a]=t[a]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];r.children=o}if(e&&e.defaultProps)for(a in s=e.defaultProps)void 0===r[a]&&(r[a]=s[a]);return N(e,i,void 0,0,0,r)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:m,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=j.T,n={};j.T=n;try{var a=e(),r=j.S;null!==r&&r(n,a),"object"===typeof a&&null!==a&&"function"===typeof a.then&&a.then(R,T)}catch(i){T(i)}finally{j.T=t}},t.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},t.use=function(e){return j.H.use(e)},t.useActionState=function(e,t,n){return j.H.useActionState(e,t,n)},t.useCallback=function(e,t){return j.H.useCallback(e,t)},t.useContext=function(e){return j.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return j.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return j.H.useEffect(e,t)},t.useId=function(){return j.H.useId()},t.useImperativeHandle=function(e,t,n){return j.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return j.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return j.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return j.H.useMemo(e,t)},t.useOptimistic=function(e,t){return j.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return j.H.useReducer(e,t,n)},t.useRef=function(e){return j.H.useRef(e)},t.useState=function(e){return j.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return j.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return j.H.useTransition()},t.version="19.0.0"},43(e,t,n){"use strict";e.exports=n(288)},579(e,t,n){"use strict";e.exports=n(799)},896(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var a=n-1>>>1,r=e[a];if(!(0<i(r,t)))break e;e[a]=t,e[n]=r,n=a}}function a(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var a=0,r=e.length,s=r>>>1;a<s;){var o=2*(a+1)-1,l=e[o],c=o+1,d=e[c];if(0>i(l,n))c<r&&0>i(d,l)?(e[a]=d,e[c]=n,a=c):(e[a]=l,e[o]=n,a=o);else{if(!(c<r&&0>i(d,n)))break e;e[a]=d,e[c]=n,a=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],d=[],u=1,m=null,p=3,h=!1,f=!1,g=!1,x="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=a(d);null!==t;){if(null===t.callback)r(d);else{if(!(t.startTime<=e))break;r(d),t.sortIndex=t.expirationTime,n(c,t)}t=a(d)}}function w(e){if(g=!1,y(e),!f)if(null!==a(c))f=!0,A();else{var t=a(d);null!==t&&T(w,t.startTime-e)}}var j,k=!1,N=-1,S=5,_=-1;function z(){return!(t.unstable_now()-_<S)}
2function E(){if(k){var e=t.unstable_now();_=e;var n=!0;try{e:{f=!1,g&&(g=!1,v(N),N=-1),h=!0;var i=p;try{t:{for(y(e),m=a(c);null!==m&&!(m.expirationTime>e&&z());){var s=m.callback;if("function"===typeof s){m.callback=null,p=m.priorityLevel;var o=s(m.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof o){m.callback=o,y(e),n=!0;break t}m===a(c)&&r(c),y(e)}else r(c);m=a(c)}if(null!==m)n=!0;else{var l=a(d);null!==l&&T(w,l.startTime-e),n=!1}}break e}finally{m=null,p=i,h=!1}n=void 0}}finally{n?j():k=!1}}}if("function"===typeof b)j=function(){b(E)};else if("undefined"!==typeof MessageChannel){var C=new MessageChannel,P=C.port2;C.port1.onmessage=E,j=function(){P.postMessage(null)}}else j=function(){x(E,0)};function A(){k||(k=!0,j())}function T(e,n){N=x(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||h||(f=!0,A())},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return a(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,r,i){var s=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?s+i:s:i=s,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return e={id:u++,callback:r,priorityLevel:e,startTime:i,expirationTime:o=i+o,sortIndex:-1},i>s?(e.sortIndex=i,n(d,e),null===a(c)&&e===a(d)&&(g?(v(N),N=-1):g=!0,T(w,i-s))):(e.sortIndex=o,n(c,e),f||h||(f=!0,A())),e},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},853(e,t,n){"use strict";e.exports=n(896)},330(e,t,n){"use strict";var a=n(43);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useState,s=a.useEffect,o=a.useLayoutEffect,l=a.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch(a){return!0}}var d="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),a=i({inst:{value:n,getSnapshot:t}}),r=a[0].inst,d=a[1];return o(function(){r.value=n,r.getSnapshot=t,c(r)&&d({inst:r})},[e,n,t]),s(function(){return c(r)&&d({inst:r}),e(function(){c(r)&&d({inst:r})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==a.useSyncExternalStore?a.useSyncExternalStore:d},717(e,t,n){"use strict";var a=n(43),r=n(461);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},s=r.useSyncExternalStore,o=a.useRef,l=a.useEffect,c=a.useMemo,d=a.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,a,r){var u=o(null);if(null===u.current){var m={hasValue:!1,value:null};u.current=m}else m=u.current;u=c(function(){function e(e){if(!l){if(l=!0,s=e,e=a(e),void 0!==r&&m.hasValue){var t=m.value;if(r(t,e))return o=t}return o=e}if(t=o,i(s,e))return t;var n=a(e);return void 0!==r&&r(t,n)?(s=e,t):(s=e,o=n)}var s,o,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]},[t,n,a,r]);var p=s(e,u[0],u[1]);return l(function(){m.hasValue=!0,m.value=p},[p]),d(p),p}},365(e,t,n){"use strict";var a=n(43);var r="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useSyncExternalStore,s=a.useRef,o=a.useEffect,l=a.useMemo,c=a.useDebugValue},461(e,t,n){"use strict";e.exports=n(330)},443(e,t,n){"use strict";e.exports=n(717)},237(e,t,n){"use strict";n(365)}},t={};function n(a){var r=t[a];
2if(void 0!==r)return r.exports;var i=t[a]={exports:{}};return e[a].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(a,r){if(1&r&&(a=this(a)),8&r)return a;if("object"===typeof a&&a){if(4&r&&a.__esModule)return a;if(16&r&&"function"===typeof a.then)return a}var i=Object.create(null);n.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&a;("object"==typeof o||"function"==typeof o)&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach(e=>s[e]=()=>a[e]);return s.default=()=>a,n.d(i,s),i}})(),n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.dn=e=>{(Object.getOwnPropertyDescriptor(e,"name")||{}).writable||Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.nc=void 0,(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>vi,hasStandardBrowserEnv:()=>yi,hasStandardBrowserWebWorkerEnv:()=>wi,navigator:()=>bi,origin:()=>ji});var t={};n.r(t),n.d(t,{scaleBand:()=>_I,scaleDiverging:()=>OU,scaleDivergingLog:()=>DU,scaleDivergingPow:()=>IU,scaleDivergingSqrt:()=>FU,scaleDivergingSymlog:()=>MU,scaleIdentity:()=>_L,scaleImplicit:()=>NI,scaleLinear:()=>SL,scaleLog:()=>DL,scaleOrdinal:()=>SI,scalePoint:()=>EI,scalePow:()=>HL,scaleQuantile:()=>nB,scaleQuantize:()=>aB,scaleRadial:()=>GL,scaleSequential:()=>zU,scaleSequentialLog:()=>EU,scaleSequentialPow:()=>PU,scaleSequentialQuantile:()=>TU,scaleSequentialSqrt:()=>AU,scaleSequentialSymlog:()=>CU,scaleSqrt:()=>WL,scaleSymlog:()=>LL,scaleThreshold:()=>rB,scaleTime:()=>kU,scaleUtc:()=>NU,tickFormat:()=>kL});var a=n(43),r=n.t(a,2),i=n(391);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=s(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:t+""}function l(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){l(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function m(e,t,n){u(e,t),t.set(e,n)}function p(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function h(e,t){return e.get(p(e,t))}function f(e,t,n){return e.set(p(e,t),n),n}var g="undefined"===typeof window||"Deno"in globalThis;function x(){}function v(e,t){return"function"===typeof e?e(t):e}function b(e,t){const n=e.type,a=void 0===n?"all":n,r=e.exact,i=e.fetchStatus,s=e.predicate,o=e.queryKey,l=e.stale;if(o)if(r){if(t.queryHash!==w(o,t.options))return!1}else if(!k(t.queryKey,o))return!1;if("all"!==a){const e=t.isActive();if("active"===a&&!e)return!1;if("inactive"===a&&e)return!1}return("boolean"!==typeof l||t.isStale()===l)&&((!i||i===t.state.fetchStatus)&&!(s&&!s(t)))}function y(e,t){const n=e.exact,a=e.status,r=e.predicate,i=e.mutationKey;if(i){if(!t.options.mutationKey)return!1;if(n){if(j(t.options.mutationKey)!==j(i))return!1}else if(!k(t.options.mutationKey,i))return!1}return(!a||t.state.status===a)&&!(r&&!r(t))}function w(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||j)(e)}function j(e){return JSON.stringify(e,(e,t)=>_(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function k(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some(n=>!k(e[n],t[n])))}function N(e,t){if(e===t)return e;const n=S(e)&&S(t);if(n||_(e)&&_(t)){const a=n?e:Object.keys(e),r=a.length,i=n?t:Object.keys(t),s=i.length,o=n?[]:{};let l=0;for(let c=0;c<s;c++){const r=n?c:i[c];(!n&&a.includes(r)||n)&&void 0===e[r]&&void 0===t[r]?(o[r]=void 0,l++):(o[r]=N(e[r],t[r]),o[r]===e[r]&&void 0!==e[r]&&l++)}return r===s&&l===r?e:o}return t}function S(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _(e){if(!z(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!z(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function z(e){return"[object Object]"===Object.prototype.toString.call(e)}function E(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?N(e,t):t}function C(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=[...e,t];return n&&a.length>n?a.slice(1):a}function P(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var A=Symbol();function T(e,t){return!e.queryFn&&null!==t&&void 0!==t&&t.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==A?e.queryFn:()=>Promise.reject(new Error("Missing queryFn: '".concat(e.queryHash,"'")))}function R(e,t){u(e,t),t.add(e)}var O,D,M,I,F,L,B=function(){let e=[],t=0,n=e=>{e()},a=e=>{e()},r=e=>setTimeout(e,0);const i=a=>{t?e.push(a):r(()=>{n(a)})};return{batch:i=>{let s;t++;try{s=i()}finally{t--,t||(()=>{const t=e;e=[],t.length&&r(()=>{a(()=>
2{t.forEach(e=>{n(e)})})})})()}return s},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];i(()=>{e(...n)})},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{a=e},setScheduler:e=>{r=e}}}(),q=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},U=(O=new WeakMap,D=new WeakMap,M=new WeakMap,class extends q{constructor(){super(),m(this,O,void 0),m(this,D,void 0),m(this,M,void 0),f(M,this,e=>{if(!g&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){h(D,this)||this.setEventListener(h(M,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=h(D,this))||void 0===e||e.call(this),f(D,this,void 0))}setEventListener(e){var t;f(M,this,e),null===(t=h(D,this))||void 0===t||t.call(this),f(D,this,e(e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){h(O,this)!==e&&(f(O,this,e),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){var e;return"boolean"===typeof h(O,this)?h(O,this):"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}),V=new U,H=(I=new WeakMap,F=new WeakMap,L=new WeakMap,class extends q{constructor(){super(),m(this,I,!0),m(this,F,void 0),m(this,L,void 0),f(L,this,e=>{if(!g&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}})}onSubscribe(){h(F,this)||this.setEventListener(h(L,this))}onUnsubscribe(){var e;this.hasListeners()||(null===(e=h(F,this))||void 0===e||e.call(this),f(F,this,void 0))}setEventListener(e){var t;f(L,this,e),null===(t=h(F,this))||void 0===t||t.call(this),f(F,this,e(this.setOnline.bind(this)))}setOnline(e){h(I,this)!==e&&(f(I,this,e),this.listeners.forEach(t=>{t(e)}))}isOnline(){return h(I,this)}}),W=new H;function K(e){return Math.min(1e3*2**e,3e4)}function G(e){return"online"!==(null!==e&&void 0!==e?e:"online")||W.isOnline()}var Z,Y=class extends Error{constructor(e){super("CancelledError"),this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function Q(e){return e instanceof Y}function $(e){let t,n,a,r=!1,i=0,s=!1;const o=new Promise((e,t)=>{n=e,a=t}),l=()=>V.isFocused()&&("always"===e.networkMode||W.isOnline())&&e.canRun(),c=()=>G(e.networkMode)&&e.canRun(),d=a=>{var r,i;s||(s=!0,null===(r=e.onSuccess)||void 0===r||r.call(e,a),null===(i=t)||void 0===i||i(),n(a))},u=n=>{var r,i;s||(s=!0,null===(r=e.onError)||void 0===r||r.call(e,n),null===(i=t)||void 0===i||i(),a(n))},m=()=>new Promise(n=>{var a;t=e=>{(s||l())&&n(e)},null===(a=e.onPause)||void 0===a||a.call(e)}).then(()=>{var n;(t=void 0,s)||(null===(n=e.onContinue)||void 0===n||n.call(e))}),p=()=>{if(s)return;let t;const n=0===i?e.initialPromise:void 0;try{t=null!==n&&void 0!==n?n:e.fn()}catch(a){t=Promise.reject(a)}Promise.resolve(t).then(d).catch(t=>{var n,a,o;if(s)return;const c=null!==(n=e.retry)&&void 0!==n?n:g?0:3,d=null!==(a=e.retryDelay)&&void 0!==a?a:K,h="function"===typeof d?d(i,t):d,f=!0===c||"number"===typeof c&&i<c||"function"===typeof c&&c(i,t);var x;!r&&f?(i++,null===(o=e.onFail)||void 0===o||o.call(e,i,t),(x=h,new Promise(e=>{setTimeout(e,x)})).then(()=>l()?void 0:m()).then(()=>{r?u(t):p()})):u(t)})};return{promise:o,cancel:t=>{var n;s||(u(new Y(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return null===(e=t)||void 0===e||e(),o},cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:c,start:()=>(c()?p():m().then(p),o)}}var X,J,ee,te,ne,ae,re,ie,se=(Z=new WeakMap,class{constructor(){m(this,Z,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),function(e){return"number"===typeof e&&e>=0&&e!==1/0}(this.gcTime)&&f(Z,this,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,null!==e&&void 0!==e?e:g?1/0:3e5)}clearGcTimeout(){h(Z,this)&&(clearTimeout(h(Z,this)),f(Z,this,void 0))}}),oe=(X=new WeakMap,J=new WeakMap,ee=new WeakMap,te=new WeakMap,ne=new WeakMap,ae=new WeakMap,re=new WeakSet,class extends se{constructor(e){var t;super(),R(this,re),m(this,X,void 0),m(this,J,void 0),m(this,ee,void 0),m(this,te,void 0),m(this,ne,void 0),m(this,ae,void 0),f(ae,this,!1),f(ne,this,e.defaultOptions),this.setOptions(e.options),this.observers=[],f(ee,this,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,f(X,this,function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,a=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!==a&&void 0!==a?a:Date.now():0,error:null,errorUpdate
2Count:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=null!==(t=e.state)&&void 0!==t?t:h(X,this),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null===(e=h(te,this))||void 0===e?void 0:e.promise}setOptions(e){this.options=d(d({},h(ne,this)),e),this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||h(ee,this).remove(this)}setData(e,t){const n=E(this.state.data,e,this.options);return p(re,this,le).call(this,{data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){p(re,this,le).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const a=null===(t=h(te,this))||void 0===t?void 0:t.promise;return null===(n=h(te,this))||void 0===n||n.cancel(e),a?a.then(x).catch(x):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(h(X,this))}isActive(){return this.observers.some(e=>{return!1!==(t=e.options.enabled,n=this,"function"===typeof t?t(n):t);var t,n})}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!function(e,t){return Math.max(e+(t||0)-Date.now(),0)}(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=h(te,this))||void 0===e||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=h(te,this))||void 0===e||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),h(ee,this).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(h(te,this)&&(h(ae,this)?h(te,this).cancel({revert:!0}):h(te,this).cancelRetry()),this.scheduleGc()),h(ee,this).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||p(re,this,le).call(this,{type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(h(te,this))return h(te,this).continueRetry(),h(te,this).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(f(ae,this,!0),r.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=T(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return i(n),f(ae,this,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};var o;(i(s),null===(n=this.options.behavior)||void 0===n||n.onFetch(s,this),f(J,this,this.state),"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(a=s.fetchOptions)||void 0===a?void 0:a.meta))&&p(re,this,le).call(this,{type:"fetch",meta:null===(o=s.fetchOptions)||void 0===o?void 0:o.meta});const l=e=>{var t,n,a,r;(Q(e)&&e.silent||p(re,this,le).call(this,{type:"error",error:e}),Q(e))||(null===(t=(n=h(ee,this).config).onError)||void 0===t||t.call(n,e,this),null===(a=(r=h(ee,this).config).onSettled)||void 0===a||a.call(r,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return f(te,this,$({initialPromise:null===t||void 0===t?void 0:t.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{var t,n,a,r;if(void 0!==e){try{this.setData(e)}catch(i){return void l(i)}null===(t=(n=h(ee,this).config).onSuccess)||void 0===t||t.call(n,e,this),null===(a=(r=h(ee,this).config).onSettled)||void 0===a||a.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1}else l(new Error("".concat(this.queryHash," data is undefined")))},onError:l,onFail:(e,t)=>{p(re,this,le).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{p(re,this,le).call(this,{type:"pause"})},onContinue:()=>{p(re,this,le).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),h(te,this).start()}});function le(e){this.state=(t=>{var n,a;switch(e.type){case"failed":return d(d({},t),{},{fetchFailureCount:e.failureCount,fetchFailureReason:e.error});case"pause":return d(d({},t),{},{fetchStatus:"paused"});case"continue":return d(d({},t),{},{fetchStatus:"fetching"});case"fetch":return d(d(d({},t),function(e,t){return d({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:G(t.networkMode)?"fetching":"paused"},void 0===e&&{error:null,status:"pending"})}(t.data,this.options)),{},{fetchMeta:null!==(n=e.meta)&&void 0!==n?n:null});case"success":return d(d({},t),{},{data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!==(a=e.dataUpdatedAt)&&void 0!==a?a:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const r=e.error;return Q(r)&&r.revert&&h(J,this)?d(d({},h(J,this)),{},{fetchStatus:"idle"}):d(d({},t),{}
2,{error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"});case"invalidate":return d(d({},t),{},{isInvalidated:!0});case"setState":return d(d({},t),e.state)}})(this.state),B.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),h(ee,this).notify({query:this,type:"updated",action:e})})}var ce,de,ue,me,pe,he,fe=(ie=new WeakMap,class extends q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),m(this,ie,void 0),this.config=e,f(ie,this,new Map)}build(e,t,n){var a;const r=t.queryKey,i=null!==(a=t.queryHash)&&void 0!==a?a:w(r,t);let s=this.get(i);return s||(s=new oe({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(s)),s}add(e){h(ie,this).has(e.queryHash)||(h(ie,this).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=h(ie,this).get(e.queryHash);t&&(e.destroy(),t===e&&h(ie,this).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){B.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return h(ie,this).get(e)}getAll(){return[...h(ie,this).values()]}find(e){const t=d({exact:!0},e);return this.getAll().find(e=>b(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>b(e,t)):t}notify(e){B.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){B.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){B.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}),ge=(ce=new WeakMap,de=new WeakMap,ue=new WeakMap,me=new WeakSet,class extends se{constructor(e){super(),R(this,me),m(this,ce,void 0),m(this,de,void 0),m(this,ue,void 0),this.mutationId=e.mutationId,f(de,this,e.mutationCache),f(ce,this,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){h(ce,this).includes(e)||(h(ce,this).push(e),this.clearGcTimeout(),h(de,this).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){f(ce,this,h(ce,this).filter(t=>t!==e)),this.scheduleGc(),h(de,this).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){h(ce,this).length||("pending"===this.state.status?this.scheduleGc():h(de,this).remove(this))}continue(){var e,t;return null!==(e=null===(t=h(ue,this))||void 0===t?void 0:t.continue())&&void 0!==e?e:this.execute(this.state.variables)}async execute(e){var t;f(ue,this,$({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{p(me,this,xe).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{p(me,this,xe).call(this,{type:"pause"})},onContinue:()=>{p(me,this,xe).call(this,{type:"continue"})},retry:null!==(t=this.options.retry)&&void 0!==t?t:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>h(de,this).canRun(this)}));const n="pending"===this.state.status,a=!h(ue,this).canStart();try{var r,i,s,o,l,c,d,u;if(!n){var m,g,x,v;p(me,this,xe).call(this,{type:"pending",variables:e,isPaused:a}),await(null===(m=(g=h(de,this).config).onMutate)||void 0===m?void 0:m.call(g,e,this));const t=await(null===(x=(v=this.options).onMutate)||void 0===x?void 0:x.call(v,e));t!==this.state.context&&p(me,this,xe).call(this,{type:"pending",context:t,variables:e,isPaused:a})}const t=await h(ue,this).start();return await(null===(r=(i=h(de,this).config).onSuccess)||void 0===r?void 0:r.call(i,t,e,this.state.context,this)),await(null===(s=(o=this.options).onSuccess)||void 0===s?void 0:s.call(o,t,e,this.state.context)),await(null===(l=(c=h(de,this).config).onSettled)||void 0===l?void 0:l.call(c,t,null,this.state.variables,this.state.context,this)),await(null===(d=(u=this.options).onSettled)||void 0===d?void 0:d.call(u,t,null,e,this.state.context)),p(me,this,xe).call(this,{type:"success",data:t}),t}catch(z){try{var b,y,w,j,k,N,S,_;throw await(null===(b=(y=h(de,this).config).onError)||void 0===b?void 0:b.call(y,z,e,this.state.context,this)),await(null===(w=(j=this.options).onError)||void 0===w?void 0:w.call(j,z,e,this.state.context)),await(null===(k=(N=h(de,this).config).onSettled)||void 0===k?void 0:k.call(N,void 0,z,this.state.variables,this.state.context,this)),await(null===(S=(_=this.options).onSettled)||void 0===S?void 0:S.call(_,void 0,z,e,this.state.context)),z}finally{p(me,this,xe).call(this,{type:"error",error:z})}}finally{h(de,this).runNext(this)}}});function xe(e){this.state=(t=>{switch(e.type){case"failed":return d(d({},t),{},{failureCount:e.failureCount,failureReason:e.error});case"pause":return d(d({},t),{},{isPaused:!0});case"continue":return d(d({},t),{},{isPaused:!1});
2case"pending":return d(d({},t),{},{context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()});case"success":return d(d({},t),{},{data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return d(d({},t),{},{data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"})}})(this.state),B.batch(()=>{h(ce,this).forEach(t=>{t.onMutationUpdate(e)}),h(de,this).notify({mutation:this,type:"updated",action:e})})}var ve,be,ye,we,je,ke,Ne,Se,_e=(pe=new WeakMap,he=new WeakMap,class extends q{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),m(this,pe,void 0),m(this,he,void 0),this.config=e,f(pe,this,new Map),f(he,this,Date.now())}build(e,t,n){var a;const r=new ge({mutationCache:this,mutationId:f(he,this,(a=h(he,this),++a)),options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){var t;const n=ze(e),a=null!==(t=h(pe,this).get(n))&&void 0!==t?t:[];a.push(e),h(pe,this).set(n,a),this.notify({type:"added",mutation:e})}remove(e){const t=ze(e);if(h(pe,this).has(t)){var n;const a=null===(n=h(pe,this).get(t))||void 0===n?void 0:n.filter(t=>t!==e);a&&(0===a.length?h(pe,this).delete(t):h(pe,this).set(t,a))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null===(t=h(pe,this).get(ze(e)))||void 0===t?void 0:t.find(e=>"pending"===e.state.status);return!n||n===e}runNext(e){var t,n;const a=null===(t=h(pe,this).get(ze(e)))||void 0===t?void 0:t.find(t=>
2t!==e&&t.state.isPaused);return null!==(n=null===a||void 0===a?void 0:a.continue())&&void 0!==n?n:Promise.resolve()}clear(){B.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...h(pe,this).values()].flat()}find(e){const t=d({exact:!0},e);return this.getAll().find(e=>y(t,e))}findAll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(t=>y(e,t))}notify(e){B.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return B.batch(()=>Promise.all(e.map(e=>e.continue().catch(x))))}});function ze(e){var t,n;return null!==(t=null===(n=e.options.scope)||void 0===n?void 0:n.id)&&void 0!==t?t:String(e.mutationId)}function Ee(e){return{onFetch:(t,n)=>{var a,r,i;const s=t.options,o=null===(a=t.fetchOptions)||void 0===a||null===(a=a.meta)||void 0===a||null===(a=a.fetchMore)||void 0===a?void 0:a.direction,l=(null===(r=t.state.data)||void 0===r?void 0:r.pages)||[],c=(null===(i=t.state.data)||void 0===i?void 0:i.pageParams)||[];let d={pages:[],pageParams:[]},u=0;const m=async()=>{let n=!1;const a=T(t.options,t.fetchOptions),r=async(e,r,i)=>{if(n)return Promise.reject();if(null==r&&e.pages.length)return Promise.resolve(e);const s={queryKey:t.queryKey,pageParam:r,direction:i?"backward":"forward",meta:t.options.meta};(e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",()=>{n=!0}),t.signal)})})(s);const o=await a(s),l=t.options.maxPages,c=i?P:C;return{pages:c(e.pages,o,l),pageParams:c(e.pageParams,r,l)}};if(o&&l.length){const e="backward"===o,t={pages:l,pageParams:c},n=(e?Pe:Ce)(s,t);d=await r(t,n,e)}else{const t=null!==e&&void 0!==e?e:l.length;do{var i;const e=0===u?null!==(i=c[0])&&void 0!==i?i:s.initialPageParam:Ce(s,d);if(u>0&&null==e)break;d=await r(d,e),u++}while(u<t)}return d};t.options.persister?t.fetchFn=()=>{var e,a;return null===(e=(a=t.options).persister)||void 0===e?void 0:e.call(a,m,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=m}}}function Ce(e,t){let n=t.pages,a=t.pageParams;const r=n.length-1;return n.length>0?e.getNextPageParam(n[r],n,a[r],a):void 0}function Pe(e,t){var n;let a=t.pages,r=t.pageParams;return a.length>0?null===(n=e.getPreviousPageParam)||void 0===n?void 0:n.call(e,a[0],a,r[0],r):void 0}var Ae=(ve=new WeakMap,be=new WeakMap,ye=new WeakMap,we=new WeakMap,je=new WeakMap,ke=new WeakMap,Ne=new WeakMap,Se=new WeakMap,class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,ve,void 0),m(this,be,void 0),m(this,ye,void 0),m(this,we,void 0),m(this,je,void 0),m(this,ke,void 0),m(this,Ne,void 0),m(this,Se,void 0),f(ve,this,e.queryCache||new fe),f(be,this,e.mutationCache||new _e),f(ye,this,e.defaultOptions||{}),f(we,this,new Map),f(je,this,new Map),f(ke,this,0)}mount(){var e;f(ke,this,(e=h(ke,this),e++,e)),1===h(ke,this)&&(f(Ne,this,V.subscribe(async e=>{e&&(await this.resumePausedMutations(),h(ve,this).onFocus())})),f(Se,this,W.subscribe(async e=>{e&&(await this.resumePausedMutations(),h(ve,this).onOnline())})))}unmount(){var e,t,n;f(ke,this,(e=h(ke,this),e--,e)),0===h(ke,this)&&(null===(t=h(Ne,this))||void 0===t||t.call(this),f(Ne,this,void 0),null===(n=h(Se,this))||void 0===n||n.call(this),f(Se,this,void 0))}isFetching(e){return h(ve,this).findAll(d(d({},e),{},{fetchStatus:"fetching"})).length}isMutating(e){return h(be,this).findAll(d(d({},e),{},{status:"pending"})).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=h(ve,this).get(n.queryHash))||void 0===t?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),a=h(ve,this).build(this,n);return e.revalidateIfStale&&a.isStaleByTime(v(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return h(ve,this).findAll(e).map(e=>[e.queryKey,e.state.data])}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),r=h(ve,this).get(a.queryHash),i=function(e,t){return"function"===typeof e?e(t):e}(t,null===r||void 0===r?void 0:r.state.data);if(void 0!==i)return h(ve,this).build(this,a).setData(i,d(d({},n),{},{manual:!0}))}
2setQueriesData(e,t,n){return B.batch(()=>h(ve,this).findAll(e).map(e=>{let a=e.queryKey;return[a,this.setQueryData(a,t,n)]}))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null===(t=h(ve,this).get(n.queryHash))||void 0===t?void 0:t.state}removeQueries(e){const t=h(ve,this);B.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const n=h(ve,this),a=d({type:"active"},e);return B.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(a,t)))}cancelQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=d({revert:!0},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),n=B.batch(()=>h(ve,this).findAll(e).map(e=>e.cancel(t)));return Promise.all(n).then(x).catch(x)}invalidateQueries(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B.batch(()=>{var n,a;if(h(ve,this).findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();const r=d(d({},e),{},{type:null!==(n=null!==(a=e.refetchType)&&void 0!==a?a:e.type)&&void 0!==n?n:"active"});return this.refetchQueries(r,t)})}refetchQueries(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;const a=d(d({},n),{},{cancelRefetch:null===(e=null===n||void 0===n?void 0:n.cancelRefetch)||void 0===e||e}),r=B.batch(()=>h(ve,this).findAll(t).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,a);return a.throwOnError||(t=t.catch(x)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(r).then(x)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=h(ve,this).build(this,t);return n.isStaleByTime(v(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(x).catch(x)}fetchInfiniteQuery(e){return e.behavior=Ee(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(x).catch(x)}ensureInfiniteQueryData(e){return e.behavior=Ee(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return W.isOnline()?h(be,this).resumePausedMutations():Promise.resolve()}getQueryCache(){return h(ve,this)}getMutationCache(){return h(be,this)}getDefaultOptions(){return h(ye,this)}setDefaultOptions(e){f(ye,this,e)}setQueryDefaults(e,t){h(we,this).set(j(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...h(we,this).values()];let n={};return t.forEach(t=>{k(e,t.queryKey)&&(n=d(d({},n),t.defaultOptions))}),n}setMutationDefaults(e,t){h(je,this).set(j(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...h(je,this).values()];let n={};return t.forEach(t=>{k(e,t.mutationKey)&&(n=d(d({},n),t.defaultOptions))}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t=d(d(d(d({},h(ye,this).queries),this.getQueryDefaults(e.queryKey)),e),{},{_defaulted:!0});return t.queryHash||(t.queryHash=w(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===A&&(t.enabled=!1),t}defaultMutationOptions(e){return null!==e&&void 0!==e&&e._defaulted?e:d(d(d(d({},h(ye,this).mutations),(null===e||void 0===e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey)),e),{},{_defaulted:!0})}clear(){h(ve,this).clear(),h(be,this).clear()}}),Te=n(579),Re=a.createContext(void 0),Oe=e=>{let t=e.client,n=e.children;return a.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,Te.jsx)(Re.Provider,{value:t,children:n})};function De(e){if(Array.isArray(e))return e}function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function Ie(e,t){if(e){if("string"==typeof e)return Me(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Me(e,t):void 0}}
2function Fe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Le(e,t){return De(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(a=i.call(n)).done)&&(o.push(a.value),o.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw r}}return o}}(e,t)||Ie(e,t)||Fe()}function Be(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qe(e){return De(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ie(e)||Fe()}const Ue=["sri"],Ve=["page"],He=["page","matches"],We=["page","matches"],Ke=["onClick","discover","prefetch","relative","reloadDocument","replace","mask","state","target","to","preventScrollReset","viewTransition","defaultShouldRevalidate"],Ge=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],Ze=["discover","fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition","defaultShouldRevalidate"];var Ye="popstate";function Qe(e){return"object"===typeof e&&null!=e&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function $e(){return rt(function(e,t){var n;let a=null===(n=t.state)||void 0===n?void 0:n.masked,r=a||e.location;return tt("",{pathname:r.pathname,search:r.search,hash:r.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default",a?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)},function(e,t){return"string"===typeof t?t:nt(t)},null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function Xe(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function Je(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function et(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function tt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;return d(d({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?at(t):t),{},{state:n,key:t&&t.key||a||Math.random().toString(36).substring(2,10),mask:r})}function nt(e){let t=e.pathname,n=void 0===t?"/":t,a=e.search,r=void 0===a?"":a,i=e.hash,s=void 0===i?"":i;return r&&"?"!==r&&(n+="?"===r.charAt(0)?r:"?"+r),s&&"#"!==s&&(n+="#"===s.charAt(0)?s:"#"+s),n}function at(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let a=e.indexOf("?");a>=0&&(t.search=e.substring(a),e=e.substring(0,a)),e&&(t.pathname=e)}return t}function rt(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=a.window,i=void 0===r?document.defaultView:r,s=a.v5Compat,o=void 0!==s&&s,l=i.history,c="POP",u=null,m=p();function p(){return(l.state||{idx:null}).idx}function h(){c="POP";let e=p(),t=null==e?null:e-m;m=e,u&&u({action:c,location:g.location,delta:t})}function f(e){return it(e)}null==m&&(m=0,l.replaceState(d(d({},l.state),{},{idx:m}),""));let g={get action(){return c},get location(){return e(i,l)},listen(e){if(u)throw new Error("A history only accepts one active listener");return i.addEventListener(Ye,h),u=e,()=>{i.removeEventListener(Ye,h),u=null}},createHref:e=>
2t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){c="PUSH";let a=Qe(e)?e:tt(g.location,e,t);n&&n(a,e),m=p()+1;let r=et(a,m),s=g.createHref(a.mask||a);try{l.pushState(r,"",s)}catch(d){if(d instanceof DOMException&&"DataCloneError"===d.name)throw d;i.location.assign(s)}o&&u&&u({action:c,location:g.location,delta:1})},replace:function(e,t){c="REPLACE";let a=Qe(e)?e:tt(g.location,e,t);n&&n(a,e),m=p();let r=et(a,m),i=g.createHref(a.mask||a);l.replaceState(r,"",i),o&&u&&u({action:c,location:g.location,delta:0})},go:e=>l.go(e)};return g}function it(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n="http://localhost";"undefined"!==typeof window&&(n="null"!==window.location.origin?window.location.origin:window.location.href),Xe(n,"No window.location.(origin|href) available to create URL");let a="string"===typeof e?e:nt(e);return a=a.replace(/ $/,"%20"),!t&&a.startsWith("//")&&(a=n+a),new URL(a,n)}new WeakMap;function st(e,t){return ot(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function ot(e,t,n,a,r){let i=kt(("string"===typeof t?at(t):t).pathname||"/",n);if(null==i)return null;let s=null!==r&&void 0!==r?r:lt(e),o=null,l=jt(i);for(let c=0;null==o&&c<s.length;++c)o=bt(s[c],l,a);return o}function lt(e){let t=ct(e);return function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n]);return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(t),t}function ct(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=function(e,i){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r,o=arguments.length>3?arguments[3]:void 0,l={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};if(l.relativePath.startsWith("/")){if(!l.relativePath.startsWith(a)&&s)return;Xe(l.relativePath.startsWith(a),'Absolute route path "'.concat(l.relativePath,'" nested under path "').concat(a,'" is not valid. An absolute child route path must start with the combined path of all its parent routes.')),l.relativePath=l.relativePath.slice(a.length)}let c=At([a,l.relativePath]),d=n.concat(l);e.children&&e.children.length>0&&(Xe(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'.concat(c,'".')),ct(e.children,t,d,c,s)),(null!=e.path||e.index)&&t.push({path:c,score:vt(c,e.index),routesMeta:d})};return e.forEach((e,t)=>{var n;if(""!==e.path&&null!==(n=e.path)&&void 0!==n&&n.includes("?"))for(let a of dt(e.path))i(e,t,!0,a);else i(e,t)}),t}function dt(e){let t=e.split("/");if(0===t.length)return[];let n=qe(t),a=n[0],r=Me(n).slice(1),i=a.endsWith("?"),s=a.replace(/\?$/,"");if(0===r.length)return i?[s,""]:[s];let o=dt(r.join("/")),l=[];return l.push(...o.map(e=>""===e?s:[s,e].join("/"))),i&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}var ut=/^:[\w-]+$/,mt=3,pt=2,ht=1,ft=10,gt=-2,xt=e=>"*"===e;function vt(e,t){let n=e.split("/"),a=n.length;return n.some(xt)&&(a+=gt),t&&(a+=pt),n.filter(e=>!xt(e)).reduce((e,t)=>e+(ut.test(t)?mt:""===t?ht:ft),a)}function bt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.routesMeta,r={},i="/",s=[];for(let o=0;o<a.length;++o){let e=a[o],l=o===a.length-1,c="/"===i?t:t.slice(i.length)||"/",d=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),u=e.route;if(!d&&l&&n&&!a[a.length-1].route.index&&(d=yt({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!d)return null;
2Object.assign(r,d.params),s.push({params:r,pathname:At([i,d.pathname]),pathnameBase:Rt(At([i,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(i=At([i,d.pathnameBase]))}return s}function yt(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let n=Le(wt(e.path,e.caseSensitive,e.end),2),a=n[0],r=n[1],i=t.match(a);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1),c=r.reduce((e,t,n)=>{let a=t.paramName,r=t.isOptional;if("*"===a){let e=l[n]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[n];return e[a]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:s,pathnameBase:o,pattern:e}}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Je("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'.concat(e,'" will be treated as if it were "').concat(e.replace(/\*$/,"/*"),'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "').concat(e.replace(/\*$/,"/*"),'".'));let a=[],r="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,n,r,i)=>{if(a.push({paramName:t,isOptional:null!=n}),n){let t=i.charAt(r+e.length);return t&&"/"!==t?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(a.push({paramName:"*"}),r+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?r+="\\/*$":""!==e&&"/"!==e&&(r+="(?:(?=\\/|$))"),[new RegExp(r,t?void 0:"i"),a]}function jt(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return Je(!1,'The URL path "'.concat(e,'" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (').concat(t,").")),e}}function kt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,a=e.charAt(n);return a&&"/"!==a?null:e.slice(n)||"/"}var Nt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function St(e,t){let n=Tt(t).split("/");return e.split("/").forEach(e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)}),n.length>1?n.join("/"):"/"}function _t(e,t,n,a){return"Cannot include a '".concat(e,"' character in a manually specified `to.").concat(t,"` field [").concat(JSON.stringify(a),"]. Please separate it out to the `to.").concat(n,'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.')}function zt(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function Et(e){let t=zt(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Ct(e,t,n){let a,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?a=at(e):(a=d({},e),Xe(!a.pathname||!a.pathname.includes("?"),_t("?","pathname","search",a)),Xe(!a.pathname||!a.pathname.includes("#"),_t("#","pathname","hash",a)),Xe(!a.search||!a.search.includes("#"),_t("#","search","hash",a)));let i,s=""===e||""===a.pathname,o=s?"/":a.pathname;if(null==o)i=n;else{let e=t.length-1;if(!r&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}i=e>=0?t[e]:"/"}let l=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",a="string"===typeof e?at(e):e,r=a.pathname,i=a.search,s=void 0===i?"":i,o=a.hash,l=void 0===o?"":o;return r?(r=Pt(r),t=r.startsWith("/")?St(r.substring(1),"/"):St(r,n)):t=n,{pathname:t,search:Ot(s),hash:Dt(l)}}(a,i),c=o&&"/"!==o&&o.endsWith("/"),u=(s||"."===o)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var Pt=e=>e.replace(/\/\/+/g,"/"),At=e=>Pt(e.join("/")),Tt=e=>e.replace(/\/+$/,""),Rt=e=>Tt(e).replace(/^\/*/,"/"),Ot=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Dt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var Mt=class{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.status=e,this.statusText=t||"",this.internal=a,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function It(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}function Ft(e){let t=e.map(e=>
2e.route.path).filter(Boolean);return At(t)||"/"}var Lt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function Bt(e,t){let n=e;if("string"!==typeof n||!Nt.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let a=n,r=!1;if(Lt)try{let e=new URL(window.location.href),a=n.startsWith("//")?new URL(e.protocol+n):new URL(n),i=kt(a.pathname,t);a.origin===e.origin&&null!=i?n=i+a.search+a.hash:r=!0}catch(i){Je(!1,'<Link to="'.concat(n,'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.'))}return{absoluteURL:a,isExternal:r,to:n}}Symbol("Uninstrumented");Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var qt=["POST","PUT","PATCH","DELETE"],Ut=(new Set(qt),["GET",...qt]);new Set(Ut),Symbol("ResetLoaderData");new WeakMap,new WeakMap,new WeakMap,new WeakMap;var Vt=a.createContext(null);Vt.displayName="DataRouter";var Ht=a.createContext(null);Ht.displayName="DataRouterState";var Wt=a.createContext(!1);function Kt(){return a.useContext(Wt)}var Gt=a.createContext({isTransitioning:!1});Gt.displayName="ViewTransition";var Zt=a.createContext(new Map);Zt.displayName="Fetchers";var Yt=a.createContext(null);Yt.displayName="Await";var Qt=a.createContext(null);Qt.displayName="Navigation";var $t=a.createContext(null);$t.displayName="Location";var Xt=a.createContext({outlet:null,matches:[],isDataRoute:!1});Xt.displayName="Route";var Jt=a.createContext(null);Jt.displayName="RouteError";var en="REACT_ROUTER_ERROR";function tn(){return null!=a.useContext($t)}function nn(){return Xe(tn(),"useLocation() may be used only in the context of a <Router> component."),a.useContext($t).location}var an="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function rn(e){a.useContext(Qt).static||a.useLayoutEffect(e)}function sn(){return a.useContext(Xt).isDataRoute?function(){let e=bn("useNavigate").router,t=wn("useNavigate"),n=a.useRef(!1);rn(()=>{n.current=!0});let r=a.useCallback(async function(a){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je(n.current,an),n.current&&("number"===typeof a?await e.navigate(a):await e.navigate(a,d({fromRouteId:t},r)))},[e,t]);return r}():function(){Xe(tn(),"useNavigate() may be used only in the context of a <Router> component.");let e=a.useContext(Vt),t=a.useContext(Qt),n=t.basename,r=t.navigator,i=a.useContext(Xt).matches,s=nn().pathname,o=JSON.stringify(Et(i)),l=a.useRef(!1);rn(()=>{l.current=!0});let c=a.useCallback(function(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Je(l.current,an),!l.current)return;if("number"===typeof t)return void r.go(t);let i=Ct(t,JSON.parse(o),s,"path"===a.relative);null==e&&"/"!==n&&(i.pathname="/"===i.pathname?n:At([n,i.pathname])),(a.replace?r.replace:r.push)(i,a.state,a)},[n,r,o,s,e]);return c}()}var on=a.createContext(null);function ln(){var e;let t=a.useContext(Xt).matches,n=t[t.length-1];return null!==(e=null===n||void 0===n?void 0:n.params)&&void 0!==e?e:{}}function cn(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,n=a.useContext(Xt).matches,r=nn().pathname,i=JSON.stringify(Et(n));return a.useMemo(()=>Ct(e,JSON.parse(i),r,"path"===t),[e,i,r,t])}function dn(e,t,n){Xe(tn(),"useRoutes() may be used only in the context of a <Router> component.");let r=a.useContext(Qt).navigator,i=a.useContext(Xt).matches,s=i[i.length-1],o=s?s.params:{},l=s?s.pathname:"/",c=s?s.pathnameBase:"/",u=s&&s.route;{let e=u&&u.path||"";Nn(l,!u||e.endsWith("*")||e.endsWith("*?"),'You rendered descendant <Routes> (or called `useRoutes()`) at "'.concat(l,'" (under <Route path="').concat(e,'">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won\'t match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="').concat(e,'"> to <Route path="').concat("/"===e?"*":"".concat(e,"/*"),'">.'))}let m,p=nn();if(t){var h;let e="string"===typeof t?at(t):t;Xe("/"===c||(null===(h=e.pathname)||void 0===h?void 0:h.startsWith(c)),'When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "'.concat(c,'" but pathname "').concat(e.pathname,'" was given in the `location` prop.')),m=e}else m=p;let f=m.pathname||"/",g=f;if("/"!==c){let e=c.replace(/^\//,"").split("/");g="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let x=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):st(e,{pathname:g});Je(u||null!=x,'No routes matched location "'.concat(m.pathname).concat(m.search).concat(m.hash,'" ')),Je(null==x||void 0!==x[x.length-1].route.element||void 0!==x[x.length-1].route.Component||void 0!==x[x.length-1].route.lazy,'Matched leaf route at location "'.concat(m.pathname).concat(m.search).concat(m.hash,'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let v=xn(x&&x.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:At([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:At([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),i,n);return t&&v?a.createElement($t.Provider,{value:{location:d({pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0},m),navigationType:"POP"}},v):v}function un(){let e=jn(),t=It(e)?"".concat(e.status," ").concat(e.statusText):e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=a.createElement(a.Fragment,null,a.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),a.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",a.createElement("code",{style:s},"ErrorBoundary")," or"," ",a.createElement("code",{style:s},"errorElement")," prop on your route.")),a.createElement(a.Fragment,null,a.createElement("h2",null,"Unexpected Application
2Error!"),a.createElement("h3",{style:{fontStyle:"italic"}},t),n?a.createElement("pre",{style:i},n):null,o)}var mn=a.createElement(un,null),pn=class extends a.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"===typeof e&&e&&"digest"in e&&"string"===typeof e.digest){const t=function(e){if(e.startsWith("".concat(en,":").concat("ROUTE_ERROR_RESPONSE",":{")))try{let t=JSON.parse(e.slice(40));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText)return new Mt(t.status,t.statusText,t.data)}catch(t){}}(e.digest);t&&(e=t)}let t=void 0!==e?a.createElement(Xt.Provider,{value:this.props.routeContext},a.createElement(Jt.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?a.createElement(fn,{error:e},t):t}};pn.contextType=Wt;var hn=new WeakMap;function fn(e){let t=e.children,n=e.error,r=a.useContext(Qt).basename;if("object"===typeof n&&n&&"digest"in n&&"string"===typeof n.digest){let e=function(e){if(e.startsWith("".concat(en,":").concat("REDIRECT",":{")))try{let t=JSON.parse(e.slice(28));if("object"===typeof t&&t&&"number"===typeof t.status&&"string"===typeof t.statusText&&"string"===typeof t.location&&"boolean"===typeof t.reloadDocument&&"boolean"===typeof t.replace)return t}catch(t){}}(n.digest);if(e){let t=hn.get(n);if(t)throw t;let i=Bt(e.location,r);if(Lt&&!hn.get(n)){if(!i.isExternal&&!e.reloadDocument){const t=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw hn.set(n,t),t}window.location.href=i.absoluteURL||i.to}return a.createElement("meta",{httpEquiv:"refresh",content:"0;url=".concat(i.absoluteURL||i.to)})}}return t}function gn(e){let t=e.routeContext,n=e.match,r=e.children,i=a.useContext(Vt);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),a.createElement(Xt.Provider,{value:t},r)}function xn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=null===n||void 0===n?void 0:n.state;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,s=null===r||void 0===r?void 0:r.errors;if(null!=s){let e=i.findIndex(e=>e.route.id&&void 0!==(null===s||void 0===s?void 0:s[e.route.id]));Xe(e>=0,"Could not find a matching route for errors on route IDs: ".concat(Object.keys(s).join(","))),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let e=r.loaderData,a=r.errors,s=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||void 0===a[t.route.id]);if(t.route.lazy||s){n.isStatic&&(o=!0),i=l>=0?i.slice(0,l+1):[i[0]];break}}}}let c=null===n||void 0===n?void 0:n.onError,d=r&&c?(e,t)=>{var n,a;c(e,{location:r.location,params:null!==(n=null===(a=r.matches)||void 0===a||null===(a=a[0])||void 0===a?void 0:a.params)&&void 0!==n?n:{},pattern:Ft(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,m=!1,p=null,h=null;r&&(u=s&&n.route.id?s[n.route.id]:void 0,p=n.route.errorElement||mn,o&&(l<0&&0===c?(Nn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,h=null):l===c&&(m=!0,h=n.route.hydrateFallbackElement||null)));let f=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?p:m?h:n.route.Component?a.createElement(n.route.Component,null):n.route.element?n.route.element:e,a.createElement(gn,{match:n,routeContext:{outlet:e,matches:f,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===c)?a.createElement(pn,{location:r.location,revalidation:r.revalidation,component:p,error:u,children:g(),routeC
2ontext:{outlet:null,matches:f,isDataRoute:!0},onError:d}):g()},null)}function vn(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function bn(e){let t=a.useContext(Vt);return Xe(t,vn(e)),t}function yn(e){let t=a.useContext(Ht);return Xe(t,vn(e)),t}function wn(e){let t=function(e){let t=a.useContext(Xt);return Xe(t,vn(e)),t}(e),n=t.matches[t.matches.length-1];return Xe(n.route.id,"".concat(e,' can only be used on routes that contain a unique "id"')),n.route.id}function jn(){var e;let t=a.useContext(Jt),n=yn("useRouteError"),r=wn("useRouteError");return void 0!==t?t:null===(e=n.errors)||void 0===e?void 0:e[r]}var kn={};function Nn(e,t,n){t||kn[e]||(kn[e]=!0,Je(!1,n))}var Sn={};function _n(e,t){e||Sn[t]||(Sn[t]=!0,console.warn(t))}r.useOptimistic;a.memo(zn);function zn(e){let t=e.routes,n=e.manifest,a=e.future;return dn(t,void 0,{manifest:n,state:e.state,isStatic:e.isStatic,onError:e.onError,future:a})}function En(e){let t=e.to,n=e.replace,r=e.state,i=e.relative;Xe(tn(),"<Navigate> may be used only in the context of a <Router> component."),Je(!a.useContext(Qt).static,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let s=a.useContext(Xt).matches,o=nn().pathname,l=sn(),c=Ct(t,Et(s),o,"path"===i),d=JSON.stringify(c);return a.useEffect(()=>{l(JSON.parse(d),{replace:n,state:r,relative:i})},[l,d,i,n,r]),null}function Cn(e){return function(e){let t=a.useContext(Xt).outlet;return a.useMemo(()=>t&&a.createElement(on.Provider,{value:e},t),[t,e])}(e.context)}function Pn(e){Xe(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function An(e){let t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,s=e.location,o=e.navigationType,l=void 0===o?"POP":o,c=e.navigator,d=e.static,u=void 0!==d&&d,m=e.useTransitions;Xe(!tn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=n.replace(/^\/*/,"/"),h=a.useMemo(()=>({basename:p,navigator:c,static:u,useTransitions:m,future:{}}),[p,c,u,m]);"string"===typeof s&&(s=at(s));let f=s,g=f.pathname,x=void 0===g?"/":g,v=f.search,b=void 0===v?"":v,y=f.hash,w=void 0===y?"":y,j=f.state,k=void 0===j?null:j,N=f.key,S=void 0===N?"default":N,_=f.mask,z=a.useMemo(()=>{let e=kt(x,p);return null==e?null:{location:{pathname:e,search:b,hash:w,state:k,key:S,mask:_},navigationType:l}},[p,x,b,w,k,S,l,_]);return Je(null!=z,'<Router basename="'.concat(p,'"> is not able to match the URL "').concat(x).concat(b).concat(w,"\" because it does not start with the basename, so the <Router> won't render anything.")),null==z?null:a.createElement(Qt.Provider,{value:h},a.createElement($t.Provider,{children:i,value:z}))}function Tn(e){let t=e.children,n=e.location;return dn(Rn(t),n)}a.Component;function Rn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];return a.Children.forEach(e,(e,r)=>{if(!a.isValidElement(e))return;let i=[...t,r];if(e.type===a.Fragment)return void n.push.apply(n,Rn(e.props.children,i));Xe(e.type===Pn,"[".concat("string"===typeof e.type?e.type:e.type.name,"] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>")),Xe(!e.props.index||!e.props.children,"An index route cannot have child routes.");let s={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=Rn(e.props.children,i)),n.push(s)}),n}var On="get",Dn="application/x-www-form-urlencoded";function Mn(e){return"undefined"!==typeof HTMLElement&&e instanceof HTMLElement}function In(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let a=e[n];return t.concat(Array.isArray(a)?a.map(e=>[n,e]):[[n,a]])},[]))}var Fn=null;var Ln=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Bn(e){return null==e||Ln.has(e)?e:(Je(!1,'"'.concat(e,'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` and will default to "').concat(Dn,'"')),null)}function qn(e,t){let n,a,r,i,s;if(function(e){return Mn(e)&&"form"===e.tagName.toLowerCase()}(e)){let s=e.getAttribute("action");a=s?kt(s,t):null,n=e.getAttribute("method")||On,r=Bn(e.getAttribute("enctype"))||Dn,i=new FormData(e)}else if(function(e){return Mn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Mn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let s=e.form;if(null==s)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let o=e.getAttribute("formaction")||s.getAttribute("action");if(a=o?kt(o,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||On,r=Bn(e.getAttribute("formenctype"))||Bn(s.getAttribute("enctype"))||Dn,i=new FormData(s,e),!function(){if(null===Fn)try{new FormData(document.createElement("form"),0),Fn=!1}catch(e){Fn=!0}return Fn}()){let t=e.name,n=e.type,a=e.value;if("image"===n){let e=t?"".concat(t,"."):"";i.append("".concat(e,"x"),"0"),i.append("".concat(e,"y"),"0")}else t&&i.append(t,a)}}else{if(Mn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=On,a=null,r=Dn,s=e}return i&&"text/plain"===r&&(s=i,i=void 0),{action:a,method:n.toLowerCase(),encType:r,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Un(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}Symbol("SingleFetchRedirect");function Vn(e,t,n,a){let r="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return n?r.pathname.endsWith("/")?r.pathname="".concat(r.pathname,"_.").concat(a):r.pathname="".concat(r.pathname,".").concat(a):"/"===r.pathname?r.pathname="_root.".concat(a):t&&"/"===kt(r.pathname,t)?r.pathname="".concat(Tt(t),"/_root.").concat(a):r.pathname="".concat(Tt(r.pathname),".").concat(a),r}async function Hn(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error("Error loading route module `".concat(e.module,"`, reloading page...")),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.
2isSpaMode,window.location.reload(),new Promise(()=>{})}}function Wn(e){return null!=e&&"string"===typeof e.page}function Kn(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Gn(e,t,n,a,r,i){let s=(e,t)=>!n[t]||e.route.id!==n[t].route.id,o=(e,t)=>{var a;return n[t].pathname!==e.pathname||(null===(a=n[t].route.path)||void 0===a?void 0:a.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===i?t.filter((e,t)=>s(e,t)||o(e,t)):"data"===i?t.filter((t,i)=>{let l=a.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(s(t,i)||o(t,i))return!0;if(t.route.shouldRevalidate){var c;let a=t.route.shouldRevalidate({currentUrl:new URL(r.pathname+r.search+r.hash,window.origin),currentParams:(null===(c=n[0])||void 0===c?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof a)return a}return!0}):[]}function Zn(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).includeHydrateFallback;return a=e.map(e=>{let a=t.routes[e.route.id];if(!a)return[];let r=[a.module];return a.clientActionModule&&(r=r.concat(a.clientActionModule)),a.clientLoaderModule&&(r=r.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(r=r.concat(a.hydrateFallbackModule)),a.imports&&(r=r.concat(a.imports)),r}
2).flat(1),[...new Set(a)];var a}function Yn(e,t){let n=new Set,a=new Set(t);return e.reduce((e,r)=>{if(t&&!Wn(r)&&"script"===r.as&&r.href&&a.has(r.href))return e;let i=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let a of n)t[a]=e[a];return t}(r));return n.has(i)||(n.add(i),e.push({key:i,link:r})),e},[])}function Qn(e,t){return"lazy"===e.mode&&!0===t}function $n(){let e=a.useContext(Vt);return Un(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Xn(){let e=a.useContext(Ht);return Un(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Jn=a.createContext(void 0);function ea(){let e=a.useContext(Jn);return Un(e,"You must render this element inside a <HydratedRouter> element"),e}function ta(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function na(e,t,n){if(n&&!oa)return[e[0]];if(t){let n=e.findIndex(e=>void 0!==t[e.route.id]);return e.slice(0,n+1)}return e}Jn.displayName="FrameworkContext";function aa(e){let t=e.page,n=Be(e,Ve),r=Kt(),i=$n().router,s=a.useMemo(()=>st(i.routes,t,i.basename),[i.routes,t,i.basename]);return s?r?a.createElement(ia,d({page:t,matches:s},n)):a.createElement(sa,d({page:t,matches:s},n)):null}function ra(e){let t=ea(),n=t.manifest,r=t.routeModules,i=Le(a.useState([]),2),s=i[0],o=i[1];return a.useEffect(()=>{let t=!1;return async function(e,t,n){return Yn((await Promise.all(e.map(async e=>{let a=t.routes[e.route.id];if(a){let e=await Hn(a,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Kn).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?d(d({},e),{},{rel:"prefetch",as:"style"}):d(d({},e),{},{rel:"prefetch"})))}(e,n,r).then(e=>{t||o(e)}),()=>{t=!0}},[e,n,r]),s}function ia(e){let t=e.page,n=e.matches,r=Be(e,He),i=nn(),s=ea().future,o=$n().basename,l=a.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let e=Vn(t,o,s.unstable_trailingSlashAwareDataRequests,"rsc"),a=!1,r=[];for(let t of n)"function"===typeof t.route.shouldRevalidate?a=!0:r.push(t.route.id);return a&&r.length>0&&e.searchParams.set("_routes",r.join(",")),[e.pathname+e.search]},[o,s.unstable_trailingSlashAwareDataRequests,t,i,n]);return a.createElement(a.Fragment,null,l.map(e=>a.createElement("link",d({key:e,rel:"prefetch",as:"fetch",href:e},r))))}function sa(e){let t=e.page,n=e.matches,r=Be(e,We),i=nn(),s=ea(),o=s.future,l=s.manifest,c=s.routeModules,u=$n().basename,m=Xn(),p=m.loaderData,h=m.matches,f=a.useMemo(()=>Gn(t,n,h,l,i,"data"),[t,n,h,l,i]),g=a.useMemo(()=>Gn(t,n,h,l,i,"assets"),[t,n,h,l,i]),x=a.useMemo(()=>{if(t===i.pathname+i.search+i.hash)return[];let e=new Set,a=!1;if(n.forEach(t=>{var n;let r=l.routes[t.route.id];r&&r.hasLoader&&(!f.some(e=>e.route.id===t.route.id)&&t.route.id in p&&null!==(n=c[t.route.id])&&void 0!==n&&n.shouldRevalidate||r.hasClientLoader?a=!0:e.add(t.route.id))}),0===e.size)return[];let r=Vn(t,u,o.unstable_trailingSlashAwareDataRequests,"data");return a&&e.size>0&&r.searchParams.set("_routes",n.filter(t=>e.has(t.route.id)).map(e=>e.route.id).join(",")),[r.pathname+r.search]},[u,o.unstable_trailingSlashAwareDataRequests,p,i,l,f,n,t,c]),v=a.useMemo(()=>Zn(g,l),[g,l]),b=ra(g);return a.createElement(a.Fragment,null,x.map(e=>a.createElement("link",d({key:e,rel:"prefetch",as:"fetch",href:e},r))),v.map(e=>a.createElement("link",d({key:e,rel:"modulepreload",href:e},r))),b.map(e=>{var t;let n=e.key,i=e.link;return a.createElement("link",d(d({key:n,nonce:r.nonce},i),{},{crossOrigin:null!==(t=i.crossOrigin)&&void 0!==t?t:r.crossOrigin}))}))}var oa=!1;function la(e){let t=ea(),n=t.manifest,r=t.serverHandoffString,i=t.isSpaMode,s=t.renderMeta,o=t.routeDiscovery,l=t.ssr,c=$n(),u=c.router,m=c.static,p=c.staticContext,h=Xn().matches,f=Kt(),g=Qn(o,l);s&&(s.didRenderScripts=!0);let x=na(h,null,i);a.useEffect(()=>{0},[]);let v=a.useMemo(()=>{var t;if(f)return null;let i=p?"window.__reactRouterContext = ".concat(r,";").concat("window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}
2).pipeThrough(new TextEncoderStream());"):" ",s=m?"".concat(null!==n.hmr&&void 0!==t&&t.runtime?"import ".concat(JSON.stringify(n.hmr.runtime),";"):"").concat(g?"":"import ".concat(JSON.stringify(n.url)),";\n").concat(x.map((e,t)=>{let a="route".concat(t),r=n.routes[e.route.id];Un(r,"Route ".concat(e.route.id," not found in manifest"));let i=r.clientActionModule,s=r.clientLoaderModule,o=r.clientMiddlewareModule,l=r.hydrateFallbackModule,c=r.module,d=[...i?[{module:i,varName:"".concat(a,"_clientAction")}]:[],...s?[{module:s,varName:"".concat(a,"_clientLoader")}]:[],...o?[{module:o,varName:"".concat(a,"_clientMiddleware")}]:[],...l?[{module:l,varName:"".concat(a,"_HydrateFallback")}]:[],{module:c,varName:"".concat(a,"_main")}];return 1===d.length?"import * as ".concat(a," from ").concat(JSON.stringify(c),";"):[d.map(e=>"import * as ".concat(e.varName,' from "').concat(e.module,'";')).join("\n"),"const ".concat(a," = {").concat(d.map(e=>"...".concat(e.varName)).join(","),"};")].join("\n")}).join("\n"),"\n ").concat(g?"window.__reactRouterManifest = ".concat(JSON.stringify(function(e,t){let n=e.sri,a=Be(e,Ue),r=new Set(t.state.matches.map(e=>e.route.id)),i=t.state.location.pathname.split("/").filter(Boolean),s=["/"];for(i.pop();i.length>0;)s.push("/".concat(i.join("/"))),i.pop();s.forEach(e=>{let n=ot(t.routes,e,t.basename||"/",!1,t.branches);n&&n.forEach(e=>r.add(e.route.id))});let o=[...r].reduce((e,t)=>Object.assign(e,{[t]:a.routes[t]}),{});return d(d({},a),{},{routes:o,sri:!!n||void 0})}(n,u),null,2),";"):"","\n window.__reactRouterRouteModules = {").concat(x.map((e,t)=>"".concat(JSON.stringify(e.route.id),":route").concat(t)).join(","),"};\n\nimport(").concat(JSON.stringify(n.entry.module),");"):" ";return a.createElement(a.Fragment,null,a.createElement("script",d(d({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:i},type:void 0})),a.createElement("script",d(d({},e),{},{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:s},type:"module",async:!0})))},[]),b=oa||f?[]:function(e){return[...new Set(e)]}(n.entry.imports.concat(Zn(x,n,{includeHydrateFallback:!0}))),y="object"===typeof n.sri?n.sri:{};return _n(!f,"The <Scripts /> element is a no-op when using RSC and can be safely removed."),oa||f?null:a.createElement(a.Fragment,null,"object"===typeof n.sri?a.createElement("script",d(d({},e),{},{"rr-importmap":"",type:"importmap",suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:JSON.stringify({integrity:y})}})):null,g?null:a.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin,integrity:y[n.url],nonce:e.nonce,suppressHydrationWarning:!0}),a.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin,integrity:y[n.entry.module],nonce:e.nonce,suppressHydrationWarning:!0}),b.map(t=>a.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin,integrity:y[t],nonce:e.nonce,suppressHydrationWarning:!0})),v)}function ca(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach(t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)})}}a.Component;function da(e){let t=e.error,n=e.isOutsideRemixApp;console.error(t);let r,i=a.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."\n );\n '}});if(It(t))return a.createElement(ua,{title:"Unhandled Thrown Response!"},a.createElement("h1",{style:{fontSize:"24px"}},t.status," ",t.statusText),i);if(t instanceof Error)0;else{let e=null==t?"Unknown Error":"object"===typeof t&&"toString"in t?t.toString():JSON.stringify(t);new Error(e)}return a.createElement(ua,{title:"Application Error!",isOutsideRemixApp:n},a.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),a.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},r.stack),i)}function ua(e){var t;let n=e.title,r=e.renderScripts,i=e.isOutsideRemixApp,s=e.children;return null!==ea().routeModules.root&&void 0!==t&&t.Layout&&!i?s:a.createElement("html",{lang:"en"},a.createElement("head",null,a.createElement("meta",{charSet:"utf-8"}),a.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),a.createElement("title",null,n)),a.createElement("body",null,a.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,r?a.createElement(la,null):null)))}var ma="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{ma&&(window.__reactRouterVersion="7.15.0")}catch(rse){}function pa(e){let t=e.basename,n=e.children,r=e.useTransitions,i=e.window,s=a.useRef();null==s.current&&(s.current=$e({window:i,v5Compat:!0}));let o=s.current,l=Le(a.useState({action:o.action,location:o.location}),2),c=l[0],d=l[1],u=a.useCallback(e=>{!1===r?d(e):a.startTransition(()=>d(e))},[r]);return a.useLayoutEffect(()=>o.listen(u),[o,u]),a.createElement(An,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:o,useTransitions:r})}var ha=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fa=a.forwardRef(function(e,t){let n=e.onClick,r=e.discover,i=void 0===r?"render":r,s=e.prefetch,o=void 0===s?"none":s,l=e.relative,c=e.reloadDocument,u=e.replace,m=e.mask,p=e.state,h=e.target,f=e.to,g=e.preventScrollReset,x=e.viewTransition,v=e.defaultShouldRevalidate,b=Be(e,Ke),y=a.useContext(Qt),w=y.basename,j=y.navigator,k=y.useTransitions,N="string"===typeof f&&ha.test(f),S=Bt(f,w);f=S.to;let _=function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative;Xe(tn(),"useHref() may be used only in the context of a <Router> component.");let n=a.useContext(Qt),r=n.basename,i=n.navigator,s=cn(e,{relative:t}),o=s.hash,l=s.pathname,c=s.search,d=l;return"/"!==r&&(d="/"===l?r:At([r,l])),i.createHref({pathname:d,search:c,hash:o})}(f,{relative:l}),z=nn(),E=null;if(m){let e=Ct(m,[],z.mask?z.mask.pathname:"/",!0);"/"!==w&&(e.pathname="/"===e.pathname?w:At([w,e.pathname])),E=j.createHref(e)}let C=function(e,t){let n=a.useContext(Jn),r=Le(a.useState(!1),2),i=r[0],s=r[1],o=Le(a.useState(!1),2),l=o[0],c=o[1],d=t.onFocus,u=t.onBlur,m=t.onMouseEnter,p=t.onMouseLeave,h=t.onTouchStart,f=a.useRef(null);a.useEffect(()=>{if("render"===e&&c(!0),"viewport"===e){let e=new IntersectionObserver(e=>
2{e.forEach(e=>{c(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),a.useEffect(()=>{if(i){let e=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(e)}}},[i]);let g=()=>{s(!0)},x=()=>{s(!1),c(!1)};return n?"intent"!==e?[l,f,{}]:[l,f,{onFocus:ta(d,g),onBlur:ta(u,x),onMouseEnter:ta(m,g),onMouseLeave:ta(p,x),onTouchStart:ta(h,g)}]:[!1,f,{}]}(o,b),P=Le(C,3),A=P[0],T=P[1],R=P[2],O=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.target,r=t.replace,i=t.mask,s=t.state,o=t.preventScrollReset,l=t.relative,c=t.viewTransition,d=t.defaultShouldRevalidate,u=t.useTransitions,m=sn(),p=nn(),h=cn(e,{relative:l});return a.useCallback(t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:nt(p)===nt(h),f=()=>m(e,{replace:n,mask:i,state:s,preventScrollReset:o,relative:l,viewTransition:c,defaultShouldRevalidate:d});u?a.startTransition(()=>f()):f()}},[p,m,h,r,i,s,n,e,o,l,c,d,u])}(f,{replace:u,mask:m,state:p,target:h,preventScrollReset:g,relative:l,viewTransition:x,defaultShouldRevalidate:v,useTransitions:k});let D=!(S.isExternal||c),M=a.createElement("a",d(d(d({},b),R),{},{href:(D?E:void 0)||S.absoluteURL||_,onClick:D?function(e){n&&n(e),e.defaultPrevented||O(e)}:n,ref:ca(t,T),target:h,"data-discover":N||"render"!==i?void 0:"true"}));return A&&!N?a.createElement(a.Fragment,null,M,a.createElement(aa,{page:_})):M});fa.displayName="Link";var ga=a.forwardRef(function(e,t){let n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,s=void 0!==i&&i,o=e.className,l=void 0===o?"":o,c=e.end,u=void 0!==c&&c,m=e.style,p=e.to,h=e.viewTransition,f=e.children,g=Be(e,Ge),x=cn(p,{relative:g.relative}),v=nn(),b=a.useContext(Ht),y=a.useContext(Qt),w=y.navigator,j=y.basename,k=null!=b&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relative,r=a.useContext(Gt);Xe(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let i=ba("useViewTransitionState").basename,s=cn(e,{relative:n});if(!r.isTransitioning)return!1;let o=kt(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=kt(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=yt(s.pathname,l)||null!=yt(s.pathname,o)}(x)&&!0===h,N=w.encodeLocation?w.encodeLocation(x).pathname:x.pathname,S=v.pathname,_=b&&b.navigation&&b.navigation.location?b.navigation.location.pathname:null;s||(S=S.toLowerCase(),_=_?_.toLowerCase():null,N=N.toLowerCase()),_&&j&&(_=kt(_,j)||_);const z="/"!==N&&N.endsWith("/")?N.length-1:N.length;let E,C=S===N||!u&&S.startsWith(N)&&"/"===S.charAt(z),P=null!=_&&(_===N||!u&&_.startsWith(N)&&"/"===_.charAt(N.length)),A={isActive:C,isPending:P,isTransitioning:k},T=C?r:void 0;E="function"===typeof l?l(A):[l,C?"active":null,P?"pending":null,k?"transitioning":null].filter(Boolean).join(" ");let R="function"===typeof m?m(A):m;return a.createElement(fa,d(d({},g),{},{"aria-current":T,className:E,ref:t,style:R,to:p,viewTransition:h}),"function"===typeof f?f(A):f)});ga.displayName="NavLink";var xa=a.forwardRef((e,t)=>{let n=e.discover,r=void 0===n?"render":n,i=e.fetcherKey,s=e.navigate,o=e.reloadDocument,l=e.replace,c=e.state,u=e.method,m=void 0===u?On:u,p=e.action,h=e.onSubmit,f=e.relative,g=e.preventScrollReset,x=e.viewTransition,v=e.defaultShouldRevalidate,b=Be(e,Ze),y=a.useContext(Qt).useTransitions,w=ka(),j=function(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).relative,n=a.useContext(Qt).basename,r=a.useContext(Xt);Xe(r,"useFormAction must be used inside a RouteContext");let i=Le(r.matches.slice(-1),1)[0],s=d({},cn(e||".",{relative:t})),o=nn();if(null==e){s.search=o.search;let e=new URLSearchParams(s.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let n=e.toString();s.search=n?"?".concat(n):""}}e&&"."!==e||!i.route.index||(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(s.pathname="/"===s.pathname?n:At([n,s.pathname]));return nt(s)}(p,{relative:f}),k="get"===m.toLowerCase()?"get":"post",N="string"===typeof p&&ha.test(p);return a.createElement("form",d(d({ref:t,method:k,action:j,onSubmit:o?h:e=>{if(h&&h(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=(null===t||void 0===t?void 0:t.getAttribute("formmethod"))||m,r=()=>w(t||e.currentTarget,{fetcherKey:i,method:n,navigate:s,replace:l,state:c,relative:f,preventScrollReset:g,viewTransition:x,defaultShouldRevalidate:v});y&&!1!==s?a.startTransition(()=>r()):r()}},b),{},{"data-discover":N||"render"!==r?void 0:"true"}))});function va(e){return"".concat(e," must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.")}function ba(e){let t=a.useContext(Vt);return Xe(t,va(e)),t}function ya(e){Je("undefined"!==typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=a.useRef(In(e)),n=a.useRef(!1),r=nn(),i=a.useMemo(()=>function(e,t){let n=In(e);return t&&t.forEach((e,a)=>
2{n.has(a)||t.getAll(a).forEach(e=>{n.append(a,e)})}),n}(r.search,n.current?null:t.current),[r.search]),s=sn(),o=a.useCallback((e,t)=>{const a=In("function"===typeof e?e(new URLSearchParams(i)):e);n.current=!0,s("?"+a,t)},[s,i]);return[i,o]}xa.displayName="Form";var wa=0,ja=()=>"__".concat(String(++wa),"__");function ka(){let e=ba("useSubmit").router,t=a.useContext(Qt).basename,n=wn("useRouteId"),r=e.fetch,i=e.navigate;return a.useCallback(async function(e){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=qn(e,t),o=s.action,l=s.method,c=s.encType,d=s.formData,u=s.body;if(!1===a.navigate){let e=a.fetcherKey||ja();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:u,formMethod:a.method||l,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:u,formMethod:a.method||l,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}var Na=n(950);const Sa=["message"];const _a=Array(12).fill(0),za=e=>{let t=e.visible,n=e.className;return a.createElement("div",{className:["sonner-loading-wrapper",n].filter(Boolean).join(" "),"data-visible":t},a.createElement("div",{className:"sonner-spinner"},_a.map((e,t)=>a.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},Ea=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),Ca=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Pa=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Aa=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},a.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ta=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},a.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),a.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}));let Ra=1;const Oa=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;const n=e.message,a=Be(e,Sa),r="number"===typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:Ra++,i=this.toasts.find(e=>e.id===r),s=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(t=>t.id===r?(this.publish(d(d(d({},t),e),{},{id:r,title:n})),d(d(d({},t),e),{},{id:r,dismissible:s,title:n})):t):this.addToast(d(d({title:n},a),{},{dismissible:s,id:r})),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>
2this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create(d(d({},t),{},{message:e})),this.error=(e,t)=>this.create(d(d({},t),{},{message:e,type:"error"})),this.success=(e,t)=>this.create(d(d({},t),{},{type:"success",message:e})),this.info=(e,t)=>this.create(d(d({},t),{},{type:"info",message:e})),this.warning=(e,t)=>this.create(d(d({},t),{},{type:"warning",message:e})),this.loading=(e,t)=>this.create(d(d({},t),{},{type:"loading",message:e})),this.promise=(e,t)=>{if(!t)return;let n;void 0!==t.loading&&(n=this.create(d(d({},t),{},{promise:e,type:"loading",message:t.loading,description:"function"!==typeof t.description?t.description:void 0})));const r=Promise.resolve(e instanceof Function?e():e);let i,s=void 0!==n;const o=r.then(async e=>{i=["resolve",e];if(a.isValidElement(e))s=!1,this.create({id:n,type:"default",message:e});else if(Da(e)&&!e.ok){s=!1;const r="function"===typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,i="function"===typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,o="object"===typeof r&&!a.isValidElement(r)?r:{message:r};this.create(d({id:n,type:"error",description:i},o))}else if(e instanceof Error){s=!1;const r="function"===typeof t.error?await t.error(e):t.error,i="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!a.isValidElement(r)?r:{message:r};this.create(d({id:n,type:"error",description:i},o))}else if(void 0!==t.success){s=!1;const r="function"===typeof t.success?await t.success(e):t.success,i="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!a.isValidElement(r)?r:{message:r};this.create(d({id:n,type:"success",description:i},o))}}).catch(async e=>{if(i=["reject",e],void 0!==t.error){s=!1;const r="function"===typeof t.error?await t.error(e):t.error,i="function"===typeof t.description?await t.description(e):t.description,o="object"===typeof r&&!a.isValidElement(r)?r:{message:r};this.create(d({id:n,type:"error",description:i},o))}}).finally(()=>{s&&(this.dismiss(n),n=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>o.then(()=>"reject"===i[0]?t(i[1]):e(i[1])).catch(t));return"string"!==typeof n&&"number"!==typeof n?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{const n=(null==t?void 0:t.id)||Ra++;return this.create(d({jsx:e(n),id:n},t)),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Da=e=>e&&"object"===typeof e&&"ok"in e&&"boolean"===typeof e.ok&&"status"in e&&"number"===typeof e.status,Ma=(e,t)=>{const n=(null==t?void 0:t.id)||Ra++;return Oa.addToast(d(d({title:e},t),{},{id:n})),n},Ia=Object.assign(Ma,{success:Oa.success,info:Oa.info,warning:Oa.warning,error:Oa.error,custom:Oa.custom,message:Oa.message,promise:Oa.promise,dismiss:Oa.dismiss,loading:Oa.loading},{getHistory:()=>Oa.toasts,getToasts:()=>Oa.getActiveToasts()});function Fa(e){return void 0!==e.label}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)
vendor: 13,513 bytes, line 2
2}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function
2La(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}const Ba=e=>{var t,n,r,i,s,o,l,c,u;const m=e.invert,p=e.toast,h=e.unstyled,f=e.interacting,g=e.setHeights,x=e.visibleToasts,v=e.heights,b=e.index,y=e.toasts,w=e.expanded,j=e.removeToast,k=e.defaultRichColors,N=e.closeButton,S=e.style,_=e.cancelButtonStyle,z=e.actionButtonStyle,E=e.className,C=void 0===E?"":E,P=e.descriptionClassName,A=void 0===P?"":P,T=e.duration,R=e.position,O=e.ga
vendor: 7,098 bytes, line 2
2p,D=e.expandByDefault,M=e.classNames,I=e.icons,F=e.closeButtonAriaLabel,L=void 0===F?"Close toast":F,B=Le(a.useState(null),2),q=B[0],U=B[1],V=Le(a.useState(null),2),H=V[0],W=V[1],K=Le(a.useState(!1),2),G=K[0],Z=K[1],Y=Le(a.useState(!1),2),Q=Y[0],$=Y[1],X=Le(a.useState(!1),2),J=X[0],ee=X[1],te=Le(a.useState(!1),2),ne=te[0],ae=te[1],re=Le(a.useState(!1),2),ie=re[0],se=re[1],oe=Le(a.useState(0),2),le=oe[0],ce=oe[1],de=Le(a.useState(0),2),ue=de[0],me=de[1],pe=a.useRef(p.duration||T||4e3),he=a.useRef(null),fe=a.useRef(null),ge=0===b,xe=b+1<=x,ve=p.type,be=!1!==p.dismissible,ye=p.className||"",we=p.descriptionClassName||"",je=a.useMemo(()=>v.findIndex(e=>e.toastId===p.id)||0,[v,p.id]),ke=a.useMemo(()=>{var e;return null!=(e=p.closeButton)?e:N},[p.closeButton,N]),Ne=a.useMemo(()=>p.duration||T||4e3,[p.duration,T]),Se=a.useRef(0),_e=a.useRef(0),ze=a.useRef(0),Ee=a.useRef(null),Ce=Le(R.split("-"),2),Pe=Ce[0],Ae=Ce[1],Te=a.useMemo(()=>v.reduce((e,t,n)=>n>=je?e:e+t.height,0),[v,je]),Re=(()=>{const e=Le(a.useState(document.hidden),2),t=e[0],n=e[1];return a.useEffect(()=>{const e=()=>{n(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),t})(),Oe=p.invert||m,De="loading"===ve;_e.current=a.useMemo(()=>je*O+Te,[je,Te]),a.useEffect(()=>{pe.current=Ne},[Ne]),a.useEffect(()=>{Z(!0)},[]),a.useEffect(()=>{const e=fe.current;if(e){const t=e.getBoundingClientRect().height;return me(t),g(e=>[{toastId:p.id,height:t,position:p.position},...e]),()=>g(e=>e.filter(e=>e.toastId!==p.id))}},[g,p.id]),a.useLayoutEffect(()=>{if(!G)return;const e=fe.current,t=e.style.height;e.style.height="auto";const n=e.getBoundingClientRect().height;e.style.height=t,me(n),g(e=>e.find(e=>e.toastId===p.id)?e.map(e=>e.toastId===p.id?d(d({},e),{},{height:n}):e):[{toastId:p.id,height:n,position:p.position},...e])},[G,p.title,p.description,g,p.id]);const Me=a.useCallback(()=>{$(!0),ce(_e.current),g(e=>e.filter(e=>e.toastId!==p.id)),setTimeout(()=>{j(p)},200)},[p,j,g,_e]);a.useEffect(()=>{if(p.promise&&"loading"===ve||p.duration===1/0||"loading"===p.type)return;let e;return w||f||Re?(()=>{if(ze.current<Se.current){const e=(new Date).getTime()-Se.current;pe.current=pe.current-e}ze.current=(new Date).getTime()})():pe.current!==1/0&&(Se.current=(new Date).getTime(),e=setTimeout(()=>{null==p.onAutoClose||p.onAutoClose.call(p,p),Me()},pe.current)),()=>clearTimeout(e)},[w,f,p,ve,Re,Me]),a.useEffect(()=>{p.delete&&Me()},[Me,p.delete]);const Ie=p.icon||(null==I?void 0:I[ve])||(e=>{switch(e){case"success":return Ea;case"info":return Pa;case"warning":return Ca;case"error":return Aa;default:return null}})(ve);var Fe,Be;return a.createElement("li",{tabIndex:0,ref:fe,className:La(C,ye,null==M?void 0:M.toast,null==p||null==(t=p.classNames)?void 0:t.toast,null==M?void 0:M.default,null==M?void 0:M[ve],null==p||null==(n=p.classNames)?void 0:n[ve]),"data-sonner-toast":"","data-rich-colors":null!=(Fe=p.richColors)?Fe:k,"data-styled":!Boolean(p.jsx||p.unstyled||h),"data-mounted":G,"data-promise":Boolean(p.promise),"data-swiped":ie,"data-removed":Q,"data-visible":xe,"data-y-position":Pe,"data-x-position":Ae,"data-index":b,"data-front":ge,"data-swiping":J,"data-dismissible":be,"data-type":ve,"data-invert":Oe,"data-swipe-out":ne,"data-swipe-direction":H,"data-expanded":Boolean(w||D&&G),style:d(d({"--index":b,"--toasts-before":b,"--z-index":y.length-b,"--offset":"".concat(Q?le:_e.current,"px"),"--initial-height":D?"auto":"".concat(ue,"px")},S),p.style),onDragEnd:()=>{ee(!1),U(null),Ee.current=null},onPointerDown:e=>{!De&&be&&(he.current=new Date,ce(_e.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(ee(!0),Ee.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,n;if(ne||!be)return;Ee.current=null;const a=Number((null==(e=fe.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),r=Number((null==(t=fe.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),i=(new Date).getTime()-(null==(n=he.current)?void 0:n.getTime()),s="x"===q?a:r,o=Math.abs(s)/i;if(Math.abs(s)>=45||o>.11)return ce(_e.current),null==p.onDismiss||p.onDismiss.call(p,p),W("x"===q?a>0?"right":"left":r>0?"down":"up"),Me(),void ae(!0);var l,c;null==(l=fe.current)||l.style.setProperty("--swipe-amount-x","0px"),null==(c=fe.current)||c.style.setProperty("--swipe-amount-y","0px"),se(!1),ee(!1),U(null)},onPointerMove:t=>{var n,a,r;if(!Ee.current||!be)return;if((null==(n=window.getSelection())?void 0:n.toString().length)>0)return;const i=t.clientY-Ee.current.y,s=t.clientX-Ee.current.x;var o;const l=null!=(o=e.swipeDirections)?o:function(e){const t=Le(e.split("-"),2),n=t[0],a=t[1],r=[];return n&&r.push(n),a&&r.push(a),r}(R);!q&&(Math.abs(s)>1||Math.abs(i)>1)&&U(Math.abs(s)>Math.abs(i)?"x":"y");let c={x:0,y:0};const d=e=>1/(1.5+Math.abs(e)/20);if("y"===q){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&i<0||l.includes("bottom")&&i>0)c.y=i;else{const e=i*d(i);c.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===q&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&s<0||l.includes("right")&&s>0)c.x=s;else{const e=s*d(s);c.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(c.x)>0||Math.abs(c.y)>0)&&se(!0),null==(a=fe.current)||a.style.setProperty("--swipe-amount-x","".concat(c.x,"px")),null==(r=fe.current)||r.style.setProperty("--swipe-amount-y","".concat(c.y,"px"))}},ke&&!p.jsx&&"loading"!==ve?a.createElement("button",{"aria-label":L,"data-disabled":De,"data-close-button":!0,onClick:De||!be?()=>{}:()=>{Me(),null==p.onDismiss||p.onDismiss.call(p,p)},className:La(null==M?void 0:M.closeButton,null==p||null==(r=p.classNames)?void 0:r.closeButton)},null!=(Be=null==I?void 0:I.close)?Be:Ta):null,(ve||p.icon||p.promise)&&null!==p.icon&&(null!==(null==I?void 0:I[ve])||p.icon)?a.createElement("div",{"data-icon":"",className:La(null==M?void 0:M.icon,null==p||null==(i=p.classNames)?void 0:i.icon)},p.promise||"loading"===p.type&&!p.icon?p.icon||function(){var e,t;return(null==I?void 0:I.loading)?a.createElement("div",{className:La(null==M?void 0:M.loader,null==p||null==(t=p.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ve},I.loading):a.createElement(za,{className:La(null==M?void 0:M.loader,null==p||null==(e=p.classNames)?void 0:e.loader),visible:"loading"===ve})}():null,"loading"!==p.type?Ie:null):null,a.createElement("div",{"data-content":"",className:La(null==M?void 0:M.content,null==p||null==(s=p.classNames)?void 0:s.content)},a.createElement("div",{"data-title":"",className:La(null==M?void 0:M.title,null==p||null==(o=p.classNames)?void 0:o.title)},p.jsx?p.jsx:"function"===typeof p.title?p.title():p.title),p.description?a.createElement("div",{"data-description":"",className:La(A,we,null==M?void 0:M.description,null==p||null==(l=p.classNames)?void 0:l.description)},"function"===typeof p.description?p.description():p.description):null),a.isValidElement(p.cancel)?p.cancel:p.cancel&&Fa(p.cancel)?a.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||_,onClick:e=>
2{Fa(p.cancel)&&be&&(null==p.cancel.onClick||p.cancel.onClick.call(p.cancel,e),Me())},className:La(null==M?void 0:M.cancelButton,null==p||null==(c=p.classNames)?void 0:c.cancelButton)},p.cancel.label):null,a.isValidElement(p.action)?p.action:p.action&&Fa(p.action)?a.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||z,onClick:e=>{Fa(p.action)&&(null==p.action.onClick||p.action.onClick.call(p.action,e),e.defaultPrevented||Me())},className:La(null==M?void 0:M.actionButton,null==p||null==(u=p.classNames)?void 0:u.actionButton)},p.action.label):null)};function qa(){if("undefined"===typeof window)return"ltr";if("undefined"===typeof document)return"ltr";const e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}function Ua(e,t){const n={};return[e,t].forEach((e,t)=>{const a=1===t,r=a?"--mobile-offset":"--offset",i=a?"16px":"24px";function s(e){["top","right","bottom","left"].forEach(t=>{n["".concat(r,"-").concat(t)]="number"===typeof e?"".concat(e,"px"):e})}"number"===typeof e||"string"===typeof e?s(e):"object"===typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?n["".concat(r,"-").concat(t)]=i:n["".concat(r,"-").concat(t)]="number"===typeof e[t]?"".concat(e[t],"px"):e[t]}):s(i)}),n}const Va=a.forwardRef(function(e,t){const n=e.invert,r=e.position,i=void 0===r?"bottom-right":r,s=e.hotkey,o=void 0===s?["altKey","KeyT"]:s,l=e.expand,c=e.closeButton,u=e.className,m=e.offset,p=e.mobileOffset,h=e.theme,f=void 0===h?"light":h,g=e.richColors,x=e.duration,v=e.style,b=e.visibleToasts,y=void 0===b?3:b,w=e.toastOptions,j=e.dir,k=void 0===j?qa():j,N=e.gap,S=void 0===N?14:N,_=e.icons,z=e.containerAriaLabel,E=void 0===z?"Notifications":z,C=Le(a.useState([]),2),P=C[0],A=C[1],T=a.useMemo(()=>Array.from(new Set([i].concat(P.filter(e=>e.position).map(e=>e.position)))),[P,i]),R=Le(a.useState([]),2),O=R[0],D=R[1],M=Le(a.useState(!1),2),I=M[0],F=M[1],L=Le(a.useState(!1),2),B=L[0],q=L[1],U=Le(a.useState("system"!==f?f:"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),2),V=U[0],H=U[1],W=a.useRef(null),K=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),G=a.useRef(null),Z=a.useRef(!1),Y=a.useCallback(e=>{A(t=>{var n;return(null==(n=t.find(t=>t.id===e.id))?void 0:n.delete)||Oa.dismiss(e.id),t.filter(t=>t.id!==e.id)})},[]);return a.useEffect(()=>Oa.subscribe(e=>{e.dismiss?requestAnimationFrame(()=>{A(t=>t.map(t=>t.id===e.id?d(d({},t),{},{delete:!0}):t))}):setTimeout(()=>{Na.flushSync(()=>{A(t=>{const n=t.findIndex(t=>t.id===e.id);return-1!==n?[...t.slice(0,n),d(d({},t[n]),e),...t.slice(n+1)]:[e,...t]})})})}),[P]),a.useEffect(()=>{if("system"!==f)return void H(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?H("dark"):H("light")),"undefined"===typeof window)return;const e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let t=e.matches;H(t?"dark":"light")})}catch(t){e.addListener(e=>{let t=e.matches;try{H(t?"dark":"light")}catch(rse){console.error(rse)}})}},[f]),a.useEffect(()=>{P.length<=1&&F(!1)},[P]),a.useEffect(()=>{const e=e=>{var t;const n=o.every(t=>e[t]||e.code===t);var a;n&&(F(!0),null==(a=W.current)||a.focus());"Escape"!==e.code||document.activeElement!==W.current&&!(null==(t=W.current)?void 0:t.contains(document.activeElement))||F(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[o]),a.useEffect(()=>{if(W.current)return()=>{G.current&&(G.current.focus({preventScroll:!0}),G.current=null,Z.current=!1)}},[W.current]),a.createElement("section",{ref:t,"aria-label":"".concat(E," ").concat(K),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},T.map((t,r)=>{var i;const s=Le(t.split("-"),2),o=s[0],h=s[1];return P.length?a.createElement("ol",{key:t,dir:"auto"===k?qa():k,tabIndex:-1,ref:W,className:u,"data-sonner-toaster":!0,"data-sonner-theme":V,"data-y-position":o,"data-lifted":I&&P.length>1&&!l,"data-x-position":h,style:d(d({"--front-toast-height":"".concat((null==(i=O[0])?void 0:i.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(S,"px")},v),Ua(m,p)),onBlur:e=>{Z.current&&!e.currentTarget.contains(e.relatedTarget)&&(Z.current=!1,G.current&&(G.current.focus({preventScroll:!0}),G.current=null))},onFocus:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||Z.current||(Z.current=!0,G.current=e.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{B||F(!1)},onDragEnd:()=>F(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||q(!0)},onPointerUp:()=>q(!1)},P.filter(e=>!e.position&&0===r||e.position===t).map((r,i)=>{var s,o;
2return a.createElement(Ba,{key:r.id,icons:_,index:i,toast:r,defaultRichColors:g,duration:null!=(s=null==w?void 0:w.duration)?s:x,className:null==w?void 0:w.className,descriptionClassName:null==w?void 0:w.descriptionClassName,invert:n,visibleToasts:y,closeButton:null!=(o=null==w?void 0:w.closeButton)?o:c,interacting:B,position:t,style:null==w?void 0:w.style,unstyled:null==w?void 0:w.unstyled,classNames:null==w?void 0:w.classNames,cancelButtonStyle:null==w?void 0:w.cancelButtonStyle,actionButtonStyle:null==w?void 0:w.actionButtonStyle,closeButtonAriaLabel:null==w?void 0:w.closeButtonAriaLabel,removeToast:Y,toasts:P.filter(e=>e.position==r.position),heights:O.filter(e=>e.position==r.position),setHeights:D,expandByDefault:l,gap:S,expanded:I,swipeDirections:e.swipeDirections})})):null}))}),Ha={de:{"auswertungen.title":"Ergebnisse \u2013 PERSENTIS Care","auswertungen.subtitle":"Abgeschlossene Umfragen und ihre Ergebnisse","auswertungen.info.teilnehmer":"Teilnehmer","auswertungen.info.antworten":"Antworten","auswertungen.info.abgeschlossen":"Abgeschlossen","auswertungen.info.laufzeit":"Laufzeit","auswertungen.info.zusatzfragen":"Zusatzfragen","auswertungen.open":"Ergebnisse \xf6ffnen","auswertungen.completed_heading":"Umfragen abgeschlossen","auswertungen.empty":"Keine abgeschlossenen Umfragen vorhanden.","common.export_pdf":"Als PDF exportieren","common.search_label":"Suche (Firma, Filiale, Bezeichnung)","common.search_placeholder":"Suchen \u2026","common.date_from":"Zeitraum von","common.date_to":"bis","common.reset":"Zur\xfccksetzen","common.days":"Tage","welcome.title":"Willkommen zur\xfcck{name}!","welcome.subtitle":"Ihr zentraler Einstieg in die PERSENTIS Suite \u2013 ein Blick auf die wichtigsten Werte Ihrer Module.","wel
2come.loading":"L\xe4dt \u2026","welcome.score.nodata":"Noch keine Auswertungsdaten","welcome.cta.analytics":"gehe zu ANALYTICS","welcome.cta.pulse":"gehe zu PULSE","welcome.cta.care":"gehe zu CARE","welcome.profiling.activate":"PERSENTIS Profiling aktivieren","welcome.boarding.activate":"PERSENTIS Boarding aktivieren","kpi.surveys":"Umfragen","kpi.responses":"Antworten","kpi.participants":"Teilnehmende","kpi.rate":"Teilnahmequote","dashboard.anonymity.title":"Anonymit\xe4tsschutz aktiv","dashboard.anonymity.text":"Zum Schutz der Anonymit\xe4t werden Auswertungen erst ab {min} Mitarbeitenden und {min} Antworten angezeigt. {scope} ist daher keine Einsicht in die Ergebnisse m\xf6glich.","dashboard.anonymity.scope_dept":"F\xfcr diese Abteilung","dashboard.anonymity.scope_area":"F\xfcr den gew\xe4hlten Bereich","dashboard.anonymity.employees":"Mitarbeitende","dashboard.anonymity.responses":"Antworten","dashboard.comparison.heading":"Ergebnisse im Vergleich","dashboard.comparison.branch_suffix":"Filiale {name}","dashboard.comparison.open_dept":"Abteilung \xf6ffnen","care_overview.nodata_banner":"Noch keine Umfrage vorhanden. Sobald Sie eine Care-Umfrage anlegen und erste Teilnehmer teilgenommen haben, erscheinen hier die Ergebnisse."},en:{"auswertungen.title":"Results \u2013 PERSENTIS Care","auswertungen.subtitle":"Completed surveys and their results","auswertungen.info.teilnehmer":"Participants","auswertungen.info.antworten":"Responses","auswertungen.info.abgeschlossen":"Completed","auswertungen.info.laufzeit":"Duration","auswertungen.info.zusatzfragen":"Additional questions","auswertungen.open":"Open results","auswertungen.completed_heading":"Surveys completed","auswertungen.empty":"No completed surveys available.","common.export_pdf":"Export as PDF","common.search_label":"Search (company, branch, designation)","common.search_placeholder":"Search \u2026","common.date_from":"Period from","common.date_to":"to","common.reset":"Reset","common.days":"Days","welcome.title":"Welcome back{name}!","welcome.subtitle":"Your central entry point to the PERSENTIS Suite \u2013 an overview of the key figures of your modules.","welcome.loading":"Loading \u2026","welcome.score.nodata":"No evaluation data yet","welcome.cta.analytics":"go to ANALYTICS","welcome.cta.pulse":"go to PULSE","welcome.cta.care":"go to CARE","welcome.profiling.activate":"Activate PERSENTIS Profiling","welcome.boarding.activate":"Activate PERSENTIS Boarding","kpi.surveys":"Surveys","kpi.responses":"Responses","kpi.participants":"Participants","kpi.rate":"Participation rate","dashboard.anonymity.title":"Anonymity protection active","dashboard.anonymity.text":"To protect anonymity, evaluations are only displayed from {min} employees and {min} responses onward. {scope} therefore no insight into the results is possible.","dashboard.anonymity.scope_dept":"For this department","dashboard.anonymity.scope_area":"For the selected area","dashboard.anonymity.employees":"Employees","dashboard.anonymity.responses":"Responses","dashboard.comparison.heading":"Results in comparison","dashboard.comparison.branch_suffix":"Branch {name}","dashboard.comparison.open_dept":"Open department","care_overview.nodata_banner":"No survey available yet. As soon as you create a Care survey and the first participants have taken part, the results will appear here."},fr:{"auswertungen.title":"R\xe9sultats \u2013 PERSENTIS Care","auswertungen.subtitle":"Enqu\xeates termin\xe9es et leurs r\xe9sultats","auswertungen.info.teilnehmer":"Participants","auswertungen.info.antworten":"R\xe9ponses","auswertungen.info.abgeschlossen":"Termin\xe9","auswertungen.info.laufzeit":"Dur\xe9e","auswertungen.info.zusatzfragen":"Questions suppl\xe9mentaires","auswertungen.open":"Ouvrir les r\xe9sultats","auswertungen.completed_heading":"Enqu\xeates termin\xe9es","auswertungen.empty":"Aucune enqu\xeate termin\xe9e disponible.","common.export_pdf":"Exporter en PDF","common.search_label":"Recherche (entreprise, succursale, intitul\xe9)","common.search_placeholder":"Rechercher \u2026","common.date_from":"P\xe9riode du","common.date_to":"au","common.reset":"R\xe9initialiser","common.days":"jours","welcome.title":"Bon retour{name} !","welcome.subtitle":"Votre point d\u2019entr\xe9e central dans la suite PERSENTIS \u2013 un aper\xe7u des indicateurs cl\xe9s de vos modules.","welcome.loading":"Chargement \u2026","welcome.score.nodata":"Pas encore de donn\xe9es d\u2019anal
2yse","welcome.cta.analytics":"aller \xe0 ANALYTICS","welcome.cta.pulse":"aller \xe0 PULSE","welcome.cta.care":"aller \xe0 CARE","welcome.profiling.activate":"Activer PERSENTIS Profiling","welcome.boarding.activate":"Activer PERSENTIS Boarding","kpi.surveys":"Enqu\xeates","kpi.responses":"R\xe9ponses","kpi.participants":"Participants","kpi.rate":"Taux de participation","dashboard.anonymity.title":"Protection de l\u2019anonymat activ\xe9e","dashboard.anonymity.text":"Afin de prot\xe9ger l\u2019anonymat, les analyses ne sont affich\xe9es qu\u2019\xe0 partir de {min} collaborateurs et de {min} r\xe9ponses. {scope} il n\u2019est donc pas possible de consulter les r\xe9sultats.","dashboard.anonymity.scope_dept":"Pour ce d\xe9partement","dashboard.anonymity.scope_area":"Pour la zone s\xe9lectionn\xe9e","dashboard.anonymity.employees":"Collaborateurs","dashboard.anonymity.responses":"R\xe9ponses","dashboard.comparison.heading":"R\xe9sultats en comparaison","dashboard.comparison.branch_suffix":"Succursale {name}","dashboard.comparison.open_dept":"Ouvrir le d\xe9partement","care_overview.nodata_banner":"Aucune enqu\xeate disponible pour le moment. D\xe8s que vous cr\xe9ez une enqu\xeate Care et que les premiers participants y ont pris part, les r\xe9sultats appara\xeetront ici."},es:{"auswertungen.title":"Resultados \u2013 PERSENTIS Care","auswertungen.subtitle":"Encuestas completadas y sus resultados","auswertungen.info.teilnehmer":"Participantes","auswertungen.info.antworten":"Respuestas","auswertungen.info.abgeschlossen":"Completado","auswertungen.info.laufzeit":"Duraci\xf3n","auswertungen.info.zusatzfragen":"Preguntas adicionales","auswertungen.open":"Abrir resultados","auswertungen.completed_heading":"Encuestas completadas","auswertungen.empty":"No hay encuestas completadas.","common.export_pdf":"Exportar como PDF","common.search_label":"Buscar (empresa, sucursal, denominaci\xf3n)","common.search_placeholder":"Buscar \u2026","common.date_from":"Per\xedodo desde","common.date_to":"hasta","common.reset":"Restablecer","common.days":"D\xedas","welcome.title":"\xa1Bienvenido de nuevo{name}!","welcome.subtitle":"Su acceso central a la suite PERSENTIS: una vista de los valores m\xe1s importantes de sus m\xf3dulos.","welcome.loading":"Cargando \u2026","welcome.score.nodata":"A\xfan no hay datos de evaluaci\xf3n","welcome.cta.analytics":"ir a ANALYTICS","welcome.cta.pulse":"ir a PULSE","welcome.cta.care":"ir a CARE","welcome.profiling.activate":"Activar PERSENTIS Profiling","welcome.boarding.activate":"Activar PERSENTIS Boarding","kpi.surveys":"Encuestas","kpi.responses":"Respuestas","kpi.participants":"Participantes","kpi.rate":"Tasa de participaci\xf3n","dashboard.anonymity.title":"Protecci\xf3n del anonimato activada","dashboard.anonymity.text":"Para proteger el anonimato, las evaluaciones solo se muestran a partir de {min} empleados y {min} respuestas. Por lo tanto, {scope} no es posible ver los resultados.","dashboard.anonymity.scope_dept":"Para este departamento","dashboard.anonymity.scope_area":"Para el \xe1rea seleccionada","dashboard.anonymity.employees":"Empleados","dashboard.anonymity.responses":"Respuestas","dashboard.comparison.heading":"Resultados en comparaci\xf3n","dashboard.comparison.branch_suffix":"Sucursal {name}","dashboard.comparison.open_dept":"Abrir departamento","care_overview.nodata_banner":"A\xfan no hay ninguna encuesta. En cuanto cree una encuesta de Care y participen los primeros participantes, aqu\xed aparecer\xe1n los resultados."},it:{"auswertungen.title":"Risultati \u2013 PERSENTIS Care","auswertungen.subtitle":"Sondaggi completati e relativi risultati","auswertungen.info.teilnehmer":"Partecipanti","auswertungen.info.antworten":"Risposte","auswertungen.info.abgeschlossen":"Completato","auswertungen.info.laufzeit":"Durata","auswertungen.info.zusatzfragen":"Domande aggiuntive","auswertungen.open":"Apri risultati","auswertungen.completed_heading":"Sondaggi completati","auswertungen.empty":"Nessun sondaggio completato disponibile.","common.export_pdf":"Esporta come PDF","common.search_label":"Cerca (azienda, filiale, denominazione)","common.search_placeholder":"Cerca \u2026","common.date_from":"Periodo dal","common.date_to":"al","common.reset":"Reimposta","common.days":"Giorni","welcome.title":"Bentornato{name}!","welcome.subtitle":"Il Suo accesso centrale alla suite PERSENTIS \u2013 una panoramica dei valori pi\xf9 importanti dei Suoi moduli.","
2welcome.loading":"Caricamento \u2026","welcome.score.nodata":"Nessun dato di valutazione disponibile","welcome.cta.analytics":"vai ad ANALYTICS","welcome.cta.pulse":"vai a PULSE","welcome.cta.care":"vai a CARE","welcome.profiling.activate":"Attivare PERSENTIS Profiling","welcome.boarding.activate":"Attivare PERSENTIS Boarding","kpi.surveys":"Sondaggi","kpi.responses":"Risposte","kpi.participants":"Partecipanti","kpi.rate":"Tasso di partecipazione","dashboard.anonymity.title":"Protezione dell'anonimato attiva","dashboard.anonymity.text":"Per proteggere l'anonimato, le valutazioni vengono visualizzate solo a partire da {min} collaboratori e {min} risposte. {scope} non \xe8 quindi possibile visualizzare i risultati.","dashboard.anonymity.scope_dept":"Per questo reparto","dashboard.anonymity.scope_area":"Per l'area selezionata","dashboard.anonymity.employees":"Collaboratori","dashboard.anonymity.responses":"Risposte","dashboard.comparison.heading":"Risultati a confronto","dashboard.comparison.branch_suffix":"Filiale {name}","dashboard.comparison.open_dept":"Apri reparto","care_overview.nodata_banner":"Nessun sondaggio disponibile. Non appena creer\xe0 un sondaggio Care e i primi partecipanti avranno partecipato, qui appariranno i risultati."}},Wa={de:{"invitations.info.duration":"Umfragedauer","invitations.info.customq":"Zusatzfragen","invitations.info.runsuntil":"L\xe4uft bis","invitations.not_started":"nicht gestartet","invitations.section.vorbereitung":"Umfragen in Vorbereitung","invitations.section.aktiv":"Umfragen Aktiv","invitations.empty.vorbereitung":"Keine Umfragen in Vorbereitung.","invitations.empty.aktiv":"Keine aktiven Umfragen.","invitations.complete.title":"Umfrage wirklich abschlie\xdfen?","invitations.complete.confirm":"Abschlie\xdfen","invitations.start_dialog.title":"Umfrage STARTEN","invitations.start_dialog.text":"M\xf6chten Sie mit {label} jetzt starten?","invitations.start_dialog.done_title":"N\xe4chste Schritte","invitations.start_dialog.done_text":"Sie haben {label} gestartet und finden in Ihrem Postfach eine Mail mit den weiteren Anweisungen, Vorschlagtext f\xfcr die Aussendung an Ihre Mitarbeiter sowie vorbereitete QR Codes zum Ausdrucken und aush\xe4ngen.","invitations.start_dialog.done_fun":"Viel Spa\xdf mit {label}.","invitations.start_dialog.qr_btn":"Flyer (4 pro Seite)","invitations.start_dialog.qr_poster_btn":"Plakat (1 pro Seite)","structure.readonly_badge":"Nur-Lese-Zugang","common.loading":"L\xe4dt \u2026","common.loading_hint":"Bitte einen Moment Geduld \u2013 die Daten werden geladen.","common.no_value":"Kein Wert verf\xfcgbar.","common.no_data_short":"Keine Daten.","common.no_data_available":"Keine Daten verf\xfcgbar.","common.gesamt":"Gesamt","common.coming_soon_toast":"Diese Funktion wird in K\xfcrze verf\xfcgbar sein.","common.survey":"Umfrage","common.no_free_text":"Keine Freitext-Antworten.","common.please_select":"Bitte w\xe4hlen \u2026","common.close":"Schlie\xdfen","common.done_btn":"Fertig","common.cancel":"Abbrechen","result.zone.kritisch":"kritisch","result.zone.moderat":"moderat","result.zone.exzellent":"exzellent","result.likert0":"kritisch","result.likert1":"schwach","result.likert2":"moderat","result.likert3":"gut","result.likert4":"sehr gut","result.yes":"Ja","result.no":"Nein","result.sentiment.positive":"positiv","result.sentiment.neutral":"neutral","result.sentiment.negative":"negativ","result.summary_creating":"KI-Zusammenfassung wird erstellt \u2026","result.no_summary_hint":"F\xfcr eine KI gest\xfctzte Zusammenfassung sind zu wenig Antworten eingegangen. Bitte pr\xfcfen Sie die Einzelaussagen.","result.hide_answers":"Einzelantworten ausblenden","result.show_all_answers":"Alle {n} Einzelantworten anzeigen","pulse.cadence.monthly":"Monatlich","pulse.cadence.quarterly":"Quartalsweise","analytics_overview.title":"\xdcberblick - PERSENTIS Analytics","analytics_overview.subtitle":"Status quo von Bindung, Attraktivit\xe4t und Engagement","analytics_overview.demo_banner":"Demo-Ansicht \u2013 es werden Beispieldaten angezeigt. Der Analytics-Fragebogen und die echte Auswertung folgen.","analytics_overview.nodata_banner":"Noch keine Auswertungsdaten vorhanden. Sobald erste Teilnehmer an einer Analytics-Umfrage teilgenommen haben, erscheinen hier die Ergebnisse.","analytics_overview.anon_title":"Anonymit\xe4tsschutz aktiv","analytics_overview.anon_text":"Zum Schutz der Anonymit\xe4t werden Auswertungen erst ab {min} g\xfcltigen Antworten angezeigt. Aktuell liegen {responses} g\xfcltige Antworten vor.","analytics_overview.gesamt_heading":"Gesamtergebnis","analytics_overview.comparison_heading":"Ergebnisse im Vergleich","analytics.tip_no_survey":"Keine Umfrage durchgef\xfchrt","analytics.tip_too_few":"Zu wenige Mitarbeiter teilgenommen","analytics_results.title":"Ergebnisse - PERSENTIS Analytics","analytics_results.subtitle":"Abgeschlossene Umfragen und ihre Ergebnisse","analytics_results.section_completed":"Umfragen Abgeschlossen","analytics.score_hint_suffix":"erst ab 5 g\xfcltigen Teilnahmen sichtbar (Anonymit\xe4t).","auswertungen.info.personal":"Pers\xf6nliche Antworten","analytics.score.label":"ANALYTICS Score","analytics.back_to_results":"Zur\xfcck zu den Ergebnissen","analytics.stat.teilnehmer":"Teilnehmer","analytics.stat.beteiligung":"Beteiligung","analytics.stat.laufzeit":"Laufzeit","analytics.stat.abgeschlossen":"Abgeschlossen","analytics.stat.personal":"Pers\xf6nliche Antworten","analytics.menu.allgemeines":"Allgemeines","analytics.menu.bindungskraft":"Bindungskraft","analytics.menu.stresslevel":"Stresslevel","analytics.menu.enps":"eNPS","analytics.menu.attraktivitaet":"Attraktivit\xe4t","analytics.menu.arbeitgeberangebot":"Arbeitgeberangebot","analytics.menu.orientierung":"Orientierung","analytics.menu.engagement-zufriedenheit":"Engagement & Zufriedenheit","analytics.menu.erfuellungsgrad":"Erf\xfcllungsgrad","analytics.menu.top-argumente":"Top-Argumente","analytics.menu.standardfragen":"Standardfragen","analytics.menu.spezialfragen":"Spezialfragen","analytics.ez.engagement_label":"Engagement","analytics.ez.zufriedenheit_label":"Zufriedenheit","analytics.ez.compare_heading":"Engagement VS Zufriedenheit","analytics.ez.no_compare":"F\xfcr die aktuelle Auswahl liegt kein Vergleichstext vor.","analytics.hint.erfuellungsgrad":"W\xe4hlen Sie im Filter die gew\xfcnschte Abteilung aus, um den ERF\xdcLLUNGSGRAD einsehen zu k\xf6nnen. F\xfcr den Gesamtbereich gibt es dazu keine Werte.","analytics.hint.topargumente":"W\xe4hlen Sie im Filter die gew\xfcnschte Abteilung aus, um die TOP ARGUMENTE einsehen zu k\xf6nnen. F\xfcr den Gesamtbereich gibt es dazu keine Werte.","analytics.tip_erfuellungsgrad":"Der Erf\xfcllungsgrad vergleicht je Subfaktor das Arbeitgeberangebot (farbig) mit der Orientierung/Wichtigkeit (grau, dahinter). Ragt der graue Balken \xfcber den farbigen hinaus, bleibt das Angebot hinter der Wichtigkeit zur\xfcck \u2013 je gr\xf6\xdfer diese L\xfccke, desto mehr Aufmerksamkeit ben\xf6tigt das Thema.","analytics.delta.over":"\xfcber Gesamt","analytics.delta.under":"unter Gesamt","analytics.delta.equal":"gleich Gesamt","analytics.enps.detractors":"Detraktoren","analytics.enps.indifferent":"Indifferente","analytics.enps.promoters":"Promotoren","analytics.enps.answers_short":"Antw.","analytics.no_arguments":"Keine Argumente verf\xfcgbar.","analytics.no_standard":"Keine Standardfragen.","analytics.no_special":"Keine Spezialfragen.","analytics.summary_of":"Zusammenfassung von {n} Antworten","analytics.summary_auto":"Wird automatisch erstellt \u2026","analytics.summary_none":"Keine Zusammenfassung verf\xfcgbar.","analytics.details":"Details ({n})","analytics.no_answers":"Keine Antworten.","analytics.erf.tipps":"TIPPS","analytics.erf.tooltip":"Der Erf\xfcllungsgrad zum Thema {name} ist {level}.","analytics.nav.expand":"Men\xfc ausklappen","analytics.nav.collapse":"Men\xfc einklappen","analytics.anon_
2inline.p1":"F\xfcr die aktuelle Auswahl werden aus Anonymit\xe4tsgr\xfcnden keine Ergebnisse angezeigt (erst ab ","analytics.anon_inline.p2":" Mitarbeitenden und ","analytics.anon_inline.p3":" Antworten). Auswertbare Abteilungen w\xe4hlen Sie im Filter oben.","analysis.tip_dept_locked":"Es haben sich zu wenig Mitarbeiter in dieser Abteilung an der Umfrage beteiligt und ist aus Anonymit\xe4tsgr\xfcnden nicht einzusehen. Die abgegebenen Antworten wurden in der Gesamtberechnung ber\xfccksichtigt.","care.back_to_results":"Zur\xfcck zu den Ergebnissen","analysis.group.allgemeines":"Allgemeines","analysis.group.ueberblick":"\xdcberblick","analysis.group.gesamt":"PERSENTIS Care Index","analysis.group.verbundenheit":"Mentales Wohlbefinden","analysis.group.dim-a":"Aufgabenattraktivit\xe4t","analysis.group.dim-b":"Beziehungsqualit\xe4t","analysis.group.wissenswertes":"Wissenswertes","analysis.item.A01":"Passung & Kompetenz","analysis.item.A02":"Inhaltliche Attraktivit\xe4t & Abwechslung","analysis.item.A03":"Sinnhaftigkeit der Arbeit","analysis.item.A04":"Konstruktives Feedback","analysis.item.A05":"M\xf6glichkeiten zur Weiterentwicklung","analysis.item.B01":"Handlungs- & Gestaltungsspielraum","analysis.item.B02":"Empfehlungsbereitschaft","analysis.item.B03":"Organisatorische Identifikation","analysis.item.B04":"Unterst\xfctzung & Vertrauen F\xfchrungskraft","analysis.item.B05":"Kommunikation & Nachvollziehbarkeit von Entscheidungen","analysis.item.B06":"Verh\xe4ltnis zur F\xfchrungskraft","analysis.item.B07":"Soziales Klima & Umgang im Unternehmen","analysis.bar.wunsch":"Ich w\xfcnsche mir MEHR","analysis.bar.positiv":"Positiv","analysis.bar.negativ":"Negativ","analysis.bar.empty":"Keine Angaben.","analysis.sonstige.title":"Sonstige Angaben","analysis.feedback.title":"Offenes Feedback","analysis.feedback.empty":"Keine offenen R\xfcckmeldungen.","analysis.feedback.details":"Details ({count})","analysis.legend.handlungsbedarf":"Handlungsbedarf","analysis.legend.moderat":"Moderat","analysis.legend.top":"Top Performance","analysis.stat.teilnehmer":"Teilnehmer","analysis.stat.beteiligung":"Beteiligung","analysis.stat.laufzeit":"Laufzeit","analysis.stat.abgeschlossen":"Abgeschlossen","analysis.stat.positiv":"Positive Nennungen","analysis.stat.negativ":"Kritische Nennungen","analysis.overview.no_dept_data":"Keine Abteilungsdaten verf\xfcgbar.","analysis.overview.department":"Abteilung","analysis.overview.quote":"Teilnahmequote","analysis.overview.locked_row":"Direkter Einblick aufgrund zu geringer Teilnahme nicht m\xf6glich.","analysis.overview.na":"k.A.","analysis.sent.positive":"positiv","analysis.sent.negative":"negativ","analysis.sent.neutral":"neutral","analysis.no_result":"Kein Ergebnis verf\xfcgbar.","analysis.summary.too_few":"F\xfcr eine KI gest\xfctzte Zusammenfassung sind zu wenig Antworten eingegangen. Bitte pr\xfcfen Sie die Einzelaussagen.","analysis.summary.count":"Zusammenfassung von {count} Antworten","analysis.summary.title":"Zusammenfassung der Antworten","analysis.summary.generating":"Wird automatisch erstellt \u2026","analysis.summary.none":"Keine Zusammenfassung verf\xfcgbar.","analysis.gauge.no_value":"Kein Wert verf\xfcgbar.","analysis.section.placeholder":"Inhalt f\xfcr diesen Bereich folgt in K\xfcrze.","analysis.survey_fallback":"Umfrage","analysis.anon.locked_text":"F\xfcr die aktuelle Auswahl werden aus Anonymit\xe4tsgr\xfcnden keine Ergebnisse angezeigt (erst ab {min} Mitarbeitenden und {min} Antworten). Auswertbare Abteilungen w\xe4hlen Sie im Filter oben.","analysis.nav.expand":"Men\xfc ausklappen","analysis.nav.collapse":"Men\xfc einklappen","onboarding.menu":"Einrichtung","onboarding.banner.title":"Willkommen bei PERSENTIS!","onboarding.banner.progress":"Einrichtung zu {pct} % abgeschlossen","onboarding.banner.continue":"Einrichtung fortsetzen","onboarding.banner.dismiss":"Ausblenden","onboarding.title":"Erste Einrichtung","onboarding.subtitle":"In wenigen Schritten startklar","onboarding.step.profile":"Profil","onboarding.step.departments":"Abteilungen","onboarding.step.colleagues":"Kollegen","onboarding.step.billing":"Rechnung","onboarding.step.done":"Fertig","onboarding.next":"Weiter","onboarding.back":"Zur\xfcck","onboarding.skip":"Schritt \xfcberspringen","onboarding.finish":"Fertigstellen","onboarding.close"
2:"Sp\xe4ter erledigen","onboarding.saving":"Wird gespeichert \u2026","onboarding.profile.title":"Vervollst\xe4ndigen Sie Ihr Profil","onboarding.profile.desc":"Diese Angaben erscheinen in Berichten und Einladungen.","onboarding.profile.firstName":"Vorname","onboarding.profile.lastName":"Nachname","onboarding.profile.phone":"Telefon","onboarding.profile.position":"Position / Funktion","onboarding.profile.required":"Bitte geben Sie Vor- und Nachnamen an.","onboarding.dept.title":"Legen Sie Ihre Abteilungen an","onboarding.dept.desc":"Erfassen Sie die Abteilungen Ihrer Zentrale. Weitere k\xf6nnen Sie sp\xe4ter erg\xe4nzen.","onboarding.dept.name":"Abteilungsname","onboarding.dept.headcount":"Mitarbeitende","onboarding.dept.add":"Abteilung hinzuf\xfcgen","onboarding.dept.existing":"Bereits angelegt","onboarding.dept.empty":"Noch keine Abteilungen angelegt.","onboarding.dept.suggestions":"Vorschl\xe4ge","onboarding.dept.hint":"Tipp: Viele Abteilungen k\xf6nnen Sie sp\xe4ter per Excel-Import anlegen.","onboarding.dept.added":"Abteilung angelegt.","onboarding.coll.title":"Laden Sie Kollegen ein","onboarding.coll.desc":"Laden Sie F\xfchrungskr\xe4fte oder weitere Administratoren ein. Optional \u2013 jederzeit m\xf6glich.","onboarding.coll.name":"Name","onboarding.coll.email":"E-Mail","onboarding.coll.role":"Rolle","onboarding.coll.role.manager":"F\xfchrungskraft","onboarding.coll.role.admin":"Administrator","onboarding.coll.invite":"Einladen","onboarding.coll.invited":"{count} eingeladen","onboarding.coll.sent":"Einladung versendet.","onboarding.billing.title":"Rechnungsadresse hinterlegen","onboarding.billing.desc":"F\xfcr sp\xe4tere Rechnungen. Optional \u2013 Sie k\xf6nnen dies auch sp\xe4ter erg\xe4nzen.","onboarding.billing.company":"Firmenname","onboarding.billing.address":"Rechnungsadresse","onboarding.billing.vat":"USt-IdNr.","onboarding.billing.email":"Rechnungs-E-Mail","onboarding.billing.contact":"Ansprechpartner","onboarding.billing.saved":"Rechnungsadresse gespeichert.","onboarding.done.title":"Geschafft! Sie sind startklar.","onboarding.done.desc":"Hier finden Sie Unterst\xfctzung f\xfcr Ihre n\xe4chsten Schritte:","onboarding.done.manual":"Handbuch","onboarding.done.manualText":"In Ihrem Account finden Sie den Zugang zum Handbuch, wo Sie die Anleitungen und Antworten auf die h\xe4ufigsten Fragen finden.","onboarding.done.support":"Support","onboarding.done.supportText":"Unter Bugs & Ideas \u2013 der Men\xfcpunkt findet sich an der rechten Bildschirmseite \u2013 k\xf6nnen Sie uns jederzeit kontaktieren.","onboarding.done.activities":"Erste Umfrage","onboarding.done.activitiesText":"Starten Sie jetzt mit Analytics, Pulse oder Care.","onboarding.completed":"Einrichtung abgeschlossen. Viel Erfolg!","nav.pulse.einmalig":"Einmalig","nav.pulse.wiederkehrend":"Wiederkehrend","auswertungen.info.teilnehmer":"Teilnehmer","auswertungen.info.completed":"Abgeschlossen","auswertungen.open":"Ergebnisse \xf6ffnen","auswertungen.export_pdf":"Als PDF exportieren","auswertungen.section.completed":"Abgeschlossene Umfragen","pulse.overview.title.wiederkehrend":"Wiederkehrend \u2013 \xdcberblick","pulse.overview.title.einmalig":"Einmalig \u2013 \xdcberblick","pulse.overview.subtitle.wiederkehrend":"Stimmungsbarometer auf einen Blick","pulse.overview.subtitle.einmalig":"Einmalige Kurzumfragen auf einen Blick","pulse_overview.nodata_banner":"Noch keine Umfrage vorhanden. Sobald Sie eine Pulse-Umfrage anlegen und erste Teilnehmer teilgenommen haben, erscheinen hier die Ergebnisse.","pulse.overview.recent.einmalig":"Letzte Umfragen","pulse.overview.recent.wiederkehrend":"Letzte Programme","pulse.overview.cta_all":"\u2026 zu allen Ergebnissen","pulse.kpi.programs":"Programme","pulse.kpi.waves":"Wiederholungen","pulse.kpi.score":"\xd8 Stimmungswert","pulse.kpi.enps":"eNPS","pulse.kpi.rate":"\xd8 Beteiligung","pulse.kpi.total":"Umfragen gesamt","pulse.kpi.active":"Aktiv","pulse.kpi.completed":"Abgeschlossen","pulse.kpi.responses":"Antworten","pulse.info.questions":"Fragen","pulse.program.rhythmus":"Rhythmus","pulse.program.waves":"Wiederholungen bisher","pulse.program.barometer_open":"Barometer \xf6ffnen","pulse.results.title.wiederkehrend":"Wiederkehrend \u2013 Ergebnisse","pulse.results.title.einmalig":"Einmalig \u2013 Ergebnisse","pulse.results.subtitle.wiederkehrend":"Stimmungsbarometer-Verl\xe4ufe (Trend & eNPS)","pulse.results.subtitle.einmalig":"Abgeschlossene Kurzumfragen und ihre Ergebnisse","pulse.results.section.laufend":"Laufende Umfragen","pulse.results.section.beendet":"Beendete Umfragen","pulse.empty.laufend":"Keine laufenden Umfragen vorhanden.","pulse.empty.beendet":"Keine beendeten Umfragen vorhanden.","pulse.anal
2ysis.not_found":"Auswertung nicht gefunden.","pulse.analysis.responses":"Antworten","pulse.analysis.rate":"\xd8 Beteiligung","pulse.analysis.questions":"Fragen","pulse.analysis.anon_title":"Anonymit\xe4tsschutz aktiv","pulse.analysis.anon_text":"Es liegen weniger als {min} Antworten vor. Zum Schutz der Anonymit\xe4t werden keine Detailergebnisse angezeigt.","pulse.enps.score_label":"eNPS-Score","pulse.enps.promoters":"Promotoren (9\u201310)","pulse.enps.passives":"Passive (7\u20138)","pulse.enps.detractors":"Detraktoren (0\u20136)","pulse.barometer.title_fallback":"Barometer","pulse.barometer.dev_for":"Entwicklung f\xfcr {title}","pulse.barometer.subtitle_fallback":"Stimmungsbarometer im Zeitverlauf","pulse.barometer.trend_error":"Trend konnte nicht geladen werden.","pulse.barometer.empty":"Noch keine auswertbaren Wiederholungen (mind. {min} Teilnehmende je Wiederholung erforderlich).","pulse.barometer.measurement":"Messung","pulse.barometer.development":"ENTWICKLUNG","pulse.barometer.measurements":"Messungen","pulse.barometer.click_hint":"Klicken Sie auf den Messpunkt, um die Detailauswertung der Befragungsrunde zu sehen.","pulse.barometer.single_eval":"Einzelauswertung","pulse.barometer.answers_suffix":"Antworten","pulse.barometer.wave_locked":"Diese wiederkehrende Umfrage ist aus Anonymit\xe4tsgr\xfcnden nicht auswertbar (mind. {min} Teilnehmende).","pulse.barometer.delta_over":"\xfcber Gesamt","pulse.barometer.delta_under":"unter Gesamt","pulse.barometer.delta_equal":"im Gesamt","pulse.surveys.title.wiederkehrend":"Wiederkehrend \u2013 Umfragen","pulse.surveys.title.einmalig":"Einmalig \u2013 Umfragen","pulse.surveys.subtitle.wiederkehrend":"Stimmungsbarometer anlegen und verwalten","pulse.surveys.subtitle.einmalig":"Einmalige Kurzumfragen anlegen und verwalten","pulse.sub.vorbereitung":"In Vorbereitung","pulse.sub.aktiv":"Umfrage Aktiv","invitations.create":"Umfrage erstellen","invitations.close":"Umfrage schlie\xdfen","invitations.start":"Umfrage starten","invitations.info.created":"Erstellt am","invitations.info.participants":"Teilnehmer","pulse.info.repetitions":"Wiederholungen","pulse.info.ends_at":"L\xe4uft bis","pulse.empty.rec_vorb":"Keine wiederkehrenden Umfragen in Vorbereitung.","pulse.empty.rec_aktiv":"Keine aktiven wiederkehrenden Umfragen.","pulse.empty.ein_vorb":"Keine einmaligen Umfragen in Vorbereitung.","pulse.empty.ein_aktiv":"Keine aktiven einmaligen Umfragen.","pulse.rec_aktiv.hint_pre":"Die aktiven Wiederkehrenden Umfragen finden Sie bereits unter dem ","pulse.rec_aktiv.hint_link":"Men\xfcpunkt Ergebnisse","pulse.rec_aktiv.hint_post":".","pulse.trend.enps_label":"eNPS je Wiederholung (\u2212100 \u2026 +100)","pulse.trend.score_label":"Stimmungswert je Wiederholung","invitations.tip_edit":"Bearbeiten","invitations.tip_preview":"Vorschau \xf6ffnen","invitations.tip_delete":"L\xf6schen","invitations.tip_copylink":"Umfragelink kopieren","invitations.tip_extend":"Um 1 Woche verl\xe4ngern","invitations.tip_extend_max":"Bereits 2\xd7 verl\xe4ngert","comparison.hint":"W\xe4hlen Sie die gew\xfcnschten {unit} f\xfcr den direkten Vergleich der Gesamtzahlen. Die Spalte GESAMT dient als Referenz.","comparison.unit_departments":"Abteilungen","comparison.unit_branches":"Filialen","comparison.col_total":"GESAMT","comparison.col_reference":"Referenz","comparison.answers_suffix":"Antworten","comparison.tip_select_all":"Alle au
2sw\xe4hlen","comparison.tip_reset":"Auswahl zur\xfccksetzen","comparison.tip_reset_group":"Zur\xfccksetzen","comparison.tip_over":"liegt \xfcber Gesamt","comparison.tip_under":"liegt unter Gesamt","comparison.tip_equal":"entspricht Gesamt","comparison.tip_no_survey":"Keine Umfrage durchgef\xfchrt","comparison.tip_few":"Zu wenige Mitarbeiter teilgenommen","comparison.tip_locked":"Gesperrt (< 5)","comparison.row.employer_indicator":"ANALYTICS Score","comparison.row.bindungskraft":"Bindungskraft","comparison.row.stress":"Stresslevel","comparison.row.enps":"eNPS","comparison.row.attraktivitaet":"Attraktivit\xe4t","comparison.row.zufriedenheit":"Zufriedenheit","comparison.row.engagement":"Engagement","comparison.row.overall":"CARE Score","comparison.row.GEN":"Mentales Wohlbefinden","comparison.row.A":"Aufgabenattraktivit\xe4t","comparison.row.B":"Beziehungsqualit\xe4t","wizard.title_edit":"Umfrage bearbeiten","wizard.title_create":"Umfrage erstellen","wizard.step.0":"Firma / Filiale","wizard.step.1":"Bezeichnung","wizard.step.2":"Abteilungen","wizard.step.3":"Laufzeit","wizard.step.4":"Zusatzfragen","wizard.step0.label":"W\xe4hlen Sie Firma / Filiale","wizard.select_placeholder":"Bitte w\xe4hlen \u2026","wizard.step1.label":"Name der Umfrage","wizard.step1.note":"Pflichtfeld \u2013 wird als \xdcberschrift der Umfrage-Kachel angezeigt. Vorschlag automatisch erzeugt, frei anpassbar.","wizard.step2.label":"Abteilungen ausw\xe4hlen","wizard.step2.hint":"Standardm\xe4\xdfig sind alle Abteilungen der Filiale ausgew\xe4hlt.","wizard.step2.empty":"Keine Abteilungen in dieser Filiale.","wizard.unit_ma":"MA","wizard.step3.label":"Laufzeit nach Eingang der ersten Antwort","wizard.step3.unit":"Tage (Standard: 14)","wizard.step3.hint":"Die Laufzeit kann sp\xe4ter bis zu zweimal um je 1 Woche verl\xe4ngert werden.","wizard.step4.label":"Zusatzfragen","wizard.optional":"optional","wizard.step4.hint":"Bis zu {max} eigene Fragen. Sie erscheinen direkt nach dem Einstieg. Wertungsfragen erhalten automatisch eine passende Skala (anpassbar).","wizard.cq_placeholder":"Fragestellung \u2026","wizard.type_rating":"Wertungsfrage","wizard.type_open":"Offene Frage","wizard.cq_empty":"Noch keine Zusatzfragen hinzugef\xfcgt.","wizard.btn_own":"Eigene Frage","wizard.btn_picker":"Aus Vorschl\xe4gen w\xe4hlen","wizard.picker_title":"Vorschlagskatalog","wizard.picker_done":"Fertig","wizard.badge_vorschlag":"Vorschlag","wizard.badge_wertung":"Wertung","wizard.badge_offen":"Offen","wizard.saving":"Wird gespeichert \u2026","wizard.creating":"Wird erstellt \u2026","common.save_changes":"\xc4nderungen speichern","gauge.label.employer_indicator":"ANALYTICS Score","gauge.label.bindungskraft":"Bindungskraft","gauge.label.stress":"Stresslevel","gauge.label.enps":"eNPS","gauge.label.zufriedenheit":"Zufriedenheit","gauge.label.attraktivitaet":"Attraktivit\xe4t","gauge.label.engagement":"Engagement","invitations.tip_qr":"QR-Code-PDF herunterladen","invitations.tip_delete_survey":"Umfrage l\xf6schen","pulse.tip_extend":"Um 3 Tage verl\xe4ngern","pulse.tip_extend_max":"Laufzeit bereits um 3 Tage verl\xe4ngert","pulse.wizard.edit_title":"Umfrage bearbeiten","pulse.wizard.create_title":"Umfrage erstellen","pulse.step.art":"Art der Erhebung","pulse.step.branch":"Firma / Filiale","pulse.step.label":"Bezeichnung","pulse.step.depts":"Abteilungen","pulse.step.questions":"Fragen","pulse.wizard.erhebungsart":"Art der Erhebung","pulse.wizard.mode_einmalig":"Einmalig","pulse.wizard.mode_einmalig_desc":"Eine einzelne Kurzumfrage","pulse.wizard.mode_wiederkehrend":"Wiederkehrend","pulse.wizard.mode_wiederkehrend_desc":"Stimmungsbarometer im Rhythmus","pulse.wizard.rhythmus_label":"Rhythmus","pulse.wizard.cadence_hint":"L\xe4uft unbegrenzt, bis Sie die wiederkehrende PULSE Umfrage beenden. Zu jeder f\xe4lligen Umfrage erhalten Sie eine E-Mail, damit Sie Ihren Verteiler informieren k\xf6nnen.","pulse.wizard.branch_label":"W\xe4hlen Sie Firma / Filiale","pulse.wizard.title_label":"Name der Umfrage","pulse.wizard.title_hint":"Pflichtfeld \u2013 wird als \xdcberschrift der Umfrage-Kachel angezeigt. Vorschlag automatisch erzeugt, frei anpassbar.","pulse.wizard.depts_label":"Abteilungen ausw\xe4hlen","pulse.wizard.depts_hint":"Standardm\xe4\xdfig sind alle Abteilungen der Filiale ausgew\xe4hlt.","pulse.wizard.no_depts":"Keine Abteilungen in dieser Filiale.","pulse.wizard.questions_label":"Fragen","pulse.wizard.questions_upto":"(bis zu {max})","pulse.wizard.fragen_hint":"W\xe4hlen Sie Fragen aus dem Vorschlagskatalog, erstellen Sie eigene Fragen oder w\xe4hlen Sie ein fertiges Fragen-Set.","pulse.wizard.locked_set_hint":"Bei einem fertigen FragenSet werden die enthaltenen Fragen unver\xe4ndert verwendet. Es k\xf6nnen keine weiteren Fragen erg\xe4nzt oder angepasst werden.","pulse.wizard.locked_set_remove":"FragenSet entfernen","pulse.wizard.n_questions":"{n} Fragen","pulse.wizard.qtext_placeholder":"Fragetext \u2026","pulse.wizard.type":"Typ:","pulse.wizard.scale":"Skala:","pulse.wizard.option":"Option","pulse.wizard.no_questions_yet":"Noch keine Fragen hinzugef\xfcgt.","pulse.wizard.btn_own":"Eigene Frage","pulse.wizard.btn_catalog":"Aus Vorschl\xe4gen w\xe4hlen","pulse.wizard.btn_set":"Fertiges Fragen-Set","pulse.wizard.sets_heading":"Vorgefertigte FragenSets","pulse.wizard.sets_hint":"Ein Set ersetzt die aktuellen Fragen. Sie k\xf6nnen danach alles frei anpassen.","pulse.wizard.no_sets":"Keine FragenSets verf\xfcgbar.","pulse.wizard.catalog_heading":"Vorschlagskatalog","pulse.wizard.badge_rating":"Wertung","pulse.wizard.badge_open":"Offen","pulse.wizard.saving":"Wird gespeichert \u2026","pulse.wizard.creating":"Wird erstellt \u2026","pulse.wizard.save_changes":"\xc4nderungen speichern","pulse.wizard.create":"Umfrage erstellen","pulse.type.likert":"Wertungsfrage","pulse.type.yesno":"Ja / Nein","pulse.type.choice":"Auswahl","pulse.type.open":"Freitext","pulse.type.enps":"eNPS (0\u201310)","pulse.dialog.end_title":"Stimmungsbarometer beenden?","pulse.dialog.end_body":"M\xf6chten Sie die wiederkehrende Umfrage {title} wirklich beenden? Es werden dann keine weiteren Wiederholungen mehr erzeugt. Bereits laufende Wiederholungen und die bisherigen Auswertungen bleiben erhalten.","pulse.dialog.end_confirm":"Beenden","pulse.dialog.complete_title":"Umfrage wirklich abschlie\xdfen?","pulse.dialog.complete_body":'M\xf6chten Sie die Umfrage {label} wirklich abschlie\xdfen? Eine Wiederer\xf6ffnung ist nicht m\xf6glich. Die Ergebnisse finden Sie anschlie\xdfend unter \u201eErgebnisse".',"pulse.dialog.complete_confirm":"Abschlie\xdfen","pulse.dialog.delete_title":"Umfrage l\xf6schen?","pulse.dialog.delete_body_active":"Beim L\xf6schen gehen alle Informationen sowie s\xe4mtliche Antworten, die bereits abgegeben wurden unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab.","pulse.dialog.delete_body":"Beim L\xf6schen gehen alle Informationen unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab.","pulse.dialog.delete_confirm":"L\xf6schen","pulse.dialog.started_title":"Umfrage gestartet","pulse.dialog.started_body":"Ihre Umfrage ist jetzt aktiv. Verteilen Sie den Teilnahme-Link oder drucken Sie das QR-Code-PDF \u2013 als Flyer (4 Kacheln zum Ausschneiden) oder gro\xdfformatiges Plakat (1 pro Seite) f\xfcr den Aushang.","pulse.dialog.started_flyer":"Flyer (4 pro Seite)","pulse.dialog.started_poster":"Plakat (1 pro Seite)","pulse.dialog.started_copy":"Teilnahme-Link kopieren"},en:{"invitations.info.duration":"Survey duration","invitations.info.customq":"Additional questions","invitations.info.runsuntil":"Runs until","invitations.not_started":"not started","invitations.section.vorbereitung":"Surveys in preparation","invitations.section.aktiv":"Active surveys","invitations.empty.vorbereitung":"No surveys in preparation.","invitations.empty.aktiv":"No active surveys.","invitations.complete.title":"Really complete the survey?","invitations.complete.confirm":"Complete","
2invitations.start_dialog.title":"START survey","invitations.start_dialog.text":"Would you like to start {label} now?","invitations.start_dialog.done_title":"Next steps","invitations.start_dialog.done_text":"You have started {label} and will find an email in your inbox with further instructions, suggested text for distribution to your employees, and prepared QR codes to print and display.","invitations.start_dialog.done_fun":"Have fun with {label}.","invitations.start_dialog.qr_btn":"Flyer (4 per page)","invitations.start_dialog.qr_poster_btn":"Poster (1 per page)","structure.readonly_badge":"Read-only access","common.loading":"Loading \u2026","common.loading_hint":"Please wait a moment \u2013 the data is loading.","common.no_value":"No value available.","common.no_data_short":"No data.","common.no_data_available":"No data available.","common.gesamt":"Overall","common.coming_soon_toast":"This feature will be available soon.","common.survey":"Survey","common.no_free_text":"No free-text responses.","common.please_select":"Please select \u2026","common.close":"Close","common.done_btn":"Done","common.cancel":"Cancel","result.zone.kritisch":"critical","result.zone.moderat":"moderate","result.zone.exzellent":"excellent","result.likert0":"critical","result.likert1":"weak","result.likert2":"moderate","result.likert3":"good","result.likert4":"very good","result.yes":"Yes","result.no":"No","result.sentiment.positive":"positive","result.sentiment.neutral":"neutral","result.sentiment.negative":"negative","result.summary_creating":"AI summary is being generated \u2026","result.no_summary_hint":"Too few responses were received for an AI-based summary. Please review the individual statements.","result.hide_answers":"Hide individual responses","result.show_all_answers":"Show all {n} individual responses","pulse.cadence.monthly":"Monthly","pulse.cadence.quarterly":"Quarterly","analytics_overview.title":"Overview - PERSENTIS Analytics","analytics_overview.subtitle":"Status quo of retention, attractiveness and engagement","analytics_overview.demo_banner":"Demo view \u2013 sample data is shown. The Analytics questionnaire and the real evaluation are coming.","analytics_overview.nodata_banner":"No evaluation data yet. As soon as the first participants have taken part in an Analytics survey, the results will appear here.","analytics_overview.anon_title":"Anonymity protection active","analytics_overview.anon_text":"To protect anonymity, evaluations are only shown from {min} valid responses onward. There are currently {responses} valid responses.","analytics_overview.gesamt_heading":"Overall result","analytics_overview.comparison_heading":"Results in comparison","analytics.tip_no_survey":"No survey conducted","analytics.tip_too_few":"Too few employees participated","analytics_results.title":"Results - PERSENTIS Analytics","analytics_results.subtitle":"Completed surveys and their results","analytics_results.section_completed":"Surveys Completed","analytics.score_hint_suffix":"only visible from 5 valid participations (anonymity).","auswertungen.info.personal":"Personal responses","analytics.score.label":"ANALYTICS Score","analytics.back_to_results":"Back to results","analytics.stat.teilnehmer":"Participants","analytics.stat.beteiligung":"Participation","analytics.stat.laufzeit":"Duration","analytics.stat.abgeschlossen":"Completed","analytics.stat.personal":"Personal responses","analytics.menu.allgemeines":"General","analytics.menu.bindungskraft":"Retention power","analytics.menu.stresslevel":"Stress level","analytics.menu.enps":"eNPS","analytics.menu.attraktivitaet":"Attractiveness","analytics.menu.arbeitgeberangebot":"Employer offering","analytics.menu.orientierung":"Orientation","analytics.menu.engagement-zufriedenheit":"Engagement & satisfaction","analytics.menu.erfuellungsgrad":"Fulfilment level","analytics.menu.top-argumente":"Top arguments","analytics.menu.standardfragen":"Standard questions","analytics.menu.spezialfragen":"Special questions","analytics.ez.engagement_label":"Engagement","analytics.ez.zufriedenheit_label":"Satisfaction","analytics.ez.compare_heading":"Engagement VS Satisfaction","analytics.ez.no_compare":"No comparison text is available for the current selection.","analytics.hint.erfuellungsgrad":"Select the desired department in the filter to view the FULFILMENT LEVEL. There are no values for the overall area.","analytics.hint.topargumente":"Select the desired department in the filter to view the TOP ARGUMENTS. There are no values for the overall area.","analytics.tip_erfuellungsgrad":"The fulfilment level compares, per subfactor, the employer offering (coloured) with the orientation/importance (grey, behind). If the grey bar extends beyond the coloured one, the offering falls short of the importance \u2013 the larger the gap, the more attention the topic needs.","analytics.delta.over":"above overall","analytics.delta.under":"below overall","analytics.delta.equal":"equal to overall","analytics.enps.detractors":"Detractors","analytics.enps.indifferent":"Indifferent","analytics.enps.promoters":"Promoters","analytics.enps.answers_short":"resp.","analytics.no_arguments":"No arguments available.","analytics.no_standard":"No standard questions.","analytics.no_special":"No special questions.","analytics.summary_of":"Summary of {n} responses","analytics.summary_auto":"Generated automatically \u2026","analytics.summary_none":"No summary available.","analytics.details":"Details ({n})","analytics.no_answers":"No responses.","analytics.erf.tipps":"TIPS","analytics.erf.tooltip":"The fulfilment level for the topic {name} is {level}.","analytics.nav.expand":"Expand menu","analytics.nav.collapse":"Collapse menu","analytics.anon_
2inline.p1":"For the current selection, no results are shown for anonymity reasons (only from ","analytics.anon_inline.p2":" employees and ","analytics.anon_inline.p3":" responses). Choose evaluable departments in the filter above.","analysis.tip_dept_locked":"Too few employees in this department participated in the survey, so it cannot be viewed for anonymity reasons. The responses given were included in the overall calculation.","care.back_to_results":"Back to results","analysis.group.allgemeines":"General","analysis.group.ueberblick":"Overview","analysis.group.gesamt":"PERSENTIS Care Index","analysis.group.verbundenheit":"Mental well-being","analysis.group.dim-a":"Task attractiveness","analysis.group.dim-b":"Relationship quality","analysis.group.wissenswertes":"Good to know","analysis.item.A01":"Fit & competence","analysis.item.A02":"Task appeal & variety","analysis.item.A03":"Meaningfulness of work","analysis.item.A04":"Constructive feedback","analysis.item.A05":"Development opportunities","analysis.item.B01":"Autonomy & scope for action","analysis.item.B02":"Willingness to recommend","analysis.item.B03":"Organisational identification","analysis.item.B04":"Manager support & trust","analysis.item.B05":"Communication & transparency of decisions","analysis.item.B06":"Relationship with the manager","analysis.item.B07":"Social climate & workplace conduct","analysis.bar.wunsch":"I would like MORE","analysis.bar.positiv":"Positive","analysis.bar.negativ":"Negative","analysis.bar.empty":"No data.","analysis.sonstige.title":"Other information","analysis.feedback.title":"Open feedback","analysis.feedback.empty":"No open feedback.","analysis.feedback.details":"Details ({count})","analysis.legend.handlungsbedarf":"Action needed","analysis.legend.moderat":"Moderate","analysis.legend.top":"Top performance","analysis.stat.teilnehmer":"Participants","analysis.stat.beteiligung":"Participation","analysis.stat.laufzeit":"Duration","analysis.stat.abgeschlossen":"Completed","analysis.stat.positiv":"Positive mentions","analysis.stat.negativ":"Critical mentions","analysis.overview.no_dept_data":"No department data available.","analysis.overview.department":"Department","analysis.overview.quote":"Participation rate","analysis.overview.locked_row":"Direct insight not possible due to insufficient participation.","analysis.overview.na":"n/a","analysis.sent.positive":"positive","analysis.sent.negative":"negative","analysis.sent.neutral":"neutral","analysis.no_result":"No result available.","analysis.summary.too_few":"Too few responses were received for an AI-based summary. Please review the individual statements.","analysis.summary.count":"Summary of {count} responses","analysis.summary.title":"Summary of responses","analysis.summary.generating":"Being generated automatically \u2026","analysis.summary.none":"No summary available.","analysis.gauge.no_value":"No value available.","analysis.section.placeholder":"Content for this section is coming soon.","analysis.survey_fallback":"Survey","analysis.anon.locked_text":"For the current selection, no results are shown for anonymity reasons (only from {min} employees and {min} responses). Select assessable departments in the filter above.","analysis.nav.expand":"Expand menu","analysis.nav.collapse":"Collapse menu","onboarding.menu":"Setup","onboarding.banner.title":"Welcome to PERSENTIS!","onboarding.banner.progress":"Setup {pct} % complete","onboarding.banner.continue":"Continue setup","onboarding.banner.dismiss":"Hide","onboarding.title":"Initial setup","onboarding.subtitle":"Ready to go in a few steps","onboarding.step.profile":"Profile","onboarding.step.departments":"Departments","onboarding.step.colleagues":"Colleagues","onboarding.step.billing":"Billing","onboarding.step.done":"Done","onboarding.next":"Next","onboarding.back":"Back","onboarding.skip":"Skip step","onboarding.finish":"Finish","onboarding.close":"Do it later","onboarding.saving":"Saving \u2026","onboarding.profile.title":"Complete your profile","onboarding.profile.desc":"These details appear in reports and invitations.","onboarding.profile.firstName":"First name","onboarding.profile.lastName":"Last name","onboarding.profile.phone":"Phone","onboarding.profile.position":"Position / role","onboarding.profile.required":"Please enter your first and last name.","onboarding.dept.title":"Set up your departments","onboarding.dept.desc":"Add the departments of your headquarters. You can add more later.","onboarding.dept.name":"Department name","onboarding.dept.headcount":"Employees","onboarding.dept.add":"Add department","onboarding.dept.existing":"Already added","onboarding.dept.empty":"No departments added yet.","onboarding.dept.suggestions":"Suggestions","onboarding.dept.hint":"Tip: you can add many departments later via Excel import.","onboarding.dept.added":"Department created.","onboarding.coll.title":"Invite colleagues","onboarding.coll.desc":"Invite managers or additional administrators. Optional \u2013 possible any time.","onboarding.coll.name":"Name","onboarding.coll.email":"Email","onboarding.coll.role":"Role","onboarding.coll.role.manager":"Manager","onboarding.coll.role.admin":"Administrator","onboarding.coll.invite":"Invite","onboarding.coll.invited":"{count} invited","onboarding.coll.sent":"Invitation sent.","onboarding.billing.title":"Add billing address","onboarding.billing.desc":"For future invoices. Optional \u2013 you can add this later.","onboarding.billing.company":"Company name","onboarding.billing.address":"Billing address","onboarding.billing.vat":"VAT ID","onboarding.billing.email":"Billing email","onboarding.billing.contact":"Contact person","onboarding.billing.saved":"Billing address saved.","onboarding.done.title":"All set! You are ready to go.","onboarding.done.desc":"Here you'll find support for your next steps:","onboarding.done.manual":"Manual","onboarding.done.manualText":"Guides and answers to frequently asked questions.","onboarding.done.support":"Support","onboarding.done.supportText":"Our team responds within 24 hours.","onboarding.done.activities":"First survey","onboarding.done.activitiesText":"Get started now with Analytics, Pulse or Care.","onboarding.completed":"Setup complete. Good luck!","nav.pulse.einmalig":"One-time","nav.pulse.wiederkehrend":"Recurring","auswertungen.info.teilnehmer":"Participants","auswertungen.info.completed":"Completed","auswertungen.open":"Open results","auswertungen.export_pdf":"Export as PDF","auswertungen.section.completed":"Completed surveys","pulse.overview.title.wiederkehrend":"Recurring \u2013 Overview","pulse.overview.title.einmalig":"One-off \u2013 Overview","pulse.overview.subtitle.wiederkehrend":"Mood barometer at a glance","pulse.overview.subtitle.einmalig":"One-off pulse surveys at a glance","pulse_overview.nodata_banner":"No survey available yet. As soon as you create a Pulse survey and the first participants have taken part, the results will appear here.","pulse.overview.recent.einmalig":"Recent surveys","pulse.overview.recent.wiederkehrend":"Recent programmes","pulse.overview.cta_all":"\u2026 to all results","pulse.kpi.programs":"Programmes","pulse.kpi.waves":"Waves","pulse.kpi.score":"Avg. mood score","pulse.kpi.enps":"eNPS","pulse.kpi.rate":"Avg. participation","pulse.kpi.total":"Total surveys","pulse.kpi.active":"Active","pulse.kpi.completed":"Completed","pulse.kpi.responses":"Responses","pulse.info.questions":"Questions","pulse.program.rhythmus":"Rhythm","pulse.program.waves":"Waves so far","pulse.program.barometer_open":"Open barometer","pulse.results.title.wiederkehrend":"Recurring \u2013 Results","pulse.results.title.einmalig":"One-off \u2013 Results","pulse.results.subtitle.wiederkehrend":"Mood barometer trends (trend & eNPS)","pulse.results.subtitle.einmalig":"Completed pulse surveys and their results","pulse.results.section.laufend":"Ongoing surveys","pulse.results.section.beendet":"Ended surveys","pulse.empty.laufend":"No ongoing surveys available.","pulse.empty.beendet":"No ended surveys available.","pulse.anal
2ysis.not_found":"Evaluation not found.","pulse.analysis.responses":"Responses","pulse.analysis.rate":"Avg. participation","pulse.analysis.questions":"Questions","pulse.analysis.anon_title":"Anonymity protection active","pulse.analysis.anon_text":"There are fewer than {min} responses. To protect anonymity, no detailed results are shown.","pulse.enps.score_label":"eNPS score","pulse.enps.promoters":"Promoters (9\u201310)","pulse.enps.passives":"Passives (7\u20138)","pulse.enps.detractors":"Detractors (0\u20136)","pulse.barometer.title_fallback":"Barometer","pulse.barometer.dev_for":"Development for {title}","pulse.barometer.subtitle_fallback":"Mood barometer over time","pulse.barometer.trend_error":"Trend could not be loaded.","pulse.barometer.empty":"No evaluable waves yet (at least {min} participants per wave required).","pulse.barometer.measurement":"Measurement","pulse.barometer.development":"DEVELOPMENT","pulse.barometer.measurements":"measurements","pulse.barometer.click_hint":"Click on the measurement point to see the detailed evaluation of the survey round.","pulse.barometer.single_eval":"Individual evaluation","pulse.barometer.answers_suffix":"responses","pulse.barometer.wave_locked":"This wave cannot be evaluated for anonymity reasons (at least {min} participants).","pulse.barometer.delta_over":"above overall","pulse.barometer.delta_under":"below overall","pulse.barometer.delta_equal":"at overall","pulse.surveys.title.wiederkehrend":"Recurring \u2013 Surveys","pulse.surveys.title.einmalig":"One-off \u2013 Surveys","pulse.surveys.subtitle.wiederkehrend":"Create and manage mood barometers","pulse.surveys.subtitle.einmalig":"Create and manage one-off pulse surveys","pulse.sub.vorbereitung":"In preparation","pulse.sub.aktiv":"Survey Active","invitations.create":"Create survey","invitations.close":"Close survey","invitations.start":"Start survey","invitations.info.created":"Created on","invitations.info.participants":"Participants","pulse.info.repetitions":"Repetitions","pulse.info.ends_at":"Runs until","pulse.empty.rec_vorb":"No recurring surveys in preparation.","pulse.empty.rec_aktiv":"No active recurring surveys.","pulse.empty.ein_vorb":"No one-off surveys in preparation.","pulse.empty.ein_aktiv":"No active one-off surveys.","pulse.rec_aktiv.hint_pre":"You can already find the active recurring surveys under the ","pulse.rec_aktiv.hint_link":"Results menu item","pulse.rec_aktiv.hint_post":".","pulse.trend.enps_label":"eNPS per wave (\u2212100 \u2026 +100)","pulse.trend.score_label":"Mood score per wave","invitations.tip_edit":"Edit","invitations.tip_preview":"Open preview","invitations.tip_delete":"Delete","invitations.tip_copylink":"Copy survey link","invitations.tip_extend":"Extend by 1 week","invitations.tip_extend_max":"Already extended 2\xd7","comparison.hint":"Select the desired {unit} for a direct comparison of the overall figures. The OVERALL column serves as a reference.","comparison.unit_departments":"Departments","comparison.unit_branches":"Branches","comparison.col_total":"OVERALL","comparison.col_reference":"Reference","comparison.answers_suffix":"responses","comparison.tip_select_all":"Select all","comparison.tip_reset":"Reset selection","comparison.tip_reset_group":"Reset","comparison.tip_over":"above overall","comparison.tip_under":"below overall","comparison.tip_equal":"equals overall","comparison.tip_no_survey":"No survey conducted","comparison.tip_few":"Too few employees participated","comparison.tip_locked":"Locked (< 5)","comparison.row.employer_indicator":"ANALYTICS Score","comparison.row.bindungskraft":"Retention power","comparison.row.stress":"Stress level","comparison.row.enps":"eNPS","comparison.row.attraktivitaet":"Attractiveness","comparison.row.zufriedenheit":"Satisfaction","comparison.row.engagement":"Engagement","comparison.row.overall":"CARE Score","comparison.row.GEN":"Mental well-being","comparison.row.A":"Task attractiveness","comparison.row.B":"Relationship quality","wizard.title_edit":"Edit survey","wizard.title_create":"Create survey","wizard.step.0":"Company / branch","wizard.step.1":"Name","wizard.step.2":"Departments","wizard.step.3":"Duration","wizard.step.4"
2:"Additional questions","wizard.step0.label":"Select company / branch","wizard.select_placeholder":"Please select \u2026","wizard.step1.label":"Survey name","wizard.step1.note":"Required field \u2013 shown as the heading of the survey tile. A suggestion is generated automatically and can be freely adjusted.","wizard.step2.label":"Select departments","wizard.step2.hint":"By default, all departments of the branch are selected.","wizard.step2.empty":"No departments in this branch.","wizard.unit_ma":"empl.","wizard.step3.label":"Duration after the first response is received","wizard.step3.unit":"days (default: 14)","wizard.step3.hint":"The duration can later be extended up to twice, by 1 week each time.","wizard.step4.label":"Additional questions","wizard.optional":"optional","wizard.step4.hint":"Up to {max} custom questions. They appear right after the intro. Rating questions automatically receive a suitable scale (adjustable).","wizard.cq_placeholder":"Question \u2026","wizard.type_rating":"Rating question","wizard.type_open":"Open question","wizard.cq_empty":"No additional questions added yet.","wizard.btn_own":"Own question","wizard.btn_picker":"Choose from suggestions","wizard.picker_title":"Suggestion catalogue","wizard.picker_done":"Done","wizard.badge_vorschlag":"Suggestion","wizard.badge_wertung":"Rating","wizard.badge_offen":"Open","wizard.saving":"Saving \u2026","wizard.creating":"Creating \u2026","common.save_changes":"Save changes","gauge.label.employer_indicator":"ANALYTICS Score","gauge.label.bindungskraft":"Retention power","gauge.label.stress":"Stress level","gauge.label.enps":"eNPS","gauge.label.zufriedenheit":"Satisfaction","gauge.label.attraktivitaet":"Attractiveness","gauge.label.engagement":"Engagement","invitations.tip_qr":"Download QR code PDF","invitations.tip_delete_survey":"Delete survey","pulse.tip_extend":"Extend by 3 days","pulse.tip_extend_max":"Duration already extended by 3 days","pulse.wizard.edit_title":"Edit survey","pulse.wizard.create_title":"Create survey","pulse.step.art":"Survey type","pulse.step.branch":"Company / branch","pulse.step.label":"Designation","pulse.step.depts":"Departments","pulse.step.questions":"Questions","pulse.wizard.erhebungsart":"Survey type","pulse.wizard.mode_einmalig":"One-off","pulse.wizard.mode_einmalig_desc":"A single short survey","pulse.wizard.mode_wiederkehrend":"Recurring","pulse.wizard.mode_wiederkehrend_desc":"Mood barometer on a rhythm","pulse.wizard.rhythmus_label":"Rhythm","pulse.wizard.cadence_hint":"Runs indefinitely until you end the barometer. For each due wave you receive an email so you can inform your distribution list.","pulse.wizard.branch_label":"Select company / branch","pulse.wizard.title_label":"Survey name","pulse.wizard.title_hint":"Required \u2013 shown as the heading of the survey tile. Suggestion generated automatically, freely adjustable.","pulse.wizard.depts_label":"Select departments","pulse.wizard.depts_hint":"By default, all departments of the branch are selected.","pulse.wizard.no_depts":"No departments in this branch.","pulse.wizard.questions_label":"Questions","pulse.wizard.questions_upto":"(up to {max})","pulse.wizard.fragen_hint":"Choose questions from the suggestion catalogue, create your own questions or select a ready-made question set.","pulse.wizard.locked_set_hint":"With a ready-made question set, the included questions are used unchanged. No further questions can be added or adjusted.","pulse.wizard.locked_set_remove":"Remove question set","pulse.wizard.n_questions":"{n} questions","pulse.wizard.qtext_placeholder":"Question text \u2026","pulse.wizard.type":"Type:","pulse.wizard.scale":"Scale:","pulse.wizard.option":"Option","pulse.wizard.no_questions_yet":"No questions added yet.","pulse.wizard.btn_own":"Own question","pulse.wizard.btn_catalog":"Choose from suggestions","pulse.wizard.btn_set":"Ready-made question set","pulse.wizard.sets_heading":"Pre-made question sets","pulse.wizard.sets_hint":"A set replaces the current questions. You can adjust everything freely afterwards.","pulse.wizard.no_sets":"No question sets available.","pulse.wizard.catalog_heading":"Suggestion catalogue","pulse.wizard.badge_rating":"Rating","pulse.wizard.badge_open":"Open","pulse.wizard.saving":"Saving \u2026","pulse.wizard.creating":"Creating \u2026","pulse.wizard.save_changes":"Save changes","pulse.wizard.create":"Create survey","pulse.type.likert":"Rating question","pulse.type.yesno":"Yes / No","pulse.type.choice":"Choice","pulse.type.open":"Free text","pulse.type.enps":"eNPS (0\u201310)","pulse.dialog.end_title":"End mood barometer?","pulse.dialog.end_body":"Do you really want to end the barometer {title}? No further waves will then be generated. Waves already running and the previous evaluations remain intact.","pulse.dialog.end_confirm":"End","pulse.dialog.complete_title":"Really complete the survey?","pulse.dialog.complete_body":'Do you really want to complete the survey {label}? Reopening is not possible. You will then find the results under "Results".',"pulse.dialog.complete_confirm":"Complete","pulse.dialog.delete_title":"Delete survey?","pulse.dialog.delete_body_active":"When deleting, all information and all responses that have already been submitted are irretrievably lost. If you do not want this, cancel the deletion.","pulse.dialog.delete_body":"When deleting, all information is irretrievably lost. If you do not want this, cancel the deletion.","pulse.dialog.delete_confirm":"Delete","pulse.dialog.started_title":"Survey started","pulse.dialog.started_body":"Your survey is now active. Distribute the participation link or print the QR code PDF \u2013 as a flyer (4 tiles to cut out) or a large-format poster (1 per page) for display.","pulse.dialog.started_flyer":"Flyer (4 per page)","pulse.dialog.started_poster":"Poster
2(1 per page)","pulse.dialog.started_copy":"Copy participation link"},fr:{"invitations.info.duration":"Dur\xe9e de l'enqu\xeate","invitations.info.customq":"Questions suppl\xe9mentaires","invitations.info.runsuntil":"Active jusqu'au","invitations.not_started":"non d\xe9marr\xe9e","invitations.section.vorbereitung":"Enqu\xeates en pr\xe9paration","invitations.section.aktiv":"Enqu\xeates actives","invitations.empty.vorbereitung":"Aucune enqu\xeate en pr\xe9paration.","invitations.empty.aktiv":"Aucune enqu\xeate active.","invitations.complete.title":"Vraiment terminer l'enqu\xeate ?","invitations.complete.confirm":"Terminer","invitations.start_dialog.title":"D\xc9MARRER l'enqu\xeate","invitations.start_dialog.text":"Souhaitez-vous d\xe9marrer {label} maintenant ?","invitations.start_dialog.done_title":"Prochaines \xe9tapes","invitations.start_dialog.done_text":"Vous avez d\xe9marr\xe9 {label} et trouverez dans votre bo\xeete de r\xe9ception un e-mail contenant les instructions d\xe9taill\xe9es, un texte propos\xe9 pour la diffusion \xe0 vos collaborateurs ainsi que des QR codes pr\xe9par\xe9s \xe0 imprimer et \xe0 afficher.","invitations.start_dialog.done_fun":"Amusez-vous bien avec {label}.","invitations.start_dialog.qr_btn":"D\xe9pliant (4 par page)","invitations.start_dialog.qr_poster_btn":"Affiche (1 par page)","structure.readonly_badge":"Acc\xe8s en lecture seule","common.loading":"Chargement \u2026","common.loading_hint":"Veuillez patienter un instant \u2013 les donn\xe9es se chargent.","common.no_value":"Aucune valeur disponible.","common.no_data_short":"Aucune donn\xe9e.","common.no_data_available":"Aucune donn\xe9e disponible.","common.gesamt":"Global","common.coming_soon_toast":"Cette fonction sera bient\xf4t disponible.","common.survey":"Enqu\xeate","common.no_free_text":"Aucune r\xe9ponse libre.","common.please_select":"Veuillez choisir \u2026","common.close":"Fermer","common.done_btn":"Termin\xe9","common.cancel":"Annuler","result.zone.kritisch":"critique","result.zone.moderat":"mod\xe9r\xe9","result.zone.exzellent":"excellent","result.likert0":"critique","result.likert1":"faible","result.likert2":"mod\xe9r\xe9","result.likert3":"bon","result.likert4":"tr\xe8s bon","result.yes":"Oui","result.no":"Non","result.sentiment.positive":"positif","result.sentiment.neutral":"neutre","result.sentiment.negative":"n\xe9gatif","result.summary_creating":"Le r\xe9sum\xe9 IA est en cours de g\xe9n\xe9ration \u2026","result.no_summary_hint":"Trop peu de r\xe9ponses ont \xe9t\xe9 re\xe7ues pour un r\xe9sum\xe9 assist\xe9 par IA. Veuillez consulter les d\xe9clarations individuelles.","result.hide_answers":"Masquer les r\xe9ponses individuelles","result.show_all_answers":"Afficher les {n} r\xe9ponses individuelles","pulse.cadence.monthly":"Mensuel","pulse.cadence.quarterly":"Trimestriel","analytics_overview.title":"Aper\xe7u - PERSENTIS Analytics","analytics_overview.subtitle":"\xc9tat des lieux de la fid\xe9lisation, de l'attractivit\xe9 et de l'engagement","analytics_overview.demo_banner":"Vue d\xe9mo \u2013 des donn\xe9es d'exemple sont affich\xe9es. Le questionnaire Analytics et la v\xe9ritable analyse suivent.","analytics_overview.nodata_banner":"Aucune donn\xe9e d'analyse pour le moment. D\xe8s que les premiers participants auront r\xe9pondu \xe0 une enqu\xeate Analytics, les r\xe9sultats appara\xeetront ici.","analytics_overview.anon_title":"Protection de l'anonymat activ\xe9e","analytics_overview.anon_text":"Afin de prot\xe9ger l'anonymat, les analyses ne s'affichent qu'\xe0 partir de {min} r\xe9ponses valides. Il y a actuellement {responses} r\xe9ponses valides.","analytics_overview.gesamt_heading":"R\xe9sultat global","analytics_overview.comparison_heading":"R\xe9sultats en comparaison","analytics.tip_no_survey":"Aucune enqu\xeate r\xe9alis\xe9e","analytics.tip_too_few":"Trop peu de collaborateurs ont particip\xe9","analytics_results.title":"R\xe9sultats - PERSENTIS Analytics","analytics_results.subtitle":"Enqu\xeates termin\xe9es et leurs r\xe9sultats","analytics_results.section_completed":"Enqu\xeates termin\xe9es","analytics.score_hint_suffix":"visible seulement \xe0 partir de 5 participations valides (anonymat).","auswertungen.info.personal":"R\xe9ponses personnelles","analytics.score.label":"ANALYTICS Score","analytics.back_to_results":"Retour aux r\xe9sultats","analytics.stat.teilnehmer":"Participants","analytics.stat.beteiligung":"Participation","analytics.stat.laufzeit":"Dur\xe9e","analytics.stat.abgeschlossen":"Termin\xe9","analytics.stat.personal":"R\xe9ponses personnelles","analytics.menu.allgemeines":"G\xe9n\xe9ral","analytics.menu.bindungskraft":"Force de fid\xe9lisation","analytics.menu.stresslevel":"Niveau de stress","analytics.menu.enps":"eNPS","analytics.menu.attraktivitaet":"Attractivit\xe9","analytics.menu.arbeitgeberangebot":"Offre de l'employeur","analytics.menu.orientierung":"Orientation","analytics.menu.engagement-zufriedenheit":"Engagement et satisfaction","analytics.menu.erfuellungsgrad":"Degr\xe9 de satisfaction","analytics.menu.top-argumente":"Arguments cl\xe9s","analytics.menu.standardfragen":"Questions standard","analytics.menu.spezialfragen":"Questions sp\xe9ciales","analytics.ez.engagement_label":"Engagement","analytics.ez.zufriedenheit_label":"Satisfaction","analytics.ez.compare_heading":"Engagement VS Satisfaction","analytics.ez.no_compare":"Aucun texte de comparaison n'est disponible pour la s\xe9lection actuelle.","analytics.hint.erfuellungsgrad":"S\xe9lectionnez le d\xe9partement souhait\xe9 dans le filtre pour consulter le DEGR\xc9 DE SATISFACTION. Il n'existe pas de valeurs pour la zone globale.","analytics.hint.topargumente":"S\xe9lectionnez le d\xe9partement souhait\xe9 dans le filtre pour consulter les ARGUMENTS CL\xc9S. Il n'existe pas de valeurs pour la zone globale.","analytics.tip_erfuellungsgrad":"Le degr\xe9 de satisfaction compare, par sous-facteur, l'offre de l'employeur (en couleur) avec l'orientation/importance (en gris, derri\xe8re). Si la barre grise d\xe9passe la barre color\xe9e, l'offre reste en de\xe7\xe0 de l'importance \u2013 plus l'\xe9cart est grand, plus le th\xe8me n\xe9cessite d'attention.","analytics.delta.over":"au-dessus du global","analytics.delta.under":"en dessous du global","analytics.delta.equal":"\xe9gal au global","analytics.enps.detractors":"D\xe9tracteurs","analytics.enps.indifferent":"Indiff\xe9rents","analytics.enps.promoters":"Promoteurs","analytics.enps.answers_short":"r\xe9p.","analytics.no_arguments":"Aucun argument disponible.","analytics.no_standard":"Aucune question standard.","analytics.no_special":"Aucune question sp\xe9ciale.","analytics.summary_of":"R\xe9sum\xe9 de {n} r\xe9ponses","analytics.summary_auto":"G\xe9n\xe9r\xe9 automatiquement \u2026","analytics.summary_none":"Aucun r\xe9sum\xe9 disponible.","analytics.details":"D\xe9tails ({n})","analytics.no_answers":"Aucune r\xe9ponse.","analytics.erf.tipps":"CONSEILS","analytics.erf.tooltip":"Le degr\xe9 de satisfaction pour le th\xe8me {name} est {level}.","analytics.nav.expand":"D\xe9plier le menu","analytics.nav.collapse":"Replier le menu","analytics.anon_
2inline.p1":"Pour la s\xe9lection actuelle, aucun r\xe9sultat n'est affich\xe9 pour des raisons d'anonymat (seulement \xe0 partir de ","analytics.anon_inline.p2":" collaborateurs et ","analytics.anon_inline.p3":" r\xe9ponses). Choisissez les d\xe9partements analysables dans le filtre ci-dessus.","analysis.tip_dept_locked":"Trop peu de collaborateurs de ce d\xe9partement ont particip\xe9 \xe0 l'enqu\xeate ; il n'est donc pas consultable pour des raisons d'anonymat. Les r\xe9ponses donn\xe9es ont \xe9t\xe9 prises en compte dans le calcul global.","care.back_to_results":"Retour aux r\xe9sultats","analysis.group.allgemeines":"G\xe9n\xe9ralit\xe9s","analysis.group.ueberblick":"Aper\xe7u","analysis.group.gesamt":"PERSENTIS Care Index","analysis.group.verbundenheit":"Bien-\xeatre mental","analysis.group.dim-a":"Attrait des t\xe2ches","analysis.group.dim-b":"Qualit\xe9 des relations","analysis.group.wissenswertes":"Bon \xe0 savoir","analysis.item.A01":"Ad\xe9quation et comp\xe9tence","analysis.item.A02":"Attrait du contenu et vari\xe9t\xe9","analysis.item.A03":"Sens du travail","analysis.item.A04":"Retour constructif","analysis.item.A05":"Possibilit\xe9s de d\xe9veloppement","analysis.item.B01":"Marge d'action et d'initiative","analysis.item.B02":"Propension \xe0 recommander","analysis.item.B03":"Identification \xe0 l'organisation","analysis.item.B04":"Soutien et confiance du responsable","analysis.item.B05":"Communication et transparence des d\xe9cisions","analysis.item.B06":"Relation avec le responsable","analysis.item.B07":"Climat social et relations dans l'entreprise","analysis.bar.wunsch":"Je souhaiterais PLUS","analysis.bar.positiv":"Positif","analysis.bar.negativ":"N\xe9gatif","analysis.bar.empty":"Aucune donn\xe9e.","analysis.sonstige.title":"Autres informations","analysis.feedback.title":"Retours libres","analysis.feedback.empty":"Aucun retour libre.","analysis.feedback.details":"D\xe9tails ({count})","analysis.legend.handlungsbedarf":"Action requise","analysis.legend.moderat":"Mod\xe9r\xe9","analysis.legend.top":"Performance optimale","analysis.stat.teilnehmer":"Participants","analysis.stat.beteiligung":"Participation","analysis.stat.laufzeit":"Dur\xe9e","analysis.stat.abgeschlossen":"Termin\xe9","analysis.stat.positiv":"Mentions positives","analysis.stat.negativ":"Mentions critiques","analysis.overview.no_dept_data":"Aucune donn\xe9e de service disponible.","analysis.overview.department":"Service","analysis.overview.quote":"Taux de participation","analysis.overview.locked_row":"Aper\xe7u direct impossible en raison d'une participation trop faible.","analysis.overview.na":"n.d.","analysis.sent.positive":"positif","analysis.sent.negative":"n\xe9gatif","analysis.sent.neutral":"neutre","analysis.no_result":"Aucun r\xe9sultat disponible.","analysis.summary.too_few":"Trop peu de r\xe9ponses ont \xe9t\xe9 re\xe7ues pour une synth\xe8se assist\xe9e par IA. Veuillez consulter les r\xe9ponses individuelles.","analysis.summary.count":"Synth\xe8se de {count} r\xe9ponses","analysis.summary.title":"Synth\xe8se des r\xe9ponses","analysis.summary.generating":"G\xe9n\xe9ration automatique en cours \u2026","analysis.summary.none":"Aucune synth\xe8se disponible.","analysis.gauge.no_value":"Aucune valeur disponible.","analysis.section.placeholder":"Le contenu de cette section sera bient\xf4t disponible.","analysis.survey_fallback":"Enqu\xeate","analysis.anon.locked_text":"Pour la s\xe9lection actuelle, aucun r\xe9sultat n'est affich\xe9 pour des raisons d'anonymat (\xe0 partir de {min} collaborateurs et {min} r\xe9ponses seulement). S\xe9lectionnez les services analysables dans le filtre ci-dessus.","analysis.nav.expand":"D\xe9plier le menu","analysis.nav.collapse":"Replier le menu","onboarding.menu":"Configuration","onboarding.banner.title":"Bienvenue chez PERSENTIS !","onboarding.banner.progress":"Configuration termin\xe9e \xe0 {pct} %","onboarding.banner.continue":"Poursuivre la configuration","onboarding.banner.dismiss":"Masquer","onboarding.title":"Configuration initiale","onboarding.subtitle":"Pr\xeat en quelques \xe9tapes","onboarding.step.profile":"Profil","onboarding.step.departments":"Services","onboarding.step.colleagues":"Coll\xe8gues","onboarding.step.billing":"Facturation","onboarding.step.done":"Termin\xe9","onboarding.next":"Suivant","onboarding.back":"Retour","onboarding.skip":"Ignorer l'\xe9tape","onboarding.finish":"Terminer","onboarding.close"
2:"Plus tard","onboarding.saving":"Enregistrement \u2026","onboarding.profile.title":"Compl\xe9tez votre profil","onboarding.profile.desc":"Ces informations apparaissent dans les rapports et les invitations.","onboarding.profile.firstName":"Pr\xe9nom","onboarding.profile.lastName":"Nom","onboarding.profile.phone":"T\xe9l\xe9phone","onboarding.profile.position":"Poste / fonction","onboarding.profile.required":"Veuillez indiquer votre pr\xe9nom et votre nom.","onboarding.dept.title":"Cr\xe9ez vos services","onboarding.dept.desc":"Ajoutez les services de votre si\xe8ge. Vous pourrez en ajouter d'autres plus tard.","onboarding.dept.name":"Nom du service","onboarding.dept.headcount":"Collaborateurs","onboarding.dept.add":"Ajouter un service","onboarding.dept.existing":"D\xe9j\xe0 cr\xe9\xe9s","onboarding.dept.empty":"Aucun service cr\xe9\xe9 pour le moment.","onboarding.dept.suggestions":"Suggestions","onboarding.dept.hint":"Astuce : vous pourrez cr\xe9er de nombreux services plus tard via l'import Excel.","onboarding.dept.added":"Service cr\xe9\xe9.","onboarding.coll.title":"Invitez des coll\xe8gues","onboarding.coll.desc":"Invitez des responsables ou d'autres administrateurs. Facultatif \u2013 possible \xe0 tout moment.","onboarding.coll.name":"Nom","onboarding.coll.email":"E-mail","onboarding.coll.role":"R\xf4le","onboarding.coll.role.manager":"Responsable","onboarding.coll.role.admin":"Administrateur","onboarding.coll.invite":"Inviter","onboarding.coll.invited":"{count} invit\xe9(s)","onboarding.coll.sent":"Invitation envoy\xe9e.","onboarding.billing.title":"Ajouter l'adresse de facturation","onboarding.billing.desc":"Pour les factures futures. Facultatif \u2013 vous pouvez l'ajouter plus tard.","onboarding.billing.company":"Nom de l'entreprise","onboarding.billing.address":"Adresse de facturation","onboarding.billing.vat":"N\xb0 de TVA","onboarding.billing.email":"E-mail de facturation","onboarding.billing.contact":"Personne de contact","onboarding.billing.saved":"Adresse de facturation enregistr\xe9e.","onboarding.done.title":"C'est fait ! Vous \xeates pr\xeat.","onboarding.done.desc":"Voici de l'aide pour vos prochaines \xe9tapes :","onboarding.done.manual":"Manuel","onboarding.done.manualText":"Guides et r\xe9ponses aux questions fr\xe9quentes.","onboarding.done.support":"Assistance","onboarding.done.supportText":"Notre \xe9quipe r\xe9pond sous 24 heures.","onboarding.done.activities":"Premi\xe8re enqu\xeate","onboarding.done.activitiesText":"Commencez d\xe8s maintenant avec Analytics, Pulse ou Care.","onboarding.completed":"Configuration termin\xe9e. Bonne chance !","nav.pulse.einmalig":"Ponctuel","nav.pulse.wiederkehrend":"R\xe9current","auswertungen.info.teilnehmer":"Participants","auswertungen.info.completed":"Termin\xe9","auswertungen.open":"Ouvrir les r\xe9sultats","auswertungen.export_pdf":"Exporter en PDF","auswertungen.section.completed":"Enqu\xeates termin\xe9es","pulse.overview.title.wiederkehrend":"R\xe9current \u2013 Aper\xe7u","pulse.overview.title.einmalig":"Ponctuel \u2013 Aper\xe7u","pulse.overview.subtitle.wiederkehrend":"Barom\xe8tre d'ambiance en un coup d'\u0153il","pulse.overview.subtitle.einmalig":"Enqu\xeates flash ponctuelles en un coup d'\u0153il","pulse_overview.nodata_banner":"Aucune enqu\xeate pour le moment. D\xe8s que vous cr\xe9ez une enqu\xeate Pulse et que les premiers participants y ont r\xe9pondu, les r\xe9sultats appara\xeetront ici.","pulse.overview.recent.einmalig":"Derni\xe8res enqu\xeates","pulse.overview.recent.wiederkehrend":"Derniers programmes","pulse.overview.cta_all":"\u2026 vers tous les r\xe9sultats","pulse.kpi.programs":"Programmes","pulse.kpi.waves":"Vagues","pulse.kpi.score":"Score d'ambiance moy.","pulse.kpi.enps":"eNPS","pulse.kpi.rate":"Participation moy.","pulse.kpi.total":"Enqu\xeates au total","pulse.kpi.active":"Actives","pulse.kpi.completed":"Termin\xe9es","pulse.kpi.responses":"R\xe9ponses","pulse.info.questions":"Questions","pulse.program.rhythmus":"Rythme","pulse.program.waves":"Vagues jusqu'ici","pulse.program.barometer_open":"Ouvrir le barom\xe8tre","pulse.results.title.wiederkehrend":"R\xe9current \u2013 R\xe9sultats","pulse.results.title.einmalig":"Ponctuel \u2013 R\xe9sultats","pulse.results.subtitle.wiederkehrend":"\xc9volutions du barom\xe8tre d'ambiance (tendance & eNPS)","pulse.results.subtitle.einmalig":"Enqu\xeates flash termin\xe9es et leurs r\xe9sultats","pulse.results.section.laufend":"Enqu\xeates en cours","pulse.results.section.beendet":"Enqu\xeates termin\xe9es","pulse.empty.laufend":"Aucune enqu\xeate en cours.","pulse.empty.beendet":"Aucune enqu\xeate termin\xe9e.","pulse.anal
2ysis.not_found":"Analyse introuvable.","pulse.analysis.responses":"R\xe9ponses","pulse.analysis.rate":"Participation moy.","pulse.analysis.questions":"Questions","pulse.analysis.anon_title":"Protection de l'anonymat activ\xe9e","pulse.analysis.anon_text":"Il y a moins de {min} r\xe9ponses. Afin de prot\xe9ger l'anonymat, aucun r\xe9sultat d\xe9taill\xe9 n'est affich\xe9.","pulse.enps.score_label":"Score eNPS","pulse.enps.promoters":"Promoteurs (9\u201310)","pulse.enps.passives":"Passifs (7\u20138)","pulse.enps.detractors":"D\xe9tracteurs (0\u20136)","pulse.barometer.title_fallback":"Barom\xe8tre","pulse.barometer.dev_for":"\xc9volution pour {title}","pulse.barometer.subtitle_fallback":"Barom\xe8tre d'ambiance dans le temps","pulse.barometer.trend_error":"La tendance n'a pas pu \xeatre charg\xe9e.","pulse.barometer.empty":"Aucune vague analysable pour le moment (au moins {min} participants par vague requis).","pulse.barometer.measurement":"Mesure","pulse.barometer.development":"\xc9VOLUTION","pulse.barometer.measurements":"mesures","pulse.barometer.click_hint":"Cliquez sur le point de mesure pour voir l'analyse d\xe9taill\xe9e du tour d'enqu\xeate.","pulse.barometer.single_eval":"Analyse individuelle","pulse.barometer.answers_suffix":"r\xe9ponses","pulse.barometer.wave_locked":"Cette vague ne peut pas \xeatre analys\xe9e pour des raisons d'anonymat (au moins {min} participants).","pulse.barometer.delta_over":"au-dessus du global","pulse.barometer.delta_under":"en dessous du global","pulse.barometer.delta_equal":"au niveau global","pulse.surveys.title.wiederkehrend":"R\xe9current \u2013 Enqu\xeates","pulse.surveys.title.einmalig":"Ponctuel \u2013 Enqu\xeates","pulse.surveys.subtitle.wiederkehrend":"Cr\xe9er et g\xe9rer des barom\xe8tres d'ambiance","pulse.surveys.subtitle.einmalig":"Cr\xe9er et g\xe9rer des enqu\xeates flash ponctuelles","pulse.sub.vorbereitung":"En pr\xe9paration","pulse.sub.aktiv":"Enqu\xeate active","invitations.create":"Cr\xe9er une enqu\xeate","invitations.close":"Cl\xf4turer l'enqu\xeate","invitations.start":"D\xe9marrer l'enqu\xeate","invitations.info.created":"Cr\xe9\xe9 le","invitations.info.participants":"Participants","pulse.info.repetitions":"R\xe9p\xe9titions","pulse.info.ends_at":"Se termine le","pulse.empty.rec_vorb":"Aucune enqu\xeate r\xe9currente en pr\xe9paration.","pulse.empty.rec_aktiv":"Aucune enqu\xeate r\xe9currente active.","pulse.empty.ein_vorb":"Aucune enqu\xeate ponctuelle en pr\xe9paration.","pulse.empty.ein_aktiv":"Aucune enqu\xeate ponctuelle active.","pulse.rec_aktiv.hint_pre":"Vous trouvez d\xe9j\xe0 les enqu\xeates r\xe9currentes actives sous le ","pulse.rec_aktiv.hint_link":"menu R\xe9sultats","pulse.rec_aktiv.hint_post":".","pulse.trend.enps_label":"eNPS par vague (\u2212100 \u2026 +100)","pulse.trend.score_label":"Score d'ambiance par vague","invitations.tip_edit":"Modifier","invitations.tip_preview":"Ouvrir l'aper\xe7u","invitations.tip_delete":"Supprimer","invitations.tip_copylink":"Copier le lien de l'enqu\xeate","invitations.tip_extend":"Prolonger d'une semaine","invitations.tip_extend_max":"D\xe9j\xe0 prolong\xe9 2\xd7","comparison.hint":"S\xe9lectionnez les {unit} souhait\xe9(e)s pour comparer directement les chiffres globaux. La colonne GLOBAL sert de r\xe9f\xe9rence.","comparison.unit_departments":"D\xe9partements","comparison.unit_branches":"Succursales","comparison.col_total":"GLOBAL","comparison.col_reference":"R\xe9f\xe9rence","comparison.answers_suffix":"r\xe9ponses","comparison.tip_select_all":"Tout s\xe9lectionner","comparison.tip_reset":"R\xe9initialiser la s\xe9lection","comparison.tip_reset_group":"R\xe9initialiser","comparison.tip_over":"sup\xe9rieur au global","comparison.tip_under":"inf\xe9rieur au global","comparison.tip_equal":"\xe9gal au global","comparison.tip_no_survey":"Aucune enqu\xeate r\xe9alis\xe9e","comparison.tip_few":"Trop peu de collaborateurs ont particip\xe9","comparison.tip_locked":"Verrouill\xe9 (< 5)","comparison.row.employer_indicator":"ANALYTICS Score","comparison.row.bindungskraft":"Force de fid\xe9lisation","comparison.row.stress":"Niveau de stress","comparison.row.enps":"eNPS","comparison.row.attraktivitaet":"Attractivit\xe9","comparison.row.zufriedenheit":"Satisfaction","comparison.row.engagement":"Engagement","comparison.row.overall":"CARE Score","comparison.row.GEN":"Bien-\xeatre mental","comparison.row.A":"Attractivit\xe9 des t\xe2ches","comparison.row.B":"Qualit\xe9 relationnelle","wizard.title_edit":"Modifier l'enqu\xeate","wizard.title_create":"Cr\xe9er une enqu\xeate","wizard.step.0":"Entreprise / succursale","wizard.step.1":"D\xe9signation","wizard.step.2":"D\xe9partements","wizard.step.3":"Dur\xe9e","wizard.step.4"
2:"Questions suppl\xe9mentaires","wizard.step0.label":"S\xe9lectionnez l'entreprise / la succursale","wizard.select_placeholder":"Veuillez s\xe9lectionner \u2026","wizard.step1.label":"Nom de l'enqu\xeate","wizard.step1.note":"Champ obligatoire \u2013 affich\xe9 comme titre de la vignette de l'enqu\xeate. Une proposition est g\xe9n\xe9r\xe9e automatiquement et librement modifiable.","wizard.step2.label":"S\xe9lectionner les d\xe9partements","wizard.step2.hint":"Par d\xe9faut, tous les d\xe9partements de la succursale sont s\xe9lectionn\xe9s.","wizard.step2.empty":"Aucun d\xe9partement dans cette succursale.","wizard.unit_ma":"collab.","wizard.step3.label":"Dur\xe9e \xe0 compter de la r\xe9ception de la premi\xe8re r\xe9ponse","wizard.step3.unit":"jours (par d\xe9faut : 14)","wizard.step3.hint":"La dur\xe9e peut \xeatre prolong\xe9e ult\xe9rieurement jusqu'\xe0 deux fois, d'une semaine \xe0 chaque fois.","wizard.step4.label":"Questions suppl\xe9mentaires","wizard.optional":"facultatif","wizard.step4.hint":"Jusqu'\xe0 {max} questions personnalis\xe9es. Elles apparaissent juste apr\xe8s l'introduction. Les questions d'\xe9valuation re\xe7oivent automatiquement une \xe9chelle adapt\xe9e (modifiable).","wizard.cq_placeholder":"Question \u2026","wizard.type_rating":"Question d'\xe9valuation","wizard.type_open":"Question ouverte","wizard.cq_empty":"Aucune question suppl\xe9mentaire ajout\xe9e pour l'instant.","wizard.btn_own":"Question personnelle","wizard.btn_picker":"Choisir parmi les propositions","wizard.picker_title":"Catalogue de propositions","wizard.picker_done":"Termin\xe9","wizard.badge_vorschlag":"Proposition","wizard.badge_wertung":"\xc9valuation","wizard.badge_offen":"Ouverte","wizard.saving":"Enregistrement \u2026","wizard.creating":"Cr\xe9ation \u2026","common.save_changes":"Enregistrer les modifications","profile.language":"Langue","gauge.label.employer_indicator":"ANALYTICS Score","gauge.label.bindungskraft":"Force de fid\xe9lisation","gauge.label.stress":"Niveau de stress","gauge.label.enps":"eNPS","gauge.label.zufriedenheit":"Satisfaction","gauge.label.attraktivitaet":"Attractivit\xe9","gauge.label.engagement":"Engagement","invitations.tip_qr":"T\xe9l\xe9charger le PDF du code QR","invitations.tip_delete_survey":"Supprimer l'enqu\xeate","pulse.tip_extend":"Prolonger de 3 jours","pulse.tip_extend_max":"Dur\xe9e d\xe9j\xe0 prolong\xe9e de 3 jours","pulse.wizard.edit_title":"Modifier l'enqu\xeate","pulse.wizard.create_title":"Cr\xe9er une enqu\xeate","pulse.step.art":"Type d'enqu\xeate","pulse.step.branch":"Entreprise / succursale","pulse.step.label":"D\xe9signation","pulse.step.depts":"D\xe9partements","pulse.step.questions":"Questions","pulse.wizard.erhebungsart":"Type d'enqu\xeate","pulse.wizard.mode_einmalig":"Ponctuelle","pulse.wizard.mode_einmalig_desc":"Une seule enqu\xeate courte","pulse.wizard.mode_wiederkehrend":"R\xe9currente","pulse.wizard.mode_wiederkehrend_desc":"Barom\xe8tre d'ambiance selon un rythme","pulse.wizard.rhythmus_label":"Rythme","pulse.wizard.cadence_hint":"Fonctionne ind\xe9finiment jusqu'\xe0 ce que vous arr\xeatiez le barom\xe8tre. Pour chaque vague due, vous recevez un e-mail afin de pouvoir informer votre liste de diffusion.","pulse.wizard.branch_label":"S\xe9lectionnez l'entreprise / la succursale","pulse.wizard.title_label":"Nom de l'enqu\xeate","pulse.wizard.title_hint":"Champ obligatoire \u2013 affich\xe9 comme titre de la vignette d'enqu\xeate. Suggestion g\xe9n\xe9r\xe9e automatiquement, librement modifiable.","pulse.wizard.depts_label":"S\xe9lectionner les d\xe9partements","pulse.wizard.depts_hint":"Par d\xe9faut, tous les d\xe9partements de la succursale sont s\xe9lectionn\xe9s.","pulse.wizard.no_depts":"Aucun d\xe9partement dans cette succursale.","pulse.wizard.questions_label":"Questions","pulse.wizard.questions_upto":"(jusqu'\xe0 {max})","pulse.wizard.fragen_hint":"Choisissez des questions dans le catalogue de suggestions, cr\xe9ez vos propres questions ou s\xe9lectionnez un jeu de questions pr\xeat \xe0 l'emploi.","pulse.wizard.locked_set_hint":"Avec un jeu de questions pr\xeat \xe0 l'emploi, les questions incluses sont utilis\xe9es sans modification. Aucune autre question ne peut \xeatre ajout\xe9e ou adapt\xe9e.","pulse.wizard.locked_set_remove":"Retirer le jeu de questions","pulse.wizard.n_questions":"{n} questions","pulse.wizard.qtext_placeholder":"Texte de la question \u2026","pulse.wizard.type":"Type :","pulse.wizard.scale":"\xc9chelle :","pulse.wizard.option":"Option","pulse.wizard.no_questions_yet":"Aucune question ajout\xe9e pour le moment.","pulse.wizard.btn_own":"Question personnalis\xe9e","pulse.wizard.btn_catalog":"Choisir parmi les suggestions","pulse.wizard.btn_set":"Jeu de questions pr\xeat","pulse.wizard.sets_heading":"Jeux de questions pr\xe9d\xe9finis","pulse.wizard.sets_hint":"Un jeu remplace les questions actuelles. Vous pouvez ensuite tout ajuster librement.","pulse.wizard.no_sets":"Aucun jeu de questions disponible.","pulse.wizard.catalog_heading":"Catalogue de suggestions","pulse.wizard.badge_rating":"\xc9valuation","pulse.wizard.badge_open":"Ouverte","pulse.wizard.saving":"Enregistrement \u2026","pulse.wizard.creating":"Cr\xe9ation \u2026","pulse.wizard.save_changes":"Enregistrer les modifications","pulse.wizard.create":"Cr\xe9er l'enqu\xeate","pulse.type.likert":"Question d'\xe9valuation","pulse.type.yesno":"Oui / Non","pulse.type.choice":"Choix","pulse.type.open":"Texte libre","pulse.type.enps":"eNPS (0\u201310)","pulse.dialog.end_title":"Arr\xeater le barom\xe8tre d'ambiance ?","pulse.dialog.end_body":"Voulez-vous vraiment arr\xeater le barom\xe8tre {title} ? Aucune nouvelle vague ne sera alors g\xe9n\xe9r\xe9e. Les vagues d\xe9j\xe0 en cours et les analyses pr\xe9c\xe9dentes sont conserv\xe9es.","pulse.dialog.end_confirm":"Arr\xeater","pulse.dialog.complete_title":"Vraiment cl\xf4turer l'enqu\xeate ?","pulse.dialog.complete_body":"Voulez-vous vraiment cl\xf4turer l'enqu\xeate {label} ? Une r\xe9ouverture n'est pas possible. Vous trouverez ensuite les r\xe9sultats sous \xab R\xe9sultats \xbb.","pulse.dialog.complete_confirm":"Cl\xf4turer","pulse.dialog.delete_title":"Supprimer l'enqu\xeate ?","pulse.dialog.delete_body_active":"Lors de la suppression, toutes les informations ainsi que toutes les r\xe9ponses d\xe9j\xe0 soumises sont irr\xe9m\xe9diablement perdues. Si vous ne le souhaitez pas, annulez la suppression.","pulse.dialog.delete_body":"Lors de la suppression, toutes les informations sont irr\xe9m\xe9diablement perdues. Si vous ne le souhaitez pas, annulez la suppression.","pulse.dialog.delete_confirm":"Supprimer","pulse.dialog.started_title":"Enqu\xeate d\xe9marr\xe9e","pulse.dialog.started_body":"Votre enqu\xeate est maintenant active. Distribuez le lien de participation ou imprimez le PDF du code QR \u2013 sous forme de flyer (4 vignettes \xe0 d\xe9couper) ou d'affiche grand format (1 par page) pour l'affichage.","pulse.dialog.started_flyer":"Flyer (4 par page)","pulse.dialog.started_poster":"Affiche (1 par page)","pulse.dialog.started_copy":"Copier le lien de participation"},es:{"invitations.info.duration":"Duraci\xf3n de la encuesta","invitations.info.customq":"Preguntas adicionales","invitations.info.runsuntil":"Activa hasta","invitations.not_started":"no iniciada","invitations.section.vorbereitung":"Encuestas en preparaci\xf3n","invitations.section.aktiv":"Encuestas activas","invitations.empty.vorbereitung":"No hay encuestas en preparaci\xf3n.","invitations.empty.aktiv":"No hay encuestas activas.","invitations.complete.title":"\xbfSeguro que desea finalizar la encuesta?","invitations.complete.confirm":"Finalizar","
2invitations.start_dialog.title":"INICIAR encuesta","invitations.start_dialog.text":"\xbfDesea iniciar {label} ahora?","invitations.start_dialog.done_title":"Pr\xf3ximos pasos","invitations.start_dialog.done_text":"Ha iniciado {label} y encontrar\xe1 en su bandeja de entrada un correo con las instrucciones detalladas, un texto sugerido para el env\xedo a sus empleados y c\xf3digos QR preparados para imprimir y colgar.","invitations.start_dialog.done_fun":"\xa1Que disfrute de {label}!","invitations.start_dialog.qr_btn":"Folleto (4 por p\xe1gina)","invitations.start_dialog.qr_poster_btn":"Cartel (1 por p\xe1gina)","structure.readonly_badge":"Acceso de solo lectura","common.loading":"Cargando \u2026","common.loading_hint":"Espere un momento, por favor: los datos se est\xe1n cargando.","common.no_value":"Ning\xfan valor disponible.","common.no_data_short":"Sin datos.","common.no_data_available":"Sin datos disponibles.","common.gesamt":"Total","common.coming_soon_toast":"Esta funci\xf3n estar\xe1 disponible pronto.","common.survey":"Encuesta","common.no_free_text":"Sin respuestas de texto libre.","common.please_select":"Seleccione \u2026","common.close":"Cerrar","common.done_btn":"Listo","common.cancel":"Cancelar","result.zone.kritisch":"cr\xedtico","result.zone.moderat":"moderado","result.zone.exzellent":"excelente","result.likert0":"cr\xedtico","result.likert1":"d\xe9bil","result.likert2":"moderado","result.likert3":"bueno","result.likert4":"muy bueno","result.yes":"S\xed","result.no":"No","result.sentiment.positive":"positivo","result.sentiment.neutral":"neutral","result.sentiment.negative":"negativo","result.summary_creating":"Se est\xe1 generando el resumen con IA \u2026","result.no_summary_hint":"Se recibieron muy pocas respuestas para un resumen asistido por IA. Revise las declaraciones individuales.","result.hide_answers":"Ocultar respuestas individuales","result.show_all_answers":"Mostrar las {n} respuestas individuales","pulse.cadence.monthly":"Mensual","pulse.cadence.quarterly":"Trimestral","analytics_overview.title":"Resumen - PERSENTIS Analytics","analytics_overview.subtitle":"Estado actual de la fidelizaci\xf3n, el atractivo y el compromiso","analytics_overview.demo_banner":"Vista de demostraci\xf3n: se muestran datos de ejemplo. El cuestionario de Analytics y la evaluaci\xf3n real llegar\xe1n pr\xf3ximamente.","analytics_overview.nodata_banner":"A\xfan no hay datos de evaluaci\xf3n. En cuanto los primeros participantes respondan a una encuesta de Analytics, aqu\xed aparecer\xe1n los resultados.","analytics_overview.anon_title":"Protecci\xf3n del anonimato activada","analytics_overview.anon_text":"Para proteger el anonimato, las evaluaciones solo se muestran a partir de {min} respuestas v\xe1lidas. Actualmente hay {responses} respuestas v\xe1lidas.","analytics_overview.gesamt_heading":"Resultado global","analytics_overview.comparison_heading":"Resultados en comparaci\xf3n","analytics.tip_no_survey":"No se realiz\xf3 ninguna encuesta","analytics.tip_too_few":"Participaron muy pocos empleados","analytics_results.title":"Resultados - PERSENTIS Analytics","analytics_results.subtitle":"Encuestas completadas y sus resultados","analytics_results.section_completed":"Encuestas completadas","analytics.score_hint_suffix":"visible solo a partir de 5 participaciones v\xe1lidas (anonimato).","auswertungen.info.personal":"Respuestas personales","analytics.score.label":"ANALYTICS Score","analytics.back_to_results":"Volver a los resultados","analytics.stat.teilnehmer":"Participantes","analytics.stat.beteiligung":"Participaci\xf3n","analytics.stat.laufzeit":"Duraci\xf3n","analytics.stat.abgeschlossen":"Completado","analytics.stat.personal":"Respuestas personales","analytics.menu.allgemeines":"General","analytics.menu.bindungskraft":"Fuerza de fidelizaci\xf3n","analytics.menu.stresslevel":"Nivel de estr\xe9s","analytics.menu.enps":"eNPS","analytics.menu.attraktivitaet":"Atractivo","analytics.menu.arbeitgeberangebot":"Oferta del empleador","analytics.menu.orientierung":"Orientaci\xf3n","analytics.menu.engagement-zufriedenheit":"Compromiso y satisfacci\xf3n","analytics.menu.erfuellungsgrad":"Grado de cumplimiento","analytics.menu.top-argumente":"Argumentos principales","analytics.menu.standardfragen":"Preguntas est\xe1ndar","analytics.menu.spezialfragen":"Preguntas especiales","analytics.ez.engagement_label":"Compromiso","analytics.ez.zufriedenheit_label":"Satisfacci\xf3n","analytics.ez.compare_heading":"Compromiso VS Satisfacci\xf3n","analytics.ez.no_compare":"No hay texto de comparaci\xf3n disponible para la selecci\xf3n actual.","analytics.hint.erfuellungsgrad":"Seleccione el departamento deseado en el filtro para ver el GRADO DE CUMPLIMIENTO. No hay valores para el \xe1rea global.","analytics.hint.topargumente":"Seleccione el departamento deseado en el filtro para ver los ARGUMENTOS PRINCIPALES. No hay valores para el \xe1rea global.","analytics.tip_erfuellungsgrad":"El grado de cumplimiento compara, por subfactor, la oferta del empleador (en color) con la orientaci\xf3n/importancia (en gris, detr\xe1s). Si la barra gris sobresale de la de color, la oferta se queda por debajo de la importancia: cuanto mayor sea esta brecha, m\xe1s atenci\xf3n requiere el tema.","analytics.delta.over":"por encima del total","analytics.delta.under":"por debajo del total","analytics.delta.equal":"igual al total","analytics.enps.detractors":"Detractores","analytics.enps.indifferent":"Indiferentes","analytics.enps.promoters":"Promotores","analytics.enps.answers_short":"resp.","analytics.no_arguments":"No hay argumentos disponibles.","analytics.no_standard":"No hay preguntas est\xe1ndar.","analytics.no_special":"No hay preguntas especiales.","analytics.summary_of":"Resumen de {n} respuestas","analytics.summary_auto":"Generado autom\xe1ticamente \u2026","analytics.summary_none":"No hay resumen disponible.","analytics.details":"Detalles ({n})","analytics.no_answers":"Sin respuestas.","analytics.erf.tipps":"CONSEJOS","analytics.erf.tooltip":"El grado de cumplimiento para el tema {name} es {level}.","analytics.nav.expand":"Desplegar men\xfa","analytics.nav.collapse":"Plegar men\xfa","analytics.anon_
2inline.p1":"Para la selecci\xf3n actual no se muestran resultados por motivos de anonimato (solo a partir de ","analytics.anon_inline.p2":" empleados y ","analytics.anon_inline.p3":" respuestas). Elija los departamentos evaluables en el filtro de arriba.","analysis.tip_dept_locked":"Participaron muy pocos empleados de este departamento en la encuesta, por lo que no puede consultarse por motivos de anonimato. Las respuestas entregadas se tuvieron en cuenta en el c\xe1lculo global.","care.back_to_results":"Volver a los resultados","analysis.group.allgemeines":"General","analysis.group.ueberblick":"Resumen","analysis.group.gesamt":"PERSENTIS Care Index","analysis.group.verbundenheit":"Bienestar mental","analysis.group.dim-a":"Atractivo de las tareas","analysis.group.dim-b":"Calidad de las relaciones","analysis.group.wissenswertes":"Informaci\xf3n \xfatil","analysis.item.A01":"Ajuste y competencia","analysis.item.A02":"Atractivo del contenido y variedad","analysis.item.A03":"Sentido del trabajo","analysis.item.A04":"Retroalimentaci\xf3n constructiva","analysis.item.A05":"Oportunidades de desarrollo","analysis.item.B01":"Margen de acci\xf3n y decisi\xf3n","analysis.item.B02":"Disposici\xf3n a recomendar","analysis.item.B03":"Identificaci\xf3n con la organizaci\xf3n","analysis.item.B04":"Apoyo y confianza del responsable","analysis.item.B05":"Comunicaci\xf3n y transparencia de las decisiones","analysis.item.B06":"Relaci\xf3n con el responsable","analysis.item.B07":"Clima social y trato en la empresa","analysis.bar.wunsch":"Me gustar\xeda M\xc1S","analysis.bar.positiv":"Positivo","analysis.bar.negativ":"Negativo","analysis.bar.empty":"Sin datos.","analysis.sonstige.title":"Otra informaci\xf3n","analysis.feedback.title":"Comentarios abiertos","analysis.feedback.empty":"Sin comentarios abiertos.","analysis.feedback.details":"Detalles ({count})","analysis.legend.handlungsbedarf":"Necesita acci\xf3n","analysis.legend.moderat":"Moderado","analysis.legend.top":"M\xe1ximo rendimiento","analysis.stat.teilnehmer":"Participantes","analysis.stat.beteiligung":"Participaci\xf3n","analysis.stat.laufzeit":"Duraci\xf3n","analysis.stat.abgeschlossen":"Finalizado","analysis.stat.positiv":"Menciones positivas","analysis.stat.negativ":"Menciones cr\xedticas","analysis.overview.no_dept_data":"No hay datos de departamento disponibles.","analysis.overview.department":"Departamento","analysis.overview.quote":"Tasa de participaci\xf3n","analysis.overview.locked_row":"No es posible una visi\xf3n directa debido a la escasa participaci\xf3n.","analysis.overview.na":"n/d","analysis.sent.positive":"positivo","analysis.sent.negative":"negativo","analysis.sent.neutral":"neutral","analysis.no_result":"No hay resultado disponible.","analysis.summary.too_few":"Se recibieron muy pocas respuestas para un resumen asistido por IA. Por favor, revise las respuestas individuales.","analysis.summary.count":"Resumen de {count} respuestas","analysis.summary.title":"Resumen de las respuestas","analysis.summary.generating":"Se genera autom\xe1ticamente \u2026","analysis.summary.none":"No hay resumen disponible.","analysis.gauge.no_value":"No hay valor disponible.","analysis.section.placeholder":"El contenido de esta secci\xf3n estar\xe1 disponible en breve.","analysis.survey_fallback":"Encuesta","analysis.anon.locked_text":"Para la selecci\xf3n actual no se muestran resultados por motivos de anonimato (solo a partir de {min} empleados y {min} respuestas). Seleccione los departamentos analizables en el filtro de arriba.","analysis.nav.expand":"Desplegar men\xfa","analysis.nav.collapse":"Contraer men\xfa","onboarding.menu":"Configuraci\xf3n","onboarding.banner.title":"\xa1Bienvenido/a a PERSENTIS!","onboarding.banner.progress":"Configuraci\xf3n completada al {pct} %","onboarding.banner.continue":"Continuar la configuraci\xf3n","onboarding.banner.dismiss":"Ocultar","onboarding.title":"Configuraci\xf3n inicial","onboarding.subtitle":"Listo en pocos pasos","onboarding.step.profile":"Perfil","onboarding.step.departments":"Departamentos","onboarding.step.colleagues":"Colegas","onboarding.step.billing":"Facturaci\xf3n","onboarding.step.done":"Listo","onboarding.next":"Siguiente","onboarding.back":"Atr\xe1s","onboarding.skip":"Omitir paso","onboarding.finish":"Finalizar","onboarding.close"
2:"Hacerlo m\xe1s tarde","onboarding.saving":"Guardando \u2026","onboarding.profile.title":"Complete su perfil","onboarding.profile.desc":"Estos datos aparecen en los informes y las invitaciones.","onboarding.profile.firstName":"Nombre","onboarding.profile.lastName":"Apellidos","onboarding.profile.phone":"Tel\xe9fono","onboarding.profile.position":"Puesto / funci\xf3n","onboarding.profile.required":"Por favor, indique su nombre y apellidos.","onboarding.dept.title":"Cree sus departamentos","onboarding.dept.desc":"A\xf1ada los departamentos de su sede. Podr\xe1 a\xf1adir m\xe1s adelante.","onboarding.dept.name":"Nombre del departamento","onboarding.dept.headcount":"Empleados","onboarding.dept.add":"A\xf1adir departamento","onboarding.dept.existing":"Ya a\xf1adidos","onboarding.dept.empty":"A\xfan no hay departamentos a\xf1adidos.","onboarding.dept.suggestions":"Sugerencias","onboarding.dept.hint":"Consejo: podr\xe1 crear muchos departamentos m\xe1s adelante mediante importaci\xf3n de Excel.","onboarding.dept.added":"Departamento creado.","onboarding.coll.title":"Invite a colegas","onboarding.coll.desc":"Invite a responsables u otros administradores. Opcional \u2013 posible en cualquier momento.","onboarding.coll.name":"Nombre","onboarding.coll.email":"Correo","onboarding.coll.role":"Rol","onboarding.coll.role.manager":"Responsable","onboarding.coll.role.admin":"Administrador","onboarding.coll.invite":"Invitar","onboarding.coll.invited":"{count} invitado(s)","onboarding.coll.sent":"Invitaci\xf3n enviada.","onboarding.billing.title":"A\xf1adir direcci\xf3n de facturaci\xf3n","onboarding.billing.desc":"Para futuras facturas. Opcional \u2013 puede a\xf1adirlo m\xe1s tarde.","onboarding.billing.company":"Nombre de la empresa","onboarding.billing.address":"Direcci\xf3n de facturaci\xf3n","onboarding.billing.vat":"NIF/IVA","onboarding.billing.email":"Correo de facturaci\xf3n","onboarding.billing.contact":"Persona de contacto","onboarding.billing.saved":"Direcci\xf3n de facturaci\xf3n guardada.","onboarding.done.title":"\xa1Listo! Ya puede empezar.","onboarding.done.desc":"Aqu\xed encontrar\xe1 ayuda para sus pr\xf3ximos pasos:","onboarding.done.manual":"Manual","onboarding.done.manualText":"Gu\xedas y respuestas a preguntas frecuentes.","onboarding.done.support":"Soporte","onboarding.done.supportText":"Nuestro equipo responde en un plazo de 24 horas.","onboarding.done.activities":"Primera encuesta","onboarding.done.activitiesText":"Empiece ahora con Analytics, Pulse o Care.","onboarding.completed":"Configuraci\xf3n completada. \xa1Mucho \xe9xito!","nav.pulse.einmalig":"Puntual","nav.pulse.wiederkehrend":"Recurrente","auswertungen.info.teilnehmer":"Participantes","auswertungen.info.completed":"Completado","auswertungen.open":"Abrir resultados","auswertungen.export_pdf":"Exportar como PDF","auswertungen.section.completed":"Encuestas completadas","pulse.overview.title.wiederkehrend":"Recurrente \u2013 Resumen","pulse.overview.title.einmalig":"Puntual \u2013 Resumen","pulse.overview.subtitle.wiederkehrend":"Bar\xf3metro de \xe1nimo de un vistazo","pulse.overview.subtitle.einmalig":"Encuestas r\xe1pidas puntuales de un vistazo","pulse_overview.nodata_banner":"A\xfan no hay ninguna encuesta. En cuanto cree una encuesta de Pulse y participen los primeros participantes, aqu\xed aparecer\xe1n los resultados.","pulse.overview.recent.einmalig":"\xdaltimas encuestas","pulse.overview.recent.wiederkehrend":"\xdaltimos programas","pulse.overview.cta_all":"\u2026 a todos los resultados","pulse.kpi.programs":"Programas","pulse.kpi.waves":"Oleadas","pulse.kpi.score":"Valor de \xe1nimo medio","pulse.kpi.enps":"eNPS","pulse.kpi.rate":"Participaci\xf3n media","pulse.kpi.total":"Encuestas en total","pulse.kpi.active":"Activas","pulse.kpi.completed":"Completadas","pulse.kpi.responses":"Respuestas","pulse.info.questions":"Preguntas","pulse.program.rhythmus":"Ritmo","pulse.program.waves":"Oleadas hasta ahora","pulse.program.barometer_open":"Abrir bar\xf3metro","pulse.results.title.wiederkehrend":"Recurrente \u2013 Resultados","pulse.results.title.einmalig":"Puntual \u2013 Resultados","pulse.results.subtitle.wiederkehrend":"Evoluci\xf3n del bar\xf3metro de \xe1nimo (tendencia y eNPS)","pulse.results.subtitle.einmalig":"Encuestas r\xe1pidas completadas y sus resultados","pulse.results.section.laufend":"Encuestas en curso","pulse.results.section.beendet":"Encuestas finalizadas","pulse.empty.laufend":"No hay encuestas en curso.","pulse.empty.beendet":"No hay encuestas finalizadas.","pulse.anal
2ysis.not_found":"Evaluaci\xf3n no encontrada.","pulse.analysis.responses":"Respuestas","pulse.analysis.rate":"Participaci\xf3n media","pulse.analysis.questions":"Preguntas","pulse.analysis.anon_title":"Protecci\xf3n del anonimato activada","pulse.analysis.anon_text":"Hay menos de {min} respuestas. Para proteger el anonimato, no se muestran resultados detallados.","pulse.enps.score_label":"Puntuaci\xf3n eNPS","pulse.enps.promoters":"Promotores (9\u201310)","pulse.enps.passives":"Pasivos (7\u20138)","pulse.enps.detractors":"Detractores (0\u20136)","pulse.barometer.title_fallback":"Bar\xf3metro","pulse.barometer.dev_for":"Evoluci\xf3n de {title}","pulse.barometer.subtitle_fallback":"Bar\xf3metro de \xe1nimo a lo largo del tiempo","pulse.barometer.trend_error":"No se pudo cargar la tendencia.","pulse.barometer.empty":"A\xfan no hay oleadas evaluables (se requieren al menos {min} participantes por oleada).","pulse.barometer.measurement":"Medici\xf3n","pulse.barometer.development":"EVOLUCI\xd3N","pulse.barometer.measurements":"mediciones","pulse.barometer.click_hint":"Haga clic en el punto de medici\xf3n para ver la evaluaci\xf3n detallada de la ronda de encuesta.","pulse.barometer.single_eval":"Evaluaci\xf3n individual","pulse.barometer.answers_suffix":"respuestas","pulse.barometer.wave_locked":"Esta oleada no puede evaluarse por motivos de anonimato (al menos {min} participantes).","pulse.barometer.delta_over":"por encima del total","pulse.barometer.delta_under":"por debajo del total","pulse.barometer.delta_equal":"en el total","pulse.surveys.title.wiederkehrend":"Recurrente \u2013 Encuestas","pulse.surveys.title.einmalig":"Puntual \u2013 Encuestas","pulse.surveys.subtitle.wiederkehrend":"Crear y gestionar bar\xf3metros de \xe1nimo","pulse.surveys.subtitle.einmalig":"Crear y gestionar encuestas r\xe1pidas puntuales","pulse.sub.vorbereitung":"En preparaci\xf3n","pulse.sub.aktiv":"Encuesta activa","invitations.create":"Crear encuesta","invitations.close":"Cerrar encuesta","invitations.start":"Iniciar encuesta","invitations.info.created":"Creada el","invitations.info.participants":"Participantes","pulse.info.repetitions":"Repeticiones","pulse.info.ends_at":"Vigente hasta","pulse.empty.rec_vorb":"No hay encuestas recurrentes en preparaci\xf3n.","pulse.empty.rec_aktiv":"No hay encuestas recurrentes activas.","pulse.empty.ein_vorb":"No hay encuestas puntuales en preparaci\xf3n.","pulse.empty.ein_aktiv":"No hay encuestas puntuales activas.","pulse.rec_aktiv.hint_pre":"Las encuestas recurrentes activas ya se encuentran en el ","pulse.rec_aktiv.hint_link":"men\xfa Resultados","pulse.rec_aktiv.hint_post":".","pulse.trend.enps_label":"eNPS por oleada (\u2212100 \u2026 +100)","pulse.trend.score_label":"Valor de \xe1nimo por oleada","invitations.tip_edit":"Editar","invitations.tip_preview":"Abrir vista previa","invitations.tip_delete":"Eliminar","invitations.tip_copylink":"Copiar enlace de la encuesta","invitations.tip_extend":"Prolongar 1 semana","invitations.tip_extend_max":"Ya prolongado 2\xd7","comparison.hint":"Seleccione los/las {unit} que desee para comparar directamente las cifras globales. La columna TOTAL sirve de referencia.","comparison.unit_departments":"Departamentos","comparison.unit_branches":"Sucursales","comparison.col_total":"TOTAL","comparison.col_reference":"Referencia","comparison.answers_suffix":"respuestas","comparison.tip_select_all":"Seleccionar todo","comparison.tip_reset":"Restablecer selecci\xf3n","comparison.tip_reset_group":"Restablecer","comparison.tip_over":"por encima del total","comparison.tip_under":"por debajo del total","comparison.tip_equal":"igual al total","comparison.tip_no_survey":"No se realiz\xf3 ninguna encuesta","comparison.tip_few":"Participaron muy pocos empleados","comparison.tip_locked":"Bloqueado (< 5)","comparison.row.employer_indicator":"ANALYTICS Score","comparison.row.bindungskraft":"Fuerza de fidelizaci\xf3n","comparison.row.stress":"Nivel de estr\xe9s","comparison.row.enps":"eNPS","comparison.row.attraktivitaet":"Atractivo","comparison.row.zufriedenheit":"Satisfacci\xf3n","comparison.row.engagement":"Compromiso","comparison.row.overall":"CARE Score","comparison.row.GEN":"Bienestar mental","comparison.row.A":"Atractivo de las tareas","comparison.row.B":"Calidad de las relaciones","wizard.title_edit":"Editar encuesta","wizard.title_create":"Crear encuesta","wizard.step.0":"Empresa / sucursal","wizard.step.1":"Denominaci\xf3n","wizard.step.2":"Departamentos","wizard.step.3":"Duraci\xf3n","wizard.step.4"
2:"Preguntas adicionales","wizard.step0.label":"Seleccione la empresa / sucursal","wizard.select_placeholder":"Seleccione \u2026","wizard.step1.label":"Nombre de la encuesta","wizard.step1.note":"Campo obligatorio: se muestra como t\xedtulo de la tarjeta de la encuesta. La propuesta se genera autom\xe1ticamente y se puede modificar libremente.","wizard.step2.label":"Seleccionar departamentos","wizard.step2.hint":"De forma predeterminada, se seleccionan todos los departamentos de la sucursal.","wizard.step2.empty":"No hay departamentos en esta sucursal.","wizard.unit_ma":"empl.","wizard.step3.label":"Duraci\xf3n a partir de la recepci\xf3n de la primera respuesta","wizard.step3.unit":"d\xedas (predeterminado: 14)","wizard.step3.hint":"La duraci\xf3n puede prolongarse posteriormente hasta dos veces, una semana cada vez.","wizard.step4.label":"Preguntas adicionales","wizard.optional":"opcional","wizard.step4.hint":"Hasta {max} preguntas propias. Aparecen justo despu\xe9s de la introducci\xf3n. Las preguntas de valoraci\xf3n reciben autom\xe1ticamente una escala adecuada (ajustable).","wizard.cq_placeholder":"Pregunta \u2026","wizard.type_rating":"Pregunta de valoraci\xf3n","wizard.type_open":"Pregunta abierta","wizard.cq_empty":"A\xfan no se han a\xf1adido preguntas adicionales.","wizard.btn_own":"Pregunta propia","wizard.btn_picker":"Elegir entre las propuestas","wizard.picker_title":"Cat\xe1logo de propuestas","wizard.picker_done":"Listo","wizard.badge_vorschlag":"Propuesta","wizard.badge_wertung":"Valoraci\xf3n","wizard.badge_offen":"Abierta","wizard.saving":"Guardando \u2026","wizard.creating":"Creando \u2026","common.save_changes":"Guardar cambios","profile.language":"Idioma","gauge.label.employer_indicator":"ANALYTICS Score","gauge.label.bindungskraft":"Fuerza de fidelizaci\xf3n","gauge.label.stress":"Nivel de estr\xe9s","gauge.label.enps":"eNPS","gauge.label.zufriedenheit":"Satisfacci\xf3n","gauge.label.attraktivitaet":"Atractivo","gauge.label.engagement":"Compromiso","invitations.tip_qr":"Descargar PDF del c\xf3digo QR","invitations.tip_delete_survey":"Eliminar encuesta","pulse.tip_extend":"Prolongar 3 d\xedas","pulse.tip_extend_max":"Duraci\xf3n ya prolongada 3 d\xedas","pulse.wizard.edit_title":"Editar encuesta","pulse.wizard.create_title":"Crear encuesta","pulse.step.art":"Tipo de encuesta","pulse.step.branch":"Empresa / sucursal","pulse.step.label":"Denominaci\xf3n","pulse.step.depts":"Departamentos","pulse.step.questions":"Preguntas","pulse.wizard.erhebungsart":"Tipo de encuesta","pulse.wizard.mode_einmalig":"Puntual","pulse.wizard.mode_einmalig_desc":"Una \xfanica encuesta breve","pulse.wizard.mode_wiederkehrend":"Recurrente","pulse.wizard.mode_wiederkehrend_desc":"Bar\xf3metro de \xe1nimo con un ritmo","pulse.wizard.rhythmus_label":"Ritmo","pulse.wizard.cadence_hint":"Se ejecuta indefinidamente hasta que finalice el bar\xf3metro. En cada oleada correspondiente recibe un correo electr\xf3nico para poder informar a su lista de distribuci\xf3n.","pulse.wizard.branch_label":"Seleccione empresa / sucursal","pulse.wizard.title_label":"Nombre de la encuesta","pulse.wizard.title_hint":"Campo obligatorio: se muestra como t\xedtulo de la tarjeta de la encuesta. Sugerencia generada autom\xe1ticamente, libremente ajustable.","pulse.wizard.depts_label":"Seleccionar departamentos","pulse.wizard.depts_hint":"De forma predeterminada, se seleccionan todos los departamentos de la sucursal.","pulse.wizard.no_depts":"No hay departamentos en esta sucursal.","pulse.wizard.questions_label":"Preguntas","pulse.wizard.questions_upto":"(hasta {max})","pulse.wizard.fragen_hint":"Elija preguntas del cat\xe1logo de sugerencias, cree sus propias preguntas o seleccione un conjunto de preguntas ya preparado.","pulse.wizard.locked_set_hint":"Con un conjunto de preguntas preparado, las preguntas incluidas se utilizan sin cambios. No se pueden a\xf1adir ni ajustar m\xe1s preguntas.","pulse.wizard.locked_set_remove":"Quitar conjunto de preguntas","pulse.wizard.n_questions":"{n} preguntas","pulse.wizard.qtext_placeholder":"Texto de la pregunta \u2026","pulse.wizard.type":"Tipo:","pulse.wizard.scale":"Escala:","pulse.wizard.option":"Opci\xf3n","pulse.wizard.no_questions_yet":"A\xfan no se han a\xf1adido preguntas.","pulse.wizard.btn_own":"Pregunta propia","pulse.wizard.btn_catalog":"Elegir de las sugerencias","pulse.wizard.btn_set":"Conjunto de preguntas listo","pulse.wizard.sets_heading":"Conjuntos de preguntas predefinidos","pulse.wizard.sets_hint":"Un conjunto reemplaza las preguntas actuales. Despu\xe9s puede ajustarlo todo libremente.","pulse.wizard.no_sets":"No hay conjuntos de preguntas disponibles.","pulse.wizard.catalog_heading":"Cat\xe1logo de sugerencias","pulse.wizard.badge_rating":"Valoraci\xf3n","pulse.wizard.badge_open":"Abierta","pulse.wizard.saving":"Guardando \u2026","pulse.wizard.creating":"Creando \u2026","pulse.wizard.save_changes":"Guardar cambios","pulse.wizard.create":"Crear encuesta","pulse.type.likert":"Pregunta de valoraci\xf3n","pulse.type.yesno":"S\xed / No","pulse.type.choice":"Selecci\xf3n","pulse.type.open":"Texto libre","pulse.type.enps":"eNPS (0\u201310)","pulse.dialog.end_title":"\xbfFinalizar el bar\xf3metro de \xe1nimo?","pulse.dialog.end_body":"\xbfDesea finalizar realmente el bar\xf3metro {title}? Entonces no se generar\xe1n m\xe1s oleadas. Las oleadas ya en curso y las evaluaciones anteriores se conservan.","pulse.dialog.end_confirm":"Finalizar","pulse.dialog.complete_title":"\xbfCerrar realmente la encuesta?","pulse.dialog.complete_body":"\xbfDesea cerrar realmente la encuesta {label}? No es posible reabrirla. Despu\xe9s encontrar\xe1 los resultados en \xabResultados\xbb.","pulse.dialog.complete_confirm":"Cerrar","pulse.dialog.delete_title":"\xbfEliminar encuesta?","pulse.dialog.delete_body_active":"Al eliminar, se pierden de forma irreversible toda la informaci\xf3n y todas las respuestas ya enviadas. Si no lo desea, cancele la eliminaci\xf3n.","pulse.dialog.delete_body":"Al eliminar, se pierde de forma irreversible toda la informaci\xf3n. Si no lo desea, cancele la eliminaci\xf3n.","pulse.dialog.delete_confirm":"Eliminar","pulse.dialog.started_title":"Encuesta iniciada","pulse.dialog.started_body":"Su encuesta ya est\xe1 activa. Distribuya el enlace de participaci\xf3n o imprima el PDF del c\xf3digo QR, como folleto (4 recuadros para recortar) o cartel de gran formato (1 por p\xe1gina) para colgar.","pulse.dialog.started_flyer":"Folleto (4 por p\xe1gina)","pulse.dialog.started_poster":"Cartel (1 por p\xe1gina)","pulse.dialog.started_copy":"Copiar enlace de participaci\xf3n"},it:{"invitations.info.duration":"Durata del sondaggio","invitations.info.customq":"Domande aggiuntive","
2invitations.info.runsuntil":"Attivo fino al","invitations.not_started":"non avviato","invitations.section.vorbereitung":"Sondaggi in preparazione","invitations.section.aktiv":"Sondaggi attivi","invitations.empty.vorbereitung":"Nessun sondaggio in preparazione.","invitations.empty.aktiv":"Nessun sondaggio attivo.","invitations.complete.title":"Concludere davvero il sondaggio?","invitations.complete.confirm":"Concludi","invitations.start_dialog.title":"AVVIA sondaggio","invitations.start_dialog.text":"Desidera avviare {label} ora?","invitations.start_dialog.done_title":"Prossimi passi","invitations.start_dialog.done_text":"Ha avviato {label} e trover\xe0 nella sua casella di posta un'e-mail con le istruzioni dettagliate, un testo proposto per l'invio ai suoi collaboratori e codici QR pronti da stampare e affiggere.","invitations.start_dialog.done_fun":"Buon divertimento con {label}.","invitations.start_dialog.qr_btn":"Volantino (4 per pagina)","invitations.start_dialog.qr_poster_btn":"Poster (1 per pagina)","structure.readonly_badge":"Accesso in sola lettura","common.loading":"Caricamento \u2026","common.loading_hint":"Attenda un momento \u2013 i dati vengono caricati.","common.no_value":"Nessun valore disponibile.","common.no_data_short":"Nessun dato.","common.no_data_available":"Nessun dato disponibile.","common.gesamt":"Totale","common.coming_soon_toast":"Questa funzione sar\xe0 presto disponibile.","common.survey":"Sondaggio","common.no_free_text":"Nessuna risposta a testo libero.","common.please_select":"Seleziona \u2026","common.close":"Chiudi","common.done_btn":"Fatto","common.cancel":"Annulla","result.zone.kritisch":"critico","result.zone.moderat":"moderato","result.zone.exzellent":"eccellente","result.likert0":"critico","result.likert1":"debole","result.likert2":"moderato","result.likert3":"buono","result.likert4":"molto buono","result.yes":"S\xec","result.no":"No","result.sentiment.positive":"positivo","result.sentiment.neutral":"neutro","result.sentiment.negative":"negativo","result.summary_creating":"Il riepilogo IA \xe8 in fase di creazione \u2026","result.no_summary_hint":"Sono state ricevute troppo poche risposte per un riepilogo basato sull'IA. Verifichi le singole affermazioni.","result.hide_answers":"Nascondi le singole risposte","result.show_all_answers":"Mostra tutte le {n} singole risposte","pulse.cadence.monthly":"Mensile","pulse.cadence.quarterly":"Trimestrale","analytics_overview.title":"Panoramica - PERSENTIS Analytics","analytics_overview.subtitle":"Stato attuale di fidelizzazione, attrattivit\xe0 e coinvolgimento","analytics_overview.demo_banner":"Vista demo \u2013 vengono mostrati dati di esempio. Il questionario Analytics e la valutazione reale seguiranno.","analytics_overview.nodata_banner":"Ancora nessun dato di valutazione. Non appena i primi partecipanti avranno risposto a un sondaggio Analytics, qui compariranno i risultati.","analytics_overview.anon_title":"Protezione dell'anonimato attiva","analytics_overview.anon_text":"Per proteggere l'anonimato, le valutazioni vengono mostrate solo a partire da {min} risposte valide. Attualmente sono presenti {responses} risposte valide.","analytics_overview.gesamt_heading":"Risultato complessivo","analytics_overview.comparison_heading":"Risultati a confronto","analytics.tip_no_survey":"Nessun sondaggio effettuato","analytics.tip_too_few":"Hanno partecipato troppo pochi dipendenti","analytics_results.title":"Risultati - PERSENTIS Analytics","analytics_results.subtitle":"Sondaggi completati e relativi risultati","analytics_results.section_completed":"Sondaggi completati","analytics.score_hint_suffix":"visibile solo a partire da 5 partecipazioni valide (anonimato).","auswertungen.info.personal":"Risposte personali","analytics.score.label":"ANALYTICS Score","analytics.back_to_results":"Torna ai risultati","analytics.stat.teilnehmer":"Partecipanti","analytics.stat.beteiligung":"Partecipazione","analytics.stat.laufzeit":"Durata","analytics.stat.abgeschlossen":"Completato","analytics.stat.personal":"Risposte personali","analytics.menu.allgemeines":"Generale","analytics.menu.bindungskraft":"Forza di fidelizzazione","analytics.menu.stresslevel":"Livello di stress","analytics.menu.enps":"eNPS","analytics.menu.attraktivitaet":"Attrattivit\xe0","analytics.menu.arbeitgeberangebot":"Offerta del datore di lavoro","analytics.menu.orientierung":"Orientamento","analytics.menu.engagement-zufriedenheit":"Coinvolgimento e soddisfazione","analytics.menu.erfuellungsgrad":"Grado di soddisfazione","analytics.menu.top-argumente":"Argomenti principali","analytics.menu.standardfragen":"Domande standard","analytics.menu.spezialfragen":"Domande speciali","analytics.ez.engagement_label":"Coinvolgimento","analytics.ez.zufriedenheit_label":"Soddisfazione","analytics.ez.compare_heading":"Coinvolgimento VS Soddisfazione","analytics.ez.no_compare":"Per la selezione attuale non \xe8 disponibile alcun testo di confronto.","analytics.hint.erfuellungsgrad":"Selezioni il reparto de
2siderato nel filtro per consultare il GRADO DI SODDISFAZIONE. Per l'area complessiva non ci sono valori.","analytics.hint.topargumente":"Selezioni il reparto desiderato nel filtro per consultare gli ARGOMENTI PRINCIPALI. Per l'area complessiva non ci sono valori.","analytics.tip_erfuellungsgrad":"Il grado di soddisfazione confronta, per ciascun sottofattore, l'offerta del datore di lavoro (a colori) con l'orientamento/importanza (grigio, dietro). Se la barra grigia supera quella colorata, l'offerta resta al di sotto dell'importanza: maggiore \xe8 questo divario, pi\xf9 attenzione richiede il tema.","analytics.delta.over":"sopra il totale","analytics.delta.under":"sotto il totale","analytics.delta.equal":"pari al totale","analytics.enps.detractors":"Detrattori","analytics.enps.indifferent":"Indifferenti","analytics.enps.promoters":"Promotori","analytics.enps.answers_short":"risp.","analytics.no_arguments":"Nessun argomento disponibile.","analytics.no_standard":"Nessuna domanda standard.","analytics.no_special":"Nessuna domanda speciale.","analytics.summary_of":"Riepilogo di {n} risposte","analytics.summary_auto":"Generato automaticamente \u2026","analytics.summary_none":"Nessun riepilogo disponibile.","analytics.details":"Dettagli ({n})","analytics.no_answers":"Nessuna risposta.","analytics.erf.tipps":"CONSIGLI","analytics.erf.tooltip":"Il grado di soddisfazione per il tema {name} \xe8 {level}.","analytics.nav.expand":"Espandi menu","analytics.nav.collapse":"Comprimi menu","analytics.anon_inline.p1":"Per la selezione attuale non vengono mostrati risultati per motivi di anonimato (solo a partire da ","analytics.anon_inline.p2":" dipendenti e ","analytics.anon_inline.p3":" risposte). Scelga i reparti valutabili nel filtro in alto.","analysis.tip_dept_locked":"Hanno partecipato troppo pochi dipendenti di questo reparto al sondaggio, pertanto non \xe8 consultabile per motivi di anonimato. Le risposte fornite sono state considerate nel calcolo complessivo.","care.back_to_results":"Torna ai risultati","analysis.group.allgemeines":"Generale","analysis.group.ueberblick":"Panoramica","analysis.group.gesamt":"PERSENTIS Care Index","analysis.group.verbundenheit":"Benessere mentale","analysis.group.dim-a":"Attrattivit\xe0 delle mansioni","analysis.group.dim-b":"Qualit\xe0 delle relazioni","analysis.group.wissenswertes":"Da sapere","analysis.item.A01":"Adeguatezza e competenza","analysis.item.A02":"Attrattivit\xe0 dei contenuti e variet\xe0","analysis.item.A03":"Significato del lavoro","analysis.item.A04":"Feedback costruttivo","analysis.item.A05":"Opportunit\xe0 di sviluppo","analysis.item.B01":"Autonomia e margine d'azione","analysis.item.B02":"Propensione a raccomandare","analysis.item.B03":"Identificazione con l'organizzazione","analysis.item.B04":"Supporto e fiducia del responsabile","analysis.item.B05":"Comunicazione e trasparenza delle decisioni","analysis.item.B06":"Rapporto con il responsabile","analysis.item.B07":"Clima sociale e rapporti in azienda","analysis.bar.wunsch":"Vorrei DI PI\xd9","analysis.bar.positiv":"Positivo","analysis.bar.negativ":"Negativo","analysis.bar.empty":"Nessun dato.","analysis.sonstige.title":"Altre informazioni","analysis.feedback.title":"Feedback aperto","analysis.feedback.empty":"Nessun feedback aperto.","analysis.feedback.details":"Dettagli ({count})","analysis.legend.handlungsbedarf":"Intervento necessario","analysis.legend.moderat":"Moderato","analysis.legend.top":"Prestazione ottimale","analysis.stat.teilnehmer":"Partecipanti","analysis.stat.beteiligung":"Partecipazione","analysis.stat.laufzeit":"Durata","analysis.stat.abgeschlossen":"Completato","analysis.stat.positiv":"Menzioni positive","analysis.stat.negativ":"Menzioni critiche","analysis.overview.no_dept_data":"Nessun dato di reparto disponibile.","analysis.overview.department":"Reparto","analysis.overview.quote":"Tasso di partecipazione","analysis.overview.locked_row":"Visione diretta non possibile a causa della partecipazione insufficiente.","analysis.overview.na":"n/d","analysis.sent.positive":"positivo","analysis.sent.negative":"negativo","analysis.sent.neutral":"neutro","analysis.no_result":"Nessun risultato disponibile.","analysis.summary.too_few":"Sono state ricevute troppo poche risposte per una sintesi basata sull'IA. Si prega di consultare le singole affermazioni.","analysis.summary.count":"Sintesi di {count} risposte","analysis.summary.title":"Sintesi delle risposte","analysis.summary.generating":"Generazione automatica in corso \u2026","analysis.summary.none":"Nessuna sintesi disponibile.","analysis.gauge.no_value":"Nessun valore disponibile.","analysis.section.placeholder":"Il contenuto di questa sezione sar\xe0 presto disponibile.","analysis.survey_fallback":"Sondaggio","analysis.anon.locked_text":"Per la selezione attuale non vengono mostrati risultati per motivi di anonimato (solo a partire da {min} dipendenti e {min} risposte). Selezionare i reparti analizzabili nel filtro in alto.","analysis.nav.expand":"Espandi menu","analysis.nav.collapse":"Comprimi menu","onboarding.menu":"Configurazione","onboarding.banner.title":"Benvenuto/a in PERSENTIS!","onboarding.banner.progress":"Configurazione completata al {pct} %","onboarding.banner.continue":"Continua la configurazione","onboarding.banner.dismiss":"Nascondi","onboarding.title":"Configurazione iniziale","onboarding.subtitle":"Pronto in pochi passaggi","onboarding.step.profile":"Profilo","onboarding.step.departments":"Reparti","onboarding.step.colleagues":"Colleghi","onboarding.step.billing":"Fatturazione","onboarding.step.done":"Fatto","onboarding.next":"Avanti","onboarding.back":"Indietro","onboarding.skip":"Salta passaggio","onboarding.finish":"Completa","onboarding.close"
2:"Pi\xf9 tardi","onboarding.saving":"Salvataggio \u2026","onboarding.profile.title":"Completi il suo profilo","onboarding.profile.desc":"Questi dati compaiono nei report e negli inviti.","onboarding.profile.firstName":"Nome","onboarding.profile.lastName":"Cognome","onboarding.profile.phone":"Telefono","onboarding.profile.position":"Posizione / funzione","onboarding.profile.required":"Inserisca nome e cognome.","onboarding.dept.title":"Crei i suoi reparti","onboarding.dept.desc":"Aggiunga i reparti della sua sede. Potr\xe0 aggiungerne altri in seguito.","onboarding.dept.name":"Nome del reparto","onboarding.dept.headcount":"Dipendenti","onboarding.dept.add":"Aggiungi reparto","onboarding.dept.existing":"Gi\xe0 creati","onboarding.dept.empty":"Ancora nessun reparto creato.","onboarding.dept.suggestions":"Suggerimenti","onboarding.dept.hint":"Suggerimento: potr\xe0 creare molti reparti in seguito tramite importazione Excel.","onboarding.dept.added":"Reparto creato.","onboarding.coll.title":"Inviti i colleghi","onboarding.coll.desc":"Inviti responsabili o altri amministratori. Facoltativo \u2013 possibile in qualsiasi momento.","onboarding.coll.name":"Nome","onboarding.coll.email":"E-mail","onboarding.coll.role":"Ruolo","onboarding.coll.role.manager":"Responsabile","onboarding.coll.role.admin":"Amministratore","onboarding.coll.invite":"Invita","onboarding.coll.invited":"{count} invitato/i","onboarding.coll.sent":"Invito inviato.","onboarding.billing.title":"Aggiungi indirizzo di fatturazione","onboarding.billing.desc":"Per le fatture future. Facoltativo \u2013 pu\xf2 aggiungerlo in seguito.","onboarding.billing.company":"Nome dell'azienda","onboarding.billing.address":"Indirizzo di fatturazione","onboarding.billing.vat":"Partita IVA","onboarding.billing.email":"E-mail di fatturazione","onboarding.billing.contact":"Persona di contatto","onboarding.billing.saved":"Indirizzo di fatturazione salvato.","onboarding.done.title":"Fatto! \xc8 tutto pronto.","onboarding.done.desc":"Qui trova supporto per i prossimi passi:","onboarding.done.manual":"Manuale","onboarding.done.manualText":"Guide e risposte alle domande frequenti.","onboarding.done.support":"Assistenza","onboarding.done.supportText":"Il nostro team risponde entro 24 ore.","onboarding.done.activities":"Primo sondaggio","onboarding.done.activitiesText":"Inizi subito con Analytics, Pulse o Care.","onboarding.completed":"Configurazione completata. In bocca al lupo!","nav.pulse.einmalig":"Una tantum","nav.pulse.wiederkehrend":"Ricorrente","auswertungen.info.teilnehmer":"Partecipanti","auswertungen.info.completed":"Completato","auswertungen.open":"Apri risultati","auswertungen.export_pdf":"Esporta come PDF","auswertungen.section.completed":"Sondaggi completati","pulse.overview.title.wiederkehrend":"Ricorrente \u2013 Panoramica","pulse.overview.title.einmalig":"Singolo \u2013 Panoramica","pulse.overview.subtitle.wiederkehrend":"Barometro del clima a colpo d'occhio","pulse.overview.subtitle.einmalig":"Sondaggi rapidi singoli a colpo d'occhio","pulse_overview.nodata_banner":"Ancora nessun sondaggio. Non appena creer\xe0 un sondaggio Pulse e i primi partecipanti avranno risposto, qui compariranno i risultati.","pulse.overview.recent.einmalig":"Ultimi sondaggi","pulse.overview.recent.wiederkehrend":"Ultimi programmi","pulse.overview.cta_all":"\u2026 a tutti i risultati","pulse.kpi.programs":"Programmi","pulse.kpi.waves":"Ondate","pulse.kpi.score":"Valore clima medio","pulse.kpi.enps":"eNPS","pulse.kpi.rate":"Partecipazione media","pulse.kpi.total":"Sondaggi totali","pulse.kpi.active":"Attivi","pulse.kpi.completed":"Completati","pulse.kpi.responses":"Risposte","pulse.info.questions":"Domande","pulse.program.rhythmus":"Ritmo","pulse.program.waves":"Ondate finora","pulse.program.barometer_open":"Apri barometro","pulse.results.title.wiederkehrend":"Ricorrente \u2013 Risultati","pulse.results.title.einmalig":"Singolo \u2013 Risultati","pulse.results.subtitle.wiederkehrend":"Andamenti del barometro del clima (trend & eNPS)","pulse.results.subtitle.einmalig":"Sondaggi rapidi completati e relativi risultati","pulse.results.section.laufend":"Sondaggi in corso","pulse.results.section.beendet":"Sondaggi conclusi","pulse.empty.laufend":"Nessun sondaggio in corso.","pulse.empty.beendet":"Nessun sondaggio concluso.","pulse.anal
2ysis.not_found":"Valutazione non trovata.","pulse.analysis.responses":"Risposte","pulse.analysis.rate":"Partecipazione media","pulse.analysis.questions":"Domande","pulse.analysis.anon_title":"Protezione dell'anonimato attiva","pulse.analysis.anon_text":"Sono presenti meno di {min} risposte. Per proteggere l'anonimato non vengono mostrati risultati dettagliati.","pulse.enps.score_label":"Punteggio eNPS","pulse.enps.promoters":"Promotori (9\u201310)","pulse.enps.passives":"Passivi (7\u20138)","pulse.enps.detractors":"Detrattori (0\u20136)","pulse.barometer.title_fallback":"Barometro","pulse.barometer.dev_for":"Andamento per {title}","pulse.barometer.subtitle_fallback":"Barometro del clima nel tempo","pulse.barometer.trend_error":"Impossibile caricare il trend.","pulse.barometer.empty":"Ancora nessuna ondata valutabile (sono necessari almeno {min} partecipanti per ondata).","pulse.barometer.measurement":"Misurazione","pulse.barometer.development":"ANDAMENTO","pulse.barometer.measurements":"misurazioni","pulse.barometer.click_hint":"Faccia clic sul punto di misurazione per vedere la valutazione dettagliata del ciclo di sondaggio.","pulse.barometer.single_eval":"Valutazione singola","pulse.barometer.answers_suffix":"risposte","pulse.barometer.wave_locked":"Questa ondata non \xe8 valutabile per motivi di anonimato (almeno {min} partecipanti).","pulse.barometer.delta_over":"sopra il totale","pulse.barometer.delta_under":"sotto il totale","pulse.barometer.delta_equal":"nel totale","pulse.surveys.title.wiederkehrend":"Ricorrente \u2013 Sondaggi","pulse.surveys.title.einmalig":"Singolo \u2013 Sondaggi","pulse.surveys.subtitle.wiederkehrend":"Creare e gestire barometri del clima","pulse.surveys.subtitle.einmalig":"Creare e gestire sondaggi rapidi singoli","pulse.sub.vorbereitung":"In preparazione","pulse.sub.aktiv":"Sondaggio attivo","invitations.create":"Crea sondaggio","invitations.close":"Chiudi sondaggio","invitations.start":"Avvia sondaggio","invitations.info.created":"Creato il","invitations.info.participants":"Partecipanti","pulse.info.repetitions":"Ripetizioni","pulse.info.ends_at":"Valido fino al","pulse.empty.rec_vorb":"Nessun sondaggio ricorrente in preparazione.","pulse.empty.rec_aktiv":"Nessun sondaggio ricorrente attivo.","pulse.empty.ein_vorb":"Nessun sondaggio singolo in preparazione.","pulse.empty.ein_aktiv":"Nessun sondaggio singolo attivo.","pulse.rec_aktiv.hint_pre":"I sondaggi ricorrenti attivi si trovano gi\xe0 nella ","pulse.rec_aktiv.hint_link":"voce di menu Risultati","pulse.rec_aktiv.hint_post":".","pulse.trend.enps_label":"eNPS per ondata (\u2212100 \u2026 +100)","pulse.trend.score_label":"Valore clima per ondata","invitations.tip_edit":"Modifica","invitations.tip_preview":"Apri anteprima","invitations.tip_delete":"Elimina","invitations.tip_copylink":"Copia il link del sondaggio","invitations.tip_extend":"Prolunga di 1 settimana","invitations.tip_extend_max":"Gi\xe0 prolungato 2\xd7","comparison.hint":"Seleziona i/le {unit} desiderati per confrontare direttamente i valori complessivi. La colonna TOTALE funge da riferimento.","comparison.unit_departments":"Reparti","comparison.unit_branches":"Filiali","comparison.col_total":"TOTALE","comparison.col_reference":"Riferimento","comparison.answers_suffix":"risposte","comparison.tip_select_all":"Seleziona tutto","comparison.tip_reset":"Reimposta selezione","comparison.tip_reset_group":"Reimposta","comparison.tip_over":"sopra il totale","comparison.tip_under":"sotto il totale","comparison.tip_equal":"pari al totale","comparison.tip_no_survey":"Nessun sondaggio effettuato","comparison.tip_few":"Hanno partecipato troppo pochi dipendenti","comparison.tip_locked":"Bloccato (< 5)","comparison.row.employer_indicator":"ANALYTICS Score","comparison.row.bindungskraft":"Forza di fidelizzazione","comparison.row.stress":"Livello di stress","comparison.row.enps":"eNPS","comparison.row.attraktivitaet":"Attrattivit\xe0","comparison.row.zufriedenheit":"Soddisfazione","comparison.row.engagement":"Coinvolgimento","comparison.row.overall":"CARE Score","comparison.row.GEN":"Benessere mentale","comparison.row.A":"Attrattivit\xe0 dei compiti","comparison.row.B":"Qualit\xe0 relazionale","wizard.title_edit":"Modifica s
2ondaggio","wizard.title_create":"Crea sondaggio","wizard.step.0":"Azienda / filiale","wizard.step.1":"Denominazione","wizard.step.2":"Reparti","wizard.step.3":"Durata","wizard.step.4":"Domande aggiuntive","wizard.step0.label":"Seleziona l'azienda / la filiale","wizard.select_placeholder":"Seleziona \u2026","wizard.step1.label":"Nome del sondaggio","wizard.step1.note":"Campo obbligatorio: viene mostrato come titolo della scheda del sondaggio. La proposta viene generata automaticamente ed \xe8 liberamente modificabile.","wizard.step2.label":"Seleziona i reparti","wizard.step2.hint":"Per impostazione predefinita sono selezionati tutti i reparti della filiale.","wizard.step2.empty":"Nessun reparto in questa filiale.","wizard.unit_ma":"dip.","wizard.step3.label":"Durata a partire dalla ricezione della prima risposta","wizard.step3.unit":"giorni (predefinito: 14)","wizard.step3.hint":"La durata pu\xf2 essere prolungata in seguito fino a due volte, di una settimana ciascuna.","wizard.step4.label":"Domande aggiuntive","wizard.optional":"facoltativo","wizard.step4.hint":"Fino a {max} domande personalizzate. Compaiono subito dopo l'introduzione. Le domande di valutazione ricevono automaticamente una scala adatta (modificabile).","wizard.cq_placeholder":"Domanda \u2026","wizard.type_rating":"Domanda di valutazione","wizard.type_open":"Domanda aperta","wizard.cq_empty":"Nessuna domanda aggiuntiva ancora aggiunta.","wizard.btn_own":"Domanda propria","wizard.btn_picker":"Scegli tra le proposte","wizard.picker_title":"Catalogo di proposte","wizard.picker_done":"Fatto","wizard.badge_vorschlag":"Proposta","wizard.badge_wertung":"Valutazione","wizard.badge_offen":"Aperta","wizard.saving":"Salvataggio \u2026","wizard.creating":"Creazione \u2026","common.save_changes":"Salva modifiche","profile.language":"Lingua","gauge.label.employer_indicator":"ANALYTICS Score","gauge.label.bindungskraft":"Forza di fidelizzazione","gauge.label.stress":"Livello di stress","gauge.label.enps":"eNPS","gauge.label.zufriedenheit":"Soddisfazione","gauge.label.attraktivitaet":"Attrattivit\xe0","gauge.label.engagement":"Coinvolgimento","invitations.tip_qr":"Scarica il PDF del codice QR","invitations.tip_delete_survey":"Elimina sondaggio","pulse.tip_extend":"Prolunga di 3 giorni","pulse.tip_extend_max":"Durata gi\xe0 prolungata di 3 giorni","pulse.wizard.edit_title":"Modifica sondaggio","pulse.wizard.create_title":"Crea sondaggio","pulse.step.art":"Tipo di rilevazione","pulse.step.branch":"Azienda / filiale","pulse.step.label":"Denominazione","pulse.step.depts":"Reparti","pulse.step.questions":"Domande","pulse.wizard.erhebungsart":"Tipo di rilevazione","pulse.wizard.mode_einmalig":"Singolo","pulse.wizard.mode_einmalig_desc":"Un singolo sondaggio breve","pulse.wizard.mode_wiederkehrend":"Ricorrente","pulse.wizard.mode_wiederkehrend_desc":"Barometro del clima con un ritmo","pulse.wizard.rhythmus_label":"Ritmo","pulse.wizard.cadence_hint":"Prosegue a tempo indeterminato finch\xe9 non termina il barometro. Per ogni ondata prevista riceve un'e-mail per poter informare la Sua lista di distribuzione.","pulse.wizard.branch_label":"Selezioni azienda / filiale","pulse.wizard.title_label":"Nome del sondaggio","pulse.wizard.title_hint":"Campo obbligatorio: mostrato come titolo della scheda del sondaggio. Suggerimento generato automaticamente, liberamente modificabile.","pulse.wizard.depts_label":"Seleziona i reparti","pulse.wizard.depts_hint":"Per impostazione predefinita sono selezionati tutti i reparti della filiale.","pulse.wizard.no_depts":"Nessun reparto in questa filiale.","pulse.wizard.questions_label":"Domande","pulse.wizard.questions_upto":"(fino a {max})","pulse.wizard.fragen_hint":"Scelga le domande dal catalogo dei suggerimenti, crei domande proprie oppure selezioni un set di domande gi\xe0 pronto.","pulse.wizard.locked_set_hint":"Con un set di domande gi\xe0 pronto, le domande incluse vengono utilizzate senza modifiche. Non \xe8 possibile aggiungere o adattare altre domande.","pulse.wizard.locked_set_remove":"Rimuovi il set di domande","pulse.wizard.n_questions":"{n} domande","pulse.wizard.qtext_placeholder":"Testo della domanda \u2026","pulse.wizard.type":"Tipo:","pulse.wizard.scale":"Scala:","pulse.wizard.option":"Opzione","pulse.wizard.no_questions_yet":"Ancora nessuna domanda aggiunta.","pulse.wizard.btn_own":"Domanda propria","pulse.wizard.btn_catalog":"Scegli dai suggerimenti","pulse.wizard.btn_set":"Set di domande pronto","pulse.wizard.sets_heading":"Set di domande predefiniti","pulse.wizard.sets_hint":"Un set sostituisce le domande attuali. Successivamente pu\xf2 adattare tutto liberamente.","pulse.wizard.no_sets":"Nessun set di domande disponibile.","pulse.wizard.catalog_heading":"Catalogo dei suggerimenti","pulse.wizard.badge_rating":"Valutazione","pulse.wizard.badge_open":"Aperta","pulse.wizard.saving":"Salvataggio \u2026","pulse.wizard.creating":"Creazione \u2026","pulse.wizard.save_changes":"Salva le modifiche","pulse.wizard.create":"Crea sondaggio","pulse.type.likert":"Domanda di valutazione","pulse.type.yesno":"S\xec / No","pulse.type.choice":"Scelta","pulse.type.open":"Testo libero","pulse.type.enps":"eNPS (0\u201310)","pulse.dialog.end_title":"Terminare il barometro del clima?","pulse.dialog.end_body":"Vuole davvero terminare il barometro {title}? Non verranno pi\xf9 generate nuove ondate. Le ondate gi\xe0 in corso e le valutazioni precedenti restano invariate.","pulse.dialog.end_confirm":"Termina","pulse.dialog.complete_title":"Concludere davvero il sondaggio?","pulse.dialog.complete_body":"Vuole davvero concludere il sondaggio {label}? Una riapertura non \xe8 possibile. Successivamente trover\xe0 i risultati sotto \xabRisultati\xbb.","pulse.dialog.complete_confirm":"Concludi","pulse.dialog.delete_title":"Eliminare il sondaggio?","pulse.dialog.delete_body_active":"Con l'eliminazione andranno perse irrimediabilmente tutte le informazioni e tutte le risposte gi\xe0 inviate. Se non lo desidera, annulli l'eliminazione.","pulse.dialog.delete_body":"Con l'eliminazione andranno perse irrimediabilmente tutte le informazioni. Se non lo desidera, annulli l'eliminazione.","pulse.dialog.delete_confirm":"Elimina","pulse.dialog.started_title":"Sondaggio avviato","pulse.dialog.started_body":"Il Suo sondaggio \xe8 ora attivo. Distribuisca il link di partecipazione o stampi il PDF del codice QR \u2013 come volantino (4 riquadri da ritagliare) o come poster di grande formato (1 per pagina) da affiggere.","pulse.dialog.started_flyer":"Volantino (4 per pagina)","pulse.dialog.started_poster":"Poster
2(1 per pagina)","pulse.dialog.started_copy":"Copia il link di partecipazione"}},Ka={fr:{"app.tagline":"Plateforme d'analyse RH","nav.products":"Produits","nav.care":"Care","nav.analytics":"Analytics","nav.profiling":"Profiling","nav.boarding":"Boarding","nav.soon":"Bient\xf4t disponible","nav.dashboard":"Aper\xe7u","nav.structure":"Entreprises & d\xe9partements","nav.invitations":"Enqu\xeates","nav.auswertungen":"R\xe9sultats","nav.users":"Gestion des utilisateurs","nav.settings":"Param\xe8tres","user.account":"Utilisateur","user.billing":"Plan & factures","user.manual":"Manuel","user.logout":"Se d\xe9connecter","user.profile":"Profil","user.activities":"Activit\xe9s","profile.title":"Profil","profile.subtitle":"Informations classiques d\u2019identification de la personne","profile.salutation":"Civilit\xe9","profile.firstName":"Pr\xe9nom","profile.lastName":"Nom","profile.birthDate":"Date de naissance","profile.email":"E-mail","profile.phone":"T\xe9l\xe9phone","profile.street":"Rue & n\xb0","profile.zip":"Code postal","profile.city":"Ville","profile.country":"Pays","profile.company":"Entreprise","profile.position":"Poste / fonction","profile.language":"Langue","profile.website":"Site web","profile.uid":"UID","profile.sectionOwner":"Propri\xe9taire du compte","profile.sectionCompany":"Informations sur l\u2019entreprise","profile.changePhoto":"Modifier la photo de profil","profile.removePhoto":"Supprimer la photo de profil","profile.emailModalTitle":"Confirmation de l\u2019e-mail requise","profile.emailModalText":"Votre adresse e-mail a \xe9t\xe9 modifi\xe9e. Votre compte ne sera de nouveau accessible qu\u2019une fois que vous aurez confirm\xe9 l\u2019e-mail de confirmation.","profile.understood":"Compris","activities.title":"Activit\xe9s","activities.subtitle":"Derni\xe8res activit\xe9s de votre compte","activities.empty":"Aucune activit\xe9 pour le moment.","toast.photoChanged":"Photo de profil modifi\xe9e","toast.profileSaved":"Profil enregistr\xe9","login.title":"Se connecter","login.subtitle":"Bienvenue \xe0 nouveau chez PERSENTIS","login.email":"E-mail","login.password":"Mot de passe","login.submit":"Se connecter","dashboard.title":"Vue d\u2019ensemble - PERSENTIS Care","dashboard.subtitle":"Vue d\u2019ensemble pertinente pour la direction de tous les d\xe9partements","dashboard.allDepts":"TOTAL","dashboard.selectDept":"Choisir un d\xe9partement","dashboard.participation":"Taux de participation","dashboard.responses":"R\xe9ponses","dashboard.exportPdf":"Rapport PDF","dashboard.positive":"Aspects positifs","dashboard.negative":"Aspects n\xe9gatifs","dashboard.feedback":"Feedback ouvert","dashboard.noData":"Aucune r\xe9ponse pour le moment","dashboard.sample":"\xc9chantillon","dashboard.department":"D\xe9partement","dashboard.overall":"Total","dashboard.overallParticipation":"Participation totale","overview.kpiSurveys":"Enqu\xeates","overview.kpiResponses":"R\xe9ponses","overview.kpiParticipants":"Participants","overview.kpiParticipation":"Participation","overview.active":"actif","overview.completed":"termin\xe9","overview.metaTitle":"R\xe9sultats globaux","overview.vsPrev":"vs enqu\xeate pr\xe9c\xe9dente","overview.noTrend":"Aucune donn\xe9e de comparaison (au moins 2 enqu\xeates termin\xe9es n\xe9cessaires)","overview.improvements":"Principales am\xe9liorations","overview.declines":"Principales d\xe9gradations","overview.noneYet":"Aucune \xe9volution pour le moment","overview.ranking":"Vue d\u2019ensemble des d\xe9partements","overview.locked":"Verrouill\xe9 (< 5)","overview.lockNoSurvey":"Aucune enqu\xeate r\xe9alis\xe9e","overview.lockFewParticipants":"Trop peu de collaborateurs ont particip\xe9","overview.openAnalysis":"Voir la derni\xe8re analyse de ce d\xe9partement","structure.title":"Entreprises & d\xe9partements","structure.subtitle":"G\xe9rer les entreprises, les succursales et les d\xe9partements","structure.firmen":"Entreprises","structure.firmaName":"Nom de l\u2019entreprise","structure.noFirmen":"Aucune entreprise cr\xe9\xe9e pour le moment","structure.selectFirma":"S\xe9lectionnez une entreprise pour voir les succursales","structure.filialen":"Succursales","structure.filialeName":"Nom de la succursale","structure.noFilialen":"Aucune succursale cr\xe9\xe9e pour le moment","structure.selectFiliale":"S\xe9lectionnez une succursale pour voir les d\xe9partements","structure.confirmDelFirma":"Supprimer l\u2019entreprise avec toutes les succursales et tous les d\xe9partements ?","structure.branches":"Entreprises","structure.addBranch":"Ajouter une entreprise","structure.branchName":"Nom de l\u2019entreprise","structure.departments":"D\xe9partements","structure.addDept":"Ajouter un d\xe9partement","structure.deptName":"Nom du d\xe9partement","structure.headcount":"Nombre de collaborateurs","structure.visible":"Visible dans le tableau de bord","
2structure.selectBranch":"S\xe9lectionnez une entreprise pour voir les d\xe9partements","structure.noBranches":"Aucune entreprise cr\xe9\xe9e pour le moment","invitations.title":"Enqu\xeates - PERSENTIS Care","invitations.subtitle":"Liens d\u2019enqu\xeate anonymes et codes QR par entreprise","invitations.company":"Entreprise","invitations.create":"Cr\xe9er une enqu\xeate","invitations.label":"Libell\xe9 (optionnel)","invitations.link":"Lien d\u2019enqu\xeate","invitations.copy":"Copier","invitations.copied":"Copi\xe9 !","invitations.open":"Ouvrir l\u2019enqu\xeate","invitations.qr":"Code QR","invitations.none":"Aucune invitation pour le moment","users.title":"Gestion des utilisateurs","users.subtitle":"Utilisateurs, r\xf4les et acc\xe8s au compte","users.add":"Ajouter un utilisateur","users.name":"Nom","users.role":"R\xf4le","users.dept":"D\xe9partement","users.impersonate":"Connexion au compte","settings.title":"Param\xe8tres (Super Admin)","settings.subtitle":"Seuils et textes d\u2019affichage","settings.thresholds":"Seuils (jauge)","settings.thresholdsHint":"Prot\xe9g\xe9 \u2013 r\xe9serv\xe9 au Super Admin. Valeurs de 0 \xe0 100.","settings.texts":"Textes d\u2019affichage","settings.red":"Rouge jusqu\u2019\xe0","settings.orange":"Orange jusqu\u2019\xe0","settings.heading":"Titre","settings.description":"Description","settings.saved":"Enregistr\xe9","billing.title":"Plan et factures","billing.placeholder":"Les paiements seront activ\xe9s plus tard (Stripe). Actuellement, espace r\xe9serv\xe9.","billing.invoiceAddress":"Adresse de facturation","manual.title":"Manuel","manual.placeholder":"Le manuel sera bient\xf4t disponible.","common.save":"Enregistrer","common.cancel":"Annuler","common.create":"Cr\xe9er","common.delete":"Supprimer","common.loading":"Chargement \u2026","common.actions":"Actions","common.comingSoon":"Fonction disponible plus tard","guide.end":"Terminer le guide","guide.progress":"\xc9tape {n}/{total}","guide.prev":"Retour","guide.next":"Suivant","guide.finish":"Termin\xe9","guide.later":"D\xe9marrer le guide plus tard","guide.seg.analytics.desc":"Enqu\xeates collaborateurs approfondies et r\xe9sultats","guide.seg.pulse.desc":"Barom\xe8tre d\u2019humeur et sondages rapides","guide.seg.care.desc":"Bien-\xeatre mental au sein de l\u2019\xe9quipe","guide.seg.all.label":"Tout afficher","guide.seg.all.desc":"La visite compl\xe8te de tous les modules","guide.bar.activate":"Activer","guide.bar.deactivate":"D\xe9sactiver","guide.bar.questions":"Des questions ?","guide.bar.questionsShort":"Questions ?"},es:{"app.tagline":"Plataforma de anal\xedtica de RR. HH.","nav.products":"Productos","nav.care":"Care","nav.analytics":"Analytics","nav.profiling":"Profiling","nav.boarding":"Boarding","nav.soon":"Disponible pronto","nav.dashboard":"Resumen","nav.structure":"Empresas y departamentos","nav.invitations":"Encuestas","nav.auswertungen":"Resultados","nav.users":"Gesti\xf3n de usuarios","nav.settings":"Configuraci\xf3n","user.account":"Usuario","user.billing":"Plan y facturas","user.manual":"Manual","user.logout":"Cerrar sesi\xf3n","user.profile":"Perfil","user.activities":"Actividades","profile.title":"Perfil","profile.subtitle":"Datos cl\xe1sicos para la identificaci\xf3n de la persona","profile.salutation":"Tratamiento","profile.firstName":"Nombre","profile.lastName":"Apellido","profile.birthDate":"Fecha de nacimiento","profile.email":"Correo electr\xf3nico","profile.phone":"Tel\xe9fono","profile.street":"Calle y n.\xba","profile.zip":"C\xf3digo postal","profile.city":"Ciudad","profile.country":"Pa\xeds","profile.company":"Empresa","profile.position":"Cargo / Funci\xf3n","profile.language":"Idioma","profile.website":"Sitio web","profile.uid":"UID","profile.sectionOwner":"Propietario de la cuenta","profile.sectionCompany":"Datos de la empresa","profile.changePhoto":"Cambiar foto de perfil","profile.removePhoto":"Eliminar foto de perfil","profile.emailModalTitle":"Se requiere confirmaci\xf3n de correo electr\xf3nico","profile.emailModalText":"Su direcci\xf3n de correo electr\xf3nico ha sido modificada. Solo podr\xe1 volver a acceder a su cuenta una vez que haya confirmado el correo electr\xf3nico de confirmaci\xf3n.","profile.understood":"Entendido","activities.title":"Actividades","activities.subtitle":"\xdaltimas actividades de su cuenta","activities.empty":"Todav\xeda n
2o hay actividades.","toast.photoChanged":"Foto de perfil modificada","toast.profileSaved":"Perfil guardado","login.title":"Iniciar sesi\xf3n","login.subtitle":"Bienvenido de nuevo a PERSENTIS","login.email":"Correo electr\xf3nico","login.password":"Contrase\xf1a","login.submit":"Iniciar sesi\xf3n","dashboard.title":"Resumen - PERSENTIS Care","dashboard.subtitle":"Resumen relevante para la direcci\xf3n de todos los departamentos","dashboard.allDepts":"TOTAL","dashboard.selectDept":"Seleccionar departamento","dashboard.participation":"Tasa de participaci\xf3n","dashboard.responses":"Respuestas","dashboard.exportPdf":"Informe PDF","dashboard.positive":"Aspectos positivos","dashboard.negative":"Aspectos negativos","dashboard.feedback":"Comentarios abiertos","dashboard.noData":"Todav\xeda no hay respuestas","dashboard.sample":"Muestra","dashboard.department":"Departamento","dashboard.overall":"Total","dashboard.overallParticipation":"Participaci\xf3n total","overview.kpiSurveys":"Encuestas","overview.kpiResponses":"Respuestas","overview.kpiParticipants":"Participantes","overview.kpiParticipation":"Participaci\xf3n","overview.active":"activo","overview.completed":"completado","overview.metaTitle":"Resultados generales","overview.vsPrev":"vs. encuesta anterior","overview.noTrend":"No hay datos comparativos (se necesitan al menos 2 encuestas completadas)","overview.improvements":"Mayores mejoras","overview.declines":"Mayores descensos","overview.noneYet":"Todav\xeda no hay cambios","overview.ranking":"Resumen de departamentos","overview.locked":"Bloqueado (< 5)","overview.lockNoSurvey":"No se realiz\xf3 ninguna encuesta","overview.lockFewParticipants":"Han participado muy pocos empleados","overview.openAnalysis":"Ir al \xfaltimo an\xe1lisis de este departamento","structure.title":"Empresas y departamentos","structure.subtitle":"Gestionar empresas, sucursales y departamentos","structure.firmen":"Empresas","structure.firmaName":"Nombre de la empresa","structure.noFirmen":"A\xfan no se han creado empresas","structure.selectFirma":"Seleccione una empresa para ver las sucursales","structure.filialen":"Sucursales","structure.filialeName":"Nombre de la sucursal","structure.noFilialen":"A\xfan no se han creado sucursales","structure.selectFiliale":"Seleccione una sucursal para ver los departamentos","structure.confirmDelFirma":"\xbfEliminar la empresa junto con todas las sucursales y departamentos?","structure.branches":"Empresas","structure.addBranch":"A\xf1adir empresa","structure.branchName":"Nombre de la empresa","structure.departments":"Departamentos","structure.addDept":"A\xf1adir departamento","structure.deptName":"Nombre del departamento","structure.headcount":"N\xfamero de empleados","structure.visible":"Visible en el panel","structure.selectBranch":"Seleccione una empresa para ver los departamentos","structure.noBranches":"A\xfan no se han creado empresas","invitations.title":"Encuestas - PERSENTIS Care","invitations.subtitle":"Enlaces de encuesta an\xf3nimos y c\xf3digos QR por empresa","invitations.company":"Empresa","invitations.create":"Crear encuesta","invitations.label":"Denominaci\xf3n (opcional)","invitations.link":"Enlace de la encuesta","invitations.copy":"Copiar","invitations.copied":"\xa1Copiado!","invitations.open":"Abrir encuesta","invitations.qr":"C\xf3digo QR","invitations.none":"A\xfan no hay invitaciones","users.title":"Gesti\xf3n de usuarios","users.subtitle":"Usuarios, roles y acceso a la cuenta","users.add":"A\xf1adir usuario","users.name":"Nombre","users.role":"Rol","users.dept":"Departamento","users.impersonate":"Acceso a la cuenta","settings.title":"Configuraci\xf3n (superadministrador)","settings.subtitle":"Umbrales y textos de visualizaci\xf3n","settings.thresholds":"Umbrales (veloc\xedmetro)","settings.thresholdsHint":"Protegido: solo para superadministradores. Valores 0\u2013100.","settings.texts":"Textos de visualizaci\xf3n","settings.red":"Rojo hasta","settings.orange":"Naranja hasta","settings.heading":"Encabezado","settings.description":"Descripci\xf3n","settings.saved":"Guardado","billing.title":"Plan y facturas","billing.placeholder":"Los pagos se activar\xe1n m\xe1s adelante (Stripe). Actualmente es un marcador de posici\xf3n.","billing.invoiceAddress":"Direcci\xf3n de facturaci\xf3n","manual.title":"Manual","manual.placeholder":"El manual estar\xe1 disponible en breve.","common.save":"Guardar","common.cancel":"Cancelar","common.create":"Crear","common.delete":"Eliminar","common.loading":"Cargando \u2026","common.actions":"Acciones","common.comingSoon":"La funci\xf3n estar\xe1 disponible m\xe1s adelante","guide.end":"Finalizar gu\xeda","guide.progress":"Paso {n}/{total}","guide.prev":"Atr\xe1s","guide.next":"Siguiente","guide.finish":"Listo","guide.later":"Iniciar gu\xeda m\xe1s tarde","guide.seg.analytics.desc":"Encuestas de empleados fundamentadas y resultados","guide.seg.pulse.desc":"Bar\xf3metro de estado de \xe1nimo y encuestas breves","guide.seg.care.desc":"Bienestar mental en el equipo","guide.seg.all.label":"Mostrar todo","guide.seg.all.desc":"El recorrido completo por todos los m\xf3dulos","guide.bar.activate":"Activar","guide.bar.deactivate":"Desactivar","guide.bar.questions":"\xbfA\xfan tiene preguntas?","guide.bar.questionsShort":"\xbfPreguntas?"},it:{"app.tagline":"Piattaforma di HR Analytics","nav.products":"Prodotti","nav.care":"Care","nav.analytics":"Analytics","nav.profiling":"Profiling","nav.boarding":"Boarding","nav.soon":"Presto disponibile","nav.dashboard":"Panoramica","nav.structure":"Aziende e reparti","nav.invitations":"Sondaggi","nav.auswertungen":"Risultati","nav.users":"Gestione utenti","nav.settings":"Impostazioni","user.account":"Utente","user.billing":"Piano e fatture","user.manual":"Manuale","user.logout":"Disconnettersi","user.profile":"Profilo","user.activities":"Attivit\xe0","profile.title":"Profilo","profile.subtitle":"Dati classici per l'identificazione della persona","profile.salutation":"Titolo","profile.firstName":"Nome","profile.lastName":"Cognome","profile.birthDate":"Data di nascita","profile.email":"E-mail","profile.phone":"Telefono","profile.street":"Via e n.","profile.zip":"CAP","profile.city":"Citt\xe0","profile.country":"Paese","profile.company":"Azienda","profile.position":"Posizione / Funzione","profile.language":"Lingua","profile.website":"Sito web","profile.uid":"UID","profile.sectionOwner":"Proprietario dell'account","profile.sectionCompany":"Dati aziendali","profile.changePhoto":"Cambiare immagine del profilo","profile.removePhoto":"Rimuovere immagine del profilo","profile.emailModalTitle":"Conferma dell'e-mail richiesta","profile.emailModalText":"Il Suo indirizzo e-mail \xe8 stato modificato. Il Suo account sar\xe0 nuovamente accessibile solo dopo aver confermato l'e-mail di verifica.","profile.understood":"Ho capito","activities.title":"Attivit\xe0","activities.subtitle":"Ultime attivit\xe0 del Suo account","activities.empty":"Nessuna attivit\xe0 presente finora.","toast.photoChanged":"Immagine del profilo modificata","toast.profileSaved":"Profilo salvato","login.title":"Accedi","login.subtitle":"Bentornato su PERSENTIS","login.email":"E-mail","login.password":"Password","login.submit":"Accedi","dashboard.title":"Panoramica - PERSENTIS Care","dashboard.subtitle":"Panoramica rilevante per la leadership di tutti i reparti","dashboard.allDepts":"TOTALE","dashboard.selectDept":"Seleziona reparto","dashboard.participation":"Tasso di partecipazione","dashboard.responses":"Risposte","dashboard.exportPdf":"Report PDF","dashboard.positive":"Aspetti positivi","dashboard.negative":"Aspetti negativi","dashboard.feedback":"Feedback aperto","dashboard.noData":"Ancora nessuna risposta","dashboard.sample":"Campione","dashboard.department":"Reparto","dashboard.overall":"Totale","dashboard.overallParticipation":"Partecipazione totale","overview.kpiSurveys":"Sondaggi","overview.kpiResponses":"Risposte","overview.kpiParticipants":"Partecipanti","overview.kpiParticipation":"Partecipazione","overview.active":"attivo","overview.completed":"completato","overview.metaTitle":"Risultati complessivi","overview.vsPrev":"vs. sondaggio precedente","overview.noTrend":"Nessun dato di confronto (sono necessari almeno 2 sondaggi completati)","overview.improvements":"Principali miglioramenti","overview.declines":"Principali peggioramenti","overview.noneYet":"Ancora nessuna variazione","overview.ranking":"Panoramica dei reparti","overview.locked":"Bloccato (< 5)","overview.lockNoSurvey":"Nessun sondaggio effettuato","overview.lockFewParticipants":"Hanno partecipato troppo pochi collaboratori","overview.openAnalysis":"All'ultima analisi di questo reparto","structure.title":"Aziende e reparti","structure.subtitle":"Gestire aziende, filiali e reparti","structure.firmen":"Aziende","structure.firmaName":"Nome dell'azienda","structure.noFirmen":"Nessuna azienda ancora creata","structure.selectFirma":"Selezioni un'azienda per vedere le filiali","structure.filialen":"Filiali","structure.filialeName":"Nome della filiale","structure.noFilialen":"Nessuna filiale ancora creata","structure.selectFiliale":"Selezioni una filiale per vedere i reparti","structure.confirmDelFirma":"Eliminare l'azienda incluse tutte le filiali e i reparti?","structure.branches":"Aziende","structure.addBranch":"Aggiungi azienda","structure.branchName":"Nome dell'azienda","structure.departments":"Reparti","structure.addDept":"Aggiungi reparto","structure.deptName":"Nome del reparto","structure.headcount":"Numero di collaboratori","structure.visible":"Visibile nella dashboard","structure.selectBranch":"Selezioni un'azienda per vedere i reparti","structure.noBranches":"Nessuna azienda ancora creata","invitations.title":"Sondaggi - PERSENTIS Care","invitations.subtitle":"Link anonimi al sondaggio e codici QR per ogni azienda","invitations.company":"Azienda","invitations.create":"Crea sondaggio","invitations.label":"Denominazione (opzionale)","invitations.link":"Link al sondaggio","invitations.copy":"Copia","invitations.copied":"Copiato!","invitations.open":"Apri sondaggio","invitations.qr":"Codice QR","invitations.none":"Nessun invito ancora creato","users.title":"Gestione utenti","users.subtitle":"Utenti, ruoli e accesso all'account","users.add":"Aggiungi utente","users.name":"Nome","users.role":"Ruolo","users.dept":"Reparto","users.impersonate":"Accesso all'account","settings.title":"Impostazioni (Super Admin)","settings.subtitle":"Valori soglia e testi visualizzati","settings.thresholds":"Valori soglia (tachimetro)","settings.thresholdsHint":"Protetto \u2013 solo per Super Admin. Valori 0\u2013100.","settings.texts":"Testi visualizzati","settings.red":"Rosso fino a","settings.orange":"Arancione fino a","settings.heading":"Titolo","settings.description":"Descrizione","settings.saved":"Salvato","billing.title":"Piano e fatture","billing.placeholder":"I pagamenti saranno attivati pi\xf9 tardi (Stripe). Attualmente segnaposto.","billing.invoiceAddress":"Indirizzo di fatturazione","manual.title":"Manuale","manual.placeholder":"Il manuale sar\xe0 disponibile a breve.","common.save":"Salvare","common.cancel":"Annullare","common.create":"Creare","common.delete":"Eliminare","common.loading":"Caricamento in corso \u2026","common.actions":"Azioni","common.comingSoon":"Funzione disponibile pi\xf9 tardi","guide.end":"Terminare la guida","guide.progress":"Passo {n}/{total}","guide.prev":"Indietro","guide.next":"Avanti","guide.finish":"Fine","guide.later":"Avviare la guida pi\xf9 tardi","guide.seg.analytics.desc":"Sondaggi tra i dipendenti e risultati approfonditi","guide.seg.pulse.desc":"Barometro dell'umore e sondaggi brevi","guide.seg.care.desc":"Benessere mentale nel team","guide.seg.all.label":"Mostrare tutto","guide.seg.all.desc":"Il tour completo di tutti i moduli","guide.bar.activate":"Attivare","guide.bar.deactivate":"Disattivare","guide.bar.questions":"Ha ancora domande?","guide.bar.questionsShort":"Domande?"}},Ga=[{code:"de",name:"Deutsch"},{code:"en",name:"English"},{code:"fr",name:"Fran\xe7ais"},{code:"es",name:"Espa\xf1ol"},{code:"it",name:"Italiano"}],Za={de:d(d(d({},{"app.tagline":"HR-Analytics-Plattform","nav.products":"Produkte","nav.care":"Care","nav.analytics":"Analytics","nav.profiling":"Profiling","nav.boarding":"Boarding","nav.soon":"Bald verf\xfcgbar","nav.dashboard":"\xdcberblick","nav.structure":"Firmen & Abteilungen","nav.invitations":"Umfragen","nav.auswertungen":"Ergebnisse","nav.users":"Nutzerverwaltung","nav.settings":"Einstellungen","user.account":"Benutzer","user.billing":"Plan & Rechnungen","user.manual":"Handbuch","user.logout":"Abmelden","user.profile":"Profil","user.activities":"Aktivit\xe4ten","profile.title":"Profil","profile.subtitle":"Klassische Angaben zur Personenidentifikation","profile.salutation":"Anrede","profile.firstName":"Vorname","profile.lastName":"Nachname","profile.birthDate":"Geburtsdatum","profile.email":"E-Mail","profile.phone":"Telefon","profile.street":"Stra\xdfe & Nr.","profile.zip":"PLZ","profile.city":"Ort","profile.country":"Land","profile.company":"Unternehmen","profile.position":"Position / Funktion","profile.language":"Sprache","profile.website":"Website","profile.uid":"UID","profile.sectionOwner":"Kontoeigent\xfcmer","profile.sectionCompany":"Unternehmensangaben","profile.changePhoto":"Profilbild \xe4ndern","profile.removePhoto":"Profilbild entfernen","profile.emailModalTitle":"E-Mail-Best\xe4tigung erforderlich","profile.emailModalText":"Ihre E-Mail-Adresse wurde ge\xe4ndert. Ihr Konto ist erst wieder aufrufbar, sobald Sie die Best\xe4tigungs-E-Mail best\xe4tigt haben.","profile.understood":"Verstanden","activities.title":"Aktivit\xe4ten","activities.subtitle":"Letzte Aktivit\xe4ten Ihres Kontos","activities.empty":"Noch keine Aktivit\xe4ten vorhanden.","toast.photoChanged":"Profilbild ge\xe4ndert","toast.profileSaved":"Profil gespeichert","login.title":"Anmelden","login.subtitle":"Willkommen zur\xfcck bei PERSENTIS","login.email":"E-Mail","login.password":"Passwort","login.submit":"Anmelden","login.forgot":"Passwort vergessen?","login.no_account":"Noch kein Konto?","login.register":"Jetzt registrieren","dashboard.title":"\xdcberblick - PERSENTIS Care","dashboard.subtitle":"F\xfchrungsrelevanter \xdcberblick \xfcber alle Abteilungen","dashboard.allDepts":"GESAMT","dashboard.selectDept":"Abteilung w\xe4hlen","dashboard.participation":"Teilnahmequote","dashboard.responses":"Antworten","dashboard.exportPdf":"PDF-Report","dashboard.positive":"Positive Aspekte","dashboard.negative":"Negative Aspekte","dashboard.feedback":"Offenes Feedback","dashboard.noData":"Noch keine Antworten","dashboard.sample":"Stichprobe","dashboard.department":"Abteilung","dashboard.overall":"Gesamt","dashboard.overallParticipation":"Gesamt-Teilnahme","overview.kpiSurveys":"Umfragen","overview.kpiResponses":"Antworten","overview.kpiParticipants":"Teilnehmer","overview.kpiParticipation":"Beteiligung","overview.active":"aktiv","overview.completed":"abgeschlossen","overview.metaTitle":"Gesamtergebnisse","overview.vsPrev":"gg\xfc. Vorumfrage","overview.noTrend":"Keine Vergleichsdaten (mind. 2 abgeschlossene Umfragen n\xf6tig)","overview.improvements":"Top-Verbesserungen","overview.declines":"Top-Verschlechterungen","overview.noneYet":"Noch keine Be
2wegungen","overview.ranking":"Abteilungen im \xdcberblick","overview.locked":"Gesperrt (< 5)","overview.lockNoSurvey":"Keine Umfrage durchgef\xfchrt","overview.lockFewParticipants":"Zu wenige Mitarbeiter teilgenommen","overview.openAnalysis":"Zur letzten Analyse dieser Abteilung","structure.title":"Firmen & Abteilungen","structure.subtitle":"Firmen, Filialen und Abteilungen verwalten","structure.firmen":"Firmen","structure.firmaName":"Name der Firma","structure.noFirmen":"Noch keine Firmen angelegt","structure.selectFirma":"Firma ausw\xe4hlen, um Filialen zu sehen","structure.filialen":"Filialen","structure.filialeName":"Name der Filiale","structure.noFilialen":"Noch keine Filialen angelegt","structure.selectFiliale":"Filiale ausw\xe4hlen, um Abteilungen zu sehen","structure.confirmDelFirma":"Firma inkl. aller Filialen und Abteilungen l\xf6schen?","structure.branches":"Firmen","structure.addBranch":"Firma hinzuf\xfcgen","structure.branchName":"Name der Firma","structure.departments":"Abteilungen","structure.addDept":"Abteilung hinzuf\xfcgen","structure.deptName":"Name der Abteilung","structure.headcount":"Mitarbeiterzahl","structure.visible":"Sichtbar im Dashboard","structure.selectBranch":"Firma ausw\xe4hlen, um Abteilungen zu sehen","structure.noBranches":"Noch keine Firmen angelegt","invitations.title":"Umfragen - PERSENTIS Care","invitations.subtitle":"Anonyme Umfrage-Links und QR-Codes je Firma","invitations.company":"Firma","invitations.create":"Umfrage erstellen","invitations.label":"Bezeichnung (optional)","invitations.link":"Umfrage-Link","invitations.copy":"Kopieren","invitations.copied":"Kopiert!","invitations.open":"Umfrage \xf6ffnen","invitations.qr":"QR-Code","invitations.none":"Noch keine Einladungen","users.title":"Nutzerverwaltung","users.subtitle":"Benutzer, Rollen und Konto-Einstieg","users.add":"Benutzer hinzuf\xfcgen","users.name":"Name","users.role":"Rolle","users.dept":"Abteilung","users.impersonate":"Konto-Einstieg","settings.title":"Einstellungen (Super-Admin)","settings.subtitle":"Schwellenwerte und Anzeigetexte","settings.thresholds":"Schwellenwerte (Tacho)","settings.thresholdsHint":"Gesch\xfctzt \u2013 nur f\xfcr Super-Admin. Werte 0\u2013100.","settings.texts":"Anzeigetexte","settings.red":"Rot bis","settings.orange":"Orange bis","settings.heading":"\xdcberschrift","settings.description":"Beschreibung","settings.saved":"Gespeichert","billing.title":"Plan & Rechnungen","billing.placeholder":"Zahlungen werden sp\xe4ter aktiviert (Stripe). Aktuell Platzhalter.","billing.invoiceAddress":"Rechnungsadresse","manual.title":"Handbuch","manual.placeholder":"Das Handbuch wird in K\xfcrze verf\xfcgbar sein.","common.save":"Speichern","common.cancel":"Abbrechen","common.create":"Erstellen","common.delete":"L\xf6schen","common.loading":"L\xe4dt \u2026","analytics.loading_hint":"Die Auswertung wird aufbereitet \u2013 bitte einen Moment Geduld.","common.actions":"Aktionen","common.comingSoon":"Funktion folgt sp\xe4ter","guide.end":"Guide beenden","guide.progress":"Schritt {n}/{total}","guide.prev":"Zur\xfcck","guide.next":"Weiter","guide.finish":"Fertig","guide.later":"Guide sp\xe4ter starten","guide.seg.analytics.desc":"Fundierte Mitarbeiterbefragungen & Ergebnisse","guide.seg.pulse.desc":"Stimmungsbarometer & Kurzbefragungen","guide.seg.care.desc":"Mentales Wohlbefinden im Team","guide.seg.all.label":"Alles zeigen","guide.seg.all.desc":"Die komplette Tour durch alle Module","guide.explore_self":"PERSENTIS selbst entdecken","guide.welcome.title":"Willkommen bei PERSENTIS","guide.welcome.body":"Sehen Sie sich frei um \u2013 ganz ohne Anmeldung. Was interessiert Sie am meisten?","guide.register_start":"Registrieren & Starten","guide.bar.activate":"starten","guide.bar.deactivate":"Deaktivieren","guide.bar.questions":"Noch Fragen?","guide.bar.questionsShort":"Fragen?"}),Ha.de||{}),Wa.de||{}),en:d(d(d({},{"app.tagline":"HR analytics platform","nav.products":"Products","nav.care":"Care","nav.analytics":"Analytics","nav.profiling":"Profiling","nav.boarding":"Boarding","nav.soon":"Coming soon","nav.dashboard":"Dashboard","nav.structure":"Companies & departments","nav.invitations":"Surveys","nav.auswertungen":"Results","nav.users":"User management","nav.settings":"Settings","user.account":"Account","user.billing":"Plan & billing","user.manual":"Manual","user.logout":"Log out","user.profile":"Profile","user.activities":"Activities","profile.title":"Profile","profile.subtitle":"Classic personal identification details","profile.salutation":"Salutation","profile.firstName":"First name","profile.lastName":"Last name","profile.birthDate":"Date of birth","profile.email":"Email","profile.phone":"Phone","profile.street":"Street & no.","profile.zip":"ZIP","profile.city":"City","profile.country":"Country","profile.company":"Company","profile.position":"Position / role","profile.language":"Language","profile.website":"Website","profile.uid":"UID","profile.sectionOwner":"Account owner","profile.sectionCompany":"Company details","profile.changePhoto":"Change photo","profile.removePhoto":"Remove photo","profile.emailModalTitle":"Email confirmation required","profile.emailModalText":"Your email address has been changed. Your account will only be accessible again once you have confirmed the verification email.","profile.understood":"Understood","activities.title":"Activities","activities.subtitle":"Recent activity on your account","activities.empty":"No activities yet.","toast.photoChanged":"Photo changed","toast.profileSaved":"Profile saved","login.title":"Sign in","login.subtitle":"Welcome back to PERSENTIS","login.email":"Email","login.password":"Password","login.submit":"Sign in","login.forgot":"Forgot password?","login.no_account":"No account yet?","login.register":"Register now","dashboard.title":"PERSENTIS Care \u2013 Dashboard","dashboard.subtitle":"Departments compared to the overall result","dashboard.allDepts":"OVERALL","dashboard.selectDept":"Select department","dashboard.participation":"Participation rate","dashboard.responses":"responses","dashboard.exportPdf":"PDF report","dashboard.positive":"Positive aspects","dashboard.negative":"Negative aspects","dashboard.feedback":"Open feedback","dashboard.noData":"No responses yet","dashboard.sample":"Sample","dashboard.department":"Department","dashboard.overall":"Overall","dashboard.overallParticipation":"Overall participation","overview.kpiSurveys":"Surveys","overview.kpiResponses":"Responses","overview.kpiParticipants":"Participants","overview.kpiParticipation":"Participation","overview.active":"active","overview.completed":"completed","overview.metaTitle":"Overall results","overview.vsPrev":"vs. previous survey","overview.noTrend":"No comparison data (at least 2 completed surveys required)","overview.improvements":"Top improvements","overview.declines":"Top declines","overview.noneYet":"No movements yet","overview.ranking":"Departments overview","overview.locked":"Locked (< 5)","overview.lockNoSurvey":"No survey conducted","overview.lockFewParticipants":"Too few employees participated","overview.openAnalysis":"Open this department's latest analysis","structure.title":"Companies & departments","structure.subtitle":"Manage companies, branches and departments","structure.firmen":"Companies","structure.firmaName":"Company name","structure.noFirmen":"No companies yet","structure.selectFirma":"Select a company to see branches","structure.filialen":"Branches","structure.filialeName":"Branch name","structure.noFilialen":"No branches yet","structure.selectFiliale":"Select a branch to see departments","structure.confirmDelFirma":"Delete company including all branches and departments?","structure.branches":"Companies","structure.addBranch":"Add company","structure.branchName":"Company name","structure.departments":"Departments","structure.addDept":"Add department","structure.deptName":"Department name","structure.headcount":"Headcount","structure.visible":"Visible in dashboard","structure.selectBranch":"Select a company to see departments","structure.noBranches":"No companies yet","invitations.title":"Surveys - PERSENTIS Care","invitations.subtitle":"Anonymous survey links and QR codes per company","invitations.company":"Company","invitations.create":"Create survey","invitations.label":"Label (optional)","invitations.link":"Survey link","invitations.copy":"Copy","invitations.copied":"Copied!","invitations.open":"Open survey","invitations.qr":"QR code","invitations.none":"No invitations yet","users.title":"User management","users.subtitle":"Users, roles and account access","users.add":"Add user","users.name":"Name","users.role":"Role","users.dept":"Department","users.impersonate":"Enter account","settings.title":"Settings (Super admin)","settings.subtitle":"Thresholds and display texts","settings.thresholds":"Thresholds (gauge)","settings.thresholdsHint":"Protected \u2013 super admin only. Values 0\u2013100.","settings.texts":"Display texts","settings.red":"Red up to","settings.orange":"Orange up to","settings.heading":"Heading","settings.description":"Description","settings.saved":"Saved","billing.title":"Plan & billing","billing.placeholder":"Payments will be enabled later (Stripe). Placeholder for now.","billing.invoiceAddress":"Billing address","manual.title":"Manual","manual.placeholder":"The manual will be available soon.","common.save":"Save","common.cancel":"Cancel","common.create":"Create","common.delete":"Delete","common.loading":"Loading \u2026","analytics.loading_hint":"The evaluation is being prepared \u2013 please wait a moment.","common.actions":"Actions","common.comingSoon":"Feature coming later","guide.end":"Exit guide","guide.progress":"Step {n}/{total}","guide.prev":"Back","guide.next":"Next","guide.finish":"Done","guide.later":"Start guide later","guide.seg.analytics.desc":"In-depth employee surveys & results","guide.seg.pulse.desc":"Mood barometer & pulse surveys","guide.seg.care.desc":"Mental well-being in the team","guide.seg.all.label":"Show everything","guide.seg.all.desc":"The complete tour through all modules","guide.explore_self":"Explore PERSENTIS yourself","guide.welcome.title":"Welcome to PERSENTIS","guide.welcome.body":"Take a look around \u2013 no sign-up needed. What interests you most?","guide.register_start":"Register & Start","guide.bar.activate":"start","guide.bar.deactivate":"Deactivate","guide.bar.questions":"Questions?","guide.bar.questionsShort":"Questions?"}),Ha.en||{}),Wa.en||{}),fr:d(d(d(d({},Ka.fr||{}
2),{"nav.dashboard":"Tableau de bord","nav.structure":"Structure","nav.invitations":"Enqu\xeates","nav.auswertungen":"R\xe9sultats","nav.settings":"Param\xe8tres","nav.users":"Utilisateurs","user.logout":"D\xe9connexion","login.title":"Connexion","login.email":"E-mail","login.password":"Mot de passe","login.submit":"Se connecter","login.forgot":"Mot de passe oubli\xe9 ?","login.no_account":"Pas encore de compte ?","login.register":"S'inscrire","guide.end":"Quitter le guide","guide.progress":"\xc9tape {n}/{total}","guide.prev":"Retour","guide.next":"Suivant","guide.finish":"Termin\xe9","guide.later":"D\xe9marrer le guide plus tard","guide.seg.analytics.desc":"Enqu\xeates approfondies aupr\xe8s des employ\xe9s et r\xe9sultats","guide.seg.pulse.desc":"Barom\xe8tre d'ambiance et enqu\xeates flash","guide.seg.care.desc":"Bien-\xeatre mental de l'\xe9quipe","guide.seg.all.label":"Tout afficher","guide.seg.all.desc":"La visite compl\xe8te de tous les modules","guide.explore_self":"D\xe9couvrir PERSENTIS par soi-m\xeame","guide.welcome.title":"Bienvenue chez PERSENTIS","guide.welcome.body":"Explorez librement \u2013 sans inscription. Qu'est-ce qui vous int\xe9resse le plus ?","guide.register_start":"S'inscrire et d\xe9marrer","guide.bar.activate":"d\xe9marrer","guide.bar.deactivate":"D\xe9sactiver","guide.bar.questions":"Des questions ?","guide.bar.questionsShort":"Questions ?"}),Ha.fr||{}),Wa.fr||{}),es:d(d(d(d({},Ka.es||{}),{"nav.dashboard":"Panel","nav.structure":"Estructura","nav.invitations":"Encuestas","nav.auswertungen":"Resultados","nav.settings":"Ajustes","nav.users":"Usuarios","user.logout":"Cerrar sesi\xf3n","login.title":"Iniciar sesi\xf3n","login.email":"Correo","login.password":"Contrase\xf1a","login.submit":"Entrar","login.forgot":"\xbfOlvid\xf3 su contrase\xf1a?","login.no_account":"\xbfA\xfan no tiene cuenta?","login.register":"Reg\xedstrese ahora","guide.end":"Salir de la gu\xeda","guide.progress":"Paso {n}/{total}","guide.prev":"Atr\xe1s","guide.next":"Siguiente","guide.finish":"Hecho","guide.later":"Iniciar la gu\xeda m\xe1s tarde","guide.seg.analytics.desc":"Encuestas exhaustivas a empleados y resultados","guide.seg.pulse.desc":"Bar\xf3metro de \xe1nimo y encuestas r\xe1pidas","guide.seg.care.desc":"Bienestar mental del equipo","guide.seg.all.label":"Mostrar todo","guide.seg.all.desc":"El recorrido completo por todos los m\xf3dulos","guide.explore_self":"Descubrir PERSENTIS por su cuenta","guide.welcome.title":"Bienvenido a PERSENTIS","guide.welcome.body":"Eche un vistazo con total libertad, sin registrarse. \xbfQu\xe9 le interesa m\xe1s?","guide.register_start":"Registrarse y empezar","guide.bar.activate":"iniciar","guide.bar.deactivate":"Desactivar","guide.bar.questions":"\xbfPreguntas?","guide.bar.questionsShort":"\xbfPreguntas?"}),Ha.es||{}),Wa.es||{}),it:d(d(d(d({},Ka.it||{}),{"nav.dashboard":"Cruscotto","nav.structure":"Struttura","nav.invitations":"Sondaggi","nav.auswertungen":"Risultati","nav.settings":"Impostazioni","nav.users":"Utenti","user.logout":"Esci","login.title":"Accedi","login.email":"E-mail","login.password":"Password","login.submit":"Accedi","login.forgot":"Password dimenticata?","login.no_account":"Non hai ancora un account?","login.register":"Registrati ora","guide.end":"Esci dalla guida","guide.progress":"Passo {n}/{total}","guide.prev":"Indietro","guide.next":"Avanti","guide.finish":"Fatto","guide.later":"Avvia la guida pi\xf9 tardi","guide.seg.analytics.desc":"Sondaggi approfonditi sui dipendenti e risultati","guide.seg.pulse.desc":"Barometro del clima e sondaggi rapidi","guide.seg.care.desc":"Benessere mentale del team","guide.seg.all.label":"Mostra tutto","guide.seg.all.desc":"Il tour completo di tutti i moduli","guide.explore_self":"Scopri PERSENTIS in autonomia","guide.welcome.title":"Benvenuto in PERSENTIS","guide.welcome.body":"Dai un'occhiata in libert\xe0, senza registrarti. Cosa ti interessa di pi\xf9?","guide.register_start":"Registrati e inizia","guide.bar.activate":"avvia","guide.bar.deactivate":"Disattiva","guide.bar.questions":"Domande?","guide.bar.questionsShort":"Domande?"}),Ha.it||{}),Wa.it||{})},Ya=(0,a.createContext)(null),Qa=["de","en","fr","es","it"];function $a(e){let t=e.children;const n=Le((0,a.useState)(localStorage.getItem("persentis_lang")||"de"),2),r=n[0],i=n[1],s=(0,a.useCallback)(e=>{localStorage.setItem("persentis_lang",e),i(e),"undefined"!==typeof window&&window.dispatchEvent(new Event("persentis-lang-changed"))},[]),o=(0,a.useCallback)(e=>Za[r]&&Za[r][e]||Za.en[e]||Za.de[e]||e,[r]);return(0,Te.jsx)(Ya.Provider,{value:{lang:r,setLang:s,t:o,langs:Ga},children:t})}function Xa(){const e=(0,a.useContext)(Ya);if(!e)throw new Error("useT must be used within LangProvider");return e}const Ja=d({de:{intro:"Anonyme Mitarbeiterbefragung",start:"Befragung starten",likert:["Stimme gar nicht zu","Stimme eher nicht zu","Teils / teils","Stimme eher zu","Stimme voll zu"],positive:"Positive Aspekte (optional)",negative:"Negative Aspekte (optional)",other:"Sonstiges \u2026",answerHere:"Ihre Antwort \u2026",feedbackTitle:"K\xf6nnen Sie zu diesem Thema noch etwas anmerken?",feedback:"M\xf6chten Sie noch etwas mitteilen? (optional)",next:"Weiter",back:"Zur\xfcck",submit:"Absenden",done:"Vielen Dank!",doneText:"Ihre anonyme Antwort wurde \xfcbermittelt.",moreLink:"Ich m\xf6chte mehr \xfcber PERSENTIS Care erfahren.",progress:"Frage",selectRating:"Diese Frage ist eine Pflichtfrage.",anonymous:"100 % anonym",welcomeFor:"Willkommen zu PERSENTIS Care f\xfcr",introHeading:"Willkommen bei PERSENTIS Care",welcomeText:"**Sch\xf6n, dass Sie da sind und sich Zeit f\xfcr ein paar Antworten zum Thema Arbeitsbelastung nehmen!** Die Beantwortung der Fragen wird ca. **15 Minuten** dauern. Such Sie sich am besten einen ruhigen Platz, an dem Sie diesen Fragebogen **ungest\xf6rt** durchgehen k\xf6nnen.\n\n**Wenn Sie sich bei einer Frage nicht ganz sicher sind, gehen Sie einfach nach Ihrem ersten Bauchgef\xfchl - das ist meistens das richtige.**\n\n**Ihre R\xfcckmeldungen sind von gro\xdfer Bedeutung:** Sie helfen Ihrem Arbeitgeber, gesunde Arbeitsbedingungen zu f\xf6rdern und gegebenenfalls Ma\xdfnahmen zu ergreifen.\
2n\n**Sie k\xf6nnen sich vollkommen sicher f\xfchlen: Alle hier erhobenen Daten werden streng vertraulich behandelt. Die Auswertungen erfolgen direkt bei PERSENTIS, sind stets anonym und beziehen sich nur auf ganze Personengruppen.**\n\nDie Datenerhebung erfolgt **ohne Angabe von Namen oder E-Mail-Adresse**. Die Bewertungen werden nach Abteilungen zusammengefasst und als Gesamtergebnis \xfcbergeben. **Alle Antworten** auf offene Fragen erh\xe4lt Ihr Arbeitgeber **in gesammelter Form**. Zum Schutz Ihre und der Anonymit\xe4t Ihrer KollegInnen **verzichten Sie bitte auf Namensnennungen**!",consentTitle:"Wir ben\xf6tigen Ihre Einwilligung",consentP1:"Hiermit stimme ich ausdr\xfccklich im Zusammenhang mit der PERSENTIS Befragung (i) der Verarbeitung meiner angegebenen Daten (Altersgruppe, Geschlecht, Position im Unternehmen, Dauer der Betriebszugeh\xf6rigkeit, Abteilung, und Antworten auf offene Fragen), die im Einzelfall personenbezogen sein k\xf6nnen, durch die PERSENTIS GmbH und deren Auftragsverarbeiter f\xfcr Zwecke der Durchf\xfchrung, Analyse und Auswertung von Befragungen sowie (ii) der Erstellung und \xdcbermittlung von aggregierten Ergebnissen und der Antworten auf die offenen Fragen, die im Einzelfall personenbezogen sein k\xf6nnen, an den Auftraggeber zu.",consentP2a:"Ich kann diese Einwilligung jederzeit per E-Mail an [email protected] oder schriftlich an PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg, widerrufen. Durch den Widerruf der Einwilligung wird die Rechtm\xe4\xdfigkeit der aufgrund der Einwilligung bis zum Widerruf erfolgten Verarbeitung nicht ber\xfchrt. Die Datenschutzinformation gem\xe4\xdf Art 13 DSGVO ist ",consentLinkText:"HIER",consentP2b:" nachzulesen.",consentCheckbox:"Ich stimme ausdr\xfccklich zu.",consentRequired:"Bitte stimmen Sie zu, um fortzufahren.",assignTitle:"Bitte ordnen Sie sich einer Abteilung zu.",assignSubtitle:"W\xe4hlen Sie Ihre Abteilung (Filiale | Abteilung).",assignPlaceholder:"Abteilung ausw\xe4hlen",assignRequired:"Bitte w\xe4hlen Sie eine Abteilung.",questionIntro:"Inwiefern ist folgende Aussage f\xfcr Sie zutreffend?",answered:"beantwortet",quotaReachedMsg:"Ihre Teilnahme wird gewertet \u2013 vielen Dank!",quotaHintPre:"Ihre Teilnahme wird ab ",quotaHintPost:" % beantworteter Fragen gewertet.",selectPlaceholder:"Bitte w\xe4hlen \u2026",fastdoneTitle:"Fast geschafft",sozioTitle:"Soziodemografische Angaben",sozioNote:"Diese Angaben sind v\xf6llig freiwillig und werden nicht in die Berechnung einbezogen."},en:{intro:"Anonymous employee survey",start:"Start survey",likert:["Strongly disagree","Disagree","Neutral","Agree","Strongly agree"],positive:"What was especially positive?",negative:"What was rather negative?",other:"Other \u2026",answerHere:"Your answer \u2026",feedbackTitle:"General feedback",feedback:"Anything else you'd like to share? (optional)",next:"Next",back:"Back",submit:"Submit",done:"Thank you!",doneText:"Your anonymous response has been submitted.",moreLink:"I'd like to learn more about PERSENTIS Care.",progress:"Question",selectRating:"Please select a rating.",anonymous:"100% anonymous",welcomeFor:"Welcome to PERSENTIS Care for",introHeading:"Welcome to PERSENTIS Care",welcomeText:"**Great that you're here and taking the time to answer a few questions on the topic of workload!** Completing the questionnaire will take about **15 minutes**. It's best to find a quiet place where you can go through this questionnaire **undisturbed**.\n\n**If you're not entirely sure about a question, simply go with your first gut feeling \u2013 it's usually the right one.**\n\n**Your feedback is very important:** it helps your employer promote healthy working conditions and take measures where necessary.\n\n**You can feel completely safe: all data collected here is treated strictly confidentially. Evaluations are carried out directly at PERSENTIS, are always anonymous and only relate to entire groups of people.**\n\nData is collected **without giving your name or email address**. Ratings are aggregated by department and handed over as an overall result. Your employer receives **all answers** to open questions **in collected form**. To protect your anonymity and that of your colleagues, **please refrain from naming names**!",consentTitle:"We need your consent",consentP1:"I hereby expressly consent, in connection with the PERSENTIS survey, to (i) the processing of the data I provide (age group, gender, position in the company, length of service, department, and answers to open questions), which may in individual cases be personal, by PERSENTIS GmbH and its processors for the purposes of conducting, analysing and evaluating surveys, as well as (ii) the creation and transmission of aggregated results and answers to open questions, which may in individual cases be personal, to the client.",consentP2a:"I can revoke this consent at any time by email to [email protected] or in
2writing to PERSENTIS GmbH, attn. Management, Lessingstra\xdfe 6, 5020 Salzburg. The revocation does not affect the lawfulness of processing carried out on the basis of the consent until revocation. The data protection information pursuant to Art. 13 GDPR can be found ",consentLinkText:"HERE",consentP2b:".",consentCheckbox:"I expressly consent.",consentRequired:"Please consent to continue.",assignTitle:"Please assign yourself to a department.",assignSubtitle:"Select your department (Company | Department).",assignPlaceholder:"Select department",assignRequired:"Please select a department.",questionIntro:"To what extent does the following statement apply to you?",answered:"answered",quotaReachedMsg:"Your participation counts \u2013 thank you!",quotaHintPre:"Your participation counts once ",quotaHintPost:" % of questions are answered.",selectPlaceholder:"Please select \u2026",fastdoneTitle:"Almost done",sozioTitle:"Sociodemographic information",sozioNote:"This information is entirely voluntary and is not included in the calculation."},fr:{intro:"Enqu\xeate anonyme aupr\xe8s des employ\xe9s",start:"Commencer",likert:["Pas du tout d'accord","Plut\xf4t pas d'accord","Neutre","Plut\xf4t d'accord","Tout \xe0 fait d'accord"],positive:"Qu'est-ce qui \xe9tait positif ?",negative:"Qu'est-ce qui \xe9tait n\xe9gatif ?",other:"Autre \u2026",answerHere:"Votre r\xe9ponse \u2026",feedbackTitle:"Commentaire g\xe9n\xe9ral",feedback:"Souhaitez-vous ajouter quelque chose ? (facultatif)",next:"Suivant",back:"Retour",submit:"Envoyer",done:"Merci !",doneText:"Votre r\xe9ponse anonyme a \xe9t\xe9 envoy\xe9e.",moreLink:"Je souhaite en savoir plus sur PERSENTIS Care.",progress:"Question",selectRating:"Veuillez choisir une \xe9valuation.",anonymous:"100 % anonyme",welcomeFor:"Bienvenue \xe0 PERSENTIS Care pour",introHeading:"Bienvenue chez PERSENTIS Care",sozioTitle:"Donn\xe9es sociod\xe9mographiques",sozioNote:"Ces informations sont totalement facultatives et ne sont pas prises en compte dans le calcul.",fastdoneTitle:"Presque termin\xe9",consentTitle:"Nous avons besoin de votre consentement",consentP1:"Par la pr\xe9sente, je consens express\xe9ment, dans le cadre de l'enqu\xeate PERSENTIS, (i) au traitement des donn\xe9es que je fournis (tranche d'\xe2ge, sexe, poste dans l'entreprise, anciennet\xe9, service et r\xe9ponses aux questions ouvertes), qui peuvent dans certains cas \xeatre \xe0 caract\xe8re personnel, par PERSENTIS GmbH et ses sous-traitants aux fins de la r\xe9alisation, de l'analyse et de l'\xe9valuation des enqu\xeates, ainsi que (ii) \xe0 la cr\xe9ation et \xe0 la transmission de r\xe9sultats agr\xe9g\xe9s et des r\xe9ponses aux questions ouvertes, qui peuvent dans certains cas \xeatre \xe0 caract\xe8re personnel, au client.",consentP2a:"Je peux r\xe9voquer ce consentement \xe0 tout moment par e-mail \xe0 [email protected] ou par \xe9crit \xe0 PERSENTIS GmbH, \xe0 l'attention de la direction, Lessingstra\xdfe 6, 5020 Salzbourg. La r\xe9vocation n'affecte pas la lic\xe9it\xe9 du traitement effectu\xe9 sur la base du consentement jusqu'\xe0 la r\xe9vocation. Les informations relatives \xe0 la protection des donn\xe9es conform\xe9ment \xe0 l'art. 13 du RGPD sont disponibles ",consentLinkText:"ICI",consentP2b:".",consentCheckbox:"Je consens express\xe9ment.",consentRequired:"Veuillez donner votre consentement pour continuer.",assignTitle:"Veuillez vous rattacher \xe0 un service.",assignSubtitle:"S\xe9lectionnez votre service (Entreprise | Service).",assignPlaceholder:"S\xe9lectionner un service",assignRequired:"Veuillez s\xe9lectionner un service.",answered:"r\xe9pondu",selectPlaceholder:"Veuillez s\xe9lectionner \u2026"},es:{intro:"Encuesta an\xf3nima a empleados",start:"Comenzar",likert:["Totalmente en desacuerdo","En desacuerdo","Neutral","De acuerdo","Totalmente de acuerdo"],positive:"\xbfQu\xe9 fue positivo?",negative:"\xbfQu\xe9 fue negativo?",other:"Otro \u2026",answerHere:"Su respuesta \u2026",feedbackTitle:"Comentario general",feedback:"\xbfAlgo m\xe1s que quiera comentar? (opcional)",next:"Siguiente",back:"Atr\xe1s",submit:"Enviar",done:"\xa1Gracias!",doneText:"Su respuesta an\xf3nima ha sido envi
2ada.",moreLink:"Quiero saber m\xe1s sobre PERSENTIS Care.",progress:"Pregunta",selectRating:"Seleccione una valoraci\xf3n.",anonymous:"100 % an\xf3nimo",welcomeFor:"Bienvenido/a a PERSENTIS Care para",introHeading:"Bienvenido/a a PERSENTIS Care",sozioTitle:"Datos sociodemogr\xe1ficos",sozioNote:"Estos datos son totalmente voluntarios y no se incluyen en el c\xe1lculo.",fastdoneTitle:"Casi listo",consentTitle:"Necesitamos su consentimiento",consentP1:"Por la presente, doy mi consentimiento expreso, en relaci\xf3n con la encuesta de PERSENTIS, a (i) el tratamiento de los datos que facilito (grupo de edad, sexo, puesto en la empresa, antig\xfcedad, departamento y respuestas a preguntas abiertas), que en casos concretos pueden ser de car\xe1cter personal, por parte de PERSENTIS GmbH y sus encargados del tratamiento con el fin de realizar, analizar y evaluar encuestas, as\xed como a (ii) la elaboraci\xf3n y transmisi\xf3n de resultados agregados y de las respuestas a las preguntas abiertas, que en casos concretos pueden ser de car\xe1cter personal, al cliente.",consentP2a:"Puedo revocar este consentimiento en cualquier momento por correo electr\xf3nico a [email protected] o por escrito a PERSENTIS GmbH, a la atenci\xf3n de la Direcci\xf3n, Lessingstra\xdfe 6, 5020 Salzburgo. La revocaci\xf3n no afecta a la licitud del tratamiento realizado sobre la base del consentimiento hasta la revocaci\xf3n. La informaci\xf3n sobre protecci\xf3n de datos conforme al art. 13 del RGPD puede consultarse ",consentLinkText:"AQU\xcd",consentP2b:".",consentCheckbox:"Doy mi consentimiento expreso.",consentRequired:"Por favor, d\xe9 su consentimiento para continuar.",assignTitle:"Por favor, as\xedgnese a un departamento.",assignSubtitle:"Seleccione su departamento (Empresa | Departamento).",assignPlaceholder:"Seleccionar departamento",assignRequired:"Por favor, seleccione un departamento.",answered:"respondido",selectPlaceholder:"Seleccione \u2026"},it:{intro:"Sondaggio anonimo per i dipendenti",start:"Inizia",likert:["Del tutto in disaccordo","In disaccordo","Neutro","D'accordo","Del tutto d'accordo"],positive:"Cosa \xe8 stato positivo?",negative:"Cosa \xe8 stato negativo?",other:"Altro \u2026",answerHere:"La tua risposta \u2026",feedbackTitle:"Feedback generale",feedback:"Vuoi aggiungere qualcosa? (facoltativo)",next:"Avanti",back:"Indietro",submit:"Invia",done:"Grazie!",doneText:"La tua risposta anonima \xe8 stata inviata.",moreLink:"Voglio saperne di pi\xf9 su PERSENTIS Care.",progress:"Domanda",selectRating:"Seleziona una valutazione.",anonymous:"100% anonimo",welcomeFor:"Benvenuto/a in PERSENTIS Care per",introHeading:"Benvenuto/a in PERSENTIS Care",sozioTitle:"Dati sociodemografici",sozioNote:"Questi dati sono del tutto facoltativi e non vengono inclusi nel calcolo.",fastdoneTitle:"Quasi fatto",consentTitle:"Abbiamo bisogno del suo consenso",consentP1:"Con la presente acconsento espressamente, nell'ambito del sondaggio PERSENTIS, (i) al trattamento dei dati da me forniti (fascia d'et\xe0, sesso, posizione in azienda, anzianit\xe0 di servizio, reparto e risposte alle domande aperte), che in singoli casi possono essere di natura personale, da parte di PERSENTIS GmbH e dei suoi responsabili del trattamento ai fini della conduzione, dell'analisi e della valutazione dei sondaggi, nonch\xe9 (ii) alla creazione e trasmissione di risultati aggregati e delle risposte alle domande aperte, che in singoli casi possono essere di natura personale, al committente.",consentP2a:"Posso revocare questo consenso in qualsiasi momento tramite e-mail a [email protected] o per iscritto a PERSENTIS GmbH, all'attenzione della Direzione, Lessingstra\xdfe 6, 5020 Salisburgo. La revoca non pregiudica la liceit\xe0 del trattamento effettuato sulla base del consenso fino alla revoca. Le informazioni sulla protezione dei dati ai sensi dell'art. 13 del GDPR sono consultabili ",consentLinkText:"QUI",consentP2b:".",consentCheckbox:"Acconsento espressamente.",consentRequired:"La preghiamo di dare il consenso per continuare.",assignTitle:"La preghiamo di assegnarsi a un reparto.",assignSubtitle:"Selezioni il suo reparto (Azienda | Reparto).",assignPlaceholder:"Selezionare il reparto",assignRequired:"La preghiamo di selezionare un reparto.",answered:"risposto",selectPlaceholder:"Selezionare \u2026"}},{pt:{intro:"Inqu\xe9rito an\xf3nimo aos colaboradores",start:"Iniciar inqu\xe9rito",next:"Seguinte",back:"Anterior",submit:"Enviar",positive:"Aspetos positivos (opcional)",negative:"Aspetos
2negativos (opcional)",other:"Outros \u2026",answerHere:"A sua resposta \u2026",feedbackTitle:"Gostaria de acrescentar algo sobre este tema?",feedback:"Gostaria de comunicar mais alguma coisa? (opcional)",done:"Muito obrigado!",doneText:"A sua resposta an\xf3nima foi enviada.",moreLink:"Gostaria de saber mais sobre o PERSENTIS Care.",progress:"Pergunta",selectRating:"Esta pergunta \xe9 obrigat\xf3ria.",anonymous:"100 % an\xf3nimo",welcomeFor:"Bem-vindo ao PERSENTIS Care para",introHeading:"Bem-vindo ao PERSENTIS Care",welcomeText:"**Que bom t\xea-lo aqui e por dedicar algum tempo a responder a algumas perguntas sobre a carga de trabalho!** Responder \xe0s perguntas demorar\xe1 cerca de **15 minutos**. O melhor \xe9 escolher um local tranquilo onde possa preencher este question\xe1rio **sem interrup\xe7\xf5es**.\n\n**Se n\xe3o tiver a certeza numa pergunta, siga simplesmente a sua primeira intui\xe7\xe3o - normalmente \xe9 a certa.**\n\n**O seu feedback \xe9 de grande import\xe2ncia:** ajuda o seu empregador a promover condi\xe7\xf5es de trabalho saud\xe1veis e, se necess\xe1rio, a tomar medidas.\n\n**Pode sentir-se completamente seguro: todos os dados aqui recolhidos ser\xe3o tratados com a mais estrita confidencialidade. As avalia\xe7\xf5es s\xe3o realizadas diretamente pela PERSENTIS, s\xe3o sempre an\xf3nimas e referem-se apenas a grupos inteiros de pessoas.**\n\nA recolha de dados \xe9 efetuada **sem indica\xe7\xe3o de nome ou endere\xe7o de e-mail**. As avalia\xe7\xf5es s\xe3o agrupadas por departamentos e transmitidas como resultado global. **Todas as respostas** \xe0s perguntas abertas s\xe3o disponibilizadas ao seu empregador **de forma agregada**. Para proteger a sua identidade e o anonimato dos seus colegas, **pedimos que evite mencionar nomes**!",consentTitle:"Necessitamos do seu consentimento",consentP1:"Pelo presente, consinto expressamente, no \xe2mbito do inqu\xe9rito PERSENTIS, (i) no tratamento dos meus dados fornecidos (grupo et\xe1rio, g\xe9nero, posi\xe7\xe3o na empresa, antiguidade na empresa, departamento e respostas a perguntas abertas), que em casos individuais podem ser dados pessoais, pela PERSENTIS GmbH e pelos seus subcontratantes para efeitos de realiza\xe7\xe3o, an\xe1lise e avalia\xe7\xe3o de inqu\xe9ritos, bem como (ii) na elabora\xe7\xe3o e transmiss\xe3o de resultados agregados e das respostas \xe0s perguntas abertas, que em casos individuais podem ser dados pessoais, ao cliente.",consentP2a:"Posso revogar este consentimento a qualquer momento por e-mail para [email protected] ou por escrito para PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. A revoga\xe7\xe3o do consentimento n\xe3o afeta a licitude do tratamento efetuado com base no consentimento at\xe9 \xe0 revoga\xe7\xe3o. A informa\xe7\xe3o sobre prote\xe7\xe3o de dados nos termos do Art 13 DSGVO est\xe1 dispon\xedvel ",consentLinkText:"AQUI",consentP2b:" para consulta.",consentCheckbox:"Consinto expressamente.",consentRequired:"Por favor, d\xea o seu consentimento para continuar.",assignTitle:"Por favor, atribua-se a um departamento.",assignSubtitle:"Selecione o seu departamento (filial | departamento).",assignPlaceholder:"Selecionar departamento",assignRequired:"Por favor, selecione um departamento.",questionIntro:"Em que medida a seguinte afirma\xe7\xe3o se aplica a si?",answered:"respondida",quotaReachedMsg:"A sua participa\xe7\xe3o ser\xe1 considerada \u2013 muito obrigado!",quotaHintPre:"A sua participa\xe7\xe3o ser\xe1 considerada a partir de ",quotaHintPost:" % de perguntas respondidas.",selectPlaceholder:"Por favor, selecione \u2026",fastdoneTitle:"Quase conclu\xeddo",sozioTitle:"Dados sociodemogr\xe1ficos",sozioNote:"Estas informa\xe7\xf5es s\xe3o totalmente volunt\xe1rias e n\xe3o ser\xe3o inclu\xeddas no c\xe1lculo.",likert:["Discordo totalmente","Discordo em parte","Nem concordo nem discordo","Concordo em parte","Concordo totalmente"]},nl:{intro:"Anonieme medewerkersbevraging",start:"Bevraging starten",next:"Verder",back:"Terug",submit:"Verzenden",positive:"Positieve aspecten (optioneel)",negative:"Negatieve aspecten (optioneel)",other:"Overige \u2026",answerHere:"Uw antwoord \u2026",feedbackTitle:"Wilt u over dit onderwerp nog iets opmerken?",feedback:"Wilt u nog iets meedelen? (optioneel)",done:"Hartelijk dank!",doneText:"Uw anonieme antwoord is verzonden.",moreLink:"Ik wil meer weten over PERSENTIS Care.",progress:"Vraag",selectRating:"Deze vraag is verplicht.",anonymous:"100% anoniem",welcomeFor:"Welkom bij PERSENTIS Care voor",introHeading:"Welkom bij PERSENTIS Care",welcomeText:"**Fijn dat u er bent en de tijd neemt om enkele antwoorden te geven over werkbelasting!** Het beantwoorden van de vragen zal ongeveer **15 minuten** duren. Zoekt u bij voorkeur een rustige plek waar u deze vragenlijst **ongestoord** kunt invullen.\n\n**Als u bij een vraag niet helemaal zeker bent, ga dan gewoon af op uw eerste gevoel - dat is meestal het juiste.**\n\n**Uw feedback is van groot belang:** die helpt uw werkgever om gezonde arbeidsomstandigheden te bevorderen en indien nodig maatregelen te nemen.\n\n**U kunt zich volledig veilig voelen: Alle hier verzamelde gegevens worden strikt vertrouwelijk behandeld. De analyses gebeuren rechtstreeks bij PERSENTIS, zijn altijd anoniem en hebben uitsluitend betrekking op volledige personeelsgroepen.**\n\nDe gegevensverzameling gebeurt **zonder vermelding van naam of e-mailadres**. De beoordelingen worden per afdeling samengevat en als totaalresultaat doorgegeven. **Alle antwoorden** op open vragen ontvangt uw werkgever **in gebundelde vorm**. Ter bescherming van uzelf en de anonimiteit van uw collega\u2019s **verzoeken wij u geen namen te vermelden**!",consentTitle:"Wij hebben uw toestemming nodig",consentP1:"Hierbij stem ik uitdrukkelijk in, in verband met de PERSENTIS bevraging, met (i) de verwerking van mijn verstrekte gegevens (leeftijdsgroep, geslacht, positie in het bedrijf, duur van het dienstverband, afdeling en antwoorden op open vragen), die in individuele gevallen persoonsgegevens kunnen zijn, door PERSENTIS GmbH en diens verwerkers ten behoeve van de uitvoering, analyse en evaluatie van bevragingen, evenals (ii) de opstelling en overdracht van geaggregeerde resultaten en de antwoorden op de open vragen, die in individuele gevallen persoonsgegevens kunnen zijn, aan de opdrachtgever.",consentP2a:"Ik kan deze toestemming op elk moment intrekken per e-mail via [email protected] of schriftelijk aan PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Door de intrekking van de toestemming wordt de rechtmatigheid van de verwerking op basis van de toestemming tot aan de intrekking niet aangetast. De privacy-informatie overeenkomstig Art 13 DSGVO is ",consentLinkText:"HIER",consentP2b:" te lezen.",consentCheckbox:"Ik stem uitdrukkelijk toe.",consentRequired:"Gelieve toe te stemmen om verder te gaan.",assignTitle:"Gelieve uzelf aan een afdeling toe te wijzen.",assignSubtitle:"Kies uw afdeling (filiaal | afdeling).",assignPlaceholder:"Afdeling kiezen",assignRequired:"Gelieve een afdeling te kiezen.",questionIntro:"In hoeverre is de volgende stelling op u van toepassing?",answered:"beantwoord",quotaReachedMsg:"Uw deelname wordt meegeteld \u2013 hartelijk dank!",quotaHintPre:"Uw deelname wordt vanaf ",quotaHintPost:" % beantwoorde vragen meegeteld.",selectPlaceholder:"Gelieve te kiezen \u2026",fastdoneTitle:"Bijna klaar",sozioTitle:"Sociodemografische gegevens",sozioNote:"Deze gegevens zijn volledig vrijwillig en worden niet in de berekening meegenomen.",likert:["Helemaal niet mee eens","Eerder niet mee eens","Deels / deels","Eerder mee eens","Helemaal mee eens"]},pl:{intro:"Anonimowa ankieta pracownicza",start:"Rozpocznij ankiet\u0119",next:"Dalej",back:"Wstecz",submit:"Wy\u015blij",positive:"Pozytywne aspekty (opcjonalnie)",negative:"Negatywne aspekty (opcjonalnie)",other:"Inne \u2026",answerHere:"Pa\u0144stwa odpowied\u01
27a \u2026",feedbackTitle:"Czy chc\u0105 Pa\u0144stwo doda\u0107 co\u015b jeszcze na ten temat?",feedback:"Czy chc\u0105 Pa\u0144stwo przekaza\u0107 co\u015b jeszcze? (opcjonalnie)",done:"Dzi\u0119kujemy!",doneText:"Pa\u0144stwa anonimowa odpowied\u017a zosta\u0142a przes\u0142ana.",moreLink:"Chc\u0119 dowiedzie\u0107 si\u0119 wi\u0119cej o PERSENTIS Care.",progress:"Pytanie",selectRating:"To pytanie jest obowi\u0105zkowe.",anonymous:"100% anonimowo",welcomeFor:"Witamy w PERSENTIS Care dla",introHeading:"Witamy w PERSENTIS Care",welcomeText:"**Mi\u0142o, \u017ce s\u0105 Pa\u0144stwo z nami i po\u015bwi\u0119caj\u0105 czas na kilka odpowiedzi dotycz\u0105cych obci\u0105\u017cenia prac\u0105!** Udzielenie odpowiedzi na pytania zajmie oko\u0142o **15 minut**. Najlepiej znale\u017a\u0107 spokojne miejsce, w kt\xf3rym b\u0119d\u0105 mogli Pa\u0144stwo **bez przeszk\xf3d** wype\u0142ni\u0107 ten kwestionariusz.\n\n**Je\u015bli przy kt\xf3rym\u015b pytaniu nie s\u0105 Pa\u0144stwo ca\u0142kiem pewni, prosz\u0119 po prostu kierowa\u0107 si\u0119 pierwszym odczuciem \u2013 zazwyczaj jest ono w\u0142a\u015bciwe.**\n\n**Pa\u0144stwa opinie s\u0105 bardzo wa\u017cne:** pomagaj\u0105 pracodawcy wspiera\u0107 zdrowe warunki pracy i w razie potrzeby podejmowa\u0107 odpowiednie dzia\u0142ania.\n\n**Mog\u0105 si\u0119 Pa\u0144stwo czu\u0107 ca\u0142kowicie bezpiecznie: Wszystkie zebrane tutaj dane s\u0105 traktowane \u015bci\u015ble poufnie. Analizy s\u0105 przeprowadzane bezpo\u015brednio przez PERSENTIS, zawsze anonimowo i odnosz\u0105 si\u0119 wy\u0142\u0105cznie do ca\u0142ych grup pracownik\xf3w.**\n\nZbieranie danych odbywa si\u0119 **bez podawania nazwiska ani adresu e-mail**. Oceny s\u0105 zestawiane wed\u0142ug dzia\u0142\xf3w i przekazywane jako wynik zbiorczy. **Wszystkie odpowiedzi** na pytania otwarte Pa\u0144stwa pracodawca otrzyma **w formie zbiorczej**. Dla ochrony Pa\u0144stwa oraz anonimowo\u015bci Pa\u0144stwa wsp\xf3\u0142pracownik\xf3w **prosimy o niepodawanie nazwisk**!",consentTitle:"Potrzebujemy Pa\u0144stwa zgody",consentP1:"Niniejszym wyra\u017anie wyra\u017cam zgod\u0119 w zwi\u0105zku z ankiet\u0105 PERSENTIS na (i) przetwarzanie moich podanych danych (grupa wiekowa, p\u0142e\u0107, stanowisko w przedsi\u0119biorstwie, sta\u017c pracy w firmie, dzia\u0142 oraz odpowiedzi na pytania otwarte), kt\xf3re w indywidualnych przypadkach mog\u0105 mie\u0107 charakter danych osobowych, przez PERSENTIS GmbH oraz jej podmioty przetwarzaj\u0105ce na zlecenie w celu przeprowadzenia, analizy i opracowania wynik\xf3w ankiet, jak r\xf3wnie\u017c (ii) sporz\u0105dzenie i przekazanie zleceniodawcy zagregowanych wynik\xf3w oraz odpowiedzi na pytania otwarte, kt\xf3re w indywidualnych przypadkach mog\u0105 mie\u0107 charakter danych osobowych.",consentP2a:"Mog\u0119 w ka\u017cdej chwili wycofa\u0107 t\u0119 zgod\u0119, wysy\u0142aj\u0105c wiadomo\u015b\u0107 e-mail na adres [email protected] lub pisemnie na adres PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Wycofanie zgody nie wp\u0142ywa na zgodno\u015b\u0107 z prawem przetwarzania dokonanego na podstawie zgody przed jej wycofaniem. Informacja o ochronie danych zgodnie z Art 13 DSGVO jest dost\u0119pna ",consentLinkText:"TUTAJ",consentP2b:" do wgl\u0105du.",consentCheckbox:"Wyra\u017anie wyra\u017cam zgod\u0119.",consentRequired:"Prosz\u0119 wyrazi\u0107 zgod\u0119, aby kontynuowa\u0107.",assignTitle:"Prosz\u0119 przypisa\u0107 si\u0119 do dzia\u0142u.",assignSubtitle:"Prosz\u0119 wybra\u0107 sw\xf3j dzia\u0142 (filia | dzia\u0142).",assignPlaceholder:"Wybierz dzia\u0142",assignRequired:"Prosz\u0119 wybra\u0107 dzia\u0142.",questionIntro:"W jakim stopniu poni\u017csze stwierdzenie jest dla Pa\u0144stwa trafne?",answered:"udzielono odpowiedzi",quotaReachedMsg:"Pa\u0144stwa udzia\u0142 zostanie uwzgl\u0119dniony \u2013 dzi\u0119kujemy!",quotaHintPre:"Pa\u0144stwa udzia\u0142 zostanie uwzgl\u0119dniony od ",quotaHintPost:" % pyta\u0144, na kt\xf3re udzielono odpowiedzi.",selectPlaceholder:"Prosz\u0119 wybra\u0107 \u2026",fastdoneTitle:"Ju\u017c prawie gotowe",sozioTitle:"Dane socjodemograficzne",sozioNote:"Podanie tych informacji
2jest ca\u0142kowicie dobrowolne i nie b\u0119dzie uwzgl\u0119dniane w obliczeniach.",likert:["Zdecydowanie si\u0119 nie zgadzam","Raczej si\u0119 nie zgadzam","Ani tak, ani nie","Raczej si\u0119 zgadzam","Zdecydowanie si\u0119 zgadzam"]},ru:{intro:"\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043e\u043f\u0440\u043e\u0441 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432",start:"\u041d\u0430\u0447\u0430\u0442\u044c \u043e\u043f\u0440\u043e\u0441",next:"\u0414\u0430\u043b\u0435\u0435",back:"\u041d\u0430\u0437\u0430\u0434",submit:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",positive:"\u041f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)",negative:"\u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0441\u043f\u0435\u043a\u0442\u044b (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)",other:"\u0414\u0440\u0443\u0433\u043e\u0435 \u2026",answerHere:"\u0412\u0430\u0448 \u043e\u0442\u0432\u0435\u0442 \u2026",feedbackTitle:"\u041c\u043e\u0436\u0435\u0442\u0435 \u043b\u0438 \u0412\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e \u044d\u0442\u043e\u0439 \u0442\u0435\u043c\u0435?",feedback:"\u0425\u043e\u0442\u0438\u0442\u0435 \u043b\u0438 \u0412\u044b \u0435\u0449\u0451 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u043e\u043e\u0431\u0449\u0438\u0442\u044c? (\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e)",done:"\u0411\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!",doneText:"\u0412\u0430\u0448 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u044b\u0439 \u043e\u0442\u0432\u0435\u0442 \u0431\u044b\u043b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d.",moreLink:"\u042f \u0445\u043e\u0447\u0443 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e PERSENTIS Care.",progress:"\u0412\u043e\u043f\u0440\u043e\u0441",selectRating:"\u042d\u0442\u043e\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c.",anonymous:"100 % \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e",welcomeFor:"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 PERSENTIS Care \u0434\u043b\u044f",introHeading:"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 PERSENTIS Care",welcomeText:"**\u0420\u0430\u0434\u044b, \u0447\u0442\u043e \u0412\u044b \u0437\u0434\u0435\u0441\u044c \u0438 \u0433\u043e\u0442\u043e\u0432\u044b \u0443\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043e\u0442\u0432\u0435\u0442\u0430\u043c \u043d\u0430 \u0442\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438!** \u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0437\u0430\u0439\u043c\u0443\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e **15 \u043c\u0438\u043d\u0443\u0442**. \u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0412\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u043e\u043f\u0440\u043e\u0441\u043d\u0438\u043a **\u0431\u0435\u0437 \u043f\u043e\u043c\u0435\u0445**.\n\n**\u0415\u0441\u043b\u0438 \u0412\u044b \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u0443\u0432\u0435\u0440\u0435\u043d\u044b \u0432 \u043a\u0430\u043a\u043e\u043c-\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0432\u0435\u0440\u044c\u0442\u0435\u0441\u044c \u0441\u0432\u043e\u0435\u043c\u0443 \u043f\u0435\u0440\u0432\u043e\u043c\u0443 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u044e \u2014 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u043d\u043e \u0438 \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u043d\u043e\u0435.**\n\n**\u0412\u0430\u0448\u0438 \u043e\u0442\u0437\u044b\u0432\u044b \u0438\u043c\u0435\u044e\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:** \u043e\u043d\u0438 \u043f\u043e\u043c\u043e\u0433\u0430\u044e\u0442 \u0412\u0430\u0448\u0435\u043c\u0443 \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b\u044e \u0441\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0442\u0440\u0443\u0434\u0430 \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043c\u0435\u0440\u044b.\n\n**\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0447\u0443\u0432\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438: \u0432\u0441\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0437\u0434\u0435\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0441\u0442\u0440\u043e\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 PERSENTIS, \u0432\u0441\u0435\u0433\u0434\u0430 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043a \u0446\u0435\u043b\u044b\u043c \u0433\u0440\u0443\u043f\u043f\u0430\u043c \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432.**\n\n\u0421\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f **\u0431\u0435\u0437 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0438\u043c\u0435\u043d\u0438 \u0438\u043b\u0438 \u0430\u0434\u0440\u0435\u0441\u0430 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b**. \u041e\u0446\u0435\u043d\u043a\u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u0430\u043c \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u0449\u0435\u0433\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430. **\u0412\u0441\u0435 \u043e\u0442\u0432\u0435\u0442\u044b** \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0412\u0430\u0448 \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 **\u0432 \u043e\u0431\u043e\u0431\u0449\u0451\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435**. \u0414\u043b\u044f \u0437\u0430\u0449\u0438\u0442\u044b \u0412\u0430\u0448\u0435\u0439 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438 \u0438 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0438 \u0412\u0430\u0448\u0438\u0445 \u043a\u043e\u043b\u043b\u0435\u0433 **\u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043d\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0439\u0442\u0435 \u0438\u043c\u0435\u043d\u0430**!",consentTitle:"\u041d\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0412\u0430\u0448\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435",consentP1:"\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c \u044f \u043f\u0440\u044f\u043c\u043e \u0441\u043e\u0433\u043b\u0430\u0448\u0430\u044e\u0441\u044c \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043e\u043f\u0440\u043e\u0441\u043e\u043c PERSENTIS \u043d\u0430 (i) \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0445 \u043c\u043d\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0432\u043e\u0437\u0440\u0430\u0441\u0442\u043d\u0430\u044f \u0433\u0440\u0443\u043f\u043f\u0430, \u043f\u043e\u043b, \u0434\u043e\u043b\u0436\u043d\u043e\u0441\u0442\u044c \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u043e\u0442\u0434\u0435\u043b \u0438 \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b), \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043c\u043e\u0433\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 PERSENTIS GmbH \u0438 \u0435\u0451 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u0446\u0435\u043d\u043a\u0438 \u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 (ii) \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0438 \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445 \u043c\u043e\u0433\u0443\u0442 \u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u0437\u0430\u043a\u0430\u0437\u0447\u0438\u043a\u0443.",consentP2a:"\u042f \u
2043c\u043e\u0433\u0443 \u0432 \u043b\u044e\u0431\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043e\u0437\u0432\u0430\u0442\u044c \u044d\u0442\u043e \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435 \u043f\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u0435 \u043d\u0430 \u0430\u0434\u0440\u0435\u0441 [email protected] \u0438\u043b\u0438 \u0432 \u043f\u0438\u0441\u044c\u043c\u0435\u043d\u043d\u043e\u0439 \u0444\u043e\u0440\u043c\u0435 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u041e\u0442\u0437\u044b\u0432 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u043d\u0435 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u0430\u0432\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0451\u043d\u043d\u043e\u0439 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u044f \u0434\u043e \u0435\u0433\u043e \u043e\u0442\u0437\u044b\u0432\u0430. \u0421 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439 \u043e \u0437\u0430\u0449\u0438\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e Art 13 DSGVO \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f ",consentLinkText:"\u0417\u0414\u0415\u0421\u042c",consentP2b:".",consentCheckbox:"\u042f \u0432\u044b\u0440\u0430\u0436\u0430\u044e \u0441\u0432\u043e\u0451 \u043f\u0440\u044f\u043c\u043e\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435.",consentRequired:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0434\u0430\u0439\u0442\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c.",assignTitle:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u0442\u043d\u0435\u0441\u0438\u0442\u0435 \u0441\u0435\u0431\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438\u0437 \u043e\u0442\u0434\u0435\u043b\u043e\u0432.",assignSubtitle:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0412\u0430\u0448 \u043e\u0442\u0434\u0435\u043b (\u0444\u0438\u043b\u0438\u0430\u043b | \u043e\u0442\u0434\u0435\u043b).",assignPlaceholder:"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b",assignRequired:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043e\u0442\u0434\u0435\u043b.",questionIntro:"\u041d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0412\u0430\u0448\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e?",answered:"\u043e\u0442\u0432\u0435\u0447\u0435\u043d\u043e",quotaReachedMsg:"\u0412\u0430\u0448\u0435 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043e \u2014 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043f\u0430\u0441\u0438\u0431\u043e!",quotaHintPre:"\u0412\u0430\u0448\u0435 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u043e \u043f\u0440\u0438 ",quotaHintPost:" % \u043e\u0442\u0432\u0435\u0447\u0435\u043d\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432.",selectPlaceholder:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u2026",fastdoneTitle:"\u041f\u043e\u0447\u0442\u0438 \u0433\u043e\u0442\u043e\u0432\u043e",sozioTitle:"\u0421\u043e\u0446\u0438\u043e\u0434\u0435\u043c\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435",sozioNote:"\u042d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u043e\u0431\u0440\u043e\u0432\u043e\u043b\u044c\u043d\u044b\u043c\u0438 \u0438 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u0435.",likert:["\u0421\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d(-\u043d\u0430)","\u0421\u043a\u043e\u0440\u0435\u0435 \u043d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d(-\u043d\u0430)","\u0418 \u0434\u0430, \u0438 \u043d\u0435\u0442","\u0421\u043a\u043e\u0440\u0435\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d(-\u043d\u0430)","\u041f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0433\u043b\u0430\u0441\u0435\u043d(-\u043d\u0430)"]},tr:{intro:"Anonim \xe7al\u0131\u015fan anketi",start:"Anketi ba\u015flat",next:"\u0130leri",back:"Geri",submit:"G\xf6nder",positive:"Olumlu y\xf6nler (iste\u011fe ba\u011fl\u0131)",negative:"Olumsuz y\xf6nler (iste\u011fe ba\u011fl\u0131)",other:"Di\u011fer \u2026",answerHere:"Yan\u0131t\u0131n\u0131z \u2026",feedbackTitle:"Bu konuyla ilgili eklemek istedi\u011finiz bir \u015fey var m\u0131?",feedback:"Ba\u015fka bir \u015fey payla\u015fmak ister misiniz? (iste\u011fe ba\u011fl\u0131)",done:"Te\u015fekk\xfcr ederiz!",doneText:"Anonim yan\u0131t\u0131n\u0131z iletildi.",moreLink:"PERSENTIS Care hakk\u0131nda daha fazla bilgi edinmek istiyorum.",progress:"Soru",selectRating:"Bu soru zorunludur.",anonymous:"%100 anonim",welcomeFor:"\u015eunun i\xe7in PERSENTIS Care'e ho\u015f geldiniz:",introHeading:"PERSENTIS Care'e ho\u015f geldiniz",welcomeText:"**Burada olman\u0131z ve i\u015f y\xfck\xfc konusunda birka\xe7 soruyu yan\u0131tlamak i\xe7in zaman ay\u0131rman\u0131z ne g\xfczel!** Sorular\u0131n yan\u0131tlanmas\u0131 yakla\u015f\u0131k **15 dakika** s\xfcrecektir. En iyisi, bu anketi **rahats\u0131z edilmeden** tamamlayabilece\u011finiz sakin bir yer se\xe7menizdir.\n\n**Bir sorudan tam emin de\u011filseniz, ilk i\xe7g\xfcd\xfcn\xfcze g\xf6re yan\u0131t verin - \xe7o\u011fu zaman do\u011fru olan odur.**\n\n**Geri bildirimleriniz b\xfcy\xfck \xf6nem ta\u015f\u0131maktad\u0131r:** \u0130\u015fvereninizin sa\u011fl\u0131kl\u0131 \xe7al\u0131\u015fma ko\u015fullar\u0131n\u0131 te\u015fvik etmesine ve gerekti\u011finde \xf6nlemler almas\u0131na yard\u0131mc\u0131 olur.\n\n**Kendinizi tamamen g\xfcvende hissedebilirsiniz: Burada toplanan t\xfcm veriler kesinlikle gizli tutulur. De\u011ferlendirmeler do\u011frudan PERSENTIS taraf\u0131ndan yap\u0131l\u0131r, her zaman anonimdir ve yaln\u0131zca \xe7al\u0131\u015fan gruplar\u0131na ili\u015fkindir.**\n\nVeri toplama i\u015flemi **isim veya e-posta adresi belirtilmeden** ger\xe7ekle\u015ftirilir. De\u011ferlendirmeler departmanlara g\xf6re birle\u015ftirilir ve genel sonu\xe7 olarak iletilir. A\xe7\u0131k u\xe7lu sorulara verilen **t\xfcm yan\u0131tlar**, i\u015fvereninize **toplu \u015fekilde** iletilir. Sizin ve \xe7al\u0131\u015fma arkada\u015flar\u0131n\u0131z\u0131n anonimli\u011fini korumak i\xe7in l\xfctfen **isim belirtmekten ka\xe7\u0131n\u0131n**!",consentTitle:"Onay\u0131n\u0131za ihtiyac\u0131m\u0131z var",consentP1:"\u0130\u015fbu beyanla, PERSENTIS anketi kapsam\u0131nda (i) taraf\u0131mdan belirtilen verilerin (ya\u015f grubu, cinsiyet, \u015firketteki pozisyon, \u015firkette \xe7al\u0131\u015fma s\xfcresi, departman ve a\xe7\u0131k u\xe7lu sorulara verilen yan\u0131tlar), m\xfcnferit durumlarda ki\u015fisel veri niteli\u011finde olabilece\u011fi dikkate al\u0131narak, anketlerin y\xfcr\xfct\xfclmesi, analizi ve de\u011ferlendirilmesi ama\xe7lar\u
20131 do\u011frultusunda PERSENTIS GmbH ve onun veri i\u015fleyenleri taraf\u0131ndan i\u015flenmesine ve (ii) m\xfcnferit durumlarda ki\u015fisel veri niteli\u011finde olabilecek toplula\u015ft\u0131r\u0131lm\u0131\u015f sonu\xe7lar\u0131n ve a\xe7\u0131k u\xe7lu sorulara verilen yan\u0131tlar\u0131n m\xfc\u015fteriye olu\u015fturulmas\u0131na ve iletilmesine a\xe7\u0131k\xe7a onay veriyorum.",consentP2a:"Bu onay\u0131 istedi\u011fim zaman [email protected] adresine e-posta g\xf6ndererek veya yaz\u0131l\u0131 olarak PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg adresine ba\u015fvurarak geri \xe7ekebilirim. Onay\u0131n geri \xe7ekilmesi, geri \xe7ekme an\u0131na kadar onaya dayan\u0131larak ger\xe7ekle\u015ftirilen i\u015flemenin hukuka uygunlu\u011funu etkilemez. Art 13 DSGVO uyar\u0131nca veri koruma bilgilendirmesi ",consentLinkText:"BURADA",consentP2b:" okunabilir.",consentCheckbox:"A\xe7\u0131k\xe7a onay veriyorum.",consentRequired:"Devam etmek i\xe7in l\xfctfen onay verin.",assignTitle:"L\xfctfen kendinizi bir departmana atay\u0131n.",assignSubtitle:"Departman\u0131n\u0131z\u0131 se\xe7in (\u015eube | Departman).",assignPlaceholder:"Departman se\xe7in",assignRequired:"L\xfctfen bir departman se\xe7in.",questionIntro:"A\u015fa\u011f\u0131daki ifade sizin i\xe7in ne \xf6l\xe7\xfcde ge\xe7erlidir?",answered:"yan\u0131tland\u0131",quotaReachedMsg:"Kat\u0131l\u0131m\u0131n\u0131z de\u011ferlendirmeye al\u0131nacakt\u0131r \u2013 te\u015fekk\xfcr ederiz!",quotaHintPre:"Kat\u0131l\u0131m\u0131n\u0131z, sorular\u0131n ",quotaHintPost:" %'i yan\u0131tland\u0131\u011f\u0131nda de\u011ferlendirmeye al\u0131nacakt\u0131r.",selectPlaceholder:"L\xfctfen se\xe7in \u2026",fastdoneTitle:"Neredeyse bitti",sozioTitle:"Sosyodemografik bilgiler",sozioNote:"Bu bilgiler tamamen g\xf6n\xfcll\xfcl\xfck esas\u0131na dayal\u0131d\u0131r ve hesaplamaya dahil edilmez.",likert:["Kesinlikle kat\u0131lm\u0131yorum","Pek kat\u0131lm\u0131yorum","K\u0131smen / k\u0131smen","Daha \xe7ok kat\u0131l\u0131yorum","Tamamen kat\u0131l\u0131yorum"]},ar:{intro:"\u0627\u0633\u062a\u0628\u064a\u0627\u0646 \u0645\u0648\u0638\u0641\u064a\u0646 \u0645\u062c\u0647\u0648\u0644 \u0627\u0644\u0647\u0648\u064a\u0629",start:"\u0628\u062f\u0621 \u0627\u0644\u0627\u0633\u062a\u0628\u064a\u0627\u0646",next:"\u0627\u0644\u062a\u0627\u0644\u064a",back:"\u0631\u062c\u0648\u0639",submit:"\u0625\u0631\u0633\u0627\u0644",positive:"\u0627\u0644\u062c\u0648\u0627\u0646\u0628 \u0627\u0644\u0625\u064a\u062c\u0627\u0628\u064a\u0629 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",negative:"\u0627\u0644\u062c\u0648\u0627\u0646\u0628 \u0627\u0644\u0633\u0644\u0628\u064a\u0629 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",other:"\u0623\u062e\u0631\u0649 \u2026",answerHere:"\u0625\u062c\u0627\u0628\u062a\u0643\u0645 \u2026",feedbackTitle:"\u0647\u0644 \u062a\u0648\u062f\u0648\u0646 \u0625\u0636\u0627\u0641\u0629 \u0645\u0644\u0627\u062d\u0638\u0629 \u0623\u062e\u0631\u0649 \u062d\u0648\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0636\u0648\u0639\u061f",feedback:"\u0647\u0644 \u062a\u0648\u062f\u0648\u0646 \u0625\u0628\u0644\u0627\u063a\u0646\u0627 \u0628\u0634\u064a\u0621 \u0622\u062e\u0631\u061f (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)",done:"\u0634\u0643\u0631\u0627\u064b \u062c\u0632\u064a\u0644\u0627\u064b!",doneText:"\u062a\u0645 \u0625\u0631\u0633\u0627\u0644 \u0625\u062c\u0627\u0628\u062a\u0643\u0645 \u0627\u0644\u0645\u062c\u0647\u0648\u0644\u0629.",moreLink:"\u0623\u0648\u062f \u0645\u0639\u0631\u0641\u0629 \u0627\u0644\u0645\u0632\u064a\u062f \u0639\u0646 PERSENTIS Care.",progress:"\u0627\u0644\u0633\u0624\u0627\u0644",selectRating:"\u0647\u0630\u0627 \u0627\u0644\u0633\u0624\u0627\u0644 \u0625\u0644\u0632\u0627\u0645\u064a.",anonymous:"\u0645\u062c\u0647\u0648\u0644 \u0627\u0644\u0647\u0648\u064a\u0629 100 %",welcomeFor:"\u0645\u0631\u062d\u0628\u0627\u064b \u0628\u0643\u0645 \u0641\u064a PERSENTIS Care \u0645\u0646 \u0623\u062c\u0644",introHeading:"\u0645\u0631\u062d\u0628\u0627\u064b \u0628\u0643\u0645 \u0641\u064a PERSENTIS Care",welcomeText:"**\u064a\u0633\u0631\u0651\u0646\u0627 \u0648\u062c\u0648\u062f\u0643\u0645 \u0647\u0646\u0627 \u0648\u062a\u062e\u0635\u064a\u0635 \u0628\u0639\u0636 \u0627\u0644\u0648\u0642\u062a \u0644\u0644\u0625\u062c\u0627\u0628\u0629 \u0639\u0646 \u0628\u0639\u0636 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u062d\u0648\u0644 \u0645\u0648\u0636\u0648\u0639 \u0639\u0628\u0621 \u0627\u0644\u0639\u0645\u0644!** \u0633\u062a\u0633\u062a\u063a\u0631\u0642 \u0627\u0644\u0625\u062c\u0627\u0628\u0629 \u0639\u0646 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u062d\u0648\u0627\u0644\u064a **15 \u062f\u0642\u064a\u0642\u0629**. \u0645\u0646 \u0627\u0644\u0623\u0641\u0636\u0644 \u0623\u0646 \u062a\u062e\u062a\u0627\u0631\u0648\u0627 \u0645\u0643\u0627\u0646\u0627\u064b \u0647\u0627\u062f\u0626\u0627\u064b \u064a\u0645\u0643\u0646\u0643\u0645 \u0641\u064a\u0647 \u0625\u0643\u0645\u0627\u0644 \u0647\u0630\u0627 \u0627\u0644\u0627\u0633\u062a\u0628\u064a\u0627\u0646 **\u062f\u0648\u0646 \u0625\u0632\u0639\u0627\u062c**.\n\n**\u0625\u0630\u0627 \u0644\u0645 \u062a\u0643\u0648\u0646\u0648\u0627 \u0645\u062a\u0623\u0643\u062f\u064a\u0646 \u062a\u0645\u0627\u0645\u0627\u064b \u0645\u0646 \u0625\u062d\u062f\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629\u060c \u0641\u0645\u0627 \u0639\u0644\u064a\u0643\u0645 \u0625\u0644\u0627 \u0627\u0644\u0627\u0639\u062a\u0645\u0627\u062f \u0639\u0644\u0649 \u0627\u0646\u0637\u0628\u0627\u0639\u0643\u0645 \u0627\u0644\u0623\u0648\u0644 - \u0641\u0647\u0630\u0627 \u064a\u0643\u0648\u0646 \u0635\u062d\u064a\u062d\u0627\u064b \u0641\u064a \u0627\u0644\u063a\u0627\u0644\u0628.**\n\n**\u0645\u0644\u0627\u062d\u0638\u0627\u062a\u0643\u0645 \u0630\u0627\u062a \u0623\u0647\u0645\u064a\u0629 \u0643\u0628\u064a\u0631\u0629:** \u0641\u0647\u064a \u062a\u0633\u0627\u0639\u062f \u0635\u0627\u062d\u0628 \u0627\u0644\u0639\u0645\u0644 \u0644\u062f\u064a\u0643\u0645 \u0639\u0644\u0649 \u062a\u0639\u0632\u064a\u0632 \u0638\u0631\u0648\u0641 \u0639\u0645\u0644 \u0635\u062d\u064a\u0629 \u0648\u0627\u062a\u062e\u0627\u0630 \u0627\u0644\u062a\u062f\u0627\u0628\u064a\u0631 \u0639\u0646\u062f \u0627\u0644\u062d\u0627\u062c\u0629.\n\n**\u064a\u0645\u0643\u0646\u0643\u0645 \u0623\u0646 \u062a\u0634\u0639\u0631\u0648\u0627 \u0628\u0623\u0645\u0627\u0646 \u062a\u0627\u0645: \u062c\u0645\u064a\u0639 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u064a \u064a\u062a\u0645 \u062c\u0645\u0639\u0647\u0627 \u0647\u0646\u0627 \u062a\u064f\u0639\u0627\u0645\u0644 \u0628\u0633\u0631\u064a\u0629 \u062a\u0627\u0645\u0629. \u062a\u062a\u0645 \u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u062a\u0642\u064a\u064a\u0645 \u0645\u0628\u0627\u0634\u0631\u0629 \u0644\u062f\u0649 PERSENTIS\u060c \u0648\u062a\u0643\u0648\u0646 \u062f\u0627\u0626\u0645\u0627\u064b \u0645\u062c\u0647\u0648\u0644\u0629 \u0627\u0644\u0647\u0648\u064a\u0629\u
2060c \u0648\u0644\u0627 \u062a\u0634\u064a\u0631 \u0625\u0644\u0627 \u0625\u0644\u0649 \u0645\u062c\u0645\u0648\u0639\u0627\u062a \u0643\u0627\u0645\u0644\u0629 \u0645\u0646 \u0627\u0644\u0623\u0634\u062e\u0627\u0635.**\n\n\u064a\u062a\u0645 \u062c\u0645\u0639 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a **\u0645\u0646 \u062f\u0648\u0646 \u0630\u0643\u0631 \u0627\u0644\u0627\u0633\u0645 \u0623\u0648 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a**. \u062a\u064f\u062c\u0645\u0639 \u0627\u0644\u062a\u0642\u064a\u064a\u0645\u0627\u062a \u062d\u0633\u0628 \u0627\u0644\u0623\u0642\u0633\u0627\u0645 \u0648\u062a\u064f\u0633\u0644\u0651\u064e\u0645 \u0643\u0646\u062a\u064a\u062c\u0629 \u0625\u062c\u0645\u0627\u0644\u064a\u0629. \u0648\u064a\u062a\u0644\u0642\u0649 \u0635\u0627\u062d\u0628 \u0627\u0644\u0639\u0645\u0644 **\u062c\u0645\u064a\u0639 \u0627\u0644\u0625\u062c\u0627\u0628\u0627\u062a** \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0645\u0641\u062a\u0648\u062d\u0629 **\u0628\u0635\u064a\u063a\u0629 \u0645\u062c\u0645\u0651\u0639\u0629**. \u0648\u0644\u062d\u0645\u0627\u064a\u062a\u0643\u0645 \u0648\u062d\u0645\u0627\u064a\u0629 \u0645\u062c\u0647\u0648\u0644\u064a\u0629 \u0632\u0645\u0644\u0627\u0626\u0643\u0645\u060c **\u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u0645\u062a\u0646\u0627\u0639 \u0639\u0646 \u0630\u0643\u0631 \u0627\u0644\u0623\u0633\u0645\u0627\u0621**!",consentTitle:"\u0646\u062d\u062a\u0627\u062c \u0625\u0644\u0649 \u0645\u0648\u0627\u0641\u0642\u062a\u0643\u0645",consentP1:"\u0623\u0648\u0627\u0641\u0642 \u0628\u0645\u0648\u062c\u0628 \u0647\u0630\u0627 \u0635\u0631\u0627\u062d\u0629\u064b\u060c \u0641\u064a\u0645\u0627 \u064a\u062a\u0639\u0644\u0642 \u0628\u0627\u0633\u062a\u0628\u064a\u0627\u0646 PERSENTIS\u060c \u0639\u0644\u0649 (i) \u0645\u0639\u0627\u0644\u062c\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u064a \u0642\u062f\u0645\u062a\u0647\u0627 (\u0627\u0644\u0641\u0626\u0629 \u0627\u0644\u0639\u0645\u0631\u064a\u0629\u060c \u0627\u0644\u062c\u0646\u0633\u060c \u0627\u0644\u0645\u0646\u0635\u0628 \u0641\u064a \u0627\u0644\u0634\u0631\u0643\u0629\u060c \u0645\u062f\u0629 \u0627\u0644\u0627\u0646\u062a\u0645\u0627\u0621 \u0625\u0644\u0649 \u0627\u0644\u0634\u0631\u0643\u0629\u060c \u0627\u0644\u0642\u0633\u0645\u060c \u0648\u0627\u0644\u0625\u062c\u0627\u0628\u0627\u062a \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0645\u0641\u062a\u0648\u062d\u0629)\u060c \u0648\u0627\u0644\u062a\u064a \u0642\u062f \u062a\u0643\u0648\u0646 \u0641\u064a \u0628\u0639\u0636 \u0627\u0644\u062d\u0627\u0644\u0627\u062a \u0628\u064a\u0627\u0646\u0627\u062a \u0634\u062e\u0635\u064a\u0629\u060c \u0645\u0646 \u0642\u0628\u0644 PERSENTIS GmbH \u0648\u0645\u0639\u0627\u0644\u062c\u064a \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062a\u0627\u0628\u0639\u064a\u0646 \u0644\u0647\u0627 \u0644\u0623\u063a\u0631\u0627\u0636 \u062a\u0646\u0641\u064a\u0630 \u0627\u0644\u0627\u0633\u062a\u0628\u064a\u0627\u0646\u0627\u062a \u0648\u062a\u062d\u0644\u064a\u0644\u0647\u0627 \u0648\u062a\u0642\u064a\u064a\u0645\u0647\u0627\u060c \u0648\u0643\u0630\u0644\u0643 (ii) \u0625\u0639\u062f\u0627\u062f \u0627\u0644\u0646\u062a\u0627\u0626\u062c \u0627\u0644\u0645\u062c\u0645\u0651\u0639\u0629 \u0648\u0627\u0644\u0625\u062c\u0627\u0628\u0627\u062a \u0639\u0644\u0649 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0645\u0641\u062a\u0648\u062d\u0629\u060c \u0627\u0644\u062a\u064a \u0642\u062f \u062a\u0643\u0648\u0646 \u0641\u064a \u0628\u0639\u0636 \u0627\u0644\u062d\u0627\u0644\u0627\u062a \u0628\u064a\u0627\u0646\u0627\u062a \u0634\u062e\u0635\u064a\u0629\u060c \u0648\u0625\u0631\u0633\u0627\u0644\u0647\u0627 \u0625\u0644\u0649 \u0627\u0644\u062c\u0647\u0629 \u0627\u0644\u0645\u062a\u0639\u0627\u0642\u062f\u0629.",consentP2a:"\u064a\u0645\u0643\u0646\u0646\u064a \u0633\u062d\u0628 \u0647\u0630\u0647 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0641\u064a \u0623\u064a \u0648\u0642\u062a \u0639\u0628\u0631 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0625\u0644\u0649 [email protected] \u0623\u0648 \u062e\u0637\u064a\u0627\u064b \u0625\u0644\u0649 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u0648\u0644\u0627 \u064a\u0624\u062b\u0631 \u0633\u062d\u0628 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0639\u0644\u0649 \u0642\u0627\u0646\u0648\u0646\u064a\u0629 \u0627\u0644\u0645\u0639\u0627\u0644\u062c\u0629 \u0627\u0644\u062a\u064a \u062a\u0645\u062a \u0627\u0633\u062a\u0646\u0627\u062f\u0627\u064b \u0625\u0644\u0649 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0642\u0628\u0644 \u0633\u062d\u0628\u0647\u0627. \u064a\u0645\u0643\u0646 \u0627\u0644\u0627\u0637\u0644\u0627\u0639 \u0639\u0644\u0649 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u062d\u0645\u0627\u064a\u0629 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0648\u0641\u0642\u0627\u064b \u0644\u0644\u0645\u0627\u062f\u0629 Art 13 DSGVO ",consentLinkText:"\u0647\u0646\u0627",consentP2b:" .",consentCheckbox:"\u0623\u0648\u0627\u0641\u0642 \u0635\u0631\u0627\u062d\u0629\u
2064b.",consentRequired:"\u064a\u0631\u062c\u0649 \u0627\u0644\u0645\u0648\u0627\u0641\u0642\u0629 \u0644\u0644\u0645\u062a\u0627\u0628\u0639\u0629.",assignTitle:"\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0642\u0633\u0645 \u0627\u0644\u0630\u064a \u062a\u0646\u062a\u0645\u0648\u0646 \u0625\u0644\u064a\u0647.",assignSubtitle:"\u0627\u062e\u062a\u0627\u0631\u0648\u0627 \u0642\u0633\u0645\u0643\u0645 (\u0627\u0644\u0641\u0631\u0639 | \u0627\u0644\u0642\u0633\u0645).",assignPlaceholder:"\u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0642\u0633\u0645",assignRequired:"\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0642\u0633\u0645.",questionIntro:"\u0625\u0644\u0649 \u0623\u064a \u0645\u062f\u0649 \u062a\u0646\u0637\u0628\u0642 \u0639\u0644\u064a\u0643\u0645 \u0627\u0644\u0639\u0628\u0627\u0631\u0629 \u0627\u0644\u062a\u0627\u0644\u064a\u0629\u061f",answered:"\u062a\u0645\u062a \u0627\u0644\u0625\u062c\u0627\u0628\u0629",quotaReachedMsg:"\u0633\u062a\u064f\u062d\u062a\u0633\u0628 \u0645\u0634\u0627\u0631\u0643\u062a\u0643\u0645 \u2013 \u0634\u0643\u0631\u0627\u064b \u062c\u0632\u064a\u0644\u0627\u064b!",quotaHintPre:"\u0633\u062a\u064f\u062d\u062a\u0633\u0628 \u0645\u0634\u0627\u0631\u0643\u062a\u0643\u0645 \u0627\u0628\u062a\u062f\u0627\u0621\u064b \u0645\u0646 ",quotaHintPost:" % \u0645\u0646 \u0627\u0644\u0623\u0633\u0626\u0644\u0629 \u0627\u0644\u0645\u064f\u062c\u0627\u0628 \u0639\u0646\u0647\u0627.",selectPlaceholder:"\u064a\u0631\u062c\u0649 \u0627\u0644\u0627\u062e\u062a\u064a\u0627\u0631 \u2026",fastdoneTitle:"\u0623\u0648\u0634\u0643\u062a\u0645 \u0639\u0644\u0649 \u0627\u0644\u0627\u0646\u062a\u0647\u0627\u0621",sozioTitle:"\u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u0627\u062c\u062a\u0645\u0627\u0639\u064a\u0629 \u0627\u0644\u062f\u064a\u0645\u0648\u063a\u0631\u0627\u0641\u064a\u0629",sozioNote:"\u0647\u0630\u0647 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0637\u0648\u0639\u064a\u0629 \u062a\u0645\u0627\u0645\u0627\u064b \u0648\u0644\u0646 \u062a\u064f\u0624\u062e\u0630 \u0641\u064a \u0627\u0644\u062d\u0633\u0628\u0627\u0646 \u0641\u064a \u0639\u0645\u0644\u064a\u0629 \u0627\u0644\u0627\u062d\u062a\u0633\u0627\u0628.",likert:["\u0644\u0627 \u0623\u0648\u0627\u0641\u0642 \u0625\u0637\u0644\u0627\u0642\u0627\u064b","\u0644\u0627 \u0623\u0648\u0627\u0641\u0642 \u0625\u0644\u0649 \u062d\u062f \u0645\u0627","\u0625\u0644\u0649 \u062d\u062f \u0645\u0627 / \u0625\u0644\u0649 \u062d\u062f \u0645\u0627","\u0623\u0648\u0627\u0641\u0642 \u0625\u0644\u0649 \u062d\u062f \u0645\u0627","\u0623\u0648\u0627\u0641\u0642 \u062a\u0645\u0627\u0645\u0627\u064b"]},zh:{intro:"\u533f\u540d\u5458\u5de5\u8c03\u67e5",start:"\u5f00\u59cb\u8c03\u67e5",next:"\u4e0b\u4e00\u6b65",back:"\u8fd4\u56de",submit:"\u63d0\u4ea4",positive:"\u79ef\u6781\u65b9\u9762\uff08\u53ef\u9009\uff09",negative:"\u6d88\u6781\u65b9\u9762\uff08\u53ef\u9009\uff09",other:"\u5176\u4ed6 \u2026",answerHere:"\u60a8\u7684\u56de\u7b54 \u2026",feedbackTitle:"\u5173\u4e8e\u8fd9\u4e2a\u4e3b\u9898\uff0c\u60a8\u8fd8\u6709\u4ec0\u4e48\u60f3\u8865\u5145\u7684\u5417\uff1f",feedback:"\u60a8\u8fd8\u60f3\u8865\u5145\u4ec0\u4e48\u5417\uff1f\uff08\u53ef\u9009\uff09",done:"\u975e\u5e38\u611f\u8c22\uff01",doneText:"\u60a8\u7684\u533f\u540d\u56de\u7b54\u5df2\u63d0\u4ea4\u3002",moreLink:"\u6211\u60f3\u8fdb\u4e00\u6b65\u4e86\u89e3 PERSENTIS Care\u3002",progress:"\u95ee\u9898",selectRating:"\u8fd9\u662f\u4e00\u4e2a\u5fc5\u7b54\u9898\u3002",anonymous:"100 % \u533f\u540d",welcomeFor:"\u6b22\u8fce\u53c2\u52a0 PERSENTIS Care\uff0c\u9002\u7528\u4e8e",introHeading:"\u6b22\u8fce\u4f7f\u7528 PERSENTIS Care",welcomeText:"**\u5f88\u9ad8\u5174\u60a8\u6765\u5230\u8fd9\u91cc\uff0c\u5e76\u62bd\u51fa\u65f6\u95f4\u56de\u7b54\u51e0\u4e2a\u6709\u5173\u5de5\u4f5c\u8d1f\u62c5\u7684\u95ee\u9898\uff01** \u56de\u7b54\u8fd9\u4e9b\u95ee\u9898\u5927\u7ea6\u9700\u8981 **15 \u5206\u949f**\u3002\u6700\u597d\u8bf7\u60a8\u627e\u4e00\u4e2a\u5b89\u9759\u7684\u5730\u65b9\uff0c\u4ee5\u4fbf\u80fd**\u4e0d\u53d7\u6253\u6270\u5730**\u5b8c\u6210\u8fd9\u4efd\u95ee\u5377\u3002\n\n**\u5982\u679c\u60a8\u5bf9\u67d0\u4e2a\u95ee\u9898\u4e0d\u592a\u786e\u5b9a\uff0c\u8bf7\u6309\u7167\u60a8\u7684\u7b2c\u4e00\u76f4\u89c9\u4f5c\u7b54\u2014\u2014\u8fd9\u901a\u5e38\u5c31\u662f\u6b63\u786e\u7684\u3002**\n\n**\u60a8\u7684\u53cd\u9988\u975e\u5e38\u91cd\u8981\uff1a** \u5b83\u4eec\u6709\u52a9\u4e8e\u60a8\u7684\u96c7\u4e3b\u4fc3\u8fdb\u5065\u5eb7\u7684\u5de5\u4f5c\u6761\u4ef6\uff0c\u5e76\u5728\u5fc5\u8981\u65f6\u91c7\u53d6\u76f8\u5e94\u63aa\u65bd\u3002\n\n**\u60a8\u5b8c\u5168\u53ef\u4ee5\u653e\u5fc3\uff1a\u8fd9\u91cc\u6536\u96c6\u7684\u6240\u6709\u6570\u636e\u90fd\u4f1a\u88ab\u4e25\u683c\u4fdd\u5bc6\u5904\u7406\u3002\u5206\u6790\u5c06\u76f4\u63a5\u7531 PERSENTIS \u8fdb\u884c\uff0c\u59cb\u7ec8\u4ee5\u533f\u540d\u65b9\u5f0f\u5f00\u5c55\uff0c\u5e76\u4e14\u4ec5\u9488\u5bf9\u5b8c\u6574\u7684\u4eba\u5458\u7fa4\u4f53\u3002**\n\n\u6570\u636e\u6536\u96c6**\u4e0d\u4f1a\u8981\u6c42\u63d0\u4f9b\u59d3\u540d\u6216\u7535\u5b50\u90ae\u7bb1\u5730\u5740**\u3002\u8bc4\u4ef7\u7ed3\u679c\u5c06\u6309\u90e8\u95e8\u6c47\u603b\uff0c\u5e76\u4ee5\u603b\u4f53\u7ed3\u679c\u7684\u5f62\u5f0f\u63d0\u4ea4\u3002\u5bf9\u4e8e\u5f00\u653e\u6027\u95ee\u9898\uff0c\u60a8\u7684\u96c7\u4e3b\u5c06**\u4ec5\u4ee5\u6c47\u603b\u5f62\u5f0f**\u6536\u5230**\u6240\u6709\u56de\u7b54**\u3002\u4e3a\u4fdd\u62a4\u60a8\u672c\u4eba\u53ca\u60a8\u540c\u4e8b\u7684\u533f\u540d\u6027\uff0c**\u8bf7\u4e0d\u8981\u63d0\u53ca\u59d3\u540d**\uff01",consentTitle:"\u6211\u4eec\u9700\u8981\u60a8\u7684\u540c\u610f",consentP1:"\u672c\u4eba\u5728\u6b64\u5c31 PERSENTIS \u8c03\u67e5\u660e\u786e\u540c\u610f\uff1a(i) \u7531 PERSENTIS GmbH \u53ca\u5176\u53d7\u6258\u5904\u7406\u65b9\u51fa\u4e8e\u5b9e\u65bd\u3001\u5206\u6790\u548c\u8bc4\u4f30\u8c03\u67e5\u4e4b\u76ee\u7684\uff0c\u5904\u7406\u672c\u4eba\u6240\u63d0\u4f9b\u7684\u6570\u636e\uff08\u5e74\u9f84\u7ec4\u3001\u6027\u522b\u3001\u5728\u516c\u53f8\u4e2d\u7684\u804c\u4f4d\u3001\u5728\u804c\u5e74\u9650\u3001\u90e8\u95e8\u4ee5\u53ca\u5bf9\u5f00\u653e\u6027\u95ee\u9898\u7684\u56de\u7b54\uff09\uff0c\u8fd9\u4e9b\u6570\u636e\u5728\u4e2a\u522b\u60c5\u51b5\u4e0b\u53ef\u80fd\u5c5e\u4e8e\u4e2a\u4eba\u6570\u636e\uff1b\u4ee5\u53ca (ii) \u5c06\u6c47\u603b\u7ed3\u679c\u548c\u5bf9\u5f00\u653e\u6027\u95ee\u9898\u7684\u56de\u7b54\uff08\u5728\u4e2a\u522b\u60c5\u51b5\u4e0b\u53ef\u80fd\u5c5e\u4e8e\u4e2a\u4eba\u6570\u636e\uff09\u5236\u4f5c\u5e76\u4f20\u9001\u7ed9\u59d4\u6258\u65b9\u3002",consentP2a:"\u6211\u53ef\u4ee5\u968f\u65f6\u901a\u8fc7\u7535\u5b50\u90ae\u4ef6\u53d1\u9001\u81f3 [email protected] \u6216\u4e66\u9762\u5bc4\u9001\u81f3 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg \u64a4\u56de\u672c\u540c\u610f\u3002\u64a4\u56de\u540c\u610f\u4e0d\u5f71\u54cd\u5728\u64a4\u56de\u4e4b\u524d\u57fa\u4e8e\u540c\u610f\u800c\u8fdb\u884c\u7684\u6570\u636e\u5904\u7406\u7684\u5408\u6cd5\u6027\u3002\u6839\u636e Art 13 DSGVO \u7684\u6570\u636e\u4fdd\u62a4\u4fe1\u606f\u53ef\u5728 ",consentLinkText:"\u6b64\u5904",consentP2b:" \u67e5\u9605\u3002",consentCheckbox:"\u6211\u660e\u786e\u8868\u793a\u540c\u610f\u3002",consentRequired:"\u8bf7\u5148\u540c\u610f\u540e\u518d\u7ee7\u7eed\u3002",assignTitle:"\u8bf7\u5c06\u81ea\u5df1\u5206\u914d\u5230\u4e00\u4e2a\u90e8\u95e8\u3002",assignSubtitle:"\u8bf7\u9009\u62e9\u60a8\u7684\u90e8\u95e8\uff08\u5206\u652f\u673a\u6784 | \u90e8\u95e8\uff09\u3002",assignPlaceholder:"\u9009\u62e9\u90e8\u95e8",assignRequired:"\u8bf7\u9009\u62e9\u4e00\u4e2a\u90e8\u95e8\u3002",questionIntro:"\u4ee5\u4e0b\u9648\u8ff0\u5bf9\u60a8\u6765\u8bf4\u5728\u591a\u5927\u7a0b\u5ea6\u4e0a\u5c5e\u5b9e\uff1f",answered:"\u5df2\u56de\u7b54",quotaReachedMsg:"\u60a8\u7684\u53c2\u4e0e\u5c06\u88ab\u8ba1\u5165\u2014\u2014\u975e\u5e38\u611f\u8c22\uff01",quotaHintPre:"\u5f53\u60a8\u56de\u7b54\u8fbe\u5230 ",quotaHintPost:" % \u7684\u95ee\u9898\u540e\uff0c\u60a8\u7684\u53c2\u4e0e\u5c06\u88ab\u8ba1\u5165\u3002",selectPlaceholder:"\u8bf7\u9009\u62e9 \u2026",fastdoneTitle:"\u5373\u5c06\u5b8c\u6210",sozioTitle:"\u793e\u4f1a\u4eba\u53e3\u7edf\u8ba1\u4fe1\u606f",sozioNote:"\u8fd9\u4e9b\u4fe1\u606f\u5b8c\u5168\u81ea\u613f\u586b\u5199\uff0c\u4e0d\u4f1a\u7eb3\u5165\u8ba1\u7b97\u3002",likert:["\u5b8c\u5168\u4e0d\u540c\u610f","\u4e0d\u592a\u540c\u610f","\u90e8\u5206\u540c\u610f / \u90e8\u5206\u4e0d\u540c\u610f","\u6bd4\u8f83\u540c\u610f","\u5b8c\u5168\u540c\u610f"]},ja:{intro:"\u533f\u540d\u5f93\u696d\u54e1\u30a2\u30f3\u30b1\u30fc\u30c8",start:"\u30a2\u30f3\u30b1\u30fc\u30c8\u3092\u958b\u59cb",next:"\u6b21\u3078",back:"\u623b\u308b",submit:"\u9001\u4fe1",positive:"\u826f\u3044\u70b9\uff08\u4efb\u610f\uff09",negative:"\u60aa\u3044\u70b9\uff08\u4efb\u610f\uff09",other:"\u305d\u306e\u4ed6 \u2026",answerHere:"\u3054\u56de\u7b54 \u2026",feedbackTitle:"\u3053\u306e\u30c6\u30fc\u30de\u306b\u3064\u3044\u3066\u3001\u307b\u304b\u306b\u4f55\u304b\u3054\u610f\u898b\u306f\u3042\u308a\u307e\u3059\u304b\uff1f",feedback:"\u307b\u304b\u306b\u4f55\u304b\u304a\u4f1d\u3048\u306b\u306a\u308a\u305f\u3044\u3053\u3068\u306f\u3042\u308a\u307e\u3059\u304b\uff1f\uff08\u4efb\u610f\uff09",done:"\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\uff01",doneText:"\u533f\u540d\u306e\u3054\u56de\u7b54\u304c\u9001\u4fe1\u3055\u308c\u307e\u3057\u305f\u3002",moreLink:"PERSENTIS Care\u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u3067\u3059\u3002",progress:"\u8cea\u554f",selectRating:"\u3053\u306e\u8cea\u554f\u306f\u5fc5\u9808\u3067\u3059\u3002",anonymous:"100 % \u533f\u540d",welcomeFor:"\u3088\u3046\u3053\u305d\u3001PERSENTIS Care\u3078",introHeading:"PERSENTIS Care\u3078\u3088\u3046\u3053\u305d",welcomeText:"**\u3054\u53c2\u52a0\u3044\u305f\u3060\u304d\u3001\u307e\u305f\u4ed5\u4e8b\u306e\u8ca0\u62c5\u306b\u95a2\u3059\u308b\u3044\u304f\u3064\u304b\u306e\u8cea\u554f\u306b\u304a\u6642\u9593\u3092\u5272\u3044\u3066\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01** \u8cea\u554f\u3078\u306e\u56de\u7b54\u306b\u306f\u7d04 **15\u5206** \u304b\u304b\u308a\u307e\u3059\u3002\u3067\u304d\u308b\u3060\u3051\u3001**\u90aa\u9b54\u3055\u308c\u305a\u306b** \u3053\u306e\u30a2\u30f3\u30b1\u30fc\u30c8\u306b\u56de\u7b54\u3067\u304d\u308b\u9759\u304b\u306a\u5834\u6240\u3092\u304a\u9078\u3073\u304f\u3060\u3055\u3044\u3002\n\n**\u5404\u8cea\u554f\u306b\u5b8c\u5168\u306a\u78ba\u4fe1\u304c\u6301\u3066\u306a\u3044\u5834\u5408\u306f\u3001\u6700\u521d\u306e\u76f4\u611f\u306b\u5f93\u3063\u3066\u304a\u7b54\u3048\u304f\u3060\u3055\u3044\u3002\u305f\u3044\u3066\u3044\u305d\u308c\u304c\u6b63\u3057\u3044\u7b54\u3048\u3067\u3059\u3002**\n\n**\u7686\u69d8\u304b\u3089\u306e\u3054\u610f\u898b\u306f\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\uff1a** \u305d\u308c\u306b\u3088\u308a\u3001\u96c7\u7528\u4e3b\u306f\u5065\u5eb7\u7684\u306a\u52b4\u50cd\u74b0\u5883\u3092\u4fc3\u9032\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u5bfe\u7b56\u3092\u8b1b\u3058\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\n\n**\u3069\u3046\u305e\u5b89\u5fc3\u3057\u3066\u3054\u56de\u7b54\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u53ce\u96c6\u3055\u308c\u308b\u3059\u3079\u3066\u306e\u30c7\u30fc\u30bf\u306f\u53b3\u91cd\u306b\u6a5f\u5bc6\u3068\u3057\u3066\u53d6\u308a\u6271\u308f\u308c\u307e\u3059\u3002\u96c6\u8a08\u30fb\u5206\u6790\u306fPERSENTIS\u304c\u76f4\u63a5\u884c\u3044\u3001\u5e38\u306b\u533f\u540d\u3067\u5b9f\u65bd\u3055\u308c\u3001\u500b\u4eba\u3067\u306f\u306a\u304f\u96c6\u56e3\u5168\u4f53\u306e\u307f\u3092\u5bfe\u8c61\u3068\u3057\u307e\u3059\u3002**\n\n\u30c7\u30fc\u30bf\u53ce\u96c6\u306f **\u6c0f\u540d\u3084\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u306e\u8a18\u8f09\u306a\u3057\u3067** \u884c\u308f\u308c\u307e\u3059\u3002\u8a55\u4fa1\u306f\u90e8\u7f72\u3054\u3068\u306b\u96c6\u8a08\u3055\u308c\u3001\u5168\u4f53\u7d50\u679c\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u81ea\u7531\u8a18\u8ff0\u306e\u8cea\u554f\u3078\u306e **\u3059\u3079\u3066\u306e\u56de\u7b54** \u306f\u3001\u96c7\u7528\u4e3b\u306b **\u53d6\u308a\u307e\u3068\u3081\u305f\u5f62\u3067** \u63d0\u4f9b\u3055\u308c\u307e\u3059\u3002\u3054\u81ea\u8eab\u3068\u540c\u50da\u306e\u533f\u540d\u6027\u3092\u5b88\u308b\u305f\u3081\u3001**\u6c0f\u540d\u306e\u8a18\u8f09\u306f\u304a\u63a7\u3048\u304f\u3060\u3055\u3044**\uff01",consentTitle:"\u3054\u540c\u610f\u304c\u5fc5\u8981\u3067\u3059",consentP1:"\u79c1\u306f\u3053\u3053\u306b\u3001PERSENTIS\u8abf\u67fb\u306b\u95a2\u9023\u3057\u3066\u3001(i) \u79c1\u304c\u63d0\u4f9b\u3057\u305f\u30c7\u30fc\u30bf\uff08\u5e74\u9f62\u5c64\u3001\u6027\u5225\u3001\u4f01\u696d\u5185\u3067\u306e\u5f79\u8077\u3001\u52e4\u7d9a\u5e74\u6570\u3001\u90e8\u7f72\u3001\u304a\u3088\u3073\u81ea\u7531\u8a18\u8ff0\u306e\u8cea\u554f\u3078\u306e\u56de\u7b54\uff09\u306b\u3064\u3044\u3066\u3001\u3053\u308c\u3089\u304c\u500b\u5225\u306e\u30b1\u30fc\u30b9\u3067\u306f\u500b\u4eba\u30c7\u30fc\u30bf\u306b\u8a72\u5f53\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u3092\u7406\u89e3\u3057\u305f\u3046\u3048\u3067\u3001PERSENTIS GmbH\u304a\u3088\u3073\u305d\u306e\u53d7\u8a17\u51e6\u7406\u8005\u304c\u8abf\u67fb\u306e\u5b9f\u65bd\u3001\u5206\u6790\u304a\u3088\u3073\u8a55\u4fa1\u306e\u76ee\u7684\u3067\u51e6\u7406\u3059\u308b\u3053\u3068\u3001\u306a\u3089\u3073\u306b (ii) \u96c6\u8a08\u3055\u308c\u305f\u7d50\u679c\u304a\u3088\u3073\u81ea\u7531\u8a18\u8ff0\u306e\u8cea\u554f\u3078\u306e\u56de\u7b54\u306b\u3064\u3044\u3066\u3001\u3053\u308c\u3089\u304c\u500b\u5225\u306e\u30b1\u30fc\u30b9\u3067\u306f\u500b\u4eba\u30c7\u30fc\u30bf\u306b\u8a72\u5f53\u3059\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3053\u3068\u3092\u7406\u89e3\u3057\u305f\u3046\u3048\u3067\u3001\u59d4\u8a17\u8005\u306b\u4f5c\u6210\u30fb\u9001\u4fe1\u3059\u308b\u3053\u3068\u306b\u3001\u660e\u793a\u7684\u306b\u540c\u610f\u3057\u307e\u3059\u3002",consentP2a:"\u79c1\u306f\u3001\u3053\u306e\u540c\u610f\u3092\u3044\u3064\u3067\u3082 [email protected] \u5b9b\u3066\u306e\u96fb\u5b50\u30e1\u30fc\u30eb\u3001\u307e\u305f\u306f\u66f8\u9762\u306b\u3088\u308a PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg \u3078\u9001\u4ed8\u3059\u308b\u3053\u3068\u3067\u64a4\u56de\u3067\u304d\u307e\u3059\u3002\u540c\u610f\u306e\u64a4\u56de\u306f\u3001\u64a4\u56de\u307e\u3067\u306b\u540c\u610f\u306b\u57fa\u3065\u3044\u3066\u884c\u308f\u308c\u305f\u51e6\u7406\u306e\u9069\u6cd5\u6027\u306b\u5f71\u97ff\u3092\u53ca\u307c\u3057\u307e\u305b\u3093\u3002Art 13 DSGVO \u306b\u57fa\u3065\u304f\u500b\u4eba\u60c5\u5831\u4fdd\u8b77\u306b\u95a2\u3059\u308b\u60c5\u5831\u306f\u3001",consentLinkText:"\u3053\u3061\u3089",consentP2b:"\u3067\u3054\u78ba\u8a8d\u3044\u305f\u3060\u3051\u307e\u3059\u3002",consentCheckbox:"\u79c1\u306f\u660e\u793a\u7684\u306b\u540c\u610f\u3057\u307e\u3059\u3002",consentRequired:"\u7d9a\u884c\u3059\u308b\u306b\u306f\u540c\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002",assignTitle:"\u6240\u5c5e\u90e8\u7f72\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002",assignSubtitle:"\u90e8\u7f72\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u652f\u5e97 | \u90e8\u7f72\uff09\u3002",assignPlaceholder:"\u90e8\u7f72\u3092\u9078\u629e",assignRequired:"\u9
20e8\u7f72\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002",questionIntro:"\u6b21\u306e\u8a18\u8ff0\u306f\u3001\u3042\u306a\u305f\u306b\u3069\u306e\u7a0b\u5ea6\u5f53\u3066\u306f\u307e\u308a\u307e\u3059\u304b\uff1f",answered:"\u56de\u7b54\u6e08\u307f",quotaReachedMsg:"\u3054\u53c2\u52a0\u306f\u6709\u52b9\u3068\u3057\u3066\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3059\uff01",quotaHintPre:"\u3054\u53c2\u52a0\u306f\u3001\u8cea\u554f\u306e ",quotaHintPost:" % \u306b\u56de\u7b54\u3057\u305f\u6642\u70b9\u3067\u6709\u52b9\u3068\u3057\u3066\u30ab\u30a6\u30f3\u30c8\u3055\u308c\u307e\u3059\u3002",selectPlaceholder:"\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044 \u2026",fastdoneTitle:"\u3082\u3046\u5c11\u3057\u3067\u5b8c\u4e86\u3067\u3059",sozioTitle:"\u793e\u4f1a\u4eba\u53e3\u7d71\u8a08\u5b66\u7684\u60c5\u5831",sozioNote:"\u3053\u308c\u3089\u306e\u60c5\u5831\u306f\u5b8c\u5168\u306b\u4efb\u610f\u3067\u3042\u308a\u3001\u96c6\u8a08\u8a08\u7b97\u306b\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u3002",likert:["\u307e\u3063\u305f\u304f\u540c\u610f\u3057\u306a\u3044","\u3042\u307e\u308a\u540c\u610f\u3057\u306a\u3044","\u3069\u3061\u3089\u3068\u3082\u3044\u3048\u306a\u3044","\u3084\u3084\u540c\u610f\u3059\u308b","\u975e\u5e38\u306b\u540c\u610f\u3059\u308b"]},ko:{intro:"\uc775\uba85 \uc9c1\uc6d0 \uc124\ubb38\uc870\uc0ac",start:"\uc124\ubb38\uc870\uc0ac \uc2dc\uc791",next:"\ub2e4\uc74c",back:"\ub4a4\ub85c",submit:"\uc81c\ucd9c",positive:"\uae0d\uc815\uc801\uc778 \uce21\uba74(\uc120\ud0dd \uc0ac\ud56d)",negative:"\ubd80\uc815\uc801\uc778 \uce21\uba74(\uc120\ud0dd \uc0ac\ud56d)",other:"\uae30\ud0c0 \u2026",answerHere:"\uadc0\ud558\uc758 \ub2f5\ubcc0 \u2026",feedbackTitle:"\uc774 \uc8fc\uc81c\uc5d0 \ub300\ud574 \ucd94\uac00\ub85c \ub9d0\uc500\ud558\uc2e4 \ub0b4\uc6a9\uc774 \uc788\uc73c\uc2e0\uac00\uc694?",feedback:"\ucd94\uac00\ub85c \uc804\ub2ec\ud558\uace0 \uc2f6\uc740 \ub0b4\uc6a9\uc774 \uc788\uc73c\uc2e0\uac00\uc694? (\uc120\ud0dd \uc0ac\ud56d)",done:"\uac10\uc0ac\ud569\ub2c8\ub2e4!",doneText:"\uadc0\ud558\uc758 \uc775\uba85 \uc751\ub2f5\uc774 \uc81c\ucd9c\ub418\uc5c8\uc2b5\ub2c8\ub2e4.",moreLink:"PERSENTIS Care\uc5d0 \ub300\ud574 \ub354 \uc54c\uace0 \uc2f6\uc2b5\ub2c8\ub2e4.",progress:"\uc9c8\ubb38",selectRating:"\uc774 \uc9c8\ubb38\uc740 \ud544\uc218 \uc9c8\ubb38\uc785\ub2c8\ub2e4.",anonymous:"100% \uc775\uba85",welcomeFor:"\ub2e4\uc74c\uc744 \uc704\ud55c PERSENTIS Care\uc5d0 \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4",introHeading:"PERSENTIS Care\uc5d0 \uc624\uc2e0 \uac83\uc744 \ud658\uc601\ud569\ub2c8\ub2e4",welcomeText:"**\ucc38\uc5ec\ud574 \uc8fc\uc2dc\uace0 \uc5c5\ubb34 \ubd80\ub2f4\uc5d0 \uad00\ud55c \uba87 \uac00\uc9c0 \uc9c8\ubb38\uc5d0 \ub2f5\ubcc0\ud560 \uc2dc\uac04\uc744 \ub0b4\uc8fc\uc154\uc11c \uac10\uc0ac\ud569\ub2c8\ub2e4!** \uc9c8\ubb38\uc5d0 \ub2f5\ubcc0\ud558\ub294 \ub370\uc5d0\ub294 \uc57d **15\ubd84** \uc815\ub3c4 \uc18c\uc694\ub429\ub2c8\ub2e4. \uac00\ub2a5\ud558\uba74 \uc774 \uc124\ubb38\uc9c0\ub97c **\ubc29\ud574\ubc1b\uc9c0 \uc54a\uace0** \uc791\uc131\ud560 \uc218 \uc788\ub294 \uc870\uc6a9\ud55c \uc7a5\uc18c\ub97c \uc120\ud0dd\ud574 \uc8fc\uc2ed\uc2dc\uc624.\n\n**\uc5b4\ub5a4 \uc9c8\ubb38\uc5d0 \ub300\ud574 \uc644\uc804\ud788 \ud655\uc2e0\uc774 \uc11c\uc9c0 \uc54a\ub354\ub77c\ub3c4, \uccab \ub290\ub08c\uc5d0 \ub530\ub77c \ub2f5\ud574 \uc8fc\uc2dc\uba74 \ub429\ub2c8\ub2e4 - \ub300\uccb4\ub85c \uadf8\uac83\uc774 \uac00\uc7a5 \uc801\uc808\ud569\ub2c8\ub2e4.**\n\n**\uadc0\ud558\uc758 \ud53c\ub4dc\ubc31\uc740 \ub9e4\uc6b0 \uc911\uc694\ud569\ub2c8\ub2e4:** \uadc0\ud558\uc758 \uace0\uc6a9\uc8fc\uac00 \uac74\uac15\ud55c \uadfc\ubb34 \ud658\uacbd\uc744 \uc870\uc131\ud558\uace0 \ud544\uc694\ud560 \uacbd\uc6b0 \uc801\uc808\ud55c \uc870\uce58\ub97c \ucde8\ud558\ub294 \ub370 \ub3c4\uc6c0\uc774 \ub429\ub2c8\ub2e4.\n\n**\uc548\uc2ec\ud558\uc154\ub3c4 \ub429\ub2c8\ub2e4: \uc5ec\uae30\uc5d0\uc11c \uc218\uc9d1\ub418\ub294 \ubaa8\ub4e0 \ub370\uc774\ud130\ub294 \uc5c4\uaca9\ud788 \uae30\ubc00\ub85c \ucc98\ub9ac\ub429\ub2c8\ub2e4. \ubd84\uc11d\uc740 PERSENTIS\uc5d0\uc11c \uc9c1\uc811 \uc218\ud589\ub418\uba70, \ud56d\uc0c1 \uc775\uba85\uc73c\ub85c \ucc98\ub9ac\ub418\uace0 \uc804\uccb4 \uc778\uc6d0 \uc9d1\ub2e8\uc5d0 \ub300\ud574\uc11c\ub9cc \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4.**\n\n\ub370\uc774\ud130 \uc218\uc9d1\uc740 **\uc774\ub984\uc774\ub098 \uc774\uba54\uc77c \uc8fc\uc18c\ub97c \uae30\uc7ac\ud558\uc9c0 \uc54a\uace0** \uc774\ub8e8\uc5b4\uc9d1\ub2c8\ub2e4. \ud3c9\uac00\ub294 \ubd80\uc11c\ubcc4\ub85c \uc9d1\uacc4\ub418\uc5b4 \uc885\ud
2569 \uacb0\uacfc\ub85c \uc804\ub2ec\ub429\ub2c8\ub2e4. \uac1c\ubc29\ud615 \uc9c8\ubb38\uc5d0 \ub300\ud55c **\ubaa8\ub4e0 \ub2f5\ubcc0**\uc740 \uadc0\ud558\uc758 \uace0\uc6a9\uc8fc\uc5d0\uac8c **\ucde8\ud569\ub41c \ud615\ud0dc\ub85c** \uc804\ub2ec\ub429\ub2c8\ub2e4. \uadc0\ud558\uc640 \ub3d9\ub8cc\ub4e4\uc758 \uc775\uba85\uc131\uc744 \ubcf4\ud638\ud558\uae30 \uc704\ud574 **\uc774\ub984\uc740 \uae30\uc7ac\ud558\uc9c0 \ub9d0\uc544 \uc8fc\uc2ed\uc2dc\uc624**!",consentTitle:"\uadc0\ud558\uc758 \ub3d9\uc758\uac00 \ud544\uc694\ud569\ub2c8\ub2e4",consentP1:"\ubcf8\uc778\uc740 PERSENTIS \uc124\ubb38\uc870\uc0ac\uc640 \uad00\ub828\ud558\uc5ec (i) \ubcf8\uc778\uc774 \uc81c\uacf5\ud55c \ub370\uc774\ud130(\uc5f0\ub839\ub300, \uc131\ubcc4, \ud68c\uc0ac \ub0b4 \uc9c1\uc704, \uadfc\uc18d \uae30\uac04, \ubd80\uc11c \ubc0f \uac1c\ubc29\ud615 \uc9c8\ubb38\uc5d0 \ub300\ud55c \ub2f5\ubcc0)\uac00 \uac1c\ubcc4 \uc0ac\ub840\uc5d0\uc11c \uac1c\uc778\uc815\ubcf4\uc5d0 \ud574\ub2f9\ud560 \uc218 \uc788\uc74c\uc744 \uc54c\uace0, \uc124\ubb38\uc870\uc0ac\uc758 \uc2e4\uc2dc, \ubd84\uc11d \ubc0f \ud3c9\uac00 \ubaa9\uc801\uc744 \uc704\ud574 PERSENTIS GmbH \ubc0f \uadf8 \uc218\ud0c1 \ucc98\ub9ac\uc790\uac00 \uc774\ub97c \ucc98\ub9ac\ud558\ub294 \uac83\uacfc, (ii) \uac1c\ubcc4 \uc0ac\ub840\uc5d0\uc11c \uac1c\uc778\uc815\ubcf4\uc5d0 \ud574\ub2f9\ud560 \uc218 \uc788\ub294 \uc9d1\uacc4\ub41c \uacb0\uacfc \ubc0f \uac1c\ubc29\ud615 \uc9c8\ubb38\uc5d0 \ub300\ud55c \ub2f5\ubcc0\uc774 \uc758\ub8b0\uc778\uc5d0\uac8c \uc0dd\uc131 \ubc0f \uc804\ub2ec\ub418\ub294 \uac83\uc5d0 \uba85\uc2dc\uc801\uc73c\ub85c \ub3d9\uc758\ud569\ub2c8\ub2e4.",consentP2a:"\ubcf8\uc778\uc740 \uc5b8\uc81c\ub4e0\uc9c0 [email protected]\uc73c\ub85c \uc774\uba54\uc77c\uc744 \ubcf4\ub0b4\uac70\ub098 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg \uc55e\uc73c\ub85c \uc11c\uba74\uc73c\ub85c \uc774 \ub3d9\uc758\ub97c \ucca0\ud68c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ub3d9\uc758 \ucca0\ud68c\ub294 \ucca0\ud68c \uc804 \ub3d9\uc758\uc5d0 \uadfc\uac70\ud558\uc5ec \uc774\ub8e8\uc5b4\uc9c4 \ucc98\ub9ac\uc758 \uc801\ubc95\uc131\uc5d0 \uc601\ud5a5\uc744 \ubbf8\uce58\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. Art 13 DSGVO\uc5d0 \ub530\ub978 \uac1c\uc778\uc815\ubcf4 \ubcf4\ud638 \uc815\ubcf4\ub294 ",consentLinkText:"\uc5ec\uae30",consentP2b:"\uc5d0\uc11c \ud655\uc778\ud558\uc2e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.",consentCheckbox:"\uba85\uc2dc\uc801\uc73c\ub85c \ub3d9\uc758\ud569\ub2c8\ub2e4.",consentRequired:"\uacc4\uc18d\ud558\ub824\uba74 \ub3d9\uc758\ud574 \uc8fc\uc2ed\uc2dc\uc624.",assignTitle:"\uc18c\uc18d \ubd80\uc11c\ub97c \uc120\ud0dd\ud574 \uc8fc\uc2ed\uc2dc\uc624.",assignSubtitle:"\uadc0\ud558\uc758 \ubd80\uc11c\ub97c \uc120\ud0dd\ud574 \uc8fc\uc2ed\uc2dc\uc624 (\uc9c0\uc810 | \ubd80\uc11c).",assignPlaceholder:"\ubd80\uc11c \uc120\ud0dd",assignRequired:"\ubd80\uc11c\ub97c \uc120\ud0dd\ud574 \uc8fc\uc2ed\uc2dc\uc624.",questionIntro:"\ub2e4\uc74c \uc9c4\uc220\uc774 \uadc0\ud558\uc5d0\uac8c \uc5b4\ub290 \uc815\ub3c4 \ud574\ub2f9\ud569\ub2c8\uae4c?",answered:"\uc751\ub2f5\ud568",quotaReachedMsg:"\uadc0\ud558\uc758 \ucc38\uc5ec\ub294 \uc720\ud6a8\ud558\uac8c \uc9d1\uacc4\ub429\ub2c8\ub2e4 \u2013 \uac10\uc0ac\ud569\ub2c8\ub2e4!",quotaHintPre:"\uc9c8\ubb38\uc5d0 ",quotaHintPost:"% \uc774\uc0c1 \uc751\ub2f5\ud558\uba74 \uadc0\ud558\uc758 \ucc38\uc5ec\uac00 \uc720\ud6a8\ud558\uac8c \uc9d1\uacc4\ub429\ub2c8\ub2e4.",selectPlaceholder:"\uc120\ud0dd\ud574 \uc8fc\uc2ed\uc2dc\uc624 \u2026",fastdoneTitle:"\uac70\uc758 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4",sozioTitle:"\uc0ac\ud68c\uc778\uad6c\ud1b5\uacc4\ud559\uc801 \uc815\ubcf4",sozioNote:"\uc774 \uc815\ubcf4\ub294 \uc804\uc801\uc73c\ub85c \uc790\ubc1c\uc801\uc774\uba70 \uacc4\uc0b0\uc5d0 \ud3ec\ud568\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.",likert:["\uc804\ud600 \ub3d9\uc758\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","\ub300\uccb4\ub85c \ub3d9\uc758\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4","\ubcf4\ud1b5\uc785\ub2c8\ub2e4","\ub300\uccb4\ub85c \ub3d9\uc758\ud569\ub2c8\ub2e4","\uc804\uc801\uc73c\ub85c \ub3d9\uc758\ud569\ub2c8\ub2e4"]},hi:{intro:"\u0917\u0941\u092e\u0928\u093e\u092e \u0915\u0930\u094d\u092e\u091a\u093e\u0930\u0940 \u0938\u0930\u094d\u0935\u0947\u0915\u094d\u0937\u0923",start:"\u0938\u0930\u094d\u0935\u0947\u0915\u094d\u0937\u0923 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902",next:"\u0906\u0917\u0947",back:"\u0935\u093e\u092a\u0938",submit:"\u0938\u092c\u092e\u093f\u091f \u0915\u0930\u0947\u0902",positive:"\u0938\u0915\u093e\u0930\u093e\u0924\u094d\u092e\u0915 \u092a\u0939\u0932\u0942 (\u0935\u0948\u
20915\u0932\u094d\u092a\u093f\u0915)",negative:"\u0928\u0915\u093e\u0930\u093e\u0924\u094d\u092e\u0915 \u092a\u0939\u0932\u0942 (\u0935\u0948\u0915\u0932\u094d\u092a\u093f\u0915)",other:"\u0905\u0928\u094d\u092f \u2026",answerHere:"\u0906\u092a\u0915\u093e \u0909\u0924\u094d\u0924\u0930 \u2026",feedbackTitle:"\u0915\u094d\u092f\u093e \u0906\u092a \u0907\u0938 \u0935\u093f\u0937\u092f \u092a\u0930 \u0915\u0941\u091b \u0914\u0930 \u091f\u093f\u092a\u094d\u092a\u0923\u0940 \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0947\u0902\u0917\u0947?",feedback:"\u0915\u094d\u092f\u093e \u0906\u092a \u0915\u0941\u091b \u0914\u0930 \u0938\u093e\u091d\u093e \u0915\u0930\u0928\u093e \u091a\u093e\u0939\u0947\u0902\u0917\u0947? (\u0935\u0948\u0915\u0932\u094d\u092a\u093f\u0915)",done:"\u092c\u0939\u0941\u0924 \u0927\u0928\u094d\u092f\u0935\u093e\u0926!",doneText:"\u0906\u092a\u0915\u093e \u0917\u0941\u092e\u0928\u093e\u092e \u0909\u0924\u094d\u0924\u0930 \u092a\u094d\u0930\u0947\u0937\u093f\u0924 \u0915\u0930 \u0926\u093f\u092f\u093e \u0917\u092f\u093e \u0939\u0948\u0964",moreLink:"\u092e\u0948\u0902 PERSENTIS Care \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u0905\u0927\u093f\u0915 \u091c\u093e\u0928\u0928\u093e \u091a\u093e\u0939\u0924\u093e/\u091a\u093e\u0939\u0924\u0940 \u0939\u0942\u0901\u0964",progress:"\u092a\u094d\u0930\u0936\u094d\u0928",selectRating:"\u092f\u0939 \u092a\u094d\u0930\u0936\u094d\u0928 \u0905\u0928\u093f\u0935\u093e\u0930\u094d\u092f \u0939\u0948\u0964",anonymous:"100 % \u0917\u0941\u092e\u0928\u093e\u092e",welcomeFor:"\u0915\u0947 \u0932\u093f\u090f PERSENTIS Care \u092e\u0947\u0902 \u0906\u092a\u0915\u093e \u0938\u094d\u0935\u093e\u0917\u0924 \u0939\u0948",introHeading:"PERSENTIS Care \u092e\u0947\u0902 \u0906\u092a\u0915\u093e \u0938\u094d\u0935\u093e\u0917\u0924 \u0939\u0948",welcomeText:"**\u092f\u0939 \u0905\u091a\u094d\u091b\u093e \u0939\u0948 \u0915\u093f \u0906\u092a \u092f\u0939\u093e\u0901 \u0939\u0948\u0902 \u0914\u0930 \u0915\u093e\u0930\u094d\u092f\u092d\u093e\u0930 \u0915\u0947 \u0935\u093f\u0937\u092f \u092e\u0947\u0902 \u0915\u0941\u091b \u0909\u0924\u094d\u0924\u0930 \u0926\u0947\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0938\u092e\u092f \u0928\u093f\u0915\u093e\u0932 \u0930\u0939\u0947 \u0939\u0948\u0902!** \u092a\u094d\u0930\u0936\u094d\u0928\u094b\u0902 \u0915\u0947 \u0909\u0924\u094d\u0924\u0930 \u0926\u0947\u0928\u0947 \u092e\u0947\u0902 \u0932\u0917\u092d\u0917 **15 \u092e\u093f\u0928\u091f** \u0932\u0917\u0947\u0902\u0917\u0947\u0964 \u0915\u0943\u092a\u092f\u093e \u0938\u092c\u0938\u0947 \u0905\u091a\u094d\u091b\u093e \u0939\u094b\u0917\u093e \u0915\u093f \u0906\u092a \u090f\u0915 \u0936\u093e\u0902\u0924 \u0938\u094d\u0925\u093e\u0928 \u091a\u0941\u0928\u0947\u0902, \u091c\u0939\u093e\u0901 \u0906\u092a \u0907\u0938 \u092a\u094d\u0930\u0936\u094d\u0928\u093e\u0935\u0932\u0940 \u0915\u094b **\u092c\u093f\u0928\u093e \u0915\u093f\u0938\u0940 \u0935\u094d\u092f\u0935\u0927\u093e\u0928 \u0915\u0947** \u092a\u0942\u0930\u093e \u0915\u0930 \u0938\u0915\u0947\u0902\u0964\n\n**\u092f\u0926\u093f \u0906\u092a \u0915\u093f\u0938\u0940 \u092a\u094d\u0930\u0936\u094d\u0928 \u0915\u0947 \u092c\u093e\u0930\u0947 \u092e\u0947\u0902 \u092a\u0942\u0930\u0940 \u0924\u0930\u0939 \u0928\u093f\u0936\u094d\u091a\u093f\u0924 \u0928 \u0939\u094b\u0902, \u0924\u094b \u092c\u0938 \u0905\u092a\u0928\u0940 \u092a\u0939\u0932\u0940 \u0938\u0939\u091c \u092d\u093e\u0935\u0928\u093e \u0915\u0947 \u0905\u0928\u0941\u0938\u093e\u0930 \u0909\u0924\u094d\u0924\u0930 \u0926\u0947\u0902 - \u0905\u0927\u093f\u0915\u0924\u0930 \u0935\u0939\u0940 \u0938\u0939\u0940 \u0939\u094b\u0924\u093e \u0939\u0948\u0964**\n\n**\u0906\u092a\u0915\u0940 \u092a\u094d\u0930\u0924\u093f\u0915\u094d\u0930\u093f\u092f\u093e\u090f\u0901 \u0905\u0924\u094d\u092f\u0902\u0924 \u092e\u0939\u0924\u094d\u0935\u092a\u0942\u0930\u094d\u0923 \u0939\u0948\u0902:** \u0935\u0947 \u0906\u092a\u0915\u0947 \u0928\u093f\u092f\u094b\u0915\u094d\u0924\u093e \u0915\u094b \u0938\u094d\u0935\u0938\u094d\u0925 \u0915\u093e\u0930\u094d\u092f \u092a\u0930\u093f\u0938\u094d\u0925\u093f\u0924\u093f\u092f\u094b\u0902 \u0915\u094b \u092c\u0922\u093c\u093e\u0935\u093e \u0926\u0947\u0928\u0947 \u0914\u0930 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u092a\u0921\u093c\u0928\u0947 \u092a\u0930 \u0909\u092a\u093e\u092f \u0915\u0930\u0928\u0947 \u092e\u0947\u0902 \u0938\u0939\u093e\u092f\u0924\u093e \u0915\u0930\u0924\u0940 \u0939\u0948\u0902\u0964\n\n**\u0906\u092a \u092a\u0942\u0930\u0940 \u0924\u0930\u0939 \u0928\u093f\u0936\u094d\u091a\u093f\u0902\u0924 \u0930\u0939 \u0938\u0915\u0924\u0947 \u0939\u0948\u0902: \u092f\u0939\u093e\u0901 \u090f\u0915\u0924\u094d\u0930 \u0915\u093f\u090f \u0917\u090f \u0938\u092d\u0940 \u0921\u0947\u091f\u093e \u0915\u093e \u0915\u0921\u093c\u093e\u0908 \u0938\u0947 \u0917\u094b\u092a\u0928\u0940\u092f \u0930\u0942\u092a \u0938\u0947 \u0935\u094d\u092f\u0935\u0939\u093e\u0930 \u0915\u093f\u092f\u093e \u091c\u093e\u090f\u0917\u093e\u0964 \u0935\u093f\u0936\u094d\u0932\u0947\u0937\u0923 \u0938\u0940\u0927\u0947 PERSENTIS \u092e\u0947\u0902 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948, \u0938\u0926\u0948\u
20935 \u0917\u0941\u092e\u0928\u093e\u092e \u0939\u094b\u0924\u093e \u0939\u0948 \u0914\u0930 \u0915\u0947\u0935\u0932 \u0938\u0902\u092a\u0942\u0930\u094d\u0923 \u0935\u094d\u092f\u0915\u094d\u0924\u093f-\u0938\u092e\u0942\u0939\u094b\u0902 \u0938\u0947 \u0938\u0902\u092c\u0902\u0927\u093f\u0924 \u0939\u094b\u0924\u093e \u0939\u0948\u0964**\n\n\u0921\u0947\u091f\u093e \u0938\u0902\u0917\u094d\u0930\u0939 **\u0928\u093e\u092e \u092f\u093e \u0908-\u092e\u0947\u0932 \u092a\u0924\u093e \u092c\u0924\u093e\u090f \u092c\u093f\u0928\u093e** \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948\u0964 \u092e\u0942\u0932\u094d\u092f\u093e\u0902\u0915\u0928 \u0935\u093f\u092d\u093e\u0917\u094b\u0902 \u0915\u0947 \u0905\u0928\u0941\u0938\u093e\u0930 \u0938\u0902\u0915\u0932\u093f\u0924 \u0915\u093f\u090f \u091c\u093e\u0924\u0947 \u0939\u0948\u0902 \u0914\u0930 \u0938\u092e\u0917\u094d\u0930 \u092a\u0930\u093f\u0923\u093e\u092e \u0915\u0947 \u0930\u0942\u092a \u092e\u0947\u0902 \u0938\u094c\u0902\u092a\u0947 \u091c\u093e\u0924\u0947 \u0939\u0948\u0902\u0964 \u0916\u0941\u0932\u0947 \u092a\u094d\u0930\u0936\u094d\u0928\u094b\u0902 \u0915\u0947 **\u0938\u092d\u0940 \u0909\u0924\u094d\u0924\u0930** \u0906\u092a\u0915\u0947 \u0928\u093f\u092f\u094b\u0915\u094d\u0924\u093e \u0915\u094b **\u0938\u0902\u0915\u0932\u093f\u0924 \u0930\u0942\u092a \u092e\u0947\u0902** \u092a\u094d\u0930\u093e\u092a\u094d\u0924 \u0939\u094b\u0924\u0947 \u0939\u0948\u0902\u0964 \u0906\u092a\u0915\u0940 \u0924\u0925\u093e \u0906\u092a\u0915\u0947 \u0938\u0939\u0915\u0930\u094d\u092e\u093f\u092f\u094b\u0902 \u0915\u0940 \u0917\u0941\u092e\u0928\u093e\u092e\u0940 \u0915\u0940 \u0930\u0915\u094d\u0937\u093e \u0915\u0947 \u0932\u093f\u090f **\u0915\u0943\u092a\u092f\u093e \u0928\u093e\u092e\u094b\u0902 \u0915\u093e \u0909\u0932\u094d\u0932\u0947\u0916 \u0915\u0930\u0928\u0947 \u0938\u0947 \u092c\u091a\u0947\u0902**!",consentTitle:"\u0939\u092e\u0947\u0902 \u0906\u092a\u0915\u0940 \u0938\u0939\u092e\u0924\u093f \u0915\u0940 \u0906\u0935\u0936\u094d\u092f\u0915\u0924\u093e \u0939\u0948",consentP1:"\u0907\u0938\u0915\u0947 \u0926\u094d\u0935\u093e\u0930\u093e \u092e\u0948\u0902 PERSENTIS \u0938\u0930\u094d\u0935\u0947\u0915\u094d\u0937\u0923 \u0915\u0947 \u0938\u0902\u0926\u0930\u094d\u092d \u092e\u0947\u0902 \u0938\u094d\u092a\u0937\u094d\u091f \u0930\u0942\u092a \u0938\u0947 (i) \u092e\u0947\u0930\u0947 \u0926\u094d\u0935\u093e\u0930\u093e \u0926\u093f\u090f \u0917\u090f \u0921\u0947\u091f\u093e (\u0906\u092f\u0941-\u0938\u092e\u0942\u0939, \u0932\u093f\u0902\u0917, \u0915\u0902\u092a\u0928\u0940 \u092e\u0947\u0902 \u092a\u0926, \u0938\u0947\u0935\u093e \u0905\u0935\u0927\u093f, \u0935\u093f\u092d\u093e\u0917, \u0914\u0930 \u0916\u0941\u0932\u0947 \u092a\u094d\u0930\u0936\u094d\u0928\u094b\u0902 \u0915\u0947 \u0909\u0924\u094d\u0924\u0930), \u091c\u094b \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0917\u0924 \u092e\u093e\u092e\u0932\u094b\u0902 \u092e\u0947\u0902 \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0917\u0924 \u0921\u0947\u091f\u093e \u0939\u094b \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0915\u0947 PERSENTIS GmbH \u0914\u0930 \u0909\u0938\u0915\u0947 \u092a\u094d\u0930\u094b\u0938\u0947\u0938\u093f\u0902\u0917 \u0938\u0947\u0935\u093e \u092a\u094d\u0930\u0926\u093e\u0924\u093e\u0913\u0902 \u0926\u094d\u0935\u093e\u0930\u093e \u0938\u0930\u094d\u0935\u0947\u0915\u094d\u0937\u0923\u094b\u0902 \u0915\u0947 \u0938\u0902\u091a\u093e\u0932\u0928, \u0935\u093f\u0936\u094d\u0932\u0947\u0937\u0923 \u0914\u0930 \u092e\u0942\u0932\u094d\u092f\u093e\u0902\u0915\u0928 \u0915\u0947 \u0909\u0926\u094d\u0926\u0947\u0936\u094d\u092f\u094b\u0902 \u0915\u0947 \u0932\u093f\u090f \u092a\u094d\u0930\u0938\u0902\u0938\u094d\u0915\u0930\u0923 \u0924\u0925\u093e (ii) \u0938\u0902\u0915\u0932\u093f\u0924 \u092a\u0930\u093f\u0923\u093e\u092e\u094b\u0902 \u0914\u0930 \u0916\u0941\u0932\u0947 \u092a\u094d\u0930\u0936\u094d\u0928\u094b\u0902 \u0915\u0947 \u0909\u0924\u094d\u0924\u0930\u094b\u0902, \u091c\u094b \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0917\u0924 \u092e\u093e\u092e\u0932\u094b\u0902 \u092e\u0947\u0902 \u0935\u094d\u092f\u0915\u094d\u0924\u093f\u0917\u0924 \u0921\u0947\u091f\u093e \u0939\u094b \u0938\u0915\u0924\u0947 \u0939\u0948\u0902, \u0915\u0947 \u0917\u094d\u0930\u093e\u0939\u0915 \u0915\u094b \u0924\u0948\u092f\u093e\u0930 \u0915\u0930 \u092a\u094d\u0930\u0947\u0937\u093f\u0924 \u0915\u093f\u090f \u091c\u093e\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0938\u0939\u092e\u0924\u093f \u0926\u0947\u0924\u093e/\u0926\u0947\u0924\u0940 \u0939\u0942\u0901\u0964",consentP2a:"\u092e\u0948\u0902 \u0907\u0938 \u0938\u0939\u092e\u0924\u093f \u0915\u094b \u0915\u093f\u0938\u0940 \u092d\u0940 \u0938\u092e\u092f [email protected] \u092a\u0930 \u0908-\u092e\u0947\u0932 \u0926\u094d\u0935\u093e\u0930\u093e \u092f\u093e \u0932\u093f\u0916\u093f\u0924 \u0930\u0942\u092a \u092e\u0947\u0902 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg \u092a\u0930 \u0935\u093e\u092a\u0938 \u0932\u0947 \u0938\u0915\u0924\u093e/\u0938\u0915\u0924\u0940 \u0939\u0942\u0901\u0964 \u0938\u0939\u092e\u0924\u093f \u0935\u093e\u092a\u0938 \u0932\u0947\u0928\u0947 \u0938\u0947, \u0935\u093e\u092a\u0938\u0940 \u0924\u0915 \u0938\u0939\u092e\u0924\u093f \u0915\u0947 \u0906\u0927\u093e\u0930 \u092a\u0930 \u0915\u0940 \u0917\u0908 \u092a\u094d\u0930\u0938\u0902\u0938\u094d\u0915\u0930\u0923 \u0915\u0940 \u0935\u0948\u
20927\u0924\u093e \u092a\u094d\u0930\u092d\u093e\u0935\u093f\u0924 \u0928\u0939\u0940\u0902 \u0939\u094b\u0924\u0940\u0964 Art 13 DSGVO \u0915\u0947 \u0905\u0928\u0941\u0938\u093e\u0930 \u0921\u0947\u091f\u093e \u0938\u0941\u0930\u0915\u094d\u0937\u093e \u0938\u0942\u091a\u0928\u093e ",consentLinkText:"\u092f\u0939\u093e\u0901",consentP2b:" \u092a\u0922\u093c\u0940 \u091c\u093e \u0938\u0915\u0924\u0940 \u0939\u0948\u0964",consentCheckbox:"\u092e\u0948\u0902 \u0938\u094d\u092a\u0937\u094d\u091f \u0930\u0942\u092a \u0938\u0947 \u0938\u0939\u092e\u0924 \u0939\u0942\u0901\u0964",consentRequired:"\u0906\u0917\u0947 \u092c\u0922\u093c\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0915\u0943\u092a\u092f\u093e \u0938\u0939\u092e\u0924\u093f \u0926\u0947\u0902\u0964",assignTitle:"\u0915\u0943\u092a\u092f\u093e \u0905\u092a\u0928\u0947 \u0906\u092a\u0915\u094b \u090f\u0915 \u0935\u093f\u092d\u093e\u0917 \u0938\u0947 \u0938\u0902\u092c\u0926\u094d\u0927 \u0915\u0930\u0947\u0902\u0964",assignSubtitle:"\u0905\u092a\u0928\u093e \u0935\u093f\u092d\u093e\u0917 \u091a\u0941\u0928\u0947\u0902 (\u0936\u093e\u0916\u093e | \u0935\u093f\u092d\u093e\u0917)\u0964",assignPlaceholder:"\u0935\u093f\u092d\u093e\u0917 \u091a\u0941\u0928\u0947\u0902",assignRequired:"\u0915\u0943\u092a\u092f\u093e \u090f\u0915 \u0935\u093f\u092d\u093e\u0917 \u091a\u0941\u0928\u0947\u0902\u0964",questionIntro:"\u0928\u093f\u092e\u094d\u0928\u0932\u093f\u0916\u093f\u0924 \u0915\u0925\u0928 \u0906\u092a\u0915\u0947 \u0932\u093f\u090f \u0915\u093f\u0938 \u0939\u0926 \u0924\u0915 \u0938\u0939\u0940 \u0939\u0948?",answered:"\u0909\u0924\u094d\u0924\u0930 \u0926\u093f\u092f\u093e \u0917\u092f\u093e",quotaReachedMsg:"\u0906\u092a\u0915\u0940 \u092d\u093e\u0917\u0940\u0926\u093e\u0930\u0940 \u0915\u094b \u092e\u093e\u0928\u094d\u092f \u092e\u093e\u0928\u093e \u091c\u093e\u090f\u0917\u093e \u2013 \u092c\u0939\u0941\u0924 \u0927\u0928\u094d\u092f\u0935\u093e\u0926!",quotaHintPre:"\u0906\u092a\u0915\u0940 \u092d\u093e\u0917\u0940\u0926\u093e\u0930\u0940 \u0915\u094b ",quotaHintPost:" % \u092a\u094d\u0930\u0936\u094d\u0928\u094b\u0902 \u0915\u0947 \u0909\u0924\u094d\u0924\u0930 \u0926\u093f\u090f \u091c\u093e\u0928\u0947 \u0915\u0947 \u092c\u093e\u0926 \u092e\u093e\u0928\u094d\u092f \u092e\u093e\u0928\u093e \u091c\u093e\u090f\u0917\u093e\u0964",selectPlaceholder:"\u0915\u0943\u092a\u092f\u093e \u091a\u0941\u0928\u0947\u0902 \u2026",fastdoneTitle:"\u0932\u0917\u092d\u0917 \u092a\u0942\u0930\u093e \u0939\u0941\u0906",sozioTitle:"\u0938\u093e\u092e\u093e\u091c\u093f\u0915-\u091c\u0928\u0938\u093e\u0902\u0916\u094d\u092f\u093f\u0915\u0940\u092f \u0935\u093f\u0935\u0930\u0923",sozioNote:"\u092f\u0947 \u0935\u093f\u0935\u0930\u0923 \u092a\u0942\u0930\u0940 \u0924\u0930\u0939 \u0938\u094d\u0935\u0948\u091a\u094d\u091b\u093f\u0915 \u0939\u0948\u0902 \u0914\u0930 \u0917\u0923\u0928\u093e \u092e\u0947\u0902 \u0936\u093e\u092e\u093f\u0932 \u0928\u0939\u0940\u0902 \u0915\u093f\u090f \u091c\u093e\u090f\u0901\u0917\u0947\u0964",likert:["\u092e\u0948\u0902 \u092c\u093f\u0932\u094d\u0915\u0941\u0932 \u0938\u0939\u092e\u0924 \u0928\u0939\u0940\u0902 \u0939\u0942\u0901","\u092e\u0948\u0902 \u0905\u0927\u093f\u0915\u0924\u0930 \u0938\u0939\u092e\u0924 \u0928\u0939\u0940\u0902 \u0939\u0942\u0901","\u0915\u0941\u091b \u0939\u0926 \u0924\u0915 / \u0915\u0941\u091b \u0939\u0926 \u0924\u0915 \u0928\u0939\u0940\u0902","\u092e\u0948\u0902 \u0905\u0927\u093f\u0915\u0924\u0930 \u0938\u0939\u092e\u0924 \u0939\u0942\u0901","\u092e\u0948\u0902 \u092a\u0942\u0930\u094d\u0923\u0924\u0903 \u0938\u0939\u092e\u0924 \u0939\u0942\u0901"]},sv:{intro:"Anonym medarbetarunders\xf6kning",start:"Starta unders\xf6kningen",next:"N\xe4sta",back:"Tillbaka",submit:"Skicka",positive:"Positiva aspekter (valfritt)",negative:"Negativa aspekter (valfritt)",other:"\xd6vrigt \u2026",answerHere:"Ert svar \u2026",feedbackTitle:"Vill ni till\xe4gga n\xe5got om detta \xe4mne?",feedback:"Vill ni meddela n\xe5got ytterligare? (valfritt)",done:"Tack s\xe5 mycket!",doneText:"Ert anonyma svar har skickats.",moreLink:"Jag vill veta mer om PERSENTIS Care.",progress:"Fr\xe5ga",selectRating:"Denna fr\xe5ga \xe4r obligatorisk.",anonymous:"100 % anonymt",welcomeFor:"V\xe4lkommen till PERSENTIS Care f\xf6r",introHeading:"V\xe4lkommen till PERSENTIS Care",welcomeText:"**Vad roligt att ni \xe4r h\xe4r och tar er tid att besvara n\xe5gra fr\xe5gor om arbetsbelastning!** Det tar cirka **15 minuter** att besvara fr\xe5gorna. V\xe4lj g\xe4rna en lugn plats d\xe4r ni kan g\xe5 igenom denna enk\xe4t **ost\xf6rt**.\n\n**Om ni inte \xe4r helt s\xe4ker p\xe5 en fr\xe5ga, g\xe5 bara efter er f\xf6rsta magk\xe4nsla \u2013 den brukar oftast vara r\xe4tt.**\n\n**Er \xe5terkoppling \xe4r mycket viktig:** Den hj\xe4lper er arbetsgivare att fr\xe4mja sunda arbetsf\xf6rh\xe5llanden och vid behov vidta \xe5tg\xe4rder.\n\n**Ni kan k\xe4nna er helt trygg: Alla uppgifter som samlas in h\xe4r behandlas strikt konfidentiellt. Utv\xe4rderingarna g\xf6rs direkt hos PERSENTIS, \xe4r alltid anonyma och avser endast hela persongrupper.**\n\nDatainsamlingen sker **utan angivande av namn eller e-postadress**. Bed\xf6mningarna sammanst\xe4lls per avdelning och \xf6verl\xe4mnas som ett samlat resultat. **Alla svar** p\xe5 \xf6ppna fr\xe5gor f\xe5r er arbetsgivare **i sammanst\xe4lld form**. F\xf6r att skydda er och era kollegors anonymitet ber vi er att **inte n\xe4mna n\xe5gra namn**!",consentTitle:"Vi beh\xf6ver ert samtycke",consentP1:"Jag samtycker h\xe4rmed uttryckligen i samband med P
2ERSENTIS-unders\xf6kningen till (i) behandling av mina angivna uppgifter (\xe5ldersgrupp, k\xf6n, position i f\xf6retaget, anst\xe4llningstid, avdelning och svar p\xe5 \xf6ppna fr\xe5gor), som i enskilda fall kan vara personuppgifter, av PERSENTIS GmbH och dess personuppgiftsbitr\xe4den f\xf6r genomf\xf6rande, analys och utv\xe4rdering av unders\xf6kningar samt (ii) framst\xe4llning och \xf6verf\xf6ring av aggregerade resultat och svar p\xe5 de \xf6ppna fr\xe5gorna, som i enskilda fall kan vara personuppgifter, till uppdragsgivaren.",consentP2a:"Jag kan n\xe4r som helst \xe5terkalla detta samtycke via e-post till [email protected] eller skriftligen till PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Ett \xe5terkallande av samtycket p\xe5verkar inte lagligheten av den behandling som har skett med st\xf6d av samtycket innan \xe5terkallandet. Dataskyddsinformationen enligt Art 13 DSGVO finns ",consentLinkText:"H\xc4R",consentP2b:" att l\xe4sa.",consentCheckbox:"Jag samtycker uttryckligen.",consentRequired:"V\xe4nligen samtyck f\xf6r att forts\xe4tta.",assignTitle:"V\xe4nligen ange vilken avdelning ni tillh\xf6r.",assignSubtitle:"V\xe4lj er avdelning (filial | avdelning).",assignPlaceholder:"V\xe4lj avdelning",assignRequired:"V\xe4nligen v\xe4lj en avdelning.",questionIntro:"I vilken utstr\xe4ckning st\xe4mmer f\xf6ljande p\xe5st\xe5ende in p\xe5 er?",answered:"besvarad",quotaReachedMsg:"Ert deltagande r\xe4knas \u2013 tack s\xe5 mycket!",quotaHintPre:"Ert deltagande r\xe4knas fr\xe5n ",quotaHintPost:" % besvarade fr\xe5gor.",selectPlaceholder:"V\xe4nligen v\xe4lj \u2026",fastdoneTitle:"Snart klart",sozioTitle:"Sociodemografiska uppgifter",sozioNote:"Dessa uppgifter \xe4r helt frivilliga och tas inte med i ber\xe4kningen.",likert:["Inst\xe4mmer inte alls","Inst\xe4mmer snarare inte","Varken eller","Inst\xe4mmer snarare","Inst\xe4mmer helt"]},da:{intro:"Anonym medarbejderunders\xf8gelse",start:"Start unders\xf8gelse",next:"Videre",back:"Tilbage",submit:"Send",positive:"Positive aspekter (valgfrit)",negative:"Negative aspekter (valgfrit)",other:"Andet \u2026",answerHere:"Deres svar \u2026",feedbackTitle:"Har De yderligere bem\xe6rkninger til dette emne?",feedback:"\xd8nsker De at tilf\xf8je noget? (valgfrit)",done:"Mange tak!",doneText:"Deres anonyme svar er blevet sendt.",moreLink:"Jeg vil gerne vide mere om PERSENTIS Care.",progress:"Sp\xf8rgsm\xe5l",selectRating:"Dette sp\xf8rgsm\xe5l er obligatorisk.",anonymous:"100 % anonymt",welcomeFor:"Velkommen til PERSENTIS Care for",introHeading:"Velkommen til PERSENTIS Care",welcomeText:"**Hvor er det godt, at De er her og tager Dem tid til at besvare nogle sp\xf8rgsm\xe5l om arbejdsbelastning!** Det vil tage ca. **15 minutter** at besvare sp\xf8rgsm\xe5lene. Find helst et roligt sted, hvor De kan gennemg\xe5 dette sp\xf8rgeskema **uforstyrret**.\n\n**Hvis De ikke er helt sikker p\xe5 et sp\xf8rgsm\xe5l, s\xe5 g\xe5 blot efter Deres f\xf8rste mavefornemmelse - det er som regel det rigtige.**\n\n**Deres tilbagemeldinger er af stor betydning:** De hj\xe6lper Deres arbejdsgiver med at fremme sunde arbejdsforhold og om n\xf8dvendigt iv\xe6rks\xe6tte tiltag.\n\n**De kan f\xf8le Dem helt tryg: Alle data, der indsamles her, behandles strengt fortroligt. Evalueringerne foretages direkte hos PERSENTIS, er altid anonyme og vedr\xf8rer kun hele persongrupper.**\n\nDataindsamlingen sker **uden angivelse af navn eller e-mailadresse**. Vurderingerne sammenfattes efter afdelinger og videregives som et samlet resultat. **Alle svar** p\xe5 \xe5bne sp\xf8rgsm\xe5l modtager Deres arbejdsgiver **i samlet form**. For at beskytte Dem og Deres kollegers anonymitet **beder vi Dem undlade at n\xe6vne navne**!",consentTitle:"Vi har brug for Deres samtykke",consentP1:"Hermed giver jeg udtrykkeligt i forbindelse med PERSENTIS-unders\xf8gelsen samtykke til (i) behandling af mine angivne data (aldersgruppe, k\xf8n, position i virksomheden, anciennitet, afdeling og svar p\xe5 \xe5bne sp\xf8rgsm\xe5l), som i enkelte tilf\xe6lde kan v\xe6re personoplysninger, af PERSENTIS GmbH og dennes databehandlere med henblik p\xe5 gennemf\xf8relse, analyse og evaluering af unders\xf8gelser samt (ii) udarbejdelse og overf\xf8rsel af aggregerede resultater og svarene p\xe5 de \xe5bne sp\xf8rgsm\xe5l, som i enkelte tilf\xe6lde kan v\xe6re personoplysninger, til ordregiveren.",consentP2a:"Jeg kan til enhver tid tilbagekalde dette samtykke via e-mail til [email protected] eller skriftligt til PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Tilbagekaldelsen af samtykket p\xe5virker ikke lovligheden af den behandling, der er sket p\xe5 grundlag af samtykket indtil tilbagekaldelsen. Databeskyttelsesoplysningerne i henhold til Art 13 DSGVO kan l\xe6ses ",consentLinkText:"HER",consentP2b:".",consentCheckbox:"Jeg giver udtrykkeligt mit samtykke.",consentRequired:"Giv venligst samtykke for at forts\xe6tte.",assignTitle:"V\xe6lg venligst en afdeling.",assignSubtitle:"V\xe6lg Deres afdeling (filial | afdeling).",assignPlaceholder:"V\xe6lg afdeling",assignRequired:"V\xe6lg venligst en afdeling.",questionIntro:"I hvilken grad passer f\xf8lgende udsagn p\xe5 Dem?",answered:"besvaret",quotaReachedMsg:"Deres deltagelse bliver medregnet \u2013 mange tak!",quotaHintPre:"Deres deltagelse bliver medregnet fra ",quotaHintPost:" % besvarede sp\xf8rgsm\xe5l.",selectPlaceholder:"V\xe6lg venligst \u2026",fastdoneTitle:"N\xe6sten f\xe6rdig",sozioTitle:"Sociodemografiske oplysninger",sozioNote:"Disse oplysninger er helt frivillige og indg\xe5r ikke i beregningen.",likert:["Er slet ikke enig","Er snarere ikke enig","Delvist / delvist","Er snarere enig","Er helt enig"]},no:{intro:"Anonym medarbeiderunders\xf8kelse",start:"Start unders\xf8kelsen",next:"Videre",back:"Tilbake",submit:"Send inn",positive:"Positive aspekter (valgfritt)",negative:"Negative aspekter (valgfritt)",other:"Annet \u2026",answerHere:"Ditt svar \u2026",feedbackTitle:"\xd8nsker De \xe5 kommentere noe mer om dette temaet?",feedback:"\xd8nsker De \xe5 dele noe mer? (valgfritt)",done:"Tusen takk!",doneText:"Ditt anonyme svar er sendt inn.",moreLink:"Jeg \xf8nsker \xe5 l\xe6re mer om PERSENTIS Care.",progress:"Sp\xf8rsm\xe5l",selectRating:"Dette sp\xf8rsm\xe5let er obligatorisk.",anonymous:"100 % anonymt",welcomeFor:"Velkommen til PERSENTIS Care for",introHeading:"Velkommen til PERSENTIS Care",welcomeText:"**S\xe5 fint at De er her og tar Dem tid til \xe5 svare p\xe5 noen sp\xf8rsm\xe5l om arbeidsbelastning!** Det vil ta ca. **15 minutter** \xe5 besvare sp\xf8rsm\xe5lene. Finn gjerne et rolig sted hvor De kan g\xe5 gjennom dette sp\xf8rreskjemaet **uforstyrret**.\n\n**Hvis De ikke er helt sikker p\xe5 et sp\xf8rsm\xe5l, f\xf8lg ganske enkelt den f\xf8rste magef\xf8lelsen Deres \u2013 det er som oftest det riktige.**\n\n**Tilbakemeldingene Deres er av stor bet
2ydning:** De hjelper arbeidsgiveren Deres med \xe5 fremme sunne arbeidsforhold og eventuelt iverksette tiltak.\n\n**De kan f\xf8le Dem helt trygg: Alle data som samles inn her, behandles strengt konfidensielt. Analysene utf\xf8res direkte hos PERSENTIS, er alltid anonyme og gjelder kun hele persongrupper.**\n\nDatainnsamlingen skjer **uten oppgivelse av navn eller e-postadresse**. Vurderingene sammenfattes etter avdelinger og overleveres som et samlet resultat. Arbeidsgiveren Deres mottar **alle svar** p\xe5 \xe5pne sp\xf8rsm\xe5l **i samlet form**. For \xe5 beskytte Dem selv og anonymiteten til kollegaene Deres, ber vi Dem **vennligst unng\xe5 \xe5 nevne navn**!",consentTitle:"Vi trenger Deres samtykke",consentP1:"Jeg samtykker herved uttrykkelig i forbindelse med PERSENTIS-unders\xf8kelsen til (i) behandling av mine oppgitte data (aldersgruppe, kj\xf8nn, stilling i virksomheten, ansettelsestid, avdeling og svar p\xe5 \xe5pne sp\xf8rsm\xe5l), som i enkelttilfeller kan v\xe6re personopplysninger, av PERSENTIS GmbH og deres databehandlere for form\xe5lene gjennomf\xf8ring, analyse og evaluering av unders\xf8kelser, samt (ii) utarbeidelse og overf\xf8ring av aggregerte resultater og svarene p\xe5 de \xe5pne sp\xf8rsm\xe5lene, som i enkelttilfeller kan v\xe6re personopplysninger, til oppdragsgiveren.",consentP2a:"Jeg kan n\xe5r som helst trekke tilbake dette samtykket via e-post til [email protected] eller skriftlig til PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Tilbakekallingen av samtykket p\xe5virker ikke lovligheten av behandlingen som er utf\xf8rt p\xe5 grunnlag av samtykket f\xf8r tilbakekallingen. Personvernerkl\xe6ringen i henhold til Art 13 DSGVO er tilgjengelig ",consentLinkText:"HER",consentP2b:" for lesing.",consentCheckbox:"Jeg samtykker uttrykkelig.",consentRequired:"Vennligst samtykk for \xe5 fortsette.",assignTitle:"Vennligst velg avdelingen din.",assignSubtitle:"Velg avdelingen din (filial | avdeling).",assignPlaceholder:"Velg avdeling",assignRequired:"Vennligst velg en avdeling.",questionIntro:"I hvilken grad stemmer f\xf8lgende utsagn for Dem?",answered:"besvart",quotaReachedMsg:"Deltakelsen Deres blir registrert \u2013 tusen takk!",quotaHintPre:"Deltakelsen Deres blir registrert fra ",quotaHintPost:" % besvarte sp\xf8rsm\xe5l.",selectPlaceholder:"Vennligst velg \u2026",fastdoneTitle:"Nesten ferdig",sozioTitle:"Sosiodemografiske opplysninger",sozioNote:"Disse opplysningene er helt frivillige og tas ikke med i beregningen.",likert:["Stemmer ikke i det hele tatt","Stemmer heller ikke","B\xe5de og","Stemmer heller","Stemmer helt"]},fi:{intro:"Anonyymi henkil\xf6st\xf6kysely",start:"Aloita kysely",next:"Seuraava",back:"Takaisin",submit:"L\xe4het\xe4",positive:"Positiiviset asiat (valinnainen)",negative:"Negatiiviset asiat (valinnainen)",other:"Muu \u2026",answerHere:"Vastauksenne \u2026",feedbackTitle:"Haluatteko kommentoida t\xe4t\xe4 aihetta viel\xe4 jotenkin?",feedback:"Haluatteko viel\xe4 kertoa jotain? (valinnainen)",done:"Kiitos paljon!",doneText:"Anonyymi vastauksenne on l\xe4hetetty.",moreLink:"Haluan tiet\xe4\xe4 lis\xe4\xe4 PERSENTIS Caresta.",progress:"Kysymys",selectRating:"T\xe4m\xe4 kysymys on pakollinen.",anonymous:"100 % anonyymi",welcomeFor:"Tervetuloa PERSENTIS Careen, organisaatiolle",introHeading:"Tervetuloa PERSENTIS Careen",welcomeText:"**Hienoa, ett\xe4 olette t\xe4\xe4ll\xe4 ja k\xe4yt\xe4tte hetken aikaa vastataksenne muutamaan ty\xf6kuormitusta koskevaan kysymykseen!** Kysymyksiin vastaaminen kest\xe4\xe4 noin **15 minuuttia**. Valitkaa mielell\xe4\xe4n rauhallinen paikka, jossa voitte k\xe4yd\xe4 t\xe4m\xe4n kyselylomakkeen l\xe4pi **h\xe4iri\xf6tt\xe4**.\n\n**Jos ette ole jostakin kysymyksest\xe4 aivan varma, vastatkaa vain ensimm\xe4isen tuntemuksenne mukaan \u2013 se on yleens\xe4 oikea.**\n\n**Palautteenne on eritt\xe4in t\xe4rke\xe4\xe4:** se auttaa ty\xf6nantajaanne edist\xe4m\xe4\xe4n terveellisi\xe4 ty\xf6olosuhteita ja tarvittaessa ryhtym\xe4\xe4n toimenpiteisiin.\n\n**Voitte olla t\xe4ysin huoletta: kaikkia t\xe4\xe4ll\xe4 ker\xe4ttyj\xe4 tietoja k\xe4sitell\xe4\xe4n ehdottoman luottamuksellisesti. Tulokset k\xe4sitell\xe4\xe4n suoraan PERSENTISill\xe4, ne ovat aina anonyymej\xe4 ja koskevat vain kokonaisia henkil\xf6ryhmi\xe4.**\n\nTietoja ker\xe4t\xe4\xe4n **ilman nime\xe4 tai s\xe4hk\xf6postiosoitetta**. Arvioinnit kootaan osastoittain ja toimitetaan kokonaistuloksina. Ty\xf6nantajanne saa avoimiin kysymyksiin annetut **kaikki vastaukset** **koottuna**. Oman ja kollegoidenne anonymiteetin suojaamiseksi **pyyd\xe4mme, ettette mainitse nimi\xe4**!",consentTitle:"Tarvitsemme suostumuksenne",consentP1:"Annan t\xe4ten nimenomaisen suostumukseni PERSENTIS-kyselyn yhteydess\xe4 siihen, ett\xe4 (i) PERSENTIS GmbH ja sen henkil\xf6tietojen k\xe4sittelij\xe4t k\xe4sittelev\xe4t antamiani tietoja (ik\xe4ryhm\xe4, sukupuoli, asema yritykse
2ss\xe4, ty\xf6suhteen kesto, osasto ja vastaukset avoimiin kysymyksiin), jotka voivat yksitt\xe4istapauksissa olla henkil\xf6tietoja, kyselyiden toteuttamista, analysointia ja arviointia varten sek\xe4 siihen, ett\xe4 (ii) toimeksiantajalle laaditaan ja toimitetaan yhdistettyj\xe4 tuloksia sek\xe4 vastaukset avoimiin kysymyksiin, jotka voivat yksitt\xe4istapauksissa olla henkil\xf6tietoja.",consentP2a:"Voin peruuttaa t\xe4m\xe4n suostumuksen milloin tahansa l\xe4hett\xe4m\xe4ll\xe4 s\xe4hk\xf6postia osoitteeseen [email protected] tai kirjallisesti osoitteeseen PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Suostumuksen peruuttaminen ei vaikuta ennen peruuttamista suostumuksen perusteella suoritetun k\xe4sittelyn lainmukaisuuteen. Tietosuojatiedot Art 13 DSGVO mukaisesti ovat luettavissa ",consentLinkText:"T\xc4\xc4LL\xc4",consentP2b:".",consentCheckbox:"Annan nimenomaisen suostumukseni.",consentRequired:"Antakaa suostumuksenne jatkaaksenne.",assignTitle:"Pyyd\xe4mme Teit\xe4 valitsemaan osastonne.",assignSubtitle:"Valitkaa osastonne (toimipiste | osasto).",assignPlaceholder:"Valitse osasto",assignRequired:"Valitkaa osasto.",questionIntro:"Miss\xe4 m\xe4\xe4rin seuraava v\xe4itt\xe4m\xe4 pit\xe4\xe4 Teid\xe4n kohdallanne paikkansa?",answered:"vastattu",quotaReachedMsg:"Osallistumisenne huomioidaan \u2013 kiitos!",quotaHintPre:"Osallistumisenne huomioidaan, kun olette vastannut ",quotaHintPost:" % kysymyksist\xe4.",selectPlaceholder:"Valitkaa \u2026",fastdoneTitle:"Melkein valmista",sozioTitle:"Sosiodemografiset tiedot",sozioNote:"N\xe4m\xe4 tiedot ovat t\xe4ysin vapaaehtoisia, eik\xe4 niit\xe4 oteta huomioon laskennassa.",likert:["Olen t\xe4ysin eri mielt\xe4","Olen j
2okseenkin eri mielt\xe4","Silt\xe4 v\xe4lilt\xe4","Olen jokseenkin samaa mielt\xe4","Olen t\xe4ysin samaa mielt\xe4"]},cs:{intro:"Anonymn\xed zam\u011bstnaneck\xfd pr\u016fzkum",start:"Spustit pr\u016fzkum",next:"Dal\u0161\xed",back:"Zp\u011bt",submit:"Odeslat",positive:"Pozitivn\xed aspekty (voliteln\xe9)",negative:"Negativn\xed aspekty (voliteln\xe9)",other:"Ostatn\xed \u2026",answerHere:"Va\u0161e odpov\u011b\u010f \u2026",feedbackTitle:"Chcete k tomuto t\xe9matu je\u0161t\u011b n\u011bco dodat?",feedback:"Chcete je\u0161t\u011b n\u011bco sd\u011blit? (voliteln\xe9)",done:"D\u011bkujeme!",doneText:"Va\u0161e anonymn\xed odpov\u011b\u010f byla odesl\xe1na.",moreLink:"Chci se dozv\u011bd\u011bt v\xedce o PERSENTIS Care.",progress:"Ot\xe1zka",selectRating:"Tato ot\xe1zka je povinn\xe1.",anonymous:"100 % anonymn\xed",welcomeFor:"V\xedtejte v PERSENTIS Care pro",introHeading:"V\xedtejte v PERSENTIS Care",welcomeText:"**Jsme r\xe1di, \u017ee jste zde a v\u011bnujete \u010das n\u011bkolika odpov\u011bd\xedm na t\xe9ma pracovn\xed z\xe1t\u011b\u017ee!** Zodpov\u011bzen\xed ot\xe1zek zabere p\u0159ibli\u017en\u011b **15 minut**. Nejl\xe9pe si najd\u011bte klidn\xe9 m\xedsto, kde m\u016f\u017eete tento dotazn\xedk proj\xedt **bez ru\u0161en\xed**.\n\n**Pokud si u n\u011bkter\xe9 ot\xe1zky nejste \xfapln\u011b jist\xed, \u0159i\u010fte se jednodu\u0161e sv\xfdm prvn\xedm pocitem \u2013 ten b\xfdv\xe1 v\u011bt\u0161inou spr\xe1vn\xfd.**\n\n**Va\u0161e zp\u011btn\xe1 vazba je velmi d\u016fle\u017eit\xe1:** pom\xe1h\xe1 Va\u0161emu zam\u011bstnavateli podporovat zdrav\xe9 pracovn\xed podm\xednky a p\u0159\xedpadn\u011b p\u0159ij\xedmat opat\u0159en\xed.\n\n**M\u016f\u017eete se c\xedtit zcela bezpe\u010dn\u011b: V\u0161echny zde shrom\xe1\u017ed\u011bn\xe9 \xfadaje jsou p\u0159\xedsn\u011b d\u016fv\u011brn\xe9. Vyhodnocen\xed prob\xedh\xe1 p\u0159\xedmo ve spole\u010dnosti PERSENTIS, je v\u017edy anonymn\xed a vztahuje se pouze na cel\xe9 skupiny osob.**\n\nSb\u011br \xfadaj\u016f prob\xedh\xe1 **bez uveden\xed jm\xe9na nebo e-mailov\xe9 adresy**. Hodnocen\xed jsou shrnuta podle odd\u011blen\xed a p\u0159ed\xe1v\xe1na jako celkov\xfd v\xfdsledek. **V\u0161echny odpov\u011bdi** na otev\u0159en\xe9 ot\xe1zky obdr\u017e\xed V\xe1\u0161 zam\u011bstnavatel **v souhrnn\xe9 podob\u011b**. V z\xe1jmu ochrany Va\u0161\xed anonymity i anonymity Va\u0161ich koleg\u016f a kolegy\u0148 **pros\xedm neuv\xe1d\u011bjte \u017e\xe1dn\xe1 jm\xe9na**!",consentTitle:"Pot\u0159ebujeme V\xe1\u0161 souhlas",consentP1:"T\xedmto v\xfdslovn\u011b souhlas\xedm v souvislosti s pr\u016fzkumem PERSENTIS (i) se zpracov\xe1n\xedm mnou uveden\xfdch \xfadaj\u016f (v\u011bkov\xe1 skupina, pohlav\xed, pozice ve spole\u010dnosti, d\xe9lka pracovn\xedho pom\u011bru, odd\u011blen\xed a odpov\u011bdi na otev\u0159en\xe9 ot\xe1zky), kter\xe9 mohou b\xfdt v jednotliv\xfdch p\u0159\xedpadech osobn\xedmi \xfadaji, spole\u010dnost\xed PERSENTIS GmbH a jej\xedmi zpracovateli pro \xfa\u010dely realizace, anal\xfdzy a vyhodnocen\xed pr\u016fzkum\u016f, jako\u017e i (ii) s vytvo\u0159en\xedm a p\u0159ed\xe1n\xedm agregovan\xfdch v\xfdsledk\u016f a odpov\u011bd\xed na otev\u0159en\xe9 ot\xe1zky, kter\xe9 mohou b\xfdt v jednotliv\xfdch p\u0159\xedpadech osobn\xedmi \xfadaji, zadavateli.",consentP2a:"Tento souhlas mohu kdykoli odvolat e-mailem na [email protected] nebo p\xedsemn\u011b na adresu PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Odvol\xe1n\xedm souhlasu nen\xed dot\u010dena z\xe1konnost zpracov\xe1n\xed proveden\xe9ho na z\xe1klad\u011b souhlasu do okam\u017eiku jeho odvol\xe1n\xed. Informace o ochran\u011b osobn\xedch \xfadaj\u016f podle Art 13 DSGVO jsou k dispozici ",consentLinkText:"ZDE",consentP2b:" k p\u0159e\u010dten\xed.",consentCheckbox:"V\xfdslovn\u011b souhlas\xedm.",consentRequired:"Chcete-li pokra\u010dovat, ud\u011blte pros\xedm souhlas.",assignTitle:"P\u0159i\u0159a\u010fte se pros\xedm k odd\u011blen\xed.",assignSubtitle:"Vyberte sv\xe9 odd\u011blen\xed (pobo\u010dka | odd\u011blen\xed).",assignPlaceholder:"Vyberte odd\u011blen\xed",assignRequired:"Vyberte pros\xedm odd\u011blen\xed.",questionIntro:"Nakolik pro V\xe1s n\xe1sleduj\xedc\xed tvrzen\xed plat\xed?",answered:"zodpov\u011bzeno",quotaReachedMsg:"Va\u0161e \xfa\u010dast bude zapo\u010d\xedt\xe1na \u2013 d\u011bkujeme!",quotaHintPre:"Va\u0161e \xfa\u010dast bude zapo\u010d\xedt\xe1na od ",quotaHintPost:" % zodpov\u011bzen\xfdch ot\xe1zek.",selectPlaceholder:"Vyberte pros\xedm \u2026",fastdoneTitle:"U\u017e to skoro m\xe1te",sozioTitle:"Sociodemografick\xe9 \xfadaje",sozioNote:"Tyto \xfadaje jsou zcela dobrovoln\xe9 a nebudou zahrnuty do v\xfdpo\u010dtu.",likert:["Zcela nesouhlas\xedm","Sp\xed\u0161e nesouhlas\xedm","\u010c\xe1ste\u010dn\u011b souhlas\xedm / \u010d\xe1ste\u010dn\u011b nesouhlas\xedm","Sp\xed\u0161e souhlas\xedm","Zcela souhlas\xedm"]},sk:{intro:"Anonymn\xfd prieskum medzi zamestnancami",start:"Spusti\u0165 prieskum",next:"\u010ealej",back:"Sp\xe4\u0165",submit:"Odosla\u0165",positive:"Pozit\xedvne aspekty (volite\u013en\xe9)",
2negative:"Negat\xedvne aspekty (volite\u013en\xe9)",other:"In\xe9 \u2026",answerHere:"Va\u0161a odpove\u010f \u2026",feedbackTitle:"Chcete k tejto t\xe9me e\u0161te nie\u010do doda\u0165?",feedback:"Chcete n\xe1m e\u0161te nie\u010do ozn\xe1mi\u0165? (volite\u013en\xe9)",done:"\u010eakujeme!",doneText:"Va\u0161a anonymn\xe1 odpove\u010f bola odoslan\xe1.",moreLink:"Chcem sa dozvedie\u0165 viac o PERSENTIS Care.",progress:"Ot\xe1zka",selectRating:"T\xe1to ot\xe1zka je povinn\xe1.",anonymous:"100 % anonymn\xe9",welcomeFor:"Vitajte v PERSENTIS Care pre",introHeading:"Vitajte v PERSENTIS Care",welcomeText:"**Sme radi, \u017ee ste tu a na\u0161li ste si \u010das na nieko\u013eko odpoved\xed na t\xe9mu pracovnej z\xe1\u0165a\u017ee!** Zodpovedanie ot\xe1zok bude trva\u0165 pribli\u017ene **15 min\xfat**. Najlep\u0161ie bude, ak si n\xe1jdete pokojn\xe9 miesto, kde si m\xf4\u017eete tento dotazn\xedk prejs\u0165 **neru\u0161ene**.\n\n**Ak si pri niektorej ot\xe1zke nie ste \xfaplne ist\xfd/ist\xe1, ria\u010fte sa jednoducho svoj\xedm prv\xfdm pocitom \u2013 ten je v\xe4\u010d\u0161inou spr\xe1vny.**\n\n**Va\u0161a sp\xe4tn\xe1 v\xe4zba je ve\u013emi d\xf4le\u017eit\xe1:** Pom\xe1ha v\xe1\u0161mu zamestn\xe1vate\u013eovi podporova\u0165 zdrav\xe9 pracovn\xe9 podmienky a v pr\xedpade potreby prija\u0165 opatrenia.\n\n**M\xf4\u017eete sa c\xedti\u0165 \xfaplne bezpe\u010dne: V\u0161etky tu zhroma\u017eden\xe9 \xfadaje bud\xfa pr\xedsne d\xf4vern\xe9. Vyhodnotenia prebiehaj\xfa priamo v spolo\u010dnosti PERSENTIS, s\xfa v\u017edy anonymn\xe9 a vz\u0165ahuj\xfa sa len na cel\xe9 skupiny os\xf4b.**\n\nZber \xfadajov prebieha **bez uvedenia mena alebo e-mailovej adresy**. Hodnotenia bud\xfa zhrnut\xe9 pod\u013ea oddelen\xed a odovzdan\xe9 ako celkov\xfd v\xfdsledok. **V\u0161etky odpovede** na otvoren\xe9 ot\xe1zky dostane v\xe1\u0161 zamestn\xe1vate\u013e **v s\xfahrnnej forme**. V z\xe1ujme ochrany va\u0161ej anonymity a anonymity va\u0161ich kolegov a koleg\xfd\u0148 v\xe1s **pros\xedme, neuv\xe1dzajte men\xe1**!",consentTitle:"Potrebujeme v\xe1\u0161 s\xfahlas",consentP1:"T\xfdmto v\xfdslovne s\xfahlas\xedm v s\xfavislosti s prieskumom PERSENTIS s (i) sprac\xfavan\xedm mojich uveden\xfdch \xfadajov (vekov\xe1 skupina, pohlavie, poz\xedcia v podniku, d\u013a\u017eka pracovn\xe9ho pomeru, oddelenie a odpovede na otvoren\xe9 ot\xe1zky), ktor\xe9 m\xf4\u017eu by\u0165 v jednotliv\xfdch pr\xedpadoch osobn\xfdmi \xfadajmi, spolo\u010dnos\u0165ou PERSENTIS GmbH a jej sprostredkovate\u013emi na \xfa\u010dely realiz\xe1cie, anal\xfdzy a vyhodnotenia prieskumov, ako aj (ii) s vytvoren\xedm a odovzdan\xedm agregovan\xfdch v\xfdsledkov a odpoved\xed na otvoren\xe9 ot\xe1zky, ktor\xe9 m\xf4\u017eu by\u0165 v jednotliv\xfdch pr\xedpadoch osobn\xfdmi \xfadajmi, objedn\xe1vate\u013eovi.",consentP2a:"Tento s\xfahlas m\xf4\u017eem kedyko\u013evek odvola\u0165 e-mailom na [email protected] alebo p\xedsomne na adresu PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Odvolanie s\xfahlasu nem\xe1 vplyv na z\xe1konnos\u0165 sprac\xfavania vykonan\xe9ho na z\xe1klade s\xfahlasu pred jeho odvolan\xedm. Inform\xe1cie o ochrane \xfadajov pod\u013ea Art 13 DSGVO s\xfa k dispoz\xedcii ",consentLinkText:"TU",consentP2b:" na pre\u010d\xedtanie.",consentCheckbox:"V\xfdslovne s\xfahlas\xedm.",consentRequired:"Pros\xedm, ude\u013ete s\xfahlas, aby ste mohli pokra\u010dova\u0165.",assignTitle:"Pros\xedm, prira\u010fte sa k oddeleniu.",assignSubtitle:"Vyberte svoje oddelenie (pobo\u010dka | oddelenie).",assignPlaceholder:"Vybra\u0165 oddelenie",assignRequired:"Pros\xedm, vyberte oddelenie.",questionIntro:"Do akej miery je pre v\xe1s nasleduj\xface tvrdenie pravdiv\xe9?",answered:"zodpovedan\xe9",quotaReachedMsg:"Va\u0161a \xfa\u010das\u0165 bude zapo\u010d\xedtan\xe1 \u2013 \u010fakujeme!",quotaHintPre:"Va\u0161a \xfa\u010das\u0165 bude zapo\u010d\xedtan\xe1 od ",quotaHintPost:" % zodpovedan\xfdch ot\xe1zok.",selectPlaceholder:"Pros\xedm, vyberte \u2026",fastdoneTitle:"Takmer hotovo",sozioTitle:"Sociodemografick\xe9 \xfadaje",sozioNote:"Tieto \xfadaje s\xfa \xfaplne dobrovo\u013en\xe9 a nebud\xfa zahrnut\xe9 do v\xfdpo\u010dtu.",likert:["V\xf4bec nes\xfahlas\xedm","Sk\xf4r nes\xfahlas\xedm","Ani \xe1no, ani nie","Sk\xf4r s\xfahlas\xedm","\xdaplne s\xfahlas\xedm"]},hu:{intro:"N\xe9vtelen munkav\xe1llal\xf3i felm\xe9r\xe9s",start:"Felm\xe9r\xe9s ind\xedt\xe1sa",next:"Tov\xe1bb",back:"Vissza",submit:"Bek\xfcld\xe9s",positive:"Pozit\xedv szempontok (opcion\xe1lis)",negative:"Negat\xedv szempontok (opcion\xe1lis)",other:"Egy\xe9b \u2026",answerHere:"Az \xd6n v\xe1lasza \u2026",feedbackTitle:"Szeretne m\xe9g valamit megjegyezni ezzel a t\xe9m\xe1val kapcsolatban?",feedback:"Szeretne m\xe9g valamit k\xf6z\xf6lni? (opcion\xe1lis)",done:"K\xf6sz\xf6nj\xfck!",doneText:"N\xe9vtelen v\xe1lasz\xe1t tov\xe1bb\xedtottuk.",moreLink:"T\xf6bbet szeretn\xe9k megtudni a PERSENTIS Care-r\u0151l.",progress:"K\xe9rd\xe9s",selectRating:"Erre a k\xe9rd\xe9sre k\xf6telez\u0151 v\xe1laszolni.",anonymous:"100%-ban anonim",welcomeFor:"\xdcdv\xf6z\xf6lj\xfck a PERSENTIS Care felm\xe9r\xe9sben:",introHeading:"\xdcdv\xf6z\xf6lj\xfck a PERSENTIS Care-ben",wel
2comeText:"**\xd6r\xfcl\xfcnk, hogy itt van, \xe9s id\u0151t sz\xe1n arra, hogy v\xe1laszoljon n\xe9h\xe1ny k\xe9rd\xe9sre a munkahelyi terhel\xe9ssel kapcsolatban!** A k\xe9rd\xe9sek megv\xe1laszol\xe1sa k\xf6r\xfclbel\xfcl **15 percet** vesz ig\xe9nybe. Lehet\u0151leg keressen egy nyugodt helyet, ahol ezt a k\xe9rd\u0151\xedvet **zavartalanul** v\xe9gig tudja t\xf6lteni.\n\n**Ha egy k\xe9rd\xe9sn\xe9l nem teljesen biztos a v\xe1lasz\xe1ban, egyszer\u0171en hagyatkozzon az els\u0151 meg\xe9rz\xe9s\xe9re \u2013 az t\xf6bbnyire helyes.**\n\n**Visszajelz\xe9sei nagy jelent\u0151s\xe9ggel b\xedrnak:** seg\xedtik munk\xe1ltat\xf3j\xe1t abban, hogy el\u0151seg\xedtse az eg\xe9szs\xe9ges munkak\xf6r\xfclm\xe9nyeket, \xe9s sz\xfcks\xe9g eset\xe9n int\xe9zked\xe9seket hozzon.\n\n**Teljes biztons\xe1gban \xe9rezheti mag\xe1t: Az itt gy\u0171jt\xf6tt valamennyi adatot szigor\xfaan bizalmasan kezelj\xfck. Az \xe9rt\xe9kel\xe9sek k\xf6zvetlen\xfcl a PERSENTIS-n\xe9l k\xe9sz\xfclnek, minden esetben anonim m\xf3don, \xe9s kiz\xe1r\xf3lag teljes munkav\xe1llal\xf3i csoportokra vonatkoznak.**\n\nAz adatgy\u0171jt\xe9s **n\xe9v vagy e-mail-c\xedm megad\xe1sa n\xe9lk\xfcl** t\xf6rt\xe9nik. Az \xe9rt\xe9kel\xe9seket r\xe9szlegek szerint \xf6sszes\xedtj\xfck, \xe9s \xf6sszeredm\xe9nyk\xe9nt adjuk \xe1t. A nyitott k\xe9rd\xe9sekre adott **\xf6sszes v\xe1laszt** munk\xe1ltat\xf3ja **\xf6sszes\xedtett form\xe1ban** kapja meg. Az \xd6n \xe9s koll\xe9g\xe1i anonimit\xe1s\xe1nak v\xe9delme \xe9rdek\xe9ben **k\xe9rj\xfck, ne eml\xedtsen neveket**!",consentTitle:"Sz\xfcks\xe9g\xfcnk van az \xd6n hozz\xe1j\xe1rul\xe1s\xe1ra",consentP1:"Ezennel kifejezetten hozz\xe1j\xe1rulok ahhoz, hogy a PERSENTIS felm\xe9r\xe9ssel \xf6sszef\xfcgg\xe9sben (i) az \xe1ltalam megadott adataimat (korcsoport, nem, v\xe1llalaton bel\xfcli poz\xedci\xf3, v\xe1llalatn\xe1l elt\xf6lt\xf6tt id\u0151, r\xe9szleg \xe9s a nyitott k\xe9rd\xe9sekre adott v\xe1laszok), amelyek egyes esetekben szem\xe9lyes adatnak min\u0151s\xfclhetnek, a PERSENTIS GmbH \xe9s adatfeldolgoz\xf3i a felm\xe9r\xe9sek lebonyol\xedt\xe1sa, elemz\xe9se \xe9s ki\xe9rt\xe9kel\xe9se c\xe9lj\xe1b\xf3l kezelj\xe9k, valamint (ii) az \xf6sszes\xedtett eredm\xe9nyeket \xe9s a nyitott k\xe9rd\xe9sekre adott v\xe1laszokat, amelyek egyes esetekben szem\xe9lyes adatnak min\u0151s\xfclhetnek, a megb\xedz\xf3 r\xe9sz\xe9re elk\xe9sz\xedts\xe9k \xe9s tov\xe1bb\xedts\xe1k.",consentP2a:"Ezt a hozz\xe1j\xe1rul\xe1st b\xe1rmikor visszavonhatom e-mailben a [email protected] c\xedmen vagy \xedr\xe1sban a k\xf6vetkez\u0151 c\xedmen: PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. A hozz\xe1j\xe1rul\xe1s visszavon\xe1sa nem \xe9rinti a visszavon\xe1sig a hozz\xe1j\xe1rul\xe1s alapj\xe1n v\xe9gzett adatkezel\xe9s jogszer\u0171s\xe9g\xe9t. Az adatv\xe9delmi t\xe1j\xe9koztat\xf3 az Art 13 DSGVO szerint ",consentLinkText:"ITT",consentP2b:" olvashat\xf3.",consentCheckbox:"Kifejezetten hozz\xe1j\xe1rulok.",consentRequired:"K\xe9rj\xfck, j\xe1ruljon hozz\xe1 a folytat\xe1shoz.",assignTitle:"K\xe9rj\xfck, rendelje mag\xe1t egy r\xe9szleghez.",assignSubtitle:"V\xe1lassza ki a r\xe9szleg\xe9t (telephely | r\xe9szleg).",assignPlaceholder:"R\xe9szleg kiv\xe1laszt\xe1sa",assignRequired:"K\xe9rj\xfck, v\xe1lasszon r\xe9szleget.",questionIntro:"Mennyire igaz \xd6nre az al\xe1bbi \xe1ll\xedt\xe1s?",answered:"megv\xe1laszolva",quotaReachedMsg:"R\xe9szv\xe9tele \xe9rv\xe9nyesnek sz\xe1m\xedt \u2013 k\xf6sz\xf6nj\xfck!",quotaHintPre:"R\xe9szv\xe9tele ",quotaHintPost:"% megv\xe1laszolt k\xe9rd\xe9st\u0151l sz\xe1m\xedt \xe9rv\xe9nyesnek.",selectPlaceholder:"K\xe9rj\xfck, v\xe1lasszon \u2026",fastdoneTitle:"M\xe1r majdnem k\xe9sz",sozioTitle:"Szociodemogr\xe1fiai adatok",sozioNote:"Ezek az adatok teljesen \xf6nk\xe9ntesek, \xe9s nem ker\xfclnek be a sz\xe1m\xedt\xe1sba.",likert:["Egy\xe1ltal\xe1n nem \xe9rtek egyet","Ink\xe1bb nem \xe9rtek egyet","R\xe9szben igen / r\xe9szben nem","Ink\xe1bb egyet\xe9rtek","Teljes m\xe9rt\xe9kben egyet\xe9rtek"]},ro:{intro:"Sondaj anonim al angaja\u021bilor",start:"\xcencepe\u021bi sondajul",next:"\xcenainte",back:"\xcenapoi",submit:"Trimite\u021bi",positive:"Aspecte pozitive (op\u021bional)",negative:"Aspecte negative (op\u021bional)",other:"Altele \u2026",answerHere:"R\u0103spunsul dumneavoastr\u0103 \u2026",feedbackTitle:"Dori\u021bi s\u0103 mai ad\u0103uga\u021bi ceva cu privire la acest subiect?",feedback:"Dori\u021bi s\u0103 mai transmite\u021bi ceva? (op\u021bional)",done:"V\u0103 mul\u021bumim!",doneText:"R\u0103spunsul dumneavoastr\u0103 anonim a fost transmis.",moreLink:"Doresc s\u0103 aflu mai multe despre PERSENTIS Care.",progress:"\xcentrebare",selectRating:"Aceast\u0103 \xeentrebare este obligatorie.",anonymous:"100 % anonim",welcomeFor:"Bine a\u021bi venit la PERSENTIS Care pentru",introHeading:"Bine a\u021bi venit la PERSENTIS Care",welcomeText:"**Ne bucur\u0103m c\u0103 sunte\u021bi aici \u0219i c\u0103 v\u0103 face\u021bi timp pentru a r\u0103spunde la c\xe2teva \xeentreb\u0103ri pe tema \xeenc\u0103rc\u0103rii la locul de munc\u0103!** Completarea \xeentreb\u0103rilor va dura aproximativ **15 minute**. Cel mai bine este s\u0103 v\u0103 alege\u021bi un loc lini\u0219tit, unde pute\u021bi parcurge acest chestionar **f\u0103r\u0103 a fi deranjat(\u0103)**.\n\n**Dac\u0103 nu sunte\u021bi pe deplin sigur(\u0103) \xeen privin\u021ba unei \xeentreb\u0103ri, urma\u021bi pur \u0219i simplu prima dumneavoastr\u0103 impresie - de cele mai multe ori aceasta este cea corect\u0103.**\n\n**Feedbackul dumneavoastr\u0103 este deosebit de important:** \xeel ajut\u0103 pe angajatorul dumneavoastr\u0103 s\u0103 promoveze condi\u021bii de munc\u0103 s\u0103n\u0103toase \u0219i, dac\u0103 este cazul, s\u0103 ia m\u0103suri.\n\n**Pute\u021bi avea deplin\u0103 \xeencredere: toate datele colectate aici sunt tratate str
2ict confiden\u021bial. Evalu\u0103rile sunt efectuate direct de PERSENTIS, sunt \xeentotdeauna anonime \u0219i se refer\u0103 doar la grupuri \xeentregi de persoane.**\n\nColectarea datelor are loc **f\u0103r\u0103 indicarea numelui sau a adresei de e-mail**. Evalu\u0103rile sunt agregate pe departamente \u0219i transmise ca rezultat general. Angajatorul dumneavoastr\u0103 prime\u0219te **toate r\u0103spunsurile** la \xeentreb\u0103rile deschise **\xeen form\u0103 agregat\u0103**. Pentru a v\u0103 proteja pe dumneavoastr\u0103 \u0219i anonimatul colegilor/colegelor dumneavoastr\u0103, **v\u0103 rug\u0103m s\u0103 evita\u021bi men\u021bionarea numelor**!",consentTitle:"Avem nevoie de consim\u021b\u0103m\xe2ntul dumneavoastr\u0103",consentP1:"Prin prezenta, \xeemi exprim \xeen mod explicit consim\u021b\u0103m\xe2ntul, \xeen leg\u0103tur\u0103 cu sondajul PERSENTIS, pentru (i) prelucrarea datelor furnizate de mine (grupa de v\xe2rst\u0103, genul, pozi\u021bia \xeen cadrul companiei, durata vechimii \xeen companie, departamentul \u0219i r\u0103spunsurile la \xeentreb\u0103rile deschise), care \xeen cazuri individuale pot avea caracter personal, de c\u0103tre PERSENTIS GmbH \u0219i persoanele \xeemputernicite de aceasta, \xeen scopul realiz\u0103rii, analizei \u0219i evalu\u0103rii sondajelor, precum \u0219i pentru (ii) crearea \u0219i transmiterea c\u0103tre client a rezultatelor agregate \u0219i a r\u0103spunsurilor la \xeentreb\u0103rile deschise, care \xeen cazuri individuale pot avea caracter personal.",consentP2a:"Pot retrage acest consim\u021b\u0103m\xe2nt \xeen orice moment prin e-mail la [email protected] sau \xeen scris la PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Retragerea consim\u021b\u0103m\xe2ntului nu afecteaz\u0103 legalitatea prelucr\u0103rii efectuate \xeen baza consim\u021b\u0103m\xe2ntului \xeenainte de retragerea acestuia. Informa\u021biile privind protec\u021bia datelor conform Art 13 DSGVO sunt disponibile ",consentLinkText:"AICI",consentP2b:" pentru consultare.",consentCheckbox:"Sunt de acord \xeen mod expres.",consentRequired:"V\u0103 rug\u0103m s\u0103 v\u0103 exprima\u021bi acordul pentru a continua.",assignTitle:"V\u0103 rug\u0103m s\u0103 v\u0103 atribui\u021bi unui departament.",assignSubtitle:"Selecta\u021bi departamentul dumneavoastr\u0103 (fili
2al\u0103 | departament).",assignPlaceholder:"Selecta\u021bi departamentul",assignRequired:"V\u0103 rug\u0103m s\u0103 selecta\u021bi un departament.",questionIntro:"\xcen ce m\u0103sur\u0103 vi se aplic\u0103 urm\u0103toarea afirma\u021bie?",answered:"r\u0103spuns",quotaReachedMsg:"Participarea dumneavoastr\u0103 va fi luat\u0103 \xeen considerare \u2013 v\u0103 mul\u021bumim!",quotaHintPre:"Participarea dumneavoastr\u0103 va fi luat\u0103 \xeen considerare de la ",quotaHintPost:" % \xeentreb\u0103ri la care s-a r\u0103spuns.",selectPlaceholder:"V\u0103 rug\u0103m s\u0103 selecta\u021bi \u2026",fastdoneTitle:"Aproape gata",sozioTitle:"Date sociodemografice",sozioNote:"Aceste informa\u021bii sunt complet voluntare \u0219i nu sunt incluse \xeen calcul.",likert:["Nu sunt deloc de acord","Mai degrab\u0103 nu sunt de acord","\u0218i a\u0219a, \u0219i a\u0219a","Mai degrab\u0103 sunt de acord","Sunt pe deplin de acord"]},bg:{intro:"\u0410\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u043f\u0440\u043e\u0443\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u0441\u043b\u0443\u0436\u0438\u0442\u0435\u043b\u0438\u0442\u0435",start:"\u0417\u0430\u043f\u043e\u0447\u043d\u0435\u0442\u0435 \u043f\u0440\u043e\u0443\u0447\u0432\u0430\u043d\u0435\u0442\u043e",next:"\u041d\u0430\u043f\u0440\u0435\u0434",back:"\u041d\u0430\u0437\u0430\u0434",submit:"\u0418\u0437\u043f\u0440\u0430\u0442\u0438",positive:"\u041f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u043d\u0438 \u0430\u0441\u043f\u0435\u043a\u0442\u0438 (\u043f\u043e \u0438\u0437\u0431\u043e\u0440)",negative:"\u041e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u043d\u0438 \u0430\u0441\u043f\u0435\u043a\u0442\u0438 (\u043f\u043e \u0438\u0437\u0431\u043e\u0440)",other:"\u0414\u0440\u0443\u0433\u043e \u2026",answerHere:"\u0412\u0430\u0448\u0438\u044f\u0442 \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u2026",feedbackTitle:"\u0418\u0441\u043a\u0430\u0442\u0435 \u043b\u0438 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u043e\u0449\u0435 \u043d\u0435\u0449\u043e \u043f\u043e \u0442\u0430\u0437\u0438 \u0442\u0435\u043c\u0430?",feedback:"\u0418\u0441\u043a\u0430\u0442\u0435 \u043b\u0438 \u0434\u0430 \u0441\u043f\u043e\u0434\u0435\u043b\u0438\u0442\u0435 \u043e\u0449\u0435 \u043d\u0435\u0449\u043e? (\u043f\u043e \u0438\u0437\u0431\u043e\u0440)",done:"\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0412\u0438!",doneText:"\u0412\u0430\u0448\u0438\u044f\u0442 \u0430\u043d\u043e\u043d\u0438\u043c\u0435\u043d \u043e\u0442\u0433\u043e\u0432\u043e\u0440 \u0431\u0435\u0448\u0435 \u0438\u0437\u043f\u0440\u0430\u0442\u0435\u043d.",moreLink:"\u0418\u0441\u043a\u0430\u043c \u0434\u0430 \u043d\u0430\u0443\u0447\u0430 \u043f\u043e\u0432\u0435\u0447\u0435 \u0437\u0430 PERSENTIS Care.",progress:"\u0412\u044a\u043f\u0440\u043e\u0441",selectRating:"\u0422\u043e\u0437\u0438 \u0432\u044a\u043f\u0440\u043e\u0441 \u0435 \u0437\u0430\u0434\u044a\u043b\u0436\u0438\u0442\u0435\u043b\u0435\u043d.",anonymous:"100 % \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e",welcomeFor:"\u0414\u043e\u0431\u0440\u0435 \u0434\u043e\u0448\u043b\u0438 \u0432 PERSENTIS Care \u0437\u0430",introHeading:"\u0414\u043e\u0431\u0440\u0435 \u0434\u043e\u0448\u043b\u0438 \u0432 PERSENTIS Care",welcomeText:"**\u0420\u0430\u0434\u0432\u0430\u043c\u0435 \u0441\u0435, \u0447\u0435 \u0441\u0442\u0435 \u0442\u0443\u043a \u0438 \u043e\u0442\u0434\u0435\u043b\u044f\u0442\u0435 \u0432\u0440\u0435\u043c\u0435 \u0434\u0430 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435 \u043d\u0430 \u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0432\u044a\u043f\u0440\u043e\u0441\u0430 \u043f\u043e \u0442\u0435\u043c\u0430\u0442\u0430 \u0437\u0430 \u0440\u0430\u0431\u043e\u0442\u043d\u043e\u0442\u043e \u043d\u0430\u0442\u043e\u0432\u0430\u0440\u0432\u0430\u043d\u0435!** \u041e\u0442\u0433\u043e\u0432\u0430\u0440\u044f\u043d\u0435\u0442\u043e \u043d\u0430 \u0432\u044a\u043f\u0440\u043e\u0441\u0438\u0442\u0435 \u0449\u0435 \u043e\u0442\u043d\u0435\u043c\u0435 \u043e\u043a\u043e\u043b\u043e **15 \u043c\u0438\u043d\u0443\u0442\u0438**. \u041d\u0430\u0439-\u0434\u043e\u0431\u0440\u0435 \u0441\u0438 \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e \u043c\u044f\u0441\u0442\u043e, \u043d\u0430 \u043a\u043e\u0435\u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u043f\u0440\u0435\u043c\u0438\u043d\u0435\u0442\u0435 \u043f\u0440\u0435\u0437 \u0442\u043e\u0437\u0438 \u0432\u044a\u043f\u0440\u043e\u0441\u043d\u0438\u043a **\u043d\u0435\u043e\u0431\u0435\u0437\u043f\u043e\u043a\u043e\u044f\u0432\u0430\u043d\u043e**.\n\n**\u0410\u043a\u043e \u043d\u0435 \u0441\u0442\u0435 \u0441\u044a\u0432\u0441\u0435\u043c \u0441\u0438\u0433\u0443\u0440\u043d\u0438 \u0432 \u043d\u044f\u043a\u043e\u0439 \u0432\u044a\u043f\u0440\u043e\u0441, \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u0435 \u0434\u043e\u0432\u0435\u0440\u0435\u0442\u0435 \u043d\u0430 \u043f\u044a\u0440\u0432\u043e\u0442\u043e \u0441\u0438 \u0443\u0441\u0435\u0449\u0430\u043d\u0435 - \u0442\u043e \u043e\u0431\u0438\u043a\u043d\u043e\u0432\u0435\u043d\u043e \u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e\u0442\u043e.**\n\n**\u0412\u0430\u0448\u0430\u0442\u0430 \u043e\u0431\u0440\u0430\u0442\u043d\u0430 \u0432\u0440\u044a\u0437\u043a\u0430 \u0435 \u043e\u0442 \u0433\u043e\u043b\u044f\u043c\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:** \u0442\u044f \u043f\u043e\u043c\u0430\u0433\u0430 \u043d\u0430 \u0412\u0430\u0448\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b \u0434\u0430 \u043d\u0430\u0441\u044a\u0440\u0447\u0430\u0432\u0430 \u0437\u0434\u0440\u0430\u0432\u043e\u0441\u043b\u043e\u0432\u043d\u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u043d\u0430 \u0442\u0440\u0443\u0434 \u0438 \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442 \u0434\u0430 \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u0435\u043c\u0430 \u043c\u0435\u0440\u043a\u0438.\n\n**\u041c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435\u0442\u0435 \u043d\u0430\u043f\u044a\u043b\u043d\u043e \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u0438: \u0412\u0441\u0438\u0447\u043a\u0438 \u0441\u044a\u0431\u0440\u0430\u043d\u0438 \u0442\u0443\u043a \u0434\u0430\u043d\u043d\u0438 \u0441\u0435 \u0442\u0440\u0435\u0442\u0438\u0440\u0430\u0442 \u043f\u0440\u0438 \u0441\u0442\u0440\u043e\u0433\u0430 \u043f\u043e\u0432\u0435\u0440\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442. \u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0442\u0435 \u0441\u0435 \u0438\u0437\u0432\u044a\u0440\u0448\u0432\u0430\u0442 \u0434\u0438\u0440\u0435\u043a\u0442\u043d\u043e \u043e\u0442 PERSENTIS, \u0432\u0438\u043d\u0430\u0433\u0438 \u0441\u0430 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0438 \u0438 \u0441\u0435 \u043e\u0442\u043d\u0430\u0441\u044f\u0442 \u0441\u0430\u043c\u043e \u0434\u043e \u0446\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u0438 \u0441\u043b\u0443\u0436\u0438\u0442\u0435\u043b\u0438.**\n\n\u0421\u044a\u0431\u0438\u0440\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0434\u0430\u043d\u043d\u0438\u0442\u0435 \u0441\u0435 \u0438\u0437\u0432\u044a\u0440\u0448\u0432\u0430 **\u0431\u0435\u0437 \u043f\u043e\u0441\u043e\u0447\u0432\u0430\u043d\u0435 \u043d\u0430 \u0438\u043c\u0435 \u0438\u043b\u0438 \u0438\u043c\u0435\u0439\u043b \u0430\u0434\u0440\u0435\u0441**. \u041e\u0446\u0435\u043d\u043a\u0438\u0442\u0435 \u0441\u0435 \u043e\u0431\u043e\u0431\u0449\u0430\u0432\u0430\u0442 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u0438 \u0438 \u0441\u0435 \u043f\u0440\u0435\u0434\u0430\u0432\u0430\u0442 \u043a\u0430\u0442\u043e \u043e\u0431\u0449 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442. **\u0412\u0441\u0438\u0447\u043a\u0438 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438** \u043d\u0430 \u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0442\u0435 \u0432\u044a\u043f\u0440\u043e\u0441\u0438 \u0412\u0430\u0448\u0438\u044f\u0442 \u0440\u0430\u0431\u043e\u0442\u043e\u0434\u0430\u0442\u0435\u043b \u043f\u043e\u043b\u0443\u0447\u0430\u0432\u0430 **\u0432 \u043e\u0431\u043e\u0431\u0449\u0435\u043d\u0430 \u0444\u043e\u0440\u043c\u0430**. \u0417\u0430 \u0437\u0430\u0449\u0438\u0442\u0430 \u043d\u0430 \u0412\u0430\u0448\u0430\u0442\u0430 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442 \u0438 \u043d\u0430 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 \u0412\u0430\u0448\u0438\u0442\u0435 \u043a\u043e\u043b\u0435\u0433\u0438 **\u043c\u043e\u043b\u044f, \u0432\u044a\u0437\u0434\u044a\u0440\u0436\u0430\u0439\u0442\u0435 \u0441\u0435 \u043e\u0442 \u0441\u043f\u043e\u043c\u0435\u043d\u0430\u0432\u0430\u043d\u0435 \u043d\u0430 \u0438\u043c\u0435\u043d\u0430**!",consentTitle:"\u041d\u0443\u0436\u0434\u0430\u0435\u043c \u0441\u0435 \u043e\u0442 \u0412\u0430\u0448\u0435\u0442\u043e \u0441\u044a\u0433\u043b\u0430\u0441\u0438\u0435",consentP1:"\u0421 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u043e\u0442\u043e \u0438\u0437\u0440\u0438\u0447\u043d\u043e \u0441\u0435 \u0441\u044a\u0433\u043b\u0430\u0441\u044f\u0432\u0430\u043c \u0432\u044a\u0432 \u0432\u0440\u044a\u0437\u043a\u0430 \u0441 \u043f\u0440\u043e\u0443\u0447\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 PERSENTIS (i) \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0435\u043d\u0438\u0442\u0435 \u043e\u0442 \u043c\u0435\u043d \u0434\u0430\u043d\u043d\u0438 (\u0432\u044a\u0437\u0440\u0430\u0441\u0442\u043e\u0432\u0430 \u0433\u0440\u0443\u043f\u0430, \u043f\u043e\u043b, \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0442\u0430, \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0438\u0442\u0435\u043b\u043d\u043e\u0441\u0442 \u043d\u0430 \u0442\u0440\u0443\u0434\u043e\u0432\u0438\u044f \u0441\u0442\u0430\u0436 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f\u0442\u0430, \u043e\u0442\u0434\u0435\u043b \u0438 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438 \u043d\u0430 \u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438 \u0432\u044a\u043f\u0440\u043e\u0441\u0438), \u043a\u043e\u0438\u0442\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u043d\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u043c\u043e\u0433\u0430\u0442 \u0434\u0430 \u0431\u044a\u0434\u0430\u0442 \u043b\u0438\u0447\u043d\u0438 \u0434\u0430\u043d\u043d\u0438, \u043e\u0442 PERSENTIS GmbH \u0438 \u043d\u0435\u0439\u043d\u0438\u0442\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0432\u0430\u0449\u0438 \u043b\u0438\u0447\u043d\u0438 \u0434\u0430\u043d\u043d\u0438 \u0437\u0430 \u0446\u0435\u043b\u0438\u0442\u0435 \u043d\u0430 \u043f\u0440\u043e\u0432\u0435\u0436\u0434\u0430\u043d\u0435\u0442\u043e, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u0446\u0435\u043d\u043a\u0430\u0442\u0430 \u043d\u0430 \u043f\u0440\u043e\u0443\u0447\u0432\u0430\u043d\u0438\u044f, \u043a\u0430\u043a\u0442\u043e \u0438 (ii) \u0441\u044a\u0441 \u0441\u044a\u0437\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u0438 \u043f\u0440\u0435\u0434\u0430\u0432\u0430\u043d\u0435\u0442\u043e \u043d\u0430 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u0430\u043d\u0438 \u0440\u0435\u0437\u0443\u043b\u0442\u0430\u0442\u0438 \u0438 \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u0435 \u043d\u0430 \u043e\u0442\u0432\u043e\u0440\u0435\u043d\u0438\u0442\u0435 \u0432\u044a\u043f\u0440\u043e\u0441\u0438, \u043a\u043e\u0438\u0442\u043e \u0432 \u043e\u0442\u0434\u0435\u043b\u043d\u0438 \u0441\u043b\u0443\u0447\u0430\u0438 \u043c\u043e\u0433\u0430\u0442 \u0434\u0430 \u0431\u044a\u0434\u0430\u0442 \u043b\u0438\u0447\u043d\u0438 \u0434\u0430\u043d\u043d\u0438, \u043d\u0430 \u0432\u044a\u0437\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044f.",consentP2a:"\u041c\u043e\u0433\u0430 \u0434\u0430 \u043e\u0442\u0442\u0435\u0433\u043b\u044f \u0442\u043e\u0432\u0430 \u0441\u044a\u0433\u043b\u0430\u0441\u0438\u0435 \u043f\u043e \u0432\u0441\u044f\u043a\u043e \u0432\u0440\u0435\u043c\u0435 \u043f\u043e \u0438\u043c\u0435\u0439\u043b \u043d\u0430 [email protected] \u0438\u043b\u0438 \u043f\u0438\u0441\u043c\u0435\u043d\u043e \u0434\u043e PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u041e\u0442\u0442\u0435\u0433\u043b\u044f\u043d\u0435\u0442\u043e \u043d\u0430 \u0441\u044a\u0433\u043b\u0430\u0441\u0438\u0435\u0442\u043e \u043d\u0435 \u0437\u0430\u0441\u044f\u0433\u0430 \u0437\u0430\u043a\u043e\u043d\u043e\u0441\u044a\u043e\u0431\u0440\u0430\u0437\u043d\u043e\u0441\u0442\u0442\u0430 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0432\u0430\u043d\u0435\u0442\u043e, \u0438\u0437\u0432\u044a\u0440\u0448\u0435\u043d\u043e \u0432\u044a\u0437 \u043e\u0441\u043d\u043e\u0432\u0430 \u043d\u0430 \u0441\u044a\u0433\u043b\u0430\u0441\u0438\u0435\u0442\u043e \u0434\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u043d\u0430 \u043e\u0442\u0442\u0435\u0433\u043b\u044f\u043d\u0435\u0442\u043e \u043c\u0443. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\u0442\u0430 \u0437\u0430 \u0437\u0430\u0449\u0438\u0442\u0430 \u043d\u0430 \u0434\u0430\u043d\u043d\u0438\u0442\u0435 \u0441\u044a\u0433\u043b\u0430\u0441\u043d\u043e Art 13 DSGVO \u0435 ",consentLinkText:"\u0422\u0423\u041a",consentP2b:" \u0434\u043e\u0441\u0442\u044a\u043f\u043d\u0430 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434.",consentCheckbox:"\u0418\u0437\u0440\u0438\u0447\u043d\u043e \u0441\u0435 \u0441\u044a\u0433\u043b\u0430\u0441\u044f\u0432\u0430\u043c.",consentRequired:"\u041c\u043e\u043b\u044f, \u0434\u0430\u0439\u0442\u0435 \u0441\u044a\u0433\u043b\u0430\u0441\u0438\u0435, \u0437\u0430 \u0434\u0430 \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0438\u0442\u0435.",assignTitle:"\u041c\u043e\u043b\u044f, \u043f\u043e\u0441\u043e\u0447\u0435\u0442\u0435 \u043a\u044a\u043c \u043a\u043e\u0439 \u043e\u0442\u0434\u0435\u043b \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u0438\u0442\u0435.",assignSubtitle:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u0412\u0430\u0448\u0438\u044f \u043e\u0442\u0434\u0435\u043b (\u0444\u0438\u043b\u0438\u0430\u043b | \u043e\u0442\u0434\u0435\u043b).",assignPlaceholder:"\u0418\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043e\u0442\u0434\u0435\u043b",assignRequired:"\u041c\u043e\u043b\u044f, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043e\u0442\u0434\u0435\u043b.",questionIntro:"\u0414\u043e\u043a\u043e\u043b\u043a\u043e \u0441\u043b\u0435\u0434\u043d\u043e\u0442\u043e \u0442\u0432\u044a\u0440\u0434\u0435\u043d\u0438\u0435 \u0441\u0435 \u043e\u0442\u043d\u0430\u0441\u044f \u0437\u0430 \u0412\u0430\u0441?",answered:"\u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u043e",quotaReachedMsg:"\u0412\u0430\u0448\u0435\u0442\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0437\u0430\u0447\u0435\u0442\u0435\u043d\u043e \u2013 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0412\u0438!",quotaHintPre:"\u0412\u0430\u0448\u0435\u0442\u043e \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0449\u0435 \u0431\u044a\u0434\u0435 \u0437\u0430\u0447\u0435\u0442\u0435\u043d\u043e \u043f\u0440\u0438 ",quotaHintPost:" % \u043e\u0442\u0433\u043e\u0432\u043e\u0440\u0435\u043d\u0438 \u0432\u044a\u043f\u0440\u043e\u0441\u0430.",selectPlaceholder:"\u041c\u043e\u043b\u044f, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u2026",fastdoneTitle:"\u041f\u043e\u0447\u0442\u0438 \u0441\u0442\u0435 \u0433\u043e\u0442\u043e\u0432\u0438",sozioTitle:"\u0421\u043e\u0446\u0438\u043e\u0434\u0435\u043c\u043e\u0433\u0440\u0430\u0444\u0441\u043a\u0438 \u0434\u0430\u043d\u043d\u0438",sozioNote:"\u0422\u0435\u0437\u0438 \u0434\u0430\u043d\u043d\u0438 \u0441\u0430 \u043d\u0430\u043f\u044a\u043b\u043d\u043e \u0434\u043e\u0431\u0440\u043e\u0432\u043e\u043b\u043d\u0438 \u0438 \u043d\u0435 \u0441\u0435 \u0432\u043a\u043b\u044e\u0447\u0432\u0430\u0442 \u0432 \u0438\u0437\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u0435\u0442\u043e.",likert:["\u0418\u0437\u043e\u0431\u0449\u043e \u043d\u0435 \u0441\u044a\u043c \u0441\u044a\u0433\u043b\u0430\u0441\u0435\u043d/\u0441\u044a\u0433\u043b\u0430\u0441\u043d\u0430","\u041f\u043e-\u0441\u043a\u043e\u0440\u043e \u043d\u0435 \u0441\u044a\u043c \u0441\u044a\u0433\u043b\u0430\u0441\u0435\u043d/
2\u0441\u044a\u0433\u043b\u0430\u0441\u043d\u0430","\u041e\u0442\u0447\u0430\u0441\u0442\u0438 / \u043e\u0442\u0447\u0430\u0441\u0442\u0438","\u041f\u043e-\u0441\u043a\u043e\u0440\u043e \u0441\u044a\u043c \u0441\u044a\u0433\u043b\u0430\u0441\u0435\u043d/\u0441\u044a\u0433\u043b\u0430\u0441\u043d\u0430","\u041d\u0430\u043f\u044a\u043b\u043d\u043e \u0441\u044a\u043c \u0441\u044a\u0433\u043b\u0430\u0441\u0435\u043d/\u0441\u044a\u0433\u043b\u0430\u0441\u043d\u0430"]},el:{intro:"\u0391\u03bd\u03ce\u03bd\u03c5\u03bc\u03b7 \u03ad\u03c1\u03b5\u03c5\u03bd\u03b1 \u03b5\u03c1\u03b3\u03b1\u03b6\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd",start:"\u0388\u03bd\u03b1\u03c1\u03be\u03b7 \u03ad\u03c1\u03b5\u03c5\u03bd\u03b1\u03c2",next:"\u03a3\u03c5\u03bd\u03ad\u03c7\u03b5\u03b9\u03b1",back:"\u03a0\u03af\u03c3\u03c9",submit:"\u03a5\u03c0\u03bf\u03b2\u03bf\u03bb\u03ae",positive:"\u0398\u03b5\u03c4\u03b9\u03ba\u03ad\u03c2 \u03c0\u03c4\u03c5\u03c7\u03ad\u03c2 (\u03c0\u03c1\u03bf\u03b1\u03b9\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc)",negative:"\u0391\u03c1\u03bd\u03b7\u03c4\u03b9\u03ba\u03ad\u03c2 \u03c0\u03c4\u03c5\u03c7\u03ad\u03c2 (\u03c0\u03c1\u03bf\u03b1\u03b9\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc)",other:"\u0386\u03bb\u03bb\u03bf \u2026",answerHere:"\u0397 \u03b1\u03c0\u03ac\u03bd\u03c4\u03b7\u03c3\u03ae \u03c3\u03b1\u03c2 \u2026",feedbackTitle:"\u0398\u03b1 \u03b8\u03ad\u03bb\u03b1\u03c4\u03b5 \u03bd\u03b1 \u03c0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03b5\u03c4\u03b5 \u03ba\u03ac\u03c4\u03b9 \u03b1\u03ba\u03cc\u03bc\u03b7 \u03b3\u03b9\u03b1 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03b8\u03ad\u03bc\u03b1;",feedback:"\u0398\u03b1 \u03b8\u03ad\u03bb\u03b1\u03c4\u03b5 \u03bd\u03b1 \u03bc\u03b1\u03c2 \u03c0\u03b5\u03af\u03c4\u03b5 \u03ba\u03ac\u03c4\u03b9 \u03b1\u03ba\u03cc\u03bc\u03b7; (\u03c0\u03c1\u03bf\u03b1\u03b9\u03c1\u03b5\u03c4\u03b9\u03ba\u03cc)",done:"\u03a3\u03b1\u03c2 \u03b5\u03c5\u03c7\u03b1\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd\u03bc\u03b5!",doneText:"\u0397 \u03b1\u03bd\u03ce\u03bd\u03c5\u03bc\u03b7 \u03b1\u03c0\u03ac\u03bd\u03c4\u03b7\u03c3\u03ae \u03c3\u03b1\u03c2 \u03c5\u03c0\u03bf\u03b2\u03bb\u03ae\u03b8\u03b7\u03ba\u03b5.",moreLink:"\u0398\u03b1 \u03ae\u03b8\u03b5\u03bb\u03b1 \u03bd\u03b1 \u03bc\u03ac\u03b8\u03c9 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b1 \u03b3\u03b9\u03b1 \u03c4\u03bf PERSENTIS Care.",progress:"\u0395\u03c1\u03ce\u03c4\u03b7\u03c3\u03b7",selectRating:"\u0391\u03c5\u03c4\u03ae \u03b7 \u03b5\u03c1\u03ce\u03c4\u03b7\u03c3\u03b7 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c5\u03c0\u03bf\u03c7\u03c1\u03b5\u03c9\u03c4\u03b9\u03ba\u03ae.",anonymous:"100 % \u03b1\u03bd\u03ce\u03bd\u03c5\u03bc\u03b1",welcomeFor:"\u039a\u03b1\u03bb\u03ce\u03c2 \u03ae\u03c1\u03b8\u03b1\u03c4\u03b5 \u03c3\u03c4\u03bf PERSENTIS Care \u03b3\u03b9\u03b1",introHeading:"\u039a\u03b1\u03bb\u03ce\u03c2 \u03ae\u03c1\u03b8\u03b1\u03c4\u03b5 \u03c3\u03c4\u03bf PERSENTIS Care",welcomeText:"**\u03a7\u03b1\u03b9\u03c1\u03cc\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c0\u03bf\u03c5 \u03b5\u03af\u03c3\u03c4\u03b5 \u03b5\u03b4\u03ce \u03ba\u03b1\u03b9 \u03b1\u03c6\u03b9\u03b5\u03c1\u03ce\u03bd\u03b5\u03c4\u03b5 \u03bb\u03af\u03b3\u03bf \u03c7\u03c1\u03cc\u03bd\u03bf \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03b1\u03c0\u03b1\u03bd\u03c4\u03ae\u03c3\u03b5\u03c4\u03b5 \u03c3\u03b5 \u03bc\u03b5\u03c1\u03b9\u03ba\u03ad\u03c2 \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c3\u03c7\u03b5\u03c4\u03b9\u03ba\u03ac \u03bc\u03b5 \u03c4\u03b7\u03bd \u03b5\u03c1\u03b3\u03b1\u03c3\u03b9\u03b1\u03ba\u03ae \u03b5\u03c0\u03b9\u03b2\u03ac\u03c1\u03c5\u03bd\u03c3\u03b7!** \u0397 \u03b1\u03c0\u03ac\u03bd\u03c4\u03b7\u03c3\u03b7 \u03c3\u03c4\u03b9\u03c2 \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03b8\u03b1 \u03b4\u03b9\u03b1\u03c1\u03ba\u03ad\u03c3\u03b5\u03b9 \u03c0\u03b5\u03c1\u03af\u03c0\u03bf\u03c5 **15 \u03bb\u03b5\u03c0\u03c4\u03ac**. \u0395\u03af\u03bd\u03b1\u03b9 \u03ba\u03b1\u03bb\u03cd\u03c4\u03b5\u03c1\u03bf \u03bd\u03b1 \u03b5\u03c0\u03b9\u03bb\u03ad\u03be\u03b5\u03c4\u03b5 \u03ad\u03bd\u03b1 \u03ae\u03c3\u03c5\u03c7\u03bf \u03bc\u03ad\u03c1\u03bf\u03c2, \u03cc\u03c0\u03bf\u03c5 \u03b8\u03b1 \u03bc\u03c0\u03bf\u03c1\u03b5\u03af\u03c4\u03b5 \u03bd\u03b1 \u03c3\u03c5\u03bc\u03c0\u03bb\u03b7\u03c1\u03ce\u03c3\u03b5\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03b5\u03c1\u03c9\u03c4\u03b7\u03bc\u03b1\u03c4\u03bf\u03bb\u03cc\u03b3\u03b9\u03bf **\u03c7\u03c9\u03c1\u03af\u03c2 \u03b5\u03bd\u03bf\u03c7\u03bb\u03ae\u03c3\u03b5\u03b9\u03c2**.\n\n**\u0391\u03bd \u03b4\u03b5\u03bd \u03b5\u03af\u03c3\u03c4\u03b5 \u03b1\u03c0\u03bf\u03bb\u03cd\u03c4\u03c9\u03c2 \u03b2\u03ad\u03b2\u03b1\u03b9\u03bf\u03b9 \u03b3\u03b9\u03b1 \u03ba\u03ac\u03c0\u03bf\u03b9\u03b1 \u03b5\u03c1\u03ce\u03c4\u03b7\u03c3\u03b7, \u03b1\u03ba\u03bf\u03bb\u03bf\u03c5\u03b8\u03ae\u03c3\u03c4\u03b5 \u03b1\u03c0\u03bb\u03ce\u03c2 \u03c4\u03b7\u03bd \u03c0\u03c1\u03ce\u03c4\u03b7 \u03c3\u03b1\u03c2 \u03b4\u03b9\u03b1\u03af\u03c3\u03b8\u03b7\u03c3\u03b7 - \u03c3\u03c5\u03bd\u03ae\u03b8\u03c9\u03c2 \u03b5\u03af\u03bd\u03b1\u03b9 \u03b7 \u03c3\u03c9\u03c3\u03c4\u03ae.**\n\n**\u039f\u03b9 \u03b1\u03bd\u03b1\u03c4\u03c1\u03bf\u03c6\u03bf\u03b4\u03bf\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c3\u03b1\u03c2 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03bf\u03bb\u03cd \u03c3\u03b7\u03bc\u03b1\u03bd\u03c4\u03b9\u03ba\u03ad\u03c2:** \u03b2\u03bf\u03b7\u03b8\u03bf\u03cd\u03bd \u03c4\u03bf\u03bd \u03b5\u03c1\u03b3\u03bf\u03b4\u03cc\u03c4\u03b7 \u03c3\u03b1\u03c2 \u03bd\u03b1 \u03c0\u03c1\u03bf\u03ac\u03b3\u03b5\u03b9 \u03c5\u03b3\u03b9\u03b5\u03af\u03c2 \u03c3\u03c5\u03bd\u03b8\u03ae\u03ba\u03b5\u03c2 \u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1\u03c2 \u03ba\u03b1\u03b9, \u03b5\u03c6\u03cc\u03c3\u03bf\u03bd \u03c7\u03c1\u03b5\u03b9\u03ac\u03b6\u03b5\u03c4\u03b1\u03b9, \u03bd\u03b1 \u03bb\u03ac\u03b2\u03b5\u03b9 \u03bc\u03ad\u03c4\u03c1\u03b1.\n\n**\u039c\u03c0\u03bf\u03c1\u03b5\u03af\u03c4\u03b5 \u03bd\u03b1 \u03b1\u03b9\u03c3\u03b8\u03ac\u03bd\u03b5\u03c3\u03c4\u03b5 \u03b1\u03c0\u03bf\u03bb\u03cd\u03c4\u03c9\u03c2 \u03b1\u03c3\u03c6\u03b1\u03bb\u03b5\u03af\u03c2: \u038c\u03bb\u03b1 \u03c4\u03b1 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1 \u03c0\u03bf\u03c5 \u03c3\u03c5\u03bb\u03bb\u03ad\u03b3\u03bf\u03bd\u03c4\u03b1\u03b9 \u03b5\u03b4\u03ce \u03b1\u03bd\u03c4\u03b9\u03bc\u03b5\u03c4\u03c9\u03c0\u03af\u03b6\u03bf\u03bd\u03c4\u03b1\u03b9 \u03bc\u03b5 \u03b1\u03c0\u03cc\u03bb\u03c5\u03c4\u03b7 \u03b5\u03bc\u03c0\u03b9\u03c3\u03c4\u03b5\u03c5\u03c4\u03b9\u03ba\u03cc\u03c4\u03b7\u03c4\u03b1. \u0397 \u03b1\u03be\u03b9\u03bf\u03bb\u03cc\u03b3\u03b7\u03c3\u03b7 \u03c0\u03c1\u03b1\u03b3\u03bc\u03b1\u03c4\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9 \u03b1\u03c0\u03b5\u03c5\u03b8\u03b5\u03af\u03b1\u03c2 \u03c3\u03c4\u03b7\u03bd PERSENTIS, \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03ac\u03bd\u03c4\u03bf\u03c4\u03b5 \u03b1\u03bd\u03ce\u03bd\u03c5\u03bc\u03b7 \u03ba\u03b1\u03b9 \u03b1\u03c6\u03bf\u03c1\u03ac \u03bc\u03cc\u03bd\u03bf \u03bf\u03bb\u03cc\u03ba\u03bb\u03b7\u03c1\u03b5\u03c2 \u03bf\u03bc\u03ac\u03b4\u03b5\u03c2 \u03b5\u03c1\u03b3\u03b1\u03b6\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd.**\n\n\u0397 \u03c3\u03c5\u03bb\u03bb\u03bf\u03b3\u03ae \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c0\u03c1\u03b1\u03b3\u03bc\u03b1\u03c4\u03bf\u03c0\u03bf\u03b9\u03b5\u03af\u03c4\u03b1\u03b9 **\u03c7\u03c9\u03c1\u03af\u03c2 \u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac \u03bf\u03bd\u03cc\u03bc\u03b1\u03c4\u03bf\u03c2 \u03ae \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7\u03c2 email**. \u039f\u03b9 \u03b1\u03be\u03b9\u03bf\u03bb\u03bf\u03b3\u03ae\u03c3\u03b5\u03b9\u03c2 \u03bf\u03bc\u03b1\u03b4\u03bf\u03c0\u03bf\u03b9\u03bf\u03cd\u03bd\u03c4\u03b1\u03b9 \u03b1\u03bd\u03ac \u03c4\u03bc\u03ae\u03bc\u03b1 \u03ba\u03b1\u03b9 \u03b4\u03b9\u03b1\u03b2\u03b9\u03b2\u03ac\u03b6\u03bf\u03bd\u03c4\u03b1\u03b9 \u03c9\u03c2 \u03c3\u03c5\u03bd\u03bf\u03bb\u03b9\u03ba\u03cc \u03b1\u03c0\u03bf\u03c4\u03ad\u03bb\u03b5\u03c3\u03bc\u03b1. **\u038c\u03bb\u03b5\u03c2 \u03bf\u03b9 \u03b1\u03c0\u03b1\u03bd\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2** \u03c3\u03c4\u03b9\u03c2 \u03b1\u03bd\u03bf\u03b9\u03ba\u03c4\u03ad\u03c2 \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03bb\u03b1\u03bc\u03b2\u03ac\u03bd\u03bf\u03bd\u03c4\u03b1\u03b9 \u03b1\u03c0\u03cc \u03c4\u03bf\u03bd \u03b5\u03c1\u03b3\u03bf\u03b4\u03cc\u03c4\u03b7 \u03c3\u03b1\u03c2 **\u03c3\u03b5 \u03c3\u03c5\u03b3\u03ba\u03b5\u03bd\u03c4\u03c1\u03c9\u03c4\u03b9\u03ba\u03ae \u03bc\u03bf\u03c1\u03c6\u03ae**. \u0393\u03b9\u03b1 \u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03c3\u03c4\u03b1\u03c3\u03af\u03b1 \u03c4\u03b7 \u03b4\u03b9\u03ba\u03ae \u03c3\u03b1\u03c2 \u03ba\u03b1\u03b9 \u03c4\u03b7\u03c2 \u03b1\u03bd\u03c9\u03bd\u03c5\u03bc\u03af\u03b1\u03c2 \u03c4\u03c9\u03bd \u03c3\u03c5\u03bd\u03b1\u03b4\u03ad\u03bb\u03c6\u03c9\u03bd \u03c3\u03b1\u03c2, **\u03c0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b1\u03c0\u03bf\u03c6\u03cd\u03b3\u03b5\u03c4\u03b5 \u03c4\u03b7\u03bd \u03b1\u03bd\u03b1\u03c6\u03bf\u03c1\u03ac \u03bf\u03bd\u03bf\u03bc\u03ac\u03c4\u03c9\u03bd**!",consentTitle:"\u03a7\u03c1\u03b5\u03b9\u03b1\u03b6\u03cc\u03bc\u03b1\u03c3\u03c4\u03b5 \u03c4\u03b7 \u03c3\u03c5\u03b3\u03ba\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03ae \u03c3\u03b1\u03c2",consentP1:"\u039c\u03b5 \u03c4\u03bf \u03c0\u03b1\u03c1\u03cc\u03bd \u03c3\u03c5\u03bd\u03b1\u03b9\u03bd\u03ce \u03c1\u03b7\u03c4\u03ac, \u03c3\u03b5 \u03c3\u03c7\u03ad\u03c3\u03b7 \u03bc\u03b5 \u03c4\u03b7\u03bd \u03ad\u03c1\u03b5\u03c5\u03bd\u03b1 \u03c4\u03b7\u03c2 PERSENTIS, (i) \u03c3\u03c4\u03b7\u03bd \u03b5\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1 \u03c4\u03c9\u03bd \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c0\u03bf\u03c5 \u03ad\u03c7\u03c9 \u03b4\u03b7\u03bb\u03ce\u03c3\u03b5\u03b9 (\u03b7\u03bb\u03b9\u03ba\u03b9\u03b1\u03ba\u03ae \u03bf\u03bc\u03ac\u03b4\u03b1, \u03c6\u03cd\u03bb\u03bf, \u03b8\u03ad\u03c3\u03b7 \u03c3\u03c4\u03b7\u03bd \u03b5\u03c4\u03b1\u03b9\u03c1\u03b5\u03af\u03b1, \u03b4\u03b9\u03ac\u03c1\u03ba\u03b5\u03b9\u03b1 \u03b1\u03c0\u03b1\u03c3\u03c7\u03cc\u03bb\u03b7\u03c3\u03b7\u03c2 \u03c3\u03c4\u03b7\u03bd \u03b5\u03c0\u03b9\u03c7\u03b5\u03af\u03c1\u03b7\u03c3\u03b7, \u03c4\u03bc\u03ae\u03bc\u03b1 \u03ba\u03b1\u03b9 \u03b1\u03c0\u03b1\u03bd\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2 \u03c3\u03b5 \u03b1\u03bd\u03bf\u03b9\u03ba\u03c4\u03ad\u03c2 \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2), \u03c4\u03b1 \u03bf\u03c0\u03bf\u03af\u03b1 \u03b5\u03bd\u03b4\u03ad\u03c7\u03b5\u03c4\u03b1\u03b9 \u03c3\u03b5 \u03bc\u03b5\u03bc\u03bf\u03bd\u03c9\u03bc\u03ad\u03bd\u03b5\u03c2 \u03c0\u03b5\u03c1\u03b9\u03c0\u03c4\u03ce\u03c3\u03b5\u03b9\u03c2 \u03bd\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03bf\u03c3\u03c9\u03c0\u03b9\u03ba\u03ac \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1, \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd PERSENTIS GmbH \u03ba\u03b1\u03b9 \u03c4\u03bf\u03c5\u03c2 \u03b5\u03ba\u03c4\u03b5\u03bb\u03bf\u03cd\u03bd\u03c4\u03b5\u03c2 \u03c4\u03b7\u03bd \u03b5\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1 \u03b3\u03b9\u03b1 \u03bb\u03bf\u03b3\u03b1\u03c1\u03b9\u03b1\u03c3\u03bc\u03cc \u03c4\u03b7\u03c2, \u03b3\u03b9\u03b1 \u03c3\u03ba\u03bf\u03c0\u03bf\u03cd\u03c2 \u03b4\u03b9\u03b5\u03be\u03b1\u03b3\u03c9\u03b3\u03ae\u03c2, \u03b1\u03bd\u03ac\u03bb\u03c5\u03c3\u03b7\u03c2 \u03ba\u03b1\u03b9 \u03b1\u03be\u03b9\u03bf\u03bb\u03cc\u03b3\u03b7\u03c3\u03b7\u03c2 \u03b5\u03c1\u03b5\u03c5\u03bd\u03ce\u03bd, \u03ba\u03b1\u03b8\u03ce\u03c2 \u03ba\u03b1\u03b9 (ii) \u03c3\u03c4\u03b7 \u03b4\u03b7\u03bc\u03b9\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03ba\u03b1\u03b9 \u03b4\u03b9\u03b1\u03b2\u03af\u03b2\u03b1\u03c3\u03b7 \u03c3\u03c5\u03b3\u03ba\u03b5\u03bd\u03c4\u03c1\u03c9\u03c4\u03b9\u03ba\u03ce\u03bd \u03b1\u03c0\u03bf\u03c4\u03b5\u03bb\u03b5\u03c3\u03bc\u03ac\u03c4\u03c9\u03bd \u03ba\u03b1\u03b9 \u03c4\u03c9\u03bd \u03b1\u03c0\u03b1\u03bd\u03c4\u03ae\u03c3\u03b5\u03c9\u03bd \u03c3\u03c4\u03b9\u03c2 \u03b1\u03bd\u03bf\u03b9\u03ba\u03c4\u03ad\u03c2 \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03b9\u03c2, \u03bf\u03b9 \u03bf\u03c0\u03bf\u03af\u03b5\u03c2 \u03b5\u03bd\u03b4\u03ad\u03c7\u03b5\u03c4\u03b1\u03b9 \u03c3\u03b5 \u03bc\u03b5\u03bc\u03bf\u03bd\u03c9\u03bc\u03ad\u03bd\u03b5\u03c2 \u03c0\u03b5\u03c1\u03b9\u03c0\u03c4\u03ce\u03c3\u03b5\u03b9\u03c2 \u03bd\u03b1 \u03b5\u03af\u03bd\u03b1\u03b9 \u03c0\u03c1\u03bf\u03c3\u03c9\u03c0\u03b9\u03ba\u03ac \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03b1, \u03c0\u03c1\u03bf\u03c2 \u03c4\u03bf\u03bd \u03b5\u03bd\u03c4\u03bf\u03bb\u03ad\u03b1.",consentP2a:"\u039c\u03c0\u03bf\u03c1\u03ce \u03bd\u03b1 \u03b1\u03bd\u03b1\u03ba\u03b1\u03bb\u03ad\u03c3\u03c9 \u03b1\u03c5\u03c4\u03ae \u03c4\u03b7 \u03c3\u03c5\u03b3\u03ba\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03b7 \u03b1\u03bd\u03ac \u03c0\u03ac\u03c3\u03b1 \u03c3\u03c4\u03b9\u03b3\u03bc\u03ae \u03bc\u03ad\u03c3\u03c9 email \u03c3\u03c4\u03b7 \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 [email protected] \u03ae \u03b5\u03b3\u03b3\u03c1\u03ac\u03c6\u03c9\u03c2 \u03c3\u03c4\u03b7 \u03b4\u03b9\u03b5\u03cd\u03b8\u03c5\u03bd\u03c3\u03b7 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u0397 \u03b1\u03bd\u03ac\u03ba\u03bb\u03b7\u03c3\u03b7 \u03c4\u03b7\u03c2 \u03c3\u03c5\u03b3\u03ba\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03b7\u03c2 \u03b4\u03b5\u03bd \u03b8\u03af\u03b3\u03b5\u03b9 \u03c4\u03b7 \u03bd\u03bf\u03bc\u03b9\u03bc\u03cc\u03c4\u03b7\u03c4\u03b1 \u03c4\u03b7\u03c2 \u03b5\u03c0\u03b5\u03be\u03b5\u03c1\u03b3\u03b1\u03c3\u03af\u03b1\u03c2 \u03c0\u03bf\u03c5 \u03c0\u03c1\u03b1\u03b3\u03bc\u03b1\u03c4\u03bf\u03c0\u03bf\u03b9\u03ae\u03b8\u03b7\u03ba\u03b5 \u03b2\u03ac\u03c3\u03b5\u03b9 \u03c4\u03b7\u03c2 \u03c3\u03c5\u03b3\u03ba\u03b1\u03c4\u03ac\u03b8\u03b5\u03c3\u03b7\u03c2 \u03bc\u03ad\u03c7\u03c1\u03b9 \u03c4\u03b7\u03bd \u03b1\u03bd\u03ac\u03ba\u03bb\u03b7\u03c3\u03b7. \u039f\u03b9 \u03c0\u03bb\u03b7\u03c1\u03bf\u03c6\u03bf\u03c1\u03af\u03b5\u03c2 \u03c0\u03c1\u03bf\u03c3\u03c4\u03b1\u03c3\u03af\u03b1\u03c2 \u03b4\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03c9\u03bd \u03c3\u03cd\u03bc\u03c6\u03c9\u03bd\u03b1 \u03bc\u03b5 \u03c4\u03bf Art 13 DSGVO \u03b5\u03af\u03bd\u03b1\u03b9 ",consentLinkText:"\u0395\u0394\u03a9",consentP2b:" \u03b4\u03b9\u03b1\u03b8\u03ad\u03c3\u03b9\u03bc\u03b5\u03c2 \u03b3\u03b9\u03b1 \u03b1\u03bd\u03ac\u03b3\u03bd\u03c9\u03c3\u03b7.",consentCheckbox:"\u03a3\u03c5\u03bc\u03c6\u03c9\u03bd\u03ce \u03c1\u03b7\u03c4\u03ac.",consentRequired:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03c3\u03c5\u03bc\u03c6\u03c9\u03bd\u03ae\u03c3\u03c4\u03b5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c3\u03c5\u03bd\u03b5\u03c7\u03af\u03c3\u03b5\u03c4\u03b5.",assignTitle:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b1\u03bd\u03c4\u03b9\u03c3\u03c4\u03bf\u03b9\u03c7\u03af\u03c3\u03c4\u03b5 \u03c4\u03bf\u03bd \u03b5\u03b1\u03c5\u03c4\u03cc \u03c3\u03b1\u03c2 \u03c3\u03b5 \u03ad\u03bd\u03b1 \u03c4\u03bc\u03ae\u03bc\u03b1.",assignSubtitle:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c4\u03bf \u03c4\u03bc\u03ae\u03bc\u03b1 \u03c3\u03b1\u03c2 (\u03c5\u03c0\u03bf\u03ba\u03b1\u03c4\u03ac\u03c3\u03c4\u03b7\u03bc\u03b1 | \u03c4\u03bc\u03ae\u03bc\u03b1).",assignPlaceholder:"\u0395\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03c4\u03bc\u03ae\u03bc\u03b1",assignRequired:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b5\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u03ad\u03bd\u03b1 \u03c4\u03bc\u03ae\u03bc\u03b1.",questionIntro:"\u03a3\u03b5 \u03c0\u03bf\u03b9\u03bf\u03bd \u03b2\u03b1\u03b8\u03bc\u03cc \u03b9\u03c3\u03c7\u03cd\u03b5\u03b9 \u03b3\u03b9\u03b1 \u03b5\u03c3\u03ac\u03c2 \u03b7 \u03b1\u03ba\u03cc\u03bb\u03bf\u03c5\u03b8\u03b7 \u03b4\u03ae\u03bb\u03c9\u03c3\u03b7;",answered:"\u03b1\u03c0\u03b1\u03bd\u03c4\u03ae\u03b8\u03b7\u03ba\u03b5",quotaReachedMsg:"\u0397 \u03c3\u03c5\u03bc\u03bc\u03b5\u03c4\u03bf\u03c7\u03ae \u03c3\u03b1\u03c2 \u03b8\u03b1 \u03bb\u03b7\u03c6\u03b8\u03b5\u03af \u03c5\u03c0\u03cc\u03c8\u03b7 \u2013 \u03c3\u03b1\u03c2 \u03b5\u03c5\u03c7\u03b1\u03c1\u03b9\u03c3\u03c4\u03bf\u03cd\u03bc\u03b5!",quotaHintPre:"\u0397 \u03c3\u03c5\u03bc\u03bc\u03b5\u03c4\u03bf\u03c7\u03ae \u03c3\u03b1\u03c2 \u03b8\u03b1 \u03bb\u03b7\u03c6\u03b8\u03b5\u03af \u03c5\u03c0\u03cc\u03c8\u03b7 \u03b1\u03c0\u03
2cc \u03c4\u03bf ",quotaHintPost:" % \u03c4\u03c9\u03bd \u03b1\u03c0\u03b1\u03bd\u03c4\u03b7\u03bc\u03ad\u03bd\u03c9\u03bd \u03b5\u03c1\u03c9\u03c4\u03ae\u03c3\u03b5\u03c9\u03bd.",selectPlaceholder:"\u03a0\u03b1\u03c1\u03b1\u03ba\u03b1\u03bb\u03bf\u03cd\u03bc\u03b5 \u03b5\u03c0\u03b9\u03bb\u03ad\u03be\u03c4\u03b5 \u2026",fastdoneTitle:"\u03a3\u03c7\u03b5\u03b4\u03cc\u03bd \u03c4\u03b5\u03bb\u03b5\u03b9\u03ce\u03c3\u03b1\u03c4\u03b5",sozioTitle:"\u039a\u03bf\u03b9\u03bd\u03c9\u03bd\u03b9\u03ba\u03bf\u03b4\u03b7\u03bc\u03bf\u03b3\u03c1\u03b1\u03c6\u03b9\u03ba\u03ac \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1",sozioNote:"\u03a4\u03b1 \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03b1 \u03b1\u03c5\u03c4\u03ac \u03b5\u03af\u03bd\u03b1\u03b9 \u03b1\u03c0\u03bf\u03bb\u03cd\u03c4\u03c9\u03c2 \u03c0\u03c1\u03bf\u03b1\u03b9\u03c1\u03b5\u03c4\u03b9\u03ba\u03ac \u03ba\u03b1\u03b9 \u03b4\u03b5\u03bd \u03bb\u03b1\u03bc\u03b2\u03ac\u03bd\u03bf\u03bd\u03c4\u03b1\u03b9 \u03c5\u03c0\u03cc\u03c8\u03b7 \u03c3\u03c4\u03bf\u03bd \u03c5\u03c0\u03bf\u03bb\u03bf\u03b3\u03b9\u03c3\u03bc\u03cc.",likert:["\u0394\u03b9\u03b1\u03c6\u03c9\u03bd\u03ce \u03b1\u03c0\u03cc\u03bb\u03c5\u03c4\u03b1","\u039c\u03ac\u03bb\u03bb\u03bf\u03bd \u03b4\u03b9\u03b1\u03c6\u03c9\u03bd\u03ce","\u039f\u03cd\u03c4\u03b5 \u03c3\u03c5\u03bc\u03c6\u03c9\u03bd\u03ce \u03bf\u03cd\u03c4\u03b5 \u03b4\u03b9\u03b1\u03c6\u03c9\u03bd\u03ce","\u039c\u03ac\u03bb\u03bb\u03bf\u03bd \u03c3\u03c5\u03bc\u03c6\u03c9\u03bd\u03ce","\u03a3\u03c5\u03bc\u03c6\u03c9\u03bd\u03ce \u03b1\u03c0\u03cc\u03bb\u03c5\u03c4\u03b1"]},uk:{intro:"\u0410\u043d\u043e\u043d\u0456\u043c\u043d\u0435 \u043e\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u043d\u044f \u043f\u0440\u0430\u0446\u0456\u0432\u043d\u0438\u043a\u0456\u0432",start:"\u0420\u043e\u0437\u043f\u043e\u0447\u0430\u0442\u0438 \u043e\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u043d\u044f",next:"\u0414\u0430\u043b\u0456",back:"\u041d\u0430\u0437\u0430\u0434",submit:"\u041d\u0430\u0434\u0456\u0441\u043b\u0430\u0442\u0438",positive:"\u041f\u043e\u0437\u0438\u0442\u0438\u0432\u043d\u0456 \u0430\u0441\u043f\u0435\u043a\u0442\u0438 (\u043d\u0435\u043e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u043e)",negative:"\u041d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u0456 \u0430\u0441\u043f\u0435\u043a\u0442\u0438 (\u043d\u0435\u043e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u043e)",other:"\u0406\u043d\u0448\u0435 \u2026",answerHere:"\u0412\u0430\u0448\u0430 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u2026",feedbackTitle:"\u0427\u0438 \u0445\u043e\u0442\u0456\u043b\u0438 \u0431 \u0412\u0438 \u0449\u0435 \u0449\u043e\u0441\u044c \u0434\u043e\u0434\u0430\u0442\u0438 \u0437 \u0446\u0456\u0454\u0457 \u0442\u0435\u043c\u0438?",feedback:"\u0427\u0438 \u0445\u043e\u0442\u0456\u043b\u0438 \u0431 \u0412\u0438 \u0449\u0435 \u0449\u043e\u0441\u044c \u043f\u043e\u0432\u0456\u0434\u043e\u043c\u0438\u0442\u0438? (\u043d\u0435\u043e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u043e)",done:"\u0429\u0438\u0440\u043e \u0434\u044f\u043a\u0443\u0454\u043c\u043e!",doneText:"\u0412\u0430\u0448\u0443 \u0430\u043d\u043e\u043d\u0456\u043c\u043d\u0443 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044c \u043d\u0430\u0434\u0456\u0441\u043b\u0430\u043d\u043e.",moreLink:"\u042f \u0445\u043e\u0447\u0443 \u0434\u0456\u0437\u043d\u0430\u0442\u0438\u0441\u044f \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u0440\u043e PERSENTIS Care.",progress:"\u0417\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f",selectRating:"\u0426\u0435 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0454 \u043e\u0431\u043e\u0432\u2019\u044f\u0437\u043a\u043e\u0432\u0438\u043c.",anonymous:"100 % \u0430\u043d\u043e\u043d\u0456\u043c\u043d\u043e",welcomeFor:"\u041b\u0430\u0441\u043a\u0430\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043c\u043e \u0434\u043e PERSENTIS Care \u0434\u043b\u044f",introHeading:"\u041b\u0430\u0441\u043a\u0430\u0432\u043e \u043f\u0440\u043e\u0441\u0438\u043c\u043e \u0434\u043e PERSENTIS Care",welcomeText:"**\u0420\u0430\u0434\u0456, \u0449\u043e \u0412\u0438 \u0442\u0443\u0442 \u0456 \u043f\u0440\u0438\u0434\u0456\u043b\u044f\u0454\u0442\u0435 \u0447\u0430\u0441 \u043a\u0456\u043b\u044c\u043a\u043e\u043c \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u044f\u043c \u043d\u0430 \u0442\u0435\u043c\u0443 \u0440\u043e\u0431\u043e\u0447\u043e\u0433\u043e \u043d\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f!** \u0412\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0437\u0430\u0439\u043c\u0443\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u043d\u043e **15 \u0445\u0432\u0438\u043b\u0438\u043d**. \u041d\u0430\u0439\u043a\u0440\u0430\u0449\u0435 \u043e\u0431\u0435\u0440\u0456\u0442\u044c \u0441\u043f\u043e\u043a\u0456\u0439\u043d\u0435 \u043c\u0456\u0441\u0446\u0435, \u0434\u0435 \u0412\u0438 \u0437\u043c\u043e\u0436\u0435\u0442\u0435 **\u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0448\u043a\u043e\u0434** \u043f\u0440\u043e\u0439\u0442\u0438 \u0446\u044e \u0430\u043d\u043a\u0435\u0442\u0443.\n\n**\u042f\u043a\u0449\u043e \u0412\u0438 \u043d\u0435 \u0437\u043e\u0432\u0441\u0456\u043c \u0443\u043f\u0435\u0432\u043d\u0435\u043d\u0456 \u0443 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u044f\u043a\u0435\u0441\u044c \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0432\u0456\u0440\u0442\u0435\u0441\u044f \u0441\u0432\u043e\u0454\u043c\u0443 \u043f\u0435\u0440\u0448\u043e\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0456\u0448\u043d\u044c\u043e\u043c\u0443 \u0432\u0456\u0434\u0447\u0443\u0442\u0442\u044e \u2014 \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0432\u043e\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0435.**\n\n**\u0412\u0430\u0448\u0456 \u0432\u0456\u0434\u0433\u0443\u043a\u0438 \u043c\u0430\u044e\u0442\u044c \u0432\u0435\u043b\u0438\u043a\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f:** \u0432\u043e\u043d\u0438 \u0434\u043e\u043f\u043e\u043c\u0430\u0433\u0430\u044e\u0442\u044c \u0412\u0430\u0448\u043e\u043c\u0443 \u0440\u043e\u0431\u043e\u0442\u043e\u0434\u0430\u0432\u0446\u044e \u0441\u043f\u0440\u0438\u044f\u0442\u0438 \u0437\u0434\u043e\u0440\u043e\u0432\u0438\u043c \u0443\u043c\u043e\u0432\u0430\u043c \u043f\u0440\u0430\u0446\u0456 \u0442\u0430, \u0437\u0430 \u043f\u043e\u0442\u0440\u0435\u0431\u0438, \u0432\u0436\u0438\u0432\u0430\u0442\u0438 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u043d\u0438\u0445 \u0437\u0430\u0445\u043e\u0434\u0456\u0432.\n\n**\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0431\u0443\u0442\u0438 \u0446\u0456\u043b\u043a\u043e\u043c \u0441\u043f\u043e\u043a\u0456\u0439\u043d\u0456: \u0443\u0441\u0456 \u0434\u0430\u043d\u0456, \u0437\u0456\u0431\u0440\u0430\u043d\u0456 \u0442\u0443\u0442, \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u044e\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u0432\u043e\u0440\u0456\u0439 \u043a\u043e\u043d\u0444\u0456\u0434\u0435\u043d\u0446\u0456\u0439\u043d\u043e\u0441\u0442\u0456. \u0410\u043d\u0430\u043b\u0456\u0437 \u0437\u0434\u0456\u0439\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f \u0431\u0435\u0437\u043f\u043e\u0441\u0435\u0440\u0435\u0434\u043d\u044c\u043e \u0432 PERSENTIS, \u0437\u0430\u0432\u0436\u0434\u0438 \u0430\u043d\u043e\u043d\u0456\u043c\u043d\u043e \u0442\u0430 \u0441\u0442\u043e\u0441\u0443\u0454\u0442\u044c\u0441\u044f \u043b\u0438\u0448\u0435 \u0446\u0456\u043b\u0438\u0445 \u0433\u0440\u0443\u043f \u043f\u0440\u0430\u0446\u0456\u0432\u043d\u0438\u043a\u0456\u0432.**\n\n\u0417\u0431\u0456\u0440 \u0434\u0430\u043d\u0438\u0445 \u0437\u0434\u0456\u0439\u0441\u043d\u044e\u0454\u0442\u044c\u0441\u044f **\u0431\u0435\u0437 \u0437\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0456\u043c\u0435\u043d\u0456 \u0447\u0438 \u0430\u0434\u0440\u0435\u0441\u0438 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0457 \u043f\u043e\u0448\u0442\u0438**. \u041e\u0446\u0456\u043d\u043a\u0438 \u0443\u0437\u0430\u0433\u0430\u043b\u044c\u043d\u044e\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u0432\u0456\u0434\u0434\u0456\u043b\u0430\u043c\u0438 \u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u044c\u0441\u044f \u044f\u043a \u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442. **\u0423\u0441\u0456 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456** \u043d\u0430 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f \u0412\u0430\u0448 \u0440\u043e\u0431\u043e\u0442\u043e\u0434\u0430\u0432\u0435\u0446\u044c \u043e\u0442\u0440\u0438\u043c\u0443\u0454 **\u0432 \u0443\u0437\u0430\u0433\u0430\u043b\u044c\u043d\u0435\u043d\u0456\u0439 \u0444\u043e\u0440\u043c\u0456**. \u0429\u043e\u0431 \u0437\u0430\u0445\u0438\u0441\u0442\u0438\u0442\u0438 \u0441\u0435\u0431\u0435 \u0442\u0430 \u0430\u043d\u043e\u043d\u0456\u043c\u043d\u0456\u0441\u0442\u044c \u0412\u0430\u0448\u0438\u0445 \u043a\u043e\u043b\u0435\u0433, **\u0431\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0443\u0442\u0440\u0438\u043c\u0430\u0439\u0442\u0435\u0441\u044f \u0432\u0456\u0434 \u0437\u0433\u0430\u0434\u0443\u0432\u0430\u043d\u043d\u044f \u0456\u043c\u0435\u043d**!",consentTitle:"\u041d\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0430 \u0412\u0430\u0448\u0430 \u0437\u0433\u043e\u0434\u0430",consentP1:"\u0426\u0438\u043c \u044f \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f \u0443 \u0437\u0432\u2019\u044f\u0437\u043a\u0443 \u0437 \u043e\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u043d\u044f\u043c PERSENTIS \u043d\u0430 (i) \u043e\u0431\u0440\u043e\u0431\u043a\u0443 \u043d\u0430\u0434\u0430\u043d\u0438\u0445 \u043c\u043d\u043e\u044e \u0434\u0430\u043d\u0438\u0445 (\u0432\u0456\u043a\u043e\u0432\u0430 \u0433\u0440\u0443\u043f\u0430, \u0441\u0442\u0430\u0442\u044c, \u043f\u043e\u0441\u0430\u0434\u0430 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0457, \u0442\u0440\u0438\u0432\u0430\u043b\u0456\u0441\u0442\u044c \u0440\u043e\u0431\u043e\u0442\u0438 \u0432 \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0457, \u0432\u0456\u0434\u0434\u0456\u043b \u0456 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0456 \u043d\u0430 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f), \u044f\u043a\u0456 \u0432 \u043e\u043a\u0440\u0435\u043c\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u043c\u0438 \u0434\u0430\u043d\u0438\u043c\u0438, \u043a\u043e\u043c\u043f\u0430\u043d\u0456\u0454\u044e PERSENTIS GmbH \u0442\u0430 \u0457\u0457 \u043e\u0431\u0440\u043e\u0431\u043d\u0438\u043a\u0430\u043c\u0438 \u0434\u0430\u043d\u0438\u0445 \u0434\u043b\u044f \u0446\u0456\u043b\u0435\u0439 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u043d\u044f, \u0430\u043d\u0430\u043b\u0456\u0437\u0443 \u0442\u0430 \u043e\u0446\u0456\u043d\u044e\u0432\u0430\u043d\u043d\u044f \u043e\u043f\u0438\u0442\u0443\u0432\u0430\u043d\u044c, \u0430 \u0442\u0430\u043a\u043e\u0436 (ii) \u043d\u0430 \u0441\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0442\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0430\u0433\u0440\u0435\u0433\u043e\u0432\u0430\u043d\u0438\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456\u0432 \u0456 \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0435\u0439 \u043d\u0430 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u043d\u044f, \u044f\u043a\u0456 \u0432 \u043e\u043a\u0440\u0435\u043c\u0438\u0445 \u0432\u0438\u043f\u0430\u0434\u043a\u0430\u0445 \u043c\u043e\u0436\u0443\u0442\u044c \u0431\u0443\u0442\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u0438\u043c\u0438 \u0434\u0430\u043d\u0438\u043c\u0438, \u0437\u0430\u043c\u043e\u0432\u043d\u0438\u043a\u0443.",consentP2a:"\u042f \u
2043c\u043e\u0436\u0443 \u0432\u0456\u0434\u043a\u043b\u0438\u043a\u0430\u0442\u0438 \u0446\u044e \u0437\u0433\u043e\u0434\u0443 \u0432 \u0431\u0443\u0434\u044c-\u044f\u043a\u0438\u0439 \u0447\u0430\u0441 \u0435\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u044e \u043f\u043e\u0448\u0442\u043e\u044e \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0443 [email protected] \u0430\u0431\u043e \u043f\u0438\u0441\u044c\u043c\u043e\u0432\u043e \u043d\u0430 \u0430\u0434\u0440\u0435\u0441\u0443 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u0412\u0456\u0434\u043a\u043b\u0438\u043a\u0430\u043d\u043d\u044f \u0437\u0433\u043e\u0434\u0438 \u043d\u0435 \u0432\u043f\u043b\u0438\u0432\u0430\u0454 \u043d\u0430 \u043f\u0440\u0430\u0432\u043e\u043c\u0456\u0440\u043d\u0456\u0441\u0442\u044c \u043e\u0431\u0440\u043e\u0431\u043a\u0438, \u0437\u0434\u0456\u0439\u0441\u043d\u0435\u043d\u043e\u0457 \u043d\u0430 \u043f\u0456\u0434\u0441\u0442\u0430\u0432\u0456 \u0437\u0433\u043e\u0434\u0438 \u0434\u043e \u0457\u0457 \u0432\u0456\u0434\u043a\u043b\u0438\u043a\u0430\u043d\u043d\u044f. \u0406\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e \u043f\u0440\u043e \u0437\u0430\u0445\u0438\u0441\u0442 \u0434\u0430\u043d\u0438\u0445 \u0437\u0433\u0456\u0434\u043d\u043e \u0437 Art 13 DSGVO \u043c\u043e\u0436\u043d\u0430 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u0438 ",consentLinkText:"\u0422\u0423\u0422",consentP2b:".",consentCheckbox:"\u042f \u043f\u0440\u044f\u043c\u043e \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f.",consentRequired:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043d\u0430\u0434\u0430\u0439\u0442\u0435 \u0437\u0433\u043e\u0434\u0443, \u0449\u043e\u0431 \u043f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438.",assignTitle:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0456\u0434\u043d\u0435\u0441\u0456\u0442\u044c \u0441\u0435\u0431\u0435 \u0434\u043e \u043f\u0435\u0432\u043d\u043e\u0433\u043e \u0432\u0456\u0434\u0434\u0456\u043b\u0443.",assignSubtitle:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0441\u0432\u0456\u0439 \u0432\u0456\u0434\u0434\u0456\u043b (\u0444\u0456\u043b\u0456\u044f | \u0432\u0456\u0434\u0434\u0456\u043b).",assignPlaceholder:"\u0412\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u0456\u0434\u0434\u0456\u043b",assignRequired:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u0456\u0434\u0434\u0456\u043b.",questionIntro:"\u041d\u0430\u0441\u043a\u0456\u043b\u044c\u043a\u0438 \u0446\u0435 \u0442\u0432\u0435\u0440\u0434\u0436\u0435\u043d\u043d\u044f \u0432\u0456\u0434\u043f\u043e\u0432\u0456\u0434\u0430\u0454 \u0412\u0430\u0448\u0456\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0456\u0457?",answered:"\u0432\u0456\u0434\u043f\u043e\u0432\u0456\u043b\u0438",quotaReachedMsg:"\u0412\u0430\u0448\u0443 \u0443\u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435 \u0437\u0430\u0440\u0430\u0445\u043e\u0432\u0430\u043d\u043e \u2014 \u0434\u044f\u043a\u0443\u0454\u043c\u043e!",quotaHintPre:"\u0412\u0430\u0448\u0443 \u0443\u0447\u0430\u0441\u0442\u044c \u0431\u0443\u0434\u0435 \u0437\u0430\u0440\u0430\u0445\u043e\u0432\u0430\u043d\u043e, \u043f\u043e\u0447\u0438\u043d\u0430\u044e\u0447\u0438 \u0437 ",quotaHintPost:" % \u0437\u0430\u043f\u043e\u0432\u043d\u0435\u043d\u0438\u0445 \u0437\u0430\u043f\u0438\u0442\u0430\u043d\u044c.",selectPlaceholder:"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u2026",fastdoneTitle:"\u041c\u0430\u0439\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u043e",sozioTitle:"\u0421\u043e\u0446\u0456\u043e\u0434\u0435\u043c\u043e\u0433\u0440\u0430\u0444\u0456\u0447\u043d\u0456 \u0434\u0430\u043d\u0456",sozioNote:"\u0426\u0456 \u0434\u0430\u043d\u0456 \u0454 \u043f\u043e\u0432\u043d\u0456\u0441\u0442\u044e \u0434\u043e\u0431\u0440\u043e\u0432\u0456\u043b\u044c\u043d\u0438\u043c\u0438 \u0442\u0430 \u043d\u0435 \u0432\u0440\u0430\u0445\u043e\u0432\u0443\u044e\u0442\u044c\u0441\u044f \u0432 \u0440\u043e\u0437\u0440\u0430\u0445\u0443\u043d\u043a\u0443.",likert:["\u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f","\u0421\u043a\u043e\u0440\u0456\u0448\u0435 \u043d\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f","\u0427\u0430\u0441\u0442\u043a\u043e\u0432\u043e / \u0447\u0430\u0441\u0442\u043a\u043e\u0432\u043e","\u0421\u043a\u043e\u0440\u0456\u0448\u0435 \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f","\u041f\u043e\u0432\u043d\u0456\u0441\u0442\u044e \u043f\u043e\u0433\u043e\u0434\u0436\u0443\u044e\u0441\u044f"]},he:{intro:"\u05e1\u05e7\u05e8 \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05d0\u05e0\u05d5\u05e0\u05d9\u05de\u05d9",start:"\u05d4\u05ea\u05d7\u05dc/\u05d9 \u05d0\u05ea \u05d4\u05e1\u05e7\u05e8",next:"\u05d4\u05d1\u05d0",back:"\u05d7\u05d6\u05e8\u05d4",submit:"\u05e9\u05dc\u05d7/\u05d9",positive:"\u05d4\u05d9\u05d1\u05d8\u05d9\u05dd \u05d7\u05d9\u05d5\u05d1\u05d9\u05d9\u05dd (\u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9)",negative:"\u05d4\u05d9\u05d1\u05d8\u05d9\u05dd \u05e9\u05dc\u05d9\u05dc\u05d9\u05d9\u05dd (\u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9)",other:"\u05d0\u05d7\u05e8 \u2026",answerHere:"\u05ea\u05e9\u05d5\u05d1\u05ea\u05da \u2026",feedbackTitle:"\u05d4\u05d0\u05dd \u05d1\u05e8\u05e6\u05d5\u05e0\u05da \u05dc\u05d4\u05d5\u05e1\u05d9\u05e3 \u05de\u05e9\u05d4\u05d5 \u05d1\u05e0\u05d5\u05e9\u05d0 \u05d6\u05d4?",feedback:"\u05d4\u05d0\u05dd \u05d1\u05e8\u05e6\u05d5\u05e0\u05da \u05dc\u05e9\u05ea\u05e3 \u05de\u05e9\u05d4\u05d5 \u05e0\u05d5\u05e1\u05e3? (\u05d0\u05d5\u05e4\u05e6\u05d9\u05d5\u05e0\u05dc\u05d9)",done:"\u05ea\u05d5\u05d3\u05d4 \u05e8\u
205d1\u05d4!",doneText:"\u05ea\u05e9\u05d5\u05d1\u05ea\u05da \u05d4\u05d0\u05e0\u05d5\u05e0\u05d9\u05de\u05d9\u05ea \u05e0\u05e9\u05dc\u05d7\u05d4.",moreLink:"\u05d1\u05e8\u05e6\u05d5\u05e0\u05d9 \u05dc\u05e7\u05d1\u05dc \u05de\u05d9\u05d3\u05e2 \u05e0\u05d5\u05e1\u05e3 \u05e2\u05dc PERSENTIS Care.",progress:"\u05e9\u05d0\u05dc\u05d4",selectRating:"\u05e9\u05d0\u05dc\u05d4 \u05d6\u05d5 \u05d4\u05d9\u05d0 \u05e9\u05d0\u05dc\u05d4 \u05d7\u05d5\u05d1\u05d4.",anonymous:"100% \u05d0\u05e0\u05d5\u05e0\u05d9\u05de\u05d9",welcomeFor:"\u05d1\u05e8\u05d5\u05db\u05d9\u05dd \u05d4\u05d1\u05d0\u05d9\u05dd \u05dc-PERSENTIS Care \u05e2\u05d1\u05d5\u05e8",introHeading:"\u05d1\u05e8\u05d5\u05db\u05d9\u05dd \u05d4\u05d1\u05d0\u05d9\u05dd \u05dc-PERSENTIS Care",welcomeText:'**\u05e0\u05e2\u05d9\u05dd \u05dc\u05e8\u05d0\u05d5\u05ea \u05e9\u05d4\u05d2\u05e2\u05ea \u05d5\u05e9\u05d4\u05e7\u05d3\u05e9\u05ea \u05d6\u05de\u05df \u05dc\u05e2\u05e0\u05d5\u05ea \u05e2\u05dc \u05db\u05de\u05d4 \u05e9\u05d0\u05dc\u05d5\u05ea \u05d1\u05e0\u05d5\u05e9\u05d0 \u05e2\u05d5\u05de\u05e1 \u05d1\u05e2\u05d1\u05d5\u05d3\u05d4!** \u05d4\u05de\u05e2\u05e0\u05d4 \u05e2\u05dc \u05d4\u05e9\u05d0\u05dc\u05d5\u05ea \u05d9\u05d9\u05de\u05e9\u05da \u05db-**15 \u05d3\u05e7\u05d5\u05ea**. \u05de\u05d5\u05de\u05dc\u05e5 \u05dc\u05d1\u05d7\u05d5\u05e8 \u05de\u05e7\u05d5\u05dd \u05e9\u05e7\u05d8 \u05e9\u05d1\u05d5 \u05ea\u05d5\u05db\u05dc/\u05d9 \u05dc\u05e2\u05d1\u05d5\u05e8 \u05e2\u05dc \u05e9\u05d0\u05dc\u05d5\u05df \u05d6\u05d4 **\u05dc\u05dc\u05d0 \u05d4\u05e4\u05e8\u
205e2\u05d4**.\n\n**\u05d0\u05dd \u05d0\u05d9\u05e0\u05da \u05d1\u05d8\u05d5\u05d7/\u05d4 \u05dc\u05d2\u05de\u05e8\u05d9 \u05dc\u05d2\u05d1\u05d9 \u05e9\u05d0\u05dc\u05d4 \u05de\u05e1\u05d5\u05d9\u05de\u05ea, \u05e4\u05e9\u05d5\u05d8 \u05e4\u05e2\u05dc/\u05d9 \u05dc\u05e4\u05d9 \u05ea\u05d7\u05d5\u05e9\u05ea \u05d4\u05d1\u05d8\u05df \u05d4\u05e8\u05d0\u05e9\u05d5\u05e0\u05d4 \u05e9\u05dc\u05da - \u05d1\u05d3\u05e8\u05da \u05db\u05dc\u05dc \u05d4\u05d9\u05d0 \u05d4\u05e0\u05db\u05d5\u05e0\u05d4.**\n\n**\u05dc\u05de\u05e9\u05d5\u05d1 \u05e9\u05dc\u05da \u05d9\u05e9 \u05d7\u05e9\u05d9\u05d1\u05d5\u05ea \u05e8\u05d1\u05d4:** \u05d4\u05d5\u05d0 \u05de\u05e1\u05d9\u05d9\u05e2 \u05dc\u05de\u05e2\u05e1\u05d9\u05e7 \u05e9\u05dc\u05da \u05dc\u05e7\u05d3\u05dd \u05ea\u05e0\u05d0\u05d9 \u05e2\u05d1\u05d5\u05d3\u05d4 \u05d1\u05e8\u05d9\u05d0\u05d9\u05dd \u05d5\u05d1\u05de\u05d9\u05d3\u05ea \u05d4\u05e6\u05d5\u05e8\u05da \u05dc\u05e0\u05e7\u05d5\u05d8 \u05e6\u05e2\u05d3\u05d9\u05dd.\n\n**\u05d1\u05d0\u05e4\u05e9\u05e8\u05d5\u05ea\u05da \u05dc\u05d4\u05e8\u05d2\u05d9\u05e9 \u05d1\u05d8\u05d5\u05d7/\u05d4 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df: \u05db\u05dc \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05e0\u05d0\u05e1\u05e4\u05d9\u05dd \u05db\u05d0\u05df \u05de\u05d8\u05d5\u05e4\u05dc\u05d9\u05dd \u05d1\u05e1\u05d5\u05d3\u05d9\u05d5\u05ea \u05de\u05d7\u05de\u05d9\u05e8\u05d4. \u05d4\u05e0\u05d9\u05ea\u05d5\u05d7\u05d9\u05dd \u05de\u05d1\u05d5\u05e6\u05e2\u05d9\u05dd \u05d9\u05e9\u05d9\u05e8\u05d5\u05ea \u05d1-PERSENTIS, \u05d4\u05dd \u05ea\u05de\u05d9\u05d3 \u05d0\u05e0\u05d5\u05e0\u05d9\u05de\u05d9\u05d9\u05dd \u05d5\u05de\u05ea\u05d9\u05d9\u05d7\u05e1\u05d9\u05dd \u05e8\u
205e7 \u05dc\u05e7\u05d1\u05d5\u05e6\u05d5\u05ea \u05e2\u05d5\u05d1\u05d3\u05d9\u05dd \u05e9\u05dc\u05de\u05d5\u05ea.**\n\n\u05d0\u05d9\u05e1\u05d5\u05e3 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05ea\u05d1\u05e6\u05e2 **\u05dc\u05dc\u05d0 \u05e6\u05d9\u05d5\u05df \u05e9\u05dd \u05d0\u05d5 \u05db\u05ea\u05d5\u05d1\u05ea \u05d3\u05d5\u05d0"\u05dc**. \u05d4\u05d4\u05e2\u05e8\u05db\u05d5\u05ea \u05de\u05e1\u05d5\u05db\u05de\u05d5\u05ea \u05dc\u05e4\u05d9 \u05de\u05d7\u05dc\u05e7\u05d5\u05ea \u05d5\u05e0\u05de\u05e1\u05e8\u05d5\u05ea \u05db\u05ea\u05d5\u05e6\u05d0\u05d4 \u05db\u05d5\u05dc\u05dc\u05ea. **\u05db\u05dc \u05d4\u05ea\u05e9\u05d5\u05d1\u05d5\u05ea** \u05dc\u05e9\u05d0\u05dc\u05d5\u05ea \u05d4\u05e4\u05ea\u05d5\u05d7\u05d5\u05ea \u05d9\u05d5\u05e2\u05d1\u05e8\u05d5 \u05dc\u05de\u05e2\u05e1\u05d9\u05e7 \u05e9\u05dc\u05da **\u05d1\u05e6\u05d5\u05e8\u05d4 \u05de\u05e8\u05d5\u05db\u05d6\u05ea**. \u05dc\u05d4\u05d2\u05e0\u05d4 \u05e2\u05dc\u05d9\u05da \u05d5\u05e2\u05dc \u05d4\u05d0\u05e0\u05d5\u05e0\u05d9\u05de\u05d9\u05d5\u05ea \u05e9\u05dc \u05e2\u05de\u05d9\u05ea\u05d9\u05da/\u05e2\u05de\u05d9\u05ea\u05d5\u05ea\u05d9\u05da, **\u05e0\u05d0 \u05dc\u05d4\u05d9\u05de\u05e0\u05e2 \u05de\u05e6\u05d9\u05d5\u05df \u05e9\u05de\u05d5\u05ea**!',consentTitle:"\u05d0\u05e0\u05d5 \u05d6\u05e7\u05d5\u05e7\u05d9\u05dd \u05dc\u05d4\u05e1\u05db\u05de\u05ea\u05da",consentP1:"\u05d1\u05d6\u05d0\u05ea \u05d0\u05e0\u05d9 \u05de\u05e1\u05db\u05d9\u05dd/\u05d4 \u05d1\u05de\u05e4\u05d5\u05e8\u05e9, \u05d1\u05e7\u05e9\u05e8 \u05dc\u05e1\u05e7\u05e8 PERSENTIS, \u05dc-(i) \u05e2\u05d9\u05d1\u05d5\u05d3 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05e9\u05de\u05e1\u05e8\u05ea\u05d9 (\u05e7\u05d1\u05d5\u05e6\u05ea \u05d2\u05d9\u05dc, \u05de\u05d2\u05d3\u05e8, \u05ea\u05e4\u05e7\u05d9\u05d3 \u05d1\u05d7\u05d1\u05e8\u05d4, \u05de\u05e9\u05da \u05d4\u05d5\u05d5\u05ea\u05e7 \u05d1\u05d7\u05d1\u05e8\u05d4, \u05de\u05d7\u05dc\u05e7\u05d4 \u05d5\u05ea\u05e9\u05d5\u05d1\u05d5\u05ea \u05dc\u05e9\u05d0\u05dc\u05d5\u05ea \u05e4\u05ea\u05d5\u05d7\u05d5\u05ea), \u05d0\u05e9\u05e8 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05de\u05d9\u05dd \u05e2\u05e9\u05d5\u05d9\u05d9\u05dd \u05dc\u05d4\u05d9\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9\u05d9\u05dd, \u05e2\u05dc \u05d9\u05d3\u05d9 PERSENTIS GmbH \u05d5\u05de\u05e2\u05d1\u05d3\u05d9 \u05d4\u05e0\u05ea\u05d5\u05e0\u05d9\u05dd \u05de\u05d8\u05e2\u05de\u05d4 \u05dc\u05e6\u05d5\u05e8\u05da \u05d1\u05d9\u05e6\u05d5\u05e2, \u05e0\u05d9\u05ea\u05d5\u05d7 \u05d5\u05d4\u05e2\u05e8\u05db\u05ea \u05e1\u05e7\u05e8\u05d9\u05dd, \u05d5\u05db\u05df \u05dc-(ii) \u05d9\u05e6\u05d9\u05e8\u05d4 \u05d5\u05d4\u05e2\u05d1\u05e8\u05d4 \u05e9\u05dc \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea \u05de\u05e6\u05d8\u05d1\u05e8\u05d5\u05ea \u05d5\u05e9\u05dc \u05d4\u05ea\u05e9\u05d5\u05d1\u05d5\u05ea \u05dc\u05e9\u05d0\u05dc\u05d5\u05ea \u05d4\u05e4\u05ea\u05d5\u05d7\u05d5\u05ea, \u05d0\u05e9\u05e8 \u05d1\u05de\u05e7\u05e8\u05d9\u05dd \u05de\u05e1\u05d5\u05d9\u05de\u05d9\u05dd \u05e2\u05e9\u05d5\u05d9\u05d5\u05ea \u05dc\u05d4\u05d9\u05d5\u05ea \u05d0\u05d9\u05e9\u05d9\u05d5\u05ea, \u05d0\u05dc \u05de\u05d6\u05de\u05d9\u05df \u05d4\u05e2\u05d1\u05d5\u05d3\u05d4.",consentP2a:'\u05d0\u05e0\u05d9 \u05d9\u05db\u05d5\u05dc/\u05d4 \u05dc\u05d1\u05d8\u05dc \u05d4\u05e1\u05db\u05de\u05d4 \u05d6\u05d5 \u05d1\u05db\u05dc \u05e2\u05ea \u05d1\u05d0\u05de\u05e6\u05e2\u05d5\u05ea \u05d3\u05d5\u05d0"\u05dc \u05dc\u05db\u05ea\u05d5\u05d1\u05ea [email protected] \u05d0\u05d5 \u05d1\u05db\u05ea\u05d1 \u05d0\u05dc PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. \u05d1\u05d9\u05d8\u05d5\u05dc \u05d4\u05d4\u05e1\u05db\u05de\u05d4 \u05d0\u05d9\u05e0\u05d5 \u05e4\u05d5\u05d2\u05e2 \u05d1\u05d7\u05d5\u05e7\u05d9\u05d5\u05ea \u05d4\u05e2\u05d9\u05d1\u05d5\u05d3 \u05e9\u05d1\u05d5\u05e6\u05e2 \u05e2\u05dc \u05d1\u05e1\u05d9\u05e1 \u05d4\u05d4\u05e1\u05db\u05de\u05d4 \u05e2\u05d3 \u05dc\u05de\u05d5\u05e2\u05d3 \u05d4\u05d1\u05d9\u05d8\u05d5\u05dc. \u05de\u05d9\u05d3\u05e2 \u05d4\u05d2\u05e0\u05ea \u05d4\u05de\u05d9\u05d3\u05e2 \u05d1\u05d4\u05ea\u05d0\u05dd \u05dc-Art 13 DSGVO \u05d6\u05de\u05d9\u05df ',consentLinkText:"\u05db\u05d0\u05df",consentP2b:" \u05dc\u05e2\u05d9\u05d5\u05df.",consentCheckbox:"\u05d0\u05e0\u05d9 \u05de\u05e1\u05db\u05d9\u05dd/\u05d4 \u05d1\u05de\u05e4\u05d5\u05e8\u05e9.",consentRequired:"\u05e0\u05d0 \u05dc\u05d4\u05e1\u05db\u05d9\u05dd \u05db\u05d3\u05d9 \u05dc\u05d4\u05de\u05e9\u05d9\u05da.",assignTitle:"\u05e0\u05d0 \u05dc\u05e9\u05d9\u05d9\u05da \u05d0\u05ea \u05e2\u05e6\u05de\u05da \u05dc\u05de\u05d7\u05dc\u05e7\u05d4.",assignSubtitle:"\u05d1\u05d7\u05e8/\u05d9 \u05d0\u05ea \u05d4\u05de\u05d7\u05dc\u05e7\u05d4 \u05e9\u05dc\u05da (\u05e1\u05e0\u05d9\u05e3 | \u05de\u05d7\u05dc\u05e7\u05d4).",assignPlaceholder:"\u05d1\u05d7\u05e8/\u05d9 \u05de\u05d7\u05dc\u05e7\u05d4",assignRequired:"\u05e0\u05d0 \u05dc\u05d1\u05d7\u05d5\u05e8 \u05de\u05d7\u05dc\u05e7\u05d4.",questionIntro:"\u05d1\u05d0\u05d9\u05d6\u05d5 \u05de\u05d9\u05d3\u05d4 \u05d4\u05d4\u05d9\u05d2\u05d3 \u05d4\u05d1\u05d0 \u05e0\u05db\u05d5\u05df \u05dc\u05d2\u05d1\u05d9\u05da?",answered:"\u05e0\u05e2\u05e0\u05ea\u05d4",quotaReachedMsg:"\u05d4\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea\u05da \u05ea\u05d9\u05d7\u05e9\u05d1 \u2013 \u05ea\u05d5\u05d3\u05d4 \u05e8\u
205d1\u05d4!",quotaHintPre:"\u05d4\u05e9\u05ea\u05ea\u05e4\u05d5\u05ea\u05da \u05ea\u05d9\u05d7\u05e9\u05d1 \u05d4\u05d7\u05dc \u05de-",quotaHintPost:"% \u05de\u05d4\u05e9\u05d0\u05dc\u05d5\u05ea \u05e9\u05e0\u05e2\u05e0\u05d5.",selectPlaceholder:"\u05e0\u05d0 \u05dc\u05d1\u05d7\u05d5\u05e8 \u2026",fastdoneTitle:"\u05db\u05de\u05e2\u05d8 \u05e1\u05d9\u05d9\u05de\u05ea",sozioTitle:"\u05e4\u05e8\u05d8\u05d9\u05dd \u05e1\u05d5\u05e6\u05d9\u05d5-\u05d3\u05de\u05d5\u05d2\u05e8\u05e4\u05d9\u05d9\u05dd",sozioNote:"\u05e4\u05e8\u05d8\u05d9\u05dd \u05d0\u05dc\u05d4 \u05d4\u05dd \u05d5\u05d5\u05dc\u05d5\u05e0\u05d8\u05e8\u05d9\u05d9\u05dd \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df \u05d5\u05dc\u05d0 \u05d9\u05d9\u05db\u05dc\u05dc\u05d5 \u05d1\u05d7\u05d9\u05e9\u05d5\u05d1.",likert:["\u05db\u05dc\u05dc \u05dc\u05d0 \u05de\u05e1\u05db\u05d9\u05dd/\u05d4","\u05d3\u05d9 \u05dc\u05d0 \u05de\u05e1\u05db\u05d9\u05dd/\u05d4","\u05d2\u05dd \u05d5\u05d2\u05dd","\u05d3\u05d9 \u05de\u05e1\u05db\u05d9\u05dd/\u05d4","\u05de\u05e1\u05db\u05d9\u05dd/\u05d4 \u05dc\u05d7\u05dc\u05d5\u05d8\u05d9\u05df"]},th:{intro:"\u0e41\u0e1a\u0e1a\u0e2a\u0e33\u0e23\u0e27\u0e08\u0e1e\u0e19\u0e31\u0e01\u0e07\u0e32\u0e19\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e31\u0e27\u0e15\u0e19",start:"\u0e40\u0e23\u0e34\u0e48\u0e21\u0e41\u0e1a\u0e1a\u0e2a\u0e33\u0e23\u0e27\u0e08",next:"\u0e16\u0e31\u0e14\u0e44\u0e1b",back:"\u0e22\u0e49\u0e2d\u0e19\u0e01\u0e25\u0e31\u0e1a",submit:"\u0e2a\u0e48\u0e07",positive:"\u0e41\u0e07\u0e48\u0e21\u0e38\u0e21\u0e40\u0e0a\u0e34\u0e07\u0e1a\u0e27\u0e01 (\u0e44\u0e21\u0e48\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a)",negative:"\u0e41\u0e07\u0e48\u0e21\u0e38\u0e21\u0e40\u0e0a\u0e34\u0e07\u0e25\u0e1a (\u0e44\u0e21\u0e48\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a)",other:"\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u2026",answerHere:"\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19 \u2026",feedbackTitle:"\u0e17\u0e48\u0e32\u0e19\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e2b\u0e31\u0e27\u0e02\u0e49\u0e2d\u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48?",feedback:"\u0e17\u0e48\u0e32\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e41\u0e08\u0e49\u0e07\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e21\u0e48? (\u0e44\u0e21\u0e48\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a)",done:"\u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e21\u0e32\u0e01!",doneText:"\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e31\u0e27\u0e15\u0e19\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e16\u0e39\u0e01\u0e2a\u0e48\u0e07\u0e41\u0e25\u0e49\u0e27",moreLink:"\u0e02\u0e49\u0e32\u0e1e\u0e40\u0e08\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e23\u0e32\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a PERSENTIS Care",progress:"\u0e04\u0e33\u0e16\u0e32\u0e21",selectRating:"\u0e04\u0e33\u0e16\u0e32\u0e21\u0e19\u0e35\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e33\u0e16\u0e32\u0e21\u0e1a\u0e31\u0e07\u0e04\u0e31\u0e1a",anonymous:"\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e31\u0e27\u0e15\u0e19 100 %",welcomeFor:"\u0e22\u0e34\u0e19\u0e14\u0e35\u0e15\u0e49\u0e2d\u0e19\u0e23\u0e31\u0e1a\u0e2a\u0e39\u0e48 PERSENTIS Care \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a",introHeading:"\u0e22\u0e34\u0e19\u0e14\u0e35\u0e15\u0e49\u0e2d\u0e19\u0e23\u0e31\u0e1a\u0e2a\u0e39\u0e48 PERSENTIS Care",welcomeText:"**\u0e22\u0e34\u0e19\u0e14\u0e35\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e34\u0e48\u0e07\u0e17\u0e35\u0e48\u0e17\u0e48\u0e32\u0e19\u0e21\u0e32\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48\u0e41\u0e25\u0e30\u0e2a\u0e25\u0e30\u0e40\u0e27\u0e25\u0e32\u0e15\u0e2d\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e2a\u0e2d\u0e07\u0e2a\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a\u0e20\u0e32\u0e23\u0e30\u0e07\u0e32\u0e19!** \u0e01\u0e32\u0e23\u0e15\u0e2d\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e40\u0e27\u0e25\u0e32\u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13 **15 \u0e19\u0e32\u0e17\u0e35** \u0e02\u0e2d\u0e41\u0e19\u0e30\u0e19\u0e33\u0e43\u0e2b\u0e49\u0e17\u0e48\u0e32\u0e19\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2a\u0e16\u0e32\u0e19\u0e17\u0e35\u0e48\u0e40\u0e07\u0e35\u0e22\u0e1a\u0e2a\u0e07\u0e1a\u0e0b\u0e36\u0e48\u0e07\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e41\u0e1a\u0e1a\u0e2a\u0e2d\u0e1a\u0e16\u0e32\u0e21\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07 **\u0e44\u0e21\u0e48\u0e16\u0e39\u0e01\u0e23\u0e1a\u0e01\u0e27\u0e19**\n\n**\u0e2b\u0e32\u0e01\u0e17\u0e48\u0e32\u0e19\u0e44\u0e21\u0e48\u0e41\u0e19\u0e48\u0e43\u0e08\u0e43\u0e19\u0e04\u0e33\u0e16\u0e32\u0e21\u0e02\u0e49\u0e2d\u0e43\u0e14\u0e21\u0e32\u0e01\u0e19\u0e31\u0e01 \u0e42\u0e1b\u0e23\u0e14\u0e15\u0e2d\u0e1a\u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e23\u0e39\u0e49\u0e2a\u0e36\u0e01\u0e41\u0e23\u0e01\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e40\u0e25\u0e22 \u0e0b\u0e36\u0e48\u0e07\u0e42\u0e14\u0e22\u0e21\u0e32\u0e01\u0e21\u0e31\u0e01\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07**\n\n**\u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e21\u0e35\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e34\u0e48\u0e07:** \u0e04\u0e27\u0e32\u0e21\u0e04\u0e34\u0e14\u0e40\u0e2b\u0e47\u0e19\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e2b\u0e49\u0e19\u0e32\u0e22\u0e08\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e48\u0e07\u0e40\u0e2a\u0e23\u0e34\u0e21\u0e2a\u0e20\u0e32\u0e1e\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e17\u0e35\u0e48\u0e14\u0e35\u0e15\u0e48\u0e2d\u0e2a\u0e38\u0e02\u0e20\u0e32\u0e1e \u0e41\u0e25\u0e30\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e21\u0e32\u0e15\u0e23\u0e01\u0e32\u0e23\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e44\u0e14\u0e49\u0e15\u0e32\u0e21\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e21\n\n**\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e21\u0e31\u0e48\u0e19\u0e43\u0e08\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e15\u0e47\u0e21\u0e17\u0e35\u0e48: \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e17\u0e35\u0e48\u0e40\u0e01\u0e47\u0e1a\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e3
21\u0e1a\u0e01\u0e32\u0e23\u0e1b\u0e0f\u0e34\u0e1a\u0e31\u0e15\u0e34\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e27\u0e32\u0e21\u0e25\u0e31\u0e1a\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e04\u0e23\u0e48\u0e07\u0e04\u0e23\u0e31\u0e14 \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e1c\u0e25\u0e08\u0e30\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e17\u0e35\u0e48 PERSENTIS \u0e40\u0e1b\u0e47\u0e19\u0e41\u0e1a\u0e1a\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e31\u0e27\u0e15\u0e19\u0e40\u0e2a\u0e21\u0e2d \u0e41\u0e25\u0e30\u0e2d\u0e49\u0e32\u0e07\u0e2d\u0e34\u0e07\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e01\u0e25\u0e38\u0e48\u0e21\u0e1a\u0e38\u0e04\u0e04\u0e25\u0e42\u0e14\u0e22\u0e23\u0e27\u0e21\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19**\n\n\u0e01\u0e32\u0e23\u0e40\u0e01\u0e47\u0e1a\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e19\u0e35\u0e49\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23 **\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e38\u0e0a\u0e37\u0e48\u0e2d\u0e2b\u0e23\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48\u0e2d\u0e35\u0e40\u0e21\u0e25** \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e08\u0e30\u0e16\u0e39\u0e01\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e15\u0e32\u0e21\u0e41\u0e1c\u0e19\u0e01\u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e21\u0e2d\u0e1a\u0e40\u0e1b\u0e47\u0e19\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e42\u0e14\u0e22\u0e23\u0e27\u0e21 \u0e19\u0e32\u0e22\u0e08\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e08\u0e30\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e15\u0e2d\u0e1a**\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14**\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e1b\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e34\u0e14 **\u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e17\u0e35\u0e48\u0e23\u0e27\u0e1a\u0e23\u0e27\u0e21\u0e44\u0e27\u0e49** \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e01\u0e1b\u0e49\u0e2d\u0e07\u0e04\u0e27\u0e32\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e15\u0e31\u0e27\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38\u0e15\u0e31\u0e27\u0e15\u0e19\u0e02\u0e2d\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e23\u0e48\u0e27\u0e21\u0e07\u0e32\u0e19 **\u0e42\u0e1b\u0e23\u0e14\u0e2b\u0e25\u0e35\u0e01\u0e40\u0e25\u0e35\u0e48\u0e22\u0e07\u0e01\u0e32\u0e23\u0e23\u0e30\u0e1a\u0e38\u0e0a\u0e37\u0e48\u0e2d**!",consentTitle:"\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e04\u0e27\u0e32\u0e21\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e08\u0e32\u0e01\u0e17\u0e48\u0e32\u0e19",consentP1:"\u0e02\u0e49\u0e32\u0e1e\u0e40\u0e08\u0e49\u0e32\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e42\u0e14\u0e22\u0e0a\u0e31\u0e14\u0e41\u0e08\u0e49\u0e07\u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e02\u0e49\u0e2d\u0e07\u0e01\u0e31\u0e1a\u0e41\u0e1a\u0e1a\u0e2a\u0e33\u0e23\u0e27\u0e08\u0e02\u0e2d\u0e07 PERSENTIS \u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e19\u0e35\u0e49: (i) \u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e35\u0e48\u0e02\u0e49\u0e32\u0e1e\u0e40\u0e08\u0e49\u0e32\u0e44\u0e14\u0e49\u0e43\u0e2b\u0e49\u0e44\u0e27\u0e49 (\u0e01\u0e25\u0e38\u0e48\u0e21\u0e2d\u0e32\u0e22\u0e38 \u0e40\u0e1e\u0e28 \u0e15\u0e33\u0e41\u0e2b\u0e19\u0e48\u0e07\u0e43\u0e19\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e23\u0e30\u0e22\u0e30\u0e40\u0e27\u0e25\u0e32\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e01\u0e31\u0e1a\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e41\u0e1c\u0e19\u0e01 \u0e41\u0e25\u0e30\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e1b\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e34\u0e14) \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1a\u0e32\u0e07\u0e01\u0e23\u0e13\u0e35\u0e2d\u0e32\u0e08\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e48\u0e27\u0e19\u0e1a\u0e38\u0e04\u0e04\u0e25 \u0e42\u0e14\u0e22 PERSENTIS GmbH \u0e41\u0e25\u0e30\u0e1c\u0e39\u0e49\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e32\u0e21\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e02\u0e2d\u0e07\u0e1a\u0e23\u0e34\u0e29\u0e31\u0e17 \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e27\u0e31\u0e15\u0e16\u0e38\u0e1b\u0e23\u0e30\u0e2a\u0e07\u0e04\u0e4c\u0e43\u0e19\u0e01\u0e32\u0e23\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23 \u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c \u0e41\u0e25\u0e30\u0e1b\u0e23\u0e30\u0e40\u0e21\u0e34\u0e19\u0e1c\u0e25\u0e41\u0e1a\u0e1a\u0e2a\u0e33\u0e23\u0e27\u0e08 \u0e15\u0e25\u0e2d\u0e14\u0e08\u0e19 (ii) \u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e17\u0e33\u0e41\u0e25\u0e30\u0e2a\u0e48\u0e07\u0e21\u0e2d\u0e1a\u0e1c\u0e25\u0e25\u0e31\u0e1e\u0e18\u0e4c\u0e41\u0e1a\u0e1a\u0e23\u0e27\u0e21\u0e41\u0e25\u0e30\u0e04\u0e33\u0e15\u0e2d\u0e1a\u0e2a\u0e33\u0e2b\u0e23\u0e3
21\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e1b\u0e25\u0e32\u0e22\u0e40\u0e1b\u0e34\u0e14 \u0e0b\u0e36\u0e48\u0e07\u0e43\u0e19\u0e1a\u0e32\u0e07\u0e01\u0e23\u0e13\u0e35\u0e2d\u0e32\u0e08\u0e40\u0e1b\u0e47\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e48\u0e27\u0e19\u0e1a\u0e38\u0e04\u0e04\u0e25 \u0e43\u0e2b\u0e49\u0e41\u0e01\u0e48\u0e1c\u0e39\u0e49\u0e27\u0e48\u0e32\u0e08\u0e49\u0e32\u0e07",consentP2a:"\u0e02\u0e49\u0e32\u0e1e\u0e40\u0e08\u0e49\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1e\u0e34\u0e01\u0e16\u0e2d\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e19\u0e35\u0e49\u0e44\u0e14\u0e49\u0e17\u0e38\u0e01\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e17\u0e32\u0e07\u0e2d\u0e35\u0e40\u0e21\u0e25\u0e17\u0e35\u0e48 [email protected] \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e1b\u0e47\u0e19\u0e25\u0e32\u0e22\u0e25\u0e31\u0e01\u0e29\u0e13\u0e4c\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e16\u0e36\u0e07 PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg \u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e01\u0e16\u0e2d\u0e19\u0e04\u0e27\u0e32\u0e21\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e08\u0e30\u0e44\u0e21\u0e48\u0e01\u0e23\u0e30\u0e17\u0e1a\u0e15\u0e48\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e0a\u0e2d\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e01\u0e0e\u0e2b\u0e21\u0e32\u0e22\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e30\u0e21\u0e27\u0e25\u0e1c\u0e25\u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e44\u0e1b\u0e41\u0e25\u0e49\u0e27\u0e42\u0e14\u0e22\u0e2d\u0e32\u0e28\u0e31\u0e22\u0e04\u0e27\u0e32\u0e21\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e01\u0e48\u0e2d\u0e19\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e01\u0e16\u0e2d\u0e19 \u0e17\u0e48\u0e32\u0e19\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e2d\u0e48\u0e32\u0e19\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e01\u0e32\u0e23\u0e04\u0e38\u0e49\u0e21\u0e04\u0e23\u0e2d\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e32\u0e21 Art 13 DSGVO \u0e44\u0e14\u0e49",consentLinkText:"\u0e17\u0e35\u0e48\u0e19\u0e35\u0e48",consentP2b:"",consentCheckbox:"\u0e02\u0e49\u0e32\u0e1e\u0e40\u0e08\u0e49\u0e32\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e42\u0e14\u0e22\u0e0a\u0e31\u0e14\u0e41\u0e08\u0e49\u0e07",consentRequired:"\u0e42\u0e1b\u0e23\u0e14\u0e22\u0e34\u0e19\u0e22\u0e2d\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e15\u0e48\u0e2d",assignTitle:"\u0e42\u0e1b\u0e23\u0e14\u0e23\u0e30\u0e1a\u0e38\u0e27\u0e48\u0e32\u0e17\u0e48\u0e32\u0e19\u0e2a\u0e31\u0e07\u0e01\u0e31\u0e14\u0e41\u0e1c\u0e19\u0e01\u0e43\u0e14",assignSubtitle:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e1c\u0e19\u0e01\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19 (\u0e2a\u0e32\u0e02\u0e32 | \u0e41\u0e1c\u0e19\u0e01)",assignPlaceholder:"\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e1c\u0e19\u0e01",assignRequired:"\u0e42\u0e1b\u0e23\u0e14\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e1c\u0e19\u0e01",questionIntro:"\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e15\u0e48\u0e2d\u0e44\u0e1b\u0e19\u0e35\u0e49\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e17\u0e48\u0e32\u0e19\u0e21\u0e32\u0e01\u0e19\u0e49\u0e2d\u0e22\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e43\u0e14?",answered:"\u0e15\u0e2d\u0e1a\u0e41\u0e25\u0e49\u0e27",quotaReachedMsg:"\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e23\u0e48\u0e27\u0e21\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e08\u0e30\u0e16\u0e39\u0e01\u0e19\u0e31\u0e1a\u0e1c\u0e25 \u2013 \u0e02\u0e2d\u0e1a\u0e04\u0e38\u0e13\u0e21\u0e32\u0e01!",quotaHintPre:"\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e23\u0e48\u0e27\u0e21\u0e02\u0e2d\u0e07\u0e17\u0e48\u0e32\u0e19\u0e08\u0e30\u0e16\u0e39\u0e01\u0e19\u0e31\u0e1a\u0e1c\u0e25\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e21\u0e35\u0e01\u0e32\u0e23\u0e15\u0e2d\u0e1a\u0e04\u0e33\u0e16\u0e32\u0e21\u0e04\u0e23\u0e1a ",quotaHintPost:" %",selectPlaceholder:"\u0e42\u0e1b\u0e23\u0e14\u0e40\u0e25\u0e37\u0e2d\u0e01 \u2026",fastdoneTitle:"\u0e43\u0e01\u0e25\u0e49\u0e40\u0e2a\u0e23\u0e47\u0e08\u0e41\u0e25\u0e49\u0e27",sozioTitle:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e17\u0e32\u0e07\u0e2a\u0e31\u0e07\u0e04\u0e21\u0e1b\u0e23\u0e30\u0e0a\u0e32\u0e01\u0e23\u0e28\u0e32\u0e2a\u0e15\u0e23\u0e4c",sozioNote:"\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e21\u0e31\u0e04\u0e23\u0e43\u0e08\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e41\u0e25\u0e30\u0e08\u0e30\u0e44\u0e21\u0e48\u0e19\u0e33\u0e44\u0e1b\u0e23\u0e27\u0e21\u0e43\u0e19\u0e01\u0e32\u0e23\u0e04\u0e33\u0e19\u0e27\u0e13",likert:["\u0e44\u0e21\u0e48\u0e40\u0e2b\u0e47\u0e19\u0e14\u0e49\u0e27\u0e22\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e34\u0e48\u0e07","\u0e04\u0e48\u0e2d\u0e19\u0e02\u0e49\u0e32\u0e07\u0e44\u0e21\u0e48\u0e40\u0e2b\u0e47\u0e19\u0e14\u0e49\u0e27\u0e22","\u0e1b\u0e32\u0e19\u0e01\u0e25\u0e32\u0e07","\u0e04\u0e48\u0e2d\u0e19\u0e02\u0e49\u0e32\u0e07\u0e40\u0e2b\u0e47\u0e19\u0e14\u0e49\u0e27\u0e22","\u0e40\u0e2b\u0e47\u0e19\u0e14\u0e49\u0e27\u0e22\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e22\u0e34\u0e48\u0e07"]},vi:{intro:"Kh\u1ea3o s\xe1t nh\xe2n vi\xean \u1ea9n danh",start:"B\u1eaft \u0111\u1ea7u kh\u1ea3o s\xe1t",next:"Ti\u1ebfp theo",back:"Quay l\u1ea1i",submit:"G\u1eedi",positive:"Kh\xeda c\u1ea1nh t\xedch c\u1ef1c (kh\xf4ng b\u1eaft bu\u1ed9c)",negative:"Kh\xeda c\u1ea1nh ti\xeau c\u1ef1c (kh\xf4ng b\u1eaft bu\u1ed9c)",other:"Kh\xe1c \u2026",answerHere:"C\xe2u tr\u1ea3 l\u1eddi c\u1ee7a Qu\xfd v\u1ecb \u2026",feedbackTitle:"Qu\xfd v\u1ecb c\xf3 mu\u1ed1n b\u1ed5 sung g\xec th\xeam v\u1ec1 ch\u1ee7 \u0111\u1ec1 n\xe0y kh\xf4ng?",feedback:"Qu\xfd v\u1ecb c\xf3 mu\u1ed1n chia s\u1ebb th\xeam \u0111i\u1ec1u g\xec kh\xf4ng? (kh\xf4ng b\u1eaft bu\u1ed9c)",done:"Xin c\u1ea3m \u01a1n!",doneText:"C\xe2u tr\u1ea3 l\u1eddi \u1ea9n danh c\u1ee7a Qu\xfd v\u1ecb \u0111\xe3 \u0111\u01b0\u1ee3c g\u1eedi.",moreLink:"T\xf4i mu\u1ed1n t\xecm hi\u1ec3u th\xeam v\u1ec1 PERSENTIS Care.",progress:"C\xe2u h\u1ecfi",selectRating:"C\xe2u h\u1ecfi n\xe0y l\xe0 c\xe2u h\u1ecfi b\u1eaft bu\u1ed9c.",anonymous:"\u1ea8n danh 100 %",welcomeFor:"Ch\xe0o m\u1eebng \u0111\u1ebfn v\u1edbi PERSENTIS Care d\xe0nh cho",introHeading:"Ch\xe0o m\u1eebng \u0111\u1ebfn v\u1edbi PERSENTIS Care",welcomeText:"**R\u1ea5t vui v\xec Qu\xfd v\u1ecb c\xf3 m\u1eb7t \u1edf \u0111\xe2y v\xe0 d\xe0nh th\u1eddi gian tr\u1ea3 l\u1eddi m\u1ed9t v\xe0i c\xe2u h\u1ecfi v\u1ec1 kh\u1ed1i l\u01b0\u1ee3ng c\xf4ng vi\u1ec7c!** Vi\u1ec7c tr\u1ea3 l\u1eddi c\xe1c c\xe2u h\u1ecfi s\u1ebd m\u1ea5t kho\u1ea3ng **15 ph\xfat**. T\u1ed1t nh\u1ea5t, Qu\xfd v\u1ecb h\xe3y ch\u1ecdn m\u1ed9t n\u01a1i y\xean t\u0129nh, n\u01a1i Qu\xfd v\u1ecb c\xf3 th\u1ec3 ho\xe0n th\xe0nh b\u1ea3ng c\xe2u h\u1ecfi n\xe0y **m\xe0 kh\xf4ng b\u1ecb l\xe0m phi\u1ec1n**.\n\n**N\u1ebfu Qu\xfd v\u1ecb kh\xf4ng ho\xe0n to\xe0n ch\u1eafc ch\u1eafn v\u1ec1 m\u1ed9t c\xe2u h\u1ecfi, h\xe3y c\u1ee9 l\xe0m theo c\u1ea3m nh\u1eadn \u0111\u1ea7u ti\xean c\u1ee7a m\xecnh - \u0111\xf3 th\u01b0\u1eddng l\xe0 c\xe2u tr\u1ea3 l\u1eddi \u0111\xfang.**\n\n**Ph\u1ea3n h\u1ed3i c\u1ee7a Qu\xfd v\u1ecb c\xf3 \xfd ngh\u0129a r\u1ea5t quan tr\u1ecdng:** Ch\xfang gi\xfap ng\u01b0\u1eddi s\u1eed d\u1ee5ng lao \u0111\u1ed9ng c\u1ee7a Qu\xfd v\u1ecb th\xfac \u0111\u1ea9y \u0111i\u1ec1u ki\u1ec7n l\xe0m vi\u1ec7c l\xe0nh m\u1ea1nh v\xe0, n\u1ebfu c\u1ea7n, th\u1ef1c hi\u1ec7n c\xe1c bi\u1ec7n ph\xe1p ph\xf9 h\u1ee3p.\n\n**Qu\xfd v\u1ecb c\xf3 th\u1ec3 ho\xe0n to\xe0n y\xean t\xe2m: T\u1ea5t c\u1ea3 d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c thu th\u1eadp t\u1ea1i \u0111\xe2y s\u1ebd \u0111\u01b0\u1ee3c x\u1eed l\xfd tuy\u1ec7t \u0111\u1ed1i b\u1ea3o m\u1eadt. Vi\u1ec7c ph\xe2n t\xedch \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n tr\u1ef1c ti\u1ebfp t\u1ea1i PERSENTIS, lu\xf4n \u1edf d\u1ea1ng \u1ea9n danh v\xe0 ch\u1ec9 li\xean quan \u0111\u1ebfn to\xe0n b\u1ed9 c\xe1c nh\xf3m ng\u01b0\u1eddi.**\n\nVi\u1ec7c thu th\u1eadp d\u1eef li\u1ec7u \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n **kh\xf4ng k\xe8m t\xean ho\u1eb7c \u0111\u1ecba ch\u1ec9 email**. C\xe1c \u0111\xe1nh gi\xe1 s\u1ebd \u0111\u01b0\u1ee3c t\u1ed5ng h\u1ee3p theo ph\xf2ng ban v\xe0 chuy\u1ec3n giao d\u01b0\u1edbi d\u1ea1ng k\u1ebft qu\u1ea3 t\u1ed5ng th\u1ec3. **T\u1ea5t c\u1ea3 c\xe2u tr\u1ea3 l\u1eddi** cho c\xe1c c\xe2u h\u1ecfi m\u1edf s\u1ebd \u0111\u01b0\u1ee3c ng\u01b0\u1eddi s\u1eed d\u1ee5ng lao \u0111\u1ed9ng c\u1ee7a Qu\xfd v\u1ecb nh\u1eadn **d\u01b0\u1edbi d\u1ea1ng t\u1ed5ng h\u1ee3p**. \u0110\u1ec3 b\u1ea3o v\u1ec7 Qu\xfd v\u1ecb v\xe0 t\xednh \u1ea9n danh c\u1ee7a \u0111\u1ed3ng nghi\u1ec7p, **vui l\xf2ng kh\xf4ng n\xeau t\xean**!",consentTitle:"Ch\xfang t\xf4i c\u1ea7n s\u1ef1 \u0111\u1ed3ng \xfd c\u1ee7a Qu\xfd v\u1ecb",consentP1:"T\xf4i theo \u0111\xe2y \u0111\u1ed3ng \xfd r\xf5 r\xe0ng, trong khu\xf4n kh\u1ed5 kh\u1ea3o s\xe1t PERSENTIS, v\u1edbi (i) vi\u1ec7c x\u1eed l\xfd d\u1eef li\u1ec7u do t\xf4i cung c\u1ea5p (nh\xf3m tu\u1ed5i, gi\u1edbi t\xednh, v\u1ecb tr\xed trong c\xf4ng ty, th\u1eddi gian l\xe0m vi\u1ec7c t\u1ea1i doanh nghi\u1ec7p, ph\xf2ng ban v\xe0 c\xe2u tr\u1ea3 l\u1eddi cho c\xe1c c\xe2u h\u1ecfi m\u1edf), trong t\u1eebng tr\u01b0\u1eddng h\u1ee3p c\xf3 th\u1ec3 l\xe0 d\u1eef li\u1ec7u c\xe1 nh\xe2n, b\u1edfi PERSENTIS GmbH v\xe0 c\xe1c \u0111\u01a1n v\u1ecb x\u1eed l\xfd theo \u1ee7y quy\u1ec1n c\u1ee7a c\xf4ng ty n\xe0y cho m\u1ee5c \u0111\xedch th\u1ef1c hi\u1ec7n, ph\xe2n t\xedch v\xe0 \u0111\xe1nh gi\xe1 c\xe1c kh\u1ea3o s\xe1t, c\u0169ng nh\u01b0 (ii) vi\u1ec7c t\u1ea1o l\u1eadp v\xe0 chuy\u1ec3n giao c\xe1c k\u1ebft qu\u1ea3 t\u1ed5ng h\u1ee3p v\xe0 c\xe1c c\xe2u tr\u1ea3 l\u1eddi cho c\xe1c c\xe2u h\u1ecfi m\u1edf, trong t\u1eebng tr\u01b0\u1eddng h\u1ee3p c\xf3 th\u1ec3 l\xe0 d\u1eef li\u1ec7u c\xe1 nh\xe2n, cho b\xean \u0111\u1eb7t h\xe0ng.",consentP2a:"T\xf4i c\xf3 th\u1ec3 r\xfat l\u
21ea1i s\u1ef1 \u0111\u1ed3ng \xfd n\xe0y b\u1ea5t c\u1ee9 l\xfac n\xe0o qua email t\u1edbi [email protected] ho\u1eb7c b\u1eb1ng v\u0103n b\u1ea3n g\u1eedi t\u1edbi PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Vi\u1ec7c r\xfat l\u1ea1i s\u1ef1 \u0111\u1ed3ng \xfd kh\xf4ng \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn t\xednh h\u1ee3p ph\xe1p c\u1ee7a vi\u1ec7c x\u1eed l\xfd \u0111\xe3 \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n d\u1ef1a tr\xean s\u1ef1 \u0111\u1ed3ng \xfd cho \u0111\u1ebfn th\u1eddi \u0111i\u1ec3m r\xfat l\u1ea1i. Th\xf4ng tin b\u1ea3o v\u1ec7 d\u1eef li\u1ec7u theo Art 13 DSGVO c\xf3 t\u1ea1i ",consentLinkText:"T\u1ea0I \u0110\xc2Y",consentP2b:" \u0111\u1ec3 tham kh\u1ea3o.",consentCheckbox:"T\xf4i \u0111\u1ed3ng \xfd r\xf5 r\xe0ng.",consentRequired:"Vui l\xf2ng \u0111\u1ed3ng \xfd \u0111\u1ec3 ti\u1ebfp t\u1ee5c.",assignTitle:"Vui l\xf2ng ch\u1ecdn ph\xf2ng ban c\u1ee7a Qu\xfd v\u1ecb.",assignSubtitle:"Ch\u1ecdn ph\xf2ng ban c\u1ee7a Qu\xfd v\u1ecb (chi nh\xe1nh | ph\xf2ng ban).",assignPlaceholder:"Ch\u1ecdn ph\xf2ng ban",assignRequired:"Vui l\xf2ng ch\u1ecdn m\u1ed9t ph\xf2ng ban.",questionIntro:"Ph\xe1t bi\u1ec3u sau \u0111\xe2y \u0111\xfang v\u1edbi Qu\xfd v\u1ecb \u1edf m\u1ee9c \u0111\u1ed9 n\xe0o?",answered:"\u0111\xe3 tr\u1ea3 l\u1eddi",quotaReachedMsg:"Ph\u1ea7n tham gia c\u1ee7a Qu\xfd v\u1ecb s\u1ebd \u0111\u01b0\u1ee3c t\xednh \u2013 xin c\u1ea3m \u01a1n!",quotaHintPre:"Ph\u1ea7n tham gia c\u1ee7a Qu\xfd v\u1ecb s\u1ebd \u0111\u01b0\u1ee3c t\xednh t\u1eeb ",quotaHintPost:" % s\u1ed1 c\xe2u h\u1ecfi \u0111\xe3 \u0111\u01b0\u1ee3c tr\u1ea3 l\u1eddi.",selectPlaceholder:"Vui l\xf2ng ch\u1ecdn \u2026",fastdoneTitle:"S\u1eafp xong r\u1ed3i",sozioTitle:"Th\xf4ng tin nh\xe2n kh\u1ea9u h\u1ecdc x\xe3 h\u1ed9i",sozioNote:"Nh\u1eefng th\xf4ng tin n\xe0y ho\xe0n to\xe0n t\u1ef1 nguy\u1ec7n v\xe0 s\u1ebd kh\xf4ng \u0111\u01b0\u1ee3c \u0111\u01b0a v\xe0o t\xednh to\xe1n.",likert:["Ho\xe0n to\xe0n kh\xf4ng \u0111\u1ed3ng \xfd","Kh\xe1 kh\xf4ng \u0111\u1ed3ng \xfd","M\u1ed9t ph\u1ea7n / m\u1ed9t ph\u1ea7n","Kh\xe1 \u0111\u1ed3ng \xfd","Ho\xe0n to\xe0n \u0111\u1ed3ng \xfd"]},id:{intro:"Survei karyawan anonim",start:"Mulai survei",next:"Lanjut",back:"Kembali",submit:"Kirim",positive:"Aspek positif (opsional)",negative:"Aspek negatif (opsional)",other:"Lainnya \u2026",answerHere:"Jawaban Anda \u2026",feedbackTitle:"Apakah Anda ingin menambahkan sesuatu tentang topik ini?",feedback:"Apakah Anda ingin menyampaikan hal lain? (opsional)",done:"Terima kasih!",doneText:"Jawaban anonim Anda telah dikirim.",moreLink:"Saya ingin mengetahui lebih lanjut tentang PERSENTIS Care.",progress:"Pertanyaan",selectRating:"Pertanyaan ini wajib dijawab.",anonymous:"100 % anonim",welcomeFor:"Selamat datang di PERSENTIS Care untuk",introHeading:"Selamat datang di PERSENTIS Care",welcomeText:"**Senang Anda hadir dan meluangkan waktu untuk menjawab beberapa pertanyaan tentang beban kerja!** Menjawab pertanyaan-pertanyaan ini akan memakan waktu sekitar **15 menit**. Sebaiknya pilih tempat yang tenang agar Anda dapat mengisi kuesioner ini **tanpa gangguan**.\n\n**Jika Anda tidak sepenuhnya yakin dengan suatu pertanyaan, cukup ikuti kesan pertama Anda - biasanya itu yang tepat.**\n\n**Masukan Anda sangat penting:** masukan tersebut membantu pemberi kerja Anda mendorong kondisi kerja yang sehat dan, bila perlu, mengambil tindakan.\n\n**Anda dapat merasa sepenuhnya aman: Semua data yang dikumpulkan di sini diperlakukan sangat rahasia. Evaluasi dilakukan langsung oleh PERSENTIS, selalu anonim, dan hanya mengacu pada kelompok orang secara keseluruhan.**\n\nPengumpulan data dilakukan **tanpa mencantumkan nama atau alamat email**. Penilaian dirangkum berdasarkan departemen dan diserahkan sebagai hasil keseluruhan. **Semua jawaban** atas pertanyaan terbuka akan diterima oleh pemberi kerja Anda **dalam bentuk yang telah dikumpulkan**. Untuk melindungi Anda dan anonimitas rekan kerja Anda, **mohon untuk tidak menyebutkan nama**!",consentTitle:"Kami memerlukan persetujuan Anda",consentP1:"Dengan ini saya secara tegas menyetujui, sehubungan dengan survei PERSENTIS, (i) pemrosesan data yang saya berikan (kelompok usia, jenis kelamin, posisi di perusahaan, lama masa kerja, departemen, dan jawaban atas pertanyaan terbuka), yang dalam kasus tertentu dapat merupakan data pribadi, oleh PERSENTIS GmbH dan pemroses data yang ditunjuknya untuk tujuan pelaksanaan, analisis, dan evaluasi survei, serta (ii) pembuatan dan pengiriman hasil yang teragregasi dan jawaban atas pertanyaan terbuka, yang dalam kasus tertentu dapat merupakan data pribadi, kepada pemberi tugas.",consentP2a:"Saya dapat mencabut persetujuan ini kapan saja melalui email ke [email protected] atau secara tertulis ke PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Pencabutan persetujuan tidak memengaruhi keabsahan pemrosesan yang telah dilakukan berdasarkan persetujuan tersebut sebelum pencabutan. Informasi perlindungan data sesuai Art 13 DSGVO tersedia ",consentLinkText:"DI SINI",consentP2b:" untuk dibaca.",consentCheckbox:"Saya secara tegas menyetujui.",consentRequired:"Silakan setujui untuk melanjutkan.",assignTitle:"Silakan pilih departemen Anda.",assignSubtitle:"Pilih departemen Anda (cabang | departemen).",assignPlaceholder:"Pilih departemen",assignRequired:"Silakan pilih departemen.",questionIntro:"Sejauh mana pernyataan berikut sesuai bagi Anda?",answered:"dijawab",quotaReachedMsg:"Partisipasi Anda akan dihitung \u2013 terima kasih!",quotaHintPre:"Partisipasi Anda akan dihitung mulai ",quotaHintPost:" % pertanyaan yang dijawab.",selectPlaceholder:"Silakan pilih \u2026",fastdoneTitle:"Hampir selesai",
2sozioTitle:"Informasi sosiodemografis",sozioNote:"Informasi ini sepenuhnya sukarela dan tidak akan dimasukkan dalam perhitungan.",likert:["Sangat tidak setuju","Cenderung tidak setuju","Sebagian ya / sebagian tidak","Cenderung setuju","Sangat setuju"]},ms:{intro:"Tinjauan pekerja tanpa nama",start:"Mulakan tinjauan",next:"Seterusnya",back:"Kembali",submit:"Hantar",positive:"Aspek positif (pilihan)",negative:"Aspek negatif (pilihan)",other:"Lain-lain \u2026",answerHere:"Jawapan anda \u2026",feedbackTitle:"Adakah anda ingin menambah sesuatu tentang topik ini?",feedback:"Adakah anda ingin menyampaikan sesuatu lagi? (pilihan)",done:"Terima kasih!",doneText:"Jawapan tanpa nama anda telah dihantar.",moreLink:"Saya ingin mengetahui lebih lanjut tentang PERSENTIS Care.",progress:"Soalan",selectRating:"Soalan ini wajib dijawab.",anonymous:"100 % tanpa nama",welcomeFor:"Selamat datang ke PERSENTIS Care untuk",introHeading:"Selamat datang ke PERSENTIS Care",welcomeText:"**Kami gembira anda berada di sini dan meluangkan masa untuk menjawab beberapa soalan tentang beban kerja!** Menjawab soalan-soalan ini akan mengambil masa kira-kira **15 minit**. Sebaiknya, carilah tempat yang tenang supaya anda dapat melalui soal selidik ini **tanpa gangguan**.\n\n**Jika anda tidak begitu pasti tentang sesuatu soalan, ikut sahaja gerak hati pertama anda - itu biasanya yang betul.**\n\n**Maklum balas anda sangat penting:** Ia membantu majikan anda menggalakkan keadaan kerja yang sihat dan, jika perlu, mengambil langkah-langkah yang sesuai.\n\n**Anda boleh berasa benar-benar yakin: Semua data yang dikumpulkan di sini akan dikendalikan secara sulit dengan ketat. Penilaian dibuat secara langsung oleh PERSENTIS, sentiasa tanpa nama dan hanya merujuk kepada keseluruhan kumpulan pekerja.**\n\nPengumpulan data dilakukan **tanpa menyatakan nama atau alamat e-mel**. Penilaian akan diringkaskan mengikut jabatan dan diserahkan sebagai keputusan keseluruhan. Majikan anda akan menerima **semua jawapan** kepada soalan terbuka **dalam bentuk terkumpul**. Demi melindungi anda dan anonimitas rakan sekerja anda, **sila elakkan daripada menyebut nama**!",consentTitle:"Kami memerlukan persetujuan anda",consentP1:"Dengan ini, saya secara jelas bersetuju, berkaitan dengan tinjauan PERSENTIS, terhadap (i) pemprosesan data yang saya berikan (kumpulan umur, jantina, jawatan dalam syarikat, tempoh perkhidmatan, jabatan, dan jawapan kepada soalan terbuka), yang dalam kes tertentu mungkin merupakan data peribadi, oleh PERSENTIS GmbH dan pemproses yang dilantik olehnya bagi tujuan pelaksanaan, analisis dan penilaian tinjauan serta (ii) penyediaan dan penghantaran keputusan agregat dan jawapan kepada soalan terbuka, yang dalam kes tertentu mungkin merupakan data peribadi, kepada pemberi tugasan.",consentP2a:"Saya boleh menarik balik persetujuan ini pada bila-bila masa melalui e-mel kepada [email protected] atau secara bertulis kepada PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Penarikan balik persetujuan tidak menjejaskan kesahan pemprosesan yang telah dilakukan berdasarkan persetujuan tersebut sebelum penarikan balik. Maklumat perlindungan data menurut Art 13 DSGVO adalah boleh dibaca ",consentLinkText:"DI SINI",consentP2b:".",consentCheckbox:"Saya secara jelas bersetuju.",consentRequired:"Sila bersetuju untuk meneruskan.",assignTitle:"Sila tetapkan diri anda kepada satu jabatan.",assignSubtitle:"Pilih jabatan anda (cawangan | jabatan).",assignPlaceholder:"Pilih jabatan",assignRequired:"Sila pilih satu jabatan.",questionIntro:"Sejauh manakah pernyataan berikut tepat bagi anda?",answered:"dijawab",quotaReachedMsg:"Penyertaan anda akan diambil kira \u2013 terima kasih!",quotaHintPre:"Penyertaan anda akan diambil kira mulai ",quotaHintPost:" % soalan yang dijawab.",selectPlaceholder:"Sila pilih \u2026",fastdoneTitle:"Hampir selesai",sozioTitle:"Maklumat sosiodemografi",sozioNote:"Maklumat ini adalah sepenuhnya sukarela dan tidak akan diambil kira dalam pengiraan.",likert:["Sangat tidak setuju","Agak tidak setuju","Sebahagiannya / sebahagiannya","Agak setuju","Sangat setuju"]},sr:{intro:"Anonimna anketa zaposlenih",start:"Pokrenite anketu",next:"Dalje",back:"Nazad",submit:"Po\u0161aljite",positive:"Pozitivni aspekti (opcionalno)",negative:"Negativni aspekti (opcionalno)",other:"Ostalo \u2026",answerHere:"Va\u0161 odgovor \u2026",feedbackTitle:"Da li \u017eelite da dodate jo\u0161 ne\u0161to na ovu temu?",feedback:"Da li \u017eelite jo\u0161 ne\u0161to da nam saop\u0161tite? (opcionalno)",done:"Hvala vam!",doneText:"Va\u0161 anoniman odgovor je poslat.",moreLink:"\u017delim da saznam vi\u0161e o PERSENTIS Care.",progress:"Pitanje",selectRating:"Ovo pitanje je obavezno.",anonymous:"100 % anonimno",welcomeFor:"Dobro do\u0161li u PERSENTIS Care za",introHeading:"Dobro do\u0161li u PERSENTIS Care",welcomeText:"**Drago nam je \u0161to ste ovde i \u0161to ste odvojili vreme da odgovorite na nekoliko pitanja o optere\u0107enju na radu!** Odgovaranje na pitanja traje oko **15 minuta**. Najbolje je da prona\u0111ete mirno mesto na kojem mo\u017eete **neometano** da pro\u0111ete kroz ovaj upitnik.\n\n**Ako kod nekog pitanja niste sasvim sigurni, jednostavno se vodite svojim prvim ose\u0107ajem - to je naj\u010de\u0161\u0107e ispravno.**\n\n**Va\u0161e povratne informacije su od velikog zna\u010daja:** poma\u017eu va\u0161em poslodavcu da unapredi zdrave uslove rada i, po potrebi, preduzme mere.\n\n**Mo\u017eete se ose\u0107ati potpuno sigurno: svi ovde prikupljeni podaci tretiraju se strogo poverljivo. Analize se sprovode direktno u PERSENTIS, uvek su anonimne i odnose se isklju\u010divo na cele grupe zaposlenih.**\n\nPrikupljanje podataka se vr\u0161i **bez navo\u0111enja imena ili e-mail adrese**. Ocene se objedinjuju po odeljenjima i prosle\u0111uju kao ukupni rezultat. **Sve odgovore** na otvorena pitanja va\u0161 poslodavac dobija **u objedinjeno\u0458 formi**. Radi za\u0161tite va\u0161e anonimnosti i anonimnosti va\u0161ih kolega i koleginica, **molimo vas da ne navodite imena**!",consentTitle:"Potrebna nam je va\u0161a saglasnost",consentP1:"Ovim izri\u010dito pristajem u vezi sa PERSENTIS anketom na (i) obradu mojih navedenih podataka (starosna grupa, pol, pozicija u preduze\u0107u, trajanje radnog sta\u017ea u preduze\u0107u, odeljenje i odgovori na otvorena pitanja), koji u pojedina\u010dnim slu\u010dajevima mogu biti li\u010dni podaci, od strane PERSENTIS GmbH i njegovih obra\u0111iva\u010da pod
2ataka za potrebe sprovo\u0111enja, analize i evaluacije anketa, kao i (ii) izradu i dostavljanje agregiranih rezultata i odgovora na otvorena pitanja, koji u pojedina\u010dnim slu\u010dajevima mogu biti li\u010dni podaci, naru\u010diocu.",consentP2a:"Ovu saglasnost mogu u svakom trenutku opozvati putem e-maila na [email protected] ili pismeno na PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Opoziv saglasnosti ne uti\u010de na zakonitost obrade izvr\u0161ene na osnovu saglasnosti pre opoziva. Informacije o za\u0161titi podataka u skladu sa Art 13 DSGVO dostupne su ",consentLinkText:"OVDE",consentP2b:" za \u010ditanje.",consentCheckbox:"Izri\u010dito pristajem.",consentRequired:"Molimo vas da date saglasnost kako biste nastavili.",assignTitle:"Molimo vas da se svrst\u0430\u0442\u0435 u jedno odeljenje.",assignSubtitle:"Izaberite svoje odeljenje (filijala | odeljenje).",assignPlaceholder:"Izaberite odeljenje",assignRequired:"Molimo izaberite odeljenje.",questionIntro:"U kojoj meri se slede\u0107a izjava odnosi na vas?",answered:"odgovoreno",quotaReachedMsg:"Va\u0161e u\u010de\u0161\u0107e \u0107e biti evidentirano \u2013 hvala vam!",quotaHintPre:"Va\u0161e u\u010de\u0161\u0107e \u0107e biti evidentirano od ",quotaHintPost:" % odgovorenih pitanja.",selectPlaceholder:"Molimo izaberite \u2026",fastdoneTitle:"Jo\u0161 malo pa gotovo",sozioTitle:"Sociodemografski podaci",sozioNote:"Ovi podaci su potpuno dobrovoljni i ne\u0107e biti uklju\u010deni u izra\u010dunavanje.",likert:["Uop\u0161te se ne sla\u017eem","Uglavnom se ne sla\u017eem","Delimi\u010dno / delimi\u010dno","Uglavnom se sla\u017eem","U potpunosti se sla\u017eem"]},hr:{intro:"Anonimna anketa zaposlenika",start:"Pokreni anketu",next:"Dalje",back:"Natrag",submit:"Po\u0161alji",positive:"Pozitivni aspekti (neobavezno)",negative:"Negativni aspekti (neobavezno)",other:"Ostalo \u2026",answerHere:"Va\u0161 odgovor \u2026",feedbackTitle:"Mo\u017eete li jo\u0161 ne\u0161to napomenuti o ovoj temi?",feedback:"\u017delite li jo\u0161 ne\u0161to poru\u010diti? (neobavezno)",done:"Hvala vam!",doneText:"Va\u0161 anoniman odgovor je poslan.",moreLink:"\u017delim saznati vi\u0161e o PERSENTIS Care.",progress:"Pitanje",selectRating:"Ovo pitanje je obavezno.",anonymous:"100 % anonimno",welcomeFor:"Dobro do\u0161li u PERSENTIS Care za",introHeading:"Dobro do\u0161li u PERSENTIS Care",welcomeText:"**Drago nam je \u0161to ste ovdje i \u0161to ste odvojili vrijeme za nekoliko odgovora na temu radnog optere\u0107enja!** Odgovaranje na pitanja trajat \u0107e oko **15 minuta**. Najbolje je da odaberete mirno mjesto na kojem mo\u017eete **neometano** ispuniti ovaj upitnik.\n\n**Ako kod nekog pitanja niste potpuno sigurni, jednostavno se vodite svojim prvim osje\u0107ajem - to je naj\u010de\u0161\u0107e ispravno.**\n\n**Va\u0161e su povratne informacije od velike va\u017enosti:** poma\u017eu va\u0161em poslodavcu da promi\u010de zdrave radne uvjete i po potrebi poduzme mjere.\n\n**Mo\u017eete se osje\u0107ati potpuno sigurno: svi ovdje prikupljeni podaci tretiraju se strogo povjerljivo. Obrada se provodi izravno u PERSENTIS, uvijek je anonimna i odnosi se samo na cijele skupine zaposlenika.**\n\nPrikupljanje podataka provodi se **bez navo\u0111enja imena ili e-mail adrese**. Ocjene se sa\u017eimaju po odjelima i predaju kao ukupni rezultat. **Sve odgovore** na otvorena pitanja va\u0161 \u0107e poslodavac dobiti **u objedinjenu obliku**. Radi za\u0161tite va\u0161e anonimnosti i anonimnosti va\u0161ih kolega i kolegica, **molimo vas da ne navodite imena**!",consentTitle:"Potrebna nam je va\u0161a privola",consentP1:"Ovime izri\u010dito pristajem, u vezi s anketom PERSENTIS, na (i) obradu mojih navedenih podataka (dobna skupina, spol, pozicija u poduze\u0107u, trajanje zaposlenja u poduze\u0107u, odjel i odgovori na otvorena pitanja), koji u pojedina\u010dnim slu\u010dajevima mogu biti osobni podaci, od strane dru\u0161tva PERSENTIS GmbH i njegovih izvr\u0161itelja obrade u svrhu provedbe, analize i evaluacije anketa te (ii) izradu i dostavu agregiranih rezultata i odgovora na otvorena pitanja, koji u pojedina\u010dnim slu\u010dajevima mogu biti osobni podaci, naru\u010ditelju.",consentP2a:"Ovu privolu mogu u bilo kojem trenutku opozvati putem e-maila na [email protected] ili pisanim putem na PERSENTIS GmbH, z.H. Gesch\xe4ftsf\xfchrung, Lessingstra\xdfe 6, 5020 Salzburg. Opoziv privole ne utje\u010de na zakonitost obrade provedene na temelju privole do trenutka opoziva. Informacije o za\u0161titi podataka sukladno Art 13 DSGVO dostupne su ",consentLinkText:"OVDJE",consentP2b:" za \u010ditanje.",consentCheckbox:"Izri\u010dito pristajem.",consentRequired:"Molimo da pristanete kako biste nastavili.",assignTitle:"Molimo da se svrstite u odjel.",assignSubtitle:"Odaberite svoj odjel (podru\u017enica | odjel).",assignPlaceholder:"Odaberite odjel",assignRequired:"Molimo odaberite odjel.",questionIntro:"U kojoj mjeri se sljede\u0107a izjava odnosi na vas?",answered:"odgovoreno",quotaReachedMsg:"Va\u0161e sudjelovanje se priznaje \u2013 hvala vam!",quotaHintPre:"Va\u0161e sudjelovanje se priznaje od ",quotaHintPost:" % odgovorenih pitanja.",selectPlaceholder:"Molimo odaberite \u2026",fastdoneTitle:"Skoro gotovo",sozioTitle:"Sociodemografski podaci",sozioNote:"Ovi podaci su potpuno dobrovoljni i ne\u0107e biti uklju\u010deni u izra\u010dun.",likert:["Uop\u0107e se ne sla\u017eem","Uglavnom se ne sla\u017eem","Djelomi\u010dno se sla\u017eem / djelomi\u010dno se ne sla\u017eem","Uglavnom se sla\u017eem","U potpunosti se sla\u017eem"]}});function er(e){return d(d({},Ja.en),Ja[e]||{})}const tr="https://www.persentis.com/datenschutz-teilnehmer";function nr(e,t){return function(){return e.apply(t,arguments)}}const ar=Object.prototype.toString,rr=Object.getPrototypeOf,ir=Symbol.iterator,sr=Symbol.toStringTag,or=(lr=Object.create(null),e=>{const t=ar.call(e);return lr[t]||(lr[t]=t.slice(8,-1).toLowerCase())});var lr;const cr=e=>(e=e.toLowerCase(),t=>or(t)===e),dr=e=>t=>typeof t===e,ur=Array.isArray,mr=dr("undefined");function pr(e){return null!==e&&!mr(e)&&null!==e.constructor&&!mr(e.constructor)&&gr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const hr=cr("ArrayBuffer");const fr=dr("string"),gr=dr("function"),xr=dr("number"),vr=e=>null!==e&&"object"===typeof e,br=e=>{if("object"!==or(e))return!1;const t=rr(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(sr in e)&&!(ir in e)},yr=cr("Date"),wr=cr("File"),jr=cr("Blob"),kr=cr("FileList");const Nr="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:{},Sr="undefined"!==typeof Nr.FormData?Nr.FormData:void 0,_r=cr("URLSearchParams"),zr=Le(["ReadableStream","Request","Response","Headers"].map(cr),4),Er=zr[0],Cr=zr[1],Pr=zr[2],Ar=zr[3];function Tr(e,t){let n,a,r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,i=void 0!==r&&r;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),ur(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(pr(e))return;const a=i?Object.getOwnPropertyNames(e):Object.keys(e),r=a.length;let s;for(n=0;n<r;n++)s=a[n],t.call(null,e[s],s,e)}}function Rr(e,t){if(pr(e))return null;t=t.toLowerCase();const n=Object.keys(e);let a,r=n.length;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Or="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:n.g,Dr=e=>!mr(e)&&e!==Or;const Mr=(Ir="undefined"!==typeof Uint8Array&&rr(Uint8Array),e=>Ir&&e instanceof Ir);var Ir;const Fr=cr("HTMLFormElement"),Lr=(()=>{let e=Object.prototype.hasOwnProperty;return(t,n)=>e.call(t,n)})(),Br=cr("RegExp"),qr=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Tr(n,(n,r)=>{let i;!1!==(i=t(n,r,e))&&(a[r]=i||n)}),Object.defineProperties(e,a)};const Ur=cr("AsyncFunction"),Vr=((e,t)=>{return e?setImmediate:t?(n="axios@".concat(Math.random()),a=[],Or.addEventListener("message",e=>{let t=e.source,r=e.data;t===Or&&r===n&&a.length&&a.shift()()},!1),e=>{a.push(e),Or.postMessage(n,"*")}):e=>setTimeout(e);var n,a})("function"===typeof setImmediate,gr(Or.postMessage)),Hr="undefined"!==typeof queueMicrotask?queueMicrotask.bind(Or):"undefined"!==typeof process&&process.nextTick||Vr,Wr={isArray:ur,isArrayBuffer:hr,isBuffer:pr,isFormData:e=>{if(!e)return!1;if(Sr&&e instanceof Sr)return!0;const t=rr(e);if(!t||t===Object.prototype)return!1;if(!gr(e.append))return!1;const n=or(e);return"formdata"===n||"object"===n&&gr(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){let t;return t="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&hr(e.buffer),t},isString:fr,isNumber:xr,isBoolean:e=>!0===e||!1===e,isObject:vr,isPlainObject:br,isEmptyObject:e=>{if(!vr(e)||pr(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(rse){return!1}},isReadableStream:Er,isRequest:Cr,isResponse:Pr,isHeaders:Ar,isUndefined:mr,isDate:yr,isFile:wr,isReactNativeBlob:e=>!(!e||"undefined"===typeof e.uri),isReactNative:e=>e&&"undefined"!==typeof e.getParts,isBlob:jr,isRegExp:Br,isFunction:gr,isStream:e=>vr(e)&&gr(e.pipe),isURLSearchParams:_r,isTypedArray:Mr,isFileList:kr,forEach:Tr,merge:function e(){const t=Dr(this)&&this||{},n=t.caseless,a=t.skipUndefined,r={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=n&&Rr(r,i)||i,o=Lr(r,s)?r[s]:void 0;br(o)&&br(t)?r[s]=e(o,t):br(t)?r[s]=e({},t):ur(t)?r[s]=t.slice():a&&mr(t)||(r[s]=t)};for(var s=arguments.length,o=new Array(s),l=0;l<s;l++)o[l]=arguments[l];for(let c=0,d=o.length;c<d;
vendor: 4,544 bytes, line 2
2c++)o[c]&&Tr(o[c],i);return r},extend:function(e,t,n){return Tr(t,(t,a)=>{n&&gr(t)?Object.defineProperty(e,a,{__proto__:null,value:nr(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,a,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,a)=>{let r,i,s;const o={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)s=r[i],a&&!a(s,e,t)||o[s]||(t[s]=e[s],o[s]=!0);e=!1!==n&&rr(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:or,kindOfTest:cr,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return-1!==a&&a===n},toArray:e=>{if(!e)return null;if(ur(e))return e;let t=e.length;if(!xr(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[ir]).call(e);let a;for(;(a=n.next())&&!a.done;){const n=a.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const a=[];for(;null!==(n=e.exec(t));)a.push(n);return a},isHTMLForm:Fr,hasOwnProperty:Lr,hasOwnProp:Lr,reduceDescriptors:qr,freezeMethods:e=>{qr(e,(t,n)=>{if(gr(e)&&["arguments","caller","callee"].includes(n))return!1;const a=e[n];gr(a)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},a=e=>{e.forEach(e=>{n[e]=!0})};return ur(e)?a(e):a(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Rr,global:Or,isContextDefined:Dr,isSpecCompliantForm:function(e){return!!(e&&gr(e.append)&&"FormData"===e[sr]&&e[ir])},toJSONObject:e=>{const t=new Array(10),n=(e,a)=>{if(vr(e)){if(t.indexOf(e)>=0)return;if(pr(e))return e;if(!("toJSON"in e)){t[a]=e;const r=ur(e)?[]:{};return Tr(e,(e,t)=>{const i=n(e,a+1);!mr(i)&&(r[t]=i)}),t[a]=void 0,r}}return e};return n(e,0)},isAsyncFn:Ur,isThenable:e=>e&&(vr(e)||gr(e))&&gr(e.then)&&gr(e.catch),setImmediate:Vr,asap:Hr,isIterable:e=>null!=e&&gr(e[ir])},Kr=Wr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Gr=e=>{const t={};let n,a,r;return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),a=e.substring(r+1).trim(),!n||t[n]&&Kr[n]||("set-cookie"===n?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t};n.dn(Gr);const Zr=Symbol("internals"),Yr=/[^\x09\x20-\x7E\x80-\xFF]/g;function Qr(e){return e&&String(e).trim().toLowerCase()}function $r(e){return!1===e||null==e?e:Wr.isArray(e)?e.map($r):function(e){let t=0,n=e.length;for(;t<n;){const n=e.charCodeAt(t);if(9!==n&&32!==n)break;t+=1}for(;n>t;){const t=e.charCodeAt(n-1);if(9!==t&&32!==t)break;n-=1}return 0===t&&n===e.length?e:e.slice(t,n)}(String(e).replace(Yr,""))}function Xr(e,t,n,a,r){return Wr.isFunction(a)?a.call(this,t,n):(r&&(t=n),Wr.isString(t)?Wr.isString(a)?-1!==t.indexOf(a):Wr.isRegExp(a)?a.test(t):void 0:void 0)}class Jr{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function r(e,t,n){const r=Qr(t);if(!r)throw new Error("header name must be a non-empty string");const i=Wr.findKey(a,r);(!i||void 0===a[i]||!0===n||void 0===n&&!1!==a[i])&&(a[i||t]=$r(e))}const i=(e,t)=>Wr.forEach(e,(e,n)=>r(e,n,t));if(Wr.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Wr.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i(Gr(e),t);else if(Wr.isObject(e)&&Wr.isIterable(e)){let n,a,r={};for(const t of e){if(!Wr.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[a=t[0]]=(n=r[a])?Wr.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=Qr(e)){const n=Wr.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;
2=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}(e);if(Wr.isFunction(t))return t.call(this,e,n);if(Wr.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Qr(e)){const n=Wr.findKey(this,e);return!(!n||void 0===this[n]||t&&!Xr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let a=!1;function r(e){if(e=Qr(e)){const r=Wr.findKey(n,e);!r||t&&!Xr(0,n[r],r,t)||(delete n[r],a=!0)}}return Wr.isArray(e)?e.forEach(r):r(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const r=t[n];e&&!Xr(0,this[r],r,e,!0)||(delete this[r],a=!0)}return a}normalize(e){const t=this,n={};return Wr.forEach(this,(a,r)=>{const i=Wr.findKey(n,r);if(i)return t[i]=$r(a),void delete t[r];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();s!==r&&delete t[r],t[s]=$r(a),n[s]=!0}),this}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.constructor.concat(this,...t)}toJSON(e){const t=Object.create(null);return Wr.forEach(this,(n,a)=>{null!=n&&!1!==n&&(t[a]=e&&Wr.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(e=>{let t=Le(e,2);return t[0]+": "+t[1]}).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e){const t=new this(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return a.forEach(e=>t.set(e)),t}static accessor(e){const t=(this[Zr]=this[Zr]={accessors:{}}).accessors,n=this.prototype;function a(e){const a=Qr(e);t[a]||(!function(e,t){const n=Wr.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{__proto__:null,value:function(e,n,r){return this[a].call(this,t,e,n,r)},configurable:!0})})}(n,e),t[a]=!0)}return Wr.isArray(e)?e.forEach(a):a(e),this}}Jr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Wr.reduceDescriptors(Jr.prototype,(e,t)=>{let n=e.value,a=t[0].toUpperCase()+t.slice(1);return{get:()=>n,set(e){this[a]=e}}}),Wr.freezeMethods(Jr);const ei=Jr;function ti(e,t){const n=new Set(t.map(e=>String(e).toLowerCase())),a=[],r=e=>{if(null===e||"object"!==typeof e)return e;if(Wr.isBuffer(e))return e;if(-1!==a.indexOf(e))return;let t;if(e instanceof ei&&(e=e.toJSON()),a.push(e),Wr.isArray(e))t=[],e.forEach((e,n)=>{const a=r(e);Wr.isUndefined(a)||(t[n]=a)});else{if(!Wr.isPlainObject(e)&&function(e){if(Wr.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Wr.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(e))return a.pop(),e;t=Object.create(null);for(const a of Object.entries(e)){var i=Le(a,2);const e=i[0],s=i[1],o=n.has(e.toLowerCase())?"[REDACTED ****]":r(s);Wr.isUndefined(o)||(t[e]=o)}}return a.pop(),t};return r(e)}
vendor: 4,344 bytes, line 2
2class ni extends Error{static from(e,t,n,a,r,i){const s=new ni(e.message,t||e.code,n,a,r);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,n,a,r){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),r&&(this.response=r,this.status=r.status)}toJSON(){const e=this.config,t=e&&Wr.hasOwnProp(e,"redact")?e.redact:void 0,n=Wr.isArray(t)&&t.length>0?ti(e,t):Wr.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}}ni.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ni.ERR_BAD_OPTION="ERR_BAD_OPTION",ni.ECONNABORTED="ECONNABORTED",ni.ETIMEDOUT="ETIMEDOUT",ni.ECONNREFUSED="ECONNREFUSED",ni.ERR_NETWORK="ERR_NETWORK",ni.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ni.ERR_DEPRECATED="ERR_DEPRECATED",ni.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ni.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ni.ERR_CANCELED="ERR_CANCELED",ni.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ni.ERR_INVALID_URL="ERR_INVALID_URL",ni.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const ai=ni;function ri(e){return Wr.isPlainObject(e)||Wr.isArray(e)}function ii(e){return Wr.endsWith(e,"[]")?e.slice(0,-2):e}function si(e,t,n){return e?e.concat(t).map(function(e,t){return e=ii(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const oi=Wr.toFlatObject(Wr,{},null,function(e){return/^is[A-Z]/.test(e)});const li=function(e,t,n){if(!Wr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const a=(n=Wr.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Wr.isUndefined(t[e])})).metaTokens,r=n.visitor||u,i=n.dots,s=n.indexes,o=n.Blob||"undefined"!==typeof Blob&&Blob,l=void 0===n.maxDepth?100:n.maxDepth,c=o&&Wr.isSpecCompliantForm(t);if(!Wr.isFunction(r))throw new TypeError("visitor must be a function");function d(e){if(null===e)return"";if(Wr.isDate(e))return e.toISOString();if(Wr.isBoolean(e))return e.toString();if(!c&&Wr.isBlob(e))throw new ai("Blob is not supported. Use a Buffer instead.");return Wr.isArrayBuffer(e)||Wr.isTypedArray(e)?c&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let o=e;if(Wr.isReactNative(t)&&Wr.isReactNativeBlob(e))return t.append(si(r,n,i),d(e)),!1;if(e&&!r&&"object"===typeof e)if(Wr.endsWith(n,"{}"))n=a?n:n.slice(0,-2),e=JSON.stringify(e);else if(Wr.isArray(e)&&function(e){return Wr.isArray(e)&&!e.some(ri)}(e)||(Wr.isFileList(e)||Wr.endsWith(n,"[]"))&&(o=Wr.toArray(e)))return n=ii(n),o.forEach(function(e,a){!Wr.isUndefined(e)&&null!==e&&t.append(!0===s?si([n],a,i):null===s?n:n+"[]",d(e))}),!1;return!!ri(e)||(t.append(si(r,n,i),d(e)),!1)}const m=[],p=Object.assign(oi,{defaultVisitor:u,convertValue:d,isVisitable:ri});if(!Wr.isObject(e))throw new TypeError("data must be an object");return function e(n,a){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!Wr.isUndefined(n)){if(i>l)throw new ai("Object is too deeply nested ("+i+" levels). Max depth: "+l,ai.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==m.indexOf(n))throw Error("Circular reference detected in "+a.join("."));m.push(n),Wr.forEach(n,function(n,s){!0===(!(Wr.isUndefined(n)||null===n)&&r.call(t,n,Wr.isString(s)?s.trim():s,a,p))&&e(n,a?a.concat(s):[s],i+1)}),m.pop()}}(e),t};function ci(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function di(e,t){this._pairs=[],e&&li(e,this,t)}const ui=di.prototype;ui.append=function(e,t){this._pairs.push([e,t])},ui.toString=function(e){const t=e?function(t){return e.call(this,t,ci)}:ci;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const mi=di;function pi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function hi(e,t,n){if(!t)return e;const a=n&&n.encode||pi,r=Wr.isFunction(n)?{serialize:n}:n,i=r&&r.serialize;let s;if(s=i?i(t,r):Wr.isURLSearchParams(t)?t.toString():new mi(t,r).toString(a),s){const t=e.indexOf("#");
2-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}const fi=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Wr.forEach(this.handlers,function(t){null!==t&&e(t)})}},gi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},xi={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:mi,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vi="undefined"!==typeof window&&"undefined"!==typeof document,bi="object"===typeof navigator&&navigator||void 0,yi=vi&&(!bi||["ReactNative","NativeScript","NS"].indexOf(bi.product)<0),wi="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,ji=vi&&window.location.href||"http://localhost",ki=d(d({},e),xi);const Ni=function(e){function t(e,n,a,r){let i=e[r++];if("__proto__"===i)return!0;const s=Number.isFinite(+i),o=r>=e.length;if(i=!i&&Wr.isArray(a)?a.length:i,o)return Wr.hasOwnProp(a,i)?a[i]=Wr.isArray(a[i])?a[i].concat(n):[a[i],n]:a[i]=n,!s;a[i]&&Wr.isObject(a[i])||(a[i]=[]);return t(e,n,a[i],r)&&Wr.isArray(a[i])&&(a[i]=function(e){const t={},n=Object.keys(e);let a;const r=n.length;let i;for(a=0;a<r;a++)i=n[a],t[i]=e[i];return t}(a[i])),!s}if(Wr.isFormData(e)&&Wr.isFunction(e.entries)){const n={};return Wr.forEachEntry(e,(e,a)=>{t(function(e){return Wr.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),a,n,0)}),n}return null},Si=(e,t)=>null!=e&&Wr.hasOwnProp(e,t)?e[t]:void 0;const _i={transitional:gi,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,r=Wr.isObject(e);r&&Wr.isHTMLForm(e)&&(e=new FormData(e));if(Wr.isFormData(e))return a?JSON.stringify(Ni(e)):e;if(Wr.isArrayBuffer(e)||Wr.isBuffer(e)||Wr.isStream(e)||Wr.isFile(e)||Wr.isBlob(e)||Wr.isReadableStream(e))return e;if(Wr.isArrayBufferView(e))return e.buffer;if(Wr.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;
2if(r){const t=Si(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return li(e,new ki.classes.URLSearchParams,d({visitor:function(e,t,n,a){return ki.isNode&&Wr.isBuffer(e)?(this.append(t,e.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}(e,t).toString();if((i=Wr.isFileList(e))||n.indexOf("multipart/form-data")>-1){const n=Si(this,"env"),a=n&&n.FormData;return li(i?{"files[]":e}:e,a&&new a,t)}}return r||a?(t.setContentType("application/json",!1),function(e,t,n){if(Wr.isString(e))try{return(t||JSON.parse)(e),Wr.trim(e)}catch(rse){if("SyntaxError"!==rse.name)throw rse}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=Si(this,"transitional")||_i.transitional,n=t&&t.forcedJSONParsing,a=Si(this,"responseType"),r="json"===a;if(Wr.isResponse(e)||Wr.isReadableStream(e))return e;if(e&&Wr.isString(e)&&(n&&!a||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,Si(this,"parseReviver"))}catch(rse){if(n){if("SyntaxError"===rse.name)throw ai.from(rse,ai.ERR_BAD_RESPONSE,this,null,Si(this,"response"));throw rse}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ki.classes.FormData,Blob:ki.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Wr.forEach(["delete","get","head","post","put","patch","query"],e=>{_i.headers[e]={}});const zi=_i;function Ei(e,t){const n=this||zi,a=t||n,r=ei.from(a.headers);let i=a.data;return Wr.forEach(e,function(e){i=e.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function Ci(e){return!(!e||!e.__CANCEL__)}const Pi=class extends ai{constructor(e,t,n){super(null==e?"canceled":e,ai.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ai(e,t,n){const a=n.config.validateStatus;n.status&&a&&!a(n.status)?t(new ai("Request failed with status code "+n.status,n.status>=400&&n.status<500?ai.ERR_BAD_REQUEST:ai.ERR_BAD_RESPONSE,n.config,n.request,n)):e(n)}const Ti=function(e,t){e=e||10;const n=new Array(e),a=new Array(e);let r,i=0,s=0;return t=void 0!==t?t:1e3,function(o){const l=Date.now(),c=a[s];r||(r=l),n[i]=o,a[i]=l;let d=s,u=0;for(;d!==i;)u+=n[d++],d%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-r<t)return;const m=c&&l-c;return m?Math.round(1e3*u/m):void 0}};const Ri=function(e,t){let n,a,r=0,i=1e3/t;const s=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();r=i,n=null,a&&(clearTimeout(a),a=null),e(...t)};return[function(){const e=Date.now(),t=e-r;for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];t>=i?s(l,e):(n=l,a||(a=setTimeout(()=>{a=null,s(n)},i-t)))},()=>n&&s(n)]},Oi=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,a=0;const r=Ti(50,250);return Ri(n=>{const i=n.loaded,s=n.lengthComputable?n.total:void 0,o=null!=s?Math.min(i,s):i,l=Math.max(0,o-a),c=r(l);a=Math.max(a,o);e({loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s?(s-o)/c:void 0,event:n,lengthComputable:null!=s,[t?"download":"upload"]:!0})},n)},Di=(e,t)=>{const n=null!=e;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},Mi=e=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Wr.asap(()=>e(...n))},Ii=ki.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ki.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ki.origin),ki.navigator&&/(msie|trident)/i.test(ki.navigator.userAgent)):()=>!0,Fi=ki.hasStandardBrowserEnv?{write(e,t,n,a,r,i,s){if("undefined"===typeof document)return;const o=["".concat(e,"=").concat(encodeURIComponent(t))];Wr.isNumber(n)&&o.push("expires=".concat(new Date(n).toUTCString())),Wr.isString(a)&&o.push("path=".concat(a)),Wr.isString(r)&&o.push("domain=".concat(r)),!0===i&&o.push("secure"),Wr.isString(s)&&o.push("SameSite=".concat(s)),document.cookie=o.join("; ")},read(e){if("undefined"===typeof document)return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const a=t[n].replace(/^\s+/,""),r=a.indexOf("=");if(-1!==r&&a.slice(0,r)===e)return decodeURIComponent(a.slice(r+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Li(e,t,n){let a=!("string"===typeof(r=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r));var r;return e&&(a||!1===n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Bi=e=>e instanceof ei?d({},e):e;
2function qi(e,t){t=t||{};const n=Object.create(null);function a(e,t,n,a){return Wr.isPlainObject(e)&&Wr.isPlainObject(t)?Wr.merge.call({caseless:a},e,t):Wr.isPlainObject(t)?Wr.merge({},t):Wr.isArray(t)?t.slice():t}function r(e,t,n,r){return Wr.isUndefined(t)?Wr.isUndefined(e)?void 0:a(void 0,e,0,r):a(e,t,0,r)}function i(e,t){if(!Wr.isUndefined(t))return a(void 0,t)}function s(e,t){return Wr.isUndefined(t)?Wr.isUndefined(e)?void 0:a(void 0,e):a(void 0,t)}function o(n,r,i){return Wr.hasOwnProp(t,i)?a(n,r):Wr.hasOwnProp(e,i)?a(void 0,n):void 0}Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(e,t,n)=>r(Bi(e),Bi(t),0,!0)};return Wr.forEach(Object.keys(d(d({},e),t)),function(a){if("__proto__"===a||"constructor"===a||"prototype"===a)return;const i=Wr.hasOwnProp(l,a)?l[a]:r,s=i(Wr.hasOwnProp(e,a)?e[a]:void 0,Wr.hasOwnProp(t,a)?t[a]:void 0,a);Wr.isUndefined(s)&&i!==o||(n[a]=s)}),n}const Ui=["content-type","content-length"];const Vi=e=>{const t=qi({},e),n=e=>Wr.hasOwnProp(t,e)?t[e]:void 0,a=n("data");let r=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),u=n("url");var m;if(t.headers=o=ei.from(o),t.url=hi(Li(c,u,d),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?(m=l.password,encodeURIComponent(m).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16)))):""))),Wr.isFormData(a)&&(ki.hasStandardBrowserEnv||ki.hasStandardBrowserWebWorkerEnv?o.setContentType(void 0):Wr.isFunction(a.getHeaders)&&function(e,t,n){"content-only"===n?Object.entries(t).forEach(t=>{let n=Le(t,2),a=n[0],r=n[1];Ui.includes(a.toLowerCase())&&e.set(a,r)}):e.set(t)}(o,a.getHeaders(),n("formDataHeaderPolicy"))),ki.hasStandardBrowserEnv){Wr.isFunction(r)&&(r=r(t));if(!0===r||null==r&&Ii(t.url)){const e=i&&s&&Fi.read(s);e&&o.set(i,e)}}return t};n.dn(Vi);const Hi="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const a=Vi(e);let r=a.data;const i=ei.from(a.headers).normalize();let s,o,l,c,d,u=a.responseType,m=a.onUploadProgress,p=a.onDownloadProgress;function h(){c&&c(),d&&d(),a.cancelToken&&a.cancelToken.unsubscribe(s),a.signal&&a.signal.removeEventListener("abort",s)}let f=new XMLHttpRequest;function g(){if(!f)return;const a=ei.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());Ai(function(e){t(e),h()},function(e){n(e),h()},{data:u&&"text"!==u&&"json"!==u?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:a,config:e,request:f}),f=null}if(f.open(a.method.toUpperCase(),a.url,!0),f.timeout=a.timeout,"onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&f.responseURL.startsWith("file:"))&&setTimeout(g)},f.onabort=function(){f&&(n(new ai("Request aborted",ai.ECONNABORTED,e,f)),h(),f=null)},f.onerror=function(t){const a=t&&t.message?t.message:"Network Error",r=new ai(a,ai.ERR_NETWORK,e,f);r.event=t||null,n(r),h(),f=null},f.ontimeout=function(){let t=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const r=a.transitional||gi;a.timeoutErrorMessage&&(t=a.timeoutErrorMessage),n(new ai(t,r.clarifyTimeoutError?ai.ETIMEDOUT:ai.ECONNABORTED,e,f)),h(),f=null},void 0===r&&i.setContentType(null),"setRequestHeader"in f&&Wr.forEach(i.toJSON(),function(e,t){f.setRequestHeader(t,e)}),Wr.isUndefined(a.withCredentials)||(f.withCredentials=!!a.withCredentials),u&&"json"!==u&&(f.responseType=a.responseType),p){var x=Le(Oi(p,!0),2);l=x[0],d=x[1],f.addEventListener("progress",l)}if(m&&f.upload){var v=Le(Oi(m),2);o=v[0],c=v[1],f.upload.addEventListener("progress",o),f.upload.addEventListener("loadend",c)}(a.cancelToken||a.signal)&&(s=t=>{f&&(n(!t||t.type?new Pi(null,e,f):t),f.abort(),h(),f=null)},a.cancelToken&&a.cancelToken.subscribe(s),a.signal&&(a.signal.aborted?s():a.signal.addEventListener("abort",s)));const b=function(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}(a.url);!b||ki.protocols.includes(b)?f.send(r||null):n(new ai("Unsupported protocol "+b+":",ai.ERR_BAD_REQUEST,e))})},Wi=(e,t)=>{const n=(e=e?e.filter(Boolean):[]).length;if(t||n){let n,a=new AbortController;const r=function(e){if(!n){n=!0,s();const t=e instanceof Error?e:this.reason;a.abort(t instanceof ai?t:new Pi(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>
2{i=null,r(new ai("timeout of ".concat(t,"ms exceeded"),ai.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const o=a.signal;return o.unsubscribe=()=>Wr.asap(s),o}};function Ki(e,t){this.v=e,this.k=t}function Gi(e){return function(){return new Zi(e.apply(this,arguments))}}function Zi(e){var t,n;function a(t,n){try{var i=e[t](n),s=i.value,o=s instanceof Ki;Promise.resolve(o?s.v:s).then(function(n){if(o){var l="return"===t&&s.k?t:"next";if(!s.k||n.done)return a(l,n);n=e[l](n).value}r(!!i.done,n)},function(e){a("throw",e)})}catch(e){r(2,e)}}function r(e,r){2===e?t.reject(r):t.resolve({value:r,done:e}),(t=t.next)?a(t.key,t.arg):n=null}this._invoke=function(e,r){return new Promise(function(i,s){var o={key:e,arg:r,resolve:i,reject:s,next:null};n?n=n.next=o:(t=n=o,a(e,r))})},"function"!=typeof e.return&&(this.return=void 0)}function Yi(e){return new Ki(e,0)}function Qi(e){var t={},n=!1;function a(t,a){return n=!0,a=new Promise(function(n){n(e[t](a))}),{done:!1,value:new Ki(a,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):a("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return a("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):a("return",e)}),t}function $i(e){var t,n,a,r=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,a=Symbol.iterator);r--;){if(n&&null!=(t=e[n]))return t.call(e);if(a&&null!=(t=e[a]))return new Xi(t.call(e));n="@@asyncIterator",a="@@iterator"}throw new TypeError("Object is not async iterable")}function Xi(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Xi=function(e){this.s=e,this.n=e.next},Xi.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Xi(e)}Zi.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Zi.prototype.next=function(e){return this._invoke("next",e)},Zi.prototype.throw=function(e){return this._invoke("throw",e)},Zi.prototype.return=function(e){return this._invoke("return",e)};const Ji=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let a,r=0;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},es=function(){var e=Gi(function*(e,t){var n,a=!1,r=!1;try{for(var i,s=$i(ts(e));a=!(i=yield Yi(s.next())).done;a=!1){const e=i.value;yield*Qi($i(Ji(e,t)))}}catch(o){r=!0,n=o}finally{try{a&&null!=s.return&&(yield Yi(s.return()))}finally{if(r)throw n}}});return function(t,n){return e.apply(this,arguments)}}(),ts=function(){var e=Gi(function*(e){if(e[Symbol.asyncIterator])return void(yield*Qi($i(e)));const t=e.getReader();try{for(;;){const e=yield Yi(t.read()),n=e.done,a=e.value;if(n)break;yield a}}finally{yield Yi(t.cancel())}});return function(t){return e.apply(this,arguments)}}(),ns=(e,t,n,a)=>{const r=es(e,t);let i,s=0,o=e=>{i||(i=!0,a&&a(e))};return new ReadableStream({async pull(e){try{const t=await r.next(),a=t.done,i=t.value;if(a)return o(),void e.close();let l=i.byteLength;if(n){let e=s+=l;n(e)}e.enqueue(new Uint8Array(i))}catch(t){throw o(t),t}},cancel:e=>(o(e),r.return())},{highWaterMark:2})};const as="1.16.0",rs=Wr.isFunction,is=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return!!e(...n)}catch(rse){return!1}},ss=e=>{var t;const n=null!==(t=Wr.global)&&void 0!==t?t:globalThis,a=n.ReadableStream,r=n.TextEncoder,i=e=Wr.merge.call({skipUndefined:!0},{Request:n.Request,Response:n.Response},e),s=i.fetch,o=i.Request,l=i.Response,c=s?rs(s):"function"===typeof fetch,u=rs(o),m=rs(l);if(!c)return!1;const p=c&&rs(a),h=c&&("function"===typeof r?(f=new r,e=>f.encode(e)):async e=>new Uint8Array(await new o(e).arrayBuffer()));var f;const g=u&&p&&is(()=>{let e=!1;const t=new o(ki.origin,{body:new a,method:"POST",get duplex(){return e=!0,"half"}}),n=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!n}),x=m&&p&&is(()=>
2Wr.isReadableStream(new l("").body)),v={stream:x&&(e=>e.body)};c&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!v[e]&&(v[e]=(t,n)=>{let a=t&&t[e];if(a)return a.call(t);throw new ai("Response type '".concat(e,"' is not supported"),ai.ERR_NOT_SUPPORT,n)})});const b=async(e,t)=>{const n=Wr.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Wr.isBlob(e))return e.size;if(Wr.isSpecCompliantForm(e)){const t=new o(ki.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Wr.isArrayBufferView(e)||Wr.isArrayBuffer(e)?e.byteLength:(Wr.isURLSearchParams(e)&&(e+=""),Wr.isString(e)?(await h(e)).byteLength:void 0)})(t):n};return async e=>{let t=Vi(e),n=t.url,a=t.method,i=t.data,c=t.signal,m=t.cancelToken,p=t.timeout,h=t.onDownloadProgress,f=t.onUploadProgress,y=t.responseType,w=t.headers,j=t.withCredentials,k=void 0===j?"same-origin":j,N=t.fetchOptions,S=t.maxContentLength,_=t.maxBodyLength;const z=Wr.isNumber(S)&&S>-1,E=Wr.isNumber(_)&&_>-1;let C=s||fetch;y=y?(y+"").toLowerCase():"text";let P=Wi([c,m&&m.toAbortSignal()],p),A=null;const T=P&&P.unsubscribe&&(()=>{P.unsubscribe()});let R;try{if(z&&"string"===typeof n&&n.startsWith("data:")){const t=function(e){if(!e||"string"!==typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),a=e.slice(t+1);if(/;base64/i.test(n)){let e=a.length;const t=a.length;for(let o=0;o<t;o++)if(37===a.charCodeAt(o)&&o+2<t){const t=a.charCodeAt(o+1),n=a.charCodeAt(o+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(n>=48&&n<=57||n>=65&&n<=70||n>=97&&n<=102)&&(e-=2,o+=2)}let n=0,r=t-1;const i=e=>e>=2&&37===a.charCodeAt(e-2)&&51===a.charCodeAt(e-1)&&(68===a.charCodeAt(e)||100===a.charCodeAt(e));r>=0&&(61===a.charCodeAt(r)?(n++,r--):i(r)&&(n++,r-=3)),1===n&&r>=0&&(61===a.charCodeAt(r)||i(r))&&n++;const s=3*Math.floor(e/4)-(n||0);return s>0?s:0}if("undefined"!==typeof Buffer&&"function"===typeof Buffer.byteLength)return Buffer.byteLength(a,"utf8");let r=0;for(let i=0,s=a.length;i<s;i++){const e=a.charCodeAt(i);if(e<128)r+=1;else if(e<2048)r+=2;else if(e>=55296&&e<=56319&&i+1<s){const e=a.charCodeAt(i+1);e>=56320&&e<=57343?(r+=4,i++):r+=3}else r+=3}return r}(n);if(t>S)throw new ai("maxContentLength size of "+S+" exceeded",ai.ERR_BAD_RESPONSE,e,A)}if(E&&"get"!==a&&"head"!==a){const t=await b(w,i);if("number"===typeof t&&isFinite(t)&&t>_)throw new ai("Request body larger than maxBodyLength limit",ai.ERR_BAD_REQUEST,e,A)}if(f&&g&&"get"!==a&&"head"!==a&&0!==(R=await b(w,i))){let e,t=new o(n,{method:"POST",body:i,duplex:"half"});if(Wr.isFormData(i)&&(e=t.headers.get("content-type"))&&w.setContentType(e),t.body){const e=Le(Di(R,Oi(Mi(f))),2),n=e[0],a=e[1];i=ns(t.body,65536,n,a)}}Wr.isString(k)||(k=k?"include":"omit");const t=u&&"credentials"in o.prototype;if(Wr.isFormData(i)){const e=w.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&w.delete("content-type")}w.set("User-Agent","axios/"+as,!1);const s=d(d({},N),{},{signal:P,method:a.toUpperCase(),headers:w.normalize().toJSON(),body:i,duplex:"half",credentials:t?k:void 0});A=u&&new o(n,s);let c=await(u?C(A,N):C(n,s));if(z){const t=Wr.toFiniteNumber(c.headers.get("content-length"));if(null!=t&&t>S)throw new ai("maxContentLength size of "+S+" exceeded",ai.ERR_BAD_RESPONSE,e,A)}const m=x&&("stream"===y||"response"===y);if(x&&c.body&&(h||z||m&&T)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=c[e]});const n=Wr.toFiniteNumber(c.headers.get("content-length")),a=Le(h&&Di(n,Oi(Mi(h),!0))||[],2),r=a[
20],i=a[1];let s=0;const o=t=>{if(z&&(s=t,s>S))throw new ai("maxContentLength size of "+S+" exceeded",ai.ERR_BAD_RESPONSE,e,A);r&&r(t)};c=new l(ns(c.body,65536,o,()=>{i&&i(),T&&T()}),t)}y=y||"text";let p=await v[Wr.findKey(v,y)||"text"](c,e);if(z&&!x&&!m){let t;if(null!=p&&("number"===typeof p.byteLength?t=p.byteLength:"number"===typeof p.size?t=p.size:"string"===typeof p&&(t="function"===typeof r?(new r).encode(p).byteLength:p.length)),"number"===typeof t&&t>S)throw new ai("maxContentLength size of "+S+" exceeded",ai.ERR_BAD_RESPONSE,e,A)}return!m&&T&&T(),await new Promise((t,n)=>{Ai(t,n,{data:p,headers:ei.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:A})})}catch(O){if(T&&T(),P&&P.aborted&&P.reason instanceof ai){const t=P.reason;throw t.config=e,A&&(t.request=A),O!==t&&(t.cause=O),t}if(O&&"TypeError"===O.name&&/Load failed|fetch/i.test(O.message))throw Object.assign(new ai("Network Error",ai.ERR_NETWORK,e,A,O&&O.response),{cause:O.cause||O});throw ai.from(O,O&&O.code,e,A,O&&O.response)}}},os=new Map,ls=e=>{let t=e&&e.env||{};const n=t.fetch,a=[t.Request,t.Response,n];let r,i,s=a.length,o=os;for(;s--;)r=a[s],i=o.get(r),void 0===i&&o.set(r,i=s?new Map:ss(t)),o=i;return i},cs=(ls(),{http:null,xhr:Hi,fetch:{get:ls}});Wr.forEach(cs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(rse){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const ds=e=>"- ".concat(e),us=e=>Wr.isFunction(e)||null===e||!1===e;const ms={getAdapter:function(e,t){const n=(e=Wr.isArray(e)?e:[e]).length;let a,r;const i={};for(let s=0;s<n;s++){let n;if(a=e[s],r=a,!us(a)&&(r=cs[(n=String(a)).toLowerCase()],void 0===r))throw new ai("Unknown adapter '".concat(n,"'"));if(r&&(Wr.isFunction(r)||(r=r.get(t))))break;i[n||"#"+s]=r}if(!r){const e=Object.entries(i).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return"adapter ".concat(n," ")+(!1===a?"is not supported by the environment":"is not available in the build")});let t=n?e.length>1?"since :\n"+e.map(ds).join("\n"):" "+ds(e[0]):"as no adapter specified";throw new ai("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:cs};function ps(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pi(null,e)}function hs(e){ps(e),e.headers=ei.from(e.headers),e.data=Ei.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return ms.getAdapter(e.adapter||zi.adapter,e)(e).then(function(t){ps(e),e.response=t;try{t.data=Ei.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ei.from(t.headers),t},function(t){if(!Ci(t)&&(ps(e),t&&t.response)){e.response=t.response;try{t.response.data=Ei.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ei.from(t.response.headers)}return Promise.reject(t)})}const fs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fs[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const gs={};fs.transitional=function(e,t,n){function a(e,t){return"[Axios v"+as+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,i)=>{if(!1===e)throw new ai(a(r," has been removed"+(t?" in "+t:"")),ai.ERR_DEPRECATED);return t&&!gs[r]&&(gs[r]=!0,console.warn(a(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,i)}},fs.spelling=function(e){return(t,n)=>(console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0)};const xs={assertOptions:function(e,t,n){if("object"!==typeof e)throw new ai("options must be an object",ai.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let r=a.length;for(;r-- >0;){const i=a[r],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new ai("option "+i+" must be "+n,ai.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ai("Unknown option "+i,ai.ERR_BAD_OPTION)}},validators:fs},vs=xs.validators;class bs{constructor(e){this.defaults=e||{},this.interceptors={request:new fi,response:new fi}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e={};Error.captureStackTrace?Error.captureStackTrace(e):e=new Error;const t=(()=>
2{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),a=-1===e?-1:t.indexOf("\n",e+1),r=-1===a?"":t.slice(a+1);String(n.stack).endsWith(r)||(n.stack+="\n"+t)}}else n.stack=t}catch(rse){}}throw n}}_request(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};const n=t=qi(this.defaults,t),a=n.transitional,r=n.paramsSerializer,i=n.headers;void 0!==a&&xs.assertOptions(a,{silentJSONParsing:vs.transitional(vs.boolean),forcedJSONParsing:vs.transitional(vs.boolean),clarifyTimeoutError:vs.transitional(vs.boolean),legacyInterceptorReqResOrdering:vs.transitional(vs.boolean)},!1),null!=r&&(Wr.isFunction(r)?t.paramsSerializer={serialize:r}:xs.assertOptions(r,{encode:vs.function,serialize:vs.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xs.assertOptions(t,{baseUrl:vs.spelling("baseURL"),withXsrfToken:vs.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=i&&Wr.merge(i.common,i[t.method]);i&&Wr.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete i[e]}),t.headers=ei.concat(s,i);const o=[];let l=!0;this.interceptors.request.forEach(function(e){if("function"===typeof e.runWhen&&!1===e.runWhen(t))return;l=l&&e.synchronous;const n=t.transitional||gi;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const c=[];let d;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,m=0;if(!l){const e=[hs.bind(this),void 0];for(e.unshift(...o),e.push(...c),u=e.length,d=Promise.resolve(t);m<u;)d=d.then(e[m++],e[m++]);return d}u=o.length;let p=t;for(;m<u;){const e=o[m++],t=o[m++];try{p=e(p)}catch(h){t.call(this,h);break}}try{d=hs.call(this,p)}catch(h){return Promise.reject(h)}for(m=0,u=c.length;m<u;)d=d.then(c[m++],c[m++]);return d}getUri(e){return hi(Li((e=qi(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Wr.forEach(["delete","get","head","options"],function(e){bs.prototype[e]=function(t,n){return this.request(qi(n||{},{method:e,url:t,data:(n||{}).data}))}}),Wr.forEach(["post","put","patch","query"],function(e){function t(t){return function(n,a,r){return this.request(qi(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:a}))}}bs.prototype[e]=t(),"query"!==e&&(bs.prototype[e+"Form"]=t(!0))});const ys=bs;class ws{constructor(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const a=new Promise(e=>{n.subscribe(e),t=e}).then(e);return a.cancel=function(){n.unsubscribe(t)},a},e(function(e,a,r){n.reason||(n.reason=new Pi(e,a,r),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new ws(function(t){e=t});return{token:t,cancel:e}}}const js=ws;const ks={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
2alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ks).forEach(e=>{let t=Le(e,2),n=t[0],a=t[1];ks[a]=n});const Ns=ks;const Ss=function e(t){const n=new ys(t),a=nr(ys.prototype.request,n);return Wr.extend(a,ys.prototype,n,{allOwnKeys:!0}),Wr.extend(a,n,null,{allOwnKeys:!0}),a.create=function(n){return e(qi(t,n))},a}(zi);Ss.Axios=ys,Ss.CanceledError=Pi,Ss.CancelToken=js,Ss.isCancel=Ci,Ss.VERSION=as,Ss.toFormData=li,Ss.AxiosError=ai,Ss.Cancel=Ss.CanceledError,Ss.all=function(e){return Promise.all(e)},Ss.spread=function(e){return function(t){return e.apply(null,t)}},Ss.isAxiosError=function(e){return Wr.isObject(e)&&!0===e.isAxiosError},Ss.mergeConfig=qi,Ss.AxiosHeaders=ei,Ss.formToJSON=e=>Ni(Wr.isHTMLForm(e)?new FormData(e):e),Ss.getAdapter=ms.getAdapter,Ss.HttpStatusCode=Ns,Ss.default=Ss;const _s=Ss,zs="".concat("https://login.persentis.com","/api"),Es=_s.create({baseURL:zs});function Cs(e){var t,n;let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Etwas ist schiefgelaufen.";const r=null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail;return r?"string"===typeof r?r:Array.isArray(r)?r.map(e=>e.msg||JSON.stringify(e)).join(" "):"object"===typeof r&&r.message?r.message:String(r):a}Es.interceptors.request.use(e=>{const t=localStorage.getItem("persentis_token");t&&!e.headers.Authorization&&(e.headers.Authorization="Bearer ".concat(t));try{"1"===localStorage.getItem("persentis_ct")&&(e.headers["X-CT-Mode"]="1")}catch(n){}return e}),Es.interceptors.response.use(e=>e,e=>(e.response&&401===e.response.status&&(localStorage.removeItem("persentis_token"),window.location.pathname.startsWith("/survey")||window.location.pathname.startsWith("/set-password")||"/login"===window.location.pathname||(window.location.href="/login")),Promise.reject(e)));const Ps=Es,As=(0,a.createContext)(null);function Ts(e){let t=e.children;const n=Le((0,a.useState)(null),2),r=n[0],i=n[1],s=Le((0,a.useState)(!0),2),o=s[0],l=s[1],c=Le((0,a.useState)(()=>{try{return JSON.parse(localStorage.getItem("persentis_impersonation")||"null")}catch(e){return null}}),2),d=c[0],u=c[1],m=Le((0,a.useState)(()=>{try{return JSON.parse(localStorage.getItem("persentis_public_demo")||"null")}catch(e){return null}}),2),p=m[0],h=m[1];(0,a.useEffect)(()=>{localStorage.getItem("persentis_token")?Ps.get("/auth/me").then(e=>i(e.data)).catch(()=>localStorage.removeItem("persentis_token")).finally(()=>l(!1)):l(!1)},[]);return(0,Te.jsx)(As.Provider,{value:{user:r,setUser:i,loading:o,login:async(e,t)=>{const n=await Ps.post("/auth/login",{email:e,password:t});return localStorage.setItem("persentis_token",n.data.token),i(n.data.user),n.data.user},loginWithToken:(e,t)=>{localStorage.setItem("persentis_token",e),i(t)},logout:()=>{localStorage.removeItem("persentis_token"),localStorage.removeItem("persentis_impersonation"),localStorage.removeItem("persentis_impersonation_origin"),localStorage.removeItem("persentis_public_demo"),u(null),h(null),i(null),window.location.href="/login"},impersonation:d,startImpersonation:function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=localStorage.getItem("persentis_token");s&&localStorage.setItem("persentis_impersonation_origin",s);const o={label:n,demo:!!a,superadmin_origin:"superadmin"===(null===r||void 0===r?void 0:r.role)};localStorage.setItem("persentis_impersonation",JSON.stringify(o)),localStorage.setItem("persentis_token",e),u(o),i(t)},stopImpersonation:async()=>{const e=localStorage.getItem("persentis_impersonation_origin");if(localStorage.removeItem("persentis_impersonation"),localStorage.removeItem("persentis_impersonation_origin"),u(null),e){localStorage.setItem("persentis_token",e);try{const e=await Ps.get("/auth/me");i(e.data)}catch(t){localStorage.removeItem("persentis_token"),i(null)}}window.location.href="/admin"},publicDemo:p,startPublicDemo:(e,t,n)=>{localStorage.setItem("persentis_token",e);const a={label:(null===n||void 0===n?void 0:n.label)||"Wallner GmbH",firma_id:(null===n||void 0===n?void 0:n.firma_
2id)||null};localStorage.setItem("persentis_public_demo",JSON.stringify(a)),h(a),i(t)},exitPublicDemo:()=>{localStorage.removeItem("persentis_token"),localStorage.removeItem("persentis_public_demo"),h(null),i(null),window.location.href="/login"}},children:t})}function Rs(){return(0,a.useContext)(As)}const Os=(0,a.createContext)(null);function Ds(e,t){return e&&t?e.replace(/\{(\w+)\}/g,(e,n)=>void 0!==t[n]&&null!==t[n]?String(t[n]):e):e}function Ms(e){var t,n;let r=e.children;const i=Rs(),s=i.user,o=i.impersonation,l=Le((0,a.useState)({}),2),c=l[0],u=l[1],m=Le((0,a.useState)(()=>"1"===localStorage.getItem("persentis_edit_mode")),2),p=m[0],h=m[1],f="superadmin"===(null===s||void 0===s?void 0:s.role)||"subadmin"===(null===s||void 0===s?void 0:s.role)&&Boolean((null===s||void 0===s||null===(t=s.permissions)||void 0===t?void 0:t.full)||(null===s||void 0===s||null===(n=s.permissions)||void 0===n?void 0:n.texte))||Boolean(null===o||void 0===o?void 0:o.superadmin_origin),g=f&&p,x=(0,a.useCallback)(()=>{h(e=>{const t=!e;return localStorage.setItem("persentis_edit_mode",t?"1":"0"),t})},[]),v=(0,a.useCallback)(()=>{const e=localStorage.getItem("persentis_lang")||"de";Ps.get("/ui-texts?lang=".concat(e)).then(e=>u(t=>d(d({},t),e.data||{}))).catch(()=>{})},[]),b=(0,a.useCallback)(()=>{const e=localStorage.getItem("persentis_lang")||"de";Ps.get("/ui-texts/public?lang=".concat(e)).then(e=>u(t=>d(d({},e.data||{}),t))).catch(()=>{})},[]);(0,a.useEffect)(()=>{b()},[b]),(0,a.useEffect)(()=>{s&&v()},[s,v]),(0,a.useEffect)(()=>{const e=()=>{b(),s&&v()};return window.addEventListener("persentis-lang-changed",e),()=>window.removeEventListener("persentis-lang-changed",e)},[s,v,b]);const y=()=>{const e=localStorage.getItem("persentis_impersonation_origin");return e?{headers:{Authorization:"Bearer ".concat(e)}}:{}},w=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=c[e];return void 0!==n&&null!==n&&""!==n?n:t},[c]),j=(0,a.useCallback)(function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Ds(w(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),t)},[w]),k=(0,a.useCallback)(async(e,t)=>{const n=localStorage.getItem("persentis_lang")||"de",a=await Ps.put("/ui-texts/".concat(encodeURIComponent(e)),{value:t,lang:n},y());u(n=>{var r,i;return d(d({},n),{},{[e]:null!==(r=null===(i=a.data)||void 0===i?void 0:i.value)&&void 0!==r?r:t})})},[]),N=(0,a.useCallback)(async(e,t,n)=>{const a=await Ps.put("/ui-texts/".concat(encodeURIComponent(e)),{value:t,lang:n},y());return n===(localStorage.getItem("persentis_lang")||"de")&&u(n=>{var r,i;return d(d({},n),{},{[e]:null!==(r=null===(i=a.data)||void 0===i?void 0:i.value)&&void 0!==r?r:t})}),a.data},[]),S=(0,a.useCallback)(async e=>(await Ps.get("/ui-texts/entry/".concat(encodeURIComponent(e)),y())).data,[]),_=(0,a.useCallback)(async e=>{await Ps.delete("/ui-texts/".concat(encodeURIComponent(e)),y()),u(t=>{const n=d({},t);return delete n[e],n})},[]);return(0,Te.jsx)(Os.Provider,{value:{overrides:c,canEdit:f,editMode:p,showPencils:g,toggleEditMode:x,getText:w,text:j,saveText:k,saveTextLang:N,fetchEntry:S,resetText:_},children:r})}function Is(){return(0,a.useContext)(Os)||{overrides:{},canEdit:!1,editMode:!1,showPencils:!1,toggleEditMode:()=>{},getText:(e,t)=>t,text:(e,t)=>t,saveText:async()=>{},saveTextLang:async()=>{},fetchEntry:async()=>({values:{},auto:{},source_lang:"de"}),resetText:async()=>{}}}const Fs=(0,a.createContext)(null),Ls=window.sessionStorage,Bs=(e,t)=>{try{const n=Ls.getItem(e);return null===n?t:n}catch(n){return t}},qs=(e,t)=>{try{null===t||void 0===t?Ls.removeItem(e):Ls.setItem(e,String(t))}catch(n){}},Us=()=>{try{var e;if(null!==(e=window.crypto)&&void 0!==e&&e.randomUUID)return window.crypto.randomUUID()}catch(t){}return"ct-"+Date.now()+"-"+Math.random().toString(36).slice(2,10)},Vs=()=>{let e=Bs("ct_sid","");return e||(e=Us(),qs("ct_sid",e)),e};function Hs(e){let t=e.children;const n=Le((0,a.useState)(()=>"1"===Bs("ct_mode","0")),2),r=n[0],i=n[1],s=Le((0,a.useState)(()=>"1"===Bs("ct_guide","1")),2),o=s[0],l=s[1],c=Le((0,a.useState)(()=>Bs("ct_segment","")||null),2),u=c[0],m=c[1],p=Le((0,a.useState)(()=>parseInt(Bs("ct_step","0"),10)||0),2),h=p[0],f=p[1],g=Le((0,a.useState)(()=>"1"===Bs("ct_done","0")),2),x=g[0],v=g[1],b=Le((0,a.useState)([]),2),y=b[0],w=b[1],j=Xa().lang,k=(0,a.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{Ps.post("/guide/track",d({session_id:Vs(),event:e},t)).catch(()=>{})}catch(n){}},[]);(0,a.useEffect)(()=>
2{if(!r)return;let e=!0;const t=encodeURIComponent(j||"de");return Ps.get("/guide/steps?lang=".concat(t)).then(t=>{let n=t.data;e&&w(n.steps||[])}).catch(()=>{}),()=>{e=!1}},[r,j]),(0,a.useEffect)(()=>{try{r?window.localStorage.setItem("persentis_ct","1"):window.localStorage.removeItem("persentis_ct")}catch(e){}},[r]);const N=(0,a.useCallback)(()=>{qs("ct_mode","1"),qs("ct_guide","1"),qs("ct_segment",null),qs("ct_step","0"),qs("ct_done","0"),qs("ct_sid",Us());try{window.localStorage.setItem("persentis_ct","1")}catch(a){}i(!0),l(!0),m(null),f(0),v(!1);let e="",t="",n="";try{const a=new URLSearchParams(window.location.search);e=a.get("src")||a.get("utm_source")||"",document.referrer&&(t=new URL(document.referrer).hostname);const r=(navigator.languages&&navigator.languages[0]||navigator.language||"").match(/[-_]([A-Za-z]{2})\b/);r&&(n=r[1].toUpperCase())}catch(r){}k("ct_started",{meta:{source:e,referrer:t,client_country:n}})},[k]),S=(0,a.useCallback)(()=>{["ct_mode","ct_guide","ct_segment","ct_step","ct_done","ct_sid"].forEach(e=>Ls.removeItem(e));try{window.localStorage.removeItem("persentis_ct")}catch(e){}i(!1),m(null),f(0),v(!1)},[]),_=(0,a.useCallback)(()=>{l(e=>{const t=!e;return qs("ct_guide",t?"1":"0"),t})},[]),z=(0,a.useCallback)(()=>{qs("ct_guide","1"),qs("ct_segment",null),qs("ct_step","0"),qs("ct_done","0"),l(!0),m(null),f(0),v(!1)},[]),E=(0,a.useCallback)(()=>{qs("ct_guide","1"),qs("ct_step","0"),qs("ct_done","0"),l(!0),f(0),v(!1)},[]),C=(0,a.useCallback)(e=>{qs("ct_segment",e),qs("ct_step","0"),qs("ct_done","0"),qs("ct_guide","1"),m(e),f(0),v(!1),l(!0),k("segment_selected",{segment:e})},[k]),P=(0,a.useCallback)(e=>{qs("ct_step",e),f(e)},[]),A=(0,a.useCallback)(e=>{qs("ct_done",e?"1":"0"),v(e),e&&k("tour_completed")},[k]),T=(0,a.useCallback)(()=>{qs("ct_segment",null),qs("ct_step","0"),qs("ct_done","0"),m(null),f(0),v(!1)},[]);return(0,Te.jsx)(Fs.Provider,{value:{ctMode:r,guideEnabled:o,segment:u,stepIndex:h,done:x,steps:y,enterCt:N,exitCt:S,toggleGuide:_,restartTour:z,repeatSegment:E,chooseSegment:C,setStepIndex:P,setDone:A,backToPicker:T,track:k},children:t})}const Ws=()=>(0,a.useContext)(Fs),Ks=(0,a.createContext)(null),Gs=["profile","departments","colleagues","billing"];function Zs(e){let t=e.children;const n=Rs(),r=n.user,i=n.impersonation,s=n.publicDemo,o=Le((0,a.useState)(null),2),l=o[0],c=o[1],d=Le((0,a.useState)(!1),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=Le((0,a.useState)(!1),2),x=g[0],v=g[1],b=(0,a.useRef)(null),y="undefined"!==typeof window&&!!window.sessionStorage.getItem("ct_mode"),w=!!r&&"admin"===r.role&&!i&&!s&&!r.is_demo&&!r.is_public_demo&&!y,j=(0,a.useCallback)(async()=>{if(!w)return c(null),null;m(!0);try{const e=await Ps.get("/onboarding/state");return c(e.data),e.data}catch(e){return c(null),null}finally{m(!1)}},[w]);(0,a.useEffect)(()=>{w?j():c(null)},[w,null===r||void 0===r?void 0:r.id]);const k=null!==r&&void 0!==r&&r.id?"persentis_onb_snooze_".concat(r.id):null;(0,a.useEffect)(()=>{if(!w||!l)return;const e=!!k&&"undefined"!==typeof window&&"1"===window.localStorage.getItem(k);!l.eligible||l.completed||b.current===r.id||e||(b.current=r.id,f(!0))},[w,l,null===r||void 0===r?void 0:r.id]);const N=(0,a.useCallback)(()=>{k&&"undefined"!==typeof window&&window.localStorage.setItem(k,"1"),null!==r&&void 0!==r&&r.id&&(b.current=r.id),f(!1)},[k,null===r||void 0===r?void 0:r.id]),S=null!==l&&void 0!==l&&l.done_steps?Gs.filter(e=>l.done_steps.includes(e)).length:0,_=Math.round(S/Gs.length*100),z=!(!(w&&l&&l.eligible)||l.completed);return(0,Te.jsx)(Ks.Provider,{value:{state:l,loading:u,refresh:j,open:h,setOpen:f,dismissed:x,setDismissed:v,pct:_,shouldShow:z,snoozeAutoOpen:N},children:t})}function Ys(){return(0,a.useContext)(Ks)||{state:null,loading:!1,refresh:async()=>{},open:!1,setOpen:()=>{},dismissed:!1,setDismissed:()=>{},pct:0,shouldShow:!1,snoozeAutoOpen:()=>{}}}const Qs=(0,a.createContext)({});function $s(e){const t=(0,a.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Xs=(0,a.createContext)(null),Js=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class eo extends a.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function to(e){let t=e.children,n=e.isPresent;const r=(0,a.useId)(),i=(0,a.useRef)(null),s=(0,a.useRef)({width:0,height:0,top:0,left:0}),o=(0,a.useContext)(Js).nonce;return(0,a.useInsertionEffect)(()=>{const e=s.current,t=e.width,a=e.height,l=e.top,c=e.left;if(n||!i.current||!t||!a)return;i.current.dataset.motionPopId=r;const d=document.createElement("style");return o&&(d.nonce=o),document.head.appendChild(d),d.sheet&&d.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(a,"px !important;\n top: ").concat(l,"px !important;\n left: ").concat(c,"px !important;\n }\n ")),()=>{document.head.removeChild(d)}},[n]),(0,Te.jsx)(eo,{isPresent:n,childRef:i,sizeRef:s,children:a.cloneElement(t,{ref:i})})}const no=e=>{let t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,s=e.custom,o=e.presenceAffectsLayout,l=e.mode;const c=$s(ao),d=(0,a.useId)(),u=(0,a.useCallback)(e=>{c.set(e,!0);for(const t of c.values())if(!t)return;i&&i()},[c,i]),m=(0,a.useMemo)(()=>({id:d,initial:n,isPresent:r,custom:s,onExitComplete:u,register:e=>(c.set(e,!1),()=>c.delete(e))}),o?[Math.random(),u]:[r,u]);return(0,a.useMemo)(()=>
2{c.forEach((e,t)=>c.set(t,!1))},[r]),a.useEffect(()=>{!r&&!c.size&&i&&i()},[r]),"popLayout"===l&&(t=(0,Te.jsx)(to,{isPresent:r,children:t})),(0,Te.jsx)(Xs.Provider,{value:m,children:t})};function ao(){return new Map}function ro(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=(0,a.useContext)(Xs);if(null===t)return[!0,null];const n=t.isPresent,r=t.onExitComplete,i=t.register,s=(0,a.useId)();(0,a.useEffect)(()=>{e&&i(s)},[e]);const o=(0,a.useCallback)(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,o]:[!0]}const io=e=>e.key||"";function so(e){const t=[];return a.Children.forEach(e,e=>{(0,a.isValidElement)(e)&&t.push(e)}),t}const oo="undefined"!==typeof window,lo=oo?a.useLayoutEffect:a.useEffect,co=e=>{let t=e.children,n=e.custom,r=e.initial,i=void 0===r||r,s=e.onExitComplete,o=e.presenceAffectsLayout,l=void 0===o||o,c=e.mode,d=void 0===c?"sync":c,u=e.propagate,m=void 0!==u&&u;const p=Le(ro(m),2),h=p[0],f=p[1],g=(0,a.useMemo)(()=>so(t),[t]),x=m&&!h?[]:g.map(io),v=(0,a.useRef)(!0),b=(0,a.useRef)(g),y=$s(()=>new Map),w=Le((0,a.useState)(g),2),j=w[0],k=w[1],N=Le((0,a.useState)(g),2),S=N[0],_=N[1];lo(()=>{v.current=!1,b.current=g;for(let e=0;e<S.length;e++){const t=io(S[e]);x.includes(t)?y.delete(t):!0!==y.get(t)&&y.set(t,!1)}},[S,x.length,x.join("-")]);const z=[];if(g!==j){let e=[...g];for(let t=0;t<S.length;t++){const n=S[t],a=io(n);x.includes(a)||(e.splice(t,0,n),z.push(n))}return"wait"===d&&z.length&&(e=z),_(so(e)),void k(g)}const E=(0,a.useContext)(Qs).forceRender;return(0,Te.jsx)(Te.Fragment,{children:S.map(e=>{const t=io(e),a=!(m&&!h)&&(g===S||x.includes(t));return(0,Te.jsx)(no,{isPresent:a,initial:!(v.current&&!i)&&void 0,custom:a?void 0:n,presenceAffectsLayout:l,mode:d,onExitComplete:a?void 0:()=>{if(!y.has(t))return;y.set(t,!0);let e=!0;y.forEach(t=>{t||(e=!1)}),e&&(null===E||void 0===E||E(),_(b.current),m&&(null===f||void 0===f||f()),s&&s())},children:e},t)})})};function uo(e){if("undefined"===typeof Proxy)return e;const t=new Map;return new Proxy(function(){return e(...arguments)},{get:(n,a)=>"create"===a?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}function mo(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}const po=e=>Array.isArray(e);function ho(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let a=0;a<n;a++)if(t[a]!==e[a])return!1;return!0}function fo(e){return"string"===typeof e||Array.isArray(e)}function go(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function xo(e,t,n,a){if("function"===typeof t){const r=Le(go(a),2),i=r[0],s=r[1];t=t(void 0!==n?n:e.custom,i,s)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const r=Le(go(a),2),i=r[0],s=r[1];t=t(void 0!==n?n:e.custom,i,s)}return t}function vo(e,t,n){const a=e.getProps();return xo(a,t,void 0!==n?n:a.custom,e)}const bo=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],yo=["initial",...bo];function wo(e){let t;return()=>(void 0===t&&(t=e()),t)}const jo=wo(()=>void 0!==window.ScrollTimeline);class ko{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map(n=>jo()&&n.attachTimeline?n.attachTimeline(e):"function"===typeof t?t(n):void 0);return()=>{n.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class No extends ko{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function So(e,t){return e?e[t]||e.default||e:void 0}const _o=2e4;function zo(e){let t=0;let n=e.next(t);for(;!n.done&&t<_o;)t+=50,n=e.next(t);return t>=_o?1/0:t}function Eo(e){return"function"===typeof e}function Co(e,t){e.timeline=t,e.onfinish=null}const Po=e=>Array.isArray(e)&&"number"===typeof e[0],Ao={linearEasing:void 0};function To(e,t){const n=wo(e);return()=>{var e;return null!==(e=Ao[t])&&void 0!==e?e:n()}}const Ro=To(()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(rse){return!1}return!0},"linearEasing"),Oo=(e,t,n)=>{const a=t-e;return 0===a?1:(n-e)/a},Do=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a="";const r=Math.max(Math.round(t/n),2);for(let i=0;i<r;i++)a+=e(Oo(0,r-1,i))+", ";return"linear(".concat(a.substring(0,a.length-2),")")};function Mo(e){return Boolean("function"===typeof e&&Ro()||!e||"string"===typeof e&&(e in Fo||Ro())||Po(e)||Array.isArray(e)&&e.every(Mo))}const Io=e=>{let t=Le(e,4),n=t[0],a=t[1],r=t[2],i=t[3];return"cubic-bezier(".concat(n,", ").concat(a,", ").concat(r,", ").concat(i,")")},Fo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Io([0,.65,.55,1]),circOut:Io([.55,0,1,.45]),backIn:Io([.31,.01,.66,-.59]),backOut:Io([.33,1.53,.69,.99])};function Lo(e,t){return e?"function"===typeof e&&Ro()?Do(e,t):Po(e)?Io(e):Array.isArray(e)?e.map(e=>Lo(e,t)||Fo.easeOut):Fo[e]:void 0}const Bo={x:!1,y:!1};function qo(){return Bo.x||Bo.y}function Uo(e,t){const n=function(e,t,n){var a;if(e instanceof Element)return[e];if("string"===typeof e){let r=document;t&&(r=t.current);const i=null!==(a=null===n||void 0===n?void 0:n[e])&&void 0!==a?a:r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}(e),a=new AbortController;return[n,d(d({passive:!0},t),{},{signal:a.signal}),()=>a.abort()]}function Vo(e){return t=>{"touch"===t.pointerType||qo()||e(t)}}const Ho=(e,t)=>!!t&&(e===t||Ho(e,t.parentElement)),Wo=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary,Ko=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const Go=new WeakSet;function Zo(e){return t=>{"Enter"===t.key&&e(t)}}function Yo(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Qo(e){return Wo(e)&&!qo()}function $o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=Le(Uo(e,n),3),r=a[0],i=a[1],s=a[2],o=e=>{const a=e.currentTarget;if(!Qo(e)||Go.has(a))return;Go.add(a);const r=t(e),s=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),Qo(e)&&Go.has(a)&&(Go.delete(a),"function"===typeof r&&r(e,{success:t}))},o=e=>{s(e,n.useGlobalTarget||Ho(a,e.target))},l=e=>{s(e,!1)};window.addEventListener("pointerup",o,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(function(e){return Ko.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0);(n.useGlobalTarget?window:e).addEventListener("pointerdown",o,i),e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const a=Zo(()=>{if(Go.has(n))return;Yo(n,"down");const e=Zo(()=>{Yo(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>Yo(n,"cancel"),t)});n.addEventListener("keydown",a,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",a),t)})(e,i),i)}),s}const Xo=e=>1e3*e,Jo=e=>e/1e3,el=e=>e;const tl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],nl=new Set(tl),al=new Set(["width","height","top","left","right","bottom",...tl]),rl=e=>po(e)?e[e.length-1]||0:e,il=!1,sl=!1;const ol=["read","resolveKeyframes","update","preRender","render","postRender"];function ll(e,t){let n=!1,a=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ol.reduce((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,a=!1,r=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(t){i.has(t)&&(l.schedule(t),e()),t(s)}const l={schedule:function(e){const r=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&a?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&i.add(e),r.has(e)||r.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{if(s=e,a)r=!0;else{a=!0;var i=[n,t];t=i[0],n=i[1],t.forEach(o),t.clear(),a=!1,r&&(r=!1,l.process(e))}}};return l}(i),e),{}),o=s.read,l=s.resolveKeyframes,c=s.update,d=s.preRender,u=s.render,m=s.postRender,p=()=>{const i=sl?r.timestamp:performance.now();n=!1,r.delta=a?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,o.process(r),l.process(r),c.process(r),d.process(r),u.process(r),m.process(r),r.isProcessing=!1,n&&t&&(a=!1,e(p))},h=ol.reduce((t,i)=>{const o=s[i];return t[i]=function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,a=!0,r.isProcessing||e(p)),o.schedule(t,i,s)},t},{});return{schedule:h,cancel:e=>{for(let t=0;t<ol.length;t++)s[ol[t]].cancel(e)},state:r,steps:s}}const cl=ll("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:el,!0),dl=cl.schedule,ul=cl.cancel,ml=cl.state,pl=cl.steps;let hl;function fl(){hl=void 0}const gl={now:()=>(void 0===hl&&gl.set(ml.isProcessing||sl?ml.timestamp:performance.now()),hl),set:e=>{hl=e,queueMicrotask(fl)}};function xl(e,t){-1===e.indexOf(t)&&e.push(t)}function vl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class bl{constructor(){this.subscriptions=[]}add(e){return xl(this.subscriptions,e),()=>vl(this.subscriptions,e)}
2notify(e,t,n){const a=this.subscriptions.length;if(a)if(1===a)this.subscriptions[0](e,t,n);else for(let r=0;r<a;r++){const a=this.subscriptions[r];a&&a(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function yl(e,t){return t?e*(1e3/t):0}const wl={current:void 0};class jl{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const a=gl.now();t.updatedAt!==a&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=gl.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(e=>!isNaN(parseFloat(e)))(this.current))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new bl);const n=this.events[e].add(t);return"change"===e?()=>{n(),dl.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return wl.current&&wl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=gl.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return yl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function kl(e,t){return new jl(e,t)}const Nl=["transitionEnd","transition"];function Sl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,kl(n))}function _l(e,t){let n=vo(e,t)||{},a=n.transitionEnd,r=void 0===a?{}:a,i=(n.transition,Be(n,Nl));i=d(d({},i),r);for(const s in i){Sl(e,s,rl(i[s]))}}const zl=e=>Boolean(e&&e.getVelocity);function El(e,t){const n=e.getValue("willChange");if(function(e){return Boolean(zl(e)&&e.add)}(n))return n.add(t)}const Cl=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),Pl="data-"+Cl("framerAppearId");function Al(e){return e.props[Pl]}const Tl=!1,Rl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Ol(e,t,n,a){if(e===t&&n===a)return el;const r=t=>function(e,t,n,a,r){let i,s,o=0;do{s=t+(n-t)/2,i=Rl(s,a,r)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++o<12);return s}(t,0,1,e,n);return e=>0===e||1===e?e:Rl(r(e),t,a)}const Dl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ml=e=>t=>1-e(1-t),Il=Ol(.33,1.53,.69,.99),Fl=Ml(Il),Ll=Dl(Fl),Bl=e=>(e*=2)<1?.5*Fl(e):.5*(2-Math.pow(2,-10*(e-1))),ql=e=>1-Math.sin(Math.acos(e)),Ul=Ml(ql),Vl=Dl(ql),Hl=e=>/^0(?:[\0-\x08\x0E-\x1F!-\x2D\/-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+$/.test(e);function Wl(e){return"number"===typeof e?0===e:null===e||("none"===e||"0"===e||Hl(e))}const Kl=(e,t,n)=>n>t?t:n<e?e:n,Gl={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},Zl=d(d({},Gl),{},{transform:e=>Kl(0,1,e)}),Yl=d(d({},Gl),{},{default:1}),Ql=e=>Math.round(1e5*e)/1e5,$l=/-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/g;const Xl=/^(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))$/i,Jl=(e,t)=>
2n=>Boolean("string"===typeof n&&Xl.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),ec=(e,t,n)=>a=>{if("string"!==typeof a)return a;const r=Le(a.match($l),4),i=r[0],s=r[1],o=r[2],l=r[3];return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==l?parseFloat(l):1}},tc=d(d({},Gl),{},{transform:e=>Math.round((e=>Kl(0,255,e))(e))}),nc={test:Jl("rgb","red"),parse:ec("red","green","blue"),transform:e=>{let t=e.red,n=e.green,a=e.blue,r=e.alpha,i=void 0===r?1:r;return"rgba("+tc.transform(t)+", "+tc.transform(n)+", "+tc.transform(a)+", "+Ql(Zl.transform(i))+")"}};const ac={test:Jl("#"),parse:function(e){let t="",n="",a="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),a=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,a+=a,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(a,16),alpha:r?parseInt(r,16)/255:1}},transform:nc.transform},rc=e=>({test:t=>"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>"".concat(t).concat(e)}),ic=rc("deg"),sc=rc("%"),oc=rc("px"),lc=rc("vh"),cc=rc("vw"),dc=d(d({},sc),{},{parse:e=>sc.parse(e)/100,transform:e=>sc.transform(100*e)}),uc={test:Jl("hsl","hue"),parse:ec("hue","saturation","lightness"),transform:e=>{let t=e.hue,n=e.saturation,a=e.lightness,r=e.alpha,i=void 0===r?1:r;return"hsla("+Math.round(t)+", "+sc.transform(Ql(n))+", "+sc.transform(Ql(a))+", "+Ql(Zl.transform(i))+")"}},mc={test:e=>nc.test(e)||ac.test(e)||uc.test(e),parse:e=>nc.test(e)?nc.parse(e):uc.test(e)?uc.parse(e):ac.parse(e),transform:e=>"string"===typeof e?e:e.hasOwnProperty("red")?nc.transform(e):uc.transform(e)},pc=/(?:#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\))/gi;const hc="number",fc="color",gc=/var[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\([\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)|#[0-9a-f]{3,8}|(?:rgb|h[s\u017F]l)a?\((?:-?[\.0-9]+%?[\t-\r ,\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+){2}-?[\.0-9]+%?[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:[,\/][\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)?(?:\b[0-9]+(?:\.[0-9]+)?|\.[0-9]+)?%?\)|-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)/gi;function xc(e){const t=e.toString(),n=[],a={color:[],number:[],var:[]},r=[];let i=0;const s=t.replace(gc,e=>(mc.test(e)?(a.color.push(i),r.push(fc),n.push(mc.parse(e))):e.startsWith("var(")?(a.var.push(i),r.push("var"),n.push(e)):(a.number.push(i),r.push(hc),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:s,indexes:a,types:r}}function vc(e){return xc(e).values}function bc(e){const t=xc(e),n=t.split,a=t.types,r=n.length;return e=>{let t="";for(let i=0;i<r;i++)if(t+=n[i],void 0!==e[i]){const n=a[i];t+=n===hc?Ql(e[i]):n===fc?mc.transform(e[i]):e[i]}return t}}const yc=e=>"number"===typeof e?0:e;const wc={test:function(e){var t,n;return isNaN(e)&&"string"===typeof e&&((null===(t=e.match($l))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(pc))||void 0===n?void 0:n.length)||0)>0},parse:vc,createTransformer:bc,getAnimatableNone:function(e){const t=vc(e);return bc(e)(t.map(yc))}},jc=new Set(["brightness","contrast","saturate","opacity"]);function kc(e){const t=Le(e.slice(0,-1).split("("),2),n=t[0],a=t[1];if("drop-shadow"===n)return e;const r=Le(a.match($l)||[],1)[0];if(!r)return e;const i=a.replace(r,"");let s=jc.has(n)?1:0;return r!==a&&(s*=100),n+"("+s+i+")"}const Nc=/\b([\x2Da-z]*)\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\)/g,Sc=d(d({},wc),{},{getAnimatableNone:e=>{const t=e.match(Nc);return t?t.map(kc).join(" "):e}}),_c={borderWidth:oc,borderTopWidth:oc,borderRightWidth:oc,borderBottomWidth:oc,borderLeftWidth:oc,borderRadius:oc,radius:oc,borderTopLeftRadius:oc,borderTopRightRadius:oc,borderBottomRightRadius:oc,borderBottomLeftRadius:oc,width:oc,maxWidth:oc,height:oc,maxHeight:oc,top:oc,right:oc,bottom:oc,left:oc,padding:oc,paddingTop:oc,paddingRight:oc,paddingBottom:oc,paddingLeft:oc,margin:oc,marginTop:oc,marginRight:oc,marginBottom:oc,marginLeft:oc,backgroundPositionX:oc,backgroundPositionY:oc},zc={rotate:ic,rotateX:ic,rotateY:ic,rotateZ:ic,scale:Yl,scaleX:Yl,scaleY:Yl,scaleZ:Yl,skew:ic,skewX:ic,skewY:ic,distance:oc,translateX:oc,translateY:oc,translateZ:oc,x:oc,y:oc,z:oc,perspective:oc,transformPerspective:oc,opacity:Zl,originX:dc,originY:dc,originZ:oc},Ec=d(d({},Gl),{},{transform:Math.round}),Cc=d(d(d({},_c),zc),{},{zIndex:Ec,size:oc,fillOpacity:Zl,strokeOpacity:Zl,numOctaves:Ec}),Pc=d(d({},Cc),{},{color:mc,backgroundColor:mc,outlineColor:mc,fill:mc,stroke:mc,borderColor:mc,borderTopColor:mc,borderRightColor:mc,borderBottomColor:mc,borderLeftColor:mc,filter:Sc,WebkitFilter:Sc}),Ac=e=>Pc[e];function Tc(e,t){let n=Ac(e);return n!==Sc&&(n=wc),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
2const Rc=new Set(["auto","none","0"]);const Oc=e=>e===Gl||e===oc,Dc=(e,t)=>parseFloat(e.split(", ")[t]),Mc=(e,t)=>(n,a)=>{let r=a.transform;if("none"===r||!r)return 0;const i=r.match(/^matrix3d\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)\)$/);if(i)return Dc(i[1],t);{const t=r.match(/^matrix\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)\)$/);return t?Dc(t[1],e):0}},Ic=new Set(["x","y","z"]),Fc=tl.filter(e=>!Ic.has(e));const Lc={width:(e,t)=>{let n=e.x,a=t.paddingLeft,r=void 0===a?"0":a,i=t.paddingRight,s=void 0===i?"0":i;return n.max-n.min-parseFloat(r)-parseFloat(s)},height:(e,t)=>{let n=e.y,a=t.paddingTop,r=void 0===a?"0":a,i=t.paddingBottom,s=void 0===i?"0":i;return n.max-n.min-parseFloat(r)-parseFloat(s)},top:(e,t)=>{let n=t.top;return parseFloat(n)},left:(e,t)=>{let n=t.left;return parseFloat(n)},bottom:(e,t)=>{let n=e.y,a=t.top;return parseFloat(a)+(n.max-n.min)},right:(e,t)=>{let n=e.x,a=t.left;return parseFloat(a)+(n.max-n.min)},x:Mc(4,13),y:Mc(5,14)};Lc.translateX=Lc.x,Lc.translateY=Lc.y;const Bc=new Set;let qc=!1,Uc=!1;function Vc(){if(Uc){const e=Array.from(Bc).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return Fc.forEach(n=>{const a=e.getValue(n);void 0!==a&&(t.push([n,a.get()]),a.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(t=>{let n=Le(t,2),a=n[0],r=n[1];var i;null===(i=e.getValue(a))||void 0===i||i.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}Uc=!1,qc=!1,Bc.forEach(e=>e.complete()),Bc.clear()}function Hc(){Bc.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Uc=!0)})}class Wc{constructor(e,t,n,a,r){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=a,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bc.add(this),qc||(qc=!0,dl.read(Hc),dl.resolveKeyframes(Vc))):(this.readKeyframes(),this.complete())}readKeyframes(){const e=this.unresolvedKeyframes,t=this.name,n=this.element,a=this.motionValue;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){const r=null===a||void 0===a?void 0:a.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const a=n.readValue(t,i);void 0!==a&&null!==a&&(e[0]=a)}void 0===e[0]&&(e[0]=i),a&&void 0===r&&a.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bc.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bc.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let Kc=el,Gc=el;const Zc=e=>/^-?(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+)$/.test(e),Yc=e=>t=>"string"===typeof t&&t.startsWith(e),Qc=Yc("--"),$c=Yc("var(--"),Xc=e=>!!$c(e)&&Jc.test(e.split("/*")[0].trim()),Jc=/var\(--(?:[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*|[\x2D0-9A-Z_a-z\u017F\u212A]+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*,(?:[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*(?:(?![\t-\r \(\)\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uD800-\uDFFF\uFEFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\((?:(?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])|\((?:(?![\(\)\uD800-\uDFFF])[^]|[\uD800-\uDBFF][\uDC00-\uDFFF])*\))*\))+[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*)\)$/i,ed=/^var\(--(?:([\x2D0-9A-Z_a-z]+)|([\x2D0-9A-Z_a-z]+), ?([ #%\(\),-\.0-9A-Za-z]+))\)/;function td(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Gc(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));const a=function(e){const t=ed.exec(e);if(!t)return[,];const n=Le(t,4),a=n[1],r=n[2],i=n[3];return["--".concat(null!==a&&void 0!==a?a:r),i]}(e),r=Le(a,2),i=r[0],s=r[1];if(!i)return;const o=window.getComputedStyle(t).getPropertyValue(i);if(o){const e=o.trim();return Zc(e)?parseFloat(e):e}return Xc(s)?td(s,t,n+1):s}const nd=e=>t=>t.test(e),ad=[Gl,oc,sc,ic,cc,lc,{test:e=>"auto"===e,parse:e=>e}],rd=e=>ad.find(nd(e));class id extends Wc{constructor(e,t,n,a,r){super(e,t,n,a,r,!0)}readKeyframes(){const e=this.unresolvedKeyframes,t=this.element,n=this.name;if(!t||!t.current)return;super.readKeyframes();for(let l=0;l<e.length;l++){let n=e[l];
2if("string"===typeof n&&(n=n.trim(),Xc(n))){const a=td(n,t.current);void 0!==a&&(e[l]=a),l===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!al.has(n)||2!==e.length)return;const a=Le(e,2),r=a[0],i=a[1],s=rd(r),o=rd(i);if(s!==o)if(Oc(s)&&Oc(o))for(let l=0;l<e.length;l++){const t=e[l];"string"===typeof t&&(e[l]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const e=this.unresolvedKeyframes,t=this.name,n=[];for(let a=0;a<e.length;a++)Wl(e[a])&&n.push(a);n.length&&function(e,t,n){let a,r=0;for(;r<e.length&&!a;){const t=e[r];"string"===typeof t&&!Rc.has(t)&&xc(t).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=Tc(n,a)}(e,n,t)}measureInitialState(){const e=this.element,t=this.unresolvedKeyframes,n=this.name;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Lc[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const a=t[t.length-1];void 0!==a&&e.getValue(n,a).jump(a,!1)}measureEndState(){var e;const t=this.element,n=this.name,a=this.unresolvedKeyframes;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=a.length-1,s=a[i];a[i]=Lc[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
2h(e=>{let n=Le(e,2),a=n[0],r=n[1];t.getValue(a).set(r)}),this.resolveNoneKeyframes()}}const sd=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!wc.test(e)&&"0"!==e||e.startsWith("url(")));function od(e,t,n,a){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],s=sd(r,t),o=sd(i,t);return Kc(s===o,"You are trying to animate ".concat(t,' from "').concat(r,'" to "').concat(i,'". ').concat(r," is not an animatable value - to enable this animation set ").concat(r," to a value animatable to ").concat(i," via the `style` property.")),!(!s||!o)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Eo(n))&&a)}const ld=e=>null!==e;function cd(e,t,n){let a=t.repeat,r=t.repeatType,i=void 0===r?"loop":r;const s=e.filter(ld),o=a&&"loop"!==i&&a%2===1?0:s.length-1;return o&&void 0!==n?n:s[o]}const dd=["autoplay","delay","type","repeat","repeatDelay","repeatType"];class ud{constructor(e){let t=e.autoplay,n=void 0===t||t,a=e.delay,r=void 0===a?0:a,i=e.type,s=void 0===i?"keyframes":i,o=e.repeat,l=void 0===o?0:o,c=e.repeatDelay,u=void 0===c?0:c,m=e.repeatType,p=void 0===m?"loop":m,h=Be(e,dd);this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=gl.now(),this.options=d({autoplay:n,delay:r,type:s,repeat:l,repeatDelay:u,repeatType:p},h),this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Hc(),Vc()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=gl.now(),this.hasAttemptedResolve=!0;const n=this.options,a=n.name,r=n.type,i=n.velocity,s=n.delay,o=n.onComplete,l=n.onUpdate;if(!n.isGenerator&&!od(e,a,r,i)){if(Tl||!s)return null===l||void 0===l||l(cd(e,this.options,t)),null===o||void 0===o||o(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved=d({keyframes:e,finalKeyframe:t},c),this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}const md=(e,t,n)=>e+(t-e)*n;function pd(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hd(e,t){return n=>n>0?t:e}const fd=(e,t,n)=>{const a=e*e,r=n*(t*t-a)+a;return r<0?0:Math.sqrt(r)},gd=[ac,nc,uc];function xd(e){const t=(n=e,gd.find(e=>e.test(n)));var n;if(Kc(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead.")),!Boolean(t))return!1;let a=t.parse(e);return t===uc&&(a=function(e){let t=e.hue,n=e.saturation,a=e.lightness,r=e.alpha;t/=360,n/=100,a/=100;let i=0,s=0,o=0;if(n){const e=a<.5?a*(1+n):a+n-a*n,r=2*a-e;i=pd(r,e,t+1/3),s=pd(r,e,t),o=pd(r,e,t-1/3)}else i=s=o=a;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(a)),a}const vd=(e,t)=>{const n=xd(e),a=xd(t);if(!n||!a)return hd(e,t);const r=d({},n);return e=>(r.red=fd(n.red,a.red,e),r.green=fd(n.green,a.green,e),r.blue=fd(n.blue,a.blue,e),r.alpha=md(n.alpha,a.alpha,e),nc.transform(r))},bd=(e,t)=>n=>t(e(n)),yd=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(bd)},wd=new Set(["none","hidden"]);
2function jd(e,t){return n=>md(e,t,n)}function kd(e){return"number"===typeof e?jd:"string"===typeof e?Xc(e)?hd:mc.test(e)?vd:_d:Array.isArray(e)?Nd:"object"===typeof e?mc.test(e)?vd:Sd:hd}function Nd(e,t){const n=[...e],a=n.length,r=e.map((e,n)=>kd(e)(e,t[n]));return e=>{for(let t=0;t<a;t++)n[t]=r[t](e);return n}}function Sd(e,t){const n=d(d({},e),t),a={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(a[r]=kd(e[r])(e[r],t[r]));return e=>{for(const t in a)n[t]=a[t](e);return n}}const _d=(e,t)=>{const n=wc.createTransformer(t),a=xc(e),r=xc(t);return a.indexes.var.length===r.indexes.var.length&&a.indexes.color.length===r.indexes.color.length&&a.indexes.number.length>=r.indexes.number.length?wd.has(e)&&!r.values.length||wd.has(t)&&!a.values.length?function(e,t){return wd.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):yd(Nd(function(e,t){var n;const a=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][r[s]],l=null!==(n=e.values[o])&&void 0!==n?n:0;a[i]=l,r[s]++}return a}(a,r),r.values),n):(Kc(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),hd(e,t))};function zd(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return md(e,t,n);return kd(e)(e,t)}function Ed(e,t,n){const a=Math.max(t-5,0);return yl(n-e(a),t-a)}const Cd=100,Pd=10,Ad=1,Td=0,Rd=800,Od=.3,Dd=.3,Md={granular:.01,default:2},Id={granular:.005,default:.5},Fd=.01,Ld=10,Bd=.05,qd=1,Ud=.001;function Vd(e){let t,n,a=e.duration,r=void 0===a?Rd:a,i=e.bounce,s=void 0===i?Od:i,o=e.velocity,l=void 0===o?Td:o,c=e.mass,d=void 0===c?Ad:c;Kc(r<=Xo(Ld),"Spring duration must be 10 seconds or less");let u=1-s;u=Kl(Bd,qd,u),r=Kl(Fd,Ld,Jo(r)),u<1?(t=e=>{const t=e*u,n=t*r,a=t-l,i=Wd(e,u),s=Math.exp(-n);return Ud-a/i*s},n=e=>{const n=e*u*r,a=n*l+l,i=Math.pow(u,2)*Math.pow(e,2)*r,s=Math.exp(-n),o=Wd(Math.pow(e,2),u);return(-t(e)+Ud>0?-1:1)*((a-i)*s)/o}):(t=e=>Math.exp(-e*r)*((e-l)*r+1)-.001,n=e=>Math.exp(-e*r)*(r*r*(l-e)));const m=function(e,t,n){let a=n;for(let r=1;r<Hd;r++)a-=e(a)/t(a);return a}(t,n,5/r);if(r=Xo(r),isNaN(m))return{stiffness:Cd,damping:Pd,duration:r};{const e=Math.pow(m,2)*d;return{stiffness:e,damping:2*u*Math.sqrt(d*e),duration:r}}}const Hd=12;function Wd(e,t){return e*Math.sqrt(1-t*t)}const Kd=["duration","bounce"],Gd=["stiffness","damping","mass"];function Zd(e,t){return t.some(t=>void 0!==e[t])}function Yd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dd;const t="object"!==typeof e?{visualDuration:e,keyframes:[0,1],bounce:arguments.length>1&&void 0!==arguments[1]?arguments[1]:Od}:e;let n=t.restSpeed,a=t.restDelta;const r=t.keyframes[0],i=t.keyframes[t.keyframes.length-1],s={done:!1,value:r},o=function(e){let t=d({velocity:Td,stiffness:Cd,damping:Pd,mass:Ad,isResolvedFromDuration:!1},e);if(!Zd(e,Gd)&&Zd(e,Kd))if(e.visualDuration){const n=e.visualDuration,a=2*Math.PI/(1.2*n),r=a*a,i=2*Kl(.05,1,1-(e.bounce||0))*Math.sqrt(r);t=d(d({},t),{},{mass:Ad,stiffness:r,damping:i})}else{const n=Vd(e);t=d(d(d({},t),n),{},{mass:Ad}),t.isResolvedFromDuration=!0}return t}(d(d({},t),{},{velocity:-Jo(t.velocity||0)})),l=o.stiffness,c=o.damping,u=o.mass,m=o.duration,p=o.velocity,h=o.isResolvedFromDuration,f=p||0,g=c/(2*Math.sqrt(l*u)),x=i-r,v=Jo(Math.sqrt(l/u)),b=Math.abs(x)<5;let y;if(n||(n=b?Md.granular:Md.default),a||(a=b?Id.granular:Id.default),g<1){const e=Wd(v,g);y=t=>{const n=Math.exp(-g*v*t);return i-n*((f+g*v*x)/e*Math.sin(e*t)+x*Math.cos(e*t))}}else if(1===g)y=e=>i-Math.exp(-v*e)*(x+(f+v*x)*e);else{const e=v*Math.sqrt(g*g-1);y=t=>{const n=Math.exp(-g*v*t),a=Math.min(e*t,300);return i-n*((f+g*v*x)*Math.sinh(a)+e*x*Math.cosh(a))/e}}const w={calculatedDuration:h&&m||null,next:e=>{const t=y(e);if(h)s.done=e>=m;else{let r=0;g<1&&(r=0===e?Xo(f):Ed(y,e,t));const o=Math.abs(r)<=n,l=Math.abs(i-t)<=a;s.done=o&&l}return s.value=s.done?i:t,s},toString:()=>{const e=Math.min(zo(w),_o),t=Do(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function Qd(e){let t=e.keyframes,n=e.velocity,a=void 0===n?0:n,r=e.power,i=void 0===r?.8:r,s=e.timeConstant,o=void 0===s?325:s,l=e.bounceDamping,c=void 0===l?10:l,d=e.bounceStiffness,u=void 0===d?500:d,m=e.modifyTarget,p=e.min,h=e.max,f=e.restDelta,g=void 0===f?.5:f,x=e.restSpeed;const v=t[0],b={done:!1,value:v},y=e=>void 0===p?h:void 0===h||Math.abs(p-e)<Math.abs(h-e)?p:h;let w=i*a;const j=v+w,k=void 0===m?j:m(j);k!==j&&(w=k-v);const N=e=>-w*Math.exp(-e/o),S=e=>k+N(e),_=e=>{const t=N(e),n=S(e);b.done=Math.abs(t)<=g,b.value=b.done?k:n};let z,E;const C=e=>{var t;(t=b.value,void 0!==p&&t<p||void 0!==h&&t>h)&&(z=e,E=Yd({keyframes:[b.value,y(b.value)],velocity:Ed(S,e,b.value),damping:c,stiffness:u,restDelta:g,restSpeed:x}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return E||void 0!==z||(t=!0,_(e),C(e)),void 0!==z&&e>=z?E.next(e-z):(!t&&_(e),b)}}}const $d=Ol(.42,0,1,1),Xd=Ol(0,0,.58,1),Jd=Ol(.42,0,.58,1),eu={linear:el,easeIn:$d,easeInOut:Jd,easeOut:Xd,circIn:ql,circInOut:Vl,circOut:Ul,backIn:Fl,backInOut:Ll,backOut:Il,anticipate:Bl},tu=e=>{if(Po(e)){Gc(4===e.length,"Cubic bezier arrays must contain four numerical values.");const t=Le(e,4);return Ol(t[0],t[1],t[2],t[3])}return"string"===typeof e?(Gc(void 0!==eu[e],"Invalid easing type '".concat(e,"'")),eu[e]):e};function nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.clamp,r=void 0===a||a,i=n.ease,s=n.mixer;const o=e.length;if(Gc(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=function(e,t,n){const a=[],r=n||zd,i=e.length-1;for(let s=0;s<i;
2s++){let n=r(e[s],e[s+1]);if(t){const e=Array.isArray(t)?t[s]||el:t;n=yd(e,n)}a.push(n)}return a}(t,i,s),d=c.length,u=n=>{if(l&&n<e[0])return t[0];let a=0;if(d>1)for(;a<e.length-2&&!(n<e[a+1]);a++);const r=Oo(e[a],e[a+1],n);return c[a](r)};return r?t=>u(Kl(e[0],e[o-1],t)):u}function au(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let a=1;a<=t;a++){const r=Oo(0,t,a);e.push(md(n,1,r))}}(t,e.length-1),t}function ru(e){let t=e.duration,n=void 0===t?300:t,a=e.keyframes,r=e.times,i=e.ease,s=void 0===i?"easeInOut":i;const o=(e=>Array.isArray(e)&&"number"!==typeof e[0])(s)?s.map(tu):tu(s),l={done:!1,value:a[0]},c=function(e,t){return e.map(e=>e*t)}(r&&r.length===a.length?r:au(a),n),d=nu(c,a,{ease:Array.isArray(o)?o:(u=a,m=o,u.map(()=>m||Jd).splice(0,u.length-1))});var u,m;return{calculatedDuration:n,next:e=>(l.value=d(e),l.done=e>=n,l)}}const iu=e=>{const t=t=>{let n=t.timestamp;return e(n)};return{start:()=>dl.update(t,!0),stop:()=>ul(t),now:()=>ml.isProcessing?ml.timestamp:gl.now()}},su={decay:Qd,inertia:Qd,tween:ru,keyframes:ru,spring:Yd},ou=e=>e/100;class lu extends ud{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const e=this.options.onStop;e&&e()};const t=this.options,n=t.name,a=t.motionValue,r=t.element,i=t.keyframes,s=(null===r||void 0===r?void 0:r.KeyframeResolver)||Wc;this.resolver=new s(i,(e,t)=>this.onKeyframesResolved(e,t),n,a,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const t=this.options,n=t.type,a=void 0===n?"keyframes":n,r=t.repeat,i=void 0===r?0:r,s=t.repeatDelay,o=void 0===s?0:s,l=t.repeatType,c=t.velocity,u=void 0===c?0:c,m=Eo(a)?a:su[a]||ru;let p,h;m!==ru&&"number"!==typeof e[0]&&(p=yd(ou,zd(e[0],e[1])),e=[0,100]);const f=m(d(d({},this.options),{},{keyframes:e}));"mirror"===l&&(h=m(d(d({},this.options),{},{keyframes:[...e].reverse(),velocity:-u}))),null===f.calculatedDuration&&(f.calculatedDuration=zo(f));const g=f.calculatedDuration,x=g+o;return{generator:f,mirroredGenerator:h,mapPercentToKeyframes:p,calculatedDuration:g,resolvedDuration:x,totalDuration:x*(i+1)-o}}onPostResolved(){const e=this.options.autoplay,t=void 0===e||e;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.resolved;if(!n){const e=this.options.keyframes;return{done:!0,value:e[e.length-1]}}const a=n.finalKeyframe,r=n.generator,i=n.mirroredGenerator,s=n.mapPercentToKeyframes,o=n.keyframes,l=n.calculatedDuration,c=n.totalDuration,d=n.resolvedDuration;if(null===this.startTime)return r.next(0);const u=this.options,m=u.delay,p=u.repeat,h=u.repeatType,f=u.repeatDelay,g=u.onUpdate;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const x=this.currentTime-m*(this.speed>=0?1:-1),v=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let b=this.currentTime,y=r;if(p){const e=Math.min(this.currentTime,c)/d;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===h?(n=1-n,f&&(n-=f/d)):"mirror"===h&&(y=i)),b=Kl(0,1,n)*d}const w=v?{done:!1,value:o[0]}:y.next(b);s&&(w.value=s(w.value));let j=w.done;v||null===l||(j=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const k=null===this.holdTime&&("finished"===this.state||"running"===this.state&&j);return k&&void 0!==a&&(w.value=cd(o,this.options,a)),g&&g(w.value),k&&this.finish(),w}get duration(){const e=this.resolved;return e?Jo(e.calculatedDuration):0}get time(){return Jo(this.currentTime)}set time(e){e=Xo(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Jo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const e=this.options,t=e.driver,n=void 0===t?iu:t,a=e.onPlay,r=e.startTime;this.driver||(this.driver=n(e=>this.tick(e))),a&&a();const i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!==r&&void 0!==r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
2ise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const e=this.options.onComplete;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const cu=new Set(["opacity","clipPath","filter","transform"]);const du=wo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),uu=["onComplete","onUpdate","motionValue","element"],mu=["motionValue","onUpdate","onComplete","element"];const pu={anticipate:Bl,backInOut:Ll,circInOut:Vl};class hu extends ud{constructor(e){super(e);const t=this.options,n=t.name,a=t.motionValue,r=t.element,i=t.keyframes;this.resolver=new id(i,(e,t)=>this.onKeyframesResolved(e,t),n,a,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let a=this.options,r=a.duration,i=void 0===r?300:r,s=a.times,o=a.ease,l=a.type,c=a.motionValue,u=a.name,m=a.startTime;if(!(null===(n=c.owner)||void 0===n?void 0:n.current))return!1;if("string"===typeof o&&Ro()&&function(e){return e in pu}(o)&&(o=pu[o]),function(e){return Eo(e.type)||"spring"===e.type||!Mo(e.ease)}(this.options)){const t=this.options,n=(t.onComplete,t.onUpdate,t.motionValue,t.element,Be(t,uu)),a=function(e,t){const n=new lu(d(d({},t),{},{keyframes:e,repeat:0,delay:0,isGenerator:!0}));let a={done:!1,value:e[0]};const r=[];let i=0;for(;!a.done&&i<2e4;)a=n.sample(i),r.push(a.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(e,n);1===(e=a.keyframes).length&&(e[1]=e[0]),i=a.duration,s=a.times,o=a.ease,l="keyframes"}const p=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=a.delay,i=void 0===r?0:r,s=a.duration,o=void 0===s?300:s,l=a.repeat,c=void 0===l?0:l,d=a.repeatType,u=void 0===d?"loop":d,m=a.ease,p=void 0===m?"easeInOut":m,h=a.times;const f={[t]:n};h&&(f.offset=h);const g=Lo(p,o);return Array.isArray(g)&&(f.easing=g),e.animate(f,{delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:c+1,direction:"reverse"===u?"alternate":"normal"})}(c.owner.current,u,e,d(d({},this.options),{},{duration:i,times:s,ease:o}));return p.startTime=null!==m&&void 0!==m?m:this.calcStartTime(),this.pendingTimeline?(Co(p,this.pendingTimeline),this.pendingTimeline=void 0):p.onfinish=()=>{const n=this.options.onComplete;c.set(cd(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:p,duration:i,times:s,type:l,ease:o,keyframes:e}}get duration(){const e=this.resolved;if(!e)return 0;const t=e.duration;return Jo(t)}get time(){const e=this.resolved;if(!e)return 0;const t=e.animation;return Jo(t.currentTime||0)}set time(e){const t=this.resolved;if(!t)return;t.animation.currentTime=Xo(e)}get speed(){const e=this.resolved;if(!e)return 1;return e.animation.playbackRate}set speed(e){const t=this.resolved;if(!t)return;t.animation.playbackRate=e}get state(){const e=this.resolved;if(!e)return"idle";return e.animation.playState}get startTime(){const e=this.resolved;if(!e)return null;return e.animation.startTime}attachTimeline(e){if(this._resolved){const t=this.resolved;if(!t)return el;Co(t.animation,e)}else this.pendingTimeline=e;return el}play(){if(this.isStopped)return;const e=this.resolved;if(!e)return;const t=e.animation;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const e=this.resolved;if(!e)return;e.animation.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const e=this.resolved;if(!e)return;const t=e.animation,n=e.keyframes,a=e.duration,r=e.type,i=e.ease,s=e.times;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const e=this.options,t=e.motionValue,o=(e.onUpdate,e.onComplete,e.element,Be(e,mu)),l=new lu(d(d({},o),{},{keyframes:n,duration:a,type:r,ease:i,times:s,isGenerator:!0})),c=Xo(this.time);t.setWithVelocity(l.sample(c-10).value,l.sample(c).value,10)}const o=this.options.onStop;o&&o(),this.cancel()}complete(){const e=this.resolved;e&&e.animation.finish()}cancel(){const e=this.resolved;e&&e.animation.cancel()}
2static supports(e){const t=e.motionValue,n=e.name,a=e.repeatDelay,r=e.repeatType,i=e.damping,s=e.type;return du()&&n&&cu.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!a&&"mirror"!==r&&0!==i&&"inertia"!==s}}const fu={type:"spring",stiffness:500,damping:25,restSpeed:10},gu={type:"keyframes",duration:.8},xu={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},vu=(e,t)=>{let n=t.keyframes;return n.length>2?gu:nl.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:fu:xu},bu=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];const yu=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return s=>{const o=So(a,e)||{},l=o.delay||a.delay||0;let c=a.elapsed,u=void 0===c?0:c;u-=Xo(l);let m=d(d({keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity()},o),{},{delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:r});(function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from,e.elapsed;let t=Be(e,bu);return!!Object.keys(t).length})(o)||(m=d(d({},m),vu(e,m))),m.duration&&(m.duration=Xo(m.duration)),m.repeatDelay&&(m.repeatDelay=Xo(m.repeatDelay)),void 0!==m.from&&(m.keyframes[0]=m.from);let p=!1;if((!1===m.type||0===m.duration&&!m.repeatDelay)&&(m.duration=0,0===m.delay&&(p=!0)),(Tl||il)&&(p=!0,m.duration=0,m.delay=0),p&&!i&&void 0!==t.get()){const e=cd(m.keyframes,o);if(void 0!==e)return dl.update(()=>{m.onUpdate(e),m.onComplete()}),new No([])}return!i&&hu.supports(m)?new hu(m):new lu(m)}},wu=["transition","transitionEnd"];function ju(e,t){let n=e.protectedKeys,a=e.needsAnimating;const r=n.hasOwnProperty(t)&&!0!==a[t];return a[t]=!1,r}function ku(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.delay,r=void 0===a?0:a,i=n.transitionOverride,s=n.type;var o;let l=t.transition,c=void 0===l?e.getDefaultTransition():l,u=t.transitionEnd,m=Be(t,wu);i&&(c=i);const p=[],h=s&&e.animationState&&e.animationState.getState()[s];for(const f in m){const t=e.getValue(f,null!==(o=e.latestValues[f])&&void 0!==o?o:null),n=m[f];if(void 0===n||h&&ju(h,f))continue;const a=d({delay:r},So(c||{},f));let i=!1;if(window.MotionHandoffAnimation){const t=Al(e);if(t){const e=window.MotionHandoffAnimation(t,f,dl);null!==e&&(a.startTime=e,i=!0)}}El(e,f),t.start(yu(f,t,n,e.shouldReduceMotion&&al.has(f)?{type:!1}:a,e,i));const s=t.animation;s&&p.push(s)}return u&&Promise.all(p).then(()=>{dl.update(()=>{u&&_l(e,u)})}),p}function Nu(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a;const r=vo(e,t,"exit"===n.type?null===(a=e.presenceContext)||void 0===a?void 0:a.custom:void 0);let i=(r||{}).transition,s=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(s=n.transitionOverride);const o=r?()=>Promise.all(ku(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const r=s,i=r.delayChildren,o=void 0===i?0:i,l=r.staggerChildren,c=r.staggerDirection;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=arguments.length>5?arguments[5]:void 0;const s=[],o=(e.variantChildren.size-1)*a,l=1===r?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*a}:function(){return o-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*a};return Array.from(e.variantChildren).sort(Su).forEach((e,a)=>{e.notify("AnimationStart",t),s.push(Nu(e,t,d(d({},i),{},{delay:n+l(a)})).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(s)}(e,t,o+a,l,c,n)}:()=>Promise.resolve(),c=s.when;if(c){const e=Le("beforeChildren"===c?[o,l]:[l,o],2),t=e[0],n=e[1];return t().then(()=>n())}return Promise.all([o(),l(n.delay)])}function Su(e,t){return e.sortNodePosition(t)}function _u(e,t){let n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map(t=>Nu(e,t,a));n=Promise.all(r)}else if("string"===typeof t)n=Nu(e,t,a);else{const r="function"===typeof t?vo(e,t,a.custom):t;n=Promise.all(ku(e,r,a))}return n.then(()=>
2{e.notify("AnimationComplete",t)})}const zu=yo.length;function Eu(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Eu(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<zu;n++){const a=yo[n],r=e.props[a];(fo(r)||!1===r)&&(t[a]=r)}return t}const Cu=["transition","transitionEnd"],Pu=[...bo].reverse(),Au=bo.length;function Tu(e){let t=function(e){return t=>Promise.all(t.map(t=>{let n=t.animation,a=t.options;return _u(e,n,a)}))}(e),n=Du(),a=!0;const r=t=>(n,a)=>{var r;const i=vo(e,a,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(i){i.transition;const e=i.transitionEnd,t=Be(i,Cu);n=d(d(d({},n),t),e)}return n};function i(i){const s=e.props,o=Eu(e.parent)||{},l=[],c=new Set;let u={},m=1/0;for(let t=0;t<Au;t++){const p=Pu[t],h=n[p],f=void 0!==s[p]?s[p]:o[p],g=fo(f),x=p===i?h.isActive:null;!1===x&&(m=t);let v=f===o[p]&&f!==s[p]&&g;if(v&&a&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys=d({},u),!h.isActive&&null===x||!f&&!h.prevProp||mo(f)||"boolean"===typeof f)continue;const b=Ru(h.prevProp,f);let y=b||p===i&&h.isActive&&!v&&g||t>m&&g,w=!1;const j=Array.isArray(f)?f:[f];let k=j.reduce(r(p),{});!1===x&&(k={});const N=h.prevResolvedValues,S=void 0===N?{}:N,_=d(d({},S),k),z=t=>{y=!0,c.has(t)&&(w=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in _){const t=k[e],n=S[e];if(u.hasOwnProperty(e))continue;let a=!1;a=po(t)&&po(n)?!ho(t,n):t!==n,a?void 0!==t&&null!==t?z(e):c.add(e):void 0!==t&&c.has(e)?z(e):h.protectedKeys[e]=!0}h.prevProp=f,h.prevResolvedValues=k,h.isActive&&(u=d(d({},u),k)),a&&e.blockInitialAnimation&&(y=!1);y&&(!(v&&b)||w)&&l.push(...j.map(e=>({animation:e,options:{type:p}})))}if(c.size){const t={};
2c.forEach(n=>{const a=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!==a&&void 0!==a?a:null}),l.push({animation:t})}let p=Boolean(l.length);return!a||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),a=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,a){var r;if(n[t].isActive===a)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,a)}),n[t].isActive=a;const s=i(t);for(const e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Du(),a=!0}}}function Ru(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!ho(t,e)}function Ou(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Du(){return{animate:Ou(!0),whileInView:Ou(),whileHover:Ou(),whileTap:Ou(),whileDrag:Ou(),whileFocus:Ou(),exit:Ou()}}class Mu{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Iu=0;const Fu={animation:{Feature:class extends Mu{constructor(e){super(e),e.animationState||(e.animationState=Tu(e))}updateAnimationControlsSubscription(){const e=this.node.getProps().animate;mo(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Mu{constructor(){super(...arguments),this.id=Iu++}update(){if(!this.node.presenceContext)return;const e=this.node.presenceContext,t=e.isPresent,n=e.onExitComplete,a=(this.node.prevPresenceContext||{}).isPresent;if(!this.node.animationState||t===a)return;const r=this.node.animationState.setActive("exit",!t);n&&!t&&r.then(()=>n(this.id))}mount(){const e=(this.node.presenceContext||{}).register;e&&(this.unmount=e(this.id))}unmount(){}}}};function Lu(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,a),()=>e.removeEventListener(t,n)}function Bu(e){return{point:{x:e.pageX,y:e.pageY}}}function qu(e,t,n,a){return Lu(e,t,(e=>t=>Wo(t)&&e(t,Bu(t)))(n),a)}const Uu=(e,t)=>Math.abs(e-t);class Vu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.transformPagePoint,r=n.contextWindow,i=n.dragSnapToOrigin,s=void 0!==i&&i;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ku(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Uu(e.x,t.x),a=Uu(e.y,t.y);return Math.sqrt(n**2+a**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const a=e.point,r=ml.timestamp;this.history.push(d(d({},a),{},{timestamp:r}));const i=this.handlers,s=i.onStart,o=i.onMove;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Hu(t,this.transformPagePoint),dl.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const n=this.handlers,a=n.onEnd,r=n.onSessionEnd,i=n.resumeAnimation;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=Ku("pointercancel"===e.type?this.lastMoveEventInfo:Hu(t,this.transformPagePoint),this.history);this.startEvent&&a&&a(e,s),r&&r(e,s)},!Wo(e))return;this.dragSnapToOrigin=s,this.handlers=t,this.transformPagePoint=a,this.contextWindow=r||window;const o=Hu(Bu(e),this.transformPagePoint),l=o.point,c=ml.timestamp;this.history=[d(d({},l),{},{timestamp:c})];const u=t.onSessionStart;u&&u(e,Ku(o,this.history)),this.removeListeners=yd(qu(this.contextWindow,"pointermove",this.handlePointerMove),qu(this.contextWindow,"pointerup",this.handlePointerUp),qu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),ul(this.updatePoint)}}function Hu(e,t){return t?{point:t(e.point)}:e}function Wu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ku(e,t){let n=e.point;
2return{point:n,delta:Wu(n,Zu(t)),offset:Wu(n,Gu(t)),velocity:Yu(t,.1)}}function Gu(e){return e[0]}function Zu(e){return e[e.length-1]}function Yu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,a=null;const r=Zu(e);for(;n>=0&&(a=e[n],!(r.timestamp-a.timestamp>Xo(t)));)n--;if(!a)return{x:0,y:0};const i=Jo(r.timestamp-a.timestamp);if(0===i)return{x:0,y:0};const s={x:(r.x-a.x)/i,y:(r.y-a.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Qu(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function $u(e){return e.max-e.min}function Xu(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=a,e.originPoint=md(t.min,t.max,e.origin),e.scale=$u(n)/$u(t),e.translate=md(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Ju(e,t,n,a){Xu(e.x,t.x,n.x,a?a.originX:void 0),Xu(e.y,t.y,n.y,a?a.originY:void 0)}function em(e,t,n){e.min=n.min+t.min,e.max=e.min+$u(t)}function tm(e,t,n){e.min=t.min-n.min,e.max=e.min+$u(t)}function nm(e,t,n){tm(e.x,t.x,n.x),tm(e.y,t.y,n.y)}function am(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function rm(e,t){let n=t.min-e.min,a=t.max-e.max;if(t.max-t.min<e.max-e.min){var r=[a,n];n=r[0],a=r[1]}return{min:n,max:a}}const im=.35;function sm(e,t,n){return{min:om(e,t),max:om(e,n)}}function om(e,t){return"number"===typeof e?e:e[t]||0}const lm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function cm(e){return[e("x"),e("y")]}function dm(e){let t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function um(e){return void 0===e||1===e}function mm(e){let t=e.scale,n=e.scaleX,a=e.scaleY;return!um(t)||!um(n)||!um(a)}function pm(e){return mm(e)||hm(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function hm(e){return fm(e.x)||fm(e.y)}function fm(e){return e&&"0%"!==e}function gm(e,t,n){return n+t*(e-n)}function xm(e,t,n,a,r){return void 0!==r&&(e=gm(e,r,a)),gm(e,n,a)+t}function vm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;e.min=xm(e.min,t,n,a,r),e.max=xm(e.max,t,n,a,r)}function bm(e,t){let n=t.x,a=t.y;vm(e.x,n.translate,n.scale,n.originPoint),vm(e.y,a.translate,a.scale,a.originPoint)}const ym=.999999999999,wm=1.0000000000001;function jm(e,t){e.min=e.min+t,e.max=e.max+t}function km(e,t,n,a){let r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;vm(e,t,n,md(e.min,e.max,r),a)}function Nm(e,t){km(e.x,t.x,t.scaleX,t.scale,t.originX),km(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sm(e,t){return dm(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),a=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:a.y,right:a.x}}(e.getBoundingClientRect(),t))}const _m=e=>{let t=e.current;return t?t.ownerDocument.defaultView:null},zm=new WeakMap;class Em{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).snapToCursor,n=void 0!==t&&t;const a=this.visualElement.presenceContext;if(a&&!1===a.isPresent)return;const r=this.getProps().dragSnapToOrigin;this.panSession=new Vu(e,{onSessionStart:e=>{this.getProps().dragSnapToOrigin?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Bu(e).point)},onStart:(e,t)=>{const n=this.getProps(),a=n.drag,r=n.dragPropagation,i=n.onDragStart;if(a&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=a)||"y"===s?Bo[s]?null:(Bo[s]=!0,()=>{Bo[s]=!1}):Bo.x||Bo.y?null:(Bo.x=Bo.y=!0,()=>{Bo.x=Bo.y=!1}),!this.openDragLock))return;var s;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),cm(e=>{let t=this.getAxisMotionValue(e).get()||0;if(sc.test(t)){const n=this.visualElement.projection;if(n&&n.layout){const a=n.layout.layoutBox[e];if(a){t=$u(a)*(parseFloat(t)/100)}}}this.originPoint[e]=t}),i&&dl.postRender(()=>i(e,t)),El(this.visualElement,"transform");const o=this.visualElement.animationState;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
2{const n=this.getProps(),a=n.dragPropagation,r=n.dragDirectionLock,i=n.onDirectionLock,s=n.onDrag;if(!a&&!this.openDragLock)return;const o=t.offset;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(o),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>cm(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:_m(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const a=t.velocity;this.startAnimation(a);const r=this.getProps().onDragEnd;r&&dl.postRender(()=>r(e,t))}cancel(){this.isDragging=!1;const e=this.visualElement,t=e.projection,n=e.animationState;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;!this.getProps().dragPropagation&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,t,n){const a=this.getProps().drag;if(!n||!Cm(e,a,this.currentDirection))return;const r=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,t,n){let a=t.min,r=t.max;return void 0!==a&&e<a?e=n?md(a,e,n.min):Math.max(e,a):void 0!==r&&e>r&&(e=n?md(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){var e;const t=this.getProps(),n=t.dragConstraints,a=t.dragElastic,r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;n&&Qu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!r)&&function(e,t){let n=t.top,a=t.left,r=t.bottom,i=t.right;return{x:am(e.x,a,i),y:am(e.y,n,r)}}(r.layoutBox,n),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:im;return!1===e?e=0:!0===e&&(e=im),{x:sm(e,"left","right"),y:sm(e,"top","bottom")}}(a),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&cm(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Qu(t))return!1;const a=t.current;Gc(null!==a,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const r=this.visualElement.projection;if(!r||!r.layout)return!1;const i=function(e,t,n){const a=Sm(e,n),r=t.scroll;return r&&(jm(a.x,r.offset.x),jm(a.y,r.offset.y)),a}(a,r.root,this.visualElement.getTransformPagePoint());let s=function(e,t){return{x:rm(e.x,t.x),y:rm(e.y,t.y)}}(r.layout.layoutBox,i);if(n){const e=n(function(e){let t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=dm(e))}return s}startAnimation(e){const t=this.getProps(),n=t.drag,a=t.dragMomentum,r=t.dragElastic,i=t.dragTransition,s=t.dragSnapToOrigin,o=t.onDragTransitionEnd,l=this.constraints||{},c=cm(t=>{if(!Cm(t,n,this.currentDirection))return;let o=l&&l[t]||{};s&&(o={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,m=d(d({type:"inertia",velocity:a?e[t]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10},i),o);return this.startAxisValueAnimation(t,m)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return El(this.visualElement,e),n.start(yu(e,n,0,t,this.visualElement,!1))}stopAnimation(){cm(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){cm(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag".concat(e.toUpperCase()),n=this.visualElement.getProps(),a=n[t];return a||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){cm(t=>{if(!Cm(t,this.getProps().drag,this.currentDirection))return;const n=this.visualElement.projection,a=this.getAxisMotionValue(t);if(n&&n.layout){const r=n.layout.layoutBox[t],i=r.min,s=r.max;a.set(e[t]-md(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const e=this.getProps(),t=e.drag,n=e.dragConstraints,a=this.visualElement.projection;if(!Qu(n)||!a||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};cm(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const a=$u(e),r=$u(t);return r>a?n=Oo(t.min,t.max-a,e.min):a>r&&(n=Oo(e.min,e.max-r,t.min)),Kl(0,1,n)}({min:n,max:n},this.constraints[e])}});const i=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=i?i({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),cm(e=>{if(!Cm(e,t,null))return;const n=this.getAxisMotionValue(e),a=this.constraints[e],i=a.min,s=a.max;n.set(md(i,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;zm.set(this.visualElement,this);const e=qu(this.visualElement.current,"pointerdown",e=>{const t=this.getProps(),n=t.drag,a=t.dragListener;n&&(void 0===a||a)&&this.start(e)}),t=()=>{const e=this.getProps().dragConstraints;Qu(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},n=this.visualElement.projection,a=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),dl.read(t);const r=Lu(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",e=>{let t=e.delta,n=e.hasLayoutChanged;this.isDragging&&n&&(cm(e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{r(),e(),a(),i&&i()}}getProps(){const e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,a=e.dragDirectionLock,r=void 0!==a&&a,i=e.dragPropagation,s=void 0!==i&&i,o=e.dragConstraints,l=void 0!==o&&o,c=e.dragElastic,u=void 0===c?im:c,m=e.dragMomentum,p=void 0===m||m;return d(d({},e),{},{drag:n,dragDirectionLock:r,dragPropagation:s,dragConstraints:l,dragElastic:u,dragMomentum:p})}}function Cm(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const Pm=e=>(t,n)=>{e&&dl.postRender(()=>e(t,n))};const Am=(0,a.createContext)({}),Tm={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Rm(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Om={correct:(e,t)=>
2{if(!t.target)return e;if("string"===typeof e){if(!oc.test(e))return e;e=parseFloat(e)}const n=Rm(e,t.target.x),a=Rm(e,t.target.y);return"".concat(n,"% ").concat(a,"%")}},Dm={correct:(e,t)=>{let n=t.treeScale,a=t.projectionDelta;const r=e,i=wc.parse(e);if(i.length>5)return r;const s=wc.createTransformer(e),o="number"!==typeof i[0]?1:0,l=a.x.scale*n.x,c=a.y.scale*n.y;i[0+o]/=l,i[1+o]/=c;const d=md(l,c,.5);return"number"===typeof i[2+o]&&(i[2+o]/=d),"number"===typeof i[3+o]&&(i[3+o]/=d),s(i)}},Mm={};const Im=ll(queueMicrotask,!1),Fm=Im.schedule;Im.cancel;class Lm extends a.Component{componentDidMount(){const e=this.props,t=e.visualElement,n=e.layoutGroup,a=e.switchLayoutGroup,r=e.layoutId,i=t.projection;var s;s=qm,Object.assign(Mm,s),i&&(n.group&&n.group.add(i),a&&a.register&&r&&a.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(d(d({},i.options),{},{onExitComplete:()=>this.safeToRemove()}))),Tm.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const t=this.props,n=t.layoutDependency,a=t.visualElement,r=t.drag,i=t.isPresent,s=a.projection;return s?(s.isPresent=i,r||e.layoutDependency!==n||void 0===n?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||dl.postRender(()=>{const e=s.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const e=this.props.visualElement.projection;e&&(e.root.didUpdate(),Fm.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const e=this.props,t=e.visualElement,n=e.layoutGroup,a=e.switchLayoutGroup,r=t.projection;r&&(r.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(r),a&&a.deregister&&a.deregister(r))}safeToRemove(){const e=this.props.safeToRemove;e&&e()}render(){return null}}function Bm(e){const t=Le(ro(),2),n=t[0],r=t[1],i=(0,a.useContext)(Qs);return(0,Te.jsx)(Lm,d(d({},e),{},{layoutGroup:i,switchLayoutGroup:(0,a.useContext)(Am),isPresent:n,safeToRemove:r}))}const qm={borderRadius:d(d({},Om),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Om,borderTopRightRadius:Om,borderBottomLeftRadius:Om,borderBottomRightRadius:Om,boxShadow:Dm};const Um=(e,t)=>e.depth-t.depth;class Vm{constructor(){this.children=[],this.isDirty=!1}add(e){xl(this.children,e),this.isDirty=!0}remove(e){vl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Um),this.isDirty=!1,this.children.forEach(e)}}function Hm(e,t){const n=gl.now(),a=r=>{const i=r.timestamp-n;i>=t&&(ul(a),e(i-t))};return dl.read(a,!0),()=>ul(a)}function Wm(e){const t=zl(e)?e.get():e;return n=t,Boolean(n&&"object"===typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Km=["TopLeft","TopRight","BottomLeft","BottomRight"],Gm=Km.length,Zm=e=>"string"===typeof e?parseFloat(e):e,Ym=e=>"number"===typeof e||oc.test(e);function Qm(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const $m=Jm(0,.5,Ul),Xm=Jm(.5,.95,el);function Jm(e,t,n){return a=>a<e?0:a>t?1:n(Oo(e,t,a))}function ep(e,t){e.min=t.min,e.max=t.max}function tp(e,t){ep(e.x,t.x),ep(e.y,t.y)}function np(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ap(e,t,n,a,r){return e=gm(e-=t,1/n,a),void 0!==r&&(e=gm(e,1/r,a)),e}function rp(e,t,n,a,r){let i=Le(n,3),s=i[0],o=i[1],l=i[2];!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,r=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;sc.test(t)&&(t=parseFloat(t),t=md(s.min,s.max,t/100)-s.min);if("number"!==typeof t)return;let o=md(i.min,i.max,a);e===i&&(o-=t),e.min=ap(e.min,t,n,o,r),e.max=ap(e.max,t,n,o,r)}(e,t[s],t[o],t[l],t.scale,a,r)}const ip=["x","scaleX","originX"],sp=["y","scaleY","originY"];function op(e,t,n,a){rp(e.x,t,ip,n?n.x:void 0,a?a.x:void 0),rp(e.y,t,sp,n?n.y:void 0,a?a.y:void 0)}function lp(e){return 0===e.translate&&1===e.scale}function cp(e){return lp(e.x)&&lp(e.y)}function dp(e,t){return e.min===t.min&&e.max===t.max}function up(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function mp(e,t){return up(e.x,t.x)&&up(e.y,t.y)}function pp(e){return $u(e.x)/$u(e.y)}function hp(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class fp{constructor(){this.members=[]}add(e){xl(this.members,e),e.scheduleRender()}remove(e){if(vl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let a=t;a>=0;a--){const e=this.members[a];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);!1===e.options.crossfade&&n.hide()}}
2exitAnimationComplete(){this.members.forEach(e=>{const t=e.options,n=e.resumingFrom;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const gp={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},xp="undefined"!==typeof window&&void 0!==window.MotionDebug,vp=["","X","Y","Z"],bp={visibility:"hidden"};let yp=0;function wp(e,t,n,a){const r=t.latestValues;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),a&&(a[e]=0))}function jp(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const t=e.options.visualElement;if(!t)return;const n=Al(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const t=e.options,a=t.layout,r=t.layoutId;window.MotionCancelOptimisedAnimation(n,"transform",dl,!(a||r))}const a=e.parent;a&&!a.hasCheckedOptimisedAppear&&jp(a)}function kp(e){let t=e.attachResizeListener,n=e.defaultParent,a=e.measureScroll,r=e.checkIsScrollRoot,i=e.resetTransform;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=yp++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,xp&&(gp.totalNodes=gp.resolvedTargetDeltas=gp.recalculatedProjection=0),this.nodes.forEach(_p),this.nodes.forEach(Rp),this.nodes.forEach(Op),this.nodes.forEach(zp),xp&&window.MotionDebug.record(gp)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vm)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new bl),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];t&&t.notify(...a)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var a;this.isSVG=(a=e)instanceof SVGElement&&"svg"!==a.tagName,this.instance=e;const r=this.options,i=r.layoutId,s=r.layout,o=r.visualElement;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||i)&&(this.isLayoutDirty=!0),t){let n;const a=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Hm(a,250),Tm.hasAnimatedSinceResize&&(Tm.hasAnimatedSinceResize=!1,this.nodes.forEach(Tp))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",e=>{let t=e.delta,n=e.hasLayoutChanged,a=e.hasRelativeTargetChanged,r=e.layout;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||Bp,s=o.getProps(),l=s.onLayoutAnimationStart,c=s.onLayoutAnimationComplete,u=!this.targetLayout||!mp(this.targetLayout,r)||a,m=!n&&a;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||m||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,m);const e=d(d({},So(i,"layout")),{},{onPlay:l,onComplete:c});(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||Tp(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,ul(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
2h(Dp),this.animationId++)}getTransformTemplate(){const e=this.options.visualElement;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&jp(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const t=this.options,n=t.layoutId,a=t.layout;if(void 0===n&&!a)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Cp);this.isUpdating||this.nodes.forEach(Pp),this.isUpdating=!1,this.nodes.forEach(Ap),this.nodes.forEach(Np),this.nodes.forEach(Sp),this.clearAllSnapshots();const e=gl.now();ml.delta=Kl(0,1e3/60,e-ml.timestamp),ml.timestamp=e,ml.isProcessing=!0,pl.update.process(ml),pl.preRender.process(ml),pl.render.process(ml),ml.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ep),this.sharedNodes.forEach(Mp)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dl.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dl.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const t=this.options.visualElement;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!cp(this.projectionDelta),n=this.getTransformTemplate(),a=n?n(this.latestValues,""):void 0,r=a!==this.prevTransformTemplateValue;e&&(t||pm(this.latestValues)||r)&&(i(this.instance,a),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var a;return e&&(n=this.removeTransform(n)),Vp((a=n).x),Vp(a.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const t=this.options.visualElement;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Wp))){const e=this.root.scroll;e&&(jm(n.x,e.offset.x),jm(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(tp(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let a=0;a<this.path.length;a++){const t=this.path[a],r=t.scroll,i=t.options;t!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&tp(n,e),jm(n.x,r.offset.x),jm(n.y,r.offset.y))}return n}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};tp(n,e);for(let a=0;a<this.path.length;a++){const e=this.path[a];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&Nm(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),pm(e.latestValues)&&Nm(n,e.latestValues)}return pm(this.latestValues)&&Nm(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};tp(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;
2if(!pm(e.latestValues))continue;mm(e.latestValues)&&e.updateSnapshot();const a=lm();tp(a,e.measurePageBox()),op(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,a)}return pm(this.latestValues)&&op(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options=d(d(d({},this.options),e),{},{crossfade:void 0===e.crossfade||e.crossfade})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ml.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const a=Boolean(this.resumingFrom)||this!==n;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const r=this.options,i=r.layout,s=r.layoutId;if(this.layout&&(i||s)){if(this.resolvedRelativeTargetAt=ml.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},nm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),tp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,l,c;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,l=this.relativeTarget,c=this.relativeParent.target,em(o.x,l.x,c.x),em(o.y,l.y,c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):tp(this.target,this.layout.layoutBox),bm(this.target,this.targetDelta)):tp(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},nm(this.relativeTargetOrigin,this.target,e.target),tp(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}xp&&gp.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!mm(this.parent.latestValues)&&!hm(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let a=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(a=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(a=!1),this.resolvedRelativeTargetAt===ml.timestamp&&(a=!1),a)return;const r=this.options,i=r.layout,s=r.layoutId;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!s)return;tp(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,l=this.treeScale.y;!function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=n.length;if(!r)return;let i,s;t.x=t.y=1;for(let o=0;o<r;o++){i=n[o],s=i.projectionDelta;const r=i.options.visualElement;r&&r.props.style&&"contents"===r.props.style.display||(a&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Nm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,bm(e,s)),a&&pm(i.latestValues)&&Nm(e,i.latestValues))}t.x<wm&&t.x>ym&&(t.x=1),t.y<wm&&t.y>ym&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const c=t.target;c?(this.projectionDelta&&this.prevProjectionDelta?(np(this.prevProjectionDelta.x,this.projectionDelta.x),np(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ju(this.projectionDelta,this.layoutCorrected,c,this.latestValues),this.treeScale.x===o&&this.treeScale.y===l&&hp(this.projectionDelta.x,this.prevProjectionDelta.x)&&hp(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",c)),xp&&gp.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,a=n?n.latestValues:{},r=d({},this.latestValues),i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s={x:{min:0,max:0},y:{min:0,max:0}},o=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(o&&!c&&!0===this.options.crossfade&&!this.path.some(Lp));let m;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Ip(i.x,e.x,n),Ip(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(nm(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,a){Fp(e.x,t.x,n.x,a),Fp(e.y,t.y,n.y,a)}(this.relativeTarget,this.relativeTargetOrigin,s,n),m&&function(e,t){return dp(e.x,t.x)&&dp(e.y,t.y)}(this.relativeTarget,m)&&(this.isProjectionDirty=!1),m||(m={x:{min:0,max:0},y:{min:0,max:0}}),tp(m,this.relativeTarget)),o&&(this.animationValues=r,function(e,t,n,a,r,i){r?(e.opacity=md(0,void 0!==n.opacity?n.opacity:1,$m(a)),e.opacityExit=md(void 0!==t.opacity?t.opacity:1,0,Xm(a))):i&&(e.opacity=md(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,a));for(let s=0;s<Gm;s++){const r="border".concat(Km[s],"Radius");let i=Qm(t,r),o=Qm(n,r);void 0===i&&void 0===o||(i||(i=0),o||(o=0),0===i||0===o||Ym(i)===Ym(o)?(e[r]=Math.max(md(Zm(i),Zm(o),a),0),(sc.test(o)||sc.test(i))&&(e[r]+="%")):e[r]=o)}(t.rotate||n.rotate)&&(e.rotate=md(t.rotate||0,n.rotate||0,a))}(r,a,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(ul(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dl.update(()=>{Tm.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const a=zl(e)?e:kl(e);return a.start(yu("",a,t,n)),a.animation}(0,1e3,d(d({},e),{},{onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let t=e.targetWithTransforms,n=e.target,a=e.layout,r=e.latestValues;if(t&&n&&a){if(this!==e&&this.layout&&a&&Hp(this.options.animationType,this.layout.layoutBox,a.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=$u(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const a=$u(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+a}tp(t,n),Nm(t,r),Ju(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new fp);this.sharedNodes.get(e).add(t);
2const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}promote(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsReset,n=e.transition,a=e.preserveFollowOpacity;const r=this.getStack();r&&r.promote(this,a),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const e=this.options.visualElement;if(!e)return;let t=!1;const n=e.latestValues;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const a={};n.z&&wp("z",e,a,this.animationValues);for(let r=0;r<vp.length;r++)wp("rotate".concat(vp[r]),e,a,this.animationValues),wp("skew".concat(vp[r]),e,a,this.animationValues);e.render();for(const r in a)e.setStaticValue(r,a[r]),this.animationValues&&(this.animationValues[r]=a[r]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return bp;const a={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,a.opacity="",a.pointerEvents=Wm(null===e||void 0===e?void 0:e.pointerEvents)||"",a.transform=r?r(this.latestValues,""):"none",a;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Wm(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!pm(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),a.transform=function(e,t,n){let a="";const r=e.x.translate/t.x,i=e.y.translate/t.y,s=(null===n||void 0===n?void 0:n.z)||0;if((r||i||s)&&(a="translate3d(".concat(r,"px, ").concat(i,"px, ").concat(s,"px) ")),1===t.x&&1===t.y||(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){const e=n.transformPerspective,t=n.rotate,r=n.rotateX,i=n.rotateY,s=n.skewX,o=n.skewY;e&&(a="perspective(".concat(e,"px) ").concat(a)),t&&(a+="rotate(".concat(t,"deg) ")),r&&(a+="rotateX(".concat(r,"deg) ")),i&&(a+="rotateY(".concat(i,"deg) ")),s&&(a+="skewX(".concat(s,"deg) ")),o&&(a+="skewY(".concat(o,"deg) "))}const o=e.x.scale*t.x,l=e.y.scale*t.y;return 1===o&&1===l||(a+="scale(".concat(o,", ").concat(l,")")),a||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),r&&(a.transform=r(s,a.transform));const o=this.projectionDelta,l=o.x,c=o.y;a.transformOrigin="".concat(100*l.origin,"% ").concat(100*c.origin,"% 0"),i.animationValues?a.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:a.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const d in Mm){if(void 0===s[d])continue;const e=Mm[d],t=e.correct,n=e.applyTo,r="none"===a.transform?s[d]:t(s[d],i);if(n){const e=n.length;for(let t=0;t<e;t++)a[n[t]]=r}else a[d]=r}return this.options.layoutId&&(a.pointerEvents=i===this?Wm(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),a}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(Cp),this.root.sharedNodes.clear()}}}function Np(e){e.updateLayout()}function Sp(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const t=e.layout,a=t.layoutBox,r=t.measuredBox,i=e.options.animationType,s=n.source!==e.layout.source;"size"===i?cm(e=>{const t=s?n.measuredBox[e]:n.layoutBox[e],r=$u(t);t.min=a[e].min,t.max=t.min+r}):Hp(i,n.layoutBox,a)&&cm(t=>{const r=s?n.measuredBox[t]:n.layoutBox[t],i=$u(a[t]);r.max=r.min+i,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+i)});const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ju(o,a,n.layoutBox);const l={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Ju(l,e.applyTransform(r,!0),n.measuredBox):Ju(l,a,n.layoutBox);const c=!cp(o);let d=!1;if(!e.resumeFrom){const t=e.getClosestProjectingParent();if(t&&!t.resumeFrom){const r=t.snapshot,i=t.layout;if(r&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};nm(s,n.layoutBox,r.layoutBox);const o={x:{min:0,max:0},y:{min:0,max:0}};nm(o,a,i.layoutBox),mp(s,o)||(d=!0),t.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=s,e.relativeParent=t)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const t=e.options.onExitComplete;t&&t()}e.options.transition=void 0}function _p(e){xp&&gp.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function zp(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ep(e){e.clearSnapshot()}function Cp(e){e.clearMeasurements()}function Pp(e){e.isLayoutDirty=!1}function Ap(e){const t=e.options.visualElement;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Tp(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Rp(e){e.resolveTargetDelta()}function Op(e){e.calcProjection()}
2function Dp(e){e.resetSkewAndRotation()}function Mp(e){e.removeLeadSnapshot()}function Ip(e,t,n){e.translate=md(t.translate,0,n),e.scale=md(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Fp(e,t,n,a){e.min=md(t.min,n.min,a),e.max=md(t.max,n.max,a)}function Lp(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Bp={duration:.45,ease:[.4,0,.1,1]},qp=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Up=qp("applewebkit/")&&!qp("chrome/")?Math.round:el;function Vp(e){e.min=Up(e.min),e.max=Up(e.max)}function Hp(e,t,n){return"position"===e||"preserve-aspect"===e&&!function(e,t,n){return Math.abs(e-t)<=n}(pp(t),pp(n),.2)}function Wp(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Kp=kp({attachResizeListener:(e,t)=>Lu(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Gp={current:void 0},Zp=kp({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Gp.current){const e=new Kp({});e.mount(window),e.setOptions({layoutScroll:!0}),Gp.current=e}return Gp.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Yp={pan:{Feature:class extends Mu{constructor(){super(...arguments),this.removePointerDownListener=el}onPointerDown(e){this.session=new Vu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:_m(this.node)})}createPanHandlers(){const e=this.node.getProps(),t=e.onPanSessionStart,n=e.onPanStart,a=e.onPan,r=e.onPanEnd;return{onSessionStart:Pm(t),onStart:Pm(n),onMove:a,onEnd:(e,t)=>{delete this.session,r&&dl.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=qu(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Mu{constructor(e){super(e),this.removeGroupControls=el,this.removeListeners=el,this.controls=new Em(e)}mount(){const e=this.node.getProps().dragControls;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||el}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Zp,MeasureLayout:Bm}};function Qp(e,t,n){const a=e.props;e.animationState&&a.whileHover&&e.animationState.setActive("whileHover","Start"===n);const r=a["onHover"+n];r&&dl.postRender(()=>r(t,Bu(t)))}function $p(e,t,n){const a=e.props;e.animationState&&a.whileTap&&e.animationState.setActive("whileTap","Start"===n);const r=a["onTap"+("End"===n?"":n)];r&&dl.postRender(()=>r(t,Bu(t)))}const Xp=["root"],Jp=new WeakMap,eh=new WeakMap,th=e=>{const t=Jp.get(e.target);t&&t(e)},nh=e=>{e.forEach(th)};function ah(e,t,n){const a=function(e){let t=e.root,n=Be(e,Xp);const a=t||document;eh.has(a)||eh.set(a,{});const r=eh.get(a),i=JSON.stringify(n);return r[i]||(r[i]=new IntersectionObserver(nh,d({root:t},n))),r[i]}(t);return Jp.set(e,n),a.observe(e),()=>{Jp.delete(e),a.unobserve(e)}}const rh={some:0,all:1};const ih={inView:{Feature:class extends Mu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const e=this.node.getProps().viewport,t=void 0===e?{}:e,n=t.root,a=t.margin,r=t.amount,i=void 0===r?"some":r,s=t.once,o={root:n?n.current:void 0,rootMargin:a,threshold:"number"===typeof i?i:rh[i]};return ah(this.node.current,o,e=>{const t=e.isIntersecting;if(this.isInView===t)return;if(this.isInView=t,s&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const n=this.node.getProps(),a=n.onViewportEnter,r=n.onViewportLeave,i=t?a:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const e=this.node,t=e.props,n=e.prevProps,a=["amount","margin","root"].some(function(e){let t=e.viewport,n=void 0===t?{}:t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a.viewport,i=void 0===r?{}:r;return e=>n[e]!==i[e]}(t,n));a&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Mu{mount(){const e=this.node.current;e&&(this.unmount=$o(e,e=>($p(this.node,e,"Start"),(e,t)=>{let n=t.success;return $p(this.node,e,n?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Mu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(rse){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=yd(Lu(this.node.current,"focus",()=>this.onFocus()),Lu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Mu{mount(){const e=this.node.current;e&&(this.unmount=function(e,t){const n=Le(Uo(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),3),a=n[0],r=n[1],i=n[2],s=Vo(e=>{const n=e.target,a=t(e);if("function"!==typeof a||!n)return;const i=Vo(e=>{a(e),n.removeEventListener("pointerleave",i)});n.addEventListener("pointerleave",i,r)});
2return a.forEach(e=>{e.addEventListener("pointerenter",s,r)}),i}(e,e=>(Qp(this.node,e,"Start"),e=>Qp(this.node,e,"End"))))}unmount(){}}}},sh={layout:{ProjectionNode:Zp,MeasureLayout:Bm}},oh=(0,a.createContext)({strict:!1}),lh=(0,a.createContext)({});function ch(e){return mo(e.animate)||yo.some(t=>fo(e[t]))}function dh(e){return Boolean(ch(e)||e.variants)}function uh(e){const t=function(e,t){if(ch(e)){const t=e.initial,n=e.animate;return{initial:!1===t||fo(t)?t:void 0,animate:fo(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(lh)),n=t.initial,r=t.animate;return(0,a.useMemo)(()=>({initial:n,animate:r}),[mh(n),mh(r)])}function mh(e){return Array.isArray(e)?e.join(" "):e}const ph={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},hh={};for(const n in ph)hh[n]={isEnabled:e=>ph[n].some(t=>!!e[t])};const fh=Symbol.for("motionComponentSymbol");function gh(e,t,n){return(0,a.useCallback)(a=>{a&&e.onMount&&e.onMount(a),t&&(a?t.mount(a):t.unmount()),n&&("function"===typeof n?n(a):Qu(n)&&(n.current=a))},[t])}function xh(e,t,n,r,i){var s,o;const l=(0,a.useContext)(lh).visualElement,c=(0,a.useContext)(oh),d=(0,a.useContext)(Xs),u=(0,a.useContext)(Js).reducedMotion,m=(0,a.useRef)(null);r=r||c.renderer,!m.current&&r&&(m.current=r(e,{visualState:t,parent:l,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:u}));const p=m.current,h=(0,a.useContext)(Am);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.type||function(e,t,n,a){const r=t.layoutId,i=t.layout,s=t.drag,o=t.dragConstraints,l=t.layoutScroll,c=t.layoutRoot;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:vh(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(s)||o&&Qu(o),visualElement:e,animationType:"string"===typeof i?i:"both",initialPromotionConfig:a,layoutScroll:l,layoutRoot:c})}(m.current,n,i,h);const f=(0,a.useRef)(!1);(0,a.useInsertionEffect)(()=>{p&&f.current&&p.update(n,d)});const g=n[Pl],x=(0,a.useRef)(Boolean(g)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,g))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,g)));return lo(()=>{p&&(f.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Fm.render(p.render),x.current&&p.animationState&&p.animationState.animateChanges())}),(0,a.useEffect)(()=>{p&&(!x.current&&p.animationState&&p.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}),x.current=!1))}),p}function vh(e){if(e)return!1!==e.options.allowProjection?e.projection:vh(e.parent)}function bh(e){let t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,i=e.useVisualState,s=e.Component;var o,l;function c(e,t){let o;const l=d(d(d({},(0,a.useContext)(Js)),e),{},{layoutId:yh(e)}),c=l.isStatic,u=uh(e),m=i(e,c);if(!c&&oo){!function(){(0,a.useContext)(oh).strict;0}();const e=function(e){const t=hh.drag,n=hh.layout;if(!t&&!n)return{};const a=d(d({},t),n);return{MeasureLayout:(null===t||void 0===t?void 0:t.isEnabled(e))||(null===n||void 0===n?void 0:n.isEnabled(e))?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}(l);o=e.MeasureLayout,u.visualElement=xh(s,m,l,n,e.ProjectionNode)}return(0,Te.jsxs)(lh.Provider,{value:u,children:[o&&u.visualElement?(0,Te.jsx)(o,d({visualElement:u.visualElement},l)):null,r(s,e,gh(m,u.visualElement,t),m,c,u.visualElement)]})}t&&function(e){for(const t in e)hh[t]=d(d({},hh[t]),e[t])}(t),c.displayName="motion.".concat("string"===typeof s?s:"create(".concat(null!==(l=null!==(o=s.displayName)&&void 0!==o?o:s.name)&&void 0!==l?l:"",")"));const u=(0,a.forwardRef)(c);return u[fh]=s,u}function yh(e){let t=e.layoutId;const n=(0,a.useContext)(Qs).id;return n&&void 0!==t?n+"-"+t:t}const wh=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function jh(e){return"string"===typeof e&&!e.includes("-")&&!!(wh.indexOf(e)>-1||/[A-Z]/.test(e))}const kh=["transitionEnd","transition"];const Nh=e=>(t,n)=>{const r=(0,a.useContext)(lh),i=(0,a.useContext)(Xs),s=()=>function(e,t,n,a){let r=e.scrapeMotionValuesFromProps,i=e.createRenderState,s=e.onUpdate;const o={latestValues:Sh(t,n,a,r),renderState:i()};return s&&(o.onMount=e=>s(d({props:t,current:e},o)),o.onUpdate=e=>s(e)),o}(e,t,r,i);return n?s():$s(s)};function Sh(e,t,n,a){const r={},i=a(e,{});for(const m in i)r[m]=Wm(i[m]);let s=e.initial,o=e.animate;const l=ch(e),c=dh(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===o&&(o=t.animate));let d=!!n&&!1===n.initial;d=d||!1===s;const u=d?o:s;if(u&&"boolean"!==typeof u&&!mo(u)){const t=Array.isArray(u)?u:[u];for(let n=0;n<t.length;n++){const a=xo(e,t[n]);if(a){const e=a.transitionEnd,t=(a.transition,Be(a,kh));for(const n in t){let e=t[n];if(Array.isArray(e)){e=e[d?e.length-1:0]}null!==e&&(r[n]=e)}for(const n in e)r[n]=e[n]}}}return r}const _h=(e,t)=>t&&"number"===typeof e?t.transform(e):e,zh={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Eh=tl.length;
2function Ch(e,t,n){const a=e.style,r=e.vars,i=e.transformOrigin;let s=!1,o=!1;for(const l in t){const e=t[l];if(nl.has(l))s=!0;else if(Qc(l))r[l]=e;else{const t=_h(e,Cc[l]);l.startsWith("origin")?(o=!0,i[l]=t):a[l]=t}}if(t.transform||(s||n?a.transform=function(e,t,n){let a="",r=!0;for(let i=0;i<Eh;i++){const s=tl[i],o=e[s];if(void 0===o)continue;let l=!0;if(l="number"===typeof o?o===(s.startsWith("scale")?1:0):0===parseFloat(o),!l||n){const e=_h(o,Cc[s]);l||(r=!1,a+="".concat(zh[s]||s,"(").concat(e,") ")),n&&(t[s]=e)}}return a=a.trim(),n?a=n(t,r?"":a):r&&(a="none"),a}(t,e.transform,n):a.transform&&(a.transform="none")),o){const e=i.originX,t=void 0===e?"50%":e,n=i.originY,r=void 0===n?"50%":n,s=i.originZ,o=void 0===s?0:s;a.transformOrigin="".concat(t," ").concat(r," ").concat(o)}}function Ph(e,t,n){return"string"===typeof e?e:oc.transform(t+n*e)}const Ah={offset:"stroke-dashoffset",array:"stroke-dasharray"},Th={offset:"strokeDashoffset",array:"strokeDasharray"};const Rh=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function Oh(e,t,n,a){let r=t.attrX,i=t.attrY,s=t.attrScale,o=t.originX,l=t.originY,c=t.pathLength,d=t.pathSpacing,u=void 0===d?1:d,m=t.pathOffset,p=void 0===m?0:m;if(Ch(e,Be(t,Rh),a),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const h=e.attrs,f=e.style,g=e.dimensions;h.transform&&(g&&(f.transform=h.transform),delete h.transform),g&&(void 0!==o||void 0!==l||f.transform)&&(f.transformOrigin=function(e,t,n){const a=Ph(t,e.x,e.width),r=Ph(n,e.y,e.height);return"".concat(a," ").concat(r)}(g,void 0!==o?o:.5,void 0!==l?l:.5)),void 0!==r&&(h.x=r),void 0!==i&&(h.y=i),void 0!==s&&(h.scale=s),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const i=r?Ah:Th;e[i.offset]=oc.transform(-a);const s=oc.transform(t),o=oc.transform(n);e[i.array]="".concat(s," ").concat(o)}(h,c,u,p,!1)}const Dh=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Mh=()=>d(d({},{style:{},transform:{},transformOrigin:{},vars:{}}),{},{attrs:{}}),Ih=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Fh(e,t,n,a){let r=t.style,i=t.vars;Object.assign(e.style,r,a&&a.getProjectionStyles(n));for(const s in i)e.style.setProperty(s,i[s])}const Lh=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Bh(e,t,n,a){Fh(e,t,void 0,a);for(const r in t.attrs)e.setAttribute(Lh.has(r)?r:Cl(r),t.attrs[r])}function qh(e,t){let n=t.layout,a=t.layoutId;return nl.has(e)||e.startsWith("origin")||(n||void 0!==a)&&(!!Mm[e]||"opacity"===e)}function Uh(e,t,n){var a;const r=e.style,i={};for(const s in r)(zl(r[s])||t.style&&zl(t.style[s])||qh(s,e)||void 0!==(null===(a=null===n||void 0===n?void 0:n.getValue(s))||void 0===a?void 0:a.liveStyle))&&(i[s]=r[s]);return i}function Vh(e,t,n){const a=Uh(e,t,n);for(const r in e)if(zl(e[r])||zl(t[r])){a[-1!==tl.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return a}const Hh=["x","y","width","height","cx","cy","r"],Wh={useVisualState:Nh({scrapeMotionValuesFromProps:Vh,createRenderState:Mh,onUpdate:e=>{let t=e.props,n=e.prevProps,a=e.current,r=e.renderState,i=e.latestValues;if(!a)return;let s=!!t.drag;if(!s)for(const l in i)if(nl.has(l)){s=!0;break}if(!s)return;let o=!n;if(n)for(let l=0;l<Hh.length;l++){const e=Hh[l];t[e]!==n[e]&&(o=!0)}o&&(dl.read(()=>function(e,t){try{t.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(rse){t.dimensions={x:0,y:0,width:0,height:0}}}(a,r)),dl.render(()=>{Oh(r,i,Ih(a.tagName),t.transformTemplate),Bh(a,r)}))}})},Kh={useVisualState:Nh({scrapeMotionValuesFromProps:Uh,createRenderState:Dh})};function Gh(e,t,n){for(const a in t)zl(t[a])||qh(a,n)||(e[a]=t[a])}function Zh(e,t){const n={};return Gh(n,e.style||{},e),Object.assign(n,function(e,t){let n=e.transformTemplate;return(0,a.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};
2return Ch(e,t,n),Object.assign({},e.vars,e.style)},[t])}(e,t)),n}function Yh(e,t){const n={},a=Zh(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n}const Qh=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function $h(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Qh.has(e)}let Xh=e=>!$h(e);try{(Jh=require("@emotion/is-prop-valid").default)&&(Xh=e=>e.startsWith("on")?!$h(e):Jh(e))}catch(ise){}var Jh;function ef(e,t,n,r){const i=(0,a.useMemo)(()=>{const n=Mh();return Oh(n,t,Ih(r),e.transformTemplate),d(d({},n.attrs),{},{style:d({},n.style)})},[t]);if(e.style){const t={};Gh(t,e.style,e),i.style=d(d({},t),i.style)}return i}function tf(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(t,n,r,i,s)=>{let o=i.latestValues;const l=(jh(t)?ef:Yh)(n,o,s,t),c=function(e,t,n){const a={};for(const r in e)"values"===r&&"object"===typeof e.values||(Xh(r)||!0===n&&$h(r)||!t&&!$h(r)||e.draggable&&r.startsWith("onDrag"))&&(a[r]=e[r]);return a}(n,"string"===typeof t,e),u=t!==a.Fragment?d(d(d({},c),l),{},{ref:r}):{},m=n.children,p=(0,a.useMemo)(()=>zl(m)?m.get():m,[m]);return(0,a.createElement)(t,d(d({},u),{},{children:p}))}}function nf(e,t){return function(n){let a=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1}).forwardMotionProps;return bh(d(d({},jh(n)?Wh:Kh),{},{preloadedFeatures:e,useRender:tf(a),createVisualElement:t,Component:n}))}}const af={current:null},rf={current:!1};const sf=[...ad,mc,wc],of=new WeakMap;const lf=["willChange"],cf=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class df{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let t=e.parent,n=e.props,a=e.presenceContext,r=e.reducedMotionConfig,i=e.blockInitialAnimation,s=e.visualState,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Wc,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=gl.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,dl.render(this.render,!1,!0))};const l=s.latestValues,c=s.renderState,u=s.onUpdate;this.onUpdate=u,this.latestValues=l,this.baseTarget=d({},l),this.initialValues=n.initial?d({},l):{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=a,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=Boolean(i),this.isControllingVariants=ch(n),this.isVariantNode=dh(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const m=this.scrapeMotionValuesFromProps(n,{},this),p=(m.willChange,Be(m,lf));for(const d in p){const e=p[d];void 0!==l[d]&&zl(e)&&e.set(l[d],!1)}}mount(e){this.current=e,of.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
2h((e,t)=>this.bindToMotionValue(t,e)),rf.current||function(){if(rf.current=!0,oo)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>af.current=e.matches;e.addListener(t),t()}else af.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||af.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){of.delete(this.current),this.projection&&this.projection.unmount(),ul(this.notifyUpdate),ul(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=nl.has(e),a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&dl.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),r=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in hh){const t=hh[e];if(!t)continue;const n=t.isEnabled,a=t.Feature;if(!this.features[e]&&a&&n(this.props)&&(this.features[e]=new a(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<cf.length;n++){const t=cf[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const a=e["on"+t];a&&(this.propEventSubscriptions[t]=this.on(t,a))}this.prevMotionValues=function(e,t,n){for(const a in t){const r=t[a],i=n[a];if(zl(r))e.addValue(a,r);else if(zl(i))e.addValue(a,kl(r,{owner:e}));else if(i!==r)if(e.hasValue(a)){const t=e.getValue(a);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(a);e.addValue(a,kl(void 0!==t?t:r,{owner:e}))}}for(const a in n)void 0===t[a]&&e.removeValue(a);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=kl(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let a=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var r;return void 0!==a&&null!==a&&("string"===typeof a&&(Zc(a)||Hl(a))?a=parseFloat(a):(r=a,!sf.find(nd(r))&&wc.test(t)&&(a=Tc(e,t))),this.setBaseTarget(e,zl(a)?a.get():a)),zl(a)?a.get():a}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const n=this.props.initial;let a;if("string"===typeof n||"object"===typeof n){const r=xo(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(a=r[e])}if(n&&void 0!==a)return a;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||zl(r)?void 0!==this.initialValues[e]&&void 0===a?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new bl),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];this.events[e].notify(...n)}}}class uf extends df{constructor(){super(...arguments),this.KeyframeResolver=id}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let n=t.vars,a=t.style;delete n[e],delete a[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const e=this.props.children;zl(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent="".concat(e))}))}}class mf extends uf{constructor(){super(...arguments),this.type="html",this.renderInstance=Fh}readValueFromInstance(e,t){if(nl.has(t)){const e=Ac(t);return e&&e.default||0}{const a=(n=e,window.getComputedStyle(n)),r=(Qc(t)?a.getPropertyValue(t):a[t])||0;return"string"===typeof r?r.trim():r}var n}measureInstanceViewportBox(e,t){return Sm(e,t.transformPagePoint)}build(e,t,n){Ch(e,t,n.transformTemplate)}
2scrapeMotionValuesFromProps(e,t,n){return Uh(e,t,n)}}class pf extends uf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=lm}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(nl.has(t)){const e=Ac(t);return e&&e.default||0}return t=Lh.has(t)?t:Cl(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Vh(e,t,n)}build(e,t,n){Oh(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,a){Bh(e,t,0,a)}mount(e){this.isSVGTag=Ih(e.tagName),super.mount(e)}}const hf=(e,t)=>jh(e)?new pf(t):new mf(t,{allowProjection:e!==a.Fragment}),ff=uo(nf(d(d(d(d({},Fu),ih),Yp),sh),hf)),gf=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xf=e=>{const t=(e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()))(e);return t.charAt(0).toUpperCase()+t.slice(1)},vf=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>Boolean(e)&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var bf={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const yf=["color","size","strokeWidth","absoluteStrokeWidth","className","children","iconNode"],wf=(0,a.forwardRef)((e,t)=>{let n=e.color,r=void 0===n?"currentColor":n,i=e.size,s=void 0===i?24:i,o=e.strokeWidth,l=void 0===o?2:o,c=e.absoluteStrokeWidth,u=e.className,m=void 0===u?"":u,p=e.children,h=e.iconNode,f=Be(e,yf);return(0,a.createElement)("svg",d(d(d({ref:t},bf),{},{width:s,height:s,stroke:r,strokeWidth:c?24*Number(l)/Number(s):l,className:vf("lucide",m)},!p&&!(e=>{for(const t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(f)&&{"aria-hidden":"true"}),f),[...h.map(e=>{let t=Le(e,2),n=t[0],r=t[1];return(0,a.createElement)(n,r)}),...Array.isArray(p)?p:[p]])}),jf=["className"],kf=(e,t)=>{const n=(0,a.forwardRef)((n,r)=>{let i=n.className,s=Be(n,jf);return(0,a.createElement)(wf,d({ref:r,iconNode:t,className:vf("lucide-".concat(gf(xf(e))),"lucide-".concat(e),i)},s))});return n.displayName=xf(e),n},Nf=kf("user",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),Sf=kf("building-2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]),_f=kf("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),zf=kf("credit-card",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]),Ef=kf("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),Cf=kf("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),Pf=kf("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Af=kf("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]),Tf=kf("life-buoy",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.93 4.93 4.24 4.24",key:"1ymg45"}],["path",{d:"m14.83 9.17 4.24-4.24",key:"1cb5xl"}],["path",{d:"m14.83 14.83 4.24 4.24",key:"q42g0n"}],["path",{d:"m9.17 14.83-4.24 4.24",key:"bqpfvv"}],["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}]]),Rf=kf("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Of=kf("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Df=kf("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Mf=kf("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]),If=kf("sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]),Ff=kf("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);function Lf(e,t){let n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkForDefaultPrevented,a=void 0===n||n;return function(n){if(null===e||void 0===e||e(n),!1===a||!n.defaultPrevented)return null===t||void 0===t?void 0:t(n)}}function Bf(e,t){if("function"===typeof e)return e(t);null!==e&&void 0!==e&&(e.current=t)}function qf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{let n=!1;const a=t.map(t=>{const a=Bf(t,e);return n||"function"!=typeof a||(n=!0),a});if(n)return()=>{for(let e=0;e<a.length;e++){const n=a[e];"function"==typeof n?n():Bf(t[e],null)}}}}function Uf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.useCallback(qf(...t),t)}const Vf=["children"],Hf=["scope","children"];function Wf(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[];const r=()=>{const t=n.map(e=>a.createContext(e));return function(n){const r=(null===n||void 0===n?void 0:n[e])||t;return a.useMemo(()=>
2({["__scope".concat(e)]:d(d({},n),{},{[e]:r})}),[n,r])}};return r.scopeName=e,[function(t,r){const i=a.createContext(r),s=n.length;n=[...n,r];const o=t=>{var n;const r=t.scope,o=t.children,l=Be(t,Hf),c=(null===r||void 0===r||null===(n=r[e])||void 0===n?void 0:n[s])||i,d=a.useMemo(()=>l,Object.values(l));return(0,Te.jsx)(c.Provider,{value:d,children:o})};return o.displayName=t+"Provider",[o,function(n,o){var l;const c=(null===o||void 0===o||null===(l=o[e])||void 0===l?void 0:l[s])||i,d=a.useContext(c);if(d)return d;if(void 0!==r)return r;throw new Error("`".concat(n,"` must be used within `").concat(t,"`"))}]},Kf(r,...t)]}function Kf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t[0];if(1===t.length)return r;const i=()=>{const e=t.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(t){const n=e.reduce((e,n)=>{let a=n.useScope,r=n.scopeName;const i=a(t)["__scope".concat(r)];return d(d({},e),i)},{});return a.useMemo(()=>({["__scope".concat(r.scopeName)]:n}),[n])}};return i.scopeName=r.scopeName,i}var Gf=null!==globalThis&&void 0!==globalThis&&globalThis.document?a.useLayoutEffect:()=>{},Zf=r[" useId ".trim().toString()]||(()=>{}),Yf=0;function Qf(e){const t=Le(a.useState(Zf()),2),n=t[0],r=t[1];return Gf(()=>{e||r(e=>null!==e&&void 0!==e?e:String(Yf++))},[e]),e||(n?"radix-".concat(n):"")}var $f=r[" useInsertionEffect ".trim().toString()]||Gf;function Xf(e){let t=e.prop,n=e.defaultProp,r=e.onChange,i=void 0===r?()=>{}:r,s=e.caller;const o=function(e){let t=e.defaultProp,n=e.onChange;const r=a.useState(t),i=Le(r,2),s=i[0],o=i[1],l=a.useRef(s),c=a.useRef(n);return $f(()=>{c.current=n},[n]),a.useEffect(()=>{var e;l.current!==s&&(null===(e=c.current)||void 0===e||e.call(c,s),l.current=s)},[s,l]),[s,o,c]}({defaultProp:n,onChange:i}),l=Le(o,3),c=l[0],d=l[1],u=l[2],m=void 0!==t,p=m?t:c;{const e=a.useRef(void 0!==t);a.useEffect(()=>{const t=e.current;if(t!==m){const e=t?"controlled":"uncontrolled",n=m?"controlled":"uncontrolled";console.warn("".concat(s," is changing from ").concat(e," to ").concat(n,". Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component."))}e.current=m},[m,s])}const h=a.useCallback(e=>{if(m){const a=function(e){return"function"===typeof e}(e)?e(t):e;var n;if(a!==t)null===(n=u.current)||void 0===n||n.call(u,a)}else d(e)},[m,t,d,u]);return[p,h]}Symbol("RADIX:SYNC_STATE");const Jf=["children"],eg=["children"];function tg(e){const t=ag(e),n=a.forwardRef((e,n)=>{const r=e.children,i=Be(e,Jf),s=a.Children.toArray(r),o=s.find(sg);if(o){const e=o.props.children,r=s.map(t=>t===o?a.Children.count(e)>1?a.Children.only(null):a.isValidElement(e)?e.props.children:null:t);return(0,Te.jsx)(t,d(d({},i),{},{ref:n,children:a.isValidElement(e)?a.cloneElement(e,void 0,r):null}))}return(0,Te.jsx)(t,d(d({},i),{},{ref:n,children:r}))});return n.displayName="".concat(e,".Slot"),n}var ng=tg("Slot");function ag(e){const t=a.forwardRef((e,t)=>{const n=e.children,r=Be(e,eg);if(a.isValidElement(n)){const e=function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(n),i=function(e,t){const n=d({},t);for(const a in t){const r=e[a],i=t[a];/^on[A-Z]/.test(a)?r&&i?n[a]=function(){i(...arguments),r(...arguments)}:r&&(n[a]=r):"style"===a?n[a]=d(d({},r),i):"className"===a&&(n[a]=[r,i].filter(Boolean).join(" "))}return d(d({},e),n)}(r,n.props);return n.type!==a.Fragment&&(i.ref=t?qf(t,e):e),a.cloneElement(n,i)}return a.Children.count(n)>1?a.Children.only(null):null});return t.displayName="".concat(e,".SlotClone"),t}var rg=Symbol("radix.slottable");function ig(e){const t=e=>{let t=e.children;return(0,Te.jsx)(Te.Fragment,{children:t})};return t.displayName="".concat(e,".Slottable"),t.__radixId=rg,t}function sg(e){return a.isValidElement(e)&&"function"===typeof e.type&&"__radixId"in e.type&&e.type.__radixId===rg}const og=["asChild"];var lg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
2{const n=tg("Primitive.".concat(t)),r=a.forwardRef((e,a)=>{const r=e.asChild,i=Be(e,og),s=r?n:t;return"undefined"!==typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Te.jsx)(s,d(d({},i),{},{ref:a}))});return r.displayName="Primitive.".concat(t),d(d({},e),{},{[t]:r})},{});function cg(e){const t=a.useRef(e);return a.useEffect(()=>{t.current=e}),a.useMemo(()=>function(){for(var e,n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call(t,...a)},[])}const dg=["disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss"];var ug,mg="dismissableLayer.update",pg="dismissableLayer.pointerDownOutside",hg="dismissableLayer.focusOutside",fg=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),gg=a.forwardRef((e,t)=>{var n;const r=e.disableOutsidePointerEvents,i=void 0!==r&&r,s=e.onEscapeKeyDown,o=e.onPointerDownOutside,l=e.onFocusOutside,c=e.onInteractOutside,u=e.onDismiss,m=Be(e,dg),p=a.useContext(fg),h=Le(a.useState(null),2),f=h[0],g=h[1],x=null!==(n=null===f||void 0===f?void 0:f.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,v=Le(a.useState({}),2)[1],b=Uf(t,e=>g(e)),y=Array.from(p.layers),w=Le([...p.layersWithOutsidePointerEventsDisabled].slice(-1),1)[0],j=y.indexOf(w),k=f?y.indexOf(f):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,S=k>=j,_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=cg(e),r=a.useRef(!1),i=a.useRef(()=>{});return a.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let a=function(){bg(pg,n,r,{discrete:!0})};const r={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...p.branches].some(e=>e.contains(t));S&&!n&&(null===o||void 0===o||o(e),null===c||void 0===c||c(e),e.defaultPrevented||null===u||void 0===u||u())},x),z=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=cg(e),r=a.useRef(!1);return a.useEffect(()=>{const e=e=>{if(e.target&&!r.current){bg(hg,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...p.branches].some(e=>e.contains(t))||(null===l||void 0===l||l(e),null===c||void 0===c||c(e),e.defaultPrevented||null===u||void 0===u||u())},x);return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===globalThis||void 0===globalThis?void 0:globalThis.document;const n=cg(e);a.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k===p.layers.size-1&&(null===s||void 0===s||s(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},x),a.useEffect(()=>{if(f)return i&&(0===p.layersWithOutsidePointerEventsDisabled.size&&(ug=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(f)),p.layers.add(f),vg(),()=>{i&&1===p.layersWithOutsidePointerEventsDisabled.size&&(x.body.style.pointerEvents=ug)}},[f,x,i,p]),a.useEffect(()=>()=>{f&&(p.layers.delete(f),p.layersWithOutsidePointerEventsDisabled.delete(f),vg())},[f,p]),a.useEffect(()=>{const e=()=>v({});return document.addEventListener(mg,e),()=>document.removeEventListener(mg,e)},[]),(0,Te.jsx)(lg.div,d(d({},m),{},{ref:b,style:d({pointerEvents:N?S?"auto":"none":void 0},e.style),onFocusCapture:Lf(e.onFocusCapture,z.onFocusCapture),onBlurCapture:Lf(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:Lf(e.onPointerDownCapture,_.onPointerDownCapture)}))});gg.displayName="DismissableLayer";var xg=a.forwardRef((e,t)=>
2{const n=a.useContext(fg),r=a.useRef(null),i=Uf(t,r);return a.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Te.jsx)(lg.div,d(d({},e),{},{ref:i}))});function vg(){const e=new CustomEvent(mg);document.dispatchEvent(e)}function bg(e,t,n,a){let r=a.discrete;const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?function(e,t){e&&Na.flushSync(()=>e.dispatchEvent(t))}(i,s):i.dispatchEvent(s)}xg.displayName="DismissableLayerBranch";const yg=["loop","trapped","onMountAutoFocus","onUnmountAutoFocus"];var wg="focusScope.autoFocusOnMount",jg="focusScope.autoFocusOnUnmount",kg={bubbles:!1,cancelable:!0},Ng=a.forwardRef((e,t)=>{const n=e.loop,r=void 0!==n&&n,i=e.trapped,s=void 0!==i&&i,o=e.onMountAutoFocus,l=e.onUnmountAutoFocus,c=Be(e,yg),u=Le(a.useState(null),2),m=u[0],p=u[1],h=cg(o),f=cg(l),g=a.useRef(null),x=Uf(t,e=>p(e)),v=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect(()=>{if(s){let e=function(e){if(v.paused||!m)return;const t=e.target;m.contains(t)?g.current=t:Eg(g.current,{select:!0})},t=function(e){if(v.paused||!m)return;const t=e.relatedTarget;null!==t&&(m.contains(t)||Eg(g.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Eg(m)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const a=new MutationObserver(n);return m&&a.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),a.disconnect()}}},[s,m,v.paused]),a.useEffect(()=>{if(m){Cg.add(v);const t=document.activeElement;if(!m.contains(t)){const n=new CustomEvent(wg,kg);m.addEventListener(wg,h),m.dispatchEvent(n),n.defaultPrevented||(!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.select,a=void 0!==n&&n;const r=document.activeElement;for(const i of e)if(Eg(i,{select:a}),document.activeElement!==r)return}((e=Sg(m),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&Eg(m))}return()=>{m.removeEventListener(wg,h),setTimeout(()=>{const e=new CustomEvent(jg,kg);m.addEventListener(jg,f),m.dispatchEvent(e),e.defaultPrevented||Eg(null!==t&&void 0!==t?t:document.body,{select:!0}),m.removeEventListener(jg,f),Cg.remove(v)},0)}}var e},[m,h,f,v]);const b=a.useCallback(e=>{if(!r&&!s)return;if(v.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,a=function(e){const t=Sg(e),n=_g(t,e),a=_g(t.reverse(),e);return[n,a]}(t),i=Le(a,2),s=i[0],o=i[1];s&&o?e.shiftKey||n!==o?e.shiftKey&&n===s&&(e.preventDefault(),r&&Eg(o,{select:!0})):(e.preventDefault(),r&&Eg(s,{select:!0})):n===t&&e.preventDefault()}},[r,s,v.paused]);return(0,Te.jsx)(lg.div,d(d({tabIndex:-1},c),{},{ref:x,onKeyDown:b}))});function Sg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function _g(e,t){for(const n of e)if(!zg(n,{upTo:t}))return n}function zg(e,t){let n=t.upTo;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==n&&e===n)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Eg(e){let t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).select,n=void 0!==t&&t;if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:!0}),e!==t&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&n&&e.select()}}Ng.displayName="FocusScope";var Cg=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=Pg(e,t),e.unshift(t)},remove(t){var n;e=Pg(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Pg(e,t){const n=[...e],a=n.indexOf(t);return-1!==a&&n.splice(a,1),n}const Ag=["container"];var Tg=a.forwardRef((e,t)=>
2{var n;const r=e.container,i=Be(e,Ag),s=Le(a.useState(!1),2),o=s[0],l=s[1];Gf(()=>l(!0),[]);const c=r||o&&(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body);return c?Na.createPortal((0,Te.jsx)(lg.div,d(d({},i),{},{ref:t})),c):null});Tg.displayName="Portal";var Rg=e=>{const t=e.present,n=e.children,r=function(e){const t=Le(a.useState(),2),n=t[0],r=t[1],i=a.useRef(null),s=a.useRef(e),o=a.useRef("none"),l=e?"mounted":"unmounted",c=function(e,t){return a.useReducer((e,n)=>{const a=t[e][n];return null!==a&&void 0!==a?a:e},e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}}),d=Le(c,2),u=d[0],m=d[1];return a.useEffect(()=>{const e=Og(i.current);o.current="mounted"===u?e:"none"},[u]),Gf(()=>{const t=i.current,n=s.current;if(n!==e){const a=o.current,r=Og(t);if(e)m("MOUNT");else if("none"===r||"none"===(null===t||void 0===t?void 0:t.display))m("UNMOUNT");else{m(n&&a!==r?"ANIMATION_OUT":"UNMOUNT")}s.current=e}},[e,m]),Gf(()=>{if(n){var e;let t;const a=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,r=e=>{const r=Og(i.current).includes(e.animationName);if(e.target===n&&r&&(m("ANIMATION_END"),!s.current)){const e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=a.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},l=e=>{e.target===n&&(o.current=Og(i.current))};return n.addEventListener("animationstart",l),n.addEventListener("animationcancel",r),n.addEventListener("animationend",r),()=>{a.clearTimeout(t),n.removeEventListener("animationstart",l),n.removeEventListener("animationcancel",r),n.removeEventListener("animationend",r)}}m("ANIMATION_END")},[n,m]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback(e=>{i.current=e?getComputedStyle(e):null,r(e)},[])}}(t),i="function"===typeof n?n({present:r.isPresent}):a.Children.only(n),s=Uf(r.ref,function(e){var t,n;let a=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,r=a&&"isReactWarning"in a&&a.isReactWarning;if(r)return e.ref;if(a=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,r=a&&"isReactWarning"in a&&a.isReactWarning,r)return e.props.ref;return e.props.ref||e.ref}(i));return"function"===typeof n||r.isPresent?a.cloneElement(i,{ref:s}):null};function Og(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}Rg.displayName="Presence";var Dg=0;function Mg(){a.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Ig()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Ig()),Dg++,()=>{1===Dg&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Dg--}},[])}function Ig(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Fg=function(){return Fg=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},Fg.apply(this,arguments)};function Lg(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}Object.create;function Bg(e,t,n){if(n||2===arguments.length)for(var a,r=0,i=t.length;r<i;r++)!a&&r in t||(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}Object.create;var qg="right-scroll-bar-position",Ug="width-before-scroll-bar";function Vg(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var Hg="undefined"!==typeof window?a.useLayoutEffect:a.useEffect,Wg=new WeakMap;function Kg(e,t){var n=function(e,t){var n=(0,a.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}(t||null,function(t){return e.forEach(function(e){return Vg(e,t)})});return Hg(function(){var t=Wg.get(n);if(t){var a=new Set(t),r=new Set(e),i=n.current;a.forEach(function(e){r.has(e)||Vg(e,null)}),r.forEach(function(e){a.has(e)||Vg(e,i)})}Wg.set(n,e)},[e]),n}function Gg(e){return e}function Zg(e,t){void 0===t&&(t=Gg);var n=[],a=!1,r={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var r=t(e,a);return n.push(r),function(){n=n.filter(function(e){return e!==r})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var i=function(){var n=t;
vendor: 5,985 bytes, line 2
2t=[],n.forEach(e)},s=function(){return Promise.resolve().then(i)};s(),n={push:function(e){t.push(e),s()},filter:function(e){return t=t.filter(e),n}}}};return r}var Yg=function(e){void 0===e&&(e={});var t=Zg(null);return t.options=Fg({async:!0,ssr:!1},e),t}(),Qg=function(){},$g=a.forwardRef(function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Qg,onWheelCapture:Qg,onTouchMoveCapture:Qg}),i=r[0],s=r[1],o=e.forwardProps,l=e.children,c=e.className,d=e.removeScrollBar,u=e.enabled,m=e.shards,p=e.sideCar,h=e.noRelative,f=e.noIsolation,g=e.inert,x=e.allowPinchZoom,v=e.as,b=void 0===v?"div":v,y=e.gapMode,w=Lg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,k=Kg([n,t]),N=Fg(Fg({},w),i);return a.createElement(a.Fragment,null,u&&a.createElement(j,{sideCar:Yg,removeScrollBar:d,shards:m,noRelative:h,noIsolation:f,inert:g,setCallbacks:s,allowPinchZoom:!!x,lockRef:n,gapMode:y}),o?a.cloneElement(a.Children.only(l),Fg(Fg({},N),{ref:k})):a.createElement(b,Fg({},N,{className:c,ref:k}),l))});$g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$g.classNames={fullWidth:Ug,zeroRight:qg};var Xg,Jg=function(e){var t=e.sideCar,n=Lg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Fg({},n))};Jg.isSideCarExport=!0;function ex(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Xg||n.nc;return t&&e.setAttribute("nonce",t),e}var tx=function(){var e=0,t=null;return{add:function(n){var a;0==e&&(t=ex())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},nx=function(){var e=function(){var e=tx();return function(t,n){a.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}}();return function(t){var n=t.styles,a=t.dynamic;return e(n,a),null}},ax={left:0,top:0,right:0,gap:0},rx=function(e){return parseInt(e||"",10)||0},ix=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return ax;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],a=t["padding"===e?"paddingTop":"marginTop"],r=t["padding"===e?"paddingRight":"marginRight"];return[rx(n),rx(a),rx(r)]}(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},sx=nx(),ox="data-scroll-locked",lx=function(e,t,n,a){var r=e.left,i=e.top,s=e.right,o=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(a,";\n padding-right: ").concat(o,"px ").concat(a,";\n }\n body[").concat(ox,"] {\n overflow: hidden ").concat(a,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(a,";"),"margin"===n&&"\n padding-left: ".concat(r,"px;\n padding-top: ").concat(i,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(o,"px ").concat(a,";\n "),"padding"===n&&"padding-right: ".concat(o,"px ").concat(a,";")].filter(Boolean).join(""),"\n }\n \n .").concat(qg," {\n right: ").concat(o,"px ").concat(a,";\n }\n \n .").concat(Ug," {\n margin-right: ").concat(o,"px ").concat(a,";\n }\n \n .").concat(qg," .").concat(qg," {\n right: 0 ").concat(a,";\n }\n \n .").concat(Ug," .").concat(Ug," {\n margin-right: 0 ").concat(a,";\n }\n \n body[").concat(ox,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(o,"px;\n }\n")},cx=function(){var e=parseInt(document.body.getAttribute(ox)||"0",10);return isFinite(e)?e:0},dx=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;a.useEffect(function(){return document.body.setAttribute(ox,(cx()+1).toString()),function(){var e=cx()-1;e<=0?document.body.removeAttribute(ox):document.body.setAttribute(ox,e.toString())}},[]);var s=a.useMemo(function(){return ix(i)},[i]);return a.createElement(sx,{styles:lx(s,!t,i,n?"":"!important")})},ux=!1;if("undefined"!==typeof window)try{var mx=Object.defineProperty({},"passive",{get:function(){return ux=!0,!0}});window.addEventListener("test",mx,mx),window.removeEventListener("test",mx,mx)}catch(sse){ux=!1}var px=!!ux&&{passive:!1},hx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},fx=function(e,t){var n=t.ownerDocument,a=t;do{if("undefined"!==typeof ShadowRoot&&a instanceof ShadowRoot&&(a=a.host),gx(e,a)){var r=xx(e,a);if(r[1]>r[2])return!0}a=a.parentNode}while(a&&a!==n.body);return!1},gx=function(e,t){return"v"===e?function(e){return hx(e,"overflowY")}(t):function(e){return hx(e,"overflowX")}(t)},xx=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},vx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},bx=function(e){return[e.deltaX,e.deltaY]},yx=function(e){return e&&"current"in e?e.current:e},wx=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},jx=0,kx=[];function Nx(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Sx=(_x=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),i=a.useState(jx++)[0],s=a.useState(nx)[0],o=a.useRef(e);a.useEffect(function(){o.current=e},[e]),a.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));
vendor: 4,148 bytes, line 2
2var t=Bg([e.lockRef.current],(e.shards||[]).map(yx),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=a.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!o.current.allowPinchZoom;var a,i=vx(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],d=e.target,u=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===d.type)return!1;var m=window.getSelection(),p=m&&m.anchorNode;if(p&&(p===d||p.contains(d)))return!1;var h=fx(u,d);if(!h)return!0;if(h?a=u:(a="v"===u?"h":"v",h=fx(u,d)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=a),!a)return!0;var f=r.current||a;return function(e,t,n,a,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),s=i*a,o=n.target,l=t.contains(o),c=!1,d=s>0,u=0,m=0;do{if(!o)break;var p=xx(e,o),h=p[0],f=p[1]-p[2]-i*h;(h||f)&&gx(e,o)&&(u+=f,m+=h);var g=o.parentNode;o=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&o!==document.body||l&&(t.contains(o)||t===o));return(d&&(r&&Math.abs(u)<1||!r&&s>u)||!d&&(r&&Math.abs(m)<1||!r&&-s>m))&&(c=!0),c}(f,t,e,"h"===f?l:c,!0)},[]),c=a.useCallback(function(e){var n=e;if(kx.length&&kx[kx.length-1]===s){var a="deltaY"in n?bx(n):vx(n),r=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,r=a,t[0]===r[0]&&t[1]===r[1]);var t,r})[0];if(r&&r.should)n.cancelable&&n.preventDefault();else if(!r){var i=(o.current.shards||[]).map(yx).filter(Boolean).filter(function(e){return e.contains(n.target)});(i.length>0?l(n,i[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),d=a.useCallback(function(e,n,a,r){var i={name:e,delta:n,target:a,should:r,shadowParent:Nx(a)};t.current.push(i),setTimeout(function(){t.current=t.current.filter(function(e){return e!==i})},1)},[]),u=a.useCallback(function(e){n.current=vx(e),r.current=void 0},[]),m=a.useCallback(function(t){d(t.type,bx(t),t.target,l(t,e.lockRef.current))},[]),p=a.useCallback(function(t){d(t.type,vx(t),t.target,l(t,e.lockRef.current))},[]);a.useEffect(function(){return kx.push(s),e.setCallbacks({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:p}),document.addEventListener("wheel",c,px),document.addEventListener("touchmove",c,px),document.addEventListener("touchstart",u,px),function(){kx=kx.filter(function(e){return e!==s}),document.removeEventListener("wheel",c,px),document.removeEventListener("touchmove",c,px),document.removeEventListener("touchstart",u,px)}},[]);var h=e.removeScrollBar,f=e.inert;return a.createElement(a.Fragment,null,f?a.createElement(s,{styles:wx(i)}):null,h?a.createElement(dx,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Yg.useMedium(_x),Jg);var _x,zx=a.forwardRef(function(e,t){return a.createElement($g,Fg({},e,{ref:t,sideCar:Sx}))});zx.classNames=$g.classNames;const Ex=zx;var Cx=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Px=new WeakMap,Ax=new WeakMap,Tx={},Rx=0,Ox=function(e){return e&&(e.host||Ox(e.parentNode))},Dx=function(e,t,n,a){var r=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Ox(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);Tx[n]||(Tx[n]=new WeakMap);var i=Tx[n],s=[],o=new Set,l=new Set(r),c=function(e){e&&!o.has(e)&&(o.add(e),c(e.parentNode))};r.forEach(c);var d=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(o.has(e))d(e);else try{var t=e.getAttribute(a),r=null!==t&&"false"!==t,l=(Px.get(e)||0)+1,c=(i.get(e)||0)+1;Px.set(e,l),i.set(e,c),s.push(e),1===l&&r&&Ax.set(e,!0),1===c&&e.setAttribute(n,"true"),r||e.setAttribute(a,"true")}catch(rse){console.error("aria-hidden: cannot operate on ",e,rse)}})};
2return d(t),o.clear(),Rx++,function(){s.forEach(function(e){var t=Px.get(e)-1,r=i.get(e)-1;Px.set(e,t),i.set(e,r),t||(Ax.has(e)||e.removeAttribute(a),Ax.delete(e)),r||e.removeAttribute(n)}),--Rx||(Px=new WeakMap,Px=new WeakMap,Ax=new WeakMap,Tx={})}},Mx=function(e,t,n){void 0===n&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),r=t||Cx(e);return r?(a.push.apply(a,Array.from(r.querySelectorAll("[aria-live], script"))),Dx(a,r,n,"aria-hidden")):function(){return null}};const Ix=["__scopeDialog"],Fx=["forceMount"],Lx=["__scopeDialog"],Bx=["forceMount"],qx=["__scopeDialog","trapFocus","onOpenAutoFocus","onCloseAutoFocus"],Ux=["__scopeDialog"],Vx=["__scopeDialog"],Hx=["__scopeDialog"];var Wx="Dialog",Kx=Le(Wf(Wx),2),Gx=Kx[0],Zx=Kx[1],Yx=Le(Gx(Wx),2),Qx=Yx[0],$x=Yx[1],Xx=e=>{const t=e.__scopeDialog,n=e.children,r=e.open,i=e.defaultOpen,s=e.onOpenChange,o=e.modal,l=void 0===o||o,c=a.useRef(null),d=a.useRef(null),u=Le(Xf({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:s,caller:Wx}),2),m=u[0],p=u[1];return(0,Te.jsx)(Qx,{scope:t,triggerRef:c,contentRef:d,contentId:Qf(),titleId:Qf(),descriptionId:Qf(),open:m,onOpenChange:p,onOpenToggle:a.useCallback(()=>p(e=>!e),[p]),modal:l,children:n})};Xx.displayName=Wx;var Jx="DialogTrigger",ev=a.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Be(e,Ix),r=$x(Jx,n),i=Uf(t,r.triggerRef);return(0,Te.jsx)(lg.button,d(d({type:"button","aria-haspopup":"dialog","aria-expanded":r.open,"aria-controls":r.contentId,"data-state":wv(r.open)},a),{},{ref:i,onClick:Lf(e.onClick,r.onOpenToggle)}))});ev.displayName=Jx;var tv="DialogPortal",nv=Le(Gx(tv,{forceMount:void 0}),2),av=nv[0],rv=nv[1],iv=e=>{const t=e.__scopeDialog,n=e.forceMount,r=e.children,i=e.container,s=$x(tv,t);return(0,Te.jsx)(av,{scope:t,forceMount:n,children:a.Children.map(r,e=>(0,Te.jsx)(Rg,{present:n||s.open,children:(0,Te.jsx)(Tg,{asChild:!0,container:i,children:e})}))})};iv.displayName=tv;var sv="DialogOverlay",ov=a.forwardRef((e,t)=>{const n=rv(sv,e.__scopeDialog),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Be(e,Fx),s=$x(sv,e.__scopeDialog);return s.modal?(0,Te.jsx)(Rg,{present:r||s.open,children:(0,Te.jsx)(cv,d(d({},i),{},{ref:t}))}):null});ov.displayName=sv;var lv=tg("DialogOverlay.RemoveScroll"),cv=a.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Be(e,Lx),r=$x(sv,n);return(0,Te.jsx)(Ex,{as:lv,allowPinchZoom:!0,shards:[r.contentRef],children:(0,Te.jsx)(lg.div,d(d({"data-state":wv(r.open)},a),{},{ref:t,style:d({pointerEvents:"auto"},a.style)}))})}),dv="DialogContent",uv=a.forwardRef((e,t)=>{const n=rv(dv,e.__scopeDialog),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Be(e,Bx),s=$x(dv,e.__scopeDialog);return(0,Te.jsx)(Rg,{present:r||s.open,children:s.modal?(0,Te.jsx)(mv,d(d({},i),{},{ref:t})):(0,Te.jsx)(pv,d(d({},i),{},{ref:t}))})});uv.displayName=dv;var mv=a.forwardRef((e,t)=>{const n=$x(dv,e.__scopeDialog),r=a.useRef(null),i=Uf(t,n.contentRef,r);return a.useEffect(()=>{const e=r.current;if(e)return Mx(e)},[]),(0,Te.jsx)(hv,d(d({},e),{},{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Lf(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:Lf(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Lf(e.onFocusOutside,e=>e.preventDefault())}))}),pv=a.forwardRef((e,t)=>{const n=$x(dv,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return(0,Te.jsx)(hv,d(d({},e),{},{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var a,s;(null===(a=e.onCloseAutoFocus)||void 0===a||a.call(e,t),t.defaultPrevented)||(r.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),t.preventDefault());r.current=!1,i.current=!1},onInteractOutside:t=>{var a,s;null===(a=e.onInteractOutside)||void 0===a||a.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const o=t.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(o))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}}))}),hv=a.forwardRef((e,t)=>
2{const n=e.__scopeDialog,r=e.trapFocus,i=e.onOpenAutoFocus,s=e.onCloseAutoFocus,o=Be(e,qx),l=$x(dv,n),c=a.useRef(null),u=Uf(t,c);return Mg(),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Ng,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:(0,Te.jsx)(gg,d(d({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":wv(l.open)},o),{},{ref:u,onDismiss:()=>l.onOpenChange(!1)}))}),(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(zv,{titleId:l.titleId}),(0,Te.jsx)(Ev,{contentRef:c,descriptionId:l.descriptionId})]})]})}),fv="DialogTitle",gv=a.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Be(e,Ux),r=$x(fv,n);return(0,Te.jsx)(lg.h2,d(d({id:r.titleId},a),{},{ref:t}))});gv.displayName=fv;var xv="DialogDescription",vv=a.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Be(e,Vx),r=$x(xv,n);return(0,Te.jsx)(lg.p,d(d({id:r.descriptionId},a),{},{ref:t}))});vv.displayName=xv;var bv="DialogClose",yv=a.forwardRef((e,t)=>{const n=e.__scopeDialog,a=Be(e,Hx),r=$x(bv,n);return(0,Te.jsx)(lg.button,d(d({type:"button"},a),{},{ref:t,onClick:Lf(e.onClick,()=>r.onOpenChange(!1))}))});function wv(e){return e?"open":"closed"}yv.displayName=bv;var jv="DialogTitleWarning",kv=function(e,t){const n=a.createContext(t),r=e=>{const t=e.children,r=Be(e,Vf),i=a.useMemo(()=>r,Object.values(r));return(0,Te.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=a.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error("`".concat(r,"` must be used within `").concat(e,"`"))}]}(jv,{contentName:dv,titleName:fv,docsSlug:"dialog"}),Nv=Le(kv,2),Sv=Nv[0],_v=Nv[1],zv=e=>{let t=e.titleId;const n=_v(jv),r="`".concat(n.contentName,"` requires a `").concat(n.titleName,"` for the component to be accessible for screen reader users.\n\nIf you want to hide the `").concat(n.titleName,"`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/").concat(n.docsSlug);return a.useEffect(()=>{if(t){document.getElementById(t)||console.error(r)}},[r,t]),null},Ev=e=>{let t=e.contentRef,n=e.descriptionId;const r=_v("DialogDescriptionWarning"),i="Warning: Missing `Description` or `aria-describedby={undefined}` for {".concat(r.contentName,"}.");return a.useEffect(()=>{var e;const a=null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby");if(n&&a){document.getElementById(n)||console.warn(i)}},[i,t,n]),null},Cv=Xx,Pv=ev,Av=iv,Tv=ov,Rv=uv,Ov=gv,Dv=vv,Mv=yv;const Iv=kf("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Fv(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Fv(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function Lv(){for(var e,t,n=0,a="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Fv(e))&&(a&&(a+=" "),a+=t);return a}const Bv=(e,t)=>{var n;if(0===e.length)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),i=r?Bv(e.slice(1),r):void 0;if(i)return i;if(0===t.validators.length)return;const s=e.join("-");return null===(n=t.validators.find(e=>(0,e.validator)(s)))||void 0===n?void 0:n.classGroupId},qv=/^\[(.+)\]$/,Uv=e=>{if(qv.test(e)){const t=qv.exec(e)[1],n=null===t||void 0===t?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Vv=e=>{const t=e.theme,n=e.classGroups,a={nextPart:new Map,validators:[]};for(const r in n)Hv(n[r],a,r,t);return a},Hv=(e,t,n,a)=>{e.forEach(e=>{if("string"===typeof e){return void((""===e?t:Wv(t,e)).classGroupId=n)}if("function"===typeof e)return Kv(e)?void Hv(e(a),t,n,a):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(e=>{let r=Le(e,2),i=r[0],s=r[1];Hv(s,Wv(t,i),n,a)})})},Wv=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},Kv=e=>e.isThemeGetter,Gv=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,a=new Map;const r=(r,i)=>{n.set(r,i),t++,t>e&&(t=0,a=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=a.get(e))?(r(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):r(e,t)}}},Zv=e=>{const t=e.prefix,n=e.experimentalParseClassName;let a=e=>{const t=[];let n,a=0,r=0,i=0;for(let l=0;l<e.length;l++){let s=e[l];
2if(0===a&&0===r){if(":"===s){t.push(e.slice(i,l)),i=l+1;continue}if("/"===s){n=l;continue}}"["===s?a++:"]"===s?a--:"("===s?r++:")"===s&&r--}const s=0===t.length?e:e.substring(i),o=Yv(s);return{modifiers:t,hasImportantModifier:o!==s,baseClassName:o,maybePostfixModifierPosition:n&&n>i?n-i:void 0}};if(t){const e=t+":",n=a;a=t=>t.startsWith(e)?n(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(n){const e=a;a=t=>n({className:t,parseClassName:e})}return a},Yv=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,Qv=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;const n=[];let a=[];return e.forEach(e=>{"["===e[0]||t[e]?(n.push(...a.sort(),e),a=[]):a.push(e)}),n.push(...a.sort()),n}},$v=e=>d({cache:Gv(e.cacheSize),parseClassName:Zv(e),sortModifiers:Qv(e)},(e=>{const t=Vv(e),n=e.conflictingClassGroups,a=e.conflictingClassGroupModifiers;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),Bv(n,t)||Uv(e)},getConflictingClassGroupIds:(e,t)=>{const r=n[e]||[];return t&&a[e]?[...r,...a[e]]:r}}})(e)),Xv=/\s+/;function Jv(){let e,t,n=0,a="";for(;n<arguments.length;)(e=arguments[n++])&&(t=eb(e))&&(a&&(a+=" "),a+=t);return a}const eb=e=>{if("string"===typeof e)return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=eb(e[a]))&&(n&&(n+=" "),n+=t);return n};function tb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];let r,i,s,o=function(t){const a=n.reduce((e,t)=>t(e),e());return r=$v(a),i=r.cache.get,s=r.cache.set,o=l,l(t)};function l(e){const t=i(e);if(t)return t;const n=((e,t)=>{const n=t.parseClassName,a=t.getClassGroupId,r=t.getConflictingClassGroupIds,i=t.sortModifiers,s=[],o=e.trim().split(Xv);let l="";for(let c=o.length-1;c>=0;c-=1){const e=o[c],t=n(e),d=t.isExternal,u=t.modifiers,m=t.hasImportantModifier,p=t.baseClassName,h=t.maybePostfixModifierPosition;if(d){l=e+(l.length>0?" "+l:l);continue}let f=!!h,g=a(f?p.substring(0,h):p);if(!g){if(!f){l=e+(l.length>0?" "+l:l);continue}if(g=a(p),!g){l=e+(l.length>0?" "+l:l);continue}f=!1}const x=i(u).join(":"),v=m?x+"!":x,b=v+g;if(s.includes(b))continue;s.push(b);const y=r(g,f);for(let n=0;n<y.length;++n){const e=y[n];s.push(v+e)}l=e+(l.length>0?" "+l:l)}return l})(e,r);return s(e,n),n}return function(){return o(Jv.apply(null,arguments))}}const nb=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},ab=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,rb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,ib=/^\d+\/\d+$/,sb=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ob=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,lb=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cb=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,db=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ub=e=>ib.test(e),mb=e=>!!e&&!Number.isNaN(Number(e)),pb=e=>!!e&&Number.isInteger(Number(e)),hb=e=>e.endsWith("%")&&mb(e.slice(0,-1)),fb=e=>sb.test(e),gb=()=>!0,xb=e=>ob.test(e)&&!lb.test(e),vb=()=>!1,bb=e=>cb.test(e),yb=e=>db.test(e),wb=e=>!kb(e)&&!Cb(e),jb=e=>Mb(e,Bb,vb),kb=e=>ab.test(e),Nb=e=>Mb(e,qb,xb),Sb=e=>Mb(e,Ub,mb),_b=e=>Mb(e,Fb,vb),zb=e=>Mb(e,Lb,yb),Eb=e=>Mb(e,Hb,bb),Cb=e=>rb.test(e),Pb=e=>Ib(e,qb),Ab=e=>Ib(e,Vb),Tb=e=>Ib(e,Fb),Rb=e=>Ib(e,Bb),Ob=e=>Ib(e,Lb),Db=e=>Ib(e,Hb,!0),Mb=(e,t,n)=>{const a=ab.exec(e);return!!a&&(a[1]?t(a[1]):n(a[2]))},Ib=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=rb.exec(e);return!!a&&(a[1]?t(a[1]):n)},Fb=e=>"position"===e||"percentage"===e,Lb=e=>"image"===e||"url"===e,Bb=e=>"length"===e||"size"===e||"bg-size"===e,qb=e=>"length"===e,Ub=e=>"number"===e,Vb=e=>"family-name"===e,Hb=e=>"shadow"===e,Wb=(Symbol.toStringTag,()=>{const e=nb("color"),t=nb("font"),n=nb("text"),a=nb("font-weight"),r=nb("tracking"),i=nb("leading"),s=nb("breakpoint"),o=nb("container"),l=nb("spacing"),c=nb("radius"),d=nb("shadow"),u=nb("inset-shadow"),m=nb("text-shadow"),p=nb("drop-shadow"),h=nb("blur"),f=nb("perspective"),g=nb("aspect"),x=nb("ease"),v=nb("animate"),b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Cb,kb],y=()=>[Cb,kb,l],w=()=>[ub,"full","auto",...y()],j=()=>[pb,"none","subgrid",Cb,kb],k=()=>["auto",{span:["full",pb,Cb,kb]},pb,Cb,kb],N=()=>[pb,"auto",Cb,kb],S=()=>["auto","min","max","fr",Cb,kb],_=()=>["auto",...y()],z=()=>[ub,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...y()],E=()=>[e,Cb,kb],C=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Tb,_b,{position:[Cb,kb]}],P=()=>["auto","cover","contain",Rb,jb,{size:[Cb,kb]}],A=()=>[hb,Pb,Nb],T=()=>["","none","full",c,Cb,kb],R=()=>["",mb,Pb,Nb],O=()=>[mb,hb,Tb,_b],D=()=>["","none",h,Cb,kb],M=()=>["none",mb,Cb,kb],I=()=>["none",mb,Cb,kb],F=()=>[mb,Cb,kb],L=()=>[ub,"full",...y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[fb],breakpoint:[fb],color:[gb],container:[fb],"drop-shadow":[fb],ease:["in","out","in-out"],font:[wb],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[fb],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[fb],shadow:[fb],spacing:["px",mb],text:[fb],"text-shadow":[fb],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ub,kb,Cb,g]}
vendor: 5,332 bytes, line 2
2],container:["container"],columns:[{columns:[mb,kb,Cb,o]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:b()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:w()}],"inset-x":[{"inset-x":w()}],"inset-y":[{"inset-y":w()}],start:[{start:w()}],end:[{end:w()}],top:[{top:w()}],right:[{right:w()}],bottom:[{bottom:w()}],left:[{left:w()}],visibility:["visible","invisible","collapse"],z:[{z:[pb,"auto",Cb,kb]}],basis:[{basis:[ub,"full","auto",o,...y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mb,ub,"auto","initial","none",kb]}],grow:[{grow:["",mb,Cb,kb]}],shrink:[{shrink:["",mb,Cb,kb]}],order:[{order:[pb,"first","last","none",Cb,kb]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:k()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:k()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":S()}],"auto-rows":[{"auto-rows":S()}],gap:[{gap:y()}],"gap-x":[{"gap-x":y()}],"gap-y":[{"gap-y":y()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:_()}],mx:[{mx:_()}],my:[{my:_()}],ms:[{ms:_()}],me:[{me:_()}],mt:[{mt:_()}],mr:[{mr:_()}],mb:[{mb:_()}],ml:[{ml:_()}],"space-x":[{"space-x":y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":y()}],"space-y-reverse":["space-y-reverse"],size:[{size:z()}],w:[{w:[o,"screen",...z()]}],"min-w":[{"min-w":[o,"screen","none",...z()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...z()]}],h:[{h:["screen",...z()]}],"min-h":[{"min-h":["screen","none",...z()]}],"max-h":[{"max-h":["screen",...z()]}],"font-size":[{text:["base",n,Pb,Nb]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,Cb,Sb]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hb,kb]}],"font-family":[{font:[Ab,kb,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,Cb,kb]}],"line-clamp":[{"line-clamp":[mb,"none",Cb,Sb]}],leading:[{leading:[i,...y()]}],"list-image":[{"list-image":["none",Cb,kb]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Cb,kb]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:E()}],"text-color":[{text:E()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","
2wavy"]}],"text-decoration-thickness":[{decoration:[mb,"from-font","auto",Cb,Nb]}],"text-decoration-color":[{decoration:E()}],"underline-offset":[{"underline-offset":[mb,"auto",Cb,kb]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:y()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Cb,kb]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Cb,kb]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:C()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:P()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pb,Cb,kb],radial:["",Cb,kb],conic:[pb,Cb,kb]},Ob,zb]}],"bg-color":[{bg:E()}],"gradient-from-pos":[{from:A()}],"gradient-via-pos":[{via:A()}],"gradient-to-pos":[{to:A()}],"gradient-from":[{from:E()}],"gradient-via":[{via:E()}],"gradient-to":[{to:E()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}
vendor: 6,399 bytes, line 2
2],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:E()}],"border-color-x":[{"border-x":E()}],"border-color-y":[{"border-y":E()}],"border-color-s":[{"border-s":E()}],"border-color-e":[{"border-e":E()}],"border-color-t":[{"border-t":E()}],"border-color-r":[{"border-r":E()}],"border-color-b":[{"border-b":E()}],"border-color-l":[{"border-l":E()}],"divide-color":[{divide:E()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[mb,Cb,kb]}],"outline-w":[{outline:["",mb,Pb,Nb]}],"outline-color":[{outline:E()}],shadow:[{shadow:["","none",d,Db,Eb]}],"shadow-color":[{shadow:E()}],"inset-shadow":[{"inset-shadow":["none",u,Db,Eb]}],"inset-shadow-color":[{"inset-shadow":E()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:E()}],"ring-offset-w":[{"ring-offset":[mb,Nb]}],"ring-offset-color":[{"ring-offset":E()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":E()}],"text-shadow":[{"text-shadow":["none",m,Db,Eb]}],"text-shadow-color":[{"text-shadow":E()}],opacity:[{opacity:[mb,Cb,kb]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[mb]}],"mask-image-linear-from-pos":[{"mask-linear-from":O()}],"mask-image-linear-to-pos":[{"mask-linear-to":O()}],"mask-image-linear-from-color":[{"mask-linear-from":E()}],"mask-image-linear-to-color":[{"mask-linear-to":E()}],"mask-image-t-from-pos":[{"mask-t-from":O()}],"mask-image-t-to-pos":[{"mask-t-to":O()}],"mask-image-t-from-color":[{"mask-t-from":E()}],"mask-image-t-to-color":[{"mask-t-to":E()}],"mask-image-r-from-pos":[{"mask-r-from":O()}],"mask-image-r-to-pos":[{"mask-r-to":O()}],"mask-image-r-from-color":[{"mask-r-from":E()}],"mask-image-r-to-color":[{"mask-r-to":E()}],"mask-image-b-from-pos":[{"mask-b-from":O()}],"mask-image-b-to-pos":[{"mask-b-to":O()}],"mask-image-b-from-color":[{"mask-b-from":E()}],"mask-image-b-to-color":[{"mask-b-to":E()}],"mask-image-l-from-pos":[{"mask-l-from":O()}],"mask-image-l-to-pos":[{"mask-l-to":O()}],"mask-image-l-from-color":[{"mask-l-from":E()}],"mask-image-l-to-color":[{"mask-l-to":E()}],"mask-image-x-from-pos":[{"mask-x-from":O()}],"mask-image-x-to-pos":[{"mask-x-to":O()}],"mask-image-x-from-color":[{"mask-x-from":E()}],"mask-image-x-to-color":[{"mask-x-to":E()}],"mask-image-y-from-pos":[{"mask-y-from":O()}],"mask-image-y-to-pos":[{"mask-y-to":O()}],"mask-image-y-from-color":[{"mask-y-from":E()}],"mask-image-y-to-color":[{"mask-y-to":E()}],"mask-image-radial":[{"mask-radial":[Cb,kb]}],"mask-image-radial-from-pos":[{"mask-radial-from":O()}],"mask-image-radial-to-pos":[{"mask-radial-to":O()}],"mask-image-radial-from-color":[{"mask-radial-from":E()}],"mask-image-radial-to-color":[{"mask-radial-to":E()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[mb]}],"mask-image-conic-from-pos":[{"mask-conic-from":O()}],"mask-image-conic-to-pos":[{"mask-conic-to":O()}],"mask-image-conic-from-color":[{"mask-conic-from":E()}],"mask-image-conic-to-color":[{"mask-conic-to":E()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:C()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:P()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Cb,kb]}],filter:[{filter:["","none",Cb,kb]}],blur:[{blur:D()}],brightness:[{brightness:[mb,Cb,kb]}],contrast:[{contrast:[mb,Cb,kb]}],"drop-shadow":[{"drop-shadow":["","none",p,Db,Eb]}],"drop-shadow-color":[{"drop-shadow":E()}],grayscale:[{grayscale:["",mb,Cb,kb]}],"hue-rotate":[{"hue-rotate":[mb,Cb,kb]}],invert:[{invert:["",mb,Cb,kb]}],saturate:[{saturate:[mb,Cb,kb]}],sepia:[{sepia:["",mb,Cb,kb]}],"backdrop-filter":[{"backdrop-filter":["","none",Cb,kb]}],"backdrop-blur":[{"backdrop-blur":D()}],"backdrop-brightness":[{"backdrop-brightness":[mb,Cb,kb]}],"backdrop-contrast":[{"backdrop-contrast":[mb,Cb,kb]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mb,Cb,kb]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mb,Cb,kb]}],"backdrop-invert":[{"backdrop-invert":["",mb,Cb,kb]}],"backdrop-opacity":[{"backdrop-opacity":[mb,Cb,kb]}],"backdrop-saturate":[{"backdrop-saturate":[mb,Cb,kb]}],"backdrop-sepia":[{"backdrop-sepia":["",mb,Cb,kb]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":y()}],"border-spacing-x":[{"border-spacing-x":y()}],"border-spacing-y":[{"border-spacing-y":y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Cb,kb]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mb,"initial",Cb,kb]}],ease:[{ease:["linear","initial",x,Cb,kb]}],delay:[{delay:[mb,Cb,kb]}],animate:[{animate:["none",v,Cb,kb]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,Cb,kb]}],"perspective-origin":[{"perspective-origin":b()}],rotate:[{rotate:M()}],"rotate-x":[{"rotate-x":M()}],"rotate-y":[{"rotate-y":M()}],"rotate-z":[{"rotate-z":M()}],scale:[{scale:I()}],"scale-x":[{"scale-x":I()}],"scale-y":[{"scale-y":I()}],"scale-z":[{"scale-z":I()}
vendor: 5,185 bytes, line 2
2],"scale-3d":["scale-3d"],skew:[{skew:F()}],"skew-x":[{"skew-x":F()}],"skew-y":[{"skew-y":F()}],transform:[{transform:[Cb,kb,"","none","gpu","cpu"]}],"transform-origin":[{origin:b()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:L()}],"translate-x":[{"translate-x":L()}],"translate-y":[{"translate-y":L()}],"translate-z":[{"translate-z":L()}],"translate-none":["translate-none"],accent:[{accent:E()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:E()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Cb,kb]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":y()}],"scroll-mx":[{"scroll-mx":y()}],"scroll-my":[{"scroll-my":y()}],"scroll-ms":[{"scroll-ms":y()}],"scroll-me":[{"scroll-me":y()}],"scroll-mt":[{"scroll-mt":y()}],"scroll-mr":[{"scroll-mr":y()}],"scroll-mb":[{"scroll-mb":y()}],"scroll-ml":[{"scroll-ml":y()}],"scroll-p":[{"scroll-p":y()}],"scroll-px":[{"scroll-px":y()}],"scroll-py":[{"scroll-py":y()}],"scroll-ps":[{"scroll-ps":y()}],"scroll-pe":[{"scroll-pe":y()}],"scroll-pt":[{"scroll-pt":y()}],"scroll-pr":[{"scroll-pr":y()}],"scroll-pb":[{"scroll-pb":y()}],"scroll-pl":[{"scroll-pl":y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Cb,kb]}],fill:[{fill:["none",...E()]}],"stroke-w":[{stroke:[mb,Pb,Nb,Sb]}],stroke:[{stroke:["none",...E()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}),Kb=tb(Wb);function Gb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Kb(Lv(t))}const Zb=["className"],Yb=["className","children"],Qb=["className"],$b=["className"],Xb=["className"],Jb=["className"],ey=Cv,ty=Av,ny=a.forwardRef((e,t)=>
2{let n=e.className,a=Be(e,Zb);return(0,Te.jsx)(Tv,d({ref:t,className:Gb("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a))});ny.displayName=Tv.displayName;const ay=a.forwardRef((e,t)=>{let n=e.className,a=e.children,r=Be(e,Yb);return(0,Te.jsxs)(ty,{children:[(0,Te.jsx)(ny,{}),(0,Te.jsxs)(Rv,d(d({ref:t,className:Gb("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},r),{},{children:[a,(0,Te.jsxs)(Mv,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[(0,Te.jsx)(Iv,{className:"h-4 w-4"}),(0,Te.jsx)("span",{className:"sr-only",children:"Close"})]})]}))]})});
2ay.displayName=Rv.displayName;const ry=e=>{let t=e.className,n=Be(e,Qb);return(0,Te.jsx)("div",d({className:Gb("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};ry.displayName="DialogHeader";const iy=e=>{let t=e.className,n=Be(e,$b);return(0,Te.jsx)("div",d({className:Gb("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};iy.displayName="DialogFooter";const sy=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,Xb);return(0,Te.jsx)(Ov,d({ref:t,className:Gb("text-lg font-semibold leading-none tracking-tight",n)},a))});sy.displayName=Ov.displayName;const oy=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,Jb);return(0,Te.jsx)(Dv,d({ref:t,className:Gb("text-sm text-muted-foreground",n)},a))});oy.displayName=Dv.displayName;const ly=[{code:"de",label:"DE"},{code:"en",label:"EN"},{code:"fr",label:"FR"},{code:"es",label:"ES"},{code:"it",label:"IT"}];function cy(e){var t;let n=e.id,r=e.children,i=e.as,s=void 0===i?"span":i,o=e.className,l=void 0===o?"":o,c=e.vars,u=void 0===c?null:c;const m=Is(),p=m.showPencils,h=m.getText,f=m.saveTextLang,g=m.fetchEntry,x=m.resetText,v=Xa(),b=v.lang,y=v.t,w="string"===typeof r?r:null==r?"":String(r),j=y?y(n):n,k=Ds(b&&"de"!==b?j&&j!==n?j:w:h(n,w),u),N=Le((0,a.useState)(!1),2),S=N[0],_=N[1],z=Le((0,a.useState)("de"),2),E=z[0],C=z[1],P=Le((0,a.useState)({}),2),A=P[0],T=P[1],R=Le((0,a.useState)({}),2),O=R[0],D=R[1],M=Le((0,a.useState)([]),2),I=M[0],F=M[1],L=Le((0,a.useState)(!1),2),B=L[0],q=L[1],U=Le((0,a.useState)(!1),2),V=U[0],H=U[1];if(!p)return(0,Te.jsx)(s,{className:l,children:k});const W=Array.from(new Set(w.match(/\{(\w+)\}/g)||[])),K=async e=>{e&&(e.stopPropagation(),e.preventDefault());const t=b&&ly.some(e=>e.code===b)?b:"de";C(t),T({de:w}),D({}),F([]),_(!0),H(!0);try{const e=await g(n),t=(null===e||void 0===e?void 0:e.values)||{},a=d({},t);a.de||(a.de=w),T(a),D((null===e||void 0===e?void 0:e.auto)||{}),F(Object.keys(t))}catch(a){T(e=>{var t;return d(d({},e),{},{de:null!==(t=e.de)&&void 0!==t?t:w})})}finally{H(!1)}},G=null!==(t=A[E])&&void 0!==t?t:"de"===E?w:"",Z=!0===O[E],Y=I.includes(E);return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)(s,{className:l,children:[k,(0,Te.jsx)("span",{role:"button",tabIndex:0,onClick:K,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||K(e)},"data-testid":"edit-text-".concat(n),"aria-label":"Text bearbeiten",title:"Text bearbeiten (nur Super-Admin)",className:"ml-1.5 inline-flex items-center justify-center align-middle w-5 h-5 rounded text-primary/60 hover:text-primary hover:bg-[#E5E7EB] transition-colors cursor-pointer print:hidden",children:(0,Te.jsx)(Mf,{size:13})})]}),(0,Te.jsx)(ey,{open:S,onOpenChange:e=>!e&&_(!1),children:(0,Te.jsxs)(ay,{"data-testid":"edit-text-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(Mf,{size:16})," Text bearbeiten"]}),(0,Te.jsxs)(oy,{children:["Diese \xc4nderung ist f\xfcr alle Nutzer sichtbar. Schl\xfcssel: ",(0,Te.jsx)("code",{className:"text-xs",children:n})]})]}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5 flex-wrap","data-testid":"edit-text-langs",children:ly.map(e=>(0,Te.jsxs)("button",{type:"button",onClick:()=>C(e.code),"data-testid":"edit-text-lang-".concat(e.code),className:"relative px-2.5 py-1 rounded-md text-xs font-semibold border transition-colors ".concat(E===e.code?"bg-primary text-white border-primary":"bg-white text-foreground border-border hover:bg-zinc-100"),children:[e.label,"de"!==e.code&&!0===O[e.code]&&(0,Te.jsx)("span",{className:"absolute -top-1 -right-1 w-2 h-2 rounded-full bg-amber-400",title:"auto-\xfcbersetzt"})]},e.code))}),"de"!==E&&(0,Te.jsxs)("div",{className:"flex items-center justify-between","data-testid":"edit-text-auto-badge-row",children:[Z?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-amber-700 bg-amber-50 border border-amber-200 rounded-full px-2 py-0.5","data-testid":"edit-text-auto-badge",children:[(0,Te.jsx)(If,{size:12})," auto-\xfcbersetzt"]}):Y?(0,Te.jsx)("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-primary bg-accent border border-border rounded-full px-2 py-0.5","data-testid":"edit-text-manual-badge",children:"manuell bearbeitet"}):(0,Te.jsx)("span",{className:"inline-flex items-center gap-1 text-xs font-medium text-muted-foreground bg-zinc-100 border border-border rounded-full px-2 py-0.5","data-testid":"edit-text-none-badge",children:"noch nicht \xfcbersetzt"}),(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground",children:'Speichern setzt die Sprache auf \u201emanuell".'})]}),V?(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm text-muted-foreground py-6","data-testid":"edit-text-loading",children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," \xdcbersetzungen werden geladen \u2026"]}):(0,Te.jsx)("textarea",{value:G,onChange:e=>{return t=e.target.value,T(e=>d(d({},e),{},{[E]:t}));var t},"data-testid":"edit-text-input",rows:3,autoFocus:!0,className:"w-full px-3 py-2 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"}),W.length>0&&(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Platzhalter (bitte beibehalten): ",W.map(e=>(0,Te.jsx)("code",{className:"mx-0.5",children:e},e))]}),(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground",children:["Standardtext (DE): \u201e",w,'"']}),(0,Te.jsxs)(iy,{className:"gap-2 sm:justify-between",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{q(!0);try{await x(n),Ia.success("Auf Standardtext zur\xfcckgesetzt (alle Sprachen)."),_(!1)}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}finally{q(!1)}},disabled:B,"data-testid":"edit-text-reset",className:"!text-muted-foreground",children:[(0,Te.jsx)(Ff,{size:15})," Auf Standard zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>_(!1),disabled:B,"data-testid":"edit-text-cancel",children:"Abbrechen"}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{q(!0);try{await f(n,G,E),D(e=>d(d({},e),{},{[E]:!1})),F(e=>e.includes(E)?e:[...e,E]),"de"===E?(Ia.success("Deutscher Text gespeichert \u2013 \xdcbersetzungen werden automatisch aktualisiert."),setTimeout(async()=>{try{const e=await g(n),t=(null===e||void 0===e?void 0:e.values)||{};T(e=>{var n;return d(d(d({},e),t),{},{de:null!==(n=t.de)&&void 0!==n?n:e.de})}),D((null===e||void 0===e?void 0:e.auto)||{}),F(Object.keys(t))}catch(e){}},6e3)):Ia.success("Text (".concat(E.toUpperCase(),") gespeichert."))}catch(rse){Ia.error("Speichern fehlgeschlagen.")}finally{q(!1)}},disabled:B||V,"data-testid":"edit-text-save",children:"Speichern"})]})]})]})})]})}const dy=["variant","className"],uy=["className"],my=["className"],py=["className","children"],hy=["className","children"];function fy(e){let t=e.variant,n=void 0===t?"primary":t,a=e.className,r=void 0===a?"":a,i=Be(e,dy);return(0,Te.jsx)("button",d({className:"".concat("inline-flex items-center justify-center gap-2 rounded-md px-4 py-2 text-sm font-semibold transition-colors duration-150 disabled:opacity-50 disabled:cursor-not-allowed"," ").concat({primary:"bg-primary text-white hover:bg-[var(--brand-primary-dark)]",secondary:"bg-white text-foreground border border-border hover:bg-zinc-100",danger:"bg-white text-destructive border border-red-200 hover:bg-red-50",ghost:"text-muted-foreground hover:bg-zinc-100"}[n]," ").concat(r)},i))}function gy(e){let t=e.className,n=void 0===t?"":t,a=Be(e,uy);return(0,Te.jsx)("input",d({className:"w-full border border-border rounded-md px-3 py-2 text-sm bg-white focus:ring-2 focus:ring-primary outline-none ".concat(n)},a))}function xy(e){let t=e.className,n=void 0===t?"":t,a=Be(e,my);return(0,Te.jsx)("textarea",d({className:"w-full border border-border rounded-md px-3 py-2 text-sm bg-white focus:ring-2 focus:ring-primary outline-none ".concat(n)},a))}function vy(e){let t=e.className,n=void 0===t?"":t,a=e.children,r=Be(e,py);return(0,Te.jsx)("select",d(d({className:"w-full border border-border rounded-md px-3 py-2 text-sm bg-white focus:ring-2 focus:ring-primary outline-none ".concat(n)},r),{},{children:a}))}function by(e){let t=e.className,n=void 0===t?"":t,a=e.children,r=Be(e,hy);return(0,Te.jsx)("div",d(d({className:"bg-card border border-border rounded-md ".concat(n)},r),{},{children:a}))}function yy(e){return String(e).toLowerCase().replace(/\xe4/g,"ae").replace(/\xf6/g,"oe").replace(/\xfc/g,"ue").replace(/\xdf/g,"ss").replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,60)}function wy(e){let t=e.label,n=e.labelId,a=e.children;const r=n||("string"===typeof t&&t.trim()?"field.".concat(yy(t)):null);return(0,Te.jsxs)("label",{className:"block space-y-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:r?(0,Te.jsx)(cy,{id:r,as:"span",children:t}):t}),a]})}function jy(e){let t=e.text,n=e.prefix,a=void 0===n?"auto":n,r=e.as,i=void 0===r?"span":r;return"string"===typeof t&&t.trim()?(0,Te.jsx)(cy,{id:"".concat(a,".").concat(yy(t)),as:i,children:t}):t}
2function ky(e){let t=e.title,n=e.subtitle,a=e.actions,r=e.titleId,i=e.subtitleId,s=e.titleVars,o=e.subtitleVars,l=e.subtitleClassName;return(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-end sm:justify-between gap-4 mb-6",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl tracking-[1.3px] text-foreground font-semibold",children:r?(0,Te.jsx)(cy,{id:r,vars:s,children:t}):t}),n&&(0,Te.jsx)("p",{className:l||"text-sm font-semibold text-muted-foreground mt-1",children:i?(0,Te.jsx)(cy,{id:i,vars:o,children:n}):n})]}),a&&(0,Te.jsx)("div",{className:"flex items-center gap-2",children:a})]})}const Ny=["#F59E0B","#10B981","#3B82F6","#EF4444","#8B5CF6","#EC4899","#14B8A6","#F97316"];function Sy(e){let t=e.show;const n=Xa().t,r=("undefined"!==typeof window?window.innerHeight:800)+60,i=(0,a.useMemo)(()=>Array.from({length:120}).map((e,t)=>({id:t,left:100*Math.random(),delay:.5*Math.random(),duration:2+1.4*Math.random(),rotate:720*Math.random()-360,drift:200*Math.random()-100,size:6+8*Math.random(),color:Ny[t%Ny.length],round:Math.random()>.6})),[]);return(0,Te.jsx)(co,{children:t&&(0,Te.jsxs)(ff.div,{initial:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:"fixed inset-0 z-[110] pointer-events-none overflow-hidden","data-testid":"onboarding-confetti",children:[i.map(e=>(0,Te.jsx)(ff.div,{initial:{y:-30,x:0,opacity:0,rotate:0},animate:{y:r,x:e.drift,opacity:[0,1,1,1,0],rotate:e.rotate},transition:{duration:e.duration,delay:e.delay,ease:"easeIn"},style:{position:"absolute",top:0,left:"".concat(e.left,"%"),width:e.size,height:e.round?e.size:1.7*e.size,backgroundColor:e.color,borderRadius:e.round?"9999px":"2px"}},e.id)),(0,Te.jsx)(ff.div,{initial:{scale:.6,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.85,opacity:0},transition:{type:"spring",stiffness:200,damping:15,delay:.1},className:"absolute inset-0 flex items-center justify-center",children:(0,Te.jsxs)("div",{className:"flex flex-col items-center gap-3 bg-background/90 backdrop-blur rounded-2xl px-10 py-7 shadow-2xl",children:[(0,Te.jsx)(ff.div,{initial:{scale:0,rotate:-30},animate:{scale:1,rotate:0},transition:{type:"spring",stiffness:260,damping:12,delay:.18},children:(0,Te.jsx)(Ef,{size:60,className:"text-primary"})}),(0,Te.jsx)("p",{className:"font-heading text-xl text-center",children:n("onboarding.done.title")})]})})]},"confetti")})}const _y="undefined"!==typeof Intl&&Intl.DisplayNames?new Intl.DisplayNames(["de"],{type:"region"}):null;function zy(e){if(!e)return"";try{return _y&&_y.of(e)||e}catch(t){return e}}const Ey=["AF","AX","AL","DZ","AS","AD","AO","AI","AQ","AG","AR","AM","AW","AU","AT","AZ","BS","BH","BD","BB","BY","BE","BZ","BJ","BM","BT","BO","BA","BW","BR","IO","BN","BG","BF","BI","KH","CM","CA","CV","KY","CF","TD","CL","CN","CO","KM","CG","CD","CK","CR","CI","HR","CU","CW","CY","CZ","DK","DJ","DM","DO","EC","EG","SV","GQ","ER","EE","SZ","ET","FK","FO","FJ","FI","FR","GF","PF","GA","GM","GE","DE","GH","GI","GR","GL","GD","GP","GU","GT","GG","GN","GW","GY","HT","HN","HK","HU","IS","IN","ID","IR","IQ","IE","IM","IL","IT","JM","JP","JE","JO","KZ","KE","KI","KP","KR","KW","KG","LA","LV","LB","LS","LR","LY","LI","LT","LU","MO","MG","MW","MY","MV","ML","MT","MH","MQ","MR","MU","MX","FM","MD","MC","MN","ME","MS","MA","MZ","MM","NA","NR","NP","NL","NC","NZ","NI","NE","NG","NU","MK","NO","OM","PK","PW","PS","PA","PG","PY","PE","PH","PL","PT","PR","QA","RE","RO","RU","RW","BL","KN","LC","MF","PM","VC","WS","SM","ST","SA","SN","RS","SC","SL","SG","SX","SK","SI","SB","SO","ZA","SS","ES","LK","SD","SR","SE","CH","SY","TW","TJ","TZ","TH","TL","TG","TK","TO","TT","TN","TR","TM","TC","TV","UG","UA","AE","GB","US","UY","UZ","VU","VA","VE","VN","VG","VI","YE","ZM","ZW"].map(e=>({code:e,name:zy(e)})).sort((e,t)=>e.name.localeCompare(t.name,"de"));function Cy(e,t,n){return[(e||"").trim(),[(t||"").trim(),(n||"").trim()].filter(Boolean).join(" ")].filter(Boolean).join("\n")}function Py(e){const t=(e||"").split("\n").map(e=>e.trim()).filter(Boolean),n=t[0]||"",a=t.slice(1).join(" ").trim(),r=a.match(/^(\S+)\s+(.*)$/);return{street:n,zip:r?r[1]:"",city:r?r[2]:a}}const Ay=[{key:"profile",icon:Nf},{key:"departments",icon:Sf},{key:"colleagues",icon:_f},{key:"billing",icon:zf},{key:"done",icon:Ef}],Ty=["Buchhaltung","HR","Logistik","Marketing","Produktion","Vertrieb","Verwaltung"];function Ry(e){let t=e.id,n=e.label,a=e.value,r=e.onChange,i=e.type,s=void 0===i?"text":i,o=e.required,l=e.placeholder;return(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"block text-sm font-semibold mb-1.5 text-foreground",children:[n,o&&(0,Te.jsx)("span",{className:"text-primary",children:" *"})]}),(0,Te.jsx)(gy,{"data-testid":"onb-input-".concat(t),type:s,value:a,onChange:e=>r(e.target.value),placeholder:l})]})}function Oy(){var e;
2const t=Ys(),n=t.open,r=t.setOpen,i=t.state,s=t.refresh,o=t.snoozeAutoOpen,l=Rs().setUser,c=Xa().t,d=sn(),u=Le((0,a.useState)(0),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=Le((0,a.useState)(""),2),w=y[0],j=y[1],k=Le((0,a.useState)(""),2),N=k[0],S=k[1],_=Le((0,a.useState)(""),2),z=_[0],E=_[1],C=Le((0,a.useState)(""),2),P=C[0],A=C[1],T=Le((0,a.useState)([]),2),R=T[0],O=T[1],D=Le((0,a.useState)(""),2),M=D[0],I=D[1],F=Le((0,a.useState)(""),2),L=F[0],B=F[1],q=Le((0,a.useState)(""),2),U=q[0],V=q[1],H=Le((0,a.useState)(""),2),W=H[0],K=H[1],G=Le((0,a.useState)("manager"),2),Z=G[0],Y=G[1],Q=Le((0,a.useState)(0),2),$=Q[0],X=Q[1],J=Le((0,a.useState)(""),2),ee=J[0],te=J[1],ne=Le((0,a.useState)(""),2),ae=(ne[0],ne[1]),re=Le((0,a.useState)(""),2),ie=re[0],se=re[1],oe=Le((0,a.useState)(""),2),le=oe[0],ce=oe[1],de=Le((0,a.useState)(""),2),ue=de[0],me=de[1],pe=Le((0,a.useState)("AT"),2),he=pe[0],fe=pe[1],ge=Le((0,a.useState)(""),2),xe=ge[0],ve=ge[1],be=Le((0,a.useState)(""),2),ye=be[0],we=be[1],je=Le((0,a.useState)(""),2),ke=je[0],Ne=je[1];if((0,a.useEffect)(()=>{if(n&&i){var e,t;const n=i.profile||{};j(n.first_name||""),S(n.last_name||""),E(n.phone||""),A(n.position||""),O(i.departments||[]);const a=(null===(e=i.firma)||void 0===e?void 0:e.billing)||{};te(a.company||(null===(t=i.firma)||void 0===t?void 0:t.name)||""),ae(a.address||"");const r=a.street||a.zip||a.city||!a.address?{}:Py(a.address);se(a.street||r.street||""),ce(a.zip||r.zip||""),me(a.city||r.city||""),fe(a.country||"AT"),ve(a.vat_id||""),we(a.invoice_email||""),Ne(a.contact||""),p(Math.min(i.step||0,4))}},[n,i]),!v&&(!n||!i||!i.eligible))return null;const Se=null===i||void 0===i||null===(e=i.branch)||void 0===e?void 0:e.id,_e=async(e,t)=>{try{await Ps.post("/onboarding/step",{step:e,done:t})}catch(n){}},ze=(null===i||void 0===i?void 0:i.done_steps)||[];return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Sy,{show:v}),n&&i&&i.eligible&&(0,Te.jsx)(co,{children:(0,Te.jsx)(ff.div,{initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0},className:"fixed inset-0 z-[100] bg-[#1F2A44]/70 backdrop-blur-sm flex items-center justify-center p-4 sm:p-6","data-testid":"onboarding-overlay",children:(0,Te.jsxs)(ff.div,{initial:{scale:.96,y:12,opacity:0},animate:{scale:1,y:0,opacity:1},transition:{duration:.25,ease:"easeOut"},className:"ps-typography bg-background w-full max-w-3xl max-h-[92vh] rounded-2xl shadow-2xl overflow-hidden flex flex-col","data-testid":"onboarding-wizard",children:[(0,Te.jsxs)("div",{className:"px-6 sm:px-8 pt-6 pb-4 border-b border-border",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl leading-tight","data-testid":"onboarding-title",children:c("onboarding.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-0.5",children:c("onboarding.subtitle")})]}),(0,Te.jsx)("button",{onClick:()=>o(),"data-testid":"onboarding-close",className:"text-sm text-muted-foreground hover:text-foreground shrink-0 mt-1",children:c("onboarding.close")})]}),(0,Te.jsx)("div",{className:"flex items-center mt-5",children:Ay.map((e,t)=>{const n=e.icon,r=t<m||t<4&&ze.includes(e.key),i=t===m;return(0,Te.jsxs)(a.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center gap-1.5 shrink-0","data-testid":"onboarding-step-".concat(e.key),children:[(0,Te.jsx)("div",{className:"w-9 h-9 rounded-full flex items-center justify-center border-2 transition-colors ".concat(i?"border-primary bg-primary text-white":r?"border-primary bg-primary/10 text-primary":"border-border bg-white text-muted-foreground"),children:r&&!i?(0,Te.jsx)(Cf,{size:17}):(0,Te.jsx)(n,{size:17})}),(0,Te.jsx)("span",{className:"text-[11px] font-semibold ".concat(i?"text-primary":"text-muted-foreground"),children:c("onboarding.step.".concat(e.key))})]}),t<Ay.length-1&&(0,Te.jsx)("div",{className:"flex-1 h-0.5 mx-1 mb-5 rounded ".concat(t<m?"bg-primary":"bg-border")})]},e.key)})})]}),(0,Te.jsxs)("div",{className:"px-6 sm:px-8 py-6 overflow-y-auto flex-1","data-testid":"onboarding-body",children:[0===m&&(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"onboarding-panel-profile",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:c("onboarding.profile.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:c("onboarding.profile.desc")})]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(Ry,{id:"firstname",label:c("onboarding.profile.firstName"),value:w,onChange:j,required:!0}),(0,Te.jsx)(Ry,{id:"lastname",label:c("onboarding.profile.lastName"),value:N,onChange:S,required:!0}),(0,Te.jsx)(Ry,{id:"phone",label:c("onboarding.profile.phone"),value:z,onChange:E}),(0,Te.jsx)(Ry,{id:"position",label:c("onboarding.profile.position"),value:P,onChange:A})]})]}),1===m&&(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"onboarding-panel-departments",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:c("onboarding.dept.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:c("onboarding.dept.desc")})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,Te.jsx)("div",{className:"flex-1 min-w-[180px]",children:(0,Te.jsx)(Ry,{id:"deptname",label:c("onboarding.dept.name"),value:M,onChange:I,placeholder:c("onboarding.dept.name")})}),(0,Te.jsx)("div",{className:"w-32",children:(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"block text-sm font-semibold mb-1.5 text-foreground",children:c("onboarding.dept.headcount")}),(0,Te.jsx)(gy,{"data-testid":"onb-input-depthc",type:"text",inputMode:"numeric",value:L,onChange:e=>B((e.target.value||"").replace(/[^0-9]/g,"")),onWheel:e=>e.currentTarget.blur(),placeholder:"z. B. 8"})]})}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{const e=M.trim();if(e&&Se){g(!0);try{const t=await Ps.post("/departments",{branch_id:Se,name:e,headcount:parseInt(L,10)||0,visible:!0});O(e=>[...e,{id:t.data.id,name:t.data.name,headcount:t.data.headcount}]),I(""),B(""),Ia.success(c("onboarding.dept.added"))}catch(rse){Ia.error(Cs(rse))}finally{g(!1)}}},disabled:f||!M.trim(),"data-testid":"onb-add-dept",children:[(0,Te.jsx)(Pf,{size:16})," ",c("onboarding.dept.add")]})]}),(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground","data-testid":"onb-dept-anon-hint",children:["F\xfcr anonyme Auswertungen sind mindestens ",5," Mitarbeitende je Abteilung n\xf6tig.",L&&Number(L)>0&&Number(L)<5?(0,Te.jsx)("span",{className:"text-amber-700 font-medium",children:" Diese Abteilung liegt unter der Anonymit\xe4tsgrenze \u2013 Ergebnisse werden hier nicht separat ausgewiesen."}):null]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground self-center",children:[c("onboarding.dept.suggestions"),":"]}),Ty.filter(e=>!R.some(t=>t.name===e)).map(e=>(0,Te.jsxs)("button",{type:"button",onClick:()=>I(e),"data-testid":"onb-dept-suggestion-".concat(e),className:"px-2.5 py-1 rounded-full text-xs border border-border bg-white hover:bg-zinc-50 text-foreground",children:["+ ",e]},e))]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"text-sm font-semibold mb-2",children:[c("onboarding.dept.existing")," (",R.length,")"]}),0===R.length?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"onb-dept-empty",children:c("onboarding.dept.empty")}):(0,Te.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"onb-dept-list",children:R.map(e=>(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-primary/10 text-sm text-foreground",children:[(0,Te.jsx)(Sf,{size:14,className:"text-primary"})," ",e.name,e.headcount?(0,Te.jsxs)("span",{className:"text-muted-foreground",children:["\xb7 ",e.headcount]}):null]},e.id))}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:c("onboarding.dept.hint")})]})]}),2===m&&(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"onboarding-panel-colleagues",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:c("onboarding.coll.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:c("onboarding.coll.desc")})]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(Ry,{id:"collname",label:c("onboarding.coll.name"),value:U,onChange:V}),(0,Te.jsx)(Ry,{id:"collemail",label:c("onboarding.coll.email"),value:W,onChange:K,type:"email"})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-end gap-3",children:[(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"block text-sm font-semibold mb-1.5 text-foreground",children:c("onboarding.coll.role")}),(0,Te.jsxs)("select",{"data-testid":"onb-coll-role",value:Z,onChange:e=>Y(e.target.value),className:"h-10 px-3 rounded-md border border-border text-sm bg-white focus:outline-none focus:ring-2 focus:ring-primary/40",children:[(0,Te.jsx)("option",{value:"manager",children:c("onboarding.coll.role.manager")}),(0,Te.jsx)("option",{value:"admin",children:c("onboarding.coll.role.admin")})]})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>
2{if(U.trim()&&W.trim()){g(!0);try{var e;await Ps.post("/users/invite",{email:W.trim(),name:U.trim(),role:Z,access:{firma_ids:[null===(e=i.firma)||void 0===e?void 0:e.id].filter(Boolean),filiale_ids:[Se].filter(Boolean),department_ids:[],tools:["care","analytics","pulse"]},notifications:[]}),X(e=>e+1),V(""),K(""),Y("manager"),Ia.success(c("onboarding.coll.sent"))}catch(rse){Ia.error(Cs(rse))}finally{g(!1)}}},disabled:f||!U.trim()||!W.trim(),"data-testid":"onb-invite-btn",children:[(0,Te.jsx)(Pf,{size:16})," ",c("onboarding.coll.invite")]}),$>0&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-sm text-primary font-semibold self-center","data-testid":"onb-invited-count",children:[(0,Te.jsx)(Cf,{size:16})," ",c("onboarding.coll.invited").replace("{count}",$)]})]})]}),3===m&&(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"onboarding-panel-billing",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:c("onboarding.billing.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:c("onboarding.billing.desc")})]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(Ry,{id:"bcompany",label:c("onboarding.billing.company"),value:ee,onChange:te}),(0,Te.jsx)(Ry,{id:"bvat",label:c("onboarding.billing.vat"),value:xe,onChange:ve}),(0,Te.jsx)("div",{className:"sm:col-span-2",children:(0,Te.jsx)(Ry,{id:"bstreet",label:"Stra\xdfe & Hausnummer",value:ie,onChange:se,placeholder:"Musterstra\xdfe 1"})}),(0,Te.jsx)(Ry,{id:"bzip",label:"PLZ",value:le,onChange:ce,placeholder:"1010"}),(0,Te.jsx)(Ry,{id:"bcity",label:"Ort",value:ue,onChange:me,placeholder:"Wien"}),(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"block text-sm font-semibold mb-1.5 text-foreground",children:"Land"}),(0,Te.jsx)("select",{"data-testid":"onb-billing-country",value:he,onChange:e=>fe(e.target.value),className:"h-10 w-full px-3 rounded-md border border-border text-sm bg-white focus:outline-none focus:ring-2 focus:ring-primary/40",children:Ey.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))})]}),(0,Te.jsx)(Ry,{id:"bemail",label:c("onboarding.billing.email"),value:ye,onChange:we,type:"email"}),(0,Te.jsx)(Ry,{id:"bcontact",label:c("onboarding.billing.contact"),value:ke,onChange:Ne})]})]}),4===m&&(0,Te.jsxs)("div",{className:"space-y-5 text-center","data-testid":"onboarding-panel-done",children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,Te.jsx)("div",{className:"w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center",children:(0,Te.jsx)(Ef,{size:30,className:"text-primary"})}),(0,Te.jsx)("h3",{className:"font-heading text-xl",children:c("onboarding.done.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground max-w-md",children:c("onboarding.done.desc")})]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-3 max-w-xl mx-auto",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>{r(!1),d("/manual")},"data-testid":"onb-done-manual",className:"rounded-xl border border-border p-4 flex flex-col items-center text-center hover:border-primary/50 hover:bg-zinc-50 transition-colors",children:[(0,Te.jsx)(Af,{size:20,className:"text-primary mb-2"}),(0,Te.jsx)("div",{className:"font-semibold text-sm",children:c("onboarding.done.manual")}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:c("onboarding.done.manualText")})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border p-4 flex flex-col items-center text-center","data-testid":"onb-done-support",children:[(0,Te.jsx)(Tf,{size:20,className:"text-primary mb-2"}),(0,Te.jsx)("div",{className:"font-semibold text-sm",children:c("onboarding.done.support")}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground mt-0.5",children:c("onboarding.done.supportText")})]})]})]})]}),(0,Te.jsxs)("div",{className:"px-6 sm:px-8 py-4 border-t border-border flex items-center justify-between gap-3 bg-white",children:[(0,Te.jsx)("div",{children:m>0&&m<4&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>p(e=>e-1),disabled:f,"data-testid":"onboarding-back",children:[(0,Te.jsx)(Rf,{size:16})," ",c("onboarding.back")]})}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[m>=1&&m<=3&&(0,Te.jsx)("button",{onClick:async()=>{1===m?(await _e(2,null),p(2)):2===m?(await _e(3,null),p(3)):3===m&&(await _e(4,null),p(4)),await s()},disabled:f,"data-testid":"onboarding-skip",className:"text-sm text-muted-foreground hover:text-foreground px-2",children:c("onboarding.skip")}),m<4?(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>
2{if(0===m){if(!await(async()=>{if(!w.trim()||!N.trim())return Ia.error(c("onboarding.profile.required")),!1;g(!0);try{return await Ps.post("/onboarding/profile",{first_name:w.trim(),last_name:N.trim(),phone:z.trim(),position:P.trim()}),!0}catch(rse){return Ia.error(Cs(rse)),!1}finally{g(!1)}})())return;p(1)}else if(1===m)await _e(2,"departments"),p(2);else if(2===m)await _e(3,"colleagues"),p(3);else if(3===m){if(!await(async()=>{g(!0);try{return await Ps.post("/onboarding/billing",{company:ee.trim(),street:ie.trim(),zip:le.trim(),city:ue.trim(),address:Cy(ie,le,ue),country:he,vat_id:xe.trim(),invoice_email:ye.trim(),contact:ke.trim()}),!0}catch(rse){return Ia.error(Cs(rse)),!1}finally{g(!1)}})())return;p(4)}await s()},disabled:f,"data-testid":"onboarding-next",children:f?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," ",c("onboarding.saving")]}):(0,Te.jsxs)(Te.Fragment,{children:[c("onboarding.next")," ",(0,Te.jsx)(Df,{size:16})]})}):(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{g(!0);try{await Ps.post("/onboarding/complete");const e=await Ps.get("/auth/me");l(e.data),await s(),r(!1),b(!0),setTimeout(()=>b(!1),2600),Ia.success(c("onboarding.completed"))}catch(rse){Ia.error(Cs(rse))}finally{g(!1)}},disabled:f,"data-testid":"onboarding-finish",children:f?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," ",c("onboarding.saving")]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Cf,{size:16})," ",c("onboarding.finish")]})})]})]})]})})})]})}const Dy=kf("compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function My(e){let t=e.step,n=e.index,r=e.total,i=e.rect,s=e.onPrev,o=e.onNext,l=e.onEnd,c=e.isLast;const d=Xa().t,u=(0,a.useRef)(null),m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)(!1),2),g=f[0],x=f[1];return(0,a.useEffect)(()=>{x(!1);const e=setTimeout(()=>x(!0),30);return()=>clearTimeout(e)},[n]),(0,a.useLayoutEffect)(()=>{var e;const t=window.innerWidth,n=window.innerHeight,a=(null===(e=u.current)||void 0===e?void 0:e.offsetHeight)||260;
2if(!i)return void h({top:Math.max(16,(n-a)/2),left:Math.max(16,(t-650)/2)});const r=Math.min(Math.max(16,i.left),t-650-16),s=i.bottom+14,o=s+a<n-16?s:Math.max(16,i.top-a-14);h({top:o,left:r})},[i,t]),(0,Te.jsxs)(Te.Fragment,{children:[i?(0,Te.jsx)("div",{className:"fixed z-[70] pointer-events-none",style:{top:i.top-6,left:i.left-6,width:i.width+12,height:i.height+12,borderRadius:12,boxShadow:"0 0 0 9999px rgba(15,23,42,0.55)",border:"2px solid hsl(var(--primary))",opacity:g?1:0,transition:"opacity 260ms ease"},"data-testid":"guide-spotlight"}):(0,Te.jsx)("div",{className:"fixed inset-0 z-[70] bg-slate-900/55 pointer-events-none",style:{opacity:g?1:0,transition:"opacity 260ms ease"},"data-testid":"guide-dim"}),(0,Te.jsx)("div",{ref:u,"data-testid":"guide-popup",className:"fixed z-[80] w-[650px] max-w-[calc(100vw-32px)] bg-white rounded-[12px] shadow-2xl border border-border overflow-hidden",style:p?{top:p.top,left:p.left,opacity:g?1:0,transition:"opacity 220ms ease"}:{visibility:"hidden"},children:(0,Te.jsxs)("div",{className:"p-5",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-primary","data-testid":"guide-title",children:t.title}),(0,Te.jsx)("div",{className:"text-sm text-foreground/80 leading-relaxed mt-[18px]","data-testid":"guide-body",dangerouslySetInnerHTML:{__html:t.body_html||""}}),(0,Te.jsxs)("div",{className:"mt-5 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:l,"data-testid":"guide-end",className:"inline-flex items-center gap-1.5 text-xs font-semibold rounded-full border border-border px-3 py-1.5 text-muted-foreground hover:bg-muted hover:text-foreground transition-colors",children:[(0,Te.jsx)(Dy,{size:14})," ",d("guide.explore_self")]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"text-xs text-muted-foreground mr-1","data-testid":"guide-progress",children:d("guide.progress").replace("{n}",n+1).replace("{total}",r)}),(0,Te.jsx)("button",{onClick:s,"data-testid":"guide-prev","aria-label":d("guide.prev"),disabled:0===n,className:"inline-flex items-center justify-center rounded-full border border-border w-9 h-9 hover:bg-muted transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:(0,Te.jsx)(Rf,{size:18})}),(0,Te.jsx)("button",{onClick:o,"data-testid":"guide-next","aria-label":d(c?"guide.finish":"guide.next"),className:"inline-flex items-center justify-center rounded-full bg-primary text-white w-9 h-9 hover:opacity-90 transition-opacity",children:c?(0,Te.jsx)(Cf,{size:18}):(0,Te.jsx)(Df,{size:18})})]})]})]})})]})}const Iy=kf("rocket",[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]]),Fy=kf("calendar-clock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]),Ly={scheduler_url:"https://calendly.com/persentis/einblicke",completion:{heading:"Konnten wir Sie bereits \xfcberzeugen?",body:"Sie haben die Tour erfolgreich abgeschlossen und k\xf6nnen auf eigene Faust PERSENTIS entdecken und sich durchklicken. Sie k\xf6nnen aber auch jederzeit eine Tour wiederholen.",benefit_headline:"Das steckt in PERSENTIS",benefits:["Anonyme, DSGVO konforme und wissenschaftlich fundierte Befragungen","Ergebnisse in Echtzeit \xfcber alle Filialen und Abteilungen vergleichbar","AI-gest\xfctzte Zusammenfassungen der offenen R\xfcckmeldungen","PERSENTIS ist simple und smart und in wenigen Minuten startklar"],show_pricing:!0,btn_register:"Registrieren und Starten",btn_booking:"Termin buchen",btn_register_enabled:!0,btn_booking_enabled:!0},free:{heading:"PERSENTIS Pulse LIVE probieren",body:"Starten Sie noch heute mit der 14-Tage-Demo und erleben Sie selbst, wie einfach es ist, mit PERSENTIS individuelle Umfragen zu entwickeln, die Ihre Mitarbeiter lieben.",benefit_headline:"",benefits:["Wertungsfragen, Offene Fragen, Aufz\xe4hlungsfragen, eNPS \u2026","Umfangreicher Fragenkatalog und FrageSets vorhanden.","Einmalige und wiederkehrende Umfragen."],show_pricing:!1,btn_register:"Registrieren & Starten",btn_booking:"Termin buchen",btn_register_enabled:!0,btn_booking_enabled:!0},free2:{heading:"Bleiben Sie nicht bei der Theorie stehen",body:"Sie haben sich schon einen guten \xdcberblick verschafft \u2013 am meisten \xfcberzeugt PERSENTIS jedoch im echten Einsatz. Sichern Sie sich jetzt Ihre kostenlose 14-Tage-Demo oder lasse
2n Sie sich alles pers\xf6nlich zeigen.",benefit_headline:"",benefits:["In wenigen Minuten startklar \u2013 ohne Installation.","Pers\xf6nliche Beratung zu Ihren Anwendungsf\xe4llen.","Unverbindlich und jederzeit k\xfcndbar."],show_pricing:!1,btn_register:"Registrieren & Starten",btn_booking:"Termin buchen",btn_register_enabled:!0,btn_booking_enabled:!0},questionnaire:{heading:"Das war ein erster Einblick",body:"Im PERSENTIS Guide gewinnen Sie einen ersten Eindruck \xfcber die Funktionsweise des Fragebogens. Gerne zeigen wir Ihnen pers\xf6nlich den vollen Umfang. Buchen Sie dazu einen Pr\xe4sentationstermin oder starten Sie gleich direkt PERSENTIS.",benefit_headline:"",benefits:[],show_pricing:!1,btn_register:"Registrieren & Starten",btn_booking:"Termin buchen",btn_register_enabled:!0,btn_booking_enabled:!0}};let By={};function qy(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"de")||"de",t=Le((0,a.useState)(By[e]||By.de||Ly),2),n=t[0],r=t[1];return(0,a.useEffect)(()=>{if(By[e])return void r(By[e]);const t="de"!==e?"?lang=".concat(encodeURIComponent(e)):"";Ps.get("/guide/cta".concat(t)).then(t=>{let n=t.data;By[e]=n,r(n)}).catch(()=>{})},[e]),n}const Uy=[{key:"pulse",label:"Pulse"},{key:"analytics",label:"Analytics"},{key:"care",label:"Care"},{key:"profiling",label:"Profiling"},{key:"boarding",label:"Boarding"}],Vy=["pulse","analytics","care"],Hy=new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",maximumFractionDigits:0}),Wy=new Intl.NumberFormat("de-DE",{style:"currency",currency:"EUR",minimumFractionDigits:2,maximumFractionDigits:2});function Ky(e){let t=e.segment;const n=Vy.includes(t)?t:null,r=Le((0,a.useState)(50),2),i=r[0],s=r[1],o=Le((0,a.useState)(n?[n]:["pulse","analytics","care"]),2),l=o[0],c=o[1],d=Le((0,a.useState)(null),2),u=d[0],m=d[1];(0,a.useEffect)(()=>{if(0===l.length)return void m({per_employee_month:0,total_month:0,bundle_discount_pct:0});const e=l.join(","),t=setTimeout(()=>{Ps.get("/guide/price?employees=".concat(i,"&products=").concat(e)).then(e=>{let t=e.data;return m(t)}).catch(()=>{})},150);return()=>clearTimeout(t)},[i,l]);const p=Math.min(i,1e3),h=(p-1)/999*100;return(0,Te.jsxs)("div",{className:"mt-6 rounded-xl border border-border bg-muted/30 p-5","data-testid":"guide-price-widget",children:[(0,Te.jsxs)("div",{className:"text-sm font-semibold text-foreground text-center",children:["Ihr Preis f\xfcr",(0,Te.jsx)("input",{type:"number",min:1,max:5e3,value:i,onChange:e=>s(Math.max(1,Math.min(5e3,parseInt(e.target.value||"0",10)||0))),"data-testid":"guide-price-employees",className:"mx-2 w-20 rounded-lg border border-border px-2 py-1 text-center font-bold"}),"Mitarbeitende"]}),(0,Te.jsx)("input",{type:"range",min:1,max:1e3,value:p,onChange:e=>s(parseInt(e.target.value,10)),"data-testid":"guide-price-slider",className:"ct-price-slider w-full mt-3",style:{background:"linear-gradient(to right, hsl(var(--primary)) 0%, hsl(var(--primary)) ".concat(h,"%, var(--gray-01) ").concat(h,"%, var(--gray-01) 100%)")}}),(0,Te.jsxs)("div",{className:"mt-4 text-center",children:[(0,Te.jsx)("div",{className:"text-4xl sm:text-5xl font-heading text-primary leading-tight","data-testid":"guide-price-per-employee",children:0===l.length?"0,\u2013":u?Wy.format(u.per_employee_month):"\u2026"}),(0,Te.jsx)("div",{className:"text-sm text-muted-foreground mt-1",children:"pro Mitarbeiter / Monat"}),u&&(0,Te.jsxs)("div",{className:"text-sm text-foreground/70 mt-2","data-testid":"guide-price-total",children:["Gesamt ",0===l.length?"0,\u2013":Hy.format(u.total_month)," / Monat",l.length>0&&u.bundle_discount_pct>0&&(0,Te.jsxs)("span",{className:"text-primary font-semibold",children:[" \xb7 inkl. ",u.bundle_discount_pct,"% Rabatt"]})]})]}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2 mt-4 justify-center",children:Uy.map(e=>{const t=l.includes(e.key);return(0,Te.jsx)("button",{onClick:()=>(e=>c(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]))(e.key),"data-testid":"guide-price-product-".concat(e.key),className:"rounded-full px-3 py-1.5 text-xs font-semibold border transition-colors ".concat(t?"bg-primary text-white border-primary":"bg-white text-foreground border-border hover:border-primary"),children:e.label},e.key)})}),(0,Te.jsx)("p",{className:"text-[11px] text-muted-foreground mt-3 text-center",children:"Alle Preise netto zzgl. USt."})]})}function Gy(e){let t=e.onRepeat,n=(e.onRestart,e.onClose),a=e.track,r=e.segment;const i=Ws().exitCt,s=qy(Xa().lang),o=s.completion||{},l=!1!==o.btn_register_enabled,c=!1!==o.btn_booking_enabled;return(0,Te.jsx)("div",{className:"fixed inset-0 z-[80] bg-slate-900/60 flex items-center justify-center p-4 overflow-y-auto","data-testid":"guide-completion",children:(0,Te.jsx)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-2xl w-full my-8",children:(0,Te.jsxs)("div",{className:"p-7",children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl sm:text-3xl text-primary","data-testid":"guide-completion-title",children:o.heading}),(0,Te.jsx)("p",{className:"text-sm font-bold text-black mt-3 whitespace-pre-line","data-testid":"guide-completion-free",children:o.body}),o.benefit_headline?(0,Te.jsx)("h3",{className:"font-bold text-black mt-6",style:{fontSize:"19px"},"data-testid":"guide-completion-benefit-title",children:o.benef
2it_headline}):null,(0,Te.jsx)("div",{className:"flex flex-col gap-2 mt-3",children:(o.benefits||[]).map((e,t)=>(0,Te.jsx)("div",{className:"rounded-lg text-white font-bold text-sm px-4 py-3",style:{backgroundColor:"var(--gray-03)"},"data-testid":"guide-benefit-".concat(t),children:e},t))}),o.show_pricing&&(0,Te.jsx)(Ky,{segment:r}),l&&(0,Te.jsxs)("button",{onClick:()=>{try{a&&a("cta_clicked",{meta:{source:"completion_register"}})}catch(e){}try{i&&i()}catch(t){}try{window.localStorage.removeItem("persentis_token"),window.localStorage.removeItem("persentis_public_demo")}catch(n){}window.location.href="https://login.persentis.com/register"},"data-testid":"guide-completion-cta",className:"mt-6 w-full inline-flex items-center justify-center gap-2 rounded-full bg-primary text-white px-6 py-3 font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Iy,{size:18})," ",o.btn_register]}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 mt-3",children:[(0,Te.jsxs)("button",{onClick:t,"data-testid":"guide-repeat",className:"flex-1 rounded-full bg-primary/10 text-primary border border-primary/30 font-semibold px-5 py-2.5 hover:bg-primary/15 transition-colors inline-flex items-center justify-center gap-2",children:[(0,Te.jsx)(Ff,{size:16})," Tour wiederholen"]}),c&&(0,Te.jsxs)("a",{href:s.scheduler_url,target:"_blank",rel:"noopener noreferrer",onClick:()=>a&&a("cta_clicked",{meta:{source:"completion_booking"}}),"data-testid":"guide-book",className:"flex-1 rounded-full border border-border font-semibold px-5 py-2.5 hover:bg-muted transition-colors inline-flex items-center justify-center gap-2",children:[(0,Te.jsx)(Fy,{size:16})," ",o.btn_booking]}),(0,Te.jsxs)("button",{onClick:n,"data-testid":"guide-close",className:"flex-1 rounded-full border border-border font-semibold px-5 py-2.5 hover:bg-muted transition-colors inline-flex items-center justify-center gap-2",children:[(0,Te.jsx)(Iv,{size:16})," Tour beenden"]})]})]})})})}function Zy(){const e=Ws(),t=e.ctMode,n=e.guideEnabled,r=e.done,i=e.exitCt,s=e.track,o=qy(Xa().lang),l=Le((0,a.useState)(null),2),c=l[0],d=l[1],u=(0,a.useRef)(null),m=t&&!n&&!r;if((0,a.useEffect)(()=>{if(!m)return;if("undefined"!==typeof window&&"1"===window.sessionStorage.getItem("ct_free_cta_shown"))return;const e=setTimeout(()=>{try{window.sessionStorage.setItem("ct_free_cta_shown","1")}catch(e){}d("free")},18e4);return()=>clearTimeout(e)},[m]),(0,a.useEffect)(()=>()=>{u.current&&clearTimeout(u.current)},[]),!m||!c)return null;const p=c,h=o[p]||{},f=!1!==h.btn_register_enabled,g=!1!==h.btn_booking_enabled;return(0,Te.jsx)("div",{className:"fixed inset-0 z-[90] flex items-center justify-center bg-black/50 p-4 overflow-y-auto","data-testid":"guide-".concat(p,"-cta"),children:(0,Te.jsxs)("div",{className:"w-full max-w-lg bg-white rounded-2xl shadow-2xl p-6 sm:p-7 relative my-8",children:[(0,Te.jsx)("button",{onClick:()=>{d(null),"free"===p&&("undefined"!==typeof window&&"1"===window.sessionStorage.getItem("ct_free2_cta_shown")||(u.current=setTimeout(()=>{if("1"!==window.sessionStorage.getItem("ct_free2_cta_shown")){try{window.sessionStorage.setItem("ct_free2_cta_shown","1")}catch(e){}d("free2")}},12e4)))},"data-testid":"guide-".concat(p,"-cta-close"),"aria-label":"Schlie\xdfen",className:"absolute top-3 right-3 w-8 h-8 flex items-center justify-center rounded-full text-muted-foreground hover:bg-[#F3F3F4] transition-colors",children:(0,Te.jsx)(Iv,{size:18})}),(0,Te.jsx)("h2",{className:"font-heading text-2xl sm:text-3xl text-primary pr-8","data-testid":"guide-".concat(p,"-cta-title"),children:h.heading}),(0,Te.jsx)("p",{className:"text-sm text-black font-bold mt-3 leading-relaxed whitespace-pre-line",children:h.body}),h.benefit_headline?(0,Te.jsx)("h3",{className:"font-bold text-black mt-5",style:{fontSize:"19px"},children:h.benefit_headline}):null,(0,Te.jsx)("div",{className:"space-y-2 mt-4",children:(h.benefits||[]).map((e,t)=>(0,Te.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg text-white font-bold px-4 py-3 text-sm",style:{backgroundColor:"var(--gray-03)"},"data-testid":"guide-".concat(p,"-cta-benefit-").concat(t),children:[(0,Te.jsx)(Cf,{size:16,className:"shrink-0"}),(0,Te.jsx)("span",{children:e})]},t))}),h.show_pricing&&(0,Te.jsx)(Ky,{segment:"free"===p?"pulse":null}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[f&&(0,Te.jsxs)("button",{onClick:()=>{try{s&&s("cta_clicked",{meta:{source:"".concat(p,"_register")}})}catch(e){}try{i&&i()}catch(t){}try{window.localStorage.removeItem("persentis_token"),window.localStorage.removeItem("persentis_public_demo")}catch(n){}window.location.href="https://login.persentis.com/register"},"data-testid":"guide-".concat(p,"-cta-register"),className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full bg-primary text-white px-5 py-3 text-sm font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Iy,{size:16})," ",h.btn_register]}),g&&(0,Te.jsxs)("a",{href:o.scheduler_url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{try{s&&s("cta_clicked",{meta:{source:"".concat(p,"_booking")}})}catch(e){}},"data-testid":"guide-".concat(p,"-cta-booking"),className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full border-2 border-primary text-primary px-5 py-3 text-sm font-semibold hover:bg-primary/5 transition-colors",children:[(0,Te.jsx)(Fy,{size:16})," ",h.btn_booking]})]})]})})}const Yy={alles:["home","analytics","pulse","care"],analytics:["analytics"],pulse:["pulse"],care:["care"]},Qy=e=>e&&e.trim().startsWith("[")?e:'[data-testid="'.concat(e,'"]'),$y=["/survey","/analytics-survey","/pulse-survey","/guide","/login","/demo","/register","/confirm-email","/forgot-password","/reset-password","/set-password"],Xy=[{key:"analytics",label:"PERSENTIS Analytics",descKey:"guide.seg.analytics.desc"},{key:"pulse",label:"PERSENTIS Pulse",descKey:"guide.seg.pulse.desc"},{key:"care",label:"PERSENTIS Care",descKey:"guide.seg.care.desc"},{key:"alles",labelKey:"guide.seg.all.label",descKey:"guide.seg.all.desc"}];function Jy(e){let t=e.onChoose,n=e.intro,a=e.onLater;const r=Xa().t,i=n&&n.title||r("guide.welcome.title"),s=n&&n.body_html||r("guide.welcome.body");return(0,Te.jsx)("div",{className:"fixed inset-0 z-[80] bg-slate-900/60 flex items-center justify-center p-4 overflow-y-auto","data-testid":"guide-segment-picker",children:(0,Te.jsx)("div",{className:"bg-white rounded-2xl shadow-2xl max-w-lg w-full overflow-hidden my-auto",children:(0,Te.jsxs)("div",{className:"p-7",children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl text-primary","data-testid":"guide-welcome-title",children:i}),(0,Te.jsx)("div",{className:"text-sm text-muted-foreground mt-2 leading-relaxed [&_a]:text-primary [&_a]:underline [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5 [&_p]:mb-2","data-testid":"guide-welcome-body",dangerouslySetInnerHTML:{__html:s}}),(0,Te.jsx)("div",{className:"grid gap-3 mt-5",children:Xy.map(e=>(0,Te.jsxs)("button",{onClick:()=>t(e.key),"data-testid":"guide-segment-".concat(e.key),className:"group text-left rounded-xl border border-border hover:border-primary hover:bg-primary transition-colors p-4",children:[(0,Te.jsx)("div",{className:"font-semibold text-foreground group-hover:text-white group-hover:font-bold transition-colors",children:e.labelKey?r(e.labelKey):e.label}),(0,Te.jsx)("div",{className:"text-sm text-muted-foreground group-hover:text-white/90 transition-colors",children:r(e.descKey)})]},e.key))}),(0,Te.jsx)("button",{onClick:a,"data-testid":"guide-later",className:"mt-3 w-full rounded-xl border border-border text-sm font-medium text-muted-foreground py-2.5 hover:bg-muted transition-colors",children:r("guide.later")})]})})})}function ew(){const e=Ws(),t=e.ctMode,n=e.guideEnabled,r=e.segment,i=e.stepIndex,s=e.done,o=e.steps,l=e.chooseSegment,c=e.setStepIndex,d=e.setDone,u=e.toggleGuide,m=e.backToPicker,p=e.repeatSegment,h=e.track,f=sn(),g=nn(),x=Le((0,a.useState)(null),2),v=x[0],b=x[1];(0,a.useEffect)(()=>
2{if(!t)return;const e=navigator.userAgent||"";(/Android.*Mobile|iPhone|iPod|Windows Phone|BlackBerry|Opera Mini|IEMobile/i.test(e)||"undefined"!==typeof window&&window.matchMedia&&window.matchMedia("(max-width: 767px) and (pointer: coarse)").matches)&&window.location.replace("https://www.persentis.com/lp/guide")},[t]);const y=(0,a.useMemo)(()=>{if(!r)return[];const e=Yy[r]||[r];return o.filter(t=>e.includes(t.segment)&&"home.intro"!==t.key).sort((t,n)=>e.indexOf(t.segment)-e.indexOf(n.segment)||t.order-n.order)},[o,r]),w=(0,a.useMemo)(()=>o.find(e=>"home.intro"===e.key),[o]),j=!s&&r&&i<y.length?y[i]:null,k=(N=g.pathname,$y.some(e=>N===e||N.startsWith(e+"/")));var N;(0,a.useEffect)(()=>{if(!t||!n||!j||k)return void b(null);let e=!1;if(j.route&&g.pathname!==j.route)return void f(j.route);let a=0,r=!1;b(null);const i=()=>{if(e)return;if(j.on_enter_click&&!r){const e=document.querySelector(Qy(j.on_enter_click));e&&("true"!==e.getAttribute("aria-expanded")&&("function"===typeof e.click?e.click():e.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))),r=!0)}const t=j.target_selector,n=t?document.querySelector(Qy(t)):null;if(n){const t=window.innerHeight||800,a=n.getBoundingClientRect().height>t-220;return n.scrollIntoView({behavior:"auto",block:a?"start":"center"}),void setTimeout(()=>{e||b(n.getBoundingClientRect())},150)}a+=1,a>25?b(null):setTimeout(i,100)};return i(),()=>{e=!0}},[t,n,j,g.pathname,f,k]),(0,a.useEffect)(()=>{if(!j)return;let e,t="";const n=()=>{const a=j.target_selector,r=a?document.querySelector(Qy(a)):null;if(r){const e=r.getBoundingClientRect(),n="".concat(Math.round(e.top),"|").concat(Math.round(e.left),"|").concat(Math.round(e.width),"|").concat(Math.round(e.height));n!==t&&(t=n,b(e))}e=requestAnimationFrame(n)};return e=requestAnimationFrame(n),()=>cancelAnimationFrame(e)},[j]),(0,a.useEffect)(()=>{t&&n&&!k&&null!==j&&void 0!==j&&j.key&&h("step_viewed",{step_id:j.key,segment:r})},[t,n,k,j,r,h]);const S=y.length,_=0===i,z=S>0&&i===S-1,E=(0,a.useCallback)(()=>{if(j){if("click"===j.on_next){const e=document.querySelector(Qy(j.click_selector||j.target_selector));e&&e.click()}z?d(!0):c(i+1)}},[j,z,i,d,c]),C=(0,a.useCallback)(()=>{_?m():c(i-1)},[_,i,m,c]);if((0,a.useEffect)(()=>{if(!(t&&n&&j)||s||k)return;const e=e=>{const t=e.target;t&&("INPUT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable)||("ArrowRight"===e.key?(e.preventDefault(),E()):"ArrowLeft"===e.key&&(e.preventDefault(),C()))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[t,n,j,s,k,E,C]),!t||k)return null;let P=null;return!n||r||s?s?P=(0,Te.jsx)(Gy,{onRepeat:p,onRestart:m,onClose:()=>{d(!1),n&&u()},track:h,segment:r}):n&&j&&(P=(0,Te.jsx)(My,{step:j,index:i,total:S,rect:v,isLast:z,onPrev:C,onNext:E,onEnd:()=>u()})):P=(0,Te.jsx)(Jy,{onChoose:l,intro:w,onLater:()=>{h("guide_skipped"),n&&u()}}),(0,Te.jsxs)(Te.Fragment,{children:[P,(0,Te.jsx)(Zy,{})]})}const tw=[/^\/$/,/^\/welcome$/,/^\/dashboard$/,/^\/analytics\/dashboard$/,/^\/analytics\/invitations$/,/^\/analytics\/auswertungen(\/[^/]+)?$/,/^\/auswertungen$/,/^\/analysis\/[^/]+$/,/^\/invitations$/,/^\/pulse$/,/^\/pulse\/[^/]+\/dashboard$/,/^\/pulse\/[^/]+\/invitations$/,/^\/pulse\/[^/]+\/auswertungen(\/[^/]+)?$/,/^\/pulse\/[^/]+\/barometer\/[^/]+$/],nw=[/^\/guide/,/^\/survey/,/^\/analytics-survey/,/^\/pulse-survey/,/^\/login/,/^\/register/,/^\/demo/,/^\/demo-sandbox/,/^\/confirm-email/,/^\/forgot-password/,/^\/reset-password/,/^\/set-password/,/^\/pay/,/^\/payment/];function aw(){const e=Rs(),t=e.user,n=e.publicDemo,r=nn(),i=sn();return(0,a.useEffect)(()=>{if(!(!!n||!(null===t||void 0===t||!t.is_public_demo)))return;const e=r.pathname;nw.some(t=>t.test(e))||tw.some(t=>t.test(e))||i("/welcome",{replace:!0})},[t,n,r.pathname,i]),null}const rw=kf("languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);function iw(){const e=Le((0,a.useState)(!1),2),t=e[0],n=e[1],r=Le((0,a.useState)({done:0,total:0}),2),i=r[0],s=r[1],o=(0,a.useRef)(null),l=()=>{const e=localStorage.getItem("persentis_impersonation_origin");return e?{headers:{Authorization:"Bearer ".concat(e)}}:{}},c=async()=>{try{const e=(await Ps.get("/ui-texts/translate-all/status",l())).data;s({done:e.done||0,total:e.total||0}),e.running||(n(!1),clearInterval(o.current),o.current=null,Ia.success("\xdcbersetzung abgeschlossen (".concat(e.done||0," Eintr\xe4ge \xfcbersetzt).")))}catch(e){}};(0,a.useEffect)(()=>()=>{o.current&&clearInterval(o.current)},[]);const d=t?"\xdcbersetze \u2026 ".concat(i.total?"".concat(i.done,"/").concat(i.total):"").trim():"Alle Texte \xfcbersetzen";return(0,Te.jsxs)("button",{type:"button",onClick:async()=>
2{if(!t)try{const e=(await Ps.post("/ui-texts/translate-all",{},l())).data;e.running&&!e.started?Ia.info("Eine \xdcbersetzung l\xe4uft bereits."):Ia.info("\xdcbersetzung aller vorhandenen Texte gestartet \u2026"),n(!0),s({done:0,total:0}),o.current&&clearInterval(o.current),o.current=setInterval(c,2500)}catch(rse){Ia.error("\xdcbersetzung konnte nicht gestartet werden.")}},disabled:t,"data-testid":"batch-translate-btn",title:"Alle vorhandenen Text-Overrides in EN/FR/ES/IT \xfcbersetzen",className:"fixed top-4 left-[68px] z-[60] inline-flex items-center gap-2 rounded-full h-11 px-4 shadow-lg bg-white text-foreground border border-border hover:bg-zinc-100 transition-colors print:hidden disabled:opacity-70",children:[t?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(rw,{size:16}),(0,Te.jsx)("span",{className:"text-xs font-semibold",children:d})]})}function sw(){const e=Is(),t=e.canEdit,n=e.editMode,a=e.toggleEditMode;return t?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("button",{type:"button",onClick:a,"data-testid":"edit-mode-toggle",title:n?"Bearbeiten-Modus ausschalten":"Texte bearbeiten \u2013 Bearbeiten-Modus einschalten",className:"fixed top-4 left-6 z-[60] inline-flex items-center justify-center rounded-full w-11 h-11 shadow-lg transition-colors print:hidden ".concat(n?"bg-primary text-white hover:bg-[var(--brand-primary-dark)]":"bg-white text-foreground border border-border hover:bg-zinc-100"),children:n?(0,Te.jsx)(Cf,{size:18}):(0,Te.jsx)(Mf,{size:18})}),n&&(0,Te.jsx)(iw,{})]}):null}const ow=kf("monitor-smartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]]);function lw(e){let t=e.size,n=void 0===t?"md":t;const a=e.width||{sm:130,md:180,lg:230}[n];return(0,Te.jsx)("img",{src:"/persentis-logo.png",alt:"persentis",width:a,style:{width:a,height:"auto",display:"block"},className:"select-none","data-testid":"persentis-logo",draggable:!1})}const cw=/^\/(survey|analytics-survey)\//;function dw(){return(0,Te.jsxs)("div",{"data-testid":"small-screen-block",className:"fixed inset-0 z-[9999] flex flex-col items-center justify-center bg-white px-8 text-center",children:[(0,Te.jsx)("div",{className:"mb-8",children:(0,Te.jsx)(lw,{width:161})}),(0,Te.jsx)("div",{className:"flex items-center justify-center w-16 h-16 rounded-full bg-primary/10 text-primary mb-6",children:(0,Te.jsx)(ow,{size:30})}),(0,Te.jsx)("p",{"data-testid":"small-screen-block-text",className:"max-w-md text-base leading-relaxed text-foreground",children:"Bitte \xf6ffnen Sie die Anwendung am PC oder Laptop und erweitern Sie das Browserfenster auf maximale Gr\xf6\xdfe."})]})}function uw(e){let t=e.children;const n=nn(),r=Le((0,a.useState)(()=>window.innerWidth<768),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{const e=()=>s(window.innerWidth<768);return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);const o=cw.test(n.pathname),l="/guide"===n.pathname||n.pathname.startsWith("/guide/")||"undefined"!==typeof window&&("1"===window.sessionStorage.getItem("ct_mode")||"1"===window.localStorage.getItem("persentis_ct"));return(0,a.useEffect)(()=>{i&&!o&&l&&window.location.replace("https://www.persentis.com/lp/guide")},[i,o,l]),(0,a.useEffect)(()=>{const e=o||i;document.body.classList.toggle("no-userback",e);try{const t=window.Userback;t&&"function"===typeof t.hideLauncher&&(e?t.hideLauncher():t.showLauncher())}catch(rse){}},[o,i]),i&&!o?l?null:(0,Te.jsx)(dw,{}):t}const mw={kritisch:"#E5341D",moderat:"#EC7829",exzellent:"#47A350"};function pw(){const e=Le((0,a.useState)(mw),2),t=e[0],n=e[1];return(0,a.useEffect)(()=>{Ps.get("/analytics/palette").then(e=>{var t;const a=(null===(t=e.data)||void 0===t?void 0:t.config)||{};n({kritisch:a.kritisch||mw.kritisch,moderat:a.moderat||mw.moderat,exzellent:a.exzellent||mw.exzellent})}).catch(()=>{})},[]),t}function hw(e){if(!e||"undefined"===typeof document)return;const t=document.documentElement,n=function(e){if(!e)return null;let t=String(e).replace("#","").trim();
2if(3===t.length&&(t=t.split("").map(e=>e+e).join("")),6!==t.length)return null;const n=parseInt(t.slice(0,2),16)/255,a=parseInt(t.slice(2,4),16)/255,r=parseInt(t.slice(4,6),16)/255,i=Math.max(n,a,r),s=Math.min(n,a,r),o=(i+s)/2;let l=0,c=0;const d=i-s;if(0!==d){switch(c=o>.5?d/(2-i-s):d/(i+s),i){case n:l=(a-r)/d+(a<r?6:0);break;case a:l=(r-n)/d+2;break;default:l=(n-a)/d+4}l/=6}return{h:Math.round(360*l),s:Math.round(100*c),l:Math.round(100*o)}}(e.primary);if(n){const e="".concat(n.h," ").concat(n.s,"% ").concat(n.l,"%");t.style.setProperty("--primary",e),t.style.setProperty("--ring",e),t.style.setProperty("--accent","".concat(n.h," ").concat(n.s,"% 95%")),t.style.setProperty("--accent-foreground","".concat(n.h," ").concat(n.s,"% 25%")),t.style.setProperty("--brand-primary-dark","hsl(".concat(n.h," ").concat(n.s,"% ").concat(Math.max(0,n.l-8),"%)"))}e.secondary&&t.style.setProperty("--brand-secondary",e.secondary),e.gray_01&&t.style.setProperty("--gray-01",e.gray_01),e.gray_02&&t.style.setProperty("--gray-02",e.gray_02),e.gray_03&&t.style.setProperty("--gray-03",e.gray_03)}const fw={Anton:"https://fonts.googleapis.com/css2?family=Anton&display=swap","IBM Plex Sans":"https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap","Roboto Condensed":"https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;500;600;700&display=swap",Inter:"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap",Roboto:"https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap",Lato:"https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap",Montserrat:"https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap","Open Sans":"https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap",Poppins:"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap","Source Sans 3":"https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap",Nunito:"https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap","Work Sans":"https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap",Merriweather:"https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap","Playfair Display":"https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap"};function gw(e){if(!e||"undefined"===typeof document)return;const t=document.documentElement;["h1","h2","h3","h4","h5","h6","body"].forEach(n=>{const a=e[n];a&&(!function(e){if(!e||"undefined"===typeof document)return;const t=fw[e];if(!t)return;const n="ps-font-"+e.replace(/\s+/g,"-").toLowerCase();if(document.getElementById(n))return;const a=document.createElement("link");a.rel="stylesheet",a.href=t,a.id=n,document.head.appendChild(a)}(a.family),t.style.setProperty("--font-".concat(n),'"'.concat(a.family,'", "IBM Plex Sans", sans-serif')),t.style.setProperty("--size-".concat(n),"".concat(a.size,"px")),t.style.setProperty("--weight-".concat(n),String(a.weight)))})}const xw=kf("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),vw=kf("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]),bw=kf("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),yw=kf("chart-no-axes-column",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]),ww=kf("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]]),jw=kf("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}
2]]),kw=kf("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),Nw=kf("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),Sw=kf("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),_w=kf("repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]),zw=kf("heart-pulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]),Ew=kf("archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]),Cw=kf("circle-user",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]),Pw=kf("log-out",[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]]),Aw=kf("ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]),Tw=["top","right","bottom","left"],Rw=Math.min,Ow=Math.max,Dw=Math.round,Mw=Math.floor,Iw=e=>({x:e,y:e}),Fw={left:"right",right:"left",bottom:"top",top:"bottom"};function Lw(e,t,n){return Ow(e,Rw(t,n))}function Bw(e,t){return"function"===typeof e?e(t):e}function qw(e){return e.split("-")[0]}function Uw(e){return e.split("-")[1]}function Vw(e){return"x"===e?"y":"x"}function Hw(e){return"y"===e?"height":"width"}function Ww(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Kw(e){return Vw(Ww(e))}function Gw(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Zw=["left","right"],Yw=["right","left"],Qw=["top","bottom"],$w=["bottom","top"];function Xw(e,t,n,a){const r=Uw(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Yw:Zw:t?Zw:Yw;case"left":case"right":return t?Qw:$w;default:return[]}}(qw(e),"start"===n,a);return r&&(i=i.map(e=>e+"-"+r),t&&(i=i.concat(i.map(Gw)))),i}function Jw(e){const t=qw(e);return Fw[t]+e.slice(t.length)}function ej(e){return"number"!==typeof e?function(e){return d({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function tj(e){const t=e.x,n=e.y,a=e.width,r=e.height;return{width:a,height:r,top:n,left:t,right:t+a,bottom:n+r,x:t,y:n}}const nj=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],aj=["strategy"],rj=["mainAxis","crossAxis","limiter"],ij=["apply"];function sj(e,t,n){let a=e.reference,r=e.floating;const i=Ww(t),s=Kw(t),o=Hw(s),l=qw(t),c="y"===i,d=a.x+a.width/2-r.width/2,u=a.y+a.height/2-r.height/2,m=a[o]/2-r[o]/2;let p;switch(l){case"top":p={x:d,y:a.y-r.height};break;case"bottom":p={x:d,y:a.y+a.height};break;case"right":p={x:a.x+a.width,y:u};break;case"left":p={x:a.x-r.width,y:u};break;default:p={x:a.x,y:a.y}}switch(Uw(t)){case"start":p[s]-=m*(n&&c?-1:1);break;case"end":p[s]+=m*(n&&c?-1:1)}return p}async function oj(e,t){var n;void 0===t&&(t={});const a=e.x,r=e.y,i=e.platform,s=e.rects,o=e.elements,l=e.strategy,c=Bw(t,e),d=c.boundary,u=void 0===d?"clippingAncestors":d,m=c.rootBoundary,p=void 0===m?"viewport":m,h=c.elementContext,f=void 0===h?"floating":h,g=c.altBoundary,x=void 0!==g&&g,v=c.padding,b=ej(void 0===v?0:v),y=o[x?"floating"===f?"reference":"floating":f],w=tj(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(y)))||n?y:y.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:p,strategy:l})),j="floating"===f?{x:a,y:r,width:s.floating.width,height:s.floating.height}:s.reference,k=await(null==i.getOffsetParent?void 0:i.getOffsetParent(o.floating)),N=await(null==i.isElement?void 0:i.isElement(k))&&await(null==i.getScale?void 0:i.getScale(k))||{x:1,y:1},S=tj(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:j,offsetParent:k,strategy:l}):j);return{top:(w.top-S.top+b.top)/N.y,bottom:(S.bottom-w.bottom+b.bottom)/N.y,left:(w.left-S.left+b.left)/N.x,right:(S.right-w.right+b.right)/N.x}}function lj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function cj(e){return Tw.some(t=>e[t]>=0)}const dj=new Set(["left","top"]);function uj(){return"undefined"!==typeof window}function mj(e){return fj(e)?(e.nodeName||"").toLowerCase():"#document"}function pj(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hj(e){var t;return null==(t=(fj(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function fj(e){return!!uj()&&(e instanceof Node||e instanceof pj(e).Node)}function gj(e){return!!uj()&&(e instanceof Element||e instanceof pj(e).Element)}function xj(e){return!!uj()&&(e instanceof HTMLElement||e instanceof pj(e).HTMLElement)}function vj(e){return!(!uj()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof pj(e).ShadowRoot)}function bj(e){const t=Cj(e),n=t.overflow,a=t.overflowX,r=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+r+a)&&"inline"!==i&&"contents"!==i}function yj(e){return/^(table|td|th)$/.test(mj(e))}function wj(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const jj=/transform|translate|scale|rotate|perspective|filter/,kj=/paint|layout|strict|content/,Nj=e=>!!e&&"none"!==e;let Sj;function _j(e){const t=gj(e)?Cj(e):e;return Nj(t.transform)||Nj(t.translate)||Nj(t.scale)||Nj(t.rotate)||Nj(t.perspective)||!zj()&&(Nj(t.backdropFilter)||Nj(t.filter))||jj.test(t.willChange||"")||kj.test(t.contain||"")}function zj(){return null==Sj&&(Sj="undefined"!==typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Sj}function Ej(e){return/^(html|body|#document)$/.test(mj(e))}function Cj(e){return pj(e).getComputedStyle(e)}function Pj(e){return gj(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Aj(e){if("html"===mj(e))return e;const t=e.assignedSlot||e.parentNode||vj(e)&&e.host||hj(e);return vj(t)?t.host:t}function Tj(e){const t=Aj(e);return Ej(t)?e.ownerDocument?e.ownerDocument.body:e.body:xj(t)&&bj(t)?t:Tj(t)}function Rj(e,t,n){var a;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Tj(e),i=r===(null==(a=e.ownerDocument)?void 0:a.body),s=pj(r);if(i){const e=Oj(s);
vendor: 4,099 bytes, line 2
2return t.concat(s,s.visualViewport||[],bj(r)?r:[],e&&n?Rj(e):[])}return t.concat(r,Rj(r,[],n))}function Oj(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Dj(e){const t=Cj(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const r=xj(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:a,o=Dw(n)!==i||Dw(a)!==s;return o&&(n=i,a=s),{width:n,height:a,$:o}}function Mj(e){return gj(e)?e:e.contextElement}function Ij(e){const t=Mj(e);if(!xj(t))return Iw(1);const n=t.getBoundingClientRect(),a=Dj(t),r=a.width,i=a.height,s=a.$;let o=(s?Dw(n.width):n.width)/r,l=(s?Dw(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),l&&Number.isFinite(l)||(l=1),{x:o,y:l}}const Fj=Iw(0);function Lj(e){const t=pj(e);return zj()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Fj}function Bj(e,t,n,a){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Mj(e);let s=Iw(1);t&&(a?gj(a)&&(s=Ij(a)):s=Ij(e));const o=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==pj(e))&&t}(i,n,a)?Lj(i):Iw(0);let l=(r.left+o.x)/s.x,c=(r.top+o.y)/s.y,d=r.width/s.x,u=r.height/s.y;if(i){const e=pj(i),t=a&&gj(a)?pj(a):a;let n=e,r=Oj(n);for(;r&&a&&t!==n;){const e=Ij(r),t=r.getBoundingClientRect(),a=Cj(r),i=t.left+(r.clientLeft+parseFloat(a.paddingLeft))*e.x,s=t.top+(r.clientTop+parseFloat(a.paddingTop))*e.y;l*=e.x,c*=e.y,d*=e.x,u*=e.y,l+=i,c+=s,n=pj(r),r=Oj(n)}}return tj({width:d,height:u,x:l,y:c})}function qj(e,t){const n=Pj(e).scrollLeft;return t?t.left+n:Bj(hj(e)).left+n}function Uj(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-qj(e,n),y:n.top+t.scrollTop}}function Vj(e,t,n){let a;if("viewport"===t)a=function(e,t){const n=pj(e),a=hj(e),r=n.visualViewport;let i=a.clientWidth,s=a.clientHeight,o=0,l=0;if(r){i=r.width,s=r.height;const e=zj();(!e||e&&"fixed"===t)&&(o=r.offsetLeft,l=r.offsetTop)}const c=qj(a);if(c<=0){const e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(a.clientWidth-t.clientWidth-r);s<=25&&(i-=s)}else c<=25&&(i+=c);return{width:i,height:s,x:o,y:l}}(e,n);else if("document"===t)a=function(e){const t=hj(e),n=Pj(e),a=e.ownerDocument.body,r=Ow(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Ow(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let s=-n.scrollLeft+qj(e);const o=-n.scrollTop;return"rtl"===Cj(a).direction&&(s+=Ow(t.clientWidth,a.clientWidth)-r),{width:r,height:i,x:s,y:o}}(hj(e));else if(gj(t))a=function(e,t){const n=Bj(e,!0,"fixed"===t),a=n.top+e.clientTop,r=n.left+e.clientLeft,i=xj(e)?Ij(e):Iw(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:a*i.y}}(t,n);else{const n=Lj(e);a={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return tj(a)}function Hj(e,t){const n=Aj(e);return!(n===t||!gj(n)||Ej(n))&&("fixed"===Cj(n).position||Hj(n,t))}function Wj(e,t,n){const a=xj(t),r=hj(t),i="fixed"===n,s=Bj(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=Iw(0);function c(){l.x=qj(r)}if(a||!a&&!i)if(("body"!==mj(t)||bj(r))&&(o=Pj(t)),a){const e=Bj(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else r&&c();i&&!a&&r&&c();const d=!r||a||i?Iw(0):Uj(r,o);return{x:s.left+o.scrollLeft-l.x-d.x,y:s.top+o.scrollTop-l.y-d.y,width:s.width,height:s.height}}function Kj(e){return"static"===Cj(e).position}function Gj(e,t){if(!xj(e)||"fixed"===Cj(e).position)return null;if(t)return t(e);let n=e.offsetParent;return hj(e)===n&&(n=n.ownerDocument.body),n}function Zj(e,t){const n=pj(e);if(wj(e))return n;if(!xj(e)){let t=Aj(e);for(;t&&!Ej(t);){if(gj(t)&&!Kj(t))return t;t=Aj(t)}return n}let a=Gj(e,t);for(;a&&yj(a)&&Kj(a);)a=Gj(a,t);return a&&Ej(a)&&Kj(a)&&!_j(a)?n:a||function(e){let t=Aj(e);for(;xj(t)&&!Ej(t);){if(_j(t))return t;if(wj(t))return null;t=Aj(t)}return null}(e)||n}const Yj={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let t=e.elements,n=e.rect,a=e.offsetParent;const r="fixed"===e.strategy,i=hj(a),s=!!t&&wj(t.floating);if(a===i||s&&r)return n;let o={scrollLeft:0,scrollTop:0},l=Iw(1);const c=Iw(0),d=xj(a);
2if((d||!d&&!r)&&(("body"!==mj(a)||bj(i))&&(o=Pj(a)),d)){const e=Bj(a);l=Ij(a),c.x=e.x+a.clientLeft,c.y=e.y+a.clientTop}const u=!i||d||r?Iw(0):Uj(i,o);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-o.scrollLeft*l.x+c.x+u.x,y:n.y*l.y-o.scrollTop*l.y+c.y+u.y}},getDocumentElement:hj,getClippingRect:function(e){let t=e.element,n=e.boundary,a=e.rootBoundary,r=e.strategy;const i="clippingAncestors"===n?wj(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let a=Rj(e,[],!1).filter(e=>gj(e)&&"body"!==mj(e)),r=null;const i="fixed"===Cj(e).position;let s=i?Aj(e):e;for(;gj(s)&&!Ej(s);){const t=Cj(s),n=_j(s);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&("absolute"===r.position||"fixed"===r.position)||bj(s)&&!n&&Hj(e,s))?a=a.filter(e=>e!==s):r=t,s=Aj(s)}return t.set(e,a),a}(t,this._c):[].concat(n),s=[...i,a],o=Vj(t,s[0],r);let l=o.top,c=o.right,d=o.bottom,u=o.left;for(let m=1;m<s.length;m++){const e=Vj(t,s[m],r);l=Ow(e.top,l),c=Rw(e.right,c),d=Rw(e.bottom,d),u=Ow(e.left,u)}return{width:c-u,height:d-l,x:u,y:l}},getOffsetParent:Zj,getElementRects:async function(e){const t=this.getOffsetParent||Zj,n=this.getDimensions,a=await n(e.floating);return{reference:Wj(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const t=Dj(e);return{width:t.width,height:t.height}},getScale:Ij,isElement:gj,isRTL:function(e){return"rtl"===Cj(e).direction}};function Qj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function $j(e,t,n,a){void 0===a&&(a={});const r=a,i=r.ancestorScroll,s=void 0===i||i,o=r.ancestorResize,l=void 0===o||o,c=r.elementResize,u=void 0===c?"function"===typeof ResizeObserver:c,m=r.layoutShift,p=void 0===m?"function"===typeof IntersectionObserver:m,h=r.animationFrame,f=void 0!==h&&h,g=Mj(e),x=s||l?[...g?Rj(g):[],...t?Rj(t):[]]:[];x.forEach(e=>{s&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)});const v=g&&p?function(e,t){let n,a=null;const r=hj(e);function i(){var e;clearTimeout(n),null==(e=a)||e.disconnect(),a=null}return function s(o,l){void 0===o&&(o=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),u=c.left,m=c.top,p=c.width,h=c.height;if(o||t(),!p||!h)return;const f={rootMargin:-Mw(m)+"px "+-Mw(r.clientWidth-(u+p))+"px "+-Mw(r.clientHeight-(m+h))+"px "+-Mw(u)+"px",threshold:Ow(0,Rw(1,l))||1};let g=!0;function x(t){const a=t[0].intersectionRatio;if(a!==l){if(!g)return s();a?s(!1,a):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==a||Qj(c,e.getBoundingClientRect())||s(),g=!1}try{a=new IntersectionObserver(x,d(d({},f),{},{root:r.ownerDocument}))}catch(v){a=new IntersectionObserver(x,f)}a.observe(e)}(!0),i}(g,n):null;let b,y=-1,w=null;u&&(w=new ResizeObserver(e=>{let a=Le(e,1)[0];a&&a.target===g&&w&&t&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),g&&!f&&w.observe(g),t&&w.observe(t));let j=f?Bj(e):null;return f&&function t(){const a=Bj(e);j&&!Qj(j,a)&&n();j=a,b=requestAnimationFrame(t)}(),n(),()=>{var e;x.forEach(e=>{s&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)}),null==v||v(),null==(e=w)||e.disconnect(),w=null,f&&cancelAnimationFrame(b)}}const Xj=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const r=t.x,i=t.y,s=t.placement,o=t.middlewareData,l=await async function(e,t){const n=e.placement,a=e.platform,r=e.elements,i=await(null==a.isRTL?void 0:a.isRTL(r.floating)),s=qw(n),o=Uw(n),l="y"===Ww(n),c=dj.has(s)?-1:1,d=i&&l?-1:1,u=Bw(t,e);let m="number"===typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis},p=m.mainAxis,h=m.crossAxis,f=m.alignmentAxis;return o&&"number"===typeof f&&(h="end"===o?-1*f:f),l?{x:h*d,y:p*c}:{x:p*c,y:h*d}}(t,e);return s===(null==(n=o.offset)?void 0:n.placement)&&null!=(a=o.arrow)&&a.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:d(d({},l),{},{placement:s})}}}},Jj=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const n=t.x,a=t.y,r=t.placement,i=t.platform,s=Bw(e,t),o=s.mainAxis,l=void 0===o||o,c=s.crossAxis,u=void 0!==c&&c,m=s.limiter,p=void 0===m?{fn:e=>({x:e.x,y:e.y})}:m,h=Be(s,rj),f={x:n,y:a},g=await i.detectOverflow(t,h),x=Ww(qw(r)),v=Vw(x);let b=f[v],y=f[x];if(l){const e="y"===v?"bottom":"right";b=Lw(b+g["y"===v?"top":"left"],b,b-g[e])}if(u){const e="y"===x?"bottom":"right";y=Lw(y+g["y"===x?"top":"left"],y,y-g[e])}const w=p.fn(d(d({},t),{},{[v]:b,[x]:y}));return d(d({},w),{},{data:{x:w.x-n,y:w.y-a,enabled:{[v]:l,[x]:u}}})}}},ek=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const r=t.placement,i=t.middlewareData,s=t.rects,o=t.initialPlacement,l=t.platform,c=t.elements,d=Bw(e,t),u=d.mainAxis,m=void 0===u||u,p=d.crossAxis,h=void 0===p||p,f=d.fallbackPlacements,g=d.fallbackStrategy,x=void 0===g?"bestFit":g,v=d.fallbackAxisSideDirection,b=void 0===v?"none":v,
2y=d.flipAlignment,w=void 0===y||y,j=Be(d,nj);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const k=qw(r),N=Ww(o),S=qw(o)===o,_=await(null==l.isRTL?void 0:l.isRTL(c.floating)),z=f||(S||!w?[Jw(o)]:function(e){const t=Jw(e);return[Gw(e),t,Gw(t)]}(o)),E="none"!==b;!f&&E&&z.push(...Xw(o,w,b,_));const C=[o,...z],P=await l.detectOverflow(t,j),A=[];let T=(null==(a=i.flip)?void 0:a.overflows)||[];if(m&&A.push(P[k]),h){const e=function(e,t,n){void 0===n&&(n=!1);const a=Uw(e),r=Kw(e),i=Hw(r);let s="x"===r?a===(n?"end":"start")?"right":"left":"start"===a?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Jw(s)),[s,Jw(s)]}(r,s,_);A.push(P[e[0]],P[e[1]])}if(T=[...T,{placement:r,overflows:A}],!A.every(e=>e<=0)){var R,O;const e=((null==(R=i.flip)?void 0:R.index)||0)+1,t=C[e];if(t){if(!("alignment"===h&&N!==Ww(t))||T.every(e=>Ww(e.placement)!==N||e.overflows[0]>0))return{data:{index:e,overflows:T},reset:{placement:t}}}let n=null==(O=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!n)switch(x){case"bestFit":{var D;const e=null==(D=T.filter(e=>{if(E){const t=Ww(e.placement);return t===N||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},tk=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,a;const r=t.placement,i=t.rects,s=t.platform,o=t.elements,l=Bw(e,t),c=l.apply,u=void 0===c?()=>{}:c,m=Be(l,ij),p=await s.detectOverflow(t,m),h=qw(r),f=Uw(r),g="y"===Ww(r),x=i.floating,v=x.width,b=x.height;let y,w;"top"===h||"bottom"===h?(y=h,w=f===(await(null==s.isRTL?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(w=h,y="end"===f?"top":"bottom");const j=b-p.top-p.bottom,k=v-p.left-p.right,N=Rw(b-p[y],j),S=Rw(v-p[w],k),_=!t.middlewareData.shift;let z=N,E=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(E=k),null!=(a=t.middlewareData.shift)&&a.enabled.y&&(z=j),_&&!f){const e=Ow(p.left,0),t=Ow(p.right,0),n=Ow(p.top,0),a=Ow(p.bottom,0);g?E=v-2*(0!==e||0!==t?e+t:Ow(p.left,p.right)):z=b-2*(0!==n||0!==a?n+a:Ow(p.top,p.bottom))}await u(d(d({},t),{},{availableWidth:E,availableHeight:z}));const C=await s.getDimensions(o.floating);return v!==C.width||b!==C.height?{reset:{rects:!0}}:{}}}},nk=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const n=t.rects,a=t.platform,r=Bw(e,t),i=r.strategy,s=void 0===i?"referenceHidden":i,o=Be(r,aj);switch(s){case"referenceHidden":{const e=lj(await a.detectOverflow(t,d(d({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:cj(e)}}}case"escaped":{const e=lj(await a.detectOverflow(t,d(d({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:cj(e)}}}default:return{}}}}},ak=e=>({name:"arrow",options:e,async fn(t){const n=t.x,a=t.y,r=t.placement,i=t.rects,s=t.platform,o=t.elements,l=t.middlewareData,c=Bw(e,t)||{},u=c.element,m=c.padding;if(null==u)return{};const p=ej(void 0===m?0:m),h={x:n,y:a},f=Kw(r),g=Hw(f),x=await s.getDimensions(u),v="y"===f,b=v?"top":"left",y=v?"bottom":"right",w=v?"clientHeight":"clientWidth",j=i.reference[g]+i.reference[f]-h[f]-i.floating[g],k=h[f]-i.reference[f],N=await(null==s.getOffsetParent?void 0:s.getOffsetParent(u));let S=N?N[w]:0;S&&await(null==s.isElement?void 0:s.isElement(N))||(S=o.floating[w]||i.floating[g]);const _=j/2-k/2,z=S/2-x[g]/2-1,E=Rw(p[b],z),C=Rw(p[y],z),P=E,A=S-x[g]-C,T=S/2-x[g]/2+_,R=Lw(P,T,A),O=!l.arrow&&null!=Uw(r)&&T!==R&&i.reference[g]/2-(T<P?E:C)-x[g]/2<0,D=O?T<P?T-P:T-A:0;return{[f]:h[f]+D,data:d({[f]:R,centerOffset:T-R-D},O&&{alignmentOffset:D}),reset:O}}}),rk=function(e){return void 0===e&&(e={}),{options:e,fn(t){const n=t.x,a=t.y,r=t.placement,i=t.rects,s=t.middlewareData,o=Bw(e,t),l=o.offset,c=void 0===l?0:l,u=o.mainAxis,m=void 0===u||u,p=o.crossAxis,h=void 0===p||p,f={x:n,y:a},g=Ww(r),x=Vw(g);let v=f[x],b=f[g];const y=Bw(c,t),w="number"===typeof y?{mainAxis:y,crossAxis:0}:d({mainAxis:0,crossAxis:0},y);if(m){const e="y"===x?"height":"width",t=i.reference[x]-i.floating[e]+w.mainAxis,n=i.reference[x]+i.reference[e]-w.mainAxis;v<t?v=t:v>n&&(v=n)}if(h){var j,k;const e="y"===x?"width":"height",t=dj.has(qw(r)),n=i.reference[g]-i.floating[e]+(t&&(null==(j=s.offset)?void 0:j[g])||0)+(t?0:w.crossAxis),a=i.reference[g]+i.reference[e]+(t?0:(null==(k=s.offset)?void 0:k[g])||0)-(t?w.crossAxis:0);b<n?b=n:b>a&&(b=a)}return{[x]:v,[g]:b}}}},ik=(e,t,n)=>{const a=new Map,r=d({platform:Yj},n),i=d(d({},r.platform),{},{_c:a});return(async(e,t,n)=>{const a=n.placement,r=void 0===a?"bottom":a,i=n.strategy,s=void 0===i?"absolute":i,o=n.middleware,l=void 0===o?[]:o,c=n.platform,u=c.detectOverflow?c:d(d({},c),{},{detectOverflow:oj}),m=await(null==c.isRTL?void 0:c.isRTL(t));let p=await c.getElementRects({reference:e,floating:t,strategy:s}),h=sj(p,r,m),f=h.x,g=h.y,x=r,v=0;const b={};for(let w=0;w<l.length;w++){const n=l[w];if(!n)continue;const a=n.name,i=n.fn,o=await i({x:f,y:g,initialPlacement:r,placement:x,strategy:s,middlewareData:b,re
2cts:p,platform:u,elements:{reference:e,floating:t}}),h=o.x,j=o.y,k=o.data,N=o.reset;if(f=null!=h?h:f,g=null!=j?j:g,b[a]=d(d({},b[a]),k),N&&v<50){if(v++,"object"===typeof N){N.placement&&(x=N.placement),N.rects&&(p=!0===N.rects?await c.getElementRects({reference:e,floating:t,strategy:s}):N.rects);var y=sj(p,x,m);f=y.x,g=y.y}w=-1}}return{x:f,y:g,placement:x,strategy:s,middlewareData:b}})(e,t,d(d({},r),{},{platform:i}))};var sk="undefined"!==typeof document?a.useLayoutEffect:function(){};function ok(e,t){if(e===t)return!0;if(typeof e!==typeof t)return!1;if("function"===typeof e&&e.toString()===t.toString())return!0;let n,a,r;if(e&&t&&"object"===typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!ok(e[a],t[a]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!{}.hasOwnProperty.call(t,r[a]))return!1;for(a=n;0!==a--;){const n=r[a];if(("_owner"!==n||!e.$$typeof)&&!ok(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function lk(e){if("undefined"===typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ck(e,t){const n=lk(e);return Math.round(t*n)/n}function dk(e){const t=a.useRef(e);return sk(()=>{t.current=e}),t}const uk=(e,t)=>{const n=Xj(e);return{name:n.name,fn:n.fn,options:[e,t]}},mk=(e,t)=>{const n=Jj(e);return{name:n.name,fn:n.fn,options:[e,t]}},pk=(e,t)=>({fn:rk(e).fn,options:[e,t]}),hk=(e,t)=>{const n=ek(e);return{name:n.name,fn:n.fn,options:[e,t]}},fk=(e,t)=>{const n=tk(e);return{name:n.name,fn:n.fn,options:[e,t]}},gk=(e,t)=>{const n=nk(e);return{name:n.name,fn:n.fn,options:[e,t]}},xk=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const n="function"===typeof e?e(t):e,a=n.element,r=n.padding;return a&&function(e){return{}.hasOwnProperty.call(e,"current")}(a)?null!=a.current?ak({element:a.current,padding:r}).fn(t):{}:a?ak({element:a,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}},vk=["children","width","height"];var bk=a.forwardRef((e,t)=>{const n=e.children,a=e.width,r=void 0===a?10:a,i=e.height,s=void 0===i?5:i,o=Be(e,vk);return(0,Te.jsx)(lg.svg,d(d({},o),{},{ref:t,width:r,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,Te.jsx)("polygon",{points:"0,0 30,0 15,10"})}))});bk.displayName="Arrow";var yk=bk;function wk(e){const t=Le(a.useState(void 0),2),n=t[0],r=t[1];return Gf(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const n=t[0];let a,i;if("borderBoxSize"in n){const e=n.borderBoxSize,t=Array.isArray(e)?e[0]:e;a=t.inlineSize,i=t.blockSize}else a=e.offsetWidth,i=e.offsetHeight;r({width:a,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),n}const jk=["__scopePopper","virtualRef"],kk=["__scopePopper","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","onPlaced"],Nk=["__scopePopper"];var Sk="Popper",_k=Le(Wf(Sk),2),zk=_k[0],Ek=_k[1],Ck=Le(zk(Sk),2),Pk=Ck[0],Ak=Ck[1],Tk=e=>{const t=e.__scopePopper,n=e.children,r=Le(a.useState(null),2),i=r[0],s=r[1];return(0,Te.jsx)(Pk,{scope:t,anchor:i,onAnchorChange:s,children:n})};Tk.displayName=Sk;var Rk="PopperAnchor",Ok=a.forwardRef((e,t)=>{const n=e.__scopePopper,r=e.virtualRef,i=Be(e,jk),s=Ak(Rk,n),o=a.useRef(null),l=Uf(t,o);return a.useEffect(()=>{s.onAnchorChange((null===r||void 0===r?void 0:r.current)||o.current)}),r?null:(0,Te.jsx)(lg.div,d(d({},i),{},{ref:l}))});Ok.displayName=Rk;var Dk="PopperContent",Mk=Le(zk(Dk),2),Ik=Mk[0],Fk=Mk[1],Lk=a.forwardRef((e,t)=>{var n,r,i,s,o,l,c,u;const m=e.__scopePopper,p=e.side,h=void 0===p?"bottom":p,f=e.sideOffset,g=void 0===f?0:f,x=e.align,v=void 0===x?"center":x,b=e.alignOffset,y=void 0===b?0:b,w=e.arrowPadding,j=void 0===w?0:w,k=e.avoidCollisions,N=void 0===k||k,S=e.collisionBoundary,_=void 0===S?[]:S,z=e.collisionPadding,E=void 0===z?0:z,C=e.sticky,P=void 0===C?"partial":C,A=e.hideWhenDetached,T=void 0!==A&&A,R=e.updatePositionStrategy,O=void 0===R?"optimized":R,D=e.onPlaced,M=Be(e,kk),I=Ak(Dk,m),F=Le(a.useState(null),2),L=F[0],B=F[1],q=Uf(t,e=>B(e)),U=Le(a.useState(null),2),V=U[0],H=U[1],W=wk(V),K=null!==(n=null===W||void 0===W?void 0:W.width)&&void 0!==n?n:0,G=null!==(r=null===W||void 0===W?void 0:W.height)&&void 0!==r?r:0,Z=h+("center"!==v?"-"+v:""),Y="number"===typeof E?E:d({top:0,right:0,bottom:0,left:0},E),Q=Array.isArray(_)?_:[_],$=Q.length>0,X={padding:Y,boundary:Q.filter(Vk),altBoundary:$},J=function(e){void 0===e&&(e={});const t=e,n=t.placement,r=void 0===n?"bottom":n,i=t.strategy,s=void 0===i?"absolute":i,o=t.middleware,l=void 0===o?[]:o,c=t.platform,u=t.elements,m=void 0===u?{}:u,p=m.reference,h=m.floating,f=t.transform,g=void 0===f||f,x=t.whileElementsMounted,v=t.open,b=Le(a.useState({x:0,y:0,strategy:s,placement:r,middlewareData:{},isPositioned:!1}),2),y=b[0],w=b[1],j=Le(a.useState(l),2),k=j[0],N=j[1];ok(k,l)||N(l);const S=Le(a.useState(null),2),_=S[0],z=S[1],E=Le(a.useState(null),2),C=E[0],P=E[1],A=a.useCallback(e=>
2{e!==D.current&&(D.current=e,z(e))},[]),T=a.useCallback(e=>{e!==M.current&&(M.current=e,P(e))},[]),R=p||_,O=h||C,D=a.useRef(null),M=a.useRef(null),I=a.useRef(y),F=null!=x,L=dk(x),B=dk(c),q=dk(v),U=a.useCallback(()=>{if(!D.current||!M.current)return;const e={placement:r,strategy:s,middleware:k};B.current&&(e.platform=B.current),ik(D.current,M.current,e).then(e=>{const t=d(d({},e),{},{isPositioned:!1!==q.current});V.current&&!ok(I.current,t)&&(I.current=t,Na.flushSync(()=>{w(t)}))})},[k,r,s,B,q]);sk(()=>{!1===v&&I.current.isPositioned&&(I.current.isPositioned=!1,w(e=>d(d({},e),{},{isPositioned:!1})))},[v]);const V=a.useRef(!1);sk(()=>(V.current=!0,()=>{V.current=!1}),[]),sk(()=>{if(R&&(D.current=R),O&&(M.current=O),R&&O){if(L.current)return L.current(R,O,U);U()}},[R,O,U,L,F]);const H=a.useMemo(()=>({reference:D,floating:M,setReference:A,setFloating:T}),[A,T]),W=a.useMemo(()=>({reference:R,floating:O}),[R,O]),K=a.useMemo(()=>{const e={position:s,left:0,top:0};if(!W.floating)return e;const t=ck(W.floating,y.x),n=ck(W.floating,y.y);return g?d(d({},e),{},{transform:"translate("+t+"px, "+n+"px)"},lk(W.floating)>=1.5&&{willChange:"transform"}):{position:s,left:t,top:n}},[s,g,W.floating,y.x,y.y]);return a.useMemo(()=>d(d({},y),{},{update:U,refs:H,elements:W,floatingStyles:K}),[y,U,H,W,K])}({strategy:"fixed",placement:Z,whileElementsMounted:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $j(...t,{animationFrame:"always"===O})},elements:{reference:I.anchor},middleware:[uk({mainAxis:g+G,alignmentAxis:y}),N&&mk(d({mainAxis:!0,crossAxis:!1,limiter:"partial"===P?pk():void 0},X)),N&&hk(d({},X)),fk(d(d({},X),{},{apply:e=>{let t=e.elements,n=e.rects,a=e.availableWidth,r=e.availableHeight;const i=n.reference,s=i.width,o=i.height,l=t.floating.style;l.setProperty("--radix-popper-available-width","".concat(a,"px")),l.setProperty("--radix-popper-available-height","".concat(r,"px")),l.setProperty("--radix-popper-anchor-width","".concat(s,"px")),l.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}})),V&&xk({element:V,padding:j}),Hk({arrowWidth:K,arrowHeight:G}),T&&gk(d({strategy:"referenceHidden"},X))]}),ee=J.refs,te=J.floatingStyles,ne=J.placement,ae=J.isPositioned,re=J.middlewareData,ie=Le(Wk(ne),2),se=ie[0],oe=ie[1],le=cg(D);Gf(()=>{ae&&(null===le||void 0===le||le())},[ae,le]);const ce=null===(i=re.arrow)||void 0===i?void 0:i.x,de=null===(s=re.arrow)||void 0===s?void 0:s.y,ue=0!==(null===(o=re.arrow)||void 0===o?void 0:o.centerOffset),me=Le(a.useState(),2),pe=me[0],he=me[1];return Gf(()=>{L&&he(window.getComputedStyle(L).zIndex)},[L]),(0,Te.jsx)("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:d(d({},te),{},{transform:ae?te.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[null===(l=re.transformOrigin)||void 0===l?void 0:l.x,null===(c=re.transformOrigin)||void 0===c?void 0:c.y].join(" ")},(null===(u=re.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}),dir:e.dir,children:(0,Te.jsx)(Ik,{scope:m,placedSide:se,onArrowChange:H,arrowX:ce,arrowY:de,shouldHideArrow:ue,children:(0,Te.jsx)(lg.div,d(d({"data-side":se,"data-align":oe},M),{},{ref:q,style:d(d({},M.style),{},{animation:ae?void 0:"none"})}))})})});Lk.displayName=Dk;var Bk="PopperArrow",qk={top:"bottom",right:"left",bottom:"top",left:"right"},Uk=a.forwardRef(function(e,t){const n=e.__scopePopper,a=Be(e,Nk),r=Fk(Bk,n),i=qk[r.placedSide];return(0,Te.jsx)("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:(0,Te.jsx)(yk,d(d({},a),{},{ref:t,style:d(d({},a.style),{},{display:"block"})}))})});function Vk(e){return null!==e}Uk.displayName=Bk;var Hk=e=>({name:"transformOrigin",options:e,fn(t){var n,a,r,i,s;const o=t.placement,l=t.rects,c=t.middlewareData,d=0!==(null===(n=c.arrow)||void 0===n?void 0:n.centerOffset),u=d?0:e.arrowWidth,m=d?0:e.arrowHeight,p=Le(Wk(o),2),h=p[0],f={start:"0%",center:"50%",end:"100%"}[p[1]],g=(null!==(a=null===(r=c.arrow)||void 0===r?void 0:r.x)&&void 0!==a?a:0)+u/2,x=(null!==(i=null===(s=c.arrow)||void 0===s?void 0:s.y)&&void 0!==i?i:0)+m/2;let v="",b="";return"bottom"===h?(v=d?f:"".concat(g,"px"),b="".concat(-m,"px")):"top"===h?(v=d?f:"".concat(g,"px"),b="".concat(l.floating.height+m,"px")):"right"===h?(v="".concat(-m,"px"),b=d?f:"".concat(x,"px")):"left"===h&&(v="".concat(l.floating.width+m,"px"),b=d?f:"".concat(x,"px")),{data:{x:v,y:b}}}});function Wk(e){const t=Le(e.split("-"),2),n=t[0],a=t[1];return[n,void 0===a?"center":a]}var Kk=Tk,Gk=Ok,Zk=Lk,Yk=Uk,Qk=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$k=a.forwardRef((e,t)=>
2(0,Te.jsx)(lg.span,d(d({},e),{},{ref:t,style:d(d({},Qk),e.style)})));$k.displayName="VisuallyHidden";var Xk=$k;const Jk=["__scopeTooltip"],eN=["forceMount","side"],tN=["__scopeTooltip","children","aria-label","onEscapeKeyDown","onPointerDownOutside"],nN=["__scopeTooltip"];var aN=Le(Wf("Tooltip",[Ek]),2),rN=aN[0],iN=(aN[1],Ek()),sN="TooltipProvider",oN="tooltip.open",lN=Le(rN(sN),2),cN=lN[0],dN=lN[1],uN=e=>{const t=e.__scopeTooltip,n=e.delayDuration,r=void 0===n?700:n,i=e.skipDelayDuration,s=void 0===i?300:i,o=e.disableHoverableContent,l=void 0!==o&&o,c=e.children,d=a.useRef(!0),u=a.useRef(!1),m=a.useRef(0);return a.useEffect(()=>{const e=m.current;return()=>window.clearTimeout(e)},[]),(0,Te.jsx)(cN,{scope:t,isOpenDelayedRef:d,delayDuration:r,onOpen:a.useCallback(()=>{window.clearTimeout(m.current),d.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,s)},[s]),isPointerInTransitRef:u,onPointerInTransitChange:a.useCallback(e=>{u.current=e},[]),disableHoverableContent:l,children:c})};uN.displayName=sN;var mN="Tooltip",pN=Le(rN(mN),2),hN=pN[0],fN=pN[1],gN=e=>{const t=e.__scopeTooltip,n=e.children,r=e.open,i=e.defaultOpen,s=e.onOpenChange,o=e.disableHoverableContent,l=e.delayDuration,c=dN(mN,e.__scopeTooltip),u=iN(t),m=Le(a.useState(null),2),p=m[0],h=m[1],f=Qf(),g=a.useRef(0),x=null!==o&&void 0!==o?o:c.disableHoverableContent,v=null!==l&&void 0!==l?l:c.delayDuration,b=a.useRef(!1),y=Le(Xf({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(oN))):c.onClose(),null===s||void 0===s||s(e)},caller:mN}),2),w=y[0],j=y[1],k=a.useMemo(()=>w?b.current?"delayed-open":"instant-open":"closed",[w]),N=a.useCallback(()=>{window.clearTimeout(g.current),g.current=0,b.current=!1,j(!0)},[j]),S=a.useCallback(()=>{window.clearTimeout(g.current),g.current=0,j(!1)},[j]),_=a.useCallback(()=>{window.clearTimeout(g.current),g.current=window.setTimeout(()=>{b.current=!0,j(!0),g.current=0},v)},[v,j]);return a.useEffect(()=>()=>{g.current&&(window.clearTimeout(g.current),g.current=0)},[]),(0,Te.jsx)(Kk,d(d({},u),{},{children:(0,Te.jsx)(hN,{scope:t,contentId:f,open:w,stateAttribute:k,trigger:p,onTriggerChange:h,onTriggerEnter:a.useCallback(()=>{c.isOpenDelayedRef.current?_():N()},[c.isOpenDelayedRef,_,N]),onTriggerLeave:a.useCallback(()=>{x?S():(window.clearTimeout(g.current),g.current=0)},[S,x]),onOpen:N,onClose:S,disableHoverableContent:x,children:n})}))};gN.displayName=mN;var xN="TooltipTrigger",vN=a.forwardRef((e,t)=>{const n=e.__scopeTooltip,r=Be(e,Jk),i=fN(xN,n),s=dN(xN,n),o=iN(n),l=Uf(t,a.useRef(null),i.onTriggerChange),c=a.useRef(!1),u=a.useRef(!1),m=a.useCallback(()=>c.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",m),[m]),(0,Te.jsx)(Gk,d(d({asChild:!0},o),{},{children:(0,Te.jsx)(lg.button,d(d({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},r),{},{ref:l,onPointerMove:Lf(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||s.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:Lf(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:Lf(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener("pointerup",m,{once:!0})}),onFocus:Lf(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:Lf(e.onBlur,i.onClose),onClick:Lf(e.onClick,i.onClose)}))}))});vN.displayName=xN;var bN="TooltipPortal",yN=Le(rN(bN,{forceMount:void 0}),2),wN=yN[0],jN=yN[1],kN=e=>{const t=e.__scopeTooltip,n=e.forceMount,a=e.children,r=e.container,i=fN(bN,t);return(0,Te.jsx)(wN,{scope:t,forceMount:n,children:(0,Te.jsx)(Rg,{present:n||i.open,children:(0,Te.jsx)(Tg,{asChild:!0,container:r,children:a})})})};kN.displayName=bN;var NN="TooltipContent",SN=a.forwardRef((e,t)=>{const n=jN(NN,e.__scopeTooltip),a=e.forceMount,r=void 0===a?n.forceMount:a,i=e.side,s=void 0===i?"top":i,o=Be(e,eN),l=fN(NN,e.__scopeTooltip);return(0,Te.jsx)(Rg,{present:r||l.open,children:l.disableHoverableContent?(0,Te.jsx)(AN,d(d({side:s},o),{},{ref:t})):(0,Te.jsx)(_N,d(d({side:s},o),{},{ref:t}))})}),_N=a.forwardRef((e,t)=>
2{const n=fN(NN,e.__scopeTooltip),r=dN(NN,e.__scopeTooltip),i=a.useRef(null),s=Uf(t,i),o=Le(a.useState(null),2),l=o[0],c=o[1],u=n.trigger,m=n.onClose,p=i.current,h=r.onPointerInTransitChange,f=a.useCallback(()=>{c(null),h(!1)},[h]),g=a.useCallback((e,t)=>{const n=e.currentTarget,a={x:e.clientX,y:e.clientY},r=function(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),r=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,a,r,i)){case i:return"left";case r:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}(a,n.getBoundingClientRect()),i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return a}(a,r),s=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const n=e[a];for(;t.length>=2;){const e=t[t.length-1],a=t[t.length-2];if(!((e.x-a.x)*(n.y-a.y)>=(e.y-a.y)*(n.x-a.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const t=e[a];for(;n.length>=2;){const e=n[n.length-1],a=n[n.length-2];if(!((e.x-a.x)*(t.y-a.y)>=(e.y-a.y)*(t.x-a.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const t=e.top,n=e.right,a=e.bottom,r=e.left;return[{x:r,y:t},{x:n,y:t},{x:n,y:a},{x:r,y:a}]}(t.getBoundingClientRect())]);c(s),h(!0)},[h]);return a.useEffect(()=>()=>f(),[f]),a.useEffect(()=>{if(u&&p){const e=e=>g(e,p),t=e=>g(e,u);return u.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}},[u,p,g,f]),a.useEffect(()=>{if(l){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},a=(null===u||void 0===u?void 0:u.contains(t))||(null===p||void 0===p?void 0:p.contains(t)),r=!function(e,t){const n=e.x,a=e.y;let r=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const e=t[i],o=t[s],l=e.x,c=e.y,d=o.x,u=o.y;c>a!==u>a&&n<(d-l)*(a-c)/(u-c)+l&&(r=!r)}return r}(n,l);a?f():r&&(f(),m())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,p,l,m,f]),(0,Te.jsx)(AN,d(d({},e),{},{ref:s}))}),zN=Le(rN(mN,{isInside:!1}),2),EN=zN[0],CN=zN[1],PN=ig("TooltipContent"),AN=a.forwardRef((e,t)=>{const n=e.__scopeTooltip,r=e.children,i=e["aria-label"],s=e.onEscapeKeyDown,o=e.onPointerDownOutside,l=Be(e,tN),c=fN(NN,n),u=iN(n),m=c.onClose;return a.useEffect(()=>(document.addEventListener(oN,m),()=>document.removeEventListener(oN,m)),[m]),a.useEffect(()=>{if(c.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(c.trigger)&&m()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[c.trigger,m]),(0,Te.jsx)(gg,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:m,children:(0,Te.jsxs)(Zk,d(d(d({"data-state":c.stateAttribute},u),l),{},{ref:t,style:d(d({},l.style),{"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}),children:[(0,Te.jsx)(PN,{children:r}),(0,Te.jsx)(EN,{scope:n,isInside:!0,children:(0,Te.jsx)(Xk,{id:c.contentId,role:"tooltip",children:i||r})})]}))})});SN.displayName=NN;var TN="TooltipArrow",RN=a.forwardRef((e,t)=>{const n=e.__scopeTooltip,a=Be(e,nN),r=iN(n);return CN(TN,n).isInside?null:(0,Te.jsx)(Yk,d(d(d({},r),a),{},{ref:t}))});RN.displayName=TN;var ON=kN,DN=SN;const MN=["className","sideOffset"],IN=a.forwardRef((e,t)=>
2{let n=e.className,a=e.sideOffset,r=void 0===a?4:a,i=Be(e,MN);return(0,Te.jsx)(ON,{children:(0,Te.jsx)(DN,d({ref:t,sideOffset:r,className:Gb("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",n)},i))})});IN.displayName=DN.displayName;const FN=(0,a.createContext)(null),LN=["pulse"];function BN(e){let t=e.children;const n=Rs(),r=n.user,i=n.publicDemo,s=Ws().ctMode,o=Le((0,a.useState)(!0),2),l=o[0],c=o[1],d=Le((0,a.useState)(!1),2),u=d[0],m=d[1],p=Le((0,a.useState)([]),2),h=p[0],f=p[1],g=Le((0,a.useState)([]),2),x=g[0],v=g[1],b=(0,a.useCallback)(async()=>{try{const e=await Ps.get("/my/plan-status");m(!!e.data.has_active_plan),f(e.data.active_products||[]),v(e.data.view_products||[])}catch(e){m(!1),f([]),v([])}finally{c(!1)}},[]);(0,a.useEffect)(()=>{b()},[b]);const y=!!!(null!==r&&void 0!==r&&r.is_demo||null!==r&&void 0!==r&&r.is_public_demo||i)&&!s,w=(0,a.useCallback)(e=>!!LN.includes(e)||(!y||h.includes(e)),[h,y]),j=(0,a.useCallback)(e=>!(!y||LN.includes(e))&&(!h.includes(e)&&x.includes(e)),[h,x,y]),k=(0,a.useCallback)(e=>w(e)||j(e),[w,j]);return(0,Te.jsx)(FN.Provider,{value:{loading:l,hasPlan:u,activeProducts:h,viewProducts:x,hasProduct:w,isViewOnly:j,canView:k,gatingActive:y,refresh:b},children:t})}function qN(){return(0,a.useContext)(FN)||{loading:!1,hasPlan:!0,activeProducts:[],viewProducts:[],hasProduct:()=>!0,isViewOnly:()=>!1,canView:()=>!0,gatingActive:!1,refresh:async()=>{}}}function UN(e,t){[...t].reverse().forEach(n=>{const a=e.getVariant(n);a&&_l(e,a),e.variantChildren&&e.variantChildren.forEach(e=>{UN(e,t)})})}function VN(){let e=!1;const t=new Set,n={subscribe:e=>(t.add(e),()=>{t.delete(e)}),start(n,a){Gc(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");const r=[];return t.forEach(e=>{r.push(_u(e,n,{transitionOverride:a}))}),Promise.all(r)},set:n=>(Gc(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(e=>{!function(e,t){Array.isArray(t)?UN(e,t):"string"===typeof t?UN(e,[t]):_l(e,t)}(e,n)})),stop(){t.forEach(e=>{!function(e){e.values.forEach(e=>e.stop())}(e)})},mount:()=>(e=!0,()=>{e=!1,n.stop()})};return n}function HN(){const e=$s(VN);return lo(e.mount,[]),e}const WN=-16;function KN(e){let t=e.arm;return(0,Te.jsxs)("svg",{width:"24",height:"30",viewBox:"0 0 16 22",fill:"none",stroke:"currentColor",strokeWidth:"1.9",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[(0,Te.jsx)("circle",{cx:"8",cy:"3.4",r:"2.3"}),(0,Te.jsx)("line",{x1:"8",y1:"5.7",x2:"8",y2:"13"}),(0,Te.jsx)("line",{x1:"8",y1:"13",x2:"5",y2:"19"}),(0,Te.jsx)("line",{x1:"8",y1:"13",x2:"11",y2:"19"}),(0,Te.jsx)("line",{x1:"8",y1:"8.7",x2:"4.6",y2:"10.7"}),(0,Te.jsx)(ff.line,{x1:"8",y1:"8.7",x2:"12",y2:"7",animate:t})]})}function GN(){const e=Ws(),t=e.exitCt,n=e.track,r=Xa().t,i=HN(),s=HN(),o=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{let e=!0;const t=async()=>{if(!o.current&&e){o.current=!0;try{i.set({x:0,y:0,scaleX:1,scaleY:1,rotate:0}),await i.start({scaleY:.72,scaleX:1.16,y:5,transition:{duration:.16,ease:"easeOut"}}),await i.start({x:[0,37,74],y:[5,-42,WN],scaleX:[1.16,.9,1],scaleY:[.72,1.14,1],rotate:[0,-12,0],transition:{duration:.62,ease:["easeOut","easeIn"],times:[0,.45,1]}}),await i.start({scaleX:[1,1.32,.96,1],scaleY:[1,.66,1.06,1],y:[WN,WN,-21,WN],transition:{duration:.5,ease:"easeOut",times:[0,.35,.7,1]}}),await Promise.all([s.start({x2:[12,14.2,11,14.2,11,12],y2:[7,3.2,3.8,3.2,3.8,7],transition:{duration:1.25,ease:"easeInOut"}}),i.start({rotate:[0,7,-3,7,-3,0],y:[WN,-18,WN,-18,WN,WN],transition:{duration:1.25,ease:"easeInOut"}})]),await i.start({scaleY:.78,scaleX:1.12,transition:{duration:.14}}),await i.start({x:[74,37,0],y:[WN,-40,0],scaleX:[1.12,.9,1],scaleY:[.78,1.12,1],rotate:[0,12,0],transition:{duration:.55,ease:["easeOut","easeIn"],times:[0,.45,1]}}),await i.start({scaleX:[1,1.15,1],scaleY:[1,.85,1],transition:{duration:.28,ease:"easeOut"}})}finally{o.current=!1}}},n=setTimeout(t,6e3),a=setInterval(t,4e4);return()=>{e=!1,clearTimeout(n),clearInterval(a)}},[s,i]),(0,Te.jsxs)("button",{onClick:()=>{try{n&&n("cta_clicked",{meta:{source:"register_sidebar"}})}catch(e){}try{t&&t()}catch(a){}try{window.localStorage.removeItem("persentis_token"),window.localStorage.removeItem("persentis_public_demo")}catch(r){}window.location.href="https://login.persentis.com/register"},"data-testid":"guide-register-cta",className:"relative w-full flex items-center gap-3 px-3 py-2.5 rounded-md hover:bg-[#F3F3F4] transition-colors",children:[(0,Te.jsx)("span",{className:"shrink-0",style:{width:28,height:28}}),(0,Te.jsx)("span",{className:"flex-1 min-w-0 text-left text-[13px] font-bold uppercase tracking-wide text-foreground",children:r("guide.register_start")}),(0,Te.jsx)("span",{className:"absolute left-3 top-0 bottom-0 flex items-center pointer-events-none",children:(0,Te.jsx)(ff.span,{style:{transformOrigin:"50% 100%"},animate:i,className:"block text-primary",children:(0,Te.jsx)(KN,{arm:s})})})]})}const ZN=e=>{let t=e.to,n=e.icon,a=e.label,r=e.testid,i=e.extraActive;return(0,Te.jsxs)(ga,{to:t,"data-testid":r,className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-12 pr-4 py-2 text-sm transition-colors duration-150 border-l-2 ".concat(t||i?"bg-[#F3F3F4] text-accent-foreground font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(n,{size:16}),(0,Te.jsx)("span",{children:a})]})};function YN(e){let t=e.topOffset,n=void 0===t?0:t;const r=Xa().t,i=Rs(),s=i.user,o=i.logout,l=Ws().ctMode,c=qN(),d=c.hasProduct,u=c.isViewOnl
2y,m=u("analytics"),p=u("care"),h=!d("analytics"),f=!d("care"),g=h&&!m,x=f&&!p,v=Ys(),b=v.shouldShow,y=v.setOpen,w=sn(),j=nn(),k="admin"===(null===s||void 0===s?void 0:s.role),N=!(null===s||void 0===s||!s.is_owner),S="viewer"===(null===s||void 0===s?void 0:s.role),_=k||S,z="superadmin"===(null===s||void 0===s?void 0:s.role),E=["/dashboard","/invitations","/auswertungen","/analysis","/settings"].some(e=>j.pathname.startsWith(e)),C=j.pathname.startsWith("/analytics"),P=j.pathname.startsWith("/pulse"),A=j.pathname.startsWith("/admin/textverarbeitung"),T=Le((0,a.useState)(A?"text":C?"analytics":P?"pulse":E?"care":null),2),R=T[0],O=T[1],D=Le((0,a.useState)([]),2),M=D[0],I=D[1],F=Le((0,a.useState)(!1),2),L=F[0],B=F[1],q=Le((0,a.useState)(!1),2),U=q[0],V=q[1];(0,a.useEffect)(()=>{_&&!l&&Ps.get("/import/history").then(e=>V((e.data||[]).length>0)).catch(()=>{})},[_,l]),(0,a.useEffect)(()=>{O(C?"analytics":P?"pulse":E?"care":null)},[j.pathname]),(0,a.useEffect)(()=>{if(!P)return;if(l)return void I(["einmalig","wiederkehrend"]);const e=j.pathname.startsWith("/pulse/wiederkehrend")?"wiederkehrend":"einmalig";I([e])},[j.pathname,l]);const H=e=>{B(!1),w(e)},W=(null===s||void 0===s?void 0:s.profile)||{},K=[W.first_name,W.last_name].filter(Boolean).join(" ")||(null===s||void 0===s?void 0:s.name)||(null===s||void 0===s?void 0:s.email),G=e=>{let t=e.icon,n=e.label,a=e.onClick,r=e.testid,i=e.danger;return(0,Te.jsxs)("button",{onClick:a,"data-testid":r,className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ".concat(i?"text-destructive hover:bg-red-50":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsx)(t,{size:17})," ",n]})},Z=(e,t,n)=>{const a=M.includes(e),i="/pulse/".concat(e);return(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{I([e]),w("".concat(i,"/dashboard"))},onKeyDown:t=>{t.target===t.currentTarget&&("Enter"!==t.key&&" "!==t.key||(t.preventDefault(),I([e]),w("".concat(i,"/dashboard"))))},"data-testid":"pulse-type-".concat(e),className:"w-full flex items-center justify-between pl-8 pr-4 py-2.5 text-sm font-semibold transition-colors duration-150 text-foreground hover:bg-[#F3F3F4] cursor-pointer",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(n,{size:17})," ",(0,Te.jsx)(cy,{id:"nav.pulse.".concat(e),as:"span",children:t})]}),(0,Te.jsx)(xw,{size:15,"data-testid":"pulse-type-".concat(e,"-chevron"),"aria-expanded":a,className:"transition-transform duration-200 ".concat(a?"rotate-180":""),onClick:t=>{t.stopPropagation(),I(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])}})]}),(0,Te.jsx)(co,{initial:!1,children:a&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"pulse-".concat(e,"-submenu"),children:(0,Te.jsxs)("div",{className:"py-0.5",children:[(0,Te.jsx)(ZN,{to:"".concat(i,"/dashboard"),icon:vw,label:(0,Te.jsx)(cy,{id:"nav.dashboard",as:"span",children:r("nav.dashboard")}),testid:"nav-pulse-".concat(e,"-dashboard")}),(0,Te.jsx)(ZN,{to:"".concat(i,"/invitations"),icon:bw,label:(0,Te.jsx)(cy,{id:"nav.invitations",as:"span",children:r("nav.invitations")}),testid:"nav-pulse-".concat(e,"-invitations")}),(0,Te.jsx)(ZN,{to:"".concat(i,"/auswertungen"),icon:yw,label:(0,Te.jsx)(cy,{id:"nav.auswertungen",as:"span",children:r("nav.auswertungen")}),testid:"nav-pulse-".concat(e,"-auswertungen"),extraActive:j.pathname.startsWith("".concat(i,"/barometer"))})]})})})]})};return(0,Te.jsxs)("aside",{className:"w-[300px] shrink-0 sticky bg-white flex flex-col",style:{top:n,height:"calc(100vh - ".concat(n,"px)")},"data-testid":"sidebar",children:[(0,Te.jsx)("div",{className:"px-6",style:{paddingTop:"55px"},children:(0,Te.jsx)(lw,{width:250})}),(0,Te.jsx)("div",{className:"flex-1 overflow-y-auto min-h-0",style:{marginTop:"80px"},children:(0,Te.jsxs)("nav",{className:"space-y-1",children:[(0,Te.jsxs)(ga,{to:"/welcome","data-testid":"nav-welcome",className:e=>{let t=e.isActive;return"w-full flex items-center gap-3 px-4 py-3 text-sm font-semibold transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-accent-foreground border-primary":"text-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(ww,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.home",as:"span",children:"HOME"})]}),b&&!l&&(0,Te.jsxs)("button",{type:"button",onClick:()=>y(!0),"data-testid":"nav-onboarding",className:"w-full flex items-center gap-3 px-4 py-3 text-sm font-semibold transition-colors duration-150 border-l-2 border-transparent text-primary hover:bg-[#F3F3F4]",children:[(0,Te.jsx)(Iy,{size:20})," ",(0,Te.jsx)("span",{children:r("onboarding.menu")})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{g||O("analytics"),w("/analytics/dashboard")},onKeyDown:e=>{if(e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)){if(e.preventDefault(),g)return void w("/analytics/dashboard");O("analytics"),w("/analytics/dashboard")}},"data-testid":"product-analytics",title:m?"Vertrag abgelaufen \u2013 nur Ansicht":g?"Im Plan aktivieren":void 0,className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 hover:bg-[#F3F3F4] cursor-pointer ".concat(g?"text-muted-foreground opacity-60":"text-foreground"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(jw,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.product.analytics",as:"span",children:"PERSENTIS Analytics"})]}),g?(0,Te.jsx)(kw,{size:15,"data-testid":"product-analytics-lock"}):(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("analytics"===R?"rotate-180":""),onClick:e=>{e.stopPropagation(),O(e=>"analytics"===e?null:"analytics")}})]}),(0,Te.jsx)(co,{initial:!1,children:"analytics"===R&&!g&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"analytics-submenu",children:(0,Te.jsxs)("div",{className:"py-1",children:[(0,Te.jsx)(ZN,{to:"/analytics/dashboard",icon:vw,label:(0,Te.jsx)(cy,{id:"nav.dashboard",as:"span",children:r("nav.dashboard")}),testid:"nav-analytics-dashboard"}),_&&(0,Te.jsx)(ZN,{to:"/analytics/invitations",icon:bw,label:(0,Te.jsx)(cy,{id:"nav.invitations",as:"span",children:r("nav.invitations")}),testid:"nav-analytics-invitations"}),_&&(0,Te.jsx)(ZN,{to:"/analytics/auswertungen",icon:yw,label:(0,Te.jsx)(cy,{id:"nav.auswertungen",as:"span",children:r("nav.auswertungen")}),testid:"nav-analytics-auswertungen"})]})})})]}),k&&(0,Te.jsxs)("div",{"data-testid":"pulse-nav-group",children:[(0,Te.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{O("pulse"),I(["einmalig"]),w("/pulse/einmalig/dashboard")},onKeyDown:e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),O("pulse"),I(["einmalig"]),w("/pulse/einmalig/dashboard")))},"data-testid":"product-pulse",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 text-foreground hover:bg-[#F3F3F4] cursor-pointer",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(Nw,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.product.pulse",as:"span",children:"PERSENTIS Pulse"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("pulse"===R?"rotate-180":""),onClick:e=>{e.stopPropagation(),O(e=>{const t="pulse"===e?null:"pulse";return"pulse"===t&&I(["einmalig"]),t})}})]}),(0,Te.jsx)(co,{initial:!1,children:"pulse"===R&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"pulse-submenu",children:(0,Te.jsxs)("div",{className:"py-1",children:[Z("einmalig","Einmalig",Sw),Z("wiederkehrend","Wiederkehrend",_w)]})})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{role:"button",tabIndex:0,onClick:()=>{x||O("care"),w("/dashboard")},onKeyDown:e=>{if(e.target===e.currentTarget&&("Enter"===e.key||" "===e.key)){if(e.preventDefault(),x)return void w("/dashboard");O("care"),w("/dashboard")}},"data-testid":"product-care",title:p?"Vertrag abgelaufen \u2013 nur Ansicht":x?"Im Plan aktivieren":void 0,className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 hover:bg-[#F3F3F4] cursor-pointer ".concat(x?"text-muted-foreground opacity-60":"text-foreground"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(zw,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.product.care",as:"span",children:"PERSENTIS Care"})]}),x?(0,Te.jsx)(kw,{size:15,"data-testid":"product-care-lock"}):(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("care"===R?"rotate-180":""),onClick:e=>{e.stopPropagation(),O(e=>"care"===e?null:"care")}})]}),(0,Te.jsx)(co,{initial:!1,children:"care"===R&&!x&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"care-submenu",children:(0,Te.jsxs)("div",{className:"py-1",children:[(0,Te.jsx)(ZN,{to:"/dashboard",icon:vw,label:(0,Te.jsx)(cy,{id:"nav.dashboard",as:"span",children:r("nav.dashboard")}),testid:"nav-dashboard"}),_&&(0,Te.jsx)(ZN,{to:"/invitations",icon:bw,label:(0,Te.jsx)(cy,{id:"nav.invitations",as:"span",children:r("nav.invitations")}),testid:"nav-invitations"}),_&&(0,Te.jsx)(ZN,{to:"/auswertungen",icon:yw,label:(0,Te.jsx)(cy,{id:"nav.auswertungen",as:"span",children:r("nav.auswertungen")}),testid:"nav-auswertungen",extraActive:j.pathname.startsWith("/analysis")})]})})})]}),z&&U&&(0,Te.jsxs)(ga,{to:"/historie","data-testid":"nav-historie",className:e=>{let t=e.isActive;return"w-full flex items-center gap-3 px-4 py-3 text-sm font-semibold transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-accent-foreground border-primary":"text-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(Ew,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.historie",as:"span",children:"Historie"})]}),!1]})}),(0,Te.jsxs)("div",{className:"relative p-3 mt-auto shrink-0 border-t border-border bg-white",children:[l&&(0,Te.jsx)(GN,{}),!l&&(0,Te.jsxs)(Te.Fragment,{children:[L&&(0,Te.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>B(!1),"data-testid":"user-menu-backdrop"}),(0,Te.jsx)(co,{children:L&&(0,Te.jsxs)(ff.div,{initial:{opacity:0,y:8}
2,animate:{opacity:1,y:0},exit:{opacity:0,y:8},transition:{duration:.15},className:"absolute bottom-full left-3 right-3 mb-2 bg-white border border-border rounded-md shadow-lg overflow-hidden z-50 py-1","data-testid":"user-menu",children:[N&&(0,Te.jsx)(G,{icon:Sf,label:(0,Te.jsx)(cy,{id:"nav.structure",as:"span",children:r("nav.structure")}),onClick:()=>H("/structure"),testid:"menu-structure"}),N&&(0,Te.jsx)(G,{icon:_f,label:(0,Te.jsx)(cy,{id:"nav.users",as:"span",children:r("nav.users")}),onClick:()=>H("/users"),testid:"menu-users"}),(0,Te.jsx)("div",{className:"my-1 border-t border-border"}),(0,Te.jsx)(G,{icon:Cw,label:(0,Te.jsx)(cy,{id:"user.profile",as:"span",children:r("user.profile")}),onClick:()=>H("/profile"),testid:"menu-profile"}),N&&(0,Te.jsx)(G,{icon:zf,label:(0,Te.jsx)(cy,{id:"user.billing",as:"span",children:r("user.billing")}),onClick:()=>H("/billing"),testid:"menu-billing"}),k&&(0,Te.jsx)(G,{icon:Nw,label:(0,Te.jsx)(cy,{id:"user.activities",as:"span",children:r("user.activities")}),onClick:()=>H("/activities"),testid:"menu-activities"}),(0,Te.jsx)(G,{icon:Af,label:(0,Te.jsx)(cy,{id:"user.manual",as:"span",children:r("user.manual")}),onClick:()=>H("/manual"),testid:"menu-manual"}),(0,Te.jsx)("div",{className:"my-1 border-t border-border"}),(0,Te.jsx)(G,{icon:Pw,label:(0,Te.jsx)(cy,{id:"user.logout",as:"span",children:r("user.logout")}),onClick:o,testid:"menu-logout",danger:!0})]})}),(0,Te.jsxs)("button",{onClick:()=>B(e=>!e),"data-testid":"user-menu-trigger",className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-md hover:bg-[#F3F3F4] transition-colors",children:[W.avatar?(0,Te.jsx)("img",{src:W.avatar,alt:"",className:"w-8 h-8 rounded-full object-cover shrink-0"}):(0,Te.jsx)(Cw,{size:28,className:"text-muted-foreground shrink-0"}),(0,Te.jsx)("span",{className:"flex-1 min-w-0 text-left",children:(0,Te.jsx)("span",{className:"block text-sm font-semibold truncate","data-testid":"user-name",children:K})}),(0,Te.jsx)(Aw,{size:18,className:"text-muted-foreground shrink-0"})]})]})]})]})}const QN=[{code:"de",flag:"de"},{code:"en",flag:"gb"},{code:"es",flag:"es"},{code:"fr",flag:"fr"},{code:"it",flag:"it"}],$N=e=>{let t=e.code;return(0,Te.jsx)("img",{src:"https://flagcdn.com/w40/".concat(t,".png"),srcSet:"https://flagcdn.com/w80/".concat(t,".png 2x"),width:"22",height:"16",alt:"",className:"rounded-none border border-black/10 object-cover",style:{width:22,height:16}})};function XN(){const e=Xa(),t=e.lang,n=e.setLang,r=Le((0,a.useState)(!1),2),i=r[0],s=r[1],o=QN.find(e=>e.code===t)||QN[0];return(0,Te.jsxs)("div",{className:"relative inline-block",children:[i&&(0,Te.jsx)("div",{className:"fixed inset-0 z-40",onClick:()=>s(!1)}),(0,Te.jsxs)("button",{onClick:()=>s(e=>!e),"data-testid":"lang-switcher",className:"flex items-center gap-1.5 border border-border rounded-md px-2 py-1.5 bg-white hover:bg-zinc-50 transition-colors",children:[(0,Te.jsx)($N,{code:o.flag}),(0,Te.jsx)(xw,{size:14,className:"text-muted-foreground transition-transform duration-200 ".concat(i?"rotate-180":"")})]}),i&&(0,Te.jsx)("div",{className:"absolute right-0 mt-1 bg-white border border-border rounded-md shadow-lg z-50 py-1","data-testid":"lang-menu",children:QN.map(e=>(0,Te.jsx)("button",{onClick:()=>{n(e.code),s(!1)},"data-testid":"lang-opt-".concat(e.code),className:"w-full flex items-center justify-center px-3 py-2 hover:bg-zinc-100 transition-colors ".concat(e.code===t?"bg-accent":""),children:(0,Te.jsx)($N,{code:e.flag})},e.code))})]})}const JN=kf("bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);function eS(){const e=sn(),t=Le((0,a.useState)([]),2),n=t[0],r=t[1],i=Le((0,a.useState)(0),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],d=l[1],u=(0,a.useRef)(null);(0,a.useEffect)(()=>{(async()=>{try{const e=await Ps.get("/changelog/feed");r(e.data.items||[]),o(e.data.unread||0)}catch(rse){}})()},[]),(0,a.useEffect)(()=>{const e=e=>{u.current&&!u.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);return(0,Te.jsxs)("div",{className:"relative",ref:u,children:[(0,Te.jsxs)("button",{onClick:async()=>{const e=!c;if(d(e),e&&s>0){try{await Ps.post("/changelog/seen")}catch(rse){}o(0)}},"data-testid":"news-bell-button",title:"Neuigkeiten",className:"relative w-9 h-9 flex items-center justify-center rounded-md text-foreground hover:bg-zinc-100 transition-colors",children:[(0,Te.jsx)(JN,{size:18}),s>0&&(0,Te.jsx)("span",{"data-testid":"news-bell-badge",className:"absolute -top-0.5 -right-0.5 min-w-[16px] h-4 px-1 rounded-full bg-primary text-white text-[10px] font-bold flex items-center justify-center",children:s>9?"9+":s})]}),c&&(0,Te.jsxs)("div",{"data-testid":"news-panel",className:"absolute right-0 top-full mt-2 w-[360px] max-h-[70vh] overflow-y-auto bg-white border border-border rounded-lg shadow-xl z-50",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-border sticky top-0 bg-white",children:[(0,Te.jsxs)("span",{className:"font-heading text-base flex items-center gap-2",children:[(0,Te.jsx)(If,{size:15,className:"text-primary"})," Neuigkeiten"]}),(0,Te.jsx)("button",{onClick:()=>d(!1),className:"text-muted-foreground hover:text-foreground",children:(0,Te.jsx)(Iv,{size:16})})]}),0===n.length?(0,Te.jsx)("div",{className:"p-6 text-center text-sm text-muted-foreground","data-testid":"news-empty",children:"Aktuell keine Neuigkeiten."}):(0,Te.jsx)("div",{className:"divide-y divide-border",children:n.map(t=>(0,Te.jsx)("div",{className:"px-4 py-3","data-testid":"news-item-".concat(t.id),children:(0,Te.jsxs)("div",{className:"flex items-start gap-2",children:[t.unread&&(0,Te.jsx)("span",{className:"mt-1.5 w-2 h-2 rounded-full bg-primary shrink-0"}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("p",{className:"text-sm font-semibold text-foreground",children:t.title}),t.description&&(0,Te.jsx)("p",{className:"text-[13px] text-muted-foreground mt-0.5 leading-snug",children:t.description}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 mt-1.5",children:[(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground",children:t.created_at?new Date(t.created_at).toLocaleDateString("de-DE"):""}),t.has_manual&&(0,Te.jsxs)("button",{onClick:()=>(t=>{d(!1),e("/manual".concat(t.manual_query?"?q=".concat(encodeURIComponent(t.manual_query)):""))})(t),"data-testid":"news-item-manual-".concat(t.id),className:"text-[11px] font-semibold text-primary hover:underline inline-flex items-center gap-1",children:[(0,Te.jsx)(Af,{size:12})," Im Handbuch ansehen"]})]})]})]})},t.id))})]})]})}const tS=kf("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),nS=kf("flask-conical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]),aS=kf("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);function rS(){const e=Rs(),t=e.impersonation,n=e.stopImpersonation;return t?(0,Te.jsxs)("div",{"data-testid":"impersonation-banner",className:"w-full bg-primary text-white text-sm flex flex-wrap items-center justify-center gap-x-4 gap-y-2 px-4 py-2.5 shadow-sm",children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)(tS,{size:16})," Sie befinden sich im Konto: ",(0,Te.jsx)("strong",{"data-testid":"impersonation-label",children:t.label})]}),t.demo&&(0,Te.jsxs)("span",{"data-testid":"demo-mode-badge",className:"inline-flex items-center gap-1.5 bg-white/20 rounded-full px-3 py-1 text-xs font-semibold uppercase tracking-wider",children:[(0,Te.jsx)(nS,{size:14})," Demo-Modus"]}),(0,Te.jsxs)("button",{onClick:n,"data-testid":"impersonation-back-btn",className:"inline-flex items-center gap-1.5 bg-white/15 hover:bg-white/25 rounded-full px-3 py-1 font-semibold transition-colors",children:[(0,Te.jsx)(aS,{size:15})," Zur\xfcck zum Admin"]})]}):null}function iS(){const e=Rs(),t=e.user,n=e.impersonation,r=Le((0,a.useState)(!1),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],d=!(null===t||void 0===t||!t.is_demo)&&!n;if((0,a.useEffect)(()=>
2{if(!d)return;const e=()=>Ps.post("/demo/heartbeat").catch(()=>{});e();const t=setInterval(e,3e5);return()=>clearInterval(t)},[d]),!d)return null;return(0,Te.jsxs)("div",{"data-testid":"demo-mode-banner",className:"w-full bg-primary text-white text-sm flex flex-wrap items-center justify-center gap-x-4 gap-y-2 px-4 py-2.5 shadow-sm",children:[(0,Te.jsx)("span",{className:"inline-flex items-center gap-2",children:"Sie befinden sich im Demo-Modus"}),i?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2","data-testid":"demo-mode-confirm",children:[(0,Te.jsx)("span",{className:"text-white/90",children:"Wirklich zur\xfccksetzen?"}),(0,Te.jsxs)("button",{onClick:async()=>{c(!0);try{await Ps.post("/demo/reset"),Ia.success("Demo wurde auf den Originalzustand zur\xfcckgesetzt."),setTimeout(()=>window.location.reload(),700)}catch(sse){Ia.error(Cs(sse,"Zur\xfccksetzen fehlgeschlagen.")),c(!1),s(!1)}},disabled:l,"data-testid":"demo-mode-reset-confirm-btn",className:"inline-flex items-center gap-1.5 bg-white text-primary hover:bg-white/90 rounded-full px-3 py-1 font-semibold transition-colors disabled:opacity-60",children:[l?(0,Te.jsx)(Of,{size:14,className:"animate-spin"}):(0,Te.jsx)(Ff,{size:14})," Ja, zur\xfccksetzen"]}),(0,Te.jsx)("button",{onClick:()=>s(!1),disabled:l,"data-testid":"demo-mode-reset-cancel-btn",className:"rounded-full px-3 py-1 font-semibold text-white/80 hover:text-white transition-colors",children:"Abbrechen"})]}):(0,Te.jsxs)("button",{onClick:()=>s(!0),disabled:l,"data-testid":"demo-mode-reset-btn",className:"inline-flex items-center gap-1.5 bg-white/15 hover:bg-white/25 rounded-full px-3 py-1 font-semibold transition-colors disabled:opacity-60",children:[(0,Te.jsx)(Ff,{size:15})," Zur\xfccksetzen"]}),(0,Te.jsxs)("button",{onClick:()=>{localStorage.removeItem("persentis_token"),localStorage.removeItem("persentis_public_demo"),window.location.href="/demo"},"data-testid":"demo-mode-logout-btn",className:"inline-flex items-center gap-1.5 bg-white/15 hover:bg-white/25 rounded-full px-3 py-1 font-semibold transition-colors",children:[(0,Te.jsx)(Pw,{size:15})," Abmelden"]})]})}const sS="https://calendly.com/persentis/einblicke";function oS(){const e=Ws(),t=e.ctMode,n=e.guideEnabled,a=e.restartTour,r=e.track,i=Xa().t;return t?(0,Te.jsxs)("div",{"data-testid":"guide-mode-bar",style:{height:60},className:"sticky top-0 z-[60] w-full bg-primary text-white flex items-center justify-between gap-3 px-6 shadow-md",children:[(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2.5 font-semibold min-w-0",children:[(0,Te.jsx)(Dy,{size:22,className:"shrink-0"}),(0,Te.jsx)("span",{className:"truncate text-lg tracking-tight",children:"PERSENTIS Guide"})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[!n&&(0,Te.jsxs)("button",{onClick:a,"data-testid":"guide-toggle",className:"inline-flex items-center gap-1.5 rounded-full bg-white text-primary px-4 py-1.5 text-sm font-semibold hover:bg-white/90 transition-colors",children:[(0,Te.jsx)(Dy,{size:15})," GUIDE ",i("guide.bar.activate")]}),(0,Te.jsxs)("a",{href:sS,target:"_blank",rel:"noopener noreferrer",onClick:()=>r&&r("cta_clicked",{meta:{source:"topbar"}}),"data-testid":"guide-cta-topbar",className:"inline-flex items-center gap-1.5 rounded-full bg-white/15 text-white px-4 py-1.5 text-sm font-semibold hover:bg-white/25 transition-colors",children:[(0,Te.jsx)(Fy,{size:15}),(0,Te.jsx)("span",{className:"hidden sm:inline",children:i("guide.bar.questions")}),(0,Te.jsx)("span",{className:"sm:hidden",children:i("guide.bar.questionsShort")})]})]})]}):null}function lS(){const e=Xa().t,t=Ys(),n=t.shouldShow,a=t.dismissed,r=t.setDismissed,i=t.setOpen,s=t.pct,o=t.open;return!n||a||o?null:(0,Te.jsxs)("div",{className:"mb-6 rounded-xl border border-primary/30 bg-primary/5 px-5 py-4 flex items-center gap-4","data-testid":"onboarding-banner",children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-lg bg-primary/15 flex items-center justify-center shrink-0",children:(0,Te.jsx)(Iy,{size:20,className:"text-primary"})}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsx)("div",{className:"font-heading text-base leading-tight",children:e("onboarding.banner.title")}),(0,Te.jsx)("div",{className:"text-sm text-muted-foreground",children:e("onboarding.banner.progress").replace("{pct}",s)})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsx)(fy,{variant:"primary",onClick:()=>i(!0),"data-testid":"onboarding-banner-continue",children:e("onboarding.banner.continue")}),(0,Te.jsx)("button",{onClick:()=>r(!0),"data-testid":"onboarding-banner-dismiss",title:e("onboarding.banner.dismiss"),className:"text-muted-foreground hover:text-foreground p-1",children:(0,Te.jsx)(Iv,{size:18})})]})]})}function cS(){const e=Ws().ctMode,t=Rs(),n=t.user,r=t.impersonation,i=(0,a.useRef)(null),s=Le((0,a.useState)(0),2),o=s[0],l=s[1];return(0,a.useLayoutEffect)(()=>{const e=i.current;if(!e)return;const t=()=>l(e.offsetHeight);t();const n=new ResizeObserver(t);return n.observe(e),window.addEventListener("resize",t),()=>{n.disconnect(),window.removeEventListener("resize",t)}},[e,r,null===n||void 0===n?void 0:n.is_demo]),(0,Te.jsx)(BN,{children:(0,Te.jsxs)("div",{className:"ps-typography min-h-screen bg-background",style:{"--ct-offset":o+"px"},children:[(0,Te.jsxs)("div",{ref:i,className:"sticky top-0 z-[60]",children:[e&&(0,Te.jsx)(oS,{}),(0,Te.jsx)(iS,{}),(0,Te.jsx)(rS,{})]}),(0,Te.jsxs)("div",{className:"flex",children:[(0,Te.jsx)(YN,{topOffset:o}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0 flex flex-col",children:[(0,Te.jsxs)("header",{className:"h-14 border-b border-border bg-white flex items-center justify-end px-6 gap-3 sticky z-40",style:{to
2p:o},children:[(0,Te.jsx)(eS,{}),(0,Te.jsx)(XN,{})]}),(0,Te.jsxs)("main",{className:"flex-1 p-6 lg:p-8 max-w-[1500px] w-full",children:[(0,Te.jsx)(lS,{}),(0,Te.jsx)(Cn,{})]})]})]})]})})}const dS=kf("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),uS=kf("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]),mS=kf("chart-line",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]]),pS=kf("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),hS=kf("receipt",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 17.5v-11",key:"1jc1ny"}]]),fS=kf("file-pen-line",[["path",{d:"m18 5-2.414-2.414A2 2 0 0 0 14.172 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2",key:"142zxg"}],["path",{d:"M21.378 12.626a1 1 0 0 0-3.004-3.004l-4.01 4.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"2t3380"}],["path",{d:"M8 18h1",key:"13wk12"}]]),gS=kf("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]),xS=kf("plug-zap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]),vS=kf("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]]),bS=kf("sliders-horizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]),yS=kf("palette",[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]]),wS=kf("type",[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]]),jS=kf("calculator",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",key:"1nb95v"}],["line",{x1:"8",x2:"16",y1:"6",y2:"6",key:"x4nwl0"}],["line",{x1:"16",x2:"16",y1:"14",y2:"18",key:"wjye3r"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M8 18h.01",key:"lrp35t"}]]),kS=kf("user-cog",[["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m14.305 16.53.923-.382",key:"1itpsq"}],["path",{d:"m15.228 13.852-.923-.383",key:"eplpkm"}],["path",{d:"m16.852 12.228-.383-.923",key:"13v3q0"}],["path",{d:"m16.852 17.772-.383.924",key:"1i8mnm"}],["path",{d:"m19.148 12.228.383-.923",key:"1q8j1v"}],["path",{d:"m19.53 18.696-.382-.924",key:"vk1qj3"}],["path",{d:"m20.772 13.852.924-.383",key:"n880s0"}],["path",{d:"m20.772 16.148.924.383",key:"1g6xey"}],["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),NS=kf("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}
2]]),SS=kf("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]]),_S=kf("arrow-right-left",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]),zS=e=>{let t=e.to,n=e.icon,a=e.label,r=e.testid,i=e.end;return e.disabled?(0,Te.jsxs)("span",{"data-testid":r,title:"Keine Berechtigung",className:"flex items-center gap-3 px-4 py-3 text-sm font-semibold text-zinc-300 cursor-not-allowed select-none",children:[(0,Te.jsx)(n,{size:20})," ",a]}):(0,Te.jsxs)(ga,{to:t,end:i,"data-testid":r,className:e=>{let t=e.isActive;return"flex items-center gap-3 px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(t?"text-primary bg-[#F3F3F4]":"text-foreground hover:bg-[#F3F3F4]")},children:[(0,Te.jsx)(n,{size:20})," ",a]})},ES=e=>{let t=e.to,n=e.icon,a=e.label,r=e.testid,i=e.end;return e.disabled?(0,Te.jsxs)("span",{"data-testid":r,title:"Keine Berechtigung",className:"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm text-zinc-300 cursor-not-allowed select-none border-l-2 border-transparent",children:[(0,Te.jsx)(n,{size:16})," ",a]}):(0,Te.jsxs)(ga,{to:t,end:i,"data-testid":r,className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(n,{size:16})," ",a]})};function CS(){const e=Rs(),t=e.user,n=e.logout,r="superadmin"===(null===t||void 0===t?void 0:t.role),i=e=>{var n,a;return r||!!(null!==t&&void 0!==t&&null!==(n=t.permissions)&&void 0!==n&&n.full||null!==t&&void 0!==t&&null!==(a=t.permissions)&&void 0!==a&&a[e])},s=nn(),o=sn(),l=["/admin/automails","/admin/manual","/admin/textverarbeitung","/admin/changelog"].some(e=>s.pathname.startsWith(e)),c=s.pathname.startsWith("/admin/textverarbeitung"),d=["/admin/clickthrough","/admin/ct-bericht","/admin/ct-cta"].some(e=>s.pathname.startsWith(e)),u=["/admin/admins","/admin/inhalts-sync","/admin/transfer-import","/admin/customer-transfer","/admin/activities"].some(e=>s.pathname.startsWith(e)),m=s.pathname.startsWith("/admin/parameter"),p=["/admin/vorschau","/admin/billing","/admin/invoices","/admin/angebote","/admin/gutscheine","/admin/stripe-test"].some(e=>s.pathname.startsWith(e)),h=new URLSearchParams(s.search).get("tab")||"quota",f=p?"billing":l?"texte":m?"param":d?"ct":u?"org":null,g=Le((0,a.useState)(f),2),x=g[0],v=g[1],b=Le((0,a.useState)(c),2),y=b[0],w=b[1],j={billing:"/admin/vorschau",texte:"/admin/automails",param:"/admin/parameter?tab=quota",ct:"/admin/clickthrough",org:r?"/admin/admins":i("inhalts_sync")?"/admin/inhalts-sync":i("aktivitaeten")?"/admin/activities":"/admin/admins"},k=e=>{v(e),o(j[e])};(0,a.useEffect)(()=>{v(f),w(c)},[s.pathname]);const N=(null===t||void 0===t?void 0:t.profile)||{},S=([N.first_name,N.last_name].filter(Boolean).join(" ")||(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.email)||"?").trim().split(/\s+/).map(e=>e[0]).slice(0,2).join("").toUpperCase();return(0,Te.jsxs)("aside",{className:"w-[300px] shrink-0 h-screen sticky top-0 bg-white flex flex-col","data-testid":"admin-sidebar",children:[(0,Te.jsx)("div",{className:"px-6",style:{paddingTop:"35px"},children:(0,Te.jsx)(lw,{width:250})}),(0,Te.jsx)("div",{className:"mt-4 px-6",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2 text-xs font-bold uppercase tracking-[0.15em] text-primary",children:[(0,Te.jsx)(dS,{size:14})," Admin-Bereich"]})}),(0,Te.jsx)("div",{className:"flex-1 overflow-y-auto",style:{marginTop:"40px"},children:(0,Te.jsxs)("nav",{className:"space-y-1",children:[(0,Te.jsx)(zS,{to:"/admin",icon:vw,label:"Kunden",testid:"admin-nav-overview",end:!0,disabled:!i("administration")}),i("billing")?(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>k("billing"),"data-testid":"admin-nav-abrechnung",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(p?"text-primary":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(uS,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.admin.billing",as:"span",children:"Abrechnung"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("billing"===x?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:"billing"===x&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-abrechnung-submenu",children:[(0,Te.jsx)(ES,{to:"/admin/vorschau",icon:mS,label:"Vorschau",testid:"admin-nav-vorschau"}),(0,Te.jsx)(ES,{to:"/admin/billing",end:!0,icon:pS,label:"Vertr\xe4ge",testid:"admin-nav-billing"}),(0,Te.jsx)(ES,{to:"/admin/invoices",icon:hS,label:"Rechnungen",testid:"admin-nav-invoices"}),(0,Te.jsx)(ES,{to:"/admin/angebote",icon:fS,label:"Angebote",testid:"admin-nav-angebote"}),r&&(0,Te.jsx)(ES,{to:"/admin/gutscheine",icon:gS,label:"Gutscheine",testid:"admin-nav-vouchers"}),r&&(0,Te.jsx)(ES,{to:"/admin/stripe-test",icon:xS,label:"Stripe-Test",testid:"admin-nav-stripe-test"})]})})]}):(0,Te.jsxs)("span",{"data-testid":"admin-nav-abrechnung",title:"Keine Berechtigung",className:"flex items-center gap-3 px-4 py-3 text-sm font-semibold text-zinc-300 cursor-not-allowed select-none",children:[(0,Te.jsx)(uS,{size:20})," Abrechnung"]}),i("texte")?(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>k("texte"),"data-testid":"admin-nav-texte",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(l?"text-primary":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(pS,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.admin.texts",as:"span",children:"Texte"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("texte"===x?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:"texte"===x&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-texte-submenu",children:[(0,Te.jsxs)(ga,{to:"/admin/automails","data-testid":"admin-nav-automails",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(vS,{size:16})," AutoMails"]}),(0,Te.jsxs)(ga,{to:"/admin/manual","data-testid":"admin-nav-manual",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(Af,{size:16})," Handbuch"]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>w(e=>!e),"data-testid":"admin-nav-textverarbeitung",className:"w-full flex items-center justify-between pl-10 pr-4 py-2.5 text-sm font-semibold transition-colors duration-150 border-l-2 ".concat(c?"bg-[#F3F3F4] text-primary border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(pS,{size:16})," ",(0,Te.jsx)(cy,{id:"nav.admin.texts",as:"span",children:"Texte"})]}),(0,Te.jsx)(xw,{size:14,className:"transition-transform duration-200 ".concat(y?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:y&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-textverarbeitung-submenu",children:[(0,Te.jsxs)(ga,{to:"/admin/textverarbeitung",end:!0,"data-testid":"admin-nav-tv-care",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-16 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(zw,{size:16})," PERSENTIS Care"]}),(0,Te.jsxs)(ga,{to:"/admin/textverarbeitung/analytics","data-testid":"admin-nav-tv-analytics",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-16 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(jw,{size:16})," PERSENTIS Analytics"]}),r&&(0,Te.jsxs)(ga,{to:"/admin/textverarbeitung/pulse-fragensets","data-testid":"admin-nav-tv-pulse-fragensets",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-16 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(Nw,{size:16})," PERSENTIS Pulse (FragenSets)"]})]})})]}),i("neuerungen")&&(0,Te.jsxs)(ga,{to:"/admin/changelog","data-testid":"admin-nav-changelog",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(If,{size:16})," Neuerungen"]})]})})]}):(0,Te.jsxs)("span",{"data-testid":"admin-nav-texte",title:"Keine Berechtigung",className:"flex items-center gap-3 px-4 py-3 text-sm font-semibold text-zinc-300 cursor-not-allowed select-none",children:[(0,Te.jsx)(pS,{size:20})," Texte"]}),i("parameter")?(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>k("param"),"data-testid":"admin-nav-parameter",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(m?"text-primary":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(bS,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.admin.parameters",as:"span",children:"Parameter"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("param"===x?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:"param"===x&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-parameter-submenu",children:[{id:"quota",label:"G\xfcltigkeit",icon:bS},{id:"teilnahme",label:"Teilnahme",icon:_f},{id:"erf",label:"Erf\xfcllungsgrad",icon:jw},{id:"colors",label:"Farben",icon:yS},{id:"typo",label:"Schriften",icon:wS},{id:"rechner",label:"Rechner",icon:jS},{id:"hintergruende",label:"Hintergr\xfcnde",icon:pS}].map(e=>{const t=e.icon,n=m&&h===e.id;return(0,Te.jsxs)(ga,{to:"/admin/parameter?tab=".concat(e.id),"data-testid":"admin-nav-param-".concat(e.id),className:"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(n?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent"),children:[(0,Te.jsx)(t,{size:16})," ",e.label]},e.id)})})})]}):(0,Te.jsxs)("span",{"data-testid":"admin-nav-parameter",title:"Keine Berechtigung",className:"flex items-center gap-3 px-4 py-3 text-sm font-semibold text-zinc-300 cursor-not-allowed select-none",children:[(0,Te.jsx)(bS,{size:20})," Parameter"]}),i("clickthrough")?(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>k("ct"),"data-testid":"admin-nav-clickthrough-group",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(d?"text-primary":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(Dy,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.admin.guide",as:"span",children:"Guide"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("ct"===x?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:"ct"===x&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-clickthrough-submenu",children:[(0,Te.jsxs)(ga,{to:"/admin/clickthrough","data-testid":"admin-nav-ct-texte",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(pS,{size:16})," CT-Texte"]}),i("clickthrough")&&(0,Te.jsxs)(ga,{to:"/admin/ct-cta","data-testid":"admin-nav-ct-cta",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(If,{size:16})," CT-CTA"]}),(0,Te.jsxs)(ga,{to:"/admin/ct-bericht","data-testid":"admin-nav-ct-report",className:e=>{let t=e.isActive;return"flex items-center gap-3 pl-10 pr-4 py-2.5 text-sm transition-colors duration-150 border-l-2 ".concat(t?"bg-[#F3F3F4] text-primary font-semibold border-primary":"text-muted-foreground hover:bg-[#F3F3F4] border-transparent")},children:[(0,Te.jsx)(mS,{size:16})," CT-Bericht"]})]})})]}):(0,Te.jsxs)("span",{"data-testid":"admin-nav-clickthrough-group",title:"Keine Berechtigung",className:"flex items-center gap-3 px-4 py-3 text-sm font-semibold text-zinc-300 cursor-not-allowed select-none",children:[(0,Te.jsx)(Dy,{size:20})," Guide"]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>k("org"),"data-testid":"admin-nav-organisation-group",className:"w-full flex items-center justify-between px-4 py-3 text-sm font-semibold transition-colors duration-150 ".concat(u?"text-primary":"text-foreground hover:bg-[#F3F3F4]"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-3",children:[(0,Te.jsx)(Sf,{size:20})," ",(0,Te.jsx)(cy,{id:"nav.admin.organisation",as:"span",children:"Organisation"})]}),(0,Te.jsx)(xw,{size:16,className:"transition-transform duration-200 ".concat("org"===x?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:"org"===x&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2,ease:"easeInOut"},className:"overflow-hidden","data-testid":"admin-organisation-submenu",children:[(0,Te.jsx)(ES,{to:"/admin/admins",icon:kS,label:"Admins",testid:"admin-nav-admins",disabled:!r}),(0,Te.jsx)(ES,{to:"/admin/inhalts-sync",icon:NS,label:"Inhalts-Sync",testid:"admin-nav-content-sync",disabled:!i("inhalts_sync")}),(0,Te.jsx)(ES,{to:"/admin/transfer-import",icon:SS,label:"Historien-Import",testid:"admin-nav-transfer-import",disabled:!r}),(0,Te.jsx)(ES,{to:"/admin/customer-transfer",icon:_S,label:"Kunden-Transfer",testid:"admin-nav-customer-transfer",disabled:!r}),(0,Te.jsx)(ES,{to:"/admin/activities",icon:Nw,label:"Aktivit\xe4ten",testid:"admin-nav-activities",disabled:!i("aktivitaeten")})]})})]})]})}),(0,Te.jsxs)("div",{className:"p-4 flex items-center gap-3",children:[(0,Te.jsx)(ga,{to:"/profile","data-testid":"admin-nav-profile",title:"Profil",className:e=>{let t=e.isActive;return"rounded-full transition-shadow ".concat(t?"ring-2 ring-primary ring-offset-2":"hover:ring-2 hover:ring-primary/40")},children:N.avatar?(0,Te.jsx)("img",{src:N.avatar,alt:"Profil",className:"w-11 h-11 rounded-full object-cover","data-testid":"admin-avatar"}):(0,Te.jsx)("span",{className:"w-11 h-11 rounded-full bg-primary text-white flex items-center justify-center text-base font-bold","data-testid":"admin-avatar",children:S})}),(0,Te.jsx)("button",{onClick:n,"data-testid":"admin-menu-logout",title:"Abmelden",className:"ml-auto w-10 h-10 flex items-center justify-center rounded-md text-destructive hover:bg-red-50 transition-colors",children:(0,Te.jsx)(Pw,{size:18})})]})]})}function PS(){return(0,Te.jsxs)("div",{className:"ps-typography flex min-h-screen bg-background",children:[(0,Te.jsx)(CS,{}),(0,Te.jsx)("div",{className:"flex-1 min-w-0 flex flex-col",children:(0,Te.jsx)("main",{className:"flex-1 p-6 lg:p-8 max-w-[1500px] w-full",children:(0,Te.jsx)(Cn,{})})})]})}const AS=kf("shield-alert",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);function TS(){const e=Rs(),t=e.login,n=e.user,r=Xa().t,i=sn(),s=Le((0,a.useState)(""),2),o=s[0],l=s[1],c=Le((0,a.useState)(""),2),d=c[0],u=c[1],m=Le((0,a.useState)(""),2),p=m[0],h=m[1],f=Le((0,a.useState)(!1),2),g=f[0],x=f[1],v=Le((0,a.useState)(!1),2),b=v[0],y=v[1];if(n)return(0,Te.jsx)(En,{to:"superadmin"===n.role?"/admin":"/welcome",replace:!0});return g?(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#FDFBF7] p-6","data-testid":"login-deactivated-page",children:(0,Te.jsxs)("div",{className:"bg-white border border-[#EAECE8] rounded-2xl p-10 text-center max-w-md shadow-sm",children:[(0,Te.jsx)("div",{className:"mx-auto mb-5 w-14 h-14 rounded-full bg-red-50 border border-red-200 flex items-center justify-center",children:(0,Te.jsx)(AS,{className:"text-red-500",size:30})}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-3","data-testid":"login-deactivated-heading",children:"Ihr Account wurde deaktiviert"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed",children:"Sie haben aktuell keine Berechtigung sich bei Ihrem Konto anzumelden."}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground leading-relaxed mt-3",children:["Bitte wenden Sie sich an unser"," ",(0,Te.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold text-primary hover:underline","data-testid":"login-deactivated-support",children:"Support Team"}),"."]}),(0,Te.jsx)("button",{onClick:()=>x(!1),"data-testid":"login-deactivated-back",className:"inline-block mt-7 text-sm text-muted-foreground hover:text-primary transition-colors",children:"Zur\xfcck zur Anmeldung"})]})}):(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsxs)("div",{className:"w-full max-w-sm",children:[(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal",children:r("login.title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:r("login.subtitle")}),(0,Te.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),h(""),x(!1),y(!0);try{const e=await t(o,d);i("superadmin"===e.role?"/admin":"/welcome")}catch(sse){var n,a,r;const t=(null===sse||void 0===sse||null===(n=sse.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail)||"";403===(null===sse||void 0===sse||null===(r=sse.response)||void 0===r?void 0:r.status)&&/deaktiviert/i.test(t)?x(!0):h(Cs(sse,"Anmeldung fehlgeschlagen"))}finally{y(!1)}},className:"mt-8 space-y-4","data-testid":"login-form",children:[(0,Te.jsx)(wy,{label:r("login.email"),children:(0,Te.jsx)(gy,{type:"email",value:o,onChange:e=>l(e.target.value),required:!0,"data-testid":"login-email",autoComplete:"email"})}),(0,Te.jsx)(wy,{label:r("login.password"),children:(0,Te.jsx)(gy,{type:"password",value:d,onChange:e=>u(e.target.value),required:!0,"data-testid":"login-password",autoComplete:"current-password"})}),p&&(0,Te.jsx)("p",{className:"text-sm text-destructive","data-testid":"login-error",children:p}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:b,"data-testid":"login-submit",children:b?"\u2026":r("login.submit")})]}),(0,Te.jsx)("button",{onClick:()=>i("/forgot-password"),"data-testid":"login-forgot",className:"mt-4 text-sm text-muted-foreground hover:text-primary transition-colors",children:r("login.forgot")}),(0,Te.jsxs)("p",{className:"mt-4 text-sm text-muted-foreground",children:[r("login.no_account")," ",(0,Te.jsx)("button",{onClick:()=>i("/register"),"data-testid":"login-register-link",className:"font-semibold text-primary hover:underline",children:r("login.register")})]}),(0,Te.jsx)("div",{className:"mt-6",children:(0,Te.jsx)(XN,{})})]})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("/login-bg.png",")")}})]})}const RS=kf("mail-check",[["path",{d:"M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8",key:"12jkf8"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]]);function OS(){const e=Rs().user,t=sn(),n=Le((0,a.useState)({first_name:"",last_name:"",email:"",company:"",position:"",password:"",password2:""}),2),r=n[0],i=n[1],s=Le((0,a.useState)(!1),2),o=s[0],l=s[1],c=Le((0,a.useState)(""),2),u=c[0],m=c[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=Le((0,a.useState)(!1),2),x=g[0],v=g[1];if(e)return(0,Te.jsx)(En,{to:"superadmin"===e.role?"/admin":"/dashboard",replace:!0});const b=(e,t)=>i(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsx)("div",{className:"w-full max-w-sm",children:x?(0,Te.jsxs)("div",{"data-testid":"register-success",children:[(0,Te.jsx)("div",{className:"w-14 h-14 roun
2ded-full bg-[#F3F7EF] flex items-center justify-center",children:(0,Te.jsx)(RS,{size:28,className:"text-primary"})}),(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-6",children:"Fast geschafft!"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2 leading-relaxed",children:["Wir haben Ihnen eine E-Mail an ",(0,Te.jsx)("strong",{children:r.email.trim()})," gesendet. Bitte best\xe4tigen Sie Ihre E-Mail-Adresse \xfcber den enthaltenen Link, um Ihr Konto zu aktivieren."]}),(0,Te.jsx)(fy,{className:"mt-6",onClick:()=>t("/login"),"data-testid":"register-to-login",children:"Zur Anmeldung"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal",children:"Konto erstellen"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Richten Sie Ihre Firma auf PERSENTIS ein"}),(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),r.first_name.trim()&&r.last_name.trim())if(r.company.trim())if(r.position.trim())if(r.password.length<8)m("Passwort muss mindestens 8 Zeichen haben.");else if(r.password===r.password2)if(o){m(""),f(!0);try{await Ps.post("/auth/register",{first_name:r.first_name.trim(),last_name:r.last_name.trim(),email:r.email.trim(),company:r.company.trim(),position:r.position.trim(),password:r.password,accept_terms:o}),v(!0)}catch(sse){m(Cs(sse,"Registrierung fehlgeschlagen"))}finally{f(!1)}}else m("Bitte akzeptieren Sie die AGB, um fortzufahren.");else m("Die Passw\xf6rter stimmen nicht \xfcberein.");else m("Bitte geben Sie Ihre Position an.");else m("Bitte geben Sie einen Firmennamen an.");else m("Bitte geben Sie Vor- und Nachnamen an.")},className:"mt-8 space-y-4","data-testid":"register-form",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Vorname",children:(0,Te.jsx)(gy,{value:r.first_name,onChange:e=>b("first_name",e.target.value),required:!0,"data-testid":"register-firstname"})}),(0,Te.jsx)(wy,{label:"Nachname",children:(0,Te.jsx)(gy,{value:r.last_name,onChange:e=>b("last_name",e.target.value),required:!0,"data-testid":"register-lastname"})})]}),(0,Te.jsx)(wy,{label:"E-Mail",children:(0,Te.jsx)(gy,{type:"email",value:r.email,onChange:e=>b("email",e.target.value),required:!0,"data-testid":"register-email",autoComplete:"email"})}),(0,Te.jsx)(wy,{label:"Firmenname",children:(0,Te.jsx)(gy,{value:r.company,onChange:e=>b("company",e.target.value),required:!0,"data-testid":"register-company"})}),(0,Te.jsx)(wy,{label:"Position",children:(0,Te.jsx)(gy,{value:r.position,onChange:e=>b("position",e.target.value),required:!0,"data-testid":"register-position",placeholder:"z. B. Gesch\xe4ftsf\xfchrung, HR-Leitung"})}),(0,Te.jsx)(wy,{label:"Passwort (mind. 8 Zeichen)",children:(0,Te.jsx)(gy,{type:"password",value:r.password,onChange:e=>b("password",e.target.value),required:!0,"data-testid":"register-password",autoComplete:"new-password"})}),(0,Te.jsx)(wy,{label:"Passwort best\xe4tigen",children:(0,Te.jsx)(gy,{type:"password",value:r.password2,onChange:e=>b("password2",e.target.value),required:!0,"data-testid":"register-password-confirm",autoComplete:"new-password"})}),u&&(0,Te.jsx)("p",{className:"text-sm text-destructive","data-testid":"register-error",children:u}),(0,Te.jsxs)("label",{className:"flex items-start gap-2 text-sm text-muted-foreground cursor-pointer","data-testid":"register-agb-label",children:[(0,Te.jsx)("input",{type:"checkbox",checked:o,onChange:e=>l(e.target.checked),className:"mt-0.5 h-4 w-4 accent-primary","data-testid":"register-agb-checkbox"}),(0,Te.jsxs)("span",{children:["Ich akzeptiere die"," ",(0,Te.jsx)("a",{href:"https://www.persentis.com/agb/",target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-primary hover:underline","data-testid":"register-agb-link",children:"AGB"}),"."]})]}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:h,"data-testid":"register-submit",children:h?"\u2026":"Kostenlos registrieren"})]}),(0,Te.jsxs)("p",{className:"mt-5 text-sm text-muted-foreground flex items-center gap-1.5",children:[(0,Te.jsx)(Ef,{size:15,className:"text-primary"})," Bereits ein Konto?",(0,Te.jsx)("button",{onClick:()=>t("/login"),"data-testid":"register-login-link",className:"font-semibold text-primary hover:underline",children:"Jetzt anmelden"})]})]})})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("/login-bg.png",")")}})]})}function DS(){const e=ln().token,t=sn(),n=Rs().loginWithToken,r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)(!0),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1];(0,a.useEffect)(()=>{Ps.get("/auth/confirm/".concat(e)).then(e=>s(e.data)).catch(e=>m(Cs(e,"Best\xe4tigungslink ung\xfcltig oder abgelaufen"))).finally(()=>c(!1))},[e]);return(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsx)("div",{className:"w-full max-w-sm","data-testid":"confirm-page",children:l?(0,Te.jsx)("p",{className:"text-muted-foreground",children:"Link wird gepr\xfcft \u2026"}):i?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("div",{className:"w-14 h-14 roun
2ded-full bg-[#F3F7EF] flex items-center justify-center",children:(0,Te.jsx)(RS,{size:28,className:"text-primary"})}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-6 text-sm brand-green font-medium",children:[(0,Te.jsx)(Ef,{size:18})," Link g\xfcltig"]}),(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-3",children:"E-Mail best\xe4tigen"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["F\xfcr ",(0,Te.jsx)("strong",{children:i.email})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-3 leading-relaxed",children:"Klicken Sie auf den Button, um Ihr Konto zu aktivieren und direkt loszulegen."}),u&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"confirm-error",children:u}),(0,Te.jsx)(fy,{className:"mt-6 w-full",onClick:async()=>{f(!0);try{const a=await Ps.post("/auth/confirm-email",{token:e});n(a.data.token,a.data.user),Ia.success("Konto best\xe4tigt \u2013 willkommen bei PERSENTIS!"),t("/welcome")}catch(sse){m(Cs(sse))}finally{f(!1)}},disabled:h,"data-testid":"confirm-submit",children:h?"\u2026":"Konto best\xe4tigen"})]}):(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl tracking-normal",children:"Best\xe4tigung fehlgeschlagen"}),(0,Te.jsx)("p",{className:"text-sm text-destructive mt-2","data-testid":"confirm-invalid",children:u}),(0,Te.jsx)(fy,{className:"mt-6",onClick:()=>t("/login"),"data-testid":"confirm-to-login",children:"Zur Anmeldung"})]})})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("/login-bg.png",")")}})]})}function MS(){const e=sn(),t=Le((0,a.useState)(""),2),n=t[0],r=t[1],i=Le((0,a.useState)(!1),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],d=l[1];return(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsxs)("div",{className:"w-full max-w-sm","data-testid":"forgot-page",children:[(0,Te.jsx)(lw,{size:"md"}),c?(0,Te.jsxs)("div",{className:"mt-8",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-primary font-medium",children:[(0,Te.jsx)(RS,{size:20})," E-Mail gesendet"]}),(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-3",children:"Pr\xfcfen Sie Ihr Postfach"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2","data-testid":"forgot-success",children:"Falls ein Konto mit dieser E-Mail-Adresse existiert, haben wir Ihnen einen Link zum Zur\xfccksetzen Ihres Passworts gesendet. Der Link ist 1 Stunde g\xfcltig."}),(0,Te.jsxs)(fy,{className:"mt-6",onClick:()=>e("/login"),"data-testid":"forgot-back-login",children:[(0,Te.jsx)(aS,{size:16})," Zur\xfcck zur Anmeldung"]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-8",children:"Passwort vergessen?"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Geben Sie Ihre E-Mail-Adresse ein. Wir senden Ihnen einen Link zum Zur\xfccksetzen."}),(0,Te.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),o(!0);try{await Ps.post("/auth/forgot-password",{email:n}),d(!0)}catch(sse){Ia.error(Cs(sse))}finally{o(!1)}},className:"mt-8 space-y-4","data-testid":"forgot-form",children:[(0,Te.jsx)(wy,{label:"E-Mail-Adresse",children:(0,Te.jsx)(gy,{type:"email",value:n,onChange:e=>r(e.target.value),required:!0,"data-testid":"forgot-email",autoComplete:"email"})}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:s,"data-testid":"forgot-submit",children:s?"\u2026":"Link senden"})]}),(0,Te.jsxs)("button",{onClick:()=>e("/login"),"data-testid":"forgot-to-login",className:"mt-6 flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,Te.jsx)(aS,{size:15})," Zur\xfcck zur Anmeldung"]})]})]})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("https://images.unsplash.com/photo-1449247709967-d4461a6a6103?crop=entropy&cs=srgb&fm=jpg&q=85&w=1600",")")}})]})}function IS(){const e=ln().token,t=sn(),n=Le((0,a.useState)(null),2),r=n[0],i=n[1],s=Le((0,a.useState)(!0),2),o=s[0],l=s[1],c=Le((0,a.useState)(""),2),d=c[0],u=c[1],m=Le((0,a.useState)(""),2),p=m[0],h=m[1],f=Le((0,a.useState)(""),2),g=f[0],x=f[1],v=Le((0,a.useState)(!1),2),b=v[0],y=v[1];(0,a.useEffect)(()=>{Ps.get("/auth/reset/".concat(e)).then(e=>i(e.data)).catch(e=>u(Cs(e,"Link ung\xfcltig oder abgelaufen"))).finally(()=>l(!1))},[e]);return(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsxs)("div",{className:"w-full max-w-sm","data-testid":"reset-page",children:[(0,Te.jsx)(lw,{size:"md"}),o?(0,Te.jsx)("p",{className:"mt-8 text-muted-foreground",children:"Link wird gepr\xfcft \u2026"}):r?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-8 text-sm text-primary font-medium",children:[(0,Te.jsx)(Ef,{size:18})," Link g\xfcltig"]}),(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-3",children:"Neues Passwort"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["F\xfcr ",(0,Te.jsx)("strong",{children:r.email})]}),(0,Te.jsxs)("form",{onSubmit:async n=>{if(n.preventDefault(),p.length<8)u("Passwort muss mindestens 8 Zeichen haben.");else if(p===g){u(""),y(!0);try{await Ps.post("/auth/reset-password",{token:e,password:p}),Ia.success("Passwort ge\xe4ndert \u2013 bitte melden Sie sich an."),t("/login")}catch(sse){u(Cs(sse))}finally{y(!1)}}else u("Die Passw\xf6rter stimmen nicht \xfcberein.")},className:"mt-8 space-y-4","data-testid":"reset-form",children:[(0,Te.jsx)(wy,{label:"Neues Passwort",children:(0,Te.jsx)(gy,{type:"password",value:p,onChange:e=>h(e.target.value),required:!0,"data-testid":"reset-password",autoComplete:"new-password"})}),(0,Te.jsx)(wy,{label:"Passwort best\xe4tigen",children:(0,Te.jsx)(gy,{type:"password",value:g,onChange:e=>x(e.target.value),required:!0,"data-testid":"reset-password-confirm",autoComplete:"new-password"})}),d&&(0,Te.jsx)("p",{className:"text-sm text-destructive","data-testid":"reset-error",children:d}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:b,"data-testid":"reset-submit",children:b?"\u2026":"Passwort speichern"})]})]}):(0,Te.jsxs)("div",{className:"mt-8",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl tracking-normal",children:"Link ung\xfcltig"}),(0,Te.jsx)("p",{className:"text-sm text-destructive mt-2","data-testid":"reset-invalid",children:d}),(0,Te.jsx)(fy,{className:"mt-6",onClick:()=>t("/login"),"data-testid":"reset-to-login",children:"Zur Anmeldung"})]})]})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("https://images.unsplash.com/photo-1449247709967-d4461a6a6103?crop=entropy&cs=srgb&fm=jpg&q=85&w=1600",")")}})]})}const FS=function(e){let t=e.hint,n=e.className,a=void 0===n?"":n,r=e.testid,i=void 0===r?"page-loader":r,s=e.compact,o=void 0!==s&&s;const l=Xa().t;return o?(0,Te.jsxs)("div",{className:"flex items-center justify-center gap-2 py-6 text-sm text-muted-foreground ".concat(a),"data-testid":i,children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin text-primary"})," ",l("common.loading")]}):(0,Te.jsxs)("div",{className:"flex flex-col items-center justify-center py-24 text-center ".concat(a),"data-testid":i,children:[(0,Te.jsx)(Of,{size:40,className:"animate-spin text-primary mb-4"}),(0,Te.jsx)("p",{className:"font-heading text-lg",children:l("common.loading")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-sm",children:t||l("common.loading_hint")})]})},LS={kritisch:{en:"critical",fr:"critique",es:"cr\xedtico",it:"critico"},"ausbauf\xe4hig":{en:"needs improvement",fr:"\xe0 am\xe9liorer",es:"mejorable",it:"migliorabile"},solide:{en:"solid",fr:"solide",es:"s\xf3lido",it:"solido"},gut:{en:"good",fr:"bon",es:"bueno",it:"buono"},"sehr gut":{en:"very good",fr:"tr\xe8s bon",es:"muy bueno",it:"molto buono"},exzellent:{en:"excellent",fr:"excellent",es:"excelente",it:"eccellente"},"au\xdfergew\xf6hnlich":{en:"outstanding",fr:"exceptionnel",es:"excepcional",it:"eccezionale"},moderat:{en:"moderate",fr:"mod\xe9r\xe9",es:"moderado",it:"moderato"},gering:{en:"low",fr:"faible",es:"bajo",it:"basso"},"sehr niedrig":{en:"very low",fr:"tr\xe8s faible",es:"muy bajo",it:"molto basso"},niedrig:{en:"low",fr:"faible",es:"bajo",it:"basso"},hoch:{en:"high",fr:"\xe9lev\xe9",es:"alto",it:"alto"},"sehr hoch":{en:"very high",fr:"tr\xe8s \xe9lev\xe9",es:"muy alto",it:"molto alto"},"sehr schwach":{en:"very weak",fr:"tr\xe8s faible",es:"muy d\xe9bil",it:"molto debole"},schwach:{en:"weak",fr:"faible",es:"d\xe9bil",it:"debole"},"sehr stark":{en:"very strong",fr:"tr\xe8s fort",es:"muy fuerte",it:"molto forte"},stark:{en:"strong",fr:"fort",es:"fuerte",it:"forte"},"Kein Ergebnis":{en:"No result",fr:"Aucun r\xe9sultat",es:"Sin resultado",it:"Nessun risultato"}};function BS(e,t){if(!e||"de"===t||"string"!==typeof e)return e;const n=e.trim(),a=LS[n]||LS[n.toLowerCase()];return a&&a[t]||e}function qS(e){let t=e.value,n=e.color,a=void 0===n?"#CBD5E1":n,r=e.status,i=e.segments,s=e.size,o=void 0===s?220:s,l=e.displayValue,c=e.minLabel,d=e.midLabel,u=e.maxLabel,m=e.hideMarker,p=void 0!==m&&m,h=e.statusColor,f=e.statusTextColor,g=void 0===f?"#ffffff"
2:f;const x=BS(r,Xa().lang),v=1.25*o,b=.385*v,y=.121*v,w=o<200?13.125:17.5,j=.12*v,k=.0675*v,N=b+y/2-.25*j,S=N+j,_=S,z=null!=d&&""!==d,E=null!=c&&""!==c||null!=u&&""!==u,C=E?30:0,P=E?6:0,A=_+3+C,T=_+(z?23:3),R=Math.ceil(2*(_+3+C)),O=Math.ceil(T+k+3+P),D=(e,t)=>{const n=(180-e/100*180)*(Math.PI/180);return{x:A+t*Math.cos(n),y:T-t*Math.sin(n)}},M=(e,t)=>{const n=D(e,b),a=D(t,b);return"M ".concat(n.x," ").concat(n.y," A ").concat(b," ").concat(b," 0 0 1 ").concat(a.x," ").concat(a.y)},I=i&&i.length?i:[{color:"#FF0000",from:0,to:33.33},{color:"#FFC000",from:33.33,to:66.66},{color:"#00B050",from:66.66,to:100}],F=null!==t&&void 0!==t,L=F?Math.max(0,Math.min(100,t)):0,B=(180-L/100*180)*(Math.PI/180),q=Math.cos(B),U=-Math.sin(B),V=Math.sin(B),H=Math.cos(B),W={x:A+N*q,y:T+N*U},K=A+S*q,G=T+S*U,Z={x:K+k*V,y:G+k*H},Y={x:K-k*V,y:G-k*H},Q=I.slice(1).map(e=>e.from),$="#111827",X=F&&!p?I.findIndex((e,t)=>L>=e.from&&(L<e.to||t===I.length-1&&L<=e.to)):-1;return(0,Te.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Te.jsxs)("svg",{width:R,height:O,viewBox:"0 0 ".concat(R," ").concat(O),role:"img","data-testid":"gauge-svg",children:[I.map((e,t)=>(0,Te.jsx)("path",{d:M(Math.max(0,e.from),Math.min(100,e.to)),fill:"none",stroke:e.color,strokeWidth:y,strokeLinecap:"butt",strokeOpacity:-1===X?.25:t===X?1:.25},t)),Q.map((e,t)=>{const n=D(e,b-y/2-1),a=D(e,b+y/2+1);return(0,Te.jsx)("line",{x1:n.x,y1:n.y,x2:a.x,y2:a.y,stroke:"#ffffff",strokeWidth:.022*v,strokeLinecap:"butt"},"sep-".concat(t))}),F?(0,Te.jsxs)(Te.Fragment,{children:[!p&&(0,Te.jsx)("polygon",{points:"".concat(W.x,",").concat(W.y," ").concat(Z.x,",").concat(Z.y," ").concat(Y.x,",").concat(Y.y),fill:$,stroke:"#ffffff",strokeWidth:.014*v,strokeLinejoin:"round","data-testid":"gauge-marker"}),(0,Te.jsx)("text",{x:A,y:T-2,textAnchor:"middle",fontSize:.26*v,fill:$,fontFamily:"Anton, Impact, sans-serif",letterSpacing:"0.5",children:void 0!==l&&null!==l?l:Math.round(t)})]}):(0,Te.jsx)("text",{x:A,y:T-2,textAnchor:"middle",fontSize:.11*v,fill:"#94A3B8",children:"\u2014"}),(E||z)&&(0,Te.jsxs)("g",{fontSize:14,fill:"#000000",fontWeight:"600",fontFamily:"inherit",children:[null!=c&&""!==c&&(0,Te.jsx)("text",{x:A-b-y/2-15,y:T-12,textAnchor:"end",dominantBaseline:"middle","data-testid":"gauge-min-label",children:c}),null!=u&&""!==u&&(0,Te.jsx)("text",{x:A+b+y/2+15,y:T-12,textAnchor:"start",dominantBaseline:"middle","data-testid":"gauge-max-label",children:u}),z&&(0,Te.jsx)("text",{x:A,y:T-b-y/2-4,textAnchor:"middle","data-testid":"gauge-mid-label",children:d})]})]}),r&&(0,Te.jsx)("div",{className:"-mt-1 inline-flex items-center rounded-full font-semibold uppercase text-white",style:{backgroundColor:h||(F?a:"#94A3B8"),color:g,padding:"5px 20px",fontSize:"".concat(w,"px"),lineHeight:1.1},"data-testid":"gauge-status",children:x})]})}const US=kf("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]]),VS=kf("trending-down",[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]]),HS=kf("arrow-up-right",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]),WS=kf("arrow-down-right",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]),KS=kf("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),GS=kf("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),ZS=kf("clipboard-list",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]),YS=kf("message-square",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),QS=kf("percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]),$S="anonymity.info_text";function XS(e){let t=e.className,n=void 0===t?"":t;const r=Is(),i=r.showPencils,s=r.getText,o=r.saveText,l=r.resetText,c=Le((0,a.useState)(!1),2),d=c[0],u=c[1],m=Le((0,a.useState)({top:0,left:0}),2),p=m[0],h=m[1],f=(0,a.useRef)(null),g=Le((0,a.useState)(!1),2),x=g[0],v=g[1],b=Le((0,a.useState)(""),2),y=b[0],w=b[1],j=Le((0,a.useState)(!1),2),k=j[0],N=j[1],S=s($S,"Zum Schutz der Anonymit\xe4t sind f\xfcr eine Auswertung auf Abteilungsebene mindestens 5 g\xfcltig beantwortete Frageb\xf6gen erforderlich. Wird diese Mindestanzahl nicht erreicht, sind keine detaillierten Einblicke in die jeweilige Abteilung m\xf6glich. Die Antworten werden selbstverst\xe4ndlich in der Gesamtauswertung ber\xfccksichtigt."),_=()=>{const e=f.current&&f.current.getBoundingClientRect();
2e&&h({top:e.top,left:e.left+e.width/2}),u(!0)},z=()=>u(!1),E=e=>{e&&(e.stopPropagation(),e.preventDefault()),w(S),v(!0)};return(0,Te.jsxs)("span",{className:"relative inline-flex items-center align-middle ".concat(n),"data-testid":"anonymity-info",children:[(0,Te.jsx)("button",{ref:f,type:"button",onMouseEnter:_,onMouseLeave:z,onFocus:_,onBlur:z,className:"text-red-600 hover:text-red-700 focus:outline-none transition-colors","aria-label":"Wichtige Information zur Anonymit\xe4t","data-testid":"anonymity-info-btn",children:(0,Te.jsx)(GS,{size:16})}),i&&(0,Te.jsx)("span",{role:"button",tabIndex:0,onClick:E,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||E(e)},"data-testid":"edit-tip-".concat($S),"aria-label":"Anonymit\xe4ts-Hinweis bearbeiten",title:"Hinweis bearbeiten (nur Super-Admin)",className:"ml-1 inline-flex items-center justify-center align-middle w-4 h-4 rounded text-primary/60 hover:text-primary hover:bg-[#E5E7EB] transition-colors cursor-pointer print:hidden",children:(0,Te.jsx)(Mf,{size:11})}),d&&(0,Na.createPortal)((0,Te.jsx)("span",{role:"tooltip","data-testid":"anonymity-info-tooltip",style:{position:"fixed",top:p.top-10,left:p.left,transform:"translate(-50%, -100%)",zIndex:9999},className:"pointer-events-none w-72 sm:w-80 rounded-lg bg-red-600 text-white text-xs font-normal leading-relaxed px-3 py-2.5 shadow-lg text-left",children:S}),document.body),(0,Te.jsx)(ey,{open:x,onOpenChange:e=>!e&&v(!1),children:(0,Te.jsxs)(ay,{"data-testid":"edit-tip-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(Mf,{size:16})," Hinweis bearbeiten"]}),(0,Te.jsx)(oy,{children:"Dieser Hinweis erscheint beim \xdcberfahren des Info-Symbols."})]}),(0,Te.jsx)("textarea",{value:y,onChange:e=>w(e.target.value),rows:6,"data-testid":"edit-tip-textarea",className:"w-full rounded-md border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsxs)(iy,{className:"flex items-center justify-between gap-2 sm:justify-between",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{N(!0);try{await l($S),Ia.success("Auf Standardtext zur\xfcckgesetzt."),v(!1)}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}finally{N(!1)}},disabled:k,children:[(0,Te.jsx)(Ff,{size:14})," Zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"flex gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>v(!1),disabled:k,children:"Abbrechen"}),(0,Te.jsx)(fy,{onClick:async()=>{N(!0);try{await o($S,y),Ia.success("Text gespeichert."),v(!1)}catch(rse){Ia.error("Speichern fehlgeschlagen.")}finally{N(!1)}},disabled:k,children:"Speichern"})]})]})]})})]})}const JS=kf("list-checks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);function e_(e){let t=e.id,n=e.label,r=e.children,i=e.className,s=void 0===i?"":i,o=e.side,l=void 0===o?"top":o;const c=Is(),d=c.showPencils,u=c.getText,m=c.saveText,p=c.resetText,h=Xa(),f=h.lang,g=h.t,x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=Le((0,a.useState)(""),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)(!1),2),z=_[0],E=_[1],C=Le((0,a.useState)({left:0,top:0,placement:l}),2),P=C[0],A=C[1],T=(0,a.useRef)(null),R=(0,a.useRef)(null),O="string"===typeof n?n:"",D=t&&g?g(t):t,M=t?f&&"de"!==f?t&&D&&D!==t?D:O:u(t,O):n,I=t&&d,F=(0,a.useCallback)(()=>{const e=T.current;if(!e)return;const t=e.getBoundingClientRect(),n="bottom"===l?"bottom":"top";A({left:t.left+t.width/2,top:"bottom"===n?t.bottom+6:t.top-6,placement:n})},[l]),L=()=>{M&&(F(),E(!0))},B=()=>E(!1);(0,a.useLayoutEffect)(()=>{if(!z||!R.current)return;const e=R.current,t="top"===P.placement?"translateY(-100%)":"";e.style.transform="translateX(-50%) ".concat(t).trim();const n=e.getBoundingClientRect();let a=0;n.left<8?a=8-n.left:n.right>window.innerWidth-8&&(a=window.innerWidth-8-n.right),0!==a&&(e.style.transform="translateX(calc(-50% + ".concat(Math.round(a),"px)) ").concat(t).trim())},[z,P,M]);const q=e=>{e&&(e.stopPropagation(),e.preventDefault()),j("string"===typeof M?M:""),b(!0)};return M?(0,Te.jsxs)("span",{ref:T,className:"relative inline-flex ".concat(s),onMouseEnter:L,onMouseLeave:B,onFocusCapture:L,onBlurCapture:B,children:[r,z&&"undefined"!==typeof document&&(0,Na.createPortal)((0,Te.jsx)("span",{ref:R,role:"tooltip",style:{position:"fixed",left:P.left,top:P.top,transform:"top"===P.placement?"translateX(-50%) translateY(-100%)":"translateX(-50%)",zIndex:9999},className:"pointer-events-none w-max max-w-xs whitespace-normal rounded-md bg-[#1F2A44] px-2.5 py-1.5 text-xs font-medium leading-snug text-white shadow-lg text-center print:hidden",children:M}),document.body),I&&(0,Te.jsx)("span",{role:"button",tabIndex:0,onClick:q,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||q(e)},"data-testid":"edit-tip-".concat(t),"aria-label":"Tooltip bearbeiten",title:"Tooltip bearbeiten (nur Super-Admin)",className:"absolute -top-1.5 -right-1.5 z-[61] inline-flex items-center justify-center w-4 h-4 rounded-full bg-white shadow border border-border text-primary/70 hover:text-primary transition-colors cursor-pointer print:hidden",children:(0,Te.jsx)(Mf,{size:10})}),I&&(0,Te.jsx)(ey,{open:v,onOpenChange:e=>!e&&b(!1),children:(0,Te.jsxs)(ay,{"data-testid":"edit-tip-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(Mf,{size:16})," Tooltip bearbeiten"]}),(0,Te.jsx)(oy,{children:"Dieser Hinweis erscheint beim \xdcberfahren mit der Maus."})]}),(0,Te.jsx)("textarea",{value:w,onChange:e=>j(e.target.value),rows:4,"data-testid":"edit-tip-textarea",className:"w-full rounded-md border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsxs)(iy,{className:"flex items-center justify-between gap-2 sm:justify-between",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{S(!0);try{await p(t),Ia.success("Auf Standardtext zur\xfcckgesetzt."),b(!1)}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}finally{S(!1)}},disabled:N,"data-testid":"edit-tip-reset",children:[(0,Te.jsx)(Ff,{size:14})," Zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"flex gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>b(!1),disabled:N,children:"Abbrechen"}),(0,Te.jsx)(fy,{onClick:async()=>{S(!0);try{await m(t,w),Ia.success("Text gespeichert."),b(!1)}catch(rse){Ia.error("Speichern fehlgeschlagen.")}finally{S(!1)}},disabled:N,"data-testid":"edit-tip-save",children:"Speichern"})]})]})]})})]}):r}const t_=[{key:"overall",label:"CARE Score"},{key:"GEN",label:"Mentales Wohlbefinden"},{key:"A",label:"Aufgabenattraktivit\xe4t"},{key:"B",label:"Beziehungsqualit\xe4t"}];function n_(e){var t;let n=e.cell,a=e.muted,r=e.delta,i=e.invert;const s=i?"#FF0000":"#00B050",o=i?"#00B050":"#FF0000";return(0,Te.jsxs)("div",{className:"flex flex-col items-center justify-start pt-1 ".concat(a?"bg-zinc-100/70 rounded-lg":""),"data-testid":"compare-cell",children:[(0,Te.jsx)(qS,{value:null!==(t=null===n||void 0===n?void 0:n.value)&&void 0!==t?t:null,displayValue:null===n||void 0===n?void 0:n.displayValue,color:null===n||void 0===n?void 0:n.color,status:null===n||void 0===n?void 0:n.status,segments:null===n||void 0===n?void 0:n.segments,size:130}),"number"===typeof r&&(0,Te.jsx)(e_,{id:r>0?"comparison.tip_over":r<0?"comparison.tip_under":"comparison.tip_equal",label:r>0?"liegt \xfcber Gesamt":r<0?"liegt unter Gesamt":"entspricht Gesamt",children:(0,Te.jsxs)("span",{className:"mt-1 text-xs font-bold tabular-nums cursor-help","data-testid":"compare-delta",style:{color:r>0?s:r<0?o:"#71717A"},children:[r>0?"+":r<0?"\u2212":"\xb1",Math.abs(r)]})})]})}function a_(e){var t;let n=e.comparison,r=(e.onOpenDept,e.openLabel,e.rows);const i=Xa().t,s=e=>{const t="comparison.row.".concat(e.key),n=i(t);return n!==t?n:e.label},o=r||(null===n||void 0===n?void 0:n.rows)||t_,l=null===(t=o[0])||void 0===t?void 0:t.key,c=(null===n||void 0===n?void 0:n.departments)||[],d=(null===n||void 0===n?void 0:n.branches)||[],u=d.length>1,m=Le((0,a.useState)("dept"),2),p=m[0],h=m[1],f="branch"===p?d:c,g=i("branch"===p?"comparison.unit_branches":"comparison.unit_departments"),x=Le((0,a.useState)([]),2),v=x[0],b=x[1];(0,a.useEffect)(()=>{b([])},[n,p]);const y=v.map(e=>f.find(t=>
2t.id===e)).filter(Boolean),w=(null===n||void 0===n?void 0:n.total)||null,j=f.filter(e=>!e.locked),k=()=>b((e=>{const t=[],n={};return e.forEach(e=>{const a=e.branch_name||"\u2014";void 0===n[a]&&(n[a]=t.length,t.push([])),t[n[a]].push(e)}),t.flat()})(j).map(e=>e.id)),N="168px",S={gridTemplateColumns:"180px ".concat(w?N+" ":"","repeat(").concat(y.length,", ").concat(N,")")};return(0,Te.jsxs)("div",{"data-testid":"comparison-view",children:[(0,Te.jsx)("div",{className:"mb-4",children:(0,Te.jsx)("p",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"comparison.hint",as:"span",vars:{unit:g},children:"W\xe4hlen Sie die gew\xfcnschten {unit} f\xfcr den direkten Vergleich der Gesamtzahlen. Die Spalte GESAMT dient als Referenz."})})}),u&&(0,Te.jsxs)("div",{className:"flex items-center justify-start gap-3 mb-4","data-testid":"comparison-mode-row",children:[(0,Te.jsx)("div",{className:"inline-flex rounded-full border border-border p-0.5 bg-white","data-testid":"comparison-mode-toggle",children:[["dept",i("comparison.unit_departments")],["branch",i("comparison.unit_branches")]].map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("button",{type:"button",onClick:()=>h(n),"data-testid":"comparison-mode-".concat(n),className:"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(p===n?"bg-primary text-white":"text-muted-foreground hover:text-foreground"),children:a},n)})}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0","data-testid":"comparison-actions",children:[(0,Te.jsx)(e_,{id:"comparison.tip_select_all",label:"Alle ausw\xe4hlen",children:(0,Te.jsx)("button",{type:"button",onClick:k,"aria-label":"Alle ausw\xe4hlen","data-testid":"comparison-select-all",className:"inline-flex items-center justify-center w-9 h-9 rounded-full border border-border bg-white text-primary hover:border-primary transition-colors",children:(0,Te.jsx)(JS,{size:17})})}),(0,Te.jsx)(e_,{id:"comparison.tip_reset",label:"Auswahl zur\xfccksetzen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>b([]),"aria-label":"Auswahl zur\xfccksetzen","data-testid":"comparison-reset",className:"inline-flex items-center justify-center w-9 h-9 rounded-full border border-border bg-white text-muted-foreground hover:border-primary transition-colors",children:(0,Te.jsx)(Ff,{size:17})})})]})]}),!u&&(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-2 mb-4","data-testid":"comparison-actions",children:[(0,Te.jsx)(e_,{id:"comparison.tip_select_all",label:"Alle ausw\xe4hlen",children:(0,Te.jsx)("button",{type:"button",onClick:k,"aria-label":"Alle ausw\xe4hlen","data-testid":"comparison-select-all",className:"inline-flex items-center justify-center w-9 h-9 rounded-full border border-border bg-white text-primary hover:border-primary transition-colors",children:(0,Te.jsx)(JS,{size:17})})}),(0,Te.jsx)(e_,{id:"comparison.tip_reset",label:"Auswahl zur\xfccksetzen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>b([]),"aria-label":"Auswahl zur\xfccksetzen","data-testid":"comparison-reset",className:"inline-flex items-center justify-center w-9 h-9 rounded-full border border-border bg-white text-muted-foreground hover:border-primary transition-colors",children:(0,Te.jsx)(Ff,{size:17})})})]}),(0,Te.jsx)("div",{className:"mb-6 space-y-[30px]","data-testid":"comparison-select",children:("branch"===p?[{name:null,items:f}]:Object.values(f.reduce((e,t)=>{const n=t.branch_name||"\u2014";return(e[n]=e[n]||{name:n,items:[]}).items.push(t),e},{}))).map(e=>(0,Te.jsxs)("div",{"data-testid":"comparison-group-".concat(e.name||"all"),children:[e.name&&(0,Te.jsx)("h3",{className:"font-heading text-lg text-primary mb-[10px]","data-testid":"comparison-branch-heading",children:e.name}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-[10px]",children:[(()=>{const t=e.items.filter(e=>!e.locked).map(e=>e.id);return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(e_,{id:"comparison.tip_select_all",label:"Alle ausw\xe4hlen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>b(e=>
2Array.from(new Set([...e,...t]))),"aria-label":"Alle ausw\xe4hlen","data-testid":"group-select-all-".concat(e.name||"all"),className:"inline-flex items-center justify-center w-8 h-8 rounded-full border border-border bg-white text-primary hover:border-primary transition-colors shrink-0",children:(0,Te.jsx)(JS,{size:15})})}),(0,Te.jsx)(e_,{id:"comparison.tip_reset_group",label:"Zur\xfccksetzen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>b(e=>e.filter(e=>!t.includes(e))),"aria-label":"Zur\xfccksetzen","data-testid":"group-reset-".concat(e.name||"all"),className:"inline-flex items-center justify-center w-8 h-8 rounded-full border border-border bg-white text-muted-foreground hover:border-primary transition-colors shrink-0",children:(0,Te.jsx)(Ff,{size:15})})})]})})(),e.items.map(e=>{var t,n;const a=v.includes(e.id),r=function(e){if(!e)return null;const t=e.replace("#",""),n=3===t.length?t.split("").map(e=>e+e).join(""):t,a=parseInt(n.slice(0,2),16),r=parseInt(n.slice(2,4),16),i=parseInt(n.slice(4,6),16);return[a,r,i].some(e=>Number.isNaN(e))?null:r>a&&r>i?{bg:"#e4f3e7",text:"#00b050"}:a>r&&r<120?{bg:"#ffe4e1",text:"#ff0000"}:{bg:"#fff5e3",text:"#946a00"}}(null===(t=e.meta)||void 0===t||null===(n=t[l])||void 0===n?void 0:n.color);if(e.locked){const t="no_survey"===e.lock_reason?"Keine Umfrage durchgef\xfchrt":"few_participants"===e.lock_reason?"Zu wenige Mitarbeiter teilgenommen":"Gesperrt (< 5)",n="no_survey"===e.lock_reason?"comparison.tip_no_survey":"few_participants"===e.lock_reason?"comparison.tip_few":"comparison.tip_locked";return(0,Te.jsx)(e_,{id:n,label:t,children:(0,Te.jsxs)("span",{"data-testid":"compare-pill-".concat(e.id),className:"px-3 py-1.5 rounded-full text-sm font-semibold border border-border text-muted-foreground opacity-50 cursor-help inline-flex items-center gap-1.5 select-none",children:[(0,Te.jsx)(kw,{size:12})," ",e.name]})},e.id)}return(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>{b(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e])})(e.id),"data-testid":"compare-pill-".concat(e.id),style:!a&&r?{backgroundColor:r.bg,color:r.text,borderColor:r.bg}:void 0,className:"px-3 py-1.5 rounded-full text-sm font-semibold border transition-colors inline-flex items-center gap-1.5 ".concat(a?"bg-primary text-white border-primary":"border-transparent hover:border-primary"),children:e.name},e.id)})]})]},e.name||"all"))}),0===y.length?null:(0,Te.jsx)("div",{className:"overflow-x-auto pb-2",children:(0,Te.jsxs)("div",{className:"min-w-[560px]",children:[(0,Te.jsxs)("div",{className:"grid gap-3 mb-2",style:S,children:[(0,Te.jsx)("div",{}),w&&(0,Te.jsxs)("div",{className:"text-center px-1 py-2 bg-zinc-100/70 rounded-t-lg","data-testid":"compare-col-total",children:[(0,Te.jsx)("div",{className:"font-heading text-sm text-[#1F2A44] font-bold tracking-wide",children:i("comparison.col_total")}),(0,Te.jsx)("div",{className:"text-[11px] text-muted-foreground",children:i("comparison.col_reference")})]}),y.map(e=>(0,Te.jsxs)("div",{className:"text-center px-1 py-2","data-testid":"compare-col-".concat(e.id),children:[(0,Te.jsx)("div",{className:"font-heading text-sm truncate",children:e.name}),"dept"===p&&e.branch_name&&(0,Te.jsx)("div",{className:"text-[11px] text-primary font-semibold truncate","data-testid":"compare-col-branch-".concat(e.id),children:e.branch_name}),(0,Te.jsxs)("div",{className:"text-[11px] text-muted-foreground tabular-nums",children:[e.responses,"/",e.headcount," ",i("comparison.answers_suffix")]})]},e.id))]}),o.map(e=>{var t;const n=null===w||void 0===w?void 0:w[e.key],a=null!==(t=null===n||void 0===n?void 0:n.raw)&&void 0!==t?t:null===n||void 0===n?void 0:n.value,r="stress"===e.key;return(0,Te.jsxs)("div",{className:"grid gap-3 mb-3 items-stretch",style:S,"data-testid":"compare-row-".concat(e.key),children:[(0,Te.jsx)("div",{className:"text-sm font-semibold pr-2 pt-8",children:s(e)}),w&&(0,Te.jsx)(n_,{cell:null===w||void 0===w?void 0:w[e.key],muted:!0}),y.map(t=>{var n,i,s;const o=null===(n=t.meta)||void 0===n?void 0:n[e.key],l=null!==(i=null===o||void 0===o?void 0:o.raw)&&void 0!==i?i:null===o||void 0===o?void 0:o.value,c="number"===typeof l&&"number"===typeof a?l-a:null;return(0,Te.jsx)(n_,{cell:null===(s=t.meta)||void 0===s?void 0:s[e.key],delta:c,invert:r},t.id)})]},e.key)})]})})]})}const r_={analytics:"PERSENTIS Analytics",care:"PERSENTIS Care"};function i_(e){let t=e.product;const n=sn(),a=r_[t]||"Dieses Produkt";return(0,Te.jsxs)("div",{"data-testid":"product-lock-".concat(t),children:[(0,Te.jsx)(ky,{title:a}),(0,Te.jsxs)(by,{className:"p-10 sm:p-14 text-center max-w-2xl mx-auto mt-4",children:[(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center mx-auto mb-6",children:(0,Te.jsx)(kw,{className:"brand-green",size:28})}),(0,Te.jsx)("h3",{className:"font-heading text-2xl sm:text-3xl mb-4 leading-snug",children:(0,Te.jsxs)(cy,{id:"lock.".concat(t,".title"),children:[a," ist noch nicht aktiviert."]})}),(0,Te.jsx)("p",{className:"text-muted-foreground mb-7 text-sm sm:text-base",children:(0,Te.jsxs)(cy,{id:"lock.".concat(t,".body"),children:["Aktivieren Sie ",a,", um Umfragen anzulegen und Auswertungen zu sehen."]})}),(0,Te.jsxs)(fy,{onClick:()=>n("/billing?product=".concat(t)),"data-testid":"product-lock-cta-".concat(t),className:"bg-[#75A33D] hover:bg-[#688f36] text-white font-semibold tracking-wide px-8",children:[(0,Te.jsx)(cy,{id:"lock.".concat(t,".cta"),as:"span",children:"Zum Aktivieren buchen"})," ",(0,Te.jsx)(KS,{size:16})]})]})]})}function s_(e){var t,n;let a=e.info,r=e.min,i=e.deptSelected;return(0,Te.jsxs)(by,{className:"p-8 sm:p-10 text-center max-w-2xl mx-auto","data-testid":"anonymity-notice",children:[(0,Te.jsx)("div",{className:"w-14 h-14 roun
2ded-full bg-amber-50 flex items-center justify-center mx-auto mb-4",children:(0,Te.jsx)(kw,{className:"text-amber-600",size:26})}),(0,Te.jsxs)("h3",{className:"font-heading text-xl mb-2 flex items-center justify-center gap-2",children:[(0,Te.jsx)(cy,{id:"dashboard.anonymity.title",children:"Anonymit\xe4tsschutz aktiv"})," ",(0,Te.jsx)(XS,{})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Zum Schutz der Anonymit\xe4t werden Auswertungen erst ab ",(0,Te.jsxs)("strong",{children:[r," Mitarbeitenden"]})," und",(0,Te.jsxs)("strong",{children:[" ",r," Antworten"]})," angezeigt. ",i?"F\xfcr diese Abteilung":"F\xfcr den gew\xe4hlten Bereich"," ist daher keine Einsicht in die Ergebnisse m\xf6glich."]}),a&&(0,Te.jsxs)("div",{className:"mt-5 inline-flex items-center gap-6 rounded-lg bg-zinc-50 border border-border px-5 py-3 text-sm",children:[(0,Te.jsxs)("span",{"data-testid":"anon-headcount",children:["Mitarbeitende: ",(0,Te.jsx)("strong",{className:"text-foreground",children:null!==(t=a.headcount)&&void 0!==t?t:"\u2014"})]}),(0,Te.jsxs)("span",{"data-testid":"anon-responses",children:["Antworten: ",(0,Te.jsx)("strong",{className:"text-foreground",children:null!==(n=a.responses)&&void 0!==n?n:0})]})]})]})}function o_(e){let t=e.icon,n=e.label,a=e.value,r=e.sub,i=e.testid;return(0,Te.jsxs)(by,{className:"p-5 flex items-center gap-4","data-testid":i,children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-full bg-accent flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{className:"brand-green",size:22})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(jy,{text:n,prefix:"kpi"})}),(0,Te.jsx)("p",{className:"font-heading text-2xl leading-tight",children:"number"===typeof a?a.toLocaleString("de-DE"):a}),r&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:r})]})]})}function l_(e){let t=e.delta;if(null===t||void 0===t)return null;const n=t>0,a=t<0,r=n?"#00B050":a?"#FF0000":"#71717A",i=n?US:a?VS:null;return(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold tabular-nums",style:{color:r},"data-testid":"delta-badge",children:[i&&(0,Te.jsx)(i,{size:13}),n?"+":"",t]})}function c_(e){let t=e.m,n=e.vsPrev;return(0,Te.jsxs)(by,{className:"p-4 flex flex-col items-center","data-testid":"meta-".concat(t.key),children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground text-center mb-1 min-h-0 flex items-center justify-center",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:t.value,color:t.color,status:t.status,segments:t.segments,size:160}),null!==t.delta&&void 0!==t.delta&&(0,Te.jsxs)("div",{className:"mt-1 flex items-center gap-1.5",children:[(0,Te.jsx)(l_,{delta:t.delta}),(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground",children:n})]})]})}function d_(e){let t=e.m,n=e.vsPrev;return(0,Te.jsxs)(by,{className:"p-6 flex flex-col items-center","data-testid":"meta-".concat(t.key),children:[(0,Te.jsx)("p",{className:"text-sm font-bold uppercase tracking-wider text-muted-foreground text-center mb-2",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:t.value,color:t.color,status:t.status,segments:t.segments,size:240}),null!==t.delta&&void 0!==t.delta&&(0,Te.jsxs)("div",{className:"mt-1 flex items-center gap-1.5",children:[(0,Te.jsx)(l_,{delta:t.delta}),(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground",children:n})]})]})}function u_(e){let t=e.d,n=e.up;const a=n?HS:WS,r=n?"#00B050":"#FF0000";return(0,Te.jsxs)("div",{className:"flex items-center gap-2 py-1.5","data-testid":"movement-".concat(t.id),children:[(0,Te.jsx)(a,{size:16,style:{color:r},className:"shrink-0"}),(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsx)("p",{className:"text-sm font-medium truncate",children:t.name}),(0,Te.jsx)("p",{className:"text-[11px] text-muted-foreground truncate",children:t.branch_name})]}),(0,Te.jsx)("span",{className:"text-sm tabular-nums text-foreground",children:t.value}),(0,Te.jsxs)("span",{className:"text-xs font-semibold tabular-nums w-12 text-right",style:{color:r},children:[n?"+":"",t.delta]})]})}function m_(e){let t=e.onStart;return(0,Te.jsxs)(by,{className:"p-10 sm:p-14 text-center max-w-2xl mx-auto","data-testid":"care-empty-start",children:[(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center mx-auto mb-6",children:(0,Te.jsx)(zw,{className:"brand-green",size:30})}),(0,Te.jsx)("h3",{className:"font-heading text-2xl sm:text-3xl mb-7 leading-snug",children:(0,Te.jsx)(cy,{id:"dashboard.empty.title",children:"Starten Sie mit Ihrer ersten PERSENTIS Care Umfrage."})}),(0,Te.jsxs)(fy,{onClick:t,"data-testid":"care-empty-start-btn",className:"bg-[#75A33D] hover:bg-[#688f36] text-white font-semibold tracking-wide px-8",children:[(0,Te.jsx)(cy,{id:"dashboard.empty.cta",as:"span",children:"STARTEN"})," ",(0,Te.jsx)(KS,{size:16})]})]})}function p_(){var e,t,n,r,i,s,o,l,c,d,u,m,p,h;const f=Xa(),g=f.t,x=f.lang,v=sn(),b=qN(),y=b.gatingActive,w=b.canView,j=Ws().ctMode,k=Le(ya(),1)[0],N=Le((0,a.useState)(k.get("department_id")||""),2),S=N[0],_=N[1],z=Le((0,a.useState)(null),2),E=z[0],C=z[1],P=Le((0,a.useState)(!0),2),A=P[0],T=P[1];(0,a.useEffect)(()=>{T(!0);const e=S?"&department_id=".concat(S):"";Ps.get("/care/overview?lang=".concat(x).concat(e)).then(e=>C(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>T(!1))},[S,x]);const R=null===E||void 0===E||null===(e=E.anonymity)||void 0===e?void 0:e.locked,O=null===E||void 0===E||null===(t=E.scope)||void 0===t?void 0:t.single,D=null===E||void 0===E?void 0:E.kpis,M=0===(null!==(n=null===E||void 0===E||null===(r=E.anonymity)||void 0===r?void 0:r.responses)&&void 0!==n?n:0),I=null===E||void 0===E?void 0:E.movements,F=I&&(I.up.length>0||I.down.length>0);return y&&!w("care")?(0,Te.jsx)(i_,{product:"care"}):(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:g("dashboard.title"),titleId:"dashboard.title",subt
2itle:null!==E&&void 0!==E&&null!==(i=E.scope)&&void 0!==i&&i.department_name?"".concat(E.scope.branch_name||""," \xb7 ").concat(E.scope.department_name):g("dashboard.subtitle"),subtitleId:null!==E&&void 0!==E&&null!==(s=E.scope)&&void 0!==s&&s.department_name?void 0:"dashboard.subtitle"}),A?(0,Te.jsx)(FS,{}):j||null!==E&&void 0!==E&&E.has_survey?R&&!M?(0,Te.jsx)(s_,{info:null===E||void 0===E?void 0:E.anonymity,min:null!==(o=null===E||void 0===E||null===(l=E.anonymity)||void 0===l?void 0:l.min)&&void 0!==o?o:5,deptSelected:O}):(0,Te.jsxs)("div",{className:"space-y-8",children:[M&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm rounded-lg border border-border bg-muted/40 text-muted-foreground px-4 py-2.5","data-testid":"care-nodata-banner",children:[(0,Te.jsx)(GS,{size:16})," ",(0,Te.jsx)(cy,{id:"dashboard.nodata_banner",children:"Es wurden noch keine abgeschlossenen Umfragen ausgewertet. Sobald eine Care-Umfrage abgeschlossen ist, erscheinen hier die Ergebnisse."})]}),D&&(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4","data-testid":"kpi-row",children:[(0,Te.jsx)(o_,{icon:ZS,label:(0,Te.jsx)(cy,{id:"overview.kpiSurveys",as:"span",children:g("overview.kpiSurveys")}),value:D.surveys_total,testid:"kpi-surveys"}),(0,Te.jsx)(o_,{icon:YS,label:(0,Te.jsx)(cy,{id:"overview.kpiResponses",as:"span",children:g("overview.kpiResponses")}),value:D.responses,testid:"kpi-responses"}),(0,Te.jsx)(o_,{icon:_f,label:(0,Te.jsx)(cy,{id:"overview.kpiParticipants",as:"span",children:g("overview.kpiParticipants")}),value:D.participants,testid:"kpi-participants"}),(0,Te.jsx)(o_,{icon:QS,label:(0,Te.jsx)(cy,{id:"overview.kpiParticipation",as:"span",children:g("overview.kpiParticipation")}),value:null!=D.rate?"".concat(D.rate,"%"):"\u2014",testid:"kpi-participation"})]}),!M&&(null===E||void 0===E||null===(c=E.meta)||void 0===c?void 0:c.length)>0&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-3",children:(0,Te.jsx)(cy,{id:"overview.metaTitle",as:"span",children:g("overview.metaTitle")})}),(0,Te.jsx)("div",{className:"mb-4",children:(0,Te.jsx)(d_,{m:E.meta[0],vsPrev:g("overview.vsPrev")})}),E.meta.length>1&&(0,Te.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-3 gap-4","data-testid":"meta-row",children:E.meta.slice(1).map(e=>(0,Te.jsx)(c_,{m:e,vsPrev:g("overview.vsPrev")},e.key))}),!E.has_trend&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2","data-testid":"no-trend",children:(0,Te.jsx)(cy,{id:"overview.noTrend",as:"span",children:g("overview.noTrend")})})]}),!M&&!O&&F&&(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-4","data-testid":"movements-row",children:[(0,Te.jsxs)(by,{className:"p-5","data-testid":"movements-up",children:[(0,Te.jsxs)("h3",{className:"text-sm font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-2 mb-2",children:[(0,Te.jsx)(US,{size:15,className:"brand-green"})," ",(0,Te.jsx)(cy,{id:"overview.improvements",as:"span",children:g("overview.improvements")})]}),I.up.length?I.up.map(e=>(0,Te.jsx)(u_,{d:e,up:!0},e.id)):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"overview.noneYet",as:"span",children:g("overview.noneYet")})})]}),(0,Te.jsxs)(by,{className:"p-5","data-testid":"movements-down",children:[(0,Te.jsxs)("h3",{className:"text-sm font-bold uppercase tracking-wider text-muted-foreground flex items-center gap-2 mb-2",children:[(0,Te.jsx)(VS,{size:15,style:{color:"#FF0000"}})," ",(0,Te.jsx)(cy,{id:"overview.declines",as:"span",children:g("overview.declines")})]}),I.down.length?I.down.map(e=>(0,Te.jsx)(u_,{d:e,up:!1},e.id)):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"overview.noneYet",as:"span",children:g("overview.noneYet")})})]})]}),!M&&((null===E||void 0===E||null===(d=E.comparison)||void 0===d||null===(u=d.departments)||void 0===u?void 0:u.length)>1||(null===E||void 0===E||null===(m=E.comparison)||void 0===m||null===(p=m.branches)||void 0===p?void 0:p.length)>1)&&(0,Te.jsxs)(by,{className:"p-5","data-testid":"comparison-card",children:[(0,Te.jsxs)("h2",{className:"font-heading text-lg mb-px","data-testid":"comparison-heading",children:[(0,Te.jsx)(cy,{id:"dashboard.comparison.heading",children:"Ergebnisse im Vergleich"}),null!==E&&void 0!==E&&null!==(h=E.comparison)&&void 0!==h&&h.branch_name?" \u2013 Filiale ".concat(E.comparison.branch_name):""]}),(0,Te.jsx)(a_,{comparison:E.comparison,onOpenDept:e=>_(e),openLabel:"Abteilung \xf6ffnen"})]})]}):(0,Te.jsx)(m_,{onStart:()=>v("/invitations?new=1")})]})}const h_=kf("fingerprint",[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}
2],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]]);function f_(e){let t=e.icon,n=e.label,a=e.value,r=e.sub,i=e.testid;return(0,Te.jsxs)(by,{className:"p-5 flex items-center gap-4","data-testid":i,children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-full bg-accent flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{className:"brand-green",size:22})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:n}),(0,Te.jsx)("p",{className:"font-heading text-2xl leading-tight",children:"number"===typeof a?a.toLocaleString("de-DE"):a}),r&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:r})]})]})}function g_(e){let t=e.icon,n=e.title,a=e.score,r=e.ctaLabel,i=e.onGo,s=e.accent,o=e.testid,l=e.ctaTestid,c=e.gaugeSize,d=void 0===c?200:c;const u=Xa().t,m=a&&null!==a.value&&void 0!==a.value;return(0,Te.jsxs)(by,{className:"p-6 sm:p-8 flex flex-col items-center text-center","data-testid":o,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground mb-4",children:[(0,Te.jsx)(t,{size:22,style:{color:s}}),(0,Te.jsx)("h3",{className:"font-heading text-lg tracking-[1px]",children:n})]}),(0,Te.jsx)(qS,{value:m?a.value:null,displayValue:m?void 0:"\u2014",color:null===a||void 0===a?void 0:a.color,status:m?a.status:void 0,segments:null===a||void 0===a?void 0:a.segments,size:d}),!m&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2","data-testid":"".concat(o,"-nodata"),children:(0,Te.jsx)(cy,{id:"welcome.score.nodata",children:u("welcome.score.nodata")})}),(0,Te.jsxs)(fy,{className:"mt-6 w-full max-w-[260px]",onClick:i,"data-testid":l,children:[r," ",(0,Te.jsx)(KS,{size:16})]})]})}function x_(e){let t=e.icon,n=e.title,a=e.testid,r=e.activateId,i=e.activateLabel,s=e.gaugeSize,o=void 0===s?200:s,l=e.onClick,c=e.alwaysShowCta;return(0,Te.jsxs)(by,{className:"relative p-6 sm:p-8 flex flex-col items-center text-center overflow-hidden group ".concat(l?"cursor-pointer":""),"data-testid":a,onClick:l,children:[(0,Te.jsxs)("div",{className:"blur-[3px] opacity-60 select-none pointer-events-none flex flex-col items-center w-full",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground mb-4",children:[(0,Te.jsx)(t,{size:22,className:"text-muted-foreground"}),(0,Te.jsx)("h3",{className:"font-heading text-lg tracking-[1px]",children:n})]}),(0,Te.jsx)(qS,{value:0,displayValue:"0",hideMarker:!0,color:"#CBD5E1",statusColor:"#E5E7EB",statusTextColor:"#6B7280",status:"Kein Ergebnis",size:o}),(0,Te.jsx)(fy,{className:"mt-6 w-full max-w-[260px]",disabled:!0,children:"\u2014"})]}),(0,Te.jsx)("div",{className:"absolute inset-0 flex items-center justify-center transition-opacity duration-200 ".concat(c?"opacity-100":"opacity-0 group-hover:opacity-100 bg-white/40"),"data-testid":"".concat(a,"-hover"),children:(0,Te.jsx)("span",{className:"rounded-full bg-foreground
2/90 text-white text-sm font-semibold px-4 py-2 shadow-lg",children:r?(0,Te.jsx)(cy,{id:r,as:"span",children:i}):i})})]})}function v_(){var e,t,n;const r=Rs().user,i=Xa().t,s=sn(),o=Ws().ctMode,l=pw(),c=Le((0,a.useState)(null),2),d=c[0],u=c[1],m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)(null),2),g=f[0],x=f[1],v=Le((0,a.useState)(!0),2),b=v[0],y=v[1],w=Le((0,a.useState)(!0),2),j=(w[0],w[1]),k=Le((0,a.useState)([]),2),N=k[0],S=k[1],_=Le((0,a.useState)(0),2),z=_[0],E=_[1],C=Le((0,a.useState)(!1),2),P=C[0],A=C[1],T=Le((0,a.useState)(null),2),R=T[0],O=T[1];(0,a.useEffect)(()=>{(async()=>{const e=Le(await Promise.allSettled([Ps.get("/care/overview"),Ps.get("/analytics/overview"),Ps.get("/pulse/overview"),Ps.get("/my/plan-status"),Ps.get("/pulse/light-status"),Ps.get("/pulse/surveys")]),6),t=e[0],n=e[1],a=e[2],r=e[3],i=e[4],s=e[5];if("fulfilled"===t.status&&u(t.value.data),"fulfilled"===n.status&&h(n.value.data),"fulfilled"===a.status&&x(a.value.data),"fulfilled"===r.status&&(j(!!r.value.data.has_active_plan),S(r.value.data.active_products||[])),"fulfilled"===i.status&&(E(i.value.data.used_this_month||0),A(!!i.value.data.has_survey)),"fulfilled"===s.status){const e=Array.isArray(s.value.data)?s.value.data:[];if(e.length){const t=[...e].sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||""))[0];O({token:t.token,ptype:t.program_id?"wiederkehrend":"einmalig"})}}y(!1)})()},[]);const D=((null===r||void 0===r?void 0:r.profile)||{}).first_name||((null===r||void 0===r?void 0:r.name)||"").split(" ")[0]||"",M=e=>N.includes(e),I=((null===d||void 0===d||null===(e=d.kpis)||void 0===e?void 0:e.surveys_completed)||0)>0,F=((null===d||void 0===d?void 0:d.meta)||[]).find(e=>"overall"===e.key)||null,L=F&&I?{value:F.value,color:F.color,status:F.status,segments:F.segments}:null,B=((null===p||void 0===p||null===(t=p.kpis)||void 0===t?void 0:t.surveys_completed)||0)>0,q=((null===p||void 0===p?void 0:p.metrics)||[]).find(e=>"employer_indicator"===e.key)||null,U=q&&B?{value:q.value,color:q.color,status:q.zone,segments:q.segments}:null,V=null===g||void 0===g||null===(n=g.kpis)||void 0===n?void 0:n.score,H=null!==V&&void 0!==V?{value:V,color:V<50?l.kritisch:V<75?l.moderat:l.exzellent,status:V<50?"kritisch":V<75?"moderat":"exzellent",segments:[{color:l.kritisch,from:0,to:50},{color:l.moderat,from:50,to:75},{color:l.exzellent,from:75,to:100}]}:null,W=(null===d||void 0===d?void 0:d.kpis)||{},K=(null===p||void 0===p?void 0:p.kpis)||{},G=(null===g||void 0===g?void 0:g.kpis)||{},Z={surveys_total:G.surveys_total||0,responses:G.responses||0,participants:G.responses||0,rate:G.rate},Y=(G.surveys_total||0)>0||z>0||P,Q=(K.surveys_total||0)>0,$=(W.surveys_total||0)>0,X=e=>{let t=e.icon,n=e.title,a=e.accent,r=e.kpis,s=e.testid,o=e.locked;const l=(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4",children:[(0,Te.jsx)(f_,{icon:ZS,label:(0,Te.jsx)(cy,{id:"kpi.surveys",as:"span",children:i("kpi.surveys")}),value:o?0:r.surveys_total||0,testid:"".concat(s,"-surveys")}),(0,Te.jsx)(f_,{icon:YS,label:(0,Te.jsx)(cy,{id:"kpi.responses",as:"span",children:i("kpi.responses")}),value:o?0:r.responses||0,testid:"".concat(s,"-responses")}),(0,Te.jsx)(f_,{icon:_f,label:(0,Te.jsx)(cy,{id:"kpi.participants",as:"span",children:i("kpi.participants")}),value:o?0:r.participants||0,testid:"".concat(s,"-participants")}),(0,Te.jsx)(f_,{icon:QS,label:(0,Te.jsx)(cy,{id:"kpi.rate",as:"span",children:i("kpi.rate")}),value:o?"0%":null!=r.rate?"".concat(r.rate,"%"):"\u2014",testid:"".concat(s,"-rate")})]});return(0,Te.jsxs)("div",{"data-testid":s,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-3 ".concat(o?"opacity-50":""),children:[(0,Te.jsx)(t,{size:18,style:{color:o?void 0:a},className:o?"text-muted-foreground":""}),(0,Te.jsx)("h2",{className:"font-heading text-lg",children:n})]}),o?(0,Te.jsx)("div",{className:"blur-[3px] opacity-60 select-none pointer-events-none",children:l}):l]})};return(0,Te.jsxs)("div",{"data-testid":"welcome-page",children:[(0,Te.jsx)(ky,{title:i("welcome.title"),titleId:"welcome.title",titleVars:{name:D?", ".concat(D):""}
2,subtitleId:"welcome.subtitle",subtitle:i("welcome.subtitle")}),b?(0,Te.jsx)(FS,{testid:"welcome-loading"}):(0,Te.jsxs)("div",{className:"space-y-8",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4","data-testid":"welcome-scores",children:[U?(0,Te.jsx)(g_,{icon:jw,title:(0,Te.jsx)(cy,{id:"analytics.score.label",as:"span",children:"ANALYTICS Score"}),score:U,accent:"#47A350",ctaLabel:(0,Te.jsx)(cy,{id:"welcome.cta.analytics",as:"span",children:i("welcome.cta.analytics")}),onGo:()=>s("/analytics/dashboard"),testid:"welcome-score-analytics",ctaTestid:"welcome-goto-analytics",gaugeSize:200}):M("analytics")?(0,Te.jsx)(x_,{icon:jw,title:(0,Te.jsx)(cy,{id:"analytics.score.label",as:"span",children:"ANALYTICS Score"}),alwaysShowCta:!0,activateId:Q?"welcome.active_survey":"welcome.start.analytics",activateLabel:Q?"Umfrage bereits angelegt/aktiv":"Starten Sie mit Ihrer ersten ANALYTICS Umfrage",testid:"welcome-score-analytics",onClick:()=>s(Q?"/analytics/invitations":"/analytics/invitations?new=1"),gaugeSize:200}):(0,Te.jsx)(x_,{icon:jw,title:(0,Te.jsx)(cy,{id:"analytics.score.label",as:"span",children:"ANALYTICS Score"}),activateId:"welcome.profiling.activate",activateLabel:i("welcome.profiling.activate"),testid:"welcome-score-analytics",onClick:()=>s("/billing?product=analytics"),gaugeSize:200}),H?(0,Te.jsx)(g_,{icon:Nw,title:(0,Te.jsx)(cy,{id:"pulse.score.label",as:"span",children:"PULSE Score"}),score:H,accent:"hsl(var(--primary))",ctaLabel:(0,Te.jsx)(cy,{id:"welcome.cta.pulse",as:"span",children:i("welcome.cta.pulse")}),onGo:()=>s("/pulse/wiederkehrend/dashboard"),testid:"welcome-score-pulse",ctaTestid:"welcome-goto-pulse",gaugeSize:200}):Y?(0,Te.jsx)(x_,{icon:Nw,title:(0,Te.jsx)(cy,{id:"pulse.score.label",as:"span",children:"PULSE Score"}),alwaysShowCta:!0,activateId:"welcome.active_survey",activateLabel:"Umfrage bereits angelegt/aktiv",testid:"welcome-score-pulse",onClick:()=>{s(R?"/pulse/".concat(R.ptype,"/invitations?open=").concat(R.token):"/pulse/einmalig/invitations")},gaugeSize:200}):M("pulse")?(0,Te.jsx)(x_,{icon:Nw,title:(0,Te.jsx)(cy,{id:"pulse.score.label",as:"span",children:"PULSE Score"}),alwaysShowCta:!0,activateId:"welcome.start.pulse",activateLabel:"Starten Sie mit Ihrer ersten PULSE Umfrage",testid:"welcome-score-pulse",onClick:()=>s("/pulse/einmalig/invitations?new=1"),gaugeSize:200}):(0,Te.jsx)(x_,{icon:Nw,title:(0,Te.jsx)(cy,{id:"pulse.score.label",as:"span",children:"PULSE Score"}),activateId:"welcome.pulse.activate_free",activateLabel:"Erste PULSE Umfrage kostenlos erstellen",testid:"welcome-score-pulse",alwaysShowCta:!0,onClick:()=>s("/pulse/einmalig/invitations?new=1"),gaugeSize:200}),L?(0,Te.jsx)(g_,{icon:zw,title:(0,Te.jsx)(cy,{id:"care.score.label",as:"span",children:"CARE Score"}),score:L,accent:"hsl(var(--primary))",ctaLabel:(0,Te.jsx)(cy,{id:"welcome.cta.care",as:"span",children:i("welcome.cta.care")}),onGo:()=>s("/dashboard"),testid:"welcome-score-care",ctaTestid:"welcome-goto-care",gaugeSize:200}):M("care")?(0,Te.jsx)(x_,{icon:zw,title:(0,Te.jsx)(cy,{id:"care.score.label",as:"span",children:"CARE Score"}),alwaysShowCta:!0,activateId:$?"welcome.active_survey":"welcome.start.care",activateLabel:$?"Umfrage bereits angelegt/aktiv":"Starten Sie mit Ihrer ersten CARE Umfrage",testid:"welcome-score-care",onClick:()=>s($?"/invitations":"/invitations?new=1"),gaugeSize:200}):(0,Te.jsx)(x_,{icon:zw,title:(0,Te.jsx)(cy,{id:"care.score.label",as:"span",children:"CARE Score"}),activateId:"welcome.profiling.activate",activateLabel:i("welcome.profiling.activate"),testid:"welcome-score-care",onClick:()=>s("/billing?product=care"),gaugeSize:200}),(0,Te.jsx)(x_,{icon:h_,title:(0,Te.jsx)(cy,{id:"profiling.score.label",as:"span",children:"PROFILING Score"}),activateId:o?"":"common.coming_soon",activateLabel:o?"AKTIVIEREN":"KOMMT BALD",testid:"welcome-score-profiling",gaugeSize:200}),(0,Te.jsx)(x_,{icon:gS,title:(0,Te.jsx)(cy,{id:"boarding.score.label",as:"span",children:"BOARDING Score"}),activateId:o?"":"common.coming_soon",activateLabel:o?"AKTIVIEREN":"KOMMT BALD",testid:"welcome-score-boarding",gaugeSize:200})]}),(0,Te.jsx)(X,{icon:jw,title:(0,Te.jsx)(cy,{id:"welcome.module.analytics",as:"span",children:"PERSENTIS Analytics"}),accent:"#47A350",kpis:K,testid:"welcome-analytics-kpis",locked:!U}),(0,Te.jsx)(X,{icon:Nw,title:(0,Te.jsx)(cy,{id:"welcome.module.pulse",as:"span",children:"PERSENTIS Pulse"}),accent:"hsl(var(--primary))",kpis:Z,testid:"welcome-pulse-kpis",locked:!H}),(0,Te.jsx)(X,{icon:zw,title:(0,Te.jsx)(cy,{id:"welcome.module.care",as:"span",children:"PERSENTIS Care"}),accent:"hsl(var(--primary))",kpis:W,testid:"welcome-care-kpis",locked:!L}),(0,Te.jsx)(X,{icon:h_,title:(0,Te.jsx)(cy,{id:"welcome.module.profiling",as:"span",children:"PERSENTIS Profiling"}),accent:"hsl(var(--primary))",kpis:{},testid:"welcome-profiling-kpis",locked:!0}),(0,Te.jsx)(X,{icon:gS,title:(0,Te.jsx)(cy,{id:"welcome.module.boarding",as:"span",children:"PERSENTIS Boarding"}),accent:"hsl(var(--primary))",kpis:{},testid:"welcome-boarding-kpis",locked:!0})]})]})}const b_=kf("users-round",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]),y_=kf("trash-2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}
2],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),w_=kf("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]]),j_=kf("building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]),k_=kf("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),N_=kf("file-down",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M12 18v-6",key:"17g6i2"}],["path",{d:"m9 15 3 3 3-3",key:"1npd3o"}]]);const S_="PDF-Export folgt in K\xfcrze.",__="inline-flex items-center gap-1 px-2.5 py-0.5 rounded-full text-xs font-medium bg-zinc-100 text-zinc-600",z_="h-8 w-8 flex items-center justify-center rounded-lg text-muted-foreground hover:bg-zinc-100 transition-colors shrink-0",E_="h-8 w-8 flex items-center justify-center rounded-lg text-muted-foreground hover:text-destructive hover:bg-red-50 transition-colors shrink-0",C_={initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:[.16,1,.3,1]}};function P_(){const e=Xa().t,t=Rs().user,n=["admin","superadmin"].includes(null===t||void 0===t?void 0:t.role),r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)({}),2),l=(o[0],o[1]),c=Le((0,a.useState)({}),2),u=c[0],m=c[1],p=Le((0,a.useState)({}),2),h=p[0],f=p[1],g=Le((0,a.useState)({}),2),x=g[0],v=g[1],b=Le((0,a.useState)({}),2),y=b[0],w=b[1],j=Le((0,a.useState)({}),2),k=j[0],N=j[1],S=Le((0,a.useState)(null),2),_=S[0],z=S[1],E=Le((0,a.useState)(null),2),C=E[0],P=E[1],A=Le((0,a.useState)(null),2),T=A[0],R=A[1],O=Le((0,a.useState)(1),2),D=O[0],M=O[1],I=Le((0,a.useState)({}),2),F=(I[0],I[1],Le((0,a.useState)({}),2)),L=(F[0],F[1],Le((0,a.useState)(!1),2)),B=L[0],q=L[1],U=(0,a.useRef)(null),V=()=>Ps.get("/firmen").then(e=>(s(e.data),e.data)),H=e=>Ps.get("/departments?branch_id=".concat(e,"&include_archived=true")).then(t=>{const n=[...t.data].sort((e,t)=>e.name.localeCompare(t.name));v(t=>d(d({},t),{},{[e]:n}))}),W=e=>Ps.get("/branches?firma_id=".concat(e)).then(t=>{const n=[...t.data].sort((e,t)=>Number(t.is_central)-Number(e.is_central)||e.name.localeCompare(t.name));f(t=>d(d({},t),{},{[e]:n}));const a=n.find(e=>e.is_central&&"archived"!==e.status);a&&m(e=>void 0===e[a.id]?d(d({},e),{},{[a.id]:!0}):e),n.forEach(e=>H(e.id))});(0,a.useEffect)(()=>{V().then(e=>{const t={};(e||[]).forEach(e=>{t[e.id]=!0}),l(t),(e||[]).forEach(e=>W(e.id))})},[]);const K=async e=>{const t=(y[e.id]||"").trim();if(t)try{await Ps.post("/branches",{name:t,firma_id:e.id}),w(t=>d(d({},t),{},{[e.id]:""})),await W(e.id),V()}catch(sse){Ia.error(Cs(sse))}},G=async()=>{const e=(_.name||"").trim();if(e)try{await Ps.put("/branches/".concat(_.id),{name:e,firma_id:_.firma_id,is_central:_.is_central});const t=_.firma_id;z(null),await W(t)}catch(sse){Ia.error(Cs(sse))}},Z=async e=>{const t=k[e.id]||{},n=(t.name||"").trim(),a=parseInt(t.headcount);if(n){var r;if(!a||a<1)return Ia.error("Mitarbeiterzahl ist erforderlich (mind. 1)."),void(null===(r=document.querySelector('[data-testid="add-dept-headcount-'.concat(e.id,'"]')))||void 0===r||r.focus());try{await Ps.post("/departments",{branch_id:e.id,name:n,headcount:a,visible:!0}),N(t=>d(d({},t),{},{[e.id]:{name:"",headcount:""}})),await H(e.id),await W(e.firma_id),V(),setTimeout(()=>{var t;return null===(t=document.querySelector('[data-testid="add-dept-input-'.concat(e.id,'"]')))||void 0===t?void 0:t.focus()},60)}catch(sse){Ia.error(Cs(sse))}}else{var i;null===(i=document.querySelector('[data-testid="add-dept-input-'.concat(e.id,'"]')))||void 0===i||i.focus()}},Y=async()=>{const e=(C.name||"").trim(),t=parseInt(C.headcount);if(e)if(!t||t<1)Ia.error("Mitarbeiterzahl ist erforderlich (mind. 1).");else try{await Ps.put("/departments/".concat(C.id),{branch_id:C.branch_id,name:e,headcount:t,visible:!0});
2const n=C.branch_id,a=C.firma_id;P(null),await H(n),await W(a),V()}catch(sse){Ia.error(Cs(sse))}},Q=(e,t,n)=>N(a=>d(d({},a),{},{[e]:d(d({},a[e]||{name:"",headcount:""}),{},{[t]:n})})),$=(e,t,n,a)=>{R({type:e,item:t,firma_id:n,branch_id:a}),M(1)},X=async e=>{try{await Ps.patch("/branches/".concat(e.id,"/unarchive")),await W(e.firma_id),V(),Ia.success("Filiale reaktiviert.")}catch(sse){Ia.error(Cs(sse))}},J=()=>{R(null),M(1)},ee=(e,t)=>{const a=C&&C.id===e.id;return(0,Te.jsx)("div",{className:"flex items-center justify-between gap-2 py-2.5 px-2 sm:px-3 rounded-lg hover:bg-zinc-50 transition-colors ".concat("archived"===e.status?"opacity-70":""),"data-testid":"dept-node-".concat(e.id),children:a?(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0",children:[(0,Te.jsx)(b_,{size:16,className:"text-muted-foreground shrink-0"}),(0,Te.jsx)(gy,{autoFocus:!0,value:C.name,onChange:e=>P(d(d({},C),{},{name:e.target.value})),onKeyDown:t=>{var n;"Enter"===t.key&&(t.preventDefault(),null===(n=document.querySelector('[data-testid="edit-dept-headcount-'.concat(e.id,'"]')))||void 0===n||n.focus());"Escape"===t.key&&P(null)},"data-testid":"edit-dept-name-".concat(e.id),className:"max-w-xs"}),(0,Te.jsx)(gy,{type:"number",min:"1",value:C.headcount,onChange:e=>P(d(d({},C),{},{headcount:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&Y(),"Escape"===e.key&&P(null)},"data-testid":"edit-dept-headcount-".concat(e.id),className:"w-20"}),(0,Te.jsx)(e_,{id:"structure.tip_save",label:"Speichern",children:(0,Te.jsx)("button",{type:"button",onClick:Y,"data-testid":"save-dept-".concat(e.id),className:z_,children:(0,Te.jsx)(Cf,{size:16,className:"text-primary"})})}),(0,Te.jsx)(e_,{id:"structure.tip_cancel",label:"Abbrechen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>P(null),"data-testid":"cancel-dept-".concat(e.id),className:z_,children:(0,Te.jsx)(Iv,{size:16})})})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 min-w-0",children:[(0,Te.jsx)(b_,{size:16,className:"text-muted-foreground shrink-0"}),(0,Te.jsx)("span",{className:"text-sm truncate",children:e.name}),"archived"===e.status&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-zinc-200 text-zinc-700 shrink-0","data-testid":"dept-archived-badge-".concat(e.id),children:[(0,Te.jsx)(Ew,{size:11})," ehemalig"]}),(0,Te.jsxs)("span",{className:"".concat(__," shrink-0"),"data-testid":"dept-headcount-".concat(e.id),children:[e.headcount," ",(0,Te.jsx)("span",{children:"MA"})]}),"archived"!==e.status&&e.headcount<5&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-red-600 text-white shrink-0","data-testid":"anon-warning-".concat(e.id),children:[(0,Te.jsx)(AS,{size:12})," Anonymit\xe4t < 5"]}),(0,Te.jsx)(XS,{className:"shrink-0"})]})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1 shrink-0",children:[n&&"archived"!==e.status&&(0,Te.jsx)(e_,{id:"structure.tip_edit_dept",label:"Abteilung bearbeiten",children:(0,Te.jsx)("button",{type:"button",onClick:()=>P({id:e.id,name:e.name,headcount:e.headcount,branch_id:t.id,firma_id:t.firma_id}),"data-testid":"edit-dept-".concat(e.id),className:z_,children:(0,Te.jsx)(Mf,{size:15})})}),n&&"archived"!==e.status&&(0,Te.jsx)(e_,{id:"structure.tip_archive_dept",label:"Abteilung archivieren",children:(0,Te.jsx)("button",{type:"button",onClick:()=>(async(e,t)=>{try{await Ps.patch("/departments/".concat(e.id,"/archive")),await H(t.id),await W(t.firma_id),V(),Ia.success("Abteilung archiviert.")}catch(sse){Ia.error(Cs(sse))}})(e,t),"data-testid":"archive-dept-".concat(e.id),className:z_,children:(0,Te.jsx)(Ew,{size:15})})}),n&&"archived"===e.status&&(0,Te.jsx)(e_,{id:"structure.tip_reactivate_dept",label:"Abteilung reaktivieren",children:(0,Te.jsx)("button",{type:"button",onClick:()=>(async(e,t)=>{try{await Ps.patch("/departments/".concat(e.id,"/unarchive")),await H(t.id),await W(t.firma_id),V(),Ia.success("Abteilung reaktiviert.")}catch(sse){Ia.error(Cs(sse))}})(e,t),"data-testid":"reactivate-dept-".concat(e.id),className:z_,children:(0,Te.jsx)(Ff,{size:15})})}),n&&"archived"===e.status&&(0,Te.jsx)(e_,{id:"structure.tip_del_dept",label:"Endg\xfcltig l\xf6schen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>$("dept",e,t.firma_id,t.id),"data-testid":"del-dept-".concat(e.id),className:E_,children:(0,Te.jsx)(y_,{size:15})})})]})]})},e.id)},te=(t,a)=>{const r=x[t.id],i=k[t.id]||{name:"",headcount:""},s=(r||[]).filter(e=>"archived"!==e.status);return(0,Te.jsxs)("div",{className:a?"ml-5 border-l border-border pl-2 sm:pl-4 pb-2":"pb-2",children:[void 0===r&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-2.5 px-3",children:(0,Te.jsx)(cy,{id:"common.loading",as:"span",children:"L\xe4dt \u2026"})}),r&&0===s.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-2.5 px-3","data-testid":"departments-empty-".concat(t.id),children:(0,Te.jsx)(cy,{id:"structure.no_departments",as:"span",children:"Noch keine Abteilungen."})}),r&&s.map(e=>ee(e,t)),n&&(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-2 pt-2 px-2 sm:px-3",children:[(0,Te.jsx)(gy,{placeholder:"Neue Abteilung \u2026",value:i.name,onChange:e=>Q(t.id,"name",e.target.value),onKeyDown:e=>{var n;"Enter"===e.key&&(e.preventDefault(),null===(n=document.querySelector('[data-testid="add-dept-headcount-'.concat(t.id,'"]')))||void 0===n||n.focus())},"data-testid":"add-dept-input-".concat(t.id),className:"sm:max-w-xs"}),(0,Te.jsxs)("div",{className:"flex gap-2",children:[(0,Te.jsx)(gy,{type:"number",min:"1",placeholder:e("structure.headcount"),value:i.headcount,onChange:e=>Q(t.id,"headcount",e.target.value),onKeyDown:e=>{"Enter"===e.key&&Z(t)},"data-testid":"add-dept-headcount-".concat(t.id),className:"w-24"}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>Z(t),"data-testid":"add-dept-btn-".concat(t.id),children:[(0,Te.jsx)(Pf,{size:16})," ",(0,Te.jsx)(cy,{id:"structure.add_department",as:"span",children:"Abteilung"})]})]})]})]})},ne=t=>{var a;const r=!!u[t.id],i=_&&_.id===t.id;return(0,Te.jsxs)("div",{"data-testid":"filiale-node-".concat(t.id),children:[(0,Te.jsx)("div",{className:"flex items-center justify-between gap-3 py-4 px-3 sm:px-4 roun
2ded-xl hover:bg-[#E5E7EB] transition-colors",children:i?(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-1 min-w-0 pl-6",children:[t.is_central?(0,Te.jsx)(w_,{size:20,className:"fill-primary text-primary shrink-0"}):(0,Te.jsx)(j_,{size:20,strokeWidth:1.5,className:"text-primary shrink-0"}),(0,Te.jsx)(gy,{autoFocus:!0,value:_.name,onChange:e=>z(d(d({},_),{},{name:e.target.value})),onKeyDown:e=>{"Enter"===e.key&&G(),"Escape"===e.key&&z(null)},"data-testid":"edit-filiale-input-".concat(t.id),className:"max-w-xs"}),(0,Te.jsx)(e_,{id:"structure.tip_save",label:"Speichern",children:(0,Te.jsx)("button",{type:"button",onClick:G,"data-testid":"save-filiale-".concat(t.id),className:z_,children:(0,Te.jsx)(Cf,{size:16,className:"text-primary"})})}),(0,Te.jsx)(e_,{id:"structure.tip_cancel",label:"Abbrechen",children:(0,Te.jsx)("button",{type:"button",onClick:()=>z(null),"data-testid":"cancel-filiale-".concat(t.id),className:z_,children:(0,Te.jsx)(Iv,{size:16})})})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>(e=>{const t=!u[e];t&&!x[e]&&H(e),m(n=>d(d({},n),{},{[e]:t}))})(t.id),"data-testid":"filiale-toggle-".concat(t.id),className:"flex items-center gap-3 min-w-0 flex-1 text-left",children:[(0,Te.jsx)(Df,{size:18,className:"text-muted-foreground transition-transform duration-200 shrink-0 ".concat(r?"rotate-90":"")}),t.is_central?(0,Te.jsx)(w_,{size:20,className:"fill-primary text-primary shrink-0","data-testid":"central-star-".concat(t.id)}):(0,Te.jsx)(j_,{size:20,strokeWidth:1.5,className:"text-primary shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg font-semibold truncate",children:t.name}),(0,Te.jsxs)("span",{className:"".concat(__," shrink-0"),children:[t.department_count," ",(0,Te.jsx)(cy,{id:"structure.departments",as:"span",children:e("structure.departments")})]}),(0,Te.jsxs)("span",{className:"".concat(__," shrink-0"),"data-testid":"filiale-headcount-".concat(t.id),children:[null!==(a=t.mitarbeiter)&&void 0!==a?a:0," ",(0,Te.jsx)("span",{children:"MA"})]})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1 shrink-0",children:["archived"===t.status&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-zinc-200 text-zinc-700","data-testid":"filiale-archived-badge-".concat(t.id),children:[(0,Te.jsx)(Ew,{size:11})," ehemalig"]}),n&&"archived"!==t.status&&(0,Te.jsx)(e_,{id:"structure.tip_rename_filiale",label:"Filiale umbenennen",children:(0,Te.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),z({id:t.id,name:t.name,firma_id:t.firma_id,is_central:t.is_central})},"data-testid":"edit-filiale-".concat(t.id),className:z_,children:(0,Te.jsx)(Mf,{size:15})})}),n&&!t.is_central&&"archived"!==t.status&&(0,Te.jsx)(e_,{id:"structure.tip_archive_filiale",label:"Filiale archivieren",children:(0,Te.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),(async e=>{try{await Ps.patch("/branches/".concat(e.id,"/archive")),await W(e.firma_id),V(),Ia.success("Filiale archiviert.")}catch(sse){Ia.error(Cs(sse))}})(t)},"data-testid":"archive-filiale-".concat(t.id),className:z_,children:(0,Te.jsx)(Ew,{size:15})})}),n&&!t.is_central&&"archived"===t.status&&(0,Te.jsx)(e_,{id:"structure.tip_reactivate_filiale",label:"Filiale reaktivieren",children:(0,Te.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),X(t)},"data-testid":"reactivate-filiale-".concat(t.id),className:z_,children:(0,Te.jsx)(Ff,{size:15})})}),n&&!t.is_central&&(0,Te.jsx)(e_,{id:"structure.tip_del_filiale",label:"Filiale l\xf6schen",children:(0,Te.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),$("filiale",t,t.firma_id)},"data-testid":"del-filiale-".concat(t.id),className:E_,children:(0,Te.jsx)(y_,{size:16})})})]})]})}),(0,Te.jsx)(co,{initial:!1,children:r&&(0,Te.jsx)(ff.div,d(d({},C_),{},{className:"overflow-hidden",children:te(t,!0)}))})]},t.id)};U.current=ne;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:e("structure.title"),titleId:"structure.title",subtitle:e("structure.subtitle"),subtitleId:"structure.subtitle",actions:n?null:(0,Te.jsx)("span",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-zinc-100 text-muted-foreground","data-testid":"readonly-badge",children:(0,Te.jsx)(cy,{id:"structure.readonly_badge",children:"Nur-Lese-Zugang"})})}),(0,Te.jsxs)(by,{className:"p-2 sm:p-3","data-testid":"structure-tree",children:[0===i.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground p-4",children:(0,Te.jsx)(cy,{id:"structure.noFirmen",as:"span",children:e("structure.noFirmen")})}),i.length>0&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 px-3 pt-2 pb-1 text-sm font-heading font-semibold text-foreground","data-testid":"top-aktiv-header",children:[(0,Te.jsx)(Sf,{size:16,className:"text-primary"})," Aktiv"]}),i.map(e=>{const t=h[e.id],a=(t||[]).find(e=>e.is_central&&"archived"!==e.status),r=(t||[]).filter(e=>!e.is_central&&"archived"!==e.status);return(0,Te.jsxs)("div",{"data-testid":"firma-node-".concat(e.id),children:[void 0===t&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-3 px-3",children:"L\xe4dt \u2026"}),a&&ne(a),t&&r.map(ne),n&&t&&(0,Te.jsxs)("div",{className:"flex gap-2 pt-3 px-2 sm:px-3",children:[(0,Te.jsx)(gy,{placeholder:"Neue Filiale \u2026",value:y[e.id]||"",onChange:t=>w(n=>d(d({},n),{},{[e.id]:t.target.value})),onKeyDown:t=>{"Enter"===t.key&&K(e)},"data-testid":"add-filiale-input-".concat(e.id),className:"max-w-xs"}),(0,Te.jsxs)(fy,{onClick:()=>K(e),"data-testid":"add-filiale-btn-".concat(e.id),children:[(0,Te.jsx)(Pf,{size:16})," ",(0,Te.jsx)(cy,{id:"structure.add_filiale",as:"span",children:"Filiale"})]})]})]},e.id)}),i.some(e=>{const t=h[e.id]||[],n=t.some(e=>(x[e.id]||[]).some(e=>"archived"===e.status)),a=t.some(e=>"archived"===e.status);return n||a})?(0,Te.jsxs)("div",{className:"mt-3 border-t border-border pt-2","data-testid":"top-archiv-folder",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>q(e=>!e),"data-testid":"top-archiv-toggle",className:"w-full flex items-center gap-2 px-3 py-2 rounded-lg hover:bg-zinc-50 transition-colors text-left text-muted-foreground",children:[(0,Te.jsx)(Df,{size:16,className:"transition-transform duration-200 shrink-0 ".concat(B?"rotate-90":"")}),(0,Te.jsx)(Ew,{size:16,className:"shrink-0"}),(0,Te.jsx)("span",{className:"text-sm font-heading font-semibold",children:"Archiv"})]}),(0,Te.jsx)(co,{initial:!1,children:B&&(0,Te.jsx)(ff.div,d(d({},C_),{},{className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"ml-2 sm:ml-4 pt-2",children:i.map(e=>(e=>{const t=h[e.id]||[],a=e=>(x[e]||[]).filter(e=>"archived"===e.status),r=t.find(e=>e.is_central),i=t.filter(e=>!e.is_central&&"archived"!==e.status),s=t.filter(e=>"archived"===e.status),o=r?a(r.id):[],l=i.filter(e=>a(e.id).length>0);if(!(o.length>0||l.length>0||s.length>0))return null;const c=(e,t,a)=>(0,Te.jsxs)("div",{"data-testid":"archiv-filiale-".concat(e.id),className:"mt-1",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2.5 py-2 px-2 sm:px-3",children:[(0,Te.jsx)(j_,{size:16,strokeWidth:1.5,className:"text-primary shrink-0"}),(0,Te.jsx)("span",{className:"font-medium text-sm truncate",children:e.name}),a&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-medium bg-zinc-200 text-zinc-700 shrink-0","data-testid":"archiv-filiale-badge-".concat(e.id),children:[(0,Te.jsx)(Ew,{size:11})," ehemalig"]}),n&&a&&(0,Te.jsx)(e_,{id:"structure.tip_reactivate_filiale",label:"Filiale reaktivieren",children:(0,Te.jsx)("button",{type:"button",onClick:()=>X(e),"data-testid":"archiv-reactivate-filiale-".concat(e.id),className:z_,children:(0,Te.jsx)(Ff,{size:15})})})]}),(0,Te.jsx)("div",{className:"ml-5 border-l border-border pl-2 sm:pl-4",children:t.length>0?t.map(t=>ee(t,e)):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-2 px-3",children:"Keine Abteilungen."})})]},e.id);return(0,Te.jsxs)("div",{"data-testid":"archiv-firma-".concat(e.id),className:"mb-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 py-2.5 px-2 sm:px-3",children:[(0,Te.jsx)(w_,{size:18,className:"fill-primary text-primary shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-base font-semibold truncate",children:r?r.name:e.name})]}),(0,Te.jsxs)("div",{className:"ml-5 sm:ml-8 border-l border-border pl-2 sm:pl-4",children:[o.map(e=>ee(e,r)),l.map(e=>c(e,a(e.id),!1)),s.map(e=>c(e,x[e.id]||[],!0))]})]},e.id)})(e))})}))})]}):null]}),T&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"structure-delete-dialog",onClick:J,children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-destructive",children:[(0,Te.jsx)(k_,{size:20}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:"dept"===T.type?(0,Te.jsx)(cy,{id:"structure.delete.dept_title",as:"span",children:"Abteilung l\xf6schen?"}):(0,Te.jsx)(cy,{id:"structure.delete.filiale_title",as:"span",children:"Filiale l\xf6schen?"})})]}),1===D?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"dept"===T.type?(0,Te.jsx)(cy,{id:"structure.delete.dept_desc",as:"span",vars:{name:T.item.name},children:"Die Abteilung \u201e{name}\u201c und alle zugeh\xf6rigen Ergebnisse werden unwiderruflich gel\xf6scht."}):(0,Te.jsx)(cy,{id:"structure.delete.filiale_desc",as:"span",vars:{name:T.item.name},children:"Die Filiale \u201e{name}\u201c samt allen Abteilungen und Ergebnissen wird unwiderruflich gel\xf6scht."})}),(0,Te.jsx)("p",{className:"text-sm mt-3 rounded-md bg-amber-50 text-amber-800 px-3 py-2",children:(0,Te.jsx)(cy,{id:"structure.delete.backup_hint",children:"Sichern Sie die Ergebnisse vorher als PDF \u2013 nach dem L\xf6schen sind sie unwiederbringlich verloren."})}),(0,Te.jsxs)("div",{className:"mt-5 flex flex-col gap-2",children:[(0,Te.jsx)(e_,{className:"w-full",label:S_,children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:void 0,"data-testid":"structure-delete-export",className:"w-full ".concat("opacity-60"),children:[(0,Te.jsx)(N_,{size:16})," ",(0,Te.jsx)(cy,{id:"structure.delete.export_pdf",as:"span",children:"Ergebnisse als PDF exportieren"})]})}),(0,Te.jsxs)("div",{className:"flex gap-2 justify-end mt-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:J,"data-testid":"structure-delete-cancel",children:e("common.cancel")}),(0,Te.jsx)(fy,{onClick:()=>M(2),"data-testid":"structure-delete-continue",children:(0,Te.jsx)(cy,{id:"common.next",as:"span",children:"Weiter"})})]})]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("p",{className:"text-sm text-foreground mt-2",children:(0,Te.jsx)(cy,{id:"structure.delete.confirm_desc",as:"span",children:"Sind Sie ganz sicher? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden."})}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>M(1),"data-testid":"structure-delete-back",className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg border border-border text-sm font-semibold hover:bg-zinc-50 transition-colors",children:(0,Te.jsx)(cy,{id:"common.back",as:"span",children:"Zur\xfcck"})}),(0,Te.jsxs)("button",{type:"button",onClick:async()=>{const e=T;try{"dept"===e.type?(await Ps.delete("/departments/".concat(e.item.id)),await H(e.branch_id)):await Ps.delete("/branches/".concat(e.item.id)),await W(e.firma_id),V(),J(
2),Ia.success("dept"===e.type?"Abteilung gel\xf6scht":"Filiale gel\xf6scht")}catch(sse){Ia.error(Cs(sse))}},"data-testid":"structure-delete-confirm",className:"inline-flex items-center gap-2 px-4 py-2 rounded-lg bg-destructive text-white text-sm font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(y_,{size:16})," ",(0,Te.jsx)(cy,{id:"structure.delete.confirm_btn",as:"span",children:"Endg\xfcltig l\xf6schen"})]})]})]})]})})]})}const A_={analytics:"PERSENTIS Analytics",care:"PERSENTIS Care",pulse:"PERSENTIS Pulse"};function T_(e){let t=e.product;const n=sn(),a=A_[t]||"Dieses Produkt";return(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 rounded-lg border border-amber-200 bg-amber-50 text-amber-900 px-4 py-3","data-testid":"inactive-plan-banner-".concat(t),children:[(0,Te.jsx)(GS,{size:18,className:"shrink-0"}),(0,Te.jsx)("span",{className:"text-sm flex-1",children:(0,Te.jsx)(cy,{id:"inactive.".concat(t,".banner"),as:"span",children:"".concat(a," ist inaktiv. Sie k\xf6nnen durchgef\xfchrte Umfragen unter Ergebnisse aufrufen.")})}),(0,Te.jsxs)(fy,{onClick:()=>n("/billing?product=".concat(t)),"data-testid":"inactive-plan-renew-".concat(t),className:"shrink-0 bg-[#75A33D] hover:bg-[#688f36] text-white font-semibold",children:[(0,Te.jsx)(cy,{id:"inactive.".concat(t,".renew"),as:"span",children:"Plan erneuern"})," ",(0,Te.jsx)(KS,{size:15})]})]})}const R_=kf("calendar-plus",[["path",{d:"M16 19h6",key:"xwg31i"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M19 16v6",key:"tddt3s"}],["path",{d:"M21 12.598V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h8.5",key:"1glfrc"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]]),O_=kf("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]),D_=kf("qr-code",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]),M_=kf("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),I_="https://calendly.com/persentis/einblicke";function F_(e){let t=e.compact,n=void 0!==t&&t,a=e.testid,r=void 0===a?"ct-blur-notice":a,i=e.className,s=void 0===i?"":i;return n?(0,Te.jsxs)("div",{className:"flex items-center gap-2 rounded-md border border-primary/30 bg-primary/5 px-3 py-2 ".concat(s),"data-testid":r,children:[(0,Te.jsx)(kw,{size:14,className:"text-primary shrink-0"}),(0,Te.jsx)("span",{className:"text-xs text-muted-foreground flex-1 leading-snug",children:"Im Demo-Modus ausgeblendet \u2013 im Gespr\xe4ch zeigen wir Ihnen den vollst\xe4ndigen Katalog."}),(0,Te.jsxs)("a",{href:I_,target:"_blank",rel:"noopener noreferrer","data-testid":"".concat(r,"-cta"),className:"shrink-0 inline-flex items-center gap-1.5 rounded-full bg-primary text-white px-3 py-1.5 text-xs font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Fy,{size:13})," Termin"]})]}):(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 rounded-xl border border-primary/30 bg-primary/5 p-4 ".concat(s),"data-testid":r,children:[(0,Te.jsx)(kw,{size:18,className:"text-primary shrink-0"}),(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("p",{className:"font-heading text-sm text-primary",children:"Im Gespr\xe4ch zeigen wir Ihnen alle Ergebnisse"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Im Demo-Modus sind weitere Detailergebnisse ausgeblendet."})]}),(0,Te.jsxs)("a",{href:I_,target:"_blank",rel:"noopener noreferrer","data-testid":"".concat(r,"-cta"),className:"shrink-0 inline-flex items-center gap-2 rounded-full bg-primary text-white px-4 py-2 text-sm font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Fy,{size:16})," Pr\xe4sentationstermin vereinbaren"]})]})}const L_=["lorem","ipsum","dolor","sit","amet","consetetur","sadipscing","elitr","sed","diam","nonumy","eirmod","tempor","invidunt","labore","dolore","magna","aliquyam","erat","voluptua"];function B_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;const n=String(e||""),a=n.trim()?n.trim().split(/\s+/).length:6,r=Math.min(24,Math.max(3,a)),i=[];for(let o=0;o<r;o++)i.push(L_[(3*o+7*t+r)%L_.length]);const s=i.join(" ");return s.charAt(0).toUpperCase()+s.slice(1)}const q_=kf("pen-line",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),U_=kf("list-plus",[["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 6H3",key:"1wxfjs"}],["path",{d:"M16 18H3",key:"12xzn7"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]]),V_=["Firma / Filiale","Bezeichnung","Abteilungen","Laufzeit"],H_={care:"PERSENTIS Care",analytics:"PERSENTIS Analytics"},W_={Wiederholen:"repeat","Firma / Filiale":"branch",Bezeichnung:"label",Abteilungen:"depts",Laufzeit:"duration",Zusatzfragen:"zusatz"};function K_(e){const t=new Date,n=String(t.getMonth()+1).padStart(2,"0");return"".concat("analytics"===e?"ANALYTICS":"CARE"," Umfrage ").concat(n,"/").concat(t.getFullYear())}function G_(e){const t=(e||"").trim().toLowerCase(),n=function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return n.some(e=>
2t.startsWith(e))};return n("wie h\xe4ufig","wie haeufig","wie oft")?"haeufigkeit":t.startsWith("wie zufrieden")?"zufriedenheit":n("wie gut","wie bewerten","wie beurteilen","wie sch\xe4tzen","wie schaetzen","wie funktioniert","wie ist","wie empfinden","wie w\xfcrde","wie wuerde")?"bewertung":n("ich ","meine ","mein ","mir ","im homeoffice","online-meetings","online meetings","mit welchen")?"zustimmung":n("belastet","haben sie","f\xfchlen sie","fuehlen sie","bekommen sie","werden sie","sind ","tr\xe4gt","traegt","erhalten sie","bedeutet","hat sich","finden sie","gibt es","hat ","k\xf6nnen sie","koennen sie","bin ")?"zutreffen":"zustimmung"}function Z_(e){var t;let n=e.open,r=e.onClose,i=e.branches,s=e.onCreated,o=e.editInvitation,l=e.product,c=void 0===l?"care":l;const u=!!o,m="analytics"===c,p=Xa().t,h=sn(),f=Ws().ctMode,g=[...u?[]:["Wiederholen"],...V_,...m?["Zusatzfragen"]:[]],x=Le((0,a.useState)(0),2),v=x[0],b=x[1],y=g[v],w=Le((0,a.useState)(""),2),j=w[0],k=w[1],N=Le((0,a.useState)(K_(c)),2),S=N[0],_=N[1],z=Le((0,a.useState)([]),2),E=z[0],C=z[1],P=Le((0,a.useState)([]),2),A=P[0],T=P[1],R=Le((0,a.useState)(14),2),O=R[0],D=R[1],M=Le((0,a.useState)(!1),2),I=M[0],F=M[1],L=(0,a.useRef)(null),B=Le((0,a.useState)([]),2),q=B[0],U=B[1],V=Le((0,a.useState)([]),2),H=V[0],W=V[1],K=Le((0,a.useState)([]),2),G=K[0],Z=K[1],Y=Le((0,a.useState)(!1),2),Q=Y[0],$=Y[1],X=Le((0,a.useState)(null),2),J=X[0],ee=X[1],te=Le((0,a.useState)(""),2),ne=te[0],ae=te[1],re=Le((0,a.useState)([]),2),ie=re[0],se=re[1],oe=Le((0,a.useState)(0),2),le=oe[0],ce=oe[1];if((0,a.useEffect)(()=>{n&&(b(0),$(!1),ae(""),ce(0),o?(k(o.branch_id||""),_(o.label||K_(c)),D(o.duration_days||14),L.current=o.department_ids||[],U((o.custom_questions||[]).map(e=>({type:"rating"===e.type?"rating":"open",text:e.text||"",scale_key:e.scale_key||("rating"===e.type?G_(e.text||""):null),source:e.source||"custom",predefined_id:e.predefined_id||null})))):(k(""),_(K_(c)),C([]),T([]),D(14),L.current=null,U([])))},[n,o]),(0,a.useEffect)(()=>{n&&m&&0===H.length&&Ps.get("/analytics-question-catalog").then(e=>{var t;W(e.data.categories||[]),Z(e.data.scales||[]),ee((null===(t=(e.data.categories||[])[0])||void 0===t?void 0:t.id)||null)}).catch(()=>{})},[n,m]),(0,a.useEffect)(()=>{n&&!u?Ps.get("/invitations?product=".concat(c)).then(e=>{se((e.data||[]).filter(e=>e.completed_at))}).catch(()=>se([])):se([])},[n,u,c]),(0,a.useEffect)(()=>{j?Ps.get("/departments?branch_id=".concat(j)).then(e=>{if(C(e.data),L.current){const t=e.data.map(e=>e.id),n=L.current;T(n.filter(e=>t.includes(e))),ce(n.filter(e=>!t.includes(e)).length),L.current=null}else T(e.data.map(e=>e.id)),ce(0)}).catch(()=>{}):(C([]),T([]))},[j]),!n)return null;const de=(e,t)=>U(n=>n.map((n,a)=>a===e?d(d({},n),t):n)),ue=e=>{if(ae(e),!e)return;const t=ie.find(t=>t.token===e);t&&(_(function(e){const t=new Date,n="".concat(String(t.getMonth()+1).padStart(2,"0"),"/").concat(t.getFullYear()),a=(e||"").replace(/\s+\d{1,2}\/\d{2,4}\s*$/,"").trim();return"".concat(a," ").concat(n).trim()}(t.label||"")),D(t.duration_days||14),L.current=t.department_ids||[],m&&U((t.custom_questions||[]).map(e=>({type:"rating"===e.type?"rating":"open",text:e.text||"",scale_key:e.scale_key||("rating"===e.type?G_(e.text||""):null),source:e.source||"custom",predefined_id:e.predefined_id||null}))),k(t.branch_id||""))},me=()=>"Firma / Filiale"===y?!!j:"Bezeichnung"===y?S.trim().length>0:"Abteilungen"===y?A.length>0:"Laufzeit"!==y||Number(O)>=1,pe=e=>{var t;return(null===(t=G.find(t=>t.key===e))||void 0===t?void 0:t.labels)||[]},he=q.length>=7;return(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"survey-wizard",onClick:r,children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-xl w-full max-w-2xl max-h-[90vh] overflow-hidden flex flex-col","data-testid":"wizard-card",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"px-6 pt-5 pb-3 border-b border-border",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:u?(0,Te.jsx)(cy,{id:"wizard.title_edit",as:"span",children:"Umfrage bearbeiten"}):(0,Te.jsx)(cy,{id:"wizard.title_create",as:"span",children:"Umfrage erstellen"})}),(0,Te.jsx)("button",{onClick:r,className:"text-muted-foreground hover:text-foreground","data-testid":"wizard-close",children:(0,Te.jsx)(Iv,{size:18})})]}),(0,Te.jsx)("p",{className:"text-xs text-primary font-semibold mt-0.5","data-testid":"wizard-product",children:H_[c]}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5 mt-4",children:g.map((e,t)=>(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("div",{className:"h-1.5 rounded-full ".concat(t<=v?"bg-primary":"bg-zinc-200")}),(0,Te.jsx)("p",{className:"text-[10px] mt-1 ".concat(t===v?"text-primary font-semibold":"text-muted-foreground"),children:(0,Te.jsx)(cy,{id:"wizard.stepname.".concat(W_[e]||t),as:"span",children:e})})]},e))})]}),(0,Te.jsxs)("div",{className:"px-6 py-5 overflow-y-auto flex-1","data-testid":"wizard-step-".concat(v),children:["Wiederholen"===y&&(0,Te.jsxs)("div",{"data-testid":"wizard-step-repeat",children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"wizard.repeat.label",as:"span",children:"M\xf6chten Sie eine bereits durchgef\xfchrte Umfrage 1:1 wiederholen?"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"wizard.repeat.hint",as:"span",children:"\xdcbernimmt Filiale, Abteilungen, Laufzeit und Zusatzfragen als Vorlage. Sie k\xf6nnen danach alles anpassen."})}),(0,Te.jsxs)("select",{value:ne,onChange:e=>ue(e.target.value),"data-testid":"wizard-repeat-select",className:"w-full border border-border rounded-md px-3 py-2.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:"Nein, neue Umfrage erstellen"}),ie.map(e=>(0,Te.jsxs)("option",{value:e.token,children:[e.firma_name?"".concat(e.firma_name," \xb7 "):"",e.label]},e.token))]}),0===ie.length&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground italic mt-3","data-testid":"wizard-repeat-empty",children:(0,Te.jsx)(cy,{id:"wizard.repeat.empty",as:"span",children:"Noch keine abgeschlossenen Umfragen zum Wiederholen vorhanden."})})]}),"Firma / Filiale"===y&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"wizard.step0.label",as:"span",children:"W\xe4hlen Sie Firma / Filiale"})}),(0,Te.jsxs)("select",{value:j,onChange:e=>k(e.target.value),"data-testid":"wizard-branch",className:"w-full border border-border rounded-md px-3 py-2.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:p("wizard.select_placeholder")}),i.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.is_central?"".concat(e.firma_name," (Zentrale)"):"".concat(e.firma_name," | ").concat(e.name)}
2,e.id))]})]}),"Bezeichnung"===y&&(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"block text-sm font-semibold mb-2",children:[(0,Te.jsx)(cy,{id:"wizard.step1.label",as:"span",children:"Name der Umfrage"})," ",(0,Te.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,Te.jsx)(gy,{value:S,onChange:e=>_(e.target.value),"data-testid":"wizard-label"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"wizard.step1.note",as:"span",children:"Pflichtfeld \u2013 wird als \xdcberschrift der Umfrage-Kachel angezeigt. Vorschlag automatisch erzeugt, frei anpassbar."})})]}),"Abteilungen"===y&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1",children:(0,Te.jsx)(cy,{id:"wizard.step2.label",as:"span",children:"Abteilungen ausw\xe4hlen"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"wizard.step2.hint",as:"span",children:"Standardm\xe4\xdfig sind alle Abteilungen der Filiale ausgew\xe4hlt."})}),le>0&&(0,Te.jsxs)("p",{className:"flex items-start gap-2 text-xs mb-3 rounded-md bg-amber-50 text-amber-800 px-3 py-2","data-testid":"wizard-dept-notice",children:[(0,Te.jsx)(GS,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsx)(cy,{id:"wizard.repeat.dept_removed",as:"span",vars:{n:le},children:"{n} Abteilung(en) aus der Original-Umfrage sind nicht mehr verf\xfcgbar und wurden entfernt."})]}),(0,Te.jsxs)("div",{className:"space-y-2 max-h-72 overflow-y-auto",children:[0===E.length&&(0,Te.jsxs)("div",{className:"text-center py-6","data-testid":"wizard-no-depts",children:[(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:(0,Te.jsx)(cy,{id:"wizard.step2.empty",as:"span",children:"Noch keine Abteilungen in dieser Filiale vorhanden."})}),(0,Te.jsxs)(fy,{type:"button",onClick:()=>{r(),h("/structure")},"data-testid":"wizard-create-depts-btn",children:[(0,Te.jsx)(Sf,{size:16})," ",(0,Te.jsx)(cy,{id:"wizard.step2.create_depts",as:"span",children:"Abteilungen anlegen"})]})]}),E.map(e=>(0,Te.jsxs)("label",{className:"flex items-center gap-3 px-3 py-2 rounded-md border border-border cursor-pointer hover:bg-zinc-50","data-testid":"wizard-dept-".concat(e.id),children:[(0,Te.jsx)("input",{type:"checkbox",checked:A.includes(e.id),onChange:()=>(e=>T(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]))(e.id),className:"w-4 h-4 accent-primary"}),(0,Te.jsx)("span",{className:"text-sm flex-1",children:e.name}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.headcount," ",(0,Te.jsx)(cy,{id:"wizard.unit_ma",as:"span",children:"MA"})]})]},e.id))]})]}),"Laufzeit"===y&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"wizard.step3.label",as:"span",children:"Laufzeit nach Eingang der ersten Antwort"})}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(gy,{type:"number",min:"1",value:O,onChange:e=>D(e.target.value),className:"w-24","data-testid":"wizard-duration"}),(0,Te.jsx)("span",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard.step3.unit",as:"span",children:"Tage (Standard: 14)"})})]}),(0,Te.jsxs)("p",{className:"flex items-start gap-2 text-xs mt-3 rounded-md bg-amber-50 text-amber-800 px-3 py-2",children:[(0,Te.jsx)(GS,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsx)(cy,{id:"wizard.step3.hint",as:"span",children:"Die Laufzeit kann sp\xe4ter bis zu zweimal um je 1 Woche verl\xe4ngert werden."})]})]}),"Zusatzfragen"===y&&m&&(0,Te.jsxs)("div",{"data-testid":"wizard-step-zusatzfragen",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("label",{className:"block text-sm font-semibold",children:[(0,Te.jsx)(cy,{id:"wizard.step4.label",as:"span",children:"Zusatzfragen"})," ",(0,Te.jsxs)("span",{className:"font-normal text-muted-foreground",children:["(",(0,Te.jsx)(cy,{id:"wizard.optional",as:"span",children:"optional"}),")"]})]}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground","data-testid":"cq-count",children:[q.length," / ",7]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-3",children:(0,Te.jsx)(cy,{id:"wizard.step4.hint",as:"span",vars:{max:7},children:"Bis zu {max} eigene Fragen. Sie erscheinen direkt nach dem Einstieg. Wertungsfragen erhalten automatisch eine passende Skala (anpassbar)."})}),(0,Te.jsxs)("div",{className:"space-y-3",children:[q.map((e,t)=>(0,Te.jsxs)("div",{className:"rounded-lg border border-border p-3","data-testid":"cq-item-".concat(t),children:[(0,Te.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Te.jsx)("textarea",{value:e.text,onChange:e=>de(t,{text:e.target.value}),rows:2,placeholder:p("wizard.cq_placeholder"),"data-testid":"cq-text-".concat(t),className:"flex-1 rounded-md border border-border px-2.5 py-1.5 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>U(t=>
2t.filter((t,n)=>n!==e)))(t),title:"Entfernen","data-testid":"cq-remove-".concat(t),className:"w-8 h-8 shrink-0 flex items-center justify-center rounded-md border border-border text-muted-foreground hover:text-[#C0392B] hover:border-[#C0392B]/40",children:(0,Te.jsx)(y_,{size:15})})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,Te.jsxs)("select",{value:e.type,onChange:e=>((e,t)=>de(e,{type:t,scale_key:"rating"===t?q[e].scale_key||G_(q[e].text):null}))(t,e.target.value),"data-testid":"cq-type-".concat(t),className:"border border-border rounded-md px-2 py-1.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary/40",children:[(0,Te.jsx)("option",{value:"rating",children:p("wizard.type_rating")}),(0,Te.jsx)("option",{value:"open",children:p("wizard.type_open")})]}),"rating"===e.type&&(0,Te.jsx)("select",{value:e.scale_key||"zustimmung",onChange:e=>de(t,{scale_key:e.target.value}),"data-testid":"cq-scale-".concat(t),className:"border border-border rounded-md px-2 py-1.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary/40",children:G.map(e=>(0,Te.jsx)("option",{value:e.key,children:e.name},e.key))}),"predefined"===e.source&&(0,Te.jsx)("span",{className:"text-[10px] font-semibold text-primary bg-primary/10 px-2 py-0.5 rounded-full",children:(0,Te.jsx)(cy,{id:"wizard.badge_vorschlag",as:"span",children:"Vorschlag"})})]}),"rating"===e.type&&(0,Te.jsx)("div",{className:"flex flex-wrap gap-1 mt-2","data-testid":"cq-scale-preview-".concat(t),children:pe(e.scale_key||"zustimmung").map((e,t)=>(0,Te.jsx)("span",{className:"text-[10px] text-muted-foreground bg-zinc-100 rounded px-1.5 py-0.5",children:e},t))})]},t)),0===q.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground italic py-2","data-testid":"cq-empty",children:(0,Te.jsx)(cy,{id:"wizard.cq_empty",as:"span",children:"Noch keine Zusatzfragen hinzugef\xfcgt."})})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2 mt-4",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{q.length>=7||U(e=>[...e,{type:"rating",text:"",scale_key:"zustimmung",source:"custom",predefined_id:null}])},disabled:he,"data-testid":"cq-add-own",children:[(0,Te.jsx)(q_,{size:15})," ",(0,Te.jsx)(cy,{id:"wizard.btn_own",as:"span",children:"Eigene Frage"})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>$(e=>!e),disabled:he,"data-testid":"cq-open-picker",children:[(0,Te.jsx)(U_,{size:15})," ",(0,Te.jsx)(cy,{id:"wizard.btn_picker",as:"span",children:"Aus Vorschl\xe4gen w\xe4hlen"})]})]}),Q&&(0,Te.jsxs)("div",{className:"mt-4 rounded-lg border border-border overflow-hidden","data-testid":"cq-picker",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 border-b border-border",children:[(0,Te.jsxs)("span",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground flex items-center gap-1.5",children:[(0,Te.jsx)(If,{size:13,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"wizard.picker_title",as:"span",children:"Vorschlagskatalog"})]}),(0,Te.jsx)("button",{type:"button",onClick:()=>$(!1),"data-testid":"cq-picker-close",className:"text-xs font-semibold text-primary hover:underline",children:(0,Te.jsx)(cy,{id:"wizard.picker_done",as:"span",children:"Fertig"})})]}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-1.5 px-3 py-2 border-b border-border",children:H.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>ee(e.id),"data-testid":"cq-cat-".concat(e.id),className:"text-xs px-2.5 py-1 rounded-full transition-colors ".concat(J===e.id?"bg-primary text-white":"bg-white border border-border text-foreground hover:bg-zinc-50"),children:e.name},e.id))}),(0,Te.jsx)("div",{className:"max-h-56 overflow-y-auto p-2 space-y-1",children:((null===(t=H.find(e=>e.id===J))||void 0===t?void 0:t.questions)||[]).map((e,t)=>{const n=f&&t>0;return(0,Te.jsxs)("button",{type:"button",onClick:()=>(e=>{q.length>=7||U(t=>[...t,{type:"rating"===e.type?"rating":"open",text:e.text,scale_key:"rating"===e.type?G_(e.text):null,source:"predefined",predefined_id:e.id}])})(e),disabled:he||n,"data-testid":"cq-suggest-".concat(e.id),className:"w-full text-left flex items-start gap-2 px-2.5 py-2 rounded-md hover:bg-[#
2E5E7EB] disabled:opacity-40 transition-colors ".concat(n?"ct-soft-blur":""),children:[(0,Te.jsx)(Pf,{size:14,className:"mt-0.5 shrink-0 text-primary"}),(0,Te.jsx)("span",{className:"flex-1 text-sm",children:n?B_(e.text,t):e.text}),(0,Te.jsx)("span",{className:"text-[10px] font-semibold shrink-0 px-1.5 py-0.5 rounded ".concat("rating"===e.type?"bg-[#1F2A44]/10 text-[#1F2A44]":"bg-amber-100 text-amber-800"),children:"rating"===e.type?(0,Te.jsx)(cy,{id:"wizard.badge_wertung",as:"span",children:"Wertung"}):(0,Te.jsx)(cy,{id:"wizard.badge_offen",as:"span",children:"Offen"})})]},e.id)})}),f&&(0,Te.jsx)("div",{className:"p-2 pt-0",children:(0,Te.jsx)(F_,{compact:!0,testid:"cq-blur-notice"})})]})]})]}),(0,Te.jsxs)("div",{className:"px-6 py-4 border-t border-border flex items-center justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>0===v?r():b(v-1),"data-testid":"wizard-back","aria-label":0===v?"Abbrechen":"Zur\xfcck",title:0===v?"Abbrechen":"Zur\xfcck",className:"px-3",children:(0,Te.jsx)(Rf,{size:16})}),v<g.length-1?(0,Te.jsx)(fy,{onClick:()=>me()&&b(v+1),disabled:!me(),"data-testid":"wizard-next","aria-label":"Weiter",title:"Weiter",className:"px-3",children:(0,Te.jsx)(Df,{size:16})}):(0,Te.jsx)(fy,{onClick:async()=>{F(!0);try{const e={branch_id:j,label:S.trim(),product:c,department_ids:A,duration_days:Number(O)||14};m&&(e.custom_questions=q.filter(e=>(e.text||"").trim()).slice(0,7).map(e=>({type:e.type,text:e.text.trim(),scale_key:"rating"===e.type?e.scale_key||G_(e.text):null,source:e.source||"custom",predefined_id:e.predefined_id||null}))),u?(await Ps.put("/invitations/".concat(o.token),e),Ia.success("Umfrage aktualisiert")):(await Ps.post("/invitations",e),Ia.success("Umfrage erstellt")),s&&s(),r()}catch(sse){Ia.error(Cs(sse))}finally{F(!1)}},disabled:I,"data-testid":"wizard-submit",children:I?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," ",u?(0,Te.jsx)(cy,{id:"wizard.saving",as:"span",children:"Wird gespeichert \u2026"}):(0,Te.jsx)(cy,{id:"wizard.creating",as:"span",children:"Wird erstellt \u2026"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Cf,{size:16})," ",u?(0,Te.jsx)(cy,{id:"common.save_changes",as:"span",children:"\xc4nderungen speichern"}):(0,Te.jsx)(cy,{id:"invitations.create",as:"span",children:"Umfrage erstellen"})]})})]})]})})}const Y_={green_min:80,amber_min:50};function Q_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Y_;return null==e?"bg-zinc-100 text-zinc-500":e>=t.green_min?"bg-green-100 text-green-700":e>=t.amber_min?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700"}function $_(){const e=Le((0,a.useState)(Y_),2),t=e[0],n=e[1];return(0,a.useEffect)(()=>{Ps.get("/analytics/teilnahme-config").then(e=>n(e.data.config)).catch(()=>{})},[]),t}const X_=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",J_=e=>(e||"").replace(/\s+/g,"-").toLowerCase(),ez=(e,t,n)=>n||t,tz=e=>{let t=e.onClick,n=e.title,a=e.tipId,r=e.testid,i=e.danger,s=e.className,o=void 0===s?"w-9":s,l=e.children;return(0,Te.jsx)(e_,{id:a,label:n,className:o,children:(0,Te.jsx)("button",{type:"button",onClick:t,"aria-label":n,"data-testid":r,className:"w-full h-9 flex items-center justify-center rounded-md border transition-colors ".concat(i?"border-red-200 text-destructive hover:bg-red-50":"border-border text-foreground hover:bg-zinc-100"),children:l})})},nz={care:{label:"PERSENTIS Care",surveyPath:"survey",title:"Umfragen",subtitle:"PERSENTIS Care \u2013 Umfragen anlegen und verwalten"},analytics:{label:"PERSENTIS Analytics",surveyPath:"analytics-survey",title:"Umfragen \u2013 PERSENTIS Analytics",subtitle:"PERSENTIS Analytics \u2013 anonyme Befragung zum psychologischen Vertrag"}};function az(e){let t=e.product,n=void 0===t?"care":t;const r=nz[n]||nz.care,i=Xa().t,s=Rs().user,o=Ws().ctMode,l=qN(),c=l.hasProduct,d=l.gatingActive,u=l.isViewOnly,m=sn(),p=["admin","superadmin"].includes(null===s||void 0===s?void 0:s.role),h=!d||c(n),f=u(n),g=$_(),x=Le((0,a.useState)([]),2),v=x[0],b=x[1],y=Le((0,a.useState)([]),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)(!1),2),z=_[0],E=_[1],C=Le((0,a.useState)(null),2),P=C[0],A=C[1],T=Le((0,a.useState)(null),2),R=T[0],O=T[1],D=Le((0,a.useState)(null),2),M=D[0],I=D[1],F=Le((0,a.useState)(null),2),L=F[0],B=F[1],q=Le((0,a.useState)(1),2),U=q[0],V=q[1],H=Le((0,a.useState)(""),2),W=H[0],K=H[1];(0,a.useEffect)(()=>{p&&"1"===new URLSearchParams(window.location.search).get("new")&&(h?S(!0):E(!0))},[p,h]);const G=Le((0,a.useState)(""),2),Z=G[0],Y=G[1],Q=Le((0,a.useState)(""),2),$=Q[0],X=Q[1],J=Le((0,a.useState)(null),2),ee=J[0],te=J[1],ne=Le((0,a.useState)(null),2),ae=ne[0],re=ne[1],ie=(0,a.useRef)(!1),se=()=>{Ps.get("/invitations?product=".concat(n)).then(e=>b(e.data)),Ps.get("/branches").then(e=>j(e.data))};
2(0,a.useEffect)(se,[n]);const oe=e=>"".concat(window.location.origin,"/").concat(r.surveyPath,"/").concat(e).concat(o?"?ct=1":""),le=e=>oe(e)+(o?"&preview=1":"?preview=1"),ce=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flyer";try{const n=await Ps.get("/invitations/".concat(e,"/qr-pdf?variant=").concat(t),{responseType:"blob"}),a=window.URL.createObjectURL(new Blob([n.data],{type:"application/pdf"})),r=document.createElement("a");r.href=a,r.download="poster"===t?"PERSENTIS-QR-Plakat.pdf":"PERSENTIS-QR-Flyer.pdf",document.body.appendChild(r),r.click(),r.remove(),window.URL.revokeObjectURL(a)}catch(rse){Ia.error(Cs(rse))}},de=e=>O(e),ue=()=>O(null),me=v.filter(e=>{if("abgeschlossen"===e.status)return!1;const t=W.trim().toLowerCase();if(t&&!"".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.label||"").toLowerCase().includes(t))return!1;const n=(e.created_at||"").slice(0,10);return!(Z&&(!n||n<Z))&&!($&&(!n||n>$))}),pe=(e,t)=>{const n={};e.forEach(e=>{const a="".concat(t,"||").concat(e.firma_name,"||").concat(e.branch_name);n[a]||(n[a]={key:a,firma:e.firma_name,name:e.branch_name,is_central:!!e.is_central,items:[]}),n[a].items.push(e)});const a=Object.values(n).sort((e,t)=>Number(t.is_central)-Number(e.is_central)||e.firma.localeCompare(t.firma)||e.name.localeCompare(t.name));return a.forEach(e=>e.items.sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||""))),a},he=me.filter(e=>"vorbereitung"===e.status),fe=me.filter(e=>"aktiv"===e.status),ge=pe(he,"vorb"),xe=pe(fe,"aktiv"),ve=(0,a.useRef)(!1);(0,a.useEffect)(()=>{var e,t;if(ve.current)return;const n=(null===(e=ge[0])||void 0===e?void 0:e.key)||(null===(t=xe[0])||void 0===t?void 0:t.key);n&&(te(n),ve.current=!0)},[ge,xe]),(0,a.useEffect)(()=>{if(ie.current||!v.length)return;const e=new URLSearchParams(window.location.search).get("open");if(!e)return;ie.current=!0;const t=[...ge,...xe].find(t=>t.items.some(t=>t.token===e));t&&(te(t.key),ve.current=!0),re(e),setTimeout(()=>{const t=document.getElementById("survey-card-".concat(e));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},500),setTimeout(()=>re(null),4500)},[v,ge,xe]);const be=e=>{const t=e.target>0?Math.min(100,Math.round(e.responses/e.target*100)):null;return(0,Te.jsxs)(by,{id:"survey-card-".concat(e.token),className:"p-5 flex flex-col transition-shadow duration-300 ".concat(e.token===ae?"ring-2 ring-primary ring-offset-2 shadow-lg":""),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"inv-title-".concat(e.token),children:e.label||ez(e.is_central,e.firma_name,e.branch_name)})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center","data-testid":"inv-info-".concat(e.token),children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.created",as:"span",children:"Erstellt am"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:X_(e.created_at)}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.duration",as:"span",children:"Umfragedauer"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:null!=e.duration_days?"".concat(e.duration_days," Tage"):"\u2014"}),"aktiv"===e.status&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.runsuntil",as:"span",children:"L\xe4uft bis"})}),(0,Te.jsx)("span",{className:"text-right font-medium","data-testid":"inv-endsat-".concat(e.token),children:e.responses>0?X_(e.ends_at):(0,Te.jsx)(cy,{id:"invitations.not_started",as:"span",children:"nicht gestartet"})})]}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.participants",as:"span",children:"Teilnehmer"})}),(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2","data-testid":"inv-responses-".concat(e.token),children:[(0,Te.jsxs)("span",{className:"font-medium tabular-nums",children:[e.responses,e.target>0?"/".concat(e.target):""]}),null!=t&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(Q_(t,g)),"data-testid":"inv-rate-".concat(e.token),children:[t,"%"]})]})]}),"vorbereitung"===e.status?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"mt-3 flex gap-2","data-testid":"inv-actions-".concat(e.token),children:[p&&(0,Te.jsx)(tz,{className:"flex-1",onClick:()=>{A(e),S(!0)},title:"Bearbeiten",tipId:"invitations.tip_edit",testid:"edit-inv-".concat(e.token),children:(0,Te.jsx)(Mf,{size:16})}),(0,Te.jsx)(tz,{className:"flex-1",onClick:()=>window.open(le(e.token),"_blank"),title:"Vorschau \xf6ffnen",tipId:"invitations.tip_preview",testid:"preview-".concat(e.token),children:(0,Te.jsx)(tS,{size:16})}),p&&(0,Te.jsx)(tz,{className:"flex-1",onClick:()=>de(e),title:i("common.delete"),tipId:"invitations.tip_delete",testid:"del-inv-".concat(e.token),danger:!0,children:(0,Te.jsx)(y_,{size:16})})]}),p&&(0,Te.jsxs)("button",{onClick:()=>{B(e),V(1)},"data-testid":"start-inv-".concat(e.token),className:"mt-2 w-full inline-flex items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-[var(--brand-primary-dark)]",children:[(0,Te.jsx)(Iy,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.start",as:"span",children:"Umfrage starten"})]})]}):p?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"mt-3 flex gap-2","data-testid":"inv-actions-".concat(e.token),children:[(0,Te.jsx)(e_,{className:"flex-1",i
2d:(e.extensions_used||0)>=2?"invitations.tip_extend_max":"invitations.tip_extend",label:(e.extensions_used||0)>=2?"Bereits 2\xd7 verl\xe4ngert":"Um 1 Woche verl\xe4ngern",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:(e.extensions_used||0)>=2,onClick:()=>(async e=>{try{const t=await Ps.patch("/invitations/".concat(e.token,"/extend"));se(),Ia.success("Laufzeit um 1 Woche verl\xe4ngert (".concat(t.data.extensions_used,"/2)"))}catch(sse){Ia.error(Cs(sse))}})(e),"data-testid":"extend-".concat(e.token),"aria-label":"Verl\xe4ngern",children:(0,Te.jsx)(R_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_copylink",label:"Umfragelink kopieren",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:o,onClick:()=>(async e=>{const t=oe(e);try{if(navigator.clipboard&&window.isSecureContext)return await navigator.clipboard.writeText(t),void Ia.success("Umfragelink kopiert");throw new Error("clipboard-api-unavailable")}catch(rse){try{const e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="fixed",e.style.top="0",e.style.left="-9999px",document.body.appendChild(e),e.focus(),e.select();const n=document.execCommand("copy");if(document.body.removeChild(e),n)return void Ia.success("Umfragelink kopiert")}catch(AI){}Ia.error("Kopieren nicht m\xf6glich")}})(e.token),"data-testid":"copylink-".concat(e.token),"aria-label":"Umfragelink kopieren",children:(0,Te.jsx)(O_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_qr",label:"QR-Code-PDF herunterladen",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:o,onClick:()=>ce(e.token),"data-testid":"qr-".concat(e.token),"aria-label":"QR-Code-PDF herunterladen",children:(0,Te.jsx)(D_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_delete_survey",label:"Umfrage l\xf6schen",children:(0,Te.jsx)(fy,{variant:"danger",className:"w-full",onClick:()=>de(e),"data-testid":"del-inv-".concat(e.token),"aria-label":"Umfrage l\xf6schen",children:(0,Te.jsx)(y_,{size:16})})})]}),(0,Te.jsxs)("button",{onClick:()=>I(e),"data-testid":"complete-".concat(e.token),className:"mt-2 w-full inline-flex items-center justify-center gap-2 rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-red-700",children:[(0,Te.jsx)(Ef,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.close",as:"span",children:"Umfrage schlie\xdfen"})]})]}):(0,Te.jsx)("div",{className:"mt-3 flex gap-2","data-testid":"inv-actions-".concat(e.token),children:(0,Te.jsx)(tz,{className:"flex-1",onClick:()=>window.open(le(e.token),"_blank"),title:"Vorschau \xf6ffnen",tipId:"invitations.tip_preview",testid:"preview-".concat(e.token),children:(0,Te.jsx)(tS,{size:16})})})]},e.token)},ye=e=>{const t=ee===e.key;return(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"branch-folder-".concat(J_(e.firma),"-").concat(J_(e.name)),children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>te(t?null:e.key),"data-testid":"branch-folder-toggle-".concat(J_(e.firma),"-").concat(J_(e.name)),"aria-expanded":t,className:"w-full flex items-center justify-between px-5 py-3.5 bg-zinc-50 hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 font-heading text-base",children:[e.is_central?(0,Te.jsx)(w_,{size:18,className:"text-primary fill-primary shrink-0","data-testid":"central-folder-star-".concat(J_(e.name))}):(0,Te.jsx)(j_,{size:18,strokeWidth:1.5,className:"text-primary shrink-0"}),ez(e.is_central,e.firma,e.name),(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",e.items.length,")"]})]}),(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform duration-200 ".concat(t?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:t&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"p-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"branch-folder-body-".concat(J_(e.name)),children:e.items.map(e=>be(e))})})})]},e.key)},we=W||Z||$;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:r.title,subtitle:r.subtitle,titleId:"invitations.".concat(n,".title"),subtitleId:"invitations.".concat(n,".subtitle")}),f&&(0,Te.jsx)("div",{className:"mb-6",children:(0,Te.jsx)(T_,{product:n})}),(!p||!f)&&(0,Te.jsx)("div",{className:"mb-6 flex justify-end",children:p?(0,Te.jsxs)(fy,{onClick:()=>{h?(A(null),S(!0)):E(!0)},"data-testid":"open-wizard-btn",children:[(0,Te.jsx)(bw,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.create",as:"span",children:"Umfrage erstellen"})]}):(0,Te.jsx)("span",{className:"text-xs font-semibold px-3 py-1.5 rounded-full bg-zinc-100 text-muted-foreground","data-testid":"readonly-badge",children:(0,Te.jsx)(cy,{id:"structure.readonly_badge",as:"span",children:"Nur-Lese-Zugang"})})}),(0,Te.jsx)(Z_,{open:N,onClose:()=>{S(!1),A(null)},branches:w,onCreated:se,editInvitation:P,product:n}),z&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"product-purchase-dialog",onClick:()=>E(!1),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("h3",{className:"font-heading text-xl mb-2 flex items-center gap-2",children:[(0,Te.jsx)(Iy,{size:18,className:"text-primary"})," ",r.label]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-6",children:(0,Te.jsx)(cy,{id:"invitations.purchase.body",as:"span",children:"".concat(r.label," ist f\xfcr Sie noch nicht aktiv. Buchen Sie das Produkt, um Umfragen anzulegen und zu starten.")})}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>E(!1),"data-testid":"product-purchase-cancel",children:[(0,Te.jsx)(Iv,{size:16})," ",(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})]}),(0,Te.jsxs)(fy,{onClick:()=>m("/billing?product=".concat(n)),"data-testid":"product-purchase-cta",className:"bg-[#75A33D] hover:bg-[#688f36] text-white",children:[(0,Te.jsx)(cy,{id:"invitations.purchase.cta",as:"span",children:"Produkt buchen"})," ",(0,Te.jsx)(KS,{size:16})]})]})]})}),(0,Te.jsx)(by,{className:"p-4 mb-6",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end gap-3","data-testid":"inv
2itation-filters",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.search_label",as:"span",children:"Suche (Firma, Filiale, Bezeichnung)"})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:W,onChange:e=>K(e.target.value),placeholder:"Suchen \u2026",className:"pl-9","data-testid":"search-input"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_from",as:"span",children:"Zeitraum von"})}),(0,Te.jsx)(gy,{type:"date",value:Z,onChange:e=>Y(e.target.value),"data-testid":"filter-from"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_to",as:"span",children:"bis"})}),(0,Te.jsx)(gy,{type:"date",value:$,onChange:e=>X(e.target.value),"data-testid":"filter-to"})]}),we&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{K(""),Y(""),X("")},"data-testid":"filter-clear",children:[(0,Te.jsx)(Iv,{size:15})," ",(0,Te.jsx)(cy,{id:"common.reset",as:"span",children:"Zur\xfccksetzen"})]})]})}),(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"vorbereitung-heading",children:[(0,Te.jsx)(Mf,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"invitations.section.vorbereitung",as:"span",children:"Umfragen in Vorbereitung"})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",he.length,")"]})]}),(0,Te.jsxs)("div",{className:"space-y-4 mb-8","data-testid":"vorbereitung-list",children:[0===ge.length&&(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.empty.vorbereitung",as:"span",children:"Keine Umfragen in Vorbereitung."})})}),ge.map(e=>ye(e))]}),(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"aktiv-heading",children:[(0,Te.jsx)(Nw,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"invitations.section.aktiv",as:"span",children:"Umfragen Aktiv"})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",fe.length,")"]})]}),(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"aktiv-list",children:[0===xe.length&&(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.empty.aktiv",as:"span",children:"Keine aktiven Umfragen."})})}),xe.map(e=>ye(e))]}),M&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"complete-dialog",onClick:()=>I(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(Ef,{size:20,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"invitations.complete.title",as:"span",children:"Umfrage wirklich abschlie\xdfen?"})})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie die Umfrage ",(0,Te.jsx)("strong",{children:M.label||ez(M.is_central,M.firma_name,M.branch_name)})," wirklich abschlie\xdfen? Eine ",(0,Te.jsx)("strong",{children:"Wiederer\xf6ffnung ist nicht m\xf6glich"}),'. Die Ergebnisse finden Sie anschlie\xdfend unter \u201eAuswertungen".']}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>I(null),"data-testid":"complete-cancel",children:[(0,Te.jsx)(Iv,{size:16})," ",(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})]}),(0,Te.jsxs)(fy,{onClick:()=>(async e=>{try{await Ps.patch("/invitations/".concat(e),{status:"abgeschlossen"}),I(null),se(),Ia.success("Umfrage abgeschlossen")}catch(sse){Ia.error(Cs(sse))}})(M.token),"data-testid":"complete-confirm",children:[(0,Te.jsx)(Ef,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.complete.confirm",as:"span",children:"Absc
2hlie\xdfen"})]})]})]})}),L&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"start-dialog",onClick:()=>B(null),children:(0,Te.jsx)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:1===U?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(Iy,{size:20,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"invitations.start_dialog.title",as:"span",children:"Umfrage STARTEN"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2","data-testid":"start-dialog-text",children:(0,Te.jsx)(cy,{id:"invitations.start_dialog.text",as:"span",vars:{label:r.label},children:"M\xf6chten Sie mit {label} jetzt starten?"})}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(e_,{id:"invitations.tip_start_cancel",label:"Abbrechen",children:(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>B(null),"data-testid":"start-cancel","aria-label":"Abbrechen",children:(0,Te.jsx)(Iv,{size:16})})}),!o&&(0,Te.jsx)(e_,{id:"invitations.tip_start_next",label:"Weiter",children:(0,Te.jsx)(fy,{onClick:async()=>{try{await Ps.post("/invitations/".concat(L.token,"/start")),V(2)}catch(sse){Ia.error(Cs(sse))}},"data-testid":"start-next","aria-label":"Weiter",children:(0,Te.jsx)(KS,{size:16})})})]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(Ef,{size:20,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"invitations.start_dialog.done_title",as:"span",children:"N\xe4chste Schritte"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2","data-testid":"start-nextsteps-text",children:(0,Te.jsx)(cy,{id:"invitations.start_dialog.done_text",as:"span",vars:{label:r.label},children:"Sie haben {label} gestartet und finden in Ihrem Postfach eine Mail mit den weiteren Anweisungen, Vorschlagtext f\xfcr die Aussendung an Ihre Mitarbeiter sowie vorbereitete QR Codes zum Ausdrucken und aush\xe4ngen."})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-3","data-testid":"start-nextsteps-fun",children:(0,Te.jsx)(cy,{id:"invitations.start_dialog.done_fun",as:"span",vars:{label:r.label},children:"Viel Spa\xdf mit {label}."})}),(0,Te.jsxs)("div",{className:"mt-5 grid sm:grid-cols-2 gap-2",children:[(0,Te.jsxs)(fy,{variant:"secondary",className:"w-full",disabled:o,onClick:()=>ce(L.token,"flyer"),"data-testid":"start-qr-download",children:[(0,Te.jsx)(D_,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.start_dialog.qr_btn",as:"span",children:"Flyer (4 pro Seite)"})]}),(0,Te.jsxs)(fy,{variant:"secondary",className:"w-full",disabled:o,onClick:()=>ce(L.token,"poster"),"data-testid":"start-qr-download-poster",children:[(0,Te.jsx)(D_,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.start_dialog.qr_poster_btn",as:"span",children:"Plakat (1 pro Seite)"})]})]}),(0,Te.jsx)("div",{className:"mt-4 flex justify-end",children:(0,Te.jsx)(e_,{id:"invitations.tip_start_close",label:"Fenster schlie\xdfen",children:(0,Te.jsx)(fy,{onClick:()=>{B(null),se()},"data-testid":"start-close","aria-label":"Fenster schlie\xdfen",children:(0,Te.jsx)(Iv,{size:16})})})})]})})}),R&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"delete-dialog",onClick:ue,children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-destructive",children:[(0,Te.jsx)(k_,{size:20}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:"Umfrage l\xf6schen?"})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2","data-testid":"delete-dialog-text",children:"aktiv"===R.status?"Beim L\xf6schen gehen alle Informationen sowie s\xe4mtliche Antworten, die bereits abgegeben wurden unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab.":"Beim L\xf6schen gehen alle Informationen unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab."}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:ue,"data-testid":"delete-cancel",children:[(0,Te.jsx)(Iv,{size:16})," Abbrechen"]}),(0,Te.jsxs)(fy,{variant:"danger",onClick:async()=>{try{await Ps.delete("/invitations/".concat(R.token)),ue(),se(),Ia.success("Umfrage gel\xf6scht")}catch(sse){Ia.error(Cs(sse))}},"data-testid":"delete-confirm",children:[(0,Te.jsx)(y_,{size:16})," L\xf6schen"]})]})]})})]})}const rz=function(e){let t=e.size,n=void 0===t?150:t,a=e.testid,r=void 0===a?"locked-gauge":a;return(0,Te.jsxs)("div",{className:"relative flex flex-col items-center","data-testid":r,children:[(0,Te.jsx)("div",{className:"blur-[3px] opacity-60 select-none pointer-events-none flex flex-col items-center",children:(0,Te.jsx)(qS,{value:0,displayValue:"0",hideMarker:!0,color:"#CBD5E1",size:n})}),(0,Te.jsx)("div",{className:"absolute inset-0 flex items-center justify-center","data-testid":"".concat(r,"-overlay"),children:(0,Te.jsx)("span",{className:"rounded-full bg-foreground
2/90 text-white text-sm font-semibold px-4 py-2 shadow-lg text-center",children:(0,Te.jsx)(cy,{id:"results.card.too_few",as:"span",children:"Zu wenig Teilnehmer"})})})]})},iz=kf("clipboard-check",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);function sz(e){const t=a.useRef({value:e,previous:e});return a.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const oz=["__scopeCheckbox","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],lz=["__scopeCheckbox","forceMount"],cz=["__scopeCheckbox","control","checked","bubbles","defaultChecked"];var dz="Checkbox",uz=Le(Wf(dz),2),mz=uz[0],pz=(uz[1],Le(mz(dz),2)),hz=pz[0],fz=pz[1],gz=a.forwardRef((e,t)=>{const n=e.__scopeCheckbox,r=e.name,i=e.checked,s=e.defaultChecked,o=e.required,l=e.disabled,c=e.value,u=void 0===c?"on":c,m=e.onCheckedChange,p=e.form,h=Be(e,oz),f=Le(a.useState(null),2),g=f[0],x=f[1],v=Uf(t,e=>x(e)),b=a.useRef(!1),y=!g||(p||!!g.closest("form")),w=Le(Xf({prop:i,defaultProp:null!==s&&void 0!==s&&s,onChange:m,caller:dz}),2),j=w[0],k=w[1],N=a.useRef(j);return a.useEffect(()=>{const e=null===g||void 0===g?void 0:g.form;if(e){const t=()=>k(N.current);return e.addEventListener("reset",t),()=>e.removeEventListener("reset",t)}},[g,k]),(0,Te.jsxs)(hz,{scope:n,state:j,disabled:l,children:[(0,Te.jsx)(lg.button,d(d({type:"button",role:"checkbox","aria-checked":yz(j)?"mixed":j,"aria-required":o,"data-state":wz(j),"data-disabled":l?"":void 0,disabled:l,value:u},h),{},{ref:v,onKeyDown:Lf(e.onKeyDown,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:Lf(e.onClick,e=>{k(e=>!!yz(e)||!e),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,Te.jsx)(bz,{control:g,bubbles:!b.current,name:r,value:u,checked:j,required:o,disabled:l,form:p,style:{transform:"translateX(-100%)"},defaultChecked:!yz(s)&&s})]})});gz.displayName=dz;var xz="CheckboxIndicator",vz=a.forwardRef((e,t)=>{const n=e.__scopeCheckbox,a=e.forceMount,r=Be(e,lz),i=fz(xz,n);return(0,Te.jsx)(Rg,{present:a||yz(i.state)||!0===i.state,children:(0,Te.jsx)(lg.span,d(d({"data-state":wz(i.state),"data-disabled":i.disabled?"":void 0},r),{},{ref:t,style:d({pointerEvents:"none"},e.style)}))})});vz.displayName=xz;var bz=a.forwardRef((e,t)=>{e.__scopeCheckbox;let n=e.control,r=e.checked,i=e.bubbles,s=void 0===i||i,o=e.defaultChecked,l=Be(e,cz);const c=a.useRef(null),u=Uf(c,t),m=sz(r),p=wk(n);a.useEffect(()=>{const e=c.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(m!==r&&n){const t=new Event("click",{bubbles:s});e.indeterminate=yz(r),n.call(e,!yz(r)&&r),e.dispatchEvent(t)}},[m,r,s]);const h=a.useRef(!yz(r)&&r);return(0,Te.jsx)(lg.input,d(d({type:"checkbox","aria-hidden":!0,defaultChecked:null!==o&&void 0!==o?o:h.current},l),{},{tabIndex:-1,ref:u,style:d(d(d({},l.style),p),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))});function yz(e){return"indeterminate"===e}function wz(e){return yz(e)?"indeterminate":e?"checked":"unchecked"}bz.displayName="CheckboxBubbleInput";var jz=gz,kz=vz;const Nz=["className"],Sz=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,Nz);return(0,Te.jsx)(jz,d(d({ref:t,className:Gb("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n)},a),{},{children:(0,Te.jsx)(kz,{className:Gb("flex items-center justify-center text-current"),children:(0,Te.jsx)(Cf,{className:"h-4 w-4"})})}))});Sz.displayName=jz.displayName;const _z=["__scopeSwitch","name","checked","defaultChecked","required","disabled","value","onCheckedChange","form"],zz=["__scopeSwitch"],Ez=["__scopeSwitch","control","checked","bubbles"];var Cz="Switch",Pz=Le(Wf(Cz),2),Az=Pz[0],Tz=(Pz[1],Le(Az(Cz),2)),Rz=Tz[0],Oz=Tz[1],Dz=a.forwardRef((e,t)=>
2{const n=e.__scopeSwitch,r=e.name,i=e.checked,s=e.defaultChecked,o=e.required,l=e.disabled,c=e.value,u=void 0===c?"on":c,m=e.onCheckedChange,p=e.form,h=Be(e,_z),f=Le(a.useState(null),2),g=f[0],x=f[1],v=Uf(t,e=>x(e)),b=a.useRef(!1),y=!g||(p||!!g.closest("form")),w=Le(Xf({prop:i,defaultProp:null!==s&&void 0!==s&&s,onChange:m,caller:Cz}),2),j=w[0],k=w[1];return(0,Te.jsxs)(Rz,{scope:n,checked:j,disabled:l,children:[(0,Te.jsx)(lg.button,d(d({type:"button",role:"switch","aria-checked":j,"aria-required":o,"data-state":Lz(j),"data-disabled":l?"":void 0,disabled:l,value:u},h),{},{ref:v,onClick:Lf(e.onClick,e=>{k(e=>!e),y&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})})),y&&(0,Te.jsx)(Fz,{control:g,bubbles:!b.current,name:r,value:u,checked:j,required:o,disabled:l,form:p,style:{transform:"translateX(-100%)"}})]})});Dz.displayName=Cz;var Mz="SwitchThumb",Iz=a.forwardRef((e,t)=>{const n=e.__scopeSwitch,a=Be(e,zz),r=Oz(Mz,n);return(0,Te.jsx)(lg.span,d(d({"data-state":Lz(r.checked),"data-disabled":r.disabled?"":void 0},a),{},{ref:t}))});Iz.displayName=Mz;var Fz=a.forwardRef((e,t)=>{e.__scopeSwitch;let n=e.control,r=e.checked,i=e.bubbles,s=void 0===i||i,o=Be(e,Ez);const l=a.useRef(null),c=Uf(l,t),u=sz(r),m=wk(n);return a.useEffect(()=>{const e=l.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:s});n.call(e,r),e.dispatchEvent(t)}},[u,r,s]),(0,Te.jsx)("input",d(d({type:"checkbox","aria-hidden":!0,defaultChecked:r},o),{},{tabIndex:-1,ref:c,style:d(d(d({},o.style),m),{},{position:"absolute",pointerEvents:"none",opacity:0,margin:0})}))});function Lz(e){return e?"checked":"unchecked"}Fz.displayName="SwitchBubbleInput";var Bz=Dz,qz=Iz;const Uz=["className"],Vz=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,Uz);return(0,Te.jsx)(Bz,d(d({className:Gb("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},a),{},{ref:t,children:(0,Te.jsx)(qz,{className:Gb("pointer-events-none block h-4 w-4 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0")})}))});Vz.displayName=Bz.displayName;var Hz=a.forwardRef((e,t)=>(0,Te.jsx)(lg.label,d(d({},e),{},{ref:t,onMouseDown:t=>{var n;t.target.closest("button, input, select, textarea")||(null===(n=e.onMouseDown)||void 0===n||n.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})));Hz.displayName="Label";var Wz=Hz;const Kz=["class","className"],Gz=e=>"boolean"===typeof e?"".concat(e):0===e?"0":e,Zz=Lv,Yz=(e,t)=>n=>{var a;if(null==(null===t||void 0===t?void 0:t.variants))return Zz(e,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className);const r=t.variants,i=t.defaultVariants,s=Object.keys(r).map(e=>{const t=null===n||void 0===n?void 0:n[e],a=null===i||void 0===i?void 0:i[e];if(null===t)return null;const s=Gz(t)||Gz(a);return r[e][s]}),o=n&&Object.entries(n).reduce((e,t)=>{let n=Le(t,2),a=n[0],r=n[1];return void 0===r||(e[a]=r),e},{}),l=null===t||void 0===t||null===(a=t.compoundVariants)||void 0===a?void 0:a.reduce((e,t)=>{let n=t.class,a=t.className,r=Be(t,Kz);return Object.entries(r).every(e=>{let t=Le(e,2),n=t[0],a=t[1];return Array.isArray(a)?a.includes(d(d({},i),o)[n]):d(d({},i),o)[n]===a})?[...e,n,a]:e},[]);return Zz(e,s,l,null===n||void 0===n?void 0:n.class,null===n||void 0===n?void 0:n.className)},Qz=["className"],$z=Yz("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xz=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,Qz);return(0,Te.jsx)(Wz,d({ref:t,className:Gb($z(),n)},a))});function Jz(e){let t=e.inv,n=e.open,r=e.onClose;const i=Le((0,a.useState)(null),2),s=i[0],o=i[1],l=Le((0,a.useState)({}),2),c=l[0],u=l[1],m=Le((0,a.useState)(!0),2),p=m[0],h=m[1],f=Le((0,a.useState)(!0),2),g=f[0],x=f[1],v=Le((0,a.useState)(!1),2),b=v[0];v[1];(0,a.useEffect)(()=>{n&&t&&(o(null),Ps.get("/care/survey-analysis/".concat(t.token)).then(e=>{var t;const n=(null===(t=e.data)||void 0===t?void 0:t.departments)||[];o(n);const a={};
2n.forEach(e=>{a[e.id]=!e.locked}),u(a),h(!0),x(!0)}).catch(e=>Ia.error(Cs(e))))},[n,t]);const y=e=>{const t={};(s||[]).forEach(n=>{t[n.id]=e&&!n.locked}),u(t)},w=Object.keys(c).filter(e=>c[e]);!b&&(p||w.length);return(0,Te.jsx)(ey,{open:n,onOpenChange:e=>{e||r()},children:(0,Te.jsxs)(ay,{className:"max-w-lg","data-testid":"pdf-wizard",children:[(0,Te.jsx)(ry,{children:(0,Te.jsx)(sy,{children:"PDF-Report exportieren"})}),(0,Te.jsxs)("div",{className:"space-y-5 py-1",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[(0,Te.jsx)(Xz,{className:"text-sm font-semibold",children:"Umfang w\xe4hlen"}),(0,Te.jsxs)("div",{className:"flex gap-2 text-xs",children:[(0,Te.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>y(!0),"data-testid":"pdf-wizard-select-all",children:"Alle"}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:"\xb7"}),(0,Te.jsx)("button",{type:"button",className:"text-primary hover:underline",onClick:()=>y(!1),"data-testid":"pdf-wizard-select-none",children:"Keine"})]})]}),(0,Te.jsxs)("div",{className:"max-h-56 overflow-y-auto rounded-md border border-zinc-200 divide-y divide-zinc-100",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-3 px-3 py-2.5 cursor-pointer hover:bg-zinc-50","data-testid":"pdf-wizard-total",children:[(0,Te.jsx)(Sz,{checked:p,onCheckedChange:e=>h(!!e),"data-testid":"pdf-wizard-total-check"}),(0,Te.jsx)("span",{className:"text-sm font-semibold",children:"Gesamtergebnis"})]}),null===s&&(0,Te.jsxs)("div",{className:"px-3 py-4 text-sm text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(Of,{size:14,className:"animate-spin"})," Abteilungen werden geladen \u2026"]}),(s||[]).map(e=>(0,Te.jsxs)("label",{className:"flex items-center gap-3 px-3 py-2.5 ".concat(e.locked?"opacity-60 cursor-not-allowed":"cursor-pointer hover:bg-zinc-50"),"data-testid":"pdf-wizard-dept-".concat(e.id),children:[(0,Te.jsx)(Sz,{checked:!!c[e.id],disabled:e.locked,onCheckedChange:t=>u(n=>d(d({},n),{},{[e.id]:!!t})),"data-testid":"pdf-wizard-dept-check-".concat(e.id)}),(0,Te.jsx)("span",{className:"text-sm flex-1",children:e.name}),e.locked&&(0,Te.jsxs)("span",{className:"text-[11px] text-amber-600 flex items-center gap-1",children:[(0,Te.jsx)(kw,{size:11})," gesperrt (< 5)"]})]},e.id))]})]}),(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4 rounded-md bg-zinc-50 px-3 py-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)(Xz,{className:"text-sm font-semibold",children:"Antworten einbeziehen"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Positiv/Negativ, Sonstiges und offenes Feedback als Flie\xdftext. Ohne diese Option enth\xe4lt der Report nur Werte, Tachos, \xdcberblick und Zusammenfassung."})]}),(0,Te.jsx)(Vz,{checked:g,onCheckedChange:x,"data-testid":"pdf-wizard-answers-switch"})]})]}),(0,Te.jsxs)(iy,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:r,"data-testid":"pdf-wizard-cancel",children:"Abbrechen"}),(0,Te.jsx)(e_,{label:S_,children:(0,Te.jsxs)(fy,{onClick:void 0,disabled:!1,"data-testid":"pdf-wizard-submit",className:"opacity-60",children:[b?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(N_,{size:16})," PDF erstellen"]})})]})]})})}Xz.displayName=Wz.displayName;const eE=e=>(e||"").replace(/\s+/g,"-").toLowerCase(),tE=(e,t,n)=>n||t;function nE(){const e=Xa().t,t=sn(),n=$_(),r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(""),2),h=p[0],f=p[1],g=Le((0,a.useState)(null),2),x=g[0],v=g[1],b=Le((0,a.useState)(null),2),y=b[0],w=b[1];(0,a.useEffect)(()=>{Ps.get("/invitations").then(e=>s(e.data))},[]);const j=l||u||h,k=i.filter(e=>{if("abgeschlossen"!==e.status)return!1;const t=l.trim().toLowerCase();if(t&&!"".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.label||"").toLowerCase().includes(t))return!1;const n=(e.created_at||"").slice(0,10);return!(u&&(!n||n<u))&&!(h&&(!n||n>h))}),N={};k.forEach(e=>{const t="".concat(e.firma_name,"||").concat(e.branch_name);N[t]||(N[t]={key:t,firma:e.firma_name,name:e.branch_name,is_central:!!e.is_central,items:[]}),N[t].items.push(e)});const S=Object.values(N).sort((e,t)=>
2Number(t.is_central)-Number(e.is_central)||e.firma.localeCompare(t.firma)||e.name.localeCompare(t.name));S.forEach(e=>e.items.sort((e,t)=>(t.ends_at||t.created_at||"").localeCompare(e.ends_at||e.created_at||"")));const _=(0,a.useRef)(!1);(0,a.useEffect)(()=>{_.current||S[0]&&(v(S[0].key),_.current=!0)},[S]);const z=a=>{const r=x===a.key;return(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"auswertung-folder-".concat(eE(a.firma),"-").concat(eE(a.name)),children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>v(r?null:a.key),"data-testid":"auswertung-folder-toggle-".concat(eE(a.firma),"-").concat(eE(a.name)),className:"w-full flex items-center justify-between px-5 py-3.5 bg-zinc-50 hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 font-heading text-base",children:[a.is_central?(0,Te.jsx)(w_,{size:18,className:"text-primary fill-primary shrink-0"}):(0,Te.jsx)(j_,{size:18,strokeWidth:1.5,className:"text-primary shrink-0"}),tE(a.is_central,a.firma,a.name),(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",a.items.length,")"]})]}),(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform duration-200 ".concat(r?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:r&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"p-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"auswertung-folder-body-".concat(eE(a.name)),children:a.items.map(a=>(a=>{const r=a.target>0?Math.min(100,Math.round(a.responses/a.target*100)):null,i=a.answer_stats||{positive:0,negative:0,sonstige:0,feedback:0},s=a.label||tE(a.is_central,a.firma_name,a.branch_name);return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"auswertung-card-".concat(a.token),"data-card-slug":eE(a.label||""),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"auswertung-title-".concat(a.token),children:s})}),a.care_index?(0,Te.jsx)("div",{className:"mt-2 flex justify-center","data-testid":"auswertung-gauge-".concat(a.token),children:(0,Te.jsx)(qS,{value:a.care_index.value,color:a.care_index.color,status:a.care_index.status,segments:a.care_index.segments,size:150})}):a.locked?(0,Te.jsx)("div",{className:"mt-2 flex justify-center","data-testid":"auswertung-gauge-".concat(a.token),children:(0,Te.jsx)(rz,{size:150,testid:"auswertung-locked-gauge-".concat(a.token)})}):null,(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center","data-testid":"auswertung-info-".concat(a.token),children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.teilnehmer",as:"span",children:e("auswertungen.info.teilnehmer")})}),(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2",children:[(0,Te.jsxs)("span",{className:"font-medium tabular-nums",children:[a.responses,a.target>0?"/".concat(a.target):""]}),null!=r&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(Q_(r,n)),"data-testid":"auswertung-rate-".concat(a.token),children:[r,"%"]})]}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.antworten",as:"span",children:e("auswertungen.info.antworten")})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums","data-testid":"auswertung-answers-".concat(a.token),children:(i.positive||0)+(i.negative||0)+(i.sonstige||0)+(i.feedback||0)}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.abgeschlossen",as:"span",children:e("auswertungen.info.abgeschlossen")})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:(o=a.completed_at||a.ends_at,o?new Date(o).toLocaleDateString("de-DE"):"\u2014")}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.laufzeit",as:"span",children:e("auswertungen.info.laufzeit")})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:null!=a.duration_days?"".concat(a.duration_days," ").concat(e("common.days")):"\u2014"}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.zusatzfragen",as:"span",children:e("auswertungen.info.zusatzfragen")})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums","data-testid":"auswertung-customq-".concat(a.token),children:a.custom_count||0})]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,Te.jsxs)(fy,{onClick:()=>t("/analysis/".concat(a.token)),"data-testid":"open-analysis-".concat(a.token),"data-label-slug":eE(a.label||""),children:[(0,Te.jsx)(jw,{size:16})," ",(0,Te.jsx)(cy,{id:"auswertungen.open",as:"span",children:e("auswertungen.open")})]}),(0,Te.jsx)(e_,{className:"w-full",label:S_,children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:void 0,"data-testid":"export-pdf-".concat(a.token),className:"w-full ".concat("opacity-60"),children:[(0,Te.jsx)(N_,{size:16})," ",(0,Te.jsx)(cy,{id:"common.export_pdf",as:"span",children:e("common.export_pdf")})]})})]})]},a.token);var o})(a))})})})]},a.key)};return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:e("auswertungen.title"),titleId:"auswertungen.title",subt
2itle:e("auswertungen.subtitle"),subtitleId:"auswertungen.subtitle"}),(0,Te.jsx)(by,{className:"p-4 mb-6",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end gap-3","data-testid":"auswertung-filters",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.search_label",as:"span",children:e("common.search_label")})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:l,onChange:e=>c(e.target.value),placeholder:e("common.search_placeholder"),className:"pl-9","data-testid":"auswertung-search-input"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_from",as:"span",children:e("common.date_from")})}),(0,Te.jsx)(gy,{type:"date",value:u,onChange:e=>m(e.target.value),"data-testid":"auswertung-filter-from"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_to",as:"span",children:e("common.date_to")})}),(0,Te.jsx)(gy,{type:"date",value:h,onChange:e=>f(e.target.value),"data-testid":"auswertung-filter-to"})]}),j&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{c(""),m(""),f("")},"data-testid":"auswertung-filter-clear",children:[(0,Te.jsx)(Iv,{size:15})," ",e("common.reset")]})]})}),(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"auswertung-heading",children:[(0,Te.jsx)(iz,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:e("auswertungen.completed_heading")}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",k.length,")"]})]}),(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"auswertung-list",children:[0===S.length&&(0,Te.jsx)(by,{className:"p-5","data-testid":"auswertung-empty",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:e("auswertungen.empty")})}),S.map(e=>z(e))]}),(0,Te.jsx)(Jz,{inv:y,open:!!y,onClose:()=>w(null)})]})}const aE=kf("user-plus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]),rE=kf("crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]),iE=kf("power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]),sE=["Person","Tools","Filiale w\xe4hlen","Abteilungen","Nachrichten"],oE=["profiling","boarding"],lE=[{id:"pulse",label:"Pulse"},{id:"analytics",label:"Analytics"},{id:"care",label:"Care"},{id:"profiling",label:"Profiling"},{id:"boarding",label:"Boarding"}].filter(e=>!oE.includes(e.id)),cE=[{id:"umfragen",title:"Umfragen",items:[{id:"survey_started",label:"Umfrage gestartet"},{id:"survey_reminder",label:"Erinnerung"},{id:"survey_extended",label:"Umfrage verl\xe4ngert"},{id:"survey_completed",label:"Abschluss-Report"}]},{id:"status",title:"Status",items:[{id:"daily_status",label:"T\xe4gliche Statusnachricht"}]}],dE=cE.flatMap(e=>e.items.map(e=>e.id)),uE={filiale_ids:[],department_ids:[],tools:[]},mE=lE.map(e=>e.id),pE=e=>e.name||e.firma_name,hE=e=>{let t=e.active,n=e.onClick,a=e.children,r=e.testid;return(0,Te.jsx)("button",{type:"button",onClick:n,"data-testid":r,className:"px-3 py-1.5 rounded-full text-xs border transition-colors ".concat(t?"bg-primary text-white border-primary":"bg-white border-border text-foreground hover:bg-zinc-50"),children:a})},fE=e=>{let t=e.title,n=e.children;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2",children:t}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:n})]})};function gE(e){let t=e.open,n=e.onClose,r=e.filialen,i=void 0===r?[]:r,s=e.departments,o=void 0===s?[]:s,l=e.onSaved,c=e.editUser;const u=!!c,m=Le((0,a.useState)(0),2),p=m[0],h=m[1],f=Le((0,a.useState)(""),2),g=f[0],x=f[1],v=Le((0,a.useState)(""),2),b=v[0],y=v[1],w=Le((0,a.useState)(""),2),j=w[0],k=w[1],N=Le((0,a.useState)(""),2),S=N[0],_=N[1],z=Le((0,a.useState)(""),2),E=z[0],C=z[1],P=Le((0,a.useState)(d({}
2,uE)),2),A=P[0],T=P[1],R=Le((0,a.useState)([...dE]),2),O=R[0],D=R[1],M=Le((0,a.useState)(!1),2),I=M[0],F=M[1],L=u&&["admin","superadmin"].includes(null===c||void 0===c?void 0:c.role);if((0,a.useEffect)(()=>{if(t)if(h(0),c){const e=c.access||{},t=c.profile||{},n=(c.name||"").trim().split(/\s+/).filter(Boolean);x(t.first_name||n[0]||""),y(t.last_name||n.slice(1).join(" ")),k(c.email||""),_(c.position||t.position||""),C(t.phone||"");const a=["admin","superadmin"].includes(c.role)?[...mE]:e.tools||[];T({filiale_ids:e.filiale_ids||[],department_ids:e.department_ids||[],tools:a}),D(Array.isArray(c.notifications)?c.notifications:[])}else x(""),y(""),k(""),_(""),C(""),T(d({},uE)),D([...dE])},[t,c]),!t)return null;const B=(e,t)=>T(n=>d(d({},n),{},{[e]:n[e].includes(t)?n[e].filter(e=>e!==t):[...n[e],t]})),q=[...i].sort((e,t)=>(!0===t.is_central)-(!0===e.is_central)||pE(e).localeCompare(pE(t))),U=q.filter(e=>A.filiale_ids.includes(e.id)),V=/\S+@\S+\.\S+/.test(j),H=()=>0===p?g.trim().length>0&&b.trim().length>0&&(u||V)&&S.trim().length>0:1===p?A.tools.length>0:2!==p||A.filiale_ids.length>0,W=e=>{let t=e.onAll,n=e.onNone,a=e.testid;return(0,Te.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,Te.jsx)("button",{type:"button",onClick:t,className:"text-xs font-medium text-primary hover:underline","data-testid":"".concat(a,"-select-all"),children:"Alle ausw\xe4hlen"}),(0,Te.jsx)("button",{type:"button",onClick:n,className:"text-xs font-medium text-muted-foreground hover:underline","data-testid":"".concat(a,"-reset"),children:"Zur\xfccksetzen"})]})};return(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"user-wizard",onClick:n,children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-xl w-full max-w-2xl max-h-[90vh] overflow-hidden flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"px-6 pt-5 pb-3 border-b border-border",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:u?(0,Te.jsx)(cy,{id:"wizard_user.title_edit",as:"span",children:"Nutzer bearbeiten"}):(0,Te.jsx)(cy,{id:"wizard_user.title_create",as:"span",children:"Nutzer einladen"})}),(0,Te.jsx)("button",{onClick:n,className:"text-muted-foreground hover:text-foreground","data-testid":"user-wizard-close",children:(0,Te.jsx)(Iv,{size:18})})]}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5 mt-4",children:sE.map((e,t)=>(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("div",{className:"h-1.5 rounded-full ".concat(t<=p?"bg-primary":"bg-zinc-200")}),(0,Te.jsx)("p",{className:"text-[10px] mt-1 ".concat(t===p?"text-primary font-semibold":"text-muted-foreground"),children:(0,Te.jsx)(cy,{id:"wizard_user.step.".concat(t),as:"span",children:e})})]},e))})]}),(0,Te.jsxs)("div",{className:"px-6 py-5 overflow-y-auto flex-1","data-testid":"user-wizard-step-".concat(p),children:[0===p&&(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:(0,Te.jsx)(cy,{id:"wizard_user.field.vorname",as:"span",children:"Vorname"})}),(0,Te.jsx)(gy,{value:g,onChange:e=>x(e.target.value),"data-testid":"user-firstname-input",placeholder:"Vorname"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:(0,Te.jsx)(cy,{id:"wizard_user.field.nachname",as:"span",children:"Nachname"})}),(0,Te.jsx)(gy,{value:b,onChange:e=>y(e.target.value),"data-testid":"user-lastname-input",placeholder:"Nachname"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:(0,Te.jsx)(cy,{id:"wizard_user.field.email",as:"span",children:"E-Mail"})}),(0,Te.jsx)(gy,{type:"email",value:j,onChange:e=>k(e.target.value),"data-testid":"user-email",disabled:u,className:u?"opacity-60 cursor-not-allowed":"",placeholder:"[email protected]"}),u&&(0,Te.jsx)("p",{className:"text-[11px] text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"wizard_user.field.email_locked",as:"span",children:"Die E-Mail-Adresse kann nachtr\xe4glich nicht ge\xe4ndert werden."})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:(0,Te.jsx)(cy,{id:"wizard_user.field.position",as:"span",children:"Position"})}),(0,Te.jsx)(gy,{value:S,onChange:e=>_(e.target.value),"data-testid":"user-position-input",placeholder:"z. B. Filialleitung, HR-Manager"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:(0,Te.jsx)(cy,{id:"wizard_user.field.phone",as:"span",children:"Telefon"})}),(0,Te.jsx)(gy,{value:E,onChange:e=>C(e.target.value),"data-testid":"user-phone-input",placeholder:"z. B. +43 660 1234567"})]})]}),1===p&&(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step1.section",as:"span",children:"Welche Tools darf die Person einsehen?"})}),!L&&(0,Te.jsxs)("div",{className:"flex items-center gap-3 shrink-0",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>T(e=>d(d({},e),{},{tools:[...mE]})),className:"text-xs font-medium text-primary hover:underline","data-testid":"user-tools-select-all",children:"Alle au
2sw\xe4hlen"}),(0,Te.jsx)("button",{type:"button",onClick:()=>T(e=>d(d({},e),{},{tools:[]})),className:"text-xs font-medium text-muted-foreground hover:underline","data-testid":"user-tools-reset",children:"Zur\xfccksetzen"})]})]}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:lE.map(e=>(0,Te.jsx)(hE,{active:L||A.tools.includes(e.id),onClick:()=>!L&&B("tools",e.id),testid:"user-tool-".concat(e.id),children:(0,Te.jsx)(cy,{id:"wizard_user.tool.".concat(e.id),as:"span",children:e.label})},e.id))}),L&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"user-tools-admin-hint",children:"Admins/HR haben automatisch Zugriff auf alle Tools \u2013 diese Auswahl ist nicht \xe4nderbar."})]}),2===p&&(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step2.section",as:"span",children:"Filiale w\xe4hlen"})}),q.length>0&&(0,Te.jsx)(W,{testid:"user-filialen",onAll:()=>T(e=>d(d({},e),{},{filiale_ids:q.map(e=>e.id)})),onNone:()=>T(e=>d(d({},e),{},{filiale_ids:[]}))})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2",children:[0===q.length&&(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step2.empty",as:"span",children:"Keine Filialen vorhanden"})}),q.map(e=>(0,Te.jsx)(hE,{active:A.filiale_ids.includes(e.id),onClick:()=>(e=>T(t=>{const n=t.filiale_ids.includes(e),a=n?t.filiale_ids.filter(t=>t!==e):[...t.filiale_ids,e];let r=t.department_ids;if(n){const n=o.filter(t=>t.branch_id===e).map(e=>e.id);r=t.department_ids.filter(e=>!n.includes(e))}return d(d({},t),{},{filiale_ids:a,department_ids:r})}))(e.id),testid:"user-filiale-".concat(e.id),children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[e.is_central&&(0,Te.jsx)(w_,{size:11,className:"fill-current"}),pE(e)]})},e.id))]})]}),3===p&&(0,Te.jsxs)("div",{className:"space-y-5",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step3.intro",as:"span",children:"Welche Abteilungen der gew\xe4hlten Filialen darf die Person einsehen?"})}),U.length>0&&(0,Te.jsx)(W,{testid:"user-depts",onAll:()=>T(e=>d(d({},e),{},{department_ids:[...new Set(o.filter(e=>U.some(t=>t.id===e.branch_id)).map(e=>e.id))]})),onNone:()=>T(e=>d(d({},e),{},{department_ids:[]}))})]}),0===U.length&&(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step3.empty",as:"span",children:"Zuerst eine Filiale w\xe4hlen \u2026"})}),U.map(e=>{const t=o.filter(t=>t.branch_id===e.id);return(0,Te.jsxs)("div",{"data-testid":"user-dept-group-".concat(e.id),children:[(0,Te.jsxs)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2 flex items-center gap-1",children:[e.is_central&&(0,Te.jsx)(w_,{size:11,className:"fill-primary text-primary"}),pE(e)]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2",children:[0===t.length&&(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step3.no_depts",as:"span",children:"Keine Abteilungen"})}),t.map(e=>(0,Te.jsx)(hE,{active:A.department_ids.includes(e.id),onClick:()=>B("department_ids",e.id),testid:"user-dept-".concat(e.id),children:e.name},e.id))]})]},e.id)})]}),4===p&&(0,Te.jsxs)("div",{className:"space-y-5","data-testid":"user-notifications",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"wizard_user.step4.intro",as:"span",children:"Welche Nachrichten soll die Person erhalten?"})}),(0,Te.jsx)(W,{testid:"user-notifs",onAll:()=>D([...dE]),onNone:()=>D([])})]}),cE.map(e=>(0,Te.jsx)(fE,{title:(0,Te.jsx)(cy,{id:"wizard_user.notifgroup.".concat(e.id),as:"span",children:e.title}),children:e.items.map(e=>(0,Te.jsx)(hE,{active:O.includes(e.id),onClick:()=>(e=>D(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]))(e.id),testid:"user-notif-".concat(e.id),children:(0,Te.jsx)(cy,{id:"wizard_user.notif.".concat(e.id),as:"span",children:e.label})},e.id))},e.title))]})]}),(0,Te.jsxs)("div",{className:"px-6 py-4 border-t border-border flex items-center justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>0===p?n():h(p-1),"data-testid":"user-wizard-back","aria-label":0===p?"Abbrechen":"Zur\xfcck",title:0===p?"Abbrechen":"Zur\xfcck",className:"px-3",children:(0,Te.jsx)(Rf,{size:16})}),p<sE.length-1?(0,Te.jsx)(fy,{onClick:()=>H()&&h(p+1),disabled:!H(),"data-testid":"user-wizard-next","aria-label":"Weiter",title:"Weiter",className:"px-3",children:(0,Te.jsx)(Df,{size:16})}):(0,Te.jsx)(fy,{onClick:async()=>{F(!0);try{const e=[...new Set(i.filter(e=>A.filiale_ids.includes(e.id)).map(e=>
2e.firma_id).filter(Boolean))],t={name:"".concat(g.trim()," ").concat(b.trim()).trim(),position:S.trim(),phone:E.trim(),access:d(d({},A),{},{firma_ids:e}),notifications:O};if(u)await Ps.patch("/users/".concat(c.id),t),Ia.success("Nutzer aktualisiert");else{const e=await Ps.post("/users/invite",d(d({},t),{},{email:j.trim()}));"success"===e.data.email_status?Ia.success("Einladung versendet an "+j.trim()):Ia.warning("Nutzer angelegt, E-Mail-Versand fehlgeschlagen: "+(e.data.email_error||""))}l&&l(),n()}catch(sse){Ia.error(Cs(sse))}finally{F(!1)}},disabled:I,"data-testid":"user-wizard-submit",children:I?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," ",(0,Te.jsx)(cy,{id:"wizard_user.saving",as:"span",children:"Speichern \u2026"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Cf,{size:16})," ",u?(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"}):(0,Te.jsx)(cy,{id:"users.send_invite",as:"span",children:"Einladung senden"})]})})]})]})})}const xE=e=>{let t=e.status;const n={pending:["Ausstehend","bg-amber-100 text-amber-700"],active:["Aktiv","bg-green-100 text-green-700"],deactivated:["Deaktiviert","bg-zinc-200 text-zinc-600"]},a=Le(n[t]||n.active,2),r=a[0],i=a[1];return(0,Te.jsx)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded ".concat(i),children:(0,Te.jsx)(cy,{id:"users.status.".concat(t||"active"),as:"span",children:r})})},vE={manager:"F\xfchrungskraft",admin:"Admin / HR",superadmin:"Super-Admin"},bE=e=>{let t=e.onClick,n=e.title,a=e.tipId,r=e.testid,i=e.danger,s=e.children;return(0,Te.jsx)(e_,{id:a,label:n,children:(0,Te.jsx)("button",{type:"button",onClick:t,"aria-label":n,"data-testid":r,className:"w-9 h-9 flex items-center justify-center rounded-md border transition-colors ".concat(i?"border-red-200 text-destructive hover:bg-red-50":"border-border text-foreground hover:bg-zinc-100"),children:s})})};function yE(){const e=Rs().user,t=["admin","superadmin"].includes(null===e||void 0===e?void 0:e.role),n=sn(),r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)([]),2),l=o[0],c=o[1],d=Le((0,a.useState)([]),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=Le((0,a.useState)(null),2),x=g[0],v=g[1],b=Le((0,a.useState)(!1),2),y=b[0],w=b[1],j=Le((0,a.useState)(1),2),k=j[0],N=j[1],S=Le((0,a.useState)(""),2),_=S[0],z=S[1],E=Le((0,a.useState)(!1),2),C=E[0],P=E[1],A=Le((0,a.useState)(!1),2),T=A[0],R=A[1],O=()=>{Ps.get("/users").then(e=>s(e.data)).catch(e=>Ia.error(Cs(e))),Ps.get("/branches").then(e=>c(e.data)).catch(()=>{}),Ps.get("/departments").then(e=>m(e.data)).catch(()=>{})};(0,a.useEffect)(O,[]);const D=i.find(e=>e.is_owner),M=i.filter(e=>e.active&&!e.is_owner),I=!!D&&("superadmin"===e.role||D.id===e.id),F=[...i].sort((e,t)=>(!0===t.is_owner)-(!0===e.is_owner)||(e.name||"").localeCompare(t.name||"")),L=i.find(e=>e.id===_);return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"Nutzerverwaltung",titleId:"users.title",subtitle:"Nutzer einladen, Rechte vergeben und Kontoeigent\xfcmerschaft verwalten",subtitleId:"users.subtitle"}),(0,Te.jsxs)("div",{className:"mb-6 flex flex-wrap justify-end gap-2",children:[I&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{N(1),z(""),R(!1),w(!0)},"data-testid":"transfer-ownership-btn",children:[(0,Te.jsx)(_S,{size:16})," ",(0,Te.jsx)(cy,{id:"users.transfer_owner",as:"span",children:"Eigent\xfcmer \xfcbertragen"})]}),(0,Te.jsxs)(fy,{onClick:()=>{v(null),f(!0)},"data-testid":"open-user-wizard-btn",children:[(0,Te.jsx)(aE,{size:16})," ",(0,Te.jsx)(cy,{id:"users.invite",as:"span",children:"Nutzer einladen"})]})]}),(0,Te.jsx)(gE,{open:h,onClose:()=>f(!1),filialen:l,departments:u,onSaved:O,editUser:x}),(0,Te.jsxs)(by,{className:"p-0 overflow-hidden",children:[(0,Te.jsxs)("div",{className:"hidden sm:flex items-center gap-4 px-5 py-3 bg-zinc-50 text-xs uppercase tracking-wider text-muted-foreground",children:[(0,Te.jsx)("div",{className:"flex-1",children:(0,Te.jsx)(cy,{id:"users.col.user",as:"span",children:"Nutzer"})}),(0,Te.jsx)("div",{className:"w-40",children:(0,Te.jsx)(cy,{id:"users.col.position",as:"span",children:"Position"})}),(0,Te.jsx)("div",{className:"w-32",children:(0,Te.jsx)(cy,{id:"users.col.status",as:"span",children:"Status"})}),(0,Te.jsx)("div",{className:"w-44 text-right",children:(0,Te.jsx)(cy,{id:"users.col.actions",as:"span",children:"Aktionen"})})]}),(0,Te.jsxs)("div",{"data-testid":"users-list",children:[0===F.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground px-5 py-6",children:(0,Te.jsx)(cy,{id:"users.empty",as:"span",children:"Noch keine Nutzer."})}),F.map(n=>{const a=n.id===e.id,r=n.is_owner;return(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-center gap-3 sm:gap-4 px-5 py-4 border-t border-border hover:bg-zinc-50 transition-colors","data-testid":"user-row-".concat(n.id),children:[(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsxs)("div",{className:"font-medium truncate flex items-center gap-2",children:[n.name,n.is_owner&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-[11px] font-semibold px-2 py-0.5 rounded-full bg-[#F3F7EF] text-primary","data-testid":"owner-badge-".concat(n.id),children:[(0,Te.jsx)(rE,{size:12})," ",(0,Te.jsx)(cy,{id:"users.owner_badge",as:"span",children:"Eigent\xfcmer"})]}),a&&(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground",children:"(Sie)"})]}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground truncate",children:n.email})]}),(0,Te.jsx)("div",{className:"sm:w-40 text-sm","data-testid":"user-position-".concat(n.id),children:n.position||vE[n.role]||n.role}),(0,Te.jsx)("div",{className:"sm:w-32",children:(0,Te.jsx)(xE,{status:n.status})}),(0,Te.jsxs)("div",{className:"sm:w-44 flex items-center gap-2 sm:justify-end",children:[t&&(0,Te.jsx)(bE,{onClick:()=>(e=>{v(e),f(!0)})(n),title:"Bearbeiten",tipId:"users.tip_edit",testid:"edit-user-".concat(n.id),children:(0,Te.jsx)(Mf,{size:16})}),(0,Te.jsx)(bE,{onClick:()=>(async e=>{try{await Ps.post("/users/".concat(e.id,"/resend-invite")),Ia.success("Einladung wurde erneut versendet.")}catch(rse){Ia.error(Cs(rse))}})(n),title:"Einladung nochmals senden",tipId:"users.tip_resend_invite",testid:"resend-invite-user-".concat(n.id),children:(0,Te.jsx)(bw,{size:16})}),t&&!r&&!a&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(bE,{onClick:()=>(async e=>{try{await Ps.patch("/users/".concat(e.id),{active:!e.active}),O()}catch(rse){Ia.error(Cs(rse))}})(n),title:n.active?"Deaktivieren":"Aktivieren",tipId:n.active?"users.tip_deactivate":"users.tip_activate",testid:"toggle-active-".concat(n.id),children:(0,Te.jsx)(iE,{size:16})}),(0,Te.jsx)(bE,{onClick:()=>(async e=>{if(window.confirm("Nutzer \u201e".concat(e.name,'" wirklich l\xf6schen?')))try{await Ps.delete("/users/".concat(e.id)),O(),Ia.success("Nutzer gel\xf6scht")}catch(rse){Ia.error(Cs(rse))}})(n),title:"L\xf6schen",tipId:"users.tip_delete",testid:"delete-user-".concat(n.id),danger:!0,children:(0,Te.jsx)(y_,{size:16})})]})]})]},n.id)})]})]}),(0,Te.jsx)(ey,{open:y,onOpenChange:e=>!e&&w(!1),children:(0,Te.jsxs)(ay,{"data-testid":"transfer-ownership-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(_S,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"users.transfer_title",as:"span",children:"Kontoeigent\xfcmerschaft \xfcbertragen"})]}),(0,Te.jsx)(oy,{children:1===k?(0,Te.jsx)(cy,{id:"users.transfer_desc1",as:"span",children:"W\xe4hlen Sie den Mitarbeiter, der k\xfcnftig Kontoeigent\xfcmer sein soll. Es sind nur aktive Nutzer w\xe4hlbar."}):(0,Te.jsx)(cy,{id:"users.transfer_desc2",as:"span",children:"Bitte best\xe4tigen Sie die \xdcbertragung."})})]}),1===k?(0,Te.jsx)("div",{className:"space-y-2",children:0===M.length?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"users.transfer_none",as:"span",children:"Es sind keine geeigneten (aktiven) Nutzer vorhanden."})}
2):(0,Te.jsxs)(vy,{value:_,onChange:e=>z(e.target.value),"data-testid":"transfer-target-select",children:[(0,Te.jsx)("option",{value:"",children:"Neuen Eigent\xfcmer w\xe4hlen \u2026"}),M.map(e=>(0,Te.jsxs)("option",{value:e.id,children:[e.name," \u2014 ",e.email]},e.id))]})}):(0,Te.jsxs)("div",{className:"rounded-md border border-amber-200 bg-amber-50 p-3.5 text-sm text-amber-900 space-y-2",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 font-semibold",children:[(0,Te.jsx)(k_,{size:15})," ",(0,Te.jsx)(cy,{id:"users.transfer_effects",as:"span",children:"Auswirkungen der \xdcbertragung"})]}),(0,Te.jsxs)("ul",{className:"list-disc pl-5 space-y-1",children:[(0,Te.jsxs)("li",{children:[(0,Te.jsx)("strong",{children:null===L||void 0===L?void 0:L.name})," wird neuer ",(0,Te.jsx)("strong",{children:"Kontoeigent\xfcmer"})," (Rolle Admin, voller Zugriff)."]}),(0,Te.jsxs)("li",{children:["Der bisherige Eigent\xfcmer ",(0,Te.jsx)("strong",{children:null===D||void 0===D?void 0:D.name})," wird zur ",(0,Te.jsx)("strong",{children:"F\xfchrungskraft"})," herabgestuft und verliert seine Admin-Rechte."]}),(0,Te.jsx)("li",{children:(0,Te.jsx)(cy,{id:"users.transfer_effect_mail",as:"span",children:"Beide Parteien werden per E-Mail informiert."})})]})]}),2===k&&(0,Te.jsxs)("label",{className:"mt-3 flex items-start gap-2.5 cursor-pointer select-none rounded-md border border-border p-3 hover:bg-zinc-50","data-testid":"transfer-ack-label",children:[(0,Te.jsx)("input",{type:"checkbox",checked:T,onChange:e=>R(e.target.checked),"data-testid":"transfer-ack-checkbox",className:"mt-0.5 h-4 w-4 accent-primary"}),(0,Te.jsx)("span",{className:"text-sm text-foreground",children:(null===D||void 0===D?void 0:D.id)===e.id?(0,Te.jsx)(cy,{id:"users.transfer_ack_owner",as:"span",children:"Mir ist bewusst, dass ich meine Admin-Rechte verliere und danach nur noch F\xfchrungskraft (Nutzer) bin. Diese Aktion kann ich nicht r\xfcckg\xe4ngig machen."}):(0,Te.jsx)(cy,{id:"users.transfer_ack_admin",as:"span",children:"Ich best\xe4tige die \xdcbertragung der Kontoeigent\xfcmerschaft."})})]}),(0,Te.jsx)(iy,{children:1===k?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>w(!1),"data-testid":"transfer-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{onClick:()=>N(2),disabled:!_,"data-testid":"transfer-continue",children:(0,Te.jsx)(cy,{id:"common.next",as:"span",children:"Weiter"})})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>N(1),"data-testid":"transfer-back",children:(0,Te.jsx)(cy,{id:"common.back",as:"span",children:"Zur\xfcck"})}),(0,Te.jsxs)(fy,{onClick:async()=>{if(_){P(!0);try{const t=await Ps.post("/users/".concat(_,"/transfer-ownership"));Ia.success("Kontoeigent\xfcmerschaft \xfcbertragen."),w(!1),t.data.old_owner_id===e.id&&"superadmin"!==e.role?n("/dashboard"):O()}catch(rse){Ia.error(Cs(rse))}finally{P(!1)}}},disabled:C||!T,"data-testid":"transfer-confirm",children:[(0,Te.jsx)(_S,{size:16})," ",(0,Te.jsx)(cy,{id:"users.transfer_owner",as:"span",children:"Eigent\xfcmer \xfcbertragen"})]})]})})]})})]})}const wE=kf("save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]),jE=["GEN","A01","A02","A03","A04","A05","B01","B02","B03","B04","B05","B06","B07"];function kE(){const e=Xa().t,t=Le((0,a.useState)(null),2),n=t[0],r=t[1],i=Le((0,a.useState)(!1),2),s=i[0],o=i[1];if((0,a.useEffect)(()=>{Ps.get("/care/config").then(e=>r(e.data)).catch(e=>Ia.error(Cs(e)))},[]),!n)return(0,Te.jsx)(FS,{});const l=(e,t,a)=>{r(d(d({},n),{},{thresholds:d(d({},n.thresholds),{},{[e]:d(d({},n.thresholds[e]),{},{[t]:parseFloat(a)||0})})}))},c=(e,t,a,i)=>{r(d(d({},n),{},{[e]:d(d({},n[e]),{},{[t]:d(d({},n[e][t]),{},{[a]:i})})}))};return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:e("settings.title"),titleId:"settings.title",subtitle:e("settings.subtitle"),subtitleId:"settings.subtitle",actions:(0,Te.jsxs)(fy,{onClick:async()=>{o(!0);try{await Ps.put("/care/config",{thresholds:n.thresholds,headings:n.headings,descriptions:n.descriptions}),Ia.success(e("settings.saved"))}catch(rse){Ia.error(Cs(rse))}finally{o(!1)}},disabled:s,"data-testid":"settings-save",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:e("common.save")})]})}),(0,Te.jsxs)(by,{className:"p-5 mb-6",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2 mb-1",children:[(0,Te.jsx)(dS,{size:18,className:"brand-green"})," ",e("settings.thresholds")]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:e("settings.thresholdsHint")}),(0,Te.jsx)("div",{className:"grid sm:grid-cols-3 gap-4",children:["A","B","GEN"].map(t=>(0,Te.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Te.jsx)("p",{className:"font-semibold mb-3",children:"A"===t?"Aufgaben (A01\u2013A05)":"B"===t?"Beziehung (B01\u2013B07)":"General Question"}),(0,Te.jsx)("label",{className:"block text-xs text-muted-foreground mb-1",children:e("settings.red")}),(0,Te.jsx)(gy,{type:"number",step:"0.0001",value:n.thresholds[t].red,onChange:e=>l(t,"red",e.target.value),"data-testid":"threshold-".concat(t,"-red"),className:"mb-3"}),(0,Te.jsx)("label",{className:"block text-xs text-muted-foreground mb-1",children:e("settings.orange")}),(0,Te.jsx)(gy,{type:"number",step:"0.0001",value:n.thresholds[t].orange,onChange:e=>l(t,"orange",e.target.value),"data-testid":"threshold-".concat(t,"-orange")}),(0,Te.jsxs)("div",{className:"mt-3 flex gap-1 h-2 rounded overflow-hidden",children:[(0,Te.jsx)("div",{style:{background:"#FF0000",width:"".concat(n.thresholds[t].red,"%")}}),(0,Te.jsx)("div",{style:{background:"#FFC000",width:"".concat(n.thresholds[t].orange-n.thresholds[t].red,"%")}}),(0,Te.jsx)("div",{style:{background:"#00B050",flex:1}})]})]},t))})]}),(0,Te.jsxs)(by,{className:"p-5",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg mb-4",children:e("settings.texts")}),(0,Te.jsx)("div",{className:"space-y-5",children:jE.map(t=>{var a,r,i,s;return(0,Te.jsxs)("div",{className:"border border-border rounded-md p-4",children:[(0,Te.jsx)("div",{className:"flex items-center gap-2 mb-3",children:(0,Te.jsx)("span",{className:"text-xs font-bold uppercase tracking-wider px-2 py-0.5 rounded bg-accent text-accent-foreground",children:t})}),(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"block text-xs text-muted-foreground mb-1",children:[e("settings.heading")," (DE)"]}),(0,Te.jsx)(gy,{value:(null===(a=n.headings[t])||void 0===a?void 0:a.de)||"",onChange:e=>c("headings",t,"de",e.target.value),"data-testid":"heading-".concat(t,"-de"),className:"mb-2"}),(0,Te.jsxs)("label",{className:"block text-xs text-muted-foreground mb-1",children:[e("settings.heading")," (EN)"]}),(0,Te.jsx)(gy,{value:(null===(r=n.headings[t])||void 0===r?void 0:r.en)||"",onChange:e=>c("headings",t,"en",e.target.value)})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"block text-xs text-muted-foreground mb-1",children:[e("settings.description")," (DE)"]}),(0,Te.jsx)(xy,{rows:2,value:(null===(i=n.descriptions[t])||void 0===i?void 0:i.de)||"",onChange:e=>c("descriptions",t,"de",e.target.value),"data-testid":"desc-".concat(t,"-de"),className:"mb-2"}),(0,Te.jsxs)("label",{className:"block text-xs text-muted-foreground mb-1",children:[e("settings.description")," (EN)"]}),(0,Te.jsx)(xy,{rows:2,value:(null===(s=n.descriptions[t])||void 0===s?void 0:s.en)||"",onChange:e=>c("descriptions",t,"en",e.target.value)})]})]})]},t)})})]})]})}function NE(e){let t=e.open,n=e.children,a=e.className,r=void 0===a?"":a,i=e.testid;return(0,Te.jsx)("div",{"data-testid":i,"data-state":t?"open":"closed",className:"grid transition-[grid-template-rows] duration-300 ease-in-out ".concat(t?"grid-rows-[1fr]":"grid-rows-[0fr]"," ").concat(r),children:(0,Te.jsx)("div",{className:"overflow-hidden min-h-0",children:n})})}const SE=kf("receipt-text",[["path",{d:"M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z",key:"q3az6g"}],["path",{d:"M14 8H8",key:"1l3xfs"}],["path",{d:"M16 12H8",key:"1fr5h0"}
2],["path",{d:"M13 16H8",key:"wsln4y"}]]),_E=kf("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),zE=kf("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),EE={invoice:"bg-zinc-100 text-zinc-700",credit_note:"bg-emerald-100 text-emerald-700",cancellation:"bg-red-100 text-red-700"};function CE(){var e;const t=Le((0,a.useState)(null),2),n=t[0],r=t[1],i=Le((0,a.useState)(""),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],d=l[1];(0,a.useEffect)(()=>{Ps.get("/billing/my-documents").then(e=>r(e.data)).catch(()=>r({has_billing:!1,documents:[]}))},[]);const u=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",m=(null===n||void 0===n||null===(e=n.documents)||void 0===e?void 0:e.length)||0;return(0,Te.jsxs)(Te.Fragment,{children:[n&&n.locked&&(0,Te.jsxs)("div",{className:"max-w-3xl mt-6 rounded-xl border-2 border-red-300 bg-red-50 p-4 flex items-start gap-3","data-testid":"billing-lock-banner",children:[(0,Te.jsx)(SE,{size:18,className:"text-red-600 mt-0.5"}),(0,Te.jsxs)("div",{className:"text-sm text-red-800",children:[(0,Te.jsx)("b",{children:(0,Te.jsx)(cy,{id:"billing.docs.lock_title",as:"span",children:"Zugang zu den kostenpflichtigen Funktionen gesperrt."})})," ",(0,Te.jsx)(cy,{id:"billing.docs.lock_body",as:"span",children:"Es besteht eine \xfcberf\xe4llige Rechnung. Bitte begleichen Sie den offenen Betrag \u2013 nach Zahlungseingang wird Ihr Zugang automatisch wieder freigeschaltet."})]})]}),(0,Te.jsxs)(by,{className:"p-4 sm:p-6 max-w-3xl mt-6","data-testid":"billing-documents-card",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>d(e=>!e),"data-testid":"billing-documents-toggle","aria-expanded":c,className:"w-full flex items-center justify-between gap-2 text-left",children:[(0,Te.jsxs)("span",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(SE,{size:14})," ",(0,Te.jsx)(cy,{id:"billing.docs.section_title",as:"span",children:"Rechnungen, Gutschriften & Stornos"}),m>0&&(0,Te.jsx)("span",{className:"ml-1 inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 rounded-full bg-muted text-[10px] font-semibold text-muted-foreground","data-testid":"billing-documents-count",children:m})]}),c?(0,Te.jsx)(_E,{size:18,className:"text-muted-foreground shrink-0"}):(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground shrink-0"})]}),(0,Te.jsx)(NE,{open:c,children:(0,Te.jsx)("div",{className:"mt-4",children:n?0===m?(0,Te.jsx)("p",{className:"py-4 text-sm text-muted-foreground","data-testid":"billing-documents-empty",children:(0,Te.jsx)(cy,{id:"billing.docs.empty",as:"span",children:"Noch keine Belege vorhanden. Sobald eine Rechnung ausgestellt wurde, erscheint sie hier."})}):(0,Te.jsxs)("div",{className:"overflow-x-auto",children:[(0,Te.jsxs)("table",{className:"w-full text-sm","data-testid":"billing-documents-table",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-xs uppercase tracking-wider text-muted-foreground border-b border-border",children:[(0,Te.jsx)("th",{className:"py-2 pr-3",children:(0,Te.jsx)(cy,{id:"billing.docs.col_doc",as:"span",children:"Beleg"})}),(0,Te.jsx)("th",{className:"py-2 pr-3",children:(0,Te.jsx)(cy,{id:"billing.docs.col_date",as:"span",children:"Datum"})}),(0,Te.jsx)("th",{className:"py-2 pr-3 text-right",children:(0,Te.jsx)(cy,{id:"billing.docs.col_amount",as:"span",children:"Betrag"})}),(0,Te.jsx)("th",{className:"py-2 pr-3",children:(0,Te.jsx)(cy,{id:"billing.docs.col_status",as:"span",children:"Status"})}),(0,Te.jsx)("th",{className:"py-2"})]})}),(0,Te.jsx)("tbody",{children:n.documents.map(e=>{const t=(e=>"credit_note"===e.doc_type?{t:"Gutschrift",c:"text-emerald-700"}:"cancellation"===e.doc_type?{t:"Storno",c:"text-red-700"}:"paid"===e.status?{t:"Bezahlt",c:"text-emerald-700"}:"cancelled"===e.status?{t:"Storniert",c:"text-red-700"}:e.due_date&&new Date(e.due_date)<new Date?{t:"\xdcberf\xe4llig",c:"text-red-700 font-semibold"}:{t:"Offen",c:"text-amber-700"})(e);return(0,Te.jsxs)("tr",{className:"border-b border-border/60","data-testid":"billing-doc-row-".concat(e.id),children:[(0,Te.jsxs)("td",{className:"py-2.5 pr-3",children:[(0,Te.jsx)("span",{className:"inline-block px-2 py-0.5 rounded text-[11px] font-semibold mr-2 ".concat(EE[e.doc_type]||EE.invoice),children:e.doc_type_label}),(0,Te.jsx)("span",{className:"font-medium",children:e.number}),e.ref_number&&(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground",children:[" \u2192 ",e.ref_number]})]}),(0,Te.jsx)("td",{className:"py-2.5 pr-3 text-muted-foreground",children:u(e.issue_date)}),(0,Te.jsxs)("td",{className:"py-2.5 pr-3 text-right tabular-nums ".concat(e.gross<0?"text-red-700":""),children:[e.gross<0?"\u2212":"",(n=e.gross,"\u20ac "+Math.abs(Number(n||0)).toLocaleStr
2ing("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2}))]}),(0,Te.jsx)("td",{className:"py-2.5 pr-3 ".concat(t.c),children:t.t}),(0,Te.jsx)("td",{className:"py-2.5 text-right",children:(0,Te.jsx)(e_,{id:"billing.docs.pdf_open",label:"PDF \xf6ffnen",children:(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"billing-doc-pdf-".concat(e.id),disabled:s===e.id,onClick:()=>(async e=>{o(e);try{const t=await Ps.get("/billing/my-documents/".concat(e,"/pdf"),{responseType:"blob"});window.open(URL.createObjectURL(t.data),"_blank")}catch(rse){Ia.error(Cs(rse))}finally{o("")}})(e.id),children:s===e.id?(0,Te.jsx)(Of,{size:14,className:"animate-spin"}):(0,Te.jsx)(zE,{size:14})})})})]},e.id);var n})})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:(0,Te.jsx)(cy,{id:"billing.docs.agb_note",as:"span",children:"Alle per E-Mail versendeten, buchhaltungsrelevanten Belege. Es gelten unsere Allgemeinen Gesch\xe4ftsbedingungen."})})]}):(0,Te.jsx)("div",{className:"py-6 text-center text-muted-foreground",children:(0,Te.jsx)(Of,{className:"animate-spin inline",size:18})})})})]})]})}function PE(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(""),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],u=()=>Ps.get("/payments/card").then(e=>n(e.data)).catch(()=>n({card:null,auto_charge:!1}));(0,a.useEffect)(()=>{u()},[]);const m=null===t||void 0===t?void 0:t.card;return(0,Te.jsxs)(by,{className:"p-4 sm:p-6 max-w-3xl mt-6","data-testid":"billing-payment-method-card",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),"data-testid":"billing-payment-method-toggle","aria-expanded":l,className:"w-full flex items-center justify-between gap-2 text-left",children:[(0,Te.jsxs)("span",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(zf,{size:14})," Wiederkehrende Zahlung",t&&t.auto_charge&&(0,Te.jsx)("span",{className:"ml-1 inline-flex items-center rounded-full bg-[#75A33D]/10 text-[#75A33D] text-[10px] font-semibold px-2 py-0.5","data-testid":"billing-auto-charge-badge",children:"aktiv"})]}),l?(0,Te.jsx)(_E,{size:18,className:"text-muted-foreground shrink-0"}):(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground shrink-0"})]}),(0,Te.jsx)(NE,{open:l,children:(0,Te.jsx)("div",{className:"mt-4",children:t?m?(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"billing-card-info",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-border bg-muted/30 p-4",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)(zf,{size:22,className:"text-[#75A33D]"}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("p",{className:"text-sm font-semibold capitalize","data-testid":"billing-card-brand",children:[m.brand||m.card_brand," \u2022\u2022\u2022\u2022 ",m.last4||m.card_last4]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:"sepa_debit"===m.type?(0,Te.jsx)(cy,{id:"billing.card.sepa_active",as:"span",children:"SEPA-Lastschriftmandat aktiv"}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(cy,{id:"billing.card.valid_until",as:"span",children:"G\xfcltig bis"})," ",m.exp||m.card_exp]})})]})]}),(0,Te.jsx)(e_,{id:"billing.card.remove",label:"Zahlungsmethode entfernen",children:(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5",onClick:async()=>{if(window.confirm("Zahlungsmethode wirklich entfernen? Der Auto-Einzug wird dadurch deaktiviert.")){s("remove");try{await Ps.delete("/payments/card"),Ia.success("Zahlungsmethode entfernt."),await u()}catch(rse){Ia.error(Cs(rse))}finally{s("")}}},disabled:"remove"===i,"data-testid":"billing-remove-card-btn",children:"remove"===i?(0,Te.jsx)(Of,{size:14,className:"animate-spin"}):(0,Te.jsx)(y_,{size:14})})})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between rounded-xl border border-border p-4",children:[(0,Te.jsxs)("div",{className:"flex items-start gap-3",children:[(0,Te.jsx)(dS,{size:18,className:t.auto_charge?"text-[#75A33D] mt-0.5":"text-muted-foreground mt-0.5"}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("p",{className:"text-sm font-semibold",children:["Auto-Einzug ",t.auto_charge?"aktiv":"inaktiv"]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:t.auto_charge?"sepa_debit"===m.type?"Offene Rechnungen werden per SEPA-Lastschrift eingezogen (Gutschrift kann einige Bankarbeitstage dauern).":"Offene Rechnungen werden automatisch von der hinterlegten Karte eingezogen.":"Offene Rechnungen werden erst nach Aktivierung automatisch eingezogen."})]})]}),(0,Te.jsx)(Vz,{checked:!!t.auto_charge,disabled:"toggle"===i,onCheckedChange:async e=>{s("toggle");try{const t=await Ps.post("/payments/auto-charge",{enabled:e});n(e=>d(d({},e),{},{auto_charge:t.data.auto_charge})),Ia.success(e?"Auto-Einzug aktiviert.":"Auto-Einzug deaktiviert.")}catch(rse){Ia.error(Cs(rse))}finally{s("")}},"data-testid":"billing-auto-charge-switch"})]})]}):(0,Te.jsxs)("div",{"data-testid":"billing-no-card",children:[(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mb-4",children:["Hinterlegen Sie eine Zahlungsmethode",t.sepa_allowed?" (Kreditkarte oder SEPA-Lastschrift)":"",", damit offene Rechnungen bei aktiviertem Auto-Einzug automatisch und sicher eingezogen werden k\xf6nnen."]}),!t.sepa_allowed&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-4 -mt-2","data-testid":"billing-card-only-hint",children:"Hinweis: F\xfcr Ihr Land ist die SEPA-Lastschrift nicht verf\xfcgbar \u2013 die Zahlung erfolgt per Kreditkarte."}),(0,Te.jsxs)(fy,{onClick:async()=>{s("add");try{const e=await Ps.post("/payments/setup-card",{origin_url:window.location.origin});window.location.href=e.data.url}catch(rse){Ia.error(Cs(rse)),s("")}},disabled:"add"===i,"data-testid":"billing-add-card-btn",children:["add"===i?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(zf,{size:16})," Zahlungsmethode hinterlegen"]})]}):(0,Te.jsx)("div",{className:"py-6 text-center text-muted-foreground",children:(0,Te.jsx)(Of,{className:"animate-spin inline",size:18})})})})]})}const AE={company:"",street:"",zip:"",city:"",address:"",vat_id:"",invoice_email:"",contact:"",country:"AT"};function TE(){const e=(0,a.useRef)(null),t=(0,a.useRef)(null),n=Le(ya(),1)[0].get("product"),r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(null),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=(0,a.useRef)(null),x=(0,a.useRef)(""),v=(0,a.useRef)(!1),b="".concat("https://login.persentis.com","/api/tools/preisrechner?portal=1").concat(n?"&preselect=".concat(encodeURIComponent(n)):""),y=()=>{try{t.current&&e.current&&e.current.contentWindow&&e.current.contentWindow.postMessage({persentisPlan:t.current},"*")}catch(rse){}},w=()=>{Ps.get("/billing/plan").then(e=>{t.current=e.data,y()}).catch(()=>{})};(0,a.useEffect)(()=>{w();const t=()=>{"visible"===document.visibilityState&&w()};window.addEventListener("focus",w),document.addEventListener("visibilitychange",t);const n=t=>{if(e.current&&t.source===e.current.contentWindow){if(t.data&&"number"===typeof t.data.persentisHeight&&(e.current.style.height=t.data.persentisHeight+"px"),t.data&&t.data.persentisSelection&&(g.current=t.data.persentisSelection,s(t.data.persentisSelection),v.current=!1,m(null)),t.data&&t.data.persentisRenew){const e=t.data.persentisRenew;Ia.loading("Verl\xe4ngerung wird vorbereitet \u2026",{id:"self-order"}),(async()=>{try{const t=await Ps.post("/payments/product-checkout",{products:[e.key],employees:e.employees,prepay:!!e.prepay,origin_url:window.location.origin,voucher_code:v.current?x.current:void 0});t.data&&t.data.checkout_url?window.location.href=t.data.checkout_url:(Ia.dismiss("self-order"),Ia.error("Checkout konnte nicht gestartet werden."))}catch(sse){Ia.dismiss("self-order"),Ia.error(Cs(sse))}})()}if(t.data&&t.data.persentisCheckout){const e=t.data.persentisCheckout;Ia.loading("Bestellung wird vorbereitet \u2026",{id:"self-order"}),(async()=>{try{const t=await Ps.post("/payments/product-checkout",{products:e.products,employees:e.employees,prepay:!!e.prepay,origin_url:window.location.origin,voucher_code:v.current?x.current:void 0});t.data&&t.data.checkout_url?window.location.href=t.data.checkout_url:(Ia.dismiss("self-order"),Ia.error("Checkout konnte nicht gestartet werden."))}catch(sse){Ia.dismiss("self-order"),Ia.error(Cs(sse))}})()}}};
2return window.addEventListener("message",n),()=>{window.removeEventListener("message",n),window.removeEventListener("focus",w),document.removeEventListener("visibilitychange",t)}},[]);const j=async()=>{const e=l.trim();if(!e)return;const t=g.current;if(t&&t.products&&t.products.length){f(!0);try{const n=(await Ps.post("/vouchers/validate",{code:e,net_amount:t.monthly,products:t.products})).data||{};m(n),v.current=!!n.valid,x.current=e,n.valid&&Ia.success("Gutschein g\xfcltig \u2013 Rabatt wird beim Kauf ber\xfccksichtigt.")}catch(sse){m({valid:!1,reason:Cs(sse)}),v.current=!1}finally{f(!1)}}else Ia.error("Bitte w\xe4hlen Sie zuerst mindestens ein Produkt im Rechner.")},k=e=>"\u20ac ".concat(Number(e||0).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2}));return(0,Te.jsxs)(by,{className:"p-4 sm:p-6 max-w-3xl mt-6","data-testid":"billing-price-calculator",children:[(0,Te.jsxs)("p",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground mb-4 flex items-center gap-2",children:[(0,Te.jsx)(jS,{size:14})," Preisrechner & Verl\xe4ngerung"]}),(0,Te.jsx)("iframe",{ref:e,title:"PERSENTIS Preisrechner",src:b,scrolling:"no","data-testid":"billing-price-calculator-iframe",onLoad:y,style:{width:"100%",height:640,border:0,overflow:"hidden",borderRadius:8,background:"#fff"}}),(0,Te.jsxs)("div",{className:"mt-5 pt-5 border-t","data-testid":"billing-voucher-section",children:[(0,Te.jsxs)("p",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[(0,Te.jsx)(gS,{size:15})," ",(0,Te.jsx)(cy,{id:"billing.voucher.title",as:"span",children:"Gutschein-Code"})]}),(0,Te.jsxs)("div",{className:"flex gap-2 max-w-md",children:[(0,Te.jsx)(gy,{"data-testid":"billing-voucher-input",value:l,onChange:e=>{c(e.target.value.toUpperCase()),u&&(m(null),v.current=!1)},placeholder:"z. B. WELCOME10",onKeyDown:e=>{"Enter"===e.key&&j()}}),u&&u.valid?(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>{c(""),m(null),v.current=!1,x.current=""},"data-testid":"billing-voucher-clear",children:"Entfernen"}):(0,Te.jsxs)(fy,{onClick:j,disabled:h||!l.trim(),"data-testid":"billing-voucher-check",children:[h&&(0,Te.jsx)(Of,{size:15,className:"mr-1 animate-spin"}),"Pr\xfcfen"]})]}),u&&(u.valid?(0,Te.jsxs)("div",{className:"mt-2 text-sm text-emerald-700 font-medium","data-testid":"billing-voucher-ok",children:["Rabatt ","percent"===u.type?"".concat(u.value," %"):k(u.value),": \u2212",k(u.discount),i&&i.monthly?" \u2192 neuer Netto-Monatspreis ".concat(k(u.net_after)):""]}):(0,Te.jsx)("div",{className:"mt-2 text-sm text-red-600 font-medium","data-testid":"billing-voucher-err",children:u.reason}))]})]})}function RE(){const e=Xa().t,t=Rs().user,n=Le((0,a.useState)(AE),2),r=n[0],i=n[1],s=Le((0,a.useState)(AE),2),o=s[0],l=s[1],c=Le((0,a.useState)(!1),2),u=c[0],m=c[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=Le(ya(),1)[0];(0,a.useEffect)(()=>{const e=g.get("product");if(e){const t={care:"PERSENTIS Care",analytics:"PERSENTIS Analytics",pulse:"PERSENTIS Pulse"};Ia.info("Bitte aktivieren Sie ".concat(t[e]||"das Produkt"," im Bestellrechner, um es zu nutzen."))}},[]),(0,a.useEffect)(()=>{Ps.get("/billing/my-company").then(e=>{const t={company:e.data.company||"",street:e.data.street||"",zip:e.data.zip||"",city:e.data.city||"",address:e.data.address||"",vat_id:e.data.vat_id||"",invoice_email:e.data.invoice_email||"",contact:e.data.contact||"",country:e.data.country||"AT"};if(!t.street&&!t.zip&&!t.city&&t.address){const e=Py(t.address);t.street=e.street,t.zip=e.zip,t.city=e.city}i(t),l(t)}).catch(()=>{}).finally(()=>m(!0))},[]);const x=(e,t)=>i(n=>d(d({},n),{},{[e]:t})),v=JSON.stringify(r)!==JSON.stringify(o);return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:e("billing.title"),titleId:"billing.title"}),(0,Te.jsxs)(by,{className:"p-6 max-w-3xl","data-testid":"invoice-card",children:[(0,Te.jsxs)("p",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground mb-4 flex items-center gap-2",children:[(0,Te.jsx)(pS,{size:14})," ",e("billing.invoiceAddress")]}),u?(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsx)(wy,{label:"Unternehmen",children:(0,Te.jsx)(gy,{value:r.company,onChange:e=>x("company",e.target.value),"data-testid":"invoice-company"})}),(0,Te.jsx)(wy,{label:"Stra\xdfe & Hausnummer",children:(0,Te.jsx)(gy,{value:r.street,onChange:e=>x("street",e.target.value),placeholder:"Musterstra\xdfe 1","data-testid":"invoice-street"})}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:[(0,Te.jsx)(wy,{label:"PLZ",children:(0,Te.jsx)(gy,{value:r.zip,onChange:e=>x("zip",e.target.value),placeholder:"1010","data-testid":"invoice-zip"})}),(0,Te.jsx)("div",{className:"sm:col-span-2",children:(0,Te.jsx)(wy,{label:"Ort",children:(0,Te.jsx)(gy,{value:r.city,onChange:e=>x("city",e.target.value),placeholder:"Wien","data-testid":"invoice-city"})})})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(wy,{label:"Land",children:(0,Te.jsxs)(vy,{value:r.country,onChange:e=>x("country",e.target.value),"data-testid":"invoice-country",children:[(0,Te.jsx)("option",{value:"",children:"\u2014"}),Ey.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))]})}),(0,Te.jsx)(wy,{label:"UID / USt-IdNr.",children:(0,Te.jsx)(gy,{value:r.vat_id,onChange:e=>x("vat_id",e.target.value),"data-testid":"invoice-uid"})})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(wy,{label:"Rechnungs-E-Mail",children:(0,Te.jsx)(gy,{type:"email",value:r.
2invoice_email,onChange:e=>x("invoice_email",e.target.value),placeholder:"rechnung@\u2026","data-testid":"invoice-email"})}),(0,Te.jsx)(wy,{label:"Ansprechpartner",children:(0,Te.jsx)(gy,{value:r.contact,onChange:e=>x("contact",e.target.value),"data-testid":"invoice-contact"})})]})]}):(0,Te.jsx)("div",{className:"py-6 text-center text-muted-foreground",children:(0,Te.jsx)(Of,{className:"animate-spin inline",size:18})}),(0,Te.jsx)("div",{className:"flex justify-end",style:{marginTop:"30px"},children:(0,Te.jsxs)(fy,{onClick:async()=>{if(v){f(!0);try{const t=d(d({},r),{},{address:Cy(r.street,r.zip,r.city)});await Ps.put("/billing/my-company",t),l(d(d({},r),{},{address:t.address})),i(e=>d(d({},e),{},{address:t.address})),Ia.success(e("common.saved"))}catch(rse){Ia.error(Cs(rse))}finally{f(!1)}}},disabled:h||!v||!u,"data-testid":"invoice-save",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:e("common.save")})]})})]}),(0,Te.jsx)(CE,{}),"admin"===(null===t||void 0===t?void 0:t.role)&&(0,Te.jsx)(PE,{}),(0,Te.jsx)(TE,{})]})}const OE=kf("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]),DE=kf("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]),ME=kf("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]),IE=kf("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]),FE=kf("pilcrow",[["path",{d:"M13 4v16",key:"8vvj80"}],["path",{d:"M17 4v16",key:"7dpous"}],["path",{d:"M19 4H9.5a4.5 4.5 0 0 0 0 9H13",key:"sh4n9v"}]]),LE=kf("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]),BE=kf("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]),qE=kf("unlink",[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]]),UE=kf("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),VE=["#111827","#6b7280","#75A33D","#dc2626","#2563eb","#d97706"],HE=e=>{let t=e.onClick,n=e.title,a=e.active,r=e.children;return(0,Te.jsx)("button",{type:"button",title:n,onMouseDown:e=>e.preventDefault(),onClick:t,className:"w-8 h-8 flex items-center justify-center rounded hover:bg-zinc-200 transition-colors ".concat(a?"bg-zinc-200":""),children:r})};const WE=function(e){let t=e.value,n=e.onChange,r=e.onUploadImage,i=e.placeholder,s=void 0===i?"Text eingeben \u2026":i;const o=(0,a.useRef)(null),l=(0,a.useRef)(null);(0,a.useEffect)(()=>{o.current&&o.current.innerHTML!==(t||"")&&document.activeElement!==o.current&&(o.current.innerHTML=t||"")},[t]);const c=()=>n(o.current?o.current.innerHTML:""),d=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;document.execCommand(e,!1,n),null===(t=o.current)||void 0===t||t.focus(),c()},u=e=>d("formatBlock",e);return(0,Te.jsxs)("div",{className:"border border-border rounded-lg overflow-hidden bg-white","data-testid":"rich-text-editor",children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-0.5 px-2 py-1.5 border-b border-border bg-zinc-50",children:[(0,Te.jsx)(HE,{onClick:()=>d("bold"),title:"Fett",children:(0,Te.jsx)(OE,{size:15})}),(0,Te.jsx)(HE,{onClick:()=>d("italic"),title:"Kursiv",children:(0,Te.jsx)(DE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-5 bg-border mx-1"}),(0,Te.jsx)(HE,{onClick:()=>u("h2"),title:"\xdcberschrift 2",children:(0,Te.jsx)(ME,{size:15})}),(0,Te.jsx)(HE,{onClick:()=>u("h3"),title:"\xdcberschrift 3",children:(0,Te.jsx)(IE,{size:15})}),(0,Te.jsx)(HE,{onClick:()=>u("p"),title:"Absatz",children:(0,Te.jsx)(FE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-5 bg-border mx-1"}),(0,Te.jsx)(HE,{onClick:()=>d("insertUnorderedList"),title:"Aufz\xe4hlung",children:(0,Te.jsx)(LE,{size:15})}),(0,Te.jsx)(HE,{onClick:()=>d("insertOrderedList"),title:"Nummerierte Liste",children:(0,Te.jsx)(BE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-5 bg-border mx-1"}),(0,Te.jsx)(HE,{onClick:()=>{const e=window.prompt("Link-URL eingeben:","https://");e&&d("createLink",e)},title:"Link",children:(0,Te.jsx)(O_,{size:15})}),(0,Te.jsx)(HE,{onClick:()=>d("unlink"),title:"Link entfernen",children:(0,Te.jsx)(qE,{size:15})}),r&&(0,Te.jsx)(HE,{onClick:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.click()},title:"Bild einf\xfcgen",children:(0,Te.jsx)(UE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-5 bg-border mx-1"}),(0,Te.jsx)("div",{className:"flex items-center gap-1","data-testid":"rte-colors",children:VE.map(e=>(0,Te.jsx)("button",{type:"button",title:"Textfarbe",onMouseDown:e=>e.preventDefault(),onClick:()=>d("foreColor",e),className:"w-4 h-4 rounded-full border border-white ring-1 ring-border",style:{backgroundColor:e}},e))})]}),(0,Te.jsx)("div",{ref:o,contentEditable:!0,suppressContentEditableWarning:!0,onInput:c,onBlur:c,"data-testid":"rte-content","data-placeholder":s,className:"min-h-[160px] max-h-[520px] overflow-y-auto px-4 py-3 text-sm leading-relaxed focus:outline-none prose-editor [&_h2]:text-lg [&_h2]:font-bold [&_h2]:mt-3 [&_h2]:mb-1.5 [&_h3]:text-base [&_h3]:font-semibold [&_h3]:mt-2.5 [&_h3]:mb-1 [&_p]:mb-2 [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-2 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-2 [&_a]:text-primary [&_a]:underline [&_img]:max-w-full [&_img]:rounded-lg [&_img]:my-2"}),r&&(0,Te.jsx)("input",{ref:l,type:"file",accept:"image/*",onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(e.target.value="",n&&r)try{const e=await r(n);e&&d("insertImage",e)}catch(sse){}},className:"hidden","data-testid":"rte-image-input"})]})},KE=kf("history",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);function GE(){var e,t,n,r;const i=Rs().user,s="superadmin"===(null===i||void 0===i?void 0:i.role),o=Le((0,a.useState)([]),2),l=o[0],c=o[1],u=Le((0,a.useState)(()=>new Set),2),m=u[0],p=u[1],h=Le((0,a.useState)(null),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=Le((0,a.useState)({}),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)([]),2),z=_[0],E=_[1],C=Le((0,a.useState)(!1),2),P=C[0],A=C[1],T=Le((0,a.useState)(""),2),R=T[0],O=T[1],D=async e=>{try{const t=(await Ps.get("/manual")).data.categories||[];c(t);const n={};
2t.forEach(e=>e.sections.forEach(e=>{n[e.id]={title:e.title,body_html:e.body_html}})),j(n);const a=t.flatMap(e=>e.sections.map(t=>d(d({},t),{},{catId:e.id}))),r=e&&a.find(t=>t.id===e),i=r||a.find(e=>e.id===f)||a[0];i?(g(i.id),p(e=>0===e.size?new Set([t[0].id,i.catId]):new Set(e).add(i.catId))):t[0]&&p(e=>0===e.size?new Set([t[0].id]):e)}catch(rse){Ia.error(Cs(rse))}};(0,a.useEffect)(()=>{D()},[]);const M=nn();(0,a.useEffect)(()=>{const e=new URLSearchParams(M.search).get("q");e&&O(e)},[M.search]);const I=(0,a.useMemo)(()=>{for(const e of l){const t=e.sections.find(e=>e.id===f);if(t)return d(d({},t),{},{catId:e.id,catTitle:e.title})}return null},[l,f]),F=R.trim().toLowerCase(),L=F.length>=2,B=(0,a.useMemo)(()=>{if(F.length<2)return[];const e=[];return l.forEach(t=>(t.sections||[]).forEach(n=>{const a=n.title||"",r=(n.body_html||"").replace(/<[^>]+>/g," ").replace(/&[a-z]+;/gi," ").replace(/\s+/g," ").trim();if((a+" "+r).toLowerCase().includes(F)){const i=r.toLowerCase().indexOf(F);let s;if(i>=0){const e=Math.max(0,i-60);s=(e>0?"\u2026 ":"")+r.slice(e,i+F.length+90)+(r.length>i+F.length+90?" \u2026":"")}else s=r.slice(0,150)+(r.length>150?" \u2026":"");e.push({catId:t.id,catTitle:t.title,id:n.id,title:a,snippet:s})}})),e},[l,F]),q=e=>{if(!F||!e)return e;const t=[],n=e.toLowerCase();let a=0,r=0;for(;-1!==(a=n.indexOf(F,r));)a>r&&t.push(e.slice(r,a)),t.push((0,Te.jsx)("mark",{className:"bg-[#EAF3DE] text-foreground rounded px-0.5",children:e.slice(a,a+F.length)},a)),r=a+F.length;return t.push(e.slice(r)),t},U=(e,t)=>{g(t),S(!1),p(t=>new Set(t).add(e))},V=async(e,t)=>{await Ps.patch("/manual/categories/".concat(e.id,"/move"),{dir:t}),D()},H=(e,t)=>j(n=>d(d({},n),{},{[e]:d(d({},n[e]),t)})),W=async(e,t)=>{await Ps.patch("/manual/sections/".concat(e.id,"/move"),{dir:t}),D(e.id)};return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"Handbuch",titleId:"manual.title",subtitle:"Anleitung zur Nutzung der PERSENTIS Suite",subtitleId:"manual.subtitle",actions:s?(0,Te.jsx)(fy,{variant:v?"primary":"secondary",onClick:()=>b(e=>!e),"data-testid":"manual-edit-toggle",children:v?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Cf,{size:16})," ",(0,Te.jsx)(cy,{id:"common.done_edit",as:"span",children:"Fertig"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Mf,{size:16})," ",(0,Te.jsx)(cy,{id:"common.edit",as:"span",children:"Bearbeiten"})]})}):null}),0===l.length&&(0,Te.jsxs)(by,{className:"p-10 text-center text-muted-foreground","data-testid":"manual-empty",children:[(0,Te.jsx)(Af,{size:40,className:"mx-auto mb-3 opacity-40"}),"Das Handbuch wird gerade erstellt."]}),l.length>0&&(0,Te.jsxs)("div",{className:"grid md:grid-cols-[280px_1fr] gap-6 items-start",children:[(0,Te.jsxs)(by,{className:"p-3 md:sticky md:top-6","data-testid":"manual-toc",children:[(0,Te.jsxs)("div",{className:"relative mb-3",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)("input",{value:R,onChange:e=>O(e.target.value),placeholder:"Handbuch durchsuchen \u2026",className:"w-full pl-9 pr-8 py-2 rounded-lg border border-border text-sm bg-white focus:outline-none focus:border-primary","data-testid":"manual-search-input"}),R&&(0,Te.jsx)("button",{onClick:()=>O(""),"data-testid":"manual-search-clear",className:"absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground hover:text-foreground",children:(0,Te.jsx)(Iv,{size:15})})]}),(0,Te.jsxs)("nav",{className:"space-y-0.5",children:[l.map(e=>{const t=m.has(e.id);return(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("button",{onClick:()=>(e=>p(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))(e.id),"data-testid":"manual-cat-".concat(e.id),className:"w-full flex items-center justify-between gap-2 px-3 py-2 rounded-md text-foreground hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2 min-w-0",children:[t?(0,Te.jsx)(xw,{size:15,className:"shrink-0 text-muted-foreground"}):(0,Te.jsx)(Df,{size:15,className:"shrink-0 text-muted-foreground"}),(0,Te.jsx)("span",{className:"truncate uppercase tracking-wide text-xs font-semibold",children:e.title})]}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground shrink-0",children:["(",e.sections.length,")"]})]}),t&&(0,Te.jsxs)("div",{className:"mt-0.5 mb-1 ml-3 border-l border-border",children:[e.sections.map(t=>{var n;return(0,Te.jsx)("button",{onClick:()=>U(e.id,t.id),"data-testid":"manual-toc-".concat(t.id),className:"w-full text-left block px-3 py-1.5 text-[13px] truncate transition-colors ".concat(t.id===f?"text-primary font-semibold bg-[#F3F7EF] rounded-r":"text-muted-foreground hover:text-primary"),children:(null===(n=w[t.id])||void 0===n?void 0:n.title)||t.title},t.id)}),v&&(0,Te.jsxs)("button",{onClick:()=>(async e=>{const t=await Ps.post("/manual/sections",{category_id:e,title:"Neuer Abschnitt"});await D(t.data.id)})(e.id),"data-testid":"manual-add-section-".concat(e.id),className:"w-full flex items-center gap-1.5 px-3 py-1.5 text-[13px] text-primary hover:bg-[#F3F7EF] rounded-r",children:[(0,Te.jsx)(Pf,{size:13})," Abschnitt"]}),v&&(0,Te.jsxs)("div",{className:"flex items-center gap-1 px-3 py-1.5","data-testid":"manual-cat-tools-".concat(e.id),children:[(0,Te.jsx)("button",{onClick:()=>(async e=>{const t=window.prompt("Kategorie umbenennen:",e.title);null!==t&&void 0!==t&&t.trim()&&t!==e.title&&(await Ps.put("/manual/categories/".concat(e.id),{title:t.trim()}),D())})(e),title:"Umbenennen",className:"p-1 text-muted-foreground hover:text-primary",children:(0,Te.jsx)(Mf,{size:13})}),(0,Te.jsx)("button",{onClick:()=>V(e,"up"),title:"Nach oben",className:"p-1 text-muted-foreground hover:text-primary",children:(0,Te.jsx)(_E,{size:13})}),(0,Te.jsx)("button",{onClick:()=>V(e,"down"),title:"Nach unten",className:"p-1 text-muted-foreground hover:text-primary",children:(0,Te.jsx)(xw,{size:13})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{window.confirm("Kategorie \u201e".concat(e.title,'" mit allen Abschnitten l\xf6schen?'))&&(await Ps.delete("/manual/categories/".concat(e.id)),g(null),D())})(e),title:"L\xf6schen",className:"p-1 text-muted-foreground hover:text-destructive",children:(0,Te.jsx)(y_,{size:13})})]})]})]},e.id)}),v&&(0,Te.jsxs)("button",{onClick:async()=>{const e=window.prompt("Name der neuen Kategorie:");if(null===e||void 0===e||!e.trim())return;const t=await Ps.post("/manual/categories",{title:e.trim()});p(e=>
2new Set(e).add(t.data.id)),await D()},"data-testid":"manual-add-category",className:"w-full flex items-center gap-2 px-3 py-2 mt-1 rounded-md text-sm font-semibold text-primary border border-dashed border-primary/40 hover:bg-[#E5E7EB]",children:[(0,Te.jsx)(Pf,{size:15})," Kategorie"]})]})]}),(0,Te.jsx)("div",{className:"min-w-0",children:L?(0,Te.jsxs)("div",{className:"space-y-3","data-testid":"manual-search-results",children:[(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground",children:[B.length," ",1===B.length?"Ergebnis":"Ergebnisse"," f\xfcr \u201e",R.trim(),'"']}),0===B.length&&(0,Te.jsxs)(by,{className:"p-8 text-center text-muted-foreground","data-testid":"manual-search-empty",children:[(0,Te.jsx)(M_,{size:32,className:"mx-auto mb-3 opacity-40"}),"Keine Treffer. Versuchen Sie einen anderen Suchbegriff."]}),B.map(e=>(0,Te.jsxs)(by,{onClick:()=>(e=>{O(""),U(e.catId,e.id)})(e),"data-testid":"manual-search-result-".concat(e.id),className:"p-4 cursor-pointer hover:border-primary transition-colors",children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-1",children:e.catTitle}),(0,Te.jsx)("div",{className:"font-semibold text-foreground",children:q(e.title)}),(0,Te.jsx)("div",{className:"text-sm text-muted-foreground mt-1",children:q(e.snippet)})]},e.id))]}):I?(0,Te.jsxs)(by,{className:"p-6","data-testid":"manual-section-".concat(I.id),children:[(0,Te.jsx)("div",{className:"text-xs uppercase tracking-wider text-muted-foreground mb-2",children:I.catTitle}),v?(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsx)("input",{value:null!==(e=null===(t=w[I.id])||void 0===t?void 0:t.title)&&void 0!==e?e:I.title,onChange:e=>H(I.id,{title:e.target.value}),className:"w-full text-xl font-bold border-b border-border pb-2 focus:outline-none focus:border-primary","data-testid":"manual-section-title-".concat(I.id)}),(0,Te.jsx)(WE,{value:null!==(n=null===(r=w[I.id])||void 0===r?void 0:r.body_html)&&void 0!==n?n:I.body_html,onChange:e=>H(I.id,{body_html:e}),onUploadImage:async e=>{const t=new FormData;t.append("file",e);try{return(await Ps.post("/manual/upload-image",t,{headers:{"Content-Type":"multipart/form-data"}})).data.url}catch(rse){return Ia.error(Cs(rse,"Bild-Upload fehlgeschlagen.")),null}}}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap pt-1",children:[(0,Te.jsxs)(fy,{onClick:()=>(async e=>{A(!0);try{const t=w[e.id]||{};await Ps.put("/manual/sections/".concat(e.id),{title:t.title,body_html:t.body_html}),Ia.success("Abschnitt gespeichert."),D(e.id)}catch(rse){Ia.error(Cs(rse))}finally{A(!1)}})(I),disabled:P,"data-testid":"manual-save-section-".concat(I.id),children:[(0,Te.jsx)(wE,{size:15})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})]}),(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>W(I,"up"),children:(0,Te.jsx)(_E,{size:15})}),(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>W(I,"down"),children:(0,Te.jsx)(xw,{size:15})}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>(async e=>{const t=!N;if(S(t),t){const t=await Ps.get("/manual/sections/".concat(e.id,"/history"));E(t.data.history||[])}})(I),"data-testid":"manual-history-".concat(I.id),children:[(0,Te.jsx)(KE,{size:15})," ",(0,Te.jsx)(cy,{id:"common.changelog",as:"span",children:"\xc4nderungsprotokoll"})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>(async e=>{window.confirm("Abschnitt \u201e".concat(e.title,'" l\xf6schen?'))&&(await Ps.delete("/manual/sections/".concat(e.id)),g(null),D())})(I),className:"!text-destructive ml-auto",children:[(0,Te.jsx)(y_,{size:15})," ",(0,Te.jsx)(cy,{id:"common.delete",as:"span",children:"L\xf6schen"})]})]}),N&&(0,Te.jsxs)("div",{className:"mt-2 border-t border-border pt-3 text-xs text-muted-foreground space-y-1","data-testid":"manual-history-list-".concat(I.id),children:[0===z.length&&(0,Te.jsx)("p",{children:(0,Te.jsx)(cy,{id:"manual.no_versions",as:"span",children:"Noch keine fr\xfcheren Versionen."})}),z.map((e,t)=>(0,Te.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,Te.jsx)("span",{className:"truncate",children:e.title||"(ohne Titel)"}),(0,Te.jsxs)("span",{className:"shrink-0",children:[e.saved_by||"\u2014"," \xb7 ",e.saved_at?new Date(e.saved_at).toLocaleStr
2ing("de-DE"):"\u2014"]})]},t))]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("h2",{className:"text-2xl font-bold mb-4",children:I.title}),(0,Te.jsx)("div",{className:"text-sm leading-relaxed text-foreground [&_h2]:text-lg [&_h2]:font-bold [&_h2]:mt-4 [&_h2]:mb-2 [&_h3]:text-base [&_h3]:font-semibold [&_h3]:mt-3 [&_h3]:mb-1 [&_p]:mb-3 [&_ul]:list-disc [&_ul]:pl-6 [&_ul]:mb-3 [&_ol]:list-decimal [&_ol]:pl-6 [&_ol]:mb-3 [&_li]:mb-1 [&_a]:text-primary [&_a]:underline [&_img]:max-w-full [&_img]:rounded-lg [&_img]:my-3",dangerouslySetInnerHTML:{__html:I.body_html||"<p class='text-muted-foreground'>Noch kein Inhalt.</p>"}})]})]}):(0,Te.jsx)(by,{className:"p-8 text-center text-muted-foreground",children:"Bitte w\xe4hlen Sie links einen Abschnitt aus."})})]})]})}const ZE=[{key:"registration_confirm",label:"Registrierung best\xe4tigen"},{key:"invitation",label:"Einladung"},{key:"password_reset",label:"Passwort zur\xfccksetzen"},{key:"account_activated",label:"Konto aktiviert"},{key:"account_deactivated",label:"Konto deaktiviert"},{key:"ownership_transferred",label:"Eigent\xfcmer ge\xe4ndert"},{key:"survey_started",label:"Umfrage gestartet"},{key:"survey_reminder",label:"Erinnerung"},{key:"survey_extended",label:"Umfrage verl\xe4ngert"},{key:"survey_completed",label:"Abschluss-Report"}],YE={title:"",description:"",status:"new",has_manual:!1,manual_query:"",has_automail:!1,automail_key:""};function QE(e){let t=e.initial,n=e.onClose,r=e.onSaved;const i=Le((0,a.useState)(t||YE),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],u=l[1],m=(e,t)=>o(n=>d(d({},n),{},{[e]:t})),p=!(null===t||void 0===t||!t.id);return(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/40 p-4","data-testid":"changelog-form-modal",children:(0,Te.jsxs)(by,{className:"w-full max-w-lg p-6 max-h-[90vh] overflow-y-auto",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Te.jsx)("h2",{className:"font-heading text-xl",children:p?"Neuerung bearbeiten":"Neue Neuerung"}),(0,Te.jsx)("button",{onClick:n,className:"text-muted-foreground hover:text-foreground","data-testid":"changelog-form-close",children:(0,Te.jsx)(Iv,{size:20})})]}),(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsx)(wy,{label:"Titel",children:(0,Te.jsx)(gy,{value:s.title,onChange:e=>m("title",e.target.value),"data-testid":"changelog-title-input",placeholder:"z. B. Selbst-Registrierung f\xfcr neue Kunden"})}),(0,Te.jsx)(wy,{label:"Beschreibung",children:(0,Te.jsx)(xy,{value:s.description,onChange:e=>m("description",e.target.value),rows:4,"data-testid":"changelog-description-input",placeholder:"Was wurde ge\xe4ndert / optimiert?"})}),(0,Te.jsxs)("div",{className:"rounded-md border border-border p-3 space-y-2",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold cursor-pointer",children:[(0,Te.jsx)("input",{type:"checkbox",checked:s.has_manual,onChange:e=>m("has_manual",e.target.checked),className:"h-4 w-4 accent-primary","data-testid":"changelog-has-manual"}),(0,Te.jsx)(Af,{size:15,className:"text-primary"})," Im Handbuch dokumentiert"]}),s.has_manual&&(0,Te.jsx)(gy,{value:s.manual_query,onChange:e=>m("manual_query",e.target.value),"data-testid":"changelog-manual-query",placeholder:"Suchbegriff f\xfcrs Handbuch (z. B. Registrierung)"})]}),(0,Te.jsxs)("div",{className:"rounded-md border border-border p-3 space-y-2",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold cursor-pointer",children:[(0,Te.jsx)("input",{type:"checkbox",checked:s.has_automail,onChange:e=>m("has_automail",e.target.checked),className:"h-4 w-4 accent-primary","data-testid":"changelog-has-automail"}),(0,Te.jsx)(vS,{size:15,className:"text-primary"})," Mit AutoMail verkn\xfcpft"]}),s.has_automail&&(0,Te.jsxs)(vy,{value:s.automail_key,onChange:e=>m("automail_key",e.target.value),"data-testid":"changelog-automail-key",children:[(0,Te.jsx)("option",{value:"",children:"\u2014 AutoMail w\xe4hlen \u2014"}),ZE.map(e=>(0,Te.jsx)("option",{value:e.key,children:e.label},e.key))]})]}),(0,Te.jsx)(wy,{label:"Status",children:(0,Te.jsxs)(vy,{value:s.status,onChange:e=>m("status",e.target.value),"data-testid":"changelog-status-select",children:[(0,Te.jsx)("option",{value:"new",children:"Neu"}),(0,Te.jsx)("option",{value:"done",children:"Erledigt"})]})}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:n,"data-testid":"changelog-form-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{onClick:async()=>
2{if(s.title.trim()){u(!0);try{const e={title:s.title.trim(),description:s.description.trim(),status:s.status,has_manual:s.has_manual,manual_query:s.has_manual?s.manual_query.trim():"",has_automail:s.has_automail,automail_key:s.has_automail?s.automail_key:""};p?await Ps.put("/changelog/".concat(t.id),e):await Ps.post("/changelog",e),Ia.success(p?"Neuerung aktualisiert":"Neuerung angelegt"),r()}catch(rse){Ia.error(Cs(rse))}finally{u(!1)}}else Ia.error("Bitte geben Sie einen Titel an.")},disabled:c,"data-testid":"changelog-form-save",children:c?"\u2026":p?"Speichern":"Anlegen"})]})]})]})})}function $E(){const e=sn(),t=Le((0,a.useState)([]),2),n=t[0],r=t[1],i=Le((0,a.useState)(!0),2),s=i[0],o=i[1],l=Le((0,a.useState)(null),2),c=l[0],u=l[1],m=Le((0,a.useState)(!1),2),p=m[0],h=m[1],f=Le((0,a.useState)({}),2),g=f[0],x=f[1],v=async()=>{o(!0);try{const e=await Ps.get("/changelog");r(e.data||[])}catch(rse){Ia.error(Cs(rse))}finally{o(!1)}};(0,a.useEffect)(()=>{v()},[]);const b=async(e,t)=>{try{await Ps.patch("/changelog/".concat(e.id,"/status"),{status:t}),v()}catch(rse){Ia.error(Cs(rse))}},y=(0,a.useMemo)(()=>n.filter(e=>"done"!==e.status).length,[n]);return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"Neuerungen",titleId:"changelog.title",subtitle:"\xdcberblick \xfcber neue Funktionen und Optimierungen",subtitleId:"changelog.subtitle",actions:(0,Te.jsxs)(fy,{onClick:()=>{u(null),h(!0)},"data-testid":"changelog-add-btn",children:[(0,Te.jsx)(Pf,{size:16})," ",(0,Te.jsx)(cy,{id:"changelog.add",as:"span",children:"Neuerung"})]})}),!s&&n.length>0&&(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mb-4","data-testid":"changelog-open-count",children:[y," offen \xb7 ",n.length-y," erledigt"]}),s?(0,Te.jsx)(FS,{}):0===n.length?(0,Te.jsxs)(by,{className:"p-10 text-center text-muted-foreground","data-testid":"changelog-empty",children:[(0,Te.jsx)(If,{size:40,className:"mx-auto mb-3 opacity-40"}),"Noch keine Neuerungen. Legen Sie die erste an."]}):(0,Te.jsx)("div",{className:"space-y-4",children:n.map(t=>{const n="done"===t.status;return(0,Te.jsxs)(by,{className:"p-5 ".concat(n?"opacity-70":""),"data-testid":"changelog-card-".concat(t.id),children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3",children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[!n&&(0,Te.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider bg-primary text-white px-2 py-0.5 rounded-full","data-testid":"changelog-badge-new-".concat(t.id),children:(0,Te.jsx)(cy,{id:"changelog.badge_new",as:"span",children:"Neu"})}),n&&(0,Te.jsxs)("span",{className:"text-[10px] font-bold uppercase tracking-wider bg-zinc-200 text-zinc-600 px-2 py-0.5 rounded-full inline-flex items-center gap-1",children:[(0,Te.jsx)(Ef,{size:11})," ",(0,Te.jsx)(cy,{id:"changelog.badge_done",as:"span",children:"Erledigt"})]}),(0,Te.jsx)("h3",{className:"font-semibold text-foreground text-base",children:t.title})]}),t.description&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1.5 leading-relaxed whitespace-pre-line",children:t.description}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap mt-3",children:[t.has_manual&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-primary bg-[#F3F7EF] border border-primary/30 px-2 py-1 rounded-md","data-testid":"changelog-badge-manual-".concat(t.id),children:[(0,Te.jsx)(Ef,{size:12})," ",(0,Te.jsx)(Af,{size:12})," Handbuch"]}),t.has_automail&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs font-semibold text-primary bg-[#F3F7EF] border border-primary/30 px-2 py-1 rounded-md","data-testid":"changelog-badge-automail-".concat(t.id),children:[(0,Te.jsx)(Ef,{size:12})," ",(0,Te.jsx)(vS,{size:12})," AutoMail"]})]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[(0,Te.jsx)("button",{onClick:()=>(e=>{u(e),h(!0)})(t),title:"Bearbeiten",className:"p-2 rounded-md text-muted-foreground hover:bg-zinc-100","data-testid":"changelog-edit-".concat(t.id),children:(0,Te.jsx)(Mf,{size:16})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{if(window.confirm("Neuerung \u201e".concat(e.title,'" l\xf6schen?')))try{await Ps.delete("/changelog/".concat(e.id)),Ia.success("Neuerung gel\xf6scht"),v()}catch(rse){Ia.error(Cs(rse))}})(t),title:"L\xf6schen",className:"p-2 rounded-md text-destructive hover:bg-red-50","data-testid":"changelog-delete-".concat(t.id),children:(0,Te.jsx)(y_,{size:16})})]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap mt-4 pt-3 border-t border-border",children:[t.has_manual&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>e("/admin/manual".concat(t.manual_query?"?q=".concat(encodeURIComponent(t.manual_query)):"")),"data-testid":"changelog-open-manual-".concat(t.id),children:[(0,Te.jsx)(Af,{size:14})," Handbuch \xf6ffnen"]}
2),t.has_automail&&t.automail_key&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>e("/admin/automails?key=".concat(t.automail_key)),"data-testid":"changelog-open-automail-".concat(t.id),children:[(0,Te.jsx)(vS,{size:14})," AutoMail \xf6ffnen"]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>x(e=>d(d({},e),{},{[t.id]:!e[t.id]})),"data-testid":"changelog-history-toggle-".concat(t.id),children:[(0,Te.jsx)(KE,{size:14})," \xc4nderungsverlauf"]}),n?(0,Te.jsxs)(fy,{variant:"secondary",className:"ml-auto",onClick:()=>b(t,"new"),"data-testid":"changelog-reopen-".concat(t.id),children:[(0,Te.jsx)(Ff,{size:14})," Wieder \xf6ffnen"]}):(0,Te.jsxs)(fy,{className:"ml-auto",onClick:()=>b(t,"done"),"data-testid":"changelog-done-".concat(t.id),children:[(0,Te.jsx)(Ef,{size:14})," Als erledigt markieren"]})]}),g[t.id]&&(0,Te.jsxs)("div",{className:"mt-3 border-t border-border pt-3 text-xs text-muted-foreground space-y-1","data-testid":"changelog-history-".concat(t.id),children:[0===(t.history||[]).length&&(0,Te.jsx)("p",{children:(0,Te.jsx)(cy,{id:"changelog.no_history",as:"span",children:"Kein Verlauf."})}),(t.history||[]).map((e,t)=>(0,Te.jsxs)("div",{className:"flex justify-between gap-3",children:[(0,Te.jsxs)("span",{children:["v",e.version," \xb7 ",e.note]}),(0,Te.jsx)("span",{className:"shrink-0",children:e.at?new Date(e.at).toLocaleString("de-DE"):"\u2014"})]},t))]})]},t.id)})}),p&&(0,Te.jsx)(QE,{initial:c,onClose:()=>{h(!1),u(null)},onSaved:()=>{h(!1),u(null),v()}})]})}const XE=kf("camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]),JE=kf("mail-warning",[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]]),eC=["email"];function tC(e,t){const n=(null===e||void 0===e?void 0:e.profile)||{};return{avatar:n.avatar||"",first_name:n.first_name||"",last_name:n.last_name||"",email:(null===e||void 0===e?void 0:e.email)||"",phone:n.phone||"",position:n.position||"",preferred_lang:n.preferred_lang||t||"de"}}const nC=[{code:"de",flag:"de"},{code:"en",flag:"gb"},{code:"fr",flag:"fr"},{code:"es",flag:"es"},{code:"it",flag:"it"}];function aC(){const e=Xa(),t=e.t,n=e.lang,r=e.setLang,i=Rs(),s=i.user,o=i.setUser,l=i.logout,c=Le((0,a.useState)(()=>tC(s,n)),2),u=c[0],m=c[1],p=(0,a.useRef)(tC(s,n)),h=(0,a.useRef)(((null===s||void 0===s?void 0:s.email)||"").toLowerCase()),f=Le((0,a.useState)(!1),2),g=f[0],x=f[1],v=Le((0,a.useState)(!1),2),b=v[0],y=v[1],w=(0,a.useRef)(null),j=(e,t)=>m(n=>d(d({},n),{},{[e]:t})),k=JSON.stringify(u)!==JSON.stringify(p.current),N=async function(e){let n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).silent;x(!0);try{const a=u.email,i=Be(u,eC),s=null!==e&&void 0!==e?e:a,l=[i.first_name,i.last_name].filter(Boolean).join(" ").trim(),c=await Ps.put("/auth/profile",{name:l,email:s,profile:i});o(c.data),i.preferred_lang&&r(i.preferred_lang);const m=u.avatar!==p.current.avatar;return p.current=d(d({},u),{},{email:s}),h.current=(s||"").toLowerCase(),n||Ia.success(t(m?"toast.photoChanged":"toast.profileSaved")),!0}catch(rse){return Ia.error(Cs(rse)),!1}finally{x(!1)}},S=[u.first_name,u.last_name].filter(Boolean).join(" ")||(null===s||void 0===s?void 0:s.email);return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:t("profile.title"),titleId:"profile.title"}),(0,Te.jsxs)(by,{className:"p-6 max-w-3xl","data-testid":"profile-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,Te.jsx)("div",{className:"relative w-16 h-16",children:u.avatar?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("img",{src:u.avatar,alt:"",onClick:()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.click()},className:"w-16 h-16 rounded-full object-cover cursor-pointer","data-testid":"avatar-image"}),(0,Te.jsx)("button",{type:"button",onClick:()=>j("avatar",""),"data-testid":"remove-photo",className:"absolute -top-1 -right-1 w-6 h-6 rounded-full bg-white border border-border shadow flex items-center justify-center hover:bg-zinc-100 transition-colors",children:(0,Te.jsx)(Iv,{size:14,className:"text-destructive"})})]}):(0,Te.jsx)("button",{type:"button",onClick:()=>{var e;return null===(e=w.current)||void 0===e?void 0:e.click()},"data-testid":"avatar-button",className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center hover:opacity-80 transition-opacity",children:(0,Te.jsx)(XE,{className:"brand-green",size:26})})}),(0,Te.jsx)("input",{ref:w,type:"file",accept:"image/*",className:"hidden",onChange:e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(!n)return;if(n.size>2097152)return void Ia.error("Bild zu gro\xdf (max. 2 MB)");const a=new FileReader;a.onload=()=>j("avatar",a.result),a.readAsDataURL(n)},"data-testid":"avatar-input"}),(0,Te.jsx)("p",{className:"font-heading text-lg",children:S})]}),(0,Te.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground mb-3",children:t("profile.sectionOwner")}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4",children:[(0,Te.jsx)(wy,{label:t("profile.firstName"),children:(0,Te.jsx)(gy,{value:u.first_name,onChange:e=>j("first_name",e.target.value),"data-testid":"profile-first"})}),(0,Te.jsx)(wy,{label:t("profile.lastName"),children:(0,Te.jsx)(gy,{value:u.last_name,onChange:e=>j("last_name",e.target.value),"data-testid":"profile-last"})}),(0,Te.jsx)(wy,{label:t("profile.email"),children:(0,Te.jsx)(gy,{type:"email",value:u.email,onChange:e=>j("email",e.target.value),"data-testid":"profile-email"})}),(0,Te.jsx)(wy,{label:t("profile.phone"),children:(0,Te.jsx)(gy,{value:u.phone,onChange:e=>j("phone",e.target.value),"data-testid":"profile-phone"})}),(0,Te.jsx)(wy,{label:t("profile.position"),children:(0,Te.jsx)(gy,{value:u.position,onChange:e=>j("position",e.target.value),"data-testid":"profile-position"})})]}),(0,Te.jsx)("div",{className:"mt-4",children:(0,Te.jsx)(wy,{label:t("profile.language"),children:(0,Te.jsx)("div",{className:"flex items-center gap-2","data-testid":"profile-language",children:nC.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>j("preferred_lang",e.code),"data-testid":"profile-lang-".concat(e.code),"aria-pressed":u.preferred_lang===e.code,className:"flex items-center justify-center rounded-md border p-1.5 transition-all ".concat(u.preferred_lang===e.code?"border-primary ring-2 ring-primary/30 bg-accent":"border-border hover:bg-zinc-50 opacity-70 hover:opacity-100"),children:(0,Te.jsx)("img",{src:"https://flagcdn.com/w40/".concat(e.flag,".png"),srcSet:"https://flagcdn.com/w80/".concat(e.flag,".png 2x"),alt:e.code,width:"28",height:"20",style:{width:28,height:20},className:"rounded-sm object-cover"})},e.code))})})}),(0,Te.jsx)("div",{className:"flex justify-end",style:{marginTop:"30px"},children:(0,Te.jsxs)(fy,{onClick:async()=>
2{if(!k)return;u.email.toLowerCase()!==h.current?y(!0):await N()},disabled:g||!k,"data-testid":"profile-save",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:t("common.save")})]})})]}),b&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 bg-black/40 flex items-center justify-center p-4","data-testid":"email-modal",children:(0,Te.jsxs)(by,{className:"p-6 max-w-md w-full bg-white",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-full bg-amber-100 flex items-center justify-center",children:(0,Te.jsx)(JE,{className:"text-amber-600",size:20})}),(0,Te.jsx)("h3",{className:"font-heading text-lg font-semibold",children:t("profile.emailModalTitle")})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:t("profile.emailModalText")}),(0,Te.jsxs)("div",{className:"mt-5 flex justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:async()=>{const e=h.current;m(t=>d(d({},t),{},{email:e})),y(!1),await N(e)},"data-testid":"email-modal-cancel",children:t("common.cancel")}),(0,Te.jsx)(fy,{onClick:async()=>{const e=await N(u.email,{silent:!0});y(!1),e&&l()},"data-testid":"email-modal-ok",children:t("profile.understood")})]})]})})]})}const rC=[["all","Alle Aktionen"],["login","Anmeldung"],["survey_created","Umfrage erstellt"],["survey_updated","Umfrage bearbeitet"],["survey_completed","Umfrage abgeschlossen"],["survey_extended","Umfrage verl\xe4ngert"],["survey_deleted","Umfrage gel\xf6scht"],["user_created","Nutzer angelegt"],["user_updated","Nutzer bearbeitet"],["user_deleted","Nutzer gel\xf6scht"]];function iC(e){if(!e)return"\u2014";const t=new Date(e);return isNaN(t)?e:t.toLocaleString("de-DE",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit"})}function sC(){const e=Le((0,a.useState)("all"),2),t=e[0],n=e[1],r=Le((0,a.useState)(""),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)({items:[],total:0,is_super:!1}),2),h=p[0],f=p[1],g=Le((0,a.useState)(!0),2),x=g[0],v=g[1],b=(0,a.useMemo)(()=>{const e={};return t&&"all"!==t&&(e.action=t),i.trim()&&(e.search=i.trim()),l&&(e.from=l),u&&(e.to=u),e},[t,i,l,u]);(0,a.useEffect)(()=>{let e=!0;v(!0);const t=setTimeout(async()=>{try{const t=await Ps.get("/activities",{params:b});e&&f(t.data)}catch(rse){}finally{e&&v(!1)}},300);return()=>{e=!1,clearTimeout(t)}},[b]);const y=h.is_super,w=y?6:5;return(0,Te.jsxs)("div",{"data-testid":"activities-page",children:[(0,Te.jsx)(ky,{title:"Aktivit\xe4t",titleId:"activities.title",subtitle:y?"Alle Aktivit\xe4ten aller Konten \u2013 durchsuchbar und filterbar.":"Alle Aktivit\xe4ten Ihres Kontos \u2013 durchsuchbar und filterbar."}),(0,Te.jsx)(by,{className:"p-4 sm:p-5 mb-5","data-testid":"activities-filters",children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-[1.2fr_1.7fr_1fr_1fr_auto] gap-3 md:items-end",children:[(0,Te.jsxs)("label",{className:"block space-y-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"activities.filter_action",as:"span",children:"Aktion"})}),(0,Te.jsx)(vy,{value:t,onChange:e=>n(e.target.value),"data-testid":"activities-action",children:rC.map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("option",{value:n,children:a},n)})})]}),(0,Te.jsxs)("label",{className:"block space-y-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"activities.filter_search",as:"span",children:"Suche (Name / Firma / E-Mail)"})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:i,onChange:e=>s(e.target.value),placeholder:"suchen\u2026",className:"pl-9","data-testid":"activities-search"})]})]}),(0,Te.jsxs)("label",{className:"block space-y-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"common.from",as:"span",children:"Von"})}
2),(0,Te.jsx)(gy,{type:"date",value:l,onChange:e=>c(e.target.value),"data-testid":"activities-from"})]}),(0,Te.jsxs)("label",{className:"block space-y-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"common.to",as:"span",children:"Bis"})}),(0,Te.jsx)(gy,{type:"date",value:u,onChange:e=>m(e.target.value),"data-testid":"activities-to"})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{n("all"),s(""),c(""),m("")},"data-testid":"activities-reset",className:"h-[38px]",children:[(0,Te.jsx)(Ff,{size:16})," ",(0,Te.jsx)(cy,{id:"common.reset",as:"span",children:"Zur\xfccksetzen"})]})]})}),(0,Te.jsxs)(by,{className:"overflow-hidden","data-testid":"activities-list",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between p-4 sm:p-5 border-b border-border gap-3 flex-wrap",children:[(0,Te.jsxs)("h2",{className:"font-heading text-lg",children:[(0,Te.jsx)(cy,{id:"activities.entries_heading",children:"Eintr\xe4ge"})," ",(0,Te.jsxs)("span",{className:"text-muted-foreground font-normal",children:["(",h.total,")"]})]}),(0,Te.jsxs)(fy,{onClick:async()=>{try{const e=await Ps.get("/activities/export",{params:b,responseType:"blob"}),t=URL.createObjectURL(e.data),n=document.createElement("a");n.href=t,n.download="aktivitaeten.csv",n.click(),setTimeout(()=>URL.revokeObjectURL(t),1500)}catch(rse){Ia.error("Export fehlgeschlagen")}},"data-testid":"activities-export",children:[(0,Te.jsx)(N_,{size:16})," ",(0,Te.jsx)(cy,{id:"common.export_csv",as:"span",children:"CSV exportieren"})]})]}),(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"bg-[#F7F7F5] text-left text-xs font-semibold text-muted-foreground",children:[(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"common.col_time",as:"span",children:"Zeitpunkt"})}),(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"activities.col_action",as:"span",children:"Aktion"})}),(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"activities.col_actor",as:"span",children:"Akteur"})}),(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"activities.col_accounttype",as:"span",children:"Kontotyp"})}),y&&(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"common.col_company",as:"span",children:"Firma"})}),(0,Te.jsx)("th",{className:"px-4 py-3",children:(0,Te.jsx)(cy,{id:"common.col_details",as:"span",children:"Details"})})]})}),(0,Te.jsx)("tbody",{children:x?(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:w,className:"px-4 py-10 text-center text-muted-foreground",children:"L\xe4dt\u2026"})}):0===h.items.length?(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:w,className:"px-4 py-12 text-center text-muted-foreground","data-testid":"activities-empty",children:(0,Te.jsx)(cy,{id:"activities.empty",as:"span",children:"Keine Aktivit\xe4ten gefunden."})})}):h.items.map(e=>(0,Te.jsxs)("tr",{className:"border-t border-border hover:bg-[#FAFAF9] transition-colors","data-testid":"activity-row-".concat(e.id),children:[(0,Te.jsx)("td",{className:"px-4 py-3 whitespace-nowrap tabular-nums text-muted-foreground",children:iC(e.timestamp)}),(0,Te.jsx)("td",{className:"px-4 py-3 font-semibold",children:e.action_label}),(0,Te.jsxs)("td",{className:"px-4 py-3",children:[(0,Te.jsx)("div",{className:"font-medium text-foreground",children:e.actor_name}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:e.actor_email})]}),(0,Te.jsx)("td",{className:"px-4 py-3 text-muted-foreground",children:e.account_type_label}),y&&(0,Te.jsx)("td",{className:"px-4 py-3 text-muted-foreground",children:e.firma_name||"\u2014"}),(0,Te.jsx)("td",{className:"px-4 py-3 text-muted-foreground",children:e.details||"\u2014"})]},e.id))})]})})]})]})}const oC=kf("underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]),lC=kf("remove-formatting",[["path",{d:"M4 7V4h16v3",key:"9msm58"}],["path",{d:"M5 20h6",key:"1h6pxn"}],["path",{d:"M13 4 8 20",key:"kqq6aj"}],["path",{d:"m15 15 5 5",key:"me55sn"}],["path",{d:"m20 15-5 5",key:"11p7ol"}
2]]),cC=kf("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);function dC(e){let t=e.p,n=e.onSaved;const r=Le((0,a.useState)(String(t.validity_quota)),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],d=String(t.validity_quota)!==i;return(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-4 py-4 border-b border-border last:border-0","data-testid":"param-row-".concat(t.key),children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"font-semibold text-foreground","data-testid":"param-label-".concat(t.key),children:t.label}),!t.has_survey&&(0,Te.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground bg-zinc-100 rounded px-2 py-0.5",children:"noch kein Fragebogen"})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Mindestanteil beantworteter, bewertbarer Fragen, ab dem ein Fragebogen als g\xfcltig z\xe4hlt."})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)("input",{type:"number",min:0,max:100,value:i,onChange:e=>s(e.target.value),"data-testid":"param-input-".concat(t.key),className:"w-24 h-10 pl-3 pr-8 rounded-md border border-border text-right font-semibold text-foreground focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("span",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground text-sm",children:"%"})]}),(0,Te.jsxs)("button",{onClick:async()=>{const e=parseInt(i,10);if(isNaN(e)||e<0||e>100)Ia.error("Bitte einen Wert zwischen 0 und 100 eingeben");else{c(!0);try{await Ps.put("/parameters/".concat(t.key),{validity_quota:e}),Ia.success("G\xfcltigkeitsquote f\xfcr ".concat(t.label," gespeichert")),n(t.key,e)}catch(rse){Ia.error(Cs(rse))}finally{c(!1)}}},disabled:!d||l,"data-testid":"param-save-".concat(t.key),className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold transition-colors ".concat(d?"bg-primary text-white hover:bg-[var(--brand-primary-dark)]":"bg-zinc-100 text-muted-foreground cursor-not-allowed"),children:[d?(0,Te.jsx)(wE,{size:16}):(0,Te.jsx)(Cf,{size:16})," Speichern"]})]})]})}const uC=[{key:"text_gering",label:"gering",dot:"#47A350",hint:"Icon gr\xfcn"},{key:"text_moderat",label:"moderat",dot:"#EC7829",hint:"Icon orange"},{key:"text_kritisch",label:"kritisch",dot:"#E5341D",hint:"Icon rot"}];function mC(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{Ps.get("/analytics/erfuellungsgrad-config").then(e=>n(e.data.config)).catch(e=>Ia.error(Cs(e)))},[]);const o=(e,t)=>n(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8 mt-6","data-testid":"erf-config-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(jw,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.erf.heading",children:"Erf\xfcllungsgrad (PERSENTIS Analytics)"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.erf.desc",children:"Schwellwerte der Differenz (Zufriedenheit \u2212 Arbeitgeberangebot) sowie die Tipp-Texte je Stufe."})})]})]}),t?(0,Te.jsxs)("div",{className:"mt-4 space-y-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#47A350"}})," gering bis (%)"]}),(0,Te.jsx)("input",{type:"number",min:0,max:100,value:t.gering_max,onChange:e=>o("gering_max",e.target.value),"data-testid":"erf-gering-max",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"})]}),(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#EC7829"}})," moderat bis (%)"]}),(0,Te.jsx)("input",{type:"number",min:0,max:100,value:t.moderat_max,onChange:e=>o("moderat_max",e.target.value),"data-testid":"erf-moderat-max",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"})]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground -mt-2",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#E5341D"}})," kritisch = alles dar\xfcber"]})}),uC.map(e=>(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground flex items-center gap-2 mb-1",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:e.dot}})," Tipp-Text \u201e",e.label,'" (',e.hint,")"]}),(0,Te.jsx)("textarea",{rows:2,value:t[e.key]||"",onChange:t=>o(e.key,t.target.value),"data-testid":"erf-".concat(e.key),className:"w-full px-3 py-2 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"})]},e.key)),(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:'Experten-/Partner-Link (bei \u201ekritisch")'}),(0,Te.jsx)("input",{type:"text",value:t.partner_url||"",onChange:e=>o("partner_url",e.target.value),"data-testid":"erf-partner-url",className:"w-full h-10 px-3 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"})]}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)("button",{onClick:async()=>{s(!0);try{const e=await Ps.put("/analytics/erfuellungsgrad-config",{data:{gering_max:parseInt(t.gering_max,10),moderat_max:parseInt(t.moderat_max,10),text_gering:t.text_gering,text_moderat:t.text_moderat,text_kritisch:t.text_kritisch,partner_url:t.partner_url}});n(e.data.config),Ia.success("Erf\xfcllungsgrad-Einstellungen gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},disabled:i,"data-testid":"erf-save",className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold bg-primary text-white hover:bg-[var(--brand-primary-dark)] disabled:opacity-50",children:[(0,Te.jsx)(wE,{size:16})," Speichern"]})})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"erf-config-loading",children:"Wird geladen \u2026"})]})}const pC=[{key:"primary",label:"Prim\xe4rfarbe"},{key:"secondary",label:"Sekund\xe4rfarbe"},{key:"gray_01",label:"Grau 01"},{key:"gray_02",label:"Grau 02"},{key:"gray_03",label:"Grau 03"},{key:"emotional",label:"Emotional"},{key:"kalkulativ",label:"Kalkulativ"},{key:"wachstum",label:"Wachstum"},{key:"kritisch",label:"Ergebnis: kritisch"},{key:"moderat",label:"Ergebnis: moderat"},{key:"exzellent",label:"Ergebnis: exzellent"}];function hC(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{Ps.get("/analytics/palette").then(e=>n(e.data.config)).catch(e=>Ia.error(Cs(e)))},[]);const o=(e,t)=>n(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8 mt-6","data-testid":"palette-config-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(yS,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.palette.heading",children:"Farbkonstellation"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.palette.desc",children:"Zentrale Farbdefinition der Plattform. Die Dimensionsfarben (Emotional / Kalkulativ / Wachstum) werden sofort in den Auswertungen angewendet."})})]})]}),t?(0,Te.jsxs)("div",{className:"space-y-5",children:[(0,Te.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:pC.map(e=>(0,Te.jsxs)("div",{className:"flex items-center gap-3","data-testid":"palette-row-".concat(e.key),children:[(0,Te.jsx)("input",{type:"color",value:t[e.key]||"#000000",onChange:t=>o(e.key,t.target.value),"data-testid":"palette-color-".concat(e.key),className:"w-11 h-11 rounded-md border border-border
2cursor-pointer shrink-0 p-0.5 bg-white"}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"text-sm font-semibold text-foreground",children:e.label}),(0,Te.jsx)("input",{type:"text",value:t[e.key]||"",onChange:t=>o(e.key,t.target.value),"data-testid":"palette-hex-".concat(e.key),className:"mt-0.5 w-full h-8 px-2 rounded-md border border-border text-xs font-mono uppercase focus:outline-none focus:ring-2 focus:ring-primary/40"})]})]},e.key))}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)("button",{onClick:async()=>{s(!0);try{const e=await Ps.put("/analytics/palette",{data:t});n(e.data.config),Ia.success("Farbkonstellation gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},disabled:i,"data-testid":"palette-save",className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold bg-primary text-white hover:bg-[var(--brand-primary-dark)] disabled:opacity-50",children:[(0,Te.jsx)(wE,{size:16})," Speichern"]})})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"palette-loading",children:"Wird geladen \u2026"})]})}const fC=[{key:"h1",label:"H1 \u2013 Seitentitel"},{key:"h2",label:"H2 \u2013 Abschnitt"},{key:"h3",label:"H3 \u2013 Unterabschnitt"},{key:"h4",label:"H4"},{key:"h5",label:"H5"},{key:"h6",label:"H6"},{key:"body",label:"Flie\xdftext"}],gC=[300,400,500,600,700,800];function xC(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1];(0,a.useEffect)(()=>{Ps.get("/analytics/typography").then(e=>{n(e.data.config),s(e.data.fonts||[])}).catch(e=>Ia.error(Cs(e)))},[]);const u=(e,t,a)=>n(n=>d(d({},n),{},{[e]:d(d({},n[e]),{},{[t]:a})}));return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"typography-config-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(wS,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.typo.heading",children:"Typografie"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.typo.desc",children:"Schriftgr\xf6\xdfe, Schriftart und St\xe4rke f\xfcr \xdcberschriften (H1\u2013H6) und Flie\xdftext. \xc4nderungen gelten global f\xfcr die gesamte Suite."})})]})]}),t?(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"hidden sm:grid grid-cols-[130px_1fr_92px_104px] gap-3 text-xs font-semibold text-muted-foreground uppercase tracking-wide px-1",children:[(0,Te.jsx)("span",{children:(0,Te.jsx)(cy,{id:"admin.params.col_level",as:"span",children:"Ebene"})}),(0,Te.jsx)("span",{children:(0,Te.jsx)(cy,{id:"admin.params.col_font",as:"span",children:"Schriftart"})}),(0,Te.jsx)("span",{children:(0,Te.jsx)(cy,{id:"admin.params.col_size",as:"span",children:"Gr\xf6\xdfe"})}),(0,Te.jsx)("span",{children:(0,Te.jsx)(cy,{id:"admin.params.col_weight",as:"span",children:"St\xe4rke"})})]}),fC.map(e=>{var n,a;const r=t[e.key]||{};return(0,Te.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-[130px_1fr_92px_104px] gap-3 items-center","data-testid":"typo-row-".concat(e.key),children:[(0,Te.jsx)("span",{className:"text-sm font-semibold text-foreground",children:e.label}),(0,Te.jsx)("select",{value:r.family||"",onChange:t=>u(e.key,"family",t.target.value),"data-testid":"typo-family-".concat(e.key),className:"h-10 px-2 rounded-md border border-border text-sm bg-white focus:outline-none focus:ring-2 focus:ring-primary/40",style:{fontFamily:'"'.concat(r.family,'", sans-serif')},children:("body"===e.key?["Roboto Condensed"]:i).map(e=>(0,Te.jsx)("option",{value:e,children:e},e))}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)("input",{type:"number",min:8,max:96,value:null!==(n=r.size)&&void 0!==n?n:"",onChange:t=>u(e.key,"size",parseInt(t.target.value,10)||0),"data-testid":"typo-size-".concat(e.key),className:"w-full h-10 pl-3 pr-7 rounded-md border border-border text-right font-semibold tabular-nums focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("span",{className:"absolute right-2 top-1/2 -translate-y-1/2 text-muted-foreground text-xs pointer-events-none",children:"px"})]}),(0,Te.jsx)("select",{value:null!==(a=r.weight)&&void 0!==a?a:400,onChange:t=>u(e.key,"weight",parseInt(t.target.value,10)),"data-testid":"typo-weight-".concat(e.key),className:"h-10 px-2 rounded-md border border-border text-sm bg-white focus:outline-none focus:ring-2 focus:ring-primary/40",children:gC.map(e=>(0,Te.jsx)("option",{value:e,children:e},e))})]},e.key)}),(0,Te.jsxs)("div",{className:"mt-2 rounded-md border border-border bg-[#FAFAFA] p-4","data-testid":"typo-preview",children:[(0,Te.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})}),(0,Te.jsx)("div",{className:"space-y-1.5",children:fC.map(e=>{const n=t[e.key]||{};return(0,Te.jsxs)("div",{className:"flex items-baseline gap-3","data-testid":"typo-preview-".concat(e.key),children:[(0,Te.jsx)("span",{className:"w-14 shrink-0 text-[11px] text-muted-foreground uppercase",children:e.key}),(0,Te.jsx)("span",{style:{fontFamily:'"'.concat(n.family,'", sans-serif'),fontSize:"".concat(n.size,"px"),fontWeight:n.weight,lineHeight:1.25},children:"body"===e.key?"Der flinke braune Fuchs springt \xfcber den Hund.":"Beispiel \xb7 PERSENTIS Suite"})]},e.key)})})]}),(0,Te.jsx)("div",{className:"flex justify-end pt-1",children:(0,Te.jsxs)("button",{onClick:async()=>{c(!0);try{const e=await Ps.put("/analytics/typography",{data:t});n(e.data.config),gw(e.data.config),Ia.success("Typografie gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{c(!1)}},disabled:l,"data-testid":"typo-save",className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold bg-primary text-white hover:opacity-90 transition-opacity disabled:opacity-50",children:[(0,Te.jsx)(wE,{size:16})," ",l?"Speichert \u2026":"Speichern"]})})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"typo-loading",children:"Wird geladen \u2026"})]})}const vC=[{embedId:"persentis-preisrechner",path:"/api/tools/preisrechner",headingId:"parameters.rechner4.heading",heading:"Preisrechner",descId:"parameters.rechner4.desc",desc:"Interaktiver Preisrechner zum Einbetten auf Ihrer Website (als WordPress Custom-HTML-Block, kein Plugin n\xf6tig). Mitarbeiterzahl per Schieberegler, Produktauswahl und B\xfcndelrabatt \u2013 die Preisberechnung l\xe4uft direkt im Browser (framework-frei). Standardtexte lassen sich im Bearbeiten-Modus per Stift zentral \xe4ndern.",previewHeight:640,editable:!0},{embedId:"persentis-fluktuationsrechner",path:"/api/tools/fluktuationsrechner",headingId:"parameters.rechner.heading",heading:"Fluktuationsrechner",descId:"parameters.rechner.desc",desc:"Interaktiver Rechner zum Einbetten auf Ihrer Website (als WordPress Custom-HTML-Block, kein Plugin n\xf6tig). Die Berechnung l\xe4uft serverseitig \u2013 Formel und Benchmarks sind im Quelltext nicht einsehbar."},{embedId:"persentis-ersparnisrechner",path:"/api/tools/ersparnisrechner",headingId:"parameters.rechner2.heading",heading:"Ersparnis-Rechner (Fluktuation senken)",descId:"parameters.rechner2.desc",desc:"Zeigt die j\xe4hrliche Ersparnis in Euro bei geringerer Fluktuation. Alle Faktoren und Benchmarks werden serverseitig berechnet und sind im Quelltext nicht einsehbar."},{embedId:"persentis-hotellerierechner",path:"/api/tools/hotellerierechner",headingId:"parameters.rechner3.heading",heading:"Hotellerie-Rechner (Land \xd7 Kategorie \xd7 Betriebsart)",de
2scId:"parameters.rechner3.desc",desc:"Ersparnis-Rechner f\xfcr die Hotellerie mit Auswahl von Land (DE/AT/CH), Sterne-Kategorie und Betriebsart. Alle Faktoren, Benchmarks und die Kalibrierung werden serverseitig berechnet und sind im Quelltext nicht einsehbar."}],bC=["#2A2A2A","#75A33D","#C0392B","#E0A800","#2563EB","#757575"],yC=[{label:"Klein",value:"2"},{label:"Normal",value:"3"},{label:"Gro\xdf",value:"5"},{label:"Sehr gro\xdf",value:"6"}];function wC(e){let t=e.data,n=e.onSave,r=e.onReset,i=e.onClose;const s=(0,a.useRef)(null),o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],d=(0,a.useCallback)(e=>{s.current=e,e&&(e.innerHTML=t.current||"",e.focus())},[t]),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s.current&&s.current.focus(),document.execCommand(e,!1,t)};return(0,Te.jsx)(ey,{open:!0,onOpenChange:e=>!e&&i(),children:(0,Te.jsxs)(ay,{"data-testid":"rechner-edit-dialog",className:"max-w-2xl",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(Mf,{size:16})," ",t.label||"Text bearbeiten"]}),(0,Te.jsxs)(oy,{children:["Diese \xc4nderung ist \xfcberall (auch im eingebetteten Rechner) sichtbar. Schl\xfcssel: ",(0,Te.jsx)("code",{className:"text-xs",children:t.key})]})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-1 border border-border rounded-md p-1.5 bg-[#FAFAFA]",children:[(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),u("bold")},title:"Fett","data-testid":"rechner-rich-bold",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(OE,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),u("italic")},title:"Kursiv","data-testid":"rechner-rich-italic",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(DE,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),u("underline")},title:"Unterstrichen","data-testid":"rechner-rich-underline",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(oC,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),u("insertUnorderedList")},title:"Aufz\xe4hlung","data-testid":"rechner-rich-list",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(LE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-1"}),bC.map(e=>(0,Te.jsx)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),u("foreColor",e)},title:"Farbe ".concat(e),className:"w-6 h-6 rounded-full border border-border",style:{backgroundColor:e}},e)),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-1"}),(0,Te.jsxs)("select",{onChange:e=>{u("fontSize",e.target.value),e.target.selectedIndex=0},"data-testid":"rechner-rich-size",className:"h-8 rounded border border-border text-sm px-1 bg-white",children:[(0,Te.jsx)("option",{children:"Gr\xf6\xdfe"}),yC.map(e=>(0,Te.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),u("removeFormat")},title:"Formatierung entfernen","data-testid":"rechner-rich-clear",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(lC,{size:15})})]}),(0,Te.jsx)("div",{ref:d,contentEditable:!0,suppressContentEditableWarning:!0,"data-testid":"rechner-rich-editor",className:"min-h-[120px] max-h-[340px] overflow-auto w-full px-3 py-2 rounded-md border border-border text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40 bg-white"}),(0,Te.jsxs)(iy,{className:"gap-2 sm:justify-between",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{c(!0);try{await r()}finally{c(!1)}},disabled:l,"data-testid":"rechner-edit-reset",className:"!text-muted-foreground",children:[(0,Te.jsx)(Ff,{size:15})," Auf Standard zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:i,disabled:l,"data-testid":"rechner-edit-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{c(!0);try{var e;await n(((null===(e=s.current)||void 0===e?void 0:e.innerHTML)||"").trim())}finally{c(!1)}},disabled:l,"data-testid":"rechner-edit-save",children:(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})})]})]})]})})}function jC(e){let t=e.embedId,n=e.path,r=e.headingId,i=e.heading,s=e.descId,o=e.desc,l=e.previewHeight,c=void 0===l?360:l,d=e.editable,u=void 0!==d&&d;const m=Le((0,a.useState)(!1),2),p=m[0],h=m[1],f=Le((0,a.useState)(null),2),g=f[0],x=f[1],v=a.useRef(null),b=Is(),y=b.showPencils,w=b.saveText,j=b.resetText,k="".concat("https://login.persentis.com").concat(n),N=((e,t)=>'<div style="width:100%;max-width:760px;margin:0 auto;">\n <iframe id="'.concat(e,'" src="').concat(t,'" title="PERSENTIS Rechner" loading="lazy" scrolling="no" style="display:block;width:100%;border:0;overflow:hidden;height:520px;"></iframe>\n <script>\n window.addEventListener("message", function (e) {\n if (e.data && typeof e.data.persentisHeight === "number") {\n var f = document.getElementById("').concat(e,'");\n if (f && e.source === f.contentWindow) f.style.height = e.data.persentisHeight + "px";\n }\n });\n <\/script>\n</div>'))(t,k),S=e=>{try{v.current&&v.current.contentWindow&&v.current.contentWindow.postMessage(e,"*")}catch(rse){}},_=()=>S({persentisEditMode:!(!u||!y)});(0,a.useEffect)(()=>{const e=e=>{v.current&&e.source===v.current.contentWindow&&(e.data&&"number"===typeof e.data.persentisHeight&&(v.current.style.height=e.data.persentisHeight+"px"),u&&e.data&&e.data.persentisEdit&&x(e.data.persentisEdit))};return window.addEventListener("message",e),()=>window.removeEventListener("message",e)},[u]),(0,a.useEffect)(()=>{_()},[y,u]);return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"rechner-card-".concat(t),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-4",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(jS,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:r,children:i})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:s,children:o})})]})]}),(0,Te.jsxs)("div",{className:"rounded-md border border-border bg-[#FAFAFA] p-3 mb-5","data-testid":"rechner-preview-".concat(t),children:[(0,Te.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})}),(0,Te.jsx)("iframe",{ref:v,title:"".concat(i," Vorschau"),src:k,onLoad:_,"data-testid":"rechner-preview-iframe-".concat(t),scrolling:"no",style:{width:"100%",height:c,border:0,overflow:"hidden",borderRadius:8,background:"#fff"}})]}),u&&y&&(0,Te.jsx)("p",{className:"text-[11px] text-primary mb-4 -mt-2","data-testid":"rechner-edit-hint",children:(0,Te.jsx)(cy,{id:"admin.params.edit_hint",as:"span",children:"Bearbeiten-Modus aktiv: Fahren Sie im Rechner \xfcber einen Text und klicken Sie auf das Stift-Symbol, um ihn zu \xe4ndern."})}),(0,Te.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.params.embed_code",as:"span",children:"Einbettungscode"})}),(0,Te.jsxs)("div",{className:"relative rounded-md border border-border bg-[#0f172a] p-4 pr-14","data-testid":"rechner-code-block-".concat(t),children:[(0,Te.jsx)("button",{type:"button",onClick:async()=>{let e=!1;try{navigator.clipboard&&window.isSecureContext&&(await navigator.clipboard.writeText(N),e=!0)}catch(rse){}if(!e)try{const t=document.createElement("textarea");t.value=N,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.focu
2s(),t.select(),e=document.execCommand("copy"),document.body.removeChild(t)}catch(rse){e=!1}e?(h(!0),Ia.success("Einbettungscode kopiert"),setTimeout(()=>h(!1),1500)):Ia.error("Kopieren nicht m\xf6glich")},"data-testid":"rechner-copy-btn-".concat(t),"aria-label":"Einbettungscode kopieren",title:"Einbettungscode kopieren",className:"absolute top-3 right-3 w-9 h-9 inline-flex items-center justify-center rounded-md bg-white/10 text-white hover:bg-white/20 transition-colors",children:p?(0,Te.jsx)(Cf,{size:16}):(0,Te.jsx)(cC,{size:16})}),(0,Te.jsx)("pre",{className:"text-[12px] leading-relaxed text-[#e2e8f0] whitespace-pre-wrap break-all font-mono overflow-x-auto",children:(0,Te.jsx)("code",{children:N})})]}),g&&(0,Te.jsx)(wC,{data:g,onSave:async e=>{try{await w(g.key,e),S({persentisTextUpdated:{key:g.key,value:e}}),Ia.success("Text gespeichert."),x(null)}catch(rse){Ia.error("Speichern fehlgeschlagen.")}},onReset:async()=>{try{await j(g.key),S({persentisTextUpdated:{key:g.key,value:""}}),Ia.success("Auf Standardtext zur\xfcckgesetzt."),x(null)}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}},onClose:()=>x(null)})]})}function kC(){return(0,Te.jsx)("div",{className:"space-y-6","data-testid":"rechner-tool",children:vC.map(e=>(0,Te.jsx)(jC,d({},e),e.embedId))})}const NC=[{r:92,cls:"bg-green-100 text-green-700"},{r:65,cls:"bg-amber-100 text-amber-700"},{r:30,cls:"bg-red-100 text-red-700"}];function SC(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{Ps.get("/analytics/teilnahme-config").then(e=>n(e.data.config)).catch(e=>Ia.error(Cs(e)))},[]);const o=(e,t)=>n(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"teilnahme-config-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(_f,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.teilnahme.heading",children:"Teilnahme"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.teilnahme.desc",children:"Schwellwerte f\xfcr die farbliche Einstufung der Beteiligungsquote (Teilnehmer). Gilt in Umfragen, Auswertungen und Ergebnissen."})})]})]}),t?(0,Te.jsxs)("div",{className:"mt-4 space-y-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#22c55e"}})," gr\xfcn ab (%)"]}),(0,Te.jsx)("input",{type:"number",min:0,max:100,value:t.green_min,onChange:e=>o("green_min",e.target.value),"data-testid":"teilnahme-green-min",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"})]}),(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsxs)("span",{className:"text-xs font-semibold text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#f59e0b"}})," gelb ab (%)"]}),(0,Te.jsx)("input",{type:"number",min:0,max:100,value:t.amber_min,onChange:e=>o("amber_min",e.target.value),"data-testid":"teilnahme-amber-min",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"})]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground -mt-2",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{background:"#ef4444"}})," rot = alles darunter"]})}),(0,Te.jsxs)("div",{className:"rounded-md border border-border bg-[#FAFAFA] p-4","data-testid":"teilnahme-preview",children:[(0,Te.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})}),(0,Te.jsx)("div",{className:"flex items-center gap-3",children:NC.map(e=>{const n=e.r>=(parseInt(t.green_min,10)||0)?"bg-green-100 text-green-700":e.r>=(parseInt(t.amber_min,10)||0)?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700";return(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(n),children:[e.r,"%"]},e.r)})})]}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)("button",{onClick:async()=>{s(!0);try{const e=await Ps.put("/analytics/teilnahme-config",{data:{green_min:parseInt(t.green_min,10),amber_min:parseInt(t.amber_min,10)}});n(e.data.config),Ia.success("Teilnahme-Schwellen gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},disabled:i,"data-testid":"teilnahme-save",className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold bg-primary text-white hover:bg-[var(--brand-primary-dark)] disabled:opacity-50",children:[(0,Te.jsx)(wE,{size:16})," Speichern"]})})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"teilnahme-loading",children:"Wird geladen \u2026"})]})}function _C(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{Ps.get("/parameters/low-participation").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e)))},[]);const o=(e,t)=>n(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"lowpart-config-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(JE,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.lowpart.heading",children:"AutoMail \u201eNiedrige Teilnahme\u201c"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.lowpart.desc",children:"Ab wann und unter welcher Beteiligung die Warn-Mail \u201eNiedrige Teilnahme\u201c an den Einladender ausgel\xf6st wird. Die Pr\xfcfung wiederholt sich, solange die Beteiligung unter der Schwelle liegt."})})]})]}),t?(0,Te.jsxs)("div",{className:"mt-4 space-y-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.params.threshold",as:"span",children:"Beteiligungs-Schwelle (%)"})}),(0,Te.jsx)("input",{type:"number",min:0,max:100,value:t.threshold_pct,onChange:e=>o("threshold_pct",e.target.value),"data-testid":"lowpart-threshold",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground mt-1 block",children:(0,Te.jsx)(cy,{id:"admin.params.threshold_hint",as:"span",children:"Liegt die Beteiligung darunter, wird die Mail ausgel\xf6st (Standard 50 %)."})})]}),(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.params.checkpoint",as:"span",children:"Pr\xfcf-Zeitpunkt (% der Laufzeit)"})}),(0,Te.jsx)("input",{type:"number",min:1,max:100,value:t.checkpoint_pct,onChange:e=>o("checkpoint_pct",e.target.value),"data-testid":"lowpart-checkpoint",className:"mt-1 w-full h-10 px-3 rounded-md border border-border text-right font-semibold focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground mt-1 block",children:"Erst ab diesem Anteil der Befragungszeit wird gepr\xfcft (Standard 67 % \u2248 \u2154)."})]})]}),(0,Te.jsxs)("div",{className:"rounded-md border border-border bg-[#FAFAFA] p-4","data-testid":"lowpart-preview",children:[(0,Te.jsx)("p",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"common.example",as:"span",children:"Beispiel"})}),(0,Te.jsxs)("p",{className:"text-sm text-foreground",children:["Bei einer Laufzeit von 14 Tagen wird ab Tag ",(0,Te.jsx)("strong",{children:Math.max(1,Math.round(14*(parseInt(t.checkpoint_pct,10)||0)/100))})," gepr\xfcft und die Mail versendet, sobald die Beteiligung unter ",(0,Te.jsxs)("strong",{children:[parseInt(t.threshold_pct,10)||0," %"]})," liegt."]})]}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)("button",{onClick:async()=>{s(!0);try{const e=await Ps.put("/parameters/low-participation",{threshold_pct:parseInt(t.threshold_pct,10),checkpoint_pct:parseInt(t.checkpoint_pct,10)});n({threshold_pct:e.data.threshold_pct,checkpoint_pct:e.data.checkpoint_pct}),Ia.success("Ausl\xf6ser f\xfcr \u201eNiedrige Teilnahme\u201c gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},disabled:i,"data-testid":"lowpart-save",className:"h-10 px-4 inline-flex items-center gap-2 rounded-md text-sm font-semibold bg-primary text-white hover:bg-[var(--brand-primary-dark)] disabled:opacity-50",children:[(0,Te.jsx)(wE,{size:16})," Speichern"]})})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"lowpart-loading",children:"Wird geladen \u2026"})]})}function zC(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d="https://login.persentis.com",u=async()=>{s(!0);try{const e=await Ps.get("/backgrounds");n(e.data.backgrounds||[])}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}};(0,a.useEffect)(()=>{u()},[]);return(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"param-section-hintergruende",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(pS,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.bg.heading",children:"Hintergr\xfcnde"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.bg.desc",children:"Briefbogen-Vorlagen f\xfcr Reportings, Rechnungen und Kommunikation. Hintergrund 01 = erste Seite (mit Fu\xdfzeile), Hintergrund 02 = Folgeseiten (ohne Fu\xdfzeile)."})})]})]}),(0,Te.jsx)("div",{className:"mt-4 space-y-5",children:i?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"bg-loading",children:"Wird geladen \u2026"}):t.map(e=>(0,Te.jsx)("div",{className:"rounded-lg border border-border p-4","data-testid":"bg-slot-".concat(e.id),children:(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("div",{className:"w-[120px] h-[160px] shrink-0 rounded-md border border-border bg-[#FAFAFA] overflow-hidden flex items-center justify-center",children:e.has_file?"application/pdf"===e.content_type?(0,Te.jsx)("object",{data:"".concat(d).concat(e.url,"#toolbar=0&navpanes=0&view=FitH"),type:"application/pdf",width:"120",height:"160","data-testid":"bg-preview-".concat(e.id),children:(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground px-2 text-center",children:(0,Te.jsx)(cy,{id:"admin.params.pdf_preview",as:"span",children:"PDF-Vorschau"})})}):(0,Te.jsx)("img",{src:"".concat(d).concat(e.url),alt:e.label,className:"max-w-full max-h-full object-contain","data-testid":"bg-preview-".concat(e.id)}):(0,Te.jsx)("span",{className:"text-[11px] text-muted-foreground px-2 text-center",children:(0,Te.jsx)(cy,{id:"admin.params.no_file",as:"span",children:"Keine Datei"})})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("div",{className:"font-semibold text-sm text-foreground",children:e.label}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground mt-1 truncate","data-testid":"bg-filename-".concat(e.id),children:e.has_file?e.original_filename:"\u2014 noch nicht hinterlegt \u2014"}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-2 mt-3",children:[(0,Te.jsxs)("label",{className:"inline-flex items-center gap-2 h-9 px-3 rounded-md bg-primary text-white text-sm font-semibold transition-opacity ".concat(l===e.id?"opacity-60 cursor-wait":"cursor-pointer hover:opacity-90"),"data-testid":"bg-upload-btn-".concat(e.id),children:[l===e.id?"Wird hochgeladen \u2026":e.has_file?"Datei ersetzen":"Datei hochladen",(0,Te.jsx)("input",{type:"file",accept:".pdf,.png,.jpg,.jpeg,.webp,application/pdf,image/*",className:"hidden",disabled:l===e.id,"data-testid":"bg-file-input-".concat(e.id),onChange:t=>{var n;const a=null===(n=t.target.files)||void 0===n?void 0:n[0];t.target.value="",(async(e,n)=>{if(!n)return;
2if(!n.type||["application/pdf","image/png","image/jpeg","image/webp"].includes(n.type))if(n.size>15728640)Ia.error("Datei ist zu gro\xdf (max. 15 MB).");else{c(e);try{const t=new FormData;t.append("file",n),await Ps.post("/backgrounds/".concat(e),t,{headers:{"Content-Type":"multipart/form-data"}}),Ia.success("Hintergrund gespeichert."),await u()}catch(t){Ia.error(Cs(t))}finally{c("")}}else Ia.error("Nur PDF, PNG, JPG oder WEBP erlaubt.")})(e.id,a)}})]}),e.has_file&&(0,Te.jsx)("a",{href:"".concat(d).concat(e.url),target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-2 h-9 px-3 rounded-md border border-border text-sm font-semibold hover:bg-[#F3F3F4] transition-colors","data-testid":"bg-open-".concat(e.id),children:(0,Te.jsx)(cy,{id:"common.open",as:"span",children:"\xd6ffnen"})})]})]})]})},e.id))})]})}function EC(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{(async()=>{s(!0);try{const e=await Ps.get("/parameters");n(e.data.products||[])}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}})()},[]);const o=(e,t)=>{n(n=>n.map(n=>n.key===e?d(d({},n),{},{validity_quota:t}):n))},l=Le(ya(),1)[0].get("tab"),c=["quota","teilnahme","erf","colors","typo","rechner","hintergruende"].includes(l)?l:"quota";return(0,Te.jsxs)("div",{"data-testid":"parameters-page",children:[(0,Te.jsx)(ky,{title:"Parameter",titleId:"parameters.title",subtitle:"Globale Systemparameter \u2013 gelten f\xfcr alle Firmen",subtitleId:"parameters.subtitle"}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0","data-testid":"parameters-panel",children:["quota"===c&&(0,Te.jsxs)(by,{className:"max-w-3xl p-6 sm:p-8","data-testid":"param-section-quota",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)("span",{className:"w-10 h-10 rounded-md bg-[#F3F3F4] flex items-center justify-center text-primary",children:(0,Te.jsx)(bS,{size:20})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"parameters.quota.heading",children:"G\xfcltigkeitsquote"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"parameters.quota.desc",children:"Ein Fragebogen wird erst in Teilnehmerzahl und Auswertung ber\xfccksichtigt, sobald mindestens dieser Anteil der bewertbaren Fragen beantwortet wurde. Neue Produkte erscheinen hier automatisch."})})]})]}),(0,Te.jsx)("div",{className:"mt-4",children:i?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground py-6 text-center","data-testid":"param-loading",children:"Wird geladen \u2026"}):t.map(e=>(0,Te.jsx)(dC,{p:e,onSaved:o},e.key))})]}),"erf"===c&&(0,Te.jsx)(mC,{}),"teilnahme"===c&&(0,Te.jsxs)("div",{className:"space-y-6","data-testid":"param-section-teilnahme",children:[(0,Te.jsx)(SC,{}),(0,Te.jsx)(_C,{})]}),"colors"===c&&(0,Te.jsx)(hC,{}),"typo"===c&&(0,Te.jsx)(xC,{}),"rechner"===c&&(0,Te.jsx)(kC,{}),"hintergruende"===c&&(0,Te.jsx)(zC,{})]})]})}function CC(){const e=(0,a.useRef)(null),t=Le((0,a.useState)(!1),2),n=t[0],r=t[1],i=Le((0,a.useState)(null),2),s=i[0],o=i[1],l=Le((0,a.useState)(null),2),c=l[0],d=l[1],u=Le((0,a.useState)([]),2),m=u[0],p=u[1],h=(0,a.useCallback)(async()=>{try{const e=await Ps.get("/content-sync/history").then(e=>e.data);p(e.entries||[])}catch(rse){}},[]);(0,a.useEffect)(()=>{h()},[h]);return(0,Te.jsxs)("div",{className:"max-w-3xl mx-auto py-2","data-testid":"content-sync-page",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,Te.jsx)(NS,{className:"text-primary",size:22}),(0,Te.jsx)("h1",{className:"font-heading text-2xl",children:(0,Te.jsx)(cy,{id:"content_sync.title",children:"Inhalts-Sync"})})]}),(0,Te.jsx)("p",{className:"text-muted-foreground mb-6",children:(0,Te.jsx)(cy,{id:"content_sync.subtitle",children:"\xdcbertragen Sie Konfigurations-Inhalte (UI-Texte, Parameter, AutoMails, Handbuch, Fragenkatalog) zwischen Umgebungen. Kundendaten (Firmen, Nutzer, Antworten) sind nicht enthalten."})}),(0,Te.jsxs)(by,{className:"p-5 mb-5",children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-1",children:(0,Te.jsx)(cy,{id:"content_sync.export_heading",children:"1. Exportieren"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Erzeugt eine JSON-Datei mit allen aktuellen Inhalten die
2ser Umgebung."}),(0,Te.jsxs)(fy,{onClick:async()=>{r(!0);try{const e=await Ps.get("/content-sync/export").then(e=>e.data),t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),n=URL.createObjectURL(t),a=document.createElement("a"),r=(new Date).toISOString().slice(0,19).replace(/[:T]/g,"-");a.href=n,a.download="persentis-inhalte-".concat(r,".json"),a.click(),URL.revokeObjectURL(n),Ia.success("Export erstellt und heruntergeladen.")}catch(rse){Ia.error("Export fehlgeschlagen.")}finally{r(!1)}},disabled:n,"data-testid":"content-sync-export-btn",className:"inline-flex items-center gap-2",children:[n?(0,Te.jsx)(Of,{className:"animate-spin",size:16}):(0,Te.jsx)(zE,{size:16})," Export herunterladen"]})]}),(0,Te.jsxs)(by,{className:"p-5",children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-1",children:(0,Te.jsx)(cy,{id:"content_sync.import_heading",children:"2. Importieren"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Laden Sie eine zuvor exportierte JSON-Datei. Sie sehen zun\xe4chst eine Vorschau, bevor Sie \xfcbernehmen."}),(0,Te.jsx)("input",{ref:e,type:"file",accept:"application/json,.json",onChange:async t=>{var n;const a=null===(n=t.target.files)||void 0===n?void 0:n[0];if(a)try{const e=JSON.parse(await a.text());o(e),r(!0);const t=await Ps.post("/content-sync/preview",{bundle:e}).then(e=>e.data);d(t)}catch(sse){Ia.error("Datei konnte nicht gelesen werden (ung\xfcltiges Format)."),o(null),d(null)}finally{r(!1),e.current&&(e.current.value="")}},className:"hidden","data-testid":"content-sync-file-input"}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{var t;return null===(t=e.current)||void 0===t?void 0:t.click()},disabled:n,"data-testid":"content-sync-choose-file-btn",className:"inline-flex items-center gap-2",children:[(0,Te.jsx)(SS,{size:16})," Datei ausw\xe4hlen"]}),c&&(0,Te.jsxs)("div",{className:"mt-5","data-testid":"content-sync-preview",children:[(0,Te.jsxs)("div",{className:"flex items-start gap-2 rounded-md bg-amber-50 border border-amber-200 text-amber-800 p-3 mb-4 text-sm",children:[(0,Te.jsx)(k_,{size:18,className:"shrink-0 mt-0.5"}),(0,Te.jsxs)("span",{children:["Der Import ",(0,Te.jsx)("strong",{children:"\xfcberschreibt alle"})," aufgef\xfchrten Inhalte in dieser Umgebung vollst\xe4ndig (Import gewinnt). Dies kann nicht r\xfcckg\xe4ngig gemacht werden."]})]}),c.exported_at&&(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground mb-2",children:["Export vom: ",new Date(c.exported_at).toLocaleString("de-DE")]}),(0,Te.jsxs)("table",{className:"w-full text-sm border border-border rounded-md overflow-hidden",children:[(0,Te.jsx)("thead",{className:"bg-zinc-50",children:(0,Te.jsxs)("tr",{children:[(0,Te.jsx)("th",{className:"text-left p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_area",as:"span",children:"Bereich"})}),(0,Te.jsx)("th",{className:"text-right p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_current",as:"span",children:"Aktuell"})}),(0,Te.jsx)("th",{className:"text-right p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_after",as:"span",children:"Nach Import"})})]})}),(0,Te.jsx)("tbody",{children:c.rows.map(e=>(0,Te.jsxs)("tr",{"data-testid":"content-sync-row-".concat(e.key),children:[(0,Te.jsx)("td",{className:"p-2 border-b border-border",children:e.label}),(0,Te.jsx)("td",{className:"p-2 border-b border-border text-right tabular-nums text-muted-foreground",children:e.current}),(0,Te.jsx)("td",{className:"p-2 border-b border-border text-right tabular-nums font-semibold",children:null===e.incoming?"\u2014":e.incoming})]},e.key))})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-4",children:[(0,Te.jsxs)(fy,{onClick:async()=>{if(s){r(!0);try{await Ps.post("/content-sync/import",{bundle:s}),Ia.success("Import erfolgreich \xfcbernommen."),o(null),d(null),h()}catch(rse){Ia.error("Import fehlgeschlagen.")}finally{r(!1)}}},disabled:n,"data-testid":"content-sync-import-btn",className:"inline-flex items-center gap-2",children:[n?(0,Te.jsx)(Of,{className:"animate-spin",size:16}):(0,Te.jsx)(Ef,{size:16})," ",(0,Te.jsx)(cy,{id:"content_sync.import_apply",as:"span",children:"Import \xfcbernehmen"})]}),(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>{o(null),d(null)},disabled:n,"data-testid":"content-sync-cancel-btn",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})})]})]})]}),(0,Te.jsxs)(by,{className:"p-5 mt-5","data-testid":"content-sync-history-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-1",children:[(0,Te.jsx)(KE,{size:18,className:"text-primary"}),(0,Te.jsx)("h2",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"content_sync.history_heading",children:"Sync-Verlauf"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:"Protokoll der Importe in diese Umgebung (letzte 50). Zeigt, wann diese Seite zuletzt angeglichen wurde."}),0===m.length?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"content-sync-history-empty",children:(0,Te.jsx)(cy,{id:"content_sync.history_empty",as:"span",children:"Noch keine Importe erfolgt."})}):(0,Te.jsxs)("table",{className:"w-full text-sm border border-border rounded-md overflow-hidden",children:[(0,Te.jsx)("thead",{className:"bg-zinc-50",children:(0,Te.jsxs)("tr",{children:[(0,Te.jsx)("th",{className:"text-left p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"common.col_time",as:"span",children:"Zeitpunkt"})}),(0,Te.jsx)("th",{className:"text-left p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_by",as:"span",children:"Durch"})}),(0,Te.jsx)("th",{className:"text-left p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_export_state",as:"span",children:"Export-Stand"})}),(0,Te.jsx)("th",{className:"text-right p-2 border-b border-border",children:(0,Te.jsx)(cy,{id:"content_sync.col_records",as:"span",children:"Datens\xe4tze"})})]})}),(0,Te.jsx)("tbody",{children:m.map((e,t)=>{var n;return(0,Te.jsxs)("tr",{"data-testid":"content-sync-history-row-".concat(t),children:[(0,Te.jsx)("td",{className:"p-2 border-b border-border tabular-nums",children:e.at?new Date(e.at).toLocaleStr
2ing("de-DE"):"\u2014"}),(0,Te.jsx)("td",{className:"p-2 border-b border-border",children:e.user||"\u2014"}),(0,Te.jsx)("td",{className:"p-2 border-b border-border tabular-nums text-muted-foreground",children:e.exported_at?new Date(e.exported_at).toLocaleString("de-DE"):"\u2014"}),(0,Te.jsx)("td",{className:"p-2 border-b border-border text-right tabular-nums font-semibold",children:null!==(n=e.total)&&void 0!==n?n:"\u2014"})]},t)})})]})]})]})}const PC=kf("file-archive",[["path",{d:"M10 12v-1",key:"v7bkov"}],["path",{d:"M10 18v-2",key:"1cjy8d"}],["path",{d:"M10 7V6",key:"dljcrl"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v16a2 2 0 0 0 .274 1.01",key:"gkbcor"}],["circle",{cx:"10",cy:"20",r:"2",key:"1xzdoj"}]]),AC=e=>null===e||void 0===e||""===e?"\u2014":String(e);function TC(e){var t,n,r,i;let s=e.onDone;const o=Le((0,a.useState)(null),2),l=o[0],c=o[1],u=Le((0,a.useState)(null),2),m=u[0],p=u[1],h=Le((0,a.useState)([]),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=Le((0,a.useState)([]),2),w=y[0],j=y[1],k=Le((0,a.useState)(""),2),N=k[0],S=k[1],_=Le((0,a.useState)("new"),2),z=_[0],E=_[1],C=Le((0,a.useState)([]),2),P=C[0],A=C[1],T=Le((0,a.useState)(""),2),R=T[0],O=T[1],D=Le((0,a.useState)(""),2),M=D[0],I=D[1],F=Le((0,a.useState)({}),2),L=F[0],B=F[1],q=Le((0,a.useState)(!1),2),U=q[0],V=q[1],H=(0,a.useRef)(null);(0,a.useEffect)(()=>{Ps.get("/firmen").then(e=>j(e.data||[])).catch(()=>{})},[]),(0,a.useEffect)(()=>{N?Ps.get("/branches?firma_id=".concat(N)).then(e=>{const t=[...e.data||[]].sort((e,t)=>Number(t.is_central)-Number(e.is_central)||(e.name||"").localeCompare(t.name||""));A(t);const n=t.find(e=>e.is_central&&"archived"!==e.status);n?(E("existing"),O(n.id)):0===t.length&&E("new")}).catch(()=>A([])):A([])},[N]);const W=(e,t,n)=>B(a=>d(d({},a),{},{[e]:d(d({},a[e]),{},{[t]:n})})),K=m&&N&&("existing"===z?R:M.trim()),G=((null===m||void 0===m?void 0:m.departments)||[]).map(e=>e.name),Z=e=>[...f.filter(t=>("zusatz"===t.category?"zusatz":"standard")===e),...f.filter(t=>("zusatz"===t.category?"zusatz":"standard")!==e)];return(0,Te.jsx)(by,{className:"p-6 mb-6","data-testid":"transfer-zip-card",children:(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("span",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center text-primary shrink-0",children:(0,Te.jsx)(PC,{size:22})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-1",children:"Transfer-Paket (ZIP) hochladen"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-2xl",children:'ZIP mit Transfer-Excel und den PDF-Ordnern \u201eOffene Antworten" / \u201eOffene Zusatzfragen". Je Abteilung werden immer beide Kategorien angeboten; vorhandene PDFs werden automatisch vorgeschlagen. Ohne Zusatz-PDF bleibt der Slot leer.'}),(0,Te.jsx)("input",{ref:H,type:"file",accept:".zip",className:"hidden","data-testid":"transfer-zip-input",onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){c(n),b(!0),p(null),B({}),g([]);try{const e=new FormData;e.append("file",n);const t=await Ps.post("/import/transfer/zip-preview",e),a=(t.data.departments||[]).map(e=>e.name),r=t.data.pdf_entries||[],i={};a.forEach(e=>{i[e]={standard:"",zusatz:""}}),r.forEach(e=>{const t=e.suggested_department,n="zusatz"===e.category?"zusatz":"standard";t&&i[t]&&!i[t][n]&&(i[t][n]=e.zip_path)}),p(t.data),g(r),B(i),Ia.success("".concat(a.length," Abteilungen, ").concat(r.length," PDFs erkannt."))}catch(sse){Ia.error(Cs(sse)),c(null)}b(!1)}}}),(0,Te.jsxs)(fy,{onClick:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.click()},disabled:v,"data-testid":"transfer-zip-btn",children:[v?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(SS,{size:15})," ZIP ausw\xe4hlen"]}),l&&(0,Te.jsx)("span",{className:"ml-3 text-sm text-muted-foreground",children:l.name}),m&&(0,Te.jsxs)("div",{className:"mt-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Kunde"}),(0,Te.jsx)("div",{className:"font-semibold","data-testid":"transfer-zip-customer",children:AC(null===(t=m.meta)||void 0===t?void 0:t.customer)})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Umfrage"}),(0,Te.jsx)("div",{className:"font-semibold",children:AC(null===(n=m.meta)||void 0===n?void 0:n.survey_name)})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Start"}),(0,Te.jsx)("div",{className:"font-semibold",children:AC(null===(r=m.meta)||void 0===r?void 0:r.start_date)})]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold mb-1",children:"Firma (bestehend)"}),(0,Te.jsxs)(vy,{value:N,onChange:e=>{S(e.target.value),O("")},"data-testid":"transfer-zip-firma-select",children:[(0,Te.jsx)("option",{value:"",children:"\u2014 Firma w\xe4hlen \u2014"}),w.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold mb-1",children:"Ziel (Zentrale / Filiale)"}),(0,Te.jsxs)("div",{className:"flex gap-2 mb-2 text-xs",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>E("new"),"data-testid":"transfer-zip-branch-mode-new",className:"px-2 py-1 rounded ".concat("new"===z?"bg-primary text-white":"bg-zinc-100"),children:"Neu anlegen"}),(0,Te.jsx)("button",{type:"button",onClick:()=>E("existing"),disabled:0===P.length,"data-testid":"transfer-zip-branch-mode-existing",className:"px-2 py-1 rounded ".concat("existing"===z?"bg-primary text-white":"bg-zinc-100"," ").concat(0===P.length?"opacity-40":""),children:"Bestehende"})]}),"existing"===z?(0,Te.jsxs)(vy,{value:R,onChange:e=>O(e.target.value),"data-testid":"transfer-zip-branch-select",children:[(0,Te.jsx)("option",{value:"",children:"\u2014 Ziel w\xe4hlen \u2014"}),P.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.is_central?"".concat(e.name," (Zentrale \xb7 Hauptbereich)"):e.name},e.id))]}):(0,Te.jsx)("input",{className:"w-full border rounded px-3 py-2 text-sm",placeholder:(null===(i=m.meta)||void 0===i?void 0:i.customer)||"Filialname",value:M,onChange:e=>I(e.target.value),"data-testid":"transfer-zip-branch-name-input"})]})]}),(0,Te.jsxs)("div",{className:"flex items-start gap-2 text-xs text-muted-foreground bg-[#FAFAFA] rounded-md p-3 mb-5",children:[(0,Te.jsx)(Sf,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsxs)("span",{children:["Im Excel enthaltene Abteilungen werden angelegt/aktiviert; bestehende, nicht genannte Abteilungen der Ziel-Filiale werden ",(0,Te.jsx)("b",{children:"archiviert"}),"."]})]}),(0,Te.jsxs)("div",{className:"mb-5",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:"PDF-Zuordnung je Abteilung"}),(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm","data-testid":"transfer-zip-pdf-table",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-xs text-muted-foreground border-b",children:[(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Abteilung"}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Offene Antworten (Standard)"}),(0,Te.jsx)("th",{className:"py-2",children:"Offene Zusatzfragen (Zusatz)"})]})}),(0,Te.jsx)("tbody",{children:G.map((e,t)=>{var n,a;return(0,Te.jsxs)("tr",{className:"border-b last:border-0 align-top","data-testid":"transfer-zip-dept-row-".concat(t),children:[(0,Te.jsx)("td",{className:"py-2 pr-4 font-medium",children:e}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:(0,Te.jsxs)(vy,{value:(null===(n=L[e])||void 0===n?void 0:n.standard)||"",onChange:t=>W(e,"standard",t.target.value),"data-testid":"transfer-zip-standard-".concat(t),children:[(0,Te.jsx)("option",{value:"",children:"\u2014 keine \u2014"}),Z("standard").map(e=>(0,Te.jsx)("option",{value:e.zip_path,children:e.zip_path},"s-".concat(e.zip_path)))]})}),(0,Te.jsx)("td",{className:"py-2",children:(0,Te.jsxs)(vy,{value:(null===(a=L[e])||void 0===a?void 0:a.zusatz)||"",onChange:t=>
2W(e,"zusatz",t.target.value),"data-testid":"transfer-zip-zusatz-".concat(t),children:[(0,Te.jsx)("option",{value:"",children:"\u2014 keine \u2014"}),Z("zusatz").map(e=>(0,Te.jsx)("option",{value:e.zip_path,children:e.zip_path},"z-".concat(e.zip_path)))]})})]},e)})})]})})]}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground mb-4",children:[(m.kpi_order||[]).length," Kennzahlen \xb7 ",(m.sonderfragen||[]).length," Sonderfragen \xb7 ",G.length," Abteilungen erkannt."]}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)(fy,{onClick:async()=>{if(K){V(!0);try{const e=[];Object.entries(L).forEach(t=>{let n=Le(t,2),a=n[0],r=n[1];["standard","zusatz"].forEach(t=>{r[t]&&e.push({zip_path:r[t],category:t,department_name:a})})});const t=d(d({firma_id:N},"existing"===z?{branch_id:R}:{branch_name:M.trim()}),{},{mapping:e}),n=new FormData;n.append("file",l),n.append("meta",JSON.stringify(t));const a=(await Ps.post("/import/transfer/zip-commit",n)).data;Ia.success("Import gespeichert: ".concat(a.departments_total," Abteilungen (").concat(a.departments_archived," archiviert, ").concat(a.pdfs_linked," PDFs).")),c(null),p(null),B({}),g([]),S(""),O(""),I(""),H.current&&(H.current.value=""),s&&s()}catch(sse){Ia.error(Cs(sse))}V(!1)}},disabled:!K||U,"data-testid":"transfer-zip-commit-btn",children:[U?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(KS,{size:15})," Import speichern"]})})]})]})]})})}const RC=e=>null===e||void 0===e||""===e?"\u2014":String(e);function OC(e){var t,n,r,i;let s=e.onDone;const o=Le((0,a.useState)(null),2),l=o[0],c=o[1],u=Le((0,a.useState)(null),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1],x=Le((0,a.useState)([]),2),v=x[0],b=x[1],y=Le((0,a.useState)(""),2),w=y[0],j=y[1],k=Le((0,a.useState)("new"),2),N=k[0],S=k[1],_=Le((0,a.useState)([]),2),z=_[0],E=_[1],C=Le((0,a.useState)(""),2),P=C[0],A=C[1],T=Le((0,a.useState)(""),2),R=T[0],O=T[1],D=Le((0,a.useState)(""),2),M=D[0],I=D[1],F=Le((0,a.useState)({total:"",byDept:{}}),2),L=F[0],B=F[1],q=Le((0,a.useState)(!1),2),U=q[0],V=q[1],H=(0,a.useRef)(null);(0,a.useEffect)(()=>{Ps.get("/firmen").then(e=>b(e.data||[])).catch(()=>{})},[]),(0,a.useEffect)(()=>{w?Ps.get("/branches?firma_id=".concat(w)).then(e=>{const t=[...e.data||[]].sort((e,t)=>Number(t.is_central)-Number(e.is_central)||(e.name||"").localeCompare(t.name||""));E(t);const n=t.find(e=>e.is_central&&"archived"!==e.status);n?(S("existing"),A(n.id)):0===t.length&&S("new")}).catch(()=>E([])):E([])},[w]);const W=m&&w&&("existing"===N?P:R.trim()),K=(null===m||void 0===m?void 0:m.departments)||[],G=(null===m||void 0===m?void 0:m.kpi_order)||[];return(0,Te.jsx)(by,{className:"p-6 mb-6","data-testid":"care-pdf-card",children:(0,Te.jsxs)("div",{className:"flex items-start gap-4",children:[(0,Te.jsx)("span",{className:"w-11 h-11 rounded-md bg-primary/10 flex items-center justify-center text-primary shrink-0",children:(0,Te.jsx)(pS,{size:22})}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-1",children:"Care-Bericht (PDF) importieren"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4 max-w-2xl",children:"Einen fertigen PERSENTIS-Care-Bericht als PDF hochladen. Beteiligung und die Werte der Ergebnis-Matrix (Unterdimensionen je Abteilung + Gesamt) werden ausgelesen, 1:1 gespeichert und beim Kunden wie eine regul\xe4re Care-Auswertung angezeigt. Der Bericht wird an jede Abteilung angeh\xe4ngt."}),(0,Te.jsx)("input",{ref:H,type:"file",accept:".pdf",className:"hidden","data-testid":"care-pdf-input",onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(n){c(n),g(!0),p(null),B({total:"",byDept:{}});try{var a,r;const e=new FormData;e.append("file",n);const t=await Ps.post("/import/care-pdf/preview",e);p(t.data),M||I(null!==(a=t.data)&&void 0!==a&&null!==(r=a.meta)&&void 0!==r&&r.customer?"Care \u2013 ".concat(t.data.meta.customer):""),Ia.success("".concat((t.data.departments||[]).length," Abteilungen, ").concat((t.data.kpi_order||[]).length," Kennzahlen erkannt."))}catch(sse){Ia.error(Cs(sse)),c(null)}g(!1)}}}),(0,Te.jsxs)(fy,{onClick:()=>{var e;return null===(e=H.current)||void 0===e?void 0:e.click()},disabled:f,"data-testid":"care-pdf-btn",children:[f?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(SS,{size:15})," Care-PDF ausw\xe4hlen"]}),l&&(0,Te.jsx)("span",{className:"ml-3 text-sm text-muted-foreground",children:l.name}),m&&(0,Te.jsxs)("div",{className:"mt-6",children:[(m.warnings||[]).length>0&&(0,Te.jsxs)("div",{className:"flex items-start gap-2 text-xs text-amber-700 bg-amber-50 border border-amber-200 rounded-md p-3 mb-5","data-testid":"care-pdf-warnings",children:[(0,Te.jsx)(k_,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsx)("span",{children:m.warnings.join(" ")})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 text-sm mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Kunde (erkannt)"}),(0,Te.jsx)("div",{className:"font-semibold","data-testid":"care-pdf-customer",children:RC(null===(t=m.meta)||void 0===t?void 0:t.customer)})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Abteilungen"}),(0,Te.jsx)("div",{className:"font-semibold",children:K.length})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-muted-foreground text-xs",children:"Kennzahlen"}),(0,Te.jsx)("div",{className:"font-semibold",children:G.length})]})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-5",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold mb-1",children:"Firma (bestehend)"}),(0,Te.jsxs)(vy,{value:w,onChange:e=>{j(e.target.value),A("")},"data-testid":"care-pdf-firma-select",children:[(0,Te.jsx)("option",{value:"",children:"\u2014 Firma w\xe4hlen \u2014"}),v.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.name},e.id))]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold mb-1",children:"Ziel (Zentrale / Filiale)"}),(0,Te.jsxs)("div",{className:"flex gap-2 mb-2 text-xs",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>S("new"),"data-testid":"care-pdf-branch-mode-new",className:"px-2 py-1 rounded ".concat("new"===N?"bg-primary text-white":"bg-zinc-100"),children:"Neu anlegen"}),(0,Te.jsx)("button",{type:"button",onClick:()=>S("existing"),disabled:0===z.length,"data-testid":"care-pdf-branch-mode-existing",className:"px-2 py-1 rounded ".concat("existing"===N?"bg-primary text-white":"bg-zinc-100"," ").concat(0===z.length?"opacity-40":""),children:"Bestehende"})]}),"existing"===N?(0,Te.jsxs)(vy,{value:P,onChange:e=>A(e.target.value),"data-testid":"care-pdf-branch-select",children:[(0,Te.jsx)("option",{value:"",children:"\u2014 Ziel w\xe4hlen \u2014"}),z.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.is_central?"".concat(e.name," (Zentrale \xb7 Hauptbereich)"):e.name},e.id))]}):(0,Te.jsx)("input",{className:"w-full border rounded px-3 py-2 text-sm",placeholder:(null===(n=m.meta)||void 0===n?void 0:n.customer)||"Filialname",value:R,onChange:e=>O(e.target.value),"data-testid":"care-pdf-branch-name-input"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold mb-1",children:"Bezeichnung der Umfrage"}),(0,Te.jsx)("input",{className:"w-full border rounded px-3 py-2 text-sm",placeholder:"z. B. Care 2024",value:M,onChange:e=>I(e.target.value),"data-testid":"care-pdf-label-input"})]})]}),(0,Te.jsxs)("div",{className:"flex items-start gap-2 text-xs text-muted-foreground bg-[#FAFAFA] rounded-md p-3 mb-5",children:[(0,Te.jsx)(Sf,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsxs)("span",{children:["Erkannte Abteilungen werden angelegt/aktiviert; bestehende, nicht genannte Abteilungen der Ziel-Filiale werden ",(0,Te.jsx)("b",{children:"archiviert"}),"."]})]}),(0,Te.jsxs)("div",{className:"mb-5 overflow-x-auto",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-2",children:"Erkannte Werte (zur Pr\xfcfung)"}),(0,Te.jsxs)("table",{className:"w-full text-sm","data-testid":"care-pdf-preview-table",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-xs text-muted-foreground border-b",children:[(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Kennzahl"}),(0,Te.jsx)("th",{className:"py-2 pr-4 font-semibold",children:"Gesamt"}),K.map(e=>(0,Te.jsx)("th",{className:"py-2 pr-4 whitespace-nowrap",children:e.name},e.name))]})}),(0,Te.jsxs)("tbody",{children:[(0,Te.jsxs)("tr",{className:"border-b text-xs text-muted-foreground",children:[(0,Te.jsx)("td",{className:"py-2 pr-4 font-medium",children:"Teilgenommen / Eingeladen"}),(0,Te.jsxs)("td",{className:"py-2 pr-4",children:[RC(null===(r=m.total_participation)||void 0===r?void 0:r.participants),"/",RC(null===(i=m.total_participation)||void 0===i?void 0:i.headcount)]}),K.map(e=>(0,Te.jsxs)("td",{className:"py-2 pr-4",children:[RC(e.participants),"/",RC(e.headcount)]},e.name))]}),(0,Te.jsxs)("tr",{className:"border-b bg-amber-50/60","data-testid":"care-pdf-gen-row",children:[(0,Te.jsxs)("td",{className:"py-2 pr-4 font-medium text-amber-800",children:["Mentales Wohlbefinden",(0,Te.jsx)("span",{className:"block text-[10px] font-normal text-amber-700/80",children:"manuell eintragen (0\u2013100)"})]}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:(0,Te.jsx)("input",{type:"number",min:"0",max:"100",placeholder:"\u2014",className:"w-16 border rounded px-2 py-1 text-sm font-semibold","data-testid":"care-pdf-gen-total",value:L.total,onChange:e=>B(t=>d(d({},t),{},{total:e.target.value}))})}),K.map(e=>{var t;return(0,Te.jsx)("td",{className:"py-2 pr-4",children:(0,Te.jsx)("input",{type:"number",min:"0",max:"100",placeholder:"\u2014",className:"w-16 border rounded px-2 py-1 text-sm","data-testid":"care-pdf-gen-".concat(e.name),value:null!==(t=L.byDept[e.name])&&void 0!==t?t:"",onChange:t=>B(n=>d(d({},n),{},{byDept:d(d({},n.byDept),{},{[e.name]:t.target.value})}))})},e.name)})]}),G.map(e=>{var t,n;return(0,Te.jsxs)("tr",{className:"border-b last:border-0",children:[(0,Te.jsx)("td",{className:"py-2 pr-4",children:e}),(0,Te.jsx)("td",{className:"py-2 pr-4 font-semibold",children:RC(null===(t=m.kpis)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.total)}),K.map(t=>{var n,a,r;return(0,Te.jsx)("td",{className:"py-2 pr-4",children:RC(null===(n=m.kpis)||void 0===n||null===(a=n[e])||void 0===a||null===(r=a.by_dept)||void 0===r?void 0:r[t.name])},t.name)}
2)]},e)})]})]})]}),(0,Te.jsx)("div",{className:"flex justify-end",children:(0,Te.jsxs)(fy,{onClick:async()=>{if(W){V(!0);try{const e=d(d({firma_id:w},"existing"===N?{branch_id:P}:{branch_name:R.trim()}),{},{label:M.trim()||void 0,gen:{total:""===L.total?null:Number(L.total),by_dept:Object.fromEntries(Object.entries(L.byDept).filter(e=>{let t=Le(e,2)[1];return""!==t&&null!==t&&void 0!==t}).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return[n,Number(a)]}))}}),t=new FormData;t.append("file",l),t.append("meta",JSON.stringify(e));const n=(await Ps.post("/import/care-pdf/commit",t)).data;Ia.success("Care-Import gespeichert: ".concat(n.departments_total," Abteilungen (").concat(n.departments_archived," archiviert).")),c(null),p(null),j(""),A(""),O(""),I(""),B({total:"",byDept:{}}),H.current&&(H.current.value=""),s&&s()}catch(sse){Ia.error(Cs(sse))}V(!1)}},disabled:!W||U,"data-testid":"care-pdf-commit-btn",children:[U?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(KS,{size:15})," Care-Import speichern"]})})]})]})]})})}function DC(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=sn(),i=async()=>{try{const e=await Ps.get("/import/transfer/imported");n(e.data||[])}catch(rse){}};(0,a.useEffect)(()=>{i()},[]);return(0,Te.jsxs)("div",{"data-testid":"transfer-import-page",translate:"no",children:[(0,Te.jsx)(ky,{title:"Historien-Import",subtitle:"Ein ZIP-Paket (Transfer-Excel + PDF-Ordner) oder einen fertigen Care-Bericht (PDF) hochladen \u2013 die Umfrage wird angelegt, die Werte 1:1 \xfcbernommen und beim Kunden wie eine regul\xe4re Auswertung angezeigt."}),(0,Te.jsx)(TC,{onDone:i}),(0,Te.jsx)(OC,{onDone:i}),(0,Te.jsxs)(by,{className:"p-6","data-testid":"transfer-imported-card",children:[(0,Te.jsxs)("h3",{className:"font-heading text-base mb-4",children:["Bereits importierte Umfragen (",t.length,")"]}),0===t.length?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:"Noch keine Umfragen importiert."}):(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-xs text-muted-foreground border-b",children:[(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Umfrage"}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Firma"}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Filiale"}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Start"}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"Abt."}),(0,Te.jsx)("th",{className:"py-2 pr-4",children:"PDFs"}),(0,Te.jsx)("th",{className:"py-2"})]})}),(0,Te.jsx)("tbody",{children:t.map(e=>{return(0,Te.jsxs)("tr",{className:"border-b last:border-0","data-testid":"transfer-imported-row-".concat(e.token),children:[(0,Te.jsx)("td",{className:"py-2 pr-4 font-medium",children:e.label||"\u2014"}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:e.firma_name}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:e.branch_name}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:(t=e.start_date,null===t||void 0===t||""===t?"\u2014":String(t))}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:e.department_count}),(0,Te.jsx)("td",{className:"py-2 pr-4",children:e.pdf_count}),(0,Te.jsx)("td",{className:"py-2 text-right",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-3",children:[(0,Te.jsx)("button",{onClick:()=>r("/admin/transfer-import/".concat(e.token)),className:"text-primary","data-testid":"transfer-imported-view-".concat(e.token),title:"Auswertung ansehen",children:(0,Te.jsx)(tS,{size:16})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{try{const t=await Ps.get("/import/transfer/imported/".concat(e,"/export"),{responseType:"blob"}),n=window.URL.createObjectURL(new Blob([t.data],{type:"application/zip"})),a=document.createElement("a");a.href=n,a.download="PERSENTIS_Historie_".concat(e,".zip"),document.body.appendChild(a),a.click(),a.remove(),window.URL.revokeObjectURL(n),Ia.success("B\xfcndel exportiert.")}catch(rse){Ia.error(Cs(rse))}})(e.token),className:"text-zinc-600","data-testid":"transfer-imported-export-".concat(e.token),title:"Als B\xfcndel exportieren",children:(0,Te.jsx)(zE,{size:16})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{if(window.confirm("Diese importierte Umfrage inkl. aller Ergebnisse l\xf6schen? Die Struktur (Filiale/Abteilungen) bleibt bestehen."))try{await Ps.delete("/import/transfer/imported/".concat(e)),Ia.success("Importierte Umfrage gel\xf6scht."),i()}catch(rse){Ia.error(Cs(rse))}})(e.token),className:"text-red-500","data-testid":"transfer-imported-delete-".concat(e.token),children:(0,Te.jsx)(y_,{size:15})})]})})]},e.token);var t})})]})})]})]})}const MC=kf("eraser",[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]]),IC=["__scopeAlertDialog"],FC=["__scopeAlertDialog"],LC=["__scopeAlertDialog"],BC=["__scopeAlertDialog"],qC=["__scopeAlertDialog","children"],UC=["__scopeAlertDialog"],VC=["__scopeAlertDialog"],HC=["__scopeAlertDialog"],WC=["__scopeAlertDialog"];var KC="AlertDialog",GC=Le(Wf(KC,[Zx]),2),ZC=GC[0],YC=(GC[1],Zx()),QC=e=>{const t=e.__scopeAlertDialog,n=Be(e,IC),a=YC(t);return(0,Te.jsx)(Cv,d(d(d({},a),n),{},{modal:!0}))};QC.displayName=KC;var $C=a.forwardRef((e,t)=>
2{const n=e.__scopeAlertDialog,a=Be(e,FC),r=YC(n);return(0,Te.jsx)(Pv,d(d(d({},r),a),{},{ref:t}))});$C.displayName="AlertDialogTrigger";var XC=e=>{const t=e.__scopeAlertDialog,n=Be(e,LC),a=YC(t);return(0,Te.jsx)(Av,d(d({},a),n))};XC.displayName="AlertDialogPortal";var JC=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,a=Be(e,BC),r=YC(n);return(0,Te.jsx)(Tv,d(d(d({},r),a),{},{ref:t}))});JC.displayName="AlertDialogOverlay";var eP="AlertDialogContent",tP=Le(ZC(eP),2),nP=tP[0],aP=tP[1],rP=ig("AlertDialogContent"),iP=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,r=e.children,i=Be(e,qC),s=YC(n),o=a.useRef(null),l=Uf(t,o),c=a.useRef(null);return(0,Te.jsx)(Sv,{contentName:eP,titleName:sP,docsSlug:"alert-dialog",children:(0,Te.jsx)(nP,{scope:n,cancelRef:c,children:(0,Te.jsxs)(Rv,d(d(d({role:"alertdialog"},s),i),{},{ref:l,onOpenAutoFocus:Lf(i.onOpenAutoFocus,e=>{var t;e.preventDefault(),null===(t=c.current)||void 0===t||t.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:[(0,Te.jsx)(rP,{children:r}),(0,Te.jsx)(pP,{contentRef:o})]}))})})});iP.displayName=eP;var sP="AlertDialogTitle",oP=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,a=Be(e,UC),r=YC(n);return(0,Te.jsx)(Ov,d(d(d({},r),a),{},{ref:t}))});oP.displayName=sP;var lP="AlertDialogDescription",cP=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,a=Be(e,VC),r=YC(n);return(0,Te.jsx)(Dv,d(d(d({},r),a),{},{ref:t}))});cP.displayName=lP;var dP=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,a=Be(e,HC),r=YC(n);return(0,Te.jsx)(Mv,d(d(d({},r),a),{},{ref:t}))});dP.displayName="AlertDialogAction";var uP="AlertDialogCancel",mP=a.forwardRef((e,t)=>{const n=e.__scopeAlertDialog,a=Be(e,WC),r=aP(uP,n).cancelRef,i=YC(n),s=Uf(t,r);return(0,Te.jsx)(Mv,d(d(d({},i),a),{},{ref:s}))});mP.displayName=uP;var pP=e=>{let t=e.contentRef;const n="`".concat(eP,"` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the `").concat(eP,"` by passing a `").concat(lP,"` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an `id` and passing the same value to the `aria-describedby` prop in `").concat(eP,"`. If the description is confusing or duplicative for sighted users, you can use the `@radix-ui/react-visually-hidden` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog");return a.useEffect(()=>{var e;document.getElementById(null===(e=t.current)||void 0===e?void 0:e.getAttribute("aria-describedby"))||console.warn(n)},[n,t]),null},hP=QC,fP=XC,gP=JC,xP=iP,vP=dP,bP=mP,yP=oP,wP=cP;const jP=["className","variant","size","asChild"],kP=Yz("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),NP=a.forwardRef((e,t)=>{let n=e.className,a=e.variant,r=e.size,i=e.asChild,s=void 0!==i&&i,o=Be(e,jP);const l=s?ng:"button";return(0,Te.jsx)(l,d({className:Gb(kP({variant:a,size:r,className:n})),ref:t},o))});NP.displayName="Button";const SP=["className"],_P=["className"],zP=["className"],EP=["className"],CP=["className"],PP=["className"],AP=["className"],TP=["className"],RP=hP,OP=fP,DP=a.forwardRef((e,t)=>
2{let n=e.className,a=Be(e,SP);return(0,Te.jsx)(gP,d(d({className:Gb("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},a),{},{ref:t}))});DP.displayName=gP.displayName;const MP=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,_P);return(0,Te.jsxs)(OP,{children:[(0,Te.jsx)(DP,{}),(0,Te.jsx)(xP,d({ref:t,className:Gb("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n)},a))]})});MP.displayName=xP.displayName;const IP=e=>{let t=e.className,n=Be(e,zP);return(0,Te.jsx)("div",d({className:Gb("flex flex-col space-y-2 text-center sm:text-left",t)},n))};IP.displayName="AlertDialogHeader";const FP=e=>{let t=e.className,n=Be(e,EP);return(0,Te.jsx)("div",d({className:Gb("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};FP.displayName="AlertDialogFooter";const LP=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,CP);return(0,Te.jsx)(yP,d({ref:t,className:Gb("text-lg font-semibold",n)},a))});LP.displayName=yP.displayName;const BP=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,PP);return(0,Te.jsx)(wP,d({ref:t,className:Gb("text-sm text-muted-foreground",n)},a))});BP.displayName=wP.displayName;const qP=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,AP);return(0,Te.jsx)(vP,d({ref:t,className:Gb(kP(),n)},a))});qP.displayName=vP.displayName;const UP=a.forwardRef((e,t)=>{let n=e.className,a=Be(e,TP);return(0,Te.jsx)(bP,d({ref:t,className:Gb(kP({variant:"outline"}),"mt-2 sm:mt-0",n)},a))});UP.displayName=bP.displayName;const VP={firmen:"Firmen",branches:"Filialen",departments:"Abteilungen",users:"Nutzer",invitations:"Umfragen",imported_results:"Ergebnisse",responses:"Antworten",contracts:"Vertr\xe4ge"};function HP(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(null),2),l=o[0],c=o[1],d=Le((0,a.useState)(!1),2),u=d[0],m=d[1],p=Le((0,a.useState)(null),2),h=p[0],f=p[1],g=(0,a.useRef)(null),x=Le((0,a.useState)(null),2),v=x[0],b=x[1],y=Le((0,a.useState)(!1),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)(()=>new Set),2),z=_[0],E=_[1],C=Le((0,a.useState)(!1),2),P=C[0],A=C[1],T=Le((0,a.useState)(""),2),R=T[0],O=T[1],D=Le((0,a.useState)(!1),2),M=D[0],I=D[1],F=Le((0,a.useState)(!1),2),L=F[0],B=F[1],q=Le((0,a.useState)(!1),2),U=q[0],V=q[1],H=(0,a.useCallback)(async()=>{s(!0);try{var e;const t=await Ps.get("/admin/customer-transfer/firmen");n((null===(e=t.data)||void 0===e?void 0:e.firmen)||[])}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},[]);(0,a.useEffect)(()=>{H()},[H]);const W=()=>{S(!1),E(new Set)},K=(0,a.useMemo)(()=>t.filter(e=>!z.has(e.firma_id)).length,[t,z]);return(0,Te.jsxs)("div",{className:"max-w-5xl","data-testid":"customer-transfer-page",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,Te.jsx)(ky,{title:"Kunden-Transfer",subtitle:"Einzelne Firmen manuell zwischen Umgebungen \xfcbertragen. Export in der Quelle herunterladen, in der Zielumgebung importieren. Import ist nicht-destruktiv. Nicht gew\xfcnschte Firmen k\xf6nnen hier gel\xf6scht werden."}),(0,Te.jsxs)("div",{className:"flex gap-2 shrink-0",children:[N?(0,Te.jsx)(fy,{variant:"secondary",onClick:W,"data-testid":"customer-transfer-cleanup-cancel",children:"Abbrechen"}):(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{E(new Set(t.map(e=>e.firma_id))),S(!0)},"data-testid":"customer-transfer-cleanup-btn",children:[(0,Te.jsx)(MC,{size:16})," Aufr\xe4umen"]}),!N&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>B(!0),"data-testid":"customer-transfer-purge-demo-btn",children:[(0,Te.jsx)(If,{size:16})," Demo bereinigen"]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:H,"data-testid":"customer-transfer-refresh",children:[(0,Te.jsx)(NS,{size:16})," Aktualisieren"]})]})]}),!N&&(0,Te.jsxs)(by,{className:"p-5 mt-2","data-testid":"customer-transfer-import-card",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(SS,{size:18,className:"text-primary shrink-0"}),(0,Te.jsx)("h3",{className:"font-heading text-lg font-semibold",children:"Firma importieren"})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Zuvor exportierte Bundle-Datei (.json) hochladen. Die Firma inkl. Filialen, Abteilungen, Nutzern, Umfragen und Ergebnissen wird in diese Datenbank \xfcbernommen."})]}),(0,Te.jsxs)("div",{className:"shrink-0",children:[(0,Te.jsx)("input",{ref:g,type:"file",accept:"application/json,.json",onChange:async e=>{var t;const n=null===(t=e.target.files)||void 0===t?void 0:t[0];if(g.current&&(g.current.value=""),n){m(!0),f(null);try{var a,r;const e=await n.text();let t;try{t=JSON.parse(e)}catch(i){throw new Error("Datei ist kein g\xfcltiges JSON.")}const s=await Ps.post("/admin/customer-transfer/import",t);f(s.data),Ia.success("\u201e".concat((null===(a=s.data)||void 0===a?void 0:a.firma_name)||"Firma",'" importiert \u2013 ').concat(null===(r=s.data)||void 0===r?void 0:r.inserted_total," neue Datens\xe4tze.")),H()}catch(e){Ia.error(null===e||void 0===e||!e.message||null!==e&&void 0!==e&&e.response?Cs(e):e.message)}finally{m(!1)}}},className:"hidden","data-testid":"customer-transfer-file-input"}),(0,Te.jsxs)(fy,{onClick:()=>{var e;return null===(e=g.current)||void 0===e?void 0:e.click()},disabled:u,"data-testid":"customer-transfer-import-btn",children:[u?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(SS,{size:16}),u?"Importiere \u2026":"Bundle-Datei w\xe4hlen"]})]})]}),h&&(0,Te.jsxs)("div",{className:"mt-4 rounded-lg border border-emerald-200 bg-emerald-50 p-4","data-testid":"customer-transfer-import-result",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-emerald-800 font-semibold",children:[(0,Te.jsx)(Ef,{size:16})," \u201e",h.firma_name,'" importiert \u2013 ',h.inserted_total," neue Datens\xe4tze"]}),(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-2",children:Object.entries(h.counts||{}).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsxs)("span",{className:"text-xs px-2.5 py-1 rounded-full bg-white text-zinc-700 border border-zinc-200",children:[VP[n]||n,": ",(0,Te.jsxs)("strong",{children:["+",a.inserted]}),a.skipped>0&&(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[" (",a.skipped," vorhanden)"]})]},n)})})]})]}),N&&(0,Te.jsx)(by,{className:"p-4 mt-2 border-red-200 bg-red-50/50","data-testid":"customer-transfer-prune-bar",children:(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("div",{className:"text-sm",children:[(0,Te.jsx)("div",{className:"font-semibold text-red-800",children:"Aufr\xe4umen \u2013 Firmen zum Behalten ausw\xe4hlen"}),(0,Te.jsxs)("div",{className:"text-muted-foreground mt-0.5",children:[z.size," behalten \xb7 ",(0,Te.jsxs)("strong",{className:"text-red-700",children:[K," werden gel\xf6scht"]})]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Te.jsx)(fy,{variant:"ghost",onClick:()=>E(new Set(t.map(e=>e.firma_id))),"data-testid":"customer-transfer-keep-all",children:"Alle behalten"}),(0,Te.jsx)(fy,{variant:"ghost",onClick:()=>E(new Set),"data-testid":"customer-transfer-keep-none",children:"Alle abw\xe4hlen"}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>{O(""),A(!0)},disabled:0===K,"data-testid":"customer-transfer-prune-btn",children:[(0,Te.jsx)(y_,{size:16})," Nicht gew\xe4hlte entfernen (",K,")"]})]})]})}),(0,Te.jsx)("div",{className:"mt-6 mb-3 flex items-center gap-2 text-sm font-semibold text-muted-foreground",children:N?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(y_,{size:15})," Firmen (H\xe4kchen = behalten)"]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(zE,{size:15})," Firmen exportieren / l\xf6schen"]})}),i?(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground py-16 justify-center","data-testid":"customer-transfer-loading",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Wird geladen \u2026"]}):0===t.length?(0,Te.jsxs)(by,{className:"p-10 text-center text-muted-foreground","data-testid":"customer-transfer-empty",children:[(0,Te.jsx)(Sf,{size:28,className:"mx-auto mb-3 text-muted-foreground
2/60"}),"Keine Firmen in dieser Datenbank."]}):(0,Te.jsx)("div",{className:"space-y-3",children:t.map(e=>(0,Te.jsxs)(by,{className:"p-4 flex items-center justify-between gap-4 flex-wrap","data-testid":"customer-transfer-row-".concat(e.firma_id),children:[(0,Te.jsxs)("div",{className:"min-w-0 flex items-center gap-3",children:[N&&(0,Te.jsx)(Sz,{checked:z.has(e.firma_id),onCheckedChange:()=>(e=>{E(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})})(e.firma_id),"data-testid":"customer-transfer-keep-".concat(e.firma_id)}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(_S,{size:16,className:"text-primary shrink-0"}),(0,Te.jsx)("h3",{className:"font-heading text-base font-semibold truncate","data-testid":"customer-transfer-name-".concat(e.firma_id),children:e.name}),e.kundennummer&&(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground tabular-nums","data-testid":"customer-transfer-kundennr-".concat(e.firma_id),children:["Kd-Nr. ",e.kundennummer]}),e.is_demo_sandbox&&(0,Te.jsx)("span",{className:"text-xs font-semibold px-2 py-0.5 rounded-full bg-amber-50 text-amber-700",children:"Demo"})]}),(0,Te.jsx)("div",{className:"mt-1.5 flex flex-wrap gap-1.5",children:Object.entries(e.counts||{}).filter(e=>{let t=Le(e,2)[1];return Number(t)>0}).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsxs)("span",{className:"text-xs px-2 py-0.5 rounded-full bg-zinc-100 text-zinc-700",children:[VP[n]||n,": ",(0,Te.jsx)("strong",{children:a})]},n)})})]})]}),!N&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>(async e=>{c(e.firma_id);try{var t;const n=await Ps.get("/admin/customer-transfer/export/".concat(e.firma_id)),a=new Blob([JSON.stringify(n.data,null,2)],{type:"application/json"}),r=URL.createObjectURL(a),i=document.createElement("a");i.href=r,i.download="kunde_".concat((null===(t=n.data)||void 0===t?void 0:t.key)||e.firma_id,".json"),document.body.appendChild(i),i.click(),i.remove(),URL.revokeObjectURL(r),Ia.success("Export \u201e".concat(e.name,'" heruntergeladen.'))}catch(rse){Ia.error(Cs(rse))}finally{c(null)}})(e),disabled:l===e.firma_id,"data-testid":"customer-transfer-export-".concat(e.firma_id),children:[l===e.firma_id?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(zE,{size:16}),"Exportieren"]}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>b(e),"data-testid":"customer-transfer-delete-".concat(e.firma_id),children:[(0,Te.jsx)(y_,{size:16})," L\xf6schen"]})]})]},e.firma_id))}),(0,Te.jsx)(RP,{open:!!v,onOpenChange:e=>{e||b(null)},children:(0,Te.jsxs)(MP,{"data-testid":"customer-transfer-delete-dialog",children:[(0,Te.jsxs)(IP,{children:[(0,Te.jsxs)(LP,{children:["Firma \u201e",null===v||void 0===v?void 0:v.name,'" l\xf6schen?']}),(0,Te.jsx)(BP,{children:"Diese Firma wird inklusive aller Filialen, Abteilungen, Umfragen, Antworten, Import-Ergebnisse, Vertr\xe4ge und Kunden-Nutzer aus dieser Datenbank entfernt. Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."})]}),(0,Te.jsxs)(FP,{children:[(0,Te.jsx)(UP,{"data-testid":"customer-transfer-delete-cancel",children:"Abbrechen"}),(0,Te.jsxs)(qP,{onClick:e=>{e.preventDefault(),(async()=>{if(v){j(!0);try{var t;const e=await Ps.delete("/admin/customer-transfer/firma/".concat(v.firma_id));Ia.success("\u201e".concat(null===(t=e.data)||void 0===t?void 0:t.firma_name,'" gel\xf6scht.')),b(null),H()}catch(e){Ia.error(Cs(e))}finally{j(!1)}}})()},disabled:w,className:"bg-red-600 hover:bg-red-700","data-testid":"customer-transfer-delete-confirm",children:[w?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(y_,{size:16})," Endg\xfcltig l\xf6schen"]})]})]})}),(0,Te.jsx)(RP,{open:P,onOpenChange:e=>{e||(A(!1),O(""))},children:(0,Te.jsxs)(MP,{"data-testid":"customer-transfer-prune-dialog",children:[(0,Te.jsxs)(IP,{children:[(0,Te.jsxs)(LP,{children:[K," Firma(en) endg\xfcltig entfernen?"]}),(0,Te.jsxs)(BP,{children:["Es werden alle nicht ausgew\xe4hlten Firmen inkl. s\xe4mtlicher Daten (Filialen, Abteilungen, Umfragen, Antworten, Import-Ergebnisse, Vertr\xe4ge, Kunden-Nutzer) gel\xf6scht. ",z.size," Firma(en) bleiben erhalten. Zum Best\xe4tigen bitte ",(0,Te.jsx)("strong",{children:"L\xd6SCHEN"})," eingeben."]})]}),(0,Te.jsx)("input",{value:R,onChange:e=>O(e.target.value),placeholder:"L\xd6SCHEN",className:"w-full rounded-md border border-input px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-red-500","data-testid":"customer-transfer-prune-input"}),(0,Te.jsxs)(FP,{children:[(0,Te.jsx)(UP,{"data-testid":"customer-transfer-prune-cancel",children:"Abbrechen"}),(0,Te.jsxs)(qP,{onClick:e=>{e.preventDefault(),(async()=>{I(!0);try{var t,n;const e=await Ps.post("/admin/customer-transfer/prune",{keep:Array.from(z),confirm:!0});Ia.success("".concat(null===(t=e.data)||void 0===t?void 0:t.deleted_count," Firma(en) entfernt, ").concat(null===(n=e.data)||void 0===n?void 0:n.kept_count," behalten.")),A(!1),O(""),W(),H()}catch(e){Ia.error(Cs(e))}finally{I(!1)}})()},disabled:M||"L\xd6SCHEN"!==R.trim().toUpperCase(),className:"bg-red-600 hover:bg-red-700","data-testid":"customer-transfer-prune-confirm",children:[M?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(y_,{size:16})," ",K," entfernen"]})]})]})}),(0,Te.jsx)(RP,{open:L,onOpenChange:e=>{e||B(!1)},children:(0,Te.jsxs)(MP,{"data-testid":"customer-transfer-purge-demo-dialog",children:[(0,Te.jsxs)(IP,{children:[(0,Te.jsx)(LP,{children:"Demo-/Wallner-Sandboxes bereinigen?"}),(0,Te.jsx)(BP,{children:"Entfernt alle als Demo/Guide markierten Sandbox-Firmen (Wallner GmbH) inkl. aller abh\xe4ngigen Daten. Echte Kundenfirmen sind davon nie betroffen. Der Guide funktioniert weiterhin uneingeschr\xe4nkt und legt bei Bedarf neue, kurzlebige Sandboxes an."})]}),(0,Te.jsxs)(FP,{children:[(0,Te.jsx)(UP,{"data-testid":"customer-transfer-purge-demo-cancel",children:"Abbrechen"}),(0,Te.jsxs)(qP,{onClick:e=>{e.preventDefault(),(async()=>{V(!0);try{var t;const e=await Ps.post("/admin/customer-transfer/purge-demo");Ia.success("".concat((null===(t=e.data)||void 0===t?void 0:t.deleted_count)||0," Demo-/Wallner-Firma(en) entfernt.")),B(!1),H()}catch(e){Ia.error(Cs(e))}finally{V(!1)}})()},disabled:U,className:"bg-red-600 hover:bg-red-700","data-testid":"customer-transfer-purge-demo-confirm",children:[U?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(If,{size:16})," Demo-Firmen entfernen"]})]})]})})]})}function WP(e,t){let n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a.signal,i=a.edges,s=null;const o=null!=i&&i.includes("leading"),l=null==i||i.includes("trailing"),c=()=>{null!==s&&(e.apply(n,s),n=void 0,s=null)};let d=null;const u=()=>{null!=d&&clearTimeout(d),d=setTimeout(()=>{d=null,l&&c(),m()},t)},m=()=>{null!==d&&(clearTimeout(d),d=null),n=void 0,s=null},p=function(){if(null!==r&&void 0!==r&&r.aborted)return;n=this;for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];s=t;const i=null==d;u(),o&&i&&c()};return p.schedule=u,p.cancel=m,p.flush=()=>{c()},null===r||void 0===r||r.addEventListener("abort",m,{once:!0}),p}function KP(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=n.leading,r=void 0===a||a,i=n.trailing;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"!==typeof n&&(n={});const a=n,r=a.leading,i=void 0!==r&&r,s=a.trailing,o=void 0===s||s,l=a.maxWait,c=Array(2);let d;i&&(c[0]="leading"),o&&(c[1]="trailing");let u=null;const m=WP(function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];d=e.apply(this,n),u=null},t,{edges:c}),p=function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return null!=l&&(null===u&&(u=Date.now()),Date.now()-u>=l)?(d=e.apply(this,n),u=Date.now(),m.cancel(),m.schedule(),d):(m.apply(this,n),d)};return p.cancel=m.cancel,p.flush=()=>(m.flush(),d),p}(e,t,{leading:r,maxWait:t,trailing:void 0===i||i})}function GP(e){return"__proto__"===e}function ZP(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function YP(e){var t;return"string"===typeof e||"symbol"===typeof e?e:Object.is(null===e||void 0===e||null===(t=e.valueOf)||void 0===t?void 0:t.call(e),-0)?"-0":String(e)}function QP(e){if(null==e)return"";if("string"===typeof e)return e;if(Array.isArray(e))return e.map(QP).join(",");const t=String(e);return"0"===t&&Object.is(Number(e),-0)?"-0":t}function $P(e){if(Array.isArray(e))return e.map(YP);if("symbol"===typeof e)return[e];const t=[],n=(e=QP(e)).length;if(0===n)return t;let a=0,r="",i="",s=!1;for(46===e.charCodeAt(0)&&(t.push(""),a++);a<n;){const o=e[a];i?"\\"===o&&a+1<n?(a++,r+=e[a]):o===i?i="":r+=o:s?'"'===o||"'"===o?i=o:"]"===o?(s=!1,t.push(r),r=""):r+=o:"["===o?(s=!0,r&&(t.push(r),r="")):"."===o?r&&(t.push(r),r=""):r+=o,a++}return r&&t.push(r),t}function XP(e,t,n){if(null==e)return n;
2switch(typeof t){case"string":{if(GP(t))return n;const a=e[t];return void 0===a?ZP(t)?XP(e,$P(t),n):n:a}case"number":case"symbol":{"number"===typeof t&&(t=YP(t));const a=e[t];return void 0===a?n:a}default:{var a;if(Array.isArray(t))return function(e,t,n){if(0===t.length)return n;let a=e;for(let r=0;r<t.length;r++){if(null==a)return n;if(GP(t[r]))return n;a=a[t[r]]}return void 0===a?n:a}(e,t,n);if(GP(t=Object.is(null===(a=t)||void 0===a?void 0:a.valueOf(),-0)?"-0":String(t)))return n;const r=e[t];return void 0===r?n:r}}}function JP(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function eA(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return e.reduce((e,t,a)=>{var r=n[a-1];return"string"===typeof r?e+r+t:void 0!==r?e+JP(r)+t:e+t},"")}var tA=e=>0===e?0:e>0?1:-1,nA=e=>"number"==typeof e&&e!=+e,aA=e=>"string"===typeof e&&e.indexOf("%")===e.length-1,rA=e=>("number"===typeof e||e instanceof Number)&&!nA(e),iA=e=>rA(e)||"string"===typeof e,sA=0,oA=e=>{var t=++sA;return"".concat(e||"").concat(t)},lA=function(e,t){var n,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!rA(e)&&"string"!==typeof e)return a;
2if(aA(e)){if(null==t)return a;var i=e.indexOf("%");n=t*parseFloat(e.slice(0,i))/100}else n=+e;return nA(n)&&(n=a),r&&null!=t&&n>t&&(n=t),n},cA=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},a=0;a<t;a++){if(n[String(e[a])])return!0;n[String(e[a])]=!0}return!1};function dA(e,t,n){return rA(e)&&rA(t)?JP(e+n*(t-e)):t}function uA(e,t,n){if(e&&e.length)return e.find(e=>e&&("function"===typeof t?t(e):XP(e,t))===n)}var mA=e=>null===e||"undefined"===typeof e,pA=e=>mA(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function hA(e){return null!=e}function fA(){}var gA=function(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),r=2;r<n;r++)a[r-2]=arguments[r];if("undefined"!==typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=0;console.warn(t.replace(/%s/g,()=>a[i++]))}},xA=(e,t,n)=>{var a=n.width,r=void 0===a?"100%":a,i=n.height,s=void 0===i?"100%":i,o=n.aspect,l=n.maxHeight,c=aA(r)?e:Number(r),d=aA(s)?t:Number(s);return o&&o>0&&(c?d=c/o:d&&(c=d*o),l&&null!=d&&d>l&&(d=l)),{calculatedWidth:c,calculatedHeight:d}},vA={width:0,height:0,overflow:"visible"},bA={width:0,overflowX:"visible"},yA={height:0,overflowY:"visible"},wA={},jA=e=>{var t=e.width,n=e.height,a=aA(t),r=aA(n);return a&&r?vA:a?bA:r?yA:wA};function kA(e){return Number.isFinite(e)}function NA(e){return"number"===typeof e&&e>0&&Number.isFinite(e)}function SA(){return SA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},SA.apply(null,arguments)}function _A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function zA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_A(Object(n),!0).forEach(function(t){EA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CA=(0,a.createContext)({width:-1,height:-1});function PA(e){var t=e.children,n=e.width,r=e.height,i=(0,a.useMemo)(()=>({width:n,height:r}),[n,r]);return function(e){return NA(e.width)&&NA(e.height)}(i)?a.createElement(CA.Provider,{value:i},t):null}var AA=()=>(0,a.useContext)(CA),TA=(0,a.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=void 0===r?{width:-1,height:-1}:r,s=e.width,o=e.height,l=e.minWidth,c=void 0===l?0:l,d=e.minHeight,u=e.maxHeight,m=e.children,p=e.debounce,h=void 0===p?0:p,f=e.id,g=e.className,x=e.onResize,v=e.style,b=void 0===v?{}:v,y=(0,a.useRef)(null),w=(0,a.useRef)();w.current=x,(0,a.useImperativeHandle)(t,()=>y.current);var j=Le((0,a.useState)({containerWidth:i.width,containerHeight:i.height}),2),k=j[0],N=j[1],S=(0,a.useCallback)((e,t)=>{N(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]);(0,a.useEffect)(()=>{if(null==y.current||"undefined"===typeof ResizeObserver)return fA;var e=e=>{var t,n=e[0].contentRect,a=n.width,r=n.height;S(a,r),null===(t=w.current)||void 0===t||t.call(w,a,r)};h>0&&(e=KP(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=y.current.getBoundingClientRect(),a=n.width,r=n.height;return S(a,r),t.observe(y.current),()=>{t.disconnect()}},[S,h]);var _=k.containerWidth,z=k.containerHeight;gA(!n||n>0,"The aspect(%s) must be greater than zero.",n);var E=xA(_,z,{width:s,height:o,aspect:n,maxHeight:u}),C=E.calculatedWidth,P=E.calculatedHeight;return gA(null!=C&&C>0||null!=P&&P>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",C,P,s,o,c,d,n),a.createElement("div",{id:f?"".concat(f):void 0,className:Lv("recharts-responsive-container",g),style:zA(zA({},b),{},{width:s,height:o,minWidth:c,minHeight:d,maxHeight:u}),ref:y},a.createElement("div",{style:jA({width:s,height:o})},a.createElement(PA,{width:C,height:P},m)))}),RA=(0,a.forwardRef)((e,t)=>{var n=AA();if(NA(n.width)&&NA(n.height))return e.children;
2var r=function(e){var t=e.width,n=e.height,a=e.aspect,r=t,i=n;return void 0===r&&void 0===i?(r="100%",i="100%"):void 0===r?r=a&&a>0?void 0:"100%":void 0===i&&(i=a&&a>0?void 0:"100%"),{width:r,height:i}}({width:e.width,height:e.height,aspect:e.aspect}),i=r.width,s=r.height,o=xA(void 0,void 0,{width:i,height:s,aspect:e.aspect,maxHeight:e.maxHeight}),l=o.calculatedWidth,c=o.calculatedHeight;return rA(l)&&rA(c)?a.createElement(PA,{width:l,height:c},e.children):a.createElement(TA,SA({},e,{width:i,height:s,ref:t}))}),OA=Symbol.for("immer-nothing"),DA=Symbol.for("immer-draftable"),MA=Symbol.for("immer-state");function IA(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var FA=Object,LA=FA.getPrototypeOf,BA="constructor",qA="prototype",UA="configurable",VA="enumerable",HA="writable",WA="value",KA=e=>!!e&&!!e[MA];function GA(e){var t;return!!e&&(QA(e)||nT(e)||!!e[DA]||!(null===(t=e[BA])||void 0===t||!t[DA])||aT(e)||rT(e))}var ZA=FA[qA][BA].toString(),YA=new WeakMap;function QA(e){if(!e||!iT(e))return!1;const t=LA(e);if(null===t||t===FA[qA])return!0;const n=FA.hasOwnProperty.call(t,BA)&&t[BA];if(n===Object)return!0;if(!sT(n))return!1;let a=YA.get(n);return void 0===a&&(a=Function.toString.call(n),YA.set(n,a)),a===ZA}function $A(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===XA(e)){(n?Reflect.ownKeys(e):FA.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function XA(e){const t=e[MA];return t?t.type_:nT(e)?1:aT(e)?2:rT(e)?3:0}var JA=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:XA(e))?e.has(t):FA[qA].hasOwnProperty.call(e,t)},eT=function(e,t){return 2===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:XA(e))?e.get(t):e[t]},tT=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:XA(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n};var nT=Array.isArray,aT=e=>e instanceof Map,rT=e=>e instanceof Set,iT=e=>"object"===typeof e,sT=e=>"function"===typeof e,oT=e=>"boolean"===typeof e;var lT=e=>e.copy_||e.base_,cT=e=>e.modified_?e.copy_:e.base_;function dT(e,t){if(aT(e))return new Map(e);if(rT(e))return new Set(e);if(nT(e))return Array[qA].slice.call(e);const n=QA(e);if(!0===t||"class_only"===t&&!n){const t=FA.getOwnPropertyDescriptors(e);delete t[MA];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],i=t[r];!1===i[HA]&&(i[HA]=!0,i[UA]=!0),(i.get||i.set)&&(t[r]={[UA]:!0,[HA]:!0,[VA]:i[VA],[WA]:e[r]})}return FA.create(LA(e),t)}{const t=LA(e);if(null!==t&&n)return d({},e);const a=FA.create(t);return FA.assign(a,e)}}function uT(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return pT(e)||KA(e)||!GA(e)||(XA(e)>1&&FA.defineProperties(e,{set:mT,add:mT,clear:mT,delete:mT}),FA.freeze(e),t&&$A(e,(e,t)=>{uT(t,!0)},!1)),e}var mT={[WA]:function(){IA(2)}};function pT(e){return null===e||!iT(e)||FA.isFrozen(e)}var hT="MapSet",fT="Patches",gT="ArrayMethods",xT={};function vT(e){const t=xT[e];return t||IA(0),t}var bT,yT=e=>!!xT[e];var wT=()=>bT;function jT(e,t){t&&(e.patchPlugin_=vT(fT),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kT(e){NT(e),e.drafts_.forEach(_T),e.drafts_=null}function NT(e){e===bT&&(bT=e.parent_)}var ST=e=>bT={drafts_:[],parent_:bT,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:yT(hT)?vT(hT):void 0,arrayMethodsPlugin_:yT(gT)?vT(gT):void 0};function _T(e){const t=e[MA];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function zT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(void 0!==e&&e!==n){n[MA].modified_&&(kT(t),IA(4)),GA(e)&&(e=ET(t,e));const a=t.patchPlugin_;a&&a.generateReplacementPatches_(n[MA].base_,e,t)}else e=ET(t,n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&uT(t,n)}(t,e,!0),kT(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==OA?e:void 0}function ET(e,t){if(pT(t))return t;const n=t[MA];if(!n){return DT(t,e.handledSet_,e)}if(!PT(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const t=n.callbacks_;if(t)for(;t.length>0;){t.pop()(e)}RT(n,e)}return n.copy_}function CT(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var PT=(e,t)=>
2e.scope_===t,AT=[];function TT(e,t,n,a){var r;const i=lT(e),s=e.type_;if(void 0!==a){if(eT(i,a,s)===t)return void tT(i,a,n,s)}if(!e.draftLocations_){const t=e.draftLocations_=new Map;$A(i,(e,n)=>{if(KA(n)){const a=t.get(n)||[];a.push(e),t.set(n,a)}})}const o=null!==(r=e.draftLocations_.get(t))&&void 0!==r?r:AT;for(const l of o)tT(i,l,n,s)}function RT(e,t){var n,a;if(e.modified_&&!e.finalized_&&(3===e.type_||1===e.type_&&e.allIndicesReassigned_||(null!==(n=null===(a=e.assigned_)||void 0===a?void 0:a.size)&&void 0!==n?n:0)>0)){const n=t.patchPlugin_;if(n){const a=n.getPath(e);a&&n.generatePatches_(e,a,t)}CT(e)}}function OT(e,t,n){const a=e.scope_;if(KA(n)){const r=n[MA];PT(r,a)&&r.callbacks_.push(function(){qT(e);const a=cT(r);TT(e,n,a,t)})}else GA(n)&&e.callbacks_.push(function(){const r=lT(e);var i;3===e.type_?r.has(n)&&DT(n,a.handledSet_,a):eT(r,t,e.type_)===n&&a.drafts_.length>1&&!0===(null!==(i=e.assigned_.get(t))&&void 0!==i&&i)&&e.copy_&&DT(eT(e.copy_,t,e.type_),a.handledSet_,a)})}function DT(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||KA(e)||t.has(e)||!GA(e)||pT(e)||(t.add(e),$A(e,(a,r)=>{if(KA(r)){const t=r[MA];if(PT(t,n)){const n=cT(t);tT(e,a,n,e.type_),CT(t)}}else GA(r)&&DT(r,t,n)})),e}var MT={get(e,t){if(t===MA)return e;let n=e.scope_.arrayMethodsPlugin_;const a=1===e.type_&&"string"===typeof t;if(a&&null!==n&&void 0!==n&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const r=lT(e);if(!JA(r,t,e.type_))return function(e,t,n){var a;const r=LT(t,n);return r?WA in r?r[WA]:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,r,t);const i=r[t];if(e.finalized_||!GA(i))return i;if(a&&e.operationMethod&&null!==n&&void 0!==n&&n.isMutatingArrayMethod(e.operationMethod)&&function(e){const t=+e;return Number.isInteger(t)&&String(t)===e}(t))return i;if(i===FT(e.base_,t)){qT(e);const n=1===e.type_?+t:t,a=UT(e.scope_,i,e,n);return e.copy_[n]=a}return i},has:(e,t)=>t in lT(e),ownKeys:e=>Reflect.ownKeys(lT(e)),set(e,t,n){const a=LT(lT(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=FT(lT(e),t),s=null===a||void 0===a?void 0:a[MA];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(((r=n)===(i=a)?0!==r||1/r===1/i:r!==r&&i!==i)&&(void 0!==n||JA(e.base_,t,e.type_)))return!0;qT(e),BT(e)}var r,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),OT(e,t,n)),!0},deleteProperty:(e,t)=>(qT(e),void 0!==FT(e.base_,t)||t in e.base_?(e.assigned_.set(t,!1),BT(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=lT(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{[HA]:!0,[UA]:1!==e.type_||"length"!==t,[VA]:a[VA],[WA]:n[t]}:a},defineProperty(){IA(11)},getPrototypeOf:e=>LA(e.base_),setPrototypeOf(){IA(12)}},IT={};for(let n in MT){let e=MT[n];IT[n]=function(){const t=arguments;return t[0]=t[0][0],e.apply(this,t)}}function FT(e,t){const n=e[MA];return(n?lT(n):e)[t]}function LT(e,t){if(!(t in e))return;let n=LA(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=LA(n)}}function BT(e){e.modified_||(e.modified_=!0,e.parent_&&BT(e.parent_))}function qT(e){e.copy_||(e.assigned_=new Map,e.copy_=dT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}IT.deleteProperty=function(e,t){return IT.set.call(this,e,t,void 0)},IT.set=function(e,t,n){return MT.set.call(this,e[0],t,n,e[0])};function UT(e,t,n,a){var r,i;const s=aT(t)?vT(hT).proxyMap_(t,n):rT(t)?vT(hT).proxySet_(t,n):function(e,t){const n=nT(e),a={type_:n?1:0,scope_:t?t.scope_:wT(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let r=a,i=MT;n&&(r=[a],i=IT);const s=Proxy.revocable(r,i),o=s.revoke,l=s.proxy;return a.draft_=l,a.revoke_=o,[l,a]}(t,n),o=Le(s,2),l=o[0],c=o[1];return(null!==(r=null===n||void 0===n?void 0:n.scope_)&&void 0!==r?r:wT()).drafts_.push(l),c.callbacks_=null!==(i=null===n||void 0===n?void 0:n.callbacks_)&&void 0!==i?i:[],c.key_=a,n&&void 0!==a?function(e,t,n){e.callbacks_.push(function(a){var r,i;const s=t;if(!s||!PT(s,a))return;null===(r=a.mapSetPlugin_)||void 0===r||r.fixSetContents(s);const o=cT(s);TT(e,null!==(i=s.draft_)&&void 0!==i?i:s,o,n),RT(s,a)})}(n,c,a):c.callbacks_.push(function(e){var t;null===(t=e.mapSetPlugin_)||void 0===t||t.fixSetContents(c);const n=e.patchPlugin_;c.modified_&&n&&n.generatePatches_(c,[],e)}),l}function VT(e){return KA(e)||IA(10),HT(e)}function HT(e){if(!GA(e)||pT(e))return e;const t=e[MA];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=dT(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=dT(e,!0);return $A(n,(e,t)=>{tT(n,e,HT(t))},a),t&&(t.finalized_=!1),n}var WT=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(sT(e)&&!sT(t)){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return a.produce(e,e=>t.call(this,e,...i))}}let a;if(sT(t)||IA(6),void 0===n||sT(n)||IA(7),GA(e)){const r=ST(this),i=UT(r,e,void 0);let s=!0;try{a=t(i),s=!1}finally{s?kT(r):NT(r)}return jT(r,n),zT(a,r)}if(!e||!iT(e)){if(a=t(e),void 0===a&&(a=e),a===OA&&(a=void 0),this.autoFreeze_&&uT(
2a,!0),n){const t=[],r=[];vT(fT).generateReplacementPatches_(e,a,{patches_:t,inversePatches_:r}),n(t,r)}return a}IA(1)},this.produceWithPatches=(e,n)=>{if(sT(e))return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;return[this.produce(e,n,(e,t)=>{a=e,r=t}),a,r]},oT(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),oT(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),oT(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){GA(e)||IA(8),KA(e)&&(e=VT(e));const t=ST(this),n=UT(t,e,void 0);return n[MA].isManual_=!0,NT(t),n}finishDraft(e,t){const n=e&&e[MA];n&&n.isManual_||IA(9);const a=n.scope_;return jT(a,t),zT(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>-1&&(t=t.slice(n+1));const a=vT(fT).applyPatches_;return KA(e)?a(e,t):this.produce(e,e=>a(e,t))}},KT=WT.produce;function GT(e){return"Minified Redux error #".concat(e,"; visit https://redux.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}var ZT=(()=>"function"===typeof Symbol&&Symbol.observable||"@@observable")(),YT=()=>Math.random().toString(36).substring(7).split("").join("."),QT={INIT:"@@redux/INIT".concat(YT()),REPLACE:"@@redux/REPLACE".concat(YT()),PROBE_UNKNOWN_ACTION:()=>"@@redux/PROBE_UNKNOWN_ACTION".concat(YT())};function $T(e){if("object"!==typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function XT(e,t,n){if("function"!==typeof e)throw new Error(GT(2));if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(GT(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(GT(1));return n(XT)(e,t)}let a=e,r=t,i=new Map,s=i,o=0,l=!1;function c(){s===i&&(s=new Map,i.forEach((e,t)=>{s.set(t,e)}))}function d(){if(l)throw new Error(GT(3));return r}function u(e){if("function"!==typeof e)throw new Error(GT(4));if(l)throw new Error(GT(5));let t=!0;c();const n=o++;return s.set(n,e),function(){if(t){if(l)throw new Error(GT(6));t=!1,c(),s.delete(n),i=null}}}function m(e){if(!$T(e))throw new Error(GT(7));if("undefined"===typeof e.type)throw new Error(GT(8));if("string"!==typeof e.type)throw new Error(GT(17));if(l)throw new Error(GT(9));try{l=!0,r=a(r,e)}finally{l=!1}return(i=s).forEach(e=>{e()}),e}m({type:QT.INIT});return{dispatch:m,subscribe:u,getState:d,replaceReducer:function(e){if("function"!==typeof e)throw new Error(GT(10));a=e,m({type:QT.REPLACE})},[ZT]:function(){const e=u;return{subscribe(t){if("object"!==typeof t||null===t)throw new Error(GT(11));function n(){const e=t;e.next&&e.next(d())}n();return{unsubscribe:e(n)}},[ZT](){return this}}}}}function JT(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];0,"function"===typeof e[a]&&(n[a]=e[a])}const a=Object.keys(n);let r;try{!function(e){Object.keys(e).forEach(t=>{const n=e[t];if("undefined"===typeof n(void 0,{type:QT.INIT}))throw new Error(GT(12));if("undefined"===typeof n(void 0,{type:QT.PROBE_UNKNOWN_ACTION()}))throw new Error(GT(13))})}(n)}catch(rse){r=rse}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(r)throw r;let i=!1;const s={};for(let r=0;r<a.length;r++){const o=a[r],l=n[o],c=e[o],d=l(c,t);if("undefined"===typeof d){t&&t.type;throw new Error(GT(14))}s[o]=d,i=i||d!==c}return i=i||a.length!==Object.keys(e).length,i?s:e}}function eR(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?e=>e:1===t.length?t[0]:t.reduce((e,t)=>
2function(){return e(t(...arguments))})}function tR(e){return $T(e)&&"type"in e&&"string"===typeof e.type}function nR(e){return t=>{let n=t.dispatch,a=t.getState;return t=>r=>"function"===typeof r?r(n,a,e):t(r)}}var aR=nR(),rR=nR;const iR=["reducerPath"];var sR="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?eR:eR.apply(null,arguments)};"undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function oR(e,t){function n(){if(t){let n=t(...arguments);if(!n)throw new Error(tO(0));return d(d({type:e,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:e,payload:arguments.length<=0?void 0:arguments[0]}}return n.toString=()=>"".concat(e),n.type=e,n.match=t=>tR(t)&&t.type===e,n}var lR=class e extends Array{constructor(){super(...arguments),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return super.concat.apply(this,t)}prepend(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return 1===n.length&&Array.isArray(n[0])?new e(...n[0].concat(this)):new e(...n.concat(this))}};function cR(e){return GA(e)?KT(e,()=>{}):e}function dR(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var uR="RTK_autoBatch",mR=()=>e=>({payload:e,meta:{[uR]:!0}}),pR=e=>t=>{setTimeout(t,e)},hR=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"raf"};return t=>function(){const n=t(...arguments);let a=!0,r=!1,i=!1;const s=new Set,o="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!==typeof window&&window.requestAnimationFrame?(l=window.requestAnimationFrame,c=100,e=>{let t=!1;const n=()=>{t||(t=!0,cancelAnimationFrame(a),clearTimeout(r),e())},a=l(n),r=setTimeout(n,c)}):pR(10):"callback"===e.type?e.queueNotification:pR(e.timeout);var l,c;const d=()=>{i=!1,r&&(r=!1,s.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>a&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{var t;return a=!(null!==e&&void 0!==e&&null!==(t=e.meta)&&void 0!==t&&t[uR]),r=!a,r&&(i||(i=!0,o(d))),n.dispatch(e)}finally{a=!0}}})}};function fR(e){const t=function(e){const t=null!==e&&void 0!==e?e:{},n=t.thunk,a=void 0===n||n;t.immutableCheck,t.serializableCheck,t.actionCreatorCheck;let r=new lR;return a&&("boolean"===typeof a?r.push(aR):r.push(rR(a.extraArgument))),r},n=e||{},a=n.reducer,r=void 0===a?void 0:a,i=n.middleware,s=n.devTools,o=void 0===s||s,l=(n.duplicateMiddlewareCheck,n.preloadedState),c=void 0===l?void 0:l,u=n.enhancers,m=void 0===u?void 0:u;let p,h;if("function"===typeof r)p=r;else{if(!$T(r))throw new Error(tO(1));p=JT(r)}h="function"===typeof i?i(t):t();let f=eR;o&&(f=sR(d({trace:!1},"object"===typeof o&&o)));const g=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>(n,a)=>{const r=e(n,a);let i=()=>{throw new Error(GT(15))};const s={getState:r.getState,dispatch:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];return i(e,...n)}},o=t.map(e=>e(s));return i=eR(...o)(r.dispatch),d(d({},r),{},{dispatch:i})}}(...h),x=(e=>function(t){const n=(null!==t&&void 0!==t?t:{}).autoBatch,a=void 0===n||n;let r=new lR(e);return a&&r.push(hR("object"===typeof a?a:void 0)),r})(g);return XT(p,c,f(..."function"===typeof m?m(x):x()))}function gR(e){const t={},n=[];let a;const r={addCase(e,n){const a="string"===typeof e?e:e.type;if(!a)throw new Error(tO(28));if(a in t)throw new Error(tO(29));return t[a]=n,r},addAsyncThunk:(e,a)=>(a.pending&&(t[e.pending.type]=a.pending),a.rejected&&(t[e.rejected.type]=a.rejected),a.fulfilled&&(t[e.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:e.settled,reducer:a.settled}),r),addMatcher:(e,t)=>(n.push({matcher:e,reducer:t}),r),addDefaultCase:e=>(a=e,r)};return e(r),[t,n,a]}var xR=function(){let e="",t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:21;for(;t--;)e+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return e};var vR=Symbol.for("rtk-slice-createasyncthunk");function bR(e,t){return"".concat(e,"/").concat(t)}function yR(){var e;let t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).creators;const n=null===t||void 0===t||null===(e=t.asyncThunk)||void 0===e?void 0:e[vR];return function(e){const t=e.name,a=e.reducerPath,r=void 0===a?t:a;if(!t)throw new Error(tO(11));const i=("function"===typeof e.reducers?e.reducers(function(){function e(e,t){return d({_reducerDefinitionType:"asyncThunk",payloadCreator:e},t)}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name](){return e(...arguments)}}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},s=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const n="string"===typeof e?e:e.type;if(!n)throw new Error(tO(12));if(n in o.sliceCaseReducersByType)throw new Error(tO(13));return o.sliceCaseReducersByType[n]=t,l},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(o.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,l)};function c(){const t=Le("function"===typeof e.extraReducers?gR(e.extraReducers):[e.extraReducers],3),n=t[0],a=void 0===n?{}:n,r=t[1],i=void 0===r?[]:r,s=t[2],l=void 0===s?void 0:s,c=d(d({},a),o.sliceCaseReducersByType);return function(e,t){let n,a=Le(gR(t),3),r=a[0],i=a[1],s=a[2];if("function"===typeof e)n=()=>cR(e());else{const t=cR(e);n=()=>t}function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n(),t=arguments.length>1?arguments[1]:void 0,a=[r[t.type],...i.filter(e=>(0,e.matcher)(t)).map(e=>e.reducer)];return 0===a.filter(e=>!!e).length&&(a=[s]),a.reduce((e,n)=>{if(n){if(KA(e)){const a=n(e,t);return void 0===a?e:a}if(GA(e))return KT(e,e=>n(e,t));{const a=n(e,t);if(void 0===a){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return a}}return e},e)}return o.getInitialState=n,o}(e.initialState,e=>{for(let t in c)e.addCase(t,c[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of i)e.addMatcher(t.matcher,t.reducer);l&&e.addDefaultCase(l)})}s.forEach(a=>{const r=i[a],s={reducerName:a,type:bR(t,a),createNotation:"function"===typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(r)?function(e,t,n){let a,r,i=e.type,s=e.reducerName,o=e.createNotation;if("reducer"in t){if(o&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(t))throw new Error(tO(17));a=t.reducer,r=t.prepare}else a=t;n.addCase(i,a).exposeCaseReducer(s,a).exposeAction(s,r?oR(i,r):oR(i))}(s,r,l):function(e,t,n,a){let r=e.type,i=e.reducerName;if(!a)throw new Error(tO(18));const s=t.payloadCreator,o=t.fulfilled,l=t.pending,c=t.rejected,d=t.settled,u=t.options,m=a(r,s,u);n.exposeAction(i,m),o&&n.addCase(m.fulfilled,o);l&&n.addCase(m.pending,l);c&&n.addCase(m.rejected,c);d&&n.addMatcher(m.settled,d);n.exposeCaseReducer(i,{fulfilled:o||kR,pending:l||kR,rejected:c||kR,settled:d||kR})}(s,r,l,n)});const u=e=>
2e,m=new Map,p=new WeakMap;let h;function f(e,t){return h||(h=c()),h(e,t)}function g(){return h||(h=c()),h.getInitialState()}function x(t){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function a(e){let r=e[t];return"undefined"===typeof r&&n&&(r=dR(p,a,g)),r}function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;const a=dR(m,n,()=>new WeakMap);return dR(a,t,()=>{const a={};for(const s of Object.entries(null!==(r=e.selectors)&&void 0!==r?r:{})){var r,i=Le(s,2);const e=i[0],o=i[1];a[e]=wR(o,t,()=>dR(p,t,g),n)}return a})}return{reducerPath:t,getSelectors:r,get selectors(){return r(a)},selectSlice:a}}const v=d(d({name:t,reducer:f,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:g},x(r)),{},{injectInto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.reducerPath,a=Be(t,iR);const i=null!==n&&void 0!==n?n:r;return e.inject({reducerPath:i,reducer:f},a),d(d({},v),x(i,!0))}});return v}}function wR(e,t,n,a){function r(r){let i=t(r);"undefined"===typeof i&&a&&(i=n());for(var s=arguments.length,o=new Array(s>1?s-1:0),l=1;l<s;l++)o[l-1]=arguments[l];return e(i,...o)}return r.unwrapped=e,r}var jR=yR();function kR(){}var NR="listener",SR="completed",_R="cancelled",zR="task-".concat(_R),ER="task-".concat(SR),CR="".concat(NR,"-").concat(_R),PR="".concat(NR,"-").concat(SR),AR=class{constructor(e){l(this,"code",void 0),l(this,"name","TaskAbortError"),l(this,"message",void 0),this.code=e,this.message="".concat("task"," ").concat(_R," (reason: ").concat(e,")")}},TR=(e,t)=>{if("function"!==typeof e)throw new TypeError(tO(32))},RR=()=>{},OR=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:RR;return e.catch(t),e},DR=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),MR=e=>{if(e.aborted)throw new AR(e.reason)};function IR(e,t){let n=RR;return new Promise((a,r)=>{const i=()=>r(new AR(e.reason));e.aborted?i():(n=DR(e,i),t.finally(()=>n()).then(a,r))}).finally(()=>{n=RR})}var FR=e=>t=>OR(IR(e,t).then(t=>(MR(e),t))),LR=e=>{const t=FR(e);return e=>t(new Promise(t=>setTimeout(t,e)))},BR=Object.assign,qR={},UR="listenerMiddleware",VR=(e,t)=>(n,a)=>{TR(n);const r=new AbortController;var i;i=r,DR(e,()=>i.abort(e.reason));const s=(async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof AR?"cancelled":"rejected",error:n}}finally{null===t||void 0===t||t()}})(async()=>{MR(e),MR(r.signal);const t=await n({pause:FR(r.signal),delay:LR(r.signal),signal:r.signal});return MR(r.signal),t},()=>r.abort(ER));return null!==a&&void 0!==a&&a.autoJoin&&t.push(s.catch(RR)),{result:FR(e)(s),cancel(){r.abort(zR)}}},HR=(e,t)=>(n,a)=>OR((async(n,a)=>{MR(t);let r=()=>{};const i=[new Promise((t,a)=>{let i=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});r=()=>{i(),a()}})];null!=a&&i.push(new Promise(e=>setTimeout(e,a,null)));try{const e=await IR(t,Promise.race(i));return MR(t),e}finally{r()}})(n,a)),WR=e=>{let t=e.type,n=e.actionCreator,a=e.matcher,r=e.predicate,i=e.effect;if(t)r=oR(t).match;else if(n)t=n.type,r=n.match;else if(a)r=a;else if(!r)throw new Error(tO(21));return TR(i),{predicate:r,type:t,effect:i}},KR=BR(e=>{const t=WR(e),n=t.type,a=t.predicate,r=t.effect;return{id:xR(),effect:r,type:n,predicate:a,pending:new Set,unsubscribe:()=>{throw new Error(tO(22))}}},{withTypes:()=>KR}),GR=(e,t)=>{const n=WR(t),a=n.type,r=n.effect,i=n.predicate;return Array.from(e.values()).find(e=>("string"===typeof a?e.type===a:e.predicate===i)&&e.effect===r)},ZR=e=>{e.pending.forEach(e=>{e.abort(CR)})},YR=(e,t,n)=>{try{e(t,n)}catch(a){setTimeout(()=>{throw a},0)}},QR=BR(oR("".concat(UR,"/add")),{withTypes:()=>QR}),$R=oR("".concat(UR,"/removeAll")),XR=BR(oR("".concat(UR,"/remove")),{withTypes:()=>XR}),JR=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];console.error("".concat(UR,"/error"),...t)},eO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=new Map,n=new Map,a=e.extra,r=e.onError,i=void 0===r?JR:r;TR(i);const s=e=>{var n;return(e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),null!==t&&void 0!==t&&t.cancelActive&&ZR(e)}))(null!==(n=GR(t,e))&&void 0!==n?n:KR(e))};BR(s,{withTypes:()=>s});const o=e=>{const n=GR(t,e);return n&&(n.unsubscribe(),e.cancelActive&&ZR(n)),!!n};BR(o,{withTypes:()=>o});const l=async(e,r,o,l)=>{const c=new AbortController,d=HR(s,c.signal),u=[];try{e.pending.add(c),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:0;n.set(e,a+1)})(e),await Promise.resolve(e.effect(r,BR({},o,{getOriginalState:l,condition:(e,t)=>
2d(e,t).then(Boolean),take:d,delay:LR(c.signal),pause:FR(c.signal),extra:a,signal:c.signal,fork:VR(c.signal,u),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(e.abort(CR),n.delete(e))})},cancel:()=>{c.abort(CR),e.pending.delete(c)},throwIfCancelled:()=>{MR(c.signal)}})))}catch(m){m instanceof AR||YR(i,m,{raisedBy:"effect"})}finally{await Promise.all(u),c.abort(PR),(e=>{var t;const a=null!==(t=n.get(e))&&void 0!==t?t:1;1===a?n.delete(e):n.set(e,a-1)})(e),e.pending.delete(c)}},c=((e,t)=>()=>{for(const e of t.keys())ZR(e);e.clear()})(t,n);return{middleware:e=>n=>a=>{if(!tR(a))return n(a);if(QR.match(a))return s(a.payload);if($R.match(a))return void c();if(XR.match(a))return o(a.payload);let r=e.getState();const d=()=>{if(r===qR)throw new Error(tO(23));return r};let u;try{if(u=n(a),t.size>0){const n=e.getState(),s=Array.from(t.values());for(const t of s){let s=!1;try{s=t.predicate(a,n,r)}catch(m){s=!1,YR(i,m,{raisedBy:"predicate"})}s&&l(t,a,e,d)}}}finally{r=qR}return u},startListening:s,stopListening:o,clearListeners:c}};function tO(e){return"Minified Redux Toolkit error #".concat(e,"; visit https://redux-toolkit.js.org/Errors?code=").concat(e," for the full message or use the non-minified dev environment for full errors. ")}function nO(e,t){if(t){var n=Number.parseInt(t,10);if(!nA(n))return null===e||void 0===e?void 0:e[n]}}var aO=jR({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),rO=aO.reducer,iO=aO.actions.createEventEmitter;n(237);function sO(e){e()}var oO={notify(){},get:()=>[]};function lO(e,t){let n,a=oO,r=0,i=!1;function s(){c.onStateChange&&c.onStateChange()}function o(){r++,n||(n=t?t.addNestedSub(s):e.subscribe(s),a=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){sO(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let a=!0;const r=t={callback:n,next:null,prev:t};return r.prev?r.prev.next=r:e=r,function(){a&&null!==e&&(a=!1,r.next?r.next.prev=r.prev:t=r.prev,r.prev?r.prev.next=r.next:e=r.next)}}}}())}function l(){r--,n&&0===r&&(n(),n=void 0,a.clear(),a=oO)}const c={addNestedSub:function(e){o();const t=a.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){a.notify()},handleChangeWrapper:s,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,o())},tryUnsubscribe:function(){i&&(i=!1,l())},getListeners:()=>a};return c}var cO=(()=>!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement))(),dO=(()=>"undefined"!==typeof navigator&&"ReactNative"===navigator.product)(),uO=(()=>cO||dO?a.useLayoutEffect:a.useEffect)();function mO(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function pO(e,t){if(mO(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!mO(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var hO=Symbol.for("react-redux-context"),fO="undefined"!==typeof globalThis?globalThis:{};function gO(){var e;if(!a.createContext)return{};const t=null!==(e=fO[hO])&&void 0!==e?e:fO[hO]=new Map;let n=t.get(a.createContext);return n||(n=a.createContext(null),t.set(a.createContext,n)),n}var xO=gO();var vO=function(e){const t=e.children,n=e.context,r=e.serverState,i=e.store,s=a.useMemo(()=>{const e=lO(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=a.useMemo(()=>i.getState(),[i]);uO(()=>{const e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[s,o]);const l=n||xO;return a.createElement(l.Provider,{value:s},t)};var bO=Symbol.for("immer-nothing"),yO=Symbol.for("immer-draftable"),wO=Symbol.for("immer-state");function jO(e){throw new Error("[Immer] minified error nr: ".concat(e,". Full error at: https://bit.ly/3cXEKWf"))}var kO=Object.getPrototypeOf;function NO(e){return!!e&&!!e[wO]}function SO(e){var t;return!!e&&(EO(e)||Array.isArray(e)||!!e[yO]||!(null===(t=e.constructor)||void 0===t||!t[yO])||RO(e)||OO(e))}var _O=Object.prototype.constructor.toString(),zO=new WeakMap;function EO(e){if(!e||"object"!==typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;
2if("function"!==typeof n)return!1;let a=zO.get(n);return void 0===a&&(a=Function.toString.call(n),zO.set(n,a)),a===_O}function CO(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(0===PO(e)){(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)})}else e.forEach((n,a)=>t(a,n,e))}function PO(e){const t=e[wO];return t?t.type_:Array.isArray(e)?1:RO(e)?2:OO(e)?3:0}function AO(e,t){return 2===PO(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function TO(e,t,n){const a=PO(e);2===a?e.set(t,n):3===a?e.add(n):e[t]=n}function RO(e){return e instanceof Map}function OO(e){return e instanceof Set}function DO(e){return e.copy_||e.base_}function MO(e,t){if(RO(e))return new Map(e);if(OO(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=EO(e);if(!0===t||"class_only"===t&&!n){const t=Object.getOwnPropertyDescriptors(e);delete t[wO];let n=Reflect.ownKeys(t);for(let a=0;a<n.length;a++){const r=n[a],i=t[r];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[r]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[r]})}return Object.create(kO(e),t)}{const t=kO(e);if(null!==t&&n)return d({},e);const a=Object.create(t);return Object.assign(a,e)}}function IO(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return LO(e)||NO(e)||!SO(e)||(PO(e)>1&&Object.defineProperties(e,{set:FO,add:FO,clear:FO,delete:FO}),Object.freeze(e),t&&Object.values(e).forEach(e=>IO(e,!0))),e}var FO={value:function(){jO(2)}};function LO(e){return null===e||"object"!==typeof e||Object.isFrozen(e)}var BO,qO={};function UO(e){const t=qO[e];return t||jO(0),t}function VO(){return BO}function HO(e,t){t&&(UO("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function WO(e){KO(e),e.drafts_.forEach(ZO),e.drafts_=null}function KO(e){e===BO&&(BO=e.parent_)}function GO(e){return BO={drafts_:[],parent_:BO,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ZO(e){const t=e[wO];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function YO(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return void 0!==e&&e!==n?(n[wO].modified_&&(WO(t),jO(4)),SO(e)&&(e=QO(t,e),t.parent_||XO(t,e)),t.patches_&&UO("Patches").generateReplacementPatches_(n[wO].base_,e,t.patches_,t.inversePatches_)):e=QO(t,n,[]),WO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==bO?e:void 0}function QO(e,t,n){if(LO(t))return t;const a=e.immer_.shouldUseStrictIteration(),r=t[wO];if(!r)return CO(t,(a,i)=>$O(e,r,t,a,i,n),a),t;if(r.scope_!==e)return t;if(!r.modified_)return XO(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const t=r.copy_;let i=t,s=!1;3===r.type_&&(i=new Set(t),t.clear(),s=!0),CO(i,(a,i)=>$O(e,r,t,a,i,n,s),a),XO(e,t,!1),n&&e.patches_&&UO("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function $O(e,t,n,a,r,i,s){if(null==r)return;if("object"!==typeof r&&!s)return;const o=LO(r);if(!o||s){if(NO(r)){const s=QO(e,r,i&&t&&3!==t.type_&&!AO(t.assigned_,a)?i.concat(a):void 0);if(TO(n,a,s),!NO(s))return;e.canAutoFreeze_=!1}else s&&n.add(r);if(SO(r)&&!o){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[a]===r&&o)return;QO(e,r),t&&t.scope_.parent_||"symbol"===typeof a||!(RO(n)?n.has(a):Object.prototype.propertyIsEnumerable.call(n,a))||XO(e,r)}}}function XO(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&IO(t,n)}var JO={get(e,t){if(t===wO)return e;const n=DO(e);if(!AO(n,t))return function(e,t,n){var a;const r=nD(t,n);return r?"value"in r?r.value:null===(a=r.get)||void 0===a?void 0:a.call(e.draft_):void 0}(e,n,t);const a=n[t];return e.finalized_||!SO(a)?a:a===tD(e.base_,t)?(rD(e),e.copy_[t]=iD(a,e)):a},has:(e,t)=>t in DO(e),ownKeys:e=>Reflect.ownKeys(DO(e)),set(e,t,n){const a=nD(DO(e),t);if(null!==a&&void 0!==a&&a.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const a=tD(DO(e),t),s=null===a||void 0===a?void 0:a[wO];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(((r=n)===(i=a)?0!==r||1/r===1/i:r!==r&&i!==i)&&(void 0!==n||AO(e.base_,t)))return!0;rD(e),aD(e)}var r,i;return e.copy_[t]===n&&(void 0!==n||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==tD(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,rD(e),aD(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const n=DO(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:a.enumerable,value:n[t]}:a},defineProperty(){jO(11)},getPrototypeOf:e=>kO(e.base_),setPrototypeOf(){jO(12)}},eD={};function tD(e,t){const n=e[wO];return(n?DO(n):e)[t]}function nD(e,t){if(!(t in e))return;let n=kO(e);for(;n;){const e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=kO(n)}}function aD(e){e.modified_||(e.modified_=!0,e.parent_&&aD(e.parent_))}function rD(e){e.copy_||(e.copy_=MO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}CO(JO,(e,t)=>{eD[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),eD.deleteProperty=function(e,t){return eD.set.call(this,e,t,void 0)},eD.set=function(e,t,n){return JO.set.call(this,e[0],t,n,e[0])};function iD(e,t){const n=RO(e)?UO("MapSet").proxyMap_(e,t):OO(e)?UO("MapSet").proxySet_(e,t):function(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:VO(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let r=a,i=JO;n&&(r=[a],i=eD);const s=Proxy.revocable(r,i),o=s.revoke,l=s.proxy;return a.draft_=l,a.revoke_=o,l}(e,t);return(t?t.scope_:VO()).drafts_.push(n),n}function sD(e){if(!SO(e)||LO(e))return e;const t=e[wO];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=MO(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=MO(e,!0);return CO(n,(e,t)=>{TO(n,e,sD(t))},a),t&&(t.finalized_=!1),n}var oD=new class{constructor(e){var t=this;this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if("function"===typeof e&&"function"!==typeof t){const n=t;t=e;const a=this;return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;for(var r=arguments.length,i=new Array(r>1?r-1:0),s=1;s<r;s++)i[s-1]=arguments[s];return a.produce(e,e=>t.call(this,e,...i))}}let a;if("function"!==typeof t&&jO(6),void 0!==n&&"function"!==typeof n&&jO(7),SO(e)){const r=GO(this),i=iD(e,void 0);let s=!0;try{a=t(i),s=!1}finally{s?WO(r):KO(r)}return HO(r,n),YO(a,r)}if(!e||"object"!==typeof e){if(a=t(e),void 0===a&&(a=e),a===bO&&(a=void 0),this.autoFreeze_&&IO(a,!0),n){const t=[],r=[];UO("Patches").generateReplacementPatches_(e,a,t,r),n(t,r)}return a}jO(1)},this.produceWithPatches=(e,n)=>{if("function"===typeof e)return function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),i=1;i<a;i++)r[i-1]=arguments[i];return t.produceWithPatches(n,t=>e(t,...r))};let a,r;return[this.produce(e,n,(e,t)=>{a=e,r=t}),a,r]},"boolean"===typeof(null===e||void 0===e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"===typeof(null===e||void 0===e?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){SO(e)||jO(8),NO(e)&&(e=function(e){NO(e)||jO(10);return sD(e)}(e));const t=GO(this),n=iD(e,void 0);return n[wO].isManual_=!0,KO(t),n}finishDraft(e,t){const n=e&&e[wO];n&&n.isManual_||jO(9);const a=n.scope_;return HO(a,t),YO(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const a=t[n];if(0===a.path.length&&"replace"===a.op){e=a.value;break}}n>
vendor: 4,163 bytes, line 2
2-1&&(t=t.slice(n+1));const a=UO("Patches").applyPatches_;return NO(e)?a(e,t):this.produce(e,e=>a(e,t))}};oD.produce;var lD={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},cD=jR({name:"tooltip",initialState:{itemInteraction:{click:lD,hover:lD},axisInteraction:{click:lD,hover:lD},keyboardInteraction:lD,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:mR()},replaceTooltipEntrySettings:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=VT(e).tooltipItemPayloads.indexOf(a);i>-1&&(e.tooltipItemPayloads[i]=r)},prepare:mR()},removeTooltipEntrySettings:{reducer(e,t){var n=VT(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:mR()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),dD=cD.actions,uD=dD.addTooltipEntrySettings,mD=dD.replaceTooltipEntrySettings,pD=dD.removeTooltipEntrySettings,hD=dD.setTooltipSettingsState,fD=dD.setActiveMouseOverItemIndex,gD=dD.mouseLeaveItem,xD=dD.mouseLeaveChart,vD=dD.setActiveClickItemIndex,bD=dD.setMouseOverAxisIndex,yD=dD.setMouseClickAxisIndex,wD=dD.setSyncInteraction,jD=dD.setKeyboardInteraction,kD=cD.reducer,ND=jR({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var n=t.payload,a=n.startIndex,r=n.endIndex;null!=a&&(e.dataStartIndex=a),null!=r&&(e.dataEndIndex=r)}}}),SD=ND.actions,_D=SD.setChartData,zD=SD.setDataStartEndIndexes,ED=(SD.setComputedData,ND.reducer),CD=jR({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,a,r,i;e.margin.top=null!==(n=t.payload.top)&&void 0!==n?n:0,e.margin.right=null!==(a=t.payload.right)&&void 0!==a?a:0,e.margin.bottom=null!==(r=t.payload.bottom)&&void 0!==r?r:0,e.margin.left
2=null!==(i=t.payload.left)&&void 0!==i?i:0},setScale(e,t){e.scale=t.payload}}}),PD=CD.actions,AD=PD.setMargin,TD=PD.setLayout,RD=PD.setChartSize,OD=PD.setScale,DD=CD.reducer;function MD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected a function, instead received ".concat(typeof e);if("function"!==typeof e)throw new TypeError(t)}var ID=e=>Array.isArray(e)?e:[e];function FD(e){const t=Array.isArray(e[0])?e[0]:e;return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected all items to be functions, instead received the following types: ";if(!e.every(e=>"function"===typeof e)){const n=e.map(e=>"function"===typeof e?"function ".concat(e.name||"unnamed","()"):typeof e).join(", ");throw new TypeError("".concat(t,"[").concat(n,"]"))}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}Symbol(),Object.getPrototypeOf({});var LD="undefined"!==typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function BD(){return{s:0,v:void 0,o:null,p:null}}function qD(e){let t={s:0,v:void 0,o:null,p:null};const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).resultEqualityCheck;let a,r=0;function i(){let i=t;for(let e=0,t=arguments.length;e<t;e++){const t=arguments[e];if("function"===typeof t||"object"===typeof t&&null!==t){let e=i.o;null===e&&(i.o=e=new WeakMap);const n=e.get(t);void 0===n?(i=BD(),e.set(t,i)):i=n}else{let e=i.p;null===e&&(i.p=e=new Map);const n=e.get(t);void 0===n?(i=BD(),e.set(t,i)):i=n}}const s=i;let o;if(1===i.s)o=i.v;else if(o=e.apply(null,arguments),r++,n){var l,c,d;const e=null!==(l=null===(c=a)||void 0===c||null===(d=c.deref)||void 0===d?void 0:d.call(c))&&void 0!==l?l:a;null!=e&&n(e,o)&&(o=e,0!==r&&r--);a="object"===typeof o&&null!==o||"function"===typeof o?new LD(o):o}return s.s=1,s.v=o,o}return i.clearCache=()=>{t={s:0,v:void 0,o:null,p:null},i.resetResultsCount()},i.resultsCount=()=>r,i.resetResultsCount=()=>{r=0},i}function UD(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r="function"===typeof e?{memoize:e,memoizeOptions:n}:e,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let a,i=0,s=0,o={},l=t.pop();"object"===typeof l&&(o=l,l=t.pop()),MD(l,"createSelector expects an output function after the inputs, but received: [".concat(typeof l,"]"));const c=d(d({},r),o),u=c.memoize,m=c.memoizeOptions,p=void 0===m?[]:m,h=c.argsMemoize,f=void 0===h?qD:h,g=c.argsMemoizeOptions,x=void 0===g?[]:g,v=(c.devModeChecks,ID(p)),b=ID(x),y=FD(t),w=u(function(){return i++,l.apply(null,arguments)},...v);const j=f(function(){s++;const e=function(e,t){const n=[],a=e.length;for(let r=0;r<a;r++)n.push(e[r].apply(null,t));return n}(y,arguments);return a=w.apply(null,e),a},...b);return Object.assign(j,{resultFunc:l,memoizedResultFunc:w,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:u,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var VD=UD(qD),HD=Object.assign(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VD;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"expected an object, instead received ".concat(typeof e);if("object"!==typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ".concat(typeof e));const n=Object.keys(e),a=n.map(t=>e[t]),r=t(a,function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.reduce((e,t,a)=>(e[n[a]]=t,e),{})});return r},{withTypes:()=>HD}),WD=n(443),KD=(0,a.createContext)(null),GD=e=>e,ZD=()=>{var e=(0,a.useContext)(KD);return e?e.store.dispatch:GD},YD=()=>{},QD=()=>YD,$D=(e,t)=>e===t;function XD(e){var t=(0,a.useContext)(KD);return(0,WD.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:QD,t?t.store.getState:YD,t?t.store.getState:YD,t?e:YD,$D)}function JD(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function eM(e){return null!=e&&"function"!==typeof e&&function(e){return Number.isSafeInteger(e)&&e>=0}(e.length)}function tM(e){return null!==e&&("object"===typeof e||"function"===typeof e)}const nM=/^(?:0|[1-9]\d*)$/;function aM(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return nM.test(e)}}function rM(e,t,n){return!!tM(n)&&(!!("number"===typeof t&&eM(n)&&aM(t)&&t<n.length||"string"===typeof t&&t in n)&&JD(n[t],e))}function iM(e){return"symbol"===typeof e?1:null===e?2:void 0===e?3:e!==e?4:0}const sM=(e,t,n)=>{if(e!==t){const a=iM(e),r=iM(t);if(a===r&&0===a){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?r-a:a-r}return 0};function oM(e){return"symbol"===typeof e||e instanceof Symbol}const lM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,cM=/^\w*$/;function dM(e,t,n,a){if(null==e)return[];n=a?void 0:n,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(n)||(n=null==n?[]:[n]),n=n.map(e=>String(e));const r=(e,t)=>{let n=e;for(let a=0;a<t.length&&null!=n;++a)n=n[t[a]];return n},i=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"===typeof e||Array.isArray(e)||function(e,t){return!Array.isArray(e)&&(!("number"!==typeof e&&"boolean"!==typeof e&&null!=e&&!oM(e))||"string"===typeof e&&(cM.test(e)||!lM.test(e))||null!=t&&Object.hasOwn(t,e))}(e)?e:{key:e,path:$P(e)}));return e.map(e=>({original:e,criteria:i.map(t=>((e,t)=>null==t||null==e?t:"object"===typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:r(t,e.path):"function"===typeof e?e(t):Array.isArray(e)?r(t,e):"object"===typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>
2{for(let a=0;a<i.length;a++){const r=sM(e.criteria[a],t.criteria[a],n[a]);if(0!==r)return r}return 0}).map(e=>e.original)}function uM(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];const r=n.length;return r>1&&rM(e,n[0],n[1])?n=[]:r>2&&rM(n[0],n[1],n[2])&&(n=[n[0]]),dM(e,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[],a=Math.floor(t),r=(e,t)=>{for(let i=0;i<e.length;i++){const s=e[i];Array.isArray(s)&&t<a?r(s,t+1):n.push(s)}};return r(e,0),n}(n),["asc"])}var mM=e=>e.legend.settings,pM=VD([e=>e.legend.payload,mM],(e,t)=>{var n=t.itemSorter,a=e.flat(1);return n?uM(a,n):a});function hM(e,t){if((r=e.length)>1)for(var n,a,r,i=1,s=e[t[0]],o=s.length;i<r;++i)for(a=s,s=e[t[i]],n=0;n<o;++n)s[n][1]+=s[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function fM(e,t){if((a=e.length)>0){for(var n,a,r,i=0,s=e[0].length;i<s;++i){for(r=n=0;n<a;++n)r+=e[n][i][1]||0;if(r)for(n=0;n<a;++n)e[n][i][1]/=r}hM(e,t)}}function gM(e,t){if((n=e.length)>0){for(var n,a=0,r=e[t[0]],i=r.length;a<i;++a){for(var s=0,o=0;s<n;++s)o+=e[s][a][1]||0;r[a][1]+=r[a][0]=-o/2}hM(e,t)}}function xM(e,t){if((r=e.length)>0&&(a=(n=e[t[0]]).length)>0){for(var n,a,r,i=0,s=1;s<a;++s){for(var o=0,l=0,c=0;o<r;++o){for(var d=e[t[o]],u=d[s][1]||0,m=(u-(d[s-1][1]||0))/2,p=0;p<o;++p){var h=e[t[p]];m+=(h[s][1]||0)-(h[s-1][1]||0)}l+=u,c+=m*u}n[s-1][1]+=n[s-1][0]=i,l&&(i-=c/l)}n[s-1][1]+=n[s-1][0]=i,hM(e,t)}}n.dn(hM),n.dn(fM),n.dn(gM),n.dn(xM),n.dn(vM);Array.prototype.slice;function vM(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function bM(e){return function(){return e}}function yM(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wM(e,t){return e[t]}function jM(e){const t=[];return t.key=e,t}function kM(){var e=bM([]),t=yM,n=hM,a=wM;function r(r){var i,s,o=Array.from(e.apply(this,arguments),jM),l=o.length,c=-1;for(const e of r)for(i=0,++c;i<l;++i)(o[i][c]=[0,+a(e,o[i].key,c,r)]).data=e;for(i=0,s=vM(t(o));i<l;++i)o[s[i]].index=i;return n(o,s),o}return r.keys=function(t){return arguments.length?(e="function"===typeof t?t:bM(Array.from(t)),r):e},r.value=function(e){return arguments.length?(a="function"===typeof e?e:bM(+e),r):a},r.order=function(e){return arguments.length?(t=null==e?yM:"function"===typeof e?e:bM(Array.from(e)),r):t},r.offset=function(e){return arguments.length?(n=null==e?hM:e,r):n},r}function NM(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function SM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function _M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SM(Object(n),!0).forEach(function(t){zM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EM(e,t,n){return mA(e)||mA(t)?n:iA(t)?XP(e,t,n):"function"===typeof t?t(e):n}n.dn(bM),n.dn(yM),n.dn(kM);var CM=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,PM=(e,t,n,a)=>{if(a)return e.map(e=>e.coordinate);var r,i,s=e.map(e=>(e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate));return r||s.push(t),i||s.push(n),s},AM=(e,t,n)=>{if(!e)return null;var a=e.duplicateDomain,r=e.type,i=e.range,s=e.scale,o=e.realScaleType,l=e.isCategorical,c=e.categoricalDomain,d=e.tickCount,u=e.ticks,m=e.niceTicks,p=e.axisType;if(!s)return null;var h="scaleBand"===o&&s.bandwidth?s.bandwidth()/2:2,f=(t||n)&&"category"===r&&s.bandwidth?s.bandwidth()/h:0;if(f="angleAxis"===p&&i&&i.length>=2?2*tA(i[0]-i[1])*f:f,t&&(u||m)){var g=(u||m||[]).map((e,t)=>{var n=a?a.indexOf(e):e;return{coordinate:s(n)+f,value:e,offset:f,index:t}});return g.filter(e=>!nA(e.coordinate))}return l&&c?c.map((e,t)=>({coordinate:s(e)+f,value:e,index:t,offset:f})):s.ticks&&!n&&null!=d?s.ticks(d).map((e,t)=>({coordinate:s(e)+f,value:e,offset:f,index:t})):s.domain().map((e,t)=>({coordinate:s(e)+f,value:a?a[e]:e,index:t,offset:f}))},TM=1e-4,RM={sign:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var i=0,s=0,o=0;o<n;++o){var l=e[o],c=null===l||void 0===l?void 0:l[r];if(null!=c){var d=c[1],u=c[0],m=nA(d)?u:d;m>=0?(c[0]=i,c[1]=i+m,i=d):(c[0]=s,c[1]=s+m,s=d)}}}},expand:fM,none:hM,silhouette:gM,wiggle:xM,positive:e=>{var t,n=e.length;if(!(n<=0)){var a=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==a||a<=0))for(var r=0;r<a;++r)for(var i=0,s=0;s<n;++s){var o=e[s],l=null===o||void 0===o?void 0:o[r];if(null!=l){var c=nA(l[1])?l[0]:l[1];c>=0?(l[0]=i,l[1]=i+c,i=l[1]):(l[0]=0,l[1]=0)}}}}},OM=(e,t,n)=>{var a,r=null!==(a=RM[n])&&void 0!==a?a:hM,i=kM().keys(t).value((e,t)=>Number(EM(e,t,0))).order(yM).offset(r),s=i(e);
2return s.forEach((n,a)=>{n.forEach((n,r)=>{var i=EM(e[r],t[a],0);Array.isArray(i)&&2===i.length&&rA(i[0])&&rA(i[1])&&(n[0]=i[0],n[1]=i[1])})}),s};function DM(e){var t=e.axis,n=e.ticks,a=e.bandSize,r=e.entry,i=e.index,s=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!mA(r[t.dataKey])){var o=uA(n,"value",r[t.dataKey]);if(o)return o.coordinate+a/2}return n[i]?n[i].coordinate+a/2:null}var l=EM(r,mA(s)?t.dataKey:s);return mA(l)?null:t.scale(l)}var MM=(e,t,n)=>{var a;if(null!=e)return a=Object.keys(e).reduce((a,r)=>{var i=e[r];if(!i)return a;var s=i.stackedData.reduce((e,a)=>{var r=(e=>{var t=e.flat(2).filter(rA);return[Math.min(...t),Math.max(...t)]})(NM(a,t,n));return kA(r[0])&&kA(r[1])?[Math.min(e[0],r[0]),Math.max(e[1],r[1])]:e},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]),[a[0]===1/0?0:a[0],a[1]===-1/0?0:a[1]]},IM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,FM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,LM=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var a=e.scale.bandwidth();if(!n||a>0)return a}if(e&&t&&t.length>=2){for(var r=uM(t,e=>e.coordinate),i=1/0,s=1,o=r.length;s<o;s++){var l=r[s],c=r[s-1];i=Math.min(((null===l||void 0===l?void 0:l.coordinate)||0)-((null===c||void 0===c?void 0:c.coordinate)||0),i)}return i===1/0?0:i}return n?void 0:0};function BM(e){var t=e.tooltipEntrySettings,n=e.dataKey,a=e.payload,r=e.value,i=e.name;return _M(_M({},t),{},{dataKey:n,payload:a,value:r,name:i})}function qM(e,t){return e?String(e):"string"===typeof t?t:void 0}var UM=e=>e.layout.width,VM=e=>e.layout.height,HM=e=>e.layout.scale,WM=e=>e.layout.margin,KM=VD(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),GM=VD(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ZM="data-recharts-item-index",YM="data-recharts-item-id";function QM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function $M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QM(Object(n),!0).forEach(function(t){XM(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QM(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JM=VD([UM,VM,WM,e=>e.brush.height,function(e){return GM(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return GM(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"===typeof t.width?t.width:60),0)},function(e){return KM(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return KM(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},mM,e=>e.legend.size],(e,t,n,a,r,i,s,o,l,c)=>{var d={left:(n.left||0)+r,right:(n.right||0)+i},u=$M($M({},{top:(n.top||0)+s,bottom:(n.bottom||0)+o}),d),m=u.bottom;u.bottom+=a,u=((e,t,n)=>{if(t&&n){var a=n.width,r=n.height,i=t.align,s=t.verticalAlign,o=t.layout;if(("vertical"===o||"horizontal"===o&&"middle"===s)&&"center"!==i&&rA(e[i]))return _M(_M({},e),{},{[i]:e[i]+(a||0)});if(("horizontal"===o||"vertical"===o&&"center"===i)&&"middle"!==s&&rA(e[s]))return _M(_M({},e),{},{[s]:e[s]+(r||0)})}return e})(u,l,c);var p=e-u.left-u.right,h=t-u.top-u.bottom;return $M($M({brushBottom:m},u),{},{width:Math.max(p,0),height:Math.max(h,0)})}),eI=VD(JM,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),tI=VD(UM,VM,(e,t)=>({x:0,y:0,width:e,height:t})),nI=(0,a.createContext)(null),aI=()=>null!=(0,a.useContext)(nI),rI=e=>e.brush,iI=VD([rI,JM,WM],(e,t,n)=>({height:e.height,x:rA(e.x)?e.x:t.left,y:rA(e.y)?e.y:t.top+t.height+t.brushBottom-((null===n||void 0===n?void 0:n.bottom)||0),width:rA(e.width)?e.width:t.width}));function sI(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var oI=()=>{var e,t=aI(),n=XD(eI),a=XD(iI),r=null===(e=XD(rI))||void 0===e?void 0:e.padding;return t&&a&&r?{width:a.width-r.left-r.right,height:a.height-r.top-r.bottom,x:r.left,y:r.top}:n},lI={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},cI=()=>{var e;return null!==(e=XD(JM))&&void 0!==e?e:lI},dI=()=>XD(UM),uI=()=>XD(VM),mI=e=>e.layout.layoutType,pI=()=>XD(mI),hI=e=>
2{var t=ZD(),n=aI(),r=e.width,i=e.height,s=AA(),o=r,l=i;return s&&(o=s.width>0?s.width:r,l=s.height>0?s.height:i),(0,a.useEffect)(()=>{!n&&NA(o)&&NA(l)&&t(RD({width:o,height:l}))},[t,n,o,l]),null};function fI(e){return e?(e=function(e){return oM(e)?NaN:Number(e)}(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0:0===e?e:0}function gI(e,t,n){n&&"number"!==typeof n&&rM(e,t,n)&&(t=n=void 0),e=fI(e),void 0===t?(t=e,e=0):t=fI(t),n=void 0===n?e<t?1:-1:fI(n);const a=Math.max(Math.ceil((t-e)/(n||1)),0),r=new Array(a);for(let i=0;i<a;i++)r[i]=e,e+=n;return r}function xI(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function vI(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class bI extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:kI;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const a of e){var n=Le(a,2);const e=n[0],t=n[1];this.set(e,t)}}get(e){return super.get(yI(this,e))}has(e){return super.has(yI(this,e))}set(e,t){return super.set(wI(this,e),t)}delete(e){return super.delete(jI(this,e))}}Set;function yI(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)?n.get(a):t}function wI(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)?n.get(a):(n.set(a,t),t)}function jI(e,t){let n=e._intern;const a=(0,e._key)(t);return n.has(a)&&(t=n.get(a),n.delete(a)),t}function kI(e){return null!==e&&"object"===typeof e?e.valueOf():e}const NI=Symbol("implicit");function SI(){var e=new bI,t=[],n=[],a=NI;function r(r){let i=e.get(r);if(void 0===i){if(a!==NI)return a;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return r.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new bI;for(const a of n)e.has(a)||e.set(a,t.push(a)-1);return r},r.range=function(e){return arguments.length?(n=Array.from(e),r):n.slice()},r.unknown=function(e){return arguments.length?(a=e,r):a},r.copy=function(){return SI(t,n).unknown(a)},xI.apply(r,arguments),r}function _I(){var e,t,n=SI().unknown(void 0),a=n.domain,r=n.range,i=0,s=1,o=!1,l=0,c=0,d=.5;function u(){var n=a().length,u=s<i,m=u?s:i,p=u?i:s;e=(p-m)/Math.max(1,n-l+2*c),o&&(e=Math.floor(e)),m+=(p-m-e*(n-l))*d,t=e*(1-l),o&&(m=Math.round(m),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var a=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(r);++a<r;)i[a]=e+a*n;return i}(n).map(function(t){return m+e*t});return r(u?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),u()):a()},n.range=function(e){var t;return arguments.length?(t=Le(e,2),i=t[0],s=t[1],i=+i,s=+s,u()):[i,s]},n.rangeRound=function(e){var t;return t=Le(e,2),i=t[0],s=t[1],i=+i,s=+s,o=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(o=!!e,u()):o},n.padding=function(e){return arguments.length?(l=Math.min(1,c=+e),u()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),u()):l},n.paddingOuter=function(e){return arguments.length?(c=+e,u()):c},n.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),u()):d},n.copy=function(){return _I(a(),[i,s]).round(o).paddingInner(l).paddingOuter(c).align(d)},xI.apply(u(),arguments)}function zI(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zI(t())},e}function EI(){return zI(_I.apply(null,arguments).paddingInner(1))}const CI=Math.sqrt(50),PI=Math.sqrt(10),AI=Math.sqrt(2);function TI(e,t,n){const a=(t-e)/Math.max(0,n),r=Math.floor(Math.log10(a)),i=a/Math.pow(10,r),s=i>=CI?10:i>=PI?5:i>=AI?2:1;let o,l,c;return r<0?(c=Math.pow(10,-r)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,r)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?TI(e,t,2*n):[o,l,c]}function RI(e,t,n){if(!((n=+n)>0))return[];
2if((e=+e)===(t=+t))return[e];const a=t<e,r=Le(a?TI(t,e,n):TI(e,t,n),3),i=r[0],s=r[1],o=r[2];if(!(s>=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let d=0;d<l;++d)c[d]=(s-d)/-o;else for(let d=0;d<l;++d)c[d]=(s-d)*o;else if(o<0)for(let d=0;d<l;++d)c[d]=(i+d)/-o;else for(let d=0;d<l;++d)c[d]=(i+d)*o;return c}function OI(e,t,n){return TI(e=+e,t=+t,n=+n)[2]}function DI(e,t,n){n=+n;const a=(t=+t)<(e=+e),r=a?OI(t,e,n):OI(e,t,n);return(a?-1:1)*(r<0?1/-r:r)}function MI(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function II(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function FI(e){let t,n,a;function r(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<i){if(0!==t(a,a))return i;do{const t=r+i>>>1;n(e[t],a)<0?r=t+1:i=t}while(r<i)}return r}return 2!==e.length?(t=MI,n=(t,n)=>MI(e(t),n),a=(t,n)=>e(t)-n):(t=e===MI||e===II?e:LI,n=e,a=e),{left:r,center:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=r(e,t,n,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return i>n&&a(e[i-1],t)>-a(e[i],t)?i-1:i},right:function(e,a){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(r<i){if(0!==t(a,a))return i;do{const t=r+i>>>1;n(e[t],a)<=0?r=t+1:i=t}while(r<i)}return r}}}function LI(){return 0}function BI(e){return null===e?NaN:+e}const qI=FI(MI),UI=qI.right,VI=(qI.left,FI(BI).center,UI);function HI(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function WI(e,t){var n=Object.create(e.prototype);for(var a in t)n[a]=t[a];return n}function KI(){}n.dn(HI);var GI=.7,ZI=1/GI,YI="\\s*([+-]?\\d+)\\s*",QI="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",XI=/^#([0-9a-f]{3,8})$/,JI=new RegExp("^rgb\\(".concat(YI,",").concat(YI,",").concat(YI,"\\)$")),eF=new RegExp("^rgb\\(".concat($I,",").concat($I,",").concat($I,"\\)$")),tF=new RegExp("^rgba\\(".concat(YI,",").concat(YI,",").concat(YI,",").concat(QI,"\\)$")),nF=new RegExp("^rgba\\(".concat($I,",").concat($I,",").concat($I,",").concat(QI,"\\)$")),aF=new RegExp("^hsl\\(".concat(QI,",").concat($I,",").concat($I,"\\)$")),rF=new RegExp("^hsla\\(".concat(QI,",").concat($I,",").concat($I,",").concat(QI,"\\)$")),iF={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function sF(){return this.rgb().formatHex()}function oF(){return this.rgb().formatRgb()}function lF(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=XI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?cF(t):3===n?
2new mF(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?dF(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?dF(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=JI.exec(e))?new mF(t[1],t[2],t[3],1):(t=eF.exec(e))?new mF(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tF.exec(e))?dF(t[1],t[2],t[3],t[4]):(t=nF.exec(e))?dF(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=aF.exec(e))?vF(t[1],t[2]/100,t[3]/100,1):(t=rF.exec(e))?vF(t[1],t[2]/100,t[3]/100,t[4]):iF.hasOwnProperty(e)?cF(iF[e]):"transparent"===e?new mF(NaN,NaN,NaN,0):null}function cF(e){return new mF(e>>16&255,e>>8&255,255&e,1)}function dF(e,t,n,a){return a<=0&&(e=t=n=NaN),new mF(e,t,n,a)}function uF(e,t,n,a){return 1===arguments.length?((r=e)instanceof KI||(r=lF(r)),r?new mF((r=r.rgb()).r,r.g,r.b,r.opacity):new mF):new mF(e,t,n,null==a?1:a);var r}function mF(e,t,n,a){this.r=+e,this.g=+t,this.b=+n,this.opacity=+a}function pF(){return"#".concat(xF(this.r)).concat(xF(this.g)).concat(xF(this.b))}function hF(){const e=fF(this.opacity);return"".concat(1===e?"rgb(":"rgba(").concat(gF(this.r),", ").concat(gF(this.g),", ").concat(gF(this.b)).concat(1===e?")":", ".concat(e,")"))}function fF(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function gF(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function xF(e){return((e=gF(e))<16?"0":"")+e.toString(16)}function vF(e,t,n,a){return a<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new yF(e,t,n,a)}function bF(e){if(e instanceof yF)return new yF(e.h,e.s,e.l,e.opacity);if(e instanceof KI||(e=lF(e)),!e)return new yF;if(e instanceof yF)return e;var t=(e=e.rgb()).r/255,n=e.g/255,a=e.b/255,r=Math.min(t,n,a),i=Math.max(t,n,a),s=NaN,o=i-r,l=(i+r)/2;return o?(s=t===i?(n-a)/o+6*(n<a):n===i?(a-t)/o+2:(t-n)/o+4,o/=l<.5?i+r:2-i-r,s*=60):o=l>0&&l<1?0:s,new yF(s,o,l,e.opacity)}function yF(e,t,n,a){this.h=+e,this.s=+t,this.l=+n,this.opacity=+a}function wF(e){return(e=(e||0)%360)<0?e+360:e}function jF(e){return Math.max(0,Math.min(1,e||0))}
2function kF(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function NF(e,t,n,a,r){var i=e*e,s=i*e;return((1-3*e+3*i-s)*t+(4-6*i+3*s)*n+(1+3*e+3*i-3*s)*a+s*r)/6}function SF(e){var t=e.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[a],i=e[a+1],s=a>0?e[a-1]:2*r-i,o=a<t-1?e[a+2]:2*i-r;return NF((n-a/t)*t,s,r,i,o)}}function _F(e){var t=e.length;return function(n){var a=Math.floor(((n%=1)<0?++n:n)*t),r=e[(a+t-1)%t],i=e[a%t],s=e[(a+1)%t],o=e[(a+2)%t];return NF((n-a/t)*t,r,i,s,o)}}HI(KI,lF,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sF,formatHex:sF,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bF(this).formatHsl()},formatRgb:oF,toString:oF}),HI(mF,uF,WI(KI,{brighter(e){return e=null==e?ZI:Math.pow(ZI,e),new mF(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?GI:Math.pow(GI,e),new mF(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new mF(gF(this.r),gF(this.g),gF(this.b),fF(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pF,formatHex:pF,formatHex8:function(){return"#".concat(xF(this.r)).concat(xF(this.g)).concat(xF(this.b)).concat(xF(255*(isNaN(this.opacity)?1:this.opacity)))},formatRgb:hF,toString:hF})),HI(yF,function(e,t,n,a){return 1===arguments.length?bF(e):new yF(e,t,n,null==a?1:a)},WI(KI,{brighter(e){return e=null==e?ZI:Math.pow(ZI,e),new yF(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?GI:Math.pow(GI,e),new yF(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*t,r=2*n-a;return new mF(kF(e>=240?e-240:e+120,r,a),kF(e,r,a),kF(e<120?e+240:e-120,r,a),this.opacity)},clamp(){return new yF(wF(this.h),jF(this.s),jF(this.l),fF(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=fF(this.opacity);return"".concat(1===e?"hsl(":"hsla(").concat(wF(this.h),", ").concat(100*jF(this.s),"%, ").concat(100*jF(this.l),"%").concat(1===e?")":", ".concat(e,")"))}})),n.dn(SF),n.dn(_F);const zF=e=>()=>e;function EF(e,t){return function(n){return e+n*t}}function CF(e){return 1===(e=+e)?PF:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(a){return Math.pow(e+a*t,n)}}(t,n,e):zF(isNaN(t)?n:t)}}function PF(e,t){var n=t-e;return n?EF(e,n):zF(isNaN(e)?t:e)}n.dn(zF);const AF=function e(t){var n=CF(t);function a(e,t){var a=n((e=uF(e)).r,(t=uF(t)).r),r=n(e.g,t.g),i=n(e.b,t.b),s=PF(e.opacity,t.opacity);return function(t){return e.r=a(t),e.g=r(t),e.b=i(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function TF(e){return function(t){var n,a,r=t.length,i=new Array(r),s=new Array(r),o=new Array(r);for(n=0;n<r;++n)a=uF(t[n]),i[n]=a.r||0,s[n]=a.g||0,o[n]=a.b||0;return i=e(i),s=e(s),o=e(o),a.opacity=1,function(e){return a.r=i(e),a.g=s(e),a.b=o(e),a+""}}}var RF,OF;TF(SF),TF(_F);function DF(e,t){var n,a=t?t.length:0,r=e?Math.min(a,e.length):0,i=new Array(r),s=new Array(a);for(n=0;n<r;++n)i[n]=VF(e[n],t[n]);for(;n<a;++n)s[n]=t[n];return function(e){for(n=0;n<r;++n)s[n]=i[n](e);return s}}function MF(e,t){var n=new Date;return e=+e,t=+t,function(a){return n.setTime(e*(1-a)+t*a),n}}function IF(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function FF(e,t){var n,a={},r={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?a[n]=VF(e[n],t[n]):r[n]=t[n];return function(e){for(n in a)r[n]=a[n](e);return r}}n.dn(function(e,t){return(RF(t)?OF:DF)(e,t)}),n.dn(MF),n.dn(IF),n.dn(FF),n.dn(qF);var LF=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,BF=new RegExp(LF.source,"g");function qF(e,t){var n,a,r,i=LF.lastIndex=BF.lastIndex=0,s=-1,o=[],l=[];for(e+="",t+="";(n=LF.exec(e))&&(a=BF.exec(t));)(r=a.index)>i&&(r=t.slice(i,r),o[s]?o[s]+=r:o[++s]=r),(n=n[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:IF(n,a)})),i=BF.lastIndex;return i<t.length&&(r=t.slice(i),o[s]?o[s]+=r:o[++s]=r),o.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,a=0;a<t;
2++a)o[(n=l[a]).i]=n.x(e);return o.join("")})}function UF(e,t){t||(t=[]);var n,a=e?Math.min(t.length,e.length):0,r=t.slice();return function(i){for(n=0;n<a;++n)r[n]=e[n]*(1-i)+t[n]*i;return r}}function VF(e,t){var n,a,r=typeof t;return null==t||"boolean"===r?zF(t):("number"===r?IF:"string"===r?(n=lF(t))?(t=n,AF):qF:t instanceof lF?AF:t instanceof Date?MF:(a=t,!ArrayBuffer.isView(a)||a instanceof DataView?Array.isArray(t)?DF:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?FF:IF:UF))(e,t)}function HF(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function WF(e){return+e}n.dn(UF),n.dn(VF),n.dn(HF);var KF=[0,1];function GF(e){return e}function ZF(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function YF(e,t,n){var a=e[0],r=e[1],i=t[0],s=t[1];return r<a?(a=ZF(r,a),i=n(s,i)):(a=ZF(a,r),i=n(i,s)),function(e){return i(a(e))}}function QF(e,t,n){var a=Math.min(e.length,t.length)-1,r=new Array(a),i=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<a;)r[s]=ZF(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(t){var n=VI(e,t,1,a)-1;return i[n](r[n](t))}}function $F(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function XF(){var e,t,n,a,r,i,s=KF,o=KF,l=VF,c=GF;function d(){var e=Math.min(s.length,o.length);return c!==GF&&(c=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(s[0],s[e-1])),a=e>2?QF:YF,r=i=null,u}function u(t){return null==t||isNaN(t=+t)?n:(r||(r=a(s.map(e),o,l)))(e(c(t)))}return u.invert=function(n){return c(t((i||(i=a(o,s.map(e),IF)))(n)))},u.domain=function(e){return arguments.length?(s=Array.from(e,WF),d()):s.slice()},u.range=function(e){return arguments.length?(o=Array.from(e),d()):o.slice()},u.rangeRound=function(e){return o=Array.from(e),l=HF,d()},u.clamp=function(e){return arguments.length?(c=!!e||GF,d()):c!==GF},u.interpolate=function(e){return arguments.length?(l=e,d()):l},u.unknown=function(e){return arguments.length?(n=e,u):n},function(n,a){return e=n,t=a,d()}}function JF(){return XF()(GF,GF)}var eL,tL=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function nL(e){if(!(t=tL.exec(e)))throw new Error("invalid format: "+e);var t;return new aL({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function aL(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function rL(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function iL(e,t){if(!isFinite(e)||0===e)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),a=e.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+e.slice(n+1)]}function sL(e){return(e=iL(Math.abs(e)))?e[1]:NaN}function oL(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sL(t)/3)))-sL(Math.abs(e)))}function lL(e,t){return function(n,a){for(var r=n.length,i=[],s=0,o=e[0],l=0;r>0&&o>0&&(l+o+1>a&&(o=Math.max(1,a-l)),i.push(n.substring(r-=o,r+o)),!((l+=o+1)>a));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function cL(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}function dL(e){e:for(var t,n=e.length,a=1,r=-1;a<n;++a)switch(e[a]){case".":r=t=a;break;case"0":0===r&&(r=a),t=a;break;default:if(!+e[a])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}function uL(e,t){var n=iL(e,t);if(!n)return eL=void 0,e.toPrecision(t);var a=n[0],r=n[1],i=r-(eL=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,s=a.length;return i===s?a:i>s?a+new Array(i-s+1).join("0"):i>0?a.slice(0,i)+"."+a.slice(i):"0."+new Array(1-i).join("0")+iL(e,Math.max(0,t+i-1))[0]}function mL(e,t){var n=iL(e,t);if(!n)return e+"";var a=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+a:a.length>r+1?a.slice(0,r+1)+"."+a.slice(r+1):a+new Array(r-a.length+2).join("0")}nL.prototype=aL.prototype,aL.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type},n.dn(rL),n.dn(sL),n.dn(oL),n.dn(lL),n.dn(cL),n.dn(dL),n.dn(uL),n.dn(mL);const pL={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:rL,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mL(100*e,t),r:mL,s:uL,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function hL(e){return e}n.dn(hL),n.dn(yL);var fL,gL,xL,vL=Array.prototype.map,bL=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function yL(e){var t=void 0===e.grouping||void 0===e.thousands?hL:lL(vL.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",r=void 0===e.decimal?".":e.decimal+"",i=void 0===e.numerals?hL:cL(vL.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",o=void 0===e.minus?"\u2212":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function c(e,c){var d=(e=nL(e)).fill,u=e.align,m=e.sign,p=e.symbol,h=e.zero,f=e.width,g=e.comma,x=e.precision,v=e.trim,b=e.type;"n"===b?(g=!0,b="g"):pL[b]||(void 0===x&&(x=12),v=!0,b="g"),(h||"0"===d&&"="===u)&&(h=!0,d="0",u="=");var y=(c&&void 0!==c.prefix?c.prefix:"")+("$"===p?n:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():""),w=("$"===p?a:/[%p]/.test(b)?s:"")+(c&&void 0!==c.suffix?c.suffix:""),j=pL[b],k=/[defgprs%]/.test(b);function N(e){var n,a,s,c=y,p=w;if("c"===b)p=j(e)+p,e="";else{var N=(e=+e)<0||1/e<0;
vendor: 4,139 bytes, line 2
2if(e=isNaN(e)?l:j(Math.abs(e),x),v&&(e=dL(e)),N&&0===+e&&"+"!==m&&(N=!1),c=(N?"("===m?m:o:"-"===m||"("===m?"":m)+c,p=("s"!==b||isNaN(e)||void 0===eL?"":bL[8+eL/3])+p+(N&&"("===m?")":""),k)for(n=-1,a=e.length;++n<a;)if(48>(s=e.charCodeAt(n))||s>57){p=(46===s?r+e.slice(n+1):e.slice(n))+p,e=e.slice(0,n);break}}g&&!h&&(e=t(e,1/0));var S=c.length+e.length+p.length,_=S<f?new Array(f-S+1).join(d):"";switch(g&&h&&(e=t(_+e,_.length?f-p.length:1/0),_=""),u){case"<":e=c+e+p+_;break;case"=":e=c+_+e+p;break;case"^":e=_.slice(0,S=_.length>>1)+c+e+p+_.slice(S);break;default:e=_+c+e+p}return i(e)}return x=void 0===x?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),N.toString=function(){return e+""},N}return{format:c,formatPrefix:function(e,t){var n=3*Math.max(-8,Math.min(8,Math.floor(sL(t)/3))),a=Math.pow(10,-n),r=c(((e=nL(e)).type="f",e),{suffix:bL[8+n/3]});return function(e){return r(a*e)}}}}function wL(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sL(t)-sL(e))+1}function jL(e){return Math.max(0,-sL(Math.abs(e)))}function kL(e,t,n,a){var r,i=DI(e,t,n);switch((a=nL(null==a?",f":a)).type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(r=oL(i,s))||(a.precision=r),xL(a,s);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(r=wL(i,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=r-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(r=jL(i))||(a.precision=r-2*("%"===a.type))}return gL(a)}function NL(e){var t=e.domain;return e.ticks=function(e){var n=t();return RI(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return kL(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var a,r,i=t(),s=0,o=i.length-1,l=i[s],c=i[o],d=10;for(c<l&&(r=l,l=c,c=r,r=s,s=o,o=r);d-- >0;){if((r=OI(l,c,n))===a)return i[s]=l,i[o]=c,t(i);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}a=r}return e},e}function SL(){var e=JF();return e.copy=function(){return $F(e,SL())},xI.apply(e,arguments),NL(e)}function _L(e){var t;function n(e){return null==e||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,WF),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return _L(e).unknown(t)},e=arguments.length?Array.from(e,WF):[0,1],NL(n)}function zL(e,t){var n,a=0,r=(e=e.slice()).length-1,i=e[a],s=e[r];return s<i&&(n=a,a=r,r=n,n=i,i=s,s=n),e[a]=t.floor(i),e[r]=t.ceil(s),e}function EL(e){return Math.log(e)}function CL(e){return Math.exp(e)}function PL(e){return-Math.log(-e)}function AL(e){return-Math.exp(-e)}function TL(e){return isFinite(e)?+("1e"+e):e<0?0:e}function RL(e){return(t,n)=>-e(-t,n)}function OL(e){const t=e(EL,CL),n=t.domain;let a,r,i=10;function s(){return a=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),r=function(e){return 10===e?TL:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(a=RL(a),r=RL(r),e(PL,AL)):e(EL,CL),t}return t.base=function(e){return arguments.length?(i=+e,s()):i},t.domain=function(e){return arguments.length?(n(e),s()):n()},t.ticks=e=>{const t=n();let s=t[0],o=t[t.length-1];const l=o<s;if(l){var c=[o,s];s=c[0],o=c[1]}let d,u,m=a(s),p=a(o);const h=null==e?10:+e;let f=[];if(!(i%1)&&p-m<h){if(m=Math.floor(m),p=Math.ceil(p),s>0){for(;m<=p;++m)for(d=1;d<i;++d)if(u=m<0?d/r(-m):d*r(m),!(u<s)){if(u>o)break;f.push(u)}}else for(;m<=p;++m)for(d=i-1;d>=1;--d)if(u=m>0?d/r(-m):d*r(m),!(u<s)){if(u>o)break;f.push(u)}2*f.length<h&&(f=RI(s,o,h))}else f=RI(m,p,Math.min(p-m,h)).map(r);return l?f.reverse():f},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!==typeof n&&(i%1||null!=(n=nL(n)).precision||(n.trim=!0),n=gL(n)),e===1/0)return n;const s=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/r(Math.round(a(e)));return t*i<i-.5&&(t*=i),t<=s?n(e):""}},t.nice=()=>n(zL(n(),{floor:e=>r(Math.floor(a(e))),ceil:e=>r(Math.ceil(a(e)))})),t}function DL(){const e=OL(XF()).domain([1,10]);return e.copy=()=>$F(e,DL()).base(e.base()),xI.apply(e,arguments),e}
vendor: 4,679 bytes, line 2
2function ML(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IL(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function FL(e){var t=1,n=e(ML(t),IL(t));return n.constant=function(n){return arguments.length?e(ML(t=+n),IL(t)):t},NL(n)}function LL(){var e=FL(XF());return e.copy=function(){return $F(e,LL()).constant(e.constant())},xI.apply(e,arguments)}function BL(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function qL(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function UL(e){return e<0?-e*e:e*e}function VL(e){var t=e(GF,GF),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(GF,GF):.5===n?e(qL,UL):e(BL(n),BL(1/n)):n},NL(t)}function HL(){var e=VL(XF());return e.copy=function(){return $F(e,HL()).exponent(e.exponent())},xI.apply(e,arguments),e}function WL(){return HL.apply(null,arguments).exponent(.5)}function KL(e){return Math.sign(e)*e*e}function GL(){var e,t=JF(),n=[0,1],a=!1;function r(n){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(n));return isNaN(r)?e:a?Math.round(r):r}return r.invert=function(e){return t.invert(KL(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain()},r.range=function(e){return arguments.length?(t.range((n=Array.from(e,WF)).map(KL)),r):n.slice()},r.rangeRound=function(e){return r.range(e).round(!0)},r.round=function(e){return arguments.length?(a=!!e,r):a},r.clamp=function(e){return arguments.length?(t.clamp(e),r):t.clamp()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return GL(t.domain(),n).round(a).clamp(t.clamp()).unknown(e)},xI.apply(r,arguments),NL(r)}function ZL(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n<a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n<r||void 0===n&&r>=r)&&(n=r)}return n}function YL(e,t){let n;if(void 0===t)for(const a of e)null!=a&&(n>a||void 0===n&&a>=a)&&(n=a);else{let a=-1;for(let r of e)null!=(r=t(r,++a,e))&&(n>r||void 0===n&&r>=r)&&(n=r)}return n}function QL(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:MI;if(e===MI)return $L;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const a=e(t,n);return a||0===a?a:(0===e(n,n))-(0===e(t,t))}}function $L(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function XL(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,r=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),a=Math.floor(Math.min(e.length-1,a)),!(n<=t&&t<=a))return e;for(r=void 0===r?$L:QL(r);a>n;){if(a-n>600){const i=a-n+1,s=t-n+1,o=Math.log(i),l=.5*Math.exp(2*o/3),c=.5*Math.sqrt(o*l*(i-l)/i)*(s-i/2<0?-1:1);XL(e,t,Math.max(n,Math.floor(t-s*l/i+c)),Math.min(a,Math.floor(t+(i-s)*l/i+c)),r)}const i=e[t];let s=n,o=a;for(JL(e,n,t),r(e[a],i)>0&&JL(e,n,a);s<o;){for(JL(e,s,o),++s,--o;r(e[s],i)<0;)++s;for(;r(e[o],i)>0;)--o}0===r(e[n],i)?JL(e,n,o):(++o,JL(e,o,a)),o<=t&&(n=o+1),t<=o&&(a=o-1)}return e}function JL(e,t,n){const a=e[t];e[t]=e[n],e[n]=a}function eB(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let n of e)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of e)null!=(a=t(a,++n,e))&&(a=+a)>=a&&(yield a)}}(e,n)),(a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return YL(e);if(t>=1)return ZL(e);var a,r=(a-1)*t,i=Math.floor(r),s=ZL(XL(e,i).subarray(0,i+1));return s+(YL(e.subarray(i+1))-s)*(r-i)}}function tB(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:BI;if((a=e.length)&&!isNaN(t=+t)){if(t<=0||a<2)return+n(e[0],0,e);if(t>=1)return+n(e[a-1],a-1,e);var a,r=(a-1)*t,i=Math.floor(r),s=+n(e[i],i,e);return s+(+n(e[i+1],i+1,e)-s)*(r-i)}}function nB(){var e,t=[],n=[],a=[];function r(){var e=0,r=Math.max(1,n.length);for(a=new Array(r-1);++e<r;)a[e-1]=tB(t,e/r);return i}function i(t){return null==t||isNaN(t=+t)?e:n[VI(a,t)]}return i.invertExtent=function(e){var r=n.indexOf(e);return r<0?[NaN,NaN]:[r>0?a[r-1]:t[0],r<a.length?a[r]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(MI),r()},i.range=function(e){return arguments.length?(n=Array.from(e),r()):n.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return a.slice()},i.copy=function(){return nB().domain(t).range(n).unknown(e)},xI.apply(i,arguments)}function aB(){var e,t=0,n=1,a=1,r=[.5],i=[0,1];function s(t){return null!=t&&t<=t?i[VI(r,t,0,a)]:e}function o(){var e=-1;for(r=new Array(a);++e<a;)r[e]=((e+1)*n-(e-a)*t)/(a+1);return s}return s.domain=function(e){var a;
2return arguments.length?(a=Le(e,2),t=a[0],n=a[1],t=+t,n=+n,o()):[t,n]},s.range=function(e){return arguments.length?(a=(i=Array.from(e)).length-1,o()):i.slice()},s.invertExtent=function(e){var s=i.indexOf(e);return s<0?[NaN,NaN]:s<1?[t,r[0]]:s>=a?[r[a-1],n]:[r[s-1],r[s]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return r.slice()},s.copy=function(){return aB().domain([t,n]).range(i).unknown(e)},xI.apply(NL(s),arguments)}function rB(){var e,t=[.5],n=[0,1],a=1;function r(r){return null!=r&&r<=r?n[VI(t,r,0,a)]:e}return r.domain=function(e){return arguments.length?(t=Array.from(e),a=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(e){return arguments.length?(n=Array.from(e),a=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var a=n.indexOf(e);return[t[a-1],t[a]]},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return rB().domain(t).range(n).unknown(e)},xI.apply(r,arguments)}fL=yL({thousands:",",grouping:[3],currency:["$",""]}),gL=fL.format,xL=fL.formatPrefix,n.dn(wL),n.dn(jL);const iB=1e3,sB=6e4,oB=36e5,lB=864e5,cB=6048e5,dB=2592e6,uB=31536e6,mB=new Date,pB=new Date;function hB(e,t,n,a){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=t=>(e(t=new Date(+t)),t),r.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),r.round=e=>{const t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),r.range=(n,a,i)=>{const s=[];if(n=r.ceil(n),i=null==i?1:Math.floor(i),!(n<a)||!(i>0))return s;let o;do{s.push(o=new Date(+n)),t(n,i),e(n)}while(o<n&&n<a);return s},r.filter=n=>hB(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,a)=>{if(e>=e)if(a<0)for(;++a<=0;)for(;t(e,-1),!n(e););else for(;--a>=0;)for(;t(e,1),!n(e););}),n&&(r.count=(t,a)=>(mB.setTime(+t),pB.setTime(+a),e(mB),e(pB),Math.floor(n(mB,pB))),r.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(a?t=>a(t)%e===0:t=>r.count(0,t)%e===0):r:null)),r}const fB=hB(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fB.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?hB(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fB:null);fB.range;const gB=hB(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*iB)},(e,t)=>(t-e)/iB,e=>e.getUTCSeconds()),xB=(gB.range,hB(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*iB)},(e,t)=>{e.setTime(+e+t*sB)},(e,t)=>(t-e)/sB,e=>e.getMinutes())),vB=(xB.range,hB(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*sB)},(e,t)=>(t-e)/sB,e=>e.getUTCMinutes())),bB=(vB.range,hB(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*iB-e.getMinutes()*sB)},(e,t)=>{e.setTime(+e+t*oB)},(e,t)=>(t-e)/oB,e=>e.getHours())),yB=(bB.range,hB(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*oB)},(e,t)=>(t-e)/oB,e=>e.getUTCHours())),wB=(yB.range,hB(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sB)/lB,e=>e.getDate()-1)),jB=(wB.range,hB(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/lB,e=>e.getUTCDate()-1)),kB=(jB.range,hB(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/lB,e=>Math.floor(e/lB)));kB.range;function NB(e){return hB(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*sB)/cB)}const SB=NB(0),_B=NB(1),zB=NB(2),EB=NB(3),CB=NB(4),PB=NB(5),AB=NB(6);SB.range,_B.range,zB.range,EB.range,CB.range,PB.range,AB.range;function TB(e){return hB(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/cB)}const RB=TB(0),OB=TB(1),DB=TB(2),MB=TB(3),IB=TB(4),FB=TB(5),LB=TB(6),BB=(RB.range,OB.range,DB.range,MB.range,IB.range,FB.range,LB.range,hB(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),qB=(BB.range,hB(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),UB=(qB.range,hB(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));UB.every=e=>isFinite(e=Math.floor(e))&&e>0?hB(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}):null;UB.range;const VB=hB(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());VB.every=e=>isFinite(e=Math.floor(e))&&e>0?hB(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null;VB.range;function HB(e,t,n,a,r,i){const s=[[gB,1,iB],[gB,5,5e3],[gB,15,15e3],[gB,30,3e4],[i,1,sB],[i,5,3e5],[i,15,9e5],[i,30,18e5],[r,1,oB],[r,3,108e5],[r,6,216e5],[r,12,432e5],[a,1,lB],[a,2,1728e5],[n,1,cB],[t,1,dB],[t,3,7776e6],[e,1,uB]];function o(t,n,a){const r=Math.abs(n-t)/a,i=FI(e=>Le(e,3)[2]).right(s,r);if(i===s.length)return e.every(DI(t/uB,n/uB,a));if(0===i)return fB.every(Math.max(DI(t,n,a),1));const o=Le(s[r/s[i-1][2]<s[i][2]/r?i-1:i],2),l=o[0],c=o[1];return l.every(c)}return[function(e,t,n){const a=t<e;if(a){var r=[t,e];e=r[0],t=r[1]}
vendor: 7,413 bytes, line 2
2const i=n&&"function"===typeof n.range?n:o(e,t,n),s=i?i.range(e,+t+1):[];return a?s.reverse():s},o]}const WB=Le(HB(VB,qB,RB,kB,yB,vB),2),KB=WB[0],GB=WB[1],ZB=Le(HB(UB,BB,SB,wB,bB,xB),2),YB=ZB[0],QB=ZB[1];function $B(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function XB(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function JB(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var eq,tq,nq,aq={"-":"",_:" ",0:"0"},rq=/^\s*\d+/,iq=/^%/,sq=/[\\^$*+?|[\]().{}]/g;function oq(e,t,n){var a=e<0?"-":"",r=(a?-e:e)+"",i=r.length;return a+(i<n?new Array(n-i+1).join(t)+r:r)}function lq(e){return e.replace(sq,"\\$&")}function cq(e){return new RegExp("^(?:"+e.map(lq).join("|")+")","i")}function dq(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function uq(e,t,n){var a=rq.exec(t.slice(n,n+1));return a?(e.w=+a[0],n+a[0].length):-1}function mq(e,t,n){var a=rq.exec(t.slice(n,n+1));return a?(e.u=+a[0],n+a[0].length):-1}function pq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.U=+a[0],n+a[0].length):-1}function hq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.V=+a[0],n+a[0].length):-1}function fq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.W=+a[0],n+a[0].length):-1}function gq(e,t,n){var a=rq.exec(t.slice(n,n+4));return a?(e.y=+a[0],n+a[0].length):-1}function xq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function vq(e,t,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return a?(e.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function bq(e,t,n){var a=rq.exec(t.slice(n,n+1));return a?(e.q=3*a[0]-3,n+a[0].length):-1}function yq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.m=a[0]-1,n+a[0].length):-1}function wq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.d=+a[0],n+a[0].length):-1}function jq(e,t,n){var a=rq.exec(t.slice(n,n+3));return a?(e.m=0,e.d=+a[0],n+a[0].length):-1}function kq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.H=+a[0],n+a[0].length):-1}function Nq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.M=+a[0],n+a[0].length):-1}function Sq(e,t,n){var a=rq.exec(t.slice(n,n+2));return a?(e.S=+a[0],n+a[0].length):-1}function _q(e,t,n){var a=rq.exec(t.slice(n,n+3));return a?(e.L=+a[0],n+a[0].length):-1}function zq(e,t,n){var a=rq.exec(t.slice(n,n+6));return a?(e.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function Eq(e,t,n){var a=iq.exec(t.slice(n,n+1));return a?n+a[0].length:-1}function Cq(e,t,n){var a=rq.exec(t.slice(n));return a?(e.Q=+a[0],n+a[0].length):-1}function Pq(e,t,n){var a=rq.exec(t.slice(n));return a?(e.s=+a[0],n+a[0].length):-1}function Aq(e,t){return oq(e.getDate(),t,2)}function Tq(e,t){return oq(e.getHours(),t,2)}function Rq(e,t){return oq(e.getHours()%12||12,t,2)}function Oq(e,t){return oq(1+wB.count(UB(e),e),t,3)}function Dq(e,t){return oq(e.getMilliseconds(),t,3)}function Mq(e,t){return Dq(e,t)+"000"}function Iq(e,t){return oq(e.getMonth()+1,t,2)}function Fq(e,t){return oq(e.getMinutes(),t,2)}function Lq(e,t){return oq(e.getSeconds(),t,2)}function Bq(e){var t=e.getDay();return 0===t?7:t}function qq(e,t){return oq(SB.count(UB(e)-1,e),t,2)}function Uq(e){var t=e.getDay();return t>=4||0===t?CB(e):CB.ceil(e)}function Vq(e,t){return e=Uq(e),oq(CB.count(UB(e),e)+(4===UB(e).getDay()),t,2)}function Hq(e){return e.getDay()}function Wq(e,t){return oq(_B.count(UB(e)-1,e),t,2)}function Kq(e,t){return oq(e.getFullYear()%100,t,2)}function Gq(e,t){return oq((e=Uq(e)).getFullYear()%100,t,2)}function Zq(e,t){return oq(e.getFullYear()%1e4,t,4)}function Yq(e,t){var n=e.getDay();return oq((e=n>=4||0===n?CB(e):CB.ceil(e)).getFullYear()%1e4,t,4)}function Qq(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+oq(t/60|0,"0",2)+oq(t%60,"0",2)}function $q(e,t){return oq(e.getUTCDate(),t,2)}function Xq(e,t){return oq(e.getUTCHours(),t,2)}function Jq(e,t){return oq(e.getUTCHours()%12||12,t,2)}function eU(e,t){return oq(1+jB.count(VB(e),e),t,3)}function tU(e,t){return oq(e.getUTCMilliseconds(),t,3)}function nU(e,t){return tU(e,t)+"000"}function aU(e,t){return oq(e.getUTCMonth()+1,t,2)}function rU(e,t){return oq(e.getUTCMinutes(),t,2)}function iU(e,t){return oq(e.getUTCSeconds(),t,2)}function sU(e){var t=e.getUTCDay();return 0===t?7:t}function oU(e,t){return oq(RB.count(VB(e)-1,e),t,2)}function lU(e){var t=e.getUTCDay();return t>=4||0===t?IB(e):IB.ceil(e)}function cU(e,t){return e=lU(e),oq(IB.count(VB(e),e)+(4===VB(e).getUTCDay()),t,2)}function dU(e){return e.getUTCDay()}function uU(e,t){return oq(OB.count(VB(e)-1,e),t,2)}function mU(e,t){return oq(e.getUTCFullYear()%100,t,2)}function pU(e,t){return oq((e=lU(e)).getUTCFullYear()%100,t,2)}function hU(e,t){return oq(e.getUTCFullYear()%1e4,t,4)}function fU(e,t){var n=e.getUTCDay();return oq((e=n>=4||0===n?IB(e):IB.ceil(e)).getUTCFullYear()%1e4,t,4)}function gU(){return"+0000"}function xU(){return"%"}function vU(e){return+e}function bU(e){return Math.floor(+e/1e3)}function yU(e){return new Date(e)}function wU(e){return e instanceof Date?+e:+new Date(+e)}function jU(e,t,n,a,r,i,s,o,l,c){var d=JF(),u=d.invert,m=d.domain,p=c(".%L"),h=c(":%S"),f=c("%I:%M"),g=c("%I %p"),x=c("%a %d"),v=c("%b %d"),b=c("%B"),y=c("%Y");function w(e){return(l(e)<e?p:o(e)<e?h:s(e)<e?f:i(e)<e?g:a(e)<e?r(e)<e?x:v:n(e)<e?b:y)(e)}return d.invert=function(e){return new Date(u(e))},d.domain=function(e){return arguments.length?m(Array.from(e,wU)):m().map(yU)},d.ticks=function(t){var n=m();return e(n[0],n[n.length-1],null==t?10:t)},d.tickFormat=function(e,t){return null==t?w:c(t)},d.nice=function(e){var n=m();return e&&"function"===typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?m(zL(n,e)):d},d.copy=function(){return $F(d,jU(e,t,n,a,r,i,s,o,l,c))},d}function kU(){return xI.apply(jU(YB,QB,UB,BB,SB,wB,bB,xB,gB,tq).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function NU(){return xI.apply(jU(KB,GB,VB,qB,RB,jB,yB,vB,gB,nq).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function SU(){var e,t,n,a,r,i=0,s=1,o=GF,l=!1;function c(t){return null==t||isNaN(t=+t)?r:o(0===n?.5:(t=(a(t)-e)*n,l?Math.max(0,Math.min(1,t)):t))}function d(e){return function(t){var n,a,r;return arguments.length?(a=(n=Le(t,2))[0],r=n[1],o=e(a,r),c):[o(0),o(1)]}}return c.domain=function(r){var o;return arguments.length?(o=Le(r,2),i=o[0],s=o[1],e=a(i=+i),t=a(s=+s),n=e===t?0:1/(t-e),c):[i,s]},c.clamp=function(e){return arguments.length?(l=!!e,c):l},c.interpolator=function(e){return arguments.length?(o=e,c):o},c.range=d(VF),c.rangeRound=d(HF),c.unknown=function(e){return arguments.length?(r=e,c):r},function(r){return a=r,e=r(i),t=r(s),n=e===t?0:1/(t-e),c}}function _U(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zU(){var e=NL(SU()(GF));return e.copy=function(){return _U(e,zU())},vI.apply(e,arguments)}function EU(){var e=OL(SU()).domain([1,10]);return e.copy=function(){return _U(e,EU()).base(e.base())},vI.apply(e,arguments)}function CU(){var e=FL(SU());return e.copy=function(){return _U(e,CU()).constant(e.constant())},vI.apply(e,arguments)}function PU(){var e=VL(SU());return e.copy=function(){return _U(e,PU()).exponent(e.exponent())},vI.apply(e,arguments)}function AU(){return PU.apply(null,arguments).exponent(.5)}function TU(){var e=[],t=GF;
vendor: 4,145 bytes, line 2
2function n(n){if(null!=n&&!isNaN(n=+n))return t((VI(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)null==n||isNaN(n=+n)||e.push(n);return e.sort(MI),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,a)=>eB(e,a/t))},n.copy=function(){return TU(t).domain(e)},vI.apply(n,arguments)}function RU(){var e,t,n,a,r,i,s,o=0,l=.5,c=1,d=1,u=GF,m=!1;function p(e){return isNaN(e=+e)?s:(e=.5+((e=+i(e))-t)*(d*e<d*t?a:r),u(m?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,a,r,i;return arguments.length?(a=(n=Le(t,3))[0],r=n[1],i=n[2],u=function(e,t){void 0===t&&(t=e,e=VF);for(var n=0,a=t.length-1,r=t[0],i=new Array(a<0?0:a);n<a;)i[n]=e(r,r=t[++n]);return function(e){var t=Math.max(0,Math.min(a-1,Math.floor(e*=a)));return i[t](e-t)}}(e,[a,r,i]),p):[u(0),u(.5),u(1)]}}return p.domain=function(s){var u;return arguments.length?(u=Le(s,3),o=u[0],l=u[1],c=u[2],e=i(o=+o),t=i(l=+l),n=i(c=+c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),d=t<e?-1:1,p):[o,l,c]},p.clamp=function(e){return arguments.length?(m=!!e,p):m},p.interpolator=function(e){return arguments.length?(u=e,p):u},p.range=h(VF),p.rangeRound=h(HF),p.unknown=function(e){return arguments.length?(s=e,p):s},function(s){return i=s,e=s(o),t=s(l),n=s(c),a=e===t?0:.5/(t-e),r=t===n?0:.5/(n-t),d=t<e?-1:1,p}}function OU(){var e=NL(RU()(GF));return e.copy=function(){return _U(e,OU())},vI.apply(e,arguments)}function DU(){var e=OL(RU()).domain([.1,1,10]);return e.copy=function(){return _U(e,DU()).base(e.base())},vI.apply(e,arguments)}function MU(){var e=FL(RU());return e.copy=function(){return _U(e,MU()).constant(e.constant())},vI.apply(e,arguments)}function IU(){var e=VL(RU());return e.copy=function(){return _U(e,IU()).exponent(e.exponent())},vI.apply(e,arguments)}function FU(){return IU.apply(null,arguments).exponent(.5)}!function(e){eq=function(e){var t=e.dateTime,n=e.date,a=e.time,r=e.periods,i=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=cq(r),d=dq(r),u=cq(i),m=dq(i),p=cq(s),h=dq(s),f=cq(o),g=dq(o),x=cq(l),v=dq(l),b={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return o[e.getMonth()]},c:null,d:Aq,e:Aq,f:Mq,g:Gq,G:Yq,H:Tq,I:Rq,j:Oq,L:Dq,m:Iq,M:Fq,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:vU,s:bU,S:Lq,u:Bq,U:qq,V:Vq,w:Hq,W:Wq,x:null,X:null,y:Kq,Y:Zq,Z:Qq,"%":xU},y={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return o[e.getUTCMonth()]},c:null,d:$q,e:$q,f:nU,g:pU,G:fU,H:Xq,I:Jq,j:eU,L:tU,m:aU,M:rU,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:vU,s:bU,S:iU,u:sU,U:oU,V:cU,w:dU,W:uU,x:null,X:null,y:mU,Y:hU,Z:gU,"%":xU},w={a:function(e,t,n){var a=p.exec(t.slice(n));return a?(e.w=h.get(a[0].toLowerCase()),n+a[0].length):-1},A:function(e,t,n){var a=u.exec(t.slice(n));return a?(e.w=m.get(a[0].toLowerCase()),n+a[0].length):-1},b:function(e,t,n){var a=x.exec(t.slice(n));return a?(e.m=v.get(a[0].toLowerCase()),n+a[0].length):-1},B:function(e,t,n){var a=f.exec(t.slice(n));return a?(e.m=g.get(a[0].toLowerCase()),n+a[0].length):-1},c:function(e,n,a){return N(e,t,n,a)},d:wq,e:wq,f:zq,g:xq,G:gq,H:kq,I:kq,j:jq,L:_q,m:yq,M:Nq,p:function(e,t,n){var a=c.exec(t.slice(n));return a?(e.p=d.get(a[0].toLowerCase()),n+a[0].length):-1},q:bq,Q:Cq,s:Pq,S:Sq,u:mq,U:pq,V:hq,w:uq,W:fq,x:function(e,t,a){return N(e,n,t,a)},X:function(e,t,n){return N(e,a,t,n)},y:xq,Y:gq,Z:vq,"%":Eq};function j(e,t){return function(n){var a,r,i,s=[],o=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++o<c;)37===e.charCodeAt(o)&&(s.push(e.slice(l,o)),null!=(r=aq[a=e.charAt(++o)])?a=e.charAt(++o):r="e"===a?" ":"0",(i=t[a])&&(a=i(n,r)),s.push(a),l=o+1);return s.push(e.slice(l,o)),s.join("")}}function k(e,t){return function(n){var a,r,i=JB(1900,void 0,1);if(N(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);
2if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(r=(a=XB(JB(i.y,0,1))).getUTCDay(),a=r>4||0===r?OB.ceil(a):OB(a),a=jB.offset(a,7*(i.V-1)),i.y=a.getUTCFullYear(),i.m=a.getUTCMonth(),i.d=a.getUTCDate()+(i.w+6)%7):(r=(a=$B(JB(i.y,0,1))).getDay(),a=r>4||0===r?_B.ceil(a):_B(a),a=wB.offset(a,7*(i.V-1)),i.y=a.getFullYear(),i.m=a.getMonth(),i.d=a.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),r="Z"in i?XB(JB(i.y,0,1)).getUTCDay():$B(JB(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(r+5)%7:i.w+7*i.U-(r+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,XB(i)):$B(i)}}function N(e,t,n,a){for(var r,i,s=0,o=t.length,l=n.length;s<o;){if(a>=l)return-1;if(37===(r=t.charCodeAt(s++))){if(r=t.charAt(s++),!(i=w[r in aq?t.charAt(s++):r])||(a=i(e,n,a))<0)return-1}else if(r!=n.charCodeAt(a++))return-1}return a}return b.x=j(n,b),b.X=j(a,b),b.c=j(t,b),y.x=j(n,y),y.X=j(a,y),y.c=j(t,y),{format:function(e){var t=j(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=j(e+="",y);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),tq=eq.format,eq.parse,nq=eq.utcFormat,eq.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var LU=e=>e.chartData,BU=VD([LU],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),qU=(e,t,n,a)=>a?BU(e):LU(e);function UU(e){if(Array.isArray(e)&&2===e.length){var t=Le(e,2),n=t[0],a=t[1];if(kA(n)&&kA(a))return!0}return!1}function VU(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function HU(e,t){if(t&&"function"!==typeof e&&Array.isArray(e)&&2===e.length){var n,a,r=Le(e,2),i=r[0],s=r[1];if(kA(i))n=i;else if("function"===typeof i)return;if(kA(s))a=s;else if("function"===typeof s)return;var o=[n,a];if(UU(o))return o}}var WU,KU=n(210),GU=n.n(KU),ZU=e=>e,YU={"@@functional/placeholder":!0},QU=e=>e===YU,$U=e=>function t(){return 0===arguments.length||1===arguments.length&&QU(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},XU=(e,t)=>1===e?t:$U(function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];var i=a.filter(e=>e!==YU).length;return i>=e?t(...a):XU(e-i,$U(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=a.map(e=>QU(e)?n.shift():e);return t(...i,...n)}))}),JU=(e,t)=>{for(var n=[],a=e;a<t;++a)n[a-e]=a;return n},eV=(WU=(e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(e=>t[e]).map(e),XU(WU.length,WU));function tV(e){return 0===e?1:Math.floor(new(GU())(e).abs().log(10).toNumber())+1}function nV(e,t,n){for(var a=new(GU())(e),r=0,i=[];a.lt(t)&&r<1e5;)i.push(a.toNumber()),a=a.add(n),r++;return i}var aV=e=>{var t=Le(e,2),n=t[0],a=t[1],r=n,i=a;return n>a&&(r=a,i=n),[r,i]},rV=(e,t,n)=>{if(e.lte(0))return new(GU())(0);var a=tV(e.toNumber()),r=new(GU())(10).pow(a),i=e.div(r),s=1!==a?.05:.1,o=new(GU())(Math.ceil(i.div(s).toNumber())).add(n).mul(s).mul(r);return t?new(GU())(o.toNumber()):new(GU())(Math.ceil(o.toNumber()))},iV=(e,t,n)=>{var a=new(GU())(1),r=new(GU())(e);if(!r.isint()&&n){var i=Math.abs(e);i<1?(a=new(GU())(10).pow(tV(e)-1),r=new(GU())(Math.floor(r.div(a).toNumber())).mul(a)):i>1&&(r=new(GU())(Math.floor(e)))}else 0===e?r=new(GU())(Math.floor((t-1)/2)):n||(r=new(GU())(Math.floor(e)));var s=Math.floor((t-1)/2);return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return ZU;var a=t.reverse(),r=a[0],i=a.slice(1);return function(){return i.reduce((e,t)=>
2t(e),r(...arguments))}}(eV(e=>r.add(new(GU())(e-s).mul(a)).toNumber()),JU)(0,t)},sV=function(e,t,n,a){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new(GU())(0),tickMin:new(GU())(0),tickMax:new(GU())(0)};var i,s=rV(new(GU())(t).sub(e).div(n-1),a,r);i=e<=0&&t>=0?new(GU())(0):(i=new(GU())(e).add(t).div(2)).sub(new(GU())(i).mod(s));var o=Math.ceil(i.sub(e).div(s).toNumber()),l=Math.ceil(new(GU())(t).sub(i).div(s).toNumber()),c=o+l+1;return c>n?sV(e,t,n,a,r+1):(c<n&&(l=t>0?l+(n-c):l,o=t>0?o:o+(n-c)),{step:s,tickMin:i.sub(new(GU())(o).mul(s)),tickMax:i.add(new(GU())(l).mul(s))})},oV=e=>e.rootProps.stackOffset,lV=e=>e.rootProps.reverseStackOrder,cV=e=>e.options.chartName,dV=e=>e.rootProps.syncId,uV=e=>e.rootProps.syncMethod,mV=e=>e.options.eventEmitter;function pV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pV(Object(n),!0).forEach(function(t){fV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fV(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gV=Math.PI/180,xV=e=>180*e/Math.PI,vV=(e,t,n,a)=>({x:e+Math.cos(-gV*a)*n,y:t+Math.sin(-gV*a)*n}),bV=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},yV=(e,t)=>{var n=e.x,a=e.y,r=t.cx,i=t.cy,s=((e,t)=>{var n=e.x,a=e.y,r=t.x,i=t.y;return Math.sqrt((n-r)**2+(a-i)**2)})({x:n,y:a},{x:r,y:i});if(s<=0)return{radius:s,angle:0};var o=(n-r)/s,l=Math.acos(o);return a>i&&(l=2*Math.PI-l),{radius:s,angle:xV(l),angleInRadian:l}},wV=(e,t)=>{var n=t.startAngle,a=t.endAngle,r=Math.floor(n/360),i=Math.floor(a/360);return e+360*Math.min(r,i)},jV=(e,t)=>{var n=e.chartX,a=e.chartY,r=yV({x:n,y:a},t),i=r.radius,s=r.angle,o=t.innerRadius,l=t.outerRadius;if(i<o||i>l)return null;if(0===i)return null;var c,d=(e=>{var t=e.startAngle,n=e.endAngle,a=Math.floor(t/360),r=Math.floor(n/360),i=Math.min(a,r);return{startAngle:t-360*i,endAngle:n-360*i}})(t),u=d.startAngle,m=d.endAngle,p=s;if(u<=m){for(;p>m;)p-=360;for(;p<u;)p+=360;c=p>=u&&p<=m}else{for(;p>u;)p-=360;for(;p<m;)p+=360;c=p>=m&&p<=u}return c?hV(hV({},t),{},{radius:i,angle:wV(p,t)}):null},kV={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},NV=0,SV="auto",_V=!0,zV=!1,EV=!0,CV=0,PV="auto",AV=!0,TV=5,RV=(e,t)=>{if(e&&t)return null!==e&&void 0!==e&&e.reversed?[t[1],t[0]]:t},OV={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:NV,includeHidden:!1,name:void 0,reversed:!1,scale:SV,tick:_V,tickCount:void 0,ticks:void 0,type:"category",unit:void 0},DV={allowDataOverflow:zV,allowDecimals:!1,allowDuplicatedCategory:EV,dataKey:void 0,domain:void 0,id:CV,includeHidden:!1,name:void 0,reversed:!1,scale:PV,tick:AV,tickCount:TV,ticks:void 0,type:"number",unit:void 0},MV={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:NV,includeHidden:!1,name:void 0,reversed:!1,scale:SV,tick:_V,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},IV={allowDataOverflow:zV,allowDecimals:!1,allowDuplicatedCategory:EV,dataKey:void 0,domain:void 0,id:CV,includeHidden:!1,name:void 0,reversed:!1,scale:PV,tick:AV,tickCount:TV,ticks:void 0,type:"category",unit:void 0},FV=(e,t)=>null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?MV:OV,LV=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?IV:DV,BV=e=>e.polarOptions,qV=VD([UM,VM,JM],bV),UV=VD([BV,qV],(e,t)=>{if(null!=e)return lA(e.innerRadius,t,0)}),VV=VD([BV,qV],(e,t)=>{if(null!=e)return lA(e.outerRadius,t,.8*t)}),HV=VD([BV],e=>null==e?[0,0]:[e.startAngle,e.endAngle]),WV=(VD([FV,HV],RV),VD([qV,UV,VV],(e,t,n)=>{if(null!=e&&null!=t&&null!=n)return[t,n]}
2)),KV=(VD([LV,WV],RV),VD([mI,BV,UV,VV,UM,VM],(e,t,n,a,r,i)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=n&&null!=a){var s=t.cx,o=t.cy,l=t.startAngle,c=t.endAngle;return{cx:lA(s,r,r/2),cy:lA(o,i,i/2),innerRadius:n,outerRadius:a,startAngle:l,endAngle:c,clockWise:!1}}})),GV=(e,t)=>t,ZV=(e,t,n)=>n;function YV(e){return null===e||void 0===e?void 0:e.id}function QV(e,t,n){var a=t.chartData,r=void 0===a?[]:a,i=n.allowDuplicatedCategory,s=n.dataKey,o=new Map;return e.forEach(e=>{var t,n=null!==(t=e.data)&&void 0!==t?t:r;if(null!=n&&0!==n.length){var a=YV(e);n.forEach((t,n)=>{var r,l=null==s||i?n:String(EM(t,s,null)),c=EM(t,e.dataKey,0);r=o.has(l)?o.get(l):{},Object.assign(r,{[a]:c}),o.set(l,r)})}}),Array.from(o.values())}function $V(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var XV=(e,t)=>e===t||null!=e&&null!=t&&(e[0]===t[0]&&e[1]===t[1]);function JV(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var eH=e=>{var t=mI(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},tH=e=>e.tooltip.settings.axisId;function nH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function aH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nH(Object(n),!0).forEach(function(t){rH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rH(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var iH=[0,"auto"],sH={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},oH=(e,t)=>e.cartesianAxis.xAxis[t],lH=(e,t)=>{var n=oH(e,t);return null==n?sH:n},cH={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:iH,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},dH=(e,t)=>e.cartesianAxis.yAxis[t],uH=(e,t)=>{var n=dH(e,t);return null==n?cH:n},mH={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},pH=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return null==n?mH:n},hH=(e,t,n)=>{switch(t){case"xAxis":return lH(e,n);case"yAxis":return uH(e,n);case"zAxis":return pH(e,n);case"angleAxis":return FV(e,n);case"radiusAxis":return LV(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},fH=(e,t,n)=>{switch(t){case"xAxis":return lH(e,n);case"yAxis":return uH(e,n);case"angleAxis":return FV(e,n);case"radiusAxis":return LV(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},gH=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function xH(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var vH=e=>e.graphicalItems.cartesianItems,bH=VD([GV,ZV],xH),yH=(e,t,n)=>e.filter(n).filter(e=>!0===(null===t||void 0===t?void 0:t.includeHidden)||!e.hide),wH=VD([vH,h
2H,bH],yH,{memoizeOptions:{resultEqualityCheck:JV}}),jH=VD([wH],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter($V)),kH=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),NH=VD([wH],kH),SH=e=>e.map(e=>e.data).filter(Boolean).flat(1),_H=VD([wH],SH,{memoizeOptions:{resultEqualityCheck:JV}}),zH=(e,t)=>{var n=t.chartData,a=void 0===n?[]:n,r=t.dataStartIndex,i=t.dataEndIndex;return e.length>0?e:a.slice(r,i+1)},EH=VD([_H,qU],zH),CH=(e,t,n)=>null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:EM(e,t.dataKey)})):n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:EM(e,t)}))):e.map(e=>({value:e})),PH=VD([EH,hH,wH],CH);function AH(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function TH(e){if(iA(e)||e instanceof Date){var t=Number(e);if(kA(t))return t}}function RH(e){if(Array.isArray(e)){var t=[TH(e[0]),TH(e[1])];return UU(t)?t:void 0}var n=TH(e);if(null!=n)return[n,n]}function OH(e){return e.map(TH).filter(hA)}var DH=e=>{var t=eH(e),n=tH(e);return fH(e,t,n)},MH=VD([DH],e=>null===e||void 0===e?void 0:e.dataKey),IH=VD([jH,qU,DH],QV),FH=(e,t,n,a)=>{var r=t.reduce((e,t)=>{if(null==t.stackId)return e;var n=e[t.stackId];return null==n&&(n=[]),n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(r).map(t=>{var r=Le(t,2),i=r[0],s=r[1],o=a?[...s].reverse():s,l=o.map(YV);return[i,{stackedData:OM(e,l,n),graphicalItems:o}]}))},LH=VD([IH,jH,oV,lV],FH),BH=(e,t,n,a)=>{var r=t.dataStartIndex,i=t.dataEndIndex;if(null==a&&"zAxis"!==n){var s=MM(e,r,i);if(null==s||0!==s[0]||0!==s[1])return s}},qH=VD([hH],e=>e.allowDataOverflow),UH=e=>{var t;if(null==e||!("domain"in e))return iH;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var n=OH(e.ticks);return[Math.min(...n),Math.max(...n)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null===e||void 0===e?void 0:e.domain)&&void 0!==t?t:iH},VH=VD([hH],UH),HH=VD([VH,qH],HU),WH=VD([LH,LU,GV,HH],BH,{memoizeOptions:{resultEqualityCheck:XV}}),KH=e=>e.errorBars,GH=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a=t.filter(Boolean);if(0!==a.length){var r=a.flat();return[Math.min(...r),Math.max(...r)]}},ZH=(e,t,n,a,r)=>{var i,s;if(n.length>0&&e.forEach(e=>{n.forEach(n=>{var o,l,c=null===(o=a[n.id])||void 0===o?void 0:o.filter(e=>AH(r,e)),d=EM(e,null!==(l=t.dataKey)&&void 0!==l?l:n.dataKey),u=function(e,t,n){return!n||"number"!==typeof t||nA(t)?[]:n.length?OH(n.flatMap(n=>{var a,r,i=EM(e,n.dataKey);if(Array.isArray(i)){var s=Le(i,2);a=s[0],r=s[1]}else a=r=i;if(kA(a)&&kA(r))return[t-a,t+r]})):[]}(e,d,c);if(u.length>=2){var m=Math.min(...u),p=Math.max(...u);(null==i||m<i)&&(i=m),(null==s||p>s)&&(s=p)}var h=RH(d);null!=h&&(i=null==i?h[0]:Math.min(i,h[0]),s=null==s?h[1]:Math.max(s,h[1]))})}),null!=(null===t||void 0===t?void 0:t.dataKey)&&e.forEach(e=>{var n=RH(EM(e,t.dataKey));null!=n&&(i=null==i?n[0]:Math.min(i,n[0]),s=null==s?n[1]:Math.max(s,n[1]))}),kA(i)&&kA(s))return[i,s]},YH=VD([EH,hH,NH,KH,GV],ZH,{memoizeOptions:{resultEqualityCheck:XV}});function QH(e){var t=e.value;if(iA(t)||t instanceof Date)return t}var $H=e=>e.referenceElements.dots,XH=(e,t,n)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===n:e.yAxisId===n),JH=VD([$H,GV,ZV],XH),eW=e=>e.referenceElements.areas,tW=VD([eW,GV,ZV],XH),nW=e=>e.referenceElements.lines,aW=VD([nW,GV,ZV],XH),rW=(e,t)=>{if(null!=e){var n=OH(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},iW=VD(JH,GV,rW),sW=(e,t)=>{if(null!=e){var n=OH(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},oW=VD([tW,GV],sW);var lW=(e,t)=>{if(null!=e){var n=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return OH([e.x]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==n||0===n.length?[]:OH(n)}(e):function(e){var t;if(null!=e.y)return OH([e.y]);var n=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==n||0===n.length?[]:OH(n)}(e));if(0!==n.length)return[Math.min(...n),Math.max(...n)]}},cW=VD([aW,GV],lW),dW=VD(iW,cW,oW,(e,t,n)=>GH(e,n,t)),uW=(e,t,n,a,r,i,s,o)=>null!=n?n:function(e,t,n){if(n||null!=t){if("function"===typeof e&&null!=t)try{var a=e(t,n);if(UU(a))return VU(a,t,n)}catch(h){}if(Array.isArray(e)&&2===e.length){var r,i,s=Le(e,2),o=s[0],l=s[1];if("auto"===o)null!=t&&(r=Math.min(...t));else if(rA(o))r=o;else if("function"===typeof o)try{null!=t&&(r=o(null===t||void 0===t?void 0:t[0]))}catch(f){}else if("string"===typeof o&&IM.test(o)){var c=IM.exec(o);if(null==c||null==c[1]||null==t)r=void 0;else{var d=+c[1];r=t[0]-d}}else r=null===t||void 0===t?void 0:t[0];if("auto"===l)null!=t&&(i=Math.max(...t));else if(rA(l))i=l;else if("function"===typeof l)try{null!=t&&(i=l(null===t||void 0===t?void 0:t[1]))}catch(g){}else if("string"===typeof l&&FM.test(l)){var u=FM.exec(l);if(null==u||null==u[1]||null==t)i=void 0;else{var m=+u[1];i=t[1]+m}}else i=null===t||void 0===t?void 0:t[1];var p=[r,i];if(UU(p))return null==t?p:VU(p,t,n)}}}(t,"vertical"===s&&"xAxis"===o||"horizontal"===s&&"yAxis"===o?GH(a,i,r):GH(i,r),e.allowDataOverflow),mW=VD([hH,VH,HH,WH,YH,dW,mI,GV],uW,{memoizeOptions:{resultEqualityCheck:XV}}),pW=[0,1],hW=(e,t,n,a,r,i,s)=>{if(null!=e&&null!=n&&0!==n.length||void 0!==s){var o,l=e.dataKey,c=e.type,d=CM(t,i);return d&&null==l?gI(0,null!==(o=null===n||void 0===n?void 0:n.length)&&void 0!==o?o:0):"category"===c?((e,t,n
2)=>{var a=e.map(QH).filter(e=>null!=e);return n&&(null==t.dataKey||t.allowDuplicatedCategory&&cA(a))?gI(0,e.length):t.allowDuplicatedCategory?a:Array.from(new Set(a))})(a,e,d):"expand"===r?pW:s}},fW=VD([hH,mI,EH,PH,oV,GV,mW],hW),gW=(e,n,a,r,i)=>{if(null!=e){var s=e.scale,o=e.type;if("auto"===s)return"radial"===n&&"radiusAxis"===i?"band":"radial"===n&&"angleAxis"===i?"linear":"category"===o&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!a)?"point":"category"===o?"band":"linear";if("string"===typeof s){var l="scale".concat(pA(s));return l in t?l:"point"}}},xW=VD([hH,mI,gH,cV,GV],gW);function vW(e,n,a,r){if(null!=a&&null!=r){if("function"===typeof e.scale)return e.scale.copy().domain(a).range(r);var i=function(e){if(null!=e){if(e in t)return t[e]();var n="scale".concat(pA(e));return n in t?t[n]():void 0}}(n);if(null!=i){var s=i.domain(a).range(r);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,a=e.range(),r=Math.min(a[0],a[1])-TM,i=Math.max(a[0],a[1])+TM,s=e(t[0]),o=e(t[n-1]);(s<r||s>i||o<r||o>i)&&e.domain([t[0],t[n-1]])}})(s),s}}}var bW=(e,t,n)=>{var a=UH(t);if("auto"===n||"linear"===n)return null!=t&&t.tickCount&&Array.isArray(a)&&("auto"===a[0]||"auto"===a[1])&&UU(e)?function(e){var t=Le(e,2),n=t[0],a=t[1],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Math.max(r,2),o=Le(aV([n,a]),2),l=o[0],c=o[1];if(l===-1/0||c===1/0){var d=c===1/0?[l,...JU(0,r-1).map(()=>1/0)]:[...JU(0,r-1).map(()=>-1/0),c];return n>a?d.reverse():d}if(l===c)return iV(l,r,i);var u=sV(l,c,s,i,0),m=u.step,p=nV(u.tickMin,u.tickMax.add(new(GU())(.1).mul(m)),m);return n>a?p.reverse():p}(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&UU(e)?function(e,t){var n=Le(e,2),a=n[0],r=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=Le(aV([a,r]),2),o=s[0],l=s[1];if(o===-1/0||l===1/0)return[a,r];if(o===l)return[o];var c=Math.max(t,2),d=rV(new(GU())(l).sub(o).div(c-1),i,0),u=[...nV(new(GU())(o),new(GU())(l),d),l];return!1===i&&(u=u.map(e=>Math.round(e))),a>r?u.reverse():u}(e,t.tickCount,t.allowDecimals):void 0},yW=VD([fW,fH,xW],bW),wW=(e,t,n,a)=>{if("angleAxis"!==a&&"number"===(null===e||void 0===e?void 0:e.type)&&UU(t)&&Array.isArray(n)&&n.length>0){var r=t[0],i=n[0],s=t[1],o=n[n.length-1];return[Math.min(r,i),Math.max(s,o)]}return t},jW=VD([hH,fW,yW,GV],wW),kW=VD(PH,hH,(e,t)=>{if(t&&"number"===t.type){var n=1/0,a=Array.from(OH(e.map(e=>e.value))).sort((e,t)=>e-t),r=a[0],i=a[a.length-1];if(null==r||null==i)return 1/0;var s=i-r;if(0===s)return 1/0;for(var o=0;o<a.length-1;o++){var l=a[o],c=a[o+1];if(null!=l&&null!=c){var d=c-l;n=Math.min(n,d)}}return n/s}}),NW=VD(kW,mI,e=>e.rootProps.barCategoryGap,JM,(e,t,n,a,r)=>r,(e,t,n,a,r)=>{if(!kA(e))return 0;var i="vertical"===t?a.height:a.width;if("gap"===r)return e*i/2;if("no-gap"===r){var s=lA(n,e*i),o=e*i/2;return o-s-(o-s)/i*s}return 0}),SW=VD(lH,(e,t,n)=>{var a=lH(e,t);return null==a||"string"!==typeof a.padding?0:NW(e,"xAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{left:0,right:0};var r=e.padding;return"string"===typeof r?{left:t,right:t}:{left:(null!==(n=r.left)&&void 0!==n?n:0)+t,right:(null!==(a=r.right)&&void 0!==a?a:0)+t}}),_W=VD(uH,(e,t,n)=>{var a=uH(e,t);return null==a||"string"!==typeof a.padding?0:NW(e,"yAxis",t,n,a.padding)},(e,t)=>{var n,a;if(null==e)return{top:0,bottom:0};var r=e.padding;return"string"===typeof r?{top:t,bottom:t}:{top:(null!==(n=r.top)&&void 0!==n?n:0)+t,bottom:(null!==(a=r.bottom)&&void 0!==a?a:0)+t}}),zW=VD([JM,SW,iI,rI,(e,t,n)=>n],(e,t,n,a,r)=>{var i=a.padding;return r?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),EW=VD([JM,mI,_W,iI,rI,(e,t,n)=>n],(e,t,n,a,r,i)=>{var s=r.padding;return i?[a.height-s.bottom,s.top]:"horizontal"===t?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),CW=(e,t,n,a)=>{var r;switch(t){case"xAxis":return zW(e,n,a);case"yAxis":return EW(e,n,a);case"zAxis":return null===(r=pH(e,n))||void 0===r?void 0:r.range;case"angleAxis":return HV(e);
2case"radiusAxis":return WV(e,n);default:return}},PW=VD([hH,CW],RV),AW=VD([hH,xW,jW,PW],vW);VD([wH,KH,GV],(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>AH(n,e)));function TW(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var RW=(e,t)=>t,OW=(e,t,n)=>n,DW=VD(KM,RW,OW,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(TW)),MW=VD(GM,RW,OW,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(TW)),IW=(e,t)=>({width:e.width,height:t.height}),FW=VD(JM,lH,IW),LW=VD(VM,JM,DW,RW,OW,(e,t,n,a,r)=>{var i,s={};return n.forEach(n=>{var o=IW(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}})(t,a,e));var l="top"===a&&!r||"bottom"===a&&r;s[n.id]=i-Number(l)*o.height,i+=(l?-1:1)*o.height}),s}),BW=VD(UM,JM,MW,RW,OW,(e,t,n,a,r)=>{var i,s={};return n.forEach(n=>{var o=((e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height}))(t,n);null==i&&(i=((e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}})(t,a,e));var l="left"===a&&!r||"right"===a&&r;s[n.id]=i-Number(l)*o.width,i+=(l?-1:1)*o.width}),s}),qW=VD([JM,lH,(e,t)=>{var n=lH(e,t);if(null!=n)return LW(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:e.left,y:0}:{x:e.left,y:r}}}),UW=VD([JM,uH,(e,t)=>{var n=uH(e,t);if(null!=n)return BW(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,a)=>{if(null!=t){var r=null===n||void 0===n?void 0:n[a];return null==r?{x:0,y:e.top}:{x:r,y:e.top}}}),VW=VD(JM,uH,(e,t)=>({width:"number"===typeof t.width?t.width:60,height:e.height})),HW=(e,t,n,a)=>{if(null!=n){var r=n.allowDuplicatedCategory,i=n.type,s=n.dataKey,o=CM(e,a),l=t.map(e=>e.value);return s&&o&&"category"===i&&r&&cA(l)?l:void 0}},WW=VD([mI,PH,hH,GV],HW),KW=(e,t,n,a)=>{if(null!=n&&null!=n.dataKey){var r=n.type,i=n.scale;return!CM(e,a)||"number"!==r&&"auto"===i?void 0:t.map(e=>e.value)}},GW=VD([mI,PH,fH,GV],KW),ZW=VD([mI,(e,t,n)=>{switch(t){case"xAxis":return lH(e,n);case"yAxis":return uH(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},xW,AW,WW,GW,CW,yW,GV],(e,t,n,a,r,i,s,o,l)=>{if(null!=t){var c=CM(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:r,isCategorical:c,niceTicks:o,range:s,realScaleType:n,scale:a}}}),YW=VD([mI,fH,xW,AW,yW,CW,WW,GW,GV],(e,t,n,a,r,i,s,o,l)=>{if(null!=t&&null!=a){var c=CM(e,l),d=t.type,u=t.ticks,m=t.tickCount,p="scaleBand"===n&&"function"===typeof a.bandwidth?a.bandwidth()/2:2,h="category"===d&&a.bandwidth?a.bandwidth()/p:0;h="angleAxis"===l&&null!=i&&i.length>=2?2*tA(i[0]-i[1])*h:h;var f=u||r;if(f){var g=f.map((e,t)=>{var n=s?s.indexOf(e):e;return{index:t,coordinate:a(n)+h,value:e,offset:h}});return g.filter(e=>kA(e.coordinate))}return c&&o?o.map((e,t)=>({coordinate:a(e)+h,value:e,index:t,offset:h})).filter(e=>kA(e.coordinate)):a.ticks?a.ticks(m).map(e=>({coordinate:a(e)+h,value:e,offset:h})):a.domain().map((e,t)=>({coordinate:a(e)+h,value:s?s[e]:e,index:t,offset:h}))}}),QW=VD([mI,fH,AW,CW,WW,GW,GV],(e,t,n,a,r,i,s)=>{if(null!=t&&null!=n&&null!=a&&a[0]!==a[1]){var o=CM(e,s),l=t.tickCount,c=0;return c="angleAxis"===s&&(null===a||void 0===a?void 0:a.length)>=2?2*tA(a[0]-a[1])*c:c,o&&i?i.map((e,t)=>({coordinate:n(e)+c,value:e,index:t,offset:c})):n.ticks?n.ticks(l).map(e=>({coordinate:n(e)+c,value:e,offset:c})):n.domain().map((e,t)=>({coordinate:n(e)+c,value:r?r[e]:e,index:t,offset:c}))}}),$W=VD(hH,AW,(e,t)=>{if(null!=e&&null!=t)return aH(aH({},e),{},{scale:t})}),XW=VD([hH,xW,fW,PW],vW),JW=(VD((e,t,n)=>pH(e,n),XW,(e,t)=>{if(null!=e&&null!=t)return aH(aH({},e),{},{scale:t})}),VD([mI,KM,GM],(e,t,n)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}})),eK=e=>e.options.defaultTooltipEventType,tK=e=>e.options.validateTooltipEventTypes;function nK(e,t,n){if(null==e)return t;var a=e?"axis":"item";return null==n?t:n.includes(a)?a:t}function aK(e,t){return nK(t,eK(e),tK(e))}var rK=(e,t)=>{var n,a=Number(t);if(!nA(a)&&null!=t)return a>=0?null===e||void 0===e||null===(n=e[a])||void 0===n?void 0:n.value:void 0};function iK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function sK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?iK(Object(n),!0).forEach(function(t){oK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oK(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lK=(e,t,n,a)=>{if(null==t)return lD;var r=function(e,t,n){return"axis"===t?"click"===n?e.axisInteraction.click:e.axisInteraction.hover:"click"===n?e.itemInteraction.click:e.itemInteraction.hover}(e,t,n);if(null==r)return lD;if(r.active)return r;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var i=!0===e.settings.active;if(null!=r.index){if(i)return sK(sK({},r),{},{active:!0})}else if(null!=a)return{active:!0,coordinate:void 0,dataKey:void 0,index:a,graphicalItemId:void 0};return sK(sK({},lD),{},{coordinate:r.coordinate})};function cK(e,t){var n=function(e){if("number"===typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}(e),a=t[0],r=t[1];if(void 0===n)return!1;var i=Math.min(a,r),s=Math.max(a,r);return n>=i&&n<=s}var dK=(e,t,n,a)=>{var r=null===e||void 0===e?void 0:e.index;if(null==r)return null;var i=Number(r);if(!kA(i))return r;var s=1/0;t.length>0&&(s=t.length-1);var o=Math.max(0,Math.min(i,s)),l=t[o];return null==l||function(e,t,n){if(null==n||null==t)return!0;var a=EM(e,t);return null==a||!UU(n)||cK(a,n)}(l,n,a)?String(o):null},uK=(e,t,n,a,r,i,s,o)=>{if(null!=i&&null!=o){var l=s[0],c=null==l?void 0:o(l.positions,i);if(null!=c)return c;var d=null===r||void 0===r?void 0:r[Number(i)];if(d)return"horizontal"===n?{x:d.coordinate,y:(a.top+t)/2}:{x:(a.left+e)/2,y:d.coordinate}}},mK=(e,t,n,a)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var r;if(null==(r="hover"===n?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId)&&null!=a){var i=e.tooltipItemPayloads[0];return null!=i?[i]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===r})},pK=e=>e.options.tooltipPayloadSearcher,hK=e=>e.tooltip;function fK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function gK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fK(Object(n),!0).forEach(function(t){xK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xK(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vK=(e,t,n,a,r,i,s)=>{if(null!=t&&null!=i){var o=n.chartData,l=n.computedData,c=n.dataStartIndex,d=n.dataEndIndex;return e.reduce((e,n)=>{var u,m,p,h=n.dataDefinedOnItem,f=n.settings,g=function(e,t){return null!=e?e:t}(h,o),x=Array.isArray(g)?NM(g,c,d):g,v=null!==(u=null===f||void 0===f?void 0:f.dataKey)&&void 0!==u?u:a,b=null===f||void 0===f?void 0:f.nameKey;(m=a&&Array.isArray(x)&&!Array.isArray(x[0])&&"axis"===s?uA(x,a,r):i(x,t,l,b),Array.isArray(m))?m.forEach(t=>{var n=gK(gK({},f),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(BM({tooltipEntrySettings:n,dataKey:t.dataKey,payload:t.payload,value:EM(t.payload,t.dataKey),name:t.name}))}):e.push(BM({tooltipEntrySettings:f,dataKey:v,payload:m,value:EM(m,v),name:null!==(p=EM(m,b))&&void 0!==p?p:null===f||void 0===f?void 0:f.name}));return e},[])}},bK=VD([DH,mI,gH,cV,eH],gW),yK=VD([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),wK=VD([eH,tH],xH),jK=VD([yK,DH,wK],yH,{memoizeOptions:{resultEqualityCheck:JV}}),kK=VD([jK],e=>e.filter($V)),NK=VD([jK],SH,{memoizeOptions:{resultEqualityCheck:JV}}),SK=VD([NK,LU],zH),_K=VD([kK,LU,DH],QV),zK=VD([SK,DH,jK],CH),EK=VD([DH],UH),CK=VD([DH],e=>e.allowDataOverflow),PK=VD([EK,CK],HU),AK=VD([jK],e=>e.filter($V)),TK=VD([_K,AK,oV,lV],FH),RK=VD([TK,LU,eH,PK],BH),OK=VD([jK],kH),DK=VD([SK,DH,OK,KH,eH],ZH,{memoizeOptions:{resultEqualityCheck:XV}}),MK=VD([$H,eH,tH],XH),IK=VD([MK,eH],rW),FK=VD([eW,eH,tH],XH),LK=VD([FK,eH],sW),BK=VD([nW,eH,tH],XH),qK=VD([BK,eH],lW),UK=VD([IK,qK,LK],GH),VK=VD([DH,EK,PK,RK,DK,UK,mI,eH],uW),HK=VD([DH,mI,SK,zK,oV,eH,VK],hW),WK=VD([HK,DH,bK],bW),KK=VD([DH,HK,WK,eH],wW),GK=e=>{var t=eH(e),n=tH(e);return CW(e,t,n,!1)},ZK=VD([DH,GK],RV),YK=VD([DH,bK,KK,ZK],vW),QK=VD([mI,zK,DH,eH],HW),$K=VD([mI,zK,DH,eH],KW),XK=VD([mI,DH,bK,YK,GK,QK,$K,eH],(e,t,n,a,r,i,s,o)=>
2{if(t){var l=t.type,c=CM(e,o);if(a){var d="scaleBand"===n&&a.bandwidth?a.bandwidth()/2:2,u="category"===l&&a.bandwidth?a.bandwidth()/d:0;return u="angleAxis"===o&&null!=r&&(null===r||void 0===r?void 0:r.length)>=2?2*tA(r[0]-r[1])*u:u,c&&s?s.map((e,t)=>({coordinate:a(e)+u,value:e,index:t,offset:u})):a.domain().map((e,t)=>({coordinate:a(e)+u,value:i?i[e]:e,index:t,offset:u}))}}}),JK=VD([eK,tK,e=>e.tooltip.settings],(e,t,n)=>nK(n.shared,e,t)),eG=e=>e.tooltip.settings.trigger,tG=e=>e.tooltip.settings.defaultIndex,nG=VD([hK,JK,eG,tG],lK),aG=VD([nG,SK,MH,HK],dK),rG=VD([XK,aG],rK),iG=VD([nG],e=>{if(e)return e.dataKey}),sG=VD([nG],e=>{if(e)return e.graphicalItemId}),oG=VD([hK,JK,eG,tG],mK),lG=VD([UM,VM,mI,JM,XK,tG,oG,pK],uK),cG=VD([nG,lG],(e,t)=>null!==e&&void 0!==e&&e.coordinate?e.coordinate:t),dG=VD([nG],e=>{var t;return null!==(t=null===e||void 0===e?void 0:e.active)&&void 0!==t&&t}),uG=VD([oG,aG,LU,MH,rG,pK,JK],vK),mG=VD([uG],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function pG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function hG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pG(Object(n),!0).forEach(function(t){fG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fG(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gG=(e,t,n,a,r)=>{var i,s=null!==(i=null===t||void 0===t?void 0:t.length)&&void 0!==i?i:0;if(s<=1||null==e)return 0;if("angleAxis"===a&&null!=r&&Math.abs(Math.abs(r[1]-r[0])-360)<=1e-6)for(var o=0;o<s;o++){var l,c,d,u,m,p=o>0?null===(l=n[o-1])||void 0===l?void 0:l.coordinate:null===(c=n[s-1])||void 0===c?void 0:c.coordinate,h=null===(d=n[o])||void 0===d?void 0:d.coordinate,f=o>=s-1?null===(u=n[0])||void 0===u?void 0:u.coordinate:null===(m=n[o+1])||void 0===m?void 0:m.coordinate,g=void 0;if(null!=p&&null!=h&&null!=f)if(tA(h-p)!==tA(f-h)){var x=[];if(tA(f-h)===tA(r[1]-r[0])){g=f;var v=h+r[1]-r[0];x[0]=Math.min(v,(v+p)/2),x[1]=Math.max(v,(v+p)/2)}else{g=p;var b=f+r[1]-r[0];x[0]=Math.min(h,(b+h)/2),x[1]=Math.max(h,(b+h)/2)}var y,w=[Math.min(h,(g+h)/2),Math.max(h,(g+h)/2)];if(e>w[0]&&e<=w[1]||e>=x[0]&&e<=x[1])return null===(y=n[o])||void 0===y?void 0:y.index}else{var j,k=Math.min(p,f),N=Math.max(p,f);if(e>(k+h)/2&&e<=(N+h)/2)return null===(j=n[o])||void 0===j?void 0:j.index}}else if(t)for(var S=0;S<s;S++){var _=t[S];if(null!=_){var z=t[S+1],E=t[S-1];if(0===S&&null!=z&&e<=(_.coordinate+z.coordinate)/2)return _.index;if(S===s-1&&null!=E&&e>(_.coordinate+E.coordinate)/2)return _.index;if(S>0&&S<s-1&&null!=E&&null!=z&&e>(_.coordinate+E.coordinate)/2&&e<=(_.coordinate+z.coordinate)/2)return _.index}}return-1},xG=(e,t)=>t,vG=(e,t,n)=>n,bG=(e,t,n,a)=>a,yG=VD(XK,e=>uM(e,e=>e.coordinate)),wG=VD([hK,xG,vG,bG],lK),jG=VD([wG,SK,MH,HK],dK),kG=VD([hK,xG,vG,bG],mK),NG=VD([UM,VM,mI,JM,XK,bG,kG,pK],uK),SG=VD([wG,NG],(e,t)=>{var n;return null!==(n=e.coordinate)&&void 0!==n?n:t}),_G=VD([XK,jG],rK),zG=VD([kG,jG,LU,MH,_G,pK,xG],vK),EG=VD([wG,jG],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),CG=(e,t,n,a,r,i,s)=>{if(e&&a&&r&&i&&n){var o=jV(e,n);if(o){var l=((e,t)=>"centric"===t?e.angle:e.radius)(o,t),c=gG(l,s,i,a,r),d=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("centric"===e){var i=r.coordinate,s=a.radius;return hG(hG(hG({},a),vV(a.cx,a.cy,s,i)),{},{angle:i,radius:s})}var o=r.coordinate,l=a.angle;return hG(hG(hG({},a),vV(a.cx,a.cy,o,l)),{},{angle:l,radius:o})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,i,c,o);return{activeIndex:String(c),activeCoordinate:d}}}},PG=VD([(e,t)=>t,mI,KV,eH,ZK,XK,yG,JM],(e,t,n,a,r,i,s,o)=>
2{if(e&&t&&a&&r&&i)return"horizontal"===t||"vertical"===t?((e,t,n,a,r,i,s)=>{if(e&&n&&a&&r&&function(e,t){var n=e.chartX,a=e.chartY;return n>=t.left&&n<=t.left+t.width&&a>=t.top&&a<=t.top+t.height}(e,s)){var o=((e,t)=>"horizontal"===t?e.chartX:"vertical"===t?e.chartY:void 0)(e,t),l=gG(o,i,r,n,a),c=((e,t,n,a)=>{var r=t.find(e=>e&&e.index===n);if(r){if("horizontal"===e)return{x:r.coordinate,y:a.chartY};if("vertical"===e)return{x:a.chartX,y:r.coordinate}}return{x:0,y:0}})(t,r,l,e);return{activeIndex:String(l),activeCoordinate:c}}})(e,t,a,r,i,s,o):CG(e,t,n,a,r,i,s)}),AG=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,a=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/a)}},TG=oR("mouseClick"),RG=eO();RG.startListening({actionCreator:TG,effect:(e,t)=>{var n=e.payload,a=PG(t.getState(),AG(n));null!=(null===a||void 0===a?void 0:a.activeIndex)&&t.dispatch(yD({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}});var OG=oR("mouseMove"),DG=eO(),MG=null;function IG(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"===typeof t&&null!==t?"<<CHILDREN>>":t}function FG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function LG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FG(Object(n),!0).forEach(function(t){BG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BG(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}DG.startListening({actionCreator:OG,effect:(e,t)=>{var n=e.payload;null!==MG&&cancelAnimationFrame(MG);var a=AG(n);MG=requestAnimationFrame(()=>{var e=t.getState();if("axis"===aK(e,e.tooltip.settings.shared)){var n=PG(e,a);null!=(null===n||void 0===n?void 0:n.activeIndex)?t.dispatch(bD({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate})):t.dispatch(xD())}MG=null})}});var qG=jR({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:mR()},replaceXAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.xAxis[a.id]&&(a.id!==r.id&&delete e.xAxis[a.id],e.xAxis[r.id]=r)},prepare:mR()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:mR()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:mR()},replaceYAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.yAxis[a.id]&&(a.id!==r.id&&delete e.yAxis[a.id],e.yAxis[r.id]=r)},prepare:mR()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:mR()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:mR()},replaceZAxis:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next;void 0!==e.zAxis[a.id]&&(a.id!==r.id&&delete e.zAxis[a.id],e.zAxis[r.id]=r)},prepare:mR()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:mR()},updateYAxisWidth(e,t){var n=t.payload,a=n.id,r=n.width,i=e.yAxis[a];if(i){var s=i.widthHistory||[];if(3===s.length&&s[0]===s[2]&&r===s[1]&&r!==i.width&&Math.abs(r-s[0])<=1)return;var o=[...s,r].slice(-3);e.yAxis[a]=LG(LG({},e.yAxis[a]),{},{width:r,widthHistory:o})}}}}),UG=qG.actions,VG=UG.addXAxis,HG=UG.replaceXAxis,WG=UG.removeXAxis,KG=UG.addYAxis,GG=UG.replaceYAxis,ZG=UG.removeYAxis,YG=(UG.addZAxis,UG.replaceZAxis,UG.removeZAxis,UG.updateYAxisWidth),QG=qG.reducer,$G=jR({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:mR()},replaceCartesianGraphicalItem:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=VT(e).cartesianItems.indexOf(a);i>-1&&(e.cartesianItems[i]=r)},prepare:mR()},removeCartesianGraphicalItem:{reducer(e,t){var n=VT(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:mR()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:mR()},removePolarGraphicalItem:{reducer(e,t){var n=VT(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:mR()}}}),XG=$G.actions,JG=XG.addCartesianGraphicalItem,eZ=XG.replaceCartesianGraphicalItem,tZ=XG.removeCartesianGraphicalItem,
2nZ=XG.addPolarGraphicalItem,aZ=XG.removePolarGraphicalItem,rZ=$G.reducer,iZ=jR({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=VT(e).dots.findIndex(e=>e===t.payload);-1!==n&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=VT(e).areas.findIndex(e=>e===t.payload);-1!==n&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=VT(e).lines.findIndex(e=>e===t.payload);-1!==n&&e.lines.splice(n,1)}}}),sZ=iZ.actions,oZ=(sZ.addDot,sZ.removeDot,sZ.addArea,sZ.removeArea,sZ.addLine),lZ=sZ.removeLine,cZ=iZ.reducer,dZ={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},uZ=jR({name:"brush",initialState:dZ,reducers:{setBrushSettings:(e,t)=>null==t.payload?dZ:t.payload}}),mZ=(uZ.actions.setBrushSettings,uZ.reducer),pZ=jR({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:mR()},replaceLegendPayload:{reducer(e,t){var n=t.payload,a=n.prev,r=n.next,i=VT(e).payload.indexOf(a);i>-1&&(e.payload[i]=r)},prepare:mR()},removeLegendPayload:{reducer(e,t){var n=VT(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:mR()}}}),hZ=pZ.actions,fZ=hZ.setLegendSize,gZ=hZ.setLegendSettings,xZ=hZ.addLegendPayload,vZ=hZ.replaceLegendPayload,bZ=hZ.removeLegendPayload,yZ=pZ.reducer,wZ={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},jZ=jR({name:"rootProps",initialState:wZ,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(n=t.payload.barGap)&&void 0!==n?n:wZ.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),kZ=jZ.reducer,NZ=jZ.actions.updateOptions,SZ=jR({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),_Z=SZ.actions,zZ=(_Z.addRadiusAxis,_Z.removeRadiusAxis,_Z.addAngleAxis,_Z.removeAngleAxis,SZ.reducer),EZ=jR({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),CZ=EZ.actions.updatePolarOptions,PZ=EZ.reducer,AZ=oR("keyDown"),TZ=oR("focus"),RZ=eO();RZ.startListening({actionCreator:AZ,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var a=n.tooltip.keyboardInteraction,r=e.payload;if("ArrowRight"===r||"ArrowLeft"===r||"Enter"===r){var i=dK(a,SK(n),MH(n),HK(n)),s=null==i?-1:Number(i);if(Number.isFinite(s)&&!(s<0)){var o=XK(n);if("Enter"!==r){var l=s+("ArrowRight"===r?1:-1)*("left-to-right"===JW(n)?1:-1);if(!(null==o||l>=o.length||l<0)){var c=NG(n,"axis","hover",String(l));t.dispatch(jD({active:!0,activeIndex:l.toString(),activeCoordinate:c}))}}else{var d=NG(n,"axis","hover",String(a.index));t.dispatch(jD({active:!a.active,activeIndex:a.index,activeCoordinate:d}))}}}}}}),RZ.startListening({actionCreator:TZ,effect:(e,t)=>{var n=t.getState();if(!1!==n.rootProps.accessibilityLayer){var a=n.tooltip.keyboardInteraction;if(!a.active&&null==a.index){var r=NG(n,"axis","hover",String("0"));t.dispatch(jD({active:!0,activeIndex:"0",activeCoordinate:r}))}}}});var OZ=oR("externalEvent"),DZ=eO(),MZ=new Map;DZ.startListening({actionCreator:OZ,effect:(e,t)=>
2{var n=e.payload,a=n.handler,r=n.reactEvent;if(null!=a){r.persist();var i=r.type,s=MZ.get(i);void 0!==s&&cancelAnimationFrame(s);var o=requestAnimationFrame(()=>{try{var e=t.getState(),n={activeCoordinate:cG(e),activeDataKey:iG(e),activeIndex:aG(e),activeLabel:rG(e),activeTooltipIndex:aG(e),isTooltipActive:dG(e)};a(n,r)}finally{MZ.delete(i)}});MZ.set(i,o)}}});var IZ=VD([hK],e=>e.tooltipItemPayloads),FZ=VD([IZ,pK,(e,t)=>t,(e,t,n)=>n],(e,t,n,a)=>{var r=e.find(e=>e.settings.graphicalItemId===a);if(null!=r){var i=r.positions;if(null!=i)return t(i,n)}}),LZ=oR("touchMove"),BZ=eO();BZ.startListening({actionCreator:LZ,effect:(e,t)=>{var n=e.payload;if(null!=n.touches&&0!==n.touches.length){var a=t.getState(),r=aK(a,a.tooltip.settings.shared);if("axis"===r){var i=n.touches[0];if(null==i)return;var s=PG(a,AG({clientX:i.clientX,clientY:i.clientY,currentTarget:n.currentTarget}));null!=(null===s||void 0===s?void 0:s.activeIndex)&&t.dispatch(bD({activeIndex:s.activeIndex,activeDataKey:void 0,activeCoordinate:s.activeCoordinate}))}else if("item"===r){var o,l=n.touches[0];if(null==document.elementFromPoint||null==l)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var d=c.getAttribute(ZM),u=null!==(o=c.getAttribute(YM))&&void 0!==o?o:void 0,m=jK(a).find(e=>e.id===u);if(null==d||null==m||null==u)return;var p=m.dataKey,h=FZ(a,d,u);t.dispatch(fD({activeDataKey:p,activeIndex:d,activeCoordinate:h,activeGraphicalItemId:u}))}}}});var qZ=jR({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.errorBar;e[a]||(e[a]=[]),e[a].push(r)},replaceErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.prev,i=n.next;e[a]&&(e[a]=e[a].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var n=t.payload,a=n.itemId,r=n.errorBar;e[a]&&(e[a]=e[a].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),UZ=qZ.actions,VZ=(UZ.addErrorBar,UZ.replaceErrorBar,UZ.removeErrorBar,qZ.reducer),HZ=!0,WZ=!("undefined"!==typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function KZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function GZ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KZ(Object(n),!0).forEach(function(t){ZZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZZ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YZ={zIndexMap:Object.values(kV).reduce((e,t)=>GZ(GZ({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},QZ=new Set(Object.values(kV));var $Z=jR({name:"zIndex",initialState:YZ,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:mR()},unregisterZIndexPortal:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!function(e){return QZ.has(e)}(n)&&delete e.zIndexMap[n])},prepare:mR()},registerZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload,a=n.zIndex,r=n.element,i=n.isPanorama;e.zIndexMap[a]?i?e.zIndexMap[a].panoramaElement=r:e.zIndexMap[a].element=r:e.zIndexMap[a]={consumers:0,element:i?void 0:r,panoramaElement:i?r:void 0}},prepare:mR()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var n=t.payload.zIndex;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:mR()}}}),XZ=$Z.actions,JZ=XZ.registerZIndexPortal,eY=XZ.unregisterZIndexPortal,tY=XZ.registerZIndexPortalElement,nY=XZ.unregisterZIndexPortalElement,aY=JT({brush:mZ,cartesianAxis:QG,chartData:ED,errorBars:VZ,graphicalItems:rZ,layout:DD,legend:yZ,options:rO,polarAxis:zZ,polarOptions:PZ,referenceElements:cZ,rootProps:kZ,tooltip:kD,zIndex:$Z.reducer});function rY(e){var t=e.preloadedState,n=e.children,r=e.reduxStoreName,i=aI(),s=(0,a.useRef)(null);if(i)return n;null==s.current&&(s.current=function(e){return fR({reducer:aY,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([RG.middleware,DG.middleware,RZ.middleware,DZ.middleware,BZ.middleware]),enhancers:e=>{var t=e;return"function"===typeof e&&(t=e()),t.concat(hR({type:"raf"}))}
2,devTools:HZ&&{serialize:{replacer:IG},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,r));var o=KD;return a.createElement(vO,{context:o,store:s.current},n)}var iY=e=>{var t=e.chartData,n=ZD(),r=aI();return(0,a.useEffect)(()=>r?()=>{}:(n(_D(t)),()=>{n(_D(void 0))}),[t,n,r]),null},sY=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function oY(e,t){return null==e&&null==t||("number"===typeof e&&"number"===typeof t?e===t||e!==e&&t!==t:e===t)}function lY(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var a of n)if(sY.has(a)){if(null==e[a]&&null==t[a])continue;if(!pO(e[a],t[a]))return!1}else if(!oY(e[a],t[a]))return!1;return!0}function cY(e){var t=e.layout,n=e.margin,r=ZD(),i=aI();return(0,a.useEffect)(()=>{i||(r(TD(t)),r(AD(n)))},[r,i,t,n]),null}var dY=(0,a.memo)(cY,lY);function uY(e){var t=ZD();return(0,a.useEffect)(()=>{t(NZ(e))},[t,e]),null}function mY(e){var t=ZD();return(0,a.useEffect)(()=>{t(CZ(e))},[t,e]),null}var pY=()=>{var e;return null===(e=XD(e=>e.rootProps.accessibilityLayer))||void 0===e||e},hY=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function fY(e){return"string"===typeof e&&hY.includes(e)}var gY=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
2dering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function xY(e){return"string"===typeof e&&gY.has(e)}function vY(e){return"string"===typeof e&&e.startsWith("data-")}function bY(e){if("object"!==typeof e||null===e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(xY(n)||vY(n))&&(t[n]=e[n]);return t}function yY(e){return null==e?null:(0,a.isValidElement)(e)&&"object"===typeof e.props&&null!==e.props?bY(e.props):"object"!==typeof e||Array.isArray(e)?null:bY(e)}function wY(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(xY(n)||vY(n)||fY(n))&&(t[n]=e[n]);return t}var jY=["children","width","height","viewBox","className","style","title","desc"];function kY(){return kY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},kY.apply(null,arguments)}var NY=(0,a.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,s=e.viewBox,o=e.className,l=e.style,c=e.title,d=e.desc,u=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,jY),m=s||{width:r,height:i,x:0,y:0},p=Lv("recharts-surface",o);return a.createElement("svg",kY({},wY(u),{className:p,width:r,height:i,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height),ref:t}),a.createElement("title",null,c),a.createElement("desc",null,d),n)}),SY=VD(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(null!=t){var a=e[t];if(null!=a)return n?a.panoramaElement:a.element}}),_Y=VD(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(kV));return Array.from(new Set(t)).sort((e,t)=>
2e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}}});function zY(e){var t=e.zIndex,n=e.isPanorama,r=(0,a.useRef)(null),i=ZD();return(0,a.useLayoutEffect)(()=>(r.current&&i(tY({zIndex:t,element:r.current,isPanorama:n})),()=>{i(nY({zIndex:t,isPanorama:n}))}),[i,t,n]),a.createElement("g",{tabIndex:-1,ref:r})}function EY(e){var t=e.children,n=e.isPanorama,r=XD(_Y);if(!r||0===r.length)return t;var i=r.filter(e=>e<0),s=r.filter(e=>e>0);return a.createElement(a.Fragment,null,i.map(e=>a.createElement(zY,{key:e,zIndex:e,isPanorama:n})),t,s.map(e=>a.createElement(zY,{key:e,zIndex:e,isPanorama:n})))}var CY=["children"];function PY(){return PY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},PY.apply(null,arguments)}var AY={width:"100%",height:"100%",display:"block"},TY=(0,a.forwardRef)((e,t)=>{var n=dI(),r=uI(),i=pY();if(!NA(n)||!NA(r))return null;var s,o,l=e.children,c=e.otherAttributes,d=e.title,u=e.desc;return null!=c&&(s="number"===typeof c.tabIndex?c.tabIndex:i?0:void 0,o="string"===typeof c.role?c.role:i?"application":void 0),a.createElement(NY,PY({},c,{title:d,desc:u,role:o,tabIndex:s,width:n,height:r,style:AY,ref:t}),l)}),RY=e=>{var t=e.children,n=XD(iI);if(!n)return null;var r=n.width,i=n.height,s=n.y,o=n.x;return a.createElement(NY,{width:r,height:i,x:o,y:s},t)},OY=(0,a.forwardRef)((e,t)=>{var n=e.children,r=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,CY);return aI()?a.createElement(RY,null,a.createElement(EY,{isPanorama:!0},n)):a.createElement(TY,PY({ref:t},r),a.createElement(EY,{isPanorama:!1},n))});var DY=new(n(283)),MY="recharts.syncEvent.tooltip",IY="recharts.syncEvent.brush";function FY(e){return e.tooltip.syncInteraction}var LY=["x","y"];function BY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function qY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?BY(Object(n),!0).forEach(function(t){UY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UY(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VY(){var e=XD(dV),t=XD(mV),n=ZD(),r=XD(uV),i=XD(XK),s=pI(),o=oI(),l=XD(e=>e.rootProps.className);(0,a.useEffect)(()=>{if(null==e)return fA;var a=(a,l,c)=>{var d;if(t!==c&&e===a)if("index"!==r){if(null!=i){var u;if("function"===typeof r){var m={activeTooltipIndex:null==l.payload.index?void 0:Number(l.payload.index),isTooltipActive:l.payload.active,activeIndex:null==l.payload.index?void 0:Number(l.payload.index),activeLabel:l.payload.label,activeDataKey:l.payload.dataKey,activeCoordinate:l.payload.coordinate},p=r(i,m);u=i[p]}else"value"===r&&(u=i.find(e=>String(e.value)===l.payload.label));var h=l.payload.coordinate;if(null!=u&&!1!==l.payload.active&&null!=h&&null!=o){var f=h.x,g=h.y,x=Math.min(f,o.x+o.width),v=Math.min(g,o.y+o.height),b={x:"horizontal"===s?u.coordinate:x,y:"horizontal"===s?v:u.coordinate},y=wD({active:l.payload.active,coordinate:b,dataKey:l.payload.dataKey,index:String(u.index),label:l.payload.label,sourceViewBox:l.payload.sourceViewBox,graphicalItemId:l.payload.graphicalItemId});n(y)}else n(wD({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(o&&null!==l&&void 0!==l&&null!==(d=l.payload)&&void 0!==d&&d.coordinate&&l.payload.sourceViewBox){var w=l.payload.coordinate,j=w.x,k=w.y,N=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(w,LY),S=l.payload.sourceViewBox,_=S.x,z=S.y,E=S.width,C=S.height,P=qY(qY({},N),{},{x:o.x+(E?(j-_)/E:0)*o.width,y:o.y+(C?(k-z)/C:0)*o.height});n(qY(qY({},l),{},{payload:qY(qY({},l.payload),{},{coordinate:P})}))}else n(l)};return DY.on(MY,a),()=>{DY.off(MY,a)}}
2,[l,n,t,e,r,i,s,o])}function HY(){var e=ZD();(0,a.useEffect)(()=>{e(iO())},[e]),VY(),function(){var e=XD(dV),t=XD(mV),n=ZD();(0,a.useEffect)(()=>{if(null==e)return fA;var a=(a,r,i)=>{t!==i&&e===a&&n(zD(r))};return DY.on(IY,a),()=>{DY.off(IY,a)}},[n,t,e])}()}function WY(e,t,n,r,i,s){var o=XD(n=>((e,t,n)=>{if(null!=t){var a=hK(e);return"axis"===t?"hover"===n?a.axisInteraction.hover.dataKey:a.axisInteraction.click.dataKey:"hover"===n?a.itemInteraction.hover.dataKey:a.itemInteraction.click.dataKey}})(n,e,t)),l=XD(mV),c=XD(dV),d=XD(uV),u=XD(FY),m=null===u||void 0===u?void 0:u.active,p=oI();(0,a.useEffect)(()=>{if(!m&&null!=c&&null!=l){var e=wD({active:s,coordinate:n,dataKey:o,index:i,label:"number"===typeof r?String(r):r,sourceViewBox:p,graphicalItemId:void 0});DY.emit(MY,c,e,l)}},[m,n,o,i,r,l,c,d,s,p])}var KY=(0,a.createContext)(null),GY=(0,a.createContext)(null);function ZY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function YY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZY(Object(n),!0).forEach(function(t){QY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QY(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $Y(){return $Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$Y.apply(null,arguments)}var XY=()=>(HY(),null);function JY(e){if("number"===typeof e)return e;if("string"===typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var eQ=(0,a.forwardRef)((e,t)=>{var n,r,i=(0,a.useRef)(null),s=Le((0,a.useState)({containerWidth:JY(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:JY(null===(r=e.style)||void 0===r?void 0:r.height)}),2),o=s[0],l=s[1],c=(0,a.useCallback)((e,t)=>{l(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),d=(0,a.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e&&"undefined"!==typeof ResizeObserver){var n=e.getBoundingClientRect(),a=n.width,r=n.height;c(a,r);var s=new ResizeObserver(e=>{var t=e[0].contentRect,n=t.width,a=t.height;c(n,a)});s.observe(e),i.current=s}},[t,c]);return(0,a.useEffect)(()=>()=>{var e=i.current;null!=e&&e.disconnect()},[c]),a.createElement(a.Fragment,null,a.createElement(hI,{width:o.containerWidth,height:o.containerHeight}),a.createElement("div",$Y({ref:d},e)))}),tQ=(0,a.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=Le((0,a.useState)({containerWidth:JY(n),containerHeight:JY(r)}),2),s=i[0],o=i[1],l=(0,a.useCallback)((e,t)=>{o(n=>{var a=Math.round(e),r=Math.round(t);return n.containerWidth===a&&n.containerHeight===r?n:{containerWidth:a,containerHeight:r}})},[]),c=(0,a.useCallback)(e=>{if("function"===typeof t&&t(e),null!=e){var n=e.getBoundingClientRect(),a=n.width,r=n.height;l(a,r)}},[t,l]);return a.createElement(a.Fragment,null,a.createElement(hI,{width:s.containerWidth,height:s.containerHeight}),a.createElement("div",$Y({ref:c},e)))}),nQ=(0,a.forwardRef)((e,t)=>{var n=e.width,r=e.height;return a.createElement(a.Fragment,null,a.createElement(hI,{width:n,height:r}),a.createElement("div",$Y({ref:t},e)))}),aQ=(0,a.forwardRef)((e,t)=>{var n=e.width,r=e.height;return aA(n)||aA(r)?a.createElement(tQ,$Y({},e,{ref:t})):a.createElement(nQ,$Y({},e,{ref:t}))});var rQ=(0,a.forwardRef)((e,t)=>{var n=e.children,r=e.className,i=e.height,s=e.onClick,o=e.onContextMenu,l=e.onDoubleClick,c=e.onMouseDown,d=e.onMouseEnter,u=e.onMouseLeave,m=e.onMouseMove,p=e.onMouseUp,h=e.onTouchEnd,f=e.onTouchMove,g=e.onTouchStart,x=e.style,v=e.width,b=e.responsive,y=e.dispatchTouchEvents,w=void 0===y||y,j=(0,a.useRef)(null),k=ZD(),N=Le((0,a.useState)(null),2),S=N[0],_=N[1],z=Le((0,a.useState)(null),2),E=z[0],C=z[1],P=function(){var e=ZD(),t=Le((0,a.useState)(null),2),n=t[0],r=t[1],i=XD(HM);return(0,a.useEffect)(()=>
2{if(null!=n){var t=n.getBoundingClientRect().width/n.offsetWidth;kA(t)&&t!==i&&e(OD(t))}},[n,e,i]),r}(),A=AA(),T=(null===A||void 0===A?void 0:A.width)>0?A.width:v,R=(null===A||void 0===A?void 0:A.height)>0?A.height:i,O=(0,a.useCallback)(e=>{P(e),"function"===typeof t&&t(e),_(e),C(e),null!=e&&(j.current=e)},[P,t,_,C]),D=(0,a.useCallback)(e=>{k(TG(e)),k(OZ({handler:s,reactEvent:e}))},[k,s]),M=(0,a.useCallback)(e=>{k(OG(e)),k(OZ({handler:d,reactEvent:e}))},[k,d]),I=(0,a.useCallback)(e=>{k(xD()),k(OZ({handler:u,reactEvent:e}))},[k,u]),F=(0,a.useCallback)(e=>{k(OG(e)),k(OZ({handler:m,reactEvent:e}))},[k,m]),L=(0,a.useCallback)(()=>{k(TZ())},[k]),B=(0,a.useCallback)(e=>{k(AZ(e.key))},[k]),q=(0,a.useCallback)(e=>{k(OZ({handler:o,reactEvent:e}))},[k,o]),U=(0,a.useCallback)(e=>{k(OZ({handler:l,reactEvent:e}))},[k,l]),V=(0,a.useCallback)(e=>{k(OZ({handler:c,reactEvent:e}))},[k,c]),H=(0,a.useCallback)(e=>{k(OZ({handler:p,reactEvent:e}))},[k,p]),W=(0,a.useCallback)(e=>{k(OZ({handler:g,reactEvent:e}))},[k,g]),K=(0,a.useCallback)(e=>{w&&k(LZ(e)),k(OZ({handler:f,reactEvent:e}))},[k,w,f]),G=(0,a.useCallback)(e=>{k(OZ({handler:h,reactEvent:e}))},[k,h]),Z=function(e){return!0===e?eQ:aQ}(b);return a.createElement(KY.Provider,{value:S},a.createElement(GY.Provider,{value:E},a.createElement(Z,{width:null!==T&&void 0!==T?T:null===x||void 0===x?void 0:x.width,height:null!==R&&void 0!==R?R:null===x||void 0===x?void 0:x.height,className:Lv("recharts-wrapper",r),style:YY({position:"relative",cursor:"default",width:T,height:R},x),onClick:D,onContextMenu:q,onDoubleClick:U,onFocus:L,onKeyDown:B,onMouseDown:V,onMouseEnter:M,onMouseLeave:I,onMouseMove:F,onMouseUp:H,onTouchEnd:G,onTouchMove:K,onTouchStart:W,ref:O},a.createElement(XY,null),n)))}),iQ=VD([JM],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),sQ=VD([iQ,UM,VM],(e,t,n)=>{if(e&&null!=t&&null!=n)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),oQ=()=>XD(sQ),lQ=(0,a.createContext)(void 0),cQ=e=>{var t=e.children,n=Le((0,a.useState)("".concat(oA("recharts"),"-clip")),1)[0],r=oQ();if(null==r)return null;var i=r.x,s=r.y,o=r.width,l=r.height;return a.createElement(lQ.Provider,{value:n},a.createElement("defs",null,a.createElement("clipPath",{id:n},a.createElement("rect",{x:i,y:s,height:l,width:o}))),t)},dQ=["width","height","responsive","children","className","style","compact","title","desc"];var uQ=(0,a.forwardRef)((e,t)=>{var n=e.width,r=e.height,i=e.responsive,s=e.children,o=e.className,l=e.style,c=e.compact,d=e.title,u=e.desc,m=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,dQ),p=bY(m);return c?a.createElement(a.Fragment,null,a.createElement(hI,{width:n,height:r}),a.createElement(OY,{otherAttributes:p,title:d,desc:u},s)):a.createElement(rQ,{className:o,style:l,width:n,height:r,responsive:null!==i&&void 0!==i&&i,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},a.createElement(OY,{otherAttributes:p,title:d,desc:u,ref:t},a.createElement(cQ,null,s)))});function mQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function pQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hQ(e,t){var n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 11,178 bytes, line 2
2t%2?mQ(Object(n),!0).forEach(function(t){pQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e),a=t,r=Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==a[t]&&(e[t]=a[t]),e),n);return r}var fQ=["layout"];function gQ(){return gQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},gQ.apply(null,arguments)}var xQ={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},vQ=(0,a.forwardRef)(function(e,t){var n,r=hQ(e.categoricalChartProps,xQ),i=r.layout,s=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(r,fQ),o=e.chartName,l={chartName:o,defaultTooltipEventType:e.defaultTooltipEventType,validateTooltipEventTypes:e.validateTooltipEventTypes,tooltipPayloadSearcher:e.tooltipPayloadSearcher,eventEmitter:void 0};return a.createElement(rY,{preloadedState:{options:l},reduxStoreName:null!==(n=r.id)&&void 0!==n?n:o},a.createElement(iY,{chartData:r.data}),a.createElement(dY,{layout:i,margin:r.margin}),a.createElement(uY,{baseValue:void 0,accessibilityLayer:r.accessibilityLayer,barCategoryGap:r.barCategoryGap,maxBarSize:r.maxBarSize,stackOffset:r.stackOffset,barGap:r.barGap,barSize:r.barSize,syncId:r.syncId,syncMethod:r.syncMethod,className:r.className,reverseStackOrder:r.reverseStackOrder}),a.createElement(mY,{cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius}),a.createElement(uQ,gQ({},s,{ref:t})))});function bQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function yQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bQ(Object(n),!0).forEach(function(t){wQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jQ=["item"],kQ=yQ(yQ({},xQ),{},{layout:"centric",startAngle:0,endAngle:360}),NQ=(0,a.forwardRef)((e,t)=>{var n=hQ(e,kQ);return a.createElement(vQ,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:jQ,tooltipPayloadSearcher:nO,categoricalChartProps:n,ref:t})}),SQ=e=>e.graphicalItems.polarItems,_Q=VD([GV,ZV],xH),zQ=VD([SQ,hH,_Q],yH),EQ=VD([zQ],SH),CQ=VD([EQ,BU],zH),PQ=VD([CQ,hH,zQ],CH),AQ=(VD([CQ,hH,zQ],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>{var a;return{value:EM(e,null!==(a=t.dataKey)&&void 0!==a?a:n.dataKey),errorDomain:[]}})).filter(Boolean):null!=(null===t||void 0===t?void 0:t.dataKey)?e.map(e=>({value:EM(e,t.dataKey),errorDomain:[]})):e.map(e=>({value:e,errorDomain:[]}))),()=>{}),TQ=VD([CQ,hH,zQ,KH,GV],ZH),RQ=VD([hH,VH,HH,AQ,TQ,AQ,mI,GV],uW),OQ=VD([hH,mI,CQ,PQ,oV,GV,RQ],hW),DQ=VD([OQ,hH,xW],bW);VD([hH,OQ,DQ,GV],wW);function MQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function IQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MQ(Object(n),!0).forEach(function(t){FQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function FQ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var LQ=VD([SQ,(e,t)=>t],(e,t)=>e.filter(e=>"pie"===e.type).find(e=>e.id===t)),BQ=[],qQ=(e,t,n)=>0===(null===n||void 0===n?void 0:n.length)?BQ:n,UQ=VD([BU,LQ,qQ],(e,t,n)=>{var a,r=e.chartData;if(null!=t&&((a=null!=(null===t||void 0===t?void 0:t.data)&&t.data.length>0?t.data:r)&&a.length||null==n||(a=n.map(e=>IQ(IQ({},t.presentationProps),e.props))),null!=a))return a}),VQ=VD([UQ,LQ,qQ],(e,t,n)=>{if(null!=e&&null!=t)return e.map((e,a)=>{var r,i,s=EM(e,t.nameKey,t.name);return i=null!==n&&void 0!==n&&null!==(r=n[a])&&void 0!==r&&null!==(r=r.props)&&void 0!==r&&r.fill?n[a].props.fill:"object"===typeof e&&null!=e&&"fill"in e?e.fill:t.fill,{value:qM(s,t.dataKey),color:i,payload:e,type:t.legendType}})}),HQ=VD([UQ,LQ,qQ,JM],(e,t,n,a)=>{if(null!=t&&null!=e)return function(e){var t,n,a,r=e.pieSettings,i=e.displayedData,s=e.cells,o=e.offset,l=r.cornerRadius,c=r.startAngle,d=r.endAngle,u=r.dataKey,m=r.nameKey,p=r.tooltipType,h=Math.abs(r.minAngle),f=t2(c,d),g=Math.abs(f),x=i.length<=1?0:null!==(t=r.paddingAngle)&&void 0!==t?t:0,v=i.filter(e=>0!==EM(e,u,0)).length,b=g-v*h-(g>=360?v:v-1)*x,y=i.reduce((e,t)=>{var n=EM(t,u,0);return e+(rA(n)?n:0)},0);y>0&&(n=i.map((e,t)=>{var n,i=EM(e,u,0),d=EM(e,m,t),g=e2(r,o,e),v=(rA(i)?i:0)/y,w=G1(G1({},e),s&&s[t]&&s[t].props),j=(n=t?a.endAngle+tA(f)*x*(0!==i?1:0):c)+tA(f)*((0!==i?h:0)+v*b),k=(n+j)/2,N=(g.innerRadius+g.outerRadius)/2,S=[{name:d,value:i,payload:w,dataKey:u,type:p,graphicalItemId:r.id}],_=vV(g.cx,g.cy,N,k);return a=G1(G1(G1(G1({},r.presentationProps),{},{percent:v,cornerRadius:"string"===typeof l?parseFloat(l):l,name:d,tooltipPayload:S,midAngle:k,middleRadius:N,tooltipPosition:_},w),g),{},{value:i,dataKey:u,startAngle:n,endAngle:j,payload:w,paddingAngle:tA(f)*x})}));return n}({offset:a,pieSettings:t,displayedData:e,cells:n})}),WQ=["children","className"];function KQ(){return KQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},KQ.apply(null,arguments)}var GQ,ZQ,YQ,QQ,$Q,XQ,JQ,e$,t$,n$,a$,r$,i$,s$,o$=a.forwardRef((e,t)=>{var n=e.children,r=e.className,i=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,WQ),s=Lv("recharts-layer",r);return a.createElement("g",KQ({className:s},wY(i),{ref:t}),n)});function l$(){}function c$(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function d$(e){this._context=e}function u$(e){return new d$(e)}function m$(e){this._context=e}function p$(e){return new m$(e)}function h$(e){this._context=e}function f$(e){return new h$(e)}n.dn(l$),n.dn(u$),d$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:c$(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:c$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(p$),m$.prototype={areaStart:l$,areaEnd:l$,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:c$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},n.dn(f$),h$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,a=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:c$(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class g${constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function x$(e){this._context=e}function v$(e){return new x$(e)}function b$(e){this._context=e}function y$(e){return new b$(e)}function w$(e){return e<0?-1:1}function j$(e,t,n){var a=e._x1-e._x0,r=t-e._x1,i=(e._y1-e._y0)/(a||r<0&&-0),s=(n-e._y1)/(r||a<0&&-0),o=(i*r+s*a
2)/(a+r);return(w$(i)+w$(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function k$(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function N$(e,t,n){var a=e._x0,r=e._y0,i=e._x1,s=e._y1,o=(i-a)/3;e._context.bezierCurveTo(a+o,r+o*t,i-o,s-o*n,i,s)}function S$(e){this._context=e}function _$(e){this._context=new z$(e)}function z$(e){this._context=e}function E$(e){this._context=e}function C$(e){var t,n,a=e.length-1,r=new Array(a),i=new Array(a),s=new Array(a);for(r[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<a-1;++t)r[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(r[a-1]=2,i[a-1]=7,s[a-1]=8*e[a-1]+e[a],t=1;t<a;++t)n=r[t]/i[t-1],i[t]-=n,s[t]-=n*s[t-1];for(r[a-1]=s[a-1]/i[a-1],t=a-2;t>=0;--t)r[t]=(s[t]-r[t+1])/i[t];for(i[a-1]=(e[a]+r[a-1])/2,t=0;t<a-1;++t)i[t]=2*e[t+1]-r[t+1];return[r,i]}function P$(e){return new E$(e)}function A$(e,t){this._context=e,this._t=t}function T$(e){return new A$(e,.5)}function R$(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.dn(v$),x$.prototype={areaStart:l$,areaEnd:l$,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},n.dn(y$),b$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},S$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:N$(this,this._t0,k$(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,N$(this,k$(this,n=j$(this,e,t)),n);break;default:N$(this,this._t0,n=j$(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(_$.prototype=Object.create(S$.prototype)).point=function(e,t){S$.prototype.point.call(this,t,e)},z$.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,a,r,i){this._context.bezierCurveTo(t,e,a,n,i,r)}},n.dn(P$),E$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var a=C$(e),r=C$(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(a[0][i],r[0][i],a[1][i],r[1][i],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},n.dn(T$),A$.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};const O$=Math.PI,D$=2*O$,M$=1e-6,I$=D$-M$;function F$(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class L${constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?F$:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error("invalid digits: ".concat(e));if(t>15)return F$;const n=10**t;return function(e){this._+=e[0];for(let t=1,a=e.length;t<a;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append(GQ||(GQ=R$(["M",",",""])),this._x0=this._x1=+e,this._y0=this._y1=+t)}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append(ZQ||(ZQ=R$(["Z"]))))}lineTo(e,t){this._append(YQ||(YQ=R$(["L",",",""])),this._x1=+e,this._y1=+t)}quadraticCurveTo(e,t,n,a){this._append(QQ||(QQ=R$(["Q",",",",",",",""])),+e,+t,this._x1=+n,this._y1=+a)}bezierCurveTo(e,t,n,a,r,i){this._append($Q||($Q=R$(["C",",",",",",",",",",",""])),+e,+t,+n,+a,this._x1=+r,this._y1=+i)}arcTo(e,t,n,a,r){if(e=+e,t=+t,n=+n,a=+a,(r=+r)<0)throw new Error("negative radius: ".concat(r));let i=this._x1,s=this._y1,o=n-e,l=a-t,c=i-e,d=s-t,u=c*c+d*d;if(null===this._x1)this._append(XQ||(XQ=R$(["M",",",""])),this._x1=e,this._y1=t);else if(u>M$)if(Math.abs(d*o-l*c)>M$&&r){let m=n-i,p=a-s,h=o*o+l*l,f=m*m+p*p,g=Math.sqrt(h),x=Math.sqrt(u),v=r*Math.tan((O$-Math.acos((h+u-f)/(2*g*x)))/2),b=v/x,y=v/g;Math.abs(b-1)>M$&&this._append(e$||(e$=R$(["L",",",""])),e+b*c,t+b*d),this._append(t$||(t$=R$(["A",",",",0,0,",",",",",""])),r,r,+(d*m>c*p),this._x1=e+y*o,this._y1=t+y*l)}else this._append(JQ||(JQ=R$(["L",",",""])),this._x1=e,this._y1=t);else;}arc(e,t,n,a,r,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error("negative radius: ".concat(n));let s=n*Math.cos(a),o=n*Math.sin(a),l=e+s,c=t+o,d=1^i,u=i?a-r:r-a;null===this._x1?this._append(n$||(n$=R$(["M",",",""])),l,c):(Math.abs(this._x1-l)>M$||Math.abs(this._y1-c)>M$)&&this._append(a$||(a$=R$(["L",",",""])),l,c),n&&(u<0&&(u=u%D$+D$),u>I$?this._append(r$||(r$=R$(["A",",",",0,1,",",",",","A",",",",0,1,",",",",",""])),n,n,d,e-s,t-o,n,n,d,this._x1=l,this._y1=c):u>M$&&this._append(i$||(i$=R$(["A",",",",0,",",",",",",",""])),n,n,+(u>=O$),d,this._x1=e+n*Math.cos(r),this._y1=t+n*Math.sin(r)))}rect(e,t,n,a){this._append(s$||(s$=R$(["M",",","h","v","h","Z"])),this._x0=this._x1=+e,this._y0=this._y1=+t,n=+n,+a,-n)}toString(){return this._}}function B$(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError("invalid digits: ".concat(n));t=e}return e},()=>new L$(t)}function q$(e){return e[0]}function U$(e){return e[1]}
2function V$(e,t){var n=bM(!0),a=null,r=y$,i=null,s=B$(o);function o(o){var l,c,d,u=(o=vM(o)).length,m=!1;for(null==a&&(i=r(d=s())),l=0;l<=u;++l)!(l<u&&n(c=o[l],l,o))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(c,l,o),+t(c,l,o));if(d)return i=null,d+""||null}return e="function"===typeof e?e:void 0===e?q$:bM(e),t="function"===typeof t?t:void 0===t?U$:bM(t),o.x=function(t){return arguments.length?(e="function"===typeof t?t:bM(+t),o):e},o.y=function(e){return arguments.length?(t="function"===typeof e?e:bM(+e),o):t},o.defined=function(e){return arguments.length?(n="function"===typeof e?e:bM(!!e),o):n},o.curve=function(e){return arguments.length?(r=e,null!=a&&(i=r(a)),o):r},o.context=function(e){return arguments.length?(null==e?a=i=null:i=r(a=e),o):a},o}function H$(e,t,n){var a=null,r=bM(!0),i=null,s=y$,o=null,l=B$(c);function c(c){var d,u,m,p,h,f=(c=vM(c)).length,g=!1,x=new Array(f),v=new Array(f);for(null==i&&(o=s(h=l())),d=0;d<=f;++d){if(!(d<f&&r(p=c[d],d,c))===g)if(g=!g)u=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=d-1;m>=u;--m)o.point(x[m],v[m]);o.lineEnd(),o.areaEnd()}g&&(x[d]=+e(p,d,c),v[d]=+t(p,d,c),o.point(a?+a(p,d,c):x[d],n?+n(p,d,c):v[d]))}if(h)return o=null,h+""||null}function d(){return V$().defined(r).curve(s).context(i)}return e="function"===typeof e?e:void 0===e?q$:bM(+e),t="function"===typeof t?t:bM(void 0===t?0:+t),n="function"===typeof n?n:void 0===n?U$:bM(+n),c.x=function(t){return arguments.length?(e="function"===typeof t?t:bM(+t),a=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:bM(+t),c):e},c.x1=function(e){return arguments.length?(a=null==e?null:"function"===typeof e?e:bM(+e),c):a},c.y=function(e){return arguments.length?(t="function"===typeof e?e:bM(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"===typeof e?e:bM(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:bM(+e),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(a).y(t)},c.defined=function(e){return arguments.length?(r="function"===typeof e?e:bM(!!e),c):r},c.curve=function(e){return arguments.length?(s=e,null!=i&&(o=s(i)),c):s},c.context=function(e){return arguments.length?(null==e?i=o=null:o=s(i=e),c):i},c}n.dn(V$),n.dn(H$);var W$=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,K$=(e,t)=>{if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,a.isValidElement)(e)&&(n=e.props),"object"!==typeof n&&"function"!==typeof n)return null;var r={};return Object.keys(n).forEach(e=>{fY(e)&&(r[e]=t||(t=>n[e](n,t)))}),r},G$=(e,t,n)=>{if(null===e||"object"!==typeof e&&"function"!==typeof e)return null;var a=null;return Object.keys(e).forEach(r=>{var i=e[r];fY(r)&&"function"===typeof i&&(a||(a={}),a[r]=((e,t,n)=>a=>(e(t,n,a),null))(i,t,n))}),a};function Z$(){return Z$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Z$.apply(null,arguments)}function Y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Q$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y$(Object(n),!0).forEach(function(t){$$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X$={curveBasisClosed:p$,curveBasisOpen:f$,curveBasis:u$,curveBumpX:function(e){return new g$(e,!0)},curveBumpY:function(e){return new g$(e,!1)},curveLinearClosed:v$,curveLinear:y$,curveMonotoneX:function(e){return new S$(e)},curveMonotoneY:function(e){return new _$(e)},curveNatural:P$,curveStep:T$,curveStepAfter:function(e){return new A$(e,1)},curveStepBefore:function(e){return new A$(e,0)}},J$=e=>kA(e.x)&&kA(e.y),eX=e=>null!=e.base&&J$(e.base)&&J$(e),tX=e=>e.x,nX=e=>e.y,aX=e=>{var t=e.type,n=void 0===t?"linear":t,a=e.points,r=void 0===a?[]:a,i=e.base
2Line,s=e.layout,o=e.connectNulls,l=void 0!==o&&o,c=((e,t)=>{if("function"===typeof e)return e;var n="curve".concat(pA(e));return"curveMonotone"!==n&&"curveBump"!==n||!t?X$[n]||y$:X$["".concat(n).concat("vertical"===t?"Y":"X")]})(n,s),d=l?r.filter(J$):r;if(Array.isArray(i)){var u=r.map((e,t)=>Q$(Q$({},e),{},{base:i[t]}));return("vertical"===s?H$().y(nX).x1(tX).x0(e=>e.base.x):H$().x(tX).y1(nX).y0(e=>e.base.y)).defined(eX).curve(c)(l?u.filter(eX):u)}return("vertical"===s&&rA(i)?H$().y(nX).x1(tX).x0(i):rA(i)?H$().x(tX).y1(nX).y0(i):V$().x(tX).y(nX)).defined(J$).curve(c)(d)},rX=e=>{var t=e.className,n=e.points,r=e.path,i=e.pathRef,s=pI();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||s,connectNulls:e.connectNulls},l=n&&n.length?aX(o):r;return a.createElement("path",Z$({},bY(e),K$(e),{className:Lv("recharts-curve",t),d:null===l?void 0:l,ref:i}))};function iX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function oX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sX(Object(n),!0).forEach(function(t){lX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cX=oX({},{cacheSize:2e3,enableCache:!0}),dX=new class{constructor(e){iX(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;null!=n&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(cX.cacheSize),uX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},mX="recharts_measurement_span";var pX=(e,t)=>{try{var n=document.getElementById(mX);n||((n=document.createElement("span")).setAttribute("id",mX),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,uX,t),n.textContent="".concat(e);var a=n.getBoundingClientRect();return{width:a.width,height:a.height}}catch(r){return{width:0,height:0}}},hX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||WZ)return{width:0,height:0};if(!cX.enableCache)return pX(e,t);var n=function(e,t){var n=t.fontSize||"",a=t.fontFamily||"",r=t.fontWeight||"",i=t.fontStyle||"",s=t.letterSpacing||"",o=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(a,"|").concat(r,"|").concat(i,"|").concat(s,"|").concat(o)}(e,t),a=dX.get(n);if(a)return a;var r=pX(e,t);return dX.set(n,r),r};var fX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,gX=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,xX=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,vX=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,bX={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},yX=["cm","mm","pt","pc","in","Q","px"];var wX="NaN";class jX{static parse(e){var t,n=Le(null!==(t=vX.exec(e))&&void 0!==t?t:[],3),a=n[1],r=n[2];return null==a?jX.NaN:new jX(parseFloat(a),null!==r&&void 0!==r?r:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,nA(e)&&(this.unit=""),""===t||xX.test(t)||(this.num=NaN,this.unit=""),function(e){return yX.includes(e)}(t)&&(this.num=function(e,t){return e*bX[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new jX(NaN,""):new jX(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new jX(NaN,""):new jX(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new jX(NaN,""):new jX(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new jX(NaN,""):new jX(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return nA(this.num)}}function kX(e){if(null==e||e.includes(wX))return wX;for(var t=e;t.includes("*")||t.includes("/");){var n,a=Le(null!==(n=fX.exec(t))&&void 0!==n?n:[],4),r=a[1],i=a[2],s=a[3],o=jX.parse(null!==r&&void 0!==r?r:""),l=jX.parse(null!==s&&void 0!==s?s:""),c="*"===i?o.multiply(l):o.divide(l);if(c.isNaN())return wX;t=t.replace(fX,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,u=Le(null!==(d=gX.exec(t))&&void 0!==d?d:[],4),m=u[1],p=u[2],h=u[3],f=jX.parse(null!==m&&void 0!==m?m:""),g=jX.parse(null!==h&&void 0!==h?h:""),x="+"===p?f.add(g):f.subtract(g);if(x.isNaN())return wX;
vendor: 4,585 bytes, line 2
2t=t.replace(gX,x.toString())}return t}!function(e,t,n){(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(jX,"NaN",new jX(NaN,""));var NX=/\(([^()]*)\)/;function SX(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,n=e;null!=(t=NX.exec(n));){var a=Le(t,2)[1];n=n.replace(NX,kX(a))}return n}(t),t=kX(t)}function _X(e){var t=function(e){try{return SX(e)}catch(t){return wX}}(e.slice(5,-1));return t===wX?"":t}var zX=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],EX=["dx","dy","angle","className","breakAll"];function CX(){return CX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},CX.apply(null,arguments)}function PX(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var AX=/[ \f\n\r\t\v\u2028\u2029]+/,TX=e=>{var t=e.children,n=e.breakAll,a=e.style;try{var r=[];return mA(t)||(r=n?t.toString().split(""):t.toString().split(AX)),{wordsWithComputedWidth:r.map(e=>({word:e,width:hX(e,a).width})),spaceWidth:n?0:hX("\xa0",a).width}}catch(i){return null}};function RX(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var OX=(e,t,n,a)=>e.reduce((e,r)=>{var i=r.word,s=r.width,o=e[e.length-1];if(o&&null!=s&&(null==t||a||o.width+s+n<Number(t)))o.words.push(i),o.width+=s+n;else{var l={words:[i],width:s};e.push(l)}return e},[]),DX=e=>e.reduce((e,t)=>e.width>t.width?e:t),MX=(e,t,n,a,r,i,s,o)=>{var l=e.slice(0,t),c=TX({breakAll:n,style:a,children:l+"\u2026"});if(!c)return[!1,[]];var d=OX(c.wordsWithComputedWidth,i,s,o);return[d.length>r||DX(d).width>Number(i),d]},IX=e=>[{words:mA(e)?[]:e.toString().split(AX),width:void 0}],FX=e=>{var t=e.width,n=e.scaleToFit,a=e.children,r=e.style,i=e.breakAll,s=e.maxLines;if((t||n)&&!WZ){var o=TX({breakAll:i,children:a,style:r});return o?((e,t,n,a,r)=>{var i=e.maxLines,s=e.children,o=e.style,l=e.breakAll,c=rA(i),d=String(s),u=OX(t,a,n,r);if(!c||r)return u;if(!(u.length>i||DX(u).width>Number(a)))return u;for(var m,p=0,h=d.length-1,f=0;p<=h&&f<=d.length-1;){var g=Math.floor((p+h)/2),x=Le(MX(d,g-1,l,o,i,a,n,r),2),v=x[0],b=x[1],y=Le(MX(d,g,l,o,i,a,n,r),1)[0];if(v||y||(p=g+1),v&&y&&(h=g-1),!v&&y){m=b;break}f++}return m||u})({breakAll:i,children:a,maxLines:s,style:r},o.wordsWithComputedWidth,o.spaceWidth,t,Boolean(n)):IX(a)}return IX(a)},LX="#808080",BX={angle:0,breakAll:!1,capHeight:"0.71em",fill:LX,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},qX=(0,a.forwardRef)((e,t)=>{var n=hQ(e,BX),r=n.x,i=n.y,s=n.lineHeight,o=n.capHeight,l=n.fill,c=n.scaleToFit,d=n.textAnchor,u=n.verticalAnchor,m=PX(n,zX),p=(0,a.useMemo)(()=>FX({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),h=m.dx,f=m.dy,g=m.angle,x=m.className,v=m.breakAll,b=PX(m,EX);if(!iA(r)||!iA(i)||0===p.length)return null;var y,w=Number(r)+(rA(h)?h:0),j=Number(i)+(rA(f)?f:0);if(!kA(w)||!kA(j))return null;switch(u){case"start":y=_X("calc(".concat(o,")"));break;case"middle":y=_X("calc(".concat((p.length-1)/2," * -").concat(s," + (").concat(o," / 2))"));break;default:y=_X("calc(".concat(p.length-1," * -").concat(s,")"))}var k=[];if(c){var N=p[0].width,S=m.width;k.push("scale(".concat(rA(S)&&rA(N)?S/N:1,")"))}return g&&k.push("rotate(".concat(g,", ").concat(w,", ").concat(j,")")),k.length&&(b.transform=k.join(" ")),a.createElement("text",CX({},wY(b),{ref:t,x:w,y:j,className:Lv("recharts-text",x),textAnchor:d,fill:l.includes("url")?LX:l}),p.map((e,t)=>{var n=e.words.join(v?"":" ");return a.createElement("tspan",{x:w,dy:0===t?y:s,key:"".concat(n,"-").concat(t)},n)}))});qX.displayName="Text";var UX=e=>null;UX.displayName="Cell";var VX=n(86),HX=e=>"string"===typeof e?e:e?e.displayName||e.name||"Component":"",WX=null,KX=null,GX=e=>{if(e===WX&&Array.isArray(KX))return KX;var t=[];
2return a.Children.forEach(e,e=>{mA(e)||((0,VX.isFragment)(e)?t=t.concat(GX(e.props.children)):t.push(e))}),KX=t,WX=e,t};function ZX(e,t){var n=[],a=[];return a=Array.isArray(t)?t.map(e=>HX(e)):[HX(t)],GX(e).forEach(e=>{var t=XP(e,"type.displayName")||XP(e,"type.name");t&&-1!==a.indexOf(t)&&n.push(e)}),n}var YX=e=>!e||"object"!==typeof e||!("clipDot"in e)||Boolean(e.clipDot);function QX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function $X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QX(Object(n),!0).forEach(function(t){XX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XX(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JX=(e,t,n)=>e.map(e=>{return"".concat((a=e,a.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(n);var a}).join(","),eJ=(e,t)=>Object.keys(t).reduce((n,a)=>$X($X({},n),{},{[a]:e(a,t[a])}),{});function tJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function nJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tJ(Object(n),!0).forEach(function(t){aJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rJ=(e,t,n)=>e+(t-e)*n,iJ=e=>e.from!==e.to,sJ=(e,t,n)=>{var a=eJ((t,n)=>{if(iJ(n)){var a=Le(e(n.from,n.to,n.velocity),2),r=a[0],i=a[1];return nJ(nJ({},n),{},{from:r,velocity:i})}return n},t);return n<1?eJ((e,t)=>iJ(t)&&null!=a[e]?nJ(nJ({},t),{},{velocity:rJ(t.velocity,a[e].velocity,n),from:rJ(t.from,a[e].from,n)}):t,t):sJ(e,a,n-1)};function oJ(e,t,n,a,r,i){var s,o=a.reduce((n,a)=>nJ(nJ({},n),{},{[a]:{from:e[a],velocity:0,to:t[a]}}),{}),l=null,c=a=>{s||(s=a);var d=(a-s)/n.dt;o=sJ(n,o,d),r(nJ(nJ(nJ({},e),t),eJ((e,t)=>t.from,o))),s=a,Object.values(o).filter(iJ).length&&(l=i.setTimeout(c))};return()=>(l=i.setTimeout(c),()=>{var e;null===(e=l)||void 0===e||e()})}const lJ=(e,t,n,a,r,i)=>{var s,o,l=(s=e,o=t,[Object.keys(s),Object.keys(o)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==n?()=>(r(nJ(nJ({},e),t)),()=>{}):!0===n.isStepper?oJ(e,t,n,l,r,i):function(e,t,n,a,r,i,s){var o,l=null,c=r.reduce((n,a)=>{var r=e[a],i=t[a];return null==r||null==i?n:nJ(nJ({},n),{},{[a]:[r,i]})},{}),d=r=>{o||(o=r);var u=(r-o)/a,m=eJ((e,t)=>rJ(...t,n(u)),c);if(i(nJ(nJ(nJ({},e),t),m)),u<1)l=s.setTimeout(d);else{var p=eJ((e,t)=>rJ(...t,n(1)),c);i(nJ(nJ(nJ({},e),t),p))}};return()=>(l=s.setTimeout(d),()=>{var e;null===(e=l)||void 0===e||e()})}(e,t,n,a,l,r,i)};n.dn(lJ);var cJ=1e-4,dJ=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],uJ=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),mJ=(e,t)=>n=>{var a=dJ(e,t);return uJ(a,n)},pJ=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var a=(e=>{var t,n=e.split("(");if(2!==n.length||"cubic-bezier"!==n[0])return null;var a=null===(t=n[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==a||4!==a.length)return null;var r=a.map(e=>parseFloat(e));
2return[r[0],r[1],r[2],r[3]]})(t[0]);if(a)return a}return 4===t.length?t:[0,0,1,1]},hJ=(e,t,n,a)=>{var r,i,s=mJ(e,n),o=mJ(t,a),l=(r=e,i=n,e=>{var t=[...dJ(r,i).map((e,t)=>e*t).slice(1),0];return uJ(t,e)}),c=e=>e>1?1:e<0?0:e,d=e=>{for(var t=e>1?1:e,n=t,a=0;a<8;++a){var r=s(n)-t,i=l(n);if(Math.abs(r-t)<cJ||i<cJ)return o(n);n=c(n-r/i)}return o(n)};return d.isStepper=!1,d},fJ=function(){return hJ(...pJ(...arguments))},gJ=e=>{if("string"===typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fJ(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,a=e.damping,r=void 0===a?8:a,i=e.dt,s=void 0===i?17:i,o=(e,t,a)=>{var i=a+(-(e-t)*n-a*r)*s/1e3,o=a*s/1e3+e;return Math.abs(o-t)<cJ&&Math.abs(i)<cJ?[t,0]:[o,i]};return o.isStepper=!0,o.dt=s,o}();default:if("cubic-bezier"===e.split("(")[0])return fJ(e)}return"function"===typeof e?e:null};class xJ{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=performance.now(),a=null,r=i=>{i-n>=t?e(i):"function"===typeof requestAnimationFrame&&(a=requestAnimationFrame(r))};return a=requestAnimationFrame(r),()=>{null!=a&&cancelAnimationFrame(a)}}}function vJ(){return function(e){var t=()=>null,n=!1,a=null,r=i=>{if(!n){if(Array.isArray(i)){if(!i.length)return;var s=qe(i),o=s[0],l=Me(s).slice(1);return"number"===typeof o?void(a=e.setTimeout(r.bind(null,l),o)):(r(o),void(a=e.setTimeout(r.bind(null,l))))}"string"===typeof i&&t(i),"object"===typeof i&&t(i),"function"===typeof i&&i()}};return{stop:()=>{n=!0},start:e=>{n=!1,a&&(a(),a=null),r(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e}}(new xJ)}var bJ=(0,a.createContext)(vJ);var yJ={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},wJ={t:0},jJ={t:1};function kJ(e){var t=hQ(e,yJ),n=t.isActive,r=t.canBegin,i=t.duration,s=t.easing,o=t.begin,l=t.onAnimationEnd,c=t.onAnimationStart,d=t.children,u="auto"===n?!WZ:n,m=function(e,t){var n=(0,a.useContext)(bJ);return(0,a.useMemo)(()=>null!==t&&void 0!==t?t:n(e),[e,t,n])}(t.animationId,t.animationManager),p=Le((0,a.useState)(u?wJ:jJ),2),h=p[0],f=p[1],g=(0,a.useRef)(null);return(0,a.useEffect)(()=>{u||f(jJ)},[u]),(0,a.useEffect)(()=>{if(!u||!r)return fA;var e=lJ(wJ,jJ,gJ(s),i,f,m.getTimeoutController());return m.start([c,o,()=>{g.current=e()},i,l]),()=>{m.stop(),g.current&&g.current(),l()}},[u,r,i,s,o,c,l,m]),d(h.t)}function NJ(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,a.useRef)(oA(t)),r=(0,a.useRef)(e);return r.current!==e&&(n.current=oA(t),r.current=e),n.current}var SJ,_J,zJ,EJ,CJ,PJ,AJ,TJ,RJ,OJ,DJ=["radius"],MJ=["radius"];function IJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function FJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IJ(Object(n),!0).forEach(function(t){LJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BJ(){return BJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},BJ.apply(null,arguments)}function qJ(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function UJ(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var VJ,HJ,WJ,KJ,GJ,ZJ=(e,t,n,a,r)=>{var i,s=JP(n),o=JP(a),l=Math.min(Math.abs(s)/2,Math.abs(o)/2),c=o>=0?1:-1,d=s>=0?1:-1,u=o>=0&&s>=0||o<0&&s<0?1:0;if(l>0&&r instanceof Array){for(var m=[0,0,0,0],p=0;p<4;p++)m[p]=r[p]>l?l:r[p];i=eA(SJ||(SJ=UJ(["M",",",""])),e,t+c*m[0]),m[0]>0&&(i+=eA(_J||(_J=UJ(["A ",",",",0,0,",",",",",""])),m[0],m[0],u,e+d*m[0],t)),i+=eA(zJ||(zJ=UJ(["L ",",",""])),e+n-d*m[1],t),m[1]>0&&(i+=eA(EJ||(EJ=UJ(["A ",",",",0,0,",",\n ",",",""])),m[1],m[1],u,e+n,t+c*m[1])),i+=eA(CJ||(CJ=UJ(["L ",",",""])),e+n,t+a-c*m[2]),m[2]>0&&(i+=eA(PJ||(PJ=UJ(["A ",",",",0,0,",",\n ",",",""])),m[2],m[2],u,e+n-d*m[2],t+a)),i+=eA(AJ||(AJ=UJ(["L ",",",""])),e+d*m[3],t+a),m[3]>0&&(i+=eA(TJ||(TJ=UJ(["A ",",",",0,0,",",\n ",",",""])),m[3],m[3],u,e,t+a-c*m[3])),i+="Z"}else if(l>0&&r===+r&&r>0){var h=Math.min(l,r);i=eA(RJ||(RJ=UJ(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+c*h,h,h,u,e+d*h,t,e+n-d*h,t,h,h,u,e+n,t+c*h,e+n,t+a-c*h,h,h,u,e+n-d*h,t+a,e+d*h,t+a,h,h,u,e,t+a-c*h)}else i=eA(OJ||(OJ=UJ(["M ",","," h "," v "," h "," Z"])),e,t,n,a,-n);return i},YJ={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QJ=e=>{var t=hQ(e,YJ),n=(0,a.useRef)(null),r=Le((0,a.useState)(-1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>
vendor: 11,082 bytes, line 2
2{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&s(e)}catch(t){}},[]);var o=t.x,l=t.y,c=t.width,d=t.height,u=t.radius,m=t.className,p=t.animationEasing,h=t.animationDuration,f=t.animationBegin,g=t.isAnimationActive,x=t.isUpdateAnimationActive,v=(0,a.useRef)(c),b=(0,a.useRef)(d),y=(0,a.useRef)(o),w=(0,a.useRef)(l),j=NJ((0,a.useMemo)(()=>({x:o,y:l,width:c,height:d,radius:u}),[o,l,c,d,u]),"rectangle-");if(o!==+o||l!==+l||c!==+c||d!==+d||0===c||0===d)return null;var k=Lv("recharts-rectangle",m);if(!x){var N=wY(t),S=(N.radius,qJ(N,DJ));return a.createElement("path",BJ({},S,{x:JP(o),y:JP(l),width:JP(c),height:JP(d),radius:"number"===typeof u?u:void 0,className:k,d:ZJ(o,l,c,d,u)}))}var _=v.current,z=b.current,E=y.current,C=w.current,P="0px ".concat(-1===i?1:i,"px"),A="".concat(i,"px 0px"),T=JX(["strokeDasharray"],h,"string"===typeof p?p:YJ.animationEasing);return a.createElement(kJ,{animationId:j,key:j,canBegin:i>0,duration:h,easing:p,isActive:x,begin:f},e=>{var r,i=dA(_,c,e),s=dA(z,d,e),m=dA(E,o,e),p=dA(C,l,e);n.current&&(v.current=i,b.current=s,y.current=m,w.current=p),r=g?e>0?{transition:T,strokeDasharray:A}:{strokeDasharray:P}:{strokeDasharray:A};var h=wY(t),f=(h.radius,qJ(h,MJ));return a.createElement("path",BJ({},f,{radius:"number"===typeof u?u:void 0,className:k,d:ZJ(m,p,i,s,u),ref:n,style:FJ(FJ({},r),t.style)}))})};function $J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function XJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$J(Object(n),!0).forEach(function(t){JJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$J(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JJ(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e0(){return e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},e0.apply(null,arguments)}function t0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var n0,a0,r0,i0,s0,o0,l0,c0=(e,t,n,a,r)=>{var i,s=n-a;return i=eA(VJ||(VJ=t0(["M ",",",""])),e,t),i+=eA(HJ||(HJ=t0(["L ",",",""])),e+n,t),i+=eA(WJ||(WJ=t0(["L ",",",""])),e+n-s/2,t+r),i+=eA(KJ||(KJ=t0(["L ",",",""])),e+n-s/2-a,t+r),i+=eA(GJ||(GJ=t0(["L ",","," Z"])),e,t)},d0={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u0=e=>{var t=hQ(e,d0),n=t.x,r=t.y,i=t.upperWidth,s=t.lowerWidth,o=t.height,l=t.className,c=t.animationEasing,d=t.animationDuration,u=t.animationBegin,m=t.isUpdateAnimationActive,p=(0,a.useRef)(null),h=Le((0,a.useState)(-1),2),f=h[0],g=h[1],x=(0,a.useRef)(i),v=(0,a.useRef)(s),b=(0,a.useRef)(o),y=(0,a.useRef)(n),w=(0,a.useRef)(r),j=NJ(e,"trapezoid-");if((0,a.useEffect)(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&g(e)}catch(t){}},[]),n!==+n||r!==+r||i!==+i||s!==+s||o!==+o||0===i&&0===s||0===o)return null;var k=Lv("recharts-trapezoid",l);if(!m)return a.createElement("g",null,a.createElement("path",e0({},wY(t),{className:k,d:c0(n,r,i,s,o)})));var N=x.current,S=v.current,_=b.current,z=y.current,E=w.current,C="0px ".concat(-1===f?1:f,"px"),P="".concat(f,"px 0px"),A=JX(["strokeDasharray"],d,c);return a.createElement(kJ,{animationId:j,key:j,canBegin:f>0,duration:d,easing:c,isActive:m,begin:u},e=>{var l=dA(N,i,e),c=dA(S,s,e),d=dA(_,o,e),u=dA(z,n,e),m=dA(E,r,e);p.current&&(x.current=l,v.current=c,b.current=d,y.current=u,w.current=m);var h=e>0?{transition:A,strokeDasharray:P}:{strokeDasharray:C};return a.createElement("path",e0({},wY(t),{className:k,d:c0(u,m,l,c,d),ref:p,style:XJ(XJ({},h),t.style)}))})};function m0(){return m0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m0.apply(null,arguments)}function p0(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h0=e=>{var t=e.cx,n=e.cy,a=e.radius,r=e.angle,i=e.sign,s=e.isExternal,o=e.cornerRadius,l=e.cornerIsExternal,c=o*(s?1:-1)+a,d=Math.asin(o/c)/gV,u=l?r:r+i*d,m=l?r-i*d:r;return{center:vV(t,n,c,u),circleTangency:vV(t,n,a,u),lineTangency:vV(t,n,c*Math.cos(d*gV),m),theta:d}},f0=e=>{var t=e.cx,n=e.cy,a=e.innerRadius,r=e.outerRadius,i=e.startAngle,s=((e,t)=>tA(t-e)*Math.min(Math.abs(t-e),359.999))(i,e.endAngle),o=i+s,l=vV(t,n,r,i),c=vV(t,n,r,o),d=eA(n0||(n0=p0(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),l.x,l.y,r,r,+(Math.abs(s)>180),+(i>o),c.x,c.y);if(a>0){var u=vV(t,n,a,i),m=vV(t,n,a,o);d+=eA(a0||(a0=p0(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),m.x,m.y,a,a,+(Math.abs(s)>180),+(i<=o),u.x,u.y)}else d+=eA(r0||(r0=p0(["L ",","," Z"])),t,n);return d},g0={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x0=e=>{var t=hQ(e,g0),n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,c=t.cornerIsExternal,d=t.startAngle,u=t.endAngle,m=t.className;if(s<i||d===u)return null;var p,h=Lv("recharts-sector",m),f=s-i,g=lA(o,f,0,!0);return p=g>0&&Math.abs(d-u)<360?(e=>{var t=e.cx,n=e.cy,a=e.innerRadius,r=e.outerRadius,i=e.cornerRadius,s=e.forceCornerRadius,o=e.cornerIsExternal,l=e.startAngle,c=e.endAngle,d=tA(c-l),u=h0({cx:t,cy:n,radius:r,angle:l,sign:d,cornerRadius:i,cornerIsExternal:o}),m=u.circleTangency,p=u.lineTangency,h=u.theta,f=h0({cx:t,cy:n,radius:r,angle:c,sign:-d,cornerRadius:i,cornerIsExternal:o}),g=f.circleTangency,x=f.lineTangency,v=f.theta,b=o?Math.abs(l-c):Math.abs(l-c)-h-v;if(b<0)return s?eA(i0||(i0=p0(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),p.x,p.y,i,i,2*i,i,i,2*-i):f0({cx:t,cy:n,innerRadius:a,outerRadius:r,startAngle:l,endAngle:c});var y=eA(s0||(s0=p0(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),p.x,p.y,i,i,+(d<0),m.x,m.y,r,r,+(b>180),+(d<0),g.x,g.y,i,i,+(d<0),x.x,x.y);if(a>0){var w=h0({cx:t,cy:n,radius:a,angle:l,sign:d,isExternal:!0,cornerRadius:i,cornerIsExternal:o}),j=w.circleTangency,k=w.lineTangency,N=w.theta,S=h0({cx:t,cy:n,radius:a,angle:c,sign:-d,isExternal:!0,cornerRadius:i,cornerIsExternal:o}),_=S.circleTangency,z=S.lineTangency,E=S.theta,C=o?Math.abs(l-c):Math.abs(l-c)-N-E;if(C<0&&0===i)return"".concat(y,"L").concat(t,",").concat(n,"Z");y+=eA(o0||(o0=p0(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),z.x,z.y,i,i,+(d<0),_.x,_.y,a,a,+(C>180),+(d>0),j.x,j.y,i,i,+(d<0),k.x,k.y)}else y+=eA(l0||(l0=p0(["L",",","Z"])),t,n);return y})({cx:n,cy:r,innerRadius:i,outerRadius:s,cornerRadius:Math.min(g,f/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:u}):f0({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:d,endAngle:u}),a.createElement("path",m0({},wY(t),{className:h,d:p}))};Math.abs,Math.atan2;const v0=Math.cos,b0=(Math.max,Math.min,Math.sin),y0=Math.sqrt,w0=Math.PI,j0=2*w0;const k0={draw(e,t){const n=y0(t/w0);e.moveTo(n,0),e.arc(0,0,n,0,j0)}},N0={draw(e,t){const n=y0(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},S0=y0(1/3),_0=2*S0,z0={draw(e,t){const n=y0(t/_0),a=n*S0;e.moveTo(0,-n),e.lineTo(a,0),e.lineTo(0,n),e.lineTo(-a,0),e.closePath()}},E0={draw(e,t){const n=y0(t),a=-n/2;e.rect(a,a,n,n)}},C0=b0(w0/10)/b0(7*w0/10),P0=b0(j0/10)*C0,A0=-v0(j0/10)*C0,T0={draw(e,t){const n=y0(.8908130915292852*t),a=P0*n,r=A0*n;e.moveTo(0,-n),e.lineTo(a,r);for(let i=1;i<5;++i){const t=j0*i/5,s=v0(t),o=b0(t);e.lineTo(o*n,-s*n),e.lineTo(s*a-o*r,o*a+s*r)}e.closePath()}},R0=y0(3),O0={draw(e,t){const n=-y0(t/(3*R0));e.moveTo(0,2*n),e.lineTo(-R0*n,-n),e.lineTo(R0*n,-n),e.closePath()}},D0=-.5,M0=y0(3)/2,I0=1/y0(12),F0=3*(I0/2+1),L0={draw(e,t){const n=y0(t/F0),a=n/2,r=n*I0,i=a,s=n*I0+n,o=-i,l=s;e.moveTo(a,r),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(D0*a-M0*r,M0*a+D0*r),e.lineTo(D0*i-M0*s,M0*i+D0*s),e.lineTo(D0*o-M0*l,M0*o+D0*l),e.lineTo(D0*a+M0*r,D0*r-M0*a),e.lineTo(D0*i+M0*s,D0*s-M0*i),e.lineTo(D0*o+M0*l,D0*l-M0*o),e.closePath()}};var B0=["type","size","sizeType"];function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},q0.apply(null,arguments)}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function V0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U0(Object(n),!0).forEach(function(t){H0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function H0(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W0={symbolCircle:k0,symbolCross:N0,symbolDiamond:z0,symbolSquare:E0,symbolStar:T0,symbolTriangle:O0,symbolWye:L0},K0=Math.PI/180,G0=e=>{var t=e.type,n=void 0===t?"circle":t,r=e.size,i=void 0===r?64:r,s=e.sizeType,o=void 0===s?"area":s,l=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,B0),c=V0(V0({},l),{},{type:n,size:i,sizeType:o}),d="circle";"string"===typeof n&&(d=n);var u=c.className,m=c.cx,p=c.cy,h=wY(c);return rA(m)&&rA(p)&&rA(i)?a.createElement("path",q0({}
2,h,{className:Lv("recharts-symbols",u),transform:"translate(".concat(m,", ").concat(p,")"),d:(()=>{var e=(e=>{var t="symbol".concat(pA(e));return W0[t]||k0})(d),t=function(e,t){let n=null,a=B$(r);function r(){let r;if(n||(n=r=a()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return e="function"===typeof e?e:bM(e||k0),t="function"===typeof t?t:bM(void 0===t?64:+t),r.type=function(t){return arguments.length?(e="function"===typeof t?t:bM(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:bM(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r}().type(e).size(((e,t,n)=>{if("area"===t)return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var a=18*K0;return 1.25*e*e*(Math.tan(a)-Math.tan(2*a)*Math.tan(a)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(i,o,d)),n=t();if(null!==n)return n})()})):null};G0.registerSymbol=(e,t)=>{W0["symbol".concat(pA(e))]=t};var Z0=["option","shapeType","activeClassName"];function Y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function Q0(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y0(Object(n),!0).forEach(function(t){$0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $0(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X0(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return a.createElement(QJ,n);case"trapezoid":return a.createElement(u0,n);case"sector":return a.createElement(x0,n);case"symbols":if(function(e){return"symbols"===e}(t))return a.createElement(G0,n);break;case"curve":return a.createElement(rX,n);default:return null}}function J0(e){var t,n=e.option,r=e.shapeType,i=e.activeClassName,s=void 0===i?"recharts-active-shape":i,o=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,Z0);if((0,a.isValidElement)(n))t=(0,a.cloneElement)(n,Q0(Q0({},o),function(e){return(0,a.isValidElement)(e)?e.props:e}(n)));else if("function"===typeof n)t=n(o,o.index);else if(function(e){if("object"!==typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){var t;const n=e[Symbol.toStringTag];return null!=n&&!(null===(t=Object.getOwnPropertyDescriptor(e,Symbol.toStringTag))||void 0===t||!t.writable)&&e.toString()==="[object ".concat(n,"]")}let n=e;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}(n)&&"boolean"!==typeof n){var l=function(e,t){return Q0(Q0({},t),e)}(n,o);t=a.createElement(X0,{shapeType:r,elementProps:l})}else{var c=o;t=a.createElement(X0,{shapeType:r,elementProps:c})}return o.isActive?a.createElement(o$,{className:s},t):t}var e1;function t1(e){var t=e.tooltipEntrySettings,n=ZD(),r=aI(),i=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{r||(null===i.current?n(uD(t)):i.current!==t&&n(mD({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,a.useLayoutEffect)(()=>()=>{i.current&&(n(pD(i.current)),i.current=null)},[n]),null}function n1(e){var t=e.legendPayload,n=ZD(),r=aI(),i=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{r||(null===i.current?n(xZ(t)):i.current!==t&&n(vZ({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,a.useLayoutEffect)(()=>()=>{i.current&&(n(bZ(i.current)),i.current=null)},[n]),null}function a1(e){var t=e.legendPayload,n=ZD(),r=XD(mI),i=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{"centric"!==r&&"radial"!==r||(null===i.current?n(xZ(t)):i.current!==t&&n(vZ({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,a.useLayoutEffect)(()=>()=>{i.current&&(n(bZ(i.current)),i.current=null)},[n]),null}var r1=null!==(e1=r["useId".toString()])&&void 0!==e1?e1:()=>Le(a.useState(()=>oA("uid-")),1)[0];var i1=(0,a.createContext)(void 0),s1=e=>{var t=e.id,n=e.type,r=e.children,i=function(e,t){var n=r1();return t||(e?"".concat(e,"-").concat(n):n)}("recharts-".concat(n),t);return a.createElement(i1.Provider,{value:i},r(i))};var o1=e=>{var t=ZD(),n=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{null===n.current?t(JG(e)):n.current!==e&&t(eZ({prev:n.current,next:e})),n.current=e},[t,e]),(0,a.useLayoutEffect)(()=>()=>{n.current&&(t(tZ(n.current)),n.current=null)},[t]),null},l1=(0,a.memo)(o1);function c1(e){var t=ZD();return(0,a.useLayoutEffect)(()=>(t(nZ(e)),()=>{t(aZ(e))}),[t,e]),null}function d1(e){var t;if(eM(e))return t=function(e){return Array.isArray(e)?e:Array.from(e)}(e),t[t.length-1]}function u1(e){var t=e.zIndex,n=e.children,r=void 0!==pI()&&void 0!==t&&0!==t,i=aI(),s=ZD();(0,a.useLayoutEffect)(()=>r?(s(JZ({zIndex:t})),()=>{s(eY({zIndex:t}))}):fA,[s,t,r]);var o=XD(e=>SY(e,t,i));return r?o?(0,Na.createPortal)(n,o):null:n}var m1=["labelRef"],p1=["content"];function h1(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function g1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?f1(Object(n),!0).forEach(function(t){x1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function x1(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v1(){return v1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},v1.apply(null,arguments)}var b1=(0,a.createContext)(null),y1=e=>{var t=e.x,n=e.y,r=e.upperWidth,i=e.lowerWidth,s=e.width,o=e.height,l=e.children,c=(0,a.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:s,height:o}),[t,n,r,i,s,o]);return a.createElement(b1.Provider,{value:c},l)},w1=()=>{var e=(0,a.useContext)(b1),t=oI();return e||sI(t)},j1=(0,a.createContext)(null),k1=()=>{var e=(0,a.useContext)(j1),t=XD(KV);return e||t},N1=e=>null!=e&&"function"===typeof e,S1=(e,t,n,r,i)=>{var s,o,l=e.offset,c=e.className,d=i.cx,u=i.cy,m=i.innerRadius,p=i.outerRadius,h=i.startAngle,f=i.endAngle,g=i.clockWise,x=(m+p)/2,v=((e,t)=>tA(t-e)*Math.min(Math.abs(t-e),360))(h,f),b=v>=0?1:-1;switch(t){case"insideStart":s=h+b*l,o=g;break;case"insideEnd":s=f-b*l,o=!g;break;case"end":s=f+b*l,o=g;break;default:throw new Error("Unsupported position ".concat(t))}o=v<=0?o:!o;var y=vV(d,u,x,s),w=vV(d,u,x,s+359*(o?1:-1)),j="M".concat(y.x,",").concat(y.y,"\n A").concat(x,",").concat(x,",0,1,").concat(o?0:1,",\n ").concat(w.x,",").concat(w.y),k=mA(e.id)?oA("recharts-radial-line-"):e.id;return a.createElement("text",v1({},r,{dominantBaseline:"central",className:Lv("recharts-radial-bar-label",c)}),a.createElement("defs",null,a.createElement("path",{id:k,d:j})),a.createElement("textPath",{xlinkHref:"#".concat(k)},n))},_1=e=>"cx"in e&&rA(e.cx),z1={angle:0,offset:5,zIndex:kV.label,position:"middle",textBreakAll:!1};function E1(e){var t,n,r,i=hQ(e,z1),s=i.viewBox,o=i.position,l=i.value,c=i.children,d=i.content,u=i.className,m=void 0===u?"":u,p=i.textBreakAll,h=i.labelRef,f=k1(),g=w1();if(!(t=null==s?"center"===o?g:null!==f&&void 0!==f?f:g:_1(s)?s:sI(s))||mA(l)&&mA(c)&&!(0,a.isValidElement)(d)&&"function"!==typeof d)return null;var x=g1(g1({},i),{},{viewBox:t});if((0,a.isValidElement)(d)){x.labelRef;var v=h1(x,m1);return(0,a.cloneElement)(d,v)}if("function"===typeof d){x.content;var b=h1(x,p1);if(n=(0,a.createElement)(d,b),(0,a.isValidElement)(n))return n}else n=(e=>{var t=e.value,n=e.formatter,a=mA(e.children)?t:e.children;return"function"===typeof n?n(a):a})(i);var y=wY(i);if(_1(t)){if("insideStart"===o||"insideEnd"===o||"end"===o)return S1(i,o,n,y,t);r=((e,t,n)=>{var a=e.cx,r=e.cy,i=e.innerRadius,s=e.outerRadius,o=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=vV(a,r,s+t,o),c=l.x;return{x:c,y:l.y,textAnchor:c>=a?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:a,y:r,textAnchor:"middle",verticalAnchor:"end"};var d=vV(a,r,(i+s)/2,o);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}})(t,i.offset,i.position)}else r=((e,t)=>{var n,a=e.parentViewBox,r=e.offset,i=e.position;null==a||_1(a)||(n=a);var s=t.x,o=t.y,l=t.upperWidth,c=t.lowerWidth,d=t.height,u=s,m=s+(l-c)/2,p=(u+m)/2,h=(l+c)/2,f=u+l/2,g=d>=0?1:-1,x=g*r,v=g>0?"end":"start",b=g>0?"start":"end",y=l>=0?1:-1,w=y*r,j=y>0?"end":"start",k=y>0?"start":"end";if("top"===i)return g1(g1({},{x:u+l/2,y:o-x,textAnchor:"middle",verticalAnchor:v}),n?{height:Math.max(o-n.y,0),width:l}:{});if("bottom"===i)return g1(g1({},{x:m+c/2,y:o+d+x,textAnchor:"middle",verticalAnchor:b}),n?{height:Math.max(n.y+n.height-(o+d),0),width:c}:{});if("left"===i){var N={x:p-w,y:o+d/2,textAnchor:j,verticalAnchor:"middle"};return g1(g1({},N),n?{width:Math.max(N.x-n.x,0),height:d}:{})}if("right"===i){var S={x:p+h+w,y:o+d/2,textAnchor:k,verticalAnchor:"middle"};return g1(g1({},S),n?{width:Math.max(n.x+n.width-S.x,0),height:d}:{})}var _=n?{width:h,height:d}:{};return"insideLeft"===i?g1({x:p+w,y:o+d/2,textAnchor:k,verticalAnchor:"middle"},_):"insideRight"===i?g1({x:p+h-w,y:o+d/2,textAnchor:j,verticalAnchor:"middle"},_):"insideTop"===i?g1({x:u+l/2,y:o+x,textAnchor:"middle",verticalAnchor:b},_):"insideBottom"===i?g1({x:m+c/2,y:o+d-x,textAnchor:"middle",verticalAnchor:v},_):"insideTopLeft"===i?g1({x:u+w,y:o+x,textAnchor:k,verticalAnchor:b},_):"insideTopRight"===i?g1({x:u+l-w,y:o+x,textAnchor:j,verticalAnchor:b},_):"insideBottomLeft"===i?g1({x:m+w,y:o+d-x,textAnchor:k,verticalAnchor:v},_):"insideBottomRight"===i?g1({x:m+c-w,y:o+d-x,textAnchor:j,verticalAnchor:v},_):i&&"object"===typeof i&&(rA(i.x)||aA(i.x))&&(rA(i.y)||aA(i.y))?g1({x:s+lA(i.x,h),y:o+lA(i.y,d),textAnchor:"end",verticalAnchor:"end"},_):g1({x:f,y:o+d/2,textAnchor:"middle",verticalAnchor:"middle"},_)})(i,t);return a.createElement(u1,{zIndex:i.zIndex},a.createElement(qX,v1({ref:h,className:Lv("recharts-label",m)},y,r,{textAnchor:RX(y.textAnchor)?y.textAnchor:r.textAnchor,breakAll:p}),n))}E1.displayName="Label";var C1=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return!0===e?a.createElement(E1,v1({key:"label-implicit"},r)):iA(e)?a.createElement(E1,v1({key:"label-implicit",value:e},r)):(0,a.isValidElement)(e)?e.type===E1?(0,a.cloneElement)(e,g1({key:"label-implicit"},r)):a.createElement(E1,v1({key:"label-implicit",content:e},r)):N1(e)?a.createElement(E1,v1({key:"label-implicit",content:e},r)):e&&"object"===typeof e?a.createElement(E1,v1({},e,{key:"label-implicit"},r)):null};function P1(e){var t=e.label,n=e.labelRef,a=w1();return C1(t,a,n)||null}var A1=["valueAccessor"],T1=["dataKey","clockWise","id","textBreakAll","zIndex"];function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},R1.apply(null,arguments)}function O1(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var D1=e=>Array.isArray(e.value)?d1(e.value):e.value,M1=(0,a.createContext)(void 0),I1=M1.Provider,F1=(0,a.createContext)(void 0),L1=F1.Provider;function B1(e){var t=e.valueAccessor,n=void 0===t?D1:t,r=O1(e,A1),i=r.dataKey,s=(r.clockWise,r.id),o=r.textBreakAll,l=r.zIndex,c=O1(r,T1),d=(0,a.useContext)(M1),u=(0,a.useContext)(F1),m=d||u;return m&&m.length?a.createElement(u1,{zIndex:null!==l&&void 0!==l?l:kV.label},a.createElement(o$,{className:"recharts-label-list"},m.map((e,t)=>{var l,d=mA(i)?n(e,t):EM(e&&e.payload,i),u=mA(s)?{}:{id:"".concat(s,"-").concat(t)};return a.createElement(E1,R1({key:"label-".concat(t)},wY(e),c,u,{fill:null!==(l=r.fill)&&void 0!==l?l:e.fill,parentViewBox:e.parentViewBox,value:d,textBreakAll:o,viewBox:e.viewBox,index:t,zIndex:0}))}))):null}function q1(e){var t=e.label;return t?!0===t?a.createElement(B1,{key:"labelList-implicit"}):a.isValidElement(t)||N1(t)?a.createElement(B1,{key:"labelList-implicit",content:t}):"object"===typeof t?a.createElement(B1,R1({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}B1.displayName="LabelList";
2var U1=["key"],V1=["onMouseEnter","onClick","onMouseLeave"],H1=["id"],W1=["id"];function K1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function G1(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K1(Object(n),!0).forEach(function(t){Z1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Z1(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Y1.apply(null,arguments)}function Q1(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $1(e){var t=(0,a.useMemo)(()=>ZX(e.children,UX),[e.children]),n=XD(n=>VQ(n,e.id,t));return null==n?null:a.createElement(a1,{legendPayload:n})}var X1=a.memo(e=>{var t=e.dataKey,n=e.nameKey,r=e.sectors,i=e.stroke,s=e.strokeWidth,o=e.fill,l=e.name,c=e.hide,d=e.tooltipType,u=e.id,m={dataDefinedOnItem:r.map(e=>e.tooltipPayload),positions:r.map(e=>e.tooltipPosition),settings:{stroke:i,strokeWidth:s,fill:o,dataKey:t,nameKey:n,name:qM(l,t),hide:c,type:d,color:o,unit:"",graphicalItemId:u}};return a.createElement(t1,{tooltipEntrySettings:m})}),J1=(e,t)=>e>t?"start":e<t?"end":"middle",e2=(e,t,n)=>{var a=t.top,r=t.left,i=t.width,s=t.height,o=bV(i,s),l=r+lA(e.cx,i,i/2),c=a+lA(e.cy,s,s/2),d=lA(e.innerRadius,o,0),u=((e,t,n)=>lA("function"===typeof t?t(e):t,n,.8*n))(n,e.outerRadius,o);return{cx:l,cy:c,innerRadius:d,outerRadius:u,maxRadius:e.maxRadius||Math.sqrt(i*i+s*s)/2}},t2=(e,t)=>tA(t-e)*Math.min(Math.abs(t-e),360);function n2(e){var t=e.sectors,n=e.props,r=e.showLabels,i=n.label,s=n.labelLine,o=n.dataKey;if(!r||!i||!t)return null;var l=bY(n),c=yY(i),d=yY(s),u="object"===typeof i&&"offsetRadius"in i&&"number"===typeof i.offsetRadius&&i.offsetRadius||20,m=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=vV(e.cx,e.cy,e.outerRadius+u,n),m=G1(G1(G1(G1({},l),e),{},{stroke:"none"},c),{},{index:t,textAnchor:J1(r.x,e.cx)},r),p=G1(G1(G1(G1({},l),e),{},{fill:"none",stroke:e.fill},d),{},{index:t,points:[vV(e.cx,e.cy,e.outerRadius,n),r],key:"line"});return a.createElement(u1,{zIndex:kV.label,key:"label-".concat(e.startAngle,"-").concat(e.endAngle,"-").concat(e.midAngle,"-").concat(t)},a.createElement(o$,null,s&&((e,t)=>{if(a.isValidElement(e))return a.cloneElement(e,t);if("function"===typeof e)return e(t);var n=Lv("recharts-pie-label-line","boolean"!==typeof e?e.className:""),r=(t.key,Q1(t,U1));return a.createElement(rX,Y1({},r,{type:"linear",className:n}))})(s,p),((e,t,n)=>{if(a.isValidElement(e))return a.cloneElement(e,t);var r=n;if("function"===typeof e&&(r=e(t),a.isValidElement(r)))return r;var i,s=Lv("recharts-pie-label-text",(i=e)&&"object"===typeof i&&"className"in i&&"string"===typeof i.className?i.className:"");return a.createElement(qX,Y1({},t,{alignmentBaseline:"middle",className:s}),r)})(i,m,EM(e,o))))});return a.createElement(o$,{className:"recharts-pie-labels"},m)}function a2(e){var t=e.sectors,n=e.props,r=e.showLabels,i=n.label;return"object"===typeof i&&null!=i&&"position"in i?a.createElement(q1,{label:i}):a.createElement(n2,{sectors:t,props:n,showLabels:r})}function r2(e){var t=e.sectors,n=e.activeShape,r=e.inactiveShape,i=e.allOtherPieProps,s=e.shape,o=e.id,l=XD(aG),c=XD(iG),d=XD(sG),u=i.onMouseEnter,m=i.onClick,p=i.onMouseLeave,h=Q1(i,V1),f=((e,t,n)=>{var a=ZD();return(r,i)=>s=>{null===e||void 0===e||e(r,i,s),a(fD({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}})(u,i.dataKey,o),g=(e=>{var t=ZD();return(n,a)=>r=>{null===e||void 0===e||e(n,a,r),t(gD())}})(p),x=((e,t,n)=>{var a=ZD();return(r,i)=>s=>{null===e||void 0===e||e(r,i,s),a(vD({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition,activeGraphicalItemId:n}))}})(m,i.dataKey,o);return null==t||0===t.length?null:a.createElement(a.Fragment,null,t.map((e,u)=>{if(0===(null===e||void 0===e?void 0:e.startAngle)&&0===(null===e||void 0===e?void 0:e.endAngle)&&1!==t.length)return null;var m=null==d||d===o,p=String(u)===l&&(null==c||i.dataKey===c)&&m,v=n&&p?n:l?r:null,b=G1(G1({},e),{},{stroke:e.stroke,tabIndex:-1,[ZM]:u,[YM]:o});return a.createElement(o$,Y1({key:"sector-".concat(null===e||void 0===e?void 0:e.startAngle,"-").concat(null===e||void 0===e?void 0:e.endAngle,"-").concat(e.midAngle,"-").concat(u),tabIndex:-1,
2className:"recharts-pie-sector"},G$(h,e,u),{onMouseEnter:f(e,u),onMouseLeave:g(e,u),onClick:x(e,u)}),a.createElement(J0,Y1({option:null!==s&&void 0!==s?s:v,index:u,shapeType:"sector",isActive:p},b)))}))}function i2(e){var t=e.showLabels,n=e.sectors,r=e.children,i=(0,a.useMemo)(()=>t&&n?n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})):[],[n,t]);return a.createElement(L1,{value:t?i:void 0},r)}function s2(e){var t=e.props,n=e.previousSectorsRef,r=e.id,i=t.sectors,s=t.isAnimationActive,o=t.animationBegin,l=t.animationDuration,c=t.animationEasing,d=t.activeShape,u=t.inactiveShape,m=t.onAnimationStart,p=t.onAnimationEnd,h=NJ(t,"recharts-pie-"),f=n.current,g=Le((0,a.useState)(!1),2),x=g[0],v=g[1],b=(0,a.useCallback)(()=>{"function"===typeof p&&p(),v(!1)},[p]),y=(0,a.useCallback)(()=>{"function"===typeof m&&m(),v(!0)},[m]);return a.createElement(i2,{showLabels:!x,sectors:i},a.createElement(kJ,{animationId:h,begin:o,duration:l,isActive:s,easing:c,onAnimationStart:y,onAnimationEnd:b,key:h},e=>{var s=[],o=i&&i[0],l=null===o||void 0===o?void 0:o.startAngle;return null===i||void 0===i||i.forEach((t,n)=>{var a=f&&f[n],r=n>0?XP(t,"paddingAngle",0):0;if(a){var i=dA(a.endAngle-a.startAngle,t.endAngle-t.startAngle,e),o=G1(G1({},t),{},{startAngle:l+r,endAngle:l+i+r});s.push(o),l=o.endAngle}else{var c=dA(0,t.endAngle-t.startAngle,e),d=G1(G1({},t),{},{startAngle:l+r,endAngle:l+c+r});s.push(d),l=d.endAngle}}),n.current=s,a.createElement(o$,null,a.createElement(r2,{sectors:s,activeShape:d,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),a.createElement(a2,{showLabels:!x,sectors:i,props:t}),t.children)}var o2={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:kV.area};function l2(e){var t=e.id,n=Q1(e,H1),r=e.hide,i=e.className,s=e.rootTabIndex,o=(0,a.useMemo)(()=>ZX(e.children,UX),[e.children]),l=XD(e=>HQ(e,t,o)),c=(0,a.useRef)(null),d=Lv("recharts-pie",i);return r||null==l?(c.current=null,a.createElement(o$,{tabIndex:s,className:d})):a.createElement(u1,{zIndex:e.zIndex},a.createElement(X1,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:l,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),a.createElement(o$,{tabIndex:s,className:d},a.createElement(s2,{props:G1(G1({},n),{},{sectors:l}),previousSectorsRef:c,id:t})))}function c2(e){var t=hQ(e,o2),n=t.id,r=Q1(t,W1),i=bY(r);return a.createElement(s1,{id:n,type:"pie"},e=>a.createElement(a.Fragment,null,a.createElement(c1,{type:"pie",id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),a.createElement($1,Y1({},r,{id:e})),a.createElement(l2,Y1({},r,{id:e}))))}function d2(){return d2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d2.apply(null,arguments)}function u2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function m2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u2(Object(n),!0).forEach(function(t){p2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function p2(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h2(e){return Array.isArray(e)&&iA(e[0])&&iA(e[1])?e.join(" ~ "):e}c2.displayName="Pie";var f2=e=>{var t=e.separator,n=void 0===t?" : ":t,r=e.contentStyle,i=void 0===r?{}:r,s=e.itemStyle,o=void 0===s?{}:s,l=e.labelStyle,c=void 0===l?{}:l,d=e.payload,u=e.formatter,m=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,f=e.label,g=e.labelFormatter,x=e.accessibilityLayer,v=void 0!==x&&x,b=m2({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),y=m2({margin:0},c),w=!mA(f),j=w?f:"",k=Lv("recharts-default-tooltip",p),N=Lv("recharts-tooltip-label",h);w&&g&&void 0!==d&&null!==d&&(j=g(f,d));var S=v?{role:"status","aria-live":"assertive"}:{};return a.createElement("div",d2({className:k,style:b},S),a.createElement("p",{className:N,style:y},a.isValidElement(j)?j:"".concat(j)),(()=>{if(d&&d.length){var e=(m?uM(d,m):d).map((e,t)=>{if("none"===e.type)return null;var r=e.formatter||u||h2,i=e.value,s=e.name,l=i,c=s;if(r){var m=r(i,s,e,t,d);if(Array.isArray(m)){var p=Le(m,2);l=p[0],c=p[1]}else{if(null==m)return null;l=m}}var h=m2({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},o);return a.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(t),style:h},iA(c)?a.createElement("span",{className:"recharts-tooltip-item-name"},c):null,iA(c)?a.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,a.createElement("span",{className:"recharts-tooltip-item-value"},l),a.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return a.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},g2="recharts-tooltip-wrapper",x2={visibility:"hidden"};function v2(e){var t=e.coordinate,n=e.translateX,a=e.translateY;return Lv(g2,{["".concat(g2,"-right")]:rA(n)&&t&&rA(t.x)&&n>=t.x,["".concat(g2,"-left")]:rA(n)&&t&&rA(t.x)&&n<t.x,["".concat(g2,"-bottom")]:rA(a)&&t&&rA(t.y)&&a>=t.y,["".concat(g2,"-top")]:rA(a)&&t&&rA(t.y)&&a<t.y})}
2function b2(e){var t=e.allowEscapeViewBox,n=e.coordinate,a=e.key,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&rA(i[a]))return i[a];var d=n[a]-o-(r>0?r:0),u=n[a]+r;if(t[a])return s[a]?d:u;var m=l[a];return null==m?0:s[a]?d<m?Math.max(u,m):Math.max(d,m):null==c?0:u+o>m+c?Math.max(d,m):Math.max(u,m)}function y2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function w2(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y2(Object(n),!0).forEach(function(t){j2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function j2(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class k2 extends a.PureComponent{constructor(){super(...arguments),j2(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),j2(this,"handleKeyDown",e=>{var t,n,a,r;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(n=this.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==t?t:0,y:null!==(a=null===(r=this.props.coordinate)||void 0===r?void 0:r.y)&&void 0!==a?a:0}})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var e=this.props,t=e.active,n=e.allowEscapeViewBox,r=e.animationDuration,i=e.animationEasing,s=e.children,o=e.coordinate,l=e.hasPayload,c=e.isAnimationActive,d=e.offset,u=e.position,m=e.reverseDirection,p=e.useTranslate3d,h=e.viewBox,f=e.wrapperStyle,g=e.lastBoundingBox,x=e.innerRef,v=e.hasPortalFromProps,b=function(e){var t,n,a=e.allowEscapeViewBox,r=e.coordinate,i=e.offsetTopLeft,s=e.position,o=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,d=e.viewBox;return{cssProperties:l.height>0&&l.width>0&&r?function(e){var t=e.translateX,n=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}({translateX:t=b2({allowEscapeViewBox:a,coordinate:r,key:"x",offsetTopLeft:i,position:s,reverseDirection:o,tooltipDimension:l.width,viewBox:d,viewBoxDimension:d.width}),translateY:n=b2({allowEscapeViewBox:a,coordinate:r,key:"y",offsetTopLeft:i,position:s,reverseDirection:o,tooltipDimension:l.height,viewBox:d,viewBoxDimension:d.height}),useTranslate3d:c}):x2,cssClasses:v2({translateX:t,translateY:n,coordinate:r})}}({allowEscapeViewBox:n,coordinate:o,offsetTopLeft:d,position:u,reverseDirection:m,tooltipBox:{height:g.height,width:g.width},useTranslate3d:p,viewBox:h}),y=b.cssClasses,w=b.cssProperties,j=v?{}:w2(w2({transition:c&&t?"transform ".concat(r,"ms ").concat(i):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&l?"visible":"hidden",position:"absolute",top:0,left:0}),k=w2(w2({},j),{},{visibility:!this.state.dismissed&&t&&l?"visible":"hidden"},f);return a.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:y,style:k,ref:x},s)}}function N2(e){return e}function S2(e){return null==e||"object"!==typeof e&&"function"!==typeof e}function _2(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}
2function z2(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const E2="[object RegExp]",C2="[object String]",P2="[object Number]",A2="[object Boolean]",T2="[object Arguments]",R2="[object Symbol]",O2="[object Date]",D2="[object Map]",M2="[object Set]",I2="[object Array]",F2="[object ArrayBuffer]",L2="[object Object]",B2="[object DataView]",q2="[object Uint8Array]",U2="[object Uint8ClampedArray]",V2="[object Uint16Array]",H2="[object Uint32Array]",W2="[object Int8Array]",K2="[object Int16Array]",G2="[object Int32Array]",Z2="[object Float32Array]",Y2="[object Float64Array]",Q2="object"===typeof globalThis&&globalThis||"object"===typeof window&&window||"object"===typeof self&&self||"object"===typeof n.g&&n.g||function(){return this}();function $2(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;const i=null===r||void 0===r?void 0:r(e,t,n,a);if(void 0!==i)return i;if(S2(e))return e;if(a.has(e))return a.get(e);if(Array.isArray(e)){const t=new Array(e.length);a.set(e,t);for(let i=0;i<e.length;i++)t[i]=$2(e[i],i,n,a,r);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;a.set(e,t);for(const i of e){var s=Le(i,2);const e=s[0],o=s[1];t.set(e,$2(o,e,n,a,r))}return t}if(e instanceof Set){const t=new Set;a.set(e,t);for(const i of e)t.add($2(i,void 0,n,a,r));return t}if(o=e,"undefined"!==typeof Q2.Buffer&&Q2.Buffer.isBuffer(o))return e.subarray();var o;if(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);a.set(e,t);for(let i=0;i<e.length;i++)t[i]=$2(e[i],i,n,a,r);return t}if(e instanceof ArrayBuffer||"undefined"!==typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return a.set(e,t),X2(t,e,n,a,r),t}if("undefined"!==typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return a.set(e,t),X2(t,e,n,a,r),t}if("undefined"!==typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return a.set(e,t),X2(t,e,n,a,r),t}if(e instanceof Error){const t=structuredClone(e);return a.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,X2(t,e,n,a,r),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return a.set(e,t),X2(t,e,n,a,r),t}if(e instanceof Number){const t=new Number(e.valueOf());return a.set(e,t),X2(t,e,n,a,r),t}if(e instanceof String){const t=new String(e.valueOf());return a.set(e,t),X2(t,e,n,a,r),t}if("object"===typeof e&&function(e){switch(z2(e)){case T2:case I2:case F2:case B2:case A2:case O2:case Z2:case Y2:case W2:case K2:case G2:case D2:case P2:case L2:case E2:case M2:case C2:case R2:case q2:case U2:case V2:case H2:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return a.set(e,t),X2(t,e,n,a,r),t}return e}function X2(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0;const i=[...Object.keys(t),..._2(t)];for(let s=0;s<i.length;s++){const o=i[s],l=Object.getOwnPropertyDescriptor(e,o);(null==l||l.writable)&&(e[o]=$2(t[o],o,n,a,r))}}function J2(e,t,n){return"function"!==typeof n?J2(e,t,()=>{}):e5(e,t,function e(t,a,r,i,s,o){const l=n(t,a,r,i,s,o);return void 0!==l?Boolean(l):e5(t,a,e,o)},new Map)}function e5(e,t,n,a){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,n,a){if(null==t)return!0;if(Array.isArray(t))return t5(e,t,n,a);if(t instanceof Map)return function(e,t,n,a){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const i of t.entries()){var r=Le(i,2);const s=r[0],o=r[1];if(!1===n(e.get(s),o,s,e,t,a))return!1}return!0}(e,t,n,a);if(t instanceof Set)return function(e,t,n,a){return 0===t.size||e instanceof Set&&t5([...e],[...t],n,a)}(e,t,n,a);const r=Object.keys(t);if(null==e||S2(e))return 0===r.length;if(0===r.length)return!0;
2if(null!==a&&void 0!==a&&a.has(t))return a.get(t)===e;null===a||void 0===a||a.set(t,e);try{for(let i=0;i<r.length;i++){const s=r[i];if(!S2(e)&&!(s in e))return!1;if(void 0===t[s]&&void 0!==e[s])return!1;if(null===t[s]&&null!==e[s])return!1;if(!n(e[s],t[s],s,e,t,a))return!1}return!0}finally{null===a||void 0===a||a.delete(t)}}(e,t,n,a);case"function":return Object.keys(t).length>0?e5(e,d({},t),n,a):JD(e,t);default:return tM(e)?"string"!==typeof t||""===t:JD(e,t)}}function t5(e,t,n,a){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const r=new Set;for(let i=0;i<t.length;i++){const s=t[i];let o=!1;for(let l=0;l<e.length;l++){if(r.has(l))continue;let c=!1;if(n(e[l],s,i,e,t,a)&&(c=!0),c){r.add(l),o=!0;break}}if(!o)return!1}return!0}function n5(e,t){return J2(e,t,()=>{})}function a5(e){var t;return e=$2(t=e,void 0,t,new Map,void 0),t=>n5(t,e)}function r5(e,t){return function(e,t){return $2(e,void 0,e,new Map,t)}(e,(n,a,r,i)=>{const s=null===t||void 0===t?void 0:t(n,a,r,i);if(void 0!==s)return s;if("object"===typeof e){if("[object Object]"===z2(e)&&"function"!==typeof e.constructor){const t={};return i.set(e,t),X2(t,e,r,i),t}switch(Object.prototype.toString.call(e)){case P2:case C2:case A2:{const t=new e.constructor(null===e||void 0===e?void 0:e.valueOf());return X2(t,e),t}case T2:{const t={};return X2(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function i5(e){return null!==e&&"object"===typeof e&&"[object Arguments]"===z2(e)}function s5(e,t){var n;switch(typeof e){case"object":Object.is(null===(n=e)||void 0===n?void 0:n.valueOf(),-0)&&(e="-0");break;case"number":e=YP(e)}return t=r5(t),function(n){const a=XP(n,e);return void 0===a?function(e,t){let n;if(n=Array.isArray(t)?t:"string"===typeof t&&ZP(t)&&null==(null===e||void 0===e?void 0:e[t])?$P(t):[t],0===n.length)return!1;let a=e;for(let r=0;r<n.length;r++){const e=n[r];if((null==a||!Object.hasOwn(a,e))&&!((Array.isArray(a)||i5(a))&&aM(e)&&e<a.length))return!1;a=a[e]}return!0}(n,e):void 0===t?void 0===a:n5(a,t)}}function o5(e){if(null==e)return N2;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?s5(e[0],e[1]):a5(e);case"string":case"symbol":case"number":return function(e){return function(t){return XP(t,e)}}(e)}}function l5(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N2;return function(e){return function(e){return"object"===typeof e&&null!==e}(e)&&eM(e)}(e)?function(e,t){const n=new Map;for(let a=0;a<e.length;a++){const r=e[a],i=t(r,a,e);n.has(i)||n.set(i,r)}return Array.from(n.values())}(Array.from(e),(n=o5(t),a=1,function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,t.slice(0,a))})):[];var n,a}function c5(e,t,n){return!0===t?l5(e,n):"function"===typeof t?l5(e,t):e}function d5(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=Le((0,a.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,a.useCallback)(e=>{if(null!=e){var t=e.getBoundingClientRect(),a={height:t.height,left:t.left,top:t.top,width:t.width};(Math.abs(a.height-n.height)>1||Math.abs(a.left-n.left)>1||Math.abs(a.top-n.top)>1||Math.abs(a.width-n.width)>1)&&r({height:a.height,left:a.left,top:a.top,width:a.width})}},[n.width,n.height,n.top,n.left,...e]);return[n,i]}var u5=["x","y","top","left","width","height","className"];function m5(){return m5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},m5.apply(null,arguments)}function p5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function h5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f5=(e,t,n,a,r,i)=>"M".concat(e,",").concat(r,"v").concat(a,"M").concat(i,",").concat(t,"h").concat(n),g5=e=>{var t=e.x,n=void 0===t?0:t,r=e.y,i=void 0===r?0:r,s=e.top,o=void 0===s?0:s,l=e.left,c=void 0===l?0:l,d=e.width,u=void 0===d?0:d,m=e.height,p=void 0===m?0:m,h=e.className,f=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,u5),g=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,443 bytes, line 2
2t%2?p5(Object(n),!0).forEach(function(t){h5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:n,y:i,top:o,left:c,width:u,height:p},f);return rA(n)&&rA(i)&&rA(u)&&rA(p)&&rA(o)&&rA(c)?a.createElement("path",m5({},wY(g),{className:Lv("recharts-cross",h),d:f5(n,i,u,p,o,c)})):null};function x5(e){var t=e.cx,n=e.cy,a=e.radius,r=e.startAngle,i=e.endAngle;return{points:[vV(t,n,a,r),vV(t,n,a,i)],cx:t,cy:n,radius:a,startAngle:r,endAngle:i}}function v5(e,t,n){if("horizontal"===e)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if("vertical"===e)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(W$(t)){if("centric"===e){var a=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,o=t.angle,l=vV(a,r,i,o),c=vV(a,r,s,o);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return x5(t)}}function b5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function y5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b5(Object(n),!0).forEach(function(t){w5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function w5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j5=()=>{var e=XD(DH),t=XD(XK),n=XD(YK);return LM(e&&n?y5(y5({},e),{},{scale:n}):void 0,t)};function k5(){return k5=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},k5.apply(null,arguments)}function N5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function S5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N5(Object(n),!0).forEach(function(t){_5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z5(e){var t=e.cursor,n=e.cursorComp,r=e.cursorProps;return(0,a.isValidElement)(t)?(0,a.cloneElement)(t,r):(0,a.createElement)(n,r)}function E5(e){var t,n,r,i,s=e.coordinate,o=e.payload,l=e.index,c=e.offset,d=e.tooltipAxisBandSize,u=e.layout,m=e.cursor,p=e.tooltipEventType,h=e.chartName,f=s,g=o,x=l;if(!m||!f||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)n=f,r=g5,i=kV.cursorLine;else if("BarChart"===h)n=function(e,t,n,a){var r=a/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-r:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-r,width:"horizontal"===e?a:n.width-1,height:"horizontal"===e?n.height-1:a}}(u,f,c,d),r=QJ,i=kV.cursorRectangle;else if("radial"===u&&W$(f)){var v=x5(f),b=v.cx,y=v.cy,w=v.radius;n={cx:b,cy:y,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:w,outerRadius:w},r=x0,i=kV.cursorLine}else n={points:v5(u,f,c)},r=rX,i=kV.cursorLine;var j="object"===typeof m&&"className"in m?m.className:void 0,k=S5(S5(S5(S5({stroke:"#ccc",pointerEvents:"none"},c),n),yY(m)),{},{payload:g,payloadIndex:x,className:Lv("recharts-tooltip-cursor",j)});return a.createElement(u1,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:i}
2,a.createElement(z5,{cursor:m,cursorComp:r,cursorProps:k}))}function C5(e){var t=j5(),n=cI(),r=pI(),i=XD(cV);return null==t||null==n||null==r||null==i?null:a.createElement(E5,k5({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}function P5(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function A5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P5(Object(n),!0).forEach(function(t){T5(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P5(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T5(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R5(e){return e.dataKey}var O5=[],D5={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function M5(e){var t,n,r=hQ(e,D5),i=r.active,s=r.allowEscapeViewBox,o=r.animationDuration,l=r.animationEasing,c=r.content,d=r.filterNull,u=r.isAnimationActive,m=r.offset,p=r.payloadUniqBy,h=r.position,f=r.reverseDirection,g=r.useTranslate3d,x=r.wrapperStyle,v=r.cursor,b=r.shared,y=r.trigger,w=r.defaultIndex,j=r.portal,k=r.axisId,N=ZD(),S="number"===typeof w?String(w):w;(0,a.useEffect)(()=>{N(hD({shared:b,trigger:y,axisId:k,active:i,defaultIndex:S}))},[N,b,y,k,i,S]);var _=oI(),z=pY(),E=function(e){return XD(t=>aK(t,e))}(b),C=null!==(t=XD(e=>EG(e,E,y,S)))&&void 0!==t?t:{},P=C.activeIndex,A=C.isActive,T=XD(e=>zG(e,E,y,S)),R=XD(e=>_G(e,E,y,S)),O=XD(e=>SG(e,E,y,S)),D=T,M=(0,a.useContext)(KY),I=null!==(n=null!==i&&void 0!==i?i:A)&&void 0!==n&&n,F=Le(d5([D,I]),2),L=F[0],B=F[1],q="axis"===E?R:void 0;WY(E,y,O,q,P,I);var U=null!==j&&void 0!==j?j:M;if(null==U||null==_||null==E)return null;var V=null!==D&&void 0!==D?D:O5;I||(V=O5),d&&V.length&&(V=c5(V.filter(e=>null!=e.value&&(!0!==e.hide||r.includeHidden)),p,R5));var H=V.length>0,W=a.createElement(k2,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:u,active:I,coordinate:O,hasPayload:H,offset:m,position:h,reverseDirection:f,useTranslate3d:g,viewBox:_,wrapperStyle:x,lastBoundingBox:L,innerRef:B,hasPortalFromProps:Boolean(j)},function(e,t){return a.isValidElement(e)?a.cloneElement(e,t):"function"===typeof e?a.createElement(e,t):a.createElement(f2,t)}(c,A5(A5({},r),{},{payload:V,label:q,active:I,activeIndex:P,coordinate:O,accessibilityLayer:z})));return a.createElement(a.Fragment,null,(0,Na.createPortal)(W,U),I&&a.createElement(C5,{cursor:v,tooltipEventType:E,coordinate:O,payload:V,index:P}))}const I5=kf("gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]),F5=kf("flame",[["path",{d:"M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z",key:"96xj49"}]]),L5=kf("thumbs-up",[["path",{d:"M7 10v12",key:"1qc93n"}],["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}]]),B5=kf("briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]),q5=kf("smile",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}
2],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]]),U5=kf("trophy",[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]]),V5=kf("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]),H5=kf("timer",[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]]),W5=kf("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),K5=kf("panel-left-open",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]),G5=kf("panel-left-close",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]),Z5=["__scopeHoverCard"],Y5=["forceMount"],Q5=["__scopeHoverCard","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],$5=["__scopeHoverCard"];var X5,J5="HoverCard",e3=Le(Wf(J5,[Ek]),2),t3=e3[0],n3=(e3[1],Ek()),a3=Le(t3(J5),2),r3=a3[0],i3=a3[1],s3=e=>{const t=e.__scopeHoverCard,n=e.children,r=e.open,i=e.defaultOpen,s=e.onOpenChange,o=e.openDelay,l=void 0===o?700:o,c=e.closeDelay,u=void 0===c?300:c,m=n3(t),p=a.useRef(0),h=a.useRef(0),f=a.useRef(!1),g=a.useRef(!1),x=Le(Xf({prop:r,defaultProp:null!==i&&void 0!==i&&i,onChange:s,caller:J5}),2),v=x[0],b=x[1],y=a.useCallback(()=>{clearTimeout(h.current),p.current=window.setTimeout(()=>b(!0),l)},[l,b]),w=a.useCallback(()=>{clearTimeout(p.current),f.current||g.current||(h.current=window.setTimeout(()=>b(!1),u))},[u,b]),j=a.useCallback(()=>b(!1),[b]);return a.useEffect(()=>()=>{clearTimeout(p.current),clearTimeout(h.current)},[]),(0,Te.jsx)(r3,{scope:t,open:v,onOpenChange:b,onOpen:y,onClose:w,onDismiss:j,hasSelectionRef:f,isPointerDownOnContentRef:g,children:(0,Te.jsx)(Kk,d(d({},m),{},{children:n}))})};s3.displayName=J5;var o3="HoverCardTrigger",l3=a.forwardRef((e,t)=>{const n=e.__scopeHoverCard,a=Be(e,Z5),r=i3(o3,n),i=n3(n);return(0,Te.jsx)(Gk,d(d({asChild:!0},i),{},{children:(0,Te.jsx)(lg.a,d(d({"data-state":r.open?"open":"closed"},a),{},{ref:t,onPointerEnter:Lf(e.onPointerEnter,v3(r.onOpen)),onPointerLeave:Lf(e.onPointerLeave,v3(r.onClose)),onFocus:Lf(e.onFocus,r.onOpen),onBlur:Lf(e.onBlur,r.onClose),onTouchStart:Lf(e.onTouchStart,e=>e.preventDefault())}))}))});l3.displayName=o3;var c3="HoverCardPortal",d3=Le(t3(c3,{forceMount:void 0}),2),u3=d3[0],m3=d3[1],p3=e=>{const t=e.__scopeHoverCard,n=e.forceMount,a=e.children,r=e.container,i=i3(c3,t);return(0,Te.jsx)(u3,{scope:t,forceMount:n,children:(0,Te.jsx)(Rg,{present:n||i.open,children:(0,Te.jsx)(Tg,{asChild:!0,container:r,children:a})})})};p3.displayName=c3;var h3="HoverCardContent",f3=a.forwardRef((e,t)=>{const n=m3(h3,e.__scopeHoverCard),a=e.forceMount,r=void 0===a?n.forceMount:a,i=Be(e,Y5),s=i3(h3,e.__scopeHoverCard);return(0,Te.jsx)(Rg,{present:r||s.open,children:(0,Te.jsx)(g3,d(d({"data-state":s.open?"open":"closed"},i),{},{onPointerEnter:Lf(e.onPointerEnter,v3(s.onOpen)),onPointerLeave:Lf(e.onPointerLeave,v3(s.onClose)),ref:t}))})});f3.displayName=h3;var g3=a.forwardRef((e,t)=>{const n=e.__scopeHoverCard,r=e.onEscapeKeyDown,i=e.onPointerDownOutside,s=e.onFocusOutside,o=e.onInteractOutside,l=Be(e,Q5),c=i3(h3,n),u=n3(n),m=a.useRef(null),p=Uf(t,m),h=Le(a.useState(!1),2),f=h[0],g=h[1];return a.useEffect(()=>{if(f){const e=document.body;return X5=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=X5,e.style.webkitUserSelect=X5}}},[f]),a.useEffect(()=>{if(m.current){const e=()=>{g(!1),c.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;""!==(null===(e=document.getSelection())||void 0===e?void 0:e.toString())&&
2(c.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!1}}},[c.isPointerDownOnContentRef,c.hasSelectionRef]),a.useEffect(()=>{if(m.current){(function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(m.current).forEach(e=>e.setAttribute("tabindex","-1"))}}),(0,Te.jsx)(gg,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:o,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:Lf(s,e=>{e.preventDefault()}),onDismiss:c.onDismiss,children:(0,Te.jsx)(Zk,d(d(d({},u),l),{},{onPointerDown:Lf(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&g(!0),c.hasSelectionRef.current=!1,c.isPointerDownOnContentRef.current=!0}),ref:p,style:d(d({},l.style),{},{userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0},{"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"})}))})}),x3=a.forwardRef((e,t)=>{const n=e.__scopeHoverCard,a=Be(e,$5),r=n3(n);return(0,Te.jsx)(Yk,d(d(d({},r),a),{},{ref:t}))});function v3(e){return t=>"touch"===t.pointerType?void 0:e()}x3.displayName="HoverCardArrow";var b3=f3;const y3=["className","align","sideOffset"],w3=s3,j3=l3,k3=a.forwardRef((e,t)=>{let n=e.className,a=e.align,r=void 0===a?"center":a,i=e.sideOffset,s=void 0===i?4:i,o=Be(e,y3);return(0,Te.jsx)(b3,d({ref:t,align:r,sideOffset:s,className:Gb("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",n)},o))});k3.displayName=b3.displayName;const N3="border-l-4 border-zinc-300 bg-zinc-50",S3="#a1a1aa";const _3={positive:N3,negative:N3,neutral:N3},z3={positive:S3,negative:S3,neutral:S3},E3={positive:"positiv",negative:"negativ",neutral:"neutral"},C3=["#DC2626","#F97316","#FDB022","#84CC16","#22C55E"],P3="#22C55E",A3="#DC2626",T3=[{id:"allgemeines",label:"Allgemeines",icon:GS},{id:"persentis",label:"ANALYTICS Score",icon:I5},{id:"bindungskraft",label:"Bindungskraft",icon:O_},{id:"stresslevel",label:"Stresslevel",icon:F5},{id:"enps",label:"eNPS",icon:L5},{id:"attraktivitaet",label:"Attraktivit\xe4t",icon:If},{id:"arbeitgeberangebot",label:"Arbeitgeberangebot",icon:B5},{id:"orientierung",label:"Orientierung",icon:Dy},{id:"engagement-zufriedenheit",label:"Engagement & Zufriedenheit",icon:q5},{id:"erfuellungsgrad",label:"Erf\xfcllungsgrad",icon:jw},{id:"top-argumente",label:"Top-Argumente",icon:U5},{id:"standardfragen",label:"Standardfragen",icon:YS}],R3=T3.map(e=>e.id),O3="#E69735",D3="#009FE3",M3="#D32D7C";function I3(e){let t=e.icon,n=e.label,a=e.value,r=e.testid;return(0,Te.jsxs)("div",{className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 flex items-center gap-3","data-testid":r,children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{size:18,className:"text-primary"})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:n}),(0,Te.jsx)("div",{className:"font-heading text-lg leading-tight text-foreground",children:a})]})]})}function F3(e){let t=e.text,n=e.testid;return t?(0,Te.jsx)("p",{className:"text-sm text-foreground font-bold leading-relaxed","data-testid":n,children:t}):null}function L3(e){let t=e.value,n=e.gesamt;const a=Xa().t;if(null==n||null==t)return null;const r=t-n,i=0===r?a("analytics.delta.equal"):"".concat(Math.abs(r)," ").concat(a(r>0?"analytics.delta.over":"analytics.delta.under"));return(0,Te.jsx)("div",{className:"text-[12px] font-bold text-black text-center mt-1","data-testid":"gesamt-delta",children:i})}function B3(e){let t=e.block,n=e.testid,a=e.enps,r=e.hideDesc;const i=Xa().t;if(!t||null==t.value)return(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:i("common.no_value")});const s=a?(t.value+100)/2:t.value,o=a?"".concat(t.value>0?"+":"").concat(t.value):void 0;return(0,Te.jsxs)("div",{className:"space-y-5","data-testid":"gauge-block-".concat(n),children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Te.jsx)(qS,{value:s,displayValue:o,color:t.color,status:t.zone,segments:t.segments,minLabel:a?"-100":"0",midLabel:a?"0":void 0,maxLabel:"100"}),(0,Te.jsx)(L3,{value:t.value,gesamt:t.gesamt})]}),!r&&(0,Te.jsx)(F3,{text:t.description,testid:"desc-".concat(n)})]})}function q3(e){let t=e.block;const n=Xa().t;if(null==t.value)return null;const a=[{key:"detractors",label:n("analytics.enps.detractors"),abs:t.detractors,pct:t.det_pct},{key:"indifferent",label:n("analytics.enps.indifferent"),abs:t.indifferent,pct:t.ind_pct},{key:"promoters",label:n("analytics.enps.promoters"),abs:t.promoters,pct:t.pro_pct}];return(0,Te.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3","data-testid":"enps-breakdown",children:a.map(e=>(0,Te.jsxs)("div",{className:"rounded-xl border border-border p-3 text-center","data-testid":"enps-".concat(e.key),children:[(0,Te.jsxs)("div",{className:"text-sm font-bold",children:[e.label," / ",e.abs," ",n("analytics.enps.answers_short")]}),(0,Te.jsxs)("div",{className:"mt-1 tabular-nums",style:{fontFamily:"Anton, sans-serif",fontSize:"30px"},children:[e.pct," %"]})]},e.key))})}function U3(e){let t=e.block,n=e.title,a=e.testid;const r=Xa().t,i=((null===t||void 0===t?void 0:t.pie)||[]).filter(e=>null!=e.value),s=i.reduce((e,t)=>
2e+(t.value||0),0)||1,o=i.map(e=>d(d({},e),{},{pct:Math.round(e.value/s*100)}));return(0,Te.jsxs)("div",{className:"space-y-5","data-testid":"donut-block-".concat(a),children:[n&&(0,Te.jsx)("div",{className:"font-heading text-base text-center mb-2",children:n}),(0,Te.jsx)("div",{className:"w-[350px] max-w-full h-[280px] mx-auto","data-testid":"donut-".concat(a),children:o.length>0?(0,Te.jsx)(RA,{width:"100%",height:"100%",children:(0,Te.jsxs)(NQ,{children:[(0,Te.jsxs)(c2,{data:o,dataKey:"value",nameKey:"label",innerRadius:68,outerRadius:120,paddingAngle:4,stroke:"none",isAnimationActive:!1,children:[o.map((e,t)=>(0,Te.jsx)(UX,{fill:e.color},t)),(0,Te.jsx)(B1,{dataKey:"pct",position:"inside",fill:"#ffffff",stroke:"none",fontSize:16,fontWeight:700,formatter:e=>"".concat(e," %")})]}),(0,Te.jsx)(M5,{formatter:(e,t,n)=>{var a;return["".concat(null===n||void 0===n||null===(a=n.payload)||void 0===a?void 0:a.pct,"%"),t]},contentStyle:{background:"var(--gray-03)",border:"none",borderRadius:8,padding:"3px 8px",boxShadow:"0 2px 8px rgba(0,0,0,.2)"},labelStyle:{display:"none"},itemStyle:{color:"#fff",fontSize:11,padding:0}})]})}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:r("common.no_data_short")})}),null!==t&&void 0!==t&&t.summary?(0,Te.jsx)("p",{className:"text-sm leading-relaxed text-left font-bold px-2","data-testid":"donut-summary-".concat(a),children:t.summary}):(0,Te.jsx)(F3,{text:null===t||void 0===t?void 0:t.description,testid:"desc-".concat(a)})]})}const V3={gering:Ef,moderat:V5,kritisch:V5},H3={Arbeitsklima:"https://www.persentis.com/info/inspirations/emotion-arbeitsklima","Loyalit\xe4t & Vertrauen":"https://www.persentis.com/info/inspirations/emotion-loyalitaet-vertrauen",Identifikation:"https://www.persentis.com/info/inspirations/emotion-identifikation",Jobsicherheit:"https://www.persentis.com/info/inspirations/kalkulativ-jobsicherheit",Entlohnung:"https://www.persentis.com/info/inspirations/kalkulativ-entlohnung",Arbeitsbedingungen:"https://www.persentis.com/info/inspirations/kalkulativ-arbeitsbedingungen",Arbeitsinhalt:"https://www.persentis.com/info/inspirations/wachstumsorientiert-arbeitsinhalt",Partizipation:"https://www.persentis.com/info/inspirations/wachstumsorientiert-partizipation",Entwicklungschancen:"https://www.persentis.com/info/inspirations/wachstumsorientiert-entwicklungschancen"},W3={Emotion:{en:"Emotion",fr:"\xc9motion",es:"Emoci\xf3n",it:"Emozione"},Kalkulation:{en:"Calculation",fr:"Calcul",es:"C\xe1lculo",it:"C
2alcolo"},Wachstum:{en:"Growth",fr:"Croissance",es:"Crecimiento",it:"Crescita"},Arbeitsklima:{en:"Work climate",fr:"Climat de travail",es:"Clima laboral",it:"Clima lavorativo"},Identifikation:{en:"Identification",fr:"Identification",es:"Identificaci\xf3n",it:"Identificazione"},"Loyalit\xe4t & Vertrauen":{en:"Loyalty & trust",fr:"Loyaut\xe9 et confiance",es:"Lealtad y confianza",it:"Lealt\xe0 e fiducia"},Arbeitsbedingungen:{en:"Working conditions",fr:"Conditions de travail",es:"Condiciones laborales",it:"Condizioni di lavoro"},Entlohnung:{en:"Compensation",fr:"R\xe9mun\xe9ration",es:"Remuneraci\xf3n",it:"Retribuzione"},Jobsicherheit:{en:"Job security",fr:"S\xe9curit\xe9 de l'emploi",es:"Seguridad laboral",it:"Sicurezza del lavoro"},Arbeitsinhalt:{en:"Job content",fr:"Contenu du travail",es:"Contenido del trabajo",it:"Contenuto del lavoro"},Entwicklungschancen:{en:"Development opportunities",fr:"Perspectives de d\xe9veloppement",es:"Oportunidades de desarrollo",it:"Opportunit\xe0 di sviluppo"},Partizipation:{en:"Participation",fr:"Participation",es:"Participaci\xf3n",it:"Partecipazione"}},K3=(e,t)=>"de"!==t&&e&&W3[e]&&W3[e][t]||e;function G3(e){var t;let n=e.s,a=e.dimColors;const r=Xa(),i=r.t,s=r.lang,o=a[n.dimension]||"hsl(var(--primary))",l=Math.max(0,Math.min(100,n.attraktivitaet||0)),c=Math.max(0,Math.min(100,null!==(t=n.orientierung)&&void 0!==t?t:0)),d=n.level||"gering",u=V3[d]||Ef,m=Le(i("analytics.erf.tooltip").split("{name}"),2),p=m[0],h=Le((m[1]||"").split("{level}"),2),f=h[0],g=h[1];return(0,Te.jsxs)("div",{className:"flex items-center gap-3","data-testid":"erf-sub-".concat(n.name),children:[(0,Te.jsx)("span",{className:"w-40 shrink-0 text-sm text-right text-foreground leading-tight",children:K3(n.name,s)}),(0,Te.jsxs)(w3,{openDelay:80,closeDelay:120,children:[(0,Te.jsx)(j3,{asChild:!0,children:(0,Te.jsxs)("div",{className:"relative flex-1 h-7 rounded bg-[var(--gray-01)] overflow-hidden","data-testid":"erf-bar-".concat(n.name),children:[(0,Te.jsx)("div",{className:"absolute inset-y-0 left-0",style:{width:"".concat(c,"%"),background:"var(--gray-02)"}}),(0,Te.jsx)("div",{className:"absolute inset-y-0 left-0",style:{width:"".concat(l,"%"),background:o}})]})}),(0,Te.jsxs)(k3,{className:"w-80 text-sm leading-relaxed","data-testid":"erf-tooltip-".concat(n.name),children:[p,(0,Te.jsx)("strong",{children:K3(n.name,s).toUpperCase()}),f,(0,Te.jsx)("strong",{children:BS(d,s)}),g," ",n.advice,n.partner_url&&(0,Te.jsxs)(Te.Fragment,{children:[" ",(0,Te.jsx)("a",{href:n.partner_url,target:"_blank",rel:"noreferrer",className:"text-primary font-semibold underline","data-testid":"erf-partner-".concat(n.name),children:"www.persentis.com/partner"})]})]})]}),(0,Te.jsxs)("div",{className:"w-24 shrink-0 flex items-center gap-1.5","data-testid":"erf-status-".concat(n.name),children:[(0,Te.jsx)(u,{size:18,style:{color:n.level_color||"#47A350"}}),H3[n.name]?(0,Te.jsx)("a",{href:H3[n.name],target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[var(--gray-02)] hover:text-primary transition-colors","data-testid":"erf-tipp-link-".concat(n.name),children:i("analytics.erf.tipps")}):(0,Te.jsx)("span",{className:"text-sm font-semibold text-[var(--gray-02)]",children:i("analytics.erf.tipps")})]})]})}function Z3(e){let t=e.subfactors,n=e.dimColors;const a=Xa(),r=a.t,i=a.lang,s={};(t||[]).forEach(e=>{(s[e.dimension]=s[e.dimension]||[]).push(e)});const o=["EMO","KAL","WAC"].filter(e=>s[e]);return(0,Te.jsxs)("div",{"data-testid":"erfuellungsgrad-block",children:[(0,Te.jsx)("div",{className:"flex justify-end mb-2",children:(0,Te.jsx)(e_,{id:"analytics.tip_erfuellungsgrad",label:"Der Erf\xfcllungsgrad vergleicht je Subfaktor das Arbeitgeberangebot (farbig) mit der Orientierung/Wichtigkeit (grau, dahinter). Ragt der graue Balken \xfcber den farbigen hinaus, bleibt das Angebot hinter der Wichtigkeit zur\xfcck \u2013 je gr\xf6\xdfer diese L\xfccke, desto mehr Aufmerksamkeit ben\xf6tigt das Thema.",side:"bottom",children:(0,Te.jsx)("span",{className:"w-6 h-6 rounded-full bg-[#1F2A44] text-white flex items-center justify-center cursor-help","data-testid":"erf-info",children:(0,Te.jsx)(GS,{size:13})})})}),(0,Te.jsxs)("div",{className:"space-y-7",children:[o.map((e,t)=>(0,Te.jsxs)("div",{style:t>0?{paddingTop:15}:void 0,children:[(0,Te.jsx)("div",{className:"font-heading text-sm mb-3",style:{color:n[e]},"data-testid":"erf-dim-".concat(e),children:K3(s[e][0].dimension_label,i)}),(0,Te.jsx)("div",{className:"space-y-3",children:s[e].map(e=>(0,Te.jsx)(G3,{s:e,dimColors:n},e.name))})]},e)),0===o.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:r("common.no_data_available")})]})]})}function Y3(e){let t=e.children,n=e.testid;return(0,Te.jsxs)("div",{className:"rounded-xl border border-dashed border-border bg-muted p-6 flex items-start gap-3 text-sm text-muted-foreground","data-testid":n,children:[(0,Te.jsx)(GS,{size:18,className:"text-muted-foreground shrink-0 mt-0.5"}),(0,Te.jsx)("p",{className:"leading-relaxed",children:t})]})}function Q3(e){let t=e.topArgs,n=e.dimColors;const a=Xa(),r=a.t,i=a.lang;return(0,Te.jsxs)("div",{className:"space-y-3","data-testid":"top-arguments",children:[(t||[]).map((e,t)=>(0,Te.jsxs)("div",{className:"flex gap-3 rounded-xl border border-border p-4","data-testid":"top-arg-".concat(t+1),children:[(0,Te.jsx)("div",{className:"w-8 h-8 rounded-full text-white font-heading flex items-center justify-center shrink-0",style:{background:n[e.dimension]||"hsl(var(--primary))"},children:t+1}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"font-semibold text-xl","data-testid":"top-arg-name-".concat(t+1),children:K3(e.name,i)}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:e.explanation})]})]},e.name)),(!t||0===t.length)&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:r("analytics.no_arguments")})]})}const $3={positive:"border-l-4 border-zinc-300 bg-zinc-50",negative:"border-l-4 border-zinc-300 bg-zinc-50",neutral:"border-l-4 border-zinc-300 bg-zinc-50"},X3={positive:"#a1a1aa",negative:"#a1a1aa",neutral:"#a1a1aa"},J3={positive:"positiv",negative:"negativ",neutral:"neutral"};function e4(e){let t=e.text,n=e.sentiment,a=e.testid;return(0,Te.jsxs)("div",{className:"text-sm text-foreground rounded-lg px-3 py-2 italic inline-flex items-start gap-2 max-w-full align-top ".concat($3[n]),"data-testid":a,"data-sentiment":n,children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full mt-1.5 shrink-0",style:{backgroundColor:X3[n]},title:J3[n]}),(0,Te.jsxs)("span",{className:"min-w-0 break-words",children:["\u201e",t,'"']})]})}function t4(e){let t=e.items,n=e.testid,r=e.defaultOpen,i=void 0!==r&&r;const s=Xa().t,o=Le((0,a.useState)(i),2),l=o[0],c=o[1];(0,a.useEffect)(()=>{c(i)},[i]);const d={positive:s("result.sentiment.positive"),neutral:s("result.sentiment.neutral"),negative:s("result.sentiment.negative")};return t&&0!==t.length?(0,Te.jsxs)("div",{"data-testid":n,children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>c(e=>!e),"data-testid":"".concat(n,"-toggle"),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline",children:[(0,Te.jsx)(xw,{size:16,className:"transition-transform ".concat(l?"rotate-180":"")}),s("analytics.details").replace("{n}",t.length)]}),(0,Te.jsx)(co,{initial:!1,children:l&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:[(0,Te.jsx)("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground mt-3",style:{display:"none"},children:["positive","neutral","negative"].map(e=>(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:X3[e]}})," ",d[e]]},e))}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:t.map((e,t)=>(0,Te.jsx)(e4,{text:e.text,sentiment:e.sentiment,testid:"".concat(n,"-item-").concat(t)},t))})]})})]}):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:s("analytics.no_answers")})}function n4(e){let t=e.token,n=e.itemId,r=e.dept,i=e.answersCount,s=e.enabled,o=e.onResult;const l=Xa(),c=l.t,d=l.lang,u=Le((0,a.useState)(null),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1];return(0,a.useEffect)(()=>{if(!s)return;let e=!0;g(!0);const a=r?"?department_id=".concat(r,"&lang=").concat(d):"?lang=".concat(d);return Ps.get("/analytics/summary/".concat(t,"/").concat(n).concat(a)).then(t=>{var n;const a=(null===(n=t.data)||void 0===n?void 0:n.summary)||null;e&&(p(a),o&&o(!!a))}).catch(()=>{e&&(p(null),o&&o(!1))}).finally(()=>{e&&g(!1)}),()=>{e=!1}},[t,n,r,s,d]),s?(0,Te.jsxs)("div",{className:"mb-3","data-testid":"oq-summary-".concat(n),children:[(0,Te.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,Te.jsx)(If,{size:15,className:"text-primary"})," ",c("analytics.summary_of").replace("{n}",i)]}),f?(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(Of,{size:14,className:"animate-spin"})," ",c("analytics.summary_auto")]}):m?(0,Te.jsx)("div",{className:"text-sm text-foreground rounded-lg px-4 py-3 bg-white border border-primary/20","data-testid":"oq-summary-text-".concat(n),children:m}):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:c("analytics.summary_none")})]}):null}function a4(e){var t,n,r;let i=e.q,s=e.token,o=e.dept,l=e.target;const c=Xa().t,d=i.answers_tr||{},u=(i.answers||[]).map(e=>({text:d[e]||e,sentiment:"neutral"})),m=l||0,p=(null!==(t=i.respondents)&&void 0!==t?t:0)>=10,h=Le((0,a.useState)(null),2),f=h[0],g=h[1],x=!p||!1===f;return(0,Te.jsxs)("div",{className:"rounded-xl border border-border p-4","data-testid":"oq-".concat(i.id),children:[(0,Te.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-3",children:[(0,Te.jsx)("div",{className:"font-semibold text-xl flex-1 min-w-0 break-words","data-testid":"oq-label-".concat(i.id),children:i.label}),(0,Te.jsxs)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},"data-testid":"oq-n-".concat(i.id),children:[m?Math.min(null!==(n=i.respondents)&&void 0!==n?n:0,m):null!==(r=i.respondents)&&void 0!==r?r:0,"/",m]})]}),p?(0,Te.jsx)(n4,{token:s,itemId:i.id,dept:o,answersCount:i.respondents,enabled:!0,onResult:g}):(0,Te.jsxs)("div",{className:"mb-3 flex items-start gap-2 text-xs text-muted-foreground rounded-lg px-3 py-2 bg-muted border border-border","data-testid":"oq-nosummary-".concat(i.id),children:[(0,Te.jsx)(GS,{size:14,className:"shrink-0 mt-0.5"}),(0,Te.jsx)("span",{children:c("result.no_summary_hint")})]}),(0,Te.jsx)(t4,{items:u,testid:"oq-answers-".concat(i.id),defaultOpen:x})]})}function r4(e){var t,n;let a=e.q,r=e.target;const i=Xa().t,s=r||0;return(0,Te.jsxs)("div",{className:"rounded-xl border border-border p-4","data-testid":"sq-gauge-".concat(a.id),children:[(0,Te.jsxs)("div",{className:"mb-3 flex items-start justify-between gap-3",children:[(0,Te.jsx)("div",{className:"font-semibold text-xl flex-1 min-w-0 break-words","data-testid":"sq-gauge-label-".concat(a.id),children:a.label}),(0,Te.jsxs)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},"data-testid":"sq-gauge-n-".concat(a.id),children:[s?Math.min(null!==(t=a.respondents)&&void 0!==t?t:0,s):null!==(n=a.respondents)&&void 0!==n?n:0,"/",s]})]}),null!=a.value?(0,Te.jsx)("div",{className:"flex flex-col items-center",children:(0,Te.jsx)(qS,{value:a.value,color:a.color,status:{red:"Kritisch",orange:"Moderat",green:"Exzellent"}[a.zone]||a.status,segments:a.segments,minLabel:"0",maxLabel:"100"})}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:i("common.no_value")})]})}function i4(e){let t=e.departments,n=e.value,a=e.onChange;const r=Xa().t;if(!t||t.length<=1)return null;const i=(e,t)=>"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(t?"bg-white text-zinc-400 border border-border
2cursor-not-allowed":e?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50");return(0,Te.jsxs)("div",{className:"sticky top-[calc(184px_+_var(--ct-offset))] z-20 bg-background flex flex-wrap items-center gap-2 py-3","data-testid":"analytics-dept-filter",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>a(null),className:i(null==n,!1),"data-testid":"analytics-dept-filter-all",children:r("common.gesamt")}),t.map(e=>{const t=(0,Te.jsxs)("button",{type:"button","aria-disabled":e.locked,onClick:()=>!e.locked&&a(e.id),className:i(n===e.id,e.locked)+" inline-flex items-center gap-1.5","data-testid":"analytics-dept-filter-".concat(e.id),children:[e.locked&&(0,Te.jsx)(kw,{size:13,className:"shrink-0"}),e.name]},e.id);return e.locked?(0,Te.jsx)(e_,{id:"analysis.tip_dept_locked",side:"bottom",label:"Es haben sich zu wenig Mitarbeiter in dieser Abteilung an der Umfrage beteiligt und ist aus Anonymit\xe4tsgr\xfcnden nicht einzusehen. Die abgegebenen Antworten wurden in der Gesamtberechnung ber\xfccksichtigt.",children:t},e.id):t})]})}function s4(e){var t;let n=e.backTo,r=void 0===n?"/analytics/auswertungen":n;const i=ln().token,s=Xa().lang,o=sn(),l=Le(ya(),1)[0],c=Le((0,a.useState)(null),2),d=c[0],u=c[1],m=Le((0,a.useState)(l.get("department_id")||null),2),p=m[0],h=m[1],f=Le((0,a.useState)(!0),2),g=f[0],x=f[1],v=Le((0,a.useState)(null),2),b=v[0],y=v[1],w=Le((0,a.useState)(R3[0]),2),j=w[0],k=w[1],N=Le((0,a.useState)(l.get("department_id")||null),2),S=N[0],_=N[1],z=Le((0,a.useState)(!1),2),E=z[0],C=z[1],P=Is().getText,A=Xa().t,T=Ws().ctMode?60:0,R=(0,a.useRef)({}),O=(0,a.useRef)(!1),D=(0,a.useRef)(null);(0,a.useEffect)(()=>{Ps.get("/analytics/palette").then(e=>y(e.data.config)).catch(()=>{})},[]);const M={EMO:(null===b||void 0===b?void 0:b.emotional)||O3,KAL:(null===b||void 0===b?void 0:b.kalkulativ)||D3,WAC:(null===b||void 0===b?void 0:b.wachstum)||M3};(0,a.useEffect)(()=>{x(!0);const e=S,t=S?"?department_id=".concat(S,"&lang=").concat(s):"?lang=".concat(s);Ps.get("/analytics/survey-analysis/".concat(i).concat(t)).then(t=>{u(t.data),h(e)}).catch(e=>Ia.error(Cs(e))).finally(()=>x(!1))},[i,S,s]);const I=null===d||void 0===d?void 0:d.locked,F=(null===d||void 0===d?void 0:d.special_questions)||[],L=!!S,B=((null===d||void 0===d||null===(t=d.departments)||void 0===t?void 0:t.length)||0)<=1,q=L||B,U=T3,V=F.length?U.flatMap(e=>"standardfragen"===e.id?[e,{id:"spezialfragen",label:"Spezialfragen",icon:q_}]:[e]):U;(0,a.useEffect)(()=>{if(g||I)return;const e=new IntersectionObserver(e=>{if(O.current)return;const t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top);t[0]&&k(t[0].target.dataset.section)},{rootMargin:"-".concat(240+T,"px 0px -55% 0px"),threshold:.01});return V.forEach(t=>{const n=R.current[t.id];n&&e.observe(n)}),()=>e.disconnect()},[g,I,d,T]);const H=null===d||void 0===d?void 0:d.header,W=null===d||void 0===d?void 0:d.meta,K=(null===d||void 0===d?void 0:d.kpis)||{},G=H?H.branch_name||H.firma_name:"",Z=e=>{var t,n,a,r,s,o,l,c,u,m,h,f;switch(e){case"allgemeines":return(0,Te.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"analytics-allgemeines",children:[(0,Te.jsx)(I3,{icon:_f,label:(0,Te.jsx)(cy,{id:"analytics.stat.teilnehmer",as:"span",children:"Teilnehmer"}),testid:"a-stat-teilnehmer",value:"".concat(null!==(t=null===W||void 0===W?void 0:W.responses)&&void 0!==t?t:0,"/").concat(null!==(n=null===W||void 0===W?void 0:W.target)&&void 0!==n?n:0)}),(0,Te.jsx)(I3,{icon:QS,label:(0,Te.jsx)(cy,{id:"analytics.stat.beteiligung",as:"span",children:"Beteiligung"}),testid:"a-stat-beteiligung",value:null!=(null===W||void 0===W?void 0:W.rate)?"".concat(W.rate,"%"):"\u2014"}),(0,Te.jsx)(I3,{icon:H5,label:(0,Te.jsx)(cy,{id:"analytics.stat.laufzeit",as:"span",children:"Laufzeit"}),testid:"a-stat-laufzeit",value:null!=(null===W||void 0===W?void 0:W.duration_days)?"".concat(W.duration_days," ").concat(A("common.days")):"\u2014"}),(0,Te.jsx)(I3,{icon:W5,label:(0,Te.jsx)(cy,{id:"analytics.stat.abgeschlossen",as:"span",children:"Abgeschlossen"}),testid:"a-stat-abgeschlossen",value:(f=null===W||void 0===W?void 0:W.completed_at,f?new Date(f).toLocaleDateString("de-DE"):"\u2014")}
2),(0,Te.jsx)(I3,{icon:q_,label:(0,Te.jsx)(cy,{id:"analytics.stat.personal",as:"span",children:"Pers\xf6nliche Antworten"}),testid:"a-stat-personal",value:null!==(a=null===W||void 0===W?void 0:W.personal_answers_total)&&void 0!==a?a:0})]});case"persentis":return(0,Te.jsx)(B3,{block:K.persentis,testid:"persentis"});case"bindungskraft":return(0,Te.jsx)(B3,{block:K.bindungskraft,testid:"bindungskraft"});case"stresslevel":return(0,Te.jsx)(B3,{block:K.stress,testid:"stresslevel"});case"enps":return(0,Te.jsxs)("div",{className:"space-y-5","data-testid":"analytics-enps",children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Te.jsx)(qS,{value:null!=(null===(r=K.enps)||void 0===r?void 0:r.value)?(K.enps.value+100)/2:null,displayValue:null!=(null===(s=K.enps)||void 0===s?void 0:s.value)?"".concat(K.enps.value>0?"+":"").concat(K.enps.value):void 0,color:null===(o=K.enps)||void 0===o?void 0:o.color,status:null===(l=K.enps)||void 0===l?void 0:l.zone,segments:null===(c=K.enps)||void 0===c?void 0:c.segments,minLabel:"-100",midLabel:"0",maxLabel:"100"}),(0,Te.jsx)(L3,{value:null===(u=K.enps)||void 0===u?void 0:u.value,gesamt:null===(m=K.enps)||void 0===m?void 0:m.gesamt})]}),(0,Te.jsx)(q3,{block:K.enps||{}}),(0,Te.jsx)(F3,{text:null===(h=K.enps)||void 0===h?void 0:h.description,testid:"desc-enps"})]});case"attraktivitaet":return(0,Te.jsx)(B3,{block:K.attraktivitaet,testid:"attraktivitaet"});case"arbeitgeberangebot":return(0,Te.jsx)("div",{"data-testid":"analytics-arbeitgeberangebot",children:(0,Te.jsx)(U3,{block:K.arbeitgeberangebot,testid:"arbeitgeberangebot"})});case"orientierung":return(0,Te.jsx)("div",{"data-testid":"analytics-orientierung",children:(0,Te.jsx)(U3,{block:K.orientierung,testid:"orientierung"})});case"engagement-zufriedenheit":return(0,Te.jsxs)("div",{"data-testid":"analytics-engagement-zufriedenheit",children:[(0,Te.jsxs)("div",{className:"grid gap-8 md:grid-cols-2 mt-[15px]",children:[(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"ez-engagement",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-center",children:(0,Te.jsx)(cy,{id:"analytics.ez.engagement_label",as:"span",children:"Engagement"})}),K.engagement&&null!=K.engagement.value?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center -mt-[15px]",children:[(0,Te.jsx)(qS,{value:K.engagement.value,color:K.engagement.color,status:K.engagement.zone,segments:K.engagement.segments,minLabel:"0",maxLabel:"100"}),(0,Te.jsx)(L3,{value:K.engagement.value,gesamt:K.engagement.gesamt})]}),(0,Te.jsx)(F3,{text:K.engagement.description,testid:"desc-ez-engagement"})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground text-center",children:A("common.no_value")})]}),(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"ez-zufriedenheit",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-center",children:(0,Te.jsx)(cy,{id:"analytics.ez.zufriedenheit_label",as:"span",children:"Zufriedenheit"})}),K.zufriedenheit&&null!=K.zufriedenheit.value?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex flex-col items-center -mt-[15px]",children:[(0,Te.jsx)(qS,{value:K.zufriedenheit.value,color:K.zufriedenheit.color,status:K.zufriedenheit.zone,segments:K.zufriedenheit.segments,minLabel:"0",maxLabel:"100"}),(0,Te.jsx)(L3,{value:K.zufriedenheit.value,gesamt:K.zufriedenheit.gesamt})]}),(0,Te.jsx)(F3,{text:K.zufriedenheit.description,testid:"desc-ez-zufriedenheit"})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground text-center",children:A("common.no_value")})]})]}),(0,Te.jsxs)("div",{className:"mt-8 pt-6 border-t border-border",children:[(0,Te.jsx)("h3",{className:"font-heading text-xl mb-3",children:(0,Te.jsx)(cy,{id:"analytics.ez.compare_heading",as:"span",children:"Engagement VS Zufriedenheit"})}),(0,Te.jsx)("p",{className:"text-sm text-foreground font-bold leading-relaxed","data-testid":"ez-comparison-text",children:(null===d||void 0===d?void 0:d.ez_comparison)||A("analytics.ez.no_compare")})]})]});case"erfuellungsgrad":return q?(0,Te.jsx)(Z3,{subfactors:null===d||void 0===d?void 0:d.subfactors,dimColors:M}):(0,Te.jsx)(Y3,{testid:"erfuellungsgrad-hint",children:(0,Te.jsx)(cy,{id:"analytics.hint.erfuellungsgrad",as:"span",children:"W\xe4hlen Sie im Filter die gew\xfcnschte Abteilung aus, um den ERF\xdcLLUNGSGRAD einsehen zu k\xf6nnen. F\xfcr den Gesamtbereich gibt es dazu keine Werte."})});case"top-argumente":return q?(0,Te.jsx)(Q3,{topArgs:null===d||void 0===d?void 0:d.top_arguments,dimColors:M}):(0,Te.jsx)(Y3,{testid:"top-argumente-hint",children:(0,Te.jsx)(cy,{id:"analytics.hint.topargumente",as:"span",children:"W\xe4hlen Sie im Filter die gew\xfcnschte Abteilung aus, um die TOP ARGUMENTE einsehen zu k\xf6nnen. F\xfcr den Gesamtbereich gibt es dazu keine Werte."})});case"standardfragen":return(0,Te.jsxs)("div",{className:"space-y-8","data-testid":"analytics-standardfragen",children:[((null===d||void 0===d?void 0:d.open_questions)||[]).map(e=>(0,Te.jsx)(a4,{q:e,token:i,dept:p,target:null===W||void 0===W?void 0:W.target},"".concat(e.id,"-").concat(p||"all"))),(!(null!==d&&void 0!==d&&d.open_questions)||0===d.open_questions.length)&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:A("analytics.no_standard")})]});case"spezialfragen":return(0,Te.jsxs)("div",{className:"space-y-8","data-testid":"analytics-spezialfragen",children:[((null===d||void 0===d?void 0:d.special_questions)||[]).map(e=>"gauge"===e.kind?(0,Te.jsx)(r4,{q:e,target:null===W||void 0===W?void 0:W.target},"".concat(e.id,"-").concat(p||"all")):(0,Te.jsx)(a4,{q:e,token:i,dept:p,target:null===W||void 0===W?void 0:W.target},"".concat(e.id,"-").concat(p||"all"))),(!(null!==d&&void 0!==d&&d.special_questions)||0===d.special_questions.length)&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:A("analytics.no_special")})]});default:return null}},Y=e=>(0,Te.jsx)("section",{ref:t=>R.current[e.id]=t,"data-section":e.id,"data-testid":"analytics-section-".concat(e.id),className:"scroll-mt-[calc(210
2px_+_var(--ct-offset))] h-full",children:(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-6 h-full",children:[(0,Te.jsx)("div",{className:"mb-5 pb-2 border-b border-border",children:(0,Te.jsx)("h2",{className:"font-heading text-2xl leading-none",children:"persentis"===e.id?(0,Te.jsx)(cy,{id:"analytics.score.label",as:"span",children:"ANALYTICS Score"}):(0,Te.jsx)(cy,{id:"analytics.menu.".concat(e.id),as:"span",children:e.label})})}),Z(e.id)]})});return(0,Te.jsx)("div",{"data-testid":"analytics-analysis-page",children:g&&!d?(0,Te.jsxs)("div",{className:"flex flex-col items-center justify-center py-24 text-center","data-testid":"analytics-loading",children:[(0,Te.jsx)(Of,{size:40,className:"animate-spin text-primary mb-4"}),(0,Te.jsx)("p",{className:"font-heading text-lg",children:A("common.loading")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1 max-w-sm",children:A("analytics.loading_hint")})]}):I?(0,Te.jsxs)("div",{"data-testid":"analytics-analysis-locked-view",children:[(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-30 bg-background pt-[30px] pb-4 mb-4",children:[(0,Te.jsxs)("button",{onClick:()=>o(r),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"analytics-analysis-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)(cy,{id:"analytics.back_to_results",as:"span",children:"Zur\xfcck zu den Ergebnissen"})]}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl truncate leading-tight","data-testid":"analytics-analysis-headline",children:G}),(0,Te.jsx)("p",{className:"text-sm font-semibold text-primary truncate","data-testid":"analytics-analysis-subline",children:(null===H||void 0===H?void 0:H.label)||A("common.survey")})]})]}),(0,Te.jsx)(i4,{departments:null===d||void 0===d?void 0:d.departments,value:S,onChange:_}),(0,Te.jsxs)(by,{className:"p-5 flex items-center gap-3 mt-2","data-testid":"analytics-anon-inline",children:[(0,Te.jsx)(kw,{size:18,className:"text-amber-600 shrink-0"}),(0,Te.jsxs)("span",{className:"text-sm text-muted-foreground",children:[A("analytics.anon_inline.p1"),(0,Te.jsx)("strong",{children:d.anon_min}),A("analytics.anon_inline.p2"),(0,Te.jsx)("strong",{children:d.anon_min}),A("analytics.anon_inline.p3")]})]})]}):(0,Te.jsxs)("div",{className:"flex gap-6 items-start",children:[(0,Te.jsxs)(by,{className:"".concat(E?"w-[64px]":"w-[280px]"," shrink-0 sticky top-[calc(72px_+_var(--ct-offset))] max-h-[calc(100vh_-_92px_-_var(--ct-offset))] overflow-y-auto p-3 transition-[width] duration-200"),"data-testid":"analytics-analysis-nav",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>C(e=>!e),"data-testid":"analytics-nav-collapse-toggle",title:A(E?"analytics.nav.expand":"analytics.nav.collapse"),className:"flex items-center ".concat(E?"justify-center":"justify-end"," w-full text-muted-foreground hover:text-primary transition-colors mb-2 p-1"),children:E?(0,Te.jsx)(K5,{size:18}):(0,Te.jsx)(G5,{size:18})}),V.map(e=>{const t=e.icon;return(0,Te.jsxs)("button",{type:"button",onClick:()=>(e=>{const t=R.current[e];if(!t)return;k(e),O.current=!0,D.current&&clearTimeout(D.current),D.current=setTimeout(()=>{O.current=!1},900);const n=document.querySelector('[data-testid="analytics-dept-filter"]'),a=document.querySelector('[data-testid="analytics-analysis-header"]'),r=Math.max((null===n||void 0===n?void 0:n.getBoundingClientRect().bottom)||0,(null===a||void 0===a?void 0:a.getBoundingClientRect().bottom)||0),i=(r>0?r:200+T)+12,s=t.getBoundingClientRect().top+window.scrollY-i;window.scrollTo(0,Math.max(0,s))})(e.id),"data-testid":"analytics-nav-".concat(e.id),title:E?e.label:void 0,style:E&&j===e.id?{backgroundColor:"var(--gray-02)"}:void 0,className:"w-full flex items-center gap-2 text-left font-heading text-sm ".concat(E?"justify-center px-0":"px-2"," py-2 rounded-md cursor-pointer hover:bg-zinc-100 mb-1 ").concat(j===e.id?E?"":"text-primary bg-primary/5":"text-foreground"),children:[(0,Te.jsx)(t,{size:16,className:"shrink-0 ".concat(E&&j===e.id?"text-white":"text-primary")}),!E&&(0,Te.jsx)("span",{className:"min-w-0",children:"persentis"===e.id?P("analytics.score.label",A("analytics.score.label")):A("analytics.menu.".concat(e.id))})]},e.id)})]}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0 relative",children:[g&&(0,Te.jsx)("div",{className:"absolute inset-0 z-40 flex items-start justify-center pt-32 bg-background/60 backdrop-blur-[1px] pointer-events-none","data-testid":"analytics-refetch-overlay",children:(0,Te.jsxs)("div",{className:"flex items-center gap-2 rounded-full bg-white border border-border shadow px-4 py-2 text-sm",children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin text-primary"})," ",A("common.loading")]})}),(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-30 bg-background pt-[30px] pb-4 mb-6","data-testid":"analytics-analysis-header",children:[(0,Te.jsxs)("button",{onClick:()=>o(r),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"analytics-analysis-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)(cy,{id:"analytics.back_to_results",as:"span",children:"Zur\xfcck zu den Ergebnissen"})]}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl truncate leading-tight","data-testid":"analytics-analysis-headline",children:G}),(0,Te.jsx)("p",{className:"text-sm font-semibold text-primary truncate","data-testid":"analytics-analysis-subline",children:(null===H||void 0===H?void 0:H.label)||A("common.survey")})]})]}),(0,Te.jsx)("div",{className:"space-y-10",children:V.map(e=>{if("orientierung"===e.id)return null;if("arbeitgeberangebot"===e.id){const t=V.find(e=>"orientierung"===e.id);return(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-stretch","data-testid":"analytics-pair-arbeitgeber-orientierung",children:[Y(e),t&&Y(t)]},"arbeitgeberangebot-orientierung")}return(0,Te.jsxs)(a.Fragment,{children:["persentis"===e.id&&(0,Te.jsx)(i4,{departments:null===d||void 0===d?void 0:d.departments,value:S,onChange:_}
2),Y(e)]},e.id)})})]})]})})}function o4(){return(0,Te.jsx)("div",{"data-testid":"transfer-import-detail",children:(0,Te.jsx)(s4,{backTo:"/admin/transfer-import"})})}const l4=e=>null===e||void 0===e||""===e?"\u2014":String(e);function c4(e){var t;let n=e.title,a=e.g,r=e.displayValue,i=e.minLabel,s=e.midLabel,o=e.maxLabel,l=e.size,c=void 0===l?150:l,d=e.testid;return(0,Te.jsxs)("div",{className:"flex flex-col items-center text-center","data-testid":d,children:[(0,Te.jsx)("div",{className:"text-xs font-semibold mb-1 min-h-[2.2em] flex items-center justify-center px-1",children:n}),(0,Te.jsx)(qS,{value:null!==(t=null===a||void 0===a?void 0:a.value)&&void 0!==t?t:null,displayValue:r,color:null===a||void 0===a?void 0:a.color,status:null===a||void 0===a?void 0:a.status,segments:null===a||void 0===a?void 0:a.segments,size:c,minLabel:i,midLabel:s,maxLabel:o})]})}function d4(e){var t,n,a,r;let i=e.item,s=e.onPdf;const o=null===(t=i.enps)||void 0===t?void 0:t.display,l=i.is_total?"total":i.department_id;return(0,Te.jsxs)(by,{className:"p-6 mb-5","data-testid":"import-section-".concat(l),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-4 flex-wrap gap-2",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[i.is_total?(0,Te.jsx)(Sf,{size:18,className:"text-primary"}):(0,Te.jsx)(_f,{size:18,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:i.name})]}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground flex items-center gap-3",children:[(0,Te.jsxs)("span",{children:["Mitarbeiter: ",(0,Te.jsx)("b",{children:l4(i.headcount)})]}),(0,Te.jsxs)("span",{children:["Teilnahmen: ",(0,Te.jsx)("b",{children:l4(i.participants)})]})]})]}),i.locked?(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-sm text-muted-foreground bg-[#FAFAFA] rounded-md p-4","data-testid":"import-locked-".concat(l),children:[(0,Te.jsx)(kw,{size:16,className:"shrink-0"}),(0,Te.jsx)("span",{children:"Anonymit\xe4t nicht gew\xe4hrleistet (weniger als 5 Mitarbeitende/Teilnahmen) \u2013 Ergebnisse werden nicht angezeigt."})]}):(0,Te.jsxs)(Te.Fragment,{children:[(i.kpis||[]).length>0&&(0,Te.jsxs)("div",{className:"mb-6",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-3",children:"Kennzahlen"}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-6 justify-start",children:i.kpis.map(e=>(0,Te.jsx)(c4,{title:e.label,g:e,testid:"import-kpi-".concat(e.label)},e.label))})]}),i.enps&&(0,Te.jsxs)("div",{className:"mb-6",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-3",children:"eNPS"}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-8 items-center",children:[(0,Te.jsx)(c4,{title:"eNPS-Score",g:i.enps,displayValue:o,minLabel:"\u2212100",midLabel:"0",maxLabel:"+100",size:170,testid:"import-enps-gauge"}),(0,Te.jsxs)("div",{className:"text-sm space-y-1",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-[#00B050]"})," Promotoren: ",(0,Te.jsx)("b",{children:l4(null===(n=i.enps.counts)||void 0===n?void 0:n.promotoren)})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-[#FFC000]"})," Indifferente: ",(0,Te.jsx)("b",{children:l4(null===(a=i.enps.counts)||void 0===a?void 0:a.indifferente)})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"inline-block w-3 h-3 rounded-full bg-[#FF0000]"})," Detraktoren: ",(0,Te.jsx)("b",{children:l4(null===(r=i.enps.counts)||void 0===r?void 0:r.detraktoren)})]})]})]})]}),(i.sonderfragen||[]).length>0&&(0,Te.jsxs)("div",{className:"mb-2",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-3",children:"Sonderfragen"}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-6",children:i.sonderfragen.map((e,t)=>(0,Te.jsx)(c4,{title:e.question,g:e,testid:"import-sonder-".concat(t)},t))})]})]}),(i.open_answers||[]).length>0&&(0,Te.jsxs)("div",{className:"mt-4 pt-4 border-t",children:[(0,Te.jsxs)("div",{className:"text-xs font-semibold uppercase text-muted-foreground mb-3",children:["Offene Antworten (",i.open_answers.length,")"]}),(0,Te.jsx)("div",{className:"flex flex-col gap-2",children:i.open_answers.map((e,t)=>(0,Te.jsx)("div",{className:"text-sm bg-[#FAFAFA] border-l-4 border-zinc-300 rounded px-3 py-2","data-testid":"import-open-answer-".concat(t),children:e},t))})]}),(i.pdfs||[]).length>0&&(0,Te.jsx)("div",{className:"mt-4 pt-4 border-t flex flex-wrap gap-4",children:i.pdfs.map(e=>(0,Te.jsxs)("button",{onClick:()=>s(e.id),className:"inline-flex items-center gap-2 text-sm text-primary hover:underline","data-testid":"import-pdf-link-".concat(e.id),children:[(0,Te.jsx)(pS,{size:15})," ","zusatz"===e.category?"Offene Zusatzfragen":"Offene Antworten",": ",e.filename||"\xf6ffnen"]}
2,e.id))})]})}function u4(e){var t;let n=e.fetchPath,r=e.pdfBase;const i=Xa().lang,s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=Le((0,a.useState)(!0),2),d=c[0],u=c[1];(0,a.useEffect)(()=>{let e=!0;u(!0);const t=n.includes("?")?"&":"?";return Ps.get("".concat(n).concat(t,"lang=").concat(encodeURIComponent(i||"de"))).then(t=>{e&&l(t.data)}).catch(e=>Ia.error(Cs(e))).finally(()=>{e&&u(!1)}),()=>{e=!1}},[n,i]);const m=async e=>{try{const t=await Ps.get("".concat(r,"/").concat(o.token,"/pdf/").concat(e),{responseType:"blob"}),n=window.URL.createObjectURL(new Blob([t.data],{type:"application/pdf"}));window.open(n,"_blank"),setTimeout(()=>window.URL.revokeObjectURL(n),6e4)}catch(rse){Ia.error(Cs(rse))}};return d?(0,Te.jsx)("div",{className:"p-8 flex justify-center",children:(0,Te.jsx)(Of,{className:"animate-spin"})}):o?(0,Te.jsxs)("div",{"data-testid":"import-result-view",translate:"no",children:[(0,Te.jsxs)("div",{className:"mb-5",children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl",children:o.label||"Importierte Umfrage"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground",children:[o.firma_name," \xb7 ",o.branch_name,null!==(t=o.meta)&&void 0!==t&&t.start_date?" \xb7 Start ".concat(o.meta.start_date):""]})]}),o.total&&(0,Te.jsx)(d4,{item:o.total,onPdf:m}),(o.departments||[]).map(e=>(0,Te.jsx)(d4,{item:e,onPdf:m},e.department_id||e.name))]}):(0,Te.jsx)("div",{className:"p-8 text-sm text-muted-foreground",children:"Keine Daten."})}const m4=kf("calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);function p4(){const e=ln().token,t=sn(),n=Le((0,a.useState)([]),2),r=n[0],i=n[1],s=Le((0,a.useState)(!0),2),o=s[0],l=s[1];return(0,a.useEffect)(()=>{e||(l(!0),Ps.get("/import/history").then(e=>i(e.data||[])).catch(e=>Ia.error(Cs(e))).finally(()=>l(!1)))},[e]),e?(0,Te.jsxs)("div",{"data-testid":"import-history-detail",translate:"no",children:[(0,Te.jsxs)("button",{onClick:()=>t("/historie"),className:"inline-flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground mb-4","data-testid":"import-history-back",children:[(0,Te.jsx)(aS,{size:15})," Zur\xfcck zur \xdcbersicht"]}),(0,Te.jsx)(u4,{fetchPath:"/import/history/".concat(e,"/view"),pdfBase:"/import/history"})]}):(0,Te.jsxs)("div",{"data-testid":"import-history-page",translate:"no",children:[(0,Te.jsx)(ky,{title:"Historie",subtitle:"Ergebnisse fr\xfcherer Mitarbeiterbefragungen, die aus einem Vorsystem \xfcbernommen wurden."}),o?(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:"Wird geladen\u2026"}):0===r.length?(0,Te.jsxs)(by,{className:"p-8 text-center","data-testid":"import-history-empty",children:[(0,Te.jsx)(Ew,{size:32,className:"mx-auto text-muted-foreground mb-3"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:"Es liegen noch keine historischen Umfragen vor."})]}):(0,Te.jsx)("div",{className:"space-y-3",children:r.map(e=>{return(0,Te.jsxs)(by,{className:"p-5 flex items-center justify-between cursor-pointer hover:shadow-md transition-shadow",onClick:()=>t("/historie/".concat(e.token)),"data-testid":"import-history-row-".concat(e.token),children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"font-heading text-base",children:e.label||"Historische Umfrage"}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground flex items-center gap-3 mt-1",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)(m4,{size:12})," ",(n=e.start_date,null===n||void 0===n||""===n?"\u2014":String(n))]}),(0,Te.jsx)("span",{children:e.branch_name}),(0,Te.jsxs)("span",{children:[e.department_count," Abteilungen"]})]})]}),(0,Te.jsx)(Df,{size:18,className:"text-muted-foreground"})]},e.token);var n})})]})}const h4=kf("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]),f4=kf("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),g4=[["full","Vollzugriff"],["administration","Administration"],["neuerungen","Neuerungen"],["parameter","Parameter"],["texte","Texte"],["demo","Demo"],["inhalts_sync","Inhalts-Sync"],["aktivitaeten","Aktivit\xe4ten"],["clickthrough","Guide"],["billing","Abrechnung"]],x4=[["","\u2014"],["view","Ansehen"],["edit","Bearbeiten"]];function v4(e){let t=e.value,n=e.disabled,a=e.onChange,r=e.testidBase;return(0,Te.jsx)("div",{className:"inline-flex rounded-md border border-border overflow-hidden","data-testid":r,children:x4.map(e=>{let i=Le(e,2),s=i[0],o=i[1];return(0,Te.jsx)("button",{type:"button",disabled:n,onClick:()=>a(s),"data-testid":"".concat(r,"-").concat(s||"none"),className:"px-2.5 py-1 text-xs font-medium transition-colors ".concat(t===s?"bg-primary text-white":"bg-white text-muted-foreground hover:bg-zinc-50"," ").concat(n?"opacity-40 cursor-not-allowed":"cursor-pointer"),children:o},s||"none")})})}function b4(e){let t=e.value;const n=Le((0,a.useState)(!1),2),r=n[0],i=n[1],s=Le((0,a.useState)(!1),2),o=s[0],l=s[1];return(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"font-mono text-sm tabular-nums","data-testid":"subadmin-password",children:r?t:"\u2022".repeat(Math.min(16,(t||"").length||8))}),(0,Te.jsx)("button",{onClick:()=>i(e=>!e),"data-testid":"subadmin-password-toggle",className:"text-muted-foreground hover:text-primary transition-colors",title:r?"Verbergen":"Anzeigen",children:r?(0,Te.jsx)(h4,{size:15}):(0,Te.jsx)(tS,{size:15})}),(0,Te.jsx)("button",{onClick:async()=>{const e=t||"";if(e){try{if(!navigator.clipboard||!window.isSecureContext)throw new Error("clipboard-api-unavailable");await navigator.clipboard.writeText(e)}catch(rse){try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",document.body.appendChild(t),t.focu
2s(),t.select();const n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("execCommand-failed")}catch(AI){return void Ia.error("Kopieren nicht m\xf6glich. Bitte Passwort manuell markieren und kopieren.")}}l(!0),i(!0),setTimeout(()=>l(!1),1500),Ia.success("Passwort kopiert.")}},"data-testid":"subadmin-password-copy",className:"text-muted-foreground hover:text-primary transition-colors",title:"Kopieren",children:o?(0,Te.jsx)(Cf,{size:15,className:"text-green-600"}):(0,Te.jsx)(cC,{size:15})})]})}function y4(e){let t=e.u,n=e.busy,a=e.onSet;const r=t.permissions||{},i=r.full||"";return(0,Te.jsx)("div",{className:"flex flex-col gap-2","data-testid":"subadmin-perms-".concat(t.id),children:g4.map(e=>{let s=Le(e,2),o=s[0],l=s[1];const c="full"===o,d=c?i:i||r[o]||"",u=n||!c&&!!i;return(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("span",{className:"text-sm ".concat(c?"font-semibold":""," ").concat(u&&!c?"opacity-40":""),children:l}),(0,Te.jsx)(v4,{value:d,disabled:u,onChange:e=>a(o,e),testidBase:"subadmin-perm-".concat(o,"-").concat(t.id)})]},o)})})}function w4(e){let t=e.u,n=e.onChanged;const r=Le((0,a.useState)(!1),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1],x=async(e,a)=>{s(!0);try{await Ps.patch("/admin/sub-admins/".concat(t.id),e),a&&Ia.success(a),n()}catch(rse){Ia.error(Cs(rse))}s(!1)};return(0,Te.jsxs)("tr",{className:"border-t border-border align-top","data-testid":"subadmin-row-".concat(t.id),children:[(0,Te.jsxs)("td",{className:"py-4 px-4",children:[(0,Te.jsx)("div",{className:"font-semibold","data-testid":"subadmin-name",children:t.name}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"subadmin-email",children:t.email}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground mt-1",children:["Erstellt ",(v=t.created_at,v?new Date(v).toLocaleDateString("de-DE"):"\u2014")]})]}),(0,Te.jsxs)("td",{className:"py-4 px-4",children:[l?(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)("input",{value:m,onChange:e=>p(e.target.value),"data-testid":"subadmin-password-input",className:"h-8 px-2 rounded-md border border-border text-sm w-40",placeholder:"Neues Passwort"}),(0,Te.jsx)("button",{onClick:async()=>{m.trim().length<6?Ia.error("Passwort muss mindestens 6 Zeichen haben."):(await x({password:m.trim()},"Passwort ge\xe4ndert"),c(!1),p(""))},disabled:i,"data-testid":"subadmin-password-save",className:"text-primary hover:underline text-sm font-semibold",children:(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})}),(0,Te.jsx)("button",{onClick:()=>{c(!1),p("")},className:"text-muted-foreground text-sm",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})})]}):(0,Te.jsxs)("div",{className:"inline-flex items-center gap-3",children:[(0,Te.jsx)(b4,{value:t.password}),(0,Te.jsxs)("button",{onClick:()=>c(!0),"data-testid":"subadmin-password-edit",className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-primary transition-colors",children:[(0,Te.jsx)(f4,{size:13})," \xe4ndern"]})]}),(0,Te.jsx)("div",{className:"mt-3",children:(0,Te.jsx)(y4,{u:t,busy:i,onSet:async(e,n)=>{const a=d(d({},t.permissions||{}),{},{[e]:n});await x({permissions:a},"Berechtigungen aktualisiert")}})})]}),(0,Te.jsx)("td",{className:"py-4 px-4",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold px-2 py-1 rounded-full ".concat(t.active?"bg-green-100 text-green-700":"bg-zinc-200 text-zinc-600"),"data-testid":"subadmin-status",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full ".concat(t.active?"bg-green-600":"bg-zinc-500")}),t.active?"Aktiv":"Inaktiv"]})}),(0,Te.jsx)("td",{className:"py-4 px-4",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,Te.jsx)("button",{onClick:async()=>{s(!0);try{const e=(await Ps.post("/admin/sub-admins/".concat(t.id,"/resend-invite"))).data;Ia.success("success"===e.email_status?"Einladung erneut versendet":"Einladung ausgel\xf6st (E-Mail nicht konfiguriert)")}catch(rse){Ia.error(Cs(rse))}s(!1)},disabled:i,title:"Einladung erneut senden","data-testid":"subadmin-resend-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md text-muted-foreground hover:bg-zinc-100 hover:text-primary transition-colors",children:(0,Te.jsx)(vS,{size:16})}),(0,Te.jsx)("button",{onClick:()=>x({active:!t.active},t.active?"Deaktiviert":"Aktiviert"),disabled:i,title:t.active?"Deaktivieren":"Aktivieren","data-testid":"subadmin-toggle-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md transition-colors ".concat(t.active?"text-amber-600 hover:bg-amber-50":"text-green-600 hover:bg-green-50"),children:(0,Te.jsx)(iE,{size:16})}),f?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Te.jsx)("button",{onClick:async()=>{s(!0);try{await Ps.delete("/admin/sub-admins/".concat(t.id)),Ia.success("Administrator gel\xf6scht"),n()}catch(rse){Ia.error(Cs(rse)),s(!1)}},disabled:i,"data-testid":"subadmin-delete-confirm-".concat(t.id),className:"text-xs font-semibold text-white bg-destructive rounded-md px-2 py-1 hover:opacity-90",children:i?(0,Te.jsx)(Of,{size:13,className:"animate-spin"}):"L\xf6schen"}),(0,Te.jsx)("button",{onClick:()=>g(!1),className:"text-xs text-muted-foreground px-1",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})})]}):(0,Te.jsx)("button",{onClick:()=>g(!0),disabled:i,title:"L\xf6schen","data-testid":"subadmin-delete-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md text-destructive hover:bg-red-50 transition-colors",children:(0,Te.jsx)(y_,{size:16})})]})})]});var v}function j4(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)({}),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=(0,a.useCallback)(()=>{s(!0),Ps.get("/admin/sub-admins").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>s(!1))},[]);(0,a.useEffect)(()=>{y()},[y]);const w=f.full||"";return(0,Te.jsxs)("div",{"data-testid":"subadmins-page",children:[(0,Te.jsx)(ky,{title:"Admins",titleId:"subadmins.title",subt
2itle:"Weitere Administratoren mit granularen Bereichs-Berechtigungen einladen \u2013 ohne Weitergabe der SuperAdmin-Zugangsdaten.",subtitleId:"subadmins.subtitle"}),(0,Te.jsxs)(by,{className:"p-6 mb-6","data-testid":"subadmin-create-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Te.jsx)("span",{className:"w-9 h-9 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:(0,Te.jsx)(kS,{size:18})}),(0,Te.jsx)("h2",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"subadmins.invite_heading",children:"Neuen Administrator einladen"})})]}),(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),l.trim()){b(!0);try{const e=(await Ps.post("/admin/sub-admins",{email:l.trim(),name:m.trim(),permissions:f})).data;Ia.success("success"===e.email_status?"Administrator angelegt & eingeladen":"Administrator angelegt (E-Mail nicht konfiguriert)"),c(""),p(""),g({}),y()}catch(sse){Ia.error(Cs(sse))}b(!1)}},className:"space-y-4","data-testid":"subadmin-create-form",children:[(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 sm:items-end",children:[(0,Te.jsxs)("label",{className:"flex-1 block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"E-Mail-Adresse *"}),(0,Te.jsx)("input",{type:"email",required:!0,value:l,onChange:e=>c(e.target.value),"data-testid":"subadmin-create-email",className:"w-full h-10 px-3 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"[email protected]"})]}),(0,Te.jsxs)("label",{className:"flex-1 block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:(0,Te.jsx)(cy,{id:"common.name_optional",as:"span",children:"Name (optional)"})}),(0,Te.jsx)("input",{value:m,onChange:e=>p(e.target.value),"data-testid":"subadmin-create-name",className:"w-full h-10 px-3 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"Vor- und Nachname"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-2 block",children:(0,Te.jsx)(cy,{id:"admin.admins.permissions_hint",as:"span",children:"Berechtigungen (je Bereich: Ansehen oder Bearbeiten)"})}),(0,Te.jsx)("div",{className:"flex flex-col gap-2 max-w-md","data-testid":"subadmin-create-perms",children:g4.map(e=>{let t=Le(e,2),n=t[0],a=t[1];const r="full"===n,i=r?w:w||f[n]||"",s=!r&&!!w;return(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("span",{className:"text-sm ".concat(r?"font-semibold":""," ").concat(s?"opacity-40":""),children:a}),(0,Te.jsx)(v4,{value:i,disabled:s,onChange:e=>((e,t)=>{g(n=>d(d({},n),{},{[e]:t}))})(n,e),testidBase:"subadmin-create-perm-".concat(n)})]},n)})})]}),(0,Te.jsxs)(fy,{type:"submit",disabled:v,"data-testid":"subadmin-create-submit",children:[v?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(Pf,{size:15})," Einladen"]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:"Es wird automatisch ein sicheres Passwort erzeugt und eine Einladungs-E-Mail mit dem Login-Link versendet. Der Administrator sieht ausschlie\xdflich die freigegebenen Bereiche."})]}),(0,Te.jsx)(by,{className:"p-0 overflow-hidden","data-testid":"subadmins-table-card",children:i?(0,Te.jsxs)("div",{className:"p-10 flex items-center justify-center gap-2 text-muted-foreground",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Wird geladen \u2026"]}):0===t.length?(0,Te.jsx)("div",{className:"p-10 text-center text-muted-foreground","data-testid":"subadmins-empty",children:(0,Te.jsx)(cy,{id:"admin.admins.empty",as:"span",children:"Noch keine Administratoren angelegt."})}):(0,Te.jsxs)("table",{className:"w-full text-left",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground bg-[#FAFAFA]",children:[(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"common.col_person",as:"span",children:"Person"})}),(0,Te.jsx)("th",{className:"py-3 px-4",children:"Passwort & Berechtigungen"}),(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"common.col_status",as:"span",children:"Status"})}),(0,Te.jsx)("th",{className:"py-3 px-4 text-right",children:(0,Te.jsx)(cy,{id:"common.col_actions",as:"span",children:"Aktionen"})})]})}),(0,Te.jsx)("tbody",{children:t.map(e=>
2(0,Te.jsx)(w4,{u:e,onChanged:y},e.id))})]})})]})}const k4=kf("shield-question",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),N4=kf("ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]),S4=["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],_4=e=>e?String(e).slice(0,7):"",z4=e=>{const t=Le(e.split("-"),2),n=t[0],a=t[1];return"".concat(S4[parseInt(a,10)-1]," ").concat(n)};function E4(e){let t=e.items,n=e.columns,r=e.renderRow,i=e.getDate,s=e.getText,o=e.getStatus,l=e.statusOptions,c=e.testid;const u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)(""),2),f=h[0],g=h[1],x=Le((0,a.useState)(""),2),v=x[0],b=x[1],y=Le((0,a.useState)(""),2),w=y[0],j=y[1],k=Le((0,a.useState)({}),2),N=k[0],S=k[1],_=!!(m.trim()||f||v||w),z=n.length,E=(0,a.useMemo)(()=>{const e=m.trim().toLowerCase();return t.filter(t=>{if(e&&!(s(t)||"").toLowerCase().includes(e))return!1;if(f&&o(t)!==f)return!1;const n=String(i(t)||"").slice(0,10);return!(v&&(!n||n<v))&&!(w&&(!n||n>w))})},[t,m,f,v,w,s,o,i]),C=(0,a.useMemo)(()=>[...E].sort((e,t)=>String(i(t)||"").localeCompare(String(i(e)||""))),[E,i]),P=_4((new Date).toISOString()),A=P.slice(0,4),T=(0,a.useMemo)(()=>{const e=[],t={},n={};for(const a of C){const r=_4(i(a));if(!r){e.push(a);continue}const s=r.slice(0,4);r===P?e.push(a):s===A?(t[r]=t[r]||[]).push(a):(n[s]=n[s]||{},(n[s][r]=n[s][r]||[]).push(a))}return{current:e,olderThisYear:t,years:n}},[C,P,A,i]),R=e=>{let t=e.id,n=e.label,a=e.count,r=e.level,i=void 0===r?0:r;return(0,Te.jsx)("tr",{className:"bg-[#F7F7F8] border-t border-border cursor-pointer hover:bg-[#F1F1F2]",onClick:()=>(e=>S(t=>d(d({},t),{},{[e]:!t[e]})))(t),"data-testid":"billing-folder-".concat(t),children:(0,Te.jsx)("td",{colSpan:z,className:"px-4 py-2.5",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-2 font-semibold text-sm",style:{paddingLeft:18*i},children:[(0,Te.jsx)(Df,{size:15,className:"transition-transform ".concat(N[t]?"rotate-90":"")}),n,(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",a,")"]})]})})})};return(0,Te.jsxs)("div",{"data-testid":c,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4","data-testid":"billing-search-bar",children:[(0,Te.jsxs)("div",{className:"relative flex-1 min-w-0",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:m,onChange:e=>p(e.target.value),placeholder:"Suchen \u2026",className:"pl-8 w-full","data-testid":"billing-search-text"})]}),(0,Te.jsx)("div",{className:"w-44 shrink-0",children:(0,Te.jsxs)(vy,{value:f,onChange:e=>g(e.target.value),className:"w-full","data-testid":"billing-search-status",children:[(0,Te.jsx)("option",{value:"",children:"Alle Status"}),l.map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("option",{value:n,children:a},n)})]})}),(0,Te.jsx)("div",{className:"w-40 shrink-0",children:(0,Te.jsx)(gy,{type:"date",value:v,onChange:e=>b(e.target.value),className:"w-full","data-testid":"billing-search-date-from",title:"von"})}),(0,Te.jsx)("div",{className:"w-40 shrink-0",children:(0,Te.jsx)(gy,{type:"date",value:w,onChange:e=>j(e.target.value),className:"w-full","data-testid":"billing-search-date-to",title:"bis"})}),_&&(0,Te.jsx)("button",{onClick:()=>{p(""),g(""),b(""),j("")},className:"shrink-0 inline-flex items-center justify-center w-9 h-9 rounded-md text-muted-foreground hover:text-primary hover:bg-zinc-100","data-testid":"billing-search-clear",title:"Zur\xfccksetzen",children:(0,Te.jsx)(Iv,{size:16})})]}),(0,Te.jsx)("div",{className:"rounded-xl border border-border overflow-hidden bg-white",children:(0,Te.jsxs)("table",{className:"w-full text-sm",children:[(0,Te.jsx)("thead",{className:"bg-[#F3F3F4] text-left text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)("tr",{children:n.map((e,t)=>(0,Te.jsx)("th",{className:"px-4 py-3 ".concat(e.className||""),children:"string"===typeof e.label&&e.label.trim()?(0,Te.jsx)(cy,{id:e.labelId||"col.".concat(e.label.toLowerCase().replace(/\xe4/g,"ae").replace(/\xf6/g,"oe").replace(/\xfc/g,"ue").replace(/\xdf/g,"ss").replace(/[^a-z0-9]+/g,"_").replace(/^_+|_+$/g,"").slice(0,60)),as:"span",children:e.label}):e.label},t))})}),(0,Te.jsx)("tbody",{children:0===C.length?(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:z,className:"px-4 py-10 text-center text-muted-foreground","data-testid":"billing-folders-empty",children:(0,Te.jsx)(cy,{id:"common.no_entries",as:"span",children:"Keine Eintr\xe4ge."})})}):_?C.map(r):(0,Te.jsxs)(Te.Fragment,{children:[T.current.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("tr",{className:"bg-primary/5 border-t border-border",children:(0,Te.jsxs)("td",{colSpan:z,className:"px-4 py-2.5 text-sm font-semibold text-[var(--brand-primary-dark)]","data-testid":"billing-folder-current",children:["Aktueller Monat \xb7 ",z4(P)," ",(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",T.current.length,")"]})]})}),T.current.map(r)]}),Object.keys(T.olderThisYear).sort().reverse().map(e=>(0,Te.jsxs)(a.Fragment,{children:[(0,Te.jsx)(R,{id:e,label:z4(e),count:T.olderThisYear[e].length}),N[e]&&T.olderThisYear[e].map(r)]},e)),Object.keys(T.years).sort().reverse().map(e=>{const t=T.years[e],n=Object.values(t).reduce((e,t)=>
2e+t.length,0);return(0,Te.jsxs)(a.Fragment,{children:[(0,Te.jsx)(R,{id:"y-".concat(e),label:"Jahr ".concat(e),count:n}),N["y-".concat(e)]&&Object.keys(t).sort().reverse().map(e=>(0,Te.jsxs)(a.Fragment,{children:[(0,Te.jsx)(R,{id:e,label:z4(e),count:t[e].length,level:1}),N[e]&&t[e].map(r)]},e))]},e)})]})})]})})]})}const C4=[["AT","\xd6sterreich"],["DE","Deutschland"],["CH","Schweiz"],["IT","Italien"],["FR","Frankreich"],["ES","Spanien"],["NL","Niederlande"],["BE","Belgien"],["LU","Luxemburg"],["PL","Polen"],["CZ","Tschechien"],["SK","Slowakei"],["SI","Slowenien"],["HU","Ungarn"],["HR","Kroatien"],["SE","Schweden"],["DK","D\xe4nemark"],["FI","Finnland"],["IE","Irland"],["PT","Portugal"],["GR","Griechenland"],["RO","Rum\xe4nien"],["BG","Bulgarien"],["EE","Estland"],["LV","Lettland"],["LT","Litauen"],["CY","Zypern"],["MT","Malta"],["LI","Liechtenstein"],["GB","Vereinigtes K\xf6nigreich"],["US","Vereinigte Staaten"]],P4={monthly_installment:"Monatliche Rate",annual_prepay:"Jahres-Vorkasse (\u22125 %)"},A4={active:{label:"Aktiv",cls:"bg-green-100 text-green-800"},scheduled:{label:"Zuk\xfcnftig",cls:"bg-blue-100 text-blue-800"},cancellation_pending:{label:"Gek\xfcndigt (l\xe4uft aus)",cls:"bg-amber-100 text-amber-800"},expired:{label:"Ausgelaufen",cls:"bg-zinc-200 text-zinc-700"},suspended:{label:"Gesperrt",cls:"bg-red-100 text-red-800"},draft:{label:"Entwurf",cls:"bg-zinc-200 text-zinc-700"}},T4=e=>"\u20ac ".concat(Number(e||0).toLocaleString("de-DE")),R4=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",O4=(e,t)=>{const n={};return t?((e||[]).forEach(e=>{e.firma_id===t&&(["expired","void","draft"].includes(e.status)||(e.products||[]).forEach(t=>{n[t]||(n[t]=e)}))}),n):n};function D4(e){let t=e.status;const n=A4[t]||A4.draft;return(0,Te.jsx)("span",{"data-testid":"contract-status-".concat(t),className:"inline-block px-2.5 py-1 rounded-full text-xs font-bold ".concat(n.cls),children:n.label})}const M4={firma_id:"",products:[],employees:"",billing_plan:"monthly_installment",start_date:(new Date).toISOString().slice(0,10),end_date:"",auto_renew:!0,special_discount_pct:0,special_discount_reason:"",country:"AT",customer_type:"business",auto_charge:!1,voucher_code:""};function I4(e){let t=e.vouchers,n=e.value,r=e.onChange;const i=Le((0,a.useState)(""),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],d=l[1],u=t.find(e=>e.code===n),m=t.filter(e=>"".concat(e.code," ").concat(e.label||"").toLowerCase().includes(s.toLowerCase())),p=e=>"percent"===e.type?"".concat(e.value," %"):"\u20ac ".concat(e.value);return(0,Te.jsx)("div",{className:"relative",children:n?(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsxs)("div",{className:"flex-1 px-3 py-2 rounded-md border border-border bg-white text-sm","data-testid":"contract-voucher-selected",children:[(0,Te.jsx)("b",{children:n}),u?" \xb7 ".concat(p(u)).concat(u.label?" \xb7 ".concat(u.label):""):""]}),(0,Te.jsx)(fy,{variant:"danger","data-testid":"contract-voucher-clear",onClick:()=>{r(""),o("")},children:"Entfernen"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{"data-testid":"contract-voucher-search",value:s,onClick:()=>d(!0),onChange:e=>{o(e.target.value),d(!0)},placeholder:"Gutschein suchen/ausw\xe4hlen \u2026",className:"pl-8"})]}),c&&(0,Te.jsx)("div",{className:"absolute z-20 mt-1 w-full max-h-52 overflow-y-auto border rounded-md bg-white shadow-lg divide-y",children:0===m.length?(0,Te.jsx)("div",{className:"p-3 text-xs text-muted-foreground",children:"Kein Gutschein gefunden."}):m.slice(0,40).map(e=>(0,Te.jsxs)("button",{type:"button","data-testid":"contract-voucher-opt-".concat(e.code),onClick:()=>{r(e.code),d(!1)},className:"w-full flex items-center justify-between px-3 py-2 text-sm text-left hover:bg-[#F5F5F6]",children:[(0,Te.jsxs)("span",{children:[(0,Te.jsx)("b",{children:e.code}),e.label?(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[" \xb7 ",e.label]}):""]}),(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:p(e)})]},e.id))})]})})}
2function F4(e){let t=e.firmen,n=e.config,r=e.form,i=e.setForm,s=e.preview,o=e.vouchers,l=e.contracts;const c={active:"aktiv",scheduled:"geplant",cancellation_pending:"in K\xfcndigung",suspended:"pausiert"},u=(0,a.useMemo)(()=>{const e={};return(l||[]).forEach(t=>{t.firma_id===r.firma_id&&(["expired","void","draft"].includes(t.status)||(t.products||[]).forEach(n=>{e[n]||(e[n]=t)}))}),e},[l,r.firma_id]),m=r.products.filter(e=>u[e]);return(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-5",children:[(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsx)(wy,{label:"Firma",children:(0,Te.jsxs)(vy,{"data-testid":"contract-firma-select",value:r.firma_id,onChange:e=>(e=>{const n=t.find(t=>t.id===e);i(t=>d(d({},t),{},{firma_id:e,employees:t.employees||(n?n.headcount:"")}))})(e.target.value),children:[(0,Te.jsx)("option",{value:"",children:"\u2014 Firma w\xe4hlen \u2014"}),t.map(e=>(0,Te.jsxs)("option",{value:e.id,children:[e.name,e.has_contract?" \xb7 (Vertrag vorhanden)":""," \xb7 ",e.headcount," MA"]},e.id))]})}),(0,Te.jsx)(wy,{label:"Produkte",children:(0,Te.jsx)("div",{className:"grid grid-cols-1 gap-1.5",children:(n.products||[]).map(e=>{const t=!!u[e.key],n=r.products.includes(e.key);return(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm cursor-pointer ".concat(t&&n?"text-red-600 font-medium":""),"data-testid":"contract-product-".concat(e.key),children:[(0,Te.jsx)("input",{type:"checkbox",checked:n,onChange:()=>(e=>i(t=>d(d({},t),{},{products:t.products.includes(e)?t.products.filter(t=>t!==e):[...t.products,e]}
2)))(e.key),className:"accent-[color:var(--brand-primary)]"}),e.name,t&&(0,Te.jsx)("span",{className:"text-xs text-red-600",children:"\xb7 bereits unter Vertrag"})]},e.key)})})}),m.length>0&&(0,Te.jsx)("div",{className:"rounded-md border border-red-300 bg-red-50 p-2.5 space-y-1","data-testid":"contract-dup-hints",children:m.map(e=>{var t;const a=u[e],r=(n.products.find(t=>t.key===e)||{}).name||e;return(0,Te.jsxs)("p",{className:"text-xs text-red-700 flex items-start gap-1.5","data-testid":"contract-dup-hint-".concat(e),children:[(0,Te.jsx)(GS,{size:13,className:"mt-0.5 shrink-0"}),(0,Te.jsxs)("span",{children:["F\xfcr ",(0,Te.jsx)("b",{children:r})," besteht bereits ein aktiver Vertrag (",c[a.status]||a.status,null!==(t=a.current_term)&&void 0!==t&&t.end?", bis ".concat(R4(a.current_term.end)):"","). Bitte abw\xe4hlen \u2013 ein zweiter Vertrag f\xfcr dasselbe Produkt ist nicht m\xf6glich."]})]},e)})}),(0,Te.jsx)(wy,{label:"Mitarbeitende",children:(0,Te.jsx)(gy,{type:"number",min:"1","data-testid":"contract-employees",value:r.employees,onChange:e=>i(t=>d(d({},t),{},{employees:e.target.value}))})}),r.end_date?(0,Te.jsxs)("div",{className:"rounded-md border border-border bg-muted/40 p-2.5 text-xs text-muted-foreground","data-testid":"contract-fixed-term-note",children:["Befristeter Vertrag: ",(0,Te.jsx)("b",{children:"tagesgenaue Einmalabrechnung"})," des gesamten Zeitraums (kein Monats-/Jahresplan)."]}):(0,Te.jsx)(wy,{label:"Abrechnungsmodell",children:(0,Te.jsx)(vy,{"data-testid":"contract-plan",value:r.billing_plan,onChange:e=>i(t=>d(d({},t),{},{billing_plan:e.target.value})),children:(n.billing_plans||[]).map(e=>(0,Te.jsx)("option",{value:e,children:P4[e]||e},e))})}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Vertragsbeginn",children:(0,Te.jsx)(gy,{type:"date","data-testid":"contract-start",value:r.start_date,onChange:e=>i(t=>d(d({},t),{},{start_date:e.target.value}))})}),(0,Te.jsx)(wy,{label:"Vertragsende (optional \u2013 Trial/befristet)",children:(0,Te.jsx)(gy,{type:"date","data-testid":"contract-end",value:r.end_date||"",onChange:e=>i(t=>d(d({},t),{},{end_date:e.target.value,auto_renew:!e.target.value&&t.auto_renew}))})})]}),(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm ".concat(r.end_date?"opacity-50":"cursor-pointer"),"data-testid":"contract-auto-renew",children:[(0,Te.jsx)("input",{type:"checkbox",checked:!!r.auto_renew&&!r.end_date,disabled:!!r.end_date,onChange:e=>i(t=>d(d({},t),{},{auto_renew:e.target.checked})),className:"accent-[color:var(--brand-primary)]"}),"Automatische Verl\xe4ngerung"]}),r.end_date&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground -mt-1",children:"Befristeter Vertrag: keine automatische Verl\xe4ngerung. F\xfcr eine Folgeperiode wird neu bestellt."}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Land (USt-Bestimmung)",children:(0,Te.jsx)(vy,{"data-testid":"contract-country",value:r.country,onChange:e=>i(t=>d(d({},t),{},{country:e.target.value})),children:C4.map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsxs)("option",{value:n,children:[a," (",n,")"]},n)})})}),(0,Te.jsx)(wy,{label:"Empf\xe4ngertyp",children:(0,Te.jsxs)(vy,{"data-testid":"contract-customer-type",value:r.customer_type,onChange:e=>i(t=>d(d({},t),{},{customer_type:e.target.value})),children:[(0,Te.jsx)("option",{value:"business",children:"Firma (B2B)"}),(0,Te.jsx)("option",{value:"private",children:"Privat (B2C)"})]})})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Rabatt %",children:(0,Te.jsx)(gy,{type:"number",min:"0",max:"90","data-testid":"contract-discount",value:r.special_discount_pct,onChange:e=>i(t=>d(d({},t),{},{special_discount_pct:e.target.value}))})}),(0,Te.jsx)(wy,{label:"Rabatt-Bezeichnung (erscheint im Vertrag & auf der Rechnung)",children:(0,Te.jsx)(gy,{"data-testid":"contract-discount-reason",value:r.special_discount_reason,onChange:e=>i(t=>d(d({},t),{},{special_discount_reason:e.target.value})),placeholder:"z. B. Treuerabatt"})})]}
2),(0,Te.jsx)(wy,{label:"Gutschein (optional)",children:(0,Te.jsx)(I4,{vouchers:o||[],value:r.voucher_code||"",onChange:e=>i(t=>d(d({},t),{},{voucher_code:e}))})})]}),(0,Te.jsx)("div",{children:(0,Te.jsxs)(by,{className:"p-5 bg-[#F7F7F8] h-full","data-testid":"contract-preview",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"admin.contracts.target_price",as:"span",children:"Sollpreis (SSOT-Berechnung)"})}),s?(0,Te.jsxs)("div",{className:"space-y-2 text-sm",children:[(s.items||[]).map(e=>(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{children:e.name}),(0,Te.jsxs)("span",{className:"tabular-nums",children:[T4(e.monthly),"/Mon."]})]},e.key)),(0,Te.jsx)("div",{className:"border-t border-border my-2"}),s.bundle_discount_pct>0&&(0,Te.jsxs)("div",{className:"flex justify-between text-muted-foreground",children:[(0,Te.jsx)("span",{children:"B\xfcndelrabatt"}),(0,Te.jsxs)("span",{children:["\u2212",s.bundle_discount_pct,"%"]})]}),s.special_discount_pct>0&&(0,Te.jsxs)("div",{className:"flex justify-between text-muted-foreground",children:[(0,Te.jsx)("span",{children:r.special_discount_reason||"Individueller Rabatt"}),(0,Te.jsxs)("span",{children:["\u2212",s.special_discount_pct,"%"]})]}),s.prepay&&(0,Te.jsxs)("div",{className:"flex justify-between text-muted-foreground",children:[(0,Te.jsx)("span",{children:"Vorkasse"}),(0,Te.jsx)("span",{children:"\u22125%"})]}),s.voucher&&s.voucher.valid&&(0,Te.jsxs)("div",{className:"flex justify-between text-emerald-700 font-medium","data-testid":"preview-voucher",children:[(0,Te.jsxs)("span",{children:["Gutschein ",s.voucher.code]}),(0,Te.jsxs)("span",{children:["\u2212",T4(s.voucher.discount)]})]}),s.voucher&&!s.voucher.valid&&(0,Te.jsxs)("div",{className:"text-xs text-red-600","data-testid":"preview-voucher-err",children:["Gutschein ",s.voucher.code,": ",s.voucher.reason]}),!s.is_fixed_term&&(0,Te.jsxs)("div",{className:"flex justify-between font-bold text-base pt-1",children:[(0,Te.jsx)("span",{children:"Monatlich"}),(0,Te.jsx)("span",{className:"tabular-nums","data-testid":"preview-monthly",children:T4(s.voucher&&s.voucher.valid&&null!=s.monthly_after?s.monthly_after:s.monthly)})]}),s.is_fixed_term?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex justify-between text-muted-foreground","data-testid":"preview-day-rate",children:[(0,Te.jsx)("span",{children:"Tagespreis"}),(0,Te.jsxs)("span",{className:"tabular-nums",children:[T4(Math.round(s.annual/365*100)/100)," \xd7 ",s.term_days||"?"," Tage"]})]}),(0,Te.jsxs)("div",{className:"flex justify-between font-bold text-primary","data-testid":"preview-term-total",children:[(0,Te.jsx)("span",{children:"Gesamtpreis (einmalig)"}),(0,Te.jsx)("span",{className:"tabular-nums",children:T4(s.term_total)})]})]}):(0,Te.jsxs)("div",{className:"flex justify-between font-bold text-primary",children:[(0,Te.jsx)("span",{children:"Jahreswert"}),(0,Te.jsx)("span",{className:"tabular-nums","data-testid":"preview-annual",children:T4(s.voucher&&s.voucher.valid&&null!=s.annual_after?s.annual_after:s.annual)})]}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground pt-1",children:[T4(s.per_employee_month)," pro MA/Monat"]})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:"Produkte & Mitarbeitende w\xe4hlen \u2026"})]})})]})}function L4(){var e,t,n,r;const i=Le((0,a.useState)([]),2),s=i[0],o=i[1],l=Le((0,a.useState)([]),2),c=l[0],u=l[1],m=Le((0,a.useState)({products:[],billing_plans:[]}),2),p=m[0],h=m[1],f=Le((0,a.useState)(!0),2),g=f[0],x=f[1],v=Le((0,a.useState)(!1),2),b=v[0],y=v[1],w=Le((0,a.useState)(M4),2),j=w[0],k=w[1],N=Le((0,a.useState)(null),2),S=N[0],_=N[1],z=Le((0,a.useState)(!1),2),E=z[0],C=z[1],P=Le((0,a.useState)(null),2),A=P[0],T=P[1],R=Le((0,a.useState)(null),2),O=R[0],D=R[1],M=Le((0,a.useState)(!1),2),I=M[0],F=M[1],L=Le((0,a.useState)(""),2),B=L[0],q=L[1],U=Le((0,a.useState)([]),2),V=U[0],H=U[1],W=Le((0,a.useState)([]),2),K=W[0],G=W[1];(0,a.useEffect)(()=>{if(null===A||void 0===A||!A.firma_id)return void H([]);let e=!0;return Ps.get("/billing/firma/".concat(A.firma_id,"/auto-charge-log")).then(t=>{e&&H(t.data.events||[])}).catch(()=>{e&&H([])}),()=>{e=!1}},[null===A||void 0===A?void 0:A.firma_id]);const Z=(0,a.useCallback)(async()=>{x(!0);try{const e=Le(await Promise.all([Ps.get("/billing/firmen"),Ps.get("/billing/contracts"),Ps.get("/billing/config")]),3),t=e[0],n=e[1],a=e[2];o(t.data),u(n.data.contracts),h(a.data),Ps.get("/billing/voucher-options").then(e=>G(e.data||[])).catch(()=>{})}catch(rse){Ia.error(Cs(rse))}finally{x(!1)}},[]);(0,a.useEffect)(()=>{Z()}
2,[Z]),(0,a.useEffect)(()=>{if(!j.products.length||!j.employees)return void _(null);const e=O4(c,j.firma_id),t=j.products.filter(t=>!e[t]);if(!t.length)return void _(null);let n=!0;const a={employees:j.employees,products:t.join(","),billing_plan:j.billing_plan,special_discount_pct:j.special_discount_pct||0,start_date:j.start_date||"",end_date:j.end_date||""};return j.voucher_code&&(a.voucher_code=j.voucher_code,a.firma_id=j.firma_id||""),Ps.get("/billing/preview",{params:a}).then(e=>{n&&_(e.data)}).catch(()=>{}),()=>{n=!1}},[j.products,j.employees,j.billing_plan,j.special_discount_pct,j.voucher_code,j.firma_id,j.start_date,j.end_date,c]);const Y=j.products.filter(e=>O4(c,j.firma_id)[e]),Q=async(e,t)=>{C(!0);try{const n=await e();T(n.data),Ia.success(t),await Z()}catch(rse){Ia.error(Cs(rse))}finally{C(!1)}},$=Le((0,a.useState)(!1),2),X=$[0],J=$[1],ee=Le((0,a.useState)(""),2),te=ee[0],ne=ee[1],ae=async e=>{if(A){C(!0);try{const t=await Ps.put("/billing/contracts/".concat(A.id),{voucher_code:e});T(t.data),Ia.success(e?"Gutschein hinterlegt.":"Gutschein entfernt."),ne(""),await Z()}catch(rse){Ia.error(Cs(rse))}finally{C(!1)}}},re=async e=>{if(A){J(!0);try{const t=await Ps.post("/billing/vat/manual",{contract_id:A.id,valid:e,note:"manuell best\xe4tigt"});T(e=>d(d({},e),{},{vat_check:t.data})),Ia.success("UID manuell als ".concat(e?"g\xfcltig":"ung\xfcltig"," markiert."))}catch(rse){Ia.error(Cs(rse))}finally{J(!1)}}};return(0,Te.jsxs)("div",{"data-testid":"billing-contracts-page",children:[(0,Te.jsx)(ky,{title:"Vertr\xe4ge & Services",titleId:"admin.contracts.page_title",subtitle:"Single Source of Truth: Produkte, Laufzeit, Abrechnung und Sollpreis je Firma",subtitleId:"admin.contracts.page_subtitle",actions:(0,Te.jsxs)(fy,{"data-testid":"new-contract-btn",onClick:()=>{k(M4),_(null),y(!0)},children:[(0,Te.jsx)(Pf,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.contracts.new",as:"span",children:"Neuer Vertrag"})]})}),(0,Te.jsxs)(by,{className:"p-4 mb-5 flex items-start gap-3 bg-[#F7F7F8]","data-testid":"billing-rules",children:[(0,Te.jsx)(GS,{size:18,className:"text-primary mt-0.5 shrink-0"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground",children:["Regeln: ",(0,Te.jsxs)("b",{children:[p.term_months||12," Monate"]})," Laufzeit, Auto-Verl\xe4ngerung, K\xfcndigung mit ",(0,Te.jsxs)("b",{children:[p.notice_months||3," Monaten"]})," Frist zum Laufzeitende. Monatliche Zahlung ist eine ",(0,Te.jsx)("b",{children:"Ratenzahlung"})," (der volle Jahreswert ist geschuldet). Zahlungsziel ",(null===(e=p.dunning)||void 0===e?void 0:e.due_days)||7," Tage."]})]}),g?(0,Te.jsx)(FS,{}):0===c.length?(0,Te.jsxs)(by,{className:"p-10 text-center","data-testid":"contracts-empty",children:[(0,Te.jsx)(pS,{size:40,className:"mx-auto text-muted-foreground mb-3"}),(0,Te.jsx)("p",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.contracts.empty",as:"span",children:"Noch keine Vertr\xe4ge angelegt."})})]}):(0,Te.jsx)(E4,{items:c,columns:[{label:"Firma"},{label:"Kundennr."},{label:"Produkte"},{label:"MA"},{label:"Modell"},{label:"Status"},{label:"Monatl.",className:"text-right"},{label:"Jahr",className:"text-right"},{label:"Laufzeitende"},{label:""}],getDate:e=>{var t;return(null===(t=e.current_term)||void 0===t?void 0:t.start)||e.start_date},getText:e=>"".concat(e.firma_name||""," ").concat(e.kundennummer||""),getStatus:e=>e.status,statusOptions:Object.entries(A4).map(e=>{let t=Le(e,2);return[t[0],t[1].label]}),testid:"contracts-table",renderRow:e=>{var t;return(0,Te.jsxs)("tr",{className:"border-t border-border hover:bg-[#FAFAFA]","data-testid":"contract-row-".concat(e.id),children:[(0,Te.jsx)("td",{className:"px-4 py-3 font-semibold",children:e.firma_name}),(0,Te.jsx)("td",{className:"px-4 py-3 tabular-nums","data-testid":"contract-kundennr-".concat(e.id),children:e.kundennummer||(0,Te.jsx)("span",{className:"text-muted-foreground",children:"\u2014"})}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("div",{className:"flex flex-wrap gap-1",children:e.products.map(e=>{var t;return(0,Te.jsx)("span",{className:"px-2 py-0.5 rounded bg-primary/10 text-[var(--brand-primary-dark)] text-xs",children:(null===(t=(p.products.find(t=>t.key===e)||{}).name)||void 0===t?void 0:t.replace("PERSENTIS ",""))||e},e)})})}),(0,Te.jsx)("td",{className:"px-4 py-3 tabular-nums",children:e.employees}),(0,Te.jsx)("td",{className:"px-4 py-3",children:P4[e.billing_plan]||e.billing_plan}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)(D4,{status:e.status})}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right tabular-nums",children:T4(e.pricing.monthly)}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right tabular-nums font-semibold",children:T4(e.pricing.annual)}),(0,Te.jsx)("td",{className:"px-4 py-3",children:R4(null===(t=e.current_term)||void 0===t?void 0:t.end)}),(0,Te.jsxs)("td",{className:"px-4 py-3 text-right",children:[(0,Te.jsx)("button",{className:"text-muted-foreground hover:text-primary p-1.5 rounded hover:bg-primary/10 transition-colors",title:"Vertrag ansehen","data-testid":"contract-detail-".concat(e.id),onClick:()=>(async e=>{try{const t=await Ps.get("/billing/contracts/".concat(e));T(t.data),q("")}catch(rse){Ia.error(Cs(rse))}})(e.id),children:(0,Te.jsx)(tS,{size:18})}),(0,Te.jsx)("button",{className:"text-muted-foreground hover:text-red-600 p-1.5 rounded hover:bg-red-50 transition-colors ml-1",title:"Vertrag l\xf6schen","data-testid":"contract-delete-".concat(e.id),onClick:()=>D(e),children:(0,Te.jsx)(y_,{size:18})})]})]},e.id)}}),(0,Te.jsx)(ey,{open:!!O,onOpenChange:e=>!e&&D(null),children:(0,Te.jsxs)(ay,{"data-testid":"delete-contract-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{className:"text-red-600",children:"Vertrag l\xf6schen?"}),(0,Te.jsxs)(oy,{children:["Der Vertrag von ",(0,Te.jsx)("strong",{children:null===O||void 0===O?void 0:O.firma_name})," wird ",(0,Te.jsx)("strong",{children:"unwiderruflich"})," gel\xf6scht. Bereits erzeugte Rechnungen bleiben erhalten. Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."]})]}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2 mt-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>D(null),"data-testid":"delete-contract-cancel",children:"Abbrechen"}),(0,Te.jsx)(fy,{variant:"danger",onClick:async()=>
2{if(O){F(!0);try{await Ps.delete("/billing/contracts/".concat(O.id)),Ia.success("Vertrag gel\xf6scht."),(null===A||void 0===A?void 0:A.id)===O.id&&T(null),D(null),await Z()}catch(rse){Ia.error(Cs(rse))}finally{F(!1)}}},disabled:I,"data-testid":"delete-contract-confirm",children:I?"L\xf6sche \u2026":"Endg\xfcltig l\xf6schen"})]})]})}),(0,Te.jsx)(ey,{open:b,onOpenChange:y,children:(0,Te.jsxs)(ay,{className:"max-w-3xl max-h-[90vh] overflow-y-auto","data-testid":"create-contract-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{children:(0,Te.jsx)(cy,{id:"admin.contracts.dialog_title",as:"span",children:"Neuer Vertrag"})}),(0,Te.jsx)(oy,{children:(0,Te.jsx)(cy,{id:"admin.contracts.dialog_desc",as:"span",children:"Vertrag mit 12 Monaten Laufzeit anlegen; Preise stammen aus dem PERSENTIS-Rechner."})})]}),(0,Te.jsx)(F4,{firmen:s,config:p,form:j,setForm:k,preview:S,vouchers:K,contracts:c}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,Te.jsx)(fy,{variant:"ghost",onClick:()=>y(!1),children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{"data-testid":"save-contract-btn",onClick:async()=>{if(j.firma_id&&j.products.length&&j.employees)if(Y.length)Ia.error("F\xfcr ein oder mehrere gew\xe4hlte Produkte besteht bereits ein aktiver Vertrag. Bitte diese abw\xe4hlen.");else{C(!0);try{await Ps.post("/billing/contracts",d(d({},j),{},{employees:parseInt(j.employees,10),special_discount_pct:parseFloat(j.special_discount_pct)||0})),Ia.success("Vertrag angelegt."),y(!1),await Z()}catch(rse){Ia.error(Cs(rse))}finally{C(!1)}}else Ia.error("Firma, Produkte und Mitarbeitende sind erforderlich.")},disabled:E||Y.length>0,children:E?"Speichert \u2026":"Vertrag anlegen"})]})]})}),(0,Te.jsx)(ey,{open:!!A,onOpenChange:e=>!e&&T(null),children:(0,Te.jsx)(ay,{className:"max-w-3xl max-h-[88vh] overflow-y-auto","data-testid":"contract-detail-dialog",children:A&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-3",children:[A.firma_name," ",(0,Te.jsx)(D4,{status:A.status})]}),(0,Te.jsx)(oy,{children:(0,Te.jsx)(cy,{id:"admin.contracts.detail_desc",as:"span",children:"Vertragsdetails, Ratenplan und Verlauf. K\xfcndigung wirkt zum Laufzeitende (3 Monate Frist)."})})]}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4 text-sm",children:[(0,Te.jsxs)("div",{className:"space-y-1",children:[(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:"Laufzeit"}),(0,Te.jsxs)("span",{children:[R4(null===(t=A.current_term)||void 0===t?void 0:t.start)," \u2013 ",R4(null===(n=A.current_term)||void 0===n?void 0:n.end)]})]}),(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:"Modell"}),(0,Te.jsx)("span",{children:P4[A.billing_plan]})]}),(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:"Mitarbeitende"}),(0,Te.jsxs)("span",{children:[A.employees,A.pending_employees?" \u2192 ".concat(A.pending_employees," (n. Periode)"):""]})]}),(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:"Auto-Verl\xe4ngerung"}),(0,Te.jsx)("span",{children:A.auto_renew?"ja":"nein"})]}),(null===(r=A.cancellation)||void 0===r?void 0:r.effective_date)&&(0,Te.jsxs)("div",{className:"flex justify-between text-amber-700",children:[(0,Te.jsx)("span",{children:"K\xfcndigung wirksam"}),(0,Te.jsx)("span",{children:R4(A.cancellation.effective_date)})]})]}),(0,Te.jsxs)(by,{className:"p-4 bg-[#F7F7F8]",children:[(0,Te.jsxs)("div",{className:"flex justify-between",children:[(0,Te.jsx)("span",{children:"Monatlich"}),(0,Te.jsx)("span",{className:"font-bold tabular-nums",children:T4(A.pricing.monthly)})]}),(0,Te.jsxs)("div",{className:"flex justify-between text-primary",children:[(0,Te.jsx)("span",{children:"Jahreswert"}),(0,Te.jsx)("span",{className:"font-bold tabular-nums",children:T4(A.pricing.annual)})]}),A.special_discount_pct>0&&(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground mt-1",children:[A.special_discount_reason||"Individueller Rabatt"," \u2212",A.special_discount_pct,"%"]}),A.voucher&&A.voucher.voucher_id&&(0,Te.jsxs)("div",{className:"text-xs text-emerald-700 font-medium mt
2-1","data-testid":"detail-voucher-current",children:["Gutschein ",A.voucher.code," (","percent"===A.voucher.type?"".concat(A.voucher.value,"%"):T4(A.voucher.value),", ",A.voucher.duration_mode,")"]})]})]}),(0,Te.jsxs)("div",{className:"mt-4 border border-border rounded-md p-4","data-testid":"contract-voucher-block",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2",children:"Gutschein"}),A.voucher&&A.voucher.voucher_id?(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsxs)("span",{className:"text-sm",children:["Aktiv: ",(0,Te.jsx)("b",{children:A.voucher.code})," \xb7 wird auf k\xfcnftige Rechnungen angewendet (",A.voucher.duration_mode,")."]}),(0,Te.jsx)(fy,{variant:"danger",onClick:()=>ae(""),disabled:E,"data-testid":"detail-voucher-remove",children:"Entfernen"})]}):(0,Te.jsxs)("div",{className:"max-w-md space-y-2",children:[(0,Te.jsx)(I4,{vouchers:K,value:te,onChange:ne}),(0,Te.jsx)(fy,{onClick:()=>ae(te.trim()),disabled:E||!te.trim(),"data-testid":"detail-voucher-save",children:"Hinterlegen"})]})]}),(0,Te.jsxs)("div",{className:"mt-4 border border-border rounded-md p-4","data-testid":"contract-tax-block",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between flex-wrap gap-3",children:[(0,Te.jsxs)("div",{className:"text-sm",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:"Land / Empf\xe4nger: "}),(0,Te.jsxs)("b",{children:[(C4.find(e=>e[0]===A.country)||[A.country,A.country])[1]," (",A.country,")"]}),(0,Te.jsx)("span",{className:"mx-2 text-muted-foreground",children:"\xb7"}),"private"===A.customer_type?"Privat (B2C)":"Firma (B2B)",A.auto_charge&&(0,Te.jsx)("span",{className:"ml-2 text-xs px-2 py-0.5 rounded bg-blue-100 text-blue-800",children:(0,Te.jsx)(cy,{id:"admin.contracts.autocharge_badge",as:"span",children:"Auto-Einzug aktiv"})})]}),(0,Te.jsxs)(fy,{variant:"secondary",className:"px-3 py-1.5","data-testid":"vat-verify-btn",disabled:X||"AT"===A.country,onClick:async()=>{if(A){J(!0);try{const e=await Ps.post("/billing/vat/verify",{contract_id:A.id});T(t=>d(d({},t),{},{vat_check:e.data})),"ok"===e.data.state?Ia[e.data.valid?"success":"error"](e.data.valid?"UID g\xfcltig (VIES).":"UID ung\xfcltig (VIES)."):Ia.warning("VIES nicht erreichbar \u2013 bitte manuell best\xe4tigen.")}catch(rse){Ia.error(Cs(rse))}finally{J(!1)}}},children:[X?(0,Te.jsx)(Of,{size:14,className:"animate-spin"}):(0,Te.jsx)(dS,{size:14})," UID pr\xfcfen (VIES)"]})]}),(()=>{const e=A.vat_check;if(!e)return(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"admin.contracts.uid_none",as:"span",children:"Noch keine UID-Pr\xfcfung. F\xfcr EU-B2B (Reverse Charge) UID pr\xfcfen."})});const t=!0===e.valid,n=!1===e.valid;return(0,Te.jsxs)("div",{className:"mt-2 flex items-center gap-2 text-sm","data-testid":"vat-check-result",children:[t?(0,Te.jsx)(dS,{size:16,className:"text-green-600"}):n?(0,Te.jsx)(AS,{size:16,className:"text-red-600"}):(0,Te.jsx)(k4,{size:16,className:"text-amber-600"}),(0,Te.jsxs)("span",{className:t?"text-green-700":n?"text-red-700":"text-amber-700",children:["manual"===e.state?"Manuell ":"VIES: ",t?"g\xfcltig":n?"ung\xfcltig":"nicht erreichbar",e.name?" \xb7 ".concat(e.name):""]})]})})(),"AT"!==A.country&&A.vat_check&&"ok"!==A.vat_check.state&&(0,Te.jsxs)("div",{className:"mt-2 flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.contracts.confirm_manual",as:"span",children:"Manuell best\xe4tigen:"})}),(0,Te.jsx)(fy,{variant:"secondary",className:"px-2 py-1 text-xs","data-testid":"vat-manual-valid",disabled:X,onClick:()=>re(!0),children:"g\xfcltig"}),(0,Te.jsx)(fy,{variant:"ghost",className:"px-2 py-1 text-xs","data-testid":"vat-manual-invalid",disabled:X,onClick:()=>re(!1),children:"ung\xfcltig"})]}),(0,Te.jsxs)("div",{className:"mt-3 pt-3 border-t border-border",children:[(0,Te.jsxs)(fy,{"data-testid":"contract-generate-invoice",disabled:E,onClick:async()=>{if(A){C(!0);try{(await Ps.post("/billing/invoices/generate",{contract_id:A.id})).data.created?Ia.success("Rechnungsentwurf erzeugt \u2013 unter \u201eRechnungen\u201c verf\xfcgbar."):Ia.info("F\xfcr diesen Zeitraum besteht bereits eine Rechnung.")}catch(rse){Ia.error(Cs(rse))}finally{C(!1)}}},children:[(0,Te.jsx)(hS,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.contracts.generate_invoice",as:"span",children:"Rechnungsentwurf erzeugen"})]}),(0,Te.jsx)("span",{className:"ml-2 text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.contracts.generate_invoice_hint",as:"span",children:"Erzeugt eine Entwurfsrechnung f\xfcr den aktuellen Monat."})})]})]}),(0,Te.jsxs)("div",{className:"mt-4",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.contracts.installments_title",as:"span",children:"Ratenplan (aktuelle Perio
2de)"})}),(0,Te.jsx)("div",{className:"border border-border rounded-md divide-y divide-border max-h-48 overflow-y-auto","data-testid":"contract-schedule",children:A.schedule.map(e=>(0,Te.jsxs)("div",{className:"flex justify-between px-3 py-2 text-sm",children:[(0,Te.jsxs)("span",{children:["Rate ",e.no," \xb7 f\xe4llig ",R4(e.due_date)]}),(0,Te.jsx)("span",{className:"tabular-nums",children:T4(e.amount)})]},e.no))})]}),(0,Te.jsx)("div",{className:"mt-4 flex flex-wrap gap-2 items-center",children:"cancellation_pending"===A.status?(0,Te.jsxs)(fy,{variant:"secondary","data-testid":"reactivate-btn",disabled:E,onClick:()=>Q(()=>Ps.post("/billing/contracts/".concat(A.id,"/reactivate")),"K\xfcndigung zur\xfcckgenommen."),children:[(0,Te.jsx)(Ff,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.contracts.reactivate",as:"span",children:"K\xfcndigung zur\xfccknehmen"})]}):"expired"!==A.status?(0,Te.jsxs)("div",{className:"flex items-center gap-2 flex-wrap",children:[(0,Te.jsx)(gy,{"data-testid":"cancel-note",placeholder:"K\xfcndigungsnotiz (optional)",value:B,onChange:e=>q(e.target.value),className:"w-64"}),(0,Te.jsxs)(fy,{variant:"danger","data-testid":"cancel-btn",disabled:E,onClick:()=>Q(()=>Ps.post("/billing/contracts/".concat(A.id,"/cancel"),{note:B}),"Vertrag gek\xfcndigt (zum Laufzeitende)."),children:[(0,Te.jsx)(N4,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.contracts.cancel_contract",as:"span",children:"K\xfcndigen"})]})]}):null}),(0,Te.jsxs)("div",{className:"mt-5","data-testid":"auto-charge-log",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.contracts.charge_log_title",as:"span",children:"Einzugs-Protokoll (Auto-Einzug)"})}),0===V.length?(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.contracts.charge_log_empty",as:"span",children:"Noch keine automatischen Einz\xfcge f\xfcr diese Firma."})}):(0,Te.jsx)("div",{className:"border border-border rounded-md divide-y divide-border max-h-48 overflow-y-auto",children:V.map(e=>{const t={paid:{t:"Bezahlt",c:"text-green-700"},failed:{t:"Fehlgeschlagen",c:"text-red-700"},processing:{t:"In Bearbeitung",c:"text-blue-700"},requires_action:{t:"Best\xe4tigung n\xf6tig",c:"text-amber-700"}}[e.result]||{t:e.result,c:"text-muted-foreground"};return(0,Te.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 text-sm","data-testid":"auto-charge-event-".concat(e.id),title:e.error||"",children:[(0,Te.jsxs)("div",{className:"flex flex-col",children:[(0,Te.jsxs)("span",{children:[new Date(e.at).toLocaleString("de-DE")," \xb7 ",e.number||"\u2014"]}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground",children:["sepa_debit"===e.method_type?"SEPA-Lastschrift":"Karte","retry"===e.source?" \xb7 manuell wiederholt":"webhook"===e.source?" \xb7 Best\xe4tigung":""]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("span",{className:"tabular-nums",children:T4(e.amount)}),(0,Te.jsx)("span",{className:"font-semibold ".concat(t.c),children:t.t})]})]},e.id)})})]}),(0,Te.jsxs)("div",{className:"mt-5",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.contracts.changelog_title",as:"span",children:"\xc4nderungsprotokoll"})}),(0,Te.jsx)("div",{className:"space-y-1","data-testid":"contract-audit",children:(A.audit||[]).map(e=>(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground flex justify-between",children:[(0,Te.jsxs)("span",{children:[e.action,e.note?" \xb7 ".concat(e.note):""]}),(0,Te.jsxs)("span",{children:[e.actor_name," \xb7 ",new Date(e.at).toLocaleString("de-DE")]})]},e.at))})]})]})})})]})}function B4(){return B4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},B4.apply(null,arguments)}var q4={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},U4=(0,a.forwardRef)(function(e,t){var n,r=hQ(e.categoricalChartProps,q4),i=e.chartName,s=e.defaultTooltipEventType,o=e.validateTooltipEventTypes,l=e.tooltipPayloadSearcher,c=e.categoricalChartProps,d={chartName:i,defaultTooltipEventType:s,validateTooltipEventTypes:o,tooltipPayloadSearcher:l,eventEmitter:void 0};return a.createElement(rY,{preloadedState:{options:d},reduxStoreName:null!==(n=c.id)&&void 0!==n?n:i},a.createElement(iY,{chartData:c.data}),a.createElement(dY,{layout:r.layout,margin:r.margin}),a.createElement(uY,{baseValue:r.baseValue,accessibilityLayer:r.accessibilityLayer,barCategoryGap:r.barCategoryGap,maxBarSize:r.maxBarSize,stackOffset:r.stackOffset,barGap:r.barGap,barSize:r.barSize,syncId:r.syncId,syncMethod:r.syncMethod,className:r.className,reverseStackOrder:r.reverseStackOrder}),a.createElement(uQ,B4({},r,{ref:t})))}),V4=["axis"],H4=(0,a.forwardRef)((e,t)=>a.createElement(U4,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:V4,tooltipPayloadSearcher:nO,categoricalChartProps:e,ref:t}));function W4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function K4(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?W4(Object(n),!0).forEach(function(t){G4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G4(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z4=e=>((e,t)=>{var n=e.x,a=e.y,r=t.x,i=t.y;return{x:Math.min(n,r),y:Math.min(a,i),width:Math.abs(r-n),height:Math.abs(i-a)}})({x:e.x1,y:e.y1},{x:e.x2,y:e.y2});class Y4{static create(e){return new Y4(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}
2apply(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,a=t.position;if(void 0!==e){if(a)switch(a){case"start":default:return this.scale(e);case"middle":var r=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+r;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+s}return this.scale(e)}}isInRange(e){var t=this.range(),n=t[0],a=t[t.length-1];return n<=a?e>=n&&e<=a:e>=a&&e<=n}}G4(Y4,"EPS",1e-4);function Q4(e,t){if(t<1)return[];if(1===t)return e;for(var n=[],a=0;a<e.length;a+=t){var r=e[a];void 0!==r&&n.push(r)}return n}function $4(e,t,n){return function(e){var t=e.width,n=e.height,a=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),r=a*Math.PI/180,i=Math.atan(n/t),s=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(s)}({width:e.width+t.width,height:e.height+t.height},n)}function X4(e,t,n,a,r){if(e*t<e*a||e*t>e*r)return!1;var i=n();return e*(t-e*i/2-a)>=0&&e*(t+e*i/2-r)<=0}function J4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function e6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J4(Object(n),!0).forEach(function(t){t6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function t6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n6(e,t,n){var a,r=e.tick,i=e.ticks,s=e.viewBox,o=e.minTickGap,l=e.orientation,c=e.interval,d=e.tickFormatter,u=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(rA(c)||WZ)return null!==(a=function(e,t){return Q4(e,t+1)}(i,rA(c)?c:0))&&void 0!==a?a:[];var p=[],h="top"===l||"bottom"===l?"width":"height",f=u&&"width"===h?hX(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=(e,a)=>{var r="function"===typeof d?d(e.value,a):e.value;return"width"===h?$4(hX(r,{fontSize:t,letterSpacing:n}),f,m):hX(r,{fontSize:t,letterSpacing:n})[h]},x=i.length>=2?tA(i[1].coordinate-i[0].coordinate):1,v=function(e,t,n){var a="width"===n,r=e.x,i=e.y,s=e.width,o=e.height;return 1===t?{start:a?r:i,end:a?r+s:i+o}:{start:a?r+s:i+o,end:a?r:i}}(s,x,h);return"equidistantPreserveStart"===c?function(e,t,n,a,r){for(var i,s=(a||[]).slice(),o=t.start,l=t.end,c=0,d=1,u=o,m=function(){var t=null===a||void 0===a?void 0:a[c];if(void 0===t)return{v:Q4(a,d)};var i,s=c,m=()=>(void 0===i&&(i=n(t,s)),i),p=t.coordinate,h=0===c||X4(e,p,m,u,l);h||(c=0,u=o,d+=1),h&&(u=p+e*(m()/2+r),c+=d)};d<=s.length;)if(i=m())return i.v;return[]}(x,v,g,i,o):"equidistantPreserveEnd"===c?function(e,t,n,a,r){var i=(a||[]).slice().length;if(0===i)return[];for(var s=t.start,o=t.end,l=1;l<=i;l++){for(var c=(i-1)%l,d=s,u=!0,m=function(){var t,i=a[p],s=p,l=()=>(void 0===t&&(t=n(i,s)),t),m=i.coordinate,h=p===c||X4(e,m,l,d,o);if(!h)return u=!1,1;h&&(d=m+e*(l()/2+r))},p=c;p<i&&!m();p+=l);if(u){for(var h=[],f=c;f<i;f+=l)h.push(a[f]);return h}}return[]}(x,v,g,i,o):(p="preserveStart"===c||"preserveStartEnd"===c?function(e,t,n,a,r,i){var s=(a||[]).slice(),o=s.length,l=t.start,c=t.end;if(i){var d=a[o-1],u=n(d,o-1),m=e*(d.coordinate+e*u/2-c);s[o-1]=d=e6(e6({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate}),null!=d.tickCoord&&X4(e,d.tickCoord,()=>u,l,c)&&(c=d.tickCoord-e*(u/2+r),s[o-1]=e6(e6({},d),{},{isShow:!0}))}for(var p=i?o-1:o,h=function(t){var a,i=s[t],o=()=>(void 0===a&&(a=n(i,t)),a);if(0===t){var d=e*(i.coordinate-e*o()/2-l);s[t]=i=e6(e6({},i),{},{tickCoord:d<0?i.coordinate-d*e:i.coordinate})}else s[t]=i=e6(e6({},i),{},{tickCoord:i.coordinate});null!=i.tickCoord&&X4(e,i.tickCoord,o,l,c)&&(l=i.tickCoord+e*(o()/2+r),s[t]=e6(e6({},i),{},{isShow:!0}
2))},f=0;f<p;f++)h(f);return s}(x,v,g,i,o,"preserveStartEnd"===c):function(e,t,n,a,r){for(var i=(a||[]).slice(),s=i.length,o=t.start,l=t.end,c=function(t){var a,c=i[t],d=()=>(void 0===a&&(a=n(c,t)),a);if(t===s-1){var u=e*(c.coordinate+e*d()/2-l);i[t]=c=e6(e6({},c),{},{tickCoord:u>0?c.coordinate-u*e:c.coordinate})}else i[t]=c=e6(e6({},c),{},{tickCoord:c.coordinate});null!=c.tickCoord&&X4(e,c.tickCoord,d,o,l)&&(l=c.tickCoord-e*(d()/2+r),i[t]=e6(e6({},c),{},{isShow:!0}))},d=s-1;d>=0;d--)c(d);return i}(x,v,g,i,o),p.filter(e=>e.isShow))}var a6=["axisLine","width","height","className","hide","ticks","axisType"];function r6(){return r6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},r6.apply(null,arguments)}function i6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function s6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i6(Object(n),!0).forEach(function(t){o6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l6={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:kV.axis};function c6(e){var t=e.x,n=e.y,r=e.width,i=e.height,s=e.orientation,o=e.mirror,l=e.axisLine,c=e.otherSvgProps;if(!l)return null;var d=s6(s6(s6({},c),bY(l)),{},{fill:"none"});if("top"===s||"bottom"===s){var u=+("top"===s&&!o||"bottom"===s&&o);d=s6(s6({},d),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var m=+("left"===s&&!o||"right"===s&&o);d=s6(s6({},d),{},{x1:t+m*r,y1:n,x2:t+m*r,y2:n+i})}return a.createElement("line",r6({},d,{className:Lv("recharts-cartesian-axis-line",XP(l,"className"))}))}function d6(e){var t,n=e.option,r=e.tickProps,i=e.value,s=Lv(r.className,"recharts-cartesian-axis-tick-value");if(a.isValidElement(n))t=a.cloneElement(n,s6(s6({},r),{},{className:s}));else if("function"===typeof n)t=n(s6(s6({},r),{},{className:s}));else{var o="recharts-cartesian-axis-tick-value";"boolean"!==typeof n&&(o=Lv(o,null===n||void 0===n?void 0:n.className)),t=a.createElement(qX,r6({},r,{className:o}),i)}return t}var u6=(0,a.forwardRef)((e,t)=>{var n=e.ticks,r=void 0===n?[]:n,i=e.tick,s=e.tickLine,o=e.stroke,l=e.tickFormatter,c=e.unit,d=e.padding,u=e.tickTextProps,m=e.orientation,p=e.mirror,h=e.x,f=e.y,g=e.width,x=e.height,v=e.tickSize,b=e.tickMargin,y=e.fontSize,w=e.letterSpacing,j=e.getTicksConfig,k=e.events,N=e.axisType,S=n6(s6(s6({},j),{},{ticks:r}),y,w),_=function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(m,p),z=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(m,p),E=bY(j),C=yY(i),P={};"object"===typeof s&&(P=s);var A=s6(s6({},E),{},{fill:"none"},P),T=S.map(e=>s6({entry:e},function(e,t,n,a,r,i,s,o,l){var c,d,u,m,p,h,f=o?-1:1,g=e.tickSize||s,x=rA(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":c=d=e.coordinate,h=(u=(m=n+ +!o*r)-f*g)-f*l,p=x;break;case"left":u=m=e.coordinate,p=(c=(d=t+ +!o*a)-f*g)-f*l,h=x;break;case"right":u=m=e.coordinate,p=(c=(d=t+ +o*a)+f*g)+f*l,h=x;break;default:c=d=e.coordinate,h=(u=(m=n+ +o*r)+f*g)+f*l,p=x}return{line:{x1:c,y1:u,x2:d,y2:m},tick:{x:p,y:h}}}(e,h,f,g,x,m,v,p,b))),R=T.map(e=>{var t=e.entry,n=e.line;return a.createElement(o$,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},s&&a.createElement("line",r6({},A,n,{className:Lv("recharts-cartesian-axis-tick-line",XP(s,"className"))})))}),O=T.map((e,t)=>{var n=e.entry,r=e.tick,s=s6(s6(s6(s6({textAnchor:_,verticalAnchor:z},E),{},{stroke:"none",fill:o},C),r),{},{index:t,payload:n,visibleTicksCount:S.length,tickFormatter:l,padding:d},u);return a.createElement(o$,r6({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},G$(k,n,t)),i&&a.createElement(d6,{option:i,tickProps:s,value:"".concat("function"===typeof l?l(n.value,t):n.value).concat(c||"")}))});return a.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(N,"-ticks")},O.length>0&&a.createElement(u1,{zIndex:kV.label},a.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(N,"-tick-labels"),ref:t},O)),R.length>0&&a.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(N,"-tick-lines")},R))}),m6=(0,a.forwardRef)((e,t)=>
vendor: 5,567 bytes, line 2
2{var n=e.axisLine,r=e.width,i=e.height,s=e.className,o=e.hide,l=e.ticks,c=e.axisType,d=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,a6),u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)(""),2),f=h[0],g=h[1],x=(0,a.useRef)(null);(0,a.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var t=e.ticks,n=e.label,a=e.labelGapWithTick,r=void 0===a?5:a,i=e.tickSize,s=void 0===i?0:i,o=e.tickMargin,l=void 0===o?0:o,c=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>c&&(c=t.width)}});var d=n?n.getBoundingClientRect().width:0,u=c+(s+l)+d+(n?r:0);return Math.round(u)}return 0})({ticks:x.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var v=(0,a.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");x.current=t;var n=t[0];if(n){var a=window.getComputedStyle(n),r=a.fontSize,i=a.letterSpacing;r===m&&i===f||(p(r),g(i))}}},[m,f]);return o||null!=r&&r<=0||null!=i&&i<=0?null:a.createElement(u1,{zIndex:e.zIndex},a.createElement(o$,{className:Lv("recharts-cartesian-axis",s)},a.createElement(c6,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:bY(e)}),a.createElement(u6,{ref:v,axisType:c,events:d,fontSize:m,getTicksConfig:e,height:e.height,letterSpacing:f,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:l,unit:e.unit,width:e.width,x:e.x,y:e.y}),a.createElement(y1,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},a.createElement(P1,{label:e.label,labelRef:e.labelRef}),e.children)))}),p6=a.forwardRef((e,t)=>{var n=hQ(e,l6);return a.createElement(m6,r6({},n,{ref:t}))});p6.displayName="CartesianAxis";var h6=["x1","y1","x2","y2","key"],f6=["offset"],g6=["xAxisId","yAxisId"],x6=["xAxisId","yAxisId"];function v6(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function b6(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v6(Object(n),!0).forEach(function(t){y6(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v6(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function y6(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w6(){return w6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},w6.apply(null,arguments)}function j6(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var k6=e=>{var t=e.fill;if(!t||"none"===t)return null;var n=e.fillOpacity,r=e.x,i=e.y,s=e.width,o=e.height,l=e.ry;return a.createElement("rect",{x:r,y:i,ry:l,width:s,height:o,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function N6(e){var t,n=e.option,r=e.lineItemProps;if(a.isValidElement(n))t=a.cloneElement(n,r);else if("function"===typeof n)t=n(r);else{var i,s=r.x1,o=r.y1,l=r.x2,c=r.y2,d=r.key,u=null!==(i=bY(j6(r,h6)))&&void 0!==i?i:{},m=(u.offset,j6(u,f6));t=a.createElement("line",w6({},m,{x1:s,y1:o,x2:l,y2:c,fill:"none",key:d}))}return t}function S6(e){var t=e.x,n=e.width,r=e.horizontal,i=void 0===r||r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;e.xAxisId,e.yAxisId;var o=j6(e,g6),l=s.map((e,r)=>{var s=b6(b6({},o),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(r),index:r});return a.createElement(N6,{key:"line-".concat(r),option:i,lineItemProps:s})});return a.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function _6(e){var t=e.y,n=e.height,r=e.vertical,i=void 0===r||r,s=e.verticalPoints;if(!i||!s||!s.length)return null;e.xAxisId,e.yAxisId;var o=j6(e,x6),l=s.map((e,r)=>{var s=b6(b6({},o),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(r),index:r});return a.createElement(N6,{option:i,lineItemProps:s,key:"line-".concat(r)})});return a.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function z6(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,o=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!t||!t.length||null==l)return null;var d=l.map(e=>Math.round(e+i-i)).sort((e,t)=>
2e-t);i!==d[0]&&d.unshift(0);var u=d.map((e,l)=>{var c=!d[l+1]?i+o-e:d[l+1]-e;if(c<=0)return null;var u=l%t.length;return a.createElement("rect",{key:"react-".concat(l),y:e,x:r,height:c,width:s,stroke:"none",fill:t[u],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}function E6(e){var t=e.vertical,n=void 0===t||t,r=e.verticalFill,i=e.fillOpacity,s=e.x,o=e.y,l=e.width,c=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var u=d.map(e=>Math.round(e+s-s)).sort((e,t)=>e-t);s!==u[0]&&u.unshift(0);var m=u.map((e,t)=>{var n=!u[t+1]?s+l-e:u[t+1]-e;if(n<=0)return null;var d=t%r.length;return a.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:n,height:c,stroke:"none",fill:r[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return a.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var C6=(e,t)=>{var n=e.xAxis,a=e.width,r=e.height,i=e.offset;return PM(n6(b6(b6(b6({},l6),n),{},{ticks:AM(n,!0),viewBox:{x:0,y:0,width:a,height:r}})),i.left,i.left+i.width,t)},P6=(e,t)=>{var n=e.yAxis,a=e.width,r=e.height,i=e.offset;return PM(n6(b6(b6(b6({},l6),n),{},{ticks:AM(n,!0),viewBox:{x:0,y:0,width:a,height:r}})),i.top,i.top+i.height,t)},A6={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:kV.grid};function T6(e){var t=dI(),n=uI(),r=cI(),i=b6(b6({},hQ(e,A6)),{},{x:rA(e.x)?e.x:r.left,y:rA(e.y)?e.y:r.top,width:rA(e.width)?e.width:r.width,height:rA(e.height)?e.height:r.height}),s=i.xAxisId,o=i.yAxisId,l=i.x,c=i.y,d=i.width,u=i.height,m=i.syncWithTicks,p=i.horizontalValues,h=i.verticalValues,f=aI(),g=XD(e=>ZW(e,"xAxis",s,f)),x=XD(e=>ZW(e,"yAxis",o,f));if(!NA(d)||!NA(u)||!rA(l)||!rA(c))return null;var v=i.verticalCoordinatesGenerator||C6,b=i.horizontalCoordinatesGenerator||P6,y=i.horizontalPoints,w=i.verticalPoints;if((!y||!y.length)&&"function"===typeof b){var j=p&&p.length,k=b({yAxis:x?b6(b6({},x),{},{ticks:j?p:x.ticks}):void 0,width:null!==t&&void 0!==t?t:d,height:null!==n&&void 0!==n?n:u,offset:r},!!j||m);gA(Array.isArray(k),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof k,"]")),Array.isArray(k)&&(y=k)}if((!w||!w.length)&&"function"===typeof v){var N=h&&h.length,S=v({xAxis:g?b6(b6({},g),{},{ticks:N?h:g.ticks}):void 0,width:null!==t&&void 0!==t?t:d,height:null!==n&&void 0!==n?n:u,offset:r},!!N||m);gA(Array.isArray(S),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof S,"]")),Array.isArray(S)&&(w=S)}return a.createElement(u1,{zIndex:i.zIndex},a.createElement("g",{className:"recharts-cartesian-grid"},a.createElement(k6,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),a.createElement(z6,w6({},i,{horizontalPoints:y})),a.createElement(E6,w6({},i,{verticalPoints:w})),a.createElement(S6,w6({},i,{offset:r,horizontalPoints:y,xAxis:g,yAxis:x})),a.createElement(_6,w6({},i,{offset:r,verticalPoints:w,xAxis:g,yAxis:x}))))}T6.displayName="CartesianGrid";var R6=["domain","range"],O6=["domain","range"];function D6(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function M6(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&(e[0]===t[0]&&e[1]===t[1])}function I6(e,t){if(e===t)return!0;var n=e.domain,a=e.range,r=D6(e,R6),i=t.domain,s=t.range,o=D6(t,O6);return!!M6(n,i)&&(!!M6(a,s)&&lY(r,o))}var F6=["dangerouslySetInnerHTML","ticks","scale"],L6=["id","scale"];function B6(){return B6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},B6.apply(null,arguments)}function q6(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U6(e){var t=ZD(),n=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{null===n.current?t(VG(e)):n.current!==e&&t(HG({prev:n.current,next:e})),n.current=e},[e,t]),(0,a.useLayoutEffect)(()=>()=>{n.current&&(t(WG(n.current)),n.current=null)},[t]),null}var V6=e=>{var t=e.xAxisId,n=e.className,r=XD(tI),i=aI(),s="xAxis",o=XD(e=>YW(e,s,t,i)),l=XD(e=>FW(e,t)),c=XD(e=>qW(e,t)),d=XD(e=>oH(e,t));if(null==l||null==c||null==d)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var u=q6(e,F6),m=(d.id,d.scale,q6(d,L6));return a.createElement(p6,B6({},u,m,{x:c.x,y:c.y,width:l.width,height:l.height,className:Lv("recharts-".concat(s," ").concat(s),n),viewBox:r,ticks:o,axisType:s}))},H6={allowDataOverflow:sH.allowDataOverflow,allowDecimals:sH.allowDecimals,allowDuplicatedCategory:sH.allowDuplicatedCategory,angle:sH.angle,axisLine
vendor: 5,771 bytes, line 2
2:l6.axisLine,height:sH.height,hide:!1,includeHidden:sH.includeHidden,interval:sH.interval,minTickGap:sH.minTickGap,mirror:sH.mirror,orientation:sH.orientation,padding:sH.padding,reversed:sH.reversed,scale:sH.scale,tick:sH.tick,tickCount:sH.tickCount,tickLine:l6.tickLine,tickSize:l6.tickSize,type:sH.type,xAxisId:0},W6=e=>{var t=hQ(e,H6);return a.createElement(a.Fragment,null,a.createElement(U6,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),a.createElement(V6,t))},K6=a.memo(W6,I6);K6.displayName="XAxis";var G6=["dangerouslySetInnerHTML","ticks","scale"],Z6=["id","scale"];function Y6(){return Y6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Y6.apply(null,arguments)}function Q6(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function $6(e){var t=ZD(),n=(0,a.useRef)(null);return(0,a.useLayoutEffect)(()=>{null===n.current?t(KG(e)):n.current!==e&&t(GG({prev:n.current,next:e})),n.current=e},[e,t]),(0,a.useLayoutEffect)(()=>()=>{n.current&&(t(ZG(n.current)),n.current=null)},[t]),null}var X6=e=>{var t=e.yAxisId,n=e.className,r=e.width,i=e.label,s=(0,a.useRef)(null),o=(0,a.useRef)(null),l=XD(tI),c=aI(),d=ZD(),u="yAxis",m=XD(e=>VW(e,t)),p=XD(e=>UW(e,t)),h=XD(e=>YW(e,u,t,c)),f=XD(e=>dH(e,t));if((0,a.useLayoutEffect)(()=>{if("auto"===r&&m&&!N1(i)&&!(0,a.isValidElement)(i)&&null!=f){var e=s.current;if(e){var n=e.getCalculatedWidth();Math.round(m.width)!==Math.round(n)&&d(YG({id:t,width:n}))}}},[h,m,d,i,t,r,f]),null==m||null==p||null==f)return null;e.dangerouslySetInnerHTML,e.ticks,e.scale;var g=Q6(e,G6),x=(f.id,f.scale,Q6(f,Z6));return a.createElement(p6,Y6({},g,x,{ref:s,labelRef:o,x:p.x,y:p.y,tickTextProps:"auto"===r?{width:void 0}:{width:r},width:m.width,height:m.height,className:Lv("recharts-".concat(u," ").concat(u),n),viewBox:l,ticks:h,axisType:u}))},J6={allowDataOverflow:cH.allowDataOverflow,allowDecimals:cH.allowDecimals,allowDuplicatedCategory:cH.allowDuplicatedCategory,angle:cH.angle,axisLine:l6.axisLine,hide:!1,includeHidden:cH.includeHidden,interval:cH.interval,minTickGap:cH.minTickGap,mirror:cH.mirror,orientation:cH.orientation,padding:cH.padding,reversed:cH.reversed,scale:cH.scale,tick:cH.tick,tickCount:cH.tickCount,tickLine:l6.tickLine,tickSize:l6.tickSize,type:cH.type,width:cH.width,yAxisId:0},e8=e=>{var t=hQ(e,J6);return a.createElement(a.Fragment,null,a.createElement($6,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),a.createElement(X6,t))},t8=a.memo(e8,I6);function n8(){return n8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},n8.apply(null,arguments)}function a8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function r8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t8.displayName="YAxis";var i8=32,s8={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function o8(e){var t,n=e.data,r=e.iconType,i=e.inactiveColor,s=16,o=i8/6,l=i8/3,c=n.inactive?i:n.color,d=null!==r&&void 0!==r?r:n.type;if("none"===d)return null;if("plainline"===d)return a.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:null===(t=n.payload)||void 0===t?void 0:t.strokeDasharray,x1:0,y1:s,x2:i8,y2:s,className:"recharts-legend-icon"});if("line"===d)return a.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(s,"h").concat(l,"\n A").concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(s,"\n H").concat(i8,"M").concat(2*l,",").concat(s,"\n A").concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(s),className:"recharts-legend-icon"});if("rect"===d)return a.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(4,"h").concat(i8,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(a.isValidElement(n.legendIcon)){var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a8(Object(n),!0).forEach(function(t){r8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n);return delete u.legendIcon,a.cloneElement(n.legendIcon,u)}return a.createElement(G0,{fill:c,cx:s,cy:s,size:i8,sizeType:"diameter",type:d})}function l8(e){var t=e.payload,n=e.iconSize,r=e.layout,i=e.formatter,s=e.inactiveColor,o=e.iconType,l={x:0,y:0,width:i8,height:i8},c={display:"horizontal"===r?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,r)=>{var u=t.formatter||i,m=Lv({"recharts-legend-item":!0,["legend-item-".concat(r)]:!0,inactive:t.inactive});if("none"===t.type)return null;var p=t.inactive?s:t.color,h=u?u(t.value,t,r):t.value;return a.createElement("li",n8({className:m,style:c,key:"legend-item-".concat(r)},G$(e,t,r)),a.createElement(NY,{width:n,height:n,viewBox:l,style:d,"aria-label":"".concat(h," legend icon")},a.createElement(o8,{data:t,iconType:o,inactiveColor:s})),a.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},h))})}var c8=e=>{var t=hQ(e,s8),n=t.payload,r=t.layout,i=t.align;if(!n||!n.length)return null;var s={padding:0,margin:0,textAlign:"horizontal"===r?i:"left"};return a.createElement("ul",{className:"recharts-default-legend",style:s},a.createElement(l8,n8({},t,{payload:n})))};var d8=["contextPayload"];function u8(){return u8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},u8.apply(null,arguments)}function m8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function p8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m8(Object(n),!0).forEach(function(t){h8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f8(e){return e.value}function g8(e){var t=e.contextPayload,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,d8),r=c5(t,e.payloadUniqBy,f8),i=p8(p8({},n),{},{payload:r});return a.isValidElement(e.content)?a.cloneElement(e.content,i):"function"===typeof e.content?a.createElement(e.content,i):a.createElement(c8,i)}function x8(e){var t=ZD();return(0,a.useEffect)(()=>{t(gZ(e))},[t,e]),null}function v8(e){var t=ZD();return(0,a.useEffect)(()=>(t(fZ(e)),()=>{t(fZ({width:0,height:0}))}),[t,e]),null}var b8={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function y8(e){var t=hQ(e,b8),n=XD(pM),r=(0,a.useContext)(GY),i=XD(e=>e.layout.margin),s=t.width,o=t.height,l=t.wrapperStyle,c=t.portal,d=Le(d5([n]),2),u=d[0],m=d[1],p=dI(),h=uI();if(null==p||null==h)return null;var f=p-((null===i||void 0===i?void 0:i.left)||0)-((null===i||void 0===i?void 0:i.right)||0),g=function(e,t,n,a){return"vertical"===e&&rA(t)?{height:t}:"horizontal"===e?{width:n||a}:null}(t.layout,o,s,f),x=c?l:p8(p8({position:"absolute",width:(null===g||void 0===g?void 0:g.width)||s||"auto",height:(null===g||void 0===g?void 0:g.height)||o||"auto"},function(e,t,n,a,r,i){var s,o,l=t.layout,c=t.align,d=t.verticalAlign;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(s="center"===c&&"vertical"===l?{left:((a||0)-i.width)/2}:"right"===c?{right:n&&n.right||0}:{left:n&&n.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(o="middle"===d?{top:((r||0)-i.height)/2}:"bottom"===d?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),p8(p8({},s),o)}(l,t,i,p,h,u)),l),v=null!==c&&void 0!==c?c:r;if(null==v||null==n)return null;var b=a.createElement("div",{className:"recharts-legend-wrapper",style:x,ref:m},a.createElement(x8,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!c&&a.createElement(v8,{width:u.width,height:u.height}),a.createElement(g8,u8({}
2,t,g,{margin:i,chartWidth:p,chartHeight:h,contextPayload:n})));return(0,Na.createPortal)(b,v)}function w8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function j8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w8(Object(n),!0).forEach(function(t){k8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function k8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N8(){return N8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},N8.apply(null,arguments)}y8.displayName="Legend";var S8=(e,t,n,a,r,i)=>{var s=i.x,o=i.y,l=i.segment,c=i.ifOverflow,d=iA(s);return iA(o)?((e,t,n,a,r,i)=>{var s=i.x,o=i.width,l=r.y.apply(e,{position:n});if(nA(l))return null;if("discard"===t&&!r.y.isInRange(l))return null;var c=[{x:s+o,y:l},{x:s,y:l}];return"left"===a?c.reverse():c})(o,c,n,r,e,t):d?((e,t,n,a,r,i)=>{var s=i.y,o=i.height,l=r.x.apply(e,{position:n});if(nA(l))return null;if("discard"===t&&!r.x.isInRange(l))return null;var c=[{x:l,y:s+o},{x:l,y:s}];return"top"===a?c.reverse():c})(s,c,n,a,e,t):null!=l&&2===l.length?((e,t,n,a)=>{var r=e.map(e=>a.apply(e,{position:n}));return"discard"===t&&r.some(e=>!a.isInRange(e))?null:r})(l,c,n,e):null};function _8(e){var t=ZD();return(0,a.useEffect)(()=>(t(oZ(e)),()=>{t(lZ(e))})),null}function z8(e){var t=e.xAxisId,n=e.yAxisId,r=e.shape,i=e.className,s=e.ifOverflow,o=aI(),l=(0,a.useContext)(lQ),c=XD(e=>lH(e,t)),d=XD(e=>uH(e,n)),u=XD(e=>AW(e,"xAxis",t,o)),m=XD(e=>AW(e,"yAxis",n,o)),p=oI();if(!l||!p||null==c||null==d||null==u||null==m)return null;var h=(e=>{var t=Object.keys(e).reduce((t,n)=>K4(K4({},t),{},{[n]:Y4.create(e[n])}),{});return K4(K4({},t),{},{apply(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=n.bandAware,r=n.position;return Object.fromEntries(Object.entries(e).map(e=>{var n=Le(e,2),i=n[0],s=n[1];return[i,t[i].apply(s,{bandAware:a,position:r})]}))},isInRange:e=>Object.keys(e).every(n=>t[n].isInRange(e[n]))})})({x:u,y:m}),f=S8(h,p,e.position,c.orientation,d.orientation,e);if(!f)return null;var g=Le(f,2),x=g[0],v=x.x,b=x.y,y=g[1],w=y.x,j=y.y,k=j8(j8({clipPath:"hidden"===s?"url(#".concat(l,")"):void 0},wY(e)),{},{x1:v,y1:b,x2:w,y2:j}),N=Z4({x1:v,y1:b,x2:w,y2:j});return a.createElement(u1,{zIndex:e.zIndex},a.createElement(o$,{className:Lv("recharts-reference-line",i)},((e,t)=>{var n;if(a.isValidElement(e))n=a.cloneElement(e,t);else if("function"===typeof e)n=e(t);else{if(!kA(t.x1)||!kA(t.y1)||!kA(t.x2)||!kA(t.y2))return null;n=a.createElement("line",N8({},t,{className:"recharts-reference-line-line"}))}return n})(r,k),a.createElement(y1,N8({},N,{lowerWidth:N.width,upperWidth:N.width}),a.createElement(P1,{label:e.label}),e.children)))}var E8={ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle",zIndex:kV.line};function C8(e){var t=hQ(e,E8);return a.createElement(a.Fragment,null,a.createElement(_8,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),a.createElement(z8,t))}function P8(){return P8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},P8.apply(null,arguments)}C8.displayName="ReferenceLine";var A8=e=>{var t=e.cx,n=e.cy,r=e.r,i=Lv("recharts-dot",e.className);return rA(t)&&rA(n)&&rA(r)?a.createElement("circle",P8({}
2,bY(e),K$(e),{className:i,cx:t,cy:n,r:r})):null},T8=["points"];function R8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function O8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R8(Object(n),!0).forEach(function(t){D8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function D8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M8(){return M8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},M8.apply(null,arguments)}function I8(e){var t=e.option,n=e.dotProps,r=e.className;if((0,a.isValidElement)(t))return(0,a.cloneElement)(t,n);if("function"===typeof t)return t(n);var i=Lv(r,"boolean"!==typeof t?t.className:""),s=null!==n&&void 0!==n?n:{},o=(s.points,function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(s,T8));return a.createElement(A8,M8({},o,{className:i}))}function F8(e){var t=e.points,n=e.dot,r=e.className,i=e.dotClassName,s=e.dataKey,o=e.baseProps,l=e.needClip,c=e.clipPathId,d=e.zIndex,u=void 0===d?kV.scatter:d;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,n))return null;var m,p=YX(n),h=null==(m=n)?null:(0,a.isValidElement)(m)?wY(m.props):"object"!==typeof m||Array.isArray(m)?null:wY(m),f=t.map((e,r)=>{var l,c,d=O8(O8(O8({r:3},o),h),{},{index:r,cx:null!==(l=e.x)&&void 0!==l?l:void 0,cy:null!==(c=e.y)&&void 0!==c?c:void 0,dataKey:s,value:e.value,payload:e.payload,points:t});return a.createElement(I8,{key:"dot-".concat(r),option:n,dotProps:d,className:i})}),g={};return l&&null!=c&&(g.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(c,")")),a.createElement(u1,{zIndex:u},a.createElement(o$,M8({className:r},g),f))}function L8(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function B8(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L8(Object(n),!0).forEach(function(t){q8(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L8(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function q8(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U8=e=>{var t=e.point,n=e.childIndex,r=e.mainColor,i=e.activeDot,s=e.dataKey,o=e.clipPath;if(!1===i||null==t.x||null==t.y)return null;var l,c=B8(B8(B8({},{index:n,dataKey:s,cx:t.x,cy:t.y,r:4,fill:null!==r&&void 0!==r?r:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),yY(i)),K$(i));return l=(0,a.isValidElement)(i)?(0,a.cloneElement)(i,c):"function"===typeof i?i(c):a.createElement(A8,c),a.createElement(o$,{className:"recharts-active-dot",clipPath:o},l)};function V8(e){var t=e.points,n=e.mainColor,r=e.activeDot,i=e.itemDataKey,s=e.clipPath,o=e.zIndex,l=void 0===o?kV.activeDot:o,c=XD(aG),d=XD(mG);if(null==t||null==d)return null;var u=t.find(e=>d.includes(e.payload));return mA(u)?null:a.createElement(u1,{zIndex:l},a.createElement(U8,{point:u,childIndex:Number(c),mainColor:n,dataKey:i,activeDot:r,clipPath:s}))}var H8=["children"];var W8={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},K8=(0,a.createContext)(W8);function G8(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}(e,H8);return a.createElement(K8.Provider,{value:n},t)}function Z8(e,t){var n,a,r=XD(t=>lH(t,e)),i=XD(e=>uH(e,t)),s=null!==(n=null===r||void 0===r?void 0:r.allowDataOverflow)&&void 0!==n?n:sH.allowDataOverflow,o=null!==(a=null===i||void 0===i?void 0:i.allowDataOverflow)&&void 0!==a?a:cH.allowDataOverflow;return{needClip:s||o,needClipX:s,needClipY:o}}function Y8(e){var t=e.xAxisId,n=e.yAxisId,r=e.clipPathId,i=oQ(),s=Z8(t,n),o=s.needClipX,l=s.needClipY;if(!s.needClip||!i)return null;var c=i.x,d=i.y,u=i.width,m=i.height;return a.createElement("clipPath",{id:"clipPath-".concat(r)},a.createElement("rect",{x:o?c:c-u/2,y:l?d:d-m/2,width:o?u:2*u,height:l?m:2*m}))}var Q8=(e,t,n,a)=>$W(e,"xAxis",t,a),$8=(e,t,n,a)=>QW(e,"xAxis",t,a),X8=(e,t,n,a)=>$W(e,"yAxis",n,a),J8=(e,t,n,a)=>QW(e,"yAxis",n,a),e7=VD([mI,Q8,X8,$8,J8],(e,t,n,a,r)=>CM(e,"xAxis")?LM(t,a,!1):LM(n,r,!1));function t7(e){return"line"===e.type}var n7=VD([vH,(e,t,n,a,r)=>r],(e,t)=>e.filter(t7).find(e=>e.id===t)),a7=VD([mI,Q8,X8,$8,J8,n7,e7,qU],(e,t,n,a,r,i,s,o)=>{var l=o.chartData,c=o.dataStartIndex,d=o.dataEndIndex;if(null!=i&&null!=t&&null!=n&&null!=a&&null!=r&&0!==a.length&&0!==r.length&&null!=s&&("horizontal"===e||"vertical"===e)){var u,m=i.dataKey,p=i.data;if(null!=(u=null!=p&&p.length>0?p:null===l||void 0===l?void 0:l.slice(c,d+1)))return function(e){var t=e.layout,n=e.xAxis,a=e.
2yAxis,r=e.xAxisTicks,i=e.yAxisTicks,s=e.dataKey,o=e.bandSize,l=e.displayedData;return l.map((e,l)=>{var c=EM(e,s);if("horizontal"===t)return{x:DM({axis:n,ticks:r,bandSize:o,entry:e,index:l}),y:mA(c)?null:a.scale(c),value:c,payload:e};var d=mA(c)?null:n.scale(c),u=DM({axis:a,ticks:i,bandSize:o,entry:e,index:l});return null==d||null==u?null:{x:d,y:u,value:c,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:n,xAxisTicks:a,yAxisTicks:r,dataKey:m,bandSize:s,displayedData:u})}});var r7=["id"],i7=["type","layout","connectNulls","needClip","shape"],s7=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function o7(){return o7=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},o7.apply(null,arguments)}function l7(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,a)}return n}function c7(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l7(Object(n),!0).forEach(function(t){d7(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l7(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d7(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u7(e,t){if(null==e)return{};var n,a,r=function(e,t){if(null==e)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;n[a]=e[a]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var m7=e=>{var t=e.dataKey,n=e.name,a=e.stroke,r=e.legendType;return[{inactive:e.hide,dataKey:t,type:r,color:a,value:qM(n,t),payload:e}]},p7=a.memo(e=>{var t=e.dataKey,n=e.data,r=e.stroke,i=e.strokeWidth,s=e.fill,o=e.name,l=e.hide,c=e.unit,d=e.tooltipType,u=e.id,m={dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:s,dataKey:t,nameKey:void 0,name:qM(o,t),hide:l,type:d,color:r,unit:c,graphicalItemId:u}};return a.createElement(t1,{tooltipEntrySettings:m})}),h7=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function f7(e,t){for(var n=e.length%2!==0?[...e,0]:e,a=[],r=0;r<t;++r)a=[...a,...n];return a}function g7(e){var t=e.clipPathId,n=e.points,r=e.props,i=r.dot,s=r.dataKey,o=r.needClip,l=(r.id,bY(u7(r,r7)));return a.createElement(F8,{points:n,dot:i,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:s,baseProps:l,needClip:o,clipPathId:t})}function x7(e){var t=e.showLabels,n=e.children,r=e.points,i=(0,a.useMemo)(()=>null===r||void 0===r?void 0:r.map(e=>{var t,n,a={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(n=e.y)&&void 0!==n?n:0,width:0,lowerWidth:0,upperWidth:0,height:0};return c7(c7({},a),{},{value:e.value,payload:e.payload,viewBox:a,parentViewBox:void 0,fill:void 0})}),[r]);return a.createElement(I1,{value:t?i:void 0},n)}function v7(e){var t=e.clipPathId,n=e.pathRef,r=e.points,i=e.strokeDasharray,s=e.props,o=s.type,l=s.layout,c=s.connectNulls,d=s.needClip,u=s.shape,m=c7(c7({},wY(u7(s,i7))),{},{fill:"none",className:"recharts-line-curve",clipPath:d?"url(#clipPath-".concat(t,")"):void 0,points:r,type:o,layout:l,connectNulls:c,strokeDasharray:null!==i&&void 0!==i?i:s.strokeDasharray});return a.createElement(a.Fragment,null,(null===r||void 0===r?void 0:r.length)>1&&a.createElement(J0,o7({shapeType:"curve",option:u},m,{pathRef:n})),a.createElement(g7,{points:r,clipPathId:t,props:s}))}function b7(e){var t=e.clipPathId,n=e.props,r=e.pathRef,i=e.previousPointsRef,s=e.longestAnimatedLengthRef,o=n.points,l=n.strokeDasharray,c=n.isAnimationActive,d=n.animationBegin,u=n.animationDuration,m=n.animationEasing,p=n.animateNewValues,h=n.width,f=n.height,g=n.onAnimationEnd,x=n.onAnimationStart,v=i.current,b=NJ(o,"recharts-line-"),y=(0,a.useRef)(b),w=Le((0,a.useState)(!1),2),j=w[0],k=w[1],N=!j,S=(0,a.useCallback)(()=>{"function"===typeof g&&g(),k(!1)},[g]),_=(0,a.useCallback)(()=>{"function"===typeof x&&x(),k(!0)},[x]),z=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}(r.current),E=(0,a.useRef)(0);y.current!==b&&(E.current=s.current,y.current=b);var C=E.current;return a.createElement(x7,{points:o,showLabels:N},n.children,a.createElement(kJ,{animationId:b,begin:d,duration:u,isActive:c,easing:m,onAnimationEnd:S,onAnimationStart:_,key:b},e=>{var d,u=dA(C,z+C,e),m=Math.min(u,z);if(c)if(l){var g="".concat(l).split(/[,\s]+/gim).map(e=>parseFloat(e));d=((e,t,n)=>{var a=n.reduce((e,t)=>
2e+t);if(!a)return h7(t,e);for(var r=Math.floor(e/a),i=e%a,s=t-e,o=[],l=0,c=0;l<n.length;c+=n[l],++l)if(c+n[l]>i){o=[...n.slice(0,l),i-c];break}var d=o.length%2===0?[0,s]:[s];return[...f7(n,r),...o,...d].map(e=>"".concat(e,"px")).join(", ")})(m,z,g)}else d=h7(z,m);else d=null==l?void 0:String(l);if(e>0&&z>0&&(i.current=o,s.current=Math.max(s.current,m)),v){var x=v.length/o.length,b=1===e?o:o.map((t,n)=>{var a=Math.floor(n*x);if(v[a]){var r=v[a];return c7(c7({},t),{},{x:dA(r.x,t.x,e),y:dA(r.y,t.y,e)})}return c7(c7({},t),{},p?{x:dA(2*h,t.x,e),y:dA(f/2,t.y,e)}:{x:t.x,y:t.y})});return i.current=b,a.createElement(v7,{props:n,points:b,clipPathId:t,pathRef:r,strokeDasharray:d})}return a.createElement(v7,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),a.createElement(q1,{label:n.label}))}function y7(e){var t=e.clipPathId,n=e.props,r=(0,a.useRef)(null),i=(0,a.useRef)(0),s=(0,a.useRef)(null);return a.createElement(b7,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:s})}var w7=(e,t)=>{var n,a;return{x:null!==(n=e.x)&&void 0!==n?n:void 0,y:null!==(a=e.y)&&void 0!==a?a:void 0,value:e.value,errorVal:EM(e.payload,t)}};class j7 extends a.Component{render(){var e=this.props,t=e.hide,n=e.dot,r=e.points,i=e.className,s=e.xAxisId,o=e.yAxisId,l=e.top,c=e.left,d=e.width,u=e.height,m=e.id,p=e.needClip,h=e.zIndex;if(t)return null;var f=Lv("recharts-line",i),g=m,x=function(e){var t=yY(e);if(null!=t){var n=t.r,a=t.strokeWidth,r=Number(n),i=Number(a);return(Number.isNaN(r)||r<0)&&(r=3),(Number.isNaN(i)||i<0)&&(i=2),{r:r,strokeWidth:i}}return{r:3,strokeWidth:2}}(n),v=x.r,b=x.strokeWidth,y=YX(n),w=2*v+b,j=p?"url(#clipPath-".concat(y?"":"dots-").concat(g,")"):void 0;return a.createElement(u1,{zIndex:h},a.createElement(o$,{className:f},p&&a.createElement("defs",null,a.createElement(Y8,{clipPathId:g,xAxisId:s,yAxisId:o}),!y&&a.createElement("clipPath",{id:"clipPath-dots-".concat(g)},a.createElement("rect",{x:c-w/2,y:l-w/2,width:d+w,height:u+w}))),a.createElement(G8,{xAxisId:s,yAxisId:o,data:r,dataPointFormatter:w7,errorBarOffset:0},a.createElement(y7,{props:this.props,clipPathId:g}))),a.createElement(V8,{activeDot:this.props.activeDot,points:r,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:j}))}}var k7={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:kV.line,type:"linear"};function N7(e){var t=hQ(e,k7),n=t.activeDot,r=t.animateNewValues,i=t.animationBegin,s=t.animationDuration,o=t.animationEasing,l=t.connectNulls,c=t.dot,d=t.hide,u=t.isAnimationActive,m=t.label,p=t.legendType,h=t.xAxisId,f=t.yAxisId,g=t.id,x=u7(t,s7),v=Z8(h,f).needClip,b=oQ(),y=pI(),w=aI(),j=XD(e=>a7(e,h,f,w,g));if("horizontal"!==y&&"vertical"!==y||null==j||null==b)return null;var k=b.height,N=b.width,S=b.x,_=b.y;return a.createElement(j7,o7({},x,{id:g,connectNulls:l,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:s,animationEasing:o,isAnimationActive:u,hide:d,label:m,legendType:p,xAxisId:h,yAxisId:f,points:j,layout:y,height:k,width:N,left:S,top:_,needClip:v}))}function S7(e){var t=hQ(e,k7),n=aI();return a.createElement(s1,{id:t.id,type:"line"},e=>a.createElement(a.Fragment,null,a.createElement(n1,{legendPayload:m7(t)}),a.createElement(p7,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),a.createElement(l1,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),a.createElement(N7,o7({},t,{id:e}))))}var _7=a.memo(S7,lY);_7.displayName="Line";const z7="#75A33D",E7=e=>"\u20ac "+Math.round(e||0).toLocaleString("de-DE"),C7=e=>{let t=e.cx,n=e.cy,a=e.value,r=e.color;return null==t||null==n||null==a?null:(0,Te.jsxs)("g",{style:{pointerEvents:"none"},children:[(0,Te.jsx)("circle",{cx:t,cy:n,r:20,fill:r,stroke:"#fff",strokeWidth:2.5}),(0,Te.jsx)("text",{x:t,y:n,textAnchor:"middle",dominantBaseline:"central",fontSize:12,fontWeight:700,fill:"#fff",children:"".concat(Math.round((a||0)/1e3),"k")})]})},P7=e=>{let t=e.active,n=e.payload;if(!t||!n||!n.length)return null;const a=n[0].payload;return(0,Te.jsxs)("div",{className:"rounded-lg border border-border bg-white px-3 py-2 shadow-md text-xs","data-testid":"revenue-tooltip",children:[(0,Te.jsx)("div",{className:"font-semibold mb-1.5",children:a.label}),(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-6",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)("span",{style:{background:z7},className:"inline-block w-2.5 h-2.5 rounded-full"}),"Umsatz Fix"]}),(0,Te.jsx)("span",{className:"tabular-nums font-medium",children:E7(a.fix)})]})]})};function A7(){var e,t,n;const r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)(!0),2),l=o[0],c=o[1];(0,a.useEffect)(()=>{let e=!0;return(async()=>{try{const t=await Ps.get("/admin/revenue-preview");e&&s(t.data)}catch(rse){e&&s({mrr:0,arr:0,active_contracts:0,today_index:6,year_sum:0,series:[]})}finally{e&&c(!1)}})(),()=>{e=!1}},[]);const d=(null===i||void 0===i?void 0:i.series)||[],u=null===(e=d[null!==(t=null===i||void 0===i?void 0:i.today_index)&&void 0!==t?t:0])||void 0===e?void 0:e.label;return(0,Te.jsxs)("div",{"data-testid":"billing-preview-page",children:[(0,Te.jsx)(ky,{title:"Vorschau",titleId:"admin.preview.page_title",subt
2itle:"Tats\xe4chlicher Umsatz aus laufenden Vertr\xe4gen \u2013 kumulierte Entwicklung \xfcber 12 Monate",subtitleId:"admin.preview.page_subtitle"}),(0,Te.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-5","data-testid":"revenue-kpis",children:[(0,Te.jsxs)(by,{className:"p-5","data-testid":"kpi-fix",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_fix",as:"span",children:"Umsatz Fix (heute)"})}),(0,Te.jsx)("p",{className:"font-heading text-2xl mt-1",style:{color:z7},children:E7(null===i||void 0===i?void 0:i.arr)}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_fix_hint",as:"span",children:"Jahresumsatz aus laufenden Vertr\xe4gen"})})]}),(0,Te.jsxs)(by,{className:"p-5","data-testid":"kpi-mrr",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_mrr",as:"span",children:"Monatlicher Umsatz (MRR)"})}),(0,Te.jsx)("p",{className:"font-heading text-2xl mt-1",style:{color:z7},children:E7(null===i||void 0===i?void 0:i.mrr)}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_mrr_hint",as:"span",children:"Tats\xe4chlich wiederkehrend pro Monat"})})]}),(0,Te.jsxs)(by,{className:"p-5","data-testid":"kpi-active",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_active",as:"span",children:"Aktive Vertr\xe4ge"})}),(0,Te.jsx)("p",{className:"font-heading text-2xl mt-1 text-foreground",children:null!==(n=null===i||void 0===i?void 0:i.active_contracts)&&void 0!==n?n:0}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.preview.kpi_active_hint",as:"span",children:"Laufend & in K\xfcndigung"})})]})]}),(0,Te.jsxs)(by,{className:"p-5","data-testid":"revenue-preview-card",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2",children:[(0,Te.jsx)(US,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"admin.preview.chart_title",as:"span",children:"Umsatzentwicklung (kumuliert)"})]}),(0,Te.jsxs)("span",{className:"text-sm text-muted-foreground",children:["Jahresumsatz kumuliert ",(0,Te.jsx)("b",{className:"text-foreground",children:E7(null===i||void 0===i?void 0:i.year_sum)})]})]}),l?(0,Te.jsxs)("div",{className:"h-[460px] flex items-center justify-center text-muted-foreground","data-testid":"revenue-loading",children:[(0,Te.jsx)(Of,{className:"animate-spin mr-2",size:18})," Lade tats\xe4chlichen Umsatz \u2026"]}):(0,Te.jsx)("div",{style:{width:"100%",height:460},"data-testid":"revenue-preview-chart",children:(0,Te.jsx)(RA,{children:(0,Te.jsxs)(H4,{data:d,margin:{top:30,right:30,left:10,bottom:0},children:[(0,Te.jsx)(T6,{strokeDasharray:"3 3",stroke:"#E5E7EB"}),(0,Te.jsx)(K6,{dataKey:"label",tick:{fontSize:12},padding:{left:20,right:20}}),(0,Te.jsx)(t8,{tickFormatter:e=>"".concat(Math.round(e/1e3),"k"),tick:{fontSize:12},width:48}),(0,Te.jsx)(M5,{content:(0,Te.jsx)(P7,{})}),(0,Te.jsx)(y8,{}),u&&(0,Te.jsx)(C8,{x:u,stroke:"#6B7280",strokeDasharray:"4 4",label:{value:"Heute",position:"top",fontSize:12,fill:"#6B7280"}}),(0,Te.jsx)(_7,{type:"monotone",dataKey:"fix",name:"Umsatz Fix",stroke:z7,strokeWidth:5,activeDot:!1,connectNulls:!0,dot:e=>{var t;return(0,Te.jsx)(C7,{cx:e.cx,cy:e.cy,value:e.payload.fix,color:z7},null!==(t=e.key)&&void 0!==t?t:"f-".concat(e.index))}})]})})})]})]})}function T7(){const e=ln().invoiceId,t=Le((0,a.useState)(""),2),n=t[0],r=t[1];return(0,a.useEffect)(()=>{let t=!1;return _s.post("".concat("https://login.persentis.com","/api/payments/invoice-checkout"),{invoice_id:e,origin_url:window.location.origin}).then(e=>{t||(window.location.href=e.data.checkout_url)}).catch(e=>{var t,n;return r((null===e||void 0===e||null===(t=e.response)||void 0===t||null===(n=t.data)||void 0===n?void 0:n.detail)||"Zahlung konnte nicht gestartet werden.")}),()=>{t=!0}},[e]),(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#FDFBF7] p-6","data-testid":"payment-redirect-page",children:(0,Te.jsx)("div",{className:"text-center max-w-md",children:n?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(V5,{className:"mx-auto text-red-600 mb-4",size:40}),(0,Te.jsx)("h1",{className:"font-heading text-xl mb-2",children:"Zahlung nicht m\xf6glich"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm","data-testid":"payment-redirect-error",children:n})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{className:"mx-auto text-[#75A33D] mb-4 animate-spin",size:40}),(0,Te.jsx)("h1",{className:"font-heading text-xl mb-2",children:"Einen Moment \u2026"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm",children:"Sie werden zur sicheren Zahlung weitergeleitet."})]})})})}const R7=kf("landmark",[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]]),O7=(e,t)=>"EUR"===(t||"EUR").toUpperCase()?"\u20ac "+Number(e||0).toLocaleStr
2ing("de-DE",{minimumFractionDigits:2}):"".concat(e," ").concat(t),D7={care:"/dashboard",analytics:"/analytics/dashboard",pulse:"/pulse/einmalig/dashboard",profiling:"/welcome",boarding:"/welcome"},M7={care:"PERSENTIS Care",analytics:"PERSENTIS Analytics",pulse:"PERSENTIS Pulse",profiling:"PERSENTIS Profiling",boarding:"PERSENTIS Boarding"},I7={card:{h:"Vielen Dank!",m:"Herzlichen Dank f\xfcr Ihre Bestellung \u2013 wir haben den Betrag bereits erhalten.",bank:!1},sepa_debit:{h:"Vielen Dank!",m:"Der offene Betrag wird automatisch von Ihrem Konto abgebucht. Herzlichen Dank!",bank:!1},customer_balance:{h:"Bestellung erhalten",m:"Herzlichen Dank f\xfcr Ihre Bestellung. Bitte \xfcberweisen Sie den Betrag innerhalb des Zahlungsziels \u2013 die Details finden Sie auf Ihrer Rechnung.",bank:!0}};function F7(){const e=new URLSearchParams(nn().search).get("session_id"),t=Le((0,a.useState)("polling"),2),n=t[0],r=t[1],i=Le((0,a.useState)(null),2),s=i[0],o=i[1];(0,a.useEffect)(()=>{if(!e)return void r("pending");let t=0,n=!1;const a=async()=>{try{const t=await _s.get("".concat("https://login.persentis.com","/api/payments/status/").concat(e));if(o(t.data),"paid"===t.data.payment_status||t.data.payment_method)return void r("done")}catch(rse){}t+=1,t<8&&!n?setTimeout(a,2e3):n||r("pending")};return a(),()=>{n=!0}},[e]);const l=I7[null===s||void 0===s?void 0:s.payment_method]||{h:"Vielen Dank!",m:"Ihre Zahlung war erfolgreich.",bank:!1};return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#FDFBF7] p-6","data-testid":"payment-success-page",children:(0,Te.jsxs)("div",{className:"bg-white border border-[#EAECE8] rounded-2xl p-10 text-center max-w-md shadow-sm",children:["polling"===n&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{className:"mx-auto text-[#75A33D] mb-4 animate-spin",size:44}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Bestellung wird verarbeitet \u2026"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm",children:"Einen Moment bitte."})]}),"done"===n&&(0,Te.jsxs)("div",{"data-testid":"payment-paid",children:[l.bank?(0,Te.jsx)(R7,{className:"mx-auto text-[#75A33D] mb-4",size:50}):(0,Te.jsx)(Ef,{className:"mx-auto text-[#75A33D] mb-4",size:52}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2","data-testid":"payment-done-heading",children:l.h}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm mb-1","data-testid":"payment-method-message",children:l.m}),s&&(0,Te.jsxs)("p",{className:"text-base font-semibold mt-3",children:[s.number?"Rechnung ".concat(s.number," \xb7 "):"",O7(s.amount,s.currency)]}),s&&s.order&&(0,Te.jsxs)("div",{className:"mt-5 text-left border border-[#EAECE8] rounded-xl p-4 bg-[#FAFAF7]","data-testid":"payment-order-summary",children:[s.order.products&&s.order.products.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-[#75A33D] mb-2","data-testid":"payment-activated-title",children:"Produkt aktiviert \u2013 jetzt freigeschaltet"}),(0,Te.jsx)("ul",{className:"space-y-1 mb-3","data-testid":"payment-order-products",children:s.order.products.map(e=>(0,Te.jsxs)("li",{className:"flex items-center gap-2 text-sm",children:[(0,Te.jsx)(Ef,{size:15,className:"text-[#75A33D] shrink-0"})," ",e]},e))})]}),s.order.next_billing&&(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground","data-testid":"payment-next-billing",children:["N\xe4chstes Abrechnungsdatum:"," ",(0,Te.jsx)("b",{className:"text-foreground",children:new Date(s.order.next_billing).toLocaleDateString("de-DE")}),"prepay"===s.order.plan?" (Jahres-Verl\xe4ngerung)":""]})]}),s&&s.order&&(s.order.product_keys||[]).filter(e=>D7[e]).slice(0,1).map(e=>(0,Te.jsxs)(fa,{to:D7[e],"data-testid":"payment-goto-product",className:"mt-6 inline-flex items-center justify-center gap-2 w-full rounded-lg bg-[#75A33D] px-5 py-3 text-sm font-semibold text-white hover:bg-[#688f36] transition-colors",children:["Weiter zu ",M7[e]||"Ihrem Produkt"," ",(0,Te.jsx)(KS,{size:16})]},e))]}),"pending"===n&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{className:"mx-auto text-amber-500 mb-4 animate-spin",size:44}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Bestellung in Bearbeitung"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm",children:"Sobald der Checkout best\xe4tigt ist, wird Ihre Rechnung erstellt und Ihre Produkte freigeschaltet."})]}),(0,Te.jsx)(fa,{to:"/billing",className:"inline-block mt-6 text-sm text-[#75A33D] font-semibold hover:underline","data-testid":"payment-portal-link",children:"Zur \xdcbersicht"})]})})}const L7=kf("circle-x",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);function B7(){const e=new URLSearchParams(nn().search).get("invoice_id");return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#FDFBF7] p-6","data-testid":"payment-cancel-page",children:(0,Te.jsxs)("div",{className:"bg-white border border-[#
2EAECE8] rounded-2xl p-10 text-center max-w-md shadow-sm",children:[(0,Te.jsx)(L7,{className:"mx-auto text-red-500 mb-4",size:48}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Zahlung abgebrochen"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm",children:"Es wurde nichts abgebucht. Sie k\xf6nnen den Vorgang jederzeit erneut starten."}),e&&(0,Te.jsx)(fa,{to:"/pay/".concat(e),className:"inline-block mt-6 text-sm text-[#75A33D] font-semibold hover:underline","data-testid":"payment-retry-link",children:"Erneut versuchen"}),(0,Te.jsx)("div",{children:(0,Te.jsx)(fa,{to:"/login",className:"inline-block mt-3 text-sm text-muted-foreground hover:underline",children:"Zum Login"})})]})})}function q7(){const e=new URLSearchParams(nn().search).get("session_id"),t=sn(),n=Le((0,a.useState)("loading"),2),r=n[0],i=n[1],s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=Le((0,a.useState)(""),2),d=c[0],u=c[1];return(0,a.useEffect)(()=>{if(!e)return i("error"),void u("Sitzung nicht gefunden.");Ps.get("/payments/setup-status/".concat(e)).then(e=>{e.data.saved?(l(e.data.card),i("saved"),setTimeout(()=>t("/billing"),3500)):(i("error"),u("Die Zahlungsmethode konnte nicht gespeichert werden."))}).catch(e=>{i("error"),u(Cs(e))})},[e,t]),(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-[#FDFBF7] p-6","data-testid":"payment-card-saved-page",children:(0,Te.jsxs)("div",{className:"bg-white border border-[#EAECE8] rounded-2xl p-10 text-center max-w-md shadow-sm",children:["loading"===r&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{className:"mx-auto text-[#75A33D] mb-4 animate-spin",size:44}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Zahlungsmethode wird gespeichert \u2026"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm",children:"Einen Moment bitte."})]}),"saved"===r&&(0,Te.jsxs)("div",{"data-testid":"payment-card-saved-success",children:[(0,Te.jsx)(Ef,{className:"mx-auto text-[#75A33D] mb-4",size:52}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Zahlungsmethode hinterlegt"}),o&&(0,Te.jsxs)("p",{className:"text-base font-semibold mt-1 capitalize",children:[o.card_brand," \u2022\u2022\u2022\u2022 ",o.card_last4]}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm mt-2",children:"Sie k\xf6nnen den Auto-Einzug nun im Rechnungsbereich aktivieren."})]}),"error"===r&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(V5,{className:"mx-auto text-red-600 mb-4",size:48}),(0,Te.jsx)("h1",{className:"font-heading text-2xl mb-2",children:"Nicht m\xf6glich"}),(0,Te.jsx)("p",{className:"text-muted-foreground text-sm","data-testid":"payment-card-saved-error",children:d})]}),(0,Te.jsx)(fa,{to:"/billing",className:"inline-block mt-6 text-sm text-[#75A33D] font-semibold hover:underline","data-testid":"payment-card-saved-link",children:"Zur\xfcck zu Plan & Rechnungen"})]})})}const U7=kf("badge-check",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),V7=kf("circle-minus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]),H7=kf("undo-2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]),W7=kf("circle-play",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polygon",{points:"10 8 16 12 10 16 10 8",key:"1cimsy"}]]),K7=e=>"\u20ac ".concat(Number(e||0).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})),G7=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",Z7={draft:{label:"Entwurf",cls:"bg-zinc-200 text-zinc-700"},issued:{label:"Ausgestellt",cls:"bg-blue-100 text-blue-800"},paid:{label:"Bezahlt",cls:"bg-green-100 text-green-800"},void:{label:"Verworfen",cls:"bg-red-100 text-red-800"}},Y7={standard_at:"AT 20 %",reverse_charge_eu:"Reverse Charge",oss_eu_b2c:"OSS (AT-USt)",not_taxable_third:"Drittland (steuerfrei)"};function Q7(e){let t=e.status;const n=Z7[t]||Z7.draft;return(0,Te.jsx)("span",{"data-testid":"invoice-status-".concat(t),className:"inline-block px-2.5 py-1 rounded-full text-xs font-bold ".concat(n.cls),children:n.label})}const $7={failed:{label:"Auto-Einzug fehlgeschlagen",cls:"bg-red-100 text-red-800"},requires_action:{label:"Best\xe4tigung erforderlich (3DS)",cls:"bg-amber-100 text-amber-800"},processing:{label:"Auto-Einzug in Bearbeitung",cls:"bg-blue-100 text-blue-800"}};function X7(e){let t=e.inv;const n=$7[t.auto_charge_status];return n&&"paid"!==t.status?(0,Te.jsxs)("span",{"data-testid":"invoice-autocharge-".concat(t.id),title:t.auto_charge_error||n.label,className:"mt-1 inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-[11px] font-semibold ".concat(n.cls),children:[(0,Te.jsx)(k_,{size:11})," ",n.label]}):null}function J7(e){let t=e.data,n=e.onCancel,a=e.onConfirm;return(0,Te.jsx)(ey,{open:!!t,onOpenChange:e=>{e||n()},children:(0,Te.jsxs)(ay,{className:"max-w-md","data-testid":"billing-confirm-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{"data-testid":"billing-confirm-title",children:null===t||void 0===t?void 0:t.t
2itle}),(0,Te.jsx)(oy,{"data-testid":"billing-confirm-message",children:null===t||void 0===t?void 0:t.message})]}),(0,Te.jsxs)(iy,{className:"gap-2",children:[(0,Te.jsx)(fy,{variant:"ghost",onClick:n,"data-testid":"billing-confirm-cancel",children:"Abbrechen"}),(0,Te.jsx)(fy,{variant:(null!==t&&void 0!==t&&t.danger,"primary"),className:null!==t&&void 0!==t&&t.danger?"bg-red-600 hover:bg-red-700":"",onClick:a,"data-testid":"billing-confirm-ok",children:(null===t||void 0===t?void 0:t.confirmLabel)||"Best\xe4tigen"})]})]})})}function e9(){var e,t;const n=Le((0,a.useState)([]),2),r=n[0],i=n[1],s=Le((0,a.useState)(!0),2),o=s[0],l=s[1],c=Le((0,a.useState)(!1),2),u=c[0],m=c[1],p=Le((0,a.useState)(""),2),h=p[0],f=p[1],g=Le((0,a.useState)(null),2),x=g[0],v=g[1],b=Le((0,a.useState)(null),2),y=b[0],w=b[1],j=Le((0,a.useState)(null),2),k=j[0],N=j[1],S=(0,a.useCallback)(async()=>{l(!0);try{const e=await Ps.get("/billing/invoices");i(e.data.invoices)}catch(rse){Ia.error(Cs(rse))}finally{l(!1)}},[]);(0,a.useEffect)(()=>{S()},[S]);const _=e=>v(e),z=async()=>{m(!0);try{const e=await Ps.post("/billing/dunning/run",{});Ia.success("Mahnlauf abgeschlossen: ".concat(e.data.sent," Mahnung(en) versendet, ").concat((e.data.locked_firmen||[]).length," Sperre(n).")),await S()}catch(rse){Ia.error(Cs(rse))}finally{m(!1)}},E=async()=>{m(!0);try{const e=await Ps.post("/billing/invoices/run",{});Ia.success("Abrechnungslauf abgeschlossen: ".concat(e.data.created," neu, ").concat(e.data.skipped," \xfcbersprungen").concat(e.data.errors?", ".concat(e.data.errors," Fehler"):"",".")),await S()}catch(rse){Ia.error(Cs(rse))}finally{m(!1)}},C=async(e,t,n)=>{f(e.id);try{await Ps.post("/billing/invoices/".concat(e.id,"/").concat(t),{}),Ia.success(n),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}};return(0,Te.jsxs)("div",{"data-testid":"billing-invoices-page",children:[(0,Te.jsx)(ky,{title:"Rechnungen",titleId:"admin.invoices.page_title",subtitle:"Rechnungs-Engine: Entw\xfcrfe erzeugen, pr\xfcfen und ausstellen (Nummernkreis R-JJJJ-lfd)",subtitleId:"admin.invoices.page_subtitle",actions:(0,Te.jsxs)("div",{className:"flex gap-2",children:[(0,Te.jsxs)(fy,{variant:"secondary","data-testid":"run-dunning-btn",onClick:()=>_({title:"Mahnlauf starten",message:"Mahnlauf jetzt starten? \xdcberf\xe4llige Rechnungen erhalten die n\xe4chste Mahnstufe (1. nach 7, 2. nach 10, 3. + Sperre nach 13 Tagen).",confirmLabel:"Mahnlauf starten",onConfirm:z}),disabled:u,children:[(0,Te.jsx)(bw,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.invoices.run_dunning",as:"span",children:"Mahnlauf starten"})]}),(0,Te.jsxs)(fy,{"data-testid":"run-cycle-btn",onClick:()=>_({title:"Abrechnungslauf starten",message:"Monatlichen Abrechnungslauf jetzt starten? Es werden Rechnungsentw\xfcrfe f\xfcr alle aktiven Vertr\xe4ge des laufenden Monats erzeugt.",confirmLabel:"Abrechnungslauf starten",onConfirm:E}),disabled:u,children:[u?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(W7,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.invoices.run_cycle",as:"span",children:"Abrechnungslauf starten"})]})]})}),o?(0,Te.jsx)(FS,{}):0===r.length?(0,Te.jsxs)(by,{className:"p-10 text-center","data-testid":"invoices-empty",children:[(0,Te.jsx)(hS,{size:40,className:"mx-auto text-muted-foreground mb-3"}),(0,Te.jsx)("p",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.invoices.empty",as:"span",children:"Noch keine Rechnungen. Erzeugen Sie Entw\xfcrfe \xfcber den Abrechnungslauf oder direkt im Vertrag."})})]}):(0,Te.jsx)(E4,{items:r,columns:[{label:"Nummer"},{label:"Firma"},{label:"Kundennr."},{label:"Zeitraum"},{label:"Steuer"},{label:"Status"},{label:"Netto",className:"text-right"},{label:"Brutto",className:"text-right"},{label:"F\xe4llig"},{label:""}],renderRow:e=>(0,Te.jsxs)("tr",{className:"border-t border-border hover:bg-[#FAFAFA]","data-testid":"invoice-row-".concat(e.id),children:[(0,Te.jsx)("td",{className:"px-4 py-3 font-semibold tabular-nums",children:e.number||(0,Te.jsx)("span",{className:"text-muted-foreground italic",children:"Entwurf"})}),(0,Te.jsx)("td",{className:"px-4 py-3",children:e.firma_name}),(0,Te.jsx)("td",{className:"px-4 py-3 tabular-nums","data-testid":"invoice-kundennr-".concat(e.id),children:e.kundennummer||(0,Te.jsx)("span",{className:"text-muted-foreground",children:"\u2014"})}),(0,Te.jsxs)("td",{className:"px-4 py-3 whitespace-nowrap",children:[G7(e.period_start)," \u2013 ",G7(e.period_end)]}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[Y7[e.tax_mode]||e.tax_mode,e.reverse_charge&&(0,Te.jsx)("span",{className:"text-xs px-1.5 py-0.5 rounded bg-amber-100 text-amber-800",children:"RC"})]})}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("div",{className:"flex flex-col items-start",children:[(0,Te.jsx)(Q7,{status:e.status}),(0,Te.jsx)(X7,{inv:e})]})}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right tabular-nums",children:K7(e.net)}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right tabular-nums font-semibold",children:K7(e.gross)}),(0,Te.jsx)("td",{className:"px-4 py-3 whitespace-nowrap",children:G7(e.due_date)}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-pdf-".concat(e.id),disabled:h===e.id,onClick:()=>(async e=>{f(e.id);try{const t=await Ps.get("/billing/invoices/".concat(e.id,"/pdf"),{responseType:"blob"}),n=URL.createObjectURL(new Blob([t.data],{type:"application/pdf"}));window.open(n,"_blank"),setTimeout(()=>URL.revokeObjectURL(n),6e4)}catch(rse){Ia.error(Cs(rse))}finally{f("")}})(e),title:"PDF \xf6ffnen",children:(0,Te.jsx)(N_,{size:14})}),"draft"===e.status&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(fy,{className:"px-2.5 py-1.5","data-testid":"invoice-issue-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Rechnung ausstellen",message:"Rechnung ausstellen? Es wird eine endg\xfcltige, fortlaufende Rechnungsnummer vergeben (nicht mehr \xe4nderbar).",confirmLabel:"Ausstellen",onConfirm:()=>C(e,"issue","Rechnung ausgestellt.")}))(e),title:"Ausstellen",children:(0,Te.jsx)(U7,{size:14})}),(0,Te.jsx)(fy,{variant:"ghost",className:"px-2.5 py-1.5","data-testid":"invoice-void-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Entwurf verwerfen",message:"Rechnungsentwurf ".concat(e.firma_name||""," wirklich verwerfen? Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."),confirmLabel:"Verwerfen",danger:!0,onConfirm:()=>C(e,"void","Entwurf verworfen.")}))(e),title:"Verwerfen",children:(0,Te.jsx)(N4,{size:14})})]}),"issued"===e.status&&(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-paid-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Als bezahlt markieren",message:"Rechnung ".concat(e.number||""," als bezahlt markieren?"),confirmLabel:"Als bezahlt markieren",onConfirm:()=>C(e,"mark-paid","Als bezahlt markiert.")}))(e),title:"Als bezahlt markieren",children:(0,Te.jsx)(Ef,{size:14})}),"issued"===e.status&&["failed","requires_action"].includes(e.auto_charge_status)&&(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5 text-red-700","data-testid":"invoice-retry-charge-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Auto-Einzug wiederholen",message:"Auto-Einzug f\xfcr Rechnung ".concat(e.number," erneut ansto\xdfen?"),confirmLabel:"Einzug wiederholen",onConfirm:async()=>{f(e.id);try{const t=await Ps.post("/billing/invoices/".concat(e.id,"/retry-charge"),{});"succeeded"===t.data.result||"paid"===t.data.result?Ia.success("Auto-Einzug erfolgreich."):"processing"===t.data.result?Ia.info("Einzug angesto\xdfen \u2013 Best\xe4tigung folgt (SEPA kann einige Tage dauern)."):"requires_action"===t.data.result?Ia.warning("Zahlung erfordert eine Kundenbest\xe4tigung (3DS)."):Ia.error("Einzug fehlgeschlagen: ".concat(t.data.error||t.data.result||"unbekannt")),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}}}))(e),title:"Auto-Einzug wiederholen",children:(0,Te.jsx)(NS,{size:14})}),("issued"===e.status||"paid"===e.status)&&(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-send-".concat(e.id),disabled:h===e.id,onClick:()=>(async e=>{f(e.id);try{const t=await Ps.get("/billing/invoices/".concat(e.id,"/recipients")),n=t.data.invoice_email||"",a=t.data.admin_email||"";
2w({inv:e,invoiceEmail:n,adminEmail:a,choice:n?"invoice":"admin",to:n||a})}catch(rse){Ia.error(Cs(rse))}finally{f("")}})(e),title:"Per E-Mail versenden",children:(0,Te.jsx)(bw,{size:14})}),"issued"===e.status&&(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-pay-".concat(e.id),onClick:()=>window.open("".concat(window.location.origin,"/pay/").concat(e.id),"_blank"),title:"Zahlung (Stripe) \xf6ffnen",children:(0,Te.jsx)(zf,{size:14})}),("issued"===e.status||"paid"===e.status)&&(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-copylink-".concat(e.id),onClick:async()=>{const t="".concat(window.location.origin,"/pay/").concat(e.id);try{await navigator.clipboard.writeText(t),Ia.success("Zahlungslink kopiert.")}catch(n){window.prompt("Zahlungslink kopieren:",t)}},title:"Zahlungslink kopieren",children:(0,Te.jsx)(cC,{size:14})}),("issued"===e.status||"paid"===e.status)&&"invoice"===(e.doc_type||"invoice")&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-creditnote-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>N({inv:e,amount:"",reason:""}))(e),title:"Gutschrift erstellen",children:(0,Te.jsx)(V7,{size:14})}),(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5","data-testid":"invoice-storno-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Rechnung stornieren",message:"Rechnung ".concat(e.number," vollst\xe4ndig stornieren? Es wird eine Storno-Rechnung erzeugt."),confirmLabel:"Stornieren",danger:!0,onConfirm:async()=>{f(e.id);try{await Ps.post("/billing/invoices/".concat(e.id,"/storno"),{}),Ia.success("Storno-Rechnung erzeugt."),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}}}))(e),title:"Rechnung stornieren",children:(0,Te.jsx)(H7,{size:14})})]}),"void"===e.status&&(0,Te.jsx)(fy,{variant:"ghost",className:"px-2.5 py-1.5 text-red-600 hover:text-red-800","data-testid":"invoice-delete-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Verworfene Rechnung l\xf6schen",message:"Diese verworfene Rechnung (".concat(e.firma_name||"",") endg\xfcltig l\xf6schen? Der Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."),confirmLabel:"L\xf6schen",danger:!0,onConfirm:async()=>{f(e.id);try{await Ps.delete("/billing/invoices/".concat(e.id)),Ia.success("Verworfene Rechnung gel\xf6scht."),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}}}))(e),title:"Verworfene Rechnung l\xf6schen",children:(0,Te.jsx)(y_,{size:14})}),(0,Te.jsx)(fy,{variant:"ghost",className:"px-2.5 py-1.5 text-red-700 hover:text-red-900 hover:bg-red-50","data-testid":"invoice-force-delete-".concat(e.id),disabled:h===e.id,onClick:()=>(e=>_({title:"Beleg endg\xfcltig entfernen",message:"Beleg ".concat(e.number||"(Entwurf)"," von ").concat(e.firma_name||""," UNWIDERRUFLICH aus SuperAdmin und Kundenbereich entfernen? Nur f\xfcr Fehlbelege \u2013 dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden. (Nur SuperAdmin)"),confirmLabel:"Endg\xfcltig entfernen",danger:!0,onConfirm:async()=>{f(e.id);try{await Ps.delete("/billing/invoices/".concat(e.id,"/force")),Ia.success("Beleg endg\xfcltig entfernt."),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}}}))(e),title:"Beleg endg\xfcltig entfernen (SuperAdmin)",children:(0,Te.jsx)(k_,{size:14})})]})})]},e.id),getDate:e=>e.issue_date||e.period_start||e.created_at,getText:e=>"".concat(e.number||""," ").concat(e.firma_name||""," ").concat(e.kundennummer||""),getStatus:e=>e.status,statusOptions:[["draft","Entwurf"],["issued","Ausgestellt"],["paid","Bezahlt"],["cancelled","Storniert"],["void","Verworfen"]],testid:"invoices-table"}),(0,Te.jsx)(J7,{data:x,onCancel:()=>v(null),onConfirm:async()=>{const e=x;v(null),e&&e.onConfirm&&await e.onConfirm()}}),(0,Te.jsx)(ey,{open:!!y,onOpenChange:e=>{e||w(null)},children:(0,Te.jsxs)(ay,{className:"max-w-md","data-testid":"invoice-send-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{children:"Rechnung per E-Mail versenden"}),(0,Te.jsx)(oy,{children:null!==y&&void 0!==y&&null!==(e=y.inv)&&void 0!==e&&e.number?"Rechnung ".concat(y.inv.number," inkl. PDF und AGB an folgenden Empf\xe4nger senden:"):"Rechnung inkl. PDF und AGB senden:"})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{className:"space-y-2",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-2 rounded-md border px-3 py-2 cursor-pointer ".concat("invoice"===(null===y||void 0===y?void 0:y.choice)?"border-primary bg-primary/5":"border-border"," ").concat(null!==y&&void 0!==y&&y.invoiceEmail?"":"op
2acity-50"),"data-testid":"invoice-send-choice-invoice",children:[(0,Te.jsx)("input",{type:"radio",name:"mail-recipient",checked:"invoice"===(null===y||void 0===y?void 0:y.choice),disabled:!(null!==y&&void 0!==y&&y.invoiceEmail),onChange:()=>w(e=>d(d({},e),{},{choice:"invoice",to:e.invoiceEmail}))}),(0,Te.jsxs)("span",{className:"text-sm",children:[(0,Te.jsx)("span",{className:"font-semibold",children:"Rechnungsmail"}),(0,Te.jsx)("span",{className:"block text-xs text-muted-foreground",children:(null===y||void 0===y?void 0:y.invoiceEmail)||"Keine Rechnungs-E-Mail hinterlegt"})]})]}),(0,Te.jsxs)("label",{className:"flex items-center gap-2 rounded-md border px-3 py-2 cursor-pointer ".concat("admin"===(null===y||void 0===y?void 0:y.choice)?"border-primary bg-primary/5":"border-border"," ").concat(null!==y&&void 0!==y&&y.adminEmail?"":"opacity-50"),"data-testid":"invoice-send-choice-admin",children:[(0,Te.jsx)("input",{type:"radio",name:"mail-recipient",checked:"admin"===(null===y||void 0===y?void 0:y.choice),disabled:!(null!==y&&void 0!==y&&y.adminEmail),onChange:()=>w(e=>d(d({},e),{},{choice:"admin",to:e.adminEmail}))}),(0,Te.jsxs)("span",{className:"text-sm",children:[(0,Te.jsx)("span",{className:"font-semibold",children:"Adminmail"}),(0,Te.jsx)("span",{className:"block text-xs text-muted-foreground",children:(null===y||void 0===y?void 0:y.adminEmail)||"Kein Firmen-Admin gefunden"})]})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-xs font-semibold text-muted-foreground",children:"Empf\xe4nger-Adresse (\xe4nderbar)"}),(0,Te.jsx)(gy,{type:"email",value:(null===y||void 0===y?void 0:y.to)||"","data-testid":"invoice-send-to-input",onChange:e=>w(t=>d(d({},t),{},{to:e.target.value,choice:"custom"})),placeholder:"[email protected]"})]})]}),(0,Te.jsxs)(iy,{className:"gap-2",children:[(0,Te.jsx)(fy,{variant:"ghost",onClick:()=>w(null),"data-testid":"invoice-send-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{onClick:async()=>{const e=y;if(!e)return;const t=e.inv,n=(e.to||"").trim();w(null),f(t.id);try{const e=await Ps.post("/billing/invoices/".concat(t.id,"/send"),{to:n||null});"success"===e.data.status?Ia.success("Rechnung an ".concat(e.data.to," versendet.")):"skipped"===e.data.status?Ia.warning("E-Mail-Versand ist in dieser Umgebung nicht konfiguriert (Resend) \u2013 in Produktion aktiv."):Ia.error("Versand fehlgeschlagen: ".concat(e.data.error||"unbekannt")),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}},disabled:!((null===y||void 0===y?void 0:y.to)||"").trim(),"data-testid":"invoice-send-confirm",children:[(0,Te.jsx)(bw,{size:15})," Senden"]})]})]})}),(0,Te.jsx)(ey,{open:!!k,onOpenChange:e=>{e||N(null)},children:(0,Te.jsxs)(ay,{className:"max-w-md","data-testid":"invoice-credit-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{children:"Gutschrift erstellen"}),(0,Te.jsx)(oy,{children:null!==k&&void 0!==k&&null!==(t=k.inv)&&void 0!==t&&t.number?"Gutschrift zu Rechnung ".concat(k.inv.number,"."):"Gutschrift erstellen."})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"text-xs font-semibold text-muted-foreground",children:["Betrag brutto in \u20ac (leer = voller Betrag ",k?K7(k.inv.gross):"",")"]}),(0,Te.jsx)(gy,{type:"number",min:"0",step:"0.01",value:(null===k||void 0===k?void 0:k.amount)||"","data-testid":"invoice-credit-amount",onChange:e=>N(t=>d(d({},t),{},{amount:e.target.value})),placeholder:"voller Betrag"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-xs font-semibold text-muted-foreground",children:"Grund der Gutschrift (optional)"}),(0,Te.jsx)(xy,{rows:2,value:(null===k||void 0===k?void 0:k.reason)||"","data-testid":"invoice-credit-reason",onChange:e=>N(t=>d(d({},t),{},{reason:e.target.value}))})]})]}),(0,Te.jsxs)(iy,{className:"gap-2",children:[(0,Te.jsx)(fy,{variant:"ghost",onClick:()=>N(null),"data-testid":"invoice-credit-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{onClick:async()=>{const e=k;if(!e)return;const t=e.inv;N(null),f(t.id);try{await Ps.post("/billing/invoices/".concat(t.id,"/credit-note"),{amount:e.amount?Number(e.amount):null,reason:e.reason||""}),Ia.success("Gutschrift erzeugt."),await S()}catch(rse){Ia.error(Cs(rse))}finally{f("")}},"data-testid":"invoice-credit-confirm",children:[(0,Te.jsx)(V7,{size:15}
2)," Gutschrift erstellen"]})]})]})})]})}const t9=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",n9={pulse:"Pulse",analytics:"Analytics",care:"Care",profiling:"Profiling",boarding:"Boarding"};function a9(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(null),2),u=d[0],m=d[1],p=(0,a.useCallback)(async()=>{s(!0);try{const e=await Ps.get("/offers");n(e.data.offers||[])}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},[]);(0,a.useEffect)(()=>{p()},[p]);const h=l.trim().toLowerCase(),f=h?t.filter(e=>[e.company,e.email,e.contact,e.vat_id].some(e=>(e||"").toLowerCase().includes(h))):t,g=t.filter(e=>e.converted).length;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"Angebote",subtitle:"\xdcber den Preisrechner angeforderte PDF-Angebote inkl. Reminder-Status und Auftrags-Abgleich (per UID)."}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-3 mb-4",children:[(0,Te.jsxs)(by,{className:"px-4 py-3","data-testid":"offers-kpi-total",children:[(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:"Angebote gesamt"}),(0,Te.jsx)("div",{className:"text-xl font-heading font-semibold",children:t.length})]}),(0,Te.jsxs)(by,{className:"px-4 py-3","data-testid":"offers-kpi-converted",children:[(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:"Zu Auftr\xe4gen geworden"}),(0,Te.jsx)("div",{className:"text-xl font-heading font-semibold text-primary",children:g})]}),(0,Te.jsxs)("div",{className:"relative ml-auto",children:[(0,Te.jsx)(M_,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{placeholder:"Firma, E-Mail, UID \u2026",value:l,onChange:e=>c(e.target.value),"data-testid":"offers-search",className:"pl-9 w-64"})]})]}),(0,Te.jsx)(by,{className:"p-0 overflow-hidden","data-testid":"offers-table",children:i?(0,Te.jsx)(FS,{}):0===f.length?(0,Te.jsx)("div",{className:"py-16 text-center text-muted-foreground","data-testid":"offers-empty",children:"Noch keine Angebote vorhanden."}):(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-xs uppercase tracking-wide text-muted-foreground border-b border-border bg-[#F8F8F9]",children:[(0,Te.jsx)("th",{className:"px-4 py-3",children:"Datum"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Firma / Kontakt"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"E-Mail"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"MA"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Produkte"}),(0,Te.jsx)("th",{className:"px-4 py-3 text-right",children:"Betrag (brutto)"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Status"}),(0,Te.jsx)("th",{className:"px-4 py-3 text-right",children:"Aktionen"})]})}),(0,Te.jsx)("tbody",{children:f.map(e=>{return(0,Te.jsxs)("tr",{className:"border-b border-border/60 hover:bg-[#FAFAFB]","data-testid":"offer-row-".concat(e.id),children:[(0,Te.jsx)("td",{className:"px-4 py-3 whitespace-nowrap",children:t9(e.created_at)}),(0,Te.jsxs)("td",{className:"px-4 py-3",children:[(0,Te.jsx)("div",{className:"font-medium",children:e.company||"\u2014"}),e.contact&&(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:e.contact}),e.vat_id&&(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground",children:["UID: ",e.vat_id]})]}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("a",{href:"mailto:".concat(e.email),className:"text-primary hover:underline","data-testid":"offer-email-".concat(e.id),children:e.email})}),(0,Te.jsx)("td",{className:"px-4 py-3",children:e.employees}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("div",{className:"flex flex-wrap gap-1",children:(e.products||[]).map(e=>(0,Te.jsx)("span",{className:"inline-block px-2 py-0.5 rounded-full text-xs bg-zinc-100 text-zinc-700",children:n9[e]||e},e))})}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right whitespace-nowrap",children:(t=e.gross,"\u20ac ".concat(Number(t||0).toLocaleStr
2ing("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})))}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("div",{className:"flex flex-col gap-1",children:[e.converted?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-full text-xs font-bold bg-green-100 text-green-800 w-fit","data-testid":"offer-converted-".concat(e.id),children:[(0,Te.jsx)(U7,{size:12})," Auftrag"]}):(0,Te.jsx)("span",{className:"inline-flex items-center px-2 py-0.5 rounded-full text-xs bg-blue-100 text-blue-800 w-fit",children:"Gesendet"}),e.voucher_code&&(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 text-xs text-amber-700",title:"Kennenlernrabatt-Code",children:[(0,Te.jsx)(gS,{size:12})," ",e.voucher_code]}),e.reminders&&Object.keys(e.reminders).length>0&&(0,Te.jsxs)("span",{className:"text-[11px] text-muted-foreground",children:["Reminder: ",Object.keys(e.reminders).sort().join(", ")]})]})}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5",disabled:u===e.id,onClick:()=>(async e=>{m(e.id);try{const t=await Ps.get("/offers/".concat(e.id,"/pdf"),{responseType:"blob"}),n=URL.createObjectURL(new Blob([t.data],{type:"application/pdf"}));window.open(n,"_blank")}catch(rse){Ia.error("PDF nicht verf\xfcgbar.")}finally{m(null)}})(e),title:"PDF \xf6ffnen","data-testid":"offer-pdf-".concat(e.id),children:(0,Te.jsx)(N_,{size:14})}),(0,Te.jsx)(fy,{variant:"secondary",className:"px-2.5 py-1.5",disabled:u===e.id,onClick:()=>(async e=>{m(e.id);try{const t=await Ps.post("/offers/".concat(e.id,"/resend"));Ia.success("Angebot erneut an ".concat(t.data.to," gesendet (").concat(t.data.status,").")),p()}catch(rse){Ia.error(Cs(rse))}finally{m(null)}})(e),title:"Angebot erneut senden","data-testid":"offer-resend-".concat(e.id),children:u===e.id?(0,Te.jsx)(Of,{size:14,className:"animate-spin"}):(0,Te.jsx)(bw,{size:14})})]})})]},e.id);var t})})]})})})]})}const r9=[["pulse","PERSENTIS Pulse"],["analytics","PERSENTIS Analytics"],["care","PERSENTIS Care"],["profiling","PERSENTIS Profiling"],["boarding","PERSENTIS Boarding"]],i9={once:"Einmalig (erste Rechnung)",permanent:"Dauerhaft (jede Rechnung)",timed:"Befristet (N Rechnungen)"},s9=e=>"\u20ac ".concat(Number(e||0).toLocaleString("de-DE",{minimumFractionDigits:2,maximumFractionDigits:2})),o9=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",l9={code:"",label:"",type:"percent",value:"",duration_mode:"once",duration_cycles:"",product_scope:[],min_order:"",max_redemptions:"",max_per_firma:"",restrict_email_domain:"",global_release:!0,active:!0,assignFirms:[]};function c9(e){let t=e.firmen,n=e.selected,r=e.onToggle;const i=Le((0,a.useState)(""),2),s=i[0],o=i[1],l=t.filter(e=>(e.name||"").toLowerCase().includes(s.toLowerCase()));return(0,Te.jsxs)("div",{"data-testid":"voucher-firm-picker",children:[n.length>0&&(0,Te.jsx)("div",{className:"flex flex-wrap gap-1.5 mb-2",children:n.map(e=>{const n=t.find(t=>t.id===e);return(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 px-2 py-1 rounded-full bg-primary/10 text-[var(--brand-primary-dark)] text-xs font-semibold","data-testid":"voucher-firm-chip-".concat(e),children:[n?n.name:e,(0,Te.jsx)("button",{type:"button",onClick:()=>r(e),className:"hover:text-red-600",children:(0,Te.jsx)(Iv,{size:12})})]},e)})}),(0,Te.jsxs)("div",{className:"relative mb-2",children:[(0,Te.jsx)(M_,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{"data-testid":"voucher-firm-search",value:s,onChange:e=>o(e.target.value),placeholder:"Firma suchen \u2026",className:"pl-8"})]}),(0,Te.jsx)("div",{className:"max-h-44 overflow-y-auto border rounded-md divide-y",children:0===l.length?(0,Te.jsx)("div",{className:"p-3 text-xs text-muted-foreground",children:"Keine Firma gefunden."}):l.slice(0,60).map(e=>{const t=n.includes(e.id);return(0,Te.jsxs)("button",{type:"button","data-testid":"voucher-firm-opt-".concat(e.id),onClick:()=>r(e.id),className:"w-full flex items-center justify-between px-3 py-2 text-sm text-left hover:bg-[#F5F5F6] ".concat(t?"bg-primary/5 font-semibold":""),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Te.jsx)(Sf,{size:13,className:"text-muted-foreground"}),e.name]}),t&&(0,Te.jsx)("span",{className:"text-primary text-xs",children:"\u2713 zugewiesen"})]},e.id)})})]})}function d9(e){let t=e.form,n=e.setForm,a=e.editing,r=e.firmen;const i=(e,t)=>n(n=>d(d({},n),{},{[e]:t}));return(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Code",children:(0,Te.jsx)(gy,{"data-testid":"voucher-code",value:t.code,disabled:a,onChange:e=>i("code",e.target.value.toUpperCase()),placeholder:"z. B. WELCOME10"})}),(0,Te.jsx)(wy,{label:"Bezeichnung (optional)",children:(0,Te.jsx)(gy,{"data-testid":"voucher-label",value:t.label,onChange:e=>i("label",e.target.value),placeholder:"Erscheint auf der Rechnung"})})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Rabatt-Typ",children:(0,Te.jsxs)(vy,{"data-testid":"voucher-type",value:t.type,disabled:a,onChange:e=>i("type",e.target.value),children:[(0,Te.jsx)("option",{value:"percent",children:"Prozent (%)"}),(0,Te.jsx)("option",{value:"fixed",children:"Fixbetrag (\u20ac)"})]})}),(0,Te.jsx)(wy,{label:"percent"===t.type?"Wert (%)":"Wert (\u20ac)",children:(0,Te.jsx)(gy,{"data-testid":"voucher-value",type:"number",min:"0",max:"percent"===t.type?100:void 0,value:t.value,onChange:e=>{let n=e.target.value;"percent"===t.type&&Number(n)>100&&(n="100"),i("value",n)},placeholder:"percent"===t.type?"10":"50"})})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Anwendungsd
2auer",children:(0,Te.jsx)(vy,{"data-testid":"voucher-duration",value:t.duration_mode,onChange:e=>i("duration_mode",e.target.value),children:Object.entries(i9).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("option",{value:n,children:a},n)})})}),"timed"===t.duration_mode&&(0,Te.jsx)(wy,{label:"Anzahl Rechnungen",children:(0,Te.jsx)(gy,{"data-testid":"voucher-cycles",type:"number",min:"1",value:t.duration_cycles,onChange:e=>i("duration_cycles",e.target.value),placeholder:"3"})})]}),(0,Te.jsx)(wy,{label:"G\xfcltig f\xfcr Produkte (Pflicht \u2013 mindestens ein Produkt anklicken, gr\xfcn = aktiv)",children:(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:r9.map(e=>{let a=Le(e,2),r=a[0],i=a[1];const s=t.product_scope.includes(r);return(0,Te.jsx)("button",{type:"button","data-testid":"voucher-scope-".concat(r),onClick:()=>(e=>n(t=>d(d({},t),{},{product_scope:t.product_scope.includes(e)?t.product_scope.filter(t=>t!==e):[...t.product_scope,e]})))(r),className:"px-3 py-1.5 rounded-full text-xs font-semibold border transition-colors ".concat(s?"bg-primary text-primary-foreground border-primary":"bg-white text-muted-foreground border-zinc-300 hover:border-primary"),children:i},r)})})}),(0,Te.jsxs)("div",{className:"grid grid-cols-3 gap-3",children:[(0,Te.jsx)(wy,{label:"Mindestbestellwert (\u20ac)",children:(0,Te.jsx)(gy,{"data-testid":"voucher-min",type:"number",min:"0",value:t.min_order,onChange:e=>i("min_order",e.target.value)})}),(0,Te.jsx)(wy,{label:"Max. Einl\xf6sungen (gesamt)",children:(0,Te.jsx)(gy,{"data-testid":"voucher-maxglobal",type:"number",min:"0",value:t.max_redemptions,onChange:e=>i("max_redemptions",e.target.value)})}),(0,Te.jsx)(wy,{label:"Max. pro Firma",children:(0,Te.jsx)(gy,{"data-testid":"voucher-maxfirma",type:"number",min:"0",value:t.max_per_firma,onChange:e=>i("max_per_firma",e.target.value)})})]}),(0,Te.jsx)(wy,{label:"Nur f\xfcr E-Mail-Domain (optional)",children:(0,Te.jsx)(gy,{"data-testid":"voucher-domain",value:t.restrict_email_domain,onChange:e=>i("restrict_email_domain",e.target.value),placeholder:"@bws-invest.com"})}),(0,Te.jsxs)("div",{className:"flex gap-6",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm font-medium cursor-pointer",children:[(0,Te.jsx)("input",{type:"checkbox","data-testid":"voucher-global",checked:t.global_release,onChange:e=>i("global_release",e.target.checked)}),"F\xfcr alle Firmen freigegeben"]}),(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm font-medium cursor-pointer",children:[(0,Te.jsx)("input",{type:"checkbox","data-testid":"voucher-active",checked:t.active,onChange:e=>i("active",e.target.checked)}),"Aktiv"]})]}),!t.global_release&&(0,Te.jsx)(wy,{label:"Zugewiesene Firmen (nur diese k\xf6nnen den Code nutzen)",children:(0,Te.jsx)(c9,{firmen:r,selected:t.assignFirms,onToggle:e=>n(t=>d(d({},t),{},{assignFirms:t.assignFirms.includes(e)?t.assignFirms.filter(t=>t!==e):[...t.assignFirms,e]}))})})]})}function u9(e){let t=e.vid;const n=Le((0,a.useState)(null),2),r=n[0],i=n[1];return(0,a.useEffect)(()=>{let e=!0;return Ps.get("/admin/vouchers/".concat(t,"/redemptions")).then(t=>{e&&i(t.data)}).catch(()=>{e&&i({redemptions:[],total_amount:0})}),()=>{e=!1}},[t]),r?r.redemptions.length?(0,Te.jsx)("div",{className:"px-6 py-3","data-testid":"voucher-red-".concat(t),children:(0,Te.jsxs)("table",{className:"w-full text-xs",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-left text-muted-foreground uppercase tracking-wide",children:[(0,Te.jsx)("th",{className:"py-1.5",children:"Firma"}),(0,Te.jsx)("th",{className:"py-1.5",children:"Rechnung"}),(0,Te.jsx)("th",{className:"py-1.5",children:"Ausgestellt"}),(0,Te.jsx)("th",{className:"py-1.5 text-right",children:"Rabatt"})]})}),(0,Te.jsx)("tbody",{children:r.redemptions.map((e,t)=>(0,Te.jsxs)("tr",{className:"border-t",children:[(0,Te.jsx)("td",{className:"py-1.5",children:e.firma_name}),(0,Te.jsx)("td",{className:"py-1.5",children:e.invoice_number||"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5",children:o9(e.issued_at)}),(0,Te.jsxs)("td",{className:"py-1.5 text-right font-semibold",children:["\u2212",s9(e.amount)]})]},t))}),(0,Te.jsx)("tfoot",{children:(0,Te.jsxs)("tr",{className:"border-t font-bold",children:[(0,Te.jsx)("td",{className:"py-2",colSpan:3,children:"Gesamt gew\xe4hrter Rabatt"}),(0,Te.jsxs)("td",{className:"py-2 text-right",children:["\u2212",s9(r.total_amount)]})]})})]})}):(0,Te.jsx)("div",{className:"px-6 py-4 text-xs text-muted-foreground","data-testid":"voucher-red-empty-".concat(t),children:"Noch keine Einl\xf6sungen (Rabatt wird beim Ausstellen der Rechnung protokolliert)."}):(0,Te.jsx)("div",{className:"p-4 flex justify-center",children:(0,Te.jsx)(Of,{size:16,className:"animate-spin text-muted-foreground"})})}function m9(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)(!0),2),l=o[0],c=o[1],u=Le((0,a.useState)(!1),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1],x=Le((0,a.useState)(null),2),v=x[0],b=x[1],y=Le((0,a.useState)(l9),2),w=y[0],j=y[1],k=Le((0,a.useState)(null),2),N=k[0],S=k[1],_=Le((0,a.useState)(null),2),z=_[0],E=_[1],C=(0,a.useCallback)(async()=>{c(!0);try{const e=Le(await Promise.all([Ps.get("/admin/vouchers"),Ps.get("/billing/firmen")]),2),t=e[0],a=e[1];n(t.data||[]),s(a.data||[])}catch(rse){Ia.error(Cs(rse))}finally{c(!1)}},[]);(0,a.useEffect)(()=>{C()},[C]);const P=e=>{var t,n,a,r,i;b(e),j({code:e.code,label:e.label||"",type:e.type,value:null!==(t=e.value)&&void 0!==t?t:"",duration_mode:e.duration_mode||"once",duration_cycles:null!==(n=e.duration_cycles)&&void 0!==n?n:"",product_scope:e.product_scope||[],min_order:null!==(a=e.min_order)&&void 0!==a?a:"",max_redemptions:null!==(r=e.max_redemptions)&&void 0!==r?r:"",max_per_firma:null!==(i=e.max_per_firma)&&void 0!==i?i:"",restrict_email_domain:e.restrict_email_domain||"",global_release:!1!==e.global_release,active:!1!==e.active,assignFirms:(e.assignments||[]).filter(e=>e.enabled).map(e=>e.firma_id)}),p(!0)},A=e=>""===e||null===e||void 0===e?null:Number(e),T=e=>"percent"===e.type?"".concat(e.value," %"):"\u20ac ".concat(Number(e.value||0).toLocaleStr
2ing("de-DE"));return(0,Te.jsxs)("div",{className:"p-6 max-w-6xl",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,Te.jsx)(ky,{titleId:"admin.vouchers.title",title:"Gutscheine",subtitleId:"admin.vouchers.subtitle",subtitle:"Rabatt-Codes zentral verwalten. Der Rabatt wird auf den Netto-Betrag angewendet, bevor die Zahlung an Stripe geht."}),(0,Te.jsxs)(fy,{"data-testid":"voucher-new-btn",onClick:()=>{b(null),j(l9),p(!0)},children:[(0,Te.jsx)(Pf,{size:16,className:"mr-1"}),(0,Te.jsx)(cy,{id:"admin.vouchers.new",as:"span",children:"Neuer Gutschein"})]})]}),(0,Te.jsx)(by,{className:"p-0 overflow-hidden",children:l?(0,Te.jsx)("div",{className:"p-10 flex justify-center",children:(0,Te.jsx)(Of,{className:"animate-spin text-muted-foreground"})}):0===t.length?(0,Te.jsxs)("div",{className:"p-10 text-center text-sm text-muted-foreground","data-testid":"voucher-empty",children:[(0,Te.jsx)(gS,{className:"mx-auto mb-2 opacity-40"})," Noch keine Gutscheine angelegt."]}):(0,Te.jsxs)("table",{className:"w-full text-sm","data-testid":"voucher-table",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"border-b bg-[#F7F7F8] text-left text-xs uppercase tracking-wide text-muted-foreground",children:[(0,Te.jsx)("th",{className:"px-4 py-3 w-8"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Code"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Rabatt"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Dauer"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Freigabe"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Eingel\xf6st"}),(0,Te.jsx)("th",{className:"px-4 py-3",children:"Status"}),(0,Te.jsx)("th",{className:"px-4 py-3 text-right",children:"Aktionen"})]})}),(0,Te.jsx)("tbody",{children:t.map(e=>(0,Te.jsxs)(a.Fragment,{children:[(0,Te.jsxs)("tr",{"data-testid":"voucher-row-".concat(e.code),className:"border-b last:border-0 hover:bg-[#FAFAFA]",children:[(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("button",{"data-testid":"voucher-expand-".concat(e.code),onClick:()=>E(z===e.id?null:e.id),className:"text-muted-foreground hover:text-foreground",children:z===e.id?(0,Te.jsx)(xw,{size:16}):(0,Te.jsx)(Df,{size:16})})}),(0,Te.jsxs)("td",{className:"px-4 py-3",children:[(0,Te.jsx)("button",{className:"font-bold text-foreground hover:text-primary",onClick:()=>P(e),"data-testid":"voucher-edit-".concat(e.code),children:e.code}),e.label&&(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:e.label})]}),(0,Te.jsx)("td",{className:"px-4 py-3 font-semibold",children:T(e)}),(0,Te.jsxs)("td",{className:"px-4 py-3 text-xs",children:[i9[e.duration_mode]||e.duration_mode,"timed"===e.duration_mode?" (".concat(e.duration_cycles,")"):""]}),(0,Te.jsx)("td",{className:"px-4 py-3 text-xs",children:!1!==e.global_release?"Alle Firmen":"".concat((e.assignments||[]).filter(e=>e.enabled).length," Firma(en)")}),(0,Te.jsxs)("td",{className:"px-4 py-3",children:[e.redeemed_count||0,null!=e.max_redemptions?" / ".concat(e.max_redemptions):""]}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("button",{"data-testid":"voucher-toggle-".concat(e.code),onClick:()=>(async e=>{try{await Ps.patch("/admin/vouchers/".concat(e.id),{active:!(!1!==e.active)}),C()}catch(rse){Ia.error(Cs(rse))}})(e),className:"inline-block px-2.5 py-1 rounded-full text-xs font-bold ".concat(!1!==e.active?"bg-green-100 text-green-800":"bg-zinc-200 text-zinc-600"),children:!1!==e.active?"Aktiv":"Inaktiv"})}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right",children:(0,Te.jsxs)("div",{className:"inline-flex items-center gap-1 justify-end",children:[(0,Te.jsx)("button",{"data-testid":"voucher-edit-icon-".concat(e.code),onClick:()=>P(e),title:"Bearbeiten",className:"text-muted-foreground hover:text-primary p-1",children:(0,Te.jsx)(Mf,{size:16})}),(0,Te.jsx)("button",{"data-testid":"voucher-delete-".concat(e.code),onClick:()=>S(e),title:"L\xf6schen",className:"text-red-600 hover:text-red-800 p-1",children:(0,Te.jsx)(y_,{size:16})})]})})]}),z===e.id&&(0,Te.jsx)("tr",{className:"bg-[#FBFBFC]",children:(0,Te.jsx)("td",{colSpan:8,className:"p-0",children:(0,Te.jsx)(u9,{vid:e.id})})})]},e.id))})]})}),(0,Te.jsx)(ey,{open:m,onOpenChange:p,children:(0,Te.jsxs)(ay,{className:"max-w-2xl max-h-[90vh] overflow-y-auto","data-testid":"voucher-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{children:v?"Gutschein ".concat(v.code," bearbeiten"):"Neuer Gutschein"}),(0,Te.jsx)(oy,{children:"Code und Rabatt-Typ k\xf6nnen nach dem Anlegen nicht mehr ge\xe4ndert werden."})]}),(0,Te.jsx)(d9,{form:w,setForm:j,editing:!!v,firmen:i}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2 pt-2",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>p(!1),"data-testid":"voucher-cancel",children:[(0,Te.jsx)(Iv,{size:16,className:"mr-1"}),"Abbrechen"]}),(0,Te.jsxs)(fy,{onClick:async()=>
2{if(!w.code.trim())return void Ia.error("Bitte einen Code angeben.");if(null===A(w.value)||A(w.value)<=0)return void Ia.error("Bitte einen g\xfcltigen Wert angeben.");if("timed"===w.duration_mode&&(!A(w.duration_cycles)||A(w.duration_cycles)<1))return void Ia.error("Bitte Anzahl der Rechnungen (\u2265 1) angeben.");if(!w.product_scope.length)return void Ia.error("Bitte mindestens ein Produkt ausw\xe4hlen, f\xfcr das der Gutschein gilt.");if(!w.global_release&&0===w.assignFirms.length)return void Ia.error("Bitte mindestens eine Firma zuweisen oder f\xfcr alle freigeben.");g(!0);const e={label:w.label.trim()||null,value:A(w.value),duration_mode:w.duration_mode,duration_cycles:"timed"===w.duration_mode?A(w.duration_cycles):null,product_scope:w.product_scope.length?w.product_scope:null,min_order:A(w.min_order),max_redemptions:A(w.max_redemptions),max_per_firma:A(w.max_per_firma),restrict_email_domain:w.restrict_email_domain.trim()||null,global_release:w.global_release,active:w.active};try{let t;const n=v?(v.assignments||[]).filter(e=>e.enabled).map(e=>e.firma_id):[];if(v)await Ps.patch("/admin/vouchers/".concat(v.id),e),t=v.id,Ia.success("Gutschein aktualisiert.");else{t=(await Ps.post("/admin/vouchers",d({code:w.code.trim(),type:w.type},e))).data.id,Ia.success("Gutschein angelegt.")}await(async(e,t,n)=>{const a=n.filter(e=>!t.includes(e)),r=t.filter(e=>!n.includes(e));await Promise.all([...a.map(t=>Ps.post("/admin/vouchers/".concat(e,"/assign"),{firma_id:t,enabled:!0})),...r.map(t=>Ps.delete("/admin/vouchers/".concat(e,"/assign/").concat(t)))])})(t,n,w.global_release?[]:w.assignFirms),p(!1),C()}catch(rse){Ia.error(Cs(rse))}finally{g(!1)}},disabled:f,"data-testid":"voucher-save",children:[f&&(0,Te.jsx)(Of,{size:16,className:"mr-1 animate-spin"}),"Speichern"]})]})]})}),(0,Te.jsx)(ey,{open:!!N,onOpenChange:e=>!e&&S(null),children:(0,Te.jsxs)(ay,{className:"max-w-md","data-testid":"voucher-delete-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsx)(sy,{children:"Gutschein l\xf6schen?"}),(0,Te.jsxs)(oy,{children:["Der Gutschein ",(0,Te.jsx)("b",{children:null===N||void 0===N?void 0:N.code})," und alle zugeh\xf6rigen Einl\xf6sungs-Protokolle werden unwiderruflich gel\xf6scht."]})]}),(0,Te.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>S(null),children:"Abbrechen"}),(0,Te.jsx)(fy,{variant:"danger",onClick:async()=>{try{await Ps.delete("/admin/vouchers/".concat(N.id)),Ia.success("Gutschein gel\xf6scht."),S(null),C()}catch(rse){Ia.error(Cs(rse))}},"data-testid":"voucher-delete-confirm",children:"L\xf6schen"})]})]})})]})}function p9(e){let t=e.label,n=e.value,a=e.mono;return(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4 py-2 border-b border-border last:border-0",children:[(0,Te.jsx)("span",{className:"text-sm text-muted-foreground",children:t}),(0,Te.jsx)("span",{className:"text-sm font-medium text-right break-all ".concat(a?"font-mono":""),children:null!==n&&void 0!==n?n:"\u2014"})]})}function h9(){const e=Le((0,a.useState)(!1),2),t=e[0],n=e[1],r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=async()=>{n(!0),s(null);try{const e=await Ps.get("/payments/stripe/health");s(e.data),e.data.ok?Ia.success("Stripe-Verbindung erfolgreich."):Ia.error("Stripe-Verbindung fehlgeschlagen.")}catch(rse){Ia.error(Cs(rse))}finally{n(!1)}},l=null===i||void 0===i?void 0:i.ok;return(0,Te.jsxs)("div",{className:"p-4 sm:p-8","data-testid":"stripe-test-page",children:[(0,Te.jsx)(ky,{title:"Stripe-Verbindung testen",subtitle:"Pr\xfcft ohne echte Zahlung, ob der hinterlegte Stripe-Schl\xfcssel g\xfcltig ist und in welchem Modus er l\xe4uft."}),(0,Te.jsx)(by,{className:"p-5 sm:p-6 max-w-2xl mt-6",children:(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-4 flex-wrap",children:[(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground max-w-md",children:["Der Test ruft die Stripe-API auf und validiert den Secret-Key. So erkennen Sie sofort eine Fehlkonfiguration (z. B. eine Key-ID ",(0,Te.jsx)("span",{className:"font-mono",children:"mk_\u2026"})," statt eines echten Schl\xfcssels ",(0,Te.jsx)("span",{className:"font-mono",children:"sk_\u2026"}),")."]}),(0,Te.jsxs)(fy,{onClick:o,disabled:t,"data-testid":"stripe-test-run-btn",children:[t?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(xS,{size:16}),"Verbindung testen"]})]})}),i&&(0,Te.jsxs)(by,{className:"p-5 sm:p-6 max-w-2xl mt-6","data-testid":"stripe-test-result",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4 font-heading text-lg ".concat(l?"text-green-700":"text-red-700"),children:[l?(0,Te.jsx)(Ef,{size:22}):(0,Te.jsx)(L7,{size:22}),(0,Te.jsx)("span",{"data-testid":"stripe-test-status",children:l?"Verb
2indung erfolgreich":"Verbindung fehlgeschlagen"})]}),(0,Te.jsx)(p9,{label:"Modus (App)",value:(0,Te.jsx)("span",{className:"live"===i.mode?"text-green-700":"text-amber-600",children:"live"===i.mode?"LIVE":"TEST"})}),(0,Te.jsx)(p9,{label:"STRIPE_MODE (Env)",value:i.stripe_mode_env||"\u2014"}),(0,Te.jsx)(p9,{label:"Schl\xfcssel-Pr\xe4fix",value:i.key_prefix,mono:!0}),l?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(p9,{label:"Stripe livemode",value:String(i.livemode)}),(0,Te.jsx)(p9,{label:"Konto",value:i.account_name}),(0,Te.jsx)(p9,{label:"Konto-ID",value:i.account_id,mono:!0}),(0,Te.jsx)(p9,{label:"E-Mail",value:i.email}),(0,Te.jsx)(p9,{label:"Zahlungen aktiv",value:i.charges_enabled?"Ja":"Nein"}),(0,Te.jsx)(p9,{label:"Auszahlungen aktiv",value:i.payouts_enabled?"Ja":"Nein"})]}):(0,Te.jsxs)("div",{className:"mt-3 rounded-lg bg-red-50 border border-red-200 p-3","data-testid":"stripe-test-error",children:[(0,Te.jsx)("p",{className:"text-sm text-red-800 break-words",children:i.error}),String(i.key_prefix).startsWith("mk_")&&(0,Te.jsxs)("p",{className:"text-xs text-red-700 mt-2",children:["Der hinterlegte Wert beginnt mit ",(0,Te.jsx)("span",{className:"font-mono",children:"mk_"})," \u2013 das ist eine Schl\xfcssel-ID, kein Secret-Key. Bitte einen echten ",(0,Te.jsx)("span",{className:"font-mono",children:"sk_\u2026"}),"/",(0,Te.jsx)("span",{className:"font-mono",children:"rk_\u2026"}),"-Schl\xfcssel im Deployment-Panel \u2192 Secrets hinterlegen und neu deployen."]})]}),(0,Te.jsx)("div",{className:"mt-4",children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:o,disabled:t,"data-testid":"stripe-test-rerun-btn",children:[(0,Te.jsx)(NS,{size:16})," Erneut testen"]})})]})]})}function f9(){const e=sn(),t=Le((0,a.useState)(null),2),n=t[0],r=t[1];return(0,a.useEffect)(()=>{Ps.get("/my/owner").then(e=>{var t;return r((null===(t=e.data)||void 0===t?void 0:t.owner)||null)}).catch(()=>r(null))},[]),(0,Te.jsx)("div",{className:"min-h-[70vh] flex items-center justify-center px-6","data-testid":"owner-only-page",children:(0,Te.jsxs)("div",{className:"max-w-md w-full text-center",children:[(0,Te.jsx)("div",{className:"mx-auto mb-6 flex h-16 w-16 items-center justify-center rounded-2xl bg-[#75A33D]/10 text-[#75A33D]",children:(0,Te.jsx)(AS,{size:30})}),(0,Te.jsx)("h1",{className:"font-heading text-2xl font-bold mb-3","data-testid":"owner-only-title",children:"Nur der Eigent\xfcmer hat Zugriff"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-6",children:"Dieser Bereich \u2013 Plan, Nutzer und Abteilungen \u2013 ist ausschlie\xdflich dem Kontoeigent\xfcmer vorbehalten. Bitte wenden Sie sich an die Person, die Ihr Unternehmenskonto verwaltet, wenn Sie hier \xc4nderungen ben\xf6tigen."}),n&&(n.name||n.email)&&(0,Te.jsxs)("div",{className:"mb-8 rounded-xl border border-border bg-muted/40 px-5 py-4 text-left","data-testid":"owner-only-contact",children:[(0,Te.jsx)("p",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground mb-2",children:"Ihr Kontoeigent\xfcmer"}),n.name&&(0,Te.jsx)("p",{className:"text-sm font-semibold","data-testid":"owner-only-name",children:n.name}),n.email&&(0,Te.jsxs)("a",{href:"mailto:".concat(n.email),className:"mt-1 inline-flex items-center gap-2 text-sm text-[#75A33D] hover:underline","data-testid":"owner-only-email",children:[(0,Te.jsx)(vS,{size:14})," ",n.email]})]}),(0,Te.jsxs)("button",{onClick:()=>e("/"),"data-testid":"owner-only-back-btn",className:"inline-flex items-center gap-2 rounded-full bg-foreground px-6 py-2.5 text-sm font-semibold text-background transition-colors hover:bg-foreground
2/90",children:[(0,Te.jsx)(aS,{size:16})," Zur\xfcck zur \xdcbersicht"]})]})})}const g9=kf("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]),x9=kf("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const v9="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;function b9(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function y9(e){return"nodeType"in e}function w9(e){var t,n;return e?b9(e)?e:y9(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function j9(e){return e instanceof w9(e).Document}function k9(e){return!b9(e)&&e instanceof w9(e).HTMLElement}function N9(e){return e instanceof w9(e).SVGElement}function S9(e){return e?b9(e)?e.document:y9(e)?j9(e)?e:k9(e)||N9(e)?e.ownerDocument:document:document:document}const _9=v9?a.useLayoutEffect:a.useEffect;function z9(e){const t=(0,a.useRef)(e);return _9(()=>{t.current=e}),(0,a.useCallback)(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return null==t.current?void 0:t.current(...n)},[])}function E9(e,t){void 0===t&&(t=[e]);const n=(0,a.useRef)(e);return _9(()=>{n.current!==e&&(n.current=e)},t),n}function C9(e,t){const n=(0,a.useRef)();return(0,a.useMemo)(()=>{const t=e(n.current);return n.current=t,t},[...t])}function P9(e){const t=z9(e),n=(0,a.useRef)(null),r=(0,a.useCallback)(e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e},[]);return[n,r]}function A9(e){const t=(0,a.useRef)();return(0,a.useEffect)(()=>{t.current=e},[e]),t.current}let T9={};function R9(e,t){return(0,a.useMemo)(()=>{if(t)return t;const n=null==T9[e]?0:T9[e]+1;return T9[e]=n,e+"-"+n},[e,t])}function O9(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return a.reduce((t,n)=>{const a=Object.entries(n);for(const i of a){var r=Le(i,2);const n=r[0],a=r[1],s=t[n];null!=s&&(t[n]=s+e*a)}return t},d({},t))}}const D9=O9(1),M9=O9(-1);function I9(e){if(!e)return!1;const t=w9(e.target).KeyboardEvent;return t&&e instanceof t}function F9(e){if(function(e){if(!e)return!1;const t=w9(e.target).TouchEvent;return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const t=e.touches[0];return{x:t.clientX,y:t.clientY}}if(e.changedTouches&&e.changedTouches.length){const t=e.changedTouches[0];return{x:t.clientX,y:t.clientY}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const L9=Object.freeze({Translate:{toString(e){if(!e)return;const t=e.x,n=e.y;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;return"scaleX("+e.scaleX+") scaleY("+e.scaleY+")"}},Transform:{toString(e){if(e)return[L9.Translate.toString(e),L9.Scale.toString(e)].join(" ")}},Transition:{toString:e=>e.property+" "+e.duration+"ms "+e.easing}}),B9="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function q9(e){return e.matches(B9)?e:e.querySelector(B9)}const U9={display:"none"};function V9(e){let t=e.id,n=e.value;return a.createElement("div",{id:t,style:U9},n)}function H9(e){let t=e.id,n=e.announcement,r=e.ariaLiveType,i=void 0===r?"assertive":r;return a.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},n)}const W9=["transform"],K9=["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"],G9=(0,a.createContext)(null);const Z9={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Y9={onDragStart:e=>"Picked up draggable item "+e.active.id+".",onDragOver(e){let t=e.active,n=e.over;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let t=e.active,n=e.over;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel:e=>"Dragging was cancelled. Draggable item "+e.active.id+" was dropped."};function Q9(e){let t=e.announcements,n=void 0===t?Y9:t,r=e.container,i=e.hiddenTextDescribedById,s=e.screenReaderInstructions,o=void 0===s?Z9:s;const l=function(){const e=Le((0,a.useState)(""),2),t=e[0],n=e[1],r=(0,a.useCallback)(e=>{null!=e&&n(e)},[]);return{announce:r,announcement:t}}(),c=l.announce,d=l.announcement,u=R9("DndLiveRegion"),m=Le((0,a.useState)(!1),2),p=m[0],h=m[1];if((0,a.useEffect)(()=>{h(!0)},[]),function(e){const t=(0,a.useContext)(G9);(0,a.useEffect)(()=>
2{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}((0,a.useMemo)(()=>({onDragStart(e){let t=e.active;c(n.onDragStart({active:t}))},onDragMove(e){let t=e.active,a=e.over;n.onDragMove&&c(n.onDragMove({active:t,over:a}))},onDragOver(e){let t=e.active,a=e.over;c(n.onDragOver({active:t,over:a}))},onDragEnd(e){let t=e.active,a=e.over;c(n.onDragEnd({active:t,over:a}))},onDragCancel(e){let t=e.active,a=e.over;c(n.onDragCancel({active:t,over:a}))}}),[c,n])),!p)return null;const f=a.createElement(a.Fragment,null,a.createElement(V9,{id:i,value:o.draggable}),a.createElement(H9,{id:u,announcement:d}));return r?(0,Na.createPortal)(f,r):f}var $9;function X9(){}function J9(e,t){return(0,a.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function eee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}($9||($9={}));const tee=Object.freeze({x:0,y:0});function nee(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function aee(e,t){return e.data.value-t.data.value}function ree(e,t){let n=e.data.value;return t.data.value-n}function iee(e){let t=e.left,n=e.top,a=e.height,r=e.width;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+a},{x:t+r,y:n+a}]}function see(e,t){if(!e||0===e.length)return null;const n=Le(e,1)[0];return t?n[t]:n}function oee(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const lee=e=>{let t=e.collisionRect,n=e.droppableRects,a=e.droppableContainers;const r=oee(t,t.left,t.top),i=[];for(const s of a){const e=s.id,t=n.get(e);if(t){const n=nee(oee(t),r);i.push({id:e,data:{droppableContainer:s,value:n}})}}return i.sort(aee)};function cee(e,t){const n=Math.max(t.top,e.top),a=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=r-a,o=i-n;if(a<r&&n<i){const n=t.width*t.height,a=e.width*e.height,r=s*o;return Number((r/(n+a-r)).toFixed(4))}return 0}const dee=e=>{let t=e.collisionRect,n=e.droppableRects,a=e.droppableContainers;const r=[];for(const i of a){const e=i.id,a=n.get(e);if(a){const n=cee(a,t);n>0&&r.push({id:e,data:{droppableContainer:i,value:n}})}}return r.sort(ree)};function uee(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:tee}function mee(e){return function(t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];return a.reduce((t,n)=>d(d({},t),{},{top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),d({},t))}}const pee=mee(1);function hee(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const fee={ignoreTransform:!1};function gee(e,t){void 0===t&&(t=fee);let n=e.getBoundingClientRect();if(t.ignoreTransform){const t=w9(e).getComputedStyle(e),a=t.transform,r=t.transformOrigin;a&&(n=function(e,t,n){const a=hee(t);if(!a)return e;const r=a.scaleX,i=a.scaleY,s=a.x,o=a.y,l=e.left-s-(1-r)*parseFloat(n),c=e.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:c,right:l+d,bottom:c+u,left:l}}(n,a,r))}const a=n;return{top:a.top,left:a.left,width:a.width,height:a.height,bottom:a.bottom,right:a.right}}function xee(e){return gee(e,{ignoreTransform:!0})}function vee(e,t){const n=[];return e?function a(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(j9(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!k9(r)||N9(r))return n;if(n.includes(r))return n;const i=w9(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=w9(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{const a=t[e];return"string"===typeof a&&n.test(a)})}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=w9(e).getComputedStyle(e)),"fixed"===t.position}(r,i)?n:a(r.parentNode)}(e):n}function bee(e){const t=Le(vee(e,1),1)[0];return null!=t?t:null}function yee(e){return v9&&e?b9(e)?e:y9(e)?j9(e)||e===S9(e).scrollingElement?window:k9(e)?e:null:null:null}function wee(e){return b9(e)?e.scrollX:e.scrollLeft}function jee(e){return b9(e)?e.scrollY:e.scrollTop}function kee(e){return{x:wee(e),y:jee(e)}}var Nee;function See(e){return!(!v9||!e)&&e===document.scrollingElement}function _ee(e){const t={x:0,y:0},n=See(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},a={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=a.y,isRight:e.scrollLeft>=a.x,maxScroll:a,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(Nee||(Nee={}));const zee={x:.2,y:.2};function Eee(e,t,n,a,r){let i=n.top,s=n.left,o=n.right,l=n.bottom;void 0===a&&(a=10),void 0===r&&(r=zee);const c=_ee(e),d=c.isTop,u=c.isBottom,m=c.isLeft,p=c.isRight,h={x:0,y:0},f={x:0,y:0},g=t.height*r.y,x=t.width*r.x;
2return!d&&i<=t.top+g?(h.y=Nee.Backward,f.y=a*Math.abs((t.top+g-i)/g)):!u&&l>=t.bottom-g&&(h.y=Nee.Forward,f.y=a*Math.abs((t.bottom-g-l)/g)),!p&&o>=t.right-x?(h.x=Nee.Forward,f.x=a*Math.abs((t.right-x-o)/x)):!m&&s<=t.left+x&&(h.x=Nee.Backward,f.x=a*Math.abs((t.left+x-s)/x)),{direction:h,speed:f}}function Cee(e){if(e===document.scrollingElement){const e=window,t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}const t=e.getBoundingClientRect();return{top:t.top,left:t.left,right:t.right,bottom:t.bottom,width:e.clientWidth,height:e.clientHeight}}function Pee(e){return e.reduce((e,t)=>D9(e,kee(t)),tee)}function Aee(e,t){if(void 0===t&&(t=gee),!e)return;const n=t(e),a=n.top,r=n.left,i=n.bottom,s=n.right;bee(e)&&(i<=0||s<=0||a>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Tee=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+wee(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+jee(t),0)}]];class Ree{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=vee(t),a=Pee(n);this.rect=d({},e),this.width=e.width,this.height=e.height;for(const i of Tee){var r=Le(i,3);const e=r[0],t=r[1],s=r[2];for(const r of t)Object.defineProperty(this,r,{get:()=>{const t=s(n),i=a[e]-t;return this.rect[r]+i},enumerable:!0})}Object.defineProperty(this,"rect",{enumerable:!1})}}class Oee{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,n){var a;null==(a=this.target)||a.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Dee(e,t){const n=Math.abs(e.x),a=Math.abs(e.y);return"number"===typeof t?Math.sqrt(n**2+a**2)>t:"x"in t&&"y"in t?n>t.x&&a>t.y:"x"in t?n>t.x:"y"in t&&a>t.y}var Mee,Iee;function Fee(e){e.preventDefault()}function Lee(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(Mee||(Mee={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(Iee||(Iee={}));const Bee={start:[Iee.Space,Iee.Enter],cancel:[Iee.Esc],end:[Iee.Space,Iee.Enter,Iee.Tab]},qee=(e,t)=>{let n=t.currentCoordinates;switch(e.code){case Iee.Right:return d(d({},n),{},{x:n.x+25});case Iee.Left:return d(d({},n),{},{x:n.x-25});case Iee.Down:return d(d({},n),{},{y:n.y+25});case Iee.Up:return d(d({},n),{},{y:n.y-25})}};class Uee{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const t=e.event.target;this.props=e,this.listeners=new Oee(S9(t)),this.windowListeners=new Oee(w9(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Mee.Resize,this.handleCancel),this.windowListeners.add(Mee.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Mee.Keydown,this.handleKeyDown))}handleStart(){const e=this.props,t=e.activeNode,n=e.onStart,a=t.node.current;a&&Aee(a),n(tee)}handleKeyDown(e){if(I9(e)){const t=this.props,n=t.active,a=t.context,r=t.options,i=r.keyboardCodes,s=void 0===i?Bee:i,o=r.coordinateGetter,l=void 0===o?qee:o,c=r.scrollBehavior,d=void 0===c?"smooth":c,u=e.code;if(s.end.includes(u))return void this.handleEnd(e);if(s.cancel.includes(u))return void this.handleCancel(e);const m=a.current.collisionRect,p=m?{x:m.left,y:m.top}:tee;this.referenceCoordinates||(this.referenceCoordinates=p);const h=l(e,{active:n,context:a.current,currentCoordinates:p});if(h){const t=M9(h,p),n={x:0,y:0},r=a.current.scrollableAncestors;for(const a of r){const r=e.code,i=_ee(a),s=i.isTop,o=i.isRight,l=i.isLeft,c=i.isBottom,u=i.maxScroll,m=i.minScroll,p=Cee(a),f={x:Math.min(r===Iee.Right?p.right-p.width/2:p.right,Math.max(r===Iee.Right?p.left:p.left+p.width/2,h.x)),y:Math.min(r===Iee.Down?p.bottom-p.height/2:p.bottom,Math.max(r===Iee.Down?p.top:p.top+p.height/2,h.y))},g=r===Iee.Right&&!o||r===Iee.Left&&!l,x=r===Iee.Down&&!c||r===Iee.Up&&!s;if(g&&f.x!==h.x){const e=a.scrollLeft+t.x,i=r===Iee.Right&&e<=u.x||r===Iee.Left&&e>=m.x;if(i&&!t.y)return void a.scrollTo({left:e,behavior:d});n.x=i?a.scrollLeft-e:r===Iee.Right?a.scrollLeft-u.x:a.scrollLeft-m.x,n.x&&a.scrollBy({left:-n.x,behavior:d});break}if(x&&f.y!==h.y){const e=a.scrollTop+t.y,i=r===Iee.Down&&e<=u.y||r===Iee.Up&&e>=m.y;if(i&&!t.x)return void a.scrollTo({top:e,behavior:d});n.y=i?a.scrollTop-e:r===Iee.Down?a.scrollTop-u.y:a.scrollTop-m.y,n.y&&a.scrollBy({top:-n.y,behavior:d});break}}this.handleMove(e,D9(M9(h,this.referenceCoordinates),n))}}}handleMove(e,t){const n=this.props.onMove;e.preventDefault(),n(t)}handleEnd(e){const t=this.props.onEnd;e.preventDefault(),this.detach(),t()}handleCancel(e){const t=this.props.onCancel;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function Vee(e){return Boolean(e&&"distance"in e)}function Hee(e){return Boolean(e&&"delay"in e)}Uee.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let a=t.keyboardCodes,r=void 0===a?Bee:a,i=t.onActivation,s=n.active;const o=e.nativeEvent.code;if(r.start.includes(o)){const t=s.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class Wee{constructor(e,t,n){var a;void 0===n&&(n=function(e){return e instanceof w9(e).EventTarget?e:S9(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const r=e.event,i=r.target;this.props=e,this.events=t,this.document=S9(i),this.documentListeners=new Oee(this.document),this.listeners=new Oee(n),this.windowListeners=new Oee(w9(i)),this.initialCoordinates=null!=(a=F9(r))?a:tee,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const e=this.events,t=this.props.options,n=t.activationConstraint,a=t.bypassActivationConstraint;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Mee.Resize,this.handleCancel),this.windowListeners.add(Mee.DragStart,Fee),this.windowListeners.add(Mee.VisibilityChange,this.handleCancel),this.windowListeners.add(Mee.ContextMenu,Fee),this.documentListeners.add(Mee.Keydown,this.handleKeydown),n){if(null!=a&&a({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Hee(n))return this.timeoutId=setTimeout(this.handleStart,n.delay),void this.handlePending(n);if(Vee(n))return void this.handlePending(n)}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){const n=this.props,a=n.active;(0,n.onPending)(a,e,this.initialCoordinates,t)}handleStart(){const e=this.initialCoordinates,t=this.props.onStart;e&&(this.activated=!0,this.documentListeners.add(Mee.Click,Lee,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Mee.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const n=this.activated,a=this.initialCoordinates,r=this.props,i=r.onMove,s=r.options.activationConstraint;if(!a)return;const o=null!=(t=F9(e))?t:tee,l=M9(a,o);
2if(!n&&s){if(Vee(s)){if(null!=s.tolerance&&Dee(l,s.tolerance))return this.handleCancel();if(Dee(l,s.distance))return this.handleStart()}return Hee(s)&&Dee(l,s.tolerance)?this.handleCancel():void this.handlePending(s,l)}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){const e=this.props,t=e.onAbort,n=e.onEnd;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const e=this.props,t=e.onAbort,n=e.onCancel;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(e){e.code===Iee.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Kee={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Gee extends Wee{constructor(e){const t=S9(e.event.target);super(e,Kee,t)}}Gee.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let n=e.nativeEvent,a=t.onActivation;return!(!n.isPrimary||0!==n.button)&&(null==a||a({event:n}),!0)}}];const Zee={move:{name:"mousemove"},end:{name:"mouseup"}};var Yee;!function(e){e[e.RightClick=2]="RightClick"}(Yee||(Yee={}));(class extends Wee{constructor(e){super(e,Zee,S9(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let n=e.nativeEvent,a=t.onActivation;return n.button!==Yee.RightClick&&(null==a||a({event:n}),!0)}}];const Qee={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};var $ee,Xee;function Jee(e){let t=e.acceleration,n=e.activator,r=void 0===n?$ee.Pointer:n,i=e.canScroll,s=e.draggingRect,o=e.enabled,l=e.interval,c=void 0===l?5:l,d=e.order,u=void 0===d?Xee.TreeOrder:d,m=e.pointerCoordinates,p=e.scrollableAncestors,h=e.scrollableAncestorRects,f=e.delta,g=e.threshold;const x=function(e){let t=e.delta,n=e.disabled;const a=A9(t);return C9(e=>{if(n||!a||!e)return ete;const r={x:Math.sign(t.x-a.x),y:Math.sign(t.y-a.y)};return{x:{[Nee.Backward]:e.x[Nee.Backward]||-1===r.x,[Nee.Forward]:e.x[Nee.Forward]||1===r.x},y:{[Nee.Backward]:e.y[Nee.Backward]||-1===r.y,[Nee.Forward]:e.y[Nee.Forward]||1===r.y}}},[n,t,a])}({delta:f,disabled:!o}),v=function(){const e=(0,a.useRef)(null),t=(0,a.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]);return[t,(0,a.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}(),b=Le(v,2),y=b[0],w=b[1],j=(0,a.useRef)({x:0,y:0}),k=(0,a.useRef)({x:0,y:0}),N=(0,a.useMemo)(()=>{switch(r){case $ee.Pointer:return m?{top:m.y,bottom:m.y,left:m.x,right:m.x}:null;case $ee.DraggableRect:return s}},[r,s,m]),S=(0,a.useRef)(null),_=(0,a.useCallback)(()=>{const e=S.current;if(!e)return;const t=j.current.x*k.current.x,n=j.current.y*k.current.y;e.scrollBy(t,n)},[]),z=(0,a.useMemo)(()=>u===Xee.TreeOrder?[...p].reverse():p,[u,p]);(0,a.useEffect)(()=>{if(o&&p.length&&N){for(const e of z){if(!1===(null==i?void 0:i(e)))continue;const n=p.indexOf(e),a=h[n];if(!a)continue;const r=Eee(e,a,N,t,g),s=r.direction,o=r.speed;for(const e of["x","y"])x[e][s[e]]||(o[e]=0,s[e]=0);if(o.x>0||o.y>0)return w(),S.current=e,y(_,c),j.current=o,void(k.current=s)}j.current={x:0,y:0},k.current={x:0,y:0},w()}else w()},[t,_,i,w,o,c,JSON.stringify(N),JSON.stringify(x),y,p,z,h,JSON.stringify(g)])}(class extends Wee{constructor(e){super(e,Qee)}static setup(){return window.addEventListener(Qee.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Qee.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let n=e.nativeEvent,a=t.onActivation;return!(n.touches.length>1)&&(null==a||a({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}($ee||($ee={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(Xee||(Xee={}));const ete={x:{[Nee.Backward]:!1,[Nee.Forward]:!1},y:{[Nee.Backward]:!1,[Nee.Forward]:!1}};var tte,nte;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(tte||(tte={})),function(e){e.Optimized="optimized"}(nte||(nte={}));const ate=new Map;function rte(e,t){return C9(n=>e?n||("function"===typeof t?t(e):e):null,[t,e])}function ite(e){let t=e.callback,n=e.disabled;const r=z9(t),i=(0,a.useMemo)(()=>
2{if(n||"undefined"===typeof window||"undefined"===typeof window.ResizeObserver)return;return new(0,window.ResizeObserver)(r)},[n]);return(0,a.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ste(e){return new Ree(gee(e),e)}function ote(e,t,n){void 0===t&&(t=ste);const r=Le((0,a.useState)(null),2),i=r[0],s=r[1];function o(){s(a=>{if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=a?a:n)?r:null;const i=t(e);return JSON.stringify(a)===JSON.stringify(i)?a:i})}const l=function(e){let t=e.callback,n=e.disabled;const r=z9(t),i=(0,a.useMemo)(()=>{if(!n&&"undefined"!==typeof window&&"undefined"!==typeof window.MutationObserver)return new(0,window.MutationObserver)(r)},[r,n]);return(0,a.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(const n of t){const t=n.type,a=n.target;if("childList"===t&&a instanceof HTMLElement&&a.contains(e)){o();break}}}}),c=ite({callback:o});return _9(()=>{o(),e?(null==c||c.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==c||c.disconnect(),null==l||l.disconnect())},[e]),i}const lte=[];function cte(e,t){void 0===t&&(t=[]);const n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{n.current=null},t),(0,a.useEffect)(()=>{const t=e!==tee;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?M9(e,n.current):tee}function dte(e){return(0,a.useMemo)(()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null,[e])}const ute=[];function mte(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return k9(t)?t:e}const pte=[{sensor:Gee,options:{}},{sensor:Uee,options:{}}],hte={current:{}},fte={draggable:{measure:xee},droppable:{measure:xee,strategy:tte.WhileDragging,frequency:nte.Optimized},dragOverlay:{measure:gee}};class gte extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>!e.disabled)}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const xte={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new gte,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:X9},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fte,measureDroppableContainers:X9,windowRect:null,measuringScheduled:!1},vte={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:X9,draggableNodes:new Map,over:null,measureDroppableContainers:X9},bte=(0,a.createContext)(vte),yte=(0,a.createContext)(xte);function wte(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new gte}}}function jte(e,t){switch(t.type){case $9.DragStart:return d(d({},e),{},{draggable:d(d({},e.draggable),{},{initialCoordinates:t.initialCoordinates,active:t.active})});case $9.DragMove:return null==e.draggable.active?e:d(d({},e),{},{draggable:d(d({},e.draggable),{},{translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}})});case $9.DragEnd:case $9.DragCancel:return d(d({},e),{},{draggable:d(d({},e.draggable),{},{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case $9.RegisterDroppable:{const n=t.element,a=n.id,r=new gte(e.droppable.containers);return r.set(a,n),d(d({},e),{},{droppable:d(d({},e.droppable),{},{containers:r})})}case $9.SetDroppableDisabled:{const n=t.id,a=t.key,r=t.disabled,i=e.droppable.containers.get(n);if(!i||a!==i.key)return e;const s=new gte(e.droppable.containers);return s.set(n,d(d({},i),{},{disabled:r})),d(d({},e),{},{droppable:d(d({},e.droppable),{},{containers:s})})}case $9.UnregisterDroppable:{const n=t.id,a=t.key,r=e.droppable.containers.get(n);if(!r||a!==r.key)return e;const i=new gte(e.droppable.containers);return i.delete(n),d(d({},e),{},{droppable:d(d({},e.droppable),{},{containers:i})})}default:return e}}function kte(e){let t=e.disabled;const n=(0,a.useContext)(bte),r=n.active,i=n.activatorEvent,s=n.draggableNodes,o=A9(i),l=A9(null==r?void 0:r.id);return(0,a.useEffect)(()=>
2{if(!t&&!i&&o&&null!=l){if(!I9(o))return;if(document.activeElement===o.target)return;const e=s.get(l);if(!e)return;const t=e.activatorNode,n=e.node;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=q9(e);if(t){t.focus();break}}})}},[i,t,s,l,o]),null}function Nte(e,t){let n=t.transform,a=Be(t,W9);return null!=e&&e.length?e.reduce((e,t)=>t(d({transform:e},a)),n):n}const Ste=(0,a.createContext)(d(d({},tee),{},{scaleX:1,scaleY:1}));var _te;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(_te||(_te={}));const zte=(0,a.memo)(function(e){var t,n,r,i;let s=e.id,o=e.accessibility,l=e.autoScroll,c=void 0===l||l,u=e.children,m=e.sensors,p=void 0===m?pte:m,h=e.collisionDetection,f=void 0===h?dee:h,g=e.measuring,x=e.modifiers,v=Be(e,K9);const b=Le((0,a.useReducer)(jte,void 0,wte),2),y=b[0],w=b[1],j=function(){const e=Le((0,a.useState)(()=>new Set),1)[0],t=(0,a.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]),n=(0,a.useCallback)(t=>{let n=t.type,a=t.event;e.forEach(e=>{var t;return null==(t=e[n])?void 0:t.call(e,a)})},[e]);return[n,t]}(),k=Le(j,2),N=k[0],S=k[1],_=Le((0,a.useState)(_te.Uninitialized),2),z=_[0],E=_[1],C=z===_te.Initialized,P=y.draggable,A=P.active,T=P.nodes,R=P.translate,O=y.droppable.containers,D=null!=A?T.get(A):null,M=(0,a.useRef)({initial:null,translated:null}),I=(0,a.useMemo)(()=>{var e;return null!=A?{id:A,data:null!=(e=null==D?void 0:D.data)?e:hte,rect:M}:null},[A,D]),F=(0,a.useRef)(null),L=Le((0,a.useState)(null),2),B=L[0],q=L[1],U=Le((0,a.useState)(null),2),V=U[0],H=U[1],W=E9(v,Object.values(v)),K=R9("DndDescribedBy",s),G=(0,a.useMemo)(()=>O.getEnabled(),[O]),Z=(Y=g,(0,a.useMemo)(()=>({draggable:d(d({},fte.draggable),null==Y?void 0:Y.draggable),droppable:d(d({},fte.droppable),null==Y?void 0:Y.droppable),dragOverlay:d(d({},fte.dragOverlay),null==Y?void 0:Y.dragOverlay)}),[null==Y?void 0:Y.draggable,null==Y?void 0:Y.droppable,null==Y?void 0:Y.dragOverlay]));var Y;const Q=function(e,t){let n=t.dragging,r=t.dependencies,i=t.config;const s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=i.frequency,d=i.measure,u=i.strategy,m=(0,a.useRef)(e),p=function(){switch(u){case tte.Always:return!1;case tte.BeforeDragging:return n;default:return!n}}(),h=E9(p),f=(0,a.useCallback)(function(e){void 0===e&&(e=[]),h.current||l(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),g=(0,a.useRef)(null),x=C9(t=>{if(p&&!n)return ate;if(!t||t===ate||m.current!==e||null!=o){const t=new Map;for(let n of e){if(!n)continue;if(o&&o.length>0&&!o.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,a=e?new Ree(d(e),e):null;n.rect.current=a,a&&t.set(n.id,a)}return t}return t},[e,o,n,p,d]);return(0,a.useEffect)(()=>{m.current=e},[e]),(0,a.useEffect)(()=>{p||f()},[n,p]),(0,a.useEffect)(()=>{o&&o.length>0&&l(null)},[JSON.stringify(o)]),(0,a.useEffect)(()=>{p||"number"!==typeof c||null!==g.current||(g.current=setTimeout(()=>{f(),g.current=null},c))},[c,p,f,...r]),{droppableRects:x,measureDroppableContainers:f,measuringScheduled:null!=o}}(G,{dragging:C,dependencies:[R.x,R.y],config:Z.droppable}),$=Q.droppableRects,X=Q.measureDroppableContainers,J=Q.measuringScheduled,ee=function(e,t){const n=null!=t?e.get(t):void 0,a=n?n.node.current:null;return C9(e=>{var n;return null==t?null:null!=(n=null!=a?a:e)?n:null},[a,t])}(T,A),te=(0,a.useMemo)(()=>V?F9(V):null,[V]),ne=function(){const e=!1===(null==B?void 0:B.autoScrollEnabled),t="object"===typeof c?!1===c.enabled:!1===c,n=C&&!e&&!t;if("object"===typeof c)return d(d({},c),{},{enabled:n});return{enabled:n}}(),ae=function(e,t){return rte(e,t)}(ee,Z.draggable.measure);!function(e){let t=e.activeNode,n=e.measure,r=e.initialRect,i=e.config,s=void 0===i||i;const o=(0,a.useRef)(!1),l="boolean"===typeof s?{x:s,y:s}:s,c=l.x,d=l.y;_9(()=>{if(!c&&!d||!t)return void(o.current=!1);if(o.current||!r)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const a=uee(n(e),r);if(c||(a.x=0),d||(a.y=0),o.current=!0,Math.abs(a.x)>0||Math.abs(a.y)>0){const t=bee(e);t&&t.scrollBy({top:a.y,left:a.x})}},[t,c,d,r,n])}({activeNode:null!=A?T.get(A):null,config:ne.layoutShiftCompensation,initialRect:ae,measure:Z.draggable.measure});const re=ote(ee,Z.draggable.measure,ae),ie=ote(ee?ee.parentElement:null),se=(0,a.useRef)({activatorEvent:null,active:null,activeNode:ee,collisionRect:null,collisions:null,droppableRects:$,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:O,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),oe=O.getNodeFor(null==(t=se.current.over)?void 0:t.id),le=function(e){let t=e.measure;const n=Le((0,a.useState)(null),2),r=n[0],i=n[1],s=ite({callback:(0,a.useCallback)(e=>{for(const n of e){const e=n.target;if(k9(e)){i(n=>{const a=t(e);return n?d(d({},n),{},{width:a.width,height:a.height}):a});break}}},[t])}),o=Le(P9((0,a.useCallback)(e=>{const n=mte(e);null==s||s.disconnect(),n&&(null==s||s.observe(n)),i(n?t(n):null)},[t,s])),2),l=o[0],c=o[1];return(0,a.useMemo)(()=>({nodeRef:l,rect:r,setRef:c}),[r,l,c])}({measure:Z.dragOverlay.measure}
2),ce=null!=(n=le.nodeRef.current)?n:ee,de=C?null!=(r=le.rect)?r:re:null,ue=Boolean(le.nodeRef.current&&le.rect),me=uee(pe=ue?null:re,rte(pe));var pe;const he=dte(ce?w9(ce):null),fe=function(e){const t=(0,a.useRef)(e),n=C9(n=>e?n&&n!==lte&&e&&t.current&&e.parentNode===t.current.parentNode?n:vee(e):lte,[e]);return(0,a.useEffect)(()=>{t.current=e},[e]),n}(C?null!=oe?oe:ee:null),ge=function(e,t){void 0===t&&(t=gee);const n=Le(e,1)[0],r=dte(n?w9(n):null),i=Le((0,a.useState)(ute),2),s=i[0],o=i[1];function l(){o(()=>e.length?e.map(e=>See(e)?r:new Ree(t(e),e)):ute)}const c=ite({callback:l});return _9(()=>{null==c||c.disconnect(),l(),e.forEach(e=>null==c?void 0:c.observe(e))},[e]),s}(fe),xe=Nte(x,{transform:{x:R.x-me.x,y:R.y-me.y,scaleX:1,scaleY:1},activatorEvent:V,active:I,activeNodeRect:re,containerNodeRect:ie,draggingNodeRect:de,over:se.current.over,overlayNodeRect:le.rect,scrollableAncestors:fe,scrollableAncestorRects:ge,windowRect:he}),ve=te?D9(te,R):null,be=function(e){const t=Le((0,a.useState)(null),2),n=t[0],r=t[1],i=(0,a.useRef)(e),s=(0,a.useCallback)(e=>{const t=yee(e.target);t&&r(e=>e?(e.set(t,kee(t)),new Map(e)):null)},[]);return(0,a.useEffect)(()=>{const t=i.current;if(e!==t){n(t);const a=e.map(e=>{const t=yee(e);return t?(t.addEventListener("scroll",s,{passive:!0}),[t,kee(t)]):null}).filter(e=>null!=e);r(a.length?new Map(a):null),i.current=e}return()=>{n(e),n(t)};function n(e){e.forEach(e=>{const t=yee(e);null==t||t.removeEventListener("scroll",s)})}},[s,e]),(0,a.useMemo)(()=>e.length?n?Array.from(n.values()).reduce((e,t)=>D9(e,t),tee):Pee(e):tee,[e,n])}(fe),ye=cte(be),we=cte(be,[re]),je=D9(xe,ye),ke=de?pee(de,xe):null,Ne=I&&ke?f({active:I,collisionRect:ke,droppableRects:$,droppableContainers:G,pointerCoordinates:ve}):null,Se=see(Ne,"id"),_e=Le((0,a.useState)(null),2),ze=_e[0],Ee=_e[1],Ce=function(e,t,n){return d(d({},e),{},{scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1})}(ue?xe:D9(xe,we),null!=(i=null==ze?void 0:ze.rect)?i:null,re),Pe=(0,a.useRef)(null),Ae=(0,a.useCallback)((e,t)=>{let n=t.sensor,a=t.options;if(null==F.current)return;const r=T.get(F.current);if(!r)return;const i=e.nativeEvent,s=new n({active:F.current,activeNode:r,event:i,options:a,context:se,onAbort(e){if(!T.get(e))return;const t=W.current.onDragAbort,n={id:e};null==t||t(n),N({type:"onDragAbort",event:n})},onPending(e,t,n,a){if(!T.get(e))return;const r=W.current.onDragPending,i={id:e,constraint:t,initialCoordinates:n,offset:a};null==r||r(i),N({type:"onDragPending",event:i})},onStart(e){const t=F.current;if(null==t)return;const n=T.get(t);if(!n)return;const a=W.current.onDragStart,r={activatorEvent:i,active:{id:t,data:n.data,rect:M}};(0,Na.unstable_batchedUpdates)(()=>{null==a||a(r),E(_te.Initializing),w({type:$9.DragStart,initialCoordinates:e,active:t}),N({type:"onDragStart",event:r}),q(Pe.current),H(i)})},onMove(e){w({type:$9.DragMove,coordinates:e})},onEnd:o($9.DragEnd),onCancel:o($9.DragCancel)});function o(e){return async function(){const t=se.current,n=t.active,a=t.collisions,r=t.over,s=t.scrollAdjustedTranslate;let o=null;if(n&&s){const t=W.current.cancelDrop;if(o={activatorEvent:i,active:n,collisions:a,delta:s,over:r},e===$9.DragEnd&&"function"===typeof t){await Promise.resolve(t(o))&&(e=$9.DragCancel)}}F.current=null,(0,Na.unstable_batchedUpdates)(()=>{w({type:e}),E(_te.Uninitialized),Ee(null),q(null),H(null),Pe.current=null;const t=e===$9.DragEnd?"onDragEnd":"onDragCancel";if(o){const e=W.current[t];null==e||e(o),N({type:t,event:o})}})}}Pe.current=s},[T]),Te=(0,a.useCallback)((e,t)=>(n,a)=>{const r=n.nativeEvent,i=T.get(a);if(null!==F.current||!i||r.dndKit||r.defaultPrevented)return;const s={active:i};!0===e(n,t.options,s)&&(r.dndKit={capturedBy:t.sensor},F.current=a,Ae(n,t))},[T,Ae]),Re=function(e,t){return(0,a.useMemo)(()=>e.reduce((e,n)=>[...e,...n.sensor.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}))],[]),[e,t])}(p,Te);!function(e){(0,a.useEffect)(()=>{if(!v9)return;const t=e.map(e=>{let t=e.sensor;return null==t.setup?void 0:t.setup()});return()=>{for(const e of t)null==e||e()}},e.map(e=>e.sensor))}(p),_9(()=>{re&&z===_te.Initializing&&E(_te.Initialized)},[re,z]),(0,a.useEffect)(()=>{const e=W.current.onDragMove,t=se.current,n=t.active,a=t.activatorEvent,r=t.collisions,i=t.over;if(!n||!a)return;const s={active:n,activatorEvent:a,collisions:r,delta:{x:je.x,y:je.y},over:i};(0,Na.unstable_batchedUpdates)(()=>{null==e||e(s),N({type:"onDragMove",event:s})})},[je.x,je.y]),(0,a.useEffect)(()=>{const e=se.current,t=e.active,n=e.activatorEvent,a=e.collisions,r=e.droppableContainers,i=e.scrollAdjustedTranslate;if(!t||null==F.current||!n||!i)return;const s=W.current.onDragOver,o=r.get(Se),l=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:t,activatorEvent:n,collisions:a,delta:{x:i.x,y:i.y},over:l};(0,Na.unstable_batchedUpdates)(()=>{Ee(l),null==s||s(c),N({type:"onDragOver",event:c})})},[Se]),_9(()=>{se.current={activatorEvent:V,active:I,activeNode:ee,collisionRect:ke,collisions:Ne,droppableRects:$,draggableNodes:T,draggingNode:ce,draggingNodeRect:de,droppableContainers:O,over:ze,scrollableAncestors:fe,scrollAdjustedTranslate:je},M.current={initial:de,translated:ke}},[I,ee,Ne,ke,T,ce,de,$,O,ze,fe,je]),Jee(d(d({},ne),{},{delta:R,draggingRect:ke,pointerCoordinates:ve,scrollableAncestors:fe,scrollableAncestorRects:ge}));const Oe=(0,a.useMemo)(()=>({active:I,activeNode:ee,activeNodeRect:re,activatorEvent:V,collisions:Ne,containerNodeRect:ie,dragOverlay:le,draggableNodes:T,droppableContainers:O,droppableRects:$,over:ze,measureDroppableContainers:X,scrollableAncestors:fe,scrollableAncestorRects:ge,measuringConfiguration:Z,measuringScheduled:J,windowRect:he}),[I,ee,re,V,Ne,ie,le,T,O,$,ze,X,fe,ge,Z,J,he]),De=(0,a.useMemo)(()=>({activatorEvent:V,activators:Re,active:I,activeNodeRect:re,ariaDescribedById:{draggable:K},dispatch:w,draggableNodes:T,over:ze,measureDroppableContainers:X}),[V,Re,I,re,w,K,T,ze,X]);return a.createElement(G9.Provider,{value:S},a.createElement(bte.Provider,{value:De},a.createElement(yte.Provider,{value:Oe},a.createElement(Ste.Provider,{value:Ce},u)),a.createElement(kte,{disabled:!1===(null==o?void 0:o.restoreFocus)}
2)),a.createElement(Q9,d(d({},o),{},{hiddenTextDescribedById:K})))}),Ete=(0,a.createContext)(null),Cte="button";function Pte(e){let t=e.id,n=e.data,r=e.disabled,i=void 0!==r&&r,s=e.attributes;const o=R9("Draggable"),l=(0,a.useContext)(bte),c=l.activators,d=l.activatorEvent,u=l.active,m=l.activeNodeRect,p=l.ariaDescribedById,h=l.draggableNodes,f=l.over,g=null!=s?s:{},x=g.role,v=void 0===x?Cte:x,b=g.roleDescription,y=void 0===b?"draggable":b,w=g.tabIndex,j=void 0===w?0:w,k=(null==u?void 0:u.id)===t,N=(0,a.useContext)(k?Ste:Ete),S=Le(P9(),2),_=S[0],z=S[1],E=Le(P9(),2),C=E[0],P=E[1],A=function(e,t){return(0,a.useMemo)(()=>e.reduce((e,n)=>{let a=n.eventName,r=n.handler;return e[a]=e=>{r(e,t)},e},{}),[e,t])}(c,t),T=E9(n);_9(()=>(h.set(t,{id:t,key:o,node:_,activatorNode:C,data:T}),()=>{const e=h.get(t);e&&e.key===o&&h.delete(t)}),[h,t]);return{active:u,activatorEvent:d,activeNodeRect:m,attributes:(0,a.useMemo)(()=>({role:v,tabIndex:j,"aria-disabled":i,"aria-pressed":!(!k||v!==Cte)||void 0,"aria-roledescription":y,"aria-describedby":p.draggable}),[i,v,j,k,y,p.draggable]),isDragging:k,listeners:i?void 0:A,node:_,over:f,setNodeRef:z,setActivatorNodeRef:P,transform:N}}function Ate(){return(0,a.useContext)(yte)}const Tte={timeout:25};function Rte(e,t,n){const a=e.slice();return a.splice(n<0?a.length+n:n,0,a.splice(t,1)[0]),a}function Ote(e,t){return e.reduce((e,n,a)=>{const r=t.get(n);return r&&(e[a]=r),e},Array(e.length))}function Dte(e){return null!==e&&e>=0}const Mte=e=>{let t=e.rects,n=e.activeIndex,a=e.overIndex,r=e.index;const i=Rte(t,a,n),s=t[r],o=i[r];return o&&s?{x:o.left-s.left,y:o.top-s.top,scaleX:o.width/s.width,scaleY:o.height/s.height}:null},Ite={scaleX:1,scaleY:1},Fte=e=>{var t;let n=e.activeIndex,a=e.activeNodeRect,r=e.index,i=e.rects,s=e.overIndex;const o=null!=(t=i[n])?t:a;if(!o)return null;if(r===n){const e=i[s];return e?d({x:0,y:n<s?e.top+e.height-(o.top+o.height):e.top-o.top},Ite):null}const l=function(e,t,n){const a=e[t],r=e[t-1],i=e[t+1];if(!a)return 0;if(n<t)return r?a.top-(r.top+r.height):i?i.top-(a.top+a.height):0;return i?i.top-(a.top+a.height):r?a.top-(r.top+r.height):0}(i,r,n);return d(r>n&&r<=s?{x:0,y:-o.height-l}:r<n&&r>=s?{x:0,y:o.height+l}:{x:0,y:0},Ite)};const Lte="Sortable",Bte=a.createContext({activeIndex:-1,containerId:Lte,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Mte,disabled:{draggable:!1,droppable:!1}});function qte(e){let t=e.children,n=e.id,r=e.items,i=e.strategy,s=void 0===i?Mte:i,o=e.disabled,l=void 0!==o&&o;const c=Ate(),d=c.active,u=c.dragOverlay,m=c.droppableRects,p=c.over,h=c.measureDroppableContainers,f=R9(Lte,n),g=Boolean(null!==u.rect),x=(0,a.useMemo)(()=>r.map(e=>"object"===typeof e&&"id"in e?e.id:e),[r]),v=null!=d,b=d?x.indexOf(d.id):-1,y=p?x.indexOf(p.id):-1,w=(0,a.useRef)(x),j=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(x,w.current),k=-1!==y&&-1===b||j,N=function(e){return"boolean"===typeof e?{draggable:e,droppable:e}:e}(l);_9(()=>{j&&v&&h(x)},[j,x,v,h]),(0,a.useEffect)(()=>{w.current=x},[x]);const S=(0,a.useMemo)(()=>({activeIndex:b,containerId:f,disabled:N,disableTransforms:k,items:x,overIndex:y,useDragOverlay:g,sortedRects:Ote(x,m),strategy:s}),[b,f,N.draggable,N.droppable,k,x,y,m,g,s]);return a.createElement(Bte.Provider,{value:S},t)}const Ute=e=>{let t=e.id;return Rte(e.items,e.activeIndex,e.overIndex).indexOf(t)},Vte=e=>{let t=e.containerId,n=e.isSorting,a=e.wasDragging,r=e.index,i=e.items,s=e.newIndex,o=e.previousItems,l=e.previousContainerId;return!(!e.transition||!a)&&((o===i||r!==s)&&(!!n||s!==r&&t===l))},Hte={duration:200,easing:"ease"},Wte="transform",Kte=L9.Transition.toString({property:Wte,duration:0,easing:"linear"}),Gte={roleDescription:"sortable"};function Zte(e){let t=e.animateLayoutChanges,n=void 0===t?Vte:t,r=e.attributes,i=e.disabled,s=e.data,o=e.getNewIndex,l=void 0===o?Ute:o,c=e.id,u=e.strategy,m=e.resizeObserverConfig,p=e.transition,h=void 0===p?Hte:p;const f=(0,a.useContext)(Bte),g=f.items,x=f.containerId,v=f.activeIndex,b=f.disabled,y=f.disableTransforms,w=f.sortedRects,j=f.overIndex,k=f.useDragOverlay,N=f.strategy,S=function(e,t){var n,a;if("boolean"===typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(a=null==e?void 0:e.droppable)?a:t.droppable}}(i,b),_=g.indexOf(c),z=(0,a.useMemo)(()=>
2d({sortable:{containerId:x,index:_,items:g}},s),[x,s,_,g]),E=(0,a.useMemo)(()=>g.slice(g.indexOf(c)),[g,c]),C=function(e){let t=e.data,n=e.disabled,r=void 0!==n&&n,i=e.id,s=e.resizeObserverConfig;const o=R9("Droppable"),l=(0,a.useContext)(bte),c=l.active,u=l.dispatch,m=l.over,p=l.measureDroppableContainers,h=(0,a.useRef)({disabled:r}),f=(0,a.useRef)(!1),g=(0,a.useRef)(null),x=(0,a.useRef)(null),v=d(d({},Tte),s),b=v.disabled,y=v.updateMeasurementsFor,w=v.timeout,j=E9(null!=y?y:i),k=ite({callback:(0,a.useCallback)(()=>{f.current?(null!=x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{p(Array.isArray(j.current)?j.current:[j.current]),x.current=null},w)):f.current=!0},[w]),disabled:b||!c}),N=Le(P9((0,a.useCallback)((e,t)=>{k&&(t&&(k.unobserve(t),f.current=!1),e&&k.observe(e))},[k])),2),S=N[0],_=N[1],z=E9(t);return(0,a.useEffect)(()=>{k&&S.current&&(k.disconnect(),f.current=!1,k.observe(S.current))},[S,k]),(0,a.useEffect)(()=>(u({type:$9.RegisterDroppable,element:{id:i,key:o,disabled:r,node:S,rect:g,data:z}}),()=>u({type:$9.UnregisterDroppable,key:o,id:i})),[i]),(0,a.useEffect)(()=>{r!==h.current.disabled&&(u({type:$9.SetDroppableDisabled,id:i,key:o,disabled:r}),h.current.disabled=r)},[i,o,r,u]),{active:c,rect:g,isOver:(null==m?void 0:m.id)===i,node:S,over:m,setNodeRef:_}}({id:c,data:z,disabled:S.droppable,resizeObserverConfig:d({updateMeasurementsFor:E},m)}),P=C.rect,A=C.node,T=C.isOver,R=C.setNodeRef,O=Pte({id:c,data:z,attributes:d(d({},Gte),r),disabled:S.draggable}),D=O.active,M=O.activatorEvent,I=O.activeNodeRect,F=O.attributes,L=O.setNodeRef,B=O.listeners,q=O.isDragging,U=O.over,V=O.setActivatorNodeRef,H=O.transform,W=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,a.useMemo)(()=>e=>{t.forEach(t=>t(e))},t)}(R,L),K=Boolean(D),G=K&&!y&&Dte(v)&&Dte(j),Z=!k&&q,Y=Z&&G?H:null,Q=G?null!=Y?Y:(null!=u?u:N)({rects:w,activeNodeRect:I,activeIndex:v,overIndex:j,index:_}):null,$=Dte(v)&&Dte(j)?l({id:c,items:g,activeIndex:v,overIndex:j}):_,X=null==D?void 0:D.id,J=(0,a.useRef)({activeId:X,items:g,newIndex:$,containerId:x}),ee=g!==J.current.items,te=n({active:D,containerId:x,isDragging:q,isSorting:K,id:c,index:_,items:g,newIndex:J.current.newIndex,previousItems:J.current.items,previousContainerId:J.current.containerId,transition:h,wasDragging:null!=J.current.activeId}),ne=function(e){let t=e.disabled,n=e.index,r=e.node,i=e.rect;const s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=(0,a.useRef)(n);return _9(()=>{if(!t&&n!==c.current&&r.current){const e=i.current;if(e){const t=gee(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==c.current&&(c.current=n)},[t,n,r,i]),(0,a.useEffect)(()=>{o&&l(null)},[o]),o}({disabled:!te,index:_,node:A,rect:P});return(0,a.useEffect)(()=>{K&&J.current.newIndex!==$&&(J.current.newIndex=$),x!==J.current.containerId&&(J.current.containerId=x),g!==J.current.items&&(J.current.items=g)},[K,$,x,g]),(0,a.useEffect)(()=>{if(X===J.current.activeId)return;if(null!=X&&null==J.current.activeId)return void(J.current.activeId=X);const e=setTimeout(()=>{J.current.activeId=X},50);return()=>clearTimeout(e)},[X]),{active:D,activeIndex:v,attributes:F,data:z,rect:P,index:_,newIndex:$,items:g,isOver:T,isSorting:K,isDragging:q,listeners:B,node:A,overIndex:j,over:U,setNodeRef:W,setActivatorNodeRef:V,setDroppableNodeRef:R,setDraggableNodeRef:L,transform:null!=ne?ne:Q,transition:function(){if(ne||ee&&J.current.newIndex===_)return Kte;if(Z&&!I9(M)||!h)return;if(K||te)return L9.Transition.toString(d(d({},h),{},{property:Wte}));return}()}}function Yte(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"===typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Qte=[Iee.Down,Iee.Right,Iee.Up,Iee.Left],$te=(e,t)=>{let n=t.context,a=n.active,r=n.collisionRect,i=n.droppableRects,s=n.droppableContainers,o=n.over,l=n.scrollableAncestors;if(Qte.includes(e.code)){if(e.preventDefault(),!a||!r)return;const t=[];s.getEnabled().forEach(n=>{if(!n||null!=n&&n.disabled)return;const a=i.get(n.id);
2if(a)switch(e.code){case Iee.Down:r.top<a.top&&t.push(n);break;case Iee.Up:r.top>a.top&&t.push(n);break;case Iee.Left:r.left>a.left&&t.push(n);break;case Iee.Right:r.left<a.left&&t.push(n)}});const n=(e=>{let t=e.collisionRect,n=e.droppableRects,a=e.droppableContainers;const r=iee(t),i=[];for(const s of a){const e=s.id,t=n.get(e);if(t){const n=iee(t),a=r.reduce((e,t,a)=>e+nee(n[a],t),0),o=Number((a/4).toFixed(4));i.push({id:e,data:{droppableContainer:s,value:o}})}}return i.sort(aee)})({active:a,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let c=see(n,"id");if(c===(null==o?void 0:o.id)&&n.length>1&&(c=n[1].id),null!=c){const e=s.get(a.id),t=s.get(c),n=t?i.get(t.id):null,o=null==t?void 0:t.node.current;if(o&&n&&e&&t){const a=vee(o).some((e,t)=>l[t]!==e),i=Xte(e,t),s=function(e,t){if(!Yte(e)||!Yte(t))return!1;if(!Xte(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),c=a||!i?{x:0,y:0}:{x:s?r.width-n.width:0,y:s?r.height-n.height:0},d={x:n.left,y:n.top};return c.x&&c.y?d:M9(d,c)}}}};function Xte(e,t){return!(!Yte(e)||!Yte(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const Jte=["home","analytics","pulse","care"],ene={home:"Start",analytics:"Analytics",pulse:"Pulse",care:"Care"},tne={home:"PERSENTIS Suite",analytics:"PERSENTIS Analytics",pulse:"PERSENTIS Pulse",care:"PERSENTIS Care"},nne=e=>{let t=e.onClick,n=e.title,a=e.active,r=e.danger,i=e.disabled,s=e.testid,o=e.children;return(0,Te.jsx)("button",{type:"button",onClick:t,title:n,disabled:i,"data-testid":s,className:"w-9 h-9 flex items-center justify-center rounded-lg border transition-colors disabled:opacity-40 ".concat(r?"border-red-200 text-red-600 hover:bg-red-50":a?"border-primary text-primary bg-primary/5":"border-border text-foreground hover:bg-muted"),children:o})};function ane(e){let t=e.step,n=e.expanded,r=e.onToggleExpand,i=e.onSaved,s=e.onDeleted,o=e.uploadImage;const l=Zte({id:t.key}),c=l.attributes,u=l.listeners,m=l.setNodeRef,p=l.transform,h=l.transition,f=l.isDragging,g={transform:L9.Transform.toString(p),transition:h,opacity:f?.4:1,zIndex:f?20:"auto"},x=Le((0,a.useState)(t),2),v=x[0],b=x[1],y=Le((0,a.useState)(!1),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)(!1),2),z=_[0],E=_[1],C=Le((0,a.useState)([]),2),P=C[0],A=C[1],T=Le((0,a.useState)(!1),2),R=T[0],O=T[1];(0,a.useEffect)(()=>{b(t)},[t]);const D=(e,t)=>b(n=>d(d({},n),{},{[e]:t})),M=async()=>{try{const e=(await Ps.get("/guide/admin/steps/".concat(v.key,"/versions"))).data;A(e.versions||[])}catch(rse){Ia.error("Versionen laden fehlgeschlagen")}};return(0,Te.jsxs)("div",{ref:m,style:g,"data-testid":"guide-edit-card-".concat(v.key),className:"rounded-xl border border-border bg-white overflow-hidden",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1.5 p-2.5",children:[(0,Te.jsx)("button",d(d(d({type:"button"},c),u),{},{tabIndex:-1,title:"Ziehen zum Sortieren","data-testid":"guide-drag-".concat(v.key),className:"cursor-grab active:cursor-grabbing text-muted-foreground/40 hover:text-muted-foreground px-1 touch-none",children:(0,Te.jsx)(g9,{size:16})})),(0,Te.jsxs)("button",{type:"button",onClick:r,"data-testid":"guide-edit-toggle-".concat(v.key),className:"flex-1 min-w-0 flex items-center gap-2.5 text-left",children:[(0,Te.jsx)(xw,{size:16,className:"text-muted-foreground shrink-0 transition-transform ".concat(n?"rotate-180":"")}),(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full shrink-0 ".concat(v.active?"bg-primary":"bg-muted-foreground/30"),title:v.active?"Aktiv":"Inaktiv"}),(0,Te.jsx)("span",{className:"text-sm font-semibold text-foreground truncate",children:v.title||(0,Te.jsx)("span",{className:"text-muted-foreground italic",children:"Ohne Titel"})}),!v.active&&(0,Te.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground bg-muted rounded-full px-2 py-0.5 shrink-0",children:(0,Te.jsx)(cy,{id:"common.inactive",as:"span",children:"Inaktiv"})})]}),(0,Te.jsxs)("span",{className:"text-[11px] text-muted-foreground/70 shrink-0 pr-1 hidden sm:block",children:["#",v.order]})]}),n&&(0,Te.jsxs)("div",{className:"px-4 pb-4 border-t border-border",children:[(0,Te.jsxs)("div",{className:"grid gap-3 mt-4",children:[(0,Te.jsxs)("label",{className:"text-xs font-semibold text-muted-foreground",children:["Bereichs-Label",(0,Te.jsx)("input",{value:v.area_label||"",onChange:e=>D("area_label",e.target.value),"data-testid":"guide-edit-area-".concat(v.key),className:"mt-1 w-full rounded-lg border border-border px-3 py-2 text-sm font-normal"})]}),(0,Te.jsxs)("label",{className:"text-xs font-semibold text-muted-foreground",children:["Titel",(0,Te.jsx)("input",{value:v.title||"",onChange:e=>D("title",e.target.value),"data-testid":"guide-edit-title-".concat(v.key),className:"mt-1 w-full rounded-lg border border-border px-3 py-2 text-sm font-normal"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground mb-1",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.text_label",as:"span",children:"Text"})}),(0,Te.jsx)("div",{"data-testid":"guide-edit-body-".concat(v.key),children:(0,Te.jsx)(WE,{value:v.body_html||"",onChange:e=>D("body_html",e),onUploadImage:async e=>{try{return await o(e)}catch(rse){return Ia.error("Bild-Upload fehlgeschlagen"),null}},placeholder:"Text des Schritts \u2026"})})]})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-2 mt-4",children:[(0,Te.jsxs)("label",{className:"flex items-center gap-1.5 text-xs font-semibold cursor-pointer select-none",children:[(0,Te.jsx)("input",{type:"checkbox",checked:!!v.active,onChange:e=>D("active",e.target.checked),"data-testid":"guide-edit-active-".concat(v.key),className:"accent-[hsl(var(--primary))]"})," Aktiv"]}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5",children:R?(0,Te.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.delete_step",as:"span",children:"Schritt l\xf6schen?"})}),(0,Te.jsx)(nne,{onClick:async()=>{try{await Ps.delete("/guide/admin/steps/".concat(v.key)),Ia.success("Schritt gel\xf6scht"),s()}catch(rse){Ia.error("L\xf6schen fehlgeschlagen")}},title:"L\xf6schen best\xe4tigen",danger:!0,testid:"guide-edit-delete-confirm-".concat(v.key),children:(0,Te.jsx)(Cf,{size:16})}),(0,Te.jsx)(nne,{onClick:()=>O(!1),title:"Abbrechen",testid:"guide-edit-delete-cancel-".concat(v.key),children:(0,Te.jsx)(Iv,{size:16})})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(nne,{onClick:()=>S(!0),title:"Vorschau",testid:"guide-edit-preview-".concat(v.key),children:(0,Te.jsx)(tS,{size:16})}),(0,Te.jsx)(nne,{onClick:()=>{const e=!z;E(e),e&&M()},title:"Versionen",active:z,testid:"guide-edit-versions-".concat(v.key),children:(0,Te.jsx)(KE,{size:16})}),(0,Te.jsx)(nne,{onClick:()=>O(!0),title:"L\xf6schen",danger:!0,testid:"guide-edit-delete-".concat(v.key),children:(0,Te.jsx)(y_,{size:16})}),(0,Te.jsxs)("button",{onClick:async()=>{j(!0);try{await Ps.put("/guide/admin/steps/".concat(v.key),{title:v.title,body_html:v.body_html,area_label:v.area_label,active:v.active}),Ia.success("Schritt gespeichert"),i(),z&&M()}catch(rse){Ia.error("Speichern fehlgeschlagen")}finally{j(!1)}},disabled:w,"data-testid":"guide-edit-save-".concat(v.key),className:"inline-flex items-center gap-2 rounded-lg bg-primary text-white px-4 h-9 text-sm font-semibold hover:opacity-90 transition-opacity disabled:opacity-60",children:[w?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(wE,{size:15})," Speichern"]})]})})]}),z&&(0,Te.jsxs)("div",{className:"mt-4 border-t border-border pt-4","data-testid":"guide-versions-".concat(v.key),children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.version_history",as:"span",children:"Versionsverlauf (letzte 20)"})}),0===P.length?(0,Te.jsx)("div",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.no_versions",as:"span",children:"Noch keine Versionen \u2013 wird beim ersten Speichern angelegt."})}):(0,Te.jsx)("ul",{className:"space-y-2",children:P.map(e=>{return(0,Te.jsxs)("li",{className:"flex items-start justify-between gap-3 text-sm","data-testid":"guide-version-".concat(e.id),children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("span",{className:"font-medium",children:(t=e.s
2aved_at,t?new Date(t).toLocaleString("de-DE",{dateStyle:"short",timeStyle:"short"}):"\u2014")})," ",(0,Te.jsxs)("span",{className:"text-muted-foreground",children:["\xb7 ",e.note," \xb7 ",e.saved_by]})]}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground truncate max-w-[340px]",children:e.title})]}),(0,Te.jsxs)("button",{onClick:()=>(async e=>{try{await Ps.post("/guide/admin/steps/".concat(v.key,"/restore"),{version_id:e}),Ia.success("Version wiederhergestellt"),i(),M()}catch(rse){Ia.error("Wiederherstellen fehlgeschlagen")}})(e.id),"data-testid":"guide-version-restore-".concat(e.id),className:"shrink-0 inline-flex items-center gap-1 text-xs font-semibold rounded-full border border-border px-2.5 py-1 hover:bg-muted transition-colors",children:[(0,Te.jsx)(Ff,{size:13})," Wiederherstellen"]})]},e.id);var t})})]})]}),N&&(0,Te.jsx)("div",{className:"fixed inset-0 z-[90] bg-slate-900/50 flex items-center justify-center p-4","data-testid":"guide-preview-".concat(v.key),onClick:()=>S(!1),children:(0,Te.jsx)("div",{className:"w-[380px] max-w-full bg-white rounded-2xl shadow-2xl overflow-hidden",onClick:e=>e.stopPropagation(),children:(0,Te.jsxs)("div",{className:"p-5",children:[(0,Te.jsx)("div",{className:"inline-flex items-center gap-1.5 text-[11px] font-semibold uppercase tracking-wide text-primary bg-primary/10 rounded-full px-2.5 py-1",children:v.area_label}),(0,Te.jsx)("h3",{className:"font-heading text-lg mt-3 text-primary",children:v.title}),(0,Te.jsx)("div",{className:"text-sm text-foreground/80 leading-relaxed mt-2 [&_a]:text-primary [&_a]:underline [&_ul]:list-disc [&_ul]:pl-5 [&_ol]:list-decimal [&_ol]:pl-5",dangerouslySetInnerHTML:{__html:v.body_html||""}}),(0,Te.jsxs)("div",{className:"mt-4 flex items-center justify-between",children:[(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.live_preview",as:"span",children:"Live-Vorschau (ungespeicherte \xc4nderungen)"})}),(0,Te.jsxs)("button",{onClick:()=>S(!1),className:"inline-flex items-center gap-1 text-sm font-semibold rounded-full bg-primary text-white px-4 py-1.5 hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Iv,{size:14})," Schlie\xdfen"]})]})]})})})]})}function rne(e){let t=e.segment,n=e.steps,a=e.open,r=e.onToggleOpen,i=e.expandedCards,s=e.onToggleCard,o=e.onReorder,l=e.onSaved,c=e.onDeleted,d=e.onAdd,u=e.sensors,m=e.uploadImage;const p=n.map(e=>e.key);return(0,Te.jsxs)("div",{className:"rounded-2xl border border-border bg-card overflow-hidden","data-testid":"guide-group-card-".concat(t),children:[(0,Te.jsxs)("button",{type:"button",onClick:r,"data-testid":"guide-group-".concat(t),className:"w-full flex items-center justify-between gap-3 px-5 py-4 hover:bg-muted/40 transition-colors",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform ".concat(a?"rotate-180":"")}),(0,Te.jsx)("span",{className:"text-sm font-semibold uppercase tracking-wide text-primary bg-primary/10 rounded-full px-3 py-1",children:ene[t]||t})]}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground",children:[n.length," ",1===n.length?"Schritt":"Schritte"]})]}),a&&(0,Te.jsxs)("div",{className:"px-4 pb-4 space-y-3",children:[n.length>0&&(0,Te.jsx)(zte,{sensors:u,collisionDetection:lee,onDragEnd:e=>{let n=e.active,a=e.over;if(!a||n.id===a.id)return;const r=p.indexOf(n.id),i=p.indexOf(a.id);r<0||i<0||o(t,Rte(p,r,i))},children:(0,Te.jsx)(qte,{items:p,strategy:Fte,children:(0,Te.jsx)("div",{className:"space-y-2.5",children:n.map(e=>(0,Te.jsx)(ane,{step:e,expanded:i.has(e.key),onToggleExpand:()=>s(e.key),onSaved:l,onDeleted:c,uploadImage:m},e.key))})})}),(0,Te.jsxs)("button",{type:"button",onClick:()=>d(t),"data-testid":"guide-add-".concat(t),className:"w-full inline-flex items-center justify-center gap-2 rounded-xl border border-dashed border-border text-sm font-semibold text-muted-foreground hover:text-primary hover:border-primary hover:bg-primary/5 py-3 transition-colors",children:[(0,Te.jsx)(Pf,{size:16})," Neuen Schritt hinzuf\xfcgen"]})]})]})}function ine(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(()=>new Set),2),l=o[0],c=o[1],u=Le((0,a.useState)(()=>new Set),2),m=u[0],p=u[1],h=eee(J9(Gee,{activationConstraint:{distance:5}}),J9(Uee,{coordinateGetter:$te})),f=async()=>{try{const e=(await Ps.get("/guide/admin/steps")).data;n(e.steps||[])}catch(rse){Ia.error("Laden fehlgeschlagen")}finally{s(!1)}};(0,a.useEffect)(()=>{f()},[]);const g=async e=>{const t=new FormData;t.append("file",e);return(await Ps.post("/manual/upload-image",t,{headers:{"Content-Type":"multipart/form-data"}})).data.url},x=(0,a.useMemo)(()=>{const e={};for(const t of Jte)e[t]=[];for(const n of t)(e[n.segment]||(e[n.segment]=[])).push(n);for(const t of Object.keys(e))e[t].sort((e,t)=>
2e.order-t.order);return e},[t]),v=e=>p(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}),b=async(e,t)=>{const a={};t.forEach((e,t)=>{a[e]=10*(t+1)}),n(e=>e.map(e=>e.key in a?e.order===a[e.key]?e:d(d({},e),{},{order:a[e.key]}):e));try{await Ps.post("/guide/admin/reorder",{order:t.map((e,t)=>({key:e,order:10*(t+1)}))})}catch(rse){Ia.error("Umsortieren fehlgeschlagen"),f()}},y=async e=>{try{var t;const n=(await Ps.post("/guide/admin/steps",{segment:e,title:"Neuer Schritt",area_label:tne[e]||"",body_html:"",active:!0})).data;Ia.success("Schritt angelegt"),await f();const a=null===(t=n.step)||void 0===t?void 0:t.key;c(t=>new Set(t).add(e)),a&&p(e=>new Set(e).add(a))}catch(rse){Ia.error("Anlegen fehlgeschlagen")}};return(0,Te.jsxs)("div",{className:"max-w-3xl","data-testid":"guide-editor-page",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(Dy,{className:"text-primary",size:22}),(0,Te.jsx)("h1",{className:"font-heading text-2xl text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guideeditor.title",as:"span",children:"CT-Texte \u2013 Guide-Editor"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"Texte, Bilder, Reihenfolge und Sichtbarkeit der gef\xfchrten Demo-Tour \u2013 nach Bereich gruppiert. Ziehen Sie Schritte innerhalb eines Bereichs zum Umsortieren. \xc4nderungen sind sofort f\xfcr neue Rundg\xe4nge wirksam."}),(0,Te.jsxs)("a",{href:"/guide",target:"_blank",rel:"noopener noreferrer","data-testid":"guide-editor-preview-link",className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline mt-2",children:[(0,Te.jsx)(x9,{size:14})," Tour in neuem Tab ansehen"]}),i?(0,Te.jsxs)("div",{className:"mt-8 flex items-center gap-2 text-muted-foreground",children:[(0,Te.jsx)(Of,{className:"animate-spin",size:18})," Laden \u2026"]}):(0,Te.jsx)("div",{className:"grid gap-4 mt-6",children:Jte.map(e=>(0,Te.jsx)(rne,{segment:e,steps:x[e]||[],open:l.has(e),onToggleOpen:()=>(e=>c(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))(e),expandedCards:m,onToggleCard:v,onReorder:b,onSaved:f,onDeleted:f,onAdd:y,sensors:h,uploadImage:g},e))})]})}const sne=kf("mouse-pointer-click",[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]]),one=e=>{if(!e)return"\u2014";try{return new Date(e).toLocaleString("de-DE",{dateStyle:"medium",timeStyle:"short"})}catch(t){return e}},lne=e=>{if(null==e)return"\u2014";if(e<60)return"".concat(e," Sek.");const t=Math.floor(e/60),n=e%60;return n?"".concat(t,":").concat(String(n).padStart(2,"0")," Min."):"".concat(t," Min.")},cne={completion_register:"Abschluss: Registrieren & Starten",completion_booking:"Abschluss: Termin buchen",questionnaire_register:"Fragebogen: Registrieren & Starten",questionnaire_booking:"Fragebogen: Termin buchen",register_sidebar:"Seitenleiste: Registrieren",free_register:"Freie Umgebung: Registrieren & Starten",free_booking:"Freie Umgebung: Termin buchen",free2_register:"Zweiter CTA: Registrieren & Starten",free2_booking:"Zweiter CTA: Termin buchen",topbar:"Guide-Leiste: Noch Fragen?",persistent:"Dauer-CTA: Termin buchen"},dne=e=>cne[e]||e||"\u2014 (unbenannt)";function une(e){let t=e.icon,n=e.label,a=e.value,r=e.testid;return(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5","data-testid":r,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground text-sm",children:[(0,Te.jsx)(t,{size:16})," ",n]}),(0,Te.jsx)("div",{className:"text-3xl font-heading text-foreground mt-2",children:a})]})}function mne(){var e;const t=(new Date).toISOString().slice(0,10),n=new Date(Date.now()-25056e5).toISOString().slice(0,10),r=Le((0,a.useState)(n),2),i=r[0],s=r[1],o=Le((0,a.useState)(t),2),l=o[0],c=o[1],d=Le((0,a.useState)(null),2),u=d[0],m=d[1],p=Le((0,a.useState)(!0),2),h=p[0],f=p[1],g=async()=>{f(!0);try{const e=(await Ps.get("/guide/admin/report?from=".concat(i,"&to=").concat(l))).data;m(e)}catch(rse){Ia.error("Bericht konnte nicht geladen werden")}finally{f(!1)}};return(0,a.useEffect)(()=>{g()},[]),(0,Te.jsxs)("div",{className:"max-w-4xl","data-testid":"guide-report-page",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(jw,{className:"text-primary",size:22}),(0,Te.jsx)("h1",{className:"font-heading text-2xl text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.title",as:"span",children:"ClickThrough \u2013 Performance-Bericht"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"admin.guidereport.subtitle",as:"span",children:"Sessions, Abschlussquote, Termin-Klicks und Absprungpunkte der gef\xfchrten Demo-Tour."})}),(0,Te.jsxs)("div",{className:"flex items-end gap-3 mt-5 flex-wrap",children:[(0,Te.jsxs)("label",{className:"text-xs font-semibold text-muted-foreground",children:["Von",(0,Te.jsx)("input",{type:"date",value:i,onChange:e=>s(e.target.value),"data-testid":"report-from",className:"mt-1 block rounded-lg border border-border px-3 py-2 text-sm font-normal"})]}),(0,Te.jsxs)("label",{className:"text-xs font-semibold text-muted-foreground",children:["Bis",(0,Te.jsx)("input",{type:"date",value:l,onCh
2ange:e=>c(e.target.value),"data-testid":"report-to",className:"mt-1 block rounded-lg border border-border px-3 py-2 text-sm font-normal"})]}),(0,Te.jsx)("button",{onClick:g,"data-testid":"report-apply",className:"rounded-full bg-primary text-white px-5 py-2 text-sm font-semibold hover:opacity-90 transition-opacity",children:(0,Te.jsx)(cy,{id:"common.apply",as:"span",children:"Anwenden"})})]}),h?(0,Te.jsxs)("div",{className:"mt-8 flex items-center gap-2 text-muted-foreground",children:[(0,Te.jsx)(Of,{className:"animate-spin",size:18})," Laden \u2026"]}):u?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 lg:grid-cols-5 gap-4 mt-6",children:[(0,Te.jsx)(une,{icon:_f,label:"Sessions",value:u.total,testid:"report-kpi-total"}),(0,Te.jsx)(une,{icon:Ef,label:"Abgeschlossen",value:u.completed,testid:"report-kpi-completed"}),(0,Te.jsx)(une,{icon:US,label:"Abschlussquote",value:"".concat(u.completion_rate,"%"),testid:"report-kpi-rate"}),(0,Te.jsx)(une,{icon:aE,label:"Registrierungsquote",value:"".concat(null!==(e=u.registration_rate)&&void 0!==e?e:0,"%"),testid:"report-kpi-registration-rate"}),(0,Te.jsx)(une,{icon:sne,label:"Termin-Klicks",value:u.cta_clicks,testid:"report-kpi-cta"})]}),(0,Te.jsxs)("div",{className:"grid md:grid-cols-2 gap-4 mt-4",children:[(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5","data-testid":"report-by-segment",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.by_module",as:"span",children:"Nach Modul"})}),(0,Te.jsxs)("table",{className:"w-full text-sm mt-3",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-muted-foreground text-left",children:[(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Modul",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-right",children:(0,Te.jsx)(jy,{text:"Sessions",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-right",children:(0,Te.jsx)(jy,{text:"Abschluss",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-right",children:(0,Te.jsx)(jy,{text:"Quote",prefix:"col"})})]})}),(0,Te.jsxs)("tbody",{children:[0===u.by_segment.length&&(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:4,className:"py-3 text-muted-foreground",children:"Keine Daten"})}),u.by_segment.map(e=>(0,Te.jsxs)("tr",{className:"border-t border-border",children:[(0,Te.jsx)("td",{className:"py-1.5",children:e.segment}),(0,Te.jsx)("td",{className:"py-1.5 text-right",children:e.sessions}),(0,Te.jsx)("td",{className:"py-1.5 text-right",children:e.completed}),(0,Te.jsxs)("td",{className:"py-1.5 text-right",children:[e.completion_rate,"%"]})]},e.segment))]})]})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5","data-testid":"report-dropoff",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.dropoff",as:"span",children:"Absprungpunkte"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.guidereport.dropoff_hint",as:"span",children:"Letzter Schritt vor Abbruch (nicht abgeschlossene Sessions)."})}),(0,Te.jsxs)("ul",{className:"mt-3 space-y-2",children:[0===u.dropoff.length&&(0,Te.jsx)("li",{className:"text-sm text-muted-foreground",children:"Keine Abbr\xfcche"}),u.dropoff.slice(0,10).map(e=>(0,Te.jsxs)("li",{className:"flex items-center justify-between gap-3 text-sm",children:[(0,Te.jsx)("span",{className:"truncate",children:e.label}),(0,Te.jsx)("span",{className:"font-semibold text-foreground shrink-0",children:e.count})]},e.step_id))]})]})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5 mt-4","data-testid":"report-herkunft",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.origin",as:"span",children:"Herkunft"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.guidereport.origin_hint",as:"span",children:"DSGVO-konform: keine IP-Speicherung \u2013 nur L\xe4nder-Code (aus CDN) und Quelle/Referrer."})}),(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-4 mt-3",children:[(0,Te.jsxs)("div",{"data-testid":"report-by-country",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.guidereport.by_country",as:"span",children:"Nach Land"})}),(0,Te.jsxs)("ul",{className:"space-y-1.5",children:[0===(u.by_country||[]).length&&(0,Te.jsx)("li",{className:"text-sm text-muted-foreground",children:"Keine Daten"}),(u.by_country||[]).slice(0,8).map(e=>(0,Te.jsxs)("li",{className:"flex items-center justify-between text-sm",children:[(0,Te.jsx)("span",{children:e.country}),(0,Te.jsx)("span",{className:"font-semibold",children:e.count})]},e.country))]})]}),(0,Te.jsxs)("div",{"data-testid":"report-by-source",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"admin.guidereport.by_source",as:"span",children:"Nach Quelle"})}),(0,Te.jsxs)("ul",{className:"space-y-1.5",children:[0===(u.by_source||[]).length&&(0,Te.jsx)("li",{className:"text-sm text-muted-foreground",children:"Keine Daten"}),(u.by_source||[]).slice(0,8).map(e=>(0,Te.jsxs)("li",{className:"flex items-center justify-between text-sm gap-3",children:[(0,Te.jsx)("span",{className:"truncate",children:e.source}),(0,Te.jsx)("span",{className:"font-semibold shrink-0",children:e.count})]},e.source))]})]})]})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5 mt-4","data-testid":"report-cta-breakdown",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.button_clicks",as:"span",children:"Button-Klicks"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:(0,Te.jsx)(cy,{id:"admin.guidereport.button_clicks_hint",as:"span",children:"Wie oft welcher CTA-Button im Guide geklickt wurde."})}),(0,Te.jsxs)("ul",{className:"space-y-1.5 mt-3",children:[0===(u.by_cta||[]).length&&(0,Te.jsx)("li",{className:"text-sm text-muted-foreground",children:"Noch keine Button-Klicks erfasst"}),(u.by_cta||[]).map(e=>(0,Te.jsxs)("li",{className:"flex items-center justify-between text-sm gap-3","data-testid":"report-cta-".concat(e.source),children:[(0,Te.jsx)("span",{className:"truncate",children:dne(e.source)}),(0,Te.jsx)("span",{className:"font-semibold shrink-0",children:e.count})]},e.source))]})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5 mt-4","data-testid":"report-sessions",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg text-foreground",children:(0,Te.jsx)(cy,{id:"admin.guidereport.recent_sessions",as:"span",children:"Letzte Sessions"})}),(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm mt-3",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-muted-foreground text-left",children:[(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Start",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Modul",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Land",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Quelle",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Letzter Schritt",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1",children:(0,Te.jsx)(jy,{text:"Dauer",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-center",children:(0,Te.jsx)(jy,{text:"Registriert",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-center",children:(0,Te.jsx)(jy,{text:"Abschluss",prefix:"col"})}),(0,Te.jsx)("th",{className:"py-1 text-right",children:(0,Te.jsx)(jy,{text:"Termin",prefix:"col"})})]})}),(0,Te.jsxs)("tbody",{children:[0===u.sessions.length&&(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:9,className:"py-3 text-muted-foreground",children:"Keine Sessions im Zeitraum"})}),u.sessions.map(e=>(0,Te.jsxs)("tr",{className:"border-t border-border",children:[(0,Te.jsx)("td",{className:"py-1.5 whitespace-nowrap",children:one(e.started_at)}),(0,Te.jsx)("td",{className:"py-1.5",children:e.segment||"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5",children:e.country||"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5 truncate max-w-[140px]",children:e.source||"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5 truncate max-w-[200px]",children:e.last_step_label||"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5 whitespace-nowrap","data-testid":"session-duration-".concat(e.session_id),children:lne(e.duration_sec)}),(0,Te.jsx)("td",{className:"py-1.5 text-center","data-testid":"session-registered-".concat(e.session_id),children:e.registered?(0,Te.jsx)("span",{className:"text-primary font-semibold",children:"\u2713"}):"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5 text-center",children:e.completed?"\u2713":"\u2014"}),(0,Te.jsx)("td",{className:"py-1.5 text-right",children:e.cta_clicks||0})]},e.session_id))]})]})})]})]}):null]})}
2const pne=[{key:"completion",label:"Abschlussfenster (nach Tour)",desc:"Erscheint automatisch, sobald der Nutzer die gef\xfchrte Tour vollst\xe4ndig abgeschlossen hat."},{key:"free",label:"Freie Umgebung (3-Min)",desc:"Erscheint einmalig nach 3 Minuten, wenn der Nutzer die Umgebung ohne aktive Tour frei erkundet."},{key:"free2",label:"Zweiter CTA (2 Min nach dem Pulse-CTA)",desc:"Erscheint einmalig 2 Minuten, nachdem der erste (Pulse-)CTA geschlossen wurde."},{key:"questionnaire",label:"Fragebogen-Abschluss",desc:"Erscheint am Ende des Fragebogens im ClickThrough, sobald das Fragenlimit erreicht ist."}],hne="w-full rounded-lg border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30";function fne(e){let t=e.sectionKey,n=e.label,r=e.desc,i=e.value,s=e.onChange;const o=i||{},l=Le((0,a.useState)(!1),2),c=l[0],u=l[1],m=Le((0,a.useState)([]),2),p=m[0],h=m[1],f=Le((0,a.useState)(!1),2),g=f[0],x=f[1],v=!1!==o.btn_register_enabled,b=!1!==o.btn_booking_enabled,y=e=>s(d(d({},o),e)),w=(e,t)=>{if(!t){if(!("btn_register_enabled"===e?b:v))return void Ia.error("Mindestens ein Button muss aktiv bleiben")}y({[e]:t})},j=()=>Ps.get("/guide/admin/cta/versions?key=".concat(t)).then(e=>{let t=e.data;return h(t)}).catch(()=>{});return(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5","data-testid":"cta-section-".concat(t),children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3 flex-nowrap",children:[(0,Te.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,Te.jsx)(cy,{id:"ctcta.section.".concat(t,".label"),as:"h2",className:"font-heading text-lg text-foreground",children:n}),r?(0,Te.jsx)(cy,{id:"ctcta.section.".concat(t,".desc"),as:"p",className:"text-sm text-muted-foreground mt-0.5",children:r}):null]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsxs)("button",{onClick:()=>{x(e=>!e),j()},"data-testid":"cta-versions-toggle-".concat(t),className:"inline-flex items-center gap-2 rounded-lg border border-border px-3 py-1.5 text-sm hover:bg-muted transition-colors",children:[(0,Te.jsx)(KE,{size:15})," Versionen"]}),(0,Te.jsxs)("button",{onClick:async()=>{u(!0);try{await Ps.put("/guide/admin/cta?key=".concat(t),{[t]:o}),Ia.success("\u201e".concat(n,'" gespeichert')),g&&j()}catch(e){Ia.error("Speichern fehlgeschlagen")}u(!1)},disabled:c,"data-testid":"cta-save-".concat(t),className:"inline-flex items-center gap-2 rounded-lg bg-primary text-white px-4 py-1.5 text-sm font-semibold hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed transition-opacity",children:[(0,Te.jsx)(wE,{size:15})," ",c?"Speichert \u2026":"Speichern"]})]})]}),g&&(0,Te.jsxs)("div",{className:"mt-3 rounded-lg border border-border bg-muted/30 p-3","data-testid":"cta-versions-".concat(t),children:[0===p.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.ctcta.no_versions",as:"span",children:"Noch keine Versionen"})}),(0,Te.jsx)("ul",{className:"space-y-1.5",children:p.map(e=>(0,Te.jsxs)("li",{className:"flex items-center justify-between text-sm gap-3",children:[(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[e.at?new Date(e.at).toLocaleString("de-DE"):"\u2014"," \xb7 ",e.by||"\u2014"]}),(0,Te.jsxs)("button",{onClick:()=>(async e=>{try{const n=(await Ps.post("/guide/admin/cta/restore/".concat(e))).data;s(n[t]),j(),Ia.success("Version wiederhergestellt")}catch(n){Ia.error("Wiederherstellen fehlgeschlagen")}})(e.id),"data-testid":"cta-restore-".concat(e.id),className:"inline-flex items-center gap-1.5 text-primary hover:underline",children:[(0,Te.jsx)(Ff,{size:14})," Wiederherstellen"]})]},e.id))})]}),(0,Te.jsxs)("div",{className:"grid lg:grid-cols-2 gap-6 mt-4",children:[(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)(cy,{id:"ctcta.field.heading",as:"label",className:"text-sm font-semibold",children:"\xdcberschrift"}),(0,Te.jsx)("input",{className:"".concat(hne," mt-1"),value:o.heading||"","data-testid":"cta-heading-".concat(t),onChange:e=>y({heading:e.target.value})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)(cy,{id:"ctcta.field.body",as:"label",className:"text-sm font-semibold",children:"Flie\xdftext"}),(0,Te.jsx)("textarea",{rows:4,className:"".concat(hne," mt-1"),value:o.body||"","data-testid":"cta-body-".concat(t),onChange:e=>y({body:e.target.value})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)(cy,{id:"ctcta.field.benefit_headline",as:"label",className:"text-sm font-semibold",children:"Benefit-\xdcberschrift (optional)"}),(0,Te.jsx)("input",{className:"".concat(hne," mt-1"),value:o.benefit_headline||"","data-testid":"cta-benefit-headline-".concat(t),onChange:e=>y({benefit_headline:e.target.value})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(cy,{id:"ctcta.field.benefits",as:"label",className:"text-sm font-semibold",children:"Benefit-Boxen"}),(0,Te.jsxs)("button",{onClick:()=>
2y({benefits:[...o.benefits||[],"Neuer Vorteil"]}),"data-testid":"cta-add-benefit-".concat(t),className:"inline-flex items-center gap-1.5 text-sm text-primary hover:underline",children:[(0,Te.jsx)(Pf,{size:14})," ",(0,Te.jsx)(cy,{id:"common.add",as:"span",children:"Hinzuf\xfcgen"})]})]}),(0,Te.jsx)("div",{className:"space-y-2 mt-2",children:(o.benefits||[]).map((e,n)=>(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)("input",{className:hne,value:e,"data-testid":"cta-benefit-".concat(t,"-").concat(n),onChange:e=>((e,t)=>y({benefits:(o.benefits||[]).map((n,a)=>a===e?t:n)}))(n,e.target.value)}),(0,Te.jsx)("button",{onClick:()=>(e=>y({benefits:(o.benefits||[]).filter((t,n)=>n!==e)}))(n),"data-testid":"cta-del-benefit-".concat(t,"-").concat(n),className:"shrink-0 text-muted-foreground hover:text-red-600 transition-colors",children:(0,Te.jsx)(y_,{size:16})})]},n))})]}),(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-sm font-semibold cursor-pointer",children:[(0,Te.jsx)("input",{type:"checkbox",checked:!!o.show_pricing,"data-testid":"cta-show-pricing-".concat(t),onChange:e=>y({show_pricing:e.target.checked})}),(0,Te.jsx)(cy,{id:"ctcta.field.show_pricing",as:"span",children:"Preisrechner zwischen Boxen und Buttons anzeigen"})]}),(0,Te.jsxs)("div",{className:"rounded-lg border border-border bg-muted/20 p-3 space-y-3",children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide",children:(0,Te.jsx)(cy,{id:"admin.ctcta.buttons",as:"span",children:"Buttons"})}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)(cy,{id:"ctcta.field.btn_register",as:"label",className:"text-sm font-semibold",children:'Button \u201eRegistrieren"'}),(0,Te.jsxs)("label",{className:"inline-flex items-center gap-2 text-sm cursor-pointer shrink-0",children:[(0,Te.jsx)("input",{type:"checkbox",checked:v,"data-testid":"cta-btn-register-enabled-".concat(t),onChange:e=>w("btn_register_enabled",e.target.checked)}),"anzeigen"]})]}),(0,Te.jsx)("input",{className:"".concat(hne," mt-1"),disabled:!v,value:o.btn_register||"","data-testid":"cta-btn-register-".concat(t),onChange:e=>y({btn_register:e.target.value})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)(cy,{id:"ctcta.field.btn_booking",as:"label",className:"text-sm font-semibold",children:'Button \u201eTermin buchen"'}),(0,Te.jsxs)("label",{className:"inline-flex items-center gap-2 text-sm cursor-pointer shrink-0",children:[(0,Te.jsx)("input",{type:"checkbox",checked:b,"data-testid":"cta-btn-booking-enabled-".concat(t),onChange:e=>w("btn_booking_enabled",e.target.checked)}),"anzeigen"]})]}),(0,Te.jsx)("input",{className:"".concat(hne," mt-1"),disabled:!b,value:o.btn_booking||"","data-testid":"cta-btn-booking-".concat(t),onChange:e=>y({btn_booking:e.target.value})})]})]})]})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-muted/30 p-4","data-testid":"cta-preview-".concat(t),children:[(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground uppercase tracking-wide mb-3",children:(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})}),(0,Te.jsxs)("div",{className:"bg-white rounded-2xl shadow p-6",children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl text-primary",children:o.heading}),(0,Te.jsx)("p",{className:"text-sm font-bold text-black mt-3 whitespace-pre-line",children:o.body}),o.benefit_headline?(0,Te.jsx)("h3",{className:"font-bold text-black mt-5",style:{fontSize:"19px"},children:o.benefit_headline}):null,(0,Te.jsx)("div",{className:"space-y-2 mt-3",children:(o.benefits||[]).map((e,t)=>(0,Te.jsxs)("div",{className:"flex items-center gap-2 rounded-lg text-white font-bold px-4 py-3 text-sm",style:{backgroundColor:"var(--gray-03)"},children:[(0,Te.jsx)(Cf,{size:16,className:"shrink-0"}),e]},t))}),o.show_pricing&&(0,Te.jsx)("div",{className:"mt-4 rounded-xl border border-dashed border-primary/40 bg-primary/5 p-4 text-center text-sm text-primary font-semibold",children:(0,Te.jsx)(cy,{id:"admin.ctcta.pricing_placeholder",as:"span",children:"Preisrechner wird hier angezeigt"})}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[v&&(0,Te.jsxs)("span",{className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full bg-primary text-white px-5 py-3 text-sm font-semibold",children:[(0,Te.jsx)(Iy,{size:16})," ",o.btn_register]}),b&&(0,Te.jsxs)("span",{className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full border-2 border-primary text-primary px-5 py-3 text-sm font-semibold",children:[(0,Te.jsx)(Fy,{size:16})," ",o.btn_booking]})]})]})]})]})]})}function gne(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];if((0,a.useEffect)(()=>{Ps.get("/guide/admin/cta").then(e=>{let t=e.data;return n(t)}
2).catch(()=>Ia.error("Laden fehlgeschlagen"))},[]),!t)return(0,Te.jsx)(FS,{});return(0,Te.jsxs)("div",{className:"max-w-[1500px] space-y-6","data-testid":"ct-cta-editor",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)(cy,{id:"ctcta.title",as:"h1",className:"font-heading text-2xl text-foreground",children:"CT-CTA"}),(0,Te.jsx)(cy,{id:"ctcta.subtitle",as:"p",className:"text-sm text-muted-foreground mt-1",children:"Inhalte der Guide-CTAs bearbeiten \u2013 jede CTA wird einzeln gespeichert und versioniert."})]}),(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-5",children:[(0,Te.jsx)(cy,{id:"ctcta.field.scheduler",as:"label",className:"text-sm font-semibold text-foreground",children:"Termin-buchen-Link (Pipedrive-Scheduler)"}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,Te.jsx)("input",{className:hne,value:t.scheduler_url||"","data-testid":"cta-scheduler-url",onChange:e=>n(t=>d(d({},t),{},{scheduler_url:e.target.value}))}),(0,Te.jsxs)("button",{onClick:async()=>{s(!0);try{await Ps.put("/guide/admin/cta?key=scheduler_url",{scheduler_url:t.scheduler_url}),Ia.success("Termin-Link gespeichert")}catch(e){Ia.error("Speichern fehlgeschlagen")}s(!1)},disabled:i,"data-testid":"cta-save-scheduler",className:"inline-flex items-center gap-2 rounded-lg bg-primary text-white px-4 py-2 text-sm font-semibold hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed transition-opacity shrink-0",children:[(0,Te.jsx)(wE,{size:15})," Speichern"]})]})]}),pne.map(e=>(0,Te.jsx)(fne,{sectionKey:e.key,label:e.label,desc:e.desc,value:t[e.key],onChange:t=>n(n=>d(d({},n),{},{[e.key]:t}))},e.key))]})}const xne=kf("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);function vne(e){let t=e.onBack,n=e.lang,a=void 0===n?"de":n,r=e.backLabel,i=e.languages,s=void 0===i?[]:i,o=e.onLangChange;const l=Ws(),c=l.exitCt,d=l.track,u=qy(a),m=u.questionnaire||{},p=!1!==m.btn_register_enabled,h=!1!==m.btn_booking_enabled,f=Array.isArray(s)&&s.length>1&&"function"===typeof o;return(0,Te.jsxs)("div",{className:"min-h-screen flex items-center justify-center bg-white px-6 py-10","data-testid":"ct-questionnaire-limit",children:[f&&(0,Te.jsxs)("div",{className:"absolute top-4 right-5 flex items-center gap-2","data-testid":"ct-limit-lang",children:[(0,Te.jsx)(xne,{size:16,className:"text-muted-foreground"}),(0,Te.jsx)("select",{value:a,onChange:e=>o(e.target.value),"data-testid":"ct-limit-lang-select",className:"text-sm border border-border rounded-md px-2 py-1 bg-white outline-none",children:s.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))})]}),(0,Te.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,Te.jsx)("div",{className:"flex justify-center",children:(0,Te.jsx)(lw,{width:200})}),(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl mt-8 text-primary","data-testid":"ct-limit-title",children:m.heading}),(0,Te.jsx)("p",{className:"text-muted-foreground mt-3 leading-relaxed whitespace-pre-line",children:m.body}),m.benefit_headline?(0,Te.jsx)("h3",{className:"font-bold text-black mt-6",style:{fontSize:"19px"},children:m.benefit_headline}):null,(m.benefits||[]).length>0&&(0,Te.jsx)("div",{className:"space-y-2 mt-4 text-left",children:m.benefits.map((e,t)=>(0,Te.jsxs)("div",{className:"flex items-center gap-2.5 rounded-lg text-white font-bold px-4 py-3 text-sm",style:{backgroundColor:"var(--gray-03)"},"data-testid":"ct-limit-benefit-".concat(t),children:[(0,Te.jsx)(Cf,{size:16,className:"shrink-0"}),(0,Te.jsx)("span",{children:e})]},t))}),m.show_pricing&&(0,Te.jsx)(Ky,{segment:"pulse"}),(0,Te.jsxs)("div",{className:"flex flex-col sm:flex-row gap-3 mt-6",children:[p&&(0,Te.jsxs)("button",{onClick:()=>{try{d&&d("cta_clicked",{meta:{source:"questionnaire_register"}})}catch(e){}try{c&&c()}catch(t){}try{window.localStorage.removeItem("persentis_token"),window.localStorage.removeItem("persentis_public_demo")}catch(n){}window.location.href="https://login.persentis.com/register"},"data-testid":"ct-limit-register",className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full bg-primary text-white px-5 py-3 text-sm font-semibold hover:opacity-90 transition-opacity",children:[(0,Te.jsx)(Iy,{size:16})," ",m.btn_register]}),h&&(0,Te.jsxs)("a",{href:u.scheduler_url,target:"_blank",rel:"noopener noreferrer",onClick:()=>{try{d&&d("cta_clicked",{meta:{source:"questionnaire_booking"}})}catch(e){}},"data-testid":"ct-limit-cta",className:"flex-1 inline-flex items-center justify-center gap-2 rounded-full border-2 border-primary text-primary px-5 py-3 text-sm font-semibold hover:bg-primary/5 transition-colors",children:[(0,Te.jsx)(Fy,{size:16})," ",m.btn_booking]})]}),t&&(0,Te.jsx)("button",{onClick:t,"data-testid":"ct-limit-back",className:"mt-4 text-sm text-muted-foreground hover:text-foreground transition-colors",children:r||"Zur\xfcck zur Vorschau"})]})]})}const bne=["#2A2A2A","#75A33D","#C0392B","#E0A800","#2563EB","#757575"],yne=[{label:"Klein",value:"2"},{label:"Normal",value:"3"},{label:"Gro\xdf",value:"5"},{label:"Sehr gro\xdf",value:"6"}];const wne=function(e){let t=e.id,n=e.children,r=e.as,i=void 0===r?"span":r,s=e.className,o=void 0===s?"":s,l=e.seed,c=void 0===l?"":l,u=e.style,m=void 0===u?void 0:u;const p=Is(),h=p.showPencils,f=p.getText,g=p.saveText,x=p.resetText,v=f(t,""),b=Le((0,a.useState)(!1),2),y=b[0],w=b[1],j=Le((0,a.useState)(!1),2),k=j[0],N=j[1],S=(0,a.useRef)(null),_=v||(c||("string"===typeof n?n:""))||"",z=(0,a.useCallback)(e=>{S.current=e,e&&(e.innerHTML=_,e.focus())},[_]);if(!h)return v?(0,Te.jsx)(i,{className:o,style:m,dangerouslySetInnerHTML:{__html:v}}):(0,Te.jsx)(i,{className:o,style:m,children:n});const E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;S.current&&S.current.focus(),document.execCommand(e,!1,t)};return(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)(i,{className:"".concat(o," relative"),style:d(d({},m||{}),{},{outline:"1px dashed rgba(117,163,61,.5)",outlineOffset:2}),children:[v?(0,Te.jsx)("span",{dangerouslySetInnerHTML:{__html:v}}):n,(0,Te.jsx)("span",{role:"button",tabIndex:0,onClick:e=>{e.stopPropagation(),e.preventDefault(),w(!0)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),w(!0))},"data-testid":"edit-rich-".concat(t),"aria-label":"Text bearbeiten",title:"Text bearbeiten & formatieren (nur Super-Admin)",className:"ml-1.5 inline-flex items-center justify-center align-middle w-5 h-5 rounded text-primary/70 hover:text-primary hover:bg-[#
2E5E7EB] transition-colors cursor-pointer print:hidden",children:(0,Te.jsx)(Mf,{size:13})})]}),(0,Te.jsx)(ey,{open:y,onOpenChange:e=>!e&&w(!1),children:(0,Te.jsxs)(ay,{"data-testid":"edit-rich-dialog",className:"max-w-2xl",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2",children:[(0,Te.jsx)(Mf,{size:16})," Text bearbeiten & formatieren"]}),(0,Te.jsxs)(oy,{children:["Diese \xc4nderung ist f\xfcr alle Teilnehmer sichtbar. Schl\xfcssel: ",(0,Te.jsx)("code",{className:"text-xs",children:t})]})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-1 border border-border rounded-md p-1.5 bg-[#FAFAFA]",children:[(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),E("bold")},title:"Fett","data-testid":"rich-bold",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(OE,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),E("italic")},title:"Kursiv","data-testid":"rich-italic",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(DE,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),E("underline")},title:"Unterstrichen","data-testid":"rich-underline",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(oC,{size:15})}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),E("insertUnorderedList")},title:"Aufz\xe4hlung","data-testid":"rich-list",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(LE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-1"}),bne.map(e=>(0,Te.jsx)("button",{type:"button",onMouseDown:t=>{t.preventDefault(),E("foreColor",e)},title:"Farbe ".concat(e),"data-testid":"rich-color-".concat(e),className:"w-6 h-6 rounded-full border border-border",style:{backgroundColor:e}},e)),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-1"}),(0,Te.jsxs)("select",{onChange:e=>{E("fontSize",e.target.value),e.target.selectedIndex=0},"data-testid":"rich-size",className:"h-8 rounded border border-border text-sm px-1 bg-white",children:[(0,Te.jsx)("option",{children:"Gr\xf6\xdfe"}),yne.map(e=>(0,Te.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,Te.jsx)("button",{type:"button",onMouseDown:e=>{e.preventDefault(),E("removeFormat")},title:"Formatierung entfernen","data-testid":"rich-clear",className:"w-8 h-8 rounded hover:bg-[#E5E7EB] inline-flex items-center justify-center",children:(0,Te.jsx)(lC,{size:15})})]}),(0,Te.jsx)("div",{ref:z,contentEditable:!0,suppressContentEditableWarning:!0,"data-testid":"rich-editor",className:"min-h-[140px] max-h-[340px] overflow-auto w-full px-3 py-2 rounded-md border border-border text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40 bg-white"}),(0,Te.jsxs)(iy,{className:"gap-2 sm:justify-between",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{N(!0);try{await x(t),Ia.success("Auf Standardtext zur\xfcckgesetzt."),w(!1)}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}finally{N(!1)}},disabled:k,"data-testid":"edit-rich-reset",className:"!text-muted-foreground",children:[(0,Te.jsx)(Ff,{size:15})," Auf Standard zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>w(!1),disabled:k,"data-testid":"edit-rich-cancel",children:"Abbrechen"}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{N(!0);try{var e;const n=((null===(e=S.current)||void 0===e?void 0:e.innerHTML)||"").trim();await g(t,n),Ia.success("Text gespeichert."),w(!1)}catch(rse){Ia.error("Speichern fehlgeschlagen.")}finally{N(!1)}},disabled:k,"data-testid":"edit-rich-save",children:"Speichern"})]})]})]})})]})};function jne(e){return(e||"").split(/\n\s*\n/).map(e=>"<p>".concat(e.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>"),"</p>")).join("")}function kne(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const Nne=new Set(["ar","he"]);function Sne(e,t){return e.split(/(\*\*[^*]+\*\*)/g).map((e,n)=>e.startsWith("**")&&e.endsWith("**")?(0,Te.jsx)("strong",{className:"font-semibold text-foreground",children:e.slice(2,-2)},"".concat(t,"-").concat(n)):(0,Te.jsx)(a.Fragment,{children:e},"".concat(t,"-").concat(n)))}function _ne(e){const t=(e.text||"").split(/\n\s*\n/);return(0,Te.jsx)("div",{className:"space-y-4",children:t.map((e,t)=>(0,Te.jsx)("p",{className:"text-sm leading-relaxed text-foreground
2/90",children:Sne(e,"p".concat(t))},t))})}function zne(){var e,t;const n=Is().editMode,r=ln().token,i=Le((0,a.useState)("de"),2),s=i[0],o=i[1],l=Le((0,a.useState)([]),2),c=l[0],u=l[1],m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)({}),2),g=f[0],x=f[1],v=Le((0,a.useState)("welcome"),2),b=v[0],y=v[1],w=Le((0,a.useState)(0),2),j=w[0],k=w[1],N=Le((0,a.useState)(""),2),S=N[0],_=N[1],z=Le((0,a.useState)(!1),2),E=z[0],C=z[1],P=Le((0,a.useState)({}),2),A=P[0],T=P[1],R=Le((0,a.useState)(""),2),O=R[0],D=R[1],M=Le((0,a.useState)(!1),2),I=M[0],F=M[1],L=Le(ya(),1)[0],B="1"===L.get("preview"),q="1"===L.get("ct")||"undefined"!==typeof window&&"1"===window.sessionStorage.getItem("ct_mode"),U=Le((0,a.useState)(null),2),V=U[0],H=U[1],W=(0,a.useRef)(null),K=(0,a.useRef)(null),G=er(s),Z=Nne.has(s)?"rtl":"ltr",Y=e=>"survey.care.".concat(s,".").concat(e),Q=()=>(0,Te.jsx)(wne,{as:"span",id:Y("next"),seed:G.next,children:G.next}),$=()=>(0,Te.jsx)(wne,{as:"span",id:Y("back"),seed:G.back,children:G.back}),X=()=>(0,Te.jsx)(wne,{as:"span",id:Y("submit"),seed:G.submit,children:G.submit}),J=()=>(0,Te.jsx)(wne,{as:"span",id:Y("start"),seed:G.start,children:G.start});(0,a.useEffect)(()=>{Ps.get("/survey/languages".concat(q?"?ct=1":"")).then(e=>u(e.data))},[q]),(0,a.useEffect)(()=>(document.title=p?"Umfrage PERSENTIS ".concat(p.product||"Care"):"PERSENTIS",()=>{document.title="PERSENTIS"}),[p]);const ee=(e,t)=>{const n=q?"&ct=1":"";return Ps.get("/survey/".concat(r,"?lang=").concat(e).concat(n)).then(e=>{h(n=>{let a=e.data.items;if(t&&n){const e=n.items.map(e=>e.id);a=[...a].sort((t,n)=>e.indexOf(t.id)-e.indexOf(n.id))}return d(d({},e.data),{},{items:a})})}).catch(e=>D(Cs(e,"Umfrage nicht gefunden")))};(0,a.useEffect)(()=>{ee(s,!1)},[]),(0,a.useEffect)(()=>{const e=e=>{K.current&&K.current(e)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),(0,a.useEffect)(()=>{if("survey"===b&&!B&&V&&p)return W.current&&clearTimeout(W.current),W.current=setTimeout(()=>{Ps.put("/survey/".concat(r,"/session/").concat(V),d({lang:s},oe())).catch(()=>{})},700),()=>{W.current&&clearTimeout(W.current)}},[g,b,V]);const te=e=>{o(e),ee(e,!0)};if(O&&!p)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6 text-center text-muted-foreground","data-testid":"survey-error",children:O});if(!p)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"\u2026"});const ne=p.items.length,ae=p.items[j],re=g[null===ae||void 0===ae?void 0:ae.id]||{likert:null,positive:[],negative:[],other_positive:"",other_negative:"",feedback:"",text:""},ie=e=>x(d(d({},g),{},{[ae.id]:d(d({},re),e)})),se=(e,t)=>{const n=re[e].includes(t)?re[e].filter(e=>e!==t):[...re[e],t];ie({[e]:n})};function oe(){const e=p.items.filter(e=>"standard"===(e.kind||"standard")),t=p.items.filter(e=>"rating"===e.kind||"open"===e.kind);return{answers:e.map(e=>{const t=g[e.id]||{};return{item_id:e.id,likert:t.likert||null,positive:t.positive||[],negative:t.negative||[],other_positive:t.other_positive||"",other_negative:t.other_negative||"",feedback:t.feedback||""}}),custom_answers:t.map(e=>{const t=g[e.id]||{};return{question_id:e.id,type:e.kind,likert:"rating"===e.kind&&t.likert||null,text:t.text||""}})}}const le=async()=>{if(F(!0),B)return y("done"),void F(!1);try{await Ps.post("/survey/".concat(r,"/submit"),d(d({lang:s,session_id:V,preview:!1},oe()),{},{demographics:A})),y("done")}catch(rse){D(Cs(rse))}finally{F(!1)}},ce=()=>{const e=(null===ae||void 0===ae?void 0:ae.kind)||"standard";"standard"!==e&&"rating"!==e||re.likert?(D(""),j<ne-1?k(j+1):y("fastdone")):D(G.selectRating)},de=()=>{D(""),j>0?k(j-1):y("assign")};K.current=e=>{if(!n)if("survey"===b){var t;const n=null===p||void 0===p||null===(t=p.items)||void 0===t?void 0:t[j];if(!n)return;const r=n.kind||"standard";if("standard"!==r&&"rating"!==r||"ArrowRight"!==e.key&&"ArrowLeft"!==e.key){if("Enter"===e.key){var a;if("textarea"===((null===(a=e.target)||void 0===a?void 0:a.tagName)||"").toLowerCase())return;e.preventDefault(),ce()}}else e.preventDefault(),x(t=>{const a=t[n.id]||{likert:null,positive:[],negative:[],other_positive:"",other_negative:"",feedback:"",text:""},r=a.likert,i="ArrowRight"===e.key?null==r?1:Math.min(5,r+1):null==r?5:Math.max(1,r-1);return d(d({},t),{},{[n.id]:d(d({},a),{},{likert:i})})})}else if("fastdone"===b&&"Enter"===e.key)e.preventDefault(),y("sozio");else if("sozio"===b&&"Enter"===e.key){var r;if("select"===((null===(r=e.target)||void 0===r?void 0:r.tagName)||"").toLowerCase())return;e.preventDefault(),le()}};const ue=()=>c.length<=1?null:(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(xne,{size:16,className:"text-muted-foreground"}),(0,Te.jsx)("select",{value:s,onChange:e=>te(e.target.value),"data-testid":"survey-lang-select",className:"text-sm border border-border rounded-md px-2 py-1 bg-white outline-none",children:c.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))})]}),me="min-h-screen bg-white w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 flex flex-col",pe="inline-flex items-center justify-center gap-2 bg-primary text-white rounded-md px-6 py-3 text-sm sm:text-base font-semibold hover:bg-[var(--brand-primary-dark)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed",he="inline-flex items-center justify-center gap-2 border border-border rounded-md px-5 py-3 text-sm sm:text-base hover:bg-zinc-50 transition-colors disabled:opacity-40",fe="".concat(p.company_name).concat(p.filiale_name?" | "+p.filiale_name:""),ge=(null===(e=p.result_colors)||void 0===e?void 0:e.exzellent)||"#00B050",xe=(null===(t=p.result_colors)||void 0===t?void 0:t.kritisch)||"#FF0000",ve=B?(0,Te.jsx)("div",{"data-testid":"preview-banner",className:"fixed top-0 left-0 right-0 z-50 bg-red-600 text-white text-xs sm:text-sm font-semibold text-center px-4 py-2 shadow-md",children:"VORSCHAU Ihres Fragebogens"}):null;if("done"===b)return(0,Te.jsxs)("div",{dir:Z,className:"".concat(me," items-center justify-center text-center ").concat(B?"pt-16":""),"data-testid":"survey-done",children:[ve,(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary flex items-center justify-center",children:(0,Te.jsx)(Cf,{size:32,className:"text-white"})}),(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-2xl sm:text-3xl mt-6",id:Y("done"),seed:G.done,children:G.done}),(0,Te.jsx)(wne,{as:"p",className:"text-muted-foreground mt-2",id:Y("doneText"),seed:G.doneText,children:G.doneText}),(0,Te.jsx)("a",{href:"https://www.persentis.com/care",target:"_blank",rel:"noopener noreferrer",className:"mt-5 font-bold text-primary hover:underline","data-testid":"survey-more-link",children:(0,Te.jsx)(wne,{as:"span",id:Y("moreLink"),seed:G.moreLink,children:G.moreLink})}),(0,Te.jsx)("div",{className:"mt-8",children:(0,Te.jsx)(lw,{size:"sm"})})]});if("fastdone"===b)return(0,Te.jsxs)("div",{dir:Z,className:"".concat(me," ").concat(B?"pt-16":"pt-6"," pb-10"),"data-testid":"survey-fastdone",children:[ve,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ue,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col justify-start py-8",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-primary",children:[(0,Te.jsx)(If,{size:22}),(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("fastdoneTitle"),seed:G.fastdoneTitle,children:G.fastdoneTitle})]}),(0,Te.jsx)(wne,{as:"div",className:"text-sm leading-relaxed text-foreground
2/90 mt-4",id:Y("fastdoneText"),seed:jne(p.fastdone_text),children:(0,Te.jsx)("p",{"data-testid":"fastdone-text",children:p.fastdone_text})}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>{y("survey"),k(ne-1)},className:he,"data-testid":"fastdone-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>y("sozio"),className:pe,"data-testid":"fastdone-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})]});if("sozio"===b){var be;const e=(null===(be=p.sozio)||void 0===be?void 0:be.fields)||[];return(0,Te.jsxs)("div",{dir:Z,className:"".concat(me," ").concat(B?"pt-16":"pt-6"," pb-10"),"data-testid":"survey-sozio",children:[ve,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ue,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col justify-start py-8",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("sozioTitle"),seed:G.sozioTitle,children:G.sozioTitle}),(0,Te.jsx)(wne,{as:"p",className:"text-sm text-muted-foreground mt-1",id:Y("sozioNote"),seed:G.sozioNote,children:G.sozioNote}),(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 gap-4","data-testid":"sozio-fields",children:e.map(e=>(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:e.label}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("select",{value:A[e.key]||"",onChange:t=>T(n=>d(d({},n),{},{[e.key]:t.target.value})),"data-testid":"sozio-".concat(e.key),className:"w-full appearance-none border border-border rounded-md pl-3 pr-9 py-2.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:G.selectPlaceholder}),e.options.map(e=>{const t="string"===typeof e?e:e.value,n="string"===typeof e?e:e.label;return(0,Te.jsx)("option",{value:t,children:n},t)})]}),(0,Te.jsx)(xw,{size:16,className:"pointer-events-none absolute right-[10px] top-1/2 -translate-y-1/2 text-muted-foreground"})]})]},e.key))}),O&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"sozio-error",children:O}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between",children:[(0,Te.jsxs)("button",{onClick:()=>y("fastdone"),className:he,"data-testid":"sozio-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:le,disabled:I,className:pe,"data-testid":"sozio-submit",children:[(0,Te.jsx)(Cf,{size:16})," ",(0,Te.jsx)(X,{})]})]})]})]})}if("survey"===b){if(q&&j>=3)return(0,Te.jsx)(vne,{count:3,lang:s,backLabel:G.back,languages:c,onLangChange:te,onBack:()=>k(2)});const e=p.items.filter(e=>"standard"===(e.kind||"standard")||"rating"===e.kind),t=e.length||1,n=e.filter(e=>g[e.id]&&null!=g[e.id].likert).length,a=Math.round(n/t*100),r=Math.round((j+1)/ne*100),i=null!=p.validity_quota?p.validity_quota:25,o=a>=i,l=(null===ae||void 0===ae?void 0:ae.kind)||"standard",d=e=>{let t=e.active,n=e.onClick,a=e.children,r=e.testid;return(0,Te.jsx)("button",{type:"button",onClick:n,"data-testid":r,className:"px-3.5 py-2 rounded-full text-sm border transition-colors ".concat(t?"bg-primary text-white border-primary":"bg-white border-border text-foreground hover:bg-zinc-50"),children:a})};return(0,Te.jsxs)("div",{dir:Z,className:"".concat(me," ").concat(B?"pt-16":"pt-5"," pb-40"),children:[ve,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ue,{})]}),(0,Te.jsxs)("div",{className:"mt-8 lg:mt-12 flex-1",children:["standard"===l?(0,Te.jsx)(wne,{as:"span",className:"text-sm text-muted-foreground",id:Y("questionIntro"),seed:G.questionIntro,children:G.questionIntro}):(0,Te.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground",children:ae.dimension_label}),(0,Te.jsx)("h2",{className:"font-heading text-xl sm:text-2xl lg:text-3xl mt-2 leading-snug","data-testid":"survey-question",children:ae.question}),"open"===l?(0,Te.jsx)("div",{className:"mt-6","data-testid":"open-block",children:(0,Te.jsx)("textarea",{value:re.text,onChange:e=>ie({text:e.target.value}),placeholder:G.answerHere,rows:5,className:"w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"open-answer-input"})}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-5 ga
2p-2 sm:gap-3","data-testid":"likert-group",children:G.likert.map((e,t)=>{const n=t+1,a=re.likert===n;return(0,Te.jsx)("button",{type:"button",onClick:()=>ie({likert:n}),"data-testid":"likert-".concat(n),className:"min-h-[72px] sm:min-h-[92px] flex items-center justify-center text-center px-2 py-3 rounded-md border text-xs sm:text-sm font-bold leading-snug transition-colors ".concat(a?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:(0,Te.jsx)(wne,{as:"span",id:Y("likert.".concat(t)),seed:kne(e),children:kne(e)})},n)})}),O&&(0,Te.jsx)("p",{className:"text-2xl font-bold text-destructive",style:{marginTop:"30px",marginBottom:"30px"},"data-testid":"survey-step-error",children:O}),"standard"===l&&!ae.rating_only&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("hr",{className:"border-t border-border",style:{marginTop:"30px",marginBottom:"30px"},"data-testid":"divider-question-positive"}),(0,Te.jsxs)("div",{"data-testid":"positive-block",children:[(0,Te.jsx)("p",{className:"text-sm font-semibold mb-2",children:(0,Te.jsx)(wne,{as:"span",style:{color:ge},id:Y("positive"),seed:G.positive,children:G.positive})}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:ae.positive_aspects.map((e,t)=>(0,Te.jsx)(d,{active:re.positive.includes(t),onClick:()=>se("positive",t),testid:"pos-aspect-".concat(t),children:e},t))}),(0,Te.jsx)("input",{value:re.other_positive,onChange:e=>ie({other_positive:e.target.value}),placeholder:G.other,className:"mt-2 w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"pos-other"})]}),!1!==ae.has_negative&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("hr",{className:"border-t border-border",style:{marginTop:"30px",marginBottom:"30px"},"data-testid":"divider-positive-negative"}),(0,Te.jsxs)("div",{"data-testid":"negative-block",children:[(0,Te.jsx)("p",{className:"text-sm font-semibold mb-2",children:(0,Te.jsx)(wne,{as:"span",style:{color:xe},id:Y("negative"),seed:G.negative,children:G.negative})}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:ae.negative_aspects.map((e,t)=>(0,Te.jsx)(d,{active:re.negative.includes(t),onClick:()=>se("negative",t),testid:"neg-aspect-".concat(t),children:e},t))}),(0,Te.jsx)("input",{value:re.other_negative,onChange:e=>ie({other_negative:e.target.value}),placeholder:G.other,className:"mt-2 w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"neg-other"})]})]}),(0,Te.jsx)("hr",{className:"border-t border-border",style:{marginTop:"30px",marginBottom:"30px"},"data-testid":"divider-negative-feedback"}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("p",{className:"text-sm font-semibold mb-2","data-testid":"feedback-title",children:(0,Te.jsx)(wne,{as:"span",id:Y("feedbackTitle"),seed:G.feedbackTitle,children:G.feedbackTitle})}),(0,Te.jsx)("textarea",{value:re.feedback,onChange:e=>ie({feedback:e.target.value}),placeholder:G.feedback,rows:2,className:"w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"feedback-input"})]})]})]})]}),(0,Te.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border",children:(0,Te.jsxs)("div",{className:"w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 pb-3 pt-[30px]",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between text-xs mb-1.5",children:[(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[(0,Te.jsx)(wne,{as:"span",id:Y("progress"),seed:G.progress,children:G.progress})," ",j+1," / ",ne]}),(0,Te.jsxs)("span",{className:"font-bold ".concat(o?"text-primary":"text-red-600"),"data-testid":"answered-pct",children:[a," % ",G.answered]})]}),(0,Te.jsx)("div",{className:"h-1.5 bg-zinc-100 rounded-full overflow-hidden mb-[30px]",children:(0,Te.jsx)("div",{className:"h-full bg-primary transition-all duration-300",style:{width:"".concat(r,"%")},"data-testid":"progress-bar"})}),(0,Te.jsx)("p",{className:"text-[11px] mb-3 text-center","data-testid":"quota-hint",children:o?(0,Te.jsx)("span",{className:"text-primary font-medium",children:G.quotaReachedMsg}):(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[G.quotaHintPre,(0,Te.jsxs)("strong",{children:[i," %"]}),G.quotaHintPost.replace(/^\s*%/,"")]})}),(0,Te.jsxs)("div",{className:"flex gap-2",children:[(0,Te.jsxs)("button",{onClick:de,"data-testid":"survey-back",className:"".concat(he," flex-1"),children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:ce,disabled:I,"data-testid":"survey-next",className:"".concat(pe," flex-[2]"),
2children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})})]})}return(0,Te.jsxs)("div",{dir:Z,className:"".concat(me," ").concat(B?"pt-16":"pt-6"," pb-10"),children:[ve,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ue,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col py-8 ".concat("welcome"===b?"justify-center":"justify-start"),children:["welcome"===b&&(0,Te.jsxs)("div",{className:"text-center","data-testid":"survey-welcome",children:[(0,Te.jsx)(wne,{as:"p",className:"text-sm sm:text-base text-muted-foreground",id:Y("welcomeFor"),seed:G.welcomeFor,children:G.welcomeFor}),(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl lg:text-4xl mt-2",children:fe}),(0,Te.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-6 text-sm brand-green font-medium",children:[(0,Te.jsx)(dS,{size:18})," ",(0,Te.jsx)(wne,{as:"span",id:Y("anonymous"),seed:G.anonymous,children:G.anonymous})]}),(0,Te.jsxs)("button",{onClick:()=>y("text"),className:"".concat(pe," mt-8"),"data-testid":"survey-start",children:[(0,Te.jsx)(J,{})," ",(0,Te.jsx)(Df,{size:16})]})]}),"text"===b&&(0,Te.jsxs)("div",{"data-testid":"survey-intro-text",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl mb-4",id:Y("introHeading"),seed:G.introHeading,children:G.introHeading}),(0,Te.jsx)(wne,{as:"div",id:Y("welcomeText"),seed:jne(G.welcomeText),children:(0,Te.jsx)(_ne,{text:G.welcomeText})}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>y("welcome"),className:he,"data-testid":"intro-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>y("consent"),className:pe,"data-testid":"intro-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]}),"consent"===b&&(0,Te.jsxs)("div",{"data-testid":"survey-consent",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl mb-4",id:Y("consentTitle"),seed:G.consentTitle,children:G.consentTitle}),(0,Te.jsxs)("div",{className:"space-y-3 text-sm leading-relaxed text-foreground/90 max-h-[45vh] overflow-y-auto pr-1",children:[(0,Te.jsx)(wne,{as:"p",id:Y("consentP1"),seed:G.consentP1,children:G.consentP1}),(0,Te.jsxs)("p",{children:[(0,Te.jsx)(wne,{as:"span",id:Y("consentP2a"),seed:G.consentP2a,children:G.consentP2a}),(0,Te.jsx)("a",{href:tr,target:"_blank",rel:"noreferrer",className:"text-primary underline font-semibold","data-testid":"consent-link",children:(0,Te.jsx)(wne,{as:"span",id:Y("consentLinkText"),seed:G.consentLinkText,children:G.consentLinkText})}),(0,Te.jsx)(wne,{as:"span",id:Y("consentP2b"),seed:G.consentP2b,children:G.consentP2b})]})]}),(0,Te.jsxs)("label",{className:"mt-5 flex items-start gap-3 cursor-pointer select-none",children:[(0,Te.jsxs)("span",{className:"relative mt-0.5 w-5 h-5 shrink-0",children:[(0,Te.jsx)("input",{type:"checkbox",checked:E,onChange:e=>{C(e.target.checked),D("")},className:"peer w-5 h-5 appearance-none rounded border-2 border-primary bg-white checked:bg-primary cursor-pointer","data-testid":"consent-checkbox"}),(0,Te.jsx)(Cf,{size:14,strokeWidth:3.5,className:"pointer-events-none absolute inset-0 m-auto text-white opacity-0 peer-checked:opacity-100"})]}),(0,Te.jsx)("span",{className:"text-sm font-medium",children:(0,Te.jsx)(wne,{as:"span",id:Y("consentCheckbox"),seed:G.consentCheckbox,children:G.consentCheckbox})})]}),O&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"consent-error",children:O}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>y("text"),className:he,"data-testid":"consent-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>{E?y("assign"):D(G.consentRequired)},className:pe,"data-testid":"consent-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]}),"assign"===b&&(0,Te.jsxs)("div",{"data-testid":"survey-assign",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("assignTitle"),seed:G.assignTitle,children:G.assignTitle}),(0,Te.jsx)(wne,{as:"p",className:"text-sm text-muted-foreground mt-1",id:Y("assignSubtitle"),seed:G.assignSubtitle,children:G.assignSubtitle}),(0,Te.jsxs)("select",{value:S,onChange:e=>{_(e.target.value),D("")},"data-testid":"assign-select",className:"mt-5 w-full border border-border rounded-md px-3 py-3 text-sm sm:text-base bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:G.assignPlaceholder}),p.departments.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.label},e.id))]}),O&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"assign-error",children:O}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>y("consent"),className:he,"data-testid":"assign-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>{S?(async()=>
2{if(D(""),B)return H(null),k(0),void y("survey");try{const e=await Ps.post("/survey/".concat(r,"/session"),{lang:s,department_id:S,consent:!0,preview:!1});H(e.data.session_id),k(0),y("survey")}catch(rse){D(Cs(rse))}})():D(G.assignRequired)},className:pe,"data-testid":"assign-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})]})]})}function Ene(e){return(e||"").split(/\n\s*\n/).map(e=>"<p>".concat(e.replace(/\*\*([^*]+)\*\*/g,"<strong>$1</strong>").replace(/\n/g,"<br>"),"</p>")).join("")}function Cne(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const Pne="Willkommen zu PERSENTIS Analytics f\xfcr",Ane="100 % anonym",Tne="Befragung starten",Rne="Willkommen bei PERSENTIS Analytics",One='**Sch\xf6n, dass Sie da sind und sich Zeit f\xfcr ein paar Fragen nehmen!** In dieser Befragung geht es um Ihre Sicht auf Ihren Arbeitgeber \u2013 was Sie sch\xe4tzen, was Ihnen wichtig ist und wo Sie Verbesserungspotenzial sehen.\n\n**Alle Fragen sind freiwillig.** Wenn Sie eine Frage nicht beantworten m\xf6chten, gehen Sie einfach mit \u201eWeiter" zur n\xe4chsten.\n\n**Sie k\xf6nnen sich vollkommen sicher f\xfchlen:** Alle hier erhobenen Daten werden streng vertraulich behandelt. Die Auswertungen erfolgen anonym und beziehen sich nur auf ganze Personengruppen. Bitte verzichten Sie zum Schutz Ihrer und der Anonymit\xe4t Ihrer Kolleginnen und Kollegen auf Namensnennungen.',Dne='Alle Fragen sind freiwillig \u2013 mit \u201eWeiter" k\xf6nnen Sie jede Frage \xfcberspringen.',Mne="Weiter",Ine="Zur\xfcck",Fne="Abschlie\xdfen",Lne="Frage",Bne="beantwortet",qne="Vielen Dank!",Une="Ihre anonyme Antwort wurde \xfcbermittelt.",Vne="Ich m\xf6chte mehr \xfcber PERSENTIS Analytics erfahren.",Hne="Soziodemografische Angaben",Wne="Diese Angaben sind v\xf6llig freiwillig und werden nicht in die Berechnung einbezogen.",Kne="Fast geschafft";function Gne(e,t){return e.split(/(\*\*[^*]+\*\*)/g).map((e,n)=>e.startsWith("**")&&e.endsWith("**")?(0,Te.jsx)("strong",{className:"font-semibold text-foreground",children:e.slice(2,-2)},"".concat(t,"-").concat(n)):(0,Te.jsx)(a.Fragment,{children:e},"".concat(t,"-").concat(n)))}function Zne(e){const t=(e.text||"").split(/\n\s*\n/);return(0,Te.jsx)("div",{className:"space-y-4",children:t.map((e,t)=>(0,Te.jsx)("p",{className:"text-sm leading-relaxed text-foreground/90",children:Gne(e,"p".concat(t))},t))})}function Yne(e){let t=e.options,n=e.order,r=e.onChange;const i=(0,a.useRef)(null),s=Object.fromEntries(t.map(e=>[e.id,e])),o=(e,t)=>{if(t<0||t>=n.length||e===t)return;const a=[...n],i=Le(a.splice(e,1),1)[0];a.splice(t,0,i),r(a)};return(0,Te.jsx)("div",{className:"mt-6 space-y-2","data-testid":"ranking-panel",children:n.map((e,t)=>{const a=s[e];return(0,Te.jsxs)("div",{draggable:!0,onDragStart:()=>{i.current=t},onDragOver:e=>e.preventDefault(),onDrop:()=>{null!=i.current&&(o(i.current,t),i.current=null)},"data-testid":"rank-item-".concat(e),className:"flex items-center gap-3 rounded-md border border-border bg-white px-3 py-3 cursor-grab active:cursor-grabbing hover:border-primary transition-colors",children:[(0,Te.jsx)("span",{className:"w-7 h-7 shrink-0 rounded-full bg-primary text-white text-sm font-bold flex items-center justify-center","data-testid":"rank-pos-".concat(e),children:t+1}),(0,Te.jsx)(g9,{size:16,className:"text-muted-foreground shrink-0"}),(0,Te.jsx)("span",{className:"flex-1 text-sm font-medium",children:null===a||void 0===a?void 0:a.label}),(0,Te.jsxs)("div",{className:"flex flex-col shrink-0",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>o(t,t-1),disabled:0===t,"data-testid":"rank-up-".concat(e),className:"text-muted-foreground hover:text-primary disabled:opacity-30",children:(0,Te.jsx)(_E,{size:16})}),(0,Te.jsx)("button",{type:"button",onClick:()=>o(t,t+1),disabled:t===n.length-1,"data-testid":"rank-down-".concat(e),className:"text-muted-foreground hover:text-primary disabled:opacity-30",children:(0,Te.jsx)(xw,{size:16})})]})]},e)})})}function Qne(){const e=Is().editMode,t=ln().token,n=Le((0,a.useState)("de"),2),r=n[0],i=n[1],s=Le((0,a.useState)([]),2),o=s[0],l=s[1],c=Le((0,a.useState)(null),2),u=c[0],m=c[1],p=Le((0,a.useState)({}),2),h=p[0],f=p[1],g=Le((0,a.useState)("welcome"),2),x=g[0],v=g[1],b=Le((0,a.useState)(0),2),y=b[0],w=b[1],j=Le((0,a.useState)(""),2),k=j[0],N=j[1],S=Le((0,a.useState)(!1),2),_=S[0],z=S[1],E=Le((0,a.useState)({}),2),C=E[0],P=E[1],A=Le((0,a.useState)(""),2),T=A[0],R=A[1],O=Le((0,a.useState)(!1),2),D=O[0],M=O[1],I=Le(ya(),1)[0],F="1"===I.get("preview"),L="1"===I.get("ct")||"undefined"!==typeof window&&"1"===window.sessionStorage.getItem("ct_mode"),B=Le((0,a.useState)(null),2),q=B[0],U=B[1],V=(0,a.useRef)(null),H=(0,a.useRef)(null),W=er(r),K=e=>(e||"").replace(/Care/g,"Analytics"),G=(null===u||void 0===u?void 0:u.ui)||{}
2,Z={welcomeFor:K(W.welcomeFor)||Pne,anonymous:W.anonymous||Ane,start:W.start||Tne,introHeading:K(W.introHeading)||Rne,welcomeText:"de"!==r&&G.welcomeText?G.welcomeText:One,skipHint:"de"!==r&&G.skipHint?G.skipHint:Dne,next:W.next||Mne,back:W.back||Ine,submit:W.submit||Fne,progress:W.progress||Lne,answered:W.answered||Bne,done:W.done||qne,doneText:W.doneText||Une,moreLink:K(W.moreLink)||Vne,sozioTitle:W.sozioTitle||Hne,sozioNote:W.sozioNote||Wne,fastdoneTitle:W.fastdoneTitle||Kne},Y=e=>"survey.analytics.".concat(r,".").concat(e),Q=()=>{const e=Z.next;return(0,Te.jsx)(wne,{as:"span",id:Y("next"),seed:e,children:e})},$=()=>{const e=Z.back;return(0,Te.jsx)(wne,{as:"span",id:Y("back"),seed:e,children:e})},X=()=>{const e=Z.submit;return(0,Te.jsx)(wne,{as:"span",id:Y("submit"),seed:e,children:e})},J=()=>{const e=Z.start;return(0,Te.jsx)(wne,{as:"span",id:Y("start"),seed:e,children:e})};if((0,a.useEffect)(()=>{Ps.get("/analytics-survey/languages".concat(L?"?ct=1":"")).then(e=>l(e.data)).catch(()=>{})},[L]),(0,a.useEffect)(()=>(document.title=u?"Umfrage PERSENTIS Analytics":"PERSENTIS",()=>{document.title="PERSENTIS"}),[u]),(0,a.useEffect)(()=>{const e=L?"&ct=1":"";Ps.get("/analytics-survey/".concat(t,"?lang=").concat(r).concat(e)).then(e=>m(e.data)).catch(e=>R(Cs(e,"Umfrage nicht gefunden")))},[t,r,L]),(0,a.useEffect)(()=>{if("survey"===x&&!F&&q&&u)return V.current&&clearTimeout(V.current),V.current=setTimeout(()=>{Ps.put("/analytics-survey/".concat(t,"/session/").concat(q),{lang:r,answers:ie()}).catch(()=>{})},700),()=>{V.current&&clearTimeout(V.current)}},[h,x,q]),(0,a.useEffect)(()=>{const e=e=>{H.current&&H.current(e)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),T&&!u)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6 text-center text-muted-foreground","data-testid":"survey-error",children:T});if(!u)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"\u2026"});const ee=u.items.length,te=u.items[y],ne=h[null===te||void 0===te?void 0:te.id]||{},ae="ranking"===(null===te||void 0===te?void 0:te.type)?ne.order||te.options.map(e=>e.id):[],re=e=>f(d(d({},h),{},{[te.id]:d(d({},ne),e)}));function ie(){return u.items.map(e=>{const t=h[e.id]||{};return"likert"===e.type?{item_id:e.id,type:"likert",likert:t.likert||null}:"open"===e.type?{item_id:e.id,type:"open",text:t.text||""}:"enps"===e.type?{item_id:e.id,type:"enps",score:null==t.score?null:t.score}:"ranking"===e.type?{item_id:e.id,type:"ranking",ranking:t.order||e.options.map(e=>e.id),touched:!!t.touched}:{item_id:e.id,type:e.type}})}const se=async()=>{if(M(!0),F)return v("done"),void M(!1);try{await Ps.post("/analytics-survey/".concat(t,"/submit"),{lang:r,session_id:q,preview:!1,answers:ie(),demographics:C}),v("done")}catch(rse){R(Cs(rse))}finally{M(!1)}},oe=()=>{R(""),y<ee-1?w(y+1):v("fastdone")},le=()=>{R(""),y>0?w(y-1):v("assign")};H.current=t=>{if(!e)if("survey"===x){var n;const e=null===u||void 0===u||null===(n=u.items)||void 0===n?void 0:n[y];if(!e)return;if("ArrowRight"===t.key||"ArrowLeft"===t.key){if("likert"===e.type){var a;t.preventDefault();const n=null===(a=h[e.id])||void 0===a?void 0:a.likert,r="ArrowRight"===t.key?null==n?1:Math.min(5,n+1):null==n?5:Math.max(1,n-1);f(t=>d(d({},t),{},{[e.id]:d(d({},t[e.id]||{}),{},{likert:r})}))}else if("enps"===e.type){var r;t.preventDefault();const n=null===(r=h[e.id])||void 0===r?void 0:r.score,a="ArrowRight"===t.key?null==n?0:Math.min(10,n+1):null==n?10:Math.max(0,n-1);f(t=>d(d({},t),{},{[e.id]:d(d({},t[e.id]||{}),{},{score:a})}))}}else if("Enter"===t.key){var i;if("textarea"===((null===(i=t.target)||void 0===i?void 0:i.tagName)||"").toLowerCase())return;t.preventDefault(),oe()}}else if("fastdone"===x&&"Enter"===t.key)t.preventDefault(),v("sozio");else if("sozio"===x&&"Enter"===t.key){var s;if("select"===((null===(s=t.target)||void 0===s?void 0:s.tagName)||"").toLowerCase())return;t.preventDefault(),se()}};const ce=()=>o.length<=1?null:(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(xne,{size:16,className:"text-muted-foreground"}),(0,Te.jsx)("select",{value:r,onChange:e=>i(e.target.value),"data-testid":"survey-lang-select",className:"text-sm border border-border rounded-md px-2 py-1 bg-white outline-none",children:o.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))})]}),de="min-h-screen bg-white w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 flex flex-col",ue="inl
2ine-flex items-center justify-center gap-2 bg-primary text-white rounded-md px-6 py-3 text-sm sm:text-base font-semibold hover:bg-[var(--brand-primary-dark)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed",me="inline-flex items-center justify-center gap-2 border border-border rounded-md px-5 py-3 text-sm sm:text-base hover:bg-zinc-50 transition-colors disabled:opacity-40",pe="".concat(u.company_name).concat(u.filiale_name?" | "+u.filiale_name:""),he="ar"===r||"he"===r?"rtl":"ltr",fe=F?(0,Te.jsx)("div",{"data-testid":"preview-banner",className:"fixed top-0 left-0 right-0 z-50 bg-red-600 text-white text-xs sm:text-sm font-semibold text-center px-4 py-2 shadow-md",children:"VORSCHAU Ihres Fragebogens"}):null;if("done"===x)return(0,Te.jsxs)("div",{dir:he,className:"".concat(de," items-center justify-center text-center ").concat(F?"pt-16":""),"data-testid":"survey-done",children:[fe,(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary flex items-center justify-center",children:(0,Te.jsx)(Cf,{size:32,className:"text-white"})}),(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-2xl sm:text-3xl mt-6",id:Y("done"),seed:Z.done,children:Z.done}),(0,Te.jsx)(wne,{as:"p",className:"text-muted-foreground mt-2",id:Y("doneText"),seed:Z.doneText,children:Z.doneText}),(0,Te.jsx)("a",{href:"https://www.persentis.com",target:"_blank",rel:"noopener noreferrer",className:"mt-5 font-bold text-primary hover:underline","data-testid":"survey-more-link",children:(0,Te.jsx)(wne,{as:"span",id:Y("moreLink"),seed:Z.moreLink,children:Z.moreLink})}),(0,Te.jsx)("div",{className:"mt-8",children:(0,Te.jsx)(lw,{size:"sm"})})]});if("fastdone"===x)return(0,Te.jsxs)("div",{dir:he,className:"".concat(de," ").concat(F?"pt-16":"pt-6"," pb-10"),"data-testid":"survey-fastdone",children:[fe,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ce,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col justify-start py-8",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-primary",children:[(0,Te.jsx)(If,{size:22}),(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("fastdoneTitle"),seed:Z.fastdoneTitle,children:Z.fastdoneTitle})]}),(0,Te.jsx)("div",{className:"mt-4","data-testid":"fastdone-text",children:(0,Te.jsx)(wne,{as:"div",id:Y("fastdoneText"),seed:Ene(u.fastdone_text),children:(0,Te.jsx)(Zne,{text:u.fastdone_text})})}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>{v("survey"),w(ee-1)},className:me,"data-testid":"fastdone-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>v("sozio"),className:ue,"data-testid":"fastdone-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})]});if("sozio"===x){var ge;const e=(null===(ge=u.sozio)||void 0===ge?void 0:ge.fields)||[];return(0,Te.jsxs)("div",{dir:he,className:"".concat(de," ").concat(F?"pt-16":"pt-6"," pb-10"),"data-testid":"survey-sozio",children:[fe,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ce,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col justify-start py-8",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("sozioTitle"),seed:Z.sozioTitle,children:Z.sozioTitle}),(0,Te.jsx)(wne,{as:"p",className:"text-sm text-muted-foreground mt-1",id:Y("sozioNote"),seed:Z.sozioNote,children:Z.sozioNote}),(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-1 sm:grid-cols-2 gap-4","data-testid":"sozio-fields",children:e.map(e=>(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:e.label}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsxs)("select",{value:C[e.key]||"",onChange:t=>P(n=>d(d({},n),{},{[e.key]:t.target.value})),"data-testid":"sozio-".concat(e.key),className:"w-full appearance-none border border-border rounded-md pl-3 pr-9 py-2.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:W.selectPlaceholder}),e.options.map(e=>{const t="string"===typeof e?e:e.value,n="string"===typeof e?e:e.label;return(0,Te.jsx)("option",{value:t,children:n},t)})]}),(0,Te.jsx)(xw,{size:16,className:"pointer-events-none absolute right-[10px] top-1/2 -translate-y-1/2 text-muted-foreground"})]})]},e.key))}),T&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"sozio-error",children:T}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between",children:[(0,Te.jsxs)("button",{onClick:()=>v("fastdone"),className:me,"data-testid":"sozio-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:se,disabled:D,className:ue,"data-testid":"sozio-submit",children:[(0,Te.jsx)(Cf,{size:16})," ",(0,Te.jsx)(X,{})]})]})]})]})}
2if("survey"===x){if(L&&y>=5)return(0,Te.jsx)(vne,{count:5,lang:r,backLabel:W.back,languages:o,onLangChange:i,onBack:()=>w(4)});const e=u.items.filter(e=>"likert"===e.type||"enps"===e.type||"ranking"===e.type),t=e.length||1,n=e.filter(e=>{const t=h[e.id]||{};return"likert"===e.type?null!=t.likert:"enps"===e.type?null!=t.score:"ranking"===e.type&&!!t.touched}).length,a=Math.round(n/t*100),s=Math.round((y+1)/ee*100),l=a>=(null!=u.validity_quota?u.validity_quota:25);return(0,Te.jsxs)("div",{dir:he,className:"".concat(de," ").concat(F?"pt-16":"pt-5"," pb-44"),children:[fe,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ce,{})]}),(0,Te.jsxs)("div",{className:"mt-8 lg:mt-12 flex-1",children:[(0,Te.jsx)("span",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground","data-testid":"survey-factor",children:"PERSENTIS Analytics".concat(null!==u&&void 0!==u&&u.label?" \u2013 "+u.label:"")}),(0,Te.jsx)("h2",{className:"font-heading text-xl sm:text-2xl lg:text-3xl mt-2 leading-snug","data-testid":"survey-question",children:te.question}),te.instruction&&(0,Te.jsx)("p",{className:"mt-3 text-base font-bold text-foreground leading-relaxed","data-testid":"survey-instru
2ction",children:te.instruction}),"open"===te.type&&(0,Te.jsx)("div",{className:"mt-6","data-testid":"open-block",children:(0,Te.jsx)("textarea",{value:ne.text||"",onChange:e=>re({text:e.target.value}),placeholder:W.answerHere||"Ihre Antwort \u2026",rows:5,className:"w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"open-answer-input"})}),"likert"===te.type&&(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-5 gap-2 sm:gap-3","data-testid":"likert-group",children:te.scale_labels.map((e,t)=>{const n=t+1,a=ne.likert===n;return(0,Te.jsx)("button",{type:"button",onClick:()=>re({likert:n}),"data-testid":"likert-".concat(n),className:"min-h-[72px] sm:min-h-[92px] flex items-center justify-center text-center px-2 py-3 rounded-md border text-xs sm:text-sm font-bold leading-snug transition-colors ".concat(a?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:Cne(e)},n)})}),"enps"===te.type&&(0,Te.jsxs)("div",{className:"mt-6","data-testid":"enps-block",children:[(0,Te.jsx)("div",{className:"grid grid-cols-11 gap-1 sm:gap-2",children:Array.from({length:te.max-te.min+1},(e,t)=>te.min+t).map(e=>{const t=ne.score===e;return(0,Te.jsx)("button",{type:"button",onClick:()=>re({score:e}),"data-testid":"enps-".concat(e),className:"h-12 sm:h-14 flex items-center justify-center rounded-md border text-sm font-bold transition-colors ".concat(t?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:e},e)})}),(0,Te.jsxs)("div",{className:"flex justify-between mt-2 text-[11px] text-muted-foreground",children:[(0,Te.jsx)("span",{children:te.left_label}),(0,Te.jsx)("span",{children:te.right_label})]})]}),"ranking"===te.type&&(0,Te.jsx)(Yne,{options:te.options,order:ae,onChange:e=>re({order:e,touched:!0})})]}),(0,Te.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border",children:(0,Te.jsxs)("div",{className:"w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 pb-3 pt-[30px]",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between text-xs mb-1.5",children:[(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[(0,Te.jsx)(wne,{as:"span",id:Y("progress"),seed:Z.progress,children:Z.progress})," ",y+1," / ",ee]}),(0,Te.jsxs)("span",{className:"font-bold ".concat(l?"text-primary":"text-red-600"),"data-testid":"answered-pct",children:[a," % ",(0,Te.jsx)(wne,{as:"span",id:Y("answered"),seed:Z.answered,children:Z.answered})]})]}),(0,Te.jsx)("div",{className:"h-1.5 bg-zinc-100 rounded-full overflow-hidden mb-[30px]",children:(0,Te.jsx)("div",{className:"h-full bg-primary transition-all duration-300",style:{width:"".concat(s,"%")},"data-testid":"progress-bar"})}),(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("button",{onClick:le,"data-testid":"survey-back",className:me,children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:oe,disabled:D,"data-testid":"survey-next",className:ue,children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})})]})}return(0,Te.jsxs)("div",{dir:he,className:"".concat(de," ").concat(F?"pt-16":"pt-6"," pb-10"),children:[fe,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(ce,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col py-8 ".concat("welcome"===x?"justify-center":"justify-start"),children:["welcome"===x&&(0,Te.jsxs)("div",{className:"text-center","data-testid":"survey-welcome",children:[(0,Te.jsx)(wne,{as:"p",className:"text-sm sm:text-base text-muted-foreground",id:Y("welcomeFor"),seed:Z.welcomeFor,children:Z.welcomeFor}),(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl lg:text-4xl mt-2",children:pe}),(0,Te.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-6 text-sm brand-green font-medium",children:[(0,Te.jsx)(dS,{size:18})," ",(0,Te.jsx)(wne,{as:"span",id:Y("anonymous"),seed:Z.anonymous,children:Z.anonymous})]}),(0,Te.jsxs)("button",{onClick:()=>v("text"),className:"".concat(ue," mt-8"),"data-testid":"survey-start",children:[(0,Te.jsx)(J,{})," ",(0,Te.jsx)(Df,{size:16})]})]}),"text"===x&&(0,Te.jsxs)("div",{"data-testid":"survey-intro-text",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl mb-4",id:Y("introHeading"),seed:Z.introHeading,children:Z.introHeading}),(0,Te.jsx)(wne,{as:"div",id:Y("welcomeText"),seed:Ene(Z.welcomeText),children:(0,Te.jsx)(Zne,{text:Z.welcomeText})}),(0,Te.jsxs)("div",{className:"mt-8 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>v("welcome"),className:me,"data-testid":"intro-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>v("consent"),className:ue,"data-testid":"intro-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]}),"consent"===x&&(0,Te.jsxs)("div",{"data-testid":"survey-consent",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl mb-4",id:Y("consentTitle"),seed:W.consentTitle,children:W.consentTitle}),(0,Te.jsxs)("div",{className:"space-y-3 text-sm leading-relaxed text-foreground
2/90 max-h-[45vh] overflow-y-auto pr-1",children:[(0,Te.jsx)(wne,{as:"p",id:Y("consentP1"),seed:W.consentP1,children:W.consentP1}),(0,Te.jsxs)("p",{children:[(0,Te.jsx)(wne,{as:"span",id:Y("consentP2a"),seed:W.consentP2a,children:W.consentP2a}),(0,Te.jsx)("a",{href:tr,target:"_blank",rel:"noreferrer",className:"text-primary underline font-semibold","data-testid":"consent-link",children:(0,Te.jsx)(wne,{as:"span",id:Y("consentLinkText"),seed:W.consentLinkText,children:W.consentLinkText})}),(0,Te.jsx)(wne,{as:"span",id:Y("consentP2b"),seed:W.consentP2b,children:W.consentP2b})]})]}),(0,Te.jsxs)("label",{className:"mt-5 flex items-start gap-3 cursor-pointer select-none",children:[(0,Te.jsxs)("span",{className:"relative mt-0.5 w-5 h-5 shrink-0",children:[(0,Te.jsx)("input",{type:"checkbox",checked:_,onChange:e=>{z(e.target.checked),R("")},className:"peer w-5 h-5 appearance-none rounded border-2 border-primary bg-white checked:bg-primary cursor-pointer","data-testid":"consent-checkbox"}),(0,Te.jsx)(Cf,{size:14,strokeWidth:3.5,className:"pointer-events-none absolute inset-0 m-auto text-white opacity-0 peer-checked:opacity-100"})]}),(0,Te.jsx)("span",{className:"text-sm font-medium",children:(0,Te.jsx)(wne,{as:"span",id:Y("consentCheckbox"),seed:W.consentCheckbox,children:W.consentCheckbox})})]}),T&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"consent-error",children:T}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>v("text"),className:me,"data-testid":"consent-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>{_?v("assign"):R(W.consentRequired)},className:ue,"data-testid":"consent-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]}),"assign"===x&&(0,Te.jsxs)("div",{"data-testid":"survey-assign",children:[(0,Te.jsx)(wne,{as:"h1",className:"font-heading text-xl sm:text-2xl",id:Y("assignTitle"),seed:W.assignTitle,children:W.assignTitle}),(0,Te.jsx)(wne,{as:"p",className:"text-sm text-muted-foreground mt-1",id:Y("assignSubtitle"),seed:W.assignSubtitle,children:W.assignSubtitle}),(0,Te.jsxs)("select",{value:k,onChange:e=>{N(e.target.value),R("")},"data-testid":"assign-select",className:"mt-5 w-full border border-border rounded-md px-3 py-3 text-sm sm:text-base bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:W.assignPlaceholder}),u.departments.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.label},e.id))]}),T&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"assign-error",children:T}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>v("consent"),className:me,"data-testid":"assign-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)($,{})]}),(0,Te.jsxs)("button",{onClick:()=>{k?(async()=>{if(R(""),F)return U(null),w(0),void v("survey");try{const e=await Ps.post("/analytics-survey/".concat(t,"/session"),{lang:r,department_id:k,consent:!0,preview:!1});U(e.data.session_id),w(0),v("survey")}catch(rse){R(Cs(rse))}})():R(W.assignRequired)},className:ue,"data-testid":"assign-next",children:[(0,Te.jsx)(Q,{})," ",(0,Te.jsx)(Df,{size:16})]})]})]})]})]})}const $ne=kf("heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]),Xne=kf("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]),Jne=kf("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]),eae=kf("thumbs-down",[["path",{d:"M17 14V2",key:"8ymqnk"}],["path",{d:"M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z",key:"m61m77"}]]);const tae={red:"sehr schwach",orange:"moderat",green:"sehr stark"},nae="Der Gesamtwert b\xfcndelt alle Fragen dieser Umfrage zu einem Index. Er zeigt auf einen Blick, wie ausgepr\xe4gt Aufgabenattraktivit\xe4t und Beziehungsqualit\xe4t insgesamt wahrgenommen werden.",aae="Das mentale Wohlbefinden spiegelt wider, wie stark die Arbeit zum guten Befinden der Mitarbeitenden beitr\xe4gt.",rae="Hier finden Sie Hinweise zur Interpretation der Ergebnisse sowie methodische Erl\xe4uterungen zur Umfrage. Die Werte reichen von 0 bis 100 \u2013 je h\xf6her, desto positiver die Einsch\xe4tzung.",iae=[{id:"allgemeines",label:"Allgemeines",icon:GS,items:[]},{id:"ueberblick",label:"\xdcberblick",icon:vw,items:[]},{id:"gesamt",label:"PERSENTIS Care Index",icon:I5,items:[]},{id:"verbundenheit",label:"Mentales Wohlbefinden",icon:$ne,items:[]},{id:"dim-a",label:"Aufgabenattraktivit\xe4t",icon:B5,items:[{id:"A01",label:"Passung & Kompetenz"},{id:"A02",label:"Inhaltliche Attraktivit\xe4t & Abwechslung"},{id:"A03",label:"Sinnhaftigkeit der Arbeit"},{id:"A04",label:"Konstruktives Feedback"},{id:"A05",label:"M\xf6glichkeiten zur Weiterentwicklung"}]},{id:"dim-b",label:"Beziehungsqualit\xe4t",icon:_f,items:[{id:"B01",label:"Handlungs- & Gestaltungsspielraum"},{id:"B02",label:"Empfehlungsbereitschaft"},{id:"B03",label:"Organisatorische Identifikation"},{id:"B04",label:"Unterst\xfctzung & Vertrauen F\xfchrungskraft"},{id:"B05",label:"Kommunikation & Nachvollziehbarkeit von Entscheidungen"},{id:"B06",label:"Verh\xe4ltnis zur F\xfchrungskraft"},{id:"B07",label:"Soziales Klima & Umgang im Unternehmen"}]},{id:"wissenswertes",label:"Wissenswertes",icon:Xne,items:[]}],sae=iae.flatMap(e=>e.items.length?e.items.map(e=>e.id):[e.id]);function oae(e){let t=e.value,n=e.gesamt;if(null==n||null==t)return null;
2const a=t-n,r=0===a?"gleich Gesamt":"".concat(Math.abs(a)," ").concat(a>0?"\xfcber":"unter"," Gesamt");return(0,Te.jsx)("div",{className:"text-[12px] font-bold text-black text-center mt-1","data-testid":"care-gesamt-delta",children:r})}function lae(e){let t=e.icon,n=e.label,a=e.value,r=e.testid;return(0,Te.jsxs)("div",{className:"rounded-xl border border-zinc-200 bg-zinc-50 p-4 flex items-center gap-3","data-testid":r,children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{size:18,className:"text-primary"})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:n}),(0,Te.jsx)("div",{className:"font-heading text-lg leading-tight text-foreground",children:a})]})]})}function cae(e){let t=e.meta;const n=Xa().t;if(!t)return null;const a=t.answer_stats||{},r=t.target>0?Math.min(100,Math.round(t.responses/t.target*100)):null;return(0,Te.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"allgemeines-block",children:[(0,Te.jsx)(lae,{icon:_f,label:n("analysis.stat.teilnehmer"),testid:"stat-teilnehmer",value:"".concat(t.responses,"/").concat(t.target)}),(0,Te.jsx)(lae,{icon:Jne,label:n("analysis.stat.beteiligung"),testid:"stat-beteiligung",value:null!=r?"".concat(r,"%"):"\u2014"}),(0,Te.jsx)(lae,{icon:H5,label:n("analysis.stat.laufzeit"),testid:"stat-laufzeit",value:null!=t.duration_days?"".concat(t.duration_days," ").concat(n("common.days")):"\u2014"}),(0,Te.jsx)(lae,{icon:W5,label:n("analysis.stat.abgeschlossen"),testid:"stat-abgeschlossen",value:(i=t.completed_at,i?new Date(i).toLocaleDateString("de-DE"):"\u2014")}),(0,Te.jsx)(lae,{icon:L5,label:n("analysis.stat.positiv"),testid:"stat-positiv",value:a.positive||0}),(0,Te.jsx)(lae,{icon:eae,label:n("analysis.stat.negativ"),testid:"stat-negativ",value:a.negative||0})]});var i}function dae(e){let t=e.description,n=e.gauge,a=e.testid,r=e.gaugeFirst,i=e.statusNode;const s=Xa().t,o=t?(0,Te.jsx)("div",{className:"text-sm text-muted-foreground [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2","data-testid":"desc-".concat(a),dangerouslySetInnerHTML:{__html:t}}):null,l=n?(0,Te.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Te.jsx)(qS,{value:n.value,color:n.color,status:i||n.status,segments:n.segments,minLabel:"0",maxLabel:"100"}),(0,Te.jsx)(oae,{value:n.value,gesamt:n.gesamt})]}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:s("analysis.gauge.no_value")});return(0,Te.jsx)("div",{"data-testid":"gauge-block-".concat(a),className:"space-y-5",children:r?(0,Te.jsxs)(Te.Fragment,{children:[l,o]}):(0,Te.jsxs)(Te.Fragment,{children:[o,l]})})}const uae=iae.find(e=>"dim-a"===e.id).items,mae=iae.find(e=>"dim-b"===e.id).items,pae=(e,t)=>{const n=t>0?e/t*100:0;return n>=66?"#00B050":n>=33?"#FFC000":"#FF0000"};function hae(e){let t=e.rows,n=e.description,a=e.onCellClick;const r=Xa().t,i=[...uae,...mae];return(0,Te.jsxs)("div",{"data-testid":"overview-block",children:[n&&(0,Te.jsx)("div",{className:"text-sm text-muted-foreground mb-4 [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2","data-testid":"desc-ueberblick",dangerouslySetInnerHTML:{__html:n}}),t&&0!==t.length?(0,Te.jsx)("div",{className:"overflow-x-auto border border-border rounded-lg",children:(0,Te.jsxs)("table",{className:"border-collapse text-xs","data-testid":"overview-table",children:[(0,Te.jsxs)("thead",{children:[(0,Te.jsxs)("tr",{children:[(0,Te.jsx)("th",{className:"sticky left-0 z-10 bg-zinc-50 border-b border-r border-border p-2 align-bottom min-w-[180px]",rowSpan:2,children:(0,Te.jsxs)("div",{className:"flex items-end justify-between gap-2",children:[(0,Te.jsx)("span",{children:r("analysis.overview.department")}),(0,Te.jsx)("span",{className:"text-[11px] font-bold normal-case leading-none","data-testid":"overview-quote-label",style:{writingMode:"vertical-rl",transform:"rotate(180deg)",position:"relative",left:"-10px"},children:r("analysis.overview.quote")})]})}),(0,Te.jsx)("th",{className:"bg-primary/10 border-b border-l border-border p-2 font-heading text-[var(--brand-primary-dark)]",colSpan:uae.length,children:r("analysis.group.dim-a")}),(0,Te.jsx)("th",{className:"bg-[#1F2A44]/10 border-b border-l border-border p-2 font-heading text-[#1F2A44]",colSpan:mae.length,children:r("analysis.group.dim-b")})]}),(0,Te.jsx)("tr",{children:i.map((e,t)=>(0,Te.jsx)("th",{className:"border-b border-border p-1.5 align-bottom font-bold text-foreground w-[64px] ".concat(0===t||t===uae.length?"border-l border-border":"border-l border-zinc-100"),children:(0,Te.jsx)("div",{className:"flex items-end justify-center h-[180px]",children:(0,Te.jsx)("span",{className:"[writing-mode:vertical-rl] rotate-180 whitespace-normal leading-tight text-[11px] font-bold h-[180px]",style:{textAlign:"start"},children:r("analysis.item.".concat(e.id))})})},e.id))})]}),(0,Te.jsx)("tbody",{children:t.map(e=>(0,Te.jsxs)("tr",{"data-testid":"overview-row-".concat(e.department_id),className:e.locked?"bg-zinc-50 text-muted-foreground":"hover:bg-zinc-50",children:[(0,Te.jsx)("td",{className:"sticky left-0 z-10 border-b border-r border-border p-2 min-w-[230px] ".concat(e.locked?"bg-zinc-50":"bg-white"),children:(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,Te.jsx)("span",{className:"font-heading text-[13.5px] text-foreground truncate max-w-[150px]",children:e.name}),(0,Te.jsx)("span",{className:"shrink-0 px-2 py-0.5 rounded-full text-[8.5px] font-bold",style:{backgroundColor:(e.locked?"#a1a1aa":pae(e.responses,e.headcount))+"26",color:e.locked?"#71717a":"#FFC000"===pae(e.responses,e.headcount)?"#946A00":pae(e.responses,e.headcount)},"data-testid":"overview-n-".concat(e.department_id),children:e.locked?r("analysis.overview.na"):"".concat(e.headcount>0?Math.min(100,Math.round(e.responses/e.headcount*100)):0,"%")})]})}),e.locked?(0,Te.jsx)("td",{colSpan:i.length,className:"border-b border-l border-border text-center text-[11px] text-muted-foreground","data-testid":"overview-locked-".concat(e.department_id),children:r("analysis.overview.locked_row")}):i.map((t,n)=>{var r;const i=null===(r=e.cells)||void 0===r?void 0:r[t.id];return(0,Te.jsx)("td",{className:"border-b border-border p-1 ".concat(0===n||n===uae.length?"border-l border-border":"border-l border-zinc-100"),children:i&&null!=i.value?(0,Te.jsx)("button",{type:"button",onClick:()=>null===a||void 0===a?void 0:a(e.department_id,t.id),className:"h-7 w-full rounded flex items-center justify-center font-bold cursor-pointer transition-transform hover:scale-[1.08] focus:outline-none focus:ring-2 focus:ring-primary/50",style:{backgroundColor:i.color,color:(s=i.color,"#FFC000"===s?"#3f3f46":"#ffffff")},title:"".concat(e.name," \xb7 ").concat(t.label," \u2013 zur Abteilung & zum Item springen"),"data-testid":"overview-cell-".concat(e.department_id,"-").concat(t.id),children:i.value}):(0,Te.jsx)("div",{className:"h-7 flex items-center justify-center text-muted-foreground",children:"\u2013"})},t.id);var s})]},e.department_id))})]})}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:r("analysis.overview.no_dept_data")})]})}function fae(e){let t=e.label,n=e.full,a=e.count,r=e.max,i=e.color;const s=r>0?Math.round(a/r*100):0;return(0,Te.jsx)(e_,{label:n||t,className:"w-full",children:(0,Te.jsxs)("div",{className:"flex items-center gap-3 w-full cursor-help",children:[(0,Te.jsx)("div",{className:"w-44 shrink-0 text-xs text-right text-muted-foreground leading-tight",children:t}),(0,Te.jsx)("div",{className:"flex-1 bg-zinc-100 rounded h-5 overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded",style:{width:"".concat(s,"%"),backgroundColor:i,minWidth:a>0?"4px":0}})}),(0,Te.jsx)("div",{className:"w-7 text-xs text-right tabular-nums font-semibold",children:a})]})})}
2function gae(e){let t=e.title,n=e.bars,a=e.max,r=e.color,i=e.testid;const s=Xa().t;return(0,Te.jsxs)("div",{"data-testid":i,children:[(0,Te.jsx)("div",{className:"text-sm font-semibold mb-3",children:t}),n&&0!==n.length?(0,Te.jsx)("div",{className:"space-y-2",children:n.map((e,t)=>(0,Te.jsx)(fae,{label:e.label,full:e.full,count:e.count,max:a,color:r},t))}):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:s("analysis.bar.empty")})]})}const xae={positive:"border-l-4 border-green-400 bg-green-50/70",negative:"border-l-4 border-red-400 bg-red-50/70",neutral:"border-l-4 border-zinc-300 bg-zinc-50"},vae={positive:"#22c55e",negative:"#ef4444",neutral:"#a1a1aa"};function bae(e){let t=e.text,n=e.sentiment,a=e.testid;const r=Xa().t;return(0,Te.jsxs)("div",{className:"text-sm text-foreground rounded-lg px-3 py-2 italic inline-flex items-start gap-2 max-w-full align-top ".concat(xae[n]),"data-testid":a,"data-sentiment":n,children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full mt-1.5 shrink-0",style:{backgroundColor:vae[n]},title:r("analysis.sent.".concat(n))}),(0,Te.jsxs)("span",{className:"min-w-0 break-words",children:["\u201e",t,'"']})]})}function yae(e){let t=e.items,n=(e.limit,e.testid);return(0,Te.jsx)("div",{"data-testid":n,children:(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>(0,Te.jsx)(bae,{text:e.text,sentiment:e.sentiment,testid:"".concat(n,"-item-").concat(t)},"v-".concat(t)))})})}function wae(e){let t=e.items,n=e.testid,r=e.defaultOpen,i=void 0!==r&&r,s=e.showLegend,o=void 0!==s&&s;const l=Xa().t,c=Le((0,a.useState)(i),2),d=c[0],u=c[1];return(0,a.useEffect)(()=>{i&&u(!0)},[i]),t&&0!==t.length?(0,Te.jsxs)("div",{"data-testid":n,children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"data-testid":"".concat(n,"-toggle"),className:"inline-flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline",children:[(0,Te.jsx)(xw,{size:16,className:"transition-transform ".concat(d?"rotate-180":"")}),l("analysis.feedback.details").replace("{count}",t.length)]}),(0,Te.jsx)(co,{initial:!1,children:d&&(0,Te.jsxs)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},className:"overflow-hidden",children:[(0,Te.jsx)("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground mt-3","data-testid":"".concat(n,"-legend"),style:{display:o?void 0:"none"},children:["positive","neutral","negative"].map(e=>(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:vae[e]}})," ",l("analysis.sent.".concat(e))]},e))}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2 mt-2",children:t.map((e,t)=>(0,Te.jsx)(bae,{text:e.text,sentiment:e.sentiment,testid:"".concat(n,"-item-").concat(t)},t))})]})})]}):null}function jae(e){var t,n;let a=e.item,r=e.label,i=e.target,s=e.description,o=e.dimLabel,l=e.token,c=e.dept,u=e.lang;const m=Xa().t;if(!a)return(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:m("analysis.no_result")});const p=a.result||{},h=p.positive||[],f=p.negative||[],g=Math.max(1,...h.map(e=>e.count),...f.map(e=>e.count)),x=p.feedback||[],v=p.other_positive||[],b=p.other_negative||[],y=p.open_tr||{},w=e=>y[e]||e,j=[...v.map(e=>({text:w(e),sentiment:"positive"})),...b.map(e=>({text:w(e),sentiment:"negative"}))],k=x.map(e=>({text:w(e),sentiment:"neutral"})),N=o||a.dimension_label,S="A04"!==a.id&&"undefined"!==typeof window&&"1"===window.localStorage.getItem("persentis_ct"),_=e=>S?(e||[]).map((e,t)=>d(d({},e),{},{label:B_(e.label,t),full:B_(e.full||e.label,t)})):e;return(0,Te.jsxs)("div",{"data-testid":"result-detail-".concat(a.id),children:[N&&(0,Te.jsx)("div",{className:"text-xs font-semibold uppercase tracking-wide text-primary","data-testid":"result-subline-".concat(a.id),children:N}),(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3 mt-0.5",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"analysis.item.".concat(a.id),as:"span",children:r})}),(0,Te.jsxs)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},"data-testid":"result-n-".concat(a.id),children:[i?Math.min(null!==(t=p.n)&&void 0!==t?t:0,i):null!==(n=p.n)&&void 0!==n?n:0,"/",null!==i&&void 0!==i?i:0]})]}),s&&(S?(0,Te.jsx)("div",{className:"mt-3 text-sm text-muted-foreground ct-soft-blur","data-testid":"result-desc-".concat(a.id),children:B_("Lorem ipsum dolor sit amet consetetur sadipscing elitr sed diam nonumy eirmod tempor invidunt ut labore et dolore",(a.id||"x").charCodeAt(1)||1)}):(0,Te.jsx)("div",{className:"mt-3 text-sm text-muted-foreground [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2","data-testid":"result-desc-".concat(a.id),dangerouslySetInnerHTML:{__html:s}})),(0,Te.jsx)("hr",{className:"my-5 border-border"}),(0,Te.jsxs)("div",{className:"flex flex-col items-center","data-testid":"result-gauge-".concat(a.id),children:[(0,Te.jsx)(qS,{value:p.value,color:p.color,status:p.status,segments:a.segments,minLabel:"0",maxLabel:"100"}),(0,Te.jsx)(oae,{value:p.value,gesamt:p.gesamt})]}),(0,Te.jsx)("hr",{className:"my-5 border-border"}),(0,Te.jsx)("div",{className:S?"ct-soft-blur":"",children:(0,Te.jsx)(gae,{title:"A05"===a.id?(0,Te.jsx)(cy,{id:"analysis.bar.wunsch",as:"span",children:"Ich w\xfcnsche mir MEHR"}):(0,Te.jsx)(cy,{id:"analysis.bar.positiv",as:"span",children:"Positiv"}),bars:_(h),max:g,color:"#22c55e",testid:"result-positive-".concat(a.id)})}),"A05"!==a.id&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("hr",{className:"my-5 border-border"}),(0,Te.jsx)("div",{className:S?"ct-soft-blur":"",children:(0,Te.jsx)(gae,{title:(0,Te.jsx)(cy,{id:"analysis.bar.negativ",as:"span",children:"Negativ"}),bars:_(f),max:g,color:"#dc2626",testid:"result-negative-".concat(a.id)})})]}),j.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("hr",{className:"my-5 border-border"}),(0,Te.jsxs)("div",{"data-testid":"result-sonstige-".concat(a.id),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-3 gap-3 flex-wrap",children:[(0,Te.jsx)("div",{className:"text-sm font-semibold",children:(0,Te.jsx)(cy,{id:"analysis.sonstige.title",as:"span",children:"Sonstige Angaben"})}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-[11px] text-muted-foreground","data-testid":"result-sonstige-legend-".concat(a.id),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:vae.positive}})," ",m("analysis.sent.positive")]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:vae.negative}})," ",m("analysis.sent.negative")]})]})]}),(0,Te.jsx)(yae,{items:j,testid:"result-sonstige-list-".concat(a.id)})]})]}),k.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("hr",{className:"my-5 border-border"}),(0,Te.jsx)(kae,{token:l,itemId:a.id,dept:c,lang:u,fbItems:k})]})]})}function kae(e){let t=e.token,n=e.itemId,r=e.dept,i=e.lang,s=e.fbItems;const o=Xa().t,l=s.length,c=l>10,d=Le((0,a.useState)(null),2),u=d[0],m=d[1],p=!c||!1===u;return 0===l?null:(0,Te.jsxs)("div",{"data-testid":"result-feedback-".concat(n),children:[(0,Te.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2 mb-3",children:[(0,Te.jsx)(YS,{size:15,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"analysis.feedback.title",as:"span",children:"Offenes Feedback"})]}),c?(0,Te.jsx)(Nae,{token:t,itemId:n,dept:r,lang:i,enabled:!0,onResult:m}):(0,Te.jsxs)("div",{className:"mb-3 flex items-start gap-2 text-xs text-muted-foreground rounded-lg px-3 py-2 bg-muted border border-border","data-testid":"result-nosummary-".concat(n),children:[(0,Te.jsx)(GS,{size:14,className:"shrink-0 mt-0.5"}),(0,Te.jsx)("span",{children:o("analysis.summary.too_few")})]}),(0,Te.jsx)(wae,{items:s,testid:"result-feedback-list-".concat(n),defaultOpen:p})]})}function Nae(e){let t=e.token,n=e.itemId,r=e.dept,i=e.lang,s=e.enabled,o=e.onResult;const l=Xa().t,c=Le((0,a.useState)(null),2),d=c[0],u=c[1],m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)(null),2),g=(f[0],f[1]),x=Le((0,a.useState)(!1),2),v=x[0],b=x[1];return(0,a.useEffect)(()=>
2{if(!s)return;let e=!0;b(!0);const a=r?"&department_id=".concat(r):"";return Ps.get("/care/summary/".concat(t,"/").concat(n,"?lang=").concat(i).concat(a)).then(t=>{if(e){var n,a,r,i,s;const e=(null===(n=t.data)||void 0===n?void 0:n.summary)||null;u(e),h(null!==(a=null===(r=t.data)||void 0===r?void 0:r.n)&&void 0!==a?a:null),g(null!==(i=null===(s=t.data)||void 0===s?void 0:s.respondents)&&void 0!==i?i:null),o&&o(!!e)}}).catch(()=>{e&&(u(null),o&&o(!1))}).finally(()=>{e&&b(!1)}),()=>{e=!1}},[t,n,r,i,s]),s?(0,Te.jsxs)("div",{className:"mb-3","data-testid":"result-summary-".concat(n),children:[(0,Te.jsxs)("div",{className:"text-sm font-semibold flex items-center gap-2 mb-2",children:[(0,Te.jsx)(If,{size:15,className:"text-primary"}),null!=p?l("analysis.summary.count").replace("{count}",p):l("analysis.summary.title")]}),v?(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-2","data-testid":"summary-loading-".concat(n),children:[(0,Te.jsx)(Of,{size:14,className:"animate-spin"})," ",l("analysis.summary.generating")]}):d?(0,Te.jsx)("div",{className:"text-sm text-foreground rounded-lg px-4 py-3 bg-white border border-primary/20","data-testid":"summary-text-".concat(n),children:d}):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:l("analysis.summary.none")})]}):null}function Sae(e){let t=e.departments,n=e.value,a=e.onChange;const r=Xa().t;if(!t||t.length<=1)return null;const i=(e,t)=>"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(t?"bg-white text-zinc-400 border border-border cursor-not-allowed":e?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50");return(0,Te.jsxs)("div",{className:"sticky top-[calc(184px_+_var(--ct-offset))] z-20 bg-background flex flex-wrap items-center gap-2 py-3","data-testid":"dept-filter-row",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>a(null),className:i(null==n,!1),"data-testid":"dept-filter-all",children:r("dashboard.overall")}),t.map(e=>{const t=(0,Te.jsxs)("button",{type:"button","aria-disabled":e.locked,onClick:()=>!e.locked&&a(e.id),className:i(n===e.id,e.locked)+" inline-flex items-center gap-1.5","data-testid":"dept-filter-".concat(e.id),children:[e.locked&&(0,Te.jsx)(kw,{size:13,className:"shrink-0"}),e.name]},e.id);return e.locked?(0,Te.jsx)(e_,{id:"analysis.tip_dept_locked",label:"Es haben sich zu wenig Mitarbeiter in dieser Abteilung an der Umfrage beteiligt und ist aus Anonymit\xe4tsgr\xfcnden nicht einzusehen. Die abgegebenen Antworten wurden in der Gesamtberechnung ber\xfccksichtigt.",children:t},e.id):t})]})}function _ae(){var e;const t=ln().token,n=sn(),r=Le(ya(),1)[0],i=Xa(),s=i.lang,o=i.t,l=Ws().ctMode?60:0,c=Le((0,a.useState)(null),2),d=c[0],u=c[1],m=Le((0,a.useState)(!0),2),p=m[0],h=m[1],f=Le((0,a.useState)(sae[0]),2),g=f[0],x=f[1],v=Le((0,a.useState)(r.get("department_id")||null),2),b=v[0],y=v[1],w=Le((0,a.useState)(null),2),j=w[0],k=w[1],N=Le((0,a.useState)(!1),2),S=N[0],_=N[1],z=(0,a.useRef)({}),E=(0,a.useRef)(null);(0,a.useEffect)(()=>{h(!0);const e=b?"&department_id=".concat(b):"";Ps.get("/care/survey-analysis/".concat(t,"?lang=").concat(s).concat(e)).then(e=>u(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>h(!1))},[t,s,b]);const C=null===d||void 0===d?void 0:d.invitation,P=null===d||void 0===d?void 0:d.anonymity,A=null===P||void 0===P?void 0:P.locked,T=(0,a.useRef)(!1),R=(0,a.useRef)(null);(0,a.useEffect)(()=>{if(p||A)return;const e=new IntersectionObserver(e=>{if(T.current)return;const t=e.filter(e=>e.isIntersecting).sort((e,t)=>e.boundingClientRect.top-t.boundingClientRect.top);t[0]&&x(t[0].target.dataset.section)},{rootMargin:"-".concat(240+l,"px 0px -55% 0px"),threshold:.01});return sae.forEach(t=>{const n=z.current[t];n&&e.observe(n)}),()=>e.disconnect()},[p,A,d,l]),(0,a.useEffect)(()=>{const e=iae.find(e=>e.items.some(e=>e.id===g));e&&k(e.id)},[g]);const O=e=>{const t=z.current[e];if(!t)return;x(e),T.current=!0,R.current&&clearTimeout(R.current),R.current=setTimeout(()=>{T.current=!1},900);const n=document.querySelector('[data-testid="dept-filter-row"]'),a=document.querySelector('[data-testid="analysis-header"]'),r=Math.max((null===n||void 0===n?void 0:n.getBoundingClientRect().bottom)||0,(null===a||void 0===a?void 0:a.getBoundingClientRect().bottom)||0),i=(r>0?r:200+l)+12,s=t.getBoundingClientRect().top+window.scrollY-i;window.scrollTo(0,Math.max(0,s))},D=(e,t)=>{e&&e!==b?(E.current=t,y(e)):O(t)};(0,a.useEffect)(()=>
2{if(!p&&d&&E.current){const e=E.current;E.current=null;const t=setTimeout(()=>O(e),150);return()=>clearTimeout(t)}},[p,d]);const M={};((null===d||void 0===d?void 0:d.items)||[]).forEach(e=>{M[e.id]=e});const I=(e,n,a,r)=>{var i,l,c,u,m,p,h,f;if(M[n])return(0,Te.jsx)(jae,{item:M[n],label:a,target:null===d||void 0===d||null===(h=d.meta)||void 0===h?void 0:h.target,description:null===d||void 0===d||null===(f=d.texts)||void 0===f?void 0:f[n],dimLabel:r,token:t,dept:b,lang:s},"".concat(n,"-").concat(b||"all"));switch(n){case"allgemeines":return(0,Te.jsx)(cae,{meta:null===d||void 0===d?void 0:d.meta});case"ueberblick":return(0,Te.jsx)(hae,{rows:null===d||void 0===d||null===(i=d.overview)||void 0===i?void 0:i.rows,description:null===d||void 0===d||null===(l=d.texts)||void 0===l?void 0:l.ueberblick,onCellClick:D});case"gesamt":return(0,Te.jsx)("div",{className:"space-y-6",children:(0,Te.jsx)(dae,{description:null!==(c=null===d||void 0===d||null===(u=d.texts)||void 0===u?void 0:u.gesamt)&&void 0!==c?c:nae,gauge:null===d||void 0===d?void 0:d.gesamt,testid:"gesamt",gaugeFirst:!0})});case"verbundenheit":{var g,x;const e=null===d||void 0===d?void 0:d.verbundenheit,t=null===e||void 0===e?void 0:e.zone,n=t?tae[t]||(null===e||void 0===e?void 0:e.status)||"":void 0;return(0,Te.jsx)(dae,{description:null!==(g=null===d||void 0===d||null===(x=d.texts)||void 0===x?void 0:x.verbundenheit)&&void 0!==g?g:aae,gauge:e,testid:"verbundenheit",gaugeFirst:!0,statusNode:n})}case"wissenswertes":return(0,Te.jsx)("div",{className:"text-sm text-muted-foreground [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2","data-testid":"wissenswertes-text",dangerouslySetInnerHTML:{__html:null!==(m=null===d||void 0===d||null===(p=d.texts)||void 0===p?void 0:p.wissenswertes)&&void 0!==m?m:rae}});default:return(0,Te.jsx)(by,{className:"p-8 text-center border-dashed","data-testid":"section-placeholder-".concat(n),children:(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:o("analysis.section.placeholder")})})}},F=C?C.branch_name||C.firma_name:"";return(0,Te.jsx)("div",{"data-testid":"analysis-page",children:p&&!d?(0,Te.jsx)(FS,{}):A?(0,Te.jsxs)("div",{"data-testid":"analysis-locked-view",children:[(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-30 bg-background pt-[30px] pb-4 mb-4",children:[(0,Te.jsxs)("button",{onClick:()=>n("/auswertungen"),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"analysis-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)(cy,{id:"care.back_to_results",as:"span",children:"Zur\xfcck zu den Ergebnissen"})]}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl truncate leading-tight","data-testid":"analysis-headline",children:F}),(0,Te.jsx)("p",{className:"text-sm font-semibold text-primary truncate","data-testid":"analysis-subline",children:(null===C||void 0===C?void 0:C.label)||o("analysis.survey_fallback")})]})]}),(0,Te.jsx)(Sae,{departments:null===d||void 0===d?void 0:d.departments,value:b,onChange:y}),(0,Te.jsxs)(by,{className:"p-5 flex items-center gap-3 mt-2","data-testid":"analysis-anon-inline",children:[(0,Te.jsx)(kw,{size:18,className:"text-amber-600 shrink-0"}),(0,Te.jsx)("span",{className:"text-sm text-muted-foreground",children:o("analysis.anon.locked_text").replace(/\{min\}/g,null!==(e=null===P||void 0===P?void 0:P.min)&&void 0!==e?e:"")})]})]}):(0,Te.jsxs)("div",{className:"flex gap-6 items-start",children:[(0,Te.jsxs)(by,{className:"".concat(S?"w-[64px]":"w-[300px]"," shrink-0 sticky top-[calc(72px_+_var(--ct-offset))] max-h-[calc(100vh_-_92px_-_var(--ct-offset))] overflow-y-auto p-3 transition-[width] duration-200"),"data-testid":"analysis-nav",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>_(e=>!e),"data-testid":"analysis-nav-collapse-toggle",title:o(S?"analysis.nav.expand":"analysis.nav.collapse"),className:"flex items-center ".concat(S?"justify-center":"justify-end"," w-full text-muted-foreground hover:text-primary transition-colors mb-2 p-1"),children:S?(0,Te.jsx)(K5,{size:18}):(0,Te.jsx)(G5,{size:18})}),iae.map(e=>{const t=0===e.items.length,n=t&&g===e.id,a=j===e.id,r=e.icon,i=S&&(t?g===e.id:e.items.some(e=>e.id===g));return(0,Te.jsxs)("div",{className:"mb-3 last:mb-0",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>(e=>{0!==e.items.length?(k(e.id),O(e.items[0].id)):O(e.id)})(e),"data-testid":"nav-group-".concat(e.id),title:S?e.label:void 0,style:i?{backgroundColor:"var(--gray-02)"}:void 0,className:"w-full flex items-center gap-2 text-left font-heading text-sm ".concat(S?"justify-center px-0":"px-2"," py-1.5 rounded-md cursor-pointer hover:bg-zinc-100 ").concat(n||a&&!t?"text-primary":"text-foreground"),children:[(0,Te.jsx)(r,{size:16,className:"shrink-0 ".concat(i?"text-white":"text-primary")}),!S&&(0,Te.jsx)("span",{className:"min-w-0",children:(0,Te.jsx)(cy,{id:"analysis.group.".concat(e.id),as:"span",children:e.label})}),!S&&!t&&(0,Te.jsx)(xw,{size:14,className:"ml-auto shrink-0 transition-transform ".concat(a?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:!S&&!t&&a&&(0,Te.jsx)(ff.ul,{initial:{height:0,opacity:0}
2,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"mt-1 space-y-0.5 border-l border-border ml-[7px] overflow-hidden",children:e.items.map(e=>(0,Te.jsx)("li",{children:(0,Te.jsx)("button",{type:"button",onClick:()=>O(e.id),"data-testid":"nav-item-".concat(e.id),className:"w-full flex items-center gap-2 text-left text-sm pl-3 pr-2 py-1.5 -ml-px border-l-2 transition-colors ".concat(g===e.id?"border-primary text-primary font-semibold":"border-transparent text-muted-foreground hover:text-foreground hover:border-zinc-300"),children:(0,Te.jsx)("span",{className:"min-w-0",children:(0,Te.jsx)(cy,{id:"analysis.item.".concat(e.id),as:"span",children:e.label})})})},e.id))})})]},e.id)})]}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-30 bg-background pt-[30px] pb-4 mb-6","data-testid":"analysis-header",children:[(0,Te.jsxs)("button",{onClick:()=>n("/auswertungen"),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"analysis-back",children:[(0,Te.jsx)(Rf,{size:16})," ",(0,Te.jsx)(cy,{id:"care.back_to_results",as:"span",children:"Zur\xfcck zu den Ergebnissen"})]}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl truncate leading-tight","data-testid":"analysis-headline",children:F}),(0,Te.jsx)("p",{className:"text-sm font-semibold text-primary truncate","data-testid":"analysis-subline",children:(null===C||void 0===C?void 0:C.label)||o("analysis.survey_fallback")})]})]}),(0,Te.jsxs)("div",{className:"space-y-10",children:["undefined"!==typeof window&&"1"===window.localStorage.getItem("persentis_ct")&&(0,Te.jsx)(F_,{testid:"care-blur-notice"}),iae.map(e=>{const t=0===e.items.length;return(0,Te.jsxs)(a.Fragment,{children:["gesamt"===e.id&&(0,Te.jsx)(Sae,{departments:null===d||void 0===d?void 0:d.departments,value:b,onChange:y}),(0,Te.jsx)("section",{ref:t?t=>z.current[e.id]=t:void 0,"data-section":t?e.id:void 0,"data-testid":"section-".concat(e.id),className:t?"scroll-mt-[calc(210px_+_var(--ct-offset))]":"",children:t?(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white p-6","data-testid":"card-".concat(e.id),children:[(0,Te.jsxs)("div",{className:"mb-5 pb-2 border-b border-border flex items-end justify-between gap-4 flex-wrap",children:[(0,Te.jsx)("h2",{className:"font-heading text-2xl leading-none",children:(0,Te.jsx)(cy,{id:"analysis.group.".concat(e.id),as:"span",children:e.label})}),"ueberblick"===e.id&&(0,Te.jsxs)("div",{className:"flex items-center gap-3 text-[10px] font-semibold","data-testid":"ueberblick-legend",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:"#FF0000"}})," ",(0,Te.jsx)(cy,{id:"analysis.legend.handlungsbedarf",as:"span",children:"Handlungsbedarf"})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:"#FFC000"}})," ",(0,Te.jsx)(cy,{id:"analysis.legend.moderat",as:"span",children:"Moderat"})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1",children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full shrink-0",style:{background:"#00B050"}})," ",(0,Te.jsx)(cy,{id:"analysis.legend.top",as:"span",children:"Top Performance"})]})]})]}),I(e.id,e.id)]}):(0,Te.jsx)("div",{className:"space-y-8",children:e.items.map(t=>(0,Te.jsx)("div",{ref:e=>z.current[t.id]=e,"data-section":t.id,"data-testid":"section-".concat(t.id),className:"scroll-mt-[calc(210px_+_var(--ct-offset))] rounded-xl border border-border bg-white p-5",children:I(e.id,t.id,t.label,o("analysis.group.".concat(e.id)))},t.id))})})]},e.id)})]})]})]})})}function zae(){const e=ln().token,t=sn(),n=Rs().loginWithToken,r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)(!0),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(""),2),h=p[0],f=p[1],g=Le((0,a.useState)(""),2),x=g[0],v=g[1],b=Le((0,a.useState)(""),2),y=b[0],w=b[1],j=Le((0,a.useState)(""),2),k=j[0],N=j[1],S=Le((0,a.useState)(!1),2),_=S[0],z=S[1];(0,a.useEffect)(()=>{Ps.get("/auth/invite/".concat(e)).then(e=>{s(e.data);
2const t=(e.data.name||"").trim().split(/\s+/).filter(Boolean);f(t[0]||""),v(t.slice(1).join(" "))}).catch(e=>m(Cs(e,"Einladung ung\xfcltig oder abgelaufen"))).finally(()=>c(!1))},[e]);return(0,Te.jsxs)("div",{className:"min-h-screen flex",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsx)("div",{className:"w-full max-w-sm","data-testid":"setpw-page",children:l?(0,Te.jsx)("p",{className:"mt-8 text-muted-foreground",children:"Einladung wird gepr\xfcft \u2026"}):i?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mt-8 text-sm brand-green font-medium",children:[(0,Te.jsx)(Ef,{size:18})," Einladung g\xfcltig"]}),(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal mt-3",children:"Passwort festlegen"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-1",children:["F\xfcr ",(0,Te.jsx)("strong",{children:i.email})]}),(0,Te.jsxs)("form",{onSubmit:async a=>{if(a.preventDefault(),h.trim()&&x.trim())if(y.length<8)m("Passwort muss mindestens 8 Zeichen haben.");else if(y===k){m(""),z(!0);try{const a=await Ps.post("/auth/set-password",{token:e,password:y,first_name:h.trim(),last_name:x.trim()});n(a.data.token,a.data.user),Ia.success("Konto aktiviert \u2013 willkommen!"),t("/dashboard")}catch(sse){m(Cs(sse))}finally{z(!1)}}else m("Die Passw\xf6rter stimmen nicht \xfcberein.");else m("Bitte geben Sie Vor- und Nachnamen an.")},className:"mt-8 space-y-4","data-testid":"setpw-form",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Vorname",children:(0,Te.jsx)(gy,{value:h,onChange:e=>f(e.target.value),required:!0,"data-testid":"setpw-firstname"})}),(0,Te.jsx)(wy,{label:"Nachname",children:(0,Te.jsx)(gy,{value:x,onChange:e=>v(e.target.value),required:!0,"data-testid":"setpw-lastname"})})]}),(0,Te.jsx)(wy,{label:"Neues Passwort",children:(0,Te.jsx)(gy,{type:"password",value:y,onChange:e=>w(e.target.value),required:!0,"data-testid":"setpw-password",autoComplete:"new-password"})}),(0,Te.jsx)(wy,{label:"Passwort best\xe4tigen",children:(0,Te.jsx)(gy,{type:"password",value:k,onChange:e=>N(e.target.value),required:!0,"data-testid":"setpw-password-confirm",autoComplete:"new-password"})}),u&&(0,Te.jsx)("p",{className:"text-sm text-destructive","data-testid":"setpw-error",children:u}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:_,"data-testid":"setpw-submit",children:_?"\u2026":"Konto aktivieren"})]})]}):(0,Te.jsxs)("div",{className:"mt-8",children:[(0,Te.jsx)("h1",{className:"font-heading text-2xl tracking-normal",children:"Einladung ung\xfcltig"}),(0,Te.jsx)("p",{className:"text-sm text-destructive mt-2","data-testid":"setpw-invalid",children:u}),(0,Te.jsx)(fy,{className:"mt-6",onClick:()=>t("/login"),"data-testid":"setpw-to-login",children:"Zur Anmeldung"})]})})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("/login-bg.png",")")}})]})}function Eae(){const e=Rs().startPublicDemo,t=sn(),n=Le((0,a.useState)(""),2),r=n[0],i=n[1],s=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{s.current||(s.current=!0,(async()=>{try{const n=(await Ps.post("/demo/start")).data;
2e(n.token,n.user,{label:n.label,firma_id:n.firma_id}),t("/welcome",{replace:!0})}catch(sse){i(Cs(sse,"Die Demo konnte nicht gestartet werden."))}})())},[]),(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-slate-950 text-white px-6","data-testid":"demo-start",children:(0,Te.jsxs)("div",{className:"w-full max-w-md text-center",children:[(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-full bg-amber-400/15 text-amber-300 px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.2em]",children:[(0,Te.jsx)(nS,{size:15})," Live-Demo"]}),(0,Te.jsx)("h1",{className:"font-heading text-3xl sm:text-4xl mt-6",children:"PERSENTIS Suite"}),r?(0,Te.jsxs)("div",{className:"mt-6","data-testid":"demo-error",children:[(0,Te.jsx)("p",{className:"text-red-300",children:r}),(0,Te.jsx)("button",{onClick:()=>window.location.reload(),"data-testid":"demo-retry-btn",className:"mt-6 inline-flex items-center gap-2 rounded-full bg-white text-slate-950 px-5 py-2.5 font-semibold hover:bg-slate-200 transition-colors",children:"Erneut versuchen"})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("p",{className:"text-slate-300 mt-3",children:["Wir richten Ihre pers\xf6nliche Demo-Umgebung der ",(0,Te.jsx)("strong",{className:"text-white",children:"Wallner GmbH"})," ein \u2026"]}),(0,Te.jsx)("div",{className:"mt-8 flex items-center justify-center text-amber-300","data-testid":"demo-loading",children:(0,Te.jsx)(Of,{size:30,className:"animate-spin"})})]})]})})}function Cae(){const e=Rs().startPublicDemo,t=Ws().enterCt,n=Xa().setLang,r=sn(),i=Le((0,a.useState)(""),2),s=i[0],o=i[1],l=(0,a.useRef)(!1);return(0,a.useEffect)(()=>{l.current||(l.current=!0,(async()=>{try{n(function(){try{const e=navigator.languages&&navigator.languages.length?navigator.languages:[navigator.language||""];for(const t of e){const e=String(t||"").toLowerCase().split("-")[0];if(Qa.includes(e))return e}}catch(e){}return"en"}());const a=(await Ps.post("/demo/start")).data;e(a.token,a.user,{label:a.label,firma_id:a.firma_id}),t(),r("/welcome",{replace:!0})}catch(sse){o(Cs(sse,"Die Tour konnte nicht gestartet werden."))}})())},[]),(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center bg-white px-6","data-testid":"guide-start",children:s?(0,Te.jsxs)("div",{className:"text-center","data-testid":"guide-error",children:[(0,Te.jsx)("p",{className:"text-red-600",children:s}),(0,Te.jsx)("button",{onClick:()=>window.location.reload(),"data-testid":"guide-retry-btn",className:"mt-6 inline-flex items-center gap-2 rounded-full bg-primary text-white px-5 py-2.5 font-semibold hover:opacity-90 transition-opacity",children:"Erneut versuchen"})]}):(0,Te.jsx)(lw,{width:250})})}function Pae(){const e=Rs(),t=e.login,n=e.user,r=sn(),i=Le((0,a.useState)(""),2),s=i[0],o=i[1],l=Le((0,a.useState)(""),2),c=l[0],d=l[1],u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1];if(n)return(0,Te.jsx)(En,{to:"superadmin"===n.role?"/admin":"/welcome",replace:!0});return(0,Te.jsxs)("div",{className:"min-h-screen flex","data-testid":"demo-login-page",children:[(0,Te.jsx)("div",{className:"flex-1 flex items-center justify-center p-6 bg-background",children:(0,Te.jsxs)("div",{className:"w-full max-w-sm",children:[(0,Te.jsx)("h1",{className:"font-heading text-3xl tracking-normal",children:"Demo-Anmeldung"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:"Melden Sie sich mit Ihren pers\xf6nlichen Demo-Zugangsdaten an."}),(0,Te.jsxs)("form",{onSubmit:async e=>{e.preventDefault(),p(""),g(!0);try{const e=await t(s,c);r("superadmin"===e.role?"/admin":"/welcome")}catch(sse){p(Cs(sse,"Anmeldung fehlgeschlagen"))}finally{g(!1)}},className:"mt-8 space-y-4","data-testid":"demo-login-form",children:[(0,Te.jsx)(wy,{label:"E-Mail-Adresse",children:(0,Te.jsx)(gy,{type:"email",value:s,onChange:e=>o(e.target.value),required:!0,"data-testid":"demo-login-email",autoComplete:"email"})}),(0,Te.jsx)(wy,{label:"Passwort",children:(0,Te.jsx)(gy,{type:"password",value:c,onChange:e=>d(e.target.value),required:!0,"data-testid":"demo-login-password",autoComplete:"current-password"})}),m&&(0,Te.jsx)("p",{className:"text-sm text-destructive","data-testid":"demo-login-error",children:m}),(0,Te.jsx)(fy,{type:"submit",className:"w-full",disabled:f,"data-testid":"demo-login-submit",children:f?"\u2026":"Anmelden"})]}),(0,Te.jsxs)("button",{onClick:()=>r("/login"),"data-testid":"demo-login-back",className:"mt-6 flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground transition-colors",children:[(0,Te.jsx)(aS,{size:15})," Zur\xfcck zur regul\xe4ren Anmeldung"]}),(0,Te.jsx)("div",{className:"mt-6",children:(0,Te.jsx)(XN,{})})]})}),(0,Te.jsx)("div",{className:"hidden lg:block flex-1 bg-cover bg-center",style:{backgroundImage:"url(".concat("/login-bg.png",")")}})]})}const Aae=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014";function Tae(e){let t=e.value;const n=Le((0,a.useState)(!1),2),r=n[0],i=n[1],s=Le((0,a.useState)(!1),2),o=s[0],l=s[1];return(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)("span",{className:"font-mono text-sm tabular-nums","data-testid":"demo-user-password",children:r?t:"\u2022".repeat(Math.min(16,(t||"").length||8))}),(0,Te.jsx)("button",{onClick:()=>i(e=>!e),"data-testid":"demo-user-password-toggle",className:"text-muted-foreground hover:text-primary transition-colors",title:r?"Verbergen":"Anzeigen",children:r?(0,Te.jsx)(h4,{size:15}):(0,Te.jsx)(tS,{size:15})}),(0,Te.jsx)("button",{onClick:async()=>{const e=t||"";if(e){try{if(!navigator.clipboard||!window.isSecureContext)throw new Error("clipboard-api-unavailable");await navigator.clipboard.writeText(e)}catch(rse){try{const t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="-9999px",document.body.appendChild(t),t.focu
2s(),t.select();const n=document.execCommand("copy");if(document.body.removeChild(t),!n)throw new Error("execCommand-failed")}catch(AI){return void Ia.error("Kopieren nicht m\xf6glich. Bitte Passwort manuell markieren und kopieren.")}}l(!0),i(!0),setTimeout(()=>l(!1),1500),Ia.success("Passwort kopiert.")}},"data-testid":"demo-user-password-copy",className:"text-muted-foreground hover:text-primary transition-colors",title:"Kopieren",children:o?(0,Te.jsx)(Cf,{size:15,className:"text-green-600"}):(0,Te.jsx)(cC,{size:15})})]})}function Rae(e){let t=e.u,n=e.onChanged;const r=Le((0,a.useState)(!1),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=async(e,a)=>{s(!0);try{await Ps.patch("/admin/demo-users/".concat(t.id),e),Ia.success(a),n()}catch(rse){Ia.error(Cs(rse))}s(!1)};return(0,Te.jsxs)("tr",{className:"border-t border-border","data-testid":"demo-user-row-".concat(t.id),children:[(0,Te.jsxs)("td",{className:"py-3 px-4",children:[(0,Te.jsx)("div",{className:"font-semibold","data-testid":"demo-user-name",children:t.name}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground","data-testid":"demo-user-email",children:t.email})]}),(0,Te.jsx)("td",{className:"py-3 px-4",children:l?(0,Te.jsxs)("div",{className:"inline-flex items-center gap-2",children:[(0,Te.jsx)("input",{value:u,onChange:e=>m(e.target.value),"data-testid":"demo-user-password-input",className:"h-8 px-2 rounded-md border border-border text-sm w-40",placeholder:"Neues Passwort"}),(0,Te.jsx)("button",{onClick:async()=>{u.trim().length<6?Ia.error("Passwort muss mindestens 6 Zeichen haben."):(await g({password:u.trim()},"Passwort ge\xe4ndert"),c(!1),m(""))},disabled:i,"data-testid":"demo-user-password-save",className:"text-primary hover:underline text-sm font-semibold",children:(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})}),(0,Te.jsx)("button",{onClick:()=>{c(!1),m("")},className:"text-muted-foreground text-sm",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})})]}):(0,Te.jsxs)("div",{className:"inline-flex items-center gap-3",children:[(0,Te.jsx)(Tae,{value:t.password}),(0,Te.jsxs)("button",{onClick:()=>c(!0),"data-testid":"demo-user-password-edit",className:"inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-primary transition-colors",children:[(0,Te.jsx)(f4,{size:13})," \xe4ndern"]})]})}),(0,Te.jsx)("td",{className:"py-3 px-4",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold px-2 py-1 rounded-full ".concat(t.active?"bg-green-100 text-green-700":"bg-zinc-200 text-zinc-600"),"data-testid":"demo-user-status",children:[(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full ".concat(t.active?"bg-green-600":"bg-zinc-500")}),t.active?"Aktiv":"Inaktiv"]})}),(0,Te.jsx)("td",{className:"py-3 px-4 text-sm text-muted-foreground","data-testid":"demo-user-lastactive",children:(x=t.last_active,x?new Date(x).toLocaleString("de-DE",{dateStyle:"short",timeStyle:"short"}):"\u2014")}),(0,Te.jsx)("td",{className:"py-3 px-4 text-sm text-muted-foreground",children:Aae(t.created_at)}),(0,Te.jsx)("td",{className:"py-3 px-4",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-1",children:[(0,Te.jsx)("button",{onClick:async()=>{s(!0);try{const e=(await Ps.post("/admin/demo-users/".concat(t.id,"/resend-invite"))).data;Ia.success("success"===e.email_status?"Einladung erneut versendet":"Einladung ausgel\xf6st (E-Mail nicht konfiguriert)")}catch(rse){Ia.error(Cs(rse))}s(!1)},disabled:i,title:"Einladung erneut senden","data-testid":"demo-user-resend-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md text-muted-foreground hover:bg-zinc-100 hover:text-primary transition-colors",children:(0,Te.jsx)(vS,{size:16})}),(0,Te.jsx)("button",{onClick:()=>g({active:!t.active},t.active?"Deaktiviert":"Aktiviert"),disabled:i,title:t.active?"Deaktivieren":"Aktivieren","data-testid":"demo-user-toggle-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md transition-colors ".concat(t.active?"text-amber-600 hover:bg-amber-50":"text-green-600 hover:bg-green-50"),children:(0,Te.jsx)(iE,{size:16})}),h?(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1",children:[(0,Te.jsx)("button",{onClick:async()=>{s(!0);try{await Ps.delete("/admin/demo-users/".concat(t.id)),Ia.success("Demo-Nutzer gel\xf6scht"),n()}catch(rse){Ia.error(Cs(rse)),s(!1)}},disabled:i,"data-testid":"demo-user-delete-confirm-".concat(t.id),className:"text-xs font-semibold text-white bg-destructive rounded-md px-2 py-1 hover:opacity-90",children:i?(0,Te.jsx)(Of,{size:13,className:"animate-spin"}):"L\xf6schen"}),(0,Te.jsx)("button",{onClick:()=>f(!1),className:"text-xs text-muted-foreground px-1",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})})]}):(0,Te.jsx)("button",{onClick:()=>f(!0),disabled:i,title:"L\xf6schen","data-testid":"demo-user-delete-".concat(t.id),className:"w-8 h-8 flex items-center justify-center rounded-md text-destructive hover:bg-red-50 transition-colors",children:(0,Te.jsx)(y_,{size:16})})]})})]});var x}function Oae(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(!1),2),h=p[0],f=p[1],g=(0,a.useCallback)(()=>{s(!0),Ps.get("/admin/demo-users").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>s(!1))},[]);(0,a.useEffect)(()=>{g()},[g]);return(0,Te.jsxs)("div",{"data-testid":"demo-users-page",children:[(0,Te.jsx)(ky,{title:"Demo",titleId:"demo_users.title",subt
2itle:"Demo-Zug\xe4nge verwalten \u2013 Personen per AutoMail einladen, Passw\xf6rter vergeben, Konten deaktivieren oder l\xf6schen.",subtitleId:"demo_users.subtitle"}),(0,Te.jsxs)(by,{className:"p-6 mb-6","data-testid":"demo-user-create-card",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 mb-4",children:[(0,Te.jsx)("span",{className:"w-9 h-9 rounded-md bg-primary/10 flex items-center justify-center text-primary",children:(0,Te.jsx)(nS,{size:18})}),(0,Te.jsx)("h2",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"demo_users.invite_heading",children:"Neuen Demo-Zugang einladen"})})]}),(0,Te.jsxs)("form",{onSubmit:async e=>{if(e.preventDefault(),l.trim()){f(!0);try{const e=(await Ps.post("/admin/demo-users",{email:l.trim(),name:u.trim()})).data;Ia.success("success"===e.email_status?"Demo-Nutzer angelegt & eingeladen":"Demo-Nutzer angelegt (E-Mail nicht konfiguriert)"),c(""),m(""),g()}catch(sse){Ia.error(Cs(sse))}f(!1)}},className:"flex flex-col sm:flex-row gap-3 sm:items-end","data-testid":"demo-user-create-form",children:[(0,Te.jsxs)("label",{className:"flex-1 block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"E-Mail-Adresse *"}),(0,Te.jsx)("input",{type:"email",required:!0,value:l,onChange:e=>c(e.target.value),"data-testid":"demo-user-create-email",className:"w-full h-10 px-3 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"[email protected]"})]}),(0,Te.jsxs)("label",{className:"flex-1 block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:(0,Te.jsx)(cy,{id:"common.name_optional",as:"span",children:"Name (optional)"})}),(0,Te.jsx)("input",{value:u,onChange:e=>m(e.target.value),"data-testid":"demo-user-create-name",className:"w-full h-10 px-3 rounded-md border border-border text-sm focus:outline-none focus:ring-2 focus:ring-primary/40",placeholder:"Vor- und Nachname"})]}),(0,Te.jsxs)(fy,{type:"submit",disabled:h,"data-testid":"demo-user-create-submit",children:[h?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(Pf,{size:15})," Einladen"]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-3",children:"Es wird automatisch ein 16-stelliges Passwort erzeugt und eine Einladungs-E-Mail mit dem Demo-Login-Link versendet. Jeder Demo-Zugang erh\xe4lt eine eigene, isolierte Beispiel-Umgebung."})]}),(0,Te.jsx)(by,{className:"p-0 overflow-hidden","data-testid":"demo-users-table-card",children:i?(0,Te.jsxs)("div",{className:"p-10 flex items-center justify-center gap-2 text-muted-foreground",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Wird geladen \u2026"]}):0===t.length?(0,Te.jsx)("div",{className:"p-10 text-center text-muted-foreground","data-testid":"demo-users-empty",children:(0,Te.jsx)(cy,{id:"admin.demo.empty",as:"span",children:"Noch keine Demo-Zug\xe4nge angelegt."})}):(0,Te.jsxs)("table",{className:"w-full text-left",children:[(0,Te.jsx)("thead",{children:(0,Te.jsxs)("tr",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground bg-[#FAFAFA]",children:[(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"common.col_person",as:"span",children:"Person"})}),(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"admin.demo.col_password",as:"span",children:"Passwort"})}),(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"common.col_status",as:"span",children:"Status"})}),(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"admin.demo.col_lastactive",as:"span",children:"Zuletzt aktiv"})}),(0,Te.jsx)("th",{className:"py-3 px-4",children:(0,Te.jsx)(cy,{id:"admin.demo.col_created",as:"span",children:"Erstellt"})}),(0,Te.jsx)("th",{className:"py-3 px-4 text-right",children:(0,Te.jsx)(cy,{id:"common.col_actions",as:"span",children:"Aktionen"})})]})}),(0,Te.jsx)("tbody",{children:t.map(e=>(0,Te.jsx)(Rae,{u:e,onChanged:g},e.id))})]})})]})}const Dae=kf("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]),Mae=kf("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),Iae=kf("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),Fae=kf("log-in",[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}
2],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]]),Lae=kf("power-off",[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);const Bae=e=>null==e||""===e?"\u2014":Number(e).toLocaleString("de-DE"),qae=e=>null==e?"#CBD5E1":e>=60?"#00B050":e>=40?"#FFC000":"#FF0000";const Uae=e=>{let t=e.icon,n=e.label,a=e.value,r=e.sub,i=e.testid;return(0,Te.jsxs)(by,{className:"p-5","data-testid":i,children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground text-xs font-bold uppercase tracking-wider",children:[(0,Te.jsx)(t,{size:15})," ",(0,Te.jsx)(jy,{text:n,prefix:"kpi"})]}),(0,Te.jsx)("div",{className:"font-heading text-3xl mt-2",children:a}),r&&(0,Te.jsx)("div",{className:"text-xs text-muted-foreground mt-1",children:r})]})};function Vae(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)(!1),2),l=o[0],c=o[1],u=Le((0,a.useState)(!1),2),m=u[0],p=u[1],h=Le((0,a.useState)(null),2),f=h[0],g=h[1],x=Le((0,a.useState)(""),2),v=x[0],b=x[1],y=Le((0,a.useState)(""),2),w=y[0],j=y[1],k=Le((0,a.useState)(!1),2),N=k[0],S=k[1],_=Le((0,a.useState)(null),2),z=(_[0],_[1],Le((0,a.useState)(null),2)),E=(z[0],z[1],Le((0,a.useState)(null),2)),C=(E[0],E[1],Le((0,a.useState)(null),2)),P=(C[0],C[1],Le((0,a.useState)("name"),2)),A=P[0],T=P[1],R=Le((0,a.useState)("asc"),2),O=R[0],D=R[1],M=Rs().startImpersonation,I={company:"",first_name:"",last_name:"",email:"",position:"",password:""},F=Le((0,a.useState)(!1),2),L=F[0],B=F[1],q=Le((0,a.useState)(I),2),U=q[0],V=q[1],H=Le((0,a.useState)(!1),2),W=H[0],K=H[1],G=Le((0,a.useState)(()=>new Set),2),Z=G[0],Y=G[1],Q=Le((0,a.useState)(!1),2),$=Q[0],X=Q[1],J=Le((0,a.useState)(!1),2),ee=J[0],te=J[1],ne=()=>Ps.get("/admin/overview").then(e=>n(e.data));(0,a.useEffect)(()=>{ne()},[]);const ae=(0,a.useRef)(null);(0,a.useEffect)(()=>{var e;t&&(null===(e=ae.current)||void 0===e||e.focus())},[t]);if(!t)return(0,Te.jsx)(FS,{});const re=t.kpis,ie=t.customers,se=(e,t)=>{if("name"===A){const n=(e.name||"").localeCompare(t.name||"","de");return"asc"===O?n:-n}const n=null==e[A]?-1/0:e[A],a=null==t[A]?-1/0:t[A];return"asc"===O?n-a:a-n},oe=v.trim().toLowerCase(),le=w.trim().toLowerCase(),ce=[...ie].filter(e=>!1!==e.active&&(e.name||"").toLowerCase().includes(oe)).sort(se),de=ie.filter(e=>!1===e.active),ue=[...de].filter(e=>(e.name||"").toLowerCase().includes(le)).sort(se),me=e=>{let t=e.label,n=e.field,a=e.align,r=void 0===a?"center":a;const i=A===n,s="right"===r?"text-right":"left"===r?"text-left":"text-center",o="right"===r?"justify-end":"left"===r?"justify-start":"justify-center";return(0,Te.jsx)("th",{className:"px-4 py-3 ".concat(s," cursor-pointer select-none hover:text-foreground transition-colors"),onClick:()=>(e=>{D(t=>A===e&&"asc"===t?"desc":"asc"),T(e)})(n),"data-testid":"sort-".concat(n),children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1 ".concat(o),children:[(0,Te.jsx)(jy,{text:t,prefix:"col"}),i?"asc"===O?(0,Te.jsx)(Dae,{size:16}):(0,Te.jsx)(Mae,{size:16}):(0,Te.jsx)(Iae,{size:16,className:"opacity-30"})]})})},pe=e=>{var t,n;return(0,Te.jsxs)("tr",{className:"border-t border-border hover:bg-zinc-50 ".concat(!1===e.active?"opacity-60":""),"data-testid":"customer-row-".concat(e.id),children:[(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsx)("input",{type:"checkbox",checked:Z.has(e.id),onChange:()=>(e=>Y(t=>{const n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n}))(e.id),"data-testid":"select-firma-".concat(e.id),className:"w-4 h-4 accent-primary cursor-pointer"})}),(0,Te.jsxs)("td",{className:"px-4 py-3 font-medium",children:[e.name,e.is_demo&&(0,Te.jsxs)("span",{"data-testid":"demo-badge-".concat(e.id),className:"ml-2 inline-flex items-center gap-1 text-[10px] font-semibold uppercase tracking-wider text-primary bg-primary/10 border border-primary/30 rounded px-1.5 py-0.5",children:[(0,Te.jsx)(nS,{size:11})," Demo"]}),!1===e.active&&(0,Te.jsx)("span",{className:"ml-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground border border-border rounded px-1.5 py-0.5",children:(0,Te.jsx)(cy,{id:"common.inactive",as:"span",children:"Inaktiv"})})]}),(0,Te.jsx)("td",{className:"px-4 py-3 text-center",children:Bae(e.filiale_count)}
2),(0,Te.jsx)("td",{className:"px-4 py-3 text-center",children:Bae(e.department_count)}),(0,Te.jsx)("td",{className:"px-4 py-3 text-center",children:Bae(e.mitarbeiter)}),(0,Te.jsxs)("td",{className:"px-4 py-3 text-center",children:[Bae(e.participation),"%"]}),(0,Te.jsx)("td",{className:"px-4 py-3 text-center",children:(0,Te.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:qae(e.avg_score)}}),null!==(t=e.avg_score)&&void 0!==t?t:"\u2014"]})}),(0,Te.jsx)("td",{className:"px-4 py-3 text-right font-medium",children:(n=e.revenue,"\u20ac "+(n||0).toLocaleString("de-DE"))}),(0,Te.jsx)("td",{className:"px-4 py-3",children:(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-1.5",children:[(0,Te.jsx)("button",{onClick:()=>(async e=>{if(e.target_user_id)try{const t=await Ps.post("/users/".concat(e.target_user_id,"/impersonate"));M(t.data.token,t.data.user,e.name,e.is_demo),window.location.href="/welcome"}catch(rse){Ia.error("Konto-Einstieg fehlgeschlagen.")}else Ia.error("F\xfcr diese Firma ist noch kein Konto vorhanden.")})(e),disabled:!e.target_user_id||!1===e.active,"data-testid":"enter-account-".concat(e.id),title:!1===e.active?"Firma ist deaktiviert":e.target_user_id?"In Konto einsteigen":"Kein Konto vorhanden",className:"inline-flex items-center justify-center w-8 h-8 rounded-md text-primary border border-primary/40 hover:bg-primary hover:text-white transition-colors disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent disabled:hover:text-primary",children:(0,Te.jsx)(Fae,{size:15})}),(0,Te.jsx)("button",{onClick:()=>(async e=>{g(e.id);try{await Ps.patch("/firmen/".concat(e.id,"/active"),{active:!e.active}),Ia.success(e.active?"\u201e".concat(e.name,'" deaktiviert.'):"\u201e".concat(e.name,'" aktiviert.')),await ne()}catch(rse){Ia.error("Aktion fehlgeschlagen.")}finally{g(null)}})(e),disabled:f===e.id,"data-testid":"toggle-active-".concat(e.id),title:!1===e.active?"Firma aktivieren":"Firma deaktivieren",className:"inline-flex items-center justify-center w-8 h-8 rounded-md text-muted-foreground border border-border hover:bg-zinc-100 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:!1===e.active?(0,Te.jsx)(iE,{size:15}):(0,Te.jsx)(Lae,{size:15})}),(0,Te.jsx)("button",{onClick:()=>s(e),disabled:f===e.id,"data-testid":"delete-firma-".concat(e.id),title:"Firma vollst\xe4ndig l\xf6schen",className:"inline-flex items-center justify-center w-8 h-8 rounded-md text-destructive border border-red-200 hover:bg-red-50 transition-colors disabled:opacity-40 disabled:cursor-not-allowed",children:(0,Te.jsx)(y_,{size:15})})]})})]},e.id)},he=(e,t)=>(0,Te.jsx)("div",{className:"overflow-x-auto",children:(0,Te.jsxs)("table",{className:"w-full text-sm",children:[(0,Te.jsx)("thead",{className:"bg-zinc-50 text-left text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsxs)("tr",{children:[(0,Te.jsx)("th",{className:"px-4 py-3 w-10",children:(0,Te.jsx)("input",{type:"checkbox",onChange:()=>(e=>Y(t=>{const n=new Set(t),a=e.map(e=>e.id),r=a.length>0&&a.every(e=>n.has(e));return r?a.forEach(e=>n.delete(e)):a.forEach(e=>n.add(e)),n}))(e),checked:e.length>0&&e.every(e=>Z.has(e.id)),"data-testid":"".concat(t,"-select-all"),className:"w-4 h-4 accent-primary cursor-pointer"})}),(0,Te.jsx)(me,{label:"Firma",field:"name",align:"left"}),(0,Te.jsx)(me,{label:"Filialen",field:"filiale_count"}),(0,Te.jsx)(me,{label:"Abteilungen",field:"department_count"}),(0,Te.jsx)(me,{label:"Mitarbeiter",field:"mitarbeiter"}),(0,Te.jsx)(me,{label:"Beteiligung",field:"participation"}),(0,Te.jsx)(me,{label:"\xd8 Score",field:"avg_score"}),(0,Te.jsx)(me,{label:"Umsatz",field:"revenue",align:"right"}),(0,Te.jsx)("th",{className:"px-4 py-3 text-right",children:(0,Te.jsx)(cy,{id:"admin.customers.col_action",as:"span",children:"Aktion"})})]})}),(0,Te.jsxs)("tbody",{"data-testid":t,children:[0===e.length&&(0,Te.jsx)("tr",{children:(0,Te.jsx)("td",{colSpan:9,className:"px-4 py-8 text-center text-muted-foreground","data-testid":"".concat(t,"-empty"),children:(0,Te.jsx)(cy,{id:"admin.customers.empty",as:"span",children:"Keine Firma gefunden."})})}),e.map(pe)]})]})});return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"PERSENTIS Admin",titleId:"admin.title",subt
2itle:"Kunden\xfcbersicht & wichtige Kennzahlen",subtitleId:"admin.subtitle"}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[(0,Te.jsx)(Uae,{icon:Sf,label:"Firmen",value:Bae(re.firmen_count),sub:"aktive Kunden",testid:"kpi-firmen"}),(0,Te.jsx)(Uae,{icon:jw,label:"\xd8 Beteiligung",value:"".concat(Bae(re.avg_participation),"%"),sub:"\xfcber alle Firmen",testid:"kpi-participation"}),(0,Te.jsx)(Uae,{icon:ZS,label:"Umfragen durchgef\xfchrt",value:Bae(re.surveys_conducted),sub:"mit Antworten",testid:"kpi-surveys"}),(0,Te.jsx)(Uae,{icon:YS,label:"Offene Antworten",value:Bae(re.open_answers_total),sub:"Freitext gesamt",testid:"kpi-open-answers"})]}),(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"customers-card",children:[(0,Te.jsxs)("div",{className:"px-5 py-4 border-b border-border flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg",children:[(0,Te.jsx)(cy,{id:"admin.customers_heading",children:"Kundenliste"})," ",(0,Te.jsxs)("span",{className:"text-sm text-muted-foreground font-normal",children:["(",ce.length,")"]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[Z.size>0&&(0,Te.jsxs)("button",{onClick:()=>X(!0),"data-testid":"bulk-delete-btn",title:"Ausgew\xe4hlte Firmen vollst\xe4ndig l\xf6schen",className:"inline-flex items-center gap-1.5 shrink-0 h-9 px-3 rounded-lg text-sm font-semibold text-white bg-destructive hover:bg-red-700 transition-colors",children:[(0,Te.jsx)(y_,{size:15})," Ausgew\xe4hlte l\xf6schen (",Z.size,")"]}),(0,Te.jsxs)("button",{onClick:()=>B(!0),"data-testid":"new-customer-btn",title:"Neuen Kunden anlegen",className:"inline-flex items-center gap-1.5 shrink-0 h-9 px-3 rounded-lg text-sm font-semibold text-white bg-primary hover:bg-primary/90 transition-colors",children:[(0,Te.jsx)(aE,{size:15})," Neuer Kunde"]}),ie.some(e=>e.is_demo)&&(0,Te.jsxs)("button",{onClick:()=>c(!0),"data-testid":"demo-reset-btn",title:"Demo-Firma auf Auslieferungszustand zur\xfccksetzen",className:"inline-flex items-center gap-1.5 shrink-0 h-9 px-3 rounded-lg text-sm font-semibold text-primary border border-primary/40 hover:bg-primary hover:text-white transition-colors",children:[(0,Te.jsx)(Ff,{size:15})," Demo zur\xfccksetzen"]}),(0,Te.jsxs)("div",{className:"relative w-full sm:w-72",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)("input",{ref:ae,value:v,onChange:e=>b(e.target.value),placeholder:"Firma suchen \u2026","data-testid":"customer-search",className:"w-full pl-9 pr-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]})]})]}),he(ce,"customers-table")]}),(0,Te.jsxs)(by,{className:"p-0 overflow-hidden mt-6","data-testid":"customers-inactive-card",children:[(0,Te.jsxs)("div",{className:"px-5 py-4 border-b border-border flex flex-col sm:flex-row sm:items-center sm:justify-between gap-3",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>S(e=>!e),"aria-expanded":N,"data-testid":"customers-inactive-toggle",className:"flex items-center gap-2 text-left hover:opacity-80 transition-opacity",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg",children:["Kunden Inaktiv ",(0,Te.jsxs)("span",{className:"text-sm text-muted-foreground font-normal","data-testid":"customers-inactive-count",children:["(",de.length,")"]})]}),N?(0,Te.jsx)(_E,{size:18,className:"text-muted-foreground shrink-0"}):(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground shrink-0"})]}),N&&(0,Te.jsxs)("div",{className:"relative w-full sm:w-72",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)("input",{value:w,onChange:e=>j(e.target.value),placeholder:"Firma suchen \u2026","data-testid":"customer-inactive-search",className:"w-full pl-9 pr-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]})]}),(0,Te.jsx)(NE,{open:N,children:he(ue,"customers-inactive-table")})]}),(0,Te.jsx)(ey,{open:!!i,onOpenChange:e=>!e&&s(null),children:(0,Te.jsxs)(ay,{"data-testid":"delete-firma-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2 text-destructive",children:[(0,Te.jsx)(k_,{size:18})," Firma vollst\xe4ndig l\xf6schen?"]}),(0,Te.jsxs)(oy,{children:["\u201e",null===i||void 0===i?void 0:i.name,'" wird ',(0,Te.jsx)("strong",{children:"unwiderruflich"})," gel\xf6scht \u2013 inklusive aller Filialen, Abteilungen, Nutzer, Umfragen und Antworten. Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."]})]}),(0,Te.jsxs)(iy,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>s(null),"data-testid":"delete-firma-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{const e=i;if(e){g(e.id);try{await Ps.delete("/firmen/".concat(e.id)),Ia.success("\u201e".concat(e.name,'" wurde vollst\xe4ndig gel\xf6scht.')),s(null),await ne()}catch(rse){Ia.error("L\xf6schen fehlgeschlagen.")}finally{g(null)}}},disabled:f===(null===i||void 0===i?void 0:i.id),className:"!bg-destructive hover:!bg-red-700","data-testid":"delete-firma-confirm",children:"Endg\xfcltig l\xf6schen"})]})]})}),(0,Te.jsx)(ey,{open:$,onOpenChange:e=>!e&&X(!1),children:(0,Te.jsxs)(ay,{"data-testid":"bulk-delete-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2 text-destructive",children:[(0,Te.jsx)(k_,{size:18})," ",Z.size," Firma(en) vollst\xe4ndig l\xf6schen?"]}),(0,Te.jsxs)(oy,{children:["Alle ausgew\xe4hlten Firmen werden ",(0,Te.jsx)("strong",{children:"unwiderruflich"})," gel\xf6scht \u2013 inklusive aller Filialen, Abteilungen, Nutzer, Umfragen, Antworten und ",(0,Te.jsx)("strong",{children:"Vertr\xe4ge"}),". Dieser Vorgang kann nicht r\xfcckg\xe4ngig gemacht werden."]})]}),(0,Te.jsxs)(iy,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>X(!1),"data-testid":"bulk-delete-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{te(!0);try{var e;const t=await Ps.post("/firmen/bulk-delete",{ids:Array.from(Z)});Ia.success("".concat(null===(e=t.data)||void 0===e?void 0:e.deleted_count," Firma(en) vollst\xe4ndig gel\xf6scht.")),X(!1),Y(new Set),await ne()}catch(rse){Ia.error("Mehrfachl\xf6schen fehlgeschlagen.")}finally{te(!1)}},disabled:ee,className:"!bg-destructive hover:!bg-red-700","data-testid":"bulk-delete-confirm",children:ee?"L\xf6sche \u2026":"".concat(Z.size," l\xf6schen")})]})]})}),(0,Te.jsx)(ey,{open:l,onOpenChange:e=>!e&&c(!1),children:(0,Te.jsxs)(ay,{"data-testid":"demo-reset-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2 text-primary",children:[(0,Te.jsx)(Ff,{size:18})," Demo-Firma zur\xfccksetzen?"]}),(0,Te.jsxs)(oy,{children:["Die Demo-Firma ",(0,Te.jsx)("strong",{children:"Alpengl\xfcck B\xe4ckerei GmbH"})," wird vollst\xe4ndig auf den Auslieferungszustand zur\xfcckgesetzt. Alle in der Demo vorgenommenen \xc4nderungen (Filialen, Abteilungen, Nutzer, Umfragen, Antworten) gehen dabei verloren und werden durch die urspr\xfcnglichen Demo-Daten ersetzt. Andere Firmen sind nicht betroffen."]})]}),(0,Te.jsxs)(iy,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>c(!1),"data-testid":"demo-reset-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>{p(!0);try{var e;const n=await Ps.post("/admin/demo/reset");var t;if(null!==(e=n.data)&&void 0!==e&&e.ok)Ia.success("Demo-Firma wurde auf den Auslieferungszustand zur\xfcckgesetzt.");else Ia.error((null===(t=n.data)||void 0===t?void 0:t.detail)||"Zur\xfccksetzen fehlgeschlagen.");c(!1),await ne()}catch(rse){Ia.error("Zur\xfccksetzen fehlgeschlagen.")}finally{p(!1)}},disabled:m,"data-testid":"demo-reset-confirm",children:m?"Wird zur\xfcckgesetzt \u2026":"Zur\xfccksetzen"})]})]})}),(0,Te.jsx)(ey,{open:L,onOpenChange:e=>{e||(B(!1),V(I))},children:(0,Te.jsxs)(ay,{"data-testid":"new-customer-dialog",children:[(0,Te.jsxs)(ry,{children:[(0,Te.jsxs)(sy,{className:"flex items-center gap-2 text-primary",children:[(0,Te.jsx)(aE,{size:18})," Neuen Kunden anlegen"]}),(0,Te.jsx)(oy,{children:"Legen Sie eine neue Firma inkl. sofort aktivem Admin-Zugang an. Produkte werden sp\xe4ter zugewiesen."})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold",children:"Firmenname"}),(0,Te.jsx)("input",{value:U.company,onChange:e=>V(t=>d(d({},t),{},{company:e.target.value})),"data-testid":"new-customer-company",placeholder:"z. B. Musterhotel GmbH",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold",children:"Vorname"}),(0,Te.jsx)("input",{value:U.first_name,onChange:e=>V(t=>d(d({},t),{},{first_name:e.target.value})),"data-testid":"new-customer-firstname",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold",children:"Nachname"}),(0,Te.jsx)("input",{value:U.last_name,onChange:e=>V(t=>d(d({},t),{},{last_name:e.target.value})),"data-testid":"new-customer-lastname",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold",children:"E-Mail"}),(0,Te.jsx)("input",{type:"email",value:U.email,onChange:e=>V(t=>d(d({},t),{},{email:e.target.value})),"data-testid":"new-customer-email",placeholder:"[email protected]",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"text-sm font-semibold",children:["Position ",(0,Te.jsx)("span",{className:"text-muted-foreground font-normal",children:"(optional)"})]}),(0,Te.jsx)("input",{value:U.position,onChange:e=>V(t=>d(d({},t),{},{position:e.target.value})),"data-testid":"new-customer-position",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold",children:"Startpasswort"}),(0,Te.jsx)("input",{type:"text",value:U.password,onChange:e=>V(t=>d(d({},t),{},{password:e.target.value})),"data-testid":"new-customer-password",placeholder:"mind. 8 Zeichen",className:"mt-1 w-full px-3 py-2 text-sm rounded-lg border border-border focus:outline-none focus:ring-2 focus:ring-primary/30 focus:border-primary"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1",children:"Der Kunde kann sich sofort mit E-Mail und diesem Passwort anmelden."})]})]}),(0,Te.jsxs)(iy,{children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>{B(!1),V(I)},"data-testid":"new-customer-cancel",children:(0,Te.jsx)(cy,{id:"common.cancel",as:"span",children:"Abbrechen"})}),(0,Te.jsx)(fy,{variant:"primary",onClick:async()=>
2{if(U.company.trim()&&U.first_name.trim()&&U.last_name.trim()&&U.email.trim())if((U.password||"").length<8)Ia.error("Passwort muss mindestens 8 Zeichen haben.");else{K(!0);try{const e=await Ps.post("/admin/customers",U);Ia.success("Kunde \u201e".concat(e.data.name,'" wurde angelegt.')),B(!1),V(I),ne()}catch(rse){Ia.error(Cs(rse))}finally{K(!1)}}else Ia.error("Bitte Firmenname, Vor-/Nachname und E-Mail ausf\xfcllen.")},disabled:W,"data-testid":"new-customer-submit",children:W?(0,Te.jsxs)("span",{className:"flex items-center gap-2",children:[(0,Te.jsx)(Of,{size:15,className:"animate-spin"})," Wird angelegt \u2026"]}):"Kunde anlegen"})]})]})})]})}const Hae=kf("clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),Wae=[{title:"Allgemeines",icon:dS,items:[{key:"registration_confirm",label:"Registrierung best\xe4tigen"},{key:"invitation",label:"Einladung"},{key:"password_reset",label:"Passwort zur\xfccksetzen"},{key:"account_activated",label:"Konto aktiviert"},{key:"account_deactivated",label:"Konto deaktiviert"},{key:"ownership_transferred_new",label:"Eigent\xfcmer \u2013 neuer Eigent\xfcmer"},{key:"ownership_transferred_old",label:"Eigent\xfcmer \u2013 bisheriger Eigent\xfcmer"},{key:"crm_onboarding",label:"Onboarding / Willkommen"}]},{title:"Produkt",icon:ZS,items:[{key:"care_survey_started",label:"CARE Einladung senden"},{key:"analytics_survey_started",label:"ANALYTICS Einladung senden"},{key:"pulse_survey_started",label:"PULSE Einladung senden"},{key:"invitation_reminder",label:"Einladung Reminder"},{key:"first_response",label:"Erste Antwort eingegangen"},{key:"survey_reminder",label:"Erinnerung 1"},{key:"survey_reminder2",label:"Erinnerung 2"},{key:"survey_final_reminder",label:"Letzte Erinnerung"},{key:"survey_extended",label:"Umfrage verl\xe4ngert"},{key:"survey_daily",label:"Tagesreport"},{key:"survey_completed",label:"Abschluss-Report"},{key:"pulse_wave_due",label:"Pulse: n\xe4chste wiederkehrende Umfrage steht an"},{key:"survey_close_loop",label:"Close-the-Loop"},{key:"survey_results_unseen",label:"Ergebnisse nicht angesehen"}]},{title:"Onboarding Pulse",icon:Nw,items:[{key:"pulse_light_welcome",label:"Willkommen (Light)"},{key:"pulse_light_monthly_available",label:"Monatliche Erinnerung"},{key:"pulse_light_results_ready",label:"Ergebnisse verf\xfcgbar"},{key:"pulse_light_archive_warning",label:"Archiv-Warnung (7 Tage vorher)"},{key:"pulse_light_archived",label:"Ausgeblendet (7 Tage danach)"}]},{title:"Aktivierung & Bindung",icon:Nw,items:[{key:"reactivation",label:"Reaktivierung"},{key:"account_inactive",label:"Konto-Inaktivit\xe4t"},{key:"low_participation",label:"Niedrige Teilnahme"}]},{title:"After-Sale / CRM",icon:vS,items:[{key:"crm_interpret",label:"Ergebnisse verstehen"},{key:"crm_best_practice",label:"Best-Practice-Tipps"},{key:"crm_benchmark",label:"Benchmark & News"}]},{title:"Plan & Rechnung (Stripe)",icon:zf,items:[{key:"crm_cross_sell",label:"Cross-Sell"},{key:"crm_renewal",label:"Verl\xe4ngerung / Rechnung"},{key:"crm_renewal_2",label:"Verl\xe4ngerung 2"},{key:"crm_renewal_3",label:"Verl\xe4ngerung 3"},{key:"crm_nps",label:"Zufriedenheit / NPS"}]},{title:"Verwaltung",icon:dS,subgroups:[{title:"SubAdmin",items:[{key:"subadmin_invitation",label:"Admin-Einladung"},{key:"subadmin_revoked",label:"Admin-Zugang beendet"}]},{title:"Demo",items:[{key:"demo_invitation",label:"Demo-Einladung"},{key:"demo_revoked",label:"Demo beendet"}]}]},{title:"Abrechnung",icon:zf,subgroups:[{title:"Rechnungen",items:[{key:"billing_invoice",label:"Rechnung \u2013 Versand"},{key:"billing_dunning_1",label:"1. Mahnung"},{key:"billing_dunning_2",label:"2. Mahnung"},{key:"billing_dunning_3",label:"3. Mahnung & Sperre"}]},{title:"Angebot",items:[{key:"offer_main",label:"Angebot \u2013 Versand"},{key:"offer_reminder_1",label:"Reminder 1 \u2013 Schon gesehen"},{key:"offer_reminder_2",label:"Reminder 2 \u2013 Vorteile"},{key:"offer_reminder_3",label:"Reminder 3 \u2013 Kennenlernrabatt"}]}]}],Kae=e=>e.items||(e.subgroups||[]).flatMap(e=>e.items),Gae=e=>(e||"").replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase()),Zae=Wae.flatMap(Kae),Yae=e=>{var t;return(null===(t=Zae.find(t=>t.key===e))||void 0===t?void 0:t.label)||Gae(e)},Qae=e=>(e||"").replace(/[^a-zA-Z]+/g,"-").replace(/^-+|-+$/g,"").toLowerCase(),$ae=["{vorname}","{nachname}","{name}","{firma}","{filiale}","{produkt}","{titel}","{enddatum}","{teilnehmer}","{quote}","{teilnahme}","{rabatt}","{mitarbeiter}","{betrag}","{angebotsnummer}","{rabatt_code}","{rabatt_pct}","{laufzeit}","{tage_offen}","{abteilung}","{vortag_delta_abs}","{vortag_delta_rel}","{abteilung_gesamt_abs}","{abteilung_gesamt_rel}","{gesamtbeteiligung}","{ampel_farbe}","{einladender}","{neuer_eigentuemer}","{bisheriger_eigentuemer}","{email}","{passwort}","{link}","{link_fragebogen}","{link_umfrage}","{rechnungsnummer}","{rechnungsdatum}","{zahlungslink}","{billing_hinweis}","{offener_betrag}","{vertragserneuerung}"],Xae=["#2a2a2a","#75A33D","#1F2A44","#C0392B","#2980B9","#E67E22"],Jae={subject:"",greeting:"",body:"",button_text:"",button_url:""};function ere(e){let t=e.id,n=e.children;const a=Zte({id:t}),r=a.attributes,i=a.listeners,s=a.setNodeRef,o=a.transform,l=a.transition,c=a.isDragging;return n({setNodeRef:s,style:{transform:L9.Transform.toString(o),transition:l,opacity:c?.5:1},handleProps:d(d({},r),i)})}function tre(e){let t=e.it,n=e.active,a=e.drift,r=e.needsApproval,i=e.onSelect,s=e.label;const o=Zte({id:t.key}),l=o.attributes,c=o.listeners,u=o.setNodeRef,m=o.transform,p=o.transition,h=o.isDragging,f={transform:L9.Transform.toString(m),transition:p,opacity:h?.5:1};return(0,Te.jsxs)("div",{ref:u,style:f,className:"flex items-center gap-0.5","data-testid":"mail-row-".concat(t.key),children:[(0,Te.jsx)("button",d(d(d({type:"button"},l),c),{}
2,{tabIndex:-1,className:"cursor-grab active:cursor-grabbing text-muted-foreground/40 hover:text-muted-foreground px-0.5 touch-none","data-testid":"mail-drag-".concat(t.key),title:"Ziehen zum Sortieren","aria-label":"Zum Sortieren ziehen",children:(0,Te.jsx)(g9,{size:14})})),(0,Te.jsxs)("button",{type:"button",onClick:()=>i(t.key),"data-testid":"mailtype-".concat(t.key),className:"flex-1 flex items-center justify-between gap-2 px-2.5 py-2 rounded-md text-sm font-medium transition-colors ".concat(n?"bg-accent text-primary":"text-foreground hover:bg-zinc-100"),children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1.5",children:[s,r&&(0,Te.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-amber-700 bg-amber-100 border border-amber-200 rounded px-1 py-px","data-testid":"mail-needs-approval-".concat(t.key),children:"neu"})]}),a&&(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full bg-red-500 shrink-0","data-testid":"mail-drift-".concat(t.key),title:"Abweichung zum Prozess"})]})]})}const nre={pulse_light_welcome:{description:"Begr\xfc\xdft neu registrierte Kund:innen in der kostenlosen Stufe PULSE Light und erkl\xe4rt die Grenzen (1 Umfrage/Monat f\xfcr die Zentrale, 1 Frage, Ergebnisse 3 Monate sichtbar). Ruft zur ersten Umfrage auf.",recipient:"Kontoeigent\xfcmer/Admin einer neu registrierten Firma ohne kostenpflichtigen Pulse-Vertrag",trigger:"Neuregistrierung / Aktivierung von PULSE Light (Anker: Onboarding-Zeitpunkt)",timing:"Einmalig, kurz nach der Registrierung"},pulse_light_monthly_available:{description:"Erinnert daran, dass die kostenlose PULSE-Light-Umfrage f\xfcr den aktuellen Monat bereitsteht \u2013 nur, wenn das Monatskontingent noch nicht genutzt wurde.",recipient:"Admin einer PULSE-Light-Firma",trigger:"Monatsbeginn, wenn das kostenlose Kontingent noch frei ist",timing:"Erste 3 Monate monatlich, danach 6 Monate alle 2 Monate, anschlie\xdfend quartalsweise"},pulse_light_results_ready:{description:"Informiert, dass eine abgeschlossene PULSE-Light-Umfrage gen\xfcgend Antworten f\xfcr die anonyme Auswertung hat, und verlinkt direkt zu den Ergebnissen.",recipient:"Admin/Ersteller der PULSE-Light-Umfrage",trigger:"Umfrage beendet und Mindest-Teilnehmerzahl (Anonymit\xe4t) erreicht",timing:"Innerhalb weniger Tage nach Umfrage-Ende (einmalig je Umfrage)"},pulse_light_archive_warning:{description:"Weist 7 Tage vor dem Ausblenden der Ergebnisse (Ende der 3-Monats-Sichtbarkeit) auf das bevorstehende Ausblenden hin und empfiehlt ein Upgrade mit direktem Link.",recipient:"Admin/Ersteller der PULSE-Light-Umfrage",trigger:"7 Tage vor Ablauf der 3-monatigen Ergebnis-Sichtbarkeit",timing:"T-7 vor dem Ausblenden (einmalig je Umfrage)"},pulse_light_archived:{description:"Meldet, dass die Ergebnisse nach 3 Monaten ausgeblendet (unscharf) wurden, und bietet ein Upgrade zur sofortigen Freischaltung an. Daten bleiben erhalten.",recipient:"Admin/Ersteller der PULSE-Light-Umfrage",trigger:"7 Tage nach dem Ausblenden der Ergebnisse",timing:"T+7 nach dem Ausblenden (einmalig je Umfrage)"},registration_confirm:{description:"Best\xe4tigt eine Selbst-Registrierung und fordert zur Verifizierung der E-Mail-Adresse auf, um das neue Firmen-Konto zu aktivieren.",recipient:"Personen, die sich selbst \xfcber die Startseite registriert haben",trigger:"Absenden des Registrierungsformulars auf der Startseite",timing:"Sofort nach der Registrierung (Link 3 Tage g\xfcltig)"},invitation:{description:"L\xe4dt eine Person als Nutzer auf die PERSENTIS Suite ein und fordert zur Vergabe eines Passworts auf.",recipient:"Neu eingeladene Nutzer (Admin, F\xfchrungskraft)",trigger:"Manuell durch einen Administrator in der Nutzerverwaltung",timing:"Sofort nach dem Versenden der Einladung"},password_reset:{description:"Enth\xe4lt einen sicheren Link zum Zur\xfccksetzen des Passworts.",recipient:"Nutzer, die ein Zur\xfccksetzen angefordert haben",trigger:"Klick auf \u201ePasswort vergessen\u201c auf der Login-Seite",timing:"Sofort nach der Anforderung (Link 60 Min. g\xfcltig)"},account_activated:{description:"Best\xe4tigt die erfolgreiche Aktivierung des Kontos nach der Passwortvergabe.",recipient:"Nutzer, die ihr Passwort erfolgreich gesetzt haben",trigger:"Erfolgreiche Passwortvergabe \xfcber den Einladungslink",timing:"Sofort nac
2h der Konto-Aktivierung"},account_deactivated:{description:"Informiert eine Person dar\xfcber, dass ihr Zugang zur PERSENTIS Suite deaktiviert wurde.",recipient:"Nutzer, deren Konto deaktiviert wurde",trigger:"Deaktivierung eines Nutzers in der Nutzerverwaltung",timing:"Sofort nach der Deaktivierung des Kontos"},ownership_transferred:{description:"Informiert alten und neuen Kontoeigent\xfcmer \xfcber die \xdcbertragung der Kontoeigent\xfcmerschaft.",recipient:"Bisheriger und neuer Kontoeigent\xfcmer",trigger:"\xdcbertragung der Eigent\xfcmerschaft in der Nutzerverwaltung",timing:"Sofort nach erfolgreicher \xdcbertragung"},ownership_transferred_new:{description:"Begr\xfc\xdft den neuen Kontoeigent\xfcmer und best\xe4tigt die vollen administrativen Rechte. Nennt, wer die Eigent\xfcmerschaft \xfcbergeben hat ({bisheriger_eigentuemer}).",recipient:"Neuer Kontoeigent\xfcmer",trigger:"\xdcbertragung der Eigent\xfcmerschaft in der Nutzerverwaltung",timing:"Sofort nach erfolgreicher \xdcbertragung"},ownership_transferred_old:{description:"Informiert den bisherigen Eigent\xfcmer, dass er seine Admin-Rechte abgegeben hat und als Nutzer (F\xfchrungskraft) erhalten bleibt. Nennt den neuen Eigent\xfcmer ({neuer_eigentuemer}).",recipient:"Bisheriger Kontoeigent\xfcmer",trigger:"\xdcbertragung der Eigent\xfcmerschaft in der Nutzerverwaltung",timing:"Sofort nach erfolgreicher \xdcbertragung"},survey_started:{description:"Informiert den Einladender, dass die Umfrage gestartet wurde, und liefert einen weiterleitbaren Textbaustein inkl. anonymem Teilnahme-Link zur internen Verteilung an die Mitarbeitenden.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Start bzw. Aktivierung der Umfrage (Status wechselt auf AKTIV)",timing:"Sofort beim Start der Umfrage"},first_response:{description:"Benachrichtigt den Einladender, sobald die erste g\xfcltige Antwort eingegangen ist \u2013 als positives Signal, dass die Umfrage l\xe4uft, mit Impuls zur weiteren internen Aktivierung.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Eingang der ersten g\xfcltigen Antwort",timing:"Sofort bei der 1. g\xfcltigen Antwort (einmalig)"},invitation_reminder:{description:"Erinnert den Einladender, dass die Umfrage zwar aktiv ist, aber noch KEINE Antworten eingegangen sind. Nennt m\xf6gliche Ursachen (Einladung noch nicht versendet, Abteilungsleiter/Teams noch nicht informiert) und ruft zur Verteilung des Teilnahme-Links/QR-PDFs auf.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Umfrage aktiv, aber 0 Antworten \u2013 wiederkehrend alle 3 Tage bis zur 1. Antwort",timing:"Alle 3 Tage nach dem Start, bis die erste Antwort eingeht"},survey_reminder:{description:"Erinnert den Einladender an die noch laufende Umfrage und liefert einen weiterleitbaren Textbaustein inkl. anonymem Teilnahme-Link zur internen Verteilung an die Mitarbeitenden.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Zeitgesteuert w\xe4hrend des laufenden Umfragezeitraums",timing:"Einige Tage vor Ende der Umfrage"},survey_extended:{description:"Informiert den Einladender \xfcber die Verl\xe4ngerung des Teilnahmezeitraums und liefert einen weiterleitbaren Textbaustein inkl. anonymem Teilnahme-Link.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Verl\xe4ngerung einer laufenden Umfrage",timing:"Sofort nach der Verl\xe4ngerung der Umfrage"},survey_completed:{description:"Stellt dem Einladender den Abschluss-Report mit den Umfrageergebnissen bereit.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Abschluss der Umfrage (Status wechselt auf ABGESCHLOSSEN)",timing:"Sofort nach Abschluss der Umfrage"},pulse_wave_due:{description:"Benachrichtigt den Ersteller einer wiederkehrenden PERSENTIS Pulse Umfrage, dass die n\xe4chste Wiederholung f\xe4llig ist. Fordert dazu auf, den Verteiler zu informieren und den anonymen Teilnahme-Link weiterzugeben. Enth\xe4lt einen Direkt-Button zur aktuellen Wiederholung.",recipient:"Ersteller des Stimmungsbarometers",trigger:"F\xe4lligkeit der n\xe4chsten wiederkehrenden Umfrage gem\xe4\xdf Rhythmus (monatlich / quartalsweise)",timing:"Automatisch beim Erzeugen der f\xe4lligen Wiederholung durch den Scheduler"},survey_reminder2:{description:"Zweite Erinnerung an den Einladender w\xe4hrend der 1. Verl\xe4ngerung mit Hinweis auf die letztmalige Verl\xe4ngerungsm\xf6glichkeit. Nur Analytics & Care (Pulse hat nur 1 Verl\xe4ngerung).",recipient:"Einladender /
2Ersteller der Umfrage",trigger:"Zeitgesteuert, 24 h vor Ende der 1. Verl\xe4ngerung (nur Analytics/Care)",timing:"24 h vor Ende der 1. Verl\xe4ngerung"},survey_final_reminder:{description:"Letzter Aufruf an den Einladender kurz vor dem endg\xfcltigen Ende der Umfrage, die Teilnahme im Team nochmals zu pushen; danach endet sie automatisch.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Zeitgesteuert, 48 h vor endg\xfcltigem Ende",timing:"48 h vor endg\xfcltigem Ende"},survey_daily:{description:"T\xe4glicher Zwischenstand an den Einladender: je Abteilung die Ver\xe4nderung der Teilnahme zum Vortag (absolut & relativ) und die Gesamtteilnahme der Abteilung (absolut & relativ) sowie die Gesamtbeteiligung \xfcber die gesamte Umfrage. Bei Pulse als kompakter Wochen-Digest.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Zeitgesteuert w\xe4hrend der laufenden Umfrage",timing:"T\xe4glich 9:00 Uhr (Pulse: Wochen-Digest)"},survey_close_loop:{description:"Erinnert den Einladender daran, die Mitarbeitenden \xfcber Ergebnisse und abgeleitete Ma\xdfnahmen zu informieren (Transparenz / Close-the-Loop). Enth\xe4lt einen Vorlagetext.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Nach Abschluss der Umfrage",timing:"Kurz nach Bereitstellung der Auswertung"},survey_results_unseen:{description:"Hinweis an den Einladender, dass die fertige Auswertung noch nicht ge\xf6ffnet wurde.",recipient:"Einladender / Ersteller der Umfrage",trigger:"Auswertung liegt vor, wurde aber nicht angesehen",timing:"2 Tage nach Abschluss ohne Ansicht"},reactivation:{description:"Regt den Start der n\xe4chsten Umfrage an, wenn l\xe4ngere Zeit keine neue Befragung durchgef\xfchrt wurde.",recipient:"Admin / Ersteller",trigger:"Keine neue Umfrage im produktabh\xe4ngigen Zeitraum",timing:"Care/Analytics nach 6 Monaten, Pulse nac
2h 2 Monaten"},account_inactive:{description:"Freundlicher Reaktivierungs-Impuls f\xfcr Nutzer, die sich lange nicht angemeldet haben.",recipient:"Nutzer ohne Login",trigger:"Kein Login \xfcber den festgelegten Zeitraum",timing:"Nach 90 Tagen ohne Login"},low_participation:{description:"Warnung bei zu niedriger Beteiligung mit Handlungsvorschl\xe4gen (interner Aufruf / Verl\xe4ngerung).",recipient:"Ersteller / Admin",trigger:"Beteiligung unter Schwelle (Standard 50 %), gepr\xfcft ab konfiguriertem Zeitpunkt (Standard \u2154) \u2013 einstellbar unter Parameter \u2192 Teilnahme",timing:"ab konfiguriertem Anteil der Laufzeit (wiederholt, solange unter Schwelle)"},crm_onboarding:{description:"Willkommens- und Onboarding-Mail mit den ersten Schritten in PERSENTIS.",recipient:"Neue Admins / Kontoeigent\xfcmer",trigger:"Neu-Registrierung eines Kontos",timing:"1 Tag nach Registrierung"},crm_interpret:{description:"Hilfe zur Interpretation der Ergebnisse und zur Ableitung konkreter Ma\xdfnahmen.",recipient:"Ersteller / Verantwortliche",trigger:"Nach dem ersten bereitgestellten Report",timing:"2 Tage nach dem 1. Report"},crm_best_practice:{description:"Regelm\xe4\xdfige, produktbezogene Praxis-Tipps zur Steigerung der Wirkung.",recipient:"Admins / Verantwortliche",trigger:"Wiederkehrende CRM-Strecke",timing:"Monatlich"},crm_benchmark:{description:"Produkt-Neuerungen und aktualisierte Benchmark-/Vergleichswerte.",recipient:"Admins / Verantwortliche",trigger:"Wiederkehrende CRM-Strecke",timing:"Quartalsweise"},crm_cross_sell:{description:"Empfiehlt erg\xe4nzende PERSENTIS-Module basierend auf den bereits gebuchten Produkten. PLAN-abh\xe4ngig \u2013 erst nach Stripe-Anbindung aktiv.",recipient:"Admins / Kontoeigent\xfcmer",trigger:"Plan-/Produkt-Konstellation (nach Stripe-Anbindung)",timing:"Erst nach Stripe-Anbindung aktiv"},crm_renewal:{description:"Erinnerung an die anstehende Verl\xe4ngerung des Plans vor Vertragsende. PLAN-abh\xe4ngig \u2013 erst nach Stripe-Anbindung aktiv.",recipient:"Admins / Kontoeigent\xfcmer",trigger:"14 Tage vor Ablauf des Plans (nach Stripe-Anbindung)",timing:"Erst nach Stripe-Anbindung aktiv"},crm_renewal_2:{description:"Letzte Erinnerung 1 Tag vor Ablauf des Plans mit 5 % Rabatt bei Verl\xe4ngerung am selben Tag ({rabatt}-Platzhalter). PLAN-abh\xe4ngig \u2013 erst nach Stripe-Anbindung aktiv.",recipient:"Admins / Kontoeigent\xfcmer",trigger:"1 Tag vor Ablauf des Plans; 5 % Rabatt bei Verl\xe4ngerung am selben Tag",timing:"Erst nach Stripe-Anbindung aktiv"},crm_renewal_3:{description:"Reaktivierungsangebot 14 Tage nach Ablauf des Plans mit 2,5 % Rabatt auf die Verl\xe4ngerung ({rabatt}-Platzhalter). PLAN-abh\xe4ngig \u2013 erst nach Stripe-Anbindung aktiv.",recipient:"Admins / Kontoeigent\xfcmer",trigger:"14 Tage nach Ablauf des Plans; 2,5 % Rabatt auf die Verl\xe4ngerung",timing:"Erst nach Stripe-Anbindung aktiv"},crm_nps:{description:"Zufriedenheits-/NPS-Abfrage mit Credit-Gutschrift als Anreiz. PLAN-abh\xe4ngig \u2013 erst nach Stripe-Anbindung aktiv.",recipient:"Admins / Kontoeigent\xfcmer",trigger:"Wiederkehrend (nach Stripe-/Credit-Anbindung)",timing:"Erst nach Stripe-Anbindung aktiv"},demo_invitation:{description:"L\xe4dt eine Person zur PERSENTIS Demo ein und enth\xe4lt die Zugangsdaten (E-Mail + automatisch erzeugtes 16-stelliges Passwort) sowie den Demo-Login-Link.",recipient:"Vom Super-Admin angelegte Demo-Zug\xe4nge",trigger:"Anlegen eines Demo-Zugangs im Men\xfc Demo (oder erneutes Senden der Einladung)",timing:"Sofort nach dem Anlegen bzw. erneuten Senden"},demo_revoked:{description:"Benachrichtigt eine Person, dass ihr PERSENTIS-Demo-Zugang beendet wurde und eine Anmeldung nicht mehr m\xf6glich ist.",recipient:"Betroffene Demo-Zug\xe4nge",trigger:"Deaktivieren oder L\xf6schen eines Demo-Zugangs im Men\xfc Demo",timing:"Sofort nach dem Deaktivieren bzw. L\xf6schen"},subadmin_invitation:{description:"L\xe4dt eine Person als Administrator (SubAdmin) ein und enth\xe4lt die Zugangsdaten (E-Mail + automatisch erzeugtes Passwort) sowie den Login-Link.",recipient:"Vom Super-Admin angelegte Administrator-Zug\xe4nge",trigger:"Anlegen eines Administrators im Men\xfc Admins (oder erneutes Senden der Einladung)",timing:"Sofort nac
2h dem Anlegen bzw. erneuten Senden"},subadmin_revoked:{description:"Benachrichtigt einen Administrator, dass sein PERSENTIS-Zugang beendet wurde und eine Anmeldung nicht mehr m\xf6glich ist.",recipient:"Betroffene Administrator-Zug\xe4nge",trigger:"Deaktivieren oder L\xf6schen eines Administrators im Men\xfc Admins",timing:"Sofort nach dem Deaktivieren bzw. L\xf6schen"},onboarding_care:{description:"Begr\xfc\xdft neue Kund:innen im Modul PERSENTIS Care und f\xfchrt zu den ersten Schritten (mentales Wohlbefinden im Blick).",recipient:"Neu registrierte Kontoeigent\xfcmer / Admins",trigger:"Aktivierung bzw. Buchung von PERSENTIS Care",timing:"Sofort nach Aktivierung"},onboarding_analytics:{description:"Begr\xfc\xdft neue Kund:innen im Modul PERSENTIS Analytics und f\xfchrt zu den ersten Schritten (Kennzahlen & Auswertungen).",recipient:"Neu registrierte Kontoeigent\xfcmer / Admins",trigger:"Aktivierung bzw. Buchung von PERSENTIS Analytics",timing:"Sofort nach Aktivierung"},onboarding_pulse:{description:"Begr\xfc\xdft neue Kund:innen im Modul PERSENTIS Pulse und f\xfchrt zur Erstellung der ersten (wiederkehrenden) Stimmungsumfrage.",recipient:"Neu registrierte Kontoeigent\xfcmer / Admins",trigger:"Aktivierung bzw. Buchung von PERSENTIS Pulse",timing:"Sofort nach Aktivierung"},billing_invoice:{description:"\xdcbermittelt die ausgestellte Rechnung als PDF (inkl. AGB-Anhang) und den sicheren Online-Zahlungslink. Enth\xe4lt den dezenten Baustein {billing_hinweis} (offener Betrag / Vertragserneuerung), der automatisch entf\xe4llt, wenn nichts offen ist. Hinweisvarianten & AGB werden weiter unten auf dieser Seite gepflegt.",recipient:"Rechnungsempf\xe4nger der Firma (Abrechnungs-E-Mail, sonst Firmen-Admin)",trigger:"Ausstellung/Versand einer Rechnung (manuell oder automatischer Abrechnungslauf)",timing:"Sofort bei Rechnungsversand"},billing_dunning_1:{description:"Freundliche Zahlungserinnerung f\xfcr eine \xfcberf\xe4llige Rechnung mit erneutem Zahlungslink.",recipient:"Rechnungsempf\xe4nger der Firma (Abrechnungs-E-Mail, sonst Firmen-Admin)",trigger:"Rechnung \xfcberf\xe4llig \u2013 1. Stufe des Mahnwesens",timing:"7 Tage nach F\xe4lligkeit"},billing_dunning_2:{description:"Zweite Mahnung mit deutlicherer Aufforderung zur umgehenden Begleichung des offenen Betrags.",recipient:"Rechnungsempf\xe4nger der Firma (Abrechnungs-E-Mail, sonst Firmen-Admin)",trigger:"Rechnung weiterhin offen \u2013 2. Stufe des Mahnwesens",timing:"10 Tage nach F\xe4lligkeit (+3 Tage)"},billing_dunning_3:{description:"Letzte Mahnung inkl. Ank\xfcndigung der Zugangssperre f\xfcr kostenpflichtige Funktionen bis zum Zahlungseingang.",recipient:"Rechnungsempf\xe4nger der Firma (Abrechnungs-E-Mail, sonst Firmen-Admin)",trigger:"Rechnung trotz zweifacher Mahnung offen \u2013 3. Stufe (Sperre)",timing:"13 Tage nach F\xe4lligkeit (+3 Tage); danach Konto-Sperre"},offer_main:{description:"\xdcbermittelt das \xfcber den Preisrechner angeforderte Angebot als PDF (inkl. AGB-Anhang) mit Preis\xfcber
2sicht f\xfcr die gew\xe4hlte Mitarbeiterzahl und Produkte. Enth\xe4lt den Betrag {betrag} und einen Button zum Start/zur Registrierung.",recipient:"Interessent, der \xfcber den Preisrechner \u201eAngebot anfordern\u201c ausgel\xf6st hat",trigger:"Absenden des Angebotsformulars im Preisrechner (POST /api/offers)",timing:"Sofort nach der Angebotsanforderung (Angebot 1 Woche g\xfcltig)"},offer_reminder_1:{description:"Erste Erinnerung (\u201eSchon gesehen?\u201c) mit erneut angeh\xe4ngtem Angebots-PDF, um den Interessenten zur Entscheidung zu motivieren.",recipient:"Interessent mit noch nicht in einen Auftrag umgewandeltem Angebot",trigger:"Angebot versendet, noch keine Bestellung \u2013 automatischer AutoMail-Scheduler",timing:"Tag 2 nach dem Angebot"},offer_reminder_2:{description:"Zweite Erinnerung mit Fokus auf den konkreten Nutzen von PERSENTIS (Stimmung, Bindung, Belastung sichtbar). Angebotsbetrag {betrag} bleibt reserviert.",recipient:"Interessent mit noch nicht in einen Auftrag umgewandeltem Angebot",trigger:"Angebot weiterhin offen \u2013 automatischer AutoMail-Scheduler",timing:"Tag 4 nach dem Angebot"},offer_reminder_3:{description:"Letzter Impuls mit pers\xf6nlichem Kennenlernrabatt: Code {rabatt_code} \xfcber {rabatt_pct}\xa0% auf die Bestellung. Der Code wird beim Versand real angelegt und ist nur 2 Tage g\xfcltig.",recipient:"Interessent mit noch nicht in einen Auftrag umgewandeltem Angebot",trigger:"Angebot weiterhin offen \u2013 automatischer AutoMail-Scheduler (legt Rabatt-Code an)",timing:"Tag 5 nach dem Angebot (Rabatt-Code 2 Tage g\xfcltig)"}};["pulse","analytics","care"].forEach(e=>{["survey_started"].forEach(t=>{nre[t]&&(nre["".concat(e,"_").concat(t)]=d({},nre[t]))})});const are=new Set(["survey_started","ownership_transferred"]);["pulse","analytics","care"].forEach(e=>{["first_response","survey_reminder","survey_reminder2","survey_extended","survey_final_reminder","survey_daily","survey_completed","survey_close_loop","survey_results_unseen"].forEach(t=>are.add("".concat(e,"_").concat(t)))});const rre=e=>{if(!e)return"";if(/<[a-z][^>]*>/i.test(e))return e;return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>").split(/\n\s*\n/).map(e=>"<p>".concat(e.replace(/\n/g,"<br>"),"</p>")).join("")},ire=e=>{let t=e.onClick,n=e.title,a=e.testid,r=e.children;return(0,Te.jsx)("button",{type:"button",onClick:t,title:n,"aria-label":n,"data-testid":a,className:"w-8 h-8 flex items-center justify-center rounded-md border border-border text-foreground hover:bg-zinc-100 transition-colors",children:r})},sre=e=>{let t=e.label,n=e.value,a=e.testid;return(0,Te.jsxs)("div",{children:[(0,Te.jsx)("dt",{className:"text-[11px] font-bold uppercase tracking-[0.12em] text-muted-foreground mb-0.5",children:t}),(0,Te.jsx)("dd",{className:"text-sm text-foreground leading-relaxed","data-testid":a,children:n})]})},ore=e=>{let t=e.onClick,n=e.title,a=e.testid,r=e.children;return(0,Te.jsx)("button",{type:"button",title:n,"data-testid":a,tabIndex:-1,onMouseDown:e=>{e.preventDefault(),t()},className:"w-8 h-8 flex items-center justify-center rounded border border-border text-foreground hover:bg-zinc-100 transition-colors",children:r})},lre=(0,a.forwardRef)((e,t)=>{let n=e.value,r=e.onChange,i=e.onFocus;const s=(0,a.useRef)(null),o=(0,a.useRef)(null),l=()=>{const e=s.current;e&&(o.current=e.innerHTML,r(e.innerHTML))};(0,a.useImperativeHandle)(t,()=>({focus:()=>s.current&&s.current.focus(),insert:e=>{const t=s.current;t&&(t.focus(),document.execCommand("insertText",!1,e),l())}})),(0,a.useEffect)(()=>{const e=s.current;e&&(n||"")!==(o.current||"")&&(e.innerHTML=n||"",o.current=n||"")},[n]);const c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;s.current.focus();try{document.execCommand("styleWithCSS",!1,!0)}catch(rse){}document.execCommand(e,!1,t),l()},d=ore;return(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-2","data-testid":"rte-toolbar",children:[(0,Te.jsx)(d,{onClick:()=>c("bold"),title:"Fett (St\xe4rke)",testid:"rte-bold",children:(0,Te.jsx)(OE,{size:15})}),(0,Te.jsx)(d,{onClick:()=>c("italic"),title:"Kursiv",testid:"rte-italic",children:(0,Te.jsx)(DE,{size:15})}),(0,Te.jsx)(d,{onClick:()=>c("underline"),title:"Unterstrichen",testid:"rte-underline",children:(0,Te.jsx)(oC,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(d,{onClick:()=>c("fontSize","2"),title:"Klein",testid:"rte-size-s",children:(0,Te.jsx)("span",{className:"text-[10px] font-bold leading-none",children:"S"})}),(0,Te.jsx)(d,{onClick:()=>c("fontSize","4"),title:"Normal",testid:"rte-size-m",children:(0,Te.jsx)("span",{className:"text-[13px] font-bold leading-none",children:"M"})}),(0,Te.jsx)(d,{onClick:()=>c("fontSize","6"),title:"Gro\xdf",testid:"rte-size-l",children:(0,Te.jsx)("span",{className:"text-[16px] font-bold leading-none",children:"L"})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(d,{onClick:()=>c("insertUnorderedList"),title:"Aufz\xe4hlung",testid:"rte-list",children:(0,Te.jsx)(LE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsxs)("span",{className:"flex items-center gap-1","data-testid":"rte-colors",children:[Xae.map(e=>(0,Te.jsx)("button",{type:"button",title:"Farbe ".concat(e),"data-testid":"rte-color-".concat(e.replace("#","")),tabIndex:-1,onMouseDown:t=>{t.preventDefault(),c("foreColor",e)},className:"w-5 h-5 rounded-full border border-border",style:{backgroundColor:e}},e)),(0,Te.jsxs)("label",{className:"w-6 h-6 flex items-center justify-center rounded border border-border
2cursor-pointer",title:"Eigene Farbe",children:[(0,Te.jsx)(yS,{size:13}),(0,Te.jsx)("input",{type:"color",className:"sr-only",onChange:e=>c("foreColor",e.target.value),"data-testid":"rte-color-custom"})]})]}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(d,{onClick:()=>c("removeFormat"),title:"Formatierung entfernen",testid:"rte-clear",children:(0,Te.jsx)(lC,{size:15})}),(0,Te.jsx)(d,{onClick:()=>{s.current.focus();const e=window.getSelection(),t=e&&!e.isCollapsed&&e.toString().trim().length>0;let n=window.prompt("Link-Adresse (z. B. https://\u2026 oder Platzhalter wie {link}):","https://");if(null==n)return;if(n=n.trim(),!n)return;/^https?:\/\//i.test(n)||/^mailto:/i.test(n)||n.startsWith("{")||(n="https://"+n);const a=n.replace(/"/g,""");t?document.execCommand("createLink",!1,n):document.execCommand("insertHTML",!1,'<a href="'.concat(a,'">').concat(a,"</a>")),l()},title:"Link einf\xfcgen",testid:"rte-link",children:(0,Te.jsx)(O_,{size:15})})]}),(0,Te.jsx)("div",{ref:s,contentEditable:!0,suppressContentEditableWarning:!0,onInput:l,onFocus:i,"data-testid":"automail-body",className:"min-h-[180px] w-full rounded-md border border-input bg-white px-3 py-2 text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40 [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2 [&_a]:text-primary [&_a]:font-bold [&_a]:no-underline"})]})}),cre=[["hinweis_both","Hinweis \u2013 offener Betrag UND Vertragserneuerung"],["hinweis_amount","Hinweis \u2013 nur offener Betrag (kein aktiver Vertrag)"],["hinweis_date","Hinweis \u2013 nur Vertragserneuerung (nichts offen)"]];function dre(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1];(0,a.useEffect)(()=>{Ps.get("/billing/texts").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e)))},[]);return t?(0,Te.jsxs)(by,{className:"p-5","data-testid":"billing-invoice-extras",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2",children:[(0,Te.jsx)(GS,{size:18,className:"text-primary"})," Zusatz-Einstellungen der Rechnungs-Mail"]}),(0,Te.jsxs)(fy,{onClick:async()=>{s(!0);try{await Ps.put("/billing/texts",{hinweis_both:t.hinweis_both,hinweis_amount:t.hinweis_amount,hinweis_date:t.hinweis_date}),Ia.success("Hinweisvarianten gespeichert.")}catch(rse){Ia.error(Cs(rse))}finally{s(!1)}},disabled:i,"data-testid":"billing-extras-save",children:[(0,Te.jsx)(wE,{size:16})," ",i?"Speichert \u2026":"Speichern"]})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mb-4",children:["Der Baustein ",(0,Te.jsx)("code",{children:"{billing_hinweis}"})," im Mailtext wird automatisch mit einer der folgenden Varianten bef\xfcllt \u2013 je nachdem, ob ein offener Betrag und/oder eine Vertragserneuerung vorliegt. Ist nichts offen, entf\xe4llt der Hinweis vollst\xe4ndig. Zus\xe4tzlich nutzbar: ",(0,Te.jsx)("code",{children:"{offener_betrag}"}),", ",(0,Te.jsx)("code",{children:"{vertragserneuerung}"}),"."]}),(0,Te.jsx)("div",{className:"space-y-4",children:cre.map(e=>{let a=Le(e,2),r=a[0],i=a[1];return(0,Te.jsx)(wy,{label:i,children:(0,Te.jsx)(xy,{rows:3,"data-testid":"billing-extra-".concat(r),value:t[r]||"",onChange:e=>n(t=>d(d({},t),{},{[r]:e.target.value}))})},r)})}),(0,Te.jsxs)("div",{className:"mt-4 pt-4 border-t border-border flex items-center justify-between",children:[(0,Te.jsx)("span",{className:"text-sm text-muted-foreground",children:"AGB wird jeder Rechnungs-E-Mail automatisch als PDF angeh\xe4ngt."}),(0,Te.jsx)("a",{href:"".concat("https://login.persentis.com","/api/billing/agb.pdf"),target:"_blank",rel:"noreferrer",className:"text-sm font-semibold text-[#75A33D] hover:underline","data-testid":"billing-extras-agb-link",children:"AGB-PDF ansehen"})]})]}):null}function ure(){var e,t;const n=nn(),r=Is().getText,i=Le((0,a.useState)(Wae[0].items[0].key),2),s=i[0],o=i[1],l=Le((0,a.useState)(()=>Wae[0].title),2),c=l[0],u=l[1],m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)(Jae),2),g=f[0],x=f[1],v=Le((0,a.useState)([]),2),b=v[0],y=v[1],w=Le((0,a.useState)(!1),2),j=w[0],k=w[1],N=Le((0,a.useState)(!1),2),S=N[0],_=N[1],z=Le((0,a.useState)(!1),2),E=z[0],C=z[1],P=Le((0,a.useState)({html:"",subject:"",from:"",to:""}),2),A=P[0],T=P[1],R=Le((0,a.useState)({}),2),O=R[0],D=R[1],M=Le((0,a.useState)(!1),2),I=M[0],F=M[1],L=Le((0,a.useState)({send_hour:8,send_days:[0,1,2,3,4,5,6],reminder_interval_days:3}),2),B=L[0],q=L[1],U=Le((0,a.useState)(!1),2),V=U[0],H=U[1],W=(0,a.useRef)(null),K=(0,a.useRef)(null),G=(0,a.useRef)(null);(0,a.useEffect)(()=>
2{Ps.get("/automails/scheduler-settings").then(e=>{var t,n,a;return q({send_hour:null!==(t=e.data.send_hour)&&void 0!==t?t:8,send_days:null!==(n=e.data.send_days)&&void 0!==n?n:[0,1,2,3,4,5,6],reminder_interval_days:null!==(a=e.data.reminder_interval_days)&&void 0!==a?a:3})}).catch(()=>{})},[]);const Z=(0,a.useCallback)(e=>{G.current=e,Ps.get("/automails/".concat(e)).then(t=>{if(G.current!==e)return;y(t.data.versions||[]);const n=t.data.current;x(n?{subject:n.subject||"",greeting:n.greeting||"",body:rre(n.body),button_text:n.button_text||"",button_url:n.button_url||""}:Jae)}).catch(e=>Ia.error(Cs(e)))},[]);(0,a.useEffect)(()=>{Z(s),_(!1)},[s,Z]),(0,a.useEffect)(()=>{const e=new URLSearchParams(n.search).get("key");e&&Zae.some(t=>t.key===e)&&(o(e),u((e=>{var t;return null===(t=Wae.find(t=>Kae(t).some(t=>t.key===e)))||void 0===t?void 0:t.title})(e)),h((e=>{for(const t of Wae)for(const n of t.subgroups||[])if(n.items.some(t=>t.key===e))return n.title;return null})(e)))},[n.search]);const Y=(0,a.useCallback)(()=>{Ps.get("/automails").then(e=>{const t={};(e.data||[]).forEach(e=>{t[e.key]=e}),D(t)}).catch(()=>{})},[]);(0,a.useEffect)(()=>{Y()},[Y]);const Q=Le((0,a.useState)([]),2),$=Q[0],X=Q[1],J=Le((0,a.useState)([]),2),ee=J[0],te=J[1],ne=Le((0,a.useState)([]),2),ae=ne[0],re=ne[1],ie=eee(J9(Gee,{activationConstraint:{distance:5}}),J9(Uee,{coordinateGetter:$te})),se=(e,t)=>x(n=>d(d({},n),{},{[e]:t})),oe=async()=>{if(g.subject.trim()){k(!0);try{await Ps.post("/automails/".concat(s),g),Ia.success("Neue Version gespeichert \u2013 bitte anschlie\xdfend freigeben."),Z(s),Y()}catch(rse){Ia.error(Cs(rse))}finally{k(!1)}}else Ia.error("Betreff ist erforderlich.")},le=async e=>{try{const t=await Ps.post("/automails/".concat(s,"/render"),e||g);T(t.data),C(!0)}catch(rse){Ia.error(Cs(rse))}},ce=e=>{W.current=e.target},de=/_survey_started$/.test(s),ue="billing_invoice"===s,me=async(e,t)=>{try{const n=await Ps.get(e,{responseType:"blob"}),a=window.URL.createObjectURL(new Blob([n.data],{type:"application/pdf"})),r=document.createElement("a");r.href=a,r.download=t,document.body.appendChild(r),r.click(),r.remove(),window.URL.revokeObjectURL(a)}catch(rse){Ia.error(Cs(rse))}},pe=b.slice(0,3),he=b.slice(3),fe=nre[s]||{description:"Diese automatische E-Mail wurde neu erg\xe4nzt. Empf\xe4nger, Ausl\xf6ser und Zeitpunkt k\xf6nnen bei Bedarf erg\xe4nzt werden.",recipient:"\u2014",trigger:"\u2014",timing:"\u2014"},ge=(null===(e=O[s])||void 0===e?void 0:e.drift_facts)||[],xe=new Set(Zae.map(e=>e.key)),ve=Object.keys(O).filter(e=>!xe.has(e)&&!are.has(e)).sort().map(e=>({key:e,label:Gae(e)})),be=ve.length?[...Wae,{title:"Weitere",icon:vS,items:ve}]:Wae,ye=be.flatMap(e=>Kae(e).map(e=>e.key)),we=ye.join(","),je=(e,t)=>[...(e||[]).filter(e=>t.includes(e)),...t.filter(t=>!(e||[]).includes(t))];(0,a.useEffect)(()=>{var e;const t=we?we.split(","):[],n=be.map(e=>e.title),a=(null===(e=(Wae.find(e=>e.subgroups)||{}).subgroups)||void 0===e?void 0:e.map(e=>e.title))||[];Ps.get("/automails/menu-order").then(e=>{var r,i,s;X(je(null===(r=e.data)||void 0===r?void 0:r.order,t)),te(((e,t)=>{const n=(e||[]).filter(e=>t.includes(e)),a=[...n];for(const r of t.filter(e=>!n.includes(e))){const e=t.indexOf(r);let n=a.findIndex(n=>t.indexOf(n)>e);-1===n&&(n=a.length),a.splice(n,0,r)}return a})(null===(i=e.data)||void 0===i?void 0:i.groups,n)),re(je(null===(s=e.data)||void 0===s?void 0:s.subgroups,a))}).catch(()=>{X(t),te(n),re(a)})},[we]);const ke=(e,t,n)=>{if(!n.length)return e;const a=e=>{const t=n.indexOf(e);return-1===t?1e6:t};return[...e].sort((e,n)=>a(t(e))-a(t(n)))},Ne=e=>{const t=e.active,n=e.over;if(!n||t.id===n.id)return;const a=ke(be,e=>e.title,ee).map(e=>e.title),r=Rte(a,a.indexOf(t.id),a.indexOf(n.id));te(r),Ps.put("/automails/menu-order",{groups:r}).catch(e=>Ia.error(Cs(e)))},Se=e=>{const t=(e=>ke(e,e=>e.key,$))(e),n=t.map(e=>e.key);return(0,Te.jsx)(zte,{sensors:ie,collisionDetection:lee,onDragEnd:e=>((e,t)=>{const n=e.active,a=e.over;if(!a||n.id===a.id)return;const r=t.indexOf(n.id),i=t.indexOf(a.id);if(r<0||i<0)return;const s=Rte(t,r,i),o=new Set(t);let l=0;const c=($.length?$:ye).map(e=>o.has(e)?s[l++]:e);X(c),Ps.put("/automails/menu-order",{order:c}).catch(e=>Ia.error(Cs(e)))})(e,n),children:(0,Te.jsx)(qte,{items:n,strategy:Fte,children:(0,Te.jsx)("div",{className:"space-y-0.5",children:t.map(e=>{var t,n;return(0,Te.jsx)(tre,{it:e,active:e.key===s,drift:!(null===(t=O[e.key])||void 0===t||!t.drift),needsApproval:!(null===(n=O[e.key])||void 0===n||!n.needs_approval),onSelect:o,label:r("automails.label.".concat(e.key),e.label)},e.key)})})})})},_e=e=>{let t=e.v;return(0,Te.jsxs)("div",{className:"flex items-center justify-between border border-border rounded-md px-3 py-2.5","data-testid":"automail-version-".concat(t.version),children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("div",{className:"text-sm font-medium flex items-center gap-2",children:["Version ",t.version,t.is_current&&(0,Te.jsx)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full bg-green-100 text-green-700",children:"aktuell"}),t.is_current&&!1===t.approved&&(0,Te.jsx)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full bg-amber-100 text-amber-700","data-testid":"automail-version-pending",children:"Freigabe erforderlich"})]}),(0,Te.jsxs)("div",{className:"text-xs text-muted-foreground truncate",children:[t.subject," \xb7 ",(n=t.created_at,n?new Date(n).toLocaleStr
2ing("de-DE"):"\u2014")]})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-1.5 shrink-0",children:[(0,Te.jsx)(ire,{onClick:()=>(e=>le({subject:e.subject,greeting:e.greeting,body:e.body,button_text:e.button_text,button_url:e.button_url}))(t),title:"Vorschau",testid:"automail-preview-".concat(t.version),children:(0,Te.jsx)(tS,{size:15})}),(0,Te.jsx)(ire,{onClick:()=>(e=>{x({subject:e.subject||"",greeting:e.greeting||"",body:rre(e.body),button_text:e.button_text||"",button_url:e.button_url||""}),Ia.success("Version ".concat(e.version," geladen \u2013 zum \xdcbernehmen speichern"))})(t),title:"Version laden",testid:"automail-load-".concat(t.version),children:(0,Te.jsx)(Ff,{size:15})})]})]});var n};return(0,Te.jsxs)("div",{children:[(0,Te.jsx)(ky,{title:"AutoMail-Verwaltung",titleId:"automails.title",subtitle:"Automatische E-Mails \u2013 thematisch gesammelt, mit Textformatierung, Platzhaltern, Vorschau & Versionierung",subtitleId:"automails.subtitle",actions:(0,Te.jsxs)("div",{className:"flex gap-2",children:[(null===(t=O[s])||void 0===t?void 0:t.needs_approval)&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{k(!0);try{await Ps.post("/automails/".concat(s,"/approve")),Ia.success("AutoMail freigegeben \u2013 wird jetzt versendet."),Z(s),Y()}catch(rse){Ia.error(Cs(rse))}finally{k(!1)}},disabled:j,"data-testid":"automail-approve",className:"border-amber-300 text-amber-800 hover:bg-amber-50",children:[(0,Te.jsx)(Ef,{size:16})," Freigeben"]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>le(),"data-testid":"automail-preview-btn",children:[(0,Te.jsx)(tS,{size:16})," ",(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})]}),(0,Te.jsxs)(fy,{onClick:oe,disabled:j,"data-testid":"automail-save",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})]})]})}),(0,Te.jsxs)(by,{className:"p-4 mb-6","data-testid":"scheduler-settings",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>F(e=>!e),className:"w-full flex items-center justify-between gap-2 text-left","data-testid":"scheduler-settings-toggle",children:[(0,Te.jsxs)("span",{className:"font-heading text-lg flex items-center gap-2",children:[(0,Te.jsx)(Hae,{size:18,className:"text-primary"})," Scheduler-Einstellungen"]}),(0,Te.jsx)(xw,{size:18,className:"transition-transform text-muted-foreground ".concat(I?"rotate-180":"")})]}),I&&(0,Te.jsxs)("div",{className:"mt-4 pt-4 border-t border-border grid md:grid-cols-3 gap-6","data-testid":"scheduler-settings-body",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold block mb-2",children:(0,Te.jsx)(cy,{id:"admin.automails.send_time",as:"span",children:"Sendezeit (Uhrzeit)"})}),(0,Te.jsx)("select",{value:B.send_hour,onChange:e=>q(t=>d(d({},t),{},{send_hour:Number(e.target.value)})),className:"w-full h-10 rounded-md border border-border px-3 text-sm bg-white","data-testid":"scheduler-hour",children:Array.from({length:24},(e,t)=>(0,Te.jsxs)("option",{value:t,children:[String(t).padStart(2,"0"),":00 Uhr"]},t))}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5",children:(0,Te.jsx)(cy,{id:"admin.automails.timezone",as:"span",children:"Zeitzone Europe/Vienna"})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold block mb-2",children:(0,Te.jsx)(cy,{id:"admin.automails.send_days",as:"span",children:"Sende-Tage"})}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-1.5",children:["Mo","Di","Mi","Do","Fr","Sa","So"].map((e,t)=>{const n=B.send_days.includes(t);return(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>q(t=>d(d({},t),{},{send_days:t.send_days.includes(e)?t.send_days.filter(t=>t!==e):[...t.send_days,e].sort((e,t)=>e-t)})))(t),"data-testid":"scheduler-day-".concat(t),className:"w-10 h-9 rounded-md text-sm font-semibold border transition-colors ".concat(n?"bg-primary text-white border-primary":"bg-white text-foreground border-border hover:border-primary"),children:e},t)})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5",children:(0,Te.jsx)(cy,{id:"admin.automails.send_days_hint",as:"span",children:"Tage, an denen der Tagesreport & Reminder versendet werden"})})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"text-sm font-semibold block mb-2",children:(0,Te.jsx)(cy,{id:"admin.automails.reminder_interval",as:"span",children:"Reminder-Intervall (Tage)"})}),(0,Te.jsx)(gy,{type:"number",min:1,max:30,value:B.reminder_interval_days,onChange:e=>q(t=>d(d({},t),{},{reminder_interval_days:e.target.value})),"data-testid":"scheduler-interval",className:"w-full"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1.5",children:(0,Te.jsx)(cy,{id:"admin.automails.reminder_interval_hint",as:"span",children:"Abstand der Einladungs-Reminder bis zur ersten Antwort"})})]}),(0,Te.jsx)("div",{className:"md:col-span-3 flex justify-end",children:(0,Te.jsxs)(fy,{onClick:async()=>{H(!0);
2try{await Ps.put("/automails/scheduler-settings",{send_hour:Number(B.send_hour),send_days:B.send_days,reminder_interval_days:Number(B.reminder_interval_days)}),Ia.success("Scheduler-Einstellungen gespeichert")}catch(rse){Ia.error(Cs(rse))}finally{H(!1)}},disabled:V,"data-testid":"scheduler-save",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.automails.save_settings",as:"span",children:"Einstellungen speichern"})]})})]})]}),(0,Te.jsxs)("div",{className:"grid lg:grid-cols-[350px_1fr] gap-6 items-start",children:[(0,Te.jsx)(by,{className:"p-2 h-fit lg:sticky lg:top-6 max-h-[calc(100vh-3rem)] overflow-y-auto","data-testid":"automail-menu",children:(()=>{const e=ke(be,e=>e.title,ee),t=e.map(e=>e.title),n=(e,t)=>{const n=e.icon,a=c===e.title,r=Kae(e),i=r.some(e=>{var t;return null===(t=O[e.key])||void 0===t?void 0:t.drift}),s=r.some(e=>{var t;return null===(t=O[e.key])||void 0===t?void 0:t.needs_approval}),o=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.setNodeRef,l=t.style,c=t.handleProps;return(0,Te.jsxs)("div",{ref:o,style:l,className:"mb-1 last:mb-0",children:[(0,Te.jsxs)("div",{className:"w-full flex items-center gap-0.5 rounded-md hover:bg-zinc-100 transition-colors",children:[c&&(0,Te.jsx)("button",d(d({type:"button"},c),{},{tabIndex:-1,"data-testid":"group-drag-".concat(Qae(e.title)),title:"Gruppe ziehen","aria-label":"Gruppe verschieben",className:"cursor-grab active:cursor-grabbing text-muted-foreground/40 hover:text-muted-foreground pl-1.5 touch-none",children:(0,Te.jsx)(g9,{size:14})})),(0,Te.jsxs)("button",{type:"button",onClick:()=>{return t=e.title,u(e=>e===t?null:t),void h(null);var t},"data-testid":"automail-group-".concat(Qae(e.title)),className:"flex-1 flex items-center justify-between px-2 py-2",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2 text-[11px] font-bold uppercase tracking-[0.14em] text-muted-foreground",children:[(0,Te.jsx)(n,{size:15,className:"text-primary"}),(0,Te.jsx)(cy,{id:"automails.group.".concat(Qae(e.title)),as:"span",children:e.title}),(0,Te.jsxs)("span",{children:["(",r.length,")"]}),i&&(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full bg-red-500","data-testid":"group-drift-".concat(Qae(e.title)),title:"Abweichung zum Prozess"}),s&&(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full bg-amber-500","data-testid":"group-needs-approval-".concat(Qae(e.title)),title:"Neue AutoMail \u2013 Freigabe erforderlich"})]}),(0,Te.jsx)(xw,{size:15,className:"text-muted-foreground transition-transform duration-200 ".concat(a?"rotate-180":"")})]})]}),(0,Te.jsx)(co,{initial:!1,children:a&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"space-y-0.5 pt-1 pb-1 pl-2",children:e.subgroups?(()=>{const t=ke(e.subgroups,e=>e.title,ae);return(0,Te.jsx)(zte,{sensors:ie,collisionDetection:lee,onDragEnd:e=>((e,t)=>{const n=e.active,a=e.over;if(!a||n.id===a.id)return;const r=t.map(e=>e.title),i=Rte(r,r.indexOf(n.id),r.indexOf(a.id));re(i),Ps.put("/automails/menu-order",{subgroups:i}).catch(e=>Ia.error(Cs(e)))})(e,t),children:(0,Te.jsx)(qte,{items:t.map(e=>e.title),strategy:Fte,children:t.map(e=>{const t=p===e.title,n=e.items.some(e=>{var t;return null===(t=O[e.key])||void 0===t?void 0:t.drift}),a=e.items.some(e=>{var t;return null===(t=O[e.key])||void 0===t?void 0:t.needs_approval});return(0,Te.jsx)(ere,{id:e.title,children:r=>{let i=r.setNodeRef,s=r.style,o=r.handleProps;return(0,Te.jsxs)("div",{ref:i,style:s,className:"mb-1 last:mb-0","data-testid":"automail-subgroup-".concat(Qae(e.title)),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1 pt-1",children:[(0,Te.jsx)("button",d(d({type:"button"},o),{},{tabIndex:-1,"data-testid":"subgroup-drag-".concat(Qae(e.title)),title:"Untergruppe ziehen","aria-label":"Untergruppe verschieben",className:"cursor-grab active:cursor-grabbing text-muted-foreground/40 hover:text-muted-foreground pl-1 touch-none",children:(0,Te.jsx)(g9,{size:12})})),(0,Te.jsxs)("button",{type:"button",onClick:()=>{return t=e.title,h(e=>e===t?null:t);var t},"data-testid":"automail-subgroup-toggle-".concat(Qae(e.title)),className:"flex-1 flex items-center justify-between px-1.5 py-1 rounded-md hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-[10px] font-bold uppercase tracking-[0.14em] text-muted-foreground
2/70",children:[(0,Te.jsx)(cy,{id:"automails.subgroup.".concat(Qae(e.title)),as:"span",children:e.title}),(0,Te.jsxs)("span",{children:["(",e.items.length,")"]}),n&&(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-red-500","data-testid":"subgroup-drift-".concat(Qae(e.title)),title:"Abweichung zum Prozess"}),a&&(0,Te.jsx)("span",{className:"w-1.5 h-1.5 rounded-full bg-amber-500","data-testid":"subgroup-needs-approval-".concat(Qae(e.title)),title:"Neue AutoMail \u2013 Freigabe erforderlich"})]}),(0,Te.jsx)(xw,{size:13,className:"text-muted-foreground transition-transform duration-200 ".concat(t?"rotate-180":"")})]})]}),(0,Te.jsx)(co,{initial:!1,children:t&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"pl-2 pt-1 pb-1",children:Se(e.items)})})})]})}},e.title)})})})})():Se(e.items)})})})]})};return t?(0,Te.jsx)(ere,{id:e.title,children:o},e.title):(0,Te.jsx)("div",{children:o()},e.title)};return(0,Te.jsx)(Te.Fragment,{children:(0,Te.jsx)(zte,{sensors:ie,collisionDetection:lee,onDragEnd:Ne,children:(0,Te.jsx)(qte,{items:t,strategy:Fte,children:e.map(e=>n(e,!0))})})})})()}),(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)(by,{className:"p-5",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2 mb-4",children:[(0,Te.jsx)(vS,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"automails.label.".concat(s),children:Yae(s)}),ge.length>0&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-2 py-0.5 rounded-full bg-red-100 text-red-700 flex items-center gap-1","data-testid":"drift-badge",children:[(0,Te.jsx)(k_,{size:12})," Abweichung"]})]}),(0,Te.jsxs)("div",{className:"space-y-3",children:[(0,Te.jsx)(wy,{label:"Betreff",children:(0,Te.jsx)(gy,{name:"subject",value:g.subject,onFocus:ce,onChange:e=>se("subject",e.target.value),"data-testid":"automail-subject"})}),(0,Te.jsx)(wy,{label:"Anrede (Vorname, per Sie)",children:(0,Te.jsx)(gy,{name:"greeting",value:g.greeting,onFocus:ce,onChange:e=>se("greeting",e.target.value),"data-testid":"automail-greeting"})}),(0,Te.jsxs)("div",{className:"space-y-1.5",children:[(0,Te.jsx)("span",{className:"block text-xs font-semibold text-muted-foreground",children:"Textk\xf6rper (Formatierung: St\xe4rke, Farbe, Gr\xf6\xdfe \u2026)"}),(0,Te.jsx)(lre,{ref:K,value:g.body,onChange:e=>se("body",e),onFocus:()=>{W.current="EDITOR"}})]}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,Te.jsx)(wy,{label:"Button-Text",children:(0,Te.jsx)(gy,{name:"button_text",value:g.button_text,onFocus:ce,onChange:e=>se("button_text",e.target.value),"data-testid":"automail-button-text"})}),(0,Te.jsx)(wy,{label:"Button-Link (z. B. {link})",children:(0,Te.jsx)(gy,{name:"button_url",value:g.button_url,onFocus:ce,onChange:e=>se("button_url",e.target.value),"data-testid":"automail-button-url"})})]}),(0,Te.jsxs)("div",{className:"pt-1",children:[(0,Te.jsx)("span",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"admin.automails.placeholder",as:"span",children:"Platzhalter"})}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-2","data-testid":"placeholder-bar",children:$ae.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>{var t;const n=W.current;if("EDITOR"!==n){if(n&&n.name){var a,r;const t=n.name,i=null!==(a=n.selectionStart)&&void 0!==a?a:(g[t]||"").length,s=null!==(r=n.selectionEnd)&&void 0!==r?r:i,o=g[t]||"";return se(t,o.slice(0,i)+e+o.slice(s)),void setTimeout(()=>{n.focus();const t=i+e.length;try{n.setSelectionRange(t,t)}catch(rse){}},0)}null===(t=K.current)||void 0===t||t.insert(e)}else{var i;null===(i=K.current)||void 0===i||i.insert(e)}})(e),"data-testid":"placeholder-".concat(e.replace(/[{}]/g,"")),className:"text-xs font-mono px-2.5 py-1 rounded-full border border-border bg-white hover:bg-accent hover:border-primary transition-colors",children:e},e))})]}),(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-2 pt-4 mt-1 border-t border-border","data-testid":"automail-actions-bottom",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>le(),"data-testid":"automail-preview-btn-bottom",children:[(0,Te.jsx)(tS,{size:16})," ",(0,Te.jsx)(cy,{id:"common.preview",as:"span",children:"Vorschau"})]}),(0,Te.jsxs)(fy,{onClick:oe,disabled:j,"data-testid":"automail-save-bottom",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})]})]})]})]}),de&&(0,Te.jsxs)(by,{className:"p-5","data-testid":"automail-attachment",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2 mb-3",children:[(0,Te.jsx)(D_,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"automails.qr_heading",children:"Anhang: QR-Code-PDF"})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground leading-relaxed mb-4",children:(0,Te.jsx)(cy,{id:"automails.qr_note",as:"span",children:"Dieser Mail wird automatisch ein druckfertiges QR-Code-PDF des anonymen Teilnahme-Links angeh\xe4ngt. W\xe4hlen Sie zwischen dem Flyer (4 Kacheln zum Ausschneiden) und dem gro\xdfformatigen Plakat (ein QR-Code pro A4-Seite). Beim Versand wird der QR individuell mit dem echten Umfrage-Link der jeweiligen Umfrage erzeugt."})}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>me("/automails/qr/preview?variant=flyer","PERSENTIS-QR-Flyer-Vorschau.pdf"),"data-testid":"qr-preview-download-flyer",children:[(0,Te.jsx)(zE,{size:16})," Flyer-Vorschau (4 pro Seite)"]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>me("/automails/qr/preview?variant=poster","PERSENTIS-QR-Plakat-Vorschau.pdf"),"data-testid":"qr-preview-download-poster",children:[(0,Te.jsx)(zE,{size:16})," Plakat-Vorschau (1 pro Seite)"]})]})]}),ue&&(0,Te.jsx)(dre,{}),fe&&(0,Te.jsxs)(by,{className:"p-5","data-testid":"automail-meta",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2 mb-4",children:[(0,Te.jsx)(GS,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"automails.meta_heading",children:"Details zu dieser Mail"})]}),ge.length>0&&(0,Te.jsxs)("div",{className:"mb-4 rounded-md border border-red-200 bg-red-50 p-3.5","data-testid":"drift-alert",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm font-semibold text-red-700 mb-2",children:[(0,Te.jsx)(k_,{size:15})," Prozess-Abweichung erkannt"]}),(0,Te.jsx)("ul",{className:"space-y-1.5",children:ge.map(e=>(0,Te.jsxs)("li",{className:"text-sm text-red-800 leading-relaxed","data-testid":"drift-item-".concat(e.key),children:[(0,Te.jsxs)("span",{className:"font-semibold",children:[e.label,":"]}
2)," Prozess ist jetzt \u201e",e.value,'", die Mail wurde zuletzt mit \u201e',e.previous,'" gespeichert \u2013 bitte Mailtext anpassen und speichern.']},e.key))})]}),(0,Te.jsxs)("dl",{className:"space-y-4",children:[(0,Te.jsx)(sre,{label:"Beschreibung",value:(0,Te.jsx)(cy,{id:"automails.meta.".concat(s,".description"),children:fe.description}),testid:"meta-description"}),(0,Te.jsx)(sre,{label:"Empf\xe4nger",value:(0,Te.jsx)(cy,{id:"automails.meta.".concat(s,".recipient"),children:fe.recipient}),testid:"meta-recipient"}),(0,Te.jsx)(sre,{label:"Ausl\xf6ser",value:(0,Te.jsx)(cy,{id:"automails.meta.".concat(s,".trigger"),children:fe.trigger}),testid:"meta-trigger"}),(0,Te.jsx)(sre,{label:"Zeitpunkt",value:(0,Te.jsx)(cy,{id:"automails.meta.".concat(s,".timing"),children:fe.timing}),testid:"meta-timing"})]})]}),(0,Te.jsxs)(by,{className:"p-5",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2 mb-4",children:[(0,Te.jsx)(KE,{size:18})," ",(0,Te.jsx)(cy,{id:"automails.versions_heading",children:"Versionen"})]}),(0,Te.jsxs)("div",{className:"space-y-2","data-testid":"automail-versions",children:[0===pe.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"admin.automails.no_versions",as:"span",children:"Noch keine Versionen."})}),pe.map(e=>(0,Te.jsx)(_e,{v:e},e.version))]}),he.length>0&&(0,Te.jsxs)("div",{className:"mt-3",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>_(e=>!e),"data-testid":"automail-older-toggle",className:"flex items-center gap-2 text-sm font-semibold text-muted-foreground hover:text-foreground transition-colors",children:[(0,Te.jsx)(xw,{size:16,className:"transition-transform ".concat(S?"rotate-180":"")}),"\xc4ltere Versionen (",he.length,")"]}),S&&(0,Te.jsx)("div",{className:"mt-2 space-y-2","data-testid":"automail-older-list",children:he.map(e=>(0,Te.jsx)(_e,{v:e},e.version))})]})]})]})]}),E&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50","data-testid":"automail-preview-modal",onClick:()=>C(!1),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl overflow-hidden",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-border",children:[(0,Te.jsxs)("h3",{className:"font-heading text-base flex items-center gap-2",children:[(0,Te.jsx)(tS,{size:16})," ",(0,Te.jsx)(cy,{id:"admin.automails.preview_heading",as:"span",children:"Vorschau (so wird die Mail empfangen)"})]}),(0,Te.jsx)("button",{onClick:()=>C(!1),"data-testid":"automail-preview-close",className:"text-muted-foreground hover:text-foreground",children:(0,Te.jsx)(Iv,{size:20})})]}),(0,Te.jsxs)("div",{className:"bg-zinc-50 border-b border-border px-5 py-3",children:[(0,Te.jsx)("div",{className:"font-heading text-base mb-2",children:A.subject||"\u2014"}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-xs",children:[(0,Te.jsx)("span",{className:"w-7 h-7 rounded-full bg-primary text-white flex items-center justify-center font-bold shrink-0",children:"P"}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"font-semibold truncate",children:A.from||"PERSENTIS"}),(0,Te.jsxs)("div",{className:"text-muted-foreground",children:["An: ",A.to||""]})]})]})]}),(0,Te.jsx)("iframe",{title:"mail-preview",srcDoc:A.html,className:"w-full bg-white",style:{height:520,border:0},"data-testid":"automail-preview-frame"})]})})]})}class mre{constructor(){this.componentControls=new Set}subscribe(e){return this.componentControls.add(e),()=>this.componentControls.delete(e)}start(e,t){this.componentControls.forEach(n=>{n.start(e.nativeEvent||e,t)})}}const pre=()=>new mre;const hre=(0,a.createContext)(null);function fre(e){const t=$s(()=>kl(e));if((0,a.useContext)(Js).isStatic){const n=Le((0,a.useState)(e),2)[1];(0,a.useEffect)(()=>t.on("change",n),[])}return t}function gre(e,t){const n=fre(t()),a=()=>n.set(t());return a(),lo(()=>{const t=()=>dl.preRender(a,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),ul(a)}}),n}function xre(e,t,n,a){if("function"===typeof e)return function(e){wl.current=[],e();const t=gre(wl.current,e);return wl.current=void 0,t}(e);const r="function"===typeof t?t:function(){const e=!Array.isArray(arguments.length<=0?void 0:arguments[0]),t=e?0:-1,n=0+t<0||arguments.length<=0+t?void 0:arguments[0+t],a=2+t<0||arguments.length<=2+t?void 0:arguments[2+t],r=3+t<0||arguments.length<=3+t?void 0:arguments[3+t],i=nu(1+t<0||arguments.length<=1+t?void 0:arguments[1+t],a,d({mixer:(s=a[0],(e=>e&&"object"===typeof e&&e.mix)(s)?s.mix:void 0)},r));var s;return e?i(n):i}(t,n,a);return Array.isArray(e)?vre(e,r):vre([e],e=>{let t=Le(e,1)[0];return r(t)})}function vre(e,t){const n=$s(()=>[]);return gre(e,()=>{n.length=0;const a=e.length;for(let t=0;t<a;t++)n[t]=e[t].get();return t(n)})}const bre=["children","style","value","as","onDrag","layout"];function yre(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return zl(e)?e:fre(t)}function wre(e,t){let n=e.children,r=e.style,i=void 0===r?{}:r,s=e.value,o=e.as,l=void 0===o?"li":o,c=e.onDrag,u=e.layout,m=void 0===u||u,p=Be(e,bre);const h=$s(()=>ff[l]),f=(0,a.useContext)(hre),g={x:yre(i.x),y:yre(i.y)},x=xre([g.x,g.y],e=>{let t=Le(e,2),n=t[0],a=t[1];return n||a?1:"unset"});
2Gc(Boolean(f),"Reorder.Item must be a child of Reorder.Group");const v=f.axis,b=f.registerItem,y=f.updateOrder;return(0,Te.jsx)(h,d(d({drag:v},p),{},{dragSnapToOrigin:!0,style:d(d({},i),{},{x:g.x,y:g.y,zIndex:x}),layout:m,onDrag:(e,t)=>{const n=t.velocity;n[v]&&y(s,g[v].get(),n[v]),c&&c(e,t)},onLayoutMeasure:e=>b(s,e),ref:t,ignoreStrict:!0,children:n}))}const jre=(0,a.forwardRef)(wre);function kre(e,t,n,a){if(!a)return e;const r=e.findIndex(e=>e.value===t);if(-1===r)return e;const i=a>0?1:-1,s=e[r+i];if(!s)return e;const o=e[r],l=s.layout,c=md(l.min,l.max,.5);return 1===i&&o.layout.max+n>c||-1===i&&o.layout.min+n<c?function(e,t,n){let a=Me(qe(e)).slice(0);const r=t<0?a.length+t:t;if(r>=0&&r<a.length){const e=n<0?a.length+n:n,r=Le(a.splice(t,1),1)[0];a.splice(e,0,r)}return a}(e,r,r+i):e}const Nre=["children","as","axis","onReorder","values"];function Sre(e,t){let n=e.children,r=e.as,i=void 0===r?"ul":r,s=e.axis,o=void 0===s?"y":s,l=e.onReorder,c=e.values,u=Be(e,Nre);const m=$s(()=>ff[i]),p=[],h=(0,a.useRef)(!1);Gc(Boolean(c),"Reorder.Group must be provided a values prop");const f={axis:o,registerItem:(e,t)=>{const n=p.findIndex(t=>e===t.value);-1!==n?p[n].layout=t[o]:p.push({value:e,layout:t[o]}),p.sort(Ere)},updateOrder:(e,t,n)=>{if(h.current)return;const a=kre(p,e,t,n);p!==a&&(h.current=!0,l(a.map(zre).filter(e=>-1!==c.indexOf(e))))}};return(0,a.useEffect)(()=>{h.current=!1}),(0,Te.jsx)(m,d(d({},u),{},{ref:t,ignoreStrict:!0,children:(0,Te.jsx)(hre.Provider,{value:f,children:n})}))}const _re=(0,a.forwardRef)(Sre);function zre(e){return e.value}function Ere(e,t){return e.layout.min-t.layout.min}const Cre=["#2a2a2a","#75A33D","#1F2A44","#C0392B","#2980B9","#E67E22"];function Pre(e){let t=e.value,n=e.onChange;const r=(0,a.useRef)(null);(0,a.useEffect)(()=>{const e=r.current;e&&e.innerHTML!==(t||"")&&document.activeElement!==e&&(e.innerHTML=t||"")},[t]);const i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const a=r.current;a.focus();try{document.execCommand("styleWithCSS",!1,!0)}catch(rse){}document.execCommand(e,!1,t),n(a.innerHTML)},s=e=>{let t=e.onClick,n=e.title,a=e.testid,r=e.children;return(0,Te.jsx)("button",{type:"button",title:n,"data-testid":a,onMouseDown:e=>{e.preventDefault(),t()},className:"w-8 h-8 flex items-center justify-center rounded border border-border text-foreground hover:bg-zinc-100 transition-colors",children:r})};return(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex flex-wrap items-center gap-1.5 mb-2","data-testid":"rt-toolbar",children:[(0,Te.jsx)(s,{onClick:()=>i("bold"),title:"Fett",testid:"rte-bold",children:(0,Te.jsx)(OE,{size:15})}),(0,Te.jsx)(s,{onClick:()=>i("italic"),title:"Kursiv",testid:"rte-italic",children:(0,Te.jsx)(DE,{size:15})}),(0,Te.jsx)(s,{onClick:()=>i("underline"),title:"Unterstrichen",testid:"rte-underline",children:(0,Te.jsx)(oC,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(s,{onClick:()=>i("fontSize","2"),title:"Klein",testid:"rte-size-s",children:(0,Te.jsx)("span",{className:"text-[10px] font-bold leading-none",children:"S"})}),(0,Te.jsx)(s,{onClick:()=>i("fontSize","4"),title:"Normal",testid:"rte-size-m",children:(0,Te.jsx)("span",{className:"text-[13px] font-bold leading-none",children:"M"})}),(0,Te.jsx)(s,{onClick:()=>i("fontSize","6"),title:"Gro\xdf",testid:"rte-size-l",children:(0,Te.jsx)("span",{className:"text-[16px] font-bold leading-none",children:"L"})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(s,{onClick:()=>i("insertUnorderedList"),title:"Aufz\xe4hlung",testid:"rte-list",children:(0,Te.jsx)(LE,{size:15})}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsxs)("span",{className:"flex items-center gap-1","data-testid":"rte-colors",children:[Cre.map(e=>(0,Te.jsx)("button",{type:"button",title:"Farbe ".concat(e),"data-testid":"rte-color-".concat(e.replace("#","")),onMouseDown:t=>{t.preventDefault(),i("foreColor",e)},className:"w-5 h-5 rounded-full border border-border",style:{backgroundColor:e}},e)),(0,Te.jsxs)("label",{className:"w-6 h-6 flex items-center justify-center rounded border border-border
2cursor-pointer",title:"Eigene Farbe",children:[(0,Te.jsx)(yS,{size:13}),(0,Te.jsx)("input",{type:"color",className:"sr-only",onChange:e=>i("foreColor",e.target.value),"data-testid":"rte-color-custom"})]})]}),(0,Te.jsx)("span",{className:"w-px h-6 bg-border mx-0.5"}),(0,Te.jsx)(s,{onClick:()=>i("removeFormat"),title:"Formatierung entfernen",testid:"rte-clear",children:(0,Te.jsx)(lC,{size:15})})]}),(0,Te.jsx)("div",{ref:r,contentEditable:!0,suppressContentEditableWarning:!0,onInput:()=>n(r.current.innerHTML),"data-testid":"rt-editor-content",className:"min-h-[200px] w-full rounded-md border border-input bg-white px-3 py-2 text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40 [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2"})]})}const Are={Allgemein:{label:"Allgemeine Ergebnistexte",icon:dS},"Aufgabenattraktivit\xe4t":{label:"Dimension Aufgabenattraktivit\xe4t",icon:B5},"Beziehungsqualit\xe4t":{label:"Dimension Beziehungsqualit\xe4t",icon:_f}},Tre=["Allgemein","Aufgabenattraktivit\xe4t","Beziehungsqualit\xe4t"],Rre={GEN:{label:"Allgemein",icon:dS},A:{label:"Dimension Aufgabenattraktivit\xe4t",icon:B5},B:{label:"Dimension Beziehungsqualit\xe4t",icon:_f}};function Ore(e){let t=e.title,n=e.displayTitle,a=e.color,r=e.icon,i=e.values,s=e.onChange;const o=(e,t,n)=>s(i.map((a,r)=>r===e?d(d({},a),{},{[t]:n}):a));return(0,Te.jsxs)("div",{className:"rounded-lg border p-3 ".concat(a.border," ").concat(a.bg),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-1.5 text-xs font-bold uppercase tracking-wide ".concat(a.text," mb-2"),children:[(0,Te.jsx)(r,{size:13})," ",n||t," (",i.length,")"]}),(0,Te.jsxs)("div",{className:"grid grid-cols-[1fr_1fr_auto] gap-1.5 items-center mb-1 px-0.5",children:[(0,Te.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:(0,Te.jsx)(cy,{id:"resulttexts.col_original",as:"span",children:"Original"})}),(0,Te.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wide text-muted-foreground",children:(0,Te.jsx)(cy,{id:"resulttexts.col_short",as:"span",children:"Kurztext (Ergebnis)"})}),(0,Te.jsx)("span",{})]}),(0,Te.jsxs)("div",{className:"space-y-1.5",children:[i.map((e,n)=>(0,Te.jsxs)("div",{className:"grid grid-cols-[1fr_1fr_auto] gap-1.5 items-center",children:[(0,Te.jsx)("input",{value:e.text,onChange:e=>o(n,"text",e.target.value),"data-testid":"aspect-".concat(t,"-text-").concat(n),placeholder:"Urspr\xfcngliche Fragestellung",className:"rounded-md border border-border bg-white px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("input",{value:e.short,onChange:e=>o(n,"short",e.target.value),"data-testid":"aspect-".concat(t,"-short-").concat(n),placeholder:"Kurztext",className:"rounded-md border border-border bg-white px-2 py-1 text-sm focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>
2s(i.filter((t,n)=>n!==e)))(n),title:"Entfernen","data-testid":"aspect-remove-".concat(t,"-").concat(n),className:"w-6 h-6 flex items-center justify-center rounded text-muted-foreground hover:text-[#C0392B] hover:bg-zinc-100",children:(0,Te.jsx)(Iv,{size:13})})]},n)),(0,Te.jsxs)("button",{type:"button",onClick:()=>s([...i,{text:"",short:""}]),className:"text-xs font-semibold text-primary flex items-center gap-1 hover:underline mt-1","data-testid":"aspect-add-".concat(t),children:[(0,Te.jsx)(Pf,{size:13})," Punkt hinzuf\xfcgen"]})]})]})}function Dre(e){let t=e.item,n=e.onSaved,r=e.onDeleted;const i=$s(pre),s=Le((0,a.useState)(t.heading||""),2),o=s[0],l=s[1],c=Le((0,a.useState)(t.question||""),2),d=c[0],u=c[1],m=Le((0,a.useState)(t.pos||[]),2),p=m[0],h=m[1],f=Le((0,a.useState)(t.neg||[]),2),g=f[0],x=f[1],v=Le((0,a.useState)(!!t.reverse),2),b=v[0],y=v[1],w=Le((0,a.useState)(!1),2),j=w[0],k=w[1];(0,a.useEffect)(()=>{l(t.heading||""),u(t.question||""),h(t.pos||[]),x(t.neg||[]),y(!!t.reverse)},[t]);const N=o!==(t.heading||"")||d!==(t.question||"")||b!==!!t.reverse||JSON.stringify(p)!==JSON.stringify(t.pos||[])||JSON.stringify(g)!==JSON.stringify(t.neg||[]);return(0,Te.jsxs)(jre,{value:t,dragListener:!1,dragControls:i,className:"bg-white rounded-xl border border-border p-5 shadow-sm","data-testid":"fb-item-".concat(t.item_id),children:[(0,Te.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,Te.jsx)("button",{type:"button",onPointerDown:e=>i.start(e),className:"mt-1 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground touch-none",title:"Ziehen zum Sortieren","data-testid":"fb-drag-".concat(t.item_id),children:(0,Te.jsx)(g9,{size:18})}),(0,Te.jsx)("span",{className:"mt-1.5 text-xs font-mono font-bold text-muted-foreground shrink-0",children:t.item_id}),(0,Te.jsx)("div",{className:"flex-1 min-w-0",children:(0,Te.jsx)("input",{value:o,onChange:e=>l(e.target.value),placeholder:"\xdcberschrift (Thema)","data-testid":"fb-heading-".concat(t.item_id),className:"w-full font-semibold text-[15px] rounded-md border border-transparent hover:border-border focus:border-border px-2 py-1 focus:outline-none focus:ring-2 focus:ring-primary/40"})}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:["GEN"!==t.item_id&&(0,Te.jsx)("button",{type:"button",onClick:async()=>{if(window.confirm("Frage ".concat(t.item_id," wirklich l\xf6schen? Dies betrifft Umfrage und Auswertung.")))try{await Ps.delete("/care-catalog/".concat(t.item_id)),Ia.success("".concat(t.item_id," gel\xf6scht")),r()}catch(rse){Ia.error(Cs(rse))}},title:"L\xf6schen","data-testid":"fb-delete-".concat(t.item_id),className:"w-8 h-8 flex items-center justify-center rounded-md border border-border text-muted-foreground hover:text-[#C0392B] hover:border-[#C0392B]/40",children:(0,Te.jsx)(y_,{size:15})}),(0,Te.jsxs)(fy,{onClick:async()=>{k(!0);try{await Ps.patch("/care-catalog/".concat(t.item_id),{heading:o,question:d,pos:p,neg:g,reverse:b}),Ia.success("".concat(t.item_id," gespeichert")),n()}catch(rse){Ia.error(Cs(rse))}k(!1)},disabled:j||!N,"data-testid":"fb-save-".concat(t.item_id),children:[j?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(wE,{size:15})," Speichern"]})]})]}),(0,Te.jsx)("textarea",{value:d,onChange:e=>u(e.target.value),rows:2,placeholder:"Fragestellung","data-testid":"fb-question-".concat(t.item_id),className:"w-full rounded-lg border border-border p-2.5 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/40 mb-3"}),(0,Te.jsxs)("label",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-3 cursor-pointer w-fit",children:[(0,Te.jsx)("input",{type:"checkbox",checked:b,onChange:e=>y(e.target.checked),"data-testid":"fb-reverse-".concat(t.item_id)}),"Revers-Item (Skala wird invertiert)"]}),(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsx)(Ore,{title:"Positiv",displayTitle:"A05"===t.item_id?"Ich w\xfcnsche mir MEHR":"Positiv",icon:L5,values:p,onChange:h,color:{border:"border-primary/30",bg:"bg-primary/5",text:"text-[#5c8230]"}}),"A05"!==t.item_id&&(0,Te.jsx)(Ore,{title:"Negativ",icon:eae,values:g,onChange:x,color:{border:"border-[#C0392B]/30",bg:"bg-[#C0392B]/5",text:"text-[#a4322a]"}})]})]})}function Mre(){const e=Le((0,a.useState)(null),2),t=e[0],n=e[1],r=Le((0,a.useState)(!1),2),i=r[0],s=r[1],o=(0,a.useCallback)(()=>{s(!0),Ps.get("/care-catalog").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>s(!1))},[]);(0,a.useEffect)(()=>{o()},[o]);const l=(e,a)=>{const r=t.map((t,n)=>n===e?d(d({},t),{},{items:a}):t);n(r),(async e=>{const t=[];
2e.forEach(e=>e.items.forEach(e=>t.push(e.item_id)));try{await Ps.post("/care-catalog/reorder",{order:t})}catch(rse){Ia.error(Cs(rse)),o()}})(r)};return i&&!t?(0,Te.jsxs)(by,{className:"p-10 flex items-center justify-center gap-2 text-muted-foreground","data-testid":"tv-feedback-loading",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Fragenkatalog wird geladen \u2026"]}):t?(0,Te.jsxs)("div",{className:"space-y-8 max-w-4xl","data-testid":"tv-feedback-view",children:[(0,Te.jsxs)("div",{className:"rounded-lg bg-[#1F2A44]/5 border border-[#1F2A44]/15 px-4 py-3 text-sm text-[#1F2A44]",children:["\xc4nderungen am Fragenkatalog wirken sich direkt auf die ",(0,Te.jsx)("b",{children:"Umfrage"})," und die ",(0,Te.jsx)("b",{children:"Auswertung"})," aus. Ziehen Sie Karten am Griff, um die Reihenfolge zu \xe4ndern."]}),t.map((e,t)=>{var n,a;const r=(null===(n=Rre[e.dim])||void 0===n?void 0:n.icon)||pS;return(0,Te.jsxs)("div",{"data-testid":"fb-dim-".concat(e.dim),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-2 mb-3",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(r,{size:18,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(null===(a=Rre[e.dim])||void 0===a?void 0:a.label)||e.label})]}),("A"===e.dim||"B"===e.dim)&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>(async e=>{try{await Ps.post("/care-catalog",{dim:e,question:"",heading:"Neue Frage"}),Ia.success("Frage hinzugef\xfcgt"),o()}catch(rse){Ia.error(Cs(rse))}})(e.dim),"data-testid":"fb-add-".concat(e.dim),children:[(0,Te.jsx)(Pf,{size:15})," Frage hinzuf\xfcgen"]})]}),(0,Te.jsx)(_re,{axis:"y",values:e.items,onReorder:e=>l(t,e),className:"space-y-4",children:e.items.map(e=>(0,Te.jsx)(Dre,{item:e,onSaved:o,onDeleted:o},e.item_id))})]},e.dim)})]}):null}function Ire(){var e;const t=Le((0,a.useState)([]),2),n=t[0],r=t[1],i=Le((0,a.useState)(null),2),s=i[0],o=i[1],l=Le((0,a.useState)(null),2),c=l[0],d=l[1],u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)("report"),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=Le((0,a.useState)(!1),2),w=y[0],j=y[1],k=(0,a.useCallback)(()=>{Ps.get("/result-texts").then(e=>{r(e.data),!s&&e.data.length&&o(e.data[0].key)})},[s]);(0,a.useEffect)(()=>{k()},[k]);const N=(0,a.useCallback)(e=>{Ps.get("/result-texts/".concat(e)).then(e=>{d(e.data),p(e.data.current?e.data.current.body:e.data.default),j(!1)}).catch(e=>Ia.error(Cs(e)))},[]);(0,a.useEffect)(()=>{s&&N(s)},[s,N]);const S=Tre.map(e=>({group:e,items:n.filter(t=>t.group===e)})).filter(e=>e.items.length),_=null===c||void 0===c?void 0:c.current,z=!!c&&m!==(_?_.body:c.default);return(0,Te.jsxs)("div",{"data-testid":"result-texts-page",children:[(0,Te.jsx)(ky,{title:"Textverarbeitung",titleId:"result_texts.title",subtitle:"PERSENTIS Care \u2013 Report & Feedback verwalten",subtitleId:"result_texts.subtitle"}),(0,Te.jsx)("div",{className:"flex items-center gap-2 mb-6","data-testid":"tv-tabs",children:[["report","Report"],["feedback","Feedback"]].map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("button",{onClick:()=>g(n),"data-testid":"tv-tab-".concat(n),className:"px-4 py-2 rounded-full text-sm font-semibold transition-colors ".concat(f===n?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:a},n)})}),"feedback"===f&&(0,Te.jsx)(Mre,{}),(0,Te.jsxs)("div",{className:"flex gap-6 items-start ".concat("report"===f?"":"hidden"),children:[(0,Te.jsx)(by,{className:"w-[320px] shrink-0 p-2 sticky top-6 max-h-[calc(100vh-6rem)] overflow-y-auto","data-testid":"rt-list",children:S.map(e=>{var t,n;let a=e.group,r=e.items;const i=(null===(t=Are[a])||void 0===t?void 0:t.icon)||pS;return(0,Te.jsxs)("div",{className:"mb-4 last:mb-0",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 px-2 py-1 text-xs font-bold uppercase tracking-wide text-muted-foreground",children:[(0,Te.jsx)(i,{size:14,className:"text-primary"})," ",(null===(n=Are[a])||void 0===n?void 0:n.label)||a]}),(0,Te.jsx)("div",{className:"mt-1 space-y-0.5",children:r.map(e=>(0,Te.jsxs)("button",{onClick:()=>
2o(e.key),"data-testid":"rt-item-".concat(e.key),className:"w-full flex items-center justify-between gap-2 text-left text-sm px-3 py-2 rounded-md transition-colors ".concat(s===e.key?"bg-accent text-accent-foreground font-semibold":"hover:bg-zinc-100 text-foreground"),children:[(0,Te.jsx)("span",{className:"min-w-0 truncate",children:e.label}),e.is_default?(0,Te.jsx)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:"Standard"}):(0,Te.jsxs)("span",{className:"text-[10px] text-primary font-semibold shrink-0",children:["v",e.version]})]},e.key))})]},a)})}),(0,Te.jsx)("div",{className:"flex-1 min-w-0","data-testid":"rt-editor",children:c&&(0,Te.jsxs)(by,{className:"p-6",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-4 mb-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:(null===(e=Are[c.group])||void 0===e?void 0:e.label)||c.group}),(0,Te.jsx)("h3",{className:"font-heading text-xl","data-testid":"rt-active-label",children:c.label})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>j(e=>!e),"data-testid":"rt-history-toggle",children:[(0,Te.jsx)(KE,{size:16})," Versionen (",c.versions.length,")",(0,Te.jsx)(xw,{size:14,className:w?"rotate-180 transition-transform":"transition-transform"})]}),(0,Te.jsxs)(fy,{onClick:async()=>{b(!0);try{await Ps.post("/result-texts/".concat(s),{body:m}),Ia.success("Text gespeichert (neue Version)"),N(s),k()}catch(rse){Ia.error(Cs(rse))}b(!1)},disabled:v||!z,"data-testid":"rt-save-btn",children:[(0,Te.jsx)(wE,{size:16})," ",(0,Te.jsx)(cy,{id:"common.save",as:"span",children:"Speichern"})]})]})]}),w&&(0,Te.jsxs)("div",{className:"mb-4 rounded-lg border border-border divide-y","data-testid":"rt-history-list",children:[0===c.versions.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground p-3",children:(0,Te.jsx)(cy,{id:"resulttexts.no_version",as:"span",children:"Noch keine gespeicherte Version \u2013 aktuell wird der Standardtext verwendet."})}),c.versions.map(e=>{return(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 p-3 text-sm",children:[(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsxs)("span",{className:"font-semibold",children:["v",e.version]}),e.is_current&&(0,Te.jsx)("span",{className:"ml-2 text-[10px] text-primary font-semibold",children:(0,Te.jsx)(cy,{id:"common.current",as:"span",children:"AKTUELL"})}),(0,Te.jsxs)("span",{className:"ml-2 text-muted-foreground",children:[(t=e.created_at,t?new Date(t).toLocaleString("de-DE"):"\u2014")," \xb7 ",e.created_by]}),(0,Te.jsx)("p",{className:"text-muted-foreground truncate mt-0.5",children:e.body})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{p(e.body),j(!1),Ia.info("Version ".concat(e.version," geladen \u2013 zum \xdcbernehmen speichern."))},"data-testid":"rt-load-v".concat(e.version),children:[(0,Te.jsx)(Ff,{size:14})," Laden"]})]}
2,e.version);var t})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"block text-sm font-semibold mb-2",children:["Beschreibung ",(0,Te.jsx)("span",{className:"font-normal text-muted-foreground",children:"(Tooltip im Frontend)"})]}),(0,Te.jsx)(Pre,{value:m,onChange:p}),(0,Te.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,Te.jsx)("button",{onClick:()=>{c&&p(c.default)},className:"text-xs text-muted-foreground hover:text-foreground underline","data-testid":"rt-reset-default",children:(0,Te.jsx)(cy,{id:"resulttexts.insert_default",as:"span",children:"Standardtext einsetzen"})}),(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:_?"Aktuell v".concat(_.version):"Standardtext aktiv"})]})]}),(0,Te.jsxs)("div",{className:"mt-6",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground mb-2",children:(0,Te.jsx)(cy,{id:"resulttexts.preview_desc",as:"span",children:"Vorschau Beschreibung"})}),(0,Te.jsx)("div",{className:"rounded-lg bg-zinc-50 border border-border p-4 text-sm text-muted-foreground [&_ul]:list-disc [&_ul]:pl-5 [&_p]:mb-2","data-testid":"rt-preview",dangerouslySetInnerHTML:{__html:m||"<span class='italic'>Kein Text</span>"}})]})]})})]})]})}const Fre=kf("folder-plus",[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);function Lre(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)(null),2),l=o[0],c=o[1],u=Le((0,a.useState)(!0),2),m=u[0],p=u[1],h=Le((0,a.useState)(!1),2),f=h[0],g=h[1],x=Le((0,a.useState)("[]"),2),v=x[0],b=x[1],y=(0,a.useCallback)(()=>{p(!0),Ps.get("/analytics-question-catalog").then(e=>{const t=e.data.categories||[];n(t),s(e.data.scales||[]),b(JSON.stringify(t)),c(e=>{var n;return t.some(t=>t.id===e)?e:(null===(n=t[0])||void 0===n?void 0:n.id)||null})}).catch(e=>Ia.error(Cs(e))).finally(()=>p(!1))},[]);(0,a.useEffect)(()=>{y()},[y]);const w=JSON.stringify(t)!==v,j=t.find(e=>e.id===l)||null,k=(e,t)=>n(n=>n.map(n=>n.id===e?d(d({},n),t):n)),N=(e,t)=>k(e,{questions:t}),S=(e,n,a)=>{const r=t.find(t=>t.id===e);N(e,r.questions.map((e,t)=>t===n?d(d({},e),a):e))},_=(e,n,a)=>{const r=[...t.find(t=>t.id===e).questions],i=n+a;if(!(i<0||i>=r.length)){var s=[r[i],r[n]];r[n]=s[0],r[i]=s[1],N(e,r)}};return(0,Te.jsxs)("div",{"data-testid":"analytics-zusatzfragen-view",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-end gap-2 mb-4",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:async()=>{if(window.confirm("Katalog auf die Standard-Vorschl\xe4ge zur\xfccksetzen? Ihre \xc4nderungen gehen verloren."))try{var e;const t=(await Ps.post("/analytics-question-catalog/reset")).data.categories||[];n(t),b(JSON.stringify(t)),c((null===(e=t[0])||void 0===e?void 0:e.id)||null),Ia.success("Auf Standard zur\xfcckgesetzt")}catch(rse){Ia.error(Cs(rse))}},"data-testid":"catalog-reset",children:[(0,Te.jsx)(Ff,{size:15})," Standard"]}),(0,Te.jsxs)(fy,{onClick:async()=>{g(!0);try{const e=t.map(e=>d(d({},e),{},{name:(e.name||"").trim(),questions:(e.questions||[]).filter(e=>(e.text||"").trim())})).filter(e=>e.name),a=(await Ps.put("/analytics-question-catalog",{categories:e})).data.categories||[];n(a),b(JSON.stringify(a)),c(e=>{var t;return a.some(t=>t.id===e)?e:(null===(t=a[0])||void 0===t?void 0:t.id)||null}),Ia.success("Fragenkatalog gespeichert")}catch(rse){Ia.error(Cs(rse))}g(!1)},disabled:f||!w,"data-testid":"catalog-save",children:[f?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(wE,{size:15})," Speichern"]})]}),m?(0,Te.jsxs)(by,{className:"p-10 flex items-center justify-center gap-2 text-muted-foreground",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Katalog wird geladen \u2026"]}):(0,Te.jsxs)("div",{className:"flex gap-6 items-start",children:[(0,Te.jsxs)(by,{className:"w-[280px] shrink-0 p-2 sticky top-6 max-h-[calc(100vh-6rem)] overflow-y-auto","data-testid":"catalog-menu",children:[(0,Te.jsxs)("div",{className:"px-2 py-1 text-xs font-bold uppercase tracking-wide text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(pS,{size:14,className:"text-primary"})," Rubriken"]}),(0,Te.jsx)("div",{className:"mt-1 space-y-0.5",children:t.map(e=>(0,Te.jsxs)("button",{onClick:()=>c(e.id),"data-testid":"catalog-cat-".concat(e.id),className:"w-full flex items-center justify-between gap-2 text-left text-sm px-3 py-2 rounded-md transition-colors ".concat(l===e.id?"bg-accent text-accent-foreground font-semibold":"hover:bg-zinc-100 text-foreground"),children:[(0,Te.jsx)("span",{className:"min-w-0 truncate",children:e.name||"\u2014"}),(0,Te.jsx)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:(e.questions||[]).length})]},e.id))}),(0,Te.jsxs)("button",{onClick:()=>{const e="cat_new_".concat(Date.now());n(t=>[...t,{id:e,name:"Neue Rubrik",questions:[]}]),c(e)},"data-testid":"catalog-add-cat",className:"mt-2 w-full flex items-center gap-2 text-sm font-semibold text-primary px-3 py-2 rounded-md hover:bg-[#
2E5E7EB]",children:[(0,Te.jsx)(Fre,{size:15})," Neue Rubrik"]})]}),(0,Te.jsx)("div",{className:"flex-1 min-w-0","data-testid":"catalog-editor",children:j?(0,Te.jsxs)(by,{className:"p-6",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-3 mb-4",children:[(0,Te.jsx)("input",{value:j.name,onChange:e=>k(j.id,{name:e.target.value}),"data-testid":"catalog-cat-name",placeholder:"Rubrik-Name",className:"flex-1 font-heading text-xl rounded-md border border-transparent hover:border-border focus:border-border px-2 py-1 focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsx)("button",{type:"button",onClick:()=>(e=>{window.confirm("Rubrik inkl. aller Fragen wirklich entfernen? (Wirksam nach Speichern)")&&n(t=>{var n;const a=t.filter(t=>t.id!==e);return l===e&&c((null===(n=a[0])||void 0===n?void 0:n.id)||null),a})})(j.id),title:"Rubrik l\xf6schen","data-testid":"catalog-cat-delete",className:"w-9 h-9 shrink-0 flex items-center justify-center rounded-md border border-border text-muted-foreground hover:text-[#C0392B] hover:border-[#C0392B]/40",children:(0,Te.jsx)(y_,{size:16})})]}),(0,Te.jsxs)("div",{className:"space-y-2",children:[(j.questions||[]).map((e,n)=>(0,Te.jsxs)("div",{className:"flex items-start gap-2 rounded-lg border border-border p-2.5","data-testid":"catalog-q-".concat(n),children:[(0,Te.jsxs)("div",{className:"flex flex-col pt-1",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>_(j.id,n,-1),disabled:0===n,"data-testid":"catalog-q-up-".concat(n),className:"text-muted-foreground hover:text-primary disabled:opacity-30",children:(0,Te.jsx)(_E,{size:15})}),(0,Te.jsx)("button",{type:"button",onClick:()=>_(j.id,n,1),disabled:n===j.questions.length-1,"data-testid":"catalog-q-down-".concat(n),className:"text-muted-foreground hover:text-primary disabled:opacity-30",children:(0,Te.jsx)(xw,{size:15})})]}),(0,Te.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,Te.jsx)("textarea",{value:e.text,onChange:e=>S(j.id,n,{text:e.target.value}),rows:2,placeholder:"Fragestellung \u2026","data-testid":"catalog-q-text-".concat(n),className:"w-full rounded-md border border-border px-2.5 py-1.5 text-sm resize-none focus:outline-none focus:ring-2 focus:ring-primary/40"}),(0,Te.jsxs)("select",{value:e.type,onChange:e=>S(j.id,n,{type:e.target.value}),"data-testid":"catalog-q-type-".concat(n),className:"mt-1.5 border border-border rounded-md px-2 py-1 text-sm bg-white outline-none focus:ring-2 focus:ring-primary/40",children:[(0,Te.jsx)("option",{value:"rating",children:"Wertungsfrage"}),(0,Te.jsx)("option",{value:"open",children:"Offene Frage"})]})]}),(0,Te.jsx)("button",{type:"button",onClick:()=>((e,n)=>{const a=t.find(t=>t.id===e);N(e,a.questions.filter((e,t)=>t!==n))})(j.id,n),title:"Frage entfernen","data-testid":"catalog-q-remove-".concat(n),className:"w-8 h-8 shrink-0 flex items-center justify-center rounded-md border border-border text-muted-foreground hover:text-[#C0392B] hover:border-[#C0392B]/40",children:(0,Te.jsx)(y_,{size:14})})]},n)),0===(j.questions||[]).length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground italic py-2",children:"Keine Fragen in dieser Rubrik."})]}),(0,Te.jsxs)("button",{onClick:()=>(e=>{const n=t.find(t=>t.id===e);N(e,[...n.questions||[],{id:"".concat(e,"_new_").concat(Date.now()),type:"rating",text:""}])})(j.id),"data-testid":"catalog-add-q",className:"mt-3 flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline",children:[(0,Te.jsx)(Pf,{size:15})," Frage hinzuf\xfcgen"]}),(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground mt-4",children:["Wertungsfragen erhalten im Wizard automatisch eine passende Likert-Skala. Verf\xfcgbare Skalen: ",i.map(e=>e.name).join(", "),"."]})]}):(0,Te.jsx)(by,{className:"p-10 text-center text-muted-foreground",children:"Keine Rubrik ausgew\xe4hlt. Legen Sie links eine neue Rubrik an."})})]})]})}const Bre={employer_indicator:I5,bindungskraft:kf("magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]),stress:F5,engagement:Sw,zufriedenheit:q5,attraktivitaet:If,arbeitgeberangebot:Jne,orientierung:Dy,enps:L5,top_argumente:U5};function qre(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(null),2),i=r[0],s=r[1],o=Le((0,a.useState)("{}"),2),l=o[0],c=o[1],u=Le((0,a.useState)(null),2),m=u[0],p=u[1],h=Le((0,a.useState)(!0),2),f=h[0],g=h[1],x=Le((0,a.useState)(!1),2),v=x[0],b=x[1],y=(0,a.useCallback)(()=>{g(!0),Ps.get("/analytics/ergebnis-texts").then(e=>{n(e.data.groups||[]),s(e.data.values||{}),c(JSON.stringify(e.data.values||{})),p(t=>{var n,a,r;return null!==(n=e.data.groups)&&void 0!==n&&n.some(e=>e.key===t)?t:(null===(a=e.data.groups)||void 0===a||null===(r=a[0])||void 0===r?void 0:r.key)||null})}).catch(e=>Ia.error(Cs(e))).finally(()=>g(!1))},[]);(0,a.useEffect)(()=>{y()},[y]);const w=i&&JSON.stringify(i)!==l,j=t.find(e=>e.key===m)||null;return f||!i?(0,Te.jsxs)(by,{className:"p-10 flex items-center justify-center gap-2 text-muted-foreground","data-testid":"ergebnis-loading",children:[(0,Te.jsx)(Of,{size:18,className:"animate-spin"})," Ergebnis-Texte werden geladen \u2026"]}):(0,Te.jsxs)("div",{"data-testid":"analytics-ergebnis-view",children:[(0,Te.jsx)("div",{className:"flex items-center justify-end mb-4",children:(0,Te.jsxs)(fy,{onClick:async()=>{b(!0);try{const e=await Ps.put("/analytics/ergebnis-texts",{data:i});s(e.data.values),c(JSON.stringify(e.data.values)),Ia.success("Ergebnis-Texte gespeichert")}catch(rse){Ia.error(Cs(rse))}b(!1)},disabled:v||!w,"data-testid":"ergebnis-save",children:[v?(0,Te.jsx)(Of,{size:15,className:"animate-spin"}):(0,Te.jsx)(wE,{size:15})," Speichern"]})}),(0,Te.jsxs)("div",{className:"flex gap-6 items-start",children:[(0,Te.jsx)(by,{className:"w-[280px] shrink-0 p-2 sticky top-6","data-testid":"ergebnis-menu",children:(0,Te.jsx)("div",{className:"mt-1 space-y-0.5",children:t.map(e=>{const t=Bre[e.key]||pS,n="single"===e.type?1:(e.fields||[]).length;return(0,Te.jsxs)("button",{onClick:()=>p(e.key),"data-testid":"ergebnis-group-".concat(e.key),className:"w-full flex items-center justify-between gap-2 text-left text-sm px-3 py-2 rounded-md transition-colors ".concat(m===e.key?"bg-accent text-accent-foreground font-semibold":"hover:bg-zinc-100 text-foreground"),children:[(0,Te.jsxs)("span",{className:"min-w-0 flex items-center gap-2 truncate",children:[(0,Te.jsx)(t,{size:15,className:"text-primary shrink-0"})," ",e.label]}),(0,Te.jsx)("span",{className:"text-[10px] text-muted-foreground shrink-0",children:n})]},e.key)})})}),(0,Te.jsx)("div",{className:"flex-1 min-w-0","data-testid":"ergebnis-editor",children:j&&(0,Te.jsxs)(by,{className:"p-6",children:[(0,Te.jsx)("h3",{className:"font-heading text-xl mb-1","data-testid":"ergebnis-active-label",children:j.label}),j.hint&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-4",children:j.hint}),(0,Te.jsx)("div",{className:j.hint?"":"mt-3"}),"single"===j.type?(0,Te.jsxs)("label",{className:"block",children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:"Text"}),(0,Te.jsx)("textarea",{rows:4,value:i[j.key]||"",onChange:e=>{return t=j.key,n=e.target.value,s(e=>d(d({},e),{},{[t]:n}));var t,n},"data-testid":"ergebnis-single-".concat(j.key),className:"w-full px-3 py-2 rounded-md border border-border text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40"})]}):(0,Te.jsx)("div",{className:"space-y-4",children:(j.fields||[]).map(e=>(0,Te.jsxs)("label",{className:"block","data-testid":"ergebnis-field-".concat(j.key,"-").concat(e.key),children:[(0,Te.jsx)("span",{className:"text-xs font-semibold text-muted-foreground mb-1 block",children:e.label}),(0,Te.jsx)("textarea",{rows:2,value:(i[j.key]||{})[e.key]||"",onChange:t=>{return n=j.key,a=e.key,r=t.target.value,s(e=>d(d({},e),{},{[n]:d(d({},e[n]||{}),{},{[a]:r})}));var n,a,r},"data-testid":"ergebnis-input-".concat(j.key,"-").concat(e.key),className:"w-full px-3 py-2 rounded-md border border-border text-sm leading-relaxed focus:outline-none focus:ring-2 focus:ring-primary/40"})]},e.key))})]})})]})]})}function Ure(){const e=Le((0,a.useState)("zusatzfragen"),2),t=e[0],n=e[1];return(0,Te.jsxs)("div",{"data-testid":"analytics-catalog-page",children:[(0,Te.jsx)(ky,{title:"Textverarbeitung",titleId:"analytics_catalog.title",subt
2itle:"PERSENTIS Analytics \u2013 Zusatzfragen & Ergebnis-Texte verwalten",subtitleId:"analytics_catalog.subtitle"}),(0,Te.jsx)("div",{className:"flex items-center gap-2 mb-6","data-testid":"analytics-tv-tabs",children:[["zusatzfragen","Zusatzfragen"],["ergebnisse","Ergebnisse"]].map(e=>{let a=Le(e,2),r=a[0],i=a[1];return(0,Te.jsx)("button",{onClick:()=>n(r),"data-testid":"analytics-tv-tab-".concat(r),className:"px-4 py-2 rounded-full text-sm font-semibold transition-colors ".concat(t===r?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:i},r)})}),"zusatzfragen"===t?(0,Te.jsx)(Lre,{}):(0,Te.jsx)(qre,{})]})}const Vre=[{v:"likert",l:"Wertungsfrage"},{v:"enps",l:"eNPS (0\u201310)"},{v:"open",l:"Freitext"},{v:"yesno",l:"Ja / Nein"}],Hre=[{v:"",l:"Keine Empfehlung"},{v:"monatlich",l:"Monatlich"},{v:"quartalsweise",l:"Quartalsweise"}],Wre=()=>Math.random().toString(36).slice(2,8);function Kre(){const e=Le((0,a.useState)([]),2),t=e[0],n=e[1],r=Le((0,a.useState)(!0),2),i=r[0],s=r[1],o=Le((0,a.useState)(null),2),l=o[0],c=o[1],u=Le((0,a.useState)(!1),2),m=u[0],p=u[1],h=Le((0,a.useState)(null),2),f=h[0],g=h[1],x=Le((0,a.useState)(null),2),v=x[0],b=x[1],y=(0,a.useCallback)(()=>{s(!0),Ps.get("/pulse/question-sets").then(e=>n(e.data)).catch(e=>Ia.error(Cs(e))).finally(()=>s(!1))},[]);(0,a.useEffect)(()=>{y()},[y]);const w=(e,t)=>c(n=>d(d({},n),{},{[e]:t})),j=(e,t)=>c(n=>d(d({},n),{},{questions:n.questions.map((n,a)=>a===e?d(d({},n),t):n)})),k=e=>{if(null===v||v===e)return void b(null);const a=[...t],r=Le(a.splice(v,1),1)[0];a.splice(e,0,r),b(null),(async e=>{n(e);try{await Ps.put("/pulse/admin/question-sets-order",{ids:e.map(e=>e.id)}),Ia.success("Reihenfolge gespeichert")}catch(rse){Ia.error(Cs(rse)),y()}})(a)};return(0,Te.jsxs)("div",{"data-testid":"pulse-question-sets",children:[(0,Te.jsx)(ky,{title:"PERSENTIS Pulse \u2013 FragenSets",subtitle:"Vorgefertigte Themen-Fragensets f\xfcr Stimmungsbarometer verwalten"}),!l&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("div",{className:"mb-6 flex justify-end",children:(0,Te.jsxs)(fy,{onClick:()=>c({id:null,title:"",description:"",recommended_cadence:"",questions:[{_k:Wre(),text:"",type:"likert"}]}),"data-testid":"qset-create-btn",children:[(0,Te.jsx)(Pf,{size:16})," Neues FragenSet"]})}),i?(0,Te.jsx)(FS,{}):(0,Te.jsxs)(Te.Fragment,{children:[t.length>1&&(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground mb-3 flex items-center gap-1.5","data-testid":"qset-reorder-hint",children:[(0,Te.jsx)(g9,{size:14})," Ziehen Sie die Karten, um die Reihenfolge zu \xe4ndern \u2013 die wichtigsten oben."]}),(0,Te.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"qset-list",children:[t.map((e,t)=>(0,Te.jsx)("div",{draggable:!0,onDragStart:()=>b(t),onDragOver:e=>e.preventDefault(),onDrop:()=>k(t),onDragEnd:()=>b(null),className:"transition-opacity ".concat(v===t?"opacity-40":""," ").concat(null!==v&&v!==t?"outline-dashed outline-2 outline-transparent hover:outline-primary/40 rounded-lg":""),"data-testid":"qset-card-".concat(e.id),children:(0,Te.jsxs)(by,{className:"p-5 flex flex-col h-full cursor-move",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,Te.jsxs)("div",{className:"font-heading text-base flex items-center gap-2",children:[(0,Te.jsx)(g9,{size:15,className:"text-muted-foreground shrink-0"})," ",e.title]}),(0,Te.jsxs)("span",{className:"text-[10px] font-semibold shrink-0 px-1.5 py-0.5 rounded bg-zinc-100 text-muted-foreground",children:[e.question_count," Fragen"]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1 line-clamp-3 flex-1",children:e.description}),e.recommended_cadence&&(0,Te.jsxs)("div",{className:"mt-2 text-[11px] font-medium text-primary",children:["Empfohlen: ","quartalsweise"===e.recommended_cadence?"Quartalsweise":"Monatlich"]}),(0,Te.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,Te.jsxs)(fy,{variant:"secondary",className:"flex-1",onClick:()=>(e=>{Ps.get("/pulse/question-sets").catch(()=>{}),c({id:e.id,title:e.title,description:e.description||"",recommended_cadence:e.recommended_cadence||"",questions:(e.questions||[]).map(e=>({_k:Wre(),text:e.text,type:e.type}))})})(e),"data-testid":"qset-edit-".concat(e.id),children:[(0,Te.jsx)(Mf,{size:15})," Bearbeiten"]}),(0,Te.jsx)(fy,{variant:"danger",onClick:()=>g(e),"data-testid":"qset-delete-".concat(e.id),"aria-label":"L\xf6schen",children:(0,Te.jsx)(y_,{size:15})})]})]})},e.id)),0===t.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:"Keine FragenSets vorhanden."})]})]})]}),l&&(0,Te.jsxs)(by,{className:"p-6 max-w-3xl","data-testid":"qset-form",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg mb-4",children:l.id?"FragenSet bearbeiten":"Neues FragenSet"}),(0,Te.jsxs)("div",{className:"space-y-4",children:[(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:"Titel"}),(0,Te.jsx)("input",{value:l.title,onChange:e=>w("title",e.target.value),"data-testid":"qset-title",className:"w-full rounded-md border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"z. B. Stimmung"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:"Beschreibung"}),(0,Te.jsx)("textarea",{value:l.description,onChange:e=>w("description",e.target.value),"data-testid":"qset-description",rows:3,className:"w-full rounded-md border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Worum geht es in diesem Set?"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1.5",children:"Empfohlener Rhythmus"}),(0,Te.jsx)("select",{value:l.recommended_cadence,onChange:e=>w("recommended_cadence",e.target.value),"data-testid":"qset-cadence",className:"rounded-md border border-border px-3 py-2 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",children:Hre.map(e=>(0,Te.jsx)("option",{value:e.v,children:e.l},e.v))})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-1.5",children:[(0,Te.jsxs)("label",{className:"text-sm font-semibold",children:["Fragen (",l.questions.length,"/",7,")"]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>c(e=>e.questions.length<7?d(d({},e),{},{questions:[...e.questions,{_k:Wre(),text:"",type:"likert"}]}):e),disabled:l.questions.length>=7,"data-testid":"qset-add-question",children:[(0,Te.jsx)(Pf,{size:14})," Frage"]})]}),(0,Te.jsx)("div",{className:"space-y-2","data-testid":"qset-questions",children:l.questions.map((e,t)=>(0,Te.jsxs)("div",{className:"flex items-start gap-2 rounded-md border border-border p-2","data-testid":"qset-question-".concat(t),children:[(0,Te.jsx)(g9,{size:16,className:"text-muted-foreground mt-2 shrink-0"}),(0,Te.jsxs)("div",{className:"flex-1 space-y-2",children:[(0,Te.jsx)("input",{value:e.text,onChange:e=>j(t,{text:e.target.value}),"data-testid":"qset-question-text-".concat(t),className:"w-full rounded-md border border-border px-2.5 py-1.5 text-sm focus:outline-none focus:ring-2 focus:ring-primary/30",placeholder:"Fragetext \u2026"}
2),(0,Te.jsx)("select",{value:e.type,onChange:e=>j(t,{type:e.target.value}),"data-testid":"qset-question-type-".concat(t),className:"rounded-md border border-border px-2 py-1 text-xs focus:outline-none focus:ring-2 focus:ring-primary/30",children:Vre.map(e=>(0,Te.jsx)("option",{value:e.v,children:e.l},e.v))})]}),(0,Te.jsx)("button",{onClick:()=>(e=>c(t=>d(d({},t),{},{questions:t.questions.filter((t,n)=>n!==e)})))(t),disabled:l.questions.length<=1,"data-testid":"qset-remove-question-".concat(t),className:"text-muted-foreground hover:text-destructive disabled:opacity-30 mt-2 shrink-0",children:(0,Te.jsx)(Iv,{size:16})})]},e._k))})]})]}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>c(null),"data-testid":"qset-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{onClick:async()=>{if(!l.title.trim())return Ia.error("Bitte einen Titel angeben");const e=l.questions.filter(e=>e.text.trim()).map(e=>({text:e.text.trim(),type:e.type,scale_key:"likert"===e.type?"zustimmung":void 0}));if(!e.length)return Ia.error("Mindestens eine Frage mit Text erforderlich");p(!0);try{const t={title:l.title.trim(),description:l.description.trim(),recommended_cadence:l.recommended_cadence||null,questions:e};l.id?(await Ps.put("/pulse/admin/question-sets/".concat(l.id),t),Ia.success("FragenSet aktualisiert")):(await Ps.post("/pulse/admin/question-sets",t),Ia.success("FragenSet erstellt")),c(null),y()}catch(rse){Ia.error(Cs(rse))}finally{p(!1)}},disabled:m,"data-testid":"qset-save",children:[m?(0,Te.jsx)(Of,{size:16,className:"animate-spin"}):(0,Te.jsx)(wE,{size:16})," Speichern"]})]})]}),f&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"qset-delete-dialog",onClick:()=>g(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:"FragenSet l\xf6schen?"}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie das FragenSet ",(0,Te.jsx)("strong",{children:f.title})," wirklich l\xf6schen? Bereits erstellte Umfragen/Barometer bleiben unver\xe4ndert."]}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>g(null),"data-testid":"qset-delete-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>(async e=>{try{await Ps.delete("/pulse/admin/question-sets/".concat(e)),Ia.success("FragenSet gel\xf6scht"),g(null),y()}catch(rse){Ia.error(Cs(rse))}})(f.id),"data-testid":"qset-delete-confirm",children:[(0,Te.jsx)(y_,{size:16})," L\xf6schen"]})]})]})})]})}function Gre(e){let t=e.icon,n=e.label,a=e.value,r=e.sub,i=e.testid;return(0,Te.jsxs)(by,{className:"p-5 flex items-center gap-4","data-testid":i,children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-full bg-accent flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{className:"brand-green",size:22})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("p",{className:"text-xs uppercase tracking-wider text-muted-foreground",children:(0,Te.jsx)(jy,{text:n,prefix:"kpi"})}),(0,Te.jsx)("p",{className:"font-heading text-2xl leading-tight",children:"number"===typeof a?a.toLocaleString("de-DE"):a}),r&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:r})]})]})}function Zre(e){let t=e.g;return(0,Te.jsxs)(by,{className:"p-4 flex flex-col items-center","data-testid":"analytics-gauge-".concat(t.key),children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground text-center mb-1",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:t.value,color:t.color,status:t.zone,segments:t.segments,size:160})]})}function Yre(e){let t=e.g;return(0,Te.jsxs)(by,{className:"p-6 flex flex-col items-center","data-testid":"analytics-gauge-".concat(t.key),children:[(0,Te.jsx)("p",{className:"text-sm font-bold uppercase tracking-wider text-muted-foreground text-center mb-2",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:t.value,color:t.color,status:t.zone,segments:t.segments,size:240})]})}function Qre(e){let t=e.e;if(null===t.value||void 0===t.value)return(0,Te.jsxs)(by,{className:"p-4 flex flex-col items-center","data-testid":"analytics-gauge-enps",children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground text-center mb-1",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:null,displayValue:"\u2014",color:t.color,segments:t.segments,size:160})]});const n=(t.value+100)/2,a="".concat(t.value>0?"+":"").concat(t.value);return(0,Te.jsxs)(by,{className:"p-4 flex flex-col items-center","data-testid":"analytics-gauge-enps",children:[(0,Te.jsx)("p",{className:"text-xs font-bold uppercase tracking-wider text-muted-foreground text-center mb-1",children:(0,Te.jsx)(cy,{id:"gauge.label.".concat(t.key),as:"span",children:t.label})}),(0,Te.jsx)(qS,{value:n,displayValue:a,color:t.color,status:t.zone,segments:t.segments,size:160})]})}function $re(){var e;Xa().t;
2const t=qN(),n=t.gatingActive,r=t.canView,i=t.isViewOnly,s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=Le((0,a.useState)(!0),2),d=c[0],u=c[1];(0,a.useEffect)(()=>{(async()=>{try{const e=await Ps.get("/analytics/overview");l(e.data)}catch(rse){}finally{u(!1)}})()},[]);const m=null===o||void 0===o?void 0:o.kpis,p=(null===o||void 0===o?void 0:o.metrics)||[];return n&&!r("analytics")?(0,Te.jsx)(i_,{product:"analytics"}):(0,Te.jsxs)("div",{"data-testid":"analytics-overview",children:[(0,Te.jsx)(ky,{title:"\xdcberblick - PERSENTIS Analytics",titleId:"analytics_overview.title",subtitle:"Status quo von Bindung, Attraktivit\xe4t und Engagement",subtitleId:"analytics_overview.subtitle"}),d?(0,Te.jsx)(FS,{}):(0,Te.jsxs)("div",{className:"space-y-8",children:[n&&i("analytics")&&(0,Te.jsx)(T_,{product:"analytics"}),(null===o||void 0===o?void 0:o.demo)&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm rounded-lg border border-amber-200 bg-amber-50 text-amber-800 px-4 py-2.5","data-testid":"analytics-demo-banner",children:[(0,Te.jsx)(GS,{size:16})," ",(0,Te.jsx)(cy,{id:"analytics_overview.demo_banner",children:"Demo-Ansicht \u2013 es werden Beispieldaten angezeigt. Der Analytics-Fragebogen und die echte Auswertung folgen."})]}),!(null!==o&&void 0!==o&&o.demo)&&!1===(null===o||void 0===o?void 0:o.has_data)&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm rounded-lg border border-border bg-muted/40 text-muted-foreground px-4 py-2.5","data-testid":"analytics-nodata-banner",children:[(0,Te.jsx)(GS,{size:16})," ",(0,Te.jsx)(cy,{id:"analytics_overview.nodata_banner",children:"Noch keine Auswertungsdaten vorhanden. Sobald erste Teilnehmer an einer Analytics-Umfrage teilgenommen haben, erscheinen hier die Ergebnisse."})]}),!(null!==o&&void 0!==o&&o.demo)&&(null===o||void 0===o?void 0:o.has_data)&&(null===o||void 0===o||null===(e=o.anonymity)||void 0===e?void 0:e.locked)&&(0,Te.jsxs)(by,{className:"p-6 flex items-start gap-4 border-primary/30 bg-primary/5","data-testid":"analytics-anonymity-notice",children:[(0,Te.jsx)("div",{className:"w-11 h-11 rounded-full bg-primary/10 flex items-center justify-center shrink-0",children:(0,Te.jsx)(dS,{className:"text-primary",size:22})}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-1",children:(0,Te.jsx)(cy,{id:"analytics_overview.anon_title",as:"span",children:"Anonymit\xe4tsschutz aktiv"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:(0,Te.jsx)(cy,{id:"analytics_overview.anon_text",as:"span",vars:{min:o.anonymity.min,responses:o.anonymity.responses},children:"Zum Schutz der Anonymit\xe4t werden Auswertungen erst ab {min} g\xfcltigen Antworten angezeigt. Aktuell liegen {responses} g\xfcltige Antworten vor."})})]})]}),m&&(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4","data-testid":"analytics-kpi-row",children:[(0,Te.jsx)(Gre,{icon:ZS,label:(0,Te.jsx)(cy,{id:"kpi.surveys",as:"span",children:"Umfragen"}),value:m.surveys_total,testid:"analytics-kpi-surveys"}),(0,Te.jsx)(Gre,{icon:YS,label:(0,Te.jsx)(cy,{id:"kpi.responses",as:"span",children:"Antworten"}),value:m.responses,testid:"analytics-kpi-responses"}),(0,Te.jsx)(Gre,{icon:_f,label:(0,Te.jsx)(cy,{id:"kpi.participants",as:"span",children:"Teilnehmende"}),value:m.participants,testid:"analytics-kpi-participants"}),(0,Te.jsx)(Gre,{icon:QS,label:(0,Te.jsx)(cy,{id:"kpi.rate",as:"span",children:"Teilnahmequote"}),value:null!=m.rate?"".concat(m.rate,"%"):"\u2014",testid:"analytics-kpi-rate"})]}),p.length>0&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-3",children:(0,Te.jsx)(cy,{id:"analytics_overview.gesamt_heading",children:"Gesamtergebnis"})}),(0,Te.jsxs)("div",{"data-testid":"analytics-gesamt",children:[(0,Te.jsx)("div",{className:"mb-4",children:(0,Te.jsx)(Yre,{g:p[0]})}),(0,Te.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:p.slice(1).map(e=>"enps"===e.type?(0,Te.jsx)(Qre,{e:e},e.key):(0,Te.jsx)(Zre,{g:e},e.key))})]})]}),(null===o||void 0===o?void 0:o.comparison)&&(0,Te.jsxs)(by,{className:"p-5","data-testid":"analytics-comparison-card",children:[(0,Te.jsx)("h2",{className:"font-heading text-lg mb-px",children:(0,Te.jsx)(cy,{id:"analytics_overview.comparison_heading",children:"Ergebnisse im Vergleich"})}),(0,Te.jsx)(a_,{comparison:o.comparison,rows:o.comparison.rows})]})]})]})}function Xre(){return(0,Te.jsx)(az,{product:"analytics"})}const Jre=e=>(e||"").replace(/\s+/g,"-").toLowerCase(),eie=(e,t,n)=>n||t,tie=e=>e>=80?"bg-green-100 text-green-700":e>=50?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700";function nie(){const e=sn(),t=Is().getText,n=Xa().t,r=Le((0,a.useState)([]),2),i=r[0],s=r[1],o=Le((0,a.useState)(""),2),l=o[0],c=o[1],d=Le((0,a.useState)(""),2),u=d[0],m=d[1],p=Le((0,a.useState)(""),2),h=p[0],f=p[1],g=Le((0,a.useState)(null),2),x=g[0],v=g[1];(0,a.useEffect)(()=>{Ps.get("/analytics/results").then(e=>s(e.data)).catch(()=>{})},[]);const b=l||u||h,y=i.filter(e=>{const t=l.trim().toLowerCase();if(t&&!"".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.label||"").toLowerCase().includes(t))return!1;const n=(e.created_at||"").slice(0,10);return!(u&&(!n||n<u))&&!(h&&(!n||n>h))}),w={};
2y.forEach(e=>{const t="".concat(e.firma_name,"||").concat(e.branch_name);w[t]||(w[t]={key:t,firma:e.firma_name,name:e.branch_name,is_central:!!e.is_central,items:[]}),w[t].items.push(e)});const j=Object.values(w).sort((e,t)=>Number(t.is_central)-Number(e.is_central)||e.firma.localeCompare(t.firma)||e.name.localeCompare(t.name));j.forEach(e=>e.items.sort((e,t)=>(t.completed_at||t.created_at||"").localeCompare(e.completed_at||e.created_at||"")));const k=(0,a.useRef)(!1);(0,a.useEffect)(()=>{k.current||j[0]&&(v(j[0].key),k.current=!0)},[j]);const N=a=>{const r=x===a.key;return(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"analytics-auswertung-folder-".concat(Jre(a.firma),"-").concat(Jre(a.name)),children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>v(r?null:a.key),"data-testid":"analytics-auswertung-folder-toggle-".concat(Jre(a.firma),"-").concat(Jre(a.name)),className:"w-full flex items-center justify-between px-5 py-3.5 bg-zinc-50 hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 font-heading text-base",children:[a.is_central?(0,Te.jsx)(w_,{size:18,className:"text-primary fill-primary shrink-0"}):(0,Te.jsx)(j_,{size:18,strokeWidth:1.5,className:"text-primary shrink-0"}),eie(a.is_central,a.firma,a.name),(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",a.items.length,")"]})]}),(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform duration-200 ".concat(r?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:r&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"p-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"analytics-auswertung-folder-body-".concat(Jre(a.name)),children:a.items.map(a=>(a=>{const r=a.target>0?Math.min(100,Math.round(a.responses/a.target*100)):null,i=a.label||eie(a.is_central,a.firma_name,a.branch_name);return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"analytics-auswertung-card-".concat(a.token),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"analytics-auswertung-title-".concat(a.token),children:i})}),a.persentis_index?(0,Te.jsx)("div",{className:"mt-2 flex flex-col items-center","data-testid":"analytics-auswertung-gauge-".concat(a.token),children:(0,Te.jsx)(qS,{value:a.persentis_index.value,color:a.persentis_index.color,status:a.persentis_index.status,segments:a.persentis_index.segments,size:150})}):a.locked?(0,Te.jsx)("div",{className:"mt-2 flex flex-col items-center","data-testid":"analytics-auswertung-gauge-".concat(a.token),children:(0,Te.jsx)(rz,{size:150,testid:"analytics-auswertung-locked-gauge-".concat(a.token)})}):(0,Te.jsxs)("div",{className:"mt-2 flex items-center justify-center h-[150px] text-xs text-muted-foreground text-center px-4",children:[t("analytics.score.label","ANALYTICS Score")," ",n("analytics.score_hint_suffix")]}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center","data-testid":"analytics-auswertung-info-".concat(a.token),children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:n("auswertungen.info.teilnehmer")}),(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2",children:[(0,Te.jsxs)("span",{className:"font-medium tabular-nums",children:[a.responses,a.target>0?"/".concat(a.target):""]}),null!=r&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(tie(r)),"data-testid":"analytics-auswertung-rate-".concat(a.token),children:[r,"%"]})]}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:n("auswertungen.info.personal")}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums","data-testid":"analytics-auswertung-personal-".concat(a.token),children:a.personal_answers_total}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:n("auswertungen.info.completed")}),(0,Te.jsx)("span",{className:"text-right font-medium",children:(s=a.completed_at,s?new Date(s).toLocaleDateString("de-DE"):"\u2014")}
2),(0,Te.jsx)("span",{className:"text-muted-foreground",children:n("auswertungen.info.laufzeit")}),(0,Te.jsx)("span",{className:"text-right font-medium",children:null!=a.duration_days?"".concat(a.duration_days," ").concat(n("common.days")):"\u2014"})]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,Te.jsxs)(fy,{onClick:()=>e("/analytics/auswertungen/".concat(a.token)),"data-testid":"analytics-open-results-".concat(a.token),children:[(0,Te.jsx)(jw,{size:16})," ",n("auswertungen.open")]}),(0,Te.jsx)(e_,{className:"w-full",label:S_,children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:void 0,"data-testid":"analytics-export-pdf-".concat(a.token),className:"w-full ".concat("opacity-60"),children:[(0,Te.jsx)(N_,{size:16})," ",n("auswertungen.export_pdf")]})})]})]},a.token);var s})(a))})})})]},a.key)};return(0,Te.jsxs)("div",{"data-testid":"analytics-results",children:[(0,Te.jsx)(ky,{title:"Ergebnisse - PERSENTIS Analytics",titleId:"analytics_results.title",subtitle:"Abgeschlossene Umfragen und ihre Ergebnisse",subtitleId:"analytics_results.subtitle"}),(0,Te.jsx)(by,{className:"p-4 mb-6",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end gap-3","data-testid":"analytics-auswertung-filters",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:n("common.search_label")}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:l,onChange:e=>c(e.target.value),placeholder:n("common.search_placeholder"),className:"pl-9","data-testid":"analytics-auswertung-search-input"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:n("common.date_from")}),(0,Te.jsx)(gy,{type:"date",value:u,onChange:e=>m(e.target.value),"data-testid":"analytics-auswertung-filter-from"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:n("common.date_to")}),(0,Te.jsx)(gy,{type:"date",value:h,onChange:e=>f(e.target.value),"data-testid":"analytics-auswertung-filter-to"})]}),b&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{c(""),m(""),f("")},"data-testid":"analytics-auswertung-filter-clear",children:[(0,Te.jsx)(Iv,{size:15})," ",n("common.reset")]})]})}),(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"analytics-auswertung-heading",children:[(0,Te.jsx)(iz,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:n("analytics_results.section_completed")}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",y.length,")"]})]}),(0,Te.jsxs)("div",{className:"space-y-4","data-testid":"analytics-auswertung-list",children:[0===j.length&&(0,Te.jsx)(by,{className:"p-5","data-testid":"analytics-auswertung-empty",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:n("auswertungen.empty")})}),j.map(e=>N(e))]})]})}const aie=kf("layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);function rie(e){let t=e.pt,n=e.onStart;return(0,Te.jsxs)(by,{className:"p-10 sm:p-14 text-center max-w-2xl mx-auto","data-testid":"pulse-empty-start",children:[(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-accent flex items-center justify-center mx-auto mb-6",children:"wiederkehrend"===t?(0,Te.jsx)(_w,{className:"brand-green",size:30}):(0,Te.jsx)(Nw,{className:"brand-green",size:30})}),(0,Te.jsx)("h3",{className:"font-heading text-2xl sm:text-3xl mb-7 leading-snug",children:"wiederkehrend"===t?(0,Te.jsx)(cy,{id:"pulse_overview.empty.title.wiederkehrend",children:"Starten Sie mit Ihrem ersten PERSENTIS Pulse Stimmungsbarometer."}):(0,Te.jsx)(cy,{id:"pulse_overview.empty.title.einmalig",children:"Starten Sie mit Ihrer ersten PERSENTIS Pulse Umfrage."})}),(0,Te.jsxs)(fy,{onClick:n,"data-testid":"pulse-empty-start-btn",className:"bg-[#75A33D] hover:bg-[#688f36] text-white font-semibold tracking-wide px-8",children:[(0,Te.jsx)(cy,{id:"pulse_overview.empty.cta",as:"span",children:"STARTEN"})," ",(0,Te.jsx)(KS,{size:16})]})]})}const iie=e=>(e||"").replace(/^\s*Stimmungsbarometer\s+/i,"").trim()||e||"",sie=e=>e>=80?"bg-green-100 text-green-700":e>=50?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700",oie=e=>{let t=e.icon,n=e.label,a=e.value,r=e.testid;return(0,Te.jsx)(by,{className:"p-5","data-testid":r,children:(0,Te.jsxs)("div",{className:"flex items-center gap-3",children:[(0,Te.jsx)("div",{className:"w-10 h-10 rounded-md bg-primary/10 text-primary flex items-center justify-center shrink-0",children:(0,Te.jsx)(t,{size:20})}),(0,Te.jsxs)("div",{className:"min-w-0",children:[(0,Te.jsx)("div",{className:"text-2xl font-heading font-semibold text-foreground leading-none",children:(i=a,"number"===typeof i&&isFinite(i)?i.toLocaleStr
2ing("de-DE"):i)}),(0,Te.jsx)("div",{className:"text-xs font-semibold text-muted-foreground mt-1",children:(0,Te.jsx)(jy,{text:n,prefix:"kpi"})})]})]})});var i};function lie(){var e,t,n,r,i,s,o,l;const c=Xa().t,d=ln().ptype,u=sn(),m="wiederkehrend"===d?"wiederkehrend":"einmalig",p=Le((0,a.useState)(null),2),h=p[0],f=p[1],g=Le((0,a.useState)(!0),2),x=g[0],v=g[1],b=Le((0,a.useState)([]),2),y=b[0],w=b[1],j=Le((0,a.useState)([]),2),k=j[0],N=j[1],S=Ws().ctMode,_=e=>c("quartalsweise"===e?"pulse.cadence.quarterly":"pulse.cadence.monthly");(0,a.useEffect)(()=>{v(!0),Ps.get("/pulse/overview?type=".concat(m)).then(e=>f(e.data)).catch(()=>{}).finally(()=>v(!1)),"wiederkehrend"===m?Ps.get("/pulse/programs").then(e=>N(e.data)).catch(()=>{}):Ps.get("/pulse/surveys").then(e=>w(e.data)).catch(()=>{})},[m]);const z=(null===h||void 0===h?void 0:h.kpis)||{},E=pw(),C=[{color:E.kritisch,from:0,to:50},{color:E.moderat,from:50,to:75},{color:E.exzellent,from:75,to:100}],P=null==z.enps?"\u2014":z.enps>0?"+".concat(z.enps):"".concat(z.enps),A=y.filter(e=>"abgeschlossen"===e.status&&!e.program_id).sort((e,t)=>(t.completed_at||t.created_at||"").localeCompare(e.completed_at||e.created_at||"")).slice(0,5),T=[...k].filter(e=>null!=e.current_score).sort((e,t)=>("aktiv"===e.status?0:1)-("aktiv"===t.status?0:1)||(t.created_at||"").localeCompare(e.created_at||"")).slice(0,5);return(0,Te.jsxs)("div",{"data-testid":"pulse-overview",children:[(0,Te.jsx)(ky,{title:"wiederkehrend"===m?"Wiederkehrend \u2013 \xdcberblick":"Einmalig \u2013 \xdcberblick",subtitle:"wiederkehrend"===m?"Stimmungsbarometer auf einen Blick":"Einmalige Kurzumfragen auf einen Blick",titleId:"wiederkehrend"===m?"pulse.overview.title.wiederkehrend":"pulse.overview.title.einmalig",subtitleId:"wiederkehrend"===m?"pulse.overview.subtitle.wiederkehrend":"pulse.overview.subtitle.einmalig"}),x?(0,Te.jsx)(FS,{}):S||null!==h&&void 0!==h&&h.has_data?(0,Te.jsxs)("div",{className:"space-y-8",children:[("wiederkehrend"===m&&!(null!==h&&void 0!==h&&h.has_data)||"einmalig"===m&&0===(null!==(e=null===h||void 0===h||null===(t=h.kpis)||void 0===t?void 0:t.surveys_completed)&&void 0!==e?e:0))&&(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-sm rounded-lg border border-border bg-muted/40 text-muted-foreground px-4 py-2.5","data-testid":"pulse-nodata-banner",children:[(0,Te.jsx)(GS,{size:16})," ","einmalig"===m?(0,Te.jsx)(cy,{id:"pulse_overview.nodata_banner_einmalig",children:"Es wurden noch keine Umfragen abgeschlossen. Sobald eine Pulse-Umfrage abgeschlossen ist, erscheinen hier die Ergebnisse."}):(0,Te.jsx)(cy,{id:"pulse_overview.nodata_banner",children:"Noch keine Umfrage vorhanden. Sobald Sie eine Pulse-Umfrage anlegen und erste Teilnehmer teilgenommen haben, erscheinen hier die Ergebnisse."})]}),"wiederkehrend"===m?(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-4","data-testid":"pulse-kpi-row",children:[(0,Te.jsx)(oie,{icon:_w,label:c("pulse.kpi.programs"),value:null!==(n=z.programs)&&void 0!==n?n:0,testid:"pulse-kpi-programs"}),(0,Te.jsx)(oie,{icon:aie,label:c("pulse.kpi.waves"),value:null!==(r=z.waves)&&void 0!==r?r:0,testid:"pulse-kpi-waves"}),(0,Te.jsx)(oie,{icon:US,label:c("pulse.kpi.score"),value:null==z.score?"\u2014":z.score,testid:"pulse-kpi-score"}),(0,Te.jsx)(oie,{icon:q5,label:c("pulse.kpi.enps"),value:P,testid:"pulse-kpi-enps"}),(0,Te.jsx)(oie,{icon:_f,label:c("pulse.kpi.rate"),value:null==z.rate?"\u2014":"".concat(z.rate," %"),testid:"pulse-kpi-rate"})]}):(0,Te.jsxs)("div",{className:"grid grid-cols-2 lg:grid-cols-5 gap-4",children:[(0,Te.jsx)(oie,{icon:bw,label:c("pulse.kpi.total"),value:null!==(i=z.surveys_total)&&void 0!==i?i:0,testid:"pulse-kpi-total"}),(0,Te.jsx)(oie,{icon:Nw,label:c("pulse.kpi.active"),value:null!==(s=z.surveys_active)&&void 0!==s?s:0,testid:"pulse-kpi-active"}),(0,Te.jsx)(oie,{icon:Ef,label:c("pulse.kpi.completed"),value:null!==(o=z.surveys_completed)&&void 0!==o?o:0,testid:"pulse-kpi-completed"}),(0,Te.jsx)(oie,{icon:YS,label:c("pulse.kpi.responses"),value:null!==(l=z.responses)&&void 0!==l?l:0,testid:"pulse-kpi-responses"}),(0,Te.jsx)(oie,{icon:_f,label:c("pulse.kpi.rate"),value:null==z.rate?"\u2014":"".concat(z.rate," %"),testid:"pulse-kpi-rate"})]}),"einmalig"===m&&A.length>0&&(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("h2",{className:"font-heading text-lg mb-3 flex items-center gap-2","data-testid":"pulse-recent-heading",children:[(0,Te.jsx)(iz,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"pulse.overview.recent.einmalig",as:"span",children:"Letzte Umfragen"})]}),(0,Te.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"pulse-recent-list",children:[A.map(e=>{return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"pulse-recent-card-".concat(e.token),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"pulse-recent-title-".concat(e.token),children:e.label})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.teilnehmer",as:"span",children:"Teilnehmer"})}),(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2",children:[(0,Te.jsx)("span",{className:"font-medium tabular-nums",children:e.responses}),null!=e.rate&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(sie(e.rate)),children:[e.rate,"%"]})]}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.questions",as:"span",children:"Fragen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.questions}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.completed",as:"span",children:"Abgeschlossen"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:(t=e.completed_at||e.created_at,t?new Date(t).toLocaleDateString("de-DE"):"\u2014")}
2)]}),(0,Te.jsx)("div",{className:"mt-4",children:(0,Te.jsxs)(fy,{className:"w-full",onClick:()=>u("/pulse/einmalig/auswertungen/".concat(e.token)),"data-testid":"pulse-recent-open-".concat(e.token),children:[(0,Te.jsx)(jw,{size:16})," ",(0,Te.jsx)(cy,{id:"auswertungen.open",as:"span",children:"Ergebnisse \xf6ffnen"})]})})]},e.token);var t}),(0,Te.jsxs)("button",{onClick:()=>u("/pulse/einmalig/auswertungen"),className:"rounded-xl bg-primary text-primary-foreground p-5 flex flex-col items-center justify-center text-center gap-2 hover:opacity-90 transition-opacity min-h-[190px]","data-testid":"pulse-recent-cta",children:[(0,Te.jsx)(jw,{size:30}),(0,Te.jsx)("span",{className:"font-heading text-base",children:(0,Te.jsx)(cy,{id:"pulse.overview.cta_all",as:"span",children:"\u2026 zu allen Ergebnissen"})})]})]})]}),"wiederkehrend"===m&&T.length>0&&(0,Te.jsxs)("div",{"data-testid":"pulse-recent-section",children:[(0,Te.jsxs)("h2",{className:"font-heading text-lg mb-3 flex items-center gap-2","data-testid":"pulse-recent-heading",children:[(0,Te.jsx)(_w,{size:18,className:"text-primary"})," ",(0,Te.jsx)(cy,{id:"pulse.overview.recent.wiederkehrend",as:"span",children:"Letzte Programme"})]}),(0,Te.jsxs)("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"pulse-recent-list",children:[T.map(e=>{const t=null==(n=e.current_score)?{}:n<50?{color:E.kritisch,status:"kritisch"}:n<75?{color:E.moderat,status:"moderat"}:{color:E.exzellent,status:"exzellent"};var n;return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"pulse-recent-program-".concat(e.id),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base",children:iie(e.title)})}),(0,Te.jsx)("div",{className:"mt-2 flex justify-center","data-testid":"pulse-recent-gauge-".concat(e.id),children:(0,Te.jsx)(qS,{value:e.current_score,color:t.color,status:t.status,segments:C,size:140})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.program.rhythmus",as:"span",children:"Rhythmus"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:_(e.cadence)}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.program.waves",as:"span",children:"Wiederholungen bisher"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.wave_count}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.questions",as:"span",children:"Fragen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.questions})]}),(0,Te.jsx)("div",{className:"mt-4",children:(0,Te.jsxs)(fy,{className:"w-full",onClick:()=>u("/pulse/wiederkehrend/barometer/".concat(e.id),{state:{program:e}}),"data-testid":"pulse-recent-open-".concat(e.id),children:[(0,Te.jsx)(US,{size:16})," ",(0,Te.jsx)(cy,{id:"pulse.program.barometer_open",as:"span",children:"Barometer \xf6ffnen"})]})})]},e.id)}),(0,Te.jsxs)("button",{onClick:()=>u("/pulse/wiederkehrend/auswertungen"),className:"rounded-xl bg-primary text-primary-foreground p-5 flex flex-col items-center justify-center text-center gap-2 hover:opacity-90 transition-opacity min-h-[190px]","data-testid":"pulse-recent-cta",children:[(0,Te.jsx)(US,{size:30}),(0,Te.jsx)("span",{className:"font-heading text-base",children:(0,Te.jsx)(cy,{id:"pulse.overview.cta_all",as:"span",children:"\u2026 zu allen Ergebnissen"})})]})]})]})]}):(0,Te.jsx)(rie,{pt:m,onStart:()=>u("/pulse/".concat(m,"/invitations?new=1"))})]})}function cie(e){var t;let n=e.program,r=e.onClose;const i=Le((0,a.useState)(null),2),s=i[0],o=i[1],l=Le((0,a.useState)(!1),2),c=l[0],d=l[1];(0,a.useEffect)(()=>{Ps.get("/pulse/programs/".concat(n.id,"/trend")).then(e=>o(e.data)).catch(()=>d(!0))},[n.id]);const u=(null===s||void 0===s?void 0:s.series)||[],m=u.filter(e=>null!=e.score),p=u.filter(e=>null!=e.enps),h=640,f=200,g=34,x=(e,t)=>t<=1?320:g+572*e/(t-1),v=e=>166-e/100*132,b=e=>166-(e+100)/200*132,y=(e,t)=>{if(!e.length)return"";const n=e.map((n,a)=>[x(a,e.length),t(n.v)]);if(n.length<2)return"M".concat(n[0][0],",").concat(n[0][1]);let a="M".concat(n[0][0],",").concat(n[0][1]);for(let r=0;r<n.length-1;r++){const e=n[r-1]||n[r],t=n[r],i=n[r+1],s=n[r+2]||i,o=t[0]+(i[0]-e[0])/6,l=t[1]+(i[1]-e[1])/6,c=i[0]-(s[0]-t[0])/6,d=i[1]-(s[1]-t[1])/6;a+=" C".concat(o,",").concat(l," ").concat(c,",").concat(d," ").concat(i[0],",").concat(i[1])}return a},w=(e,t)=>{const n=e.length;if(n<2)return"";const a=e.map((e,t)=>x(t,n)),r=e.map(e=>e.v),i=a.reduce((e,t)=>
2e+t,0)/n,s=r.reduce((e,t)=>e+t,0)/n;let o=0,l=0;for(let p=0;p<n;p++)o+=(a[p]-i)*(r[p]-s),l+=(a[p]-i)**2;const c=0===l?0:o/l,d=s-c*i,u=a[0],m=a[n-1];return"M".concat(u,",").concat(t(c*u+d)," L").concat(m,",").concat(t(c*m+d))},j=e=>null==e||e<50?"#C00000":e<75?"#FFC000":"#00B050",k=e=>null==e||e<0?"#C00000":e<30?"#FFC000":"#00B050",N=m.length?m[m.length-1].score:null,S=p.length?p[p.length-1].enps:null,_=m.map(e=>({v:e.score,label:e.date})),z=p.map(e=>({v:e.enps}));return(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-trend-modal",onClick:r,children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-2xl p-6 max-h-[90vh] overflow-y-auto",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between mb-1",children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg flex items-center gap-2",children:[(0,Te.jsx)(US,{size:18,className:"text-primary"})," Barometer \u2013 ",n.title]}),(0,Te.jsx)("button",{onClick:r,"data-testid":"pulse-trend-close",className:"text-muted-foreground hover:text-foreground",children:(0,Te.jsx)(Iv,{size:20})})]}),(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground mb-4",children:["Stimmungswert (0\u2013100) je Wiederholung \xb7 Anonymit\xe4tsschutz: Wiederkehrende Umfragen mit weniger als ",null!==(t=null===s||void 0===s?void 0:s.anonymity_min)&&void 0!==t?t:5," Antworten werden nicht ausgewiesen."]}),c?(0,Te.jsx)("p",{className:"text-sm text-red-600",children:"Trend konnte nicht geladen werden."}):s?0===m.length?(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground italic py-8 text-center","data-testid":"pulse-trend-empty",children:["Noch keine auswertbaren wiederkehrenden Umfragen (mind. ",s.anonymity_min," Teilnehmende je Wiederholung erforderlich)."]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"rounded-lg border border-border p-3",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground mb-1",children:(0,Te.jsx)(cy,{id:"pulse.trend.score_label",as:"span",children:"Stimmungswert je Wiederholung"})}),(0,Te.jsxs)("svg",{viewBox:"0 0 ".concat(h," ").concat(f),className:"w-full","data-testid":"pulse-trend-chart",children:[[0,25,50,75,100].map(e=>(0,Te.jsxs)("g",{children:[(0,Te.jsx)("line",{x1:g,y1:v(e),x2:606,y2:v(e),stroke:50===e||75===e?"#9ca3af":"#eee",strokeWidth:50===e||75===e?1.5:1}),(0,Te.jsx)("text",{x:4,y:v(e)+3,fontSize:"9",fill:"#9ca3af",children:e})]},e)),(0,Te.jsx)("path",{d:w(_,v),fill:"none",stroke:"#9ca3af",strokeWidth:"1.5",strokeDasharray:"5 4"}),(0,Te.jsx)("path",{d:y(_,v),fill:"none",stroke:j(N),strokeWidth:"12",strokeLinejoin:"round",strokeLinecap:"round"}),_.map((e,t)=>(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:x(t,_.length),cy:v(e.v),r:"6",fill:j(N)}),(0,Te.jsx)("text",{x:x(t,_.length),y:v(e.v)-16,textAnchor:"middle",fontSize:"30",fontWeight:"700",fill:"#374151",children:e.v}),(0,Te.jsxs)("text",{x:x(t,_.length),y:186,textAnchor:"middle",fontSize:"9",fill:"#9ca3af",children:["W",m[t].wave]})]},t))]})]}),z.length>0&&(0,Te.jsxs)("div",{className:"rounded-lg border border-border p-3 mt-3","data-testid":"pulse-trend-enps",children:[(0,Te.jsx)("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground mb-1",children:(0,Te.jsx)(cy,{id:"pulse.trend.enps_label",as:"span",children:"eNPS je Wiederholung (\u2212100 \u2026 +100)"})}),(0,Te.jsxs)("svg",{viewBox:"0 0 ".concat(h," ").concat(f),className:"w-full",children:[[-100,-50,0,50,100].map(e=>(0,Te.jsxs)("g",{children:[(0,Te.jsx)("line",{x1:g,y1:b(e),x2:606,y2:b(e),stroke:0===e?"#6b7280":"#eee",strokeWidth:0===e?2:1}),(0,Te.jsx)("text",{x:2,y:b(e)+3,fontSize:"9",fill:"#9ca3af",children:e})]},e)),(0,Te.jsx)("path",{d:w(z,b),fill:"none",stroke:"#9ca3af",strokeWidth:"1.5",strokeDasharray:"5 4"}),(0,Te.jsx)("path",{d:y(z,b),fill:"none",stroke:k(S),strokeWidth:"12",strokeLinejoin:"round",strokeLinecap:"round"}),z.map((e,t)=>(0,Te.jsxs)("g",{children:[(0,Te.jsx)("circle",{cx:x(t,z.length),cy:b(e.v),r:"6",fill:k(S)}),(0,Te.jsx)("text",{x:x(t,z.length),y:b(e.v)-16,textAnchor:"middle",fontSize:"30",fontWeight:"700",fill:"#374151",children:e.v>0?"+".concat(e.v):e.v}),(0,Te.jsxs)("text",{x:x(t,z.length),y:186,textAnchor:"middle",fontSize:"9",fill:"#9ca3af",children:["W",p[t].wave]})]},t))]})]})]}):(0,Te.jsx)(FS,{compact:!0})]})})}const die=e=>e?new Date(e).toLocaleDateString("de-DE"):"\u2014",uie=e=>(e||"").replace(/\s+/g,"-").toLowerCase(),mie=(e,t,n)=>n||t,pie=e=>e.program_id?(e.label||"").replace(/\s*[\u2013-]?\s*(?:Welle|Wiederholung)\s*\d+\s*$/i,"").trim():e.label,hie={likert:"Wertungsfrage",yesno:"Ja / Nein",choice:"Auswahl",open:"Freitext",enps:"eNPS (0\u201310)"},fie=e=>{var t,n,a;const r=null===e||void 0===e||null===(t=e.response)||void 0===t?void 0:t.status,i=null===e||void 0===e||null===(n=e.response)||void 0===n||null===(a=n.data)||void 0===a?void 0:a.detail;return 403===r&&"string"===typeof i&&i.includes("PULSE Light")&&i.includes("EINE aktive Umfrage")},gie=e=>{let t=e.onClick,n=e.title,a=e.tipId,r=e.testid,i=e.danger,s=e.className,o=void 0===s?"flex-1":s,l=e.children;return(0,Te.jsx)(e_,{id:a,label:n,className:o,children:(0,Te.jsx)("button",{type:"button",onClick:t,"aria-label":n,"data-testid":r,className:"w-full h-9 flex items-center justify-center rounded-md border transition-colors ".concat(i?"border-red-200 text-destructive hover:bg-red-50":"border-border text-foreground hover:bg-zinc-100"),children:l})})};function xie(){return{id:Math.random().toString(36).slice(2,8),text:"",type:"likert",options:["",""],scale_key:"zustimmung"}}
2function vie(e){var t;let n=e.branches,r=e.catalog,i=e.scales,s=e.questionSets,o=e.editSurvey,l=e.initialMode,c=e.light,u=e.onUpgrade,m=e.onLimitError,p=e.onClose,h=e.onCreated;const f=!!o,g=sn(),x=Ws().ctMode,v=Le((0,a.useState)(f?"einmalig":l||"einmalig"),2),b=v[0],y=v[1],w=Le((0,a.useState)("monatlich"),2),j=w[0],k=w[1],N=Le((0,a.useState)(!1),2),S=N[0],_=N[1],z=Le((0,a.useState)(null),2),E=z[0],C=z[1],P=Le((0,a.useState)(f?o.title||"":"Pulse-Umfrage"),2),A=P[0],T=P[1],R=Le((0,a.useState)(f&&o.branch_id||""),2),O=R[0],D=R[1],M=Le((0,a.useState)([]),2),I=M[0],F=M[1],L=Le((0,a.useState)([]),2),B=L[0],q=L[1],U=Le((0,a.useState)(()=>f&&(o.questions||[]).length?o.questions.map(e=>({id:e.id,text:e.text||"",type:e.type||"likert",options:"choice"===e.type&&e.options&&e.options.length?e.options:["",""],scale_key:e.scale_key||"zustimmung"})):[xie()]),2),V=U[0],H=U[1],W=Le((0,a.useState)(!1),2),K=W[0],G=W[1],Z=Le((0,a.useState)(!1),2),Y=Z[0],Q=Z[1],$=Le((0,a.useState)(null),2),X=$[0],J=$[1],ee=f?["Firma / Filiale","Bezeichnung","Abteilungen","Fragen"]:["Wiederholen","Art der Erhebung","Firma / Filiale","Bezeichnung","Abteilungen","Fragen"],te=Le((0,a.useState)(0),2),ne=te[0],ae=te[1],re=ee[ne],ie=(0,a.useRef)(f&&o.department_ids||null),se=Le((0,a.useState)(""),2),oe=se[0],le=se[1],ce=Le((0,a.useState)([]),2),de=ce[0],ue=ce[1],me=Le((0,a.useState)(0),2),pe=me[0],he=me[1];(0,a.useEffect)(()=>{f?ue([]):Ps.get("/pulse/surveys").then(e=>{ue((e.data||[]).filter(e=>"abgeschlossen"===e.status))}).catch(()=>ue([]))},[f]);const fe=async e=>{if(le(e),e)try{const t=(await Ps.get("/pulse/surveys/".concat(e))).data;T(function(e){const t=new Date,n="".concat(String(t.getMonth()+1).padStart(2,"0"),"/").concat(t.getFullYear()),a=(e||"").replace(/\s+\d{1,2}\/\d{2,4}\s*$/,"").trim();return"".concat(a," ").concat(n).trim()}(t.title||"")),t.program_id?(y("wiederkehrend"),t.cadence&&k(t.cadence)):y("einmalig"),ie.current=t.department_ids||[];const n=(t.questions||[]).slice(0,7).map(e=>({id:Math.random().toString(36).slice(2,8),text:e.text||"",type:e.type||"likert",options:"choice"===e.type&&e.options&&e.options.length?e.options:["",""],scale_key:e.scale_key||"zustimmung"}));H(n.length?n:[xie()]),C(null),D(t.branch_id||"")}catch(rse){Ia.error(Cs(rse))}};(0,a.useEffect)(()=>{!X&&r.length&&J(r[0].id)},[r,X]),(0,a.useEffect)(()=>{O?Ps.get("/departments?branch_id=".concat(O)).then(e=>{if(F(e.data),ie.current&&ie.current.length){const t=ie.current;q(t.filter(t=>e.data.some(e=>e.id===t))),he(t.filter(t=>!e.data.some(e=>e.id===t)).length)}else q(e.data.map(e=>e.id)),he(0);ie.current=null}).catch(()=>{}):F([])},[O]),(0,a.useEffect)(()=>{if(c&&!f&&!O&&n.length){const e=n.find(e=>e.is_central)||n[0];e&&D(e.id)}},[c,f,n,O]);const ge=(e,t)=>H(n=>n.map((n,a)=>a===e?d(d({},n),t):n)),xe=A.trim()&&O&&V.length>0&&V.every(e=>(e.text||"").trim()&&("choice"!==e.type||(e.options||[]).filter(e=>(e||"").trim()).length>=2)),ve=()=>"Firma / Filiale"===re?!!O:"Bezeichnung"===re?A.trim().length>0:"Abteilungen"!==re||B.length>0;return(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-wizard",onClick:p,children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-xl w-full max-w-2xl max-h-[90vh] overflow-hidden flex flex-col","data-testid":"pulse-wizard-card",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"px-6 pt-5 pb-3 border-b border-border",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)("h3",{className:"font-heading text-lg",children:f?"Umfrage bearbeiten":"Umfrage erstellen"}),(0,Te.jsx)("button",{onClick:p,className:"text-muted-foreground hover:text-foreground","data-testid":"pulse-wizard-close",children:(0,Te.jsx)(Iv,{size:18})})]}),(0,Te.jsx)("p",{className:"text-xs text-primary font-semibold mt-0.5","data-testid":"pulse-wizard-product",children:"PERSENTIS Pulse"}),(0,Te.jsx)("div",{className:"flex items-center gap-1.5 mt-4",children:ee.map((e,t)=>(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("div",{className:"h-1.5 rounded-full ".concat(t<=ne?"bg-primary":"bg-zinc-200")}),(0,Te.jsx)("p",{className:"text-[10px] mt-1 ".concat(t===ne?"text-primary font-semibold":"text-muted-foreground"),children:e})]},e))})]}),(0,Te.jsxs)("div",{className:"px-6 py-5 overflow-y-auto flex-1","data-testid":"pulse-wizard-step-".concat(ne),children:["Wiederholen"===re&&(0,Te.jsxs)("div",{"data-testid":"pulse-wizard-step-repeat",children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.repeat_label",as:"span",children:"M\xf6chten Sie eine bereits durchgef\xfchrte Umfrage 1:1 wiederholen?"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"pulse.wizard.repeat_hint",as:"span",children:"\xdcbernimmt Erhebungsart, Filiale, Abteilungen und Fragen als Vorlage. Sie k\xf6nnen danach alles anpassen."})}),(0,Te.jsxs)("select",{value:oe,onChange:e=>fe(e.target.value),"data-testid":"pulse-wizard-repeat-select",className:"w-full border border-border rounded-md px-3 py-2.5 text-sm bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:"Nein, neue Umfrage erstellen"}),de.map(e=>(0,Te.jsxs)("option",{value:e.token,children:[e.firma_name?"".concat(e.firma_name," \xb7 "):"",e.label,e.program_id?" \u21bb":""]},e.token))]}),0===de.length&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground italic mt-3","data-testid":"pulse-wizard-repeat-empty",children:(0,Te.jsx)(cy,{id:"pulse.wizard.repeat_empty",as:"span",children:"Noch keine abgeschlossenen Umfragen zum Wiederholen vorhanden."})})]}),"Art der Erhebung"===re&&(0,Te.jsx)("div",{className:"space-y-5",children:(0,Te.jsxs)("div",{"data-testid":"pulse-wizard-mode",children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.erhebungsart",as:"span",children:"Art der Erhebung"})}),(0,Te.jsxs)("div",{className:"grid grid-cols-2 gap-2",children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>y("einmalig"),"data-testid":"pulse-wizard-mode-einmalig",className:"rounded-md border px-3 py-3 text-left transition-colors ".concat("einmalig"===b?"border-primary bg-primary text-white":"border-border hover:bg-zinc-50"),children:[(0,Te.jsx)("div",{className:"text-sm font-semibold",children:(0,Te.jsx)(cy,{id:"pulse.wizard.mode_einmalig",as:"span",children:"Einmalig"})}),(0,Te.jsx)("div",{className:"text-xs mt-0.5 ".concat("einmalig"===b?"text-white/85":"text-muted-foreground"),children:(0,Te.jsx)(cy,{id:"pulse.wizard.mode_einmalig_desc",as:"span",children:"Eine einzelne Kurzumfrage"})})]}),(0,Te.jsxs)("button",{type:"button",onClick:()=>y("wiederkehrend"),"data-testid":"pulse-wizard-mode-wiederkehrend",className:"relative rounded-md border px-3 py-3 text-left transition-colors ".concat("wiederkehrend"===b?"border-primary bg-primary text-white":"border-border hover:bg-zinc-50"),children:[(0,Te.jsx)("div",{className:"text-sm font-semibold flex items-center gap-1.5",children:(0,Te.jsx)(cy,{id:"pulse.wizard.mode_wiederkehrend",as:"span",children:"Wiederkehrend"})}),(0,Te.jsx)("div",{className:"text-xs mt-0.5 ".concat("wiederkehrend"===b?"text-white/85":"text-muted-foreground"),children:(0,Te.jsx)(cy,{id:"pulse.wizard.mode_wiederkehrend_desc",as:"span",children:"Stimmungsbarometer im Rhythmus"})})]})]}),c&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2","data-testid":"pulse-wizard-light-mode-hint",children:"Im PULSE Light ist 1 Umfrage pro Monat f\xfcr die Zentrale m\xf6glich \u2013 einmalig oder wiederkehrend."}),"wiederkehrend"===b&&(0,Te.jsxs)("div",{className:"mt-3","data-testid":"pulse-wizard-cadence",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"pulse.wizard.rhythmus_label",as:"span",children:"Rhythmus"})}),(0,Te.jsxs)(vy,{value:j,onChange:e=>k(e.target.value),"data-testid":"pulse-wizard-cadence-select",children:[(0,Te.jsx)("option",{value:"monatlich",children:"Monatlich"}),(0,Te.jsx)("option",{value:"quartalsweise",children:"Quartalsweise"})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.cadence_hint",as:"span",children:"L\xe4uft unbegrenzt, bis Sie das Barometer beenden. Zu jeder f\xe4lligen Wiederholung erhalten Sie eine E-Mail, damit Sie Ihren Verteiler informieren k\xf6nnen."})})]})]})}),"Firma / Filiale"===re&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.branch_label",as:"span",children:"W\xe4hlen Sie Firma / Filiale"})}),(0,Te.jsxs)(vy,{value:O,onChange:e=>
2D(e.target.value),disabled:c,className:c?"opacity-70 cursor-not-allowed":"","data-testid":"pulse-wizard-branch",children:[(0,Te.jsx)("option",{value:"",children:"Bitte w\xe4hlen \u2026"}),n.filter(e=>!c||!n.some(e=>e.is_central)||e.is_central).map(e=>(0,Te.jsx)("option",{value:e.id,children:e.is_central?"".concat(e.firma_name," (Zentrale)"):"".concat(e.firma_name," | ").concat(e.name)},e.id))]}),c&&(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2","data-testid":"pulse-wizard-light-branch-hint",children:"Im PULSE Light sind Umfragen nur f\xfcr die Zentrale m\xf6glich (voreingestellt)."})]}),"Bezeichnung"===re&&(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("label",{className:"block text-sm font-semibold mb-2",children:[(0,Te.jsx)(cy,{id:"pulse.wizard.title_label",as:"span",children:"Name der Umfrage"})," ",(0,Te.jsx)("span",{className:"text-destructive",children:"*"})]}),(0,Te.jsx)(gy,{value:A,onChange:e=>T(e.target.value),"data-testid":"pulse-wizard-title"}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.title_hint",as:"span",children:"Pflichtfeld \u2013 wird als \xdcberschrift der Umfrage-Kachel angezeigt. Vorschlag automatisch erzeugt, frei anpassbar."})})]}),"Abteilungen"===re&&(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-sm font-semibold mb-1",children:(0,Te.jsx)(cy,{id:"pulse.wizard.depts_label",as:"span",children:"Abteilungen ausw\xe4hlen"})}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mb-3",children:(0,Te.jsx)(cy,{id:"pulse.wizard.depts_hint",as:"span",children:"Standardm\xe4\xdfig sind alle Abteilungen der Filiale ausgew\xe4hlt."})}),pe>0&&(0,Te.jsxs)("p",{className:"flex items-start gap-2 text-xs mb-3 rounded-md bg-amber-50 text-amber-800 px-3 py-2","data-testid":"pulse-wizard-dept-notice",children:[(0,Te.jsx)(GS,{size:14,className:"mt-0.5 shrink-0"}),(0,Te.jsx)(cy,{id:"pulse.wizard.repeat_dept_removed",as:"span",vars:{n:pe},children:"{n} Abteilung(en) aus der Original-Umfrage sind nicht mehr verf\xfcgbar und wurden entfernt."})]}),(0,Te.jsxs)("div",{className:"space-y-2 max-h-72 overflow-y-auto",children:[0===I.length&&(0,Te.jsxs)("div",{className:"text-center py-6","data-testid":"pulse-wizard-no-depts",children:[(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mb-4",children:(0,Te.jsx)(cy,{id:"pulse.wizard.depts_empty",as:"span",children:"Noch keine Abteilungen in dieser Filiale vorhanden."})}),(0,Te.jsxs)(fy,{type:"button",onClick:()=>{p(),g("/structure")},"data-testid":"pulse-wizard-create-depts-btn",children:[(0,Te.jsx)(j_,{size:16})," ",(0,Te.jsx)(cy,{id:"pulse.wizard.create_depts",as:"span",children:"Abteilungen anlegen"})]})]}),I.map(e=>(0,Te.jsxs)("label",{className:"flex items-center gap-3 px-3 py-2 rounded-md border border-border cursor-pointer hover:bg-zinc-50","data-testid":"pulse-wizard-dept-".concat(e.id),children:[(0,Te.jsx)("input",{type:"checkbox",checked:B.includes(e.id),onChange:()=>(e=>q(t=>t.includes(e)?t.filter(t=>t!==e):[...t,e]))(e.id),className:"w-4 h-4 accent-primary"}),(0,Te.jsx)("span",{className:"text-sm flex-1",children:e.name}),null!=e.headcount&&(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground",children:[e.headcount," MA"]})]},e.id))]})]}),"Fragen"===re&&(0,Te.jsxs)("div",{"data-testid":"pulse-wizard-step-fragen",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("label",{className:"block text-sm font-semibold",children:["Fragen ",(0,Te.jsxs)("span",{className:"font-normal text-muted-foreground",children:["(bis zu ",7,")"]})]}),(0,Te.jsxs)("span",{className:"text-xs text-muted-foreground","data-testid":"pulse-cq-count",children:[V.length," / ",7]})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-1 mb-3",children:(0,Te.jsx)(cy,{id:"pulse.wizard.fragen_hint",as:"span",children:"W\xe4hlen Sie Fragen aus dem Vorschlagskatalog, erstellen Sie eigene Fragen oder w\xe4hlen Sie ein fertiges Fragen-Set."})}),E?(0,Te.jsxs)("div",{className:"rounded-lg border-2 border-primary bg-primary/5 p-5","data-testid":"pulse-wizard-locked-set",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(If,{size:18,className:"text-primary shrink-0"}),(0,Te.jsxs)("span",{className:"font-heading text-base",children:["FragenSet \u201e",E.title,'"']}),(0,Te.jsxs)("span",{className:"text-[10px] font-semibold px-1.5 py-0.5 rounded bg-white border border-border text-muted-foreground",children:[E.question_count," Fragen"]})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:(0,Te.jsx)(cy,{id:"pulse.wizard.locked_set_hint",as:"span",children:"Bei einem fertigen FragenSet werden die enthaltenen Fragen unver\xe4ndert verwendet. Es k\xf6nnen keine weiteren Fragen erg\xe4nzt oder angepasst werden."})}),(0,Te.jsxs)(fy,{variant:"secondary",className:"mt-4",onClick:()=>{C(null),H([xie()]),_(!0)},"data-testid":"pulse-wizard-locked-set-remove",children:[(0,Te.jsx)(Iv,{size:15})," ",(0,Te.jsx)(cy,{id:"pulse.wizard.locked_set_remove",as:"span",children:"FragenSet entfernen"})]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"space-y-3",children:[V.map((e,t)=>{var n;return(0,Te.jsxs)("div",{className:"border border-border rounded-md p-3 space-y-3","data-testid":"pulse-wizard-question-".concat(t),children:[(0,Te.jsxs)("div",{className:"flex items-start gap-2",children:[(0,Te.jsx)(g9,{size:16,className:"text-muted-foreground mt-2.5 shrink-0"}),(0,Te.jsx)(xy,{value:e.text,onChange:e=>ge(t,{text:e.target.value}),rows:2,placeholder:"Fragetext \u2026","data-testid":"pulse-wizard-qtext-".concat(t)}),(0,Te.jsx)("button",{onClick:()=>{return e=t,H(t=>
2t.filter((t,n)=>n!==e));var e},disabled:1===V.length,"data-testid":"pulse-wizard-qremove-".concat(t),className:"text-muted-foreground hover:text-destructive disabled:opacity-30 mt-2 shrink-0",children:(0,Te.jsx)(y_,{size:16})})]}),(0,Te.jsxs)("div",{className:"flex items-center gap-3 pl-6 flex-wrap",children:[(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:"Typ:"}),(0,Te.jsx)(vy,{value:e.type,onChange:e=>ge(t,{type:e.target.value}),"data-testid":"pulse-wizard-qtype-".concat(t),className:"w-auto text-xs py-1.5",children:Object.entries(hie).map(e=>{let t=Le(e,2),n=t[0],a=t[1];return(0,Te.jsx)("option",{value:n,children:a},n)})}),"likert"===e.type&&i.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("span",{className:"text-xs text-muted-foreground",children:"Skala:"}),(0,Te.jsx)(vy,{value:e.scale_key||"zustimmung",onChange:e=>ge(t,{scale_key:e.target.value}),"data-testid":"pulse-wizard-scale-".concat(t),className:"w-auto text-xs py-1.5",children:i.map(e=>(0,Te.jsx)("option",{value:e.key,children:e.name},e.key))})]})]}),"likert"===e.type&&i.length>0&&(0,Te.jsx)("div",{className:"flex flex-wrap gap-1 pl-6","data-testid":"pulse-wizard-scale-preview-".concat(t),children:((null===(n=i.find(t=>t.key===(e.scale_key||"zustimmung")))||void 0===n?void 0:n.labels)||[]).map((e,t)=>(0,Te.jsx)("span",{className:"text-[10px] text-muted-foreground bg-zinc-100 rounded px-1.5 py-0.5",children:e},t))}),"choice"===e.type&&(0,Te.jsxs)("div",{className:"pl-6 space-y-2","data-testid":"pulse-wizard-options-".concat(t),children:[(e.options||[]).map((n,a)=>(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(gy,{value:n,onChange:e=>((e,t,n)=>H(a=>a.map((a,r)=>{if(r!==e)return a;const i=[...a.options||[]];return i[t]=n,d(d({},a),{},{options:i})})))(t,a,e.target.value),placeholder:"Option ".concat(a+1),"data-testid":"pulse-wizard-option-".concat(t,"-").concat(a),className:"text-sm"}),(0,Te.jsx)("button",{onClick:()=>((e,t)=>H(n=>n.map((n,a)=>a===e?d(d({},n),{},{options:n.options.filter((e,n)=>n!==t)}):n)))(t,a),disabled:(e.options||[]).length<=2,className:"text-muted-foreground hover:text-destructive disabled:opacity-30 shrink-0",children:(0,Te.jsx)(Iv,{size:14})})]},a)),(0,Te.jsxs)(fy,{variant:"ghost",onClick:()=>{return e=t,H(t=>t.map((t,n)=>n===e?d(d({},t),{},{options:[...t.options||[],""]}):t));var e},className:"text-xs",children:[(0,Te.jsx)(Pf,{size:14})," Option"]})]})]},e.id)}),0===V.length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground italic py-2","data-testid":"pulse-cq-empty",children:"Noch keine Fragen hinzugef\xfcgt."})]}),(0,Te.jsxs)("div",{className:"flex flex-wrap gap-2 mt-4",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>H(e=>e.length<7?[...e,xie()]:e),disabled:V.length>=7,"data-testid":"pulse-wizard-addq",children:[(0,Te.jsx)(q_,{size:15})," ",(0,Te.jsx)(cy,{id:"pulse.wizard.btn_own",as:"span",children:"Eigene Frage"})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>Q(e=>!e),disabled:V.length>=7,"data-testid":"pulse-wizard-open-picker",children:[(0,Te.jsx)(U_,{size:15})," ",(0,Te.jsx)(cy,{id:"pulse.wizard.btn_catalog",as:"span",children:"Aus Vorschl\xe4gen w\xe4hlen"})]}),(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>_(e=>!e),"data-testid":"pulse-wizard-open-sets",children:[(0,Te.jsx)(If,{size:15})," ",(0,Te.jsx)(cy,{id:"pulse.wizard.btn_set",as:"span",children:"Fertiges Fragen-Set"})]})]}),c&&(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground mt-2","data-testid":"pulse-wizard-light-q-hint",children:["PULSE Light: bis zu ",7," Fragen je Umfrage. Im Vorschlagskatalog ist 1 Frage je Thema sichtbar, beim FragenSet nur das erste Set. ",(0,Te.jsx)("button",{type:"button",className:"text-primary font-semibold hover:underline",onClick:()=>u&&u(),children:"Upgraden"})," f\xfcr alle Fragen & Sets."]}),S&&(0,Te.jsxs)("div",{className:"mt-4 rounded-lg border border-border overflow-hidden","data-testid":"pulse-wizard-sets",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 border-b border-border",children:[(0,Te.jsxs)("span",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground flex items-center gap-1.5",children:[(0,Te.jsx)(If,{size:13,className:"text-primary"})," Vorgefertigte FragenSets"]}),(0,Te.jsx)("button",{type:"button",onClick:()=>_(!1),"data-testid":"pulse-wizard-sets-close",className:"text-xs font-semibold text-primary hover:underline",children:"Schlie\xdfen"})]}),(0,Te.jsx)("p",{className:"px-3 py-2 text-xs text-muted-foreground border-b border-border",children:"Ein Set ersetzt die aktuellen Fragen. Sie k\xf6nnen danach alles frei anpassen."}),(0,Te.jsxs)("div",{className:"max-h-64 overflow-y-auto p-2 space-y-1.5",children:[(s||[]).map((e,t)=>c&&t>0?null:(0,Te.jsxs)("button",{type:"button",onClick:()=>(e=>{const t=(e.questions||[]).slice(0,7).map(e=>({id:Math.random().toString(36).slice(2,8),text:e.text||e.label||"",type:e.type||"likert",options:e.options&&e.options.length>=2?[...e.options]:["",""],scale_key:e.scale_key||"zustimmung"}));H(t.length?t:[xie()]),A.trim()&&"Pulse-Umfrage"!==A||T(e.title),_(!1),C({id:e.id,title:e.title,question_count:Math.min(7,e.question_count)}),Ia.success("FragenSet \u201e".concat(e.title,'" \xfcbernommen'))})(e),"data-testid":"pulse-set-".concat(e.id),className:"w-full text-left px-3 py-2.5 rounded-md border border-border hover:border-primary hover:bg-primary/5 transition-colors",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,Te.jsx)("span",{className:"text-sm font-semibold",children:e.title}),(0,Te.jsx)("span",{className:"text-[10px] font-semibold shrink-0 px-1.5 py-0.5 rounded bg-zinc-100 text-muted-foreground",children:"".concat(c?Math.min(7,e.question_count):e.question_count," Fragen")})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5 line-clamp-2",children:e.description})]},e.id)),c&&(s||[]).length>1&&(0,Te.jsxs)("button",{type:"button",onClick:()=>u&&u(),"data-testid":"pulse-set-upgrade",className:"w-full text-left px-3 py-2.5 rounded-md border border-dashed border-border bg-zinc-50 hover:border-primary transition-colors",children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(kw,{size:14,className:"text-muted-foreground"}),(0,Te.jsxs)("span",{className:"text-sm font-semibold",children:["Noch ",(s||[]).length-1," weitere FragenSets"]}),(0,Te.jsx)("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-[#1f2937] text-white ml-auto",children:"Upgrade"})]}),(0,Te.jsx)("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Mit PERSENTIS Pulse stehen alle FragenSets mit mehreren Fragen zur Verf\xfcgung."})]}),0===(s||[]).length&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground italic p-2",children:"Keine FragenSets verf\xfcgbar."})]})]}),Y&&(0,Te.jsxs)("div",{className:"mt-4 rounded-lg border border-border overflow-hidden","data-testid":"pulse-wizard-picker",children:[(0,Te.jsxs)("div",{className:"flex items-center justify-between px-3 py-2 bg-zinc-50 border-b border-border",children:[(0,Te.jsxs)("span",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground flex items-center gap-1.5",children:[(0,Te.jsx)(If,{size:13,className:"text-primary"})," Vorschlagskatalog"]}),(0,Te.jsx)("button",{type:"button",onClick:()=>Q(!1),"data-testid":"pulse-wizard-picker-close",className:"text-xs font-semibold text-primary hover:underline",children:"Fertig"})]}),(0,Te.jsx)("div",{className:"flex flex-wrap gap-1.5 px-3 py-2 border-b border-border",children:r.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>J(e.id),"data-testid":"pulse-cq-cat-".concat(e.id),className:"text-xs px-2.5 py-1 rounded-full transition-colors ".concat(X===e.id?"bg-primary text-white":"bg-white border border-border text-foreground hover:bg-zinc-50"),children:e.name},e.id))}),(0,Te.jsxs)("div",{className:"max-h-56 overflow-y-auto p-2 space-y-1",children:[((null===(t=r.find(e=>e.id===X))||void 0===t?void 0:t.questions)||[]).map((e,t)=>{const n=x&&t>0;if(c&&t>0)return null;const a=V.some(t=>t.catalog_id===e.id);return(0,Te.jsxs)("button",{type:"button",onClick:()=>!a&&(e=>{const t=d(d({},xie()),{},{text:e.text||e.label||"",type:"rating"===e.type?"likert":e.type||"open",catalog_id:e.id});"choice"===t.type&&(t.options=e.options&&e.options.length>=2?[...e.options]:["",""]),"likert"===t.type&&(t.scale_key=e.scale_key||"zustimmung"),H(e=>{const n=e.filter(e=>(e.text||"").trim());return n.length<7?[...n,t]:e})})(e),disabled:a||V.length>=7||n,"data-testid":"pulse-cq-suggest-".concat(e.id),className:"w-full text-left flex items-start gap-2 px-2.5 py-2 rounded-md hover:bg-[#
2E5E7EB] disabled:opacity-40 disabled:cursor-not-allowed transition-colors ".concat(n?"ct-soft-blur":""," ").concat(a?"bg-zinc-100":""),children:[a?(0,Te.jsx)(Cf,{size:14,className:"mt-0.5 shrink-0 text-green-600"}):(0,Te.jsx)(Pf,{size:14,className:"mt-0.5 shrink-0 text-primary"}),(0,Te.jsx)("span",{className:"flex-1 text-sm",children:n?B_(e.text,t):e.text}),a?(0,Te.jsx)("span",{className:"text-[10px] font-semibold shrink-0 px-1.5 py-0.5 rounded bg-green-100 text-green-700","data-testid":"pulse-cq-added-".concat(e.id),children:"hinzugef\xfcgt"}):(0,Te.jsx)("span",{className:"text-[10px] font-semibold shrink-0 px-1.5 py-0.5 rounded ".concat("rating"===e.type?"bg-[#1F2A44]/10 text-[#1F2A44]":"bg-amber-100 text-amber-800"),children:"rating"===e.type?"Wertung":"Offen"})]},e.id)}),c&&(e=>{const t=r.find(e=>e.id===X),n=Math.max(0,((null===t||void 0===t||null===(e=t.questions)||void 0===e?void 0:e.length)||0)-1),a=r.reduce((e,t)=>{var n;return e+((null===(n=t.questions)||void 0===n?void 0:n.length)||0)},0);return(0,Te.jsxs)("button",{type:"button",onClick:()=>u&&u(),"data-testid":"pulse-cq-upgrade",className:"w-full text-left flex items-center gap-2 px-2.5 py-2 rounded-md border border-dashed border-border bg-zinc-50 hover:border-primary transition-colors",children:[(0,Te.jsx)(kw,{size:14,className:"shrink-0 text-muted-foreground"}),(0,Te.jsxs)("span",{className:"flex-1 text-sm",children:["Noch ",n," weitere Fragen zu diesem Thema \xb7 insgesamt ",a," Fragen verf\xfcgbar."]}),(0,Te.jsx)("span",{className:"text-[10px] font-bold px-1.5 py-0.5 rounded-full bg-[#1f2937] text-white",children:"Upgraden"})]})})()]}),x&&(0,Te.jsx)("div",{className:"p-2 pt-0",children:(0,Te.jsx)(F_,{compact:!0,testid:"pulse-cq-blur-notice"})})]})]})]})]}),(0,Te.jsxs)("div",{className:"px-6 py-4 border-t border-border flex items-center justify-end gap-2",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>0===ne?p():ae(ne-1),"data-testid":"pulse-wizard-back","aria-label":0===ne?"Abbrechen":"Zur\xfcck",title:0===ne?"Abbrechen":"Zur\xfcck",className:"px-3",children:(0,Te.jsx)(Rf,{size:16})}),ne<ee.length-1?(0,Te.jsx)(fy,{onClick:()=>ve()&&ae(ne+1),disabled:!ve(),"data-testid":"pulse-wizard-next","aria-label":"Weiter",title:"Weiter",className:"px-3",children:(0,Te.jsx)(Df,{size:16})}):(0,Te.jsx)(fy,{onClick:async()=>{G(!0);try{const e={title:A.trim(),branch_id:O,department_ids:B.length&&B.length!==I.length?B:[],questions:V.map(e=>({id:e.id,text:(e.text||"").trim(),type:e.type,options:"choice"===e.type?(e.options||[]).map(e=>(e||"").trim()).filter(Boolean):[],scale_key:"likert"===e.type?e.scale_key||"zustimmung":void 0}))};f?(await Ps.put("/pulse/surveys/".concat(o.token),e),Ia.success("Pulse-Umfrage aktualisiert")):"wiederkehrend"===b?(await Ps.post("/pulse/programs",d(d({},e),{},{cadence:j})),Ia.success("Stimmungsbarometer erstellt")):(await Ps.post("/pulse/surveys",e),Ia.success("Pulse-Umfrage erstellt")),h(f?null:b)}catch(rse){fie(rse)?(p(),m&&m()):Ia.error(Cs(rse))}finally{G(!1)}},disabled:!xe||K,"data-testid":"pulse-wizard-save",children:K?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Of,{size:16,className:"animate-spin"})," ",f?"Wird gespeichert \u2026":"Wird erstellt \u2026"]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)(Cf,{size:16})," ",f?"\xc4nderungen speichern":"Umfrage erstellen"]})})]})]})})}function bie(){const e=$_(),t=ln().ptype,n=Ws().ctMode,r="wiederkehrend"===t?"wiederkehrend":"einmalig",i=sn(),s=Le((0,a.useState)([]),2),o=s[0],l=s[1],c=Le((0,a.useState)([]),2),d=c[0],u=c[1],m=Le((0,a.useState)([]),2),p=m[0],h=m[1],f=Le((0,a.useState)([]),2),g=f[0],x=f[1],v=Le((0,a.useState)([]),2),b=v[0],y=v[1],w=Le((0,a.useState)([]),2),j=(w[0],w[1]),k=Le((0,a.useState)(null),2),N=k[0],S=k[1],_=Le((0,a.useState)(null),2),z=_[0],E=_[1],C=Le((0,a.useState)(!0),2),P=C[0],A=C[1],T=Le((0,a.useState)(!1),2),R=T[0],O=T[1],D=Le((0,a.useState)(null),2),M=D[0],I=D[1],F=Le((0,a.useState)(null),2),L=F[0],B=F[1],q=Le((0,a.useState)(null),2),U=q[0],V=q[1],H=Le((0,a.useState)(null),2),W=H[0],K=H[1],G=Le((0,a.useState)(""),2),Z=G[0],Y=G[1],Q=Le((0,a.useState)(""),2),$=Q[0],X=Q[1],J=Le((0,a.useState)(""),2),ee=J[0],te=J[1],ne=Le((0,a.useState)(!1),2),ae=ne[0],re=ne[1],ie=Le((0,a.useState)(1),2),se=ie[0],oe=ie[1],le=Le((0,a.useState)(!1),2),ce=le[0],de=le[1],ue=(0,a.useCallback)(()=>{A(!0),Promise.all([Ps.get("/pulse/surveys"),Ps.get("/branches"),Ps.get("/analytics-question-catalog")]).then(e=>{let t=Le(e,3),n=t[0],a=t[1],r=t[2];l(n.data),u(a.data),h(r.data.categories||[]),x(r.data.scales||[])}).catch(()=>{}).finally(()=>A(!1)),Ps.get("/pulse/programs").then(e=>j(e.data)).catch(()=>{}),Ps.get("/pulse/question-sets").then(e=>y(e.data)).catch(()=>{}),Ps.get("/pulse/light-status").then(e=>{var t;re(!!e.data.light),oe(e.data.light?null!==(t=e.data.remaining)&&void 0!==t?t:0:1)}).catch(()=>{})},[]);(0,a.useEffect)(()=>{ue()},[ue]);const me=(0,a.useRef)(!1);(0,a.useEffect)(()=>
2{if(me.current||P||!d.length)return;"1"===new URLSearchParams(window.location.search).get("new")&&(me.current=!0,I(null),O(!0),i(window.location.pathname,{replace:!0}))},[P,d,i]);const pe=e=>"".concat(window.location.origin,"/pulse-survey/").concat(e).concat(n?"?ct=1":""),he=e=>{navigator.clipboard.writeText(pe(e)),Ia.success("Umfragelink kopiert")},fe=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flyer";try{const n=await Ps.get("/invitations/".concat(e,"/qr-pdf?variant=").concat(t),{responseType:"blob"}),a=window.URL.createObjectURL(new Blob([n.data],{type:"application/pdf"})),r=document.createElement("a");r.href=a,r.download="poster"===t?"PERSENTIS-QR-Plakat.pdf":"PERSENTIS-QR-Flyer.pdf",document.body.appendChild(r),r.click(),r.remove(),window.URL.revokeObjectURL(a)}catch(rse){Ia.error(Cs(rse))}},ge=async(e,t,n)=>{try{await Ps.patch("/pulse/surveys/".concat(e,"/status"),{status:t}),Ia.success("aktiv"===t?"Umfrage gestartet":"Umfrage abgeschlossen"),n&&n(),ue()}catch(rse){fie(rse)?de(!0):Ia.error(Cs(rse))}},xe=()=>{O(!1),I(null)},ve=Z||$||ee,be=o.filter(e=>{if("abgeschlossen"===e.status)return!1;const t=Z.trim().toLowerCase();if(t&&!"".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.label||"").toLowerCase().includes(t))return!1;const n=(e.created_at||"").slice(0,10);return!($&&(!n||n<$))&&!(ee&&(!n||n>ee))}),ye=(e,t)=>{const n={};e.forEach(e=>{const a="".concat(t,"||").concat(e.firma_name,"||").concat(e.branch_name);n[a]||(n[a]={key:a,firma:e.firma_name,name:e.branch_name,is_central:!!e.is_central,items:[]}),n[a].items.push(e)});const a=Object.values(n).sort((e,t)=>Number(t.is_central)-Number(e.is_central)||(e.firma||"").localeCompare(t.firma||"")||(e.name||"").localeCompare(t.name||""));return a.forEach(e=>e.items.sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||""))),a},we=be.filter(e=>e.program_id),je=be.filter(e=>!e.program_id),ke=ye(we.filter(e=>"vorbereitung"===e.status),"recvorb"),Ne=ye(we.filter(e=>"aktiv"===e.status),"recaktiv"),Se=ye(je.filter(e=>"vorbereitung"===e.status),"einvorb"),_e=ye(je.filter(e=>"aktiv"===e.status),"einaktiv"),ze=e=>e.reduce((e,t)=>e+t.items.length,0),Ee=(0,a.useRef)(!1),Ce=(0,a.useRef)(!1),Pe=Le((0,a.useState)(null),2),Ae=Pe[0],Re=Pe[1],Oe=Le((0,a.useState)(null),2),De=Oe[0],Me=Oe[1];(0,a.useEffect)(()=>{var e,t,n,a;if(Ee.current)return;const i="wiederkehrend"===r?(null===(e=ke[0])||void 0===e?void 0:e.key)||(null===(t=Ne[0])||void 0===t?void 0:t.key):(null===(n=Se[0])||void 0===n?void 0:n.key)||(null===(a=_e[0])||void 0===a?void 0:a.key);i&&(B(i),Ee.current=!0)},[ke,Ne,Se,_e]),(0,a.useEffect)(()=>{if(Ce.current||!o.length)return;const e=new URLSearchParams(window.location.search).get("open");if(!e)return;Ce.current=!0;const t=[..."wiederkehrend"===r?ke:Se,..."wiederkehrend"===r?Ne:_e].find(t=>t.items.some(t=>t.token===e));t&&(B(t.key),Ee.current=!0),Re(e),setTimeout(()=>{const t=document.getElementById("survey-card-".concat(e));t&&t.scrollIntoView({behavior:"smooth",block:"center"})},500),setTimeout(()=>Re(null),4500)},[o]);const Ie=t=>{var a,r,i,s,o,l,c,d;return(0,Te.jsxs)(by,{id:"survey-card-".concat(t.token),className:"p-5 flex flex-col transition-shadow duration-300 ".concat(t.token===Ae?"ring-2 ring-primary ring-offset-2 shadow-lg":""),"data-testid":"pulse-card-".concat(t.token),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"pulse-title-".concat(t.token),children:pie(t)})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center","data-testid":"pulse-info-".concat(t.token),children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.created",as:"span",children:"Erstellt am"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:die(t.created_at)}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.questions",as:"span",children:"Fragen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:t.questions}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"invitations.info.participants",as:"span",children:"Teilnehmer"})}),t.program_id?(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums","data-testid":"pulse-responses-".concat(t.token),children:t.responses}):(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2","data-testid":"pulse-responses-".concat(t.token),children:[(0,Te.jsxs)("span",{className:"font-medium tabular-nums",children:[t.responses,"/",null!==(a=t.participants_total)&&void 0!==a?a:0]}),null!=t.rate&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(Q_(t.rate,e)),"data-testid":"pulse-rate-".concat(t.token),children:[t.rate,"%"]})]}),t.program_id&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.repetitions",as:"span",children:"Wiederholungen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums","data-testid":"pulse-repetitions-".concat(t.token),children:null!==(r=t.wave_index)&&void 0!==r?r:0})]}),!t.program_id&&"aktiv"===t.status&&t.ends_at&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.ends_at",as:"span",children:"L\xe4uft bis"})}),(0,Te.jsx)("span",{className:"text-right font-medium","data-testid":"pulse-endsat-".concat(t.token),children:die(t.ends_at)})]})]}),"vorbereitung"===t.status?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"mt-3 flex gap-2","data-testid":"pulse-actions-".concat(t.token),children:[(0,Te.jsx)(gie,{onClick:()=>(async e=>{try{const t=(await Ps.get("/pulse/surveys/".concat(e))).data;I(t),O(!0)}catch(rse){Ia.error(Cs(rse))}})(t.token),title:"Bearbeiten",tipId:"invitations.tip_edit",testid:"pulse-edit-".concat(t.token),children:(0,Te.jsx)(Mf,{size:16})}),(0,Te.jsx)(gie,{onClick:()=>window.open(pe(t.token)+(n?"&preview=1":"?preview=1"),"_blank"),title:"Vorschau \xf6ffnen",tipId:"invitations.tip_preview",testid:"pulse-preview-".concat(t.token),children:(0,Te.jsx)(tS,{size:16})}),(0,Te.jsx)(gie,{onClick:()=>V(t),title:"L\xf6schen",tipId:"invitations.tip_delete",testid:"pulse-delete-".concat(t.token),danger:!0,children:(0,Te.jsx)(y_,{size:16})})]}),(0,Te.jsxs)("button",{onClick:()=>ge(t.token,"aktiv",()=>Me(t)),"data-testid":"pulse-start-".concat(t.token),className:"mt-2 w-full inline-flex items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-[var(--brand-primary-dark)]",children:[(0,Te.jsx)(Iy,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.start",as:"span",children:"Umfrage starten"})]})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"mt-3 flex gap-2","data-testid":"pulse-actions-".concat(t.token),children:[!t.program_id&&(0,Te.jsx)(e_,{className:"flex-1",i
2d:(null!==(i=t.extensions_used)&&void 0!==i?i:0)>=(null!==(s=t.max_extensions)&&void 0!==s?s:1)?"pulse.tip_extend_max":"pulse.tip_extend",label:(null!==(o=t.extensions_used)&&void 0!==o?o:0)>=(null!==(l=t.max_extensions)&&void 0!==l?l:1)?"Laufzeit bereits um 3 Tage verl\xe4ngert":"Um 3 Tage verl\xe4ngern",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:(null!==(c=t.extensions_used)&&void 0!==c?c:0)>=(null!==(d=t.max_extensions)&&void 0!==d?d:1),onClick:()=>(async e=>{try{await Ps.patch("/pulse/surveys/".concat(e,"/extend")),Ia.success("Laufzeit um 3 Tage verl\xe4ngert"),ue()}catch(rse){Ia.error(Cs(rse))}})(t.token),"data-testid":"pulse-extend-".concat(t.token),"aria-label":"Verl\xe4ngern",children:(0,Te.jsx)(R_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_copylink",label:"Umfragelink kopieren",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:n,onClick:()=>he(t.token),"data-testid":"pulse-copy-".concat(t.token),"aria-label":"Umfragelink kopieren",children:(0,Te.jsx)(O_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_qr",label:"QR-Code-PDF herunterladen",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:n,onClick:()=>fe(t.token),"data-testid":"pulse-qr-".concat(t.token),"aria-label":"QR-Code-PDF herunterladen",children:(0,Te.jsx)(D_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_delete_survey",label:"Umfrage l\xf6schen",children:(0,Te.jsx)(fy,{variant:"danger",className:"w-full",onClick:()=>V(t),"data-testid":"pulse-delete-".concat(t.token),"aria-label":"Umfrage l\xf6schen",children:(0,Te.jsx)(y_,{size:16})})})]}),(0,Te.jsxs)("button",{onClick:()=>K(t),"data-testid":"pulse-complete-".concat(t.token),className:"mt-2 w-full inline-flex items-center justify-center gap-2 rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-red-700",children:[(0,Te.jsx)(Ef,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.close",as:"span",children:"Umfrage schlie\xdfen"})]})]})]},t.token)},Fe=function(e,t,n,a,r,i,s){let o=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null;return(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"pulse-section-".concat(r),children:[(0,Te.jsx)(e,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:t,as:"span",children:n})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",a,")"]})]}),l,!o&&(0,Te.jsx)("div",{className:"space-y-4","data-testid":r,children:0===s.length?i:s.map(e=>(e=>{const t=L===e.key;return(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"pulse-folder-".concat(uie(e.firma),"-").concat(uie(e.name)),children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>B(t?null:e.key),"data-testid":"pulse-folder-toggle-".concat(uie(e.firma),"-").concat(uie(e.name)),"aria-expanded":t,className:"w-full flex items-center justify-between px-5 py-3.5 bg-zinc-50 hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 font-heading text-base",children:[e.is_central?(0,Te.jsx)(w_,{size:18,className:"text-primary fill-primary shrink-0"}):(0,Te.jsx)(j_,{size:18,strokeWidth:1.5,className:"text-primary shrink-0"}),mie(e.is_central,e.firma,e.name),(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",e.items.length,")"]})]}),(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform duration-200 ".concat(t?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:t&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"p-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"pulse-folder-body-".concat(uie(e.name)),children:e.items.map(e=>Ie(e))})})})]},e.key)})(e))})]})};return(0,Te.jsxs)("div",{"data-testid":"pulse-surveys",children:[(0,Te.jsx)(ky,{title:"wiederkehrend"===r?"Wiederkehrend \u2013 Umfragen":"Einmalig \u2013 Umfragen",subtitle:"wiederkehrend"===r?"Stimmungsbarometer anlegen und verwalten":"Einmalige Kurzumfragen anlegen und verwalten",titleId:"wiederkehrend"===r?"pulse.surveys.title.wiederkehrend":"pulse.surveys.title.einmalig",subtitleId:"wiederkehrend"===r?"pulse.surveys.subtitle.wiederkehrend":"pulse.surveys.subtitle.einmalig"}),(0,Te.jsx)("div",{className:"mb-6 flex justify-end items-center gap-3",children:(0,Te.jsxs)(fy,{onClick:()=>{ae&&se<=0?de(!0):(I(null),O(!0))},disabled:P||!d.length,"data-testid":"pulse-create-btn",children:[(0,Te.jsx)(bw,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.create",as:"span",children:"Umfrage erstellen"})]})}),(0,Te.jsx)(by,{className:"p-4 mb-6",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end gap-3","data-testid":"pulse-filters",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.search_label",as:"span",children:"Suche (Firma, Filiale, Bezeichnung)"})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:Z,onChange:e=>Y(e.target.value),placeholder:"Suchen \u2026",className:"pl-9","data-testid":"pulse-search-input"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_from",as:"span",children:"Zeitraum von"})}),(0,Te.jsx)(gy,{type:"date",value:$,onChange:e=>X(e.target.value),"data-testid":"pulse-filter-from"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_to",as:"span",children:"bis"})}),(0,Te.jsx)(gy,{type:"date",value:ee,onChange:e=>te(e.target.value),"data-testid":"pulse-filter-to"})]}),ve&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{Y(""),X(""),te("")},"data-testid":"pulse-filter-clear",children:[(0,Te.jsx)(Iv,{size:15})," ",(0,Te.jsx)(cy,{id:"common.reset",as:"span",children:"Zur\xfccksetzen"})]})]})}),P?(0,Te.jsx)(FS,{}):(0,Te.jsxs)(Te.Fragment,{children:["wiederkehrend"===r&&(0,Te.jsx)("div",{className:"mb-8","data-testid":"pulse-bar-recurring",children:(0,Te.jsxs)("div",{className:"space-y-6",children:[Fe(Mf,"pulse.sub.vorbereitung","In Vorbereitung",ze(ke),"pulse-rec-vorb-list",(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.empty.rec_vorb",as:"span",children:"Keine wiederkehrenden Umfragen in Vorbereitung."})})}),ke),Fe(Nw,"pulse.sub.aktiv","Umfrage Aktiv",ze(Ne),"pulse-rec-aktiv-list",(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.empty.rec_aktiv",as:"span",children:"Keine aktiven wiederkehrenden Umfragen."})})}),Ne,!0,(0,Te.jsx)(by,{className:"p-5","data-testid":"pulse-rec-aktiv-hint",children:(0,Te.jsxs)("p",{className:"text-sm font-bold text-muted-foreground",children:[(0,Te.jsx)(cy,{id:"pulse.rec_aktiv.hint_pre",as:"span",children:"Die aktiven Wiederkehrenden Umfragen finden Sie bereits unter dem "}),(0,Te.jsx)(fa,{to:"/pulse/wiederkehrend/auswertungen",className:"font-bold text-primary hover:underline","data-testid":"pulse-rec-aktiv-hint-link",children:(0,Te.jsx)(cy,{id:"pulse.rec_aktiv.hint_link",as:"span",children:"Men\xfcpunkt Ergebnisse"})}),(0,Te.jsx)(cy,{id:"pulse.rec_aktiv.hint_post",as:"span",children:"."})]})}))]})}),"einmalig"===r&&(0,Te.jsx)("div",{"data-testid":"pulse-bar-einmalig",children:(0,Te.jsxs)("div",{className:"space-y-6",children:[Fe(Mf,"pulse.sub.vorbereitung","In Vorbereitung",ze(Se),"pulse-ein-vorb-list",(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.empty.ein_vorb",as:"span",children:"Keine einmaligen Umfragen in Vorbereitung."})})}),Se),Fe(Nw,"pulse.sub.aktiv","Umfrage Aktiv",ze(_e),"pulse-ein-aktiv-list",(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.empty.ein_aktiv",as:"span",children:"Keine aktiven einmaligen Umfragen."})})}),_e)]})})]}),R&&(0,Te.jsx)(vie,{branches:d,catalog:p,scales:g,questionSets:b,editSurvey:M,initialMode:r,light:ae,onUpgrade:()=>{xe(),i("/billing?product=pulse")},onLimitError:()=>de(!0),onClose:xe,onCreated:e=>{xe(),e&&e!==r?i("/pulse/".concat(e,"/invitations")):ue()}}),N&&(0,Te.jsx)(cie,{program:N,onClose:()=>S(null)}),z&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-end-program-dialog",onClick:()=>E(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(k_,{size:20,className:"text-red-600"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.dialog.end_title",as:"span",children:"Stimmungsbarometer beenden?"})})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie die wiederkehrende Umfrage ",(0,Te.jsx)("strong",{children:z.title})," wirklich beenden? Es werden dann ",(0,Te.jsx)("strong",{children:"keine weiteren Wiederholungen"})," erzeugt. Bereits laufende Umfragen und die bisherigen Auswertungen bleiben erhalten."]}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>E(null),"data-testid":"pulse-end-program-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>(async e=>
2{try{await Ps.patch("/pulse/programs/".concat(e,"/end")),Ia.success("Stimmungsbarometer beendet"),E(null),ue()}catch(rse){Ia.error(Cs(rse))}})(z.id),"data-testid":"pulse-end-program-confirm",children:[(0,Te.jsx)(Iv,{size:16})," Beenden"]})]})]})}),W&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-complete-dialog",onClick:()=>K(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(Ef,{size:20,className:"text-primary"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:"Umfrage wirklich abschlie\xdfen?"})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie die Umfrage ",(0,Te.jsx)("strong",{children:W.label})," wirklich abschlie\xdfen? Eine ",(0,Te.jsx)("strong",{children:"Wiederer\xf6ffnung ist nicht m\xf6glich"}),'. Die Ergebnisse finden Sie anschlie\xdfend unter \u201eErgebnisse".']}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>K(null),"data-testid":"pulse-complete-cancel",children:[(0,Te.jsx)(Iv,{size:16})," Abbrechen"]}),(0,Te.jsxs)(fy,{onClick:()=>ge(W.token,"abgeschlossen",()=>K(null)),"data-testid":"pulse-complete-confirm",children:[(0,Te.jsx)(Ef,{size:16})," Abschlie\xdfen"]})]})]})}),U&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-delete-dialog",onClick:()=>V(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-destructive",children:[(0,Te.jsx)(k_,{size:20}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.dialog.delete_title",as:"span",children:"Umfrage l\xf6schen?"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2","data-testid":"pulse-delete-dialog-text",children:"aktiv"===U.status?"Beim L\xf6schen gehen alle Informationen sowie s\xe4mtliche Antworten, die bereits abgegeben wurden unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab.":"Beim L\xf6schen gehen alle Informationen unwiederruflich verloren. Wenn Sie dies nicht m\xf6chten, brechen Sie den L\xf6schvorgang ab."}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>V(null),"data-testid":"pulse-delete-cancel",children:[(0,Te.jsx)(Iv,{size:16})," Abbrechen"]}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>(async e=>{try{await Ps.delete("/pulse/surveys/".concat(e)),Ia.success("Umfrage gel\xf6scht"),V(null),ue()}catch(rse){Ia.error(Cs(rse))}})(U.token),"data-testid":"pulse-delete-confirm",children:[(0,Te.jsx)(y_,{size:16})," L\xf6schen"]})]})]})}),De&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-started-dialog",onClick:()=>Me(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-primary",children:[(0,Te.jsx)(Ef,{size:20}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.dialog.started_title",as:"span",children:"Umfrage gestartet"})})]}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"Ihre Umfrage ist jetzt aktiv. Verteilen Sie den Teilnahme-Link oder drucken Sie das QR-Code-PDF \u2013 als Flyer (4 Kacheln zum Ausschneiden) oder gro\xdfformatiges Plakat (1 pro Seite) f\xfcr den Aushang."}),(0,Te.jsxs)("div",{className:"mt-5 space-y-2",children:[(0,Te.jsxs)("div",{className:"grid sm:grid-cols-2 gap-2",children:[(0,Te.jsxs)(fy,{className:"w-full",disabled:n,onClick:()=>fe(De.token,"flyer"),"data-testid":"pulse-started-qr",children:[(0,Te.jsx)(D_,{size:16})," Flyer (4 pro Seite)"]}),(0,Te.jsxs)(fy,{className:"w-full",disabled:n,onClick:()=>fe(De.token,"poster"),"data-testid":"pulse-started-qr-poster",children:[(0,Te.jsx)(D_,{size:16})," Plakat (1 pro Seite)"]})]}),(0,Te.jsxs)(fy,{variant:"secondary",className:"w-full",disabled:n,onClick:()=>{he(De.token)},"data-testid":"pulse-started-copy",children:[(0,Te.jsx)(O_,{size:16})," Teilnahme-Link kopieren"]})]}),(0,Te.jsx)("div",{className:"mt-4 flex justify-end",children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>Me(null),"data-testid":"pulse-started-close",children:[(0,Te.jsx)(Iv,{size:16})," Schlie\xdfen"]})})]})}),ce&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/50","data-testid":"pulse-upgrade-
2dialog",onClick:()=>de(!1),children:(0,Te.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-full max-w-md p-7 text-center",onClick:e=>e.stopPropagation(),children:[(0,Te.jsx)("div",{className:"w-14 h-14 rounded-full bg-accent flex items-center justify-center mx-auto mb-4",children:(0,Te.jsx)(If,{size:26,className:"brand-green"})}),(0,Te.jsx)("h3",{className:"font-heading text-xl",children:(0,Te.jsx)(cy,{id:"pulse.upgrade.title",as:"span",children:"PULSE Light \u2013 Limit erreicht"})}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-3",children:(0,Te.jsx)(cy,{id:"pulse.upgrade.body",as:"span",children:"Im PULSE Light ist immer nur EINE Umfrage gleichzeitig m\xf6glich \u2013 einmalig oder wiederkehrend. Schlie\xdfen Sie Ihre aktuelle Umfrage ab oder wechseln Sie zu PERSENTIS Pulse f\xfcr unbegrenzte, auch parallele und wiederkehrende Umfragen."})}),(0,Te.jsxs)("div",{className:"mt-6 flex flex-col sm:flex-row gap-2 justify-center",children:[(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>de(!1),"data-testid":"pulse-upgrade-close",children:[(0,Te.jsx)(Iv,{size:16})," ",(0,Te.jsx)(cy,{id:"common.close",as:"span",children:"Schlie\xdfen"})]}),(0,Te.jsxs)(fy,{onClick:()=>{de(!1),i("/billing?product=pulse")},"data-testid":"pulse-upgrade-cta",children:[(0,Te.jsx)(If,{size:16})," ",(0,Te.jsx)(cy,{id:"pulse.upgrade.cta",as:"span",children:"Jetzt upgraden"})]})]})]})})]})}const yie=e=>(e||"").replace(/\s+/g,"-").toLowerCase(),wie=(e,t,n)=>n||t,jie=e=>(e||"").replace(/^\s*Stimmungsbarometer\s+/i,"").trim()||e||"",kie=e=>e>=80?"bg-green-100 text-green-700":e>=50?"bg-amber-100 text-amber-700":"bg-red-100 text-red-700";function Nie(){var e,t,n;const r=Xa().t,i=sn(),s="wiederkehrend"===ln().ptype?"wiederkehrend":"einmalig",o=pw(),l=Ws().ctMode,c=e=>r("quartalsweise"===e?"pulse.cadence.quarterly":"pulse.cadence.monthly"),u=e=>null==e?"\u2014":r(e<50?"result.zone.kritisch":e<75?"result.zone.moderat":"result.zone.exzellent"),m=[{color:o.kritisch,from:0,to:50},{color:o.moderat,from:50,to:75},{color:o.exzellent,from:75,to:100}],p=Le((0,a.useState)([]),2),h=p[0],f=p[1],g=Le((0,a.useState)([]),2),x=g[0],v=g[1],b=Le((0,a.useState)(""),2),y=b[0],w=b[1],j=Le((0,a.useState)(""),2),k=j[0],N=j[1],S=Le((0,a.useState)(""),2),_=S[0],z=S[1],E=Le((0,a.useState)(null),2),C=E[0],P=E[1],A=Le((0,a.useState)({laufend:!0,beendet:!1}),2),T=A[0],R=A[1],O=e=>{var t,n;if(!!T[e])return void R(t=>d(d({},t),{},{[e]:!1}));R({laufend:"laufend"===e,beendet:"beendet"===e});const a="laufend"===e?null===(t=ae[0])||void 0===t?void 0:t.key:null===(n=re[0])||void 0===n?void 0:n.key;P(a||null)},D=Le((0,a.useState)(!0),2),M=D[0],I=D[1],F=Le((0,a.useState)(!1),2),L=F[0],B=F[1],q=Le((0,a.useState)(null),2),U=q[0],V=q[1],H=Le((0,a.useState)(null),2),W=H[0],K=H[1],G=()=>Ps.get("/pulse/programs").then(e=>v(e.data)).catch(()=>{});(0,a.useEffect)(()=>{I(!0),"wiederkehrend"===s?Ps.get("/pulse/programs").then(e=>v(e.data)).catch(()=>{}).finally(()=>I(!1)):Ps.get("/pulse/surveys").then(e=>f(e.data)).catch(()=>{}).finally(()=>I(!1)),Ps.get("/pulse/light-status").then(e=>B(!!e.data.light)).catch(()=>{})},[s]);const Z=y||k||_,Y=e=>{const t=y.trim().toLowerCase();return!t||e.toLowerCase().includes(t)},Q=e=>{const t=(e||"").slice(0,10);return!(k&&(!t||t<k))&&!(_&&(!t||t>_))},$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};return e.forEach(e=>{const a="".concat(t).concat(e.firma_name,"||").concat(e.branch_name);n[a]||(n[a]={key:a,firma:e.firma_name,name:e.branch_name,is_central:!!e.is_central,items:[]}),n[a].items.push(e)}),Object.values(n).sort((e,t)=>Number(t.is_central)-Number(e.is_central)||(e.firma||"").localeCompare(t.firma||"")||(e.name||"").localeCompare(t.name||""))},X=h.filter(e=>"abgeschlossen"===e.status&&!e.program_id&&Y("".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.label||""))&&Q(e.created_at)),J=$(X);J.forEach(e=>e.items.sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||"")));const ee=x.filter(e=>Y("".concat(e.firma_name," ").concat(e.branch_name," ").concat(e.title||""))&&Q(e.created_at)),te=ee.filter(e=>"aktiv"===e.status),ne=ee.filter(e=>"beendet"===e.status),ae=$(te,"laufend-"),re=$(ne,"beendet-");
2[ae,re].forEach(e=>e.forEach(e=>e.items.sort((e,t)=>(t.created_at||"").localeCompare(e.created_at||""))));const ie="wiederkehrend"===s?(null===(e=ae[0])||void 0===e?void 0:e.key)||(null===(t=re[0])||void 0===t?void 0:t.key):null===(n=J[0])||void 0===n?void 0:n.key,se=(0,a.useRef)(!1);(0,a.useEffect)(()=>{se.current||ie&&(P(ie),se.current=!0)},[ie]);const oe=e=>{return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"pulse-result-card-".concat(e.token),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base","data-testid":"pulse-result-title-".concat(e.token),children:e.label})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center","data-testid":"pulse-result-info-".concat(e.token),children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.teilnehmer",as:"span",children:"Teilnehmer"})}),(0,Te.jsxs)("span",{className:"text-right flex items-center justify-end gap-2",children:[(0,Te.jsx)("span",{className:"font-medium tabular-nums",children:e.responses}),null!=e.rate&&(0,Te.jsxs)("span",{className:"text-[11px] font-semibold px-1.5 py-0.5 rounded-full ".concat(kie(e.rate)),"data-testid":"pulse-result-rate-".concat(e.token),children:[e.rate,"%"]})]}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.questions",as:"span",children:"Fragen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.questions}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"auswertungen.info.completed",as:"span",children:"Abgeschlossen"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:(t=e.completed_at||e.created_at,t?new Date(t).toLocaleDateString("de-DE"):"\u2014")})]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,Te.jsxs)(fy,{onClick:()=>i("/pulse/einmalig/auswertungen/".concat(e.token)),"data-testid":"pulse-open-analysis-".concat(e.token),children:[(0,Te.jsx)(jw,{size:16})," ",(0,Te.jsx)(cy,{id:"auswertungen.open",as:"span",children:"Ergebnisse \xf6ffnen"})]}),(0,Te.jsx)(e_,{className:"w-full",label:S_,children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:void 0,"data-testid":"pulse-export-pdf-".concat(e.token),className:"w-full ".concat("opacity-60"),title:void 0,children:[(0,Te.jsx)(N_,{size:16})," ",(0,Te.jsx)(cy,{id:"auswertungen.export_pdf",as:"span",children:"Als PDF exportieren"}),L&&!1]})})]})]},e.token);var t},le=e=>{return(0,Te.jsxs)(by,{className:"p-5 flex flex-col","data-testid":"pulse-result-program-".concat(e.id),"data-card-slug":yie(jie(e.title)),children:[(0,Te.jsx)("div",{className:"text-center",children:(0,Te.jsx)("div",{className:"font-heading text-base",children:jie(e.title)})}),null!=e.current_score&&(0,Te.jsx)("div",{className:"mt-3 flex flex-col items-center","data-testid":"pulse-result-program-gauge-wrap-".concat(e.id),children:(0,Te.jsx)(qS,{value:e.current_score,color:(t=e.current_score,null==t?"#9ca3af":t<50?o.kritisch:t<75?o.moderat:o.exzellent),status:u(e.current_score),segments:m,size:130})}),(0,Te.jsxs)("div",{className:"mt-3 grid grid-cols-2 gap-y-1.5 gap-x-3 text-xs bg-zinc-50 rounded-md p-3 items-center",children:[(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.program.rhythmus",as:"span",children:"Rhythmus"})}),(0,Te.jsx)("span",{className:"text-right font-medium",children:c(e.cadence)}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.program.waves",as:"span",children:"Wiederholungen bisher"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.wave_count}),(0,Te.jsx)("span",{className:"text-muted-foreground",children:(0,Te.jsx)(cy,{id:"pulse.info.questions",as:"span",children:"Fragen"})}),(0,Te.jsx)("span",{className:"text-right font-medium tabular-nums",children:e.questions})]}),(0,Te.jsxs)("div",{className:"mt-4 flex flex-col gap-2",children:[(0,Te.jsxs)(fy,{onClick:()=>i("/pulse/wiederkehrend/barometer/".concat(e.id),{state:{program:e}}),"data-testid":"pulse-result-program-trend-".concat(e.id),"data-program-slug":yie(jie(e.title)),children:[(0,Te.jsx)(US,{size:16})," ",(0,Te.jsx)(cy,{id:"pulse.program.barometer_open",as:"span",children:"Barometer \xf6ffnen"})]}),(0,Te.jsx)(e_,{className:"w-full",label:S_,children:(0,Te.jsxs)(fy,{variant:"secondary",onClick:void 0,"data-testid":"pulse-result-program-pdf-".concat(e.id),className:"w-full ".concat("opacity-60"),children:[(0,Te.jsx)(N_,{size:16})," ",(0,Te.jsx)(cy,{id:"auswertungen.export_pdf",as:"span",children:"Als PDF exportieren"})]})}),"aktiv"===e.status&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"flex gap-2","data-testid":"pulse-result-actions-".concat(e.id),children:[(0,Te.jsx)(e_,{className:"flex-1",i
2d:"invitations.tip_copylink",label:"Umfragelink kopieren",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:l||!e.last_wave_token,onClick:()=>{var t;(t=e.last_wave_token)&&(navigator.clipboard.writeText("".concat(window.location.origin,"/pulse-survey/").concat(t)),Ia.success("Umfragelink kopiert"))},"data-testid":"pulse-result-copy-".concat(e.id),"aria-label":"Umfragelink kopieren",children:(0,Te.jsx)(O_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"invitations.tip_qr",label:"QR-Code-PDF herunterladen",children:(0,Te.jsx)(fy,{variant:"secondary",className:"w-full",disabled:l||!e.last_wave_token,onClick:()=>async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flyer";if(e)try{const n=await Ps.get("/invitations/".concat(e,"/qr-pdf?variant=").concat(t),{responseType:"blob"}),a=window.URL.createObjectURL(new Blob([n.data],{type:"application/pdf"})),r=document.createElement("a");r.href=a,r.download="poster"===t?"PERSENTIS-QR-Plakat.pdf":"PERSENTIS-QR-Flyer.pdf",document.body.appendChild(r),r.click(),r.remove(),window.URL.revokeObjectURL(a)}catch(rse){Ia.error(Cs(rse))}}(e.last_wave_token),"data-testid":"pulse-result-qr-".concat(e.id),"aria-label":"QR-Code-PDF herunterladen",children:(0,Te.jsx)(D_,{size:16})})}),(0,Te.jsx)(e_,{className:"flex-1",id:"pulse.tip_delete_program",label:"Programm l\xf6schen",children:(0,Te.jsx)(fy,{variant:"danger",className:"w-full",onClick:()=>K(e),"data-testid":"pulse-result-delete-".concat(e.id),"aria-label":"Programm l\xf6schen",children:(0,Te.jsx)(y_,{size:16})})})]}),(0,Te.jsxs)("button",{onClick:()=>V(e),"data-testid":"pulse-result-close-".concat(e.id),className:"w-full inline-flex items-center justify-center gap-2 rounded-md bg-red-600 px-4 py-2 text-sm font-semibold text-white transition-colors hover:bg-red-700",children:[(0,Te.jsx)(Ef,{size:16})," ",(0,Te.jsx)(cy,{id:"invitations.close",as:"span",children:"Umfrage schlie\xdfen"})]})]})]})]},e.id);var t},ce=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";const a=C===e.key;return(0,Te.jsxs)(by,{className:"p-0 overflow-hidden","data-testid":"pulse-result-folder-".concat(n).concat(yie(e.firma),"-").concat(yie(e.name)),children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>P(a?null:e.key),"data-testid":"pulse-result-folder-toggle-".concat(n).concat(yie(e.firma),"-").concat(yie(e.name)),className:"w-full flex items-center justify-between px-5 py-3.5 bg-zinc-50 hover:bg-zinc-100 transition-colors",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-2.5 font-heading text-base",children:[e.is_central?(0,Te.jsx)(w_,{size:18,className:"text-primary fill-primary shrink-0"}):(0,Te.jsx)(j_,{size:18,strokeWidth:1.5,className:"text-primary shrink-0"}),wie(e.is_central,e.firma,e.name),(0,Te.jsxs)("span",{className:"text-xs font-normal text-muted-foreground",children:["(",e.items.length,")"]})]}),(0,Te.jsx)(xw,{size:18,className:"text-muted-foreground transition-transform duration-200 ".concat(a?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:a&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"p-5 grid gap-4 sm:grid-cols-2 lg:grid-cols-3","data-testid":"pulse-result-folder-body-".concat(n).concat(yie(e.name)),children:e.items.map(e=>t(e))})})})]},e.key)};return(0,Te.jsxs)("div",{"data-testid":"pulse-results",children:[(0,Te.jsx)(ky,{title:"wiederkehrend"===s?"Wiederkehrend \u2013 Ergebnisse":"Einmalig \u2013 Ergebnisse",subtitle:"wiederkehrend"===s?"Stimmungsbarometer-Verl\xe4ufe (Trend & eNPS)":"Abgeschlossene Kurzumfragen und ihre Ergebnisse",titleId:"wiederkehrend"===s?"pulse.results.title.wiederkehrend":"pulse.results.title.einmalig",subtitleId:"wiederkehrend"===s?"pulse.results.subtitle.wiederkehrend":"pulse.results.subtitle.einmalig"}),(0,Te.jsx)(by,{className:"p-4 mb-6",children:(0,Te.jsxs)("div",{className:"flex flex-col md:flex-row md:items-end gap-3","data-testid":"pulse-result-filters",children:[(0,Te.jsxs)("div",{className:"flex-1",children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.search_label",as:"span",children:"Suche (Firma, Filiale, Bezeichnung)"})}),(0,Te.jsxs)("div",{className:"relative",children:[(0,Te.jsx)(M_,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground"}),(0,Te.jsx)(gy,{value:y,onChange:e=>w(e.target.value),placeholder:r("common.search_placeholder"),className:"pl-9","data-testid":"pulse-result-search-input"})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_from",as:"span",children:"Zeitraum von"})}),(0,Te.jsx)(gy,{type:"date",value:k,onChange:e=>N(e.target.value),"data-testid":"pulse-result-filter-from"})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("label",{className:"block text-xs font-semibold text-muted-foreground mb-1.5",children:(0,Te.jsx)(cy,{id:"common.date_to",as:"span",children:"bis"})}
2),(0,Te.jsx)(gy,{type:"date",value:_,onChange:e=>z(e.target.value),"data-testid":"pulse-result-filter-to"})]}),Z&&(0,Te.jsxs)(fy,{variant:"secondary",onClick:()=>{w(""),N(""),z("")},"data-testid":"pulse-result-filter-clear",children:[(0,Te.jsx)(Iv,{size:15})," ",(0,Te.jsx)(cy,{id:"common.reset",as:"span",children:"Zur\xfccksetzen"})]})]})}),"wiederkehrend"===s?(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>O("laufend"),"data-testid":"pulse-result-heading-laufend",className:"w-full mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white transition-opacity hover:opacity-95",style:{backgroundColor:"var(--gray-03)"},children:[(0,Te.jsx)(_w,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.results.section.laufend",as:"span",children:"Laufende Umfragen"})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",te.length,")"]}),(0,Te.jsx)(xw,{size:18,className:"ml-auto transition-transform duration-200 ".concat(T.laufend?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:T.laufend&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"space-y-4 mb-8","data-testid":"pulse-result-list-laufend",children:M?(0,Te.jsx)(FS,{compact:!0}):0===ae.length?(0,Te.jsx)(by,{className:"p-5","data-testid":"pulse-result-empty-laufend",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:r("pulse.empty.laufend")})}):ae.map(e=>ce(e,le,"laufend-"))})})}),(0,Te.jsxs)("button",{type:"button",onClick:()=>O("beendet"),"data-testid":"pulse-result-heading-beendet",className:"w-full mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white transition-opacity hover:opacity-95",style:{backgroundColor:"var(--gray-03)"},children:[(0,Te.jsx)(Ef,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.results.section.beendet",as:"span",children:"Beendete Umfragen"})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",ne.length,")"]}),(0,Te.jsx)(xw,{size:18,className:"ml-auto transition-transform duration-200 ".concat(T.beendet?"rotate-180":"")})]}),(0,Te.jsx)(co,{initial:!1,children:T.beendet&&(0,Te.jsx)(ff.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.25,ease:"easeInOut"},className:"overflow-hidden",children:(0,Te.jsx)("div",{className:"space-y-4","data-testid":"pulse-result-list-beendet",children:M?(0,Te.jsx)(FS,{compact:!0}):0===re.length?(0,Te.jsx)(by,{className:"p-5","data-testid":"pulse-result-empty-beendet",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:r("pulse.empty.beendet")})}):re.map(e=>ce(e,le,"beendet-"))})})})]}):(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("div",{className:"mb-3 flex items-center gap-2 rounded-md px-4 py-2.5 text-white",style:{backgroundColor:"var(--gray-03)"},"data-testid":"pulse-result-heading",children:[(0,Te.jsx)(iz,{size:18,className:"text-white shrink-0"}),(0,Te.jsx)("span",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"auswertungen.section.completed",as:"span",children:"Abgeschlossene Umfragen"})}),(0,Te.jsxs)("span",{className:"text-sm font-normal text-white/80",children:["(",X.length,")"]})]}),(0,Te.jsx)("div",{className:"space-y-4","data-testid":"pulse-result-list",children:M?(0,Te.jsx)(FS,{compact:!0}):0===J.length?(0,Te.jsx)(by,{className:"p-5","data-testid":"pulse-result-empty",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:r("auswertungen.empty")})}):J.map(e=>ce(e,oe))})]}),U&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-result-end-dialog",onClick:()=>V(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(k_,{size:20,className:"text-red-600"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.dialog.end_title",as:"span",children:"Umfrage schlie\xdfen?"})})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie die wiederkehrende Umfrage ",(0,Te.jsx)("strong",{children:jie(U.title)})," wirklich schlie\xdfen? Es werden dann ",(0,Te.jsx)("strong",{children:"keine weiteren Wiederholungen"}),' erzeugt. Die Umfrage wandert in \u201eBeendete Umfragen"; die bisherigen Auswertungen bleiben erhalten.']}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>V(null),"data-testid":"pulse-result-end-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>(async e=>
2{try{await Ps.patch("/pulse/programs/".concat(e,"/end")),Ia.success("Umfrage beendet"),V(null),G()}catch(rse){Ia.error(Cs(rse))}})(U.id),"data-testid":"pulse-result-end-confirm",children:[(0,Te.jsx)(Ef,{size:16})," Umfrage schlie\xdfen"]})]})]})}),W&&(0,Te.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/40","data-testid":"pulse-result-delete-dialog",onClick:()=>K(null),children:(0,Te.jsxs)("div",{className:"bg-white rounded-lg shadow-xl w-full max-w-md p-6",onClick:e=>e.stopPropagation(),children:[(0,Te.jsxs)("div",{className:"flex items-center gap-2 text-foreground",children:[(0,Te.jsx)(k_,{size:20,className:"text-red-600"}),(0,Te.jsx)("h3",{className:"font-heading text-lg",children:(0,Te.jsx)(cy,{id:"pulse.dialog.delete_program_title",as:"span",children:"Programm l\xf6schen?"})})]}),(0,Te.jsxs)("p",{className:"text-sm text-muted-foreground mt-2",children:["M\xf6chten Sie das wiederkehrende Programm ",(0,Te.jsx)("strong",{children:jie(W.title)})," inkl. ",(0,Te.jsx)("strong",{children:"aller Wiederholungen und Ergebnisse unwiderruflich l\xf6schen"}),"? Diese Aktion kann nicht r\xfcckg\xe4ngig gemacht werden."]}),(0,Te.jsxs)("div",{className:"mt-6 flex gap-2 justify-end",children:[(0,Te.jsx)(fy,{variant:"secondary",onClick:()=>K(null),"data-testid":"pulse-result-delete-cancel",children:"Abbrechen"}),(0,Te.jsxs)(fy,{variant:"danger",onClick:()=>(async e=>{try{await Ps.delete("/pulse/programs/".concat(e)),Ia.success("Programm gel\xf6scht"),K(null),G()}catch(rse){Ia.error(Cs(rse))}})(W.id),"data-testid":"pulse-result-delete-confirm",children:[(0,Te.jsx)(y_,{size:16})," Endg\xfcltig l\xf6schen"]})]})]})})]})}function Sie(e){let t=e.text,n=e.sentiment,a=e.testid;return(0,Te.jsxs)("div",{className:"text-sm text-foreground rounded-lg px-3 py-2 italic inline-flex items-start gap-2 max-w-full align-top ".concat(_3[n]),"data-testid":a,"data-sentiment":n,children:[(0,Te.jsx)("span",{className:"w-2 h-2 rounded-full mt-1.5 shrink-0",style:{backgroundColor:z3[n]},title:E3[n]}),(0,Te.jsxs)("span",{className:"min-w-0 break-words",children:["\u201e",t,'"']})]})}function _ie(e){e.testid;return null}function zie(e){let t=e.items,n=(e.limit,e.testid);return t&&0!==t.length?(0,Te.jsx)("div",{"data-testid":n,children:(0,Te.jsx)("div",{className:"flex flex-wrap gap-2",children:t.map((e,t)=>(0,Te.jsx)(Sie,{text:e.text,sentiment:e.sentiment,testid:"".concat(n,"-item-").concat(t)},"v-".concat(t)))})}):(0,Te.jsx)("p",{className:"text-xs text-muted-foreground",children:"Keine Antworten."})}const Eie=["#E5341D","#EC7829","#CB8131","#899240","#47A350"];function Cie(e){let t=e.index,n=void 0===t?0:t,a=e.testid;const r=Eie.map((e,t)=>({v:(2*n+3*t)%9+1,c:e}));return(0,Te.jsxs)(by,{className:"p-5 ct-soft-blur","data-testid":a,"aria-hidden":"true",children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-4",children:[(0,Te.jsx)("h3",{className:"font-semibold text-sm leading-snug",children:B_("Lorem ipsum dolor sit amet consetetur sadipscing elitr",n)}),(0,Te.jsx)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},children:"0/0"})]}),(0,Te.jsx)("div",{className:"w-full h-7 flex",style:{gap:"5px"},children:r.map((e,t)=>(0,Te.jsx)("div",{className:"h-full rounded flex items-center justify-center",style:{flex:e.v,backgroundColor:e.c},children:(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:e.v})},t))}),(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:r.map((e,t)=>(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:e.c}})," ",B_("lorem ipsum",t)]},t))})]})}function Pie(e){let t=e.answered,n=e.target,a=e.testid;const r=n||0;return(0,Te.jsxs)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},"data-testid":a,children:[r?Math.min(null!==t&&void 0!==t?t:0,r):null!==t&&void 0!==t?t:0,"/",r]})}function Aie(e){let t=e.distribution,n=e.testid;const a=Xa().t,r=[a("result.likert0"),a("result.likert1"),a("result.likert2"),a("result.likert3"),a("result.likert4")];return(0,Te.jsxs)("div",{"data-testid":n,children:[(0,Te.jsx)("div",{className:"w-full h-7 flex",style:{gap:"5px"},children:t.map((e,t)=>0===e.count?(0,Te.jsx)("div",{title:"".concat(r[t],": 0"),className:"h-full rounded flex items-center justify-center shrink-0",style:{width:"25px",backgroundColor:C3[t],opacity:.25},children:(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:"0"})},t):(0,Te.jsx)("div",{title:"".concat(r[t],": ").concat(e.count),className:"h-full rounded flex items-center justify-center",style:{flex:e.count,minWidth:"20px",backgroundColor:C3[t]},children:(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:e.count})},t))}),(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:t.map((e,t)=>(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:C3[t]}}),r[t]," ",(0,Te.jsxs)("span",{className:"font-semibold text-foreground tabular-nums",children:["(",e.count,")"]})]},t))})]})}function Tie(e){var t,n;let a=e.distribution,r=e.testid;const i=Xa().t,s=(null===(t=a.find(e=>"Ja"===e.label))||void 0===t?void 0:t.count)||0,o=(null===(n=a.find(e=>"Nein"===e.label))||void 0===n?void 0:n.count)||0,l=s+o,c=(e,t,n,a)=>{const r=l>0?e/l*100:0;return 0===r?null:(0,Te.jsx)("div",{title:"".concat(n,": ").concat(e),className:"h-full rounded flex items-center justify-center",style:{width:"".concat(r,"%"),backgroundColor:t},children:r>=10&&(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:e})},a)};return(0,Te.jsxs)("div",{"data-testid":r,children:[(0,Te.jsxs)("div",{className:"w-full h-7 flex",style:{gap:"5px"},children:[c(s,P3,i("result.yes"),"ja"),c(o,A3,i("result.no"),"nein")]}),(0,Te.jsxs)("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:P3}})," ",i("result.yes")," ",(0,Te.jsxs)("span",{className:"font-semibold text-foreground tabular-nums",children:["(",s,")"]})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:A3}})," ",i("result.no")," ",(0,Te.jsxs)("span",{className:"font-semibold text-foreground tabular-nums",children:["(",o,")"]})]})]})]})}function Rie(e){let t=e.distribution,n=e.testid;const a=Math.max(1,...t.map(e=>e.count));return(0,Te.jsx)("div",{className:"space-y-2.5","data-testid":n,children:t.map((e,t)=>{const r=a>0?Math.round(e.count/a*100):0;return(0,Te.jsxs)("div",{className:"flex items-center gap-3","data-testid":"".concat(n,"-row-").concat(t),children:[(0,Te.jsx)("div",{className:"w-40 shrink-0 text-xs text-right text-muted-foreground leading-tight",children:e.label}),(0,Te.jsx)("div",{className:"flex-1 h-6 rounded bg-[var(--gray-01)] overflow-hidden",children:(0,Te.jsx)("div",{className:"h-full rounded",style:{width:"".concat(r,"%"),backgroundColor:"hsl(var(--primary))",minWidth:e.count>0?"4px":0}})}),(0,Te.jsx)("div",{className:"w-8 text-xs text-right tabular-nums font-semibold",children:e.count})]},t)})})}function Oie(e){var t,n,a;let r=e.q,i=e.testid;const s=Xa().t,o=r.distribution||[],l=Math.max(1,...o.map(e=>e.count)),c=r.enps_score,d=pw(),u=[{color:"#E5341D",from:0,to:50},{color:"#EC7829",from:50,to:55},{color:"#CB8131",from:55,to:60},{color:"#AA8939",from:60,to:65},{color:"#899240",from:65,to:75},{color:"#689A48",from:75,to:85},{color:"#47A350",from:85,to:100}],m=(e=>null==e?null:e<0?"kritisch":e<10?"ausbauf\xe4hig":e<20?"solide":e<30?"gut":e<50?"sehr gut":e<70?"exzellent":"au\xdfergew\xf6hnlich")(c),p=(()=>
2{if(null==c)return"#9ca3af";const e=(c+100)/2,t=u.find(t=>e>=t.from&&e<t.to)||u[u.length-1];return t.color})(),h=u;return(0,Te.jsx)("div",{"data-testid":i,children:(0,Te.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 items-center",children:[(0,Te.jsxs)("div",{className:"md:col-span-1 flex flex-col items-center","data-testid":"".concat(i,"-gauge"),children:[(0,Te.jsx)("span",{className:"text-[10px] font-bold uppercase tracking-wider text-muted-foreground mb-1",children:s("pulse.enps.score_label")}),(0,Te.jsx)(qS,{value:null==c?null:(c+100)/2,displayValue:null==c?void 0:c>0?"+".concat(c):"".concat(c),color:p,status:m||void 0,segments:h,size:180,minLabel:"-100",midLabel:"0",maxLabel:"100"})]}),(0,Te.jsxs)("div",{className:"md:col-span-2","data-testid":"".concat(i,"-dist"),children:[(0,Te.jsxs)("div",{className:"flex flex-wrap gap-x-4 gap-y-1 text-xs mb-3",children:[(0,Te.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:d.exzellent}})," ",s("pulse.enps.promoters")," ",(0,Te.jsx)("b",{className:"tabular-nums",children:null!==(t=r.promoters)&&void 0!==t?t:0})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:d.moderat}})," ",s("pulse.enps.passives")," ",(0,Te.jsx)("b",{className:"tabular-nums",children:null!==(n=r.passives)&&void 0!==n?n:0})]}),(0,Te.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:d.kritisch}})," ",s("pulse.enps.detractors")," ",(0,Te.jsx)("b",{className:"tabular-nums",children:null!==(a=r.detractors)&&void 0!==a?a:0})]})]}),(0,Te.jsx)("div",{className:"flex items-end gap-1.5",style:{height:120},children:o.map((e,t)=>{const n=Math.round(e.count/l*95)+2,a=t<=6?d.kritisch:t<=8?d.moderat:d.exzellent;return(0,Te.jsxs)("div",{className:"flex-1 flex flex-col items-center justify-end gap-1",title:"".concat(t,": ").concat(e.count),children:[(0,Te.jsx)("span",{className:"text-[10px] tabular-nums text-muted-foreground",children:e.count}),(0,Te.jsx)("div",{className:"w-full rounded-t",style:{height:n,backgroundColor:a}}),(0,Te.jsx)("span",{className:"text-[10px] tabular-nums text-muted-foreground",children:t})]},t)})})]})]})})}function Die(e){let t=e.token,n=e.qid,r=e.department,i=e.answers;const s=Xa(),o=s.t,l=s.lang,c=((null===i||void 0===i?void 0:i.length)||0)>=10,d=Le((0,a.useState)(null),2),u=d[0],m=d[1],p=Le((0,a.useState)(c),2),h=p[0],f=p[1],g=Le((0,a.useState)(null),2),x=g[0],v=g[1],b=Le((0,a.useState)({}),2),y=b[0],w=b[1],j=Le((0,a.useState)(!c&&((null===i||void 0===i?void 0:i.length)||0)>0),2),k=j[0],N=j[1];(0,a.useEffect)(()=>{let e=!0;v(null),w({}),N(!c&&((null===i||void 0===i?void 0:i.length)||0)>0);const a=r?"?department_id=".concat(r,"&lang=").concat(l):"?lang=".concat(l);return c?(f(!0),m(null),Ps.get("/pulse/summary/".concat(t,"/").concat(n).concat(a)).then(t=>{e&&(m(t.data.summary),t.data.summary||N(((null===i||void 0===i?void 0:i.length)||0)>0))}).catch(()=>{e&&N(((null===i||void 0===i?void 0:i.length)||0)>0)}).finally(()=>{e&&f(!1)})):(f(!1),m(null)),Ps.get("/pulse/sentiments/".concat(t,"/").concat(n).concat(a)).then(t=>{e&&(v(t.data.sentiments||{}),w(t.data.translations||{}))}).catch(()=>{e&&v({})}),()=>{e=!1}},[t,n,r,c,l]);const S=i.map(e=>({text:y[e]||e,sentiment:x&&x[e]||"neutral"}));return(0,Te.jsxs)("div",{className:"space-y-3","data-testid":"pulse-open-".concat(n),children:[c?h?(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(If,{size:14,className:"text-primary"})," ",o("result.summary_creating")]}):u?(0,Te.jsxs)("div",{className:"flex gap-2 rounded-md bg-primary/5 border border-primary/20 p-3","data-testid":"pulse-summary-".concat(n),children:[(0,Te.jsx)(If,{size:16,className:"text-primary shrink-0 mt-0.5"}),(0,Te.jsx)("p",{className:"text-sm text-foreground/90 leading-relaxed",children:u})]}):i.length>0&&(0,Te.jsxs)("div",{className:"flex items-start gap-2 text-xs text-muted-foreground rounded-md bg-muted border border-border p-3","data-testid":"pulse-nosummary-".concat(n),children:[(0,Te.jsx)(GS,{size:14,className:"shrink-0 mt-0.5"}),(0,Te.jsx)("span",{children:o("result.no_summary_hint")})]}):i.length>0&&(0,Te.jsxs)("div",{className:"flex items-start gap-2 text-xs text-muted-foreground rounded-md bg-muted border border-border p-3","data-testid":"pulse-nosummary-".concat(n),children:[(0,Te.jsx)(GS,{size:14,className:"shrink-0 mt-0.5"}),(0,Te.jsx)("span",{children:o("result.no_summary_hint")})]}),i.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>N(e=>!e),"data-testid":"pulse-open-toggle-".concat(n),className:"flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline",children:[(0,Te.jsx)(YS,{size:15})," ",k?o("result.hide_answers"):o("result.show_all_answers").replace("{n}",i.length),(0,Te.jsx)(xw,{size:15,className:"transition-transform ".concat(k?"rotate-180":"")})]}
2),k&&(0,Te.jsxs)("div",{className:"space-y-3 pt-1","data-testid":"pulse-open-panel-".concat(n),children:[(0,Te.jsx)("div",{className:"flex items-center justify-end",children:(0,Te.jsx)(_ie,{testid:"pulse-legend-".concat(n)})}),(0,Te.jsx)(zie,{items:S,testid:"pulse-answers-".concat(n)})]})]})]})}function Mie(){var e;const t=Xa(),n=t.t,r=t.lang,i=ln(),s=i.token,o=i.ptype,l=sn(),c=Ws().ctMode,d="wiederkehrend"===o?"wiederkehrend":"einmalig",u=Le((0,a.useState)(""),2),m=u[0],p=u[1],h=Le((0,a.useState)(null),2),f=h[0],g=h[1],x=Le((0,a.useState)(!0),2),v=x[0],b=x[1];if((0,a.useEffect)(()=>{b(!0);const e=m?"?department_id=".concat(m,"&lang=").concat(r):"?lang=".concat(r);Ps.get("/pulse/analysis/".concat(s).concat(e)).then(e=>g(e.data)).catch(()=>{}).finally(()=>b(!1))},[s,m,r]),v&&!f)return(0,Te.jsx)(FS,{});if(!f)return(0,Te.jsx)("div",{className:"text-muted-foreground",children:n("pulse.analysis.not_found")});const y=f.headcount||0;return(0,Te.jsxs)("div",{"data-testid":"pulse-analysis",children:[(0,Te.jsxs)("button",{onClick:()=>l("/pulse/".concat(d,"/auswertungen")),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"pulse-analysis-back",children:[(0,Te.jsx)(Rf,{size:16})," ",n("analytics.back_to_results")]}),(0,Te.jsx)(ky,{title:f.branch_name||f.company_name,subtitle:f.title,subtitleClassName:"text-sm font-semibold text-primary mt-1"}),(0,Te.jsxs)("div",{className:"grid grid-cols-3 gap-4 mb-6",children:[(0,Te.jsxs)(by,{className:"p-4 flex items-center gap-3","data-testid":"pulse-analysis-responses",children:[(0,Te.jsx)(YS,{size:20,className:"text-primary"}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-xl font-heading font-semibold",children:f.responses}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:n("pulse.analysis.responses")})]})]}),(0,Te.jsxs)(by,{className:"p-4 flex items-center gap-3","data-testid":"pulse-analysis-rate",children:[(0,Te.jsx)(_f,{size:20,className:"text-primary"}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-xl font-heading font-semibold",children:null==f.rate?"\u2014":"".concat(f.rate," %")}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:n("pulse.analysis.rate")})]})]}),(0,Te.jsxs)(by,{className:"p-4 flex items-center gap-3","data-testid":"pulse-analysis-questions",children:[(0,Te.jsx)(JS,{size:20,className:"text-primary"}),(0,Te.jsxs)("div",{children:[(0,Te.jsx)("div",{className:"text-xl font-heading font-semibold",children:f.questions.length}),(0,Te.jsx)("div",{className:"text-xs text-muted-foreground",children:n("pulse.analysis.questions")})]})]})]}),(null===(e=f.departments)||void 0===e?void 0:e.length)>1&&(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-20 bg-background flex flex-wrap items-center gap-2 py-3 mb-6","data-testid":"pulse-analysis-deptmenu",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>p(""),"data-testid":"pulse-dept-gesamt",className:"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(""===m?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:n("common.gesamt")}),f.departments.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>p(e.id),"data-testid":"pulse-dept-".concat(e.id),className:"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(m===e.id?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:e.name},e.id))]}),(0,Te.jsxs)("div",{className:"relative ".concat(f.archived?"select-none":""),"data-testid":"pulse-analysis-results",children:[f.archived&&(0,Te.jsx)("div",{className:"absolute inset-0 z-10 flex items-start justify-center pt-12","data-testid":"pulse-analysis-archived",children:(0,Te.jsxs)("div",{className:"rounded-xl border border-border bg-white shadow-xl p-6 max-w-md text-center",children:[(0,Te.jsx)(kw,{size:28,className:"text-muted-foreground mx-auto"}),(0,Te.jsx)("h3",{className:"font-heading text-lg font-semibold mt-3",children:"Ergebnisse archiviert"}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:"Diese Ergebnisse sind \xe4lter als 3 Monate und im PULSE Light unscharf. Ihre Daten bleiben erhalten \u2013 mit einem Upgrade schalten Sie sie wieder frei."}),(0,Te.jsxs)("button",{onClick:()=>l("/billing"),"data-testid":"pulse-analysis-archived-upgrade",className:"mt-4 inline-flex items-center gap-1.5 rounded-full bg-[#1f2937] text-white text-sm font-semibold px-4 py-2 hover:opacity-90",children:[(0,Te.jsx)(If,{size:15})," Jetzt upgraden"]})]})}),(0,Te.jsx)("div",{className:f.archived?"blur-md pointer-events-none":"",children:f.locked?(0,Te.jsxs)(by,{className:"p-8 text-center","data-testid":"pulse-analysis-locked",children:[(0,Te.jsx)(AS,{size:32,className:"text-amber-500 mx-auto"}),(0,Te.jsx)("h3",{className:"font-heading text-lg font-semibold mt-3",children:n("pulse.anal
2ysis.anon_title")}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-2",children:n("pulse.analysis.anon_text").replace("{min}",f.anonymity_min)})]}):(0,Te.jsx)("div",{className:"space-y-5",children:f.questions.map((e,t)=>c&&t>=3?(0,Te.jsxs)(a.Fragment,{children:[3===t&&(0,Te.jsx)(F_,{testid:"pulse-analysis-blur-notice"}),(0,Te.jsx)(Cie,{index:t,testid:"pulse-question-block-".concat(t)})]},e.id):(0,Te.jsx)(a.Fragment,{children:(0,Te.jsxs)(by,{className:"p-5","data-testid":"pulse-question-block-".concat(t),children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-4",children:[(0,Te.jsx)("h3",{className:"font-semibold text-sm leading-snug",children:e.text}),(0,Te.jsx)(Pie,{answered:e.answered,target:y,testid:"pulse-count-".concat(t)})]}),"likert"===e.type&&(0,Te.jsx)(Aie,{distribution:e.distribution||[],testid:"pulse-likert-".concat(t)}),"yesno"===e.type&&(0,Te.jsx)(Tie,{distribution:e.distribution||[],testid:"pulse-yesno-".concat(t)}),"choice"===e.type&&(0,Te.jsx)(Rie,{distribution:e.distribution||[],testid:"pulse-choice-".concat(t)}),"enps"===e.type&&(0,Te.jsx)(Oie,{q:e,testid:"pulse-enps-".concat(t)}),"open"===e.type&&(e.answers&&e.answers.length?(0,Te.jsx)(Die,{token:s,qid:e.id,department:m,answers:e.answers}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:n("common.no_free_text")}))]})},e.id))})})]})]})}const Iie=e=>(e||"").replace(/^\s*Stimmungsbarometer\s+/i,"").trim()||e||"",Fie=e=>{if(!e)return"";const t=new Date(e);return"".concat(String(t.getMonth()+1).padStart(2,"0"),"/").concat(String(t.getFullYear()).slice(2))};function Lie(e){let t=e.answered,n=e.target,a=e.testid;const r=n||0;return(0,Te.jsxs)("span",{className:"shrink-0 px-3 py-1 rounded-full text-xs font-bold tabular-nums text-white",style:{backgroundColor:"#9ca3af"},"data-testid":a,children:[r?Math.min(null!==t&&void 0!==t?t:0,r):null!==t&&void 0!==t?t:0,"/",r]})}function Bie(e){let t=e.distribution,n=e.testid;const a=Xa().t,r=[a("result.likert0"),a("result.likert1"),a("result.likert2"),a("result.likert3"),a("result.likert4")];return(0,Te.jsxs)("div",{"data-testid":n,children:[(0,Te.jsx)("div",{className:"w-full h-7 flex",style:{gap:"5px"},children:t.map((e,t)=>0===e.count?(0,Te.jsx)("div",{title:"".concat(r[t],": 0"),className:"h-full rounded flex items-center justify-center shrink-0",style:{width:"25px",backgroundColor:C3[t],opacity:.25},children:(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:"0"})},t):(0,Te.jsx)("div",{title:"".concat(r[t],": ").concat(e.count),className:"h-full rounded flex items-center justify-center",style:{flex:e.count,minWidth:"20px",backgroundColor:C3[t]},children:(0,Te.jsx)("span",{className:"text-[11px] font-bold text-white tabular-nums",children:e.count})},t))}),(0,Te.jsx)("div",{className:"mt-3 flex flex-wrap gap-x-4 gap-y-1.5",children:t.map((e,t)=>(0,Te.jsxs)("span",{className:"flex items-center gap-1.5 text-xs text-muted-foreground",children:[(0,Te.jsx)("span",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:C3[t]}}),r[t]," ",(0,Te.jsxs)("span",{className:"font-semibold text-foreground tabular-nums",children:["(",e.count,")"]})]},t))})]})}function qie(e){let t=e.token,n=e.qid,r=e.answers;const i=Xa().t,s=Le((0,a.useState)(null),2),o=s[0],l=s[1],c=Le((0,a.useState)(!0),2),d=c[0],u=c[1],m=Le((0,a.useState)(null),2),p=m[0],h=m[1],f=Le((0,a.useState)(!1),2),g=f[0],x=f[1];(0,a.useEffect)(()=>{let e=!0;return u(!0),h(null),Ps.get("/pulse/summary/".concat(t,"/").concat(n)).then(t=>{e&&l(t.data.summary)}).catch(()=>{}).finally(()=>{e&&u(!1)}),Ps.get("/pulse/sentiments/".concat(t,"/").concat(n)).then(t=>{e&&h(t.data.sentiments||{})}).catch(()=>{e&&h({})}),()=>{e=!1}},[t,n]);const v=r.map(e=>({text:e,sentiment:p&&p[e]||"neutral"}));return(0,Te.jsxs)("div",{className:"space-y-3","data-testid":"barometer-open-".concat(n),children:[d?(0,Te.jsxs)("p",{className:"text-xs text-muted-foreground flex items-center gap-2",children:[(0,Te.jsx)(If,{size:14,className:"text-primary"})," ",i("result.summary_creating")]}):o?(0,Te.jsxs)("div",{className:"flex gap-2 rounded-md bg-primary/5 border border-primary/20 p-3","data-testid":"barometer-summary-".concat(n),children:[(0,Te.jsx)(If,{size:16,className:"text-primary shrink-0 mt-0.5"}
2),(0,Te.jsx)("p",{className:"text-sm text-foreground/90 leading-relaxed",children:o})]}):null,r.length>0&&(0,Te.jsxs)(Te.Fragment,{children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>x(e=>!e),"data-testid":"barometer-open-toggle-".concat(n),className:"flex items-center gap-1.5 text-sm font-semibold text-primary hover:underline",children:[(0,Te.jsx)(YS,{size:15})," ",g?i("result.hide_answers"):i("result.show_all_answers").replace("{n}",r.length),(0,Te.jsx)(xw,{size:15,className:"transition-transform ".concat(g?"rotate-180":"")})]}),g&&(0,Te.jsxs)("div",{className:"space-y-3 pt-1","data-testid":"barometer-open-panel-".concat(n),children:[(0,Te.jsx)("div",{className:"flex items-center justify-end",children:(0,Te.jsx)(_ie,{testid:"barometer-legend-".concat(n)})}),(0,Te.jsx)(zie,{items:v,testid:"barometer-answers-".concat(n)})]})]})]})}function Uie(){var e,t,n,r,i,s;const o=Xa(),l=o.t,c=o.lang,d=ln().programId,u=sn(),m=nn(),p=Ws().ctMode,h=Le((0,a.useState)((null===(e=m.state)||void 0===e?void 0:e.program)||null),2),f=h[0],g=h[1],x=Le((0,a.useState)(null),2),v=x[0],b=x[1],y=Le((0,a.useState)(null),2),w=y[0],j=y[1],k=Le((0,a.useState)(null),2),N=k[0],S=k[1],_=Le((0,a.useState)(!1),2),z=_[0],E=_[1],C=Le((0,a.useState)(null),2),P=C[0],A=C[1],T=Le((0,a.useState)(""),2),R=T[0],O=T[1],D=pw(),M=e=>null==e?"\u2014":l(e<50?"result.zone.kritisch":e<75?"result.zone.moderat":"result.zone.exzellent"),I=e=>null==e?"#9ca3af":e<50?D.kritisch:e<75?D.moderat:D.exzellent,F=e=>({color:I(e),status:M(e)}),L=[{color:D.kritisch,from:0,to:50},{color:D.moderat,from:50,to:75},{color:D.exzellent,from:75,to:100}];(0,a.useEffect)(()=>{const e=R?"?department_id=".concat(R):"";Ps.get("/pulse/programs/".concat(d,"/trend").concat(e)).then(e=>{b(e.data);const t=(e.data.series||[]).filter(e=>null!=e.score);j(e=>e||(t.length?t[t.length-1].token:null))}).catch(()=>b({series:[],error:!0})),f||Ps.get("/pulse/programs").then(e=>g((e.data||[]).find(e=>e.id===d)||null)).catch(()=>{})},[d,R]),(0,a.useEffect)(()=>{if(!w)return;E(!0);const e="?lang=".concat(c).concat(R?"&department_id=".concat(R):"");Ps.get("/pulse/analysis/".concat(w).concat(e)).then(e=>S(e.data)).catch(()=>S(null)).finally(()=>E(!1))},[w,R,c]);const B=(null===v||void 0===v?void 0:v.series)||[],q=B.filter(e=>null!=e.score),U=q.length?q[q.length-1].score:null,V=B.find(e=>e.token===w),H=null!==(t=null===V||void 0===V?void 0:V.score)&&void 0!==t?t:U,W=q.length?Math.round(q.reduce((e,t)=>e+t.score,0)/q.length):null,K=null!=H&&null!=W?H-W:null,G=null==K?"":l(K>0?"pulse.barometer.delta_over":K<0?"pulse.barometer.delta_under":"pulse.barometer.delta_equal"),Z=null==K?"":"".concat(K>0?"+":"").concat(K," ").concat(G),Y=720,Q=200,$=q.length,X=e=>$<=1?360:72+606*e/($-1),J=e=>172-e/100*118,ee=(()=>{if($<2)return null;const e=q.reduce((e,t,n)=>e+n,0),t=q.reduce((e,t)=>e+t.score,0),n=q.reduce((e,t,n)=>e+n*n,0),a=q.reduce((e,t,n)=>e+n*t.score,0),r=$*n-e*e;if(!r)return null;const i=($*a-e*t)/r,s=(t-i*e)/$,o=606/($-1),l=e=>i*((e-72)/o)+s,c=e=>Math.max(J(100),Math.min(J(0),e));return{x1:26,y1:c(J(l(26))),x2:Y,y2:c(J(l(Y)))}})();return(0,Te.jsxs)("div",{"data-testid":"pulse-barometer-page",children:[(0,Te.jsxs)("button",{onClick:()=>u("/pulse/wiederkehrend/auswertungen"),className:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-primary mb-2","data-testid":"pulse-barometer-back",children:[(0,Te.jsx)(Rf,{size:16})," ",l("analytics.back_to_results")]}),(0,Te.jsx)(ky,{title:R?(null===N||void 0===N||null===(n=N.departments)||void 0===n||null===(r=n.find(e=>e.id===R))||void 0===r?void 0:r.name)||(null===f||void 0===f?void 0:f.branch_name)||(null===f||void 0===f?void 0:f.firma_name):f?f.branch_name||f.firma_name:l("pulse.barometer.title_fallback"),subtitle:f?l("pulse.barometer.dev_for").replace("{title}",Iie(f.title)):l("pulse.barometer.subtitle_fallback"),subtitleClassName:"text-sm font-semibold text-primary mt-1"}),(null===N||void 0===N||null===(i=N.departments)||void 0===i?void 0:i.length)>1&&(0,Te.jsxs)("div",{className:"sticky top-[calc(56px_+_var(--ct-offset))] z-20 bg-background flex flex-wrap items-center gap-2 py-3 mb-4","data-testid":"pulse-barometer-deptmenu",children:[(0,Te.jsx)("button",{type:"button",onClick:()=>O(""),"data-testid":"pulse-barometer-dept-gesamt",className:"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(""===R?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:l("common.gesamt")}),N.departments.map(e=>(0,Te.jsx)("button",{type:"button",onClick:()=>O(e.id),"data-testid":"pulse-barometer-dept-".concat(e.id),className:"px-4 py-1.5 rounded-full text-sm font-semibold transition-colors ".concat(R===e.id?"bg-primary text-white":"bg-white text-foreground border border-border hover:bg-zinc-50"),children:e.name},e.id))]}),null!==v&&void 0!==v&&v.error?(0,Te.jsx)("p",{className:"text-sm text-red-600",children:l("pulse.barometer.trend_error")}):v?0===q.length?(0,Te.jsx)(by,{className:"p-5","data-testid":"pulse-barometer-empty",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:l("pulse.barometer.empty").replace("{min}",v.anonymity_min)})}):(0,Te.jsxs)("div",{className:"space-y-6",children:[(0,Te.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[(0,Te.jsxs)(by,{className:"p-5 flex flex-col items-center justify-center","data-testid":"pulse-barometer-gauge",children:[(0,Te.jsxs)("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground mb-2",children:[l("pulse.barometer.measurement")," ",Fie(null===V||void 0===V?void 0:V.date)]}),(0,Te.jsxs)("div",{className:"relative group cursor-default","data-testid":"pulse-barometer-gauge-tip",children:[Z&&(0,Te.jsx)("div",{className:"pointer-events-none absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-30 hidden group-hover:block whitespace-nowrap rounded-md bg-zinc-900 text-white text-xs font-medium px-2.5 py-1.5
2shadow-lg","data-testid":"pulse-barometer-gauge-tooltip",children:Z}),(0,Te.jsx)(qS,{value:H,color:F(H).color,status:F(H).status,segments:L,size:150})]}),null!=K&&(0,Te.jsx)("div",{title:G,className:"mt-2 text-sm font-bold cursor-default ".concat(K>0?"text-green-600":K<0?"text-red-600":"text-muted-foreground"),"data-testid":"pulse-barometer-delta",children:K>0?"+".concat(K):K})]}),(0,Te.jsxs)(by,{className:"p-5 lg:col-span-2","data-testid":"pulse-barometer-trend",children:[(0,Te.jsxs)("div",{className:"text-xs font-bold uppercase tracking-wide text-muted-foreground mb-1",children:[l("pulse.barometer.development")," (",q.length," ",l("pulse.barometer.measurements"),")"]}),(0,Te.jsx)("p",{className:"text-[11px] text-muted-foreground mb-2",children:l("pulse.barometer.click_hint")}),(0,Te.jsxs)("svg",{viewBox:"0 0 ".concat(Y," ").concat(Q),className:"w-full","data-testid":"pulse-trend-chart",children:[(0,Te.jsx)("defs",{children:(0,Te.jsxs)("linearGradient",{id:"barGrad",gradientUnits:"userSpaceOnUse",x1:"0",y1:J(0),x2:"0",y2:J(100),children:[(0,Te.jsx)("stop",{offset:"0%",stopColor:D.kritisch}),(0,Te.jsx)("stop",{offset:"45%",stopColor:D.kritisch}),(0,Te.jsx)("stop",{offset:"55%",stopColor:D.moderat}),(0,Te.jsx)("stop",{offset:"70%",stopColor:D.moderat}),(0,Te.jsx)("stop",{offset:"80%",stopColor:D.exzellent}),(0,Te.jsx)("stop",{offset:"100%",stopColor:D.exzellent})]})}),[0,25,50,75,100].map(e=>(0,Te.jsxs)("g",{children:[(0,Te.jsx)("line",{x1:26,y1:J(e),x2:Y,y2:J(e),stroke:50===e||75===e?"#9ca3af":"#eee",strokeWidth:50===e||75===e?1.2:1}),(0,Te.jsx)("text",{x:4,y:J(e),dominantBaseline:"middle",fontSize:"10",fill:"#9ca3af",children:e})]},e)),(0,Te.jsx)("path",{d:(()=>{if(!$)return"";const e=q.map((e,t)=>[X(t),J(e.score)]);if(e.length<2)return"M".concat(e[0][0],",").concat(e[0][1]);let t="M".concat(e[0][0],",").concat(e[0][1]);for(let n=0;n<e.length-1;n++){const a=e[n-1]||e[n],r=e[n],i=e[n+1],s=e[n+2]||i;t+=" C".concat(r[0]+(i[0]-a[0])/6,",").concat(r[1]+(i[1]-a[1])/6," ").concat(i[0]-(s[0]-r[0])/6,",").concat(i[1]-(s[1]-r[1])/6," ").concat(i[0],",").concat(i[1])}return t})(),fill:"none",stroke:"url(#barGrad)",strokeWidth:"6",strokeLinejoin:"round",strokeLinecap:"round"}),ee&&(0,Te.jsx)("line",{x1:ee.x1,y1:ee.y1,x2:ee.x2,y2:ee.y2,stroke:"#000000",strokeWidth:"2",strokeDasharray:"6 5",strokeLinecap:"round","data-testid":"pulse-trend-regression"}),q.map((e,t)=>{const n=e.token===w,a=P===e.wave,r=n||a,i=r?F(e.score).color:"#757575",s=r&&"moderat"===M(e.score)?"#000000":"#ffffff",o=r?16:14,l=J(e.score)-10-o;return(0,Te.jsxs)("g",{style:{cursor:"pointer"},onClick:()=>j(e.token),onMouseEnter:()=>A(e.wave),onMouseLeave:()=>A(null),"data-testid":"pulse-trend-point-".concat(e.wave),"data-mmyy":Fie(e.date),children:[(0,Te.jsx)("title",{children:"".concat(Fie(e.date)," \xb7 Wert ").concat(e.score," (").concat(F(e.score).status,") \xb7 ").concat(e.n," Antworten")}),r&&(0,Te.jsx)("circle",{cx:X(t),cy:l,r:o+5,fill:"none",stroke:F(e.score).color,strokeWidth:"2.5",opacity:"0.45"}),(0,Te.jsx)("circle",{cx:X(t),cy:l,r:o,fill:i}),(0,Te.jsx)("text",{x:X(t),y:l+4,textAnchor:"middle",fontSize:"12",fontWeight:"700",fill:s,style:{pointerEvents:"none"},children:e.score}),(0,Te.jsx)("text",{x:X(t),y:192,textAnchor:"middle",fontSize:"10",fontWeight:n?700:400,fill:n?"#374151":"#9ca3af",children:Fie(e.date)})]},e.token)})]})]})]}),(0,Te.jsxs)("div",{children:[(0,Te.jsxs)("h3",{className:"font-heading text-lg mb-3 flex items-center gap-2",children:[l("pulse.barometer.single_eval")," \u2013 ",Fie(null===V||void 0===V?void 0:V.date),(0,Te.jsxs)("span",{className:"text-sm font-normal text-muted-foreground",children:["(",null!==(s=null===N||void 0===N?void 0:N.responses)&&void 0!==s?s:"\u2026"," ",l("pulse.barometer.answers_suffix"),")"]})]}),z?(0,Te.jsx)(FS,{compact:!0}):!N||N.locked?(0,Te.jsx)(by,{className:"p-5",children:(0,Te.jsx)("p",{className:"text-sm font-bold text-muted-foreground",children:l("pulse.barometer.wave_locked").replace("{min}",v.anonymity_min)})}):(0,Te.jsx)("div",{className:"space-y-5",children:(N.questions||[]).map((e,t)=>p&&t>=3?(0,Te.jsxs)(a.Fragment,{children:[3===t&&(0,Te.jsx)(F_,{testid:"barometer-blur-notice"}),(0,Te.jsx)(Cie,{index:t,testid:"barometer-q-".concat(e.id)})]},e.id):(0,Te.jsx)(a.Fragment,{children:(0,Te.jsxs)(by,{className:"p-5","data-testid":"barometer-q-".concat(e.id),children:[(0,Te.jsxs)("div",{className:"flex items-start justify-between gap-3 mb-4",children:[(0,Te.jsx)("h3",{className:"font-semibold text-sm leading-snug",children:e.text}),(0,Te.jsx)(Lie,{answered:e.answered,target:N.headcount||0,testid:"barometer-count-".concat(t)})]}),"likert"===e.type&&(0,Te.jsx)(Bie,{distribution:e.distribution||[],testid:"barometer-likert-".concat(t)}),"open"===e.type&&(e.answers&&e.answers.length?(0,Te.jsx)(qie,{token:w,qid:e.id,answers:e.answers}):(0,Te.jsx)("p",{className:"text-sm text-muted-foreground",children:l("common.no_free_text")}))]})},e.id))})]})]}):(0,Te.jsx)(FS,{compact:!0})]})}function Vie(e){return e?e.charAt(0).toLowerCase()+e.slice(1):e}const Hie=new Set(["ar","he"]);function Wie(){const e=ln().token,t=Le(ya(),1)[0],n=Le((0,a.useState)("de"),2),r=n[0],i=n[1],s=Le((0,a.useState)([]),2),o=s[0],l=s[1],c=Le((0,a.useState)(null),2),u=c[0],m=c[1],p=Le((0,a.useState)({}),2),h=p[0],f=p[1],g=Le((0,a.useState)("welcome"),2),x=g[0],v=g[1],b=Le((0,a.useState)(0),2),y=b[0],w=b[1],j=Le((0,a.useState)(""),2),k=j[0],N=j[1],S=Le((0,a.useState)(!1),2),_=S[0],z=S[1],E=Is().editMode,C=Le((0,a.useState)(""),2),P=C[0],A=C[1],T=Le((0,a.useState)(!1),2),R=T[0],O=T[1],D="1"===t.get("preview"),M="1"===t.get("ct")||"undefined"!==typeof window&&"1"===window.sessionStorage.getItem("ct_mode"),I=er(r),F=Hie.has(r),L=(I.welcomeFor||"").replace("Care","Pulse"),B=(I.moreLink||"").replace("Care","Pulse");(0,a.useEffect)(()=>{Ps.get("/pulse-survey/languages".concat(M?"?ct=1":"")).then(e=>l(e.data)).catch(()=>{})},[M]),(0,a.useEffect)(()=>{const t=M?"&ct=1":"";Ps.get("/pulse-survey/".concat(e,"?lang=").concat(r).concat(t)).then(e=>m(e.data)).catch(e=>A(Cs(e,"Umfrage nicht gefunden")))},[e,r,M]),(0,a.useEffect)(()=>(document.title=u?"Umfrage PERSENTIS Pulse":"PERSENTIS",()=>{document.title="PERSENTIS"}),[u]);const q=(0,a.useRef)(null);if((0,a.useEffect)(()=>{const e=e=>{q.current&&q.current(e)};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[]),P&&!u)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center p-6 text-center text-muted-foreground","data-testid":"pulse-survey-error",children:P});if(!u)return(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"\u2026"});const U=u.ui||{},V=u.questions.length,H=u.questions[y],W=h[null===H||void 0===H?void 0:H.id]||{},K=e=>f(d(d({},h),{},{[H.id]:d(d({},W),e)})),G="de"!==r&&I.likert?I.likert:(null===H||void 0===H?void 0:H.scale_labels)||[],Z=()=>{A(""),y<V-1?w(y+1):(async()=>
2{if(O(!0),D)return v("done"),void O(!1);try{await Ps.post("/pulse-survey/".concat(e,"/submit"),{department_id:k,consent:!0,preview:!1,answers:u.questions.map(e=>{var t,n,a,r;const i=h[e.id]||{};return"likert"===e.type?{qid:e.id,type:"likert",likert:null!==(t=i.likert)&&void 0!==t?t:null}:"yesno"===e.type?{qid:e.id,type:"yesno",yesno:null!==(n=i.yesno)&&void 0!==n?n:null}:"choice"===e.type?{qid:e.id,type:"choice",choice:null!==(a=i.choice)&&void 0!==a?a:null}:"enps"===e.type?{qid:e.id,type:"enps",enps:null!==(r=i.enps)&&void 0!==r?r:null}:{qid:e.id,type:"open",text:i.text||""}})}),v("done")}catch(rse){A(Cs(rse))}finally{O(!1)}})()},Y=()=>{A(""),y>0?w(y-1):v("assign")};q.current=e=>{if(!E)if("survey"===x&&H){const n=H.type;if("likert"!==n||"ArrowRight"!==e.key&&"ArrowLeft"!==e.key)if("enps"!==n||"ArrowRight"!==e.key&&"ArrowLeft"!==e.key){if("Enter"===e.key){var t;if("textarea"===((null===(t=e.target)||void 0===t?void 0:t.tagName)||"").toLowerCase())return;e.preventDefault(),Z()}}else{e.preventDefault();const t=W.enps,n="ArrowRight"===e.key?null==t?0:Math.min(10,t+1):null==t?10:Math.max(0,t-1);K({enps:n})}else{e.preventDefault();const t=W.likert,n="ArrowRight"===e.key?null==t?1:Math.min(5,t+1):null==t?5:Math.max(1,t-1);K({likert:n})}}else if("welcome"===x&&"Enter"===e.key)e.preventDefault(),v("consent");else if("consent"===x&&"Enter"===e.key){if(e.preventDefault(),!_)return void A(I.consentRequired);v("assign")}else if("assign"===x&&"Enter"===e.key){var n;if("select"===((null===(n=e.target)||void 0===n?void 0:n.tagName)||"").toLowerCase())return;if(e.preventDefault(),!k)return void A(I.assignRequired);w(0),v("survey")}};const Q=()=>o.length<=1?null:(0,Te.jsxs)("div",{className:"flex items-center gap-2",children:[(0,Te.jsx)(xne,{size:16,className:"text-muted-foreground"}),(0,Te.jsx)("select",{value:r,onChange:e=>i(e.target.value),"data-testid":"pulse-survey-lang-select",className:"text-sm border border-border rounded-md px-2 py-1 bg-white outline-none",children:o.map(e=>(0,Te.jsx)("option",{value:e.code,children:e.name},e.code))})]}),$="min-h-screen bg-white w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 flex flex-col",X="inline-flex items-center justify-center gap-2 bg-primary text-white rounded-md px-6 py-3 text-sm sm:text-base font-semibold hover:bg-[var(--brand-primary-dark)] transition-colors disabled:opacity-40 disabled:cursor-not-allowed",J="inline-flex items-center justify-center gap-2 border border-border rounded-md px-5 py-3 text-sm sm:text-base hover:bg-zinc-50 transition-colors disabled:opacity-40",ee="".concat(u.company_name).concat(u.filiale_name?" | "+u.filiale_name:""),te=D?(0,Te.jsx)("div",{"data-testid":"preview-banner",className:"fixed top-0 left-0 right-0 z-50 bg-red-600 text-white text-xs sm:text-sm font-semibold text-center px-4 py-2 shadow-md",children:"VORSCHAU Ihres Fragebogens"}):null;if("done"===x)return(0,Te.jsxs)("div",{dir:F?"rtl":"ltr",className:"".concat($," items-center justify-center text-center ").concat(D?"pt-16":""),"data-testid":"pulse-survey-done",children:[te,(0,Te.jsx)("div",{className:"w-16 h-16 rounded-full bg-primary flex items-center justify-center",children:(0,Te.jsx)(Cf,{size:32,className:"text-white"})}),(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl mt-6",children:I.done}),(0,Te.jsx)("p",{className:"text-muted-foreground mt-2",children:I.doneText}),(0,Te.jsx)("a",{href:"https://www.persentis.com",target:"_blank",rel:"noopener noreferrer",className:"mt-5 font-bold text-primary hover:underline","data-testid":"pulse-more-link",children:B}),(0,Te.jsx)("div",{className:"mt-8",children:(0,Te.jsx)(lw,{size:"sm"})})]});if("survey"===x){if(M&&y>=2)return(0,Te.jsx)(vne,{count:2,lang:r,backLabel:I.back,languages:o,onLangChange:i,onBack:()=>w(1)});const e=Math.round((y+1)/V*100);return(0,Te.jsxs)("div",{dir:F?"rtl":"ltr",className:"".concat($," ").concat(D?"pt-16":"pt-5"," pb-44"),children:[te,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(Q,{})]}),(0,Te.jsxs)("div",{className:"mt-8 lg:mt-12 flex-1",children:[(0,Te.jsxs)("span",{className:"text-[11px] font-bold uppercase tracking-[0.15em] text-muted-foreground","data-testid":"pulse-question-index",children:[I.progress," ",y+1]}),(0,Te.jsx)("h2",{className:"font-heading text-xl sm:text-2xl lg:text-3xl mt-2 leading-snug","data-testid":"pulse-question",children:H.text}),"open"===H.type&&(0,Te.jsx)("div",{className:"mt-6","data-testid":"pulse-open-block",children:(0,Te.jsx)("textarea",{value:W.text||"",onChange:e=>K({text:e.target.value}),placeholder:I.answerHere,rows:5,className:"w-full border border-border rounded-md px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary","data-testid":"pulse-open-input"})}),"likert"===H.type&&(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-5 ga
2p-2 sm:gap-3","data-testid":"pulse-likert-group",children:G.map((e,t)=>{const n=t+1,a=W.likert===n;return(0,Te.jsx)("button",{type:"button",onClick:()=>K({likert:n}),"data-testid":"pulse-likert-".concat(n),className:"min-h-[72px] sm:min-h-[92px] flex items-center justify-center text-center px-2 py-3 rounded-md border text-xs sm:text-sm font-bold leading-snug transition-colors ".concat(a?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:Vie(e)},n)})}),"yesno"===H.type&&(0,Te.jsx)("div",{className:"mt-6 grid grid-cols-2 gap-3","data-testid":"pulse-yesno-group",children:[[U.yes||"Ja",!0],[U.no||"Nein",!1]].map(e=>{let t=Le(e,2),n=t[0],a=t[1];const r=W.yesno===a;return(0,Te.jsx)("button",{type:"button",onClick:()=>K({yesno:a}),"data-testid":"pulse-yesno-".concat(a?"ja":"nein"),className:"min-h-[64px] flex items-center justify-center rounded-md border text-sm font-bold transition-colors ".concat(r?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:n},String(a))})}),"choice"===H.type&&(0,Te.jsx)("div",{className:"mt-6 space-y-2","data-testid":"pulse-choice-group",children:(H.options||[]).map(e=>{const t=W.choice===e;return(0,Te.jsxs)("button",{type:"button",onClick:()=>K({choice:e}),"data-testid":"pulse-choice-".concat(e),className:"w-full flex items-center gap-3 rounded-md border px-4 py-3 text-left text-sm font-medium transition-colors ".concat(t?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:border-primary"),children:[(0,Te.jsx)("span",{className:"w-4 h-4 shrink-0 rounded-full border-2 ".concat(t?"border-white bg-white":"border-muted-foreground")}),e]},e)})}),"enps"===H.type&&(0,Te.jsxs)("div",{className:"mt-6","data-testid":"pulse-enps-group",children:[(0,Te.jsx)("div",{className:"grid grid-cols-6 sm:grid-cols-11 gap-1.5 sm:gap-2",children:Array.from({length:11},(e,t)=>{const n=W.enps===t;return(0,Te.jsx)("button",{type:"button",onClick:()=>K({enps:t}),"data-testid":"pulse-enps-".concat(t),className:"min-h-[52px] flex items-center justify-center rounded-md border text-sm font-bold transition-colors ".concat(n?"border-primary bg-primary text-white":"border-border bg-white text-foreground hover:bg-primary hover:text-white hover:border-primary"),children:t},t)})}),(0,Te.jsxs)("div",{className:"flex justify-between text-[11px] text-muted-foreground mt-2",children:[(0,Te.jsx)("span",{children:U.enpsLow||"0 \u2013 gar nicht wahrscheinlich"}),(0,Te.jsx)("span",{children:U.enpsHigh||"10 \u2013 \xe4u\xdferst wahrscheinlich"})]})]})]}),(0,Te.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-border",children:(0,Te.jsxs)("div",{className:"w-full max-w-xl lg:max-w-3xl mx-auto px-5 sm:px-8 lg:px-10 pb-3 pt-[30px]",children:[(0,Te.jsx)("div",{className:"flex items-center justify-between text-xs mb-1.5",children:(0,Te.jsxs)("span",{className:"text-muted-foreground",children:[I.progress," ",y+1," / ",V]})}),(0,Te.jsx)("div",{className:"h-1.5 bg-zinc-100 rounded-full overflow-hidden mb-[30px]",children:(0,Te.jsx)("div",{className:"h-full bg-primary transition-all duration-300",style:{width:"".concat(e,"%")},"data-testid":"pulse-progress-bar"})}),(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsxs)("button",{onClick:Y,"data-testid":"pulse-back",className:J,children:[(0,Te.jsx)(Rf,{size:16})," ",I.back]}),(0,Te.jsxs)("button",{onClick:Z,disabled:R,"data-testid":"pulse-next",className:X,children:[y===V-1?I.submit:I.next," ",(0,Te.jsx)(Df,{size:16})]})]})]})})]})}return(0,Te.jsxs)("div",{dir:F?"rtl":"ltr",className:"".concat($," ").concat(D?"pt-16":"pt-6"," pb-10"),children:[te,(0,Te.jsxs)("div",{className:"flex items-center justify-between",children:[(0,Te.jsx)(lw,{size:"sm"}),(0,Te.jsx)(Q,{})]}),(0,Te.jsxs)("div",{className:"flex-1 flex flex-col py-8 ".concat("welcome"===x?"justify-center":"justify-start"),children:["welcome"===x&&(0,Te.jsxs)("div",{className:"text-center","data-testid":"pulse-welcome",children:[(0,Te.jsx)("p",{className:"text-sm sm:text-base text-muted-foreground",children:L}),(0,Te.jsx)("h1",{className:"font-heading text-2xl sm:text-3xl lg:text-4xl mt-2",children:ee}),u.title&&(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-3","data-testid":"pulse-title",children:u.title}),(0,Te.jsxs)("div",{className:"flex items-center justify-center gap-2 mt-6 text-sm brand-green font-medium",children:[(0,Te.jsx)(dS,{size:18})," ",I.anonymous]}),(0,Te.jsxs)("button",{onClick:()=>v("consent"),className:"".concat(X," mt-8"),"data-testid":"pulse-start",children:[I.start," ",(0,Te.jsx)(Df,{size:16})]})]}),"consent"===x&&(0,Te.jsxs)("div",{"data-testid":"pulse-consent",children:[(0,Te.jsx)("h1",{className:"font-heading text-xl sm:text-2xl mb-4",children:I.consentTitle}),(0,Te.jsxs)("div",{className:"space-y-3 text-sm leading-relaxed text-foreground
2/90 max-h-[45vh] overflow-y-auto pr-1",children:[(0,Te.jsx)("p",{children:I.consentP1}),(0,Te.jsxs)("p",{children:[I.consentP2a,(0,Te.jsx)("a",{href:tr,target:"_blank",rel:"noreferrer",className:"text-primary underline font-semibold","data-testid":"pulse-consent-link",children:I.consentLinkText}),I.consentP2b]})]}),(0,Te.jsxs)("label",{className:"mt-5 flex items-start gap-3 cursor-pointer select-none",children:[(0,Te.jsxs)("span",{className:"relative mt-0.5 w-5 h-5 shrink-0",children:[(0,Te.jsx)("input",{type:"checkbox",checked:_,onChange:e=>{z(e.target.checked),A("")},className:"peer w-5 h-5 appearance-none rounded border-2 border-primary bg-white checked:bg-primary cursor-pointer","data-testid":"pulse-consent-checkbox"}),(0,Te.jsx)(Cf,{size:14,strokeWidth:3.5,className:"pointer-events-none absolute inset-0 m-auto text-white opacity-0 peer-checked:opacity-100"})]}),(0,Te.jsx)("span",{className:"text-sm font-medium",children:I.consentCheckbox})]}),P&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"pulse-consent-error",children:P}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>v("welcome"),className:J,"data-testid":"pulse-consent-back",children:[(0,Te.jsx)(Rf,{size:16})," ",I.back]}),(0,Te.jsxs)("button",{onClick:()=>{_?v("assign"):A(I.consentRequired)},className:X,"data-testid":"pulse-consent-next",children:[I.next," ",(0,Te.jsx)(Df,{size:16})]})]})]}),"assign"===x&&(0,Te.jsxs)("div",{"data-testid":"pulse-assign",children:[(0,Te.jsx)("h1",{className:"font-heading text-xl sm:text-2xl",children:I.assignTitle}),(0,Te.jsx)("p",{className:"text-sm text-muted-foreground mt-1",children:I.assignSubtitle}),(0,Te.jsxs)("select",{value:k,onChange:e=>{N(e.target.value),A("")},"data-testid":"pulse-assign-select",className:"mt-5 w-full border border-border rounded-md px-3 py-3 text-sm sm:text-base bg-white outline-none focus:ring-2 focus:ring-primary",children:[(0,Te.jsx)("option",{value:"",children:I.assignPlaceholder}),u.departments.map(e=>(0,Te.jsx)("option",{value:e.id,children:e.name},e.id))]}),P&&(0,Te.jsx)("p",{className:"text-sm text-destructive mt-3","data-testid":"pulse-assign-error",children:P}),(0,Te.jsxs)("div",{className:"mt-6 flex items-center justify-between gap-2",children:[(0,Te.jsxs)("button",{onClick:()=>v("consent"),className:J,"data-testid":"pulse-assign-back",children:[(0,Te.jsx)(Rf,{size:16})," ",I.back]}),(0,Te.jsxs)("button",{onClick:()=>{k?(w(0),v("survey")):A(I.assignRequired)},className:X,"data-testid":"pulse-assign-next",children:[I.next," ",(0,Te.jsx)(Df,{size:16})]})]})]})]})]})}function Kie(e){let t=e.product,n=e.children;const a=qN(),r=a.loading,i=a.canView;return r?(0,Te.jsx)("div",{className:"p-8 text-muted-foreground",children:"L\xe4dt \u2026"}):i(t)?n:(0,Te.jsx)(i_,{product:t})}function Gie(e){let t=e.children;const n=Rs().user;return null!==n&&void 0!==n&&n.is_owner||"superadmin"===(null===n||void 0===n?void 0:n.role)?t:(0,Te.jsx)(f9,{})}function Zie(e){let t=e.children;const n=Rs(),a=n.user;return n.loading?(0,Te.jsx)("div",{className:"min-h-screen flex items-center justify-center text-muted-foreground",children:"L\xe4dt \u2026"}):a?t:(0,Te.jsx)(En,{to:"/login",replace:!0})}function Yie(e,t){if("superadmin"===(null===e||void 0===e?void 0:e.role))return!0;if("__super"===t)return!1;if("subadmin"!==(null===e||void 0===e?void 0:e.role))return!1;const n=(null===e||void 0===e?void 0:e.permissions)||{};return!(!n.full&&!n[t])}const Qie=[["administration","/admin"],["neuerungen","/admin/changelog"],["texte","/admin/textverarbeitung"],["parameter","/admin/parameter"],["demo","/admin/demo"],["inhalts_sync","/admin/inhalts-sync"],["aktivitaeten","/admin/activities"],["clickthrough","/admin/clickthrough"]];function $ie(e){if("superadmin"===(null===e||void 0===e?void 0:e.role))return"/admin";const t=Qie.find(t=>{let n=Le(t,1)[0];return Yie(e,n)});return t?t[1]:"/profile"}function Xie(e){let t=e.user,n=e.area,a=e.children;return Yie(t,n)?a:(0,Te.jsx)(En,{to:$ie(t),replace:!0})}function Jie(){const e=Rs().user,t="superadmin"===(null===e||void 0===e?void 0:e.role)||"subadmin"===(null===e||void 0===e?void 0:e.role);return function(e){(0,a.useEffect)(()=>{e&&(Ps.get("/analytics/palette").then(e=>hw(e.data.config)).catch(()=>{}),Ps.get("/analytics/typography").then(e=>gw(e.data.config)).catch(()=>{}))},[e])}(e),(0,Te.jsxs)(Tn,{children:[(0,Te.jsx)(Pn,{path:"/login",element:(0,Te.jsx)(TS,{})}),(0,Te.jsx)(Pn,{path:"/register",element:(0,Te.jsx)(OS,{})}),(0,Te.jsx)(Pn,{path:"/confirm-email/:token",element:(0,Te.jsx)(DS,{})}),(0,Te.jsx)(Pn,{path:"/forgot-password",element:(0,Te.jsx)(MS,{})}),(0,Te.jsx)(Pn,{path:"/reset-password/:token",element:(0,Te.jsx)(IS,{})}),(0,Te.jsx)(Pn,{path:"/set-password/:token",element:(0,Te.jsx)(zae,{})}),(0,Te.jsx)(Pn,{path:"/demo",element:(0,Te.jsx)(Pae,{})}),(0,Te.jsx)(Pn,{path:"/demo-sandbox",element:(0,Te.jsx)(Eae,{})}),(0,Te.jsx)(Pn,{path:"/guide",element:(0,Te.jsx)(Cae,{})}),(0,Te.jsx)(Pn,{path:"/survey/:token",element:(0,Te.jsx)(zne,{})}),(0,Te.jsx)(Pn,{path:"/analytics-survey/:token",element:(0,Te.jsx)(Qne,{})}),(0,Te.jsx)(Pn,{path:"/pulse-survey/:token",element:(0,Te.jsx)(Wie,{})}),(0,Te.jsx)(Pn,{path:"/pay/:invoiceId",element:(0,Te.jsx)(T7,{})}),(0,Te.jsx)(Pn,{path:"/payment/success",element:(0,Te.jsx)(F7,{})}),(0,Te.jsx)(Pn,{path:"/payment/cancel",element:(0,Te.jsx)(B7,{})}),(0,Te.jsx)(Pn,{path:"/payment/card-saved",element:(0,Te.jsx)(q7,{})}),t?(0,Te.jsxs)(Pn,{element:(0,Te.jsx)(Zie,{children:(0,Te.jsx)(PS,{})}),children:[(0,Te.jsx)(Pn,{path:"/",element:(0,Te.jsx)(En,{to:$ie(e),replace:!0})}),(0,Te.jsx)(Pn,{path:"/admin",element:(0,Te.jsx)(Xie,{user:e,area:"administration",children:(0,Te.jsx)(Vae,{})})}),(0,Te.jsx)(Pn,{path:"/admin/changelog",element:(0,Te.jsx)(Xie,{user:e,area:"neuerungen",children:(0,Te.jsx)($E,{})})}),(0,Te.jsx)(Pn,{path:"/admin/automails",element:(0,Te.jsx)(Xie,{user:e,area:"texte",children:(0,Te.jsx)(ure,{})})}),(0,Te.jsx)(Pn,{path:"/admin/textverarbeitung",element:(0,Te.jsx)(Xie,{user:e,area:"texte",children:(0,Te.jsx)(Ire,{})})}),(0,Te.jsx)(Pn,{path:"/admin/textverarbeitung/analytics",element:(0,Te.jsx)(Xie,{user:e,area:"texte",children:(0,Te.jsx)(Ure,{})})}),(0,Te.jsx)(Pn,{path:"/admin/textverarbeitung/pulse-fragensets",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(Kre,{})})}),(0,Te.jsx)(Pn,{path:"/admin/result-texts",element:(0,Te.jsx)(En,{to:"/admin/textverarbeitung",replace:!0})}),(0,Te.jsx)(Pn,{path:"/admin/manual",element:(0,Te.jsx)(Xie,{user:e,area:"texte",children:(0,Te.jsx)(GE,{})})}),(0,Te.jsx)(Pn,{path:"/admin/activities",element:(0,Te.jsx)(Xie,{user:e,area:"aktivitaeten",children:(0,Te.jsx)(sC,{})})}),(0,Te.jsx)(Pn,{path:"/admin/parameter",element:(0,Te.jsx)(Xie,{user:e,area:"parameter",children:(0,Te.jsx)(EC,{})})}),(0,Te.jsx)(Pn,{path:"/admin/demo",element:(0,Te.jsx)(Xie,{user:e,area:"demo",children:(0,Te.jsx)(Oae,{})})}),(0,Te.jsx)(Pn,{path:"/admin/inhalts-sync",element:(0,Te.jsx)(Xie,{user:e,area:"inhalts_sync",children:(0,Te.jsx)(CC,{})})}),(0,Te.jsx)(Pn,{path:"/admin/transfer-import",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(DC,{})})}),(0,Te.jsx)(Pn,{path:"/admin/transfer-import/:token",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(o4,{})})}),(0,Te.jsx)(Pn,{path:"/admin/customer-transfer",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(HP,{})})}),(0,Te.jsx)(Pn,{path:"/admin/clickthrough",element:(0,Te.jsx)(Xie,{user:e,area:"clickthrough",children:(0,Te.jsx)(ine,{})})}),(0,Te.jsx)(Pn,{path:"/admin/ct-bericht",element:(0,Te.jsx)(Xie,{user:e,area:"clickthrough",children:(0,Te.jsx)(mne,{})})}),(0,Te.jsx)(Pn,{path:"/admin/ct-cta",element:(0,Te.jsx)(Xie,{user:e,area:"clickthrough",children:(0,Te.jsx)(gne,{})})}),(0,Te.jsx)(Pn,{path:"/admin/admins",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(j4,{})})}),(0,Te.jsx)(Pn,{path:"/admin/billing",element:(0,Te.jsx)(Xie,{user:e,area:"billing",children:(0,Te.jsx)(L4,{})})}),(0,Te.jsx)(Pn,{path:"/admin/vorschau",element:(0,Te.jsx)(Xie,{user:e,area:"billing",children:(0,Te.jsx)(A7,{})})}),(0,Te.jsx)(Pn,{path:"/admin/invoices",element:(0,Te.jsx)(Xie,{user:e,area:"billing",children:(0,Te.jsx)(e9,{})})}),(0,Te.jsx)(Pn,{path:"/admin/angebote",element:(0,Te.jsx)(Xie,{user:e,area:"billing",children:(0,Te.jsx)(a9,{})})}),(0,Te.jsx)(Pn,{path:"/admin/gutscheine",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(m9,{})})}),(0,Te.jsx)(Pn,{path:"/admin/stripe-test",element:(0,Te.jsx)(Xie,{user:e,area:"__super",children:(0,Te.jsx)(h9,{})})}),(0,Te.jsx)(Pn,{path:"/admin/abrechnungstexte",element:(0,Te.jsx)(En,{to:"/admin/automails?key=billing_invoice",replace:!0})}),(0,Te.jsx)(Pn,{path:"/profile",element:(0,Te.jsx)(aC,{})}),(0,Te.jsx)(Pn,{path:"*",element:(0,Te.jsx)(En,{to:$ie(e),replace:!0})})]}):(0,Te.jsxs)(Pn,{element:(0,Te.jsx)(Zie,{children:(0,Te.jsx)(cS,{})}),children:[(0,Te.jsx)(Pn,{path:"/",element:(0,Te.jsx)(En,{to:"/welcome",replace:!0})}),(0,Te.jsx)(Pn,{path:"/welcome",element:(0,Te.jsx)(v_,{})}),(0,Te.jsx)(Pn,{path:"/dashboard",element:(0,Te.jsx)(Kie,{product:"care",children:(0,Te.jsx)(p_,{})})}),(0,Te.jsx)(Pn,{path:"/analytics/dashboard",element:(0,Te.jsx)(Kie,{product:"analytics",children:(0,Te.jsx)($re,{})})}),(0,Te.jsx)(Pn,{path:"/analytics/invitations",element:(0,Te.jsx)(Kie,{product:"analytics",children:(0,Te.jsx)(Xre,{})})}),(0,Te.jsx)(Pn,{path:"/analytics/auswertungen",element:(0,Te.jsx)(Kie,{product:"analytics",children:(0,Te.jsx)(nie,{})})}),(0,Te.jsx)(Pn,{path:"/analytics/auswertungen/:token",element:(0,Te.jsx)(Kie,{product:"analytics",children:(0,Te.jsx)(s4,{})})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse",element:(0,Te.jsx)(En,{to:"/pulse/einmalig/dashboard",replace:!0})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/dashboard",element:(0,Te.jsx)(En,{to:"/pulse/einmalig/dashboard",replace:!0})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/invitations",element:(0,Te.jsx)(En,{to:"/pulse/einmalig/invitations",replace:!0})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/auswertungen",element:(0,Te.jsx)(En,{to:"/pulse/einmalig/auswertungen",replace:!0})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/:ptype/dashboard",element:(0,Te.jsx)(lie,{})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/:ptype/invitations",element:(0,Te.jsx)(bie,{})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/:ptype/auswertungen",element:(0,Te.jsx)(Nie,{})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/:ptype/barometer/:programId",element:(0,Te.jsx)(Uie,{})}),"admin"===(null===e||void 0===e?void 0:e.role)&&(0,Te.jsx)(Pn,{path:"/pulse/:ptype/auswertungen/:token",element:(0,Te.jsx)(Mie,{})}),(0,Te.jsx)(Pn,{path:"/structure",element:(0,Te.jsx)(Gie,{children:(0,Te.jsx)(P_,{})})}),(0,Te.jsx)(Pn,{path:"/invitations",element:(0,Te.jsx)(Kie,{product:"care",children:(0,Te.jsx)(az,{})})}),(0,Te.jsx)(Pn,{path:"/auswertungen",element:(0,Te.jsx)(Kie,{product:"care",children:(0,Te.jsx)(nE,{})})}),(0,Te.jsx)(Pn,{path:"/analysis/:token",element:(0,Te.jsx)(Kie,{product:"care",children:(0,Te.jsx)(_ae,{})})}),(0,Te.jsx)(Pn,{path:"/users",element:(0,Te.jsx)(Gie,{children:(0,Te.jsx)(yE,{})})}),(0,Te.jsx)(Pn,{path:"/settings",element:(0,Te.jsx)(Kie,{product:"care",children:(0,Te.jsx)(kE,{})})}),(0,Te.jsx)(Pn,{path:"/billing",element:(0,Te.jsx)(Gie,{children:(0,Te.jsx)(RE,{})})}),(0,Te.jsx)(Pn,{path:"/manual",element:(0,Te.jsx)(GE,{})}),(0,Te.jsx)(Pn,{path:"/profile",element:(0,Te.jsx)(aC,{})}),(0,Te.jsx)(Pn,{path:"/activities",element:(0,Te.jsx)(sC,{})}),(0,Te.jsx)(Pn,{path:"/historie",element:(0,Te.jsx)(p4,{})}),(0,Te.jsx)(Pn,{path:"/historie/:token",element:(0,Te.jsx)(p4,{})}),(0,Te.jsx)(Pn,{path:"*",element:(0,Te.jsx)(En,{to:"/welcome",replace:!0})})]})]})}function ese(){const e=Rs().user,t=Xa().setLang,n=(0,a.useRef)(null);return(0,a.useEffect)(()=>{var a;if(!e||!e.id)return;if("undefined"!==typeof window&&window.sessionStorage.getItem("ct_mode"))return;const r=null===(a=e.profile)||void 0===a?void 0:a.preferred_lang;r&&n.current!==e.id&&(n.current=e.id,t(r))},[e,t]),null}function tse(){return(0,a.useEffect)(()=>{const e=e=>{e&&e.matches&&e.matches('input[type="date"]')&&e.classList.toggle("has-date",!!e.value)},t=t=>e(t.target),n=()=>document.querySelectorAll('input[type="date"]').forEach(e);document.addEventListener("input",t,!0),document.addEventListener("focusin",t,!0),n();const a=setInterval(n,1500);return()=>{document.removeEventListener("input",t,!0),document.removeEventListener("focusin",t,!0),clearInterval(a)}},[]),null}function nse(){return(0,Te.jsx)($a,{children:(0,Te.jsxs)(Ts,{children:[(0,Te.jsx)(ese,{}),(0,Te.jsx)(Ms,{children:(0,Te.jsx)(pa,{children:(0,Te.jsx)(Hs,{children:(0,Te.jsxs)(Zs,{children:[(0,Te.jsxs)(uw,{children:[(0,Te.jsx)(tse,{}),(0,Te.jsx)(Jie,{}),(0,Te.jsx)(sw,{}),(0,Te.jsx)(ew,{}),(0,Te.jsx)(aw,{}),(0,Te.jsx)(Oy,{})]}),(0,Te.jsx)(Va,{position:"top-right",richColors:!0})]})})})})]})})}const ase=new Ae({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}});i.createRoot(document.getElementById("root")).render((0,Te.jsx)(a.StrictMode,{children:(0,Te.jsx)(Oe,{client:ase,children:(0,Te.jsx)(nse,{})})}))})()})(); 3//# sourceMappingURL=main.f915832a.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.