1import{r as R,g as we,a as je,b as Se,j as r,F as te,c as _e,u as me,d as Ee,e as Re,f as ee,t as q,s as Ne,h as Te,N as O,L as Le,i as Ye,k as z,o as re,l as Xe,m as We,n as Pe,p as He,q as Oe,A as Me,O as Ce,v as ke}from"./main-BQkHn5AK.js";import{a as G}from"./index-BjtuyMK1.js";var Ae={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function ve(e){if(typeof e=="number")return{value:e,unit:"px"};var t,n=(e.match(/^[0-9.]*/)||"").toString();n.includes(".")?t=parseFloat(n):t=parseInt(n,10);var o=(e.match(/[^0-9]*$/)||"").toString();return Ae[o]?{value:t,unit:o}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function ne(e){var t=ve(e);return"".concat(t.value).concat(t.unit)}var De=function(e,t,n){var o="react-spinners-".concat(e,"-").concat(n);if(typeof window>"u"||!window.document)return o;var s=document.createElement("style");document.head.appendChild(s);var i=s.sheet,a=` 2 @keyframes `.concat(o,` { 3 `).concat(t,` 4 } 5 `);return i&&i.insertRule(a,0),o},Y=function(){return Y=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Y.apply(this,arguments)},Be=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]]);return n},oe=De("MoonLoader","100% {transform: rotate(360deg)}","moon");function Fe(e){var t=e.loading,n=t===void 0?!0:t,o=e.color,s=o===void 0?"#000000":o,i=e.speedMultiplier,a=i===void 0?1:i,c=e.cssOverride,l=c===void 0?{}:c,h=e.size,y=h===void 0?60:h,p=Be(e,["loading","color","speedMultiplier","cssOverride","size"]),x=ve(y),g=x.value,b=x.unit,w=Math.round(g/7),m=Y({display:"inherit",position:"relative",width:"".concat("".concat(g+w*2).concat(b)),height:"".concat("".concat(g+w*2).concat(b)),animation:"".concat(oe," ").concat(.6/a,"s 0s infinite linear"),animationFillMode:"forwards"},l),u=function(j){return{width:ne(j),height:ne(j),borderRadius:"100%"}},v=Y(Y({},u(w)),{backgroundColor:"".concat(s),opacity:"0.8",position:"absolute",top:"".concat("".concat(g/2-w/2).concat(b)),animation:"".concat(oe," ").concat(.6/a,"s 0s infinite linear"),animationFillMode:"forwards"}),d=Y(Y({},u(g)),{border:"".concat(w,"px solid ").concat(s),opacity:"0.1",boxSizing:"content-box",position:"absolute"});return n?R.createElement("span",Y({style:m},p),R.createElement("span",{style:v}),R.createElement("span",{style:d})):null}var B={exports:{}},F={exports:{}},V={exports:{}},J,se;function Ue(){if(se)return J;se=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return J=e,J}var Q,ae;function $e(){if(ae)return Q;ae=1;var e=Ue();function t(){}function n(){}return n.resetWarningCache=t,Q=function(){function o(a,c,l,h,y,p){if(p!==e){var x=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw x.name="Invariant Violation",x}}o.isRequired=o;function s(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:s,element:o,elementType:o,instanceOf:s,node:o,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Q}var ie;function Ie(){return ie||(ie=1,V.exports=$e()()),V.exports}/*! 6 * perfect-scrollbar v1.5.6 7 * Copyright 2024 Hyunje Jun, MDBootstrap and Contributors 8 * Licensed under MIT 9 */function T(e){return getComputedStyle(e)}function N(e,t){for(var n in t){var o=t[n];typeof o=="number"&&(o=o+"px"),e.style[n]=o}return e}function U(e){var t=document.createElement("div");return t.className=e,t}var le=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function X(e,t){if(!le)throw new Error("No element matching method supported");return le.call(e,t)}function M(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function ce(e,t){return Array.prototype.filter.call(e.children,function(n){return X(n,t)})}var E={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},be={x:null,y:null};function ge(e,t){var n=e.element.classList,o=E.state.scrolling(t);n.contains(o)?clearTimeout(be[t]):n.add(o)}function xe(e,t){be[t]=setTimeout(function(){return e.isAlive&&e.element.classList.remove(E.state.scrolling(t))},e.settings.scrollingThreshold)}function qe(e,t){ge(e,t),xe(e,t)}var A=function(t){this.element=t,this.handlers={}},ye={isEmpty:{configurable:!0}};A.prototype.bind=function(t,n){typeof this.handlers[t]>"u"&&(this.handlers[t]=[]),this.handlers[t].push(n),this.element.addEventListener(t,n,!1)};A.prototype.unbind=function(t,n){var o=this;this.handlers[t]=this.handlers[t].filter(function(s){return n&&s!==n?!0:(o.element.removeEventListener(t,s,!1),!1)})};A.prototype.unbindAll=function(){for(var t in this.handlers)this.unbind(t)};ye.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every(function(t){return e.handlers[t].length===0})};Object.defineProperties(A.prototype,ye);var C=function(){this.eventElements=[]};C.prototype.eventElement=function(t){var n=this.eventElements.filter(function(o){return o.element===t})[0];return n||(n=new A(t),this.eventElements.push(n)),n};C.prototype.bind=function(t,n,o){this.eventElement(t).bind(n,o)};C.prototype.unbind=function(t,n,o){var s=this.eventElement(t);s.unbind(n,o),s.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(s),1)};
9C.prototype.unbindAll=function(){this.eventElements.forEach(function(t){return t.unbindAll()}),this.eventElements=[]};C.prototype.once=function(t,n,o){var s=this.eventElement(t),i=function(a){s.unbind(n,i),o(a)};s.bind(n,i)};function $(e){if(typeof window.CustomEvent=="function")return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function K(e,t,n,o,s){o===void 0&&(o=!0),s===void 0&&(s=!1);var i;if(t==="top")i=["contentHeight","containerHeight","scrollTop","y","up","down"];else if(t==="left")i=["contentWidth","containerWidth","scrollLeft","x","left","right"];else throw new Error("A proper axis should be provided");Ke(e,n,i,o,s)}function Ke(e,t,n,o,s){var i=n[0],a=n[1],c=n[2],l=n[3],h=n[4],y=n[5];o===void 0&&(o=!0),s===void 0&&(s=!1);var p=e.element;e.reach[l]=null,p[c]<1&&(e.reach[l]="start"),p[c]>e[i]-e[a]-1&&(e.reach[l]="end"),t&&(p.dispatchEvent($("ps-scroll-"+l)),t<0?p.dispatchEvent($("ps-scroll-"+h)):t>0&&p.dispatchEvent($("ps-scroll-"+y)),o&&qe(e,l)),e.reach[l]&&(t||s)&&p.dispatchEvent($("ps-"+l+"-reach-"+e.reach[l]))}function S(e){return parseInt(e,10)||0}function ze(e){return X(e,"input,[contenteditable]")||X(e,"select,[contenteditable]")||X(e,"textarea,[contenteditable]")||X(e,"button,[contenteditable]")}function Ge(e){var t=T(e);return S(t.width)+S(t.paddingLeft)+S(t.paddingRight)+S(t.borderLeftWidth)+S(t.borderRightWidth)}var H={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function L(e){var t=e.element,n=Math.floor(t.scrollTop),o=t.getBoundingClientRect();e.containerWidth=Math.floor(o.width),e.containerHeight=Math.floor(o.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(ce(t,E.element.rail("x")).forEach(function(s){return M(s)}),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(ce(t,E.element.rail("y")).forEach(function(s){return M(s)}),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=de(e,S(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=S((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=de(e,S(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=S(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),Ve(t,e),e.scrollbarXActive?t.classList.add(E.state.active("x")):(t.classList.remove(E.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=e.isRtl===!0?e.contentWidth:0),e.scrollbarYActive?t.classList.add(E.state.active("y")):(t.classList.remove(E.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function de(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Ve(e,t){var n={width:t.railXWidth},o=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-o:n.top=t.scrollbarXTop+o,N(t.scrollbarXRail,n);var s={top:o,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?s.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:s.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?s.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth*2-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:s.left=t.scrollbarYLeft+e.scrollLeft,N(t.scrollbarYRail,s),N(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),N(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}function Je(e){e.event.bind(e.scrollbarY,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarYRail,"mousedown",function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top,o=n>e.scrollbarYTop?1:-1;e.element.scrollTop+=o*e.containerHeight,L(e),t.stopPropagation()}),e.event.bind(e.scrollbarX,"mousedown",function(t){return t.stopPropagation()}),e.event.bind(e.scrollbarXRail,"mousedown",function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left,o=n>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=o*e.containerWidth,L(e),t.stopPropagation()})}var I=null;function Qe(e){ue(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"]),ue(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"])}function ue(e,t){var n=t[0],o=t[1],s=t[2],i=t[3],a=t[4],c=t[5],l=t[6],h=t[7],y=t[8],p=e.element,x=null,g=null,b=null;function w(v){v.touches&&v.touches[0]&&(v[s]=v.touches[0]["page"+h.toUpperCase()]),I===a&&(p[l]=x+b*(v[s]-g),ge(e,h),L(e),v.stopPropagation(),v.preventDefault())}function m(){xe(e,h),e[y].classList.remove(E.state.clicking),document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",m),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",m),I=null}
9function u(v){I===null&&(I=a,x=p[l],v.touches&&(v[s]=v.touches[0]["page"+h.toUpperCase()]),g=v[s],b=(e[o]-e[n])/(e[i]-e[c]),v.touches?(document.addEventListener("touchmove",w,{passive:!1}),document.addEventListener("touchend",m)):(document.addEventListener("mousemove",w),document.addEventListener("mouseup",m)),e[y].classList.add(E.state.clicking)),v.stopPropagation(),v.cancelable&&v.preventDefault()}e[a].addEventListener("mousedown",u),e[a].addEventListener("touchstart",u)}function Ze(e){var t=e.element,n=function(){return X(t,":hover")},o=function(){return X(e.scrollbarX,":focus")||X(e.scrollbarY,":focus")};function s(i,a){var c=Math.floor(t.scrollTop);if(i===0){if(!e.scrollbarYActive)return!1;if(c===0&&a>0||c>=e.contentHeight-e.containerHeight&&a<0)return!e.settings.wheelPropagation}var l=t.scrollLeft;if(a===0){if(!e.scrollbarXActive)return!1;if(l===0&&i<0||l>=e.contentWidth-e.containerWidth&&i>0)return!e.settings.wheelPropagation}return!0}e.event.bind(e.ownerDocument,"keydown",function(i){if(!(i.isDefaultPrevented&&i.isDefaultPrevented()||i.defaultPrevented)&&!(!n()&&!o())){var a=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(a){if(a.tagName==="IFRAME")a=a.contentDocument.activeElement;else for(;a.shadowRoot;)a=a.shadowRoot.activeElement;if(ze(a))return}var c=0,l=0;switch(i.which){case 37:i.metaKey?c=-e.contentWidth:i.altKey?c=-e.containerWidth:c=-30;break;case 38:i.metaKey?l=e.contentHeight:i.altKey?l=e.containerHeight:l=30;break;case 39:i.metaKey?c=e.contentWidth:i.altKey?c=e.containerWidth:c=30;break;case 40:i.metaKey?l=-e.contentHeight:i.altKey?l=-e.containerHeight:l=-30;break;case 32:i.shiftKey?l=e.containerHeight:l=-e.containerHeight;break;case 33:l=e.containerHeight;break;case 34:l=-e.containerHeight;break;case 36:l=e.contentHeight;break;case 35:l=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&c!==0||e.settings.suppressScrollY&&l!==0||(t.scrollTop-=l,t.scrollLeft+=c,L(e),s(c,l)&&i.preventDefault())}})}function et(e){var t=e.element;function n(a,c){var l=Math.floor(t.scrollTop),h=t.scrollTop===0,y=l+t.offsetHeight===t.scrollHeight,p=t.scrollLeft===0,x=t.scrollLeft+t.offsetWidth===t.scrollWidth,g;return Math.abs(c)>Math.abs(a)?g=h||y:g=p||x,g?!e.settings.wheelPropagation:!0}function o(a){var c=a.deltaX,l=-1*a.deltaY;return(typeof c>"u"||typeof l>"u")&&(c=-1*a.wheelDeltaX/6,l=a.wheelDeltaY/6),a.deltaMode&&a.deltaMode===1&&(c*=10,l*=10),c!==c&&l!==l&&(c=0,l=a.wheelDelta),a.shiftKey?[-l,-c]:[c,l]}function s(a,c,l){if(!H.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(a))return!1;for(var h=a;h&&h!==t;){if(h.classList.contains(E.element.consuming))return!0;var y=T(h);if(l&&y.overflowY.match(/(scroll|auto)/)){var p=h.scrollHeight-h.clientHeight;if(p>0&&(h.scrollTop>0&&l<0||h.scrollTop<p&&l>0))return!0}if(c&&y.overflowX.match(/(scroll|auto)/)){var x=h.scrollWidth-h.clientWidth;if(x>0&&(h.scrollLeft>0&&c<0||h.scrollLeft<x&&c>0))return!0}h=h.parentNode}return!1}function i(a){var c=o(a),l=c[0],h=c[1];if(!s(a.target,l,h)){var y=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(h?t.scrollTop-=h*e.settings.wheelSpeed:t.scrollTop+=l*e.settings.wheelSpeed,y=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(l?t.scrollLeft+=l*e.settings.wheelSpeed:t.scrollLeft-=h*e.settings.wheelSpeed,y=!0):(t.scrollTop-=h*e.settings.wheelSpeed,t.scrollLeft+=l*e.settings.wheelSpeed),L(e),y=y||n(l,h),y&&!a.ctrlKey&&(a.stopPropagation(),a.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",i):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",i)}function tt(e){if(!H.supportsTouch&&!H.supportsIePointer)return;var t=e.element,n={startOffset:{},startTime:0,speed:{},easingLoop:null};function o(p,x){var g=Math.floor(t.scrollTop),b=t.scrollLeft,w=Math.abs(p),m=Math.abs(x);if(m>w){if(x<0&&g===e.contentHeight-e.containerHeight||x>0&&g===0)return window.scrollY===0&&x>0&&H.isChrome}else if(w>m&&(p<0&&b===e.contentWidth-e.containerWidth||p>0&&b===0))return!0;return!0}function s(p,x){t.scrollTop-=x,t.scrollLeft-=p,L(e)}function i(p){return p.targetTouches?p.targetTouches[0]:p}function a(p){return p.target===e.scrollbarX||p.target===e.scrollbarY||p.pointerType&&p.pointerType==="pen"&&p.buttons===0?!1:!!(p.targetTouches&&p.targetTouches.length===1||p.pointerType&&p.pointerType!=="mouse"&&p.pointerType!==p.MSPOINTER_TYPE_MOUSE)}function c(p){if(a(p)){var x=i(p);n.startOffset.pageX=x.pageX,n.startOffset.pageY=x.pageY,n.startTime=new Date().getTime(),n.easingLoop!==null&&clearInterval(n.easingLoop)}}function l(p,x,g){if(!t.contains(p))return!1;for(var b=p;b&&b!==t;){if(b.classList.contains(E.element.consuming))return!0;var w=T(b);if(g&&w.overflowY.match(/(scroll|auto)/)){var m=b.scrollHeight-b.clientHeight;if(m>0&&(b.scrollTop>0&&g<0||b.scrollTop<m&&g>0))return!0}if(x&&w.overflowX.match(/(scroll|auto)/)){var u=b.scrollWidth-b.clientWidth;if(u>0&&(b.scrollLeft>0&&x<0||b.scrollLeft<u&&x>0))return!0}b=b.parentNode}return!1}function h(p){if(a(p)){var x=i(p),g={pageX:x.pageX,pageY:x.pageY},b=g.pageX-n.startOffset.pageX,w=g.pageY-n.startOffset.pageY;if(l(p.target,b,w))return;s(b,w),n.startOffset=g;var m=new Date().getTime(),u=m-n.startTime;u>
90&&(n.speed.x=b/u,n.speed.y=w/u,n.startTime=m),o(b,w)&&p.cancelable&&p.preventDefault()}}function y(){e.settings.swipeEasing&&(clearInterval(n.easingLoop),n.easingLoop=setInterval(function(){if(e.isInitialized){clearInterval(n.easingLoop);return}if(!n.speed.x&&!n.speed.y){clearInterval(n.easingLoop);return}if(Math.abs(n.speed.x)<.01&&Math.abs(n.speed.y)<.01){clearInterval(n.easingLoop);return}s(n.speed.x*30,n.speed.y*30),n.speed.x*=.8,n.speed.y*=.8},10))}H.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",h),e.event.bind(t,"touchend",y)):H.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",h),e.event.bind(t,"pointerup",y)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",h),e.event.bind(t,"MSPointerUp",y)))}var rt=function(){return{handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1}},nt={"click-rail":Je,"drag-thumb":Qe,keyboard:Ze,wheel:et,touch:tt},D=function(t,n){var o=this;if(n===void 0&&(n={}),typeof t=="string"&&(t=document.querySelector(t)),!t||!t.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");this.element=t,t.classList.add(E.main),this.settings=rt();for(var s in n)this.settings[s]=n[s];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var i=function(){return t.classList.add(E.state.focus)},a=function(){return t.classList.remove(E.state.focus)};this.isRtl=T(t).direction==="rtl",this.isRtl===!0&&t.classList.add(E.rtl),this.isNegativeScroll=(function(){var h=t.scrollLeft,y=null;return t.scrollLeft=-1,y=t.scrollLeft<0,t.scrollLeft=h,y})(),this.negativeScrollAdjustment=this.isNegativeScroll?t.scrollWidth-t.clientWidth:0,this.event=new C,this.ownerDocument=t.ownerDocument||document,this.scrollbarXRail=U(E.element.rail("x")),t.appendChild(this.scrollbarXRail),this.scrollbarX=U(E.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",i),this.event.bind(this.scrollbarX,"blur",a),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var c=T(this.scrollbarXRail);this.scrollbarXBottom=parseInt(c.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=S(c.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=S(c.borderLeftWidth)+S(c.borderRightWidth),N(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=S(c.marginLeft)+S(c.marginRight),N(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=U(E.element.rail("y")),t.appendChild(this.scrollbarYRail),this.scrollbarY=U(E.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",i),this.event.bind(this.scrollbarY,"blur",a),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var l=T(this.scrollbarYRail);this.scrollbarYRight=parseInt(l.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=S(l.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?Ge(this.scrollbarY):null,this.railBorderYWidth=S(l.borderTopWidth)+S(l.borderBottomWidth),N(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=S(l.marginTop)+S(l.marginBottom),N(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:t.scrollLeft<=0?"start":t.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:t.scrollTop<=0?"start":t.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(h){return nt[h](o)}),this.lastScrollTop=Math.floor(t.scrollTop),this.lastScrollLeft=t.scrollLeft,this.event.bind(this.element,"scroll",function(h){return o.onScroll(h)}),L(this)};D.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,N(this.scrollbarXRail,{display:"block"}),N(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=S(T(this.scrollbarXRail).marginLeft)+S(T(this.scrollbarXRail).marginRight),this.railYMarginHeight=S(T(this.scrollbarYRail).marginTop)+S(T(this.scrollbarYRail).marginBottom),N(this.scrollbarXRail,{display:"none"}),N(this.scrollbarYRail,{display:"none"}),L(this),K(this,"top",0,!1,!0),K(this,"left",0,!1,!0),N(this.scrollbarXRail,{display:""}),N(this.scrollbarYRail,{display:""}))};D.prototype.onScroll=function(t){this.isAlive&&(L(this),K(this,"top",this.element.scrollTop-this.lastScrollTop),K(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)};D.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),M(this.scrollbarX),M(this.scrollbarY),M(this.scrollbarXRail),M(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)};D.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(t){return!t.match(/^ps([-_].+|)$/)}).join(" ")};const ot=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),st=we(ot);var he;function at(){return he||(he=1,(function(e,t){Object.defineProperty(t,"__esMo
9dule",{value:!0});var n=Object.assign||function(m){for(var u=1;u<arguments.length;u++){var v=arguments[u];for(var d in v)Object.prototype.hasOwnProperty.call(v,d)&&(m[d]=v[d])}return m},o=(function(){function m(u,v){for(var d=0;d<v.length;d++){var j=v[d];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(u,j.key,j)}}return function(u,v,d){return v&&m(u.prototype,v),d&&m(u,d),u}})(),s=je(),i=h(s),a=Ie(),c=st,l=h(c);function h(m){return m&&m.__esModule?m:{default:m}}function y(m,u){var v={};for(var d in m)u.indexOf(d)>=0||Object.prototype.hasOwnProperty.call(m,d)&&(v[d]=m[d]);return v}function p(m,u){if(!(m instanceof u))throw new TypeError("Cannot call a class as a function")}function x(m,u){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:m}function g(m,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);m.prototype=Object.create(u&&u.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(m,u):m.__proto__=u)}var b={"ps-scroll-y":"onScrollY","ps-scroll-x":"onScrollX","ps-scroll-up":"onScrollUp","ps-scroll-down":"onScrollDown","ps-scroll-left":"onScrollLeft","ps-scroll-right":"onScrollRight","ps-y-reach-start":"onYReachStart","ps-y-reach-end":"onYReachEnd","ps-x-reach-start":"onXReachStart","ps-x-reach-end":"onXReachEnd"};Object.freeze(b);var w=(function(m){g(u,m);function u(v){p(this,u);var d=x(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,v));return d.handleRef=d.handleRef.bind(d),d._handlerByEvent={},d}return o(u,[{key:"componentDidMount",value:function(){this.props.option&&console.warn('react-perfect-scrollbar: the "option" prop has been deprecated in favor of "options"'),this._ps=new l.default(this._container,this.props.options||this.props.option),this._updateEventHook(),this._updateClassName()}},{key:"componentDidUpdate",value:function(d){this._updateEventHook(d),this.updateScroll(),d.className!==this.props.className&&this._updateClassName()}},{key:"componentWillUnmount",value:function(){var d=this;Object.keys(this._handlerByEvent).forEach(function(j){var f=d._handlerByEvent[j];f&&d._container.removeEventListener(j,f,!1)}),this._handlerByEvent={},this._ps.destroy(),this._ps=null}},{key:"_updateEventHook",value:function(){var d=this,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object.keys(b).forEach(function(f){var _=d.props[b[f]],W=j[b[f]];if(_!==W){if(W){var P=d._handlerByEvent[f];d._container.removeEventListener(f,P,!1),d._handlerByEvent[f]=null}if(_){var k=function(){return _(d._container)};d._container.addEventListener(f,k,!1),d._handlerByEvent[f]=k}}})}},{key:"_updateClassName",value:function(){var d=this.props.className,j=this._container.className.split(" ").filter(function(f){return f.match(/^ps([-_].+|)$/)}).join(" ");this._container&&(this._container.className="scrollbar-container"+(d?" "+d:"")+(j?" "+j:""))}},{key:"updateScroll",value:function(){this.props.onSync(this._ps)}},{key:"handleRef",value:function(d){this._container=d,this.props.containerRef(d)}},{key:"render",value:function(){var d=this.props;d.className;var j=d.style;d.option,d.options,d.containerRef,d.onScrollY,d.onScrollX,d.onScrollUp,d.onScrollDown,d.onScrollLeft,d.onScrollRight,d.onYReachStart,d.onYReachEnd,d.onXReachStart,d.onXReachEnd;var f=d.component;d.onSync;var _=d.children,W=y(d,["className","style","option","options","containerRef","onScrollY","onScrollX","onScrollUp","onScrollDown","onScrollLeft","onScrollRight","onYReachStart","onYReachEnd","onXReachStart","onXReachEnd","component","onSync","children"]),P=f;return i.default.createElement(P,n({style:j,ref:this.handleRef},W),_)}}]),u})(s.Component);t.default=w,w.defaultProps={className:"",style:void 0,option:void 0,options:void 0,containerRef:function(){},onScrollY:void 0,onScrollX:void 0,onScrollUp:void 0,onScrollDown:void 0,onScrollLeft:void 0,onScrollRight:void 0,onYReachStart:void 0,onYReachEnd:void 0,onXReachStart:void 0,onXReachEnd:void 0,onSync:function(u){return u.update(
9)},component:"div"},w.propTypes={children:a.PropTypes.node.isRequired,className:a.PropTypes.string,style:a.PropTypes.object,option:a.PropTypes.object,options:a.PropTypes.object,containerRef:a.PropTypes.func,onScrollY:a.PropTypes.func,onScrollX:a.PropTypes.func,onScrollUp:a.PropTypes.func,onScrollDown:a.PropTypes.func,onScrollLeft:a.PropTypes.func,onScrollRight:a.PropTypes.func,onYReachStart:a.PropTypes.func,onYReachEnd:a.PropTypes.func,onXReachStart:a.PropTypes.func,onXReachEnd:a.PropTypes.func,onSync:a.PropTypes.func,component:a.PropTypes.string},e.exports=t.default})(F,F.exports)),F.exports}var pe;function it(){return pe||(pe=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=at(),o=s(n);function s(i){return i&&i.__esModule?i:{default:i}}t.default=o.default,e.exports=t.default})(B,B.exports)),B.exports}var lt=it();const ct=Se(lt),dt=({text:e="Caricamento in corso...",fullScreen:t=!0,size:n="md"})=>{const s={sm:{spinner:"h-8 w-8 border-2",text:"text-sm"},md:{spinner:"h-10 w-10 border-[3px]",text:"text-base"},lg:{spinner:"h-14 w-14 border-[4px]",text:"text-lg"}}[n];return r.jsx("div",{className:t?"fixed inset-0 z-[9999] flex items-center justify-center bg-secondary":"flex items-center justify-center py-12",role:"status","aria-live":"polite",children:r.jsxs("div",{className:"flex flex-col items-center gap-4",children:[r.jsx("div",{className:` 10 ${s.spinner} 11 animate-spin 12 rounded-full 13 border-primary/20 14 border-t-primary 15 `}),r.jsx("p",{className:`${s.text} text-primary/80`,children:e})]})})};function ut({user:e,collapsed:t=!1,onSignOut:n,onAccount:o,onSecurity:s}){var p,x;const[i,a]=R.useState(!1),c=R.useRef(null);R.useEffect(()=>{const g=w=>{c.current&&(c.current.contains(w.target)||a(!1))},b=w=>{w.key==="Escape"&&a(!1)};return window.addEventListener("mousedown",g),window.addEventListener("keydown",b),()=>{window.removeEventListener("mousedown",g),window.removeEventListener("keydown",b)}},[]),R.useEffect(()=>{t&&a(!1)},[t]);const l=`${e.name??""} ${e.surname??""}`.trim(),h=`${((p=e.name)==null?void 0:p[0])??""}${((x=e.surname)==null?void 0:x[0])??""}`.toUpperCase(),y=e.role===3?"Admin":e.role===2?"Manager":"Utente";return t?r.jsxs("div",{ref:c,className:"relative",children:[r.jsx("button",{type:"button",onClick:()=>a(g=>!g),title:l||"Profilo",className:"group flex h-14 w-full items-center justify-center rounded-[20px] border border-primary/10 bg-secondary text-primary transition hover:bg-[#000]",children:r.jsx("div",{className:"grid h-10 w-10 place-items-center rounded-[16px] border border-secondary/15 bg-[#F4FBFD] text-sm font-bold text-secondary",children:h||"U"})}),i&&r.jsxs("div",{className:"absolute bottom-16 left-0 z-[120] w-64 overflow-hidden rounded-[28px] border border-primary/10 bg-secondary p-2 shadow-[0_20px_50px_rgba(11,37,69,0.12)]",children:[r.jsx("div",{className:"rounded-[22px] border border-primary/10 bg-[#F8FBFF] p-3",children:r.jsxs("div",{className:"flex items-center gap-3",children:[r.jsx("div",{className:"grid h-11 w-11 shrink-0 place-items-center rounded-[16px] border border-secondary/15 bg-secondary text-sm font-bold text-secondary",children:h||"U"}),r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"truncate text-sm font-semibold text-primary",children:l}),r.jsx("div",{className:"text-xs text-primary/45",children:y})]})]})}),r.jsx("div",{className:"mt-2 space-y-1",children:r.jsx(fe,{icon:r.jsx(te,{}),label:"Esci",danger:!0,onClick:g=>{a(!1),n(g)}})})]})]}):r.jsx("div",{ref:c,className:"relative",children:r.jsxs("div",{className:["overflow-hidden rounded-[28px] border border-primary/10 bg-secondary transition-all duration-300",i?"shadow-[0_18px_40px_rgba(11,37,69,0.12)]":"shadow-[0_10px_24px_rgba(11,37,69,0.06)]"].join(" "),children:[r.jsxs("button",{type:"button",onClick:()=>a(g=>!g),className:"flex w-full items-center gap-3 px-3 py-3 text-left transition hover:bg-[#000]",children:[r.jsx("div",{className:"grid h-12 w-12 shrink-0 place-items-center rounded-[18px] border border-secondary/15 bg-[#F4FBFD] text-sm font-bold text-secondary",children:h||"U"}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("div",{className:"truncate text-sm font-semibold text-primary",children:l}),r.jsx("div",{className:"mt-0.5 text-xs text-primary/45",children:y})]}),r.jsx("span",{className:["grid h-9 w-9 place-items-center rounded-[14px] border border-primary/10 bg-secondary text-primary/60 transition-all duration-300",i?"rotate-180":"rotate-0"].join(" "),children:r.jsx(_e,{className:"text-xs"})})]}),r.jsx("div",{className:["grid transition-all duration-300 ease-out",i?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"].join(" "),children:r.jsx("div",{className:"overflow-hidden",children:r.jsxs("div",{className:"px-3 pb-3",children:[r.jsx("div",{className:"mb-3 h-px bg-primary/10"}),r.jsx("div",{className:"space-y-1",children:r.jsx(fe,{icon:r.jsx(te,{}),label:"Esci",danger:!0,onClick:g=>{a(!1),n(g)}})})]})})})]})})}function fe({icon:e,label:t,onClick:n,danger:o=!1}){return r.jsxs("button",{type:"button",onClick:n,className:["flex w-full items-center gap-3 rounded-[18px] border px-3 py-3 text-sm font-medium transition",o?"border-red-100 bg-red-50 text-red-700 hover:bg-red-100":"border-primary/10 bg-[#F8FBFF] text-primary/78 hover:bg-secondary/90 hover:text-primary"].join(" "),children:[r.jsx("span",{className:["grid h-9 w-9 shrink-0 place-items-center rounded-[14px] border text-sm",o?"border-red-200 bg-white text-red-600":"border-secondary/15 bg-secondary text-primary"].join(" "),children:e}),r.jsx("span",{className:"truncate",children:t})]})}
15const ht="#b0a6df",pt=[{name:"Home",url:"/admin",icon:r.jsx(Xe,{}),roles:[1],section:"main"},{name:"Casi Studio",url:"/admin/portfolio",icon:r.jsx(We,{}),roles:[1],section:"main"},{name:"Settori Portfolio",url:"/admin/portfolio-sectors",icon:r.jsx(Pe,{}),roles:[1],section:"main"}],ft=()=>{var v,d,j;const e=me(),t=Ee(),n=Re(),o=ee(f=>f.themeConfig),{user:s,limits:i}=ee(f=>f.user),[a,c]=R.useState(!1),[l,h]=R.useState({});R.useEffect(()=>{y()},[]),R.useEffect(()=>{window.innerWidth<1024&&!o.sidebar&&e(q())},[n.pathname]);const y=async()=>{c(!0);try{G.defaults.withCredentials=!0;const f=await G.get("/api/user");f.data.status===200&&f.data.user.role_id===1?e(Ne({user:f.data.user,subscription:f.data.subscription??null,limits:f.data.limits??{},warnings:f.data.warnings??{}})):t("/")}catch{t("/")}finally{c(!1)}},p=async f=>{f.preventDefault(),c(!0);try{await G.get("/api/logout")}catch{}finally{e(Oe()),t("/login"),c(!1)}},x=f=>{e(re()),o.sidebar?h(_=>({..._,[f]:!0})):h(_=>({..._,[f]:!_[f]}))},g=f=>f?f==="/admin"?n.pathname==="/admin":n.pathname.startsWith(f):!1,b=Number(s==null?void 0:s.role_id),m=R.useMemo(()=>pt.filter(f=>{var _;return!((_=f.roles)!=null&&_.length)||f.roles.includes(b)}).map(f=>{var W;const _=(W=f.children)==null?void 0:W.filter(P=>{var k;return!((k=P.roles)!=null&&k.length)||P.roles.includes(b)});return{...f,children:_!=null&&_.length?_:void 0}}).filter(f=>f.url||f.children&&f.children.length),[b]).filter(f=>f.section==="main"),u=!o.sidebar;return r.jsxs(r.Fragment,{children:[o.sidebar&&r.jsx("button",{type:"button",className:"fixed left-3 top-3 z-[60] flex h-11 w-11 items-center justify-center rounded-full border border-white/10 bg-secondary text-white shadow-[0_10px_24px_rgba(0,0,0,0.30)] transition hover:bg-tertiary hover:text-primary",onClick:()=>e(q()),children:r.jsx(Te,{})}),r.jsx("nav",{className:`sidebar fixed top-0 bottom-0 left-0 z-50 h-full overflow-hidden border-r border-white/10 bg-secondary text-white shadow-[10px_0_24px_rgba(0,0,0,0.20)] transition-all duration-300 16 ${u?"translate-x-0 w-[290px]":"-translate-x-full w-[290px]"} 17 lg:translate-x-0 18 ${u?"lg:w-[290px]":"lg:w-[92px]"} 19 `,children:r.jsxs("div",{className:"flex h-full min-h-0 flex-col overflow-hidden bg-secondary",children:[r.jsxs("div",{className:`flex items-center gap-3 border-b border-white/10 p-3 ${u?"justify-between":"justify-center"}`,children:[u&&r.jsx("div",{className:"flex items-center gap-3 text-center place-content-center",children:r.jsxs("div",{className:"",children:[r.jsx(O,{to:"/",className:"truncate text-sm font-semibold text-white",children:r.jsx(Le,{})}),r.jsx("div",{className:"text-xs text-white/45",children:"Pannello gestione"})]})}),r.jsx("button",{type:"button",className:"flex h-10 w-10 items-center justify-center rounded-full border border-white/10 bg-white/5 text-white transition hover:bg-white/10 hover:text-primary",onClick:()=>e(q()),children:r.jsx(Ye,{className:`transition-transform ${u?"":"rotate-180"}`})})]}),r.jsxs("div",{className:"flex flex-col gap-3 p-3",children:[((v=i==null?void 0:i.venues)==null?void 0:v.is_over_limit)&&r.jsx(Z,{collapsed:!u,children:u?r.jsxs(r.Fragment,{children:[i.venues.message," ",r.jsx(O,{to:"/admin/subscription",className:"font-medium text-primary underline",children:"upgrade"})]}):r.jsx(z,{className:"text-lg"})}),((d=i==null?void 0:i.courts)==null?void 0:d.is_over_limit)&&r.jsx(Z,{collapsed:!u,children:u?r.jsxs(r.Fragment,{children:[i.courts.message," ",r.jsx(O,{to:"/admin/subscription",className:"font-medium text-primary underline",children:"upgrade"})]}):r.jsx(z,{className:"text-lg"})}),((j=i==null?void 0:i.staff)==null?void 0:j.is_over_limit)&&r.jsx(Z,{collapsed:!u,children:u?r.jsxs(r.Fragment,{children:[i.staff.message," ",r.jsx(O,{to:"/admin/subscription",className:"font-medium text-primary underline",children:"upgrade"})]}):r.jsx(z,{className:"text-lg"})})]}),r.jsx("div",{className:"relative min-h-0 flex-1 overflow-hidden",children:r.jsx(ct,{className:"h-full px-3 py-4",children:r.jsx(mt,{sidebar:u,title:"Operatività ",children:m.map((f,_)=>r.jsx(vt,{sidebar:u,item:f,isActivePath:g,openGroups:l,toggleGroup:x}
19,`${f.name}-${_}`))})})}),r.jsx("div",{onClick:()=>e(re()),className:"relative border-t border-white/10 p-3",children:s&&!a?r.jsx(ut,{user:{name:s.name,surname:s.surname,role:s.role_id},collapsed:!!o.sidebar,onAccount:()=>t("/admin/account"),onSecurity:()=>t("/admin/account/security"),onSubscription:()=>t("/admin/subscription"),onSignOut:p}):r.jsx("div",{className:"rounded-[20px] border border-white/10 bg-white/5 p-4",children:r.jsx(dt,{fullScreen:!1,text:"Caricamento...",size:"sm"})})})]})})]})};function Z({children:e,collapsed:t}){return r.jsx("div",{className:["rounded-[20px] border border-primary/20 bg-primary/10 px-4 py-3 text-sm text-white/75",t?"flex items-center justify-center text-center":"text-center"].join(" "),children:e})}function mt({title:e,children:t,sidebar:n}){return r.jsxs("div",{className:"mb-6",children:[n&&r.jsx("div",{className:"mb-3 px-2 text-[11px] font-semibold uppercase tracking-[0.18em] text-white/40",children:e}),r.jsx("div",{className:"space-y-2",children:t})]})}function vt({item:e,isActivePath:t,openGroups:n,toggleGroup:o,sidebar:s}){const i=Array.isArray(e.children)&&e.children.length>0,a=i?e.children.some(h=>t(h.url)):!1,c=t(e.url)||a,l=n[e.name]??a;return i?r.jsxs("div",{className:"rounded-[20px] border border-white/8 bg-white/5 p-1",children:[r.jsxs("button",{type:"button",onClick:()=>o(e.name),className:["flex w-full items-center gap-3 rounded-[18px] px-2 py-3 text-left transition",c?"bg-primary/10 text-white":"text-white/70 hover:bg-white/5 hover:text-white"].join(" "),children:[r.jsx("span",{className:["grid h-10 w-10 shrink-0 place-items-center rounded-[16px] border text-base",c?"border-primary/30 bg-white/5 text-primary":"border-white/10 bg-white/5 text-white/65"].join(" "),children:e.icon}),s&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"min-w-0 flex-1",children:r.jsx("div",{className:"truncate text-sm font-semibold",children:e.name})}),r.jsx(He,{className:`text-xs text-white/40 transition-transform duration-200 ${l?"rotate-180":""}`})]})]}),s&&r.jsx("div",{className:`overflow-hidden transition-all duration-300 ${l?"max-h-80 pt-1":"max-h-0"}`,children:r.jsx("div",{className:"space-y-1 px-2 pb-2",children:e.children.map(h=>{const y=t(h.url);return r.jsxs(O,{to:h.url??"",className:["flex w-full items-center gap-3 rounded-[16px] border px-3 py-2.5 text-left text-sm transition",y?"border-primary/20 bg-primary/10 text-white":"border-transparent text-white/65 hover:bg-white/5 hover:text-white"].join(" "),children:[r.jsx("span",{className:"inline-block h-2 w-2 rounded-full",style:{background:y?ht:"rgba(255,255,255,0.18)"}}),r.jsx("span",{className:"truncate",children:h.name})]},h.url)})})})]}):r.jsxs(O,{to:e.url??"",className:[`group flex w-full items-center gap-3 rounded-[20px] border ${s?"px-4":"px-3"} py-3 text-left transition`,c?"border-primary/20 bg-primary/10 text-white":"border-white/8 bg-transparent text-white/70 hover:bg-white/5 hover:text-white"].join(" "),children:[r.jsx("span",{className:["grid h-10 w-10 shrink-0 place-items-center rounded-[16px] border text-base transition",c?"border-primary/30 bg-white/5 text-primary":"border-white/10 bg-white/5 text-white/65"].join(" "),children:e.icon}),s&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"min-w-0 flex-1",children:r.jsx("div",{className:"truncate text-sm font-semibold",children:e.name})}),c&&r.jsx("span",{className:"h-2.5 w-2.5 rounded-full bg-primary"})]})]})}const bt=()=>r.jsxs(r.Fragment,{children:[r.jsx("div",{id:"popper-portal"}),r.jsx("div",{id:"modal-portal"})]}),gt="#19B8D4",jt=()=>{const e=ee(a=>a.themeConfig),t=me(),[n,o]=R.useState(!0),[s,i]=R.useState(!1);return R.useEffect(()=>{const a=()=>{i(window.scrollY>80)};window.addEventListener("scroll",a);const c=document.getElementsByClassName("screen_loader");c!=null&&c.length&&c[0].classList.add("animate__fadeOut");const l=window.setTimeout(()=>{o(!1)},220);return()=>{window.removeEventListener("scroll",a),window.clearTimeout(l)}},[]),r.jsx(Me,{children:r.jsxs("div",{className:"relative min-h-dvh overflow-hidden bg-secondary",children:[r.jsxs("div",{className:"pointer-events-none absolute inset-0",children:[r.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_left,rgba(25,184,212,0.08),transparent_28%),radial-gradient(circle_at_85%_15%,rgba(11,37,69,0.05),transparent_22%),radial-gradient(circle_at_bottom,rgba(11,37,69,0.03),transparent_30%)]"}),r.jsx("div",{className:"absolute -left-20 top-0 h-72 w-72 rounded-full bg-secondary/10 blur-3xl"}),r.jsx("div",{className:"absolute right-[-80px] top-[10%] h-96 w-96 rounded-full bg-primary/8 blur-3xl"}),r.jsx("div",{className:"absolute bottom-[-120px] left-[8%] h-80 w-80 rounded-full bg-secondary/8 blur-3xl"})]}),!e.sidebar&&r.jsx("button",{type:"button","aria-label":"Chiudi sidebar",className:"fixed inset-0 z-40 bg-primary/20 lg:hidden",onClick:()=>t(q())}),n&&r.jsx("div",{className:"screen_loader fixed inset-0 z-[80] grid place-items-center bg-secondary animate__animated",children:r.jsx("div",{className:"rounded-[28px] border border-primary/10 bg-secondary px-8 py-7 shadow-[0_24px_70px_rgba(11,37,69,0.12)]",children:r.jsxs("div",{className:"flex flex-col items-center gap-4",children:[r.jsx(Fe,{color:gt,size:38}),r.jsx("div",{className:"text-sm font-medium tracking-[0.08em] text-primary/65",children:"Caricamento pannello..."})]})})}),r.jsx(ft,{}),r.jsxs("div",{className:[`${e.navbar} text-white main-container min-h-dvh transition-all duration-300`,e.sidebar?"lg:pl-[92px]":"lg:pl-[290px]"].join(" "),children:[r.jsxs("div",{className:"flex min-h-dvh flex-col",children:[r.jsx(R.Suspense,{children:r.jsx("main",{className:"flex-1",children:r.jsx("div",{className:`${e.animation} animate__animated p-3 md:p-5 lg:p-6`,children:r.jsx("div",{className:"mx-auto w-full max-w-[1800px]",children:r.jsx("div",{className:"min-h-[calc(100dvh-3rem)] rounded-[30px] p-4 md:p-5 lg:p-6",children:r.jsx(Ce,{})})})})})}),r.jsx(ke,{})]}),r.jsx(bt,{})]})]})})};export{jt as default};
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.