Files

207 lines
770 KiB
JavaScript
Raw Permalink Normal View History

Hotel Raxa - Advanced Booking System Implementation 🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 07:43:22 +02:00
/*! For license information please see ui.min.js.LICENSE.txt */
!function(){var e={2714:function(e,t,r){"use strict";r.d(t,{Z:function(){return ne}});var n=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),o=Math.abs,a=String.fromCharCode,i=Object.assign;function s(e){return e.trim()}function l(e,t,r){return e.replace(t,r)}function c(e,t){return e.indexOf(t)}function u(e,t){return 0|e.charCodeAt(t)}function d(e,t,r){return e.slice(t,r)}function p(e){return e.length}function m(e){return e.length}function f(e,t){return t.push(e),e}var h=1,g=1,v=0,b=0,y=0,x="";function w(e,t,r,n,o,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:h,column:g,length:i,return:""}}function C(e,t){return i(w("",null,null,"",null,null,0),e,{length:-e.length},t)}function S(){return y=b>0?u(x,--b):0,g--,10===y&&(g=1,h--),y}function k(){return y=b<v?u(x,b++):0,g++,10===y&&(g=1,h++),y}function M(){return u(x,b)}function R(){return b}function P(e,t){return d(x,e,t)}function T(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $(e){return h=g=1,v=p(x=e),b=0,[]}function I(e){return x="",e}function E(e){return s(P(b-1,O(91===e?e+2:40===e?e+1:e)))}function Z(e){for(;(y=M())&&y<33;)k();return T(e)>2||T(y)>3?"":" "}function D(e,t){for(;--t&&k()&&!(y<48||y>102||y>57&&y<65||y>70&&y<97););return P(e,R()+(t<6&&32==M()&&32==k()))}function O(e){for(;k();)switch(y){case e:return b;case 34:case 39:34!==e&&39!==e&&O(y);break;case 40:41===e&&O(e);break;case 92:k()}return b}function A(e,t){for(;k()&&e+y!==57&&(e+y!==84||47!==M()););return"/*"+P(t,b-1)+"*"+a(47===e?e:k())}function L(e){for(;!T(M());)k();return P(e,b)}var N="-ms-",B="-moz-",z="-webkit-",F="comm",j="rule",V="decl",W="@keyframes";function H(e,t){for(var r="",n=m(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function _(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case V:return e.return=e.return||e.value;case F:return"";case W:return e.return=e.value+"{"+H(e.children,n)+"}";case j:e.value=e.props.join(",")}return p(r=H(e.children,n))?e.return=e.value+"{"+r+"}":""}function U(e){return I(Y("",null,null,null,[""],e=$(e),0,[0],e))}function Y(e,t,r,n,o,i,s,d,m){for(var h=0,g=0,v=s,b=0,y=0,x=0,w=1,C=1,P=1,T=0,$="",I=o,O=i,N=n,B=$;C;)switch(x=T,T=k()){case 40:if(108!=x&&58==u(B,v-1)){-1!=c(B+=l(E(T),"&","&\f"),"&\f")&&(P=-1);break}case 34:case 39:case 91:B+=E(T);break;case 9:case 10:case 13:case 32:B+=Z(x);break;case 92:B+=D(R()-1,7);continue;case 47:switch(M()){case 42:case 47:f(G(A(k(),R()),t,r),m);break;default:B+="/"}break;case 123*w:d[h++]=p(B)*P;case 125*w:case 59:case 0:switch(T){case 0:case 125:C=0;case 59+g:-1==P&&(B=l(B,/\f/g,"")),y>0&&p(B)-v&&f(y>32?K(B+";",n,r,v-1):K(l(B," ","")+";",n
0% {
transform: scale(0);
opacity: 0.1;
}
100% {
transform: scale(1);
opacity: 0.3;
}
`)),or=(0,qt.F4)(Jt||(Jt=rr`
0% {
opacity: 1;
}
100% {
opacity: 0;
}
`)),ar=(0,qt.F4)(er||(er=rr`
0% {
transform: scale(1);
}
50% {
transform: scale(0.92);
}
100% {
transform: scale(1);
}
`)),ir=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sr=ae((function(t){const{className:r,classes:n,pulsate:o=!1,rippleX:a,rippleY:i,rippleSize:l,in:c,onExited:u,timeout:d}=t,[p,m]=e.useState(!1),f=s(r,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:l,height:l,top:-l/2+i,left:-l/2+a},g=s(n.child,p&&n.childLeaving,o&&n.childPulsate);return c||p||m(!0),e.useEffect((()=>{if(!c&&null!=u){const e=setTimeout(u,d);return()=>{clearTimeout(e)}}}),[u,c,d]),(0,Ne.jsx)("span",{className:f,style:h,children:(0,Ne.jsx)("span",{className:g})})}),{name:"MuiTouchRipple",slot:"Ripple"})(tr||(tr=rr`
opacity: 0;
position: absolute;
&.${0} {
opacity: 0.3;
transform: scale(1);
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
&.${0} {
animation-duration: ${0}ms;
}
& .${0} {
opacity: 1;
display: block;
width: 100%;
height: 100%;
border-radius: 50%;
background-color: currentColor;
}
& .${0} {
opacity: 0;
animation-name: ${0};
animation-duration: ${0}ms;
animation-timing-function: ${0};
}
& .${0} {
position: absolute;
/* @noflip */
left: 0px;
top: 0;
animation-name: ${0};
animation-duration: 2500ms;
animation-timing-function: ${0};
animation-iteration-count: infinite;
animation-delay: 200ms;
}
`),Kt.rippleVisible,nr,550,(({theme:e})=>e.transitions.easing.easeInOut),Kt.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kt.child,Kt.childLeaving,or,550,(({theme:e})=>e.transitions.easing.easeInOut),Kt.childPulsate,ar,(({theme:e})=>e.transitions.easing.easeInOut)),lr=e.forwardRef((function(t,r){const n=ee({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:l={},className:c}=n,u=(0,a.Z)(n,Xt),[d,p]=e.useState([]),m=e.useRef(0),f=e.useRef(null);e.useEffect((()=>{f.current&&(f.current(),f.current=null)}),[d]);const h=e.useRef(!1),g=Se(),v=e.useRef(null),b=e.useRef(null),y=e.useCallback((e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:o,cb:a}=e;p((e=>[...e,(0,Ne.jsx)(sr,{classes:{ripple:s(l.ripple,Kt.ripple),rippleVisible:s(l.rippleVisible,Kt.rippleVisible),ripplePulsate:s(l.ripplePulsate,Kt.ripplePulsate),child:s(l.child,Kt.child),childLeaving:s(l.childLeaving,Kt.childLeaving),childPulsate:s(l.childPulsate,Kt.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:o},m.current)])),m.current+=1,f.current=a}),[l]),x=e.useCallback(((e={},t={},r=(()=>{}))=>{const{pulsate:n=!1,center:o=i||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&h.current)return void(h.current=!1);"touchstart"===(null==e?void 0:e.type)&&(h.current=!0);const s=a?null:b.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(o||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(o)d=Math.sqrt((2*l.width**2+l.height**2)/3),d%2==0&&(d+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===v.current&&(v.current=()=>{y({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})},g.start(80,(()=>{v.current&&(v.current(),v.current=null)}))):y({pulsate:n,rippleX:c,rippleY:u,rippleSize:d,cb:r})}),[i,y,g]),w=e.useCallback((()=>{x({},{pulsate:!0})}),[x]),C=e.useCallback(((e,t)=>{if(g.clear(),"touchend"===(null==e?void 0:e.type)&&v.current)return v.current(),v.current=null,void g.start(0,(()=>{C(e,t)}));v.current=null,p((e=>e.length>0?e.slice(1):e)),f.current=t}),[g]);return e.useImperativeHandle(r,(()=>({pulsate:w,start:x,stop:C})),[w,x,C]),(0,Ne.jsx)(ir,(0,o.Z)({className:s(Kt.root,l.root,c),ref:b},u,{children:(0,Ne.jsx)(Yt,{component:null,exit:!0,children:d})}))}));var cr=lr;function ur(e){return De("MuiButtonBase",e)}var dr=Oe("MuiButtonBase",["root","disabled","focusVisible"]);const pr=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],mr=ae("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${dr.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fr=e.forwardRef((function(t,r){const n=ee({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:c=!1,children:u,className:d,component:p="button",disabled:m=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:g=!1,LinkComponent:v="a",onBlur:b,onClick:y,onContextMenu:x,onDragLeave:w,onFocus:C,onFocusVisible:S,onKeyDown:k,onKeyUp:M,onMouseDown:R,onMouseLeave:P,onMouseUp:T,onTouchEnd:$,onTouchMove:I,onTouchStart:E,tabIndex:Z=0,TouchRippl
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
`)),Cd=(0,qt.F4)(vd||(vd=xd`
0% {
stroke-dasharray: 1px, 200px;
stroke-dashoffset: 0;
}
50% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -15px;
}
100% {
stroke-dasharray: 100px, 200px;
stroke-dashoffset: -125px;
}
`)),Sd=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${Mr(r.color)}`]]}})((({ownerState:e,theme:t})=>(0,o.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,qt.iv)(bd||(bd=xd`
animation: ${0} 1.4s linear infinite;
`),wd))),kd=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Md=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${Mr(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,o.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,qt.iv)(yd||(yd=xd`
animation: ${0} 1.4s ease-in-out infinite;
`),Cd))),Rd=e.forwardRef((function(e,t){const r=ee({props:e,name:"MuiCircularProgress"}),{className:n,color:i="primary",disableShrink:c=!1,size:u=40,style:d,thickness:p=3.6,value:m=0,variant:f="indeterminate"}=r,h=(0,a.Z)(r,hd),g=(0,o.Z)({},r,{color:i,disableShrink:c,size:u,thickness:p,value:m,variant:f}),v=(e=>{const{classes:t,variant:r,color:n,disableShrink:o}=e;return l({root:["root",r,`color${Mr(n)}`],svg:["svg"],circle:["circle",`circle${Mr(r)}`,o&&"circleDisableShrink"]},md,t)})(g),b={},y={},x={};if("determinate"===f){const e=2*Math.PI*((44-p)/2);b.strokeDasharray=e.toFixed(3),x["aria-valuenow"]=Math.round(m),b.strokeDashoffset=`${((100-m)/100*e).toFixed(3)}px`,y.transform="rotate(-90deg)"}return(0,Ne.jsx)(Sd,(0,o.Z)({className:s(v.root,n),style:(0,o.Z)({width:u,height:u},y,d),ownerState:g,ref:t,role:"progressbar"},x,h,{children:(0,Ne.jsx)(kd,{className:v.svg,ownerState:g,viewBox:"22 22 44 44",children:(0,Ne.jsx)(Md,{className:v.circle,style:b,ownerState:g,cx:44,cy:44,r:(44-p)/2,fill:"none",strokeWidth:p})})}))}));var Pd=Rd;function Td(e){return e.substring(2).toLowerCase()}function $d(t){const{children:r,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:a,touchEvent:i="onTouchEnd"}=t,s=e.useRef(!1),l=e.useRef(null),c=e.useRef(!1),u=e.useRef(!1);e.useEffect((()=>(setTimeout((()=>{c.current=!0}),0),()=>{c.current=!1})),[]);const d=Te(r.ref,l),p=Et((e=>{const t=u.current;u.current=!1;const r=Di(l.current);if(!c.current||!l.current||"clientX"in e&&function(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}(e,r))return;if(s.current)return void(s.current=!1);let o;o=e.composedPath?e.composedPath().indexOf(l.current)>-1:!r.documentElement.contains(e.target)||l.current.contains(e.target),o||!n&&t||a(e)})),m=e=>t=>{u.current=!0;const n=r.props[e];n&&n(t)},f={ref:d};return!1!==i&&(f[i]=m(i)),e.useEffect((()=>{if(!1!==i){const e=Td(i),t=Di(l.current),r=()=>{s.current=!0};return t.addEventListener(e,p),t.addEventListener("touchmove",r),()=>{t.removeEventListener(e,p),t.removeEventListener("touchmove",r)}}}),[p,i]),!1!==o&&(f[o]=m(o)),e.useEffect((()=>{if(!1!==o){const e=Td(o),t=Di(l.current);return t.addEventListener(e,p),()=>{t.removeEventListener(e,p)}}}),[p,o]),(0,Ne.jsx)(e.Fragment,{children:e.cloneElement(r,f)})}const Id=["ownerState"],Ed=["variants"],Zd=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dd(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Od=(0,d.Z)(),Ad=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ld({defaultTheme:e,theme:t,themeId:r}){return n=t,0===Object.keys(n).length?e:t[r]||t;var n}function Nd(e){return e?(t,r)=>r[e]:null}function Bd(e,t){let{ownerState:r}=t,n=(0,a.Z)(t,Id);const i="function"==typeof e?e((0,o.Z)({ownerState:r},n)):e;if(Array.isArray(i))return i.flatMap((e=>Bd(e,(0,o.Z)({ownerState:r},n))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let t=(0,a.Z)(i,Ed);return e.forEach((e=>{let a=!0;"function"==typeof e.props?a=e.props((0,o.Z)({ownerState:r},n,r)):Object.keys(e.props).forEach((t=>{(null==r?void 0:r[t])!==e.props[t]&&n[t]!==e.props[t]&&(a=!1)})),a&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,o.Z)({ownerState:r},n,r)):e.style))})),t}return i}const zd=function(e={}){const{themeId:t,defaultTheme:r=Od,rootShouldForwardProp:n=Dd,slotShouldForwardProp:i=Dd}=e,s=e=>(0,x.Z)((0,o.Z)({},e,{theme:Ld((0,o.Z)({},e,{defaultTheme:r,themeId:t}))}));return s.__mui_systemSx=!0,(e,l={})=>{(0,Yc.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:c,slot:u,skipVariantsResolver:d,skipSx:p,overridesResolver:m=Nd(Ad(u))}=l,f=(0,a.Z)(l,Zd),h=void 0!==d?d:u&&"Root"!==u&&"root"!==u||!1,g=p||!1;let v=Dd;"Root"===u||"root"===u?v=n:u?v=i:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(v=void 0);const y=(0,Yc.default)(e,(0,o.Z)({shouldForwardProp:v,label:void 0},f)),x=e=>"function"==typeof e&&e.__emotion_real!==e||(0,b.P)(e)?n=>Bd(e,(0,o.Z)({},n,{theme:Ld({theme:n.theme,defaultTheme:r,themeId:t})})):
0% {
left: -35%;
right: 100%;
}
60% {
left: 100%;
right: -90%;
}
100% {
left: 100%;
right: -90%;
}
`)),cC=(0,qt.F4)(rC||(rC=sC`
0% {
left: -200%;
right: 100%;
}
60% {
left: 107%;
right: -8%;
}
100% {
left: 107%;
right: -8%;
}
`)),uC=(0,qt.F4)(nC||(nC=sC`
0% {
opacity: 1;
background-position: 0 -23px;
}
60% {
opacity: 0;
background-position: 0 -23px;
}
100% {
opacity: 1;
background-position: -200px -23px;
}
`)),dC=(e,t)=>"inherit"===t?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:"light"===e.palette.mode?(0,C.$n)(e.palette[t].main,.62):(0,C._j)(e.palette[t].main,.5),pC=ae("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Mr(r.color)}`],t[r.variant]]}})((({ownerState:e,theme:t})=>(0,o.Z)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:dC(t,e.color)},"inherit"===e.color&&"buffer"!==e.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===e.variant&&{backgroundColor:"transparent"},"query"===e.variant&&{transform:"rotate(180deg)"}))),mC=ae("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.dashed,t[`dashedColor${Mr(r.color)}`]]}})((({ownerState:e,theme:t})=>{const r=dC(t,e.color);return(0,o.Z)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===e.color&&{opacity:.3},{backgroundImage:`radial-gradient(${r} 0%, ${r} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})}),(0,qt.iv)(oC||(oC=sC`
animation: ${0} 3s infinite linear;
`),uC)),fC=ae("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Mr(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar1Indeterminate,"determinate"===r.variant&&t.bar1Determinate,"buffer"===r.variant&&t.bar1Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"determinate"===e.variant&&{transition:"transform .4s linear"},"buffer"===e.variant&&{zIndex:1,transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,qt.iv)(aC||(aC=sC`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
`),lC))),hC=ae("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.bar,t[`barColor${Mr(r.color)}`],("indeterminate"===r.variant||"query"===r.variant)&&t.bar2Indeterminate,"buffer"===r.variant&&t.bar2Buffer]}})((({ownerState:e,theme:t})=>(0,o.Z)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==e.variant&&{backgroundColor:"inherit"===e.color?"currentColor":(t.vars||t).palette[e.color].main},"inherit"===e.color&&{opacity:.3},"buffer"===e.variant&&{backgroundColor:dC(t,e.color),transition:"transform .4s linear"})),(({ownerState:e})=>("indeterminate"===e.variant||"query"===e.variant)&&(0,qt.iv)(iC||(iC=sC`
width: auto;
animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
`),cC)));var gC=e.forwardRef((function(e,t){const r=ee({props:e,name:"MuiLinearProgress"}),{className:n,color:i="primary",value:c,valueBuffer:u,variant:d="indeterminate"}=r,p=(0,a.Z)(r,eC),m=(0,o.Z)({},r,{color:i,variant:d}),f=(e=>{const{classes:t,variant:r,color:n}=e;return l({root:["root",`color${Mr(n)}`,r],dashed:["dashed",`dashedColor${Mr(n)}`],bar1:["bar",`barColor${Mr(n)}`,("indeterminate"===r||"query"===r)&&"bar1Indeterminate","determinate"===r&&"bar1Determinate","buffer"===r&&"bar1Buffer"],bar2:["bar","buffer"!==r&&`barColor${Mr(n)}`,"buffer"===r&&`color${Mr(n)}`,("indeterminate"===r||"query"===r)&&"bar2Indeterminate","buffer"===r&&"bar2Buffer"]},Qw,t)})(m),h=an(),g={},v={bar1:{},bar2:{}};if(("determinate"===d||"buffer"===d)&&void 0!==c){g["aria-valuenow"]=Math.round(c),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let e=c-100;h&&(e=-e),v.bar1.transform=`translateX(${e}%)`}if("buffer"===d&&void 0!==u){let e=(u||0)-100;h&&(e=-e),v.bar2.transform=`translateX(${e}%)`}return(0,Ne.jsxs)(pC,(0,o.Z)({className:s(f.root,n),ownerState:m,role:"progressbar"},g,{ref:t},p,{children:["buffer"===d?(0,Ne.jsx)(mC,{className:f.dashed,ownerState:m}):null,(0,Ne.jsx)(fC,{className:f.bar1,ownerState:m,style:v.bar1}),"determinate"===d?null:(0,Ne.jsx)(hC,{className:f.bar2,ownerState:m,style:v.bar2})]}))}));function vC(e){return De("MuiLink",e)}var bC=Oe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),yC=r(4844);const xC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var wC=({theme:e,ownerState:t})=>{const r=(e=>xC[e]||e)(t.color),n=(0,yC.DW)(e,`palette.${r}`,!1)||t.color,o=(0,yC.DW)(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:(0,C.Fq)(n,.4)};const CC=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],SC=ae(xa,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Mr(r.underline)}`],"button"===r.component&&t.button]}})((({theme:e,ownerState:t})=>(0,o.Z)({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&(0,o.Z)({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:wC({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${bC.focusVisible}`]:{outline:"auto"}})));var kC=e.forwardRef((function(t,r){const n=ee({props:t,name:"MuiLink"}),{className:i,color:c="primary",component:u="a",onBlur:d,onFocus:p,TypographyClasses:m,underline:f="always",variant:h="inherit",sx:g}=n,v=(0,a.Z)(n,CC),{isFocusVisibleRef:b,onBlur:y,onFocus:x,ref:w}=jt(),[C,S]=e.useState(!1),k=$e(r,w),M=(0,o.Z)({},n,{color:c,component:u,focusVisible:C,underline:f,variant:h}),R=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return l({root:["root",`underline${Mr(o)}`,"button"===r&&"button",n&&"focusVisible"]},vC,t)})(M);return(0,Ne.jsx)(SC,(0,o.Z)({color:c,className:s(R.root,i),classes:m,component:u,onBlur:e=>{y(e),!1===b.current&&S(!1),d&&d(e)},onFocus:e=>{x(e),!0===b.current&&S(!0),p&&p(e)},ref:k,ownerState:M,variant:h,sx:[...Object.keys(xC).includes(c)?[]:[{color:c}],...Array.isArray(g)?g:[g]]},v))}));function MC(e){return De("MuiListItemAvatar",e)}var RC=Oe("MuiListItemAvatar",["root","alignItemsFlexStart"]);const PC=["className"],TC=ae("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})((({ownerState:e})=>(0,o.Z)({minWidth:56,flexShrink:0},"flex-start"===e.alignItems&&{marginTop:8})));var $C=e.forwardRef((function(t,r){const n=ee({props:t,name:"MuiListItemAva
0% {
opacity: 1;
}
50% {
opacity: 0.4;
}
100% {
opacity: 1;
}
`)),Lk=(0,qt.F4)(Ek||(Ek=Ok`
0% {
transform: translateX(-100%);
}
50% {
/* +0.5s of delay between each loop */
transform: translateX(100%);
}
100% {
transform: translateX(100%);
}
`)),Nk=ae("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!1!==r.animation&&t[r.animation],r.hasChildren&&t.withChildren,r.hasChildren&&!r.width&&t.fitContent,r.hasChildren&&!r.height&&t.heightAuto]}})((({theme:e,ownerState:t})=>{const r=Cn(e.shape.borderRadius)||"px",n=Sn(e.shape.borderRadius);return(0,o.Z)({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Gr(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em"},"text"===t.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${r}/${Math.round(n/.6*10)/10}${r}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===t.variant&&{borderRadius:"50%"},"rounded"===t.variant&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})}),(({ownerState:e})=>"pulse"===e.animation&&(0,qt.iv)(Zk||(Zk=Ok`
animation: ${0} 2s ease-in-out 0.5s infinite;
`),Ak)),(({ownerState:e,theme:t})=>"wave"===e.animation&&(0,qt.iv)(Dk||(Dk=Ok`
position: relative;
overflow: hidden;
/* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
-webkit-mask-image: -webkit-radial-gradient(white, black);
&::after {
animation: ${0} 2s linear 0.5s infinite;
background: linear-gradient(
90deg,
transparent,
${0},
transparent
);
content: '';
position: absolute;
transform: translateX(-100%); /* Avoid flash during server-side hydration */
bottom: 0;
left: 0;
right: 0;
top: 0;
}
`),Lk,(t.vars||t).palette.action.hover))),Bk=e.forwardRef((function(e,t){const r=ee({props:e,name:"MuiSkeleton"}),{animation:n="pulse",className:i,component:c="span",height:u,style:d,variant:p="text",width:m}=r,f=(0,a.Z)(r,$k),h=(0,o.Z)({},r,{animation:n,component:c,variant:p,hasChildren:Boolean(f.children)}),g=(e=>{const{classes:t,variant:r,animation:n,hasChildren:o,width:a,height:i}=e;return l({root:["root",r,n,o&&"withChildren",o&&!a&&"fitContent",o&&!i&&"heightAuto"]},Pk,t)})(h);return(0,Ne.jsx)(Nk,(0,o.Z)({as:c,ref:t,className:s(g.root,i),ownerState:h},f,{style:(0,o.Z)({width:m,height:u},d)}))}));var zk=Bk;function Fk(e,t){return e-t}function jk(e,t){var r;const{index:n}=null!=(r=e.reduce(((e,r,n)=>{const o=Math.abs(t-r);return null===e||o<e.distance||o===e.distance?{distance:o,index:n}:e}),null))?r:{};return n}function Vk(e,t){if(void 0!==t.current&&e.changedTouches){const r=e;for(let e=0;e<r.changedTouches.length;e+=1){const n=r.changedTouches[e];if(n.identifier===t.current)return{x:n.clientX,y:n.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Wk(e,t,r){return 100*(e-t)/(r-t)}function Hk({values:e,newValue:t,index:r}){const n=e.slice();return n[r]=t,n.sort(Fk)}function _k({sliderRef:e,activeIndex:t,setActive:r}){var n,o;const a=Di(e.current);var i;null!=(n=e.current)&&n.contains(a.activeElement)&&Number(null==a||null==(o=a.activeElement)?void 0:o.getAttribute("data-index"))===t||null==(i=e.current)||i.querySelector(`[type="range"][data-index="${t}"]`).focus(),r&&r(t)}function Uk(e,t){return"number"==typeof e&&"number"==typeof t?e===t:"object"==typeof e&&"object"==typeof t&&function(e,t,r=((e,t)=>e===t)){return e.length===t.length&&e.every(((e,n)=>r(e,t[n])))}(e,t)}const Yk={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qk=e=>e;let Gk;function Kk(){return void 0===Gk&&(Gk="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),Gk}function Xk(t){const{"aria-labelledby":r,defaultValue:n,disabled:a=!1,disableSwap:i=!1,isRtl:s=!1,marks:l=!1,max:c=100,min:u=0,name:d,onChange:p,onChangeCommitted:m,orientation:f="horizontal",rootRef:h,scale:g=qk,step:v=1,shiftStep:b=10,tabIndex:y,value:x}=t,w=e.useRef(),[C,S]=e.useState(-1),[k,M]=e.useState(-1),[R,P]=e.useState(!1),T=e.useRef(0),[$,I]=Xe({controlled:x,default:null!=n?n:u,name:"Slider"}),E=p&&((e,t,r)=>{const n=e.nativeEvent||e,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:t,name:d}}),p(o,t,r)}),Z=Array.isArray($);let D=Z?$.slice().sort(Fk):[$];D=D.map((e=>null==e?u:(0,Fr.Z)(e,u,c)));const O=!0===l&&null!==v?[...Array(Math.floor((c-u)/v)+1)].map(((e,t)=>({value:u+v*t}))):l||[],A=O.map((e=>e.value)),{isFocusVisibleRef:L,onBlur:N,onFocus:B,ref:z}=Ft(),[F,j]=e.useState(-1),V=e.useRef(),W=Te(z,V),H=Te(h,W),_=e=>t=>{var r;const n=Number(t.currentTarget.getAttribute("data-index"));B(t),!0===L.current&&j(n),M(n),null==e||null==(r=e.onFocus)||r.call(e,t)},U=e=>t=>{var r;N(t),!1===L.current&&j(-1),M(-1),null==e||null==(r=e.onBlur)||r.call(e,t)},Y=(e,t)=>{const r=Number(e.currentTarget.getAttribute("data-index")),n=D[r],o=A.indexOf(n);let a=t;if(O&&null==v){const e=A[A.length-1];a=a>e?e:a<A[0]?A[0]:a<n?A[o-1]:A[o+1]}if(a=(0,Fr.Z)(a,u,c),Z){i&&(a=(0,Fr.Z)(a,D[r-1]||-1/0,D[r+1]||1/0));const e=a;a=Hk({values:D,newValue:a,index:r});let t=r;i||(t=a.indexOf(e)),_k({sliderRef:V,activeIndex:t})}I(a),j(r),E&&!Uk(a,$)&&E(e,a,r),m&&m(e,a)},q=e=>t=>{var r;if(null!==v){const e=Number(t.currentTarget.getAttribute("data-index")),r=D[e];let n=null;("ArrowLeft"===t.key||"ArrowDown"===t.key)&&t.shiftKey||"PageDown"===t.key?n=Math.max(r-b,u):(("ArrowRight"===t.key||"ArrowUp"===t.key)&&t.shiftKey||"PageUp"===t.key)&&(n=Math.min(r+b,c)),null!==n&&(Y(t,n),t.preventDefault())}null==e||null==(r=e.onKeyDown)||r.call(e,t)};It((()=>{var e;a&&V.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[a]),a&&-1!==C&&S(-1
.rcp-root{--rcp-background-color: #121212;--rcp-field-input-color: #ffffff;--rcp-field-input-border-color: #242424;--rcp-field-label-color: #808080}.rcp{display:flex;flex-direction:column;background-color:var(--rcp-background-color);border-radius:10px}.rcp-body{display:flex;flex-direction:column;gap:20px;padding:20px 10px}.rcp-section{display:flex;flex-direction:column;gap:10px}.rcp-interactive{width:100%;height:100%;user-select:none;touch-action:none}.rcp-saturation{cursor:all-scroll;width:100%;position:relative;background-image:linear-gradient(to bottom,transparent,black),linear-gradient(to right,white,transparent);border-radius:10px 10px 0 0}.rcp-saturation-cursor{position:absolute;width:20px;height:20px;border:2px solid white;border-radius:100%;box-shadow:0 0 15px #00000026;transform:translate(-10px,-10px)}.rcp-hue{cursor:ew-resize;position:relative;width:100%;height:12px;background-image:linear-gradient(to right,rgb(255,0,0),rgb(255,255,0),rgb(0,255,0),rgb(0,255,255),rgb(0,0,255),rgb(255,0,255),rgb(255,0,0));border-radius:10px}.rcp-hue-cursor{position:absolute;width:20px;height:20px;border:2px solid white;border-radius:100%;box-shadow:0 0 15px #00000026;transform:translate(-10px,-4px)}.rcp-alpha{cursor:ew-resize;position:relative;width:100%;height:12px;border-radius:10px}.rcp-alpha-cursor{position:absolute;width:20px;height:20px;border:2px solid white;border-radius:100%;box-shadow:0 0 15px #00000026;transform:translate(-10px,-4px)}.rcp-fields{display:flex;flex-direction:column;gap:10px}.rcp-fields-floor{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.rcp-field{display:flex;flex-direction:column;width:100%}.rcp-field-input{width:100%;font-family:inherit;font-size:14px;text-align:center;color:var(--rcp-field-input-color);background-color:transparent;border:2px solid var(--rcp-field-input-border-color);border-radius:5px;outline:none;padding:5px 0}.rcp-field-label{font-size:14px;text-align:center;color:var(--rcp-field-label-color)}
`,DL=t().forwardRef(((e,r)=>{const{children:n,sx:o={},anchorEl:a,...i}=e;return a?t().createElement(ZL,{transition:!0,ref:r,...i,anchorEl:a,sx:{width:276,"& .rcp-root":{"--rcp-background-color":"initial"},"& .rcp-saturation":{borderRadius:0},"& .rcp-body":{py:1},...o}},(({TransitionProps:e})=>t().createElement(zO,{...e},t().createElement(PA,{elevation:6},n)))):null})),OL=({r:e,g:r,b:n,a:o,onChange:a,...i})=>{const s=({key:t,min:i,max:s,modifier:l=(e=>e)})=>c=>{const u={r:e,g:r,b:n,a:o},d=c.target.value?parseFloat(c.target.value):0,p=isNaN(d)?1:Math.min(Math.max(d,i),s);u[t]=l(p),a(u)};return t().createElement(VD,{display:"flex",gap:.75},t().createElement(kA,{color:"secondary",...i,placeholder:"R",value:e.toFixed(),onChange:s({key:"r",min:0,max:255})}),t().createElement(kA,{color:"secondary",...i,placeholder:"G",value:r.toFixed(),onChange:s({key:"g",min:0,max:255})}),t().createElement(kA,{color:"secondary",...i,placeholder:"B",value:n.toFixed(),onChange:s({key:"b",min:0,max:255})}),t().createElement(kA,{color:"secondary",...i,placeholder:"A",value:(100*o).toFixed(),endAdornment:t().createElement(pO,{disableTypography:!0,position:"end"},"%"),onChange:s({key:"a",min:0,max:100,modifier:e=>e/100})}))},AL=t().forwardRef(((r,n)=>{const{value:o,onChange:a,...i}=r,[s,l]=(0,e.useState)(null);return t().createElement(kA,{ref:n,color:"secondary",...i,value:s||o.slice(1),onChange:e=>{const t=e.target.value.trim();l(t),a("#"+t)},onBlur:()=>l(null),startAdornment:t().createElement(pO,{disableTypography:!0,position:"start"},"#")})})),LL=t().forwardRef(((e,r)=>{const{value:n,onChange:o,...a}=e;return t().createElement(kA,{ref:r,color:"secondary",sx:{width:"65px"},...a,value:(100*n).toFixed(),onChange:e=>o(function(e){if(!e)return 0;const t=parseInt(e);if(isNaN(t))return 1;const r=t/100;return r>1?1:r<0?0:r}(e.target.value)),endAdornment:t().createElement(pO,{disableTypography:!0,position:"end"},"%")})})),NL=t().forwardRef(((r,n)=>{const{value:o,placement:a,offset:i,onChange:s}=r,l=(0,e.useRef)(null),c=(0,e.useRef)(!1),[u,d]=(0,e.useState)(!1),[p,m]=(0,e.useState)("hex"),[f,h]=function(t){let[r,n]=(0,e.useState)(bE.convert("hex",t));return(0,e.useEffect)((()=>{n(bE.convert("hex",t))}),[t]),[r,n]}(o),g=(e,t)=>{s(BL(e,t)),h(e)},v=e=>g(e,p);return t().createElement(t().Fragment,null,t().createElement(EL,{ref:l,color:BL(f,p),onClick:()=>d((e=>!e))}),t().createElement(DL,{ref:n,open:u,anchorEl:l.current,placement:a,sx:{zIndex:"modal"},modifiers:[{name:"offset",options:{offset:i}}]},t().createElement(lO,{onClickAway:()=>!c.current&&d(!1)},t().createElement(VD,{display:"flex",flexDirection:"column",gap:2,p:2},t().createElement(RE,{height:200,color:f,onChange:v}),t().createElement(VD,{display:"flex",flexDirection:"column",gap:2,width:"100%"},t().createElement(ME,{color:f,onChange:v}),t().createElement(xE,{color:f,onChange:v})),t().createElement(VD,{display:"flex",gap:1},t().createElement(OA,{size:"tiny",value:p,color:"secondary",onOpen:()=>c.current=!0,onBlur:()=>c.current=!1,onChange:e=>{const t=e.target.value;m(t),g(f,t)}},t().createElement(yA,{value:"hex"},"hex"),t().createElement(yA,{value:"rgb"},"rgb")),"hex"===p&&t().createElement(t().Fragment,null,t().createElement(AL,{size:"tiny",value:f.hex,onChange:e=>{const t=bE.convert("hex",e);v(t)}}),t().createElement(LL,{size:"tiny",value:f.rgb.a,onChange:e=>{const t=bE.convert("rgb",{...f.rgb,a:e});v(t)}})),"rgb"===p&&t().createElement(OL,{size:"tiny",r:f.rgb.r,g:f.rgb.g,b:f.rgb.b,a:f.rgb.a,onChange:e=>{const t=bE.convert("rgb",e);v(t)}}))))))}));function BL(e,t){if("rgb"===t){const{r:t,g:r,b:n,a:o}=e.rgb;return`rgba(${t.toFixed()}, ${r.toFixed()}, ${n.toFixed()}, ${parseFloat(o.toFixed(2))})`}return e.hex}NL.defaultProps={value:"#000000",offset:[0,12],placement:"left-start"};const zL=t().forwardRef(((e,r)=>t().createElement(IM,{...e,ref:r}))),FL=pa;let jL=0;function VL(r){const n=(0,e.useRef)(jL++),[o,a]=t().useState(r),i=(e,t)=>{a(t)};return{getTabsProps:()=>({value:o,onChange:i}),getTabProps:e=>({id:`tab-${n.current}-${e}`,"aria-controls":`tabpanel-${n.current}-${e}`,value:e}),getTabPanelProps